@pollinations/ui 0.1.0-alpha.3 → 0.1.0-alpha.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -13
- package/dist/{Button-CO3Dpbkj.d.cts → Button-BGqClaBr.d.ts} +2 -2
- package/dist/{Dialog-yXzIFrDg.d.ts → Dialog-D3Nqt8cE.d.ts} +4 -1
- package/dist/app-user-menu/sdk.d.ts +29 -1
- package/dist/app-user-menu/sdk.js +120 -729
- package/dist/app-user-menu/sdk.js.map +1 -1
- package/dist/app.css +13 -0
- package/dist/auth/index.d.ts +17 -7
- package/dist/auth/index.js +209 -1187
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/sdk.d.ts +1 -1
- package/dist/auth/sdk.js +9 -200
- package/dist/auth/sdk.js.map +1 -1
- package/dist/brand/badge-made-with.svg +1 -0
- package/dist/brand/lockup-horizontal-black.png +0 -0
- package/dist/brand/lockup-horizontal-black.svg +3 -3
- package/dist/brand/lockup-horizontal-white.png +0 -0
- package/dist/brand/lockup-horizontal-white.svg +3 -3
- package/dist/brand/lockup-horizontal.svg +4 -1
- package/dist/brand/lockup-stacked-black.png +0 -0
- package/dist/brand/lockup-stacked-black.svg +1 -1
- package/dist/brand/lockup-stacked-white.png +0 -0
- package/dist/brand/lockup-stacked-white.svg +1 -1
- package/dist/brand/lockup-stacked.svg +1 -1
- package/dist/brand/mark-black.png +0 -0
- package/dist/brand/mark-black.svg +1 -3
- package/dist/brand/mark-white.png +0 -0
- package/dist/brand/mark-white.svg +1 -3
- package/dist/brand/mark.svg +1 -1
- package/dist/brand/polli/polli-lockup-horizontal-black.png +0 -0
- package/dist/brand/polli/polli-lockup-horizontal-white.png +0 -0
- package/dist/brand/polli/polli.png +0 -0
- package/dist/chunk-2BI7XJMG.js +418 -0
- package/dist/chunk-2BI7XJMG.js.map +1 -0
- package/dist/chunk-3VM5R3OI.js +50 -0
- package/dist/chunk-3VM5R3OI.js.map +1 -0
- package/dist/chunk-7GDUPN6U.js +115 -0
- package/dist/chunk-7GDUPN6U.js.map +1 -0
- package/dist/chunk-7NTX3FPZ.js +602 -0
- package/dist/chunk-7NTX3FPZ.js.map +1 -0
- package/dist/chunk-7XDOOFTL.js +105 -0
- package/dist/chunk-7XDOOFTL.js.map +1 -0
- package/dist/chunk-DD7MHUFD.js +93 -0
- package/dist/chunk-DD7MHUFD.js.map +1 -0
- package/dist/chunk-FLQFOTMR.js +107 -0
- package/dist/chunk-FLQFOTMR.js.map +1 -0
- package/dist/chunk-FRHLA7LM.js +533 -0
- package/dist/chunk-FRHLA7LM.js.map +1 -0
- package/dist/chunk-LKOYOXBG.js +284 -0
- package/dist/chunk-LKOYOXBG.js.map +1 -0
- package/dist/chunk-LKUZU37X.js +15 -0
- package/dist/chunk-LKUZU37X.js.map +1 -0
- package/dist/chunk-LRXUPEQM.js +58 -0
- package/dist/chunk-LRXUPEQM.js.map +1 -0
- package/dist/chunk-PBNBZKEZ.js +260 -0
- package/dist/chunk-PBNBZKEZ.js.map +1 -0
- package/dist/chunk-TVPFAM3B.js +88 -0
- package/dist/chunk-TVPFAM3B.js.map +1 -0
- package/dist/chunk-ZLD4VLUG.js +112 -0
- package/dist/chunk-ZLD4VLUG.js.map +1 -0
- package/dist/connect.js +100 -0
- package/dist/connect.js.map +1 -0
- package/dist/gen/index.d.ts +19 -8
- package/dist/gen/index.js +64 -450
- package/dist/gen/index.js.map +1 -1
- package/dist/index-efnABLqH.d.ts +87 -0
- package/dist/index.browser.min.js +1 -1
- package/dist/index.browser.min.js.map +1 -1
- package/dist/index.d.ts +245 -116
- package/dist/index.js +1216 -2748
- package/dist/index.js.map +1 -1
- package/dist/markdown.js +51 -588
- package/dist/markdown.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme.css +10 -8
- package/dist/types-CCy9JNu9.d.ts +6 -0
- package/dist/wallet/index.d.ts +5 -0
- package/dist/wallet/index.js +17 -356
- package/dist/wallet/index.js.map +1 -1
- package/package.json +18 -22
- package/dist/Button-CO3Dpbkj.d.ts +0 -29
- package/dist/Chip-v-ADv6cz.d.cts +0 -18
- package/dist/Dialog-yXzIFrDg.d.cts +0 -63
- package/dist/app-user-menu/sdk.cjs +0 -893
- package/dist/app-user-menu/sdk.cjs.map +0 -1
- package/dist/app-user-menu/sdk.d.cts +0 -17
- package/dist/auth/index.cjs +0 -1502
- package/dist/auth/index.cjs.map +0 -1
- package/dist/auth/index.d.cts +0 -109
- package/dist/auth/sdk.cjs +0 -239
- package/dist/auth/sdk.cjs.map +0 -1
- package/dist/auth/sdk.d.cts +0 -40
- package/dist/gen/index.cjs +0 -658
- package/dist/gen/index.cjs.map +0 -1
- package/dist/gen/index.d.cts +0 -80
- package/dist/index.cjs +0 -4967
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -887
- package/dist/markdown.cjs +0 -821
- package/dist/markdown.cjs.map +0 -1
- package/dist/markdown.d.cts +0 -16
- package/dist/wallet/index.cjs +0 -415
- package/dist/wallet/index.cjs.map +0 -1
- package/dist/wallet/index.d.cts +0 -52
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var PollinationsUI=(()=>{var Dn=Object.defineProperty;var Pd=Object.getOwnPropertyDescriptor;var Ed=Object.getOwnPropertyNames;var Td=Object.prototype.hasOwnProperty;var Id=(e,t)=>{for(var o in t)Dn(e,o,{get:t[o],enumerable:!0})},Nd=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ed(t))!Td.call(e,n)&&n!==o&&Dn(e,n,{get:()=>t[n],enumerable:!(r=Pd(t,n))||r.enumerable});return e};var kd=e=>Nd(Dn({},"__esModule",{value:!0}),e);var Mh={};Id(Mh,{AccountIcon:()=>U0,AccountIdentity:()=>mp,AccountMenu:()=>Fi,Alert:()=>gp,AppHeader:()=>vp,AppIcon:()=>z0,ArrowLeftIcon:()=>jg,ArrowRightIcon:()=>Vi,AudioIcon:()=>pg,BeakerIcon:()=>G0,BookIcon:()=>j0,BotIcon:()=>$0,BugIcon:()=>q0,Button:()=>Ze,ButtonGroup:()=>ld,Callout:()=>yp,CardIcon:()=>_g,ChatConversation:()=>$i,ChatConversationContent:()=>Cp,ChatIcon:()=>Tg,ChatMessage:()=>wp,ChatMessageActions:()=>Tp,ChatMessageContent:()=>Ep,ChatMessageHeader:()=>Pp,ChatPromptInput:()=>Ip,ChatPromptInputFooter:()=>Np,ChatPromptTextarea:()=>ji,CheckIcon:()=>Re,ChevronIcon:()=>de,Chip:()=>er,ClipboardIcon:()=>jt,ClockIcon:()=>Bi,CloudUploadIcon:()=>og,CodeBlock:()=>Rp,CodeIcon:()=>Hg,Collapsible:()=>Sp,ColorModeToggle:()=>cd,ConfirmationDialog:()=>zp,ContentHeader:()=>Up,CopyButton:()=>yt,CopyField:()=>Gp,CubeIcon:()=>cg,DatabaseIcon:()=>Wg,Dialog:()=>gn,DialogBody:()=>hn,DialogDescription:()=>al,DialogFooter:()=>cl,DialogHeader:()=>qo,DialogTitle:()=>sl,DiscordIcon:()=>K0,DownloadIcon:()=>J0,Drawer:()=>pd,Dropdown:()=>bt,DropdownItem:()=>ud,EarningsIcon:()=>Pg,EditableCombobox:()=>vu,EditableComboboxToken:()=>bu,ExpandIcon:()=>Q0,ExternalLinkButton:()=>yu,ExternalLinkIcon:()=>qt,EyeIcon:()=>Ig,EyeOffIcon:()=>Ng,Eyebrow:()=>xn,Field:()=>nt,FieldStack:()=>Iu,FileUpload:()=>Ou,GenApiIcon:()=>rg,GitBranchIcon:()=>ng,GitHubIcon:()=>ag,GitPullRequestIcon:()=>ig,GlobeIcon:()=>$g,GraduationCapIcon:()=>lg,Heading:()=>bo,IconButton:()=>Qo,ImageIcon:()=>on,InfoTip:()=>Au,InlineLink:()=>On,Input:()=>Rn,InstagramIcon:()=>Y0,KeyChip:()=>Du,KeyIcon:()=>Gg,LinkCard:()=>Lu,LinkedInIcon:()=>Z0,LockIcon:()=>ug,LogInIcon:()=>dg,LogOutIcon:()=>mg,MailIcon:()=>fg,McpIcon:()=>gg,MediaPlaceholder:()=>Fu,MegaphoneIcon:()=>Og,MenuIcon:()=>hg,MicIcon:()=>Rg,MoonIcon:()=>rn,MultiSelect:()=>Wu,NavItem:()=>_u,NewspaperIcon:()=>xg,PauseIcon:()=>tg,PencilIcon:()=>Ug,PeriodPicker:()=>Qu,PlayIcon:()=>eg,PlusIcon:()=>Hi,PowerIcon:()=>Fg,ReasoningIcon:()=>Ag,RefreshIcon:()=>qg,RobotIcon:()=>Ui,RocketIcon:()=>Mg,ScrollArea:()=>Ue,SearchIcon:()=>Dg,Section:()=>ed,SignOutIcon:()=>Lg,Slider:()=>md,SparkleIcon:()=>Vg,SparklesIcon:()=>sg,SpeakerIcon:()=>Sg,SproutIcon:()=>zg,StarIcon:()=>Bg,StatCard:()=>td,SunIcon:()=>nn,Surface:()=>vt,Switch:()=>fd,TabButton:()=>Sn,Table:()=>hd,TableBody:()=>bd,TableCell:()=>Cd,TableDisclosureButton:()=>wd,TableHead:()=>xd,TableHeaderCell:()=>yd,TableRow:()=>vd,TargetIcon:()=>vg,TerminalIcon:()=>bg,Text:()=>ce,Textarea:()=>$o,TokensIcon:()=>yg,ToolCallDetails:()=>rd,ToolIcon:()=>Wi,Tooltip:()=>Je,TrashIcon:()=>zi,TrendUpIcon:()=>wg,UsageIcon:()=>Cg,VideoIcon:()=>kg,WalletIcon:()=>Eg,WarningIcon:()=>_i,XIcon:()=>Kt,XSocialIcon:()=>X0,cn:()=>nd,currentPeriod:()=>Uu,getPeriodBucketKeys:()=>Gu,isPeriodSelectable:()=>tr,periodBucketKeyToDate:()=>$u,periodFromDate:()=>lt,periodToWindow:()=>Tt,setColorMode:()=>os,useColorMode:()=>rs,useScrollLock:()=>id});function Rd(){let e=globalThis.React;if(!e)throw new Error("@pollinations/ui browser bundle requires globalThis.React. Load React before @pollinations/ui.");return e}var Sd=Rd();var{Children:ar,Component:Lh,Fragment:Z,Profiler:Fh,PureComponent:Vh,StrictMode:Bh,Suspense:Hh,cache:Wh,cloneElement:as,createContext:cs,createElement:cr,createRef:_h,forwardRef:P,isValidElement:ps,lazy:zh,memo:us,startTransition:Uh,use:Gh,useActionState:$h,useCallback:pr,useContext:ds,useDebugValue:jh,useDeferredValue:qh,useEffect:Y,useEffectEvent:Kh,useId:ue,useImperativeHandle:Yh,useInsertionEffect:Xh,useLayoutEffect:ur,useMemo:se,useOptimistic:Zh,useReducer:Jh,useRef:$,useState:ee,useSyncExternalStore:dr,useTransition:Qh,version:e2}=Sd;function ms(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=ms(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function mr(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=ms(e))&&(r&&(r+=" "),r+=t);return r}var Od=(e,t)=>{let o=new Array(e.length+t.length);for(let r=0;r<e.length;r++)o[r]=e[r];for(let r=0;r<t.length;r++)o[e.length+r]=t[r];return o},Ad=(e,t)=>({classGroupId:e,validator:t}),bs=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o});var fs=[],Md="arbitrary..",Dd=e=>{let t=Fd(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Ld(l);let a=l.split("-"),c=a[0]===""&&a.length>1?1:0;return vs(a,c,t)},getConflictingClassGroupIds:(l,a)=>{if(a){let c=r[l],p=o[l];return c?p?Od(p,c):c:p||fs}return o[l]||fs}}},vs=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;let n=e[t],i=o.nextPart.get(n);if(i){let p=vs(e,t+1,i);if(p)return p}let l=o.validators;if(l===null)return;let a=t===0?e.join("-"):e.slice(t).join("-"),c=l.length;for(let p=0;p<c;p++){let u=l[p];if(u.validator(a))return u.classGroupId}},Ld=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),o=t.indexOf(":"),r=t.slice(0,o);return r?Md+r:void 0})(),Fd=e=>{let{theme:t,classGroups:o}=e;return Vd(o,t)},Vd=(e,t)=>{let o=bs();for(let r in e){let n=e[r];Hn(n,o,r,t)}return o},Hn=(e,t,o,r)=>{let n=e.length;for(let i=0;i<n;i++){let l=e[i];Bd(l,t,o,r)}},Bd=(e,t,o,r)=>{if(typeof e=="string"){Hd(e,t,o);return}if(typeof e=="function"){Wd(e,t,o,r);return}_d(e,t,o,r)},Hd=(e,t,o)=>{let r=e===""?t:ys(t,e);r.classGroupId=o},Wd=(e,t,o,r)=>{if(zd(e)){Hn(e(r),t,o,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Ad(o,e))},_d=(e,t,o,r)=>{let n=Object.entries(e),i=n.length;for(let l=0;l<i;l++){let[a,c]=n[l];Hn(c,ys(t,a),o,r)}},ys=(e,t)=>{let o=e,r=t.split("-"),n=r.length;for(let i=0;i<n;i++){let l=r[i],a=o.nextPart.get(l);a||(a=bs(),o.nextPart.set(l,a)),o=a}return o},zd=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ud=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),r=Object.create(null),n=(i,l)=>{o[i]=l,t++,t>e&&(t=0,r=o,o=Object.create(null))};return{get(i){let l=o[i];if(l!==void 0)return l;if((l=r[i])!==void 0)return n(i,l),l},set(i,l){i in o?o[i]=l:n(i,l)}}};var Gd=[],gs=(e,t,o,r,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:r,isExternal:n}),$d=e=>{let{prefix:t,experimentalParseClassName:o}=e,r=n=>{let i=[],l=0,a=0,c=0,p,u=n.length;for(let v=0;v<u;v++){let h=n[v];if(l===0&&a===0){if(h===":"){i.push(n.slice(c,v)),c=v+1;continue}if(h==="/"){p=v;continue}}h==="["?l++:h==="]"?l--:h==="("?a++:h===")"&&a--}let d=i.length===0?n:n.slice(c),g=d,f=!1;d.endsWith("!")?(g=d.slice(0,-1),f=!0):d.startsWith("!")&&(g=d.slice(1),f=!0);let m=p&&p>c?p-c:void 0;return gs(i,f,g,m)};if(t){let n=t+":",i=r;r=l=>l.startsWith(n)?i(l.slice(n.length)):gs(Gd,!1,l,void 0,!0)}if(o){let n=r;r=i=>o({className:i,parseClassName:n})}return r},jd=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((o,r)=>{t.set(o,1e6+r)}),o=>{let r=[],n=[];for(let i=0;i<o.length;i++){let l=o[i],a=l[0]==="[",c=t.has(l);a||c?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(l)):n.push(l)}return n.length>0&&(n.sort(),r.push(...n)),r}},qd=e=>({cache:Ud(e.cacheSize),parseClassName:$d(e),sortModifiers:jd(e),...Dd(e)}),Kd=/\s+/,Yd=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:i}=t,l=[],a=e.trim().split(Kd),c="";for(let p=a.length-1;p>=0;p-=1){let u=a[p],{isExternal:d,modifiers:g,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:v}=o(u);if(d){c=u+(c.length>0?" "+c:c);continue}let h=!!v,C=r(h?m.substring(0,v):m);if(!C){if(!h){c=u+(c.length>0?" "+c:c);continue}if(C=r(m),!C){c=u+(c.length>0?" "+c:c);continue}h=!1}let T=g.length===0?"":g.length===1?g[0]:i(g).join(":"),E=f?T+"!":T,w=E+C;if(l.indexOf(w)>-1)continue;l.push(w);let M=n(C,h);for(let N=0;N<M.length;++N){let W=M[N];l.push(E+W)}c=u+(c.length>0?" "+c:c)}return c},Xd=(...e)=>{let t=0,o,r,n="";for(;t<e.length;)(o=e[t++])&&(r=Cs(o))&&(n&&(n+=" "),n+=r);return n},Cs=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Cs(e[r]))&&(o&&(o+=" "),o+=t);return o},Vn=(e,...t)=>{let o,r,n,i,l=c=>{let p=t.reduce((u,d)=>d(u),e());return o=qd(p),r=o.cache.get,n=o.cache.set,i=a,a(c)},a=c=>{let p=r(c);if(p)return p;let u=Yd(c,o);return n(c,u),u};return i=l,(...c)=>i(Xd(...c))},Zd=[],ae=e=>{let t=o=>o[e]||Zd;return t.isThemeGetter=!0,t},ws=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ps=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Jd=/^\d+\/\d+$/,Qd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,em=/\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$/,tm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,om=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jt=e=>Jd.test(e),j=e=>!!e&&!Number.isNaN(Number(e)),st=e=>!!e&&Number.isInteger(Number(e)),Ln=e=>e.endsWith("%")&&j(e.slice(0,-1)),Qe=e=>Qd.test(e),nm=()=>!0,im=e=>em.test(e)&&!tm.test(e),Es=()=>!1,lm=e=>om.test(e),sm=e=>rm.test(e),am=e=>!B(e)&&!H(e),cm=e=>Qt(e,Ns,Es),B=e=>ws.test(e),It=e=>Qt(e,ks,im),Fn=e=>Qt(e,fm,j),hs=e=>Qt(e,Ts,Es),pm=e=>Qt(e,Is,sm),fr=e=>Qt(e,Rs,lm),H=e=>Ps.test(e),To=e=>eo(e,ks),um=e=>eo(e,gm),xs=e=>eo(e,Ts),dm=e=>eo(e,Ns),mm=e=>eo(e,Is),gr=e=>eo(e,Rs,!0),Qt=(e,t,o)=>{let r=ws.exec(e);return r?r[1]?t(r[1]):o(r[2]):!1},eo=(e,t,o=!1)=>{let r=Ps.exec(e);return r?r[1]?t(r[1]):o:!1},Ts=e=>e==="position"||e==="percentage",Is=e=>e==="image"||e==="url",Ns=e=>e==="length"||e==="size"||e==="bg-size",ks=e=>e==="length",fm=e=>e==="number",gm=e=>e==="family-name",Rs=e=>e==="shadow";var Bn=()=>{let e=ae("color"),t=ae("font"),o=ae("text"),r=ae("font-weight"),n=ae("tracking"),i=ae("leading"),l=ae("breakpoint"),a=ae("container"),c=ae("spacing"),p=ae("radius"),u=ae("shadow"),d=ae("inset-shadow"),g=ae("text-shadow"),f=ae("drop-shadow"),m=ae("blur"),v=ae("perspective"),h=ae("aspect"),C=ae("ease"),T=ae("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...w(),H,B],N=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],y=()=>[H,B,c],O=()=>[Jt,"full","auto",...y()],L=()=>[st,"none","subgrid",H,B],k=()=>["auto",{span:["full",st,H,B]},st,H,B],A=()=>[st,"auto",H,B],S=()=>["auto","min","max","fr",H,B],_=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],R=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...y()],K=()=>[Jt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],V=()=>[e,H,B],be=()=>[...w(),xs,hs,{position:[H,B]}],rr=()=>["no-repeat",{repeat:["","x","y","space","round"]}],is=()=>["auto","cover","contain",dm,cm,{size:[H,B]}],An=()=>[Ln,To,It],ve=()=>["","none","full",p,H,B],Ne=()=>["",j,To,It],nr=()=>["solid","dashed","dotted","double"],ls=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>[j,Ln,xs,hs],ss=()=>["","none",m,H,B],ir=()=>["none",j,H,B],lr=()=>["none",j,H,B],Mn=()=>[j,H,B],sr=()=>[Jt,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Qe],breakpoint:[Qe],color:[nm],container:[Qe],"drop-shadow":[Qe],ease:["in","out","in-out"],font:[am],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Qe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Qe],shadow:[Qe],spacing:["px",j],text:[Qe],"text-shadow":[Qe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Jt,B,H,h]}],container:["container"],columns:[{columns:[j,B,H,a]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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"],sr:["sr-only","not-sr-only"],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:M()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{start:O()}],end:[{end:O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[st,"auto",H,B]}],basis:[{basis:[Jt,"full","auto",a,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[j,Jt,"auto","initial","none",B]}],grow:[{grow:["",j,H,B]}],shrink:[{shrink:["",j,H,B]}],order:[{order:[st,"first","last","none",H,B]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:k()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:k()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":S()}],"auto-rows":[{"auto-rows":S()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:[..._(),"normal"]}],"justify-items":[{"justify-items":[...R(),"normal"]}],"justify-self":[{"justify-self":["auto",...R()]}],"align-content":[{content:["normal",..._()]}],"align-items":[{items:[...R(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...R(),{baseline:["","last"]}]}],"place-content":[{"place-content":_()}],"place-items":[{"place-items":[...R(),"baseline"]}],"place-self":[{"place-self":["auto",...R()]}],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:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[a,"screen",...K()]}],"min-w":[{"min-w":[a,"screen","none",...K()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[l]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",o,To,It]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,H,Fn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ln,B]}],"font-family":[{font:[um,B,t]}],"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:[n,H,B]}],"line-clamp":[{"line-clamp":[j,"none",H,Fn]}],leading:[{leading:[i,...y()]}],"list-image":[{"list-image":["none",H,B]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",H,B]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...nr(),"wavy"]}],"text-decoration-thickness":[{decoration:[j,"from-font","auto",H,It]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[j,"auto",H,B]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",H,B]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",H,B]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:be()}],"bg-repeat":[{bg:rr()}],"bg-size":[{bg:is()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},st,H,B],radial:["",H,B],conic:[st,H,B]},mm,pm]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:An()}],"gradient-via-pos":[{via:An()}],"gradient-to-pos":[{to:An()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:ve()}],"rounded-s":[{"rounded-s":ve()}],"rounded-e":[{"rounded-e":ve()}],"rounded-t":[{"rounded-t":ve()}],"rounded-r":[{"rounded-r":ve()}],"rounded-b":[{"rounded-b":ve()}],"rounded-l":[{"rounded-l":ve()}],"rounded-ss":[{"rounded-ss":ve()}],"rounded-se":[{"rounded-se":ve()}],"rounded-ee":[{"rounded-ee":ve()}],"rounded-es":[{"rounded-es":ve()}],"rounded-tl":[{"rounded-tl":ve()}],"rounded-tr":[{"rounded-tr":ve()}],"rounded-br":[{"rounded-br":ve()}],"rounded-bl":[{"rounded-bl":ve()}],"border-w":[{border:Ne()}],"border-w-x":[{"border-x":Ne()}],"border-w-y":[{"border-y":Ne()}],"border-w-s":[{"border-s":Ne()}],"border-w-e":[{"border-e":Ne()}],"border-w-t":[{"border-t":Ne()}],"border-w-r":[{"border-r":Ne()}],"border-w-b":[{"border-b":Ne()}],"border-w-l":[{"border-l":Ne()}],"divide-x":[{"divide-x":Ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...nr(),"hidden","none"]}],"divide-style":[{divide:[...nr(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...nr(),"none","hidden"]}],"outline-offset":[{"outline-offset":[j,H,B]}],"outline-w":[{outline:["",j,To,It]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",u,gr,fr]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",d,gr,fr]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:Ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[j,It]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":Ne()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",g,gr,fr]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[j,H,B]}],"mix-blend":[{"mix-blend":[...ls(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ls()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[j]}],"mask-image-linear-from-pos":[{"mask-linear-from":pe()}],"mask-image-linear-to-pos":[{"mask-linear-to":pe()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":pe()}],"mask-image-t-to-pos":[{"mask-t-to":pe()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":pe()}],"mask-image-r-to-pos":[{"mask-r-to":pe()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":pe()}],"mask-image-b-to-pos":[{"mask-b-to":pe()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":pe()}],"mask-image-l-to-pos":[{"mask-l-to":pe()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":pe()}],"mask-image-x-to-pos":[{"mask-x-to":pe()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":pe()}],"mask-image-y-to-pos":[{"mask-y-to":pe()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[H,B]}],"mask-image-radial-from-pos":[{"mask-radial-from":pe()}],"mask-image-radial-to-pos":[{"mask-radial-to":pe()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[j]}],"mask-image-conic-from-pos":[{"mask-conic-from":pe()}],"mask-image-conic-to-pos":[{"mask-conic-to":pe()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:be()}],"mask-repeat":[{mask:rr()}],"mask-size":[{mask:is()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",H,B]}],filter:[{filter:["","none",H,B]}],blur:[{blur:ss()}],brightness:[{brightness:[j,H,B]}],contrast:[{contrast:[j,H,B]}],"drop-shadow":[{"drop-shadow":["","none",f,gr,fr]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",j,H,B]}],"hue-rotate":[{"hue-rotate":[j,H,B]}],invert:[{invert:["",j,H,B]}],saturate:[{saturate:[j,H,B]}],sepia:[{sepia:["",j,H,B]}],"backdrop-filter":[{"backdrop-filter":["","none",H,B]}],"backdrop-blur":[{"backdrop-blur":ss()}],"backdrop-brightness":[{"backdrop-brightness":[j,H,B]}],"backdrop-contrast":[{"backdrop-contrast":[j,H,B]}],"backdrop-grayscale":[{"backdrop-grayscale":["",j,H,B]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[j,H,B]}],"backdrop-invert":[{"backdrop-invert":["",j,H,B]}],"backdrop-opacity":[{"backdrop-opacity":[j,H,B]}],"backdrop-saturate":[{"backdrop-saturate":[j,H,B]}],"backdrop-sepia":[{"backdrop-sepia":["",j,H,B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",H,B]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[j,"initial",H,B]}],ease:[{ease:["linear","initial",C,H,B]}],delay:[{delay:[j,H,B]}],animate:[{animate:["none",T,H,B]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,H,B]}],"perspective-origin":[{"perspective-origin":M()}],rotate:[{rotate:ir()}],"rotate-x":[{"rotate-x":ir()}],"rotate-y":[{"rotate-y":ir()}],"rotate-z":[{"rotate-z":ir()}],scale:[{scale:lr()}],"scale-x":[{"scale-x":lr()}],"scale-y":[{"scale-y":lr()}],"scale-z":[{"scale-z":lr()}],"scale-3d":["scale-3d"],skew:[{skew:Mn()}],"skew-x":[{"skew-x":Mn()}],"skew-y":[{"skew-y":Mn()}],transform:[{transform:[H,B,"","none","gpu","cpu"]}],"transform-origin":[{origin:M()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:sr()}],"translate-x":[{"translate-x":sr()}],"translate-y":[{"translate-y":sr()}],"translate-z":[{"translate-z":sr()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",H,B]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"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",H,B]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[j,To,It,Fn]}],stroke:[{stroke:["none",...V()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},hm=(e,{cacheSize:t,prefix:o,experimentalParseClassName:r,extend:n={},override:i={}})=>(Io(e,"cacheSize",t),Io(e,"prefix",o),Io(e,"experimentalParseClassName",r),hr(e.theme,i.theme),hr(e.classGroups,i.classGroups),hr(e.conflictingClassGroups,i.conflictingClassGroups),hr(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Io(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),xr(e.theme,n.theme),xr(e.classGroups,n.classGroups),xr(e.conflictingClassGroups,n.conflictingClassGroups),xr(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),Ss(e,n,"orderSensitiveModifiers"),e),Io=(e,t,o)=>{o!==void 0&&(e[t]=o)},hr=(e,t)=>{if(t)for(let o in t)Io(e,o,t[o])},xr=(e,t)=>{if(t)for(let o in t)Ss(e,t,o)},Ss=(e,t,o)=>{let r=t[o];r!==void 0&&(e[o]=e[o]?e[o].concat(r):r)},Os=(e,...t)=>typeof e=="function"?Vn(Bn,e,...t):Vn(()=>hm(Bn(),e),...t),As=Vn(Bn);var xm=Os({prefix:"polli"});function x(...e){return xm(mr(...e))}var bm=cr;function s(e,t,o){let r=o===void 0?t:{...t??{},key:String(o)};return bm(e,r)}var b=s;var de=({expanded:e,className:t})=>s("svg",{"aria-hidden":"true",width:"12",height:"12",viewBox:"0 0 12 12",className:x("polli:shrink-0 polli:transition-transform polli:duration-200 polli:ease-out",e&&"polli:rotate-180",t),children:s("path",{d:"M3 4.5 6 7.5l3-3",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})});var ke=(e,t=[])=>({parts:(...o)=>{if(vm(t))return ke(e,o);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...o)=>ke(e,[...t,...o]),omit:(...o)=>ke(e,t.filter(r=>!o.includes(r))),rename:o=>ke(o,t),keys:()=>t,build:()=>[...new Set(t)].reduce((o,r)=>Object.assign(o,{[r]:{selector:[`&[data-scope="${to(e)}"][data-part="${to(r)}"]`,`& [data-scope="${to(e)}"][data-part="${to(r)}"]`].join(", "),attrs:{"data-scope":to(e),"data-part":to(r)}}}),{})}),to=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),vm=e=>e.length===0;var ym=ke("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger"),Be=ym.build();var Cm=Object.defineProperty,wm=(e,t,o)=>t in e?Cm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,br=(e,t,o)=>wm(e,typeof t!="symbol"?t+"":t,o);function vr(e){if(e)try{if(e.ownerDocument.activeElement!==e)return;let t=e.value.length;e.setSelectionRange(t,t)}catch{}}var No=()=>{},ko=e=>typeof e=="object"&&e!==null;var G=e=>e?"":void 0,et=e=>e?"true":void 0;var Pm=1,Em=9,Tm=11;var J=e=>ko(e)&&e.nodeType===Pm&&typeof e.nodeName=="string",Ro=e=>ko(e)&&e.nodeType===Em,Im=e=>ko(e)&&e===e.window;var Ms=e=>J(e)?e.localName||"":"#document";function Ds(e){return["html","body","#document"].includes(Ms(e))}var Ls=e=>ko(e)&&e.nodeType!==void 0,tt=e=>Ls(e)&&e.nodeType===Tm&&"host"in e,Wn=e=>J(e)&&e.localName==="input",Fs=e=>!!e?.matches("a[href]"),Vs=e=>J(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1;function Nt(e){if(!e)return!1;let t=e.getRootNode();return He(t)===e}var Nm=/(textarea|select)/;function Bs(e){if(e==null||!J(e))return!1;try{return Wn(e)&&e.selectionStart!=null||Nm.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function kt(e,t){if(!e||!t||!J(e)||!Ls(t))return!1;if(J(t)&&e===t||e.contains(t))return!0;let o=t.getRootNode?.();if(o&&tt(o)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Q(e){return Ro(e)?e:Im(e)?e.document:e?.ownerDocument??document}function km(e){return Q(e).documentElement}function te(e){return tt(e)?te(e.host):Ro(e)?e.defaultView??window:J(e)?e.ownerDocument?.defaultView??window:window}function He(e){let t=e.activeElement;for(;t?.shadowRoot;){let o=t.shadowRoot.activeElement;if(!o||o===t)break;t=o}return t}function Hs(e){if(Ms(e)==="html")return e;let t=e.assignedSlot||e.parentNode||tt(e)&&e.host||km(e);return tt(t)?t.host:t}function yr(e){let t;try{if(t=e.getRootNode({composed:!0}),Ro(t)||tt(t))return t}catch{}return e.ownerDocument??document}var _n=new WeakMap;function Ge(e){return _n.has(e)||_n.set(e,te(e).getComputedStyle(e)),_n.get(e)}var zn=new Set(["menu","listbox","dialog","grid","tree","region","application"]),Rm=e=>zn.has(e),Ws=e=>e.getAttribute("aria-controls")?.split(" ")||[];function Cr(e,t){let o=new Set,r=yr(e),n=i=>{let l=i.querySelectorAll("[aria-controls]");for(let a of l){if(a.getAttribute("aria-expanded")!=="true")continue;let c=Ws(a);for(let p of c){if(!p||o.has(p))continue;o.add(p);let u=r.getElementById(p);if(u){let d=u.getAttribute("role"),g=u.getAttribute("aria-modal")==="true";if(d&&Rm(d)&&!g&&(u===t||u.contains(t)||n(u)))return!0}}}return!1};return n(e)}function Un(e,t){let o=yr(e),r=new Set,n=i=>{let l=i.querySelectorAll("[aria-controls]");for(let a of l){if(a.getAttribute("aria-expanded")!=="true")continue;let c=Ws(a);for(let p of c){if(!p||r.has(p))continue;r.add(p);let u=o.getElementById(p);if(u){let d=u.getAttribute("role"),g=u.getAttribute("aria-modal")==="true";d&&zn.has(d)&&!g&&(t(u),n(u))}}}};n(e)}function _s(e){let t=new Set;return Un(e,o=>{e.contains(o)||t.add(o)}),Array.from(t)}function Sm(e){let t=e.getAttribute("role");return!!(t&&zn.has(t))}function Om(e){return e.hasAttribute("aria-controls")&&e.getAttribute("aria-expanded")==="true"}function zs(e){return Om(e)?!0:!!e.querySelector?.('[aria-controls][aria-expanded="true"]')}function Us(e){if(!e.id)return!1;let t=yr(e),o=CSS.escape(e.id),r=`[aria-controls~="${o}"][aria-expanded="true"], [aria-controls="${o}"][aria-expanded="true"]`;return!!(t.querySelector(r)&&Sm(e))}var wr=()=>typeof document<"u";function Am(){return navigator.userAgentData?.platform??navigator.platform}function Mm(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:o})=>`${t}/${o}`).join(" "):navigator.userAgent}var Gn=e=>wr()&&e.test(Am()),Gs=e=>wr()&&e.test(Mm()),Dm=e=>wr()&&e.test(navigator.vendor),$n=()=>wr()&&!!navigator.maxTouchPoints,Lm=()=>Gn(/^iPhone/i),Fm=()=>Gn(/^iPad/i)||Rt()&&navigator.maxTouchPoints>1,jn=()=>Lm()||Fm(),qn=()=>Rt()||jn(),Rt=()=>Gn(/^Mac/i),$s=()=>qn()&&Dm(/apple/i),js=()=>Gs(/Firefox/i);var qs=()=>Gs(/Android/i);function Vm(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function me(e){return Vm(e)?.[0]??e.target}function Ys(e){let t=e.currentTarget;if(!t||!t.matches("a[href], button[type='submit'], input[type='submit']"))return!1;let r=e.button===1,n=Bm(e);return r||n}function Xs(e){let t=e.currentTarget;if(!t)return!1;let o=t.localName;return e.altKey?o==="a"||o==="button"&&t.type==="submit"||o==="input"&&t.type==="submit":!1}function Zs(e){return Wm(e).isComposing||e.keyCode===229}function Bm(e){return Rt()?e.metaKey:e.ctrlKey}function Js(e){return e.pointerType===""&&e.isTrusted?!0:qs()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var St=e=>e.button===0,Pr=e=>e.button===2||Rt()&&e.ctrlKey&&e.button===0;var Hm={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},Ks={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function Kn(e,t={}){let{dir:o="ltr",orientation:r="horizontal"}=t,n=e.key;return n=Hm[n]??n,o==="rtl"&&r==="horizontal"&&n in Ks&&(n=Ks[n]),n}function Wm(e){return e.nativeEvent??e}var ye=(e,t,o,r)=>{let n=typeof e=="function"?e():e;return n?.addEventListener(t,o,r),()=>{n?.removeEventListener(t,o,r)}};var Qs=e=>J(e)&&e.tagName==="IFRAME",_m=/^(audio|video|details)$/;function ea(e){let t=e.getAttribute("tabindex");return t?parseInt(t,10):NaN}var zm=e=>!Number.isNaN(ea(e)),Um=e=>ea(e)<0;function Gm(e){return Wn(e)&&e.type==="radio"}function $m(e){if(!Gm(e)||!e.name||e.checked)return!0;let t=`input[type="radio"][name="${CSS.escape(e.name)}"]`,o=e.form??e.ownerDocument,r=Array.from(o.querySelectorAll(t)).filter(i=>i.form===e.form&&Ae(i)),n=r.find(i=>i.checked);return n?n===e:r[0]===e}function jm(e,t){if(!t)return null;if(t===!0)return e.shadowRoot||null;let o=t(e);return(o===!0?e.shadowRoot:o)||null}function ta(e,t,o){let r=[...e],n=[...e],i=new Set,l=new Map;e.forEach((c,p)=>l.set(c,p));let a=0;for(;a<n.length;){let c=n[a++];if(!c||i.has(c))continue;i.add(c);let p=jm(c,t);if(p){let u=Array.from(p.querySelectorAll(Er)).filter(o),d=l.get(c);if(d!==void 0){let g=d+1;r.splice(g,0,...u),u.forEach((f,m)=>{l.set(f,g+m)});for(let f=g+u.length;f<r.length;f++)l.set(r[f],f)}else{let g=r.length;r.push(...u),u.forEach((f,m)=>{l.set(f,g+m)})}n.push(...u)}}return r}var Er="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",Tr=(e,t={})=>{if(!e)return[];let{includeContainer:o=!1,getShadowRoot:r}=t,n=Array.from(e.querySelectorAll(Er));(o==!0||o=="if-empty"&&n.length===0)&&J(e)&&Ae(e)&&n.unshift(e);let l=[];for(let a of n)if(Ae(a)){if(Qs(a)&&a.contentDocument){let c=a.contentDocument.body;l.push(...Tr(c,{getShadowRoot:r}));continue}l.push(a)}return r?ta(l,r,Ae):l};function Ae(e){return!J(e)||e.closest("[inert]")?!1:e.matches(Er)&&Vs(e)}function Ot(e,t={}){if(!e)return[];let{includeContainer:o,getShadowRoot:r}=t,n=Array.from(e.querySelectorAll(Er));o&&at(e)&&n.unshift(e);let i=[];for(let l of n)if(at(l)){if(Qs(l)&&l.contentDocument){let a=l.contentDocument.body;i.push(...Ot(a,{getShadowRoot:r}));continue}i.push(l)}if(r){let l=ta(i,r,at);return!l.length&&o?n:l}return!i.length&&o?n:i}function at(e){return J(e)&&e.tabIndex>0?!0:!Ae(e)||Um(e)?!1:$m(e)}function Yn(e,t={}){let o=Ot(e,t),r=o[0]||null,n=o[o.length-1]||null;return[r,n]}function oa(e,t={}){let{current:o,getShadowRoot:r}=t,n=Ot(e,{getShadowRoot:r}),i=e?.ownerDocument||document,l=o??He(i);if(!l)return null;let a=n.indexOf(l);return n[a+1]||null}function oo(e){return e.tabIndex<0&&(_m.test(e.localName)||Bs(e))&&!zm(e)?0:e.tabIndex}function So(e){let{root:t,getInitialEl:o,filter:r,enabled:n=!0}=e;if(!n)return;let i=null;if(i||(i=typeof o=="function"?o():o),i||(i=t?.querySelector("[data-autofocus],[autofocus]")),!i){let l=Ot(t);i=r?l.filter(r)[0]:l[0]}return i||t||void 0}var qm=class ra{constructor(){br(this,"id",null),br(this,"fn_cleanup"),br(this,"cleanup",()=>{this.cancel()})}static create(){return new ra}request(t){this.cancel(),this.id=globalThis.requestAnimationFrame(()=>{this.id=null,this.fn_cleanup=t?.()})}cancel(){this.id!==null&&(globalThis.cancelAnimationFrame(this.id),this.id=null),this.fn_cleanup?.(),this.fn_cleanup=void 0}isActive(){return this.id!==null}};function q(e){let t=qm.create();return t.request(e),t.cleanup}function ro(e){let t=new Set;function o(r){let n=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(n))}return o(()=>o(e)),function(){t.forEach(n=>n())}}function na(e,t,o){let r=q(()=>{e.removeEventListener(t,n,!0),o()}),n=()=>{r(),o()};return e.addEventListener(t,n,{once:!0,capture:!0}),r}function Km(e,t){if(!e)return;let{attributes:o,callback:r}=t,n=e.ownerDocument.defaultView||window,i=new n.MutationObserver(l=>{for(let a of l)a.type==="attributes"&&a.attributeName&&o.includes(a.attributeName)&&r(a)});return i.observe(e,{attributes:!0,attributeFilter:o}),()=>i.disconnect()}function ia(e,t){let{defer:o}=t,r=o?q:i=>i(),n=[];return n.push(r(()=>{let i=typeof e=="function"?e():e;n.push(Km(i,t))})),()=>{n.forEach(i=>i?.())}}function la(e){let t=()=>{let o=te(e);e.dispatchEvent(new o.MouseEvent("click"))};js()?na(e,"keyup",t):queueMicrotask(t)}function Ir(e){let t=Hs(e);return Ds(t)?Q(t).body:J(t)&&Xn(t)?t:Ir(t)}var Ym=/auto|scroll|overlay|hidden|clip/,Xm=new Set(["inline","contents"]);function Xn(e){let t=te(e),{overflow:o,overflowX:r,overflowY:n,display:i}=t.getComputedStyle(e);return Ym.test(o+n+r)&&!Xm.has(i)}function Zm(e,t={}){let{triggerElement:o,onFocus:r,onFocusEnter:n,getShadowRoot:i}=t,l=e?.ownerDocument||document,a=l.body;function c(p){if(p.key!=="Tab")return;let u=null,[d,g]=Yn(e,{includeContainer:!0,getShadowRoot:i}),f=oa(a,{current:o,getShadowRoot:i}),m=!d&&!g;p.shiftKey&&Nt(f)?(n?.(),u=g):p.shiftKey&&(Nt(d)||m)?u=o:!p.shiftKey&&Nt(o)?(n?.(),u=d):!p.shiftKey&&(Nt(g)||m)&&(u=f),u&&(p.preventDefault(),typeof r=="function"?r(u):u.focus())}return ye(l,"keydown",c,!0)}function sa(e,t){let{defer:o,triggerElement:r,...n}=t,i=o?q:a=>a(),l=[];return l.push(i(()=>{let a=typeof e=="function"?e():e,c=typeof r=="function"?r():r;l.push(Zm(a,{triggerElement:c,...n}))})),()=>{l.forEach(a=>a?.())}}function Nr(e,t){return Array.from(e?.querySelectorAll(t)??[])}function aa(e,t){return e?.querySelector(t)??null}function Jm(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Zn(e,t){let{rootEl:o,...r}=t||{};!e||!o||!Xn(o)||!Jm(o)||e.scrollIntoView(r)}function At(e,t){if(!e)return No;let o=Object.keys(t).reduce((r,n)=>(r[n]=e.style.getPropertyValue(n),r),{});return Qm(o,t)?No:(Object.assign(e.style,t),()=>{Object.assign(e.style,o),e.style.length===0&&e.removeAttribute("style")})}function ca(e,t,o){if(!e)return No;let r=e.style.getPropertyValue(t);return r===o?No:(e.style.setProperty(t,o),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")})}function Qm(e,t){return Object.keys(e).every(o=>e[o]===t[o])}function ef(e,t,o){let{signal:r}=t;return[new Promise((l,a)=>{let c=setTimeout(()=>{a(new Error(`Timeout of ${o}ms exceeded`))},o);r.addEventListener("abort",()=>{clearTimeout(c),a(new DOMException("Promise aborted","AbortError"))}),e.then(p=>{r.aborted||(clearTimeout(c),l(p))}).catch(p=>{r.aborted||(clearTimeout(c),a(p))})}),()=>t.abort()]}function pa(e,t){let{timeout:o,rootNode:r}=t,n=te(r),i=Q(r),l=new n.AbortController;return ef(new Promise(a=>{let c=e();if(c){a(c);return}let p=new n.MutationObserver(()=>{let u=e();u&&u.isConnected&&(p.disconnect(),a(u))});p.observe(i.body,{childList:!0,subtree:!0})}),l,o)}var ma=["top","right","bottom","left"];var no=Math.min,ct=Math.max;var tf={left:"right",right:"left",bottom:"top",top:"bottom"};function Rr(e,t,o){return ct(e,no(t,o))}function $e(e,t){return typeof e=="function"?e(t):e}function je(e){return e.split("-")[0]}function Mt(e){return e.split("-")[1]}function Sr(e){return e==="x"?"y":"x"}function Or(e){return e==="y"?"height":"width"}function We(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Ar(e){return Sr(We(e))}function fa(e,t,o){o===void 0&&(o=!1);let r=Mt(e),n=Ar(e),i=Or(n),l=n==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Oo(l)),[l,Oo(l)]}function ga(e){let t=Oo(e);return[kr(e),t,kr(t)]}function kr(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var ua=["left","right"],da=["right","left"],of=["top","bottom"],rf=["bottom","top"];function nf(e,t,o){switch(e){case"top":case"bottom":return o?t?da:ua:t?ua:da;case"left":case"right":return t?of:rf;default:return[]}}function ha(e,t,o,r){let n=Mt(e),i=nf(je(e),o==="start",r);return n&&(i=i.map(l=>l+"-"+n),t&&(i=i.concat(i.map(kr)))),i}function Oo(e){let t=je(e);return tf[t]+e.slice(t.length)}function lf(e){return{top:0,right:0,bottom:0,left:0,...e}}function Jn(e){return typeof e!="number"?lf(e):{top:e,right:e,bottom:e,left:e}}function Dt(e){let{x:t,y:o,width:r,height:n}=e;return{width:r,height:n,top:o,left:t,right:t+r,bottom:o+n,x:t,y:o}}function xa(e,t,o){let{reference:r,floating:n}=e,i=We(t),l=Ar(t),a=Or(l),c=je(t),p=i==="y",u=r.x+r.width/2-n.width/2,d=r.y+r.height/2-n.height/2,g=r[a]/2-n[a]/2,f;switch(c){case"top":f={x:u,y:r.y-n.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-n.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Mt(t)){case"start":f[l]-=g*(o&&p?-1:1);break;case"end":f[l]+=g*(o&&p?-1:1);break}return f}async function ya(e,t){var o;t===void 0&&(t={});let{x:r,y:n,platform:i,rects:l,elements:a,strategy:c}=e,{boundary:p="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:g=!1,padding:f=0}=$e(t,e),m=Jn(f),h=a[g?d==="floating"?"reference":"floating":d],C=Dt(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(h)))==null||o?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:p,rootBoundary:u,strategy:c})),T=d==="floating"?{x:r,y:n,width:l.floating.width,height:l.floating.height}:l.reference,E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),w=await(i.isElement==null?void 0:i.isElement(E))?await(i.getScale==null?void 0:i.getScale(E))||{x:1,y:1}:{x:1,y:1},M=Dt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:T,offsetParent:E,strategy:c}):T);return{top:(C.top-M.top+m.top)/w.y,bottom:(M.bottom-C.bottom+m.bottom)/w.y,left:(C.left-M.left+m.left)/w.x,right:(M.right-C.right+m.right)/w.x}}var sf=50,Ca=async(e,t,o)=>{let{placement:r="bottom",strategy:n="absolute",middleware:i=[],platform:l}=o,a=l.detectOverflow?l:{...l,detectOverflow:ya},c=await(l.isRTL==null?void 0:l.isRTL(t)),p=await l.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:d}=xa(p,r,c),g=r,f=0,m={};for(let v=0;v<i.length;v++){let h=i[v];if(!h)continue;let{name:C,fn:T}=h,{x:E,y:w,data:M,reset:N}=await T({x:u,y:d,initialPlacement:r,placement:g,strategy:n,middlewareData:m,rects:p,platform:a,elements:{reference:e,floating:t}});u=E??u,d=w??d,m[C]={...m[C],...M},N&&f<sf&&(f++,typeof N=="object"&&(N.placement&&(g=N.placement),N.rects&&(p=N.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:n}):N.rects),{x:u,y:d}=xa(p,g,c)),v=-1)}return{x:u,y:d,placement:g,strategy:n,middlewareData:m}},wa=e=>({name:"arrow",options:e,async fn(t){let{x:o,y:r,placement:n,rects:i,platform:l,elements:a,middlewareData:c}=t,{element:p,padding:u=0}=$e(e,t)||{};if(p==null)return{};let d=Jn(u),g={x:o,y:r},f=Ar(n),m=Or(f),v=await l.getDimensions(p),h=f==="y",C=h?"top":"left",T=h?"bottom":"right",E=h?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[f]-g[f]-i.floating[m],M=g[f]-i.reference[f],N=await(l.getOffsetParent==null?void 0:l.getOffsetParent(p)),W=N?N[E]:0;(!W||!await(l.isElement==null?void 0:l.isElement(N)))&&(W=a.floating[E]||i.floating[m]);let y=w/2-M/2,O=W/2-v[m]/2-1,L=no(d[C],O),k=no(d[T],O),A=L,S=W-v[m]-k,_=W/2-v[m]/2+y,R=Rr(A,_,S),z=!c.arrow&&Mt(n)!=null&&_!==R&&i.reference[m]/2-(_<A?L:k)-v[m]/2<0,K=z?_<A?_-A:_-S:0;return{[f]:g[f]+K,data:{[f]:R,centerOffset:_-R-K,...z&&{alignmentOffset:K}},reset:z}}});var Pa=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,r;let{placement:n,middlewareData:i,rects:l,initialPlacement:a,platform:c,elements:p}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:g,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...h}=$e(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};let C=je(n),T=We(a),E=je(a)===a,w=await(c.isRTL==null?void 0:c.isRTL(p.floating)),M=g||(E||!v?[Oo(a)]:ga(a)),N=m!=="none";!g&&N&&M.push(...ha(a,v,m,w));let W=[a,...M],y=await c.detectOverflow(t,h),O=[],L=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&O.push(y[C]),d){let _=fa(n,l,w);O.push(y[_[0]],y[_[1]])}if(L=[...L,{placement:n,overflows:O}],!O.every(_=>_<=0)){var k,A;let _=(((k=i.flip)==null?void 0:k.index)||0)+1,R=W[_];if(R&&(!(d==="alignment"?T!==We(R):!1)||L.every(V=>We(V.placement)===T?V.overflows[0]>0:!0)))return{data:{index:_,overflows:L},reset:{placement:R}};let z=(A=L.filter(K=>K.overflows[0]<=0).sort((K,V)=>K.overflows[1]-V.overflows[1])[0])==null?void 0:A.placement;if(!z)switch(f){case"bestFit":{var S;let K=(S=L.filter(V=>{if(N){let be=We(V.placement);return be===T||be==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(be=>be>0).reduce((be,rr)=>be+rr,0)]).sort((V,be)=>V[1]-be[1])[0])==null?void 0:S[0];K&&(z=K);break}case"initialPlacement":z=a;break}if(n!==z)return{reset:{placement:z}}}return{}}}};function ba(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function va(e){return ma.some(t=>e[t]>=0)}var Ea=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:o,platform:r}=t,{strategy:n="referenceHidden",...i}=$e(e,t);switch(n){case"referenceHidden":{let l=await r.detectOverflow(t,{...i,elementContext:"reference"}),a=ba(l,o.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:va(a)}}}case"escaped":{let l=await r.detectOverflow(t,{...i,altBoundary:!0}),a=ba(l,o.floating);return{data:{escapedOffsets:a,escaped:va(a)}}}default:return{}}}}};var Ta=new Set(["left","top"]);async function af(e,t){let{placement:o,platform:r,elements:n}=e,i=await(r.isRTL==null?void 0:r.isRTL(n.floating)),l=je(o),a=Mt(o),c=We(o)==="y",p=Ta.has(l)?-1:1,u=i&&c?-1:1,d=$e(t,e),{mainAxis:g,crossAxis:f,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(f=a==="end"?m*-1:m),c?{x:f*u,y:g*p}:{x:g*p,y:f*u}}var Ia=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,r;let{x:n,y:i,placement:l,middlewareData:a}=t,c=await af(t,e);return l===((o=a.offset)==null?void 0:o.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:n+c.x,y:i+c.y,data:{...c,placement:l}}}}},Na=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:r,placement:n,platform:i}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:c={fn:C=>{let{x:T,y:E}=C;return{x:T,y:E}}},...p}=$e(e,t),u={x:o,y:r},d=await i.detectOverflow(t,p),g=We(je(n)),f=Sr(g),m=u[f],v=u[g];if(l){let C=f==="y"?"top":"left",T=f==="y"?"bottom":"right",E=m+d[C],w=m-d[T];m=Rr(E,m,w)}if(a){let C=g==="y"?"top":"left",T=g==="y"?"bottom":"right",E=v+d[C],w=v-d[T];v=Rr(E,v,w)}let h=c.fn({...t,[f]:m,[g]:v});return{...h,data:{x:h.x-o,y:h.y-r,enabled:{[f]:l,[g]:a}}}}}},ka=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:o,y:r,placement:n,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:c=!0,crossAxis:p=!0}=$e(e,t),u={x:o,y:r},d=We(n),g=Sr(d),f=u[g],m=u[d],v=$e(a,t),h=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){let E=g==="y"?"height":"width",w=i.reference[g]-i.floating[E]+h.mainAxis,M=i.reference[g]+i.reference[E]-h.mainAxis;f<w?f=w:f>M&&(f=M)}if(p){var C,T;let E=g==="y"?"width":"height",w=Ta.has(je(n)),M=i.reference[d]-i.floating[E]+(w&&((C=l.offset)==null?void 0:C[d])||0)+(w?0:h.crossAxis),N=i.reference[d]+i.reference[E]+(w?0:((T=l.offset)==null?void 0:T[d])||0)-(w?h.crossAxis:0);m<M?m=M:m>N&&(m=N)}return{[g]:f,[d]:m}}}},Ra=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,r;let{placement:n,rects:i,platform:l,elements:a}=t,{apply:c=()=>{},...p}=$e(e,t),u=await l.detectOverflow(t,p),d=je(n),g=Mt(n),f=We(n)==="y",{width:m,height:v}=i.floating,h,C;d==="top"||d==="bottom"?(h=d,C=g===(await(l.isRTL==null?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(C=d,h=g==="end"?"top":"bottom");let T=v-u.top-u.bottom,E=m-u.left-u.right,w=no(v-u[h],T),M=no(m-u[C],E),N=!t.middlewareData.shift,W=w,y=M;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(y=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(W=T),N&&!g){let L=ct(u.left,0),k=ct(u.right,0),A=ct(u.top,0),S=ct(u.bottom,0);f?y=m-2*(L!==0||k!==0?L+k:ct(u.left,u.right)):W=v-2*(A!==0||S!==0?A+S:ct(u.top,u.bottom))}await c({...t,availableWidth:y,availableHeight:W});let O=await l.getDimensions(a.floating);return m!==O.width||v!==O.height?{reset:{rects:!0}}:{}}}};var Mr=Math.min,Lt=Math.max,Ao=Math.round,Mo=Math.floor,_e=e=>({x:e,y:e});function Dr(){return typeof window<"u"}function Vt(e){return Oa(e)?(e.nodeName||"").toLowerCase():"#document"}function we(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ze(e){var t;return(t=(Oa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Oa(e){return Dr()?e instanceof Node||e instanceof we(e).Node:!1}function Me(e){return Dr()?e instanceof Element||e instanceof we(e).Element:!1}function qe(e){return Dr()?e instanceof HTMLElement||e instanceof we(e).HTMLElement:!1}function Sa(e){return!Dr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof we(e).ShadowRoot}function lo(e){let{overflow:t,overflowX:o,overflowY:r,display:n}=De(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&n!=="inline"&&n!=="contents"}function Aa(e){return/^(table|td|th)$/.test(Vt(e))}function Do(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var cf=/transform|translate|scale|rotate|perspective|filter/,pf=/paint|layout|strict|content/,Ft=e=>!!e&&e!=="none",Qn;function Lr(e){let t=Me(e)?De(e):e;return Ft(t.transform)||Ft(t.translate)||Ft(t.scale)||Ft(t.rotate)||Ft(t.perspective)||!Fr()&&(Ft(t.backdropFilter)||Ft(t.filter))||cf.test(t.willChange||"")||pf.test(t.contain||"")}function Ma(e){let t=ot(e);for(;qe(t)&&!Bt(t);){if(Lr(t))return t;if(Do(t))return null;t=ot(t)}return null}function Fr(){return Qn==null&&(Qn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Qn}function Bt(e){return/^(html|body|#document)$/.test(Vt(e))}function De(e){return we(e).getComputedStyle(e)}function Lo(e){return Me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ot(e){if(Vt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Sa(e)&&e.host||ze(e);return Sa(t)?t.host:t}function Da(e){let t=ot(e);return Bt(t)?e.ownerDocument?e.ownerDocument.body:e.body:qe(t)&&lo(t)?t:Da(t)}function io(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);let n=Da(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),l=we(n);if(i){let a=Vr(l);return t.concat(l,l.visualViewport||[],lo(n)?n:[],a&&o?io(a):[])}else return t.concat(n,io(n,[],o))}function Vr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ba(e){let t=De(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=qe(e),i=n?e.offsetWidth:o,l=n?e.offsetHeight:r,a=Ao(o)!==i||Ao(r)!==l;return a&&(o=i,r=l),{width:o,height:r,$:a}}function ti(e){return Me(e)?e:e.contextElement}function so(e){let t=ti(e);if(!qe(t))return _e(1);let o=t.getBoundingClientRect(),{width:r,height:n,$:i}=Ba(t),l=(i?Ao(o.width):o.width)/r,a=(i?Ao(o.height):o.height)/n;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}var uf=_e(0);function Ha(e){let t=we(e);return!Fr()||!t.visualViewport?uf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function df(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==we(e)?!1:t}function Ht(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);let n=e.getBoundingClientRect(),i=ti(e),l=_e(1);t&&(r?Me(r)&&(l=so(r)):l=so(e));let a=df(i,o,r)?Ha(i):_e(0),c=(n.left+a.x)/l.x,p=(n.top+a.y)/l.y,u=n.width/l.x,d=n.height/l.y;if(i){let g=we(i),f=r&&Me(r)?we(r):r,m=g,v=Vr(m);for(;v&&r&&f!==m;){let h=so(v),C=v.getBoundingClientRect(),T=De(v),E=C.left+(v.clientLeft+parseFloat(T.paddingLeft))*h.x,w=C.top+(v.clientTop+parseFloat(T.paddingTop))*h.y;c*=h.x,p*=h.y,u*=h.x,d*=h.y,c+=E,p+=w,m=we(v),v=Vr(m)}}return Dt({width:u,height:d,x:c,y:p})}function Br(e,t){let o=Lo(e).scrollLeft;return t?t.left+o:Ht(ze(e)).left+o}function Wa(e,t){let o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-Br(e,o),n=o.top+t.scrollTop;return{x:r,y:n}}function mf(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e,i=n==="fixed",l=ze(r),a=t?Do(t.floating):!1;if(r===l||a&&i)return o;let c={scrollLeft:0,scrollTop:0},p=_e(1),u=_e(0),d=qe(r);if((d||!d&&!i)&&((Vt(r)!=="body"||lo(l))&&(c=Lo(r)),d)){let f=Ht(r);p=so(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}let g=l&&!d&&!i?Wa(l,c):_e(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-c.scrollLeft*p.x+u.x+g.x,y:o.y*p.y-c.scrollTop*p.y+u.y+g.y}}function ff(e){return Array.from(e.getClientRects())}function gf(e){let t=ze(e),o=Lo(e),r=e.ownerDocument.body,n=Lt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Lt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-o.scrollLeft+Br(e),a=-o.scrollTop;return De(r).direction==="rtl"&&(l+=Lt(t.clientWidth,r.clientWidth)-n),{width:n,height:i,x:l,y:a}}var La=25;function hf(e,t){let o=we(e),r=ze(e),n=o.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,c=0;if(n){i=n.width,l=n.height;let u=Fr();(!u||u&&t==="fixed")&&(a=n.offsetLeft,c=n.offsetTop)}let p=Br(r);if(p<=0){let u=r.ownerDocument,d=u.body,g=getComputedStyle(d),f=u.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,m=Math.abs(r.clientWidth-d.clientWidth-f);m<=La&&(i-=m)}else p<=La&&(i+=p);return{width:i,height:l,x:a,y:c}}function xf(e,t){let o=Ht(e,!0,t==="fixed"),r=o.top+e.clientTop,n=o.left+e.clientLeft,i=qe(e)?so(e):_e(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y,c=n*i.x,p=r*i.y;return{width:l,height:a,x:c,y:p}}function Fa(e,t,o){let r;if(t==="viewport")r=hf(e,o);else if(t==="document")r=gf(ze(e));else if(Me(t))r=xf(t,o);else{let n=Ha(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Dt(r)}function _a(e,t){let o=ot(e);return o===t||!Me(o)||Bt(o)?!1:De(o).position==="fixed"||_a(o,t)}function bf(e,t){let o=t.get(e);if(o)return o;let r=io(e,[],!1).filter(a=>Me(a)&&Vt(a)!=="body"),n=null,i=De(e).position==="fixed",l=i?ot(e):e;for(;Me(l)&&!Bt(l);){let a=De(l),c=Lr(l);!c&&a.position==="fixed"&&(n=null),(i?!c&&!n:!c&&a.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||lo(l)&&!c&&_a(e,l))?r=r.filter(u=>u!==l):n=a,l=ot(l)}return t.set(e,r),r}function vf(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e,l=[...o==="clippingAncestors"?Do(t)?[]:bf(t,this._c):[].concat(o),r],a=Fa(t,l[0],n),c=a.top,p=a.right,u=a.bottom,d=a.left;for(let g=1;g<l.length;g++){let f=Fa(t,l[g],n);c=Lt(f.top,c),p=Mr(f.right,p),u=Mr(f.bottom,u),d=Lt(f.left,d)}return{width:p-d,height:u-c,x:d,y:c}}function yf(e){let{width:t,height:o}=Ba(e);return{width:t,height:o}}function Cf(e,t,o){let r=qe(t),n=ze(t),i=o==="fixed",l=Ht(e,!0,i,t),a={scrollLeft:0,scrollTop:0},c=_e(0);function p(){c.x=Br(n)}if(r||!r&&!i)if((Vt(t)!=="body"||lo(n))&&(a=Lo(t)),r){let f=Ht(t,!0,i,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else n&&p();i&&!r&&n&&p();let u=n&&!r&&!i?Wa(n,a):_e(0),d=l.left+a.scrollLeft-c.x-u.x,g=l.top+a.scrollTop-c.y-u.y;return{x:d,y:g,width:l.width,height:l.height}}function ei(e){return De(e).position==="static"}function Va(e,t){if(!qe(e)||De(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return ze(e)===o&&(o=o.ownerDocument.body),o}function za(e,t){let o=we(e);if(Do(e))return o;if(!qe(e)){let n=ot(e);for(;n&&!Bt(n);){if(Me(n)&&!ei(n))return n;n=ot(n)}return o}let r=Va(e,t);for(;r&&Aa(r)&&ei(r);)r=Va(r,t);return r&&Bt(r)&&ei(r)&&!Lr(r)?o:r||Ma(e)||o}var wf=async function(e){let t=this.getOffsetParent||za,o=this.getDimensions,r=await o(e.floating);return{reference:Cf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Pf(e){return De(e).direction==="rtl"}var Ef={convertOffsetParentRelativeRectToViewportRelativeRect:mf,getDocumentElement:ze,getClippingRect:vf,getOffsetParent:za,getElementRects:wf,getClientRects:ff,getDimensions:yf,getScale:so,isElement:Me,isRTL:Pf};function Ua(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Tf(e,t){let o=null,r,n=ze(e);function i(){var a;clearTimeout(r),(a=o)==null||a.disconnect(),o=null}function l(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();let p=e.getBoundingClientRect(),{left:u,top:d,width:g,height:f}=p;if(a||t(),!g||!f)return;let m=Mo(d),v=Mo(n.clientWidth-(u+g)),h=Mo(n.clientHeight-(d+f)),C=Mo(u),E={rootMargin:-m+"px "+-v+"px "+-h+"px "+-C+"px",threshold:Lt(0,Mr(1,c))||1},w=!0;function M(N){let W=N[0].intersectionRatio;if(W!==c){if(!w)return l();W?l(!1,W):r=setTimeout(()=>{l(!1,1e-7)},1e3)}W===1&&!Ua(p,e.getBoundingClientRect())&&l(),w=!1}try{o=new IntersectionObserver(M,{...E,root:n.ownerDocument})}catch{o=new IntersectionObserver(M,E)}o.observe(e)}return l(!0),i}function Ga(e,t,o,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,p=ti(e),u=n||i?[...p?io(p):[],...t?io(t):[]]:[];u.forEach(C=>{n&&C.addEventListener("scroll",o,{passive:!0}),i&&C.addEventListener("resize",o)});let d=p&&a?Tf(p,o):null,g=-1,f=null;l&&(f=new ResizeObserver(C=>{let[T]=C;T&&T.target===p&&f&&t&&(f.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var E;(E=f)==null||E.observe(t)})),o()}),p&&!c&&f.observe(p),t&&f.observe(t));let m,v=c?Ht(e):null;c&&h();function h(){let C=Ht(e);v&&!Ua(v,C)&&o(),v=C,m=requestAnimationFrame(h)}return o(),()=>{var C;u.forEach(T=>{n&&T.removeEventListener("scroll",o),i&&T.removeEventListener("resize",o)}),d?.(),(C=f)==null||C.disconnect(),f=null,c&&cancelAnimationFrame(m)}}var $a=Ia;var ja=Na,qa=Pa,Ka=Ra,Ya=Ea,Xa=wa;var Za=ka,Ja=(e,t,o)=>{let r=new Map,n={platform:Ef,...o},i={...n.platform,_c:r};return Ca(e,t,{...n,platform:i})};function Qa(e){return e==null?[]:Array.isArray(e)?e:[e]}var If=(e,t)=>e.indexOf(t)!==-1,Nf=(e,...t)=>e.concat(t),oi=(e,...t)=>e.filter(o=>!t.includes(o));var ri=(e,t)=>If(e,t)?oi(e,t):Nf(e,t);var ec=e=>e?.constructor.name==="Array",kf=(e,t)=>{if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!ao(e[o],t[o]))return!1;return!0},ao=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual=="function"&&typeof t?.isEqual=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(ec(e)&&ec(t))return kf(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;let o=Object.keys(t??Object.create(null)),r=o.length;for(let n=0;n<r;n++)if(!Reflect.has(e,o[n]))return!1;for(let n=0;n<r;n++){let i=o[n];if(!ao(e[i],t[i]))return!1}return!0};var Rf=e=>Array.isArray(e),tc=e=>e===!0||e===!1,oc=e=>e!=null&&typeof e=="object",Hr=e=>oc(e)&&!Rf(e);var co=e=>typeof e=="string",fe=e=>typeof e=="function",rc=e=>e==null,Wt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Sf=e=>Object.prototype.toString.call(e),nc=Function.prototype.toString,Of=nc.call(Object),ic=e=>{if(!oc(e)||Sf(e)!="[object Object]"||Df(e))return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let o=Wt(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&nc.call(o)==Of},Af=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,Mf=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,Df=e=>Af(e)||Mf(e);var lc=e=>e(),ni=()=>{},pt=(...e)=>(...t)=>{e.forEach(function(o){o?.(...t)})};function Ke(e,t,...o){if(e in t){let n=t[e];return fe(n)?n(...o):n}let r=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(r,Ke),r}function ut(e){if(!ic(e)||e===void 0)return e;let t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),o={};for(let r of t){let n=e[r];n!==void 0&&(o[r]=ut(n))}return o}function po(...e){let t=e.length===1?e[0]:e[1],o=e.length===2?e[0]:!0}function ii(...e){let t=e.length===1?e[0]:e[1],o=e.length===2?e[0]:!0}function _t(e,t){if(e==null)throw new Error(t())}function sc(e=0,t=0,o=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,o,r);let n={x:e,y:t,width:o,height:r,top:t,right:e+o,bottom:t+r,left:e};return{...n,toJSON:()=>n}}function Lf(e){if(!e)return sc();let{x:t,y:o,width:r,height:n}=e;return sc(t,o,r,n)}function ac(e,t){return{contextElement:J(e)?e:e?.contextElement,getBoundingClientRect:()=>{let o=e,r=t?.(o);return r||!o?Lf(r):o.getBoundingClientRect()}}}var Fo=e=>({variable:e,reference:`var(${e})`}),Ye={arrowSize:Fo("--arrow-size"),arrowSizeHalf:Fo("--arrow-size-half"),arrowBg:Fo("--arrow-background"),transformOrigin:Fo("--transform-origin"),arrowOffset:Fo("--arrow-offset")},Ff=e=>e==="top"||e==="bottom"?"y":"x";function cc(e,t){return{name:"transformOrigin",fn(o){let{elements:r,middlewareData:n,placement:i,rects:l,y:a}=o,c=i.split("-")[0],p=Ff(c),u=n.arrow?.x||0,d=n.arrow?.y||0,g=t?.clientWidth||0,f=t?.clientHeight||0,m=u+g/2,v=d+f/2,h=Math.abs(n.shift?.y||0),C=l.reference.height/2,T=f/2,E=e.offset?.mainAxis??e.gutter,w=typeof E=="number"?E+T:E??T,M=h>w,N={top:`${m}px calc(100% + ${w}px)`,bottom:`${m}px ${-w}px`,left:`calc(100% + ${w}px) ${v}px`,right:`${-w}px ${v}px`}[c],W=`${m}px ${l.reference.y+C-a}px`,y=!!e.overlap&&p==="y"&&M;return r.floating.style.setProperty(Ye.transformOrigin.variable,y?W:N),{data:{transformOrigin:y?W:N}}}}}var pc={name:"rects",fn({rects:e}){return{data:e}}},uc=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:o}){if(!o.arrow)return{};let{x:r,y:n}=o.arrow,i=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:n!=null?`${n}px`:"",[i]:`calc(100% + ${Ye.arrowOffset.reference})`}),{}}}};function dc(e){let[t,o]=e.split("-");return{side:t,align:o,hasAlign:o!=null}}function Vo(e){return e.split("-")[0]}var Vf={strategy:"absolute",placement:"bottom",listeners:!0,restoreStyles:!1,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function mc(e,t){let o=e.devicePixelRatio||1;return Math.round(t*o)/o}function uo(e,t){return e!=null&&Math.abs(e-t)<.5}function Wr(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function Bf(e,t,o){let r=e||t.createElement("div");return Xa({element:r,padding:o.arrowPadding})}function Hf(e,t){if(!rc(t.offset??t.gutter))return $a(({placement:o})=>{let r=(e?.clientHeight||0)/2,n=t.offset?.mainAxis??t.gutter,i=typeof n=="number"?n+r:n??r,{hasAlign:l}=dc(o),a=l?void 0:t.shift,c=t.offset?.crossAxis??a;return ut({crossAxis:c,mainAxis:i,alignmentAxis:t.shift})})}function Wf(e){if(e.flip)return qa(()=>{let t=Wr(e.boundary);return{...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip}})}function _f(e){if(!(!e.slide&&!e.overlap))return ja(()=>{let t=Wr(e.boundary);return{...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:Za()}})}function zf(e){if(e.sizeMiddleware===!1&&!e.sameWidth&&!e.fitViewport)return;let t,o,r,n;return Ka(()=>{let i=Wr(e.boundary);return{padding:e.overflowPadding,...i?{boundary:i}:void 0,apply({elements:l,rects:a,availableHeight:c,availableWidth:p}){let u=l.floating,d=Math.round(a.reference.width),g=Math.round(a.reference.height);p=Math.floor(p),c=Math.floor(c),uo(t,d)||(u.style.setProperty("--reference-width",`${d}px`),t=d),uo(o,g)||(u.style.setProperty("--reference-height",`${g}px`),o=g),uo(r,p)||(u.style.setProperty("--available-width",`${p}px`),r=p),uo(n,c)||(u.style.setProperty("--available-height",`${c}px`),n=c)}}})}function Uf(e){if(e.hideWhenDetached)return Ya(()=>({strategy:"referenceHidden",boundary:Wr(e.boundary)??"clippingAncestors"}))}function Gf(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}var $f=["transform","visibility","pointer-events","--x","--y","--z-index","--reference-width","--reference-height","--available-width","--available-height","--transform-origin"],jf=["top","right","bottom","left"];function fc(e,t){if(!e)return ni;let o=new Map(t.map(r=>[r,e.style.getPropertyValue(r)]));return()=>{o.forEach((r,n)=>{r?e.style.setProperty(n,r):e.style.removeProperty(n)}),e.style.length===0&&e.removeAttribute("style")}}function gc(e){return e==null?null:J(e)?e:typeof e=="object"&&e&&"contextElement"in e&&e.contextElement?e.contextElement:e}function qf(e,t,o={}){let r=()=>(typeof t=="function"?t():t)??null,n=()=>{let L=typeof e=="function"?e():e;return o.getAnchorElement?.()??L},i=()=>{let L=n();return!L&&!o.getAnchorRect?null:ac(L,o.getAnchorRect)},l=Object.assign({},Vf,o),a=[],c=null,p,u;function d(L){p?.(),u?.(),c=L,p=l.restoreStyles?fc(L,$f):void 0;let k=L.querySelector("[data-part=arrow]");u=l.restoreStyles?fc(k,jf):void 0,a=[Hf(k,l),Wf(l),_f(l),Bf(k,L.ownerDocument,l),uc(k),cc({gutter:l.gutter,offset:l.offset,overlap:l.overlap},k),zf(l),Uf(l),pc]}let{placement:g,strategy:f,onComplete:m,onPositioned:v}=l,h,C,T=!1,E,w,M=ni,N=Gf(l.listeners);function W(){if(!l.listeners)return;let L=n(),k=i(),A=r();if(!k||!A)return;(gc(L)!==gc(E)||A!==w)&&(M(),E=L,w=A,M=Ga(k,A,O,N))}async function y(){W();let L=r();if(!L)return;L!==c&&(d(L),T=!1);let k=i();if(!k)return;let A=await Ja(k,L,{placement:g,middleware:a,strategy:f});m?.(A);let S=te(L),_=mc(S,A.x),R=mc(S,A.y);if(uo(h,_)||(L.style.setProperty("--x",`${_}px`),h=_),uo(C,R)||(L.style.setProperty("--y",`${R}px`),C=R),l.hideWhenDetached&&(A.middlewareData.hide?.referenceHidden?(L.style.setProperty("visibility","hidden"),L.style.setProperty("pointer-events","none")):(L.style.removeProperty("visibility"),L.style.removeProperty("pointer-events"))),!T){let z=L.firstElementChild;z&&(L.style.setProperty("--z-index",Ge(z).zIndex),T=!0)}}async function O(){o.updatePosition?(await o.updatePosition({updatePosition:y,floatingElement:r()}),v?.({placed:!0})):await y()}return O(),()=>{M(),u?.(),p?.(),v?.({placed:!1})}}function zt(e,t,o={}){let{defer:r,...n}=o,i=r?q:a=>a(),l=[];return l.push(i(()=>{l.push(qf(e,t,n))})),()=>{l.forEach(a=>a?.())}}var Kf={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function Bo(e={}){let{placement:t,sameWidth:o,fitViewport:r,strategy:n="absolute"}=e;return{arrow:{position:"absolute",width:Ye.arrowSize.reference,height:Ye.arrowSize.reference,[Ye.arrowSizeHalf.variable]:`calc(${Ye.arrowSize.reference} / 2)`,[Ye.arrowOffset.variable]:`calc(${Ye.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?Kf[t.split("-")[0]]:void 0,background:Ye.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:n,isolation:"isolate",minWidth:o?void 0:"max-content",width:o?"var(--reference-width)":void 0,maxWidth:r?"var(--available-width)":void 0,maxHeight:r?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}var li=e=>e.ids?.anchor??`popover:${e.id}:anchor`,_r=(e,t)=>{let o=e.ids?.trigger;return o!=null?fe(o)?o(t):o:t?`popover:${e.id}:trigger:${t}`:`popover:${e.id}:trigger`},zr=e=>e.ids?.content??`popover:${e.id}:content`,si=e=>e.ids?.positioner??`popover:${e.id}:popper`,hc=e=>e.ids?.arrow??`popover:${e.id}:arrow`,Ur=e=>e.ids?.title??`popover:${e.id}:title`,Gr=e=>e.ids?.description??`popover:${e.id}:desc`,xc=e=>e.ids?.closeTrigger??`popover:${e.id}:close`,ai=e=>e.getById(li(e)),ci=e=>e.getById(_r(e)),$r=e=>Nr(e.getRootNode(),`[data-scope="popover"][data-part="trigger"][data-ownedby="${e.id}"]`),dt=(e,t)=>t==null?ci(e)??$r(e)[0]:e.getById(_r(e,t)),Ut=e=>e.getById(zr(e)),pi=e=>e.getById(si(e)),bc=e=>e.getById(Ur(e)),vc=e=>e.getById(Gr(e));function ui(e,t){let{state:o,context:r,send:n,computed:i,prop:l,scope:a}=e,c=l("translations"),p=o.matches("open"),u=r.get("currentPlacement"),d=u?Vo(u):void 0,g=i("currentPortalled"),f=r.get("renderedElements"),m=r.get("triggerValue"),v=Bo({...l("positioning"),placement:u});return{portalled:g,open:p,setOpen(h){o.matches("open")!==h&&n({type:h?"OPEN":"CLOSE"})},triggerValue:m,setTriggerValue(h){n({type:"TRIGGER_VALUE.SET",value:h})},reposition(h={}){n({type:"POSITIONING.SET",options:h})},getArrowProps(){return t.element({id:hc(a),...Be.arrow.attrs,dir:l("dir"),style:v.arrow})},getArrowTipProps(){return t.element({...Be.arrowTip.attrs,dir:l("dir"),style:v.arrowTip})},getAnchorProps(){return t.element({...Be.anchor.attrs,dir:l("dir"),id:li(a)})},getTriggerProps(h={}){let{value:C}=h,T=C==null?!1:m===C;return t.button({...Be.trigger.attrs,dir:l("dir"),type:"button","data-placement":u,"data-side":d,id:_r(a,C),"data-ownedby":a.id,"data-value":C,"data-current":G(T),"aria-haspopup":"dialog","aria-expanded":C==null?p:p&&T,"data-state":p?"open":"closed","aria-controls":zr(a),onPointerDown(E){St(E)&&$s()&&E.currentTarget.focus()},onClick(E){if(E.defaultPrevented)return;let w=p&&C!=null&&!T;n({type:w?"TRIGGER_VALUE.SET":"TOGGLE",value:C})},onBlur(E){n({type:"TRIGGER_BLUR",target:E.relatedTarget})}})},getIndicatorProps(){return t.element({...Be.indicator.attrs,dir:l("dir"),"data-state":p?"open":"closed"})},getPositionerProps(){return t.element({id:si(a),...Be.positioner.attrs,dir:l("dir"),style:v.floating})},getContentProps(){return t.element({...Be.content.attrs,dir:l("dir"),id:zr(a),tabIndex:-1,role:"dialog","aria-modal":et(l("modal")),hidden:!p,"data-state":p?"open":"closed","data-expanded":G(p),"aria-labelledby":f.title?Ur(a):void 0,"aria-describedby":f.description?Gr(a):void 0,"data-placement":u,"data-side":d})},getTitleProps(){return t.element({...Be.title.attrs,id:Ur(a),dir:l("dir")})},getDescriptionProps(){return t.element({...Be.description.attrs,id:Gr(a),dir:l("dir")})},getCloseTriggerProps(){return t.button({...Be.closeTrigger.attrs,dir:l("dir"),id:xc(a),type:"button","aria-label":c.closeTriggerLabel,onClick(h){h.defaultPrevented||(h.stopPropagation(),n({type:"CLOSE"}))}})}}}var mo=new WeakMap,jr=new WeakMap,qr={},di=0,Cc=e=>e&&(e.host||Cc(e.parentNode)),Yf=(e,t)=>t.map(o=>{if(e.contains(o))return o;let r=Cc(o);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",o,"in not contained inside",e,". Doing nothing"),null)}).filter(o=>!!o),Xf=new Set(["script","output","status","next-route-announcer"]),Zf=e=>Xf.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),wc=(e,t)=>{let{parentNode:o,markerName:r,controlAttribute:n,explicitBooleanValue:i,followControlledElements:l=!0}=t,a=Yf(o,Array.isArray(e)?e:[e]);qr[r]||(qr[r]=new WeakMap);let c=qr[r],p=[],u=new Set,d=new Set(a),g=m=>{!m||u.has(m)||(u.add(m),g(m.parentNode))};a.forEach(m=>{g(m),l&&J(m)&&Un(m,v=>{g(v)})});let f=m=>{!m||d.has(m)||Array.prototype.forEach.call(m.children,v=>{if(u.has(v))f(v);else try{if(Zf(v))return;let h=v.getAttribute(n),C=i?h==="true":h!==null&&h!=="false",T=(mo.get(v)||0)+1,E=(c.get(v)||0)+1;mo.set(v,T),c.set(v,E),p.push(v),T===1&&C&&jr.set(v,!0),E===1&&v.setAttribute(r,""),C||v.setAttribute(n,i?"true":"")}catch(h){console.error("[zag-js > ariaHidden] cannot operate on ",v,h)}})};return f(o),u.clear(),di++,()=>{p.forEach(m=>{let v=mo.get(m)-1,h=c.get(m)-1;mo.set(m,v),c.set(m,h),v||(jr.has(m)||m.removeAttribute(n),jr.delete(m)),h||m.removeAttribute(r)}),di--,di||(mo=new WeakMap,mo=new WeakMap,jr=new WeakMap,qr={})}};var Jf=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,Pc=(e,t=Jf(e),o="data-aria-hidden",r=!0)=>{if(t)return wc(e,{parentNode:t,markerName:o,controlAttribute:"aria-hidden",explicitBooleanValue:!0,followControlledElements:r})};var Qf=e=>{let t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function Kr(e,t={}){let{defer:o=!0}=t,r=o?Qf:i=>i(),n=[];return n.push(r(()=>{let l=(typeof e=="function"?e():e).filter(Boolean);l.length!==0&&n.push(Pc(l))})),()=>{n.forEach(i=>i?.())}}var e0=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),t0=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,Ec=e=>{let t={},o;for(;o=t0.exec(e);)t[o[1]]=o[2];return t},o0=(e,t)=>{if(co(e)){if(co(t))return`${e};${t}`;e=Ec(e)}else co(t)&&(t=Ec(t));return Object.assign({},e??{},t??{})};function I(...e){let t={};for(let o of e){if(!o)continue;for(let n in t){if(n.startsWith("on")&&typeof t[n]=="function"&&typeof o[n]=="function"){t[n]=pt(o[n],t[n]);continue}if(n==="className"||n==="class"){t[n]=e0(t[n],o[n]);continue}if(n==="style"){t[n]=o0(t[n],o[n]);continue}t[n]=o[n]!==void 0?o[n]:t[n]}for(let n in o)t[n]===void 0&&(t[n]=o[n]);let r=Object.getOwnPropertySymbols(o);for(let n of r)t[n]=o[n]}return t}var mt=".",Nc="#",Tc=new WeakMap,kc=new WeakMap;function mi(e){return e.join(mt)}function r0(e){return e.includes(mt)}function Rc(e){return e.startsWith(Nc)}function n0(e){return e.startsWith(mt)}function i0(e){return Rc(e)?e.slice(Nc.length):e}function fi(e,t){return e?`${e}${mt}${t}`:t}function l0(e){let t=new Map,o=new Map,r=(n,i)=>{t.set(n,i);let l=i.id;l&&(o.has(l)&&ii(`[zag-js] Duplicate state id: "${l}"`),o.set(l,n));let a=i.states;if(a){_t(i.initial,()=>`[zag-js] Compound state "${n}" has child states but no "initial" property`),i.initial in a||ii(`[zag-js] Compound state "${n}" has initial "${String(i.initial)}" which is not a child state`);for(let[c,p]of Object.entries(a)){if(!p)continue;let u=fi(n,c);r(u,p)}}};for(let[n,i]of Object.entries(e.states))i&&r(n,i);return{index:t,idIndex:o}}function fo(e){let t=Tc.get(e);if(t)return t;let{index:o,idIndex:r}=l0(e);return Tc.set(e,o),kc.set(e,r),o}function s0(e,t){return fo(e),kc.get(e)?.get(t)}function gi(e){return e?String(e).split(mt).filter(Boolean):[]}function Yr(e,t){if(!t)return[];let o=fo(e),r=gi(t),n=[],i=[];for(let l of r){i.push(l);let a=mi(i),c=o.get(a);if(!c)break;n.push({path:a,state:c})}return n}function Ho(e,t){let o=fo(e),r=gi(t);if(!r.length)return t;let n=[];for(let a of r){n.push(a);let c=mi(n);if(!o.has(c))return t}let i=mi(n),l=o.get(i);for(;l?.initial;){let a=`${i}${mt}${l.initial}`,c=o.get(a);if(!c)break;i=a,l=c}return i}function Ic(e,t){return fo(e).has(t)}function hi(e,t,o){let r=String(t);if(Rc(r)){let n=i0(r),i=s0(e,n);return _t(i,()=>`[zag-js] Unknown state id: "${n}"`),Ho(e,i)}if(n0(r)&&o){let n=fi(o,r.slice(1));return Ho(e,n)}if(!r0(r)&&o){let n=gi(o);for(let i=n.length-1;i>=1;i--){let l=n.slice(0,i).join(mt),a=fi(l,r);if(Ic(e,a))return Ho(e,a)}if(Ic(e,r))return Ho(e,r)}return Ho(e,r)}function Sc(e,t,o){let r=Yr(e,t);for(let i=r.length-1;i>=0;i--){let a=r[i]?.state.on?.[o];if(a)return{transitions:a,source:r[i]?.path}}return{transitions:e.on?.[o],source:void 0}}function Oc(e,t,o,r){let n=t?Yr(e,t):[],i=Yr(e,o),l=0;for(;l<n.length&&l<i.length&&n[l]?.path===i[l]?.path;)l+=1;let a=n.slice(l).reverse(),c=i.slice(l),p=n.at(-1)?.path===i.at(-1)?.path;return r&&p&&(a=n.slice().reverse(),c=i),{exiting:a,entering:c}}function Ac(e,t){return e?e===t||e.startsWith(`${t}${mt}`):!1}function Mc(e,t,o){return Yr(e,t).some(r=>r.state.tags?.includes(o))}function a0(){return{and:(...e)=>function(o){return e.every(r=>o.guard(r))},or:(...e)=>function(o){return e.some(r=>o.guard(r))},not:e=>function(o){return!o.guard(e)}}}function Gt(e){return fo(e),e}function Dc(){return{guards:a0(),createMachine:e=>Gt(e),choose:e=>function({choose:o}){return o(e)?.actions}}}var ft=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(ft||{}),Wo="__init__";function Lc(e){let t=()=>e.getRootNode?.()??document,o=()=>Q(t());return{...e,getRootNode:t,getDoc:o,getWin:()=>o().defaultView??window,getActiveElement:()=>He(t()),isActiveElement:Nt,getById:l=>t().getElementById(l)}}function Fc(e){let t={each(o){for(let r=0;r<e.frames?.length;r+=1){let n=e.frames[r];n&&o(n)}},addEventListener(o,r,n){return t.each(i=>{try{i.document.addEventListener(o,r,n)}catch{}}),()=>{try{t.removeEventListener(o,r,n)}catch{}}},removeEventListener(o,r,n){t.each(i=>{try{i.document.removeEventListener(o,r,n)}catch{}})}};return t}function Vc(e){let t=e.frameElement!=null?e.parent:null;return{addEventListener:(o,r,n)=>{try{t?.addEventListener(o,r,n)}catch{}return()=>{try{t?.removeEventListener(o,r,n)}catch{}}},removeEventListener:(o,r,n)=>{try{t?.removeEventListener(o,r,n)}catch{}}}}var Bc="pointerdown.outside",Hc="focus.outside";function c0(e){for(let t of e)if(J(t)&&Ae(t))return!0;return!1}var zc=e=>"clientY"in e;function p0(e,t){if(!zc(t)||!e)return!1;let o=e.getBoundingClientRect();return o.width===0||o.height===0?!1:o.top<=t.clientY&&t.clientY<=o.top+o.height&&o.left<=t.clientX&&t.clientX<=o.left+o.width}function u0(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function Wc(e,t){if(!t||!zc(e))return!1;let o=t.scrollHeight>t.clientHeight,r=o&&e.clientX>t.offsetLeft+t.clientWidth,n=t.scrollWidth>t.clientWidth,i=n&&e.clientY>t.offsetTop+t.clientHeight,l={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(o?16:0),height:t.clientHeight+(n?16:0)},a={x:e.clientX,y:e.clientY};return u0(l,a)?r||i:!1}function d0(e,t){let{exclude:o,onFocusOutside:r,onPointerDownOutside:n,onInteractOutside:i,defer:l,followControlledElements:a=!0}=t;if(!e)return;let c=Q(e),p=te(e),u=Fc(p),d=Vc(p);function g(w,M){if(!J(M)||!M.isConnected||kt(e,M)||p0(e,w)||a&&Cr(e,M))return!1;let N=c.querySelector(`[aria-controls="${e.id}"]`);if(N){let y=Ir(N);if(Wc(w,y))return!1}let W=Ir(e);return Wc(w,W)?!1:!o?.(M)}let f=new Set,m=tt(e?.getRootNode()),v=!1;function h(w){v=!0;let M=()=>{v=!1};c.addEventListener("pointerup",M,{once:!0}),p.addEventListener("pointerup",M,{once:!0});function N(W){let y=l&&!$n()?q:k=>k(),O=W??w,L=O?.composedPath?.()??[O?.target];y(()=>{let k=m?L[0]:me(w);if(!(!e||!g(w,k))){if(n||i){let A=pt(n,i);e.addEventListener(Bc,A,{once:!0})}_c(e,Bc,{bubbles:!1,cancelable:!0,detail:{originalEvent:O,contextmenu:Pr(O),focusable:c0(L),target:k}})}})}w.pointerType==="touch"?(f.forEach(W=>W()),f.add(ye(c,"click",N,{once:!0})),f.add(d.addEventListener("click",N,{once:!0})),f.add(u.addEventListener("click",N,{once:!0}))):N()}let C=new Set,T=setTimeout(()=>{C.add(ye(c,"pointerdown",h,!0)),C.add(d.addEventListener("pointerdown",h,!0)),C.add(u.addEventListener("pointerdown",h,!0))},0);function E(w){if(v)return;(l?q:N=>N())(()=>{let N=w?.composedPath?.()??[w?.target],W=m?N[0]:me(w);if(!(!e||!g(w,W))){if(r||i){let y=pt(r,i);e.addEventListener(Hc,y,{once:!0})}_c(e,Hc,{bubbles:!1,cancelable:!0,detail:{originalEvent:w,contextmenu:!1,focusable:Ae(W),target:W}})}})}return $n()||(C.add(ye(c,"focusin",E,!0)),C.add(d.addEventListener("focusin",E,!0)),C.add(u.addEventListener("focusin",E,!0))),()=>{clearTimeout(T),f.forEach(w=>w()),C.forEach(w=>w())}}function Uc(e,t){let{defer:o}=t,r=o?q:i=>i(),n=[];return n.push(r(()=>{let i=typeof e=="function"?e():e;n.push(d0(i,t))})),()=>{n.forEach(i=>i?.())}}function _c(e,t,o){let r=e.ownerDocument.defaultView||window,n=new r.CustomEvent(t,o);return e.dispatchEvent(n)}function Gc(e,t){let o=r=>{r.key==="Escape"&&(r.isComposing||t?.(r))};return ye(Q(e),"keydown",o,{capture:!0})}var $c="layer:request-dismiss",ge={layers:[],branches:[],recentlyRemoved:new Set,count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){let t=this.indexOf(e),o=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return t<o},isTopMost(e){return this.layers[this.count()-1]?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},getLayersByType(e){return this.layers.filter(t=>t.type===e)},getNestedLayersByType(e,t){let o=this.indexOf(e);return o===-1?[]:this.layers.slice(o+1).filter(r=>r.type===t)},getParentLayerOfType(e,t){let o=this.indexOf(e);if(!(o<=0))return this.layers.slice(0,o).reverse().find(r=>r.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return!!(this.getNestedLayers(e).some(r=>kt(r.node,t))||this.recentlyRemoved.size>0)},isInBranch(e){return Array.from(this.branches).some(t=>kt(t,e))},add(e){let t=this.indexOf(e.node);t!==-1&&this.layers.splice(t,1),this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){let t=this.indexOf(e);if(t<0)return;this.layers[t].styleTargets?.forEach(r=>{let n=r();n&&m0(n)}),this.recentlyRemoved.add(e),ro(()=>this.recentlyRemoved.delete(e)),t<this.count()-1&&this.getNestedLayers(e).forEach(n=>ge.dismiss(n.node,e)),this.layers.splice(t,1),this.syncLayers()},removeBranch(e){let t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayers(){this.layers.forEach((e,t)=>{jc(e,t,e.node),e.styleTargets?.forEach(o=>{let r=o();if(!r||r===e.node)return;jc(e,t,r);let{zIndex:n}=Ge(e.node);r.style.setProperty("--z-index",n)})})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){let o=this.indexOf(e);if(o===-1)return;let r=this.layers[o];g0(e,$c,n=>{r.requestDismiss?.(n),n.defaultPrevented||r?.dismiss()}),f0(e,$c,{originalLayer:e,targetLayer:t,originalIndex:o,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function jc(e,t,o){o.style.setProperty("--layer-index",`${t}`),o.removeAttribute("data-nested"),o.removeAttribute("data-has-nested"),ge.getParentLayerOfType(e.node,e.type)&&o.setAttribute("data-nested",e.type);let n=ge.countNestedLayersOfType(e.node,e.type);n>0&&o.setAttribute("data-has-nested",e.type),o.style.setProperty("--nested-layer-count",`${n}`)}function m0(e){e.style.removeProperty("--layer-index"),e.style.removeProperty("--nested-layer-count"),e.style.removeProperty("--z-index"),e.removeAttribute("data-nested"),e.removeAttribute("data-has-nested")}function f0(e,t,o){let r=e.ownerDocument.defaultView||window,n=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:o});return e.dispatchEvent(n)}function g0(e,t,o){e.addEventListener(t,o,{once:!0})}var xi=new WeakMap,_o=new WeakMap;function h0(e){return ge.isBelowPointerBlockingLayer(e)?"none":"auto"}function qc(e){let t=h0(e);e.style.pointerEvents!==t&&(e.style.pointerEvents=t)}function x0(e){if(_o.has(e))return;let t=te(e);if(typeof t.MutationObserver>"u")return;let o=new t.MutationObserver(()=>{_o.has(e)&&qc(e)});o.observe(e,{attributes:!0,attributeFilter:["style"]}),_o.set(e,o)}function bi(){ge.layers.forEach(({node:e})=>{qc(e),x0(e)})}function Kc(e){let t=_o.get(e);t&&(t.disconnect(),_o.delete(e)),e.style.pointerEvents=""}function Yc(e,t){let o=Q(e),r=[];return ge.hasPointerBlockingLayer()&&!o.body.hasAttribute("data-inert")&&(xi.set(o.body,o.body.style.pointerEvents),queueMicrotask(()=>{let n=o.body;n&&(n.style.pointerEvents="none",n.setAttribute("data-inert",""))})),t?.forEach(n=>{let[i,l]=pa(()=>{let a=n();return J(a)?a:null},{timeout:1e3});i.then(a=>r.push(At(a,{pointerEvents:"auto"}))),r.push(l)}),()=>{ge.hasPointerBlockingLayer()||(queueMicrotask(()=>{let n=o.body;if(!n)return;let i=xi.get(n);i!==void 0&&(n.style.pointerEvents=i,xi.delete(n)),n.removeAttribute("data-inert"),n.style.length===0&&n.removeAttribute("style")}),r.forEach(n=>n()))}}function b0(e,t){let{warnOnMissingNode:o=!0}=t;if(o&&!e){po("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;let{onDismiss:r,onRequestDismiss:n,pointerBlocking:i,exclude:l,debug:a,type:c="dialog",layerStyleTargets:p}=t,u={dismiss:r,node:e,type:c,pointerBlocking:i,requestDismiss:n,styleTargets:p};ge.add(u),bi();function d(h){let C=me(h.detail.originalEvent);ge.isBelowPointerBlockingLayer(e)||ge.isInBranch(C)||(t.onPointerDownOutside?.(h),t.onInteractOutside?.(h),!h.defaultPrevented&&(a&&console.log("onPointerDownOutside:",h.detail.originalEvent),r?.()))}function g(h){let C=me(h.detail.originalEvent);ge.isInBranch(C)||(t.onFocusOutside?.(h),t.onInteractOutside?.(h),!h.defaultPrevented&&(a&&console.log("onFocusOutside:",h.detail.originalEvent),r?.()))}function f(h){ge.isTopMost(e)&&(t.onEscapeKeyDown?.(h),!h.defaultPrevented&&r&&(h.preventDefault(),r()))}function m(h){if(!e)return!1;let C=typeof l=="function"?l():l,T=Array.isArray(C)?C:[C],E=t.persistentElements?.map(w=>w()).filter(J);return E&&T.push(...E),T.some(w=>kt(w,h))||ge.isInNestedLayer(e,h)}let v=[i?Yc(e,t.persistentElements):void 0,Gc(e,f),Uc(e,{exclude:m,onFocusOutside:g,onPointerDownOutside:d,defer:t.defer})];return()=>{ge.remove(e),bi(),Kc(e),v.forEach(h=>h?.())}}function go(e,t){let{defer:o}=t,r=o?q:i=>i(),n=[];return n.push(r(()=>{let i=fe(e)?e():e;n.push(b0(i,t))})),()=>{n.forEach(i=>i?.())}}var v0=Object.defineProperty,y0=(e,t,o)=>t in e?v0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,oe=(e,t,o)=>y0(e,typeof t!="symbol"?t+"":t,o);var Xc={activateTrap(e,t){if(e.length>0){let r=e[e.length-1];r!==t&&r.pause()}let o=e.indexOf(t);o===-1||e.splice(o,1),e.push(t)},deactivateTrap(e,t){let o=e.indexOf(t);o!==-1&&e.splice(o,1),e.length>0&&e[e.length-1].unpause()}},C0=[],Jc=class{constructor(e,t){oe(this,"trapStack"),oe(this,"config"),oe(this,"doc"),oe(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),oe(this,"portalContainers",new Set),oe(this,"listenerCleanups",[]),oe(this,"handleFocus",r=>{let n=me(r),i=this.findContainerIndex(n,r)>=0;if(i||Ro(n))i&&(this.state.mostRecentlyFocusedNode=n);else{r.stopImmediatePropagation();let l,a=!0;if(this.state.mostRecentlyFocusedNode)if(oo(this.state.mostRecentlyFocusedNode)>0){let c=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:p}=this.state.containerGroups[c];if(p.length>0){let u=p.findIndex(d=>d===this.state.mostRecentlyFocusedNode);u>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?u+1<p.length&&(l=p[u+1],a=!1):u-1>=0&&(l=p[u-1],a=!1))}}else this.state.containerGroups.some(c=>c.tabbableNodes.some(p=>oo(p)>0))||(a=!1);else a=!1;a&&(l=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),l?this.tryFocus(l):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),oe(this,"handlePointerDown",r=>{let n=me(r);if(!(this.findContainerIndex(n,r)>=0)){if(zo(this.config.clickOutsideDeactivates,r)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}zo(this.config.allowOutsideClick,r)||r.preventDefault()}}),oe(this,"handleClick",r=>{let n=me(r);this.findContainerIndex(n,r)>=0||zo(this.config.clickOutsideDeactivates,r)||zo(this.config.allowOutsideClick,r)||(r.preventDefault(),r.stopImmediatePropagation())}),oe(this,"handleTabKey",r=>{if(this.config.isKeyForward(r)||this.config.isKeyBackward(r)){this.state.recentNavEvent=r;let n=this.config.isKeyBackward(r),i=this.findNextNavNode({event:r,isBackward:n});if(!i)return;vi(r)&&r.preventDefault(),this.tryFocus(i)}}),oe(this,"handleEscapeKey",r=>{E0(r)&&zo(this.config.escapeDeactivates,r)!==!1&&(r.preventDefault(),this.deactivate())}),oe(this,"_mutationObserver"),oe(this,"setupMutationObserver",()=>{let r=this.doc.defaultView||window;this._mutationObserver=new r.MutationObserver(n=>{n.some(a=>Array.from(a.removedNodes).some(p=>p===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode()),n.some(a=>a.type==="attributes"&&(a.attributeName==="aria-controls"||a.attributeName==="aria-expanded")?!0:a.type==="childList"&&a.addedNodes.length>0?Array.from(a.addedNodes).some(c=>{if(c.nodeType!==Node.ELEMENT_NODE)return!1;let p=c;return zs(p)?!0:p.id&&!this.state.containers.some(u=>u.contains(p))?Us(p):!1}):!1)&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),oe(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map(r=>{this._mutationObserver?.observe(r,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}),this.portalContainers.forEach(r=>{this.observePortalContainer(r)}))}),oe(this,"getInitialFocusNode",()=>{let r=this.getNodeForOption("initialFocus",{hasFallback:!0});if(r===!1)return!1;if(r===void 0||r&&!Ae(r)){let n=He(this.doc);if(n&&this.findContainerIndex(n)>=0)r=n;else{let i=this.state.tabbableGroups[0];r=i&&i.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else r===null&&(r=this.getNodeForOption("fallbackFocus"));if(!r)throw new Error("Your focus-trap needs to have at least one focusable element");if(r.isConnected||(r=this.getNodeForOption("fallbackFocus")),!r||!r.isConnected)throw new Error("Your focus-trap needs to have at least one focusable element");return r}),oe(this,"tryFocus",r=>{if(r!==!1&&r!==He(this.doc)){if(!r||!r.focus){this.tryFocus(this.getInitialFocusNode());return}r.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=r,T0(r)&&r.select()}}),oe(this,"deactivate",r=>{if(!this.state.active)return this;let n={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...r};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),Xc.deactivateTrap(this.trapStack,this),this.portalContainers.clear();let i=this.getOption(n,"onDeactivate"),l=this.getOption(n,"onPostDeactivate"),a=this.getOption(n,"checkCanReturnFocus"),c=this.getOption(n,"returnFocus","returnFocusOnDeactivate");i?.();let p=()=>{Zc(()=>{if(c){let u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(u)}l?.()})};if(c&&a){let u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return a(u).then(p,p),this}return p(),this}),oe(this,"pause",r=>{if(this.state.paused||!this.state.active)return this;let n=this.getOption(r,"onPause"),i=this.getOption(r,"onPostPause");return this.state.paused=!0,n?.(),this.removeListeners(),this.updateObservedNodes(),i?.(),this}),oe(this,"unpause",r=>{if(!this.state.paused||!this.state.active)return this;let n=this.getOption(r,"onUnpause"),i=this.getOption(r,"onPostUnpause");return this.state.paused=!1,n?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i?.(),this}),oe(this,"updateContainerElements",r=>(this.state.containers=Array.isArray(r)?r.filter(Boolean):[r].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),oe(this,"getReturnFocusNode",r=>{let n=this.getNodeForOption("setReturnFocus",{params:[r]});return n||(n===!1?!1:r)}),oe(this,"getOption",(r,n,i)=>r&&r[n]!==void 0?r[n]:this.config[i||n]),oe(this,"getNodeForOption",(r,{hasFallback:n=!1,params:i=[]}={})=>{let l=this.config[r];if(typeof l=="function"&&(l=l(...i)),l===!0&&(l=void 0),!l){if(l===void 0||l===!1)return l;throw new Error(`\`${r}\` was specified but was not a node, or did not return a node`)}let a=l;if(typeof l=="string"){try{a=this.doc.querySelector(l)}catch(c){throw new Error(`\`${r}\` appears to be an invalid selector; error="${c.message}"`)}if(!a&&!n)throw new Error(`\`${r}\` as selector refers to no known node`)}return a}),oe(this,"findNextNavNode",r=>{let{event:n,isBackward:i=!1}=r,l=r.target||me(n);this.updateTabbableNodes();let a=null;if(this.state.tabbableGroups.length>0){let c=this.findContainerIndex(l,n),p=c>=0?this.state.containerGroups[c]:void 0;if(c<0)i?a=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:a=this.state.tabbableGroups[0].firstTabbableNode;else if(i){let u=this.state.tabbableGroups.findIndex(({firstTabbableNode:d})=>l===d);if(u<0&&(p?.container===l||Ae(l)&&!at(l)&&!p?.nextTabbableNode(l,!1))&&(u=c),u>=0){let d=u===0?this.state.tabbableGroups.length-1:u-1,g=this.state.tabbableGroups[d];a=oo(l)>=0?g.lastTabbableNode:g.lastDomTabbableNode}else vi(n)||(a=p?.nextTabbableNode(l,!1))}else{let u=this.state.tabbableGroups.findIndex(({lastTabbableNode:d})=>l===d);if(u<0&&(p?.container===l||Ae(l)&&!at(l)&&!p?.nextTabbableNode(l))&&(u=c),u>=0){let d=u===this.state.tabbableGroups.length-1?0:u+1,g=this.state.tabbableGroups[d];a=oo(l)>=0?g.firstTabbableNode:g.firstDomTabbableNode}else vi(n)||(a=p?.nextTabbableNode(l))}}else a=this.getNodeForOption("fallbackFocus");return a}),this.trapStack=t.trapStack||C0;let o={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward:w0,isKeyBackward:P0,...t};this.doc=o.document||Q(Array.isArray(e)?e[0]:e),this.config=o,this.updateContainerElements(e),this.setupMutationObserver()}addPortalContainer(e){let t=e.parentElement;t&&!this.portalContainers.has(t)&&(this.portalContainers.add(t),this.state.active&&!this.state.paused&&this.observePortalContainer(t))}observePortalContainer(e){this._mutationObserver?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}updatePortalContainers(){this.config.followControlledElements&&this.state.containers.forEach(e=>{_s(e).forEach(o=>{this.addPortalContainer(o)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){let o=typeof t?.composedPath=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:r,tabbableNodes:n})=>r.contains(e)||o?.includes(r)||n.find(i=>i===e)||this.isControlledElement(r,e))}isControlledElement(e,t){return this.config.followControlledElements?Cr(e,t):!1}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{let t=Ot(e,{getShadowRoot:this.config.getShadowRoot}),o=Tr(e,{getShadowRoot:this.config.getShadowRoot}),r=t[0],n=t[t.length-1],i=r,l=n,a=!1;for(let p=0;p<t.length;p++)if(oo(t[p])>0){a=!0;break}function c(p,u=!0){let d=t.indexOf(p);if(d>=0)return t[d+(u?1:-1)];let g=o.indexOf(p);if(!(g<0)){if(u){for(let f=g+1;f<o.length;f++)if(at(o[f]))return o[f]}else for(let f=g-1;f>=0;f--)if(at(o[f]))return o[f]}}return{container:e,tabbableNodes:t,focusableNodes:o,posTabIndexesFound:a,firstTabbableNode:r,lastTabbableNode:n,firstDomTabbableNode:i,lastDomTabbableNode:l,nextTabbableNode:c}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return Xc.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?Zc(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(ye(this.doc,"focusin",this.handleFocus,!0),ye(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),ye(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),ye(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),ye(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),ye(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;let t=this.getOption(e,"onActivate"),o=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=He(this.doc),t?.();let n=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),o?.()};return r?(r(this.state.containers.concat()).then(n,n),this):(n(),this)}},yi=e=>e?.type==="keydown",vi=e=>yi(e)&&e?.key==="Tab",w0=e=>yi(e)&&e.key==="Tab"&&!e?.shiftKey,P0=e=>yi(e)&&e.key==="Tab"&&e?.shiftKey,zo=(e,...t)=>typeof e=="function"?e(...t):e,E0=e=>!e.isComposing&&e.key==="Escape",Zc=e=>setTimeout(e,0),T0=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function Xr(e,t={}){let o,r=q(()=>{let i=(Array.isArray(e)?e:[e]).map(a=>typeof a=="function"?a():a).filter(a=>a!=null);if(i.length===0)return;let l=i[0];o=new Jc(i,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:l,...t,document:Q(l)});try{o.activate()}catch{}});return function(){o?.deactivate(),r()}}var Qc="data-scroll-lock",Ci=new WeakMap;function I0(e){let t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function ep(e){let o=Ge(e)?.scrollbarGutter;return o==="stable"||o?.startsWith("stable ")===!0}function N0(e){let t=e.defaultView??window,{documentElement:o,body:r}=e,n=ep(o)||ep(r),i=t.innerWidth-o.clientWidth;r.setAttribute(Qc,"");let l=()=>ca(o,"--scrollbar-width",`${i}px`),a=I0(o),c=()=>{let d={overflow:"hidden"};return!n&&i>0&&(d[a]=`${i}px`),At(r,d)},p=()=>{let{scrollX:d,scrollY:g,visualViewport:f}=t,m=f?.offsetLeft??0,v=f?.offsetTop??0,h={position:"fixed",overflow:"hidden",top:`${-(g-Math.floor(v))}px`,left:`${-(d-Math.floor(m))}px`,right:"0"};!n&&i>0&&(h[a]=`${i}px`);let C=At(r,h);return()=>{C?.(),t.scrollTo({left:d,top:g,behavior:"instant"})}},u=[l(),jn()?p():c()];return()=>{u.forEach(d=>d?.()),r.removeAttribute(Qc)}}function Zr(e){let t=e??document,o=Ci.get(t);o||(o={count:0,cleanup:N0(t)},Ci.set(t,o)),o.count++;let r=o,n=!1;return()=>{n||(n=!0,r.count--,r.count===0&&(r.cleanup(),Ci.delete(t)))}}var wi=Gt({props({props:e}){return{closeOnInteractOutside:!0,closeOnEscape:!0,autoFocus:!0,modal:!1,portalled:!0,restoreFocus:!0,...e,translations:{closeTriggerLabel:"close",...e.translations},positioning:{placement:"bottom",...e.positioning}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e,prop:t,scope:o}){return{currentPlacement:e(()=>({defaultValue:void 0})),renderedElements:e(()=>({defaultValue:{title:!0,description:!0}})),triggerValue:e(()=>({defaultValue:t("defaultTriggerValue")??null,value:t("triggerValue"),onChange(r){let n=t("onTriggerValueChange");if(!n)return;let i=dt(o,r);n({value:r,triggerElement:i})}}))}},computed:{currentPortalled:({prop:e})=>!!e("modal")||!!e("portalled")},watch({track:e,prop:t,action:o}){e([()=>t("open")],()=>{o(["toggleVisibility"])})},entry:["checkRenderedElements"],on:{"TRIGGER_VALUE.SET":{actions:["setTriggerValue","reposition"]}},states:{closed:{on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue","setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue","setInitialFocus"]}]}},open:{effects:["trapFocus","preventScroll","hideContentBelow","trackDismissableElement","trackPositioning","proxyTabFocus"],on:{"CONTROLLED.CLOSE":{target:"closed",actions:["setFinalFocus"]},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose","setFinalFocus"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackPositioning({context:e,prop:t,scope:o}){e.set("currentPlacement",t("positioning").placement);let r=ai(o);return zt(()=>r??dt(o,e.get("triggerValue")),()=>pi(o),{...t("positioning"),defer:!0,onComplete(l){e.set("currentPlacement",l.placement)}})},trackDismissableElement({send:e,prop:t,scope:o}){let r=()=>Ut(o),n=!0;return go(r,{type:"popover",pointerBlocking:t("modal"),exclude:[ci(o),...$r(o)].filter(Boolean),defer:!0,onEscapeKeyDown(i){t("onEscapeKeyDown")?.(i),!t("closeOnEscape")&&i.preventDefault()},onInteractOutside(i){t("onInteractOutside")?.(i),!i.defaultPrevented&&(n=!(i.detail.focusable||i.detail.contextmenu),t("closeOnInteractOutside")||i.preventDefault())},onPointerDownOutside:t("onPointerDownOutside"),onFocusOutside:t("onFocusOutside"),persistentElements:t("persistentElements"),onRequestDismiss:t("onRequestDismiss"),onDismiss(){e({type:"CLOSE",src:"interact-outside",restoreFocus:n})}})},proxyTabFocus({prop:e,scope:t,context:o}){return e("modal")||!e("portalled")?void 0:sa(()=>Ut(t),{triggerElement:dt(t,o.get("triggerValue")),defer:!0,getShadowRoot:!0,onFocus(n){n.focus({preventScroll:!0})}})},hideContentBelow({prop:e,scope:t,context:o}){return e("modal")?Kr(()=>[Ut(t),dt(t,o.get("triggerValue"))],{defer:!0}):void 0},preventScroll({prop:e,scope:t}){if(e("modal"))return Zr(t.getDoc())},trapFocus({prop:e,scope:t,context:o}){return e("modal")?Xr(()=>Ut(t),{preventScroll:!0,returnFocusOnDeactivate:!!e("restoreFocus"),initialFocus:()=>So({root:Ut(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")}),setReturnFocus:n=>{let i=e("finalFocusEl")?.();if(i)return i;let l=o.get("triggerValue");if(l){let c=dt(t,l);if(c)return c}let a=$r(t)[0];return a||n},getShadowRoot:!0}):void 0}},actions:{reposition({event:e,prop:t,scope:o,context:r}){let n=ai(o);zt(()=>n??dt(o,r.get("triggerValue")),()=>pi(o),{...t("positioning"),...e.options,defer:!0,listeners:!1,onComplete(a){r.set("currentPlacement",a.placement)}})},setTriggerValue({context:e,event:t}){t.value!==void 0&&e.set("triggerValue",t.value)},checkRenderedElements({context:e,scope:t}){q(()=>{Object.assign(e.get("renderedElements"),{title:!!bc(t),description:!!vc(t)})})},setInitialFocus({prop:e,scope:t}){e("modal")||q(()=>{So({root:Ut(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")})?.focus({preventScroll:!0})})},setFinalFocus({event:e,prop:t,scope:o,context:r}){let n=e.restoreFocus??e.previousEvent?.restoreFocus;n!=null&&!n||t("restoreFocus")&&q(()=>{let i=t("finalFocusEl")?.();if(i){i.focus({preventScroll:!0});return}dt(o,r.get("triggerValue"))?.focus({preventScroll:!0})})},invokeOnOpen({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!0})})},invokeOnClose({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!1})})},toggleVisibility({event:e,send:t,prop:o}){t({type:o("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function tp(e){return new Proxy({},{get(t,o){return o==="style"?r=>e({style:r}).style:e}})}function R0(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function re(e={}){let{name:t,strict:o=!0,hookName:r="useContext",providerName:n="Provider",errorMessage:i,defaultValue:l}=e,a=cs(l);a.displayName=t;function c(){let p=ds(a);if(!p&&o){let u=new Error(i??R0(r,n));throw u.name="ContextError",Wt(Error,"captureStackTrace")&&fe(Error.captureStackTrace)&&Error.captureStackTrace(u,c),u}return p}return[a.Provider,c,a]}var[Jr,ne]=re({name:"PopoverContext",hookName:"usePopoverContext",providerName:"<PopoverProvider />"});function Pe(...e){return t=>{let o=[];for(let r of e)if(typeof r=="function"){let n=r(t);typeof n=="function"&&o.push(n)}else r&&(r.current=t);if(o.length)return()=>{for(let r of o)r()}}}function S0(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var Pi=e=>{let t=us(P((o,r)=>{let{asChild:n,children:i,...l}=o;if(!n)return cr(e,{...l,ref:r},i);if(!ps(i))return null;let a=ar.only(i),c=S0(a);return as(a,{...I(l,a.props),ref:r?Pe(r,c):c})}));return t.displayName=e.displayName||e.name,t},O0=()=>{let e=new Map;return new Proxy(Pi,{apply(t,o,r){return Pi(r[0])},get(t,o){let r=o;return e.has(r)||e.set(r,Pi(r)),e.get(r)}})},D=O0();function A0(){let e=globalThis.ReactDOM;if(!e)throw new Error("@pollinations/ui browser bundle requires globalThis.ReactDOM. Load ReactDOM before @pollinations/ui.");return e}var M0=A0();var{createPortal:Qr,flushSync:Uo}=M0;var en=typeof globalThis.document<"u"?ur:Y;function Go(e){let t=e().value??e().defaultValue,o=e().isEqual??Object.is,[r]=ee(t),[n,i]=ee(r),l=e().value!==void 0,a=$(n);a.current=l?e().value:n;let c=$(a.current);en(()=>{c.current=a.current},[n,e().value]);let p=d=>{let g=c.current,f=fe(d)?d(g):d;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:f,prev:g}),l||i(f),o(f,g)||e().onChange?.(f,g)};function u(){return l?e().value:n}return{initial:r,ref:a,get:u,set(d){(e().sync?Uo:lc)(()=>p(d))},invoke(d,g){e().onChange?.(d,g)},hash(d){return e().hash?.(d)??String(d)}}}Go.cleanup=e=>{Y(()=>e,[])};Go.ref=e=>{let t=$(e);return{get:()=>t.current,set:o=>{t.current=o}}};function op(e){let t=$(e);return{get(o){return t.current[o]},set(o,r){t.current[o]=r}}}var rp=(e,t)=>{let o=$(!1),r=$(!1);Y(()=>{if(o.current&&r.current)return t();r.current=!0},[...(e??[]).map(n=>typeof n=="function"?n():n)]),Y(()=>(o.current=!0,()=>{o.current=!1}),[])};function gt(e,t={}){let o=se(()=>{let{id:k,ids:A,getRootNode:S}=t;return Lc({id:k,ids:A,getRootNode:S})},[t]),r=(...k)=>{e.debug&&console.log(...k)},n=e.props?.({props:ut(t),scope:o})??t,i=D0(n),l=e.context?.({prop:i,bindable:Go,scope:o,flush:np,getContext(){return c},getComputed(){return M},getRefs(){return v},getEvent(){return f()}}),a=ip(l),c={get(k){return a.current?.[k].ref.current},set(k,A){a.current?.[k].set(A)},initial(k){return a.current?.[k].initial},hash(k){let A=a.current?.[k].get();return a.current?.[k].hash(A)}},p=$(new Map),u=$(null),d=$(null),g=$({type:""}),f=()=>({...g.current,current(){return g.current},previous(){return d.current}}),m=()=>({...N,matches(...k){return k.some(A=>Ac(N.ref.current,A))},hasTag(k){return Mc(e,N.ref.current,k)}}),v=op(e.refs?.({prop:i,context:c})??{}),h=()=>({state:m(),context:c,event:f(),prop:i,send:L,action:C,guard:T,track:rp,refs:v,computed:M,flush:np,scope:o,choose:w}),C=k=>{let A=fe(k)?k(h()):k;if(!A)return;let S=A.map(_=>{let R=e.implementations?.actions?.[_];return R||po(`[zag-js] No implementation found for action "${JSON.stringify(_)}"`),R});for(let _ of S)_?.(h())},T=k=>{if(fe(k))return k(h());let A=e.implementations?.guards?.[k];return A||po(`[zag-js] No implementation found for guard "${JSON.stringify(k)}"`),A?.(h())},E=k=>{let A=fe(k)?k(h()):k;if(!A)return;let S=A.map(R=>{let z=e.implementations?.effects?.[R];return z||po(`[zag-js] No implementation found for effect "${JSON.stringify(R)}"`),z}),_=[];for(let R of S){let z=R?.(h());z&&_.push(z)}return()=>_.forEach(R=>R?.())},w=k=>Qa(k).find(A=>{let S=!A.guard;return co(A.guard)?S=!!T(A.guard):fe(A.guard)&&(S=A.guard(h())),S}),M=k=>{_t(e.computed,()=>"[zag-js] No computed object found on machine");let A=e.computed[k];return A({context:c,event:f(),prop:i,refs:v,scope:o,computed:M})},N=Go(()=>({defaultValue:hi(e,e.initialState({prop:i})),onChange(k,A){let{exiting:S,entering:_}=Oc(e,A,k,u.current?.reenter);if(S.forEach(R=>{p.current.get(R.path)?.(),p.current.delete(R.path)}),S.forEach(R=>{C(R.state?.exit)}),C(u.current?.actions),_.forEach(R=>{let z=E(R.state?.effects);if(z){let K=p.current.get(R.path);p.current.set(R.path,K?pt(K,z):z)}}),A===Wo){C(e.entry);let R=E(e.effects);if(R){let z=p.current.get(Wo);p.current.set(Wo,z?pt(z,R):R)}}_.forEach(R=>{C(R.state?.entry)})}})),W=$(void 0),y=$(ft.NotStarted);en(()=>{queueMicrotask(()=>{let A=y.current===ft.Started;y.current=ft.Started,r(A?"rehydrating...":"initializing...");let S=W.current??N.initial;N.invoke(S,A?N.get():Wo)});let k=p.current;return()=>{let A=O();r("unmounting..."),W.current=A,y.current=ft.Stopped,k.forEach(S=>S?.()),p.current=new Map,u.current=null,queueMicrotask(()=>{C(e.exit),y.current=ft.Stopped})}},[]);let O=()=>"ref"in N?N.ref.current:N.get(),L=k=>{queueMicrotask(()=>{if(y.current!==ft.Started)return;d.current=g.current,g.current=k;let A=O(),{transitions:S,source:_}=Sc(e,A,k.type),R=w(S);if(!R)return;u.current=R;let z=hi(e,R.target??A,_);r("transition",k.type,R.target||A,`(${R.actions})`),z!==A?Uo(()=>N.set(z)):R.reenter?N.invoke(A,A):C(R.actions??[])})};return e.watch?.(h()),{state:m(),send:L,context:c,prop:i,scope:o,refs:v,computed:M,event:f(),getStatus:()=>y.current}}function ip(e){let t=$(e);return t.current=e,t}function D0(e){let t=ip(e);return function(r){return t.current[r]}}function np(e){queueMicrotask(()=>{Uo(()=>e())})}var ht=tp(e=>e);var Ei=P((e,t)=>{let o=I(ne().getAnchorProps(),e);return s(D.div,{...o,ref:t})});Ei.displayName="PopoverAnchor";var Ti=P((e,t)=>{let o=I(ne().getArrowProps(),e);return s(D.div,{...o,ref:t})});Ti.displayName="PopoverArrow";var Ii=P((e,t)=>{let o=I(ne().getArrowTipProps(),e);return s(D.div,{...o,ref:t})});Ii.displayName="PopoverArrowTip";var Ni=P((e,t)=>{let o=I(ne().getCloseTriggerProps(),e);return s(D.button,{...o,ref:t})});Ni.displayName="PopoverCloseTrigger";var[Le,he]=re({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"});var ki=P((e,t)=>{let o=ne(),r=he(),n=I(o.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:s(D.div,{...n,ref:Pe(r.ref,t)})});ki.displayName="PopoverContent";var lp=e=>e.children(ne());var Ri=P((e,t)=>{let o=I(ne().getDescriptionProps(),e);return s(D.div,{...o,ref:t})});Ri.displayName="PopoverDescription";var Si=P((e,t)=>{let o=I(ne().getIndicatorProps(),e);return s(D.div,{...o,ref:t})});Si.displayName="PopoverIndicator";var Oi=P((e,t)=>{let o=ne(),r=he(),n=I(o.getPositionerProps(),e);return r.unmounted?null:s(D.div,{...n,ref:t})});Oi.displayName="PopoverPositioner";var[xb,Xe]=re({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});var[yb,ho]=re({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}});var sp=e=>{let t=ue(),{getRootNode:o}=Xe(),{dir:r}=ho(),n={id:t,dir:r,getRootNode:o,...e},i=gt(wi,n);return ui(i,ht)};var ie=()=>(e,t)=>t.reduce((o,r)=>{let[n,i]=o,l=r;return i[l]!==void 0&&(n[l]=i[l]),delete i[l],[n,i]},[{},{...e}]);var Fe=e=>ie()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function ap(e,t={}){let{sync:o=!1}=t,r=L0(e);return pr((...n)=>o?queueMicrotask(()=>r.current?.(...n)):r.current?.(...n),[o,r])}function L0(e){let t=$(e);return t.current=e,t}function Ai(e,t){let{state:o,send:r,context:n}=e,i=o.matches("mounted","unmountSuspended");return{skip:!n.get("initial"),present:i,setNode(l){l&&r({type:"NODE.SET",node:l})},unmount(){r({type:"UNMOUNT"})}}}var Mi=Gt({props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["cleanupNode"],watch({track:e,prop:t,send:o}){e([()=>t("present")],()=>{o({type:"PRESENCE.CHANGED"})})},on:{"NODE.SET":{actions:["setupNode"]},"PRESENCE.CHANGED":{actions:["setInitial","syncPresence"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},invokeOnExitComplete:({prop:e,refs:t})=>{e("onExitComplete")?.();let o=t.get("node");if(!o)return;let r=te(o),n=new r.CustomEvent("exitcomplete",{bubbles:!1});o.dispatchEvent(n)},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",Ge(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:o,prop:r})=>{let n=r("present");if(n)return o({type:"MOUNT",src:"presence.changed"});let i=t.get("node");if(!n&&i?.ownerDocument.visibilityState==="hidden")return o({type:"UNMOUNT",src:"visibilitychange"});q(()=>{if(r("present"))return;let l=tn(t.get("styles"));e.set("unmountAnimationName",l),l==="none"||l===e.get("prevAnimationName")||t.get("styles")?.display==="none"||t.get("styles")?.animationDuration==="0s"?o({type:"UNMOUNT",src:"presence.changed"}):o({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{q(()=>{e.set("prevAnimationName",tn(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:o,prop:r})=>{let n=t.get("node");if(!n)return;let i=p=>{(p.composedPath?.()?.[0]??p.target)===n&&e.set("prevAnimationName",tn(t.get("styles")))},l=p=>{let u=tn(t.get("styles"));me(p)===n&&u===e.get("unmountAnimationName")&&!r("present")&&o({type:"UNMOUNT",src:"animationend"})},a=p=>{me(p)===n&&!r("present")&&o({type:"UNMOUNT",src:"animationcancel"})};n.addEventListener("animationstart",i),n.addEventListener("animationcancel",a),n.addEventListener("animationend",l);let c=At(n,{animationFillMode:"forwards"});return()=>{n.removeEventListener("animationstart",i),n.removeEventListener("animationcancel",a),n.removeEventListener("animationend",l),ro(()=>c())}}}}});function tn(e){return e?.animationName||"none"}var Ee=(e={})=>{let{lazyMount:t,unmountOnExit:o,present:r,skipAnimationOnMount:n=!1,...i}=e,l=$(!1),a={...i,present:r,onExitComplete:ap(e.onExitComplete)},c=gt(Mi,a),p=Ai(c,ht);p.present&&(l.current=!0);let u=!p.present&&!l.current&&t||o&&!p.present&&l.current,d=()=>({"data-state":p.skip&&n?void 0:r?"open":"closed",hidden:!p.present});return{ref:p.setNode,getPresenceProps:d,present:p.present,unmounted:u}};var cp=e=>{let[t,{children:o,...r}]=Fe(e),n=sp(r);return s(Jr,{value:n,children:s(Le,{value:Ee(I({present:n.open},t)),children:o})})};var pp=e=>{let[t,{value:o,children:r}]=Fe(e);return s(Jr,{value:o,children:s(Le,{value:Ee(I({present:o.open},t)),children:r})})};var Di=P((e,t)=>{let o=I(ne().getTitleProps(),e);return s(D.div,{...o,ref:t})});Di.displayName="PopoverTitle";var V0=ie(),Li=P((e,t)=>{let[o,r]=V0(e,["value"]),n=ne(),i=he(),l=n.getTriggerProps(o),a=I({...l,"aria-controls":i.unmounted?void 0:l["aria-controls"]},r);return s(D.button,{...a,ref:t})});Li.displayName="PopoverTrigger";var up=Object.defineProperty,xt=(e,t)=>{let o={};for(var r in e)up(o,r,{get:e[r],enumerable:!0});return t||up(o,Symbol.toStringTag,{value:"Module"}),o};var xo=xt({Anchor:()=>Ei,Arrow:()=>Ti,ArrowTip:()=>Ii,CloseTrigger:()=>Ni,Content:()=>ki,Context:()=>lp,Description:()=>Ri,Indicator:()=>Si,Positioner:()=>Oi,Root:()=>cp,RootProvider:()=>pp,Title:()=>Di,Trigger:()=>Li});var $t=e=>{let{children:t,disabled:o}=e,[r,n]=ee(e.container?.current),i=dr(H0,()=>!1,()=>!0),{getRootNode:l}=Xe();if(Y(()=>{n(()=>e.container?.current)},[e.container]),i||o)return s(Z,{children:t});let a=r??B0(l);return s(Z,{children:ar.map(t,c=>Qr(c,a))})},B0=e=>{let t=e?.(),o=t.getRootNode();return tt(o)?o:Q(t).body},H0=()=>()=>{};var W0="polli:rounded-lg polli:bg-surface-menu polli:shadow-lg",bt=({trigger:e,children:t,align:o="start",side:r="bottom",open:n,portalled:i=!0,onOpenChange:l,className:a,panelStyle:c})=>{let p=ue(),[u,d]=ee(!1),g=n!==void 0,f=g?n:u,m=v=>{g||d(v),l?.(v)};return b(xo.Root,{ids:{trigger:p},open:f,portalled:i,onOpenChange:v=>m(v.open),positioning:{placement:`${r}-${o}`,strategy:i?"absolute":"fixed"},children:[s(xo.Trigger,{asChild:!0,children:e(f)}),s($t,{disabled:!i,children:s(xo.Positioner,{children:s(xo.Content,{"aria-labelledby":p,style:c,className:x("polli:z-[120] polli:overflow-hidden polli:focus:outline-none",W0,a),children:typeof t=="function"?t(()=>m(!1)):t})})})]})};function _0(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?"?":t.length===1?t[0].slice(0,2).toUpperCase():`${t[0][0]??""}${t.at(-1)?.[0]??""}`.toUpperCase()}function dp({name:e,avatarUrl:t,secondaryContent:o,dashboardHref:r}){let i=o!=null?"polli:h-11 polli:w-11":"polli:h-8 polli:w-8",l=t?s("img",{src:t,alt:"",className:x(i,"polli:shrink-0 polli:rounded-full polli:object-cover")}):s("span",{role:"img","aria-label":`${e} avatar`,className:x(i,"polli:flex polli:shrink-0 polli:items-center polli:justify-center polli:rounded-full polli:bg-theme-bg-pale polli:text-xs polli:font-semibold polli:text-theme-text-strong"),children:_0(e)});return r?s("a",{href:r,target:"_blank",rel:"noopener noreferrer","aria-label":"Open dashboard",title:"Open dashboard",className:"polli:shrink-0 polli:rounded-full polli:cursor-pointer polli:transition-transform polli:hover:scale-105 polli:hover:brightness-110 polli:focus-visible:outline-2 polli:focus-visible:outline-offset-2 polli:focus-visible:outline-current polli:motion-reduce:transition-none polli:motion-reduce:hover:scale-100",children:l}):l}function mp({name:e,avatarUrl:t,secondaryContent:o,dashboardHref:r,className:n}){return b("span",{className:x("polli:flex polli:min-w-0 polli:items-center polli:gap-2 polli:rounded-full polli:bg-surface-opaque polli:p-1 polli:pr-3",n),children:[s(dp,{name:e,avatarUrl:t,dashboardHref:r,secondaryContent:o}),s(fp,{name:e,secondaryContent:o})]})}function fp({name:e,secondaryContent:t,secondaryId:o}){return b("span",{className:"polli:flex polli:min-w-0 polli:flex-col polli:items-start polli:text-left",children:[s("span",{title:e,className:"polli:max-w-full polli:truncate polli:text-sm polli:font-medium polli:leading-5 polli:text-theme-text-strong",children:e}),t!=null&&s("span",{id:o,className:"polli:inline-flex polli:min-h-5 polli:items-center polli:whitespace-nowrap polli:text-xs polli:leading-4 polli:text-theme-text-base",children:t})]})}function Fi({name:e,avatarUrl:t,dashboardHref:o,secondaryContent:r,children:n,className:i,menuClassName:l,side:a="bottom",menuLabel:c=`Account menu for ${e}`}){let p=ue(),u=s(dp,{name:e,avatarUrl:t,dashboardHref:o,secondaryContent:r});return b("div",{"data-theme":"accent",className:x("polli:flex polli:min-w-0 polli:items-center polli:gap-2 polli:rounded-full polli:bg-theme-bg-active polli:p-1 polli:pr-3 polli:text-theme-text-strong polli:transition-colors polli:hover:bg-theme-bg-hover",i),children:[o&&u,s(bt,{align:"end",side:a,className:x("polli:w-max polli:min-w-[var(--reference-width)] polli:p-1",l),trigger:d=>b("button",{type:"button","aria-label":c,"aria-describedby":r!=null?p:void 0,className:"polli-control polli:flex polli:min-w-0 polli:flex-1 polli:items-center polli:gap-2 polli:self-stretch polli:rounded-full polli:text-theme-text-strong",children:[!o&&u,s(fp,{name:e,secondaryContent:r,secondaryId:p}),s(de,{expanded:d,className:"polli:ml-auto polli:h-4 polli:w-4 polli:text-theme-text-strong"})]}),children:n})]})}var F={fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};function z0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"2",y:"4",width:"20",height:"14",rx:"2"}),s("path",{d:"M2 20h20"})]})}function U0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"12",cy:"8",r:"4"}),s("path",{d:"M4 21a8 8 0 0 1 16 0"})]})}function Vi(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M5 12h14M13 6l6 6-6 6"})})}function G0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M9 3h6"}),s("path",{d:"M10 3v6.5L4.5 18a2 2 0 0 0 1.7 3h11.6a2 2 0 0 0 1.7-3L14 9.5V3"}),s("path",{d:"M7 14h10"})]})}function $0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M12 8V4H8"}),s("rect",{x:"4",y:"8",width:"16",height:"12",rx:"2"}),s("path",{d:"M2 14h2M20 14h2"}),s("path",{d:"M9 13v2M15 13v2"})]})}function j0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M4 4h5a3 3 0 0 1 3 3v13a2 2 0 0 0-2-2H4z"}),s("path",{d:"M20 4h-5a3 3 0 0 0-3 3v13a2 2 0 0 1 2-2h6z"})]})}function q0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"m8 2 1.9 1.9M14.1 3.9 16 2"}),s("path",{d:"M9 7V6a3 3 0 0 1 6 0v1"}),s("path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a6 6 0 0 1 12 0v3c0 3.3-2.7 6-6 6Z"}),s("path",{d:"M12 20v-9M6.5 9C4.6 8.8 3 7.1 3 5M6 13H2M3 21c0-2.1 1.7-3.9 3.8-4M17.5 9C19.4 8.8 21 7.1 21 5M18 13h4M21 21c0-2.1-1.7-3.9-3.8-4"})]})}function Re(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,strokeWidth:2.5,...e,children:s("polyline",{points:"20 6 9 17 4 12"})})}function jt(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),s("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})}function Bi(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"12",cy:"12",r:"9"}),s("path",{d:"M12 7v5l3 2"})]})}function K0(e){return s("svg",{viewBox:"0 0 24 24","aria-hidden":"true",...e,children:s("path",{fill:"currentColor",d:"M20.32 4.37A19.8 19.8 0 0 0 15.36 2.83a.07.07 0 0 0-.08.04c-.21.38-.45.88-.62 1.27a18.27 18.27 0 0 0-5.52 0 12.84 12.84 0 0 0-.63-1.27.08.08 0 0 0-.08-.04A19.74 19.74 0 0 0 3.47 4.37a.07.07 0 0 0-.03.03C.31 9.07-.55 13.61-.13 18.1a.08.08 0 0 0 .03.06 19.9 19.9 0 0 0 6.08 3.07.08.08 0 0 0 .09-.03c.47-.64.88-1.31 1.24-2.02a.08.08 0 0 0-.04-.1 13.08 13.08 0 0 1-1.9-.91.08.08 0 0 1-.01-.13c.13-.1.25-.2.37-.29a.07.07 0 0 1 .08-.01 14.24 14.24 0 0 0 12.38 0 .07.07 0 0 1 .08.01c.12.1.25.2.38.3a.08.08 0 0 1-.01.12 12.22 12.22 0 0 1-1.9.9.08.08 0 0 0-.04.11c.36.7.77 1.38 1.23 2.02a.08.08 0 0 0 .1.03 19.84 19.84 0 0 0 6.08-3.07.08.08 0 0 0 .03-.05c.5-5.2-.84-9.7-3.77-13.71a.06.06 0 0 0-.03-.03ZM8.02 15.37c-1.18 0-2.16-1.08-2.16-2.4 0-1.32.96-2.4 2.16-2.4 1.2 0 2.18 1.09 2.16 2.4 0 1.32-.96 2.4-2.16 2.4Zm7.96 0c-1.18 0-2.16-1.08-2.16-2.4 0-1.32.96-2.4 2.16-2.4 1.2 0 2.18 1.09 2.16 2.4 0 1.32-.95 2.4-2.16 2.4Z"})})}function Y0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"3",y:"3",width:"18",height:"18",rx:"5"}),s("circle",{cx:"12",cy:"12",r:"4"}),s("circle",{cx:"17.5",cy:"6.5",r:"1",fill:"currentColor",stroke:"none"})]})}function X0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...e,children:s("path",{fill:"currentColor",d:"M18.24 2.25h3.31l-7.23 8.26 8.51 11.24h-6.66l-5.21-6.82-5.97 6.82H1.68l7.73-8.84L1.25 2.25h6.83l4.71 6.23 5.45-6.23Zm-1.16 17.52h1.83L7.08 4.13H5.12l11.96 15.64Z"})})}function Z0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...e,children:s("path",{fill:"currentColor",d:"M20.45 20.45h-3.56v-5.57c0-1.33-.03-3.04-1.85-3.04-1.86 0-2.14 1.45-2.14 2.94v5.67H9.34V9h3.42v1.56h.05c.47-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46v6.28ZM5.32 7.43a2.07 2.07 0 1 1 0-4.13 2.07 2.07 0 0 1 0 4.13ZM7.1 20.45H3.54V9H7.1v11.45Z"})})}function J0(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),s("polyline",{points:"7 10 12 15 17 10"}),s("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}function Q0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M8 3H3v5M16 3h5v5M21 16v5h-5M3 16v5h5"})})}function eg(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...e,children:s("path",{fill:"currentColor",d:"M7 4.5v15l12-7.5z"})})}function tg(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...e,children:s("path",{fill:"currentColor",d:"M6 4h4v16H6zM14 4h4v16h-4z"})})}function og(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M17.5 19H19a4 4 0 0 0 .4-8A7.5 7.5 0 0 0 5 9.5 5 5 0 0 0 6 19h1.5"}),s("path",{d:"m8.5 15.5 3.5-3.5 3.5 3.5M12 12v9"})]})}function qt(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M7 17 17 7M9 7h8v8"})})}function rg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"m8 3 4 1.5L16 3v18l-4-1.5L8 21z"}),s("path",{d:"M8 3v18M16 3v18"})]})}function ng(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("line",{x1:"6",y1:"3",x2:"6",y2:"15"}),s("circle",{cx:"18",cy:"6",r:"3"}),s("circle",{cx:"6",cy:"18",r:"3"}),s("path",{d:"M18 9a9 9 0 0 1-9 9"})]})}function ig(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"6",cy:"6",r:"3"}),s("circle",{cx:"18",cy:"18",r:"3"}),s("path",{d:"M6 9v12M13 6h3a2 2 0 0 1 2 2v7"})]})}function lg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M21.42 10.92a1 1 0 0 0-.02-1.84L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.83l8.57 3.91a2 2 0 0 0 1.66 0z"}),s("path",{d:"M22 10v6"}),s("path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5"})]})}function sg(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M12 3l1.9 5.8a2 2 0 0 0 1.3 1.3L21 12l-5.8 1.9a2 2 0 0 0-1.3 1.3L12 21l-1.9-5.8a2 2 0 0 0-1.3-1.3L3 12l5.8-1.9a2 2 0 0 0 1.3-1.3z"})})}function ag(e){return s("svg",{viewBox:"0 0 24 24","aria-hidden":"true",...e,children:s("path",{fill:"currentColor",d:"M12 .5A11.5 11.5 0 0 0 8.36 22.9c.58.11.79-.25.79-.56v-2.16c-3.21.7-3.89-1.38-3.89-1.38-.53-1.34-1.29-1.7-1.29-1.7-1.05-.72.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.04 1.76 2.71 1.25 3.37.96.11-.75.4-1.25.74-1.54-2.56-.29-5.26-1.28-5.26-5.7 0-1.26.45-2.29 1.19-3.1-.12-.29-.52-1.46.11-3.06 0 0 .97-.31 3.16 1.18a10.88 10.88 0 0 1 5.76 0c2.19-1.49 3.15-1.18 3.15-1.18.63 1.6.23 2.77.11 3.06.74.81 1.19 1.84 1.19 3.1 0 4.43-2.7 5.4-5.27 5.69.41.36.78 1.06.78 2.14v3.19c0 .31.21.68.8.56A11.5 11.5 0 0 0 12 .5Z"})})}function on(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),s("circle",{cx:"9",cy:"9",r:"2"}),s("path",{d:"m21 15-5-5L5 21"})]})}function cg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"m21 16-9 5-9-5V8l9-5 9 5z"}),s("path",{d:"m3 8 9 5 9-5"}),s("path",{d:"M12 13v8"})]})}function pg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M9 18V5l12-2v13"}),s("circle",{cx:"6",cy:"18",r:"3"}),s("circle",{cx:"18",cy:"16",r:"3"})]})}function ug(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),s("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]})}function dg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M10 17l5-5-5-5"}),s("path",{d:"M15 12H3"}),s("path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"})]})}function mg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),s("path",{d:"m16 17 5-5-5-5"}),s("path",{d:"M21 12H9"})]})}function fg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),s("path",{d:"m3 7 9 7 9-7"})]})}function gg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"2",y:"4",width:"8",height:"16",rx:"1.5"}),s("rect",{x:"14",y:"4",width:"8",height:"16",rx:"1.5"}),s("path",{d:"M10 12h4"})]})}function hg(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M4 7h16M4 12h16M4 17h16"})})}function xg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M5 4h12a1 1 0 0 1 1 1v14a1 1 0 0 0 1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1z"}),s("path",{d:"M18 8h2a1 1 0 0 1 1 1v9a2 2 0 0 1-2 2"}),s("path",{d:"M7 8h7M7 12h7M7 16h4"})]})}function Hi(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M12 5v14M5 12h14"})})}function bg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("polyline",{points:"4 8 8 12 4 16"}),s("line",{x1:"12",y1:"20",x2:"20",y2:"20"})]})}function Wi(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l2.1 2.1a1 1 0 0 0 1.4 0l4-4a6 6 0 0 1-8 8l-8 8a2.8 2.8 0 0 1-4-4l8-8a6 6 0 0 1 8-8l-4 4Z"})})}function vg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"12",cy:"12",r:"9"}),s("circle",{cx:"12",cy:"12",r:"5"}),s("circle",{cx:"12",cy:"12",r:"1.6",fill:"currentColor",stroke:"none"})]})}function yg(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M4 9h16M4 15h16M10 3 8 21M16 3l-2 18"})})}function Cg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M4 18a8 8 0 1 1 16 0"}),s("path",{d:"M12 18l3.5-5"}),s("path",{d:"M7 18h10"}),s("path",{d:"M7.5 12.5 6 11"}),s("path",{d:"M16.5 12.5 18 11"})]})}function _i(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M10.3 3.1 1.8 17a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.1a2 2 0 0 0-3.4 0Z"}),s("path",{d:"M12 9v4M12 17h.01"})]})}function wg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("polyline",{points:"3 17 9 11 13 15 21 7"}),s("polyline",{points:"15 7 21 7 21 13"})]})}function Pg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("ellipse",{cx:"10",cy:"6",rx:"6",ry:"3"}),s("path",{d:"M4 6v8c0 1.7 2.7 3 6 3 1.2 0 2.4-.2 3.3-.5"}),s("path",{d:"M16 6v4"}),s("path",{d:"M4 10c0 1.7 2.7 3 6 3 1.1 0 2.1-.1 3-.4"}),s("path",{d:"M18 14v6"}),s("path",{d:"M15 17h6"})]})}function Eg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M3 7a2 2 0 0 1 2-2h13a2 2 0 0 1 2 2v2H5a2 2 0 0 0-2 2V7Z"}),s("path",{d:"M3 11a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-6Z"}),s("circle",{cx:"17",cy:"14",r:"1.25",fill:"currentColor"})]})}function rn(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z"})})}function nn(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"12",cy:"12",r:"4"}),s("path",{d:"M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"})]})}function Kt(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M18 6 6 18M6 6l12 12"})})}function zi(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M3 6h18"}),s("path",{d:"M8 6V4h8v2"}),s("path",{d:"m19 6-1 15H6L5 6"}),s("path",{d:"M10 11v6M14 11v6"})]})}function Tg(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})})}function Ui(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"3",y:"6",width:"18",height:"15",rx:"3"}),s("path",{d:"M12 2v4M3 11H1v5h2M21 11h2v5h-2M8 17h8"}),s("circle",{cx:"9",cy:"12",r:"1"}),s("circle",{cx:"15",cy:"12",r:"1"})]})}function Ig(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7z"}),s("circle",{cx:"12",cy:"12",r:"3"})]})}function Ng(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7z"}),s("circle",{cx:"12",cy:"12",r:"3"}),s("path",{d:"M3 3l18 18"})]})}function kg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"m22 8-6 4 6 4V8z"}),s("rect",{x:"2",y:"6",width:"14",height:"12",rx:"2"})]})}function Rg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3z"}),s("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),s("path",{d:"M12 19v3"})]})}function Sg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M11 5 6 9H2v6h4l5 4z"}),s("path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07"}),s("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14"})]})}function Og(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"m3 11 18-5v12L3 14v-3z"}),s("path",{d:"m7 15 1.5 6H14l-2-7"})]})}function Ag(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M9 18h6M10 22h4M15.1 14c.2-1 .6-1.7 1.4-2.5A4.6 4.6 0 0 0 18 8 6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.8.8 1.2 1.5 1.4 2.5"})})}function Mg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z"}),s("path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z"}),s("path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0"}),s("path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"})]})}function Dg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"11",cy:"11",r:"7"}),s("path",{d:"m21 21-4.3-4.3"})]})}function Lg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),s("path",{d:"m16 17 5-5-5-5"}),s("path",{d:"M21 12H9"})]})}function Fg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M12 2v10"}),s("path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04"})]})}function Vg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M9.94 15.5A2 2 0 0 0 8.5 14.06l-6.14-1.58a.5.5 0 0 1 0-.96L8.5 9.94A2 2 0 0 0 9.94 8.5l1.58-6.14a.5.5 0 0 1 .96 0L14.06 8.5A2 2 0 0 0 15.5 9.94l6.14 1.58a.5.5 0 0 1 0 .96L15.5 14.06a2 2 0 0 0-1.44 1.44l-1.58 6.14a.5.5 0 0 1-.96 0z"}),s("path",{d:"M20 3v4"}),s("path",{d:"M22 5h-4"}),s("path",{d:"M4 17v2"}),s("path",{d:"M5 18H3"})]})}function Bg({filled:e=!1,...t}){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,fill:e?"currentColor":"none",...t,children:s("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})})}function Hg(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"m16 18 6-6-6-6M8 6l-6 6 6 6"})})}function Wg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),s("path",{d:"M3 5v14a9 3 0 0 0 18 0V5"}),s("path",{d:"M3 12a9 3 0 0 0 18 0"})]})}function _g(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),s("path",{d:"M2 10h20"})]})}function zg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M7 20h10"}),s("path",{d:"M10 20c5.5-2.5.8-6.4 3-10"}),s("path",{d:"M9.5 9.4c1.1.8 1.8 2.2 2.3 3.7-2 .4-3.5.4-4.8-.3-1.2-.6-2.3-1.9-3-4.2 2.8-.5 4.4 0 5.5.8z"}),s("path",{d:"M14.1 6a7 7 0 0 0-1.1 4c1.9-.1 3.3-.6 4.3-1.4 1-1 1.6-2.3 1.7-4.6-2.7.1-4 1-4.9 2z"})]})}function Ug(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M12 20h9"}),s("path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"})]})}function Gg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"7.5",cy:"15.5",r:"5.5"}),s("path",{d:"m21 2-9.6 9.6"}),s("path",{d:"m15.5 7.5 3 3L22 7l-3-3"})]})}function $g(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"12",cy:"12",r:"10"}),s("path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}),s("path",{d:"M2 12h20"})]})}function jg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M19 12H5"}),s("path",{d:"m12 19-7-7 7-7"})]})}function qg(e){return b("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M21 12a9 9 0 1 1-2.64-6.36"}),s("path",{d:"M21 3v6h-6"})]})}var Kg={display:"polli:font-heading polli:text-5xl polli:leading-none",title:"polli:font-heading polli:text-4xl polli:leading-none",section:"polli:font-subheading polli:text-2xl polli:leading-tight",subsection:"polli:font-subheading polli:text-xl polli:leading-tight",card:"polli:font-subheading polli:text-lg polli:leading-tight"},Yg={body:"polli:text-base polli:leading-relaxed",sm:"polli:text-sm polli:leading-6",xs:"polli:text-xs polli:leading-normal",micro:"polli:text-micro polli:leading-normal"},Xg={base:"polli:text-theme-text-base",strong:"polli:text-theme-text-strong",soft:"polli:text-theme-text-soft",muted:"polli:text-theme-text-muted"},Zg={normal:"polli:font-normal",medium:"polli:font-medium",semibold:"polli:font-semibold",bold:"polli:font-bold"};function Gi(e,t){return x("polli:break-words polli:text-theme-text-strong",Kg[e],t)}function Jg({size:e,tone:t,weight:o,className:r}){return x("polli:break-words polli:font-body",Yg[e],Xg[t],Zg[o],r)}function bo({as:e,size:t="section",className:o,children:r,...n}){return s(e||"h2",{...n,className:Gi(t,o),children:r})}function ce({as:e,size:t="body",tone:o="base",weight:r="normal",className:n,children:i,...l}){return s(e||"p",{...l,className:Jg({size:t,tone:o,weight:r,className:n}),children:i})}var Qg={info:"polli:bg-theme-bg-pale polli:text-theme-text-strong",advisory:"polli:bg-intent-warning-bg-light/45 polli:text-theme-text-base",warning:"polli:bg-intent-warning-bg-light polli:text-intent-warning-text",danger:"polli:bg-intent-danger-bg-light polli:text-intent-danger-text"},gp=({intent:e="info",title:t,className:o,children:r,...n})=>b("div",{...n,role:e==="danger"?"alert":"status",className:x("polli:rounded-xl polli:px-3 polli:py-2 polli:text-sm",e==="advisory"&&"polli:flex polli:items-start polli:gap-2",Qg[e],o),children:[e==="advisory"&&s(_i,{className:"polli:mt-0.5 polli:h-4 polli:w-4 polli:shrink-0 polli:text-intent-warning-text"}),b("div",{className:"polli:min-w-0",children:[t&&(e==="advisory"?b(Z,{children:[s("strong",{className:"polli:font-semibold polli:text-theme-text-strong",children:t})," ","\u2014"," "]}):s(ce,{as:"div",size:"xs",tone:"strong",weight:"bold",className:"polli:mb-1 polli:uppercase polli:tracking-wide",children:t})),r]})]});var hp='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 858.034 105.6"><path d="M.017 45.34c0-.79 0-1.579.045-2.426.563-.021.982-.095.951-.771-.013-.302.2-.378.469-.377.714.005 1.43-.005 2.144-.002.402.001.66-.151.662-.588.002-.365.189-.512.542-.487.16.012.322.004.483 0 .517-.02 1.127.145 1.257-.64.007-.04.07-.083.115-.1.445-.16.849-.44 1.36-.399.394.033.665-.124.643-.579-.019-.352.16-.456.494-.455 1.215 0 2.431-.02 3.646-.036.711-.009.822-.093.83-.803.014-1.697.001-3.396.001-5.093.003-4.059.01-8.117.002-12.175-.002-.459.148-.631.619-.63 3.272.011 6.544.002 9.815 0 3.148-.001 6.294.002 9.441-.01.432 0 .693.093.647.593-.038.411.229.518.58.518.982 0 1.966-.006 2.949.005.419.006.634-.16.642-.592.006-.235.036-.45.356-.507.756-.138.754-.152.759-.945 0-.214.018-.43-.004-.643-.042-.427.1-.645.563-.593.399.046.54-.17.536-.547-.006-.392.018-.786.027-1.179.007-.32.138-.512.487-.483.41.035.608-.167.598-.562-.009-.414.174-.582.584-.54.356.036.555-.135.524-.499-.037-.45.167-.609.595-.581.369.023.502-.196.496-.542-.007-.392.013-.786.001-1.18-.008-.317.135-.459.444-.463.412-.007.823-.027 1.234-.032.332-.004.492-.166.494-.495.004-.392.014-.786.01-1.18-.002-.349.131-.53.512-.506.338.022.68-.018 1.018.01.528.042.71-.204.682-.699-.018-.303.015-.609-.005-.91-.025-.401.101-.602.543-.574.373.022.75-.037 1.125-.034.386.002.557-.193.565-.556.008-.358.026-.716.002-1.072-.028-.406.104-.605.54-.563.382.039.56-.158.548-.541-.008-.287-.003-.573 0-.859.007-.748.008-.746.735-.754q.456-.005.91-.028c.344-.017.518-.188.509-.548-.01-.41.006-.823.005-1.234 0-.287.132-.426.423-.425.519.003 1.037.005 1.555-.004.33-.007.441.165.437.467-.006.376.014.751-.002 1.126-.019.442.187.615.613.601.357-.011.715.008 1.073.01.33 0 .488.144.475.49-.016.41-.003.821.001 1.233.004.268.124.488.409.451.675-.085.687.294.681.806-.017 1.493-.174 1.387 1.368 1.405.86.01.856.007.86.855.01 1.509-.152 1.342 1.351 1.35.808.005.81.002.814.807.01 1.582-.004 1.343 1.37 1.372.839.018.839.014.849.824.003.25.02.501.005.75-.028.45.146.683.619.642.328-.028.514.087.472.455-.05.458.158.672.623.63.337-.031.51.121.495.462-.022.457.19.657.644.63.315-.018.45.152.449.46-.003.34.027.68.01 1.02-.024.457.127.723.63.702.34-.014.473.17.464.503-.01.375.002.75.01 1.126.005.364.172.582.555.565.394-.018.557.158.521.546-.035.378.132.568.524.566q1.556-.008 3.111-.002c.318.002.537-.133.531-.463-.011-.588.34-.636.804-.635 6.312.013 12.623.017 18.935.025.763.001.827.06.825.825-.007 1.626-.053 3.254-.035 4.88.044 4.059.052 8.116.011 12.175-.007.664.096.786.765.79 1.198.009 2.395.006 3.593.003.362-.001.645.06.62.52-.021.389.198.543.566.542.357-.002.715.023 1.073.007.401-.018.606.112.552.553-.05.41.164.59.57.581.375-.008.751.02 1.125-.002.358-.02.552.096.53.476-.03.475.227.623.663.613.679-.016 1.36.014 2.038-.011.406-.015.606.118.59.54-.016.413.21.576.605.553.124-.007.25.015.375.023 0 .753 0 1.506-.047 2.316-.83.075-.844.071-.983.844-.054.302-.24.32-.463.312-.465-.012-.63.224-.621.667.015.715-.005 1.43 0 2.146.003.319-.098.53-.455.504-.464-.034-.653.186-.637.635.009.232-.059.462-.347.437-.667-.059-.78.334-.76.866.01.25-.024.502-.003.75.036.428-.113.647-.57.615-.395-.027-.536.188-.522.564.012.375-.02.75-.001 1.125.018.375-.134.525-.503.49-.404-.037-.61.152-.592.561.016.348-.106.553-.492.517-.446-.042-.624.182-.588.608q.045.543-.498.524c-.434-.015-.615.214-.611.627.002.304-.145.48-.456.464-.469-.022-.635.222-.64.654-.002.223-.059.402-.352.443-.765.107-.763.121-.766.894 0 .25-.012.501.003.75.021.363-.088.59-.5.583-.399-.007-.587.205-.582.601.005.341-.19.491-.508.475-.44-.022-.618.184-.607.609.01.36-.183.507-.541.489-.339-.018-.68.012-1.019-.002-.424-.017-.654.168-.634.596.019.39-.176.5-.523.484-.277-.015-.554.076-.535.387.042.71-.361.787-.912.738-.23-.022-.464.014-.697.007-.417-.013-.659.18-.645.598.013.386-.16.51-.515.491-.305-.016-.574.104-.553.436.039.631-.31.707-.802.665-.231-.02-.466.01-.697-.007-.455-.034-.733.103-.697.62.024.343-.157.478-.494.465-.375-.013-.75 0-1.126 0-.388-.003-.634.166-.597.575.042.467-.2.525-.583.517-1.018-.02-2.038-.003-3.057-.023-.461-.009-.719.164-.722.643-.003.388-.198.518-.577.513-1.055-.014-2.11.007-3.164-.002-.407-.003-.663.121-.659.569.005.397-.215.51-.582.51-3.344-.006-6.688-.01-10.03.004-.441.002-.62-.17-.625-.588-.004-.36-.21-.503-.556-.497-.625.011-1.25.008-1.877.018-.287.006-.554.071-.554.435 0 .35.275.386.529.394.318.011.505.1.476.471-.034.458.175.716.666.677.31-.024.474.104.472.427-.003.397.226.609.595.617.402.01.525.196.517.567-.009.396.205.577.607.567.375-.01.75.014 1.126.017.244.002.435.074.433.355-.004.642.41.76.927.76.858 0 1.717.004 2.575.003 1.966 0 3.934-.004 5.9 0 .213.001.475-.088.54.273.142.796.152.795.983.8.214 0 .43.016.644-.006.385-.039.576.117.568.507-.008.392.156.615.576.581.338-.026.508.124.489.467-.023.415.14.646.584.636.323-.008.504.146.49.487-.019.433.199.623.62.607.325-.013.515.114.485.47-.038.44.204.62.609.624.36.003.517.167.486.532-.023.267.037.578.357.547.803-.078.751.422.721.946-.011.195.01.393-.003.589-.03.462.149.718.642.697.365-.015.479.151.467.529-.034 1.09-.004 2.18-.026 3.27-.01.452.184.61.609.595.374-.014.75.004 1.126-.001.354-.006.526.135.503.511-.021.357.013.717-.005 1.073-.02.414.108.657.569.632.335-.019.547.1.528.49-.017.382.157.614.57.61.35-.003.525.147.504.521-.023.399.197.608.59.583.397-.025.542.136.54.526-.006 1.896 0 3.791.009 5.686 0 .355-.085.59-.513.558-.415-.031-.656.18-.632.604.022.394-.161.496-.515.473-.38-.025-.576.192-.557.557.022.426-.175.58-.575.562-.393-.016-.543.205-.518.576.023.352-.122.547-.496.524-.403-.026-.606.151-.588.564.017.387-.172.534-.556.531q-2.844-.014-5.686 0c-.377.003-.585-.123-.557-.523.03-.413-.169-.598-.572-.578-.355.02-.545-.126-.516-.5.03-.408-.166-.597-.57-.587-.341.008-.544-.118-.514-.504.033-.429-.198-.647-.612-.616-.386.03-.519-.145-.515-.494.005-.4-.198-.603-.593-.583-.388.018-.491-.186-.49-.53.006-1.912.011-3.825.001-5.74-.002-.392.153-.561.536-.544.437.02.628-.204.595-.625-.025-.328.126-.46.44-.442.445.024.676-.171.645-.634-.022-.312.121-.483.438-.456.543.044.653-.243.653-.72 0-1.511.013-1.519 1.548-1.478.437.012.626-.177.625-.6q-.004-.964.005-1.93c.005-.43-.186-.636-.623-.584-.372.045-.533-.116-.502-.489.037-.438-.19-.618-.61-.608-.303.007-.483-.132-.456-.452.04-.46-.174-.665-.621-.655-.32.006-.512-.101-.479-.47.04-.45-.186-.672-.636-.645-.35.02-.492-.147-.475-.48.024-.474-.226-.619-.666-.608-.697.02-1.395.003-2.092 0-.239-.002-.52 0-.5-.333.045-.717-.392-.748-.931-.745-2.057.013-4.112.001-6.17 0-.31-.002-.647.017-.623-.444.025-.502-.25-.657-.698-.656-.66.003-1.323-.028-1.984-.011-.42.01-.647-.128-.638-.573.008-.384-.21-.562-.573-.548s-.515-.135-.528-.496c-.014-.356-.237-.56-.59-.57-.343-.007-.48-.165-.475-.497.006-.393-.202-.603-.593-.6-.368.004-.515-.19-.524-.527-.01-.399-.208-.583-.609-.571-.326.01-.503-.156-.493-.49.015-.462-.222-.654-.661-.629-.334.02-.439-.153-.433-.459q.012-.561-.013-1.126c-.012-.293-.14-.551-.46-.56-.351-.01-.423.266-.426.56l-.003 1.34q0 7.35.002 14.7c0 .663.116.769.785.76.304-.004.61.026.91-.004.424-.041.53.156.509.535-.022.356.004.714.003 1.072 0 .373.17.58.554.553.386-.026.577.127.554.522-.024.402.156.6.569.587.342-.011.55.127.516.507-.034.41.172.595.569.595.345-.001.51.137.507.516-.013 1.913-.01 3.826-.003 5.74.003.344-.093.559-.483.529-.438-.032-.627.183-.595.611.025.335-.104.51-.463.468-.457-.052-.668.155-.65.615.015.349-.15.538-.517.514-.43-.029-.646.163-.598.602.041.377-.128.532-.492.501-.387-.032-.58.166-.573.533.007.415-.168.56-.58.557-1.895-.015-3.79-.012-5.686-.003-.352.003-.546-.09-.506-.484.041-.423-.155-.645-.593-.617-.364.024-.532-.15-.526-.504q.012-.6-.586-.591c-.354.005-.529-.16-.507-.524.023-.398-.165-.625-.57-.59-.408.032-.55-.143-.528-.528s-.195-.566-.56-.55c-.411.019-.518-.186-.516-.557q.015-2.844 0-5.687c-.002-.371.1-.586.507-.567.402.018.602-.17.576-.58-.022-.34.154-.506.48-.49.472.023.637-.222.635-.654-.001-.235.078-.456.358-.431.71.063.71-.395.712-.895.005-1.284.012-1.284 1.264-1.291.913-.005.947-.036.947-.926l-.002-10.621.001-5.204c0-.324-.035-.64-.461-.64-.398 0-.432.308-.438.606-.008.359-.016.716-.005 1.074.01.332-.1.51-.466.467-.423-.05-.643.138-.63.579.01.36-.123.583-.53.56-.433-.023-.62.208-.608.626.006.202.007.45-.26.442-.482-.016-.745.214-.961.615-.102.188-.327.34-.53.436-.282.134-.423.324-.404.625.024.404-.173.542-.553.512-.379-.029-.58.164-.557.542.028.496-.225.589-.664.57-.696-.03-1.394 0-2.09.013-.243.005-.538.058-.516.347.06.811-.454.772-1.003.769-2.003-.01-4.006-.002-6.009-.004-.386 0-.75.034-.727.549.021.444-.211.542-.597.534-.697-.015-1.395.01-2.092-.003-.426-.008-.641.168-.63.597.005.285-.062.5-.413.479-.484-.031-.69.217-.661.683.02.342-.162.433-.467.406-.42-.036-.654.142-.62.587.031.395-.158.553-.539.54-.379-.012-.564.187-.55.561.018.42-.184.58-.59.546-.388-.03-.555.188-.56.553q-.006.67-.004 1.34c-.002 1.187-.001 1.184 1.188 1.195 1.268.012 1.026-.004 1.055 1.031.005.162.01.323 0 .483-.032.439.15.693.607.687.357-.003.533.155.525.512-.009.437.224.606.638.595.278-.008.45.119.423.419-.04.46.172.66.622.657.282-.002.486.1.485.435q-.001 2.95-.001 5.9c-.001.29-.109.494-.442.466-.458-.04-.661.177-.665.622-.002.318-.131.504-.49.468-.431-.042-.64.183-.625.601.014.365-.136.545-.503.504-.466-.053-.61.184-.577.604.029.365-.149.53-.51.507-.402-.025-.607.16-.592.568.014.391-.179.529-.559.528q-2.843-.015-5.687-.002c-.348.002-.558-.107-.53-.486.038-.475-.201-.642-.644-.618-.31.017-.466-.14-.45-.456.022-.424-.183-.636-.603-.637-.364 0-.501-.175-.489-.535.014-.392-.208-.602-.6-.588-.342.013-.495-.148-.5-.473-.007-.4-.223-.594-.606-.587-.38.006-.493-.189-.493-.534q.01-2.898-.002-5.794c-.001-.34.143-.511.475-.493.433.023.628-.174.627-.599 0-.286.102-.49.438-.474.484.027.684-.224.673-.684-.006-.263.12-.424.384-.4.655.06.7-.33.707-.84.024-1.56-.28-1.292 1.44-1.364.639-.027.702-.05.75-.682.079-1.037.018-2.073-.004-3.109-.008-.374.08-.615.536-.595.412.017.612-.217.59-.645-.016-.339.011-.68-.006-1.019-.018-.37.09-.596.506-.56.45.04.617-.187.581-.61-.027-.344.136-.5.477-.475.442.033.624-.186.596-.612-.022-.337.125-.505.476-.468.43.044.638-.162.637-.586 0-.368.156-.572.546-.554.414.018.593-.208.568-.596-.025-.376.136-.524.502-.5.308.023.568-.108.557-.434-.02-.584.286-.691.772-.65.248.023.5-.001.75-.005.391-.006.67-.144.662-.59-.006-.38.194-.487.542-.479.606.014 1.215.001 1.823.001h6.706c.327 0 .741.02.778-.384.063-.684.48-.736 1-.725.213.005.428-.016.643-.018.388-.006.614-.2.62-.586.006-.365.172-.512.522-.523.387-.013.587-.224.582-.617-.003-.308.137-.47.454-.456.418.021.637-.165.635-.597-.001-.335.123-.531.51-.522.278.007.558-.081.53-.452-.026-.36-.32-.398-.592-.406-.607-.017-1.215-.008-1.823-.019-.413-.008-.657.152-.628.596.023.346-.142.48-.477.48q-5.124-.004-10.246 0c-.276 0-.455-.072-.428-.393.045-.55-.245-.7-.755-.69-1.054.019-2.109-.01-3.164-.009-.346.002-.558-.116-.527-.495.04-.505-.222-.651-.684-.645-1.019.016-2.039-.01-3.057.014-.417.01-.65-.075-.601-.551.039-.385-.168-.552-.55-.54-.376.01-.753-.018-1.127.004-.39.023-.57-.134-.547-.524.025-.424-.2-.571-.594-.558-.357.012-.715-.013-1.072.003-.364.016-.54-.125-.504-.5.042-.437-.166-.625-.596-.61-.24.007-.515-.012-.5-.336.032-.661-.36-.771-.889-.756-.249.006-.5-.026-.748-.01-.397.026-.623-.103-.583-.541.038-.41-.155-.6-.567-.575-.31.02-.536-.063-.506-.438.039-.498-.213-.676-.682-.64-.21.016-.371-.043-.435-.294-.203-.798-.21-.796-1.027-.806-.196-.002-.394-.009-.59 0-.388.02-.617-.112-.588-.549.018-.253-.066-.513-.36-.493-.77.05-.764-.434-.728-.969.013-.195-.01-.393.002-.589.027-.453-.174-.724-.63-.762-.306-.025-.451-.16-.442-.472.01-.379-.187-.553-.563-.548-.27.002-.516-.058-.537-.39-.026-.409-.177-.69-.585-.864-.233-.1-.404-.352-.52-.597a.73.73 0 0 0-.366-.368c-.358-.172-.68-.385-.799-.805-.048-.168-.19-.287-.36-.272-.622.055-.71-.31-.679-.803.015-.23-.008-.464-.006-.697.006-.435-.119-.741-.637-.707-.377.024-.5-.182-.485-.533.013-.357-.01-.716-.006-1.073.006-.392-.155-.617-.57-.594-.35.02-.553-.106-.525-.487.03-.44-.182-.629-.612-.593-.349.027-.475-.142-.469-.48.01-.732-.015-1.466.006-2.2.012-.454-.156-.675-.623-.64-.274.019-.477-.031-.523-.378-.102-.759-.199-.81-.97-.628m55.964.263c0-1.806.005-3.611 0-5.417-.001-.332.018-.616.456-.615.49 0 .638-.286.63-.735-.014-.697.001-1.394.001-2.09-.001-.262.057-.467.375-.465.58 0 .72-.353.696-.85-.011-.232.014-.467-.002-.698-.03-.402.081-.653.543-.666.398-.01.55-.27.551-.648 0-.34.02-.678.024-1.018.004-.338.12-.542.505-.518.435.027.633-.227.602-.632-.029-.373.14-.462.47-.46.436.003.647-.229.63-.676-.013-.32.008-.643.002-.965-.006-.33.081-.55.476-.546.416.005.628-.225.594-.646-.03-.37.147-.524.5-.524.377 0 .62-.141.593-.57-.02-.345.151-.486.491-.462.434.032.626-.197.61-.615-.013-.36.153-.527.51-.525.271.001.557-.078.556-.381-.006-.753.477-.74 1-.713.196.01.394.002.59-.005.311-.011.597-.092.59-.469-.005-.356-.293-.419-.577-.41-.356.008-.468-.164-.457-.495.012-.393-.002-.786-.005-1.18-.002-.233-.066-.492-.325-.47-.842.068-.794-.47-.766-1.028.01-.213-.028-.428-.027-.642.001-.394-.167-.616-.58-.588-.335.023-.519-.095-.469-.456.065-.466-.138-.672-.603-.633-.328.026-.523-.115-.509-.457.018-.486-.214-.679-.686-.653-.319.017-.437-.169-.428-.475.01-.376-.013-.752.004-1.127.02-.436-.167-.645-.603-.595-.372.043-.536-.094-.494-.478.047-.43-.15-.643-.591-.606-.36.031-.543-.132-.53-.493.017-.419-.155-.643-.595-.62-.353.017-.543-.132-.51-.507.036-.421-.193-.586-.581-.578-.392.008-.546-.179-.507-.565.039-.38-.146-.582-.531-.552-.428.033-.58-.164-.549-.571.024-.315-.108-.546-.46-.504-.62.077-.627-.28-.628-.749-.003-1.573.277-1.442-1.528-1.445-.36-.001-.522.172-.517.526.004.393-.012.787 0 1.18.01.34-.13.509-.475.473-.48-.048-.643.191-.613.636.023.316-.142.47-.454.445-.467-.038-.662.176-.618.632.034.352-.139.478-.478.46-.415-.023-.64.172-.622.607.015.357-.149.528-.517.504-.371-.023-.58.153-.57.535.01.427-.167.628-.611.583-.36-.037-.543.152-.513.51.036.452-.175.608-.603.576-.338-.025-.483.17-.481.497.002.375-.014.75.001 1.126.015.365-.097.588-.506.576-.389-.01-.607.162-.59.578.016.353-.155.538-.515.518-.409-.022-.6.172-.586.575.013.379-.143.557-.543.527-.403-.03-.587.188-.582.588.004.393-.007.786-.007 1.18 0 .223-.075.416-.322.404-.74-.038-.797.42-.753.977.017.214-.01.43.007.643.03.42-.112.645-.574.615-.272-.018-.504.079-.502.415.002.322.22.434.494.447q.59.028 1.18.017c.332-.007.514.115.48.47-.046.467.182.65.63.633.317-.012.52.123.509.47q-.025.634.608.629c.333-.004.495.153.48.492-.018.377.17.572.544.569.407-.004.587.18.553.593-.023.273.057.553.382.525.654-.053.745.297.692.82-.024.23.005.464.004.697-.002.443.162.724.658.706.336-.012.491.136.449.49-.054.464.18.663.633.626.323-.028.454.127.452.44-.002.41.01.822.021 1.233.008.25.08.512.376.486.733-.063.762.38.724.911-.018.25.006.502-.005.751-.02.415.178.61.58.566.422-.046.52.154.51.532-.017.679-.009 1.358.007 2.037.007.31.057.666.455.678.579.016.629.335.624.807a390 390 0 0 0-.003 5.899c.006.833.172 1.001.89 1.016 1.039.022 1.156-.095 1.159-1.16zm-30.53-.381c-.186-.054-.254-.197-.242-.37.036-.578-.307-.684-.784-.675-.679.011-1.359-.01-2.039-.004-.353.004-.548-.13-.511-.503.048-.49-.24-.629-.653-.633-.607-.006-1.215-.005-1.824-.007-.414 0-.649.22-.651.621-.005 1 .017 2.001.032 3.001.004.387.186.614.592.592.448-.023.532.227.524.608-.016.697.014 1.395-.004 2.092-.011.43.15.647.59.617.37-.025.516.142.5.51-.015.373-.001.75.013 1.125.008.242.065.531.353.514.775-.045.746.441.711.965-.014.196.007.394-.002.59-.02.443.185.683.63.676.364-.006.526.163.518.516-.008.396.175.603.582.59.348-.01.535.129.521.505-.014.34.167.535.508.573.326.035.53.2.556.54.032.419.275.61.673.596.359-.012.476.164.464.489-.015.425.185.636.617.605.365-.026.467.186.459.5-.01.393.155.614.574.583.408-.03.537.198.523.561-.013.39.186.546.562.536.357-.01.716.011 1.073 0 .34-.01.554.091.541.48-.015.434.228.604.64.6.392-.004.786.007 1.179.014.28.004.445.13.422.427-.043.56.263.707.759.7 1.019-.014 2.038.002 3.057-.01.346-.004.562.102.548.477-.02.527.302.61.73.609 3.005-.006 6.01-.003 9.014-.005.215 0 .43-.005.628-.106.149-.077.277-.183.278-.364a.34.34 0 0 0-.335-.357c-.598-.014-.622-.391-.598-.838a6 6 0 0 0-.021-.803c-.02-.249-.132-.515-.386-.515-.76-.001-.73-.486-.696-1.01.014-.213-.011-.428-.016-.643-.007-.402-.18-.656-.611-.644-.342.009-.5-.148-.49-.479.012-.384-.2-.573-.55-.581-.405-.012-.583-.198-.595-.59-.012-.393-.24-.598-.62-.579-.343.019-.44-.131-.431-.442.011-.415-.206-.625-.625-.622-.324 0-.49-.148-.502-.484-.012-.408-.237-.628-.645-.63-.294-.001-.432-.142-.425-.426.01-.454-.228-.647-.66-.647-.28 0-.451-.129-.43-.422.036-.476-.171-.703-.648-.692-.308.007-.455-.139-.45-.457.007-.462-.23-.691-.698-.678-.164.004-.386-.007-.357-.218.08-.59-.253-.826-.726-1.01-.134-.053-.295-.208-.32-.34-.115-.606-.536-.622-1.01-.592-.231.016-.466-.01-.697.004-.395.026-.612-.107-.585-.543.026-.42-.225-.564-.609-.562-.357 0-.715-.015-1.072-.013-.35.003-.54-.143-.526-.51.019-.425-.177-.641-.61-.61-.337.026-.507-.111-.494-.458.018-.47-.247-.624-.676-.62-.68.009-1.36-.014-2.039.005-.38.01-.57-.122-.569-.514.003-.441-.264-.581-.665-.578-.392.004-.786-.012-1.273-.037m65.668-.791c-.006-.215-.03-.432-.012-.643.043-.53-.194-.757-.716-.747-.59.013-1.18-.005-1.77.004-.371.005-.62.163-.594.585.027.425-.196.562-.591.556-.715-.01-1.43.006-2.146.004-.298 0-.584.066-.558.418.044.64-.323.695-.807.66-.232-.018-.466.01-.697-.004-.454-.029-.735.118-.703.627.023.35-.156.465-.49.463-.715-.005-1.43.016-2.145.028-.384.007-.682.123-.652.584.025.394-.174.49-.526.465-.275-.022-.55.092-.541.392.023.745-.43.786-.98.746-.197-.014-.395.01-.59 0-.439-.021-.69.16-.679.618.01.387-.204.49-.545.479-.339-.012-.678.004-1.018-.001-.392-.007-.62.17-.62.569 0 .385-.169.542-.554.537-.368-.004-.564.226-.556.582.008.4-.185.53-.553.533-.393.003-.588.215-.566.615.017.316-.143.47-.449.465-.413-.005-.645.162-.626.603.014.332-.145.501-.482.495-.425-.008-.612.22-.627.63-.009.254-.095.448-.406.453-.411.006-.61.256-.666.638-.042.28-.148.465-.479.441-.456-.033-.657.217-.648.65.007.31-.12.474-.438.47-.394-.004-.611.21-.63.582-.015.356-.165.518-.518.535-.351.017-.569.206-.579.573-.01.345-.14.523-.517.514-.443-.01-.642.255-.645.682 0 .323-.015.645.001.966.019.365-.089.587-.5.578-.443-.009-.59.258-.581.66.006.213-.016.43.003.643.05.533.012.976-.702.956-.196-.004-.329.15-.336.355-.007.213.13.329.326.363.193.034.388.065.583.066q1.45.014 2.897.013c2.038.001 4.078.002 6.116-.006.336 0 .766.023.806-.425.055-.613.431-.644.888-.648.947-.01 1.894-.028 2.84-.046.417-.008.69-.172.675-.64-.01-.327.17-.428.475-.426.41.003.822-.033 1.233-.043.266-.007.493-.112.483-.388-.027-.702.407-.715.912-.678.213.016.429-.005.643 0 .409.01.653-.155.649-.591-.004-.36.18-.503.53-.521.345-.018.572-.213.573-.58.001-.366.167-.51.528-.5.4.013.595-.215.579-.604-.017-.38.18-.503.522-.498.392.007.607-.175.587-.584-.014-.315.163-.463.449-.485.433-.032.652-.239.63-.685-.013-.308.133-.463.454-.453.414.012.64-.192.64-.614-.002-.386.22-.485.558-.46.41.03.588-.174.58-.578-.008-.357.023-.715.005-1.072-.02-.37.091-.588.499-.576.363.01.51-.2.525-.536.018-.392.054-.785.057-1.177.004-.308.113-.47.441-.46.497.017.643-.281.638-.724-.009-.68.009-1.36-.005-2.038-.007-.343.083-.559.47-.55.496.012.645-.284.642-.724-.004-.662.004-1.323.006-2.091M35.068 29.31c-.033-.43-.012-.795.592-.751.317.022.49-.194.497-.51q.018-.644.008-1.286c-.02-1.273.2-1.297-1.337-1.292-.6.002-1.203.04-1.776-.193.123-.602-.145-.927-.758-.927q-6.41-.004-12.818.001c-.572.002-.736.164-.734.737.003.68.04 1.359.038 2.038-.006 3.502-.024 7.005-.026 10.509-.001.745.103.832.84.839q1.528.01 3.057.005c.332 0 .56.093.547.482-.014.45.254.583.655.576.375-.006.75.007 1.126.013.245.002.427.084.41.37-.04.692.287.764.876.763q1.503-.003 3.004.002c.225 0 .464-.043.516.308.11.767.123.764.883.768.233.001.466.015.697-.005.423-.034.658.102.598.57-.054.413.173.531.545.52.392-.012.786.007 1.178.006.324-.002.518.122.486.476-.045.47.193.648.636.633.267-.01.46.087.438.4-.037.529.249.662.725.673 1.304.029 1.32.008 1.323-1.335.001-.464-.172-.69-.614-.659-.444.031-.507-.215-.504-.56.002-.375-.006-.75-.015-1.125-.007-.268-.135-.485-.41-.467-.667.043-.687-.355-.685-.855.009-3.54.003-7.08.002-10.723M91.11 35.95l-.003-10.835c-.002-.669-.08-.764-.668-.764-4.237-.002-8.475.005-12.712-.003-.467-.001-.73.168-.708.644.019.436-.22.492-.573.485-.661-.012-1.323.021-1.984-.003-.538-.018-.743.223-.727.738a38 38 0 0 1 .009 1.77c-.007.403.158.614.571.582.404-.032.525.162.525.543q-.01 5.633 0 11.264c0 .344-.08.55-.485.507-.444-.048-.606.214-.608.62 0 .34-.021.68-.006 1.02.018.388-.145.576-.535.538-.44-.042-.54.204-.563.585-.087 1.455-.016 1.425 1.444 1.374.347-.013.55-.2.545-.533-.008-.441.232-.55.602-.555.265-.002.492-.113.473-.396-.045-.662.344-.726.85-.689.213.015.43-.015.643 0 .45.03.726-.119.732-.618.003-.326.177-.475.514-.461.375.014.75-.003 1.126-.006.333-.003.573-.13.554-.499-.029-.506.254-.586.672-.579.966.014 1.932-.009 2.897.005.517.007.832-.179.83-.732 0-.303.157-.408.437-.408.393 0 .786-.014 1.18-.015.336-.001.567-.134.564-.495-.005-.468.258-.556.656-.551.929.012 1.858 0 2.789-.001.9-.003.946-.045.956-.923.004-.5.002-1.001.003-1.61m-23.04 5.341c.027-.264.185-.41.426-.492.449-.15.631-.466.63-.94-.012-3.487-.01-6.974-.012-10.46 0-.31-.049-.596-.43-.62-.426-.028-.43.298-.431.587-.002.332-.12.506-.479.464-.485-.058-.705.16-.648.651.043.36-.095.542-.482.502-.476-.05-.635.204-.61.647.016.32-.014.645.004.965.024.424-.17.578-.577.558-.356-.019-.715.01-1.072-.006-.418-.02-.588.185-.589.578 0 .41-.009.822-.007 1.232.002.234-.093.41-.333.393-.701-.05-.79.363-.746.915.02.266-.009.536.001.804.013.337-.127.501-.474.48-.481-.029-.612.25-.605.676.01.697-.01 1.394.001 2.091.006.373-.114.585-.522.553-.424-.034-.573.196-.564.588.008.357-.013.716-.001 1.073.012.356-.111.539-.498.503-.398-.037-.597.16-.604.565-.006.338-.04.677-.044 1.017-.028 2.931.084 5.862.005 8.795-.028.999.032 2 .063 3 .009.281.083.558.43.58.34.021.4-.238.427-.502.025-.233.093-.448.37-.43.68.045.747-.397.752-.9.002-.251.01-.502.002-.751-.012-.342.094-.549.485-.53.395.018.602-.2.599-.59-.004-.364.183-.517.523-.533.434-.02.577-.29.581-.681.005-.357.01-.714.023-1.073.008-.266.12-.45.421-.433.483.025.684-.236.69-.684.005-.269.142-.377.399-.4.49-.04.661-.367.676-.808.01-.322.007-.645.007-.966 0-.215.05-.42.3-.43.7-.034.772-.511.778-1.048q.008-.375.01-.752c0-.25.09-.408.372-.41.565 0 .72-.335.715-.843-.01-.948.013-1.895.039-2.935M48.394 40.2c-.148-.183-.124-.404-.126-.615-.006-.483-.003-.966-.008-1.448-.004-.299-.118-.58-.442-.564-.598.027-.674-.295-.636-.767.019-.249-.008-.5-.003-.751.01-.424-.14-.697-.614-.676-.38.016-.495-.176-.478-.533.02-.391.004-.786-.017-1.177-.018-.338-.207-.518-.557-.513-.376.003-.751-.016-1.125.006-.364.021-.535-.11-.521-.486.013-.34-.01-.68.001-1.018.014-.411-.145-.666-.58-.656-.408.009-.53-.196-.51-.567.014-.303-.106-.55-.446-.547-.482.004-.729-.167-.703-.688.015-.275-.194-.414-.46-.415s-.366.184-.395.421c-.012.107-.03.213-.032.32-.008 3.52-.048 7.04.037 10.56.01.391.17.616.58.593.385-.022.481.165.478.52-.01 1.038.025 2.073.01 3.11-.007.481.137.757.661.735.338-.014.478.158.467.496-.013.392-.003.786.01 1.179.009.251.112.512.384.497.706-.039.714.395.681.895-.014.213.001.428-.001.644-.005.42.148.697.62.678.36-.012.522.156.513.517-.006.293.087.582.421.575.62-.01.696.337.653.825-.019.213.015.43.007.644-.019.466.143.759.662.759.3-.002.458.148.445.468-.018.45.212.668.659.631.336-.028.436.126.438.44.001.391.039.784.07 1.176.025.326.186.544.533.557.307.01.517.105.545.45.012.153.096.274.26.3.187.027.296-.091.382-.239.177-.31.173-.652.174-.99q.012-5.415.02-10.83c0-.375-.013-.75-.026-1.125-.009-.287-.14-.51-.443-.497-.603.027-.693-.323-.617-.789.148-.888-.2-1.545-.971-2.105m37.464 24.569c.496.035.897-.032.865-.687-.013-.234.17-.33.402-.327.374.003.75-.014 1.125-.001.44.013.696-.165.668-.624-.025-.415.195-.53.555-.525.282.004.537-.103.514-.415-.048-.646.335-.682.81-.654.232.013.465-.019.696-.006.451.024.732-.116.702-.628-.016-.295.11-.496.436-.467.468.04.65-.186.649-.628-.001-.334.18-.47.514-.459.42.016.633-.207.609-.628-.021-.354.164-.49.484-.48.459.017.649-.203.627-.652-.015-.309.154-.47.46-.457.438.021.616-.19.606-.612-.007-.295.131-.498.448-.468.538.05.702-.229.685-.704-.01-.222.058-.358.32-.397.766-.113.763-.125.768-.897.002-.233.015-.466 0-.697-.025-.387.09-.625.53-.605.4.02.599-.18.585-.583-.012-.346.121-.546.498-.53.376.018.567-.158.557-.544-.01-.37.147-.56.547-.539s.585-.216.592-.599c.008-.393.014-.786.007-1.18-.004-.23.054-.358.317-.39.769-.094.768-.105.771-.904.001-.215.017-.43 0-.643-.038-.457.095-.724.62-.679.307.026.445-.17.45-.472.006-.336-.195-.428-.484-.425-.375 0-.752-.012-1.126.003-.378.016-.573-.12-.546-.525.029-.415-.197-.575-.594-.562-.357.01-.715-.017-1.072-.002-.372.013-.592-.105-.554-.516.044-.48-.224-.631-.65-.63-.894.002-1.788-.006-2.682-.001-.735.002-.839.1-.844.836-.008 1.34-.004 2.682-.002 4.022.001.4-.064.712-.582.67-.428-.032-.549.236-.546.614.007.751 0 1.502.002 2.253 0 .232-.029.407-.322.459-.765.134-.764.146-.767.907 0 .233-.01.466.003.697.023.395-.115.617-.55.586-.384-.027-.552.176-.549.552.005.376-.015.75-.003 1.125.009.331-.095.512-.462.474-.423-.042-.646.152-.63.587.016.381-.127.567-.538.516-.413-.049-.586.183-.586.576 0 .375-.017.75-.003 1.126.015.363-.128.54-.499.51-.399-.034-.627.127-.58.551.047.436-.155.574-.563.54-.354-.03-.541.152-.515.514.03.409-.144.589-.56.577-.321-.008-.57.13-.56.5.013.446-.163.66-.631.622-.23-.018-.472.077-.442.349.064.586-.178.801-.748.801-.275.001-.368.26-.34.517.026.255.215.304.431.293.196-.008.392-.018.677-.035m-64.856-4.174c-.164-.059-.206-.198-.196-.345.04-.517-.156-.783-.709-.715-.27.033-.388-.1-.38-.378.008-.392-.005-.786-.01-1.18-.003-.403-.17-.652-.609-.631-.337.016-.499-.131-.474-.478.034-.45-.172-.683-.633-.634-.397.043-.496-.158-.486-.507.013-.392-.003-.786-.01-1.18-.004-.267-.117-.49-.4-.463-.659.061-.743-.306-.696-.823.021-.23-.008-.465.004-.697.023-.46-.176-.734-.645-.727-.373.006-.446-.173-.44-.496.011-.697-.001-1.394-.005-2.092-.002-.415-.152-.696-.626-.68-.376.014-.501-.199-.489-.542.006-.16-.003-.322-.003-.482q0-1.957.006-3.916c0-.388-.16-.604-.573-.603-1.036.006-2.075.001-3.111.004-.283 0-.524.112-.508.425.036.672-.368.75-.885.725-.233-.011-.466.01-.699.001-.407-.012-.661.14-.643.586.016.377-.18.503-.529.495a18 18 0 0 0-1.18.014c-.273.013-.42.177-.43.451-.01.26.136.44.38.423.698-.047.733.379.694.89-.016.213.007.43-.007.643-.029.434.127.696.6.68.38-.015.494.186.477.537-.019.356.001.714-.005 1.072-.005.36.127.594.519.597.38.002.533.217.581.564.045.323.219.532.572.502.427-.035.58.172.563.573-.01.248.054.517.35.504.708-.028.773.39.729.931-.018.213.011.43.002.643-.016.418.177.655.594.657.35.001.54.1.498.493-.044.402.17.617.565.602.418-.014.583.172.571.575-.008.317.148.522.483.508.448-.017.601.21.587.623-.012.353.179.55.525.524.433-.03.626.118.596.571-.024.343.164.546.524.517.427-.033.58.162.544.572-.031.361.162.538.518.507.442-.038.622.163.607.591-.013.39.217.538.578.536q.589-.005 1.179-.001c.207.002.44.039.41.304-.08.756.386.801.94.779.267-.01.537.034.801.011.346-.03.5.071.463.444-.048.48.204.698.677.651.307-.03.435.117.42.404-.03.558.276.718.773.682.213-.016.43 0 .643 0 .282-.003.566-.021.577-.398.01-.365-.216-.51-.552-.5-.357.011-.534-.132-.509-.506.028-.404-.175-.596-.577-.59-.326.005-.569-.092-.547-.483.024-.43-.177-.626-.61-.606-.296.015-.494-.113-.47-.437.048-.61-.324-.72-.904-.721m63.036 34.12c-.36.028-.426.279-.417.568.01.357-.144.545-.51.512-.48-.042-.639.228-.634.647.003.31-.12.462-.444.444-.496-.028-.663.25-.64.705.012.25-.001.5.013.748.022.366.162.62.593.578.292-.027.495.068.47.412-.04.512.216.724.706.687.32-.025.478.11.443.433-.06.528.197.713.691.67.213-.02.43-.02.642-.002.477.039.709-.155.665-.647-.026-.303.092-.482.426-.455.475.038.696-.178.676-.658-.011-.28.124-.448.424-.41.593.075.762-.226.71-.758-.024-.23-.01-.463-.004-.696.01-.419-.172-.643-.61-.607-.35.028-.555-.099-.531-.479.028-.429-.16-.63-.598-.608-.283.014-.515-.091-.486-.42.054-.62-.295-.717-.796-.673-.23.02-.462.003-.79.008m-30.027.157c-.1.142-.096.306-.09.466.015.315-.123.482-.44.453-.505-.044-.676.203-.642.671.02.285-.121.442-.416.423-.526-.034-.699.243-.67.725q.021.35-.003.697c-.028.446.137.686.617.633.257-.028.495.02.468.349-.044.553.244.74.739.723.295-.009.376.158.35.409-.06.547.197.75.72.7.232-.022.468-.026.698-.004.463.043.67-.155.634-.615-.025-.33.102-.5.458-.487.436.013.67-.193.635-.654-.02-.28.112-.462.4-.445.606.034.729-.305.683-.81-.02-.213-.01-.43-.007-.644.006-.376-.18-.58-.552-.566-.388.014-.564-.139-.53-.535.034-.379-.145-.587-.532-.554-.449.04-.615-.174-.609-.593.004-.254-.079-.487-.373-.494-.494-.014-.997-.121-1.538.152m-29.803 5.225c.251 1.04.251 1.026 1.374 1.019.458-.004.727-.141.693-.642-.019-.304.093-.48.428-.458.497.03.738-.223.724-.706-.01-.32.173-.407.434-.404.463.003.631-.264.64-.678.007-.25.009-.5-.003-.75-.017-.374-.182-.62-.595-.59-.335.024-.51-.11-.501-.453.01-.447-.197-.662-.653-.632-.302.02-.494-.115-.467-.436.047-.54-.227-.697-.712-.658-.23.018-.463.012-.695.002-.401-.016-.606.156-.588.569.013.308-.08.538-.446.518-.46-.025-.647.205-.646.646.002.26-.092.471-.406.437-.57-.063-.715.259-.707.743.003.214-.01.428-.017.643-.015.459.174.714.667.679.2-.014.466-.016.446.247-.057.737.45.78 1.03.904m3.045-34.319c.168-.52.09-.686-.395-.731a7 7 0 0 0-1.018-.007c-.256.011-.375.177-.382.43-.007.249.09.435.353.444.46.018.927.105 1.442-.136m56.202-.755c-.177.012-.36.003-.531.041-.236.053-.364.22-.358.467.007.274.19.372.426.379q.536.016 1.07-.004c.282-.009.406-.19.417-.457.012-.273-.155-.385-.396-.409-.177-.016-.356-.013-.628-.017M263.345 5.975c-.616.696-.774 11.128-.697 37.236l.24 36.237h19.335l.239-36.617c.158-28.815 0-36.775-.774-37.31-1.774-1.078-17.33-.778-18.343.454m30.873.474c-.851 1.62-1.074 68.441-.22 71.686.378 1.612.758 1.693 9.89 1.693 7.976 0 9.604-.239 9.985-1.235.85-2.167.539-70.609-.3-72.221-.777-1.313-1.71-1.47-9.686-1.47-7.96 0-8.892.157-9.67 1.55M325.71 5.36c-.304.316-.539 4.019-.539 8.2v7.562h19.417l-.223-7.96-.235-7.879-8.973-.223c-4.873-.08-9.13.081-9.447.3m203.814.616c-.632.696-.85 3.565-.697 7.96l.223 6.806h19.352l.222-7.264c.163-5.331-.08-7.502-.773-7.96-.539-.3-4.716-.616-9.196-.616-6.125 0-8.511.316-9.131 1.074m309.95-.616c-.3.316-.539 4.019-.539 8.2v7.562h19.417l-.223-7.96-.235-7.879-8.973-.223c-4.873-.08-9.13.081-9.447.3m-350.57 6.186c-.238.697-.473 4.638-.473 8.88v7.644h-3.403c-3.942 0-4.335.55-4.335 6.485 0 4.797.851 5.874 4.793 5.874h2.945v8.273c0 4.638.235 11.743.534 15.827l.478 7.575h7.422l.235 3.626.223 3.719h22.442l.235-5.331c.158-3.784-.08-5.57-.778-5.951-.538-.397-3.163-.697-5.87-.697h-4.808l.158-13.368.235-13.28 5.412-.397 5.412-.376V28.462l-5.412-.393-5.412-.381-.235-8.734-.223-8.64h-9.528c-8.037 0-9.666.218-10.046 1.23M130.74 28.62c-.316.223-.555 16.366-.555 35.843 0 32.975.08 35.446 1.393 35.985.697.393 5.266.539 10.063.393l8.669-.235V79.824h14.308c10.917 0 14.32-.235 14.401-.992.081-.474.142-2.167.22-3.642.08-2.706.08-2.706 4.18-2.925l4.035-.239V35.948l-2.407-.458a30 30 0 0 0-4.253-.462c-1.698 0-1.856-.316-1.856-3.483v-3.476h-23.905l-.239 2.864c-.218 2.94-.218 2.94-3.86 3.16l-3.719.243v-6.267h-7.98c-4.396 0-8.273.235-8.495.55m36.584 25.259v13.514l-8.195.235c-4.497.142-8.357.08-8.515-.081-.158-.154-.3-6.328-.3-13.75V40.429h17.014Zm37.755-22.171c-.218 3.544-.3 3.702-2.548 3.544a22.7 22.7 0 0 0-4.018.24l-1.787.315v36.22l4.1.24 4.035.218.218 3.719.24 3.625 19.89-.162 19.874-.218.24-3.72.238-3.62h8.434V54.035c0-17.533-.08-18.169-1.551-18.627-.855-.3-2.706-.38-4.1-.223-2.406.223-2.483.146-2.864-3.24l-.397-3.484-19.874-.235-19.89-.162Zm28.009 22.248v13.514h-16.232V40.424h16.232ZM325.71 28.62c-.304.223-.539 11.885-.539 25.873v25.412l9.524-.235 9.435-.222.235-25.728.142-25.651h-9.115c-5.031 0-9.447.235-9.682.55m28.244 25.1.239 25.729h19.335l.24-19.542.161-19.482h16.233l.158 19.482.239 19.542h19.335l.239-21.79.158-21.791-4.035-.219-4.1-.239-.222-3.702-.235-3.638-12.534.158-12.534.235-.239 2.848-.235 2.945h-7.656v-6.186h-14.705Zm68.867-19.703.222 6.032 15.334.235 15.316.141-.235 3.72-.239 3.625-12.752.393-12.773.38-.077 3.087v3.104l-3.942.218c-3.338.162-4.034.539-4.415 1.933-.616 2.248-.616 7.182 0 11.662l.539 3.561h7.421l.24 3.622.234 3.719 11.837.222 11.76.235v-6.327l3.719.223c3.638.235 3.638.235 3.86 3.082l.235 2.945h14.625v-43.88l-2.326-.539c-1.235-.3-2.629-.3-3.01-.08-1.786 1.174-3.18-.536-3.18-3.861v-3.403h-42.628Zm30.795 29.973v3.484h-14.7V60.52h14.7Zm75.434-34.988c-.223.538-.3 12.12-.223 25.732l.223 24.715h19.352V28.462l-9.524-.235c-7.203-.162-9.589.08-9.828.774m37.14 0a21.5 21.5 0 0 0-.54 3.702c-.234 2.706-.234 2.706-4.334 2.945l-4.018.219.158 17.93.218 17.913 4.04.24 4.018.234.235 3.626.223 3.638 19.971.222 19.874.158v-7.72h8.511V35.805h-3.005c-4.89 0-5.51-.555-5.51-4.334v-3.403H586.32c-15.175 0-19.89.235-20.13.932m28.248 24.954v13.514h-16.252V40.424h16.252ZM623.52 28.7c-.218.458-.141 34.052.24 48.182l.08 2.945h9.59c8.053 0 9.665-.239 10.062-1.235.239-.697.458-9.508.458-19.7v-18.53l7.98.22 7.891.238.381 19.307.397 19.324h19.336V36.183l-3.877-.38-3.86-.398-.382-3.463-.393-3.484-12.533-.235-12.611-.162v6.19h-7.738v-6.186h-7.283c-4.019 0-7.499.316-7.738.632m74.219.304a20.3 20.3 0 0 0-.555 3.702c-.223 2.706-.223 2.706-4.254 2.945l-4.103.219v7.66c0 4.16.239 8.102.478 8.8.3.93 1.535 1.235 4.172 1.235h3.784l.243 3.24.235 3.322 11.059.243 10.982.235v6.867h-14.462c-8.057 0-15.017.3-15.556.697-.696.38-.931 2.167-.773 5.95l.235 5.332H731l.234-3.638.223-3.626 4.035-.235 4.019-.239.239-6.55c.3-9.589.141-10.047-4.497-10.047h-3.796l-.223-3.326-.234-3.24-11.222-.381-11.221-.397V40.82l14.243-.239c7.9-.08 14.624-.457 15.082-.838.539-.474.774-2.941.616-6.186l-.3-5.49h-20.052c-15.394 0-20.19.236-20.41.933m80.624 0c-.162.538-.162 3.24.142 6.027l.474 5.02 14.923.235 14.86.141v7.738h-25.522v6.947h-8.515v16.917l4.096.24 4.018.218.243 3.719.219 3.702 11.772-.235 11.756-.222.24-2.941c.222-2.864.299-2.864 3.62-2.864 3.343 0 3.42 0 3.643 2.864l.239 2.94 7.575.223 7.502.235v-22.09c0-17.075-.222-22.009-.915-22.09-.555-.08-2.406-.158-4.1-.235-3.103-.08-3.103-.08-3.496-3.544l-.38-3.484-20.969-.235c-16.406-.162-21.125 0-21.425.774m30.398 34.988v3.56l-7.121-.238-7.183-.223-.239-2.167c-.457-4.096 0-4.4 7.58-4.4h6.963Zm30.176-10.034v25.873h19.117l.458-8.734a271 271 0 0 0 0-33.594l-.458-9.431h-19.117Zm-89.677 9.195c-.615.697-.85 3.622-.692 8.641l.235 7.657 8.357.222 8.353.235-.235-8.734-.223-8.717-7.437-.24c-5.729-.157-7.657.082-8.358.932m0 0"/></svg>';var xp=`url('${hp}')`,t1={WebkitMaskImage:xp,WebkitMaskPosition:"center",WebkitMaskRepeat:"no-repeat",WebkitMaskSize:"contain",maskImage:xp,maskPosition:"center",maskRepeat:"no-repeat",maskSize:"contain"};function bp(e){return e===window?window.scrollY:e.scrollTop}function vp({children:e,navLabel:t,autoHide:o=!1,scrollTargetRef:r,brandHref:n="https://pollinations.ai",brandLabel:i="Pollinations",className:l,innerClassName:a,navClassName:c}){let[p,u]=ee(!1);return Y(()=>{if(!o||typeof window>"u"){u(!1);return}let d=r?.current??window,g=bp(d),f=0,m=()=>{f||(f=window.requestAnimationFrame(()=>{f=0;let v=bp(d),h=v-g;v<16?u(!1):h>8?u(!0):h<-8&&u(!1),g=v}))};return d.addEventListener("scroll",m,{passive:!0}),()=>{f&&window.cancelAnimationFrame(f),d.removeEventListener("scroll",m)}},[o,r]),s("header",{className:x("polli:sticky polli:top-0 polli:z-30 polli:bg-app-bg polli:py-4","polli:transition-transform polli:duration-200 polli:ease-out",o&&"polli:will-change-transform",p?"polli:-translate-y-full":"polli:translate-y-0",l),onFocusCapture:()=>u(!1),children:b("div",{className:x("polli:mx-auto polli:flex polli:w-full polli:max-w-5xl polli:flex-col polli:gap-4 polli:px-4 polli:sm:flex-row polli:sm:items-center polli:sm:justify-between polli:sm:px-6",a),children:[b("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"polli:inline-flex polli:shrink-0 polli:items-center polli:text-theme-text-strong",children:[s("span",{className:"polli:sr-only",children:i}),s("span",{"aria-hidden":"true",className:"polli:block polli:h-7 polli:w-[220px] polli:max-w-full polli:bg-current",style:t1})]}),e?s("nav",{"aria-label":t,className:x("polli:flex polli:min-w-0 polli:flex-wrap polli:items-center polli:gap-2",c),children:e}):null]})})}var o1={panel:"polli:rounded-2xl polli:bg-theme-bg-pale polli:p-6 polli:shadow-container",card:"polli:rounded-xl polli:bg-surface-opaque polli:p-4 polli:shadow-well","card-themed":"polli:rounded-xl polli:bg-theme-bg-pale polli:p-4 polli:shadow-well"};function vt({as:e,variant:t="card",className:o,children:r,...n}){return s(e||"div",{...n,className:x("polli:min-w-0",o1[t],o),children:r})}function yp({title:e,body:t,children:o,tone:r="theme",className:n}){return b(vt,{as:"section",variant:"panel",className:x("polli:flex polli:flex-wrap polli:items-center polli:justify-between polli:gap-8 polli:rounded-3xl polli:px-6 polli:py-9 polli:sm:gap-10 polli:sm:px-10 polli:sm:py-12",r==="dark"?"dark polli:bg-brand-dark":void 0,n),children:[b("div",{className:"polli:flex polli:max-w-lg polli:flex-col polli:gap-2.5",children:[s(bo,{size:"section",className:"polli:text-3xl polli:sm:text-4xl",children:e}),s(ce,{className:"polli:text-theme-text-strong/75",children:t})]}),s("div",{className:"polli:flex polli:flex-wrap polli:items-center polli:gap-3",children:o})]})}var r1={y:"polli:overflow-y-auto polli:overflow-x-hidden",x:"polli:overflow-x-auto polli:overflow-y-hidden",both:"polli:overflow-auto"};function n1(e,t){typeof e=="function"?e(t):e&&(e.current=t)}var Ue=P(({axis:e="y",scrollbar:t="subtle",className:o,children:r,...n},i)=>{let l=$(null),a=pr(c=>{l.current=c,n1(i,c)},[i]);return Y(()=>{if(t==="native")return;let c=l.current;if(!c)return;let p=null,u=()=>{p!==null&&(window.clearTimeout(p),p=null)},d=()=>{c.dataset.scrollbarActive="true",u()},g=()=>{c.dataset.scrollbarActive="false",u()},f=()=>{u(),p=window.setTimeout(g,2e3)},m=()=>{d(),f()};return g(),c.addEventListener("scroll",m,{passive:!0}),c.addEventListener("wheel",m,{passive:!0}),c.addEventListener("touchstart",m,{passive:!0}),c.addEventListener("pointerdown",m),c.addEventListener("keydown",m),c.addEventListener("focusin",m),c.addEventListener("focusout",f),()=>{u(),c.removeEventListener("scroll",m),c.removeEventListener("wheel",m),c.removeEventListener("touchstart",m),c.removeEventListener("pointerdown",m),c.removeEventListener("keydown",m),c.removeEventListener("focusin",m),c.removeEventListener("focusout",f)}},[t]),s("div",{...n,ref:a,className:x(t==="subtle"&&"polli-scrollbar-subtle","polli:min-w-0 polli:max-w-full",r1[e],o),children:r})});Ue.displayName="ScrollArea";var $i=P(({children:e,className:t,viewportClassName:o,showScrollButton:r=!1,onScrollToBottom:n,scrollButtonLabel:i="Scroll to latest message",...l},a)=>b("div",{className:x("polli:relative polli:min-h-0",t),children:[s(Ue,{...l,ref:a,className:x("polli:h-full polli:min-h-0",o),children:e}),r&&n&&s("button",{type:"button","aria-label":i,title:i,onClick:n,className:"polli-control polli:absolute polli:bottom-3 polli:left-1/2 polli:flex polli:size-9 polli:-translate-x-1/2 polli:cursor-pointer polli:items-center polli:justify-center polli:rounded-full polli:border polli:border-theme-border/60 polli:bg-surface-opaque polli:text-theme-text-strong polli:shadow-well polli:transition-transform polli:hover:translate-y-0.5",children:s(Vi,{className:"polli:size-4 polli:rotate-90"})})]}));$i.displayName="ChatConversation";function Cp({className:e,...t}){return s("div",{className:x("polli:flex polli:min-w-0 polli:flex-col polli:gap-5",e),...t})}function wp({from:e,className:t,children:o,...r}){return s("article",{"data-role":e,className:x("polli:group/message polli:flex polli:w-fit polli:max-w-full polli:min-w-0 polli:flex-col polli:gap-3 polli:[overflow-wrap:anywhere] polli:rounded-xl polli:px-4 polli:py-3",e==="user"?"polli:ml-auto polli:bg-theme-bg-active polli:text-theme-text-strong":"polli:mr-auto polli:bg-surface-opaque polli:text-theme-text-base polli:shadow-well",t),...r,children:o})}function Pp({from:e,label:t,icon:o,className:r,...n}){let i=t??(e==="user"?"You":e==="assistant"?"Agent":"System");return b("header",{className:x("polli:flex polli:items-center polli:gap-2",r),...n,children:[e==="assistant"&&(o??s("span",{className:"polli:flex polli:size-6 polli:items-center polli:justify-center polli:rounded-full polli:bg-theme-bg-active polli:text-theme-text-strong",children:s(Ui,{className:"polli:size-3.5"})})),s(ce,{as:"span",size:"xs",tone:"muted",weight:"bold",className:"polli:uppercase polli:tracking-wide",children:i})]})}function Ep({className:e,...t}){return s("div",{className:x("polli:min-w-0 polli:[&_pre]:max-w-full polli:[&_pre]:overflow-x-auto polli:[&_table]:max-w-full polli:[&_table]:overflow-x-auto",e),...t})}function Tp({className:e,...t}){return s("footer",{className:x("polli:flex polli:flex-wrap polli:items-center polli:gap-1 polli:pt-2",e),...t})}var $o=P(({className:e,error:t,rows:o=4,...r},n)=>s("textarea",{ref:n,rows:o,"data-error":t?"true":void 0,className:x("polli-textarea polli:w-full polli:rounded-lg polli:border polli:px-3 polli:py-2","polli:min-h-20 polli:resize-y polli:font-body polli:text-base","polli:text-theme-text-strong","polli:transition-colors","polli:disabled:opacity-50 polli:disabled:cursor-not-allowed",e),...r}));$o.displayName="Textarea";function Ip({className:e,...t}){return s("fieldset",{className:x("polli:m-0 polli:min-w-0 polli:p-0",e),...t})}var ji=P(({className:e,...t},o)=>s($o,{...t,ref:o,className:x("polli:resize-none",e)}));ji.displayName="ChatPromptTextarea";function Np({start:e,end:t,children:o,className:r,...n}){return s("div",{className:x("polli:flex polli:flex-wrap polli:items-end polli:gap-2",r),...n,children:o??b(Z,{children:[s("div",{className:"polli:flex polli:flex-wrap polli:items-center polli:gap-2",children:e}),s("div",{className:"polli:ml-auto polli:flex polli:items-center polli:gap-2",children:t})]})})}var i1={icon:"polli:h-12 polli:w-12 polli:p-0",xs:"polli:h-5 polli:px-1.5 polli:py-0 polli:text-[11px] polli:leading-none",sm:"polli:min-h-7 polli:px-2 polli:pt-0.5 polli:pb-1",md:"polli:min-h-9 polli:px-4 polli:pt-1.5 polli:pb-2",lg:"polli:min-h-12 polli:px-6 polli:py-3"},l1={icon:"polli:h-12 polli:w-12 polli:p-0",xs:"polli:px-2 polli:py-1 polli:text-xs",sm:"polli:px-4 polli:py-2 polli:text-sm",md:"polli:px-7 polli:py-3.5 polli:text-base",lg:"polli:px-8 polli:py-4 polli:text-lg"},s1={pill:"polli:rounded-full",raised:"polli:rounded-xl polli:border-r-[3px] polli:border-b-[3px] polli:border-solid polli:border-theme-text-strong/20 polli:hover:border-theme-text-strong/45"},a1="polli:bg-theme-bg-active polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover polli:transition-colors",kp="polli:border polli:border-theme-text-soft polli:bg-surface-white polli:text-theme-text-strong polli:transition-colors polli:[.dark_&]:bg-transparent",c1={brand:`${kp} polli:hover:bg-theme-text-soft/10`,commit:`${kp} polli:hover:border-theme-bg-active polli:hover:bg-theme-bg-active polli:focus-visible:border-theme-bg-active polli:focus-visible:bg-theme-bg-active polli:[.dark_&]:hover:bg-theme-bg-active polli:[.dark_&]:focus-visible:bg-theme-bg-active`,danger:"polli:border polli:border-intent-danger-text polli:bg-transparent polli:text-intent-danger-text polli:hover:bg-intent-danger-bg-hover polli:focus-visible:bg-intent-danger-bg-hover polli:transition-colors",info:"polli:bg-intent-info-bg-light polli:text-intent-info-text polli:hover:bg-intent-info-bg-hover polli:transition-colors",neutral:"polli:bg-theme-bg-subtle polli:text-theme-text-base polli:hover:bg-theme-text-muted/25 polli:hover:text-theme-text-strong polli:transition-colors"},p1=({intent:e,appearance:t="pill",size:o,className:r,disabled:n})=>{let i=e?c1[e]:a1,l=t==="raised"?l1:i1;return x("polli-control polli:inline-flex polli:items-center polli:justify-center polli:self-center polli:font-body polli:text-sm polli:font-medium polli:leading-normal polli:box-border polli:border polli:border-transparent",n?"polli:opacity-50 polli:cursor-not-allowed":"polli:hover:filter polli:hover:brightness-105 polli:cursor-pointer",i,s1[t],l[o||"md"],r)};function Ze({as:e,children:t,icon:o,intent:r,appearance:n,size:i,className:l,disabled:a,...c}){let p=e||"button",u=p==="button",d=p==="a",g=c.type,f=c.onClick;return b(p,{...c,"data-intent":r,...u?{type:g??"button",disabled:a}:{},...!u&&a?{"aria-disabled":!0,tabIndex:-1}:{},...d&&a?{href:void 0}:{},onClick:a?v=>{v.preventDefault(),v.stopPropagation()}:f,className:p1({intent:r,appearance:n,size:i,className:l,disabled:a}),children:[o&&s("span",{"aria-hidden":"true",className:"polli:mr-2 polli:flex polli:size-4 polli:shrink-0 polli:[&>svg]:size-full",children:o}),t]})}var u1=288,ln=12,Je=({children:e,content:t,align:o="start",ariaLabel:r,clampToViewport:n=!0,className:i,maxWidth:l=u1,onClick:a,stopClickPropagation:c=!0,style:p,tapEnabled:u=!1,triggerAs:d="button",displayContents:g=!1})=>{let[f,m]=ee(!1),[v,h]=ee({top:0,left:0,maxWidth:l}),C=$(null),T=$(!1),E=ue(),w=()=>{T.current=!1,m(!1)};Y(()=>{if(!f)return;let S=z=>{C.current?.contains(z.target)||(T.current=!1,m(!1))},_=z=>{z.key==="Escape"&&(T.current=!1,m(!1))},R=()=>{T.current=!1,m(!1)};return document.addEventListener("pointerdown",S),document.addEventListener("keydown",_),window.addEventListener("scroll",R,{capture:!0,passive:!0}),window.addEventListener("resize",R),()=>{document.removeEventListener("pointerdown",S),document.removeEventListener("keydown",_),window.removeEventListener("scroll",R,!0),window.removeEventListener("resize",R)}},[f]);let M=()=>{if(C.current){let S=C.current.getBoundingClientRect(),_=Math.min(l,window.innerWidth-ln*2),R=o==="center"?S.left+S.width/2:S.left,z=o==="center"?"translateX(-50%)":void 0;n&&(R=Math.min(Math.max(S.left,ln),Math.max(ln,window.innerWidth-_-ln)),z=void 0),h({top:S.bottom+4,left:R,maxWidth:_,transform:z})}},N=x("polli-control polli:relative polli:cursor-help polli:text-left polli:inline-flex polli:items-center",i),W=g?"polli:contents":"polli:cursor-inherit",O=t?s("span",{id:E,role:"tooltip","aria-hidden":!f,style:{top:v.top,left:v.left,maxWidth:v.maxWidth,transform:v.transform},className:`${f?"polli:visible polli:opacity-100":"polli:invisible polli:opacity-0"} polli:fixed polli:w-max polli:px-2 polli:py-1 polli:bg-surface-menu polli:text-theme-text-base polli:font-normal polli:leading-snug polli:tracking-normal polli:normal-case polli:not-italic polli:text-xs polli:rounded-md polli:shadow-md polli:z-[130] polli:pointer-events-none polli:transition-opacity polli:whitespace-pre-line polli:break-words`,children:t}):null,L=O&&typeof document<"u"?Qr(O,C.current?.closest('[role="dialog"]')??document.body):O,k=b(Z,{children:[s("span",{className:W,children:e}),L]}),A={"aria-label":r,"aria-describedby":t&&f?E:void 0,className:N,onMouseEnter:()=>{M(),m(!0)},onMouseLeave:()=>{T.current||m(!1)},onClick:S=>{if(c&&S.stopPropagation(),a&&a(),!(!u||!t)){if(M(),T.current){w();return}T.current=!0,m(!0)}},onFocus:()=>{M(),m(!0)},onBlur:w,style:p};if(d==="span"){let _={...A,role:u&&t?"button":void 0,tabIndex:u&&t?0:void 0,onKeyDown:u&&t?R=>{if(!(!u||!t)&&!(R.key!=="Enter"&&R.key!==" ")){if(R.preventDefault(),M(),T.current){w();return}T.current=!0,m(!0)}}:void 0};return s("span",{ref:R=>{C.current=R},..._,children:k})}return s("button",{ref:S=>{C.current=S},type:"button","aria-label":r,"aria-describedby":t&&f?E:void 0,className:N,onMouseEnter:A.onMouseEnter,onMouseLeave:A.onMouseLeave,onClick:A.onClick,onFocus:A.onFocus,onBlur:A.onBlur,style:p,children:k})};function yt({value:e,children:t,copiedTimeoutMs:o=2e3,tooltip:r="\u{1F4CB} Click to copy",tooltipAlign:n,tooltipClampToViewport:i,tooltipMaxWidth:l,copiedTooltip:a="\u2705 Copied!",tooltipClassName:c,className:p,variant:u="plain",intent:d,onCopied:g,onCopyError:f,...m}){let[v,h]=ee(!1),C=$(null);Y(()=>()=>{C.current&&clearTimeout(C.current)},[]);async function T(M){M.stopPropagation();try{let N=typeof e=="function"?await e():e;await navigator.clipboard.writeText(N),h(!0),g?.(),C.current&&clearTimeout(C.current),C.current=setTimeout(()=>h(!1),o)}catch(N){f?.(N)}}let w=s(u==="button"?Ze:"button",{...m,...u==="button"&&d?{intent:d}:{},type:"button",onClick:T,className:x("polli-control",m.disabled?"polli:cursor-not-allowed":"polli:cursor-pointer",typeof p=="function"?p(v):p),children:typeof t=="function"?t(v):t});return r===null?w:s(Je,{triggerAs:"span",content:v?a:r,align:n,clampToViewport:i,maxWidth:l,displayContents:!0,tapEnabled:!1,className:x(m.disabled?"polli:cursor-not-allowed":"polli:cursor-pointer",c),children:w})}var Rp=({code:e,codeClassName:t,language:o,className:r,...n})=>{let i=o||"Code";return b("div",{...n,className:x("polli:min-w-0 polli:max-w-full polli:overflow-hidden polli:rounded-lg polli:border polli:border-theme-border polli:bg-theme-bg-pale",r),children:[b("div",{className:"polli:flex polli:min-h-9 polli:items-center polli:justify-between polli:gap-3 polli:bg-theme-bg-subtle polli:px-3 polli:py-1.5",children:[s("span",{className:"polli:truncate polli:font-mono polli:text-[11px] polli:font-medium polli:uppercase polli:tracking-wide polli:text-theme-text-muted",children:i}),s(yt,{value:e,tooltip:null,"aria-label":"Copy code",className:"polli:flex polli:items-center polli:gap-1.5 polli:rounded-md polli:px-2 polli:py-1 polli:text-xs polli:font-medium polli:text-theme-text-base polli:transition-colors polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",children:l=>b(Z,{children:[l?s(Re,{className:"polli:size-3.5"}):s(jt,{className:"polli:size-3.5"}),s("span",{children:l?"Copied":"Copy"})]})})]}),s("pre",{className:x("polli:m-0 polli:min-w-0 polli:whitespace-pre-wrap polli:break-words polli:[overflow-wrap:anywhere] polli:[tab-size:4] polli:p-3 polli:font-mono polli:text-xs polli:leading-6 polli:text-theme-text-strong",t),children:s("code",{children:e})})]})};var Sp=({label:e,expanded:t,onToggle:o,children:r,disabled:n=!1,wrapperClassName:i,triggerClassName:l,hoverClassName:a="polli:hover:bg-theme-bg-active",focusClassName:c,panelClassName:p="polli:border-t polli:border-theme-border polli:px-3 polli:pt-3 polli:pb-3",ariaLabel:u})=>b("div",{className:x("polli:rounded-lg polli:border polli:transition-all",i,n&&"polli:opacity-50"),children:[b("button",{type:"button","aria-expanded":t,"aria-label":u,disabled:n,onClick:o,className:x("polli-control polli:w-full polli:flex polli:items-center polli:gap-3 polli:px-3 polli:py-2 polli:text-left polli:transition-colors",t?"polli:rounded-t-lg":"polli:rounded-lg",l,!n&&a,c,n?"polli:cursor-not-allowed":"polli:cursor-pointer"),children:[s("div",{className:"polli:flex-1 polli:min-w-0",children:e}),s(de,{expanded:t,className:"polli:text-theme-text-soft"})]}),t&&s("div",{className:p,children:r})]});var d1=ke("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),Ct=d1.build();var qi=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,Ki=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,sn=e=>e.ids?.content??`dialog:${e.id}:content`,an=(e,t)=>{let o=e.ids?.trigger;return o!=null?fe(o)?o(t):o:t?`dialog:${e.id}:trigger:${t}`:`dialog:${e.id}:trigger`},cn=e=>e.ids?.title??`dialog:${e.id}:title`,pn=e=>e.ids?.description??`dialog:${e.id}:description`,Yi=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,jo=e=>e.getById(sn(e)),Op=e=>e.getById(qi(e)),Ap=e=>e.getById(Ki(e)),Xi=e=>e.getById(an(e)),Mp=e=>e.getById(cn(e)),Dp=e=>e.getById(pn(e)),Lp=e=>e.getById(Yi(e)),un=e=>Nr(e.getRootNode(),`[data-scope="dialog"][data-part="trigger"][data-ownedby="${e.id}"]`),Zi=(e,t)=>t==null?Xi(e)??un(e)[0]:e.getById(an(e,t));function Ji(e,t){let{state:o,send:r,context:n,prop:i,scope:l}=e,a=i("aria-label"),c=o.matches("open"),p=n.get("triggerValue");return{open:c,setOpen(u){o.matches("open")!==u&&r({type:u?"OPEN":"CLOSE"})},triggerValue:p,setTriggerValue(u){r({type:"TRIGGER_VALUE.SET",value:u})},getTriggerProps(u={}){let{value:d}=u,g=d==null?!1:p===d;return t.button({...Ct.trigger.attrs,dir:i("dir"),id:an(l,d),"data-ownedby":l.id,"data-value":d,"aria-haspopup":"dialog",type:"button","aria-expanded":d==null?c:c&&g,"data-state":c?"open":"closed","aria-controls":sn(l),"data-current":G(g),onClick(f){if(f.defaultPrevented)return;let m=c&&d!=null&&!g;r({type:m?"TRIGGER_VALUE.SET":"TOGGLE",value:d})}})},getBackdropProps(){return t.element({...Ct.backdrop.attrs,dir:i("dir"),hidden:!c,id:Ki(l),"data-state":c?"open":"closed"})},getPositionerProps(){return t.element({...Ct.positioner.attrs,dir:i("dir"),id:qi(l),style:ut({pointerEvents:!c||!i("modal")?"none":void 0})})},getContentProps(){let u=n.get("rendered");return t.element({...Ct.content.attrs,dir:i("dir"),role:i("role"),hidden:!c,id:sn(l),tabIndex:-1,"data-state":c?"open":"closed","aria-modal":i("modal"),"aria-label":a||void 0,"aria-labelledby":a||!u.title?void 0:cn(l),"aria-describedby":u.description?pn(l):void 0,style:ut({pointerEvents:i("modal")?void 0:"auto"})})},getTitleProps(){return t.element({...Ct.title.attrs,dir:i("dir"),id:cn(l)})},getDescriptionProps(){return t.element({...Ct.description.attrs,dir:i("dir"),id:pn(l)})},getCloseTriggerProps(){return t.button({...Ct.closeTrigger.attrs,dir:i("dir"),id:Yi(l),type:"button",onClick(u){u.defaultPrevented||(u.stopPropagation(),r({type:"CLOSE"}))}})}}}var Qi=Gt({props({props:e,scope:t}){let o=e.role==="alertdialog",r=o?()=>Lp(t):void 0,n=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:n,trapFocus:n,preventScroll:n,closeOnInteractOutside:n&&!o,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e,prop:t,scope:o}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}})),triggerValue:e(()=>({defaultValue:t("defaultTriggerValue")??null,value:t("triggerValue"),onChange(r){let n=t("onTriggerValueChange");if(!n)return;let i=Zi(o,r);n({value:r,triggerElement:i})}}))}},watch({track:e,action:t,prop:o}){e([()=>o("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","setInitialFocus"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"TRIGGER_VALUE.SET":{actions:["setTriggerValue"]}}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],"TRIGGER_VALUE.SET":{actions:["setTriggerValue"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:o}){return go(()=>jo(e),{type:"dialog",defer:!0,pointerBlocking:o("modal"),layerStyleTargets:[()=>Ap(e),()=>Op(e)],exclude:[Xi(e),...un(e)].filter(Boolean),onInteractOutside(n){o("onInteractOutside")?.(n),o("closeOnInteractOutside")||n.preventDefault()},persistentElements:o("persistentElements"),onFocusOutside:o("onFocusOutside"),onPointerDownOutside:o("onPointerDownOutside"),onRequestDismiss:o("onRequestDismiss"),onEscapeKeyDown(n){o("onEscapeKeyDown")?.(n),o("closeOnEscape")||n.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return Zr(e.getDoc())},trapFocus({scope:e,prop:t,context:o}){return t("trapFocus")?Xr(()=>jo(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:n=>{let i=t("finalFocusEl")?.();if(i)return i;let l=o.get("triggerValue");if(l){let c=Zi(e,l);if(c)return c}let a=un(e)[0];return a||n},getShadowRoot:!0}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?Kr(()=>[jo(e)],{defer:!0}):void 0}},actions:{setInitialFocus({prop:e,scope:t}){e("trapFocus")||q(()=>{So({root:jo(t),getInitialEl:e("initialFocusEl")})?.focus({preventScroll:!0})})},checkRenderedElements({context:e,scope:t}){q(()=>{e.set("rendered",{title:!!Mp(t),description:!!Dp(t)})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},setTriggerValue({context:e,event:t}){t.value!==void 0&&e.set("triggerValue",t.value)},toggleVisibility({prop:e,send:t,event:o}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:o})}}}});var[dn,xe]=re({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"});var[mn,Vp]=re({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),fn=e=>ie()(e,["lazyMount","unmountOnExit"]);var el=P((e,t)=>{let o=xe(),r=Ee({...Vp(),present:o.open}),n=I(o.getBackdropProps(),r.getPresenceProps(),e);return r.unmounted?null:s(D.div,{...n,ref:Pe(r.ref,t)})});el.displayName="DialogBackdrop";var tl=P((e,t)=>{let o=I(xe().getCloseTriggerProps(),e);return s(D.button,{...o,ref:t})});tl.displayName="DialogCloseTrigger";var ol=P((e,t)=>{let o=xe(),r=he(),n=I(o.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:s(D.div,{...n,ref:Pe(r.ref,t)})});ol.displayName="DialogContent";var Bp=e=>e.children(xe());var rl=P((e,t)=>{let o=I(xe().getDescriptionProps(),e);return s(D.div,{...o,ref:t})});rl.displayName="DialogDescription";var nl=P((e,t)=>{let o=I(xe().getPositionerProps(),e);return he().unmounted?null:s(D.div,{...o,ref:t})});nl.displayName="DialogPositioner";var Hp=e=>{let t=ue(),{getRootNode:o}=Xe(),{dir:r}=ho(),n={id:t,getRootNode:o,dir:r,...e},i=gt(Qi,n);return Ji(i,ht)};var Wp=e=>{let[t,{children:o,...r}]=Fe(e),[n]=fn(t),i=Hp(r);return s(dn,{value:i,children:s(mn,{value:n,children:s(Le,{value:Ee(I({present:i.open},t)),children:o})})})};var _p=e=>{let[t,{value:o,children:r}]=Fe(e),[n]=fn(t);return s(dn,{value:o,children:s(mn,{value:n,children:s(Le,{value:Ee(I({present:o.open},t)),children:r})})})};var il=P((e,t)=>{let o=I(xe().getTitleProps(),e);return s(D.h2,{...o,ref:t})});il.displayName="DialogTitle";var f1=ie(),ll=P((e,t)=>{let[o,r]=f1(e,["value"]),n=xe(),i=he(),l=n.getTriggerProps(o),a=I({...l,"aria-controls":i.unmounted?void 0:l["aria-controls"]},r);return s(D.button,{...a,ref:t})});ll.displayName="DialogTrigger";var Te=xt({Backdrop:()=>el,CloseTrigger:()=>tl,Content:()=>ol,Context:()=>Bp,Description:()=>rl,Positioner:()=>nl,Root:()=>Wp,RootProvider:()=>_p,Title:()=>il,Trigger:()=>ll});var g1={sm:"polli:max-w-md",md:"polli:max-w-xl",lg:"polli:max-w-[800px]",xl:"polli:max-w-6xl"},gn=({open:e,onOpenChange:t,trigger:o,triggerAsChild:r=!1,triggerClassName:n,title:i,ariaLabel:l,labelledBy:a,size:c="md",showBackdrop:p=!0,backdropBlur:u=!0,positionerClassName:d,contentClassName:g,children:f})=>{let m=$(null);return b(Te.Root,{open:e,initialFocusEl:()=>m.current,onOpenChange:v=>t?.(v.open),children:[o&&s(Te.Trigger,{asChild:r,className:n,children:o}),b($t,{children:[p&&s(Te.Backdrop,{className:x("polli:fixed polli:inset-0 polli:z-[100] polli:bg-[#000]/50",u&&"polli:backdrop-blur-sm")}),s(Te.Positioner,{className:x("polli:fixed polli:inset-0 polli:z-[110] polli:flex polli:h-dvh polli:items-start polli:justify-center polli:overflow-hidden polli:p-0 polli:sm:p-4",d),children:b(Te.Content,{ref:m,"aria-label":l,"aria-labelledby":a,className:x("polli:flex polli:h-dvh polli:max-h-dvh polli:w-full polli:max-sm:max-w-none polli:flex-col polli:overflow-y-auto polli:bg-theme-bg-pale polli:outline-none polli:focus:outline-none polli:focus-visible:outline-none polli:sm:my-auto polli:sm:h-auto polli:sm:max-h-[calc(100dvh-2rem)] polli:sm:rounded-2xl polli:sm:shadow-container",g1[c],g),children:[i&&s(qo,{title:i}),f]})})]})]})},sl=Te.Title,al=Te.Description,qo=({title:e,description:t,children:o,inBody:r=!1,className:n,titleClassName:i,descriptionClassName:l,...a})=>b("div",{className:x(r?"polli:shrink-0 polli:pt-2 polli:pb-4":"polli:shrink-0 polli:p-6 polli:pb-4",n),...a,children:[e&&s(sl,{className:x(Gi("section"),i),children:e}),t&&s(al,{className:x("polli:mt-1 polli:font-body polli:text-sm polli:font-normal polli:leading-5 polli:text-theme-text-base",l),children:t}),o]});function hn({children:e,actions:t,footnote:o,bodyClassName:r,className:n,...i}){return b(Ue,{...i,className:x("polli:flex polli:min-h-0 polli:flex-1 polli:flex-col polli:overscroll-contain",n),children:[s("div",{className:x("polli:grow polli:space-y-4 polli:px-6 polli:py-4",r),children:e}),(t||o)&&b("div",{className:"polli-dialog-floating-controls polli:pointer-events-none polli:sticky polli:bottom-0 polli:z-10",children:[t&&s(cl,{className:"polli:pointer-events-auto",children:t}),o&&s("div",{className:"polli:pointer-events-auto",children:o})]})]})}var cl=({children:e,className:t,...o})=>s("div",{className:x("polli:flex polli:shrink-0 polli:flex-wrap polli:items-center polli:justify-end polli:gap-3 polli:bg-transparent polli:p-6 polli:pt-4",t),...o,children:e});var h1={danger:s(zi,{}),commit:s(Re,{}),info:s(Re,{}),neutral:s(Re,{})};function zp({open:e,title:t,description:o,children:r,confirmLabel:n,intent:i="danger",confirmIcon:l,confirmDisabled:a=!1,cancelDisabled:c=!1,onConfirm:p,onCancel:u,size:d="md"}){let g=b(Z,{children:[s(Ze,{type:"button",intent:"neutral",icon:s(Kt,{}),onClick:u,disabled:c,children:"Cancel"}),s(Ze,{type:"button",intent:i,icon:l??h1[i],onClick:p,disabled:a,children:n})]});return s(gn,{open:e,onOpenChange:f=>!f&&u(),size:d,contentClassName:"polli:overflow-hidden",children:b(hn,{actions:g,children:[s(qo,{inBody:!0,title:t}),o&&s("p",{className:"polli:text-sm polli:leading-relaxed",children:o}),r]})})}var x1={page:"polli:text-sm polli:tracking-widest polli:text-theme-text-soft",card:"polli:text-xs polli:tracking-wider polli:text-theme-text-soft",chrome:"polli:text-micro polli:tracking-widest polli:text-theme-text-muted"};function xn({as:e,size:t="card",className:o,children:r,...n}){return s(e||"span",{...n,className:x("polli:font-pixel polli:uppercase",x1[t],o),children:r})}var b1={page:"polli:font-heading polli:text-4xl polli:leading-[1.08] polli:text-theme-text-strong polli:sm:text-5xl polli:lg:text-7xl",section:"polli:font-subheading polli:text-3xl polli:leading-tight polli:text-theme-text-strong polli:sm:text-4xl"},v1={page:"polli:max-w-lg polli:text-base polli:leading-relaxed polli:text-theme-text-base polli:sm:text-lg",section:"polli:max-w-xl polli:leading-relaxed polli:text-theme-text-base"};function Up({eyebrow:e,title:t,subtitle:o,action:r,variant:n="section",className:i}){let l=n==="page"?"h1":"h2";return b("header",{className:x("polli:flex polli:flex-wrap polli:items-end polli:justify-between polli:gap-6",i),children:[b("div",{className:"polli:flex polli:max-w-2xl polli:flex-col polli:gap-3",children:[s(xn,{size:"page",children:e}),s(l,{className:b1[n],children:t}),o&&s("p",{className:x(v1[n],"polli:[&_strong]:text-theme-text-strong"),children:o})]}),r]})}function Gp({value:e,label:t,display:o,className:r,...n}){return s(yt,{...n,value:e,tooltip:null,"aria-label":t,className:i=>x("polli-input-shell polli:flex polli:min-h-10 polli:w-full polli:cursor-pointer polli:items-center polli:gap-3 polli:rounded-lg polli:border polli:px-3 polli:py-2 polli:text-left polli:font-mono polli:text-xs polli:transition-colors",i?"polli:text-intent-success-text":"polli:text-theme-text-base polli:hover:text-theme-text-strong",r),children:i=>b(Z,{children:[s("span",{className:"polli:min-w-0 polli:flex-1 polli:select-all polli:break-all",children:i?"Copied":o??String(e)}),s("span",{"aria-hidden":"true",className:"polli:flex polli:size-4 polli:shrink-0 polli:[&>svg]:size-full",children:i?s(Re,{}):s(jt,{})})]})})}var y1=Object.defineProperty,C1=(e,t,o)=>t in e?y1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,U=(e,t,o)=>C1(e,typeof t!="symbol"?t+"":t,o);var vn={itemToValue(e){return typeof e=="string"?e:Hr(e)&&Wt(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:Hr(e)&&Wt(e,"label")?e.label:vn.itemToValue(e)},isItemDisabled(e){return Hr(e)&&Wt(e,"disabled")?!!e.disabled:!1}},vo=class $p{constructor(t){U(this,"options",t),U(this,"items"),U(this,"indexMap",null),U(this,"copy",o=>new $p({...this.options,items:o??[...this.items]})),U(this,"isEqual",o=>ao(this.items,o.items)),U(this,"setItems",o=>this.copy(o)),U(this,"getValues",(o=this.items)=>{let r=[];for(let n of o){let i=this.getItemValue(n);i!=null&&r.push(i)}return r}),U(this,"find",o=>{if(o==null)return null;let r=this.indexOf(o);return r!==-1?this.at(r):null}),U(this,"findMany",o=>{let r=[];for(let n of o){let i=this.find(n);i!=null&&r.push(i)}return r}),U(this,"at",o=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[o]??null;let r=0,n=this.group();for(let[,i]of n)for(let l of i){if(r===o)return l;r++}return null}),U(this,"sortFn",(o,r)=>{let n=this.indexOf(o),i=this.indexOf(r);return(n??0)-(i??0)}),U(this,"sort",o=>[...o].sort(this.sortFn.bind(this))),U(this,"getItemValue",o=>o==null?null:this.options.itemToValue?.(o)??vn.itemToValue(o)),U(this,"getItemDisabled",o=>o==null?!1:this.options.isItemDisabled?.(o)??vn.isItemDisabled(o)),U(this,"stringifyItem",o=>o==null?null:this.options.itemToString?.(o)??vn.itemToString(o)),U(this,"stringify",o=>o==null?null:this.stringifyItem(this.find(o))),U(this,"stringifyItems",(o,r=", ")=>{let n=[];for(let i of o){let l=this.stringifyItem(i);l!=null&&n.push(l)}return n.join(r)}),U(this,"stringifyMany",(o,r)=>this.stringifyItems(this.findMany(o),r)),U(this,"has",o=>this.indexOf(o)!==-1),U(this,"hasItem",o=>o==null?!1:this.has(this.getItemValue(o))),U(this,"group",()=>{let{groupBy:o,groupSort:r}=this.options;if(!o)return[["",[...this.items]]];let n=new Map;this.items.forEach((l,a)=>{let c=o(l,a);n.has(c)||n.set(c,[]),n.get(c).push(l)});let i=Array.from(n.entries());return r&&i.sort(([l],[a])=>{if(typeof r=="function")return r(l,a);if(Array.isArray(r)){let c=r.indexOf(l),p=r.indexOf(a);return c===-1?1:p===-1?-1:c-p}return r==="asc"?l.localeCompare(a):r==="desc"?a.localeCompare(l):0}),i}),U(this,"getNextValue",(o,r=1,n=!1)=>{let i=this.indexOf(o);if(i===-1)return null;for(i=n?Math.min(i+r,this.size-1):i+r;i<=this.size&&this.getItemDisabled(this.at(i));)i++;return this.getItemValue(this.at(i))}),U(this,"getPreviousValue",(o,r=1,n=!1)=>{let i=this.indexOf(o);if(i===-1)return null;for(i=n?Math.max(i-r,0):i-r;i>=0&&this.getItemDisabled(this.at(i));)i--;return this.getItemValue(this.at(i))}),U(this,"indexOf",o=>{if(o==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(r=>this.getItemValue(r)===o);if(!this.indexMap){this.indexMap=new Map;let r=0,n=this.group();for(let[,i]of n)for(let l of i){let a=this.getItemValue(l);a!=null&&this.indexMap.set(a,r),r++}}return this.indexMap.get(o)??-1}),U(this,"getByText",(o,r)=>{let n=r!=null?this.indexOf(r):-1,i=o.length===1;for(let l=0;l<this.items.length;l++){let a=this.items[(n+l+1)%this.items.length];if(!(i&&this.getItemValue(a)===r)&&!this.getItemDisabled(a)&&w1(this.stringifyItem(a),o))return a}}),U(this,"search",(o,r)=>{let{state:n,currentValue:i,timeout:l=350}=r,a=n.keysSoFar+o,p=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,u=this.getByText(p,i),d=this.getItemValue(u);function g(){clearTimeout(n.timer),n.timer=-1}function f(m){n.keysSoFar=m,g(),m!==""&&(n.timer=+setTimeout(()=>{f(""),g()},l))}return f(a),d}),U(this,"update",(o,r)=>{let n=this.indexOf(o);return n===-1?this:this.copy([...this.items.slice(0,n),r,...this.items.slice(n+1)])}),U(this,"upsert",(o,r,n="append")=>{let i=this.indexOf(o);return i===-1?(n==="append"?this.append:this.prepend)(r):this.copy([...this.items.slice(0,i),r,...this.items.slice(i+1)])}),U(this,"insert",(o,...r)=>this.copy(Ko(this.items,o,...r))),U(this,"insertBefore",(o,...r)=>{let n=this.indexOf(o);if(n===-1)if(this.items.length===0)n=0;else return this;return this.copy(Ko(this.items,n,...r))}),U(this,"insertAfter",(o,...r)=>{let n=this.indexOf(o);if(n===-1)if(this.items.length===0)n=0;else return this;return this.copy(Ko(this.items,n+1,...r))}),U(this,"prepend",(...o)=>this.copy(Ko(this.items,0,...o))),U(this,"append",(...o)=>this.copy(Ko(this.items,this.items.length,...o))),U(this,"filter",o=>{let r=this.items.filter((n,i)=>o(this.stringifyItem(n),i,n));return this.copy(r)}),U(this,"remove",(...o)=>{let r=o.map(n=>typeof n=="string"?n:this.getItemValue(n));return this.copy(this.items.filter(n=>{let i=this.getItemValue(n);return i==null?!1:!r.includes(i)}))}),U(this,"move",(o,r)=>{let n=this.indexOf(o);return n===-1?this:this.copy(bn(this.items,[n],r))}),U(this,"moveBefore",(o,...r)=>{let n=this.items.findIndex(l=>this.getItemValue(l)===o);if(n===-1)return this;let i=r.map(l=>this.items.findIndex(a=>this.getItemValue(a)===l)).sort((l,a)=>l-a);return this.copy(bn(this.items,i,n))}),U(this,"moveAfter",(o,...r)=>{let n=this.items.findIndex(l=>this.getItemValue(l)===o);if(n===-1)return this;let i=r.map(l=>this.items.findIndex(a=>this.getItemValue(a)===l)).sort((l,a)=>l-a);return this.copy(bn(this.items,i,n+1))}),U(this,"reorder",(o,r)=>this.copy(bn(this.items,[o],r))),U(this,"compareValue",(o,r)=>{let n=this.indexOf(o),i=this.indexOf(r);return n<i?-1:n>i?1:0}),U(this,"range",(o,r)=>{let n=[],i=o;for(;i!=null;){if(this.find(i)&&n.push(i),i===r)return n;i=this.getNextValue(i)}return[]}),U(this,"getValueRange",(o,r)=>o&&r?this.compareValue(o,r)<=0?this.range(o,r):this.range(r,o):[]),U(this,"toString",()=>{let o="";for(let r of this.items){let n=this.getItemValue(r),i=this.stringifyItem(r),l=this.getItemDisabled(r),a=[n,i,l].filter(Boolean).join(":");o+=a+","}return o}),U(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let t=0;for(;this.getItemDisabled(this.at(t));)t++;return this.getItemValue(this.at(t))}get lastValue(){let t=this.size-1;for(;this.getItemDisabled(this.at(t));)t--;return this.getItemValue(this.at(t))}*[Symbol.iterator](){yield*this.items}},w1=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function Ko(e,t,...o){return[...e.slice(0,t),...o,...e.slice(t)]}function bn(e,t,o){t=[...t].sort((n,i)=>n-i);let r=t.map(n=>e[n]);for(let n=t.length-1;n>=0;n--)e=[...e.slice(0,t[n]),...e.slice(t[n]+1)];return o=Math.max(0,o-t.filter(n=>n<o).length),[...e.slice(0,o),...r,...e.slice(o)]}function yn({values:e,collection:t,selectedItemMap:o}){let r=[];for(let n of e){let i=t.find(n)??o.get(n);i!=null&&r.push(i)}return r}function pl({selectedItemMap:e,values:t,selectedItems:o,collection:r}){let n=new Map(e);for(let l of o){let a=r.getItemValue(l);a!=null&&n.set(a,l)}let i=new Set(t);for(let l of n.keys())i.has(l)||n.delete(l);return n}function Yo({values:e,collection:t,selectedItemMap:o}){let r=yn({values:e,collection:t,selectedItemMap:o}),n=pl({selectedItemMap:o,values:e,selectedItems:r,collection:t});return{selectedItems:r,nextSelectedItemMap:n}}function ul({selectedItems:e,collection:t}){return pl({selectedItemMap:new Map,values:e.map(o=>t.getItemValue(o)).filter(Boolean),selectedItems:e,collection:t})}var dl=e=>new vo(e);var Cn=ke("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger"),Ce=Cn.build();var ml=e=>new vo(e);ml.empty=()=>new vo({items:[]});var jp=e=>e.ids?.root??`combobox:${e.id}`,wn=e=>e.ids?.label??`combobox:${e.id}:label`,fl=e=>e.ids?.control??`combobox:${e.id}:control`,Xo=e=>e.ids?.input??`combobox:${e.id}:input`,Zo=e=>e.ids?.content??`combobox:${e.id}:content`,gl=e=>e.ids?.positioner??`combobox:${e.id}:popper`,hl=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,xl=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,qp=(e,t)=>e.ids?.itemGroup?.(t)??`combobox:${e.id}:optgroup:${t}`,bl=(e,t)=>e.ids?.itemGroupLabel?.(t)??`combobox:${e.id}:optgroup-label:${t}`,vl=(e,t)=>e.ids?.item?.(t)??`combobox:${e.id}:option:${t}`,wt=e=>e.getById(Zo(e)),Pt=e=>e.getById(Xo(e)),yl=e=>e.getById(gl(e)),Cl=e=>e.getById(fl(e)),Yt=e=>e.getById(hl(e)),Kp=e=>e.getById(xl(e)),Et=(e,t)=>{if(t==null)return null;let o=`[role=option][data-value="${CSS.escape(t)}"]`;return aa(wt(e),o)},Jo=e=>{let t=Pt(e);e.isActiveElement(t)||t?.focus({preventScroll:!0}),vr(t)},Yp=e=>{let t=Yt(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})};function wl(e,t){let{context:o,prop:r,state:n,send:i,scope:l,computed:a,event:c}=e,p=r("translations"),u=r("collection"),d=!!r("disabled"),g=a("isInteractive"),f=!!r("invalid"),m=!!r("required"),v=!!r("readOnly"),h=n.hasTag("open"),C=n.hasTag("focused"),T=r("composite"),E=o.get("highlightedValue"),w=o.get("currentPlacement"),M=w?Vo(w):void 0,N=Bo({...r("positioning"),placement:w});function W(y){let O=u.getItemDisabled(y.item),L=u.getItemValue(y.item);return _t(L,()=>`[zag-js] No value found for item ${JSON.stringify(y.item)}`),{value:L,disabled:!!(d||O),highlighted:E===L,selected:o.get("value").includes(L)}}return{focused:C,open:h,inputValue:o.get("inputValue"),highlightedValue:E,highlightedItem:o.get("highlightedItem"),value:o.get("value"),valueAsString:a("valueAsString"),hasSelectedItems:a("hasSelectedItems"),selectedItems:a("selectedItems"),collection:r("collection"),multiple:!!r("multiple"),disabled:!!d,syncSelectedItems(){i({type:"SELECTED_ITEMS.SYNC"})},reposition(y={}){i({type:"POSITIONING.SET",options:y})},setHighlightValue(y){i({type:"HIGHLIGHTED_VALUE.SET",value:y})},clearHighlightValue(){i({type:"HIGHLIGHTED_VALUE.CLEAR"})},selectValue(y){i({type:"ITEM.SELECT",value:y})},setValue(y){i({type:"VALUE.SET",value:y})},setInputValue(y,O="script"){i({type:"INPUT_VALUE.SET",value:y,src:O})},clearValue(y){y!=null?i({type:"ITEM.CLEAR",value:y}):i({type:"VALUE.CLEAR"})},focus(){Pt(l)?.focus()},setOpen(y,O="script"){n.hasTag("open")!==y&&i({type:y?"OPEN":"CLOSE",src:O})},getRootProps(){return t.element({...Ce.root.attrs,dir:r("dir"),id:jp(l),"data-invalid":G(f),"data-readonly":G(v)})},getLabelProps(){return t.label({...Ce.label.attrs,dir:r("dir"),htmlFor:Xo(l),id:wn(l),"data-readonly":G(v),"data-disabled":G(d),"data-invalid":G(f),"data-required":G(m),"data-focus":G(C),onClick(y){T||(y.preventDefault(),Yt(l)?.focus({preventScroll:!0}))}})},getControlProps(){return t.element({...Ce.control.attrs,dir:r("dir"),id:fl(l),"data-state":h?"open":"closed","data-focus":G(C),"data-disabled":G(d),"data-invalid":G(f)})},getPositionerProps(){return t.element({...Ce.positioner.attrs,dir:r("dir"),id:gl(l),style:N.floating})},getInputProps(){return t.input({...Ce.input.attrs,dir:r("dir"),"aria-invalid":et(f),"data-invalid":G(f),"data-autofocus":G(r("autoFocus")),name:r("name"),form:r("form"),disabled:d,required:r("required"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"none",spellCheck:"false",readOnly:v,placeholder:r("placeholder"),id:Xo(l),type:"text",role:"combobox",defaultValue:o.get("inputValue"),"aria-autocomplete":a("autoComplete")?"both":"list","aria-controls":Zo(l),"aria-expanded":h,"data-state":h?"open":"closed","aria-activedescendant":E?vl(l,E):void 0,onClick(y){y.defaultPrevented||r("openOnClick")&&g&&i({type:"INPUT.CLICK",src:"input-click"})},onFocus(){d||i({type:"INPUT.FOCUS"})},onBlur(){d||i({type:"INPUT.BLUR"})},onChange(y){i({type:"INPUT.CHANGE",value:y.currentTarget.value,src:"input-change"})},onKeyDown(y){if(y.defaultPrevented||!g||y.ctrlKey||y.shiftKey||Zs(y))return;let O=r("openOnKeyPress"),L=y.ctrlKey||y.metaKey||y.shiftKey,k=!0,A={ArrowDown(R){!O&&!h||(i({type:R.altKey?"OPEN":"INPUT.ARROW_DOWN",keypress:k,src:"arrow-key"}),R.preventDefault())},ArrowUp(){!O&&!h||(i({type:y.altKey?"CLOSE":"INPUT.ARROW_UP",keypress:k,src:"arrow-key"}),y.preventDefault())},Home(R){L||(i({type:"INPUT.HOME",keypress:k}),h&&R.preventDefault())},End(R){L||(i({type:"INPUT.END",keypress:k}),h&&R.preventDefault())},Enter(R){i({type:"INPUT.ENTER",keypress:k,src:"item-select"});let z=E!=null,K=r("alwaysSubmitOnEnter"),V=a("isCustomValue")&&!r("allowCustomValue");if(h&&!K&&(z||V)&&R.preventDefault(),E==null)return;let be=Et(l,E);Fs(be)&&r("navigate")?.({value:E,node:be,href:be.href})},Escape(){i({type:"INPUT.ESCAPE",keypress:k,src:"escape-key"}),y.preventDefault()}},S=Kn(y,{dir:r("dir")}),_=A[S];_?.(y)}})},getTriggerProps(y={}){return t.button({...Ce.trigger.attrs,dir:r("dir"),id:hl(l),"aria-haspopup":T?"listbox":"dialog",type:"button",tabIndex:y.focusable?void 0:-1,"aria-label":p.triggerLabel,"aria-expanded":h,"data-state":h?"open":"closed","aria-controls":h?Zo(l):void 0,disabled:d,"data-invalid":G(f),"data-focusable":G(y.focusable),"data-readonly":G(v),"data-disabled":G(d),onFocus(){y.focusable&&i({type:"INPUT.FOCUS",src:"trigger"})},onClick(O){O.defaultPrevented||g&&St(O)&&i({type:"TRIGGER.CLICK",src:"trigger-click"})},onPointerDown(O){g&&O.pointerType!=="touch"&&St(O)&&(O.preventDefault(),queueMicrotask(()=>{Jo(l)}))},onKeyDown(O){if(O.defaultPrevented||T)return;let L={ArrowDown(){i({type:"INPUT.ARROW_DOWN",src:"arrow-key"})},ArrowUp(){i({type:"INPUT.ARROW_UP",src:"arrow-key"})}},k=Kn(O,{dir:r("dir")}),A=L[k];A&&(A(O),O.preventDefault())}})},getContentProps(){return t.element({...Ce.content.attrs,dir:r("dir"),id:Zo(l),role:T?"listbox":"dialog",tabIndex:-1,hidden:!h,"data-state":h?"open":"closed","data-placement":w,"data-side":M,"aria-labelledby":wn(l),"aria-multiselectable":r("multiple")&&T?!0:void 0,"data-empty":G(u.size===0),onPointerDown(y){St(y)&&y.preventDefault()}})},getListProps(){return t.element({...Ce.list.attrs,role:T?void 0:"listbox","data-empty":G(u.size===0),"aria-labelledby":wn(l),"aria-multiselectable":r("multiple")&&!T?!0:void 0})},getClearTriggerProps(){return t.button({...Ce.clearTrigger.attrs,dir:r("dir"),id:xl(l),type:"button",tabIndex:-1,disabled:d,"data-invalid":G(f),"aria-label":p.clearTriggerLabel,"aria-controls":Xo(l),hidden:!o.get("value").length,onPointerDown(y){St(y)&&y.preventDefault()},onClick(y){y.defaultPrevented||g&&i({type:"VALUE.CLEAR",src:"clear-trigger"})}})},getItemState:W,getItemProps(y){let O=W(y),L=O.value;return t.element({...Ce.item.attrs,dir:r("dir"),id:vl(l,L),role:"option",tabIndex:-1,"data-highlighted":G(O.highlighted),"data-state":O.selected?"checked":"unchecked","aria-selected":et(O.selected),"aria-disabled":et(O.disabled),"data-disabled":G(O.disabled),"data-value":O.value,onPointerMove(){O.disabled||O.highlighted||i({type:"ITEM.POINTER_MOVE",value:L})},onPointerLeave(){y.persistFocus||O.disabled||!c.previous()?.type.includes("POINTER")||i({type:"ITEM.POINTER_LEAVE",value:L})},onClick(k){Xs(k)||Ys(k)||Pr(k)||O.disabled||i({type:"ITEM.CLICK",src:"item-select",value:L})}})},getItemTextProps(y){let O=W(y);return t.element({...Ce.itemText.attrs,dir:r("dir"),"data-state":O.selected?"checked":"unchecked","data-disabled":G(O.disabled),"data-highlighted":G(O.highlighted)})},getItemIndicatorProps(y){let O=W(y);return t.element({"aria-hidden":!0,...Ce.itemIndicator.attrs,dir:r("dir"),"data-state":O.selected?"checked":"unchecked",hidden:!O.selected})},getItemGroupProps(y){let{id:O}=y;return t.element({...Ce.itemGroup.attrs,dir:r("dir"),id:qp(l,O),"aria-labelledby":bl(l,O),"data-empty":G(u.size===0),role:"group"})},getItemGroupLabelProps(y){let{htmlFor:O}=y;return t.element({...Ce.itemGroupLabel.attrs,dir:r("dir"),id:bl(l,O),role:"presentation"})}}}function P1(e){return!(e.metaKey||!Rt()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var E1=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function T1(e,t,o){let r=o?me(o):null,n=Q(r),i=te(r),l=He(n);return e=e||l instanceof i.HTMLInputElement&&!E1.has(l?.type)||l instanceof i.HTMLTextAreaElement||l instanceof i.HTMLElement&&l.isContentEditable,!(e&&t==="keyboard"&&o instanceof i.KeyboardEvent&&!Reflect.has(I1,o.key))}var rt=null,Pl=new Set,Pn=new Map,Xt=!1,El=!1,Jp=!1,I1={Tab:!0,Escape:!0};function Tn(e,t){for(let o of Pl)o(e,t)}function En(e){Xt=!0,P1(e)&&(rt="keyboard",Tn("keyboard",e))}function Ve(e){rt="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Xt=!0,Tn("pointer",e))}function Qp(e){Js(e)&&(Xt=!0,rt="virtual")}function eu(e){let t=me(e);t===te(t)||t===Q(t)||Jp||!e.isTrusted||(!Xt&&!El&&(rt="virtual",Tn("virtual",e)),Xt=!1,El=!1)}function tu(){Jp||(Xt=!1,El=!0)}function N1(e){if(typeof window>"u"||Pn.get(te(e)))return;let t=te(e),o=Q(e),r=t.HTMLElement.prototype.focus;function n(){Xt=!0,r.apply(this,arguments)}try{Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:n})}catch{}o.addEventListener("keydown",En,!0),o.addEventListener("keyup",En,!0),o.addEventListener("click",Qp,!0),t.addEventListener("focus",eu,!0),t.addEventListener("blur",tu,!1),typeof t.PointerEvent<"u"?(o.addEventListener("pointerdown",Ve,!0),o.addEventListener("pointermove",Ve,!0),o.addEventListener("pointerup",Ve,!0)):(o.addEventListener("mousedown",Ve,!0),o.addEventListener("mousemove",Ve,!0),o.addEventListener("mouseup",Ve,!0)),t.addEventListener("beforeunload",()=>{k1(e)},{once:!0}),Pn.set(t,{focus:r})}var k1=(e,t)=>{let o=te(e),r=Q(e);t&&r.removeEventListener("DOMContentLoaded",t);let n=Pn.get(o);if(n){try{Object.defineProperty(o.HTMLElement.prototype,"focus",{configurable:!0,value:n.focus})}catch{}r.removeEventListener("keydown",En,!0),r.removeEventListener("keyup",En,!0),r.removeEventListener("click",Qp,!0),o.removeEventListener("focus",eu,!0),o.removeEventListener("blur",tu,!1),typeof o.PointerEvent<"u"?(r.removeEventListener("pointerdown",Ve,!0),r.removeEventListener("pointermove",Ve,!0),r.removeEventListener("pointerup",Ve,!0)):(r.removeEventListener("mousedown",Ve,!0),r.removeEventListener("mousemove",Ve,!0),r.removeEventListener("mouseup",Ve,!0)),Pn.delete(o)}};function ou(){return rt}function ru(e){rt=e,Tn(e,null)}function Zp(){return rt==="keyboard"||rt==="virtual"}function nu(e={}){let{isTextInput:t,autoFocus:o,onChange:r,root:n}=e;N1(n),r?.({isFocusVisible:o||Zp(),modality:rt});let i=(l,a)=>{T1(!!t,l,a)&&r?.({isFocusVisible:Zp(),modality:l})};return Pl.add(i),()=>{Pl.delete(i)}}var In="__live-region__",Tl="__live-region-debug__",R1="position:fixed;inset-inline:0;bottom:0;z-index:2147483647;padding:12px 16px;background:black;color:white;font-size:14px;line-height:20px;text-align:center;pointer-events:none;";function iu(e={}){let{level:t="polite",document:o=document,root:r,delay:n=0,debug:i=!1}=e,l=o.defaultView??window,a=r??o.body;function c(){if(!i)return;let d=o.getElementById(Tl);return d||(d=o.createElement("div"),d.id=Tl,d.dataset.liveAnnouncerDebug="true",d.setAttribute("aria-hidden","true"),d.style.cssText=R1,a.appendChild(d),d)}function p(d,g){o.getElementById(In)?.remove(),g=g??n;let m=o.createElement("span");m.id=In,m.dataset.liveAnnouncer="true";let v=t!=="assertive"?"status":"alert";m.setAttribute("aria-live",t),m.setAttribute("role",v),Object.assign(m.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}),a.appendChild(m),l.setTimeout(()=>{if(!m.isConnected)return;m.textContent=d;let h=c();h&&(h.textContent=d)},g)}function u(){o.getElementById(In)?.remove(),o.getElementById(Tl)?.remove()}return{announce:p,destroy:u,toJSON(){return In}}}var{guards:S1,createMachine:O1,choose:A1}=Dc(),{and:Ie,not:Zt}=S1,Il=O1({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],defaultInputValue:"",closeOnSelect:!e.multiple,allowCustomValue:!1,alwaysSubmitOnEnter:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){la(t)},collection:ml.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open.suggesting":"closed.idle"},context({prop:e,bindable:t,getContext:o,getEvent:r}){let n=e("value")??e("defaultValue")??[],i=e("collection").findMany(n);return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:ao,hash(l){return l.join(",")},onChange(l){let a=o(),c=e("collection"),p=a.get("selectedItemMap"),u=Yo({values:l,collection:c,selectedItemMap:p}),d=e("value")??l,g=d===l?u:Yo({values:d,collection:c,selectedItemMap:u.nextSelectedItemMap});a.set("selectedItemMap",g.nextSelectedItemMap),e("onValueChange")?.({value:l,items:u.selectedItems})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(l){let a=e("collection").find(l);e("onHighlightChange")?.({highlightedValue:l,highlightedItem:a})}})),inputValue:t(()=>{let l=e("inputValue")||e("defaultInputValue"),a=e("value")||e("defaultValue");if(!l.trim()&&!e("multiple")){let c=e("collection").stringifyMany(a);l=Ke(e("selectionBehavior"),{preserve:l||c,replace:c,clear:""})}return{defaultValue:l,value:e("inputValue"),onChange(c){let p=r(),u=(p.previousEvent||p).src;e("onInputValueChange")?.({inputValue:c,reason:u})}}}),highlightedItem:t(()=>{let l=e("highlightedValue");return{defaultValue:e("collection").find(l)}}),selectedItemMap:t(()=>({defaultValue:ul({selectedItems:i,collection:e("collection")})}))}},computed:{isInputValueEmpty:({context:e})=>e.get("inputValue").length===0,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>e("inputBehavior")==="autocomplete",autoHighlight:({prop:e})=>e("inputBehavior")==="autohighlight",hasSelectedItems:({context:e})=>e.get("value").length>0,selectedItems:({context:e,prop:t})=>yn({values:e.get("value"),collection:t("collection"),selectedItemMap:e.get("selectedItemMap")}),valueAsString:({computed:e,prop:t})=>t("collection").stringifyItems(e("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:o,action:r,send:n}){o([()=>e.hash("value")],()=>{r(["syncSelectedItems"])}),o([()=>e.get("inputValue")],()=>{r(["syncInputValue"])}),o([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem","autofillInputValue","announceHighlightedItem"])}),o([()=>t("open")],()=>{r(["toggleVisibility"])}),o([()=>t("collection").toString()],()=>{n({type:"CHILDREN_CHANGE"})})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:A1([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{closed:{tags:["closed"],initial:"idle",states:{idle:{tags:["idle"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"open.interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open.interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"open.suggesting"},{target:"open.interacting"}],"INPUT.CHANGE":[{guard:Ie("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"open.suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:Ie("isCustomValue",Zt("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:Ie("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"open.interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:Ie("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"open.interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open.interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}}}},open:{tags:["open","focused"],entry:["setInitialFocus"],effects:["trackFocusVisible","scrollToHighlightedItem","trackDismissableLayer","trackPlacement","trackLiveRegion"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"closed.focused",actions:["setFinalFocus"]},{target:"closed.idle"}],"INPUT.ENTER":[{guard:Ie("isOpenControlled","isCustomValue",Zt("hasHighlightedItem"),Zt("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Ie("isCustomValue",Zt("hasHighlightedItem"),Zt("allowCustomValue")),target:"closed.focused",actions:["revertInputValue","invokeOnClose"]},{guard:Ie("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"closed.focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"ITEM.CLICK":[{guard:Ie("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"closed.focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:Ie("isOpenControlled","isCustomValue",Zt("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Ie("isCustomValue",Zt("allowCustomValue")),target:"closed.idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"closed.focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]},initial:"interacting",states:{interacting:{on:{CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:Ie("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:Ie("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.ESCAPE":[{guard:Ie("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"closed.focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.focused",actions:["invokeOnClose","setFinalFocus"]}]}},suggesting:{on:{CHILDREN_CHANGE:[{guard:Ie("isHighlightedItemRemoved","hasCollectionItems","autoHighlight"),actions:["clearHighlightedValue","highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{guard:"autoHighlight",actions:["highlightFirstItem"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]}}}}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>e("open")!=null,openOnChange:({prop:e,context:t})=>{let o=e("openOnChange");return tc(o)?o:!!o?.({inputValue:t.get("inputValue")})},restoreFocus:({event:e})=>{let t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null?!0:!!t},isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue")),hasCollectionItems:({prop:e})=>e("collection").size>0},effects:{trackFocusVisible({scope:e}){return nu({root:e.getRootNode?.()})},trackDismissableLayer({send:e,prop:t,scope:o}){return t("disableLayer")?void 0:go(()=>wt(o),{type:"listbox",defer:!0,exclude:()=>[Pt(o),Yt(o),Kp(o)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(n){n.preventDefault(),n.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},trackLiveRegion({refs:e,scope:t}){let o=iu({level:"assertive",document:t.getDoc()});return e.set("liveRegion",o),()=>o.destroy()},trackPlacement({context:e,prop:t,scope:o}){let r=()=>Cl(o)||Yt(o),n=()=>yl(o);return e.set("currentPlacement",t("positioning").placement),zt(r,n,{...t("positioning"),defer:!0,onComplete(i){e.set("currentPlacement",i.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:o}){let r=Pt(o),n=[],i=c=>{if(ou()==="pointer")return;let u=e.get("highlightedValue");if(!u)return;let d=wt(o),g=t("scrollToIndexFn");if(g){let v=t("collection").indexOf(u);g({index:v,immediate:c,getElement:()=>Et(o,u)});return}let f=Et(o,u),m=q(()=>{Zn(f,{rootEl:d,block:"nearest"})});n.push(m)},l=q(()=>{ru("virtual"),i(!0)});n.push(l);let a=ia(r,{attributes:["aria-activedescendant"],callback:()=>i(!1)});return n.push(a),()=>{n.forEach(c=>c())}}},actions:{reposition({context:e,prop:t,scope:o,event:r}){zt(()=>Cl(o),()=>yl(o),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(l){e.set("currentPlacement",l.placement)}})},setHighlightedValue({context:e,event:t}){t.value!=null&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){let{context:t,prop:o}=e,r=o("collection"),n=t.get("highlightedValue");if(!n||!r.has(n))return;let i=o("multiple")?ri(t.get("value"),n):[n];o("onSelect")?.({value:i,itemValue:n}),t.set("value",i);let l=Ke(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(i),clear:""});t.set("inputValue",l)},scrollToHighlightedItem({context:e,prop:t,scope:o}){ro(()=>{let r=e.get("highlightedValue");if(r==null)return;let n=Et(o,r),i=wt(o),l=t("scrollToIndexFn");if(l){let a=t("collection").indexOf(r);l({index:a,immediate:!0,getElement:()=>Et(o,r)});return}Zn(n,{rootEl:i,block:"nearest"})})},selectItem(e){let{context:t,event:o,flush:r,prop:n}=e;o.value!=null&&r(()=>{let i=n("multiple")?ri(t.get("value"),o.value):[o.value];n("onSelect")?.({value:i,itemValue:o.value}),t.set("value",i);let l=Ke(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:n("collection").stringifyMany(i),clear:""});t.set("inputValue",l)})},clearItem(e){let{context:t,event:o,flush:r,prop:n}=e;o.value!=null&&r(()=>{let i=oi(t.get("value"),o.value);t.set("value",i);let l=Ke(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:n("collection").stringifyMany(i),clear:""});t.set("inputValue",l)})},setInitialFocus({scope:e}){q(()=>{Jo(e)})},setFinalFocus({scope:e}){q(()=>{Yt(e)?.dataset.focusable==null?Jo(e):Yp(e)})},syncInputValue({context:e,scope:t,event:o}){let r=Pt(t);r&&(r.value=e.get("inputValue"),queueMicrotask(()=>{o.current().type!=="INPUT.CHANGE"&&vr(r)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:o}){let r=t("selectionBehavior"),n=Ke(r,{replace:o("hasSelectedItems")?o("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",n)},setValue(e){let{context:t,flush:o,event:r,prop:n}=e;o(()=>{t.set("value",r.value);let i=Ke(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:n("collection").stringifyMany(r.value),clear:""});t.set("inputValue",i)})},clearSelectedItems(e){let{context:t,flush:o,prop:r}=e;o(()=>{t.set("value",[]);let n=Ke(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",n)})},scrollContentToTop({prop:e,scope:t}){let o=e("scrollToIndexFn");if(o){let r=e("collection").firstValue;o({index:0,immediate:!0,getElement:()=>Et(t,r)})}else{let r=wt(t);if(!r)return;r.scrollTop=0}},invokeOnOpen({prop:e,event:t,context:o}){let r=lu(t);e("onOpenChange")?.({open:!0,reason:r,value:o.get("value")})},invokeOnClose({prop:e,event:t,context:o}){let r=lu(t);e("onOpenChange")?.({open:!1,reason:r,value:o.get("value")})},highlightFirstItem({context:e,prop:t,scope:o}){(wt(o)?queueMicrotask:q)(()=>{let n=t("collection").firstValue;n&&e.set("highlightedValue",n)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:o}){(wt(o)?queueMicrotask:q)(()=>{let n=t("collection").lastValue;n&&e.set("highlightedValue",n)})},highlightNextItem({context:e,prop:t}){let o=null,r=e.get("highlightedValue"),n=t("collection");r?(o=n.getNextValue(r),!o&&t("loopFocus")&&(o=n.firstValue)):o=n.firstValue,o&&e.set("highlightedValue",o)},highlightPrevItem({context:e,prop:t}){let o=null,r=e.get("highlightedValue"),n=t("collection");r?(o=n.getPreviousValue(r),!o&&t("loopFocus")&&(o=n.lastValue)):o=n.lastValue,o&&e.set("highlightedValue",o)},highlightFirstSelectedItem({context:e,prop:t}){q(()=>{let[o]=t("collection").sort(e.get("value"));o&&e.set("highlightedValue",o)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:o}){q(()=>{let r=null;o("hasSelectedItems")?r=t("collection").sort(e.get("value"))[0]:r=t("collection").firstValue,r&&e.set("highlightedValue",r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:o}){q(()=>{let r=t("collection"),n=null;o("hasSelectedItems")?n=r.sort(e.get("value"))[0]:n=r.lastValue,n&&e.set("highlightedValue",n)})},autofillInputValue({context:e,computed:t,prop:o,event:r,scope:n}){let i=Pt(n),l=o("collection");if(!t("autoComplete")||!i||!r.keypress)return;let a=l.stringify(e.get("highlightedValue"));q(()=>{i.value=a||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{let{context:t,prop:o}=e,r=o("collection"),n=t.get("value"),i=t.get("selectedItemMap"),l=Yo({values:n,collection:r,selectedItemMap:i});t.set("selectedItemMap",l.nextSelectedItemMap);let a=Ke(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(n),clear:""});t.set("inputValue",a)})},syncHighlightedItem({context:e,prop:t}){let o=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",o)},announceHighlightedItem({context:e,prop:t,refs:o}){if(!qn())return;let r=e.get("highlightedValue"),n=r?t("collection").stringifyItem(t("collection").find(r)):null;if(!n)return;let i=r?e.get("value").includes(r):!1;o.get("liveRegion")?.announce(i?`${n}, selected`:n)},toggleVisibility({event:e,send:t,prop:o}){t({type:o("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function lu(e){return(e.previousEvent||e).src}var su=Cn.extendWith("empty");var[Nn,X]=re({name:"ComboboxContext",hookName:"useComboboxContext",providerName:"<ComboboxProvider />"});var Nl=P((e,t)=>{let o=I(X().getClearTriggerProps(),e);return s(D.button,{...o,ref:t})});Nl.displayName="ComboboxClearTrigger";var kl=P((e,t)=>{let o=X(),r=he(),n=I(o.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:s(D.div,{...n,ref:Pe(r.ref,t)})});kl.displayName="ComboboxContent";var D1=su.build(),Rl=P((e,t)=>X().collection.size!==0?null:s(D.div,{...D1.empty.attrs,...e,role:"presentation",ref:t}));Rl.displayName="ComboboxEmpty";var au=e=>e.children(X());var Sl=P((e,t)=>{let o=I(X().getControlProps(),e);return s(D.div,{...o,ref:t})});Sl.displayName="ComboboxControl";var[yo,le]=re({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1});var Ol=P((e,t)=>{let o=I(X().getInputProps(),e),r=le();return s(D.input,{"aria-describedby":r?.ariaDescribedby,...o,ref:t})});Ol.displayName="ComboboxInput";var[cu,pu]=re({name:"ComboboxItemContext",hookName:"useComboboxItemContext",providerName:"<ComboboxItemProvider />"});var[uu,kn]=re({name:"ComboboxItemPropsContext",hookName:"useComboboxItemPropsContext",providerName:"<ComboboxItemPropsProvider />"});var L1=ie(),Al=P((e,t)=>{let[o,r]=L1(e,["item","persistFocus"]),n=X(),i=I(n.getItemProps(o),r);return s(uu,{value:o,children:s(cu,{value:n.getItemState(o),children:s(D.div,{...i,ref:t})})})});Al.displayName="ComboboxItem";var du=e=>e.children(pu());var[mu,fu]=re({name:"ComboboxItemGroupPropsContext",hookName:"useComboboxItemGroupPropsContext",providerName:"<ComboboxItemGroupPropsProvider />"});var F1=ie(),Ml=P((e,t)=>{let o=ue(),[r,n]=F1(e,["id"]),i={id:o,...r},l=I(X().getItemGroupProps(i),n);return s(mu,{value:i,children:s(D.div,{...l,ref:t})})});Ml.displayName="ComboboxItemGroup";var Dl=P((e,t)=>{let o=X(),r=fu(),n=I(o.getItemGroupLabelProps({htmlFor:r.id}),e);return s(D.div,{...n,ref:t})});Dl.displayName="ComboboxItemGroupLabel";var Ll=P((e,t)=>{let o=X(),r=kn(),n=I(o.getItemIndicatorProps(r),e);return s(D.div,{...n,ref:t})});Ll.displayName="ComboboxItemIndicator";var Fl=P((e,t)=>{let o=X(),r=kn(),n=I(o.getItemTextProps(r),e);return s(D.span,{...n,ref:t})});Fl.displayName="ComboboxItemText";var Vl=P((e,t)=>{let o=I(X().getLabelProps(),e);return s(D.label,{...o,ref:t})});Vl.displayName="ComboboxLabel";var Bl=P((e,t)=>{let o=I(X().getListProps(),e);return s(D.div,{...o,ref:t})});Bl.displayName="ComboboxList";var Hl=P((e,t)=>{let o=X(),r=he(),n=I(o.getPositionerProps(),e);return r.unmounted?null:s(D.div,{...n,ref:t})});Hl.displayName="ComboboxPositioner";var gu=e=>{let t=ue(),{dir:o}=ho(),{getRootNode:r}=Xe(),n=le(),i={id:t,ids:{label:n?.ids.label,input:n?.ids.control},disabled:n?.disabled,readOnly:n?.readOnly,required:n?.required,invalid:n?.invalid,dir:o,getRootNode:r,...e},l=gt(Il,i);return wl(l,ht)};var V1=(e,t)=>{let[o,r]=Fe(e),[n,i]=ie()(r,["allowCustomValue","alwaysSubmitOnEnter","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","disabled","disableLayer","form","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value"]),l=gu(n),a=Ee(I({present:l.open},o)),c=I(l.getRootProps(),i);return s(Nn,{value:l,children:s(Le,{value:a,children:s(D.div,{...c,ref:t})})})},hu=P(V1);var B1=(e,t)=>{let[o,r]=Fe(e),[{value:n},i]=ie()(r,["value"]),l=Ee(I({present:n.open},o)),a=I(n.getRootProps(),i);return s(Nn,{value:n,children:s(Le,{value:l,children:s(D.div,{...a,ref:t})})})},xu=P(B1);var H1=ie(),Wl=P((e,t)=>{let[o,r]=H1(e,["focusable"]),n=I(X().getTriggerProps(o),r);return s(D.button,{...n,ref:t})});Wl.displayName="ComboboxTrigger";var Se=xt({ClearTrigger:()=>Nl,Content:()=>kl,Context:()=>au,Control:()=>Sl,Empty:()=>Rl,Input:()=>Ol,Item:()=>Al,ItemContext:()=>du,ItemGroup:()=>Ml,ItemGroupLabel:()=>Dl,ItemIndicator:()=>Ll,ItemText:()=>Fl,Label:()=>Vl,List:()=>Bl,Positioner:()=>Hl,Root:()=>hu,RootProvider:()=>xu,Trigger:()=>Wl});var Rn=P(({className:e,error:t,hideNumberSteppers:o,...r},n)=>s("input",{ref:n,"data-error":t?"true":void 0,className:x("polli-input polli:px-3 polli:py-2 polli:border polli:rounded-lg","polli:font-body polli:text-base polli:font-normal polli:leading-6 polli:text-theme-text-strong","polli:transition-colors","polli:disabled:opacity-50 polli:disabled:cursor-not-allowed",o&&"polli-input-number-clean",e),...r}));function bu({label:e,value:t,highlighted:o=!1,className:r,...n}){return b("button",{type:"button","data-highlighted":o?"":void 0,className:x("polli-control polli:flex polli:h-7 polli:max-w-full polli:shrink-0 polli:items-center polli:gap-1 polli:rounded polli:px-1.5 polli:text-xs polli:transition-colors polli:hover:bg-theme-bg-hover polli:data-[highlighted]:bg-theme-bg-active",r),...n,children:[b("span",{className:"polli:text-theme-text-muted",children:[e,":"]}),s("span",{className:"polli:truncate polli:text-theme-text-base",children:t}),s(de,{className:"polli:h-3 polli:w-3 polli:text-theme-text-muted"})]})}function vu({value:e,options:t,onChange:o,emptyMessage:r="No options match.",align:n="start",open:i,onOpenChange:l,closeOnSelect:a,startContent:c,contentClassName:p,className:u,disabled:d,name:g,placeholder:f,required:m,...v}){let h=se(()=>{let M=e.trim().toLowerCase();return M===""?t:t.filter(N=>N.toLowerCase().includes(M))},[t,e]),C=se(()=>dl({items:h,itemToString:M=>M,itemToValue:M=>M}),[h]),T=t.length>0,E=!!c,w=$(null);return Y(()=>{w.current&&w.current.value!==e&&(w.current.value=e)}),b(Se.Root,{collection:C,inputValue:e,value:[],allowCustomValue:!0,openOnClick:T,openOnChange:()=>T,open:i,closeOnSelect:a,disabled:d,name:g,required:m,positioning:{placement:n==="end"?"bottom-end":"bottom-start",sameWidth:!0,strategy:"fixed"},onInputValueChange:M=>o(M.inputValue),onOpenChange:M=>l?.(M.open),children:[b(Se.Control,{className:x("polli:relative polli:w-full",E&&"polli-input-shell polli:flex polli:min-h-10 polli:flex-wrap polli:items-center polli:gap-2 polli:border polli:rounded-lg polli:px-2 polli:py-1"),children:[c,s(Se.Input,{asChild:!0,children:s(Rn,{ref:w,...v,name:g,placeholder:f,className:x(E?"polli:min-w-28 polli:flex-1 polli:px-1 polli:py-1":"polli:w-full polli:pr-10",u)})}),T&&!E&&s(Se.Trigger,{"aria-label":"Show options",className:"polli-control polli:absolute polli:right-0 polli:top-0 polli:flex polli:h-full polli:w-10 polli:cursor-pointer polli:items-center polli:justify-center polli:rounded-r-lg polli:text-theme-text-muted polli:hover:text-theme-text-strong",children:s(Se.Context,{children:M=>s(de,{expanded:M.open,className:"polli:h-4 polli:w-4 polli:transition-transform"})})})]}),s(Se.Positioner,{children:s(Se.Content,{className:x("polli:z-[120] polli:overflow-hidden polli:rounded-lg polli:bg-surface-menu polli:p-1 polli:shadow-lg polli:focus:outline-none",p),children:s(Ue,{className:"polli:max-h-64",children:b(Se.List,{className:"polli:flex polli:flex-col",children:[h.map(M=>s(Se.Item,{item:M,className:x("polli-control polli:flex polli:w-full polli:cursor-pointer polli:items-center polli:rounded-lg polli:bg-transparent polli:px-3 polli:py-2 polli:text-left polli:text-sm polli:font-medium polli:text-theme-text-base polli:transition-colors polli:hover:bg-theme-bg-hover polli:data-[highlighted]:bg-theme-bg-hover",e===M&&"polli:bg-theme-bg-active polli:text-theme-text-strong"),children:s(Se.ItemText,{className:"polli:truncate polli:font-mono",children:M})},M)),h.length===0&&s(Se.Empty,{className:"polli:m-0 polli:px-2 polli:py-2 polli:text-sm polli:text-theme-text-soft",children:r})]})})})})]})}function Co(e,t=globalThis.location?.origin){if(typeof e!="string"||!/^(https?:)?\/\//i.test(e))return!1;if(!t)return!0;try{return new URL(e,t).origin!==t}catch{return!1}}function yu(e){let{size:t="md",appearance:o,external:r="href"in e?Co(e.href):!0,showIcon:n=!0,icon:i,className:l,children:a}=e,c=b(Z,{children:[i,s("span",{children:a}),r&&n?s(qt,{className:"polli:h-4 polli:w-4 polli:shrink-0 polli:opacity-60","aria-hidden":"true"}):null]});if("href"in e){let{href:T,target:E=r?"_blank":void 0,rel:w=E==="_blank"?"noopener noreferrer":void 0,size:M,appearance:N,external:W,showIcon:y,icon:O,className:L,children:k,...A}=e;return s(Ze,{as:"a",href:T,target:E,rel:w,size:t,appearance:o,className:x("polli:gap-2",l),...A,children:c})}let{type:p="button",size:u,appearance:d,external:g,showIcon:f,icon:m,className:v,children:h,...C}=e;return s(Ze,{as:"button",type:p,size:t,appearance:o,className:x("polli:gap-2",l),...C,children:c})}var W1=ke("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator"),Oe=W1.build();var Cu=e=>e.children(le());var _l=P((e,t)=>{let o=le(),r=I(o.getErrorTextProps(),e);return o?.invalid?s(D.span,{...r,ref:t}):null});_l.displayName="FieldErrorText";var zl=P((e,t)=>{let o=I(le()?.getHelperTextProps(),e);return s(D.span,{...o,ref:t})});zl.displayName="FieldHelperText";var Ul=P((e,t)=>{let o=I(le()?.getInputProps(),e);return s(D.input,{...o,ref:t})});Ul.displayName="FieldInput";var Gl=e=>{let{value:t,children:o}=e,r=le();return s(yo,{value:se(()=>{if(!r)throw new Error("Field.Item must be used within Field.Root");let n=`field::${r.ids.control}::item::${t}`,i=`${n}::label`,l=()=>({...r.getInputProps(),id:n});return{...r,ids:{...r.ids,control:n,label:i},getLabelProps:()=>({...r.getLabelProps(),id:i,htmlFor:n}),getInputProps:()=>({...l(),...Oe.input.attrs}),getSelectProps:()=>({...l(),...Oe.select.attrs}),getTextareaProps:()=>({...l(),...Oe.textarea.attrs})}},[r,t]),children:o})};Gl.displayName="FieldItem";var $l=P((e,t)=>{let o=I(le()?.getLabelProps(),e);return s(D.label,{...o,ref:t})});$l.displayName="FieldLabel";var jl=P(({fallback:e,...t},o)=>{let r=le();if(!r.required)return e;let n=I(r.getRequiredIndicatorProps(),t);return s(D.span,{...n,ref:o,children:t.children??"*"})});jl.displayName="FieldRequiredIndicator";var[_E,wu]=re({name:"FieldsetContext",hookName:"useFieldsetContext",providerName:"<FieldsetProvider />",strict:!1});var Pu=typeof window<"u"?ur:Y;var Eu=(e={})=>{let t=wu(),o=Xe(),{ids:r,target:n,disabled:i=!!t?.disabled,invalid:l=!1,readOnly:a=!1,required:c=!1}=e,[p,u]=ee(!1),[d,g]=ee(!1),f=ue(),m=e.id??f,v=$(null),h=r?.control??`field::${m}`,C=r?.errorText??`field::${m}::error-text`,T=r?.helperText??`field::${m}::helper-text`,E=r?.label??`field::${m}::label`;Pu(()=>{let R=v.current;if(!R)return;let z=()=>{let V=o.getRootNode();u(!!V.getElementById(C)),g(!!V.getElementById(T))};z();let K=new(o.getWindow()).MutationObserver(z);return K.observe(R,{childList:!0,subtree:!0}),()=>K.disconnect()},[o,C,T]);let w=se(()=>{let R=[];return p&&l&&R.push(C),d&&R.push(T),R.join(" ")||void 0},[l,C,T,p,d]),M=se(()=>()=>({...Oe.root.attrs,id:h,ref:v,role:"group","data-disabled":G(i),"data-invalid":G(l),"data-readonly":G(a)}),[i,l,a,h]),N=n?`field::${m}::item::${n}`:void 0,W=se(()=>()=>({...Oe.label.attrs,id:E,"data-disabled":G(i),"data-invalid":G(l),"data-readonly":G(a),"data-required":G(c),htmlFor:N??m}),[i,l,a,c,m,E,N]),y=se(()=>()=>({"aria-describedby":w,"aria-invalid":et(l),"data-invalid":G(l),"data-required":G(c),"data-readonly":G(a),id:m,required:c,disabled:i,readOnly:a}),[w,l,c,a,m,i]),O=se(()=>()=>({...y(),...Oe.input.attrs}),[y]),L=se(()=>()=>({...y(),...Oe.textarea.attrs}),[y]),k=se(()=>()=>({...y(),...Oe.select.attrs}),[y]),A=se(()=>()=>({id:T,...Oe.helperText.attrs,"data-disabled":G(i)}),[i,T]),S=se(()=>()=>({id:C,...Oe.errorText.attrs,"aria-live":"polite"}),[C]),_=se(()=>()=>({"aria-hidden":!0,...Oe.requiredIndicator.attrs}),[]);return{ariaDescribedby:w,ids:{root:h,control:m,label:E,errorText:C,helperText:T},refs:{rootRef:v},disabled:i,invalid:l,readOnly:a,required:c,getLabelProps:W,getRootProps:M,getInputProps:O,getTextareaProps:L,getSelectProps:k,getHelperTextProps:A,getErrorTextProps:S,getRequiredIndicatorProps:_}};var _1=ie(),ql=P((e,t)=>{let[o,r]=_1(e,["id","ids","disabled","invalid","readOnly","required","target"]),n=Eu(o),i=I(n.getRootProps(),r);return s(yo,{value:n,children:s(D.div,{...i,ref:Pe(t,n.refs.rootRef)})})});ql.displayName="FieldRoot";var z1=ie(),Kl=P((e,t)=>{let[{value:o},r]=z1(e,["value"]),n=I(o.getRootProps(),r);return s(yo,{value:o,children:s(D.div,{...n,ref:t})})});Kl.displayName="FieldRootProvider";var Yl=P((e,t)=>{let o=I(le()?.getSelectProps(),e);return s(D.select,{...o,ref:t})});Yl.displayName="FieldSelect";var Tu=e=>{if(!e)return;let t=Ge(e),o=te(e),r=Q(e),n=()=>{requestAnimationFrame(()=>{e.style.height="auto";let p;t.boxSizing==="content-box"?p=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):p=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&p>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),p=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${p}px`})};e.addEventListener("input",n),e.form?.addEventListener("reset",n);let i=Object.getPrototypeOf(e),l=Object.getOwnPropertyDescriptor(i,"value");l&&Object.defineProperty(e,"value",{...l,set(p){let u=l.get?.call(this);l.set?.call(this,p),n(),u!==p&&queueMicrotask(()=>{e.dispatchEvent(new o.InputEvent("input",{bubbles:!0}))})}});let a=new o.ResizeObserver(()=>{requestAnimationFrame(()=>n())});a.observe(e);let c=new o.MutationObserver(()=>n());return c.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),r.fonts?.addEventListener("loadingdone",n),()=>{e.removeEventListener("input",n),e.form?.removeEventListener("reset",n),r.fonts?.removeEventListener("loadingdone",n),a.disconnect(),c.disconnect()}};var Xl=P((e,t)=>{let{autoresize:o,...r}=e,n=$(null),i=I(le()?.getTextareaProps(),{style:{resize:o?"none":void 0}},r);return Y(()=>{if(o)return Tu(n.current)},[o]),s(D.textarea,{...i,ref:Pe(t,n)})});Xl.displayName="FieldTextarea";var nt=xt({Context:()=>Cu,ErrorText:()=>_l,HelperText:()=>zl,Input:()=>Ul,Item:()=>Gl,Label:()=>$l,RequiredIndicator:()=>jl,Root:()=>ql,RootProvider:()=>Kl,Select:()=>Yl,Textarea:()=>Xl});function Iu({label:e,children:t,helper:o,action:r,error:n,alignLabelRow:i=!1,className:l,labelClassName:a,helperClassName:c,errorClassName:p}){return b(nt.Root,{className:x("polli:flex polli:flex-col polli:gap-2 polli:font-body",l),invalid:!!n,children:[(e||r)&&b("div",{className:x("polli:flex polli:items-center polli:justify-between polli:gap-2",i&&"polli:min-h-8"),children:[e&&s(nt.Label,{className:x("polli:text-sm polli:font-semibold polli:leading-5 polli:text-theme-text-strong",a),children:e}),r]}),t,n?s(nt.ErrorText,{className:x("polli:text-xs polli:font-medium polli:leading-5 polli:text-intent-danger-text",p),children:n}):o?s(nt.HelperText,{className:x("polli:text-xs polli:font-normal polli:leading-normal polli:text-theme-text-muted",c),children:o}):null]})}var Zl=new WeakMap;function Nu(e){let t=Zl.get(e);if(!t){let r=n=>{n.dataTransfer?.types?.includes("Files")&&n.preventDefault()};t={consumers:0,preventFileNavigation:r},Zl.set(e,t),e.addEventListener("dragover",r),e.addEventListener("drop",r)}t.consumers+=1;let o=!1;return()=>{o||(o=!0,t.consumers-=1,!(t.consumers>0)&&(e.removeEventListener("dragover",t.preventFileNavigation),e.removeEventListener("drop",t.preventFileNavigation),Zl.delete(e)))}}function U1(e,t){if(!t)return!0;let o=t.split(",").map(r=>r.trim()).filter(Boolean);return o.length===0?!0:o.some(r=>{if(r.startsWith("."))return e.name.toLowerCase().endsWith(r.toLowerCase());if(r.endsWith("/*")){let n=r.slice(0,r.length-1);return e.type.startsWith(n)}return e.type===r})}function ku(e,t,{maxFiles:o,maxSizeBytes:r,accept:n}){let i=[],l=[],a=Math.max(0,o-t.length);for(let c of e)U1(c,n)?c.size>r?l.push({file:c,reason:"size"}):a<=0?l.push({file:c,reason:"count"}):(i.push(c),a-=1):l.push({file:c,reason:"type"});return{accepted:i,rejected:l}}var G1={danger:"polli:bg-intent-danger-bg-light polli:text-intent-danger-text",info:"polli:bg-intent-info-bg-light polli:text-intent-info-text"},$1={danger:"polli:hover:bg-intent-danger-bg-hover",info:"polli:hover:bg-intent-info-bg-hover"},j1={tile:"polli:bg-theme-bg-active polli:text-theme-text-soft",ghost:"polli:bg-transparent polli:text-theme-text-muted"},q1={tile:"polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",ghost:"polli:hover:bg-transparent polli:hover:text-theme-text-soft"},K1={sm:"polli:h-6 polli:w-6 polli:rounded",md:"polli:h-9 polli:w-9 polli:rounded-full"},Qo=P(({intent:e,variant:t="tile",pressed:o,title:r,tooltip:n,tooltipAlign:i,tooltipClampToViewport:l,children:a,className:c,size:p="sm",disabled:u=!1,...d},g)=>{let f=s("button",{...d,ref:g,type:"button",disabled:u,"aria-label":d["aria-label"]??r,"aria-pressed":o,"data-intent":e,className:x("polli-control polli:inline-flex polli:items-center polli:justify-center polli:transition-colors",u?"polli:cursor-not-allowed polli:opacity-50":"polli:cursor-pointer",K1[p],e?G1[e]:j1[t],!u&&(e?$1[e]:q1[t]),c),children:a}),m=n??r;return m?s(Je,{triggerAs:"span",content:m,align:i,clampToViewport:l,tapEnabled:!1,className:u?"polli:cursor-not-allowed":"polli:cursor-pointer",children:f}):f});Qo.displayName="IconButton";var Y1=new Set(["image/gif","image/jpeg","image/png","image/webp"]),X1=64,Z1=112,Su={sm:"polli:h-16 polli:w-16",lg:"polli:h-28 polli:w-28"};function Ru(e){return Y1.has(e.type)}function J1(e){return e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function Q1(e){let t=new Set(e.map(r=>r.type.split("/")[0]).filter(Boolean));if(t.size!==1)return`${e.length} files attached`;let[o]=t;return`${e.length} ${o}${e.length===1?"":"s"} attached`}function eh({icon:e,size:t}){return s("div",{className:x("polli:flex polli:items-center polli:justify-center polli:rounded-xl polli:bg-theme-bg-active polli:text-theme-text-soft",Su[t]),children:e})}function th({file:e,placeholderIcon:t,size:o="sm"}){let r=$(null),[n,i]=ee(()=>Ru(e)),l=o==="lg"?Z1:X1;return Y(()=>{if(!Ru(e)){i(!1);return}let a=!1;i(!0);async function c(){try{let p=await createImageBitmap(e);if(a){p.close();return}let u=r.current,d=u?.getContext("2d");if(!u||!d){p.close(),i(!1);return}u.width=l,u.height=l;let g=Math.max(l/p.width,l/p.height),f=p.width*g,m=p.height*g,v=(l-f)/2,h=(l-m)/2;d.clearRect(0,0,l,l),d.drawImage(p,v,h,f,m),p.close()}catch{a||i(!1)}}return c(),()=>{a=!0}},[e,l]),n?s("canvas",{ref:r,role:"img","aria-label":e.name,className:x("polli:rounded-xl",Su[o]),width:l,height:l}):s(eh,{icon:t,size:o})}function Ou({value:e,onChange:t,onReject:o,maxFiles:r=4,maxSizeBytes:n=10*1024*1024,accept:i="image/*",icon:l=s(on,{className:"polli:h-6 polli:w-6"}),label:a=b(Z,{children:["Drag images here or ",s("span",{className:"polli:underline",children:"browse"})]}),previewIcon:c=s(on,{className:"polli:h-5 polli:w-5"}),variant:p="default",disabled:u=!1,className:d}){Y(()=>Nu(document),[]);function g(N){if(u||N.length===0)return;let{accepted:W,rejected:y}=ku(N,e,{maxFiles:r,maxSizeBytes:n,accept:i});W.length>0&&t([...e,...W]),y.length>0&&o?.(y)}let f=e.length>0,m=!u&&e.length<r,v=r===1,h=p!=="default",C=p==="inline",T=h?"sm":v?"lg":"sm",E=ue(),w=`${E}-add`;function M(N){g(Array.from(N.target.files??[])),N.target.value=""}return C&&!f?null:s("div",{className:x("polli:flex polli:flex-col polli:gap-2",d),children:s("fieldset",{disabled:u,className:x("polli:m-0",!C&&"polli:rounded-xl polli:border polli:border-dashed polli:border-theme-border polli:bg-theme-bg-pale","polli:text-sm",C?"polli:border-0 polli:bg-transparent polli:p-0 polli:text-left":h?"polli:min-h-16 polli:px-3 polli:py-2 polli:text-left":"polli:px-4 polli:py-4 polli:text-center","polli:text-theme-text-soft polli:transition-colors",u?"polli:opacity-50":"polli:hover:bg-theme-bg-hover"),onDragOver:N=>N.preventDefault(),onDrop:N=>{N.preventDefault(),!u&&g(Array.from(N.dataTransfer.files))},children:f?b("div",{className:x("polli:flex polli:gap-3",h?"polli:items-center":"polli:flex-col"),children:[h&&!C&&s("span",{className:"polli:text-xs polli:font-medium polli:text-theme-text-muted",children:Q1(e)}),b("ul",{className:x("polli:m-0 polli:gap-3 polli:p-0",h?x("polli:flex polli:min-w-0 polli:flex-1 polli:flex-wrap",C?"polli:justify-start":"polli:ml-auto polli:justify-end"):"polli:grid polli:grid-cols-[repeat(auto-fill,minmax(5rem,1fr))]",v&&!h&&"polli:flex polli:justify-center"),children:[e.map((N,W)=>b("li",{className:x("polli:relative polli:flex polli:min-w-0 polli:list-none polli:flex-col polli:items-center polli:gap-1",v&&"polli:max-w-full"),children:[s(th,{file:N,placeholderIcon:c,size:T}),!h&&b(Z,{children:[s("span",{className:x("polli:max-w-full polli:truncate polli:text-xs polli:font-medium polli:text-theme-text-base",v?"polli:w-36":"polli:w-16"),children:N.name}),s("span",{className:"polli:text-micro polli:text-theme-text-muted",children:J1(N.size)})]}),!u&&s("div",{className:"polli:absolute polli:-top-2 polli:right-1",children:s(Qo,{intent:"danger",title:`Remove ${N.name}`,onClick:()=>t(e.filter((y,O)=>O!==W)),children:s(Kt,{className:"polli:h-3 polli:w-3"})})})]},`${N.name}-${W}`)),!C&&!v&&m&&s("li",{className:"polli:flex polli:list-none",children:b("label",{htmlFor:w,className:x("polli-control polli:flex polli:cursor-pointer polli:flex-col polli:items-center polli:justify-center polli:gap-1 polli:rounded-lg polli:bg-theme-bg-active polli:text-theme-text-soft polli:transition-colors polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-strong",h?"polli:h-16 polli:w-16 polli:px-2 polli:py-1":"polli:min-h-20 polli:w-full polli:px-3 polli:py-2"),children:[s(Hi,{className:"polli:h-5 polli:w-5"}),!h&&s("span",{className:"polli:text-xs polli:font-medium",children:"Add"}),s("input",{id:w,type:"file","aria-label":"Add files",accept:i,multiple:!0,disabled:u||!m,className:"polli:sr-only",onChange:M})]})})]}),Number.isFinite(r)&&r>1&&!h&&b("span",{className:"polli:text-xs polli:text-theme-text-muted",children:[e.length," / ",r," files"]})]}):b("label",{htmlFor:E,className:x("polli-control polli:flex polli:items-center polli:gap-2 polli:rounded-lg",h?"polli:min-h-12 polli:flex-row polli:justify-start":"polli:min-h-32 polli:flex-col polli:justify-center",m?"polli:cursor-pointer":"polli:cursor-not-allowed"),children:[l,s("span",{children:a}),s("input",{id:E,type:"file",accept:i,multiple:r>1,disabled:u||!m,className:"polli:sr-only",onChange:M})]})})})}var Au=({text:e,content:t,label:o="More info"})=>s(Je,{content:t??e,ariaLabel:o,className:"polli:ml-1",children:s("span",{className:"polli:inline-flex polli:h-4 polli:w-4 polli:items-center polli:justify-center polli:rounded-full polli:bg-surface-menu polli:font-bold polli:text-[10px] polli:leading-none polli:text-theme-text-muted polli:transition-colors polli:hover:text-theme-text-strong",children:"i"})});var oh={icon:"polli:h-5 polli:w-5 polli:p-0 polli:text-xs",sm:"polli:h-5 polli:px-2 polli:text-xs",md:"polli:h-6 polli:px-2.5 polli:text-sm",lg:"polli:h-7 polli:px-3 polli:text-sm"},rh={news:"polli:bg-intent-news-bg-light polli:text-intent-news-text",new:"polli:bg-intent-new-bg-light polli:text-intent-new-text",free:"polli:bg-intent-free-bg-light polli:text-intent-free-text",alpha:"polli:bg-intent-alpha-bg-light polli:text-intent-alpha-text",neutral:"polli:bg-ink-100/80 polli:text-ink-900",success:"polli:bg-intent-success-bg-bright/15 polli:text-intent-success-text",warning:"polli:bg-intent-warning-bg-light polli:text-intent-warning-text",info:"polli:bg-intent-info-bg-light polli:text-intent-info-text",danger:"polli:bg-intent-danger-bg-light polli:text-intent-danger-text"},er=({intent:e,size:t="md",className:o,children:r,...n})=>{let i=e?rh[e]:"polli:bg-theme-bg-active polli:text-theme-text-strong";return s("span",{...n,className:x("polli:inline-flex polli:shrink-0 polli:items-center polli:justify-center polli:gap-1 polli:rounded-lg polli:font-medium polli:leading-none",oh[t],i,o),children:r})};var Mu="polli:gap-1.5 polli:font-mono polli:font-normal polli:[&>svg]:size-3.5 polli:[&>svg]:shrink-0";function Du({prefix:e,value:t,label:o="Copy key",className:r}){let n=`${e}\u2026`;return t?s(yt,{value:t,tooltip:null,"aria-label":o,className:"polli:inline-flex polli:cursor-pointer polli:rounded-lg",children:i=>b(er,{intent:i?"success":"neutral",className:x(Mu,"polli:transition-colors",r),children:[i?s(Re,{"aria-hidden":"true"}):s(jt,{"aria-hidden":"true"}),i?"Copied":n]})}):s(er,{intent:"neutral",className:x(Mu,r),children:n})}function Lu({as:e,external:t,showIcon:o=!0,className:r,surfaceClassName:n,children:i,...l}){let a=e||"a",c=t??Co(l.href);return b(vt,{as:a,variant:"card",target:c?"_blank":void 0,rel:c?"noopener noreferrer":void 0,...l,className:x("polli:relative polli:flex polli:h-full polli:flex-col polli:gap-2 polli:bg-surface-opaque/80 polli:p-5 polli:outline-none",o&&c&&"polli:pr-10","polli:transition-colors polli:hover:bg-surface-opaque/95","polli:focus-visible:ring-2 polli:focus-visible:ring-theme-border",r,n),children:[o&&c&&s(qt,{"aria-hidden":"true",className:"polli:absolute polli:top-4 polli:right-4 polli:h-3.5 polli:w-3.5 polli:text-theme-text-soft"}),i]})}var Fu=({icon:e,label:t,detail:o,children:r,className:n,...i})=>b("div",{...i,className:x("polli:flex polli:aspect-video polli:min-h-40 polli:flex-col polli:items-center polli:justify-center polli:gap-3 polli:rounded-lg polli:border polli:border-dashed polli:border-theme-border polli:bg-theme-bg-pale polli:p-6 polli:text-center",n),children:[e&&s("div",{className:"polli:flex polli:h-10 polli:w-10 polli:items-center polli:justify-center polli:rounded-full polli:bg-theme-bg-active polli:text-theme-text-base",children:e}),(t||o)&&b("div",{className:"polli:max-w-sm",children:[t&&s(ce,{as:"p",size:"sm",tone:"strong",weight:"semibold",children:t}),o&&s(ce,{as:"p",size:"sm",tone:"soft",className:"polli:mt-1",children:o})]}),r]});var Vu="polli-control polli:inline-flex polli:min-h-8 polli:min-w-[140px] polli:items-center polli:gap-2 polli:rounded-full polli:px-3 polli:py-1.5 polli:text-xs polli:font-medium polli:transition-all polli:duration-200",Bu="polli-control polli:flex polli:w-full polli:items-center polli:gap-3 polli:px-3 polli:py-2 polli:text-left polli:text-xs polli:transition-colors",Hu="polli:flex polli:h-4 polli:w-4 polli:flex-shrink-0 polli:items-center polli:justify-center polli:rounded polli:border polli:border-theme-border polli:text-xs",Wu=({options:e,selected:t,onChange:o,placeholder:r,disabled:n,disabledText:i,disabledTooltip:l,align:a="start",label:c,ariaLabel:p,fullWidth:u=!1})=>{let d=t.length===0,g=h=>{t.includes(h)?o(t.filter(C=>C!==h)):o([...t,h])},f=()=>o([]),m=n?i:d?r:t.length===1?e.find(h=>h.value===t[0])?.label??"1 selected":`${t.length} selected`,v=c?s("span",{className:"polli:text-xs polli:font-medium polli:text-theme-text-soft",children:c}):null;return n?b("div",{className:x("polli:flex polli:items-center polli:gap-2",u&&"polli:w-full polli:min-w-0"),children:[v,s(Je,{triggerAs:"span",content:l||"No items available",align:"center",className:x("polli:inline-flex polli:cursor-not-allowed",u&&"polli:min-w-0 polli:flex-1"),children:b("button",{type:"button",disabled:!0,"aria-label":p||c||r,className:x(Vu,u&&"polli:w-full polli:min-w-0","polli:cursor-not-allowed polli:bg-theme-bg-active polli:opacity-50"),children:[s("span",{className:"polli:flex-1 polli:truncate polli:text-left polli:text-theme-text-strong",children:m}),s(de,{expanded:!1,className:"polli:h-3 polli:w-3 polli:text-theme-text-soft"})]})})]}):b("div",{className:x("polli:flex polli:items-center polli:gap-2",u&&"polli:w-full polli:min-w-0"),children:[v,s(bt,{align:a,className:"polli:w-[min(20rem,calc(100vw-2rem))]",trigger:h=>b("button",{type:"button","aria-label":p||c||r,className:x(Vu,u&&"polli:w-full polli:min-w-0",h?"polli:bg-theme-bg-hover":"polli:bg-theme-bg-active polli:hover:bg-theme-bg-hover"),children:[s("span",{className:x("polli:flex-1 polli:truncate polli:text-left",h?"polli:text-theme-text-strong":"polli:text-theme-text-base"),children:m}),s(de,{expanded:h,className:x("polli:h-3 polli:w-3 polli:transition-transform",h?"polli:text-theme-text-strong":"polli:text-theme-text-soft")})]}),children:b(Ue,{className:"polli:max-h-64",children:[b("button",{type:"button",onClick:f,"aria-pressed":d,className:x(Bu,d?"polli:bg-theme-bg-active polli:font-medium polli:text-theme-text-strong":"polli:text-theme-text-base polli:hover:bg-theme-bg-subtle"),children:[s("span",{"aria-hidden":"true",className:x(Hu,d&&"polli:bg-theme-bg-active polli:text-theme-text-strong"),children:d&&"\u2713"}),r]}),e.map(h=>{let C=t.includes(h.value);return b("button",{type:"button",onClick:()=>g(h.value),"aria-pressed":C,className:x(Bu,C?"polli:bg-theme-bg-active polli:text-theme-text-strong":"polli:text-theme-text-base polli:hover:bg-theme-bg-subtle"),children:[s("span",{"aria-hidden":"true",className:x(Hu,C&&"polli:bg-theme-bg-active polli:text-theme-text-strong"),children:C&&"\u2713"}),s("span",{className:"polli:min-w-0 polli:[overflow-wrap:anywhere]",children:h.label})]},h.value)})]})})]})};var nh="polli-control polli:flex polli:items-center polli:gap-2 polli:rounded-full polli:px-3 polli:py-2 polli:text-left polli:text-sm polli:font-medium polli:whitespace-nowrap polli:transition-colors",ih="polli:bg-theme-bg-active polli:text-theme-text-strong",lh="polli:text-ink-800 polli:hover:bg-surface-opaque/60 polli:hover:text-ink-950";function _u({as:e,active:t=!1,icon:o,className:r,children:n,...i}){return b(e||"button",{"aria-current":t?"page":void 0,className:x(nh,t?ih:lh,r),...i,children:[o?s(o,{className:"polli:h-4 polli:w-4 polli:shrink-0"}):null,n]})}function wo(e=new Date){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))}function it(e,t){let o=new Date(e);return o.setUTCDate(o.getUTCDate()+t),o}function sh(e){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1))}function ah(e,t){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+t,1))}function ch(e){let t=e.getUTCDay()||7;return it(wo(e),1-t)}function ph(e){let t=e.getUTCDay()||7,o=it(wo(e),4-t),r=o.getUTCFullYear(),n=new Date(Date.UTC(r,0,1)),i=Math.ceil(((o.getTime()-n.getTime())/864e5+1)/7);return`${r}-W${String(i).padStart(2,"0")}`}function zu(e){return e.toISOString().slice(0,10)}function uh(e){return e.toISOString().slice(0,13).replace("T"," ")}function dh(e){return e.toISOString().slice(0,7)}function lt(e,t=new Date){return e==="day"?{granularity:e,period:zu(wo(t))}:e==="week"?{granularity:e,period:ph(t)}:{granularity:e,period:dh(sh(t))}}function Uu(){return lt("day")}function Tt(e){if(e.granularity==="day"){let n=new Date(`${e.period}T00:00:00.000Z`);return{start:n,end:it(n,1)}}if(e.granularity==="week"){let[n,i]=e.period.split("-W"),l=Number(n),a=Number(i),c=new Date(Date.UTC(l,0,4)),p=it(ch(c),(a-1)*7);return{start:p,end:it(p,7)}}let[t,o]=e.period.split("-"),r=new Date(Date.UTC(Number(t),Number(o)-1,1));return{start:r,end:ah(r,1)}}function Gu(e){let{start:t,end:o}=Tt(e),r=[],n=new Date(t);if(e.granularity==="day"){for(;n<o;)r.push(`${uh(n)}:00:00`),n.setUTCHours(n.getUTCHours()+1);return r}for(;n<o;)r.push(zu(n)),n.setUTCDate(n.getUTCDate()+1);return r}function $u(e,t){return t==="day"?new Date(`${e.replace(" ","T")}.000Z`):new Date(`${e}T00:00:00.000Z`)}function tr(e,t=new Date(0),o=wo()){let{start:r,end:n}=Tt(e);return n>t&&r<=o}var mh="polli-control polli:inline-flex polli:items-center polli:justify-center polli:rounded-full polli:font-medium polli:leading-normal polli:transition-colors polli:duration-200",fh={xs:"polli:px-2.5 polli:py-1 polli:text-xs",lg:"polli:px-5 polli:py-2 polli:text-lg",md:"polli:px-4 polli:py-1.5 polli:text-base",sm:"polli:px-3 polli:py-1.5 polli:text-sm"},ju={soft:{base:"",active:"polli:bg-theme-bg-active polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",inactive:"polli:bg-theme-bg-subtle polli:text-theme-text-base polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover"},ghost:{base:"polli:border polli:border-transparent",active:"polli:bg-theme-bg-active polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",inactive:"polli:bg-transparent polli:text-theme-text-base polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover"}};function Sn({as:e,active:t,onClick:o,children:r,size:n="md",variant:i="soft",intent:l,ariaLabel:a,disabled:c=!1,className:p,...u}){let d=e||"button",g=d==="button",f=ju[l==="neutral"?"soft":i];return s(d,{...u,...g?{type:"button",disabled:c}:{},...!g&&c?{"aria-disabled":!0,tabIndex:-1}:{},...d==="a"&&c?{href:void 0}:{},onClick:c?v=>{v.preventDefault(),v.stopPropagation()}:o,...a!==void 0?{"aria-label":a}:{},...g?{"aria-pressed":t}:{"aria-current":t?"page":void 0},className:x(mh,ju[i].base,t?f.active:f.inactive,c&&"polli:pointer-events-none polli:cursor-not-allowed polli:opacity-50",fh[n],p),children:r})}var gh=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],hh=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],qu="polli-control polli:rounded-full polli:px-2 polli:py-1 polli:text-xs polli:font-semibold polli:text-theme-text-base polli:transition-colors polli:hover:bg-theme-bg-subtle";function Po(e,t){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+t,1))}function xh(e){let t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1)),o=t.getUTCDay()||7,r=it(t,1-o);return Array.from({length:42},(n,i)=>it(r,i))}function Ku(e,t){return e.getTime()===t.getTime()}function Jl(e){return Tt(e).start}function Yu(e){return`${e.granularity}:${e.period}`}function Ju(e,t="short"){return e.toLocaleDateString("en-US",{timeZone:"UTC",month:t,year:"numeric"})}function Ql(e){return e.toLocaleDateString("en-US",{timeZone:"UTC",month:"short",day:"numeric",year:"numeric"})}function bh(e,t){let o=it(t,-1);return e.getUTCFullYear()===o.getUTCFullYear()&&e.getUTCMonth()===o.getUTCMonth()?`${e.toLocaleDateString("en-US",{timeZone:"UTC",month:"short"})} ${e.getUTCDate()}-${o.getUTCDate()}, ${o.getUTCFullYear()}`:`${Ql(e)} - ${Ql(o)}`}function Xu(e){let{start:t,end:o}=Tt(e);return e.granularity==="day"?Ql(t):e.granularity==="week"?bh(t,o):Ju(t,"long")}function Zu(e,t){if(t==="month"){let r=new Date(Date.UTC(e.getUTCFullYear(),0,1));return{start:r,end:Po(r,12)}}let o=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1));return{start:o,end:Po(o,1)}}var Qu=({value:e,onChange:t,minDate:o=new Date(0),maxDate:r,trigger:n,header:i})=>{let[l,a]=ee(!1),[c,p]=ee(()=>Jl(e)),[u,d]=ee(()=>Jl(e)),g=$(null),{granularity:f,period:m}=e;Y(()=>{let S=Yu({granularity:f,period:m});if(g.current===S){g.current=null;return}let _=Jl({granularity:f,period:m});d(_),p(_)},[f,m]);let v=se(()=>xh(c),[c]),h=Tt(e),C=wo(r),T=e.granularity==="month"?Po(c,-12):Po(c,-1),E=e.granularity==="month"?Po(c,12):Po(c,1),w=Zu(T,e.granularity),M=Zu(E,e.granularity),N=w.end<=o,W=M.start>C,y=Xu(e),O=(S,_)=>{g.current=Yu(S),d(_),p(_),t(S)},L=S=>{O(lt(S,u),u)},k=S=>{O(lt(e.granularity,S),S),a(!1)},A=e.granularity==="month"?String(c.getUTCFullYear()):Ju(c,"long");return b("div",{className:n?"polli:contents":"polli:flex polli:w-full polli:flex-wrap polli:items-center polli:gap-2",children:[!n&&s("div",{className:"polli:flex polli:flex-wrap polli:gap-1.5",children:["day","week","month"].map(S=>s(Sn,{active:e.granularity===S,onClick:()=>L(S),children:S[0].toUpperCase()+S.slice(1)},S))}),b(bt,{open:l,onOpenChange:a,className:"polli:w-[320px] polli:max-w-[calc(100vw-2rem)] polli:rounded-xl polli:border polli:border-divider polli:bg-surface-opaque polli:p-3.5 polli:shadow-container",trigger:n??(S=>b("button",{type:"button","aria-label":`Select period, current ${y}`,className:x("polli-control polli:inline-flex polli:w-[320px] polli:max-w-full polli:items-center polli:justify-between polli:gap-2 polli:rounded-full polli:px-4 polli:py-1.5 polli:text-left polli:text-base polli:font-medium polli:leading-normal","polli:bg-theme-bg-active polli:text-theme-text-base","polli:transition-all polli:duration-200 polli:ease-out polli:hover:bg-theme-bg-hover",S&&"polli:bg-theme-bg-hover polli:text-theme-text-strong"),children:[s("span",{className:"polli:truncate",children:y}),s(de,{expanded:S})]})),children:[i,b("div",{className:"polli:mb-3 polli:flex polli:items-center polli:justify-between",children:[s("button",{type:"button","aria-label":"Previous",disabled:N,onClick:()=>p(T),className:x(qu,N&&"polli:cursor-not-allowed polli:opacity-30 polli:hover:bg-transparent"),children:"<"}),s("div",{className:"polli:text-base polli:font-bold polli:text-theme-text-base",children:A}),s("button",{type:"button","aria-label":"Next",disabled:W,onClick:()=>p(E),className:x(qu,W&&"polli:cursor-not-allowed polli:opacity-30 polli:hover:bg-transparent"),children:">"})]}),e.granularity==="month"?s("div",{className:"polli:grid polli:grid-cols-3 polli:gap-1.5",children:hh.map((S,_)=>{let R=new Date(Date.UTC(c.getUTCFullYear(),_,1)),z=tr(lt("month",R),o,C),K=R.toLocaleDateString("en-US",{timeZone:"UTC",month:"long",year:"numeric"}),V=R.getUTCFullYear()===h.start.getUTCFullYear()&&R.getUTCMonth()===h.start.getUTCMonth();return s("button",{type:"button","aria-label":K,"aria-pressed":V,disabled:!z,onClick:()=>k(R),className:x("polli-control polli:rounded-lg polli:px-3 polli:py-2 polli:text-sm polli:font-medium polli:transition-colors polli:duration-150",V?"polli:bg-theme-bg-active polli:text-theme-text-strong":"polli:text-ink-700 polli:hover:bg-theme-bg-subtle",!z&&"polli:cursor-not-allowed polli:text-theme-text-muted polli:hover:bg-transparent"),children:S},S)})}):b(Z,{children:[s("div",{className:"polli:mb-1 polli:grid polli:grid-cols-7 polli:gap-1 polli:text-center polli:text-xs polli:font-bold polli:uppercase polli:text-theme-text-muted",children:gh.map(S=>s("div",{children:S},S))}),s("div",{className:"polli:grid polli:grid-cols-7 polli:gap-1",children:v.map(S=>{let _=S.getUTCMonth()===c.getUTCMonth(),R=tr(lt(e.granularity,S),o,C),z=e.granularity==="week"?`Select ${Xu(lt("week",S))}`:`Select ${S.toLocaleDateString("en-US",{timeZone:"UTC",weekday:"long",month:"long",day:"numeric",year:"numeric"})}`,K=e.granularity==="day"?Ku(S,h.start):S>=h.start&&S<h.end;return s("button",{type:"button","aria-label":z,"aria-pressed":K,disabled:!R,onClick:()=>k(S),className:x("polli-control polli:aspect-square polli:rounded-lg polli:text-sm polli:font-medium polli:transition-colors polli:duration-150",!_&&"polli:text-theme-text-muted",Ku(S,C)&&"polli:ring-1 polli:ring-theme-border",K?"polli:bg-theme-bg-active polli:text-theme-text-strong":"polli:text-ink-700 polli:hover:bg-theme-bg-subtle",!R&&"polli:cursor-not-allowed polli:text-theme-text-muted polli:hover:bg-transparent"),children:S.getUTCDate()},S.toISOString())})})]})]})]})};var ed=({title:e,id:t,framed:o=!0,intro:r,action:n,actionClassName:i,panelClassName:l,titleClassName:a,children:c,className:p})=>{let u=b(Z,{children:[r&&s(ce,{as:"div",className:"polli:max-w-2xl",children:r}),c]}),d=b(Z,{children:[b("header",{className:"polli:flex polli:flex-wrap polli:items-center polli:justify-between polli:gap-3",children:[s(bo,{as:"h2",size:"section",className:x("polli:text-left",a),children:e}),n&&s("div",{className:x("polli:shrink-0",i),children:n})]}),u]});return s("section",{id:t,className:x("polli:scroll-mt-10",p),children:o?s(vt,{variant:"panel",className:x("polli:flex polli:flex-col polli:gap-5",l),children:d}):s("div",{className:"polli:flex polli:flex-col polli:gap-4",children:d})})};var vh={stat:"polli:min-h-8 polli:text-2xl polli:font-bold polli:leading-tight polli:tabular-nums polli:text-theme-text-base",fact:"polli:text-sm polli:leading-6 polli:text-theme-text-soft"},td=({label:e,value:t,detail:o,variant:r="stat",className:n,labelClassName:i,valueClassName:l,detailClassName:a})=>b("div",{className:x("polli:text-sm",n),children:[s(ce,{as:"div",size:"micro",tone:"soft",weight:"bold",className:x("polli:uppercase polli:tracking-wide",i),children:e}),s("div",{className:x("polli:mt-1 polli:break-words",vh[r],l),children:t}),o&&s(ce,{as:"div",size:"xs",tone:"soft",className:x("polli:mt-2",a),children:o})]});function On({as:e,external:t,showIcon:o=!0,size:r="inherit",tone:n="accent",className:i,children:l,...a}){let c=e||"a",p=t??Co(a.href);return b(c,{target:p&&e!=="button"?"_blank":void 0,rel:p&&e!=="button"?"noopener noreferrer":void 0,className:["polli-link",i].filter(Boolean).join(" "),"data-size":r,"data-tone":n,...a,children:[l,o&&p&&s(qt,{"aria-hidden":"true",className:"polli-link-external-icon"})]})}function yh(e){if(typeof e=="string")return e;try{return JSON.stringify(e,null,2)??String(e)}catch{return String(e)}}function Ch(e){let o=yh(e).split(/(https:\/\/[^\s"\\]+)/g),r=0;return o.map(n=>{let i=`${r}:${n}`;return r+=n.length,n.startsWith("https://")?s(On,{href:n,children:n},i):n})}function od({value:e,error:t=!1}){return s("pre",{className:x("polli:max-h-72 polli:overflow-auto polli:whitespace-pre-wrap polli:break-words polli:rounded-lg polli:border polli:p-3 polli:text-xs polli:leading-relaxed",t?"polli:border-intent-danger-border/30 polli:bg-intent-danger-bg-light polli:text-intent-danger-text":"polli:border-theme-border/20 polli:bg-theme-bg-pale polli:text-theme-text-base"),children:Ch(e)})}var wh={pending:"Pending",running:"Running","approval-requested":"Awaiting approval","approval-responded":"Responded",complete:"Completed",error:"Error",denied:"Denied"};function Ph({status:e}){let t=e==="complete"||e==="approval-responded"?s(Re,{className:"polli:size-3"}):e==="error"||e==="denied"?s(Kt,{className:"polli:size-3"}):s(Bi,{className:x("polli:size-3",e==="running"&&"polli:animate-pulse")});return b("span",{"data-status":e,className:x("polli:ml-auto polli:inline-flex polli:shrink-0 polli:items-center polli:gap-1 polli:rounded-full polli:px-2 polli:py-1 polli:text-[11px] polli:font-semibold",e==="complete"||e==="approval-responded"?"polli:bg-theme-bg-active polli:text-intent-success-text":e==="error"||e==="denied"?"polli:bg-intent-danger-bg-light polli:text-intent-danger-text":"polli:bg-intent-info-bg-light polli:text-intent-info-text"),children:[t,wh[e]]})}function rd({name:e,input:t,output:o,error:r,status:n=r===void 0?"complete":"error",defaultOpen:i=!1,className:l}){let a=r===void 0?o:r,[c,p]=ee(i);return b("div",{"data-tool-status":n,className:x("polli:overflow-hidden polli:rounded-xl polli:border polli:border-theme-border/35 polli:bg-surface-opaque polli:shadow-well",l),children:[b("button",{type:"button","aria-expanded":c,onClick:()=>p(u=>!u),className:"polli-control polli:flex polli:w-full polli:cursor-pointer polli:items-center polli:gap-2 polli:px-3 polli:py-2.5 polli:text-left polli:hover:bg-theme-bg-hover/50",children:[s("span",{className:"polli:flex polli:size-7 polli:shrink-0 polli:items-center polli:justify-center polli:rounded-lg polli:bg-theme-bg-active polli:text-theme-text-strong",children:s(Wi,{className:"polli:size-3.5"})}),s("code",{className:"polli:min-w-0 polli:truncate polli:text-xs polli:font-semibold polli:text-theme-text-strong",children:e}),s(Ph,{status:n}),s(de,{expanded:c,className:"polli:size-4 polli:shrink-0 polli:text-theme-text-soft"})]}),c&&b("div",{className:"polli:flex polli:flex-col polli:gap-4 polli:border-theme-border/30 polli:border-t polli:bg-theme-bg-pale/35 polli:px-3 polli:py-3",children:[t!==void 0&&b("div",{className:"polli:flex polli:flex-col polli:gap-1",children:[s(ce,{size:"xs",tone:"muted",weight:"bold",children:"Parameters"}),s(od,{value:t})]}),a!==void 0&&b("div",{className:"polli:flex polli:flex-col polli:gap-1",children:[s(ce,{size:"xs",tone:"muted",weight:"bold",children:r===void 0?"Result":"Error"}),s(od,{value:a,error:r!==void 0})]})]})]})}function nd(...e){return As(mr(...e))}function id(e=!0){Y(()=>{if(!e)return;let t=document.body.style.overflow,o=document.documentElement.style.overflow;return document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",()=>{document.body.style.overflow=t,document.documentElement.style.overflow=o}},[e])}var ld=({className:e,children:t,role:o="group",...r})=>s("div",{...r,role:o,className:x("polli:flex polli:min-w-0 polli:flex-wrap polli:items-center polli:gap-1.5",e),children:t});var es="polli-color-mode";function Eh(){try{let e=localStorage.getItem(es);return e==="light"||e==="dark"?e:null}catch{return null}}function Th(){return typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches===!0}var Eo=Eh()??(Th()?"dark":"light"),or=new Set;function ts(){typeof document>"u"||(document.documentElement.classList.toggle("dark",Eo==="dark"),Ih())}function Ih(){if(typeof document>"u")return;let e=getComputedStyle(document.documentElement).getPropertyValue("--polli-color-app-bg").trim();if(!e)return;let t=document.querySelector('meta[name="theme-color"]');t||(t=document.createElement("meta"),t.setAttribute("name","theme-color"),document.head.appendChild(t)),t.setAttribute("content",e)}function ad(){for(let e of or)e()}function sd(e){if(e.key!==es)return;let t=e.newValue==="dark"?"dark":"light";t!==Eo&&(Eo=t,ts(),ad())}function Nh(e){return or.size===0&&typeof window<"u"&&(ts(),window.addEventListener("storage",sd)),or.add(e),()=>{or.delete(e),or.size===0&&typeof window<"u"&&window.removeEventListener("storage",sd)}}function kh(){return Eo}function Rh(){return"light"}function os(e){if(e!==Eo){Eo=e,ts();try{localStorage.setItem(es,e)}catch{}ad()}}function rs(){let e=dr(Nh,kh,Rh);return{mode:e,isDark:e==="dark",toggle:()=>os(e==="dark"?"light":"dark")}}var cd=()=>{let{isDark:e,toggle:t}=rs();return b("button",{type:"button",role:"switch","aria-checked":e,"aria-label":"Toggle dark mode",onClick:t,className:"polli-control polli:relative polli:inline-block polli:h-7 polli:w-[52px] polli:shrink-0 polli:cursor-pointer polli:rounded-full polli:border polli:border-theme-text-strong/10 polli:bg-surface-opaque polli:transition-colors",children:[e?s(nn,{className:"polli:absolute polli:top-1/2 polli:left-[7px] polli:h-3.5 polli:w-3.5 polli:-translate-y-1/2 polli:text-theme-text-strong/40"}):s(rn,{className:"polli:absolute polli:top-1/2 polli:right-[7px] polli:h-3.5 polli:w-3.5 polli:-translate-y-1/2 polli:text-theme-text-strong/40"}),s("span",{className:x("polli:absolute polli:top-1/2 polli:left-0.5 polli:flex polli:h-5 polli:w-5 polli:-translate-y-1/2 polli:items-center polli:justify-center polli:rounded-full polli:bg-app-bg polli:text-theme-text-soft polli:shadow-sm polli:transition-transform",e?"polli:translate-x-[26px]":"polli:translate-x-0"),children:e?s(rn,{className:"polli:h-3.5 polli:w-3.5"}):s(nn,{className:"polli:h-3.5 polli:w-3.5"})})]})};var pd=({open:e,onOpenChange:t,ariaLabel:o,children:r,side:n="left",contentClassName:i})=>{let l=$(null);return s(Te.Root,{open:e,initialFocusEl:()=>l.current,onOpenChange:a=>t(a.open),children:b($t,{children:[s(Te.Backdrop,{className:"polli:fixed polli:inset-0 polli:z-[100] polli:bg-[#000]/40 polli:backdrop-blur-sm"}),s(Te.Positioner,{className:"polli:pointer-events-none polli:fixed polli:inset-0 polli:z-[110] polli:h-dvh polli:overflow-hidden",children:s(Te.Content,{ref:l,"aria-label":o,className:x("polli:pointer-events-auto polli:flex polli:h-dvh polli:w-[min(20rem,86vw)] polli:flex-col polli:overflow-hidden polli:border-theme-text-strong/10 polli:bg-app-bg polli:shadow-xl polli:outline-none",n==="right"?"polli:ml-auto polli:border-l":"polli:border-r",i),children:r})})]})})};function ud({as:e,className:t,children:o,...r}){let n=e||"button";return s(n,{...n==="button"?{type:"button"}:void 0,...r,className:x("polli-control polli:flex polli:w-full polli:cursor-pointer polli:items-center polli:gap-2 polli:rounded-lg polli:bg-transparent polli:px-3 polli:py-2 polli:text-left polli:text-sm polli:font-medium polli:text-theme-text-base polli:no-underline polli:transition-colors polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover polli:focus-visible:bg-theme-bg-hover",t),children:o})}var ns=e=>{if(typeof e=="number")return e;if(typeof e!="string"||e.trim()==="")return;let t=Number(e);return Number.isFinite(t)?t:void 0},dd=e=>Math.min(100,Math.max(0,e)),Sh=({progress:e,value:t,defaultValue:o,min:r,max:n})=>{if(typeof e=="number"&&Number.isFinite(e))return dd(e);let i=ns(t??o);if(i===void 0)return;let l=ns(r)??0,a=ns(n)??100;return a<=l?100:dd((i-l)/(a-l)*100)},md=P(({className:e,defaultValue:t,max:o,min:r,progress:n,style:i,value:l,...a},c)=>{let p=Sh({progress:n,value:l,defaultValue:t,min:r,max:o}),u={...i,...p===void 0?null:{"--polli-slider-progress":`${p}%`}};return s("input",{ref:c,type:"range",min:r,max:o,value:l,defaultValue:t,style:u,className:x("polli-slider",e),...a})});var Oh={off:"polli:bg-switch-track-off",on:"polli:bg-switch-track-on",invalid:"polli:bg-switch-track-invalid"},fd=({checked:e,onChange:t,status:o,ariaLabel:r,disabled:n=!1,className:i})=>s("button",{type:"button",role:"switch","aria-checked":e,"aria-label":r??(e?"Turn off toggle":"Turn on toggle"),onClick:()=>t(!e),disabled:n,className:x("polli-control polli:relative polli:inline-flex polli:h-7 polli:w-12 polli:shrink-0 polli:items-center polli:rounded-full polli:transition polli:disabled:cursor-not-allowed polli:disabled:opacity-60",Oh[o??(e?"on":"off")],i),children:s("span",{className:x("polli:inline-block polli:h-5 polli:w-5 polli:rounded-full polli:bg-switch-thumb polli:shadow-sm polli:transition-transform",e?"polli:translate-x-6":"polli:translate-x-1")})});var gd={left:"polli:text-left",center:"polli:text-center",right:"polli:text-right"},Ah={default:"",warning:"polli:bg-intent-warning-bg-light/65",danger:"polli:bg-intent-danger-bg-light/65"},hd=({className:e,...t})=>s("table",{...t,className:x("polli:w-full polli:border-collapse polli:text-sm",e)}),xd=({className:e,...t})=>s("thead",{...t,className:x("polli:bg-transparent polli:text-micro polli:text-theme-text-muted",e)}),bd=({className:e,divider:t="themed",...o})=>s("tbody",{...o,className:x("polli:divide-y",t==="neutral"?"polli:divide-divider":"polli:divide-theme-border/65",e)}),vd=({intent:e="default",className:t,...o})=>s("tr",{...o,className:x("polli:transition-colors polli:hover:bg-theme-bg-subtle",Ah[e],t)}),yd=({align:e="left",active:t=!1,sortDirection:o,onSort:r,className:n,children:i,...l})=>{let a=b(Z,{children:[s("span",{children:i}),r&&s("span",{"aria-hidden":"true",className:"polli:inline-flex polli:w-3 polli:justify-center",children:t&&o?o==="asc"?"\u2191":"\u2193":""})]}),c=x("polli:px-3 polli:py-2 polli:font-bold polli:normal-case polli:tracking-wide",gd[e],t&&"polli:text-theme-text-strong",r&&"polli:cursor-pointer polli:select-none polli:hover:text-theme-text-strong",n);return r?s("th",{...l,"aria-sort":t&&o?o==="asc"?"ascending":"descending":"none",className:c,children:s("button",{type:"button",onClick:r,className:x("polli-control polli:inline-flex polli:w-full polli:items-center polli:gap-1 polli:bg-transparent polli:p-0 polli:font-bold polli:text-inherit",e==="right"&&"polli:justify-end",e==="center"&&"polli:justify-center"),children:a})}):s("th",{...l,className:c,children:a})},Cd=({align:e="left",numeric:t=!1,muted:o=!1,className:r,...n})=>s("td",{...n,className:x("polli:px-3 polli:py-2 polli:align-middle",gd[e],t&&"polli:tabular-nums",o&&"polli:text-theme-text-muted",r)});var wd=({children:e,disabled:t=!1,expanded:o,onClick:r,className:n})=>b("button",{type:"button","aria-expanded":o,disabled:t,onClick:r,className:x("polli-control polli:inline-flex polli:items-center polli:gap-1.5 polli:rounded-sm polli:text-left polli:text-theme-text-strong polli:transition-colors",t?"polli:cursor-default polli:opacity-60":"polli:cursor-pointer polli:hover:text-theme-text-soft",n),children:[s(de,{expanded:o,className:"polli:text-theme-text-soft"}),e]});return kd(Mh);})();
|
|
1
|
+
"use strict";var PollinationsUI=(()=>{var jn=Object.defineProperty;var Xd=Object.getOwnPropertyDescriptor;var Jd=Object.getOwnPropertyNames;var Qd=Object.prototype.hasOwnProperty;var em=(e,t)=>{for(var o in t)jn(e,o,{get:t[o],enumerable:!0})},tm=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Jd(t))!Qd.call(e,n)&&n!==o&&jn(e,n,{get:()=>t[n],enumerable:!(r=Xd(t,n))||r.enumerable});return e};var om=e=>tm(jn({},"__esModule",{value:!0}),e);var hh={};em(hh,{AccountIcon:()=>x0,AccountIdentity:()=>Op,AccountIdentityLink:()=>Ap,AccountMenu:()=>ll,Alert:()=>mn,AppBrand:()=>fn,AppHeader:()=>Bp,AppIcon:()=>h0,ArrowLeftIcon:()=>yg,ArrowRightIcon:()=>ji,AudioIcon:()=>B0,BeakerIcon:()=>b0,BookIcon:()=>y0,BotIcon:()=>v0,BrandMark:()=>Io,BugIcon:()=>C0,Button:()=>et,ButtonGroup:()=>Sd,Callout:()=>Vp,CardIcon:()=>gg,ChatConversation:()=>al,ChatConversationContent:()=>Hp,ChatIcon:()=>Q0,ChatMessage:()=>_p,ChatMessageActions:()=>Gp,ChatMessageContent:()=>zp,ChatMessageHeader:()=>Wp,ChatPromptInput:()=>Yp,ChatPromptInputFooter:()=>Zp,ChatPromptTextarea:()=>vl,CheckIcon:()=>Qe,ChevronIcon:()=>fe,Chip:()=>cr,ClipboardIcon:()=>Ki,ClockIcon:()=>qi,CloudUploadIcon:()=>S0,CodeBlock:()=>Jp,CodeIcon:()=>mg,Collapsible:()=>Qp,ColorModeToggle:()=>Ad,ConfirmationDialog:()=>uu,ContentHeader:()=>du,CopyButton:()=>It,CopyField:()=>mu,CopyStateIcon:()=>Tt,CubeIcon:()=>F0,DatabaseIcon:()=>fg,Dialog:()=>Pn,DialogBody:()=>En,DialogDescription:()=>Dl,DialogFooter:()=>Fl,DialogHeader:()=>or,DialogTitle:()=>Ll,DiscordIcon:()=>Yi,DownloadIcon:()=>T0,Drawer:()=>Md,Dropdown:()=>Pt,DropdownItem:()=>Ld,EarningsIcon:()=>Z0,EditableCombobox:()=>zu,EditableComboboxToken:()=>Wu,EmptyState:()=>Gu,ExpandIcon:()=>I0,ExternalLinkButton:()=>Uu,ExternalLinkIcon:()=>st,EyeIcon:()=>eg,EyeOffIcon:()=>tg,Eyebrow:()=>Tn,Field:()=>Ae,FieldStack:()=>$u,FileUpload:()=>Yu,GenApiIcon:()=>R0,GitBranchIcon:()=>O0,GitHubIcon:()=>Zi,GitPullRequestIcon:()=>A0,GlobeIcon:()=>vg,GoogleIcon:()=>D0,GraduationCapIcon:()=>M0,Heading:()=>To,IconButton:()=>ar,IconTile:()=>Dd,ImageIcon:()=>dn,InfoTip:()=>Zu,InlineLink:()=>Ro,Input:()=>Bn,InstagramIcon:()=>w0,KeyChip:()=>Ju,KeyIcon:()=>bg,LinkCard:()=>Qu,LinkedInIcon:()=>E0,LiveDot:()=>Fd,LoadingStatus:()=>Bd,LockIcon:()=>V0,LogInIcon:()=>H0,LogOutIcon:()=>_0,MailIcon:()=>W0,McpIcon:()=>z0,MediaPlaceholder:()=>ed,MegaphoneIcon:()=>ig,MenuIcon:()=>G0,MicIcon:()=>rg,MoonIcon:()=>el,MultiSelect:()=>nd,NavItem:()=>id,NewspaperIcon:()=>U0,OUTAGE_MESSAGE:()=>hs,OutageNotice:()=>ld,PauseIcon:()=>k0,PencilIcon:()=>xg,PeriodPicker:()=>bd,PlayIcon:()=>N0,PlusIcon:()=>Xi,PowerIcon:()=>pg,PulseIcon:()=>wg,ReasoningIcon:()=>lg,ReceiptIcon:()=>J0,RefreshIcon:()=>Cg,RobotIcon:()=>rl,RocketIcon:()=>sg,ScrollArea:()=>$e,SearchIcon:()=>ag,Section:()=>vd,SegmentedControl:()=>Vd,ShieldCheckIcon:()=>Pg,SignOutIcon:()=>cg,Skeleton:()=>Hd,Slider:()=>Wd,SocialCount:()=>yd,SparkleIcon:()=>ug,SparklesIcon:()=>L0,SpeakerIcon:()=>ng,SproutIcon:()=>hg,StableLabel:()=>zd,StarIcon:()=>dg,StatCard:()=>wd,SunIcon:()=>tl,Surface:()=>Et,Switch:()=>_n,TabButton:()=>Hn,Table:()=>Ud,TableBody:()=>jd,TableCell:()=>Yd,TableDisclosureButton:()=>Zd,TableHead:()=>$d,TableHeaderCell:()=>qd,TableRow:()=>Kd,TargetIcon:()=>j0,TerminalIcon:()=>$0,Text:()=>pe,Textarea:()=>Qo,TokensIcon:()=>K0,ToolCallDetails:()=>Ed,ToolIcon:()=>Ji,Tooltip:()=>tt,TrashIcon:()=>ol,TrendUpIcon:()=>Y0,UsageIcon:()=>q0,VideoIcon:()=>og,WalletIcon:()=>X0,WarningIcon:()=>Qi,XIcon:()=>to,XSocialIcon:()=>P0,cn:()=>Td,currentPeriod:()=>ad,formatCount:()=>Nd,getPeriodBucketKeys:()=>cd,isPeriodSelectable:()=>pr,periodBucketKeyToDate:()=>pd,periodFromDate:()=>pt,periodToWindow:()=>Ot,setColorMode:()=>Ps,useColorMode:()=>Es,useOnline:()=>xs,useScrollLock:()=>kd});function rm(){let e=globalThis.React;if(!e)throw new Error("@pollinations/ui browser bundle requires globalThis.React. Load React before @pollinations/ui.");return e}var nm=rm();var{Children:hr,Component:bh,Fragment:Y,Profiler:vh,PureComponent:yh,StrictMode:Ch,Suspense:wh,cache:Ph,cloneElement:xr,createContext:ks,createElement:br,createRef:Eh,forwardRef:E,isValidElement:vr,lazy:Th,memo:Ss,startTransition:Ih,use:Nh,useActionState:kh,useCallback:yr,useContext:Rs,useDebugValue:Sh,useDeferredValue:Rh,useEffect:Z,useEffectEvent:Oh,useId:me,useImperativeHandle:Ah,useInsertionEffect:Mh,useLayoutEffect:ut,useMemo:ce,useOptimistic:Lh,useReducer:Dh,useRef:G,useState:ee,useSyncExternalStore:Lt,useTransition:Fh,version:Bh}=nm;function Os(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Os(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function Cr(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Os(e))&&(r&&(r+=" "),r+=t);return r}var im=(e,t)=>{let o=new Array(e.length+t.length);for(let r=0;r<e.length;r++)o[r]=e[r];for(let r=0;r<t.length;r++)o[e.length+r]=t[r];return o},lm=(e,t)=>({classGroupId:e,validator:t}),Vs=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o});var As=[],sm="arbitrary..",am=e=>{let t=pm(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return cm(l);let a=l.split("-"),c=a[0]===""&&a.length>1?1:0;return Hs(a,c,t)},getConflictingClassGroupIds:(l,a)=>{if(a){let c=r[l],p=o[l];return c?p?im(p,c):c:p||As}return o[l]||As}}},Hs=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;let n=e[t],i=o.nextPart.get(n);if(i){let p=Hs(e,t+1,i);if(p)return p}let l=o.validators;if(l===null)return;let a=t===0?e.join("-"):e.slice(t).join("-"),c=l.length;for(let p=0;p<c;p++){let u=l[p];if(u.validator(a))return u.classGroupId}},cm=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),o=t.indexOf(":"),r=t.slice(0,o);return r?sm+r:void 0})(),pm=e=>{let{theme:t,classGroups:o}=e;return um(o,t)},um=(e,t)=>{let o=Vs();for(let r in e){let n=e[r];Yn(n,o,r,t)}return o},Yn=(e,t,o,r)=>{let n=e.length;for(let i=0;i<n;i++){let l=e[i];dm(l,t,o,r)}},dm=(e,t,o,r)=>{if(typeof e=="string"){mm(e,t,o);return}if(typeof e=="function"){fm(e,t,o,r);return}gm(e,t,o,r)},mm=(e,t,o)=>{let r=e===""?t:_s(t,e);r.classGroupId=o},fm=(e,t,o,r)=>{if(hm(e)){Yn(e(r),t,o,r);return}t.validators===null&&(t.validators=[]),t.validators.push(lm(o,e))},gm=(e,t,o,r)=>{let n=Object.entries(e),i=n.length;for(let l=0;l<i;l++){let[a,c]=n[l];Yn(c,_s(t,a),o,r)}},_s=(e,t)=>{let o=e,r=t.split("-"),n=r.length;for(let i=0;i<n;i++){let l=r[i],a=o.nextPart.get(l);a||(a=Vs(),o.nextPart.set(l,a)),o=a}return o},hm=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,xm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),r=Object.create(null),n=(i,l)=>{o[i]=l,t++,t>e&&(t=0,r=o,o=Object.create(null))};return{get(i){let l=o[i];if(l!==void 0)return l;if((l=r[i])!==void 0)return n(i,l),l},set(i,l){i in o?o[i]=l:n(i,l)}}};var bm=[],Ms=(e,t,o,r,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:r,isExternal:n}),vm=e=>{let{prefix:t,experimentalParseClassName:o}=e,r=n=>{let i=[],l=0,a=0,c=0,p,u=n.length;for(let v=0;v<u;v++){let b=n[v];if(l===0&&a===0){if(b===":"){i.push(n.slice(c,v)),c=v+1;continue}if(b==="/"){p=v;continue}}b==="["?l++:b==="]"?l--:b==="("?a++:b===")"&&a--}let d=i.length===0?n:n.slice(c),g=d,f=!1;d.endsWith("!")?(g=d.slice(0,-1),f=!0):d.startsWith("!")&&(g=d.slice(1),f=!0);let m=p&&p>c?p-c:void 0;return Ms(i,f,g,m)};if(t){let n=t+":",i=r;r=l=>l.startsWith(n)?i(l.slice(n.length)):Ms(bm,!1,l,void 0,!0)}if(o){let n=r;r=i=>o({className:i,parseClassName:n})}return r},ym=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((o,r)=>{t.set(o,1e6+r)}),o=>{let r=[],n=[];for(let i=0;i<o.length;i++){let l=o[i],a=l[0]==="[",c=t.has(l);a||c?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(l)):n.push(l)}return n.length>0&&(n.sort(),r.push(...n)),r}},Cm=e=>({cache:xm(e.cacheSize),parseClassName:vm(e),sortModifiers:ym(e),...am(e)}),wm=/\s+/,Pm=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:i}=t,l=[],a=e.trim().split(wm),c="";for(let p=a.length-1;p>=0;p-=1){let u=a[p],{isExternal:d,modifiers:g,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:v}=o(u);if(d){c=u+(c.length>0?" "+c:c);continue}let b=!!v,y=r(b?m.substring(0,v):m);if(!y){if(!b){c=u+(c.length>0?" "+c:c);continue}if(y=r(m),!y){c=u+(c.length>0?" "+c:c);continue}b=!1}let T=g.length===0?"":g.length===1?g[0]:i(g).join(":"),w=f?T+"!":T,P=w+y;if(l.indexOf(P)>-1)continue;l.push(P);let O=n(y,b);for(let A=0;A<O.length;++A){let _=O[A];l.push(w+_)}c=u+(c.length>0?" "+c:c)}return c},Em=(...e)=>{let t=0,o,r,n="";for(;t<e.length;)(o=e[t++])&&(r=Ws(o))&&(n&&(n+=" "),n+=r);return n},Ws=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Ws(e[r]))&&(o&&(o+=" "),o+=t);return o},Ls=(e,...t)=>{let o,r,n,i,l=c=>{let p=t.reduce((u,d)=>d(u),e());return o=Cm(p),r=o.cache.get,n=o.cache.set,i=a,a(c)},a=c=>{let p=r(c);if(p)return p;let u=Pm(c,o);return n(c,u),u};return i=l,(...c)=>i(Em(...c))},Tm=[],ue=e=>{let t=o=>o[e]||Tm;return t.isThemeGetter=!0,t},zs=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Gs=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Im=/^\d+\/\d+$/,Nm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,km=/\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$/,Sm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Rm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Om=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,io=e=>Im.test(e),j=e=>!!e&&!Number.isNaN(Number(e)),dt=e=>!!e&&Number.isInteger(Number(e)),Kn=e=>e.endsWith("%")&&j(e.slice(0,-1)),rt=e=>Nm.test(e),Am=()=>!0,Mm=e=>km.test(e)&&!Sm.test(e),Us=()=>!1,Lm=e=>Rm.test(e),Dm=e=>Om.test(e),Fm=e=>!V(e)&&!H(e),Bm=e=>lo(e,Ks,Us),V=e=>zs.test(e),Dt=e=>lo(e,qs,Mm),qn=e=>lo(e,zm,j),Ds=e=>lo(e,$s,Us),Vm=e=>lo(e,js,Dm),wr=e=>lo(e,Ys,Lm),H=e=>Gs.test(e),Mo=e=>so(e,qs),Hm=e=>so(e,Gm),Fs=e=>so(e,$s),_m=e=>so(e,Ks),Wm=e=>so(e,js),Pr=e=>so(e,Ys,!0),lo=(e,t,o)=>{let r=zs.exec(e);return r?r[1]?t(r[1]):o(r[2]):!1},so=(e,t,o=!1)=>{let r=Gs.exec(e);return r?r[1]?t(r[1]):o:!1},$s=e=>e==="position"||e==="percentage",js=e=>e==="image"||e==="url",Ks=e=>e==="length"||e==="size"||e==="bg-size",qs=e=>e==="length",zm=e=>e==="number",Gm=e=>e==="family-name",Ys=e=>e==="shadow";var Bs=()=>{let e=ue("color"),t=ue("font"),o=ue("text"),r=ue("font-weight"),n=ue("tracking"),i=ue("leading"),l=ue("breakpoint"),a=ue("container"),c=ue("spacing"),p=ue("radius"),u=ue("shadow"),d=ue("inset-shadow"),g=ue("text-shadow"),f=ue("drop-shadow"),m=ue("blur"),v=ue("perspective"),b=ue("aspect"),y=ue("ease"),T=ue("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...P(),H,V],A=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],C=()=>[H,V,c],k=()=>[io,"full","auto",...C()],D=()=>[dt,"none","subgrid",H,V],N=()=>["auto",{span:["full",dt,H,V]},dt,H,V],R=()=>[dt,"auto",H,V],M=()=>["auto","min","max","fr",H,V],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],L=()=>["start","end","center","stretch","center-safe","end-safe"],W=()=>["auto",...C()],q=()=>[io,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],B=()=>[e,H,V],ne=()=>[...P(),Fs,Ds,{position:[H,V]}],xe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Mt=()=>["auto","cover","contain",_m,Bm,{size:[H,V]}],Pe=()=>[Kn,Mo,Dt],ae=()=>["","none","full",p,H,V],Se=()=>["",j,Mo,Dt],dr=()=>["solid","dashed","dotted","double"],Is=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>[j,Kn,Fs,Ds],Ns=()=>["","none",m,H,V],mr=()=>["none",j,H,V],fr=()=>["none",j,H,V],$n=()=>[j,H,V],gr=()=>[io,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[rt],breakpoint:[rt],color:[Am],container:[rt],"drop-shadow":[rt],ease:["in","out","in-out"],font:[Fm],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[rt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[rt],shadow:[rt],spacing:["px",j],text:[rt],"text-shadow":[rt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",io,V,H,b]}],container:["container"],columns:[{columns:[j,V,H,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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"],sr:["sr-only","not-sr-only"],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:O()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[dt,"auto",H,V]}],basis:[{basis:[io,"full","auto",a,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[j,io,"auto","initial","none",V]}],grow:[{grow:["",j,H,V]}],shrink:[{shrink:["",j,H,V]}],order:[{order:[dt,"first","last","none",H,V]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":M()}],"auto-rows":[{"auto-rows":M()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...L(),"normal"]}],"justify-self":[{"justify-self":["auto",...L()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...L(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...L(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...L(),"baseline"]}],"place-self":[{"place-self":["auto",...L()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:W()}],mx:[{mx:W()}],my:[{my:W()}],ms:[{ms:W()}],me:[{me:W()}],mt:[{mt:W()}],mr:[{mr:W()}],mb:[{mb:W()}],ml:[{ml:W()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[a,"screen",...q()]}],"min-w":[{"min-w":[a,"screen","none",...q()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[l]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",o,Mo,Dt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,H,qn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Kn,V]}],"font-family":[{font:[Hm,V,t]}],"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:[n,H,V]}],"line-clamp":[{"line-clamp":[j,"none",H,qn]}],leading:[{leading:[i,...C()]}],"list-image":[{"list-image":["none",H,V]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",H,V]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...dr(),"wavy"]}],"text-decoration-thickness":[{decoration:[j,"from-font","auto",H,Dt]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[j,"auto",H,V]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",H,V]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",H,V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:xe()}],"bg-size":[{bg:Mt()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},dt,H,V],radial:["",H,V],conic:[dt,H,V]},Wm,Vm]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:Pe()}],"gradient-via-pos":[{via:Pe()}],"gradient-to-pos":[{to:Pe()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:Se()}],"border-w-x":[{"border-x":Se()}],"border-w-y":[{"border-y":Se()}],"border-w-s":[{"border-s":Se()}],"border-w-e":[{"border-e":Se()}],"border-w-t":[{"border-t":Se()}],"border-w-r":[{"border-r":Se()}],"border-w-b":[{"border-b":Se()}],"border-w-l":[{"border-l":Se()}],"divide-x":[{"divide-x":Se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...dr(),"hidden","none"]}],"divide-style":[{divide:[...dr(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...dr(),"none","hidden"]}],"outline-offset":[{"outline-offset":[j,H,V]}],"outline-w":[{outline:["",j,Mo,Dt]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",u,Pr,wr]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",d,Pr,wr]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[j,Dt]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":Se()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",g,Pr,wr]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[j,H,V]}],"mix-blend":[{"mix-blend":[...Is(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Is()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[j]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[H,V]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[j]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:xe()}],"mask-size":[{mask:Mt()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",H,V]}],filter:[{filter:["","none",H,V]}],blur:[{blur:Ns()}],brightness:[{brightness:[j,H,V]}],contrast:[{contrast:[j,H,V]}],"drop-shadow":[{"drop-shadow":["","none",f,Pr,wr]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",j,H,V]}],"hue-rotate":[{"hue-rotate":[j,H,V]}],invert:[{invert:["",j,H,V]}],saturate:[{saturate:[j,H,V]}],sepia:[{sepia:["",j,H,V]}],"backdrop-filter":[{"backdrop-filter":["","none",H,V]}],"backdrop-blur":[{"backdrop-blur":Ns()}],"backdrop-brightness":[{"backdrop-brightness":[j,H,V]}],"backdrop-contrast":[{"backdrop-contrast":[j,H,V]}],"backdrop-grayscale":[{"backdrop-grayscale":["",j,H,V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[j,H,V]}],"backdrop-invert":[{"backdrop-invert":["",j,H,V]}],"backdrop-opacity":[{"backdrop-opacity":[j,H,V]}],"backdrop-saturate":[{"backdrop-saturate":[j,H,V]}],"backdrop-sepia":[{"backdrop-sepia":["",j,H,V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",H,V]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[j,"initial",H,V]}],ease:[{ease:["linear","initial",y,H,V]}],delay:[{delay:[j,H,V]}],animate:[{animate:["none",T,H,V]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,H,V]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:mr()}],"rotate-x":[{"rotate-x":mr()}],"rotate-y":[{"rotate-y":mr()}],"rotate-z":[{"rotate-z":mr()}],scale:[{scale:fr()}],"scale-x":[{"scale-x":fr()}],"scale-y":[{"scale-y":fr()}],"scale-z":[{"scale-z":fr()}],"scale-3d":["scale-3d"],skew:[{skew:$n()}],"skew-x":[{"skew-x":$n()}],"skew-y":[{"skew-y":$n()}],transform:[{transform:[H,V,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:gr()}],"translate-x":[{"translate-x":gr()}],"translate-y":[{"translate-y":gr()}],"translate-z":[{"translate-z":gr()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",H,V]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",H,V]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[j,Mo,Dt,qn]}],stroke:[{stroke:["none",...B()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Um=(e,{cacheSize:t,prefix:o,experimentalParseClassName:r,extend:n={},override:i={}})=>(Lo(e,"cacheSize",t),Lo(e,"prefix",o),Lo(e,"experimentalParseClassName",r),Er(e.theme,i.theme),Er(e.classGroups,i.classGroups),Er(e.conflictingClassGroups,i.conflictingClassGroups),Er(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Lo(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),Tr(e.theme,n.theme),Tr(e.classGroups,n.classGroups),Tr(e.conflictingClassGroups,n.conflictingClassGroups),Tr(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),Zs(e,n,"orderSensitiveModifiers"),e),Lo=(e,t,o)=>{o!==void 0&&(e[t]=o)},Er=(e,t)=>{if(t)for(let o in t)Lo(e,o,t[o])},Tr=(e,t)=>{if(t)for(let o in t)Zs(e,t,o)},Zs=(e,t,o)=>{let r=t[o];r!==void 0&&(e[o]=e[o]?e[o].concat(r):r)},Ir=(e,...t)=>typeof e=="function"?Ls(Bs,e,...t):Ls(()=>Um(Bs(),e),...t);var $m=Ir({prefix:"polli",extend:{theme:{text:["micro"]}}});function x(...e){return $m(Cr(...e))}var jm=br;function s(e,t,o){let r=o===void 0?t:{...t??{},key:String(o)};return jm(e,r)}var h=s;var fe=({expanded:e,className:t})=>s("svg",{"aria-hidden":"true",width:"12",height:"12",viewBox:"0 0 12 12",className:x("polli:shrink-0 polli:transition-transform polli:duration-200 polli:ease-out",e&&"polli:rotate-180",t),children:s("path",{d:"M3 4.5 6 7.5l3-3",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})});var Re=(e,t=[])=>({parts:(...o)=>{if(Km(t))return Re(e,o);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...o)=>Re(e,[...t,...o]),omit:(...o)=>Re(e,t.filter(r=>!o.includes(r))),rename:o=>Re(o,t),keys:()=>t,build:()=>[...new Set(t)].reduce((o,r)=>Object.assign(o,{[r]:{selector:[`&[data-scope="${ao(e)}"][data-part="${ao(r)}"]`,`& [data-scope="${ao(e)}"][data-part="${ao(r)}"]`].join(", "),attrs:{"data-scope":ao(e),"data-part":ao(r)}}}),{})}),ao=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Km=e=>e.length===0;var qm=Re("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger"),_e=qm.build();var Ym=Object.defineProperty,Zm=(e,t,o)=>t in e?Ym(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Nr=(e,t,o)=>Zm(e,typeof t!="symbol"?t+"":t,o);function kr(e){if(e)try{if(e.ownerDocument.activeElement!==e)return;let t=e.value.length;e.setSelectionRange(t,t)}catch{}}var Do=()=>{},Fo=e=>typeof e=="object"&&e!==null;var $=e=>e?"":void 0,nt=e=>e?"true":void 0;var Xm=1,Jm=9,Qm=11;var J=e=>Fo(e)&&e.nodeType===Xm&&typeof e.nodeName=="string",Bo=e=>Fo(e)&&e.nodeType===Jm,ef=e=>Fo(e)&&e===e.window;var Xs=e=>J(e)?e.localName||"":"#document";function Js(e){return["html","body","#document"].includes(Xs(e))}var Qs=e=>Fo(e)&&e.nodeType!==void 0,it=e=>Qs(e)&&e.nodeType===Qm&&"host"in e,Zn=e=>J(e)&&e.localName==="input",ea=e=>!!e?.matches("a[href]"),ta=e=>J(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1;function Ft(e){if(!e)return!1;let t=e.getRootNode();return We(t)===e}var tf=/(textarea|select)/;function oa(e){if(e==null||!J(e))return!1;try{return Zn(e)&&e.selectionStart!=null||tf.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Bt(e,t){if(!e||!t||!J(e)||!Qs(t))return!1;if(J(t)&&e===t||e.contains(t))return!0;let o=t.getRootNode?.();if(o&&it(o)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Q(e){return Bo(e)?e:ef(e)?e.document:e?.ownerDocument??document}function of(e){return Q(e).documentElement}function te(e){return it(e)?te(e.host):Bo(e)?e.defaultView??window:J(e)?e.ownerDocument?.defaultView??window:window}function We(e){let t=e.activeElement;for(;t?.shadowRoot;){let o=t.shadowRoot.activeElement;if(!o||o===t)break;t=o}return t}function ra(e){if(Xs(e)==="html")return e;let t=e.assignedSlot||e.parentNode||it(e)&&e.host||of(e);return it(t)?t.host:t}function Sr(e){let t;try{if(t=e.getRootNode({composed:!0}),Bo(t)||it(t))return t}catch{}return e.ownerDocument??document}var Xn=new WeakMap;function je(e){return Xn.has(e)||Xn.set(e,te(e).getComputedStyle(e)),Xn.get(e)}var Jn=new Set(["menu","listbox","dialog","grid","tree","region","application"]),rf=e=>Jn.has(e),na=e=>e.getAttribute("aria-controls")?.split(" ")||[];function Rr(e,t){let o=new Set,r=Sr(e),n=i=>{let l=i.querySelectorAll("[aria-controls]");for(let a of l){if(a.getAttribute("aria-expanded")!=="true")continue;let c=na(a);for(let p of c){if(!p||o.has(p))continue;o.add(p);let u=r.getElementById(p);if(u){let d=u.getAttribute("role"),g=u.getAttribute("aria-modal")==="true";if(d&&rf(d)&&!g&&(u===t||u.contains(t)||n(u)))return!0}}}return!1};return n(e)}function Qn(e,t){let o=Sr(e),r=new Set,n=i=>{let l=i.querySelectorAll("[aria-controls]");for(let a of l){if(a.getAttribute("aria-expanded")!=="true")continue;let c=na(a);for(let p of c){if(!p||r.has(p))continue;r.add(p);let u=o.getElementById(p);if(u){let d=u.getAttribute("role"),g=u.getAttribute("aria-modal")==="true";d&&Jn.has(d)&&!g&&(t(u),n(u))}}}};n(e)}function ia(e){let t=new Set;return Qn(e,o=>{e.contains(o)||t.add(o)}),Array.from(t)}function nf(e){let t=e.getAttribute("role");return!!(t&&Jn.has(t))}function lf(e){return e.hasAttribute("aria-controls")&&e.getAttribute("aria-expanded")==="true"}function la(e){return lf(e)?!0:!!e.querySelector?.('[aria-controls][aria-expanded="true"]')}function sa(e){if(!e.id)return!1;let t=Sr(e),o=CSS.escape(e.id),r=`[aria-controls~="${o}"][aria-expanded="true"], [aria-controls="${o}"][aria-expanded="true"]`;return!!(t.querySelector(r)&&nf(e))}var Or=()=>typeof document<"u";function sf(){return navigator.userAgentData?.platform??navigator.platform}function af(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:o})=>`${t}/${o}`).join(" "):navigator.userAgent}var ei=e=>Or()&&e.test(sf()),aa=e=>Or()&&e.test(af()),cf=e=>Or()&&e.test(navigator.vendor),ti=()=>Or()&&!!navigator.maxTouchPoints,pf=()=>ei(/^iPhone/i),uf=()=>ei(/^iPad/i)||Vt()&&navigator.maxTouchPoints>1,oi=()=>pf()||uf(),ri=()=>Vt()||oi(),Vt=()=>ei(/^Mac/i),ca=()=>ri()&&cf(/apple/i),pa=()=>aa(/Firefox/i);var ua=()=>aa(/Android/i);function df(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function ge(e){return df(e)?.[0]??e.target}function ma(e){let t=e.currentTarget;if(!t||!t.matches("a[href], button[type='submit'], input[type='submit']"))return!1;let r=e.button===1,n=mf(e);return r||n}function fa(e){let t=e.currentTarget;if(!t)return!1;let o=t.localName;return e.altKey?o==="a"||o==="button"&&t.type==="submit"||o==="input"&&t.type==="submit":!1}function ga(e){return gf(e).isComposing||e.keyCode===229}function mf(e){return Vt()?e.metaKey:e.ctrlKey}function ha(e){return e.pointerType===""&&e.isTrusted?!0:ua()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var Ht=e=>e.button===0,Ar=e=>e.button===2||Vt()&&e.ctrlKey&&e.button===0;var ff={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},da={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function ni(e,t={}){let{dir:o="ltr",orientation:r="horizontal"}=t,n=e.key;return n=ff[n]??n,o==="rtl"&&r==="horizontal"&&n in da&&(n=da[n]),n}function gf(e){return e.nativeEvent??e}var Ce=(e,t,o,r)=>{let n=typeof e=="function"?e():e;return n?.addEventListener(t,o,r),()=>{n?.removeEventListener(t,o,r)}};var xa=e=>J(e)&&e.tagName==="IFRAME",hf=/^(audio|video|details)$/;function ba(e){let t=e.getAttribute("tabindex");return t?parseInt(t,10):NaN}var xf=e=>!Number.isNaN(ba(e)),bf=e=>ba(e)<0;function vf(e){return Zn(e)&&e.type==="radio"}function yf(e){if(!vf(e)||!e.name||e.checked)return!0;let t=`input[type="radio"][name="${CSS.escape(e.name)}"]`,o=e.form??e.ownerDocument,r=Array.from(o.querySelectorAll(t)).filter(i=>i.form===e.form&&Le(i)),n=r.find(i=>i.checked);return n?n===e:r[0]===e}function Cf(e,t){if(!t)return null;if(t===!0)return e.shadowRoot||null;let o=t(e);return(o===!0?e.shadowRoot:o)||null}function va(e,t,o){let r=[...e],n=[...e],i=new Set,l=new Map;e.forEach((c,p)=>l.set(c,p));let a=0;for(;a<n.length;){let c=n[a++];if(!c||i.has(c))continue;i.add(c);let p=Cf(c,t);if(p){let u=Array.from(p.querySelectorAll(Mr)).filter(o),d=l.get(c);if(d!==void 0){let g=d+1;r.splice(g,0,...u),u.forEach((f,m)=>{l.set(f,g+m)});for(let f=g+u.length;f<r.length;f++)l.set(r[f],f)}else{let g=r.length;r.push(...u),u.forEach((f,m)=>{l.set(f,g+m)})}n.push(...u)}}return r}var Mr="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",Lr=(e,t={})=>{if(!e)return[];let{includeContainer:o=!1,getShadowRoot:r}=t,n=Array.from(e.querySelectorAll(Mr));(o==!0||o=="if-empty"&&n.length===0)&&J(e)&&Le(e)&&n.unshift(e);let l=[];for(let a of n)if(Le(a)){if(xa(a)&&a.contentDocument){let c=a.contentDocument.body;l.push(...Lr(c,{getShadowRoot:r}));continue}l.push(a)}return r?va(l,r,Le):l};function Le(e){return!J(e)||e.closest("[inert]")?!1:e.matches(Mr)&&ta(e)}function _t(e,t={}){if(!e)return[];let{includeContainer:o,getShadowRoot:r}=t,n=Array.from(e.querySelectorAll(Mr));o&&mt(e)&&n.unshift(e);let i=[];for(let l of n)if(mt(l)){if(xa(l)&&l.contentDocument){let a=l.contentDocument.body;i.push(..._t(a,{getShadowRoot:r}));continue}i.push(l)}if(r){let l=va(i,r,mt);return!l.length&&o?n:l}return!i.length&&o?n:i}function mt(e){return J(e)&&e.tabIndex>0?!0:!Le(e)||bf(e)?!1:yf(e)}function ii(e,t={}){let o=_t(e,t),r=o[0]||null,n=o[o.length-1]||null;return[r,n]}function ya(e,t={}){let{current:o,getShadowRoot:r}=t,n=_t(e,{getShadowRoot:r}),i=e?.ownerDocument||document,l=o??We(i);if(!l)return null;let a=n.indexOf(l);return n[a+1]||null}function co(e){return e.tabIndex<0&&(hf.test(e.localName)||oa(e))&&!xf(e)?0:e.tabIndex}function Vo(e){let{root:t,getInitialEl:o,filter:r,enabled:n=!0}=e;if(!n)return;let i=null;if(i||(i=typeof o=="function"?o():o),i||(i=t?.querySelector("[data-autofocus],[autofocus]")),!i){let l=_t(t);i=r?l.filter(r)[0]:l[0]}return i||t||void 0}var wf=class Ca{constructor(){Nr(this,"id",null),Nr(this,"fn_cleanup"),Nr(this,"cleanup",()=>{this.cancel()})}static create(){return new Ca}request(t){this.cancel(),this.id=globalThis.requestAnimationFrame(()=>{this.id=null,this.fn_cleanup=t?.()})}cancel(){this.id!==null&&(globalThis.cancelAnimationFrame(this.id),this.id=null),this.fn_cleanup?.(),this.fn_cleanup=void 0}isActive(){return this.id!==null}};function K(e){let t=wf.create();return t.request(e),t.cleanup}function po(e){let t=new Set;function o(r){let n=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(n))}return o(()=>o(e)),function(){t.forEach(n=>n())}}function wa(e,t,o){let r=K(()=>{e.removeEventListener(t,n,!0),o()}),n=()=>{r(),o()};return e.addEventListener(t,n,{once:!0,capture:!0}),r}function Pf(e,t){if(!e)return;let{attributes:o,callback:r}=t,n=e.ownerDocument.defaultView||window,i=new n.MutationObserver(l=>{for(let a of l)a.type==="attributes"&&a.attributeName&&o.includes(a.attributeName)&&r(a)});return i.observe(e,{attributes:!0,attributeFilter:o}),()=>i.disconnect()}function Pa(e,t){let{defer:o}=t,r=o?K:i=>i(),n=[];return n.push(r(()=>{let i=typeof e=="function"?e():e;n.push(Pf(i,t))})),()=>{n.forEach(i=>i?.())}}function Ea(e){let t=()=>{let o=te(e);e.dispatchEvent(new o.MouseEvent("click"))};pa()?wa(e,"keyup",t):queueMicrotask(t)}function Dr(e){let t=ra(e);return Js(t)?Q(t).body:J(t)&&li(t)?t:Dr(t)}var Ef=/auto|scroll|overlay|hidden|clip/,Tf=new Set(["inline","contents"]);function li(e){let t=te(e),{overflow:o,overflowX:r,overflowY:n,display:i}=t.getComputedStyle(e);return Ef.test(o+n+r)&&!Tf.has(i)}function If(e,t={}){let{triggerElement:o,onFocus:r,onFocusEnter:n,getShadowRoot:i}=t,l=e?.ownerDocument||document,a=l.body;function c(p){if(p.key!=="Tab")return;let u=null,[d,g]=ii(e,{includeContainer:!0,getShadowRoot:i}),f=ya(a,{current:o,getShadowRoot:i}),m=!d&&!g;p.shiftKey&&Ft(f)?(n?.(),u=g):p.shiftKey&&(Ft(d)||m)?u=o:!p.shiftKey&&Ft(o)?(n?.(),u=d):!p.shiftKey&&(Ft(g)||m)&&(u=f),u&&(p.preventDefault(),typeof r=="function"?r(u):u.focus())}return Ce(l,"keydown",c,!0)}function Ta(e,t){let{defer:o,triggerElement:r,...n}=t,i=o?K:a=>a(),l=[];return l.push(i(()=>{let a=typeof e=="function"?e():e,c=typeof r=="function"?r():r;l.push(If(a,{triggerElement:c,...n}))})),()=>{l.forEach(a=>a?.())}}function Fr(e,t){return Array.from(e?.querySelectorAll(t)??[])}function Ia(e,t){return e?.querySelector(t)??null}function Nf(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function si(e,t){let{rootEl:o,...r}=t||{};!e||!o||!li(o)||!Nf(o)||e.scrollIntoView(r)}function Wt(e,t){if(!e)return Do;let o=Object.keys(t).reduce((r,n)=>(r[n]=e.style.getPropertyValue(n),r),{});return kf(o,t)?Do:(Object.assign(e.style,t),()=>{Object.assign(e.style,o),e.style.length===0&&e.removeAttribute("style")})}function Na(e,t,o){if(!e)return Do;let r=e.style.getPropertyValue(t);return r===o?Do:(e.style.setProperty(t,o),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")})}function kf(e,t){return Object.keys(e).every(o=>e[o]===t[o])}function Sf(e,t,o){let{signal:r}=t;return[new Promise((l,a)=>{let c=setTimeout(()=>{a(new Error(`Timeout of ${o}ms exceeded`))},o);r.addEventListener("abort",()=>{clearTimeout(c),a(new DOMException("Promise aborted","AbortError"))}),e.then(p=>{r.aborted||(clearTimeout(c),l(p))}).catch(p=>{r.aborted||(clearTimeout(c),a(p))})}),()=>t.abort()]}function ka(e,t){let{timeout:o,rootNode:r}=t,n=te(r),i=Q(r),l=new n.AbortController;return Sf(new Promise(a=>{let c=e();if(c){a(c);return}let p=new n.MutationObserver(()=>{let u=e();u&&u.isConnected&&(p.disconnect(),a(u))});p.observe(i.body,{childList:!0,subtree:!0})}),l,o)}var Oa=["top","right","bottom","left"];var uo=Math.min,ft=Math.max;var Rf={left:"right",right:"left",bottom:"top",top:"bottom"};function Vr(e,t,o){return ft(e,uo(t,o))}function Ke(e,t){return typeof e=="function"?e(t):e}function qe(e){return e.split("-")[0]}function zt(e){return e.split("-")[1]}function Hr(e){return e==="x"?"y":"x"}function _r(e){return e==="y"?"height":"width"}function ze(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Wr(e){return Hr(ze(e))}function Aa(e,t,o){o===void 0&&(o=!1);let r=zt(e),n=Wr(e),i=_r(n),l=n==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Ho(l)),[l,Ho(l)]}function Ma(e){let t=Ho(e);return[Br(e),t,Br(t)]}function Br(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Sa=["left","right"],Ra=["right","left"],Of=["top","bottom"],Af=["bottom","top"];function Mf(e,t,o){switch(e){case"top":case"bottom":return o?t?Ra:Sa:t?Sa:Ra;case"left":case"right":return t?Of:Af;default:return[]}}function La(e,t,o,r){let n=zt(e),i=Mf(qe(e),o==="start",r);return n&&(i=i.map(l=>l+"-"+n),t&&(i=i.concat(i.map(Br)))),i}function Ho(e){let t=qe(e);return Rf[t]+e.slice(t.length)}function Lf(e){return{top:0,right:0,bottom:0,left:0,...e}}function ai(e){return typeof e!="number"?Lf(e):{top:e,right:e,bottom:e,left:e}}function Gt(e){let{x:t,y:o,width:r,height:n}=e;return{width:r,height:n,top:o,left:t,right:t+r,bottom:o+n,x:t,y:o}}function Da(e,t,o){let{reference:r,floating:n}=e,i=ze(t),l=Wr(t),a=_r(l),c=qe(t),p=i==="y",u=r.x+r.width/2-n.width/2,d=r.y+r.height/2-n.height/2,g=r[a]/2-n[a]/2,f;switch(c){case"top":f={x:u,y:r.y-n.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-n.width,y:d};break;default:f={x:r.x,y:r.y}}switch(zt(t)){case"start":f[l]-=g*(o&&p?-1:1);break;case"end":f[l]+=g*(o&&p?-1:1);break}return f}async function Va(e,t){var o;t===void 0&&(t={});let{x:r,y:n,platform:i,rects:l,elements:a,strategy:c}=e,{boundary:p="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:g=!1,padding:f=0}=Ke(t,e),m=ai(f),b=a[g?d==="floating"?"reference":"floating":d],y=Gt(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(b)))==null||o?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:p,rootBoundary:u,strategy:c})),T=d==="floating"?{x:r,y:n,width:l.floating.width,height:l.floating.height}:l.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),P=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},O=Gt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:T,offsetParent:w,strategy:c}):T);return{top:(y.top-O.top+m.top)/P.y,bottom:(O.bottom-y.bottom+m.bottom)/P.y,left:(y.left-O.left+m.left)/P.x,right:(O.right-y.right+m.right)/P.x}}var Df=50,Ha=async(e,t,o)=>{let{placement:r="bottom",strategy:n="absolute",middleware:i=[],platform:l}=o,a=l.detectOverflow?l:{...l,detectOverflow:Va},c=await(l.isRTL==null?void 0:l.isRTL(t)),p=await l.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:d}=Da(p,r,c),g=r,f=0,m={};for(let v=0;v<i.length;v++){let b=i[v];if(!b)continue;let{name:y,fn:T}=b,{x:w,y:P,data:O,reset:A}=await T({x:u,y:d,initialPlacement:r,placement:g,strategy:n,middlewareData:m,rects:p,platform:a,elements:{reference:e,floating:t}});u=w??u,d=P??d,m[y]={...m[y],...O},A&&f<Df&&(f++,typeof A=="object"&&(A.placement&&(g=A.placement),A.rects&&(p=A.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:n}):A.rects),{x:u,y:d}=Da(p,g,c)),v=-1)}return{x:u,y:d,placement:g,strategy:n,middlewareData:m}},_a=e=>({name:"arrow",options:e,async fn(t){let{x:o,y:r,placement:n,rects:i,platform:l,elements:a,middlewareData:c}=t,{element:p,padding:u=0}=Ke(e,t)||{};if(p==null)return{};let d=ai(u),g={x:o,y:r},f=Wr(n),m=_r(f),v=await l.getDimensions(p),b=f==="y",y=b?"top":"left",T=b?"bottom":"right",w=b?"clientHeight":"clientWidth",P=i.reference[m]+i.reference[f]-g[f]-i.floating[m],O=g[f]-i.reference[f],A=await(l.getOffsetParent==null?void 0:l.getOffsetParent(p)),_=A?A[w]:0;(!_||!await(l.isElement==null?void 0:l.isElement(A)))&&(_=a.floating[w]||i.floating[m]);let C=P/2-O/2,k=_/2-v[m]/2-1,D=uo(d[y],k),N=uo(d[T],k),R=D,M=_-v[m]-N,z=_/2-v[m]/2+C,L=Vr(R,z,M),W=!c.arrow&&zt(n)!=null&&z!==L&&i.reference[m]/2-(z<R?D:N)-v[m]/2<0,q=W?z<R?z-R:z-M:0;return{[f]:g[f]+q,data:{[f]:L,centerOffset:z-L-q,...W&&{alignmentOffset:q}},reset:W}}});var Wa=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,r;let{placement:n,middlewareData:i,rects:l,initialPlacement:a,platform:c,elements:p}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:g,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...b}=Ke(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};let y=qe(n),T=ze(a),w=qe(a)===a,P=await(c.isRTL==null?void 0:c.isRTL(p.floating)),O=g||(w||!v?[Ho(a)]:Ma(a)),A=m!=="none";!g&&A&&O.push(...La(a,v,m,P));let _=[a,...O],C=await c.detectOverflow(t,b),k=[],D=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&k.push(C[y]),d){let z=Aa(n,l,P);k.push(C[z[0]],C[z[1]])}if(D=[...D,{placement:n,overflows:k}],!k.every(z=>z<=0)){var N,R;let z=(((N=i.flip)==null?void 0:N.index)||0)+1,L=_[z];if(L&&(!(d==="alignment"?T!==ze(L):!1)||D.every(B=>ze(B.placement)===T?B.overflows[0]>0:!0)))return{data:{index:z,overflows:D},reset:{placement:L}};let W=(R=D.filter(q=>q.overflows[0]<=0).sort((q,B)=>q.overflows[1]-B.overflows[1])[0])==null?void 0:R.placement;if(!W)switch(f){case"bestFit":{var M;let q=(M=D.filter(B=>{if(A){let ne=ze(B.placement);return ne===T||ne==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(ne=>ne>0).reduce((ne,xe)=>ne+xe,0)]).sort((B,ne)=>B[1]-ne[1])[0])==null?void 0:M[0];q&&(W=q);break}case"initialPlacement":W=a;break}if(n!==W)return{reset:{placement:W}}}return{}}}};function Fa(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ba(e){return Oa.some(t=>e[t]>=0)}var za=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:o,platform:r}=t,{strategy:n="referenceHidden",...i}=Ke(e,t);switch(n){case"referenceHidden":{let l=await r.detectOverflow(t,{...i,elementContext:"reference"}),a=Fa(l,o.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ba(a)}}}case"escaped":{let l=await r.detectOverflow(t,{...i,altBoundary:!0}),a=Fa(l,o.floating);return{data:{escapedOffsets:a,escaped:Ba(a)}}}default:return{}}}}};var Ga=new Set(["left","top"]);async function Ff(e,t){let{placement:o,platform:r,elements:n}=e,i=await(r.isRTL==null?void 0:r.isRTL(n.floating)),l=qe(o),a=zt(o),c=ze(o)==="y",p=Ga.has(l)?-1:1,u=i&&c?-1:1,d=Ke(t,e),{mainAxis:g,crossAxis:f,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(f=a==="end"?m*-1:m),c?{x:f*u,y:g*p}:{x:g*p,y:f*u}}var Ua=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,r;let{x:n,y:i,placement:l,middlewareData:a}=t,c=await Ff(t,e);return l===((o=a.offset)==null?void 0:o.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:n+c.x,y:i+c.y,data:{...c,placement:l}}}}},$a=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:r,placement:n,platform:i}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:c={fn:y=>{let{x:T,y:w}=y;return{x:T,y:w}}},...p}=Ke(e,t),u={x:o,y:r},d=await i.detectOverflow(t,p),g=ze(qe(n)),f=Hr(g),m=u[f],v=u[g];if(l){let y=f==="y"?"top":"left",T=f==="y"?"bottom":"right",w=m+d[y],P=m-d[T];m=Vr(w,m,P)}if(a){let y=g==="y"?"top":"left",T=g==="y"?"bottom":"right",w=v+d[y],P=v-d[T];v=Vr(w,v,P)}let b=c.fn({...t,[f]:m,[g]:v});return{...b,data:{x:b.x-o,y:b.y-r,enabled:{[f]:l,[g]:a}}}}}},ja=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:o,y:r,placement:n,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:c=!0,crossAxis:p=!0}=Ke(e,t),u={x:o,y:r},d=ze(n),g=Hr(d),f=u[g],m=u[d],v=Ke(a,t),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){let w=g==="y"?"height":"width",P=i.reference[g]-i.floating[w]+b.mainAxis,O=i.reference[g]+i.reference[w]-b.mainAxis;f<P?f=P:f>O&&(f=O)}if(p){var y,T;let w=g==="y"?"width":"height",P=Ga.has(qe(n)),O=i.reference[d]-i.floating[w]+(P&&((y=l.offset)==null?void 0:y[d])||0)+(P?0:b.crossAxis),A=i.reference[d]+i.reference[w]+(P?0:((T=l.offset)==null?void 0:T[d])||0)-(P?b.crossAxis:0);m<O?m=O:m>A&&(m=A)}return{[g]:f,[d]:m}}}},Ka=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,r;let{placement:n,rects:i,platform:l,elements:a}=t,{apply:c=()=>{},...p}=Ke(e,t),u=await l.detectOverflow(t,p),d=qe(n),g=zt(n),f=ze(n)==="y",{width:m,height:v}=i.floating,b,y;d==="top"||d==="bottom"?(b=d,y=g===(await(l.isRTL==null?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,b=g==="end"?"top":"bottom");let T=v-u.top-u.bottom,w=m-u.left-u.right,P=uo(v-u[b],T),O=uo(m-u[y],w),A=!t.middlewareData.shift,_=P,C=O;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(C=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=T),A&&!g){let D=ft(u.left,0),N=ft(u.right,0),R=ft(u.top,0),M=ft(u.bottom,0);f?C=m-2*(D!==0||N!==0?D+N:ft(u.left,u.right)):_=v-2*(R!==0||M!==0?R+M:ft(u.top,u.bottom))}await c({...t,availableWidth:C,availableHeight:_});let k=await l.getDimensions(a.floating);return m!==k.width||v!==k.height?{reset:{rects:!0}}:{}}}};var zr=Math.min,Ut=Math.max,_o=Math.round,Wo=Math.floor,Ge=e=>({x:e,y:e});function Gr(){return typeof window<"u"}function jt(e){return Ya(e)?(e.nodeName||"").toLowerCase():"#document"}function Ee(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ue(e){var t;return(t=(Ya(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ya(e){return Gr()?e instanceof Node||e instanceof Ee(e).Node:!1}function De(e){return Gr()?e instanceof Element||e instanceof Ee(e).Element:!1}function Ye(e){return Gr()?e instanceof HTMLElement||e instanceof Ee(e).HTMLElement:!1}function qa(e){return!Gr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ee(e).ShadowRoot}function fo(e){let{overflow:t,overflowX:o,overflowY:r,display:n}=Fe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&n!=="inline"&&n!=="contents"}function Za(e){return/^(table|td|th)$/.test(jt(e))}function zo(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Bf=/transform|translate|scale|rotate|perspective|filter/,Vf=/paint|layout|strict|content/,$t=e=>!!e&&e!=="none",ci;function Ur(e){let t=De(e)?Fe(e):e;return $t(t.transform)||$t(t.translate)||$t(t.scale)||$t(t.rotate)||$t(t.perspective)||!$r()&&($t(t.backdropFilter)||$t(t.filter))||Bf.test(t.willChange||"")||Vf.test(t.contain||"")}function Xa(e){let t=lt(e);for(;Ye(t)&&!Kt(t);){if(Ur(t))return t;if(zo(t))return null;t=lt(t)}return null}function $r(){return ci==null&&(ci=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ci}function Kt(e){return/^(html|body|#document)$/.test(jt(e))}function Fe(e){return Ee(e).getComputedStyle(e)}function Go(e){return De(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function lt(e){if(jt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||qa(e)&&e.host||Ue(e);return qa(t)?t.host:t}function Ja(e){let t=lt(e);return Kt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ye(t)&&fo(t)?t:Ja(t)}function mo(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);let n=Ja(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),l=Ee(n);if(i){let a=jr(l);return t.concat(l,l.visualViewport||[],fo(n)?n:[],a&&o?mo(a):[])}else return t.concat(n,mo(n,[],o))}function jr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function oc(e){let t=Fe(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=Ye(e),i=n?e.offsetWidth:o,l=n?e.offsetHeight:r,a=_o(o)!==i||_o(r)!==l;return a&&(o=i,r=l),{width:o,height:r,$:a}}function ui(e){return De(e)?e:e.contextElement}function go(e){let t=ui(e);if(!Ye(t))return Ge(1);let o=t.getBoundingClientRect(),{width:r,height:n,$:i}=oc(t),l=(i?_o(o.width):o.width)/r,a=(i?_o(o.height):o.height)/n;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}var Hf=Ge(0);function rc(e){let t=Ee(e);return!$r()||!t.visualViewport?Hf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _f(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==Ee(e)?!1:t}function qt(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);let n=e.getBoundingClientRect(),i=ui(e),l=Ge(1);t&&(r?De(r)&&(l=go(r)):l=go(e));let a=_f(i,o,r)?rc(i):Ge(0),c=(n.left+a.x)/l.x,p=(n.top+a.y)/l.y,u=n.width/l.x,d=n.height/l.y;if(i){let g=Ee(i),f=r&&De(r)?Ee(r):r,m=g,v=jr(m);for(;v&&r&&f!==m;){let b=go(v),y=v.getBoundingClientRect(),T=Fe(v),w=y.left+(v.clientLeft+parseFloat(T.paddingLeft))*b.x,P=y.top+(v.clientTop+parseFloat(T.paddingTop))*b.y;c*=b.x,p*=b.y,u*=b.x,d*=b.y,c+=w,p+=P,m=Ee(v),v=jr(m)}}return Gt({width:u,height:d,x:c,y:p})}function Kr(e,t){let o=Go(e).scrollLeft;return t?t.left+o:qt(Ue(e)).left+o}function nc(e,t){let o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-Kr(e,o),n=o.top+t.scrollTop;return{x:r,y:n}}function Wf(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e,i=n==="fixed",l=Ue(r),a=t?zo(t.floating):!1;if(r===l||a&&i)return o;let c={scrollLeft:0,scrollTop:0},p=Ge(1),u=Ge(0),d=Ye(r);if((d||!d&&!i)&&((jt(r)!=="body"||fo(l))&&(c=Go(r)),d)){let f=qt(r);p=go(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}let g=l&&!d&&!i?nc(l,c):Ge(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-c.scrollLeft*p.x+u.x+g.x,y:o.y*p.y-c.scrollTop*p.y+u.y+g.y}}function zf(e){return Array.from(e.getClientRects())}function Gf(e){let t=Ue(e),o=Go(e),r=e.ownerDocument.body,n=Ut(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ut(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-o.scrollLeft+Kr(e),a=-o.scrollTop;return Fe(r).direction==="rtl"&&(l+=Ut(t.clientWidth,r.clientWidth)-n),{width:n,height:i,x:l,y:a}}var Qa=25;function Uf(e,t){let o=Ee(e),r=Ue(e),n=o.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,c=0;if(n){i=n.width,l=n.height;let u=$r();(!u||u&&t==="fixed")&&(a=n.offsetLeft,c=n.offsetTop)}let p=Kr(r);if(p<=0){let u=r.ownerDocument,d=u.body,g=getComputedStyle(d),f=u.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,m=Math.abs(r.clientWidth-d.clientWidth-f);m<=Qa&&(i-=m)}else p<=Qa&&(i+=p);return{width:i,height:l,x:a,y:c}}function $f(e,t){let o=qt(e,!0,t==="fixed"),r=o.top+e.clientTop,n=o.left+e.clientLeft,i=Ye(e)?go(e):Ge(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y,c=n*i.x,p=r*i.y;return{width:l,height:a,x:c,y:p}}function ec(e,t,o){let r;if(t==="viewport")r=Uf(e,o);else if(t==="document")r=Gf(Ue(e));else if(De(t))r=$f(t,o);else{let n=rc(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Gt(r)}function ic(e,t){let o=lt(e);return o===t||!De(o)||Kt(o)?!1:Fe(o).position==="fixed"||ic(o,t)}function jf(e,t){let o=t.get(e);if(o)return o;let r=mo(e,[],!1).filter(a=>De(a)&&jt(a)!=="body"),n=null,i=Fe(e).position==="fixed",l=i?lt(e):e;for(;De(l)&&!Kt(l);){let a=Fe(l),c=Ur(l);!c&&a.position==="fixed"&&(n=null),(i?!c&&!n:!c&&a.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||fo(l)&&!c&&ic(e,l))?r=r.filter(u=>u!==l):n=a,l=lt(l)}return t.set(e,r),r}function Kf(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e,l=[...o==="clippingAncestors"?zo(t)?[]:jf(t,this._c):[].concat(o),r],a=ec(t,l[0],n),c=a.top,p=a.right,u=a.bottom,d=a.left;for(let g=1;g<l.length;g++){let f=ec(t,l[g],n);c=Ut(f.top,c),p=zr(f.right,p),u=zr(f.bottom,u),d=Ut(f.left,d)}return{width:p-d,height:u-c,x:d,y:c}}function qf(e){let{width:t,height:o}=oc(e);return{width:t,height:o}}function Yf(e,t,o){let r=Ye(t),n=Ue(t),i=o==="fixed",l=qt(e,!0,i,t),a={scrollLeft:0,scrollTop:0},c=Ge(0);function p(){c.x=Kr(n)}if(r||!r&&!i)if((jt(t)!=="body"||fo(n))&&(a=Go(t)),r){let f=qt(t,!0,i,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else n&&p();i&&!r&&n&&p();let u=n&&!r&&!i?nc(n,a):Ge(0),d=l.left+a.scrollLeft-c.x-u.x,g=l.top+a.scrollTop-c.y-u.y;return{x:d,y:g,width:l.width,height:l.height}}function pi(e){return Fe(e).position==="static"}function tc(e,t){if(!Ye(e)||Fe(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Ue(e)===o&&(o=o.ownerDocument.body),o}function lc(e,t){let o=Ee(e);if(zo(e))return o;if(!Ye(e)){let n=lt(e);for(;n&&!Kt(n);){if(De(n)&&!pi(n))return n;n=lt(n)}return o}let r=tc(e,t);for(;r&&Za(r)&&pi(r);)r=tc(r,t);return r&&Kt(r)&&pi(r)&&!Ur(r)?o:r||Xa(e)||o}var Zf=async function(e){let t=this.getOffsetParent||lc,o=this.getDimensions,r=await o(e.floating);return{reference:Yf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Xf(e){return Fe(e).direction==="rtl"}var Jf={convertOffsetParentRelativeRectToViewportRelativeRect:Wf,getDocumentElement:Ue,getClippingRect:Kf,getOffsetParent:lc,getElementRects:Zf,getClientRects:zf,getDimensions:qf,getScale:go,isElement:De,isRTL:Xf};function sc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Qf(e,t){let o=null,r,n=Ue(e);function i(){var a;clearTimeout(r),(a=o)==null||a.disconnect(),o=null}function l(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();let p=e.getBoundingClientRect(),{left:u,top:d,width:g,height:f}=p;if(a||t(),!g||!f)return;let m=Wo(d),v=Wo(n.clientWidth-(u+g)),b=Wo(n.clientHeight-(d+f)),y=Wo(u),w={rootMargin:-m+"px "+-v+"px "+-b+"px "+-y+"px",threshold:Ut(0,zr(1,c))||1},P=!0;function O(A){let _=A[0].intersectionRatio;if(_!==c){if(!P)return l();_?l(!1,_):r=setTimeout(()=>{l(!1,1e-7)},1e3)}_===1&&!sc(p,e.getBoundingClientRect())&&l(),P=!1}try{o=new IntersectionObserver(O,{...w,root:n.ownerDocument})}catch{o=new IntersectionObserver(O,w)}o.observe(e)}return l(!0),i}function ac(e,t,o,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,p=ui(e),u=n||i?[...p?mo(p):[],...t?mo(t):[]]:[];u.forEach(y=>{n&&y.addEventListener("scroll",o,{passive:!0}),i&&y.addEventListener("resize",o)});let d=p&&a?Qf(p,o):null,g=-1,f=null;l&&(f=new ResizeObserver(y=>{let[T]=y;T&&T.target===p&&f&&t&&(f.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(t)})),o()}),p&&!c&&f.observe(p),t&&f.observe(t));let m,v=c?qt(e):null;c&&b();function b(){let y=qt(e);v&&!sc(v,y)&&o(),v=y,m=requestAnimationFrame(b)}return o(),()=>{var y;u.forEach(T=>{n&&T.removeEventListener("scroll",o),i&&T.removeEventListener("resize",o)}),d?.(),(y=f)==null||y.disconnect(),f=null,c&&cancelAnimationFrame(m)}}var cc=Ua;var pc=$a,uc=Wa,dc=Ka,mc=za,fc=_a;var gc=ja,hc=(e,t,o)=>{let r=new Map,n={platform:Jf,...o},i={...n.platform,_c:r};return Ha(e,t,{...n,platform:i})};function xc(e){return e==null?[]:Array.isArray(e)?e:[e]}var e1=(e,t)=>e.indexOf(t)!==-1,t1=(e,...t)=>e.concat(t),di=(e,...t)=>e.filter(o=>!t.includes(o));var mi=(e,t)=>e1(e,t)?di(e,t):t1(e,t);var bc=e=>e?.constructor.name==="Array",o1=(e,t)=>{if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!ho(e[o],t[o]))return!1;return!0},ho=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual=="function"&&typeof t?.isEqual=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(bc(e)&&bc(t))return o1(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;let o=Object.keys(t??Object.create(null)),r=o.length;for(let n=0;n<r;n++)if(!Reflect.has(e,o[n]))return!1;for(let n=0;n<r;n++){let i=o[n];if(!ho(e[i],t[i]))return!1}return!0};var r1=e=>Array.isArray(e),vc=e=>e===!0||e===!1,yc=e=>e!=null&&typeof e=="object",qr=e=>yc(e)&&!r1(e);var xo=e=>typeof e=="string",he=e=>typeof e=="function",Cc=e=>e==null,Yt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n1=e=>Object.prototype.toString.call(e),wc=Function.prototype.toString,i1=wc.call(Object),Pc=e=>{if(!yc(e)||n1(e)!="[object Object]"||a1(e))return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let o=Yt(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&wc.call(o)==i1},l1=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,s1=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,a1=e=>l1(e)||s1(e);var Ec=e=>e(),fi=()=>{},gt=(...e)=>(...t)=>{e.forEach(function(o){o?.(...t)})};function Ze(e,t,...o){if(e in t){let n=t[e];return he(n)?n(...o):n}let r=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(r,Ze),r}function ht(e){if(!Pc(e)||e===void 0)return e;let t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),o={};for(let r of t){let n=e[r];n!==void 0&&(o[r]=ht(n))}return o}function bo(...e){let t=e.length===1?e[0]:e[1],o=e.length===2?e[0]:!0}function gi(...e){let t=e.length===1?e[0]:e[1],o=e.length===2?e[0]:!0}function Zt(e,t){if(e==null)throw new Error(t())}function Tc(e=0,t=0,o=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,o,r);let n={x:e,y:t,width:o,height:r,top:t,right:e+o,bottom:t+r,left:e};return{...n,toJSON:()=>n}}function c1(e){if(!e)return Tc();let{x:t,y:o,width:r,height:n}=e;return Tc(t,o,r,n)}function Ic(e,t){return{contextElement:J(e)?e:e?.contextElement,getBoundingClientRect:()=>{let o=e,r=t?.(o);return r||!o?c1(r):o.getBoundingClientRect()}}}var Uo=e=>({variable:e,reference:`var(${e})`}),Xe={arrowSize:Uo("--arrow-size"),arrowSizeHalf:Uo("--arrow-size-half"),arrowBg:Uo("--arrow-background"),transformOrigin:Uo("--transform-origin"),arrowOffset:Uo("--arrow-offset")},p1=e=>e==="top"||e==="bottom"?"y":"x";function Nc(e,t){return{name:"transformOrigin",fn(o){let{elements:r,middlewareData:n,placement:i,rects:l,y:a}=o,c=i.split("-")[0],p=p1(c),u=n.arrow?.x||0,d=n.arrow?.y||0,g=t?.clientWidth||0,f=t?.clientHeight||0,m=u+g/2,v=d+f/2,b=Math.abs(n.shift?.y||0),y=l.reference.height/2,T=f/2,w=e.offset?.mainAxis??e.gutter,P=typeof w=="number"?w+T:w??T,O=b>P,A={top:`${m}px calc(100% + ${P}px)`,bottom:`${m}px ${-P}px`,left:`calc(100% + ${P}px) ${v}px`,right:`${-P}px ${v}px`}[c],_=`${m}px ${l.reference.y+y-a}px`,C=!!e.overlap&&p==="y"&&O;return r.floating.style.setProperty(Xe.transformOrigin.variable,C?_:A),{data:{transformOrigin:C?_:A}}}}}var kc={name:"rects",fn({rects:e}){return{data:e}}},Sc=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:o}){if(!o.arrow)return{};let{x:r,y:n}=o.arrow,i=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:n!=null?`${n}px`:"",[i]:`calc(100% + ${Xe.arrowOffset.reference})`}),{}}}};function Rc(e){let[t,o]=e.split("-");return{side:t,align:o,hasAlign:o!=null}}function $o(e){return e.split("-")[0]}var u1={strategy:"absolute",placement:"bottom",listeners:!0,restoreStyles:!1,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function Oc(e,t){let o=e.devicePixelRatio||1;return Math.round(t*o)/o}function vo(e,t){return e!=null&&Math.abs(e-t)<.5}function Yr(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function d1(e,t,o){let r=e||t.createElement("div");return fc({element:r,padding:o.arrowPadding})}function m1(e,t){if(!Cc(t.offset??t.gutter))return cc(({placement:o})=>{let r=(e?.clientHeight||0)/2,n=t.offset?.mainAxis??t.gutter,i=typeof n=="number"?n+r:n??r,{hasAlign:l}=Rc(o),a=l?void 0:t.shift,c=t.offset?.crossAxis??a;return ht({crossAxis:c,mainAxis:i,alignmentAxis:t.shift})})}function f1(e){if(e.flip)return uc(()=>{let t=Yr(e.boundary);return{...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip}})}function g1(e){if(!(!e.slide&&!e.overlap))return pc(()=>{let t=Yr(e.boundary);return{...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:gc()}})}function h1(e){if(e.sizeMiddleware===!1&&!e.sameWidth&&!e.fitViewport)return;let t,o,r,n;return dc(()=>{let i=Yr(e.boundary);return{padding:e.overflowPadding,...i?{boundary:i}:void 0,apply({elements:l,rects:a,availableHeight:c,availableWidth:p}){let u=l.floating,d=Math.round(a.reference.width),g=Math.round(a.reference.height);p=Math.floor(p),c=Math.floor(c),vo(t,d)||(u.style.setProperty("--reference-width",`${d}px`),t=d),vo(o,g)||(u.style.setProperty("--reference-height",`${g}px`),o=g),vo(r,p)||(u.style.setProperty("--available-width",`${p}px`),r=p),vo(n,c)||(u.style.setProperty("--available-height",`${c}px`),n=c)}}})}function x1(e){if(e.hideWhenDetached)return mc(()=>({strategy:"referenceHidden",boundary:Yr(e.boundary)??"clippingAncestors"}))}function b1(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}var v1=["transform","visibility","pointer-events","--x","--y","--z-index","--reference-width","--reference-height","--available-width","--available-height","--transform-origin"],y1=["top","right","bottom","left"];function Ac(e,t){if(!e)return fi;let o=new Map(t.map(r=>[r,e.style.getPropertyValue(r)]));return()=>{o.forEach((r,n)=>{r?e.style.setProperty(n,r):e.style.removeProperty(n)}),e.style.length===0&&e.removeAttribute("style")}}function Mc(e){return e==null?null:J(e)?e:typeof e=="object"&&e&&"contextElement"in e&&e.contextElement?e.contextElement:e}function C1(e,t,o={}){let r=()=>(typeof t=="function"?t():t)??null,n=()=>{let D=typeof e=="function"?e():e;return o.getAnchorElement?.()??D},i=()=>{let D=n();return!D&&!o.getAnchorRect?null:Ic(D,o.getAnchorRect)},l=Object.assign({},u1,o),a=[],c=null,p,u;function d(D){p?.(),u?.(),c=D,p=l.restoreStyles?Ac(D,v1):void 0;let N=D.querySelector("[data-part=arrow]");u=l.restoreStyles?Ac(N,y1):void 0,a=[m1(N,l),f1(l),g1(l),d1(N,D.ownerDocument,l),Sc(N),Nc({gutter:l.gutter,offset:l.offset,overlap:l.overlap},N),h1(l),x1(l),kc]}let{placement:g,strategy:f,onComplete:m,onPositioned:v}=l,b,y,T=!1,w,P,O=fi,A=b1(l.listeners);function _(){if(!l.listeners)return;let D=n(),N=i(),R=r();if(!N||!R)return;(Mc(D)!==Mc(w)||R!==P)&&(O(),w=D,P=R,O=ac(N,R,k,A))}async function C(){_();let D=r();if(!D)return;D!==c&&(d(D),T=!1);let N=i();if(!N)return;let R=await hc(N,D,{placement:g,middleware:a,strategy:f});m?.(R);let M=te(D),z=Oc(M,R.x),L=Oc(M,R.y);if(vo(b,z)||(D.style.setProperty("--x",`${z}px`),b=z),vo(y,L)||(D.style.setProperty("--y",`${L}px`),y=L),l.hideWhenDetached&&(R.middlewareData.hide?.referenceHidden?(D.style.setProperty("visibility","hidden"),D.style.setProperty("pointer-events","none")):(D.style.removeProperty("visibility"),D.style.removeProperty("pointer-events"))),!T){let W=D.firstElementChild;W&&(D.style.setProperty("--z-index",je(W).zIndex),T=!0)}}async function k(){o.updatePosition?(await o.updatePosition({updatePosition:C,floatingElement:r()}),v?.({placed:!0})):await C()}return k(),()=>{O(),u?.(),p?.(),v?.({placed:!1})}}function Xt(e,t,o={}){let{defer:r,...n}=o,i=r?K:a=>a(),l=[];return l.push(i(()=>{l.push(C1(e,t,n))})),()=>{l.forEach(a=>a?.())}}var w1={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function jo(e={}){let{placement:t,sameWidth:o,fitViewport:r,strategy:n="absolute"}=e;return{arrow:{position:"absolute",width:Xe.arrowSize.reference,height:Xe.arrowSize.reference,[Xe.arrowSizeHalf.variable]:`calc(${Xe.arrowSize.reference} / 2)`,[Xe.arrowOffset.variable]:`calc(${Xe.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?w1[t.split("-")[0]]:void 0,background:Xe.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:n,isolation:"isolate",minWidth:o?void 0:"max-content",width:o?"var(--reference-width)":void 0,maxWidth:r?"var(--available-width)":void 0,maxHeight:r?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}var hi=e=>e.ids?.anchor??`popover:${e.id}:anchor`,Zr=(e,t)=>{let o=e.ids?.trigger;return o!=null?he(o)?o(t):o:t?`popover:${e.id}:trigger:${t}`:`popover:${e.id}:trigger`},Xr=e=>e.ids?.content??`popover:${e.id}:content`,xi=e=>e.ids?.positioner??`popover:${e.id}:popper`,Lc=e=>e.ids?.arrow??`popover:${e.id}:arrow`,Jr=e=>e.ids?.title??`popover:${e.id}:title`,Qr=e=>e.ids?.description??`popover:${e.id}:desc`,Dc=e=>e.ids?.closeTrigger??`popover:${e.id}:close`,bi=e=>e.getById(hi(e)),vi=e=>e.getById(Zr(e)),en=e=>Fr(e.getRootNode(),`[data-scope="popover"][data-part="trigger"][data-ownedby="${e.id}"]`),xt=(e,t)=>t==null?vi(e)??en(e)[0]:e.getById(Zr(e,t)),Jt=e=>e.getById(Xr(e)),yi=e=>e.getById(xi(e)),Fc=e=>e.getById(Jr(e)),Bc=e=>e.getById(Qr(e));function Ci(e,t){let{state:o,context:r,send:n,computed:i,prop:l,scope:a}=e,c=l("translations"),p=o.matches("open"),u=r.get("currentPlacement"),d=u?$o(u):void 0,g=i("currentPortalled"),f=r.get("renderedElements"),m=r.get("triggerValue"),v=jo({...l("positioning"),placement:u});return{portalled:g,open:p,setOpen(b){o.matches("open")!==b&&n({type:b?"OPEN":"CLOSE"})},triggerValue:m,setTriggerValue(b){n({type:"TRIGGER_VALUE.SET",value:b})},reposition(b={}){n({type:"POSITIONING.SET",options:b})},getArrowProps(){return t.element({id:Lc(a),..._e.arrow.attrs,dir:l("dir"),style:v.arrow})},getArrowTipProps(){return t.element({..._e.arrowTip.attrs,dir:l("dir"),style:v.arrowTip})},getAnchorProps(){return t.element({..._e.anchor.attrs,dir:l("dir"),id:hi(a)})},getTriggerProps(b={}){let{value:y}=b,T=y==null?!1:m===y;return t.button({..._e.trigger.attrs,dir:l("dir"),type:"button","data-placement":u,"data-side":d,id:Zr(a,y),"data-ownedby":a.id,"data-value":y,"data-current":$(T),"aria-haspopup":"dialog","aria-expanded":y==null?p:p&&T,"data-state":p?"open":"closed","aria-controls":Xr(a),onPointerDown(w){Ht(w)&&ca()&&w.currentTarget.focus()},onClick(w){if(w.defaultPrevented)return;let P=p&&y!=null&&!T;n({type:P?"TRIGGER_VALUE.SET":"TOGGLE",value:y})},onBlur(w){n({type:"TRIGGER_BLUR",target:w.relatedTarget})}})},getIndicatorProps(){return t.element({..._e.indicator.attrs,dir:l("dir"),"data-state":p?"open":"closed"})},getPositionerProps(){return t.element({id:xi(a),..._e.positioner.attrs,dir:l("dir"),style:v.floating})},getContentProps(){return t.element({..._e.content.attrs,dir:l("dir"),id:Xr(a),tabIndex:-1,role:"dialog","aria-modal":nt(l("modal")),hidden:!p,"data-state":p?"open":"closed","data-expanded":$(p),"aria-labelledby":f.title?Jr(a):void 0,"aria-describedby":f.description?Qr(a):void 0,"data-placement":u,"data-side":d})},getTitleProps(){return t.element({..._e.title.attrs,id:Jr(a),dir:l("dir")})},getDescriptionProps(){return t.element({..._e.description.attrs,id:Qr(a),dir:l("dir")})},getCloseTriggerProps(){return t.button({..._e.closeTrigger.attrs,dir:l("dir"),id:Dc(a),type:"button","aria-label":c.closeTriggerLabel,onClick(b){b.defaultPrevented||(b.stopPropagation(),n({type:"CLOSE"}))}})}}}var yo=new WeakMap,tn=new WeakMap,on={},wi=0,Hc=e=>e&&(e.host||Hc(e.parentNode)),P1=(e,t)=>t.map(o=>{if(e.contains(o))return o;let r=Hc(o);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",o,"in not contained inside",e,". Doing nothing"),null)}).filter(o=>!!o),E1=new Set(["script","output","status","next-route-announcer"]),T1=e=>E1.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),_c=(e,t)=>{let{parentNode:o,markerName:r,controlAttribute:n,explicitBooleanValue:i,followControlledElements:l=!0}=t,a=P1(o,Array.isArray(e)?e:[e]);on[r]||(on[r]=new WeakMap);let c=on[r],p=[],u=new Set,d=new Set(a),g=m=>{!m||u.has(m)||(u.add(m),g(m.parentNode))};a.forEach(m=>{g(m),l&&J(m)&&Qn(m,v=>{g(v)})});let f=m=>{!m||d.has(m)||Array.prototype.forEach.call(m.children,v=>{if(u.has(v))f(v);else try{if(T1(v))return;let b=v.getAttribute(n),y=i?b==="true":b!==null&&b!=="false",T=(yo.get(v)||0)+1,w=(c.get(v)||0)+1;yo.set(v,T),c.set(v,w),p.push(v),T===1&&y&&tn.set(v,!0),w===1&&v.setAttribute(r,""),y||v.setAttribute(n,i?"true":"")}catch(b){console.error("[zag-js > ariaHidden] cannot operate on ",v,b)}})};return f(o),u.clear(),wi++,()=>{p.forEach(m=>{let v=yo.get(m)-1,b=c.get(m)-1;yo.set(m,v),c.set(m,b),v||(tn.has(m)||m.removeAttribute(n),tn.delete(m)),b||m.removeAttribute(r)}),wi--,wi||(yo=new WeakMap,yo=new WeakMap,tn=new WeakMap,on={})}};var I1=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,Wc=(e,t=I1(e),o="data-aria-hidden",r=!0)=>{if(t)return _c(e,{parentNode:t,markerName:o,controlAttribute:"aria-hidden",explicitBooleanValue:!0,followControlledElements:r})};var N1=e=>{let t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function rn(e,t={}){let{defer:o=!0}=t,r=o?N1:i=>i(),n=[];return n.push(r(()=>{let l=(typeof e=="function"?e():e).filter(Boolean);l.length!==0&&n.push(Wc(l))})),()=>{n.forEach(i=>i?.())}}var k1=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),S1=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,zc=e=>{let t={},o;for(;o=S1.exec(e);)t[o[1]]=o[2];return t},R1=(e,t)=>{if(xo(e)){if(xo(t))return`${e};${t}`;e=zc(e)}else xo(t)&&(t=zc(t));return Object.assign({},e??{},t??{})};function I(...e){let t={};for(let o of e){if(!o)continue;for(let n in t){if(n.startsWith("on")&&typeof t[n]=="function"&&typeof o[n]=="function"){t[n]=gt(o[n],t[n]);continue}if(n==="className"||n==="class"){t[n]=k1(t[n],o[n]);continue}if(n==="style"){t[n]=R1(t[n],o[n]);continue}t[n]=o[n]!==void 0?o[n]:t[n]}for(let n in o)t[n]===void 0&&(t[n]=o[n]);let r=Object.getOwnPropertySymbols(o);for(let n of r)t[n]=o[n]}return t}var bt=".",$c="#",Gc=new WeakMap,jc=new WeakMap;function Pi(e){return e.join(bt)}function O1(e){return e.includes(bt)}function Kc(e){return e.startsWith($c)}function A1(e){return e.startsWith(bt)}function M1(e){return Kc(e)?e.slice($c.length):e}function Ei(e,t){return e?`${e}${bt}${t}`:t}function L1(e){let t=new Map,o=new Map,r=(n,i)=>{t.set(n,i);let l=i.id;l&&(o.has(l)&&gi(`[zag-js] Duplicate state id: "${l}"`),o.set(l,n));let a=i.states;if(a){Zt(i.initial,()=>`[zag-js] Compound state "${n}" has child states but no "initial" property`),i.initial in a||gi(`[zag-js] Compound state "${n}" has initial "${String(i.initial)}" which is not a child state`);for(let[c,p]of Object.entries(a)){if(!p)continue;let u=Ei(n,c);r(u,p)}}};for(let[n,i]of Object.entries(e.states))i&&r(n,i);return{index:t,idIndex:o}}function Co(e){let t=Gc.get(e);if(t)return t;let{index:o,idIndex:r}=L1(e);return Gc.set(e,o),jc.set(e,r),o}function D1(e,t){return Co(e),jc.get(e)?.get(t)}function Ti(e){return e?String(e).split(bt).filter(Boolean):[]}function nn(e,t){if(!t)return[];let o=Co(e),r=Ti(t),n=[],i=[];for(let l of r){i.push(l);let a=Pi(i),c=o.get(a);if(!c)break;n.push({path:a,state:c})}return n}function Ko(e,t){let o=Co(e),r=Ti(t);if(!r.length)return t;let n=[];for(let a of r){n.push(a);let c=Pi(n);if(!o.has(c))return t}let i=Pi(n),l=o.get(i);for(;l?.initial;){let a=`${i}${bt}${l.initial}`,c=o.get(a);if(!c)break;i=a,l=c}return i}function Uc(e,t){return Co(e).has(t)}function Ii(e,t,o){let r=String(t);if(Kc(r)){let n=M1(r),i=D1(e,n);return Zt(i,()=>`[zag-js] Unknown state id: "${n}"`),Ko(e,i)}if(A1(r)&&o){let n=Ei(o,r.slice(1));return Ko(e,n)}if(!O1(r)&&o){let n=Ti(o);for(let i=n.length-1;i>=1;i--){let l=n.slice(0,i).join(bt),a=Ei(l,r);if(Uc(e,a))return Ko(e,a)}if(Uc(e,r))return Ko(e,r)}return Ko(e,r)}function qc(e,t,o){let r=nn(e,t);for(let i=r.length-1;i>=0;i--){let a=r[i]?.state.on?.[o];if(a)return{transitions:a,source:r[i]?.path}}return{transitions:e.on?.[o],source:void 0}}function Yc(e,t,o,r){let n=t?nn(e,t):[],i=nn(e,o),l=0;for(;l<n.length&&l<i.length&&n[l]?.path===i[l]?.path;)l+=1;let a=n.slice(l).reverse(),c=i.slice(l),p=n.at(-1)?.path===i.at(-1)?.path;return r&&p&&(a=n.slice().reverse(),c=i),{exiting:a,entering:c}}function Zc(e,t){return e?e===t||e.startsWith(`${t}${bt}`):!1}function Xc(e,t,o){return nn(e,t).some(r=>r.state.tags?.includes(o))}function F1(){return{and:(...e)=>function(o){return e.every(r=>o.guard(r))},or:(...e)=>function(o){return e.some(r=>o.guard(r))},not:e=>function(o){return!o.guard(e)}}}function Qt(e){return Co(e),e}function Jc(){return{guards:F1(),createMachine:e=>Qt(e),choose:e=>function({choose:o}){return o(e)?.actions}}}var vt=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(vt||{}),qo="__init__";function Qc(e){let t=()=>e.getRootNode?.()??document,o=()=>Q(t());return{...e,getRootNode:t,getDoc:o,getWin:()=>o().defaultView??window,getActiveElement:()=>We(t()),isActiveElement:Ft,getById:l=>t().getElementById(l)}}function ep(e){let t={each(o){for(let r=0;r<e.frames?.length;r+=1){let n=e.frames[r];n&&o(n)}},addEventListener(o,r,n){return t.each(i=>{try{i.document.addEventListener(o,r,n)}catch{}}),()=>{try{t.removeEventListener(o,r,n)}catch{}}},removeEventListener(o,r,n){t.each(i=>{try{i.document.removeEventListener(o,r,n)}catch{}})}};return t}function tp(e){let t=e.frameElement!=null?e.parent:null;return{addEventListener:(o,r,n)=>{try{t?.addEventListener(o,r,n)}catch{}return()=>{try{t?.removeEventListener(o,r,n)}catch{}}},removeEventListener:(o,r,n)=>{try{t?.removeEventListener(o,r,n)}catch{}}}}var op="pointerdown.outside",rp="focus.outside";function B1(e){for(let t of e)if(J(t)&&Le(t))return!0;return!1}var lp=e=>"clientY"in e;function V1(e,t){if(!lp(t)||!e)return!1;let o=e.getBoundingClientRect();return o.width===0||o.height===0?!1:o.top<=t.clientY&&t.clientY<=o.top+o.height&&o.left<=t.clientX&&t.clientX<=o.left+o.width}function H1(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function np(e,t){if(!t||!lp(e))return!1;let o=t.scrollHeight>t.clientHeight,r=o&&e.clientX>t.offsetLeft+t.clientWidth,n=t.scrollWidth>t.clientWidth,i=n&&e.clientY>t.offsetTop+t.clientHeight,l={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(o?16:0),height:t.clientHeight+(n?16:0)},a={x:e.clientX,y:e.clientY};return H1(l,a)?r||i:!1}function _1(e,t){let{exclude:o,onFocusOutside:r,onPointerDownOutside:n,onInteractOutside:i,defer:l,followControlledElements:a=!0}=t;if(!e)return;let c=Q(e),p=te(e),u=ep(p),d=tp(p);function g(P,O){if(!J(O)||!O.isConnected||Bt(e,O)||V1(e,P)||a&&Rr(e,O))return!1;let A=c.querySelector(`[aria-controls="${e.id}"]`);if(A){let C=Dr(A);if(np(P,C))return!1}let _=Dr(e);return np(P,_)?!1:!o?.(O)}let f=new Set,m=it(e?.getRootNode()),v=!1;function b(P){v=!0;let O=()=>{v=!1};c.addEventListener("pointerup",O,{once:!0}),p.addEventListener("pointerup",O,{once:!0});function A(_){let C=l&&!ti()?K:N=>N(),k=_??P,D=k?.composedPath?.()??[k?.target];C(()=>{let N=m?D[0]:ge(P);if(!(!e||!g(P,N))){if(n||i){let R=gt(n,i);e.addEventListener(op,R,{once:!0})}ip(e,op,{bubbles:!1,cancelable:!0,detail:{originalEvent:k,contextmenu:Ar(k),focusable:B1(D),target:N}})}})}P.pointerType==="touch"?(f.forEach(_=>_()),f.add(Ce(c,"click",A,{once:!0})),f.add(d.addEventListener("click",A,{once:!0})),f.add(u.addEventListener("click",A,{once:!0}))):A()}let y=new Set,T=setTimeout(()=>{y.add(Ce(c,"pointerdown",b,!0)),y.add(d.addEventListener("pointerdown",b,!0)),y.add(u.addEventListener("pointerdown",b,!0))},0);function w(P){if(v)return;(l?K:A=>A())(()=>{let A=P?.composedPath?.()??[P?.target],_=m?A[0]:ge(P);if(!(!e||!g(P,_))){if(r||i){let C=gt(r,i);e.addEventListener(rp,C,{once:!0})}ip(e,rp,{bubbles:!1,cancelable:!0,detail:{originalEvent:P,contextmenu:!1,focusable:Le(_),target:_}})}})}return ti()||(y.add(Ce(c,"focusin",w,!0)),y.add(d.addEventListener("focusin",w,!0)),y.add(u.addEventListener("focusin",w,!0))),()=>{clearTimeout(T),f.forEach(P=>P()),y.forEach(P=>P())}}function sp(e,t){let{defer:o}=t,r=o?K:i=>i(),n=[];return n.push(r(()=>{let i=typeof e=="function"?e():e;n.push(_1(i,t))})),()=>{n.forEach(i=>i?.())}}function ip(e,t,o){let r=e.ownerDocument.defaultView||window,n=new r.CustomEvent(t,o);return e.dispatchEvent(n)}function ap(e,t){let o=r=>{r.key==="Escape"&&(r.isComposing||t?.(r))};return Ce(Q(e),"keydown",o,{capture:!0})}var cp="layer:request-dismiss",be={layers:[],branches:[],recentlyRemoved:new Set,count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){let t=this.indexOf(e),o=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return t<o},isTopMost(e){return this.layers[this.count()-1]?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},getLayersByType(e){return this.layers.filter(t=>t.type===e)},getNestedLayersByType(e,t){let o=this.indexOf(e);return o===-1?[]:this.layers.slice(o+1).filter(r=>r.type===t)},getParentLayerOfType(e,t){let o=this.indexOf(e);if(!(o<=0))return this.layers.slice(0,o).reverse().find(r=>r.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return!!(this.getNestedLayers(e).some(r=>Bt(r.node,t))||this.recentlyRemoved.size>0)},isInBranch(e){return Array.from(this.branches).some(t=>Bt(t,e))},add(e){let t=this.indexOf(e.node);t!==-1&&this.layers.splice(t,1),this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){let t=this.indexOf(e);if(t<0)return;this.layers[t].styleTargets?.forEach(r=>{let n=r();n&&W1(n)}),this.recentlyRemoved.add(e),po(()=>this.recentlyRemoved.delete(e)),t<this.count()-1&&this.getNestedLayers(e).forEach(n=>be.dismiss(n.node,e)),this.layers.splice(t,1),this.syncLayers()},removeBranch(e){let t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayers(){this.layers.forEach((e,t)=>{pp(e,t,e.node),e.styleTargets?.forEach(o=>{let r=o();if(!r||r===e.node)return;pp(e,t,r);let{zIndex:n}=je(e.node);r.style.setProperty("--z-index",n)})})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){let o=this.indexOf(e);if(o===-1)return;let r=this.layers[o];G1(e,cp,n=>{r.requestDismiss?.(n),n.defaultPrevented||r?.dismiss()}),z1(e,cp,{originalLayer:e,targetLayer:t,originalIndex:o,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function pp(e,t,o){o.style.setProperty("--layer-index",`${t}`),o.removeAttribute("data-nested"),o.removeAttribute("data-has-nested"),be.getParentLayerOfType(e.node,e.type)&&o.setAttribute("data-nested",e.type);let n=be.countNestedLayersOfType(e.node,e.type);n>0&&o.setAttribute("data-has-nested",e.type),o.style.setProperty("--nested-layer-count",`${n}`)}function W1(e){e.style.removeProperty("--layer-index"),e.style.removeProperty("--nested-layer-count"),e.style.removeProperty("--z-index"),e.removeAttribute("data-nested"),e.removeAttribute("data-has-nested")}function z1(e,t,o){let r=e.ownerDocument.defaultView||window,n=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:o});return e.dispatchEvent(n)}function G1(e,t,o){e.addEventListener(t,o,{once:!0})}var Ni=new WeakMap,Yo=new WeakMap;function U1(e){return be.isBelowPointerBlockingLayer(e)?"none":"auto"}function up(e){let t=U1(e);e.style.pointerEvents!==t&&(e.style.pointerEvents=t)}function $1(e){if(Yo.has(e))return;let t=te(e);if(typeof t.MutationObserver>"u")return;let o=new t.MutationObserver(()=>{Yo.has(e)&&up(e)});o.observe(e,{attributes:!0,attributeFilter:["style"]}),Yo.set(e,o)}function ki(){be.layers.forEach(({node:e})=>{up(e),$1(e)})}function dp(e){let t=Yo.get(e);t&&(t.disconnect(),Yo.delete(e)),e.style.pointerEvents=""}function mp(e,t){let o=Q(e),r=[];return be.hasPointerBlockingLayer()&&!o.body.hasAttribute("data-inert")&&(Ni.set(o.body,o.body.style.pointerEvents),queueMicrotask(()=>{let n=o.body;n&&(n.style.pointerEvents="none",n.setAttribute("data-inert",""))})),t?.forEach(n=>{let[i,l]=ka(()=>{let a=n();return J(a)?a:null},{timeout:1e3});i.then(a=>r.push(Wt(a,{pointerEvents:"auto"}))),r.push(l)}),()=>{be.hasPointerBlockingLayer()||(queueMicrotask(()=>{let n=o.body;if(!n)return;let i=Ni.get(n);i!==void 0&&(n.style.pointerEvents=i,Ni.delete(n)),n.removeAttribute("data-inert"),n.style.length===0&&n.removeAttribute("style")}),r.forEach(n=>n()))}}function j1(e,t){let{warnOnMissingNode:o=!0}=t;if(o&&!e){bo("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;let{onDismiss:r,onRequestDismiss:n,pointerBlocking:i,exclude:l,debug:a,type:c="dialog",layerStyleTargets:p}=t,u={dismiss:r,node:e,type:c,pointerBlocking:i,requestDismiss:n,styleTargets:p};be.add(u),ki();function d(b){let y=ge(b.detail.originalEvent);be.isBelowPointerBlockingLayer(e)||be.isInBranch(y)||(t.onPointerDownOutside?.(b),t.onInteractOutside?.(b),!b.defaultPrevented&&(a&&console.log("onPointerDownOutside:",b.detail.originalEvent),r?.()))}function g(b){let y=ge(b.detail.originalEvent);be.isInBranch(y)||(t.onFocusOutside?.(b),t.onInteractOutside?.(b),!b.defaultPrevented&&(a&&console.log("onFocusOutside:",b.detail.originalEvent),r?.()))}function f(b){be.isTopMost(e)&&(t.onEscapeKeyDown?.(b),!b.defaultPrevented&&r&&(b.preventDefault(),r()))}function m(b){if(!e)return!1;let y=typeof l=="function"?l():l,T=Array.isArray(y)?y:[y],w=t.persistentElements?.map(P=>P()).filter(J);return w&&T.push(...w),T.some(P=>Bt(P,b))||be.isInNestedLayer(e,b)}let v=[i?mp(e,t.persistentElements):void 0,ap(e,f),sp(e,{exclude:m,onFocusOutside:g,onPointerDownOutside:d,defer:t.defer})];return()=>{be.remove(e),ki(),dp(e),v.forEach(b=>b?.())}}function wo(e,t){let{defer:o}=t,r=o?K:i=>i(),n=[];return n.push(r(()=>{let i=he(e)?e():e;n.push(j1(i,t))})),()=>{n.forEach(i=>i?.())}}var K1=Object.defineProperty,q1=(e,t,o)=>t in e?K1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,oe=(e,t,o)=>q1(e,typeof t!="symbol"?t+"":t,o);var fp={activateTrap(e,t){if(e.length>0){let r=e[e.length-1];r!==t&&r.pause()}let o=e.indexOf(t);o===-1||e.splice(o,1),e.push(t)},deactivateTrap(e,t){let o=e.indexOf(t);o!==-1&&e.splice(o,1),e.length>0&&e[e.length-1].unpause()}},Y1=[],hp=class{constructor(e,t){oe(this,"trapStack"),oe(this,"config"),oe(this,"doc"),oe(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),oe(this,"portalContainers",new Set),oe(this,"listenerCleanups",[]),oe(this,"handleFocus",r=>{let n=ge(r),i=this.findContainerIndex(n,r)>=0;if(i||Bo(n))i&&(this.state.mostRecentlyFocusedNode=n);else{r.stopImmediatePropagation();let l,a=!0;if(this.state.mostRecentlyFocusedNode)if(co(this.state.mostRecentlyFocusedNode)>0){let c=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:p}=this.state.containerGroups[c];if(p.length>0){let u=p.findIndex(d=>d===this.state.mostRecentlyFocusedNode);u>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?u+1<p.length&&(l=p[u+1],a=!1):u-1>=0&&(l=p[u-1],a=!1))}}else this.state.containerGroups.some(c=>c.tabbableNodes.some(p=>co(p)>0))||(a=!1);else a=!1;a&&(l=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),l?this.tryFocus(l):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),oe(this,"handlePointerDown",r=>{let n=ge(r);if(!(this.findContainerIndex(n,r)>=0)){if(Zo(this.config.clickOutsideDeactivates,r)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}Zo(this.config.allowOutsideClick,r)||r.preventDefault()}}),oe(this,"handleClick",r=>{let n=ge(r);this.findContainerIndex(n,r)>=0||Zo(this.config.clickOutsideDeactivates,r)||Zo(this.config.allowOutsideClick,r)||(r.preventDefault(),r.stopImmediatePropagation())}),oe(this,"handleTabKey",r=>{if(this.config.isKeyForward(r)||this.config.isKeyBackward(r)){this.state.recentNavEvent=r;let n=this.config.isKeyBackward(r),i=this.findNextNavNode({event:r,isBackward:n});if(!i)return;Si(r)&&r.preventDefault(),this.tryFocus(i)}}),oe(this,"handleEscapeKey",r=>{J1(r)&&Zo(this.config.escapeDeactivates,r)!==!1&&(r.preventDefault(),this.deactivate())}),oe(this,"_mutationObserver"),oe(this,"setupMutationObserver",()=>{let r=this.doc.defaultView||window;this._mutationObserver=new r.MutationObserver(n=>{n.some(a=>Array.from(a.removedNodes).some(p=>p===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode()),n.some(a=>a.type==="attributes"&&(a.attributeName==="aria-controls"||a.attributeName==="aria-expanded")?!0:a.type==="childList"&&a.addedNodes.length>0?Array.from(a.addedNodes).some(c=>{if(c.nodeType!==Node.ELEMENT_NODE)return!1;let p=c;return la(p)?!0:p.id&&!this.state.containers.some(u=>u.contains(p))?sa(p):!1}):!1)&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),oe(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map(r=>{this._mutationObserver?.observe(r,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}),this.portalContainers.forEach(r=>{this.observePortalContainer(r)}))}),oe(this,"getInitialFocusNode",()=>{let r=this.getNodeForOption("initialFocus",{hasFallback:!0});if(r===!1)return!1;if(r===void 0||r&&!Le(r)){let n=We(this.doc);if(n&&this.findContainerIndex(n)>=0)r=n;else{let i=this.state.tabbableGroups[0];r=i&&i.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else r===null&&(r=this.getNodeForOption("fallbackFocus"));if(!r)throw new Error("Your focus-trap needs to have at least one focusable element");if(r.isConnected||(r=this.getNodeForOption("fallbackFocus")),!r||!r.isConnected)throw new Error("Your focus-trap needs to have at least one focusable element");return r}),oe(this,"tryFocus",r=>{if(r!==!1&&r!==We(this.doc)){if(!r||!r.focus){this.tryFocus(this.getInitialFocusNode());return}r.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=r,Q1(r)&&r.select()}}),oe(this,"deactivate",r=>{if(!this.state.active)return this;let n={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...r};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),fp.deactivateTrap(this.trapStack,this),this.portalContainers.clear();let i=this.getOption(n,"onDeactivate"),l=this.getOption(n,"onPostDeactivate"),a=this.getOption(n,"checkCanReturnFocus"),c=this.getOption(n,"returnFocus","returnFocusOnDeactivate");i?.();let p=()=>{gp(()=>{if(c){let u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(u)}l?.()})};if(c&&a){let u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return a(u).then(p,p),this}return p(),this}),oe(this,"pause",r=>{if(this.state.paused||!this.state.active)return this;let n=this.getOption(r,"onPause"),i=this.getOption(r,"onPostPause");return this.state.paused=!0,n?.(),this.removeListeners(),this.updateObservedNodes(),i?.(),this}),oe(this,"unpause",r=>{if(!this.state.paused||!this.state.active)return this;let n=this.getOption(r,"onUnpause"),i=this.getOption(r,"onPostUnpause");return this.state.paused=!1,n?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i?.(),this}),oe(this,"updateContainerElements",r=>(this.state.containers=Array.isArray(r)?r.filter(Boolean):[r].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),oe(this,"getReturnFocusNode",r=>{let n=this.getNodeForOption("setReturnFocus",{params:[r]});return n||(n===!1?!1:r)}),oe(this,"getOption",(r,n,i)=>r&&r[n]!==void 0?r[n]:this.config[i||n]),oe(this,"getNodeForOption",(r,{hasFallback:n=!1,params:i=[]}={})=>{let l=this.config[r];if(typeof l=="function"&&(l=l(...i)),l===!0&&(l=void 0),!l){if(l===void 0||l===!1)return l;throw new Error(`\`${r}\` was specified but was not a node, or did not return a node`)}let a=l;if(typeof l=="string"){try{a=this.doc.querySelector(l)}catch(c){throw new Error(`\`${r}\` appears to be an invalid selector; error="${c.message}"`)}if(!a&&!n)throw new Error(`\`${r}\` as selector refers to no known node`)}return a}),oe(this,"findNextNavNode",r=>{let{event:n,isBackward:i=!1}=r,l=r.target||ge(n);this.updateTabbableNodes();let a=null;if(this.state.tabbableGroups.length>0){let c=this.findContainerIndex(l,n),p=c>=0?this.state.containerGroups[c]:void 0;if(c<0)i?a=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:a=this.state.tabbableGroups[0].firstTabbableNode;else if(i){let u=this.state.tabbableGroups.findIndex(({firstTabbableNode:d})=>l===d);if(u<0&&(p?.container===l||Le(l)&&!mt(l)&&!p?.nextTabbableNode(l,!1))&&(u=c),u>=0){let d=u===0?this.state.tabbableGroups.length-1:u-1,g=this.state.tabbableGroups[d];a=co(l)>=0?g.lastTabbableNode:g.lastDomTabbableNode}else Si(n)||(a=p?.nextTabbableNode(l,!1))}else{let u=this.state.tabbableGroups.findIndex(({lastTabbableNode:d})=>l===d);if(u<0&&(p?.container===l||Le(l)&&!mt(l)&&!p?.nextTabbableNode(l))&&(u=c),u>=0){let d=u===this.state.tabbableGroups.length-1?0:u+1,g=this.state.tabbableGroups[d];a=co(l)>=0?g.firstTabbableNode:g.firstDomTabbableNode}else Si(n)||(a=p?.nextTabbableNode(l))}}else a=this.getNodeForOption("fallbackFocus");return a}),this.trapStack=t.trapStack||Y1;let o={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward:Z1,isKeyBackward:X1,...t};this.doc=o.document||Q(Array.isArray(e)?e[0]:e),this.config=o,this.updateContainerElements(e),this.setupMutationObserver()}addPortalContainer(e){let t=e.parentElement;t&&!this.portalContainers.has(t)&&(this.portalContainers.add(t),this.state.active&&!this.state.paused&&this.observePortalContainer(t))}observePortalContainer(e){this._mutationObserver?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}updatePortalContainers(){this.config.followControlledElements&&this.state.containers.forEach(e=>{ia(e).forEach(o=>{this.addPortalContainer(o)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){let o=typeof t?.composedPath=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:r,tabbableNodes:n})=>r.contains(e)||o?.includes(r)||n.find(i=>i===e)||this.isControlledElement(r,e))}isControlledElement(e,t){return this.config.followControlledElements?Rr(e,t):!1}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{let t=_t(e,{getShadowRoot:this.config.getShadowRoot}),o=Lr(e,{getShadowRoot:this.config.getShadowRoot}),r=t[0],n=t[t.length-1],i=r,l=n,a=!1;for(let p=0;p<t.length;p++)if(co(t[p])>0){a=!0;break}function c(p,u=!0){let d=t.indexOf(p);if(d>=0)return t[d+(u?1:-1)];let g=o.indexOf(p);if(!(g<0)){if(u){for(let f=g+1;f<o.length;f++)if(mt(o[f]))return o[f]}else for(let f=g-1;f>=0;f--)if(mt(o[f]))return o[f]}}return{container:e,tabbableNodes:t,focusableNodes:o,posTabIndexesFound:a,firstTabbableNode:r,lastTabbableNode:n,firstDomTabbableNode:i,lastDomTabbableNode:l,nextTabbableNode:c}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return fp.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?gp(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(Ce(this.doc,"focusin",this.handleFocus,!0),Ce(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),Ce(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),Ce(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),Ce(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),Ce(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;let t=this.getOption(e,"onActivate"),o=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=We(this.doc),t?.();let n=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),o?.()};return r?(r(this.state.containers.concat()).then(n,n),this):(n(),this)}},Ri=e=>e?.type==="keydown",Si=e=>Ri(e)&&e?.key==="Tab",Z1=e=>Ri(e)&&e.key==="Tab"&&!e?.shiftKey,X1=e=>Ri(e)&&e.key==="Tab"&&e?.shiftKey,Zo=(e,...t)=>typeof e=="function"?e(...t):e,J1=e=>!e.isComposing&&e.key==="Escape",gp=e=>setTimeout(e,0),Q1=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function ln(e,t={}){let o,r=K(()=>{let i=(Array.isArray(e)?e:[e]).map(a=>typeof a=="function"?a():a).filter(a=>a!=null);if(i.length===0)return;let l=i[0];o=new hp(i,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:l,...t,document:Q(l)});try{o.activate()}catch{}});return function(){o?.deactivate(),r()}}var xp="data-scroll-lock",Oi=new WeakMap;function e0(e){let t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function bp(e){let o=je(e)?.scrollbarGutter;return o==="stable"||o?.startsWith("stable ")===!0}function t0(e){let t=e.defaultView??window,{documentElement:o,body:r}=e,n=bp(o)||bp(r),i=t.innerWidth-o.clientWidth;r.setAttribute(xp,"");let l=()=>Na(o,"--scrollbar-width",`${i}px`),a=e0(o),c=()=>{let d={overflow:"hidden"};return!n&&i>0&&(d[a]=`${i}px`),Wt(r,d)},p=()=>{let{scrollX:d,scrollY:g,visualViewport:f}=t,m=f?.offsetLeft??0,v=f?.offsetTop??0,b={position:"fixed",overflow:"hidden",top:`${-(g-Math.floor(v))}px`,left:`${-(d-Math.floor(m))}px`,right:"0"};!n&&i>0&&(b[a]=`${i}px`);let y=Wt(r,b);return()=>{y?.(),t.scrollTo({left:d,top:g,behavior:"instant"})}},u=[l(),oi()?p():c()];return()=>{u.forEach(d=>d?.()),r.removeAttribute(xp)}}function sn(e){let t=e??document,o=Oi.get(t);o||(o={count:0,cleanup:t0(t)},Oi.set(t,o)),o.count++;let r=o,n=!1;return()=>{n||(n=!0,r.count--,r.count===0&&(r.cleanup(),Oi.delete(t)))}}var Ai=Qt({props({props:e}){return{closeOnInteractOutside:!0,closeOnEscape:!0,autoFocus:!0,modal:!1,portalled:!0,restoreFocus:!0,...e,translations:{closeTriggerLabel:"close",...e.translations},positioning:{placement:"bottom",...e.positioning}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e,prop:t,scope:o}){return{currentPlacement:e(()=>({defaultValue:void 0})),renderedElements:e(()=>({defaultValue:{title:!0,description:!0}})),triggerValue:e(()=>({defaultValue:t("defaultTriggerValue")??null,value:t("triggerValue"),onChange(r){let n=t("onTriggerValueChange");if(!n)return;let i=xt(o,r);n({value:r,triggerElement:i})}}))}},computed:{currentPortalled:({prop:e})=>!!e("modal")||!!e("portalled")},watch({track:e,prop:t,action:o}){e([()=>t("open")],()=>{o(["toggleVisibility"])})},entry:["checkRenderedElements"],on:{"TRIGGER_VALUE.SET":{actions:["setTriggerValue","reposition"]}},states:{closed:{on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue","setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue","setInitialFocus"]}]}},open:{effects:["trapFocus","preventScroll","hideContentBelow","trackDismissableElement","trackPositioning","proxyTabFocus"],on:{"CONTROLLED.CLOSE":{target:"closed",actions:["setFinalFocus"]},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose","setFinalFocus"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackPositioning({context:e,prop:t,scope:o}){e.set("currentPlacement",t("positioning").placement);let r=bi(o);return Xt(()=>r??xt(o,e.get("triggerValue")),()=>yi(o),{...t("positioning"),defer:!0,onComplete(l){e.set("currentPlacement",l.placement)}})},trackDismissableElement({send:e,prop:t,scope:o}){let r=()=>Jt(o),n=!0;return wo(r,{type:"popover",pointerBlocking:t("modal"),exclude:[vi(o),...en(o)].filter(Boolean),defer:!0,onEscapeKeyDown(i){t("onEscapeKeyDown")?.(i),!t("closeOnEscape")&&i.preventDefault()},onInteractOutside(i){t("onInteractOutside")?.(i),!i.defaultPrevented&&(n=!(i.detail.focusable||i.detail.contextmenu),t("closeOnInteractOutside")||i.preventDefault())},onPointerDownOutside:t("onPointerDownOutside"),onFocusOutside:t("onFocusOutside"),persistentElements:t("persistentElements"),onRequestDismiss:t("onRequestDismiss"),onDismiss(){e({type:"CLOSE",src:"interact-outside",restoreFocus:n})}})},proxyTabFocus({prop:e,scope:t,context:o}){return e("modal")||!e("portalled")?void 0:Ta(()=>Jt(t),{triggerElement:xt(t,o.get("triggerValue")),defer:!0,getShadowRoot:!0,onFocus(n){n.focus({preventScroll:!0})}})},hideContentBelow({prop:e,scope:t,context:o}){return e("modal")?rn(()=>[Jt(t),xt(t,o.get("triggerValue"))],{defer:!0}):void 0},preventScroll({prop:e,scope:t}){if(e("modal"))return sn(t.getDoc())},trapFocus({prop:e,scope:t,context:o}){return e("modal")?ln(()=>Jt(t),{preventScroll:!0,returnFocusOnDeactivate:!!e("restoreFocus"),initialFocus:()=>Vo({root:Jt(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")}),setReturnFocus:n=>{let i=e("finalFocusEl")?.();if(i)return i;let l=o.get("triggerValue");if(l){let c=xt(t,l);if(c)return c}let a=en(t)[0];return a||n},getShadowRoot:!0}):void 0}},actions:{reposition({event:e,prop:t,scope:o,context:r}){let n=bi(o);Xt(()=>n??xt(o,r.get("triggerValue")),()=>yi(o),{...t("positioning"),...e.options,defer:!0,listeners:!1,onComplete(a){r.set("currentPlacement",a.placement)}})},setTriggerValue({context:e,event:t}){t.value!==void 0&&e.set("triggerValue",t.value)},checkRenderedElements({context:e,scope:t}){K(()=>{Object.assign(e.get("renderedElements"),{title:!!Fc(t),description:!!Bc(t)})})},setInitialFocus({prop:e,scope:t}){e("modal")||K(()=>{Vo({root:Jt(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")})?.focus({preventScroll:!0})})},setFinalFocus({event:e,prop:t,scope:o,context:r}){let n=e.restoreFocus??e.previousEvent?.restoreFocus;n!=null&&!n||t("restoreFocus")&&K(()=>{let i=t("finalFocusEl")?.();if(i){i.focus({preventScroll:!0});return}xt(o,r.get("triggerValue"))?.focus({preventScroll:!0})})},invokeOnOpen({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!0})})},invokeOnClose({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!1})})},toggleVisibility({event:e,send:t,prop:o}){t({type:o("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function vp(e){return new Proxy({},{get(t,o){return o==="style"?r=>e({style:r}).style:e}})}function r0(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function re(e={}){let{name:t,strict:o=!0,hookName:r="useContext",providerName:n="Provider",errorMessage:i,defaultValue:l}=e,a=ks(l);a.displayName=t;function c(){let p=Rs(a);if(!p&&o){let u=new Error(i??r0(r,n));throw u.name="ContextError",Yt(Error,"captureStackTrace")&&he(Error.captureStackTrace)&&Error.captureStackTrace(u,c),u}return p}return[a.Provider,c,a]}var[an,ie]=re({name:"PopoverContext",hookName:"usePopoverContext",providerName:"<PopoverProvider />"});function Te(...e){return t=>{let o=[];for(let r of e)if(typeof r=="function"){let n=r(t);typeof n=="function"&&o.push(n)}else r&&(r.current=t);if(o.length)return()=>{for(let r of o)r()}}}function n0(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var Mi=e=>{let t=Ss(E((o,r)=>{let{asChild:n,children:i,...l}=o;if(!n)return br(e,{...l,ref:r},i);if(!vr(i))return null;let a=hr.only(i),c=n0(a);return xr(a,{...I(l,a.props),ref:r?Te(r,c):c})}));return t.displayName=e.displayName||e.name,t},i0=()=>{let e=new Map;return new Proxy(Mi,{apply(t,o,r){return Mi(r[0])},get(t,o){let r=o;return e.has(r)||e.set(r,Mi(r)),e.get(r)}})},S=i0();function l0(){let e=globalThis.ReactDOM;if(!e)throw new Error("@pollinations/ui browser bundle requires globalThis.ReactDOM. Load ReactDOM before @pollinations/ui.");return e}var s0=l0();var{createPortal:cn,flushSync:Xo}=s0;var pn=typeof globalThis.document<"u"?ut:Z;function Jo(e){let t=e().value??e().defaultValue,o=e().isEqual??Object.is,[r]=ee(t),[n,i]=ee(r),l=e().value!==void 0,a=G(n);a.current=l?e().value:n;let c=G(a.current);pn(()=>{c.current=a.current},[n,e().value]);let p=d=>{let g=c.current,f=he(d)?d(g):d;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:f,prev:g}),l||i(f),o(f,g)||e().onChange?.(f,g)};function u(){return l?e().value:n}return{initial:r,ref:a,get:u,set(d){(e().sync?Xo:Ec)(()=>p(d))},invoke(d,g){e().onChange?.(d,g)},hash(d){return e().hash?.(d)??String(d)}}}Jo.cleanup=e=>{Z(()=>e,[])};Jo.ref=e=>{let t=G(e);return{get:()=>t.current,set:o=>{t.current=o}}};function yp(e){let t=G(e);return{get(o){return t.current[o]},set(o,r){t.current[o]=r}}}var Cp=(e,t)=>{let o=G(!1),r=G(!1);Z(()=>{if(o.current&&r.current)return t();r.current=!0},[...(e??[]).map(n=>typeof n=="function"?n():n)]),Z(()=>(o.current=!0,()=>{o.current=!1}),[])};function yt(e,t={}){let o=ce(()=>{let{id:N,ids:R,getRootNode:M}=t;return Qc({id:N,ids:R,getRootNode:M})},[t]),r=(...N)=>{e.debug&&console.log(...N)},n=e.props?.({props:ht(t),scope:o})??t,i=a0(n),l=e.context?.({prop:i,bindable:Jo,scope:o,flush:wp,getContext(){return c},getComputed(){return O},getRefs(){return v},getEvent(){return f()}}),a=Pp(l),c={get(N){return a.current?.[N].ref.current},set(N,R){a.current?.[N].set(R)},initial(N){return a.current?.[N].initial},hash(N){let R=a.current?.[N].get();return a.current?.[N].hash(R)}},p=G(new Map),u=G(null),d=G(null),g=G({type:""}),f=()=>({...g.current,current(){return g.current},previous(){return d.current}}),m=()=>({...A,matches(...N){return N.some(R=>Zc(A.ref.current,R))},hasTag(N){return Xc(e,A.ref.current,N)}}),v=yp(e.refs?.({prop:i,context:c})??{}),b=()=>({state:m(),context:c,event:f(),prop:i,send:D,action:y,guard:T,track:Cp,refs:v,computed:O,flush:wp,scope:o,choose:P}),y=N=>{let R=he(N)?N(b()):N;if(!R)return;let M=R.map(z=>{let L=e.implementations?.actions?.[z];return L||bo(`[zag-js] No implementation found for action "${JSON.stringify(z)}"`),L});for(let z of M)z?.(b())},T=N=>{if(he(N))return N(b());let R=e.implementations?.guards?.[N];return R||bo(`[zag-js] No implementation found for guard "${JSON.stringify(N)}"`),R?.(b())},w=N=>{let R=he(N)?N(b()):N;if(!R)return;let M=R.map(L=>{let W=e.implementations?.effects?.[L];return W||bo(`[zag-js] No implementation found for effect "${JSON.stringify(L)}"`),W}),z=[];for(let L of M){let W=L?.(b());W&&z.push(W)}return()=>z.forEach(L=>L?.())},P=N=>xc(N).find(R=>{let M=!R.guard;return xo(R.guard)?M=!!T(R.guard):he(R.guard)&&(M=R.guard(b())),M}),O=N=>{Zt(e.computed,()=>"[zag-js] No computed object found on machine");let R=e.computed[N];return R({context:c,event:f(),prop:i,refs:v,scope:o,computed:O})},A=Jo(()=>({defaultValue:Ii(e,e.initialState({prop:i})),onChange(N,R){let{exiting:M,entering:z}=Yc(e,R,N,u.current?.reenter);if(M.forEach(L=>{p.current.get(L.path)?.(),p.current.delete(L.path)}),M.forEach(L=>{y(L.state?.exit)}),y(u.current?.actions),z.forEach(L=>{let W=w(L.state?.effects);if(W){let q=p.current.get(L.path);p.current.set(L.path,q?gt(q,W):W)}}),R===qo){y(e.entry);let L=w(e.effects);if(L){let W=p.current.get(qo);p.current.set(qo,W?gt(W,L):L)}}z.forEach(L=>{y(L.state?.entry)})}})),_=G(void 0),C=G(vt.NotStarted);pn(()=>{queueMicrotask(()=>{let R=C.current===vt.Started;C.current=vt.Started,r(R?"rehydrating...":"initializing...");let M=_.current??A.initial;A.invoke(M,R?A.get():qo)});let N=p.current;return()=>{let R=k();r("unmounting..."),_.current=R,C.current=vt.Stopped,N.forEach(M=>M?.()),p.current=new Map,u.current=null,queueMicrotask(()=>{y(e.exit),C.current=vt.Stopped})}},[]);let k=()=>"ref"in A?A.ref.current:A.get(),D=N=>{queueMicrotask(()=>{if(C.current!==vt.Started)return;d.current=g.current,g.current=N;let R=k(),{transitions:M,source:z}=qc(e,R,N.type),L=P(M);if(!L)return;u.current=L;let W=Ii(e,L.target??R,z);r("transition",N.type,L.target||R,`(${L.actions})`),W!==R?Xo(()=>A.set(W)):L.reenter?A.invoke(R,R):y(L.actions??[])})};return e.watch?.(b()),{state:m(),send:D,context:c,prop:i,scope:o,refs:v,computed:O,event:f(),getStatus:()=>C.current}}function Pp(e){let t=G(e);return t.current=e,t}function a0(e){let t=Pp(e);return function(r){return t.current[r]}}function wp(e){queueMicrotask(()=>{Xo(()=>e())})}var Ct=vp(e=>e);var Li=E((e,t)=>{let o=I(ie().getAnchorProps(),e);return s(S.div,{...o,ref:t})});Li.displayName="PopoverAnchor";var Di=E((e,t)=>{let o=I(ie().getArrowProps(),e);return s(S.div,{...o,ref:t})});Di.displayName="PopoverArrow";var Fi=E((e,t)=>{let o=I(ie().getArrowTipProps(),e);return s(S.div,{...o,ref:t})});Fi.displayName="PopoverArrowTip";var Bi=E((e,t)=>{let o=I(ie().getCloseTriggerProps(),e);return s(S.button,{...o,ref:t})});Bi.displayName="PopoverCloseTrigger";var[Be,ve]=re({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"});var Vi=E((e,t)=>{let o=ie(),r=ve(),n=I(o.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:s(S.div,{...n,ref:Te(r.ref,t)})});Vi.displayName="PopoverContent";var Ep=e=>e.children(ie());var Hi=E((e,t)=>{let o=I(ie().getDescriptionProps(),e);return s(S.div,{...o,ref:t})});Hi.displayName="PopoverDescription";var _i=E((e,t)=>{let o=I(ie().getIndicatorProps(),e);return s(S.div,{...o,ref:t})});_i.displayName="PopoverIndicator";var Wi=E((e,t)=>{let o=ie(),r=ve(),n=I(o.getPositionerProps(),e);return r.unmounted?null:s(S.div,{...n,ref:t})});Wi.displayName="PopoverPositioner";var[ev,Je]=re({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});var[rv,Po]=re({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}});var Tp=e=>{let t=me(),{getRootNode:o}=Je(),{dir:r}=Po(),n={id:t,dir:r,getRootNode:o,...e},i=yt(Ai,n);return Ci(i,Ct)};var le=()=>(e,t)=>t.reduce((o,r)=>{let[n,i]=o,l=r;return i[l]!==void 0&&(n[l]=i[l]),delete i[l],[n,i]},[{},{...e}]);var Ve=e=>le()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function Ip(e,t={}){let{sync:o=!1}=t,r=c0(e);return yr((...n)=>o?queueMicrotask(()=>r.current?.(...n)):r.current?.(...n),[o,r])}function c0(e){let t=G(e);return t.current=e,t}function zi(e,t){let{state:o,send:r,context:n}=e,i=o.matches("mounted","unmountSuspended");return{skip:!n.get("initial"),present:i,setNode(l){l&&r({type:"NODE.SET",node:l})},unmount(){r({type:"UNMOUNT"})}}}var Gi=Qt({props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["cleanupNode"],watch({track:e,prop:t,send:o}){e([()=>t("present")],()=>{o({type:"PRESENCE.CHANGED"})})},on:{"NODE.SET":{actions:["setupNode"]},"PRESENCE.CHANGED":{actions:["setInitial","syncPresence"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},invokeOnExitComplete:({prop:e,refs:t})=>{e("onExitComplete")?.();let o=t.get("node");if(!o)return;let r=te(o),n=new r.CustomEvent("exitcomplete",{bubbles:!1});o.dispatchEvent(n)},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",je(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:o,prop:r})=>{let n=r("present");if(n)return o({type:"MOUNT",src:"presence.changed"});let i=t.get("node");if(!n&&i?.ownerDocument.visibilityState==="hidden")return o({type:"UNMOUNT",src:"visibilitychange"});K(()=>{if(r("present"))return;let l=un(t.get("styles"));e.set("unmountAnimationName",l),l==="none"||l===e.get("prevAnimationName")||t.get("styles")?.display==="none"||t.get("styles")?.animationDuration==="0s"?o({type:"UNMOUNT",src:"presence.changed"}):o({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{K(()=>{e.set("prevAnimationName",un(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:o,prop:r})=>{let n=t.get("node");if(!n)return;let i=p=>{(p.composedPath?.()?.[0]??p.target)===n&&e.set("prevAnimationName",un(t.get("styles")))},l=p=>{let u=un(t.get("styles"));ge(p)===n&&u===e.get("unmountAnimationName")&&!r("present")&&o({type:"UNMOUNT",src:"animationend"})},a=p=>{ge(p)===n&&!r("present")&&o({type:"UNMOUNT",src:"animationcancel"})};n.addEventListener("animationstart",i),n.addEventListener("animationcancel",a),n.addEventListener("animationend",l);let c=Wt(n,{animationFillMode:"forwards"});return()=>{n.removeEventListener("animationstart",i),n.removeEventListener("animationcancel",a),n.removeEventListener("animationend",l),po(()=>c())}}}}});function un(e){return e?.animationName||"none"}var Ie=(e={})=>{let{lazyMount:t,unmountOnExit:o,present:r,skipAnimationOnMount:n=!1,...i}=e,l=G(!1),a={...i,present:r,onExitComplete:Ip(e.onExitComplete)},c=yt(Gi,a),p=zi(c,Ct);p.present&&(l.current=!0);let u=!p.present&&!l.current&&t||o&&!p.present&&l.current,d=()=>({"data-state":p.skip&&n?void 0:r?"open":"closed",hidden:!p.present});return{ref:p.setNode,getPresenceProps:d,present:p.present,unmounted:u}};var Np=e=>{let[t,{children:o,...r}]=Ve(e),n=Tp(r);return s(an,{value:n,children:s(Be,{value:Ie(I({present:n.open},t)),children:o})})};var kp=e=>{let[t,{value:o,children:r}]=Ve(e);return s(an,{value:o,children:s(Be,{value:Ie(I({present:o.open},t)),children:r})})};var Ui=E((e,t)=>{let o=I(ie().getTitleProps(),e);return s(S.div,{...o,ref:t})});Ui.displayName="PopoverTitle";var u0=le(),$i=E((e,t)=>{let[o,r]=u0(e,["value"]),n=ie(),i=ve(),l=n.getTriggerProps(o),a=I({...l,"aria-controls":i.unmounted?void 0:l["aria-controls"]},r);return s(S.button,{...a,ref:t})});$i.displayName="PopoverTrigger";var Sp=Object.defineProperty,wt=(e,t)=>{let o={};for(var r in e)Sp(o,r,{get:e[r],enumerable:!0});return t||Sp(o,Symbol.toStringTag,{value:"Module"}),o};var Eo=wt({Anchor:()=>Li,Arrow:()=>Di,ArrowTip:()=>Fi,CloseTrigger:()=>Bi,Content:()=>Vi,Context:()=>Ep,Description:()=>Hi,Indicator:()=>_i,Positioner:()=>Wi,Root:()=>Np,RootProvider:()=>kp,Title:()=>Ui,Trigger:()=>$i});var eo=e=>{let{children:t,disabled:o}=e,[r,n]=ee(e.container?.current),i=Lt(m0,()=>!1,()=>!0),{getRootNode:l}=Je();if(Z(()=>{n(()=>e.container?.current)},[e.container]),i||o)return s(Y,{children:t});let a=r??d0(l);return s(Y,{children:hr.map(t,c=>cn(c,a))})},d0=e=>{let t=e?.(),o=t.getRootNode();return it(o)?o:Q(t).body},m0=()=>()=>{};var f0="polli:rounded-lg polli:bg-surface-menu polli:shadow-lg",Pt=({trigger:e,children:t,align:o="start",side:r="bottom",open:n,portalled:i=!0,onOpenChange:l,className:a,panelStyle:c})=>{let p=me(),[u,d]=ee(!1),g=n!==void 0,f=g?n:u,m=v=>{g||d(v),l?.(v)};return h(Eo.Root,{ids:{trigger:p},open:f,portalled:i,onOpenChange:v=>m(v.open),positioning:{placement:`${r}-${o}`,strategy:i?"absolute":"fixed"},children:[s(Eo.Trigger,{asChild:!0,children:e(f)}),s(eo,{disabled:!i,children:s(Eo.Positioner,{children:s(Eo.Content,{"aria-labelledby":p,style:c,className:x("polli:z-[120] polli:overflow-hidden polli:focus:outline-none",f0,a),children:typeof t=="function"?t(()=>m(!1)):t})})})]})};var Rp='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" fill="currentColor"><g transform="translate(2.2103 2) scale(0.073)"><defs><linearGradient id="a"><stop offset="0" stop-color="%230fbc5c"/><stop offset="1" stop-color="%230cba65"/></linearGradient><linearGradient id="g"><stop offset=".231" stop-color="%230fbc5f"/><stop offset=".312" stop-color="%230fbc5f"/><stop offset=".366" stop-color="%230fbc5e"/><stop offset=".458" stop-color="%230fbc5d"/><stop offset=".54" stop-color="%2312bc58"/><stop offset=".699" stop-color="%2328bf3c"/><stop offset=".771" stop-color="%2338c02b"/><stop offset=".861" stop-color="%2352c218"/><stop offset=".915" stop-color="%2367c30f"/><stop offset="1" stop-color="%2386c504"/></linearGradient><linearGradient id="h"><stop offset=".142" stop-color="%231abd4d"/><stop offset=".248" stop-color="%236ec30d"/><stop offset=".312" stop-color="%238ac502"/><stop offset=".366" stop-color="%23a2c600"/><stop offset=".446" stop-color="%23c8c903"/><stop offset=".54" stop-color="%23ebcb03"/><stop offset=".616" stop-color="%23f7cd07"/><stop offset=".699" stop-color="%23fdcd04"/><stop offset=".771" stop-color="%23fdce05"/><stop offset=".861" stop-color="%23ffce0a"/></linearGradient><linearGradient id="f"><stop offset=".316" stop-color="%23ff4c3c"/><stop offset=".604" stop-color="%23ff692c"/><stop offset=".727" stop-color="%23ff7825"/><stop offset=".885" stop-color="%23ff8d1b"/><stop offset="1" stop-color="%23ff9f13"/></linearGradient><linearGradient id="b"><stop offset=".231" stop-color="%23ff4541"/><stop offset=".312" stop-color="%23ff4540"/><stop offset=".458" stop-color="%23ff4640"/><stop offset=".54" stop-color="%23ff473f"/><stop offset=".699" stop-color="%23ff5138"/><stop offset=".771" stop-color="%23ff5b33"/><stop offset=".861" stop-color="%23ff6c29"/><stop offset="1" stop-color="%23ff8c18"/></linearGradient><linearGradient id="d"><stop offset=".408" stop-color="%23fb4e5a"/><stop offset="1" stop-color="%23ff4540"/></linearGradient><linearGradient id="c"><stop offset=".132" stop-color="%230cba65"/><stop offset=".21" stop-color="%230bb86d"/><stop offset=".297" stop-color="%2309b479"/><stop offset=".396" stop-color="%2308ad93"/><stop offset=".477" stop-color="%230aa6a9"/><stop offset=".568" stop-color="%230d9cc6"/><stop offset=".667" stop-color="%231893dd"/><stop offset=".769" stop-color="%23258bf1"/><stop offset=".859" stop-color="%233086ff"/></linearGradient><linearGradient id="e"><stop offset=".366" stop-color="%23ff4e3a"/><stop offset=".458" stop-color="%23ff8a1b"/><stop offset=".54" stop-color="%23ffa312"/><stop offset=".616" stop-color="%23ffb60c"/><stop offset=".771" stop-color="%23ffcd0a"/><stop offset=".861" stop-color="%23fecf0a"/><stop offset=".915" stop-color="%23fecf08"/><stop offset="1" stop-color="%23fdcd01"/></linearGradient><linearGradient xlink:href="%23a" id="s" x1="219.7" x2="254.467" y1="329.535" y2="329.535" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="%23b" id="m" cx="109.627" cy="135.862" r="71.46" fx="109.627" fy="135.862" gradientTransform="matrix(-1.93688 1.043 1.45573 2.55542 290.525 -400.634)" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="%23c" id="n" cx="45.259" cy="279.274" r="71.46" fx="45.259" fy="279.274" gradientTransform="matrix(-3.5126 -4.45809 -1.69255 1.26062 870.8 191.554)" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="%23d" id="l" cx="304.017" cy="118.009" r="47.854" fx="304.017" fy="118.009" gradientTransform="matrix(2.06435 0 0 2.59204 -297.679 -151.747)" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="%23e" id="o" cx="181.001" cy="177.201" r="71.46" fx="181.001" fy="177.201" gradientTransform="matrix(-.24858 2.08314 2.96249 .33417 -255.146 -331.164)" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="%23f" id="p" cx="207.673" cy="108.097" r="41.102" fx="207.673" fy="108.097" gradientTransform="matrix(-1.2492 1.34326 -3.89684 -3.4257 880.501 194.905)" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="%23g" id="r" cx="109.627" cy="135.862" r="71.46" fx="109.627" fy="135.862" gradientTransform="matrix(-1.93688 -1.043 1.45573 -2.55542 290.525 838.683)" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="%23h" id="j" cx="154.87" cy="145.969" r="71.46" fx="154.87" fy="145.969" gradientTransform="matrix(-.0814 -1.93722 2.92674 -.11625 -215.135 632.86)" gradientUnits="userSpaceOnUse"/><filter id="q" width="1.097" height="1.116" x="-.048" y="-.058" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="1.701"/></filter><filter id="k" width="1.033" height="1.02" x="-.017" y="-.01" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation=".242"/></filter><clipPath id="i" clipPathUnits="userSpaceOnUse"><path d="M371.378 193.24H237.083v53.438h77.167c-1.241 7.563-4.026 15.003-8.105 21.786-4.674 7.773-10.451 13.69-16.373 18.196-17.74 13.498-38.42 16.258-52.783 16.258-36.283 0-67.283-23.286-79.285-54.928-.484-1.149-.805-2.335-1.197-3.507a81.115 81.115 0 0 1-4.101-25.448c0-9.226 1.569-18.057 4.43-26.398 11.285-32.897 42.985-57.467 80.179-57.467 7.481 0 14.685.884 21.517 2.648a77.668 77.668 0 0 1 33.425 18.25l40.834-39.712c-24.839-22.616-57.219-36.32-95.844-36.32-30.878 0-59.386 9.553-82.748 25.7-18.945 13.093-34.483 30.625-44.97 50.985-9.753 18.879-15.094 39.8-15.094 62.294 0 22.495 5.35 43.633 15.103 62.337v.126c10.302 19.857 25.368 36.954 43.678 49.988 15.997 11.386 44.68 26.551 84.031 26.551 22.63 0 42.687-4.051 60.375-11.644 12.76-5.478 24.065-12.622 34.301-21.804 13.525-12.132 24.117-27.139 31.347-44.404 7.23-17.265 11.097-36.79 11.097-57.957 0-9.858-.998-19.87-2.689-28.968Z"/></clipPath></defs><g clip-path="url(%23i)" transform="matrix(.95792 0 0 .98525 -90.174 -78.856)"><path fill="url(%23j)" d="M92.076 219.958c.148 22.14 6.501 44.983 16.117 63.424v.127c6.949 13.392 16.445 23.97 27.26 34.452l65.327-23.67c-12.36-6.235-14.246-10.055-23.105-17.026-9.054-9.066-15.802-19.473-20.004-31.677h-.17l.17-.127c-2.765-8.058-3.037-16.613-3.14-25.503Z" filter="url(%23k)"/><path fill="url(%23l)" d="M237.083 79.025c-6.456 22.526-3.988 44.421 0 57.161 7.457.006 14.64.888 21.45 2.647a77.662 77.662 0 0 1 33.424 18.25l41.88-40.726c-24.81-22.59-54.667-37.297-96.754-37.332Z" filter="url(%23k)"/><path fill="url(%23m)" d="M236.943 78.847c-31.67 0-60.91 9.798-84.871 26.359a145.533 145.533 0 0 0-24.332 21.15c-1.904 17.744 14.257 39.551 46.262 39.37 15.528-17.936 38.495-29.542 64.056-29.542l.07.002-1.044-57.335c-.048 0-.093-.004-.14-.004Z" filter="url(%23k)"/><path fill="url(%23n)" d="m341.475 226.379-28.268 19.285c-1.24 7.562-4.028 15.002-8.107 21.786-4.674 7.772-10.45 13.69-16.373 18.196-17.702 13.47-38.328 16.244-52.687 16.255-14.842 25.102-17.444 37.675 1.043 57.934 22.877-.016 43.157-4.117 61.046-11.796 12.931-5.551 24.388-12.792 34.761-22.097 13.706-12.295 24.442-27.503 31.769-45 7.327-17.497 11.245-37.282 11.245-58.734Z" filter="url(%23k)"/><path fill="%233086ff" d="M234.996 191.21v57.498h136.006c1.196-7.874 5.152-18.064 5.152-26.5 0-9.858-.996-21.899-2.687-30.998Z" filter="url(%23k)"/><path fill="url(%23o)" d="M128.39 124.327c-8.394 9.119-15.564 19.326-21.249 30.364-9.753 18.879-15.094 41.83-15.094 64.324 0 .317.026.627.029.944 4.32 8.224 59.666 6.649 62.456 0-.004-.31-.039-.613-.039-.924 0-9.226 1.57-16.026 4.43-24.367 3.53-10.289 9.056-19.763 16.123-27.926 1.602-2.031 5.875-6.397 7.121-9.016.475-.997-.862-1.557-.937-1.908-.083-.393-1.876-.077-2.277-.37-1.275-.929-3.8-1.414-5.334-1.845-3.277-.921-8.708-2.953-11.725-5.06-9.536-6.658-24.417-14.612-33.505-24.216Z" filter="url(%23k)"/><path fill="url(%23p)" d="M162.099 155.857c22.112 13.301 28.471-6.714 43.173-12.977l-25.574-52.664a144.74 144.74 0 0 0-26.543 14.504c-12.316 8.512-23.192 18.9-32.176 30.72Z" filter="url(%23q)"/><path fill="url(%23r)" d="M171.099 290.222c-29.683 10.641-34.33 11.023-37.062 29.29a144.806 144.806 0 0 0 16.792 13.984c15.996 11.386 46.766 26.551 86.118 26.551.046 0 .09-.004.137-.004v-59.157l-.094.002c-14.736 0-26.512-3.843-38.585-10.527-2.977-1.648-8.378 2.777-11.123.799-3.786-2.729-12.9 2.35-16.183-.938Z" filter="url(%23k)"/><path fill="url(%23s)" d="M219.7 299.023v59.996c5.506.64 11.236 1.028 17.247 1.028 6.026 0 11.855-.307 17.52-.872v-59.748a105.119 105.119 0 0 1-17.477 1.461c-5.932 0-11.7-.686-17.29-1.865Z" filter="url(%23k)" opacity=".5"/></g></g></svg>%0A';var F={fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};function h0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"2",y:"4",width:"20",height:"14",rx:"2"}),s("path",{d:"M2 20h20"})]})}function x0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"12",cy:"8",r:"4"}),s("path",{d:"M4 21a8 8 0 0 1 16 0"})]})}function ji(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M5 12h14M13 6l6 6-6 6"})})}function b0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M9 3h6"}),s("path",{d:"M10 3v6.5L4.5 18a2 2 0 0 0 1.7 3h11.6a2 2 0 0 0 1.7-3L14 9.5V3"}),s("path",{d:"M7 14h10"})]})}function v0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M12 8V4H8"}),s("rect",{x:"4",y:"8",width:"16",height:"12",rx:"2"}),s("path",{d:"M2 14h2M20 14h2"}),s("path",{d:"M9 13v2M15 13v2"})]})}function y0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M4 4h5a3 3 0 0 1 3 3v13a2 2 0 0 0-2-2H4z"}),s("path",{d:"M20 4h-5a3 3 0 0 0-3 3v13a2 2 0 0 1 2-2h6z"})]})}function C0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"m8 2 1.9 1.9M14.1 3.9 16 2"}),s("path",{d:"M9 7V6a3 3 0 0 1 6 0v1"}),s("path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a6 6 0 0 1 12 0v3c0 3.3-2.7 6-6 6Z"}),s("path",{d:"M12 20v-9M6.5 9C4.6 8.8 3 7.1 3 5M6 13H2M3 21c0-2.1 1.7-3.9 3.8-4M17.5 9C19.4 8.8 21 7.1 21 5M18 13h4M21 21c0-2.1-1.7-3.9-3.8-4"})]})}function Qe(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,strokeWidth:2.5,...e,children:s("polyline",{points:"20 6 9 17 4 12"})})}function Ki(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),s("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})}function qi(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"12",cy:"12",r:"9"}),s("path",{d:"M12 7v5l3 2"})]})}function Yi(e){return s("svg",{viewBox:"0 0 24 24","aria-hidden":"true",...e,children:s("path",{fill:"currentColor",d:"M20.32 4.37A19.8 19.8 0 0 0 15.36 2.83a.07.07 0 0 0-.08.04c-.21.38-.45.88-.62 1.27a18.27 18.27 0 0 0-5.52 0 12.84 12.84 0 0 0-.63-1.27.08.08 0 0 0-.08-.04A19.74 19.74 0 0 0 3.47 4.37a.07.07 0 0 0-.03.03C.31 9.07-.55 13.61-.13 18.1a.08.08 0 0 0 .03.06 19.9 19.9 0 0 0 6.08 3.07.08.08 0 0 0 .09-.03c.47-.64.88-1.31 1.24-2.02a.08.08 0 0 0-.04-.1 13.08 13.08 0 0 1-1.9-.91.08.08 0 0 1-.01-.13c.13-.1.25-.2.37-.29a.07.07 0 0 1 .08-.01 14.24 14.24 0 0 0 12.38 0 .07.07 0 0 1 .08.01c.12.1.25.2.38.3a.08.08 0 0 1-.01.12 12.22 12.22 0 0 1-1.9.9.08.08 0 0 0-.04.11c.36.7.77 1.38 1.23 2.02a.08.08 0 0 0 .1.03 19.84 19.84 0 0 0 6.08-3.07.08.08 0 0 0 .03-.05c.5-5.2-.84-9.7-3.77-13.71a.06.06 0 0 0-.03-.03ZM8.02 15.37c-1.18 0-2.16-1.08-2.16-2.4 0-1.32.96-2.4 2.16-2.4 1.2 0 2.18 1.09 2.16 2.4 0 1.32-.96 2.4-2.16 2.4Zm7.96 0c-1.18 0-2.16-1.08-2.16-2.4 0-1.32.96-2.4 2.16-2.4 1.2 0 2.18 1.09 2.16 2.4 0 1.32-.95 2.4-2.16 2.4Z"})})}function w0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"3",y:"3",width:"18",height:"18",rx:"5"}),s("circle",{cx:"12",cy:"12",r:"4"}),s("circle",{cx:"17.5",cy:"6.5",r:"1",fill:"currentColor",stroke:"none"})]})}function P0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...e,children:s("path",{fill:"currentColor",d:"M18.24 2.25h3.31l-7.23 8.26 8.51 11.24h-6.66l-5.21-6.82-5.97 6.82H1.68l7.73-8.84L1.25 2.25h6.83l4.71 6.23 5.45-6.23Zm-1.16 17.52h1.83L7.08 4.13H5.12l11.96 15.64Z"})})}function E0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...e,children:s("path",{fill:"currentColor",d:"M20.45 20.45h-3.56v-5.57c0-1.33-.03-3.04-1.85-3.04-1.86 0-2.14 1.45-2.14 2.94v5.67H9.34V9h3.42v1.56h.05c.47-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46v6.28ZM5.32 7.43a2.07 2.07 0 1 1 0-4.13 2.07 2.07 0 0 1 0 4.13ZM7.1 20.45H3.54V9H7.1v11.45Z"})})}function T0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),s("polyline",{points:"7 10 12 15 17 10"}),s("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}function I0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M8 3H3v5M16 3h5v5M21 16v5h-5M3 16v5h5"})})}function N0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...e,children:s("path",{fill:"currentColor",d:"M7 4.5v15l12-7.5z"})})}function k0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...e,children:s("path",{fill:"currentColor",d:"M6 4h4v16H6zM14 4h4v16h-4z"})})}function S0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M17.5 19H19a4 4 0 0 0 .4-8A7.5 7.5 0 0 0 5 9.5 5 5 0 0 0 6 19h1.5"}),s("path",{d:"m8.5 15.5 3.5-3.5 3.5 3.5M12 12v9"})]})}function st(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M7 17 17 7M9 7h8v8"})})}function R0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"m8 3 4 1.5L16 3v18l-4-1.5L8 21z"}),s("path",{d:"M8 3v18M16 3v18"})]})}function O0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("line",{x1:"6",y1:"3",x2:"6",y2:"15"}),s("circle",{cx:"18",cy:"6",r:"3"}),s("circle",{cx:"6",cy:"18",r:"3"}),s("path",{d:"M18 9a9 9 0 0 1-9 9"})]})}function A0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"6",cy:"6",r:"3"}),s("circle",{cx:"18",cy:"18",r:"3"}),s("path",{d:"M6 9v12M13 6h3a2 2 0 0 1 2 2v7"})]})}function M0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M21.42 10.92a1 1 0 0 0-.02-1.84L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.83l8.57 3.91a2 2 0 0 0 1.66 0z"}),s("path",{d:"M22 10v6"}),s("path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5"})]})}function L0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M12 3l1.9 5.8a2 2 0 0 0 1.3 1.3L21 12l-5.8 1.9a2 2 0 0 0-1.3 1.3L12 21l-1.9-5.8a2 2 0 0 0-1.3-1.3L3 12l5.8-1.9a2 2 0 0 0 1.3-1.3z"})})}function Zi(e){return s("svg",{viewBox:"0 0 24 24","aria-hidden":"true",...e,children:s("path",{fill:"currentColor",d:"M12 .5A11.5 11.5 0 0 0 8.36 22.9c.58.11.79-.25.79-.56v-2.16c-3.21.7-3.89-1.38-3.89-1.38-.53-1.34-1.29-1.7-1.29-1.7-1.05-.72.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.04 1.76 2.71 1.25 3.37.96.11-.75.4-1.25.74-1.54-2.56-.29-5.26-1.28-5.26-5.7 0-1.26.45-2.29 1.19-3.1-.12-.29-.52-1.46.11-3.06 0 0 .97-.31 3.16 1.18a10.88 10.88 0 0 1 5.76 0c2.19-1.49 3.15-1.18 3.15-1.18.63 1.6.23 2.77.11 3.06.74.81 1.19 1.84 1.19 3.1 0 4.43-2.7 5.4-5.27 5.69.41.36.78 1.06.78 2.14v3.19c0 .31.21.68.8.56A11.5 11.5 0 0 0 12 .5Z"})})}function D0({className:e}){return s("img",{src:Rp,alt:"","aria-hidden":"true",className:e})}function dn(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),s("circle",{cx:"9",cy:"9",r:"2"}),s("path",{d:"m21 15-5-5L5 21"})]})}function F0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"m21 16-9 5-9-5V8l9-5 9 5z"}),s("path",{d:"m3 8 9 5 9-5"}),s("path",{d:"M12 13v8"})]})}function B0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M9 18V5l12-2v13"}),s("circle",{cx:"6",cy:"18",r:"3"}),s("circle",{cx:"18",cy:"16",r:"3"})]})}function V0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),s("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]})}function H0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M10 17l5-5-5-5"}),s("path",{d:"M15 12H3"}),s("path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"})]})}function _0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),s("path",{d:"m16 17 5-5-5-5"}),s("path",{d:"M21 12H9"})]})}function W0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),s("path",{d:"m3 7 9 7 9-7"})]})}function z0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"2",y:"4",width:"8",height:"16",rx:"1.5"}),s("rect",{x:"14",y:"4",width:"8",height:"16",rx:"1.5"}),s("path",{d:"M10 12h4"})]})}function G0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M4 7h16M4 12h16M4 17h16"})})}function U0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M5 4h12a1 1 0 0 1 1 1v14a1 1 0 0 0 1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1z"}),s("path",{d:"M18 8h2a1 1 0 0 1 1 1v9a2 2 0 0 1-2 2"}),s("path",{d:"M7 8h7M7 12h7M7 16h4"})]})}function Xi(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M12 5v14M5 12h14"})})}function $0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("polyline",{points:"4 8 8 12 4 16"}),s("line",{x1:"12",y1:"20",x2:"20",y2:"20"})]})}function Ji(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l2.1 2.1a1 1 0 0 0 1.4 0l4-4a6 6 0 0 1-8 8l-8 8a2.8 2.8 0 0 1-4-4l8-8a6 6 0 0 1 8-8l-4 4Z"})})}function j0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"12",cy:"12",r:"9"}),s("circle",{cx:"12",cy:"12",r:"5"}),s("circle",{cx:"12",cy:"12",r:"1.6",fill:"currentColor",stroke:"none"})]})}function K0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M4 9h16M4 15h16M10 3 8 21M16 3l-2 18"})})}function q0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M4 18a8 8 0 1 1 16 0"}),s("path",{d:"M12 18l3.5-5"}),s("path",{d:"M7 18h10"}),s("path",{d:"M7.5 12.5 6 11"}),s("path",{d:"M16.5 12.5 18 11"})]})}function Qi(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M10.3 3.1 1.8 17a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.1a2 2 0 0 0-3.4 0Z"}),s("path",{d:"M12 9v4M12 17h.01"})]})}function Y0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("polyline",{points:"3 17 9 11 13 15 21 7"}),s("polyline",{points:"15 7 21 7 21 13"})]})}function Z0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("ellipse",{cx:"10",cy:"6",rx:"6",ry:"3"}),s("path",{d:"M4 6v8c0 1.7 2.7 3 6 3 1.2 0 2.4-.2 3.3-.5"}),s("path",{d:"M16 6v4"}),s("path",{d:"M4 10c0 1.7 2.7 3 6 3 1.1 0 2.1-.1 3-.4"}),s("path",{d:"M18 14v6"}),s("path",{d:"M15 17h6"})]})}function X0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M3 7a2 2 0 0 1 2-2h13a2 2 0 0 1 2 2v2H5a2 2 0 0 0-2 2V7Z"}),s("path",{d:"M3 11a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-6Z"}),s("circle",{cx:"17",cy:"14",r:"1.25",fill:"currentColor"})]})}function J0(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M6 3h12v18l-2-1.5-2 1.5-2-1.5-2 1.5-2-1.5L6 21Z"}),s("path",{d:"M9 8h6M9 12h6M9 16h3"})]})}function el(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z"})})}function tl(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"12",cy:"12",r:"4"}),s("path",{d:"M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"})]})}function to(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M18 6 6 18M6 6l12 12"})})}function ol(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M3 6h18"}),s("path",{d:"M8 6V4h8v2"}),s("path",{d:"m19 6-1 15H6L5 6"}),s("path",{d:"M10 11v6M14 11v6"})]})}function Q0(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})})}function rl(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"3",y:"6",width:"18",height:"15",rx:"3"}),s("path",{d:"M12 2v4M3 11H1v5h2M21 11h2v5h-2M8 17h8"}),s("circle",{cx:"9",cy:"12",r:"1"}),s("circle",{cx:"15",cy:"12",r:"1"})]})}function eg(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7z"}),s("circle",{cx:"12",cy:"12",r:"3"})]})}function tg(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7z"}),s("circle",{cx:"12",cy:"12",r:"3"}),s("path",{d:"M3 3l18 18"})]})}function og(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"m22 8-6 4 6 4V8z"}),s("rect",{x:"2",y:"6",width:"14",height:"12",rx:"2"})]})}function rg(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3z"}),s("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),s("path",{d:"M12 19v3"})]})}function ng(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M11 5 6 9H2v6h4l5 4z"}),s("path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07"}),s("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14"})]})}function ig(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"m3 11 18-5v12L3 14v-3z"}),s("path",{d:"m7 15 1.5 6H14l-2-7"})]})}function lg(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M9 18h6M10 22h4M15.1 14c.2-1 .6-1.7 1.4-2.5A4.6 4.6 0 0 0 18 8 6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.8.8 1.2 1.5 1.4 2.5"})})}function sg(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z"}),s("path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z"}),s("path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0"}),s("path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"})]})}function ag(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"11",cy:"11",r:"7"}),s("path",{d:"m21 21-4.3-4.3"})]})}function cg(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),s("path",{d:"m16 17 5-5-5-5"}),s("path",{d:"M21 12H9"})]})}function pg(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M12 2v10"}),s("path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04"})]})}function ug(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M9.94 15.5A2 2 0 0 0 8.5 14.06l-6.14-1.58a.5.5 0 0 1 0-.96L8.5 9.94A2 2 0 0 0 9.94 8.5l1.58-6.14a.5.5 0 0 1 .96 0L14.06 8.5A2 2 0 0 0 15.5 9.94l6.14 1.58a.5.5 0 0 1 0 .96L15.5 14.06a2 2 0 0 0-1.44 1.44l-1.58 6.14a.5.5 0 0 1-.96 0z"}),s("path",{d:"M20 3v4"}),s("path",{d:"M22 5h-4"}),s("path",{d:"M4 17v2"}),s("path",{d:"M5 18H3"})]})}function dg({filled:e=!1,...t}){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,fill:e?"currentColor":"none",...t,children:s("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})})}function mg(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"m16 18 6-6-6-6M8 6l-6 6 6 6"})})}function fg(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),s("path",{d:"M3 5v14a9 3 0 0 0 18 0V5"}),s("path",{d:"M3 12a9 3 0 0 0 18 0"})]})}function gg(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),s("path",{d:"M2 10h20"})]})}function hg(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M7 20h10"}),s("path",{d:"M10 20c5.5-2.5.8-6.4 3-10"}),s("path",{d:"M9.5 9.4c1.1.8 1.8 2.2 2.3 3.7-2 .4-3.5.4-4.8-.3-1.2-.6-2.3-1.9-3-4.2 2.8-.5 4.4 0 5.5.8z"}),s("path",{d:"M14.1 6a7 7 0 0 0-1.1 4c1.9-.1 3.3-.6 4.3-1.4 1-1 1.6-2.3 1.7-4.6-2.7.1-4 1-4.9 2z"})]})}function xg(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M12 20h9"}),s("path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"})]})}function bg(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"7.5",cy:"15.5",r:"5.5"}),s("path",{d:"m21 2-9.6 9.6"}),s("path",{d:"m15.5 7.5 3 3L22 7l-3-3"})]})}function vg(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("circle",{cx:"12",cy:"12",r:"10"}),s("path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}),s("path",{d:"M2 12h20"})]})}function yg(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M19 12H5"}),s("path",{d:"m12 19-7-7 7-7"})]})}function Cg(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M21 12a9 9 0 1 1-2.64-6.36"}),s("path",{d:"M21 3v6h-6"})]})}function wg(e){return s("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:s("path",{d:"M22 12h-4l-3 9L9 3l-3 9H2"})})}function Pg(e){return h("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",...F,...e,children:[s("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"}),s("path",{d:"m9 12 2 2 4-4"})]})}function Eg(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?"?":t.length===1?t[0].slice(0,2).toUpperCase():`${t[0][0]??""}${t.at(-1)?.[0]??""}`.toUpperCase()}function nl({name:e,avatarUrl:t,secondaryContent:o,dashboardHref:r,inline:n=!1}){let i=n?"polli:h-6 polli:w-6":o!=null?"polli:h-11 polli:w-11":"polli:h-8 polli:w-8",l=x(i,n&&"polli:transition-transform polli:group-hover:scale-110 polli:group-hover:brightness-110 polli:motion-reduce:transition-none polli:motion-reduce:group-hover:scale-100"),a=t?s("img",{src:t,alt:"",className:x(l,"polli:shrink-0 polli:rounded-full polli:object-cover")}):s("span",{role:"img","aria-label":`${e} avatar`,className:x(l,"polli:flex polli:shrink-0 polli:items-center polli:justify-center polli:rounded-full polli:bg-theme-bg-pale polli:text-xs polli:font-semibold polli:text-theme-text-strong"),children:Eg(e)});return r?s("a",{href:r,target:"_blank",rel:"noopener noreferrer","aria-label":"Open dashboard",title:"Open dashboard",className:"polli:shrink-0 polli:rounded-full polli:cursor-pointer polli:transition-transform polli:hover:scale-105 polli:hover:brightness-110 polli:focus-visible:outline-2 polli:focus-visible:outline-offset-2 polli:focus-visible:outline-current polli:motion-reduce:transition-none polli:motion-reduce:hover:scale-100",children:a}):a}function Op({name:e,avatarUrl:t,secondaryContent:o,dashboardHref:r,className:n}){return h("span",{className:x("polli:flex polli:min-w-0 polli:items-center polli:gap-2 polli:rounded-full polli:bg-surface-opaque polli:p-1 polli:pr-3",n),children:[s(nl,{name:e,avatarUrl:t,dashboardHref:r,secondaryContent:o}),s(il,{name:e,secondaryContent:o})]})}function Ap({name:e,avatarUrl:t,href:o,className:r}){return h("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:x("polli:group polli:inline-flex polli:max-w-full polli:min-w-0 polli:items-center polli:gap-1.5 polli:rounded-full polli:bg-theme-bg-subtle polli:p-0.5 polli:pr-2.5 polli:align-middle polli:focus-visible:outline-2 polli:focus-visible:outline-offset-2 polli:focus-visible:outline-current",r),children:[s(nl,{name:e,avatarUrl:t,inline:!0}),s(il,{name:e}),s(st,{"aria-hidden":"true",className:"polli:-ml-0.5 polli:h-3 polli:w-3 polli:shrink-0 polli:text-theme-text-strong polli:opacity-65"})]})}function il({name:e,secondaryContent:t,secondaryId:o}){return h("span",{className:"polli:flex polli:min-w-0 polli:flex-col polli:items-start polli:text-left",children:[s("span",{title:e,className:"polli:max-w-full polli:truncate polli:text-sm polli:font-medium polli:leading-5 polli:text-theme-text-strong",children:e}),t!=null&&s("span",{id:o,className:"polli:inline-flex polli:min-h-5 polli:items-center polli:whitespace-nowrap polli:text-xs polli:leading-4 polli:text-theme-text-base",children:t})]})}function ll({name:e,avatarUrl:t,dashboardHref:o,secondaryContent:r,children:n,className:i,menuClassName:l,side:a="bottom",menuLabel:c=`Account menu for ${e}`}){let p=me(),u=s(nl,{name:e,avatarUrl:t,dashboardHref:o,secondaryContent:r});return h("div",{"data-theme":"accent",className:x("polli:flex polli:min-w-0 polli:items-center polli:gap-2 polli:rounded-full polli:bg-theme-bg-active polli:p-1 polli:pr-3 polli:text-theme-text-strong polli:transition-colors polli:hover:bg-theme-bg-hover",i),children:[o&&u,s(Pt,{align:"end",side:a,className:x("polli:w-max polli:min-w-[var(--reference-width)] polli:p-1",l),trigger:d=>h("button",{type:"button","aria-label":c,"aria-describedby":r!=null?p:void 0,className:"polli-control polli:flex polli:min-w-0 polli:flex-1 polli:items-center polli:gap-2 polli:self-stretch polli:rounded-full polli:text-theme-text-strong",children:[!o&&u,s(il,{name:e,secondaryContent:r,secondaryId:p}),s(fe,{expanded:d,className:"polli:ml-auto polli:h-4 polli:w-4 polli:text-theme-text-strong"})]}),children:n})]})}var Tg={display:"polli:font-heading polli:text-5xl polli:leading-none",title:"polli:font-heading polli:text-4xl polli:leading-none",section:"polli:font-subheading polli:text-2xl polli:leading-tight",subsection:"polli:font-subheading polli:text-xl polli:leading-tight",card:"polli:font-subheading polli:text-lg polli:leading-tight"},Ig={body:"polli:text-base polli:leading-relaxed",sm:"polli:text-sm polli:leading-6",xs:"polli:text-xs polli:leading-normal",micro:"polli:text-micro polli:leading-normal"},Ng={base:"polli:text-theme-text-base",strong:"polli:text-theme-text-strong",soft:"polli:text-theme-text-soft",muted:"polli:text-theme-text-muted"},kg={normal:"polli:font-normal",medium:"polli:font-medium",semibold:"polli:font-semibold",bold:"polli:font-bold"};function sl(e,t){return x("polli:break-words polli:text-theme-text-strong",Tg[e],t)}function Sg({size:e,tone:t,weight:o,className:r}){return x("polli:break-words polli:font-body",Ig[e],Ng[t],kg[o],r)}function To({as:e,size:t="section",className:o,children:r,...n}){return s(e||"h2",{...n,className:sl(t,o),children:r})}function pe({as:e,size:t="body",tone:o="base",weight:r="normal",className:n,children:i,...l}){return s(e||"p",{...l,className:Sg({size:t,tone:o,weight:r,className:n}),children:i})}var Rg={info:"polli:bg-theme-bg-pale polli:text-theme-text-strong",advisory:"polli:bg-intent-warning-bg-light/45 polli:text-theme-text-base",warning:"polli:bg-intent-warning-bg-light polli:text-intent-warning-text",danger:"polli:bg-intent-danger-bg-light polli:text-intent-danger-text"},mn=({intent:e="info",title:t,className:o,children:r,...n})=>h("div",{...n,role:e==="danger"?"alert":"status",className:x("polli:rounded-xl polli:px-3 polli:py-2 polli:text-sm",e==="advisory"&&"polli:flex polli:items-start polli:gap-2",Rg[e],o),children:[e==="advisory"&&s(Qi,{className:"polli:mt-0.5 polli:h-4 polli:w-4 polli:shrink-0 polli:text-intent-warning-text"}),h("div",{className:"polli:min-w-0",children:[t&&(e==="advisory"?h(Y,{children:[s("strong",{className:"polli:font-semibold polli:text-theme-text-strong",children:t}),":"," "]}):s(pe,{as:"div",size:"xs",tone:"strong",weight:"bold",className:"polli:mb-1 polli:uppercase polli:tracking-wide",children:t})),r]})]});var Mp='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 858.891 105.6" fill="currentColor">%0A <g transform="translate(-13.81 -16.241) scale(0.921)"><path fill-rule="evenodd" d="M73.832 19.293a1893.685 1893.685 0 0 0-7.742 9.047c-1.93 2.273-3.274 3.898-4.266 5.156-.988 1.258-1.62 2.149-2.117 2.957-.5.805-.86 1.531-1.309 2.453-.14.285-.277.563-.402.813-.121.254-.238.48-.332.676a20.107 20.107 0 0 1-.34.652c-.008.008-.062 0-.156-.02s-.227-.047-.383-.09c-.16-.039-.351-.09-.558-.148-.207-.059-.43-.121-.668-.191-1.079-.32-1.895-.559-2.684-.743-.79-.18-1.55-.3-2.516-.382-.96-.082-2.129-.121-3.734-.145-1.602-.02-3.64-.023-6.348-.023H35.31l-2.485-.004H30.34v20.574l-.527.059-.524.058-1.055.117c-.59.067-1.203.157-1.84.274-.636.113-1.292.25-1.968.414-.676.16-1.371.348-2.086.555-.715.21-1.445.441-2.195.695-.47.16-1.024.36-1.594.574a64.38 64.38 0 0 0-1.684.649c-.523.207-.992.398-1.328.546-.336.149-.539.246-.539.274 0 .039.07.234.191.535.118.297.29.7.485 1.156.195.453.418.961.644 1.473.227.508.461 1.02.676 1.484a52.041 52.041 0 0 0 9.54 13.926 47.507 47.507 0 0 0 6.14 5.41c2.164 1.59 4.426 2.953 6.75 4.047a51.197 51.197 0 0 0 3.414 1.461c1.129.43 2.242.805 3.36 1.125 1.112.324 2.226.59 3.343.809a39.04 39.04 0 0 0 3.375.504c.84.085 1.781.136 2.777.156a51.632 51.632 0 0 0 6.203-.266 34.786 34.786 0 0 0 2.836-.394 59.177 59.177 0 0 1 2.633-.442c.149-.02.235-.023.246-.015.043.043-.02.195-.152.414a9.01 9.01 0 0 1-.582.812c-.242.313-.527.645-.813.965-.289.316-.582.617-.851.86-.57.519-1.168.968-1.809 1.355-.64.383-1.324.703-2.07.969-.746.261-1.555.464-2.441.617-.891.156-1.856.258-2.926.316-1.36.07-2.582.207-3.703.422-1.118.211-2.13.496-3.07.871-.938.375-1.801.84-2.618 1.403a15.82 15.82 0 0 0-2.351 2 14.205 14.205 0 0 0-1.489 1.765 13.256 13.256 0 0 0-1.148 1.945 15.518 15.518 0 0 0-.856 2.207 20.834 20.834 0 0 0-.59 2.543c-.058.348-.105.61-.156.817-.05.207-.105.36-.183.484a1.184 1.184 0 0 1-.325.332c-.144.106-.332.211-.578.356a9.157 9.157 0 0 0-2.543 2.183 8.797 8.797 0 0 0-1.52 2.813 8.33 8.33 0 0 0-.382 3.113 7.995 7.995 0 0 0 .852 3.098 7.95 7.95 0 0 0 1.574 2.117 9.294 9.294 0 0 0 2.168 1.566c.789.418 1.629.715 2.469.868.84.152 1.68.167 2.472.007a7.941 7.941 0 0 0 1.188-.336c.406-.144.82-.32 1.222-.515.399-.2.79-.418 1.149-.653.36-.234.691-.476.976-.73a6.93 6.93 0 0 0 1.473-1.86c.39-.71.68-1.492.855-2.308.176-.82.243-1.676.188-2.527a8.74 8.74 0 0 0-.531-2.516 5.919 5.919 0 0 0-.68-1.281c-.289-.43-.64-.856-1.031-1.258a10.34 10.34 0 0 0-1.262-1.11 8.299 8.299 0 0 0-1.379-.847c-.414-.2-.722-.352-.95-.492-.226-.137-.366-.27-.44-.43-.075-.16-.083-.352-.043-.613.039-.266.125-.598.242-1.043.226-.871.566-1.695 1.004-2.465a10.426 10.426 0 0 1 3.672-3.754c.77-.46 1.605-.836 2.492-1.102.152-.046.386-.093.675-.144a30.829 30.829 0 0 1 2.246-.273c.43-.043.876-.075 1.317-.102a41.754 41.754 0 0 0 2.773-.25 19.813 19.813 0 0 0 2.243-.406 13.283 13.283 0 0 0 1.918-.621c.609-.246 1.199-.536 1.804-.88a20.824 20.824 0 0 0 1.774-1.116c.539-.383 1.031-.786 1.511-1.227.48-.445.942-.934 1.415-1.488.468-.559.953-1.18 1.468-1.899l.309-.426.308-.43.313-.429.309-.426v19.633l-.399.262-.402.265-.797.532a11.66 11.66 0 0 0-1.567 1.21c-.44.41-.808.837-1.113 1.305-.305.465-.55.97-.746 1.535-.2.567-.351 1.192-.473 1.903a7.401 7.401 0 0 0 .024 2.574 8.502 8.502 0 0 0 2.441 4.543 7.787 7.787 0 0 0 2.157 1.496c.804.367 1.632.61 2.46.715.829.105 1.66.082 2.47-.07a7.963 7.963 0 0 0 2.343-.828 8.831 8.831 0 0 0 2.094-1.567c.406-.402.738-.789 1.011-1.18.27-.394.48-.796.641-1.234.156-.441.266-.918.336-1.473.07-.55.102-1.171.105-1.894 0-.524 0-.93-.011-1.266a6.504 6.504 0 0 0-.074-.836 3.967 3.967 0 0 0-.192-.683c-.09-.23-.207-.485-.355-.805a7.845 7.845 0 0 0-1.594-2.262 8.117 8.117 0 0 0-1.07-.879 9.342 9.342 0 0 0-1.254-.718l-.348-.164-.348-.16-.343-.165-.348-.164v-4.957l-.004-2.476v-2.48c0-1.36.004-2.657.012-3.833.008-1.176.02-2.23.035-3.11.016-.882.035-1.589.055-2.07.02-.48.043-.734.066-.707.02.028.074.102.156.208l.301.421c.121.168.258.364.406.575.145.207.305.433.461.664.38.543.735 1.027 1.09 1.468.352.438.703.832 1.063 1.2.363.367.742.707 1.148 1.039.406.328.844.652 1.332.98.777.528 1.5.965 2.223 1.328.718.364 1.437.657 2.203.89.765.235 1.582.411 2.496.544.914.137 1.93.23 3.094.3.433.024.867.055 1.289.087a40.742 40.742 0 0 1 2.148.215c.27.035.477.07.602.101.965.234 1.898.64 2.761 1.168a11.119 11.119 0 0 1 2.34 1.93 10.355 10.355 0 0 1 1.688 2.437c.43.867.707 1.781.805 2.695l.03.313.032.309.035.316.031.309-.27.14-.538.274-.274.136c-.828.426-1.558.922-2.183 1.493a7.954 7.954 0 0 0-1.54 1.91 7.731 7.731 0 0 0-.87 2.273 9.264 9.264 0 0 0-.172 2.594c.066.96.285 1.871.64 2.703a7.903 7.903 0 0 0 1.446 2.258 8.316 8.316 0 0 0 2.14 1.683c.817.45 1.727.782 2.715.98 1.309.255 2.617.126 3.836-.3a8.813 8.813 0 0 0 3.266-2.05 8.893 8.893 0 0 0 2.117-3.239c.453-1.21.613-2.527.387-3.848a9.06 9.06 0 0 0-1.504-3.644 9.344 9.344 0 0 0-1.301-1.477 8.97 8.97 0 0 0-1.61-1.16c-.18-.097-.347-.2-.507-.293-.16-.097-.305-.183-.434-.265-.125-.082-.23-.153-.312-.211a.573.573 0 0 1-.137-.121.813.813 0 0 1-.063-.184c-.027-.094-.058-.223-.097-.375a11.147 11.147 0 0 1-.11-.512c-.039-.187-.082-.39-.12-.594-.098-.5-.227-1.023-.383-1.554a19.7 19.7 0 0 0-.551-1.594c-.207-.527-.43-1.039-.668-1.512a12.868 12.868 0 0 0-.735-1.3 12.93 12.93 0 0 0-1.582-1.954 15.064 15.064 0 0 0-1.98-1.691 15.833 15.833 0 0 0-2.27-1.355 14.35 14.35 0 0 0-2.449-.934 9.33 9.33 0 0 0-.836-.188 25.72 25.72 0 0 0-1.094-.18 40.224 40.224 0 0 0-2.605-.269 51.614 51.614 0 0 1-1.281-.11 47.27 47.27 0 0 1-1.242-.128 37.65 37.65 0 0 1-1.067-.14 12.643 12.643 0 0 1-.746-.133 11.48 11.48 0 0 1-1.508-.458c-.5-.187-.996-.414-1.472-.668a12.371 12.371 0 0 1-2.606-1.847 16.117 16.117 0 0 1-1.676-1.836 5.604 5.604 0 0 1-.465-.707c-.097-.192-.125-.324-.074-.375.016-.016.117-.012.285.004.168.015.407.047.696.09.293.039.633.093 1.008.156.37.062.78.137 1.207.215a60.65 60.65 0 0 0 1.789.304c.527.079 1.011.133 1.535.172.523.04 1.09.063 1.777.078.692.016 1.504.02 2.527.024 1.22 0 2.204-.008 3.06-.031a27.474 27.474 0 0 0 2.257-.153 20.662 20.662 0 0 0 2.047-.336 48.885 48.885 0 0 0 2.426-.59 44.634 44.634 0 0 0 5.347-1.761 42.256 42.256 0 0 0 4.98-2.387 43.059 43.059 0 0 0 4.633-3.031 46.976 46.976 0 0 0 4.329-3.692 55.822 55.822 0 0 0 3.312-3.468 49.244 49.244 0 0 0 2.879-3.63 50.142 50.142 0 0 0 2.516-3.886 57.29 57.29 0 0 0 2.23-4.258c.375-.793.691-1.48.95-2.066.257-.59.46-1.078.613-1.473.144-.398.242-.7.285-.918.047-.219.039-.351-.016-.402-.078-.07-.41-.23-.902-.442a57.272 57.272 0 0 0-1.828-.73c-.692-.262-1.434-.535-2.121-.777a36.517 36.517 0 0 0-1.778-.586 54.289 54.289 0 0 0-3.531-.879 48.341 48.341 0 0 0-1.715-.332 23.874 23.874 0 0 0-1.465-.215l-.633-.07-.312-.04-.316-.035V39.301l-2.461.004h-2.461l-2.457.004h-2.461c-2.645.004-4.664.007-6.266.03-1.605.024-2.797.067-3.789.141-.992.079-1.789.192-2.598.356-.812.164-1.64.383-2.703.668a23.531 23.531 0 0 1-1.203.3c-.16.036-.289.06-.383.075-.093.016-.148.02-.156.008a29.962 29.962 0 0 1-.355-.672c-.102-.2-.22-.434-.348-.692a79.19 79.19 0 0 1-.418-.828c-.45-.902-.785-1.578-1.168-2.234-.379-.66-.805-1.297-1.422-2.117-.617-.817-1.433-1.82-2.594-3.203-1.16-1.387-2.671-3.153-4.68-5.508-1.398-1.64-2.53-2.961-3.44-4.02a272.265 272.265 0 0 0-2.122-2.441c-.523-.59-.875-.973-1.11-1.211-.237-.234-.355-.324-.402-.32-.015 0-.07.047-.156.132-.086.086-.199.207-.34.356-.136.148-.296.328-.472.523-.172.2-.364.414-.555.641m7.059 11.504a151.52 151.52 0 0 1 3.582 4.336 58.05 58.05 0 0 1 2.488 3.336c.66.965 1.16 1.793 1.516 2.515.355.72.57 1.332.66 1.868.023.14.039.25.031.347a.526.526 0 0 1-.09.262 1.205 1.205 0 0 1-.266.262c-.12.093-.285.199-.492.332-.332.21-.773.554-1.265.976-.493.426-1.043.934-1.594 1.473a43.455 43.455 0 0 0-1.625 1.672 25.487 25.487 0 0 0-1.348 1.574c-.398.512-.812 1.09-1.222 1.703a39.76 39.76 0 0 0-1.204 1.91 39.73 39.73 0 0 0-1.085 1.946c-.329.636-.622 1.25-.86 1.812-.34.809-.672 1.727-.976 2.688-.305.96-.582 1.964-.817 2.945-.234.984-.43 1.945-.562 2.816-.137.871-.215 1.653-.215 2.282-.004.609-.024 1.054-.055 1.332-.035.277-.086.386-.152.328-.067-.055-.149-.278-.246-.664a26.572 26.572 0 0 1-.336-1.66 76.29 76.29 0 0 0-.54-2.758 81.86 81.86 0 0 0-.624-2.66c-.211-.844-.43-1.637-.645-2.34a22.878 22.878 0 0 0-.617-1.801 24.472 24.472 0 0 0-.742-1.66 48.94 48.94 0 0 0-2.047-3.746c-.36-.59-.707-1.13-1.027-1.582a21.393 21.393 0 0 0-1.153-1.446 44.776 44.776 0 0 0-1.558-1.71 47.283 47.283 0 0 0-1.657-1.657c-.539-.512-1.043-.96-1.468-1.3-.172-.141-.34-.278-.489-.41a8.144 8.144 0 0 1-.402-.376 3.846 3.846 0 0 1-.27-.293c-.066-.082-.101-.144-.101-.176 0-.105.098-.378.262-.753.16-.372.386-.848.644-1.356.258-.508.547-1.05.828-1.562a24.735 24.735 0 0 1 1.582-2.508c.262-.371.543-.746.871-1.16.329-.418.7-.871 1.149-1.407.45-.535.973-1.144 1.601-1.87.235-.27.536-.614.875-1.005.336-.394.715-.832 1.114-1.293.394-.46.808-.937 1.215-1.41.402-.472.8-.933 1.168-1.363l.668-.777.668-.774.667-.777.665-.778.117.118.113.12.117.118.113.117a110.75 110.75 0 0 1 1.668 1.914l1.555 1.809c.57.664 1.184 1.383 1.813 2.12M51.227 44.149c.425.09.867.2 1.304.317.434.117.864.242 1.254.37.395.13.754.259 1.055.38.297.12.535.234.687.332.051.035.09.094.11.191.02.098.023.239.011.442-.015.199-.046.457-.097.793-.055.336-.125.75-.215 1.257-.094.524-.172.989-.23 1.446-.06.457-.106.91-.137 1.41a32.68 32.68 0 0 0-.067 1.7c-.011.648-.015 1.401-.015 2.312 0 .98.004 1.761.015 2.414.012.648.035 1.172.07 1.644.04.473.09.89.165 1.336.07.446.164.918.285 1.488.074.348.156.72.242 1.094.082.375.168.754.254 1.11.086.359.168.695.242.992.074.3.14.554.195.75.055.195.102.383.149.554.043.172.082.329.113.461.031.13.059.239.07.317.016.078.02.125.012.133a.942.942 0 0 1-.183-.079 35.955 35.955 0 0 1-1.148-.629c-.255-.144-.532-.304-.821-.472a95.651 95.651 0 0 0-2.031-1.152 44.616 44.616 0 0 0-1.723-.899 34 34 0 0 0-1.633-.75 44.224 44.224 0 0 0-1.762-.715 50.86 50.86 0 0 0-2.855-1.004 45.68 45.68 0 0 0-2.8-.793 39.106 39.106 0 0 0-2.653-.562 26.924 26.924 0 0 0-2.406-.309l-.426-.03-.426-.036-.426-.031-.426-.035V43.758h7.215c1.578.004 2.832.008 3.852.015 1.02.012 1.8.028 2.437.055a20.37 20.37 0 0 1 1.547.117c.43.051.797.117 1.196.203m64.886 7.493c0 1.23-.008 2.34-.015 3.312-.008.977-.02 1.817-.04 2.504-.015.691-.038 1.23-.062 1.602-.023.367-.05.57-.082.59a1.259 1.259 0 0 1-.281.07c-.153.031-.367.062-.617.101-.254.035-.547.078-.868.117-.32.043-.664.083-1.02.122-.765.086-1.538.199-2.323.343-.79.141-1.59.313-2.407.516-.816.203-1.652.434-2.503.7-.856.26-1.73.558-2.625.882-.735.266-1.305.477-1.801.672-.496.195-.918.375-1.348.578-.43.203-.867.43-1.398.723-.528.289-1.149.644-1.946 1.101a34.54 34.54 0 0 1-1.644.895 9.035 9.035 0 0 1-.528.242c-.128.055-.21.074-.226.059-.016-.016-.02-.082-.012-.184a5.49 5.49 0 0 1 .055-.422c.031-.172.066-.371.113-.59.043-.219.098-.457.156-.699.258-1.082.454-1.906.602-2.613.152-.703.258-1.282.332-1.867.078-.583.125-1.172.156-1.895.035-.723.059-1.578.086-2.695.024-.98.04-1.77.043-2.434.004-.66-.004-1.2-.027-1.684a17.76 17.76 0 0 0-.113-1.355 29.95 29.95 0 0 0-.223-1.445c-.152-.887-.27-1.543-.336-2.035-.066-.493-.086-.825-.04-1.059a.664.664 0 0 1 .333-.492c.18-.117.437-.207.781-.336.692-.266 1.29-.469 1.926-.63.637-.16 1.309-.276 2.152-.358.84-.082 1.852-.133 3.164-.16 1.309-.032 2.922-.044 4.965-.047l3.813-.008h1.902l1.906-.004v7.883m-25.05-2.368c.195 1.02.343 1.977.437 2.91.098.934.14 1.837.133 2.75a25.621 25.621 0 0 1-.18 2.797c-.11.961-.273 1.961-.488 3.036a39.395 39.395 0 0 1-.746 3.12 31.161 31.161 0 0 1-.946 2.829c-.355.906-.75 1.781-1.187 2.64a30.9 30.9 0 0 1-1.473 2.555c-.215.34-.597.86-1.074 1.469a76.18 76.18 0 0 1-1.625 2.012 79.82 79.82 0 0 1-1.73 2.011 30.987 30.987 0 0 1-1.387 1.489l-.258.25-.262.254-.257.253-.262.254.02-1.62.023-1.622.02-1.617.019-1.621c.02-1.414.035-2.543.058-3.465.02-.922.047-1.637.082-2.227.036-.59.082-1.054.141-1.472.059-.422.133-.797.227-1.211a38.117 38.117 0 0 1 1.086-3.91c.418-1.235.89-2.403 1.433-3.524a28.68 28.68 0 0 1 1.82-3.222 31.184 31.184 0 0 1 2.258-3.012 18.08 18.08 0 0 1 1.012-1.086c.367-.363.746-.715 1.106-1.023.355-.31.69-.575.964-.762.27-.188.48-.297.59-.297.035 0 .07.031.11.086.039.05.078.129.12.226a4.214 4.214 0 0 1 .216.75m-28.895.91c.914.915 1.738 1.86 2.488 2.86a25.52 25.52 0 0 1 2.028 3.187 30.027 30.027 0 0 1 1.636 3.645 42.64 42.64 0 0 1 1.32 4.23c.122.485.22.872.294 1.274.074.406.125.832.164 1.387.043.554.07 1.242.09 2.171.023.934.039 2.11.058 3.645.02 1.441.035 2.566.04 3.438.003.87 0 1.488-.016 1.921-.016.434-.043.68-.086.813-.04.129-.094.14-.16.101-.106-.058-.376-.324-.743-.722-.367-.399-.84-.926-1.34-1.512a82.643 82.643 0 0 1-1.539-1.832 48.185 48.185 0 0 1-1.34-1.695c-.34-.45-.722-1.031-1.117-1.688a40.534 40.534 0 0 1-1.183-2.125 43.623 43.623 0 0 1-1.075-2.207 21.82 21.82 0 0 1-.773-1.933c-.07-.215-.152-.477-.238-.762-.082-.29-.172-.602-.258-.922a49.961 49.961 0 0 1-.461-1.844c-.187-.86-.316-2.113-.395-3.508a62.606 62.606 0 0 1-.066-4.378c.027-1.434.106-2.762.227-3.735.12-.969.285-1.578.492-1.578.023 0 .097.05.21.14.11.09.259.22.438.38a44.358 44.358 0 0 1 1.305 1.25m53.23 15.39a24.897 24.897 0 0 1-.965 4.492 26.72 26.72 0 0 1-.824 2.25 33.11 33.11 0 0 1-1.058 2.305c-.344.676-.66 1.262-.98 1.805-.321.543-.641 1.035-.997 1.523-.351.485-.734.961-1.18 1.473-.445.508-.953 1.05-1.542 1.66a35.204 35.204 0 0 1-1.579 1.54c-.496.448-.976.847-1.468 1.21-.493.367-1 .703-1.551 1.031-.55.328-1.145.649-1.817.989-.84.421-1.624.761-2.445 1.03a15.58 15.58 0 0 1-2.683.626c-1.004.152-2.145.25-3.532.308-1.382.063-3.011.082-4.98.082H82.18l.03-.113.036-.113.031-.113.035-.114c.055-.199.243-.582.516-1.074.274-.496.633-1.101 1.027-1.746.399-.645.836-1.324 1.266-1.969.43-.644.852-1.25 1.219-1.746a44.604 44.604 0 0 1 5.883-6.445 41.569 41.569 0 0 1 6.812-4.977 38.048 38.048 0 0 1 7.477-3.36 34.711 34.711 0 0 1 7.886-1.585c.11-.008.22-.02.325-.027.105-.008.203-.02.293-.028.09-.008.164-.02.226-.023.063-.008.106-.016.13-.02.023-.004.038.024.05.078a.934.934 0 0 1 .023.239c.004.101 0 .226-.007.363-.008.137-.02.29-.04.45M30.934 66.89c.242 1.234.562 2.488.945 3.738a41.182 41.182 0 0 0 1.32 3.68 37.438 37.438 0 0 0 1.61 3.425 27.185 27.185 0 0 0 1.816 2.961c.45.633.992 1.313 1.594 2.004a38.232 38.232 0 0 0 1.949 2.074c.687.68 1.395 1.34 2.098 1.942.699.597 1.39 1.144 2.03 1.597.298.208.575.407.825.59.25.184.469.352.649.496.18.141.32.258.41.344.09.082.129.133.105.14-.066.028-.328-.038-.71-.167-.384-.13-.891-.324-1.458-.555a48.612 48.612 0 0 1-1.812-.777 38.066 38.066 0 0 1-7.352-4.297 42.01 42.01 0 0 1-5.043-4.422 44.733 44.733 0 0 1-4.37-5.254 45.026 45.026 0 0 1-3.575-5.941c-.125-.258-.25-.504-.356-.735-.109-.226-.207-.433-.285-.609-.078-.176-.14-.32-.18-.422-.042-.101-.058-.164-.05-.172.008-.008.062-.031.148-.066.09-.035.211-.082.36-.137.144-.05.32-.113.507-.18l.614-.21c.433-.145.988-.297 1.593-.446a39.578 39.578 0 0 1 3.805-.73c.574-.078 1.07-.125 1.434-.133l.23-.004.235-.004.23-.004.234-.004.114.57.109.57.113.567.114.57m8.199-1.87c1.383.238 2.8.59 4.226 1.039 1.426.449 2.856 1 4.27 1.636a42.064 42.064 0 0 1 4.16 2.164c1.348.801 2.648 1.68 3.879 2.621.41.317.95.778 1.547 1.32a69.069 69.069 0 0 1 1.914 1.805c.652.641 1.3 1.293 1.871 1.899a31.34 31.34 0 0 1 1.422 1.586 46.416 46.416 0 0 1 1.726 2.27c.57.796 1.125 1.613 1.622 2.39.5.781.94 1.52 1.285 2.152.343.637.593 1.172.71 1.543l.032.114.035.113.04.113.03.113h-5.511c-1.918 0-3.48-.02-4.801-.078-1.324-.058-2.41-.156-3.371-.312a15.68 15.68 0 0 1-2.63-.653c-.831-.289-1.651-.652-2.581-1.109a20.527 20.527 0 0 1-3.137-1.926 24.776 24.776 0 0 1-2.902-2.523 26.07 26.07 0 0 1-2.528-2.988 24.005 24.005 0 0 1-2.011-3.305 35.404 35.404 0 0 1-1.192-2.649 38.321 38.321 0 0 1-.968-2.66 25.394 25.394 0 0 1-.645-2.39c-.156-.72-.238-1.348-.238-1.832 0-.211 0-.371.011-.489.012-.12.032-.203.079-.257.043-.055.105-.082.203-.098.093-.016.222-.016.39-.016.094 0 .25.012.453.032.204.023.454.05.73.09.278.035.583.078.903.128.32.047.653.102.977.157m84.953.085c.336.06.809.168 1.336.297.523.13 1.101.282 1.64.434.543.152 1.051.305 1.43.43.387.125.649.222.7.273.027.023-.028.184-.149.45-.121.265-.3.632-.527 1.062-.223.433-.493.93-.79 1.457a56.9 56.9 0 0 1-.937 1.633 44.31 44.31 0 0 1-3.473 5.027 46.345 46.345 0 0 1-4.12 4.531 43.203 43.203 0 0 1-4.571 3.848 34.726 34.726 0 0 1-4.82 2.969 42.898 42.898 0 0 1-3.02 1.367c-.469.191-.89.351-1.207.457-.32.105-.535.156-.598.137-.027-.012.004-.055.079-.133.074-.074.195-.18.351-.309.153-.129.348-.281.563-.445.218-.164.465-.344.722-.531a31.987 31.987 0 0 0 3.067-2.473 30.025 30.025 0 0 0 4.992-5.887 32.018 32.018 0 0 0 1.953-3.441c.398-.809.75-1.57 1.059-2.309a30.121 30.121 0 0 0 1.48-4.39c.188-.758.363-1.547.52-2.391l.109-.59.113-.586.11-.59.109-.586h1.133c.156 0 .347.008.566.024.215.012.457.035.703.062a20.21 20.21 0 0 1 1.477.203m-79.191 55.711c.363.23.671.555.917.934.247.379.426.816.536 1.273.109.457.148.938.105 1.407a3.61 3.61 0 0 1-.371 1.336c-.156.304-.332.57-.539.808a3.303 3.303 0 0 1-1.512.996 4.104 4.104 0 0 1-.965.184 4.468 4.468 0 0 1-1.03-.043 3.427 3.427 0 0 1-1.719-.805 4.434 4.434 0 0 1-.696-.77 3.378 3.378 0 0 1-.555-1.284 4.203 4.203 0 0 1-.046-1.434c.066-.48.21-.945.43-1.36.214-.413.507-.78.87-1.058a3.654 3.654 0 0 1 1.059-.555c.383-.132.789-.207 1.2-.222.41-.02.82.023 1.214.12.39.102.766.259 1.102.473m64.375-.195c.175.086.37.23.574.406.199.176.402.38.586.598.187.215.36.438.492.652.133.211.226.407.266.567.019.07.035.168.042.285.012.113.02.25.024.398.004.145 0 .301-.004.457a8.875 8.875 0 0 1-.023.461 3.545 3.545 0 0 1-.774 1.953 3.866 3.866 0 0 1-3.625 1.368 3.584 3.584 0 0 1-1.883-.95 4.289 4.289 0 0 1-.55-.609 2.827 2.827 0 0 1-.352-.637 3.475 3.475 0 0 1-.188-.746 6.793 6.793 0 0 1-.054-.941c0-.352.027-.672.082-.961.05-.293.137-.555.25-.797.117-.242.265-.465.449-.676.188-.21.406-.41.668-.601.25-.188.547-.328.879-.434a4.168 4.168 0 0 1 1.05-.187c.364-.024.735 0 1.09.066.36.062.7.176 1 .328m-31.93.473c.177.125.368.328.556.57.183.242.367.531.527.824.16.293.297.598.394.88a2.5 2.5 0 0 1 .16.737c0 .258-.074.567-.206.895a5.551 5.551 0 0 1-.54.996 6 6 0 0 1-.742.906c-.265.27-.547.489-.816.63a2.93 2.93 0 0 1-1.024.3 3.709 3.709 0 0 1-1.117-.047 3.928 3.928 0 0 1-1.066-.37 3.194 3.194 0 0 1-.871-.669 4.034 4.034 0 0 1-.68-1.012 4.028 4.028 0 0 1-.355-1.12 3.802 3.802 0 0 1-.012-1.153 3.5 3.5 0 0 1 .344-1.094c.187-.363.375-.664.586-.91.21-.242.441-.43.71-.57.266-.14.57-.23.922-.282a6.496 6.496 0 0 1 1.239-.046c.254.011.472.027.664.046.195.024.363.055.515.098a2.284 2.284 0 0 1 .813.39"/></g>%0A <g transform="translate(-68.454 -154.133) scale(4.051)"><path d="M82.117 39.523c-.152.172-.191 2.747-.172 9.192l.059 8.945h4.773l.059-9.039c.039-7.113 0-9.078-.191-9.21-.438-.266-4.278-.192-4.528.112m7.621.117c-.21.4-.265 16.895-.054 17.696.093.398.187.418 2.441.418 1.969 0 2.371-.059 2.465-.305.21-.535.133-17.43-.074-17.828-.192-.324-.422-.363-2.391-.363-1.965 0-2.195.039-2.387.383m7.774-.27c-.075.078-.133.992-.133 2.024v1.867h4.793l-.055-1.965-.058-1.945-2.215-.055c-1.203-.02-2.254.02-2.332.074m50.312.152c-.156.172-.21.88-.172 1.965l.055 1.68h4.777l.055-1.793c.04-1.316-.02-1.852-.191-1.965-.133-.074-1.164-.152-2.27-.152-1.512 0-2.101.078-2.254.265m76.512-.152c-.074.078-.133.992-.133 2.024v1.867h4.793l-.055-1.965-.058-1.945-2.215-.055c-1.203-.02-2.254.02-2.332.074m-86.539 1.527c-.059.172-.117 1.145-.117 2.192v1.887h-.84c-.973 0-1.07.136-1.07 1.601 0 1.184.21 1.45 1.183 1.45h.727v2.042c0 1.145.058 2.899.132 3.907l.118 1.87h1.832l.058.895.055.918h5.54l.058-1.316c.039-.934-.02-1.375-.192-1.469-.133-.098-.781-.172-1.449-.172h-1.187l.039-3.3.058-3.278 1.336-.098 1.336-.093v-2.86l-1.336-.097-1.336-.094-.058-2.156-.055-2.133h-2.352c-1.984 0-2.386.054-2.48.304m-88.414 4.215c-.078.055-.137 4.04-.137 8.848 0 8.14.02 8.75.344 8.883.172.097 1.3.133 2.484.097l2.14-.058v-5.13h3.532c2.695 0 3.535-.058 3.555-.245.02-.117.035-.535.054-.899.02-.668.02-.668 1.032-.722l.996-.059v-8.906l-.594-.113a7.4 7.4 0 0 0-1.05-.114c-.419 0-.458-.078-.458-.86v-.858H55.38l-.059.707c-.054.726-.054.726-.953.78l-.918.06v-1.547h-1.97c-1.085 0-2.042.058-2.097.136m9.031 6.235v3.336l-2.023.058c-1.11.035-2.063.02-2.102-.02-.039-.038-.074-1.562-.074-3.394v-3.3h4.2Zm9.32-5.473c-.054.875-.074.914-.629.875a5.6 5.6 0 0 0-.992.059l-.441.078v8.941l1.012.059.996.054.054.918.059.895 4.91-.04 4.906-.054.059-.918.059-.894h2.082v-4.461c0-4.328-.02-4.485-.383-4.598-.211-.074-.668-.094-1.012-.055-.594.055-.613.036-.707-.8l-.098-.86-4.906-.058-4.91-.04Zm6.914 5.492v3.336h-4.007v-6.676h4.007Zm22.864-6.254c-.075.055-.133 2.934-.133 6.387v6.273l2.351-.058 2.329-.055.058-6.351.035-6.332h-2.25c-1.242 0-2.332.058-2.39.136m6.972 6.196.059 6.351h4.773l.059-4.824.04-4.809h4.007l.039 4.809.059 4.824h4.773l.059-5.379.039-5.379-.996-.054-1.012-.059-.055-.914-.058-.898-3.094.039-3.094.058-.059.703-.058.727h-1.89v-1.527h-3.63Zm17-4.864.055 1.489 3.785.058 3.781.035-.058.918-.059.895-3.148.097-3.153.094-.019.762v.766l-.973.054c-.824.04-.996.133-1.09.477-.152.555-.152 1.773 0 2.879l.133.879h1.832l.059.894.058.918 2.922.055 2.903.058v-1.562l.918.055c.898.058.898.058.953.761l.058.727h3.61V46.922l-.574-.133c-.305-.074-.649-.074-.743-.02-.441.29-.785-.132-.785-.953v-.84h-10.523Zm7.602 7.399v.86h-3.629v-1.716h3.629Zm18.621-8.637c-.055.133-.074 2.992-.055 6.352l.055 6.101h4.777V45.074l-2.351-.058c-1.778-.04-2.367.02-2.426.191m9.168 0a5.3 5.3 0 0 0-.133.914c-.058.668-.058.668-1.07.727l-.992.054.039 4.426.054 4.422.997.059.992.058.058.895.055.898 4.93.055 4.906.039v-1.906h2.101v-8.961h-.742c-1.207 0-1.36-.137-1.36-1.07v-.84h-4.866c-3.746 0-4.91.058-4.969.23m6.973 6.16v3.336h-4.012v-6.676h4.012Zm7.179-6.234c-.054.113-.035 8.406.059 11.894l.02.727h2.367c1.988 0 2.386-.059 2.484-.305.059-.172.113-2.347.113-4.863v-4.574l1.97.054 1.948.059.094 4.766.098 4.77h4.773V46.98l-.957-.094-.953-.098-.094-.855-.097-.86-3.094-.058-3.113-.04v1.528h-1.91v-1.527h-1.798c-.992 0-1.851.078-1.91.156m18.321.075a5 5 0 0 0-.137.914c-.055.668-.055.668-1.05.727l-1.013.054v1.891c0 1.027.059 2 .118 2.172.074.23.379.305 1.03.305h.934l.06.8.058.82 2.73.06 2.711.058v1.695h-3.57c-1.989 0-3.707.074-3.84.172-.172.094-.23.535-.191 1.469l.058 1.316h10.313l.058-.898.055-.895.996-.058.992-.059.059-1.617c.074-2.367.035-2.48-1.11-2.48h-.937l-.055-.821-.058-.8-2.77-.094-2.77-.098v-1.715l3.516-.059c1.95-.02 3.61-.113 3.723-.207.133-.117.191-.726.152-1.527l-.074-1.355h-4.95c-3.8 0-4.984.058-5.038.23m19.902 0c-.04.133-.04.8.035 1.488l.117 1.239 3.684.058 3.668.035v1.91h-6.3v1.715h-2.102v4.176l1.011.059.992.054.06.918.054.914 2.906-.058 2.902-.055.059-.726c.055-.707.074-.707.894-.707.825 0 .844 0 .899.707l.059.726 1.87.055 1.852.058V52.32c0-4.215-.055-5.433-.226-5.453-.137-.02-.594-.039-1.012-.058-.766-.02-.766-.02-.863-.875l-.094-.86-5.176-.058c-4.05-.04-5.215 0-5.289.191m7.504 8.637v.879l-1.758-.059-1.773-.055-.059-.535c-.113-1.011 0-1.086 1.871-1.086h1.719Zm7.449-2.477v6.387h4.719l.113-2.156a67 67 0 0 0 0-8.293l-.113-2.328h-4.719Zm-22.137 2.27c-.152.172-.21.894-.171 2.133l.058 1.89 2.063.055 2.062.058-.058-2.156-.055-2.152-1.836-.059c-1.414-.039-1.89.02-2.063.23m0 0"/></g>%0A</svg>%0A';var Lp='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="15 17.6409 119.9998 114.7498" fill="currentColor"><path fill-rule="evenodd" d="M73.832 19.293a1893.685 1893.685 0 0 0-7.742 9.047c-1.93 2.273-3.274 3.898-4.266 5.156-.988 1.258-1.62 2.149-2.117 2.957-.5.805-.86 1.531-1.309 2.453-.14.285-.277.563-.402.813-.121.254-.238.48-.332.676a20.107 20.107 0 0 1-.34.652c-.008.008-.062 0-.156-.02s-.227-.047-.383-.09c-.16-.039-.351-.09-.558-.148-.207-.059-.43-.121-.668-.191-1.079-.32-1.895-.559-2.684-.743-.79-.18-1.55-.3-2.516-.382-.96-.082-2.129-.121-3.734-.145-1.602-.02-3.64-.023-6.348-.023H35.31l-2.485-.004H30.34v20.574l-.527.059-.524.058-1.055.117c-.59.067-1.203.157-1.84.274-.636.113-1.292.25-1.968.414-.676.16-1.371.348-2.086.555-.715.21-1.445.441-2.195.695-.47.16-1.024.36-1.594.574a64.38 64.38 0 0 0-1.684.649c-.523.207-.992.398-1.328.546-.336.149-.539.246-.539.274 0 .039.07.234.191.535.118.297.29.7.485 1.156.195.453.418.961.644 1.473.227.508.461 1.02.676 1.484a52.041 52.041 0 0 0 9.54 13.926 47.507 47.507 0 0 0 6.14 5.41c2.164 1.59 4.426 2.953 6.75 4.047a51.197 51.197 0 0 0 3.414 1.461c1.129.43 2.242.805 3.36 1.125 1.112.324 2.226.59 3.343.809a39.04 39.04 0 0 0 3.375.504c.84.085 1.781.136 2.777.156a51.632 51.632 0 0 0 6.203-.266 34.786 34.786 0 0 0 2.836-.394 59.177 59.177 0 0 1 2.633-.442c.149-.02.235-.023.246-.015.043.043-.02.195-.152.414a9.01 9.01 0 0 1-.582.812c-.242.313-.527.645-.813.965-.289.316-.582.617-.851.86-.57.519-1.168.968-1.809 1.355-.64.383-1.324.703-2.07.969-.746.261-1.555.464-2.441.617-.891.156-1.856.258-2.926.316-1.36.07-2.582.207-3.703.422-1.118.211-2.13.496-3.07.871-.938.375-1.801.84-2.618 1.403a15.82 15.82 0 0 0-2.351 2 14.205 14.205 0 0 0-1.489 1.765 13.256 13.256 0 0 0-1.148 1.945 15.518 15.518 0 0 0-.856 2.207 20.834 20.834 0 0 0-.59 2.543c-.058.348-.105.61-.156.817-.05.207-.105.36-.183.484a1.184 1.184 0 0 1-.325.332c-.144.106-.332.211-.578.356a9.157 9.157 0 0 0-2.543 2.183 8.797 8.797 0 0 0-1.52 2.813 8.33 8.33 0 0 0-.382 3.113 7.995 7.995 0 0 0 .852 3.098 7.95 7.95 0 0 0 1.574 2.117 9.294 9.294 0 0 0 2.168 1.566c.789.418 1.629.715 2.469.868.84.152 1.68.167 2.472.007a7.941 7.941 0 0 0 1.188-.336c.406-.144.82-.32 1.222-.515.399-.2.79-.418 1.149-.653.36-.234.691-.476.976-.73a6.93 6.93 0 0 0 1.473-1.86c.39-.71.68-1.492.855-2.308.176-.82.243-1.676.188-2.527a8.74 8.74 0 0 0-.531-2.516 5.919 5.919 0 0 0-.68-1.281c-.289-.43-.64-.856-1.031-1.258a10.34 10.34 0 0 0-1.262-1.11 8.299 8.299 0 0 0-1.379-.847c-.414-.2-.722-.352-.95-.492-.226-.137-.366-.27-.44-.43-.075-.16-.083-.352-.043-.613.039-.266.125-.598.242-1.043.226-.871.566-1.695 1.004-2.465a10.426 10.426 0 0 1 3.672-3.754c.77-.46 1.605-.836 2.492-1.102.152-.046.386-.093.675-.144a30.829 30.829 0 0 1 2.246-.273c.43-.043.876-.075 1.317-.102a41.754 41.754 0 0 0 2.773-.25 19.813 19.813 0 0 0 2.243-.406 13.283 13.283 0 0 0 1.918-.621c.609-.246 1.199-.536 1.804-.88a20.824 20.824 0 0 0 1.774-1.116c.539-.383 1.031-.786 1.511-1.227.48-.445.942-.934 1.415-1.488.468-.559.953-1.18 1.468-1.899l.309-.426.308-.43.313-.429.309-.426v19.633l-.399.262-.402.265-.797.532a11.66 11.66 0 0 0-1.567 1.21c-.44.41-.808.837-1.113 1.305-.305.465-.55.97-.746 1.535-.2.567-.351 1.192-.473 1.903a7.401 7.401 0 0 0 .024 2.574 8.502 8.502 0 0 0 2.441 4.543 7.787 7.787 0 0 0 2.157 1.496c.804.367 1.632.61 2.46.715.829.105 1.66.082 2.47-.07a7.963 7.963 0 0 0 2.343-.828 8.831 8.831 0 0 0 2.094-1.567c.406-.402.738-.789 1.011-1.18.27-.394.48-.796.641-1.234.156-.441.266-.918.336-1.473.07-.55.102-1.171.105-1.894 0-.524 0-.93-.011-1.266a6.504 6.504 0 0 0-.074-.836 3.967 3.967 0 0 0-.192-.683c-.09-.23-.207-.485-.355-.805a7.845 7.845 0 0 0-1.594-2.262 8.117 8.117 0 0 0-1.07-.879 9.342 9.342 0 0 0-1.254-.718l-.348-.164-.348-.16-.343-.165-.348-.164v-4.957l-.004-2.476v-2.48c0-1.36.004-2.657.012-3.833.008-1.176.02-2.23.035-3.11.016-.882.035-1.589.055-2.07.02-.48.043-.734.066-.707.02.028.074.102.156.208l.301.421c.121.168.258.364.406.575.145.207.305.433.461.664.38.543.735 1.027 1.09 1.468.352.438.703.832 1.063 1.2.363.367.742.707 1.148 1.039.406.328.844.652 1.332.98.777.528 1.5.965 2.223 1.328.718.364 1.437.657 2.203.89.765.235 1.582.411 2.496.544.914.137 1.93.23 3.094.3.433.024.867.055 1.289.087a40.742 40.742 0 0 1 2.148.215c.27.035.477.07.602.101.965.234 1.898.64 2.761 1.168a11.119 11.119 0 0 1 2.34 1.93 10.355 10.355 0 0 1 1.688 2.437c.43.867.707 1.781.805 2.695l.03.313.032.309.035.316.031.309-.27.14-.538.274-.274.136c-.828.426-1.558.922-2.183 1.493a7.954 7.954 0 0 0-1.54 1.91 7.731 7.731 0 0 0-.87 2.273 9.264 9.264 0 0 0-.172 2.594c.066.96.285 1.871.64 2.703a7.903 7.903 0 0 0 1.446 2.258 8.316 8.316 0 0 0 2.14 1.683c.817.45 1.727.782 2.715.98 1.309.255 2.617.126 3.836-.3a8.813 8.813 0 0 0 3.266-2.05 8.893 8.893 0 0 0 2.117-3.239c.453-1.21.613-2.527.387-3.848a9.06 9.06 0 0 0-1.504-3.644 9.344 9.344 0 0 0-1.301-1.477 8.97 8.97 0 0 0-1.61-1.16c-.18-.097-.347-.2-.507-.293-.16-.097-.305-.183-.434-.265-.125-.082-.23-.153-.312-.211a.573.573 0 0 1-.137-.121.813.813 0 0 1-.063-.184c-.027-.094-.058-.223-.097-.375a11.147 11.147 0 0 1-.11-.512c-.039-.187-.082-.39-.12-.594-.098-.5-.227-1.023-.383-1.554a19.7 19.7 0 0 0-.551-1.594c-.207-.527-.43-1.039-.668-1.512a12.868 12.868 0 0 0-.735-1.3 12.93 12.93 0 0 0-1.582-1.954 15.064 15.064 0 0 0-1.98-1.691 15.833 15.833 0 0 0-2.27-1.355 14.35 14.35 0 0 0-2.449-.934 9.33 9.33 0 0 0-.836-.188 25.72 25.72 0 0 0-1.094-.18 40.224 40.224 0 0 0-2.605-.269 51.614 51.614 0 0 1-1.281-.11 47.27 47.27 0 0 1-1.242-.128 37.65 37.65 0 0 1-1.067-.14 12.643 12.643 0 0 1-.746-.133 11.48 11.48 0 0 1-1.508-.458c-.5-.187-.996-.414-1.472-.668a12.371 12.371 0 0 1-2.606-1.847 16.117 16.117 0 0 1-1.676-1.836 5.604 5.604 0 0 1-.465-.707c-.097-.192-.125-.324-.074-.375.016-.016.117-.012.285.004.168.015.407.047.696.09.293.039.633.093 1.008.156.37.062.78.137 1.207.215a60.65 60.65 0 0 0 1.789.304c.527.079 1.011.133 1.535.172.523.04 1.09.063 1.777.078.692.016 1.504.02 2.527.024 1.22 0 2.204-.008 3.06-.031a27.474 27.474 0 0 0 2.257-.153 20.662 20.662 0 0 0 2.047-.336 48.885 48.885 0 0 0 2.426-.59 44.634 44.634 0 0 0 5.347-1.761 42.256 42.256 0 0 0 4.98-2.387 43.059 43.059 0 0 0 4.633-3.031 46.976 46.976 0 0 0 4.329-3.692 55.822 55.822 0 0 0 3.312-3.468 49.244 49.244 0 0 0 2.879-3.63 50.142 50.142 0 0 0 2.516-3.886 57.29 57.29 0 0 0 2.23-4.258c.375-.793.691-1.48.95-2.066.257-.59.46-1.078.613-1.473.144-.398.242-.7.285-.918.047-.219.039-.351-.016-.402-.078-.07-.41-.23-.902-.442a57.272 57.272 0 0 0-1.828-.73c-.692-.262-1.434-.535-2.121-.777a36.517 36.517 0 0 0-1.778-.586 54.289 54.289 0 0 0-3.531-.879 48.341 48.341 0 0 0-1.715-.332 23.874 23.874 0 0 0-1.465-.215l-.633-.07-.312-.04-.316-.035V39.301l-2.461.004h-2.461l-2.457.004h-2.461c-2.645.004-4.664.007-6.266.03-1.605.024-2.797.067-3.789.141-.992.079-1.789.192-2.598.356-.812.164-1.64.383-2.703.668a23.531 23.531 0 0 1-1.203.3c-.16.036-.289.06-.383.075-.093.016-.148.02-.156.008a29.962 29.962 0 0 1-.355-.672c-.102-.2-.22-.434-.348-.692a79.19 79.19 0 0 1-.418-.828c-.45-.902-.785-1.578-1.168-2.234-.379-.66-.805-1.297-1.422-2.117-.617-.817-1.433-1.82-2.594-3.203-1.16-1.387-2.671-3.153-4.68-5.508-1.398-1.64-2.53-2.961-3.44-4.02a272.265 272.265 0 0 0-2.122-2.441c-.523-.59-.875-.973-1.11-1.211-.237-.234-.355-.324-.402-.32-.015 0-.07.047-.156.132-.086.086-.199.207-.34.356-.136.148-.296.328-.472.523-.172.2-.364.414-.555.641m7.059 11.504a151.52 151.52 0 0 1 3.582 4.336 58.05 58.05 0 0 1 2.488 3.336c.66.965 1.16 1.793 1.516 2.515.355.72.57 1.332.66 1.868.023.14.039.25.031.347a.526.526 0 0 1-.09.262 1.205 1.205 0 0 1-.266.262c-.12.093-.285.199-.492.332-.332.21-.773.554-1.265.976-.493.426-1.043.934-1.594 1.473a43.455 43.455 0 0 0-1.625 1.672 25.487 25.487 0 0 0-1.348 1.574c-.398.512-.812 1.09-1.222 1.703a39.76 39.76 0 0 0-1.204 1.91 39.73 39.73 0 0 0-1.085 1.946c-.329.636-.622 1.25-.86 1.812-.34.809-.672 1.727-.976 2.688-.305.96-.582 1.964-.817 2.945-.234.984-.43 1.945-.562 2.816-.137.871-.215 1.653-.215 2.282-.004.609-.024 1.054-.055 1.332-.035.277-.086.386-.152.328-.067-.055-.149-.278-.246-.664a26.572 26.572 0 0 1-.336-1.66 76.29 76.29 0 0 0-.54-2.758 81.86 81.86 0 0 0-.624-2.66c-.211-.844-.43-1.637-.645-2.34a22.878 22.878 0 0 0-.617-1.801 24.472 24.472 0 0 0-.742-1.66 48.94 48.94 0 0 0-2.047-3.746c-.36-.59-.707-1.13-1.027-1.582a21.393 21.393 0 0 0-1.153-1.446 44.776 44.776 0 0 0-1.558-1.71 47.283 47.283 0 0 0-1.657-1.657c-.539-.512-1.043-.96-1.468-1.3-.172-.141-.34-.278-.489-.41a8.144 8.144 0 0 1-.402-.376 3.846 3.846 0 0 1-.27-.293c-.066-.082-.101-.144-.101-.176 0-.105.098-.378.262-.753.16-.372.386-.848.644-1.356.258-.508.547-1.05.828-1.562a24.735 24.735 0 0 1 1.582-2.508c.262-.371.543-.746.871-1.16.329-.418.7-.871 1.149-1.407.45-.535.973-1.144 1.601-1.87.235-.27.536-.614.875-1.005.336-.394.715-.832 1.114-1.293.394-.46.808-.937 1.215-1.41.402-.472.8-.933 1.168-1.363l.668-.777.668-.774.667-.777.665-.778.117.118.113.12.117.118.113.117a110.75 110.75 0 0 1 1.668 1.914l1.555 1.809c.57.664 1.184 1.383 1.813 2.12M51.227 44.149c.425.09.867.2 1.304.317.434.117.864.242 1.254.37.395.13.754.259 1.055.38.297.12.535.234.687.332.051.035.09.094.11.191.02.098.023.239.011.442-.015.199-.046.457-.097.793-.055.336-.125.75-.215 1.257-.094.524-.172.989-.23 1.446-.06.457-.106.91-.137 1.41a32.68 32.68 0 0 0-.067 1.7c-.011.648-.015 1.401-.015 2.312 0 .98.004 1.761.015 2.414.012.648.035 1.172.07 1.644.04.473.09.89.165 1.336.07.446.164.918.285 1.488.074.348.156.72.242 1.094.082.375.168.754.254 1.11.086.359.168.695.242.992.074.3.14.554.195.75.055.195.102.383.149.554.043.172.082.329.113.461.031.13.059.239.07.317.016.078.02.125.012.133a.942.942 0 0 1-.183-.079 35.955 35.955 0 0 1-1.148-.629c-.255-.144-.532-.304-.821-.472a95.651 95.651 0 0 0-2.031-1.152 44.616 44.616 0 0 0-1.723-.899 34 34 0 0 0-1.633-.75 44.224 44.224 0 0 0-1.762-.715 50.86 50.86 0 0 0-2.855-1.004 45.68 45.68 0 0 0-2.8-.793 39.106 39.106 0 0 0-2.653-.562 26.924 26.924 0 0 0-2.406-.309l-.426-.03-.426-.036-.426-.031-.426-.035V43.758h7.215c1.578.004 2.832.008 3.852.015 1.02.012 1.8.028 2.437.055a20.37 20.37 0 0 1 1.547.117c.43.051.797.117 1.196.203m64.886 7.493c0 1.23-.008 2.34-.015 3.312-.008.977-.02 1.817-.04 2.504-.015.691-.038 1.23-.062 1.602-.023.367-.05.57-.082.59a1.259 1.259 0 0 1-.281.07c-.153.031-.367.062-.617.101-.254.035-.547.078-.868.117-.32.043-.664.083-1.02.122-.765.086-1.538.199-2.323.343-.79.141-1.59.313-2.407.516-.816.203-1.652.434-2.503.7-.856.26-1.73.558-2.625.882-.735.266-1.305.477-1.801.672-.496.195-.918.375-1.348.578-.43.203-.867.43-1.398.723-.528.289-1.149.644-1.946 1.101a34.54 34.54 0 0 1-1.644.895 9.035 9.035 0 0 1-.528.242c-.128.055-.21.074-.226.059-.016-.016-.02-.082-.012-.184a5.49 5.49 0 0 1 .055-.422c.031-.172.066-.371.113-.59.043-.219.098-.457.156-.699.258-1.082.454-1.906.602-2.613.152-.703.258-1.282.332-1.867.078-.583.125-1.172.156-1.895.035-.723.059-1.578.086-2.695.024-.98.04-1.77.043-2.434.004-.66-.004-1.2-.027-1.684a17.76 17.76 0 0 0-.113-1.355 29.95 29.95 0 0 0-.223-1.445c-.152-.887-.27-1.543-.336-2.035-.066-.493-.086-.825-.04-1.059a.664.664 0 0 1 .333-.492c.18-.117.437-.207.781-.336.692-.266 1.29-.469 1.926-.63.637-.16 1.309-.276 2.152-.358.84-.082 1.852-.133 3.164-.16 1.309-.032 2.922-.044 4.965-.047l3.813-.008h1.902l1.906-.004v7.883m-25.05-2.368c.195 1.02.343 1.977.437 2.91.098.934.14 1.837.133 2.75a25.621 25.621 0 0 1-.18 2.797c-.11.961-.273 1.961-.488 3.036a39.395 39.395 0 0 1-.746 3.12 31.161 31.161 0 0 1-.946 2.829c-.355.906-.75 1.781-1.187 2.64a30.9 30.9 0 0 1-1.473 2.555c-.215.34-.597.86-1.074 1.469a76.18 76.18 0 0 1-1.625 2.012 79.82 79.82 0 0 1-1.73 2.011 30.987 30.987 0 0 1-1.387 1.489l-.258.25-.262.254-.257.253-.262.254.02-1.62.023-1.622.02-1.617.019-1.621c.02-1.414.035-2.543.058-3.465.02-.922.047-1.637.082-2.227.036-.59.082-1.054.141-1.472.059-.422.133-.797.227-1.211a38.117 38.117 0 0 1 1.086-3.91c.418-1.235.89-2.403 1.433-3.524a28.68 28.68 0 0 1 1.82-3.222 31.184 31.184 0 0 1 2.258-3.012 18.08 18.08 0 0 1 1.012-1.086c.367-.363.746-.715 1.106-1.023.355-.31.69-.575.964-.762.27-.188.48-.297.59-.297.035 0 .07.031.11.086.039.05.078.129.12.226a4.214 4.214 0 0 1 .216.75m-28.895.91c.914.915 1.738 1.86 2.488 2.86a25.52 25.52 0 0 1 2.028 3.187 30.027 30.027 0 0 1 1.636 3.645 42.64 42.64 0 0 1 1.32 4.23c.122.485.22.872.294 1.274.074.406.125.832.164 1.387.043.554.07 1.242.09 2.171.023.934.039 2.11.058 3.645.02 1.441.035 2.566.04 3.438.003.87 0 1.488-.016 1.921-.016.434-.043.68-.086.813-.04.129-.094.14-.16.101-.106-.058-.376-.324-.743-.722-.367-.399-.84-.926-1.34-1.512a82.643 82.643 0 0 1-1.539-1.832 48.185 48.185 0 0 1-1.34-1.695c-.34-.45-.722-1.031-1.117-1.688a40.534 40.534 0 0 1-1.183-2.125 43.623 43.623 0 0 1-1.075-2.207 21.82 21.82 0 0 1-.773-1.933c-.07-.215-.152-.477-.238-.762-.082-.29-.172-.602-.258-.922a49.961 49.961 0 0 1-.461-1.844c-.187-.86-.316-2.113-.395-3.508a62.606 62.606 0 0 1-.066-4.378c.027-1.434.106-2.762.227-3.735.12-.969.285-1.578.492-1.578.023 0 .097.05.21.14.11.09.259.22.438.38a44.358 44.358 0 0 1 1.305 1.25m53.23 15.39a24.897 24.897 0 0 1-.965 4.492 26.72 26.72 0 0 1-.824 2.25 33.11 33.11 0 0 1-1.058 2.305c-.344.676-.66 1.262-.98 1.805-.321.543-.641 1.035-.997 1.523-.351.485-.734.961-1.18 1.473-.445.508-.953 1.05-1.542 1.66a35.204 35.204 0 0 1-1.579 1.54c-.496.448-.976.847-1.468 1.21-.493.367-1 .703-1.551 1.031-.55.328-1.145.649-1.817.989-.84.421-1.624.761-2.445 1.03a15.58 15.58 0 0 1-2.683.626c-1.004.152-2.145.25-3.532.308-1.382.063-3.011.082-4.98.082H82.18l.03-.113.036-.113.031-.113.035-.114c.055-.199.243-.582.516-1.074.274-.496.633-1.101 1.027-1.746.399-.645.836-1.324 1.266-1.969.43-.644.852-1.25 1.219-1.746a44.604 44.604 0 0 1 5.883-6.445 41.569 41.569 0 0 1 6.812-4.977 38.048 38.048 0 0 1 7.477-3.36 34.711 34.711 0 0 1 7.886-1.585c.11-.008.22-.02.325-.027.105-.008.203-.02.293-.028.09-.008.164-.02.226-.023.063-.008.106-.016.13-.02.023-.004.038.024.05.078a.934.934 0 0 1 .023.239c.004.101 0 .226-.007.363-.008.137-.02.29-.04.45M30.934 66.89c.242 1.234.562 2.488.945 3.738a41.182 41.182 0 0 0 1.32 3.68 37.438 37.438 0 0 0 1.61 3.425 27.185 27.185 0 0 0 1.816 2.961c.45.633.992 1.313 1.594 2.004a38.232 38.232 0 0 0 1.949 2.074c.687.68 1.395 1.34 2.098 1.942.699.597 1.39 1.144 2.03 1.597.298.208.575.407.825.59.25.184.469.352.649.496.18.141.32.258.41.344.09.082.129.133.105.14-.066.028-.328-.038-.71-.167-.384-.13-.891-.324-1.458-.555a48.612 48.612 0 0 1-1.812-.777 38.066 38.066 0 0 1-7.352-4.297 42.01 42.01 0 0 1-5.043-4.422 44.733 44.733 0 0 1-4.37-5.254 45.026 45.026 0 0 1-3.575-5.941c-.125-.258-.25-.504-.356-.735-.109-.226-.207-.433-.285-.609-.078-.176-.14-.32-.18-.422-.042-.101-.058-.164-.05-.172.008-.008.062-.031.148-.066.09-.035.211-.082.36-.137.144-.05.32-.113.507-.18l.614-.21c.433-.145.988-.297 1.593-.446a39.578 39.578 0 0 1 3.805-.73c.574-.078 1.07-.125 1.434-.133l.23-.004.235-.004.23-.004.234-.004.114.57.109.57.113.567.114.57m8.199-1.87c1.383.238 2.8.59 4.226 1.039 1.426.449 2.856 1 4.27 1.636a42.064 42.064 0 0 1 4.16 2.164c1.348.801 2.648 1.68 3.879 2.621.41.317.95.778 1.547 1.32a69.069 69.069 0 0 1 1.914 1.805c.652.641 1.3 1.293 1.871 1.899a31.34 31.34 0 0 1 1.422 1.586 46.416 46.416 0 0 1 1.726 2.27c.57.796 1.125 1.613 1.622 2.39.5.781.94 1.52 1.285 2.152.343.637.593 1.172.71 1.543l.032.114.035.113.04.113.03.113h-5.511c-1.918 0-3.48-.02-4.801-.078-1.324-.058-2.41-.156-3.371-.312a15.68 15.68 0 0 1-2.63-.653c-.831-.289-1.651-.652-2.581-1.109a20.527 20.527 0 0 1-3.137-1.926 24.776 24.776 0 0 1-2.902-2.523 26.07 26.07 0 0 1-2.528-2.988 24.005 24.005 0 0 1-2.011-3.305 35.404 35.404 0 0 1-1.192-2.649 38.321 38.321 0 0 1-.968-2.66 25.394 25.394 0 0 1-.645-2.39c-.156-.72-.238-1.348-.238-1.832 0-.211 0-.371.011-.489.012-.12.032-.203.079-.257.043-.055.105-.082.203-.098.093-.016.222-.016.39-.016.094 0 .25.012.453.032.204.023.454.05.73.09.278.035.583.078.903.128.32.047.653.102.977.157m84.953.085c.336.06.809.168 1.336.297.523.13 1.101.282 1.64.434.543.152 1.051.305 1.43.43.387.125.649.222.7.273.027.023-.028.184-.149.45-.121.265-.3.632-.527 1.062-.223.433-.493.93-.79 1.457a56.9 56.9 0 0 1-.937 1.633 44.31 44.31 0 0 1-3.473 5.027 46.345 46.345 0 0 1-4.12 4.531 43.203 43.203 0 0 1-4.571 3.848 34.726 34.726 0 0 1-4.82 2.969 42.898 42.898 0 0 1-3.02 1.367c-.469.191-.89.351-1.207.457-.32.105-.535.156-.598.137-.027-.012.004-.055.079-.133.074-.074.195-.18.351-.309.153-.129.348-.281.563-.445.218-.164.465-.344.722-.531a31.987 31.987 0 0 0 3.067-2.473 30.025 30.025 0 0 0 4.992-5.887 32.018 32.018 0 0 0 1.953-3.441c.398-.809.75-1.57 1.059-2.309a30.121 30.121 0 0 0 1.48-4.39c.188-.758.363-1.547.52-2.391l.109-.59.113-.586.11-.59.109-.586h1.133c.156 0 .347.008.566.024.215.012.457.035.703.062a20.21 20.21 0 0 1 1.477.203m-79.191 55.711c.363.23.671.555.917.934.247.379.426.816.536 1.273.109.457.148.938.105 1.407a3.61 3.61 0 0 1-.371 1.336c-.156.304-.332.57-.539.808a3.303 3.303 0 0 1-1.512.996 4.104 4.104 0 0 1-.965.184 4.468 4.468 0 0 1-1.03-.043 3.427 3.427 0 0 1-1.719-.805 4.434 4.434 0 0 1-.696-.77 3.378 3.378 0 0 1-.555-1.284 4.203 4.203 0 0 1-.046-1.434c.066-.48.21-.945.43-1.36.214-.413.507-.78.87-1.058a3.654 3.654 0 0 1 1.059-.555c.383-.132.789-.207 1.2-.222.41-.02.82.023 1.214.12.39.102.766.259 1.102.473m64.375-.195c.175.086.37.23.574.406.199.176.402.38.586.598.187.215.36.438.492.652.133.211.226.407.266.567.019.07.035.168.042.285.012.113.02.25.024.398.004.145 0 .301-.004.457a8.875 8.875 0 0 1-.023.461 3.545 3.545 0 0 1-.774 1.953 3.866 3.866 0 0 1-3.625 1.368 3.584 3.584 0 0 1-1.883-.95 4.289 4.289 0 0 1-.55-.609 2.827 2.827 0 0 1-.352-.637 3.475 3.475 0 0 1-.188-.746 6.793 6.793 0 0 1-.054-.941c0-.352.027-.672.082-.961.05-.293.137-.555.25-.797.117-.242.265-.465.449-.676.188-.21.406-.41.668-.601.25-.188.547-.328.879-.434a4.168 4.168 0 0 1 1.05-.187c.364-.024.735 0 1.09.066.36.062.7.176 1 .328m-31.93.473c.177.125.368.328.556.57.183.242.367.531.527.824.16.293.297.598.394.88a2.5 2.5 0 0 1 .16.737c0 .258-.074.567-.206.895a5.551 5.551 0 0 1-.54.996 6 6 0 0 1-.742.906c-.265.27-.547.489-.816.63a2.93 2.93 0 0 1-1.024.3 3.709 3.709 0 0 1-1.117-.047 3.928 3.928 0 0 1-1.066-.37 3.194 3.194 0 0 1-.871-.669 4.034 4.034 0 0 1-.68-1.012 4.028 4.028 0 0 1-.355-1.12 3.802 3.802 0 0 1-.012-1.153 3.5 3.5 0 0 1 .344-1.094c.187-.363.375-.664.586-.91.21-.242.441-.43.71-.57.266-.14.57-.23.922-.282a6.496 6.496 0 0 1 1.239-.046c.254.011.472.027.664.046.195.024.363.055.515.098a2.284 2.284 0 0 1 .813.39"/></svg>%0A';var Dp=e=>({WebkitMask:`url('${e}') center / contain no-repeat`,mask:`url('${e}') center / contain no-repeat`}),Mg={mark:Dp(Lp),lockup:Dp(Mp)};function Io({variant:e="mark",className:t}){return s("span",{"aria-hidden":"true",className:x("polli:block polli:shrink-0 polli:bg-current",t),style:Mg[e]})}function fn({appName:e,href:t="/",size:o="md",className:r}){return h("a",{href:t,className:x("polli:inline-flex polli:min-w-0 polli:shrink-0 polli:items-center polli:text-theme-text-strong",o==="md"?"polli:gap-3":"polli:gap-2.5",r),children:[s(Io,{className:o==="md"?"polli:h-8 polli:w-8":"polli:h-7 polli:w-7"}),s("span",{className:x("polli:min-w-0 polli:truncate polli:font-subheading polli:font-medium polli:leading-none",o==="md"?"polli:text-2xl":"polli:text-xl"),children:e})]})}function Fp(e){return e===window?window.scrollY:e.scrollTop}function Bp({children:e,navLabel:t,appName:o,autoHide:r=!1,scrollTargetRef:n,brandHref:i,brandLabel:l="Pollinations",className:a,innerClassName:c,navClassName:p}){let[u,d]=ee(!1);return Z(()=>{if(!r||typeof window>"u"){d(!1);return}let g=n?.current??window,f=Fp(g),m=0,v=()=>{m||(m=window.requestAnimationFrame(()=>{m=0;let b=Fp(g),y=b-f;b<16?d(!1):y>8?d(!0):y<-8&&d(!1),f=b}))};return g.addEventListener("scroll",v,{passive:!0}),()=>{m&&window.cancelAnimationFrame(m),g.removeEventListener("scroll",v)}},[r,n]),s("header",{className:x("polli:sticky polli:top-0 polli:z-30 polli:bg-app-bg polli:py-4","polli:transition-transform polli:duration-200 polli:ease-out",r&&"polli:will-change-transform",u?"polli:-translate-y-full":"polli:translate-y-0",a),onFocusCapture:()=>d(!1),children:h("div",{className:x("polli:mx-auto polli:flex polli:w-full polli:max-w-5xl polli:flex-col polli:gap-4 polli:px-4 polli:sm:flex-row polli:sm:items-center polli:sm:justify-between polli:sm:px-6",c),children:[o?s(fn,{appName:o,href:i}):h("a",{href:i??"https://pollinations.ai",target:"_blank",rel:"noopener noreferrer",className:"polli:inline-flex polli:shrink-0 polli:items-center polli:text-theme-text-strong",children:[s("span",{className:"polli:sr-only",children:l}),s(Io,{variant:"lockup",className:"polli:h-7 polli:w-[220px] polli:max-w-full"})]}),e?s("nav",{"aria-label":t,className:x("polli:flex polli:min-w-0 polli:flex-wrap polli:items-center polli:gap-2",p),children:e}):null]})})}var Lg={panel:"polli:rounded-3xl polli:bg-surface-block polli:p-4 polli:sm:rounded-block polli:sm:p-7",card:"polli-surface-card polli:rounded-card polli:bg-surface-opaque polli:p-3.5 polli:sm:p-4","card-themed":"polli:rounded-card polli:bg-theme-bg-pale polli:p-3.5 polli:sm:p-4"};function Et({as:e,variant:t="card",className:o,children:r,...n}){return s(e||"div",{...n,className:x("polli:min-w-0",Lg[t],o),children:r})}function Vp({title:e,body:t,children:o,tone:r="theme",className:n}){return h(Et,{as:"section",variant:"panel",className:x("polli:flex polli:flex-wrap polli:items-center polli:justify-between polli:gap-8 polli:rounded-3xl polli:px-6 polli:py-9 polli:sm:gap-10 polli:sm:px-10 polli:sm:py-12",r==="dark"?"dark polli:bg-brand-dark":void 0,n),children:[h("div",{className:"polli:flex polli:max-w-lg polli:flex-col polli:gap-2.5",children:[s(To,{size:"section",className:"polli:text-3xl polli:sm:text-4xl",children:e}),s(pe,{className:"polli:text-theme-text-strong/75",children:t})]}),s("div",{className:"polli:flex polli:flex-wrap polli:items-center polli:gap-3",children:o})]})}var Dg={y:"polli:overflow-y-auto polli:overflow-x-hidden",x:"polli:overflow-x-auto polli:overflow-y-hidden",both:"polli:overflow-auto"};function Fg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}var $e=E(({axis:e="y",scrollbar:t="subtle",className:o,children:r,...n},i)=>{let l=G(null),a=yr(c=>{l.current=c,Fg(i,c)},[i]);return Z(()=>{if(t==="native")return;let c=l.current;if(!c)return;let p=null,u=()=>{p!==null&&(window.clearTimeout(p),p=null)},d=()=>{c.dataset.scrollbarActive="true",u()},g=()=>{c.dataset.scrollbarActive="false",u()},f=()=>{u(),p=window.setTimeout(g,2e3)},m=()=>{d(),f()};return g(),c.addEventListener("scroll",m,{passive:!0}),c.addEventListener("wheel",m,{passive:!0}),c.addEventListener("touchstart",m,{passive:!0}),c.addEventListener("pointerdown",m),c.addEventListener("keydown",m),c.addEventListener("focusin",m),c.addEventListener("focusout",f),()=>{u(),c.removeEventListener("scroll",m),c.removeEventListener("wheel",m),c.removeEventListener("touchstart",m),c.removeEventListener("pointerdown",m),c.removeEventListener("keydown",m),c.removeEventListener("focusin",m),c.removeEventListener("focusout",f)}},[t]),s("div",{...n,ref:a,className:x(t==="subtle"&&"polli-scrollbar-subtle","polli:min-w-0 polli:max-w-full",Dg[e],o),children:r})});$e.displayName="ScrollArea";var al=E(({children:e,className:t,viewportClassName:o,showScrollButton:r=!1,onScrollToBottom:n,scrollButtonLabel:i="Scroll to latest message",...l},a)=>h("div",{className:x("polli:relative polli:min-h-0",t),children:[s($e,{...l,ref:a,className:x("polli:h-full polli:min-h-0",o),children:e}),r&&n&&s("button",{type:"button","aria-label":i,title:i,onClick:n,className:"polli-control polli:absolute polli:bottom-3 polli:left-1/2 polli:flex polli:size-9 polli:-translate-x-1/2 polli:cursor-pointer polli:items-center polli:justify-center polli:rounded-full polli:border polli:border-theme-border/60 polli:bg-surface-opaque polli:text-theme-text-strong polli:transition-transform polli:hover:translate-y-0.5",children:s(ji,{className:"polli:size-4 polli:rotate-90"})})]}));al.displayName="ChatConversation";function Hp({className:e,...t}){return s("div",{className:x("polli:flex polli:min-w-0 polli:flex-col polli:gap-5",e),...t})}function _p({from:e,className:t,children:o,...r}){return s("article",{"data-role":e,className:x("polli:group/message polli:flex polli:w-fit polli:max-w-full polli:min-w-0 polli:flex-col polli:gap-3 polli:[overflow-wrap:anywhere] polli:rounded-xl polli:px-4 polli:py-3",e==="user"?"polli:ml-auto polli:bg-theme-bg-active polli:text-theme-text-strong":"polli:mr-auto polli:bg-surface-opaque polli:text-theme-text-base",t),...r,children:o})}function Wp({from:e,label:t,icon:o,className:r,...n}){let i=t??(e==="user"?"You":e==="assistant"?"Agent":"System");return h("header",{className:x("polli:flex polli:items-center polli:gap-2",r),...n,children:[e==="assistant"&&(o??s("span",{className:"polli:flex polli:size-6 polli:items-center polli:justify-center polli:rounded-full polli:bg-theme-bg-active polli:text-theme-text-strong",children:s(rl,{className:"polli:size-3.5"})})),s(pe,{as:"span",size:"xs",tone:"muted",weight:"bold",className:"polli:uppercase polli:tracking-wide",children:i})]})}function zp({className:e,...t}){return s("div",{className:x("polli:min-w-0 polli:[&_pre]:max-w-full polli:[&_pre]:overflow-x-auto polli:[&_table]:max-w-full polli:[&_table]:overflow-x-auto",e),...t})}function Gp({className:e,...t}){return s("footer",{className:x("polli:flex polli:flex-wrap polli:items-center polli:gap-1 polli:pt-2",e),...t})}var Bg=Re("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator"),Oe=Bg.build();var[No,se]=re({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1});var Up=e=>e.children(se());var cl=E((e,t)=>{let o=se(),r=I(o.getErrorTextProps(),e);return o?.invalid?s(S.span,{...r,ref:t}):null});cl.displayName="FieldErrorText";var pl=E((e,t)=>{let o=I(se()?.getHelperTextProps(),e);return s(S.span,{...o,ref:t})});pl.displayName="FieldHelperText";var ul=E((e,t)=>{let o=I(se()?.getInputProps(),e);return s(S.input,{...o,ref:t})});ul.displayName="FieldInput";var dl=e=>{let{value:t,children:o}=e,r=se();return s(No,{value:ce(()=>{if(!r)throw new Error("Field.Item must be used within Field.Root");let n=`field::${r.ids.control}::item::${t}`,i=`${n}::label`,l=()=>({...r.getInputProps(),id:n});return{...r,ids:{...r.ids,control:n,label:i},getLabelProps:()=>({...r.getLabelProps(),id:i,htmlFor:n}),getInputProps:()=>({...l(),...Oe.input.attrs}),getSelectProps:()=>({...l(),...Oe.select.attrs}),getTextareaProps:()=>({...l(),...Oe.textarea.attrs})}},[r,t]),children:o})};dl.displayName="FieldItem";var ml=E((e,t)=>{let o=I(se()?.getLabelProps(),e);return s(S.label,{...o,ref:t})});ml.displayName="FieldLabel";var fl=E(({fallback:e,...t},o)=>{let r=se();if(!r.required)return e;let n=I(r.getRequiredIndicatorProps(),t);return s(S.span,{...n,ref:o,children:t.children??"*"})});fl.displayName="FieldRequiredIndicator";var[k7,$p]=re({name:"FieldsetContext",hookName:"useFieldsetContext",providerName:"<FieldsetProvider />",strict:!1});var jp=typeof window<"u"?ut:Z;var Kp=(e={})=>{let t=$p(),o=Je(),{ids:r,target:n,disabled:i=!!t?.disabled,invalid:l=!1,readOnly:a=!1,required:c=!1}=e,[p,u]=ee(!1),[d,g]=ee(!1),f=me(),m=e.id??f,v=G(null),b=r?.control??`field::${m}`,y=r?.errorText??`field::${m}::error-text`,T=r?.helperText??`field::${m}::helper-text`,w=r?.label??`field::${m}::label`;jp(()=>{let L=v.current;if(!L)return;let W=()=>{let B=o.getRootNode();u(!!B.getElementById(y)),g(!!B.getElementById(T))};W();let q=new(o.getWindow()).MutationObserver(W);return q.observe(L,{childList:!0,subtree:!0}),()=>q.disconnect()},[o,y,T]);let P=ce(()=>{let L=[];return p&&l&&L.push(y),d&&L.push(T),L.join(" ")||void 0},[l,y,T,p,d]),O=ce(()=>()=>({...Oe.root.attrs,id:b,ref:v,role:"group","data-disabled":$(i),"data-invalid":$(l),"data-readonly":$(a)}),[i,l,a,b]),A=n?`field::${m}::item::${n}`:void 0,_=ce(()=>()=>({...Oe.label.attrs,id:w,"data-disabled":$(i),"data-invalid":$(l),"data-readonly":$(a),"data-required":$(c),htmlFor:A??m}),[i,l,a,c,m,w,A]),C=ce(()=>()=>({"aria-describedby":P,"aria-invalid":nt(l),"data-invalid":$(l),"data-required":$(c),"data-readonly":$(a),id:m,required:c,disabled:i,readOnly:a}),[P,l,c,a,m,i]),k=ce(()=>()=>({...C(),...Oe.input.attrs}),[C]),D=ce(()=>()=>({...C(),...Oe.textarea.attrs}),[C]),N=ce(()=>()=>({...C(),...Oe.select.attrs}),[C]),R=ce(()=>()=>({id:T,...Oe.helperText.attrs,"data-disabled":$(i)}),[i,T]),M=ce(()=>()=>({id:y,...Oe.errorText.attrs,"aria-live":"polite"}),[y]),z=ce(()=>()=>({"aria-hidden":!0,...Oe.requiredIndicator.attrs}),[]);return{ariaDescribedby:P,ids:{root:b,control:m,label:w,errorText:y,helperText:T},refs:{rootRef:v},disabled:i,invalid:l,readOnly:a,required:c,getLabelProps:_,getRootProps:O,getInputProps:k,getTextareaProps:D,getSelectProps:N,getHelperTextProps:R,getErrorTextProps:M,getRequiredIndicatorProps:z}};var Vg=le(),gl=E((e,t)=>{let[o,r]=Vg(e,["id","ids","disabled","invalid","readOnly","required","target"]),n=Kp(o),i=I(n.getRootProps(),r);return s(No,{value:n,children:s(S.div,{...i,ref:Te(t,n.refs.rootRef)})})});gl.displayName="FieldRoot";var Hg=le(),hl=E((e,t)=>{let[{value:o},r]=Hg(e,["value"]),n=I(o.getRootProps(),r);return s(No,{value:o,children:s(S.div,{...n,ref:t})})});hl.displayName="FieldRootProvider";var xl=E((e,t)=>{let o=I(se()?.getSelectProps(),e);return s(S.select,{...o,ref:t})});xl.displayName="FieldSelect";var qp=e=>{if(!e)return;let t=je(e),o=te(e),r=Q(e),n=()=>{requestAnimationFrame(()=>{e.style.height="auto";let p;t.boxSizing==="content-box"?p=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):p=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&p>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),p=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${p}px`})};e.addEventListener("input",n),e.form?.addEventListener("reset",n);let i=Object.getPrototypeOf(e),l=Object.getOwnPropertyDescriptor(i,"value");l&&Object.defineProperty(e,"value",{...l,set(p){let u=l.get?.call(this);l.set?.call(this,p),n(),u!==p&&queueMicrotask(()=>{e.dispatchEvent(new o.InputEvent("input",{bubbles:!0}))})}});let a=new o.ResizeObserver(()=>{requestAnimationFrame(()=>n())});a.observe(e);let c=new o.MutationObserver(()=>n());return c.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),r.fonts?.addEventListener("loadingdone",n),()=>{e.removeEventListener("input",n),e.form?.removeEventListener("reset",n),r.fonts?.removeEventListener("loadingdone",n),a.disconnect(),c.disconnect()}};var bl=E((e,t)=>{let{autoresize:o,...r}=e,n=G(null),i=I(se()?.getTextareaProps(),{style:{resize:o?"none":void 0}},r);return Z(()=>{if(o)return qp(n.current)},[o]),s(S.textarea,{...i,ref:Te(t,n)})});bl.displayName="FieldTextarea";var Ae=wt({Context:()=>Up,ErrorText:()=>cl,HelperText:()=>pl,Input:()=>ul,Item:()=>dl,Label:()=>ml,RequiredIndicator:()=>fl,Root:()=>gl,RootProvider:()=>hl,Select:()=>xl,Textarea:()=>bl});var Qo=E(({className:e,error:t,rows:o=4,...r},n)=>s(Ae.Textarea,{ref:n,rows:o,"aria-invalid":t||void 0,"data-error":t?"true":void 0,className:x("polli-textarea polli:w-full polli:rounded-lg polli:border polli:px-3 polli:py-2","polli:min-h-20 polli:resize-y polli:font-body polli:text-base","polli:text-theme-text-strong","polli:transition-colors","polli:disabled:opacity-50 polli:disabled:cursor-not-allowed",e),...r}));Qo.displayName="Textarea";function Yp({className:e,...t}){return s("fieldset",{className:x("polli:m-0 polli:min-w-0 polli:p-0",e),...t})}var vl=E(({className:e,...t},o)=>s(Qo,{...t,ref:o,className:x("polli:resize-none",e)}));vl.displayName="ChatPromptTextarea";function Zp({start:e,end:t,children:o,className:r,...n}){return s("div",{className:x("polli:flex polli:flex-wrap polli:items-end polli:gap-2",r),...n,children:o??h(Y,{children:[s("div",{className:"polli:flex polli:flex-wrap polli:items-center polli:gap-2",children:e}),s("div",{className:"polli:ml-auto polli:flex polli:items-center polli:gap-2",children:t})]})})}var _g={icon:"polli:h-12 polli:w-12 polli:p-0",xs:"polli:h-5 polli:px-1.5 polli:py-0 polli:text-[11px] polli:leading-none",sm:"polli:min-h-7 polli:px-2 polli:pt-0.5 polli:pb-1",md:"polli:min-h-9 polli:px-4 polli:pt-1.5 polli:pb-2",lg:"polli:min-h-12 polli:px-6 polli:py-3 polli:text-base"},Wg={icon:"polli:h-12 polli:w-12 polli:p-0",xs:"polli:px-2 polli:py-1 polli:text-xs",sm:"polli:px-4 polli:py-2 polli:text-sm",md:"polli:px-7 polli:py-3.5 polli:text-base",lg:"polli:px-8 polli:py-4 polli:text-lg"},zg={pill:"polli:rounded-full",raised:"polli:rounded-xl polli:border-r-[3px] polli:border-b-[3px] polli:border-solid polli:border-theme-text-strong/20 polli:hover:border-theme-text-strong/45"},Gg="polli:bg-theme-bg-active polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover polli:transition-colors",Xp="polli:border polli:border-theme-text-soft polli:bg-theme-bg-active/30 polli:text-theme-text-strong polli:transition-colors polli:[.dark_&]:bg-transparent",Ug={brand:`${Xp} polli:hover:bg-theme-bg-active/50 polli:[.dark_&]:hover:bg-theme-text-soft/10`,commit:`${Xp} polli:hover:border-theme-bg-active polli:hover:bg-theme-bg-active polli:focus-visible:border-theme-bg-active polli:focus-visible:bg-theme-bg-active polli:[.dark_&]:hover:bg-theme-bg-active polli:[.dark_&]:focus-visible:bg-theme-bg-active`,danger:"polli:border polli:border-intent-danger-text polli:bg-intent-danger-bg-light polli:text-intent-danger-text polli:hover:bg-intent-danger-bg-hover polli:focus-visible:bg-intent-danger-bg-hover polli:transition-colors polli:[.dark_&]:bg-transparent polli:[.dark_&]:hover:bg-intent-danger-bg-hover polli:[.dark_&]:focus-visible:bg-intent-danger-bg-hover",info:"polli:bg-intent-info-bg-light polli:text-intent-info-text polli:hover:bg-intent-info-bg-hover polli:transition-colors",surface:"polli:bg-surface-opaque polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover polli:transition-colors",neutral:"polli:bg-theme-bg-subtle polli:text-theme-text-base polli:hover:bg-theme-text-muted/25 polli:hover:text-theme-text-strong polli:transition-colors"},$g=({intent:e,appearance:t="pill",size:o,className:r,disabled:n,busy:i})=>{let l=e?Ug[e]:Gg,a=t==="raised"?Wg:_g;return x("polli-control polli:inline-flex polli:items-center polli:justify-center polli:self-center polli:font-body polli:text-sm polli:font-medium polli:leading-normal polli:box-border polli:border polli:border-transparent",i?"polli:cursor-progress":n?"polli:opacity-50 polli:cursor-not-allowed":"polli:hover:filter polli:hover:brightness-105 polli:cursor-pointer",l,zg[t],a[o||"md"],r)};function et({as:e,children:t,icon:o,intent:r,appearance:n,size:i,className:l,disabled:a,...c}){let p=e||"button",u=p==="button",d=p==="a",g=c.type,f=c.onClick,m=c["aria-busy"],v=m===!0||m==="true";return h(p,{...c,"data-intent":r,...u?{type:g??"button",disabled:a}:{},...!u&&a?{"aria-disabled":!0,tabIndex:-1}:{},...d&&a?{href:void 0}:{},onClick:a?y=>{y.preventDefault(),y.stopPropagation()}:f,className:$g({intent:r,appearance:n,size:i,className:l,disabled:a,busy:v}),children:[o&&s("span",{"aria-hidden":"true",className:"polli:mr-2 polli:flex polli:size-4 polli:shrink-0 polli:[&>svg]:size-full",children:v?s("span",{className:"polli:block polli:size-full polli:animate-spin polli:rounded-full polli:border-2 polli:border-current polli:border-r-transparent polli:motion-reduce:animate-none"}):o}),t]})}var jg=288,er=12;function Kg(e,t,o,r,n){let i=r==="center"?e.left+(e.width-t.width)/2:e.left;n&&(i=Math.max(er,Math.min(i,o.width-t.width-er)));let l=e.bottom+4;return l+t.height>o.height-er&&(l=e.top-t.height-4),{top:Math.max(er,l),left:i}}var tt=({children:e,content:t,align:o="start",ariaLabel:r,clampToViewport:n=!0,className:i,maxWidth:l=jg,onClick:a,stopClickPropagation:c=!0,style:p,tapEnabled:u=!1,triggerAs:d="button",displayContents:g=!1})=>{let[f,m]=ee(!1),[v,b]=ee({top:0,left:0}),y=G(null),T=G(null),w=G(!1),P=G(void 0),O=me(),A=()=>{clearTimeout(P.current),m(!0)},_=()=>{clearTimeout(P.current),w.current=!1,m(!1)},C=()=>{clearTimeout(P.current),P.current=setTimeout(()=>{!w.current&&!y.current?.matches(":hover, :focus-visible, :has(:focus-visible)")&&!T.current?.matches(":hover")&&m(!1)},150)};Z(()=>()=>clearTimeout(P.current),[]),Z(()=>{if(!f)return;let xe=ae=>{y.current?.contains(ae.target)||T.current?.contains(ae.target)||(clearTimeout(P.current),w.current=!1,m(!1))},Mt=ae=>{ae.key==="Escape"&&(w.current=!1,m(!1))},Pe=()=>{w.current=!1,m(!1)};return document.addEventListener("pointerdown",xe),document.addEventListener("keydown",Mt),window.addEventListener("scroll",Pe,{capture:!0,passive:!0}),window.addEventListener("resize",Pe),()=>{document.removeEventListener("pointerdown",xe),document.removeEventListener("keydown",Mt),window.removeEventListener("scroll",Pe,!0),window.removeEventListener("resize",Pe)}},[f]),ut(()=>{f&&y.current&&T.current&&b(Kg(y.current.getBoundingClientRect(),T.current.getBoundingClientRect(),{width:window.innerWidth,height:window.innerHeight},o,n))},[f,o,n,l,t]);let k=d==="button"||u,D=x(k&&"polli-control","polli:relative polli:cursor-help polli:text-left polli:inline-flex polli:items-center",i),N=g?"polli:contents":"polli:cursor-inherit",R=t&&f?O:void 0,M=!k&&vr(e)&&e.type!==Y,z=M&&R?xr(e,{"aria-describedby":[e.props["aria-describedby"],R].filter(Boolean).join(" ")}):e,W=t?s("span",{ref:T,id:O,role:"tooltip","aria-hidden":!f,style:{top:v.top,left:v.left,maxWidth:`min(${l}px, calc(100vw - ${er*2}px))`},onMouseEnter:A,onMouseLeave:C,onClick:xe=>xe.stopPropagation(),className:`${f?"polli:visible polli:opacity-100":"polli:invisible polli:opacity-0"} polli:fixed polli:box-border polli:w-max polli:px-2 polli:py-1 polli:bg-surface-menu polli:text-theme-text-base polli:font-normal polli:leading-snug polli:tracking-normal polli:normal-case polli:not-italic polli:text-xs polli:rounded-md polli:shadow-md polli:z-[130] polli:transition-opacity polli:whitespace-pre-line polli:break-words`,children:t}):null,q=W&&typeof document<"u"?cn(W,y.current?.closest('[role="dialog"]')??document.body):W,B=h(Y,{children:[s("span",{className:N,children:z}),q]}),ne={"aria-label":r,"aria-describedby":M?void 0:R,className:D,onMouseEnter:A,onMouseLeave:C,onClick:xe=>{if(c&&xe.stopPropagation(),a&&a(),!(!u||!t)){if(w.current){_();return}w.current=!0,A()}},onFocus:xe=>{xe.target.matches(":focus-visible")&&A()},onBlur:()=>{w.current=!1,C()},style:p};if(d==="span"){let Mt={...ne,role:u&&t?"button":void 0,tabIndex:u&&t?0:void 0,onKeyDown:u&&t?Pe=>{if(!(!u||!t)&&!(Pe.key!=="Enter"&&Pe.key!==" ")){if(Pe.preventDefault(),w.current){_();return}w.current=!0,A()}}:void 0};return s("span",{ref:Pe=>{y.current=Pe},...Mt,children:B})}return s("button",{ref:xe=>{y.current=xe},type:"button","aria-label":r,"aria-describedby":t&&f?O:void 0,className:D,onMouseEnter:ne.onMouseEnter,onMouseLeave:ne.onMouseLeave,onClick:ne.onClick,onFocus:ne.onFocus,onBlur:ne.onBlur,style:p,children:B})};function Tt({copied:e,...t}){return s(e?Qe:Ki,{...t})}function It({value:e,children:t,copiedTimeoutMs:o=2e3,tooltip:r="Click to copy",tooltipAlign:n,tooltipClampToViewport:i,tooltipMaxWidth:l,copiedTooltip:a=h("span",{className:"polli:inline-flex polli:items-center polli:gap-1 polli:text-intent-success-text",children:[s(Qe,{className:"polli:h-3.5 polli:w-3.5"}),"Copied"]}),tooltipClassName:c,className:p,variant:u="plain",intent:d,onCopied:g,onCopyError:f,...m}){let[v,b]=ee(!1),y=G(null);Z(()=>()=>{y.current&&clearTimeout(y.current)},[]);async function T(O){O.stopPropagation();try{let A=typeof e=="function"?await e():e;await navigator.clipboard.writeText(A),b(!0),g?.(),y.current&&clearTimeout(y.current),y.current=setTimeout(()=>b(!1),o)}catch(A){f?.(A)}}let P=s(u==="button"?et:"button",{...m,...u==="button"&&d?{intent:d}:{},type:"button",onClick:T,className:x("polli-control",m.disabled?"polli:cursor-not-allowed":"polli:cursor-pointer",typeof p=="function"?p(v):p),children:typeof t=="function"?t(v):t});return r===null?P:s(tt,{triggerAs:"span",content:v?a:r,align:n,clampToViewport:i,maxWidth:l,displayContents:!0,tapEnabled:!1,className:x(m.disabled?"polli:cursor-not-allowed":"polli:cursor-pointer",c),children:P})}var Jp=({code:e,codeClassName:t,language:o,className:r,...n})=>{let i=o||"Code";return h("div",{...n,className:x("polli:min-w-0 polli:max-w-full polli:overflow-hidden polli:rounded-lg polli:border polli:border-theme-border polli:bg-theme-bg-pale",r),children:[h("div",{className:"polli:flex polli:min-h-9 polli:items-center polli:justify-between polli:gap-3 polli:bg-theme-bg-subtle polli:px-3 polli:py-1.5",children:[s("span",{className:"polli:truncate polli:font-mono polli:text-[11px] polli:font-medium polli:uppercase polli:tracking-wide polli:text-theme-text-muted",children:i}),s(It,{value:e,tooltip:null,"aria-label":"Copy code",className:"polli:flex polli:items-center polli:gap-1.5 polli:rounded-md polli:px-2 polli:py-1 polli:text-xs polli:font-medium polli:text-theme-text-base polli:transition-colors polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",children:l=>h(Y,{children:[s(Tt,{copied:l,className:"polli:size-3.5"}),s("span",{children:l?"Copied":"Copy"})]})})]}),s("pre",{className:x("polli:m-0 polli:min-w-0 polli:whitespace-pre-wrap polli:break-words polli:[overflow-wrap:anywhere] polli:[tab-size:4] polli:p-3 polli:font-mono polli:text-xs polli:leading-6 polli:text-theme-text-strong",t),children:s("code",{children:e})})]})};var Qp=({label:e,expanded:t,onToggle:o,children:r,disabled:n=!1,wrapperClassName:i,triggerClassName:l,hoverClassName:a="polli:hover:bg-theme-bg-active",focusClassName:c,panelClassName:p="polli:border-t polli:border-theme-border polli:px-3 polli:pt-3 polli:pb-3",ariaLabel:u})=>h("div",{className:x("polli:rounded-lg polli:border polli:transition-all",i,n&&"polli:opacity-50"),children:[h("button",{type:"button","aria-expanded":t,"aria-label":u,disabled:n,onClick:o,className:x("polli-control polli:w-full polli:flex polli:items-center polli:gap-3 polli:px-3 polli:py-2 polli:text-left polli:transition-colors",t?"polli:rounded-t-lg":"polli:rounded-lg",l,!n&&a,c,n?"polli:cursor-not-allowed":"polli:cursor-pointer"),children:[s("div",{className:"polli:flex-1 polli:min-w-0",children:e}),s(fe,{expanded:t,className:"polli:text-theme-text-soft"})]}),t&&s("div",{className:p,children:r})]});var qg=Re("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),Nt=qg.build();var yl=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,Cl=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,gn=e=>e.ids?.content??`dialog:${e.id}:content`,hn=(e,t)=>{let o=e.ids?.trigger;return o!=null?he(o)?o(t):o:t?`dialog:${e.id}:trigger:${t}`:`dialog:${e.id}:trigger`},xn=e=>e.ids?.title??`dialog:${e.id}:title`,bn=e=>e.ids?.description??`dialog:${e.id}:description`,wl=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,tr=e=>e.getById(gn(e)),eu=e=>e.getById(yl(e)),tu=e=>e.getById(Cl(e)),Pl=e=>e.getById(hn(e)),ou=e=>e.getById(xn(e)),ru=e=>e.getById(bn(e)),nu=e=>e.getById(wl(e)),vn=e=>Fr(e.getRootNode(),`[data-scope="dialog"][data-part="trigger"][data-ownedby="${e.id}"]`),El=(e,t)=>t==null?Pl(e)??vn(e)[0]:e.getById(hn(e,t));function Tl(e,t){let{state:o,send:r,context:n,prop:i,scope:l}=e,a=i("aria-label"),c=o.matches("open"),p=n.get("triggerValue");return{open:c,setOpen(u){o.matches("open")!==u&&r({type:u?"OPEN":"CLOSE"})},triggerValue:p,setTriggerValue(u){r({type:"TRIGGER_VALUE.SET",value:u})},getTriggerProps(u={}){let{value:d}=u,g=d==null?!1:p===d;return t.button({...Nt.trigger.attrs,dir:i("dir"),id:hn(l,d),"data-ownedby":l.id,"data-value":d,"aria-haspopup":"dialog",type:"button","aria-expanded":d==null?c:c&&g,"data-state":c?"open":"closed","aria-controls":gn(l),"data-current":$(g),onClick(f){if(f.defaultPrevented)return;let m=c&&d!=null&&!g;r({type:m?"TRIGGER_VALUE.SET":"TOGGLE",value:d})}})},getBackdropProps(){return t.element({...Nt.backdrop.attrs,dir:i("dir"),hidden:!c,id:Cl(l),"data-state":c?"open":"closed"})},getPositionerProps(){return t.element({...Nt.positioner.attrs,dir:i("dir"),id:yl(l),style:ht({pointerEvents:!c||!i("modal")?"none":void 0})})},getContentProps(){let u=n.get("rendered");return t.element({...Nt.content.attrs,dir:i("dir"),role:i("role"),hidden:!c,id:gn(l),tabIndex:-1,"data-state":c?"open":"closed","aria-modal":i("modal"),"aria-label":a||void 0,"aria-labelledby":a||!u.title?void 0:xn(l),"aria-describedby":u.description?bn(l):void 0,style:ht({pointerEvents:i("modal")?void 0:"auto"})})},getTitleProps(){return t.element({...Nt.title.attrs,dir:i("dir"),id:xn(l)})},getDescriptionProps(){return t.element({...Nt.description.attrs,dir:i("dir"),id:bn(l)})},getCloseTriggerProps(){return t.button({...Nt.closeTrigger.attrs,dir:i("dir"),id:wl(l),type:"button",onClick(u){u.defaultPrevented||(u.stopPropagation(),r({type:"CLOSE"}))}})}}}var Il=Qt({props({props:e,scope:t}){let o=e.role==="alertdialog",r=o?()=>nu(t):void 0,n=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:n,trapFocus:n,preventScroll:n,closeOnInteractOutside:n&&!o,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e,prop:t,scope:o}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}})),triggerValue:e(()=>({defaultValue:t("defaultTriggerValue")??null,value:t("triggerValue"),onChange(r){let n=t("onTriggerValueChange");if(!n)return;let i=El(o,r);n({value:r,triggerElement:i})}}))}},watch({track:e,action:t,prop:o}){e([()=>o("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","setInitialFocus"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"TRIGGER_VALUE.SET":{actions:["setTriggerValue"]}}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],"TRIGGER_VALUE.SET":{actions:["setTriggerValue"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:o}){return wo(()=>tr(e),{type:"dialog",defer:!0,pointerBlocking:o("modal"),layerStyleTargets:[()=>tu(e),()=>eu(e)],exclude:[Pl(e),...vn(e)].filter(Boolean),onInteractOutside(n){o("onInteractOutside")?.(n),o("closeOnInteractOutside")||n.preventDefault()},persistentElements:o("persistentElements"),onFocusOutside:o("onFocusOutside"),onPointerDownOutside:o("onPointerDownOutside"),onRequestDismiss:o("onRequestDismiss"),onEscapeKeyDown(n){o("onEscapeKeyDown")?.(n),o("closeOnEscape")||n.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return sn(e.getDoc())},trapFocus({scope:e,prop:t,context:o}){return t("trapFocus")?ln(()=>tr(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:n=>{let i=t("finalFocusEl")?.();if(i)return i;let l=o.get("triggerValue");if(l){let c=El(e,l);if(c)return c}let a=vn(e)[0];return a||n},getShadowRoot:!0}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?rn(()=>[tr(e)],{defer:!0}):void 0}},actions:{setInitialFocus({prop:e,scope:t}){e("trapFocus")||K(()=>{Vo({root:tr(t),getInitialEl:e("initialFocusEl")})?.focus({preventScroll:!0})})},checkRenderedElements({context:e,scope:t}){K(()=>{e.set("rendered",{title:!!ou(t),description:!!ru(t)})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},setTriggerValue({context:e,event:t}){t.value!==void 0&&e.set("triggerValue",t.value)},toggleVisibility({prop:e,send:t,event:o}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:o})}}}});var[yn,ye]=re({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"});var[Cn,lu]=re({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),wn=e=>le()(e,["lazyMount","unmountOnExit"]);var Nl=E((e,t)=>{let o=ye(),r=Ie({...lu(),present:o.open}),n=I(o.getBackdropProps(),r.getPresenceProps(),e);return r.unmounted?null:s(S.div,{...n,ref:Te(r.ref,t)})});Nl.displayName="DialogBackdrop";var kl=E((e,t)=>{let o=I(ye().getCloseTriggerProps(),e);return s(S.button,{...o,ref:t})});kl.displayName="DialogCloseTrigger";var Sl=E((e,t)=>{let o=ye(),r=ve(),n=I(o.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:s(S.div,{...n,ref:Te(r.ref,t)})});Sl.displayName="DialogContent";var su=e=>e.children(ye());var Rl=E((e,t)=>{let o=I(ye().getDescriptionProps(),e);return s(S.div,{...o,ref:t})});Rl.displayName="DialogDescription";var Ol=E((e,t)=>{let o=I(ye().getPositionerProps(),e);return ve().unmounted?null:s(S.div,{...o,ref:t})});Ol.displayName="DialogPositioner";var au=e=>{let t=me(),{getRootNode:o}=Je(),{dir:r}=Po(),n={id:t,getRootNode:o,dir:r,...e},i=yt(Il,n);return Tl(i,Ct)};var cu=e=>{let[t,{children:o,...r}]=Ve(e),[n]=wn(t),i=au(r);return s(yn,{value:i,children:s(Cn,{value:n,children:s(Be,{value:Ie(I({present:i.open},t)),children:o})})})};var pu=e=>{let[t,{value:o,children:r}]=Ve(e),[n]=wn(t);return s(yn,{value:o,children:s(Cn,{value:n,children:s(Be,{value:Ie(I({present:o.open},t)),children:r})})})};var Al=E((e,t)=>{let o=I(ye().getTitleProps(),e);return s(S.h2,{...o,ref:t})});Al.displayName="DialogTitle";var Zg=le(),Ml=E((e,t)=>{let[o,r]=Zg(e,["value"]),n=ye(),i=ve(),l=n.getTriggerProps(o),a=I({...l,"aria-controls":i.unmounted?void 0:l["aria-controls"]},r);return s(S.button,{...a,ref:t})});Ml.displayName="DialogTrigger";var Ne=wt({Backdrop:()=>Nl,CloseTrigger:()=>kl,Content:()=>Sl,Context:()=>su,Description:()=>Rl,Positioner:()=>Ol,Root:()=>cu,RootProvider:()=>pu,Title:()=>Al,Trigger:()=>Ml});var Xg={sm:"polli:max-w-md",md:"polli:max-w-xl",lg:"polli:max-w-[800px]",xl:"polli:max-w-6xl"},Pn=({open:e,onOpenChange:t,trigger:o,triggerAsChild:r=!1,triggerClassName:n,title:i,ariaLabel:l,labelledBy:a,size:c="md",showBackdrop:p=!0,backdropBlur:u=!0,positionerClassName:d,contentClassName:g,children:f})=>{let m=G(null);return h(Ne.Root,{open:e,initialFocusEl:()=>m.current,onOpenChange:v=>t?.(v.open),children:[o&&s(Ne.Trigger,{asChild:r,className:n,children:o}),h(eo,{children:[p&&s(Ne.Backdrop,{className:x("polli:fixed polli:inset-0 polli:z-[calc(100_+_var(--layer-index,0)_*_20)] polli:bg-[#000]/50",u&&"polli:backdrop-blur-sm")}),s(Ne.Positioner,{className:x("polli:fixed polli:inset-0 polli:z-[calc(110_+_var(--layer-index,0)_*_20)] polli:flex polli:max-h-dvh polli:items-start polli:justify-center polli:overflow-hidden polli:p-4","polli-dialog-mobile-positioner",d),children:h(Ne.Content,{ref:m,"aria-label":l,"aria-labelledby":a,className:x("polli:my-auto polli:flex polli:h-auto polli:max-h-full polli:w-full polli:flex-col polli:overflow-y-auto polli:rounded-block polli:bg-surface-block polli:outline-none polli:focus:outline-none polli:focus-visible:outline-none","polli-dialog-mobile-page",Xg[c],g),children:[i&&s(or,{title:i}),f]})})]})]})},Ll=Ne.Title,Dl=Ne.Description,or=({title:e,description:t,children:o,inBody:r=!1,className:n,titleClassName:i,descriptionClassName:l,...a})=>h("div",{className:x(r?"polli:shrink-0 polli:pt-2 polli:pb-4":"polli:shrink-0 polli:px-(--polli-dialog-gutter) polli:pt-6 polli:pb-4",n),...a,children:[e&&s(Ll,{className:x(sl("section"),i),children:e}),t&&s(Dl,{className:x("polli:mt-1 polli:font-body polli:text-sm polli:font-normal polli:leading-5 polli:text-theme-text-base",l),children:t}),o]});function En({children:e,actions:t,footnote:o,bodyClassName:r,className:n,...i}){return h($e,{...i,className:x("polli:flex polli:min-h-0 polli:flex-1 polli:flex-col polli:overscroll-contain",n),children:[s("div",{className:x("polli:space-y-3 polli:px-(--polli-dialog-gutter) polli:py-4",r),children:e}),(t||o)&&h("div",{className:"polli-dialog-floating-controls polli:@container polli:pointer-events-none polli:sticky polli:bottom-0 polli:z-10",children:[t&&s(Fl,{className:"polli:pointer-events-auto",children:t}),o&&s("div",{className:"polli:pointer-events-auto",children:o})]})]})}var Fl=({children:e,className:t,...o})=>s("div",{className:x("polli:flex polli:shrink-0 polli:flex-wrap polli:items-center polli:justify-end polli:gap-3 polli:bg-transparent polli:px-(--polli-dialog-gutter) polli:pt-4 polli:pb-6","polli:[&>.polli-control]:min-h-12 polli:[&>.polli-control]:text-base polli:@max-xl:[&>.polli-control]:flex-auto polli:[&>.polli-control:only-child]:flex-auto",t),...o,children:e});var Jg={danger:s(ol,{}),commit:s(Qe,{}),info:s(Qe,{}),neutral:s(Qe,{})};function uu({open:e,title:t,description:o,children:r,confirmLabel:n,intent:i="danger",confirmIcon:l,confirmDisabled:a=!1,cancelDisabled:c=!1,onConfirm:p,onCancel:u,size:d="md"}){let g=h(Y,{children:[s(et,{type:"button",intent:"neutral",icon:s(to,{}),onClick:u,disabled:c,children:"Cancel"}),s(et,{type:"button",intent:i,icon:l??Jg[i],onClick:p,disabled:a,children:n})]});return s(Pn,{open:e,onOpenChange:f=>!f&&!c&&u(),size:d,contentClassName:"polli:overflow-hidden",children:h(En,{actions:g,children:[s(or,{inBody:!0,title:t}),o&&s("p",{className:"polli:text-sm polli:leading-relaxed",children:o}),r]})})}var Qg={page:"polli:text-sm polli:tracking-widest polli:text-theme-text-soft",card:"polli:text-xs polli:tracking-wider polli:text-theme-text-soft",chrome:"polli:text-micro polli:tracking-widest polli:text-theme-text-muted"};function Tn({as:e,size:t="card",className:o,children:r,...n}){return s(e||"span",{...n,className:x("polli:font-pixel polli:uppercase",Qg[t],o),children:r})}var e2={page:"polli:font-heading polli:text-4xl polli:leading-[1.08] polli:text-theme-text-strong polli:sm:text-5xl polli:lg:text-7xl",section:"polli:font-subheading polli:text-3xl polli:leading-tight polli:text-theme-text-strong polli:sm:text-4xl"},t2={page:"polli:max-w-lg polli:text-base polli:leading-relaxed polli:text-theme-text-base polli:sm:text-lg",section:"polli:max-w-xl polli:leading-relaxed polli:text-theme-text-base"};function du({eyebrow:e,title:t,subtitle:o,action:r,variant:n="section",className:i}){let l=n==="page"?"h1":"h2";return h("header",{className:x("polli:flex polli:flex-wrap polli:items-end polli:justify-between polli:gap-6",i),children:[h("div",{className:"polli:flex polli:max-w-2xl polli:flex-col polli:gap-3",children:[e?s(Tn,{size:"page",children:e}):null,s(l,{className:e2[n],children:t}),o&&s("p",{className:x(t2[n],"polli:[&_strong]:text-theme-text-strong"),children:o})]}),r]})}function mu({value:e,label:t,display:o,className:r,...n}){return s(It,{...n,value:e,tooltip:null,"aria-label":t,className:i=>x("polli-input-shell polli:flex polli:min-h-10 polli:w-full polli:cursor-pointer polli:items-center polli:gap-3 polli:rounded-lg polli:border polli:px-3 polli:py-2 polli:text-left polli:font-mono polli:text-xs polli:transition-colors",i?"polli:text-intent-success-text":"polli:text-theme-text-base polli:hover:text-theme-text-strong",r),children:i=>h(Y,{children:[s("span",{className:"polli:min-w-0 polli:flex-1 polli:select-all polli:break-all",children:i?"Copied":o??(typeof e=="string"?e:t)}),s("span",{"aria-hidden":"true",className:"polli:flex polli:size-4 polli:shrink-0 polli:[&>svg]:size-full",children:s(Tt,{copied:i})})]})})}var o2=Object.defineProperty,r2=(e,t,o)=>t in e?o2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,U=(e,t,o)=>r2(e,typeof t!="symbol"?t+"":t,o);var Nn={itemToValue(e){return typeof e=="string"?e:qr(e)&&Yt(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:qr(e)&&Yt(e,"label")?e.label:Nn.itemToValue(e)},isItemDisabled(e){return qr(e)&&Yt(e,"disabled")?!!e.disabled:!1}},ko=class fu{constructor(t){U(this,"options",t),U(this,"items"),U(this,"indexMap",null),U(this,"copy",o=>new fu({...this.options,items:o??[...this.items]})),U(this,"isEqual",o=>ho(this.items,o.items)),U(this,"setItems",o=>this.copy(o)),U(this,"getValues",(o=this.items)=>{let r=[];for(let n of o){let i=this.getItemValue(n);i!=null&&r.push(i)}return r}),U(this,"find",o=>{if(o==null)return null;let r=this.indexOf(o);return r!==-1?this.at(r):null}),U(this,"findMany",o=>{let r=[];for(let n of o){let i=this.find(n);i!=null&&r.push(i)}return r}),U(this,"at",o=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[o]??null;let r=0,n=this.group();for(let[,i]of n)for(let l of i){if(r===o)return l;r++}return null}),U(this,"sortFn",(o,r)=>{let n=this.indexOf(o),i=this.indexOf(r);return(n??0)-(i??0)}),U(this,"sort",o=>[...o].sort(this.sortFn.bind(this))),U(this,"getItemValue",o=>o==null?null:this.options.itemToValue?.(o)??Nn.itemToValue(o)),U(this,"getItemDisabled",o=>o==null?!1:this.options.isItemDisabled?.(o)??Nn.isItemDisabled(o)),U(this,"stringifyItem",o=>o==null?null:this.options.itemToString?.(o)??Nn.itemToString(o)),U(this,"stringify",o=>o==null?null:this.stringifyItem(this.find(o))),U(this,"stringifyItems",(o,r=", ")=>{let n=[];for(let i of o){let l=this.stringifyItem(i);l!=null&&n.push(l)}return n.join(r)}),U(this,"stringifyMany",(o,r)=>this.stringifyItems(this.findMany(o),r)),U(this,"has",o=>this.indexOf(o)!==-1),U(this,"hasItem",o=>o==null?!1:this.has(this.getItemValue(o))),U(this,"group",()=>{let{groupBy:o,groupSort:r}=this.options;if(!o)return[["",[...this.items]]];let n=new Map;this.items.forEach((l,a)=>{let c=o(l,a);n.has(c)||n.set(c,[]),n.get(c).push(l)});let i=Array.from(n.entries());return r&&i.sort(([l],[a])=>{if(typeof r=="function")return r(l,a);if(Array.isArray(r)){let c=r.indexOf(l),p=r.indexOf(a);return c===-1?1:p===-1?-1:c-p}return r==="asc"?l.localeCompare(a):r==="desc"?a.localeCompare(l):0}),i}),U(this,"getNextValue",(o,r=1,n=!1)=>{let i=this.indexOf(o);if(i===-1)return null;for(i=n?Math.min(i+r,this.size-1):i+r;i<=this.size&&this.getItemDisabled(this.at(i));)i++;return this.getItemValue(this.at(i))}),U(this,"getPreviousValue",(o,r=1,n=!1)=>{let i=this.indexOf(o);if(i===-1)return null;for(i=n?Math.max(i-r,0):i-r;i>=0&&this.getItemDisabled(this.at(i));)i--;return this.getItemValue(this.at(i))}),U(this,"indexOf",o=>{if(o==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(r=>this.getItemValue(r)===o);if(!this.indexMap){this.indexMap=new Map;let r=0,n=this.group();for(let[,i]of n)for(let l of i){let a=this.getItemValue(l);a!=null&&this.indexMap.set(a,r),r++}}return this.indexMap.get(o)??-1}),U(this,"getByText",(o,r)=>{let n=r!=null?this.indexOf(r):-1,i=o.length===1;for(let l=0;l<this.items.length;l++){let a=this.items[(n+l+1)%this.items.length];if(!(i&&this.getItemValue(a)===r)&&!this.getItemDisabled(a)&&n2(this.stringifyItem(a),o))return a}}),U(this,"search",(o,r)=>{let{state:n,currentValue:i,timeout:l=350}=r,a=n.keysSoFar+o,p=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,u=this.getByText(p,i),d=this.getItemValue(u);function g(){clearTimeout(n.timer),n.timer=-1}function f(m){n.keysSoFar=m,g(),m!==""&&(n.timer=+setTimeout(()=>{f(""),g()},l))}return f(a),d}),U(this,"update",(o,r)=>{let n=this.indexOf(o);return n===-1?this:this.copy([...this.items.slice(0,n),r,...this.items.slice(n+1)])}),U(this,"upsert",(o,r,n="append")=>{let i=this.indexOf(o);return i===-1?(n==="append"?this.append:this.prepend)(r):this.copy([...this.items.slice(0,i),r,...this.items.slice(i+1)])}),U(this,"insert",(o,...r)=>this.copy(rr(this.items,o,...r))),U(this,"insertBefore",(o,...r)=>{let n=this.indexOf(o);if(n===-1)if(this.items.length===0)n=0;else return this;return this.copy(rr(this.items,n,...r))}),U(this,"insertAfter",(o,...r)=>{let n=this.indexOf(o);if(n===-1)if(this.items.length===0)n=0;else return this;return this.copy(rr(this.items,n+1,...r))}),U(this,"prepend",(...o)=>this.copy(rr(this.items,0,...o))),U(this,"append",(...o)=>this.copy(rr(this.items,this.items.length,...o))),U(this,"filter",o=>{let r=this.items.filter((n,i)=>o(this.stringifyItem(n),i,n));return this.copy(r)}),U(this,"remove",(...o)=>{let r=o.map(n=>typeof n=="string"?n:this.getItemValue(n));return this.copy(this.items.filter(n=>{let i=this.getItemValue(n);return i==null?!1:!r.includes(i)}))}),U(this,"move",(o,r)=>{let n=this.indexOf(o);return n===-1?this:this.copy(In(this.items,[n],r))}),U(this,"moveBefore",(o,...r)=>{let n=this.items.findIndex(l=>this.getItemValue(l)===o);if(n===-1)return this;let i=r.map(l=>this.items.findIndex(a=>this.getItemValue(a)===l)).sort((l,a)=>l-a);return this.copy(In(this.items,i,n))}),U(this,"moveAfter",(o,...r)=>{let n=this.items.findIndex(l=>this.getItemValue(l)===o);if(n===-1)return this;let i=r.map(l=>this.items.findIndex(a=>this.getItemValue(a)===l)).sort((l,a)=>l-a);return this.copy(In(this.items,i,n+1))}),U(this,"reorder",(o,r)=>this.copy(In(this.items,[o],r))),U(this,"compareValue",(o,r)=>{let n=this.indexOf(o),i=this.indexOf(r);return n<i?-1:n>i?1:0}),U(this,"range",(o,r)=>{let n=[],i=o;for(;i!=null;){if(this.find(i)&&n.push(i),i===r)return n;i=this.getNextValue(i)}return[]}),U(this,"getValueRange",(o,r)=>o&&r?this.compareValue(o,r)<=0?this.range(o,r):this.range(r,o):[]),U(this,"toString",()=>{let o="";for(let r of this.items){let n=this.getItemValue(r),i=this.stringifyItem(r),l=this.getItemDisabled(r),a=[n,i,l].filter(Boolean).join(":");o+=a+","}return o}),U(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let t=0;for(;this.getItemDisabled(this.at(t));)t++;return this.getItemValue(this.at(t))}get lastValue(){let t=this.size-1;for(;this.getItemDisabled(this.at(t));)t--;return this.getItemValue(this.at(t))}*[Symbol.iterator](){yield*this.items}},n2=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function rr(e,t,...o){return[...e.slice(0,t),...o,...e.slice(t)]}function In(e,t,o){t=[...t].sort((n,i)=>n-i);let r=t.map(n=>e[n]);for(let n=t.length-1;n>=0;n--)e=[...e.slice(0,t[n]),...e.slice(t[n]+1)];return o=Math.max(0,o-t.filter(n=>n<o).length),[...e.slice(0,o),...r,...e.slice(o)]}function kn({values:e,collection:t,selectedItemMap:o}){let r=[];for(let n of e){let i=t.find(n)??o.get(n);i!=null&&r.push(i)}return r}function Bl({selectedItemMap:e,values:t,selectedItems:o,collection:r}){let n=new Map(e);for(let l of o){let a=r.getItemValue(l);a!=null&&n.set(a,l)}let i=new Set(t);for(let l of n.keys())i.has(l)||n.delete(l);return n}function nr({values:e,collection:t,selectedItemMap:o}){let r=kn({values:e,collection:t,selectedItemMap:o}),n=Bl({selectedItemMap:o,values:e,selectedItems:r,collection:t});return{selectedItems:r,nextSelectedItemMap:n}}function Vl({selectedItems:e,collection:t}){return Bl({selectedItemMap:new Map,values:e.map(o=>t.getItemValue(o)).filter(Boolean),selectedItems:e,collection:t})}var Hl=e=>new ko(e);var Sn=Re("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger"),we=Sn.build();var _l=e=>new ko(e);_l.empty=()=>new ko({items:[]});var gu=e=>e.ids?.root??`combobox:${e.id}`,Rn=e=>e.ids?.label??`combobox:${e.id}:label`,Wl=e=>e.ids?.control??`combobox:${e.id}:control`,ir=e=>e.ids?.input??`combobox:${e.id}:input`,lr=e=>e.ids?.content??`combobox:${e.id}:content`,zl=e=>e.ids?.positioner??`combobox:${e.id}:popper`,Gl=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,Ul=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,hu=(e,t)=>e.ids?.itemGroup?.(t)??`combobox:${e.id}:optgroup:${t}`,$l=(e,t)=>e.ids?.itemGroupLabel?.(t)??`combobox:${e.id}:optgroup-label:${t}`,jl=(e,t)=>e.ids?.item?.(t)??`combobox:${e.id}:option:${t}`,kt=e=>e.getById(lr(e)),St=e=>e.getById(ir(e)),Kl=e=>e.getById(zl(e)),ql=e=>e.getById(Wl(e)),oo=e=>e.getById(Gl(e)),xu=e=>e.getById(Ul(e)),Rt=(e,t)=>{if(t==null)return null;let o=`[role=option][data-value="${CSS.escape(t)}"]`;return Ia(kt(e),o)},sr=e=>{let t=St(e);e.isActiveElement(t)||t?.focus({preventScroll:!0}),kr(t)},bu=e=>{let t=oo(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})};function Yl(e,t){let{context:o,prop:r,state:n,send:i,scope:l,computed:a,event:c}=e,p=r("translations"),u=r("collection"),d=!!r("disabled"),g=a("isInteractive"),f=!!r("invalid"),m=!!r("required"),v=!!r("readOnly"),b=n.hasTag("open"),y=n.hasTag("focused"),T=r("composite"),w=o.get("highlightedValue"),P=o.get("currentPlacement"),O=P?$o(P):void 0,A=jo({...r("positioning"),placement:P});function _(C){let k=u.getItemDisabled(C.item),D=u.getItemValue(C.item);return Zt(D,()=>`[zag-js] No value found for item ${JSON.stringify(C.item)}`),{value:D,disabled:!!(d||k),highlighted:w===D,selected:o.get("value").includes(D)}}return{focused:y,open:b,inputValue:o.get("inputValue"),highlightedValue:w,highlightedItem:o.get("highlightedItem"),value:o.get("value"),valueAsString:a("valueAsString"),hasSelectedItems:a("hasSelectedItems"),selectedItems:a("selectedItems"),collection:r("collection"),multiple:!!r("multiple"),disabled:!!d,syncSelectedItems(){i({type:"SELECTED_ITEMS.SYNC"})},reposition(C={}){i({type:"POSITIONING.SET",options:C})},setHighlightValue(C){i({type:"HIGHLIGHTED_VALUE.SET",value:C})},clearHighlightValue(){i({type:"HIGHLIGHTED_VALUE.CLEAR"})},selectValue(C){i({type:"ITEM.SELECT",value:C})},setValue(C){i({type:"VALUE.SET",value:C})},setInputValue(C,k="script"){i({type:"INPUT_VALUE.SET",value:C,src:k})},clearValue(C){C!=null?i({type:"ITEM.CLEAR",value:C}):i({type:"VALUE.CLEAR"})},focus(){St(l)?.focus()},setOpen(C,k="script"){n.hasTag("open")!==C&&i({type:C?"OPEN":"CLOSE",src:k})},getRootProps(){return t.element({...we.root.attrs,dir:r("dir"),id:gu(l),"data-invalid":$(f),"data-readonly":$(v)})},getLabelProps(){return t.label({...we.label.attrs,dir:r("dir"),htmlFor:ir(l),id:Rn(l),"data-readonly":$(v),"data-disabled":$(d),"data-invalid":$(f),"data-required":$(m),"data-focus":$(y),onClick(C){T||(C.preventDefault(),oo(l)?.focus({preventScroll:!0}))}})},getControlProps(){return t.element({...we.control.attrs,dir:r("dir"),id:Wl(l),"data-state":b?"open":"closed","data-focus":$(y),"data-disabled":$(d),"data-invalid":$(f)})},getPositionerProps(){return t.element({...we.positioner.attrs,dir:r("dir"),id:zl(l),style:A.floating})},getInputProps(){return t.input({...we.input.attrs,dir:r("dir"),"aria-invalid":nt(f),"data-invalid":$(f),"data-autofocus":$(r("autoFocus")),name:r("name"),form:r("form"),disabled:d,required:r("required"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"none",spellCheck:"false",readOnly:v,placeholder:r("placeholder"),id:ir(l),type:"text",role:"combobox",defaultValue:o.get("inputValue"),"aria-autocomplete":a("autoComplete")?"both":"list","aria-controls":lr(l),"aria-expanded":b,"data-state":b?"open":"closed","aria-activedescendant":w?jl(l,w):void 0,onClick(C){C.defaultPrevented||r("openOnClick")&&g&&i({type:"INPUT.CLICK",src:"input-click"})},onFocus(){d||i({type:"INPUT.FOCUS"})},onBlur(){d||i({type:"INPUT.BLUR"})},onChange(C){i({type:"INPUT.CHANGE",value:C.currentTarget.value,src:"input-change"})},onKeyDown(C){if(C.defaultPrevented||!g||C.ctrlKey||C.shiftKey||ga(C))return;let k=r("openOnKeyPress"),D=C.ctrlKey||C.metaKey||C.shiftKey,N=!0,R={ArrowDown(L){!k&&!b||(i({type:L.altKey?"OPEN":"INPUT.ARROW_DOWN",keypress:N,src:"arrow-key"}),L.preventDefault())},ArrowUp(){!k&&!b||(i({type:C.altKey?"CLOSE":"INPUT.ARROW_UP",keypress:N,src:"arrow-key"}),C.preventDefault())},Home(L){D||(i({type:"INPUT.HOME",keypress:N}),b&&L.preventDefault())},End(L){D||(i({type:"INPUT.END",keypress:N}),b&&L.preventDefault())},Enter(L){i({type:"INPUT.ENTER",keypress:N,src:"item-select"});let W=w!=null,q=r("alwaysSubmitOnEnter"),B=a("isCustomValue")&&!r("allowCustomValue");if(b&&!q&&(W||B)&&L.preventDefault(),w==null)return;let ne=Rt(l,w);ea(ne)&&r("navigate")?.({value:w,node:ne,href:ne.href})},Escape(){i({type:"INPUT.ESCAPE",keypress:N,src:"escape-key"}),C.preventDefault()}},M=ni(C,{dir:r("dir")}),z=R[M];z?.(C)}})},getTriggerProps(C={}){return t.button({...we.trigger.attrs,dir:r("dir"),id:Gl(l),"aria-haspopup":T?"listbox":"dialog",type:"button",tabIndex:C.focusable?void 0:-1,"aria-label":p.triggerLabel,"aria-expanded":b,"data-state":b?"open":"closed","aria-controls":b?lr(l):void 0,disabled:d,"data-invalid":$(f),"data-focusable":$(C.focusable),"data-readonly":$(v),"data-disabled":$(d),onFocus(){C.focusable&&i({type:"INPUT.FOCUS",src:"trigger"})},onClick(k){k.defaultPrevented||g&&Ht(k)&&i({type:"TRIGGER.CLICK",src:"trigger-click"})},onPointerDown(k){g&&k.pointerType!=="touch"&&Ht(k)&&(k.preventDefault(),queueMicrotask(()=>{sr(l)}))},onKeyDown(k){if(k.defaultPrevented||T)return;let D={ArrowDown(){i({type:"INPUT.ARROW_DOWN",src:"arrow-key"})},ArrowUp(){i({type:"INPUT.ARROW_UP",src:"arrow-key"})}},N=ni(k,{dir:r("dir")}),R=D[N];R&&(R(k),k.preventDefault())}})},getContentProps(){return t.element({...we.content.attrs,dir:r("dir"),id:lr(l),role:T?"listbox":"dialog",tabIndex:-1,hidden:!b,"data-state":b?"open":"closed","data-placement":P,"data-side":O,"aria-labelledby":Rn(l),"aria-multiselectable":r("multiple")&&T?!0:void 0,"data-empty":$(u.size===0),onPointerDown(C){Ht(C)&&C.preventDefault()}})},getListProps(){return t.element({...we.list.attrs,role:T?void 0:"listbox","data-empty":$(u.size===0),"aria-labelledby":Rn(l),"aria-multiselectable":r("multiple")&&!T?!0:void 0})},getClearTriggerProps(){return t.button({...we.clearTrigger.attrs,dir:r("dir"),id:Ul(l),type:"button",tabIndex:-1,disabled:d,"data-invalid":$(f),"aria-label":p.clearTriggerLabel,"aria-controls":ir(l),hidden:!o.get("value").length,onPointerDown(C){Ht(C)&&C.preventDefault()},onClick(C){C.defaultPrevented||g&&i({type:"VALUE.CLEAR",src:"clear-trigger"})}})},getItemState:_,getItemProps(C){let k=_(C),D=k.value;return t.element({...we.item.attrs,dir:r("dir"),id:jl(l,D),role:"option",tabIndex:-1,"data-highlighted":$(k.highlighted),"data-state":k.selected?"checked":"unchecked","aria-selected":nt(k.selected),"aria-disabled":nt(k.disabled),"data-disabled":$(k.disabled),"data-value":k.value,onPointerMove(){k.disabled||k.highlighted||i({type:"ITEM.POINTER_MOVE",value:D})},onPointerLeave(){C.persistFocus||k.disabled||!c.previous()?.type.includes("POINTER")||i({type:"ITEM.POINTER_LEAVE",value:D})},onClick(N){fa(N)||ma(N)||Ar(N)||k.disabled||i({type:"ITEM.CLICK",src:"item-select",value:D})}})},getItemTextProps(C){let k=_(C);return t.element({...we.itemText.attrs,dir:r("dir"),"data-state":k.selected?"checked":"unchecked","data-disabled":$(k.disabled),"data-highlighted":$(k.highlighted)})},getItemIndicatorProps(C){let k=_(C);return t.element({"aria-hidden":!0,...we.itemIndicator.attrs,dir:r("dir"),"data-state":k.selected?"checked":"unchecked",hidden:!k.selected})},getItemGroupProps(C){let{id:k}=C;return t.element({...we.itemGroup.attrs,dir:r("dir"),id:hu(l,k),"aria-labelledby":$l(l,k),"data-empty":$(u.size===0),role:"group"})},getItemGroupLabelProps(C){let{htmlFor:k}=C;return t.element({...we.itemGroupLabel.attrs,dir:r("dir"),id:$l(l,k),role:"presentation"})}}}function i2(e){return!(e.metaKey||!Vt()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var l2=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function s2(e,t,o){let r=o?ge(o):null,n=Q(r),i=te(r),l=We(n);return e=e||l instanceof i.HTMLInputElement&&!l2.has(l?.type)||l instanceof i.HTMLTextAreaElement||l instanceof i.HTMLElement&&l.isContentEditable,!(e&&t==="keyboard"&&o instanceof i.KeyboardEvent&&!Reflect.has(a2,o.key))}var at=null,Zl=new Set,On=new Map,ro=!1,Xl=!1,Cu=!1,a2={Tab:!0,Escape:!0};function Mn(e,t){for(let o of Zl)o(e,t)}function An(e){ro=!0,i2(e)&&(at="keyboard",Mn("keyboard",e))}function He(e){at="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ro=!0,Mn("pointer",e))}function wu(e){ha(e)&&(ro=!0,at="virtual")}function Pu(e){let t=ge(e);t===te(t)||t===Q(t)||Cu||!e.isTrusted||(!ro&&!Xl&&(at="virtual",Mn("virtual",e)),ro=!1,Xl=!1)}function Eu(){Cu||(ro=!1,Xl=!0)}function c2(e){if(typeof window>"u"||On.get(te(e)))return;let t=te(e),o=Q(e),r=t.HTMLElement.prototype.focus;function n(){ro=!0,r.apply(this,arguments)}try{Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:n})}catch{}o.addEventListener("keydown",An,!0),o.addEventListener("keyup",An,!0),o.addEventListener("click",wu,!0),t.addEventListener("focus",Pu,!0),t.addEventListener("blur",Eu,!1),typeof t.PointerEvent<"u"?(o.addEventListener("pointerdown",He,!0),o.addEventListener("pointermove",He,!0),o.addEventListener("pointerup",He,!0)):(o.addEventListener("mousedown",He,!0),o.addEventListener("mousemove",He,!0),o.addEventListener("mouseup",He,!0)),t.addEventListener("beforeunload",()=>{p2(e)},{once:!0}),On.set(t,{focus:r})}var p2=(e,t)=>{let o=te(e),r=Q(e);t&&r.removeEventListener("DOMContentLoaded",t);let n=On.get(o);if(n){try{Object.defineProperty(o.HTMLElement.prototype,"focus",{configurable:!0,value:n.focus})}catch{}r.removeEventListener("keydown",An,!0),r.removeEventListener("keyup",An,!0),r.removeEventListener("click",wu,!0),o.removeEventListener("focus",Pu,!0),o.removeEventListener("blur",Eu,!1),typeof o.PointerEvent<"u"?(r.removeEventListener("pointerdown",He,!0),r.removeEventListener("pointermove",He,!0),r.removeEventListener("pointerup",He,!0)):(r.removeEventListener("mousedown",He,!0),r.removeEventListener("mousemove",He,!0),r.removeEventListener("mouseup",He,!0)),On.delete(o)}};function Tu(){return at}function Iu(e){at=e,Mn(e,null)}function yu(){return at==="keyboard"||at==="virtual"}function Nu(e={}){let{isTextInput:t,autoFocus:o,onChange:r,root:n}=e;c2(n),r?.({isFocusVisible:o||yu(),modality:at});let i=(l,a)=>{s2(!!t,l,a)&&r?.({isFocusVisible:yu(),modality:l})};return Zl.add(i),()=>{Zl.delete(i)}}var Ln="__live-region__",Jl="__live-region-debug__",u2="position:fixed;inset-inline:0;bottom:0;z-index:2147483647;padding:12px 16px;background:black;color:white;font-size:14px;line-height:20px;text-align:center;pointer-events:none;";function ku(e={}){let{level:t="polite",document:o=document,root:r,delay:n=0,debug:i=!1}=e,l=o.defaultView??window,a=r??o.body;function c(){if(!i)return;let d=o.getElementById(Jl);return d||(d=o.createElement("div"),d.id=Jl,d.dataset.liveAnnouncerDebug="true",d.setAttribute("aria-hidden","true"),d.style.cssText=u2,a.appendChild(d),d)}function p(d,g){o.getElementById(Ln)?.remove(),g=g??n;let m=o.createElement("span");m.id=Ln,m.dataset.liveAnnouncer="true";let v=t!=="assertive"?"status":"alert";m.setAttribute("aria-live",t),m.setAttribute("role",v),Object.assign(m.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}),a.appendChild(m),l.setTimeout(()=>{if(!m.isConnected)return;m.textContent=d;let b=c();b&&(b.textContent=d)},g)}function u(){o.getElementById(Ln)?.remove(),o.getElementById(Jl)?.remove()}return{announce:p,destroy:u,toJSON(){return Ln}}}var{guards:d2,createMachine:m2,choose:f2}=Jc(),{and:ke,not:no}=d2,Ql=m2({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],defaultInputValue:"",closeOnSelect:!e.multiple,allowCustomValue:!1,alwaysSubmitOnEnter:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){Ea(t)},collection:_l.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open.suggesting":"closed.idle"},context({prop:e,bindable:t,getContext:o,getEvent:r}){let n=e("value")??e("defaultValue")??[],i=e("collection").findMany(n);return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:ho,hash(l){return l.join(",")},onChange(l){let a=o(),c=e("collection"),p=a.get("selectedItemMap"),u=nr({values:l,collection:c,selectedItemMap:p}),d=e("value")??l,g=d===l?u:nr({values:d,collection:c,selectedItemMap:u.nextSelectedItemMap});a.set("selectedItemMap",g.nextSelectedItemMap),e("onValueChange")?.({value:l,items:u.selectedItems})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(l){let a=e("collection").find(l);e("onHighlightChange")?.({highlightedValue:l,highlightedItem:a})}})),inputValue:t(()=>{let l=e("inputValue")||e("defaultInputValue"),a=e("value")||e("defaultValue");if(!l.trim()&&!e("multiple")){let c=e("collection").stringifyMany(a);l=Ze(e("selectionBehavior"),{preserve:l||c,replace:c,clear:""})}return{defaultValue:l,value:e("inputValue"),onChange(c){let p=r(),u=(p.previousEvent||p).src;e("onInputValueChange")?.({inputValue:c,reason:u})}}}),highlightedItem:t(()=>{let l=e("highlightedValue");return{defaultValue:e("collection").find(l)}}),selectedItemMap:t(()=>({defaultValue:Vl({selectedItems:i,collection:e("collection")})}))}},computed:{isInputValueEmpty:({context:e})=>e.get("inputValue").length===0,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>e("inputBehavior")==="autocomplete",autoHighlight:({prop:e})=>e("inputBehavior")==="autohighlight",hasSelectedItems:({context:e})=>e.get("value").length>0,selectedItems:({context:e,prop:t})=>kn({values:e.get("value"),collection:t("collection"),selectedItemMap:e.get("selectedItemMap")}),valueAsString:({computed:e,prop:t})=>t("collection").stringifyItems(e("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:o,action:r,send:n}){o([()=>e.hash("value")],()=>{r(["syncSelectedItems"])}),o([()=>e.get("inputValue")],()=>{r(["syncInputValue"])}),o([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem","autofillInputValue","announceHighlightedItem"])}),o([()=>t("open")],()=>{r(["toggleVisibility"])}),o([()=>t("collection").toString()],()=>{n({type:"CHILDREN_CHANGE"})})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:f2([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{closed:{tags:["closed"],initial:"idle",states:{idle:{tags:["idle"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"open.interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open.interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"open.suggesting"},{target:"open.interacting"}],"INPUT.CHANGE":[{guard:ke("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"open.suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:ke("isCustomValue",no("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:ke("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"open.interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:ke("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"open.interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open.interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}}}},open:{tags:["open","focused"],entry:["setInitialFocus"],effects:["trackFocusVisible","scrollToHighlightedItem","trackDismissableLayer","trackPlacement","trackLiveRegion"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"closed.focused",actions:["setFinalFocus"]},{target:"closed.idle"}],"INPUT.ENTER":[{guard:ke("isOpenControlled","isCustomValue",no("hasHighlightedItem"),no("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:ke("isCustomValue",no("hasHighlightedItem"),no("allowCustomValue")),target:"closed.focused",actions:["revertInputValue","invokeOnClose"]},{guard:ke("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"closed.focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"ITEM.CLICK":[{guard:ke("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"closed.focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:ke("isOpenControlled","isCustomValue",no("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:ke("isCustomValue",no("allowCustomValue")),target:"closed.idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"closed.focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]},initial:"interacting",states:{interacting:{on:{CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:ke("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:ke("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.ESCAPE":[{guard:ke("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"closed.focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.focused",actions:["invokeOnClose","setFinalFocus"]}]}},suggesting:{on:{CHILDREN_CHANGE:[{guard:ke("isHighlightedItemRemoved","hasCollectionItems","autoHighlight"),actions:["clearHighlightedValue","highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{guard:"autoHighlight",actions:["highlightFirstItem"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]}}}}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>e("open")!=null,openOnChange:({prop:e,context:t})=>{let o=e("openOnChange");return vc(o)?o:!!o?.({inputValue:t.get("inputValue")})},restoreFocus:({event:e})=>{let t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null?!0:!!t},isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue")),hasCollectionItems:({prop:e})=>e("collection").size>0},effects:{trackFocusVisible({scope:e}){return Nu({root:e.getRootNode?.()})},trackDismissableLayer({send:e,prop:t,scope:o}){return t("disableLayer")?void 0:wo(()=>kt(o),{type:"listbox",defer:!0,exclude:()=>[St(o),oo(o),xu(o)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(n){n.preventDefault(),n.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},trackLiveRegion({refs:e,scope:t}){let o=ku({level:"assertive",document:t.getDoc()});return e.set("liveRegion",o),()=>o.destroy()},trackPlacement({context:e,prop:t,scope:o}){let r=()=>ql(o)||oo(o),n=()=>Kl(o);return e.set("currentPlacement",t("positioning").placement),Xt(r,n,{...t("positioning"),defer:!0,onComplete(i){e.set("currentPlacement",i.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:o}){let r=St(o),n=[],i=c=>{if(Tu()==="pointer")return;let u=e.get("highlightedValue");if(!u)return;let d=kt(o),g=t("scrollToIndexFn");if(g){let v=t("collection").indexOf(u);g({index:v,immediate:c,getElement:()=>Rt(o,u)});return}let f=Rt(o,u),m=K(()=>{si(f,{rootEl:d,block:"nearest"})});n.push(m)},l=K(()=>{Iu("virtual"),i(!0)});n.push(l);let a=Pa(r,{attributes:["aria-activedescendant"],callback:()=>i(!1)});return n.push(a),()=>{n.forEach(c=>c())}}},actions:{reposition({context:e,prop:t,scope:o,event:r}){Xt(()=>ql(o),()=>Kl(o),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(l){e.set("currentPlacement",l.placement)}})},setHighlightedValue({context:e,event:t}){t.value!=null&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){let{context:t,prop:o}=e,r=o("collection"),n=t.get("highlightedValue");if(!n||!r.has(n))return;let i=o("multiple")?mi(t.get("value"),n):[n];o("onSelect")?.({value:i,itemValue:n}),t.set("value",i);let l=Ze(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(i),clear:""});t.set("inputValue",l)},scrollToHighlightedItem({context:e,prop:t,scope:o}){po(()=>{let r=e.get("highlightedValue");if(r==null)return;let n=Rt(o,r),i=kt(o),l=t("scrollToIndexFn");if(l){let a=t("collection").indexOf(r);l({index:a,immediate:!0,getElement:()=>Rt(o,r)});return}si(n,{rootEl:i,block:"nearest"})})},selectItem(e){let{context:t,event:o,flush:r,prop:n}=e;o.value!=null&&r(()=>{let i=n("multiple")?mi(t.get("value"),o.value):[o.value];n("onSelect")?.({value:i,itemValue:o.value}),t.set("value",i);let l=Ze(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:n("collection").stringifyMany(i),clear:""});t.set("inputValue",l)})},clearItem(e){let{context:t,event:o,flush:r,prop:n}=e;o.value!=null&&r(()=>{let i=di(t.get("value"),o.value);t.set("value",i);let l=Ze(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:n("collection").stringifyMany(i),clear:""});t.set("inputValue",l)})},setInitialFocus({scope:e}){K(()=>{sr(e)})},setFinalFocus({scope:e}){K(()=>{oo(e)?.dataset.focusable==null?sr(e):bu(e)})},syncInputValue({context:e,scope:t,event:o}){let r=St(t);r&&(r.value=e.get("inputValue"),queueMicrotask(()=>{o.current().type!=="INPUT.CHANGE"&&kr(r)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:o}){let r=t("selectionBehavior"),n=Ze(r,{replace:o("hasSelectedItems")?o("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",n)},setValue(e){let{context:t,flush:o,event:r,prop:n}=e;o(()=>{t.set("value",r.value);let i=Ze(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:n("collection").stringifyMany(r.value),clear:""});t.set("inputValue",i)})},clearSelectedItems(e){let{context:t,flush:o,prop:r}=e;o(()=>{t.set("value",[]);let n=Ze(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",n)})},scrollContentToTop({prop:e,scope:t}){let o=e("scrollToIndexFn");if(o){let r=e("collection").firstValue;o({index:0,immediate:!0,getElement:()=>Rt(t,r)})}else{let r=kt(t);if(!r)return;r.scrollTop=0}},invokeOnOpen({prop:e,event:t,context:o}){let r=Su(t);e("onOpenChange")?.({open:!0,reason:r,value:o.get("value")})},invokeOnClose({prop:e,event:t,context:o}){let r=Su(t);e("onOpenChange")?.({open:!1,reason:r,value:o.get("value")})},highlightFirstItem({context:e,prop:t,scope:o}){(kt(o)?queueMicrotask:K)(()=>{let n=t("collection").firstValue;n&&e.set("highlightedValue",n)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:o}){(kt(o)?queueMicrotask:K)(()=>{let n=t("collection").lastValue;n&&e.set("highlightedValue",n)})},highlightNextItem({context:e,prop:t}){let o=null,r=e.get("highlightedValue"),n=t("collection");r?(o=n.getNextValue(r),!o&&t("loopFocus")&&(o=n.firstValue)):o=n.firstValue,o&&e.set("highlightedValue",o)},highlightPrevItem({context:e,prop:t}){let o=null,r=e.get("highlightedValue"),n=t("collection");r?(o=n.getPreviousValue(r),!o&&t("loopFocus")&&(o=n.lastValue)):o=n.lastValue,o&&e.set("highlightedValue",o)},highlightFirstSelectedItem({context:e,prop:t}){K(()=>{let[o]=t("collection").sort(e.get("value"));o&&e.set("highlightedValue",o)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:o}){K(()=>{let r=null;o("hasSelectedItems")?r=t("collection").sort(e.get("value"))[0]:r=t("collection").firstValue,r&&e.set("highlightedValue",r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:o}){K(()=>{let r=t("collection"),n=null;o("hasSelectedItems")?n=r.sort(e.get("value"))[0]:n=r.lastValue,n&&e.set("highlightedValue",n)})},autofillInputValue({context:e,computed:t,prop:o,event:r,scope:n}){let i=St(n),l=o("collection");if(!t("autoComplete")||!i||!r.keypress)return;let a=l.stringify(e.get("highlightedValue"));K(()=>{i.value=a||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{let{context:t,prop:o}=e,r=o("collection"),n=t.get("value"),i=t.get("selectedItemMap"),l=nr({values:n,collection:r,selectedItemMap:i});t.set("selectedItemMap",l.nextSelectedItemMap);let a=Ze(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(n),clear:""});t.set("inputValue",a)})},syncHighlightedItem({context:e,prop:t}){let o=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",o)},announceHighlightedItem({context:e,prop:t,refs:o}){if(!ri())return;let r=e.get("highlightedValue"),n=r?t("collection").stringifyItem(t("collection").find(r)):null;if(!n)return;let i=r?e.get("value").includes(r):!1;o.get("liveRegion")?.announce(i?`${n}, selected`:n)},toggleVisibility({event:e,send:t,prop:o}){t({type:o("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function Su(e){return(e.previousEvent||e).src}var Ru=Sn.extendWith("empty");var[Dn,X]=re({name:"ComboboxContext",hookName:"useComboboxContext",providerName:"<ComboboxProvider />"});var es=E((e,t)=>{let o=I(X().getClearTriggerProps(),e);return s(S.button,{...o,ref:t})});es.displayName="ComboboxClearTrigger";var ts=E((e,t)=>{let o=X(),r=ve(),n=I(o.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:s(S.div,{...n,ref:Te(r.ref,t)})});ts.displayName="ComboboxContent";var h2=Ru.build(),os=E((e,t)=>X().collection.size!==0?null:s(S.div,{...h2.empty.attrs,...e,role:"presentation",ref:t}));os.displayName="ComboboxEmpty";var Ou=e=>e.children(X());var rs=E((e,t)=>{let o=I(X().getControlProps(),e);return s(S.div,{...o,ref:t})});rs.displayName="ComboboxControl";var ns=E((e,t)=>{let o=I(X().getInputProps(),e),r=se();return s(S.input,{"aria-describedby":r?.ariaDescribedby,...o,ref:t})});ns.displayName="ComboboxInput";var[Au,Mu]=re({name:"ComboboxItemContext",hookName:"useComboboxItemContext",providerName:"<ComboboxItemProvider />"});var[Lu,Fn]=re({name:"ComboboxItemPropsContext",hookName:"useComboboxItemPropsContext",providerName:"<ComboboxItemPropsProvider />"});var x2=le(),is=E((e,t)=>{let[o,r]=x2(e,["item","persistFocus"]),n=X(),i=I(n.getItemProps(o),r);return s(Lu,{value:o,children:s(Au,{value:n.getItemState(o),children:s(S.div,{...i,ref:t})})})});is.displayName="ComboboxItem";var Du=e=>e.children(Mu());var[Fu,Bu]=re({name:"ComboboxItemGroupPropsContext",hookName:"useComboboxItemGroupPropsContext",providerName:"<ComboboxItemGroupPropsProvider />"});var b2=le(),ls=E((e,t)=>{let o=me(),[r,n]=b2(e,["id"]),i={id:o,...r},l=I(X().getItemGroupProps(i),n);return s(Fu,{value:i,children:s(S.div,{...l,ref:t})})});ls.displayName="ComboboxItemGroup";var ss=E((e,t)=>{let o=X(),r=Bu(),n=I(o.getItemGroupLabelProps({htmlFor:r.id}),e);return s(S.div,{...n,ref:t})});ss.displayName="ComboboxItemGroupLabel";var as=E((e,t)=>{let o=X(),r=Fn(),n=I(o.getItemIndicatorProps(r),e);return s(S.div,{...n,ref:t})});as.displayName="ComboboxItemIndicator";var cs=E((e,t)=>{let o=X(),r=Fn(),n=I(o.getItemTextProps(r),e);return s(S.span,{...n,ref:t})});cs.displayName="ComboboxItemText";var ps=E((e,t)=>{let o=I(X().getLabelProps(),e);return s(S.label,{...o,ref:t})});ps.displayName="ComboboxLabel";var us=E((e,t)=>{let o=I(X().getListProps(),e);return s(S.div,{...o,ref:t})});us.displayName="ComboboxList";var ds=E((e,t)=>{let o=X(),r=ve(),n=I(o.getPositionerProps(),e);return r.unmounted?null:s(S.div,{...n,ref:t})});ds.displayName="ComboboxPositioner";var Vu=e=>{let t=me(),{dir:o}=Po(),{getRootNode:r}=Je(),n=se(),i={id:t,ids:{label:n?.ids.label,input:n?.ids.control},disabled:n?.disabled,readOnly:n?.readOnly,required:n?.required,invalid:n?.invalid,dir:o,getRootNode:r,...e},l=yt(Ql,i);return Yl(l,Ct)};var v2=(e,t)=>{let[o,r]=Ve(e),[n,i]=le()(r,["allowCustomValue","alwaysSubmitOnEnter","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","disabled","disableLayer","form","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value"]),l=Vu(n),a=Ie(I({present:l.open},o)),c=I(l.getRootProps(),i);return s(Dn,{value:l,children:s(Be,{value:a,children:s(S.div,{...c,ref:t})})})},Hu=E(v2);var y2=(e,t)=>{let[o,r]=Ve(e),[{value:n},i]=le()(r,["value"]),l=Ie(I({present:n.open},o)),a=I(n.getRootProps(),i);return s(Dn,{value:n,children:s(Be,{value:l,children:s(S.div,{...a,ref:t})})})},_u=E(y2);var C2=le(),ms=E((e,t)=>{let[o,r]=C2(e,["focusable"]),n=I(X().getTriggerProps(o),r);return s(S.button,{...n,ref:t})});ms.displayName="ComboboxTrigger";var Me=wt({ClearTrigger:()=>es,Content:()=>ts,Context:()=>Ou,Control:()=>rs,Empty:()=>os,Input:()=>ns,Item:()=>is,ItemContext:()=>Du,ItemGroup:()=>ls,ItemGroupLabel:()=>ss,ItemIndicator:()=>as,ItemText:()=>cs,Label:()=>ps,List:()=>us,Positioner:()=>ds,Root:()=>Hu,RootProvider:()=>_u,Trigger:()=>ms});var Bn=E(({className:e,error:t,hideNumberSteppers:o,...r},n)=>s(Ae.Input,{ref:n,"aria-invalid":t||void 0,"data-error":t?"true":void 0,className:x("polli-input polli:px-3 polli:py-2 polli:border polli:rounded-lg","polli:font-body polli:text-base polli:font-normal polli:leading-6 polli:text-theme-text-strong","polli:transition-colors","polli:disabled:opacity-50 polli:disabled:cursor-not-allowed",o&&"polli-input-number-clean",e),...r}));function Wu({label:e,value:t,highlighted:o=!1,className:r,...n}){return h("button",{type:"button","data-highlighted":o?"":void 0,className:x("polli-control polli:flex polli:h-7 polli:max-w-full polli:shrink-0 polli:items-center polli:gap-1 polli:rounded polli:px-1.5 polli:text-xs polli:transition-colors polli:hover:bg-theme-bg-hover polli:data-[highlighted]:bg-theme-bg-active",r),...n,children:[h("span",{className:"polli:text-theme-text-muted",children:[e,":"]}),s("span",{className:"polli:truncate polli:text-theme-text-base",children:t}),s(fe,{className:"polli:h-3 polli:w-3 polli:text-theme-text-muted"})]})}function zu({value:e,options:t,onChange:o,emptyMessage:r="No options match.",align:n="start",open:i,onOpenChange:l,closeOnSelect:a,startContent:c,contentClassName:p,className:u,disabled:d,name:g,placeholder:f,required:m,...v}){let b=ce(()=>{let O=e.trim().toLowerCase();return O===""?t:t.filter(A=>A.toLowerCase().includes(O))},[t,e]),y=ce(()=>Hl({items:b,itemToString:O=>O,itemToValue:O=>O}),[b]),T=t.length>0,w=!!c,P=G(null);return Z(()=>{P.current&&P.current.value!==e&&(P.current.value=e)}),h(Me.Root,{collection:y,inputValue:e,value:[],allowCustomValue:!0,openOnClick:T,openOnChange:()=>T,open:i,closeOnSelect:a,disabled:d,name:g,required:m,positioning:{placement:n==="end"?"bottom-end":"bottom-start",sameWidth:!0,strategy:"fixed"},onInputValueChange:O=>o(O.inputValue),onOpenChange:O=>l?.(O.open),children:[h(Me.Control,{className:x("polli:relative polli:w-full",w&&"polli-input-shell polli:flex polli:min-h-10 polli:flex-wrap polli:items-center polli:gap-2 polli:border polli:rounded-lg polli:px-2 polli:py-1"),children:[c,s(Me.Input,{asChild:!0,children:s(Bn,{ref:P,...v,name:g,placeholder:f,className:x(w?"polli:min-w-28 polli:flex-1 polli:px-1 polli:py-1":"polli:w-full polli:pr-10",u)})}),T&&!w&&s(Me.Trigger,{"aria-label":"Show options",className:"polli-control polli:absolute polli:right-0 polli:top-0 polli:flex polli:h-full polli:w-10 polli:cursor-pointer polli:items-center polli:justify-center polli:rounded-r-lg polli:text-theme-text-muted polli:hover:text-theme-text-strong",children:s(Me.Context,{children:O=>s(fe,{expanded:O.open,className:"polli:h-4 polli:w-4 polli:transition-transform"})})})]}),s(Me.Positioner,{children:s(Me.Content,{className:x("polli:z-[120] polli:overflow-hidden polli:rounded-lg polli:bg-surface-menu polli:p-1 polli:shadow-lg polli:focus:outline-none",p),children:s($e,{className:"polli:max-h-64",children:h(Me.List,{className:"polli:flex polli:flex-col",children:[b.map(O=>s(Me.Item,{item:O,className:x("polli-control polli:flex polli:w-full polli:cursor-pointer polli:items-center polli:rounded-lg polli:bg-transparent polli:px-3 polli:py-2 polli:text-left polli:text-sm polli:font-medium polli:text-theme-text-base polli:transition-colors polli:hover:bg-theme-bg-hover polli:data-[highlighted]:bg-theme-bg-hover",e===O&&"polli:bg-theme-bg-active polli:text-theme-text-strong"),children:s(Me.ItemText,{className:"polli:truncate polli:font-mono",children:O})},O)),b.length===0&&s(Me.Empty,{className:"polli:m-0 polli:px-2 polli:py-2 polli:text-sm polli:text-theme-text-soft",children:r})]})})})})]})}function Gu({children:e}){return s("p",{className:"polli:rounded-card polli:border polli:border-dashed polli:border-theme-border polli:px-5 polli:py-8 polli:text-center polli:font-body polli:text-sm polli:text-theme-text-muted",children:e})}function So(e,t=globalThis.location?.origin){if(typeof e!="string"||!/^(https?:)?\/\//i.test(e))return!1;if(!t)return!0;try{return new URL(e,t).origin!==t}catch{return!1}}function Uu(e){let{size:t="md",appearance:o,external:r="href"in e?So(e.href):!0,showIcon:n=!0,icon:i,className:l,children:a}=e,c=h(Y,{children:[i,s("span",{children:a}),r&&n?s(st,{className:"polli:h-4 polli:w-4 polli:shrink-0 polli:opacity-60","aria-hidden":"true"}):null]});if("href"in e){let{href:T,target:w=r?"_blank":void 0,rel:P=w==="_blank"?"noopener noreferrer":void 0,size:O,appearance:A,external:_,showIcon:C,icon:k,className:D,children:N,...R}=e;return s(et,{as:"a",href:T,target:w,rel:P,size:t,appearance:o,className:x("polli:gap-2",l),...R,children:c})}let{type:p="button",size:u,appearance:d,external:g,showIcon:f,icon:m,className:v,children:b,...y}=e;return s(et,{as:"button",type:p,size:t,appearance:o,className:x("polli:gap-2",l),...y,children:c})}var w2={stacked:"polli:flex polli:flex-col polli:gap-2",inline:"polli:grid polli:grid-cols-[6.5rem_minmax(0,1fr)] polli:items-center polli:gap-x-4 polli:gap-y-2 polli:max-sm:grid-cols-[5.5rem_minmax(0,1fr)] polli:max-sm:gap-x-2 polli:[&>*:not(:first-child)]:col-start-2 polli:[&>*:not(:first-child)]:min-w-0"};function $u({label:e,children:t,helper:o,action:r,error:n,alignLabelRow:i=!1,orientation:l="stacked",className:a,labelClassName:c,helperClassName:p,errorClassName:u}){return h(Ae.Root,{className:x(w2[l],"polli:font-body",a),invalid:!!n,children:[(e||r)&&h("div",{className:x("polli:flex polli:items-center polli:justify-between polli:gap-2",i&&"polli:min-h-8"),children:[e&&s(Ae.Label,{className:x("polli:text-sm polli:font-semibold polli:leading-5 polli:text-theme-text-strong",c),children:e}),r]}),t,n?s(Ae.ErrorText,{className:x("polli:text-xs polli:font-medium polli:leading-5 polli:text-intent-danger-text",u),children:n}):o?s(Ae.HelperText,{className:x("polli:text-xs polli:font-normal polli:leading-normal polli:text-theme-text-muted",p),children:o}):null]})}var fs=new WeakMap;function ju(e){let t=fs.get(e);if(!t){let r=n=>{n.dataTransfer?.types?.includes("Files")&&n.preventDefault()};t={consumers:0,preventFileNavigation:r},fs.set(e,t),e.addEventListener("dragover",r),e.addEventListener("drop",r)}t.consumers+=1;let o=!1;return()=>{o||(o=!0,t.consumers-=1,!(t.consumers>0)&&(e.removeEventListener("dragover",t.preventFileNavigation),e.removeEventListener("drop",t.preventFileNavigation),fs.delete(e)))}}function P2(e,t){if(!t)return!0;let o=t.split(",").map(r=>r.trim()).filter(Boolean);return o.length===0?!0:o.some(r=>{if(r.startsWith("."))return e.name.toLowerCase().endsWith(r.toLowerCase());if(r.endsWith("/*")){let n=r.slice(0,r.length-1);return e.type.startsWith(n)}return e.type===r})}function Ku(e,t,{maxFiles:o,maxSizeBytes:r,accept:n}){let i=[],l=[],a=Math.max(0,o-t.length);for(let c of e)P2(c,n)?c.size>r?l.push({file:c,reason:"size"}):a<=0?l.push({file:c,reason:"count"}):(i.push(c),a-=1):l.push({file:c,reason:"type"});return{accepted:i,rejected:l}}var E2={danger:"polli:bg-intent-danger-bg-light polli:text-intent-danger-text",info:"polli:bg-intent-info-bg-light polli:text-intent-info-text"},T2={danger:"polli:hover:bg-intent-danger-bg-hover",info:"polli:hover:bg-intent-info-bg-hover"},I2={tile:"polli:bg-theme-bg-active polli:text-theme-text-soft",ghost:"polli:bg-transparent polli:text-theme-text-muted"},N2={tile:"polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",ghost:"polli:hover:bg-transparent polli:hover:text-theme-text-soft"},k2={sm:"polli:h-6 polli:w-6 polli:rounded",md:"polli:h-9 polli:w-9 polli:rounded-full"},ar=E(({intent:e,variant:t="tile",pressed:o,title:r,tooltip:n,tooltipAlign:i,tooltipClampToViewport:l,children:a,className:c,size:p="sm",disabled:u=!1,href:d,target:g,rel:f,...m},v)=>{let b={"aria-label":m["aria-label"]??r,"data-intent":e,className:x("polli-control polli:inline-flex polli:items-center polli:justify-center polli:transition-colors",u?"polli:cursor-not-allowed polli:opacity-50":"polli:cursor-pointer",k2[p],e?E2[e]:I2[t],!u&&(e?T2[e]:N2[t]),c)},y=d?s("a",{...m,...b,href:u?void 0:d,target:g,rel:f,...u&&{role:m.role??"link","aria-disabled":!0,tabIndex:-1,onClick:w=>{w.preventDefault(),w.stopPropagation()}},children:a}):s("button",{...m,...b,ref:v,type:"button",disabled:u,"aria-pressed":o,children:a}),T=n??r;return T?s(tt,{triggerAs:"span",content:T,align:i,clampToViewport:l,tapEnabled:!1,className:u?"polli:cursor-not-allowed":"polli:cursor-pointer",children:y}):y});ar.displayName="IconButton";var S2=new Set(["image/gif","image/jpeg","image/png","image/webp"]),ot=80;function qu(e){return S2.has(e.type)}function R2({icon:e}){return s("div",{className:x("polli:flex polli:items-center polli:justify-center polli:rounded-xl polli:bg-theme-bg-active polli:text-theme-text-soft","polli:h-20 polli:w-20"),children:e})}function O2({file:e,placeholderIcon:t}){let o=G(null),[r,n]=ee(()=>qu(e));return Z(()=>{if(!qu(e)){n(!1);return}let i=!1;n(!0);async function l(){try{let a=await createImageBitmap(e);if(i){a.close();return}let c=o.current,p=c?.getContext("2d");if(!c||!p){a.close(),n(!1);return}c.width=ot,c.height=ot;let u=Math.max(ot/a.width,ot/a.height),d=a.width*u,g=a.height*u,f=(ot-d)/2,m=(ot-g)/2;p.clearRect(0,0,ot,ot),p.drawImage(a,f,m,d,g),a.close()}catch{i||n(!1)}}return l(),()=>{i=!0}},[e]),r?s("canvas",{ref:o,role:"img","aria-label":e.name,className:"polli:h-20 polli:w-20 polli:rounded-xl",width:ot,height:ot}):s(R2,{icon:t})}function Yu({value:e,onChange:t,onReject:o,maxFiles:r=4,maxSizeBytes:n=10*1024*1024,accept:i="image/*",icon:l=s(dn,{className:"polli:h-6 polli:w-6"}),label:a=h(Y,{children:["Drag images here or ",s("span",{className:"polli:underline",children:"browse"})]}),previewIcon:c=s(dn,{className:"polli:h-5 polli:w-5"}),disabled:p=!1,className:u}){Z(()=>ju(document),[]);function d(v){if(p||v.length===0)return;let{accepted:b,rejected:y}=Ku(v,e,{maxFiles:r,maxSizeBytes:n,accept:i});b.length>0&&t([...e,...b]),y.length>0&&o?.(y)}let g=!p&&e.length<r,f=me();function m(v){d(Array.from(v.target.files??[])),v.target.value=""}return s("fieldset",{disabled:p,className:x("polli:m-0 polli:min-w-0 polli:border-0 polli:p-0",p&&"polli:opacity-50",u),onDragOver:v=>v.preventDefault(),onDrop:v=>{v.preventDefault(),d(Array.from(v.dataTransfer.files))},children:h("ul",{className:"polli:m-0 polli:flex polli:flex-wrap polli:gap-3 polli:p-0",children:[e.map((v,b)=>h("li",{title:v.name,className:"polli:relative polli:list-none",children:[s(O2,{file:v,placeholderIcon:c}),s("span",{className:"polli:sr-only",children:v.name}),!p&&s("div",{className:"polli:absolute polli:-top-2 polli:right-1",children:s(ar,{intent:"danger",title:`Remove ${v.name}`,onClick:()=>t(e.filter((y,T)=>T!==b)),children:s(to,{className:"polli:h-3 polli:w-3"})})})]},`${v.name}-${b}`)),(g||e.length===0)&&s("li",{className:"polli:list-none",children:h("label",{htmlFor:f,className:x("polli-control polli:flex polli:h-20 polli:w-20 polli:flex-col polli:items-center polli:justify-center polli:gap-2 polli:rounded-xl polli:border polli:border-dashed polli:border-theme-border polli:bg-theme-bg-pale polli:p-2 polli:text-center polli:text-xs polli:text-theme-text-soft polli:transition-colors",g?"polli:cursor-pointer polli:hover:bg-theme-bg-hover":"polli:cursor-not-allowed"),children:[e.length?s(Xi,{className:"polli:h-6 polli:w-6"}):l,s("span",{children:e.length?"Add files":a}),s("input",{id:f,type:"file",accept:i,multiple:r>1,disabled:!g,className:"polli:sr-only",onChange:m})]})})]})})}var Zu=({text:e,content:t,label:o="More info",tapEnabled:r})=>s(tt,{content:t??e,ariaLabel:o,className:"polli:ml-1",displayContents:!0,tapEnabled:r,children:s("span",{className:"polli:inline-flex polli:h-4 polli:w-4 polli:items-center polli:justify-center polli:rounded-full polli:bg-surface-menu polli:font-bold polli:text-[10px] polli:leading-none polli:text-theme-text-muted polli:transition-colors polli:hover:text-theme-text-strong",children:"i"})});var A2={icon:"polli:h-5 polli:w-5 polli:p-0 polli:text-xs",sm:"polli:h-5 polli:px-2 polli:text-xs",md:"polli:h-6 polli:px-2.5 polli:text-sm",lg:"polli:h-7 polli:px-3 polli:text-sm"},M2={news:"polli:bg-intent-news-bg-light polli:text-intent-news-text",new:"polli:bg-intent-new-bg-light polli:text-intent-new-text",free:"polli:bg-intent-free-bg-light polli:text-intent-free-text",alpha:"polli:bg-intent-alpha-bg-light polli:text-intent-alpha-text",neutral:"polli:bg-ink-100/80 polli:text-ink-900",success:"polli:bg-intent-success-bg-bright/15 polli:text-intent-success-text",warning:"polli:bg-intent-warning-bg-light polli:text-intent-warning-text",info:"polli:bg-intent-info-bg-light polli:text-intent-info-text",danger:"polli:bg-intent-danger-bg-light polli:text-intent-danger-text"},cr=({intent:e,size:t="md",className:o,children:r,...n})=>{let i=e?M2[e]:"polli:bg-theme-bg-active polli:text-theme-text-strong";return s("span",{...n,className:x("polli:inline-flex polli:shrink-0 polli:items-center polli:justify-center polli:gap-1 polli:rounded-lg polli:font-medium polli:leading-none",A2[t],i,o),children:r})};var Xu="polli:gap-1.5 polli:font-mono polli:font-normal polli:[&>svg]:size-3.5 polli:[&>svg]:shrink-0";function Ju({prefix:e,value:t,label:o="Copy key",className:r}){let n=`${e}\u2026`;return t?s(It,{value:t,tooltip:null,"aria-label":o,className:"polli:inline-flex polli:cursor-pointer polli:rounded-lg",children:i=>h(cr,{intent:i?"success":"neutral",className:x(Xu,"polli:transition-colors",r),children:[s(Tt,{copied:i,"aria-hidden":"true"}),i?"Copied":n]})}):s(cr,{intent:"neutral",className:x(Xu,r),children:n})}function Qu({as:e,external:t,showIcon:o=!0,tint:r,className:n,surfaceClassName:i,children:l,...a}){let c=e||"a",p=t??So(a.href),u=a.style;return h(Et,{as:c,variant:"card",target:p?"_blank":void 0,rel:p?"noopener noreferrer":void 0,...a,...r&&{style:{...u,"--polli-card-tint":r}},className:x("polli:group polli:relative polli:flex polli:h-full polli:flex-col polli:gap-2 polli:bg-surface-opaque/80 polli:p-5 polli:outline-none",o&&p&&"polli:pr-10","polli:transition-colors polli:hover:bg-surface-opaque/95",r&&"polli:bg-(--polli-card-tint) polli:hover:bg-[color-mix(in_oklab,var(--polli-card-tint),var(--polli-color-surface-opaque)_50%)]","polli-link-surface",n,i),children:[o&&p&&s(st,{"aria-hidden":"true",className:"polli:absolute polli:top-4 polli:right-4 polli:h-3.5 polli:w-3.5 polli:text-theme-text-soft polli:transition-transform polli:duration-150 polli:group-hover:translate-x-0.5 polli:group-hover:-translate-y-0.5 polli:group-focus-visible:translate-x-0.5 polli:group-focus-visible:-translate-y-0.5 polli:motion-reduce:transition-none polli:motion-reduce:group-hover:translate-0 polli:motion-reduce:group-focus-visible:translate-0"}),l]})}var ed=({icon:e,label:t,detail:o,busy:r=!1,tint:n,children:i,className:l,style:a,...c})=>h("div",{...c,"aria-busy":r||void 0,style:n?{...a,"--polli-placeholder-tint":n}:a,className:x("polli:flex polli:aspect-video polli:min-h-40 polli:flex-col polli:items-center polli:justify-center polli:gap-3 polli:rounded-lg polli:border polli:border-dashed polli:border-theme-border polli:bg-theme-bg-pale polli:p-6 polli:text-center",n&&"polli:rounded-card polli:border-transparent polli:bg-(--polli-placeholder-tint)",l),children:[e&&s("div",{className:x("polli:flex polli:h-10 polli:w-10 polli:items-center polli:justify-center polli:rounded-full polli:bg-theme-bg-active polli:text-theme-text-base",n&&"polli:h-14 polli:w-14 polli:bg-surface-opaque/70",r&&"polli:animate-pulse polli:motion-reduce:animate-none"),children:e}),(t||o)&&h("div",{className:"polli:max-w-sm",children:[t&&s(pe,{as:"p",size:"sm",tone:"strong",weight:"semibold",children:t}),o&&s(pe,{as:"p",size:"sm",tone:"soft",className:"polli:mt-1",children:o})]}),i]});var td="polli-control polli:inline-flex polli:min-h-8 polli:min-w-[140px] polli:items-center polli:gap-2 polli:rounded-full polli:px-3 polli:py-1.5 polli:text-xs polli:font-medium polli:transition-all polli:duration-200",od="polli-control polli:flex polli:w-full polli:items-center polli:gap-3 polli:px-3 polli:py-2 polli:text-left polli:text-xs polli:transition-colors",rd="polli:flex polli:h-4 polli:w-4 polli:flex-shrink-0 polli:items-center polli:justify-center polli:rounded polli:border polli:border-theme-border polli:text-xs",nd=({options:e,selected:t,onChange:o,placeholder:r,disabled:n,disabledText:i,disabledTooltip:l,align:a="start",label:c,ariaLabel:p,fullWidth:u=!1})=>{let d=t.length===0,g=b=>{t.includes(b)?o(t.filter(y=>y!==b)):o([...t,b])},f=()=>o([]),m=n?i:d?r:t.length===1?e.find(b=>b.value===t[0])?.label??"1 selected":`${t.length} selected`,v=c?s("span",{className:"polli:text-xs polli:font-medium polli:text-theme-text-soft",children:c}):null;return n?h("div",{className:x("polli:flex polli:items-center polli:gap-2",u&&"polli:w-full polli:min-w-0"),children:[v,s(tt,{triggerAs:"span",content:l||"No items available",align:"center",className:x("polli:inline-flex polli:cursor-not-allowed",u&&"polli:min-w-0 polli:flex-1"),children:h("button",{type:"button",disabled:!0,"aria-label":p||c||r,className:x(td,u&&"polli:w-full polli:min-w-0","polli:cursor-not-allowed polli:bg-theme-bg-active polli:opacity-50"),children:[s("span",{className:"polli:flex-1 polli:truncate polli:text-left polli:text-theme-text-strong",children:m}),s(fe,{expanded:!1,className:"polli:h-3 polli:w-3 polli:text-theme-text-soft"})]})})]}):h("div",{className:x("polli:flex polli:items-center polli:gap-2",u&&"polli:w-full polli:min-w-0"),children:[v,s(Pt,{align:a,className:"polli:w-[min(20rem,calc(100vw-2rem))]",trigger:b=>h("button",{type:"button","aria-label":p||c||r,className:x(td,u&&"polli:w-full polli:min-w-0",b?"polli:bg-theme-bg-hover":"polli:bg-theme-bg-active polli:hover:bg-theme-bg-hover"),children:[s("span",{className:x("polli:flex-1 polli:truncate polli:text-left",b?"polli:text-theme-text-strong":"polli:text-theme-text-base"),children:m}),s(fe,{expanded:b,className:x("polli:h-3 polli:w-3 polli:transition-transform",b?"polli:text-theme-text-strong":"polli:text-theme-text-soft")})]}),children:h($e,{className:"polli:max-h-64",children:[h("button",{type:"button",onClick:f,"aria-pressed":d,className:x(od,d?"polli:bg-theme-bg-active polli:font-medium polli:text-theme-text-strong":"polli:text-theme-text-base polli:hover:bg-theme-bg-subtle"),children:[s("span",{"aria-hidden":"true",className:x(rd,d&&"polli:bg-theme-bg-active polli:text-theme-text-strong"),children:d&&"\u2713"}),r]}),e.map(b=>{let y=t.includes(b.value);return h("button",{type:"button",onClick:()=>g(b.value),"aria-pressed":y,className:x(od,y?"polli:bg-theme-bg-active polli:text-theme-text-strong":"polli:text-theme-text-base polli:hover:bg-theme-bg-subtle"),children:[s("span",{"aria-hidden":"true",className:x(rd,y&&"polli:bg-theme-bg-active polli:text-theme-text-strong"),children:y&&"\u2713"}),s("span",{className:"polli:min-w-0 polli:[overflow-wrap:anywhere]",children:b.label})]},b.value)})]})})]})};var L2="polli-control polli:flex polli:items-center polli:gap-2 polli:rounded-full polli:px-3 polli:py-2 polli:text-left polli:text-sm polli:font-medium polli:whitespace-nowrap polli:transition-colors",D2="polli:bg-theme-bg-active polli:text-theme-text-strong",F2="polli:text-ink-800 polli:hover:bg-theme-bg-active/40";function id({as:e,active:t=!1,icon:o,className:r,children:n,...i}){return h(e||"button",{"aria-current":t?"page":void 0,className:x(L2,t?D2:F2,r),...i,children:[o?s(o,{className:"polli:h-4 polli:w-4 polli:shrink-0"}):null,n]})}function Ro({as:e,external:t,showIcon:o=!0,size:r="inherit",tone:n="accent",className:i,children:l,...a}){let c=e||"a",p=t??So(a.href);return h(c,{target:p&&e!=="button"?"_blank":void 0,rel:p&&e!=="button"?"noopener noreferrer":void 0,className:["polli-link",i].filter(Boolean).join(" "),"data-size":r,"data-tone":n,...a,children:[l,o&&p&&s(st,{"aria-hidden":"true",className:"polli-link-external-icon"})]})}var hs="Pollinations is having a temporary outage. Some services are down for now. Your account, keys and pollen are safe, and nothing is lost.";function B2(e){return window.addEventListener("online",e),window.addEventListener("offline",e),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",e)}}function xs(){return Lt(B2,()=>navigator.onLine,()=>!0)}var gs=new Set,Vn=new Set,V2=typeof window>"u"?Z:ut;function H2(e){return Vn.add(e),()=>Vn.delete(e)}function _2(){let e;for(let t of gs)(!e||e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)&&(e=t);return e}var ld=({retrying:e=!1,statusUrl:t,className:o})=>{let r=xs(),n=G(null);V2(()=>{let a=n.current;if(a){gs.add(a);for(let c of Vn)c();return()=>{gs.delete(a);for(let c of Vn)c()}}},[]);let i=Lt(H2,()=>!n.current||_2()===n.current,()=>!0),l;return i?r?l=`${hs}${e?" Retrying automatically.":""}`:l=`You\u2019re offline.${e?" This page retries when your connection is back.":""}`:l=r?"Unavailable during the outage.":"Unavailable while you\u2019re offline.",s("div",{ref:n,className:o,children:h(mn,{intent:"advisory",children:[l,i&&r&&t&&h(Y,{children:[" ",s(Ro,{href:t,children:"Status page"})]})]})})};function Oo(e=new Date){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))}function ct(e,t){let o=new Date(e);return o.setUTCDate(o.getUTCDate()+t),o}function W2(e){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1))}function z2(e,t){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+t,1))}function G2(e){let t=e.getUTCDay()||7;return ct(Oo(e),1-t)}function U2(e){let t=e.getUTCDay()||7,o=ct(Oo(e),4-t),r=o.getUTCFullYear(),n=new Date(Date.UTC(r,0,1)),i=Math.ceil(((o.getTime()-n.getTime())/864e5+1)/7);return`${r}-W${String(i).padStart(2,"0")}`}function sd(e){return e.toISOString().slice(0,10)}function $2(e){return e.toISOString().slice(0,13).replace("T"," ")}function j2(e){return e.toISOString().slice(0,7)}function pt(e,t=new Date){return e==="day"?{granularity:e,period:sd(Oo(t))}:e==="week"?{granularity:e,period:U2(t)}:{granularity:e,period:j2(W2(t))}}function ad(){return pt("day")}function Ot(e){if(e.granularity==="day"){let n=new Date(`${e.period}T00:00:00.000Z`);return{start:n,end:ct(n,1)}}if(e.granularity==="week"){let[n,i]=e.period.split("-W"),l=Number(n),a=Number(i),c=new Date(Date.UTC(l,0,4)),p=ct(G2(c),(a-1)*7);return{start:p,end:ct(p,7)}}let[t,o]=e.period.split("-"),r=new Date(Date.UTC(Number(t),Number(o)-1,1));return{start:r,end:z2(r,1)}}function cd(e){let{start:t,end:o}=Ot(e),r=[],n=new Date(t);if(e.granularity==="day"){for(;n<o;)r.push(`${$2(n)}:00:00`),n.setUTCHours(n.getUTCHours()+1);return r}for(;n<o;)r.push(sd(n)),n.setUTCDate(n.getUTCDate()+1);return r}function pd(e,t){return t==="day"?new Date(`${e.replace(" ","T")}.000Z`):new Date(`${e}T00:00:00.000Z`)}function pr(e,t=new Date(0),o=Oo()){let{start:r,end:n}=Ot(e);return n>t&&r<=o}var K2="polli-control polli:inline-flex polli:items-center polli:justify-center polli:rounded-full polli:font-medium polli:leading-normal polli:transition-colors polli:duration-200",q2={xs:"polli:px-2.5 polli:py-1 polli:text-xs",lg:"polli:px-5 polli:py-2 polli:text-lg",md:"polli:px-4 polli:py-1.5 polli:text-base",sm:"polli:px-3 polli:py-1.5 polli:text-sm"},bs={soft:{base:"",active:"polli:bg-theme-bg-active polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",mixed:"polli:bg-theme-bg-active/45 polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",inactive:"polli:bg-theme-bg-subtle polli:text-theme-text-base polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover"},ghost:{base:"polli:border polli:border-transparent",active:"polli:bg-theme-bg-active polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",mixed:"polli:bg-theme-bg-active/45 polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",inactive:"polli:bg-transparent polli:text-theme-text-base polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover"}},ud={amber:{active:"polli:bg-paid-pale polli:text-paid-deep",inactive:"polli:bg-transparent polli:text-theme-text-base polli:hover:bg-paid-pale/60"},green:{active:"polli:bg-tier-pale polli:text-tier-deep",inactive:"polli:bg-transparent polli:text-tier-deep polli:hover:bg-tier-pale/60"},brand:{active:"polli:bg-brand-accent polli:font-bold polli:text-brand-dark",inactive:"polli:bg-transparent polli:font-bold polli:text-theme-text-strong polli:hover:bg-brand-accent/60 polli:hover:text-brand-dark"}};function Hn({as:e,active:t,onClick:o,children:r,icon:n,size:i="md",variant:l="soft",intent:a,detail:c,ariaLabel:p,disabled:u=!1,className:d,...g}){let f=e||"button",m=f==="button",v=a==="neutral"?bs.soft:a?{...ud[a],mixed:ud[a].active}:bs[l];return h(f,{...g,...m?{type:"button",disabled:u}:{},...!m&&u?{"aria-disabled":!0,tabIndex:-1}:{},...f==="a"&&u?{href:void 0}:{},onClick:u?y=>{y.preventDefault(),y.stopPropagation()}:o,...p!==void 0?{"aria-label":p}:{},...m?{"aria-pressed":t}:{"aria-current":t===!0?"page":void 0},className:x(K2,bs[l].base,t==="mixed"?v.mixed:t?v.active:v.inactive,u&&"polli:pointer-events-none polli:cursor-not-allowed polli:opacity-50",q2[i],d),children:[n&&s("span",{"aria-hidden":"true",className:"polli:mr-1.5 polli:flex polli:size-4 polli:shrink-0 polli:[&>svg]:size-full",children:n}),r,c!=null&&s("span",{className:"polli:ml-1 polli:font-normal polli:opacity-70",children:c})]})}var Y2=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Z2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dd="polli-control polli:rounded-full polli:px-2 polli:py-1 polli:text-xs polli:font-semibold polli:text-theme-text-base polli:transition-colors polli:hover:bg-theme-bg-subtle";function Ao(e,t){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+t,1))}function X2(e){let t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1)),o=t.getUTCDay()||7,r=ct(t,1-o);return Array.from({length:42},(n,i)=>ct(r,i))}function md(e,t){return e.getTime()===t.getTime()}function vs(e){return Ot(e).start}function fd(e){return`${e.granularity}:${e.period}`}function xd(e,t="short"){return e.toLocaleDateString("en-US",{timeZone:"UTC",month:t,year:"numeric"})}function ys(e){return e.toLocaleDateString("en-US",{timeZone:"UTC",month:"short",day:"numeric",year:"numeric"})}function J2(e,t){let o=ct(t,-1);return e.getUTCFullYear()===o.getUTCFullYear()&&e.getUTCMonth()===o.getUTCMonth()?`${e.toLocaleDateString("en-US",{timeZone:"UTC",month:"short"})} ${e.getUTCDate()}-${o.getUTCDate()}, ${o.getUTCFullYear()}`:`${ys(e)} - ${ys(o)}`}function gd(e){let{start:t,end:o}=Ot(e);return e.granularity==="day"?ys(t):e.granularity==="week"?J2(t,o):xd(t,"long")}function hd(e,t){if(t==="month"){let r=new Date(Date.UTC(e.getUTCFullYear(),0,1));return{start:r,end:Ao(r,12)}}let o=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1));return{start:o,end:Ao(o,1)}}var bd=({value:e,onChange:t,minDate:o=new Date(0),maxDate:r,trigger:n,header:i})=>{let[l,a]=ee(!1),[c,p]=ee(()=>vs(e)),[u,d]=ee(()=>vs(e)),g=G(null),{granularity:f,period:m}=e;Z(()=>{let M=fd({granularity:f,period:m});if(g.current===M){g.current=null;return}let z=vs({granularity:f,period:m});d(z),p(z)},[f,m]);let v=ce(()=>X2(c),[c]),b=Ot(e),y=Oo(r),T=e.granularity==="month"?Ao(c,-12):Ao(c,-1),w=e.granularity==="month"?Ao(c,12):Ao(c,1),P=hd(T,e.granularity),O=hd(w,e.granularity),A=P.end<=o,_=O.start>y,C=gd(e),k=(M,z)=>{g.current=fd(M),d(z),p(z),t(M)},D=M=>{k(pt(M,u),u)},N=M=>{k(pt(e.granularity,M),M),a(!1)},R=e.granularity==="month"?String(c.getUTCFullYear()):xd(c,"long");return h("div",{className:n?"polli:contents":"polli:flex polli:w-full polli:flex-wrap polli:items-center polli:gap-2",children:[!n&&s("div",{className:"polli:flex polli:flex-wrap polli:gap-1.5",children:["day","week","month"].map(M=>s(Hn,{active:e.granularity===M,onClick:()=>D(M),children:M[0].toUpperCase()+M.slice(1)},M))}),h(Pt,{open:l,onOpenChange:a,className:"polli:w-[320px] polli:max-w-[calc(100vw-2rem)] polli:rounded-xl polli:border polli:border-divider polli:bg-surface-opaque polli:p-3.5 polli:shadow-lg",trigger:n??(M=>h("button",{type:"button","aria-label":`Select period, current ${C}`,className:x("polli-control polli:inline-flex polli:w-[320px] polli:max-w-full polli:items-center polli:justify-between polli:gap-2 polli:rounded-full polli:px-4 polli:py-1.5 polli:text-left polli:text-base polli:font-medium polli:leading-normal","polli:bg-theme-bg-active polli:text-theme-text-base","polli:transition-all polli:duration-200 polli:ease-out polli:hover:bg-theme-bg-hover",M&&"polli:bg-theme-bg-hover polli:text-theme-text-strong"),children:[s("span",{className:"polli:truncate",children:C}),s(fe,{expanded:M})]})),children:[i,h("div",{className:"polli:mb-3 polli:flex polli:items-center polli:justify-between",children:[s("button",{type:"button","aria-label":"Previous",disabled:A,onClick:()=>p(T),className:x(dd,A&&"polli:cursor-not-allowed polli:opacity-30 polli:hover:bg-transparent"),children:"<"}),s("div",{className:"polli:text-base polli:font-bold polli:text-theme-text-base",children:R}),s("button",{type:"button","aria-label":"Next",disabled:_,onClick:()=>p(w),className:x(dd,_&&"polli:cursor-not-allowed polli:opacity-30 polli:hover:bg-transparent"),children:">"})]}),e.granularity==="month"?s("div",{className:"polli:grid polli:grid-cols-3 polli:gap-1.5",children:Z2.map((M,z)=>{let L=new Date(Date.UTC(c.getUTCFullYear(),z,1)),W=pr(pt("month",L),o,y),q=L.toLocaleDateString("en-US",{timeZone:"UTC",month:"long",year:"numeric"}),B=L.getUTCFullYear()===b.start.getUTCFullYear()&&L.getUTCMonth()===b.start.getUTCMonth();return s("button",{type:"button","aria-label":q,"aria-pressed":B,disabled:!W,onClick:()=>N(L),className:x("polli-control polli:rounded-lg polli:px-3 polli:py-2 polli:text-sm polli:font-medium polli:transition-colors polli:duration-150",B?"polli:bg-theme-bg-active polli:text-theme-text-strong":"polli:text-ink-700 polli:hover:bg-theme-bg-subtle",!W&&"polli:cursor-not-allowed polli:text-theme-text-muted polli:hover:bg-transparent"),children:M},M)})}):h(Y,{children:[s("div",{className:"polli:mb-1 polli:grid polli:grid-cols-7 polli:gap-1 polli:text-center polli:text-xs polli:font-bold polli:uppercase polli:text-theme-text-muted",children:Y2.map(M=>s("div",{children:M},M))}),s("div",{className:"polli:grid polli:grid-cols-7 polli:gap-1",children:v.map(M=>{let z=M.getUTCMonth()===c.getUTCMonth(),L=pr(pt(e.granularity,M),o,y),W=e.granularity==="week"?`Select ${gd(pt("week",M))}`:`Select ${M.toLocaleDateString("en-US",{timeZone:"UTC",weekday:"long",month:"long",day:"numeric",year:"numeric"})}`,q=e.granularity==="day"?md(M,b.start):M>=b.start&&M<b.end;return s("button",{type:"button","aria-label":W,"aria-pressed":q,disabled:!L,onClick:()=>N(M),className:x("polli-control polli:aspect-square polli:rounded-lg polli:text-sm polli:font-medium polli:transition-colors polli:duration-150",!z&&"polli:text-theme-text-muted",md(M,y)&&"polli:ring-1 polli:ring-theme-border",q?"polli:bg-theme-bg-active polli:text-theme-text-strong":"polli:text-ink-700 polli:hover:bg-theme-bg-subtle",!L&&"polli:cursor-not-allowed polli:text-theme-text-muted polli:hover:bg-transparent"),children:M.getUTCDate()},M.toISOString())})})]})]})]})};var vd=({title:e,id:t,framed:o=!0,intro:r,action:n,actionClassName:i,panelClassName:l,titleClassName:a,children:c,className:p})=>{let u=h(Y,{children:[r&&s(pe,{as:"div",className:"polli:max-w-2xl",children:r}),c]}),d=h(Y,{children:[h("header",{className:"polli:flex polli:flex-wrap polli:items-center polli:justify-between polli:gap-3",children:[s(To,{as:"h2",size:"section",className:x("polli:text-left",a),children:e}),n&&s("div",{className:x("polli:shrink-0",i),children:n})]}),u]});return s("section",{id:t,className:x("polli:scroll-mt-10",p),children:o?s(Et,{variant:"panel",className:x("polli:flex polli:flex-col polli:gap-5",l),children:d}):s("div",{className:"polli:flex polli:flex-col polli:gap-4",children:d})})};var Q2={discord:{Icon:Yi,className:"polli:bg-social-discord polli:text-social-discord-text polli:hover:brightness-110"},github:{Icon:Zi,className:"polli:border polli:border-social-github-border polli:bg-social-github polli:text-social-github-text polli:hover:bg-social-github-hover"}};function yd({as:e,network:t,showIcon:o=!0,className:r,children:n,...i}){let l=e||"a",{Icon:a,className:c}=Q2[t];return h(l,{...i,className:x("polli-control polli:inline-flex polli:h-7 polli:shrink-0 polli:items-center polli:gap-1.5 polli:rounded-full polli:px-2.5 polli:font-semibold polli:text-xs polli:leading-none polli:transition-colors",c,r),children:[o?s(a,{"aria-hidden":"true",className:"polli:size-3.5 polli:shrink-0"}):null,n]})}var Cd={stat:"polli:min-h-8 polli:text-2xl polli:font-bold polli:leading-tight polli:tabular-nums polli:text-theme-text-base",fact:"polli:text-sm polli:leading-6 polli:text-theme-text-soft",display:"polli:font-heading polli:text-4xl polli:leading-none polli:tabular-nums polli:text-theme-text-soft"},wd=({label:e,value:t,detail:o,variant:r="stat",className:n,labelClassName:i,valueClassName:l,detailClassName:a})=>r==="display"?h("div",{className:x("polli:flex polli:flex-col polli:gap-1",n),children:[s("div",{className:x(Cd.display,l),children:t}),s(pe,{as:"div",size:"sm",tone:"soft",className:x("polli:flex polli:items-center polli:gap-2 polli:leading-tight",i),children:e})]}):h("div",{className:x("polli:text-sm",n),children:[s(pe,{as:"div",size:"micro",tone:"soft",weight:"bold",className:x("polli:uppercase polli:tracking-wide",i),children:e}),s("div",{className:x("polli:mt-1 polli:break-words",Cd[r],l),children:t}),o&&s(pe,{as:"div",size:"xs",tone:"soft",className:x("polli:mt-2",a),children:o})]});function eh(e){if(typeof e=="string")return e;try{return JSON.stringify(e,null,2)??String(e)}catch{return String(e)}}function th(e){let o=eh(e).split(/(https:\/\/[^\s"\\]+)/g),r=0;return o.map((n,i)=>{let l=`${r}:${n}`;if(r+=n.length,!n.startsWith("https://"))return n;let a=n,c=o[i-1]?.endsWith('"')&&o[i+1]?.startsWith('"'),p=(a.match(/\)/g)?.length??0)-(a.match(/\(/g)?.length??0);for(;!c&&(/[.,!?;:]$/.test(a)||a.endsWith(")")&&p>0);)a.endsWith(")")&&p--,a=a.slice(0,-1);return h(Y,{children:[s(Ro,{href:a,children:a}),n.slice(a.length)]},l)})}function Pd({value:e,error:t=!1}){return s("pre",{className:x("polli:max-h-72 polli:overflow-auto polli:whitespace-pre-wrap polli:break-words polli:rounded-lg polli:border polli:p-3 polli:text-xs polli:leading-relaxed",t?"polli:border-intent-danger-border/30 polli:bg-intent-danger-bg-light polli:text-intent-danger-text":"polli:border-theme-border/20 polli:bg-theme-bg-pale polli:text-theme-text-base"),children:th(e)})}var oh={pending:"Pending",running:"Running","approval-requested":"Awaiting approval","approval-responded":"Responded",complete:"Completed",error:"Error",denied:"Denied"};function rh({status:e}){let t=e==="complete"||e==="approval-responded"?s(Qe,{className:"polli:size-3"}):e==="error"||e==="denied"?s(to,{className:"polli:size-3"}):s(qi,{className:x("polli:size-3",e==="running"&&"polli:animate-pulse")});return h("span",{"data-status":e,className:x("polli:ml-auto polli:inline-flex polli:shrink-0 polli:items-center polli:gap-1 polli:rounded-full polli:px-2 polli:py-1 polli:text-[11px] polli:font-semibold",e==="complete"||e==="approval-responded"?"polli:bg-theme-bg-active polli:text-intent-success-text":e==="error"||e==="denied"?"polli:bg-intent-danger-bg-light polli:text-intent-danger-text":"polli:bg-intent-info-bg-light polli:text-intent-info-text"),children:[t,oh[e]]})}function Ed({name:e,input:t,output:o,error:r,status:n=r===void 0?"complete":"error",defaultOpen:i=!1,className:l}){let a=r===void 0?o:r,[c,p]=ee(i);return h("div",{"data-tool-status":n,className:x("polli:overflow-hidden polli:rounded-xl polli:border polli:border-theme-border/35 polli:bg-surface-opaque",l),children:[h("button",{type:"button","aria-expanded":c,onClick:()=>p(u=>!u),className:"polli-control polli:flex polli:w-full polli:cursor-pointer polli:items-center polli:gap-2 polli:px-3 polli:py-2.5 polli:text-left polli:hover:bg-theme-bg-hover/50",children:[s("span",{className:"polli:flex polli:size-7 polli:shrink-0 polli:items-center polli:justify-center polli:rounded-lg polli:bg-theme-bg-active polli:text-theme-text-strong",children:s(Ji,{className:"polli:size-3.5"})}),s("code",{className:"polli:min-w-0 polli:truncate polli:text-xs polli:font-semibold polli:text-theme-text-strong",children:e}),s(rh,{status:n}),s(fe,{expanded:c,className:"polli:size-4 polli:shrink-0 polli:text-theme-text-soft"})]}),c&&h("div",{className:"polli:flex polli:flex-col polli:gap-4 polli:border-theme-border/30 polli:border-t polli:bg-theme-bg-pale/35 polli:px-3 polli:py-3",children:[t!==void 0&&h("div",{className:"polli:flex polli:flex-col polli:gap-1",children:[s(pe,{size:"xs",tone:"muted",weight:"bold",children:"Parameters"}),s(Pd,{value:t})]}),a!==void 0&&h("div",{className:"polli:flex polli:flex-col polli:gap-1",children:[s(pe,{size:"xs",tone:"muted",weight:"bold",children:r===void 0?"Result":"Error"}),s(Pd,{value:a,error:r!==void 0})]})]})]})}var nh=Ir({extend:{theme:{text:["micro"]}}});function Td(...e){return nh(Cr(...e))}var Id=new Intl.NumberFormat("en",{notation:"compact"});function Nd(e){let t=Math.abs(e);if(t<1e3)return Id.format(Math.trunc(e));let o=10**(3*Math.floor(Math.log10(t)/3)),r=t/o<10?o/10:o;return Id.format(Math.trunc(e/r)*r)}function kd(e=!0){Z(()=>{if(!e)return;let t=document.body.style.overflow,o=document.documentElement.style.overflow;return document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",()=>{document.body.style.overflow=t,document.documentElement.style.overflow=o}},[e])}var Sd=({className:e,children:t,role:o="group",...r})=>s("div",{...r,role:o,className:x("polli:flex polli:min-w-0 polli:flex-wrap polli:items-center polli:gap-1.5",e),children:t});var ih={sm:{track:"polli:h-7 polli:w-[52px]",thumb:"polli:h-5 polli:w-5",travel:"polli:translate-x-6",icon:"polli:h-3.5 polli:w-3.5",ghostOff:"polli:right-2",ghostOn:"polli:left-2"},md:{track:"polli:h-9 polli:w-16",thumb:"polli:h-7 polli:w-7",travel:"polli:translate-x-7",icon:"polli:h-4 polli:w-4",ghostOff:"polli:right-[9px]",ghostOn:"polli:left-[9px]"},lg:{track:"polli:h-12 polli:w-[88px]",thumb:"polli:h-10 polli:w-10",travel:"polli:translate-x-10",icon:"polli:h-5 polli:w-5",ghostOff:"polli:right-[13px]",ghostOn:"polli:left-[13px]"}},lh={off:"polli:border-theme-text-strong/15 polli:bg-theme-bg-subtle polli:hover:border-theme-text-strong/30",on:"polli:border-tier-soft polli:bg-tier-soft",invalid:"polli:border-intent-danger-text polli:bg-intent-danger-bg-light",choice:"polli:border-theme-text-strong/10 polli:bg-surface-opaque"},sh={off:"polli:bg-theme-text-muted/60 polli:text-app-bg",on:"polli:bg-intent-success-text-on-bright",invalid:"polli:bg-intent-danger-text polli:text-app-bg",choice:"polli:bg-app-bg polli:text-theme-text-soft"},_n=({checked:e,onChange:t,status:o,ariaLabel:r,disabled:n=!1,size:i="md",icons:l,className:a})=>{let c=ih[i],p=l?"choice":o??(e?"on":"off");return h("button",{type:"button",role:"switch","aria-checked":e,"aria-label":r??(e?"Turn off toggle":"Turn on toggle"),onClick:()=>t(!e),disabled:n,className:x("polli-control polli:relative polli:inline-block polli:shrink-0 polli:cursor-pointer polli:rounded-full polli:border polli:transition-colors polli:disabled:cursor-not-allowed polli:disabled:opacity-60",c.track,lh[p],a),children:[l&&s("span",{"aria-hidden":"true",className:x("polli:absolute polli:top-1/2 polli:flex polli:-translate-y-1/2 polli:text-theme-text-strong/40 polli:[&>svg]:h-full polli:[&>svg]:w-full",c.icon,e?c.ghostOn:c.ghostOff),children:e?l.off:l.on}),s("span",{className:x("polli:absolute polli:top-1/2 polli:left-[3px] polli:flex polli:-translate-y-1/2 polli:items-center polli:justify-center polli:rounded-full polli:transition-[transform,background-color]",c.thumb,sh[p],e?c.travel:"polli:translate-x-0"),children:l&&s("span",{"aria-hidden":"true",className:x("polli:flex polli:[&>svg]:h-full polli:[&>svg]:w-full",c.icon),children:e?l.on:l.off})})]})};var zn="polli-color-mode";function Cs(){try{let e=localStorage.getItem(zn);return e==="light"||e==="dark"?e:null}catch{return null}}function Gn(){return typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches===!0?"dark":"light"}var At=Cs()??Gn(),ur=new Set,Wn;function Un(){typeof document>"u"||(document.documentElement.classList.toggle("dark",At==="dark"),ah())}function ah(){if(typeof document>"u")return;let e=getComputedStyle(document.documentElement).getPropertyValue("--polli-color-app-bg").trim();if(!e)return;let t=document.querySelector('meta[name="theme-color"]');t||(t=document.createElement("meta"),t.setAttribute("name","theme-color"),document.head.appendChild(t)),t.setAttribute("content",e)}function ws(){for(let e of ur)e()}function Rd(e){if(e.key!==zn)return;let t=Cs()??Gn();t!==At&&(At=t,Un(),ws())}function Od(){if(Cs()!==null)return;let e=Gn();e!==At&&(At=e,Un(),ws())}function ch(e){return ur.size===0&&typeof window<"u"&&(Un(),window.addEventListener("storage",Rd),Wn=window.matchMedia?.("(prefers-color-scheme: dark)"),Wn?.addEventListener("change",Od)),ur.add(e),()=>{ur.delete(e),ur.size===0&&typeof window<"u"&&(window.removeEventListener("storage",Rd),Wn?.removeEventListener("change",Od),Wn=void 0)}}function ph(){return At}function uh(){return"light"}function Ps(e){if(e!==At){At=e,Un();try{e===Gn()?localStorage.removeItem(zn):localStorage.setItem(zn,e)}catch{}ws()}}function Es(){let e=Lt(ch,ph,uh);return{mode:e,isDark:e==="dark",toggle:()=>Ps(e==="dark"?"light":"dark")}}var Ad=()=>{let{isDark:e,toggle:t}=Es();return s(_n,{checked:e,onChange:t,ariaLabel:"Toggle dark mode",size:"sm",icons:{off:s(tl,{}),on:s(el,{})}})};var Md=({open:e,onOpenChange:t,ariaLabel:o,children:r,side:n="left",contentClassName:i})=>{let l=G(null);return s(Ne.Root,{open:e,initialFocusEl:()=>l.current,onOpenChange:a=>t(a.open),children:h(eo,{children:[s(Ne.Backdrop,{className:"polli:fixed polli:inset-0 polli:z-[100] polli:bg-[#000]/40 polli:backdrop-blur-sm"}),s(Ne.Positioner,{className:"polli:pointer-events-none polli:fixed polli:inset-0 polli:z-[110] polli:h-dvh polli:overflow-hidden",children:s(Ne.Content,{ref:l,"aria-label":o,className:x("polli:pointer-events-auto polli:flex polli:h-dvh polli:w-[min(20rem,86vw)] polli:flex-col polli:overflow-hidden polli:border-theme-text-strong/10 polli:bg-app-bg polli:outline-none",n==="right"?"polli:ml-auto polli:border-l":"polli:border-r",i),children:r})})]})})};function Ld({as:e,className:t,children:o,...r}){let n=e||"button";return s(n,{...n==="button"?{type:"button"}:void 0,...r,className:x("polli-control polli:flex polli:w-full polli:cursor-pointer polli:items-center polli:gap-2 polli:rounded-lg polli:bg-transparent polli:px-3 polli:py-2 polli:text-left polli:text-sm polli:font-medium polli:text-theme-text-base polli:no-underline polli:transition-colors polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover polli:focus-visible:bg-theme-bg-hover",t),children:o})}var dh={neutral:"polli:bg-theme-bg-subtle polli:text-theme-text-strong",paid:"polli-wallet-chip-paid",tier:"polli-wallet-chip-tier",info:"polli:bg-intent-info-bg-light polli:text-intent-info-text"};function Dd({icon:e,tone:t="neutral",color:o}){return s("span",{className:x("polli:flex polli:size-11 polli:shrink-0 polli:items-center polli:justify-center polli:rounded-xl",!o&&dh[t]),style:o?{color:o,backgroundColor:`color-mix(in oklab, ${o} 14%, transparent)`}:void 0,children:s(e,{"aria-hidden":"true",className:"polli:size-6"})})}function Fd({className:e}){return h("span",{"aria-hidden":"true",className:x("polli:relative polli:inline-flex polli:size-2 polli:shrink-0",e),children:[s("span",{className:"polli:absolute polli:inset-0 polli:animate-ping polli:rounded-full polli:bg-intent-success-bg-bright polli:opacity-60 polli:[animation-duration:2.4s] polli:motion-reduce:hidden"}),s("span",{className:"polli:relative polli:size-2 polli:rounded-full polli:bg-intent-success-bg-bright"})]})}function Bd({children:e}){return h("output",{className:"polli:flex polli:items-center polli:gap-2 polli:font-body polli:text-sm polli:text-theme-text-muted",children:[s("span",{"aria-hidden":"true",className:"polli:h-4 polli:w-4 polli:shrink-0 polli:animate-spin polli:motion-reduce:animate-none polli:rounded-full polli:border-2 polli:border-current polli:border-r-transparent"}),e]})}function Vd({options:e,value:t,onChange:o,ariaLabel:r,className:n}){return s("fieldset",{"aria-label":r,className:x("polli:m-0 polli:inline-flex polli:min-w-0 polli:items-center polli:gap-0.5 polli:rounded-full polli:border-0 polli:bg-theme-bg-subtle polli:p-0.5",n),children:e.map(i=>{let l=i.value===t;return s("button",{type:"button","aria-pressed":l,onClick:()=>o(i.value),className:x("polli-control polli:rounded-full polli:px-3 polli:py-1 polli:text-sm polli:font-medium polli:leading-normal polli:transition-colors polli:duration-200",l?"polli:bg-theme-bg-active polli:text-theme-text-strong":"polli:text-theme-text-base polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover"),children:i.label},i.value)})})}var mh={card:"polli:rounded-card",text:"polli:rounded-md",media:""};function Hd({shape:e="card",className:t}){return s("span",{"aria-hidden":"true",className:x("polli:block polli:animate-pulse polli:bg-theme-bg-subtle polli:motion-reduce:animate-none",mh[e],t)})}var Ts=e=>{if(typeof e=="number")return e;if(typeof e!="string"||e.trim()==="")return;let t=Number(e);return Number.isFinite(t)?t:void 0},_d=e=>Math.min(100,Math.max(0,e)),fh=({progress:e,value:t,defaultValue:o,min:r,max:n})=>{if(typeof e=="number"&&Number.isFinite(e))return _d(e);let i=Ts(t??o);if(i===void 0)return;let l=Ts(r)??0,a=Ts(n)??100;return a<=l?100:_d((i-l)/(a-l)*100)},Wd=E(({className:e,defaultValue:t,max:o,min:r,progress:n,style:i,value:l,...a},c)=>{let p=fh({progress:n,value:l,defaultValue:t,min:r,max:o}),u={...i,...p===void 0?null:{"--polli-slider-progress":`${p}%`}};return s("input",{ref:c,type:"range",min:r,max:o,value:l,defaultValue:t,style:u,className:x("polli-slider",e),...a})});function zd({text:e,options:t,align:o="center",prefix:r}){return h("span",{className:x("polli:inline-grid",o==="center"?"polli:justify-items-center":"polli:justify-items-start polli:sm:justify-items-end"),children:[t.map(n=>h("span",{"aria-hidden":"true",className:"polli:invisible polli:col-start-1 polli:row-start-1 polli:inline-flex polli:items-center polli:gap-1",children:[r,n]},n)),h("span",{className:"polli:col-start-1 polli:row-start-1 polli:inline-flex polli:items-center polli:gap-1",children:[r,e]})]})}var Gd={left:"polli:text-left",center:"polli:text-center",right:"polli:text-right"},gh={default:"",warning:"polli:bg-intent-warning-bg-light/65",danger:"polli:bg-intent-danger-bg-light/65"},Ud=({className:e,...t})=>s("table",{...t,className:x("polli:w-full polli:border-collapse polli:text-sm",e)}),$d=({className:e,...t})=>s("thead",{...t,className:x("polli:bg-transparent polli:text-micro polli:text-theme-text-muted",e)}),jd=({className:e,...t})=>s("tbody",{...t,className:x("polli:divide-y polli:divide-divider",e)}),Kd=({intent:e="default",className:t,...o})=>s("tr",{...o,className:x("polli:transition-colors polli:hover:bg-theme-bg-subtle",gh[e],t)}),qd=({align:e="left",active:t=!1,sortDirection:o,onSort:r,className:n,children:i,...l})=>{let a=h(Y,{children:[s("span",{children:i}),r&&s("span",{"aria-hidden":"true",className:"polli:inline-flex polli:w-3 polli:justify-center",children:t&&o?o==="asc"?"\u2191":"\u2193":""})]}),c=x("polli:px-3 polli:py-2 polli:font-bold polli:normal-case polli:tracking-wide",Gd[e],t&&"polli:text-theme-text-strong",r&&"polli:cursor-pointer polli:select-none polli:hover:text-theme-text-strong",n);return r?s("th",{...l,"aria-sort":t&&o?o==="asc"?"ascending":"descending":"none",className:c,children:s("button",{type:"button",onClick:r,className:x("polli-control polli:inline-flex polli:w-full polli:items-center polli:gap-1 polli:bg-transparent polli:p-0 polli:font-bold polli:text-inherit",e==="right"&&"polli:justify-end",e==="center"&&"polli:justify-center"),children:a})}):s("th",{...l,className:c,children:a})},Yd=({align:e="left",numeric:t=!1,muted:o=!1,className:r,...n})=>s("td",{...n,className:x("polli:px-3 polli:py-2 polli:align-middle",Gd[e],t&&"polli:tabular-nums",o&&"polli:text-theme-text-muted",r)});var Zd=({children:e,disabled:t=!1,expanded:o,onClick:r,className:n})=>h("button",{type:"button","aria-expanded":o,disabled:t,onClick:r,className:x("polli-control polli:inline-flex polli:items-center polli:gap-1.5 polli:rounded-sm polli:text-left polli:text-theme-text-strong polli:transition-colors",t?"polli:cursor-default polli:opacity-60":"polli:cursor-pointer polli:hover:text-theme-text-soft",n),children:[s(fe,{expanded:o,className:"polli:text-theme-text-soft"}),e]});return om(hh);})();
|
|
2
2
|
//# sourceMappingURL=index.browser.min.js.map
|