PageSourceSearch

https://saurabhbose.com/dist/510.4552f8725dc68c1e1a8a.js

js saurabhbose.com collected 2026-09-29 16:55:43 UTC 34,211 bytes, 1 lines download raw bytes

vendor: 6,996 bytes, line 1
1"use strict";(self.webpackChunkfolio=self.webpackChunkfolio||[]).push([[510],{90510(e,t,a){function r(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var a=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),a&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function n(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function i(e){return e<=1?"".concat(100*Number(e),"%"):e}function s(e){return 1===e.length?"0"+e:String(e)}function h(e,t,a){e=r(e,255),t=r(t,255),a=r(a,255);var o=Math.max(e,t,a),n=Math.min(e,t,a),i=0,s=0,h=(o+n)/2;if(o===n)s=0,i=0;else{var l=o-n;switch(s=h>.5?l/(2-o-n):l/(o+n),o){case e:i=(t-a)/l+(t<a?6:0);break;case t:i=(a-e)/l+2;break;case a:i=(e-t)/l+4}i/=6}return{h:i,s,l:h}}function l(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+6*a*(t-e):a<.5?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function c(e,t,a){e=r(e,255),t=r(t,255),a=r(a,255);var o=Math.max(e,t,a),n=Math.min(e,t,a),i=0,s=o,h=o-n,l=0===o?0:h/o;if(o===n)i=0;else{switch(o){case e:i=(t-a)/h+(t<a?6:0);break;case t:i=(a-e)/h+2;break;case a:i=(e-t)/h+4}i/=6}return{h:i,s:l,v:s}}function u(e,t,a,r){var o=[s(Math.round(e).toString(16)),s(Math.round(t).toString(16)),s(Math.round(a).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function d(e){return Math.round(255*parseFloat(e)).toString(16)}function p(e){return f(e)/255}function f(e){return parseInt(e,16)}a.d(t,{A:()=>G});var g={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 v(e){var t,a,o,s={r:0,g:0,b:0},h=1,c=null,u=null,d=null,v=!1,b=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(g[e])e=g[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var a=w.rgb.exec(e);if(a)return{r:a[1],g:a[2],b:a[3]};if(a=w.rgba.exec(e),a)return{r:a[1],g:a[2],b:a[3],a:a[4]};if(a=w.hsl.exec(e),a)return{h:a[1],s:a[2],l:a[3]};if(a=w.hsla.exec(e),a)return{h:a[1],s:a[2],l:a[3],a:a[4]};if(a=w.hsv.exec(e),a)return{h:a[1],s:a[2],v:a[3]};if(a=w.hsva.exec(e),a)return{h:a[1],s:a[2],v:a[3],a:a[4]};if(a=w.hex8.exec(e),a)return{r:f(a[1]),g:f(a[2]),b:f(a[3]),a:p(a[4]),format:t?"name":"hex8"};if(a=w.hex6.exec(e),a)return{r:f(a[1]),g:f(a[2]),b:f(a[3]),format:t?"name":"hex"};if(a=w.hex4.exec(e),a)return{r:f(a[1]+a[1]),g:f(a[2]+a[2]),b:f(a[3]+a[3]),a:p(a[4]+a[4]),format:t?"name":"hex8"};if(a=w.hex3.exec(e),a)return{r:f(a[1]+a[1]),g:f(a[2]+a[2]),b:f(a[3]+a[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(y(e.r)&&y(e.g)&&y(e.b)?(t=e.r,a=e.g,o=e.b,s={r:255*r(t,255),g:255*r(a,255),b:255*r(o,255)},v=!0,b="%"===String(e.r).substr(-1)?"prgb":"rgb"):y(e.h)&&y(e.s)&&y(e.v)?(c=i(e.s),u=i(e.v),s=function(e,t,a){e=6*r(e,360),t=r(t,100),a=r(a,100);var o=Math.floor(e),n=e-o,i=a*(1-t),s=a*(1-n*t),h=a*(1-(1-n)*t),l=o%6;return{r:255*[a,s,i,i,h,a][l],g:255*[h,a,a,s,i,i][l],b:255*[i,i,h,a,a,s][l]}}(e.h,c,u),v=!0,b="hsv"):y(e.h)&&y(e.s)&&y(e.l)&&(c=i(e.s),d=i(e.l),s=function(e,t,a){var o,n,i;if(e=r(e,360),t=r(t,100),a=r(a,100),0===t)n=a,i=a,o=a;else{var s=a<.5?a*(1+t):a+t-a*t,h=2*a-s;o=l(h,s,e+1/3),n=l(h,s,e),i=l(h,s,e-1/3)}return{r:255*o,g:255*n,b:255*i}}(e.h,c,d),v=!0,b="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(h=e.a)),h=n(h),{ok:v,format:e.format||b,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:h}}var b="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),m="[\\s|\\(]+(".concat(b,")[,|\\s]+(").concat(b,")[,|\\s]+(").concat(b,")\\s*\\)?"),x="[\\s|\\(]+(".concat(b,")[,|\\s]+(").concat(b,")[,|\\s]+(").concat(b,")[,|\\s]+(").concat(b,")\\s*\\)?"),w={CSS_UNIT:new RegExp(b),rgb:new RegExp("rgb"+m),rgba:new RegExp("rgba"+x),hsl:new RegExp("hsl"+m),hsla:new RegExp("hsla"+x),hsv:new RegExp("hsv"+m),hsva:new RegExp("hsva"
vendor: 4,244 bytes, line 1
1+x),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 y(e){return Boolean(w.CSS_UNIT.exec(String(e)))}var k=function(){function e(t,a){var r;if(void 0===t&&(t=""),void 0===a&&(a={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=v(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=a.format)&&void 0!==r?r:o.format,this.gradientType=a.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=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,a=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=n(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=c(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=c(this.r,this.g,this.b),t=Math.round(360*e.h),a=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(a,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(a,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=h(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=h(this.r,this.g,this.b),t=Math.round(360*e.h),a=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(a,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(a,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),u(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,a,r,o){var n=[s(Math.round(e).toString(16)),s(Math.round(t).toString(16)),s(Math.round(a).toString(16)),s(d(r))];return o&&n[0].startsWith(n[0].charAt(1))&&n[1].startsWith(n[1].charAt(1))&&n[2].startsWith(n[2].charAt(1))&&n[3].startsWith(n[3].charAt(1))?n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0)+n[3].charAt(0):n.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),a=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(a,")"):"rgba(".concat(e,", ").concat(t,", ").concat(a,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*r(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*r(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+u(this.r,this.g,this.b,!1),t=0,a=Object.entries(g);t<a.length;t++){var r=a[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var a=!1,r=this.a<1&&this.a>=0;
1return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(a=this.toRgbString()),"prgb"===e&&(a=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(a=this.toHexString()),"hex3"===e&&(a=this.toHexString(!0)),"hex4"===e&&(a=this.toHex8String(!0)),"hex8"===e&&(a=this.toHex8String()),"name"===e&&(a=this.toName()),"hsl"===e&&(a=this.toHslString()),"hsv"===e&&(a=this.toHsvString()),a||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var a=this.toHsl();return a.l+=t/100,a.l=o(a.l),new e(a)},e.prototype.brighten=function(t){void 0===t&&(t=10);var a=this.toRgb();return a.r=Math.max(0,Math.min(255,a.r-Math.round(-t/100*255))),a.g=Math.max(0,Math.min(255,a.g-Math.round(-t/100*255))),a.b=Math.max(0,Math.min(255,a.b-Math.round(-t/100*255))),new e(a)},e.prototype.darken=function(t){void 0===t&&(t=10);var a=this.toHsl();return a.l-=t/100,a.l=o(a.l),new e(a)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var a=this.toHsl();return a.s-=t/100,a.s=o(a.s),new e(a)},e.prototype.saturate=function(t){void 0===t&&(t=10);var a=this.toHsl();return a.s+=t/100,a.s=o(a.s),new e(a)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var a=this.toHsl(),r=(a.h+t)%360;return a.h=r<0?360+r:r,new e(a)},e.prototype.mix=function(t,a){void 0===a&&(a=50);var r=this.toRgb(),o=new e(t).toRgb(),n=a/100;return new e({r:(o.r-r.r)*n+r.r,g:(o.g-r.g)*n+r.g,b:(o.b-r.b)*n+r.b,a:(o.a-r.a)*n+r.a})},e.prototype.analogous=function(t,a){void 0===t&&(t=6),void 0===a&&(a=30);var r=this.toHsl(),o=360/a,n=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,n.push(new e(r));return n},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var a=this.toHsv(),r=a.h,o=a.s,n=a.v,i=[],s=1/t;t--;)i.push(new e({h:r,s:o,v:n})),n=(n+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),a=t.h;return[this,new e({h:(a+72)%360,s:t.s,l:t.l}),new e({h:(a+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var a=this.toRgb(),r=new e(t).toRgb(),o=a.a+r.a*(1-a.a);return new e({r:(a.r*a.a+r.r*r.a*(1-a.a))/o,g:(a.g*a.a+r.g*r.a*(1-a.a))/o,b:(a.b*a.a+r.b*r.a*(1-a.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var a=this.toHsl(),r=a.h,o=[this],n=360/t,i=1;i<t;i++)o.push(new e({h:(r+i*n)%360,s:a.s,l:a.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function C(...e){return new k(...e)}function M(e,t){const a=e&&e.a;let r;r=e&&e.hsl?C(e.hsl):e&&e.hex&&e.hex.length>0?C(e.hex):e&&e.hsv?C(e.hsv):e&&e.rgba?C(e.rgba):e&&e.rgb?C(e.rgb):C(e),!r||void 0!==r._a&&null!==r._a||r.setAlpha(a||r.getAlpha());const o=r.toHsl(),n=r.toHsv();return 0===o.s&&(n.h=o.h=e.h||e.hsl&&e.hsl.h||t||0),n.v<.0164&&(n.h=e.h||e.hsv&&e.hsv.h||0,n.s=e.s||e.hsv&&e.hsv.s||0),o.l<.01&&(o.h=e.h||e.hsl&&e.hsl.h||0,o.s=e.s||e.hsl&&e.hsl.s||0),{hsl:o,hex:r.toHexString().toUpperCase(),hex8:r.toHex8String().toUpperCase(),rgba:r.toRgb(),hsv:n,oldHue:e.h||t||o.h,source:e.source,a:r.getAlpha()}}var L={model:{prop:"modelValue",event:"update:modelValue"},props:["modelValue"],data(){return{val:M(this.modelValue)}},computed:{colors:{get(){return this.val},set(e){this.val=e,this.$emit("update:modelValue",e)}}},watch:{modelValue(e){this.val=M(e)}},methods:{colorChange(e,t){this.oldHue=this.colors.hsl.h,this.colors=M(e,t||this.oldHue)},isValidHex:e=>C(e).isValid,simpleCheckForValidColor(e){const t=["r","g","b","a","h","s","l","v"];let a=0,r=0;for(let o=0;o<t.length;o++){const n=t[o];e[n]&&(a++,isNaN(e[n])||r++)}if(a===r)return e},paletteUpperCase:e=>e.map(e=>e.toUpperCase()),isTransparent:e=>0===C(e).getAlpha()}},S=a(20641),H=a(53751),A=a(90033);function E(e,t){void 0===t&&(t={});var a=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===a&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}const _="",F=function(e,t){const{componentPrefix:a=_}=t||{};e.component(`${a}${this.name}`,this)};var R={name:"EditableInput",props:{label:String,labelText:String,desc:String,value:[String,Number],max:Number,min:Number,arrowOffset:{type:Number,default:1}},computed:{val:{get(){return this.value},set(e){if(!(void 0!==this.max&&+e>this.max))return e;this.$refs.input.value=this.max}},labelId(){return`input__label__${this.label}__${Math.random().toString().slice(2,5)}`},labelSpanText(){return this.labelText||this.label}},methods:{update(e){this.handleChange(e.target.value)},handleChange(e){const t={};t[this.label]=e,(void 0===t.hex&&void 0===t["#"]||e.length>5)&&this.$emit("change",t)},handleKeyDown(e){let{val:t}=this;const a=Number(t);if(a){const r=this.arrowOffset||1;38===e.keyCode&&(t=a+r,this.handleChange(t),e.preventDefault()),40===e.keyCode&&(t=a-r,this.handleChange(t),e.preventDefault())}}}};const T={class:"vc-editable-input"},$=["aria-labelledby"],D=["id","for"],X={class:"vc-input__desc"};function I(e,t,a){return t<a?e<t?t:e>a?a:e:e<a?a:e>t?t:e}E(".vc-editable-input{position:relative}.vc-input__input{border:0;outline:none;padding:0}.vc-input__label{text-transform:capitalize}"),R.render=function(e,t,a,r,o,n){return(0,S.uX)(),(0,S.CE)("div",T,[(0,S.bo)((0,S.Lk)("input",{ref:"input","onUpdate:modelValue":t[0]||(t[0]=e=>n.val=e),"aria-labelledby":n.labelId,class:"vc-input__input",onKeydown:t[1]||(t[1]=(...e)=>n.handleKeyDown&&n.handleKeyDown(...e)),onInput:t[2]||(t[2]=(...e)=>n.update&&n.update(...e))},null,40,$),[[H.vModelText,n.val]]),(0,S.Lk)("span",{id:n.labelId,for:a.label,class:"vc-input__label"},(0,A.v_)(n.labelSpanText),9,D),(0,S.Lk)("span",X,(0,A.v_)(a.desc),1)])},R.__file="src/components/editable-input/editable-input.vue",R.install=F;var N={name:"Saturation",props:{value:Object},computed:{colors(){return this.value},bgColor(){return`hsl(${this.colors.hsv.h}, 100%, 50%)`},pointerTop(){return-100*this.colors.hsv.v+1+100+"%"},pointerLeft(){return 100*this.colors.hsv.s+"%"}},methods:{handleChange(e,t){!t&&e.preventDefault();const{container:a}=this.$refs;if(!a)return;const r=a.clientWidth,o=a.clientHeight,n=a.getBoundingClientRect().left+window.pageXOffset,i=a.getBoundingClientRect().top+window.pageYOffset,s=e.pageX||(e.touches?e.touches[0].pageX:0),h=e.pageY||(e.touches?e.touches[0].pageY:0),l=I(s-n,0,r),c=I(h-i,0,o),u=l/r,d=I(-c/o+1,0,1);this.onChange({h:this.colors.hsv.h,s:u,v:d,a:this.colors.hsv.a,source:"hsva"})},onChange(e){this.$emit("change",e)},handleMouseDown(e){window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(e){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};const z=(0,S.Lk)("div",{class:"vc-saturation--white"},null,-1),U=(0,S.Lk)("div",{class:"vc-saturation--black"},null,-1),B=[(0,S.Lk)("div",{class:"vc-saturation-circle"},null,-1)];E(".vc-saturation,.vc-saturation--black,.vc-saturation--white{bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0}.vc-saturation--white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.vc-saturation--black{background:linear-gradient(0deg,#000,transparent)}.vc-saturation-pointer{cursor:pointer;position:absolute}.vc-saturation-circle{border-radius:50%;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);cursor:head;height:4px;transform:translate(-2px,-2px);width:4px}"),N.render=function(e,t,a,r,o,n){return(0,S.uX)(),(0,S.CE)("div",{ref:"container",class:"vc-saturation",style:(0,A.Tr)({background:n.bgColor}),onMousedown:t[0]||(t[0]=(...e)=>n.handleMouseDown&&n.handleMouseDown(...e)),onTouchmove:t[1]||(t[1]=(...e)=>n.handleChange&&n.handleChange(...e)),onTouchstart:t[2]||(t[2]=(...e)=>n.handleChange&&n.handleChange(...e))},[z,U,(0,S.Lk)("div",{class:"vc-saturation-pointer",style:(0,A.Tr)({top:n.pointerTop,left:n.pointerLeft})},B,4)],36)},N.__file="src/components/saturation/saturation.vue",N.install=F;var O={name:"Hue",props:{value:Object,direction:{type:String,default:"horizontal"}},data:()=>({oldHue:0,pullDirection:""}),computed:{colors(){return this.value},directionClass(){return{"vc-hue--horizontal":"horizontal"===this.direction,"vc-hue--vert
1ical":"vertical"===this.direction}},pointerTop(){return"vertical"===this.direction?0===this.colors.hsl.h&&"right"===this.pullDirection?0:-100*this.colors.hsl.h/360+100+"%":0},pointerLeft(){return"vertical"===this.direction?0:0===this.colors.hsl.h&&"right"===this.pullDirection?"100%":100*this.colors.hsl.h/360+"%"}},watch:{value:{handler(e,t){const{h:a}=e.hsl;0!==a&&a-this.oldHue>0&&(this.pullDirection="right"),0!==a&&a-this.oldHue<0&&(this.pullDirection="left"),this.oldHue=a},deep:!0,immediate:!0}},methods:{handleChange(e,t){!t&&e.preventDefault();const{container:a}=this.$refs;if(!a)return;const r=a.clientWidth,o=a.clientHeight,n=a.getBoundingClientRect().left+window.pageXOffset,i=a.getBoundingClientRect().top+window.pageYOffset,s=(e.pageX||(e.touches?e.touches[0].pageX:0))-n,h=(e.pageY||(e.touches?e.touches[0].pageY:0))-i;let l,c;"vertical"===this.direction?(h<0?l=360:h>o?l=0:(c=-100*h/o+100,l=360*c/100),this.colors.hsl.h!==l&&this.$emit("change",{h:l,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"})):(s<0?l=0:s>r?l=360:(c=100*s/r,l=360*c/100),this.colors.hsl.h!==l&&this.$emit("change",{h:l,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"}))},handleMouseDown(e){this.handleChange(e,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(e){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};const V=["aria-valuenow"],W=[(0,S.Lk)("div",{class:"vc-hue-picker"},null,-1)];E(".vc-hue{border-radius:2px;bottom:0;left:0;position:absolute;right:0;top:0}.vc-hue--horizontal{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.vc-hue--vertical{background:linear-gradient(0deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.vc-hue-container{cursor:pointer;height:100%;margin:0 2px;position:relative}.vc-hue-pointer{position:absolute;z-index:2}.vc-hue-picker{background:#fff;border-radius:1px;box-shadow:0 0 2px rgba(0,0,0,.6);cursor:pointer;height:8px;margin-top:1px;transform:translateX(-2px);width:4px}"),O.render=function(e,t,a,r,o,n){return(0,S.uX)(),(0,S.CE)("div",{class:(0,A.C4)(["vc-hue",[n.directionClass]])},[(0,S.Lk)("div",{ref:"container",class:"vc-hue-container",role:"slider","aria-valuenow":n.colors.hsl.h,"aria-valuemin":"0","aria-valuemax":"360",onMousedown:t[0]||(t[0]=(...e)=>n.handleMouseDown&&n.handleMouseDown(...e)),onTouchmove:t[1]||(t[1]=(...e)=>n.handleChange&&n.handleChange(...e)),onTouchstart:t[2]||(t[2]=(...e)=>n.handleChange&&n.handleChange(...e))},[(0,S.Lk)("div",{class:"vc-hue-pointer",style:(0,A.Tr)({top:n.pointerTop,left:n.pointerLeft}),role:"presentation"},W,4)],40,V)],2)},O.__file="src/components/hue/hue.vue",O.install=F;const Q={};var j={name:"Checkboard",props:{size:{type:[Number,String],default:8},white:{type:String,default:"#fff"},grey:{type:String,default:"#e6e6e6"}},computed:{bgStyle(){return{"background-image":`url(${q(this.white,this.grey,this.size)})`}}}};function q(e,t,a){const r=`${e},${t},${a}`;if(Q[r])return Q[r];const o=function(e,t,a){if("undefined"==typeof document)return null;const r=document.createElement("canvas");r.width=r.height=2*a;const o=r.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,r.width,r.height),o.fillStyle=t,o.fillRect(0,0,a,a),o.translate(a,a),o.fillRect(0,0,a,a),r.toDataURL()):null}(e,t,a);return Q[r]=o,o}E(".vc-checkerboard{background-size:contain;bottom:0;left:0;position:absolute;right:0;top:0}"),j.render=function(e,t,a,r,o,n){return(0,S.uX)(),(0,S.CE)("div",{class:"vc-checkerboard",style:(0,A.Tr)(n.bgStyle)},null,4)},j.__file="src/components/checkboard/checkboard.vue",j.install=F;var Y={name:"Alpha",components:{Checkboard:j},props:{value:Object,onChange:Function},computed:{colors(){return this.value},gradientColor(){const{rgba:e}=this.colors,t=[e.r,e.g,e.b].join(",");return`linear-gradient(to right, rgba(${t}, 0) 0%, rgba(${t}, 1) 100%)`}},methods:{handleChange(e,t){!t&&e.preventDefault();const{container:a}=this.$refs;if(!a)return;const r=a.clientWidth,o=a.getBoundingClientRect().left+window.pageXOffset,n=(e.pageX||(e.touches?e.touches[0].pageX:0))-o;let i;i=n<0?0:n>r?1:Math.round(100*n/r)/100,this.colors.a!==i&&this.$emit("change",{h:this.colors.hsl.h,s:this.colors.hsl.s,l:this.colors.hsl.l,a:i,source:"rgba"})},handleMouseDown(e){this.handleChange(e,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};const P={class:"vc-alpha"},K={class:"vc-alpha-checkboard-wrap"},Z=[(0,S.Lk)("div",{class:"vc-alpha-picker"},null,-1)];E(".vc-alpha,.vc-alpha-checkboard-wrap{bottom:0;left:0;position:absolute;right:0;top:0}.vc-alpha-checkboard-wrap{overflow:hidden}.vc-alpha-gradient{bottom:0;left:0;position:absolute;right:0;top:0}.vc-alpha-container{cursor:pointer;height:100%;margin:0 3px;position:relative;z-index:2}.vc-alpha-pointer{position:absolute;z-index:2}.vc-alpha-picker{background:#fff;border-radius:1px;box-shadow:0 0 2px rgba(0,0,0,.6);cursor:pointer;height:8px;margin-top:1px;transform:translateX(-2px);width:4px}"),Y.render=function(e,t,a,r,o,n){const i=(0,S.g2)("Checkboard");return(0,S.uX)(),(0,S.CE)("div",P,[(0,S.Lk)("div",K,[(0,S.bF)(i)]),(0,S.Lk)("div",{class:"vc-alpha-gradient",style:(0,A.Tr)({background:n.gradientColor})},null,4),(0,S.Lk)("div",{ref:"container",class:"vc-alpha-container",onMousedown:t[0]||(t[0]=(...e)=>n.handleMouseDown&&n.handleMouseDown(...e)),onTouchmove:t[1]||(t[1]=(...e)=>n.handleChange&&n.handleChange(...e)),onTouchstart:t[2]||(t[2]=(...e)=>n.handleChange&&n.handleChange(...e))},[(0,S.Lk)("div",{class:"vc-alpha-pointer",style:(0,A.Tr)({left:100*n.colors.a+"%"})},Z,4)],544)])}
1,Y.__file="src/components/alpha/alpha.vue",Y.install=F;var G={name:"Chrome",components:{Saturation:N,Hue:O,Alpha:Y,EdIn:R,Checkboard:j},mixins:[L],props:{disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1},format:{type:String,default:"hex"}},data:()=>({fieldsIndex:"hex",highlight:!1}),computed:{hsl(){const{h:e,s:t,l:a}=this.colors.hsl;return{h:e.toFixed(),s:`${(100*t).toFixed()}%`,l:`${(100*a).toFixed()}%`}},activeColor(){const{rgba:e}=this.colors;return`rgba(${[e.r,e.g,e.b,e.a].join(",")})`},hasAlpha(){return this.colors.a<1}},watch:{format:{handler(e){this.fieldsIndex=e},immediate:!0}},methods:{childChange(e){this.colorChange(e)},inputChange(e){if(e)if(e.hex)this.isValidHex(e.hex)&&this.colorChange({hex:e.hex,source:"hex"});else if(e.r||e.g||e.b||e.a)this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"});else if(e.h||e.s||e.l){const t=e.s?e.s.replace("%","")/100:this.colors.hsl.s,a=e.l?e.l.replace("%","")/100:this.colors.hsl.l;this.colorChange({h:e.h||this.colors.hsl.h,s:t,l:a,source:"hsl"})}},toggleViews(){switch(this.fieldsIndex){case"hex":this.fieldsIndex="rgb"+(this.disableAlpha?"":"a");break;case"rgb":case"rgba":this.fieldsIndex="hsl"+(this.disableAlpha?"":"a");break;default:this.fieldsIndex="hex"}this.$emit("update:format",this.fieldsIndex)},showHighlight(){this.highlight=!0},hideHighlight(){this.highlight=!1}}};const J={class:"vc-chrome-saturation-wrap"},ee={class:"vc-chrome-body"},te={class:"vc-chrome-controls"},ae={class:"vc-chrome-color-wrap"},re=["aria-label"],oe={class:"vc-chrome-sliders"},ne={class:"vc-chrome-hue-wrap"},ie={key:0,class:"vc-chrome-alpha-wrap"},se={key:0,class:"vc-chrome-fields-wrap"},he={class:"vc-chrome-fields"},le={class:"vc-chrome-field"},ce={class:"vc-chrome-fields"},ue={class:"vc-chrome-field"},de={class:"vc-chrome-field"},pe={class:"vc-chrome-field"},fe={key:0,class:"vc-chrome-field"},ge={class:"vc-chrome-fields"},ve={class:"vc-chrome-field"},be={class:"vc-chrome-field"},me={class:"vc-chrome-field"},xe={key:0,class:"vc-chrome-field"},we={class:"vc-chrome-toggle-icon"},ye=[(0,S.Lk)("path",{fill:"#333",d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"},null,-1)],ke={class:"vc-chrome-toggle-icon-highlight"};E(".vc-chrome{background:#fff;background-color:#fff;border-radius:2px;box-shadow:0 0 2px rgba(0,0,0,.3),0 4px 8px rgba(0,0,0,.3);box-sizing:initial;font-family:Menlo;width:225px}.vc-chrome-controls{display:flex}.vc-chrome-color-wrap{position:relative;width:36px}.vc-chrome-active-color{border-radius:15px;height:30px;overflow:hidden;position:relative;width:30px;z-index:1}.vc-chrome-color-wrap .vc-checkerboard{background-size:auto;border-radius:15px;height:30px;width:30px}.vc-chrome-sliders{flex:1}.vc-chrome-fields-wrap{display:flex;padding-top:16px}.vc-chrome-fields{display:flex;flex:1;margin-left:-6px}.vc-chrome-field{padding-left:6px;width:100%}.vc-chrome-toggle-btn{position:relative;text-align:right;width:32px}.vc-chrome-toggle-icon{cursor:pointer;margin-right:-4px;margin-top:12px;position:relative;z-index:2}.vc-chrome-toggle-icon-highlight{background:#eee;border-radius:4px;height:28px;left:12px;position:absolute;top:10px;width:24px}.vc-chrome-hue-wrap{margin-bottom:8px}.vc-chrome-alpha-wrap,.vc-chrome-hue-wrap{height:10px;position:relative}.vc-chrome-alpha-wrap .vc-alpha-gradient,.vc-chrome-hue-wrap .vc-hue{border-radius:2px}.vc-chrome-alpha-wrap .vc-alpha-picker,.vc-chrome-hue-wrap .vc-hue-picker{background-color:#f8f8f8;border-radius:6px;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);height:12px;transform:translate(-6px,-2px);width:12px}.vc-chrome-body{background-color:#fff;padding:16px 16px 12px}.vc-chrome-saturation-wrap{border-radius:2px 2px 0 0;overflow:hidden;padding-bottom:55%;position:relative;width:100%}.vc-chrome-saturation-wrap .vc-saturation-circle{height:12px;width:12px}.vc-chrome-fields .vc-input__input{border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #dadada;color:#333;font-size:11px;height:21px;text-align:center;width:100%}.vc-chrome-fields .vc-input__label{color:#969696;display:block;font-size:11px;line-height:11px;margin-top:12px;text-align:center;text-transform:uppercase}.vc-chrome__disable-alpha .vc-chrome-active-color{height:18px;width:18px}.vc-chrome__disable-alpha .vc-chrome-color-wrap{width:30px}.vc-chrome__disable-alpha .vc-chrome-hue-wrap{margin-bottom:4px;margin-top:4px}"),G.render=function(e,t,a,r,o,n){const i=(0,S.g2)("Saturation"),s=(0,S.g2)("Checkboard"),h=(0,S.g2)("Hue"),l=(0,S.g2)("Alpha"),c=(0,S.g2)("EdIn");return(0,S.uX)(),(0,S.CE)("div",{role:"application","aria-label":"Chrome color picker",class:(0,A.C4)(["vc-chrome",[a.disableAlpha?"vc-chrome__disable-alpha":""]])},[(0,S.Lk)("div",J,[(0,S.bF)(i,{value:e.colors,onChange:n.childCh
1ange},null,8,["value","onChange"])]),(0,S.Lk)("div",ee,[(0,S.Lk)("div",te,[(0,S.Lk)("div",ae,[(0,S.Lk)("div",{"aria-label":`current color is ${e.colors.hex}`,class:"vc-chrome-active-color",style:(0,A.Tr)({background:n.activeColor})},null,12,re),a.disableAlpha?(0,S.Q3)("v-if",!0):((0,S.uX)(),(0,S.Wv)(s,{key:0}))]),(0,S.Lk)("div",oe,[(0,S.Lk)("div",ne,[(0,S.bF)(h,{value:e.colors,onChange:n.childChange},null,8,["value","onChange"])]),a.disableAlpha?(0,S.Q3)("v-if",!0):((0,S.uX)(),(0,S.CE)("div",ie,[(0,S.bF)(l,{value:e.colors,onChange:n.childChange},null,8,["value","onChange"])]))])]),a.disableFields?(0,S.Q3)("v-if",!0):((0,S.uX)(),(0,S.CE)("div",se,[(0,S.bo)((0,S.Lk)("div",he,[(0,S.Q3)(" hex "),(0,S.Lk)("div",le,[n.hasAlpha?(0,S.Q3)("v-if",!0):((0,S.uX)(),(0,S.Wv)(c,{key:0,label:"hex",value:e.colors.hex,onChange:n.inputChange},null,8,["value","onChange"])),n.hasAlpha?((0,S.uX)(),(0,S.Wv)(c,{key:1,label:"hex",value:e.colors.hex8,onChange:n.inputChange},null,8,["value","onChange"])):(0,S.Q3)("v-if",!0)])],512),[[H.vShow,"hex"===o.fieldsIndex]]),(0,S.bo)((0,S.Lk)("div",ce,[(0,S.Q3)(" rgba "),(0,S.Lk)("div",ue,[(0,S.bF)(c,{label:"r",value:e.colors.rgba.r,onChange:n.inputChange},null,8,["value","onChange"])]),(0,S.Lk)("div",de,[(0,S.bF)(c,{label:"g",value:e.colors.rgba.g,onChange:n.inputChange},null,8,["value","onChange"])]),(0,S.Lk)("div",pe,[(0,S.bF)(c,{label:"b",value:e.colors.rgba.b,onChange:n.inputChange},null,8,["value","onChange"])]),a.disableAlpha?(0,S.Q3)("v-if",!0):((0,S.uX)(),(0,S.CE)("div",fe,[(0,S.bF)(c,{label:"a",value:e.colors.a,"arrow-offset":.01,max:1,onChange:n.inputChange},null,8,["value","arrow-offset","onChange"])]))],512),[[H.vShow,["rgb","rgba"].includes(o.fieldsIndex)]]),(0,S.bo)((0,S.Lk)("div",ge,[(0,S.Q3)(" hsla "),(0,S.Lk)("div",ve,[(0,S.bF)(c,{label:"h",value:n.hsl.h,onChange:n.inputChange},null,8,["value","onChange"])]),(0,S.Lk)("div",be,[(0,S.bF)(c,{label:"s",value:n.hsl.s,onChange:n.inputChange},null,8,["value","onChange"])]),(0,S.Lk)("div",me,[(0,S.bF)(c,{label:"l",value:n.hsl.l,onChange:n.inputChange},null,8,["value","onChange"])]),a.disableAlpha?(0,S.Q3)("v-if",!0):((0,S.uX)(),(0,S.CE)("div",xe,[(0,S.bF)(c,{label:"a",value:e.colors.a,"arrow-offset":.01,max:1,onChange:n.inputChange},null,8,["value","arrow-offset","onChange"])]))],512),[[H.vShow,["hsl","hsla"].includes(o.fieldsIndex)]]),(0,S.Q3)(" btn "),(0,S.Lk)("div",{class:"vc-chrome-toggle-btn",role:"button","aria-label":"Change another color definition",onClick:t[3]||(t[3]=(...e)=>n.toggleViews&&n.toggleViews(...e))},[(0,S.Lk)("div",we,[((0,S.uX)(),(0,S.CE)("svg",{style:{width:"24px",height:"24px"},viewBox:"0 0 24 24",onMouseover:t[0]||(t[0]=(...e)=>n.showHighlight&&n.showHighlight(...e)),onMouseenter:t[1]||(t[1]=(...e)=>n.showHighlight&&n.showHighlight(...e)),onMouseout:t[2]||(t[2]=(...e)=>n.hideHighlight&&n.hideHighlight(...e))},ye,32))]),(0,S.bo)((0,S.Lk)("div",ke,null,512),[[H.vShow,o.highlight]])]),(0,S.Q3)(" btn ")]))])],2)},G.__file="src/components/chrome/chrome.vue",G.install=F}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.