@keeper-security/keeper-js-ui 0.1.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -0
- package/README.md +93 -15
- package/dist/index.es.d.ts +134 -25
- package/dist/index.es.js +4986 -615
- package/dist/index.umd.js +76 -1
- package/dist/keeper-js-ui.css +1 -0
- package/package.json +53 -45
- package/dist/style.css +0 -1
package/dist/index.umd.js
CHANGED
|
@@ -1 +1,76 @@
|
|
|
1
|
-
(function(C,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],k):(C=typeof globalThis<"u"?globalThis:C||self,k(C["keeper-js-ui"]={},C["react/jsx-runtime"],C.React))})(this,function(C,k,we){"use strict";function ke(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const x=ke(we);function je(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ce(...e){return t=>e.forEach(r=>je(r,t))}var H=x.forwardRef((e,t)=>{const{children:r,...o}=e,s=x.Children.toArray(r),n=s.find(Se);if(n){const l=n.props.children,i=s.map(d=>d===n?x.Children.count(l)>1?x.Children.only(null):x.isValidElement(l)?l.props.children:null:d);return k.jsx(K,{...o,ref:t,children:x.isValidElement(l)?x.cloneElement(l,void 0,i):null})}return k.jsx(K,{...o,ref:t,children:r})});H.displayName="Slot";var K=x.forwardRef((e,t)=>{const{children:r,...o}=e;if(x.isValidElement(r)){const s=Ae(r);return x.cloneElement(r,{...ze(o,r.props),ref:t?Ce(t,s):s})}return x.Children.count(r)>1?x.Children.only(null):null});K.displayName="SlotClone";var D=({children:e})=>k.jsx(k.Fragment,{children:e});function Se(e){return x.isValidElement(e)&&e.type===D}function ze(e,t){const r={...t};for(const o in t){const s=e[o],n=t[o];/^on[A-Z]/.test(o)?s&&n?r[o]=(...i)=>{n(...i),s(...i)}:s&&(r[o]=s):o==="style"?r[o]={...s,...n}:o==="className"&&(r[o]=[s,n].filter(Boolean).join(" "))}return{...e,...r}}function Ae(e){var o,s;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function ee(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=ee(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function Ne(){for(var e,t,r=0,o="";r<arguments.length;)(e=arguments[r++])&&(t=ee(e))&&(o&&(o+=" "),o+=t);return o}const te=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,re=Ne,oe=(e,t)=>r=>{var o;if((t==null?void 0:t.variants)==null)return re(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:n}=t,l=Object.keys(s).map(c=>{const p=r==null?void 0:r[c],m=n==null?void 0:n[c];if(p===null)return null;const h=te(p)||te(m);return s[c][h]}),i=r&&Object.entries(r).reduce((c,p)=>{let[m,h]=p;return h===void 0||(c[m]=h),c},{}),d=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((c,p)=>{let{class:m,className:h,...j}=p;return Object.entries(j).every(v=>{let[g,u]=v;return Array.isArray(u)?u.includes({...n,...i}[g]):{...n,...i}[g]===u})?[...c,m,h]:c},[]);return re(e,l,d,r==null?void 0:r.class,r==null?void 0:r.className)};function ne(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=ne(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Pe(){for(var e,t,r=0,o="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=ne(e))&&(o&&(o+=" "),o+=t);return o}const Z="-",Me=e=>{const t=Ge(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{const i=l.split(Z);return i[0]===""&&i.length!==1&&i.shift(),se(i,t)||Re(l)},getConflictingClassGroupIds:(l,i)=>{const d=r[l]||[];return i&&o[l]?[...d,...o[l]]:d}}},se=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),s=o?se(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;const n=e.join(Z);return(l=t.validators.find(({validator:i})=>i(n)))==null?void 0:l.classGroupId},ie=/^\[(.+)\]$/,Re=e=>{if(ie.test(e)){const t=ie.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ge=e=>{const{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Ve(Object.entries(e.classGroups),r).forEach(([n,l])=>{J(l,o,n,t)}),o},J=(e,t,r,o)=>{e.forEach(s=>{if(typeof s=="string"){const n=s===""?t:le(t,s);n.classGroupId=r;return}if(typeof s=="function"){if($e(s)){J(s(o),t,r,o);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([n,l])=>{J(l,le(t,n),r,o)})})},le=(e,t)=>{let r=e;return t.split(Z).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},$e=e=>e.isThemeGetter,Ve=(e,t)=>t?e.map(([r,o])=>{const s=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([l,i])=>[t+l,i])):n);return[r,s]}):e,Ee=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const s=(n,l)=>{r.set(n,l),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let l=r.get(n);if(l!==void 0)return l;if((l=o.get(n))!==void 0)return s(n,l),l},set(n,l){r.has(n)?r.set(n,l):s(n,l)}}},ae="!",Te=e=>{const{separator:t,experimentalParseClassName:r}=e,o=t.length===1,s=t[0],n=t.length,l=i=>{const d=[];let c=0,p=0,m;for(let u=0;u<i.length;u++){let y=i[u];if(c===0){if(y===s&&(o||i.slice(u,u+n)===t)){d.push(i.slice(p,u)),p=u+n;continue}if(y==="/"){m=u;continue}}y==="["?c++:y==="]"&&c--}const h=d.length===0?i:i.substring(p),j=h.startsWith(ae),v=j?h.substring(1):h,g=m&&m>p?m-p:void 0;return{modifiers:d,hasImportantModifier:j,baseClassName:v,maybePostfixModifierPosition:g}};return r?i=>r({className:i,parseClassName:l}):l},Ie=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},We=e=>({cache:Ee(e.cacheSize),parseClassName:Te(e),...Me(e)}),Oe=/\s+/,Le=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s}=t,n=[],l=e.trim().split(Oe);let i="";for(let d=l.length-1;d>=0;d-=1){const c=l[d],{modifiers:p,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:j}=r(c);let v=!!j,g=o(v?h.substring(0,j):h);if(!g){if(!v){i=c+(i.length>0?" "+i:i);continue}if(g=o(h),!g){i=c+(i.length>0?" "+i:i);continue}v=!1}const u=Ie(p).join(":"),y=m?u+ae:u,w=y+g;if(n.includes(w))continue;n.push(w);const M=s(g,v);for(let z=0;z<M.length;++z){const $=M[z];n.push(y+$)}i=c+(i.length>0?" "+i:i)}return i};function _e(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ce(t))&&(o&&(o+=" "),o+=r);return o}const ce=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=ce(e[o]))&&(r&&(r+=" "),r+=t);return r};function de(e,...t){let r,o,s,n=l;function l(d){const c=t.reduce((p,m)=>m(p),e());return r=We(c),o=r.cache.get,s=r.cache.set,n=i,i(d)}function i(d){const c=o(d);if(c)return c;const p=Le(d,r);return s(d,p),p}return function(){return n(_e.apply(null,arguments))}}const f=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},ue=/^\[(?:([a-z-]+):)?(.+)\]$/i,Be=/^\d+\/\d+$/,Fe=new Set(["px","full","screen"]),Ue=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qe=/\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$/,He=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ke=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ze=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,S=e=>R(e)||Fe.has(e)||Be.test(e),N=e=>G(e,"length",rt),R=e=>!!e&&!Number.isNaN(Number(e)),X=e=>G(e,"number",R),V=e=>!!e&&Number.isInteger(Number(e)),Je=e=>e.endsWith("%")&&R(e.slice(0,-1)),a=e=>ue.test(e),P=e=>Ue.test(e),Xe=new Set(["length","size","percentage"]),Qe=e=>G(e,Xe,pe),Ye=e=>G(e,"position",pe),De=new Set(["image","url"]),et=e=>G(e,De,nt),tt=e=>G(e,"",ot),E=()=>!0,G=(e,t,r)=>{const o=ue.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},rt=e=>qe.test(e)&&!He.test(e),pe=()=>!1,ot=e=>Ke.test(e),nt=e=>Ze.test(e),fe=()=>{const e=f("colors"),t=f("spacing"),r=f("blur"),o=f("brightness"),s=f("borderColor"),n=f("borderRadius"),l=f("borderSpacing"),i=f("borderWidth"),d=f("contrast"),c=f("grayscale"),p=f("hueRotate"),m=f("invert"),h=f("gap"),j=f("gradientColorStops"),v=f("gradientColorStopPositions"),g=f("inset"),u=f("margin"),y=f("opacity"),w=f("padding"),M=f("saturate"),z=f("scale"),$=f("sepia"),_=f("skew"),B=f("space"),F=f("translate"),I=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto",a,t],b=()=>[a,t],he=()=>["",S,N],U=()=>["auto",R,a],ye=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",a],ve=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>[R,a];return{cacheSize:500,separator:":",theme:{colors:[E],spacing:[S,N],blur:["none","",P,a],brightness:A(),borderColor:[e],borderRadius:["none","","full",P,a],borderSpacing:b(),borderWidth:he(),contrast:A(),grayscale:L(),hueRotate:A(),invert:L(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[Je,N],inset:O(),margin:O(),opacity:A(),padding:b(),saturate:A(),scale:A(),sepia:L(),skew:A(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",a]}],container:["container"],columns:[{columns:[P]}],"break-after":[{"break-after":ve()}],"break-before":[{"break-before":ve()}],"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:[...ye(),a]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",V,a]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",a]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",V,a]}],"grid-cols":[{"grid-cols":[E]}],"col-start-end":[{col:["auto",{span:["full",V,a]},a]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[E]}],"row-start-end":[{row:["auto",{span:[V,a]},a]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",a]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",a]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...Y()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Y(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Y(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[u]}],mx:[{mx:[u]}],my:[{my:[u]}],ms:[{ms:[u]}],me:[{me:[u]}],mt:[{mt:[u]}],mr:[{mr:[u]}],mb:[{mb:[u]}],ml:[{ml:[u]}],"space-x":[{"space-x":[B]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[B]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",a,t]}],"min-w":[{"min-w":[a,t,"min","max","fit"]}],"max-w":[{"max-w":[a,t,"none","full","min","max","fit","prose",{screen:[P]},P]}],h:[{h:[a,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[a,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[a,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[a,t,"auto","min","max","fit"]}],"font-size":[{text:["base",P,N]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",X]}],"font-family":[{font:[E]}],"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",a]}],"line-clamp":[{"line-clamp":["none",R,X]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",S,a]}],"list-image":[{"list-image":["none",a]}],"list-style-type":[{list:["none","disc","decimal",a]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",S,N]}],"underline-offset":[{"underline-offset":["auto",S,a]}],"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:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",a]}],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",a]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ye(),Ye]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Qe]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},et]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[j]}],"gradient-via":[{via:[j]}],"gradient-to":[{to:[j]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...q(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:q()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...q()]}],"outline-offset":[{"outline-offset":[S,a]}],"outline-w":[{outline:[S,N]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[S,N]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",P,tt]}],"shadow-color":[{shadow:[E]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...xe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":xe()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",P,a]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[m]}],saturate:[{saturate:[M]}],sepia:[{sepia:[$]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[M]}],"backdrop-sepia":[{"backdrop-sepia":[$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",a]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",a]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",a]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[V,a]}],"translate-x":[{"translate-x":[F]}],"translate-y":[{"translate-y":[F]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",a]}],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",a]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"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",a]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[S,N,X]}],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"]}}},st=(e,{cacheSize:t,prefix:r,separator:o,experimentalParseClassName:s,extend:n={},override:l={}})=>{T(e,"cacheSize",t),T(e,"prefix",r),T(e,"separator",o),T(e,"experimentalParseClassName",s);for(const i in l)it(e[i],l[i]);for(const i in n)lt(e[i],n[i]);return e},T=(e,t,r)=>{r!==void 0&&(e[t]=r)},it=(e,t)=>{if(t)for(const r in t)T(e,r,t[r])},lt=(e,t)=>{if(t)for(const r in t){const o=t[r];o!==void 0&&(e[r]=(e[r]||[]).concat(o))}},at=((e,...t)=>typeof e=="function"?de(fe,e,...t):de(()=>st(fe(),e),...t))({prefix:"ksjsui-"});function be(...e){return at(Pe(e))}const ct=oe(["ksjsui-inline-flex ksjsui-h-9 ksjsui-items-center ksjsui-justify-center ksjsui-whitespace-nowrap ksjsui-rounded-lg ksjsui-border ksjsui-border-transparent ksjsui-p-2 ksjsui-text-base ksjsui-font-medium ksjsui-ring-offset-background ksjsui-transition-colors","focus-visible:ksjsui-outline-none focus-visible:ksjsui-ring-2 focus-visible:ksjsui-ring-ring focus-visible:ksjsui-ring-offset-2","disabled:ksjsui-pointer-events-none disabled:ksjsui-cursor-not-allowed disabled:ksjsui-bg-disabled disabled:ksjsui-text-disabled-foreground","forced-colors:ksjsui-border-button-border forced-colors:ksjsui-bg-button-face forced-colors:ksjsui-text-button-text","forced-colors:hover:ksjsui-border-highlight"],{variants:{variant:{solid:"",plain:"ksjsui-bg-transparent"},color:{neutral:"",primary:""},fullWidth:{true:"ksjsui-w-full"}},defaultVariants:{variant:"solid",color:"neutral",fullWidth:void 0},compoundVariants:[{variant:"solid",color:"neutral",className:"ksjsui-bg-neutral ksjsui-text-neutral-foreground hover:ksjsui-bg-neutral-hover"},{variant:"solid",color:"primary",className:"ksjsui-bg-primary ksjsui-text-primary-foreground hover:ksjsui-bg-primary-hover"},{variant:"plain",color:"neutral",className:""},{variant:"plain",color:"primary",className:"ksjsui-text-primary"}]}),ge=x.forwardRef(({className:e,endContent:t,startContent:r,variant:o,color:s,fullWidth:n,asChild:l=!1,children:i,tabIndex:d=0,...c},p)=>{const m=l?H:"button";return k.jsxs(m,{className:be(ct({variant:o,color:s,fullWidth:n,className:e})),ref:p,tabIndex:d,...c,children:[r&&k.jsx("span",{className:"ksjsui-me-2",children:r}),k.jsx(D,{children:i}),t&&k.jsx("span",{className:"ksjsui-ms-2",children:t})]})});ge.displayName="Button";const Q=["px",0,.5,1,1.5,2,2.5,3,3.5,4,5,6,7,8,9,10,11,12,14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96],dt=[...Q,"auto"];function ut(){return Q.reduce((e,t)=>(e.gap[t]=`ksjsui-gap-${t}`,e.gapColumn[t]=`ksjsui-gap-x-${t}`,e.gapRow[t]=`ksjsui-gap-y-${t}`,e),{gap:{},gapColumn:{},gapRow:{}})}function pt(){return dt.reduce((e,t)=>(e.m[t]=`ksjsui-m-${t}`,e.mb[t]=`ksjsui-mb-${t}`,e.me[t]=`ksjsui-me-${t}`,e.ms[t]=`ksjsui-ms-${t}`,e.mt[t]=`ksjsui-mt-${t}`,e.mx[t]=`ksjsui-mx-${t}`,e.my[t]=`ksjsui-my-${t}`,e),{m:{},mb:{},me:{},ms:{},mt:{},mx:{},my:{}})}function ft(){return Q.reduce((e,t)=>(e.p[t]=`ksjsui-p-${t}`,e.pb[t]=`ksjsui-pb-${t}`,e.pe[t]=`ksjsui-pe-${t}`,e.ps[t]=`ksjsui-ps-${t}`,e.pt[t]=`ksjsui-pt-${t}`,e.px[t]=`ksjsui-px-${t}`,e.py[t]=`ksjsui-py-${t}`,e),{p:{},pb:{},pe:{},ps:{},pt:{},px:{},py:{}})}const bt={align:{baseline:"ksjsui-items-baseline",center:"ksjsui-items-center",end:"ksjsui-items-end",start:"ksjsui-items-start",stretch:"ksjsui-items-stretch"},direction:{"column-reverse":"ksjsui-flex-col-reverse","row-reverse":"ksjsui-flex-row-reverse",column:"ksjsui-flex-col",row:"ksjsui-flex-row"},display:{"inline-flex":"ksjsui-inline-flex",flex:"ksjsui-flex",none:"ksjsui-hidden"},...ut(),justify:{around:"ksjsui-justify-around",baseline:"ksjsui-justify-baseline",between:"ksjsui-justify-between",center:"ksjsui-justify-center",end:"ksjsui-justify-end",normal:"ksjsui-justify-normal",start:"ksjsui-justify-start",stretch:"ksjsui-justify-stretch"},...pt(),...ft(),wrap:{nowrap:"ksjsui-flex-nowrap",reverse:"ksjsui-flex-wrap-reverse",wrap:"ksjsui-flex-wrap"}},gt=oe("ksjsui-inline-flex",{variants:{...bt},defaultVariants:{display:"flex",justify:"start"}}),me=x.forwardRef(({align:e,as:t="div",asChild:r,className:o,display:s,direction:n,gap:l,gapColumn:i,gapRow:d,justify:c,m:p,mb:m,me:h,ms:j,mt:v,mx:g,my:u,p:y,pb:w,pe:M,ps:z,pt:$,px:_,py:B,wrap:F,...I},W)=>{const O=r?H:t;return k.jsx(O,{className:be(gt({align:e,direction:n,display:s,gap:l,gapColumn:i,gapRow:d,justify:c,m:p,mb:m,me:h,ms:j,mt:v,mx:g,my:u,p:y,pb:w,pe:M,ps:z,pt:$,px:_,py:B,wrap:F,className:o})),ref:W,...I})});me.displayName="Flex",C.Button=ge,C.Flex=me,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(T,v){typeof exports=="object"&&typeof module<"u"?v(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],v):(T=typeof globalThis<"u"?globalThis:T||self,v(T["keeper-js-ui"]={},T["react/jsx-runtime"],T.React,T.ReactDOM))})(this,function(T,v,U,bn){"use strict";function wn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=wn(U),yn=wn(bn);function ye(e,t=[]){let n=[];function r(s,a){const i=c.createContext(a),u=n.length;n=[...n,a];const l=d=>{var w;const{scope:m,children:h,...g}=d,p=((w=m==null?void 0:m[e])==null?void 0:w[u])||i,b=c.useMemo(()=>g,Object.values(g));return v.jsx(p.Provider,{value:b,children:h})};l.displayName=s+"Provider";function f(d,m){var p;const h=((p=m==null?void 0:m[e])==null?void 0:p[u])||i,g=c.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[l,f]}const o=()=>{const s=n.map(a=>c.createContext(a));return function(i){const u=(i==null?void 0:i[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return o.scopeName=e,[r,Ds(o,...t)]}function Ds(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:u,scopeName:l})=>{const d=u(s)[`__scope${l}`];return{...i,...d}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function X(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var ce=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{};function kn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Je(...e){return t=>{let n=!1;const r=e.map(o=>{const s=kn(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():kn(e[o],null)}}}}function H(...e){return c.useCallback(Je(...e),e)}var ee=c.forwardRef((e,t)=>{const{children:n,...r}=e,o=c.Children.toArray(n),s=o.find(Ls);if(s){const a=s.props.children,i=o.map(u=>u===s?c.Children.count(a)>1?c.Children.only(null):c.isValidElement(a)?a.props.children:null:u);return v.jsx(jt,{...r,ref:t,children:c.isValidElement(a)?c.cloneElement(a,void 0,i):null})}return v.jsx(jt,{...r,ref:t,children:n})});ee.displayName="Slot";var jt=c.forwardRef((e,t)=>{const{children:n,...r}=e;if(c.isValidElement(n)){const o=$s(n);return c.cloneElement(n,{...Fs(r,n.props),ref:t?Je(t,o):o})}return c.Children.count(n)>1?c.Children.only(null):null});jt.displayName="SlotClone";var xn=({children:e})=>v.jsx(v.Fragment,{children:e});function Ls(e){return c.isValidElement(e)&&e.type===xn}function Fs(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{s(...i),o(...i)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function $s(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var zs=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Et=zs.reduce((e,t)=>{const n=c.forwardRef((r,o)=>{const{asChild:s,...a}=r,i=s?ee:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(i,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Mt="Avatar",[Bs,Hu]=ye(Mt),[Ws,Cn]=Bs(Mt),Sn=c.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,s]=c.useState("idle");return v.jsx(Ws,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:v.jsx(Et.span,{...r,ref:t})})});Sn.displayName=Mt;var jn="AvatarImage",En=c.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...s}=e,a=Cn(jn,n),i=Gs(r,s.referrerPolicy),u=X(l=>{o(l),a.onImageLoadingStatusChange(l)});return ce(()=>{i!=="idle"&&u(i)},[i,u]),i==="loaded"?v.jsx(Et.img,{...s,ref:t,src:r}):null});En.displayName=jn;var Mn="AvatarFallback",An=c.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,s=Cn(Mn,n),[a,i]=c.useState(r===void 0);return c.useEffect(()=>{if(r!==void 0){const u=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(u)}},[r]),a&&s.imageLoadingStatus!=="loaded"?v.jsx(Et.span,{...o,ref:t}):null});An.displayName=Mn;function Gs(e,t){const[n,r]=c.useState("idle");return ce(()=>{if(!e){r("error");return}let o=!0;const s=new window.Image,a=i=>()=>{o&&r(i)};return r("loading"),s.onload=a("loaded"),s.onerror=a("error"),s.src=e,t&&(s.referrerPolicy=t),()=>{o=!1}},[e,t]),n}var Pn=Sn,Nn=En,On=An;function _n(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=_n(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function In(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=_n(e))&&(r&&(r+=" "),r+=t);return r}const Tn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Rn=In,et=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Rn(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(l=>{const f=n==null?void 0:n[l],d=s==null?void 0:s[l];if(f===null)return null;const m=Tn(f)||Tn(d);return o[l][m]}),i=n&&Object.entries(n).reduce((l,f)=>{let[d,m]=f;return m===void 0||(l[d]=m),l},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,f)=>{let{class:d,className:m,...h}=f;return Object.entries(h).every(g=>{let[p,b]=g;return Array.isArray(b)?b.includes({...s,...i}[p]):{...s,...i}[p]===b})?[...l,d,m]:l},[]);return Rn(e,a,u,n==null?void 0:n.class,n==null?void 0:n.className)},At="-",Vs=e=>{const t=Ks(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const i=a.split(At);return i[0]===""&&i.length!==1&&i.shift(),Dn(i,t)||Us(a)},getConflictingClassGroupIds:(a,i)=>{const u=n[a]||[];return i&&r[a]?[...u,...r[a]]:u}}},Dn=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Dn(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(At);return(a=t.validators.find(({validator:i})=>i(s)))==null?void 0:a.classGroupId},Ln=/^\[(.+)\]$/,Us=e=>{if(Ln.test(e)){const t=Ln.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ks=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Ys(Object.entries(e.classGroups),n).forEach(([s,a])=>{Pt(a,r,s,t)}),r},Pt=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Fn(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(Hs(o)){Pt(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,a])=>{Pt(a,Fn(t,s),n,r)})})},Fn=(e,t)=>{let n=e;return t.split(At).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Hs=e=>e.isThemeGetter,Ys=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,i])=>[t+a,i])):s);return[n,o]}):e,Xs=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set(s,a){n.has(s)?n.set(s,a):o(s,a)}}},$n="!",qs=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,a=i=>{const u=[];let l=0,f=0,d;for(let b=0;b<i.length;b++){let w=i[b];if(l===0){if(w===o&&(r||i.slice(b,b+s)===t)){u.push(i.slice(f,b)),f=b+s;continue}if(w==="/"){d=b;continue}}w==="["?l++:w==="]"&&l--}const m=u.length===0?i:i.substring(f),h=m.startsWith($n),g=h?m.substring(1):m,p=d&&d>f?d-f:void 0;return{modifiers:u,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:p}};return n?i=>n({className:i,parseClassName:a}):a},Zs=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Qs=e=>({cache:Xs(e.cacheSize),parseClassName:qs(e),...Vs(e)}),Js=/\s+/,ei=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],a=e.trim().split(Js);let i="";for(let u=a.length-1;u>=0;u-=1){const l=a[u],{modifiers:f,hasImportantModifier:d,baseClassName:m,maybePostfixModifierPosition:h}=n(l);let g=!!h,p=r(g?m.substring(0,h):m);if(!p){if(!g){i=l+(i.length>0?" "+i:i);continue}if(p=r(m),!p){i=l+(i.length>0?" "+i:i);continue}g=!1}const b=Zs(f).join(":"),w=d?b+$n:b,y=w+p;if(s.includes(y))continue;s.push(y);const k=o(p,g);for(let x=0;x<k.length;++x){const C=k[x];s.push(w+C)}i=l+(i.length>0?" "+i:i)}return i};function ti(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=zn(t))&&(r&&(r+=" "),r+=n);return r}const zn=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=zn(e[r]))&&(n&&(n+=" "),n+=t);return n};function Bn(e,...t){let n,r,o,s=a;function a(u){const l=t.reduce((f,d)=>d(f),e());return n=Qs(l),r=n.cache.get,o=n.cache.set,s=i,i(u)}function i(u){const l=r(u);if(l)return l;const f=ei(u,n);return o(u,f),f}return function(){return s(ti.apply(null,arguments))}}const z=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Wn=/^\[(?:([a-z-]+):)?(.+)\]$/i,ni=/^\d+\/\d+$/,ri=new Set(["px","full","screen"]),oi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,si=/\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$/,ii=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ai=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ci=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,le=e=>Se(e)||ri.has(e)||ni.test(e),pe=e=>je(e,"length",gi),Se=e=>!!e&&!Number.isNaN(Number(e)),Nt=e=>je(e,"number",Se),Te=e=>!!e&&Number.isInteger(Number(e)),li=e=>e.endsWith("%")&&Se(e.slice(0,-1)),N=e=>Wn.test(e),me=e=>oi.test(e),ui=new Set(["length","size","percentage"]),di=e=>je(e,ui,Gn),fi=e=>je(e,"position",Gn),pi=new Set(["image","url"]),mi=e=>je(e,pi,bi),hi=e=>je(e,"",vi),Re=()=>!0,je=(e,t,n)=>{const r=Wn.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},gi=e=>si.test(e)&&!ii.test(e),Gn=()=>!1,vi=e=>ai.test(e),bi=e=>ci.test(e),Vn=()=>{const e=z("colors"),t=z("spacing"),n=z("blur"),r=z("brightness"),o=z("borderColor"),s=z("borderRadius"),a=z("borderSpacing"),i=z("borderWidth"),u=z("contrast"),l=z("grayscale"),f=z("hueRotate"),d=z("invert"),m=z("gap"),h=z("gradientColorStops"),g=z("gradientColorStopPositions"),p=z("inset"),b=z("margin"),w=z("opacity"),y=z("padding"),k=z("saturate"),x=z("scale"),C=z("sepia"),E=z("skew"),j=z("space"),M=z("translate"),R=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",N,t],A=()=>[N,t],L=()=>["",le,pe],D=()=>["auto",Se,N],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],I=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],S=()=>["","0",N],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[Se,N];return{cacheSize:500,separator:":",theme:{colors:[Re],spacing:[le,pe],blur:["none","",me,N],brightness:B(),borderColor:[e],borderRadius:["none","","full",me,N],borderSpacing:A(),borderWidth:L(),contrast:B(),grayscale:S(),hueRotate:B(),invert:S(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[li,pe],inset:F(),margin:F(),opacity:B(),padding:A(),saturate:B(),scale:B(),sepia:S(),skew:B(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",N]}],container:["container"],columns:[{columns:[me]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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:[...G(),N]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Te,N]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",N]}],grow:[{grow:S()}],shrink:[{shrink:S()}],order:[{order:["first","last","none",Te,N]}],"grid-cols":[{"grid-cols":[Re]}],"col-start-end":[{col:["auto",{span:["full",Te,N]},N]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[Re]}],"row-start-end":[{row:["auto",{span:[Te,N]},N]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",N]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",N]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],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":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",N,t]}],"min-w":[{"min-w":[N,t,"min","max","fit"]}],"max-w":[{"max-w":[N,t,"none","full","min","max","fit","prose",{screen:[me]},me]}],h:[{h:[N,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[N,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[N,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[N,t,"auto","min","max","fit"]}],"font-size":[{text:["base",me,pe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Nt]}],"font-family":[{font:[Re]}],"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",N]}],"line-clamp":[{"line-clamp":["none",Se,Nt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",le,N]}],"list-image":[{"list-image":["none",N]}],"list-style-type":[{list:["none","disc","decimal",N]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...I(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",le,pe]}],"underline-offset":[{"underline-offset":["auto",le,N]}],"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:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N]}],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",N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...G(),fi]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",di]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},mi]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...I(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:I()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...I()]}],"outline-offset":[{"outline-offset":[le,N]}],"outline-w":[{outline:[le,pe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[le,pe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",me,hi]}],"shadow-color":[{shadow:[Re]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",me,N]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[d]}],saturate:[{saturate:[k]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",N]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",N]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",N]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[Te,N]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",N]}],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",N]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"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",N]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[le,pe,Nt]}],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"]}}},wi=(e,{cacheSize:t,prefix:n,separator:r,experimentalParseClassName:o,extend:s={},override:a={}})=>{De(e,"cacheSize",t),De(e,"prefix",n),De(e,"separator",r),De(e,"experimentalParseClassName",o);for(const i in a)yi(e[i],a[i]);for(const i in s)ki(e[i],s[i]);return e},De=(e,t,n)=>{n!==void 0&&(e[t]=n)},yi=(e,t)=>{if(t)for(const n in t)De(e,n,t[n])},ki=(e,t)=>{if(t)for(const n in t){const r=t[n];r!==void 0&&(e[n]=(e[n]||[]).concat(r))}},xi=((e,...t)=>typeof e=="function"?Bn(Vn,e,...t):Bn(()=>wi(Vn(),e),...t))({prefix:"ksjsui-"});function V(...e){return xi(In(e))}const Un=["#E60060","#ED0C0C","#B20000","#CC4400","#558000","#008A22","#006600","#004C40","#008099","#0059B2","#0070F0","#0022FF","#6619FF","#9900E5","#747474","#191919"],Ci=et(["ksjsui-relative ksjsui-flex ksjsui-shrink-0 ksjsui-overflow-hidden ksjsui-rounded-full"],{variants:{size:{sm:"ksjsui-size-8",md:"ksjsui-size-9",lg:"ksjsui-size-10"}},defaultVariants:{size:"md"}}),Kn=c.forwardRef(({className:e,size:t,...n},r)=>v.jsx(Pn,{ref:r,className:V(Ci({size:t,className:e})),...n}));Kn.displayName=Pn.displayName;const Hn=c.forwardRef(({className:e,...t},n)=>v.jsx(Nn,{ref:n,className:V("ksjsui-aspect-square ksjsui-size-full",e),...t}));Hn.displayName=Nn.displayName;const Yn=c.forwardRef(({className:e,...t},n)=>{var r;return v.jsx(On,{ref:n,className:V("ksjsui-flex ksjsui-size-full ksjsui-items-center ksjsui-justify-center ksjsui-rounded-full ksjsui-bg-muted",e),style:{...Si((r=t.children)==null?void 0:r.toString(),Un)},...t})});Yn.displayName=On.displayName;function Si(e="",t=Un){const n=e.substring(0,2),r=ji(n)%t.length,o=t[r],s=Ei(o);return{backgroundColor:o,color:s}}function ji(e){const t=e.substring(0,2);return t.split("").reduce((r,o,s)=>r+t.charCodeAt(s),0)}function Ei(e){return e==="#fff"?"#000":"#fff"}const Mi=et(["ksjsui-inline-flex ksjsui-items-center ksjsui-justify-center ksjsui-whitespace-nowrap ksjsui-border ksjsui-border-transparent ksjsui-p-2 ksjsui-text-base ksjsui-font-medium ksjsui-ring-offset-background ksjsui-transition-colors","focus-visible:ksjsui-outline-none focus-visible:ksjsui-ring-2 focus-visible:ksjsui-ring-ring focus-visible:ksjsui-ring-offset-2","disabled:ksjsui-pointer-events-none disabled:ksjsui-cursor-not-allowed disabled:ksjsui-bg-disabled disabled:ksjsui-text-disabled-foreground","forced-colors:ksjsui-border-button-border forced-colors:ksjsui-bg-button-face forced-colors:ksjsui-text-button-text","forced-colors:hover:ksjsui-border-highlight","forced-colors:disabled:ksjsui-border-gray-text","[&_svg]:ksjsui-pointer-events-none [&_svg]:ksjsui-shrink-0"],{variants:{variant:{solid:"",outline:"ksjsui-border-current ksjsui-text-secondary hover:ksjsui-bg-neutral-hover",plain:"ksjsui-bg-transparent",link:"ksjsui-underline-current ksjsui-h-auto ksjsui-p-0 ksjsui-text-secondary hover:ksjsui-underline"},color:{neutral:"",primary:"",secondary:""},fullWidth:{true:"ksjsui-w-full"},avatar:{true:"ksjsui-p-0"},iconOnly:{true:""},radius:{md:"ksjsui-rounded-lg",full:"ksjsui-rounded-full"},size:{sm:"ksjsui-h-8 [&_svg]:ksjsui-size-5",md:"ksjsui-h-9 [&_svg]:ksjsui-size-5",lg:"ksjsui-h-10 [&_svg]:ksjsui-size-6"}},defaultVariants:{variant:"solid",color:"neutral",fullWidth:void 0,radius:"md",size:"md"},compoundVariants:[{variant:"solid",color:"neutral",className:"ksjsui-bg-neutral ksjsui-text-neutral-foreground hover:ksjsui-bg-neutral-hover"},{variant:"solid",color:"primary",className:"ksjsui-bg-primary ksjsui-text-primary-foreground hover:ksjsui-bg-primary-hover"},{variant:"solid",color:"secondary",className:"ksjsui-bg-secondary ksjsui-text-secondary-foreground hover:ksjsui-bg-secondary-hover"},{variant:["outline","plain","link"],color:"neutral",className:"ksjsui-text-neutral-foreground"},{variant:["outline","plain","link"],color:"primary",className:"ksjsui-text-primary"},{variant:["outline","plain","link"],color:"secondary",className:"ksjsui-text-secondary"},{avatar:!0,size:"sm",className:"ksjsui-size-8 ksjsui-rounded-full ksjsui-border-0"},{avatar:!0,size:"md",className:"ksjsui-size-9 ksjsui-rounded-full ksjsui-border-0"},{avatar:!0,size:"lg",className:"ksjsui-size-10 ksjsui-rounded-full ksjsui-border-0"},{iconOnly:!0,size:"sm",className:"ksjsui-w-8"},{iconOnly:!0,size:"md",className:"ksjsui-w-9"},{iconOnly:!0,size:"lg",className:"ksjsui-w-10"}]}),Ot=c.forwardRef(({className:e,endContent:t,startContent:n,variant:r,color:o,fullWidth:s,avatar:a,iconOnly:i,radius:u,size:l,asChild:f,children:d,tabIndex:m=0,...h},g)=>{const p=f?ee:"button";return v.jsxs(p,{className:V(Mi({variant:r,color:o,fullWidth:s,avatar:a,iconOnly:i,radius:u,size:l,className:e})),ref:g,tabIndex:m,...h,children:[n&&v.jsx("span",{className:"ksjsui-me-2",children:n}),v.jsx(xn,{children:d}),t&&v.jsx("span",{className:"ksjsui-ms-2",children:t})]})});Ot.displayName="Button";function O(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function tt({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Ai({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:r,i=X(n),u=c.useCallback(l=>{if(s){const d=typeof l=="function"?l(e):l;d!==e&&i(d)}else o(l)},[s,e,o,i]);return[a,u]}function Ai({defaultProp:e,onChange:t}){const n=c.useState(e),[r]=n,o=c.useRef(r),s=X(t);return c.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}var Pi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Y=Pi.reduce((e,t)=>{const n=c.forwardRef((r,o)=>{const{asChild:s,...a}=r,i=s?ee:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(i,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Xn(e,t){e&&yn.flushSync(()=>e.dispatchEvent(t))}function qn(e){const t=e+"CollectionProvider",[n,r]=ye(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:g,children:p}=h,b=U.useRef(null),w=U.useRef(new Map).current;return v.jsx(o,{scope:g,itemMap:w,collectionRef:b,children:p})};a.displayName=t;const i=e+"CollectionSlot",u=U.forwardRef((h,g)=>{const{scope:p,children:b}=h,w=s(i,p),y=H(g,w.collectionRef);return v.jsx(ee,{ref:y,children:b})});u.displayName=i;const l=e+"CollectionItemSlot",f="data-radix-collection-item",d=U.forwardRef((h,g)=>{const{scope:p,children:b,...w}=h,y=U.useRef(null),k=H(g,y),x=s(l,p);return U.useEffect(()=>(x.itemMap.set(y,{ref:y,...w}),()=>void x.itemMap.delete(y))),v.jsx(ee,{[f]:"",ref:k,children:b})});d.displayName=l;function m(h){const g=s(e+"CollectionConsumer",h);return U.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const w=Array.from(b.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((x,C)=>w.indexOf(x.ref.current)-w.indexOf(C.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:a,Slot:u,ItemSlot:d},m,r]}var Zn=c.createContext(void 0),Ni=e=>{const{dir:t,children:n}=e;return v.jsx(Zn.Provider,{value:t,children:n})};function _t(e){const t=c.useContext(Zn);return e||t||"ltr"}function Oi(e,t=globalThis==null?void 0:globalThis.document){const n=X(e);c.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var _i="DismissableLayer",It="dismissableLayer.update",Ii="dismissableLayer.pointerDownOutside",Ti="dismissableLayer.focusOutside",Qn,Jn=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),er=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...u}=e,l=c.useContext(Jn),[f,d]=c.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=c.useState({}),g=H(t,j=>d(j)),p=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),w=p.indexOf(b),y=f?p.indexOf(f):-1,k=l.layersWithOutsidePointerEventsDisabled.size>0,x=y>=w,C=Li(j=>{const M=j.target,R=[...l.branches].some(_=>_.contains(M));!x||R||(o==null||o(j),a==null||a(j),j.defaultPrevented||i==null||i())},m),E=Fi(j=>{const M=j.target;[...l.branches].some(_=>_.contains(M))||(s==null||s(j),a==null||a(j),j.defaultPrevented||i==null||i())},m);return Oi(j=>{y===l.layers.size-1&&(r==null||r(j),!j.defaultPrevented&&i&&(j.preventDefault(),i()))},m),c.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Qn=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),tr(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Qn)}},[f,m,n,l]),c.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),tr())},[f,l]),c.useEffect(()=>{const j=()=>h({});return document.addEventListener(It,j),()=>document.removeEventListener(It,j)},[]),v.jsx(Y.div,{...u,ref:g,style:{pointerEvents:k?x?"auto":"none":void 0,...e.style},onFocusCapture:O(e.onFocusCapture,E.onFocusCapture),onBlurCapture:O(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:O(e.onPointerDownCapture,C.onPointerDownCapture)})});er.displayName=_i;var Ri="DismissableLayerBranch",Di=c.forwardRef((e,t)=>{const n=c.useContext(Jn),r=c.useRef(null),o=H(t,r);return c.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),v.jsx(Y.div,{...e,ref:o})});Di.displayName=Ri;function Li(e,t=globalThis==null?void 0:globalThis.document){const n=X(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let u=function(){nr(Ii,n,l,{discrete:!0})};const l={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Fi(e,t=globalThis==null?void 0:globalThis.document){const n=X(e),r=c.useRef(!1);return c.useEffect(()=>{const o=s=>{s.target&&!r.current&&nr(Ti,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function tr(){const e=new CustomEvent(It);document.dispatchEvent(e)}function nr(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Xn(o,s):o.dispatchEvent(s)}var Tt=0;function $i(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??rr()),document.body.insertAdjacentElement("beforeend",e[1]??rr()),Tt++,()=>{Tt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Tt--}},[])}function rr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Rt="focusScope.autoFocusOnMount",Dt="focusScope.autoFocusOnUnmount",or={bubbles:!1,cancelable:!0},zi="FocusScope",sr=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,u]=c.useState(null),l=X(o),f=X(s),d=c.useRef(null),m=H(t,p=>u(p)),h=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let p=function(k){if(h.paused||!i)return;const x=k.target;i.contains(x)?d.current=x:he(d.current,{select:!0})},b=function(k){if(h.paused||!i)return;const x=k.relatedTarget;x!==null&&(i.contains(x)||he(d.current,{select:!0}))},w=function(k){if(document.activeElement===document.body)for(const C of k)C.removedNodes.length>0&&he(i)};document.addEventListener("focusin",p),document.addEventListener("focusout",b);const y=new MutationObserver(w);return i&&y.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",b),y.disconnect()}}},[r,i,h.paused]),c.useEffect(()=>{if(i){cr.add(h);const p=document.activeElement;if(!i.contains(p)){const w=new CustomEvent(Rt,or);i.addEventListener(Rt,l),i.dispatchEvent(w),w.defaultPrevented||(Bi(Ki(ir(i)),{select:!0}),document.activeElement===p&&he(i))}return()=>{i.removeEventListener(Rt,l),setTimeout(()=>{const w=new CustomEvent(Dt,or);i.addEventListener(Dt,f),i.dispatchEvent(w),w.defaultPrevented||he(p??document.body,{select:!0}),i.removeEventListener(Dt,f),cr.remove(h)},0)}}},[i,l,f,h]);const g=c.useCallback(p=>{if(!n&&!r||h.paused)return;const b=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,w=document.activeElement;if(b&&w){const y=p.currentTarget,[k,x]=Wi(y);k&&x?!p.shiftKey&&w===x?(p.preventDefault(),n&&he(k,{select:!0})):p.shiftKey&&w===k&&(p.preventDefault(),n&&he(x,{select:!0})):w===y&&p.preventDefault()}},[n,r,h.paused]);return v.jsx(Y.div,{tabIndex:-1,...a,ref:m,onKeyDown:g})});sr.displayName=zi;function Bi(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(he(r,{select:t}),document.activeElement!==n)return}function Wi(e){const t=ir(e),n=ar(t,e),r=ar(t.reverse(),e);return[n,r]}function ir(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ar(e,t){for(const n of e)if(!Gi(n,{upTo:t}))return n}function Gi(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Vi(e){return e instanceof HTMLInputElement&&"select"in e}function he(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Vi(e)&&t&&e.select()}}var cr=Ui();function Ui(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=lr(e,t),e.unshift(t)},remove(t){var n;e=lr(e,t),(n=e[0])==null||n.resume()}}}function lr(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ki(e){return e.filter(t=>t.tagName!=="A")}var Hi=c.useId||(()=>{}),Yi=0;function Le(e){const[t,n]=c.useState(Hi());return ce(()=>{e||n(r=>r??String(Yi++))},[e]),e||(t?`radix-${t}`:"")}const Xi=["top","right","bottom","left"],ge=Math.min,q=Math.max,nt=Math.round,rt=Math.floor,re=e=>({x:e,y:e}),qi={left:"right",right:"left",bottom:"top",top:"bottom"},Zi={start:"end",end:"start"};function Lt(e,t,n){return q(e,ge(t,n))}function ue(e,t){return typeof e=="function"?e(t):e}function de(e){return e.split("-")[0]}function Ee(e){return e.split("-")[1]}function Ft(e){return e==="x"?"y":"x"}function $t(e){return e==="y"?"height":"width"}function ve(e){return["top","bottom"].includes(de(e))?"y":"x"}function zt(e){return Ft(ve(e))}function Qi(e,t,n){n===void 0&&(n=!1);const r=Ee(e),o=zt(e),s=$t(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=ot(a)),[a,ot(a)]}function Ji(e){const t=ot(e);return[Bt(e),t,Bt(t)]}function Bt(e){return e.replace(/start|end/g,t=>Zi[t])}function ea(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:a;default:return[]}}function ta(e,t,n,r){const o=Ee(e);let s=ea(de(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(Bt)))),s}function ot(e){return e.replace(/left|right|bottom|top/g,t=>qi[t])}function na(e){return{top:0,right:0,bottom:0,left:0,...e}}function ur(e){return typeof e!="number"?na(e):{top:e,right:e,bottom:e,left:e}}function st(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function dr(e,t,n){let{reference:r,floating:o}=e;const s=ve(t),a=zt(t),i=$t(a),u=de(t),l=s==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let h;switch(u){case"top":h={x:f,y:r.y-o.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Ee(t)){case"start":h[a]-=m*(n&&l?-1:1);break;case"end":h[a]+=m*(n&&l?-1:1);break}return h}const ra=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=s.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=dr(l,r,u),m=r,h={},g=0;for(let p=0;p<i.length;p++){const{name:b,fn:w}=i[p],{x:y,y:k,data:x,reset:C}=await w({x:f,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:l,platform:a,elements:{reference:e,floating:t}});f=y??f,d=k??d,h={...h,[b]:{...h[b],...x}},C&&g<=50&&(g++,typeof C=="object"&&(C.placement&&(m=C.placement),C.rects&&(l=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:f,y:d}=dr(l,m,u)),p=-1)}return{x:f,y:d,placement:m,strategy:o,middlewareData:h}};async function Fe(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:h=0}=ue(t,e),g=ur(h),b=i[m?d==="floating"?"reference":"floating":d],w=st(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:l,rootBoundary:f,strategy:u})),y=d==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),x=await(s.isElement==null?void 0:s.isElement(k))?await(s.getScale==null?void 0:s.getScale(k))||{x:1,y:1}:{x:1,y:1},C=st(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:k,strategy:u}):y);return{top:(w.top-C.top+g.top)/x.y,bottom:(C.bottom-w.bottom+g.bottom)/x.y,left:(w.left-C.left+g.left)/x.x,right:(C.right-w.right+g.right)/x.x}}const oa=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:u}=t,{element:l,padding:f=0}=ue(e,t)||{};if(l==null)return{};const d=ur(f),m={x:n,y:r},h=zt(o),g=$t(h),p=await a.getDimensions(l),b=h==="y",w=b?"top":"left",y=b?"bottom":"right",k=b?"clientHeight":"clientWidth",x=s.reference[g]+s.reference[h]-m[h]-s.floating[g],C=m[h]-s.reference[h],E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let j=E?E[k]:0;(!j||!await(a.isElement==null?void 0:a.isElement(E)))&&(j=i.floating[k]||s.floating[g]);const M=x/2-C/2,R=j/2-p[g]/2-1,_=ge(d[w],R),F=ge(d[y],R),A=_,L=j-p[g]-F,D=j/2-p[g]/2+M,G=Lt(A,D,L),I=!u.arrow&&Ee(o)!=null&&D!==G&&s.reference[g]/2-(D<A?_:F)-p[g]/2<0,W=I?D<A?D-A:D-L:0;return{[h]:m[h]+W,data:{[h]:G,centerOffset:D-G-W,...I&&{alignmentOffset:W}},reset:I}}}),sa=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:u,elements:l}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...b}=ue(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=de(o),y=ve(i),k=de(i)===i,x=await(u.isRTL==null?void 0:u.isRTL(l.floating)),C=m||(k||!p?[ot(i)]:Ji(i)),E=g!=="none";!m&&E&&C.push(...ta(i,p,g,x));const j=[i,...C],M=await Fe(t,b),R=[];let _=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&R.push(M[w]),d){const D=Qi(o,a,x);R.push(M[D[0]],M[D[1]])}if(_=[..._,{placement:o,overflows:R}],!R.every(D=>D<=0)){var F,A;const D=(((F=s.flip)==null?void 0:F.index)||0)+1,G=j[D];if(G)return{data:{index:D,overflows:_},reset:{placement:G}};let I=(A=_.filter(W=>W.overflows[0]<=0).sort((W,P)=>W.overflows[1]-P.overflows[1])[0])==null?void 0:A.placement;if(!I)switch(h){case"bestFit":{var L;const W=(L=_.filter(P=>{if(E){const S=ve(P.placement);return S===y||S==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(S=>S>0).reduce((S,$)=>S+$,0)]).sort((P,S)=>P[1]-S[1])[0])==null?void 0:L[0];W&&(I=W);break}case"initialPlacement":I=i;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function fr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function pr(e){return Xi.some(t=>e[t]>=0)}const ia=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ue(e,t);switch(r){case"referenceHidden":{const s=await Fe(t,{...o,elementContext:"reference"}),a=fr(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:pr(a)}}}case"escaped":{const s=await Fe(t,{...o,altBoundary:!0}),a=fr(s,n.floating);return{data:{escapedOffsets:a,escaped:pr(a)}}}default:return{}}}}};async function aa(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=de(n),i=Ee(n),u=ve(n)==="y",l=["left","top"].includes(a)?-1:1,f=s&&u?-1:1,d=ue(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof g=="number"&&(h=i==="end"?g*-1:g),u?{x:h*f,y:m*l}:{x:m*l,y:h*f}}const ca=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,u=await aa(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:a}}}}},la=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:b=>{let{x:w,y}=b;return{x:w,y}}},...u}=ue(e,t),l={x:n,y:r},f=await Fe(t,u),d=ve(de(o)),m=Ft(d);let h=l[m],g=l[d];if(s){const b=m==="y"?"top":"left",w=m==="y"?"bottom":"right",y=h+f[b],k=h-f[w];h=Lt(y,h,k)}if(a){const b=d==="y"?"top":"left",w=d==="y"?"bottom":"right",y=g+f[b],k=g-f[w];g=Lt(y,g,k)}const p=i.fn({...t,[m]:h,[d]:g});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[m]:s,[d]:a}}}}}},ua=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:u=!0,crossAxis:l=!0}=ue(e,t),f={x:n,y:r},d=ve(o),m=Ft(d);let h=f[m],g=f[d];const p=ue(i,t),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(u){const k=m==="y"?"height":"width",x=s.reference[m]-s.floating[k]+b.mainAxis,C=s.reference[m]+s.reference[k]-b.mainAxis;h<x?h=x:h>C&&(h=C)}if(l){var w,y;const k=m==="y"?"width":"height",x=["top","left"].includes(de(o)),C=s.reference[d]-s.floating[k]+(x&&((w=a.offset)==null?void 0:w[d])||0)+(x?0:b.crossAxis),E=s.reference[d]+s.reference[k]+(x?0:((y=a.offset)==null?void 0:y[d])||0)-(x?b.crossAxis:0);g<C?g=C:g>E&&(g=E)}return{[m]:h,[d]:g}}}},da=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:u=()=>{},...l}=ue(e,t),f=await Fe(t,l),d=de(o),m=Ee(o),h=ve(o)==="y",{width:g,height:p}=s.floating;let b,w;d==="top"||d==="bottom"?(b=d,w=m===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(w=d,b=m==="end"?"top":"bottom");const y=p-f.top-f.bottom,k=g-f.left-f.right,x=ge(p-f[b],y),C=ge(g-f[w],k),E=!t.middlewareData.shift;let j=x,M=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(M=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=y),E&&!m){const _=q(f.left,0),F=q(f.right,0),A=q(f.top,0),L=q(f.bottom,0);h?M=g-2*(_!==0||F!==0?_+F:q(f.left,f.right)):j=p-2*(A!==0||L!==0?A+L:q(f.top,f.bottom))}await u({...t,availableWidth:M,availableHeight:j});const R=await a.getDimensions(i.floating);return g!==R.width||p!==R.height?{reset:{rects:!0}}:{}}}};function it(){return typeof window<"u"}function Me(e){return mr(e)?(e.nodeName||"").toLowerCase():"#document"}function Z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function oe(e){var t;return(t=(mr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function mr(e){return it()?e instanceof Node||e instanceof Z(e).Node:!1}function te(e){return it()?e instanceof Element||e instanceof Z(e).Element:!1}function se(e){return it()?e instanceof HTMLElement||e instanceof Z(e).HTMLElement:!1}function hr(e){return!it()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Z(e).ShadowRoot}function $e(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ne(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function fa(e){return["table","td","th"].includes(Me(e))}function at(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Wt(e){const t=Gt(),n=te(e)?ne(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function pa(e){let t=be(e);for(;se(t)&&!Ae(t);){if(Wt(t))return t;if(at(t))return null;t=be(t)}return null}function Gt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ae(e){return["html","body","#document"].includes(Me(e))}function ne(e){return Z(e).getComputedStyle(e)}function ct(e){return te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function be(e){if(Me(e)==="html")return e;const t=e.assignedSlot||e.parentNode||hr(e)&&e.host||oe(e);return hr(t)?t.host:t}function gr(e){const t=be(e);return Ae(t)?e.ownerDocument?e.ownerDocument.body:e.body:se(t)&&$e(t)?t:gr(t)}function ze(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=gr(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=Z(o);if(s){const i=Vt(a);return t.concat(a,a.visualViewport||[],$e(o)?o:[],i&&n?ze(i):[])}return t.concat(o,ze(o,[],n))}function Vt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function vr(e){const t=ne(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=se(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=nt(n)!==s||nt(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function Ut(e){return te(e)?e:e.contextElement}function Pe(e){const t=Ut(e);if(!se(t))return re(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=vr(t);let a=(s?nt(n.width):n.width)/r,i=(s?nt(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const ma=re(0);function br(e){const t=Z(e);return!Gt()||!t.visualViewport?ma:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ha(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Z(e)?!1:t}function ke(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Ut(e);let a=re(1);t&&(r?te(r)&&(a=Pe(r)):a=Pe(e));const i=ha(s,n,r)?br(s):re(0);let u=(o.left+i.x)/a.x,l=(o.top+i.y)/a.y,f=o.width/a.x,d=o.height/a.y;if(s){const m=Z(s),h=r&&te(r)?Z(r):r;let g=m,p=Vt(g);for(;p&&r&&h!==g;){const b=Pe(p),w=p.getBoundingClientRect(),y=ne(p),k=w.left+(p.clientLeft+parseFloat(y.paddingLeft))*b.x,x=w.top+(p.clientTop+parseFloat(y.paddingTop))*b.y;u*=b.x,l*=b.y,f*=b.x,d*=b.y,u+=k,l+=x,g=Z(p),p=Vt(g)}}return st({width:f,height:d,x:u,y:l})}function Kt(e,t){const n=ct(e).scrollLeft;return t?t.left+n:ke(oe(e)).left+n}function wr(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Kt(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function ga(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=oe(r),i=t?at(t.floating):!1;if(r===a||i&&s)return n;let u={scrollLeft:0,scrollTop:0},l=re(1);const f=re(0),d=se(r);if((d||!d&&!s)&&((Me(r)!=="body"||$e(a))&&(u=ct(r)),se(r))){const h=ke(r);l=Pe(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const m=a&&!d&&!s?wr(a,u,!0):re(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+f.x+m.x,y:n.y*l.y-u.scrollTop*l.y+f.y+m.y}}function va(e){return Array.from(e.getClientRects())}function ba(e){const t=oe(e),n=ct(e),r=e.ownerDocument.body,o=q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Kt(e);const i=-n.scrollTop;return ne(r).direction==="rtl"&&(a+=q(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}function wa(e,t){const n=Z(e),r=oe(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,u=0;if(o){s=o.width,a=o.height;const l=Gt();(!l||l&&t==="fixed")&&(i=o.offsetLeft,u=o.offsetTop)}return{width:s,height:a,x:i,y:u}}function ya(e,t){const n=ke(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=se(e)?Pe(e):re(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,u=o*s.x,l=r*s.y;return{width:a,height:i,x:u,y:l}}function yr(e,t,n){let r;if(t==="viewport")r=wa(e,n);else if(t==="document")r=ba(oe(e));else if(te(t))r=ya(t,n);else{const o=br(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return st(r)}function kr(e,t){const n=be(e);return n===t||!te(n)||Ae(n)?!1:ne(n).position==="fixed"||kr(n,t)}function ka(e,t){const n=t.get(e);if(n)return n;let r=ze(e,[],!1).filter(i=>te(i)&&Me(i)!=="body"),o=null;const s=ne(e).position==="fixed";let a=s?be(e):e;for(;te(a)&&!Ae(a);){const i=ne(a),u=Wt(a);!u&&i.position==="fixed"&&(o=null),(s?!u&&!o:!u&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||$e(a)&&!u&&kr(e,a))?r=r.filter(f=>f!==a):o=i,a=be(a)}return t.set(e,r),r}function xa(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?at(t)?[]:ka(t,this._c):[].concat(n),r],i=a[0],u=a.reduce((l,f)=>{const d=yr(t,f,o);return l.top=q(d.top,l.top),l.right=ge(d.right,l.right),l.bottom=ge(d.bottom,l.bottom),l.left=q(d.left,l.left),l},yr(t,i,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Ca(e){const{width:t,height:n}=vr(e);return{width:t,height:n}}function Sa(e,t,n){const r=se(t),o=oe(t),s=n==="fixed",a=ke(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const u=re(0);if(r||!r&&!s)if((Me(t)!=="body"||$e(o))&&(i=ct(t)),r){const m=ke(t,!0,s,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else o&&(u.x=Kt(o));const l=o&&!r&&!s?wr(o,i):re(0),f=a.left+i.scrollLeft-u.x-l.x,d=a.top+i.scrollTop-u.y-l.y;return{x:f,y:d,width:a.width,height:a.height}}function Ht(e){return ne(e).position==="static"}function xr(e,t){if(!se(e)||ne(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return oe(e)===n&&(n=n.ownerDocument.body),n}function Cr(e,t){const n=Z(e);if(at(e))return n;if(!se(e)){let o=be(e);for(;o&&!Ae(o);){if(te(o)&&!Ht(o))return o;o=be(o)}return n}let r=xr(e,t);for(;r&&fa(r)&&Ht(r);)r=xr(r,t);return r&&Ae(r)&&Ht(r)&&!Wt(r)?n:r||pa(e)||n}const ja=async function(e){const t=this.getOffsetParent||Cr,n=this.getDimensions,r=await n(e.floating);return{reference:Sa(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ea(e){return ne(e).direction==="rtl"}const Ma={convertOffsetParentRelativeRectToViewportRelativeRect:ga,getDocumentElement:oe,getClippingRect:xa,getOffsetParent:Cr,getElementRects:ja,getClientRects:va,getDimensions:Ca,getScale:Pe,isElement:te,isRTL:Ea};function Aa(e,t){let n=null,r;const o=oe(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),s();const{left:l,top:f,width:d,height:m}=e.getBoundingClientRect();if(i||t(),!d||!m)return;const h=rt(f),g=rt(o.clientWidth-(l+d)),p=rt(o.clientHeight-(f+m)),b=rt(l),y={rootMargin:-h+"px "+-g+"px "+-p+"px "+-b+"px",threshold:q(0,ge(1,u))||1};let k=!0;function x(C){const E=C[0].intersectionRatio;if(E!==u){if(!k)return a();E?a(!1,E):r=setTimeout(()=>{a(!1,1e-7)},1e3)}k=!1}try{n=new IntersectionObserver(x,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,y)}n.observe(e)}return a(!0),s}function Pa(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=Ut(e),f=o||s?[...l?ze(l):[],...ze(t)]:[];f.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const d=l&&i?Aa(l,n):null;let m=-1,h=null;a&&(h=new ResizeObserver(w=>{let[y]=w;y&&y.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var k;(k=h)==null||k.observe(t)})),n()}),l&&!u&&h.observe(l),h.observe(t));let g,p=u?ke(e):null;u&&b();function b(){const w=ke(e);p&&(w.x!==p.x||w.y!==p.y||w.width!==p.width||w.height!==p.height)&&n(),p=w,g=requestAnimationFrame(b)}return n(),()=>{var w;f.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),d==null||d(),(w=h)==null||w.disconnect(),h=null,u&&cancelAnimationFrame(g)}}const Na=ca,Oa=la,_a=sa,Ia=da,Ta=ia,Sr=oa,Ra=ua,Da=(e,t,n)=>{const r=new Map,o={platform:Ma,...n},s={...o.platform,_c:r};return ra(e,t,{...o,platform:s})};var lt=typeof document<"u"?U.useLayoutEffect:U.useEffect;function ut(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ut(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!ut(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function jr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Er(e,t){const n=jr(e);return Math.round(t*n)/n}function Yt(e){const t=c.useRef(e);return lt(()=>{t.current=e}),t}function La(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:u,open:l}=e,[f,d]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=c.useState(r);ut(m,r)||h(r);const[g,p]=c.useState(null),[b,w]=c.useState(null),y=c.useCallback(P=>{P!==E.current&&(E.current=P,p(P))},[]),k=c.useCallback(P=>{P!==j.current&&(j.current=P,w(P))},[]),x=s||g,C=a||b,E=c.useRef(null),j=c.useRef(null),M=c.useRef(f),R=u!=null,_=Yt(u),F=Yt(o),A=Yt(l),L=c.useCallback(()=>{if(!E.current||!j.current)return;const P={placement:t,strategy:n,middleware:m};F.current&&(P.platform=F.current),Da(E.current,j.current,P).then(S=>{const $={...S,isPositioned:A.current!==!1};D.current&&!ut(M.current,$)&&(M.current=$,yn.flushSync(()=>{d($)}))})},[m,t,n,F,A]);lt(()=>{l===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[l]);const D=c.useRef(!1);lt(()=>(D.current=!0,()=>{D.current=!1}),[]),lt(()=>{if(x&&(E.current=x),C&&(j.current=C),x&&C){if(_.current)return _.current(x,C,L);L()}},[x,C,L,_,R]);const G=c.useMemo(()=>({reference:E,floating:j,setReference:y,setFloating:k}),[y,k]),I=c.useMemo(()=>({reference:x,floating:C}),[x,C]),W=c.useMemo(()=>{const P={position:n,left:0,top:0};if(!I.floating)return P;const S=Er(I.floating,f.x),$=Er(I.floating,f.y);return i?{...P,transform:"translate("+S+"px, "+$+"px)",...jr(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:S,top:$}},[n,i,I.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:L,refs:G,elements:I,floatingStyles:W}),[f,L,G,I,W])}const Fa=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Sr({element:r.current,padding:o}).fn(n):{}:r?Sr({element:r,padding:o}).fn(n):{}}}},$a=(e,t)=>({...Na(e),options:[e,t]}),za=(e,t)=>({...Oa(e),options:[e,t]}),Ba=(e,t)=>({...Ra(e),options:[e,t]}),Wa=(e,t)=>({..._a(e),options:[e,t]}),Ga=(e,t)=>({...Ia(e),options:[e,t]}),Va=(e,t)=>({...Ta(e),options:[e,t]}),Ua=(e,t)=>({...Fa(e),options:[e,t]});var Ka="Arrow",Mr=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return v.jsx(Y.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});Mr.displayName=Ka;var Ha=Mr;function Ar(e){const[t,n]=c.useState(void 0);return ce(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const u=s.borderBoxSize,l=Array.isArray(u)?u[0]:u;a=l.inlineSize,i=l.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Xt="Popper",[Pr,Nr]=ye(Xt),[Ya,Or]=Pr(Xt),_r=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null);return v.jsx(Ya,{scope:t,anchor:r,onAnchorChange:o,children:n})};_r.displayName=Xt;var Ir="PopperAnchor",Tr=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Or(Ir,n),a=c.useRef(null),i=H(t,a);return c.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:v.jsx(Y.div,{...o,ref:i})});Tr.displayName=Ir;var qt="PopperContent",[Xa,qa]=Pr(qt),Rr=c.forwardRef((e,t)=>{var fe,qe,J,Ze,Is,Ts;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:g,...p}=e,b=Or(qt,n),[w,y]=c.useState(null),k=H(t,Qe=>y(Qe)),[x,C]=c.useState(null),E=Ar(x),j=(E==null?void 0:E.width)??0,M=(E==null?void 0:E.height)??0,R=r+(s!=="center"?"-"+s:""),_=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},F=Array.isArray(l)?l:[l],A=F.length>0,L={padding:_,boundary:F.filter(Qa),altBoundary:A},{refs:D,floatingStyles:G,placement:I,isPositioned:W,middlewareData:P}=La({strategy:"fixed",placement:R,whileElementsMounted:(...Qe)=>Pa(...Qe,{animationFrame:h==="always"}),elements:{reference:b.anchor},middleware:[$a({mainAxis:o+M,alignmentAxis:a}),u&&za({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Ba():void 0,...L}),u&&Wa({...L}),Ga({...L,apply:({elements:Qe,rects:Rs,availableWidth:Gu,availableHeight:Vu})=>{const{width:Uu,height:Ku}=Rs.reference,St=Qe.floating.style;St.setProperty("--radix-popper-available-width",`${Gu}px`),St.setProperty("--radix-popper-available-height",`${Vu}px`),St.setProperty("--radix-popper-anchor-width",`${Uu}px`),St.setProperty("--radix-popper-anchor-height",`${Ku}px`)}}),x&&Ua({element:x,padding:i}),Ja({arrowWidth:j,arrowHeight:M}),m&&Va({strategy:"referenceHidden",...L})]}),[S,$]=Fr(I),B=X(g);ce(()=>{W&&(B==null||B())},[W,B]);const ae=(fe=P.arrow)==null?void 0:fe.x,Ye=(qe=P.arrow)==null?void 0:qe.y,Xe=((J=P.arrow)==null?void 0:J.centerOffset)!==0,[Ct,Ce]=c.useState();return ce(()=>{w&&Ce(window.getComputedStyle(w).zIndex)},[w]),v.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:W?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ct,"--radix-popper-transform-origin":[(Ze=P.transformOrigin)==null?void 0:Ze.x,(Is=P.transformOrigin)==null?void 0:Is.y].join(" "),...((Ts=P.hide)==null?void 0:Ts.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(Xa,{scope:n,placedSide:S,onArrowChange:C,arrowX:ae,arrowY:Ye,shouldHideArrow:Xe,children:v.jsx(Y.div,{"data-side":S,"data-align":$,...p,ref:k,style:{...p.style,animation:W?void 0:"none"}})})})});Rr.displayName=qt;var Dr="PopperArrow",Za={top:"bottom",right:"left",bottom:"top",left:"right"},Lr=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=qa(Dr,r),a=Za[s.placedSide];return v.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:v.jsx(Ha,{...o,ref:n,style:{...o.style,display:"block"}})})});Lr.displayName=Dr;function Qa(e){return e!==null}var Ja=e=>({name:"transformOrigin",options:e,fn(t){var b,w,y;const{placement:n,rects:r,middlewareData:o}=t,a=((b=o.arrow)==null?void 0:b.centerOffset)!==0,i=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[l,f]=Fr(n),d={start:"0%",center:"50%",end:"100%"}[f],m=(((w=o.arrow)==null?void 0:w.x)??0)+i/2,h=(((y=o.arrow)==null?void 0:y.y)??0)+u/2;let g="",p="";return l==="bottom"?(g=a?d:`${m}px`,p=`${-u}px`):l==="top"?(g=a?d:`${m}px`,p=`${r.floating.height+u}px`):l==="right"?(g=`${-u}px`,p=a?d:`${h}px`):l==="left"&&(g=`${r.floating.width+u}px`,p=a?d:`${h}px`),{data:{x:g,y:p}}}});function Fr(e){const[t,n="center"]=e.split("-");return[t,n]}var $r=_r,ec=Tr,tc=Rr,nc=Lr,rc="Portal",zr=c.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,s]=c.useState(!1);ce(()=>s(!0),[]);const a=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return a?bn.createPortal(v.jsx(Y.div,{...r,ref:t}),a):null});zr.displayName=rc;function oc(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var Be=e=>{const{present:t,children:n}=e,r=sc(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),s=H(r.ref,ic(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:s}):null};Be.displayName="Presence";function sc(e){const[t,n]=c.useState(),r=c.useRef({}),o=c.useRef(e),s=c.useRef("none"),a=e?"mounted":"unmounted",[i,u]=oc(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const l=dt(r.current);s.current=i==="mounted"?l:"none"},[i]),ce(()=>{const l=r.current,f=o.current;if(f!==e){const m=s.current,h=dt(l);e?u("MOUNT"):h==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(f&&m!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),ce(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,d=h=>{const p=dt(r.current).includes(h.animationName);if(h.target===t&&p&&(u("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},m=h=>{h.target===t&&(s.current=dt(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:c.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function dt(e){return(e==null?void 0:e.animationName)||"none"}function ic(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Zt="rovingFocusGroup.onEntryFocus",ac={bubbles:!1,cancelable:!0},ft="RovingFocusGroup",[Qt,Br,cc]=qn(ft),[lc,Wr]=ye(ft,[cc]),[uc,dc]=lc(ft),Gr=c.forwardRef((e,t)=>v.jsx(Qt.Provider,{scope:e.__scopeRovingFocusGroup,children:v.jsx(Qt.Slot,{scope:e.__scopeRovingFocusGroup,children:v.jsx(fc,{...e,ref:t})})}));Gr.displayName=ft;var fc=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:f=!1,...d}=e,m=c.useRef(null),h=H(t,m),g=_t(s),[p=null,b]=tt({prop:a,defaultProp:i,onChange:u}),[w,y]=c.useState(!1),k=X(l),x=Br(n),C=c.useRef(!1),[E,j]=c.useState(0);return c.useEffect(()=>{const M=m.current;if(M)return M.addEventListener(Zt,k),()=>M.removeEventListener(Zt,k)},[k]),v.jsx(uc,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:p,onItemFocus:c.useCallback(M=>b(M),[b]),onItemShiftTab:c.useCallback(()=>y(!0),[]),onFocusableItemAdd:c.useCallback(()=>j(M=>M+1),[]),onFocusableItemRemove:c.useCallback(()=>j(M=>M-1),[]),children:v.jsx(Y.div,{tabIndex:w||E===0?-1:0,"data-orientation":r,...d,ref:h,style:{outline:"none",...e.style},onMouseDown:O(e.onMouseDown,()=>{C.current=!0}),onFocus:O(e.onFocus,M=>{const R=!C.current;if(M.target===M.currentTarget&&R&&!w){const _=new CustomEvent(Zt,ac);if(M.currentTarget.dispatchEvent(_),!_.defaultPrevented){const F=x().filter(I=>I.focusable),A=F.find(I=>I.active),L=F.find(I=>I.id===p),G=[A,L,...F].filter(Boolean).map(I=>I.ref.current);Kr(G,f)}}C.current=!1}),onBlur:O(e.onBlur,()=>y(!1))})})}),Vr="RovingFocusGroupItem",Ur=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,...a}=e,i=Le(),u=s||i,l=dc(Vr,n),f=l.currentTabStopId===u,d=Br(n),{onFocusableItemAdd:m,onFocusableItemRemove:h}=l;return c.useEffect(()=>{if(r)return m(),()=>h()},[r,m,h]),v.jsx(Qt.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:v.jsx(Y.span,{tabIndex:f?0:-1,"data-orientation":l.orientation,...a,ref:t,onMouseDown:O(e.onMouseDown,g=>{r?l.onItemFocus(u):g.preventDefault()}),onFocus:O(e.onFocus,()=>l.onItemFocus(u)),onKeyDown:O(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){l.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const p=hc(g,l.orientation,l.dir);if(p!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let w=d().filter(y=>y.focusable).map(y=>y.ref.current);if(p==="last")w.reverse();else if(p==="prev"||p==="next"){p==="prev"&&w.reverse();const y=w.indexOf(g.currentTarget);w=l.loop?gc(w,y+1):w.slice(y+1)}setTimeout(()=>Kr(w))}})})})});Ur.displayName=Vr;var pc={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function mc(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function hc(e,t,n){const r=mc(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return pc[r]}function Kr(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function gc(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var vc=Gr,bc=Ur,wc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ne=new WeakMap,pt=new WeakMap,mt={},Jt=0,Hr=function(e){return e&&(e.host||Hr(e.parentNode))},yc=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Hr(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},kc=function(e,t,n,r){var o=yc(t,Array.isArray(e)?e:[e]);mt[n]||(mt[n]=new WeakMap);var s=mt[n],a=[],i=new Set,u=new Set(o),l=function(d){!d||i.has(d)||(i.add(d),l(d.parentNode))};o.forEach(l);var f=function(d){!d||u.has(d)||Array.prototype.forEach.call(d.children,function(m){if(i.has(m))f(m);else try{var h=m.getAttribute(r),g=h!==null&&h!=="false",p=(Ne.get(m)||0)+1,b=(s.get(m)||0)+1;Ne.set(m,p),s.set(m,b),a.push(m),p===1&&g&&pt.set(m,!0),b===1&&m.setAttribute(n,"true"),g||m.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",m,w)}})};return f(t),i.clear(),Jt++,function(){a.forEach(function(d){var m=Ne.get(d)-1,h=s.get(d)-1;Ne.set(d,m),s.set(d,h),m||(pt.has(d)||d.removeAttribute(r),pt.delete(d)),h||d.removeAttribute(n)}),Jt--,Jt||(Ne=new WeakMap,Ne=new WeakMap,pt=new WeakMap,mt={})}},xc=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=wc(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),kc(r,o,n,"aria-hidden")):function(){return null}},ie=function(){return ie=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ie.apply(this,arguments)};function Yr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Cc(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var ht="right-scroll-bar-position",gt="width-before-scroll-bar",Sc="with-scroll-bars-hidden",jc="--removed-body-scroll-bar-size";function en(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ec(e,t){var n=U.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Mc=typeof window<"u"?c.useLayoutEffect:c.useEffect,Xr=new WeakMap;function Ac(e,t){var n=Ec(null,function(r){return e.forEach(function(o){return en(o,r)})});return Mc(function(){var r=Xr.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(i){s.has(i)||en(i,null)}),s.forEach(function(i){o.has(i)||en(i,a)})}Xr.set(n,e)},[e]),n}function Pc(e){return e}function Nc(e,t){t===void 0&&(t=Pc);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var u=function(){var f=a;a=[],f.forEach(s)},l=function(){return Promise.resolve().then(u)};l(),n={push:function(f){a.push(f),l()},filter:function(f){return a=a.filter(f),n}}}};return o}function Oc(e){e===void 0&&(e={});var t=Nc(null);return t.options=ie({async:!0,ssr:!1},e),t}var qr=function(e){var t=e.sideCar,n=Yr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,ie({},n))};qr.isSideCarExport=!0;function _c(e,t){return e.useMedium(t),qr}var Zr=Oc(),tn=function(){},vt=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:tn,onWheelCapture:tn,onTouchMoveCapture:tn}),o=r[0],s=r[1],a=e.forwardProps,i=e.children,u=e.className,l=e.removeScrollBar,f=e.enabled,d=e.shards,m=e.sideCar,h=e.noIsolation,g=e.inert,p=e.allowPinchZoom,b=e.as,w=b===void 0?"div":b,y=e.gapMode,k=Yr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=m,C=Ac([n,t]),E=ie(ie({},k),o);return c.createElement(c.Fragment,null,f&&c.createElement(x,{sideCar:Zr,removeScrollBar:l,shards:d,noIsolation:h,inert:g,setCallbacks:s,allowPinchZoom:!!p,lockRef:n,gapMode:y}),a?c.cloneElement(c.Children.only(i),ie(ie({},E),{ref:C})):c.createElement(w,ie({},E,{className:u,ref:C}),i))});vt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},vt.classNames={fullWidth:gt,zeroRight:ht};var Ic=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Tc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ic();return t&&e.setAttribute("nonce",t),e}function Rc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Dc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Lc=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Tc())&&(Rc(t,n),Dc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Fc=function(){var e=Lc();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Qr=function(){var e=Fc(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},$c={left:0,top:0,right:0,gap:0},nn=function(e){return parseInt(e||"",10)||0},zc=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[nn(n),nn(r),nn(o)]},Bc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return $c;var t=zc(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Wc=Qr(),Oe="data-scroll-locked",Gc=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
2
|
+
.`.concat(Sc,` {
|
|
3
|
+
overflow: hidden `).concat(r,`;
|
|
4
|
+
padding-right: `).concat(i,"px ").concat(r,`;
|
|
5
|
+
}
|
|
6
|
+
body[`).concat(Oe,`] {
|
|
7
|
+
overflow: hidden `).concat(r,`;
|
|
8
|
+
overscroll-behavior: contain;
|
|
9
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
10
|
+
padding-left: `.concat(o,`px;
|
|
11
|
+
padding-top: `).concat(s,`px;
|
|
12
|
+
padding-right: `).concat(a,`px;
|
|
13
|
+
margin-left:0;
|
|
14
|
+
margin-top:0;
|
|
15
|
+
margin-right: `).concat(i,"px ").concat(r,`;
|
|
16
|
+
`),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.`).concat(ht,` {
|
|
20
|
+
right: `).concat(i,"px ").concat(r,`;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.`).concat(gt,` {
|
|
24
|
+
margin-right: `).concat(i,"px ").concat(r,`;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.`).concat(ht," .").concat(ht,` {
|
|
28
|
+
right: 0 `).concat(r,`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.`).concat(gt," .").concat(gt,` {
|
|
32
|
+
margin-right: 0 `).concat(r,`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
body[`).concat(Oe,`] {
|
|
36
|
+
`).concat(jc,": ").concat(i,`px;
|
|
37
|
+
}
|
|
38
|
+
`)},Jr=function(){var e=parseInt(document.body.getAttribute(Oe)||"0",10);return isFinite(e)?e:0},Vc=function(){c.useEffect(function(){return document.body.setAttribute(Oe,(Jr()+1).toString()),function(){var e=Jr()-1;e<=0?document.body.removeAttribute(Oe):document.body.setAttribute(Oe,e.toString())}},[])},Uc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Vc();var s=c.useMemo(function(){return Bc(o)},[o]);return c.createElement(Wc,{styles:Gc(s,!t,o,n?"":"!important")})},rn=!1;if(typeof window<"u")try{var bt=Object.defineProperty({},"passive",{get:function(){return rn=!0,!0}});window.addEventListener("test",bt,bt),window.removeEventListener("test",bt,bt)}catch{rn=!1}var _e=rn?{passive:!1}:!1,Kc=function(e){return e.tagName==="TEXTAREA"},eo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Kc(e)&&n[t]==="visible")},Hc=function(e){return eo(e,"overflowY")},Yc=function(e){return eo(e,"overflowX")},to=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=no(e,r);if(o){var s=ro(e,r),a=s[1],i=s[2];if(a>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Xc=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},qc=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},no=function(e,t){return e==="v"?Hc(t):Yc(t)},ro=function(e,t){return e==="v"?Xc(t):qc(t)},Zc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Qc=function(e,t,n,r,o){var s=Zc(e,window.getComputedStyle(t).direction),a=s*r,i=n.target,u=t.contains(i),l=!1,f=a>0,d=0,m=0;do{var h=ro(e,i),g=h[0],p=h[1],b=h[2],w=p-b-s*g;(g||w)&&no(e,i)&&(d+=w,m+=g),i instanceof ShadowRoot?i=i.host:i=i.parentNode}while(!u&&i!==document.body||u&&(t.contains(i)||t===i));return(f&&(Math.abs(d)<1||!o)||!f&&(Math.abs(m)<1||!o))&&(l=!0),l},wt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},oo=function(e){return[e.deltaX,e.deltaY]},so=function(e){return e&&"current"in e?e.current:e},Jc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},el=function(e){return`
|
|
39
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
+
`)},tl=0,Ie=[];function nl(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(tl++)[0],s=c.useState(Qr)[0],a=c.useRef(e);c.useEffect(function(){a.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=Cc([e.lockRef.current],(e.shards||[]).map(so),!0).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=c.useCallback(function(p,b){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!a.current.allowPinchZoom;var w=wt(p),y=n.current,k="deltaX"in p?p.deltaX:y[0]-w[0],x="deltaY"in p?p.deltaY:y[1]-w[1],C,E=p.target,j=Math.abs(k)>Math.abs(x)?"h":"v";if("touches"in p&&j==="h"&&E.type==="range")return!1;var M=to(j,E);if(!M)return!0;if(M?C=j:(C=j==="v"?"h":"v",M=to(j,E)),!M)return!1;if(!r.current&&"changedTouches"in p&&(k||x)&&(r.current=C),!C)return!0;var R=r.current||C;return Qc(R,b,p,R==="h"?k:x,!0)},[]),u=c.useCallback(function(p){var b=p;if(!(!Ie.length||Ie[Ie.length-1]!==s)){var w="deltaY"in b?oo(b):wt(b),y=t.current.filter(function(C){return C.name===b.type&&(C.target===b.target||b.target===C.shadowParent)&&Jc(C.delta,w)})[0];if(y&&y.should){b.cancelable&&b.preventDefault();return}if(!y){var k=(a.current.shards||[]).map(so).filter(Boolean).filter(function(C){return C.contains(b.target)}),x=k.length>0?i(b,k[0]):!a.current.noIsolation;x&&b.cancelable&&b.preventDefault()}}},[]),l=c.useCallback(function(p,b,w,y){var k={name:p,delta:b,target:w,should:y,shadowParent:rl(w)};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(x){return x!==k})},1)},[]),f=c.useCallback(function(p){n.current=wt(p),r.current=void 0},[]),d=c.useCallback(function(p){l(p.type,oo(p),p.target,i(p,e.lockRef.current))},[]),m=c.useCallback(function(p){l(p.type,wt(p),p.target,i(p,e.lockRef.current))},[]);c.useEffect(function(){return Ie.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:m}),document.addEventListener("wheel",u,_e),document.addEventListener("touchmove",u,_e),document.addEventListener("touchstart",f,_e),function(){Ie=Ie.filter(function(p){return p!==s}),document.removeEventListener("wheel",u,_e),document.removeEventListener("touchmove",u,_e),document.removeEventListener("touchstart",f,_e)}},[]);var h=e.removeScrollBar,g=e.inert;return c.createElement(c.Fragment,null,g?c.createElement(s,{styles:el(o)}):null,h?c.createElement(Uc,{gapMode:e.gapMode}):null)}function rl(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ol=_c(Zr,nl);var io=c.forwardRef(function(e,t){return c.createElement(vt,ie({},e,{ref:t,sideCar:ol}))});io.classNames=vt.classNames;var on=["Enter"," "],sl=["ArrowDown","PageUp","Home"],ao=["ArrowUp","PageDown","End"],il=[...sl,...ao],al={ltr:[...on,"ArrowRight"],rtl:[...on,"ArrowLeft"]},cl={ltr:["ArrowLeft"],rtl:["ArrowRight"]},We="Menu",[Ge,ll,ul]=qn(We),[xe,co]=ye(We,[ul,Nr,Wr]),Ve=Nr(),lo=Wr(),[uo,we]=xe(We),[dl,Ue]=xe(We),fo=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:a=!0}=e,i=Ve(t),[u,l]=c.useState(null),f=c.useRef(!1),d=X(s),m=_t(o);return c.useEffect(()=>{const h=()=>{f.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>f.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),v.jsx($r,{...i,children:v.jsx(uo,{scope:t,open:n,onOpenChange:d,content:u,onContentChange:l,children:v.jsx(dl,{scope:t,onClose:c.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:m,modal:a,children:r})})})};fo.displayName=We;var fl="MenuAnchor",sn=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Ve(n);return v.jsx(ec,{...o,...r,ref:t})});sn.displayName=fl;var an="MenuPortal",[pl,po]=xe(an,{forceMount:void 0}),mo=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=we(an,t);return v.jsx(pl,{scope:t,forceMount:n,children:v.jsx(Be,{present:n||s.open,children:v.jsx(zr,{asChild:!0,container:o,children:r})})})};mo.displayName=an;var Q="MenuContent",[ml,cn]=xe(Q),ho=c.forwardRef((e,t)=>{const n=po(Q,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=we(Q,e.__scopeMenu),a=Ue(Q,e.__scopeMenu);return v.jsx(Ge.Provider,{scope:e.__scopeMenu,children:v.jsx(Be,{present:r||s.open,children:v.jsx(Ge.Slot,{scope:e.__scopeMenu,children:a.modal?v.jsx(hl,{...o,ref:t}):v.jsx(gl,{...o,ref:t})})})})}),hl=c.forwardRef((e,t)=>{const n=we(Q,e.__scopeMenu),r=c.useRef(null),o=H(t,r);return c.useEffect(()=>{const s=r.current;if(s)return xc(s)},[]),v.jsx(ln,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:O(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),gl=c.forwardRef((e,t)=>{const n=we(Q,e.__scopeMenu);return v.jsx(ln,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ln=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEntryFocus:u,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:m,onDismiss:h,disableOutsideScroll:g,...p}=e,b=we(Q,n),w=Ue(Q,n),y=Ve(n),k=lo(n),x=ll(n),[C,E]=c.useState(null),j=c.useRef(null),M=H(t,j,b.onContentChange),R=c.useRef(0),_=c.useRef(""),F=c.useRef(0),A=c.useRef(null),L=c.useRef("right"),D=c.useRef(0),G=g?io:c.Fragment,I=g?{as:ee,allowPinchZoom:!0}:void 0,W=S=>{var fe,qe;const $=_.current+S,B=x().filter(J=>!J.disabled),ae=document.activeElement,Ye=(fe=B.find(J=>J.ref.current===ae))==null?void 0:fe.textValue,Xe=B.map(J=>J.textValue),Ct=Al(Xe,$,Ye),Ce=(qe=B.find(J=>J.textValue===Ct))==null?void 0:qe.ref.current;(function J(Ze){_.current=Ze,window.clearTimeout(R.current),Ze!==""&&(R.current=window.setTimeout(()=>J(""),1e3))})($),Ce&&setTimeout(()=>Ce.focus())};c.useEffect(()=>()=>window.clearTimeout(R.current),[]),$i();const P=c.useCallback(S=>{var B,ae;return L.current===((B=A.current)==null?void 0:B.side)&&Nl(S,(ae=A.current)==null?void 0:ae.area)},[]);return v.jsx(ml,{scope:n,searchRef:_,onItemEnter:c.useCallback(S=>{P(S)&&S.preventDefault()},[P]),onItemLeave:c.useCallback(S=>{var $;P(S)||(($=j.current)==null||$.focus(),E(null))},[P]),onTriggerLeave:c.useCallback(S=>{P(S)&&S.preventDefault()},[P]),pointerGraceTimerRef:F,onPointerGraceIntentChange:c.useCallback(S=>{A.current=S},[]),children:v.jsx(G,{...I,children:v.jsx(sr,{asChild:!0,trapped:o,onMountAutoFocus:O(s,S=>{var $;S.preventDefault(),($=j.current)==null||$.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:v.jsx(er,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:m,onDismiss:h,children:v.jsx(vc,{asChild:!0,...k,dir:w.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:E,onEntryFocus:O(u,S=>{w.isUsingKeyboardRef.current||S.preventDefault()}),preventScrollOnEntryFocus:!0,children:v.jsx(tc,{role:"menu","aria-orientation":"vertical","data-state":Io(b.open),"data-radix-menu-content":"",dir:w.dir,...y,...p,ref:M,style:{outline:"none",...p.style},onKeyDown:O(p.onKeyDown,S=>{const B=S.target.closest("[data-radix-menu-content]")===S.currentTarget,ae=S.ctrlKey||S.altKey||S.metaKey,Ye=S.key.length===1;B&&(S.key==="Tab"&&S.preventDefault(),!ae&&Ye&&W(S.key));const Xe=j.current;if(S.target!==Xe||!il.includes(S.key))return;S.preventDefault();const Ce=x().filter(fe=>!fe.disabled).map(fe=>fe.ref.current);ao.includes(S.key)&&Ce.reverse(),El(Ce)}),onBlur:O(e.onBlur,S=>{S.currentTarget.contains(S.target)||(window.clearTimeout(R.current),_.current="")}),onPointerMove:O(e.onPointerMove,He(S=>{const $=S.target,B=D.current!==S.clientX;if(S.currentTarget.contains($)&&B){const ae=S.clientX>D.current?"right":"left";L.current=ae,D.current=S.clientX}}))})})})})})})});ho.displayName=Q;var vl="MenuGroup",un=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return v.jsx(Y.div,{role:"group",...r,ref:t})});un.displayName=vl;var bl="MenuLabel",go=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return v.jsx(Y.div,{...r,ref:t})});go.displayName=bl;var yt="MenuItem",vo="menu.itemSelect",kt=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=c.useRef(null),a=Ue(yt,e.__scopeMenu),i=cn(yt,e.__scopeMenu),u=H(t,s),l=c.useRef(!1),f=()=>{const d=s.current;if(!n&&d){const m=new CustomEvent(vo,{bubbles:!0,cancelable:!0});d.addEventListener(vo,h=>r==null?void 0:r(h),{once:!0}),Xn(d,m),m.defaultPrevented?l.current=!1:a.onClose()}};return v.jsx(bo,{...o,ref:u,disabled:n,onClick:O(e.onClick,f),onPointerDown:d=>{var m;(m=e.onPointerDown)==null||m.call(e,d),l.current=!0},onPointerUp:O(e.onPointerUp,d=>{var m;l.current||(m=d.currentTarget)==null||m.click()}),onKeyDown:O(e.onKeyDown,d=>{const m=i.searchRef.current!=="";n||m&&d.key===" "||on.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});kt.displayName=yt;var bo=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,a=cn(yt,n),i=lo(n),u=c.useRef(null),l=H(t,u),[f,d]=c.useState(!1),[m,h]=c.useState("");return c.useEffect(()=>{const g=u.current;g&&h((g.textContent??"").trim())},[s.children]),v.jsx(Ge.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:v.jsx(bc,{asChild:!0,...i,focusable:!r,children:v.jsx(Y.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:l,onPointerMove:O(e.onPointerMove,He(g=>{r?a.onItemLeave(g):(a.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:O(e.onPointerLeave,He(g=>a.onItemLeave(g))),onFocus:O(e.onFocus,()=>d(!0)),onBlur:O(e.onBlur,()=>d(!1))})})})}),wl="MenuCheckboxItem",wo=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return v.jsx(So,{scope:e.__scopeMenu,checked:n,children:v.jsx(kt,{role:"menuitemcheckbox","aria-checked":xt(n)?"mixed":n,...o,ref:t,"data-state":pn(n),onSelect:O(o.onSelect,()=>r==null?void 0:r(xt(n)?!0:!n),{checkForDefaultPrevented:!1})})})});wo.displayName=wl;var yo="MenuRadioGroup",[yl,kl]=xe(yo,{value:void 0,onValueChange:()=>{}}),ko=c.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=X(r);return v.jsx(yl,{scope:e.__scopeMenu,value:n,onValueChange:s,children:v.jsx(un,{...o,ref:t})})});ko.displayName=yo;var xo="MenuRadioItem",Co=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=kl(xo,e.__scopeMenu),s=n===o.value;return v.jsx(So,{scope:e.__scopeMenu,checked:s,children:v.jsx(kt,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":pn(s),onSelect:O(r.onSelect,()=>{var a;return(a=o.onValueChange)==null?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})})});Co.displayName=xo;var dn="MenuItemIndicator",[So,xl]=xe(dn,{checked:!1}),jo=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=xl(dn,n);return v.jsx(Be,{present:r||xt(s.checked)||s.checked===!0,children:v.jsx(Y.span,{...o,ref:t,"data-state":pn(s.checked)})})});jo.displayName=dn;var Cl="MenuSeparator",Eo=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return v.jsx(Y.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Eo.displayName=Cl;var Sl="MenuArrow",Mo=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Ve(n);return v.jsx(nc,{...o,...r,ref:t})});Mo.displayName=Sl;var fn="MenuSub",[jl,Ao]=xe(fn),Po=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,s=we(fn,t),a=Ve(t),[i,u]=c.useState(null),[l,f]=c.useState(null),d=X(o);return c.useEffect(()=>(s.open===!1&&d(!1),()=>d(!1)),[s.open,d]),v.jsx($r,{...a,children:v.jsx(uo,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:f,children:v.jsx(jl,{scope:t,contentId:Le(),triggerId:Le(),trigger:i,onTriggerChange:u,children:n})})})};Po.displayName=fn;var Ke="MenuSubTrigger",No=c.forwardRef((e,t)=>{const n=we(Ke,e.__scopeMenu),r=Ue(Ke,e.__scopeMenu),o=Ao(Ke,e.__scopeMenu),s=cn(Ke,e.__scopeMenu),a=c.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:u}=s,l={__scopeMenu:e.__scopeMenu},f=c.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return c.useEffect(()=>f,[f]),c.useEffect(()=>{const d=i.current;return()=>{window.clearTimeout(d),u(null)}},[i,u]),v.jsx(sn,{asChild:!0,...l,children:v.jsx(bo,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Io(n.open),...e,ref:Je(t,o.onTriggerChange),onClick:d=>{var m;(m=e.onClick)==null||m.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:O(e.onPointerMove,He(d=>{s.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:O(e.onPointerLeave,He(d=>{var h,g;f();const m=(h=n.content)==null?void 0:h.getBoundingClientRect();if(m){const p=(g=n.content)==null?void 0:g.dataset.side,b=p==="right",w=b?-5:5,y=m[b?"left":"right"],k=m[b?"right":"left"];s.onPointerGraceIntentChange({area:[{x:d.clientX+w,y:d.clientY},{x:y,y:m.top},{x:k,y:m.top},{x:k,y:m.bottom},{x:y,y:m.bottom}],side:p}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(d),d.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:O(e.onKeyDown,d=>{var h;const m=s.searchRef.current!=="";e.disabled||m&&d.key===" "||al[r.dir].includes(d.key)&&(n.onOpenChange(!0),(h=n.content)==null||h.focus(),d.preventDefault())})})})});No.displayName=Ke;var Oo="MenuSubContent",_o=c.forwardRef((e,t)=>{const n=po(Q,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=we(Q,e.__scopeMenu),a=Ue(Q,e.__scopeMenu),i=Ao(Oo,e.__scopeMenu),u=c.useRef(null),l=H(t,u);return v.jsx(Ge.Provider,{scope:e.__scopeMenu,children:v.jsx(Be,{present:r||s.open,children:v.jsx(Ge.Slot,{scope:e.__scopeMenu,children:v.jsx(ln,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:l,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var d;a.isUsingKeyboardRef.current&&((d=u.current)==null||d.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:O(e.onFocusOutside,f=>{f.target!==i.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:O(e.onEscapeKeyDown,f=>{a.onClose(),f.preventDefault()}),onKeyDown:O(e.onKeyDown,f=>{var h;const d=f.currentTarget.contains(f.target),m=cl[a.dir].includes(f.key);d&&m&&(s.onOpenChange(!1),(h=i.trigger)==null||h.focus(),f.preventDefault())})})})})})});_o.displayName=Oo;function Io(e){return e?"open":"closed"}function xt(e){return e==="indeterminate"}function pn(e){return xt(e)?"indeterminate":e?"checked":"unchecked"}function El(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Ml(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Al(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=Ml(e,Math.max(s,0));o.length===1&&(a=a.filter(l=>l!==n));const u=a.find(l=>l.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}function Pl(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s].x,u=t[s].y,l=t[a].x,f=t[a].y;u>r!=f>r&&n<(l-i)*(r-u)/(f-u)+i&&(o=!o)}return o}function Nl(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Pl(n,t)}function He(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Ol=fo,_l=sn,Il=mo,Tl=ho,Rl=un,Dl=go,Ll=kt,Fl=wo,$l=ko,zl=Co,Bl=jo,Wl=Eo,Gl=Mo,Vl=Po,Ul=No,Kl=_o,mn="DropdownMenu",[Hl,Xu]=ye(mn,[co]),K=co(),[Yl,To]=Hl(mn),Ro=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:a,modal:i=!0}=e,u=K(t),l=c.useRef(null),[f=!1,d]=tt({prop:o,defaultProp:s,onChange:a});return v.jsx(Yl,{scope:t,triggerId:Le(),triggerRef:l,contentId:Le(),open:f,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(m=>!m),[d]),modal:i,children:v.jsx(Ol,{...u,open:f,onOpenChange:d,dir:r,modal:i,children:n})})};Ro.displayName=mn;var Do="DropdownMenuTrigger",Lo=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=To(Do,n),a=K(n);return v.jsx(_l,{asChild:!0,...a,children:v.jsx(Y.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Je(t,s.triggerRef),onPointerDown:O(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(s.onOpenToggle(),s.open||i.preventDefault())}),onKeyDown:O(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&s.onOpenToggle(),i.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Lo.displayName=Do;var Xl="DropdownMenuPortal",Fo=e=>{const{__scopeDropdownMenu:t,...n}=e,r=K(t);return v.jsx(Il,{...r,...n})};Fo.displayName=Xl;var $o="DropdownMenuContent",zo=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=To($o,n),s=K(n),a=c.useRef(!1);return v.jsx(Tl,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:O(e.onCloseAutoFocus,i=>{var u;a.current||(u=o.triggerRef.current)==null||u.focus(),a.current=!1,i.preventDefault()}),onInteractOutside:O(e.onInteractOutside,i=>{const u=i.detail.originalEvent,l=u.button===0&&u.ctrlKey===!0,f=u.button===2||l;(!o.modal||f)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});zo.displayName=$o;var ql="DropdownMenuGroup",Bo=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=K(n);return v.jsx(Rl,{...o,...r,ref:t})});Bo.displayName=ql;var Zl="DropdownMenuLabel",Wo=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=K(n);return v.jsx(Dl,{...o,...r,ref:t})});Wo.displayName=Zl;var Ql="DropdownMenuItem",Go=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=K(n);return v.jsx(Ll,{...o,...r,ref:t})});Go.displayName=Ql;var Jl="DropdownMenuCheckboxItem",Vo=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=K(n);return v.jsx(Fl,{...o,...r,ref:t})});Vo.displayName=Jl;var eu="DropdownMenuRadioGroup",Uo=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=K(n);return v.jsx($l,{...o,...r,ref:t})});Uo.displayName=eu;var tu="DropdownMenuRadioItem",Ko=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=K(n);return v.jsx(zl,{...o,...r,ref:t})});Ko.displayName=tu;var nu="DropdownMenuItemIndicator",Ho=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=K(n);return v.jsx(Bl,{...o,...r,ref:t})});Ho.displayName=nu;var ru="DropdownMenuSeparator",Yo=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=K(n);return v.jsx(Wl,{...o,...r,ref:t})});Yo.displayName=ru;var ou="DropdownMenuArrow",su=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=K(n);return v.jsx(Gl,{...o,...r,ref:t})});su.displayName=ou;var iu=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:s}=e,a=K(t),[i=!1,u]=tt({prop:r,defaultProp:s,onChange:o});return v.jsx(Vl,{...a,open:i,onOpenChange:u,children:n})},au="DropdownMenuSubTrigger",Xo=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=K(n);return v.jsx(Ul,{...o,...r,ref:t})});Xo.displayName=au;var cu="DropdownMenuSubContent",qo=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=K(n);return v.jsx(Kl,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});qo.displayName=cu;var lu=Ro,uu=Lo,Zo=Fo,Qo=zo,du=Bo,Jo=Wo,es=Go,ts=Vo,fu=Uo,ns=Ko,rs=Ho,os=Yo,pu=iu,ss=Xo,is=qo;/**
|
|
42
|
+
* @license lucide-react v0.453.0 - ISC
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the ISC license.
|
|
45
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/const mu=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),as=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
|
|
47
|
+
* @license lucide-react v0.453.0 - ISC
|
|
48
|
+
*
|
|
49
|
+
* This source code is licensed under the ISC license.
|
|
50
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
+
*/var hu={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"};/**
|
|
52
|
+
* @license lucide-react v0.453.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/const gu=U.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...i},u)=>U.createElement("svg",{ref:u,...hu,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:as("lucide",o),...i},[...a.map(([l,f])=>U.createElement(l,f)),...Array.isArray(s)?s:[s]]));/**
|
|
57
|
+
* @license lucide-react v0.453.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/const hn=(e,t)=>{const n=U.forwardRef(({className:r,...o},s)=>U.createElement(gu,{ref:s,iconNode:t,className:as(`lucide-${mu(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
|
|
62
|
+
* @license lucide-react v0.453.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const vu=hn("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
67
|
+
* @license lucide-react v0.453.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const bu=hn("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
72
|
+
* @license lucide-react v0.453.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const wu=hn("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),yu=lu,ku=uu,xu=du,Cu=Zo,Su=pu,ju=fu,cs=c.forwardRef(({className:e,inset:t,children:n,...r},o)=>v.jsxs(ss,{ref:o,className:V(["ksjsui-flex ksjsui-cursor-default ksjsui-select-none ksjsui-items-center ksjsui-gap-2 ksjsui-rounded-md ksjsui-px-2 ksjsui-py-1.5 ksjsui-outline-none","focus:ksjsui-bg-neutral focus:ksjsui-text-neutral-foreground","data-[state=open]:ksjsui-bg-neutral data-[state=open]:ksjsui-text-neutral-foreground","[&_svg]:ksjsui-pointer-events-none [&_svg]:ksjsui-size-4 [&_svg]:ksjsui-shrink-0","forced-colors:ksjsui-outline-0 forced-colors:ksjsui-transition-none","forced-colors:hover:ksjsui-bg-highlight forced-colors:hover:ksjsui-text-highlight-text forced-colors:hover:ksjsui-forced-color-adjust-none","forced-colors:focus:ksjsui-bg-highlight forced-colors:focus:ksjsui-text-highlight-text forced-colors:focus:ksjsui-forced-color-adjust-none"],t&&"ksjsui-ps-8",e),...r,children:[n,v.jsx(bu,{className:"ksjsui-ms-auto"})]}));cs.displayName=ss.displayName;const ls=c.forwardRef(({className:e,...t},n)=>v.jsx(is,{ref:n,className:V(["ksjsui-z-50 ksjsui-min-w-32 ksjsui-overflow-hidden ksjsui-rounded-md ksjsui-border ksjsui-border-popover-border ksjsui-bg-popover ksjsui-p-1 ksjsui-text-popover-foreground ksjsui-shadow-md","data-[state=open]:ksjsui-animate-in data-[state=open]:ksjsui-fade-in-0 data-[state=open]:ksjsui-zoom-in-95","data-[state=closed]:ksjsui-animate-out data-[state=closed]:ksjsui-fade-out-0 data-[state=closed]:ksjsui-zoom-out-95","data-[side=top]:ksjsui-slide-in-from-bottom-2","data-[side=bottom]:ksjsui-slide-in-from-top-2","data-[side=right]:ksjsui-slide-in-from-left-2","data-[side=left]:ksjsui-slide-in-from-right-2"],e),...t}));ls.displayName=is.displayName;const us=c.forwardRef(({className:e,align:t="start",side:n="bottom",sideOffset:r=4,...o},s)=>v.jsx(Zo,{children:v.jsx(Qo,{ref:s,align:t,side:n,sideOffset:r,className:V(["ksjsui-z-50 ksjsui-min-w-32 ksjsui-overflow-hidden ksjsui-rounded-lg ksjsui-border ksjsui-border-popover-border ksjsui-bg-popover ksjsui-p-1 ksjsui-text-popover-foreground ksjsui-shadow-md","data-[state=open]:ksjsui-animate-in data-[state=open]:ksjsui-fade-in-0 data-[state=open]:ksjsui-zoom-in-95","data-[state=closed]:ksjsui-animate-out data-[state=closed]:ksjsui-fade-out-0 data-[state=closed]:ksjsui-zoom-out-95","data-[side=top]:ksjsui-slide-in-from-bottom-2","data-[side=right]:ksjsui-slide-in-from-left-2","data-[side=bottom]:ksjsui-slide-in-from-top-2","data-[side=left]:ksjsui-slide-in-from-right-2"],e),...o})}));us.displayName=Qo.displayName;const ds=c.forwardRef(({className:e,inset:t,...n},r)=>v.jsx(es,{ref:r,className:V(["ksjsui-flex ksjsui-cursor-default ksjsui-select-none ksjsui-items-center ksjsui-gap-2 ksjsui-rounded-md ksjsui-border-0 ksjsui-px-2 ksjsui-py-1.5 ksjsui-text-base ksjsui-outline-none ksjsui-transition-colors","focus:ksjsui-bg-neutral focus:ksjsui-text-neutral-foreground","hover:ksjsui-bg-neutral hover:ksjsui-text-neutral-foreground","data-[disabled]:ksjsui-pointer-events-none data-[disabled]:ksjsui-opacity-50","[&_svg]:ksjsui-pointer-events-none [&_svg]:ksjsui-size-4 [&_svg]:ksjsui-shrink-0","forced-colors:ksjsui-outline-0 forced-colors:ksjsui-transition-none","forced-colors:hover:ksjsui-bg-highlight forced-colors:hover:ksjsui-text-highlight-text forced-colors:hover:ksjsui-forced-color-adjust-none","forced-colors:focus:ksjsui-bg-highlight forced-colors:focus:ksjsui-text-highlight-text forced-colors:focus:ksjsui-forced-color-adjust-none"],t&&"ksjsui-ps-8",e),...n}));ds.displayName=es.displayName;const fs=c.forwardRef(({className:e,children:t,checked:n,...r},o)=>v.jsxs(ts,{ref:o,className:V(["ksjsui-flex ksjsui-cursor-default ksjsui-select-none ksjsui-items-center ksjsui-justify-between ksjsui-gap-2 ksjsui-rounded-md ksjsui-border-0 ksjsui-px-2 ksjsui-py-1.5 ksjsui-text-base ksjsui-outline-none ksjsui-transition-colors","focus:ksjsui-bg-neutral focus:ksjsui-text-neutral-foreground","hover:ksjsui-bg-neutral hover:ksjsui-text-neutral-foreground","data-[disabled]:ksjsui-pointer-events-none data-[disabled]:ksjsui-opacity-50","forced-colors:ksjsui-outline-0 forced-colors:ksjsui-transition-none","forced-colors:hover:ksjsui-bg-highlight forced-colors:hover:ksjsui-text-highlight-text forced-colors:hover:ksjsui-forced-color-adjust-none","forced-colors:focus:ksjsui-bg-highlight forced-colors:focus:ksjsui-text-highlight-text forced-colors:focus:ksjsui-forced-color-adjust-none"],e),checked:n,...r,children:[t,v.jsx("span",{className:"ksjsui-flex ksjsui-size-3.5 ksjsui-items-center ksjsui-justify-center",children:v.jsx(rs,{children:v.jsx(vu,{className:"ksjsui-size-4"})})})]}));fs.displayName=ts.displayName;const ps=c.forwardRef(({className:e,children:t,...n},r)=>v.jsxs(ns,{ref:r,className:V(["ksjsui-flex ksjsui-cursor-default ksjsui-select-none ksjsui-items-center ksjsui-justify-between ksjsui-gap-2 ksjsui-rounded-md ksjsui-border-0 ksjsui-px-2 ksjsui-py-1.5 ksjsui-text-base ksjsui-outline-none ksjsui-transition-colors","focus:ksjsui-bg-neutral focus:ksjsui-text-neutral-foreground","hover:ksjsui-bg-neutral hover:ksjsui-text-neutral-foreground","data-[disabled]:ksjsui-pointer-events-none data-[disabled]:ksjsui-opacity-50","forced-colors:ksjsui-outline-0 forced-colors:ksjsui-transition-none","forced-colors:hover:ksjsui-bg-highlight forced-colors:hover:ksjsui-text-highlight-text forced-colors:hover:ksjsui-forced-color-adjust-none","forced-colors:focus:ksjsui-bg-highlight forced-colors:focus:ksjsui-text-highlight-text forced-colors:focus:ksjsui-forced-color-adjust-none"],e),...n,children:[t,v.jsx("span",{className:"ksjsui-flex ksjsui-size-3.5 ksjsui-items-center ksjsui-justify-center",children:v.jsx(rs,{children:v.jsx(wu,{className:"ksjsui-size-2"})})})]}));ps.displayName=ns.displayName;const ms=c.forwardRef(({className:e,inset:t,...n},r)=>v.jsx(Jo,{ref:r,className:V("ksjsui-px-2 ksjsui-py-1.5 ksjsui-text-sm ksjsui-font-semibold",t&&"ksjsui-ps-8",e),...n}));ms.displayName=Jo.displayName;const hs=c.forwardRef(({className:e,...t},n)=>v.jsx(os,{ref:n,className:V(["-ksjsui-mx-1 ksjsui-my-1 ksjsui-h-px ksjsui-bg-border","forced-colors:ksjsui-forced-color-adjust-none"],e),...t}));hs.displayName=os.displayName;const gs=({className:e,...t})=>v.jsx("span",{className:V("ksjsui-ms-auto ksjsui-text-sm ksjsui-tracking-widest ksjsui-opacity-60",e),...t});gs.displayName="DropdownMenuShortcut";const vs=c.forwardRef((e,t)=>v.jsx(Ot,{ref:t,...e,iconOnly:!0,fullWidth:!1}));vs.displayName="IconButton";var Eu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Mu=Eu.reduce((e,t)=>{const n=c.forwardRef((r,o)=>{const{asChild:s,...a}=r,i=s?ee:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(i,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Au="Separator",bs="horizontal",Pu=["horizontal","vertical"],ws=c.forwardRef((e,t)=>{const{decorative:n,orientation:r=bs,...o}=e,s=Nu(r)?r:bs,i=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return v.jsx(Mu.div,{"data-orientation":s,...i,...o,ref:t})});ws.displayName=Au;function Nu(e){return Pu.includes(e)}var ys=ws;const ks=c.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>v.jsx(ys,{ref:o,decorative:n,orientation:t,className:V("ksjsui-shrink-0 ksjsui-bg-border forced-colors:ksjsui-bg-canvas-text forced-colors:ksjsui-forced-color-adjust-none",t==="horizontal"?"ksjsui-block ksjsui-h-px ksjsui-w-full":"ksjsui-inline-block ksjsui-w-px",e),...r}));ks.displayName=ys.displayName;function Ou(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var _u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],xs=_u.reduce((e,t)=>{const n=c.forwardRef((r,o)=>{const{asChild:s,...a}=r,i=s?ee:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(i,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),gn="Switch",[Iu,qu]=ye(gn),[Tu,Ru]=Iu(gn),Cs=c.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:s,required:a,disabled:i,value:u="on",onCheckedChange:l,form:f,...d}=e,[m,h]=c.useState(null),g=H(t,k=>h(k)),p=c.useRef(!1),b=m?f||!!m.closest("form"):!0,[w=!1,y]=tt({prop:o,defaultProp:s,onChange:l});return v.jsxs(Tu,{scope:n,checked:w,disabled:i,children:[v.jsx(xs.button,{type:"button",role:"switch","aria-checked":w,"aria-required":a,"data-state":Es(w),"data-disabled":i?"":void 0,disabled:i,value:u,...d,ref:g,onClick:O(e.onClick,k=>{y(x=>!x),b&&(p.current=k.isPropagationStopped(),p.current||k.stopPropagation())})}),b&&v.jsx(Du,{control:m,bubbles:!p.current,name:r,value:u,checked:w,required:a,disabled:i,form:f,style:{transform:"translateX(-100%)"}})]})});Cs.displayName=gn;var Ss="SwitchThumb",js=c.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=Ru(Ss,n);return v.jsx(xs.span,{"data-state":Es(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});js.displayName=Ss;var Du=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,s=c.useRef(null),a=Ou(n),i=Ar(t);return c.useEffect(()=>{const u=s.current,l=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(l,"checked").set;if(a!==n&&d){const m=new Event("click",{bubbles:r});d.call(u,n),u.dispatchEvent(m)}},[a,n,r]),v.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...e.style,...i,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Es(e){return e?"checked":"unchecked"}var Ms=Cs,Lu=js;const As=c.forwardRef(({className:e,tabIndex:t=0,...n},r)=>{const o=_t();return v.jsx(Ms,{className:V(["ksjsui-peer ksjsui-inline-flex ksjsui-h-6 ksjsui-w-11 ksjsui-shrink-0 ksjsui-cursor-pointer ksjsui-items-center ksjsui-rounded-full ksjsui-border-2 ksjsui-border-transparent ksjsui-bg-neutral ksjsui-transition-colors","focus-visible:ksjsui-outline-none focus-visible:ksjsui-ring-2 focus-visible:ksjsui-ring-ring focus-visible:ksjsui-ring-offset-2 focus-visible:ksjsui-ring-offset-background","disabled:ksjsui-pointer-events-none disabled:ksjsui-cursor-not-allowed disabled:ksjsui-opacity-50","data-[state=unchecked]:ksjsui-bg-input","data-[state=checked]:ksjsui-border-secondary data-[state=checked]:ksjsui-bg-secondary","forced-colors:ksjsui-border-button-border forced-colors:ksjsui-transition-none","forced-colors:data-[state=checked]:ksjsui-border-highlight forced-colors:data-[state=checked]:ksjsui-bg-highlight"],e),tabIndex:t,...n,ref:r,children:v.jsx(Lu,{className:V(["ksjsui-pointer-events-none ksjsui-block ksjsui-size-5 ksjsui-translate-x-0 ksjsui-rounded-full ksjsui-bg-thumb ksjsui-shadow ksjsui-ring-0 ksjsui-transition-transform","data-[state=unchecked]:ksjsui-translate-x-0",`${o==="rtl"?"data-[state=checked]:-ksjsui-translate-x-5":"data-[state=checked]:ksjsui-translate-x-5"}`,"forced-colors:ksjsui-bg-button-border forced-colors:ksjsui-transition-none","forced-colors:data-[state=checked]:ksjsui-bg-canvas"])})})});As.displayName=Ms.displayName;const vn=["px",0,.5,1,1.5,2,2.5,3,3.5,4,5,6,7,8,9,10,11,12,14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96],Fu=[...vn,"auto"];function $u(){return vn.reduce((e,t)=>(e.gap[t]=`ksjsui-gap-${t}`,e.gapColumn[t]=`ksjsui-gap-x-${t}`,e.gapRow[t]=`ksjsui-gap-y-${t}`,e),{gap:{},gapColumn:{},gapRow:{}})}function Ps(){return Fu.reduce((e,t)=>(e.m[t]=`ksjsui-m-${t}`,e.mb[t]=`ksjsui-mb-${t}`,e.me[t]=`ksjsui-me-${t}`,e.ms[t]=`ksjsui-ms-${t}`,e.mt[t]=`ksjsui-mt-${t}`,e.mx[t]=`ksjsui-mx-${t}`,e.my[t]=`ksjsui-my-${t}`,e),{m:{},mb:{},me:{},ms:{},mt:{},mx:{},my:{}})}function Ns(){return vn.reduce((e,t)=>(e.p[t]=`ksjsui-p-${t}`,e.pb[t]=`ksjsui-pb-${t}`,e.pe[t]=`ksjsui-pe-${t}`,e.ps[t]=`ksjsui-ps-${t}`,e.pt[t]=`ksjsui-pt-${t}`,e.px[t]=`ksjsui-px-${t}`,e.py[t]=`ksjsui-py-${t}`,e),{p:{},pb:{},pe:{},ps:{},pt:{},px:{},py:{}})}const zu=et("",{variants:{display:{block:"ksjsui-block","inline-block":"ksjsui-inline-block",none:"ksjsui-hidden"},...Ps(),...Ns()},defaultVariants:{display:"block"}}),Os=c.forwardRef(({as:e="div",asChild:t,className:n,display:r,m:o,mb:s,me:a,ms:i,mt:u,mx:l,my:f,p:d,pb:m,pe:h,ps:g,pt:p,px:b,py:w,...y},k)=>{const x=t?ee:e;return v.jsx(x,{className:V(zu({display:r,m:o,mb:s,me:a,ms:i,mt:u,mx:l,my:f,p:d,pb:m,pe:h,ps:g,pt:p,px:b,py:w,className:n})),ref:k,...y})});Os.displayName="Box";const Bu={align:{baseline:"ksjsui-items-baseline",center:"ksjsui-items-center",end:"ksjsui-items-end",start:"ksjsui-items-start",stretch:"ksjsui-items-stretch"},direction:{"column-reverse":"ksjsui-flex-col-reverse","row-reverse":"ksjsui-flex-row-reverse",column:"ksjsui-flex-col",row:"ksjsui-flex-row"},display:{"inline-flex":"ksjsui-inline-flex",flex:"ksjsui-flex",none:"ksjsui-hidden"},...$u(),grow:{0:"ksjsui-grow-0",1:"ksjsui-grow"},justify:{around:"ksjsui-justify-around",baseline:"ksjsui-justify-baseline",between:"ksjsui-justify-between",center:"ksjsui-justify-center",end:"ksjsui-justify-end",evenly:"ksjsui-justify-evenly",normal:"ksjsui-justify-normal",start:"ksjsui-justify-start",stretch:"ksjsui-justify-stretch"},...Ps(),...Ns(),self:{auto:"ksjsui-self-auto",baseline:"ksjsui-self-baseline",center:"ksjsui-self-center",end:"ksjsui-self-end",start:"ksjsui-self-start",stretch:"ksjsui-self-stretch"},shrink:{0:"ksjsui-shrink-0",1:"ksjsui-shrink"},wrap:{nowrap:"ksjsui-flex-nowrap",reverse:"ksjsui-flex-wrap-reverse",wrap:"ksjsui-flex-wrap"}},Wu=et("ksjsui-inline-flex",{variants:{...Bu},defaultVariants:{display:"flex",justify:"start"}}),_s=c.forwardRef(({align:e,as:t="div",asChild:n,className:r,display:o,direction:s,gap:a,gapColumn:i,gapRow:u,grow:l,justify:f,m:d,mb:m,me:h,ms:g,mt:p,mx:b,my:w,p:y,pb:k,pe:x,ps:C,pt:E,px:j,py:M,self:R,shrink:_,wrap:F,...A},L)=>{const D=n?ee:t;return v.jsx(D,{className:V(Wu({align:e,direction:s,display:o,gap:a,gapColumn:i,gapRow:u,grow:l,justify:f,m:d,mb:m,me:h,ms:g,mt:p,mx:b,my:w,p:y,pb:k,pe:x,ps:C,pt:E,px:j,py:M,self:R,shrink:_,wrap:F,className:r})),ref:L,...A})});_s.displayName="Flex",T.Avatar=Kn,T.AvatarFallback=Yn,T.AvatarImage=Hn,T.Box=Os,T.Button=Ot,T.DirectionProvider=Ni,T.DropdownMenu=yu,T.DropdownMenuCheckboxItem=fs,T.DropdownMenuContent=us,T.DropdownMenuGroup=xu,T.DropdownMenuItem=ds,T.DropdownMenuLabel=ms,T.DropdownMenuPortal=Cu,T.DropdownMenuRadioGroup=ju,T.DropdownMenuRadioItem=ps,T.DropdownMenuSeparator=hs,T.DropdownMenuShortcut=gs,T.DropdownMenuSub=Su,T.DropdownMenuSubContent=ls,T.DropdownMenuSubTrigger=cs,T.DropdownMenuTrigger=ku,T.Flex=_s,T.IconButton=vs,T.Separator=ks,T.Switch=As,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})});
|