Skip to content

Conversation

@estherbrunner
Copy link
Member

No description provided.

@@ -0,0 +1,8 @@
var V0,i5=new Set,v5=0,Ao=new Map,Lf,qf=()=>{Lf=void 0;let o=Array.from(Ao.values());Ao.clear();for(let n of o)n()};queueMicrotask(qf);var _o=(o)=>{let n=new Set,f=o;return f.off=(u)=>{n.add(u)},f.cleanup=()=>{for(let u of n)u();n.clear()},f},N5=(o)=>{if(V0&&!o.has(V0)){let n=V0;o.add(n),V0.off(()=>{o.delete(n)})}},e0=(o)=>{for(let n of o)if(v5)i5.add(n);else n()},vo=()=>{while(i5.size){let o=Array.from(i5);i5.clear();for(let n of o)n()}},M0=(o)=>{v5++;try{o()}finally{vo(),v5--}},Bo=(o,n)=>{let f=V0;V0=n;try{o()}finally{V0=f}};var l=(o)=>typeof o==="function",co=(o,n)=>Object.prototype.toString.call(o)===`[object ${n}]`,B5=(o)=>o instanceof Error?o:Error(String(o));class H5 extends Error{constructor(o){super(`Circular dependency in ${o} detected`);this.name="CircularDependencyError"}}var So="State",V=(o)=>{let n=new Set,f=o,u={[Symbol.toStringTag]:So,get:()=>{return N5(n),f},set:(p)=>{if(Object.is(f,p))return;if(f=p,e0(n),v===f)n.clear()},update:(p)=>{u.set(p(f))}};return u},y5=(o)=>co(o,So),v=Symbol(),x5=(o)=>y5(o)||Ko(o),c5=(o)=>x5(o)?o:Xf(o)?B(o):V(o),z5="Computed",B=(o)=>{let n=new Set,f=v,u,p,m=!0,b=!1,r=!1,d=(x)=>{if(!Object.is(x,f))f=x,b=!0;u=void 0,m=!1},M=()=>{b=v!==f,f=v,u=void 0},w=(x)=>{let X=B5(x);b=!u||X.name!==u.name||X.message!==u.message,f=v,u=X},R=(x)=>(X)=>{if(r=!1,p=void 0,x(X),b)e0(n)},Y=_o(()=>{if(m=!0,p?.abort("Aborted because source signal changed"),n.size)e0(n);else Y.cleanup()}),F=()=>Bo(()=>{if(r)throw new H5("computed");if(b=!1,l(o)&&o.constructor.name==="AsyncFunction"){if(p)return f;p=new AbortController,p.signal.addEventListener("abort",()=>{r=!1,p=void 0,F()},{once:!0})}let x;r=!0;try{x=p?o(p.signal):o()}catch(X){if(X instanceof DOMException&&X.name==="AbortError")M();else w(X);r=!1;return}if(x instanceof Promise)x.then(R(d),R(w));else if(x==null||v===x)M();else d(x);r=!1},Y);return{[Symbol.toStringTag]:z5,get:()=>{if(N5(n),vo(),m)F();if(u)throw u;return f}}},Ko=(o)=>co(o,z5),Xf=(o)=>l(o)&&o.length<2;function c(o){let{signals:n,ok:f,err:u=(r)=>{console.error(r)},nil:p=()=>{}}=l(o)?{signals:[],ok:o}:o,m=!1,b=_o(()=>Bo(()=>{if(m)throw new H5("effect");m=!0;let r=[],d=!1,M=n.map((R)=>{try{let Y=R.get();if(Y===v)d=!0;return Y}catch(Y){return r.push(B5(Y)),v}}),w;try{w=d?p():r.length?u(...r):f(...M)}catch(R){w=u(B5(R))}finally{if(l(w))b.off(w)}m=!1},b));return b(),()=>b.cleanup()}var T0=!1,Of="debug";var eo="warn",H0="error",Ef=(o)=>o?`#${o}`:"",Pf=(o)=>o?.length?`.${Array.from(o).join(".")}`:"",s5=(o)=>!!o&&typeof o==="object",Z0=(o)=>typeof o==="string",Uf=(o,n)=>Z0(n)&&(n in o)&&l(o[n]),Cf=(o)=>o.nodeType===Node.ELEMENT_NODE,S5=(o)=>o.localName.includes("-"),J=(o)=>o?`<${o.localName}${Ef(o.id)}${Pf(o.classList)}>`:"<unknown>",g5=(o)=>Z0(o)?`"${o}"`:s5(o)?JSON.stringify(o):String(o),_5=(o)=>{if(o===null)return"null";if(typeof o!=="object")return typeof o;if(Array.isArray(o))return"Array";if(Symbol.toStringTag in Object(o))return o[Symbol.toStringTag];return o.constructor?.name||"Object"},f0=(o,n,f=Of)=>{if(T0||[H0,eo].includes(f))console[f](n,o);return o};class lo extends Error{constructor(o,n){super(`Circular dependency detected in selection signal for component ${J(o)} with selector "${n}"`);this.name="CircularMutationError"}}class Ho extends Error{constructor(o){super(`Invalid component name "${o}". Custom element names must contain a hyphen, start with a lowercase letter, and contain only lowercase letters, numbers, and hyphens.`);this.name="InvalidComponentNameError"}}class K5 extends Error{constructor(o,n,f){super(`Invalid property name "${n}" for component <${o}>. ${f}`);this.name="InvalidPropertyNameError"}}class so extends Error{constructor(o,n){super(`Invalid effects in component ${J(o)}. Effects must be an array of effects, a single effect function, or a Promise that resolves to effects.`);if(this.name="InvalidEffectsError",n)this.cause=n}}class on extends Error{constructor(o,n){super(`Expected signal as value for property "${String(n)}" in component ${J(o)}.`);this.name="InvalidSignalError"}}class I0 extends Error{constructor(o,n,f){super(`Missing required element <${n}> in component ${J(o)}. ${f}`);this.name="MissingElementError"}}class nn extends Error{constructor(o,n){super(`Timeout waiting for: [${n.join(", ")}] in component ${J(o)}.`);this.name="DependencyTimeoutError"}}var l0=Symbol("RESET"),R5=(o,n,f=n)=>{try{if(o instanceof Promise)throw o;if(!Array.isArray(o))return o(n,f);let u=o.filter(l).map((p)=>p(n,f));return()=>{u.filter(l).forEach((p)=>p()),u.length=0}}catch(u){if(u instanceof Promise)u.then(()=>R5(o,n,f));else throw new so(n,u instanceof Error?u:new Error(String(u)))}},oo=(o,n,f,u)=>{try{return Z0(o)?n.getSignal(o).get():x5(o)?o.get():l(o)?o(f):l0}catch(p){if(u)f0(p,`Failed to resolve value of ${g5(o)}${u?` for ${u}`:""} in ${J(f)}${n!==f?` in ${J(n)}`:""}`,H0);return l0}},Qf=(o)=>{let n=new Set;if(o.includes("."))n.add("class");if(o.includes("#"))n.add("id");if(o.includes("[")){let f=o.split("[");for(let u=1;u<f.length;u++){let p=f[u];if(!p.includes("]"))continue;let m=p.split("=")[0].trim().replace(/[^a-zA-Z0-9_-]/g,"");if(m)n.add(m)}}return[...n]},Vf=(o,n)=>{if(o.length!==n.length)return!1;let f=new Set(o);for(let u of n)if(!f.has(u))return!1;return!0},e5=(o)=>l(o)&&o.length>=2,a0=(o,n)=>l(n)?n(o):n,C=(o,n)=>(f)=>{let u=f.shadowRoot??f,p=(b,r)=>{let d=u.querySelector(b);if(!d)return;let M=r(d);if(M!=null)return M},m=void 0;for(let[b,r]of Object.entries(o))if(m=p(b,r),m!=null)break;return Z0(m)&&e5(n)?n(f,m):m??a0(f,n)},fn=(o,n,f)=>{let u=new MutationObserver(f),p={childList:!0,subtree:!0},m=Qf(n);if(m.length)p.attributes=!0,p.attributeFilter=m;return u.observe(o,p),u},af=(o)=>{let n=o.shadowRoot??o,f=new Set;function u(m,b){let r=n.querySelector(m);if(b!=null&&!r)throw new I0(o,m,b);if(r&&S5(r)&&r.matches(":not(:defined)"))f.add(r.localName);return r}function p(m,b){let r=n.querySelectorAll(m);if(b!=null&&!r.length)throw new I0(o,m,b);if(r.length)r.forEach((d)=>{if(S5(d)&&d.matches(":not(:defined)"))f.add(d.localName)});return Array.from(r)}return[{useElement:u,useElements:p,first:(m,b,r)=>{let d=r!=null?u(m,r):u(m);return()=>{if(d)return R5(b,o,d)}},all:(m,b,r)=>{let d=r!=null?p(m,r):p(m);return()=>{let M=new Map,w=(x)=>{let X=R5(b,o,x);if(X&&!M.has(x))M.set(x,X)},R=(x)=>{let X=M.get(x);if(X)X();M.delete(x)},Y=(x)=>(X)=>{if(Cf(X)){if(X.matches(m))x(X);X.querySelectorAll(m).forEach(x)}},F=fn(n,m,(x)=>{for(let X of x)X.addedNodes.forEach(Y(w)),X.removedNodes.forEach(Y(R))});if(d.length)d.forEach(w);return()=>{F.disconnect(),M.forEach((x)=>x()),M.clear()}}}},()=>Array.from(f)]};function u0(o){return(n)=>{let f=new Set,u=()=>Array.from((n.shadowRoot??n).querySelectorAll(o)),p=v,m,b=0,r=2,d=()=>{p=u(),m=fn(n,o,()=>{if(!f.size){m?.disconnect(),m=void 0;return}if(b++,b>r)throw m?.disconnect(),m=void 0,b=0,new lo(n,o);try{let M=u();if(!Vf(p,M))p=M,e0(f)}finally{b--}})};return{[Symbol.toStringTag]:z5,get(){if(N5(f),!f.size)p=u();else if(!m)d();return p}}}}var If=50,Gf=new Set(["constructor","prototype"]),hf=new Set(["id","class","className","title","role","style","dataset","lang","dir","hidden","children","innerHTML","outerHTML","textContent","innerText"]),$o=(o)=>{if(Gf.has(o))return`Property name "${o}" is a reserved word`;if(hf.has(o))return`Property name "${o}" conflicts with inherited HTMLElement property`;return null};function z(o,n={},f){if(!o.includes("-")||!o.match(/^[a-z][a-z0-9-]*$/))throw new Ho(o);for(let p of Object.keys(n)){let m=$o(p);if(m)throw new K5(o,p,m)}class u extends HTMLElement{debug;#o={};#n;static observedAttributes=Object.entries(n)?.filter(([,p])=>e5(p)).map(([p])=>p)??[];connectedCallback(){if(T0){if(this.debug=this.hasAttribute("debug"),this.debug)f0(this,"Connected")}for(let[M,w]of Object.entries(n)){if(w==null||M in this)continue;let R=l(w)?w(this,null):w;if(R!=null)this.setSignal(M,c5(R))}let[p,m]=af(this),b=f(this,p),r=m(),d=()=>{let M=R5(b,this);if(M)this.#n=M};if(r.length)Promise.race([Promise.all(r.map((M)=>customElements.whenDefined(M))),new Promise((M,w)=>{setTimeout(()=>{w(new nn(this,r.filter((R)=>!customElements.get(R))))},If)})]).then(d).catch((M)=>{if(T0)f0(M,`Error during setup of <${o}>. Trying to run effects anyway.`,eo);d()});else d()}disconnectedCallback(){if(l(this.#n))this.#n();if(T0&&this.debug)f0(this,"Disconnected")}attributeChangedCallback(p,m,b){if(b===m||Ko(this.#o[p]))return;let r=n[p];if(!e5(r))return;let d=r(this,b,m);if(T0&&this.debug)f0(b,`Attribute "${String(p)}" of ${J(this)} changed from ${g5(m)} to ${g5(b)}, parsed as <${_5(d)}> ${g5(d)}`);if(p in this)this[p]=d;else this.setSignal(p,c5(d))}getSignal(p){let m=this.#o[p];if(T0&&this.debug)f0(m,`Get ${_5(m)} "${String(p)}" in ${J(this)}`);return m}setSignal(p,m){let b=$o(String(p));if(b)throw new K5(this.localName,p,b);if(!x5(m))throw new on(this,p);let r=this.#o[p],d=y5(m);if(this.#o[p]=m,Object.defineProperty(this,p,{get:m.get,set:d?m.set:void 0,enumerable:!0,configurable:d}),r&&y5(r))r.set(v);if(T0&&this.debug)f0(m,`Set ${_5(m)} "${String(p)} in ${J(this)}`)}}customElements.define(o,u)}var ko="context-request";var un=(o)=>(n)=>{let f=(u)=>{let{context:p,callback:m}=u;if(o.includes(p)&&l(m))u.stopImmediatePropagation(),m(n.getSignal(String(p)))};return n.addEventListener(ko,f),()=>n.removeEventListener(ko,f)};var d0=(o,n,f)=>(u)=>{let p=new Set,m=a0(u,f),b=new Map,r,d=()=>{for(let[M,w]of Object.entries(n)){let R=(Y)=>{let F=Y.target;if(!F)return;let x=F.closest(o);if(!x||!u.contains(x))return;Y.stopPropagation();try{let X=w({event:Y,host:u,target:x,value:m});if(X==null)return;if(!Object.is(X,m)){if(m=X,p.size>0)e0(p);else if(r)r()}}catch(X){throw Y.stopImmediatePropagation(),X}};b.set(M,R),u.addEventListener(M,R)}r=()=>{if(b.size){for(let[M,w]of b)u.removeEventListener(M,w);b.clear()}r=void 0}};return{[Symbol.toStringTag]:z5,get(){if(N5(p),p.size&&!b.size)d();return m}}},N=(o,n,f=!1)=>(u,p)=>{let m=(b)=>{let r=n({host:u,target:p,event:b});if(!s5(r))return;M0(()=>{for(let[d,M]of Object.entries(r))try{u[d]=M}catch(w){f0(w,`Reactive property "${d}" on ${J(u)} from event ${o} on ${J(p)} could not be set, because it is read-only.`,H0)}})};return p.addEventListener(o,m,f),()=>p.removeEventListener(o,m)},D0=(o,n)=>(f,u)=>c(()=>{let p=oo(n,f,u,`custom event "${o}" detail`);if(p===l0||p===v)return;u.dispatchEvent(new CustomEvent(o,{detail:p,bubbles:!0}))}),Wf=(o,n="")=>{return{a:"attribute ",c:"class ",d:"dataset ",h:"inner HTML",m:"method call ",p:"property ",s:"style property ",t:"text content"}[o]+n},Jf=(o)=>{if(/^(mailto|tel):/i.test(o))return!0;if(o.includes("://"))try{let n=new URL(o,window.location.origin);return["http:","https:","ftp:"].includes(n.protocol)}catch{return!1}return!0},Zf=(o,n,f)=>{if(/^on/i.test(n))throw new Error(`Unsafe attribute: ${n}`);if(f=String(f).trim(),!Jf(f))throw new Error(`Unsafe URL for ${n}: ${f}`);o.setAttribute(n,f)},q0=(o,n)=>(f,u)=>{let{op:p,name:m="",read:b,update:r}=n,d=b(u),M=Wf(p,m),w=(Y)=>()=>{if(T0&&f.debug)f0(u,`${Y} ${M} of ${J(u)} in ${J(f)}`);n.resolve?.(u)},R=(Y)=>(F)=>{f0(F,`Failed to ${Y} ${M} of ${J(u)} in ${J(f)}`,H0),n.reject?.(F)};return c(()=>{let Y=oo(o,f,u,M),F=Y===l0?d:Y===v?n.delete?null:d:Y;if(n.delete&&F===null)try{n.delete(u),w("delete")()}catch(x){R("delete")(x)}else if(F!=null){let x=b(u);if(Object.is(F,x))return;try{r(u,F),w("update")()}catch(X){R("update")(X)}}})},s0=(o,n)=>(f,u)=>{let p=(b)=>()=>{if(T0&&f.debug)f0(u,`${b} element in ${J(u)} in ${J(f)}`);if(l(n?.resolve))n.resolve(u);else{let r=x5(o)?o:Z0(o)?f.getSignal(o):void 0;if(y5(r))r.set(0)}},m=(b)=>(r)=>{f0(r,`Failed to ${b} element in ${J(u)} in ${J(f)}`,H0),n?.reject?.(r)};return c(()=>{let b=oo(o,f,u,"insertion or deletion"),r=b===l0?0:b;if(r>0){if(!n)throw new TypeError("No inserter provided");try{for(let d=0;d<r;d++){let M=n.create(u);if(!M)continue;u.insertAdjacentElement(n.position??"beforeend",M)}p("insert")()}catch(d){m("insert")(d)}}else if(r<0)try{if(n&&(n.position==="afterbegin"||n.position==="beforeend"))for(let d=0;d>r;d--)if(n.position==="afterbegin")u.firstElementChild?.remove();else u.lastElementChild?.remove();else u.remove();p("remove")()}catch(d){m("remove")(d)}})},q=(o)=>q0(o,{op:"t",read:(n)=>n.textContent,update:(n,f)=>{Array.from(n.childNodes).filter((u)=>u.nodeType!==Node.COMMENT_NODE).forEach((u)=>u.remove()),n.append(document.createTextNode(f))}}),t=(o,n=o)=>q0(n,{op:"p",name:o,read:(f)=>(o in f)?f[o]:v,update:(f,u)=>{f[o]=u}}),a=(o)=>q0(o,{op:"p",name:"hidden",read:(n)=>!n.hidden,update:(n,f)=>{n.hidden=!f}}),U=(o,n=o)=>q0(n,{op:"a",name:o,read:(f)=>f.getAttribute(o),update:(f,u)=>{Zf(f,o,u)},delete:(f)=>{f.removeAttribute(o)}}),T5=(o,n=o)=>q0(n,{op:"a",name:o,read:(f)=>f.hasAttribute(o),update:(f,u)=>{f.toggleAttribute(o,u)}}),X0=(o,n=o)=>q0(n,{op:"c",name:o,read:(f)=>f.classList.contains(o),update:(f,u)=>{f.classList.toggle(o,u)}}),j=(o,n=o)=>q0(n,{op:"s",name:o,read:(f)=>f.style.getPropertyValue(o),update:(f,u)=>{f.style.setProperty(o,u)},delete:(f)=>{f.style.removeProperty(o)}}),o5=(o,n={})=>q0(o,{op:"h",read:(f)=>(f.shadowRoot||!n.shadowRootMode?f:null)?.innerHTML??"",update:(f,u)=>{let{shadowRootMode:p,allowScripts:m}=n;if(!u){if(f.shadowRoot)f.shadowRoot.innerHTML="<slot></slot>";return""}if(p&&!f.shadowRoot)f.attachShadow({mode:p});let b=f.shadowRoot||f;if(b.innerHTML=u,!m)return"";return b.querySelectorAll("script").forEach((r)=>{let d=document.createElement("script");d.appendChild(document.createTextNode(r.textContent??"")),b.appendChild(d),r.remove()})," with scripts"}}),I=(o)=>(n,f)=>{if(!s5(o))throw new TypeError("Reactives must be an object of passed signals");if(!S5(f))throw new TypeError(`Target ${J(f)} is not a custom element`);if(!Uf(f,"setSignal"))throw new TypeError(`Target ${J(f)} is not a Le Truc component`);for(let[u,p]of Object.entries(o))f.setSignal(u,Z0(p)?n.getSignal(p):c5(p))},$=()=>(o)=>o.textContent?.trim();var Y0=(o)=>(n)=>n[o];var jf=(o)=>(n)=>n.getAttribute(o);var D5=(o)=>C({".label":$(),[o]:jf("aria-label")},"");var l5=(o,n)=>{if(n==null)return;let f=o(n);return Number.isFinite(f)?f:void 0},j0=()=>(o,n)=>n!=null&&n!=="false",Z=(o=0)=>(n,f)=>{if(f==null)return a0(n,o);let u=f.trim();if(u.toLowerCase().startsWith("0x"))return l5((m)=>parseInt(m,16),u)??a0(n,o);let p=l5(parseFloat,f);return p!=null?Math.trunc(p):a0(n,o)},pn=(o=0)=>(n,f)=>l5(parseFloat,f)??a0(n,o),o0=(o="")=>(n,f)=>f??a0(n,o),mn=(o)=>(n,f)=>{if(f==null)return o[0];let u=f.toLowerCase();return o.find((p)=>p.toLowerCase()===u)?f:o[0]};var bn="media-motion",rn="media-theme",Mn="media-viewport",dn="media-orientation",j1=z("context-media",{[bn]:()=>{let o=matchMedia("(prefers-reduced-motion: reduce)"),n=V(o.matches);return o.addEventListener("change",(f)=>{n.set(f.matches)}),n},[rn]:()=>{let o=matchMedia("(prefers-color-scheme: dark)"),n=V(o.matches?"dark":"light");return o.addEventListener("change",(f)=>{n.set(f.matches?"dark":"light")}),n},[Mn]:(o)=>{let n=(d,M)=>{let R=o.getAttribute(d)?.trim();if(!R)return M;let Y=R.match(/em$/)?"em":"px",F=parseFloat(R);return Number.isFinite(F)?F+Y:M},f=matchMedia(`(min-width: ${n("sm","32em")})`),u=matchMedia(`(min-width: ${n("md","48em")})`),p=matchMedia(`(min-width: ${n("lg","72em")})`),m=matchMedia(`(min-width: ${n("xl","104em")})`),b=()=>{if(m.matches)return"xl";if(p.matches)return"lg";if(u.matches)return"md";if(f.matches)return"sm";return"xs"},r=V(b());return f.addEventListener("change",()=>{r.set(b())}),u.addEventListener("change",()=>{r.set(b())}),p.addEventListener("change",()=>{r.set(b())}),m.addEventListener("change",()=>{r.set(b())}),r},[dn]:()=>{let o=matchMedia("(orientation: landscape)"),n=V(o.matches?"landscape":"portrait");return o.addEventListener("change",(f)=>{n.set(f.matches?"landscape":"portrait")}),n}},()=>[un([bn,rn,Mn,dn])]);var Af=(o,n)=>{if(typeof o!=="number")return;if(n===3)return{mode:"rgb",r:(o>>8&15|o>>4&240)/255,g:(o>>4&15|o&240)/255,b:(o&15|o<<4&240)/255};if(n===4)return{mode:"rgb",r:(o>>12&15|o>>8&240)/255,g:(o>>8&15|o>>4&240)/255,b:(o>>4&15|o&240)/255,alpha:(o&15|o<<4&240)/255};if(n===6)return{mode:"rgb",r:(o>>16&255)/255,g:(o>>8&255)/255,b:(o&255)/255};if(n===8)return{mode:"rgb",r:(o>>24&255)/255,g:(o>>16&255)/255,b:(o>>8&255)/255,alpha:(o&255)/255}},Y5=Af;var $f={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},n5=$f;var kf=(o)=>{return Y5(n5[o.toLowerCase()],6)},wn=kf;var _f=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,vf=(o)=>{let n;return(n=o.match(_f))?Y5(parseInt(n[1],16),n[1].length):void 0},gn=vf;var t5="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)";var G0="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%";var f5="(?:([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%|([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?))";var yn="(?:([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)(deg|grad|rad|turn)|([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?))";var O0="\\s*,\\s*";var K1=new RegExp("^(?:([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%|([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)|none)$");var Bf=new RegExp(`^rgba?\\(\\s*${t5}${O0}${t5}${O0}${t5}\\s*(?:,\\s*${f5}\\s*)?\\)\$`),cf=new RegExp(`^rgba?\\(\\s*${G0}${O0}${G0}${O0}${G0}\\s*(?:,\\s*${f5}\\s*)?\\)\$`),Sf=(o)=>{let n={mode:"rgb"},f;if(f=o.match(Bf)){if(f[1]!==void 0)n.r=f[1]/255;if(f[2]!==void 0)n.g=f[2]/255;if(f[3]!==void 0)n.b=f[3]/255}else if(f=o.match(cf)){if(f[1]!==void 0)n.r=f[1]/100;if(f[2]!==void 0)n.g=f[2]/100;if(f[3]!==void 0)n.b=f[3]/100}else return;if(f[4]!==void 0)n.alpha=Math.max(0,Math.min(1,f[4]/100));else if(f[5]!==void 0)n.alpha=Math.max(0,Math.min(1,+f[5]));return n},Rn=Sf;var Kf=(o,n)=>o===void 0?void 0:typeof o!=="object"?Nn(o):o.mode!==void 0?o:n?{...o,mode:n}:void 0,E0=Kf;var ef=(o="rgb")=>(n)=>(n=E0(n,o))!==void 0?n.mode===o?n:m0[n.mode][o]?m0[n.mode][o](n):o==="rgb"?m0[n.mode].rgb(n):m0.rgb[o](m0[n.mode].rgb(n)):void 0,k=ef;var m0={},xn={},u5=[],no={},lf=(o)=>o,_=(o)=>{if(m0[o.mode]={...m0[o.mode],...o.toMode},Object.keys(o.fromMode||{}).forEach((n)=>{if(!m0[n])m0[n]={};m0[n][o.mode]=o.fromMode[n]}),!o.ranges)o.ranges={};if(!o.difference)o.difference={};return o.channels.forEach((n)=>{if(o.ranges[n]===void 0)o.ranges[n]=[0,1];if(!o.interpolate[n])throw new Error(`Missing interpolator for: ${n}`);if(typeof o.interpolate[n]==="function")o.interpolate[n]={use:o.interpolate[n]};if(!o.interpolate[n].fixup)o.interpolate[n].fixup=lf}),xn[o.mode]=o,(o.parse||[]).forEach((n)=>{Hf(n,o.mode)}),k(o.mode)},w0=(o)=>xn[o],Hf=(o,n)=>{if(typeof o==="string"){if(!n)throw new Error("'mode' required when 'parser' is a string");no[o]=n}else if(typeof o==="function"){if(u5.indexOf(o)<0)u5.push(o)}};var fo=/[^\x00-\x7F]|[a-zA-Z_]/,sf=/[^\x00-\x7F]|[-\w]/,y={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},D=0;function F5(o){let n=o[D],f=o[D+1];if(n==="-"||n==="+")return/\d/.test(f)||f==="."&&/\d/.test(o[D+2]);if(n===".")return/\d/.test(f);return/\d/.test(n)}function uo(o){if(D>=o.length)return!1;let n=o[D];if(fo.test(n))return!0;if(n==="-"){if(o.length-D<2)return!1;let f=o[D+1];if(f==="-"||fo.test(f))return!0;return!1}return!1}var ou={deg:1,rad:180/Math.PI,grad:0.9,turn:360};function p5(o){let n="";if(o[D]==="-"||o[D]==="+")n+=o[D++];if(n+=L5(o),o[D]==="."&&/\d/.test(o[D+1]))n+=o[D++]+L5(o);if(o[D]==="e"||o[D]==="E"){if((o[D+1]==="-"||o[D+1]==="+")&&/\d/.test(o[D+2]))n+=o[D++]+o[D++]+L5(o);else if(/\d/.test(o[D+1]))n+=o[D++]+L5(o)}if(uo(o)){let f=q5(o);if(f==="deg"||f==="rad"||f==="turn"||f==="grad")return{type:y.Hue,value:n*ou[f]};return}if(o[D]==="%")return D++,{type:y.Percentage,value:+n};return{type:y.Number,value:+n}}function L5(o){let n="";while(/\d/.test(o[D]))n+=o[D++];return n}function q5(o){let n="";while(D<o.length&&sf.test(o[D]))n+=o[D++];return n}function nu(o){let n=q5(o);if(o[D]==="(")return D++,{type:y.Function,value:n};if(n==="none")return{type:y.None,value:void 0};return{type:y.Ident,value:n}}function fu(o=""){let n=o.trim(),f=[],u;D=0;while(D<n.length){if(u=n[D++],u==="\n"||u==="\t"||u===" "){while(D<n.length&&(n[D]==="\n"||n[D]==="\t"||n[D]===" "))D++;continue}if(u===",")return;if(u===")"){f.push({type:y.ParenClose});continue}if(u==="+"){if(D--,F5(n)){f.push(p5(n));continue}return}if(u==="-"){if(D--,F5(n)){f.push(p5(n));continue}if(uo(n)){f.push({type:y.Ident,value:q5(n)});continue}return}if(u==="."){if(D--,F5(n)){f.push(p5(n));continue}return}if(u==="/"){while(D<n.length&&(n[D]==="\n"||n[D]==="\t"||n[D]===" "))D++;let p;if(F5(n)){if(p=p5(n),p.type!==y.Hue){f.push({type:y.Alpha,value:p});continue}}if(uo(n)){if(q5(n)==="none"){f.push({type:y.Alpha,value:{type:y.None,value:void 0}});continue}}return}if(/\d/.test(u)){D--,f.push(p5(n));continue}if(fo.test(u)){D--,f.push(nu(n));continue}return}return f}function uu(o){o._i=0;let n=o[o._i++];if(!n||n.type!==y.Function||n.value!=="color")return;if(n=o[o._i++],n.type!==y.Ident)return;let f=no[n.value];if(!f)return;let u={mode:f},p=zn(o,!1);if(!p)return;let m=w0(f).channels;for(let b=0,r,d;b<m.length;b++)if(r=p[b],d=m[b],r.type!==y.None){if(u[d]=r.type===y.Number?r.value:r.value/100,d==="alpha")u[d]=Math.max(0,Math.min(1,u[d]))}return u}function zn(o,n){let f=[],u;while(o._i<o.length){if(u=o[o._i++],u.type===y.None||u.type===y.Number||u.type===y.Alpha||u.type===y.Percentage||n&&u.type===y.Hue){f.push(u);continue}if(u.type===y.ParenClose){if(o._i<o.length)return;continue}return}if(f.length<3||f.length>4)return;if(f.length===4){if(f[3].type!==y.Alpha)return;f[3]=f[3].value}if(f.length===3)f.push({type:y.None,value:void 0});return f.every((p)=>p.type!==y.Alpha)?f:void 0}function pu(o,n){o._i=0;let f=o[o._i++];if(!f||f.type!==y.Function)return;let u=zn(o,n);if(!u)return;return u.unshift(f.value),u}var mu=(o)=>{if(typeof o!=="string")return;let n=fu(o),f=n?pu(n,!0):void 0,u=void 0,p=0,m=u5.length;while(p<m)if((u=u5[p++](o,f))!==void 0)return u;return n?uu(n):void 0},Nn=mu;function bu(o,n){if(!n||n[0]!=="rgb"&&n[0]!=="rgba")return;let f={mode:"rgb"},[,u,p,m,b]=n;if(u.type===y.Hue||p.type===y.Hue||m.type===y.Hue)return;if(u.type!==y.None)f.r=u.type===y.Number?u.value/255:u.value/100;if(p.type!==y.None)f.g=p.type===y.Number?p.value/255:p.value/100;if(m.type!==y.None)f.b=m.type===y.Number?m.value/255:m.value/100;if(b.type!==y.None)f.alpha=Math.min(1,Math.max(0,b.type===y.Number?b.value:b.value/100));return f}var Tn=bu;var ru=(o)=>o==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Dn=ru;var Yn=(o,n,f)=>o+f*(n-o);var Mu=(o)=>{let n=[];for(let f=0;f<o.length-1;f++){let u=o[f],p=o[f+1];if(u===void 0&&p===void 0)n.push(void 0);else if(u!==void 0&&p!==void 0)n.push([u,p]);else n.push(u!==void 0?[u,u]:[p,p])}return n},tn=(o)=>(n)=>{let f=Mu(n);return(u)=>{let p=u*f.length,m=u>=1?f.length-1:Math.max(Math.floor(p),0),b=f[m];return b===void 0?void 0:o(b[0],b[1],p-m)}};var E=tn(Yn);var S=(o)=>{let n=!1,f=o.map((u)=>{if(u!==void 0)return n=!0,u;return 1});return n?f:o};var du={mode:"rgb",channels:["r","g","b","alpha"],parse:[Tn,gn,Rn,wn,Dn,"srgb"],serialize:"srgb",interpolate:{r:E,g:E,b:E,alpha:{use:E,fixup:S}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},p0=du;var po=(o=0)=>Math.pow(Math.abs(o),2.19921875)*Math.sign(o),wu=(o)=>{let n=po(o.r),f=po(o.g),u=po(o.b),p={mode:"xyz65",x:0.5766690429101305*n+0.1855582379065463*f+0.1882286462349947*u,y:0.297344975250536*n+0.6273635662554661*f+0.0752914584939979*u,z:0.0270313613864123*n+0.0706888525358272*f+0.9913375368376386*u};if(o.alpha!==void 0)p.alpha=o.alpha;return p},mo=wu;var bo=(o)=>Math.pow(Math.abs(o),0.4547069271758437)*Math.sign(o),iu=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p={mode:"a98",r:bo(o*2.0415879038107465-n*0.5650069742788597-0.3447313507783297*f),g:bo(o*-0.9692436362808798+n*1.8759675015077206+0.0415550574071756*f),b:bo(o*0.0134442806320312-n*0.1183623922310184+1.0151749943912058*f)};if(u!==void 0)p.alpha=u;return p},ro=iu;var Mo=(o=0)=>{let n=Math.abs(o);if(n<=0.04045)return o/12.92;return(Math.sign(o)||1)*Math.pow((n+0.055)/1.055,2.4)},gu=({r:o,g:n,b:f,alpha:u})=>{let p={mode:"lrgb",r:Mo(o),g:Mo(n),b:Mo(f)};if(u!==void 0)p.alpha=u;return p},i0=gu;var yu=(o)=>{let{r:n,g:f,b:u,alpha:p}=i0(o),m={mode:"xyz65",x:0.4123907992659593*n+0.357584339383878*f+0.1804807884018343*u,y:0.2126390058715102*n+0.715168678767756*f+0.0721923153607337*u,z:0.0193308187155918*n+0.119194779794626*f+0.9505321522496607*u};if(p!==void 0)m.alpha=p;return m},g0=yu;var wo=(o=0)=>{let n=Math.abs(o);if(n>0.0031308)return(Math.sign(o)||1)*(1.055*Math.pow(n,0.4166666666666667)-0.055);return o*12.92},Ru=({r:o,g:n,b:f,alpha:u},p="rgb")=>{let m={mode:p,r:wo(o),g:wo(n),b:wo(f)};if(u!==void 0)m.alpha=u;return m},y0=Ru;var Nu=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=y0({r:o*3.2409699419045226-n*1.537383177570094-0.4986107602930034*f,g:o*-0.9692436362808796+n*1.8759675015077204+0.0415550574071756*f,b:o*0.0556300796969936-n*0.2039769588889765+1.0569715142428784*f});if(u!==void 0)p.alpha=u;return p},R0=Nu;var xu={...p0,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:(o)=>ro(g0(o)),xyz65:ro},toMode:{rgb:(o)=>R0(mo(o)),xyz65:mo}},Fn=xu;var zu=(o)=>(o=o%360)<0?o+360:o,K=zu;function io({h:o,s:n,l:f,alpha:u}){if(o=K(o!==void 0?o:0),n===void 0)n=0;if(f===void 0)f=0;let p=f+n*(f<0.5?f:1-f),m=p-(p-f)*2*Math.abs(o/60%2-1),b;switch(Math.floor(o/60)){case 0:b={r:p,g:m,b:2*f-p};break;case 1:b={r:m,g:p,b:2*f-p};break;case 2:b={r:2*f-p,g:p,b:m};break;case 3:b={r:2*f-p,g:m,b:p};break;case 4:b={r:m,g:2*f-p,b:p};break;case 5:b={r:p,g:2*f-p,b:m};break;default:b={r:2*f-p,g:2*f-p,b:2*f-p}}if(b.mode="rgb",u!==void 0)b.alpha=u;return b}function go({r:o,g:n,b:f,alpha:u}){if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=Math.max(o,n,f),m=Math.min(o,n,f),b={mode:"hsl",s:p===m?0:(p-m)/(1-Math.abs(p+m-1)),l:0.5*(p+m)};if(p-m!==0)b.h=(p===o?(n-f)/(p-m)+(n<f)*6:p===n?(f-o)/(p-m)+2:(o-n)/(p-m)+4)*60;if(u!==void 0)b.alpha=u;return b}var Tu=(o,n)=>{switch(n){case"deg":return+o;case"rad":return o/Math.PI*180;case"grad":return o/10*9;case"turn":return o*360}},Ln=Tu;var Du=new RegExp(`^hsla?\\(\\s*${yn}${O0}${G0}${O0}${G0}\\s*(?:,\\s*${f5}\\s*)?\\)\$`),Yu=(o)=>{let n=o.match(Du);if(!n)return;let f={mode:"hsl"};if(n[3]!==void 0)f.h=+n[3];else if(n[1]!==void 0&&n[2]!==void 0)f.h=Ln(n[1],n[2]);if(n[4]!==void 0)f.s=Math.min(Math.max(0,n[4]/100),1);if(n[5]!==void 0)f.l=Math.min(Math.max(0,n[5]/100),1);if(n[6]!==void 0)f.alpha=Math.max(0,Math.min(1,n[6]/100));else if(n[7]!==void 0)f.alpha=Math.max(0,Math.min(1,+n[7]));return f},qn=Yu;function tu(o,n){if(!n||n[0]!=="hsl"&&n[0]!=="hsla")return;let f={mode:"hsl"},[,u,p,m,b]=n;if(u.type!==y.None){if(u.type===y.Percentage)return;f.h=u.value}if(p.type!==y.None){if(p.type===y.Hue)return;f.s=p.value/100}if(m.type!==y.None){if(m.type===y.Hue)return;f.l=m.value/100}if(b.type!==y.None)f.alpha=Math.min(1,Math.max(0,b.type===y.Number?b.value:b.value/100));return f}var Xn=tu;var Fu=(o,n)=>{return o.map((f,u,p)=>{if(f===void 0)return f;let m=K(f);if(u===0||o[u-1]===void 0)return m;return n(m-K(p[u-1]))}).reduce((f,u)=>{if(!f.length||u===void 0||f[f.length-1]===void 0)return f.push(u),f;return f.push(u+f[f.length-1]),f},[])},P0=(o)=>Fu(o,(n)=>Math.abs(n)<=180?n:n-360*Math.sign(n));var m5=(o,n)=>{if(o.h===void 0||n.h===void 0||!o.s||!n.s)return 0;let f=K(o.h),u=K(n.h),p=Math.sin((u-f+360)/2*Math.PI/180);return 2*Math.sqrt(o.s*n.s)*p},yo=(o,n)=>{if(o.h===void 0||n.h===void 0)return 0;let f=K(o.h),u=K(n.h);if(Math.abs(u-f)>180)return f-(u-360*Math.sign(u-f));return u-f},Ro=(o,n)=>{if(o.h===void 0||n.h===void 0||!o.c||!n.c)return 0;let f=K(o.h),u=K(n.h),p=Math.sin((u-f+360)/2*Math.PI/180);return 2*Math.sqrt(o.c*n.c)*p},No=(o="rgb",n=[1,1,1,0])=>{let f=w0(o),u=f.channels,p=f.difference,m=k(o);return(b,r)=>{let d=m(b),M=m(r);return Math.sqrt(u.reduce((w,R,Y)=>{let F=p[R]?p[R](d,M):d[R]-M[R];return w+(n[Y]||0)*Math.pow(isNaN(F)?0:F,2)},0))}};var xo=(o=1,n=1,f=1)=>{let u=k("lab65");return(p,m)=>{let b=u(p),r=u(m),d=b.l,M=b.a,w=b.b,R=Math.sqrt(M*M+w*w),Y=r.l,F=r.a,x=r.b,X=Math.sqrt(F*F+x*x),W0=(R+X)/2,L=0.5*(1-Math.sqrt(Math.pow(W0,7)/(Math.pow(W0,7)+Math.pow(25,7)))),O=M*(1+L),Q=F*(1+L),n0=Math.sqrt(O*O+w*w),W=Math.sqrt(Q*Q+x*x),H=Math.abs(O)+Math.abs(w)===0?0:Math.atan2(w,O);H+=(H<0)*2*Math.PI;let i=Math.abs(Q)+Math.abs(x)===0?0:Math.atan2(x,Q);i+=(i<0)*2*Math.PI;let g=Y-d,T=W-n0,P=n0*W===0?0:i-H;P-=(P>Math.PI)*2*Math.PI,P+=(P<-Math.PI)*2*Math.PI;let A=2*Math.sqrt(n0*W)*Math.sin(P/2),s=(d+Y)/2,G=(n0+W)/2,h;if(n0*W===0)h=H+i;else h=(H+i)/2,h-=(Math.abs(H-i)>Math.PI)*Math.PI,h+=(h<0)*2*Math.PI;let r0=Math.pow(s-50,2),z0=1-0.17*Math.cos(h-Math.PI/6)+0.24*Math.cos(2*h)+0.32*Math.cos(3*h+Math.PI/30)-0.2*Math.cos(4*h-63*Math.PI/180),K0=1+0.015*r0/Math.sqrt(20+r0),J0=1+0.045*G,jo=1+0.015*G*z0,Yf=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*h-275)/25,2)),tf=2*Math.sqrt(Math.pow(G,7)/(Math.pow(G,7)+Math.pow(25,7))),Ff=-1*Math.sin(2*Yf)*tf;return Math.sqrt(Math.pow(g/(o*K0),2)+Math.pow(T/(n*J0),2)+Math.pow(A/(f*jo),2)+Ff*T/(n*J0)*A/(f*jo))}};var U0=(o)=>{let n=o.reduce((u,p)=>{if(p!==void 0){let m=p*Math.PI/180;u.sin+=Math.sin(m),u.cos+=Math.cos(m)}return u},{sin:0,cos:0}),f=Math.atan2(n.sin,n.cos)*180/Math.PI;return f<0?360+f:f};var Lu={mode:"hsl",toMode:{rgb:io},fromMode:{rgb:go},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Xn,qn],serialize:(o)=>`hsl(${o.h!==void 0?o.h:"none"} ${o.s!==void 0?o.s*100+"%":"none"} ${o.l!==void 0?o.l*100+"%":"none"}${o.alpha<1?` / ${o.alpha}`:""})`,interpolate:{h:{use:E,fixup:P0},s:E,l:E,alpha:{use:E,fixup:S}},difference:{h:m5},average:{h:U0}},On=Lu;function b5({h:o,s:n,v:f,alpha:u}){if(o=K(o!==void 0?o:0),n===void 0)n=0;if(f===void 0)f=0;let p=Math.abs(o/60%2-1),m;switch(Math.floor(o/60)){case 0:m={r:f,g:f*(1-n*p),b:f*(1-n)};break;case 1:m={r:f*(1-n*p),g:f,b:f*(1-n)};break;case 2:m={r:f*(1-n),g:f,b:f*(1-n*p)};break;case 3:m={r:f*(1-n),g:f*(1-n*p),b:f};break;case 4:m={r:f*(1-n*p),g:f*(1-n),b:f};break;case 5:m={r:f,g:f*(1-n),b:f*(1-n*p)};break;default:m={r:f*(1-n),g:f*(1-n),b:f*(1-n)}}if(m.mode="rgb",u!==void 0)m.alpha=u;return m}function r5({r:o,g:n,b:f,alpha:u}){if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=Math.max(o,n,f),m=Math.min(o,n,f),b={mode:"hsv",s:p===0?0:1-m/p,v:p};if(p-m!==0)b.h=(p===o?(n-f)/(p-m)+(n<f)*6:p===n?(f-o)/(p-m)+2:(o-n)/(p-m)+4)*60;if(u!==void 0)b.alpha=u;return b}var qu={mode:"hsv",toMode:{rgb:b5},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:r5},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:E,fixup:P0},s:E,v:E,alpha:{use:E,fixup:S}},difference:{h:m5},average:{h:U0}},En=qu;function zo({h:o,w:n,b:f,alpha:u}){if(n===void 0)n=0;if(f===void 0)f=0;if(n+f>1){let p=n+f;n/=p,f/=p}return b5({h:o,s:f===1?1:1-n/(1-f),v:1-f,alpha:u})}function To(o){let n=r5(o);if(n===void 0)return;let f=n.s!==void 0?n.s:0,u=n.v!==void 0?n.v:0,p={mode:"hwb",w:(1-f)*u,b:1-u};if(n.h!==void 0)p.h=n.h;if(n.alpha!==void 0)p.alpha=n.alpha;return p}function Xu(o,n){if(!n||n[0]!=="hwb")return;let f={mode:"hwb"},[,u,p,m,b]=n;if(u.type!==y.None){if(u.type===y.Percentage)return;f.h=u.value}if(p.type!==y.None){if(p.type===y.Hue)return;f.w=p.value/100}if(m.type!==y.None){if(m.type===y.Hue)return;f.b=m.value/100}if(b.type!==y.None)f.alpha=Math.min(1,Math.max(0,b.type===y.Number?b.value:b.value/100));return f}var Pn=Xu;var Ou={mode:"hwb",toMode:{rgb:zo},fromMode:{rgb:To},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Pn],serialize:(o)=>`hwb(${o.h!==void 0?o.h:"none"} ${o.w!==void 0?o.w*100+"%":"none"} ${o.b!==void 0?o.b*100+"%":"none"}${o.alpha<1?` / ${o.alpha}`:""})`,interpolate:{h:{use:E,fixup:P0},w:E,b:E,alpha:{use:E,fixup:S}},difference:{h:yo},average:{h:U0}},Un=Ou;var X5=Math.pow(29,3)/Math.pow(3,3),O5=Math.pow(6,3)/Math.pow(29,3);var C0={X:0.9642956764295677,Y:1,Z:0.8251046025104602},Q0={X:0.9504559270516716,Y:1,Z:1.0890577507598784},Zp=Math.pow(29,3)/Math.pow(3,3),jp=Math.pow(6,3)/Math.pow(29,3);var Do=(o)=>Math.pow(o,3)>O5?Math.pow(o,3):(116*o-16)/X5,Eu=({l:o,a:n,b:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=(o+16)/116,m=n/500+p,b=p-f/200,r={mode:"xyz50",x:Do(m)*C0.X,y:Do(p)*C0.Y,z:Do(b)*C0.Z};if(u!==void 0)r.alpha=u;return r},A0=Eu;var Pu=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=y0({r:o*3.1341359569958707-n*1.6173863321612538-0.4906619460083532*f,g:o*-0.978795502912089+n*1.916254567259524+0.03344273116131949*f,b:o*0.07195537988411677-n*0.2289768264158322+1.405386058324125*f});if(u!==void 0)p.alpha=u;return p},$0=Pu;var Uu=(o)=>$0(A0(o)),E5=Uu;var Cu=(o)=>{let{r:n,g:f,b:u,alpha:p}=i0(o),m={mode:"xyz50",x:0.436065742824811*n+0.3851514688337912*f+0.14307845442264197*u,y:0.22249319175623702*n+0.7168870538238823*f+0.06061979053616537*u,z:0.013923904500943465*n+0.09708128566574634*f+0.7140993584005155*u};if(p!==void 0)m.alpha=p;return m},k0=Cu;var Yo=(o)=>o>O5?Math.cbrt(o):(X5*o+16)/116,Qu=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=Yo(o/C0.X),m=Yo(n/C0.Y),b=Yo(f/C0.Z),r={mode:"lab",l:116*m-16,a:500*(p-m),b:200*(m-b)};if(u!==void 0)r.alpha=u;return r},_0=Qu;var Vu=(o)=>{let n=_0(k0(o));if(o.r===o.b&&o.b===o.g)n.a=n.b=0;return n},P5=Vu;function au(o,n){if(!n||n[0]!=="lab")return;let f={mode:"lab"},[,u,p,m,b]=n;if(u.type===y.Hue||p.type===y.Hue||m.type===y.Hue)return;if(u.type!==y.None)f.l=Math.min(Math.max(0,u.value),100);if(p.type!==y.None)f.a=p.type===y.Number?p.value:p.value*125/100;if(m.type!==y.None)f.b=m.type===y.Number?m.value:m.value*125/100;if(b.type!==y.None)f.alpha=Math.min(1,Math.max(0,b.type===y.Number?b.value:b.value/100));return f}var Cn=au;var Iu={mode:"lab",toMode:{xyz50:A0,rgb:E5},fromMode:{xyz50:_0,rgb:P5},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Cn],serialize:(o)=>`lab(${o.l!==void 0?o.l:"none"} ${o.a!==void 0?o.a:"none"} ${o.b!==void 0?o.b:"none"}${o.alpha<1?` / ${o.alpha}`:""})`,interpolate:{l:E,a:E,b:E,alpha:{use:E,fixup:S}}},v0=Iu;var U5=Math.pow(29,3)/Math.pow(3,3),C5=Math.pow(6,3)/Math.pow(29,3);var to=(o)=>Math.pow(o,3)>C5?Math.pow(o,3):(116*o-16)/U5,Gu=({l:o,a:n,b:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=(o+16)/116,m=n/500+p,b=p-f/200,r={mode:"xyz65",x:to(m)*Q0.X,y:to(p)*Q0.Y,z:to(b)*Q0.Z};if(u!==void 0)r.alpha=u;return r},Q5=Gu;var hu=(o)=>R0(Q5(o)),V5=hu;var Fo=(o)=>o>C5?Math.cbrt(o):(U5*o+16)/116,Wu=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=Fo(o/Q0.X),m=Fo(n/Q0.Y),b=Fo(f/Q0.Z),r={mode:"lab65",l:116*m-16,a:500*(p-m),b:200*(m-b)};if(u!==void 0)r.alpha=u;return r},a5=Wu;var Ju=(o)=>{let n=a5(g0(o));if(o.r===o.b&&o.b===o.g)n.a=n.b=0;return n},I5=Ju;var Zu={...v0,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:Q5,rgb:V5},fromMode:{xyz65:a5,rgb:I5},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}},Qn=Zu;var ju=({l:o,a:n,b:f,alpha:u},p="lch")=>{if(n===void 0)n=0;if(f===void 0)f=0;let m=Math.sqrt(n*n+f*f),b={mode:p,l:o,c:m};if(m)b.h=K(Math.atan2(f,n)*180/Math.PI);if(u!==void 0)b.alpha=u;return b},t0=ju;var Au=({l:o,c:n,h:f,alpha:u},p="lab")=>{if(f===void 0)f=0;let m={mode:p,l:o,a:n?n*Math.cos(f/180*Math.PI):0,b:n?n*Math.sin(f/180*Math.PI):0};if(u!==void 0)m.alpha=u;return m},F0=Au;function $u(o,n){if(!n||n[0]!=="lch")return;let f={mode:"lch"},[,u,p,m,b]=n;if(u.type!==y.None){if(u.type===y.Hue)return;f.l=Math.min(Math.max(0,u.value),100)}if(p.type!==y.None)f.c=Math.max(0,p.type===y.Number?p.value:p.value*150/100);if(m.type!==y.None){if(m.type===y.Percentage)return;f.h=m.value}if(b.type!==y.None)f.alpha=Math.min(1,Math.max(0,b.type===y.Number?b.value:b.value/100));return f}var Vn=$u;var ku={mode:"lch",toMode:{lab:F0,rgb:(o)=>E5(F0(o))},fromMode:{rgb:(o)=>t0(P5(o)),lab:t0},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[Vn],serialize:(o)=>`lch(${o.l!==void 0?o.l:"none"} ${o.c!==void 0?o.c:"none"} ${o.h!==void 0?o.h:"none"}${o.alpha<1?` / ${o.alpha}`:""})`,interpolate:{h:{use:E,fixup:P0},c:E,l:E,alpha:{use:E,fixup:S}},difference:{h:Ro},average:{h:U0}},B0=ku;var _u={...B0,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:(o)=>F0(o,"lab65"),rgb:(o)=>V5(F0(o,"lab65"))},fromMode:{rgb:(o)=>t0(I5(o),"lch65"),lab65:(o)=>t0(o,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},an=_u;var vu={...p0,mode:"lrgb",toMode:{rgb:y0},fromMode:{rgb:i0},parse:["srgb-linear"],serialize:"srgb-linear"},In=vu;var Bu=({l:o,a:n,b:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=Math.pow(o+0.3963377773761749*n+0.2158037573099136*f,3),m=Math.pow(o-0.1055613458156586*n-0.0638541728258133*f,3),b=Math.pow(o-0.0894841775298119*n-1.2914855480194092*f,3),r={mode:"lrgb",r:4.076741636075957*p-3.3077115392580616*m+0.2309699031821044*b,g:-1.2684379732850317*p+2.6097573492876887*m-0.3413193760026573*b,b:-0.0041960761386756*p-0.7034186179359362*m+1.7076146940746117*b};if(u!==void 0)r.alpha=u;return r},G5=Bu;var cu=({r:o,g:n,b:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=Math.cbrt(0.412221469470763*o+0.5363325372617348*n+0.0514459932675022*f),m=Math.cbrt(0.2119034958178252*o+0.6806995506452344*n+0.1073969535369406*f),b=Math.cbrt(0.0883024591900564*o+0.2817188391361215*n+0.6299787016738222*f),r={mode:"oklab",l:0.210454268309314*p+0.7936177747023054*m-0.0040720430116193*b,a:1.9779985324311684*p-2.42859224204858*m+0.450593709617411*b,b:0.0259040424655478*p+0.7827717124575296*m-0.8086757549230774*b};if(u!==void 0)r.alpha=u;return r},h5=cu;var Su=(o)=>{let n=h5(i0(o));if(o.r===o.b&&o.b===o.g)n.a=n.b=0;return n},W5=Su;var Ku=(o)=>y0(G5(o)),J5=Ku;function eu(o,n){if(!n||n[0]!=="oklab")return;let f={mode:"oklab"},[,u,p,m,b]=n;if(u.type===y.Hue||p.type===y.Hue||m.type===y.Hue)return;if(u.type!==y.None)f.l=Math.min(Math.max(0,u.type===y.Number?u.value:u.value/100),1);if(p.type!==y.None)f.a=p.type===y.Number?p.value:p.value*0.4/100;if(m.type!==y.None)f.b=m.type===y.Number?m.value:m.value*0.4/100;if(b.type!==y.None)f.alpha=Math.min(1,Math.max(0,b.type===y.Number?b.value:b.value/100));return f}var Gn=eu;var lu={...v0,mode:"oklab",toMode:{lrgb:G5,rgb:J5},fromMode:{lrgb:h5,rgb:W5},ranges:{l:[0,1],a:[-0.4,0.4],b:[-0.4,0.4]},parse:[Gn],serialize:(o)=>`oklab(${o.l!==void 0?o.l:"none"} ${o.a!==void 0?o.a:"none"} ${o.b!==void 0?o.b:"none"}${o.alpha<1?` / ${o.alpha}`:""})`},hn=lu;function Hu(o,n){if(!n||n[0]!=="oklch")return;let f={mode:"oklch"},[,u,p,m,b]=n;if(u.type!==y.None){if(u.type===y.Hue)return;f.l=Math.min(Math.max(0,u.type===y.Number?u.value:u.value/100),1)}if(p.type!==y.None)f.c=Math.max(0,p.type===y.Number?p.value:p.value*0.4/100);if(m.type!==y.None){if(m.type===y.Percentage)return;f.h=m.value}if(b.type!==y.None)f.alpha=Math.min(1,Math.max(0,b.type===y.Number?b.value:b.value/100));return f}var Wn=Hu;var su={...B0,mode:"oklch",toMode:{oklab:(o)=>F0(o,"oklab"),rgb:(o)=>J5(F0(o,"oklab"))},fromMode:{rgb:(o)=>t0(W5(o),"oklch"),oklab:(o)=>t0(o,"oklch")},parse:[Wn],serialize:(o)=>`oklch(${o.l!==void 0?o.l:"none"} ${o.c!==void 0?o.c:"none"} ${o.h!==void 0?o.h:"none"}${o.alpha<1?` / ${o.alpha}`:""})`,ranges:{l:[0,1],c:[0,0.4],h:[0,360]}},Jn=su;var o1=(o)=>{let{r:n,g:f,b:u,alpha:p}=i0(o),m={mode:"xyz65",x:0.486570948648216*n+0.265667693169093*f+0.1982172852343625*u,y:0.2289745640697487*n+0.6917385218365062*f+0.079286914093745*u,z:0*n+0.0451133818589026*f+1.043944368900976*u};if(p!==void 0)m.alpha=p;return m},Lo=o1;var n1=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=y0({r:o*2.4934969119414263-n*0.9313836179191242-0.402710784450717*f,g:o*-0.8294889695615749+n*1.7626640603183465+0.0236246858419436*f,b:o*0.0358458302437845-n*0.0761723892680418+0.9568845240076871*f},"p3");if(u!==void 0)p.alpha=u;return p},qo=n1;var f1={...p0,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:(o)=>qo(g0(o)),xyz65:qo},toMode:{rgb:(o)=>R0(Lo(o)),xyz65:Lo}},Zn=f1;var Xo=(o)=>{let n=Math.abs(o);if(n>=0.001953125)return Math.sign(o)*Math.pow(n,0.5555555555555556);return 16*o},u1=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p={mode:"prophoto",r:Xo(o*1.3457868816471585-n*0.2555720873797946-0.0511018649755453*f),g:Xo(o*-0.5446307051249019+n*1.5082477428451466+0.0205274474364214*f),b:Xo(o*0+n*0+1.2119675456389452*f)};if(u!==void 0)p.alpha=u;return p},Oo=u1;var Eo=(o=0)=>{let n=Math.abs(o);if(n>=0.03125)return Math.sign(o)*Math.pow(n,1.8);return o/16},p1=(o)=>{let n=Eo(o.r),f=Eo(o.g),u=Eo(o.b),p={mode:"xyz50",x:0.7977666449006423*n+0.1351812974005331*f+0.0313477341283922*u,y:0.2880748288194013*n+0.7118352342418731*f+0.0000899369387256*u,z:0*n+0*f+0.8251046025104602*u};if(o.alpha!==void 0)p.alpha=o.alpha;return p},Po=p1;var m1={...p0,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:Oo,rgb:(o)=>Oo(k0(o))},toMode:{xyz50:Po,rgb:(o)=>$0(Po(o))}},jn=m1;var Uo=(o)=>{let n=Math.abs(o);if(n>0.018053968510807)return(Math.sign(o)||1)*(1.09929682680944*Math.pow(n,0.45)-0.09929682680944008);return 4.5*o},b1=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p={mode:"rec2020",r:Uo(o*1.7166511879712683-n*0.3556707837763925-0.2533662813736599*f),g:Uo(o*-0.6666843518324893+n*1.6164812366349395+0.0157685458139111*f),b:Uo(o*0.0176398574453108-n*0.0427706132578085+0.9421031212354739*f)};if(u!==void 0)p.alpha=u;return p},Co=b1;var Qo=(o=0)=>{let n=Math.abs(o);if(n<0.08124285829863151)return o/4.5;return(Math.sign(o)||1)*Math.pow((n+1.09929682680944-1)/1.09929682680944,2.2222222222222223)},r1=(o)=>{let n=Qo(o.r),f=Qo(o.g),u=Qo(o.b),p={mode:"xyz65",x:0.6369580483012911*n+0.1446169035862083*f+0.1688809751641721*u,y:0.262700212011267*n+0.6779980715188708*f+0.059301716469862*u,z:0*n+0.0280726930490874*f+1.0609850577107909*u};if(o.alpha!==void 0)p.alpha=o.alpha;return p},Vo=r1;var M1={...p0,mode:"rec2020",fromMode:{xyz65:Co,rgb:(o)=>Co(g0(o))},toMode:{xyz65:Vo,rgb:(o)=>R0(Vo(o))},parse:["rec2020"],serialize:"rec2020"},An=M1;var d1={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:$0,lab:_0},fromMode:{rgb:k0,lab:A0},channels:["x","y","z","alpha"],ranges:{x:[0,0.964],y:[0,0.999],z:[0,0.825]},interpolate:{x:E,y:E,z:E,alpha:{use:E,fixup:S}}},$n=d1;var w1=(o)=>{let{x:n,y:f,z:u,alpha:p}=o;if(n===void 0)n=0;if(f===void 0)f=0;if(u===void 0)u=0;let m={mode:"xyz50",x:1.0479298208405488*n+0.0229467933410191*f-0.0501922295431356*u,y:0.0296278156881593*n+0.990434484573249*f-0.0170738250293851*u,z:-0.0092430581525912*n+0.0150551448965779*f+0.7518742899580008*u};if(p!==void 0)m.alpha=p;return m},kn=w1;var i1=(o)=>{let{x:n,y:f,z:u,alpha:p}=o;if(n===void 0)n=0;if(f===void 0)f=0;if(u===void 0)u=0;let m={mode:"xyz65",x:0.9554734527042182*n-0.0230985368742614*f+0.0632593086610217*u,y:-0.0283697069632081*n+1.0099954580058226*f+0.021041398966943*u,z:0.0123140016883199*n-0.0205076964334779*f+1.3303659366080753*u};if(p!==void 0)m.alpha=p;return m},_n=i1;var g1={mode:"xyz65",toMode:{rgb:R0,xyz50:kn},fromMode:{rgb:g0,xyz50:_n},ranges:{x:[0,0.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:E,y:E,z:E,alpha:{use:E,fixup:S}}},vn=g1;var W9=_(Fn),J9=_(On),Z9=_(En),j9=_(Un),A9=_(v0),$9=_(Qn),k9=_(B0),_9=_(an),v9=_(In),B9=_(hn),c9=_(Jn),S9=_(Zn),K9=_(jn),e9=_(An),l9=_(p0),H9=_($n),s9=_(vn);var y1=(o,n)=>Math.round(o*(n=Math.pow(10,n)))/n,R1=(o=4)=>(n)=>typeof n==="number"?y1(n,o):n,Bn=R1;var M5=Bn(2),d5=(o)=>Math.max(0,Math.min(1,o||0)),c0=(o)=>Math.round(d5(o)*255),cn=k("rgb"),N1=k("hsl"),Sn=(o)=>{if(o===void 0)return;let n=c0(o.r),f=c0(o.g),u=c0(o.b);return"#"+(16777216|n<<16|f<<8|u).toString(16).slice(1)};var Kn=(o)=>{if(o===void 0)return;let n=c0(o.r),f=c0(o.g),u=c0(o.b);if(o.alpha===void 0||o.alpha===1)return`rgb(${n}, ${f}, ${u})`;else return`rgba(${n}, ${f}, ${u}, ${M5(d5(o.alpha))})`},en=(o)=>{if(o===void 0)return;let n=M5(o.h||0),f=M5(d5(o.s)*100)+"%",u=M5(d5(o.l)*100)+"%";if(o.alpha===void 0||o.alpha===1)return`hsl(${n}, ${f}, ${u})`;else return`hsla(${n}, ${f}, ${u}, ${M5(d5(o.alpha))})`},e=(o)=>{let n=E0(o);if(!n)return;let f=w0(n.mode);if(!f.serialize||typeof f.serialize==="string"){let u=`color(${f.serialize||`--${n.mode}`} `;if(f.channels.forEach((p,m)=>{if(p!=="alpha")u+=(m?" ":"")+(n[p]!==void 0?n[p]:"none")}),n.alpha!==void 0&&n.alpha<1)u+=` / ${n.alpha}`;return u+")"}if(typeof f.serialize==="function")return f.serialize(n);return},w5=(o)=>Sn(cn(o));var ao=(o)=>Kn(cn(o)),Io=(o)=>en(N1(o));var ln=k("rgb"),Hn=(o)=>{let n={mode:o.mode,r:Math.max(0,Math.min(o.r!==void 0?o.r:0,1)),g:Math.max(0,Math.min(o.g!==void 0?o.g:0,1)),b:Math.max(0,Math.min(o.b!==void 0?o.b:0,1))};if(o.alpha!==void 0)n.alpha=o.alpha;return n},x1=(o)=>Hn(ln(o)),sn=(o)=>{return o!==void 0&&(o.r===void 0||o.r>=0&&o.r<=1)&&(o.g===void 0||o.g>=0&&o.g<=1)&&(o.b===void 0||o.b>=0&&o.b<=1)};function of(o){return sn(ln(o))}function L0(o="rgb"){let{gamut:n}=w0(o);if(!n)return(u)=>!0;let f=k(typeof n==="string"?n:o);return(u)=>sn(f(u))}function nf(o="rgb"){let{gamut:n}=w0(o);if(!n)return(m)=>E0(m);let f=typeof n==="string"?n:o,u=k(f),p=L0(f);return(m)=>{let b=E0(m);if(!b)return;let r=u(b);if(p(r))return b;let d=Hn(r);if(b.mode===d.mode)return d;return k(b.mode)(d)}}function Go(o,n="lch",f="rgb"){o=E0(o);let u=f==="rgb"?of:L0(f),p=f==="rgb"?x1:nf(f);if(o===void 0||u(o))return o;let m=k(o.mode);o=k(n)(o);let b={...o,c:0};if(!u(b))return m(p(b));let r=0,d=o.c!==void 0?o.c:0,M=w0(n).ranges.c,w=(M[1]-M[0])/Math.pow(2,13),R=b.c;while(d-r>w)if(b.c=r+(d-r)*0.5,u(b))R=b.c,r=b.c;else d=b.c;return m(u(b)?b:{...b,c:R})}var z1=(o,n=No(),f=(u)=>u)=>{let u=o.map((p,m)=>({color:f(p),i:m}));return(p,m=1,b=1/0)=>{if(isFinite(m))m=Math.max(1,Math.min(m,u.length-1));return u.forEach((r)=>{r.d=n(p,r.color)}),u.sort((r,d)=>r.d-d.d).slice(0,m).filter((r)=>r.d<b).map((r)=>o[r.i])}},ho=z1;var N0=(o={mode:"oklch",l:0.48,c:0.23,h:263})=>(n,f)=>(f?k("oklch")(f):o)??o;var x0=(o,n)=>{let f=()=>{let b=o.l,r=2*Math.log((1-b)/b);return(Math.exp(r*n)-1)/(Math.exp(r)-1)},u=()=>{return o.c*(8*Math.sin(Math.PI*(4*n+1)/6)**3-1)/7},p=o.l!==0.5?f():n,m=o.c>0?u():0;return{mode:"oklch",l:p,c:m,h:o.h}};var T1=0.71,J3=z("card-colorscale",{name:o0(C({".label strong":$()},"")),color:N0()},(o,{first:n})=>[n(".label strong",q("name")),n(".label small",q(()=>w5(o.color))),()=>c(()=>{let f=new Map,u=o.color.l>T1,p=u?0.1:0.9;f.set("base",e(o.color)),f.set("text",u?"black":"white"),f.set("text-soft",e(x0(o.color,p)));for(let m=4;m>0;m--)f.set(`lighten${m*20}`,e(x0(o.color,(5+m)/10)));for(let m=1;m<5;m++)f.set(`darken${m*20}`,e(x0(o.color,(5-m)/10)));for(let[m,b]of f)o.style.setProperty(`--color-${m}`,b)})]);var A3=z("hello-world",{name:o0(C({span:$()},""))},(o,{first:n})=>{let f=o.name;return[n("input",N("input",({target:u})=>{o.name=u.value||f}),"Needed to input the name."),n("span",q("name"),"Needed to display the name.")]});var _3=z("basic-button",{disabled:j0(),label:o0(D5("button")),badge:o0(C({".badge":$()},""))},(o,{first:n})=>[n("button",t("disabled"),"Add native <button> as descendant."),n(".label",q("label")),n(".badge",q("badge"))]);var c3=z("basic-counter",{count:d0("button",{click:({value:o})=>++o},C({span:$()},Z()))},(o,{first:n})=>[n("span",q("count"))]);var D1="en";function Y1(o,n,f={onWarn:console.warn,onError:console.error}){let u=()=>new Intl.NumberFormat(o);if(!n)return u();let{onWarn:p,onError:m}=f,b={};try{b=JSON.parse(n)}catch(x){return m?.(`Invalid JSON: ${x}`),u()}let r=b.style??"decimal",d=[];if(r==="currency"){if(!b.currency||typeof b.currency!=="string"||b.currency.length!==3)return m?.('style="currency" requires a 3-letter ISO currency (e.g. "CHF").'),u()}else d.push("currency","currencyDisplay","currencySign");if(r==="unit"){if(!b.unit||typeof b.unit!=="string")return m?.('style="unit" requires a "unit" (e.g. "liter", "kilometer-per-hour").'),u()}else d.push("unit","unitDisplay");if(b.notation&&b.notation!=="compact")d.push("compactDisplay");let M={};for(let[x,X]of Object.entries(b))if(!d.includes(x))M[x]=X;else p?.(`Option "${x}" is ignored for style="${r}".`);let{minimumFractionDigits:w,maximumFractionDigits:R}=M;if(w!=null&&R!=null&&w>R)p?.(`minimumFractionDigits (${w}) > maximumFractionDigits (${R}); swapping.`),M.minimumFractionDigits=R,M.maximumFractionDigits=w;let{minimumSignificantDigits:Y,maximumSignificantDigits:F}=M;if(Y!=null&&F!=null&&Y>F)p?.(`minimumSignificantDigits (${Y}) > maximumSignificantDigits (${F}); swapping.`),M.minimumSignificantDigits=F,M.maximumSignificantDigits=Y;try{let x=new Intl.NumberFormat(o,M);if(x.resolvedOptions().locale!==o)p(`Fall back to locale ${x.resolvedOptions().locale} instead of ${o}`);return x}catch(x){return m?.(`Options rejected by Intl.NumberFormat: ${x instanceof Error?x.message:String(x)}`),u()}}var e3=z("basic-number",{value:pn()},(o)=>{let n=Y1(o.closest("[lang]")?.getAttribute("lang")||D1,o.getAttribute("options"));return[q(()=>n.format(o.value))]});var t1="en",s3=z("basic-pluralize",{count:Z()},(o,{first:n})=>{let f=new Intl.PluralRules(o.closest("[lang]")?.getAttribute("lang")||t1,o.hasAttribute("ordinal")?{type:"ordinal"}:void 0),u=f.resolvedOptions().pluralCategories,p=[n(".count",[q(()=>String(o.count))]),n(".none",[a(()=>o.count===0)]),n(".some",[a(()=>o.count>0)])];for(let m of u)p.push(n(`.${m}`,[a(()=>f.select(o.count)===m)]));return p});var fm=z("form-checkbox",{checked:d0("input",{change:({target:o})=>o.checked},C({input:Y0("checked")},j0())),label:o0(D5("input"))},(o,{first:n,useElement:f})=>{return f('input[type="checkbox"]',"Native checkbox needed."),[T5("checked"),n(".label",q("label"))]});var h0=(o)=>{let n=0,f=!1,u=[],p=(...m)=>{if(u=m,f)return;f=!0,n=requestAnimationFrame(()=>{f=!1,o(...u)})};return p.cancel=()=>{if(f)cancelAnimationFrame(n),f=!1},p};var S0=L0("p3"),F1=L0("rgb"),L1=new Intl.NumberFormat("en-US",{maximumFractionDigits:2}).format,q1=new Intl.NumberFormat("en-US",{maximumFractionDigits:4}).format,ff=20,Wo=0.71,b0={l:1,c:0.4,h:360},Jo={l:0.0025,c:0.001,h:1},X1={l:0.05,c:0.02,h:15},uf=(o,n)=>n?X1[o]:Jo[o],wm=z("form-colorgraph",{color:N0(),lightness:(o)=>()=>o.color.l,chroma:(o)=>()=>o.color.c,hue:(o)=>()=>o.color.h??0,stepDown:()=>{},stepUp:()=>{}},(o,{all:n,first:f,useElement:u})=>{let p={l:u('input[name="lightness"]','Add an <input[name="lightness"]> element to control the lightness of the color.'),c:u('input[name="chroma"]','Add an <input[name="chroma"]> element to control the chroma of the color.'),h:u('input[name="hue"]','Add an <input[name="hue"]> element to control the hue of the color.')},m=u(".graph","Add a <.graph> element as a container for the color graph."),b=u(".graph canvas","Add a <canvas> element inside the graph to display the lightness/chroma graph."),r=u(".slider","Add a <.slider> element as a container for track and thumb."),d=u(".slider canvas","Add a <canvas> element inside the slider to display the hue slider track.");for(let[i,g]of Object.entries(p))g.min="0",g.max=i==="l"?"100":i==="c"?"0.4":"360",g.step="any";r.setAttribute("aria-valuemin","0"),r.setAttribute("aria-valuemax","360");let M=V(m.getBoundingClientRect().width),w=B(()=>M.get()-2*ff),R={l:V(""),c:V(""),h:V("")},Y=(i)=>{return i==="l"?o.lightness:i==="c"?o.chroma:o.hue},F=(i)=>{o.color=i;for(let g of["l","c","h"])R[g].set("");D0("color-change","color")},x=(i,g)=>{let T=Math.round(g/Jo[i])*Jo[i];if(T<0||T>b0[i])return;let P={...o.color,[i]:T};if(S0(P))F(P);else p[i].setCustomValidity("Color out of gamut"),R[i].set(p[i].validationMessage)};o.stepDown=(i,g=!1)=>{x(i,Y(i)-uf(i,g))},o.stepUp=(i,g=!1)=>{x(i,Y(i)+uf(i,g))};let X=(i,g)=>{let T=i==="l"?g*100:g;return i==="c"?q1(T):L1(T)},W0=h0((i,g,T,P,A)=>{let s={...o.color,c:Math.min(Math.max((i-P)/A,0),1)*b0.c,l:1-Math.min(Math.max((g-T)/A,0),1)};if(S0(s))F(s)}),L=(i,g,T,P=1)=>e({mode:"oklch",l:1-g,c:i*b0.c,h:T,alpha:P}),O=(i,g)=>{let T=M.get(),P=Math.round(g.c*T/b0.c),A=Math.round((1-g.l)*T);i.style.setProperty("background-color",e(g)),i.style.setProperty("border-color",g.l>Wo?"black":"white"),i.style.setProperty("left",`${P}px`),i.style.setProperty("top",`${A}px`)},Q=h0((i,g,T)=>{let P={...o.color,h:Math.min(Math.max((i-g)/T,0),1)*b0.h};if(S0(P))F(P)}),n0=(i)=>{let g={...o.color,h:i*b0.h};if(F1(g))return g;if(S0(g))g.alpha=0.5;else g.alpha=0;return g},W=(i)=>{if(i.closest(".lightness"))return"l";if(i.closest(".chroma"))return"c";if(i.closest(".hue"))return"h";return null},H=[j("--color-base",()=>e(o.color)),()=>{let i=h0((T)=>{M.set(T)}),g=new ResizeObserver(()=>{i(m.clientWidth)});return g.observe(m),()=>{g.disconnect(),i.cancel()}},n("input",[t("ariaInvalid",(i)=>{let g=W(i);return g?String(!!R[g].get()):"false"}),U("aria-errormessage",(i)=>{let g=W(i);return g&&R[g].get()?`${i.id}-error`:null}),t("value",(i)=>{let g=W(i);return g?X(g,o.color[g]??0):"0"}),N("change",({target:i})=>{let g=W(i);if(!g)return;let T=i.valueAsNumber,P={...o.color,[g]:g==="l"?T/100:T};if(S0(P))F(P);else i.setCustomValidity("Color out of gamut"),R[g].set(i.validationMessage)})]),n(".error",[q((i)=>{let g=W(i);return g?R[g].get():""})]),f(".graph",[N("pointerdown",({event:i})=>{let{top:g,left:T}=b.getBoundingClientRect(),P=M.get();m.setPointerCapture(i.pointerId);let A=(G)=>{let h=(G.getCoalescedEvents?.()||[]).pop()||G;W0(h.clientX,h.clientY,g,T,P)},s=()=>{m.removeEventListener("pointermove",A),m.removeEventListener("pointerup",s),Q.cancel()};m.addEventListener("pointermove",A,{passive:!0}),m.addEventListener("pointerup",s)}),j("--canvas-size",()=>M.get()+"px")]),f(".graph canvas",[U("width",()=>String(M.get())),U("height",()=>String(M.get())),()=>c(()=>{let i=b.getContext("2d",{colorSpace:"display-p3"});if(!i)return;let g=o.hue,T=Math.round(M.get()),P=(G,h="rgb")=>Go({mode:"oklch",l:G,c:b0.c,h:g},"oklch",h).c/b0.c,A=(G,h,r0,z0=1)=>[L(G,r0,g,z0),L(h,r0,g,z0)],s=(G,h,r0="rgb")=>{let z0=P(1-h/T,r0)*T,K0=i.createLinearGradient(G,0,z0,0),J0=A(G/T,z0/T,h/T,r0==="p3"?0.5:1);return K0.addColorStop(0,J0[0]),K0.addColorStop(1,J0[1]),i.fillStyle=K0,i.fillRect(G,h,z0-G,1),[z0,J0[1]]};i.clearRect(0,0,T,T);for(let G=0;G<T;G++){let[h,r0]=s(0,G);if(S0(r0))s(h,G,"p3")}})]),f(".knob",[j("top",()=>`${Math.round((1-o.lightness)*M.get())}px`),j("left",()=>`${Math.round(o.chroma*M.get()/b0.c)}px`),j("--color-border",()=>o.lightness>Wo?"black":"white")],"Add a <.knob> element as a drag knob to control lightness and chroma."),f(".slider",[N("pointerdown",({event:i})=>{let g=d.getBoundingClientRect().left,T=w.get();r.setPointerCapture(i.pointerId);let P=(s)=>{let G=(s.getCoalescedEvents?.()||[]).pop()||s;Q(G.clientX,g,T)},A=()=>{r.removeEventListener("pointermove",P),r.removeEventListener("pointerup",A),Q.cancel()};r.addEventListener("pointermove",P,{passive:!0}),r.addEventListener("pointerup",A)}),j("--track-width",()=>w.get()+"px"),U("aria-valuenow","hue"),U("aria-valuetext",()=>X("h",o.hue)+"\xB0")]),f(".slider canvas",[U("width",()=>String(w.get())),()=>c(()=>{let i=d.getContext("2d",{colorSpace:"display-p3"});if(!i)return;let g=Math.round(w.get());i.clearRect(0,0,g,1);for(let T=0;T<g;T++)i.fillStyle=e(n0(T/g)),i.fillRect(T,0,1,1)})]),f(".thumb",[j("left",()=>`${Math.round(o.hue*w.get()/b0.h)+ff}px`),j("--color-border",()=>o.lightness>Wo?"black":"white")],"Add a <.thumb> element as a drag knob to control the hue."),n("button.decrement",[N("click",({event:i,target:g})=>{let T=W(g);if(T)o.stepDown(T,i.shiftKey)}),t("disabled",(i)=>{let g=W(i);return!g||(o.color[g]??0)<=0})],"Add a <button.decrement> to decrement a value for a color channel."),n("button.increment",[N("click",({event:i,target:g})=>{let T=W(g);if(T)o.stepUp(T,i.shiftKey)}),t("disabled",(i)=>{let g=W(i);return!g||(o.color[g]??0)>=b0[g]})],"Add a <button.increment> to increment a value for a color channel."),N("keydown",({event:i})=>{let{key:g,shiftKey:T}=i,P=i.target;if(!P||P.localName==="input"&&(g==="ArrowLeft"||g==="ArrowRight"))return;if(g.substring(0,5)==="Arrow"||["+","-"].includes(g)){i.preventDefault(),i.stopPropagation();let A=W(P);if(A){if(g==="ArrowLeft"||g==="ArrowDown"||g==="-")o.stepDown(A,T);else if(g==="ArrowRight"||g==="ArrowUp"||g==="+")o.stepUp(A,T)}else if(P.role==="slider"){if(g==="ArrowLeft"||g==="ArrowDown"||g==="-")o.stepDown("h",T);else if(g==="ArrowRight"||g==="ArrowUp"||g==="+")o.stepUp("h",T)}else switch(g){case"ArrowDown":o.stepDown("l",T);break;case"ArrowUp":o.stepUp("l",T);break;case"ArrowLeft":o.stepDown("c",T);break;case"ArrowRight":o.stepUp("c",T);break;case"-":o.stepDown("h");break;case"+":o.stepUp("h");break}}})];for(let i=1;i<5;i++)H.push(f(`li.lighten${(5-i)*20}`,[(g,T)=>c(()=>{O(T,x0(o.color,1-i/10))})]));for(let i=1;i<5;i++)H.push(f(`li.darken${i*20}`,[(g,T)=>c(()=>{O(T,x0(o.color,1-(i+5)/10))})]));return H});var Zo=L0("p3"),O1=L0("rgb"),pf=20,E1=0.71,xm=z("form-colorslider",{color:N0(),value:0,stepDown:()=>{},stepUp:()=>{}},(o,{first:n,useElement:f})=>{let u=f("input","Add an <input> element to control the color slider."),p=f(".slider","Add a <.slider> element as a container for track and thumb."),m=f("canvas","Add a <canvas> element to display the color slider track."),b=mn(["l","c","h"])(o,o.getAttribute("axis")),r=b==="h"?360:b==="c"?0.4:1,d=b==="h"?1:b==="c"?0.001:0.0025,M=b==="h"?15:b==="c"?0.02:0.05;o.value=o.color[b],u.min="0",u.max=String(b==="l"?r*100:r),p.setAttribute("aria-valuemin","0"),p.setAttribute("aria-valuemax",String(r));let w=(L)=>{let O=Math.round(L/d)*d;if(O>=0&&O<=r)M0(()=>{o.color={...o.color,[b]:O},o.value=O}),D0("color-change","color")};o.stepDown=(L)=>{w(o.value-(L??d))},o.stepUp=(L)=>{w(o.value+(L??d))};let R=V(p.getBoundingClientRect().width-2*pf),Y=B(()=>o.color.l),F=(L)=>{let O=b==="l"?L*100:L;return O.toFixed(Math.min(String(O).split(".")[1]?.length||0,b==="c"?4:2))},x=(L)=>{M0(()=>{o.color=L,o.value=L[b]}),D0("color-change","color")},X=h0((L,O,Q)=>{let n0=Q?(L-O)/Q:0,W={...o.color,[b]:Math.min(Math.max(n0,0),1)*r};if(Zo(W))x(W)}),W0=(L)=>{let O={...o.color,[b]:L*r};if(O1(O))return O;if(Zo(O))O.alpha=0.5;else O.alpha=0;return O};return[n("input",[t("value",()=>F(o.value)),N("change",({target:L})=>{let O=L.valueAsNumber,Q={...o.color,[b]:b==="l"?O/100:O};if(Zo(Q))x(Q)})]),n(".slider",[N("pointerdown",({event:L})=>{let O=m.getBoundingClientRect().left,Q=R.get();p.setPointerCapture(L.pointerId);let n0=(H)=>{let i=(H.getCoalescedEvents?.()||[]).pop()||H;X(i.clientX,O,Q)},W=()=>{p.removeEventListener("pointermove",n0),p.removeEventListener("pointerup",W),X.cancel()};p.addEventListener("pointermove",n0,{passive:!0}),p.addEventListener("pointerup",W)}),j("--color-base",()=>e(o.color)),j("--track-width",()=>R.get()+"px"),U("aria-valuenow","value"),U("aria-valuetext",()=>{let L=F(o.value);return b==="l"?L+"%":b==="h"?L+"\xB0":L}),()=>{let L=h0((Q)=>{R.set(Q)}),O=new ResizeObserver(()=>{L(m.clientWidth)});return O.observe(m),()=>{O.disconnect(),L.cancel()}}]),n("canvas",[U("width",()=>String(R.get())),()=>c(()=>{let L=m.getContext("2d",{colorSpace:"display-p3"});if(!L)return;L.clearRect(0,0,360,1);let O=Math.round(R.get());for(let Q=0;Q<O;Q++)L.fillStyle=e(W0(Q/O)),L.fillRect(Q,0,1,1)})]),n(".thumb",[j("left",()=>`${Math.round(o.value*R.get()/r)+pf}px`),j("--color-border",()=>Y.get()>E1?"black":"white")],"Add a <.thumb> element as a drag knob to control the color."),n("button.decrement",[N("click",({event:L})=>{o.stepDown(L.shiftKey?M:d)}),t("disabled",()=>o.value<=0)],"Add a <button.decrement> to decrement a value for a color channel."),n("button.increment",[N("click",({event:L})=>{o.stepUp(L.shiftKey?M:d)}),t("disabled",()=>o.value>=r)],"Add a <button.increment> to increment a value for a color channel."),N("keyup",({event:L})=>{if(L.target?.localName==="input")return;let{key:O,shiftKey:Q}=L;if((O==="ArrowLeft"||O==="-")&&o.value>0)o.stepDown(Q?M:d);else if((O==="ArrowRight"||O==="+")&&o.value<r)o.stepUp(Q?M:d)})]});var Z5=(o="input")=>(n)=>{n.clear=()=>{n.value="",n.length=0;let f=n.querySelector(o);if(f)f.value="",f.setCustomValidity(""),f.checkValidity(),f.dispatchEvent(new Event("input",{bubbles:!0})),f.dispatchEvent(new Event("change",{bubbles:!0})),f.focus()}},j5=(o)=>[a(()=>!!o.length),N("click",()=>{o.clear()})];var Fm=z("form-combobox",{value:"",length:0,error:C({".error":$()},""),description:C({".description":$()},""),clear:Z5()},(o,{first:n,useElement:f})=>{let u=f("input","Needed to enter value."),p=f("form-combobox > .error")?.id,m=f(".description")?.id,b=f("form-listbox","Needed to display options."),r=V(!1),d=B(()=>r.get()&&b.options.length>0);return[U("value"),N("keyup",({event:M})=>{let{key:w}=M;if(w==="Escape")r.set(!1);if(w==="Delete")o.clear()}),N("form-listbox.change",({event:M})=>{if(M.detail)o.value=M.detail,u.value=M.detail,u.checkValidity(),o.length=u.value.length,o.error=u.validationMessage??"",r.set(!1)}),n("form-combobox > .error",q("error")),n(".description",q("description")),n("input",[t("ariaInvalid",()=>String(!!o.error)),U("aria-errormessage",()=>o.error&&p?p:null),U("aria-describedby",()=>o.description&&m?m:null),t("ariaExpanded",()=>String(d.get())),N("input",()=>{M0(()=>{u.checkValidity(),r.set(!0),o.value=u.value,o.length=u.value.length,o.error=u.validationMessage??""})}),N("keydown",({event:M})=>{let{key:w,altKey:R}=M;if(w==="ArrowDown"){if(R)r.set(!0);if(d.get())b.options[0]?.focus()}})]),n(".clear",j5(o)),n("form-listbox",[a(()=>d.get()),I({filter:()=>o.value})])]});var Xm=z("form-gauge",{value:Z(C({progress:Y0("value")},0))},(o,{first:n,useElement:f})=>{let u=f("progress","Add a native <progress> element.").max??100,p=(()=>{let b=o.getAttribute("thresholds");if(!b)return[];try{return JSON.parse(b)}catch{return[]}})(),m=B(()=>p.find((b)=>o.value>=b.min)||{label:"",color:"var(--color-primary)"});return[n("progress",t("value")),n(".value span",q("value")),U("value"),j("--form-gauge-degree",()=>`${240*o.value/u}deg`),j("--form-gauge-color",()=>m.get().color),n("small",[q(()=>m.get().label)]),n("button.increment",[t("disabled",()=>o.value>=u),N("click",({event:b})=>{o.value+=b.shiftKey?10:1})]),n("button.decrement",[t("disabled",()=>o.value<=0),N("click",({event:b})=>{o.value-=b.shiftKey?10:1})]),N("keydown",({event:b})=>{let{key:r,shiftKey:d}=b;if((r==="ArrowLeft"||r==="-")&&o.value>0)o.value-=d?10:1;else if((r==="ArrowRight"||r==="+")&&o.value<u)o.value+=d?10:1})]});var A5=(o,n)=>{let f="",u="";if(!n)u="No URL provided";else if((o.parentElement||o.getRootNode().host)?.closest(`${o.localName}[src="${n}"]`))u="Recursive loading detected";else try{let p=new URL(n,location.href);if(p.origin===location.origin)f=String(p);else u="Invalid URL origin"}catch(p){u=String(p)}return{value:f,error:u}};var mf=new Map,P1=(o)=>{let n=o.toLowerCase().split(",").map((u)=>u.trim()),f={noCache:!1,noStore:!1,maxAge:void 0};for(let u of n)if(u==="no-cache")f.noCache=!0;else if(u==="no-store")f.noStore=!0;else if(u.startsWith("max-age=")){let p=parseInt(u.substring(8),10);if(!isNaN(p))f.maxAge=p}return f},U1=(o)=>{if(o.maxAge!==void 0)return(Date.now()-o.timestamp)/1000<o.maxAge;return!0},$5=async(o,n,f=(u)=>u.text())=>{let u=mf.get(o),p={};if(u?.etag)p["If-None-Match"]=u.etag;if(u?.lastModified)p["If-Modified-Since"]=u.lastModified;let m=await fetch(o,{signal:n,headers:p});if(m.status===304&&u)return{content:u.content,fromCache:!0};if(!m.ok)throw new Error(`HTTP error! status: ${m.status}`);let b=await f(m),r=m.headers.get("cache-control"),d=m.headers.get("etag"),M=m.headers.get("last-modified"),w=r?P1(r):{noCache:!1,noStore:!1};if(!w.noStore){let R={content:b,timestamp:Date.now(),etag:d||void 0,lastModified:M||void 0,maxAge:w.maxAge};if(!w.noCache||U1(R))mf.set(o,R)}return{content:b,fromCache:!1}};var bf=(o,n)=>{if(!n)return o;let f=new RegExp(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi");return o.replace(f,"<mark>$&</mark>")};var C1="Enter",Q1=["ArrowLeft","ArrowUp"],rf=["ArrowRight","ArrowDown"],Mf="Home",df="End",V1=[...Q1,...rf,Mf,df];z("form-listbox",{value:"",filter:"",src:A5,options:u0('[role="option"]:not([hidden])'),index:-1},(o,{all:n,first:f})=>{let u=V(""),p=(M)=>M.map((w)=>`

Check failure

Code scanning / CodeQL

Useless regular-expression character escape High documentation

The escape sequence '$' is equivalent to just '$', so the sequence may still represent a meta-character when it is used in a
regular expression
.

Copilot Autofix

AI 18 days ago

Copilot could not generate an autofix suggestion

Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.

@@ -0,0 +1,8 @@
var V0,i5=new Set,v5=0,Ao=new Map,Lf,qf=()=>{Lf=void 0;let o=Array.from(Ao.values());Ao.clear();for(let n of o)n()};queueMicrotask(qf);var _o=(o)=>{let n=new Set,f=o;return f.off=(u)=>{n.add(u)},f.cleanup=()=>{for(let u of n)u();n.clear()},f},N5=(o)=>{if(V0&&!o.has(V0)){let n=V0;o.add(n),V0.off(()=>{o.delete(n)})}},e0=(o)=>{for(let n of o)if(v5)i5.add(n);else n()},vo=()=>{while(i5.size){let o=Array.from(i5);i5.clear();for(let n of o)n()}},M0=(o)=>{v5++;try{o()}finally{vo(),v5--}},Bo=(o,n)=>{let f=V0;V0=n;try{o()}finally{V0=f}};var l=(o)=>typeof o==="function",co=(o,n)=>Object.prototype.toString.call(o)===`[object ${n}]`,B5=(o)=>o instanceof Error?o:Error(String(o));class H5 extends Error{constructor(o){super(`Circular dependency in ${o} detected`);this.name="CircularDependencyError"}}var So="State",V=(o)=>{let n=new Set,f=o,u={[Symbol.toStringTag]:So,get:()=>{return N5(n),f},set:(p)=>{if(Object.is(f,p))return;if(f=p,e0(n),v===f)n.clear()},update:(p)=>{u.set(p(f))}};return u},y5=(o)=>co(o,So),v=Symbol(),x5=(o)=>y5(o)||Ko(o),c5=(o)=>x5(o)?o:Xf(o)?B(o):V(o),z5="Computed",B=(o)=>{let n=new Set,f=v,u,p,m=!0,b=!1,r=!1,d=(x)=>{if(!Object.is(x,f))f=x,b=!0;u=void 0,m=!1},M=()=>{b=v!==f,f=v,u=void 0},w=(x)=>{let X=B5(x);b=!u||X.name!==u.name||X.message!==u.message,f=v,u=X},R=(x)=>(X)=>{if(r=!1,p=void 0,x(X),b)e0(n)},Y=_o(()=>{if(m=!0,p?.abort("Aborted because source signal changed"),n.size)e0(n);else Y.cleanup()}),F=()=>Bo(()=>{if(r)throw new H5("computed");if(b=!1,l(o)&&o.constructor.name==="AsyncFunction"){if(p)return f;p=new AbortController,p.signal.addEventListener("abort",()=>{r=!1,p=void 0,F()},{once:!0})}let x;r=!0;try{x=p?o(p.signal):o()}catch(X){if(X instanceof DOMException&&X.name==="AbortError")M();else w(X);r=!1;return}if(x instanceof Promise)x.then(R(d),R(w));else if(x==null||v===x)M();else d(x);r=!1},Y);return{[Symbol.toStringTag]:z5,get:()=>{if(N5(n),vo(),m)F();if(u)throw u;return f}}},Ko=(o)=>co(o,z5),Xf=(o)=>l(o)&&o.length<2;function c(o){let{signals:n,ok:f,err:u=(r)=>{console.error(r)},nil:p=()=>{}}=l(o)?{signals:[],ok:o}:o,m=!1,b=_o(()=>Bo(()=>{if(m)throw new H5("effect");m=!0;let r=[],d=!1,M=n.map((R)=>{try{let Y=R.get();if(Y===v)d=!0;return Y}catch(Y){return r.push(B5(Y)),v}}),w;try{w=d?p():r.length?u(...r):f(...M)}catch(R){w=u(B5(R))}finally{if(l(w))b.off(w)}m=!1},b));return b(),()=>b.cleanup()}var T0=!1,Of="debug";var eo="warn",H0="error",Ef=(o)=>o?`#${o}`:"",Pf=(o)=>o?.length?`.${Array.from(o).join(".")}`:"",s5=(o)=>!!o&&typeof o==="object",Z0=(o)=>typeof o==="string",Uf=(o,n)=>Z0(n)&&(n in o)&&l(o[n]),Cf=(o)=>o.nodeType===Node.ELEMENT_NODE,S5=(o)=>o.localName.includes("-"),J=(o)=>o?`<${o.localName}${Ef(o.id)}${Pf(o.classList)}>`:"<unknown>",g5=(o)=>Z0(o)?`"${o}"`:s5(o)?JSON.stringify(o):String(o),_5=(o)=>{if(o===null)return"null";if(typeof o!=="object")return typeof o;if(Array.isArray(o))return"Array";if(Symbol.toStringTag in Object(o))return o[Symbol.toStringTag];return o.constructor?.name||"Object"},f0=(o,n,f=Of)=>{if(T0||[H0,eo].includes(f))console[f](n,o);return o};class lo extends Error{constructor(o,n){super(`Circular dependency detected in selection signal for component ${J(o)} with selector "${n}"`);this.name="CircularMutationError"}}class Ho extends Error{constructor(o){super(`Invalid component name "${o}". Custom element names must contain a hyphen, start with a lowercase letter, and contain only lowercase letters, numbers, and hyphens.`);this.name="InvalidComponentNameError"}}class K5 extends Error{constructor(o,n,f){super(`Invalid property name "${n}" for component <${o}>. ${f}`);this.name="InvalidPropertyNameError"}}class so extends Error{constructor(o,n){super(`Invalid effects in component ${J(o)}. Effects must be an array of effects, a single effect function, or a Promise that resolves to effects.`);if(this.name="InvalidEffectsError",n)this.cause=n}}class on extends Error{constructor(o,n){super(`Expected signal as value for property "${String(n)}" in component ${J(o)}.`);this.name="InvalidSignalError"}}class I0 extends Error{constructor(o,n,f){super(`Missing required element <${n}> in component ${J(o)}. ${f}`);this.name="MissingElementError"}}class nn extends Error{constructor(o,n){super(`Timeout waiting for: [${n.join(", ")}] in component ${J(o)}.`);this.name="DependencyTimeoutError"}}var l0=Symbol("RESET"),R5=(o,n,f=n)=>{try{if(o instanceof Promise)throw o;if(!Array.isArray(o))return o(n,f);let u=o.filter(l).map((p)=>p(n,f));return()=>{u.filter(l).forEach((p)=>p()),u.length=0}}catch(u){if(u instanceof Promise)u.then(()=>R5(o,n,f));else throw new so(n,u instanceof Error?u:new Error(String(u)))}},oo=(o,n,f,u)=>{try{return Z0(o)?n.getSignal(o).get():x5(o)?o.get():l(o)?o(f):l0}catch(p){if(u)f0(p,`Failed to resolve value of ${g5(o)}${u?` for ${u}`:""} in ${J(f)}${n!==f?` in ${J(n)}`:""}`,H0);return l0}},Qf=(o)=>{let n=new Set;if(o.includes("."))n.add("class");if(o.includes("#"))n.add("id");if(o.includes("[")){let f=o.split("[");for(let u=1;u<f.length;u++){let p=f[u];if(!p.includes("]"))continue;let m=p.split("=")[0].trim().replace(/[^a-zA-Z0-9_-]/g,"");if(m)n.add(m)}}return[...n]},Vf=(o,n)=>{if(o.length!==n.length)return!1;let f=new Set(o);for(let u of n)if(!f.has(u))return!1;return!0},e5=(o)=>l(o)&&o.length>=2,a0=(o,n)=>l(n)?n(o):n,C=(o,n)=>(f)=>{let u=f.shadowRoot??f,p=(b,r)=>{let d=u.querySelector(b);if(!d)return;let M=r(d);if(M!=null)return M},m=void 0;for(let[b,r]of Object.entries(o))if(m=p(b,r),m!=null)break;return Z0(m)&&e5(n)?n(f,m):m??a0(f,n)},fn=(o,n,f)=>{let u=new MutationObserver(f),p={childList:!0,subtree:!0},m=Qf(n);if(m.length)p.attributes=!0,p.attributeFilter=m;return u.observe(o,p),u},af=(o)=>{let n=o.shadowRoot??o,f=new Set;function u(m,b){let r=n.querySelector(m);if(b!=null&&!r)throw new I0(o,m,b);if(r&&S5(r)&&r.matches(":not(:defined)"))f.add(r.localName);return r}function p(m,b){let r=n.querySelectorAll(m);if(b!=null&&!r.length)throw new I0(o,m,b);if(r.length)r.forEach((d)=>{if(S5(d)&&d.matches(":not(:defined)"))f.add(d.localName)});return Array.from(r)}return[{useElement:u,useElements:p,first:(m,b,r)=>{let d=r!=null?u(m,r):u(m);return()=>{if(d)return R5(b,o,d)}},all:(m,b,r)=>{let d=r!=null?p(m,r):p(m);return()=>{let M=new Map,w=(x)=>{let X=R5(b,o,x);if(X&&!M.has(x))M.set(x,X)},R=(x)=>{let X=M.get(x);if(X)X();M.delete(x)},Y=(x)=>(X)=>{if(Cf(X)){if(X.matches(m))x(X);X.querySelectorAll(m).forEach(x)}},F=fn(n,m,(x)=>{for(let X of x)X.addedNodes.forEach(Y(w)),X.removedNodes.forEach(Y(R))});if(d.length)d.forEach(w);return()=>{F.disconnect(),M.forEach((x)=>x()),M.clear()}}}},()=>Array.from(f)]};function u0(o){return(n)=>{let f=new Set,u=()=>Array.from((n.shadowRoot??n).querySelectorAll(o)),p=v,m,b=0,r=2,d=()=>{p=u(),m=fn(n,o,()=>{if(!f.size){m?.disconnect(),m=void 0;return}if(b++,b>r)throw m?.disconnect(),m=void 0,b=0,new lo(n,o);try{let M=u();if(!Vf(p,M))p=M,e0(f)}finally{b--}})};return{[Symbol.toStringTag]:z5,get(){if(N5(f),!f.size)p=u();else if(!m)d();return p}}}}var If=50,Gf=new Set(["constructor","prototype"]),hf=new Set(["id","class","className","title","role","style","dataset","lang","dir","hidden","children","innerHTML","outerHTML","textContent","innerText"]),$o=(o)=>{if(Gf.has(o))return`Property name "${o}" is a reserved word`;if(hf.has(o))return`Property name "${o}" conflicts with inherited HTMLElement property`;return null};function z(o,n={},f){if(!o.includes("-")||!o.match(/^[a-z][a-z0-9-]*$/))throw new Ho(o);for(let p of Object.keys(n)){let m=$o(p);if(m)throw new K5(o,p,m)}class u extends HTMLElement{debug;#o={};#n;static observedAttributes=Object.entries(n)?.filter(([,p])=>e5(p)).map(([p])=>p)??[];connectedCallback(){if(T0){if(this.debug=this.hasAttribute("debug"),this.debug)f0(this,"Connected")}for(let[M,w]of Object.entries(n)){if(w==null||M in this)continue;let R=l(w)?w(this,null):w;if(R!=null)this.setSignal(M,c5(R))}let[p,m]=af(this),b=f(this,p),r=m(),d=()=>{let M=R5(b,this);if(M)this.#n=M};if(r.length)Promise.race([Promise.all(r.map((M)=>customElements.whenDefined(M))),new Promise((M,w)=>{setTimeout(()=>{w(new nn(this,r.filter((R)=>!customElements.get(R))))},If)})]).then(d).catch((M)=>{if(T0)f0(M,`Error during setup of <${o}>. Trying to run effects anyway.`,eo);d()});else d()}disconnectedCallback(){if(l(this.#n))this.#n();if(T0&&this.debug)f0(this,"Disconnected")}attributeChangedCallback(p,m,b){if(b===m||Ko(this.#o[p]))return;let r=n[p];if(!e5(r))return;let d=r(this,b,m);if(T0&&this.debug)f0(b,`Attribute "${String(p)}" of ${J(this)} changed from ${g5(m)} to ${g5(b)}, parsed as <${_5(d)}> ${g5(d)}`);if(p in this)this[p]=d;else this.setSignal(p,c5(d))}getSignal(p){let m=this.#o[p];if(T0&&this.debug)f0(m,`Get ${_5(m)} "${String(p)}" in ${J(this)}`);return m}setSignal(p,m){let b=$o(String(p));if(b)throw new K5(this.localName,p,b);if(!x5(m))throw new on(this,p);let r=this.#o[p],d=y5(m);if(this.#o[p]=m,Object.defineProperty(this,p,{get:m.get,set:d?m.set:void 0,enumerable:!0,configurable:d}),r&&y5(r))r.set(v);if(T0&&this.debug)f0(m,`Set ${_5(m)} "${String(p)} in ${J(this)}`)}}customElements.define(o,u)}var ko="context-request";var un=(o)=>(n)=>{let f=(u)=>{let{context:p,callback:m}=u;if(o.includes(p)&&l(m))u.stopImmediatePropagation(),m(n.getSignal(String(p)))};return n.addEventListener(ko,f),()=>n.removeEventListener(ko,f)};var d0=(o,n,f)=>(u)=>{let p=new Set,m=a0(u,f),b=new Map,r,d=()=>{for(let[M,w]of Object.entries(n)){let R=(Y)=>{let F=Y.target;if(!F)return;let x=F.closest(o);if(!x||!u.contains(x))return;Y.stopPropagation();try{let X=w({event:Y,host:u,target:x,value:m});if(X==null)return;if(!Object.is(X,m)){if(m=X,p.size>0)e0(p);else if(r)r()}}catch(X){throw Y.stopImmediatePropagation(),X}};b.set(M,R),u.addEventListener(M,R)}r=()=>{if(b.size){for(let[M,w]of b)u.removeEventListener(M,w);b.clear()}r=void 0}};return{[Symbol.toStringTag]:z5,get(){if(N5(p),p.size&&!b.size)d();return m}}},N=(o,n,f=!1)=>(u,p)=>{let m=(b)=>{let r=n({host:u,target:p,event:b});if(!s5(r))return;M0(()=>{for(let[d,M]of Object.entries(r))try{u[d]=M}catch(w){f0(w,`Reactive property "${d}" on ${J(u)} from event ${o} on ${J(p)} could not be set, because it is read-only.`,H0)}})};return p.addEventListener(o,m,f),()=>p.removeEventListener(o,m)},D0=(o,n)=>(f,u)=>c(()=>{let p=oo(n,f,u,`custom event "${o}" detail`);if(p===l0||p===v)return;u.dispatchEvent(new CustomEvent(o,{detail:p,bubbles:!0}))}),Wf=(o,n="")=>{return{a:"attribute ",c:"class ",d:"dataset ",h:"inner HTML",m:"method call ",p:"property ",s:"style property ",t:"text content"}[o]+n},Jf=(o)=>{if(/^(mailto|tel):/i.test(o))return!0;if(o.includes("://"))try{let n=new URL(o,window.location.origin);return["http:","https:","ftp:"].includes(n.protocol)}catch{return!1}return!0},Zf=(o,n,f)=>{if(/^on/i.test(n))throw new Error(`Unsafe attribute: ${n}`);if(f=String(f).trim(),!Jf(f))throw new Error(`Unsafe URL for ${n}: ${f}`);o.setAttribute(n,f)},q0=(o,n)=>(f,u)=>{let{op:p,name:m="",read:b,update:r}=n,d=b(u),M=Wf(p,m),w=(Y)=>()=>{if(T0&&f.debug)f0(u,`${Y} ${M} of ${J(u)} in ${J(f)}`);n.resolve?.(u)},R=(Y)=>(F)=>{f0(F,`Failed to ${Y} ${M} of ${J(u)} in ${J(f)}`,H0),n.reject?.(F)};return c(()=>{let Y=oo(o,f,u,M),F=Y===l0?d:Y===v?n.delete?null:d:Y;if(n.delete&&F===null)try{n.delete(u),w("delete")()}catch(x){R("delete")(x)}else if(F!=null){let x=b(u);if(Object.is(F,x))return;try{r(u,F),w("update")()}catch(X){R("update")(X)}}})},s0=(o,n)=>(f,u)=>{let p=(b)=>()=>{if(T0&&f.debug)f0(u,`${b} element in ${J(u)} in ${J(f)}`);if(l(n?.resolve))n.resolve(u);else{let r=x5(o)?o:Z0(o)?f.getSignal(o):void 0;if(y5(r))r.set(0)}},m=(b)=>(r)=>{f0(r,`Failed to ${b} element in ${J(u)} in ${J(f)}`,H0),n?.reject?.(r)};return c(()=>{let b=oo(o,f,u,"insertion or deletion"),r=b===l0?0:b;if(r>0){if(!n)throw new TypeError("No inserter provided");try{for(let d=0;d<r;d++){let M=n.create(u);if(!M)continue;u.insertAdjacentElement(n.position??"beforeend",M)}p("insert")()}catch(d){m("insert")(d)}}else if(r<0)try{if(n&&(n.position==="afterbegin"||n.position==="beforeend"))for(let d=0;d>r;d--)if(n.position==="afterbegin")u.firstElementChild?.remove();else u.lastElementChild?.remove();else u.remove();p("remove")()}catch(d){m("remove")(d)}})},q=(o)=>q0(o,{op:"t",read:(n)=>n.textContent,update:(n,f)=>{Array.from(n.childNodes).filter((u)=>u.nodeType!==Node.COMMENT_NODE).forEach((u)=>u.remove()),n.append(document.createTextNode(f))}}),t=(o,n=o)=>q0(n,{op:"p",name:o,read:(f)=>(o in f)?f[o]:v,update:(f,u)=>{f[o]=u}}),a=(o)=>q0(o,{op:"p",name:"hidden",read:(n)=>!n.hidden,update:(n,f)=>{n.hidden=!f}}),U=(o,n=o)=>q0(n,{op:"a",name:o,read:(f)=>f.getAttribute(o),update:(f,u)=>{Zf(f,o,u)},delete:(f)=>{f.removeAttribute(o)}}),T5=(o,n=o)=>q0(n,{op:"a",name:o,read:(f)=>f.hasAttribute(o),update:(f,u)=>{f.toggleAttribute(o,u)}}),X0=(o,n=o)=>q0(n,{op:"c",name:o,read:(f)=>f.classList.contains(o),update:(f,u)=>{f.classList.toggle(o,u)}}),j=(o,n=o)=>q0(n,{op:"s",name:o,read:(f)=>f.style.getPropertyValue(o),update:(f,u)=>{f.style.setProperty(o,u)},delete:(f)=>{f.style.removeProperty(o)}}),o5=(o,n={})=>q0(o,{op:"h",read:(f)=>(f.shadowRoot||!n.shadowRootMode?f:null)?.innerHTML??"",update:(f,u)=>{let{shadowRootMode:p,allowScripts:m}=n;if(!u){if(f.shadowRoot)f.shadowRoot.innerHTML="<slot></slot>";return""}if(p&&!f.shadowRoot)f.attachShadow({mode:p});let b=f.shadowRoot||f;if(b.innerHTML=u,!m)return"";return b.querySelectorAll("script").forEach((r)=>{let d=document.createElement("script");d.appendChild(document.createTextNode(r.textContent??"")),b.appendChild(d),r.remove()})," with scripts"}}),I=(o)=>(n,f)=>{if(!s5(o))throw new TypeError("Reactives must be an object of passed signals");if(!S5(f))throw new TypeError(`Target ${J(f)} is not a custom element`);if(!Uf(f,"setSignal"))throw new TypeError(`Target ${J(f)} is not a Le Truc component`);for(let[u,p]of Object.entries(o))f.setSignal(u,Z0(p)?n.getSignal(p):c5(p))},$=()=>(o)=>o.textContent?.trim();var Y0=(o)=>(n)=>n[o];var jf=(o)=>(n)=>n.getAttribute(o);var D5=(o)=>C({".label":$(),[o]:jf("aria-label")},"");var l5=(o,n)=>{if(n==null)return;let f=o(n);return Number.isFinite(f)?f:void 0},j0=()=>(o,n)=>n!=null&&n!=="false",Z=(o=0)=>(n,f)=>{if(f==null)return a0(n,o);let u=f.trim();if(u.toLowerCase().startsWith("0x"))return l5((m)=>parseInt(m,16),u)??a0(n,o);let p=l5(parseFloat,f);return p!=null?Math.trunc(p):a0(n,o)},pn=(o=0)=>(n,f)=>l5(parseFloat,f)??a0(n,o),o0=(o="")=>(n,f)=>f??a0(n,o),mn=(o)=>(n,f)=>{if(f==null)return o[0];let u=f.toLowerCase();return o.find((p)=>p.toLowerCase()===u)?f:o[0]};var bn="media-motion",rn="media-theme",Mn="media-viewport",dn="media-orientation",j1=z("context-media",{[bn]:()=>{let o=matchMedia("(prefers-reduced-motion: reduce)"),n=V(o.matches);return o.addEventListener("change",(f)=>{n.set(f.matches)}),n},[rn]:()=>{let o=matchMedia("(prefers-color-scheme: dark)"),n=V(o.matches?"dark":"light");return o.addEventListener("change",(f)=>{n.set(f.matches?"dark":"light")}),n},[Mn]:(o)=>{let n=(d,M)=>{let R=o.getAttribute(d)?.trim();if(!R)return M;let Y=R.match(/em$/)?"em":"px",F=parseFloat(R);return Number.isFinite(F)?F+Y:M},f=matchMedia(`(min-width: ${n("sm","32em")})`),u=matchMedia(`(min-width: ${n("md","48em")})`),p=matchMedia(`(min-width: ${n("lg","72em")})`),m=matchMedia(`(min-width: ${n("xl","104em")})`),b=()=>{if(m.matches)return"xl";if(p.matches)return"lg";if(u.matches)return"md";if(f.matches)return"sm";return"xs"},r=V(b());return f.addEventListener("change",()=>{r.set(b())}),u.addEventListener("change",()=>{r.set(b())}),p.addEventListener("change",()=>{r.set(b())}),m.addEventListener("change",()=>{r.set(b())}),r},[dn]:()=>{let o=matchMedia("(orientation: landscape)"),n=V(o.matches?"landscape":"portrait");return o.addEventListener("change",(f)=>{n.set(f.matches?"landscape":"portrait")}),n}},()=>[un([bn,rn,Mn,dn])]);var Af=(o,n)=>{if(typeof o!=="number")return;if(n===3)return{mode:"rgb",r:(o>>8&15|o>>4&240)/255,g:(o>>4&15|o&240)/255,b:(o&15|o<<4&240)/255};if(n===4)return{mode:"rgb",r:(o>>12&15|o>>8&240)/255,g:(o>>8&15|o>>4&240)/255,b:(o>>4&15|o&240)/255,alpha:(o&15|o<<4&240)/255};if(n===6)return{mode:"rgb",r:(o>>16&255)/255,g:(o>>8&255)/255,b:(o&255)/255};if(n===8)return{mode:"rgb",r:(o>>24&255)/255,g:(o>>16&255)/255,b:(o>>8&255)/255,alpha:(o&255)/255}},Y5=Af;var $f={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},n5=$f;var kf=(o)=>{return Y5(n5[o.toLowerCase()],6)},wn=kf;var _f=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,vf=(o)=>{let n;return(n=o.match(_f))?Y5(parseInt(n[1],16),n[1].length):void 0},gn=vf;var t5="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)";var G0="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%";var f5="(?:([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%|([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?))";var yn="(?:([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)(deg|grad|rad|turn)|([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?))";var O0="\\s*,\\s*";var K1=new RegExp("^(?:([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%|([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)|none)$");var Bf=new RegExp(`^rgba?\\(\\s*${t5}${O0}${t5}${O0}${t5}\\s*(?:,\\s*${f5}\\s*)?\\)\$`),cf=new RegExp(`^rgba?\\(\\s*${G0}${O0}${G0}${O0}${G0}\\s*(?:,\\s*${f5}\\s*)?\\)\$`),Sf=(o)=>{let n={mode:"rgb"},f;if(f=o.match(Bf)){if(f[1]!==void 0)n.r=f[1]/255;if(f[2]!==void 0)n.g=f[2]/255;if(f[3]!==void 0)n.b=f[3]/255}else if(f=o.match(cf)){if(f[1]!==void 0)n.r=f[1]/100;if(f[2]!==void 0)n.g=f[2]/100;if(f[3]!==void 0)n.b=f[3]/100}else return;if(f[4]!==void 0)n.alpha=Math.max(0,Math.min(1,f[4]/100));else if(f[5]!==void 0)n.alpha=Math.max(0,Math.min(1,+f[5]));return n},Rn=Sf;var Kf=(o,n)=>o===void 0?void 0:typeof o!=="object"?Nn(o):o.mode!==void 0?o:n?{...o,mode:n}:void 0,E0=Kf;var ef=(o="rgb")=>(n)=>(n=E0(n,o))!==void 0?n.mode===o?n:m0[n.mode][o]?m0[n.mode][o](n):o==="rgb"?m0[n.mode].rgb(n):m0.rgb[o](m0[n.mode].rgb(n)):void 0,k=ef;var m0={},xn={},u5=[],no={},lf=(o)=>o,_=(o)=>{if(m0[o.mode]={...m0[o.mode],...o.toMode},Object.keys(o.fromMode||{}).forEach((n)=>{if(!m0[n])m0[n]={};m0[n][o.mode]=o.fromMode[n]}),!o.ranges)o.ranges={};if(!o.difference)o.difference={};return o.channels.forEach((n)=>{if(o.ranges[n]===void 0)o.ranges[n]=[0,1];if(!o.interpolate[n])throw new Error(`Missing interpolator for: ${n}`);if(typeof o.interpolate[n]==="function")o.interpolate[n]={use:o.interpolate[n]};if(!o.interpolate[n].fixup)o.interpolate[n].fixup=lf}),xn[o.mode]=o,(o.parse||[]).forEach((n)=>{Hf(n,o.mode)}),k(o.mode)},w0=(o)=>xn[o],Hf=(o,n)=>{if(typeof o==="string"){if(!n)throw new Error("'mode' required when 'parser' is a string");no[o]=n}else if(typeof o==="function"){if(u5.indexOf(o)<0)u5.push(o)}};var fo=/[^\x00-\x7F]|[a-zA-Z_]/,sf=/[^\x00-\x7F]|[-\w]/,y={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},D=0;function F5(o){let n=o[D],f=o[D+1];if(n==="-"||n==="+")return/\d/.test(f)||f==="."&&/\d/.test(o[D+2]);if(n===".")return/\d/.test(f);return/\d/.test(n)}function uo(o){if(D>=o.length)return!1;let n=o[D];if(fo.test(n))return!0;if(n==="-"){if(o.length-D<2)return!1;let f=o[D+1];if(f==="-"||fo.test(f))return!0;return!1}return!1}var ou={deg:1,rad:180/Math.PI,grad:0.9,turn:360};function p5(o){let n="";if(o[D]==="-"||o[D]==="+")n+=o[D++];if(n+=L5(o),o[D]==="."&&/\d/.test(o[D+1]))n+=o[D++]+L5(o);if(o[D]==="e"||o[D]==="E"){if((o[D+1]==="-"||o[D+1]==="+")&&/\d/.test(o[D+2]))n+=o[D++]+o[D++]+L5(o);else if(/\d/.test(o[D+1]))n+=o[D++]+L5(o)}if(uo(o)){let f=q5(o);if(f==="deg"||f==="rad"||f==="turn"||f==="grad")return{type:y.Hue,value:n*ou[f]};return}if(o[D]==="%")return D++,{type:y.Percentage,value:+n};return{type:y.Number,value:+n}}function L5(o){let n="";while(/\d/.test(o[D]))n+=o[D++];return n}function q5(o){let n="";while(D<o.length&&sf.test(o[D]))n+=o[D++];return n}function nu(o){let n=q5(o);if(o[D]==="(")return D++,{type:y.Function,value:n};if(n==="none")return{type:y.None,value:void 0};return{type:y.Ident,value:n}}function fu(o=""){let n=o.trim(),f=[],u;D=0;while(D<n.length){if(u=n[D++],u==="\n"||u==="\t"||u===" "){while(D<n.length&&(n[D]==="\n"||n[D]==="\t"||n[D]===" "))D++;continue}if(u===",")return;if(u===")"){f.push({type:y.ParenClose});continue}if(u==="+"){if(D--,F5(n)){f.push(p5(n));continue}return}if(u==="-"){if(D--,F5(n)){f.push(p5(n));continue}if(uo(n)){f.push({type:y.Ident,value:q5(n)});continue}return}if(u==="."){if(D--,F5(n)){f.push(p5(n));continue}return}if(u==="/"){while(D<n.length&&(n[D]==="\n"||n[D]==="\t"||n[D]===" "))D++;let p;if(F5(n)){if(p=p5(n),p.type!==y.Hue){f.push({type:y.Alpha,value:p});continue}}if(uo(n)){if(q5(n)==="none"){f.push({type:y.Alpha,value:{type:y.None,value:void 0}});continue}}return}if(/\d/.test(u)){D--,f.push(p5(n));continue}if(fo.test(u)){D--,f.push(nu(n));continue}return}return f}function uu(o){o._i=0;let n=o[o._i++];if(!n||n.type!==y.Function||n.value!=="color")return;if(n=o[o._i++],n.type!==y.Ident)return;let f=no[n.value];if(!f)return;let u={mode:f},p=zn(o,!1);if(!p)return;let m=w0(f).channels;for(let b=0,r,d;b<m.length;b++)if(r=p[b],d=m[b],r.type!==y.None){if(u[d]=r.type===y.Number?r.value:r.value/100,d==="alpha")u[d]=Math.max(0,Math.min(1,u[d]))}return u}function zn(o,n){let f=[],u;while(o._i<o.length){if(u=o[o._i++],u.type===y.None||u.type===y.Number||u.type===y.Alpha||u.type===y.Percentage||n&&u.type===y.Hue){f.push(u);continue}if(u.type===y.ParenClose){if(o._i<o.length)return;continue}return}if(f.length<3||f.length>4)return;if(f.length===4){if(f[3].type!==y.Alpha)return;f[3]=f[3].value}if(f.length===3)f.push({type:y.None,value:void 0});return f.every((p)=>p.type!==y.Alpha)?f:void 0}function pu(o,n){o._i=0;let f=o[o._i++];if(!f||f.type!==y.Function)return;let u=zn(o,n);if(!u)return;return u.unshift(f.value),u}var mu=(o)=>{if(typeof o!=="string")return;let n=fu(o),f=n?pu(n,!0):void 0,u=void 0,p=0,m=u5.length;while(p<m)if((u=u5[p++](o,f))!==void 0)return u;return n?uu(n):void 0},Nn=mu;function bu(o,n){if(!n||n[0]!=="rgb"&&n[0]!=="rgba")return;let f={mode:"rgb"},[,u,p,m,b]=n;if(u.type===y.Hue||p.type===y.Hue||m.type===y.Hue)return;if(u.type!==y.None)f.r=u.type===y.Number?u.value/255:u.value/100;if(p.type!==y.None)f.g=p.type===y.Number?p.value/255:p.value/100;if(m.type!==y.None)f.b=m.type===y.Number?m.value/255:m.value/100;if(b.type!==y.None)f.alpha=Math.min(1,Math.max(0,b.type===y.Number?b.value:b.value/100));return f}var Tn=bu;var ru=(o)=>o==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Dn=ru;var Yn=(o,n,f)=>o+f*(n-o);var Mu=(o)=>{let n=[];for(let f=0;f<o.length-1;f++){let u=o[f],p=o[f+1];if(u===void 0&&p===void 0)n.push(void 0);else if(u!==void 0&&p!==void 0)n.push([u,p]);else n.push(u!==void 0?[u,u]:[p,p])}return n},tn=(o)=>(n)=>{let f=Mu(n);return(u)=>{let p=u*f.length,m=u>=1?f.length-1:Math.max(Math.floor(p),0),b=f[m];return b===void 0?void 0:o(b[0],b[1],p-m)}};var E=tn(Yn);var S=(o)=>{let n=!1,f=o.map((u)=>{if(u!==void 0)return n=!0,u;return 1});return n?f:o};var du={mode:"rgb",channels:["r","g","b","alpha"],parse:[Tn,gn,Rn,wn,Dn,"srgb"],serialize:"srgb",interpolate:{r:E,g:E,b:E,alpha:{use:E,fixup:S}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},p0=du;var po=(o=0)=>Math.pow(Math.abs(o),2.19921875)*Math.sign(o),wu=(o)=>{let n=po(o.r),f=po(o.g),u=po(o.b),p={mode:"xyz65",x:0.5766690429101305*n+0.1855582379065463*f+0.1882286462349947*u,y:0.297344975250536*n+0.6273635662554661*f+0.0752914584939979*u,z:0.0270313613864123*n+0.0706888525358272*f+0.9913375368376386*u};if(o.alpha!==void 0)p.alpha=o.alpha;return p},mo=wu;var bo=(o)=>Math.pow(Math.abs(o),0.4547069271758437)*Math.sign(o),iu=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p={mode:"a98",r:bo(o*2.0415879038107465-n*0.5650069742788597-0.3447313507783297*f),g:bo(o*-0.9692436362808798+n*1.8759675015077206+0.0415550574071756*f),b:bo(o*0.0134442806320312-n*0.1183623922310184+1.0151749943912058*f)};if(u!==void 0)p.alpha=u;return p},ro=iu;var Mo=(o=0)=>{let n=Math.abs(o);if(n<=0.04045)return o/12.92;return(Math.sign(o)||1)*Math.pow((n+0.055)/1.055,2.4)},gu=({r:o,g:n,b:f,alpha:u})=>{let p={mode:"lrgb",r:Mo(o),g:Mo(n),b:Mo(f)};if(u!==void 0)p.alpha=u;return p},i0=gu;var yu=(o)=>{let{r:n,g:f,b:u,alpha:p}=i0(o),m={mode:"xyz65",x:0.4123907992659593*n+0.357584339383878*f+0.1804807884018343*u,y:0.2126390058715102*n+0.715168678767756*f+0.0721923153607337*u,z:0.0193308187155918*n+0.119194779794626*f+0.9505321522496607*u};if(p!==void 0)m.alpha=p;return m},g0=yu;var wo=(o=0)=>{let n=Math.abs(o);if(n>0.0031308)return(Math.sign(o)||1)*(1.055*Math.pow(n,0.4166666666666667)-0.055);return o*12.92},Ru=({r:o,g:n,b:f,alpha:u},p="rgb")=>{let m={mode:p,r:wo(o),g:wo(n),b:wo(f)};if(u!==void 0)m.alpha=u;return m},y0=Ru;var Nu=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=y0({r:o*3.2409699419045226-n*1.537383177570094-0.4986107602930034*f,g:o*-0.9692436362808796+n*1.8759675015077204+0.0415550574071756*f,b:o*0.0556300796969936-n*0.2039769588889765+1.0569715142428784*f});if(u!==void 0)p.alpha=u;return p},R0=Nu;var xu={...p0,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:(o)=>ro(g0(o)),xyz65:ro},toMode:{rgb:(o)=>R0(mo(o)),xyz65:mo}},Fn=xu;var zu=(o)=>(o=o%360)<0?o+360:o,K=zu;function io({h:o,s:n,l:f,alpha:u}){if(o=K(o!==void 0?o:0),n===void 0)n=0;if(f===void 0)f=0;let p=f+n*(f<0.5?f:1-f),m=p-(p-f)*2*Math.abs(o/60%2-1),b;switch(Math.floor(o/60)){case 0:b={r:p,g:m,b:2*f-p};break;case 1:b={r:m,g:p,b:2*f-p};break;case 2:b={r:2*f-p,g:p,b:m};break;case 3:b={r:2*f-p,g:m,b:p};break;case 4:b={r:m,g:2*f-p,b:p};break;case 5:b={r:p,g:2*f-p,b:m};break;default:b={r:2*f-p,g:2*f-p,b:2*f-p}}if(b.mode="rgb",u!==void 0)b.alpha=u;return b}function go({r:o,g:n,b:f,alpha:u}){if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=Math.max(o,n,f),m=Math.min(o,n,f),b={mode:"hsl",s:p===m?0:(p-m)/(1-Math.abs(p+m-1)),l:0.5*(p+m)};if(p-m!==0)b.h=(p===o?(n-f)/(p-m)+(n<f)*6:p===n?(f-o)/(p-m)+2:(o-n)/(p-m)+4)*60;if(u!==void 0)b.alpha=u;return b}var Tu=(o,n)=>{switch(n){case"deg":return+o;case"rad":return o/Math.PI*180;case"grad":return o/10*9;case"turn":return o*360}},Ln=Tu;var Du=new RegExp(`^hsla?\\(\\s*${yn}${O0}${G0}${O0}${G0}\\s*(?:,\\s*${f5}\\s*)?\\)\$`),Yu=(o)=>{let n=o.match(Du);if(!n)return;let f={mode:"hsl"};if(n[3]!==void 0)f.h=+n[3];else if(n[1]!==void 0&&n[2]!==void 0)f.h=Ln(n[1],n[2]);if(n[4]!==void 0)f.s=Math.min(Math.max(0,n[4]/100),1);if(n[5]!==void 0)f.l=Math.min(Math.max(0,n[5]/100),1);if(n[6]!==void 0)f.alpha=Math.max(0,Math.min(1,n[6]/100));else if(n[7]!==void 0)f.alpha=Math.max(0,Math.min(1,+n[7]));return f},qn=Yu;function tu(o,n){if(!n||n[0]!=="hsl"&&n[0]!=="hsla")return;let f={mode:"hsl"},[,u,p,m,b]=n;if(u.type!==y.None){if(u.type===y.Percentage)return;f.h=u.value}if(p.type!==y.None){if(p.type===y.Hue)return;f.s=p.value/100}if(m.type!==y.None){if(m.type===y.Hue)return;f.l=m.value/100}if(b.type!==y.None)f.alpha=Math.min(1,Math.max(0,b.type===y.Number?b.value:b.value/100));return f}var Xn=tu;var Fu=(o,n)=>{return o.map((f,u,p)=>{if(f===void 0)return f;let m=K(f);if(u===0||o[u-1]===void 0)return m;return n(m-K(p[u-1]))}).reduce((f,u)=>{if(!f.length||u===void 0||f[f.length-1]===void 0)return f.push(u),f;return f.push(u+f[f.length-1]),f},[])},P0=(o)=>Fu(o,(n)=>Math.abs(n)<=180?n:n-360*Math.sign(n));var m5=(o,n)=>{if(o.h===void 0||n.h===void 0||!o.s||!n.s)return 0;let f=K(o.h),u=K(n.h),p=Math.sin((u-f+360)/2*Math.PI/180);return 2*Math.sqrt(o.s*n.s)*p},yo=(o,n)=>{if(o.h===void 0||n.h===void 0)return 0;let f=K(o.h),u=K(n.h);if(Math.abs(u-f)>180)return f-(u-360*Math.sign(u-f));return u-f},Ro=(o,n)=>{if(o.h===void 0||n.h===void 0||!o.c||!n.c)return 0;let f=K(o.h),u=K(n.h),p=Math.sin((u-f+360)/2*Math.PI/180);return 2*Math.sqrt(o.c*n.c)*p},No=(o="rgb",n=[1,1,1,0])=>{let f=w0(o),u=f.channels,p=f.difference,m=k(o);return(b,r)=>{let d=m(b),M=m(r);return Math.sqrt(u.reduce((w,R,Y)=>{let F=p[R]?p[R](d,M):d[R]-M[R];return w+(n[Y]||0)*Math.pow(isNaN(F)?0:F,2)},0))}};var xo=(o=1,n=1,f=1)=>{let u=k("lab65");return(p,m)=>{let b=u(p),r=u(m),d=b.l,M=b.a,w=b.b,R=Math.sqrt(M*M+w*w),Y=r.l,F=r.a,x=r.b,X=Math.sqrt(F*F+x*x),W0=(R+X)/2,L=0.5*(1-Math.sqrt(Math.pow(W0,7)/(Math.pow(W0,7)+Math.pow(25,7)))),O=M*(1+L),Q=F*(1+L),n0=Math.sqrt(O*O+w*w),W=Math.sqrt(Q*Q+x*x),H=Math.abs(O)+Math.abs(w)===0?0:Math.atan2(w,O);H+=(H<0)*2*Math.PI;let i=Math.abs(Q)+Math.abs(x)===0?0:Math.atan2(x,Q);i+=(i<0)*2*Math.PI;let g=Y-d,T=W-n0,P=n0*W===0?0:i-H;P-=(P>Math.PI)*2*Math.PI,P+=(P<-Math.PI)*2*Math.PI;let A=2*Math.sqrt(n0*W)*Math.sin(P/2),s=(d+Y)/2,G=(n0+W)/2,h;if(n0*W===0)h=H+i;else h=(H+i)/2,h-=(Math.abs(H-i)>Math.PI)*Math.PI,h+=(h<0)*2*Math.PI;let r0=Math.pow(s-50,2),z0=1-0.17*Math.cos(h-Math.PI/6)+0.24*Math.cos(2*h)+0.32*Math.cos(3*h+Math.PI/30)-0.2*Math.cos(4*h-63*Math.PI/180),K0=1+0.015*r0/Math.sqrt(20+r0),J0=1+0.045*G,jo=1+0.015*G*z0,Yf=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*h-275)/25,2)),tf=2*Math.sqrt(Math.pow(G,7)/(Math.pow(G,7)+Math.pow(25,7))),Ff=-1*Math.sin(2*Yf)*tf;return Math.sqrt(Math.pow(g/(o*K0),2)+Math.pow(T/(n*J0),2)+Math.pow(A/(f*jo),2)+Ff*T/(n*J0)*A/(f*jo))}};var U0=(o)=>{let n=o.reduce((u,p)=>{if(p!==void 0){let m=p*Math.PI/180;u.sin+=Math.sin(m),u.cos+=Math.cos(m)}return u},{sin:0,cos:0}),f=Math.atan2(n.sin,n.cos)*180/Math.PI;return f<0?360+f:f};var Lu={mode:"hsl",toMode:{rgb:io},fromMode:{rgb:go},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Xn,qn],serialize:(o)=>`hsl(${o.h!==void 0?o.h:"none"} ${o.s!==void 0?o.s*100+"%":"none"} ${o.l!==void 0?o.l*100+"%":"none"}${o.alpha<1?` / ${o.alpha}`:""})`,interpolate:{h:{use:E,fixup:P0},s:E,l:E,alpha:{use:E,fixup:S}},difference:{h:m5},average:{h:U0}},On=Lu;function b5({h:o,s:n,v:f,alpha:u}){if(o=K(o!==void 0?o:0),n===void 0)n=0;if(f===void 0)f=0;let p=Math.abs(o/60%2-1),m;switch(Math.floor(o/60)){case 0:m={r:f,g:f*(1-n*p),b:f*(1-n)};break;case 1:m={r:f*(1-n*p),g:f,b:f*(1-n)};break;case 2:m={r:f*(1-n),g:f,b:f*(1-n*p)};break;case 3:m={r:f*(1-n),g:f*(1-n*p),b:f};break;case 4:m={r:f*(1-n*p),g:f*(1-n),b:f};break;case 5:m={r:f,g:f*(1-n),b:f*(1-n*p)};break;default:m={r:f*(1-n),g:f*(1-n),b:f*(1-n)}}if(m.mode="rgb",u!==void 0)m.alpha=u;return m}function r5({r:o,g:n,b:f,alpha:u}){if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=Math.max(o,n,f),m=Math.min(o,n,f),b={mode:"hsv",s:p===0?0:1-m/p,v:p};if(p-m!==0)b.h=(p===o?(n-f)/(p-m)+(n<f)*6:p===n?(f-o)/(p-m)+2:(o-n)/(p-m)+4)*60;if(u!==void 0)b.alpha=u;return b}var qu={mode:"hsv",toMode:{rgb:b5},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:r5},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:E,fixup:P0},s:E,v:E,alpha:{use:E,fixup:S}},difference:{h:m5},average:{h:U0}},En=qu;function zo({h:o,w:n,b:f,alpha:u}){if(n===void 0)n=0;if(f===void 0)f=0;if(n+f>1){let p=n+f;n/=p,f/=p}return b5({h:o,s:f===1?1:1-n/(1-f),v:1-f,alpha:u})}function To(o){let n=r5(o);if(n===void 0)return;let f=n.s!==void 0?n.s:0,u=n.v!==void 0?n.v:0,p={mode:"hwb",w:(1-f)*u,b:1-u};if(n.h!==void 0)p.h=n.h;if(n.alpha!==void 0)p.alpha=n.alpha;return p}function Xu(o,n){if(!n||n[0]!=="hwb")return;let f={mode:"hwb"},[,u,p,m,b]=n;if(u.type!==y.None){if(u.type===y.Percentage)return;f.h=u.value}if(p.type!==y.None){if(p.type===y.Hue)return;f.w=p.value/100}if(m.type!==y.None){if(m.type===y.Hue)return;f.b=m.value/100}if(b.type!==y.None)f.alpha=Math.min(1,Math.max(0,b.type===y.Number?b.value:b.value/100));return f}var Pn=Xu;var Ou={mode:"hwb",toMode:{rgb:zo},fromMode:{rgb:To},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Pn],serialize:(o)=>`hwb(${o.h!==void 0?o.h:"none"} ${o.w!==void 0?o.w*100+"%":"none"} ${o.b!==void 0?o.b*100+"%":"none"}${o.alpha<1?` / ${o.alpha}`:""})`,interpolate:{h:{use:E,fixup:P0},w:E,b:E,alpha:{use:E,fixup:S}},difference:{h:yo},average:{h:U0}},Un=Ou;var X5=Math.pow(29,3)/Math.pow(3,3),O5=Math.pow(6,3)/Math.pow(29,3);var C0={X:0.9642956764295677,Y:1,Z:0.8251046025104602},Q0={X:0.9504559270516716,Y:1,Z:1.0890577507598784},Zp=Math.pow(29,3)/Math.pow(3,3),jp=Math.pow(6,3)/Math.pow(29,3);var Do=(o)=>Math.pow(o,3)>O5?Math.pow(o,3):(116*o-16)/X5,Eu=({l:o,a:n,b:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=(o+16)/116,m=n/500+p,b=p-f/200,r={mode:"xyz50",x:Do(m)*C0.X,y:Do(p)*C0.Y,z:Do(b)*C0.Z};if(u!==void 0)r.alpha=u;return r},A0=Eu;var Pu=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=y0({r:o*3.1341359569958707-n*1.6173863321612538-0.4906619460083532*f,g:o*-0.978795502912089+n*1.916254567259524+0.03344273116131949*f,b:o*0.07195537988411677-n*0.2289768264158322+1.405386058324125*f});if(u!==void 0)p.alpha=u;return p},$0=Pu;var Uu=(o)=>$0(A0(o)),E5=Uu;var Cu=(o)=>{let{r:n,g:f,b:u,alpha:p}=i0(o),m={mode:"xyz50",x:0.436065742824811*n+0.3851514688337912*f+0.14307845442264197*u,y:0.22249319175623702*n+0.7168870538238823*f+0.06061979053616537*u,z:0.013923904500943465*n+0.09708128566574634*f+0.7140993584005155*u};if(p!==void 0)m.alpha=p;return m},k0=Cu;var Yo=(o)=>o>O5?Math.cbrt(o):(X5*o+16)/116,Qu=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=Yo(o/C0.X),m=Yo(n/C0.Y),b=Yo(f/C0.Z),r={mode:"lab",l:116*m-16,a:500*(p-m),b:200*(m-b)};if(u!==void 0)r.alpha=u;return r},_0=Qu;var Vu=(o)=>{let n=_0(k0(o));if(o.r===o.b&&o.b===o.g)n.a=n.b=0;return n},P5=Vu;function au(o,n){if(!n||n[0]!=="lab")return;let f={mode:"lab"},[,u,p,m,b]=n;if(u.type===y.Hue||p.type===y.Hue||m.type===y.Hue)return;if(u.type!==y.None)f.l=Math.min(Math.max(0,u.value),100);if(p.type!==y.None)f.a=p.type===y.Number?p.value:p.value*125/100;if(m.type!==y.None)f.b=m.type===y.Number?m.value:m.value*125/100;if(b.type!==y.None)f.alpha=Math.min(1,Math.max(0,b.type===y.Number?b.value:b.value/100));return f}var Cn=au;var Iu={mode:"lab",toMode:{xyz50:A0,rgb:E5},fromMode:{xyz50:_0,rgb:P5},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Cn],serialize:(o)=>`lab(${o.l!==void 0?o.l:"none"} ${o.a!==void 0?o.a:"none"} ${o.b!==void 0?o.b:"none"}${o.alpha<1?` / ${o.alpha}`:""})`,interpolate:{l:E,a:E,b:E,alpha:{use:E,fixup:S}}},v0=Iu;var U5=Math.pow(29,3)/Math.pow(3,3),C5=Math.pow(6,3)/Math.pow(29,3);var to=(o)=>Math.pow(o,3)>C5?Math.pow(o,3):(116*o-16)/U5,Gu=({l:o,a:n,b:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=(o+16)/116,m=n/500+p,b=p-f/200,r={mode:"xyz65",x:to(m)*Q0.X,y:to(p)*Q0.Y,z:to(b)*Q0.Z};if(u!==void 0)r.alpha=u;return r},Q5=Gu;var hu=(o)=>R0(Q5(o)),V5=hu;var Fo=(o)=>o>C5?Math.cbrt(o):(U5*o+16)/116,Wu=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=Fo(o/Q0.X),m=Fo(n/Q0.Y),b=Fo(f/Q0.Z),r={mode:"lab65",l:116*m-16,a:500*(p-m),b:200*(m-b)};if(u!==void 0)r.alpha=u;return r},a5=Wu;var Ju=(o)=>{let n=a5(g0(o));if(o.r===o.b&&o.b===o.g)n.a=n.b=0;return n},I5=Ju;var Zu={...v0,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:Q5,rgb:V5},fromMode:{xyz65:a5,rgb:I5},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}},Qn=Zu;var ju=({l:o,a:n,b:f,alpha:u},p="lch")=>{if(n===void 0)n=0;if(f===void 0)f=0;let m=Math.sqrt(n*n+f*f),b={mode:p,l:o,c:m};if(m)b.h=K(Math.atan2(f,n)*180/Math.PI);if(u!==void 0)b.alpha=u;return b},t0=ju;var Au=({l:o,c:n,h:f,alpha:u},p="lab")=>{if(f===void 0)f=0;let m={mode:p,l:o,a:n?n*Math.cos(f/180*Math.PI):0,b:n?n*Math.sin(f/180*Math.PI):0};if(u!==void 0)m.alpha=u;return m},F0=Au;function $u(o,n){if(!n||n[0]!=="lch")return;let f={mode:"lch"},[,u,p,m,b]=n;if(u.type!==y.None){if(u.type===y.Hue)return;f.l=Math.min(Math.max(0,u.value),100)}if(p.type!==y.None)f.c=Math.max(0,p.type===y.Number?p.value:p.value*150/100);if(m.type!==y.None){if(m.type===y.Percentage)return;f.h=m.value}if(b.type!==y.None)f.alpha=Math.min(1,Math.max(0,b.type===y.Number?b.value:b.value/100));return f}var Vn=$u;var ku={mode:"lch",toMode:{lab:F0,rgb:(o)=>E5(F0(o))},fromMode:{rgb:(o)=>t0(P5(o)),lab:t0},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[Vn],serialize:(o)=>`lch(${o.l!==void 0?o.l:"none"} ${o.c!==void 0?o.c:"none"} ${o.h!==void 0?o.h:"none"}${o.alpha<1?` / ${o.alpha}`:""})`,interpolate:{h:{use:E,fixup:P0},c:E,l:E,alpha:{use:E,fixup:S}},difference:{h:Ro},average:{h:U0}},B0=ku;var _u={...B0,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:(o)=>F0(o,"lab65"),rgb:(o)=>V5(F0(o,"lab65"))},fromMode:{rgb:(o)=>t0(I5(o),"lch65"),lab65:(o)=>t0(o,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},an=_u;var vu={...p0,mode:"lrgb",toMode:{rgb:y0},fromMode:{rgb:i0},parse:["srgb-linear"],serialize:"srgb-linear"},In=vu;var Bu=({l:o,a:n,b:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=Math.pow(o+0.3963377773761749*n+0.2158037573099136*f,3),m=Math.pow(o-0.1055613458156586*n-0.0638541728258133*f,3),b=Math.pow(o-0.0894841775298119*n-1.2914855480194092*f,3),r={mode:"lrgb",r:4.076741636075957*p-3.3077115392580616*m+0.2309699031821044*b,g:-1.2684379732850317*p+2.6097573492876887*m-0.3413193760026573*b,b:-0.0041960761386756*p-0.7034186179359362*m+1.7076146940746117*b};if(u!==void 0)r.alpha=u;return r},G5=Bu;var cu=({r:o,g:n,b:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=Math.cbrt(0.412221469470763*o+0.5363325372617348*n+0.0514459932675022*f),m=Math.cbrt(0.2119034958178252*o+0.6806995506452344*n+0.1073969535369406*f),b=Math.cbrt(0.0883024591900564*o+0.2817188391361215*n+0.6299787016738222*f),r={mode:"oklab",l:0.210454268309314*p+0.7936177747023054*m-0.0040720430116193*b,a:1.9779985324311684*p-2.42859224204858*m+0.450593709617411*b,b:0.0259040424655478*p+0.7827717124575296*m-0.8086757549230774*b};if(u!==void 0)r.alpha=u;return r},h5=cu;var Su=(o)=>{let n=h5(i0(o));if(o.r===o.b&&o.b===o.g)n.a=n.b=0;return n},W5=Su;var Ku=(o)=>y0(G5(o)),J5=Ku;function eu(o,n){if(!n||n[0]!=="oklab")return;let f={mode:"oklab"},[,u,p,m,b]=n;if(u.type===y.Hue||p.type===y.Hue||m.type===y.Hue)return;if(u.type!==y.None)f.l=Math.min(Math.max(0,u.type===y.Number?u.value:u.value/100),1);if(p.type!==y.None)f.a=p.type===y.Number?p.value:p.value*0.4/100;if(m.type!==y.None)f.b=m.type===y.Number?m.value:m.value*0.4/100;if(b.type!==y.None)f.alpha=Math.min(1,Math.max(0,b.type===y.Number?b.value:b.value/100));return f}var Gn=eu;var lu={...v0,mode:"oklab",toMode:{lrgb:G5,rgb:J5},fromMode:{lrgb:h5,rgb:W5},ranges:{l:[0,1],a:[-0.4,0.4],b:[-0.4,0.4]},parse:[Gn],serialize:(o)=>`oklab(${o.l!==void 0?o.l:"none"} ${o.a!==void 0?o.a:"none"} ${o.b!==void 0?o.b:"none"}${o.alpha<1?` / ${o.alpha}`:""})`},hn=lu;function Hu(o,n){if(!n||n[0]!=="oklch")return;let f={mode:"oklch"},[,u,p,m,b]=n;if(u.type!==y.None){if(u.type===y.Hue)return;f.l=Math.min(Math.max(0,u.type===y.Number?u.value:u.value/100),1)}if(p.type!==y.None)f.c=Math.max(0,p.type===y.Number?p.value:p.value*0.4/100);if(m.type!==y.None){if(m.type===y.Percentage)return;f.h=m.value}if(b.type!==y.None)f.alpha=Math.min(1,Math.max(0,b.type===y.Number?b.value:b.value/100));return f}var Wn=Hu;var su={...B0,mode:"oklch",toMode:{oklab:(o)=>F0(o,"oklab"),rgb:(o)=>J5(F0(o,"oklab"))},fromMode:{rgb:(o)=>t0(W5(o),"oklch"),oklab:(o)=>t0(o,"oklch")},parse:[Wn],serialize:(o)=>`oklch(${o.l!==void 0?o.l:"none"} ${o.c!==void 0?o.c:"none"} ${o.h!==void 0?o.h:"none"}${o.alpha<1?` / ${o.alpha}`:""})`,ranges:{l:[0,1],c:[0,0.4],h:[0,360]}},Jn=su;var o1=(o)=>{let{r:n,g:f,b:u,alpha:p}=i0(o),m={mode:"xyz65",x:0.486570948648216*n+0.265667693169093*f+0.1982172852343625*u,y:0.2289745640697487*n+0.6917385218365062*f+0.079286914093745*u,z:0*n+0.0451133818589026*f+1.043944368900976*u};if(p!==void 0)m.alpha=p;return m},Lo=o1;var n1=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=y0({r:o*2.4934969119414263-n*0.9313836179191242-0.402710784450717*f,g:o*-0.8294889695615749+n*1.7626640603183465+0.0236246858419436*f,b:o*0.0358458302437845-n*0.0761723892680418+0.9568845240076871*f},"p3");if(u!==void 0)p.alpha=u;return p},qo=n1;var f1={...p0,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:(o)=>qo(g0(o)),xyz65:qo},toMode:{rgb:(o)=>R0(Lo(o)),xyz65:Lo}},Zn=f1;var Xo=(o)=>{let n=Math.abs(o);if(n>=0.001953125)return Math.sign(o)*Math.pow(n,0.5555555555555556);return 16*o},u1=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p={mode:"prophoto",r:Xo(o*1.3457868816471585-n*0.2555720873797946-0.0511018649755453*f),g:Xo(o*-0.5446307051249019+n*1.5082477428451466+0.0205274474364214*f),b:Xo(o*0+n*0+1.2119675456389452*f)};if(u!==void 0)p.alpha=u;return p},Oo=u1;var Eo=(o=0)=>{let n=Math.abs(o);if(n>=0.03125)return Math.sign(o)*Math.pow(n,1.8);return o/16},p1=(o)=>{let n=Eo(o.r),f=Eo(o.g),u=Eo(o.b),p={mode:"xyz50",x:0.7977666449006423*n+0.1351812974005331*f+0.0313477341283922*u,y:0.2880748288194013*n+0.7118352342418731*f+0.0000899369387256*u,z:0*n+0*f+0.8251046025104602*u};if(o.alpha!==void 0)p.alpha=o.alpha;return p},Po=p1;var m1={...p0,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:Oo,rgb:(o)=>Oo(k0(o))},toMode:{xyz50:Po,rgb:(o)=>$0(Po(o))}},jn=m1;var Uo=(o)=>{let n=Math.abs(o);if(n>0.018053968510807)return(Math.sign(o)||1)*(1.09929682680944*Math.pow(n,0.45)-0.09929682680944008);return 4.5*o},b1=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p={mode:"rec2020",r:Uo(o*1.7166511879712683-n*0.3556707837763925-0.2533662813736599*f),g:Uo(o*-0.6666843518324893+n*1.6164812366349395+0.0157685458139111*f),b:Uo(o*0.0176398574453108-n*0.0427706132578085+0.9421031212354739*f)};if(u!==void 0)p.alpha=u;return p},Co=b1;var Qo=(o=0)=>{let n=Math.abs(o);if(n<0.08124285829863151)return o/4.5;return(Math.sign(o)||1)*Math.pow((n+1.09929682680944-1)/1.09929682680944,2.2222222222222223)},r1=(o)=>{let n=Qo(o.r),f=Qo(o.g),u=Qo(o.b),p={mode:"xyz65",x:0.6369580483012911*n+0.1446169035862083*f+0.1688809751641721*u,y:0.262700212011267*n+0.6779980715188708*f+0.059301716469862*u,z:0*n+0.0280726930490874*f+1.0609850577107909*u};if(o.alpha!==void 0)p.alpha=o.alpha;return p},Vo=r1;var M1={...p0,mode:"rec2020",fromMode:{xyz65:Co,rgb:(o)=>Co(g0(o))},toMode:{xyz65:Vo,rgb:(o)=>R0(Vo(o))},parse:["rec2020"],serialize:"rec2020"},An=M1;var d1={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:$0,lab:_0},fromMode:{rgb:k0,lab:A0},channels:["x","y","z","alpha"],ranges:{x:[0,0.964],y:[0,0.999],z:[0,0.825]},interpolate:{x:E,y:E,z:E,alpha:{use:E,fixup:S}}},$n=d1;var w1=(o)=>{let{x:n,y:f,z:u,alpha:p}=o;if(n===void 0)n=0;if(f===void 0)f=0;if(u===void 0)u=0;let m={mode:"xyz50",x:1.0479298208405488*n+0.0229467933410191*f-0.0501922295431356*u,y:0.0296278156881593*n+0.990434484573249*f-0.0170738250293851*u,z:-0.0092430581525912*n+0.0150551448965779*f+0.7518742899580008*u};if(p!==void 0)m.alpha=p;return m},kn=w1;var i1=(o)=>{let{x:n,y:f,z:u,alpha:p}=o;if(n===void 0)n=0;if(f===void 0)f=0;if(u===void 0)u=0;let m={mode:"xyz65",x:0.9554734527042182*n-0.0230985368742614*f+0.0632593086610217*u,y:-0.0283697069632081*n+1.0099954580058226*f+0.021041398966943*u,z:0.0123140016883199*n-0.0205076964334779*f+1.3303659366080753*u};if(p!==void 0)m.alpha=p;return m},_n=i1;var g1={mode:"xyz65",toMode:{rgb:R0,xyz50:kn},fromMode:{rgb:g0,xyz50:_n},ranges:{x:[0,0.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:E,y:E,z:E,alpha:{use:E,fixup:S}}},vn=g1;var W9=_(Fn),J9=_(On),Z9=_(En),j9=_(Un),A9=_(v0),$9=_(Qn),k9=_(B0),_9=_(an),v9=_(In),B9=_(hn),c9=_(Jn),S9=_(Zn),K9=_(jn),e9=_(An),l9=_(p0),H9=_($n),s9=_(vn);var y1=(o,n)=>Math.round(o*(n=Math.pow(10,n)))/n,R1=(o=4)=>(n)=>typeof n==="number"?y1(n,o):n,Bn=R1;var M5=Bn(2),d5=(o)=>Math.max(0,Math.min(1,o||0)),c0=(o)=>Math.round(d5(o)*255),cn=k("rgb"),N1=k("hsl"),Sn=(o)=>{if(o===void 0)return;let n=c0(o.r),f=c0(o.g),u=c0(o.b);return"#"+(16777216|n<<16|f<<8|u).toString(16).slice(1)};var Kn=(o)=>{if(o===void 0)return;let n=c0(o.r),f=c0(o.g),u=c0(o.b);if(o.alpha===void 0||o.alpha===1)return`rgb(${n}, ${f}, ${u})`;else return`rgba(${n}, ${f}, ${u}, ${M5(d5(o.alpha))})`},en=(o)=>{if(o===void 0)return;let n=M5(o.h||0),f=M5(d5(o.s)*100)+"%",u=M5(d5(o.l)*100)+"%";if(o.alpha===void 0||o.alpha===1)return`hsl(${n}, ${f}, ${u})`;else return`hsla(${n}, ${f}, ${u}, ${M5(d5(o.alpha))})`},e=(o)=>{let n=E0(o);if(!n)return;let f=w0(n.mode);if(!f.serialize||typeof f.serialize==="string"){let u=`color(${f.serialize||`--${n.mode}`} `;if(f.channels.forEach((p,m)=>{if(p!=="alpha")u+=(m?" ":"")+(n[p]!==void 0?n[p]:"none")}),n.alpha!==void 0&&n.alpha<1)u+=` / ${n.alpha}`;return u+")"}if(typeof f.serialize==="function")return f.serialize(n);return},w5=(o)=>Sn(cn(o));var ao=(o)=>Kn(cn(o)),Io=(o)=>en(N1(o));var ln=k("rgb"),Hn=(o)=>{let n={mode:o.mode,r:Math.max(0,Math.min(o.r!==void 0?o.r:0,1)),g:Math.max(0,Math.min(o.g!==void 0?o.g:0,1)),b:Math.max(0,Math.min(o.b!==void 0?o.b:0,1))};if(o.alpha!==void 0)n.alpha=o.alpha;return n},x1=(o)=>Hn(ln(o)),sn=(o)=>{return o!==void 0&&(o.r===void 0||o.r>=0&&o.r<=1)&&(o.g===void 0||o.g>=0&&o.g<=1)&&(o.b===void 0||o.b>=0&&o.b<=1)};function of(o){return sn(ln(o))}function L0(o="rgb"){let{gamut:n}=w0(o);if(!n)return(u)=>!0;let f=k(typeof n==="string"?n:o);return(u)=>sn(f(u))}function nf(o="rgb"){let{gamut:n}=w0(o);if(!n)return(m)=>E0(m);let f=typeof n==="string"?n:o,u=k(f),p=L0(f);return(m)=>{let b=E0(m);if(!b)return;let r=u(b);if(p(r))return b;let d=Hn(r);if(b.mode===d.mode)return d;return k(b.mode)(d)}}function Go(o,n="lch",f="rgb"){o=E0(o);let u=f==="rgb"?of:L0(f),p=f==="rgb"?x1:nf(f);if(o===void 0||u(o))return o;let m=k(o.mode);o=k(n)(o);let b={...o,c:0};if(!u(b))return m(p(b));let r=0,d=o.c!==void 0?o.c:0,M=w0(n).ranges.c,w=(M[1]-M[0])/Math.pow(2,13),R=b.c;while(d-r>w)if(b.c=r+(d-r)*0.5,u(b))R=b.c,r=b.c;else d=b.c;return m(u(b)?b:{...b,c:R})}var z1=(o,n=No(),f=(u)=>u)=>{let u=o.map((p,m)=>({color:f(p),i:m}));return(p,m=1,b=1/0)=>{if(isFinite(m))m=Math.max(1,Math.min(m,u.length-1));return u.forEach((r)=>{r.d=n(p,r.color)}),u.sort((r,d)=>r.d-d.d).slice(0,m).filter((r)=>r.d<b).map((r)=>o[r.i])}},ho=z1;var N0=(o={mode:"oklch",l:0.48,c:0.23,h:263})=>(n,f)=>(f?k("oklch")(f):o)??o;var x0=(o,n)=>{let f=()=>{let b=o.l,r=2*Math.log((1-b)/b);return(Math.exp(r*n)-1)/(Math.exp(r)-1)},u=()=>{return o.c*(8*Math.sin(Math.PI*(4*n+1)/6)**3-1)/7},p=o.l!==0.5?f():n,m=o.c>0?u():0;return{mode:"oklch",l:p,c:m,h:o.h}};var T1=0.71,J3=z("card-colorscale",{name:o0(C({".label strong":$()},"")),color:N0()},(o,{first:n})=>[n(".label strong",q("name")),n(".label small",q(()=>w5(o.color))),()=>c(()=>{let f=new Map,u=o.color.l>T1,p=u?0.1:0.9;f.set("base",e(o.color)),f.set("text",u?"black":"white"),f.set("text-soft",e(x0(o.color,p)));for(let m=4;m>0;m--)f.set(`lighten${m*20}`,e(x0(o.color,(5+m)/10)));for(let m=1;m<5;m++)f.set(`darken${m*20}`,e(x0(o.color,(5-m)/10)));for(let[m,b]of f)o.style.setProperty(`--color-${m}`,b)})]);var A3=z("hello-world",{name:o0(C({span:$()},""))},(o,{first:n})=>{let f=o.name;return[n("input",N("input",({target:u})=>{o.name=u.value||f}),"Needed to input the name."),n("span",q("name"),"Needed to display the name.")]});var _3=z("basic-button",{disabled:j0(),label:o0(D5("button")),badge:o0(C({".badge":$()},""))},(o,{first:n})=>[n("button",t("disabled"),"Add native <button> as descendant."),n(".label",q("label")),n(".badge",q("badge"))]);var c3=z("basic-counter",{count:d0("button",{click:({value:o})=>++o},C({span:$()},Z()))},(o,{first:n})=>[n("span",q("count"))]);var D1="en";function Y1(o,n,f={onWarn:console.warn,onError:console.error}){let u=()=>new Intl.NumberFormat(o);if(!n)return u();let{onWarn:p,onError:m}=f,b={};try{b=JSON.parse(n)}catch(x){return m?.(`Invalid JSON: ${x}`),u()}let r=b.style??"decimal",d=[];if(r==="currency"){if(!b.currency||typeof b.currency!=="string"||b.currency.length!==3)return m?.('style="currency" requires a 3-letter ISO currency (e.g. "CHF").'),u()}else d.push("currency","currencyDisplay","currencySign");if(r==="unit"){if(!b.unit||typeof b.unit!=="string")return m?.('style="unit" requires a "unit" (e.g. "liter", "kilometer-per-hour").'),u()}else d.push("unit","unitDisplay");if(b.notation&&b.notation!=="compact")d.push("compactDisplay");let M={};for(let[x,X]of Object.entries(b))if(!d.includes(x))M[x]=X;else p?.(`Option "${x}" is ignored for style="${r}".`);let{minimumFractionDigits:w,maximumFractionDigits:R}=M;if(w!=null&&R!=null&&w>R)p?.(`minimumFractionDigits (${w}) > maximumFractionDigits (${R}); swapping.`),M.minimumFractionDigits=R,M.maximumFractionDigits=w;let{minimumSignificantDigits:Y,maximumSignificantDigits:F}=M;if(Y!=null&&F!=null&&Y>F)p?.(`minimumSignificantDigits (${Y}) > maximumSignificantDigits (${F}); swapping.`),M.minimumSignificantDigits=F,M.maximumSignificantDigits=Y;try{let x=new Intl.NumberFormat(o,M);if(x.resolvedOptions().locale!==o)p(`Fall back to locale ${x.resolvedOptions().locale} instead of ${o}`);return x}catch(x){return m?.(`Options rejected by Intl.NumberFormat: ${x instanceof Error?x.message:String(x)}`),u()}}var e3=z("basic-number",{value:pn()},(o)=>{let n=Y1(o.closest("[lang]")?.getAttribute("lang")||D1,o.getAttribute("options"));return[q(()=>n.format(o.value))]});var t1="en",s3=z("basic-pluralize",{count:Z()},(o,{first:n})=>{let f=new Intl.PluralRules(o.closest("[lang]")?.getAttribute("lang")||t1,o.hasAttribute("ordinal")?{type:"ordinal"}:void 0),u=f.resolvedOptions().pluralCategories,p=[n(".count",[q(()=>String(o.count))]),n(".none",[a(()=>o.count===0)]),n(".some",[a(()=>o.count>0)])];for(let m of u)p.push(n(`.${m}`,[a(()=>f.select(o.count)===m)]));return p});var fm=z("form-checkbox",{checked:d0("input",{change:({target:o})=>o.checked},C({input:Y0("checked")},j0())),label:o0(D5("input"))},(o,{first:n,useElement:f})=>{return f('input[type="checkbox"]',"Native checkbox needed."),[T5("checked"),n(".label",q("label"))]});var h0=(o)=>{let n=0,f=!1,u=[],p=(...m)=>{if(u=m,f)return;f=!0,n=requestAnimationFrame(()=>{f=!1,o(...u)})};return p.cancel=()=>{if(f)cancelAnimationFrame(n),f=!1},p};var S0=L0("p3"),F1=L0("rgb"),L1=new Intl.NumberFormat("en-US",{maximumFractionDigits:2}).format,q1=new Intl.NumberFormat("en-US",{maximumFractionDigits:4}).format,ff=20,Wo=0.71,b0={l:1,c:0.4,h:360},Jo={l:0.0025,c:0.001,h:1},X1={l:0.05,c:0.02,h:15},uf=(o,n)=>n?X1[o]:Jo[o],wm=z("form-colorgraph",{color:N0(),lightness:(o)=>()=>o.color.l,chroma:(o)=>()=>o.color.c,hue:(o)=>()=>o.color.h??0,stepDown:()=>{},stepUp:()=>{}},(o,{all:n,first:f,useElement:u})=>{let p={l:u('input[name="lightness"]','Add an <input[name="lightness"]> element to control the lightness of the color.'),c:u('input[name="chroma"]','Add an <input[name="chroma"]> element to control the chroma of the color.'),h:u('input[name="hue"]','Add an <input[name="hue"]> element to control the hue of the color.')},m=u(".graph","Add a <.graph> element as a container for the color graph."),b=u(".graph canvas","Add a <canvas> element inside the graph to display the lightness/chroma graph."),r=u(".slider","Add a <.slider> element as a container for track and thumb."),d=u(".slider canvas","Add a <canvas> element inside the slider to display the hue slider track.");for(let[i,g]of Object.entries(p))g.min="0",g.max=i==="l"?"100":i==="c"?"0.4":"360",g.step="any";r.setAttribute("aria-valuemin","0"),r.setAttribute("aria-valuemax","360");let M=V(m.getBoundingClientRect().width),w=B(()=>M.get()-2*ff),R={l:V(""),c:V(""),h:V("")},Y=(i)=>{return i==="l"?o.lightness:i==="c"?o.chroma:o.hue},F=(i)=>{o.color=i;for(let g of["l","c","h"])R[g].set("");D0("color-change","color")},x=(i,g)=>{let T=Math.round(g/Jo[i])*Jo[i];if(T<0||T>b0[i])return;let P={...o.color,[i]:T};if(S0(P))F(P);else p[i].setCustomValidity("Color out of gamut"),R[i].set(p[i].validationMessage)};o.stepDown=(i,g=!1)=>{x(i,Y(i)-uf(i,g))},o.stepUp=(i,g=!1)=>{x(i,Y(i)+uf(i,g))};let X=(i,g)=>{let T=i==="l"?g*100:g;return i==="c"?q1(T):L1(T)},W0=h0((i,g,T,P,A)=>{let s={...o.color,c:Math.min(Math.max((i-P)/A,0),1)*b0.c,l:1-Math.min(Math.max((g-T)/A,0),1)};if(S0(s))F(s)}),L=(i,g,T,P=1)=>e({mode:"oklch",l:1-g,c:i*b0.c,h:T,alpha:P}),O=(i,g)=>{let T=M.get(),P=Math.round(g.c*T/b0.c),A=Math.round((1-g.l)*T);i.style.setProperty("background-color",e(g)),i.style.setProperty("border-color",g.l>Wo?"black":"white"),i.style.setProperty("left",`${P}px`),i.style.setProperty("top",`${A}px`)},Q=h0((i,g,T)=>{let P={...o.color,h:Math.min(Math.max((i-g)/T,0),1)*b0.h};if(S0(P))F(P)}),n0=(i)=>{let g={...o.color,h:i*b0.h};if(F1(g))return g;if(S0(g))g.alpha=0.5;else g.alpha=0;return g},W=(i)=>{if(i.closest(".lightness"))return"l";if(i.closest(".chroma"))return"c";if(i.closest(".hue"))return"h";return null},H=[j("--color-base",()=>e(o.color)),()=>{let i=h0((T)=>{M.set(T)}),g=new ResizeObserver(()=>{i(m.clientWidth)});return g.observe(m),()=>{g.disconnect(),i.cancel()}},n("input",[t("ariaInvalid",(i)=>{let g=W(i);return g?String(!!R[g].get()):"false"}),U("aria-errormessage",(i)=>{let g=W(i);return g&&R[g].get()?`${i.id}-error`:null}),t("value",(i)=>{let g=W(i);return g?X(g,o.color[g]??0):"0"}),N("change",({target:i})=>{let g=W(i);if(!g)return;let T=i.valueAsNumber,P={...o.color,[g]:g==="l"?T/100:T};if(S0(P))F(P);else i.setCustomValidity("Color out of gamut"),R[g].set(i.validationMessage)})]),n(".error",[q((i)=>{let g=W(i);return g?R[g].get():""})]),f(".graph",[N("pointerdown",({event:i})=>{let{top:g,left:T}=b.getBoundingClientRect(),P=M.get();m.setPointerCapture(i.pointerId);let A=(G)=>{let h=(G.getCoalescedEvents?.()||[]).pop()||G;W0(h.clientX,h.clientY,g,T,P)},s=()=>{m.removeEventListener("pointermove",A),m.removeEventListener("pointerup",s),Q.cancel()};m.addEventListener("pointermove",A,{passive:!0}),m.addEventListener("pointerup",s)}),j("--canvas-size",()=>M.get()+"px")]),f(".graph canvas",[U("width",()=>String(M.get())),U("height",()=>String(M.get())),()=>c(()=>{let i=b.getContext("2d",{colorSpace:"display-p3"});if(!i)return;let g=o.hue,T=Math.round(M.get()),P=(G,h="rgb")=>Go({mode:"oklch",l:G,c:b0.c,h:g},"oklch",h).c/b0.c,A=(G,h,r0,z0=1)=>[L(G,r0,g,z0),L(h,r0,g,z0)],s=(G,h,r0="rgb")=>{let z0=P(1-h/T,r0)*T,K0=i.createLinearGradient(G,0,z0,0),J0=A(G/T,z0/T,h/T,r0==="p3"?0.5:1);return K0.addColorStop(0,J0[0]),K0.addColorStop(1,J0[1]),i.fillStyle=K0,i.fillRect(G,h,z0-G,1),[z0,J0[1]]};i.clearRect(0,0,T,T);for(let G=0;G<T;G++){let[h,r0]=s(0,G);if(S0(r0))s(h,G,"p3")}})]),f(".knob",[j("top",()=>`${Math.round((1-o.lightness)*M.get())}px`),j("left",()=>`${Math.round(o.chroma*M.get()/b0.c)}px`),j("--color-border",()=>o.lightness>Wo?"black":"white")],"Add a <.knob> element as a drag knob to control lightness and chroma."),f(".slider",[N("pointerdown",({event:i})=>{let g=d.getBoundingClientRect().left,T=w.get();r.setPointerCapture(i.pointerId);let P=(s)=>{let G=(s.getCoalescedEvents?.()||[]).pop()||s;Q(G.clientX,g,T)},A=()=>{r.removeEventListener("pointermove",P),r.removeEventListener("pointerup",A),Q.cancel()};r.addEventListener("pointermove",P,{passive:!0}),r.addEventListener("pointerup",A)}),j("--track-width",()=>w.get()+"px"),U("aria-valuenow","hue"),U("aria-valuetext",()=>X("h",o.hue)+"\xB0")]),f(".slider canvas",[U("width",()=>String(w.get())),()=>c(()=>{let i=d.getContext("2d",{colorSpace:"display-p3"});if(!i)return;let g=Math.round(w.get());i.clearRect(0,0,g,1);for(let T=0;T<g;T++)i.fillStyle=e(n0(T/g)),i.fillRect(T,0,1,1)})]),f(".thumb",[j("left",()=>`${Math.round(o.hue*w.get()/b0.h)+ff}px`),j("--color-border",()=>o.lightness>Wo?"black":"white")],"Add a <.thumb> element as a drag knob to control the hue."),n("button.decrement",[N("click",({event:i,target:g})=>{let T=W(g);if(T)o.stepDown(T,i.shiftKey)}),t("disabled",(i)=>{let g=W(i);return!g||(o.color[g]??0)<=0})],"Add a <button.decrement> to decrement a value for a color channel."),n("button.increment",[N("click",({event:i,target:g})=>{let T=W(g);if(T)o.stepUp(T,i.shiftKey)}),t("disabled",(i)=>{let g=W(i);return!g||(o.color[g]??0)>=b0[g]})],"Add a <button.increment> to increment a value for a color channel."),N("keydown",({event:i})=>{let{key:g,shiftKey:T}=i,P=i.target;if(!P||P.localName==="input"&&(g==="ArrowLeft"||g==="ArrowRight"))return;if(g.substring(0,5)==="Arrow"||["+","-"].includes(g)){i.preventDefault(),i.stopPropagation();let A=W(P);if(A){if(g==="ArrowLeft"||g==="ArrowDown"||g==="-")o.stepDown(A,T);else if(g==="ArrowRight"||g==="ArrowUp"||g==="+")o.stepUp(A,T)}else if(P.role==="slider"){if(g==="ArrowLeft"||g==="ArrowDown"||g==="-")o.stepDown("h",T);else if(g==="ArrowRight"||g==="ArrowUp"||g==="+")o.stepUp("h",T)}else switch(g){case"ArrowDown":o.stepDown("l",T);break;case"ArrowUp":o.stepUp("l",T);break;case"ArrowLeft":o.stepDown("c",T);break;case"ArrowRight":o.stepUp("c",T);break;case"-":o.stepDown("h");break;case"+":o.stepUp("h");break}}})];for(let i=1;i<5;i++)H.push(f(`li.lighten${(5-i)*20}`,[(g,T)=>c(()=>{O(T,x0(o.color,1-i/10))})]));for(let i=1;i<5;i++)H.push(f(`li.darken${i*20}`,[(g,T)=>c(()=>{O(T,x0(o.color,1-(i+5)/10))})]));return H});var Zo=L0("p3"),O1=L0("rgb"),pf=20,E1=0.71,xm=z("form-colorslider",{color:N0(),value:0,stepDown:()=>{},stepUp:()=>{}},(o,{first:n,useElement:f})=>{let u=f("input","Add an <input> element to control the color slider."),p=f(".slider","Add a <.slider> element as a container for track and thumb."),m=f("canvas","Add a <canvas> element to display the color slider track."),b=mn(["l","c","h"])(o,o.getAttribute("axis")),r=b==="h"?360:b==="c"?0.4:1,d=b==="h"?1:b==="c"?0.001:0.0025,M=b==="h"?15:b==="c"?0.02:0.05;o.value=o.color[b],u.min="0",u.max=String(b==="l"?r*100:r),p.setAttribute("aria-valuemin","0"),p.setAttribute("aria-valuemax",String(r));let w=(L)=>{let O=Math.round(L/d)*d;if(O>=0&&O<=r)M0(()=>{o.color={...o.color,[b]:O},o.value=O}),D0("color-change","color")};o.stepDown=(L)=>{w(o.value-(L??d))},o.stepUp=(L)=>{w(o.value+(L??d))};let R=V(p.getBoundingClientRect().width-2*pf),Y=B(()=>o.color.l),F=(L)=>{let O=b==="l"?L*100:L;return O.toFixed(Math.min(String(O).split(".")[1]?.length||0,b==="c"?4:2))},x=(L)=>{M0(()=>{o.color=L,o.value=L[b]}),D0("color-change","color")},X=h0((L,O,Q)=>{let n0=Q?(L-O)/Q:0,W={...o.color,[b]:Math.min(Math.max(n0,0),1)*r};if(Zo(W))x(W)}),W0=(L)=>{let O={...o.color,[b]:L*r};if(O1(O))return O;if(Zo(O))O.alpha=0.5;else O.alpha=0;return O};return[n("input",[t("value",()=>F(o.value)),N("change",({target:L})=>{let O=L.valueAsNumber,Q={...o.color,[b]:b==="l"?O/100:O};if(Zo(Q))x(Q)})]),n(".slider",[N("pointerdown",({event:L})=>{let O=m.getBoundingClientRect().left,Q=R.get();p.setPointerCapture(L.pointerId);let n0=(H)=>{let i=(H.getCoalescedEvents?.()||[]).pop()||H;X(i.clientX,O,Q)},W=()=>{p.removeEventListener("pointermove",n0),p.removeEventListener("pointerup",W),X.cancel()};p.addEventListener("pointermove",n0,{passive:!0}),p.addEventListener("pointerup",W)}),j("--color-base",()=>e(o.color)),j("--track-width",()=>R.get()+"px"),U("aria-valuenow","value"),U("aria-valuetext",()=>{let L=F(o.value);return b==="l"?L+"%":b==="h"?L+"\xB0":L}),()=>{let L=h0((Q)=>{R.set(Q)}),O=new ResizeObserver(()=>{L(m.clientWidth)});return O.observe(m),()=>{O.disconnect(),L.cancel()}}]),n("canvas",[U("width",()=>String(R.get())),()=>c(()=>{let L=m.getContext("2d",{colorSpace:"display-p3"});if(!L)return;L.clearRect(0,0,360,1);let O=Math.round(R.get());for(let Q=0;Q<O;Q++)L.fillStyle=e(W0(Q/O)),L.fillRect(Q,0,1,1)})]),n(".thumb",[j("left",()=>`${Math.round(o.value*R.get()/r)+pf}px`),j("--color-border",()=>Y.get()>E1?"black":"white")],"Add a <.thumb> element as a drag knob to control the color."),n("button.decrement",[N("click",({event:L})=>{o.stepDown(L.shiftKey?M:d)}),t("disabled",()=>o.value<=0)],"Add a <button.decrement> to decrement a value for a color channel."),n("button.increment",[N("click",({event:L})=>{o.stepUp(L.shiftKey?M:d)}),t("disabled",()=>o.value>=r)],"Add a <button.increment> to increment a value for a color channel."),N("keyup",({event:L})=>{if(L.target?.localName==="input")return;let{key:O,shiftKey:Q}=L;if((O==="ArrowLeft"||O==="-")&&o.value>0)o.stepDown(Q?M:d);else if((O==="ArrowRight"||O==="+")&&o.value<r)o.stepUp(Q?M:d)})]});var Z5=(o="input")=>(n)=>{n.clear=()=>{n.value="",n.length=0;let f=n.querySelector(o);if(f)f.value="",f.setCustomValidity(""),f.checkValidity(),f.dispatchEvent(new Event("input",{bubbles:!0})),f.dispatchEvent(new Event("change",{bubbles:!0})),f.focus()}},j5=(o)=>[a(()=>!!o.length),N("click",()=>{o.clear()})];var Fm=z("form-combobox",{value:"",length:0,error:C({".error":$()},""),description:C({".description":$()},""),clear:Z5()},(o,{first:n,useElement:f})=>{let u=f("input","Needed to enter value."),p=f("form-combobox > .error")?.id,m=f(".description")?.id,b=f("form-listbox","Needed to display options."),r=V(!1),d=B(()=>r.get()&&b.options.length>0);return[U("value"),N("keyup",({event:M})=>{let{key:w}=M;if(w==="Escape")r.set(!1);if(w==="Delete")o.clear()}),N("form-listbox.change",({event:M})=>{if(M.detail)o.value=M.detail,u.value=M.detail,u.checkValidity(),o.length=u.value.length,o.error=u.validationMessage??"",r.set(!1)}),n("form-combobox > .error",q("error")),n(".description",q("description")),n("input",[t("ariaInvalid",()=>String(!!o.error)),U("aria-errormessage",()=>o.error&&p?p:null),U("aria-describedby",()=>o.description&&m?m:null),t("ariaExpanded",()=>String(d.get())),N("input",()=>{M0(()=>{u.checkValidity(),r.set(!0),o.value=u.value,o.length=u.value.length,o.error=u.validationMessage??""})}),N("keydown",({event:M})=>{let{key:w,altKey:R}=M;if(w==="ArrowDown"){if(R)r.set(!0);if(d.get())b.options[0]?.focus()}})]),n(".clear",j5(o)),n("form-listbox",[a(()=>d.get()),I({filter:()=>o.value})])]});var Xm=z("form-gauge",{value:Z(C({progress:Y0("value")},0))},(o,{first:n,useElement:f})=>{let u=f("progress","Add a native <progress> element.").max??100,p=(()=>{let b=o.getAttribute("thresholds");if(!b)return[];try{return JSON.parse(b)}catch{return[]}})(),m=B(()=>p.find((b)=>o.value>=b.min)||{label:"",color:"var(--color-primary)"});return[n("progress",t("value")),n(".value span",q("value")),U("value"),j("--form-gauge-degree",()=>`${240*o.value/u}deg`),j("--form-gauge-color",()=>m.get().color),n("small",[q(()=>m.get().label)]),n("button.increment",[t("disabled",()=>o.value>=u),N("click",({event:b})=>{o.value+=b.shiftKey?10:1})]),n("button.decrement",[t("disabled",()=>o.value<=0),N("click",({event:b})=>{o.value-=b.shiftKey?10:1})]),N("keydown",({event:b})=>{let{key:r,shiftKey:d}=b;if((r==="ArrowLeft"||r==="-")&&o.value>0)o.value-=d?10:1;else if((r==="ArrowRight"||r==="+")&&o.value<u)o.value+=d?10:1})]});var A5=(o,n)=>{let f="",u="";if(!n)u="No URL provided";else if((o.parentElement||o.getRootNode().host)?.closest(`${o.localName}[src="${n}"]`))u="Recursive loading detected";else try{let p=new URL(n,location.href);if(p.origin===location.origin)f=String(p);else u="Invalid URL origin"}catch(p){u=String(p)}return{value:f,error:u}};var mf=new Map,P1=(o)=>{let n=o.toLowerCase().split(",").map((u)=>u.trim()),f={noCache:!1,noStore:!1,maxAge:void 0};for(let u of n)if(u==="no-cache")f.noCache=!0;else if(u==="no-store")f.noStore=!0;else if(u.startsWith("max-age=")){let p=parseInt(u.substring(8),10);if(!isNaN(p))f.maxAge=p}return f},U1=(o)=>{if(o.maxAge!==void 0)return(Date.now()-o.timestamp)/1000<o.maxAge;return!0},$5=async(o,n,f=(u)=>u.text())=>{let u=mf.get(o),p={};if(u?.etag)p["If-None-Match"]=u.etag;if(u?.lastModified)p["If-Modified-Since"]=u.lastModified;let m=await fetch(o,{signal:n,headers:p});if(m.status===304&&u)return{content:u.content,fromCache:!0};if(!m.ok)throw new Error(`HTTP error! status: ${m.status}`);let b=await f(m),r=m.headers.get("cache-control"),d=m.headers.get("etag"),M=m.headers.get("last-modified"),w=r?P1(r):{noCache:!1,noStore:!1};if(!w.noStore){let R={content:b,timestamp:Date.now(),etag:d||void 0,lastModified:M||void 0,maxAge:w.maxAge};if(!w.noCache||U1(R))mf.set(o,R)}return{content:b,fromCache:!1}};var bf=(o,n)=>{if(!n)return o;let f=new RegExp(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi");return o.replace(f,"<mark>$&</mark>")};var C1="Enter",Q1=["ArrowLeft","ArrowUp"],rf=["ArrowRight","ArrowDown"],Mf="Home",df="End",V1=[...Q1,...rf,Mf,df];z("form-listbox",{value:"",filter:"",src:A5,options:u0('[role="option"]:not([hidden])'),index:-1},(o,{all:n,first:f})=>{let u=V(""),p=(M)=>M.map((w)=>`

Check failure

Code scanning / CodeQL

Useless regular-expression character escape High documentation

The escape sequence '$' is equivalent to just '$', so the sequence may still represent a meta-character when it is used in a
regular expression
.

Copilot Autofix

AI 18 days ago

Copilot could not generate an autofix suggestion

Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.

@@ -0,0 +1,8 @@
var V0,i5=new Set,v5=0,Ao=new Map,Lf,qf=()=>{Lf=void 0;let o=Array.from(Ao.values());Ao.clear();for(let n of o)n()};queueMicrotask(qf);var _o=(o)=>{let n=new Set,f=o;return f.off=(u)=>{n.add(u)},f.cleanup=()=>{for(let u of n)u();n.clear()},f},N5=(o)=>{if(V0&&!o.has(V0)){let n=V0;o.add(n),V0.off(()=>{o.delete(n)})}},e0=(o)=>{for(let n of o)if(v5)i5.add(n);else n()},vo=()=>{while(i5.size){let o=Array.from(i5);i5.clear();for(let n of o)n()}},M0=(o)=>{v5++;try{o()}finally{vo(),v5--}},Bo=(o,n)=>{let f=V0;V0=n;try{o()}finally{V0=f}};var l=(o)=>typeof o==="function",co=(o,n)=>Object.prototype.toString.call(o)===`[object ${n}]`,B5=(o)=>o instanceof Error?o:Error(String(o));class H5 extends Error{constructor(o){super(`Circular dependency in ${o} detected`);this.name="CircularDependencyError"}}var So="State",V=(o)=>{let n=new Set,f=o,u={[Symbol.toStringTag]:So,get:()=>{return N5(n),f},set:(p)=>{if(Object.is(f,p))return;if(f=p,e0(n),v===f)n.clear()},update:(p)=>{u.set(p(f))}};return u},y5=(o)=>co(o,So),v=Symbol(),x5=(o)=>y5(o)||Ko(o),c5=(o)=>x5(o)?o:Xf(o)?B(o):V(o),z5="Computed",B=(o)=>{let n=new Set,f=v,u,p,m=!0,b=!1,r=!1,d=(x)=>{if(!Object.is(x,f))f=x,b=!0;u=void 0,m=!1},M=()=>{b=v!==f,f=v,u=void 0},w=(x)=>{let X=B5(x);b=!u||X.name!==u.name||X.message!==u.message,f=v,u=X},R=(x)=>(X)=>{if(r=!1,p=void 0,x(X),b)e0(n)},Y=_o(()=>{if(m=!0,p?.abort("Aborted because source signal changed"),n.size)e0(n);else Y.cleanup()}),F=()=>Bo(()=>{if(r)throw new H5("computed");if(b=!1,l(o)&&o.constructor.name==="AsyncFunction"){if(p)return f;p=new AbortController,p.signal.addEventListener("abort",()=>{r=!1,p=void 0,F()},{once:!0})}let x;r=!0;try{x=p?o(p.signal):o()}catch(X){if(X instanceof DOMException&&X.name==="AbortError")M();else w(X);r=!1;return}if(x instanceof Promise)x.then(R(d),R(w));else if(x==null||v===x)M();else d(x);r=!1},Y);return{[Symbol.toStringTag]:z5,get:()=>{if(N5(n),vo(),m)F();if(u)throw u;return f}}},Ko=(o)=>co(o,z5),Xf=(o)=>l(o)&&o.length<2;function c(o){let{signals:n,ok:f,err:u=(r)=>{console.error(r)},nil:p=()=>{}}=l(o)?{signals:[],ok:o}:o,m=!1,b=_o(()=>Bo(()=>{if(m)throw new H5("effect");m=!0;let r=[],d=!1,M=n.map((R)=>{try{let Y=R.get();if(Y===v)d=!0;return Y}catch(Y){return r.push(B5(Y)),v}}),w;try{w=d?p():r.length?u(...r):f(...M)}catch(R){w=u(B5(R))}finally{if(l(w))b.off(w)}m=!1},b));return b(),()=>b.cleanup()}var T0=!1,Of="debug";var eo="warn",H0="error",Ef=(o)=>o?`#${o}`:"",Pf=(o)=>o?.length?`.${Array.from(o).join(".")}`:"",s5=(o)=>!!o&&typeof o==="object",Z0=(o)=>typeof o==="string",Uf=(o,n)=>Z0(n)&&(n in o)&&l(o[n]),Cf=(o)=>o.nodeType===Node.ELEMENT_NODE,S5=(o)=>o.localName.includes("-"),J=(o)=>o?`<${o.localName}${Ef(o.id)}${Pf(o.classList)}>`:"<unknown>",g5=(o)=>Z0(o)?`"${o}"`:s5(o)?JSON.stringify(o):String(o),_5=(o)=>{if(o===null)return"null";if(typeof o!=="object")return typeof o;if(Array.isArray(o))return"Array";if(Symbol.toStringTag in Object(o))return o[Symbol.toStringTag];return o.constructor?.name||"Object"},f0=(o,n,f=Of)=>{if(T0||[H0,eo].includes(f))console[f](n,o);return o};class lo extends Error{constructor(o,n){super(`Circular dependency detected in selection signal for component ${J(o)} with selector "${n}"`);this.name="CircularMutationError"}}class Ho extends Error{constructor(o){super(`Invalid component name "${o}". Custom element names must contain a hyphen, start with a lowercase letter, and contain only lowercase letters, numbers, and hyphens.`);this.name="InvalidComponentNameError"}}class K5 extends Error{constructor(o,n,f){super(`Invalid property name "${n}" for component <${o}>. ${f}`);this.name="InvalidPropertyNameError"}}class so extends Error{constructor(o,n){super(`Invalid effects in component ${J(o)}. Effects must be an array of effects, a single effect function, or a Promise that resolves to effects.`);if(this.name="InvalidEffectsError",n)this.cause=n}}class on extends Error{constructor(o,n){super(`Expected signal as value for property "${String(n)}" in component ${J(o)}.`);this.name="InvalidSignalError"}}class I0 extends Error{constructor(o,n,f){super(`Missing required element <${n}> in component ${J(o)}. ${f}`);this.name="MissingElementError"}}class nn extends Error{constructor(o,n){super(`Timeout waiting for: [${n.join(", ")}] in component ${J(o)}.`);this.name="DependencyTimeoutError"}}var l0=Symbol("RESET"),R5=(o,n,f=n)=>{try{if(o instanceof Promise)throw o;if(!Array.isArray(o))return o(n,f);let u=o.filter(l).map((p)=>p(n,f));return()=>{u.filter(l).forEach((p)=>p()),u.length=0}}catch(u){if(u instanceof Promise)u.then(()=>R5(o,n,f));else throw new so(n,u instanceof Error?u:new Error(String(u)))}},oo=(o,n,f,u)=>{try{return Z0(o)?n.getSignal(o).get():x5(o)?o.get():l(o)?o(f):l0}catch(p){if(u)f0(p,`Failed to resolve value of ${g5(o)}${u?` for ${u}`:""} in ${J(f)}${n!==f?` in ${J(n)}`:""}`,H0);return l0}},Qf=(o)=>{let n=new Set;if(o.includes("."))n.add("class");if(o.includes("#"))n.add("id");if(o.includes("[")){let f=o.split("[");for(let u=1;u<f.length;u++){let p=f[u];if(!p.includes("]"))continue;let m=p.split("=")[0].trim().replace(/[^a-zA-Z0-9_-]/g,"");if(m)n.add(m)}}return[...n]},Vf=(o,n)=>{if(o.length!==n.length)return!1;let f=new Set(o);for(let u of n)if(!f.has(u))return!1;return!0},e5=(o)=>l(o)&&o.length>=2,a0=(o,n)=>l(n)?n(o):n,C=(o,n)=>(f)=>{let u=f.shadowRoot??f,p=(b,r)=>{let d=u.querySelector(b);if(!d)return;let M=r(d);if(M!=null)return M},m=void 0;for(let[b,r]of Object.entries(o))if(m=p(b,r),m!=null)break;return Z0(m)&&e5(n)?n(f,m):m??a0(f,n)},fn=(o,n,f)=>{let u=new MutationObserver(f),p={childList:!0,subtree:!0},m=Qf(n);if(m.length)p.attributes=!0,p.attributeFilter=m;return u.observe(o,p),u},af=(o)=>{let n=o.shadowRoot??o,f=new Set;function u(m,b){let r=n.querySelector(m);if(b!=null&&!r)throw new I0(o,m,b);if(r&&S5(r)&&r.matches(":not(:defined)"))f.add(r.localName);return r}function p(m,b){let r=n.querySelectorAll(m);if(b!=null&&!r.length)throw new I0(o,m,b);if(r.length)r.forEach((d)=>{if(S5(d)&&d.matches(":not(:defined)"))f.add(d.localName)});return Array.from(r)}return[{useElement:u,useElements:p,first:(m,b,r)=>{let d=r!=null?u(m,r):u(m);return()=>{if(d)return R5(b,o,d)}},all:(m,b,r)=>{let d=r!=null?p(m,r):p(m);return()=>{let M=new Map,w=(x)=>{let X=R5(b,o,x);if(X&&!M.has(x))M.set(x,X)},R=(x)=>{let X=M.get(x);if(X)X();M.delete(x)},Y=(x)=>(X)=>{if(Cf(X)){if(X.matches(m))x(X);X.querySelectorAll(m).forEach(x)}},F=fn(n,m,(x)=>{for(let X of x)X.addedNodes.forEach(Y(w)),X.removedNodes.forEach(Y(R))});if(d.length)d.forEach(w);return()=>{F.disconnect(),M.forEach((x)=>x()),M.clear()}}}},()=>Array.from(f)]};function u0(o){return(n)=>{let f=new Set,u=()=>Array.from((n.shadowRoot??n).querySelectorAll(o)),p=v,m,b=0,r=2,d=()=>{p=u(),m=fn(n,o,()=>{if(!f.size){m?.disconnect(),m=void 0;return}if(b++,b>r)throw m?.disconnect(),m=void 0,b=0,new lo(n,o);try{let M=u();if(!Vf(p,M))p=M,e0(f)}finally{b--}})};return{[Symbol.toStringTag]:z5,get(){if(N5(f),!f.size)p=u();else if(!m)d();return p}}}}var If=50,Gf=new Set(["constructor","prototype"]),hf=new Set(["id","class","className","title","role","style","dataset","lang","dir","hidden","children","innerHTML","outerHTML","textContent","innerText"]),$o=(o)=>{if(Gf.has(o))return`Property name "${o}" is a reserved word`;if(hf.has(o))return`Property name "${o}" conflicts with inherited HTMLElement property`;return null};function z(o,n={},f){if(!o.includes("-")||!o.match(/^[a-z][a-z0-9-]*$/))throw new Ho(o);for(let p of Object.keys(n)){let m=$o(p);if(m)throw new K5(o,p,m)}class u extends HTMLElement{debug;#o={};#n;static observedAttributes=Object.entries(n)?.filter(([,p])=>e5(p)).map(([p])=>p)??[];connectedCallback(){if(T0){if(this.debug=this.hasAttribute("debug"),this.debug)f0(this,"Connected")}for(let[M,w]of Object.entries(n)){if(w==null||M in this)continue;let R=l(w)?w(this,null):w;if(R!=null)this.setSignal(M,c5(R))}let[p,m]=af(this),b=f(this,p),r=m(),d=()=>{let M=R5(b,this);if(M)this.#n=M};if(r.length)Promise.race([Promise.all(r.map((M)=>customElements.whenDefined(M))),new Promise((M,w)=>{setTimeout(()=>{w(new nn(this,r.filter((R)=>!customElements.get(R))))},If)})]).then(d).catch((M)=>{if(T0)f0(M,`Error during setup of <${o}>. Trying to run effects anyway.`,eo);d()});else d()}disconnectedCallback(){if(l(this.#n))this.#n();if(T0&&this.debug)f0(this,"Disconnected")}attributeChangedCallback(p,m,b){if(b===m||Ko(this.#o[p]))return;let r=n[p];if(!e5(r))return;let d=r(this,b,m);if(T0&&this.debug)f0(b,`Attribute "${String(p)}" of ${J(this)} changed from ${g5(m)} to ${g5(b)}, parsed as <${_5(d)}> ${g5(d)}`);if(p in this)this[p]=d;else this.setSignal(p,c5(d))}getSignal(p){let m=this.#o[p];if(T0&&this.debug)f0(m,`Get ${_5(m)} "${String(p)}" in ${J(this)}`);return m}setSignal(p,m){let b=$o(String(p));if(b)throw new K5(this.localName,p,b);if(!x5(m))throw new on(this,p);let r=this.#o[p],d=y5(m);if(this.#o[p]=m,Object.defineProperty(this,p,{get:m.get,set:d?m.set:void 0,enumerable:!0,configurable:d}),r&&y5(r))r.set(v);if(T0&&this.debug)f0(m,`Set ${_5(m)} "${String(p)} in ${J(this)}`)}}customElements.define(o,u)}var ko="context-request";var un=(o)=>(n)=>{let f=(u)=>{let{context:p,callback:m}=u;if(o.includes(p)&&l(m))u.stopImmediatePropagation(),m(n.getSignal(String(p)))};return n.addEventListener(ko,f),()=>n.removeEventListener(ko,f)};var d0=(o,n,f)=>(u)=>{let p=new Set,m=a0(u,f),b=new Map,r,d=()=>{for(let[M,w]of Object.entries(n)){let R=(Y)=>{let F=Y.target;if(!F)return;let x=F.closest(o);if(!x||!u.contains(x))return;Y.stopPropagation();try{let X=w({event:Y,host:u,target:x,value:m});if(X==null)return;if(!Object.is(X,m)){if(m=X,p.size>0)e0(p);else if(r)r()}}catch(X){throw Y.stopImmediatePropagation(),X}};b.set(M,R),u.addEventListener(M,R)}r=()=>{if(b.size){for(let[M,w]of b)u.removeEventListener(M,w);b.clear()}r=void 0}};return{[Symbol.toStringTag]:z5,get(){if(N5(p),p.size&&!b.size)d();return m}}},N=(o,n,f=!1)=>(u,p)=>{let m=(b)=>{let r=n({host:u,target:p,event:b});if(!s5(r))return;M0(()=>{for(let[d,M]of Object.entries(r))try{u[d]=M}catch(w){f0(w,`Reactive property "${d}" on ${J(u)} from event ${o} on ${J(p)} could not be set, because it is read-only.`,H0)}})};return p.addEventListener(o,m,f),()=>p.removeEventListener(o,m)},D0=(o,n)=>(f,u)=>c(()=>{let p=oo(n,f,u,`custom event "${o}" detail`);if(p===l0||p===v)return;u.dispatchEvent(new CustomEvent(o,{detail:p,bubbles:!0}))}),Wf=(o,n="")=>{return{a:"attribute ",c:"class ",d:"dataset ",h:"inner HTML",m:"method call ",p:"property ",s:"style property ",t:"text content"}[o]+n},Jf=(o)=>{if(/^(mailto|tel):/i.test(o))return!0;if(o.includes("://"))try{let n=new URL(o,window.location.origin);return["http:","https:","ftp:"].includes(n.protocol)}catch{return!1}return!0},Zf=(o,n,f)=>{if(/^on/i.test(n))throw new Error(`Unsafe attribute: ${n}`);if(f=String(f).trim(),!Jf(f))throw new Error(`Unsafe URL for ${n}: ${f}`);o.setAttribute(n,f)},q0=(o,n)=>(f,u)=>{let{op:p,name:m="",read:b,update:r}=n,d=b(u),M=Wf(p,m),w=(Y)=>()=>{if(T0&&f.debug)f0(u,`${Y} ${M} of ${J(u)} in ${J(f)}`);n.resolve?.(u)},R=(Y)=>(F)=>{f0(F,`Failed to ${Y} ${M} of ${J(u)} in ${J(f)}`,H0),n.reject?.(F)};return c(()=>{let Y=oo(o,f,u,M),F=Y===l0?d:Y===v?n.delete?null:d:Y;if(n.delete&&F===null)try{n.delete(u),w("delete")()}catch(x){R("delete")(x)}else if(F!=null){let x=b(u);if(Object.is(F,x))return;try{r(u,F),w("update")()}catch(X){R("update")(X)}}})},s0=(o,n)=>(f,u)=>{let p=(b)=>()=>{if(T0&&f.debug)f0(u,`${b} element in ${J(u)} in ${J(f)}`);if(l(n?.resolve))n.resolve(u);else{let r=x5(o)?o:Z0(o)?f.getSignal(o):void 0;if(y5(r))r.set(0)}},m=(b)=>(r)=>{f0(r,`Failed to ${b} element in ${J(u)} in ${J(f)}`,H0),n?.reject?.(r)};return c(()=>{let b=oo(o,f,u,"insertion or deletion"),r=b===l0?0:b;if(r>0){if(!n)throw new TypeError("No inserter provided");try{for(let d=0;d<r;d++){let M=n.create(u);if(!M)continue;u.insertAdjacentElement(n.position??"beforeend",M)}p("insert")()}catch(d){m("insert")(d)}}else if(r<0)try{if(n&&(n.position==="afterbegin"||n.position==="beforeend"))for(let d=0;d>r;d--)if(n.position==="afterbegin")u.firstElementChild?.remove();else u.lastElementChild?.remove();else u.remove();p("remove")()}catch(d){m("remove")(d)}})},q=(o)=>q0(o,{op:"t",read:(n)=>n.textContent,update:(n,f)=>{Array.from(n.childNodes).filter((u)=>u.nodeType!==Node.COMMENT_NODE).forEach((u)=>u.remove()),n.append(document.createTextNode(f))}}),t=(o,n=o)=>q0(n,{op:"p",name:o,read:(f)=>(o in f)?f[o]:v,update:(f,u)=>{f[o]=u}}),a=(o)=>q0(o,{op:"p",name:"hidden",read:(n)=>!n.hidden,update:(n,f)=>{n.hidden=!f}}),U=(o,n=o)=>q0(n,{op:"a",name:o,read:(f)=>f.getAttribute(o),update:(f,u)=>{Zf(f,o,u)},delete:(f)=>{f.removeAttribute(o)}}),T5=(o,n=o)=>q0(n,{op:"a",name:o,read:(f)=>f.hasAttribute(o),update:(f,u)=>{f.toggleAttribute(o,u)}}),X0=(o,n=o)=>q0(n,{op:"c",name:o,read:(f)=>f.classList.contains(o),update:(f,u)=>{f.classList.toggle(o,u)}}),j=(o,n=o)=>q0(n,{op:"s",name:o,read:(f)=>f.style.getPropertyValue(o),update:(f,u)=>{f.style.setProperty(o,u)},delete:(f)=>{f.style.removeProperty(o)}}),o5=(o,n={})=>q0(o,{op:"h",read:(f)=>(f.shadowRoot||!n.shadowRootMode?f:null)?.innerHTML??"",update:(f,u)=>{let{shadowRootMode:p,allowScripts:m}=n;if(!u){if(f.shadowRoot)f.shadowRoot.innerHTML="<slot></slot>";return""}if(p&&!f.shadowRoot)f.attachShadow({mode:p});let b=f.shadowRoot||f;if(b.innerHTML=u,!m)return"";return b.querySelectorAll("script").forEach((r)=>{let d=document.createElement("script");d.appendChild(document.createTextNode(r.textContent??"")),b.appendChild(d),r.remove()})," with scripts"}}),I=(o)=>(n,f)=>{if(!s5(o))throw new TypeError("Reactives must be an object of passed signals");if(!S5(f))throw new TypeError(`Target ${J(f)} is not a custom element`);if(!Uf(f,"setSignal"))throw new TypeError(`Target ${J(f)} is not a Le Truc component`);for(let[u,p]of Object.entries(o))f.setSignal(u,Z0(p)?n.getSignal(p):c5(p))},$=()=>(o)=>o.textContent?.trim();var Y0=(o)=>(n)=>n[o];var jf=(o)=>(n)=>n.getAttribute(o);var D5=(o)=>C({".label":$(),[o]:jf("aria-label")},"");var l5=(o,n)=>{if(n==null)return;let f=o(n);return Number.isFinite(f)?f:void 0},j0=()=>(o,n)=>n!=null&&n!=="false",Z=(o=0)=>(n,f)=>{if(f==null)return a0(n,o);let u=f.trim();if(u.toLowerCase().startsWith("0x"))return l5((m)=>parseInt(m,16),u)??a0(n,o);let p=l5(parseFloat,f);return p!=null?Math.trunc(p):a0(n,o)},pn=(o=0)=>(n,f)=>l5(parseFloat,f)??a0(n,o),o0=(o="")=>(n,f)=>f??a0(n,o),mn=(o)=>(n,f)=>{if(f==null)return o[0];let u=f.toLowerCase();return o.find((p)=>p.toLowerCase()===u)?f:o[0]};var bn="media-motion",rn="media-theme",Mn="media-viewport",dn="media-orientation",j1=z("context-media",{[bn]:()=>{let o=matchMedia("(prefers-reduced-motion: reduce)"),n=V(o.matches);return o.addEventListener("change",(f)=>{n.set(f.matches)}),n},[rn]:()=>{let o=matchMedia("(prefers-color-scheme: dark)"),n=V(o.matches?"dark":"light");return o.addEventListener("change",(f)=>{n.set(f.matches?"dark":"light")}),n},[Mn]:(o)=>{let n=(d,M)=>{let R=o.getAttribute(d)?.trim();if(!R)return M;let Y=R.match(/em$/)?"em":"px",F=parseFloat(R);return Number.isFinite(F)?F+Y:M},f=matchMedia(`(min-width: ${n("sm","32em")})`),u=matchMedia(`(min-width: ${n("md","48em")})`),p=matchMedia(`(min-width: ${n("lg","72em")})`),m=matchMedia(`(min-width: ${n("xl","104em")})`),b=()=>{if(m.matches)return"xl";if(p.matches)return"lg";if(u.matches)return"md";if(f.matches)return"sm";return"xs"},r=V(b());return f.addEventListener("change",()=>{r.set(b())}),u.addEventListener("change",()=>{r.set(b())}),p.addEventListener("change",()=>{r.set(b())}),m.addEventListener("change",()=>{r.set(b())}),r},[dn]:()=>{let o=matchMedia("(orientation: landscape)"),n=V(o.matches?"landscape":"portrait");return o.addEventListener("change",(f)=>{n.set(f.matches?"landscape":"portrait")}),n}},()=>[un([bn,rn,Mn,dn])]);var Af=(o,n)=>{if(typeof o!=="number")return;if(n===3)return{mode:"rgb",r:(o>>8&15|o>>4&240)/255,g:(o>>4&15|o&240)/255,b:(o&15|o<<4&240)/255};if(n===4)return{mode:"rgb",r:(o>>12&15|o>>8&240)/255,g:(o>>8&15|o>>4&240)/255,b:(o>>4&15|o&240)/255,alpha:(o&15|o<<4&240)/255};if(n===6)return{mode:"rgb",r:(o>>16&255)/255,g:(o>>8&255)/255,b:(o&255)/255};if(n===8)return{mode:"rgb",r:(o>>24&255)/255,g:(o>>16&255)/255,b:(o>>8&255)/255,alpha:(o&255)/255}},Y5=Af;var $f={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},n5=$f;var kf=(o)=>{return Y5(n5[o.toLowerCase()],6)},wn=kf;var _f=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,vf=(o)=>{let n;return(n=o.match(_f))?Y5(parseInt(n[1],16),n[1].length):void 0},gn=vf;var t5="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)";var G0="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%";var f5="(?:([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%|([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?))";var yn="(?:([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)(deg|grad|rad|turn)|([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?))";var O0="\\s*,\\s*";var K1=new RegExp("^(?:([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%|([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)|none)$");var Bf=new RegExp(`^rgba?\\(\\s*${t5}${O0}${t5}${O0}${t5}\\s*(?:,\\s*${f5}\\s*)?\\)\$`),cf=new RegExp(`^rgba?\\(\\s*${G0}${O0}${G0}${O0}${G0}\\s*(?:,\\s*${f5}\\s*)?\\)\$`),Sf=(o)=>{let n={mode:"rgb"},f;if(f=o.match(Bf)){if(f[1]!==void 0)n.r=f[1]/255;if(f[2]!==void 0)n.g=f[2]/255;if(f[3]!==void 0)n.b=f[3]/255}else if(f=o.match(cf)){if(f[1]!==void 0)n.r=f[1]/100;if(f[2]!==void 0)n.g=f[2]/100;if(f[3]!==void 0)n.b=f[3]/100}else return;if(f[4]!==void 0)n.alpha=Math.max(0,Math.min(1,f[4]/100));else if(f[5]!==void 0)n.alpha=Math.max(0,Math.min(1,+f[5]));return n},Rn=Sf;var Kf=(o,n)=>o===void 0?void 0:typeof o!=="object"?Nn(o):o.mode!==void 0?o:n?{...o,mode:n}:void 0,E0=Kf;var ef=(o="rgb")=>(n)=>(n=E0(n,o))!==void 0?n.mode===o?n:m0[n.mode][o]?m0[n.mode][o](n):o==="rgb"?m0[n.mode].rgb(n):m0.rgb[o](m0[n.mode].rgb(n)):void 0,k=ef;var m0={},xn={},u5=[],no={},lf=(o)=>o,_=(o)=>{if(m0[o.mode]={...m0[o.mode],...o.toMode},Object.keys(o.fromMode||{}).forEach((n)=>{if(!m0[n])m0[n]={};m0[n][o.mode]=o.fromMode[n]}),!o.ranges)o.ranges={};if(!o.difference)o.difference={};return o.channels.forEach((n)=>{if(o.ranges[n]===void 0)o.ranges[n]=[0,1];if(!o.interpolate[n])throw new Error(`Missing interpolator for: ${n}`);if(typeof o.interpolate[n]==="function")o.interpolate[n]={use:o.interpolate[n]};if(!o.interpolate[n].fixup)o.interpolate[n].fixup=lf}),xn[o.mode]=o,(o.parse||[]).forEach((n)=>{Hf(n,o.mode)}),k(o.mode)},w0=(o)=>xn[o],Hf=(o,n)=>{if(typeof o==="string"){if(!n)throw new Error("'mode' required when 'parser' is a string");no[o]=n}else if(typeof o==="function"){if(u5.indexOf(o)<0)u5.push(o)}};var fo=/[^\x00-\x7F]|[a-zA-Z_]/,sf=/[^\x00-\x7F]|[-\w]/,y={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},D=0;function F5(o){let n=o[D],f=o[D+1];if(n==="-"||n==="+")return/\d/.test(f)||f==="."&&/\d/.test(o[D+2]);if(n===".")return/\d/.test(f);return/\d/.test(n)}function uo(o){if(D>=o.length)return!1;let n=o[D];if(fo.test(n))return!0;if(n==="-"){if(o.length-D<2)return!1;let f=o[D+1];if(f==="-"||fo.test(f))return!0;return!1}return!1}var ou={deg:1,rad:180/Math.PI,grad:0.9,turn:360};function p5(o){let n="";if(o[D]==="-"||o[D]==="+")n+=o[D++];if(n+=L5(o),o[D]==="."&&/\d/.test(o[D+1]))n+=o[D++]+L5(o);if(o[D]==="e"||o[D]==="E"){if((o[D+1]==="-"||o[D+1]==="+")&&/\d/.test(o[D+2]))n+=o[D++]+o[D++]+L5(o);else if(/\d/.test(o[D+1]))n+=o[D++]+L5(o)}if(uo(o)){let f=q5(o);if(f==="deg"||f==="rad"||f==="turn"||f==="grad")return{type:y.Hue,value:n*ou[f]};return}if(o[D]==="%")return D++,{type:y.Percentage,value:+n};return{type:y.Number,value:+n}}function L5(o){let n="";while(/\d/.test(o[D]))n+=o[D++];return n}function q5(o){let n="";while(D<o.length&&sf.test(o[D]))n+=o[D++];return n}function nu(o){let n=q5(o);if(o[D]==="(")return D++,{type:y.Function,value:n};if(n==="none")return{type:y.None,value:void 0};return{type:y.Ident,value:n}}function fu(o=""){let n=o.trim(),f=[],u;D=0;while(D<n.length){if(u=n[D++],u==="\n"||u==="\t"||u===" "){while(D<n.length&&(n[D]==="\n"||n[D]==="\t"||n[D]===" "))D++;continue}if(u===",")return;if(u===")"){f.push({type:y.ParenClose});continue}if(u==="+"){if(D--,F5(n)){f.push(p5(n));continue}return}if(u==="-"){if(D--,F5(n)){f.push(p5(n));continue}if(uo(n)){f.push({type:y.Ident,value:q5(n)});continue}return}if(u==="."){if(D--,F5(n)){f.push(p5(n));continue}return}if(u==="/"){while(D<n.length&&(n[D]==="\n"||n[D]==="\t"||n[D]===" "))D++;let p;if(F5(n)){if(p=p5(n),p.type!==y.Hue){f.push({type:y.Alpha,value:p});continue}}if(uo(n)){if(q5(n)==="none"){f.push({type:y.Alpha,value:{type:y.None,value:void 0}});continue}}return}if(/\d/.test(u)){D--,f.push(p5(n));continue}if(fo.test(u)){D--,f.push(nu(n));continue}return}return f}function uu(o){o._i=0;let n=o[o._i++];if(!n||n.type!==y.Function||n.value!=="color")return;if(n=o[o._i++],n.type!==y.Ident)return;let f=no[n.value];if(!f)return;let u={mode:f},p=zn(o,!1);if(!p)return;let m=w0(f).channels;for(let b=0,r,d;b<m.length;b++)if(r=p[b],d=m[b],r.type!==y.None){if(u[d]=r.type===y.Number?r.value:r.value/100,d==="alpha")u[d]=Math.max(0,Math.min(1,u[d]))}return u}function zn(o,n){let f=[],u;while(o._i<o.length){if(u=o[o._i++],u.type===y.None||u.type===y.Number||u.type===y.Alpha||u.type===y.Percentage||n&&u.type===y.Hue){f.push(u);continue}if(u.type===y.ParenClose){if(o._i<o.length)return;continue}return}if(f.length<3||f.length>4)return;if(f.length===4){if(f[3].type!==y.Alpha)return;f[3]=f[3].value}if(f.length===3)f.push({type:y.None,value:void 0});return f.every((p)=>p.type!==y.Alpha)?f:void 0}function pu(o,n){o._i=0;let f=o[o._i++];if(!f||f.type!==y.Function)return;let u=zn(o,n);if(!u)return;return u.unshift(f.value),u}var mu=(o)=>{if(typeof o!=="string")return;let n=fu(o),f=n?pu(n,!0):void 0,u=void 0,p=0,m=u5.length;while(p<m)if((u=u5[p++](o,f))!==void 0)return u;return n?uu(n):void 0},Nn=mu;function bu(o,n){if(!n||n[0]!=="rgb"&&n[0]!=="rgba")return;let f={mode:"rgb"},[,u,p,m,b]=n;if(u.type===y.Hue||p.type===y.Hue||m.type===y.Hue)return;if(u.type!==y.None)f.r=u.type===y.Number?u.value/255:u.value/100;if(p.type!==y.None)f.g=p.type===y.Number?p.value/255:p.value/100;if(m.type!==y.None)f.b=m.type===y.Number?m.value/255:m.value/100;if(b.type!==y.None)f.alpha=Math.min(1,Math.max(0,b.type===y.Number?b.value:b.value/100));return f}var Tn=bu;var ru=(o)=>o==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Dn=ru;var Yn=(o,n,f)=>o+f*(n-o);var Mu=(o)=>{let n=[];for(let f=0;f<o.length-1;f++){let u=o[f],p=o[f+1];if(u===void 0&&p===void 0)n.push(void 0);else if(u!==void 0&&p!==void 0)n.push([u,p]);else n.push(u!==void 0?[u,u]:[p,p])}return n},tn=(o)=>(n)=>{let f=Mu(n);return(u)=>{let p=u*f.length,m=u>=1?f.length-1:Math.max(Math.floor(p),0),b=f[m];return b===void 0?void 0:o(b[0],b[1],p-m)}};var E=tn(Yn);var S=(o)=>{let n=!1,f=o.map((u)=>{if(u!==void 0)return n=!0,u;return 1});return n?f:o};var du={mode:"rgb",channels:["r","g","b","alpha"],parse:[Tn,gn,Rn,wn,Dn,"srgb"],serialize:"srgb",interpolate:{r:E,g:E,b:E,alpha:{use:E,fixup:S}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},p0=du;var po=(o=0)=>Math.pow(Math.abs(o),2.19921875)*Math.sign(o),wu=(o)=>{let n=po(o.r),f=po(o.g),u=po(o.b),p={mode:"xyz65",x:0.5766690429101305*n+0.1855582379065463*f+0.1882286462349947*u,y:0.297344975250536*n+0.6273635662554661*f+0.0752914584939979*u,z:0.0270313613864123*n+0.0706888525358272*f+0.9913375368376386*u};if(o.alpha!==void 0)p.alpha=o.alpha;return p},mo=wu;var bo=(o)=>Math.pow(Math.abs(o),0.4547069271758437)*Math.sign(o),iu=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p={mode:"a98",r:bo(o*2.0415879038107465-n*0.5650069742788597-0.3447313507783297*f),g:bo(o*-0.9692436362808798+n*1.8759675015077206+0.0415550574071756*f),b:bo(o*0.0134442806320312-n*0.1183623922310184+1.0151749943912058*f)};if(u!==void 0)p.alpha=u;return p},ro=iu;var Mo=(o=0)=>{let n=Math.abs(o);if(n<=0.04045)return o/12.92;return(Math.sign(o)||1)*Math.pow((n+0.055)/1.055,2.4)},gu=({r:o,g:n,b:f,alpha:u})=>{let p={mode:"lrgb",r:Mo(o),g:Mo(n),b:Mo(f)};if(u!==void 0)p.alpha=u;return p},i0=gu;var yu=(o)=>{let{r:n,g:f,b:u,alpha:p}=i0(o),m={mode:"xyz65",x:0.4123907992659593*n+0.357584339383878*f+0.1804807884018343*u,y:0.2126390058715102*n+0.715168678767756*f+0.0721923153607337*u,z:0.0193308187155918*n+0.119194779794626*f+0.9505321522496607*u};if(p!==void 0)m.alpha=p;return m},g0=yu;var wo=(o=0)=>{let n=Math.abs(o);if(n>0.0031308)return(Math.sign(o)||1)*(1.055*Math.pow(n,0.4166666666666667)-0.055);return o*12.92},Ru=({r:o,g:n,b:f,alpha:u},p="rgb")=>{let m={mode:p,r:wo(o),g:wo(n),b:wo(f)};if(u!==void 0)m.alpha=u;return m},y0=Ru;var Nu=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=y0({r:o*3.2409699419045226-n*1.537383177570094-0.4986107602930034*f,g:o*-0.9692436362808796+n*1.8759675015077204+0.0415550574071756*f,b:o*0.0556300796969936-n*0.2039769588889765+1.0569715142428784*f});if(u!==void 0)p.alpha=u;return p},R0=Nu;var xu={...p0,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:(o)=>ro(g0(o)),xyz65:ro},toMode:{rgb:(o)=>R0(mo(o)),xyz65:mo}},Fn=xu;var zu=(o)=>(o=o%360)<0?o+360:o,K=zu;function io({h:o,s:n,l:f,alpha:u}){if(o=K(o!==void 0?o:0),n===void 0)n=0;if(f===void 0)f=0;let p=f+n*(f<0.5?f:1-f),m=p-(p-f)*2*Math.abs(o/60%2-1),b;switch(Math.floor(o/60)){case 0:b={r:p,g:m,b:2*f-p};break;case 1:b={r:m,g:p,b:2*f-p};break;case 2:b={r:2*f-p,g:p,b:m};break;case 3:b={r:2*f-p,g:m,b:p};break;case 4:b={r:m,g:2*f-p,b:p};break;case 5:b={r:p,g:2*f-p,b:m};break;default:b={r:2*f-p,g:2*f-p,b:2*f-p}}if(b.mode="rgb",u!==void 0)b.alpha=u;return b}function go({r:o,g:n,b:f,alpha:u}){if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=Math.max(o,n,f),m=Math.min(o,n,f),b={mode:"hsl",s:p===m?0:(p-m)/(1-Math.abs(p+m-1)),l:0.5*(p+m)};if(p-m!==0)b.h=(p===o?(n-f)/(p-m)+(n<f)*6:p===n?(f-o)/(p-m)+2:(o-n)/(p-m)+4)*60;if(u!==void 0)b.alpha=u;return b}var Tu=(o,n)=>{switch(n){case"deg":return+o;case"rad":return o/Math.PI*180;case"grad":return o/10*9;case"turn":return o*360}},Ln=Tu;var Du=new RegExp(`^hsla?\\(\\s*${yn}${O0}${G0}${O0}${G0}\\s*(?:,\\s*${f5}\\s*)?\\)\$`),Yu=(o)=>{let n=o.match(Du);if(!n)return;let f={mode:"hsl"};if(n[3]!==void 0)f.h=+n[3];else if(n[1]!==void 0&&n[2]!==void 0)f.h=Ln(n[1],n[2]);if(n[4]!==void 0)f.s=Math.min(Math.max(0,n[4]/100),1);if(n[5]!==void 0)f.l=Math.min(Math.max(0,n[5]/100),1);if(n[6]!==void 0)f.alpha=Math.max(0,Math.min(1,n[6]/100));else if(n[7]!==void 0)f.alpha=Math.max(0,Math.min(1,+n[7]));return f},qn=Yu;function tu(o,n){if(!n||n[0]!=="hsl"&&n[0]!=="hsla")return;let f={mode:"hsl"},[,u,p,m,b]=n;if(u.type!==y.None){if(u.type===y.Percentage)return;f.h=u.value}if(p.type!==y.None){if(p.type===y.Hue)return;f.s=p.value/100}if(m.type!==y.None){if(m.type===y.Hue)return;f.l=m.value/100}if(b.type!==y.None)f.alpha=Math.min(1,Math.max(0,b.type===y.Number?b.value:b.value/100));return f}var Xn=tu;var Fu=(o,n)=>{return o.map((f,u,p)=>{if(f===void 0)return f;let m=K(f);if(u===0||o[u-1]===void 0)return m;return n(m-K(p[u-1]))}).reduce((f,u)=>{if(!f.length||u===void 0||f[f.length-1]===void 0)return f.push(u),f;return f.push(u+f[f.length-1]),f},[])},P0=(o)=>Fu(o,(n)=>Math.abs(n)<=180?n:n-360*Math.sign(n));var m5=(o,n)=>{if(o.h===void 0||n.h===void 0||!o.s||!n.s)return 0;let f=K(o.h),u=K(n.h),p=Math.sin((u-f+360)/2*Math.PI/180);return 2*Math.sqrt(o.s*n.s)*p},yo=(o,n)=>{if(o.h===void 0||n.h===void 0)return 0;let f=K(o.h),u=K(n.h);if(Math.abs(u-f)>180)return f-(u-360*Math.sign(u-f));return u-f},Ro=(o,n)=>{if(o.h===void 0||n.h===void 0||!o.c||!n.c)return 0;let f=K(o.h),u=K(n.h),p=Math.sin((u-f+360)/2*Math.PI/180);return 2*Math.sqrt(o.c*n.c)*p},No=(o="rgb",n=[1,1,1,0])=>{let f=w0(o),u=f.channels,p=f.difference,m=k(o);return(b,r)=>{let d=m(b),M=m(r);return Math.sqrt(u.reduce((w,R,Y)=>{let F=p[R]?p[R](d,M):d[R]-M[R];return w+(n[Y]||0)*Math.pow(isNaN(F)?0:F,2)},0))}};var xo=(o=1,n=1,f=1)=>{let u=k("lab65");return(p,m)=>{let b=u(p),r=u(m),d=b.l,M=b.a,w=b.b,R=Math.sqrt(M*M+w*w),Y=r.l,F=r.a,x=r.b,X=Math.sqrt(F*F+x*x),W0=(R+X)/2,L=0.5*(1-Math.sqrt(Math.pow(W0,7)/(Math.pow(W0,7)+Math.pow(25,7)))),O=M*(1+L),Q=F*(1+L),n0=Math.sqrt(O*O+w*w),W=Math.sqrt(Q*Q+x*x),H=Math.abs(O)+Math.abs(w)===0?0:Math.atan2(w,O);H+=(H<0)*2*Math.PI;let i=Math.abs(Q)+Math.abs(x)===0?0:Math.atan2(x,Q);i+=(i<0)*2*Math.PI;let g=Y-d,T=W-n0,P=n0*W===0?0:i-H;P-=(P>Math.PI)*2*Math.PI,P+=(P<-Math.PI)*2*Math.PI;let A=2*Math.sqrt(n0*W)*Math.sin(P/2),s=(d+Y)/2,G=(n0+W)/2,h;if(n0*W===0)h=H+i;else h=(H+i)/2,h-=(Math.abs(H-i)>Math.PI)*Math.PI,h+=(h<0)*2*Math.PI;let r0=Math.pow(s-50,2),z0=1-0.17*Math.cos(h-Math.PI/6)+0.24*Math.cos(2*h)+0.32*Math.cos(3*h+Math.PI/30)-0.2*Math.cos(4*h-63*Math.PI/180),K0=1+0.015*r0/Math.sqrt(20+r0),J0=1+0.045*G,jo=1+0.015*G*z0,Yf=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*h-275)/25,2)),tf=2*Math.sqrt(Math.pow(G,7)/(Math.pow(G,7)+Math.pow(25,7))),Ff=-1*Math.sin(2*Yf)*tf;return Math.sqrt(Math.pow(g/(o*K0),2)+Math.pow(T/(n*J0),2)+Math.pow(A/(f*jo),2)+Ff*T/(n*J0)*A/(f*jo))}};var U0=(o)=>{let n=o.reduce((u,p)=>{if(p!==void 0){let m=p*Math.PI/180;u.sin+=Math.sin(m),u.cos+=Math.cos(m)}return u},{sin:0,cos:0}),f=Math.atan2(n.sin,n.cos)*180/Math.PI;return f<0?360+f:f};var Lu={mode:"hsl",toMode:{rgb:io},fromMode:{rgb:go},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Xn,qn],serialize:(o)=>`hsl(${o.h!==void 0?o.h:"none"} ${o.s!==void 0?o.s*100+"%":"none"} ${o.l!==void 0?o.l*100+"%":"none"}${o.alpha<1?` / ${o.alpha}`:""})`,interpolate:{h:{use:E,fixup:P0},s:E,l:E,alpha:{use:E,fixup:S}},difference:{h:m5},average:{h:U0}},On=Lu;function b5({h:o,s:n,v:f,alpha:u}){if(o=K(o!==void 0?o:0),n===void 0)n=0;if(f===void 0)f=0;let p=Math.abs(o/60%2-1),m;switch(Math.floor(o/60)){case 0:m={r:f,g:f*(1-n*p),b:f*(1-n)};break;case 1:m={r:f*(1-n*p),g:f,b:f*(1-n)};break;case 2:m={r:f*(1-n),g:f,b:f*(1-n*p)};break;case 3:m={r:f*(1-n),g:f*(1-n*p),b:f};break;case 4:m={r:f*(1-n*p),g:f*(1-n),b:f};break;case 5:m={r:f,g:f*(1-n),b:f*(1-n*p)};break;default:m={r:f*(1-n),g:f*(1-n),b:f*(1-n)}}if(m.mode="rgb",u!==void 0)m.alpha=u;return m}function r5({r:o,g:n,b:f,alpha:u}){if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=Math.max(o,n,f),m=Math.min(o,n,f),b={mode:"hsv",s:p===0?0:1-m/p,v:p};if(p-m!==0)b.h=(p===o?(n-f)/(p-m)+(n<f)*6:p===n?(f-o)/(p-m)+2:(o-n)/(p-m)+4)*60;if(u!==void 0)b.alpha=u;return b}var qu={mode:"hsv",toMode:{rgb:b5},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:r5},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:E,fixup:P0},s:E,v:E,alpha:{use:E,fixup:S}},difference:{h:m5},average:{h:U0}},En=qu;function zo({h:o,w:n,b:f,alpha:u}){if(n===void 0)n=0;if(f===void 0)f=0;if(n+f>1){let p=n+f;n/=p,f/=p}return b5({h:o,s:f===1?1:1-n/(1-f),v:1-f,alpha:u})}function To(o){let n=r5(o);if(n===void 0)return;let f=n.s!==void 0?n.s:0,u=n.v!==void 0?n.v:0,p={mode:"hwb",w:(1-f)*u,b:1-u};if(n.h!==void 0)p.h=n.h;if(n.alpha!==void 0)p.alpha=n.alpha;return p}function Xu(o,n){if(!n||n[0]!=="hwb")return;let f={mode:"hwb"},[,u,p,m,b]=n;if(u.type!==y.None){if(u.type===y.Percentage)return;f.h=u.value}if(p.type!==y.None){if(p.type===y.Hue)return;f.w=p.value/100}if(m.type!==y.None){if(m.type===y.Hue)return;f.b=m.value/100}if(b.type!==y.None)f.alpha=Math.min(1,Math.max(0,b.type===y.Number?b.value:b.value/100));return f}var Pn=Xu;var Ou={mode:"hwb",toMode:{rgb:zo},fromMode:{rgb:To},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Pn],serialize:(o)=>`hwb(${o.h!==void 0?o.h:"none"} ${o.w!==void 0?o.w*100+"%":"none"} ${o.b!==void 0?o.b*100+"%":"none"}${o.alpha<1?` / ${o.alpha}`:""})`,interpolate:{h:{use:E,fixup:P0},w:E,b:E,alpha:{use:E,fixup:S}},difference:{h:yo},average:{h:U0}},Un=Ou;var X5=Math.pow(29,3)/Math.pow(3,3),O5=Math.pow(6,3)/Math.pow(29,3);var C0={X:0.9642956764295677,Y:1,Z:0.8251046025104602},Q0={X:0.9504559270516716,Y:1,Z:1.0890577507598784},Zp=Math.pow(29,3)/Math.pow(3,3),jp=Math.pow(6,3)/Math.pow(29,3);var Do=(o)=>Math.pow(o,3)>O5?Math.pow(o,3):(116*o-16)/X5,Eu=({l:o,a:n,b:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=(o+16)/116,m=n/500+p,b=p-f/200,r={mode:"xyz50",x:Do(m)*C0.X,y:Do(p)*C0.Y,z:Do(b)*C0.Z};if(u!==void 0)r.alpha=u;return r},A0=Eu;var Pu=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=y0({r:o*3.1341359569958707-n*1.6173863321612538-0.4906619460083532*f,g:o*-0.978795502912089+n*1.916254567259524+0.03344273116131949*f,b:o*0.07195537988411677-n*0.2289768264158322+1.405386058324125*f});if(u!==void 0)p.alpha=u;return p},$0=Pu;var Uu=(o)=>$0(A0(o)),E5=Uu;var Cu=(o)=>{let{r:n,g:f,b:u,alpha:p}=i0(o),m={mode:"xyz50",x:0.436065742824811*n+0.3851514688337912*f+0.14307845442264197*u,y:0.22249319175623702*n+0.7168870538238823*f+0.06061979053616537*u,z:0.013923904500943465*n+0.09708128566574634*f+0.7140993584005155*u};if(p!==void 0)m.alpha=p;return m},k0=Cu;var Yo=(o)=>o>O5?Math.cbrt(o):(X5*o+16)/116,Qu=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=Yo(o/C0.X),m=Yo(n/C0.Y),b=Yo(f/C0.Z),r={mode:"lab",l:116*m-16,a:500*(p-m),b:200*(m-b)};if(u!==void 0)r.alpha=u;return r},_0=Qu;var Vu=(o)=>{let n=_0(k0(o));if(o.r===o.b&&o.b===o.g)n.a=n.b=0;return n},P5=Vu;function au(o,n){if(!n||n[0]!=="lab")return;let f={mode:"lab"},[,u,p,m,b]=n;if(u.type===y.Hue||p.type===y.Hue||m.type===y.Hue)return;if(u.type!==y.None)f.l=Math.min(Math.max(0,u.value),100);if(p.type!==y.None)f.a=p.type===y.Number?p.value:p.value*125/100;if(m.type!==y.None)f.b=m.type===y.Number?m.value:m.value*125/100;if(b.type!==y.None)f.alpha=Math.min(1,Math.max(0,b.type===y.Number?b.value:b.value/100));return f}var Cn=au;var Iu={mode:"lab",toMode:{xyz50:A0,rgb:E5},fromMode:{xyz50:_0,rgb:P5},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Cn],serialize:(o)=>`lab(${o.l!==void 0?o.l:"none"} ${o.a!==void 0?o.a:"none"} ${o.b!==void 0?o.b:"none"}${o.alpha<1?` / ${o.alpha}`:""})`,interpolate:{l:E,a:E,b:E,alpha:{use:E,fixup:S}}},v0=Iu;var U5=Math.pow(29,3)/Math.pow(3,3),C5=Math.pow(6,3)/Math.pow(29,3);var to=(o)=>Math.pow(o,3)>C5?Math.pow(o,3):(116*o-16)/U5,Gu=({l:o,a:n,b:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=(o+16)/116,m=n/500+p,b=p-f/200,r={mode:"xyz65",x:to(m)*Q0.X,y:to(p)*Q0.Y,z:to(b)*Q0.Z};if(u!==void 0)r.alpha=u;return r},Q5=Gu;var hu=(o)=>R0(Q5(o)),V5=hu;var Fo=(o)=>o>C5?Math.cbrt(o):(U5*o+16)/116,Wu=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=Fo(o/Q0.X),m=Fo(n/Q0.Y),b=Fo(f/Q0.Z),r={mode:"lab65",l:116*m-16,a:500*(p-m),b:200*(m-b)};if(u!==void 0)r.alpha=u;return r},a5=Wu;var Ju=(o)=>{let n=a5(g0(o));if(o.r===o.b&&o.b===o.g)n.a=n.b=0;return n},I5=Ju;var Zu={...v0,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:Q5,rgb:V5},fromMode:{xyz65:a5,rgb:I5},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}},Qn=Zu;var ju=({l:o,a:n,b:f,alpha:u},p="lch")=>{if(n===void 0)n=0;if(f===void 0)f=0;let m=Math.sqrt(n*n+f*f),b={mode:p,l:o,c:m};if(m)b.h=K(Math.atan2(f,n)*180/Math.PI);if(u!==void 0)b.alpha=u;return b},t0=ju;var Au=({l:o,c:n,h:f,alpha:u},p="lab")=>{if(f===void 0)f=0;let m={mode:p,l:o,a:n?n*Math.cos(f/180*Math.PI):0,b:n?n*Math.sin(f/180*Math.PI):0};if(u!==void 0)m.alpha=u;return m},F0=Au;function $u(o,n){if(!n||n[0]!=="lch")return;let f={mode:"lch"},[,u,p,m,b]=n;if(u.type!==y.None){if(u.type===y.Hue)return;f.l=Math.min(Math.max(0,u.value),100)}if(p.type!==y.None)f.c=Math.max(0,p.type===y.Number?p.value:p.value*150/100);if(m.type!==y.None){if(m.type===y.Percentage)return;f.h=m.value}if(b.type!==y.None)f.alpha=Math.min(1,Math.max(0,b.type===y.Number?b.value:b.value/100));return f}var Vn=$u;var ku={mode:"lch",toMode:{lab:F0,rgb:(o)=>E5(F0(o))},fromMode:{rgb:(o)=>t0(P5(o)),lab:t0},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[Vn],serialize:(o)=>`lch(${o.l!==void 0?o.l:"none"} ${o.c!==void 0?o.c:"none"} ${o.h!==void 0?o.h:"none"}${o.alpha<1?` / ${o.alpha}`:""})`,interpolate:{h:{use:E,fixup:P0},c:E,l:E,alpha:{use:E,fixup:S}},difference:{h:Ro},average:{h:U0}},B0=ku;var _u={...B0,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:(o)=>F0(o,"lab65"),rgb:(o)=>V5(F0(o,"lab65"))},fromMode:{rgb:(o)=>t0(I5(o),"lch65"),lab65:(o)=>t0(o,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},an=_u;var vu={...p0,mode:"lrgb",toMode:{rgb:y0},fromMode:{rgb:i0},parse:["srgb-linear"],serialize:"srgb-linear"},In=vu;var Bu=({l:o,a:n,b:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=Math.pow(o+0.3963377773761749*n+0.2158037573099136*f,3),m=Math.pow(o-0.1055613458156586*n-0.0638541728258133*f,3),b=Math.pow(o-0.0894841775298119*n-1.2914855480194092*f,3),r={mode:"lrgb",r:4.076741636075957*p-3.3077115392580616*m+0.2309699031821044*b,g:-1.2684379732850317*p+2.6097573492876887*m-0.3413193760026573*b,b:-0.0041960761386756*p-0.7034186179359362*m+1.7076146940746117*b};if(u!==void 0)r.alpha=u;return r},G5=Bu;var cu=({r:o,g:n,b:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=Math.cbrt(0.412221469470763*o+0.5363325372617348*n+0.0514459932675022*f),m=Math.cbrt(0.2119034958178252*o+0.6806995506452344*n+0.1073969535369406*f),b=Math.cbrt(0.0883024591900564*o+0.2817188391361215*n+0.6299787016738222*f),r={mode:"oklab",l:0.210454268309314*p+0.7936177747023054*m-0.0040720430116193*b,a:1.9779985324311684*p-2.42859224204858*m+0.450593709617411*b,b:0.0259040424655478*p+0.7827717124575296*m-0.8086757549230774*b};if(u!==void 0)r.alpha=u;return r},h5=cu;var Su=(o)=>{let n=h5(i0(o));if(o.r===o.b&&o.b===o.g)n.a=n.b=0;return n},W5=Su;var Ku=(o)=>y0(G5(o)),J5=Ku;function eu(o,n){if(!n||n[0]!=="oklab")return;let f={mode:"oklab"},[,u,p,m,b]=n;if(u.type===y.Hue||p.type===y.Hue||m.type===y.Hue)return;if(u.type!==y.None)f.l=Math.min(Math.max(0,u.type===y.Number?u.value:u.value/100),1);if(p.type!==y.None)f.a=p.type===y.Number?p.value:p.value*0.4/100;if(m.type!==y.None)f.b=m.type===y.Number?m.value:m.value*0.4/100;if(b.type!==y.None)f.alpha=Math.min(1,Math.max(0,b.type===y.Number?b.value:b.value/100));return f}var Gn=eu;var lu={...v0,mode:"oklab",toMode:{lrgb:G5,rgb:J5},fromMode:{lrgb:h5,rgb:W5},ranges:{l:[0,1],a:[-0.4,0.4],b:[-0.4,0.4]},parse:[Gn],serialize:(o)=>`oklab(${o.l!==void 0?o.l:"none"} ${o.a!==void 0?o.a:"none"} ${o.b!==void 0?o.b:"none"}${o.alpha<1?` / ${o.alpha}`:""})`},hn=lu;function Hu(o,n){if(!n||n[0]!=="oklch")return;let f={mode:"oklch"},[,u,p,m,b]=n;if(u.type!==y.None){if(u.type===y.Hue)return;f.l=Math.min(Math.max(0,u.type===y.Number?u.value:u.value/100),1)}if(p.type!==y.None)f.c=Math.max(0,p.type===y.Number?p.value:p.value*0.4/100);if(m.type!==y.None){if(m.type===y.Percentage)return;f.h=m.value}if(b.type!==y.None)f.alpha=Math.min(1,Math.max(0,b.type===y.Number?b.value:b.value/100));return f}var Wn=Hu;var su={...B0,mode:"oklch",toMode:{oklab:(o)=>F0(o,"oklab"),rgb:(o)=>J5(F0(o,"oklab"))},fromMode:{rgb:(o)=>t0(W5(o),"oklch"),oklab:(o)=>t0(o,"oklch")},parse:[Wn],serialize:(o)=>`oklch(${o.l!==void 0?o.l:"none"} ${o.c!==void 0?o.c:"none"} ${o.h!==void 0?o.h:"none"}${o.alpha<1?` / ${o.alpha}`:""})`,ranges:{l:[0,1],c:[0,0.4],h:[0,360]}},Jn=su;var o1=(o)=>{let{r:n,g:f,b:u,alpha:p}=i0(o),m={mode:"xyz65",x:0.486570948648216*n+0.265667693169093*f+0.1982172852343625*u,y:0.2289745640697487*n+0.6917385218365062*f+0.079286914093745*u,z:0*n+0.0451133818589026*f+1.043944368900976*u};if(p!==void 0)m.alpha=p;return m},Lo=o1;var n1=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p=y0({r:o*2.4934969119414263-n*0.9313836179191242-0.402710784450717*f,g:o*-0.8294889695615749+n*1.7626640603183465+0.0236246858419436*f,b:o*0.0358458302437845-n*0.0761723892680418+0.9568845240076871*f},"p3");if(u!==void 0)p.alpha=u;return p},qo=n1;var f1={...p0,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:(o)=>qo(g0(o)),xyz65:qo},toMode:{rgb:(o)=>R0(Lo(o)),xyz65:Lo}},Zn=f1;var Xo=(o)=>{let n=Math.abs(o);if(n>=0.001953125)return Math.sign(o)*Math.pow(n,0.5555555555555556);return 16*o},u1=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p={mode:"prophoto",r:Xo(o*1.3457868816471585-n*0.2555720873797946-0.0511018649755453*f),g:Xo(o*-0.5446307051249019+n*1.5082477428451466+0.0205274474364214*f),b:Xo(o*0+n*0+1.2119675456389452*f)};if(u!==void 0)p.alpha=u;return p},Oo=u1;var Eo=(o=0)=>{let n=Math.abs(o);if(n>=0.03125)return Math.sign(o)*Math.pow(n,1.8);return o/16},p1=(o)=>{let n=Eo(o.r),f=Eo(o.g),u=Eo(o.b),p={mode:"xyz50",x:0.7977666449006423*n+0.1351812974005331*f+0.0313477341283922*u,y:0.2880748288194013*n+0.7118352342418731*f+0.0000899369387256*u,z:0*n+0*f+0.8251046025104602*u};if(o.alpha!==void 0)p.alpha=o.alpha;return p},Po=p1;var m1={...p0,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:Oo,rgb:(o)=>Oo(k0(o))},toMode:{xyz50:Po,rgb:(o)=>$0(Po(o))}},jn=m1;var Uo=(o)=>{let n=Math.abs(o);if(n>0.018053968510807)return(Math.sign(o)||1)*(1.09929682680944*Math.pow(n,0.45)-0.09929682680944008);return 4.5*o},b1=({x:o,y:n,z:f,alpha:u})=>{if(o===void 0)o=0;if(n===void 0)n=0;if(f===void 0)f=0;let p={mode:"rec2020",r:Uo(o*1.7166511879712683-n*0.3556707837763925-0.2533662813736599*f),g:Uo(o*-0.6666843518324893+n*1.6164812366349395+0.0157685458139111*f),b:Uo(o*0.0176398574453108-n*0.0427706132578085+0.9421031212354739*f)};if(u!==void 0)p.alpha=u;return p},Co=b1;var Qo=(o=0)=>{let n=Math.abs(o);if(n<0.08124285829863151)return o/4.5;return(Math.sign(o)||1)*Math.pow((n+1.09929682680944-1)/1.09929682680944,2.2222222222222223)},r1=(o)=>{let n=Qo(o.r),f=Qo(o.g),u=Qo(o.b),p={mode:"xyz65",x:0.6369580483012911*n+0.1446169035862083*f+0.1688809751641721*u,y:0.262700212011267*n+0.6779980715188708*f+0.059301716469862*u,z:0*n+0.0280726930490874*f+1.0609850577107909*u};if(o.alpha!==void 0)p.alpha=o.alpha;return p},Vo=r1;var M1={...p0,mode:"rec2020",fromMode:{xyz65:Co,rgb:(o)=>Co(g0(o))},toMode:{xyz65:Vo,rgb:(o)=>R0(Vo(o))},parse:["rec2020"],serialize:"rec2020"},An=M1;var d1={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:$0,lab:_0},fromMode:{rgb:k0,lab:A0},channels:["x","y","z","alpha"],ranges:{x:[0,0.964],y:[0,0.999],z:[0,0.825]},interpolate:{x:E,y:E,z:E,alpha:{use:E,fixup:S}}},$n=d1;var w1=(o)=>{let{x:n,y:f,z:u,alpha:p}=o;if(n===void 0)n=0;if(f===void 0)f=0;if(u===void 0)u=0;let m={mode:"xyz50",x:1.0479298208405488*n+0.0229467933410191*f-0.0501922295431356*u,y:0.0296278156881593*n+0.990434484573249*f-0.0170738250293851*u,z:-0.0092430581525912*n+0.0150551448965779*f+0.7518742899580008*u};if(p!==void 0)m.alpha=p;return m},kn=w1;var i1=(o)=>{let{x:n,y:f,z:u,alpha:p}=o;if(n===void 0)n=0;if(f===void 0)f=0;if(u===void 0)u=0;let m={mode:"xyz65",x:0.9554734527042182*n-0.0230985368742614*f+0.0632593086610217*u,y:-0.0283697069632081*n+1.0099954580058226*f+0.021041398966943*u,z:0.0123140016883199*n-0.0205076964334779*f+1.3303659366080753*u};if(p!==void 0)m.alpha=p;return m},_n=i1;var g1={mode:"xyz65",toMode:{rgb:R0,xyz50:kn},fromMode:{rgb:g0,xyz50:_n},ranges:{x:[0,0.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:E,y:E,z:E,alpha:{use:E,fixup:S}}},vn=g1;var W9=_(Fn),J9=_(On),Z9=_(En),j9=_(Un),A9=_(v0),$9=_(Qn),k9=_(B0),_9=_(an),v9=_(In),B9=_(hn),c9=_(Jn),S9=_(Zn),K9=_(jn),e9=_(An),l9=_(p0),H9=_($n),s9=_(vn);var y1=(o,n)=>Math.round(o*(n=Math.pow(10,n)))/n,R1=(o=4)=>(n)=>typeof n==="number"?y1(n,o):n,Bn=R1;var M5=Bn(2),d5=(o)=>Math.max(0,Math.min(1,o||0)),c0=(o)=>Math.round(d5(o)*255),cn=k("rgb"),N1=k("hsl"),Sn=(o)=>{if(o===void 0)return;let n=c0(o.r),f=c0(o.g),u=c0(o.b);return"#"+(16777216|n<<16|f<<8|u).toString(16).slice(1)};var Kn=(o)=>{if(o===void 0)return;let n=c0(o.r),f=c0(o.g),u=c0(o.b);if(o.alpha===void 0||o.alpha===1)return`rgb(${n}, ${f}, ${u})`;else return`rgba(${n}, ${f}, ${u}, ${M5(d5(o.alpha))})`},en=(o)=>{if(o===void 0)return;let n=M5(o.h||0),f=M5(d5(o.s)*100)+"%",u=M5(d5(o.l)*100)+"%";if(o.alpha===void 0||o.alpha===1)return`hsl(${n}, ${f}, ${u})`;else return`hsla(${n}, ${f}, ${u}, ${M5(d5(o.alpha))})`},e=(o)=>{let n=E0(o);if(!n)return;let f=w0(n.mode);if(!f.serialize||typeof f.serialize==="string"){let u=`color(${f.serialize||`--${n.mode}`} `;if(f.channels.forEach((p,m)=>{if(p!=="alpha")u+=(m?" ":"")+(n[p]!==void 0?n[p]:"none")}),n.alpha!==void 0&&n.alpha<1)u+=` / ${n.alpha}`;return u+")"}if(typeof f.serialize==="function")return f.serialize(n);return},w5=(o)=>Sn(cn(o));var ao=(o)=>Kn(cn(o)),Io=(o)=>en(N1(o));var ln=k("rgb"),Hn=(o)=>{let n={mode:o.mode,r:Math.max(0,Math.min(o.r!==void 0?o.r:0,1)),g:Math.max(0,Math.min(o.g!==void 0?o.g:0,1)),b:Math.max(0,Math.min(o.b!==void 0?o.b:0,1))};if(o.alpha!==void 0)n.alpha=o.alpha;return n},x1=(o)=>Hn(ln(o)),sn=(o)=>{return o!==void 0&&(o.r===void 0||o.r>=0&&o.r<=1)&&(o.g===void 0||o.g>=0&&o.g<=1)&&(o.b===void 0||o.b>=0&&o.b<=1)};function of(o){return sn(ln(o))}function L0(o="rgb"){let{gamut:n}=w0(o);if(!n)return(u)=>!0;let f=k(typeof n==="string"?n:o);return(u)=>sn(f(u))}function nf(o="rgb"){let{gamut:n}=w0(o);if(!n)return(m)=>E0(m);let f=typeof n==="string"?n:o,u=k(f),p=L0(f);return(m)=>{let b=E0(m);if(!b)return;let r=u(b);if(p(r))return b;let d=Hn(r);if(b.mode===d.mode)return d;return k(b.mode)(d)}}function Go(o,n="lch",f="rgb"){o=E0(o);let u=f==="rgb"?of:L0(f),p=f==="rgb"?x1:nf(f);if(o===void 0||u(o))return o;let m=k(o.mode);o=k(n)(o);let b={...o,c:0};if(!u(b))return m(p(b));let r=0,d=o.c!==void 0?o.c:0,M=w0(n).ranges.c,w=(M[1]-M[0])/Math.pow(2,13),R=b.c;while(d-r>w)if(b.c=r+(d-r)*0.5,u(b))R=b.c,r=b.c;else d=b.c;return m(u(b)?b:{...b,c:R})}var z1=(o,n=No(),f=(u)=>u)=>{let u=o.map((p,m)=>({color:f(p),i:m}));return(p,m=1,b=1/0)=>{if(isFinite(m))m=Math.max(1,Math.min(m,u.length-1));return u.forEach((r)=>{r.d=n(p,r.color)}),u.sort((r,d)=>r.d-d.d).slice(0,m).filter((r)=>r.d<b).map((r)=>o[r.i])}},ho=z1;var N0=(o={mode:"oklch",l:0.48,c:0.23,h:263})=>(n,f)=>(f?k("oklch")(f):o)??o;var x0=(o,n)=>{let f=()=>{let b=o.l,r=2*Math.log((1-b)/b);return(Math.exp(r*n)-1)/(Math.exp(r)-1)},u=()=>{return o.c*(8*Math.sin(Math.PI*(4*n+1)/6)**3-1)/7},p=o.l!==0.5?f():n,m=o.c>0?u():0;return{mode:"oklch",l:p,c:m,h:o.h}};var T1=0.71,J3=z("card-colorscale",{name:o0(C({".label strong":$()},"")),color:N0()},(o,{first:n})=>[n(".label strong",q("name")),n(".label small",q(()=>w5(o.color))),()=>c(()=>{let f=new Map,u=o.color.l>T1,p=u?0.1:0.9;f.set("base",e(o.color)),f.set("text",u?"black":"white"),f.set("text-soft",e(x0(o.color,p)));for(let m=4;m>0;m--)f.set(`lighten${m*20}`,e(x0(o.color,(5+m)/10)));for(let m=1;m<5;m++)f.set(`darken${m*20}`,e(x0(o.color,(5-m)/10)));for(let[m,b]of f)o.style.setProperty(`--color-${m}`,b)})]);var A3=z("hello-world",{name:o0(C({span:$()},""))},(o,{first:n})=>{let f=o.name;return[n("input",N("input",({target:u})=>{o.name=u.value||f}),"Needed to input the name."),n("span",q("name"),"Needed to display the name.")]});var _3=z("basic-button",{disabled:j0(),label:o0(D5("button")),badge:o0(C({".badge":$()},""))},(o,{first:n})=>[n("button",t("disabled"),"Add native <button> as descendant."),n(".label",q("label")),n(".badge",q("badge"))]);var c3=z("basic-counter",{count:d0("button",{click:({value:o})=>++o},C({span:$()},Z()))},(o,{first:n})=>[n("span",q("count"))]);var D1="en";function Y1(o,n,f={onWarn:console.warn,onError:console.error}){let u=()=>new Intl.NumberFormat(o);if(!n)return u();let{onWarn:p,onError:m}=f,b={};try{b=JSON.parse(n)}catch(x){return m?.(`Invalid JSON: ${x}`),u()}let r=b.style??"decimal",d=[];if(r==="currency"){if(!b.currency||typeof b.currency!=="string"||b.currency.length!==3)return m?.('style="currency" requires a 3-letter ISO currency (e.g. "CHF").'),u()}else d.push("currency","currencyDisplay","currencySign");if(r==="unit"){if(!b.unit||typeof b.unit!=="string")return m?.('style="unit" requires a "unit" (e.g. "liter", "kilometer-per-hour").'),u()}else d.push("unit","unitDisplay");if(b.notation&&b.notation!=="compact")d.push("compactDisplay");let M={};for(let[x,X]of Object.entries(b))if(!d.includes(x))M[x]=X;else p?.(`Option "${x}" is ignored for style="${r}".`);let{minimumFractionDigits:w,maximumFractionDigits:R}=M;if(w!=null&&R!=null&&w>R)p?.(`minimumFractionDigits (${w}) > maximumFractionDigits (${R}); swapping.`),M.minimumFractionDigits=R,M.maximumFractionDigits=w;let{minimumSignificantDigits:Y,maximumSignificantDigits:F}=M;if(Y!=null&&F!=null&&Y>F)p?.(`minimumSignificantDigits (${Y}) > maximumSignificantDigits (${F}); swapping.`),M.minimumSignificantDigits=F,M.maximumSignificantDigits=Y;try{let x=new Intl.NumberFormat(o,M);if(x.resolvedOptions().locale!==o)p(`Fall back to locale ${x.resolvedOptions().locale} instead of ${o}`);return x}catch(x){return m?.(`Options rejected by Intl.NumberFormat: ${x instanceof Error?x.message:String(x)}`),u()}}var e3=z("basic-number",{value:pn()},(o)=>{let n=Y1(o.closest("[lang]")?.getAttribute("lang")||D1,o.getAttribute("options"));return[q(()=>n.format(o.value))]});var t1="en",s3=z("basic-pluralize",{count:Z()},(o,{first:n})=>{let f=new Intl.PluralRules(o.closest("[lang]")?.getAttribute("lang")||t1,o.hasAttribute("ordinal")?{type:"ordinal"}:void 0),u=f.resolvedOptions().pluralCategories,p=[n(".count",[q(()=>String(o.count))]),n(".none",[a(()=>o.count===0)]),n(".some",[a(()=>o.count>0)])];for(let m of u)p.push(n(`.${m}`,[a(()=>f.select(o.count)===m)]));return p});var fm=z("form-checkbox",{checked:d0("input",{change:({target:o})=>o.checked},C({input:Y0("checked")},j0())),label:o0(D5("input"))},(o,{first:n,useElement:f})=>{return f('input[type="checkbox"]',"Native checkbox needed."),[T5("checked"),n(".label",q("label"))]});var h0=(o)=>{let n=0,f=!1,u=[],p=(...m)=>{if(u=m,f)return;f=!0,n=requestAnimationFrame(()=>{f=!1,o(...u)})};return p.cancel=()=>{if(f)cancelAnimationFrame(n),f=!1},p};var S0=L0("p3"),F1=L0("rgb"),L1=new Intl.NumberFormat("en-US",{maximumFractionDigits:2}).format,q1=new Intl.NumberFormat("en-US",{maximumFractionDigits:4}).format,ff=20,Wo=0.71,b0={l:1,c:0.4,h:360},Jo={l:0.0025,c:0.001,h:1},X1={l:0.05,c:0.02,h:15},uf=(o,n)=>n?X1[o]:Jo[o],wm=z("form-colorgraph",{color:N0(),lightness:(o)=>()=>o.color.l,chroma:(o)=>()=>o.color.c,hue:(o)=>()=>o.color.h??0,stepDown:()=>{},stepUp:()=>{}},(o,{all:n,first:f,useElement:u})=>{let p={l:u('input[name="lightness"]','Add an <input[name="lightness"]> element to control the lightness of the color.'),c:u('input[name="chroma"]','Add an <input[name="chroma"]> element to control the chroma of the color.'),h:u('input[name="hue"]','Add an <input[name="hue"]> element to control the hue of the color.')},m=u(".graph","Add a <.graph> element as a container for the color graph."),b=u(".graph canvas","Add a <canvas> element inside the graph to display the lightness/chroma graph."),r=u(".slider","Add a <.slider> element as a container for track and thumb."),d=u(".slider canvas","Add a <canvas> element inside the slider to display the hue slider track.");for(let[i,g]of Object.entries(p))g.min="0",g.max=i==="l"?"100":i==="c"?"0.4":"360",g.step="any";r.setAttribute("aria-valuemin","0"),r.setAttribute("aria-valuemax","360");let M=V(m.getBoundingClientRect().width),w=B(()=>M.get()-2*ff),R={l:V(""),c:V(""),h:V("")},Y=(i)=>{return i==="l"?o.lightness:i==="c"?o.chroma:o.hue},F=(i)=>{o.color=i;for(let g of["l","c","h"])R[g].set("");D0("color-change","color")},x=(i,g)=>{let T=Math.round(g/Jo[i])*Jo[i];if(T<0||T>b0[i])return;let P={...o.color,[i]:T};if(S0(P))F(P);else p[i].setCustomValidity("Color out of gamut"),R[i].set(p[i].validationMessage)};o.stepDown=(i,g=!1)=>{x(i,Y(i)-uf(i,g))},o.stepUp=(i,g=!1)=>{x(i,Y(i)+uf(i,g))};let X=(i,g)=>{let T=i==="l"?g*100:g;return i==="c"?q1(T):L1(T)},W0=h0((i,g,T,P,A)=>{let s={...o.color,c:Math.min(Math.max((i-P)/A,0),1)*b0.c,l:1-Math.min(Math.max((g-T)/A,0),1)};if(S0(s))F(s)}),L=(i,g,T,P=1)=>e({mode:"oklch",l:1-g,c:i*b0.c,h:T,alpha:P}),O=(i,g)=>{let T=M.get(),P=Math.round(g.c*T/b0.c),A=Math.round((1-g.l)*T);i.style.setProperty("background-color",e(g)),i.style.setProperty("border-color",g.l>Wo?"black":"white"),i.style.setProperty("left",`${P}px`),i.style.setProperty("top",`${A}px`)},Q=h0((i,g,T)=>{let P={...o.color,h:Math.min(Math.max((i-g)/T,0),1)*b0.h};if(S0(P))F(P)}),n0=(i)=>{let g={...o.color,h:i*b0.h};if(F1(g))return g;if(S0(g))g.alpha=0.5;else g.alpha=0;return g},W=(i)=>{if(i.closest(".lightness"))return"l";if(i.closest(".chroma"))return"c";if(i.closest(".hue"))return"h";return null},H=[j("--color-base",()=>e(o.color)),()=>{let i=h0((T)=>{M.set(T)}),g=new ResizeObserver(()=>{i(m.clientWidth)});return g.observe(m),()=>{g.disconnect(),i.cancel()}},n("input",[t("ariaInvalid",(i)=>{let g=W(i);return g?String(!!R[g].get()):"false"}),U("aria-errormessage",(i)=>{let g=W(i);return g&&R[g].get()?`${i.id}-error`:null}),t("value",(i)=>{let g=W(i);return g?X(g,o.color[g]??0):"0"}),N("change",({target:i})=>{let g=W(i);if(!g)return;let T=i.valueAsNumber,P={...o.color,[g]:g==="l"?T/100:T};if(S0(P))F(P);else i.setCustomValidity("Color out of gamut"),R[g].set(i.validationMessage)})]),n(".error",[q((i)=>{let g=W(i);return g?R[g].get():""})]),f(".graph",[N("pointerdown",({event:i})=>{let{top:g,left:T}=b.getBoundingClientRect(),P=M.get();m.setPointerCapture(i.pointerId);let A=(G)=>{let h=(G.getCoalescedEvents?.()||[]).pop()||G;W0(h.clientX,h.clientY,g,T,P)},s=()=>{m.removeEventListener("pointermove",A),m.removeEventListener("pointerup",s),Q.cancel()};m.addEventListener("pointermove",A,{passive:!0}),m.addEventListener("pointerup",s)}),j("--canvas-size",()=>M.get()+"px")]),f(".graph canvas",[U("width",()=>String(M.get())),U("height",()=>String(M.get())),()=>c(()=>{let i=b.getContext("2d",{colorSpace:"display-p3"});if(!i)return;let g=o.hue,T=Math.round(M.get()),P=(G,h="rgb")=>Go({mode:"oklch",l:G,c:b0.c,h:g},"oklch",h).c/b0.c,A=(G,h,r0,z0=1)=>[L(G,r0,g,z0),L(h,r0,g,z0)],s=(G,h,r0="rgb")=>{let z0=P(1-h/T,r0)*T,K0=i.createLinearGradient(G,0,z0,0),J0=A(G/T,z0/T,h/T,r0==="p3"?0.5:1);return K0.addColorStop(0,J0[0]),K0.addColorStop(1,J0[1]),i.fillStyle=K0,i.fillRect(G,h,z0-G,1),[z0,J0[1]]};i.clearRect(0,0,T,T);for(let G=0;G<T;G++){let[h,r0]=s(0,G);if(S0(r0))s(h,G,"p3")}})]),f(".knob",[j("top",()=>`${Math.round((1-o.lightness)*M.get())}px`),j("left",()=>`${Math.round(o.chroma*M.get()/b0.c)}px`),j("--color-border",()=>o.lightness>Wo?"black":"white")],"Add a <.knob> element as a drag knob to control lightness and chroma."),f(".slider",[N("pointerdown",({event:i})=>{let g=d.getBoundingClientRect().left,T=w.get();r.setPointerCapture(i.pointerId);let P=(s)=>{let G=(s.getCoalescedEvents?.()||[]).pop()||s;Q(G.clientX,g,T)},A=()=>{r.removeEventListener("pointermove",P),r.removeEventListener("pointerup",A),Q.cancel()};r.addEventListener("pointermove",P,{passive:!0}),r.addEventListener("pointerup",A)}),j("--track-width",()=>w.get()+"px"),U("aria-valuenow","hue"),U("aria-valuetext",()=>X("h",o.hue)+"\xB0")]),f(".slider canvas",[U("width",()=>String(w.get())),()=>c(()=>{let i=d.getContext("2d",{colorSpace:"display-p3"});if(!i)return;let g=Math.round(w.get());i.clearRect(0,0,g,1);for(let T=0;T<g;T++)i.fillStyle=e(n0(T/g)),i.fillRect(T,0,1,1)})]),f(".thumb",[j("left",()=>`${Math.round(o.hue*w.get()/b0.h)+ff}px`),j("--color-border",()=>o.lightness>Wo?"black":"white")],"Add a <.thumb> element as a drag knob to control the hue."),n("button.decrement",[N("click",({event:i,target:g})=>{let T=W(g);if(T)o.stepDown(T,i.shiftKey)}),t("disabled",(i)=>{let g=W(i);return!g||(o.color[g]??0)<=0})],"Add a <button.decrement> to decrement a value for a color channel."),n("button.increment",[N("click",({event:i,target:g})=>{let T=W(g);if(T)o.stepUp(T,i.shiftKey)}),t("disabled",(i)=>{let g=W(i);return!g||(o.color[g]??0)>=b0[g]})],"Add a <button.increment> to increment a value for a color channel."),N("keydown",({event:i})=>{let{key:g,shiftKey:T}=i,P=i.target;if(!P||P.localName==="input"&&(g==="ArrowLeft"||g==="ArrowRight"))return;if(g.substring(0,5)==="Arrow"||["+","-"].includes(g)){i.preventDefault(),i.stopPropagation();let A=W(P);if(A){if(g==="ArrowLeft"||g==="ArrowDown"||g==="-")o.stepDown(A,T);else if(g==="ArrowRight"||g==="ArrowUp"||g==="+")o.stepUp(A,T)}else if(P.role==="slider"){if(g==="ArrowLeft"||g==="ArrowDown"||g==="-")o.stepDown("h",T);else if(g==="ArrowRight"||g==="ArrowUp"||g==="+")o.stepUp("h",T)}else switch(g){case"ArrowDown":o.stepDown("l",T);break;case"ArrowUp":o.stepUp("l",T);break;case"ArrowLeft":o.stepDown("c",T);break;case"ArrowRight":o.stepUp("c",T);break;case"-":o.stepDown("h");break;case"+":o.stepUp("h");break}}})];for(let i=1;i<5;i++)H.push(f(`li.lighten${(5-i)*20}`,[(g,T)=>c(()=>{O(T,x0(o.color,1-i/10))})]));for(let i=1;i<5;i++)H.push(f(`li.darken${i*20}`,[(g,T)=>c(()=>{O(T,x0(o.color,1-(i+5)/10))})]));return H});var Zo=L0("p3"),O1=L0("rgb"),pf=20,E1=0.71,xm=z("form-colorslider",{color:N0(),value:0,stepDown:()=>{},stepUp:()=>{}},(o,{first:n,useElement:f})=>{let u=f("input","Add an <input> element to control the color slider."),p=f(".slider","Add a <.slider> element as a container for track and thumb."),m=f("canvas","Add a <canvas> element to display the color slider track."),b=mn(["l","c","h"])(o,o.getAttribute("axis")),r=b==="h"?360:b==="c"?0.4:1,d=b==="h"?1:b==="c"?0.001:0.0025,M=b==="h"?15:b==="c"?0.02:0.05;o.value=o.color[b],u.min="0",u.max=String(b==="l"?r*100:r),p.setAttribute("aria-valuemin","0"),p.setAttribute("aria-valuemax",String(r));let w=(L)=>{let O=Math.round(L/d)*d;if(O>=0&&O<=r)M0(()=>{o.color={...o.color,[b]:O},o.value=O}),D0("color-change","color")};o.stepDown=(L)=>{w(o.value-(L??d))},o.stepUp=(L)=>{w(o.value+(L??d))};let R=V(p.getBoundingClientRect().width-2*pf),Y=B(()=>o.color.l),F=(L)=>{let O=b==="l"?L*100:L;return O.toFixed(Math.min(String(O).split(".")[1]?.length||0,b==="c"?4:2))},x=(L)=>{M0(()=>{o.color=L,o.value=L[b]}),D0("color-change","color")},X=h0((L,O,Q)=>{let n0=Q?(L-O)/Q:0,W={...o.color,[b]:Math.min(Math.max(n0,0),1)*r};if(Zo(W))x(W)}),W0=(L)=>{let O={...o.color,[b]:L*r};if(O1(O))return O;if(Zo(O))O.alpha=0.5;else O.alpha=0;return O};return[n("input",[t("value",()=>F(o.value)),N("change",({target:L})=>{let O=L.valueAsNumber,Q={...o.color,[b]:b==="l"?O/100:O};if(Zo(Q))x(Q)})]),n(".slider",[N("pointerdown",({event:L})=>{let O=m.getBoundingClientRect().left,Q=R.get();p.setPointerCapture(L.pointerId);let n0=(H)=>{let i=(H.getCoalescedEvents?.()||[]).pop()||H;X(i.clientX,O,Q)},W=()=>{p.removeEventListener("pointermove",n0),p.removeEventListener("pointerup",W),X.cancel()};p.addEventListener("pointermove",n0,{passive:!0}),p.addEventListener("pointerup",W)}),j("--color-base",()=>e(o.color)),j("--track-width",()=>R.get()+"px"),U("aria-valuenow","value"),U("aria-valuetext",()=>{let L=F(o.value);return b==="l"?L+"%":b==="h"?L+"\xB0":L}),()=>{let L=h0((Q)=>{R.set(Q)}),O=new ResizeObserver(()=>{L(m.clientWidth)});return O.observe(m),()=>{O.disconnect(),L.cancel()}}]),n("canvas",[U("width",()=>String(R.get())),()=>c(()=>{let L=m.getContext("2d",{colorSpace:"display-p3"});if(!L)return;L.clearRect(0,0,360,1);let O=Math.round(R.get());for(let Q=0;Q<O;Q++)L.fillStyle=e(W0(Q/O)),L.fillRect(Q,0,1,1)})]),n(".thumb",[j("left",()=>`${Math.round(o.value*R.get()/r)+pf}px`),j("--color-border",()=>Y.get()>E1?"black":"white")],"Add a <.thumb> element as a drag knob to control the color."),n("button.decrement",[N("click",({event:L})=>{o.stepDown(L.shiftKey?M:d)}),t("disabled",()=>o.value<=0)],"Add a <button.decrement> to decrement a value for a color channel."),n("button.increment",[N("click",({event:L})=>{o.stepUp(L.shiftKey?M:d)}),t("disabled",()=>o.value>=r)],"Add a <button.increment> to increment a value for a color channel."),N("keyup",({event:L})=>{if(L.target?.localName==="input")return;let{key:O,shiftKey:Q}=L;if((O==="ArrowLeft"||O==="-")&&o.value>0)o.stepDown(Q?M:d);else if((O==="ArrowRight"||O==="+")&&o.value<r)o.stepUp(Q?M:d)})]});var Z5=(o="input")=>(n)=>{n.clear=()=>{n.value="",n.length=0;let f=n.querySelector(o);if(f)f.value="",f.setCustomValidity(""),f.checkValidity(),f.dispatchEvent(new Event("input",{bubbles:!0})),f.dispatchEvent(new Event("change",{bubbles:!0})),f.focus()}},j5=(o)=>[a(()=>!!o.length),N("click",()=>{o.clear()})];var Fm=z("form-combobox",{value:"",length:0,error:C({".error":$()},""),description:C({".description":$()},""),clear:Z5()},(o,{first:n,useElement:f})=>{let u=f("input","Needed to enter value."),p=f("form-combobox > .error")?.id,m=f(".description")?.id,b=f("form-listbox","Needed to display options."),r=V(!1),d=B(()=>r.get()&&b.options.length>0);return[U("value"),N("keyup",({event:M})=>{let{key:w}=M;if(w==="Escape")r.set(!1);if(w==="Delete")o.clear()}),N("form-listbox.change",({event:M})=>{if(M.detail)o.value=M.detail,u.value=M.detail,u.checkValidity(),o.length=u.value.length,o.error=u.validationMessage??"",r.set(!1)}),n("form-combobox > .error",q("error")),n(".description",q("description")),n("input",[t("ariaInvalid",()=>String(!!o.error)),U("aria-errormessage",()=>o.error&&p?p:null),U("aria-describedby",()=>o.description&&m?m:null),t("ariaExpanded",()=>String(d.get())),N("input",()=>{M0(()=>{u.checkValidity(),r.set(!0),o.value=u.value,o.length=u.value.length,o.error=u.validationMessage??""})}),N("keydown",({event:M})=>{let{key:w,altKey:R}=M;if(w==="ArrowDown"){if(R)r.set(!0);if(d.get())b.options[0]?.focus()}})]),n(".clear",j5(o)),n("form-listbox",[a(()=>d.get()),I({filter:()=>o.value})])]});var Xm=z("form-gauge",{value:Z(C({progress:Y0("value")},0))},(o,{first:n,useElement:f})=>{let u=f("progress","Add a native <progress> element.").max??100,p=(()=>{let b=o.getAttribute("thresholds");if(!b)return[];try{return JSON.parse(b)}catch{return[]}})(),m=B(()=>p.find((b)=>o.value>=b.min)||{label:"",color:"var(--color-primary)"});return[n("progress",t("value")),n(".value span",q("value")),U("value"),j("--form-gauge-degree",()=>`${240*o.value/u}deg`),j("--form-gauge-color",()=>m.get().color),n("small",[q(()=>m.get().label)]),n("button.increment",[t("disabled",()=>o.value>=u),N("click",({event:b})=>{o.value+=b.shiftKey?10:1})]),n("button.decrement",[t("disabled",()=>o.value<=0),N("click",({event:b})=>{o.value-=b.shiftKey?10:1})]),N("keydown",({event:b})=>{let{key:r,shiftKey:d}=b;if((r==="ArrowLeft"||r==="-")&&o.value>0)o.value-=d?10:1;else if((r==="ArrowRight"||r==="+")&&o.value<u)o.value+=d?10:1})]});var A5=(o,n)=>{let f="",u="";if(!n)u="No URL provided";else if((o.parentElement||o.getRootNode().host)?.closest(`${o.localName}[src="${n}"]`))u="Recursive loading detected";else try{let p=new URL(n,location.href);if(p.origin===location.origin)f=String(p);else u="Invalid URL origin"}catch(p){u=String(p)}return{value:f,error:u}};var mf=new Map,P1=(o)=>{let n=o.toLowerCase().split(",").map((u)=>u.trim()),f={noCache:!1,noStore:!1,maxAge:void 0};for(let u of n)if(u==="no-cache")f.noCache=!0;else if(u==="no-store")f.noStore=!0;else if(u.startsWith("max-age=")){let p=parseInt(u.substring(8),10);if(!isNaN(p))f.maxAge=p}return f},U1=(o)=>{if(o.maxAge!==void 0)return(Date.now()-o.timestamp)/1000<o.maxAge;return!0},$5=async(o,n,f=(u)=>u.text())=>{let u=mf.get(o),p={};if(u?.etag)p["If-None-Match"]=u.etag;if(u?.lastModified)p["If-Modified-Since"]=u.lastModified;let m=await fetch(o,{signal:n,headers:p});if(m.status===304&&u)return{content:u.content,fromCache:!0};if(!m.ok)throw new Error(`HTTP error! status: ${m.status}`);let b=await f(m),r=m.headers.get("cache-control"),d=m.headers.get("etag"),M=m.headers.get("last-modified"),w=r?P1(r):{noCache:!1,noStore:!1};if(!w.noStore){let R={content:b,timestamp:Date.now(),etag:d||void 0,lastModified:M||void 0,maxAge:w.maxAge};if(!w.noCache||U1(R))mf.set(o,R)}return{content:b,fromCache:!1}};var bf=(o,n)=>{if(!n)return o;let f=new RegExp(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi");return o.replace(f,"<mark>$&</mark>")};var C1="Enter",Q1=["ArrowLeft","ArrowUp"],rf=["ArrowRight","ArrowDown"],Mf="Home",df="End",V1=[...Q1,...rf,Mf,df];z("form-listbox",{value:"",filter:"",src:A5,options:u0('[role="option"]:not([hidden])'),index:-1},(o,{all:n,first:f})=>{let u=V(""),p=(M)=>M.map((w)=>`

Check failure

Code scanning / CodeQL

Useless regular-expression character escape High documentation

The escape sequence '$' is equivalent to just '$', so the sequence may still represent a meta-character when it is used in a
regular expression
.

Copilot Autofix

AI 18 days ago

Copilot could not generate an autofix suggestion

Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.

@estherbrunner
Copy link
Member Author

@fabianhaef Bis jetzt ist es einfach nur Search & Replace für den Namen. Wir sollten README und die Dokumentationsseiten nochmals reviewen, ob es so Sinn ergibt mit dem neuen Namen Le Truc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants