PageSourceSearch

https://www.alamosanews.com/build/5204.7e970df3.js

js alamosanews.com collected 2026-09-24 18:08:50 UTC 71,509 bytes, 17 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([[5204],{60594:(function(F,T,A){/*!
2 * Bootstrap Colorpicker - Bootstrap Colorpicker is a modular color picker plugin for Bootstrap 4.
3 * @package bootstrap-colorpicker
4 * @version v3.4.0
5 * @license MIT
6 * @link https://itsjavi.com/bootstrap-colorpicker/
7 * @link https://github.com/itsjavi/bootstrap-colorpicker.git
8 */(function(b,k){F.exports=k(A(74692))})(window,function(D){return(function(b){var k={};function y(p){if(k[p])return k[p].exports;var v=k[p]={i:p,l:!1,exports:{}};return b[p].call(v.exports,v,v.exports,y),v.l=!0,v.exports}return y.m=b,y.c=k,y.d=function(p,v,h){y.o(p,v)||Object.defineProperty(p,v,{enumerable:!0,get:h})},y.r=function(p){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(p,"__esModule",{value:!0})},y.t=function(p,v){if(v&1&&(p=y(p)),v&8||v&4&&typeof p=="object"&&p&&p.__esModule)return p;var h=Object.create(null);if(y.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:p}),v&2&&typeof p!="string")for(var f in p)y.d(h,f,function(d){return p[d]}.bind(null,f));return h},y.n=function(p){var v=p&&p.__esModule?function(){return p.default}:function(){return p};return y.d(v,"a",v),v},y.o=function(p,v){return Object.prototype.hasOwnProperty.call(p,v)},y.p="",y(y.s=7)})([(function(b,k){b.exports=D}),(function(b,k,y){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var p=(function(){function u(s,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(s,n.key,n)}}return function(s,t,e){return t&&u(s.prototype,t),e&&u(s,e),s}})(),v=y(0),h=f(v);function f(u){return u&&u.__esModule?u:{default:u}}function d(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}var g=(function(){function u(s){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(d(this,u),this.colorpicker=s,this.options=t,!(this.colorpicker.element&&this.colorpicker.element.length))throw new Error("Extension: this.colorpicker.element is not valid");this.colorpicker.element.on("colorpickerCreate.colorpicker-ext",h.default.proxy(this.onCreate,this)),this.colorpicker.element.on("colorpickerDestroy.colorpicker-ext",h.default.proxy(this.onDestroy,this)),this.colorpicker.element.on("colorpickerUpdate.colorpicker-ext",h.default.proxy(this.onUpdate,this)),this.colorpicker.element.on("colorpickerChange.colorpicker-ext",h.default.proxy(this.onChange,this)),this.colorpicker.element.on("colorpickerInvalid.colorpicker-ext",h.default.proxy(this.onInvalid,this)),this.colorpicker.element.on("colorpickerShow.colorpicker-ext",h.default.proxy(this.onShow,this)),this.colorpicker.element.on("colorpickerHide.colorpicker-ext",h.default.proxy(this.onHide,this)),this.colorpicker.element.on("colorpickerEnable.colorpicker-ext",h.default.proxy(this.onEnable,this)),this.colorpicker.element.on("colorpickerDisable.colorpicker-ext",h.default.proxy(this.onDisable,this))}return p(u,[{key:"resolveColor",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return!1}},{key:"onCreate",value:function(t){}},{key:"onDestroy",value:function(t){this.colorpicker.element.off(".colorpicker-ext")}},{key:"onUpdate",value:function(t){}},{key:"onChange",value:function(t){}},{key:"onInvalid",value:function(t){}},{key:"onHide",value:function(t){}},{key:"onShow",value:function(t){}},{key:"onDisable",value:function(t){}},{key:"onEnable",value:function(t){}}]),u})();k.default=g,b.exports=k.default}),(function(b,k,y){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.ColorItem=k.HSVAColor=void 0;var p=(function(){function s(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}})(),v=y(16),h=f(v);function f(s){return s&&s.__esModule?s:{default:s}}function d(s,t){if(!(s instanceof t))throw new TypeError("Cannot call a class as a function")}var g=(function(){function s(t,e,n,a){d(this,s),this.h=isNaN(t)?0:t,this.s=isNaN(e)?0:e,this.v=isNaN(n)?0:n,this.a=isNaN(t)?1:a}return p(s,[{key:"toString",value:function(){return this.h+", "+this.s+"%, "+this.v+"%, "+this.a}}]),s})(),u=(function(){p(s,[{key:"api",value:function(e){for(var n=arguments.length,a=Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];if(arguments.length===0)return this._color;var r=this._color[e].apply(this._color,a);return r instanceof h.default?new s(r,this.format):r}},{key:"original",get:function(){return this._original}}],[{key:"HSVAColor",get:function(){return g}}]);function s(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;d(this,s),this.replace(t,e,n)}return p(s,[{key:"replace",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(n=s.sanitizeFormat(n),this._original={color:e,format:n,valid:!0},this._color=s.parse(e,a),this._color===null){this._color=(0,h.default)(),this._original.valid=!1;return}this._format=n||(s.isHex(e)?"hex":this._color.model)}},{key:"isValid",value:function(){return this._original.valid===!0}},{key:"setHueRatio",value:function(e){this.hue=(1-e)*360}},{key:"setSaturationRatio",value:function(e){this.saturation=e*100}},{key:"setValueRatio",value:function(e){this.value=(1-e)*100}},{key:"setAlphaRatio",value:function(e){this.alpha=1-e}},{key:"isDesaturated",value:function(){return this.saturation===0}},{key:"isTransparent",value:function(){return this.alpha===0}},{key:"hasTransparency",value:function(){return this.hasAlpha()&&this.alpha<1}},{key:"hasAlpha",value:function(){return!isNaN(this.alpha)}},{key:"toObject",value:function(){return new g(this.hue,this.saturation,this.value,this.alpha)}},{key:"toHsva",value:function(){return this.toObject()}},{key:"toHsvaRatio",value:function(){return new g(this.hue/360,this.saturation/100,this.value/100,this.alpha)}},{key:"toString",value:function(){return this.string()}},{key:"string",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(e=s.sanitizeFormat(e||this.format),!e)return this._color.round().string();if(this._color[e]===void 0)throw new Error("Unsupported color format: '"+e+"'");var n=this._color[e]();return n.round?n.round().string():n}},{key:"equals",value:function(e){return e=e instanceof s?e:new s(e),
8!e.isValid()||!this.isValid()?!1:this.hue===e.hue&&this.saturation===e.saturation&&this.value===e.value&&this.alpha===e.alpha}},{key:"getClone",value:function(){return new s(this._color,this.format)}},{key:"getCloneHueOnly",value:function(){return new s([this.hue,100,100,1],this.format)}},{key:"getCloneOpaque",value:function(){return new s(this._color.alpha(1),this.format)}},{key:"toRgbString",value:function(){return this.string("rgb")}},{key:"toHexString",value:function(){return this.string("hex")}},{key:"toHslString",value:function(){return this.string("hsl")}},{key:"isDark",value:function(){return this._color.isDark()}},{key:"isLight",value:function(){return this._color.isLight()}},{key:"generate",value:function(e){var n=[];if(Array.isArray(e))n=e;else if(s.colorFormulas.hasOwnProperty(e))n=s.colorFormulas[e];else throw new Error("No color formula found with the name '"+e+"'.");var a=[],i=this._color,r=this.format;return n.forEach(function(o){var l=[o?(i.hue()+o)%360:i.hue(),i.saturationv(),i.value(),i.alpha()];a.push(new s(l,r))}),a}},{key:"hue",get:function(){return this._color.hue()},set:function(e){this._color=this._color.hue(e)}},{key:"saturation",get:function(){return this._color.saturationv()},set:function(e){this._color=this._color.saturationv(e)}},{key:"value",get:function(){return this._color.value()},set:function(e){this._color=this._color.value(e)}},{key:"alpha",get:function(){var e=this._color.alpha();return isNaN(e)?1:e},set:function(e){this._color=this._color.alpha(Math.round(e*100)/100)}},{key:"format",get:function(){return this._format?this._format:this._color.model},set:function(e){this._format=s.sanitizeFormat(e)}}],[{key:"parse",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e instanceof h.default)return e;if(e instanceof s)return e._color;var a=null;if(e instanceof g?e=[e.h,e.s,e.v,isNaN(e.a)?1:e.a]:e=s.sanitizeString(e),e===null||(Array.isArray(e)&&(a="hsv"),s.isHex(e)&&e.length!==6&&e.length!==7&&n))return null;try{return(0,h.default)(e,a)}catch{return null}}},{key:"sanitizeString",value:function(e){return typeof e=="string"||e instanceof String?e.match(/^[0-9a-f]{2,}$/i)?"#"+e:e.toLowerCase()==="transparent"?"#FFFFFF00":e:e}},{key:"isHex",value:function(e){return typeof e=="string"||e instanceof String?!!e.match(/^#?[0-9a-f]{2,}$/i):!1}},{key:"sanitizeFormat",value:function(e){switch(e){case"hex":case"hex3":case"hex4":case"hex6":case"hex8":return"hex";case"rgb":case"rgba":case"keyword":case"name":return"rgb";case"hsl":case"hsla":case"hsv":case"hsva":case"hwb":case"hwba":return"hsl";default:return""}}}]),s})();u.colorFormulas={complementary:[180],triad:[0,120,240],tetrad:[0,90,180,270],splitcomplement:[0,72,216]},k.default=u,k.HSVAColor=g,k.ColorItem=u}),(function(b,k,y){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var p={bar_size_short:16,base_margin:6,columns:6},v=p.bar_size_short*p.columns+p.base_margin*(p.columns-1);k.default={customClass:null,color:!1,fallbackColor:!1,format:"auto",horizontal:!1,inline:!1,container:!1,popover:{animation:!0,placement:"bottom",fallbackPlacement:"flip"},debug:!1,input:"input",addon:".colorpicker-input-addon",autoInputFallback:!0,autoHexInputFallback:!0,useHashPrefix:!0,useAlpha:!0,template:`<div class="colorpicker">
9      <div class="colorpicker-saturation"><i class="colorpicker-guide"></i></div>
10      <div class="colorpicker-hue"><i class="colorpicker-guide"></i></div>
11      <div class="colorpicker-alpha">
12        <div class="colorpicker-alpha-color"></div>
13        <i class="colorpicker-guide"></i>
14      </div>
15    </div>`,extensions:[{name:"preview",options:{showText:!0}}],sliders:{saturation:{selector:".colorpicker-saturation",maxLeft:v,maxTop:v,callLeft:"setSaturationRatio",callTop:"setValueRatio"},hue:{selector:".colorpicker-hue",maxLeft:0,maxTop:v,callLeft:!1,callTop:"setHueRatio"},alpha:{selector:".colorpicker-alpha",childSelector:".colorpicker-alpha-color",maxLeft:0,maxTop:v,callLeft:!1,callTop:"setAlphaRatio"}},slidersHorz:{saturation:{selector:".colorpicker-saturation",maxLeft:v,maxTop:v,callLeft:"setSaturationRatio",callTop:"setValueRatio"},hue:{selector:".colorpicker-hue",maxLeft:v,maxTop:0,callLeft:"setHueRatio",callTop:!1},alpha:{selector:".colorpicker-alpha",childSelector:".colorpicker-alpha-color",maxLeft:v,maxTop:0,callLeft:"setAlphaRatio",callTop:!1}}}
15,b.exports=k.default}),(function(b,k,y){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},v=(function(){function i(r,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(r,c.key,c)}}return function(r,o,l){return o&&i(r.prototype,o),l&&i(r,l),r}})(),h=y(1),f=u(h),d=y(0),g=u(d);function u(i){return i&&i.__esModule?i:{default:i}}function s(i,r){if(!(i instanceof r))throw new TypeError("Cannot call a class as a function")}function t(i,r){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:i}function e(i,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);i.prototype=Object.create(r&&r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(i,r):i.__proto__=r)}var n={colors:null,namesAsValues:!0},a=(function(i){e(r,i),v(r,[{key:"colors",get:function(){return this.options.colors}}]);function r(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};s(this,r);var c=t(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,o,g.default.extend(!0,{},n,l)));return!Array.isArray(c.options.colors)&&p(c.options.colors)!=="object"&&(c.options.colors=null),c}return v(r,[{key:"getLength",value:function(){return this.options.colors?Array.isArray(this.options.colors)?this.options.colors.length:p(this.options.colors)==="object"?Object.keys(this.options.colors).length:0:0}},{key:"resolveColor",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return this.getLength()<=0?!1:Array.isArray(this.options.colors)?this.options.colors.indexOf(l)>=0?l:this.options.colors.indexOf(l.toUpperCase())>=0?l.toUpperCase():this.options.colors.indexOf(l.toLowerCase())>=0?l.toLowerCase():!1:p(this.options.colors)!=="object"?!1:!this.options.namesAsValues||c?this.getValue(l,!1):this.getName(l,this.getName("#"+l))}},{key:"getName",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(typeof l!="string"||!this.options.colors)return c;for(var m in this.options.colors)if(this.options.colors.hasOwnProperty(m)&&this.options.colors[m].toLowerCase()===l.toLowerCase())return m;return c}},{key:"getValue",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return typeof l!="string"||!this.options.colors?c:this.options.colors.hasOwnProperty(l)?this.options.colors[l]:c}}]),r})(f.default);k.default=a,b.exports=k.default}),(function(b,k,y){"use strict";b.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],ol
vendor: 6,401 bytes, line 15
15ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),(function(b,k,y){var p=y(5),v={};for(var h in p)p.hasOwnProperty(h)&&(v[p[h]]=h);var f=b.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var d in f)if(f.hasOwnProperty(d)){if(!("channels"in f[d]))throw new Error("missing channels property: "+d);if(!("labels"in f[d]))throw new Error("missing channel labels property: "+d);if(f[d].labels.length!==f[d].channels)throw new Error("channel and label counts mismatch: "+d);var g=f[d].channels,u=f[d].labels;delete f[d].channels,delete f[d].labels,Object.defineProperty(f[d],"channels",{value:g}),Object.defineProperty(f[d],"labels",{value:u})}f.rgb.hsl=function(t){var e=t[0]/255,n=t[1]/255,a=t[2]/255,i=Math.min(e,n,a),r=Math.max(e,n,a),o=r-i,l,c,m;return r===i?l=0:e===r?l=(n-a)/o:n===r?l=2+(a-e)/o:a===r&&(l=4+(e-n)/o),l=Math.min(l*60,360),l<0&&(l+=360),m=(i+r)/2,r===i?c=0:m<=.5?c=o/(r+i):c=o/(2-r-i),[l,c*100,m*100]},f.rgb.hsv=function(t){var e,n,a,i,r,o=t[0]/255,l=t[1]/255,c=t[2]/255,m=Math.max(o,l,c),w=m-Math.min(o,l,c),O=function(M){return(m-M)/6/w+1/2};return w===0?i=r=0:(r=w/m,e=O(o),n=O(l),a=O(c),o===m?i=a-n:l===m?i=1/3+e-a:c===m&&(i=2/3+n-e),i<0?i+=1:i>1&&(i-=1)),[i*360,r*100,m*100]},f.rgb.hwb=function(t){var e=t[0],n=t[1],a=t[2],i=f.rgb.hsl(t)[0],r=1/255*Math.min(e,Math.min(n,a));return a=1-1/255*Math.max(e,Math.max(n,a)),[i,r*100,a*100]},f.rgb.cmyk=function(t){var e=t[0]/255,n=t[1]/255,a=t[2]/255,i,r,o,l;return l=Math.min(1-e,1-n,1-a),i=(1-e-l)/(1-l)||0,r=(1-n-l)/(1-l)||0,o=(1-a-l)/(1-l)||0,[i*100,r*100,o*100,l*100]};function s(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}f.rgb.keyword=function(t){var e=v[t];if(e)return e;var n=1/0,a;for(var i in p)if(p.hasOwnProperty(i)){var r=p[i],o=s(t,r);o<n&&(n=o,a=i)}return a},f.keyword.rgb=function(t){return p[t]},f.rgb.xyz=function(t){var e=t[0]/255,n=t[1]/255,a=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92;var i=e*.4124+n*.3576+a*.1805,r=e*.2126+n*.7152+a*.0722,o=e*.0193+n*.1192+a*.9505;return[i*100,r*100,o*100]},f.rgb.lab=function(t){var e=f.rgb.xyz(t),n=e[0],a=e[1],i=e[2],r,o,l;return n/=95.047,a/=100,i/=108.883,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,r=116*a-16,o=500*(n-a),l=200*(a-i),[r,o,l]},f.hsl.rgb=function(t){var e=t[0]/360,n=t[1]/100,a=t[2]/100,i,r,o,l,c;if(n===0)return c=a*255,[c,c,c];a<.5?r=a*(1+n):r=a+n-a*n,i=2*a-r,l=[0,0,0];for(var m=0;m<3;m++)o=e+1/3*-(m-1),o<0&&o++,o>1&&o--,6*o<1?c=i+(r-i)*6*o:2*o<1?c=r:3*o<2?c=i+(r-i)*(2/3-o)*6:c=i,l[m]=c*255;return l},f.hsl.hsv=function(t){var e=t[0],n=t[1]/100,a=t[2]/100,i=n,r=Math.max(a,.01),o,l;return a*=2,n*=a<=1?a:2-a,i*=r<=1?r:2-r,l=(a+n)/2,o=a===0?2*i/(r+i):2*n/(a+n),[e,o*100,l*100]},f.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,a=t[2]/100,i=Math.floor(e)%6,r=e-Math.floor(e),o=255*a*(1-n),l=255*a*(1-n*r),c=255*a*(1-n*(1-r));switch(a*=255,i){case 0:return[a,c,o];case 1:return[l,a,o];case 2:return[o,a,c];case 3:return[o,l,a];case 4:return[c,o,a];case 5:return[a,o,l]}},f.hsv.hsl=function(t){var e=t[0],n=t[1]/100,a=t[2]/100,i=Math.max(a,.01),r,o,l;return l=(2-n)*a,r=(2-n)*i,o=n*i,o/=r<=1?r:2-r,o=o||0,l/=2,[e,o*100,l*100]},f.hwb.rgb=function(t){var e=t[0]/360,n=t[1]/100,a=t[2]/100,i=n+a,r,o,l,c;i>1&&(n/=i,a/=i),r=Math.floor(6*e),o=1-a,l=6*e-r,(r&1)!==0&&(l=1-l),c=n+l*(o-n);var m,w,O;switch(r){default:case 6:case 0:m=o,w=c,O=n;break;case 1:m=c,w=o,O=n;break;case 2:m=n,w=o,O=c;break;case 3:m=n,w=c,O=o;break;case 4:m=c,w=n,O=o;break;case 5:m=o,w=n,O=c;break}return[m*255,w*255,O*255]},f.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,a=t[2]/100,i=t[3]/100,r,o,l;return r=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),l=1-Math.min(1,a*(1-i)+i),[r*255,o*255,l*255]},f.xyz.rgb=function(t){var e=t[0]/100,n=t[1]/100,a=t[2]/100,i,r,o;return i=e*3.2406+n*-1.5372+a*-.4986,r=e*-.9689+n*1.8758+a*.0415,o=e*.0557+n*-.204+a*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),r=Math.min(Math.max(0,r),1),o=Math.min(Math.max(0,o),1),[i*255,r*255,o*255]},f.xyz.lab=function(t){var e=t[0],n=t[1],a=t[2],i,r,o;return e/=95.047,n/=100,a/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,i=116*n-16,r=500*(e-n),o=200*(n-a),[i,r,o]},f.lab.xyz=function(t){var e=t[0],n=t[1],a=t[2],i,r,o;r=(e+16)/116,i=n/500+r,o=r-a/200;var l=Math.pow(r,3),c=Math.pow(i,3),m=Math.pow(o,3);return r=l>.008856?l:(r-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=m>.008856?m:(o-16/116)/7.787,i*=95.047,r*=100,o*=108.883,[i,r,o]},f.lab.lch=function(t){var e=t[0],n=t[1],a=t[2],i,r,o;return i=Math.atan2(a,n),r=i*360/2/Math.PI,r<0&&(r+=360),o=Math.sqrt(n*n+a*a),[e,o,r]},f.lch.lab=function(t){var e=t[0],n=t[1],a=t[2],i,r,o;
15return o=a/360*2*Math.PI,i=n*Math.cos(o),r=n*Math.sin(o),[e,i,r]},f.rgb.ansi16=function(t){var e=t[0],n=t[1],a=t[2],i=1 in arguments?arguments[1]:f.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var r=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return i===2&&(r+=60),r},f.hsv.ansi16=function(t){return f.rgb.ansi16(f.hsv.rgb(t),t[2])},f.rgb.ansi256=function(t){var e=t[0],n=t[1],a=t[2];if(e===n&&n===a)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(a/255*5);return i},f.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var n=(~~(t>50)+1)*.5,a=(e&1)*n*255,i=(e>>1&1)*n*255,r=(e>>2&1)*n*255;return[a,i,r]},f.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var n,a=Math.floor(t/36)/5*255,i=Math.floor((n=t%36)/6)/5*255,r=n%6/5*255;return[a,i,r]},f.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),n=e.toString(16).toUpperCase();return"000000".substring(n.length)+n},f.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];e[0].length===3&&(n=n.split("").map(function(l){return l+l}).join(""));var a=parseInt(n,16),i=a>>16&255,r=a>>8&255,o=a&255;return[i,r,o]},f.rgb.hcg=function(t){var e=t[0]/255,n=t[1]/255,a=t[2]/255,i=Math.max(Math.max(e,n),a),r=Math.min(Math.min(e,n),a),o=i-r,l,c;return o<1?l=r/(1-o):l=0,o<=0?c=0:i===e?c=(n-a)/o%6:i===n?c=2+(a-e)/o:c=4+(e-n)/o+4,c/=6,c%=1,[c*360,o*100,l*100]},f.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,a=1,i=0;return n<.5?a=2*e*n:a=2*e*(1-n),a<1&&(i=(n-.5*a)/(1-a)),[t[0],a*100,i*100]},f.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,a=e*n,i=0;return a<1&&(i=(n-a)/(1-a)),[t[0],a*100,i*100]},f.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,a=t[2]/100;if(n===0)return[a*255,a*255,a*255];var i=[0,0,0],r=e%1*6,o=r%1,l=1-o,c=0;switch(Math.floor(r)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=l,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=l,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=l}return c=(1-n)*a,[(n*i[0]+c)*255,(n*i[1]+c)*255,(n*i[2]+c)*255]},f.hcg.hsv=function(t){var e=t[1]/100,n=t[2]/100,a=e+n*(1-e),i=0;return a>0&&(i=e/a),[t[0],i*100,a*100]},f.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100,a=n*(1-e)+.5*e,i=0;return a>0&&a<.5?i=e/(2*a):a>=.5&&a<1&&(i=e/(2*(1-a))),[t[0],i*100,a*100]},f.hcg.hwb=function(t){var e=t[1]/100,n=t[2]/100,a=e+n*(1-e);return[t[0],(a-e)*100,(1-a)*100]},f.hwb.hcg=function(t){var e=t[1]/100,n=t[2]/100,a=1-n,i=a-e,r=0;return i<1&&(r=(a-i)/(1-i)),[t[0],i*100,r*100]},f.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},f.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},f.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},f.gray.hsl=f.gray.hsv=function(t){return[0,0,t[0]]},f.gray.hwb=function(t){return[0,100,t[0]]},f.gray.cmyk=function(t){return[0,0,0,t[0]]},f.gray.lab=function(t){return[t[0],0,0]},f.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,n=(e<<16)+(e<<8)+e,a=n.toString(16).toUpperCase();return"000000".substring(a.length)+a},f.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}}),(function(b,k,y){"use strict";var p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},v=y(8),h=g(v),f=y(0),d=g(f);function g(s){return s&&s.__esModule?s:{default:s}}var u="colorpicker";d.default[u]=h.default,d.default.fn[u]=function(s){var t=Array.prototype.slice.call(arguments,1),e=this.length===1,n=null,a=this.each(function(){var i=(0,d.default)(this),r=i.data(u),o=(typeof s>"u"?"undefined":p(s))==="object"?s:{};r||(r=new h.default(this,o),i.data(u,r)),e&&(n=i,typeof s=="string"&&(s==="colorpicker"?n=r:d.default.isFunction(r[s])?n=r[s].apply(r,t):n=r[s]))});return e?n:a},d.default.fn[u].constructor=h.default}),(function(b,k,y){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var p=(function(){function S(C,x){for(var _=0;_<x.length;_++){var E=x[_];
15E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(C,E.key,E)}}return function(C,x,_){return x&&S(C.prototype,x),_&&S(C,_),C}})(),v=y(1),h=H(v),f=y(3),d=H(f),g=y(9),u=H(g),s=y(0),t=H(s),e=y(13),n=H(e),a=y(14),i=H(a),r=y(15),o=H(r),l=y(22),c=H(l),m=y(23),w=H(m),O=y(24),M=H(O),P=y(2),I=H(P);function H(S){return S&&S.__esModule?S:{default:S}}function R(S,C){if(!(S instanceof C))throw new TypeError("Cannot call a class as a function")}var V=0,q=typeof self<"u"?self:void 0,z=(function(){p(S,[{key:"color",get:function(){return this.colorHandler.color}},{key:"format",get:function(){return this.colorHandler.format}},{key:"picker",get:function(){return this.pickerHandler.picker}}],[{key:"Color",get:function(){return I.default}},{key:"Extension",get:function(){return h.default}}]);function S(C,x){R(this,S),V+=1,this.id=V,this.lastEvent={alias:null,e:null},this.element=(0,t.default)(C).addClass("colorpicker-element").attr("data-colorpicker-id",this.id),this.options=t.default.extend(!0,{},d.default,x,this.element.data()),this.disabled=!1,this.extensions=[],this.container=this.options.container===!0||this.options.container!==!0&&this.options.inline===!0?this.element:this.options.container,this.container=this.container!==!1?(0,t.default)(this.container):!1,this.inputHandler=new o.default(this),this.colorHandler=new c.default(this),this.sliderHandler=new n.default(this),this.popupHandler=new i.default(this,q),this.pickerHandler=new w.default(this),this.addonHandler=new M.default(this),this.init(),(0,t.default)(t.default.proxy(function(){this.trigger("colorpickerCreate")},this))}return p(S,[{key:"init",value:function(){this.addonHandler.bind(),this.inputHandler.bind(),this.initExtensions(),this.colorHandler.bind(),this.pickerHandler.bind(),this.sliderHandler.bind(),this.popupHandler.bind(),this.pickerHandler.attach(),this.update(),this.inputHandler.isDisabled()&&this.disable()}},{key:"initExtensions",value:function(){var x=this;Array.isArray(this.options.extensions)||(this.options.extensions=[]),this.options.debug&&this.options.extensions.push({name:"debugger"}),this.options.extensions.forEach(function(_){x.registerExtension(S.extensions[_.name.toLowerCase()],_.options||{})})}},{key:"registerExtension",value:function(x){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=new x(this,_);return this.extensions.push(E),E}},{key:"destroy",value:function(){var x=this.color;this.sliderHandler.unbind(),this.inputHandler.unbind(),this.popupHandler.unbind(),this.colorHandler.unbind(),this.addonHandler.unbind(),this.pickerHandler.unbind(),this.element.removeClass("colorpicker-element").removeData("colorpicker").removeData("color").off(".colorpicker"),this.trigger("colorpickerDestroy",x)}},{key:"show",value:function(x){this.popupHandler.show(x)}},{key:"hide",value:function(x){this.popupHandler.hide(x)}},{key:"toggle",value:function(x){this.popupHandler.toggle(x)}},{key:"getValue",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,_=this.colorHandler.color;return _=_ instanceof I.default?_:x,_ instanceof I.default?_.string(this.format):_}},{key:"setValue",value:function(x){if(!this.isDisabled()){var _=this.colorHandler;_.hasColor()&&x&&_.color.equals(x)||!_.hasColor()&&!x||(_.color=x?_.createColor(x,this.options.autoInputFallback,this.options.autoHexInputFallback):null,this.trigger("colorpickerChange",_.color,x),this.update())}}},{key:"update",value:function(){this.colorHandler.hasColor()?this.inputHandler.update(
15):this.colorHandler.assureColor(),this.addonHandler.update(),this.pickerHandler.update(),this.trigger("colorpickerUpdate")}},{key:"enable",value:function(){return this.inputHandler.enable(),this.disabled=!1,this.picker.removeClass("colorpicker-disabled"),this.trigger("colorpickerEnable"),!0}},{key:"disable",value:function(){return this.inputHandler.disable(),this.disabled=!0,this.picker.addClass("colorpicker-disabled"),this.trigger("colorpickerDisable"),!0}},{key:"isEnabled",value:function(){return!this.isDisabled()}},{key:"isDisabled",value:function(){return this.disabled===!0}},{key:"trigger",value:function(x){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this.element.trigger({type:x,colorpicker:this,color:_||this.color,value:E||this.getValue()})}}]),S})();z.extensions=u.default,k.default=z,b.exports=k.default}),(function(b,k,y){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.Palette=k.Swatches=k.Preview=k.Debugger=void 0;var p=y(10),v=t(p),h=y(11),f=t(h),d=y(12),g=t(d),u=y(4),s=t(u);function t(e){return e&&e.__esModule?e:{default:e}}k.Debugger=v.default,k.Preview=f.default,k.Swatches=g.default,k.Palette=s.default,k.default={debugger:v.default,preview:f.default,swatches:g.default,palette:s.default}}),(function(b,k,y){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var p=(function(){function a(i,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(i,l.key,l)}}return function(i,r,o){return r&&a(i.prototype,r),o&&a(i,o),i}})(),v=function a(i,r,o){i===null&&(i=Function.prototype);var l=Object.getOwnPropertyDescriptor(i,r);if(l===void 0){var c=Object.getPrototypeOf(i);return c===null?void 0:a(c,r,o)}else{if("value"in l)return l.value;var m=l.get;return m===void 0?void 0:m.call(o)}},h=y(1),f=u(h),d=y(0),g=u(d);function u(a){return a&&a.__esModule?a:{default:a}}function s(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function t(a,i){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:a}function e(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(a,i):a.__proto__=i)}var n=(function(a){e(i,a);function i(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};s(this,i);var l=t(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,r,o));return l.eventCounter=0,l.colorpicker.inputHandler.hasInput()&&l.colorpicker.inputHandler.input.on("change.colorpicker-ext",g.default.proxy(l.onChangeInput,l)),l}return p(i,[{key:"log",value:function(o){for(var l,c=arguments.length,m=Array(c>1?c-1:0),w=1;w<c;w++)m[w-1]=arguments[w];this.eventCounter+=1;var O="#"+this.eventCounter+": Colorpicker#"+this.colorpicker.id+" ["+o+"]";(l=console).debug.apply(l,[O].concat(m)),this.colorpicker.element.trigger({type:"colorpickerDebug",colorpicker:this.colorpicker,color:this.color,value:null,debug:{debugger:this,eventName:o,logArgs:m,logMessage:O}})}},{key:"resolveColor",value:function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return this.log("resolveColor()",o,l),!1}},{key:"onCreate",value:function(o){return this.log("colorpickerCreate"),v(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"onCreate",this).call(this,o)}},{key:"onDestroy",value:function(o){return this.log("colorpickerDestroy"),this.eventCounter=0,this.colorpicker.inputHandler.hasInput()&&this.colorpicker.inputHandler.input.off(".colorpicker-ext"),v(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"onDestroy",this).call(this,o)}},{key:"onUpdate",value:function(o){this.log("colorpickerUpdate")}},{key:"onChangeInput",value:function(o){this.log("input:change.colorpicker",o.value,o.color)}},{key:"onChange",value:function(o){this.log("colorpickerChange",o.value,o.color)}},{key:"onInvalid",value:function(o){this.log("colorpickerInvalid",o.value,o.color)}},{key:"onHide",value:function(o){this.log("colorpickerHide"),this.eventCounter=0}},{key:"onShow",value:function(o){this.log("colorpickerShow")}},{key:"onDisable",value:function(o){this.log("colorpickerDisable")}},{key:"onEnable",value:function(o){this.log("colorpickerEnable")}}]),i})(f.default);k.default=n,b.exports=k.default}),(function(b,k,y){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var p=(function(){function a(i,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(i,l.key,l)}}return function(i,r,o){return r&&a(i.prototype,r),o&&a(i,o),i}})(),v=function a(i,r,o){i===null&&(i=Function.prototype);var l=Object.getOwnPropertyDescriptor(i,r);if(l===void 0){var c=Object.getPrototypeOf(i);return c===null?void 0:a(c,r,o)}else{if("value"in l)return l.value;var m=l.get;return m===void 0?void 0:m.call(o)}},h=y(1),f=u(h),d=y(0),g=u(d);function u(a){return a&&a.__esModule?a:{default:a}}function s(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function t(a,i){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:a}function e(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(a,i):a.__proto__=i)}var n=(function(a){e(i,a);function i(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};s(this,i);
15var l=t(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,r,g.default.extend(!0,{},{template:'<div class="colorpicker-bar colorpicker-preview"><div /></div>',showText:!0,format:r.format},o)));return l.element=(0,g.default)(l.options.template),l.elementInner=l.element.find("div"),l}return p(i,[{key:"onCreate",value:function(o){v(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"onCreate",this).call(this,o),this.colorpicker.picker.append(this.element)}},{key:"onUpdate",value:function(o){if(v(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"onUpdate",this).call(this,o),!o.color){this.elementInner.css("backgroundColor",null).css("color",null).html("");return}this.elementInner.css("backgroundColor",o.color.toRgbString()),this.options.showText&&(this.elementInner.html(o.color.string(this.options.format||this.colorpicker.format)),o.color.isDark()&&o.color.alpha>.5?this.elementInner.css("color","white"):this.elementInner.css("color","black"))}}]),i})(f.default);k.default=n,b.exports=k.default}),(function(b,k,y){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var p=(function(){function i(r,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(r,c.key,c)}}return function(r,o,l){return o&&i(r.prototype,o),l&&i(r,l),r}})(),v=function i(r,o,l){r===null&&(r=Function.prototype);var c=Object.getOwnPropertyDescriptor(r,o);if(c===void 0){var m=Object.getPrototypeOf(r);return m===null?void 0:i(m,o,l)}else{if("value"in c)return c.value;var w=c.get;return w===void 0?void 0:w.call(l)}},h=y(4),f=u(h),d=y(0),g=u(d);function u(i){return i&&i.__esModule?i:{default:i}}function s(i,r){if(!(i instanceof r))throw new TypeError("Cannot call a class as a function")}function t(i,r){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:i}function e(i,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);i.prototype=Object.create(r&&r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(i,r):i.__proto__=r)}var n={barTemplate:`<div class="colorpicker-bar colorpicker-swatches">
16                    <div class="colorpicker-swatches--inner"></div>
17                </div>`,swatchTemplate:'<i class="colorpicker-swatch"><i class="colorpicker-swatch--inner"></i></i>'},a=(function(i){e(r,i);function r(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};s(this,r);var c=t(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,o,g.default.extend(!0,{},n,l)));return c.element=null,c}return p(r,[{key:"isEnabled",value:function(){return this.getLength()>0}},{key:"onCreate",value:function(l){v(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"onCreate",this).call(this,l),this.isEnabled()&&(this.element=(0,g.default)(this.options.barTemplate),this.load(),this.colorpicker.picker.append(this.element))}},{key:"load",value:function(){var l=this,c=this.colorpicker,m=this.element.find(".colorpicker-swatches--inner"),w=this.options.namesAsValues===!0&&!Array.isArray(this.colors);m.empty(),g.default.each(this.colors,function(O,M){var P=(0,g.default)(l.options.swatchTemplate).attr("data-name",O).attr("data-value",M).attr("title",w?O+": "+M:M).on("mousedown.colorpicker touchstart.colorpicker",function(I){var H=(0,g.default)(this);c.setValue(w?H.attr("data-name"):H.attr("data-value"))});P.find(".colorpicker-swatch--inner").css("background-color",M),m.append(P)}),m.append((0,g.default)('<i class="colorpicker-clear"></i>'))}}]),r})(f.default);k.default=a,b.exports=k.default}),(function(b,k,y){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var p=(function(){function u(s,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(s,n.key,n)}}return function(s,t,e){return t&&u(s.prototype,t),e&&u(s,e),s}})(),v=y(0),h=f(v);
17function f(u){return u&&u.__esModule?u:{default:u}}function d(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}var g=(function(){function u(s){d(this,u),this.colorpicker=s,this.currentSlider=null,this.mousePointer={left:0,top:0},this.onMove=h.default.proxy(this.defaultOnMove,this)}return p(u,[{key:"defaultOnMove",value:function(t,e){if(this.currentSlider){var n=this.currentSlider,a=this.colorpicker,i=a.colorHandler,r=i.hasColor()?i.color.getClone():i.getFallbackColor();n.guideStyle.left=e+"px",n.guideStyle.top=t+"px",n.callLeft&&r[n.callLeft](e/n.maxLeft),n.callTop&&r[n.callTop](t/n.maxTop),a.setValue(r),a.popupHandler.focus()}}},{key:"bind",value:function(){var t=this.colorpicker.options.horizontal?this.colorpicker.options.slidersHorz:this.colorpicker.options.sliders,e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(t[n].selector);this.colorpicker.picker.find(e.join(", ")).on("mousedown.colorpicker touchstart.colorpicker",h.default.proxy(this.pressed,this))}},{key:"unbind",value:function(){(0,h.default)(this.colorpicker.picker).off({"mousemove.colorpicker":h.default.proxy(this.moved,this),"touchmove.colorpicker":h.default.proxy(this.moved,this),"mouseup.colorpicker":h.default.proxy(this.released,this),"touchend.colorpicker":h.default.proxy(this.released,this)})}},{key:"pressed",value:function(t){if(!this.colorpicker.isDisabled()){this.colorpicker.lastEvent.alias="pressed",this.colorpicker.lastEvent.e=t,!t.pageX&&!t.pageY&&t.originalEvent&&t.originalEvent.touches&&(t.pageX=t.originalEvent.touches[0].pageX,t.pageY=t.originalEvent.touches[0].pageY);var e=(0,h.default)(t.target),n=e.closest("div"),a=this.colorpicker.options.horizontal?this.colorpicker.options.slidersHorz:this.colorpicker.options.sliders;if(!n.is(".colorpicker")){this.currentSlider=null;for(var i in a)if(a.hasOwnProperty(i)){var r=a[i];if(n.is(r.selector)){this.currentSlider=h.default.extend({},r,{name:i});break}else if(r.childSelector!==void 0&&n.is(r.childSelector)){this.currentSlider=h.default.extend({},r,{name:i}),n=n.parent();break}}var o=n.find(".colorpicker-guide").get(0);if(!(this.currentSlider===null||o===null)){var l=n.offset();this.currentSlider.guideStyle=o.style,this.currentSlider.left=t.pageX-l.left,this.currentSlider.top=t.pageY-l.top,this.mousePointer={left:t.pageX,top:t.pageY},(0,h.default)(this.colorpicker.picker).on({"mousemove.colorpicker":h.default.proxy(this.moved,this),"touchmove.colorpicker":h.default.proxy(this.moved,this),"mouseup.colorpicker":h.default.proxy(this.released,this),"touchend.colorpicker":h.default.proxy(this.released,this)}).trigger("mousemove")}}}}},{key:"moved",value:function(t){this.colorpicker.lastEvent.alias="moved",this.colorpicker.lastEvent.e=t,!t.pageX&&!t.pageY&&t.originalEvent&&t.originalEvent.touches&&(t.pageX=t.originalEvent.touches[0].pageX,t.pageY=t.originalEvent.touches[0].pageY),t.preventDefault();var e=Math.max(0,Math.min(this.currentSlider.maxLeft,this.currentSlider.left+((t.pageX||this.mousePointer.left)-this.mousePointer.left))),n=Math.max(0,Math.min(this.currentSlider.maxTop,this.currentSlider.top+((t.pageY||this.mousePointer.top)-this.mousePointer.top)));this.onMove(n,e)}},{key:"released",value:function(t){this.colorpicker.lastEvent.alias="released",this.colorpicker.lastEvent.e=t,(0,h.default)(this.colorpicker.picker).off({"mousemove.colorpicker":this.moved,"touchmove.colorpicker":this.moved,"mouseup.colorpicker":this.released,"touchend.colorpicker":this.released})}}]),u})();k.default=g,b.exports=k.default}),(function(b,k,y){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var p=(function(){function t(e,n){for(var a=0;a<n.length;a++){var i=n[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}})(),v=y(0),h=g(v),f=y(3),d=g(f);function g(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var s=(function(){function t(e,n){u(this,t),this.root=n,this.colorpicker=e,this.popoverTarget=null,this.popoverTip=null,this.clicking=!1,this.hidding=!1,this.showing=!1}return p(t,[{key:"bind",value:function(){var n=this.colorpicker;if(n.options.inline){n.picker.addClass("colorpicker-inline colorpicker-visible");return}n.picker.addClass("colorpicker-popup colorpicker-hidden"),!(!this.hasInput&&!this.hasAddon)&&(n.options.popover&&this.createPopover(),this.hasAddon&&(this.addon.attr("tabindex")||this.addon.attr("tabindex",0),this.addon.on({"mousedown.colorpicker touchstart.colorpicker":h.default.proxy(this.toggle,this)}),this.addon.on({"focus.colorpicker":h.default.proxy(this.show,this)}),this.addon.on({"focusout.colorpicker":h.default.proxy(this.hide,this)})),this.hasInput&&!this.hasAddon&&(this.input.on({"mousedown.colorpicker touchstart.colorpicker":h.default.proxy(this.show,this),"focus.colorpicker":h.default.proxy(this.show,this)}),this.input.on({"focusout.colorpicker":h.default.proxy(this.hide,this)})),(0,h.default)(this.root).on("resize.colorpicker",h.default.proxy(this.reposition,this)))}},{key:"unbind",value:function(){this.hasInput&&(this.input.off({"mousedown.colorpicker touchstart.colorpicker":h.default.proxy(this.show,this),"focus.colorpicker":h.default.proxy(this.show,this)}),this.input.off({"focusout.colorpicker":h.default.proxy(this.hide,this)})),this.hasAddon&&(this.addon.off({"mousedown.colorpicker touchstart.colorpicker":h.default.proxy(this.toggle,this)}),this.addon.off({"focus.colorpicker":h.default.proxy(this.show,this)}),this.addon.off({"focusout.colorpicker":h.default.proxy(this.hide,this)})),this.popoverTarget&&this.popoverTarget.popover("dispose"),(0,h.default)(this.root).off("resize.colorpicker",h.default.proxy(this.reposition,this)),(0,h.default)(this.root.document).off("mousedown.colorpicker touchstart.colorpicker",h.default.proxy(this.hide,this)),(0,h.default)(this.root.document).off("mousedown.colorpicker touchstart.colorpicker",h.default.proxy(this.onClickingInside,this))}},{key:"isClickingInside",value:function(n){return n?this.isOrIsInside(this.popoverTip,n.currentTarget)||this.isOrIsInside(this.popoverTip,n.target)||this.isOrIsInside(this.colorpicker.picker,n.currentTarget)||this.isOrIsInside(this.colorpicker.picker,n.target):!1}},{key:"isOrIsInside",value:function(n,a){return!n||!a?!1:(a=(0,h.default)(a),a.is(n)||n.find(a).length>0)}},{key:"onClickingInside",value:function(n){this.clicking=this.isClickingInside(n)}},{key:"createPopover",value:function(){var n=this.colorpicker;this.popoverTarget=this.hasAddon?this.addon:this.input,n.picker.addClass("colorpicker-bs-popover-content"),this.popoverTarget.popover(h.default.extend(!0,{},d.default.popover,n.options.popover,{trigger:"manual",content:n.picker,html:!0}));var a=window.bootstrap&&window.bootstrap.Popover&&window.bootstrap.Popover.getInstance;this.popoverTip=a?(0,h.default)(bootstrap.Popover.getInstance(this.popoverTarget[0]).getTipElement()):(0,h.default)(this.popoverTarget.popover("getTipElement").data("bs.popover").tip),this.popoverTip.addClass("colorpicker-bs-popover"),this.popoverTarget.on("shown.bs.popover",h.default.proxy(this.fireShow,this)),this.popoverTarget.on("hidden.bs.popover",h.default.proxy(this.fireHide,this))}},{key:"reposition",value:function(n){this.popoverTarget&&this.isVisible()&&this.popoverTarget.popover("update")}},{key:"toggle",value:function(n){this.isVisible()?this.hide(n):this.show(n)}},{key:"show",value:function(n){if(!(this.isVisible()||this.showing||this.hidding)){this.showing=!0,this.hidding=!1,this.clicking=!1;var a=this.colorpicker;a.lastEvent.alias="show",a.lastEvent.e=n,n&&(!this.hasInput||this.input.attr("type")==="color")&&n&&n.preventDefault&&(n.stopPropagation(),n.preventDefault()),this.isPopover&&(0,h.default)(this.root).on("resize.colorpicker",h.default.proxy(this.reposition,this)),a.picker.addClass("colorpicker-visible").removeClass("colorpicker-hidden"),this.popoverTarget?this.popoverTarget.popover("show"):this.fireShow()}}},{key:"fireShow",value:function(){this.hidding=!1,this.showing=!1,this.isPopover&&((0,h.default)(this.root.document).on("mousedown.colorpicker touchstart.colorpicker",h.default.proxy(this.hide,this)),(0,h.default)(this.root.document).on("mousedown.colorpicker touchstart.colorpicker",h.default.proxy(this.onClickingInside,this))),this.colorpicker.trigger("colorpickerShow")}},{key:"hide",value:function(n){if(!(this.isHidden()||this.showing||this.hidding)){var a=this.colorpicker,i=this.clicking||this.isClickingInside(n);if(this.hidding=!0,this.showing=!1,this.clicking=!1,a.lastEvent.alias="hide",a.lastEvent.e=n,i){this.hidding=!1;return}this.popoverTarget?this.popoverTarget.popover("hide"):this.fireHide()}}},{key:"fireHide",value:function(){this.hidding=!1,this.showing=!1;var n=this.colorpicker;n.picker.addClass("colorpicker-hidden").removeClass("colorpicker-visible"),(0,h.default)(this.root).off("resize.colorpicker",h.default.proxy(this.reposition,this)),(0,h.default)(this.root.document).off("mousedown.colorpicker touchstart.colorpicker",h.default.proxy(this.hide,this)),(0,h.default)(this.root.document).off("mousedown.colorpicker touchstart.colorpicker",h.default.proxy(this.onClickingInside,this)),n.trigger("colorpickerHide")}},{key:"focus",value:function(){return this.hasAddon?this.addon.focus():this.hasInput?this.input.focus():!1}},{key:"isVisible",value:function(){return this.colorpicker.picker.hasClass("colorpicker-visible")&&!this.colorpicker.picker.hasClass("colorpicker-hidden")}},{key:"isHidden",value:function(){return this.colorpicker.picker.hasClass("colorpicker-hidden")&&!this.colorpicker.picker.hasClass("colorpicker-visible")}},{key:"input",get:function(){return this.colorpicker.inputHandler.input}},{key:"hasInput",get:function(){return this.colorpicker.inputHandler.hasInput()}},{key:"addon",get:function(){return this.colorpicker.addonHandler.add
17on}},{key:"hasAddon",get:function(){return this.colorpicker.addonHandler.hasAddon()}},{key:"isPopover",get:function(){return!this.colorpicker.options.inline&&!!this.popoverTip}}]),t})();k.default=s,b.exports=k.default}),(function(b,k,y){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var p=(function(){function t(e,n){for(var a=0;a<n.length;a++){var i=n[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}})(),v=y(0),h=g(v),f=y(2),d=g(f);function g(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var s=(function(){function t(e){u(this,t),this.colorpicker=e,this.input=this.colorpicker.element.is("input")?this.colorpicker.element:this.colorpicker.options.input?this.colorpicker.element.find(this.colorpicker.options.input):!1,this.input&&this.input.length===0&&(this.input=!1),this._initValue()}return p(t,[{key:"bind",value:function(){this.hasInput()&&(this.input.on({"keyup.colorpicker":h.default.proxy(this.onkeyup,this)}),this.input.on({"change.colorpicker":h.default.proxy(this.onchange,this)}))}},{key:"unbind",value:function(){this.hasInput()&&this.input.off(".colorpicker")}},{key:"_initValue",value:function(){if(this.hasInput()){var n="";[this.input.val(),this.input.data("color"),this.input.attr("data-color")].map(function(a){a&&n===""&&(n=a)}),n instanceof d.default?n=this.getFormattedColor(n.string(this.colorpicker.format)):typeof n=="string"||n instanceof String||(n=""),this.input.prop("value",n)}}},{key:"getValue",value:function(){return this.hasInput()?this.input.val():!1}},{key:"setValue",value:function(n){if(this.hasInput()){var a=this.input.prop("value");n=n||"",n!==(a||"")&&(this.input.prop("value",n),this.input.trigger({type:"change",colorpicker:this.colorpicker,color:this.colorpicker.color,value:n}))}}},{key:"getFormattedColor",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return n=n||this.colorpicker.colorHandler.getColorString(),n?(n=this.colorpicker.colorHandler.resolveColorDelegate(n,!1),this.colorpicker.options.useHashPrefix===!1&&(n=n.replace(/^#/g,"")),n):""}},{key:"hasInput",value:function(){return this.input!==!1}},{key:"isEnabled",value:function(){return this.hasInput()&&!this.isDisabled()}},{key:"isDisabled",value:function(){return this.hasInput()&&this.input.prop("disabled")===!0}},{key:"disable",value:function(){this.hasInput()&&this.input.prop("disabled",!0)}},{key:"enable",value:function(){this.hasInput()&&this.input.prop("disabled",!1)}},{key:"update",value:function(){this.hasInput()&&(this.colorpicker.options.autoInputFallback===!1&&this.colorpicker.colorHandler.isInvalidColor()||this.setValue(this.getFormattedColor()))}},{key:"onchange",value:function(n){this.colorpicker.lastEvent.alias="input.change",this.colorpicker.lastEvent.e=n;var a=this.getValue();a!==n.value&&this.colorpicker.setValue(a)}},{key:"onkeyup",value:function(n){this.colorpicker.lastEvent.alias="input.ke
17yup",this.colorpicker.lastEvent.e=n;var a=this.getValue();a!==n.value&&this.colorpicker.setValue(a)}}]),t})();k.default=s,b.exports=k.default}),(function(b,k,y){"use strict";var p=y(17),v=y(20),h=[].slice,f=["keyword","gray","hex"],d={};Object.keys(v).forEach(function(r){d[h.call(v[r].labels).sort().join("")]=r});var g={};function u(r,o){if(!(this instanceof u))return new u(r,o);if(o&&o in f&&(o=null),o&&!(o in v))throw new Error("Unknown model: "+o);var l,c;if(r==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(r instanceof u)this.model=r.model,this.color=r.color.slice(),this.valpha=r.valpha;else if(typeof r=="string"){var m=p.get(r);if(m===null)throw new Error("Unable to parse color from string: "+r);this.model=m.model,c=v[this.model].channels,this.color=m.value.slice(0,c),this.valpha=typeof m.value[c]=="number"?m.value[c]:1}else if(r.length){this.model=o||"rgb",c=v[this.model].channels;var w=h.call(r,0,c);this.color=i(w,c),this.valpha=typeof r[c]=="number"?r[c]:1}else if(typeof r=="number")r&=16777215,this.model="rgb",this.color=[r>>16&255,r>>8&255,r&255],this.valpha=1;else{this.valpha=1;var O=Object.keys(r);"alpha"in r&&(O.splice(O.indexOf("alpha"),1),this.valpha=typeof r.alpha=="number"?r.alpha:0);var M=O.sort().join("");if(!(M in d))throw new Error("Unable to parse color from object: "+JSON.stringify(r));this.model=d[M];var P=v[this.model].labels,I=[];for(l=0;l<P.length;l++)I.push(r[P[l]]);this.color=i(I)}if(g[this.model])for(c=v[this.model].channels,l=0;l<c;l++){var H=g[this.model][l];H&&(this.color[l]=H(this.color[l]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}u.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(r){var o=this.model in p.to?this:this.rgb();o=o.round(typeof r=="number"?r:1);var l=o.valpha===1?o.color:o.color.concat(this.valpha);return p.to[o.model](l)},percentString:function(r){var o=this.rgb().round(typeof r=="number"?r:1),l=o.valpha===1?o.color:o.color.concat(this.valpha);return p.to.rgb.percent(l)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var r={},o=v[this.model].channels,l=v[this.model].labels,c=0;c<o;c++)r[l[c]]=this.color[c];return this.valpha!==1&&(r.alpha=this.valpha),r},unitArray:function(){var r=this.rgb().color;return r[0]/=255,r[1]/=255,r[2]/=255,this.valpha!==1&&r.push(this.valpha),r},unitObject:function(){var r=this.rgb().object();return r.r/=255,r.g/=255,r.b/=255,this.valpha!==1&&(r.alpha=this.valpha),r},round:function(r){return r=Math.max(r||0,0),new u(this.color.map(t(r)).concat(this.valpha),this.model)},alpha:function(r){return arguments.length?new u(this.color.concat(Math.max(0,Math.min(1,r))),this.model):this.valpha},red:e("rgb",0,n(255)),green:e("rgb",1,n(255)),blue:e("rgb",2,n(255)),hue:e(["hsl","hsv","hsl","hwb","hcg"],0,function(r){return(r%360+360)%360}),saturationl:e("hsl",1,n(100)),lightness:e("hsl",2,n(100)),saturationv:e("hsv",1,n(100)),value:e("hsv",2,n(100)),chroma:e("hcg",1,n(100)),gray:e("hcg",2,n(100)),white:e("hwb",1,n(100)),wblack:e("hwb",2,n(100)),cyan:e("cmyk",0,n(100)),magenta:e("cmyk",1,n(100)),yellow:e("cmyk",2,n(100)),black:e("cmyk",3,n(100)),x:e("xyz",0,n(100)),y:e("xyz",1,n(100)),z:e("xyz",2,n(100)),l:e("lab",0,n(100)),a:e("lab",1),b:e("lab",2),keyword:function(r){return arguments.length?new u(r):v[this.model].keyword(this.color)},hex:function(r){return arguments.length?new u(r):p.to.hex(this.rgb().round().color)},rgbNumber:function(){var r=this.rgb().color;return(r[0]&255)<<16|(r[1]&255)<<8|r[2]&255},luminosity:function(){for(var r=this.rgb().color,o=[],l=0;l<r.length;l++){var c=r[l]/255;o[l]=c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)}return .2126*o[0]+.7152*o[1]+.0722*o[2]},contrast:function(r){var o=this.luminosity(),l=r.luminosity();return o>l?(o+.05)/(l+.05):(l+.05)/(o+.05)},level:function(r){var o=this.contrast(r);return o>=7.1?"AAA":o>=4.5?"AA":""},isDark:function(){var r=this.rgb().color,o=(r[0]*299+r[1]*587+r[2]*114)/1e3;return o<128},isLight:function(){return!this.isDark()},negate:function(){for(var r=this.rgb(),o=0;o<3;o++)r.color[o]=255-r.color[o];return r},lighten:function(r){var o=this.hsl();return o.color[2]+=o.color[2]*r,o},darken:function(r){var o=this.hsl();return o.color[2]-=o.color[2]*r,o},saturate:function(r){var o=this.hsl();return o.color[1]+=o.color[1]*r,o},desaturate:function(r){var o=this.hsl();return o.color[1]-=o.color[1]*r,o},whiten:function(r){var o=this.hwb();return o.color[1]+=o.color[1]*r,o},blacken:function(r){var o=this.hwb();return o.color[2]+=o.color[2]*r,o},grayscale:function(){var r=this.rgb().color,o=r[0]*.3+r[1]*.59+r[2]*.11;return u.rgb(o,o,o)},fade:function(r){return this.alpha(this.valpha-this.valpha*r)},opaquer:function(r){return this.alpha(this.valpha+this.valpha*r)},rotate:function(r){var o=this.hsl(),l=o.color[0];return l=(l+r)%360,l=l<0?360+l:l,o.color[0]=l,o},mix:function(r,o){if(!r||!r.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof r);var l=r.rgb(),c=this.rgb(),m=o===void 0?.5:o,w=2*m-1,O=l.alpha()-c.alpha(),M=((w*O===-1?w:(w+O)/(1+w*O))+1)/2,P=1-M;return u.rgb(M*l.red()+P*c.red(),M*l.green()+P*c.green(),M*l.blue()+P*c.blue(),l.alpha()*m+c.alpha()*(1-m))}},Object.keys(v).forEach(function(r){if(f.indexOf(r)===-1){var o=v[r].channels;u.prototype[r]=function(){if(this.model===r)return new u(this);if(arguments.length)return new u(arguments,r);var l=typeof arguments[o]=="number"?o:this.valpha;return new u(a(v[this.model][r].raw(this.color)).concat(l),r)},u[r]=function(l){return typeof l=="number"&&(l=i(h.call(arguments),o)),new u(l,r)}}});function s(r,o){return Number(r.toFixed(o))}function t(r){return function(o){return s(o,r)}}function e(r,o,l){return r=Array.isArray(r)?r:[r],r.forEach(function(c){(g[c]||(g[c]=[]))[o]=l}),r=r[0],function(c){var m;return arguments.length?(l&&(c=l(c)),m=this[r](),m.color[o]=c,m):(m=this[r]().color[o],l&&(m=l(m)),m)}}function n(r){return function(o){return Math.max(0,Math.min(r,o))}}function a(r){return Array.isArray(r)?r:[r]}function i(r,o){for(var l=0;l<o;l++)typeof r[l]!="number"&&(r[l]=0);return r}b.exports=u}),(function(b,k,y){var p=y(5),v=y(18),h={};for(var f in p)p.hasOwnProperty(f)&&(h[p[f]]=f);var d=b.exports={to:{},get:{}};d.get=function(s){var t=s.substring(0,3).toLowerCase(),e,n;switch(t){case"hsl":e=d.get.hsl(s),n="hsl";break;case"hwb":e=d.get.hwb(s),n="hwb";break;default:e=d.get.rgb(s),n="rgb";break}return e?{model:n,value:e}:null},d.get.rgb=function(s){if(!s)return null;var t=/^#([a-f0-9]{3,4})$/i,e=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,i=/(\D+)/,r=[0,0,0,1],o,l,c;if(o=s.match(e)){for(c=o[2],o=o[1],l=0;l<3;l++){var m=l*2;r[l]=parseInt(o.slice(m,m+2),16)}c&&(r[3]=Math.round(parseInt(c,16)/255*100)/100)}else if(o=s.match(t)){for(o=o[1],c=o[3],l=0;l<3;l++)r[l]=parseInt(o[l]+o[l],16);c&&(r[3]=Math.round(parseInt(c+c,16)/255*100)/100)}else if(o=s.match(n)){for(l=0;l<3;l++)r[l]=parseInt(o[l+1],0);o[4]&&(r[3]=parseFloat(o[4]))}else if(o=s.match(a)){for(l=0;l<3;l++)r[l]=Math.round(parseFloat(o[l+1])*2.55);o[4]&&(r[3]=parseFloat(o[4]))}else return(o=s.match(i))?o[1]==="transparent"?[0,0,0,0]:(r=p[o[1]],r?(r[3]=1,r):null):null;for(l=0;l<3;l++)r[l]=g(r[l],0,255);return r[3]=g(r[3],0,1),r},d.get.hsl=function(s){if(!s)return null;var t=/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,e=s.match(t);if(e){var n=parseFloat(e[4]),a=(parseFloat(e[1])+360)%360,i=g(parseFloat(e[2]),0,100),r=g(parseFloat(e[3]),0,100),o=g(isNaN(n)?1:n,0,1);return[a,i,r,o]}return null},d.get.hwb=function(s){if(!s)return null;var t=/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,e=s.match(t);if(e){var n=parseFloat(e[4]),a=(parseFloat(e[1])%360+360)%360,i=g(parseFloat(e[2]),0,100),r=g(parseFloat(e[3]),0,100),o=g(isNaN(n)?1:n,0,1);return[a,i,r,o]}return null},d.to.hex=function(){var s=v(arguments);return"#"+u(s[0])+u(s[1])+u(s[2])+(s[3]<1?u(Math.round(s[3]*255)):"")},d.to.rgb=function(){var s=v(arguments);
17return s.length<4||s[3]===1?"rgb("+Math.round(s[0])+", "+Math.round(s[1])+", "+Math.round(s[2])+")":"rgba("+Math.round(s[0])+", "+Math.round(s[1])+", "+Math.round(s[2])+", "+s[3]+")"},d.to.rgb.percent=function(){var s=v(arguments),t=Math.round(s[0]/255*100),e=Math.round(s[1]/255*100),n=Math.round(s[2]/255*100);return s.length<4||s[3]===1?"rgb("+t+"%, "+e+"%, "+n+"%)":"rgba("+t+"%, "+e+"%, "+n+"%, "+s[3]+")"},d.to.hsl=function(){var s=v(arguments);return s.length<4||s[3]===1?"hsl("+s[0]+", "+s[1]+"%, "+s[2]+"%)":"hsla("+s[0]+", "+s[1]+"%, "+s[2]+"%, "+s[3]+")"},d.to.hwb=function(){var s=v(arguments),t="";return s.length>=4&&s[3]!==1&&(t=", "+s[3]),"hwb("+s[0]+", "+s[1]+"%, "+s[2]+"%"+t+")"},d.to.keyword=function(s){return h[s.slice(0,3)]};function g(s,t,e){return Math.min(Math.max(t,s),e)}function u(s){var t=s.toString(16).toUpperCase();return t.length<2?"0"+t:t}}),(function(b,k,y){"use strict";var p=y(19),v=Array.prototype.concat,h=Array.prototype.slice,f=b.exports=function(g){for(var u=[],s=0,t=g.length;s<t;s++){var e=g[s];p(e)?u=v.call(u,h.call(e)):u.push(e)}return u};f.wrap=function(d){return function(){return d(f(arguments))}}}),(function(b,k,y){"use strict";b.exports=function(v){return v?v instanceof Array||Array.isArray(v)||v.length>=0&&v.splice instanceof Function:!1}}),(function(b,k,y){var p=y(6),v=y(21),h={},f=Object.keys(p);function d(u){var s=function(t){return t==null?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),u(t))};return"conversion"in u&&(s.conversion=u.conversion),s}function g(u){var s=function(t){if(t==null)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var e=u(t);if(typeof e=="object")for(var n=e.length,a=0;a<n;a++)e[a]=Math.round(e[a]);return e};return"conversion"in u&&(s.conversion=u.conversion),s}f.forEach(function(u){h[u]={},Object.defineProperty(h[u],"channels",{value:p[u].channels}),Object.defineProperty(h[u],"labels",{value:p[u].labels});var s=v(u),t=Object.keys(s);t.forEach(function(e){var n=s[e];h[u][e]=g(n),h[u][e].raw=d(n)})}),b.exports=h}),(function(b,k,y){var p=y(6);function v(){for(var g={},u=Object.keys(p),s=u.length,t=0;t<s;t++)g[u[t]]={distance:-1,parent:null};return g}function h(g){var u=v(),s=[g];for(u[g].distance=0;s.length;)for(var t=s.pop(),e=Object.keys(p[t]),n=e.length,a=0;a<n;a++){var i=e[a],r=u[i];r.distance===-1&&(r.distance=u[t].distance+1,r.parent=t,s.unshift(i))}return u}function f(g,u){return function(s){return u(g(s))}}function d(g,u){for(var s=[u[g].parent,g],t=p[u[g].parent][g],e=u[g].parent;u[e].parent;)s.unshift(u[e].parent),t=f(p[u[e].parent][e],t),e=u[e].parent;return t.conversion=s,t}b.exports=function(g){for(var u=h(g),s={},t=Object.keys(u),e=t.length,n=0;n<e;n++){var a=t[n],i=u[a];i.parent!==null&&(s[a]=d(a,u))}return s}}),(function(b,k,y){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var p=(function(){function t(e,n){for(var a=0;a<n.length;a++){var i=n[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}})(),v=y(0),h=g(v),f=y(2),d=g(f);function g(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var s=(function(){function t(e){u(this,t),this.colorpicker=e}return p(t,[{key:"bind",value:function(){if(this.colorpicker.options.color){this.color=this.createColor(this.colorpicker.options.color);return}!this.color&&this.colorpicker.inputHandler.getValue()&&(this.color=this.createColor(this.colorpicker.inputHandler.getValue(),this.colorpicker.options.autoInputFallback))}},{key:"unbind",value:function(){this.colorpicker.element.removeData("color")}},{key:"getColorString",value:function(){return this.hasColor()?this.color.string(this.format):""}},{key:"setColorString",value:function(n){var a=n?this.createColor(n):null;this.color=a||null}},{key:"createColor",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=!a&&!i,o=new d.default(this.resolveColorDelegate(n),this.format,r);return o.isValid()||(a&&(o=this.getFallbackColor()),this.colorpicker.trigger("colorpickerInvalid",o,n)),this.isAlphaEnabled()||(o.alpha=1),o}},{key:"getFallbackColor",value:function(){if(this.fallback&&this.fallback===this.color)return this.color;var n=this.resolveColorDelegate(this.fallback),a=new d.default(n,this.format);return a.isValid()?a:(console.warn("The fallback color is invali
17d. Falling back to the previous color or black if any."),this.color?this.color:new d.default("#000000",this.format))}},{key:"assureColor",value:function(){return this.hasColor()||(this.color=this.getFallbackColor()),this.color}},{key:"resolveColorDelegate",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=!1;return h.default.each(this.colorpicker.extensions,function(r,o){i===!1&&(i=o.resolveColor(n,a))}),i||n}},{key:"isInvalidColor",value:function(){return!this.hasColor()||!this.color.isValid()}},{key:"isAlphaEnabled",value:function(){return this.colorpicker.options.useAlpha!==!1}},{key:"hasColor",value:function(){return this.color instanceof d.default}},{key:"fallback",get:function(){return this.colorpicker.options.fallbackColor?this.colorpicker.options.fallbackColor:this.hasColor()?this.color:null}},{key:"format",get:function(){return this.colorpicker.options.format?this.colorpicker.options.format:this.hasColor()&&this.color.hasTransparency()&&this.color.format.match(/^hex/)?this.isAlphaEnabled()?"rgba":"hex":this.hasColor()?this.color.format:"rgb"}},{key:"color",get:function(){return this.colorpicker.element.data("color")}
17,set:function(n){this.colorpicker.element.data("color",n),n instanceof d.default&&this.colorpicker.options.format==="auto"&&(this.colorpicker.options.format=this.color.format)}}]),t})();k.default=s,b.exports=k.default}),(function(b,k,y){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var p=(function(){function u(s,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(s,n.key,n)}}return function(s,t,e){return t&&u(s.prototype,t),e&&u(s,e),s}})(),v=y(0),h=f(v);function f(u){return u&&u.__esModule?u:{default:u}}function d(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}var g=(function(){function u(s){d(this,u),this.colorpicker=s,this.picker=null}return p(u,[{key:"bind",value:function(){var t=this.picker=(0,h.default)(this.options.template);this.options.customClass&&t.addClass(this.options.customClass),this.options.horizontal&&t.addClass("colorpicker-horizontal"),this._supportsAlphaBar()?(this.options.useAlpha=!0,t.addClass("colorpicker-with-alpha")):this.options.useAlpha=!1}},{key:"attach",value:function(){var t=this.colorpicker.container?this.colorpicker.container:null;t&&this.picker.appendTo(t)}},{key:"unbind",value:function(){this.picker.remove()}},{key:"_supportsAlphaBar",value:function(){return(this.options.useAlpha||this.colorpicker.colorHandler.hasColor()&&this.color.hasTransparency())&&this.options.useAlpha!==!1&&(!this.options.format||this.options.format&&!this.options.format.match(/^hex([36])?$/i))}},{key:"update",value:function(){if(this.colorpicker.colorHandler.hasColor()){var t=this.options.horizontal!==!0,e=t?this.options.sliders:this.options.slidersHorz,n=this.picker.find(".colorpicker-saturation .colorpicker-guide"),a=this.picker.find(".colorpicker-hue .colorpicker-guide"),i=this.picker.find(".colorpicker-alpha .colorpicker-guide"),r=this.color.toHsvaRatio();a.length&&a.css(t?"top":"left",(t?e.hue.maxTop:e.hue.maxLeft)*(1-r.h)),i.length&&i.css(t?"top":"left",(t?e.alpha.maxTop:e.alpha.maxLeft)*(1-r.a)),n.length&&n.css({top:e.saturation.maxTop-r.v*e.saturation.maxTop,left:r.s*e.saturation.maxLeft}),this.picker.find(".colorpicker-saturation").css("backgroundColor",this.color.getCloneHueOnly().toHexString());var o=this.color.toHexString(),l="";this.options.horizontal?l="linear-gradient(to right, "+o+" 0%, transparent 100%)":l="linear-gradient(to bottom, "+o+" 0%, transparent 100%)",this.picker.find(".colorpicker-alpha-color").css("background",l)}}},{key:"options",get:function(){return this.colorpicker.options}},{key:"color",get:function(){return this.colorpicker.colorHandler.color}}]),u})();k.default=g,b.exports=k.default}),(function(b,k,y){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var p=(function(){function f(d,g){for(var u=0;u<g.length;u++){var s=g[u];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(d,s.key,s)}}return function(d,g,u){return g&&f(d.prototype,g),u&&f(d,u),d}})();function v(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}var h=(function(){function f(d){v(this,f),this.colorpicker=d,this.addon=null}return p(f,[{key:"hasAddon",value:function(){return!!this.addon}},{key:"bind",value:function(){this.addon=this.colorpicker.options.addon?this.colorpicker.element.find(this.colorpicker.options.addon):null,this.addon&&this.addon.length===0&&(this.addon=null)}},{key:"unbind",value:function(){this.hasAddon()&&this.addon.off(".colorpicker")}},{key:"update",value:function(){if(!(!this.colorpicker.colorHandler.hasColor()||!this.hasAddon())){var g=this.colorpicker.colorHandler.getColorString(),u={background:g},s=this.addon.find("i").eq(0);s.length>0?s.css(u):this.addon.css(u)}}}]),f})();k.default=h,b.exports=k.default})])})}),83517:(function(F,T,A){"use strict";A.r(T)})}]);

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.