tinte
Version:
Beautiful editor themes with the best DX - install themes instantly to VS Code, Cursor, and Zed
4 lines • 63.2 kB
JavaScript
var Ci=Object.defineProperty;var zr=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,o)=>(typeof require<"u"?require:t)[o]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var l=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ni=(e,t)=>{for(var o in t)Ci(e,o,{get:t[o],enumerable:!0})};var Ii,bt,to=l(()=>{"use strict";Ii=(e,t)=>{if(typeof e=="number"){if(t===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},bt=Ii});var Oi,Lr,Rr=l(()=>{"use strict";Oi={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Lr=Oi});var qi,Sr,Xr=l(()=>{"use strict";to();Rr();qi=e=>bt(Lr[e.toLowerCase()],6),Sr=qi});var Ai,Di,Hr,Pr=l(()=>{"use strict";to();Ai=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Di=e=>{let t;return(t=e.match(Ai))?bt(parseInt(t[1],16),t[1].length):void 0},Hr=Di});var N,k0,he,w0,We,Ei,$r,z0,re,L0,oo=l(()=>{"use strict";N="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",k0=`(?:${N}|none)`,he=`${N}%`,w0=`(?:${N}%|none)`,We=`(?:${N}%|${N})`,Ei=`(?:${N}%|${N}|none)`,$r=`(?:${N}(deg|grad|rad|turn)|${N})`,z0=`(?:${N}(deg|grad|rad|turn)|${N}|none)`,re="\\s*,\\s*",L0=new RegExp("^"+Ei+"$")});var ji,Ji,Fi,Cr,Nr=l(()=>{"use strict";oo();ji=new RegExp(`^rgba?\\(\\s*${N}${re}${N}${re}${N}\\s*(?:,\\s*${We}\\s*)?\\)$`),Ji=new RegExp(`^rgba?\\(\\s*${he}${re}${he}${re}${he}\\s*(?:,\\s*${We}\\s*)?\\)$`),Fi=e=>{let t={mode:"rgb"},o;if(o=e.match(ji))o[1]!==void 0&&(t.r=o[1]/255),o[2]!==void 0&&(t.g=o[2]/255),o[3]!==void 0&&(t.b=o[3]/255);else if(o=e.match(Ji))o[1]!==void 0&&(t.r=o[1]/100),o[2]!==void 0&&(t.g=o[2]/100),o[3]!==void 0&&(t.b=o[3]/100);else return;return o[4]!==void 0?t.alpha=Math.max(0,Math.min(1,o[4]/100)):o[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+o[5]))),t},Cr=Fi});var Zi,Ge,ro=l(()=>{"use strict";Q();Zi=(e,t)=>e===void 0?void 0:typeof e!="object"?Ir(e):e.mode!==void 0?e:t?{...e,mode:t}:void 0,Ge=Zi});var Yi,Y,Ve=l(()=>{"use strict";we();ro();Yi=(e="rgb")=>t=>(t=Ge(t,e))!==void 0?t.mode===e?t:Z[t.mode][e]?Z[t.mode][e](t):e==="rgb"?Z[t.mode].rgb(t):Z.rgb[e](Z[t.mode].rgb(t)):void 0,Y=Yi});var Z,Or,Ue,no,Bi,M,be,Wi,we=l(()=>{"use strict";Ve();Z={},Or={},Ue=[],no={},Bi=e=>e,M=e=>(Z[e.mode]={...Z[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(t=>{Z[t]||(Z[t]={}),Z[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw new Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]=="function"&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=Bi)}),Or[e.mode]=e,(e.parse||[]).forEach(t=>{Wi(t,e.mode)}),Y(e.mode)),be=e=>Or[e],Wi=(e,t)=>{if(typeof e=="string"){if(!t)throw new Error("'mode' required when 'parser' is a string");no[e]=t}else typeof e=="function"&&Ue.indexOf(e)<0&&Ue.push(e)}});function gt(e){let t=e[g],o=e[g+1];return t==="-"||t==="+"?/\d/.test(o)||o==="."&&/\d/.test(e[g+2]):t==="."?/\d/.test(o):/\d/.test(t)}function io(e){if(g>=e.length)return!1;let t=e[g];if(ao.test(t))return!0;if(t==="-"){if(e.length-g<2)return!1;let o=e[g+1];return!!(o==="-"||ao.test(o))}return!1}function Ke(e){let t="";if((e[g]==="-"||e[g]==="+")&&(t+=e[g++]),t+=xt(e),e[g]==="."&&/\d/.test(e[g+1])&&(t+=e[g++]+xt(e)),(e[g]==="e"||e[g]==="E")&&((e[g+1]==="-"||e[g+1]==="+")&&/\d/.test(e[g+2])?t+=e[g++]+e[g++]+xt(e):/\d/.test(e[g+1])&&(t+=e[g++]+xt(e))),io(e)){let o=vt(e);return o==="deg"||o==="rad"||o==="turn"||o==="grad"?{type:d.Hue,value:t*Vi[o]}:void 0}return e[g]==="%"?(g++,{type:d.Percentage,value:+t}):{type:d.Number,value:+t}}function xt(e){let t="";for(;/\d/.test(e[g]);)t+=e[g++];return t}function vt(e){let t="";for(;g<e.length&&Gi.test(e[g]);)t+=e[g++];return t}function Ui(e){let t=vt(e);return e[g]==="("?(g++,{type:d.Function,value:t}):t==="none"?{type:d.None,value:void 0}:{type:d.Ident,value:t}}function Ki(e=""){let t=e.trim(),o=[],n;for(g=0;g<t.length;){if(n=t[g++],n===`
`||n===" "||n===" "){for(;g<t.length&&(t[g]===`
`||t[g]===" "||t[g]===" ");)g++;continue}if(n===",")return;if(n===")"){o.push({type:d.ParenClose});continue}if(n==="+"){if(g--,gt(t)){o.push(Ke(t));continue}return}if(n==="-"){if(g--,gt(t)){o.push(Ke(t));continue}if(io(t)){o.push({type:d.Ident,value:vt(t)});continue}return}if(n==="."){if(g--,gt(t)){o.push(Ke(t));continue}return}if(n==="/"){for(;g<t.length&&(t[g]===`
`||t[g]===" "||t[g]===" ");)g++;let r;if(gt(t)&&(r=Ke(t),r.type!==d.Hue)){o.push({type:d.Alpha,value:r});continue}if(io(t)&&vt(t)==="none"){o.push({type:d.Alpha,value:{type:d.None,value:void 0}});continue}return}if(/\d/.test(n)){g--,o.push(Ke(t));continue}if(ao.test(n)){g--,o.push(Ui(t));continue}return}return o}function Qi(e){e._i=0;let t=e[e._i++];if(!t||t.type!==d.Function||t.value!=="color"||(t=e[e._i++],t.type!==d.Ident))return;let o=no[t.value];if(!o)return;let n={mode:o},r=qr(e,!1);if(!r)return;let a=be(o).channels;for(let i=0,f,u;i<a.length;i++)f=r[i],u=a[i],f.type!==d.None&&(n[u]=f.type===d.Number?f.value:f.value/100,u==="alpha"&&(n[u]=Math.max(0,Math.min(1,n[u]))));return n}function qr(e,t){let o=[],n;for(;e._i<e.length;){if(n=e[e._i++],n.type===d.None||n.type===d.Number||n.type===d.Alpha||n.type===d.Percentage||t&&n.type===d.Hue){o.push(n);continue}if(n.type===d.ParenClose){if(e._i<e.length)return;continue}return}if(!(o.length<3||o.length>4)){if(o.length===4){if(o[3].type!==d.Alpha)return;o[3]=o[3].value}return o.length===3&&o.push({type:d.None,value:void 0}),o.every(r=>r.type!==d.Alpha)?o:void 0}}function ef(e,t){e._i=0;let o=e[e._i++];if(!o||o.type!==d.Function)return;let n=qr(e,t);if(n)return n.unshift(o.value),n}var ao,Gi,d,g,Vi,tf,Ir,Q=l(()=>{"use strict";we();ao=/[^\x00-\x7F]|[a-zA-Z_]/,Gi=/[^\x00-\x7F]|[-\w]/,d={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},g=0;Vi={deg:1,rad:180/Math.PI,grad:9/10,turn:360};tf=e=>{if(typeof e!="string")return;let t=Ki(e),o=t?ef(t,!0):void 0,n,r=0,a=Ue.length;for(;r<a;)if((n=Ue[r++](e,o))!==void 0)return n;return t?Qi(t):void 0},Ir=tf});function of(e,t){if(!t||t[0]!=="rgb"&&t[0]!=="rgba")return;let o={mode:"rgb"},[,n,r,a,i]=t;if(!(n.type===d.Hue||r.type===d.Hue||a.type===d.Hue))return n.type!==d.None&&(o.r=n.type===d.Number?n.value/255:n.value/100),r.type!==d.None&&(o.g=r.type===d.Number?r.value/255:r.value/100),a.type!==d.None&&(o.b=a.type===d.Number?a.value/255:a.value/100),i.type!==d.None&&(o.alpha=Math.min(1,Math.max(0,i.type===d.Number?i.value:i.value/100))),o}var Ar,Dr=l(()=>{"use strict";Q();Ar=of});var rf,Er,jr=l(()=>{"use strict";rf=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Er=rf});var Jr,Fr=l(()=>{"use strict";Jr=(e,t,o)=>e+o*(t-e)});var nf,Zr,Yr=l(()=>{"use strict";nf=e=>{let t=[];for(let o=0;o<e.length-1;o++){let n=e[o],r=e[o+1];n===void 0&&r===void 0?t.push(void 0):n!==void 0&&r!==void 0?t.push([n,r]):t.push(n!==void 0?[n,n]:[r,r])}return t},Zr=e=>t=>{let o=nf(t);return n=>{let r=n*o.length,a=n>=1?o.length-1:Math.max(Math.floor(r),0),i=o[a];return i===void 0?void 0:e(i[0],i[1],r-a)}}});var s,S=l(()=>{"use strict";Fr();Yr();s=Zr(Jr)});var v,X=l(()=>{"use strict";v=e=>{let t=!1,o=e.map(n=>n!==void 0?(t=!0,n):1);return t?o:e}});var af,D,ge=l(()=>{"use strict";Xr();Pr();Nr();Dr();jr();S();X();af={mode:"rgb",channels:["r","g","b","alpha"],parse:[Ar,Hr,Cr,Sr,Er,"srgb"],serialize:"srgb",interpolate:{r:s,g:s,b:s,alpha:{use:s,fixup:v}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},D=af});var fo,ff,lo,Br=l(()=>{"use strict";fo=(e=0)=>Math.pow(Math.abs(e),2.19921875)*Math.sign(e),ff=e=>{let t=fo(e.r),o=fo(e.g),n=fo(e.b),r={mode:"xyz65",x:.5766690429101305*t+.1855582379065463*o+.1882286462349947*n,y:.297344975250536*t+.6273635662554661*o+.0752914584939979*n,z:.0270313613864123*t+.0706888525358272*o+.9913375368376386*n};return e.alpha!==void 0&&(r.alpha=e.alpha),r},lo=ff});var so,lf,uo,Wr=l(()=>{"use strict";so=e=>Math.pow(Math.abs(e),.4547069271758437)*Math.sign(e),lf=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"a98",r:so(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*o),g:so(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*o),b:so(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*o)};return n!==void 0&&(r.alpha=n),r},uo=lf});var po,df,E,xe=l(()=>{"use strict";po=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)},df=({r:e,g:t,b:o,alpha:n})=>{let r={mode:"lrgb",r:po(e),g:po(t),b:po(o)};return n!==void 0&&(r.alpha=n),r},E=df});var sf,I,ne=l(()=>{"use strict";xe();sf=e=>{let{r:t,g:o,b:n,alpha:r}=E(e),a={mode:"xyz65",x:.4123907992659593*t+.357584339383878*o+.1804807884018343*n,y:.2126390058715102*t+.715168678767756*o+.0721923153607337*n,z:.0193308187155918*t+.119194779794626*o+.9505321522496607*n};return r!==void 0&&(a.alpha=r),a},I=sf});var mo,uf,j,ve=l(()=>{"use strict";mo=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,.4166666666666667)-.055):e*12.92},uf=({r:e,g:t,b:o,alpha:n},r="rgb")=>{let a={mode:r,r:mo(e),g:mo(t),b:mo(o)};return n!==void 0&&(a.alpha=n),a},j=uf});var pf,O,ae=l(()=>{"use strict";ve();pf=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=j({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*o,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*o,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*o});return n!==void 0&&(r.alpha=n),r},O=pf});var mf,Gr,Vr=l(()=>{"use strict";ge();Br();Wr();ne();ae();mf={...D,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>uo(I(e)),xyz65:uo},toMode:{rgb:e=>O(lo(e)),xyz65:lo}},Gr=mf});var cf,k,J=l(()=>{"use strict";cf=e=>(e=e%360)<0?e+360:e,k=cf});var hf,$,B=l(()=>{"use strict";J();hf=(e,t)=>e.map((o,n,r)=>{if(o===void 0)return o;let a=k(o);return n===0||e[n-1]===void 0?a:t(a-k(r[n-1]))}).reduce((o,n)=>!o.length||n===void 0||o[o.length-1]===void 0?(o.push(n),o):(o.push(n+o[o.length-1]),o),[]),$=e=>hf(e,t=>Math.abs(t)<=180?t:t-360*Math.sign(t))});var H,Ur,Kr,co=l(()=>{"use strict";H=[-.14861,1.78277,-.29227,-.90649,1.97294,0],Ur=Math.PI/180,Kr=180/Math.PI});var Qr,en,tn,bf,on,rn=l(()=>{"use strict";co();Qr=H[3]*H[4],en=H[1]*H[4],tn=H[1]*H[2]-H[0]*H[3],bf=({r:e,g:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=(tn*o+e*Qr-t*en)/(tn+Qr-en),a=o-r,i=(H[4]*(t-r)-H[2]*a)/H[3],f={mode:"cubehelix",l:r,s:r===0||r===1?void 0:Math.sqrt(a*a+i*i)/(H[4]*r*(1-r))};return f.s&&(f.h=Math.atan2(i,a)*Kr-120),n!==void 0&&(f.alpha=n),f},on=bf});var gf,nn,an=l(()=>{"use strict";co();gf=({h:e,s:t,l:o,alpha:n})=>{let r={mode:"rgb"};e=(e===void 0?0:e+120)*Ur,o===void 0&&(o=0);let a=t===void 0?0:t*o*(1-o),i=Math.cos(e),f=Math.sin(e);return r.r=o+a*(H[0]*i+H[1]*f),r.g=o+a*(H[2]*i+H[3]*f),r.b=o+a*(H[4]*i+H[5]*f),n!==void 0&&(r.alpha=n),r},nn=gf});var ie,fn,fe,W=l(()=>{"use strict";J();ie=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let o=k(e.h),n=k(t.h),r=Math.sin((n-o+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*r},fn=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let o=k(e.h),n=k(t.h);return Math.abs(n-o)>180?o-(n-360*Math.sign(n-o)):n-o},fe=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let o=k(e.h),n=k(t.h),r=Math.sin((n-o+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*r}});var C,G=l(()=>{"use strict";C=e=>{let t=e.reduce((n,r)=>{if(r!==void 0){let a=r*Math.PI/180;n.sin+=Math.sin(a),n.cos+=Math.cos(a)}return n},{sin:0,cos:0}),o=Math.atan2(t.sin,t.cos)*180/Math.PI;return o<0?360+o:o}});var xf,ln,dn=l(()=>{"use strict";B();X();S();rn();an();W();G();xf={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:on},toMode:{rgb:nn},interpolate:{h:{use:s,fixup:$},s,l:s,alpha:{use:s,fixup:v}},difference:{h:ie},average:{h:C}},ln=xf});var vf,q,ze=l(()=>{"use strict";J();vf=({l:e,a:t,b:o,alpha:n},r="lch")=>{t===void 0&&(t=0),o===void 0&&(o=0);let a=Math.sqrt(t*t+o*o),i={mode:r,l:e,c:a};return a&&(i.h=k(Math.atan2(o,t)*180/Math.PI)),n!==void 0&&(i.alpha=n),i},q=vf});var yf,A,Le=l(()=>{"use strict";yf=({l:e,c:t,h:o,alpha:n},r="lab")=>{o===void 0&&(o=0);let a={mode:r,l:e,a:t?t*Math.cos(o/180*Math.PI):0,b:t?t*Math.sin(o/180*Math.PI):0};return n!==void 0&&(a.alpha=n),a},A=yf});var yt,Mt,ho=l(()=>{"use strict";yt=Math.pow(29,3)/Math.pow(3,3),Mt=Math.pow(6,3)/Math.pow(29,3)});var L,le,Dd,Ed,ye=l(()=>{"use strict";L={X:.9642956764295677,Y:1,Z:.8251046025104602},le={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},Dd=Math.pow(29,3)/Math.pow(3,3),Ed=Math.pow(6,3)/Math.pow(29,3)});var bo,Mf,Tt,go=l(()=>{"use strict";ho();ye();bo=e=>Math.pow(e,3)>Mt?Math.pow(e,3):(116*e-16)/yt,Mf=({l:e,a:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=(e+16)/116,a=t/500+r,i=r-o/200,f={mode:"xyz65",x:bo(a)*le.X,y:bo(r)*le.Y,z:bo(i)*le.Z};return n!==void 0&&(f.alpha=n),f},Tt=Mf});var Tf,de,Qe=l(()=>{"use strict";go();ae();Tf=e=>O(Tt(e)),de=Tf});var xo,_f,_t,vo=l(()=>{"use strict";ho();ye();xo=e=>e>Mt?Math.cbrt(e):(yt*e+16)/116,_f=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=xo(e/le.X),a=xo(t/le.Y),i=xo(o/le.Z),f={mode:"lab65",l:116*a-16,a:500*(r-a),b:200*(a-i)};return n!==void 0&&(f.alpha=n),f},_t=_f});var kf,se,et=l(()=>{"use strict";ne();vo();kf=e=>{let t=_t(I(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},se=kf});var Me,Re,Se,kt,yo=l(()=>{"use strict";Me=.14444444444444443*Math.PI,Re=Math.cos(Me),Se=Math.sin(Me),kt=100/Math.log(139/100)});var wf,ot,To=l(()=>{"use strict";yo();wf=({l:e,c:t,h:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"lab65",l:(Math.exp(e*1/kt)-1)/.0039},a=(Math.exp(.0435*t*1*1)-1)/.075,i=a*Math.cos(o/180*Math.PI-Me),f=a*Math.sin(o/180*Math.PI-Me);return r.a=i*Re-f/.83*Se,r.b=i*Se+f/.83*Re,n!==void 0&&(r.alpha=n),r},ot=wf});var zf,rt,_o=l(()=>{"use strict";yo();J();zf=({l:e,a:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=t*Re+o*Se,a=.83*(o*Re-t*Se),i=Math.sqrt(r*r+a*a),f={mode:"dlch",l:kt/1*Math.log(1+.0039*e),c:Math.log(1+.075*i)/(.0435*1*1)};return f.c&&(f.h=k((Math.atan2(a,r)+Me)/Math.PI*180)),n!==void 0&&(f.alpha=n),f},rt=zf});var sn,un,Lf,pn,mn=l(()=>{"use strict";ze();Le();Qe();et();To();_o();S();X();sn=e=>ot(q(e,"dlch")),un=e=>A(rt(e),"dlab"),Lf={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:sn,rgb:e=>de(sn(e))},fromMode:{lab65:un,rgb:e=>un(se(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:s,a:s,b:s,alpha:{use:s,fixup:v}}},pn=Lf});var Rf,cn,hn=l(()=>{"use strict";ze();Le();To();_o();Qe();et();B();X();S();W();G();Rf={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:ot,dlab:e=>A(e,"dlab"),rgb:e=>de(ot(e))},fromMode:{lab65:rt,dlab:e=>q(e,"dlch"),rgb:e=>rt(se(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:s,c:s,h:{use:s,fixup:$},alpha:{use:s,fixup:v}},difference:{h:fe},average:{h:C}},cn=Rf});function ko({h:e,s:t,i:o,alpha:n}){e=k(e!==void 0?e:0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:o*(1+t*(3/(2-r)-1)),g:o*(1+t*(3*(1-r)/(2-r)-1)),b:o*(1-t)};break;case 1:a={r:o*(1+t*(3*(1-r)/(2-r)-1)),g:o*(1+t*(3/(2-r)-1)),b:o*(1-t)};break;case 2:a={r:o*(1-t),g:o*(1+t*(3/(2-r)-1)),b:o*(1+t*(3*(1-r)/(2-r)-1))};break;case 3:a={r:o*(1-t),g:o*(1+t*(3*(1-r)/(2-r)-1)),b:o*(1+t*(3/(2-r)-1))};break;case 4:a={r:o*(1+t*(3*(1-r)/(2-r)-1)),g:o*(1-t),b:o*(1+t*(3/(2-r)-1))};break;case 5:a={r:o*(1+t*(3/(2-r)-1)),g:o*(1-t),b:o*(1+t*(3*(1-r)/(2-r)-1))};break;default:a={r:o*(1-t),g:o*(1-t),b:o*(1-t)}}return a.mode="rgb",n!==void 0&&(a.alpha=n),a}var bn=l(()=>{"use strict";J()});function wo({r:e,g:t,b:o,alpha:n}){e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.max(e,t,o),a=Math.min(e,t,o),i={mode:"hsi",s:e+t+o===0?0:1-3*a/(e+t+o),i:(e+t+o)/3};return r-a!==0&&(i.h=(r===e?(t-o)/(r-a)+(t<o)*6:r===t?(o-e)/(r-a)+2:(e-t)/(r-a)+4)*60),n!==void 0&&(i.alpha=n),i}var gn=l(()=>{"use strict"});var Sf,xn,vn=l(()=>{"use strict";bn();gn();B();X();S();W();G();Sf={mode:"hsi",toMode:{rgb:ko},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:wo},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:s,fixup:$},s,i:s,alpha:{use:s,fixup:v}},difference:{h:ie},average:{h:C}},xn=Sf});function zo({h:e,s:t,l:o,alpha:n}){e=k(e!==void 0?e:0),t===void 0&&(t=0),o===void 0&&(o=0);let r=o+t*(o<.5?o:1-o),a=r-(r-o)*2*Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r,g:a,b:2*o-r};break;case 1:i={r:a,g:r,b:2*o-r};break;case 2:i={r:2*o-r,g:r,b:a};break;case 3:i={r:2*o-r,g:a,b:r};break;case 4:i={r:a,g:2*o-r,b:r};break;case 5:i={r,g:2*o-r,b:a};break;default:i={r:2*o-r,g:2*o-r,b:2*o-r}}return i.mode="rgb",n!==void 0&&(i.alpha=n),i}var yn=l(()=>{"use strict";J()});function Lo({r:e,g:t,b:o,alpha:n}){e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.max(e,t,o),a=Math.min(e,t,o),i={mode:"hsl",s:r===a?0:(r-a)/(1-Math.abs(r+a-1)),l:.5*(r+a)};return r-a!==0&&(i.h=(r===e?(t-o)/(r-a)+(t<o)*6:r===t?(o-e)/(r-a)+2:(e-t)/(r-a)+4)*60),n!==void 0&&(i.alpha=n),i}var Mn=l(()=>{"use strict"});var Xf,Tn,_n=l(()=>{"use strict";Xf=(e,t)=>{switch(t){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},Tn=Xf});var Hf,Pf,kn,wn=l(()=>{"use strict";_n();oo();Hf=new RegExp(`^hsla?\\(\\s*${$r}${re}${he}${re}${he}\\s*(?:,\\s*${We}\\s*)?\\)$`),Pf=e=>{let t=e.match(Hf);if(!t)return;let o={mode:"hsl"};return t[3]!==void 0?o.h=+t[3]:t[1]!==void 0&&t[2]!==void 0&&(o.h=Tn(t[1],t[2])),t[4]!==void 0&&(o.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(o.l=Math.min(Math.max(0,t[5]/100),1)),t[6]!==void 0?o.alpha=Math.max(0,Math.min(1,t[6]/100)):t[7]!==void 0&&(o.alpha=Math.max(0,Math.min(1,+t[7]))),o},kn=Pf});function $f(e,t){if(!t||t[0]!=="hsl"&&t[0]!=="hsla")return;let o={mode:"hsl"},[,n,r,a,i]=t;if(n.type!==d.None){if(n.type===d.Percentage)return;o.h=n.value}if(r.type!==d.None){if(r.type===d.Hue)return;o.s=r.value/100}if(a.type!==d.None){if(a.type===d.Hue)return;o.l=a.value/100}return i.type!==d.None&&(o.alpha=Math.min(1,Math.max(0,i.type===d.Number?i.value:i.value/100))),o}var zn,Ln=l(()=>{"use strict";Q();zn=$f});var Cf,wt,Ro=l(()=>{"use strict";yn();Mn();wn();Ln();B();X();S();W();G();Cf={mode:"hsl",toMode:{rgb:zo},fromMode:{rgb:Lo},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[zn,kn],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:s,fixup:$},s,l:s,alpha:{use:s,fixup:v}},difference:{h:ie},average:{h:C}},wt=Cf});function nt({h:e,s:t,v:o,alpha:n}){e=k(e!==void 0?e:0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:o,g:o*(1-t*r),b:o*(1-t)};break;case 1:a={r:o*(1-t*r),g:o,b:o*(1-t)};break;case 2:a={r:o*(1-t),g:o,b:o*(1-t*r)};break;case 3:a={r:o*(1-t),g:o*(1-t*r),b:o};break;case 4:a={r:o*(1-t*r),g:o*(1-t),b:o};break;case 5:a={r:o,g:o*(1-t),b:o*(1-t*r)};break;default:a={r:o*(1-t),g:o*(1-t),b:o*(1-t)}}return a.mode="rgb",n!==void 0&&(a.alpha=n),a}var So=l(()=>{"use strict";J()});function at({r:e,g:t,b:o,alpha:n}){e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.max(e,t,o),a=Math.min(e,t,o),i={mode:"hsv",s:r===0?0:1-a/r,v:r};return r-a!==0&&(i.h=(r===e?(t-o)/(r-a)+(t<o)*6:r===t?(o-e)/(r-a)+2:(e-t)/(r-a)+4)*60),n!==void 0&&(i.alpha=n),i}var Xo=l(()=>{"use strict"});var Nf,zt,Ho=l(()=>{"use strict";So();Xo();B();X();S();W();G();Nf={mode:"hsv",toMode:{rgb:nt},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:at},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:s,fixup:$},s,v:s,alpha:{use:s,fixup:v}},difference:{h:ie},average:{h:C}},zt=Nf});function Po({h:e,w:t,b:o,alpha:n}){if(t===void 0&&(t=0),o===void 0&&(o=0),t+o>1){let r=t+o;t/=r,o/=r}return nt({h:e,s:o===1?1:1-t/(1-o),v:1-o,alpha:n})}var Rn=l(()=>{"use strict";So()});function $o(e){let t=at(e);if(t===void 0)return;let o=t.s!==void 0?t.s:0,n=t.v!==void 0?t.v:0,r={mode:"hwb",w:(1-o)*n,b:1-n};return t.h!==void 0&&(r.h=t.h),t.alpha!==void 0&&(r.alpha=t.alpha),r}var Sn=l(()=>{"use strict";Xo()});function If(e,t){if(!t||t[0]!=="hwb")return;let o={mode:"hwb"},[,n,r,a,i]=t;if(n.type!==d.None){if(n.type===d.Percentage)return;o.h=n.value}if(r.type!==d.None){if(r.type===d.Hue)return;o.w=r.value/100}if(a.type!==d.None){if(a.type===d.Hue)return;o.b=a.value/100}return i.type!==d.None&&(o.alpha=Math.min(1,Math.max(0,i.type===d.Number?i.value:i.value/100))),o}var Xn,Hn=l(()=>{"use strict";Q();Xn=If});var Of,Pn,$n=l(()=>{"use strict";Rn();Sn();Hn();B();X();S();W();G();Of={mode:"hwb",toMode:{rgb:Po},fromMode:{rgb:$o},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Xn],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:s,fixup:$},w:s,b:s,alpha:{use:s,fixup:v}},difference:{h:fn},average:{h:C}},Pn=Of});function Lt(e){if(e<0)return 0;let t=Math.pow(e,1/Cn);return 1e4*Math.pow(Math.max(0,t-He)/(Pe-$e*t),1/Xe)}function Rt(e){if(e<0)return 0;let t=Math.pow(e/1e4,Xe);return Math.pow((He+Pe*t)/(1+$e*t),Cn)}var Xe,Cn,He,Pe,$e,it=l(()=>{"use strict";Xe=.1593017578125,Cn=78.84375,He=.8359375,Pe=18.8515625,$e=18.6875});var Co,Af,No,Nn=l(()=>{"use strict";it();Co=e=>Math.max(e/203,0),Af=({i:e,t,p:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Lt(e+.008609037037932761*t+.11102962500302593*o),a=Lt(e-.00860903703793275*t-.11102962500302599*o),i=Lt(e+.5600313357106791*t-.32062717498731885*o),f={mode:"xyz65",x:Co(2.070152218389422*r-1.3263473389671556*a+.2066510476294051*i),y:Co(.3647385209748074*r+.680566024947227*a-.0453045459220346*i),z:Co(-.049747207535812*r-.0492609666966138*a+1.1880659249923042*i)};return n!==void 0&&(f.alpha=n),f},No=Af});var Io,Df,Oo,In=l(()=>{"use strict";it();Io=(e=0)=>Math.max(e*203,0),Df=({x:e,y:t,z:o,alpha:n})=>{let r=Io(e),a=Io(t),i=Io(o),f=Rt(.3592832590121217*r+.6976051147779502*a-.0358915932320289*i),u=Rt(-.1920808463704995*r+1.1004767970374323*a+.0753748658519118*i),p=Rt(.0070797844607477*r+.0748396662186366*a+.8433265453898765*i),m=.5*f+.5*u,b=1.61376953125*f-3.323486328125*u+1.709716796875*p,h=4.378173828125*f-4.24560546875*u-.132568359375*p,c={mode:"itp",i:m,t:b,p:h};return n!==void 0&&(c.alpha=n),c},Oo=Df});var Ef,On,qn=l(()=>{"use strict";S();X();Nn();In();ne();ae();Ef={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:No,rgb:e=>O(No(e))},fromMode:{xyz65:Oo,rgb:e=>Oo(I(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:s,t:s,p:s,alpha:{use:s,fixup:v}}},On=Ef});var jf,Jf,qo,Ao,Ff,St,Do=l(()=>{"use strict";it();jf=134.03437499999998,Jf=16295499532821565e-27,qo=e=>{if(e<0)return 0;let t=Math.pow(e/1e4,Xe);return Math.pow((He+Pe*t)/(1+$e*t),jf)},Ao=(e=0)=>Math.max(e*203,0),Ff=({x:e,y:t,z:o,alpha:n})=>{e=Ao(e),t=Ao(t),o=Ao(o);let r=1.15*e-.15*o,a=.66*t+.34*e,i=qo(.41478972*r+.579999*a+.014648*o),f=qo(-.20151*r+1.120649*a+.0531008*o),u=qo(-.0166008*r+.2648*a+.6684799*o),p=(i+f)/2,m={mode:"jab",j:.44*p/(1-.56*p)-Jf,a:3.524*i-4.066708*f+.542708*u,b:.199076*i+1.096799*f-1.295875*u};return n!==void 0&&(m.alpha=n),m},St=Ff});var Zf,An,Eo,jo,Yf,Xt,Jo=l(()=>{"use strict";it();Zf=134.03437499999998,An=16295499532821565e-27,Eo=e=>{if(e<0)return 0;let t=Math.pow(e,1/Zf);return 1e4*Math.pow((He-t)/($e*t-Pe),1/Xe)},jo=e=>e/203,Yf=({j:e,a:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=(e+An)/(.44+.56*(e+An)),a=Eo(r+.13860504*t+.058047316*o),i=Eo(r-.13860504*t-.058047316*o),f=Eo(r-.096019242*t-.8118919*o),u={mode:"xyz65",x:jo(1.661373024652174*a-.914523081304348*i+.23136208173913045*f),y:jo(-.3250758611844533*a+1.571847026732543*i-.21825383453227928*f),z:jo(-.090982811*a-.31272829*i+1.5227666*f)};return n!==void 0&&(u.alpha=n),u},Xt=Yf});var Bf,Ht,Fo=l(()=>{"use strict";Do();ne();Bf=e=>{let t=St(I(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Ht=Bf});var Wf,Pt,Zo=l(()=>{"use strict";ae();Jo();Wf=e=>O(Xt(e)),Pt=Wf});var Gf,Dn,En=l(()=>{"use strict";Do();Jo();Fo();Zo();S();X();Gf={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:Ht,xyz65:St},toMode:{rgb:Pt,xyz65:Xt},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:s,a:s,b:s,alpha:{use:s,fixup:v}}},Dn=Gf});var Vf,Yo,jn=l(()=>{"use strict";J();Vf=({j:e,a:t,b:o,alpha:n})=>{t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.sqrt(t*t+o*o),a={mode:"jch",j:e,c:r};return r&&(a.h=k(Math.atan2(o,t)*180/Math.PI)),n!==void 0&&(a.alpha=n),a},Yo=Vf});var Uf,Bo,Jn=l(()=>{"use strict";Uf=({j:e,c:t,h:o,alpha:n})=>{o===void 0&&(o=0);let r={mode:"jab",j:e,a:t?t*Math.cos(o/180*Math.PI):0,b:t?t*Math.sin(o/180*Math.PI):0};return n!==void 0&&(r.alpha=n),r},Bo=Uf});var Kf,Fn,Zn=l(()=>{"use strict";jn();Jn();Zo();Fo();B();X();S();W();G();Kf={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:Bo,rgb:e=>Pt(Bo(e))},fromMode:{rgb:e=>Yo(Ht(e)),jab:Yo},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:s,fixup:$},c:s,j:s,alpha:{use:s,fixup:v}},difference:{h:fe},average:{h:C}},Fn=Kf});var ue,Ce,ft=l(()=>{"use strict";ue=Math.pow(29,3)/Math.pow(3,3),Ce=Math.pow(6,3)/Math.pow(29,3)});var Wo,Qf,Ne,$t=l(()=>{"use strict";ft();ye();Wo=e=>Math.pow(e,3)>Ce?Math.pow(e,3):(116*e-16)/ue,Qf=({l:e,a:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=(e+16)/116,a=t/500+r,i=r-o/200,f={mode:"xyz50",x:Wo(a)*L.X,y:Wo(r)*L.Y,z:Wo(i)*L.Z};return n!==void 0&&(f.alpha=n),f},Ne=Qf});var el,V,Ie=l(()=>{"use strict";ve();el=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=j({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*o,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*o,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*o});return n!==void 0&&(r.alpha=n),r},V=el});var tl,Ct,Go=l(()=>{"use strict";$t();Ie();tl=e=>V(Ne(e)),Ct=tl});var ol,U,Oe=l(()=>{"use strict";xe();ol=e=>{let{r:t,g:o,b:n,alpha:r}=E(e),a={mode:"xyz50",x:.436065742824811*t+.3851514688337912*o+.14307845442264197*n,y:.22249319175623702*t+.7168870538238823*o+.06061979053616537*n,z:.013923904500943465*t+.09708128566574634*o+.7140993584005155*n};return r!==void 0&&(a.alpha=r),a},U=ol});var Vo,rl,qe,Nt=l(()=>{"use strict";ft();ye();Vo=e=>e>Ce?Math.cbrt(e):(ue*e+16)/116,rl=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Vo(e/L.X),a=Vo(t/L.Y),i=Vo(o/L.Z),f={mode:"lab",l:116*a-16,a:500*(r-a),b:200*(a-i)};return n!==void 0&&(f.alpha=n),f},qe=rl});var nl,It,Uo=l(()=>{"use strict";Oe();Nt();nl=e=>{let t=qe(U(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},It=nl});function al(e,t){if(!t||t[0]!=="lab")return;let o={mode:"lab"},[,n,r,a,i]=t;if(!(n.type===d.Hue||r.type===d.Hue||a.type===d.Hue))return n.type!==d.None&&(o.l=Math.min(Math.max(0,n.value),100)),r.type!==d.None&&(o.a=r.type===d.Number?r.value:r.value*125/100),a.type!==d.None&&(o.b=a.type===d.Number?a.value:a.value*125/100),i.type!==d.None&&(o.alpha=Math.min(1,Math.max(0,i.type===d.Number?i.value:i.value/100))),o}var Yn,Bn=l(()=>{"use strict";Q();Yn=al});var il,Ae,Ot=l(()=>{"use strict";Go();$t();Uo();Nt();Bn();S();X();il={mode:"lab",toMode:{xyz50:Ne,rgb:Ct},fromMode:{xyz50:qe,rgb:It},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Yn],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:s,a:s,b:s,alpha:{use:s,fixup:v}}},Ae=il});var fl,Wn,Gn=l(()=>{"use strict";Qe();go();et();vo();Ot();fl={...Ae,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:Tt,rgb:de},fromMode:{xyz65:_t,rgb:se},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}},Wn=fl});function ll(e,t){if(!t||t[0]!=="lch")return;let o={mode:"lch"},[,n,r,a,i]=t;if(n.type!==d.None){if(n.type===d.Hue)return;o.l=Math.min(Math.max(0,n.value),100)}if(r.type!==d.None&&(o.c=Math.max(0,r.type===d.Number?r.value:r.value*150/100)),a.type!==d.None){if(a.type===d.Percentage)return;o.h=a.value}return i.type!==d.None&&(o.alpha=Math.min(1,Math.max(0,i.type===d.Number?i.value:i.value/100))),o}var Vn,Un=l(()=>{"use strict";Q();Vn=ll});var dl,De,qt=l(()=>{"use strict";ze();Le();Go();Uo();Un();B();X();S();W();G();dl={mode:"lch",toMode:{lab:A,rgb:e=>Ct(A(e))},fromMode:{rgb:e=>q(It(e)),lab:q},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[Vn],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:s,fixup:$},c:s,l:s,alpha:{use:s,fixup:v}},difference:{h:fe},average:{h:C}},De=dl});var sl,Kn,Qn=l(()=>{"use strict";ze();Le();Qe();et();qt();sl={...De,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>A(e,"lab65"),rgb:e=>de(A(e,"lab65"))},fromMode:{rgb:e=>q(se(e),"lch65"),lab65:e=>q(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},Kn=sl});var ul,Ko,ea=l(()=>{"use strict";J();ul=({l:e,u:t,v:o,alpha:n})=>{t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.sqrt(t*t+o*o),a={mode:"lchuv",l:e,c:r};return r&&(a.h=k(Math.atan2(o,t)*180/Math.PI)),n!==void 0&&(a.alpha=n),a},Ko=ul});var pl,Qo,ta=l(()=>{"use strict";pl=({l:e,c:t,h:o,alpha:n})=>{o===void 0&&(o=0);let r={mode:"luv",l:e,u:t?t*Math.cos(o/180*Math.PI):0,v:t?t*Math.sin(o/180*Math.PI):0};return n!==void 0&&(r.alpha=n),r},Qo=pl});var oa,ra,ml,cl,hl,bl,lt,er=l(()=>{"use strict";ft();ye();oa=(e,t,o)=>4*e/(e+15*t+3*o),ra=(e,t,o)=>9*t/(e+15*t+3*o),ml=oa(L.X,L.Y,L.Z),cl=ra(L.X,L.Y,L.Z),hl=e=>e<=Ce?ue*e:116*Math.cbrt(e)-16,bl=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=hl(t/L.Y),a=oa(e,t,o),i=ra(e,t,o);!isFinite(a)||!isFinite(i)?r=a=i=0:(a=13*r*(a-ml),i=13*r*(i-cl));let f={mode:"luv",l:r,u:a,v:i};return n!==void 0&&(f.alpha=n),f},lt=bl});var gl,xl,vl,yl,Ml,dt,tr=l(()=>{"use strict";ft();ye();gl=(e,t,o)=>4*e/(e+15*t+3*o),xl=(e,t,o)=>9*t/(e+15*t+3*o),vl=gl(L.X,L.Y,L.Z),yl=xl(L.X,L.Y,L.Z),Ml=({l:e,u:t,v:o,alpha:n})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};t===void 0&&(t=0),o===void 0&&(o=0);let r=t/(13*e)+vl,a=o/(13*e)+yl,i=L.Y*(e<=8?e/ue:Math.pow((e+16)/116,3)),f=i*(9*r)/(4*a),u=i*(12-3*r-20*a)/(4*a),p={mode:"xyz50",x:f,y:i,z:u};return n!==void 0&&(p.alpha=n),p},dt=Ml});var Tl,_l,kl,na,aa=l(()=>{"use strict";ea();ta();er();tr();Ie();Oe();B();X();S();W();G();Tl=e=>Ko(lt(U(e))),_l=e=>V(dt(Qo(e))),kl={mode:"lchuv",toMode:{luv:Qo,rgb:_l},fromMode:{rgb:Tl,luv:Ko},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:s,fixup:$},c:s,l:s,alpha:{use:s,fixup:v}},difference:{h:fe},average:{h:C}},na=kl});var wl,ia,fa=l(()=>{"use strict";ge();xe();ve();wl={...D,mode:"lrgb",toMode:{rgb:j},fromMode:{rgb:E},parse:["srgb-linear"],serialize:"srgb-linear"},ia=wl});var zl,la,da=l(()=>{"use strict";er();tr();Ie();Oe();S();X();zl={mode:"luv",toMode:{xyz50:dt,rgb:e=>V(dt(e))},fromMode:{xyz50:lt,rgb:e=>lt(U(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:s,u:s,v:s,alpha:{use:s,fixup:v}}},la=zl});var Ll,At,or=l(()=>{"use strict";Ll=({r:e,g:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*o),a=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*o),i=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*o),f={mode:"oklab",l:.210454268309314*r+.7936177747023054*a-.0040720430116193*i,a:1.9779985324311684*r-2.42859224204858*a+.450593709617411*i,b:.0259040424655478*r+.7827717124575296*a-.8086757549230774*i};return n!==void 0&&(f.alpha=n),f},At=Ll});var Rl,pe,st=l(()=>{"use strict";xe();or();Rl=e=>{let t=At(E(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},pe=Rl});var Sl,K,Ee=l(()=>{"use strict";Sl=({l:e,a:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.pow(e+.3963377773761749*t+.2158037573099136*o,3),a=Math.pow(e-.1055613458156586*t-.0638541728258133*o,3),i=Math.pow(e-.0894841775298119*t-1.2914855480194092*o,3),f={mode:"lrgb",r:4.076741636075957*r-3.3077115392580616*a+.2309699031821044*i,g:-1.2684379732850317*r+2.6097573492876887*a-.3413193760026573*i,b:-.0041960761386756*r-.7034186179359362*a+1.7076146940746117*i};return n!==void 0&&(f.alpha=n),f},K=Sl});var Xl,me,ut=l(()=>{"use strict";ve();Ee();Xl=e=>j(K(e)),me=Xl});function pt(e){let n=1.170873786407767;return .5*(n*e-.206+Math.sqrt((n*e-.206)*(n*e-.206)+4*.03*n*e))}function Te(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function Hl(e,t){let o,n,r,a,i,f,u,p;-1.88170328*e-.80936493*t>1?(o=1.19086277,n=1.76576728,r=.59662641,a=.75515197,i=.56771245,f=4.0767416621,u=-3.3077115913,p=.2309699292):1.81444104*e-1.19445276*t>1?(o=.73956515,n=-.45954404,r=.08285427,a=.1254107,i=.14503204,f=-1.2684380046,u=2.6097574011,p=-.3413193965):(o=1.35733652,n=-.00915799,r=-1.1513021,a=-.50559606,i=.00692167,f=-.0041960863,u=-.7034186147,p=1.707614701);let m=o+n*e+r*t+a*e*e+i*e*t,b=.3963377774*e+.2158037573*t,h=-.1055613458*e-.0638541728*t,c=-.0894841775*e-1.291485548*t;{let x=1+m*b,T=1+m*h,_=1+m*c,R=x*x*x,P=T*T*T,F=_*_*_,te=3*b*x*x,oe=3*h*T*T,Je=3*c*_*_,Fe=6*b*b*x,Ze=6*h*h*T,Ye=6*c*c*_,ke=f*R+u*P+p*F,ce=f*te+u*oe+p*Je,Be=f*Fe+u*Ze+p*Ye;m=m-ke*ce/(ce*ce-.5*ke*Be)}return m}function rr(e,t){let o=Hl(e,t),n=K({l:1,a:o*e,b:o*t}),r=Math.cbrt(1/Math.max(n.r,n.g,n.b)),a=r*o;return[r,a]}function Pl(e,t,o,n,r,a=null){a||(a=rr(e,t));let i;if((o-r)*a[1]-(a[0]-r)*n<=0)i=a[1]*r/(n*a[0]+a[1]*(r-o));else{i=a[1]*(r-1)/(n*(a[0]-1)+a[1]*(r-o));{let f=o-r,u=n,p=.3963377774*e+.2158037573*t,m=-.1055613458*e-.0638541728*t,b=-.0894841775*e-1.291485548*t,h=f+u*p,c=f+u*m,x=f+u*b;{let T=r*(1-i)+i*o,_=i*n,R=T+_*p,P=T+_*m,F=T+_*b,te=R*R*R,oe=P*P*P,Je=F*F*F,Fe=3*h*R*R,Ze=3*c*P*P,Ye=3*x*F*F,ke=6*h*h*R,ce=6*c*c*P,Be=6*x*x*F,yr=4.0767416621*te-3.3077115913*oe+.2309699292*Je-1,Gt=4.0767416621*Fe-3.3077115913*Ze+.2309699292*Ye,Hi=4.0767416621*ke-3.3077115913*ce+.2309699292*Be,Mr=Gt/(Gt*Gt-.5*yr*Hi),Vt=-yr*Mr,Tr=-1.2684380046*te+2.6097574011*oe-.3413193965*Je-1,Ut=-1.2684380046*Fe+2.6097574011*Ze-.3413193965*Ye,Pi=-1.2684380046*ke+2.6097574011*ce-.3413193965*Be,_r=Ut/(Ut*Ut-.5*Tr*Pi),Kt=-Tr*_r,kr=-.0041960863*te-.7034186147*oe+1.707614701*Je-1,Qt=-.0041960863*Fe-.7034186147*Ze+1.707614701*Ye,$i=-.0041960863*ke-.7034186147*ce+1.707614701*Be,wr=Qt/(Qt*Qt-.5*kr*$i),eo=-kr*wr;Vt=Mr>=0?Vt:1e6,Kt=_r>=0?Kt:1e6,eo=wr>=0?eo:1e6,i+=Math.min(Vt,Math.min(Kt,eo))}}}return i}function mt(e,t,o=null){o||(o=rr(e,t));let n=o[0],r=o[1];return[r/n,r/(1-n)]}function Dt(e,t,o){let n=rr(t,o),r=Pl(t,o,e,1,e,n),a=mt(t,o,n),i=.11516993+1/(7.4477897+4.1590124*o+t*(-2.19557347+1.75198401*o+t*(-2.13704948-10.02301043*o+t*(-4.24894561+5.38770819*o+4.69891013*t)))),f=.11239642+1/(1.6132032-.68124379*o+t*(.40370612+.90148123*o+t*(-.27087943+.6122399*o+t*(.00299215-.45399568*o-.14661872*t)))),u=r/Math.min(e*a[0],(1-e)*a[1]),p=e*i,m=(1-e)*f,b=.9*u*Math.sqrt(Math.sqrt(1/(1/(p*p*p*p)+1/(m*m*m*m))));return p=e*.4,m=(1-e)*.8,[Math.sqrt(1/(1/(p*p)+1/(m*m))),b,r]}var ct=l(()=>{"use strict";Ee()});function Et(e){let t=e.l!==void 0?e.l:0,o=e.a!==void 0?e.a:0,n=e.b!==void 0?e.b:0,r={mode:"okhsl",l:pt(t)};e.alpha!==void 0&&(r.alpha=e.alpha);let a=Math.sqrt(o*o+n*n);if(!a)return r.s=0,r;let[i,f,u]=Dt(t,o/a,n/a),p;if(a<f){let m=0,b=.8*i,h=1-b/f;p=(a-m)/(b+h*(a-m))*.8}else{let m=f,b=.2*f*f*1.25*1.25/i,h=1-b/(u-f);p=.8+.2*((a-m)/(b+h*(a-m)))}return p&&(r.s=p,r.h=k(Math.atan2(n,o)*180/Math.PI)),r}var sa=l(()=>{"use strict";J();ct()});function jt(e){let t=e.h!==void 0?e.h:0,o=e.s!==void 0?e.s:0,n=e.l!==void 0?e.l:0,r={mode:"oklab",l:Te(n)};if(e.alpha!==void 0&&(r.alpha=e.alpha),!o||n===1)return r.a=r.b=0,r;let a=Math.cos(t/180*Math.PI),i=Math.sin(t/180*Math.PI),[f,u,p]=Dt(r.l,a,i),m,b,h,c;o<.8?(m=1.25*o,b=0,h=.8*f,c=1-h/u):(m=5*(o-.8),b=u,h=.2*u*u*1.25*1.25/f,c=1-h/(p-u));let x=b+m*h/(1-c*m);return r.a=x*a,r.b=x*i,r}var ua=l(()=>{"use strict";ct()});var $l,pa,ma=l(()=>{"use strict";st();ut();sa();ua();Ro();$l={...wt,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:Et,rgb:e=>Et(pe(e))},toMode:{oklab:jt,rgb:e=>me(jt(e))}},pa=$l});function Jt(e){let t=e.l!==void 0?e.l:0,o=e.a!==void 0?e.a:0,n=e.b!==void 0?e.b:0,r=Math.sqrt(o*o+n*n),a=r?o/r:1,i=r?n/r:1,[f,u]=mt(a,i),p=.5,m=1-p/f,b=u/(r+t*u),h=b*t,c=b*r,x=Te(h),T=c*x/h,_=K({l:x,a:a*T,b:i*T}),R=Math.cbrt(1/Math.max(_.r,_.g,_.b,0));t=t/R,r=r/R*pt(t)/t,t=pt(t);let P={mode:"okhsv",s:r?(p+u)*c/(u*p+u*m*c):0,v:t?t/h:0};return P.s&&(P.h=k(Math.atan2(n,o)*180/Math.PI)),e.alpha!==void 0&&(P.alpha=e.alpha),P}var ca=l(()=>{"use strict";J();Ee();ct()});function Ft(e){let t={mode:"oklab"};e.alpha!==void 0&&(t.alpha=e.alpha);let o=e.h!==void 0?e.h:0,n=e.s!==void 0?e.s:0,r=e.v!==void 0?e.v:0,a=Math.cos(o/180*Math.PI),i=Math.sin(o/180*Math.PI),[f,u]=mt(a,i),p=.5,m=1-p/f,b=1-n*p/(p+u-u*m*n),h=n*u*p/(p+u-u*m*n),c=Te(b),x=h*c/b,T=K({l:c,a:a*x,b:i*x}),_=Math.cbrt(1/Math.max(T.r,T.g,T.b,0)),R=Te(r*b),P=h*R/b;return t.l=R*_,t.a=P*a*_,t.b=P*i*_,t}var ha=l(()=>{"use strict";Ee();ct()});var Cl,ba,ga=l(()=>{"use strict";st();ut();ca();ha();Ho();Cl={...zt,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:Jt,rgb:e=>Jt(pe(e))},toMode:{oklab:Ft,rgb:e=>me(Ft(e))}},ba=Cl});function Nl(e,t){if(!t||t[0]!=="oklab")return;let o={mode:"oklab"},[,n,r,a,i]=t;if(!(n.type===d.Hue||r.type===d.Hue||a.type===d.Hue))return n.type!==d.None&&(o.l=Math.min(Math.max(0,n.type===d.Number?n.value:n.value/100),1)),r.type!==d.None&&(o.a=r.type===d.Number?r.value:r.value*.4/100),a.type!==d.None&&(o.b=a.type===d.Number?a.value:a.value*.4/100),i.type!==d.None&&(o.alpha=Math.min(1,Math.max(0,i.type===d.Number?i.value:i.value/100))),o}var xa,va=l(()=>{"use strict";Q();xa=Nl});var Il,ya,Ma=l(()=>{"use strict";Ee();or();st();ut();va();Ot();Il={...Ae,mode:"oklab",toMode:{lrgb:K,rgb:me},fromMode:{lrgb:At,rgb:pe},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[xa],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`},ya=Il});function Ol(e,t){if(!t||t[0]!=="oklch")return;let o={mode:"oklch"},[,n,r,a,i]=t;if(n.type!==d.None){if(n.type===d.Hue)return;o.l=Math.min(Math.max(0,n.type===d.Number?n.value:n.value/100),1)}if(r.type!==d.None&&(o.c=Math.max(0,r.type===d.Number?r.value:r.value*.4/100)),a.type!==d.None){if(a.type===d.Percentage)return;o.h=a.value}return i.type!==d.None&&(o.alpha=Math.min(1,Math.max(0,i.type===d.Number?i.value:i.value/100))),o}var Ta,_a=l(()=>{"use strict";Q();Ta=Ol});var ql,ka,wa=l(()=>{"use strict";qt();ze();Le();ut();st();_a();ql={...De,mode:"oklch",toMode:{oklab:e=>A(e,"oklab"),rgb:e=>me(A(e,"oklab"))},fromMode:{rgb:e=>q(pe(e),"oklch"),oklab:e=>q(e,"oklch")},parse:[Ta],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},ka=ql});var Al,nr,za=l(()=>{"use strict";xe();Al=e=>{let{r:t,g:o,b:n,alpha:r}=E(e),a={mode:"xyz65",x:.486570948648216*t+.265667693169093*o+.1982172852343625*n,y:.2289745640697487*t+.6917385218365062*o+.079286914093745*n,z:0*t+.0451133818589026*o+1.043944368900976*n};return r!==void 0&&(a.alpha=r),a},nr=Al});var Dl,ar,La=l(()=>{"use strict";ve();Dl=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=j({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*o,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*o,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*o},"p3");return n!==void 0&&(r.alpha=n),r},ar=Dl});var El,Ra,Sa=l(()=>{"use strict";ge();za();La();ne();ae();El={...D,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>ar(I(e)),xyz65:ar},toMode:{rgb:e=>O(nr(e)),xyz65:nr}},Ra=El});var ir,jl,fr,Xa=l(()=>{"use strict";ir=e=>{let t=Math.abs(e);return t>=.001953125?Math.sign(e)*Math.pow(t,.5555555555555556):16*e},jl=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"prophoto",r:ir(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*o),g:ir(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*o),b:ir(e*0+t*0+1.2119675456389452*o)};return n!==void 0&&(r.alpha=n),r},fr=jl});var lr,Jl,dr,Ha=l(()=>{"use strict";lr=(e=0)=>{let t=Math.abs(e);return t>=.03125?Math.sign(e)*Math.pow(t,1.8):e/16},Jl=e=>{let t=lr(e.r),o=lr(e.g),n=lr(e.b),r={mode:"xyz50",x:.7977666449006423*t+.1351812974005331*o+.0313477341283922*n,y:.2880748288194013*t+.7118352342418731*o+899369387256e-16*n,z:0*t+0*o+.8251046025104602*n};return e.alpha!==void 0&&(r.alpha=e.alpha),r},dr=Jl});var Fl,Pa,$a=l(()=>{"use strict";ge();Xa();Ha();Ie();Oe();Fl={...D,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:fr,rgb:e=>fr(U(e))},toMode:{xyz50:dr,rgb:e=>V(dr(e))}},Pa=Fl});var Ca,Zl,sr,Yl,ur,Na=l(()=>{"use strict";Ca=1.09929682680944,Zl=.018053968510807,sr=e=>{let t=Math.abs(e);return t>Zl?(Math.sign(e)||1)*(Ca*Math.pow(t,.45)-(Ca-1)):4.5*e},Yl=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"rec2020",r:sr(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*o),g:sr(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*o),b:sr(e*.0176398574453108-t*.0427706132578085+.9421031212354739*o)};return n!==void 0&&(r.alpha=n),r},ur=Yl});var Ia,Bl,pr,Wl,mr,Oa=l(()=>{"use strict";Ia=1.09929682680944,Bl=.018053968510807,pr=(e=0)=>{let t=Math.abs(e);return t<Bl*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((t+Ia-1)/Ia,1/.45)},Wl=e=>{let t=pr(e.r),o=pr(e.g),n=pr(e.b),r={mode:"xyz65",x:.6369580483012911*t+.1446169035862083*o+.1688809751641721*n,y:.262700212011267*t+.6779980715188708*o+.059301716469862*n,z:0*t+.0280726930490874*o+1.0609850577107909*n};return e.alpha!==void 0&&(r.alpha=e.alpha),r},mr=Wl});var Gl,qa,Aa=l(()=>{"use strict";ge();Na();Oa();ne();ae();Gl={...D,mode:"rec2020",fromMode:{xyz65:ur,rgb:e=>ur(I(e))},toMode:{xyz65:mr,rgb:e=>O(mr(e))},parse:["rec2020"],serialize:"rec2020"},qa=Gl});var ee,Zt,cr=l(()=>{"use strict";ee=.0037930732552754493,Zt=Math.cbrt(ee)});var hr,Vl,Da,Ea=l(()=>{"use strict";xe();cr();hr=e=>Math.cbrt(e)-Zt,Vl=e=>{let{r:t,g:o,b:n,alpha:r}=E(e),a=hr(.3*t+.622*o+.078*n+ee),i=hr(.23*t+.692*o+.078*n+ee),f=hr(.2434226892454782*t+.2047674442449682*o+.5518098665095535*n+ee),u={mode:"xyb",x:(a-i)/2,y:(a+i)/2,b:f-(a+i)/2};return r!==void 0&&(u.alpha=r),u},Da=Vl});var br,Ul,ja,Ja=l(()=>{"use strict";ve();cr();br=e=>Math.pow(e+Zt,3),Ul=({x:e,y:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=br(e+t)-ee,a=br(t-e)-ee,i=br(o+t)-ee,f=j({r:11.031566904639861*r-9.866943908131562*a-.16462299650829934*i,g:-3.2541473810744237*r+4.418770377582723*a-.16462299650829934*i,b:-3.6588512867136815*r+2.7129230459360922*a+1.9459282407775895*i});return n!==void 0&&(f.alpha=n),f},ja=Ul});var Kl,Fa,Za=l(()=>{"use strict";S();X();Ea();Ja();Kl={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:ja},fromMode:{rgb:Da},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:s,y:s,b:s,alpha:{use:s,fixup:v}}},Fa=Kl});var Ql,Ya,Ba=l(()=>{"use strict";Ie();Nt();Oe();$t();S();X();Ql={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:V,lab:qe},fromMode:{rgb:U,lab:Ne},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:s,y:s,z:s,alpha:{use:s,fixup:v}}},Ya=Ql});var e0,Wa,Ga=l(()=>{"use strict";e0=e=>{let{x:t,y:o,z:n,alpha:r}=e;t===void 0&&(t=0),o===void 0&&(o=0),n===void 0&&(n=0);let a={mode:"xyz50",x:1.0479298208405488*t+.0229467933410191*o-.0501922295431356*n,y:.0296278156881593*t+.990434484573249*o-.0170738250293851*n,z:-.0092430581525912*t+.0150551448965779*o+.7518742899580008*n};return r!==void 0&&(a.alpha=r),a},Wa=e0});var t0,Va,Ua=l(()=>{"use strict";t0=e=>{let{x:t,y:o,z:n,alpha:r}=e;t===void 0&&(t=0),o===void 0&&(o=0),n===void 0&&(n=0);let a={mode:"xyz65",x:.9554734527042182*t-.0230985368742614*o+.0632593086610217*n,y:-.0283697069632081*t+1.0099954580058226*o+.021041398966943*n,z:.0123140016883199*t-.0205076964334779*o+1.3303659366080753*n};return r!==void 0&&(a.alpha=r),a},Va=t0});var o0,Ka,Qa=l(()=>{"use strict";ae();ne();Ga();Ua();S();X();o0={mode:"xyz65",toMode:{rgb:O,xyz50:Wa},fromMode:{rgb:I,xyz50:Va},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:s,y:s,z:s,alpha:{use:s,fixup:v}}},Ka=o0});var r0,ei,ti=l(()=>{"use strict";r0=({r:e,g:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"yiq",y:.29889531*e+.58662247*t+.11448223*o,i:.59597799*e-.2741761*t-.32180189*o,q:.21147017*e-.52261711*t+.31114694*o};return n!==void 0&&(r.alpha=n),r},ei=r0});var n0,oi,ri=l(()=>{"use strict";n0=({y:e,i:t,q:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"rgb",r:e+.95608445*t+.6208885*o,g:e-.27137664*t-.6486059*o,b:e-1.10561724*t+1.70250126*o};return n!==void 0&&(r.alpha=n),r},oi=n0});var a0,ni,ai=l(()=>{"use strict";ti();ri();S();X();a0={mode:"yiq",toMode:{rgb:oi},fromMode:{rgb:ei},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:s,i:s,q:s,alpha:{use:s,fixup:v}}},ni=a0});var i0,f0,ii,fi=l(()=>{"use strict";i0=(e,t)=>Math.round(e*(t=Math.pow(10,t)))/t,f0=(e=4)=>t=>typeof t=="number"?i0(t,e):t,ii=f0});var oh,l0,gr,d0,rh,li,Yt,di=l(()=>{"use strict";Ve();fi();oh=ii(2),l0=e=>Math.max(0,Math.min(1,e||0)),gr=e=>Math.round(l0(e)*255),d0=Y("rgb"),rh=Y("hsl"),li=e=>{if(e===void 0)return;let t=gr(e.r),o=gr(e.g),n=gr(e.b);return"#"+(1<<24|t<<16|o<<8|n).toString(16).slice(1)},Yt=e=>li(d0(e))});var si,ui,pi,mi=l(()=>{"use strict";Ve();ro();we();si=(e,t="rgb",o=!1)=>{let n=t?be(t).channels:null,r=t?Y(t):Ge;return a=>{let i=r(a);if(!i)return;let f=(n||be(i.mode).channels).reduce((p,m)=>{let b=e(i[m],m,i,t);return b!==void 0&&!isNaN(b)&&(p[m]=b),p},{mode:i.mode});if(!o)return f;let u=Ge(a);return u&&u.mode!==f.mode?Y(u.mode)(f):f}},ui=(e,t,o)=>t!=="alpha"?(e||0)*(o.alpha!==void 0?o.alpha:1):e,pi=(e,t,o)=>t!=="alpha"&&o.alpha!==0?(e||0)/(o.alpha!==void 0?o.alpha:1):e});var s0,ci,hi=l(()=>{"use strict";s0=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let t=1,o,n,r,a;for(;t<e.length;){if(e[t]===void 0){for(n=t,r=e[t-1],o=t;e[o]===void 0;)o++;for(a=(e[o]-r)/(o-t+1);t<o;)e[t]=r+(t+1-n)*a,t++}else e[t]<e[t-1]&&(e[t]=e[t-1]);t++}return e},ci=s0});var u0,bi,gi=l(()=>{"use