diff --git a/dist/extension.js b/dist/extension.js index 7673f22..1e294b3 100644 --- a/dist/extension.js +++ b/dist/extension.js @@ -1,2 +1,2 @@ /*! For license information please see extension.js.LICENSE.txt */ -(()=>{"use strict";var t={874:t=>{t.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]}},531:t=>{const e=new RegExp("[^#a-f\\d]","gi"),r=new RegExp("^#?[a-f\\d]{3}[a-f\\d]?$|^#?[a-f\\d]{6}([a-f\\d]{2})?$","i");t.exports=(t,a={})=>{if("string"!=typeof t||e.test(t)||!r.test(t))throw new TypeError("Expected a valid hex string");let n=1;8===(t=t.replace(/^#/,"")).length&&(n=Number.parseInt(t.slice(6,8),16)/255,t=t.slice(0,6)),4===t.length&&(n=Number.parseInt(t.slice(3,4).repeat(2),16)/255,t=t.slice(0,3)),3===t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]);const o=Number.parseInt(t,16),s=o>>16,i=o>>8&255,u=255&o,f="number"==typeof a.alpha?a.alpha:n;return"array"===a.format?[s,i,u,f]:"css"===a.format?`rgb(${s} ${i} ${u}${1===f?"":` / ${Number((100*f).toFixed(2))}%`})`:{red:s,green:i,blue:u,alpha:f}}},197:(t,e,r)=>{r.r(e),r.d(e,{default:()=>D});var a=r(874),n=r.n(a),o=r(531),s=r.n(o),i=new RegExp(/^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/,"i");const u="-?\\d*(?:\\.\\d+)",f=`(${u}?)`,c=`(${u}?%)`,l=`(${u}?%?)`,g=`^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,\n \\s*${c}\\s*,\n \\s*${c}\\s*\n (?:,\\s*${l}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var m=new RegExp(g);const h=`^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*\n \\s+${c}\n \\s+${c}\n \\s*(?:\\s*\\/\\s*${l}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var d=new RegExp(h);const H=`^\n rgba?\\(\n \\s*${f}\\s*,\n \\s*${f}\\s*,\n \\s*${f}\\s*\n (?:,\\s*${l}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var x=new RegExp(H);const E=`^\n rgba?\\(\n \\s*${c}\\s*,\n \\s*${c}\\s*,\n \\s*${c}\\s*\n (?:,\\s*${l}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var b=new RegExp(E);const p=`^\n rgba?\\(\n \\s*${f}\n \\s+${f}\n \\s+${f}\n \\s*(?:\\s*\\/\\s*${l}\\s*)?\n \\)\n$\n`.replace(/\n|\s/g,"");var R=new RegExp(p);const M=`^\n rgba?\\(\n \\s*${c}\n \\s+${c}\n \\s+${c}\n \\s*(?:\\s*\\/\\s*${l}\\s*)?\n \\)\n$\n`.replace(/\n|\s/g,"");var L=new RegExp(M),A=new RegExp(/^transparent$/,"i");const y=(t,e,r)=>Math.min(Math.max(e,t),r),I=t=>{let e=t;return"number"!=typeof e&&(e=e.endsWith("%")?255*parseFloat(e)/100:parseFloat(e)),y(Math.round(e),0,255)},w=t=>y(parseFloat(t),0,100);function O(t){let e=t;return"number"!=typeof e&&(e=e.endsWith("%")?parseFloat(e)/100:parseFloat(e)),y(e,0,1)}function S([,t,e,r,a=1]){return{type:"rgb",values:[t,e,r].map(I),alpha:O(null===a?1:a)}}const D=t=>{if("string"!=typeof t)return null;const e=i.exec(t);if(e)return function(t){const[e,r,a,n]=s()(t,{format:"array"});return S([null,e,r,a,n])}(e[0]);const r=d.exec(t)||m.exec(t);if(r)return function([,t,e,r,a=1]){let n=t;return n=n.endsWith("turn")?360*parseFloat(n)/1:n.endsWith("rad")?Math.round(180*parseFloat(n)/Math.PI):parseFloat(n),{type:"hsl",values:[n,w(e),w(r)],alpha:O(null===a?1:a)}}(r);const a=R.exec(t)||L.exec(t)||x.exec(t)||b.exec(t);if(a)return S(a);if(A.exec(t))return S([null,0,0,0,0]);const o=n()[t.toLowerCase()];return o?S([null,o[0],o[1],o[2],1]):null}},857:(t,e,r)=>{function a(t,e){if(typeof t!=e)throw new TypeError(`required type ${e} got ${typeof t}`);return t}function n(t,e){if(!t instanceof e)throw new TypeError(`required type ${e} got ${typeof t}`);return t}function o(t){return isNaN(t)?0:t}function s(t){return{angle:t&&t.angle?t.angle:15,results:t&&t.results?t.results:3}}function i(t,e,r){return void 0!==r&&te?e:t}function u(t,e){for(t+=e;t>=360;)t-=360;for(;t<0;)t+=360;return t}r.r(e),r.d(e,{default:()=>c});class f{#t;#e;#r;static Colors=class{static get BLACK(){return f.fromHex("#000000")}static get SILVER(){return f.fromHex("#c0c0c0")}static get GRAY(){return f.fromHex("#808080")}static get WHITE(){return f.fromHex("#ffffff")}static get MAROON(){return f.fromHex("#800000")}static get RED(){return f.fromHex("#ff0000")}static get PURPLE(){return f.fromHex("#800080")}static get FUCHSIA(){return f.fromHex("#ff00ff")}static get GREEN(){return f.fromHex("#008000")}static get LIME(){return f.fromHex("#00ff00")}static get OLIVE(){return f.fromHex("#808000")}static get YELLOW(){return f.fromHex("#ffff00")}static get NAVY(){return f.fromHex("#000080")}static get BLUE(){return f.fromHex("#0000ff")}static get TEAL(){return f.fromHex("#008080")}static get AQUA(){return f.fromHex("#00ffff")}static get ORANGE(){return f.fromHex("#ffa500")}static get ALICEBLUE(){return f.fromHex("#f0f8ff")}static get ANTIQUEWHITE(){return f.fromHex("#faebd7")}static get AQUAMARINE(){return f.fromHex("#7fffd4")}static get AZURE(){return f.fromHex("#f0ffff")}static get BEIGE(){return f.fromHex("#f5f5dc")}static get BISQUE(){return f.fromHex("#ffe4c4")}static get BLANCHEDALMOND(){return f.fromHex("#ffebcd")}static get BLUEVIOLET(){return f.fromHex("#8a2be2")}static get BROWN(){return f.fromHex("#a52a2a")}static get BURLYWOOD(){return f.fromHex("#deb887")}static get CADETBLUE(){return f.fromHex("#5f9ea0")}static get CHARTREUSE(){return f.fromHex("#7fff00")}static get CHOCOLATE(){return f.fromHex("#d2691e")}static get CORAL(){return f.fromHex("#ff7f50")}static get CORNFLOWERBLUE(){return f.fromHex("#6495ed")}static get CORNSILK(){return f.fromHex("#fff8dc")}static get CRIMSON(){return f.fromHex("#dc143c")}static get CYAN(){return f.fromHex("#00ffff")}static get DARKBLUE(){return f.fromHex("#00008b")}static get DARKCYAN(){return f.fromHex("#008b8b")}static get DARKGOLDENROD(){return f.fromHex("#b8860b")}static get DARKGRAY(){return f.fromHex("#a9a9a9")}static get DARKGREEN(){return f.fromHex("#006400")}static get DARKGREY(){return f.fromHex("#a9a9a9")}static get DARKKHAKI(){return f.fromHex("#bdb76b")}static get DARKMAGENTA(){return f.fromHex("#8b008b")}static get DARKOLIVEGREEN(){return f.fromHex("#556b2f")}static get DARKORANGE(){return f.fromHex("#ff8c00")}static get DARKORCHID(){return f.fromHex("#9932cc")}static get DARKRED(){return f.fromHex("#8b0000")}static get DARKSALMON(){return f.fromHex("#e9967a")}static get DARKSEAGREEN(){return f.fromHex("#8fbc8f")}static get DARKSLATEBLUE(){return f.fromHex("#483d8b")}static get DARKSLATEGRAY(){return f.fromHex("#2f4f4f")}static get DARKSLATEGREY(){return f.fromHex("#2f4f4f")}static get DARKTURQUOISE(){return f.fromHex("#00ced1")}static get DARKVIOLET(){return f.fromHex("#9400d3")}static get DEEPPINK(){return f.fromHex("#ff1493")}static get DEEPSKYBLUE(){return f.fromHex("#00bfff")}static get DIMGRAY(){return f.fromHex("#696969")}static get DIMGREY(){return f.fromHex("#696969")}static get DODGERBLUE(){return f.fromHex("#1e90ff")}static get FIREBRICK(){return f.fromHex("#b22222")}static get FLORALWHITE(){return f.fromHex("#fffaf0")}static get FORESTGREEN(){return f.fromHex("#228b22")}static get GAINSBORO(){return f.fromHex("#dcdcdc")}static get GHOSTWHITE(){return f.fromHex("#f8f8ff")}static get GOLD(){return f.fromHex("#ffd700")}static get GOLDENROD(){return f.fromHex("#daa520")}static get GREENYELLOW(){return f.fromHex("#adff2f")}static get GREY(){return f.fromHex("#808080")}static get HONEYDEW(){return f.fromHex("#f0fff0")}static get HOTPINK(){return f.fromHex("#ff69b4")}static get INDIANRED(){return f.fromHex("#cd5c5c")}static get INDIGO(){return f.fromHex("#4b0082")}static get IVORY(){return f.fromHex("#fffff0")}static get KHAKI(){return f.fromHex("#f0e68c")}static get LAVENDER(){return f.fromHex("#e6e6fa")}static get LAVENDERBLUSH(){return f.fromHex("#fff0f5")}static get LAWNGREEN(){return f.fromHex("#7cfc00")}static get LEMONCHIFFON(){return f.fromHex("#fffacd")}static get LIGHTBLUE(){return f.fromHex("#add8e6")}static get LIGHTCORAL(){return f.fromHex("#f08080")}static get LIGHTCYAN(){return f.fromHex("#e0ffff")}static get LIGHTGOLDENRODYELLOW(){return f.fromHex("#fafad2")}static get LIGHTGRAY(){return f.fromHex("#d3d3d3")}static get LIGHTGREEN(){return f.fromHex("#90ee90")}static get LIGHTGREY(){return f.fromHex("#d3d3d3")}static get LIGHTPINK(){return f.fromHex("#ffb6c1")}static get LIGHTSALMON(){return f.fromHex("#ffa07a")}static get LIGHTSEAGREEN(){return f.fromHex("#20b2aa")}static get LIGHTSKYBLUE(){return f.fromHex("#87cefa")}static get LIGHTSLATEGRAY(){return f.fromHex("#778899")}static get LIGHTSLATEGREY(){return f.fromHex("#778899")}static get LIGHTSTEELBLUE(){return f.fromHex("#b0c4de")}static get LIGHTYELLOW(){return f.fromHex("#ffffe0")}static get LIMEGREEN(){return f.fromHex("#32cd32")}static get LINEN(){return f.fromHex("#faf0e6")}static get MAGENTA(){return f.fromHex("#ff00ff")}static get FUCHSIA(){return f.fromHex("#ff00ff")}static get MEDIUMAQUAMARINE(){return f.fromHex("#66cdaa")}static get MEDIUMBLUE(){return f.fromHex("#0000cd")}static get MEDIUMORCHID(){return f.fromHex("#ba55d3")}static get MEDIUMPURPLE(){return f.fromHex("#9370db")}static get MEDIUMSEAGREEN(){return f.fromHex("#3cb371")}static get MEDIUMSLATEBLUE(){return f.fromHex("#7b68ee")}static get MEDIUMSPRINGGREEN(){return f.fromHex("#00fa9a")}static get MEDIUMTURQUOISE(){return f.fromHex("#48d1cc")}static get MEDIUMVIOLETRED(){return f.fromHex("#c71585")}static get MIDNIGHTBLUE(){return f.fromHex("#191970")}static get MINTCREAM(){return f.fromHex("#f5fffa")}static get MISTYROSE(){return f.fromHex("#ffe4e1")}static get MOCCASIN(){return f.fromHex("#ffe4b5")}static get NAVAJOWHITE(){return f.fromHex("#ffdead")}static get OLDLACE(){return f.fromHex("#fdf5e6")}static get OLIVEDRAB(){return f.fromHex("#6b8e23")}static get ORANGERED(){return f.fromHex("#ff4500")}static get ORCHID(){return f.fromHex("#da70d6")}static get PALEGOLDENROD(){return f.fromHex("#eee8aa")}static get PALEGREEN(){return f.fromHex("#98fb98")}static get PALETURQUOISE(){return f.fromHex("#afeeee")}static get PALEVIOLETRED(){return f.fromHex("#db7093")}static get PAPAYAWHIP(){return f.fromHex("#ffefd5")}static get PEACHPUFF(){return f.fromHex("#ffdab9")}static get PERU(){return f.fromHex("#cd853f")}static get PINK(){return f.fromHex("#ffc0cb")}static get PLUM(){return f.fromHex("#dda0dd")}static get POWDERBLUE(){return f.fromHex("#b0e0e6")}static get ROSYBROWN(){return f.fromHex("#bc8f8f")}static get ROYALBLUE(){return f.fromHex("#4169e1")}static get SADDLEBROWN(){return f.fromHex("#8b4513")}static get SALMON(){return f.fromHex("#fa8072")}static get SANDYBROWN(){return f.fromHex("#f4a460")}static get SEAGREEN(){return f.fromHex("#2e8b57")}static get SEASHELL(){return f.fromHex("#fff5ee")}static get SIENNA(){return f.fromHex("#a0522d")}static get SKYBLUE(){return f.fromHex("#87ceeb")}static get SLATEBLUE(){return f.fromHex("#6a5acd")}static get SLATEGRAY(){return f.fromHex("#708090")}static get SLATEGREY(){return f.fromHex("#708090")}static get SNOW(){return f.fromHex("#fffafa")}static get SPRINGGREEN(){return f.fromHex("#00ff7f")}static get STEELBLUE(){return f.fromHex("#4682b4")}static get TAN(){return f.fromHex("#d2b48c")}static get THISTLE(){return f.fromHex("#d8bfd8")}static get TOMATO(){return f.fromHex("#ff6347")}static get TURQUOISE(){return f.fromHex("#40e0d0")}static get VIOLET(){return f.fromHex("#ee82ee")}static get WHEAT(){return f.fromHex("#f5deb3")}static get WHITESMOKE(){return f.fromHex("#f5f5f5")}static get YELLOWGREEN(){return f.fromHex("#9acd32")}static get REBECCAPURPLE(){return f.fromHex("#663399")}};getScheme(t,e){return f.createScheme(this,t,e)}static getScheme(t,e,r){return f.createScheme(t,e,r)}static monochromatic(t,e){n(t,f);let r=s(e).results||3,a=f.toHsv(t),o=a.h,u=a.s,c=a.v/100,l=[],g=1/r;for(;r--;)l.push(f.fromHsv(o,u,i(100*c,100,0))),c=(c-g)%1;return l}monochromatic(t){return f.monochromatic(this,t)}static complementary(t){n(t,f);let e=f.toHsl(t),r=e.h,a=e.s,o=e.l;return f.fromHsl(u(r,180),a,o)}complementary(){return f.complementary(this)}static splitComplementary(t,e){n(t,f);let r=f.toHsl(t),a=s(e).angle||15,o=r.h,i=r.s,c=r.l;return[t,f.fromHsl(u(o,180+a),i,c),f.fromHsl(u(o,180-a),i,c)]}splitComplementary(t){return f.splitComplementary(this,t)}static doubleComplementary(t,e){n(t,f);let r=f.toHsl(t),a=s(e).angle||15,o=r.h,i=r.s,c=r.l;return[t,f.fromHsl(u(o,180),i,c),f.fromHsl(u(o,a),i,c),f.fromHsl(u(o,180+a),i,c)]}doubleComplementary(t){return f.doubleComplementary(this,t)}static square(t){n(t,f);let e=f.toHsl(t),r=e.h,a=e.s,o=e.l;const s=[t];for(let t=1;t<4;t++)r=u(r,90),s.push(f.fromHsl(r,a,o));return s}square(){return f.square(this)}static tetradic(t,e){n(t,f);let r=f.toHsl(t),a=s(e).angle,o=r.h,i=r.s,c=r.l;return[t,f.fromHsl(u(o,180),i,c),f.fromHsl(u(o,180-a),i,c),f.fromHsl(u(o,-a),i,c)]}tetradic(t){return f.tetradic(this,t)}static triadic(t){n(t,f);let e=f.toHsl(t),r=e.h,a=e.s,o=e.l;return[t,f.fromHsl(u(r,120),a,o),f.fromHsl(u(r,240),a,o)]}triadic(){return f.triadic(this)}static analogous(t,e){n(t,f);let r=f.toHsl(t),a=s(e).angle,o=r.h,i=r.s,c=r.l;return[t,f.fromHsl(u(o,-a),i,c),f.fromHsl(u(o,+a),i,c)]}analogous(t){return f.analogous(this,t)}static materialPalette(t,e){var r=s(e),a=r.baseLight,n="self"!==r.baseDark&&r.baseDark?r.baseDark:this.multiply(t,t);return{50:f.mix(a,t,10),100:f.mix(a,t,30),200:f.mix(a,t,50),300:f.mix(a,t,70),400:f.mix(a,t,85),500:f.mix(a,t,100),600:f.mix(n,t,92),700:f.mix(n,t,83),800:f.mix(n,t,74),900:f.mix(n,t,65),A100:f.lighten(f.saturate(f.mix(n,t,15),80),65),A200:f.lighten(f.saturate(f.mix(n,t,15),80),55),A400:f.lighten(f.saturate(f.mix(a,t,100),55),10),A700:f.lighten(f.saturate(f.mix(n,t,83),65),10)}}materialPalette(t){return f.materialPalette(this,t)}static createScheme(t,e,r){switch(e.toLowerCase()){case"analogous":case"analog":return f.analogous(t);case"triadic":case"triad":return f.triadic(t);case"tetradic":case"tetra":return f.tetradic(t);case"monochromatic":case"monochrome":case"mono":return f.monochromatic(t,r);case"complementary":case"complement":case"comp":return f.complementary(t);case"double-complementary":case"double-complement":case"double":return f.doubleComplementary(t);case"split-complementary":case"split-complement":case"split":return f.splitComplementary(t);case"square":return f.square(t);case"material":return f.materialPalette(t)}}constructor(t,e,r){if(!(0<=t&&t<=255&&0<=e&&e<=255&&0<=r&&r<=255))throw new Error("Color values out of bounds (0 - 255)");this.#t=o(a(t,"number")),this.#e=o(a(e,"number")),this.#r=o(a(r,"number")),this.alpha=1}static saturate(t,e){s(t),a(e,"number");let r=t.toHsl(),n=r.h,o=i(r.s+e,100,0),u=r.l;return f.fromHsl(n,o,u)}saturate(t){return f.saturate(this,t)}static desaturate(t,e){s(t),a(e,"number");let r=t.toHsl(),n=r.h,o=i(r.s-e,100,0),u=r.l;return f.fromHsl(n,o,u)}desaturate(t){return f.desaturate(this,t)}static grayscale(t){return f.desaturate(t,100)}grayscale(){return f.greyscale(this,100)}static greyscale(t){return f.desaturate(t,100)}greyscale(){return f.greyscale(this,100)}static lighten(t,e){n(t,f),a(e,"number");const r=t.toHsl();let o=r.h,s=r.s,u=i(r.l+e,100,0);return f.fromHsl(o,s,u)}lighten(t){return f.lighten(this,t)}static darken(t,e){return f.lighten(t,-e)}darken(t){return f.darken(this,t)}static brighten(t,e){let r=t.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-e/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-e/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-e/100*255))),new f(r.r,r.g,r.b)}brighten(t){return f.brighten(this,t)}static shiftHue(t,e){n(t,f),a(e,Number);let{h:r,s:o,l:s}=t.toHsl();return r=u(r,e),f.fromHsl(r,o,s)}shiftHue(t){return f.shiftHue(this,t)}static multiply(t,e){n(t,f),n(e,f);let{r1:r,g1:a,b1:o}=t.toRgb(),{r2:s,g2:i,b2:u}=e.toRgb();return f.fromRgb(r*s/255,a*i/255,o*u/255)}multiply(t){return f.multiply(this,t)}static mix(t,e,r=50){n(t,f),n(t,f),a(r,"number");const o=t.toRgb(),s=e.toRgb(),u=i(r,100,0)/100,c=Math.round((s.r-o.r)*u+o.r),l=Math.round((s.g-o.g)*u+o.g),g=Math.round((s.b-o.b)*u+o.b);return f.fromRgb(c,l,g)}mix(t,e){return f.mix(this,t,e)}static lerp(t,e,r=.5){a(r,"number"),n(t,f),n(e,f),r=i(r,1,0);let o=t.toRgb(),s=e.toRgb(),u=o.r/255,c=o.g/255,l=o.b/255,g=s.r/255,m=s.g/255,h=s.b/255;return f.fromRgb(255*(u+(g-u)*r),255*(c+(m-c)*r),255*(l+(h-l)*r))}lerp(t,e){return f.lerp(this,t,e)}static add(t,e){n(t,f),n(e,f);let r=t.toRgb(),a=e.toRgb(),o=r.r,s=r.g,i=r.b,u=a.r,c=a.g,l=a.b;return f.fromRgb(Math.round((o+u)/2),Math.round((s+c)/2),Math.round((i+l)/2))}add(t){return f.add(this,t)}static fromHex(t){if(!t.match(/^#?(?:[0-9a-fA-F]{3}){1,2}$/i))throw new Error('Invalid Hex code: "'+t+'"');let e="0x00",r="0x00",a="0x00";return 4==t.length?(e="0x"+t[1]+t[1],r="0x"+t[2]+t[2],a="0x"+t[3]+t[3]):3==t.length?(e="0x"+t[0]+t[0],r="0x"+t[1]+t[1],a="0x"+t[2]+t[2]):7==t.length?(e="0x"+t[1]+t[2],r="0x"+t[3]+t[4],a="0x"+t[5]+t[6]):6==t.length&&(e="0x"+t[0]+t[1],r="0x"+t[2]+t[3],a="0x"+t[4]+t[5]),new f(parseInt(e,16),parseInt(r,16),parseInt(a,16))}static fromRgb(t,e,r){return new f(t,e,r)}static fromHsl(t,e,r){if(t=a(t,"number"),e=a(e,"number"),r=a(r,"number"),!(0<=t&&t<=360))throw new Error("HSL color values out of range, hue (0 - 360)");if(!(0<=e&&e<=100))throw new Error("HSL color values out of range, sat (0 - 100)");if(!(0<=r&&r<=100))throw new Error("HSL color values out of range, lum (0 - 100)");e/=100,r/=100;let n=(1-Math.abs(2*r-1))*e,o=n*(1-Math.abs(t/60%2-1)),s=r-n/2,i=0,u=0,c=0;0<=t&&t<60?(i=n,u=o,c=0):60<=t&&t<120?(i=o,u=n,c=0):120<=t&&t<180?(i=0,u=n,c=o):180<=t&&t<240?(i=0,u=o,c=n):240<=t&&t<300?(i=o,u=0,c=n):300<=t&&t<=360&&(i=n,u=0,c=o);const l=Math.round(255*(i+s)),g=Math.round(255*(u+s)),m=Math.round(255*(c+s));return new f(l,g,m)}static fromHsv(t,e,r){if(t=a(t,"number"),e=a(e,"number"),r=a(r,"number"),!(0<=t&&t<=360))throw new Error("HSL color values out of range, hue (0 - 360)");if(!(0<=e&&e<=100))throw new Error("HSL color values out of range, sat (0 - 100)");if(!(0<=r&&r<=100))throw new Error("HSL color values out of range, lum (0 - 100)");let n=(r/=100)*(e/=100),o=n*(1-Math.abs(t/60%2-1)),s=r-n,i=0,u=0,c=0;return 0<=t&&t<60?(i=n,u=o,c=0):60<=t&&t<120?(i=o,u=n,c=0):120<=t&&t<180?(i=0,u=n,c=o):180<=t&&t<240?(i=0,u=o,c=n):240<=t&&t<300?(i=o,u=0,c=n):300<=t&&t<=360&&(i=n,u=0,c=o),new f(255*(i+s),255*(u+s),255*(c+s))}static fromCssString(t){a(t,"string");var e=document.createElement("canvas").getContext("2d");e.fillStyle=t;const r=e.fillStyle;if(!r)throw new Error("Invalid Color string");return f.fromHex(r)}static fromName(t){t=a(t,"string");const e=this.Colors[t.toUpperCase()];if(!e)throw new Error("Invalid Color name");return e}static toHex(t){t=n(t,f);let e=Math.round(t.#t).toString(16),r=Math.round(t.#e).toString(16),a=Math.round(t.#r).toString(16);return 1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),1==a.length&&(a="0"+a),"#"+e+r+a}static toHsl(t){let e=0,r=0,a=0,s=(t=n(t,f)).#t/255,i=t.#e/255,u=t.#r/255,c=Math.min(Math.min(s,i),u),l=Math.max(Math.max(s,i),u),g=l-c;return e=0===g?0:l===s?(i-u)/g%6:l===i?(u-s)/g+2:(s-i)/g+4,e=Math.round(60*e),e<0&&(e+=360),a=(l+c)/2,r=0===g?0:g/(1-Math.abs(2*a-1)),r=parseFloat(Math.abs(100*r)),a=parseFloat(Math.abs(100*a)),{h:o(e),s:o(r),l:o(a)}}static toHsv(t){let e=0,r=0,a=0,n=t.#t/255,s=t.#e/255,i=t.#r/255,u=Math.min(Math.min(n,s),i),f=Math.max(Math.max(n,s),i),c=f-u;return e=0===c?0:f===n?(s-i)/c%6:f===s?(i-n)/c+2:(n-s)/c+4,e=Math.round(60*e),e<0&&(e+=360),0!==f&&(r=c/f*100),a=100*f,{h:o(e),s:o(r),v:o(a)}}static toRgb(t){return n(t,f),{r:t.#t,g:t.#e,b:t.#r}}static toCmyk(t){n(t,f);let{r:e,g:r,b:a}=t.toRgb(),s=1-e/255,i=1-r/255,u=1-a/255,c=Math.min(s,Math.min(i,u));return s=(s-c)/(1-c),i=(i-c)/(1-c),u=(u-c)/(1-c),s=o(Math.round(1e4*s)/100),i=o(Math.round(1e4*i)/100),u=o(Math.round(1e4*u)/100),c=o(Math.round(1e4*c)/100),{c:s,m:i,y:u,k:c}}toHsl(){return f.toHsl(this)}toHsv(){return f.toHsv(this)}toHex(){return f.toHex(this)}toRgb(){return f.toRgb(this)}toCmyk(){return f.toCmyk(this)}static random(){const t=Math.floor(255*Math.random()),e=Math.floor(255*Math.random()),r=Math.floor(255*Math.random());return new f(t,e,r)}toString(t="hex"){a(t,"string");const e=this.toRgb(),r=this.toHsl();switch(t.toLowerCase()){case"hex":return this.toHex();case"hexa":let t=Math.round(255*this.alpha).toString(16);return 1===t.length&&(t="0"+t),this.toHex()+t;case"rgb":return`rgb(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)})`;case"rgba":return`rgba(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)}, ${this.alpha})`;case"hsl":return`hsl(${Math.round(r.h)}, ${Math.round(r.s)}%, ${Math.round(r.l)}%)`;case"hsla":return`hsla(${Math.round(r.h)}, ${Math.round(r.s)}%, ${Math.round(r.l)}%, ${this.alpha})`;case"hsv":const a=this.toHsv();return`hsv(${Math.round(a.h)}, ${Math.round(a.s)}%, ${Math.round(a.v)}%)`;case"cmyk":const n=this.toCmyk();return`cmyk(${Math.round(n.c)}%, ${Math.round(n.m)}%, ${Math.round(n.y)}%, ${Math.round(n.k)}%)`}}valueOf(){return parseInt("0x"+this.toHex().slice(1))}}const c=f},496:t=>{t.exports=require("vscode")}},e={};function r(a){var n=e[a];if(void 0!==n)return n.exports;var o=e[a]={exports:{}};return t[a](o,o.exports,r),o.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var a in e)r.o(e,a)&&!r.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};(()=>{var t=a;Object.defineProperty(t,"__esModule",{value:!0}),t.deactivate=t.activate=void 0;const e=r(496),n=r(857),o=r(197);function s(t,r){const a=Array.from(t.slice(0,r).matchAll(/\n/g)),n=a.length,o=r-a[n-1].index;return new e.Position(n,o-1)}class i{constructor(){let t=[];e.workspace.onDidChangeTextDocument(this._onDidChangeTextDocument,this,t),e.workspace.onDidChangeConfiguration(this._onDidChangeConfiguration,this,t),this.register()}get languages(){return e.workspace.getConfiguration("vscode-color-picker").get("languages")}_onDidChangeTextDocument(t){e.window.activeTextEditor,t.document.getText()}_onDidChangeConfiguration(){}register(){this.languages.forEach((t=>{e.languages.registerColorProvider(t,{provideDocumentColors:(t,r)=>class{static getMatches(t){const r=t.matchAll(/(#(?:[\da-f]{3,4}){2}|rgb\((?:\d{1,3},\s*){2}\d{1,3}\)|rgba\((?:\d{1,3},\s*){3}\d*\.?\d+\)|hsl\(\d{1,3}(?:,\s*\d{1,3}%){2}\)|hsla\(\d{1,3}(?:,\s*\d{1,3}%){2},\s*\d*\.?\d+\))/gi);return Array.from(r).map((r=>{const a=r[0],i=a.length;let u;a.startsWith("hsl(")?u="hsl":a.startsWith("hsla(")?u="hsla":a.startsWith("rgb(")?u="rgb":a.startsWith("rgba(")?u="rgba":a.startsWith("#")&&(u="hex");const f=new e.Range(s(t,r.index),s(t,r.index+a.length)),c=function(t){try{const r=(0,o.default)(t);if(!r)throw new Error("invalid color string");if("rgb"===r.type){const t=r.values[0],a=r.values[1],n=r.values[2],o=r.alpha;return new e.Color(t/255,a/255,n/255,o)}{const t=r.values[0],a=r.values[1],o=r.values[2],s=r.alpha,{r:i,g:u,b:f}=n.default.fromHsl(t,a,o).toRgb();return new e.Color(i/255,u/255,f/255,s)}}catch(t){return console.log(t),null}}(a);if(c)return{color:c,type:u,length:i,range:f}}))}}.getMatches(t.getText()).map(((t,r)=>new e.ColorInformation(t.range,t.color))),provideColorPresentations(t,r,a){let o=n.default.fromRgb(255*t.red,255*t.green,255*t.blue);o.alpha=t.alpha,o.toString("hex"),o.toString("hsl");let s=r.document.getText(r.range);const i=new e.ColorPresentation(o.toString("hex")),u=new e.ColorPresentation(o.toString("hexa")),f=new e.ColorPresentation(o.toString("hsl")),c=new e.ColorPresentation(o.toString("hsla")),l=new e.ColorPresentation(o.toString("rgb")),g=new e.ColorPresentation(o.toString("rgba"));let m=!1;return s.startsWith("#")&&9===s.length&&(m=!0),s.startsWith("hsla")&&(m=!0),s.startsWith("rgba")&&(m=!0),1!==t.alpha&&(m=!0),m?[u,c,g]:[i,f,l]}})}))}dispose(){}}t.activate=function(t){const e=new i;t.subscriptions.push(e)},t.deactivate=function(){}})(),module.exports=a})(); \ No newline at end of file +(()=>{"use strict";var t={874:t=>{t.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]}},531:t=>{const e=new RegExp("[^#a-f\\d]","gi"),r=new RegExp("^#?[a-f\\d]{3}[a-f\\d]?$|^#?[a-f\\d]{6}([a-f\\d]{2})?$","i");t.exports=(t,a={})=>{if("string"!=typeof t||e.test(t)||!r.test(t))throw new TypeError("Expected a valid hex string");let n=1;8===(t=t.replace(/^#/,"")).length&&(n=Number.parseInt(t.slice(6,8),16)/255,t=t.slice(0,6)),4===t.length&&(n=Number.parseInt(t.slice(3,4).repeat(2),16)/255,t=t.slice(0,3)),3===t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]);const o=Number.parseInt(t,16),s=o>>16,i=o>>8&255,u=255&o,f="number"==typeof a.alpha?a.alpha:n;return"array"===a.format?[s,i,u,f]:"css"===a.format?`rgb(${s} ${i} ${u}${1===f?"":` / ${Number((100*f).toFixed(2))}%`})`:{red:s,green:i,blue:u,alpha:f}}},197:(t,e,r)=>{r.r(e),r.d(e,{default:()=>D});var a=r(874),n=r.n(a),o=r(531),s=r.n(o),i=new RegExp(/^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/,"i");const u="-?\\d*(?:\\.\\d+)",f=`(${u}?)`,c=`(${u}?%)`,l=`(${u}?%?)`,g=`^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,\n \\s*${c}\\s*,\n \\s*${c}\\s*\n (?:,\\s*${l}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var m=new RegExp(g);const h=`^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*\n \\s+${c}\n \\s+${c}\n \\s*(?:\\s*\\/\\s*${l}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var d=new RegExp(h);const H=`^\n rgba?\\(\n \\s*${f}\\s*,\n \\s*${f}\\s*,\n \\s*${f}\\s*\n (?:,\\s*${l}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var x=new RegExp(H);const E=`^\n rgba?\\(\n \\s*${c}\\s*,\n \\s*${c}\\s*,\n \\s*${c}\\s*\n (?:,\\s*${l}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var b=new RegExp(E);const p=`^\n rgba?\\(\n \\s*${f}\n \\s+${f}\n \\s+${f}\n \\s*(?:\\s*\\/\\s*${l}\\s*)?\n \\)\n$\n`.replace(/\n|\s/g,"");var R=new RegExp(p);const M=`^\n rgba?\\(\n \\s*${c}\n \\s+${c}\n \\s+${c}\n \\s*(?:\\s*\\/\\s*${l}\\s*)?\n \\)\n$\n`.replace(/\n|\s/g,"");var L=new RegExp(M),A=new RegExp(/^transparent$/,"i");const y=(t,e,r)=>Math.min(Math.max(e,t),r),I=t=>{let e=t;return"number"!=typeof e&&(e=e.endsWith("%")?255*parseFloat(e)/100:parseFloat(e)),y(Math.round(e),0,255)},w=t=>y(parseFloat(t),0,100);function O(t){let e=t;return"number"!=typeof e&&(e=e.endsWith("%")?parseFloat(e)/100:parseFloat(e)),y(e,0,1)}function S([,t,e,r,a=1]){return{type:"rgb",values:[t,e,r].map(I),alpha:O(null===a?1:a)}}const D=t=>{if("string"!=typeof t)return null;const e=i.exec(t);if(e)return function(t){const[e,r,a,n]=s()(t,{format:"array"});return S([null,e,r,a,n])}(e[0]);const r=d.exec(t)||m.exec(t);if(r)return function([,t,e,r,a=1]){let n=t;return n=n.endsWith("turn")?360*parseFloat(n)/1:n.endsWith("rad")?Math.round(180*parseFloat(n)/Math.PI):parseFloat(n),{type:"hsl",values:[n,w(e),w(r)],alpha:O(null===a?1:a)}}(r);const a=R.exec(t)||L.exec(t)||x.exec(t)||b.exec(t);if(a)return S(a);if(A.exec(t))return S([null,0,0,0,0]);const o=n()[t.toLowerCase()];return o?S([null,o[0],o[1],o[2],1]):null}},857:(t,e,r)=>{function a(t,e){if(typeof t!=e)throw new TypeError(`required type ${e} got ${typeof t}`);return t}function n(t,e){if(!t instanceof e)throw new TypeError(`required type ${e} got ${typeof t}`);return t}function o(t){return isNaN(t)?0:t}function s(t){return{angle:t&&t.angle?t.angle:15,results:t&&t.results?t.results:3}}function i(t,e,r){return void 0!==r&&te?e:t}function u(t,e){for(t+=e;t>=360;)t-=360;for(;t<0;)t+=360;return t}r.r(e),r.d(e,{default:()=>c});class f{#t;#e;#r;static Colors=class{static get BLACK(){return f.fromHex("#000000")}static get SILVER(){return f.fromHex("#c0c0c0")}static get GRAY(){return f.fromHex("#808080")}static get WHITE(){return f.fromHex("#ffffff")}static get MAROON(){return f.fromHex("#800000")}static get RED(){return f.fromHex("#ff0000")}static get PURPLE(){return f.fromHex("#800080")}static get FUCHSIA(){return f.fromHex("#ff00ff")}static get GREEN(){return f.fromHex("#008000")}static get LIME(){return f.fromHex("#00ff00")}static get OLIVE(){return f.fromHex("#808000")}static get YELLOW(){return f.fromHex("#ffff00")}static get NAVY(){return f.fromHex("#000080")}static get BLUE(){return f.fromHex("#0000ff")}static get TEAL(){return f.fromHex("#008080")}static get AQUA(){return f.fromHex("#00ffff")}static get ORANGE(){return f.fromHex("#ffa500")}static get ALICEBLUE(){return f.fromHex("#f0f8ff")}static get ANTIQUEWHITE(){return f.fromHex("#faebd7")}static get AQUAMARINE(){return f.fromHex("#7fffd4")}static get AZURE(){return f.fromHex("#f0ffff")}static get BEIGE(){return f.fromHex("#f5f5dc")}static get BISQUE(){return f.fromHex("#ffe4c4")}static get BLANCHEDALMOND(){return f.fromHex("#ffebcd")}static get BLUEVIOLET(){return f.fromHex("#8a2be2")}static get BROWN(){return f.fromHex("#a52a2a")}static get BURLYWOOD(){return f.fromHex("#deb887")}static get CADETBLUE(){return f.fromHex("#5f9ea0")}static get CHARTREUSE(){return f.fromHex("#7fff00")}static get CHOCOLATE(){return f.fromHex("#d2691e")}static get CORAL(){return f.fromHex("#ff7f50")}static get CORNFLOWERBLUE(){return f.fromHex("#6495ed")}static get CORNSILK(){return f.fromHex("#fff8dc")}static get CRIMSON(){return f.fromHex("#dc143c")}static get CYAN(){return f.fromHex("#00ffff")}static get DARKBLUE(){return f.fromHex("#00008b")}static get DARKCYAN(){return f.fromHex("#008b8b")}static get DARKGOLDENROD(){return f.fromHex("#b8860b")}static get DARKGRAY(){return f.fromHex("#a9a9a9")}static get DARKGREEN(){return f.fromHex("#006400")}static get DARKGREY(){return f.fromHex("#a9a9a9")}static get DARKKHAKI(){return f.fromHex("#bdb76b")}static get DARKMAGENTA(){return f.fromHex("#8b008b")}static get DARKOLIVEGREEN(){return f.fromHex("#556b2f")}static get DARKORANGE(){return f.fromHex("#ff8c00")}static get DARKORCHID(){return f.fromHex("#9932cc")}static get DARKRED(){return f.fromHex("#8b0000")}static get DARKSALMON(){return f.fromHex("#e9967a")}static get DARKSEAGREEN(){return f.fromHex("#8fbc8f")}static get DARKSLATEBLUE(){return f.fromHex("#483d8b")}static get DARKSLATEGRAY(){return f.fromHex("#2f4f4f")}static get DARKSLATEGREY(){return f.fromHex("#2f4f4f")}static get DARKTURQUOISE(){return f.fromHex("#00ced1")}static get DARKVIOLET(){return f.fromHex("#9400d3")}static get DEEPPINK(){return f.fromHex("#ff1493")}static get DEEPSKYBLUE(){return f.fromHex("#00bfff")}static get DIMGRAY(){return f.fromHex("#696969")}static get DIMGREY(){return f.fromHex("#696969")}static get DODGERBLUE(){return f.fromHex("#1e90ff")}static get FIREBRICK(){return f.fromHex("#b22222")}static get FLORALWHITE(){return f.fromHex("#fffaf0")}static get FORESTGREEN(){return f.fromHex("#228b22")}static get GAINSBORO(){return f.fromHex("#dcdcdc")}static get GHOSTWHITE(){return f.fromHex("#f8f8ff")}static get GOLD(){return f.fromHex("#ffd700")}static get GOLDENROD(){return f.fromHex("#daa520")}static get GREENYELLOW(){return f.fromHex("#adff2f")}static get GREY(){return f.fromHex("#808080")}static get HONEYDEW(){return f.fromHex("#f0fff0")}static get HOTPINK(){return f.fromHex("#ff69b4")}static get INDIANRED(){return f.fromHex("#cd5c5c")}static get INDIGO(){return f.fromHex("#4b0082")}static get IVORY(){return f.fromHex("#fffff0")}static get KHAKI(){return f.fromHex("#f0e68c")}static get LAVENDER(){return f.fromHex("#e6e6fa")}static get LAVENDERBLUSH(){return f.fromHex("#fff0f5")}static get LAWNGREEN(){return f.fromHex("#7cfc00")}static get LEMONCHIFFON(){return f.fromHex("#fffacd")}static get LIGHTBLUE(){return f.fromHex("#add8e6")}static get LIGHTCORAL(){return f.fromHex("#f08080")}static get LIGHTCYAN(){return f.fromHex("#e0ffff")}static get LIGHTGOLDENRODYELLOW(){return f.fromHex("#fafad2")}static get LIGHTGRAY(){return f.fromHex("#d3d3d3")}static get LIGHTGREEN(){return f.fromHex("#90ee90")}static get LIGHTGREY(){return f.fromHex("#d3d3d3")}static get LIGHTPINK(){return f.fromHex("#ffb6c1")}static get LIGHTSALMON(){return f.fromHex("#ffa07a")}static get LIGHTSEAGREEN(){return f.fromHex("#20b2aa")}static get LIGHTSKYBLUE(){return f.fromHex("#87cefa")}static get LIGHTSLATEGRAY(){return f.fromHex("#778899")}static get LIGHTSLATEGREY(){return f.fromHex("#778899")}static get LIGHTSTEELBLUE(){return f.fromHex("#b0c4de")}static get LIGHTYELLOW(){return f.fromHex("#ffffe0")}static get LIMEGREEN(){return f.fromHex("#32cd32")}static get LINEN(){return f.fromHex("#faf0e6")}static get MAGENTA(){return f.fromHex("#ff00ff")}static get FUCHSIA(){return f.fromHex("#ff00ff")}static get MEDIUMAQUAMARINE(){return f.fromHex("#66cdaa")}static get MEDIUMBLUE(){return f.fromHex("#0000cd")}static get MEDIUMORCHID(){return f.fromHex("#ba55d3")}static get MEDIUMPURPLE(){return f.fromHex("#9370db")}static get MEDIUMSEAGREEN(){return f.fromHex("#3cb371")}static get MEDIUMSLATEBLUE(){return f.fromHex("#7b68ee")}static get MEDIUMSPRINGGREEN(){return f.fromHex("#00fa9a")}static get MEDIUMTURQUOISE(){return f.fromHex("#48d1cc")}static get MEDIUMVIOLETRED(){return f.fromHex("#c71585")}static get MIDNIGHTBLUE(){return f.fromHex("#191970")}static get MINTCREAM(){return f.fromHex("#f5fffa")}static get MISTYROSE(){return f.fromHex("#ffe4e1")}static get MOCCASIN(){return f.fromHex("#ffe4b5")}static get NAVAJOWHITE(){return f.fromHex("#ffdead")}static get OLDLACE(){return f.fromHex("#fdf5e6")}static get OLIVEDRAB(){return f.fromHex("#6b8e23")}static get ORANGERED(){return f.fromHex("#ff4500")}static get ORCHID(){return f.fromHex("#da70d6")}static get PALEGOLDENROD(){return f.fromHex("#eee8aa")}static get PALEGREEN(){return f.fromHex("#98fb98")}static get PALETURQUOISE(){return f.fromHex("#afeeee")}static get PALEVIOLETRED(){return f.fromHex("#db7093")}static get PAPAYAWHIP(){return f.fromHex("#ffefd5")}static get PEACHPUFF(){return f.fromHex("#ffdab9")}static get PERU(){return f.fromHex("#cd853f")}static get PINK(){return f.fromHex("#ffc0cb")}static get PLUM(){return f.fromHex("#dda0dd")}static get POWDERBLUE(){return f.fromHex("#b0e0e6")}static get ROSYBROWN(){return f.fromHex("#bc8f8f")}static get ROYALBLUE(){return f.fromHex("#4169e1")}static get SADDLEBROWN(){return f.fromHex("#8b4513")}static get SALMON(){return f.fromHex("#fa8072")}static get SANDYBROWN(){return f.fromHex("#f4a460")}static get SEAGREEN(){return f.fromHex("#2e8b57")}static get SEASHELL(){return f.fromHex("#fff5ee")}static get SIENNA(){return f.fromHex("#a0522d")}static get SKYBLUE(){return f.fromHex("#87ceeb")}static get SLATEBLUE(){return f.fromHex("#6a5acd")}static get SLATEGRAY(){return f.fromHex("#708090")}static get SLATEGREY(){return f.fromHex("#708090")}static get SNOW(){return f.fromHex("#fffafa")}static get SPRINGGREEN(){return f.fromHex("#00ff7f")}static get STEELBLUE(){return f.fromHex("#4682b4")}static get TAN(){return f.fromHex("#d2b48c")}static get THISTLE(){return f.fromHex("#d8bfd8")}static get TOMATO(){return f.fromHex("#ff6347")}static get TURQUOISE(){return f.fromHex("#40e0d0")}static get VIOLET(){return f.fromHex("#ee82ee")}static get WHEAT(){return f.fromHex("#f5deb3")}static get WHITESMOKE(){return f.fromHex("#f5f5f5")}static get YELLOWGREEN(){return f.fromHex("#9acd32")}static get REBECCAPURPLE(){return f.fromHex("#663399")}};getScheme(t,e){return f.createScheme(this,t,e)}static getScheme(t,e,r){return f.createScheme(t,e,r)}static monochromatic(t,e){n(t,f);let r=s(e).results||3,a=f.toHsv(t),o=a.h,u=a.s,c=a.v/100,l=[],g=1/r;for(;r--;)l.push(f.fromHsv(o,u,i(100*c,100,0))),c=(c-g)%1;return l}monochromatic(t){return f.monochromatic(this,t)}static complementary(t){n(t,f);let e=f.toHsl(t),r=e.h,a=e.s,o=e.l;return f.fromHsl(u(r,180),a,o)}complementary(){return f.complementary(this)}static splitComplementary(t,e){n(t,f);let r=f.toHsl(t),a=s(e).angle||15,o=r.h,i=r.s,c=r.l;return[t,f.fromHsl(u(o,180+a),i,c),f.fromHsl(u(o,180-a),i,c)]}splitComplementary(t){return f.splitComplementary(this,t)}static doubleComplementary(t,e){n(t,f);let r=f.toHsl(t),a=s(e).angle||15,o=r.h,i=r.s,c=r.l;return[t,f.fromHsl(u(o,180),i,c),f.fromHsl(u(o,a),i,c),f.fromHsl(u(o,180+a),i,c)]}doubleComplementary(t){return f.doubleComplementary(this,t)}static square(t){n(t,f);let e=f.toHsl(t),r=e.h,a=e.s,o=e.l;const s=[t];for(let t=1;t<4;t++)r=u(r,90),s.push(f.fromHsl(r,a,o));return s}square(){return f.square(this)}static tetradic(t,e){n(t,f);let r=f.toHsl(t),a=s(e).angle,o=r.h,i=r.s,c=r.l;return[t,f.fromHsl(u(o,180),i,c),f.fromHsl(u(o,180-a),i,c),f.fromHsl(u(o,-a),i,c)]}tetradic(t){return f.tetradic(this,t)}static triadic(t){n(t,f);let e=f.toHsl(t),r=e.h,a=e.s,o=e.l;return[t,f.fromHsl(u(r,120),a,o),f.fromHsl(u(r,240),a,o)]}triadic(){return f.triadic(this)}static analogous(t,e){n(t,f);let r=f.toHsl(t),a=s(e).angle,o=r.h,i=r.s,c=r.l;return[t,f.fromHsl(u(o,-a),i,c),f.fromHsl(u(o,+a),i,c)]}analogous(t){return f.analogous(this,t)}static materialPalette(t,e){var r=s(e),a=r.baseLight,n="self"!==r.baseDark&&r.baseDark?r.baseDark:this.multiply(t,t);return{50:f.mix(a,t,10),100:f.mix(a,t,30),200:f.mix(a,t,50),300:f.mix(a,t,70),400:f.mix(a,t,85),500:f.mix(a,t,100),600:f.mix(n,t,92),700:f.mix(n,t,83),800:f.mix(n,t,74),900:f.mix(n,t,65),A100:f.lighten(f.saturate(f.mix(n,t,15),80),65),A200:f.lighten(f.saturate(f.mix(n,t,15),80),55),A400:f.lighten(f.saturate(f.mix(a,t,100),55),10),A700:f.lighten(f.saturate(f.mix(n,t,83),65),10)}}materialPalette(t){return f.materialPalette(this,t)}static createScheme(t,e,r){switch(e.toLowerCase()){case"analogous":case"analog":return f.analogous(t);case"triadic":case"triad":return f.triadic(t);case"tetradic":case"tetra":return f.tetradic(t);case"monochromatic":case"monochrome":case"mono":return f.monochromatic(t,r);case"complementary":case"complement":case"comp":return f.complementary(t);case"double-complementary":case"double-complement":case"double":return f.doubleComplementary(t);case"split-complementary":case"split-complement":case"split":return f.splitComplementary(t);case"square":return f.square(t);case"material":return f.materialPalette(t)}}constructor(t,e,r){if(!(0<=t&&t<=255&&0<=e&&e<=255&&0<=r&&r<=255))throw new Error("Color values out of bounds (0 - 255)");this.#t=o(a(t,"number")),this.#e=o(a(e,"number")),this.#r=o(a(r,"number")),this.alpha=1}static saturate(t,e){s(t),a(e,"number");let r=t.toHsl(),n=r.h,o=i(r.s+e,100,0),u=r.l;return f.fromHsl(n,o,u)}saturate(t){return f.saturate(this,t)}static desaturate(t,e){s(t),a(e,"number");let r=t.toHsl(),n=r.h,o=i(r.s-e,100,0),u=r.l;return f.fromHsl(n,o,u)}desaturate(t){return f.desaturate(this,t)}static grayscale(t){return f.desaturate(t,100)}grayscale(){return f.greyscale(this,100)}static greyscale(t){return f.desaturate(t,100)}greyscale(){return f.greyscale(this,100)}static lighten(t,e){n(t,f),a(e,"number");const r=t.toHsl();let o=r.h,s=r.s,u=i(r.l+e,100,0);return f.fromHsl(o,s,u)}lighten(t){return f.lighten(this,t)}static darken(t,e){return f.lighten(t,-e)}darken(t){return f.darken(this,t)}static brighten(t,e){let r=t.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-e/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-e/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-e/100*255))),new f(r.r,r.g,r.b)}brighten(t){return f.brighten(this,t)}static shiftHue(t,e){n(t,f),a(e,Number);let{h:r,s:o,l:s}=t.toHsl();return r=u(r,e),f.fromHsl(r,o,s)}shiftHue(t){return f.shiftHue(this,t)}static multiply(t,e){n(t,f),n(e,f);let{r1:r,g1:a,b1:o}=t.toRgb(),{r2:s,g2:i,b2:u}=e.toRgb();return f.fromRgb(r*s/255,a*i/255,o*u/255)}multiply(t){return f.multiply(this,t)}static mix(t,e,r=50){n(t,f),n(t,f),a(r,"number");const o=t.toRgb(),s=e.toRgb(),u=i(r,100,0)/100,c=Math.round((s.r-o.r)*u+o.r),l=Math.round((s.g-o.g)*u+o.g),g=Math.round((s.b-o.b)*u+o.b);return f.fromRgb(c,l,g)}mix(t,e){return f.mix(this,t,e)}static lerp(t,e,r=.5){a(r,"number"),n(t,f),n(e,f),r=i(r,1,0);let o=t.toRgb(),s=e.toRgb(),u=o.r/255,c=o.g/255,l=o.b/255,g=s.r/255,m=s.g/255,h=s.b/255;return f.fromRgb(255*(u+(g-u)*r),255*(c+(m-c)*r),255*(l+(h-l)*r))}lerp(t,e){return f.lerp(this,t,e)}static add(t,e){n(t,f),n(e,f);let r=t.toRgb(),a=e.toRgb(),o=r.r,s=r.g,i=r.b,u=a.r,c=a.g,l=a.b;return f.fromRgb(Math.round((o+u)/2),Math.round((s+c)/2),Math.round((i+l)/2))}add(t){return f.add(this,t)}static fromHex(t){if(!t.match(/^#?(?:[0-9a-fA-F]{3}){1,2}$/i))throw new Error('Invalid Hex code: "'+t+'"');let e="0x00",r="0x00",a="0x00";return 4==t.length?(e="0x"+t[1]+t[1],r="0x"+t[2]+t[2],a="0x"+t[3]+t[3]):3==t.length?(e="0x"+t[0]+t[0],r="0x"+t[1]+t[1],a="0x"+t[2]+t[2]):7==t.length?(e="0x"+t[1]+t[2],r="0x"+t[3]+t[4],a="0x"+t[5]+t[6]):6==t.length&&(e="0x"+t[0]+t[1],r="0x"+t[2]+t[3],a="0x"+t[4]+t[5]),new f(parseInt(e,16),parseInt(r,16),parseInt(a,16))}static fromRgb(t,e,r){return new f(t,e,r)}static fromHsl(t,e,r){if(t=a(t,"number"),e=a(e,"number"),r=a(r,"number"),!(0<=t&&t<=360))throw new Error("HSL color values out of range, hue (0 - 360)");if(!(0<=e&&e<=100))throw new Error("HSL color values out of range, sat (0 - 100)");if(!(0<=r&&r<=100))throw new Error("HSL color values out of range, lum (0 - 100)");e/=100,r/=100;let n=(1-Math.abs(2*r-1))*e,o=n*(1-Math.abs(t/60%2-1)),s=r-n/2,i=0,u=0,c=0;0<=t&&t<60?(i=n,u=o,c=0):60<=t&&t<120?(i=o,u=n,c=0):120<=t&&t<180?(i=0,u=n,c=o):180<=t&&t<240?(i=0,u=o,c=n):240<=t&&t<300?(i=o,u=0,c=n):300<=t&&t<=360&&(i=n,u=0,c=o);const l=Math.round(255*(i+s)),g=Math.round(255*(u+s)),m=Math.round(255*(c+s));return new f(l,g,m)}static fromHsv(t,e,r){if(t=a(t,"number"),e=a(e,"number"),r=a(r,"number"),!(0<=t&&t<=360))throw new Error("HSL color values out of range, hue (0 - 360)");if(!(0<=e&&e<=100))throw new Error("HSL color values out of range, sat (0 - 100)");if(!(0<=r&&r<=100))throw new Error("HSL color values out of range, lum (0 - 100)");let n=(r/=100)*(e/=100),o=n*(1-Math.abs(t/60%2-1)),s=r-n,i=0,u=0,c=0;return 0<=t&&t<60?(i=n,u=o,c=0):60<=t&&t<120?(i=o,u=n,c=0):120<=t&&t<180?(i=0,u=n,c=o):180<=t&&t<240?(i=0,u=o,c=n):240<=t&&t<300?(i=o,u=0,c=n):300<=t&&t<=360&&(i=n,u=0,c=o),new f(255*(i+s),255*(u+s),255*(c+s))}static fromCssString(t){a(t,"string");var e=document.createElement("canvas").getContext("2d");e.fillStyle=t;const r=e.fillStyle;if(!r)throw new Error("Invalid Color string");return f.fromHex(r)}static fromName(t){t=a(t,"string");const e=this.Colors[t.toUpperCase()];if(!e)throw new Error("Invalid Color name");return e}static toHex(t){t=n(t,f);let e=Math.round(t.#t).toString(16),r=Math.round(t.#e).toString(16),a=Math.round(t.#r).toString(16);return 1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),1==a.length&&(a="0"+a),"#"+e+r+a}static toHsl(t){let e=0,r=0,a=0,s=(t=n(t,f)).#t/255,i=t.#e/255,u=t.#r/255,c=Math.min(Math.min(s,i),u),l=Math.max(Math.max(s,i),u),g=l-c;return e=0===g?0:l===s?(i-u)/g%6:l===i?(u-s)/g+2:(s-i)/g+4,e=Math.round(60*e),e<0&&(e+=360),a=(l+c)/2,r=0===g?0:g/(1-Math.abs(2*a-1)),r=parseFloat(Math.abs(100*r)),a=parseFloat(Math.abs(100*a)),{h:o(e),s:o(r),l:o(a)}}static toHsv(t){let e=0,r=0,a=0,n=t.#t/255,s=t.#e/255,i=t.#r/255,u=Math.min(Math.min(n,s),i),f=Math.max(Math.max(n,s),i),c=f-u;return e=0===c?0:f===n?(s-i)/c%6:f===s?(i-n)/c+2:(n-s)/c+4,e=Math.round(60*e),e<0&&(e+=360),0!==f&&(r=c/f*100),a=100*f,{h:o(e),s:o(r),v:o(a)}}static toRgb(t){return n(t,f),{r:t.#t,g:t.#e,b:t.#r}}static toCmyk(t){n(t,f);let{r:e,g:r,b:a}=t.toRgb(),s=1-e/255,i=1-r/255,u=1-a/255,c=Math.min(s,Math.min(i,u));return s=(s-c)/(1-c),i=(i-c)/(1-c),u=(u-c)/(1-c),s=o(Math.round(1e4*s)/100),i=o(Math.round(1e4*i)/100),u=o(Math.round(1e4*u)/100),c=o(Math.round(1e4*c)/100),{c:s,m:i,y:u,k:c}}toHsl(){return f.toHsl(this)}toHsv(){return f.toHsv(this)}toHex(){return f.toHex(this)}toRgb(){return f.toRgb(this)}toCmyk(){return f.toCmyk(this)}static random(){const t=Math.floor(255*Math.random()),e=Math.floor(255*Math.random()),r=Math.floor(255*Math.random());return new f(t,e,r)}toString(t="hex"){a(t,"string");const e=this.toRgb(),r=this.toHsl();switch(t.toLowerCase()){case"hex":return this.toHex();case"hexa":let t=Math.round(255*this.alpha).toString(16);return 1===t.length&&(t="0"+t),this.toHex()+t;case"rgb":return`rgb(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)})`;case"rgba":return`rgba(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)}, ${this.alpha})`;case"hsl":return`hsl(${Math.round(r.h)}, ${Math.round(r.s)}%, ${Math.round(r.l)}%)`;case"hsla":return`hsla(${Math.round(r.h)}, ${Math.round(r.s)}%, ${Math.round(r.l)}%, ${this.alpha})`;case"hsv":const a=this.toHsv();return`hsv(${Math.round(a.h)}, ${Math.round(a.s)}%, ${Math.round(a.v)}%)`;case"cmyk":const n=this.toCmyk();return`cmyk(${Math.round(n.c)}%, ${Math.round(n.m)}%, ${Math.round(n.y)}%, ${Math.round(n.k)}%)`}}valueOf(){return parseInt("0x"+this.toHex().slice(1))}}const c=f},496:t=>{t.exports=require("vscode")}},e={};function r(a){var n=e[a];if(void 0!==n)return n.exports;var o=e[a]={exports:{}};return t[a](o,o.exports,r),o.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var a in e)r.o(e,a)&&!r.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};(()=>{var t=a;Object.defineProperty(t,"__esModule",{value:!0}),t.deactivate=t.activate=void 0;const e=r(496),n=r(857),o=r(197);function s(t,r){const a=Array.from(t.slice(0,r).matchAll(/\n/g)),n=a.length,o=r-a[n-1].index;return new e.Position(n,o-1)}class i{constructor(){let t=[];e.workspace.onDidChangeTextDocument(this._onDidChangeTextDocument,this,t),e.workspace.onDidChangeConfiguration(this._onDidChangeConfiguration,this,t),this.register()}get languages(){return e.workspace.getConfiguration("vscode-color-picker").get("languages")}_onDidChangeTextDocument(t){e.window.activeTextEditor,t.document.getText()}_onDidChangeConfiguration(){}register(){this.languages.forEach((t=>{e.languages.registerColorProvider(t,{provideDocumentColors:(t,r)=>class{static getMatches(t){const r=t.matchAll(/(#(?:[\da-f]{3,4}){2}|#(?:[\da-f]{1,2}){3}|rgb\((?:\d{1,3},\s*){2}\d{1,3}\)|rgba\((?:\d{1,3},\s*){3}\d*\.?\d+\)|hsl\(\d{1,3}(?:,\s*\d{1,3}%){2}\)|hsla\(\d{1,3}(?:,\s*\d{1,3}%){2},\s*\d*\.?\d+\))/gi);return Array.from(r).map((r=>{const a=r[0],i=a.length;let u;a.startsWith("hsl(")?u="hsl":a.startsWith("hsla(")?u="hsla":a.startsWith("rgb(")?u="rgb":a.startsWith("rgba(")?u="rgba":a.startsWith("#")&&(u="hex");const f=new e.Range(s(t,r.index),s(t,r.index+a.length)),c=function(t){try{const r=(0,o.default)(t);if(!r)throw new Error("invalid color string");if("rgb"===r.type){const t=r.values[0],a=r.values[1],n=r.values[2],o=r.alpha;return new e.Color(t/255,a/255,n/255,o)}{const t=r.values[0],a=r.values[1],o=r.values[2],s=r.alpha,{r:i,g:u,b:f}=n.default.fromHsl(t,a,o).toRgb();return new e.Color(i/255,u/255,f/255,s)}}catch(t){return console.log(t),null}}(a);if(c)return{color:c,type:u,length:i,range:f}}))}}.getMatches(t.getText()).map(((t,r)=>new e.ColorInformation(t.range,t.color))),provideColorPresentations(t,r,a){let o=n.default.fromRgb(255*t.red,255*t.green,255*t.blue);o.alpha=t.alpha,o.toString("hex"),o.toString("hsl");let s=r.document.getText(r.range);const i=new e.ColorPresentation(o.toString("hex")),u=new e.ColorPresentation(o.toString("hexa")),f=new e.ColorPresentation(o.toString("hsl")),c=new e.ColorPresentation(o.toString("hsla")),l=new e.ColorPresentation(o.toString("rgb")),g=new e.ColorPresentation(o.toString("rgba"));let m=!1;return s.startsWith("#")&&9===s.length&&(m=!0),s.startsWith("hsla")&&(m=!0),s.startsWith("rgba")&&(m=!0),1!==t.alpha&&(m=!0),m?[u,c,g]:[i,f,l]}})}))}dispose(){}}t.activate=function(t){const e=new i;t.subscriptions.push(e)},t.deactivate=function(){}})(),module.exports=a})(); diff --git a/src/extension.ts b/src/extension.ts index 35282eb..bc10e78 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -59,7 +59,7 @@ class Matcher { static getMatches(text: string): Match[] { - const matches = text.matchAll(/(#(?:[\da-f]{3,4}){2}|rgb\((?:\d{1,3},\s*){2}\d{1,3}\)|rgba\((?:\d{1,3},\s*){3}\d*\.?\d+\)|hsl\(\d{1,3}(?:,\s*\d{1,3}%){2}\)|hsla\(\d{1,3}(?:,\s*\d{1,3}%){2},\s*\d*\.?\d+\))/gi); + const matches = text.matchAll(/(#(?:[\da-f]{3,4}){2}|#(?:[\da-f]{1,2}){3}|rgb\((?:\d{1,3},\s*){2}\d{1,3}\)|rgba\((?:\d{1,3},\s*){3}\d*\.?\d+\)|hsl\(\d{1,3}(?:,\s*\d{1,3}%){2}\)|hsla\(\d{1,3}(?:,\s*\d{1,3}%){2},\s*\d*\.?\d+\))/gi); return Array.from(matches).map(match => { const t = match[0]; const length = t.length;