403Webshell
Server IP : 66.29.132.124  /  Your IP : 18.119.135.67
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/blog.diixadigital.com/wp-content/themes/rubik/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/blog.diixadigital.com/wp-content/themes/rubik/js/bootstrap-colorpicker.min.js
/*!
 * Bootstrap Colorpicker - Simple and customizable colorpicker component for Twitter Bootstrap.
 * @package bootstrap-colorpicker
 * @version v3.0.0
 * @license MIT
 * @link https://farbelous.github.io/bootstrap-colorpicker/
 * @link https://github.com/farbelous/bootstrap-colorpicker.git
 */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("jQuery")):"function"==typeof define&&define.amd?define("bootstrap-colorpicker",["jQuery"],e):"object"==typeof exports?exports["bootstrap-colorpicker"]=e(require("jQuery")):t["bootstrap-colorpicker"]=e(t.jQuery)}(this,function(t){return function(t){function e(i){if(o[i])return o[i].exports;var r=o[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var o={};return e.m=t,e.c=o,e.d=function(t,o,i){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=1)}([function(e,o){e.exports=t},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=o(2),a=i(n),s=o(0),l=i(s),u="colorpicker";l.default[u]=a.default,l.default.fn[u]=function(t){var e=Array.prototype.slice.call(arguments,1),o=1===this.length,i=null,n=this.each(function(){var o=(0,l.default)(this),n=o.data(u),s="object"===(void 0===t?"undefined":r(t))?t:{};n||(n=new a.default(this,s),o.data(u,n)),"string"==typeof t?l.default.isFunction(n[t])?i=n[t].apply(n,e):(e.length&&(n[t]=e[0]),i=n[t]):i=o});return o?i:n},l.default.fn[u].constructor=a.default},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),a=o(3),s=i(a),l=o(5),u=i(l),c=o(0),h=i(c),f=function(){function t(e,o){r(this,t),this.element=(0,h.default)(e).addClass("colorpicker-element"),this.options=h.default.extend(!0,{},u.default,this.element.data(),o),this.component=this.options.component,this.component=!1!==this.component&&this.element.find(this.component),this.component&&0===this.component.length&&(this.component=!1),this.container=!0===this.options.container?this.element:this.options.container,this.container=!1!==this.container&&(0,h.default)(this.container),this.currentSlider=null,this.mousePointer={left:0,top:0},this.input=this.element.is("input")?this.element:!!this.options.input&&this.element.find(this.options.input),this.input&&0===this.input.length&&(this.input=!1),this.color=this.createColor(!1!==this.options.color?this.options.color:this.getValue()),this.disabled=!1;var i=this.picker=(0,h.default)(this.options.template);if(this.options.customClass&&i.addClass(this.options.customClass),this.options.inline?i.addClass("colorpicker-inline colorpicker-visible"):i.addClass("colorpicker-hidden"),this.options.horizontal&&i.addClass("colorpicker-horizontal"),(this.options.useAlpha||this.color.hasTransparency())&&!1!==this.options.useAlpha&&(this.options.useAlpha=!0,i.addClass("colorpicker-with-alpha")),"right"===this.options.align&&i.addClass("colorpicker-right"),!0===this.options.inline&&i.addClass("colorpicker-no-arrow"),this.options.colorPalette){var n=this,a=n.picker.find(".colorpicker-palette");a.length>0&&(h.default.each(this.options.colorPalette,function(t,e){var o=(0,h.default)("<i />").addClass("colorpicker-palette-color").css("background-color",e).attr("title",t+": "+e).data("class",t).data("alias",t);o.on("mousedown.colorpicker touchstart.colorpicker",function(t){t.preventDefault(),n.setValue((0,h.default)(this).data("alias"))}),a.append(o)}),a.show().addClass("colorpicker-visible"))}i.on("mousedown.colorpicker touchstart.colorpicker",h.default.proxy(function(t){t.target===t.currentTarget&&t.preventDefault()},this)),i.find(".colorpicker-saturation, .colorpicker-hue, .colorpicker-alpha").on("mousedown.colorpicker touchstart.colorpicker",h.default.proxy(this.mousedown,this)),i.appendTo(this.container?this.container:(0,h.default)("body")),!1!==this.input&&(this.input.on({"keyup.colorpicker":h.default.proxy(this.keyup,this)}),this.input.on({"change.colorpicker":h.default.proxy(this.change,this)}),!1===this.component&&this.element.on({"focus.colorpicker":h.default.proxy(this.show,this)}),!1===this.options.inline&&this.element.on({"focusout.colorpicker":h.default.proxy(this.hide,this)})),!1!==this.component&&this.component.on({"click.colorpicker":h.default.proxy(this.show,this)}),!1===this.input&&!1===this.component&&this.element.on({"click.colorpicker":h.default.proxy(this.show,this)}),!1!==this.input&&!1!==this.component&&"color"===this.input.attr("type")&&this.input.on({"click.colorpicker":h.default.proxy(this.show,this),"focus.colorpicker":h.default.proxy(this.show,this)}),this.update(!1!==this.options.color),(0,h.default)(h.default.proxy(function(){this.element.trigger("create")},this))}return n(t,null,[{key:"Color",get:function(){return s.default}},{key:"TinyColor",get:function(){return this.Color.TinyColor}}]),n(t,[{key:"destroy",value:function(){this.picker.remove(),this.element.removeData("colorpicker","color").off(".colorpicker"),!1!==this.input&&this.input.off(".colorpicker"),!1!==this.component&&this.component.off(".colorpicker"),this.element.removeClass("colorpicker-element"),this.element.trigger({type:"destroy"})}},{key:"getColorString",value:function(){var t=this.color.toString(this.format);return!1===this.options.useHashPrefix&&(t=t.replace(/^#/g,"")),this.getPaletteColorName(t,this.getPaletteColorName("#"+t,t))}},{key:"getCssColorString",value:function(){return this.color.toString(this.format)}},{key:"reposition",value:function(){if(!1!==this.options.inline||this.options.container)return!1;var t=this.container&&this.container[0]!==window.document.body?"position":"offset",e=this.component||this.element,o=e[t]();return"right"===this.options.align&&(o.left-=this.picker.outerWidth()-e.outerWidth()),this.picker.css({top:o.top+e.outerHeight(),left:o.left}),!0}},{key:"show",value:function(t){this.isDisabled()||(this.picker.addClass("colorpicker-visible").removeClass("colorpicker-hidden"),this.reposition(),(0,h.default)(window).on("resize.colorpicker",h.default.proxy(this.reposition,this)),!t||this.hasInput()&&"color"!==this.input.attr("type")||t.stopPropagation&&t.preventDefault&&(t.stopPropagation(),t.preventDefault()),!this.component&&this.input||!1!==this.options.inline||(0,h.default)(window.document).on({"mousedown.colorpicker":h.default.proxy(this.hide,this)}),this.element.trigger({type:"showPicker",color:this.color}))}},{key:"hide",value:function(t){return(void 0===t||!t.target||!((0,h.default)(t.currentTarget).parents(".colorpicker").length>0||(0,h.default)(t.target).parents(".colorpicker").length>0))&&(this.picker.addClass("colorpicker-hidden").removeClass("colorpicker-visible"),(0,h.default)(window).off("resize.colorpicker",this.reposition),(0,h.default)(window.document).off({"mousedown.colorpicker":this.hide}),this.update(),this.element.trigger({type:"hidePicker",color:this.color}),!0)}},{key:"updateInput",value:function(){!1!==this.input&&(this.input.prop("value",this.getColorString()),this.input.trigger("change"))}},{key:"updatePicker",value:function(){var t=!1===this.options.horizontal?this.options.sliders:this.options.slidersHorz,e=this.picker.find("i");if(0!==e.length){var o=this.color.hsvaRatio;!1===this.options.horizontal?(t=this.options.sliders,e.eq(1).css("top",t.hue.maxTop*(1-o.h)).end().eq(2).css("top",t.alpha.maxTop*(1-o.a))):(t=this.options.slidersHorz,e.eq(1).css("left",t.hue.maxLeft*(1-o.h)).end().eq(2).css("left",t.alpha.maxLeft*(1-o.a))),e.eq(0).css({top:t.saturation.maxTop-o.v*t.saturation.maxTop,left:o.s*t.saturation.maxLeft}),this.picker.find(".colorpicker-saturation").css("backgroundColor",this.color.getHueOnlyCopy().toHexString()),this.picker.find(".colorpicker-alpha").css("backgroundColor",this.color.toString("hex6")),this.picker.find(".colorpicker-color, .colorpicker-color div").css("backgroundColor",this.color.toRgbString())}}},{key:"updateComponent",value:function(){if(!1!==this.component){var t=this.component.find("i").eq(0);t.length>0?t.css({backgroundColor:this.getCssColorString()}):this.component.css({backgroundColor:this.getCssColorString()})}}},{key:"update",value:function(t){!1===this.getValue(!1)&&!0!==t||(this.updateComponent(),this.updateInput(),this.updatePicker())}},{key:"getValue",value:function(t){t=void 0===t?this.options.fallbackColor:t;var e=void 0;return e=this.hasInput()?this.input.val():this.element.data("color"),void 0!==e&&""!==e&&null!==e||(e=t),e}},{key:"setValue",value:function(t){this.color=this.createColor(t),this.update(!0),this.element.trigger({type:"changeColor",color:this.color,value:t})}},{key:"createColor",value:function(t){t=t||null;var e=this.options.fallbackColor?this.options.fallbackColor:this.color?this.color.hsva:null;t=this.getPaletteColor(t,t),e=this.getPaletteColor(e,e);var o=new s.default(t,{fallbackColor:e,format:this.format,useNames:this.options.useNames});return o.hasTransparency()&&!this.options.useAlpha?o.getOpaqueCopy():o}},{key:"getPaletteColor",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"==typeof t&&this.options.colorPalette&&this.options.colorPalette.hasOwnProperty(t)?this.options.colorPalette[t]:e}},{key:"getPaletteColorName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"!=typeof t||!this.options.colorPalette)return e;for(var o in this.options.colorPalette)if(this.options.colorPalette.hasOwnProperty(o)&&this.options.colorPalette[o].toLowerCase()===t.toLowerCase())return o;return e}},{key:"hasInput",value:function(){return!1!==this.input}},{key:"isDisabled",value:function(){return this.disabled}},{key:"disable",value:function(){return this.hasInput()&&this.input.prop("disabled",!0),this.disabled=!0,this.element.trigger({type:"disable",color:this.color,value:this.getValue()}),!0}},{key:"enable",value:function(){return this.hasInput()&&this.input.prop("disabled",!1),this.disabled=!1,this.element.trigger({type:"enable",color:this.color,value:this.getValue()}),!0}},{key:"mousedown",value:function(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.stopPropagation(),t.preventDefault();var e=(0,h.default)(t.target),o=e.closest("div"),i=this.options.horizontal?this.options.slidersHorz:this.options.sliders;if(!o.is(".colorpicker")){if(o.is(".colorpicker-saturation"))this.currentSlider=h.default.extend({},i.saturation);else if(o.is(".colorpicker-hue"))this.currentSlider=h.default.extend({},i.hue);else{if(!o.is(".colorpicker-alpha"))return!1;this.currentSlider=h.default.extend({},i.alpha)}var r=o.offset();this.currentSlider.guide=o.find("i")[0].style,this.currentSlider.left=t.pageX-r.left,this.currentSlider.top=t.pageY-r.top,this.mousePointer={left:t.pageX,top:t.pageY},(0,h.default)(window.document).on({"mousemove.colorpicker":h.default.proxy(this.mousemove,this),"touchmove.colorpicker":h.default.proxy(this.mousemove,this),"mouseup.colorpicker":h.default.proxy(this.mouseup,this),"touchend.colorpicker":h.default.proxy(this.mouseup,this)}).trigger("mousemove")}return!1}},{key:"mousemove",value:function(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.stopPropagation(),t.preventDefault();var e=Math.max(0,Math.min(this.currentSlider.maxLeft,this.currentSlider.left+((t.pageX||this.mousePointer.left)-this.mousePointer.left))),o=Math.max(0,Math.min(this.currentSlider.maxTop,this.currentSlider.top+((t.pageY||this.mousePointer.top)-this.mousePointer.top)));return this.currentSlider.guide.left=e+"px",this.currentSlider.guide.top=o+"px",this.currentSlider.callLeft&&this.color[this.currentSlider.callLeft].call(this.color,e/this.currentSlider.maxLeft),this.currentSlider.callTop&&this.color[this.currentSlider.callTop].call(this.color,o/this.currentSlider.maxTop),this.update(!0),this.element.trigger({type:"changeColor",color:this.color}),!1}},{key:"mouseup",value:function(t){return t.stopPropagation(),t.preventDefault(),(0,h.default)(window.document).off({"mousemove.colorpicker":this.mousemove,"touchmove.colorpicker":this.mousemove,"mouseup.colorpicker":this.mouseup,"touchend.colorpicker":this.mouseup}),!1}},{key:"change",value:function(t){this.keyup(t)}},{key:"keyup",value:function(t){this.color=this.createColor(this.input.val()),!1!==this.getValue(!1)&&(this.updateComponent(),this.updatePicker()),this.element.trigger({type:"changeColor",color:this.color,value:this.input.val()})}},{key:"color",get:function(){return this.element.data("color")},set:function(t){this.element.data("color",t)}},{key:"format",get:function(){return this.options.format?this.options.format:this.color&&this.color.hasTransparency()&&this.color.format.match(/^hex/)?this.options.enableHex8?"hex8":"rgba":null}}]),t}();e.default=f},function(t,e,o){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function n(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){return t instanceof c.default?{r:t._r,g:t._g,b:t._b,a:t._a}:t}Object.defineProperty(e,"__esModule",{value:!0});var s=function t(e,o,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,o);if(void 0===r){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,o,i)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(i)},l=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),u=o(4),c=function(t){return t&&t.__esModule?t:{default:t}}(u),h="#000000",f=function(t){function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fallbackColor:h,format:null};i(this,e);var n=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,a(t),o));return n._originalInput=t,n._fallbackColor=a(o.fallbackColor),n._validOrFallback(),n}return n(e,t),l(e,[{key:"id",get:function(){return this._tc_id}},{key:"format",get:function(){return this._format}},{key:"options",get:function(){return{format:this._format,gradientType:this._gradientType,fallbackColor:this._fallbackColor}}},{key:"hsva",get:function(){return this.toHsv()}},{key:"hsvaRatio",get:function(){var t=this.hsva;return{h:t.h/360,s:t.s,v:t.v,a:t.a}}}]),l(e,[{key:"importColor",value:function(t){if(!t instanceof c.default)throw new Error("Color.importColor: The color argument is not an instance of tinycolor.");this._originalInput=t._originalInput,this._r=t._r,this._g=t._g,this._b=t._b,this._a=t._a,this._roundA=t._roundA,this._format=t._format,this._gradientType=t._gradientType,this._ok=t._ok}},{key:"importRgb",value:function(t){if(!t instanceof c.default)throw new Error("Color.importColor: The color argument is not an instance of tinycolor.");this._r=t._r,this._g=t._g,this._b=t._b,this._a=t._a,this._ok=t._ok}},{key:"importHsv",value:function(t){this.importRgb(new e(t,this.options))}},{key:"_validOrFallback",value:function(){if(!this.isValid()){var t=Object.assign({},this.options);return t.format||(t.format="hex"),this.importColor((0,c.default)(this._fallbackColor,t)),this.isValid()||this.importColor((0,c.default)(h,t)),!1}return!0}},{key:"getCopy",value:function(){return new e(this.hsva,this.options)}},{key:"getHueOnlyCopy",value:function(){return new e(Object.assign({},this.hsva,{s:100,v:100}),this.options)}},{key:"getOpaqueCopy",value:function(){return new e(Object.assign({},this.hsva,{a:1}),this.options)}},{key:"setHue",value:function(t){this.importHsv(Object.assign({},this.hsva,{h:t}))}},{key:"setSaturation",value:function(t){this.importHsv(Object.assign({},this.hsva,{s:t}))}},{key:"setBrightness",value:function(t){this.importHsv(Object.assign({},this.hsva,{v:t}))}},{key:"setHueRatio",value:function(t){0!==t&&this.setHue(360*(1-t))}},{key:"setSaturationRatio",value:function(t){this.setSaturation(t)}},{key:"setBrightnessRatio",value:function(t){this.setBrightness(1-t)}},{key:"setAlphaRatio",value:function(t){this.setAlpha(1-t)}},{key:"isTransparent",value:function(){return 0===this._a}},{key:"hasTransparency",value:function(){return 1!==this._a}},{key:"toString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t=(t||this.format).replace(/a$/g,"").toLowerCase();var o=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"toString",this).call(this,t);if(t.match(/hex/gi)&&!t.match(/hex8/gi)){if(this.isTransparent()&&0===this._r&&0===this._g&&0===this._b)return"transparent";if(e.names.hasOwnProperty(o))return o}return o}}]),e}(c.default);e.default=f},function(t,e,o){var i;!function(r){function n(t,e){if(t=t||"",e=e||{},t instanceof n)return t;if(!(this instanceof n))return new n(t,e);var o=a(t);this._originalInput=t,this._r=o.r,this._g=o.g,this._b=o.b,this._a=o.a,this._roundA=Y(100*this._a)/100,this._format=e.format||o.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Y(this._r)),this._g<1&&(this._g=Y(this._g)),this._b<1&&(this._b=Y(this._b)),this._ok=o.ok,this._tc_id=X++}function a(t){var e={r:0,g:0,b:0},o=1,i=null,r=null,n=null,a=!1,l=!1;return"string"==typeof t&&(t=I(t)),"object"==typeof t&&(z(t.r)&&z(t.g)&&z(t.b)?(e=s(t.r,t.g,t.b),a=!0,l="%"===String(t.r).substr(-1)?"prgb":"rgb"):z(t.h)&&z(t.s)&&z(t.v)?(i=E(t.s),r=E(t.v),e=h(t.h,i,r),a=!0,l="hsv"):z(t.h)&&z(t.s)&&z(t.l)&&(i=E(t.s),n=E(t.l),e=u(t.h,i,n),a=!0,l="hsl"),t.hasOwnProperty("a")&&(o=t.a)),o=H(o),{ok:a,format:t.format||l,r:B(255,$(e.r,0)),g:B(255,$(e.g,0)),b:B(255,$(e.b,0)),a:o}}function s(t,e,o){return{r:255*T(t,255),g:255*T(e,255),b:255*T(o,255)}}function l(t,e,o){t=T(t,255),e=T(e,255),o=T(o,255);var i,r,n=$(t,e,o),a=B(t,e,o),s=(n+a)/2;if(n==a)i=r=0;else{var l=n-a;switch(r=s>.5?l/(2-n-a):l/(n+a),n){case t:i=(e-o)/l+(e<o?6:0);break;case e:i=(o-t)/l+2;break;case o:i=(t-e)/l+4}i/=6}return{h:i,s:r,l:s}}function u(t,e,o){function i(t,e,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?t+6*(e-t)*o:o<.5?e:o<2/3?t+(e-t)*(2/3-o)*6:t}var r,n,a;if(t=T(t,360),e=T(e,100),o=T(o,100),0===e)r=n=a=o;else{var s=o<.5?o*(1+e):o+e-o*e,l=2*o-s;r=i(l,s,t+1/3),n=i(l,s,t),a=i(l,s,t-1/3)}return{r:255*r,g:255*n,b:255*a}}function c(t,e,o){t=T(t,255),e=T(e,255),o=T(o,255);var i,r,n=$(t,e,o),a=B(t,e,o),s=n,l=n-a;if(r=0===n?0:l/n,n==a)i=0;else{switch(n){case t:i=(e-o)/l+(e<o?6:0);break;case e:i=(o-t)/l+2;break;case o:i=(t-e)/l+4}i/=6}return{h:i,s:r,v:s}}function h(t,e,o){t=6*T(t,360),e=T(e,100),o=T(o,100);var i=r.floor(t),n=t-i,a=o*(1-e),s=o*(1-n*e),l=o*(1-(1-n)*e),u=i%6;return{r:255*[o,s,a,a,l,o][u],g:255*[l,o,o,s,a,a][u],b:255*[a,a,l,o,o,s][u]}}function f(t,e,o,i){var r=[F(Y(t).toString(16)),F(Y(e).toString(16)),F(Y(o).toString(16))];return i&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function p(t,e,o,i,r){var n=[F(Y(t).toString(16)),F(Y(e).toString(16)),F(Y(o).toString(16)),F(M(i))];return r&&n[0].charAt(0)==n[0].charAt(1)&&n[1].charAt(0)==n[1].charAt(1)&&n[2].charAt(0)==n[2].charAt(1)&&n[3].charAt(0)==n[3].charAt(1)?n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0)+n[3].charAt(0):n.join("")}function d(t,e,o,i){return[F(M(i)),F(Y(t).toString(16)),F(Y(e).toString(16)),F(Y(o).toString(16))].join("")}function g(t,e){e=0===e?0:e||10;var o=n(t).toHsl();return o.s-=e/100,o.s=R(o.s),n(o)}function m(t,e){e=0===e?0:e||10;var o=n(t).toHsl();return o.s+=e/100,o.s=R(o.s),n(o)}function b(t){return n(t).desaturate(100)}function v(t,e){e=0===e?0:e||10;var o=n(t).toHsl();return o.l+=e/100,o.l=R(o.l),n(o)}function y(t,e){e=0===e?0:e||10;var o=n(t).toRgb();return o.r=$(0,B(255,o.r-Y(-e/100*255))),o.g=$(0,B(255,o.g-Y(-e/100*255))),o.b=$(0,B(255,o.b-Y(-e/100*255))),n(o)}function k(t,e){e=0===e?0:e||10;var o=n(t).toHsl();return o.l-=e/100,o.l=R(o.l),n(o)}function _(t,e){var o=n(t).toHsl(),i=(o.h+e)%360;return o.h=i<0?360+i:i,n(o)}function x(t){var e=n(t).toHsl();return e.h=(e.h+180)%360,n(e)}function w(t){var e=n(t).toHsl(),o=e.h;return[n(t),n({h:(o+120)%360,s:e.s,l:e.l}),n({h:(o+240)%360,s:e.s,l:e.l})]}function C(t){var e=n(t).toHsl(),o=e.h;return[n(t),n({h:(o+90)%360,s:e.s,l:e.l}),n({h:(o+180)%360,s:e.s,l:e.l}),n({h:(o+270)%360,s:e.s,l:e.l})]}function A(t){var e=n(t).toHsl(),o=e.h;return[n(t),n({h:(o+72)%360,s:e.s,l:e.l}),n({h:(o+216)%360,s:e.s,l:e.l})]}function S(t,e,o){e=e||6,o=o||30;var i=n(t).toHsl(),r=360/o,a=[n(t)];for(i.h=(i.h-(r*e>>1)+720)%360;--e;)i.h=(i.h+r)%360,a.push(n(i));return a}function P(t,e){e=e||6;for(var o=n(t).toHsv(),i=o.h,r=o.s,a=o.v,s=[],l=1/e;e--;)s.push(n({h:i,s:r,v:a})),a=(a+l)%1;return s}function H(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function T(t,e){j(t)&&(t="100%");var o=L(t);return t=B(e,$(0,parseFloat(t))),o&&(t=parseInt(t*e,10)/100),r.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function R(t){return B(1,$(0,t))}function O(t){return parseInt(t,16)}function j(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)}function L(t){return"string"==typeof t&&-1!=t.indexOf("%")}function F(t){return 1==t.length?"0"+t:""+t}function E(t){return t<=1&&(t=100*t+"%"),t}function M(t){return r.round(255*parseFloat(t)).toString(16)}function q(t){return O(t)/255}function z(t){return!!G.CSS_UNIT.exec(t)}function I(t){t=t.replace(N,"").replace(V,"").toLowerCase();var e=!1;if(U[t])t=U[t],e=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};var o;return(o=G.rgb.exec(t))?{r:o[1],g:o[2],b:o[3]}:(o=G.rgba.exec(t))?{r:o[1],g:o[2],b:o[3],a:o[4]}:(o=G.hsl.exec(t))?{h:o[1],s:o[2],l:o[3]}:(o=G.hsla.exec(t))?{h:o[1],s:o[2],l:o[3],a:o[4]}:(o=G.hsv.exec(t))?{h:o[1],s:o[2],v:o[3]}:(o=G.hsva.exec(t))?{h:o[1],s:o[2],v:o[3],a:o[4]}:(o=G.hex8.exec(t))?{r:O(o[1]),g:O(o[2]),b:O(o[3]),a:q(o[4]),format:e?"name":"hex8"}:(o=G.hex6.exec(t))?{r:O(o[1]),g:O(o[2]),b:O(o[3]),format:e?"name":"hex"}:(o=G.hex4.exec(t))?{r:O(o[1]+""+o[1]),g:O(o[2]+""+o[2]),b:O(o[3]+""+o[3]),a:q(o[4]+""+o[4]),format:e?"name":"hex8"}:!!(o=G.hex3.exec(t))&&{r:O(o[1]+""+o[1]),g:O(o[2]+""+o[2]),b:O(o[3]+""+o[3]),format:e?"name":"hex"}}function D(t){var e,o;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),o=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA"),"small"!==o&&"large"!==o&&(o="small"),{level:e,size:o}}var N=/^\s+/,V=/\s+$/,X=0,Y=r.round,B=r.min,$=r.max,Q=r.random;n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,o,i,n,a,s=this.toRgb();return t=s.r/255,e=s.g/255,o=s.b/255,i=t<=.03928?t/12.92:r.pow((t+.055)/1.055,2.4),n=e<=.03928?e/12.92:r.pow((e+.055)/1.055,2.4),a=o<=.03928?o/12.92:r.pow((o+.055)/1.055,2.4),.2126*i+.7152*n+.0722*a},setAlpha:function(t){return this._a=H(t),this._roundA=Y(100*this._a)/100,this},toHsv:function(){var t=c(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=c(this._r,this._g,this._b),e=Y(360*t.h),o=Y(100*t.s),i=Y(100*t.v);return 1==this._a?"hsv("+e+", "+o+"%, "+i+"%)":"hsva("+e+", "+o+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=l(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=l(this._r,this._g,this._b),e=Y(360*t.h),o=Y(100*t.s),i=Y(100*t.l);return 1==this._a?"hsl("+e+", "+o+"%, "+i+"%)":"hsla("+e+", "+o+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return f(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return p(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Y(this._r),g:Y(this._g),b:Y(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Y(this._r)+", "+Y(this._g)+", "+Y(this._b)+")":"rgba("+Y(this._r)+", "+Y(this._g)+", "+Y(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Y(100*T(this._r,255))+"%",g:Y(100*T(this._g,255))+"%",b:Y(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Y(100*T(this._r,255))+"%, "+Y(100*T(this._g,255))+"%, "+Y(100*T(this._b,255))+"%)":"rgba("+Y(100*T(this._r,255))+"%, "+Y(100*T(this._g,255))+"%, "+Y(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(W[f(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+d(this._r,this._g,this._b,this._a),o=e,i=this._gradientType?"GradientType = 1, ":"";if(t){var r=n(t);o="#"+d(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+e+",endColorstr="+o+")"},toString:function(t){var e=!!t;t=t||this._format;var o=!1,i=this._a<1&&this._a>=0;return e||!i||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(o=this.toRgbString()),"prgb"===t&&(o=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(o=this.toHexString()),"hex3"===t&&(o=this.toHexString(!0)),"hex4"===t&&(o=this.toHex8String(!0)),"hex8"===t&&(o=this.toHex8String()),"name"===t&&(o=this.toName()),"hsl"===t&&(o=this.toHslString()),"hsv"===t&&(o=this.toHsvString()),o||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(t,e){var o=t.apply(null,[this].concat([].slice.call(e)));return this._r=o._r,this._g=o._g,this._b=o._b,this.setAlpha(o._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(x,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(A,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},n.fromRatio=function(t,e){if("object"==typeof t){var o={};for(var i in t)t.hasOwnProperty(i)&&(o[i]="a"===i?t[i]:E(t[i]));t=o}return n(t,e)},n.equals=function(t,e){return!(!t||!e)&&n(t).toRgbString()==n(e).toRgbString()},n.random=function(){return n.fromRatio({r:Q(),g:Q(),b:Q()})},n.mix=function(t,e,o){o=0===o?0:o||50;var i=n(t).toRgb(),r=n(e).toRgb(),a=o/100;return n({r:(r.r-i.r)*a+i.r,g:(r.g-i.g)*a+i.g,b:(r.b-i.b)*a+i.b,a:(r.a-i.a)*a+i.a})},n.readability=function(t,e){var o=n(t),i=n(e);return(r.max(o.getLuminance(),i.getLuminance())+.05)/(r.min(o.getLuminance(),i.getLuminance())+.05)},n.isReadable=function(t,e,o){var i,r,a=n.readability(t,e);switch(r=!1,i=D(o),i.level+i.size){case"AAsmall":case"AAAlarge":r=a>=4.5;break;case"AAlarge":r=a>=3;break;case"AAAsmall":r=a>=7}return r},n.mostReadable=function(t,e,o){var i,r,a,s,l=null,u=0;o=o||{},r=o.includeFallbackColors,a=o.level,s=o.size;for(var c=0;c<e.length;c++)(i=n.readability(t,e[c]))>u&&(u=i,l=n(e[c]));return n.isReadable(t,l,{level:a,size:s})||!r?l:(o.includeFallbackColors=!1,n.mostReadable(t,["#fff","#000"],o))};var U=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",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",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},W=n.hexNames=function(t){var e={};for(var o in t)t.hasOwnProperty(o)&&(e[t[o]]=o);return e}(U),G=function(){var t="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",e="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",o="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+e),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+e),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+e),hsva:new RegExp("hsva"+o),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})$/}}();void 0!==t&&t.exports?t.exports=n:void 0!==(i=function(){return n}.call(e,o,e,t))&&(t.exports=i)}(Math)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={horizontal:!1,inline:!1,color:!1,format:!1,input:"input",container:!1,component:".add-on, .input-group-addon",fallbackColor:!1,useHashPrefix:!0,useAlpha:!0,useNames:!0,enableHex8:!0,sliders:{saturation:{maxLeft:100,maxTop:100,callLeft:"setSaturationRatio",callTop:"setBrightnessRatio"},hue:{maxLeft:0,maxTop:100,callLeft:!1,callTop:"setHueRatio"},alpha:{maxLeft:0,maxTop:100,callLeft:!1,callTop:"setAlphaRatio"}},slidersHorz:{saturation:{maxLeft:100,maxTop:100,callLeft:"setSaturationRatio",callTop:"setBrightnessRatio"},hue:{maxLeft:100,maxTop:0,callLeft:"setHueRatio",callTop:!1},alpha:{maxLeft:100,maxTop:0,callLeft:"setAlphaRatio",callTop:!1}},template:'<div class="colorpicker dropdown-menu">\n    <div class="colorpicker-saturation"><i><b></b></i></div>\n    <div class="colorpicker-hue"><i></i></div>\n    <div class="colorpicker-alpha"><i></i></div>\n    <div class="colorpicker-color"><div /></div>\n    <div class="colorpicker-palette"></div>\n  </div>',align:"right",customClass:null,colorPalette:null}}])});
//# sourceMappingURL=bootstrap-colorpicker.min.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit