'use strict';var chunk6FI7U3TH_cjs=require('../chunk-6FI7U3TH.cjs');require('../chunk-VSMEJU4Z.cjs'),require('../chunk-2KB6V6KD.cjs');var chunkYISEJCI6_cjs=require('../chunk-YISEJCI6.cjs');var d=(b,f,x)=>{b.prototype.toLab=function(t=2){let{l:a,a:r,b:n,alpha:o}=chunk6FI7U3TH_cjs.m(this._rawRgb());return {l:chunkYISEJCI6_cjs.b(a,t),a:chunkYISEJCI6_cjs.b(r,t)||0,b:chunkYISEJCI6_cjs.b(n,t)||0,alpha:o,colorSpace:"lab"}},b.prototype.toLabString=function(t=2){let{l:a,a:r,b:n,alpha:o}=this.toLab(t);return o<1?`lab(${a} ${r} ${n} / ${o})`:`lab(${a} ${r} ${n})`},b.prototype.toXyz=function(t=2){let{x:a,y:r,z:n,alpha:o}=chunk6FI7U3TH_cjs.c(this._rawRgb());return {x:chunkYISEJCI6_cjs.b(a,t),y:chunkYISEJCI6_cjs.b(r,t),z:chunkYISEJCI6_cjs.b(n,t),alpha:o}},b.prototype.toXyzString=function(t=2){let{x:a,y:r,z:n,alpha:o}=this.toXyz(t);return o<1?`color(xyz-d50 ${a} ${r} ${n} / ${o})`:`color(xyz-d50 ${a} ${r} ${n})`},b.prototype.toXyzD65=function(t=2){let{x:a,y:r,z:n,alpha:o}=chunk6FI7U3TH_cjs.a(this._rawRgb());return {x:chunkYISEJCI6_cjs.b(a,t),y:chunkYISEJCI6_cjs.b(r,t),z:chunkYISEJCI6_cjs.b(n,t),alpha:o,colorSpace:"xyz-d65"}},b.prototype.toXyzD65String=function(t=2){let{x:a,y:r,z:n,alpha:o}=this.toXyzD65(t);return o<1?`color(xyz-d65 ${a} ${r} ${n} / ${o})`:`color(xyz-d65 ${a} ${r} ${n})`},b.prototype.mixLab=function(t,a=.5){let r=chunk6FI7U3TH_cjs.m(this._rawRgb()),n=chunk6FI7U3TH_cjs.m(new b(t)._rawRgb()),o=chunkYISEJCI6_cjs.a(a,0,1);return new b(chunk6FI7U3TH_cjs.p({l:r.l*(1-o)+n.l*o,a:r.a*(1-o)+n.a*o,b:r.b*(1-o)+n.b*o,alpha:chunkYISEJCI6_cjs.b(r.alpha*(1-o)+n.alpha*o,3),colorSpace:"lab"}))},b.prototype.delta=function(t="#fff"){return chunkYISEJCI6_cjs.b(chunk6FI7U3TH_cjs.o(chunk6FI7U3TH_cjs.n(this._rawRgb()),chunk6FI7U3TH_cjs.n(new b(t)._rawRgb()))/100,3)},f.push(chunk6FI7U3TH_cjs.r,chunk6FI7U3TH_cjs.s,chunk6FI7U3TH_cjs.h,chunk6FI7U3TH_cjs.g,chunk6FI7U3TH_cjs.i,chunk6FI7U3TH_cjs.f),x.push([chunk6FI7U3TH_cjs.r,"lab"],[chunk6FI7U3TH_cjs.s,"lab"],[chunk6FI7U3TH_cjs.h,"xyz-d65"],[chunk6FI7U3TH_cjs.g,"xyz-d65"],[chunk6FI7U3TH_cjs.i,"xyz"],[chunk6FI7U3TH_cjs.f,"xyz"]);},w=d;module.exports=w;//# sourceMappingURL=lab.cjs.map
//# sourceMappingURL=lab.cjs.map