/**
* 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.colorpicker.min",["kendo.core.min","kendo.color.min","kendo.popup.min","kendo.slider.min","kendo.userevents.min"],e)}(function(){return function(e,t,a){function s(e,t,a){a=d(a),a&&!a.equals(e.color())&&("change"==t&&(e._value=a),a=1!=a.a?a.toCssRgba():a.toCss(),e.trigger(t,{value:a}))}function n(e,t,a){var s,n;return e=Array.prototype.slice.call(e),s=e.length,n=e.indexOf(t),n<0?a<0?e[s-1]:e[0]:(n+=a,n<0?n+=s:n%=s,e[n])}function i(e){e.preventDefault()}function l(e,t){return function(){return e.apply(t,arguments)}}var o=window.kendo,r=o.ui,c=r.Widget,d=o.parseColor,u=o.Color,p=o.keys,C="background-color",F="k-state-selected",h="000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7",f="FFFFFF,FFCCFF,FF99FF,FF66FF,FF33FF,FF00FF,CCFFFF,CCCCFF,CC99FF,CC66FF,CC33FF,CC00FF,99FFFF,99CCFF,9999FF,9966FF,9933FF,9900FF,FFFFCC,FFCCCC,FF99CC,FF66CC,FF33CC,FF00CC,CCFFCC,CCCCCC,CC99CC,CC66CC,CC33CC,CC00CC,99FFCC,99CCCC,9999CC,9966CC,9933CC,9900CC,FFFF99,FFCC99,FF9999,FF6699,FF3399,FF0099,CCFF99,CCCC99,CC9999,CC6699,CC3399,CC0099,99FF99,99CC99,999999,996699,993399,990099,FFFF66,FFCC66,FF9966,FF6666,FF3366,FF0066,CCFF66,CCCC66,CC9966,CC6666,CC3366,CC0066,99FF66,99CC66,999966,996666,993366,990066,FFFF33,FFCC33,FF9933,FF6633,FF3333,FF0033,CCFF33,CCCC33,CC9933,CC6633,CC3333,CC0033,99FF33,99CC33,999933,996633,993333,990033,FFFF00,FFCC00,FF9900,FF6600,FF3300,FF0000,CCFF00,CCCC00,CC9900,CC6600,CC3300,CC0000,99FF00,99CC00,999900,996600,993300,990000,66FFFF,66CCFF,6699FF,6666FF,6633FF,6600FF,33FFFF,33CCFF,3399FF,3366FF,3333FF,3300FF,00FFFF,00CCFF,0099FF,0066FF,0033FF,0000FF,66FFCC,66CCCC,6699CC,6666CC,6633CC,6600CC,33FFCC,33CCCC,3399CC,3366CC,3333CC,3300CC,00FFCC,00CCCC,0099CC,0066CC,0033CC,0000CC,66FF99,66CC99,669999,666699,663399,660099,33FF99,33CC99,339999,336699,333399,330099,00FF99,00CC99,009999,006699,003399,000099,66FF66,66CC66,669966,666666,663366,660066,33FF66,33CC66,339966,336666,333366,330066,00FF66,00CC66,009966,006666,003366,000066,66FF33,66CC33,669933,666633,663333,660033,33FF33,33CC33,339933,336633,333333,330033,00FF33,00CC33,009933,006633,003333,000033,66FF00,66CC00,669900,666600,663300,660000,33FF00,33CC00,339900,336600,333300,330000,00FF00,00CC00,009900,006600,003300,000000",_={apply:"Apply",cancel:"Cancel"},v=".kendoColorTools",g="click"+v,k="keydown"+v,m=o.support.browser,b=m.msie&&m.version<9,y=c.extend({init:function(e,t){var a,s=this;c.fn.init.call(s,e,t),e=s.element,t=s.options,s._value=t.value=d(t.value),s._tabIndex=e.attr("tabIndex")||0,a=s._ariaId=t.ariaId,a&&e.attr("aria-labelledby",a),t._standalone&&(s._triggerSelect=s._triggerChange)},options:{name:"ColorSelector",value:null,_standalone:!0},events:["change","select","cancel"],color:function(e){return e!==a&&(this._value=d(e),this._updateUI(this._value)),this._value},value:function(e){return e=this.color(e),e&&(e=this.options.opacity?e.toCssRgba():e.toCss()),e||null},enable:function(t){0===arguments.length&&(t=!0),e(".k-disabled-overlay",this.wrapper).remove(),t||this.wrapper.append("
"),this._onEnable(t)},_select:function(e,t){var a=this._value;e=this.color(e),t||(this.element.trigger("change"),e.equals(a)?this._standalone||this.trigger("cancel"):this.trigger("change",{value:this.value()}))},_triggerSelect:function(e){s(this,"select",e)},_triggerChange:function(e){s(this,"change",e)},destroy:function(){this.element&&this.element.off(v),this.wrapper&&this.wrapper.off(v).find("*").off(v),this.wrapper=null,c.fn.destroy.call(this)},_updateUI:e.noop,_selectOnHide:function(){return null},_cancel:function(){this.trigger("cancel")}}),w=y.extend({init:function(t,a){var s,n,i,r,c=this;if(y.fn.init.call(c,t,a),t=c.wrapper=c.element,a=c.options,s=a.palette,"websafe"==s?(s=f,a.columns=18):"basic"==s&&(s=h),"string"==typeof s&&(s=s.split(",")),e.isArray(s)&&(s=e.map(s,function(e){return d(e)})),c._selectedID=(a.ariaId||o.guid())+"_selected",t.addClass("k-widget k-colorpalette").attr("role","grid").attr("aria-readonly","true").append(e(c._template({colors:s,columns:a.columns,tileSize:a.tileSize,value:c._value,id:a.ariaId}))).on(g,".k-item",function(t){c._select(e(t.currentTarget).css(C))}).attr("tabIndex",c._tabIndex).on(k,l(c._keydown,c)),n=a.tileSize){if(/number|string/.test(typeof n))i=r=parseFloat(n);else{if("object"!=typeof n)throw Error("Unsupported value for the 'tileSize' argument");i=parseFloat(n.width),r=parseFloat(n.height)}t.find(".k-item").css({width:i,height:r})}},focus:function(){this.wrapper.focus()},options:{name:"ColorPalette",columns:10,tileSize:null,palette:"basic"},_onEnable:function(e){e?this.wrapper.attr("tabIndex",this._tabIndex):this.wrapper.removeAttr("tabIndex")},_keydown:function(t){var a,s,l=this.wrapper,o=l.find(".k-item"),r=o.filter("."+F).get(0),c=t.keyCode;if(c==p.LEFT?a=n(o,r,-1):c==p.RIGHT?a=n(o,r,1):c==p.DOWN?a=n(o,r,this.options.columns):c==p.UP?a=n(o,r,-this.options.columns):c==p.ENTER?(i(t),r&&this._select(e(r).css(C))):c==p.ESC&&this._cancel(),a){i(t),this._current(a);try{s=d(a.css(C)),this._triggerSelect(s)}catch(u){}}},_current:function(t){this.wrapper.find("."+F).removeClass(F).attr("aria-selected",!1).removeAttr("id"),e(t).addClass(F).attr("aria-selected",!0).attr("id",this._selectedID),this.element.removeAttr("aria-activedescendant").attr("aria-activedescendant",this._selectedID)},_updateUI:function(t){var a=null;this.wrapper.find(".k-item").each(function(){var s=d(e(this).css(C));if(s&&s.equals(t))return a=this,!1}),this._current(a)},_template:o.template('
# for (var i = 0; i < colors.length; ++i) { ## var selected = colors[i].equals(value); ## if (i && i % columns == 0) { #