@tyanxie/paimon-darwin-arm64 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/paimon +1 -1
- package/package.json +1 -1
- package/web/assets/index-B5Yub30J.css +1 -0
- package/web/assets/index-Dd-YiX5e.js +259 -0
- package/web/assets/{index-DsjiosHk.js → index-PCm-hUF1.js} +1 -1
- package/web/assets/{markdown-OowzRXxA.js → markdown-Bc9cX4Ha.js} +2 -2
- package/web/assets/{modalFeatures-BeDlpc4S.js → modalFeatures-D6PlDlrr.js} +1 -1
- package/web/assets/{modelConfig-BWIG2U9q.js → modelConfig-BvuGgERB.js} +1 -1
- package/web/index.html +3 -3
- package/web/assets/index-BLBkIpT7.css +0 -1
- package/web/assets/index-xz7ziSVU.js +0 -264
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as _r,s as Zt,t as Ut,C as Kt,a as Vt}from"./modelConfig-BWIG2U9q.js";import{a as W,j as I}from"./framework-gzBbjyR4.js";import{i as Qt,g as Jt}from"./isObjectLike-DlmVz5ty.js";import"./markdown-OowzRXxA.js";import"./index-xz7ziSVU.js";function Lr(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}const en=new Map([["Æ","Ae"],["Ð","D"],["Ø","O"],["Þ","Th"],["ß","ss"],["æ","ae"],["ð","d"],["ø","o"],["þ","th"],["Đ","D"],["đ","d"],["Ħ","H"],["ħ","h"],["ı","i"],["IJ","IJ"],["ij","ij"],["ĸ","k"],["Ŀ","L"],["ŀ","l"],["Ł","L"],["ł","l"],["ʼn","'n"],["Ŋ","N"],["ŋ","n"],["Œ","Oe"],["œ","oe"],["Ŧ","T"],["ŧ","t"],["ſ","s"]]);function rn(e){e=e.normalize("NFD");let r="";for(let t=0;t<e.length;t++){const n=e[t];n>="̀"&&n<="ͯ"||n>="⃐"&&n<=""||n>="︠"&&n<="︯"||(r+=en.get(n)??n)}return r}var L0={},Fe;function tn(){if(Fe)return L0;Fe=1,Object.defineProperty(L0,"__esModule",{value:!0}),L0.styleq=void 0;var e=new WeakMap,r="$$css";function t(a){var o,f,c;return a!=null&&(o=a.disableCache===!0,f=a.disableMix===!0,c=a.transform),function(){for(var i=[],b="",l=null,g="",m=o?null:e,k=new Array(arguments.length),y=0;y<arguments.length;y++)k[y]=arguments[y];for(;k.length>0;){var p=k.pop();if(!(p==null||p===!1)){if(Array.isArray(p)){for(var h=0;h<p.length;h++)k.push(p[h]);continue}var A=c!=null?c(p):p;if(A.$$css!=null){var C="";if(m!=null&&m.has(A)){var B=m.get(A);B!=null&&(C=B[0],g=B[2],i.push.apply(i,B[1]),m=B[3])}else{var j=[];for(var N in A){var x=A[N];if(N===r){var d=A[N];d!==!0&&(g=g?d+"; "+g:d);continue}typeof x=="string"||x===null?i.includes(N)||(i.push(N),m!=null&&j.push(N),typeof x=="string"&&(C+=C?" "+x:x)):console.error("styleq: ".concat(N," typeof ").concat(String(x),' is not "string" or "null".'))}if(m!=null){var w=new WeakMap;m.set(A,[C,j,g,w]),m=w}}C&&(b=b?C+" "+b:C)}else if(f)l==null&&(l={}),l=Object.assign({},A,l);else{var v=null;for(var $ in A){var T=A[$];T!==void 0&&(i.includes($)||(T!=null&&(l==null&&(l={}),v==null&&(v={}),v[$]=T),i.push($),m=null))}v!=null&&(l=Object.assign(v,l))}}}var S=[b,l,g];return S}}var n=L0.styleq=t();return n.factory=t,L0}var nn=tn();function an(...e){const[r,t,n]=nn.styleq(e),a={};return r!=null&&r!==""&&(a.className=r),t!=null&&Object.keys(t).length>0&&(a.style=t),n!=null&&n!==""&&(a["data-style-src"]=n),a}const on=(e,r,t)=>{const n=an(e);return{className:_r(n.className,r),style:n.style||t?{...n.style,...t}:void 0}},Er=W.createContext({});W.memo(({children:e,config:r={}})=>I.jsx(Er,{value:r,children:e}));const fn=()=>W.use(Er);function cn(e){return typeof e=="symbol"||e instanceof Symbol}function re(e){return e==null?"":Tr(e)}function Tr(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(Tr).join(",");if(cn(e))return e.toString();const r=e+"";return r==="0"&&Object.is(Number(e),-0)?"-0":r}function sn(e){return typeof e=="number"||Qt(e)&&Jt(e)==="[object Number]"}function bn(e){return Lr(re(e))}function ln(e){return rn(re(e))}const gn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\xd7\\xf7",m0="\\p{Lu}",Br="\\p{Ll}",Nr="(?:[\\p{Lm}\\p{Lo}]\\p{M}*)",E0="\\d",De="(?:['’](?:d|ll|m|re|s|t|ve))?",qe="(?:['’](?:D|LL|M|RE|S|T|VE))?",We=`[\\p{Z}\\p{P}${gn}]`,dn=`(?:${m0}|${Nr})`,Ye=`(?:${Br}|${Nr})`;let se;function un(){return se==null&&(se=RegExp([`${m0}?${Br}+${De}(?=${We}|${m0}|$)`,`${dn}+${qe}(?=${We}|${m0}${Ye}|$)`,`${m0}?${Ye}+${De}`,`${m0}+${qe}`,`${E0}*(?:1ST|2ND|3RD|(?![123])${E0}TH)(?=\\b|[a-z_])`,`${E0}*(?:1st|2nd|3rd|(?![123])${E0}th)(?=\\b|[A-Z_])`,`${E0}+`,"\\p{Emoji_Presentation}","\\p{Extended_Pictographic}"].join("|"),"gu")),se}function hn(e,r,t){const n=re(e);return r===void 0&&(r=un()),typeof r=="number"&&(r=r.toString()),Array.from(n.match(r)??[]).filter(a=>a!=="")}function pn(e){return typeof e!="string"&&(e=re(e)),e.replace(/['\u2019]/g,"")}function mn(e){const r=hn(pn(ln(e)));if(r.length===0)return"";const[t,...n]=r;return`${t.toLowerCase()}${n.map(a=>Lr(a)).join("")}`}const xn=e=>{if(sn(e))return{size:e};let r,t;switch(e){case"large":r=24,t=2;break;case"middle":r=20,t=2;break;case"small":r=14,t=2;break;default:e?(r=(e==null?void 0:e.size)||24,t=(e==null?void 0:e.strokeWidth)||2):(r="1em",t=2)}return{size:r,strokeWidth:t}},kn=Zt({block:"icon",dataAttributes:["spin"],elements:[]}),Ze={root:{kGNEyG:"lb6s0dn4",k1xSpc:"lb3nfvp2",kLWn49:"lb14ju556",kXLuUW:"lb1x7wgjd",$$css:!0},spin:{k44tkh:"lb1q3qbx4",ko0y90:"lba4qsjk",kKVMdj:"lb1fhqo85",kyAemX:"lb1esw782",$$css:!0}},jr=W.memo(({icon:e,size:r,color:t,fill:n="transparent",className:a,focusable:o,spin:f,fillRule:c,fillOpacity:s,ref:i,...b})=>{const{color:l,fill:g,fillOpacity:m,fillRule:k,focusable:y,className:p,size:h,...A}=fn(),{size:C,strokeWidth:B}=W.useMemo(()=>xn(r||h),[r,h]),j=e;return I.jsx("span",{role:"img",...Ut({spin:f}),className:on([Ze.root,f&&Ze.spin],_r(kn(),"anticon",p,a)).className,...A,...b,children:e&&(W.isValidElement(e)?e:I.jsx(j,{color:t||l,fill:n||g,fillOpacity:s||m,fillRule:c||k,focusable:o||y,height:C,ref:i,size:C,strokeWidth:B,width:C}))})});jr.displayName="Icon";const yn={dark:["#190a09","#340b0c","#4b141a","#641f24","#8a3334","#aa3f3e","#b53a3a","#be3738","#d64242","#e95350","#ffa8a0","#ffe1df","#fff8f7"],darkA:["rgba(250, 100, 90, 0.1)","rgba(248, 52, 57, 0.21)","rgba(250, 67, 87, 0.3)","rgba(250, 78, 90, 0.4)","rgba(251, 93, 95, 0.55)","rgba(254, 94, 93, 0.67)","rgba(255, 82, 82, 0.71)","rgba(253, 73, 75, 0.75)","rgba(255, 79, 79, 0.84)","rgba(253, 90, 87, 0.92)","#ffa8a0","#ffe1df","#fff8f7"],light:["#ffffff","#fef8f7","#fff0ee","#ffe7e4","#ffded8","#ffcec5","#ffb9ab","#ff9c88","#ff775c","#f35837","#ce461e","#9b3206","#64260f"],lightA:["rgba(255, 255, 255, 0.01)","rgba(230, 80, 55, 0.04)","rgba(255, 41, 12, 0.07)","rgba(255, 37, 10, 0.11)","rgba(255, 49, 11, 0.16)","rgba(255, 42, 3, 0.23)","rgba(255, 43, 0, 0.33)","rgba(255, 44, 2, 0.47)","rgba(255, 43, 0, 0.64)","rgba(240, 44, 2, 0.79)","#ce461e","#9b3206","#64260f"]},wn={dark:["#060f18","#001a35","#002949","#003961","#005389","#0067a9","#007cc9","#0091eb","#00a2fe","#4cb3ff","#9cdaff","#cfedfd","#f8f9ff"],darkA:["rgba(60, 150, 240, 0.1)","rgba(0, 124, 252, 0.21)","rgba(0, 141, 252, 0.29)","rgba(0, 150, 255, 0.38)","rgba(0, 154, 254, 0.54)","rgba(0, 154, 252, 0.67)","rgba(0, 157, 254, 0.79)","rgba(0, 158, 255, 0.92)","#00a2fe","#4cb3ff","#9cdaff","#cfedfd","#f8f9ff"],light:["#ffffff","#f8f9ff","#edf4ff","#e3edff","#d7e6ff","#c0d9ff","#a0c7ff","#72aeff","#2c91ff","#0076e3","#0060cc","#004ebf","#1b3671"],lightA:["rgba(255, 255, 255, 0.01)","rgba(22, 55, 255, 0.03)","rgba(30, 117, 255, 0.08)","rgba(0, 91, 255, 0.11)","rgba(5, 99, 255, 0.16)","rgba(3, 103, 255, 0.25)","rgba(5, 108, 255, 0.38)","rgba(3, 110, 255, 0.56)","rgba(1, 122, 255, 0.83)","#0076e3","#0060cc","#004ebf","#1b3671"]},$n={dark:["#0a1004","#061f00","#102e00","#1c3f00","#315a09","#3e6f06","#518b03","#67a70a","#71b814","#80c933","#bae48c","#deeec7","#f9faef"],darkA:["rgba(143, 229, 57, 0.07)","rgba(46, 238, 0, 0.13)","rgba(84, 242, 0, 0.19)","rgba(112, 252, 0, 0.25)","rgba(136, 250, 25, 0.36)","rgba(141, 252, 14, 0.44)","rgba(147, 253, 5, 0.55)","rgba(156, 253, 15, 0.66)","rgba(155, 252, 27, 0.73)","rgba(162, 254, 65, 0.79)","#bae48c","#deeec7","#f9faef"],light:["#ffffff","#f8fbf1","#eef6e6","#e1f1d9","#d4eccc","#bde3b6","#a0d89c","#71c87a","#30b556","#00a03f","#00864e","#006342","#00422b"],lightA:["rgba(255, 255, 255, 0.01)","rgba(138, 188, 22, 0.06)","rgba(85, 165, 5, 0.1)","rgba(55, 162, 2, 0.15)","rgba(40, 160, 0, 0.2)","rgba(27, 158, 3, 0.29)","rgba(11, 155, 1, 0.39)","rgba(1, 157, 18, 0.56)","rgba(3, 165, 49, 0.82)","#00a03f","#00864e","#006342","#00422b"]},An={dark:["#150d02","#251700","#3c2200","#512f00","#724600","#8d5700","#ae6e00","#e39a00","#f6aa00","#ffbe45","#ffdd9c","#ffe5b8","#fff8f3"],darkA:["rgba(233, 144, 22, 0.09)","rgba(247, 153, 0, 0.15)","rgba(250, 142, 0, 0.24)","rgba(253, 147, 0, 0.32)","rgba(253, 156, 0, 0.45)","rgba(252, 155, 0, 0.56)","rgba(252, 159, 0, 0.69)","rgba(255, 173, 0, 0.89)","rgba(254, 175, 0, 0.97)","#ffbe45","#ffdd9c","#ffe5b8","#fff8f3"],light:["#ffffff","#fff8f3","#fff2e2","#ffe9cc","#ffe1b3","#ffda9a","#ffd17f","#ffca61","#ffbe2b","#feb400","#d78f00","#6d5200","#4a3600"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 115, 15, 0.05)","rgba(255, 147, 13, 0.12)","rgba(255, 145, 0, 0.2)","rgba(255, 155, 2, 0.3)","rgba(255, 163, 3, 0.4)","rgba(255, 165, 4, 0.51)","rgba(255, 170, 0, 0.62)","rgba(255, 177, 0, 0.83)","#feb400","#d78f00","#6d5200","#4a3600"]},ve={error:yn,info:wn,success:$n,warning:An},Or=new Map,vn=e=>!!e&&Or.has(e),Sn=e=>vn(e)?{...ve,...Or.get(e)}:ve,l0={dark:["#000000","#0d0d0d","#1a1a1a","#202020","#2d2d2d","#444444","#555555","#666666","#6f6f6f","#777777","#aaaaaa","#dddddd","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.06)","rgba(255, 255, 255, 0.10)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.24)","rgba(255, 255, 255, 0.28)","rgba(255, 255, 255, 0.32)","rgba(255, 255, 255, 0.38)","rgba(255, 255, 255, 0.44)","rgba(255, 255, 255, 0.5)","rgba(255, 255, 255, 0.66)","rgba(255, 255, 255, 0.84)","#ffffff"],light:["#ffffff","#f8f8f8","#eeeeee","#e3e3e3","#dddddd","#cccccc","#bbbbbb","#aaaaaa","#999999","#888888","#666666","#333333","#080808"],lightA:["rgba(0, 0, 0, 0.015)","rgba(0, 0, 0, 0.03)","rgba(0, 0, 0, 0.06)","rgba(0, 0, 0, 0.12)","rgba(0, 0, 0, 0.18)","rgba(0, 0, 0, 0.24)","rgba(0, 0, 0, 0.32)","rgba(0, 0, 0, 0.38)","rgba(0, 0, 0, 0.44)","rgba(0, 0, 0, 0.5)","rgba(0, 0, 0, 0.68)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.98)"]},Rr={dark:["#000000","#1c1b1e","#252528","#2f2f32","#3a393d","#454448","#504f53","#5b5a5f","#67666a","#737177","#7f7d83","#bbb9bd","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(233, 225, 250, 0.12)","rgba(231, 231, 250, 0.16)","rgba(235, 235, 250, 0.2)","rgba(242, 237, 254, 0.24)","rgba(238, 234, 248, 0.29)","rgba(242, 239, 252, 0.33)","rgba(239, 237, 250, 0.38)","rgba(245, 243, 252, 0.42)","rgba(245, 240, 253, 0.47)","rgba(244, 240, 252, 0.52)","rgba(253, 250, 255, 0.74)","#ffffff"],light:["#ffffff","#fcf8fb","#edeaed","#dfdcdf","#d1ced2","#c2c0c4","#b4b2b7","#a7a4a9","#99979c","#8c8a90","#7f7d83","#4a494d","#111"],lightA:["rgba(0, 0, 0, 0.015)","rgba(155, 22, 122, 0.03)","rgba(55, 22, 55, 0.09)","rgba(26, 5, 26, 0.14)","rgba(25, 10, 30, 0.2)","rgba(11, 3, 19, 0.25)","rgba(13, 7, 23, 0.31)","rgba(11, 2, 16, 0.36)","rgba(6, 1, 14, 0.41)","rgba(5, 1, 14, 0.46)","rgba(4, 0, 12, 0.51)","rgba(4, 2, 8, 0.72)","rgba(3, 2, 5, 0.9)"]},Ir={dark:["#000000","#1a1c1b","#232624","#2d302e","#383a38","#424542","#4d504d","#585c58","#646763","#70736e","#7c7f79","#b9bab5","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(236, 255, 245, 0.11)","rgba(233, 253, 240, 0.15)","rgba(237, 253, 242, 0.19)","rgba(243, 252, 243, 0.23)","rgba(236, 246, 236, 0.28)","rgba(241, 250, 241, 0.32)","rgba(238, 249, 238, 0.37)","rgba(244, 251, 241, 0.41)","rgba(243, 250, 239, 0.46)","rgba(248, 254, 242, 0.5)","rgba(253, 255, 248, 0.73)","#ffffff"],light:["#ffffff","#faf9f4","#ecebe6","#ddddd7","#cfcfc9","#c0c1bb","#b2b4ae","#a4a6a0","#969993","#898c86","#7c7f79","#484b48","#111"],lightA:["rgba(0, 0, 0, 0.015)","rgba(155, 135, 35, 0.05)","rgba(65, 55, 5, 0.1)","rgba(43, 43, 5, 0.16)","rgba(37, 37, 10, 0.22)","rgba(22, 25, 3, 0.27)","rgba(14, 21, 2, 0.32)","rgba(16, 21, 5, 0.38)","rgba(11, 18, 4, 0.43)","rgba(9, 15, 3, 0.48)","rgba(8, 13, 2, 0.53)","rgba(1, 5, 1, 0.72)","rgba(1, 3, 2, 0.9)"]},Hr={dark:["#000000","#1a1b1c","#232526","#2d2f30","#383a3a","#424545","#4d5050","#585c5c","#636766","#6e7371","#797f7c","#b5bab6","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(236, 246, 255, 0.11)","rgba(233, 246, 253, 0.15)","rgba(237, 248, 253, 0.19)","rgba(243, 252, 252, 0.23)","rgba(236, 246, 246, 0.28)","rgba(241, 250, 250, 0.32)","rgba(238, 249, 249, 0.37)","rgba(241, 251, 248, 0.41)","rgba(239, 250, 246, 0.46)","rgba(242, 254, 248, 0.5)","rgba(248, 255, 250, 0.73)","rgba(255, 255, 255, 1)"],light:["#ffffff","#f5faf4","#e7ece6","#d7ddd7","#c9cfc9","#bbc1bc","#aeb4b0","#a0a6a2","#939996","#868c89","#797f7c","#484b4b","#111111"],lightA:["rgba(0, 0, 0, 0.015)","rgba(55, 155, 35, 0.05)","rgba(15, 65, 5, 0.1)","rgba(5, 43, 5, 0.16)","rgba(10, 37, 10, 0.22)","rgba(3, 25, 6, 0.27)","rgba(2, 21, 9, 0.32)","rgba(5, 21, 10, 0.38)","rgba(4, 18, 11, 0.43)","rgba(3, 15, 9, 0.48)","rgba(2, 13, 7, 0.53)","rgba(1, 5, 5, 0.72)","rgba(1, 2, 3, 0.9)"]},Pr={dark:["#000000","#1c1c18","#262521","#30302b","#3a3a35","#45453f","#505049","#5c5b54","#67675f","#73726a","#7f7e76","#bcbab2","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 218, 0.11)","rgba(253, 247, 220, 0.15)","rgba(253, 253, 226, 0.19)","rgba(252, 252, 230, 0.23)","rgba(246, 246, 225, 0.28)","rgba(250, 250, 228, 0.32)","rgba(249, 246, 227, 0.37)","rgba(251, 251, 232, 0.41)","rgba(250, 248, 230, 0.46)","rgba(254, 252, 236, 0.5)","rgba(254, 251, 241, 0.74)","rgba(255, 252, 245, 0.99)"],light:["#ffffff","#fcf9f3","#edebe4","#dfddd5","#d1cfc7","#c3c1b9","#b5b3ab","#a7a69d","#999890","#8c8b83","#7f7e76","#4b4a44","#111"],lightA:["rgba(0, 0, 0, 0.015)","rgba(195, 135, 15, 0.05)","rgba(91, 73, 10, 0.11)","rgba(67, 55, 8, 0.17)","rgba(46, 37, 0, 0.22)","rgba(41, 34, 5, 0.28)","rgba(31, 25, 0, 0.33)","rgba(29, 27, 4, 0.39)","rgba(23, 21, 3, 0.44)","rgba(20, 18, 2, 0.49)","rgba(18, 16, 1, 0.54)","rgba(12, 10, 2, 0.74)","rgba(6, 6, 1, 0.91)"]},zr={dark:["#000000","#1b1c1d","#242527","#2e2f32","#383a3c","#434547","#4e5052","#595b5e","#64676a","#707276","#7b7e82","#b8babc","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(225, 233, 242, 0.12)","rgba(225, 231, 244, 0.16)","rgba(230, 235, 250, 0.2)","rgba(233, 242, 250, 0.24)","rgba(239, 246, 254, 0.28)","rgba(236, 242, 248, 0.33)","rgba(241, 246, 254, 0.37)","rgba(238, 245, 252, 0.42)","rgba(238, 243, 251, 0.47)","rgba(241, 247, 255, 0.51)","rgba(249, 251, 254, 0.74)","#ffffff"],light:["#ffffff","#f9f9fa","#ebebec","#dcddde","#cecfd0","#bfc1c3","#b1b3b5","#a4a6a8","#96989b","#898b8e","#7b7e82","#484a4d","#111"],lightA:["rgba(0, 0, 0, 0.015)","rgba(55, 55, 88, 0.03)","rgba(5, 5, 17, 0.08)","rgba(5, 12, 19, 0.14)","rgba(10, 15, 20, 0.2)","rgba(9, 17, 24, 0.26)","rgba(3, 10, 16, 0.31)","rgba(2, 8, 13, 0.36)","rgba(5, 10, 17, 0.42)","rgba(4, 8, 15, 0.47)","rgba(1, 7, 15, 0.52)","rgba(1, 4, 8, 0.72)","rgba(2, 3, 4, 0.9)"]},Ue={mauve:Rr,olive:Ir,sage:Hr,sand:Pr,slate:zr},Xr={gray:{dark:["#e6e6e6","#b4b4b4","#8f8f8f","#6b6b6b"],light:["#1f1f1f","#666666","#8a8a8a","#b0b0b0"]},mauve:{dark:["#e9e5ec","#b6b3b9","#908e94","#6c6a70"],light:["#1f1f23","#67656b","#8b898f","#b1afb5"]},olive:{dark:["#e5e7e1","#b2b5af","#8d908b","#696c67"],light:["#1d201c","#646762","#888b85","#aeb1aa"]},sage:{dark:["#e3e7e4","#b0b5b3","#8b908e","#676c6a"],light:["#1b201e","#616765","#868c89","#abb1ae"]},sand:{dark:["#e9e6dc","#b6b4ab","#918f87","#6c6b63"],light:["#1f201a","#67665f","#8b8a82","#b2b0a8"]},slate:{dark:["#e5e6ea","#b3b4b8","#8d8f93","#696b6f"],light:["#1d1f22","#646669","#888a8d","#aeb0b3"]}},{min:Mn,max:Cn}=Math,g0=(e,r=0,t=1)=>Mn(Cn(r,e),t),Ee=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let r=0;r<=3;r++)r<3?((e[r]<0||e[r]>255)&&(e._clipped=!0),e[r]=g0(e[r],0,255)):r===3&&(e[r]=g0(e[r],0,1));return e},Gr={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])Gr[`[object ${e}]`]=e.toLowerCase();function E(e){return Gr[Object.prototype.toString.call(e)]||"object"}const L=(e,r=null)=>e.length>=3?Array.prototype.slice.call(e):E(e[0])=="object"&&r?r.split("").filter(t=>e[0][t]!==void 0).map(t=>e[0][t]):e[0].slice(0),A0=e=>{if(e.length<2)return null;const r=e.length-1;return E(e[r])=="string"?e[r].toLowerCase():null},{PI:te,min:Fr,max:Dr}=Math,U=e=>Math.round(e*100)/100,Se=e=>Math.round(e*100)/100,n0=te*2,ie=te/3,_n=te/180,Ln=180/te;function qr(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const _={format:{},autodetect:[]};class u{constructor(...r){const t=this;if(E(r[0])==="object"&&r[0].constructor&&r[0].constructor===this.constructor)return r[0];let n=A0(r),a=!1;if(!n){a=!0,_.sorted||(_.autodetect=_.autodetect.sort((o,f)=>f.p-o.p),_.sorted=!0);for(let o of _.autodetect)if(n=o.test(...r),n)break}if(_.format[n]){const o=_.format[n].apply(null,a?r:r.slice(0,-1));t._rgb=Ee(o)}else throw new Error("unknown format: "+r);t._rgb.length===3&&t._rgb.push(1)}toString(){return E(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}}const En="3.2.0",M=(...e)=>new u(...e);M.version=En;const y0={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Tn=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Bn=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Wr=e=>{if(e.match(Tn)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const r=parseInt(e,16),t=r>>16,n=r>>8&255,a=r&255;return[t,n,a,1]}if(e.match(Bn)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const r=parseInt(e,16),t=r>>24&255,n=r>>16&255,a=r>>8&255,o=Math.round((r&255)/255*100)/100;return[t,n,a,o]}throw new Error(`unknown hex color: ${e}`)},{round:H0}=Math,Yr=(...e)=>{let[r,t,n,a]=L(e,"rgba"),o=A0(e)||"auto";a===void 0&&(a=1),o==="auto"&&(o=a<1?"rgba":"rgb"),r=H0(r),t=H0(t),n=H0(n);let c="000000"+(r<<16|t<<8|n).toString(16);c=c.substr(c.length-6);let s="0"+H0(a*255).toString(16);switch(s=s.substr(s.length-2),o.toLowerCase()){case"rgba":return`#${c}${s}`;case"argb":return`#${s}${c}`;default:return`#${c}`}};u.prototype.name=function(){const e=Yr(this._rgb,"rgb");for(let r of Object.keys(y0))if(y0[r]===e)return r.toLowerCase();return e};_.format.named=e=>{if(e=e.toLowerCase(),y0[e])return Wr(y0[e]);throw new Error("unknown color name: "+e)};_.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&E(e)==="string"&&y0[e.toLowerCase()])return"named"}});u.prototype.alpha=function(e,r=!1){return e!==void 0&&E(e)==="number"?r?(this._rgb[3]=e,this):new u([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]};u.prototype.clipped=function(){return this._rgb._clipped||!1};const e0={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},Nn=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function a0(e){const r=Nn.get(String(e).toLowerCase());if(!r)throw new Error("unknown Lab illuminant "+e);e0.labWhitePoint=e,e0.Xn=r[0],e0.Zn=r[1]}function B0(){return e0.labWhitePoint}const Te=(...e)=>{e=L(e,"lab");const[r,t,n]=e,[a,o,f]=jn(r,t,n),[c,s,i]=Zr(a,o,f);return[c,s,i,e.length>3?e[3]:1]},jn=(e,r,t)=>{const{kE:n,kK:a,kKE:o,Xn:f,Yn:c,Zn:s}=e0,i=(e+16)/116,b=.002*r+i,l=i-.005*t,g=b*b*b,m=l*l*l,k=g>n?g:(116*b-16)/a,y=e>o?Math.pow((e+16)/116,3):e/a,p=m>n?m:(116*l-16)/a,h=k*f,A=y*c,C=p*s;return[h,A,C]},be=e=>{const r=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*r},Zr=(e,r,t)=>{const{MtxAdaptMa:n,MtxAdaptMaI:a,MtxXYZ2RGB:o,RefWhiteRGB:f,Xn:c,Yn:s,Zn:i}=e0,b=c*n.m00+s*n.m10+i*n.m20,l=c*n.m01+s*n.m11+i*n.m21,g=c*n.m02+s*n.m12+i*n.m22,m=f.X*n.m00+f.Y*n.m10+f.Z*n.m20,k=f.X*n.m01+f.Y*n.m11+f.Z*n.m21,y=f.X*n.m02+f.Y*n.m12+f.Z*n.m22,p=(e*n.m00+r*n.m10+t*n.m20)*(m/b),h=(e*n.m01+r*n.m11+t*n.m21)*(k/l),A=(e*n.m02+r*n.m12+t*n.m22)*(y/g),C=p*a.m00+h*a.m10+A*a.m20,B=p*a.m01+h*a.m11+A*a.m21,j=p*a.m02+h*a.m12+A*a.m22,N=be(C*o.m00+B*o.m10+j*o.m20),x=be(C*o.m01+B*o.m11+j*o.m21),d=be(C*o.m02+B*o.m12+j*o.m22);return[N*255,x*255,d*255]},Be=(...e)=>{const[r,t,n,...a]=L(e,"rgb"),[o,f,c]=Ur(r,t,n),[s,i,b]=On(o,f,c);return[s,i,b,...a.length>0&&a[0]<1?[a[0]]:[]]};function On(e,r,t){const{Xn:n,Yn:a,Zn:o,kE:f,kK:c}=e0,s=e/n,i=r/a,b=t/o,l=s>f?Math.pow(s,1/3):(c*s+16)/116,g=i>f?Math.pow(i,1/3):(c*i+16)/116,m=b>f?Math.pow(b,1/3):(c*b+16)/116;return[116*g-16,500*(l-g),200*(g-m)]}function le(e){const r=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*r}const Ur=(e,r,t)=>{e=le(e/255),r=le(r/255),t=le(t/255);const{MtxRGB2XYZ:n,MtxAdaptMa:a,MtxAdaptMaI:o,Xn:f,Yn:c,Zn:s,As:i,Bs:b,Cs:l}=e0;let g=e*n.m00+r*n.m10+t*n.m20,m=e*n.m01+r*n.m11+t*n.m21,k=e*n.m02+r*n.m12+t*n.m22;const y=f*a.m00+c*a.m10+s*a.m20,p=f*a.m01+c*a.m11+s*a.m21,h=f*a.m02+c*a.m12+s*a.m22;let A=g*a.m00+m*a.m10+k*a.m20,C=g*a.m01+m*a.m11+k*a.m21,B=g*a.m02+m*a.m12+k*a.m22;return A*=y/i,C*=p/b,B*=h/l,g=A*o.m00+C*o.m10+B*o.m20,m=A*o.m01+C*o.m11+B*o.m21,k=A*o.m02+C*o.m12+B*o.m22,[g,m,k]};u.prototype.lab=function(){return Be(this._rgb)};const Rn=(...e)=>new u(...e,"lab");Object.assign(M,{lab:Rn,getLabWhitePoint:B0,setLabWhitePoint:a0});_.format.lab=Te;_.autodetect.push({p:2,test:(...e)=>{if(e=L(e,"lab"),E(e)==="array"&&e.length===3)return"lab"}});u.prototype.darken=function(e=1){const r=this,t=r.lab();return t[0]-=e0.Kn*e,new u(t,"lab").alpha(r.alpha(),!0)};u.prototype.brighten=function(e=1){return this.darken(-e)};u.prototype.darker=u.prototype.darken;u.prototype.brighter=u.prototype.brighten;u.prototype.get=function(e){const[r,t]=e.split("."),n=this[r]();if(t){const a=r.indexOf(t)-(r.substr(0,2)==="ok"?2:0);if(a>-1)return n[a];throw new Error(`unknown channel ${t} in mode ${r}`)}else return n};const{pow:In}=Math,Hn=1e-7,Pn=20;u.prototype.luminance=function(e,r="rgb"){if(e!==void 0&&E(e)==="number"){if(e===0)return new u([0,0,0,this._rgb[3]],"rgb");if(e===1)return new u([255,255,255,this._rgb[3]],"rgb");let t=this.luminance(),n=Pn;const a=(f,c)=>{const s=f.interpolate(c,.5,r),i=s.luminance();return Math.abs(e-i)<Hn||!n--?s:i>e?a(f,s):a(s,c)},o=(t>e?a(new u([0,0,0]),this):a(this,new u([255,255,255]))).rgb();return new u([...o,this._rgb[3]])}return zn(...this._rgb.slice(0,3))};const zn=(e,r,t)=>(e=ge(e),r=ge(r),t=ge(t),.2126*e+.7152*r+.0722*t),ge=e=>(e/=255,e<=.03928?e/12.92:In((e+.055)/1.055,2.4)),F={},w0=(e,r,t=.5,...n)=>{let a=n[0]||"lrgb";if(!F[a]&&!n.length&&(a=Object.keys(F)[0]),!F[a])throw new Error(`interpolation mode ${a} is not defined`);return E(e)!=="object"&&(e=new u(e)),E(r)!=="object"&&(r=new u(r)),F[a](e,r,t).alpha(e.alpha()+t*(r.alpha()-e.alpha()))};u.prototype.mix=u.prototype.interpolate=function(e,r=.5,...t){return w0(this,e,r,...t)};u.prototype.premultiply=function(e=!1){const r=this._rgb,t=r[3];return e?(this._rgb=[r[0]*t,r[1]*t,r[2]*t,t],this):new u([r[0]*t,r[1]*t,r[2]*t,t],"rgb")};const{sin:Xn,cos:Gn}=Math,Kr=(...e)=>{let[r,t,n]=L(e,"lch");return isNaN(n)&&(n=0),n=n*_n,[r,Gn(n)*t,Xn(n)*t]},Ne=(...e)=>{e=L(e,"lch");const[r,t,n]=e,[a,o,f]=Kr(r,t,n),[c,s,i]=Te(a,o,f);return[c,s,i,e.length>3?e[3]:1]},Fn=(...e)=>{const r=qr(L(e,"hcl"));return Ne(...r)},{sqrt:Dn,atan2:qn,round:Wn}=Math,Vr=(...e)=>{const[r,t,n]=L(e,"lab"),a=Dn(t*t+n*n);let o=(qn(n,t)*Ln+360)%360;return Wn(a*1e4)===0&&(o=Number.NaN),[r,a,o]},je=(...e)=>{const[r,t,n,...a]=L(e,"rgb"),[o,f,c]=Be(r,t,n),[s,i,b]=Vr(o,f,c);return[s,i,b,...a.length>0&&a[0]<1?[a[0]]:[]]};u.prototype.lch=function(){return je(this._rgb)};u.prototype.hcl=function(){return qr(je(this._rgb))};const Yn=(...e)=>new u(...e,"lch"),Zn=(...e)=>new u(...e,"hcl");Object.assign(M,{lch:Yn,hcl:Zn});_.format.lch=Ne;_.format.hcl=Fn;["lch","hcl"].forEach(e=>_.autodetect.push({p:2,test:(...r)=>{if(r=L(r,e),E(r)==="array"&&r.length===3)return e}}));u.prototype.saturate=function(e=1){const r=this,t=r.lch();return t[1]+=e0.Kn*e,t[1]<0&&(t[1]=0),new u(t,"lch").alpha(r.alpha(),!0)};u.prototype.desaturate=function(e=1){return this.saturate(-e)};u.prototype.set=function(e,r,t=!1){const[n,a]=e.split("."),o=this[n]();if(a){const f=n.indexOf(a)-(n.substr(0,2)==="ok"?2:0);if(f>-1){if(E(r)=="string")switch(r.charAt(0)){case"+":o[f]+=+r;break;case"-":o[f]+=+r;break;case"*":o[f]*=+r.substr(1);break;case"/":o[f]/=+r.substr(1);break;default:o[f]=+r}else if(E(r)==="number")o[f]=r;else throw new Error("unsupported value for Color.set");const c=new u(o,n);return t?(this._rgb=c._rgb,this):c}throw new Error(`unknown channel ${a} in mode ${n}`)}else return o};u.prototype.tint=function(e=.5,...r){return w0(this,"white",e,...r)};u.prototype.shade=function(e=.5,...r){return w0(this,"black",e,...r)};const Un=(e,r,t)=>{const n=e._rgb,a=r._rgb;return new u(n[0]+t*(a[0]-n[0]),n[1]+t*(a[1]-n[1]),n[2]+t*(a[2]-n[2]),"rgb")};F.rgb=Un;const{sqrt:de,pow:d0}=Math,Kn=(e,r,t)=>{const[n,a,o]=e._rgb,[f,c,s]=r._rgb;return new u(de(d0(n,2)*(1-t)+d0(f,2)*t),de(d0(a,2)*(1-t)+d0(c,2)*t),de(d0(o,2)*(1-t)+d0(s,2)*t),"rgb")};F.lrgb=Kn;const Vn=(e,r,t)=>{const n=e.lab(),a=r.lab();return new u(n[0]+t*(a[0]-n[0]),n[1]+t*(a[1]-n[1]),n[2]+t*(a[2]-n[2]),"lab")};F.lab=Vn;const v0=(e,r,t,n)=>{let a,o;n==="hsl"?(a=e.hsl(),o=r.hsl()):n==="hsv"?(a=e.hsv(),o=r.hsv()):n==="hcg"?(a=e.hcg(),o=r.hcg()):n==="hsi"?(a=e.hsi(),o=r.hsi()):n==="lch"||n==="hcl"?(n="hcl",a=e.hcl(),o=r.hcl()):n==="oklch"&&(a=e.oklch().reverse(),o=r.oklch().reverse());let f,c,s,i,b,l;(n.substr(0,1)==="h"||n==="oklch")&&([f,s,b]=a,[c,i,l]=o);let g,m,k,y;return!isNaN(f)&&!isNaN(c)?(c>f&&c-f>180?y=c-(f+360):c<f&&f-c>180?y=c+360-f:y=c-f,m=f+t*y):isNaN(f)?isNaN(c)?m=Number.NaN:(m=c,(b==1||b==0)&&n!="hsv"&&(g=i)):(m=f,(l==1||l==0)&&n!="hsv"&&(g=s)),g===void 0&&(g=s+t*(i-s)),k=b+t*(l-b),n==="oklch"?new u([k,g,m],n):new u([m,g,k],n)},Qr=(e,r,t)=>v0(e,r,t,"lch");F.lch=Qr;F.hcl=Qr;const Qn=e=>{if(E(e)=="number"&&e>=0&&e<=16777215){const r=e>>16,t=e>>8&255,n=e&255;return[r,t,n,1]}throw new Error("unknown num color: "+e)},Jn=(...e)=>{const[r,t,n]=L(e,"rgb");return(r<<16)+(t<<8)+n};u.prototype.num=function(){return Jn(this._rgb)};const ea=(...e)=>new u(...e,"num");Object.assign(M,{num:ea});_.format.num=Qn;_.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&E(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const ra=(e,r,t)=>{const n=e.num(),a=r.num();return new u(n+t*(a-n),"num")};F.num=ra;const{floor:ta}=Math,na=(...e)=>{e=L(e,"hcg");let[r,t,n]=e,a,o,f;n=n*255;const c=t*255;if(t===0)a=o=f=n;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const s=ta(r),i=r-s,b=n*(1-t),l=b+c*(1-i),g=b+c*i,m=b+c;switch(s){case 0:[a,o,f]=[m,g,b];break;case 1:[a,o,f]=[l,m,b];break;case 2:[a,o,f]=[b,m,g];break;case 3:[a,o,f]=[b,l,m];break;case 4:[a,o,f]=[g,b,m];break;case 5:[a,o,f]=[m,b,l];break}}return[a,o,f,e.length>3?e[3]:1]},aa=(...e)=>{const[r,t,n]=L(e,"rgb"),a=Fr(r,t,n),o=Dr(r,t,n),f=o-a,c=f*100/255,s=a/(255-f)*100;let i;return f===0?i=Number.NaN:(r===o&&(i=(t-n)/f),t===o&&(i=2+(n-r)/f),n===o&&(i=4+(r-t)/f),i*=60,i<0&&(i+=360)),[i,c,s]};u.prototype.hcg=function(){return aa(this._rgb)};const oa=(...e)=>new u(...e,"hcg");M.hcg=oa;_.format.hcg=na;_.autodetect.push({p:1,test:(...e)=>{if(e=L(e,"hcg"),E(e)==="array"&&e.length===3)return"hcg"}});const fa=(e,r,t)=>v0(e,r,t,"hcg");F.hcg=fa;const{cos:u0}=Math,ca=(...e)=>{e=L(e,"hsi");let[r,t,n]=e,a,o,f;return isNaN(r)&&(r=0),isNaN(t)&&(t=0),r>360&&(r-=360),r<0&&(r+=360),r/=360,r<1/3?(f=(1-t)/3,a=(1+t*u0(n0*r)/u0(ie-n0*r))/3,o=1-(f+a)):r<2/3?(r-=1/3,a=(1-t)/3,o=(1+t*u0(n0*r)/u0(ie-n0*r))/3,f=1-(a+o)):(r-=2/3,o=(1-t)/3,f=(1+t*u0(n0*r)/u0(ie-n0*r))/3,a=1-(o+f)),a=g0(n*a*3),o=g0(n*o*3),f=g0(n*f*3),[a*255,o*255,f*255,e.length>3?e[3]:1]},{min:sa,sqrt:ia,acos:ba}=Math,la=(...e)=>{let[r,t,n]=L(e,"rgb");r/=255,t/=255,n/=255;let a;const o=sa(r,t,n),f=(r+t+n)/3,c=f>0?1-o/f:0;return c===0?a=NaN:(a=(r-t+(r-n))/2,a/=ia((r-t)*(r-t)+(r-n)*(t-n)),a=ba(a),n>t&&(a=n0-a),a/=n0),[a*360,c,f]};u.prototype.hsi=function(){return la(this._rgb)};const ga=(...e)=>new u(...e,"hsi");M.hsi=ga;_.format.hsi=ca;_.autodetect.push({p:2,test:(...e)=>{if(e=L(e,"hsi"),E(e)==="array"&&e.length===3)return"hsi"}});const da=(e,r,t)=>v0(e,r,t,"hsi");F.hsi=da;const Me=(...e)=>{e=L(e,"hsl");const[r,t,n]=e;let a,o,f;if(t===0)a=o=f=n*255;else{const c=[0,0,0],s=[0,0,0],i=n<.5?n*(1+t):n+t-n*t,b=2*n-i,l=r/360;c[0]=l+1/3,c[1]=l,c[2]=l-1/3;for(let g=0;g<3;g++)c[g]<0&&(c[g]+=1),c[g]>1&&(c[g]-=1),6*c[g]<1?s[g]=b+(i-b)*6*c[g]:2*c[g]<1?s[g]=i:3*c[g]<2?s[g]=b+(i-b)*(2/3-c[g])*6:s[g]=b;[a,o,f]=[s[0]*255,s[1]*255,s[2]*255]}return e.length>3?[a,o,f,e[3]]:[a,o,f,1]},Jr=(...e)=>{e=L(e,"rgba");let[r,t,n]=e;r/=255,t/=255,n/=255;const a=Fr(r,t,n),o=Dr(r,t,n),f=(o+a)/2;let c,s;return o===a?(c=0,s=Number.NaN):c=f<.5?(o-a)/(o+a):(o-a)/(2-o-a),r==o?s=(t-n)/(o-a):t==o?s=2+(n-r)/(o-a):n==o&&(s=4+(r-t)/(o-a)),s*=60,s<0&&(s+=360),e.length>3&&e[3]!==void 0?[s,c,f,e[3]]:[s,c,f]};u.prototype.hsl=function(){return Jr(this._rgb)};const ua=(...e)=>new u(...e,"hsl");M.hsl=ua;_.format.hsl=Me;_.autodetect.push({p:2,test:(...e)=>{if(e=L(e,"hsl"),E(e)==="array"&&e.length===3)return"hsl"}});const ha=(e,r,t)=>v0(e,r,t,"hsl");F.hsl=ha;const{floor:pa}=Math,ma=(...e)=>{e=L(e,"hsv");let[r,t,n]=e,a,o,f;if(n*=255,t===0)a=o=f=n;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const c=pa(r),s=r-c,i=n*(1-t),b=n*(1-t*s),l=n*(1-t*(1-s));switch(c){case 0:[a,o,f]=[n,l,i];break;case 1:[a,o,f]=[b,n,i];break;case 2:[a,o,f]=[i,n,l];break;case 3:[a,o,f]=[i,b,n];break;case 4:[a,o,f]=[l,i,n];break;case 5:[a,o,f]=[n,i,b];break}}return[a,o,f,e.length>3?e[3]:1]},{min:xa,max:ka}=Math,ya=(...e)=>{e=L(e,"rgb");let[r,t,n]=e;const a=xa(r,t,n),o=ka(r,t,n),f=o-a;let c,s,i;return i=o/255,o===0?(c=Number.NaN,s=0):(s=f/o,r===o&&(c=(t-n)/f),t===o&&(c=2+(n-r)/f),n===o&&(c=4+(r-t)/f),c*=60,c<0&&(c+=360)),[c,s,i]};u.prototype.hsv=function(){return ya(this._rgb)};const wa=(...e)=>new u(...e,"hsv");M.hsv=wa;_.format.hsv=ma;_.autodetect.push({p:2,test:(...e)=>{if(e=L(e,"hsv"),E(e)==="array"&&e.length===3)return"hsv"}});const $a=(e,r,t)=>v0(e,r,t,"hsv");F.hsv=$a;function U0(e,r){let t=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(r[0])||(r=r.map(f=>[f]));let n=r[0].length,a=r[0].map((f,c)=>r.map(s=>s[c])),o=e.map(f=>a.map(c=>Array.isArray(f)?f.reduce((s,i,b)=>s+i*(c[b]||0),0):c.reduce((s,i)=>s+i*f,0)));return t===1&&(o=o[0]),n===1?o.map(f=>f[0]):o}const Oe=(...e)=>{e=L(e,"lab");const[r,t,n,...a]=e,[o,f,c]=Aa([r,t,n]),[s,i,b]=Zr(o,f,c);return[s,i,b,...a.length>0&&a[0]<1?[a[0]]:[]]};function Aa(e){var r=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],t=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],n=U0(t,e);return U0(r,n.map(a=>a**3))}const Re=(...e)=>{const[r,t,n,...a]=L(e,"rgb"),o=Ur(r,t,n);return[...va(o),...a.length>0&&a[0]<1?[a[0]]:[]]};function va(e){const r=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],t=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],n=U0(r,e);return U0(t,n.map(a=>Math.cbrt(a)))}u.prototype.oklab=function(){return Re(this._rgb)};const Sa=(...e)=>new u(...e,"oklab");Object.assign(M,{oklab:Sa});_.format.oklab=Oe;_.autodetect.push({p:2,test:(...e)=>{if(e=L(e,"oklab"),E(e)==="array"&&e.length===3)return"oklab"}});const Ma=(e,r,t)=>{const n=e.oklab(),a=r.oklab();return new u(n[0]+t*(a[0]-n[0]),n[1]+t*(a[1]-n[1]),n[2]+t*(a[2]-n[2]),"oklab")};F.oklab=Ma;const Ca=(e,r,t)=>v0(e,r,t,"oklch");F.oklch=Ca;const{pow:ue,sqrt:he,PI:pe,cos:Ke,sin:Ve,atan2:_a}=Math,La=(e,r="lrgb",t=null)=>{const n=e.length;t||(t=Array.from(new Array(n)).map(()=>1));const a=n/t.reduce(function(l,g){return l+g});if(t.forEach((l,g)=>{t[g]*=a}),e=e.map(l=>new u(l)),r==="lrgb")return Ea(e,t);const o=e.shift(),f=o.get(r),c=[];let s=0,i=0;for(let l=0;l<f.length;l++)if(f[l]=(f[l]||0)*t[0],c.push(isNaN(f[l])?0:t[0]),r.charAt(l)==="h"&&!isNaN(f[l])){const g=f[l]/180*pe;s+=Ke(g)*t[0],i+=Ve(g)*t[0]}let b=o.alpha()*t[0];e.forEach((l,g)=>{const m=l.get(r);b+=l.alpha()*t[g+1];for(let k=0;k<f.length;k++)if(!isNaN(m[k]))if(c[k]+=t[g+1],r.charAt(k)==="h"){const y=m[k]/180*pe;s+=Ke(y)*t[g+1],i+=Ve(y)*t[g+1]}else f[k]+=m[k]*t[g+1]});for(let l=0;l<f.length;l++)if(r.charAt(l)==="h"){let g=_a(i/c[l],s/c[l])/pe*180;for(;g<0;)g+=360;for(;g>=360;)g-=360;f[l]=g}else f[l]=f[l]/c[l];return b/=n,new u(f,r).alpha(b>.99999?1:b,!0)},Ea=(e,r)=>{const t=e.length,n=[0,0,0,0];for(let a=0;a<e.length;a++){const o=e[a],f=r[a]/t,c=o._rgb;n[0]+=ue(c[0],2)*f,n[1]+=ue(c[1],2)*f,n[2]+=ue(c[2],2)*f,n[3]+=c[3]*f}return n[0]=he(n[0]),n[1]=he(n[1]),n[2]=he(n[2]),n[3]>.9999999&&(n[3]=1),new u(Ee(n))},{pow:Ta}=Math;function K0(e){let r="rgb",t=M("#ccc"),n=0,a=[0,1],o=[0,1],f=[],c=[0,0],s=!1,i=[],b=!1,l=0,g=1,m=!1,k={},y=!0,p=1;const h=function(d){if(d=d||["#fff","#000"],d&&E(d)==="string"&&M.brewer&&M.brewer[d.toLowerCase()]&&(d=M.brewer[d.toLowerCase()]),E(d)==="array"){d.length===1&&(d=[d[0],d[0]]),d=d.slice(0);for(let w=0;w<d.length;w++)d[w]=M(d[w]);f.length=0;for(let w=0;w<d.length;w++)f.push(w/(d.length-1))}return N(),i=d},A=function(d){if(s!=null){const w=s.length-1;let v=0;for(;v<w&&d>=s[v];)v++;return v-1}return 0};let C=d=>d,B=d=>d;const j=function(d,w){let v,$;if(w==null&&(w=!1),isNaN(d)||d===null)return t;w?$=d:s&&s.length>2?$=A(d)/(s.length-2):g!==l?$=(d-l)/(g-l):$=1,$=B($),w||($=C($)),p!==1&&($=Ta($,p)),$=c[0]+$*(1-c[0]-c[1]),$=g0($,0,1);const T=Math.floor($*1e4);if(y&&k[T])v=k[T];else{if(E(i)==="array")for(let S=0;S<f.length;S++){const D=f[S];if($<=D){v=i[S];break}if($>=D&&S===f.length-1){v=i[S];break}if($>D&&$<f[S+1]){$=($-D)/(f[S+1]-D),v=M.interpolate(i[S],i[S+1],$,r);break}}else E(i)==="function"&&(v=i($));y&&(k[T]=v)}return v};var N=()=>k={};h(e);const x=function(d){const w=M(j(d));return b&&w[b]?w[b]():w};return x.classes=function(d){if(d!=null){if(E(d)==="array")s=d,a=[d[0],d[d.length-1]];else{const w=M.analyze(a);d===0?s=[w.min,w.max]:s=M.limits(w,"e",d)}return x}return s},x.domain=function(d){if(!arguments.length)return o;o=d.slice(0),l=d[0],g=d[d.length-1],f=[];const w=i.length;if(d.length===w&&l!==g)for(let v of Array.from(d))f.push((v-l)/(g-l));else{for(let v=0;v<w;v++)f.push(v/(w-1));if(d.length>2){const v=d.map((T,S)=>S/(d.length-1)),$=d.map(T=>(T-l)/(g-l));$.every((T,S)=>v[S]===T)||(B=T=>{if(T<=0||T>=1)return T;let S=0;for(;T>=$[S+1];)S++;const D=(T-$[S])/($[S+1]-$[S]);return v[S]+D*(v[S+1]-v[S])})}}return a=[l,g],x},x.mode=function(d){return arguments.length?(r=d,N(),x):r},x.range=function(d,w){return h(d),x},x.out=function(d){return b=d,x},x.spread=function(d){return arguments.length?(n=d,x):n},x.correctLightness=function(d){return d==null&&(d=!0),m=d,N(),m?C=function(w){const v=j(0,!0).lab()[0],$=j(1,!0).lab()[0],T=v>$;let S=j(w,!0).lab()[0];const D=v+($-v)*w;let f0=S-D,R0=0,_0=1,I0=20;for(;Math.abs(f0)>.01&&I0-- >0;)(function(){return T&&(f0*=-1),f0<0?(R0=w,w+=(_0-w)*.5):(_0=w,w+=(R0-w)*.5),S=j(w,!0).lab()[0],f0=S-D})();return w}:C=w=>w,x},x.padding=function(d){return d!=null?(E(d)==="number"&&(d=[d,d]),c=d,x):c},x.colors=function(d,w){arguments.length<2&&(w="hex");let v=[];if(arguments.length===0)v=i.slice(0);else if(d===1)v=[x(.5)];else if(d>1){const $=a[0],T=a[1]-$;v=Ba(0,d).map(S=>x($+S/(d-1)*T))}else{e=[];let $=[];if(s&&s.length>2)for(let T=1,S=s.length,D=1<=S;D?T<S:T>S;D?T++:T--)$.push((s[T-1]+s[T])*.5);else $=a;v=$.map(T=>x(T))}return M[w]&&(v=v.map($=>$[w]())),v},x.cache=function(d){return d!=null?(y=d,x):y},x.gamma=function(d){return d!=null?(p=d,x):p},x.nodata=function(d){return d!=null?(t=M(d),x):t},x}function Ba(e,r,t){let n=[],a=e<r,o=r;for(let f=e;a?f<o:f>o;a?f++:f--)n.push(f);return n}const Na=function(e){let r=[1,1];for(let t=1;t<e;t++){let n=[1];for(let a=1;a<=r.length;a++)n[a]=(r[a]||0)+r[a-1];r=n}return r},ja=function(e){let r,t,n,a;if(e=e.map(o=>new u(o)),e.length===2)[t,n]=e.map(o=>o.lab()),r=function(o){const f=[0,1,2].map(c=>t[c]+o*(n[c]-t[c]));return new u(f,"lab")};else if(e.length===3)[t,n,a]=e.map(o=>o.lab()),r=function(o){const f=[0,1,2].map(c=>(1-o)*(1-o)*t[c]+2*(1-o)*o*n[c]+o*o*a[c]);return new u(f,"lab")};else if(e.length===4){let o;[t,n,a,o]=e.map(f=>f.lab()),r=function(f){const c=[0,1,2].map(s=>(1-f)*(1-f)*(1-f)*t[s]+3*(1-f)*(1-f)*f*n[s]+3*(1-f)*f*f*a[s]+f*f*f*o[s]);return new u(c,"lab")}}else if(e.length>=5){let o,f,c;o=e.map(s=>s.lab()),c=e.length-1,f=Na(c),r=function(s){const i=1-s,b=[0,1,2].map(l=>o.reduce((g,m,k)=>g+f[k]*i**(c-k)*s**k*m[l],0));return new u(b,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return r},Oa=e=>{const r=ja(e);return r.scale=()=>K0(r),r},{round:et}=Math;u.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(et)};u.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((r,t)=>t<3?e===!1?r:et(r):r)};const Ra=(...e)=>new u(...e,"rgb");Object.assign(M,{rgb:Ra});_.format.rgb=(...e)=>{const r=L(e,"rgba");return r[3]===void 0&&(r[3]=1),r};_.autodetect.push({p:3,test:(...e)=>{if(e=L(e,"rgba"),E(e)==="array"&&(e.length===3||e.length===4&&E(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const Q=(e,r,t)=>{if(!Q[t])throw new Error("unknown blend mode "+t);return Q[t](e,r)},i0=e=>(r,t)=>{const n=M(t).rgb(),a=M(r).rgb();return M.rgb(e(n,a))},b0=e=>(r,t)=>{const n=[];return n[0]=e(r[0],t[0]),n[1]=e(r[1],t[1]),n[2]=e(r[2],t[2]),n},Ia=e=>e,Ha=(e,r)=>e*r/255,Pa=(e,r)=>e>r?r:e,za=(e,r)=>e>r?e:r,Xa=(e,r)=>255*(1-(1-e/255)*(1-r/255)),Ga=(e,r)=>r<128?2*e*r/255:255*(1-2*(1-e/255)*(1-r/255)),Fa=(e,r)=>255*(1-(1-r/255)/(e/255)),Da=(e,r)=>e===255?255:(e=255*(r/255)/(1-e/255),e>255?255:e);Q.normal=i0(b0(Ia));Q.multiply=i0(b0(Ha));Q.screen=i0(b0(Xa));Q.overlay=i0(b0(Ga));Q.darken=i0(b0(Pa));Q.lighten=i0(b0(za));Q.dodge=i0(b0(Da));Q.burn=i0(b0(Fa));const{pow:qa,sin:Wa,cos:Ya}=Math;function Za(e=300,r=-1.5,t=1,n=1,a=[0,1]){let o=0,f;E(a)==="array"?f=a[1]-a[0]:(f=0,a=[a,a]);const c=function(s){const i=n0*((e+120)/360+r*s),b=qa(a[0]+f*s,n),g=(o!==0?t[0]+s*o:t)*b*(1-b)/2,m=Ya(i),k=Wa(i),y=b+g*(-.14861*m+1.78277*k),p=b+g*(-.29227*m-.90649*k),h=b+g*(1.97294*m);return M(Ee([y*255,p*255,h*255,1]))};return c.start=function(s){return s==null?e:(e=s,c)},c.rotations=function(s){return s==null?r:(r=s,c)},c.gamma=function(s){return s==null?n:(n=s,c)},c.hue=function(s){return s==null?t:(t=s,E(t)==="array"?(o=t[1]-t[0],o===0&&(t=t[1])):o=0,c)},c.lightness=function(s){return s==null?a:(E(s)==="array"?(a=s,f=s[1]-s[0]):(a=[s,s],f=0),c)},c.scale=()=>M.scale(c),c.hue(t),c}const Ua="0123456789abcdef",{floor:Ka,random:Va}=Math,Qa=(e=Va)=>{let r="#";for(let t=0;t<6;t++)r+=Ua.charAt(Ka(e()*16));return new u(r,"hex")},{log:Qe,pow:Ja,floor:eo,abs:ro}=Math;function rt(e,r=null){const t={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return E(e)==="object"&&(e=Object.values(e)),e.forEach(n=>{r&&E(n)==="object"&&(n=n[r]),n!=null&&!isNaN(n)&&(t.values.push(n),t.sum+=n,n<t.min&&(t.min=n),n>t.max&&(t.max=n),t.count+=1)}),t.domain=[t.min,t.max],t.limits=(n,a)=>tt(t,n,a),t}function tt(e,r="equal",t=7){E(e)=="array"&&(e=rt(e));const{min:n,max:a}=e,o=e.values.sort((c,s)=>c-s);if(t===1)return[n,a];const f=[];if(r.substr(0,1)==="c"&&(f.push(n),f.push(a)),r.substr(0,1)==="e"){f.push(n);for(let c=1;c<t;c++)f.push(n+c/t*(a-n));f.push(a)}else if(r.substr(0,1)==="l"){if(n<=0)throw new Error("Logarithmic scales are only possible for values > 0");const c=Math.LOG10E*Qe(n),s=Math.LOG10E*Qe(a);f.push(n);for(let i=1;i<t;i++)f.push(Ja(10,c+i/t*(s-c)));f.push(a)}else if(r.substr(0,1)==="q"){f.push(n);for(let c=1;c<t;c++){const s=(o.length-1)*c/t,i=eo(s);if(i===s)f.push(o[i]);else{const b=s-i;f.push(o[i]*(1-b)+o[i+1]*b)}}f.push(a)}else if(r.substr(0,1)==="k"){let c;const s=o.length,i=new Array(s),b=new Array(t);let l=!0,g=0,m=null;m=[],m.push(n);for(let p=1;p<t;p++)m.push(n+p/t*(a-n));for(m.push(a);l;){for(let h=0;h<t;h++)b[h]=0;for(let h=0;h<s;h++){const A=o[h];let C=Number.MAX_VALUE,B;for(let j=0;j<t;j++){const N=ro(m[j]-A);N<C&&(C=N,B=j),b[B]++,i[h]=B}}const p=new Array(t);for(let h=0;h<t;h++)p[h]=null;for(let h=0;h<s;h++)c=i[h],p[c]===null?p[c]=o[h]:p[c]+=o[h];for(let h=0;h<t;h++)p[h]*=1/b[h];l=!1;for(let h=0;h<t;h++)if(p[h]!==m[h]){l=!0;break}m=p,g++,g>200&&(l=!1)}const k={};for(let p=0;p<t;p++)k[p]=[];for(let p=0;p<s;p++)c=i[p],k[c].push(o[p]);let y=[];for(let p=0;p<t;p++)y.push(k[p][0]),y.push(k[p][k[p].length-1]);y=y.sort((p,h)=>p-h),f.push(y[0]);for(let p=1;p<y.length;p+=2){const h=y[p];!isNaN(h)&&f.indexOf(h)===-1&&f.push(h)}}return f}const to=(e,r)=>{e=new u(e),r=new u(r);const t=e.luminance(),n=r.luminance();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)};/**
|
|
1
|
+
import{c as _r,s as Zt,t as Ut,C as Kt,a as Vt}from"./modelConfig-BvuGgERB.js";import{a as W,j as I}from"./framework-gzBbjyR4.js";import{i as Qt,g as Jt}from"./isObjectLike-DlmVz5ty.js";import"./markdown-Bc9cX4Ha.js";import"./index-Dd-YiX5e.js";function Lr(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}const en=new Map([["Æ","Ae"],["Ð","D"],["Ø","O"],["Þ","Th"],["ß","ss"],["æ","ae"],["ð","d"],["ø","o"],["þ","th"],["Đ","D"],["đ","d"],["Ħ","H"],["ħ","h"],["ı","i"],["IJ","IJ"],["ij","ij"],["ĸ","k"],["Ŀ","L"],["ŀ","l"],["Ł","L"],["ł","l"],["ʼn","'n"],["Ŋ","N"],["ŋ","n"],["Œ","Oe"],["œ","oe"],["Ŧ","T"],["ŧ","t"],["ſ","s"]]);function rn(e){e=e.normalize("NFD");let r="";for(let t=0;t<e.length;t++){const n=e[t];n>="̀"&&n<="ͯ"||n>="⃐"&&n<=""||n>="︠"&&n<="︯"||(r+=en.get(n)??n)}return r}var L0={},Fe;function tn(){if(Fe)return L0;Fe=1,Object.defineProperty(L0,"__esModule",{value:!0}),L0.styleq=void 0;var e=new WeakMap,r="$$css";function t(a){var o,f,c;return a!=null&&(o=a.disableCache===!0,f=a.disableMix===!0,c=a.transform),function(){for(var i=[],b="",l=null,g="",m=o?null:e,k=new Array(arguments.length),y=0;y<arguments.length;y++)k[y]=arguments[y];for(;k.length>0;){var p=k.pop();if(!(p==null||p===!1)){if(Array.isArray(p)){for(var h=0;h<p.length;h++)k.push(p[h]);continue}var A=c!=null?c(p):p;if(A.$$css!=null){var C="";if(m!=null&&m.has(A)){var B=m.get(A);B!=null&&(C=B[0],g=B[2],i.push.apply(i,B[1]),m=B[3])}else{var j=[];for(var N in A){var x=A[N];if(N===r){var d=A[N];d!==!0&&(g=g?d+"; "+g:d);continue}typeof x=="string"||x===null?i.includes(N)||(i.push(N),m!=null&&j.push(N),typeof x=="string"&&(C+=C?" "+x:x)):console.error("styleq: ".concat(N," typeof ").concat(String(x),' is not "string" or "null".'))}if(m!=null){var w=new WeakMap;m.set(A,[C,j,g,w]),m=w}}C&&(b=b?C+" "+b:C)}else if(f)l==null&&(l={}),l=Object.assign({},A,l);else{var v=null;for(var $ in A){var T=A[$];T!==void 0&&(i.includes($)||(T!=null&&(l==null&&(l={}),v==null&&(v={}),v[$]=T),i.push($),m=null))}v!=null&&(l=Object.assign(v,l))}}}var S=[b,l,g];return S}}var n=L0.styleq=t();return n.factory=t,L0}var nn=tn();function an(...e){const[r,t,n]=nn.styleq(e),a={};return r!=null&&r!==""&&(a.className=r),t!=null&&Object.keys(t).length>0&&(a.style=t),n!=null&&n!==""&&(a["data-style-src"]=n),a}const on=(e,r,t)=>{const n=an(e);return{className:_r(n.className,r),style:n.style||t?{...n.style,...t}:void 0}},Er=W.createContext({});W.memo(({children:e,config:r={}})=>I.jsx(Er,{value:r,children:e}));const fn=()=>W.use(Er);function cn(e){return typeof e=="symbol"||e instanceof Symbol}function re(e){return e==null?"":Tr(e)}function Tr(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(Tr).join(",");if(cn(e))return e.toString();const r=e+"";return r==="0"&&Object.is(Number(e),-0)?"-0":r}function sn(e){return typeof e=="number"||Qt(e)&&Jt(e)==="[object Number]"}function bn(e){return Lr(re(e))}function ln(e){return rn(re(e))}const gn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\xd7\\xf7",m0="\\p{Lu}",Br="\\p{Ll}",Nr="(?:[\\p{Lm}\\p{Lo}]\\p{M}*)",E0="\\d",De="(?:['’](?:d|ll|m|re|s|t|ve))?",qe="(?:['’](?:D|LL|M|RE|S|T|VE))?",We=`[\\p{Z}\\p{P}${gn}]`,dn=`(?:${m0}|${Nr})`,Ye=`(?:${Br}|${Nr})`;let se;function un(){return se==null&&(se=RegExp([`${m0}?${Br}+${De}(?=${We}|${m0}|$)`,`${dn}+${qe}(?=${We}|${m0}${Ye}|$)`,`${m0}?${Ye}+${De}`,`${m0}+${qe}`,`${E0}*(?:1ST|2ND|3RD|(?![123])${E0}TH)(?=\\b|[a-z_])`,`${E0}*(?:1st|2nd|3rd|(?![123])${E0}th)(?=\\b|[A-Z_])`,`${E0}+`,"\\p{Emoji_Presentation}","\\p{Extended_Pictographic}"].join("|"),"gu")),se}function hn(e,r,t){const n=re(e);return r===void 0&&(r=un()),typeof r=="number"&&(r=r.toString()),Array.from(n.match(r)??[]).filter(a=>a!=="")}function pn(e){return typeof e!="string"&&(e=re(e)),e.replace(/['\u2019]/g,"")}function mn(e){const r=hn(pn(ln(e)));if(r.length===0)return"";const[t,...n]=r;return`${t.toLowerCase()}${n.map(a=>Lr(a)).join("")}`}const xn=e=>{if(sn(e))return{size:e};let r,t;switch(e){case"large":r=24,t=2;break;case"middle":r=20,t=2;break;case"small":r=14,t=2;break;default:e?(r=(e==null?void 0:e.size)||24,t=(e==null?void 0:e.strokeWidth)||2):(r="1em",t=2)}return{size:r,strokeWidth:t}},kn=Zt({block:"icon",dataAttributes:["spin"],elements:[]}),Ze={root:{kGNEyG:"lb6s0dn4",k1xSpc:"lb3nfvp2",kLWn49:"lb14ju556",kXLuUW:"lb1x7wgjd",$$css:!0},spin:{k44tkh:"lb1q3qbx4",ko0y90:"lba4qsjk",kKVMdj:"lb1fhqo85",kyAemX:"lb1esw782",$$css:!0}},jr=W.memo(({icon:e,size:r,color:t,fill:n="transparent",className:a,focusable:o,spin:f,fillRule:c,fillOpacity:s,ref:i,...b})=>{const{color:l,fill:g,fillOpacity:m,fillRule:k,focusable:y,className:p,size:h,...A}=fn(),{size:C,strokeWidth:B}=W.useMemo(()=>xn(r||h),[r,h]),j=e;return I.jsx("span",{role:"img",...Ut({spin:f}),className:on([Ze.root,f&&Ze.spin],_r(kn(),"anticon",p,a)).className,...A,...b,children:e&&(W.isValidElement(e)?e:I.jsx(j,{color:t||l,fill:n||g,fillOpacity:s||m,fillRule:c||k,focusable:o||y,height:C,ref:i,size:C,strokeWidth:B,width:C}))})});jr.displayName="Icon";const yn={dark:["#190a09","#340b0c","#4b141a","#641f24","#8a3334","#aa3f3e","#b53a3a","#be3738","#d64242","#e95350","#ffa8a0","#ffe1df","#fff8f7"],darkA:["rgba(250, 100, 90, 0.1)","rgba(248, 52, 57, 0.21)","rgba(250, 67, 87, 0.3)","rgba(250, 78, 90, 0.4)","rgba(251, 93, 95, 0.55)","rgba(254, 94, 93, 0.67)","rgba(255, 82, 82, 0.71)","rgba(253, 73, 75, 0.75)","rgba(255, 79, 79, 0.84)","rgba(253, 90, 87, 0.92)","#ffa8a0","#ffe1df","#fff8f7"],light:["#ffffff","#fef8f7","#fff0ee","#ffe7e4","#ffded8","#ffcec5","#ffb9ab","#ff9c88","#ff775c","#f35837","#ce461e","#9b3206","#64260f"],lightA:["rgba(255, 255, 255, 0.01)","rgba(230, 80, 55, 0.04)","rgba(255, 41, 12, 0.07)","rgba(255, 37, 10, 0.11)","rgba(255, 49, 11, 0.16)","rgba(255, 42, 3, 0.23)","rgba(255, 43, 0, 0.33)","rgba(255, 44, 2, 0.47)","rgba(255, 43, 0, 0.64)","rgba(240, 44, 2, 0.79)","#ce461e","#9b3206","#64260f"]},wn={dark:["#060f18","#001a35","#002949","#003961","#005389","#0067a9","#007cc9","#0091eb","#00a2fe","#4cb3ff","#9cdaff","#cfedfd","#f8f9ff"],darkA:["rgba(60, 150, 240, 0.1)","rgba(0, 124, 252, 0.21)","rgba(0, 141, 252, 0.29)","rgba(0, 150, 255, 0.38)","rgba(0, 154, 254, 0.54)","rgba(0, 154, 252, 0.67)","rgba(0, 157, 254, 0.79)","rgba(0, 158, 255, 0.92)","#00a2fe","#4cb3ff","#9cdaff","#cfedfd","#f8f9ff"],light:["#ffffff","#f8f9ff","#edf4ff","#e3edff","#d7e6ff","#c0d9ff","#a0c7ff","#72aeff","#2c91ff","#0076e3","#0060cc","#004ebf","#1b3671"],lightA:["rgba(255, 255, 255, 0.01)","rgba(22, 55, 255, 0.03)","rgba(30, 117, 255, 0.08)","rgba(0, 91, 255, 0.11)","rgba(5, 99, 255, 0.16)","rgba(3, 103, 255, 0.25)","rgba(5, 108, 255, 0.38)","rgba(3, 110, 255, 0.56)","rgba(1, 122, 255, 0.83)","#0076e3","#0060cc","#004ebf","#1b3671"]},$n={dark:["#0a1004","#061f00","#102e00","#1c3f00","#315a09","#3e6f06","#518b03","#67a70a","#71b814","#80c933","#bae48c","#deeec7","#f9faef"],darkA:["rgba(143, 229, 57, 0.07)","rgba(46, 238, 0, 0.13)","rgba(84, 242, 0, 0.19)","rgba(112, 252, 0, 0.25)","rgba(136, 250, 25, 0.36)","rgba(141, 252, 14, 0.44)","rgba(147, 253, 5, 0.55)","rgba(156, 253, 15, 0.66)","rgba(155, 252, 27, 0.73)","rgba(162, 254, 65, 0.79)","#bae48c","#deeec7","#f9faef"],light:["#ffffff","#f8fbf1","#eef6e6","#e1f1d9","#d4eccc","#bde3b6","#a0d89c","#71c87a","#30b556","#00a03f","#00864e","#006342","#00422b"],lightA:["rgba(255, 255, 255, 0.01)","rgba(138, 188, 22, 0.06)","rgba(85, 165, 5, 0.1)","rgba(55, 162, 2, 0.15)","rgba(40, 160, 0, 0.2)","rgba(27, 158, 3, 0.29)","rgba(11, 155, 1, 0.39)","rgba(1, 157, 18, 0.56)","rgba(3, 165, 49, 0.82)","#00a03f","#00864e","#006342","#00422b"]},An={dark:["#150d02","#251700","#3c2200","#512f00","#724600","#8d5700","#ae6e00","#e39a00","#f6aa00","#ffbe45","#ffdd9c","#ffe5b8","#fff8f3"],darkA:["rgba(233, 144, 22, 0.09)","rgba(247, 153, 0, 0.15)","rgba(250, 142, 0, 0.24)","rgba(253, 147, 0, 0.32)","rgba(253, 156, 0, 0.45)","rgba(252, 155, 0, 0.56)","rgba(252, 159, 0, 0.69)","rgba(255, 173, 0, 0.89)","rgba(254, 175, 0, 0.97)","#ffbe45","#ffdd9c","#ffe5b8","#fff8f3"],light:["#ffffff","#fff8f3","#fff2e2","#ffe9cc","#ffe1b3","#ffda9a","#ffd17f","#ffca61","#ffbe2b","#feb400","#d78f00","#6d5200","#4a3600"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 115, 15, 0.05)","rgba(255, 147, 13, 0.12)","rgba(255, 145, 0, 0.2)","rgba(255, 155, 2, 0.3)","rgba(255, 163, 3, 0.4)","rgba(255, 165, 4, 0.51)","rgba(255, 170, 0, 0.62)","rgba(255, 177, 0, 0.83)","#feb400","#d78f00","#6d5200","#4a3600"]},ve={error:yn,info:wn,success:$n,warning:An},Or=new Map,vn=e=>!!e&&Or.has(e),Sn=e=>vn(e)?{...ve,...Or.get(e)}:ve,l0={dark:["#000000","#0d0d0d","#1a1a1a","#202020","#2d2d2d","#444444","#555555","#666666","#6f6f6f","#777777","#aaaaaa","#dddddd","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.06)","rgba(255, 255, 255, 0.10)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.24)","rgba(255, 255, 255, 0.28)","rgba(255, 255, 255, 0.32)","rgba(255, 255, 255, 0.38)","rgba(255, 255, 255, 0.44)","rgba(255, 255, 255, 0.5)","rgba(255, 255, 255, 0.66)","rgba(255, 255, 255, 0.84)","#ffffff"],light:["#ffffff","#f8f8f8","#eeeeee","#e3e3e3","#dddddd","#cccccc","#bbbbbb","#aaaaaa","#999999","#888888","#666666","#333333","#080808"],lightA:["rgba(0, 0, 0, 0.015)","rgba(0, 0, 0, 0.03)","rgba(0, 0, 0, 0.06)","rgba(0, 0, 0, 0.12)","rgba(0, 0, 0, 0.18)","rgba(0, 0, 0, 0.24)","rgba(0, 0, 0, 0.32)","rgba(0, 0, 0, 0.38)","rgba(0, 0, 0, 0.44)","rgba(0, 0, 0, 0.5)","rgba(0, 0, 0, 0.68)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.98)"]},Rr={dark:["#000000","#1c1b1e","#252528","#2f2f32","#3a393d","#454448","#504f53","#5b5a5f","#67666a","#737177","#7f7d83","#bbb9bd","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(233, 225, 250, 0.12)","rgba(231, 231, 250, 0.16)","rgba(235, 235, 250, 0.2)","rgba(242, 237, 254, 0.24)","rgba(238, 234, 248, 0.29)","rgba(242, 239, 252, 0.33)","rgba(239, 237, 250, 0.38)","rgba(245, 243, 252, 0.42)","rgba(245, 240, 253, 0.47)","rgba(244, 240, 252, 0.52)","rgba(253, 250, 255, 0.74)","#ffffff"],light:["#ffffff","#fcf8fb","#edeaed","#dfdcdf","#d1ced2","#c2c0c4","#b4b2b7","#a7a4a9","#99979c","#8c8a90","#7f7d83","#4a494d","#111"],lightA:["rgba(0, 0, 0, 0.015)","rgba(155, 22, 122, 0.03)","rgba(55, 22, 55, 0.09)","rgba(26, 5, 26, 0.14)","rgba(25, 10, 30, 0.2)","rgba(11, 3, 19, 0.25)","rgba(13, 7, 23, 0.31)","rgba(11, 2, 16, 0.36)","rgba(6, 1, 14, 0.41)","rgba(5, 1, 14, 0.46)","rgba(4, 0, 12, 0.51)","rgba(4, 2, 8, 0.72)","rgba(3, 2, 5, 0.9)"]},Ir={dark:["#000000","#1a1c1b","#232624","#2d302e","#383a38","#424542","#4d504d","#585c58","#646763","#70736e","#7c7f79","#b9bab5","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(236, 255, 245, 0.11)","rgba(233, 253, 240, 0.15)","rgba(237, 253, 242, 0.19)","rgba(243, 252, 243, 0.23)","rgba(236, 246, 236, 0.28)","rgba(241, 250, 241, 0.32)","rgba(238, 249, 238, 0.37)","rgba(244, 251, 241, 0.41)","rgba(243, 250, 239, 0.46)","rgba(248, 254, 242, 0.5)","rgba(253, 255, 248, 0.73)","#ffffff"],light:["#ffffff","#faf9f4","#ecebe6","#ddddd7","#cfcfc9","#c0c1bb","#b2b4ae","#a4a6a0","#969993","#898c86","#7c7f79","#484b48","#111"],lightA:["rgba(0, 0, 0, 0.015)","rgba(155, 135, 35, 0.05)","rgba(65, 55, 5, 0.1)","rgba(43, 43, 5, 0.16)","rgba(37, 37, 10, 0.22)","rgba(22, 25, 3, 0.27)","rgba(14, 21, 2, 0.32)","rgba(16, 21, 5, 0.38)","rgba(11, 18, 4, 0.43)","rgba(9, 15, 3, 0.48)","rgba(8, 13, 2, 0.53)","rgba(1, 5, 1, 0.72)","rgba(1, 3, 2, 0.9)"]},Hr={dark:["#000000","#1a1b1c","#232526","#2d2f30","#383a3a","#424545","#4d5050","#585c5c","#636766","#6e7371","#797f7c","#b5bab6","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(236, 246, 255, 0.11)","rgba(233, 246, 253, 0.15)","rgba(237, 248, 253, 0.19)","rgba(243, 252, 252, 0.23)","rgba(236, 246, 246, 0.28)","rgba(241, 250, 250, 0.32)","rgba(238, 249, 249, 0.37)","rgba(241, 251, 248, 0.41)","rgba(239, 250, 246, 0.46)","rgba(242, 254, 248, 0.5)","rgba(248, 255, 250, 0.73)","rgba(255, 255, 255, 1)"],light:["#ffffff","#f5faf4","#e7ece6","#d7ddd7","#c9cfc9","#bbc1bc","#aeb4b0","#a0a6a2","#939996","#868c89","#797f7c","#484b4b","#111111"],lightA:["rgba(0, 0, 0, 0.015)","rgba(55, 155, 35, 0.05)","rgba(15, 65, 5, 0.1)","rgba(5, 43, 5, 0.16)","rgba(10, 37, 10, 0.22)","rgba(3, 25, 6, 0.27)","rgba(2, 21, 9, 0.32)","rgba(5, 21, 10, 0.38)","rgba(4, 18, 11, 0.43)","rgba(3, 15, 9, 0.48)","rgba(2, 13, 7, 0.53)","rgba(1, 5, 5, 0.72)","rgba(1, 2, 3, 0.9)"]},Pr={dark:["#000000","#1c1c18","#262521","#30302b","#3a3a35","#45453f","#505049","#5c5b54","#67675f","#73726a","#7f7e76","#bcbab2","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 218, 0.11)","rgba(253, 247, 220, 0.15)","rgba(253, 253, 226, 0.19)","rgba(252, 252, 230, 0.23)","rgba(246, 246, 225, 0.28)","rgba(250, 250, 228, 0.32)","rgba(249, 246, 227, 0.37)","rgba(251, 251, 232, 0.41)","rgba(250, 248, 230, 0.46)","rgba(254, 252, 236, 0.5)","rgba(254, 251, 241, 0.74)","rgba(255, 252, 245, 0.99)"],light:["#ffffff","#fcf9f3","#edebe4","#dfddd5","#d1cfc7","#c3c1b9","#b5b3ab","#a7a69d","#999890","#8c8b83","#7f7e76","#4b4a44","#111"],lightA:["rgba(0, 0, 0, 0.015)","rgba(195, 135, 15, 0.05)","rgba(91, 73, 10, 0.11)","rgba(67, 55, 8, 0.17)","rgba(46, 37, 0, 0.22)","rgba(41, 34, 5, 0.28)","rgba(31, 25, 0, 0.33)","rgba(29, 27, 4, 0.39)","rgba(23, 21, 3, 0.44)","rgba(20, 18, 2, 0.49)","rgba(18, 16, 1, 0.54)","rgba(12, 10, 2, 0.74)","rgba(6, 6, 1, 0.91)"]},zr={dark:["#000000","#1b1c1d","#242527","#2e2f32","#383a3c","#434547","#4e5052","#595b5e","#64676a","#707276","#7b7e82","#b8babc","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(225, 233, 242, 0.12)","rgba(225, 231, 244, 0.16)","rgba(230, 235, 250, 0.2)","rgba(233, 242, 250, 0.24)","rgba(239, 246, 254, 0.28)","rgba(236, 242, 248, 0.33)","rgba(241, 246, 254, 0.37)","rgba(238, 245, 252, 0.42)","rgba(238, 243, 251, 0.47)","rgba(241, 247, 255, 0.51)","rgba(249, 251, 254, 0.74)","#ffffff"],light:["#ffffff","#f9f9fa","#ebebec","#dcddde","#cecfd0","#bfc1c3","#b1b3b5","#a4a6a8","#96989b","#898b8e","#7b7e82","#484a4d","#111"],lightA:["rgba(0, 0, 0, 0.015)","rgba(55, 55, 88, 0.03)","rgba(5, 5, 17, 0.08)","rgba(5, 12, 19, 0.14)","rgba(10, 15, 20, 0.2)","rgba(9, 17, 24, 0.26)","rgba(3, 10, 16, 0.31)","rgba(2, 8, 13, 0.36)","rgba(5, 10, 17, 0.42)","rgba(4, 8, 15, 0.47)","rgba(1, 7, 15, 0.52)","rgba(1, 4, 8, 0.72)","rgba(2, 3, 4, 0.9)"]},Ue={mauve:Rr,olive:Ir,sage:Hr,sand:Pr,slate:zr},Xr={gray:{dark:["#e6e6e6","#b4b4b4","#8f8f8f","#6b6b6b"],light:["#1f1f1f","#666666","#8a8a8a","#b0b0b0"]},mauve:{dark:["#e9e5ec","#b6b3b9","#908e94","#6c6a70"],light:["#1f1f23","#67656b","#8b898f","#b1afb5"]},olive:{dark:["#e5e7e1","#b2b5af","#8d908b","#696c67"],light:["#1d201c","#646762","#888b85","#aeb1aa"]},sage:{dark:["#e3e7e4","#b0b5b3","#8b908e","#676c6a"],light:["#1b201e","#616765","#868c89","#abb1ae"]},sand:{dark:["#e9e6dc","#b6b4ab","#918f87","#6c6b63"],light:["#1f201a","#67665f","#8b8a82","#b2b0a8"]},slate:{dark:["#e5e6ea","#b3b4b8","#8d8f93","#696b6f"],light:["#1d1f22","#646669","#888a8d","#aeb0b3"]}},{min:Mn,max:Cn}=Math,g0=(e,r=0,t=1)=>Mn(Cn(r,e),t),Ee=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let r=0;r<=3;r++)r<3?((e[r]<0||e[r]>255)&&(e._clipped=!0),e[r]=g0(e[r],0,255)):r===3&&(e[r]=g0(e[r],0,1));return e},Gr={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])Gr[`[object ${e}]`]=e.toLowerCase();function E(e){return Gr[Object.prototype.toString.call(e)]||"object"}const L=(e,r=null)=>e.length>=3?Array.prototype.slice.call(e):E(e[0])=="object"&&r?r.split("").filter(t=>e[0][t]!==void 0).map(t=>e[0][t]):e[0].slice(0),A0=e=>{if(e.length<2)return null;const r=e.length-1;return E(e[r])=="string"?e[r].toLowerCase():null},{PI:te,min:Fr,max:Dr}=Math,U=e=>Math.round(e*100)/100,Se=e=>Math.round(e*100)/100,n0=te*2,ie=te/3,_n=te/180,Ln=180/te;function qr(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const _={format:{},autodetect:[]};class u{constructor(...r){const t=this;if(E(r[0])==="object"&&r[0].constructor&&r[0].constructor===this.constructor)return r[0];let n=A0(r),a=!1;if(!n){a=!0,_.sorted||(_.autodetect=_.autodetect.sort((o,f)=>f.p-o.p),_.sorted=!0);for(let o of _.autodetect)if(n=o.test(...r),n)break}if(_.format[n]){const o=_.format[n].apply(null,a?r:r.slice(0,-1));t._rgb=Ee(o)}else throw new Error("unknown format: "+r);t._rgb.length===3&&t._rgb.push(1)}toString(){return E(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}}const En="3.2.0",M=(...e)=>new u(...e);M.version=En;const y0={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Tn=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Bn=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Wr=e=>{if(e.match(Tn)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const r=parseInt(e,16),t=r>>16,n=r>>8&255,a=r&255;return[t,n,a,1]}if(e.match(Bn)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const r=parseInt(e,16),t=r>>24&255,n=r>>16&255,a=r>>8&255,o=Math.round((r&255)/255*100)/100;return[t,n,a,o]}throw new Error(`unknown hex color: ${e}`)},{round:H0}=Math,Yr=(...e)=>{let[r,t,n,a]=L(e,"rgba"),o=A0(e)||"auto";a===void 0&&(a=1),o==="auto"&&(o=a<1?"rgba":"rgb"),r=H0(r),t=H0(t),n=H0(n);let c="000000"+(r<<16|t<<8|n).toString(16);c=c.substr(c.length-6);let s="0"+H0(a*255).toString(16);switch(s=s.substr(s.length-2),o.toLowerCase()){case"rgba":return`#${c}${s}`;case"argb":return`#${s}${c}`;default:return`#${c}`}};u.prototype.name=function(){const e=Yr(this._rgb,"rgb");for(let r of Object.keys(y0))if(y0[r]===e)return r.toLowerCase();return e};_.format.named=e=>{if(e=e.toLowerCase(),y0[e])return Wr(y0[e]);throw new Error("unknown color name: "+e)};_.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&E(e)==="string"&&y0[e.toLowerCase()])return"named"}});u.prototype.alpha=function(e,r=!1){return e!==void 0&&E(e)==="number"?r?(this._rgb[3]=e,this):new u([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]};u.prototype.clipped=function(){return this._rgb._clipped||!1};const e0={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},Nn=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function a0(e){const r=Nn.get(String(e).toLowerCase());if(!r)throw new Error("unknown Lab illuminant "+e);e0.labWhitePoint=e,e0.Xn=r[0],e0.Zn=r[1]}function B0(){return e0.labWhitePoint}const Te=(...e)=>{e=L(e,"lab");const[r,t,n]=e,[a,o,f]=jn(r,t,n),[c,s,i]=Zr(a,o,f);return[c,s,i,e.length>3?e[3]:1]},jn=(e,r,t)=>{const{kE:n,kK:a,kKE:o,Xn:f,Yn:c,Zn:s}=e0,i=(e+16)/116,b=.002*r+i,l=i-.005*t,g=b*b*b,m=l*l*l,k=g>n?g:(116*b-16)/a,y=e>o?Math.pow((e+16)/116,3):e/a,p=m>n?m:(116*l-16)/a,h=k*f,A=y*c,C=p*s;return[h,A,C]},be=e=>{const r=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*r},Zr=(e,r,t)=>{const{MtxAdaptMa:n,MtxAdaptMaI:a,MtxXYZ2RGB:o,RefWhiteRGB:f,Xn:c,Yn:s,Zn:i}=e0,b=c*n.m00+s*n.m10+i*n.m20,l=c*n.m01+s*n.m11+i*n.m21,g=c*n.m02+s*n.m12+i*n.m22,m=f.X*n.m00+f.Y*n.m10+f.Z*n.m20,k=f.X*n.m01+f.Y*n.m11+f.Z*n.m21,y=f.X*n.m02+f.Y*n.m12+f.Z*n.m22,p=(e*n.m00+r*n.m10+t*n.m20)*(m/b),h=(e*n.m01+r*n.m11+t*n.m21)*(k/l),A=(e*n.m02+r*n.m12+t*n.m22)*(y/g),C=p*a.m00+h*a.m10+A*a.m20,B=p*a.m01+h*a.m11+A*a.m21,j=p*a.m02+h*a.m12+A*a.m22,N=be(C*o.m00+B*o.m10+j*o.m20),x=be(C*o.m01+B*o.m11+j*o.m21),d=be(C*o.m02+B*o.m12+j*o.m22);return[N*255,x*255,d*255]},Be=(...e)=>{const[r,t,n,...a]=L(e,"rgb"),[o,f,c]=Ur(r,t,n),[s,i,b]=On(o,f,c);return[s,i,b,...a.length>0&&a[0]<1?[a[0]]:[]]};function On(e,r,t){const{Xn:n,Yn:a,Zn:o,kE:f,kK:c}=e0,s=e/n,i=r/a,b=t/o,l=s>f?Math.pow(s,1/3):(c*s+16)/116,g=i>f?Math.pow(i,1/3):(c*i+16)/116,m=b>f?Math.pow(b,1/3):(c*b+16)/116;return[116*g-16,500*(l-g),200*(g-m)]}function le(e){const r=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*r}const Ur=(e,r,t)=>{e=le(e/255),r=le(r/255),t=le(t/255);const{MtxRGB2XYZ:n,MtxAdaptMa:a,MtxAdaptMaI:o,Xn:f,Yn:c,Zn:s,As:i,Bs:b,Cs:l}=e0;let g=e*n.m00+r*n.m10+t*n.m20,m=e*n.m01+r*n.m11+t*n.m21,k=e*n.m02+r*n.m12+t*n.m22;const y=f*a.m00+c*a.m10+s*a.m20,p=f*a.m01+c*a.m11+s*a.m21,h=f*a.m02+c*a.m12+s*a.m22;let A=g*a.m00+m*a.m10+k*a.m20,C=g*a.m01+m*a.m11+k*a.m21,B=g*a.m02+m*a.m12+k*a.m22;return A*=y/i,C*=p/b,B*=h/l,g=A*o.m00+C*o.m10+B*o.m20,m=A*o.m01+C*o.m11+B*o.m21,k=A*o.m02+C*o.m12+B*o.m22,[g,m,k]};u.prototype.lab=function(){return Be(this._rgb)};const Rn=(...e)=>new u(...e,"lab");Object.assign(M,{lab:Rn,getLabWhitePoint:B0,setLabWhitePoint:a0});_.format.lab=Te;_.autodetect.push({p:2,test:(...e)=>{if(e=L(e,"lab"),E(e)==="array"&&e.length===3)return"lab"}});u.prototype.darken=function(e=1){const r=this,t=r.lab();return t[0]-=e0.Kn*e,new u(t,"lab").alpha(r.alpha(),!0)};u.prototype.brighten=function(e=1){return this.darken(-e)};u.prototype.darker=u.prototype.darken;u.prototype.brighter=u.prototype.brighten;u.prototype.get=function(e){const[r,t]=e.split("."),n=this[r]();if(t){const a=r.indexOf(t)-(r.substr(0,2)==="ok"?2:0);if(a>-1)return n[a];throw new Error(`unknown channel ${t} in mode ${r}`)}else return n};const{pow:In}=Math,Hn=1e-7,Pn=20;u.prototype.luminance=function(e,r="rgb"){if(e!==void 0&&E(e)==="number"){if(e===0)return new u([0,0,0,this._rgb[3]],"rgb");if(e===1)return new u([255,255,255,this._rgb[3]],"rgb");let t=this.luminance(),n=Pn;const a=(f,c)=>{const s=f.interpolate(c,.5,r),i=s.luminance();return Math.abs(e-i)<Hn||!n--?s:i>e?a(f,s):a(s,c)},o=(t>e?a(new u([0,0,0]),this):a(this,new u([255,255,255]))).rgb();return new u([...o,this._rgb[3]])}return zn(...this._rgb.slice(0,3))};const zn=(e,r,t)=>(e=ge(e),r=ge(r),t=ge(t),.2126*e+.7152*r+.0722*t),ge=e=>(e/=255,e<=.03928?e/12.92:In((e+.055)/1.055,2.4)),F={},w0=(e,r,t=.5,...n)=>{let a=n[0]||"lrgb";if(!F[a]&&!n.length&&(a=Object.keys(F)[0]),!F[a])throw new Error(`interpolation mode ${a} is not defined`);return E(e)!=="object"&&(e=new u(e)),E(r)!=="object"&&(r=new u(r)),F[a](e,r,t).alpha(e.alpha()+t*(r.alpha()-e.alpha()))};u.prototype.mix=u.prototype.interpolate=function(e,r=.5,...t){return w0(this,e,r,...t)};u.prototype.premultiply=function(e=!1){const r=this._rgb,t=r[3];return e?(this._rgb=[r[0]*t,r[1]*t,r[2]*t,t],this):new u([r[0]*t,r[1]*t,r[2]*t,t],"rgb")};const{sin:Xn,cos:Gn}=Math,Kr=(...e)=>{let[r,t,n]=L(e,"lch");return isNaN(n)&&(n=0),n=n*_n,[r,Gn(n)*t,Xn(n)*t]},Ne=(...e)=>{e=L(e,"lch");const[r,t,n]=e,[a,o,f]=Kr(r,t,n),[c,s,i]=Te(a,o,f);return[c,s,i,e.length>3?e[3]:1]},Fn=(...e)=>{const r=qr(L(e,"hcl"));return Ne(...r)},{sqrt:Dn,atan2:qn,round:Wn}=Math,Vr=(...e)=>{const[r,t,n]=L(e,"lab"),a=Dn(t*t+n*n);let o=(qn(n,t)*Ln+360)%360;return Wn(a*1e4)===0&&(o=Number.NaN),[r,a,o]},je=(...e)=>{const[r,t,n,...a]=L(e,"rgb"),[o,f,c]=Be(r,t,n),[s,i,b]=Vr(o,f,c);return[s,i,b,...a.length>0&&a[0]<1?[a[0]]:[]]};u.prototype.lch=function(){return je(this._rgb)};u.prototype.hcl=function(){return qr(je(this._rgb))};const Yn=(...e)=>new u(...e,"lch"),Zn=(...e)=>new u(...e,"hcl");Object.assign(M,{lch:Yn,hcl:Zn});_.format.lch=Ne;_.format.hcl=Fn;["lch","hcl"].forEach(e=>_.autodetect.push({p:2,test:(...r)=>{if(r=L(r,e),E(r)==="array"&&r.length===3)return e}}));u.prototype.saturate=function(e=1){const r=this,t=r.lch();return t[1]+=e0.Kn*e,t[1]<0&&(t[1]=0),new u(t,"lch").alpha(r.alpha(),!0)};u.prototype.desaturate=function(e=1){return this.saturate(-e)};u.prototype.set=function(e,r,t=!1){const[n,a]=e.split("."),o=this[n]();if(a){const f=n.indexOf(a)-(n.substr(0,2)==="ok"?2:0);if(f>-1){if(E(r)=="string")switch(r.charAt(0)){case"+":o[f]+=+r;break;case"-":o[f]+=+r;break;case"*":o[f]*=+r.substr(1);break;case"/":o[f]/=+r.substr(1);break;default:o[f]=+r}else if(E(r)==="number")o[f]=r;else throw new Error("unsupported value for Color.set");const c=new u(o,n);return t?(this._rgb=c._rgb,this):c}throw new Error(`unknown channel ${a} in mode ${n}`)}else return o};u.prototype.tint=function(e=.5,...r){return w0(this,"white",e,...r)};u.prototype.shade=function(e=.5,...r){return w0(this,"black",e,...r)};const Un=(e,r,t)=>{const n=e._rgb,a=r._rgb;return new u(n[0]+t*(a[0]-n[0]),n[1]+t*(a[1]-n[1]),n[2]+t*(a[2]-n[2]),"rgb")};F.rgb=Un;const{sqrt:de,pow:d0}=Math,Kn=(e,r,t)=>{const[n,a,o]=e._rgb,[f,c,s]=r._rgb;return new u(de(d0(n,2)*(1-t)+d0(f,2)*t),de(d0(a,2)*(1-t)+d0(c,2)*t),de(d0(o,2)*(1-t)+d0(s,2)*t),"rgb")};F.lrgb=Kn;const Vn=(e,r,t)=>{const n=e.lab(),a=r.lab();return new u(n[0]+t*(a[0]-n[0]),n[1]+t*(a[1]-n[1]),n[2]+t*(a[2]-n[2]),"lab")};F.lab=Vn;const v0=(e,r,t,n)=>{let a,o;n==="hsl"?(a=e.hsl(),o=r.hsl()):n==="hsv"?(a=e.hsv(),o=r.hsv()):n==="hcg"?(a=e.hcg(),o=r.hcg()):n==="hsi"?(a=e.hsi(),o=r.hsi()):n==="lch"||n==="hcl"?(n="hcl",a=e.hcl(),o=r.hcl()):n==="oklch"&&(a=e.oklch().reverse(),o=r.oklch().reverse());let f,c,s,i,b,l;(n.substr(0,1)==="h"||n==="oklch")&&([f,s,b]=a,[c,i,l]=o);let g,m,k,y;return!isNaN(f)&&!isNaN(c)?(c>f&&c-f>180?y=c-(f+360):c<f&&f-c>180?y=c+360-f:y=c-f,m=f+t*y):isNaN(f)?isNaN(c)?m=Number.NaN:(m=c,(b==1||b==0)&&n!="hsv"&&(g=i)):(m=f,(l==1||l==0)&&n!="hsv"&&(g=s)),g===void 0&&(g=s+t*(i-s)),k=b+t*(l-b),n==="oklch"?new u([k,g,m],n):new u([m,g,k],n)},Qr=(e,r,t)=>v0(e,r,t,"lch");F.lch=Qr;F.hcl=Qr;const Qn=e=>{if(E(e)=="number"&&e>=0&&e<=16777215){const r=e>>16,t=e>>8&255,n=e&255;return[r,t,n,1]}throw new Error("unknown num color: "+e)},Jn=(...e)=>{const[r,t,n]=L(e,"rgb");return(r<<16)+(t<<8)+n};u.prototype.num=function(){return Jn(this._rgb)};const ea=(...e)=>new u(...e,"num");Object.assign(M,{num:ea});_.format.num=Qn;_.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&E(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const ra=(e,r,t)=>{const n=e.num(),a=r.num();return new u(n+t*(a-n),"num")};F.num=ra;const{floor:ta}=Math,na=(...e)=>{e=L(e,"hcg");let[r,t,n]=e,a,o,f;n=n*255;const c=t*255;if(t===0)a=o=f=n;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const s=ta(r),i=r-s,b=n*(1-t),l=b+c*(1-i),g=b+c*i,m=b+c;switch(s){case 0:[a,o,f]=[m,g,b];break;case 1:[a,o,f]=[l,m,b];break;case 2:[a,o,f]=[b,m,g];break;case 3:[a,o,f]=[b,l,m];break;case 4:[a,o,f]=[g,b,m];break;case 5:[a,o,f]=[m,b,l];break}}return[a,o,f,e.length>3?e[3]:1]},aa=(...e)=>{const[r,t,n]=L(e,"rgb"),a=Fr(r,t,n),o=Dr(r,t,n),f=o-a,c=f*100/255,s=a/(255-f)*100;let i;return f===0?i=Number.NaN:(r===o&&(i=(t-n)/f),t===o&&(i=2+(n-r)/f),n===o&&(i=4+(r-t)/f),i*=60,i<0&&(i+=360)),[i,c,s]};u.prototype.hcg=function(){return aa(this._rgb)};const oa=(...e)=>new u(...e,"hcg");M.hcg=oa;_.format.hcg=na;_.autodetect.push({p:1,test:(...e)=>{if(e=L(e,"hcg"),E(e)==="array"&&e.length===3)return"hcg"}});const fa=(e,r,t)=>v0(e,r,t,"hcg");F.hcg=fa;const{cos:u0}=Math,ca=(...e)=>{e=L(e,"hsi");let[r,t,n]=e,a,o,f;return isNaN(r)&&(r=0),isNaN(t)&&(t=0),r>360&&(r-=360),r<0&&(r+=360),r/=360,r<1/3?(f=(1-t)/3,a=(1+t*u0(n0*r)/u0(ie-n0*r))/3,o=1-(f+a)):r<2/3?(r-=1/3,a=(1-t)/3,o=(1+t*u0(n0*r)/u0(ie-n0*r))/3,f=1-(a+o)):(r-=2/3,o=(1-t)/3,f=(1+t*u0(n0*r)/u0(ie-n0*r))/3,a=1-(o+f)),a=g0(n*a*3),o=g0(n*o*3),f=g0(n*f*3),[a*255,o*255,f*255,e.length>3?e[3]:1]},{min:sa,sqrt:ia,acos:ba}=Math,la=(...e)=>{let[r,t,n]=L(e,"rgb");r/=255,t/=255,n/=255;let a;const o=sa(r,t,n),f=(r+t+n)/3,c=f>0?1-o/f:0;return c===0?a=NaN:(a=(r-t+(r-n))/2,a/=ia((r-t)*(r-t)+(r-n)*(t-n)),a=ba(a),n>t&&(a=n0-a),a/=n0),[a*360,c,f]};u.prototype.hsi=function(){return la(this._rgb)};const ga=(...e)=>new u(...e,"hsi");M.hsi=ga;_.format.hsi=ca;_.autodetect.push({p:2,test:(...e)=>{if(e=L(e,"hsi"),E(e)==="array"&&e.length===3)return"hsi"}});const da=(e,r,t)=>v0(e,r,t,"hsi");F.hsi=da;const Me=(...e)=>{e=L(e,"hsl");const[r,t,n]=e;let a,o,f;if(t===0)a=o=f=n*255;else{const c=[0,0,0],s=[0,0,0],i=n<.5?n*(1+t):n+t-n*t,b=2*n-i,l=r/360;c[0]=l+1/3,c[1]=l,c[2]=l-1/3;for(let g=0;g<3;g++)c[g]<0&&(c[g]+=1),c[g]>1&&(c[g]-=1),6*c[g]<1?s[g]=b+(i-b)*6*c[g]:2*c[g]<1?s[g]=i:3*c[g]<2?s[g]=b+(i-b)*(2/3-c[g])*6:s[g]=b;[a,o,f]=[s[0]*255,s[1]*255,s[2]*255]}return e.length>3?[a,o,f,e[3]]:[a,o,f,1]},Jr=(...e)=>{e=L(e,"rgba");let[r,t,n]=e;r/=255,t/=255,n/=255;const a=Fr(r,t,n),o=Dr(r,t,n),f=(o+a)/2;let c,s;return o===a?(c=0,s=Number.NaN):c=f<.5?(o-a)/(o+a):(o-a)/(2-o-a),r==o?s=(t-n)/(o-a):t==o?s=2+(n-r)/(o-a):n==o&&(s=4+(r-t)/(o-a)),s*=60,s<0&&(s+=360),e.length>3&&e[3]!==void 0?[s,c,f,e[3]]:[s,c,f]};u.prototype.hsl=function(){return Jr(this._rgb)};const ua=(...e)=>new u(...e,"hsl");M.hsl=ua;_.format.hsl=Me;_.autodetect.push({p:2,test:(...e)=>{if(e=L(e,"hsl"),E(e)==="array"&&e.length===3)return"hsl"}});const ha=(e,r,t)=>v0(e,r,t,"hsl");F.hsl=ha;const{floor:pa}=Math,ma=(...e)=>{e=L(e,"hsv");let[r,t,n]=e,a,o,f;if(n*=255,t===0)a=o=f=n;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const c=pa(r),s=r-c,i=n*(1-t),b=n*(1-t*s),l=n*(1-t*(1-s));switch(c){case 0:[a,o,f]=[n,l,i];break;case 1:[a,o,f]=[b,n,i];break;case 2:[a,o,f]=[i,n,l];break;case 3:[a,o,f]=[i,b,n];break;case 4:[a,o,f]=[l,i,n];break;case 5:[a,o,f]=[n,i,b];break}}return[a,o,f,e.length>3?e[3]:1]},{min:xa,max:ka}=Math,ya=(...e)=>{e=L(e,"rgb");let[r,t,n]=e;const a=xa(r,t,n),o=ka(r,t,n),f=o-a;let c,s,i;return i=o/255,o===0?(c=Number.NaN,s=0):(s=f/o,r===o&&(c=(t-n)/f),t===o&&(c=2+(n-r)/f),n===o&&(c=4+(r-t)/f),c*=60,c<0&&(c+=360)),[c,s,i]};u.prototype.hsv=function(){return ya(this._rgb)};const wa=(...e)=>new u(...e,"hsv");M.hsv=wa;_.format.hsv=ma;_.autodetect.push({p:2,test:(...e)=>{if(e=L(e,"hsv"),E(e)==="array"&&e.length===3)return"hsv"}});const $a=(e,r,t)=>v0(e,r,t,"hsv");F.hsv=$a;function U0(e,r){let t=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(r[0])||(r=r.map(f=>[f]));let n=r[0].length,a=r[0].map((f,c)=>r.map(s=>s[c])),o=e.map(f=>a.map(c=>Array.isArray(f)?f.reduce((s,i,b)=>s+i*(c[b]||0),0):c.reduce((s,i)=>s+i*f,0)));return t===1&&(o=o[0]),n===1?o.map(f=>f[0]):o}const Oe=(...e)=>{e=L(e,"lab");const[r,t,n,...a]=e,[o,f,c]=Aa([r,t,n]),[s,i,b]=Zr(o,f,c);return[s,i,b,...a.length>0&&a[0]<1?[a[0]]:[]]};function Aa(e){var r=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],t=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],n=U0(t,e);return U0(r,n.map(a=>a**3))}const Re=(...e)=>{const[r,t,n,...a]=L(e,"rgb"),o=Ur(r,t,n);return[...va(o),...a.length>0&&a[0]<1?[a[0]]:[]]};function va(e){const r=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],t=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],n=U0(r,e);return U0(t,n.map(a=>Math.cbrt(a)))}u.prototype.oklab=function(){return Re(this._rgb)};const Sa=(...e)=>new u(...e,"oklab");Object.assign(M,{oklab:Sa});_.format.oklab=Oe;_.autodetect.push({p:2,test:(...e)=>{if(e=L(e,"oklab"),E(e)==="array"&&e.length===3)return"oklab"}});const Ma=(e,r,t)=>{const n=e.oklab(),a=r.oklab();return new u(n[0]+t*(a[0]-n[0]),n[1]+t*(a[1]-n[1]),n[2]+t*(a[2]-n[2]),"oklab")};F.oklab=Ma;const Ca=(e,r,t)=>v0(e,r,t,"oklch");F.oklch=Ca;const{pow:ue,sqrt:he,PI:pe,cos:Ke,sin:Ve,atan2:_a}=Math,La=(e,r="lrgb",t=null)=>{const n=e.length;t||(t=Array.from(new Array(n)).map(()=>1));const a=n/t.reduce(function(l,g){return l+g});if(t.forEach((l,g)=>{t[g]*=a}),e=e.map(l=>new u(l)),r==="lrgb")return Ea(e,t);const o=e.shift(),f=o.get(r),c=[];let s=0,i=0;for(let l=0;l<f.length;l++)if(f[l]=(f[l]||0)*t[0],c.push(isNaN(f[l])?0:t[0]),r.charAt(l)==="h"&&!isNaN(f[l])){const g=f[l]/180*pe;s+=Ke(g)*t[0],i+=Ve(g)*t[0]}let b=o.alpha()*t[0];e.forEach((l,g)=>{const m=l.get(r);b+=l.alpha()*t[g+1];for(let k=0;k<f.length;k++)if(!isNaN(m[k]))if(c[k]+=t[g+1],r.charAt(k)==="h"){const y=m[k]/180*pe;s+=Ke(y)*t[g+1],i+=Ve(y)*t[g+1]}else f[k]+=m[k]*t[g+1]});for(let l=0;l<f.length;l++)if(r.charAt(l)==="h"){let g=_a(i/c[l],s/c[l])/pe*180;for(;g<0;)g+=360;for(;g>=360;)g-=360;f[l]=g}else f[l]=f[l]/c[l];return b/=n,new u(f,r).alpha(b>.99999?1:b,!0)},Ea=(e,r)=>{const t=e.length,n=[0,0,0,0];for(let a=0;a<e.length;a++){const o=e[a],f=r[a]/t,c=o._rgb;n[0]+=ue(c[0],2)*f,n[1]+=ue(c[1],2)*f,n[2]+=ue(c[2],2)*f,n[3]+=c[3]*f}return n[0]=he(n[0]),n[1]=he(n[1]),n[2]=he(n[2]),n[3]>.9999999&&(n[3]=1),new u(Ee(n))},{pow:Ta}=Math;function K0(e){let r="rgb",t=M("#ccc"),n=0,a=[0,1],o=[0,1],f=[],c=[0,0],s=!1,i=[],b=!1,l=0,g=1,m=!1,k={},y=!0,p=1;const h=function(d){if(d=d||["#fff","#000"],d&&E(d)==="string"&&M.brewer&&M.brewer[d.toLowerCase()]&&(d=M.brewer[d.toLowerCase()]),E(d)==="array"){d.length===1&&(d=[d[0],d[0]]),d=d.slice(0);for(let w=0;w<d.length;w++)d[w]=M(d[w]);f.length=0;for(let w=0;w<d.length;w++)f.push(w/(d.length-1))}return N(),i=d},A=function(d){if(s!=null){const w=s.length-1;let v=0;for(;v<w&&d>=s[v];)v++;return v-1}return 0};let C=d=>d,B=d=>d;const j=function(d,w){let v,$;if(w==null&&(w=!1),isNaN(d)||d===null)return t;w?$=d:s&&s.length>2?$=A(d)/(s.length-2):g!==l?$=(d-l)/(g-l):$=1,$=B($),w||($=C($)),p!==1&&($=Ta($,p)),$=c[0]+$*(1-c[0]-c[1]),$=g0($,0,1);const T=Math.floor($*1e4);if(y&&k[T])v=k[T];else{if(E(i)==="array")for(let S=0;S<f.length;S++){const D=f[S];if($<=D){v=i[S];break}if($>=D&&S===f.length-1){v=i[S];break}if($>D&&$<f[S+1]){$=($-D)/(f[S+1]-D),v=M.interpolate(i[S],i[S+1],$,r);break}}else E(i)==="function"&&(v=i($));y&&(k[T]=v)}return v};var N=()=>k={};h(e);const x=function(d){const w=M(j(d));return b&&w[b]?w[b]():w};return x.classes=function(d){if(d!=null){if(E(d)==="array")s=d,a=[d[0],d[d.length-1]];else{const w=M.analyze(a);d===0?s=[w.min,w.max]:s=M.limits(w,"e",d)}return x}return s},x.domain=function(d){if(!arguments.length)return o;o=d.slice(0),l=d[0],g=d[d.length-1],f=[];const w=i.length;if(d.length===w&&l!==g)for(let v of Array.from(d))f.push((v-l)/(g-l));else{for(let v=0;v<w;v++)f.push(v/(w-1));if(d.length>2){const v=d.map((T,S)=>S/(d.length-1)),$=d.map(T=>(T-l)/(g-l));$.every((T,S)=>v[S]===T)||(B=T=>{if(T<=0||T>=1)return T;let S=0;for(;T>=$[S+1];)S++;const D=(T-$[S])/($[S+1]-$[S]);return v[S]+D*(v[S+1]-v[S])})}}return a=[l,g],x},x.mode=function(d){return arguments.length?(r=d,N(),x):r},x.range=function(d,w){return h(d),x},x.out=function(d){return b=d,x},x.spread=function(d){return arguments.length?(n=d,x):n},x.correctLightness=function(d){return d==null&&(d=!0),m=d,N(),m?C=function(w){const v=j(0,!0).lab()[0],$=j(1,!0).lab()[0],T=v>$;let S=j(w,!0).lab()[0];const D=v+($-v)*w;let f0=S-D,R0=0,_0=1,I0=20;for(;Math.abs(f0)>.01&&I0-- >0;)(function(){return T&&(f0*=-1),f0<0?(R0=w,w+=(_0-w)*.5):(_0=w,w+=(R0-w)*.5),S=j(w,!0).lab()[0],f0=S-D})();return w}:C=w=>w,x},x.padding=function(d){return d!=null?(E(d)==="number"&&(d=[d,d]),c=d,x):c},x.colors=function(d,w){arguments.length<2&&(w="hex");let v=[];if(arguments.length===0)v=i.slice(0);else if(d===1)v=[x(.5)];else if(d>1){const $=a[0],T=a[1]-$;v=Ba(0,d).map(S=>x($+S/(d-1)*T))}else{e=[];let $=[];if(s&&s.length>2)for(let T=1,S=s.length,D=1<=S;D?T<S:T>S;D?T++:T--)$.push((s[T-1]+s[T])*.5);else $=a;v=$.map(T=>x(T))}return M[w]&&(v=v.map($=>$[w]())),v},x.cache=function(d){return d!=null?(y=d,x):y},x.gamma=function(d){return d!=null?(p=d,x):p},x.nodata=function(d){return d!=null?(t=M(d),x):t},x}function Ba(e,r,t){let n=[],a=e<r,o=r;for(let f=e;a?f<o:f>o;a?f++:f--)n.push(f);return n}const Na=function(e){let r=[1,1];for(let t=1;t<e;t++){let n=[1];for(let a=1;a<=r.length;a++)n[a]=(r[a]||0)+r[a-1];r=n}return r},ja=function(e){let r,t,n,a;if(e=e.map(o=>new u(o)),e.length===2)[t,n]=e.map(o=>o.lab()),r=function(o){const f=[0,1,2].map(c=>t[c]+o*(n[c]-t[c]));return new u(f,"lab")};else if(e.length===3)[t,n,a]=e.map(o=>o.lab()),r=function(o){const f=[0,1,2].map(c=>(1-o)*(1-o)*t[c]+2*(1-o)*o*n[c]+o*o*a[c]);return new u(f,"lab")};else if(e.length===4){let o;[t,n,a,o]=e.map(f=>f.lab()),r=function(f){const c=[0,1,2].map(s=>(1-f)*(1-f)*(1-f)*t[s]+3*(1-f)*(1-f)*f*n[s]+3*(1-f)*f*f*a[s]+f*f*f*o[s]);return new u(c,"lab")}}else if(e.length>=5){let o,f,c;o=e.map(s=>s.lab()),c=e.length-1,f=Na(c),r=function(s){const i=1-s,b=[0,1,2].map(l=>o.reduce((g,m,k)=>g+f[k]*i**(c-k)*s**k*m[l],0));return new u(b,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return r},Oa=e=>{const r=ja(e);return r.scale=()=>K0(r),r},{round:et}=Math;u.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(et)};u.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((r,t)=>t<3?e===!1?r:et(r):r)};const Ra=(...e)=>new u(...e,"rgb");Object.assign(M,{rgb:Ra});_.format.rgb=(...e)=>{const r=L(e,"rgba");return r[3]===void 0&&(r[3]=1),r};_.autodetect.push({p:3,test:(...e)=>{if(e=L(e,"rgba"),E(e)==="array"&&(e.length===3||e.length===4&&E(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const Q=(e,r,t)=>{if(!Q[t])throw new Error("unknown blend mode "+t);return Q[t](e,r)},i0=e=>(r,t)=>{const n=M(t).rgb(),a=M(r).rgb();return M.rgb(e(n,a))},b0=e=>(r,t)=>{const n=[];return n[0]=e(r[0],t[0]),n[1]=e(r[1],t[1]),n[2]=e(r[2],t[2]),n},Ia=e=>e,Ha=(e,r)=>e*r/255,Pa=(e,r)=>e>r?r:e,za=(e,r)=>e>r?e:r,Xa=(e,r)=>255*(1-(1-e/255)*(1-r/255)),Ga=(e,r)=>r<128?2*e*r/255:255*(1-2*(1-e/255)*(1-r/255)),Fa=(e,r)=>255*(1-(1-r/255)/(e/255)),Da=(e,r)=>e===255?255:(e=255*(r/255)/(1-e/255),e>255?255:e);Q.normal=i0(b0(Ia));Q.multiply=i0(b0(Ha));Q.screen=i0(b0(Xa));Q.overlay=i0(b0(Ga));Q.darken=i0(b0(Pa));Q.lighten=i0(b0(za));Q.dodge=i0(b0(Da));Q.burn=i0(b0(Fa));const{pow:qa,sin:Wa,cos:Ya}=Math;function Za(e=300,r=-1.5,t=1,n=1,a=[0,1]){let o=0,f;E(a)==="array"?f=a[1]-a[0]:(f=0,a=[a,a]);const c=function(s){const i=n0*((e+120)/360+r*s),b=qa(a[0]+f*s,n),g=(o!==0?t[0]+s*o:t)*b*(1-b)/2,m=Ya(i),k=Wa(i),y=b+g*(-.14861*m+1.78277*k),p=b+g*(-.29227*m-.90649*k),h=b+g*(1.97294*m);return M(Ee([y*255,p*255,h*255,1]))};return c.start=function(s){return s==null?e:(e=s,c)},c.rotations=function(s){return s==null?r:(r=s,c)},c.gamma=function(s){return s==null?n:(n=s,c)},c.hue=function(s){return s==null?t:(t=s,E(t)==="array"?(o=t[1]-t[0],o===0&&(t=t[1])):o=0,c)},c.lightness=function(s){return s==null?a:(E(s)==="array"?(a=s,f=s[1]-s[0]):(a=[s,s],f=0),c)},c.scale=()=>M.scale(c),c.hue(t),c}const Ua="0123456789abcdef",{floor:Ka,random:Va}=Math,Qa=(e=Va)=>{let r="#";for(let t=0;t<6;t++)r+=Ua.charAt(Ka(e()*16));return new u(r,"hex")},{log:Qe,pow:Ja,floor:eo,abs:ro}=Math;function rt(e,r=null){const t={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return E(e)==="object"&&(e=Object.values(e)),e.forEach(n=>{r&&E(n)==="object"&&(n=n[r]),n!=null&&!isNaN(n)&&(t.values.push(n),t.sum+=n,n<t.min&&(t.min=n),n>t.max&&(t.max=n),t.count+=1)}),t.domain=[t.min,t.max],t.limits=(n,a)=>tt(t,n,a),t}function tt(e,r="equal",t=7){E(e)=="array"&&(e=rt(e));const{min:n,max:a}=e,o=e.values.sort((c,s)=>c-s);if(t===1)return[n,a];const f=[];if(r.substr(0,1)==="c"&&(f.push(n),f.push(a)),r.substr(0,1)==="e"){f.push(n);for(let c=1;c<t;c++)f.push(n+c/t*(a-n));f.push(a)}else if(r.substr(0,1)==="l"){if(n<=0)throw new Error("Logarithmic scales are only possible for values > 0");const c=Math.LOG10E*Qe(n),s=Math.LOG10E*Qe(a);f.push(n);for(let i=1;i<t;i++)f.push(Ja(10,c+i/t*(s-c)));f.push(a)}else if(r.substr(0,1)==="q"){f.push(n);for(let c=1;c<t;c++){const s=(o.length-1)*c/t,i=eo(s);if(i===s)f.push(o[i]);else{const b=s-i;f.push(o[i]*(1-b)+o[i+1]*b)}}f.push(a)}else if(r.substr(0,1)==="k"){let c;const s=o.length,i=new Array(s),b=new Array(t);let l=!0,g=0,m=null;m=[],m.push(n);for(let p=1;p<t;p++)m.push(n+p/t*(a-n));for(m.push(a);l;){for(let h=0;h<t;h++)b[h]=0;for(let h=0;h<s;h++){const A=o[h];let C=Number.MAX_VALUE,B;for(let j=0;j<t;j++){const N=ro(m[j]-A);N<C&&(C=N,B=j),b[B]++,i[h]=B}}const p=new Array(t);for(let h=0;h<t;h++)p[h]=null;for(let h=0;h<s;h++)c=i[h],p[c]===null?p[c]=o[h]:p[c]+=o[h];for(let h=0;h<t;h++)p[h]*=1/b[h];l=!1;for(let h=0;h<t;h++)if(p[h]!==m[h]){l=!0;break}m=p,g++,g>200&&(l=!1)}const k={};for(let p=0;p<t;p++)k[p]=[];for(let p=0;p<s;p++)c=i[p],k[c].push(o[p]);let y=[];for(let p=0;p<t;p++)y.push(k[p][0]),y.push(k[p][k[p].length-1]);y=y.sort((p,h)=>p-h),f.push(y[0]);for(let p=1;p<y.length;p+=2){const h=y[p];!isNaN(h)&&f.indexOf(h)===-1&&f.push(h)}}return f}const to=(e,r)=>{e=new u(e),r=new u(r);const t=e.luminance(),n=r.luminance();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)};/**
|
|
2
2
|
* @license
|
|
3
3
|
*
|
|
4
4
|
* The APCA contrast prediction algorithm is based of the formulas published
|