/** 
 * Kendo UI v2016.3.1118 (http://www.telerik.com/kendo-ui)                                                                                                                                              
 * Copyright 2016 Telerik AD. All rights reserved.                                                                                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(e,define){define("kendo.color.min",["kendo.core.min"],e)}(function(){!function(e,t,r){function n(e,f){var a,i;if(null==e||"none"==e)return null;if(e instanceof s)return e;if(e=e.toLowerCase(),a=o.exec(e))return e="transparent"==a[1]?new u(1,1,1,0):n(h.namedColors[a[1]],f),e.match=[a[1]],e;if((a=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(e))?i=new l(r(a[1],16),r(a[2],16),r(a[3],16),1):(a=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(e))?i=new l(r(a[1]+a[1],16),r(a[2]+a[2],16),r(a[3]+a[3],16),1):(a=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(e))?i=new l(r(a[1],10),r(a[2],10),r(a[3],10),1):(a=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(e))?i=new l(r(a[1],10),r(a[2],10),r(a[3],10),t(a[4])):(a=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(e))?i=new u(t(a[1])/100,t(a[2])/100,t(a[3])/100,1):(a=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(e))&&(i=new u(t(a[1])/100,t(a[2])/100,t(a[3])/100,t(a[4]))),i)i.match=a;else if(!f)throw Error("Cannot parse color: "+e);return i}function f(e,t,r){for(r||(r="0"),e=e.toString(16);t>e.length;)e="0"+e;return e}function a(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}var o,i,s,u,l,d,c,h=function(e){var t,r,n,f,a,o=this,i=h.formats;if(1===arguments.length)for(e=o.resolveColor(e),f=0;f<i.length;f++)t=i[f].re,r=i[f].process,n=t.exec(e),n&&(a=r(n),o.r=a[0],o.g=a[1],o.b=a[2]);else o.r=arguments[0],o.g=arguments[1],o.b=arguments[2];o.r=o.normalizeByte(o.r),o.g=o.normalizeByte(o.g),o.b=o.normalizeByte(o.b)};h.prototype={toHex:function(){var e=this,t=e.padDigit,r=e.r.toString(16),n=e.g.toString(16),f=e.b.toString(16);return"#"+t(r)+t(n)+t(f)},resolveColor:function(e){return e=e||"black","#"==e.charAt(0)&&(e=e.substr(1,6)),e=e.replace(/ /g,""),e=e.toLowerCase(),e=h.namedColors[e]||e},normalizeByte:function(e){return e<0||isNaN(e)?0:e>255?255:e},padDigit:function(e){return 1===e.length?"0"+e:e},brightness:function(e){var t=this,r=Math.round;return t.r=r(t.normalizeByte(t.r*e)),t.g=r(t.normalizeByte(t.g*e)),t.b=r(t.normalizeByte(t.b*e)),t},percBrightness:function(){var e=this;return Math.sqrt(.241*e.r*e.r+.691*e.g*e.g+.068*e.b*e.b)}},h.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[r(e[1],10),r(e[2],10),r(e[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(e){return[r(e[1],16),r(e[2],16),r(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(e){return[r(e[1]+e[1],16),r(e[2]+e[2],16),r(e[3]+e[3],16)]}}],h.namedColors={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",darkgrey:"a9a9a9",darkgreen:"006400",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",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",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:"9370d8",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:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",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"},o=["transparent"];for(i in h.namedColors)h.namedColors.hasOwnProperty(i)&&o.push(i);o=RegExp("^("+o.join("|")+")(\\W|$)","i"),s=kendo.Class.extend({toHSV:function(){return this},toRGB:function(){return this},toHex:function(){return this.toBytes().toHex()},toBytes:function(){return this},toCss:function(){return"#"+this.toHex()},toCssRgba:function(){var e=this.toBytes();return"rgba("+e.r+", "+e.g+", "+e.b+", "+t((+this.a).toFixed(3))+")"},toDisplay:function(){return kendo.support.browser.msie&&kendo.support.browser.version<9?this.toCss():this.toCssRgba()},equals:function(e){return e===this||null!==e&&this.toCssRgba()==n(e).toCssRgba()},diff:function(e){if(null==e)return NaN;var t=this.toBytes();return e=e.toBytes(),Math.sqrt(Math.pow(.3*(t.r-e.r),2)+Math.pow(.59*(t.g-e.g),2)+Math.pow(.11*(t.b-e.b),2))},clone:function(){var e=this.toBytes();return e===this&&(e=new l(e.r,e.g,e.b,e.a)),e}}),u=s.extend({init:function(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n},toHSV:function(){var e,t,r=this.r,n=this.g,f=this.b,a=Math.min(r,n,f),o=Math.max(r,n,f),i=o,s=o-a;return 0===s?new d(0,0,i,this.a):(0!==o?(t=s/o,e=r==o?(n-f)/s:n==o?2+(f-r)/s:4+(r-n)/s,e*=60,e<0&&(e+=360)):(t=0,e=-1),new d(e,t,i,this.a))},toHSL:function(){var e,t,r,n=this.r,f=this.g,a=this.b,o=Math.max(n,f,a),i=Math.min(n,f,a),s=(o+i)/2;if(o==i)e=t=0;else{switch(r=o-i,t=s>.5?r/(2-o-i):r/(o+i),o){case n:e=(f-a)/r+(f<a?6:0);break;case f:e=(a-n)/r+2;break;case a:e=(n-f)/r+4}e*=60,t*=100,s*=100}return new c(e,t,s,this.a)},toBytes:function(){return new l(255*this.r,255*this.g,255*this.b,this.a)}}),l=u.extend({init:function(e,t,r,n){this.r=Math.round(e),this.g=Math.round(t),this.b=Math.round(r),this.a=n},toRGB:function(){return new u(this.r/255,this.g/255,this.b/255,this.a)},toHSV:function(){return this.toRGB().toHSV()},toHSL:function(){return this.toRGB().toHSL()},toHex:function(){return f(this.r,2)+f(this.g,2)+f(this.b,2)},toBytes:function(){return this}}),d=s.extend({init:function(e,t,r,n){this.h=e,this.s=t,this.v=r,this.a=n},toRGB:function(){var e,t,r,n,f,a,o,i,s=this.h,l=this.s,d=this.v;if(0===l)t=r=n=d;else switch(s/=60,e=Math.floor(s),f=s-e,a=d*(1-l),o=d*(1-l*f),i=d*(1-l*(1-f)),e){case 0:t=d,r=i,n=a;break;case 1:t=o,r=d,n=a;break;case 2:t=a,r=d,n=i;break;case 3:t=a,r=o,n=d;break;case 4:t=i,r=a,n=d;break;default:t=d,r=a,n=o}return new u(t,r,n,this.a)},toHSL:function(){return this.toRGB().toHSL()},toBytes:function(){return this.toRGB().toBytes()}}),c=s.extend({init:function(e,t,r,n){this.h=e,this.s=t,this.l=r,this.a=n},toRGB:function(){var e,t,r,n,f,o=this.h,i=this.s,s=this.l;return 0===i?e=t=r=s:(o/=360,i/=100,s/=100,n=s<.5?s*(1+i):s+i-s*i,f=2*s-n,e=a(f,n,o+1/3),t=a(f,n,o),r=a(f,n,o-1/3)),new u(e,t,r,this.a)},toHSV:function(){return this.toRGB().toHSV()},toBytes:function(){return this.toRGB().toBytes()}}),h.fromBytes=function(e,t,r,n){return new l(e,t,r,null!=n?n:1)},h.fromRGB=function(e,t,r,n){return new u(e,t,r,null!=n?n:1)},h.fromHSV=function(e,t,r,n){return new d(e,t,r,null!=n?n:1)},h.fromHSL=function(e,t,r,n){return new c(e,t,r,null!=n?n:1)},kendo.Color=h,kendo.parseColor=n}(window.kendo.jQuery,parseFloat,parseInt)},"function"==typeof define&&define.amd?define:function(e,t,r){(r||t)()});
//# sourceMappingURL=kendo.color.min.js.map
