diff --git a/color.all.min.js b/color.all.min.js index fce5e07..59260d2 100644 --- a/color.all.min.js +++ b/color.all.min.js @@ -3,4 +3,4 @@ // colorPicker.data.min.js !function(A){"use strict";var g='^§app alpha-bg-w">^§slds">^§sldl-1">$^§sldl-2">$^§sldl-3">$^§curm">$^§sldr-1">$^§sldr-2">$^§sldr-4">$^§curl">$^§curr">$$^§opacity">|^§opacity-slider">$$$^§memo">^§raster">$^§raster-bg">$|$|$|$|$|$|$|$|$^§memo-store">$^§memo-cursor">$$^§panel">^§hsv">^hsl-mode §ß">$^hsv-h-ß §ß">H$^hsv-h-~ §~">-^§nsarrow">$$^hsl-h-@ §@">H$^hsv-s-ß §ß">S$^hsv-s-~ §~">-$^hsl-s-@ §@">S$^hsv-v-ß §ß">B$^hsv-v-~ §~">-$^hsl-l-@ §@">L$$^§hsl §hide">^hsv-mode §ß">$^hsl-h-ß §ß">H$^hsl-h-~ §~">-$^hsv-h-@ §@">H$^hsl-s-ß §ß">S$^hsl-s-~ §~">-$^hsv-s-@ §@">S$^hsl-l-ß §ß">L$^hsl-l-~ §~">-$^hsv-v-@ §@">B$$^§rgb">^rgb-r-ß §ß">R$^rgb-r-~ §~">-$^rgb-r-@ §ß"> $^rgb-g-ß §ß">G$^rgb-g-~ §~">-$^rgb-g-@ §ß"> $^rgb-b-ß §ß">B$^rgb-b-~ §~">-$^rgb-b-@ §ß"> $$^§cmyk">^Lab-mode §ß">$^cmyk-c-ß §@">C$^cmyk-c-~ §~">-$^Lab-L-@ §@">L$^cmyk-m-ß §@">M$^cmyk-m-~ §~">-$^Lab-a-@ §@">a$^cmyk-y-ß §@">Y$^cmyk-y-~ §~">-$^Lab-b-@ §@">b$^cmyk-k-ß §@">K$^cmyk-k-~ §~">-$^Lab-x-@ §ß"> $$^§Lab §hide">^cmyk-mode §ß">$^Lab-L-ß §@">L$^Lab-L-~ §~">-$^cmyk-c-@ §@">C$^Lab-a-ß §@">a$^Lab-a-~ §~">-$^cmyk-m-@ §@">M$^Lab-b-ß §@">b$^Lab-b-~ §~">-$^cmyk-y-@ §@">Y$^Lab-x-ß §@"> $^Lab-x-~ §~">-$^cmyk-k-@ §@">K$$^§alpha">^alpha-ß §ß">A$^alpha-~ §~">-$^alpha-@ §ß">W$$^§HEX">^HEX-ß §ß">#$^HEX-~ §~">-$^HEX-@ §ß">M$$^§ctrl">^§raster">$^§cont">$^§cold">$^§col1">| $$^§col2">| $$^§bres">RESET$^§bsav">SAVE$$$^§exit">$^§resize">$^§resizer">|$$$'.replace(/\^/g,'
").replace(/~/g,"disp").replace(/ß/g,"butt").replace(/@/g,"labl").replace(/\|/g,"
"),r="är^1,äg^1,äb^1,öh^1,öh?1,öh?2,ös?1,öv?1,üh^1,üh?1,üh?2,üs?1,ül?1,.no-rgb-r är?2,.no-rgb-r är?3,.no-rgb-r är?4,.no-rgb-g äg?2,.no-rgb-g äg?3,.no-rgb-g äg?4,.no-rgb-b äb?2,.no-rgb-b äb?3,.no-rgb-b äb?4{visibility:hidden}är^2,är^3,äg^2,äg^3,äb^2,äb^3{@-image:url(_patches.png)}.§slds div{@-image:url(_vertical.png)}öh^2,ös^1,öv^1,üh^2,üs^1,ül^1{@-image:url(_horizontal.png)}ös?4,öv^3,üs?4,ül^3{@:#000}üs?3,ül^4{@:#fff}är?1{@-color:#f00}äg?1{@-color:#0f0}äb?1{@-color:#00f}är^2{@|-1664px 0}är^3{@|-896px 0}är?1,äg?1,äb?1,öh^3,ös^2,öv?2Ü-2432Öär?2Ü-2944Öär?3Ü-4480Öär?4Ü-3202Öäg^2Äöh^2{@|-640px 0}äg^3{@|-384px 0}äg?2Ü-4736Öäg?3Ü-3968Öäg?4Ü-3712Öäb^2{@|-1152px 0}äb^3{@|-1408px 0}äb?2Ü-3456Öäb?3Ü-4224Öäb?4Ü-2688Ööh^2Äär^3Ääb?4Ü0}öh?4,üh?4Ü-1664Öös^1,öv^1,üs^1,ül^1Ääg^3{@|-256px 0}ös^3,öv?4,üs^3,ül?4Ü-2176Öös?2,öv^2Ü-1920Öüh^2{@|-768px 0}üh^3,üs^2,ül?2Ü-5184Öüs?2,ül^2Ü-5824Ö.S är^2{@|-128px -128Ö.S är?1Ääg?1Ääb?1Äöh^3Äös^2Äöv?2Ü-1408Ö.S är?2Ääb^3Ü-128Ö.S är?3Ü-896Ö.S är?4Ü-256Ö.S äg^2{@|-256px -128Ö.S äg?2Ü-1024Ö.S äg?3Ü-640Ö.S äg?4Ü-512Ö.S äb^2{@|-128px 0}.S äb?2Ü-384Ö.S äb?3Ü-768Ö.S öh?4Äüh?4Ü-1536Ö.S ös^1Äöv^1Äüs^1Äül^1{@|-512px 0}.S ös^3Äöv?4Äüs^3Äül?4Ü-1280Ö.S ös?2Äöv^2Ü-1152Ö.S üh^2{@|-1024px 0}.S üh^3Äüs^2Äül?2Ü-5440Ö.S üs?2Äül^2Ü-5696Ö.XXS ös^2,.XXS öv?2Ü-5120Ö.XXS ös^3,.XXS öv?4,.XXS üs^3,.XXS ül^3,.XXS ül?4Ü-5056Ö.XXS ös?2,.XXS öv^2Ü-4992Ö.XXS üs^2,.XXS ül?2Ü-5568Ö.XXS üs?2,.XXS ül^2Ü-5632Ö".replace(/Ü/g,"{@|0 ").replace(/Ö/g,"px}").replace(/Ä/g,",.S ").replace(/\|/g,"-position:").replace(/@/g,"background").replace(/ü/g,".hsl-").replace(/ö/g,".hsv-").replace(/ä/g,".rgb-").replace(/~/g," .no-rgb-}").replace(/\?/g," .§sldr-").replace(/\^/g," .§sldl-"),o='∑{@#bbb;font-family:"Courier New",Courier,mono;font-size:12¥line-ä15¥font-weight:bold;cursor:default;~412¥ä323¥?top-left-radius:7¥?top-Ü-radius:7¥?bottom-Ü-radius:7¥?bottom-left-radius:7¥ö@#444}.S{~266¥ä177px}.XS{~158¥ä173px}.XXS{ä105¥~154px}.no-alpha{ä308px}.no-alpha .§opacity,.no-alpha .§alpha{display:none}.S.no-alpha{ä162px}.XS.no-alpha{ä158px}.XXS.no-alpha{ä90px}∑,∑ div{border:none;padding:0¥float:none;margin:0¥outline:none;box-sizing:content-box}∑ div{|absolute}^s .§curm,«§disp,«§nsarrow,∑ .§exit,∑ ø-cursor,∑ .§resize{öimage:url(_icons.png)}∑ .do-drag div{cursor:url(_blank.png), auto}∑ .§opacity,ø .§raster-bg,∑ .§raster{öimage:url(_bgs.png)}∑ ^s{~287¥ä256¥top:10¥left:10¥overflow:hidden;cursor:crosshair}.S ^s{~143¥ä128¥left:9¥top:9px}.XS ^s{left:7¥top:7px}.XXS ^s{left:5¥top:5px}^s div{~256¥ä256¥left:0px}.S ^l-1,.S ^l-2,.S ^l-3,.S ^l-4{~128¥ä128px}.XXS ^s,.XXS ^s ^l-1,.XXS ^s ^l-2,.XXS ^s ^l-3,.XXS ^s ^l-4{ä64px}^s ^r-1,^s ^r-2,^s ^r-3,^s ^r-4{~31¥left:256¥cursor:default}.S ^r-1,.S ^r-2,.S ^r-3,.S ^r-4{~15¥ä128¥left:128px}^s .§curm{margin:-5¥~11¥ä11¥ö|-36px -30px}.light .§curm{ö|-7px -30px}^s .§curl,^s .§curr{~0¥ä0¥margin:-3px -4¥border:4px solid;cursor:default;left:auto;öimage:none}^s .§curl,∑ ^s .§curl-dark,.hue-dark div.§curl{Ü:27¥?@† † † #fff}.light .§curl,∑ ^s .§curl-light,.hue-light .§curl{?@† † † #000}.S ^s .§curl,.S ^s .§curr{?~3px}.S ^s .§curl-light,.S ^s .§curl{Ü:13px}^s .§curr,∑ ^s .§curr-dark{Ü:4¥?@† #fff † †}.light .§curr,∑ ^s .§curr-light{?@† #000 † †}∑ .§opacity{bottom:44¥left:10¥ä10¥~287¥ö|0 -87px}.S .§opacity{bottom:27¥left:9¥~143¥ö|0 -100px}.XS .§opacity{left:7¥bottom:25px}.XXS .§opacity{left:5¥bottom:23px}.§opacity div{~100%;ä16¥margin-top:-3¥overflow:hidden}.§opacity .§opacity-slider{margin:0 -4¥~0¥ä8¥?~4¥?style:solid;?@#eee †}∑ ø{bottom:10¥left:10¥~288¥ä31¥ö@#fff}.S ø{ä15¥~144¥left:9¥bottom:9px}.XS ø{left:7¥bottom:7px}.XXS ø{left:5¥bottom:5px}ø div{|relative;float:left;~31¥ä31¥margin-Ü:1px}.S ø div{~15¥ä15px}∑ .§raster,ø .§raster-bg,.S ø .§raster,.S ø .§raster-bg{|absolute;top:0¥Ü:0¥bottom:0¥left:0¥~100%}.S ø .§raster-bg{ö|0 -31px}∑ .§raster{opacity:0.2;ö|0 -49px}.alpha-bg-b ø{ö@#333}.alpha-bg-b .§raster{opacity:1}ø ø-cursor{|absolute;Ü:0¥ö|-26px -87px}∑ .light ø-cursor{ö|3px -87px}.S ø-cursor{ö|-34px -95px}.S .light ø-cursor{ö|-5px -95px}∑ .§panel{|absolute;top:10¥Ü:10¥bottom:10¥~94¥?~1¥?style:solid;?@#222 #555 #555 #222;overflow:hidden;ö@#333}.S .§panel{top:9¥Ü:9¥bottom:9px}.XS .§panel{display:none}.§panel div{|relative}«§hsv,«§hsl,«§rgb,«§cmyk,«§Lab,«§alpha,.no-alpha «§HEX,«§HEX{~86¥margin:-1px 0px 1px 4¥padding:1px 0px 3¥?top-~1¥?top-style:solid;?top-@#444;?bottom-~1¥?bottom-style:solid;?bottom-@#222;float:Ö«§hsv,«§hsl{padding-top:2px}.S .§hsv,.S .§hsl{padding-top:1px}«§HEX{?bottom-style:none;?top-~0¥margin-top:-4¥padding-top:0px}.no-alpha «§HEX{?bottom-style:none}«§alpha{?bottom-style:none}.S .rgb-r .§hsv,.S .rgb-g .§hsv,.S .rgb-b .§hsv,.S .rgb-r .§hsl,.S .rgb-g .§hsl,.S .rgb-b .§hsl,.S .hsv-h .§rgb,.S .hsv-s .§rgb,.S .hsv-v .§rgb,.S .hsl-h .§rgb,.S .hsl-s .§rgb,.S .hsl-l .§rgb,.S .§cmyk,.S .§Lab{display:none}«§butt,«§labl{float:left;~14¥ä14¥margin-top:2¥text-align:center;border:1px solid}«§butt{?@#555 #222 #222 #555}«§butt:active{ö@#444}«§labl{?@†}«Lab-mode,«cmyk-mode,«hsv-mode,«hsl-mode{|absolute;Ü:0¥top:1¥ä50px}«hsv-mode,«hsl-mode{top:2px}«cmyk-mode{ä68px}.hsl-h .hsl-h-labl,.hsl-s .hsl-s-labl,.hsl-l .hsl-l-labl,.hsv-h .hsv-h-labl,.hsv-s .hsv-s-labl,.hsv-v .hsv-v-labl{@#f90}«cmyk-mode,«hsv-mode,.rgb-r .rgb-r-butt,.rgb-g .rgb-g-butt,.rgb-b .rgb-b-butt,.hsv-h .hsv-h-butt,.hsv-s .hsv-s-butt,.hsv-v .hsv-v-butt,.hsl-h .hsl-h-butt,.hsl-s .hsl-s-butt,.hsl-l .hsl-l-butt,«rgb-r-labl,«rgb-g-labl,«rgb-b-labl,«alpha-butt,«HEX-butt,«Lab-x-labl{?@#222 #555 #555 #222;ö@#444}.no-rgb-r .rgb-r-labl,.no-rgb-g .rgb-g-labl,.no-rgb-b .rgb-b-labl,.mute-alpha .alpha-butt,.no-HEX .HEX-butt,.cmy-only .Lab-x-labl{?@#555 #222 #222 #555;ö@#333}.Lab-x-disp,.cmy-only .cmyk-k-disp,.cmy-only .cmyk-k-butt{visibility:hidden}«HEX-disp{öimage:none}«§disp{float:left;~48¥ä14¥margin:2px 2px 0¥cursor:text;text-align:left;text-indent:3¥?~1¥?style:solid;?@#222 #555 #555 #222}∑ .§nsarrow{|absolute;top:0¥left:-13¥~8¥ä16¥display:none;ö|-87px -23px}∑ .start-change .§nsarrow{display:block}∑ .do-change .§nsarrow{display:block;ö|-87px -36px}.do-change .§disp{cursor:default}«§hide{display:none}«§cont,«§cold{|absolute;top:-5¥left:0¥ä3¥border:1px solid #333}«§cold{z-index:1;ö@#c00}«§cont{margin-Ü:-1¥z-index:2}«contrast .§cont{z-index:1;ö@#ccc}«orange .§cold{ö@#f90}«green .§cold{ö@#4d0}«§ctrl{|absolute;bottom:0¥left:0¥~100%;ö@#fff}.alpha-bg-b .§ctrl,«§bres,«§bsav{ö@#333}«§col1,«§col2,«§bres,«§bsav{?~1¥?style:solid;?@#555 #222 #222 #555;float:left;~45¥line-ä28¥text-align:center;top:0px}.§panel div div{ä100%}.S .§ctrl div{line-ä25px}.S «§bres,.S «§bsav{line-ä26px}∑ .§exit,∑ .§resize{Ü:3¥top:3¥~15¥ä15¥ö|0 -52px}∑ .§resize{top:auto;bottom:3¥cursor:nwse-resize;ö|-15px -52px}.S .§exit{ö|1px -52px}.XS .§resize,.XS .§exit{~10¥ä10¥Ü:0¥öimage:none}.XS .§exit{top:0px}.XS .§resize{bottom:0px}∑ .§resizer,∑ .§resizer div{|absolute;border:1px solid #888;top:-1¥Ü:-1¥bottom:-1¥left:-1¥z-index:2;display:none;cursor:nwse-resize}∑ .§resizer div{border:1px dashed #333;opacity:0.3;display:block;ö@#bbb}'.replace(/Ü/g,"right").replace(/Ö/g,"left}").replace(/∑/g,".§app").replace(/«/g,".§panel .").replace(/¥/g,"px;").replace(/\|/g,"position:").replace(/@/g,"color:").replace(/ö/g,"background-").replace(/ä/g,"height:").replace(/ø/g,".§memo").replace(/†/g,"transparent").replace(/\~/g,"width:").replace(/\?/g,"border-").replace(/\^/g,".§sld"),l="iVBORw0KGgoAAAANSUhEUgAABIAAAAABCAYAAACmC9U0AAABT0lEQVR4Xu2S3Y6CMBCFhyqIsjGBO1/B9/F5DC/pK3DHhVkUgc7Zqus2DVlGU/cnQZKTjznttNPJBABA149HyRf1iN//4mIBCg0jV4In+j9xJiuihly1V/Z9X88v//kNeDXVvyO/lK+IPR76B019+1Riab3H1zkmeqerKnL+Bzwxx6PAgZxaSQU8vB62T28pxcQeRQ2sHw6GxCOWHvP78zwHAARBABOfdYtd30rwxXOEPDF+dj2+91r6vV/id3k+/brrXmaGUkqKhX3i+ffSt16HQ/dorTGZTHrs7ev7Tl7XdZhOpzc651nfsm1bRFF0YRiGaJoGs9nsQuN/xafTCXEco65rzOdzHI9HJEmCqqqwXC6x3++RZRnKssRqtUJRFFiv19jtdthutyAi5Hl+Jo9VZg7+7f3yX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SP+u/XNN/pz41Go+sjIMBTMEABASggQAEBKCBAAQEoIEABASggQAEB/CN/CDAAw78uW9AVDw4AAAAASUVORK5CYII=",B="iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQI12P4//8/MwAI/wMBbrqo4gAAAABJRU5ErkJggg==";A.ColorPicker={_html:g,_cssFunc:r,_cssMain:o,_horizontalPng:l,_verticalPng:a,_patchesPng:t,_iconsPng:e,_bgsPng:s,_blankPng:B}}(window); // colorPicker.min.js -!function(e,t){"use strict";function a(e,a){var r,i,d="",u="",p=[];for(var m in a)e.options[m]=a[m];J=new Colors(e.options),delete e.options,et=J.options,et.scale=1,u=et.CSSPrefix,e.color=J,Y=et.valueRanges,e.nodes=tt=l(o(e),e),f(et.mode),s(e),x(),d=" "+et.mode.type+"-"+et.mode.z,tt.slds.className+=d,tt.panel.className+=d,et.noHexButton&&B(tt.HEX_butt,u+"butt",u+"labl"),et.size!==t&&g(t,et.size),i={alphaBG:tt.alpha_labl,cmyOnly:tt.HEX_labl};for(var y in i)et[y]!==t&&h({target:i[y],data:et[y]});et.noAlpha&&(tt.colorPicker.className+=" no-alpha"),r=et.memoryColors,"string"==typeof r&&(r=r.replace(/^'|'$/g,"").replace(/\s*/,"").split("','"));for(var y=tt.memos.length;y--;)r&&"string"==typeof r[y]&&(p=r[y].replace("rgba(","").replace(")","").split(","),r[y]={r:p[0],g:p[1],b:p[2],a:p[3]}),tt.memos[y].style.cssText="background-color: "+(r&&r[y]!==t?_(r[y])+";"+R(r[y].a||1):"rgb(0,0,0);");n(e),A=!0,c(t,"init"),D&&(s(D),S())}function s(e){q=!0,H!==e&&(H=e,K=e.color.colors,et=e.color.options,tt=e.nodes,J=e.color,Q={},C(K))}function r(){var e=["L","S","XS","XXS"];et.sizes={},tt.testNode.style.cssText="position:absolute;left:-1000px;top:-1000px;",document.body.appendChild(tt.testNode);for(var t=e.length;t--;)tt.testNode.className=et.CSSPrefix+"app "+e[t],et.sizes[e[t]]=[tt.testNode.offsetWidth,tt.testNode.offsetHeight];tt.testNode.removeNode?tt.testNode.removeNode(!0):document.body.removeChild(tt.testNode)}function o(e){var t=document.createElement("div"),a=et.CSSPrefix,s="data:image/png;base64,",r=function(e,t){var a=document.createElement("style");a.setAttribute("type","text/css"),t&&a.setAttribute("id",t),a.styleSheet||a.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(a),a.styleSheet&&(document.styleSheets[document.styleSheets.length-1].cssText=e)},o=function(e){O._cssFunc=O._cssFunc.replace(/§/g,a).replace("_patches.png",e?s+O._patchesPng:et.imagePath+"_patches.png").replace("_vertical.png",e?s+O._verticalPng:et.imagePath+"_vertical.png").replace("_horizontal.png",e?s+O._horizontalPng:et.imagePath+"_horizontal.png"),r(O._cssFunc,"colorPickerCSS"),et.customCSS||(O._cssMain=O._cssMain.replace(/§/g,a).replace("_bgs.png",e?s+O._bgsPng:et.imagePath+"_bgs.png").replace("_icons.png",e?s+O._iconsPng:et.imagePath+"_icons.png").replace("_blank.png",Z||e?et.imagePath+"_blank.cur":s+O._blankPng).replace('"Courier New",',e?"":'"Courier New",').replace(/opacity:(\d*\.*(\d+))/g,function(e,t){return W?"-moz-opacity: "+t+"; -khtml-opacity: "+t+"; opacity: "+t:'-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity='+Math.round(100*+t)+')";filter: alpha(opacity='+Math.round(100*+t)+")"}),r(O._cssMain));for(var t in O)O[t]=null},l=document.createElement("img");return U?e.color.options.devPicker:((D=H)&&y(),t.innerHTML=H?H.nodes.colorPicker.outerHTML:O._html.replace(/§/g,a),document.getElementById("colorPickerCSS")||(l.onload=l.onerror=function(){O._cssFunc&&o(1===this.width&&1===this.height)},l.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="),t=t.children[0],t.style.cssText=et.initStyle||"",t.className=t.className.split(" ")[0],(et.appenTo||document.body).appendChild(t))}function l(e){var t,a,s=e.getElementsByTagName("*"),r={colorPicker:e},o=new RegExp(et.CSSPrefix);r.styles={},r.textNodes={},r.memos=[],r.testNode=document.createElement("div");for(var l=0,n=s.length;n>l;l++)t=s[l],(a=t.className)&&o.test(a)?(a=a.split(" ")[0].replace(et.CSSPrefix,"").replace(/-/g,"_"),/_disp/.test(a)?(a=a.replace("_disp",""),r.styles[a]=t.style,r.textNodes[a]=t.firstChild,t.contentEditable=!0):(/(?:hs|cmyk|Lab).*?(?:butt|labl)/.test(a)||(r[a]=t),/(?:cur|sld[^s]|opacity|cont|col)/.test(a)&&(r.styles[a]=/(?:col\d)/.test(a)?t.children[0].style:t.style))):/memo/.test(t.parentNode.className)&&r.memos.push(t);return r}function n(a,o){var l=o?G:w;l(tt.colorPicker,"mousedown",function(o){var l=o||e.event,n=E(l),m=l.target||l.srcElement,h=m.className;return s(a),z=m,c(t,"resetEventListener"),m===tt.sldl_3||m===tt.curm?(z=tt.sldl_3,A=i,B(tt.slds,"do-drag")):/sldr/.test(h)||m===tt.curl||m===tt.curr?(z=tt.sldr_4,A=d):m===tt.opacity.children[0]||m===tt.opacity_slider?(z=tt.opacity,A=u):/-disp/.test(h)&&!/HEX-/.test(h)?(A=p,(3===m.nextSibling.nodeType?m.nextSibling.nextSibling:m.nextSibling).appendChild(tt.nsarrow),X=h.split("-disp")[0].split("-"),X={type:X[0],z:X[1]||""},B(tt.panel,"start-change"),F=0):m!==tt.resize||et.noResize?A=t:(et.sizes||r(),z=tt.resizer,A=g),A&&(I={pageX:n.X,pageY:n.Y},z.style.display="block",$=T(z),$.width=tt.opacity.offsetWidth,$.childWidth=tt.opacity_slider.offsetWidth,z.style.display="",A(l),w(Z?document.body:e,"mousemove",A),L=e[st](S)),/-disp/.test(h)?void 0:P(l)}),l(tt.colorPicker,"click",function(e){s(a),h(e)}),l(tt.colorPicker,"dblclick",h),l(tt.colorPicker,"keydown",function(e){s(a),m(e)}),l(tt.colorPicker,"keypress",m),l(tt.colorPicker,"paste",function(e){return e.target.firstChild.data=e.clipboardData.getData("Text"),P(e)})}function c(a,s){var r=A;A&&(e[rt](L),G(Z?document.body:e,"mousemove",A),F&&(X={type:"alpha"},S()),("function"==typeof A||"number"==typeof A)&&delete et.webUnsave,F=1,A=t,B(tt.slds,"do-drag",""),B(tt.panel,"(?:start-change|do-change)",""),tt.resizer.style.cssText="",tt.memo_store.style.cssText="background-color: "+_(K.RND.rgb)+"; "+R(K.alpha),tt.memo.className=tt.memo.className.replace(/\s+(?:dark|light)/,"")+(K["rgbaMix"+j[et.alphaBG]].luminance<.22?" dark":" light"),X=t,b(),et.actionCallback&&et.actionCallback(a,r.name||s||"external"))}function i(t){var a=t||e.event,s=et.scale,r=E(a),o=(r.X-$.left)*(4===s?2:s),l=(r.Y-$.top)*s,n=et.mode;return K[n.type][n.x]=N(o/255,0,1),K[n.type][n.y]=1-N(l/255,0,1),v(),P(a)}function d(t){var a=t||e.event,s=E(a),r=(s.Y-$.top)*et.scale,o=et.mode;return K[o.type][o.z]=1-N(r/255,0,1),v(),P(a)}function u(t){var a=t||e.event,s=E(a);return q=!0,K.alpha=N(Math.round((s.X-$.left)/$.width*100),0,100)/100,v("alpha"),P(a)}function p(t){var a,s=t||e.event,r=E(s),o=I.pageY-r.Y,l=et.delayOffset,n=X.type,c="alpha"===n;return F||Math.abs(o)>=l?(F||(F=(o>0?-l:l)+ +z.firstChild.data*(c?100:1),I.pageY+=F,o+=F,F=1,B(tt.panel,"start-change","do-change"),e.getSelection?e.getSelection().removeAllRanges():document.selection.empty(),document.activeElement.blur(),L=e[st](S)),"cmyk"===n&&et.cmyOnly&&(n="cmy"),c?(q=!0,K.alpha=N(o/100,0,1)):(a=Y[n][X.z],K[n][X.z]="Lab"===n?N(o,a[0],a[1]):N(o/a[1],0,1)),v(c?"alpha":n),P(s)):void 0}function m(a){var s,r=a||e.event,o=r.which||r.keyCode,l=String.fromCharCode(o),n=document.activeElement,i=n.className.replace(et.CSSPrefix,"").split("-"),d=i[0],u=i[1],p="alpha"===d,m="HEX"===d,h={k40:-1,k38:1,k34:-10,k33:10}["k"+o]/(p?100:1),g={HEX:/[0-9a-fA-F]/,Lab:/[\-0-9]/,alpha:/[\.0-9]/}[d]||/[0-9]/,f=Y[d][d]||Y[d][u],y=n.firstChild,b=M(n),x=y.data,S="0"!==x||m?x.split(""):[];return/^(?:27|13)$/.test(o)?n.blur():"keydown"===r.type?(h?s=N(Math.round(1e6*(+x+h))/1e6,f[0],f[1]):/^(?:8|46)$/.test(o)&&(b.range||(b.range++,b.start-=8===o?1:0),S.splice(b.start,b.range),s=S.join("")||"0"),s!==t&&P(r,!0)):"keypress"===r.type&&(/^(?:37|39|8|46|9)$/.test(o)||P(r,!0),g.test(l)&&(S.splice(b.start,b.range,l),s=S.join("")),b.start++),13===o&&m?y.data.length%3===0||"0"===y.data?H.setColor("0"===y.data?"000":y.data,"rgb",K.alpha,!0):(P(r,!0),n.focus()):(m&&s!==t&&(s=/^0+/.test(s)?s:parseInt(""+s,16)||0),void(s!==t&&""!==s&&+s>=f[0]&&+s<=f[1]&&(m&&(s=s.toString(16).toUpperCase()||"0"),p?K[d]=+s:m||(K[d][u]=+s/("Lab"===d?1:f[1])),v(p?"alpha":d),C(K),A=!0,c(a,r.type),y.data=s,M(n,Math.min(n.firstChild.data.length,b.start<0?0:b.start)))))}function h(a){var s,r,o=a||e.event,l=o.target||o.srcElement,n=l.className,i=l.parentNode,d=et,u=K.RND.rgb,p=et.mode,m="",h=d.CSSPrefix,g=/(?:hs|rgb)/.test(i.className)&&/^[HSBLRG]$/.test(l.firstChild?l.firstChild.data:""),f=/dblc/.test(o.type),y="";if(!f||g){if(-1!==n.indexOf("-labl "+h+"labl"))B(tt[n.split("-")[0]],h+"hide",""),B(tt[i.className.split("-")[1]],h+"hide");else if(-1!==n.indexOf(h+"butt"))if(g)f&&2===et.scale&&(m=/hs/.test(p.type)?"rgb":/hide/.test(tt.hsl.className)?"hsv":"hsl",m=m+"-"+m[p.type.indexOf(p.z)]),H.setMode(m?m:n.replace("-butt","").split(" ")[0]),y="modeChange";else if(/^[rgb]/.test(n))m=n.split("-")[1],B(tt.colorPicker,"no-rgb-"+m,(d["noRGB"+m]=!d["noRGB"+m])?t:""),y="noRGB"+m;else if(l===tt.alpha_labl)s=d.customBG,r=d.alphaBG,B(tt.colorPicker,"alpha-bg-"+r,"alpha-bg-"+(r=d.alphaBG=a.data||("w"===r?s?"c":"b":"c"===r?"b":"w"))),l.firstChild.data=r.toUpperCase(),tt.ctrl.style.backgroundColor=tt.memo.style.backgroundColor="c"!==r?"":"rgb("+Math.round(255*s.r)+", "+Math.round(255*s.g)+", "+Math.round(255*s.b)+")",tt.raster.style.cssText=tt.raster_bg.previousSibling.style.cssText="c"!==r?"":R(s.luminance<.22?.5:.4),y="alphaBackground";else if(l===tt.alpha_butt)B(tt.colorPicker,"mute-alpha",(d.muteAlpha=!d.muteAlpha)?t:""),y="alphaState";else if(l===tt.HEX_butt)B(tt.colorPicker,"no-HEX",(d.HEXState=!d.HEXState)?t:""),y="HEXState";else if(l===tt.HEX_labl){var b="web save"===K.saveColor;"web smart"===K.saveColor||b?b?H.setColor(d.webUnsave,"rgb"):(d.webUnsave||(d.webUnsave=k(u)),H.setColor(K.webSave,"rgb")):(d.webUnsave=k(u),H.setColor(K.webSmart,"rgb")),y="webColorState"}else/Lab-x-labl/.test(n)&&(B(tt.colorPicker,"cmy-only",(d.cmyOnly=!d.cmyOnly)?t:""),y="cmykState");else if(l===tt.bsav)x(),y="saveAsBackground";else if(l===tt.bres){var S=k(u),_=K.alpha;H.setColor(d.color),x(),H.setColor(S,"rgb",_),y="resetColor"}else if(i===tt.col1)K.hsv.h-=K.hsv.h>.5?.5:-.5,v("hsv"),y="shiftColor";else if(i===tt.col2)H.setColor(l.style.backgroundColor,"rgb",K.background.alpha),y="setSavedColor";else if(i===tt.memo){var N=function(){tt.memos.blinker&&(tt.memos.blinker.style.cssText=tt.memos.cssText)},P=function(t){tt.memos.blinker=t,t.style.cssText="background-color:"+(K.RGBLuminance>.22?"#333":"#DDD"),e.setTimeout(N,200)};if(l===tt.memo_cursor){N(),tt.memos.blinker=t,tt.testNode.style.cssText=tt.memo_store.style.cssText,tt.memos.cssText=tt.testNode.style.cssText;for(var T=tt.memos.length-1;T--;)if(tt.memos.cssText===tt.memos[T].style.cssText){P(tt.memos[T]);break}if(!tt.memos.blinker){for(var T=tt.memos.length-1;T--;)tt.memos[T+1].style.cssText=tt.memos[T].style.cssText;tt.memos[0].style.cssText=tt.memo_store.style.cssText}y="toMemery"}else N(),H.setColor(l.style.backgroundColor,"rgb",l.style.opacity||1),tt.memos.cssText=l.style.cssText,P(l),A=1,y="fromMemory"}y&&(C(K),A=A||!0,c(a,y))}}function g(a,s){var r,o=a||e.event,l=o?E(o):{},n=s!==t,c=n?s:l.X-$.left+8,i=n?s:l.Y-$.top+8,d=[" S XS XXS"," S XS"," S",""],u=et.sizes,p=n?s:i10?c:10)+"px;height: "+(i>10?i:10)+"px;"}function f(e){var t={rgb_r:{x:"b",y:"g"},rgb_g:{x:"b",y:"r"},rgb_b:{x:"r",y:"g"},hsv_h:{x:"s",y:"v"},hsv_s:{x:"h",y:"v"},hsv_v:{x:"h",y:"s"},hsl_h:{x:"s",y:"l"},hsl_s:{x:"h",y:"l"},hsl_l:{x:"h",y:"s"}},a=e.replace("-","_"),s="\\b(?:rg|hs)\\w\\-\\w\\b";return B(tt.panel,s,e),B(tt.slds,s,e),e=e.split("-"),et.mode={type:e[0],x:t[a].x,y:t[a].y,z:e[1]}}function y(){var e=/\s+(?:hue-)*(?:dark|light)/g;tt.curl.className=tt.curl.className.replace(e,""),tt.curr.className=tt.curr.className.replace(e,""),tt.slds.className=tt.slds.className.replace(e,""),tt.sldr_2.className=et.CSSPrefix+"sldr-2",tt.sldr_4.className=et.CSSPrefix+"sldr-4",tt.sldl_3.className=et.CSSPrefix+"sldl-3";for(var t in tt.styles)t.indexOf("sld")||(tt.styles[t].cssText="");Q={}}function b(){tt.styles.curr.cssText=tt.styles.curl.cssText,tt.curl.className=et.CSSPrefix+"curl"+(V.noRGBZ?" "+et.CSSPrefix+"curl-"+V.noRGBZ:""),tt.curr.className=et.CSSPrefix+"curr "+et.CSSPrefix+"curr-"+("h"===et.mode.z?V.HUEContrast:V.noRGBZ?V.noRGBZ:V.RGBLuminance)}function v(e){C(J.setColor(t,e||et.mode.type)),q=!0}function x(e){return J.saveAsBackground(),tt.styles.col2.cssText="background-color: "+_(K.background.RGB)+";"+R(K.background.alpha),e&&C(K),K}function C(e){var a=V,s=j[et.alphaBG];a.hueDelta=Math.round(100*e["rgbaMixBGMix"+s].hueDelta),a.luminanceDelta=Math.round(100*e["rgbaMixBGMix"+s].luminanceDelta),a.RGBLuminance=e.RGBLuminance>.22?"light":"dark",a.HUEContrast=e.HUELuminance>.22?"light":"dark",a.contrast=a.luminanceDelta>a.hueDelta?"contrast":"",a.readabiltiy=e["rgbaMixBGMix"+s].WCAG2Ratio>=7?"green":e["rgbaMixBGMix"+s].WCAG2Ratio>=4.5?"orange":"",a.noRGBZ=et["no"+et.mode.type.toUpperCase()+et.mode.z]?"g"===et.mode.z&&e.rgb.g<.59||"b"===et.mode.z||"r"===et.mode.z?"dark":"light":t}function S(){if(A){if(!q)return L=e[st](S);q=!1}var a,s,r,o,l=et,n=K,c=V,u=Q,p=l.mode,m=tt,h=l.CSSPrefix,g=Y,f=X,y=m.styles,b=m.textNodes,v=et.scale,x=n[p.type][p.x],C=Math.round(255*x/(4===v?2:v)),k=n[p.type][p.y],N=1-k,P=Math.round(255*N/v),B=1-n[p.type][p.z],T=Math.round(255*B/v),E=[x,k],w=0,G=0,M="rgb"===p.type,H="h"===p.z,D="hsl"===p.type,O=D&&"s"===p.z,U=A===i,Z=A===d;M&&(E[0]>=E[1]?G=1:w=1,u.sliderSwap!==w&&(m.sldr_2.className=l.CSSPrefix+"sldr-"+(3-w),u.sliderSwap=w)),(M&&!Z||H&&!U||!H&&!Z)&&(y[H?"sldl_2":"sldr_2"][M?"cssText":"backgroundColor"]=M?R((E[w]-E[G])/(1-E[G]||0)):_(n.hueRGB)),H||(Z||(y.sldr_4.cssText=R(M?E[G]:O?Math.abs(1-2*N):N)),U||(y.sldl_3.cssText=R(D&&"l"===p.z?Math.abs(1-2*B):B)),D&&(o=O?"sldr_4":"sldl_3",s=O?"r-":"l-",r=O?N>.5?4:3:B>.5?3:4,u[o]!==r&&(m[o].className=l.CSSPrefix+"sld"+s+r,u[o]=r))),Z||(y.curm.cssText="left: "+C+"px; top: "+P+"px;"),U||(y.curl.top=T+"px"),f&&(y.curr.top=T+"px"),(f&&"alpha"===f.type||z===m.opacity)&&(y.opacity_slider.left=l.opacityPositionRelative?n.alpha*(($.width||m.opacity.offsetWidth)-($.childWidth||m.opacity_slider.offsetWidth))+"px":100*n.alpha+"%"),y.col1.cssText="background-color: "+_(n.RND.rgb)+"; "+(l.muteAlpha?"":R(n.alpha)),y.opacity.backgroundColor=_(n.RND.rgb),y.cold.width=c.hueDelta+"%",y.cont.width=c.luminanceDelta+"%";for(a in b)s=a.split("_"),l.cmyOnly&&(s[0]=s[0].replace("k","")),r=s[1]?n.RND[s[0]][s[1]]:n.RND[s[0]]||n[s[0]],u[a]!==r&&(u[a]=r,b[a].data=r>359.5&&"HEX"!==a?0:r,"HEX"===a||l.noRangeBackground||(r=n[s[0]][s[1]]!==t?n[s[0]][s[1]]:n[s[0]],"Lab"===s[0]&&(r=(r-g[s[0]][s[1]][0])/(g[s[0]][s[1]][1]-g[s[0]][s[1]][0])),y[a].backgroundPosition=Math.round(100*(1-r))+"% 0%"));s=n._rgb?[n._rgb.r!==n.rgb.r,n._rgb.g!==n.rgb.g,n._rgb.b!==n.rgb.b]:[],s.join("")!==u.outOfGammut&&(m.rgb_r_labl.firstChild.data=s[0]?"!":" ",m.rgb_g_labl.firstChild.data=s[1]?"!":" ",m.rgb_b_labl.firstChild.data=s[2]?"!":" ",u.outOfGammut=s.join("")),c.noRGBZ&&u.noRGBZ!==c.noRGBZ&&(m.curl.className=h+"curl "+h+"curl-"+c.noRGBZ,Z||(m.curr.className=h+"curr "+h+"curr-"+c.noRGBZ),u.noRGBZ=c.noRGBZ),u.HUEContrast!==c.HUEContrast&&"h"===p.z?(m.slds.className=m.slds.className.replace(/\s+hue-(?:dark|light)/,"")+" hue-"+c.HUEContrast,Z||(m.curr.className=h+"curr "+h+"curr-"+c.HUEContrast),u.HUEContrast=c.HUEContrast):u.RGBLuminance!==c.RGBLuminance&&(m.colorPicker.className=m.colorPicker.className.replace(/\s+(?:dark|light)/,"")+" "+c.RGBLuminance,Z||"h"===p.z||c.noRGBZ||(m.curr.className=h+"curr "+h+"curr-"+c.RGBLuminance),u.RGBLuminance=c.RGBLuminance),(u.contrast!==c.contrast||u.readabiltiy!==c.readabiltiy)&&(m.ctrl.className=m.ctrl.className.replace(" contrast","").replace(/\s*(?:orange|green)/,"")+(c.contrast?" "+c.contrast:"")+(c.readabiltiy?" "+c.readabiltiy:""),u.contrast=c.contrast,u.readabiltiy=c.readabiltiy),u.saveColor!==n.saveColor&&(m.HEX_labl.firstChild.data=n.saveColor?"web save"===n.saveColor?"W":"M":"!",u.saveColor=n.saveColor),l.renderCallback&&l.renderCallback(n,p),A&&(L=e[st](S))}function k(e){var t={};for(var a in e)t[a]=e[a];return t}function _(e,t){for(var a="",s=(t||"rgb").split(""),r=s.length;r--;)a=", "+e[s[r]]+a;return(t||"rgb")+"("+a.substr(2)+")"}function N(e,t,a){return e>a?a:t>e?t:e}function R(e){return e===t&&(e=1),W?"opacity: "+Math.round(1e10*e)/1e10+";":"filter: alpha(opacity="+Math.round(100*e)+");"}function P(t,a){return t.preventDefault?t.preventDefault():t.returnValue=!1,a||(e.getSelection?e.getSelection().removeAllRanges():document.selection.empty()),!1}function B(e,a,s){return e?e.className=s!==t?e.className.replace(new RegExp("\\s+?"+a,"g"),s?" "+s:""):e.className+" "+a:!1}function T(t){var a=t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0},s=t&&t.ownerDocument,r=s.body,o=s.defaultView||s.parentWindow||e,l=s.documentElement||r.parentNode,n=l.clientTop||r.clientTop||0,c=l.clientLeft||r.clientLeft||0;return{left:a.left+(o.pageXOffset||l.scrollLeft)-c,top:a.top+(o.pageYOffset||l.scrollTop)-n}}function E(e){return{X:e.pageX||e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,Y:e.pageY||e.clientY+document.body.scrollTop+document.documentElement.scrollTop}}function w(e,t,a){w.cache=w.cache||{_get:function(e,t,a,s){for(var r=w.cache[t]||[],o=r.length;o--;)if(e===r[o].obj&&""+a==""+r[o].func)return a=r[o].func,s||(r[o]=r[o].obj=r[o].func=null,r.splice(o,1)),a},_set:function(e,t,a){var s=w.cache[t]=w.cache[t]||[];return w.cache._get(e,t,a,!0)?!0:void s.push({func:a,obj:e})}},!a.name&&w.cache._set(e,t,a)||"function"!=typeof a||(e.addEventListener?e.addEventListener(t,a,!1):e.attachEvent("on"+t,a))}function G(e,t,a){"function"==typeof a&&(a.name||(a=w.cache._get(e,t,a)||a),e.removeEventListener?e.removeEventListener(t,a,!1):e.detachEvent("on"+t,a))}function M(a,s){var r={};if(s===t){if(e.getSelection){a.focus();var o=e.getSelection().getRangeAt(0),l=o.cloneRange();l.selectNodeContents(a),l.setEnd(o.endContainer,o.endOffset),r={end:l.toString().length,range:o.toString().length}}else{a.focus();var o=document.selection.createRange(),l=document.body.createTextRange();l.moveToElementText(a),l.setEndPoint("EndToEnd",o),r={end:l.text.length,range:o.text.length}}return r.start=r.end-r.range,r}if(-1==s&&(s=a.text().length),e.getSelection)a.focus(),e.getSelection().collapse(a.firstChild,s);else{var n=document.body.createTextRange();n.moveToElementText(a),n.moveStart("character",s),n.collapse(!0),n.select()}return s}var A,z,X,L,H,D,O=e.ColorPicker,U=!O,Z=document.createStyleSheet!==t&&document.getElementById,W="undefined"!=typeof document.body.style.opacity,Y={},j={w:"White",b:"Black",c:"Custom"},F=1,I={},$={},q=!0,V={},Q={},J={},K={},et={},tt={},at="AnimationFrame",st="request"+at,rt="cancel"+at,ot=["ms","moz","webkit","o"],lt=function(e){this.options={color:"rgba(204, 82, 37, 0.8)",mode:"rgb-b",fps:60,delayOffset:8,CSSPrefix:"cp-",allMixDetails:!0,alphaBG:"w",imagePath:""},a(this,e||{})};e.ColorPicker=lt,lt.addEvent=w,lt.removeEvent=G,lt.getOrigin=T,lt.limitValue=N,lt.changeClass=B,lt.prototype.setColor=function(e,t,a,r){s(this),X=!0,C(J.setColor.apply(J,arguments)),r&&this.startRender(!0)},lt.prototype.saveAsBackground=function(){return s(this),x(!0)},lt.prototype.setCustomBackground=function(e){return s(this),J.setCustomBackground(e)},lt.prototype.startRender=function(t){s(this),t?(A=!1,S(),this.stopRender()):(A=1,L=e[st](S))},lt.prototype.stopRender=function(){s(this),e[rt](L),X&&(A=1,c(t,"external"))},lt.prototype.setMode=function(e){s(this),f(e),y(),S()},lt.prototype.destroyAll=function(){var e=this.nodes.colorPicker,t=function(e){for(var a in e)(e[a]&&"[object Object]"===e[a].toString()||e[a]instanceof Array)&&t(e[a]),e[a]=null,delete e[a]};this.stopRender(),n(this,!0),t(this),e.parentNode.removeChild(e),e=null},w(Z?document.body:e,"mouseup",c);for(var nt=ot.length;nt--&&!e[st];)e[st]=e[ot[nt]+"Request"+at],e[rt]=e[ot[nt]+"Cancel"+at]||e[ot[nt]+"CancelRequest"+at];e[st]=e[st]||function(t){return e.setTimeout(t,1e3/et.fps)},e[rt]=e[rt]||function(t){return e.clearTimeout(t),L=null}}(window); \ No newline at end of file +!function(e,t){"use strict";function a(e,a){var r,i,d="",u="",p=[];for(var m in a)e.options[m]=a[m];J=new Colors(e.options),delete e.options,et=J.options,et.scale=1,u=et.CSSPrefix,e.color=J,Y=et.valueRanges,e.nodes=tt=l(o(e),e),f(et.mode),s(e),x(),d=" "+et.mode.type+"-"+et.mode.z,tt.slds.className+=d,tt.panel.className+=d,et.noHexButton&&B(tt.HEX_butt,u+"butt",u+"labl"),et.size!==t&&g(t,et.size),i={alphaBG:tt.alpha_labl,cmyOnly:tt.HEX_labl};for(var y in i)et[y]!==t&&h({target:i[y],data:et[y]});et.noAlpha&&(tt.colorPicker.className+=" no-alpha"),r=et.memoryColors,"string"==typeof r&&(r=r.replace(/^'|'$/g,"").replace(/\s*/,"").split("','"));for(var y=tt.memos.length;y--;)r&&"string"==typeof r[y]&&(p=r[y].replace("rgba(","").replace(")","").split(","),r[y]={r:p[0],g:p[1],b:p[2],a:p[3]}),tt.memos[y].style.cssText="background-color: "+(r&&r[y]!==t?_(r[y])+";"+R(r[y].a||1):"rgb(0,0,0);");n(e),A=!0,c(t,"init"),D&&(s(D),S())}function s(e){q=!0,H!==e&&(H=e,K=e.color.colors,et=e.color.options,tt=e.nodes,J=e.color,Q={},C(K))}function r(){var e=["L","S","XS","XXS"];et.sizes={},tt.testNode.style.cssText="position:absolute;left:-1000px;top:-1000px;",document.body.appendChild(tt.testNode);for(var t=e.length;t--;)tt.testNode.className=et.CSSPrefix+"app "+e[t],et.sizes[e[t]]=[tt.testNode.offsetWidth,tt.testNode.offsetHeight];tt.testNode.removeNode?tt.testNode.removeNode(!0):document.body.removeChild(tt.testNode)}function o(e){var t=document.createElement("div"),a=et.CSSPrefix,s="data:image/png;base64,",r=function(e,t){var a=document.createElement("style");a.setAttribute("type","text/css"),t&&a.setAttribute("id",t),a.styleSheet||a.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(a),a.styleSheet&&(document.styleSheets[document.styleSheets.length-1].cssText=e)},o=function(e){O._cssFunc=O._cssFunc.replace(/§/g,a).replace("_patches.png",e?s+O._patchesPng:et.imagePath+"_patches.png").replace("_vertical.png",e?s+O._verticalPng:et.imagePath+"_vertical.png").replace("_horizontal.png",e?s+O._horizontalPng:et.imagePath+"_horizontal.png"),r(O._cssFunc,"colorPickerCSS"),et.customCSS||(O._cssMain=O._cssMain.replace(/§/g,a).replace("_bgs.png",e?s+O._bgsPng:et.imagePath+"_bgs.png").replace("_icons.png",e?s+O._iconsPng:et.imagePath+"_icons.png").replace("_blank.png",Z?et.imagePath+"_blank.cur":s+O._blankPng).replace('"Courier New",',e?"":'"Courier New",').replace(/opacity:(\d*\.*(\d+))/g,function(e,t){return W?"-moz-opacity: "+t+"; -khtml-opacity: "+t+"; opacity: "+t:'-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity='+Math.round(100*+t)+')";filter: alpha(opacity='+Math.round(100*+t)+")"}),r(O._cssMain));for(var t in O)O[t]=null},l=document.createElement("img");return U?e.color.options.devPicker:((D=H)&&y(),t.innerHTML=H?H.nodes.colorPicker.outerHTML:O._html.replace(/§/g,a),document.getElementById("colorPickerCSS")||(l.onload=l.onerror=function(){O._cssFunc&&o(1===this.width&&1===this.height)},l.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="),t=t.children[0],t.style.cssText=et.initStyle||"",t.className=t.className.split(" ")[0],(et.appenTo||document.body).appendChild(t))}function l(e){var t,a,s=e.getElementsByTagName("*"),r={colorPicker:e},o=new RegExp(et.CSSPrefix);r.styles={},r.textNodes={},r.memos=[],r.testNode=document.createElement("div");for(var l=0,n=s.length;n>l;l++)t=s[l],(a=t.className)&&o.test(a)?(a=a.split(" ")[0].replace(et.CSSPrefix,"").replace(/-/g,"_"),/_disp/.test(a)?(a=a.replace("_disp",""),r.styles[a]=t.style,r.textNodes[a]=t.firstChild,t.contentEditable=!0):(/(?:hs|cmyk|Lab).*?(?:butt|labl)/.test(a)||(r[a]=t),/(?:cur|sld[^s]|opacity|cont|col)/.test(a)&&(r.styles[a]=/(?:col\d)/.test(a)?t.children[0].style:t.style))):/memo/.test(t.parentNode.className)&&r.memos.push(t);return r}function n(a,o){var l=o?G:w;l(tt.colorPicker,"mousedown",function(o){var l=o||e.event,n=E(l),m=l.target||l.srcElement,h=m.className;return s(a),z=m,c(t,"resetEventListener"),m===tt.sldl_3||m===tt.curm?(z=tt.sldl_3,A=i,B(tt.slds,"do-drag")):/sldr/.test(h)||m===tt.curl||m===tt.curr?(z=tt.sldr_4,A=d):m===tt.opacity.children[0]||m===tt.opacity_slider?(z=tt.opacity,A=u):/-disp/.test(h)&&!/HEX-/.test(h)?(A=p,(3===m.nextSibling.nodeType?m.nextSibling.nextSibling:m.nextSibling).appendChild(tt.nsarrow),X=h.split("-disp")[0].split("-"),X={type:X[0],z:X[1]||""},B(tt.panel,"start-change"),F=0):m!==tt.resize||et.noResize?A=t:(et.sizes||r(),z=tt.resizer,A=g),A&&(I={pageX:n.X,pageY:n.Y},z.style.display="block",$=T(z),$.width=tt.opacity.offsetWidth,$.childWidth=tt.opacity_slider.offsetWidth,z.style.display="",A(l),w(Z?document.body:e,"mousemove",A),L=e[st](S)),/-disp/.test(h)?void 0:P(l)}),l(tt.colorPicker,"click",function(e){s(a),h(e)}),l(tt.colorPicker,"dblclick",h),l(tt.colorPicker,"keydown",function(e){s(a),m(e)}),l(tt.colorPicker,"keypress",m),l(tt.colorPicker,"paste",function(e){return e.target.firstChild.data=e.clipboardData.getData("Text"),P(e)})}function c(a,s){var r=A;A&&(e[rt](L),G(Z?document.body:e,"mousemove",A),F&&(X={type:"alpha"},S()),("function"==typeof A||"number"==typeof A)&&delete et.webUnsave,F=1,A=t,B(tt.slds,"do-drag",""),B(tt.panel,"(?:start-change|do-change)",""),tt.resizer.style.cssText="",tt.memo_store.style.cssText="background-color: "+_(K.RND.rgb)+"; "+R(K.alpha),tt.memo.className=tt.memo.className.replace(/\s+(?:dark|light)/,"")+(K["rgbaMix"+j[et.alphaBG]].luminance<.22?" dark":" light"),X=t,b(),et.actionCallback&&et.actionCallback(a,r.name||s||"external"))}function i(t){var a=t||e.event,s=et.scale,r=E(a),o=(r.X-$.left)*(4===s?2:s),l=(r.Y-$.top)*s,n=et.mode;return K[n.type][n.x]=N(o/255,0,1),K[n.type][n.y]=1-N(l/255,0,1),v(),P(a)}function d(t){var a=t||e.event,s=E(a),r=(s.Y-$.top)*et.scale,o=et.mode;return K[o.type][o.z]=1-N(r/255,0,1),v(),P(a)}function u(t){var a=t||e.event,s=E(a);return q=!0,K.alpha=N(Math.round((s.X-$.left)/$.width*100),0,100)/100,v("alpha"),P(a)}function p(t){var a,s=t||e.event,r=E(s),o=I.pageY-r.Y,l=et.delayOffset,n=X.type,c="alpha"===n;return F||Math.abs(o)>=l?(F||(F=(o>0?-l:l)+ +z.firstChild.data*(c?100:1),I.pageY+=F,o+=F,F=1,B(tt.panel,"start-change","do-change"),e.getSelection?e.getSelection().removeAllRanges():document.selection.empty(),document.activeElement.blur(),L=e[st](S)),"cmyk"===n&&et.cmyOnly&&(n="cmy"),c?(q=!0,K.alpha=N(o/100,0,1)):(a=Y[n][X.z],K[n][X.z]="Lab"===n?N(o,a[0],a[1]):N(o/a[1],0,1)),v(c?"alpha":n),P(s)):void 0}function m(a){var s,r=a||e.event,o=r.which||r.keyCode,l=String.fromCharCode(o),n=document.activeElement,i=n.className.replace(et.CSSPrefix,"").split("-"),d=i[0],u=i[1],p="alpha"===d,m="HEX"===d,h={k40:-1,k38:1,k34:-10,k33:10}["k"+o]/(p?100:1),g={HEX:/[0-9a-fA-F]/,Lab:/[\-0-9]/,alpha:/[\.0-9]/}[d]||/[0-9]/,f=Y[d][d]||Y[d][u],y=n.firstChild,b=M(n),x=y.data,S="0"!==x||m?x.split(""):[];return/^(?:27|13)$/.test(o)?n.blur():"keydown"===r.type?(h?s=N(Math.round(1e6*(+x+h))/1e6,f[0],f[1]):/^(?:8|46)$/.test(o)&&(b.range||(b.range++,b.start-=8===o?1:0),S.splice(b.start,b.range),s=S.join("")||"0"),s!==t&&P(r,!0)):"keypress"===r.type&&(/^(?:37|39|8|46|9)$/.test(o)||P(r,!0),g.test(l)&&(S.splice(b.start,b.range,l),s=S.join("")),b.start++),13===o&&m?y.data.length%3===0||"0"===y.data?H.setColor("0"===y.data?"000":y.data,"rgb",K.alpha,!0):(P(r,!0),n.focus()):(m&&s!==t&&(s=/^0+/.test(s)?s:parseInt(""+s,16)||0),void(s!==t&&""!==s&&+s>=f[0]&&+s<=f[1]&&(m&&(s=s.toString(16).toUpperCase()||"0"),p?K[d]=+s:m||(K[d][u]=+s/("Lab"===d?1:f[1])),v(p?"alpha":d),C(K),A=!0,c(a,r.type),y.data=s,M(n,Math.min(n.firstChild.data.length,b.start<0?0:b.start)))))}function h(a){var s,r,o=a||e.event,l=o.target||o.srcElement,n=l.className,i=l.parentNode,d=et,u=K.RND.rgb,p=et.mode,m="",h=d.CSSPrefix,g=/(?:hs|rgb)/.test(i.className)&&/^[HSBLRG]$/.test(l.firstChild?l.firstChild.data:""),f=/dblc/.test(o.type),y="";if(!f||g){if(-1!==n.indexOf("-labl "+h+"labl"))B(tt[n.split("-")[0]],h+"hide",""),B(tt[i.className.split("-")[1]],h+"hide");else if(-1!==n.indexOf(h+"butt"))if(g)f&&2===et.scale&&(m=/hs/.test(p.type)?"rgb":/hide/.test(tt.hsl.className)?"hsv":"hsl",m=m+"-"+m[p.type.indexOf(p.z)]),H.setMode(m?m:n.replace("-butt","").split(" ")[0]),y="modeChange";else if(/^[rgb]/.test(n))m=n.split("-")[1],B(tt.colorPicker,"no-rgb-"+m,(d["noRGB"+m]=!d["noRGB"+m])?t:""),y="noRGB"+m;else if(l===tt.alpha_labl)s=d.customBG,r=d.alphaBG,B(tt.colorPicker,"alpha-bg-"+r,"alpha-bg-"+(r=d.alphaBG=a.data||("w"===r?s?"c":"b":"c"===r?"b":"w"))),l.firstChild.data=r.toUpperCase(),tt.ctrl.style.backgroundColor=tt.memo.style.backgroundColor="c"!==r?"":"rgb("+Math.round(255*s.r)+", "+Math.round(255*s.g)+", "+Math.round(255*s.b)+")",tt.raster.style.cssText=tt.raster_bg.previousSibling.style.cssText="c"!==r?"":R(s.luminance<.22?.5:.4),y="alphaBackground";else if(l===tt.alpha_butt)B(tt.colorPicker,"mute-alpha",(d.muteAlpha=!d.muteAlpha)?t:""),y="alphaState";else if(l===tt.HEX_butt)B(tt.colorPicker,"no-HEX",(d.HEXState=!d.HEXState)?t:""),y="HEXState";else if(l===tt.HEX_labl){var b="web save"===K.saveColor;"web smart"===K.saveColor||b?b?H.setColor(d.webUnsave,"rgb"):(d.webUnsave||(d.webUnsave=k(u)),H.setColor(K.webSave,"rgb")):(d.webUnsave=k(u),H.setColor(K.webSmart,"rgb")),y="webColorState"}else/Lab-x-labl/.test(n)&&(B(tt.colorPicker,"cmy-only",(d.cmyOnly=!d.cmyOnly)?t:""),y="cmykState");else if(l===tt.bsav)x(),y="saveAsBackground";else if(l===tt.bres){var S=k(u),_=K.alpha;H.setColor(d.color),x(),H.setColor(S,"rgb",_),y="resetColor"}else if(i===tt.col1)K.hsv.h-=K.hsv.h>.5?.5:-.5,v("hsv"),y="shiftColor";else if(i===tt.col2)H.setColor(l.style.backgroundColor,"rgb",K.background.alpha),y="setSavedColor";else if(i===tt.memo){var N=function(){tt.memos.blinker&&(tt.memos.blinker.style.cssText=tt.memos.cssText)},P=function(t){tt.memos.blinker=t,t.style.cssText="background-color:"+(K.RGBLuminance>.22?"#333":"#DDD"),e.setTimeout(N,200)};if(l===tt.memo_cursor){N(),tt.memos.blinker=t,tt.testNode.style.cssText=tt.memo_store.style.cssText,tt.memos.cssText=tt.testNode.style.cssText;for(var T=tt.memos.length-1;T--;)if(tt.memos.cssText===tt.memos[T].style.cssText){P(tt.memos[T]);break}if(!tt.memos.blinker){for(var T=tt.memos.length-1;T--;)tt.memos[T+1].style.cssText=tt.memos[T].style.cssText;tt.memos[0].style.cssText=tt.memo_store.style.cssText}y="toMemery"}else N(),H.setColor(l.style.backgroundColor,"rgb",l.style.opacity||1),tt.memos.cssText=l.style.cssText,P(l),A=1,y="fromMemory"}y&&(C(K),A=A||!0,c(a,y))}}function g(a,s){var r,o=a||e.event,l=o?E(o):{},n=s!==t,c=n?s:l.X-$.left+8,i=n?s:l.Y-$.top+8,d=[" S XS XXS"," S XS"," S",""],u=et.sizes,p=n?s:i10?c:10)+"px;height: "+(i>10?i:10)+"px;"}function f(e){var t={rgb_r:{x:"b",y:"g"},rgb_g:{x:"b",y:"r"},rgb_b:{x:"r",y:"g"},hsv_h:{x:"s",y:"v"},hsv_s:{x:"h",y:"v"},hsv_v:{x:"h",y:"s"},hsl_h:{x:"s",y:"l"},hsl_s:{x:"h",y:"l"},hsl_l:{x:"h",y:"s"}},a=e.replace("-","_"),s="\\b(?:rg|hs)\\w\\-\\w\\b";return B(tt.panel,s,e),B(tt.slds,s,e),e=e.split("-"),et.mode={type:e[0],x:t[a].x,y:t[a].y,z:e[1]}}function y(){var e=/\s+(?:hue-)*(?:dark|light)/g;tt.curl.className=tt.curl.className.replace(e,""),tt.curr.className=tt.curr.className.replace(e,""),tt.slds.className=tt.slds.className.replace(e,""),tt.sldr_2.className=et.CSSPrefix+"sldr-2",tt.sldr_4.className=et.CSSPrefix+"sldr-4",tt.sldl_3.className=et.CSSPrefix+"sldl-3";for(var t in tt.styles)t.indexOf("sld")||(tt.styles[t].cssText="");Q={}}function b(){tt.styles.curr.cssText=tt.styles.curl.cssText,tt.curl.className=et.CSSPrefix+"curl"+(V.noRGBZ?" "+et.CSSPrefix+"curl-"+V.noRGBZ:""),tt.curr.className=et.CSSPrefix+"curr "+et.CSSPrefix+"curr-"+("h"===et.mode.z?V.HUEContrast:V.noRGBZ?V.noRGBZ:V.RGBLuminance)}function v(e){C(J.setColor(t,e||et.mode.type)),q=!0}function x(e){return J.saveAsBackground(),tt.styles.col2.cssText="background-color: "+_(K.background.RGB)+";"+R(K.background.alpha),e&&C(K),K}function C(e){var a=V,s=j[et.alphaBG];a.hueDelta=Math.round(100*e["rgbaMixBGMix"+s].hueDelta),a.luminanceDelta=Math.round(100*e["rgbaMixBGMix"+s].luminanceDelta),a.RGBLuminance=e.RGBLuminance>.22?"light":"dark",a.HUEContrast=e.HUELuminance>.22?"light":"dark",a.contrast=a.luminanceDelta>a.hueDelta?"contrast":"",a.readabiltiy=e["rgbaMixBGMix"+s].WCAG2Ratio>=7?"green":e["rgbaMixBGMix"+s].WCAG2Ratio>=4.5?"orange":"",a.noRGBZ=et["no"+et.mode.type.toUpperCase()+et.mode.z]?"g"===et.mode.z&&e.rgb.g<.59||"b"===et.mode.z||"r"===et.mode.z?"dark":"light":t}function S(){if(A){if(!q)return L=e[st](S);q=!1}var a,s,r,o,l=et,n=K,c=V,u=Q,p=l.mode,m=tt,h=l.CSSPrefix,g=Y,f=X,y=m.styles,b=m.textNodes,v=et.scale,x=n[p.type][p.x],C=Math.round(255*x/(4===v?2:v)),k=n[p.type][p.y],N=1-k,P=Math.round(255*N/v),B=1-n[p.type][p.z],T=Math.round(255*B/v),E=[x,k],w=0,G=0,M="rgb"===p.type,H="h"===p.z,D="hsl"===p.type,O=D&&"s"===p.z,U=A===i,Z=A===d;M&&(E[0]>=E[1]?G=1:w=1,u.sliderSwap!==w&&(m.sldr_2.className=l.CSSPrefix+"sldr-"+(3-w),u.sliderSwap=w)),(M&&!Z||H&&!U||!H&&!Z)&&(y[H?"sldl_2":"sldr_2"][M?"cssText":"backgroundColor"]=M?R((E[w]-E[G])/(1-E[G]||0)):_(n.hueRGB)),H||(Z||(y.sldr_4.cssText=R(M?E[G]:O?Math.abs(1-2*N):N)),U||(y.sldl_3.cssText=R(D&&"l"===p.z?Math.abs(1-2*B):B)),D&&(o=O?"sldr_4":"sldl_3",s=O?"r-":"l-",r=O?N>.5?4:3:B>.5?3:4,u[o]!==r&&(m[o].className=l.CSSPrefix+"sld"+s+r,u[o]=r))),Z||(y.curm.cssText="left: "+C+"px; top: "+P+"px;"),U||(y.curl.top=T+"px"),f&&(y.curr.top=T+"px"),(f&&"alpha"===f.type||z===m.opacity)&&(y.opacity_slider.left=l.opacityPositionRelative?n.alpha*(($.width||m.opacity.offsetWidth)-($.childWidth||m.opacity_slider.offsetWidth))+"px":100*n.alpha+"%"),y.col1.cssText="background-color: "+_(n.RND.rgb)+"; "+(l.muteAlpha?"":R(n.alpha)),y.opacity.backgroundColor=_(n.RND.rgb),y.cold.width=c.hueDelta+"%",y.cont.width=c.luminanceDelta+"%";for(a in b)s=a.split("_"),l.cmyOnly&&(s[0]=s[0].replace("k","")),r=s[1]?n.RND[s[0]][s[1]]:n.RND[s[0]]||n[s[0]],u[a]!==r&&(u[a]=r,b[a].data=r>359.5&&"HEX"!==a?0:r,"HEX"===a||l.noRangeBackground||(r=n[s[0]][s[1]]!==t?n[s[0]][s[1]]:n[s[0]],"Lab"===s[0]&&(r=(r-g[s[0]][s[1]][0])/(g[s[0]][s[1]][1]-g[s[0]][s[1]][0])),y[a].backgroundPosition=Math.round(100*(1-r))+"% 0%"));s=n._rgb?[n._rgb.r!==n.rgb.r,n._rgb.g!==n.rgb.g,n._rgb.b!==n.rgb.b]:[],s.join("")!==u.outOfGammut&&(m.rgb_r_labl.firstChild.data=s[0]?"!":" ",m.rgb_g_labl.firstChild.data=s[1]?"!":" ",m.rgb_b_labl.firstChild.data=s[2]?"!":" ",u.outOfGammut=s.join("")),c.noRGBZ&&u.noRGBZ!==c.noRGBZ&&(m.curl.className=h+"curl "+h+"curl-"+c.noRGBZ,Z||(m.curr.className=h+"curr "+h+"curr-"+c.noRGBZ),u.noRGBZ=c.noRGBZ),u.HUEContrast!==c.HUEContrast&&"h"===p.z?(m.slds.className=m.slds.className.replace(/\s+hue-(?:dark|light)/,"")+" hue-"+c.HUEContrast,Z||(m.curr.className=h+"curr "+h+"curr-"+c.HUEContrast),u.HUEContrast=c.HUEContrast):u.RGBLuminance!==c.RGBLuminance&&(m.colorPicker.className=m.colorPicker.className.replace(/\s+(?:dark|light)/,"")+" "+c.RGBLuminance,Z||"h"===p.z||c.noRGBZ||(m.curr.className=h+"curr "+h+"curr-"+c.RGBLuminance),u.RGBLuminance=c.RGBLuminance),(u.contrast!==c.contrast||u.readabiltiy!==c.readabiltiy)&&(m.ctrl.className=m.ctrl.className.replace(" contrast","").replace(/\s*(?:orange|green)/,"")+(c.contrast?" "+c.contrast:"")+(c.readabiltiy?" "+c.readabiltiy:""),u.contrast=c.contrast,u.readabiltiy=c.readabiltiy),u.saveColor!==n.saveColor&&(m.HEX_labl.firstChild.data=n.saveColor?"web save"===n.saveColor?"W":"M":"!",u.saveColor=n.saveColor),l.renderCallback&&l.renderCallback(n,p),A&&(L=e[st](S))}function k(e){var t={};for(var a in e)t[a]=e[a];return t}function _(e,t){for(var a="",s=(t||"rgb").split(""),r=s.length;r--;)a=", "+e[s[r]]+a;return(t||"rgb")+"("+a.substr(2)+")"}function N(e,t,a){return e>a?a:t>e?t:e}function R(e){return e===t&&(e=1),W?"opacity: "+Math.round(1e10*e)/1e10+";":"filter: alpha(opacity="+Math.round(100*e)+");"}function P(t,a){return t.preventDefault?t.preventDefault():t.returnValue=!1,a||(e.getSelection?e.getSelection().removeAllRanges():document.selection.empty()),!1}function B(e,a,s){return e?e.className=s!==t?e.className.replace(new RegExp("\\s+?"+a,"g"),s?" "+s:""):e.className+" "+a:!1}function T(t){var a=t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0},s=t&&t.ownerDocument,r=s.body,o=s.defaultView||s.parentWindow||e,l=s.documentElement||r.parentNode,n=l.clientTop||r.clientTop||0,c=l.clientLeft||r.clientLeft||0;return{left:a.left+(o.pageXOffset||l.scrollLeft)-c,top:a.top+(o.pageYOffset||l.scrollTop)-n}}function E(e){return{X:e.pageX||e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,Y:e.pageY||e.clientY+document.body.scrollTop+document.documentElement.scrollTop}}function w(e,t,a){w.cache=w.cache||{_get:function(e,t,a,s){for(var r=w.cache[t]||[],o=r.length;o--;)if(e===r[o].obj&&""+a==""+r[o].func)return a=r[o].func,s||(r[o]=r[o].obj=r[o].func=null,r.splice(o,1)),a},_set:function(e,t,a){var s=w.cache[t]=w.cache[t]||[];return w.cache._get(e,t,a,!0)?!0:void s.push({func:a,obj:e})}},!a.name&&w.cache._set(e,t,a)||"function"!=typeof a||(e.addEventListener?e.addEventListener(t,a,!1):e.attachEvent("on"+t,a))}function G(e,t,a){"function"==typeof a&&(a.name||(a=w.cache._get(e,t,a)||a),e.removeEventListener?e.removeEventListener(t,a,!1):e.detachEvent("on"+t,a))}function M(a,s){var r={};if(s===t){if(e.getSelection){a.focus();var o=e.getSelection().getRangeAt(0),l=o.cloneRange();l.selectNodeContents(a),l.setEnd(o.endContainer,o.endOffset),r={end:l.toString().length,range:o.toString().length}}else{a.focus();var o=document.selection.createRange(),l=document.body.createTextRange();l.moveToElementText(a),l.setEndPoint("EndToEnd",o),r={end:l.text.length,range:o.text.length}}return r.start=r.end-r.range,r}if(-1==s&&(s=a.text().length),e.getSelection)a.focus(),e.getSelection().collapse(a.firstChild,s);else{var n=document.body.createTextRange();n.moveToElementText(a),n.moveStart("character",s),n.collapse(!0),n.select()}return s}var A,z,X,L,H,D,O=e.ColorPicker,U=!O,Z=document.createStyleSheet!==t&&document.getElementById||!!e.MSInputMethodContext,W="undefined"!=typeof document.body.style.opacity,Y={},j={w:"White",b:"Black",c:"Custom"},F=1,I={},$={},q=!0,V={},Q={},J={},K={},et={},tt={},at="AnimationFrame",st="request"+at,rt="cancel"+at,ot=["ms","moz","webkit","o"],lt=function(e){this.options={color:"rgba(204, 82, 37, 0.8)",mode:"rgb-b",fps:60,delayOffset:8,CSSPrefix:"cp-",allMixDetails:!0,alphaBG:"w",imagePath:""},a(this,e||{})};e.ColorPicker=lt,lt.addEvent=w,lt.removeEvent=G,lt.getOrigin=T,lt.limitValue=N,lt.changeClass=B,lt.prototype.setColor=function(e,t,a,r){s(this),X=!0,C(J.setColor.apply(J,arguments)),r&&this.startRender(!0)},lt.prototype.saveAsBackground=function(){return s(this),x(!0)},lt.prototype.setCustomBackground=function(e){return s(this),J.setCustomBackground(e)},lt.prototype.startRender=function(t){s(this),t?(A=!1,S(),this.stopRender()):(A=1,L=e[st](S))},lt.prototype.stopRender=function(){s(this),e[rt](L),X&&(A=1,c(t,"external"))},lt.prototype.setMode=function(e){s(this),f(e),y(),S()},lt.prototype.destroyAll=function(){var e=this.nodes.colorPicker,t=function(e){for(var a in e)(e[a]&&"[object Object]"===e[a].toString()||e[a]instanceof Array)&&t(e[a]),e[a]=null,delete e[a]};this.stopRender(),n(this,!0),t(this),e.parentNode.removeChild(e),e=null},w(Z?document.body:e,"mouseup",c);for(var nt=ot.length;nt--&&!e[st];)e[st]=e[ot[nt]+"Request"+at],e[rt]=e[ot[nt]+"Cancel"+at]||e[ot[nt]+"CancelRequest"+at];e[st]=e[st]||function(t){return e.setTimeout(t,1e3/et.fps)},e[rt]=e[rt]||function(t){return e.clearTimeout(t),L=null}}(window); \ No newline at end of file diff --git a/colorPicker.js b/colorPicker.js index 3a216a2..095fc2a 100644 --- a/colorPicker.js +++ b/colorPicker.js @@ -14,7 +14,7 @@ // _blankPng: ... // the blank 16x16px image for the transparent cursor // } _devMode = !_data, // if no _data we assume that colorPicker.data.js is missing (for development) - _isIE = document.createStyleSheet !== undefined && document.getElementById, + _isIE = document.createStyleSheet !== undefined && document.getElementById || !!window.MSInputMethodContext, _doesOpacity = typeof document.body.style.opacity !== 'undefined', // _isIE8 = _isIE && document.querySelectorAll, @@ -324,7 +324,7 @@ replace(/§/g, prefix). replace('_bgs.png', doesBAS64 ? urlData + _data._bgsPng : _options.imagePath + '_bgs.png'). replace('_icons.png', doesBAS64 ? urlData + _data._iconsPng : _options.imagePath + '_icons.png'). - replace('_blank.png', !_isIE && !doesBAS64 ? urlData + _data._blankPng : _options.imagePath + '_blank.cur'). + replace('_blank.png', !_isIE ? urlData + _data._blankPng : _options.imagePath + '_blank.cur'). replace('"Courier New",', doesBAS64 ? '' : '"Courier New",'). replace(/opacity:(\d*\.*(\d+))/g, function($1, $2){ return !_doesOpacity ? '-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=' +