@opencx/widget 2.4.0 → 2.4.1
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/README.md +30 -30
- package/dist/basic.cjs +1 -1
- package/dist/basic.cjs.map +1 -1
- package/dist/basic.js +1 -1
- package/dist/basic.js.map +1 -1
- package/dist/{index-CgATAy4r.js → index-Cdz5xDDT.js} +2 -2
- package/dist/index-Cdz5xDDT.js.map +1 -0
- package/dist/{index-BDLPOpfl.cjs → index-CtriTKQi.cjs} +2 -2
- package/dist/index-CtriTKQi.cjs.map +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/dist/schemas-BBAV6Sd_.js.map +1 -1
- package/dist/schemas-wky4fpbc.cjs.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist-embed/script.js +1 -1
- package/dist-embed/script.js.map +1 -1
- package/package.json +1 -1
- package/dist/index-BDLPOpfl.cjs.map +0 -1
- package/dist/index-CgATAy4r.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
# The one and only chat widget for open
|
|
2
|
-
|
|
3
|
-
## How to Get Started
|
|
4
|
-
|
|
5
|
-
### 1. Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
pnpm add @opencx/widget
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
### 2. Imports
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { Widget, WidgetRoot } from "@opencx/widget/basic";
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
### 3. Usage
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
<WidgetRoot options={options}>
|
|
21
|
-
<Widget />
|
|
22
|
-
</WidgetRoot>
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
`WidgetRoot` is just the data layer for the widget. It is required to be present in the parent component of the widget.
|
|
26
|
-
You can Pass [options](./react-
|
|
27
|
-
|
|
28
|
-
## I don't want your UI? can I use my own?
|
|
29
|
-
|
|
30
|
-
Yes, everything in this lib is exported so you can build your own UI on top of it. Check out `core` and `react-lib` directories.
|
|
1
|
+
# The one and only chat widget for open
|
|
2
|
+
|
|
3
|
+
## How to Get Started
|
|
4
|
+
|
|
5
|
+
### 1. Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @opencx/widget
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### 2. Imports
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Widget, WidgetRoot } from "@opencx/widget/basic";
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### 3. Usage
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
<WidgetRoot options={options}>
|
|
21
|
+
<Widget />
|
|
22
|
+
</WidgetRoot>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
`WidgetRoot` is just the data layer for the widget. It is required to be present in the parent component of the widget.
|
|
26
|
+
You can Pass [options](./react-web/types/options.ts) to the `WidgetRoot` component to customize the widget.
|
|
27
|
+
|
|
28
|
+
## I don't want your UI? can I use my own?
|
|
29
|
+
|
|
30
|
+
Yes, everything in this lib is exported so you can build your own UI on top of it. Check out `core` and `react-lib` directories.
|
package/dist/basic.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("react/jsx-runtime"),Et=require("./index-BDLPOpfl.cjs"),ML=require("@radix-ui/react-tooltip"),gt=require("react"),$A=require("clsx"),PL=require("@radix-ui/react-avatar"),rr=require("framer-motion"),JC=require("tinycolor2"),PT=require("@radix-ui/react-slot"),cn=require("lucide-react"),FL=require("date-fns"),UL=require("@radix-ui/react-dropdown-menu"),BL=require("@radix-ui/react-switch"),HL=require("react-dropzone"),e_=require("react-hot-toast"),zL=require("./schemas-wky4fpbc.cjs"),Nw=require("zod");function Fm(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return n.default=e,Object.freeze(n)}const Um=Fm(ML),ie=Fm(gt),$f=Fm(PL),qn=Fm(UL),sT=Fm(BL),jL="[data-chat-widget-content-root]";function GA({fallbackHeight:e}){const n=gt.useRef(null);return gt.useEffect(()=>{const a=document.querySelector(jL);if(a&&n.current){const s=n.current;let f;const p=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{const d=Math.max(s.offsetHeight,e);a.style.setProperty("--opencx-widget-height",d.toFixed(1)+"px")})});return p.observe(s),()=>{cancelAnimationFrame(f),p.unobserve(s)}}},[]),{observedElementRef:n}}const FT="-",VL=e=>{const n=WL(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:d=>{const g=d.split(FT);return g[0]===""&&g.length!==1&&g.shift(),XA(g,n)||YL(d)},getConflictingClassGroupIds:(d,g)=>{const E=a[d]||[];return g&&s[d]?[...E,...s[d]]:E}}},XA=(e,n)=>{var d;if(e.length===0)return n.classGroupId;const a=e[0],s=n.nextPart.get(a),f=s?XA(e.slice(1),s):void 0;if(f)return f;if(n.validators.length===0)return;const p=e.join(FT);return(d=n.validators.find(({validator:g})=>g(p)))==null?void 0:d.classGroupId},t_=/^\[(.+)\]$/,YL=e=>{if(t_.test(e)){const n=t_.exec(e)[1],a=n==null?void 0:n.substring(0,n.indexOf(":"));if(a)return"arbitrary.."+a}},WL=e=>{const{theme:n,prefix:a}=e,s={nextPart:new Map,validators:[]};return QL(Object.entries(e.classGroups),a).forEach(([p,d])=>{lT(d,s,p,n)}),s},lT=(e,n,a,s)=>{e.forEach(f=>{if(typeof f=="string"){const p=f===""?n:n_(n,f);p.classGroupId=a;return}if(typeof f=="function"){if(qL(f)){lT(f(s),n,a,s);return}n.validators.push({validator:f,classGroupId:a});return}Object.entries(f).forEach(([p,d])=>{lT(d,n_(n,p),a,s)})})},n_=(e,n)=>{let a=e;return n.split(FT).forEach(s=>{a.nextPart.has(s)||a.nextPart.set(s,{nextPart:new Map,validators:[]}),a=a.nextPart.get(s)}),a},qL=e=>e.isThemeGetter,QL=(e,n)=>n?e.map(([a,s])=>{const f=s.map(p=>typeof p=="string"?n+p:typeof p=="object"?Object.fromEntries(Object.entries(p).map(([d,g])=>[n+d,g])):p);return[a,f]}):e,$L=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,a=new Map,s=new Map;const f=(p,d)=>{a.set(p,d),n++,n>e&&(n=0,s=a,a=new Map)};return{get(p){let d=a.get(p);if(d!==void 0)return d;if((d=s.get(p))!==void 0)return f(p,d),d},set(p,d){a.has(p)?a.set(p,d):f(p,d)}}},KA="!",GL=e=>{const{separator:n,experimentalParseClassName:a}=e,s=n.length===1,f=n[0],p=n.length,d=g=>{const E=[];let b=0,C=0,S;for(let B=0;B<g.length;B++){let z=g[B];if(b===0){if(z===f&&(s||g.slice(B,B+p)===n)){E.push(g.slice(C,B)),C=B+p;continue}if(z==="/"){S=B;continue}}z==="["?b++:z==="]"&&b--}const R=E.length===0?g:g.substring(C),A=R.startsWith(KA),D=A?R.substring(1):R,L=S&&S>C?S-C:void 0;return{modifiers:E,hasImportantModifier:A,baseClassName:D,maybePostfixModifierPosition:L}};return a?g=>a({className:g,parseClassName:d}):d},XL=e=>{if(e.length<=1)return e;const n=[];let a=[];return e.forEach(s=>{s[0]==="["?(n.push(...a.sort(),s),a=[]):a.push(s)}),n.push(...a.sort()),n},KL=e=>({cache:$L(e.cacheSize),parseClassName:GL(e),...VL(e)}),ZL=/\s+/,JL=(e,n)=>{const{parseClassName:a,getClassGroupId:s,getConflictingClassGroupIds:f}=n,p=[],d=e.trim().split(ZL);let g="";for(let E=d.length-1;E>=0;E-=1){const b=d[E],{modifiers:C,hasImportantModifier:S,baseClassName:R,maybePostfixModifierPosition:A}=a(b);let D=!!A,L=s(D?R.substring(0,A):R);if(!L){if(!D){g=b+(g.length>0?" "+g:g);continue}if(L=s(R),!L){g=b+(g.length>0?" "+g:g);continue}D=!1}const B=XL(C).join(":"),z=S?B+KA:B,G=z+L;if(p.includes(G))continue;p.push(G);const W=f(L,D);for(let Z=0;Z<W.length;++Z){const J=W[Z];p.push(z+J)}g=b+(g.length>0?" "+g:g)}return g};function e5(){let e=0,n,a,s="";for(;e<arguments.length;)(n=arguments[e++])&&(a=ZA(n))&&(s&&(s+=" "),s+=a);return s}const ZA=e=>{if(typeof e=="string")return e;let n,a="";for(let s=0;s<e.length;s++)e[s]&&(n=ZA(e[s]))&&(a&&(a+=" "),a+=n);return a};function t5(e,...n){let a,s,f,p=d;function d(E){const b=n.reduce((C,S)=>S(C),e());return a=KL(b),s=a.cache.get,f=a.cache.set,p=g,g(E)}function g(E){const b=s(E);if(b)return b;const C=JL(E,a);return f(E,C),C}return function(){return p(e5.apply(null,arguments))}}const mn=e=>{const n=a=>a[e]||[];return n.isThemeGetter=!0,n},JA=/^\[(?:([a-z-]+):)?(.+)\]$/i,n5=/^\d+\/\d+$/,r5=new Set(["px","full","screen"]),a5=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,i5=/\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$/,o5=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,u5=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,s5=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Lu=e=>Bf(e)||r5.has(e)||n5.test(e),Qs=e=>Gf(e,"length",g5),Bf=e=>!!e&&!Number.isNaN(Number(e)),Dw=e=>Gf(e,"number",Bf),ym=e=>!!e&&Number.isInteger(Number(e)),l5=e=>e.endsWith("%")&&Bf(e.slice(0,-1)),xt=e=>JA.test(e),$s=e=>a5.test(e),c5=new Set(["length","size","percentage"]),d5=e=>Gf(e,c5,ek),f5=e=>Gf(e,"position",ek),h5=new Set(["image","url"]),p5=e=>Gf(e,h5,y5),m5=e=>Gf(e,"",v5),Em=()=>!0,Gf=(e,n,a)=>{const s=JA.exec(e);return s?s[1]?typeof n=="string"?s[1]===n:n.has(s[1]):a(s[2]):!1},g5=e=>i5.test(e)&&!o5.test(e),ek=()=>!1,v5=e=>u5.test(e),y5=e=>s5.test(e),E5=()=>{const e=mn("colors"),n=mn("spacing"),a=mn("blur"),s=mn("brightness"),f=mn("borderColor"),p=mn("borderRadius"),d=mn("borderSpacing"),g=mn("borderWidth"),E=mn("contrast"),b=mn("grayscale"),C=mn("hueRotate"),S=mn("invert"),R=mn("gap"),A=mn("gradientColorStops"),D=mn("gradientColorStopPositions"),L=mn("inset"),B=mn("margin"),z=mn("opacity"),G=mn("padding"),W=mn("saturate"),Z=mn("scale"),J=mn("sepia"),X=mn("skew"),ce=mn("space"),Te=mn("translate"),Me=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],Ee=()=>["auto",xt,n],ge=()=>[xt,n],Re=()=>["",Lu,Qs],Oe=()=>["auto",Bf,xt],qe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],je=()=>["solid","dashed","dotted","double","none"],at=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>["start","end","center","between","around","evenly","stretch"],De=()=>["","0",xt],P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],et=()=>[Bf,xt];return{cacheSize:500,separator:":",theme:{colors:[Em],spacing:[Lu,Qs],blur:["none","",$s,xt],brightness:et(),borderColor:[e],borderRadius:["none","","full",$s,xt],borderSpacing:ge(),borderWidth:Re(),contrast:et(),grayscale:De(),hueRotate:et(),invert:De(),gap:ge(),gradientColorStops:[e],gradientColorStopPositions:[l5,Qs],inset:Ee(),margin:Ee(),opacity:et(),padding:ge(),saturate:et(),scale:et(),sepia:De(),skew:et(),space:ge(),translate:ge()},classGroups:{aspect:[{aspect:["auto","square","video",xt]}],container:["container"],columns:[{columns:[$s]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"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:[...qe(),xt]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:Me()}],"overscroll-x":[{"overscroll-x":Me()}],"overscroll-y":[{"overscroll-y":Me()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[L]}],"inset-x":[{"inset-x":[L]}],"inset-y":[{"inset-y":[L]}],start:[{start:[L]}],end:[{end:[L]}],top:[{top:[L]}],right:[{right:[L]}],bottom:[{bottom:[L]}],left:[{left:[L]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ym,xt]}],basis:[{basis:Ee()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",xt]}],grow:[{grow:De()}],shrink:[{shrink:De()}],order:[{order:["first","last","none",ym,xt]}],"grid-cols":[{"grid-cols":[Em]}],"col-start-end":[{col:["auto",{span:["full",ym,xt]},xt]}],"col-start":[{"col-start":Oe()}],"col-end":[{"col-end":Oe()}],"grid-rows":[{"grid-rows":[Em]}],"row-start-end":[{row:["auto",{span:[ym,xt]},xt]}],"row-start":[{"row-start":Oe()}],"row-end":[{"row-end":Oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",xt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",xt]}],gap:[{gap:[R]}],"gap-x":[{"gap-x":[R]}],"gap-y":[{"gap-y":[R]}],"justify-content":[{justify:["normal",...pe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...pe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...pe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[G]}],px:[{px:[G]}],py:[{py:[G]}],ps:[{ps:[G]}],pe:[{pe:[G]}],pt:[{pt:[G]}],pr:[{pr:[G]}],pb:[{pb:[G]}],pl:[{pl:[G]}],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":[ce]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ce]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",xt,n]}],"min-w":[{"min-w":[xt,n,"min","max","fit"]}],"max-w":[{"max-w":[xt,n,"none","full","min","max","fit","prose",{screen:[$s]},$s]}],h:[{h:[xt,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[xt,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[xt,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[xt,n,"auto","min","max","fit"]}],"font-size":[{text:["base",$s,Qs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Dw]}],"font-family":[{font:[Em]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",xt]}],"line-clamp":[{"line-clamp":["none",Bf,Dw]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Lu,xt]}],"list-image":[{"list-image":["none",xt]}],"list-style-type":[{list:["none","disc","decimal",xt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[z]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...je(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Lu,Qs]}],"underline-offset":[{"underline-offset":["auto",Lu,xt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ge()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xt]}],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",xt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[z]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...qe(),f5]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",d5]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},p5]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[D]}],"gradient-via-pos":[{via:[D]}],"gradient-to-pos":[{to:[D]}],"gradient-from":[{from:[A]}],"gradient-via":[{via:[A]}],"gradient-to":[{to:[A]}],rounded:[{rounded:[p]}],"rounded-s":[{"rounded-s":[p]}],"rounded-e":[{"rounded-e":[p]}],"rounded-t":[{"rounded-t":[p]}],"rounded-r":[{"rounded-r":[p]}],"rounded-b":[{"rounded-b":[p]}],"rounded-l":[{"rounded-l":[p]}],"rounded-ss":[{"rounded-ss":[p]}],"rounded-se":[{"rounded-se":[p]}],"rounded-ee":[{"rounded-ee":[p]}],"rounded-es":[{"rounded-es":[p]}],"rounded-tl":[{"rounded-tl":[p]}],"rounded-tr":[{"rounded-tr":[p]}],"rounded-br":[{"rounded-br":[p]}],"rounded-bl":[{"rounded-bl":[p]}],"border-w":[{border:[g]}],"border-w-x":[{"border-x":[g]}],"border-w-y":[{"border-y":[g]}],"border-w-s":[{"border-s":[g]}],"border-w-e":[{"border-e":[g]}],"border-w-t":[{"border-t":[g]}],"border-w-r":[{"border-r":[g]}],"border-w-b":[{"border-b":[g]}],"border-w-l":[{"border-l":[g]}],"border-opacity":[{"border-opacity":[z]}],"border-style":[{border:[...je(),"hidden"]}],"divide-x":[{"divide-x":[g]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[g]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[z]}],"divide-style":[{divide:je()}],"border-color":[{border:[f]}],"border-color-x":[{"border-x":[f]}],"border-color-y":[{"border-y":[f]}],"border-color-s":[{"border-s":[f]}],"border-color-e":[{"border-e":[f]}],"border-color-t":[{"border-t":[f]}],"border-color-r":[{"border-r":[f]}],"border-color-b":[{"border-b":[f]}],"border-color-l":[{"border-l":[f]}],"divide-color":[{divide:[f]}],"outline-style":[{outline:["",...je()]}],"outline-offset":[{"outline-offset":[Lu,xt]}],"outline-w":[{outline:[Lu,Qs]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[z]}],"ring-offset-w":[{"ring-offset":[Lu,Qs]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$s,m5]}],"shadow-color":[{shadow:[Em]}],opacity:[{opacity:[z]}],"mix-blend":[{"mix-blend":[...at(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":at()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[s]}],contrast:[{contrast:[E]}],"drop-shadow":[{"drop-shadow":["","none",$s,xt]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[C]}],invert:[{invert:[S]}],saturate:[{saturate:[W]}],sepia:[{sepia:[J]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[E]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C]}],"backdrop-invert":[{"backdrop-invert":[S]}],"backdrop-opacity":[{"backdrop-opacity":[z]}],"backdrop-saturate":[{"backdrop-saturate":[W]}],"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",xt]}],duration:[{duration:et()}],ease:[{ease:["linear","in","out","in-out",xt]}],delay:[{delay:et()}],animate:[{animate:["none","spin","ping","pulse","bounce",xt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Z]}],"scale-x":[{"scale-x":[Z]}],"scale-y":[{"scale-y":[Z]}],rotate:[{rotate:[ym,xt]}],"translate-x":[{"translate-x":[Te]}],"translate-y":[{"translate-y":[Te]}],"skew-x":[{"skew-x":[X]}],"skew-y":[{"skew-y":[X]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",xt]}],accent:[{accent:["auto",e]}],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",xt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ge()}],"scroll-mx":[{"scroll-mx":ge()}],"scroll-my":[{"scroll-my":ge()}],"scroll-ms":[{"scroll-ms":ge()}],"scroll-me":[{"scroll-me":ge()}],"scroll-mt":[{"scroll-mt":ge()}],"scroll-mr":[{"scroll-mr":ge()}],"scroll-mb":[{"scroll-mb":ge()}],"scroll-ml":[{"scroll-ml":ge()}],"scroll-p":[{"scroll-p":ge()}],"scroll-px":[{"scroll-px":ge()}],"scroll-py":[{"scroll-py":ge()}],"scroll-ps":[{"scroll-ps":ge()}],"scroll-pe":[{"scroll-pe":ge()}],"scroll-pt":[{"scroll-pt":ge()}],"scroll-pr":[{"scroll-pr":ge()}],"scroll-pb":[{"scroll-pb":ge()}],"scroll-pl":[{"scroll-pl":ge()}],"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",xt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Lu,Qs,Dw]}],stroke:[{stroke:[e,"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"]}}},b5=t5(E5);function Lt(...e){return b5($A.clsx(e))}const w5=Um.Provider,T5=Um.Root,x5=Um.Trigger,tk=ie.forwardRef(({className:e,sideOffset:n=4,...a},s)=>U.jsx(Um.Content,{ref:s,sideOffset:n,className:Lt("z-50 overflow-hidden max-w-xs rounded-xl bg-black border text-primary-foreground p-2 text-center align-middle text-xs shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a}));tk.displayName=Um.Content.displayName;function cT({children:e,content:n,side:a,align:s}){return U.jsxs(T5,{children:[U.jsx(x5,{asChild:!0,children:e}),U.jsx(tk,{side:a,align:s,collisionPadding:8,avoidCollisions:!0,children:n})]})}function r_(e,n){const a=String(e);if(typeof n!="string")throw new TypeError("Expected character");let s=0,f=a.indexOf(n);for(;f!==-1;)s++,f=a.indexOf(n,f+n.length);return s}const Ea=ol(/[A-Za-z]/),na=ol(/[\dA-Za-z]/),S5=ol(/[#-'*+\--9=?A-Z^-~]/);function S1(e){return e!==null&&(e<32||e===127)}const dT=ol(/\d/),C5=ol(/[\dA-Fa-f]/),_5=ol(/[!-/:-@[-`{-~]/);function ut(e){return e!==null&&e<-2}function rn(e){return e!==null&&(e<0||e===32)}function Ot(e){return e===-2||e===-1||e===32}const P1=ol(new RegExp("\\p{P}|\\p{S}","u")),Ac=ol(/\s/);function ol(e){return n;function n(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function A5(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const F1=function(e){if(e==null)return D5;if(typeof e=="function")return U1(e);if(typeof e=="object")return Array.isArray(e)?k5(e):R5(e);if(typeof e=="string")return N5(e);throw new Error("Expected function, string, or object as test")};function k5(e){const n=[];let a=-1;for(;++a<e.length;)n[a]=F1(e[a]);return U1(s);function s(...f){let p=-1;for(;++p<n.length;)if(n[p].apply(this,f))return!0;return!1}}function R5(e){const n=e;return U1(a);function a(s){const f=s;let p;for(p in e)if(f[p]!==n[p])return!1;return!0}}function N5(e){return U1(n);function n(a){return a&&a.type===e}}function U1(e){return n;function n(a,s,f){return!!(O5(a)&&e.call(this,a,typeof s=="number"?s:void 0,f||void 0))}}function D5(){return!0}function O5(e){return e!==null&&typeof e=="object"&&"type"in e}const nk=[],L5=!0,fT=!1,I5="skip";function rk(e,n,a,s){let f;typeof n=="function"&&typeof a!="function"?(s=a,a=n):f=n;const p=F1(f),d=s?-1:1;g(e,void 0,[])();function g(E,b,C){const S=E&&typeof E=="object"?E:{};if(typeof S.type=="string"){const A=typeof S.tagName=="string"?S.tagName:typeof S.name=="string"?S.name:void 0;Object.defineProperty(R,"name",{value:"node ("+(E.type+(A?"<"+A+">":""))+")"})}return R;function R(){let A=nk,D,L,B;if((!n||p(E,b,C[C.length-1]||void 0))&&(A=M5(a(E,C)),A[0]===fT))return A;if("children"in E&&E.children){const z=E;if(z.children&&A[0]!==I5)for(L=(s?z.children.length:-1)+d,B=C.concat(z);L>-1&&L<z.children.length;){const G=z.children[L];if(D=g(G,L,B)(),D[0]===fT)return D;L=typeof D[1]=="number"?D[1]:L+d}}return A}}}function M5(e){return Array.isArray(e)?e:typeof e=="number"?[L5,e]:e==null?nk:[e]}function P5(e,n,a){const f=F1((a||{}).ignore||[]),p=F5(n);let d=-1;for(;++d<p.length;)rk(e,"text",g);function g(b,C){let S=-1,R;for(;++S<C.length;){const A=C[S],D=R?R.children:void 0;if(f(A,D?D.indexOf(A):void 0,R))return;R=A}if(R)return E(b,C)}function E(b,C){const S=C[C.length-1],R=p[d][0],A=p[d][1];let D=0;const B=S.children.indexOf(b);let z=!1,G=[];R.lastIndex=0;let W=R.exec(b.value);for(;W;){const Z=W.index,J={index:W.index,input:W.input,stack:[...C,b]};let X=A(...W,J);if(typeof X=="string"&&(X=X.length>0?{type:"text",value:X}:void 0),X===!1?R.lastIndex=Z+1:(D!==Z&&G.push({type:"text",value:b.value.slice(D,Z)}),Array.isArray(X)?G.push(...X):X&&G.push(X),D=Z+W[0].length,z=!0),!R.global)break;W=R.exec(b.value)}return z?(D<b.value.length&&G.push({type:"text",value:b.value.slice(D)}),S.children.splice(B,1,...G)):G=[b],B+G.length}}function F5(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const a=!e[0]||Array.isArray(e[0])?e:[e];let s=-1;for(;++s<a.length;){const f=a[s];n.push([U5(f[0]),B5(f[1])])}return n}function U5(e){return typeof e=="string"?new RegExp(A5(e),"g"):e}function B5(e){return typeof e=="function"?e:function(){return e}}const Ow="phrasing",Lw=["autolink","link","image","label"];function H5(){return{transforms:[Q5],enter:{literalAutolink:j5,literalAutolinkEmail:Iw,literalAutolinkHttp:Iw,literalAutolinkWww:Iw},exit:{literalAutolink:q5,literalAutolinkEmail:W5,literalAutolinkHttp:V5,literalAutolinkWww:Y5}}}function z5(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ow,notInConstruct:Lw},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ow,notInConstruct:Lw},{character:":",before:"[ps]",after:"\\/",inConstruct:Ow,notInConstruct:Lw}]}}function j5(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Iw(e){this.config.enter.autolinkProtocol.call(this,e)}function V5(e){this.config.exit.autolinkProtocol.call(this,e)}function Y5(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function W5(e){this.config.exit.autolinkEmail.call(this,e)}function q5(e){this.exit(e)}function Q5(e){P5(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,$5],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),G5]],{ignore:["link","linkReference"]})}function $5(e,n,a,s,f){let p="";if(!ak(f)||(/^w/i.test(n)&&(a=n+a,n="",p="http://"),!X5(a)))return!1;const d=K5(a+s);if(!d[0])return!1;const g={type:"link",title:null,url:p+n+d[0],children:[{type:"text",value:n+d[0]}]};return d[1]?[g,{type:"text",value:d[1]}]:g}function G5(e,n,a,s){return!ak(s,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+a,children:[{type:"text",value:n+"@"+a}]}}function X5(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function K5(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let a=n[0],s=a.indexOf(")");const f=r_(e,"(");let p=r_(e,")");for(;s!==-1&&f>p;)e+=a.slice(0,s+1),a=a.slice(s+1),s=a.indexOf(")"),p++;return[e,a]}function ak(e,n){const a=e.input.charCodeAt(e.index-1);return(e.index===0||Ac(a)||P1(a))&&(!n||a!==47)}function oo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}ik.peek=sI;function Z5(){return{enter:{gfmFootnoteDefinition:eI,gfmFootnoteDefinitionLabelString:tI,gfmFootnoteCall:aI,gfmFootnoteCallString:iI},exit:{gfmFootnoteDefinition:rI,gfmFootnoteDefinitionLabelString:nI,gfmFootnoteCall:uI,gfmFootnoteCallString:oI}}}function J5(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:lI,footnoteReference:ik}}}function eI(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function tI(){this.buffer()}function nI(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.label=n,a.identifier=oo(this.sliceSerialize(e)).toLowerCase()}function rI(e){this.exit(e)}function aI(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function iI(){this.buffer()}function oI(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.label=n,a.identifier=oo(this.sliceSerialize(e)).toLowerCase()}function uI(e){this.exit(e)}function ik(e,n,a,s){const f=a.createTracker(s);let p=f.move("[^");const d=a.enter("footnoteReference"),g=a.enter("reference");return p+=f.move(a.safe(a.associationId(e),{...f.current(),before:p,after:"]"})),g(),d(),p+=f.move("]"),p}function sI(){return"["}function lI(e,n,a,s){const f=a.createTracker(s);let p=f.move("[^");const d=a.enter("footnoteDefinition"),g=a.enter("label");return p+=f.move(a.safe(a.associationId(e),{...f.current(),before:p,after:"]"})),g(),p+=f.move("]:"+(e.children&&e.children.length>0?" ":"")),f.shift(4),p+=f.move(a.indentLines(a.containerFlow(e,f.current()),cI)),d(),p}function cI(e,n,a){return n===0?e:(a?"":" ")+e}const dI=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ok.peek=gI;function fI(){return{canContainEols:["delete"],enter:{strikethrough:pI},exit:{strikethrough:mI}}}function hI(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:dI}],handlers:{delete:ok}}}function pI(e){this.enter({type:"delete",children:[]},e)}function mI(e){this.exit(e)}function ok(e,n,a,s){const f=a.createTracker(s),p=a.enter("strikethrough");let d=f.move("~~");return d+=a.containerPhrasing(e,{...f.current(),before:d,after:"~"}),d+=f.move("~~"),p(),d}function gI(){return"~"}function vI(e,n={}){const a=(n.align||[]).concat(),s=n.stringLength||EI,f=[],p=[],d=[],g=[];let E=0,b=-1;for(;++b<e.length;){const D=[],L=[];let B=-1;for(e[b].length>E&&(E=e[b].length);++B<e[b].length;){const z=yI(e[b][B]);if(n.alignDelimiters!==!1){const G=s(z);L[B]=G,(g[B]===void 0||G>g[B])&&(g[B]=G)}D.push(z)}p[b]=D,d[b]=L}let C=-1;if(typeof a=="object"&&"length"in a)for(;++C<E;)f[C]=a_(a[C]);else{const D=a_(a);for(;++C<E;)f[C]=D}C=-1;const S=[],R=[];for(;++C<E;){const D=f[C];let L="",B="";D===99?(L=":",B=":"):D===108?L=":":D===114&&(B=":");let z=n.alignDelimiters===!1?1:Math.max(1,g[C]-L.length-B.length);const G=L+"-".repeat(z)+B;n.alignDelimiters!==!1&&(z=L.length+z+B.length,z>g[C]&&(g[C]=z),R[C]=z),S[C]=G}p.splice(1,0,S),d.splice(1,0,R),b=-1;const A=[];for(;++b<p.length;){const D=p[b],L=d[b];C=-1;const B=[];for(;++C<E;){const z=D[C]||"";let G="",W="";if(n.alignDelimiters!==!1){const Z=g[C]-(L[C]||0),J=f[C];J===114?G=" ".repeat(Z):J===99?Z%2?(G=" ".repeat(Z/2+.5),W=" ".repeat(Z/2-.5)):(G=" ".repeat(Z/2),W=G):W=" ".repeat(Z)}n.delimiterStart!==!1&&!C&&B.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&z==="")&&(n.delimiterStart!==!1||C)&&B.push(" "),n.alignDelimiters!==!1&&B.push(G),B.push(z),n.alignDelimiters!==!1&&B.push(W),n.padding!==!1&&B.push(" "),(n.delimiterEnd!==!1||C!==E-1)&&B.push("|")}A.push(n.delimiterEnd===!1?B.join("").replace(/ +$/,""):B.join(""))}return A.join(`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("react/jsx-runtime"),Et=require("./index-CtriTKQi.cjs"),ML=require("@radix-ui/react-tooltip"),gt=require("react"),$A=require("clsx"),PL=require("@radix-ui/react-avatar"),rr=require("framer-motion"),JC=require("tinycolor2"),PT=require("@radix-ui/react-slot"),cn=require("lucide-react"),FL=require("date-fns"),UL=require("@radix-ui/react-dropdown-menu"),BL=require("@radix-ui/react-switch"),HL=require("react-dropzone"),e_=require("react-hot-toast"),zL=require("./schemas-wky4fpbc.cjs"),Nw=require("zod");function Fm(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return n.default=e,Object.freeze(n)}const Um=Fm(ML),ie=Fm(gt),$f=Fm(PL),qn=Fm(UL),sT=Fm(BL),jL="[data-chat-widget-content-root]";function GA({fallbackHeight:e}){const n=gt.useRef(null);return gt.useEffect(()=>{const a=document.querySelector(jL);if(a&&n.current){const s=n.current;let f;const p=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{const d=Math.max(s.offsetHeight,e);a.style.setProperty("--opencx-widget-height",d.toFixed(1)+"px")})});return p.observe(s),()=>{cancelAnimationFrame(f),p.unobserve(s)}}},[]),{observedElementRef:n}}const FT="-",VL=e=>{const n=WL(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:d=>{const g=d.split(FT);return g[0]===""&&g.length!==1&&g.shift(),XA(g,n)||YL(d)},getConflictingClassGroupIds:(d,g)=>{const E=a[d]||[];return g&&s[d]?[...E,...s[d]]:E}}},XA=(e,n)=>{var d;if(e.length===0)return n.classGroupId;const a=e[0],s=n.nextPart.get(a),f=s?XA(e.slice(1),s):void 0;if(f)return f;if(n.validators.length===0)return;const p=e.join(FT);return(d=n.validators.find(({validator:g})=>g(p)))==null?void 0:d.classGroupId},t_=/^\[(.+)\]$/,YL=e=>{if(t_.test(e)){const n=t_.exec(e)[1],a=n==null?void 0:n.substring(0,n.indexOf(":"));if(a)return"arbitrary.."+a}},WL=e=>{const{theme:n,prefix:a}=e,s={nextPart:new Map,validators:[]};return QL(Object.entries(e.classGroups),a).forEach(([p,d])=>{lT(d,s,p,n)}),s},lT=(e,n,a,s)=>{e.forEach(f=>{if(typeof f=="string"){const p=f===""?n:n_(n,f);p.classGroupId=a;return}if(typeof f=="function"){if(qL(f)){lT(f(s),n,a,s);return}n.validators.push({validator:f,classGroupId:a});return}Object.entries(f).forEach(([p,d])=>{lT(d,n_(n,p),a,s)})})},n_=(e,n)=>{let a=e;return n.split(FT).forEach(s=>{a.nextPart.has(s)||a.nextPart.set(s,{nextPart:new Map,validators:[]}),a=a.nextPart.get(s)}),a},qL=e=>e.isThemeGetter,QL=(e,n)=>n?e.map(([a,s])=>{const f=s.map(p=>typeof p=="string"?n+p:typeof p=="object"?Object.fromEntries(Object.entries(p).map(([d,g])=>[n+d,g])):p);return[a,f]}):e,$L=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,a=new Map,s=new Map;const f=(p,d)=>{a.set(p,d),n++,n>e&&(n=0,s=a,a=new Map)};return{get(p){let d=a.get(p);if(d!==void 0)return d;if((d=s.get(p))!==void 0)return f(p,d),d},set(p,d){a.has(p)?a.set(p,d):f(p,d)}}},KA="!",GL=e=>{const{separator:n,experimentalParseClassName:a}=e,s=n.length===1,f=n[0],p=n.length,d=g=>{const E=[];let b=0,C=0,S;for(let B=0;B<g.length;B++){let z=g[B];if(b===0){if(z===f&&(s||g.slice(B,B+p)===n)){E.push(g.slice(C,B)),C=B+p;continue}if(z==="/"){S=B;continue}}z==="["?b++:z==="]"&&b--}const R=E.length===0?g:g.substring(C),A=R.startsWith(KA),D=A?R.substring(1):R,L=S&&S>C?S-C:void 0;return{modifiers:E,hasImportantModifier:A,baseClassName:D,maybePostfixModifierPosition:L}};return a?g=>a({className:g,parseClassName:d}):d},XL=e=>{if(e.length<=1)return e;const n=[];let a=[];return e.forEach(s=>{s[0]==="["?(n.push(...a.sort(),s),a=[]):a.push(s)}),n.push(...a.sort()),n},KL=e=>({cache:$L(e.cacheSize),parseClassName:GL(e),...VL(e)}),ZL=/\s+/,JL=(e,n)=>{const{parseClassName:a,getClassGroupId:s,getConflictingClassGroupIds:f}=n,p=[],d=e.trim().split(ZL);let g="";for(let E=d.length-1;E>=0;E-=1){const b=d[E],{modifiers:C,hasImportantModifier:S,baseClassName:R,maybePostfixModifierPosition:A}=a(b);let D=!!A,L=s(D?R.substring(0,A):R);if(!L){if(!D){g=b+(g.length>0?" "+g:g);continue}if(L=s(R),!L){g=b+(g.length>0?" "+g:g);continue}D=!1}const B=XL(C).join(":"),z=S?B+KA:B,G=z+L;if(p.includes(G))continue;p.push(G);const W=f(L,D);for(let Z=0;Z<W.length;++Z){const J=W[Z];p.push(z+J)}g=b+(g.length>0?" "+g:g)}return g};function e5(){let e=0,n,a,s="";for(;e<arguments.length;)(n=arguments[e++])&&(a=ZA(n))&&(s&&(s+=" "),s+=a);return s}const ZA=e=>{if(typeof e=="string")return e;let n,a="";for(let s=0;s<e.length;s++)e[s]&&(n=ZA(e[s]))&&(a&&(a+=" "),a+=n);return a};function t5(e,...n){let a,s,f,p=d;function d(E){const b=n.reduce((C,S)=>S(C),e());return a=KL(b),s=a.cache.get,f=a.cache.set,p=g,g(E)}function g(E){const b=s(E);if(b)return b;const C=JL(E,a);return f(E,C),C}return function(){return p(e5.apply(null,arguments))}}const mn=e=>{const n=a=>a[e]||[];return n.isThemeGetter=!0,n},JA=/^\[(?:([a-z-]+):)?(.+)\]$/i,n5=/^\d+\/\d+$/,r5=new Set(["px","full","screen"]),a5=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,i5=/\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$/,o5=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,u5=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,s5=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Lu=e=>Bf(e)||r5.has(e)||n5.test(e),Qs=e=>Gf(e,"length",g5),Bf=e=>!!e&&!Number.isNaN(Number(e)),Dw=e=>Gf(e,"number",Bf),ym=e=>!!e&&Number.isInteger(Number(e)),l5=e=>e.endsWith("%")&&Bf(e.slice(0,-1)),xt=e=>JA.test(e),$s=e=>a5.test(e),c5=new Set(["length","size","percentage"]),d5=e=>Gf(e,c5,ek),f5=e=>Gf(e,"position",ek),h5=new Set(["image","url"]),p5=e=>Gf(e,h5,y5),m5=e=>Gf(e,"",v5),Em=()=>!0,Gf=(e,n,a)=>{const s=JA.exec(e);return s?s[1]?typeof n=="string"?s[1]===n:n.has(s[1]):a(s[2]):!1},g5=e=>i5.test(e)&&!o5.test(e),ek=()=>!1,v5=e=>u5.test(e),y5=e=>s5.test(e),E5=()=>{const e=mn("colors"),n=mn("spacing"),a=mn("blur"),s=mn("brightness"),f=mn("borderColor"),p=mn("borderRadius"),d=mn("borderSpacing"),g=mn("borderWidth"),E=mn("contrast"),b=mn("grayscale"),C=mn("hueRotate"),S=mn("invert"),R=mn("gap"),A=mn("gradientColorStops"),D=mn("gradientColorStopPositions"),L=mn("inset"),B=mn("margin"),z=mn("opacity"),G=mn("padding"),W=mn("saturate"),Z=mn("scale"),J=mn("sepia"),X=mn("skew"),ce=mn("space"),Te=mn("translate"),Me=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],Ee=()=>["auto",xt,n],ge=()=>[xt,n],Re=()=>["",Lu,Qs],Oe=()=>["auto",Bf,xt],qe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],je=()=>["solid","dashed","dotted","double","none"],at=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>["start","end","center","between","around","evenly","stretch"],De=()=>["","0",xt],P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],et=()=>[Bf,xt];return{cacheSize:500,separator:":",theme:{colors:[Em],spacing:[Lu,Qs],blur:["none","",$s,xt],brightness:et(),borderColor:[e],borderRadius:["none","","full",$s,xt],borderSpacing:ge(),borderWidth:Re(),contrast:et(),grayscale:De(),hueRotate:et(),invert:De(),gap:ge(),gradientColorStops:[e],gradientColorStopPositions:[l5,Qs],inset:Ee(),margin:Ee(),opacity:et(),padding:ge(),saturate:et(),scale:et(),sepia:De(),skew:et(),space:ge(),translate:ge()},classGroups:{aspect:[{aspect:["auto","square","video",xt]}],container:["container"],columns:[{columns:[$s]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"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:[...qe(),xt]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:Me()}],"overscroll-x":[{"overscroll-x":Me()}],"overscroll-y":[{"overscroll-y":Me()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[L]}],"inset-x":[{"inset-x":[L]}],"inset-y":[{"inset-y":[L]}],start:[{start:[L]}],end:[{end:[L]}],top:[{top:[L]}],right:[{right:[L]}],bottom:[{bottom:[L]}],left:[{left:[L]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ym,xt]}],basis:[{basis:Ee()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",xt]}],grow:[{grow:De()}],shrink:[{shrink:De()}],order:[{order:["first","last","none",ym,xt]}],"grid-cols":[{"grid-cols":[Em]}],"col-start-end":[{col:["auto",{span:["full",ym,xt]},xt]}],"col-start":[{"col-start":Oe()}],"col-end":[{"col-end":Oe()}],"grid-rows":[{"grid-rows":[Em]}],"row-start-end":[{row:["auto",{span:[ym,xt]},xt]}],"row-start":[{"row-start":Oe()}],"row-end":[{"row-end":Oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",xt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",xt]}],gap:[{gap:[R]}],"gap-x":[{"gap-x":[R]}],"gap-y":[{"gap-y":[R]}],"justify-content":[{justify:["normal",...pe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...pe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...pe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[G]}],px:[{px:[G]}],py:[{py:[G]}],ps:[{ps:[G]}],pe:[{pe:[G]}],pt:[{pt:[G]}],pr:[{pr:[G]}],pb:[{pb:[G]}],pl:[{pl:[G]}],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":[ce]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ce]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",xt,n]}],"min-w":[{"min-w":[xt,n,"min","max","fit"]}],"max-w":[{"max-w":[xt,n,"none","full","min","max","fit","prose",{screen:[$s]},$s]}],h:[{h:[xt,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[xt,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[xt,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[xt,n,"auto","min","max","fit"]}],"font-size":[{text:["base",$s,Qs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Dw]}],"font-family":[{font:[Em]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",xt]}],"line-clamp":[{"line-clamp":["none",Bf,Dw]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Lu,xt]}],"list-image":[{"list-image":["none",xt]}],"list-style-type":[{list:["none","disc","decimal",xt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[z]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...je(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Lu,Qs]}],"underline-offset":[{"underline-offset":["auto",Lu,xt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ge()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xt]}],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",xt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[z]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...qe(),f5]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",d5]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},p5]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[D]}],"gradient-via-pos":[{via:[D]}],"gradient-to-pos":[{to:[D]}],"gradient-from":[{from:[A]}],"gradient-via":[{via:[A]}],"gradient-to":[{to:[A]}],rounded:[{rounded:[p]}],"rounded-s":[{"rounded-s":[p]}],"rounded-e":[{"rounded-e":[p]}],"rounded-t":[{"rounded-t":[p]}],"rounded-r":[{"rounded-r":[p]}],"rounded-b":[{"rounded-b":[p]}],"rounded-l":[{"rounded-l":[p]}],"rounded-ss":[{"rounded-ss":[p]}],"rounded-se":[{"rounded-se":[p]}],"rounded-ee":[{"rounded-ee":[p]}],"rounded-es":[{"rounded-es":[p]}],"rounded-tl":[{"rounded-tl":[p]}],"rounded-tr":[{"rounded-tr":[p]}],"rounded-br":[{"rounded-br":[p]}],"rounded-bl":[{"rounded-bl":[p]}],"border-w":[{border:[g]}],"border-w-x":[{"border-x":[g]}],"border-w-y":[{"border-y":[g]}],"border-w-s":[{"border-s":[g]}],"border-w-e":[{"border-e":[g]}],"border-w-t":[{"border-t":[g]}],"border-w-r":[{"border-r":[g]}],"border-w-b":[{"border-b":[g]}],"border-w-l":[{"border-l":[g]}],"border-opacity":[{"border-opacity":[z]}],"border-style":[{border:[...je(),"hidden"]}],"divide-x":[{"divide-x":[g]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[g]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[z]}],"divide-style":[{divide:je()}],"border-color":[{border:[f]}],"border-color-x":[{"border-x":[f]}],"border-color-y":[{"border-y":[f]}],"border-color-s":[{"border-s":[f]}],"border-color-e":[{"border-e":[f]}],"border-color-t":[{"border-t":[f]}],"border-color-r":[{"border-r":[f]}],"border-color-b":[{"border-b":[f]}],"border-color-l":[{"border-l":[f]}],"divide-color":[{divide:[f]}],"outline-style":[{outline:["",...je()]}],"outline-offset":[{"outline-offset":[Lu,xt]}],"outline-w":[{outline:[Lu,Qs]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[z]}],"ring-offset-w":[{"ring-offset":[Lu,Qs]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$s,m5]}],"shadow-color":[{shadow:[Em]}],opacity:[{opacity:[z]}],"mix-blend":[{"mix-blend":[...at(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":at()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[s]}],contrast:[{contrast:[E]}],"drop-shadow":[{"drop-shadow":["","none",$s,xt]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[C]}],invert:[{invert:[S]}],saturate:[{saturate:[W]}],sepia:[{sepia:[J]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[E]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C]}],"backdrop-invert":[{"backdrop-invert":[S]}],"backdrop-opacity":[{"backdrop-opacity":[z]}],"backdrop-saturate":[{"backdrop-saturate":[W]}],"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",xt]}],duration:[{duration:et()}],ease:[{ease:["linear","in","out","in-out",xt]}],delay:[{delay:et()}],animate:[{animate:["none","spin","ping","pulse","bounce",xt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Z]}],"scale-x":[{"scale-x":[Z]}],"scale-y":[{"scale-y":[Z]}],rotate:[{rotate:[ym,xt]}],"translate-x":[{"translate-x":[Te]}],"translate-y":[{"translate-y":[Te]}],"skew-x":[{"skew-x":[X]}],"skew-y":[{"skew-y":[X]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",xt]}],accent:[{accent:["auto",e]}],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",xt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ge()}],"scroll-mx":[{"scroll-mx":ge()}],"scroll-my":[{"scroll-my":ge()}],"scroll-ms":[{"scroll-ms":ge()}],"scroll-me":[{"scroll-me":ge()}],"scroll-mt":[{"scroll-mt":ge()}],"scroll-mr":[{"scroll-mr":ge()}],"scroll-mb":[{"scroll-mb":ge()}],"scroll-ml":[{"scroll-ml":ge()}],"scroll-p":[{"scroll-p":ge()}],"scroll-px":[{"scroll-px":ge()}],"scroll-py":[{"scroll-py":ge()}],"scroll-ps":[{"scroll-ps":ge()}],"scroll-pe":[{"scroll-pe":ge()}],"scroll-pt":[{"scroll-pt":ge()}],"scroll-pr":[{"scroll-pr":ge()}],"scroll-pb":[{"scroll-pb":ge()}],"scroll-pl":[{"scroll-pl":ge()}],"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",xt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Lu,Qs,Dw]}],stroke:[{stroke:[e,"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"]}}},b5=t5(E5);function Lt(...e){return b5($A.clsx(e))}const w5=Um.Provider,T5=Um.Root,x5=Um.Trigger,tk=ie.forwardRef(({className:e,sideOffset:n=4,...a},s)=>U.jsx(Um.Content,{ref:s,sideOffset:n,className:Lt("z-50 overflow-hidden max-w-xs rounded-xl bg-black border text-primary-foreground p-2 text-center align-middle text-xs shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a}));tk.displayName=Um.Content.displayName;function cT({children:e,content:n,side:a,align:s}){return U.jsxs(T5,{children:[U.jsx(x5,{asChild:!0,children:e}),U.jsx(tk,{side:a,align:s,collisionPadding:8,avoidCollisions:!0,children:n})]})}function r_(e,n){const a=String(e);if(typeof n!="string")throw new TypeError("Expected character");let s=0,f=a.indexOf(n);for(;f!==-1;)s++,f=a.indexOf(n,f+n.length);return s}const Ea=ol(/[A-Za-z]/),na=ol(/[\dA-Za-z]/),S5=ol(/[#-'*+\--9=?A-Z^-~]/);function S1(e){return e!==null&&(e<32||e===127)}const dT=ol(/\d/),C5=ol(/[\dA-Fa-f]/),_5=ol(/[!-/:-@[-`{-~]/);function ut(e){return e!==null&&e<-2}function rn(e){return e!==null&&(e<0||e===32)}function Ot(e){return e===-2||e===-1||e===32}const P1=ol(new RegExp("\\p{P}|\\p{S}","u")),Ac=ol(/\s/);function ol(e){return n;function n(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function A5(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const F1=function(e){if(e==null)return D5;if(typeof e=="function")return U1(e);if(typeof e=="object")return Array.isArray(e)?k5(e):R5(e);if(typeof e=="string")return N5(e);throw new Error("Expected function, string, or object as test")};function k5(e){const n=[];let a=-1;for(;++a<e.length;)n[a]=F1(e[a]);return U1(s);function s(...f){let p=-1;for(;++p<n.length;)if(n[p].apply(this,f))return!0;return!1}}function R5(e){const n=e;return U1(a);function a(s){const f=s;let p;for(p in e)if(f[p]!==n[p])return!1;return!0}}function N5(e){return U1(n);function n(a){return a&&a.type===e}}function U1(e){return n;function n(a,s,f){return!!(O5(a)&&e.call(this,a,typeof s=="number"?s:void 0,f||void 0))}}function D5(){return!0}function O5(e){return e!==null&&typeof e=="object"&&"type"in e}const nk=[],L5=!0,fT=!1,I5="skip";function rk(e,n,a,s){let f;typeof n=="function"&&typeof a!="function"?(s=a,a=n):f=n;const p=F1(f),d=s?-1:1;g(e,void 0,[])();function g(E,b,C){const S=E&&typeof E=="object"?E:{};if(typeof S.type=="string"){const A=typeof S.tagName=="string"?S.tagName:typeof S.name=="string"?S.name:void 0;Object.defineProperty(R,"name",{value:"node ("+(E.type+(A?"<"+A+">":""))+")"})}return R;function R(){let A=nk,D,L,B;if((!n||p(E,b,C[C.length-1]||void 0))&&(A=M5(a(E,C)),A[0]===fT))return A;if("children"in E&&E.children){const z=E;if(z.children&&A[0]!==I5)for(L=(s?z.children.length:-1)+d,B=C.concat(z);L>-1&&L<z.children.length;){const G=z.children[L];if(D=g(G,L,B)(),D[0]===fT)return D;L=typeof D[1]=="number"?D[1]:L+d}}return A}}}function M5(e){return Array.isArray(e)?e:typeof e=="number"?[L5,e]:e==null?nk:[e]}function P5(e,n,a){const f=F1((a||{}).ignore||[]),p=F5(n);let d=-1;for(;++d<p.length;)rk(e,"text",g);function g(b,C){let S=-1,R;for(;++S<C.length;){const A=C[S],D=R?R.children:void 0;if(f(A,D?D.indexOf(A):void 0,R))return;R=A}if(R)return E(b,C)}function E(b,C){const S=C[C.length-1],R=p[d][0],A=p[d][1];let D=0;const B=S.children.indexOf(b);let z=!1,G=[];R.lastIndex=0;let W=R.exec(b.value);for(;W;){const Z=W.index,J={index:W.index,input:W.input,stack:[...C,b]};let X=A(...W,J);if(typeof X=="string"&&(X=X.length>0?{type:"text",value:X}:void 0),X===!1?R.lastIndex=Z+1:(D!==Z&&G.push({type:"text",value:b.value.slice(D,Z)}),Array.isArray(X)?G.push(...X):X&&G.push(X),D=Z+W[0].length,z=!0),!R.global)break;W=R.exec(b.value)}return z?(D<b.value.length&&G.push({type:"text",value:b.value.slice(D)}),S.children.splice(B,1,...G)):G=[b],B+G.length}}function F5(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const a=!e[0]||Array.isArray(e[0])?e:[e];let s=-1;for(;++s<a.length;){const f=a[s];n.push([U5(f[0]),B5(f[1])])}return n}function U5(e){return typeof e=="string"?new RegExp(A5(e),"g"):e}function B5(e){return typeof e=="function"?e:function(){return e}}const Ow="phrasing",Lw=["autolink","link","image","label"];function H5(){return{transforms:[Q5],enter:{literalAutolink:j5,literalAutolinkEmail:Iw,literalAutolinkHttp:Iw,literalAutolinkWww:Iw},exit:{literalAutolink:q5,literalAutolinkEmail:W5,literalAutolinkHttp:V5,literalAutolinkWww:Y5}}}function z5(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ow,notInConstruct:Lw},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ow,notInConstruct:Lw},{character:":",before:"[ps]",after:"\\/",inConstruct:Ow,notInConstruct:Lw}]}}function j5(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Iw(e){this.config.enter.autolinkProtocol.call(this,e)}function V5(e){this.config.exit.autolinkProtocol.call(this,e)}function Y5(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function W5(e){this.config.exit.autolinkEmail.call(this,e)}function q5(e){this.exit(e)}function Q5(e){P5(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,$5],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),G5]],{ignore:["link","linkReference"]})}function $5(e,n,a,s,f){let p="";if(!ak(f)||(/^w/i.test(n)&&(a=n+a,n="",p="http://"),!X5(a)))return!1;const d=K5(a+s);if(!d[0])return!1;const g={type:"link",title:null,url:p+n+d[0],children:[{type:"text",value:n+d[0]}]};return d[1]?[g,{type:"text",value:d[1]}]:g}function G5(e,n,a,s){return!ak(s,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+a,children:[{type:"text",value:n+"@"+a}]}}function X5(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function K5(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let a=n[0],s=a.indexOf(")");const f=r_(e,"(");let p=r_(e,")");for(;s!==-1&&f>p;)e+=a.slice(0,s+1),a=a.slice(s+1),s=a.indexOf(")"),p++;return[e,a]}function ak(e,n){const a=e.input.charCodeAt(e.index-1);return(e.index===0||Ac(a)||P1(a))&&(!n||a!==47)}function oo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}ik.peek=sI;function Z5(){return{enter:{gfmFootnoteDefinition:eI,gfmFootnoteDefinitionLabelString:tI,gfmFootnoteCall:aI,gfmFootnoteCallString:iI},exit:{gfmFootnoteDefinition:rI,gfmFootnoteDefinitionLabelString:nI,gfmFootnoteCall:uI,gfmFootnoteCallString:oI}}}function J5(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:lI,footnoteReference:ik}}}function eI(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function tI(){this.buffer()}function nI(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.label=n,a.identifier=oo(this.sliceSerialize(e)).toLowerCase()}function rI(e){this.exit(e)}function aI(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function iI(){this.buffer()}function oI(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.label=n,a.identifier=oo(this.sliceSerialize(e)).toLowerCase()}function uI(e){this.exit(e)}function ik(e,n,a,s){const f=a.createTracker(s);let p=f.move("[^");const d=a.enter("footnoteReference"),g=a.enter("reference");return p+=f.move(a.safe(a.associationId(e),{...f.current(),before:p,after:"]"})),g(),d(),p+=f.move("]"),p}function sI(){return"["}function lI(e,n,a,s){const f=a.createTracker(s);let p=f.move("[^");const d=a.enter("footnoteDefinition"),g=a.enter("label");return p+=f.move(a.safe(a.associationId(e),{...f.current(),before:p,after:"]"})),g(),p+=f.move("]:"+(e.children&&e.children.length>0?" ":"")),f.shift(4),p+=f.move(a.indentLines(a.containerFlow(e,f.current()),cI)),d(),p}function cI(e,n,a){return n===0?e:(a?"":" ")+e}const dI=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ok.peek=gI;function fI(){return{canContainEols:["delete"],enter:{strikethrough:pI},exit:{strikethrough:mI}}}function hI(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:dI}],handlers:{delete:ok}}}function pI(e){this.enter({type:"delete",children:[]},e)}function mI(e){this.exit(e)}function ok(e,n,a,s){const f=a.createTracker(s),p=a.enter("strikethrough");let d=f.move("~~");return d+=a.containerPhrasing(e,{...f.current(),before:d,after:"~"}),d+=f.move("~~"),p(),d}function gI(){return"~"}function vI(e,n={}){const a=(n.align||[]).concat(),s=n.stringLength||EI,f=[],p=[],d=[],g=[];let E=0,b=-1;for(;++b<e.length;){const D=[],L=[];let B=-1;for(e[b].length>E&&(E=e[b].length);++B<e[b].length;){const z=yI(e[b][B]);if(n.alignDelimiters!==!1){const G=s(z);L[B]=G,(g[B]===void 0||G>g[B])&&(g[B]=G)}D.push(z)}p[b]=D,d[b]=L}let C=-1;if(typeof a=="object"&&"length"in a)for(;++C<E;)f[C]=a_(a[C]);else{const D=a_(a);for(;++C<E;)f[C]=D}C=-1;const S=[],R=[];for(;++C<E;){const D=f[C];let L="",B="";D===99?(L=":",B=":"):D===108?L=":":D===114&&(B=":");let z=n.alignDelimiters===!1?1:Math.max(1,g[C]-L.length-B.length);const G=L+"-".repeat(z)+B;n.alignDelimiters!==!1&&(z=L.length+z+B.length,z>g[C]&&(g[C]=z),R[C]=z),S[C]=G}p.splice(1,0,S),d.splice(1,0,R),b=-1;const A=[];for(;++b<p.length;){const D=p[b],L=d[b];C=-1;const B=[];for(;++C<E;){const z=D[C]||"";let G="",W="";if(n.alignDelimiters!==!1){const Z=g[C]-(L[C]||0),J=f[C];J===114?G=" ".repeat(Z):J===99?Z%2?(G=" ".repeat(Z/2+.5),W=" ".repeat(Z/2-.5)):(G=" ".repeat(Z/2),W=G):W=" ".repeat(Z)}n.delimiterStart!==!1&&!C&&B.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&z==="")&&(n.delimiterStart!==!1||C)&&B.push(" "),n.alignDelimiters!==!1&&B.push(G),B.push(z),n.alignDelimiters!==!1&&B.push(W),n.padding!==!1&&B.push(" "),(n.delimiterEnd!==!1||C!==E-1)&&B.push("|")}A.push(n.delimiterEnd===!1?B.join("").replace(/ +$/,""):B.join(""))}return A.join(`
|
|
2
2
|
`)}function yI(e){return e==null?"":String(e)}function EI(e){return e.length}function a_(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}const i_={}.hasOwnProperty;function uk(e,n){const a=n||{};function s(f,...p){let d=s.invalid;const g=s.handlers;if(f&&i_.call(f,e)){const E=String(f[e]);d=i_.call(g,E)?g[E]:s.unknown}if(d)return d.call(this,f,...p)}return s.handlers=a.handlers||{},s.invalid=a.invalid,s.unknown=a.unknown,s}function bI(e,n,a,s){const f=a.enter("blockquote"),p=a.createTracker(s);p.move("> "),p.shift(2);const d=a.indentLines(a.containerFlow(e,p.current()),wI);return f(),d}function wI(e,n,a){return">"+(a?"":" ")+e}function TI(e,n){return o_(e,n.inConstruct,!0)&&!o_(e,n.notInConstruct,!1)}function o_(e,n,a){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return a;let s=-1;for(;++s<n.length;)if(e.includes(n[s]))return!0;return!1}function u_(e,n,a,s){let f=-1;for(;++f<a.unsafe.length;)if(a.unsafe[f].character===`
|
|
3
3
|
`&&TI(a.stack,a.unsafe[f]))return/[ \t]/.test(s.before)?"":" ";return`\\
|
|
4
4
|
`}function xI(e,n){const a=String(e);let s=a.indexOf(n),f=s,p=0,d=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;s!==-1;)s===f?++p>d&&(d=p):p=1,f=s+n.length,s=a.indexOf(n,f);return d}function SI(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function CI(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function _I(e,n,a,s){const f=CI(a),p=e.value||"",d=f==="`"?"GraveAccent":"Tilde";if(SI(e,a)){const S=a.enter("codeIndented"),R=a.indentLines(p,AI);return S(),R}const g=a.createTracker(s),E=f.repeat(Math.max(xI(p,f)+1,3)),b=a.enter("codeFenced");let C=g.move(E);if(e.lang){const S=a.enter(`codeFencedLang${d}`);C+=g.move(a.safe(e.lang,{before:C,after:" ",encode:["`"],...g.current()})),S()}if(e.lang&&e.meta){const S=a.enter(`codeFencedMeta${d}`);C+=g.move(" "),C+=g.move(a.safe(e.meta,{before:C,after:`
|