@alistigo/artifact-list 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -15,7 +15,7 @@ That means you use raw catalog or your catalog doesn't have a translation for th
15
15
  ICU features such as interpolation and plurals will not work properly for that message.
16
16
 
17
17
  Please compile your catalog first.
18
- `)),wn(g)&&ad.test(g)?ld(g):wn(g)?g:Tb(g,this._locale,this._locales)(s,r?.formats)}t=this._.bind(this);date(a,s){return to(this._locales||this._locale,a,s)}number(a,s){return eo(this._locales||this._locale,a,s)}}function Mb(i={}){return new Cb(i)}const no=Mb(),Db=/<([a-zA-Z0-9]+)>([\s\S]*?)<\/\1>|<([a-zA-Z0-9]+)\/>/,wb={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0};function rd(i,a={}){const s=i.split(Db);if(s.length===1)return i;const r=Ob(0,"$lingui$"),c=[],f=s.shift();f&&c.push(f);for(const[d,m,g]of od(s)){let p=typeof d<"u"?a[d]:void 0;(!p||wb[p.type]&&m)&&(console.error(p?`${p.type} is a void element tag therefore it must have no children`:`Can't use element at index '${d}' as it is not declared in the original translation`),p=X.jsx(X.Fragment,{})),Array.isArray(p)&&(p=X.jsx(X.Fragment,{children:p})),c.push(V.cloneElement(p,{key:r()},m?rd(m,a):p.props.children)),g&&c.push(g)}return c.length===1?c[0]:c}function od(i){if(!i.length)return[];const[a,s,r,c]=i.slice(0,4);return[[a||r,s||"",c]].concat(od(i.slice(4,i.length)))}const Ob=(i=0,a="")=>()=>`${a}_${i++}`;function zb(i){const{render:a,component:s,id:r,message:c,formats:f,lingui:{i18n:d,defaultComponent:m}}=i,{values:g,components:p}=_b(i),v=d&&typeof d._=="function"?d._(r,g,{message:c,formats:f}):r,b=v?rd(v,p):null;if(a===null||s===null)return b;const S=m||Rb,C={id:r,message:c,translation:b,children:b};if(a&&s)console.error("You can't use both `component` and `render` prop at the same time. `component` is ignored.");else if(a&&typeof a!="function")console.error(`Invalid value supplied to prop \`render\`. It must be a function, provided ${a}`);else if(s&&typeof s!="function")return console.error(`Invalid value supplied to prop \`component\`. It must be a React component, provided ${s}`),X.jsx(S,{...C,children:b});if(typeof a=="function")return a(C);const U=s||S;return X.jsx(U,{...C,children:b})}const Rb=({children:i})=>i,_b=i=>{if(!i.values)return{values:void 0,components:i.components};const a={...i.values},s={...i.components};return Object.entries(i.values).forEach(([r,c])=>{if(typeof c=="string"||typeof c=="number")return;const f=Object.keys(s).length;s[f]=X.jsx(X.Fragment,{children:c}),a[r]=`<${f}/>`}),{values:a,components:s}},ud=V.createContext(null),cd=i=>V.useContext(ud);function fd(){return cd()}const jb=({i18n:i,defaultComponent:a,children:s})=>{const r=V.useRef(i.locale||null),c=V.useCallback(()=>({i18n:new Proxy(i,{}),defaultComponent:a,_:i.t.bind(i)}),[i,a]),[f,d]=V.useState(c);return V.useEffect(()=>{const m=()=>{r.current=i.locale||null,d(c())},g=i.on("change",m);return r.current!==i.locale&&m(),g},[i,c]),r.current===null?null:X.jsx(ud.Provider,{value:f,children:s})};function io(i){const a=cd();return X.jsx(zb,{...i,lingui:a})}const ao={version:"0.3.4"},Vb=JSON.parse('{"6ZGXNs":["Delete \\"",["text"],"\\""],"WH8Wi7":["No elements yet."],"hyVJ2f":["Add an element…"],"m16xKo":["Add"],"qmt9HO":["Add element"],"wja8aL":["Untitled"]}'),ts="en",Ub=new Set(["ar","fa","he","ur"]);let dd=!1;function Lb(){if(dd)return;dd=!0,no.load(ts,Vb),no.activate(ts);const i=document.documentElement;i.setAttribute("lang",ts),i.setAttribute("dir",Ub.has(ts)?"rtl":"ltr")}const Nb=Ui("alistigo:artifact-list:plugins"),Bb={"@alistigo/claude-storage-plugin":{},"@alistigo/local-storage-plugin":{}};function Hb(i){const a=i??{},s={};for(const[r,c]of Object.entries(Bb))r in a||(s[r]=c);return Object.assign(s,a),s}async function qb(i){const a=Object.entries(i??{});return a.length===0?[]:(await Promise.all(a.map(async([r])=>{try{return await sb(r)}catch(c){Nb.error({err:c,packageName:r},"failed to load plugin");return}}))).filter(r=>r!==void 0)}function jC(i){}function VC(i){}function Gb(){return{"@context":{"@vocab":"https://schema.org/",alistigo:"https://alistigo.ai/vocab/"},"@type":"ItemList","alistigo:listId":"lst_01jx0000000000000000000000","alistigo:schemaVersion":"1.0.0",name:"My List",itemListElement:[],"alistigo:listEventLog":[]}}class On extends Error{constructor(a){super(a),this.name="ListError"}}class es extends On{constructor(a){super(`ListElement not found: ${a}`),this.name="ListElementNotFoundError"}}const Yb=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function Xb(i){return typeof i=="string"&&Yb.test(i)}for(var ne=[],lo=0;lo<256;++lo)ne.push((lo+256).toString(16).slice(1));function hd(i,a=0){return(ne[i[a+0]]+ne[i[a+1]]+ne[i[a+2]]+ne[i[a+3]]+"-"+ne[i[a+4]]+ne[i[a+5]]+"-"+ne[i[a+6]]+ne[i[a+7]]+"-"+ne[i[a+8]]+ne[i[a+9]]+"-"+ne[i[a+10]]+ne[i[a+11]]+ne[i[a+12]]+ne[i[a+13]]+ne[i[a+14]]+ne[i[a+15]]).toLowerCase()}function Qb(i,a=0){var s=hd(i,a);if(!Xb(s))throw TypeError("Stringified UUID is invalid");return s}var ns,Kb=new Uint8Array(16);function Zb(){if(!ns&&(ns=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ns))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ns(Kb)}var md=null,pd=null,ke=0;function kb(i,a,s){i=i||{};var r=0,c=a||new Uint8Array(16),f=i.random||(i.rng||Zb)(),d=i.msecs!==void 0?i.msecs:Date.now(),m=i.seq!==void 0?i.seq:null,g=pd,p=md;return d>ke&&i.msecs===void 0&&(ke=d,m!==null&&(g=null,p=null)),m!==null&&(m>2147483647&&(m=2147483647),g=m>>>19&4095,p=m&524287),(g===null||p===null)&&(g=f[6]&127,g=g<<8|f[7],p=f[8]&63,p=p<<8|f[9],p=p<<5|f[10]>>>3),d+1e4>ke&&m===null?++p>524287&&(p=0,++g>4095&&(g=0,ke++)):ke=d,pd=g,md=p,c[r++]=ke/1099511627776&255,c[r++]=ke/4294967296&255,c[r++]=ke/16777216&255,c[r++]=ke/65536&255,c[r++]=ke/256&255,c[r++]=ke&255,c[r++]=g>>>4&15|112,c[r++]=g&255,c[r++]=p>>>13&63|128,c[r++]=p>>>5&255,c[r++]=p<<3&255|f[10]&7,c[r++]=f[11],c[r++]=f[12],c[r++]=f[13],c[r++]=f[14],c[r++]=f[15],a||hd(c)}function Jb(i){let a;const s=new Uint8Array(16);return s[0]=(a=parseInt(i.slice(0,8),16))>>>24,s[1]=a>>>16&255,s[2]=a>>>8&255,s[3]=a&255,s[4]=(a=parseInt(i.slice(9,13),16))>>>8,s[5]=a&255,s[6]=(a=parseInt(i.slice(14,18),16))>>>8,s[7]=a&255,s[8]=(a=parseInt(i.slice(19,23),16))>>>8,s[9]=a&255,s[10]=(a=parseInt(i.slice(24,36),16))/1099511627776&255,s[11]=a/4294967296&255,s[12]=a>>>24&255,s[13]=a>>>16&255,s[14]=a>>>8&255,s[15]=a&255,s}var zt="0123456789abcdefghjkmnpqrstvwxyz",I=new Uint8Array([255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,10,11,12,13,14,15,16,17,255,18,19,255,20,21,255,22,23,24,25,26,255,27,28,29,30,31,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255]);function so(i){const a=new Array(26).fill("");if(i.length!==16)throw new Error(`Invalid length. Expected 16 bytes, got ${i.length}. Input: ${i}`);return a[0]=zt[(i[0]&224)>>5],a[1]=zt[i[0]&31],a[2]=zt[(i[1]&248)>>3],a[3]=zt[(i[1]&7)<<2|(i[2]&192)>>6],a[4]=zt[(i[2]&62)>>1],a[5]=zt[(i[2]&1)<<4|(i[3]&240)>>4],a[6]=zt[(i[3]&15)<<1|(i[4]&128)>>7],a[7]=zt[(i[4]&124)>>2],a[8]=zt[(i[4]&3)<<3|(i[5]&224)>>5],a[9]=zt[i[5]&31],a[10]=zt[(i[6]&248)>>3],a[11]=zt[(i[6]&7)<<2|(i[7]&192)>>6],a[12]=zt[(i[7]&62)>>1],a[13]=zt[(i[7]&1)<<4|(i[8]&240)>>4],a[14]=zt[(i[8]&15)<<1|(i[9]&128)>>7],a[15]=zt[(i[9]&124)>>2],a[16]=zt[(i[9]&3)<<3|(i[10]&224)>>5],a[17]=zt[i[10]&31],a[18]=zt[(i[11]&248)>>3],a[19]=zt[(i[11]&7)<<2|(i[12]&192)>>6],a[20]=zt[(i[12]&62)>>1],a[21]=zt[(i[12]&1)<<4|(i[13]&240)>>4],a[22]=zt[(i[13]&15)<<1|(i[14]&128)>>7],a[23]=zt[(i[14]&124)>>2],a[24]=zt[(i[14]&3)<<3|(i[15]&224)>>5],a[25]=zt[i[15]&31],a.join("")}function gd(i){if(i.length!==26)throw new Error(`Invalid length. Expected 26 bytes, got ${i.length}. Input: ${i}`);const s=new TextEncoder().encode(i);if(I[s[0]]===255||I[s[1]]===255||I[s[2]]===255||I[s[3]]===255||I[s[4]]===255||I[s[5]]===255||I[s[6]]===255||I[s[7]]===255||I[s[8]]===255||I[s[9]]===255||I[s[10]]===255||I[s[11]]===255||I[s[12]]===255||I[s[13]]===255||I[s[14]]===255||I[s[15]]===255||I[s[16]]===255||I[s[17]]===255||I[s[18]]===255||I[s[19]]===255||I[s[20]]===255||I[s[21]]===255||I[s[22]]===255||I[s[23]]===255||I[s[24]]===255||I[s[25]]===255)throw new Error("Invalid base32 character");const r=new Uint8Array(16);return r[0]=I[s[0]]<<5|I[s[1]],r[1]=I[s[2]]<<3|I[s[3]]>>2,r[2]=(I[s[3]]&3)<<6|I[s[4]]<<1|I[s[5]]>>4,r[3]=(I[s[5]]&15)<<4|I[s[6]]>>1,r[4]=(I[s[6]]&1)<<7|I[s[7]]<<2|I[s[8]]>>3,r[5]=(I[s[8]]&7)<<5|I[s[9]],r[6]=I[s[10]]<<3|I[s[11]]>>2,r[7]=(I[s[11]]&3)<<6|I[s[12]]<<1|I[s[13]]>>4,r[8]=(I[s[13]]&15)<<4|I[s[14]]>>1,r[9]=(I[s[14]]&1)<<7|I[s[15]]<<2|I[s[16]]>>3,r[10]=(I[s[16]]&7)<<5|I[s[17]],r[11]=I[s[18]]<<3|I[s[19]]>>2,r[12]=(I[s[19]]&3)<<6|I[s[20]]<<1|I[s[21]]>>4,r[13]=(I[s[21]]&15)<<4|I[s[22]]>>1,r[14]=(I[s[22]]&1)<<7|I[s[23]]<<2|I[s[24]]>>3,r[15]=(I[s[24]]&7)<<5|I[s[25]],r}function Fb(i){if(i.length>63)return!1;let a,s,r;for(s=0,r=i.length;s<r;s+=1){a=i.charCodeAt(s);const c=a>96&&a<123,f=a===95;if((s===0||s===r-1)&&!c||!(c||f))return!1}return!0}var Pb=class extends Error{constructor(i){super(`Invalid prefix "${i}". Must be at most 63 ASCII letters [a-z_]`),this.name="InvalidPrefixError"}},Wb=class extends Error{constructor(i,a){super(`Invalid TypeId. Prefix mismatch. Expected ${i}, got ${a}`),this.name="PrefixMismatchError"}},Ib=class extends Error{constructor(i){super(`Invalid TypeId. Prefix cannot be empty when there's a separator: ${i}`),this.name="EmptyPrefixError"}},yd=class extends Error{constructor(i){super(`Invalid length. Suffix should have 26 characters, got ${i}`),this.name="InvalidSuffixLengthError"}},$b=class extends Error{constructor(i){super(`Invalid suffix. First character "${i}" must be in the range [0-7]`),this.name="InvalidSuffixCharacterError"}},t1=class extends Error{constructor(i,a){super(`Cannot convert TypeID of type ${i} to type ${a}`),this.name="TypeIDConversionError"}};function vd(i="",a=""){if(!Fb(i))throw new Pb(i);let s;if(a)s=a;else{const r=new Uint8Array(16);kb(void 0,r),s=so(r)}if(s.length!==26)throw new yd(s.length);if(s[0]>"7")throw new $b(s[0]);return gd(s),i===""?s:`${i}_${s}`}function e1(i,a){let s,r;const c=i.lastIndexOf("_");if(c===-1)s="",r=i;else if(s=i.substring(0,c),r=i.substring(c+1),!s)throw new Ib(i);if(!r)throw new yd(0);if(a&&s!==a)throw new Wb(a,s);return vd(s,r)}function bd(i){const a=i.lastIndexOf("_");return a===-1?"":i.substring(0,a)}function Sd(i){const a=i.lastIndexOf("_");return a===-1?i:i.substring(a+1)}var zn=class{constructor(i,a=""){this.prefix=i,this.suffix=a;const s=vd(i,a);this.prefix=bd(s),this.suffix=Sd(s)}getType(){return this.prefix}getSuffix(){return this.suffix}asType(i){const a=this;if(a.prefix!==i)throw new t1(a.prefix,i);return a}toUUIDBytes(){return gd(this.suffix)}toUUID(){return Qb(this.toUUIDBytes())}toString(){return this.prefix===""?this.suffix:`${this.prefix}_${this.suffix}`}static fromString(i,a){const s=e1(i,a);return new zn(bd(s),Sd(s))}static fromUUIDBytes(i,a){const s=so(a);return new zn(i,s)}static fromUUID(i,a){const s=so(Jb(a));return new zn(i,s)}};function is(i="",a=""){return new zn(i,a)}function n1(){return is("lse")}function ro(i){return zn.fromString(i,"lse")}function as(){return is("lev")}function i1(i){return zn.fromString(i,"lev")}function xd(){return is("lst")}function oo(i){return zn.fromString(i,"lst")}function a1(i){const a=new Date(i);if(Number.isNaN(a.getTime()))throw new On(`Invalid Timestamp: "${i}" does not parse as a valid date`);return i}function ls(){return new Date().toISOString()}class Na{#t;#a;#n;#e;constructor(a){this.#t=a,this.#a=void 0,this.#n=new Map,this.#e=[]}get id(){return this.#t}get title(){return this.#a}get elements(){return[...this.#n.values()]}static create(a){const s=a.listId??xd(),r=new Na(s),c={type:"ListCreated",listEventId:as(),listId:s,actorId:a.actorId,timestamp:ls(),...a.title!==void 0?{title:a.title}:{}};return r.#i(c),r.#e.push(c),{list:r,event:c}}static rehydrate(a,s){const r=new Na(a);for(const c of s)r.#i(c);return r}addListElement(a){const s=n1(),r={type:"ListElementAdded",listEventId:as(),listId:this.#t,actorId:a.actorId,timestamp:ls(),listElementId:s,content:a.content};return this.#i(r),this.#e.push(r),r}deleteListElement(a){const s=a.listElementId.toString();if(!this.#n.has(s))throw new es(s);const r={type:"ListElementDeleted",listEventId:as(),listId:this.#t,actorId:a.actorId,timestamp:ls(),listElementId:a.listElementId};return this.#i(r),this.#e.push(r),r}exportListDocument(a){const s={type:"ListExported",listEventId:as(),listId:this.#t,actorId:a.actorId,timestamp:ls(),format:"json-ld"};return this.#i(s),this.#e.push(s),s}getUncommittedEvents(){return[...this.#e]}markEventsAsCommitted(){this.#e.length=0}#i(a){({ListCreated:r=>{this.#a=r.title},ListElementAdded:r=>{this.#n.set(r.listElementId.toString(),{id:r.listElementId,content:r.content,addedAt:r.timestamp})},ListElementDeleted:r=>{this.#n.delete(r.listElementId.toString())},ListExported:r=>{}})[a.type](a)}}function l1(){return is("act")}function s1(i){return zn.fromString(i,"act")}const Ad=2e3;function Td(i){const a=i.trim();if(a.length===0)throw new On("ListElementContent cannot be empty");if(a.length>Ad)throw new On(`ListElementContent exceeds maximum length of ${Ad} characters`);return a}const r1={"@vocab":"https://schema.org/",alistigo:"https://alistigo.ai/vocab/"},o1="1.0.0";function u1(i){const a={"alistigo:listEventId":i.listEventId.toString(),"alistigo:listId":i.listId.toString(),"alistigo:actorId":i.actorId.toString(),"alistigo:timestamp":i.timestamp};switch(i.type){case"ListCreated":return{...a,"alistigo:eventType":"ListCreated",...i.title!==void 0?{name:i.title}:{}};case"ListElementAdded":return{...a,"alistigo:eventType":"ListElementAdded","alistigo:listElementId":i.listElementId.toString(),name:i.content};case"ListElementDeleted":return{...a,"alistigo:eventType":"ListElementDeleted","alistigo:listElementId":i.listElementId.toString()};case"ListExported":return{...a,"alistigo:eventType":"ListExported"}}}function c1(i){const a={listEventId:i1(i["alistigo:listEventId"]),listId:oo(i["alistigo:listId"]),actorId:s1(i["alistigo:actorId"]),timestamp:a1(i["alistigo:timestamp"])};switch(i["alistigo:eventType"]){case"ListCreated":{const s=i;return{...a,type:"ListCreated",...s.name!==void 0?{title:s.name}:{}}}case"ListElementAdded":{const s=i;return{...a,type:"ListElementAdded",listElementId:ro(s["alistigo:listElementId"]),content:Td(s.name)}}case"ListElementDeleted":return{...a,type:"ListElementDeleted",listElementId:ro(i["alistigo:listElementId"])};case"ListExported":return{...a,type:"ListExported",format:"json-ld"}}}const Ed={serialize(i,a){const s=a?.["alistigo:listEventLog"]??[],r=i.getUncommittedEvents().map(u1),c=i.elements.map((d,m)=>({"@type":"ListItem","alistigo:listElementId":d.id.toString(),position:m+1,name:d.content})),f={"@context":r1,"@type":"ItemList","alistigo:listId":i.id.toString(),"alistigo:schemaVersion":o1,itemListElement:c,"alistigo:listEventLog":[...s,...r]};return i.title!==void 0&&(f.name=i.title),f},deserialize(i){const a=oo(i["alistigo:listId"]),s=i["alistigo:listEventLog"].map(c1);return Na.rehydrate(a,s)}};class f1{docs=new Map;async load(a){const s=this.docs.get(a.toString());if(s!==void 0)return Ed.deserialize(s)}async save(a){const s=this.docs.get(a.id.toString()),r=Ed.serialize(a,s);this.docs.set(a.id.toString(),r)}async loadDocument(a){return this.docs.get(a.toString())}}function Cd(i,a){if(typeof i=="function")return i(a);i!=null&&(i.current=a)}function d1(...i){return a=>{let s=!1;const r=i.map(c=>{const f=Cd(c,a);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let c=0;c<r.length;c++){const f=r[c];typeof f=="function"?f():Cd(i[c],null)}}}}var h1=Symbol.for("react.lazy"),ss=J0[" use ".trim().toString()];function m1(i){return typeof i=="object"&&i!==null&&"then"in i}function Md(i){return i!=null&&typeof i=="object"&&"$$typeof"in i&&i.$$typeof===h1&&"_payload"in i&&m1(i._payload)}function p1(i){const a=y1(i),s=V.forwardRef((r,c)=>{let{children:f,...d}=r;Md(f)&&typeof ss=="function"&&(f=ss(f._payload));const m=V.Children.toArray(f),g=m.find(b1);if(g){const p=g.props.children,v=m.map(b=>b===g?V.Children.count(p)>1?V.Children.only(null):V.isValidElement(p)?p.props.children:null:b);return X.jsx(a,{...d,ref:c,children:V.isValidElement(p)?V.cloneElement(p,void 0,v):null})}return X.jsx(a,{...d,ref:c,children:f})});return s.displayName=`${i}.Slot`,s}var g1=p1("Slot");function y1(i){const a=V.forwardRef((s,r)=>{let{children:c,...f}=s;if(Md(c)&&typeof ss=="function"&&(c=ss(c._payload)),V.isValidElement(c)){const d=x1(c),m=S1(f,c.props);return c.type!==V.Fragment&&(m.ref=r?d1(r,d):d),V.cloneElement(c,m)}return V.Children.count(c)>1?V.Children.only(null):null});return a.displayName=`${i}.SlotClone`,a}var v1=Symbol("radix.slottable");function b1(i){return V.isValidElement(i)&&typeof i.type=="function"&&"__radixId"in i.type&&i.type.__radixId===v1}function S1(i,a){const s={...a};for(const r in a){const c=i[r],f=a[r];/^on[A-Z]/.test(r)?c&&f?s[r]=(...m)=>{const g=f(...m);return c(...m),g}:c&&(s[r]=c):r==="style"?s[r]={...c,...f}:r==="className"&&(s[r]=[c,f].filter(Boolean).join(" "))}return{...i,...s}}function x1(i){let a=Object.getOwnPropertyDescriptor(i.props,"ref")?.get,s=a&&"isReactWarning"in a&&a.isReactWarning;return s?i.ref:(a=Object.getOwnPropertyDescriptor(i,"ref")?.get,s=a&&"isReactWarning"in a&&a.isReactWarning,s?i.props.ref:i.props.ref||i.ref)}function Dd(i){var a,s,r="";if(typeof i=="string"||typeof i=="number")r+=i;else if(typeof i=="object")if(Array.isArray(i)){var c=i.length;for(a=0;a<c;a++)i[a]&&(s=Dd(i[a]))&&(r&&(r+=" "),r+=s)}else for(s in i)i[s]&&(r&&(r+=" "),r+=s);return r}function wd(){for(var i,a,s=0,r="",c=arguments.length;s<c;s++)(i=arguments[s])&&(a=Dd(i))&&(r&&(r+=" "),r+=a);return r}const Od=i=>typeof i=="boolean"?`${i}`:i===0?"0":i,zd=wd,A1=(i,a)=>s=>{var r;if(a?.variants==null)return zd(i,s?.class,s?.className);const{variants:c,defaultVariants:f}=a,d=Object.keys(c).map(p=>{const v=s?.[p],b=f?.[p];if(v===null)return null;const S=Od(v)||Od(b);return c[p][S]}),m=s&&Object.entries(s).reduce((p,v)=>{let[b,S]=v;return S===void 0||(p[b]=S),p},{}),g=a==null||(r=a.compoundVariants)===null||r===void 0?void 0:r.reduce((p,v)=>{let{class:b,className:S,...C}=v;return Object.entries(C).every(U=>{let[O,B]=U;return Array.isArray(B)?B.includes({...f,...m}[O]):{...f,...m}[O]===B})?[...p,b,S]:p},[]);return zd(i,d,g,s?.class,s?.className)},uo="-",T1=i=>{const a=C1(i),{conflictingClassGroups:s,conflictingClassGroupModifiers:r}=i;return{getClassGroupId:d=>{const m=d.split(uo);return m[0]===""&&m.length!==1&&m.shift(),Rd(m,a)||E1(d)},getConflictingClassGroupIds:(d,m)=>{const g=s[d]||[];return m&&r[d]?[...g,...r[d]]:g}}},Rd=(i,a)=>{if(i.length===0)return a.classGroupId;const s=i[0],r=a.nextPart.get(s),c=r?Rd(i.slice(1),r):void 0;if(c)return c;if(a.validators.length===0)return;const f=i.join(uo);return a.validators.find(({validator:d})=>d(f))?.classGroupId},_d=/^\[(.+)\]$/,E1=i=>{if(_d.test(i)){const a=_d.exec(i)[1],s=a?.substring(0,a.indexOf(":"));if(s)return"arbitrary.."+s}},C1=i=>{const{theme:a,prefix:s}=i,r={nextPart:new Map,validators:[]};return D1(Object.entries(i.classGroups),s).forEach(([f,d])=>{co(d,r,f,a)}),r},co=(i,a,s,r)=>{i.forEach(c=>{if(typeof c=="string"){const f=c===""?a:jd(a,c);f.classGroupId=s;return}if(typeof c=="function"){if(M1(c)){co(c(r),a,s,r);return}a.validators.push({validator:c,classGroupId:s});return}Object.entries(c).forEach(([f,d])=>{co(d,jd(a,f),s,r)})})},jd=(i,a)=>{let s=i;return a.split(uo).forEach(r=>{s.nextPart.has(r)||s.nextPart.set(r,{nextPart:new Map,validators:[]}),s=s.nextPart.get(r)}),s},M1=i=>i.isThemeGetter,D1=(i,a)=>a?i.map(([s,r])=>{const c=r.map(f=>typeof f=="string"?a+f:typeof f=="object"?Object.fromEntries(Object.entries(f).map(([d,m])=>[a+d,m])):f);return[s,c]}):i,w1=i=>{if(i<1)return{get:()=>{},set:()=>{}};let a=0,s=new Map,r=new Map;const c=(f,d)=>{s.set(f,d),a++,a>i&&(a=0,r=s,s=new Map)};return{get(f){let d=s.get(f);if(d!==void 0)return d;if((d=r.get(f))!==void 0)return c(f,d),d},set(f,d){s.has(f)?s.set(f,d):c(f,d)}}},Vd="!",O1=i=>{const{separator:a,experimentalParseClassName:s}=i,r=a.length===1,c=a[0],f=a.length,d=m=>{const g=[];let p=0,v=0,b;for(let B=0;B<m.length;B++){let G=m[B];if(p===0){if(G===c&&(r||m.slice(B,B+f)===a)){g.push(m.slice(v,B)),v=B+f;continue}if(G==="/"){b=B;continue}}G==="["?p++:G==="]"&&p--}const S=g.length===0?m:m.substring(v),C=S.startsWith(Vd),U=C?S.substring(1):S,O=b&&b>v?b-v:void 0;return{modifiers:g,hasImportantModifier:C,baseClassName:U,maybePostfixModifierPosition:O}};return s?m=>s({className:m,parseClassName:d}):d},z1=i=>{if(i.length<=1)return i;const a=[];let s=[];return i.forEach(r=>{r[0]==="["?(a.push(...s.sort(),r),s=[]):s.push(r)}),a.push(...s.sort()),a},R1=i=>({cache:w1(i.cacheSize),parseClassName:O1(i),...T1(i)}),_1=/\s+/,j1=(i,a)=>{const{parseClassName:s,getClassGroupId:r,getConflictingClassGroupIds:c}=a,f=[],d=i.trim().split(_1);let m="";for(let g=d.length-1;g>=0;g-=1){const p=d[g],{modifiers:v,hasImportantModifier:b,baseClassName:S,maybePostfixModifierPosition:C}=s(p);let U=!!C,O=r(U?S.substring(0,C):S);if(!O){if(!U){m=p+(m.length>0?" "+m:m);continue}if(O=r(S),!O){m=p+(m.length>0?" "+m:m);continue}U=!1}const B=z1(v).join(":"),G=b?B+Vd:B,Z=G+O;if(f.includes(Z))continue;f.push(Z);const k=c(O,U);for(let $=0;$<k.length;++$){const J=k[$];f.push(G+J)}m=p+(m.length>0?" "+m:m)}return m};function V1(){let i=0,a,s,r="";for(;i<arguments.length;)(a=arguments[i++])&&(s=Ud(a))&&(r&&(r+=" "),r+=s);return r}const Ud=i=>{if(typeof i=="string")return i;let a,s="";for(let r=0;r<i.length;r++)i[r]&&(a=Ud(i[r]))&&(s&&(s+=" "),s+=a);return s};function U1(i,...a){let s,r,c,f=d;function d(g){const p=a.reduce((v,b)=>b(v),i());return s=R1(p),r=s.cache.get,c=s.cache.set,f=m,m(g)}function m(g){const p=r(g);if(p)return p;const v=j1(g,s);return c(g,v),v}return function(){return f(V1.apply(null,arguments))}}const _t=i=>{const a=s=>s[i]||[];return a.isThemeGetter=!0,a},Ld=/^\[(?:([a-z-]+):)?(.+)\]$/i,L1=/^\d+\/\d+$/,N1=new Set(["px","full","screen"]),B1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,H1=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,q1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,G1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Y1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ln=i=>Li(i)||N1.has(i)||L1.test(i),Rn=i=>Ni(i,"length",P1),Li=i=>!!i&&!Number.isNaN(Number(i)),fo=i=>Ni(i,"number",Li),Ba=i=>!!i&&Number.isInteger(Number(i)),X1=i=>i.endsWith("%")&&Li(i.slice(0,-1)),dt=i=>Ld.test(i),_n=i=>B1.test(i),Q1=new Set(["length","size","percentage"]),K1=i=>Ni(i,Q1,Nd),Z1=i=>Ni(i,"position",Nd),k1=new Set(["image","url"]),J1=i=>Ni(i,k1,I1),F1=i=>Ni(i,"",W1),Ha=()=>!0,Ni=(i,a,s)=>{const r=Ld.exec(i);return r?r[1]?typeof a=="string"?r[1]===a:a.has(r[1]):s(r[2]):!1},P1=i=>H1.test(i)&&!q1.test(i),Nd=()=>!1,W1=i=>G1.test(i),I1=i=>Y1.test(i),$1=U1(()=>{const i=_t("colors"),a=_t("spacing"),s=_t("blur"),r=_t("brightness"),c=_t("borderColor"),f=_t("borderRadius"),d=_t("borderSpacing"),m=_t("borderWidth"),g=_t("contrast"),p=_t("grayscale"),v=_t("hueRotate"),b=_t("invert"),S=_t("gap"),C=_t("gradientColorStops"),U=_t("gradientColorStopPositions"),O=_t("inset"),B=_t("margin"),G=_t("opacity"),Z=_t("padding"),k=_t("saturate"),$=_t("scale"),J=_t("sepia"),at=_t("skew"),P=_t("space"),tt=_t("translate"),mt=()=>["auto","contain","none"],Rt=()=>["auto","hidden","clip","visible","scroll"],Lt=()=>["auto",dt,a],ct=()=>[dt,a],he=()=>["",ln,Rn],It=()=>["auto",Li,dt],N=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],E=()=>["solid","dashed","dotted","double","none"],R=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],F=()=>["","0",dt],lt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>[Li,dt];return{cacheSize:500,separator:":",theme:{colors:[Ha],spacing:[ln,Rn],blur:["none","",_n,dt],brightness:A(),borderColor:[i],borderRadius:["none","","full",_n,dt],borderSpacing:ct(),borderWidth:he(),contrast:A(),grayscale:F(),hueRotate:A(),invert:F(),gap:ct(),gradientColorStops:[i],gradientColorStopPositions:[X1,Rn],inset:Lt(),margin:Lt(),opacity:A(),padding:ct(),saturate:A(),scale:A(),sepia:F(),skew:A(),space:ct(),translate:ct()},classGroups:{aspect:[{aspect:["auto","square","video",dt]}],container:["container"],columns:[{columns:[_n]}],"break-after":[{"break-after":lt()}],"break-before":[{"break-before":lt()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...N(),dt]}],overflow:[{overflow:Rt()}],"overflow-x":[{"overflow-x":Rt()}],"overflow-y":[{"overflow-y":Rt()}],overscroll:[{overscroll:mt()}],"overscroll-x":[{"overscroll-x":mt()}],"overscroll-y":[{"overscroll-y":mt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[O]}],"inset-x":[{"inset-x":[O]}],"inset-y":[{"inset-y":[O]}],start:[{start:[O]}],end:[{end:[O]}],top:[{top:[O]}],right:[{right:[O]}],bottom:[{bottom:[O]}],left:[{left:[O]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ba,dt]}],basis:[{basis:Lt()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",dt]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:["first","last","none",Ba,dt]}],"grid-cols":[{"grid-cols":[Ha]}],"col-start-end":[{col:["auto",{span:["full",Ba,dt]},dt]}],"col-start":[{"col-start":It()}],"col-end":[{"col-end":It()}],"grid-rows":[{"grid-rows":[Ha]}],"row-start-end":[{row:["auto",{span:[Ba,dt]},dt]}],"row-start":[{"row-start":It()}],"row-end":[{"row-end":It()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",dt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",dt]}],gap:[{gap:[S]}],"gap-x":[{"gap-x":[S]}],"gap-y":[{"gap-y":[S]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[Z]}],px:[{px:[Z]}],py:[{py:[Z]}],ps:[{ps:[Z]}],pe:[{pe:[Z]}],pt:[{pt:[Z]}],pr:[{pr:[Z]}],pb:[{pb:[Z]}],pl:[{pl:[Z]}],m:[{m:[B]}],mx:[{mx:[B]}],my:[{my:[B]}],ms:[{ms:[B]}],me:[{me:[B]}],mt:[{mt:[B]}],mr:[{mr:[B]}],mb:[{mb:[B]}],ml:[{ml:[B]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",dt,a]}],"min-w":[{"min-w":[dt,a,"min","max","fit"]}],"max-w":[{"max-w":[dt,a,"none","full","min","max","fit","prose",{screen:[_n]},_n]}],h:[{h:[dt,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[dt,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[dt,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[dt,a,"auto","min","max","fit"]}],"font-size":[{text:["base",_n,Rn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",fo]}],"font-family":[{font:[Ha]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",dt]}],"line-clamp":[{"line-clamp":["none",Li,fo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ln,dt]}],"list-image":[{"list-image":["none",dt]}],"list-style-type":[{list:["none","disc","decimal",dt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[i]}],"placeholder-opacity":[{"placeholder-opacity":[G]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[i]}],"text-opacity":[{"text-opacity":[G]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...E(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ln,Rn]}],"underline-offset":[{"underline-offset":["auto",ln,dt]}],"text-decoration-color":[{decoration:[i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ct()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",dt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",dt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[G]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...N(),Z1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",K1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},J1]}],"bg-color":[{bg:[i]}],"gradient-from-pos":[{from:[U]}],"gradient-via-pos":[{via:[U]}],"gradient-to-pos":[{to:[U]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[f]}],"rounded-s":[{"rounded-s":[f]}],"rounded-e":[{"rounded-e":[f]}],"rounded-t":[{"rounded-t":[f]}],"rounded-r":[{"rounded-r":[f]}],"rounded-b":[{"rounded-b":[f]}],"rounded-l":[{"rounded-l":[f]}],"rounded-ss":[{"rounded-ss":[f]}],"rounded-se":[{"rounded-se":[f]}],"rounded-ee":[{"rounded-ee":[f]}],"rounded-es":[{"rounded-es":[f]}],"rounded-tl":[{"rounded-tl":[f]}],"rounded-tr":[{"rounded-tr":[f]}],"rounded-br":[{"rounded-br":[f]}],"rounded-bl":[{"rounded-bl":[f]}],"border-w":[{border:[m]}],"border-w-x":[{"border-x":[m]}],"border-w-y":[{"border-y":[m]}],"border-w-s":[{"border-s":[m]}],"border-w-e":[{"border-e":[m]}],"border-w-t":[{"border-t":[m]}],"border-w-r":[{"border-r":[m]}],"border-w-b":[{"border-b":[m]}],"border-w-l":[{"border-l":[m]}],"border-opacity":[{"border-opacity":[G]}],"border-style":[{border:[...E(),"hidden"]}],"divide-x":[{"divide-x":[m]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[m]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[G]}],"divide-style":[{divide:E()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-s":[{"border-s":[c]}],"border-color-e":[{"border-e":[c]}],"border-color-t":[{"border-t":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-l":[{"border-l":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:["",...E()]}],"outline-offset":[{"outline-offset":[ln,dt]}],"outline-w":[{outline:[ln,Rn]}],"outline-color":[{outline:[i]}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[i]}],"ring-opacity":[{"ring-opacity":[G]}],"ring-offset-w":[{"ring-offset":[ln,Rn]}],"ring-offset-color":[{"ring-offset":[i]}],shadow:[{shadow:["","inner","none",_n,F1]}],"shadow-color":[{shadow:[Ha]}],opacity:[{opacity:[G]}],"mix-blend":[{"mix-blend":[...R(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":R()}],filter:[{filter:["","none"]}],blur:[{blur:[s]}],brightness:[{brightness:[r]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",_n,dt]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[v]}],invert:[{invert:[b]}],saturate:[{saturate:[k]}],sepia:[{sepia:[J]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[s]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[G]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",dt]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",dt]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",dt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[$]}],"scale-x":[{"scale-x":[$]}],"scale-y":[{"scale-y":[$]}],rotate:[{rotate:[Ba,dt]}],"translate-x":[{"translate-x":[tt]}],"translate-y":[{"translate-y":[tt]}],"skew-x":[{"skew-x":[at]}],"skew-y":[{"skew-y":[at]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",dt]}],accent:[{accent:["auto",i]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",dt]}],"caret-color":[{caret:[i]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ct()}],"scroll-mx":[{"scroll-mx":ct()}],"scroll-my":[{"scroll-my":ct()}],"scroll-ms":[{"scroll-ms":ct()}],"scroll-me":[{"scroll-me":ct()}],"scroll-mt":[{"scroll-mt":ct()}],"scroll-mr":[{"scroll-mr":ct()}],"scroll-mb":[{"scroll-mb":ct()}],"scroll-ml":[{"scroll-ml":ct()}],"scroll-p":[{"scroll-p":ct()}],"scroll-px":[{"scroll-px":ct()}],"scroll-py":[{"scroll-py":ct()}],"scroll-ps":[{"scroll-ps":ct()}],"scroll-pe":[{"scroll-pe":ct()}],"scroll-pt":[{"scroll-pt":ct()}],"scroll-pr":[{"scroll-pr":ct()}],"scroll-pb":[{"scroll-pb":ct()}],"scroll-pl":[{"scroll-pl":ct()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",dt]}],fill:[{fill:[i,"none"]}],"stroke-w":[{stroke:[ln,Rn,fo]}],stroke:[{stroke:[i,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});const t2=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Bd=(...i)=>i.filter((a,s,r)=>!!a&&a.trim()!==""&&r.indexOf(a)===s).join(" ").trim();var e2={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const n2=V.forwardRef(({color:i="currentColor",size:a=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:c="",children:f,iconNode:d,...m},g)=>V.createElement("svg",{ref:g,...e2,width:a,height:a,stroke:i,strokeWidth:r?Number(s)*24/Number(a):s,className:Bd("lucide",c),...m},[...d.map(([p,v])=>V.createElement(p,v)),...Array.isArray(f)?f:[f]]));const Hd=(i,a)=>{const s=V.forwardRef(({className:r,...c},f)=>V.createElement(n2,{ref:f,iconNode:a,className:Bd(`lucide-${t2(i)}`,r),...c}));return s.displayName=`${i}`,s};const i2=Hd("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);const a2=Hd("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),ho=V.createContext({});function mo(i){const a=V.useRef(null);return a.current===null&&(a.current=i()),a.current}const qa=V.createContext(null),po=V.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});class l2 extends V.Component{getSnapshotBeforeUpdate(a){const s=this.props.childRef.current;if(s&&a.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=s.offsetHeight||0,r.width=s.offsetWidth||0,r.top=s.offsetTop,r.left=s.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function s2({children:i,isPresent:a}){const s=V.useId(),r=V.useRef(null),c=V.useRef({width:0,height:0,top:0,left:0}),{nonce:f}=V.useContext(po);return V.useInsertionEffect(()=>{const{width:d,height:m,top:g,left:p}=c.current;if(a||!r.current||!d||!m)return;r.current.dataset.motionPopId=s;const v=document.createElement("style");return f&&(v.nonce=f),document.head.appendChild(v),v.sheet&&v.sheet.insertRule(`
18
+ `)),wn(g)&&ad.test(g)?ld(g):wn(g)?g:Tb(g,this._locale,this._locales)(s,r?.formats)}t=this._.bind(this);date(a,s){return to(this._locales||this._locale,a,s)}number(a,s){return eo(this._locales||this._locale,a,s)}}function Mb(i={}){return new Cb(i)}const no=Mb(),Db=/<([a-zA-Z0-9]+)>([\s\S]*?)<\/\1>|<([a-zA-Z0-9]+)\/>/,wb={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0};function rd(i,a={}){const s=i.split(Db);if(s.length===1)return i;const r=Ob(0,"$lingui$"),c=[],f=s.shift();f&&c.push(f);for(const[d,m,g]of od(s)){let p=typeof d<"u"?a[d]:void 0;(!p||wb[p.type]&&m)&&(console.error(p?`${p.type} is a void element tag therefore it must have no children`:`Can't use element at index '${d}' as it is not declared in the original translation`),p=X.jsx(X.Fragment,{})),Array.isArray(p)&&(p=X.jsx(X.Fragment,{children:p})),c.push(V.cloneElement(p,{key:r()},m?rd(m,a):p.props.children)),g&&c.push(g)}return c.length===1?c[0]:c}function od(i){if(!i.length)return[];const[a,s,r,c]=i.slice(0,4);return[[a||r,s||"",c]].concat(od(i.slice(4,i.length)))}const Ob=(i=0,a="")=>()=>`${a}_${i++}`;function zb(i){const{render:a,component:s,id:r,message:c,formats:f,lingui:{i18n:d,defaultComponent:m}}=i,{values:g,components:p}=_b(i),v=d&&typeof d._=="function"?d._(r,g,{message:c,formats:f}):r,b=v?rd(v,p):null;if(a===null||s===null)return b;const S=m||Rb,C={id:r,message:c,translation:b,children:b};if(a&&s)console.error("You can't use both `component` and `render` prop at the same time. `component` is ignored.");else if(a&&typeof a!="function")console.error(`Invalid value supplied to prop \`render\`. It must be a function, provided ${a}`);else if(s&&typeof s!="function")return console.error(`Invalid value supplied to prop \`component\`. It must be a React component, provided ${s}`),X.jsx(S,{...C,children:b});if(typeof a=="function")return a(C);const U=s||S;return X.jsx(U,{...C,children:b})}const Rb=({children:i})=>i,_b=i=>{if(!i.values)return{values:void 0,components:i.components};const a={...i.values},s={...i.components};return Object.entries(i.values).forEach(([r,c])=>{if(typeof c=="string"||typeof c=="number")return;const f=Object.keys(s).length;s[f]=X.jsx(X.Fragment,{children:c}),a[r]=`<${f}/>`}),{values:a,components:s}},ud=V.createContext(null),cd=i=>V.useContext(ud);function fd(){return cd()}const jb=({i18n:i,defaultComponent:a,children:s})=>{const r=V.useRef(i.locale||null),c=V.useCallback(()=>({i18n:new Proxy(i,{}),defaultComponent:a,_:i.t.bind(i)}),[i,a]),[f,d]=V.useState(c);return V.useEffect(()=>{const m=()=>{r.current=i.locale||null,d(c())},g=i.on("change",m);return r.current!==i.locale&&m(),g},[i,c]),r.current===null?null:X.jsx(ud.Provider,{value:f,children:s})};function io(i){const a=cd();return X.jsx(zb,{...i,lingui:a})}const ao={version:"0.3.5"},Vb=JSON.parse('{"6ZGXNs":["Delete \\"",["text"],"\\""],"WH8Wi7":["No elements yet."],"hyVJ2f":["Add an element…"],"m16xKo":["Add"],"qmt9HO":["Add element"],"wja8aL":["Untitled"]}'),ts="en",Ub=new Set(["ar","fa","he","ur"]);let dd=!1;function Lb(){if(dd)return;dd=!0,no.load(ts,Vb),no.activate(ts);const i=document.documentElement;i.setAttribute("lang",ts),i.setAttribute("dir",Ub.has(ts)?"rtl":"ltr")}const Nb=Ui("alistigo:artifact-list:plugins"),Bb={"@alistigo/claude-storage-plugin":{},"@alistigo/local-storage-plugin":{}};function Hb(i){const a=i??{},s={};for(const[r,c]of Object.entries(Bb))r in a||(s[r]=c);return Object.assign(s,a),s}async function qb(i){const a=Object.entries(i??{});return a.length===0?[]:(await Promise.all(a.map(async([r])=>{try{return await sb(r)}catch(c){Nb.error({err:c,packageName:r},"failed to load plugin");return}}))).filter(r=>r!==void 0)}function jC(i){}function VC(i){}function Gb(){return{"@context":{"@vocab":"https://schema.org/",alistigo:"https://alistigo.ai/vocab/"},"@type":"ItemList","alistigo:listId":"lst_01jx0000000000000000000000","alistigo:schemaVersion":"1.0.0",name:"My List",itemListElement:[],"alistigo:listEventLog":[]}}class On extends Error{constructor(a){super(a),this.name="ListError"}}class es extends On{constructor(a){super(`ListElement not found: ${a}`),this.name="ListElementNotFoundError"}}const Yb=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function Xb(i){return typeof i=="string"&&Yb.test(i)}for(var ne=[],lo=0;lo<256;++lo)ne.push((lo+256).toString(16).slice(1));function hd(i,a=0){return(ne[i[a+0]]+ne[i[a+1]]+ne[i[a+2]]+ne[i[a+3]]+"-"+ne[i[a+4]]+ne[i[a+5]]+"-"+ne[i[a+6]]+ne[i[a+7]]+"-"+ne[i[a+8]]+ne[i[a+9]]+"-"+ne[i[a+10]]+ne[i[a+11]]+ne[i[a+12]]+ne[i[a+13]]+ne[i[a+14]]+ne[i[a+15]]).toLowerCase()}function Qb(i,a=0){var s=hd(i,a);if(!Xb(s))throw TypeError("Stringified UUID is invalid");return s}var ns,Kb=new Uint8Array(16);function Zb(){if(!ns&&(ns=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ns))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ns(Kb)}var md=null,pd=null,ke=0;function kb(i,a,s){i=i||{};var r=0,c=a||new Uint8Array(16),f=i.random||(i.rng||Zb)(),d=i.msecs!==void 0?i.msecs:Date.now(),m=i.seq!==void 0?i.seq:null,g=pd,p=md;return d>ke&&i.msecs===void 0&&(ke=d,m!==null&&(g=null,p=null)),m!==null&&(m>2147483647&&(m=2147483647),g=m>>>19&4095,p=m&524287),(g===null||p===null)&&(g=f[6]&127,g=g<<8|f[7],p=f[8]&63,p=p<<8|f[9],p=p<<5|f[10]>>>3),d+1e4>ke&&m===null?++p>524287&&(p=0,++g>4095&&(g=0,ke++)):ke=d,pd=g,md=p,c[r++]=ke/1099511627776&255,c[r++]=ke/4294967296&255,c[r++]=ke/16777216&255,c[r++]=ke/65536&255,c[r++]=ke/256&255,c[r++]=ke&255,c[r++]=g>>>4&15|112,c[r++]=g&255,c[r++]=p>>>13&63|128,c[r++]=p>>>5&255,c[r++]=p<<3&255|f[10]&7,c[r++]=f[11],c[r++]=f[12],c[r++]=f[13],c[r++]=f[14],c[r++]=f[15],a||hd(c)}function Jb(i){let a;const s=new Uint8Array(16);return s[0]=(a=parseInt(i.slice(0,8),16))>>>24,s[1]=a>>>16&255,s[2]=a>>>8&255,s[3]=a&255,s[4]=(a=parseInt(i.slice(9,13),16))>>>8,s[5]=a&255,s[6]=(a=parseInt(i.slice(14,18),16))>>>8,s[7]=a&255,s[8]=(a=parseInt(i.slice(19,23),16))>>>8,s[9]=a&255,s[10]=(a=parseInt(i.slice(24,36),16))/1099511627776&255,s[11]=a/4294967296&255,s[12]=a>>>24&255,s[13]=a>>>16&255,s[14]=a>>>8&255,s[15]=a&255,s}var zt="0123456789abcdefghjkmnpqrstvwxyz",I=new Uint8Array([255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,10,11,12,13,14,15,16,17,255,18,19,255,20,21,255,22,23,24,25,26,255,27,28,29,30,31,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255]);function so(i){const a=new Array(26).fill("");if(i.length!==16)throw new Error(`Invalid length. Expected 16 bytes, got ${i.length}. Input: ${i}`);return a[0]=zt[(i[0]&224)>>5],a[1]=zt[i[0]&31],a[2]=zt[(i[1]&248)>>3],a[3]=zt[(i[1]&7)<<2|(i[2]&192)>>6],a[4]=zt[(i[2]&62)>>1],a[5]=zt[(i[2]&1)<<4|(i[3]&240)>>4],a[6]=zt[(i[3]&15)<<1|(i[4]&128)>>7],a[7]=zt[(i[4]&124)>>2],a[8]=zt[(i[4]&3)<<3|(i[5]&224)>>5],a[9]=zt[i[5]&31],a[10]=zt[(i[6]&248)>>3],a[11]=zt[(i[6]&7)<<2|(i[7]&192)>>6],a[12]=zt[(i[7]&62)>>1],a[13]=zt[(i[7]&1)<<4|(i[8]&240)>>4],a[14]=zt[(i[8]&15)<<1|(i[9]&128)>>7],a[15]=zt[(i[9]&124)>>2],a[16]=zt[(i[9]&3)<<3|(i[10]&224)>>5],a[17]=zt[i[10]&31],a[18]=zt[(i[11]&248)>>3],a[19]=zt[(i[11]&7)<<2|(i[12]&192)>>6],a[20]=zt[(i[12]&62)>>1],a[21]=zt[(i[12]&1)<<4|(i[13]&240)>>4],a[22]=zt[(i[13]&15)<<1|(i[14]&128)>>7],a[23]=zt[(i[14]&124)>>2],a[24]=zt[(i[14]&3)<<3|(i[15]&224)>>5],a[25]=zt[i[15]&31],a.join("")}function gd(i){if(i.length!==26)throw new Error(`Invalid length. Expected 26 bytes, got ${i.length}. Input: ${i}`);const s=new TextEncoder().encode(i);if(I[s[0]]===255||I[s[1]]===255||I[s[2]]===255||I[s[3]]===255||I[s[4]]===255||I[s[5]]===255||I[s[6]]===255||I[s[7]]===255||I[s[8]]===255||I[s[9]]===255||I[s[10]]===255||I[s[11]]===255||I[s[12]]===255||I[s[13]]===255||I[s[14]]===255||I[s[15]]===255||I[s[16]]===255||I[s[17]]===255||I[s[18]]===255||I[s[19]]===255||I[s[20]]===255||I[s[21]]===255||I[s[22]]===255||I[s[23]]===255||I[s[24]]===255||I[s[25]]===255)throw new Error("Invalid base32 character");const r=new Uint8Array(16);return r[0]=I[s[0]]<<5|I[s[1]],r[1]=I[s[2]]<<3|I[s[3]]>>2,r[2]=(I[s[3]]&3)<<6|I[s[4]]<<1|I[s[5]]>>4,r[3]=(I[s[5]]&15)<<4|I[s[6]]>>1,r[4]=(I[s[6]]&1)<<7|I[s[7]]<<2|I[s[8]]>>3,r[5]=(I[s[8]]&7)<<5|I[s[9]],r[6]=I[s[10]]<<3|I[s[11]]>>2,r[7]=(I[s[11]]&3)<<6|I[s[12]]<<1|I[s[13]]>>4,r[8]=(I[s[13]]&15)<<4|I[s[14]]>>1,r[9]=(I[s[14]]&1)<<7|I[s[15]]<<2|I[s[16]]>>3,r[10]=(I[s[16]]&7)<<5|I[s[17]],r[11]=I[s[18]]<<3|I[s[19]]>>2,r[12]=(I[s[19]]&3)<<6|I[s[20]]<<1|I[s[21]]>>4,r[13]=(I[s[21]]&15)<<4|I[s[22]]>>1,r[14]=(I[s[22]]&1)<<7|I[s[23]]<<2|I[s[24]]>>3,r[15]=(I[s[24]]&7)<<5|I[s[25]],r}function Fb(i){if(i.length>63)return!1;let a,s,r;for(s=0,r=i.length;s<r;s+=1){a=i.charCodeAt(s);const c=a>96&&a<123,f=a===95;if((s===0||s===r-1)&&!c||!(c||f))return!1}return!0}var Pb=class extends Error{constructor(i){super(`Invalid prefix "${i}". Must be at most 63 ASCII letters [a-z_]`),this.name="InvalidPrefixError"}},Wb=class extends Error{constructor(i,a){super(`Invalid TypeId. Prefix mismatch. Expected ${i}, got ${a}`),this.name="PrefixMismatchError"}},Ib=class extends Error{constructor(i){super(`Invalid TypeId. Prefix cannot be empty when there's a separator: ${i}`),this.name="EmptyPrefixError"}},yd=class extends Error{constructor(i){super(`Invalid length. Suffix should have 26 characters, got ${i}`),this.name="InvalidSuffixLengthError"}},$b=class extends Error{constructor(i){super(`Invalid suffix. First character "${i}" must be in the range [0-7]`),this.name="InvalidSuffixCharacterError"}},t1=class extends Error{constructor(i,a){super(`Cannot convert TypeID of type ${i} to type ${a}`),this.name="TypeIDConversionError"}};function vd(i="",a=""){if(!Fb(i))throw new Pb(i);let s;if(a)s=a;else{const r=new Uint8Array(16);kb(void 0,r),s=so(r)}if(s.length!==26)throw new yd(s.length);if(s[0]>"7")throw new $b(s[0]);return gd(s),i===""?s:`${i}_${s}`}function e1(i,a){let s,r;const c=i.lastIndexOf("_");if(c===-1)s="",r=i;else if(s=i.substring(0,c),r=i.substring(c+1),!s)throw new Ib(i);if(!r)throw new yd(0);if(a&&s!==a)throw new Wb(a,s);return vd(s,r)}function bd(i){const a=i.lastIndexOf("_");return a===-1?"":i.substring(0,a)}function Sd(i){const a=i.lastIndexOf("_");return a===-1?i:i.substring(a+1)}var zn=class{constructor(i,a=""){this.prefix=i,this.suffix=a;const s=vd(i,a);this.prefix=bd(s),this.suffix=Sd(s)}getType(){return this.prefix}getSuffix(){return this.suffix}asType(i){const a=this;if(a.prefix!==i)throw new t1(a.prefix,i);return a}toUUIDBytes(){return gd(this.suffix)}toUUID(){return Qb(this.toUUIDBytes())}toString(){return this.prefix===""?this.suffix:`${this.prefix}_${this.suffix}`}static fromString(i,a){const s=e1(i,a);return new zn(bd(s),Sd(s))}static fromUUIDBytes(i,a){const s=so(a);return new zn(i,s)}static fromUUID(i,a){const s=so(Jb(a));return new zn(i,s)}};function is(i="",a=""){return new zn(i,a)}function n1(){return is("lse")}function ro(i){return zn.fromString(i,"lse")}function as(){return is("lev")}function i1(i){return zn.fromString(i,"lev")}function xd(){return is("lst")}function oo(i){return zn.fromString(i,"lst")}function a1(i){const a=new Date(i);if(Number.isNaN(a.getTime()))throw new On(`Invalid Timestamp: "${i}" does not parse as a valid date`);return i}function ls(){return new Date().toISOString()}class Na{#t;#a;#n;#e;constructor(a){this.#t=a,this.#a=void 0,this.#n=new Map,this.#e=[]}get id(){return this.#t}get title(){return this.#a}get elements(){return[...this.#n.values()]}static create(a){const s=a.listId??xd(),r=new Na(s),c={type:"ListCreated",listEventId:as(),listId:s,actorId:a.actorId,timestamp:ls(),...a.title!==void 0?{title:a.title}:{}};return r.#i(c),r.#e.push(c),{list:r,event:c}}static rehydrate(a,s){const r=new Na(a);for(const c of s)r.#i(c);return r}addListElement(a){const s=n1(),r={type:"ListElementAdded",listEventId:as(),listId:this.#t,actorId:a.actorId,timestamp:ls(),listElementId:s,content:a.content};return this.#i(r),this.#e.push(r),r}deleteListElement(a){const s=a.listElementId.toString();if(!this.#n.has(s))throw new es(s);const r={type:"ListElementDeleted",listEventId:as(),listId:this.#t,actorId:a.actorId,timestamp:ls(),listElementId:a.listElementId};return this.#i(r),this.#e.push(r),r}exportListDocument(a){const s={type:"ListExported",listEventId:as(),listId:this.#t,actorId:a.actorId,timestamp:ls(),format:"json-ld"};return this.#i(s),this.#e.push(s),s}getUncommittedEvents(){return[...this.#e]}markEventsAsCommitted(){this.#e.length=0}#i(a){({ListCreated:r=>{this.#a=r.title},ListElementAdded:r=>{this.#n.set(r.listElementId.toString(),{id:r.listElementId,content:r.content,addedAt:r.timestamp})},ListElementDeleted:r=>{this.#n.delete(r.listElementId.toString())},ListExported:r=>{}})[a.type](a)}}function l1(){return is("act")}function s1(i){return zn.fromString(i,"act")}const Ad=2e3;function Td(i){const a=i.trim();if(a.length===0)throw new On("ListElementContent cannot be empty");if(a.length>Ad)throw new On(`ListElementContent exceeds maximum length of ${Ad} characters`);return a}const r1={"@vocab":"https://schema.org/",alistigo:"https://alistigo.ai/vocab/"},o1="1.0.0";function u1(i){const a={"alistigo:listEventId":i.listEventId.toString(),"alistigo:listId":i.listId.toString(),"alistigo:actorId":i.actorId.toString(),"alistigo:timestamp":i.timestamp};switch(i.type){case"ListCreated":return{...a,"alistigo:eventType":"ListCreated",...i.title!==void 0?{name:i.title}:{}};case"ListElementAdded":return{...a,"alistigo:eventType":"ListElementAdded","alistigo:listElementId":i.listElementId.toString(),name:i.content};case"ListElementDeleted":return{...a,"alistigo:eventType":"ListElementDeleted","alistigo:listElementId":i.listElementId.toString()};case"ListExported":return{...a,"alistigo:eventType":"ListExported"}}}function c1(i){const a={listEventId:i1(i["alistigo:listEventId"]),listId:oo(i["alistigo:listId"]),actorId:s1(i["alistigo:actorId"]),timestamp:a1(i["alistigo:timestamp"])};switch(i["alistigo:eventType"]){case"ListCreated":{const s=i;return{...a,type:"ListCreated",...s.name!==void 0?{title:s.name}:{}}}case"ListElementAdded":{const s=i;return{...a,type:"ListElementAdded",listElementId:ro(s["alistigo:listElementId"]),content:Td(s.name)}}case"ListElementDeleted":return{...a,type:"ListElementDeleted",listElementId:ro(i["alistigo:listElementId"])};case"ListExported":return{...a,type:"ListExported",format:"json-ld"}}}const Ed={serialize(i,a){const s=a?.["alistigo:listEventLog"]??[],r=i.getUncommittedEvents().map(u1),c=i.elements.map((d,m)=>({"@type":"ListItem","alistigo:listElementId":d.id.toString(),position:m+1,name:d.content})),f={"@context":r1,"@type":"ItemList","alistigo:listId":i.id.toString(),"alistigo:schemaVersion":o1,itemListElement:c,"alistigo:listEventLog":[...s,...r]};return i.title!==void 0&&(f.name=i.title),f},deserialize(i){const a=oo(i["alistigo:listId"]),s=i["alistigo:listEventLog"].map(c1);return Na.rehydrate(a,s)}};class f1{docs=new Map;async load(a){const s=this.docs.get(a.toString());if(s!==void 0)return Ed.deserialize(s)}async save(a){const s=this.docs.get(a.id.toString()),r=Ed.serialize(a,s);this.docs.set(a.id.toString(),r)}async loadDocument(a){return this.docs.get(a.toString())}}function Cd(i,a){if(typeof i=="function")return i(a);i!=null&&(i.current=a)}function d1(...i){return a=>{let s=!1;const r=i.map(c=>{const f=Cd(c,a);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let c=0;c<r.length;c++){const f=r[c];typeof f=="function"?f():Cd(i[c],null)}}}}var h1=Symbol.for("react.lazy"),ss=J0[" use ".trim().toString()];function m1(i){return typeof i=="object"&&i!==null&&"then"in i}function Md(i){return i!=null&&typeof i=="object"&&"$$typeof"in i&&i.$$typeof===h1&&"_payload"in i&&m1(i._payload)}function p1(i){const a=y1(i),s=V.forwardRef((r,c)=>{let{children:f,...d}=r;Md(f)&&typeof ss=="function"&&(f=ss(f._payload));const m=V.Children.toArray(f),g=m.find(b1);if(g){const p=g.props.children,v=m.map(b=>b===g?V.Children.count(p)>1?V.Children.only(null):V.isValidElement(p)?p.props.children:null:b);return X.jsx(a,{...d,ref:c,children:V.isValidElement(p)?V.cloneElement(p,void 0,v):null})}return X.jsx(a,{...d,ref:c,children:f})});return s.displayName=`${i}.Slot`,s}var g1=p1("Slot");function y1(i){const a=V.forwardRef((s,r)=>{let{children:c,...f}=s;if(Md(c)&&typeof ss=="function"&&(c=ss(c._payload)),V.isValidElement(c)){const d=x1(c),m=S1(f,c.props);return c.type!==V.Fragment&&(m.ref=r?d1(r,d):d),V.cloneElement(c,m)}return V.Children.count(c)>1?V.Children.only(null):null});return a.displayName=`${i}.SlotClone`,a}var v1=Symbol("radix.slottable");function b1(i){return V.isValidElement(i)&&typeof i.type=="function"&&"__radixId"in i.type&&i.type.__radixId===v1}function S1(i,a){const s={...a};for(const r in a){const c=i[r],f=a[r];/^on[A-Z]/.test(r)?c&&f?s[r]=(...m)=>{const g=f(...m);return c(...m),g}:c&&(s[r]=c):r==="style"?s[r]={...c,...f}:r==="className"&&(s[r]=[c,f].filter(Boolean).join(" "))}return{...i,...s}}function x1(i){let a=Object.getOwnPropertyDescriptor(i.props,"ref")?.get,s=a&&"isReactWarning"in a&&a.isReactWarning;return s?i.ref:(a=Object.getOwnPropertyDescriptor(i,"ref")?.get,s=a&&"isReactWarning"in a&&a.isReactWarning,s?i.props.ref:i.props.ref||i.ref)}function Dd(i){var a,s,r="";if(typeof i=="string"||typeof i=="number")r+=i;else if(typeof i=="object")if(Array.isArray(i)){var c=i.length;for(a=0;a<c;a++)i[a]&&(s=Dd(i[a]))&&(r&&(r+=" "),r+=s)}else for(s in i)i[s]&&(r&&(r+=" "),r+=s);return r}function wd(){for(var i,a,s=0,r="",c=arguments.length;s<c;s++)(i=arguments[s])&&(a=Dd(i))&&(r&&(r+=" "),r+=a);return r}const Od=i=>typeof i=="boolean"?`${i}`:i===0?"0":i,zd=wd,A1=(i,a)=>s=>{var r;if(a?.variants==null)return zd(i,s?.class,s?.className);const{variants:c,defaultVariants:f}=a,d=Object.keys(c).map(p=>{const v=s?.[p],b=f?.[p];if(v===null)return null;const S=Od(v)||Od(b);return c[p][S]}),m=s&&Object.entries(s).reduce((p,v)=>{let[b,S]=v;return S===void 0||(p[b]=S),p},{}),g=a==null||(r=a.compoundVariants)===null||r===void 0?void 0:r.reduce((p,v)=>{let{class:b,className:S,...C}=v;return Object.entries(C).every(U=>{let[O,B]=U;return Array.isArray(B)?B.includes({...f,...m}[O]):{...f,...m}[O]===B})?[...p,b,S]:p},[]);return zd(i,d,g,s?.class,s?.className)},uo="-",T1=i=>{const a=C1(i),{conflictingClassGroups:s,conflictingClassGroupModifiers:r}=i;return{getClassGroupId:d=>{const m=d.split(uo);return m[0]===""&&m.length!==1&&m.shift(),Rd(m,a)||E1(d)},getConflictingClassGroupIds:(d,m)=>{const g=s[d]||[];return m&&r[d]?[...g,...r[d]]:g}}},Rd=(i,a)=>{if(i.length===0)return a.classGroupId;const s=i[0],r=a.nextPart.get(s),c=r?Rd(i.slice(1),r):void 0;if(c)return c;if(a.validators.length===0)return;const f=i.join(uo);return a.validators.find(({validator:d})=>d(f))?.classGroupId},_d=/^\[(.+)\]$/,E1=i=>{if(_d.test(i)){const a=_d.exec(i)[1],s=a?.substring(0,a.indexOf(":"));if(s)return"arbitrary.."+s}},C1=i=>{const{theme:a,prefix:s}=i,r={nextPart:new Map,validators:[]};return D1(Object.entries(i.classGroups),s).forEach(([f,d])=>{co(d,r,f,a)}),r},co=(i,a,s,r)=>{i.forEach(c=>{if(typeof c=="string"){const f=c===""?a:jd(a,c);f.classGroupId=s;return}if(typeof c=="function"){if(M1(c)){co(c(r),a,s,r);return}a.validators.push({validator:c,classGroupId:s});return}Object.entries(c).forEach(([f,d])=>{co(d,jd(a,f),s,r)})})},jd=(i,a)=>{let s=i;return a.split(uo).forEach(r=>{s.nextPart.has(r)||s.nextPart.set(r,{nextPart:new Map,validators:[]}),s=s.nextPart.get(r)}),s},M1=i=>i.isThemeGetter,D1=(i,a)=>a?i.map(([s,r])=>{const c=r.map(f=>typeof f=="string"?a+f:typeof f=="object"?Object.fromEntries(Object.entries(f).map(([d,m])=>[a+d,m])):f);return[s,c]}):i,w1=i=>{if(i<1)return{get:()=>{},set:()=>{}};let a=0,s=new Map,r=new Map;const c=(f,d)=>{s.set(f,d),a++,a>i&&(a=0,r=s,s=new Map)};return{get(f){let d=s.get(f);if(d!==void 0)return d;if((d=r.get(f))!==void 0)return c(f,d),d},set(f,d){s.has(f)?s.set(f,d):c(f,d)}}},Vd="!",O1=i=>{const{separator:a,experimentalParseClassName:s}=i,r=a.length===1,c=a[0],f=a.length,d=m=>{const g=[];let p=0,v=0,b;for(let B=0;B<m.length;B++){let G=m[B];if(p===0){if(G===c&&(r||m.slice(B,B+f)===a)){g.push(m.slice(v,B)),v=B+f;continue}if(G==="/"){b=B;continue}}G==="["?p++:G==="]"&&p--}const S=g.length===0?m:m.substring(v),C=S.startsWith(Vd),U=C?S.substring(1):S,O=b&&b>v?b-v:void 0;return{modifiers:g,hasImportantModifier:C,baseClassName:U,maybePostfixModifierPosition:O}};return s?m=>s({className:m,parseClassName:d}):d},z1=i=>{if(i.length<=1)return i;const a=[];let s=[];return i.forEach(r=>{r[0]==="["?(a.push(...s.sort(),r),s=[]):s.push(r)}),a.push(...s.sort()),a},R1=i=>({cache:w1(i.cacheSize),parseClassName:O1(i),...T1(i)}),_1=/\s+/,j1=(i,a)=>{const{parseClassName:s,getClassGroupId:r,getConflictingClassGroupIds:c}=a,f=[],d=i.trim().split(_1);let m="";for(let g=d.length-1;g>=0;g-=1){const p=d[g],{modifiers:v,hasImportantModifier:b,baseClassName:S,maybePostfixModifierPosition:C}=s(p);let U=!!C,O=r(U?S.substring(0,C):S);if(!O){if(!U){m=p+(m.length>0?" "+m:m);continue}if(O=r(S),!O){m=p+(m.length>0?" "+m:m);continue}U=!1}const B=z1(v).join(":"),G=b?B+Vd:B,Z=G+O;if(f.includes(Z))continue;f.push(Z);const k=c(O,U);for(let $=0;$<k.length;++$){const J=k[$];f.push(G+J)}m=p+(m.length>0?" "+m:m)}return m};function V1(){let i=0,a,s,r="";for(;i<arguments.length;)(a=arguments[i++])&&(s=Ud(a))&&(r&&(r+=" "),r+=s);return r}const Ud=i=>{if(typeof i=="string")return i;let a,s="";for(let r=0;r<i.length;r++)i[r]&&(a=Ud(i[r]))&&(s&&(s+=" "),s+=a);return s};function U1(i,...a){let s,r,c,f=d;function d(g){const p=a.reduce((v,b)=>b(v),i());return s=R1(p),r=s.cache.get,c=s.cache.set,f=m,m(g)}function m(g){const p=r(g);if(p)return p;const v=j1(g,s);return c(g,v),v}return function(){return f(V1.apply(null,arguments))}}const _t=i=>{const a=s=>s[i]||[];return a.isThemeGetter=!0,a},Ld=/^\[(?:([a-z-]+):)?(.+)\]$/i,L1=/^\d+\/\d+$/,N1=new Set(["px","full","screen"]),B1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,H1=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,q1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,G1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Y1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ln=i=>Li(i)||N1.has(i)||L1.test(i),Rn=i=>Ni(i,"length",P1),Li=i=>!!i&&!Number.isNaN(Number(i)),fo=i=>Ni(i,"number",Li),Ba=i=>!!i&&Number.isInteger(Number(i)),X1=i=>i.endsWith("%")&&Li(i.slice(0,-1)),dt=i=>Ld.test(i),_n=i=>B1.test(i),Q1=new Set(["length","size","percentage"]),K1=i=>Ni(i,Q1,Nd),Z1=i=>Ni(i,"position",Nd),k1=new Set(["image","url"]),J1=i=>Ni(i,k1,I1),F1=i=>Ni(i,"",W1),Ha=()=>!0,Ni=(i,a,s)=>{const r=Ld.exec(i);return r?r[1]?typeof a=="string"?r[1]===a:a.has(r[1]):s(r[2]):!1},P1=i=>H1.test(i)&&!q1.test(i),Nd=()=>!1,W1=i=>G1.test(i),I1=i=>Y1.test(i),$1=U1(()=>{const i=_t("colors"),a=_t("spacing"),s=_t("blur"),r=_t("brightness"),c=_t("borderColor"),f=_t("borderRadius"),d=_t("borderSpacing"),m=_t("borderWidth"),g=_t("contrast"),p=_t("grayscale"),v=_t("hueRotate"),b=_t("invert"),S=_t("gap"),C=_t("gradientColorStops"),U=_t("gradientColorStopPositions"),O=_t("inset"),B=_t("margin"),G=_t("opacity"),Z=_t("padding"),k=_t("saturate"),$=_t("scale"),J=_t("sepia"),at=_t("skew"),P=_t("space"),tt=_t("translate"),mt=()=>["auto","contain","none"],Rt=()=>["auto","hidden","clip","visible","scroll"],Lt=()=>["auto",dt,a],ct=()=>[dt,a],he=()=>["",ln,Rn],It=()=>["auto",Li,dt],N=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],E=()=>["solid","dashed","dotted","double","none"],R=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],F=()=>["","0",dt],lt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>[Li,dt];return{cacheSize:500,separator:":",theme:{colors:[Ha],spacing:[ln,Rn],blur:["none","",_n,dt],brightness:A(),borderColor:[i],borderRadius:["none","","full",_n,dt],borderSpacing:ct(),borderWidth:he(),contrast:A(),grayscale:F(),hueRotate:A(),invert:F(),gap:ct(),gradientColorStops:[i],gradientColorStopPositions:[X1,Rn],inset:Lt(),margin:Lt(),opacity:A(),padding:ct(),saturate:A(),scale:A(),sepia:F(),skew:A(),space:ct(),translate:ct()},classGroups:{aspect:[{aspect:["auto","square","video",dt]}],container:["container"],columns:[{columns:[_n]}],"break-after":[{"break-after":lt()}],"break-before":[{"break-before":lt()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...N(),dt]}],overflow:[{overflow:Rt()}],"overflow-x":[{"overflow-x":Rt()}],"overflow-y":[{"overflow-y":Rt()}],overscroll:[{overscroll:mt()}],"overscroll-x":[{"overscroll-x":mt()}],"overscroll-y":[{"overscroll-y":mt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[O]}],"inset-x":[{"inset-x":[O]}],"inset-y":[{"inset-y":[O]}],start:[{start:[O]}],end:[{end:[O]}],top:[{top:[O]}],right:[{right:[O]}],bottom:[{bottom:[O]}],left:[{left:[O]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ba,dt]}],basis:[{basis:Lt()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",dt]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:["first","last","none",Ba,dt]}],"grid-cols":[{"grid-cols":[Ha]}],"col-start-end":[{col:["auto",{span:["full",Ba,dt]},dt]}],"col-start":[{"col-start":It()}],"col-end":[{"col-end":It()}],"grid-rows":[{"grid-rows":[Ha]}],"row-start-end":[{row:["auto",{span:[Ba,dt]},dt]}],"row-start":[{"row-start":It()}],"row-end":[{"row-end":It()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",dt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",dt]}],gap:[{gap:[S]}],"gap-x":[{"gap-x":[S]}],"gap-y":[{"gap-y":[S]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[Z]}],px:[{px:[Z]}],py:[{py:[Z]}],ps:[{ps:[Z]}],pe:[{pe:[Z]}],pt:[{pt:[Z]}],pr:[{pr:[Z]}],pb:[{pb:[Z]}],pl:[{pl:[Z]}],m:[{m:[B]}],mx:[{mx:[B]}],my:[{my:[B]}],ms:[{ms:[B]}],me:[{me:[B]}],mt:[{mt:[B]}],mr:[{mr:[B]}],mb:[{mb:[B]}],ml:[{ml:[B]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",dt,a]}],"min-w":[{"min-w":[dt,a,"min","max","fit"]}],"max-w":[{"max-w":[dt,a,"none","full","min","max","fit","prose",{screen:[_n]},_n]}],h:[{h:[dt,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[dt,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[dt,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[dt,a,"auto","min","max","fit"]}],"font-size":[{text:["base",_n,Rn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",fo]}],"font-family":[{font:[Ha]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",dt]}],"line-clamp":[{"line-clamp":["none",Li,fo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ln,dt]}],"list-image":[{"list-image":["none",dt]}],"list-style-type":[{list:["none","disc","decimal",dt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[i]}],"placeholder-opacity":[{"placeholder-opacity":[G]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[i]}],"text-opacity":[{"text-opacity":[G]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...E(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ln,Rn]}],"underline-offset":[{"underline-offset":["auto",ln,dt]}],"text-decoration-color":[{decoration:[i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ct()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",dt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",dt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[G]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...N(),Z1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",K1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},J1]}],"bg-color":[{bg:[i]}],"gradient-from-pos":[{from:[U]}],"gradient-via-pos":[{via:[U]}],"gradient-to-pos":[{to:[U]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[f]}],"rounded-s":[{"rounded-s":[f]}],"rounded-e":[{"rounded-e":[f]}],"rounded-t":[{"rounded-t":[f]}],"rounded-r":[{"rounded-r":[f]}],"rounded-b":[{"rounded-b":[f]}],"rounded-l":[{"rounded-l":[f]}],"rounded-ss":[{"rounded-ss":[f]}],"rounded-se":[{"rounded-se":[f]}],"rounded-ee":[{"rounded-ee":[f]}],"rounded-es":[{"rounded-es":[f]}],"rounded-tl":[{"rounded-tl":[f]}],"rounded-tr":[{"rounded-tr":[f]}],"rounded-br":[{"rounded-br":[f]}],"rounded-bl":[{"rounded-bl":[f]}],"border-w":[{border:[m]}],"border-w-x":[{"border-x":[m]}],"border-w-y":[{"border-y":[m]}],"border-w-s":[{"border-s":[m]}],"border-w-e":[{"border-e":[m]}],"border-w-t":[{"border-t":[m]}],"border-w-r":[{"border-r":[m]}],"border-w-b":[{"border-b":[m]}],"border-w-l":[{"border-l":[m]}],"border-opacity":[{"border-opacity":[G]}],"border-style":[{border:[...E(),"hidden"]}],"divide-x":[{"divide-x":[m]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[m]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[G]}],"divide-style":[{divide:E()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-s":[{"border-s":[c]}],"border-color-e":[{"border-e":[c]}],"border-color-t":[{"border-t":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-l":[{"border-l":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:["",...E()]}],"outline-offset":[{"outline-offset":[ln,dt]}],"outline-w":[{outline:[ln,Rn]}],"outline-color":[{outline:[i]}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[i]}],"ring-opacity":[{"ring-opacity":[G]}],"ring-offset-w":[{"ring-offset":[ln,Rn]}],"ring-offset-color":[{"ring-offset":[i]}],shadow:[{shadow:["","inner","none",_n,F1]}],"shadow-color":[{shadow:[Ha]}],opacity:[{opacity:[G]}],"mix-blend":[{"mix-blend":[...R(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":R()}],filter:[{filter:["","none"]}],blur:[{blur:[s]}],brightness:[{brightness:[r]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",_n,dt]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[v]}],invert:[{invert:[b]}],saturate:[{saturate:[k]}],sepia:[{sepia:[J]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[s]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[G]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",dt]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",dt]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",dt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[$]}],"scale-x":[{"scale-x":[$]}],"scale-y":[{"scale-y":[$]}],rotate:[{rotate:[Ba,dt]}],"translate-x":[{"translate-x":[tt]}],"translate-y":[{"translate-y":[tt]}],"skew-x":[{"skew-x":[at]}],"skew-y":[{"skew-y":[at]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",dt]}],accent:[{accent:["auto",i]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",dt]}],"caret-color":[{caret:[i]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ct()}],"scroll-mx":[{"scroll-mx":ct()}],"scroll-my":[{"scroll-my":ct()}],"scroll-ms":[{"scroll-ms":ct()}],"scroll-me":[{"scroll-me":ct()}],"scroll-mt":[{"scroll-mt":ct()}],"scroll-mr":[{"scroll-mr":ct()}],"scroll-mb":[{"scroll-mb":ct()}],"scroll-ml":[{"scroll-ml":ct()}],"scroll-p":[{"scroll-p":ct()}],"scroll-px":[{"scroll-px":ct()}],"scroll-py":[{"scroll-py":ct()}],"scroll-ps":[{"scroll-ps":ct()}],"scroll-pe":[{"scroll-pe":ct()}],"scroll-pt":[{"scroll-pt":ct()}],"scroll-pr":[{"scroll-pr":ct()}],"scroll-pb":[{"scroll-pb":ct()}],"scroll-pl":[{"scroll-pl":ct()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",dt]}],fill:[{fill:[i,"none"]}],"stroke-w":[{stroke:[ln,Rn,fo]}],stroke:[{stroke:[i,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});const t2=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Bd=(...i)=>i.filter((a,s,r)=>!!a&&a.trim()!==""&&r.indexOf(a)===s).join(" ").trim();var e2={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const n2=V.forwardRef(({color:i="currentColor",size:a=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:c="",children:f,iconNode:d,...m},g)=>V.createElement("svg",{ref:g,...e2,width:a,height:a,stroke:i,strokeWidth:r?Number(s)*24/Number(a):s,className:Bd("lucide",c),...m},[...d.map(([p,v])=>V.createElement(p,v)),...Array.isArray(f)?f:[f]]));const Hd=(i,a)=>{const s=V.forwardRef(({className:r,...c},f)=>V.createElement(n2,{ref:f,iconNode:a,className:Bd(`lucide-${t2(i)}`,r),...c}));return s.displayName=`${i}`,s};const i2=Hd("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);const a2=Hd("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),ho=V.createContext({});function mo(i){const a=V.useRef(null);return a.current===null&&(a.current=i()),a.current}const qa=V.createContext(null),po=V.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});class l2 extends V.Component{getSnapshotBeforeUpdate(a){const s=this.props.childRef.current;if(s&&a.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=s.offsetHeight||0,r.width=s.offsetWidth||0,r.top=s.offsetTop,r.left=s.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function s2({children:i,isPresent:a}){const s=V.useId(),r=V.useRef(null),c=V.useRef({width:0,height:0,top:0,left:0}),{nonce:f}=V.useContext(po);return V.useInsertionEffect(()=>{const{width:d,height:m,top:g,left:p}=c.current;if(a||!r.current||!d||!m)return;r.current.dataset.motionPopId=s;const v=document.createElement("style");return f&&(v.nonce=f),document.head.appendChild(v),v.sheet&&v.sheet.insertRule(`
19
19
  [data-motion-pop-id="${s}"] {
20
20
  position: absolute !important;
21
21
  width: ${d}px !important;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alistigo/artifact-list",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "Mikael Labrut",
@@ -40,14 +40,14 @@
40
40
  "@lingui/react": "^6.0.0",
41
41
  "react": "^19.2.5",
42
42
  "react-dom": "^19.2.5",
43
- "@alistigo/artifact-core-components-react": "0.3.2",
44
- "@alistigo/artifact-core": "0.2.3",
45
- "@alistigo/artifact-plugin-api": "0.2.1",
46
- "@alistigo/list-document-editor": "0.2.13",
47
- "@alistigo/list-document-format": "0.2.13",
48
- "@alistigo/list-domain": "0.2.13",
49
- "@alistigo/list-components-react": "0.2.14",
50
- "@alistigo/logger": "0.2.13"
43
+ "@alistigo/artifact-core": "0.2.4",
44
+ "@alistigo/artifact-core-components-react": "0.3.3",
45
+ "@alistigo/list-document-editor": "0.2.14",
46
+ "@alistigo/list-document-format": "0.2.14",
47
+ "@alistigo/artifact-plugin-api": "0.2.2",
48
+ "@alistigo/list-components-react": "0.2.15",
49
+ "@alistigo/logger": "0.2.14",
50
+ "@alistigo/list-domain": "0.2.14"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@lingui/babel-plugin-lingui-macro": "^6.0.0",