PageSourceSearch

https://liveblocks.io/_next/static/chunks/2a8durarx44yu.js

js liveblocks.io collected 2026-10-01 10:20:01 UTC 123,845 bytes, 9 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,843338,e=>{"use strict";var t,r=e.i(271645);function n(){return(n=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return r.createElement("svg",n({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=r.createElement("path",{d:"M16 8C16 9.58225 15.5308 11.129 14.6518 12.4446C13.7727 13.7602 12.5233 14.7855 11.0615 15.391C9.59966 15.9965 7.99113 16.155 6.43928 15.8463C4.88743 15.5376 3.46197 14.7757 2.34315 13.6569C1.22433 12.538 0.4624 11.1126 0.153718 9.56072C-0.154964 8.00887 0.00346269 6.40034 0.608964 4.93853C1.21446 3.47672 2.23984 2.22729 3.55544 1.34824C4.87103 0.469192 6.41775 -1.88681e-08 8 0L8 1.52681C6.71972 1.52681 5.4682 1.90645 4.40369 2.61774C3.33917 3.32902 2.50949 4.33999 2.01955 5.52282C1.52961 6.70564 1.40142 8.00718 1.65119 9.26286C1.90096 10.5185 2.51747 11.6719 3.42276 12.5772C4.32805 13.4825 5.48147 14.099 6.73714 14.3488C7.99282 14.5986 9.29436 14.4704 10.4772 13.9805C11.66 13.4905 12.671 12.6608 13.3823 11.5963C14.0935 10.5318 14.4732 9.28028 14.4732 8H16Z"})))}])},21845,e=>{"use strict";let t=1/60*1e3,r="u">typeof performance?()=>performance.now():()=>Date.now(),n="u">typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(r()),t),a=!0,i=!1,s=!1,o={delta:0,timestamp:0},l=["read","update","preRender","render","postRender"],c=l.reduce((e,t)=>{var r;let n,a,s,o,l,c,d;return e[t]=(r=()=>i=!0,n=[],a=[],s=0,o=!1,l=!1,c=new WeakSet,d={schedule:(e,t=!1,r=!1)=>{let i=r&&o,l=i?n:a;return t&&c.add(e),-1===l.indexOf(e)&&(l.push(e),i&&o&&(s=n.length)),e},cancel:e=>{let t=a.indexOf(e);-1!==t&&a.splice(t,1),c.delete(e)},process:e=>{if(o){l=!0;return}if(o=!0,[n,a]=[a,n],a.length=0,s=n.length)for(let t=0;t<s;t++){let a=n[t];a(e),c.has(a)&&(d.schedule(a),r())}o=!1,l&&(l=!1,d.process(e))}}),e},{}),d=l.reduce((e,t)=>{let r=c[t];return e[t]=(e,t=!1,n=!1)=>(i||f(),r.schedule(e,t,n)),e},{}),u=l.reduce((e,t)=>(e[t]=c[t].cancel,e),{});l.reduce((e,t)=>(e[t]=()=>c[t].process(o),e),{});let m=e=>c[e].process(o),p=e=>{i=!1,o.delta=a?t:Math.max(Math.min(e-o.timestamp,40),1),o.timestamp=e,s=!0,l.forEach(m),s=!1,i&&(a=!1,n(p))},f=()=>{i=!0,a=!0,s||n(p)};e.s(["cancelSync",0,u,"default",0,d],21845)},81636,e=>{"use strict";var t=e.i(843476),r=e.i(21845),n=e.i(271645),a=e.i(843338);e.i(529333);var i=e.i(128769);let s="--pointer-x",o="--pointer-y";function l(e){switch(e){case"ghost":return"hsla(256, 7%, 97%, 0.12)";case"secondary":return"hsla(256, 7%, 97%, 0.08)";case"brand":case"accent-yellow":case"accent-pink":case"accent-green":case"accent-blue":return"hsla(256, 7%, 97%, 0.32)";case"primary":return"hsla(256, 7%, 97%, 1)"}}let c=(0,n.forwardRef)(({children:e,className:c,size:d="md",disabled:u=!1,appearance:m="secondary",type:p="button",loading:f=!1,square:h=!1,round:g=!1,...x},b)=>{let v=(0,n.useRef)(null),C=(0,n.useMemo)(()=>l(m),[m]),w=(0,n.useMemo)(()=>({[s]:"0px",[o]:"0px",top:"-100px",left:"-100px",width:"200px",height:"200px",transform:`translateX(var(${s})) translateY(var(${o}))`,backgroundImage:`radial-gradient(100px circle, ${C}, hsla(256, 7%, 97%, 0))`}),[C]),y=(0,n.useCallback)(e=>{let t,n,a=v.current,i=e.currentTarget;a&&(r.default.read(()=>{let r=i?.getBoundingClientRect();r&&(t=e.clientX-r.x,n=e.clientY-r.y)}),r.default.update(()=>{void 0!==t&&void 0!==n&&(a.style.setProperty(s,`${t}px`),a.style.setProperty(o,`${n}px`))}))},[]);return(0,t.jsxs)("button",{ref:b,disabled:u,className:(0,i.cn)("group relative inline-flex appearance-none items-center justify-center overflow-hidden font-medium outline-hidden transition duration-300 ease-out will-change-transform select-none",{"h-7 text-xs":"sm"===d,"h-9 text-sm":"md"===d,"h-10 max-sm:text-sm sm:h-11":"lg"===d,"w-7":"sm"===d&&h,"w-9":"md"===d&&h,"w-10 sm:w-11":"lg"===d&&h,rounded:"sm"===d&&!g,"rounded-md":"md"===d&&!g,"rounded-md sm:rounded-lg":"lg"===d&&!g,"px-3":"sm"===d&&!h&&!g,"px-3.5":"md"===d&&!h&&!g||"sm"===d&&!h&&g,"px-3.5 sm:px-4":"lg"===d&&!h&&!g||"md"===d&&!h&&g,"px-4.5 sm:px-5":"lg"===d&&!h&&g,"p-0":h,"rounded-full":g,"bg-marketing-surface-faded focus:bg-marketing-surface-faded-bold active:bg-marketing-surface-faded-bolder":"secondary"===m,"active:bg-marketing-surface-faded-bolder":"ghost"===m,"bg-marketing-surface-base-inverse text-marketing-inverse hover:bg-marketing-surface-base-inverse-subtle active:bg-marketing-surface-base-inverse":"primary"===m,"bg-marketing-surface-brand text-marketing-inverse focus:bg-marketing-surface-brand-bold active:bg-marketing-surface-brand-bolder":"brand"===m,"bg-marketing-surface-accent-yellow text-marketing-inverse focus:bg-marketing-surface-accent-yellow-bold active:bg-marketing-surface-accent-yellow-bolder":"accent-yellow"===m,"bg-marketing-surface-accent-pink text-marketing-inverse hover:bg-marketing-surface-accent-pink-bold focus:bg-marketing-surface-accent-pink-bold active:bg-marketing-surface-accent-pink-bolder":"accent-pink"===m,"bg-marketing-surface-accent-green text-marketing-inverse hover:bg-marketing-surface-accent-green-bold focus:bg-marketing-surface-accent-green-bold active:bg-marketing-surface-accent-green-bolder":"accent-green"===m,"bg-marketing-surface-accent-blue text-marketing-inverse hover:bg-marketing-surface-accent-blue-bold focus:bg-marketing-surface-accent-blue-bold active:bg-marketing-surface-accent-blue-bolder":"accent-blue"===m,"pointer-events-none opacity-50":u},c),type:p,onPointerMove:y,...x,children:[(0,t.jsx)("div",{ref:v,className:(0,i.cn)("pointer-events-none absolute inset-0 z-0 opacity-0 transition-opacity duration-150 ease-out group-hover:opacity-100",{rounded:"sm"===d&&!g,"rounded-md":"md"===d&&!g,"rounded-md sm:rounded-lg":"lg"===d&&!g,"rounded-full":g}),style:w}),f&&(0,t.jsx)("span",{className:"absolute inset-0 z-10 flex items-center justify-center",children:(0,t.jsx)(a.default,{className:"animate-spin fill-current"})}),(0,t.jsx)("span",{className:(0,i.cn)("relative z-10 flex items-center",{"opacity-0":f}),children:e})]})});e.s(["Button",0,c,"getLightColor",0,l])},39967,e=>{"use strict";e.i(81636),e.s([])},881750,e=>{"use strict";var t,r=e.i(271645);function n(){return(n=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return r.createElement("svg",n({"aria-hidden":"true",focusable:"false",width:20,height:20,viewBox:"0 0 20 20",className:"fill-black dark:fill-white",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=r.createElement("path",{d:"M10 1.667A8.333 8.333 0 0 0 1.667 10c0 3.683 2.391 6.808 5.7 7.917.416.066.55-.192.55-.417v-1.408c-2.309.5-2.8-1.117-2.8-1.117-.384-.967-.925-1.225-.925-1.225-.759-.517.058-.5.058-.5.833.058 1.275.858 1.275.858.725 1.267 1.95.892 2.425.692.075-.542.292-.908.525-1.117-1.85-.208-3.792-.925-3.792-4.1 0-.925.317-1.666.859-2.258-.084-.208-.375-1.075.083-2.2 0 0 .7-.225 2.292.85A7.851 7.851 0 0 1 10 5.7c.708 0 1.425.092 2.083.275 1.592-1.075 2.292-.85 2.292-.85.458 1.125.167 1.992.083 2.2.542.592.859 1.333.859 2.258 0 3.184-1.95 3.884-3.809 4.092.3.258.575.767.575 1.542V17.5c0 .225.134.492.559.417C15.95 16.8 18.333 13.683 18.333 10A8.333 8.333 0 0 0 10 1.667Z"})))}])},718812,e=>{"use strict";var t=e.i(628759),r=e.i(283599),n=e.i(271235);e.s(["preloadSWRAugmented",0,function(e,r){(0,n.preload)(e,async e=>{let n=await fetch(e);if(!n.ok)throw Error(`An error occurred while preloading the data with status ${n.status}: ${await n.text()}`);let a=await n.json();return r.verify(a,t.formatShort)})},"useSWRAugmented",0,function(e,n,a){let{initialData:i,...s}=a??{},o=(0,r.default)(e,async e=>{let r=await fetch(e);if(!r.ok)throw Error(`An error occurred while fetching the data with status ${r.status}: ${await r.text()}`);let a=await r.json();return n.verify(a,t.formatShort)},a?{...s,fallbackData:i}:void 0);return{...o,isLoading:void 0===i&&o.isLoading}}])},300399,e=>{"use strict";var t,r=e.i(271645);function n(){return(n=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return r.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none"},e),t||(t=r.createElement("path",{d:"M3.5 14a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .741-.438l10 5.5a.5.5 0 0 1 0 .876l-10 5.5A.5.5 0 0 1 3.5 14ZM4 3.345v9.31L12.463 8 4 3.345Z"})))}])},437460,e=>{"use strict";var t,r=e.i(271645);function n(){return(n=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return r.createElement("svg",n({"aria-hidden":"true",focusable:"false",width:16,height:16,viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=r.createElement("path",{d:"M14 6V5h-3V2h-1v3H6V2H5v3H2v1h3v4H2v1h3v3h1v-3h4v3h1v-3h3v-1h-3V6h3Zm-4 4H6V6h4v4Z"})))}])},14983,e=>{"use strict";var t=e.i(628759),r=e.i(271645),n=e.i(718812),a=e.i(675545);e.s(["useGithubStars",0,function(e){let{data:i}
1=(0,n.useSWRAugmented)(a.APP_ROUTER_API_ROUTES.GITHUB_REPOSITORY(e),(0,t.object)({stars:t.number}));return(0,r.useMemo)(()=>i?.stars?Intl.NumberFormat("en",{notation:"compact"}).format(i.stars).toLocaleLowerCase():null,[i])}])},177823,e=>{"use strict";var t,r=e.i(271645);function n(){return(n=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return r.createElement("svg",n({"aria-hidden":"true",focusable:"false",width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=r.createElement("path",{d:"M11.0007 8L6.00078 13L5.30078 12.3L9.60078 8L5.30078 3.7L6.00078 3L11.0007 8Z"})))}])},964053,e=>{"use strict";var t=e.i(326999);e.s(["Dialog",0,t])},296413,e=>{"use strict";var t=e.i(843476),r=e.i(964053),n=e.i(271645),a=e.i(258596);e.i(529333);var i=e.i(128769),s=e.i(393701);let o=r.Dialog.Root,l=r.Dialog.Trigger,c=r.Dialog.Portal,d=r.Dialog.Close,u=n.default.forwardRef(({className:e,...n},a)=>(0,t.jsx)(r.Dialog.Overlay,{ref:a,className:(0,i.cn)("fixed inset-0 z-(--z-index-high) bg-product-surface-overlay","data-[state=closed]:animate-[fade-out_150ms_ease-in] data-[state=open]:animate-[fade-in_150ms_ease-out] motion-reduce:animate-none",e),...n})),m=n.default.forwardRef(({className:e,isRight:n=!1,children:a,...s},o)=>(0,t.jsxs)(c,{children:[(0,t.jsx)(u,{}),(0,t.jsx)(r.Dialog.Content,{ref:o,className:(0,i.cn)("@container/dialog-content","[--dialog-outer-padding:var(--spacing-outer-gutter)]","fixed bottom-(--dialog-outer-padding) left-1/2 z-(--z-index-high) flex scroll-area max-h-[calc(100dvh-2*var(--dialog-outer-padding))] w-full max-w-[calc(100%-(var(--dialog-outer-padding)*2))] -translate-x-1/2 transform flex-col overflow-y-auto rounded-lg border border-transparent bg-product-surface-base shadow-product-dialog outline-none dark:border-product-divider","data-[state=closed]:animate-mobile-dialog-hide data-[state=open]:animate-mobile-dialog-show",{"sm:top-1/2 sm:bottom-auto sm:-translate-y-1/2":!n,"sm:right-(--dialog-outer-padding) sm:left-auto sm:h-full sm:translate-x-0":n,"sm:max-w-lg sm:data-[state=closed]:animate-dialog-hide sm:data-[state=open]:animate-dialog-show":!n,"sm:left-auto sm:translate-x-0 sm:data-[state=closed]:animate-right-dialog-hide sm:data-[state=open]:animate-right-dialog-show md:max-w-2xl":n},e),...s,children:a})]})),p=n.default.forwardRef(({className:e,...n},a)=>(0,t.jsx)(r.Dialog.Title,{ref:a,className:(0,i.cn)("font-medium",e),...n}));e.s(["Dialog",0,o,"DialogBody",0,({className:e,...r})=>(0,t.jsx)("div",{className:(0,i.cn)("scroll-area min-h-0 flex-1 overflow-y-auto p-4 text-sm leading-relaxed text-product-subtle sm:p-6",e),...r}),"DialogClose",0,d,"DialogContent",0,m,"DialogDescription",0,function({className:e,...n}){return(0,t.jsx)(r.Dialog.Description,{"data-slot":"dialog-description",className:(0,i.cn)("text-sm text-product-subtle",e),...n})},"DialogFooter",0,({className:e,appearance:r="transparent",...n})=>(0,t.jsx)("div",{className:(0,i.cn)("flex shrink-0 justify-end space-x-3 px-4 pb-4 sm:px-6 sm:pb-6","subtle"===r&&"border-t border-product-divider bg-product-surface-base-bold pt-4 sm:pt-6",e),...n}),"DialogHeader",0,({className:e,children:n,hasBorder:o=!0,hideClose:l,closeButtonAppearance:c="ghost",...d})=>(0,t.jsxs)("div",{className:(0,i.cn)("sticky top-0 z-20 flex shrink-0 items-center justify-between bg-product-surface-base px-4 pt-3.5 sm:px-6 sm:pt-5",o&&"border-b border-product-divider pb-3.5 sm:pb-5",e),...d,children:[n,l?null:(0,t.jsx)(r.Dialog.Close,{asChild:!0,children:(0,t.jsxs)(s.Button,{className:"shrink-0",appearance:c,square:!0,children:[(0,t.jsx)(a.default,{className:"fill-product-icon transition-colors duration-100 ease-out group-hover:fill-product-icon-bolder group-focus-visible:fill-product-icon-bolder"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})})]}),"DialogOverlay",0,u,"DialogPortal",0,c,"DialogTitle",0,p,"DialogTrigger",0,l])},508578,e=>{"use strict";e.i(296413),e.s([])},888722,e=>{"use strict";var t,r=e.i(628759),n=((t={}).Free="free",t.Pro_2026_04_monthly="pro-2026-04-monthly",t.Pro_2026_04_annual="pro-2026-04-annual",t.Team_2026_04_monthly="team-2026-04-monthly",t.Team_2026_04_annual="team-2026-04-annual",t.Enterprise="enterprise",t.Custom="custom",t.Pro_2026_01="pro-2026-01",t.Team_2026_01="team-2026-01",t.Pro_2024_05="pro-2024-05",t);let a=(0,r.enum_)(n);e.s(["PlanType",()=>n,"planType",0,a])},138544,571164,e=>{"use strict";let t={current:null},r={current:!1};e.s(["hasReducedMotionListener",0,r,"prefersReducedMotion",0,t],571164);let n="u">typeof window;e.s(["initPrefersReducedMotion",0,function(){if(r.current=!0,n)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),r=()=>t.current=e.matches;e.addEventListener("change",r),r()}else t.current=!1}],138544)},749652,e=>{"use strict";e.s(["resolveElements",0,function(e,t,r){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let n=document;t&&(n=t.current);let a=r?.[e]??n.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(e=>null!=e)}])},260830,e=>{"use strict";e.s(["noop",0,e=>e])},440254,e=>{"use strict";var t=e.i(260830);let r=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;e.s(["cubicBezier",0,function(e,n,a,i){return e===n&&a===i?t.noop:t=>0===t||1===t?t:r(function(e,t,n,a,i){let s,o,l=0;do(s=r(o=t+(n-t)/2,a,i)-e)>
10?n=o:t=o;while(Math.abs(s)>1e-7&&++l<12)return o}(t,0,1,e,a),n,i)}])},88653,e=>{"use strict";e.i(247167);var t=e.i(843476),r=e.i(271645),n=e.i(231178),a=e.i(947414),i=e.i(674008),s=e.i(821476),o=e.i(772846),l=r,c=e.i(737806);function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class u extends l.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,o.isHTMLElement)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,r=(0,o.isHTMLElement)(e)&&e.offsetWidth||0,n=(0,o.isHTMLElement)(e)&&e.offsetHeight||0,a=getComputedStyle(t),i=this.props.sizeRef.current;i.height=parseFloat(a.height),i.width=parseFloat(a.width),i.top=t.offsetTop,i.left=t.offsetLeft,i.right=r-i.width-i.left,i.bottom=n-i.height-i.top,i.direction=a.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function m({children:e,isPresent:n,anchorX:a,anchorY:i,root:s,pop:o}){let p=(0,l.useId)(),f=(0,l.useRef)(null),h=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:g}=(0,l.useContext)(c.MotionConfigContext),x=function(...e){return r.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=d(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():d(e[t],null)}}}}(...e),e)}(f,e.props?.ref??e?.ref);return(0,l.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:l,right:c,bottom:d,direction:u}=h.current;if(n||!1===o||!f.current||!e||!t)return;let m="rtl"===u,x="left"===a?m?`right: ${c}`:`left: ${l}`:m?`left: ${l}`:`right: ${c}`,b="bottom"===i?`bottom: ${d}`:`top: ${r}`;f.current.dataset.motionPopId=p;let v=document.createElement("style");g&&(v.nonce=g);let C=s??document.head;return C.appendChild(v),v.sheet&&v.sheet.insertRule(`
2          [data-motion-pop-id="${p}"] {
3            position: absolute !important;
4            width: ${e}px !important;
5            height: ${t}px !important;
6            ${x}px !important;
7            ${b}px !important;
8          }
9        `),()=>{f.current?.removeAttribute("data-motion-pop-id"),C.contains(v)&&C.removeChild(v)}},[n]),(0,t.jsx)(u,{isPresent:n,childRef:f,sizeRef:h,pop:o,children:!1===o?e:l.cloneElement(e,{ref:x})})}let p=({children:e,initial:n,isPresent:o,onExitComplete:l,custom:c,presenceAffectsLayout:d,mode:u,anchorX:p,anchorY:h,root:g})=>{let x=(0,a.useConstant)(f),b=(0,r.useId)(),v=(0,r.useRef)(o),C=(0,r.useRef)(l);(0,i.useIsomorphicLayoutEffect)(()=>{v.current=o,C.current=l});let w=!0,y=(0,r.useMemo)(()=>(w=!1,{id:b,initial:n,isPresent:o,custom:c,onExitComplete:e=>{for(let t of(x.set(e,!0),x.values()))if(!t)return;l&&l()},register:e=>(x.set(e,!1),()=>{x.delete(e),v.current||x.size||C.current?.()})}),[o,x,l]);return d&&w&&(y={...y}),(0,r.useMemo)(()=>{x.forEach((e,t)=>x.set(t,!1))},[o]),r.useEffect(()=>{o||x.size||!l||l()},[o]),e=(0,t.jsx)(m,{pop:"popLayout"===u,isPresent:o,anchorX:p,anchorY:h,root:g,children:e}),(0,t.jsx)(s.PresenceContext.Provider,{value:y,children:e})};function f(){return new Map}var h=e.i(464978);let g=e=>e.key||"";function x(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}e.s(["AnimatePresence",0,({children:e,custom:s,initial:o=!0,onExitComplete:l,presenceAffectsLayout:c=!0,mode:d="sync",propagate:u=!1,anchorX:m="left",anchorY:f="top",root:b})=>{let[v,C]=(0,h.usePresence)(u),w=(0,r.useMemo)(()=>x(e),[e]),y=u&&!v?[]:w.map(g),j=(0,r.useRef)(!0),S=(0,r.useRef)(w),E=(0,a.useConstant)(()=>new Map),k=(0,r.useRef)(new Set),[M,R]=(0,r.useState)(w),[D,T]=(0,r.useState)(w);(0,i.useIsomorphicLayoutEffect)(()=>{j.current=!1,S.current=w;for(let e=0;e<D.length;e++){let t=g(D[e]);y.includes(t)?(E.delete(t),k.current.delete(t)):!0!==E.get(t)&&E.set(t,!1)}},[D,y.length,y.join("-")]);let N=[];if(w!==M){let e=[...w];for(let t=0;t<D.length;t++){let r=D[t],n=g(r);y.includes(n)||(e.splice(t,0,r),N.push(r))}return"wait"===d&&N.length&&(e=N),T(x(e)),R(w),null}let{forceRender:A}=(0,r.useContext)(n.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:D.map(e=>{let r=g(e),n=(!u||!!v)&&(w===D||y.includes(r));return(0,t.jsx)(p,{isPresent:n,initial:(!j.current||!!o)&&void 0,custom:s,presenceAffectsLayout:c,mode:d,root:b,onExitComplete:n?void 0:()=>
9{if(k.current.has(r)||!E.has(r))return;k.current.add(r),E.set(r,!0);let e=!0;E.forEach(t=>{t||(e=!1)}),e&&(A?.(),T(S.current),u&&C?.(),l&&l())},anchorX:m,anchorY:f,children:e},r)})})}],88653)},707674,e=>{"use strict";var t,r=e.i(271645);function n(){return(n=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return r.createElement("svg",n({"aria-hidden":"true",focusable:"false",width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=r.createElement("path",{d:"M13 7h-1v1h1a1.502 1.502 0 0 1 1.5 1.5v2h1v-2A2.503 2.503 0 0 0 13 7ZM12 2a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm0-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5ZM11.5 15h-1v-1A1.502 1.502 0 0 0 9 12.5H7A1.502 1.502 0 0 0 5.5 14v1h-1v-1A2.503 2.503 0 0 1 7 11.5h2a2.503 2.503 0 0 1 2.5 2.5v1ZM8 6.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm0-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5ZM4 7H3A2.503 2.503 0 0 0 .5 9.5v2h1v-2A1.502 1.502 0 0 1 3 8h1V7ZM4 2a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm0-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Z"})))}])},846324,e=>{"use strict";var t,r=e.i(271645);function n(){return(n=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return r.createElement("svg",n({"aria-hidden":"true",focusable:"false",width:32,height:32,viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=r.createElement("path",{d:"m27.34 12.06-22-8a1 1 0 0 0-1.28 1.28l8 22a1 1 0 0 0 1.87.03l3.84-9.6 9.6-3.84a1 1 0 0 0 0-1.87h-.03Zm-10.71 4-.4.16-.16.4L13 24.2 6.67 6.67 24.2 13l-7.57 3.06Z"})))}])},377848,e=>{"use strict";var t,r=e.i(271645);function n(){return(n=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return r.createElement("svg",n({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=r.createElement("path",{d:"M19.1429 16.2857C18.6384 16.2882 18.1443 16.429 17.7143 16.6929L15.5071 14.4786C16.0207 13.7541 16.2966 12.888 16.2966 12C16.2966 11.112 16.0207 10.2459 15.5071 9.52143L17.7143 7.30714C18.1443 7.571 18.6384 7.71182 19.1429 7.71429C19.7079 7.71429 20.2603 7.54672 20.7302 7.23277C21.2001 6.91882 21.5663 6.4726 21.7825 5.95052C21.9988 5.42845 22.0553 4.85397 21.9451 4.29974C21.8349 3.74551 21.5627 3.23642 21.1632 2.83684C20.7636 2.43726 20.2545 2.16514 19.7003 2.0549C19.146 1.94466 18.5715 2.00124 18.0495 2.21749C17.5274 2.43374 17.0812 2.79995 16.7672 3.2698C16.4533 3.73965 16.2857 4.29205 16.2857 4.85714C16.2879 5.36143 16.4286 5.85572 16.6929 6.28572L14.4786 8.49286C13.7541 7.97928 12.888 7.70343 12 7.70343C11.112 7.70343 10.2459 7.97928 9.52143 8.49286L7.30714 6.28572C7.571 5.85574 7.71182 5.36161 7.71429 4.85714C7.71429 4.29205 7.54672 3.73965 7.23277 3.2698C6.91882 2.79995 6.4726 2.43374 5.95052 2.21749C5.42845 2.00124 4.85397 1.94466 4.29974 2.0549C3.74551 2.16514 3.23642 2.43726 2.83684 2.83684C2.43726 3.23642 2.16514 3.74551 2.0549 4.29974C1.94466 4.85397 2.00124 5.42845 2.21749 5.95052C2.43374 6.4726 2.79995 6.91882 3.2698 7.23277C3.73965 7.54672 4.29205 7.71429 4.85714 7.71429C5.36161 7.71182 5.85574 7.571 6.28572 7.30714L8.49286 9.52143C7.97928 10.2459 7.70343 11.112 7.70343 12C7.70343 12.888 7.97928 13.7541 8.49286 14.4786L6.28572 16.6929C5.85574 16.429 5.36161 16.2882 4.85714 16.2857C4.29205 16.2857 3.73965 16.4533 3.2698 16.7672C2.79995 17.0812 2.43374 17.5274 2.21749 18.0495C2.00124 18.5715 1.94466 19.146 2.0549 19.7003C2.16514 20.2545 2.43726 20.7636 2.83684 21.1632C3.23642 21.5627 3.74551 21.8349 4.29974 21.9451C4.85397 22.0553 5.42845 21.9988 5.95052 21.7825C6.4726 21.5663 6.91882 21.2001 7.23277 20.7302C7.54672 20.2603 7.71429 19.7079 7.71429 19.1429C7.71182 18.6384 7.571 18.1443 7.30714 17.7143L9.52143 15.5071C10.2459 16.0207 11.112 16.2966 12 16.2966C12.888 16.2966 13.7541 16.0207 14.4786 15.5071L16.6929 17.7143C16.429 18.1443 16.2882 18.6384 16.2857 19.1429C16.2857 19.7079 16.4533 20.2603 16.7672 20.7302C17.0812 21.2001 17.5274 21.5663 18.0495 21.7825C18.5715 21.9988 19.146 22.0553 19.7003 21.9451C20.2545 21.8349 20.7636 21.5627 21.1632 21.1632C21.5627 20.7636 21.8349 20.2545 21.9451 19.7003C22.0553 19.146 21.9988 18.5715 21.7825 18.0495C21.5663 17.5274 21.2001 17.0812 20.7302 16.7672C20.2603 16.4533 19.7079 16.2857 19.1429 16.2857ZM19.1429 3.42857C19.5217 3.4285
97 19.8851 3.57908 20.153 3.84699C20.4209 4.1149 20.5714 4.47826 20.5714 4.85714C20.5714 5.23602 20.4209 5.59939 20.153 5.8673C19.8851 6.13521 19.5217 6.28572 19.1429 6.28572C18.764 6.28572 18.4006 6.13521 18.1327 5.8673C17.8648 5.59939 17.7143 5.23602 17.7143 4.85714C17.7143 4.47826 17.8648 4.1149 18.1327 3.84699C18.4006 3.57908 18.764 3.42857 19.1429 3.42857ZM3.42857 4.85714C3.42857 4.47826 3.57908 4.1149 3.84699 3.84699C4.1149 3.57908 4.47826 3.42857 4.85714 3.42857C5.23602 3.42857 5.59939 3.57908 5.8673 3.84699C6.13521 4.1149 6.28572 4.47826 6.28572 4.85714C6.28572 5.23602 6.13521 5.59939 5.8673 5.8673C5.59939 6.13521 5.23602 6.28572 4.85714 6.28572C4.47826 6.28572 4.1149 6.13521 3.84699 5.8673C3.57908 5.59939 3.42857 5.23602 3.42857 4.85714ZM4.85714 20.5714C4.47826 20.5714 4.1149 20.4209 3.84699 20.153C3.57908 19.8851 3.42857 19.5217 3.42857 19.1429C3.42857 18.764 3.57908 18.4006 3.84699 18.1327C4.1149 17.8648 4.47826 17.7143 4.85714 17.7143C5.23602 17.7143 5.59939 17.8648 5.8673 18.1327C6.13521 18.4006 6.28572 18.764 6.28572 19.1429C6.28572 19.5217 6.13521 19.8851 5.8673 20.153C5.59939 20.4209 5.23602 20.5714 4.85714 20.5714ZM12 14.8571C11.2422 14.8571 10.5155 14.5561 9.97969 14.0203C9.44388 13.4845 9.14286 12.7578 9.14286 12C9.14286 11.2422 9.44388 10.5155 9.97969 9.97969C10.5155 9.44388 11.2422 9.14286 12 9.14286C12.7578 9.14286 13.4845 9.44388 14.0203 9.97969C14.5561 10.5155 14.8571 11.2422 14.8571 12C14.8571 12.7578 14.5561 13.4845 14.0203 14.0203C13.4845 14.5561 12.7578 14.8571 12 14.8571ZM19.1429 20.5714C18.764 20.5714 18.4006 20.4209 18.1327 20.153C17.8648 19.8851 17.7143 19.5217 17.7143 19.1429C17.7143 18.764 17.8648 18.4006 18.1327 18.1327C18.4006 17.8648 18.764 17.7143 19.1429 17.7143C19.5217 17.7143 19.8851 17.8648 20.153 18.1327C20.4209 18.4006 20.5714 18.764 20.5714 19.1429C20.5714 19.5217 20.4209 19.8851 20.153 20.153C19.8851 20.4209 19.5217 20.5714 19.1429 20.5714Z"})))}])},492482,e=>{"use strict";var t=e.i(271645),r=e.i(981140),n=e.i(30030),a=e.i(248425),i=e.i(832006),s=e.i(369340),o=e.i(843476),l="ContextMenu",[c,d]=(0,n.createContextScope)(l,[i.createMenuScope]),u=(0,i.createMenuScope)(),[m,p]=c(l),f=e=>{let{__scopeContextMenu:r,children:n,onOpenChange:a,open:c,dir:d,modal:p=!0}=e,f=t.useRef(!1);{let e=t.useRef(!1);t.useEffect(()=>{!0!==c||f.current||e.current||(e.current=!0,console.warn("ContextMenu: The `open` prop has been set to `true` before the user has interacted with the trigger, so its position is indeterminate. This is likely unintended and will result in the menu being anchored to the top-left corner of the viewport."))},[c])}let[h,g]=(0,s.useControllableState)({prop:c,defaultProp:!1,onChange:a,caller:l}),x=u(r);return(0,o.jsx)(m,{scope:r,open:h,onOpenChange:g,modal:p,hasInteractedRef:f,children:(0,o.jsx)(i.Root,{...x,dir:d,open:h,onOpenChange:g,modal:p,children:n})})};f.displayName=l;var h="ContextMenuTrigger",g=t.forwardRef((e,n)=>{let{__scopeContextMenu:s,disabled:l=!1,...c}=e,d=p(h,s),m=u(s),f=t.useRef({x:0,y:0}),g=t.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...f.current})}),x=t.useRef(0),b=t.useCallback(()=>window.clearTimeout(x.current),[]),v=e=>{d.hasInteractedRef.current=!0,f.current={x:e.clientX,y:e.clientY},d.onOpenChange(!0)};return t.useEffect(()=>b,[b]),t.useEffect(()=>void(l&&b()),[l,b]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.Anchor,{...m,virtualRef:g}),(0,o.jsx)(a.Primitive.span,{"data-state":d.open?"open":"closed","data-disabled":l?"":void 0,...c,ref:n,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:l?e.onContextMenu:(0,r.composeEventHandlers)(e.onContextMenu,e=>{b(),v(e),e.preventDefault()}),onPointerDown:l?e.onPointerDown:(0,r.composeEventHandlers)(e.onPointerDown,O(e=>{b(),d.open&&d.onOpenChange(!1),x.current=window.setTimeout(()=>v(e),700)})),onPointerMove:l?e.onPointerMove:(0,r.composeEventHandlers)(e.onPointerMove,O(b)),onPointerCancel:l?e.onPointerCancel:(0,r.composeEventHandlers)(e.onPointerCancel,O(b)),onPointerUp:l?e.onPointerUp:(0,r.composeEventHandlers)(e.onPointerUp,O(b))})]})});g.displayName=h;var x=e=>{let{__scopeContextMenu:t,...r}=e,n=u(t);return(0,o.jsx)(i.Portal,{...n,...r})};x.displayName="ContextMenuPortal";
9var b="ContextMenuContent",v=t.forwardRef((e,r)=>{let{__scopeContextMenu:n,...a}=e,s=p(b,n),l=u(n),c=t.useRef(!1);return(0,o.jsx)(i.Content,{...l,...a,ref:r,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&c.current&&t.preventDefault(),c.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||s.modal||(c.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});v.displayName=b;var C=t.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=u(r);return(0,o.jsx)(i.Group,{...a,...n,ref:t})});C.displayName="ContextMenuGroup";var w=t.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=u(r);return(0,o.jsx)(i.Label,{...a,...n,ref:t})});w.displayName="ContextMenuLabel";var y=t.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=u(r);return(0,o.jsx)(i.Item,{...a,...n,ref:t})});y.displayName="ContextMenuItem";var j=t.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=u(r);return(0,o.jsx)(i.CheckboxItem,{...a,...n,ref:t})});j.displayName="ContextMenuCheckboxItem";var S=t.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=u(r);return(0,o.jsx)(i.RadioGroup,{...a,...n,ref:t})});S.displayName="ContextMenuRadioGroup";var E=t.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=u(r);return(0,o.jsx)(i.RadioItem,{...a,...n,ref:t})});E.displayName="ContextMenuRadioItem";var k=t.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=u(r);return(0,o.jsx)(i.ItemIndicator,{...a,...n,ref:t})});k.displayName="ContextMenuItemIndicator";var M=t.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=u(r);return(0,o.jsx)(i.Separator,{...a,...n,ref:t})});M.displayName="ContextMenuSeparator";var R=t.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=u(r);return(0,o.jsx)(i.Arrow,{...a,...n,ref:t})});R.displayName="ContextMenuArrow";var D="ContextMenuSub",T=e=>{let{__scopeContextMenu:t,children:r,onOpenChange:n,open:a,defaultOpen:l}=e,c=u(t),[d,m]=(0,s.useControllableState)({prop:a,defaultProp:l??!1,onChange:n,caller:D});return(0,o.jsx)(i.Sub,{...c,open:d,onOpenChange:m,children:r})};T.displayName=D;var N=t.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=u(r);return(0,o.jsx)(i.SubTrigger,{...a,...n,ref:t})});N.displayName="ContextMenuSubTrigger";var A=t.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=u(r);return(0,o.jsx)(i.SubContent,{...a,...n,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});function O(e){return t=>"mouse"!==t.pointerType?e(t):void 0}A.displayName="ContextMenuSubContent",e.s(["Arrow",0,R,"CheckboxItem",0,j,"Content",0,v,"ContextMenu",0,f,"ContextMenuArrow",0,R,"ContextMenuCheckboxItem",0,j,"ContextMenuContent",0,v,"ContextMenuGroup",0,C,"ContextMenuItem",0,y,"ContextMenuItemIndicator",0,k,"ContextMenuLabel",0,w,"ContextMenuPortal",0,x,"ContextMenuRadioGroup",0,S,"ContextMenuRadioItem",0,E,"ContextMenuSeparator",0,M,"ContextMenuSub",0,T,"ContextMenuSubContent",0,A,"ContextMenuSubTrigger",0,N,"ContextMenuTrigger",0,g,"Group",0,C,"Item",0,y,"ItemIndicator",0,k,"Label",0,w,"Portal",0,x,"RadioGroup",0,S,"RadioItem",0,E,"Root",0,f,"Separator",0,M,"Sub",0,T,"SubContent",0,A,"SubTrigger",0,N,"Trigger",0,g,"createContextMenuScope",0,d],79602);var P=e.i(79602);e.s(["ContextMenu",0,P],492482)},20406,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(675545),a=e.i(492482);e.i(529333);var i=e.i(128769);let s=a.ContextMenu.Root,o=a.ContextMenu.Trigger,l=a.ContextMenu.Portal,c=(0,r.forwardRef)(({children:e,...r},n)=>(0,t.jsx)(a.ContextMenu.Content,{...r,ref:n,className:"shadow-marketing-elevation-popover z-(--z-index-highest) overflow-hidden rounded-lg border border-marketing-divider-subtlest bg-marketing-surface-raised py-1 focus:outline-hidden",alignOffset:-4,children:e})),d=(0,r.forwardRef)(({children:e,...r},n)=>(0,t.jsxs)(a.ContextMenu.Item,{...r,ref:n,className:(0,i.cn)("mx-1 flex h-7 cursor-pointer items-center justify-between rounded-sm px-2 text-sm select-none hover:bg-marketing-surface-faded focus:bg-marketing-surface-faded focus:outline-hidden",{"pointer-events-none opacity-30":r.disabled,"focu
9s:bg-marketing-surface-danger":r.isDestructive}),onSelect:r.onSelect,disabled:r.disabled,children:[(0,t.jsx)("span",{className:"max-w-xs pr-4",children:e}),r.keyboardShortcut&&(0,t.jsx)("kbd",{className:"mr-1 ml-2 rounded-sm px-1.5 text-2xs leading-normal opacity-50",children:r.keyboardShortcut})]})),u=(0,r.forwardRef)(({children:e,...r},n)=>(0,t.jsx)(a.ContextMenu.Separator,{...r,ref:n,className:"my-1 h-px border-b border-marketing-divider",children:e}));var m=e.i(365851);e.s(["Logo",0,function({showWordmark:e=!0,maskingAnimationOnHover:a=!1,brandContextMenu:p,className:f,...h}){let[g,x]=(0,r.useMemo)(()=>[e?128:20,24],[e]),b=(0,t.jsxs)("svg",{"aria-hidden":"true",focusable:"false",width:g,height:x,viewBox:`0 0 ${g} ${x}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,i.cn)(f,a&&"lg:group-hover:animate-flare","fill-current"),...h,children:[e&&(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.8316 3.21884H26L26.0007 19.9974H28.8316V3.21884ZM34.0855 8.01549H31.2547V19.9974H34.0855V8.01549ZM34.0855 3.08984H31.2547V6.14356H34.0855V3.08984ZM38.2401 8.01549H35.1978L39.4807 19.9974H42.6398L46.9226 8.01549H43.9269L42.1367 13.6908C42.0901 13.8384 41.9224 14.416 41.6336 15.4222L41.0602 17.3529C40.7213 16.1277 40.3665 14.9069 39.996 13.6908L38.2401 8.01549ZM58.5185 11.7601C58.2841 10.9567 57.9408 10.2737 57.4879 9.71184C56.9805 9.08118 56.3376 8.59313 55.5579 8.24984C54.7853 7.89868 53.9274 7.72381 52.9836 7.72381C51.1897 7.72381 49.7542 8.28496 48.6778 9.40798C48.1408 9.9882 47.7303 10.6737 47.4723 11.4211C47.2072 12.1929 47.0746 13.0472 47.0746 13.9832C47.0746 15.9877 47.6092 17.5364 48.6785 18.6286C49.7621 19.7359 51.2055 20.2898 53.0072 20.2898C54.5517 20.2898 55.803 
919.943 56.7633 19.2485C57.723 18.5541 58.3586 17.5249 58.6704 16.1597L55.909 15.949C55.7765 16.69 55.4719 17.244 54.996 17.6102C54.5201 17.9693 53.8493 18.1492 52.9836 18.1492C51.0027 18.1492 49.9886 17.0333 49.942 14.8023H58.8575L58.8696 14.4046C58.8696 13.445 58.7521 12.5635 58.5185 11.7601ZM50.5734 10.918C51.0729 10.2157 51.8763 9.86449 52.9836 9.86449C53.5218 9.86449 53.9747 9.93831 54.341 10.0867C54.7079 10.235 55.024 10.4729 55.2891 10.8005C55.4953 11.0547 55.6539 11.3441 55.7571 11.6547C55.8734 11.9788 55.9443 12.3174 55.9678 12.6609H49.9649C50.0352 11.9665 50.238 11.3853 50.5734 10.918ZM69.8685 8.48419C69.0651 7.96103 68.137 7.70016 67.0842 7.70016H67.0827C66.3188 7.70016 65.6207 7.85568 64.9886 8.16814C64.3667 8.4713 63.8342 8.9309 63.4435 9.50186V3.21884H60.6126V19.9974H63.4442V18.3477C63.8031 18.9405 64.3115 19.4286 64.9184 19.7631C65.5505 20.1143 66.2485 20.2898 67.0125 20.2898C68.0739 20.2898 69.0135 20.0361 69.8341 19.5295C70.6525 19.0228 71.2882 18.2968 71.7404 17.3529C72.2005 16.4012 72.4313 15.2861 72.4313 14.0068C72.4313 12.7584 72.2041 11.659 71.7526 10.7073C71.3076 9.74768 70.6797 9.00664 69.8685 8.48419ZM68.663 17.1774C68.2108 17.8639 67.4389 18.2065 66.346 18.2065C65.3627 18.2065 64.6224 17.8517 64.1236 17.1422C63.6241 16.4327 63.3747 15.395 63.3747 14.0298C63.3747 12.7111 63.5968 11.682 64.0412 10.9409C64.4941 10.192 65.2545 9.81791 66.3231 9.81791C67.4153 9.81791 68.1914 10.1612 68.6516 10.847C69.1124 11.5257 69.3417 12.5792 69.3417 14.0068C69.3417 15.4337 69.116 16.4908 68.663 17.1774ZM77.0302 3.21884H74.1986V19.9974H77.0302V3.21884ZM81.6169 19.5409C82.5379 20.0404 83.6294 20.2898 84.8936 20.2898C86.1105 20.2898 87.1791 20.0283 88.0993 19.5065C89.0131 18.9985 89.7576 18.2335 90.2407 17.3064C90.7474 16.3546 91.0011 15.2545 91.0011 14.0068C91.0011 12.8057 90.7517 11.7285 90.2522 10.7775C89.7734 9.83933 89.0341 9.05921 88.1229 8.53078C87.202 7.99256 86.1256 7.72309 84.8936 7.72309C83.653 7.72309 82.5687 7.99256 81.6406 8.53078C80.7318 9.05692 79.9926 9.83235 79.5106 10.7653C79.0197 11.7092 78.7739 12.7899 78.7739 14.0068C78.7739 15.3018 79.0154 16.4206 79.4992 17.3644C79.9697 18.2867 80.7079 19.0453 81.6169 19.5409ZM87.245 17.1895C86.7691 17.8603 85.9851 18.1957 84.8936 18.1957C84.1525 18.1957 83.5556 18.0474 83.1033 17.7507C82.6504 17.4468 82.3229 16.9903 82.12 16.3819C81.9172 15.7655 81.8162 14.9736 81.8162 14.0061C81.8162 12.5556 82.0541 11.4949 82.53 10.8241C83.0137 10.1533 83.8014 9.81791 84.8936 9.81791C85.9779 9.81791 86.7577 10.1533 87.2335 10.8241C87.7173 11.4949 87.9588 12.5556 87.9588 14.0068C87.9588 15.4574 87.7209 16.518 87.245 17.1895ZM94.8626 19.5409C95.7756 20.0404 96.8635 20.2898 98.1277 20.2898C99.1103 20.2898 99.9882 20.1186 100.76 19.7753C101.533 19.432 102.16 18.9525 102.644 18.3362C103.129 17.708 103.447 16.967 103.568 16.1826L100.842 15.9024C100.655 16.6506 100.343 17.2089 99.9058 17.5751C99.4693 17.942 98.8759 18.1255 98.1277 18.1255C97.363 18.1255 96.7625 17.9693 96.3253 17.6568C95.8888 17.3372 95.5842 16.8814 95.413 16.288C95.241 15.6874 95.1557 14.927 95.1557 14.0068C95.1557 13.1017 95.241 12.3528 95.413 11.7601C95.5842 11.1595 95.8845 10.6994 96.3138 10.3791C96.751 10.0515 97.3552 9.88814 98.1277 9.88814C98.9541 9.88814 99.5668 10.1182 99.9646 10.5783C100.37 11.0305 100.659 11.6504 100.83 12.4388L103.51 11.9586C103.253 10.6793 102.671 9.65379 101.766 8.88194C100.869 8.10938 99.6564 7.72381 98.1277 7.72381C96.8793 7.72381 95.7992 7.98898 94.8862 8.51931C93.9847 9.03823 93.2562 9.81153 92.7921 10.7424C92.3083 11.6863 92.0661 12.7742 92.0661 14.0068C92.0661 15.309 92.304 16.4327 92.7799 17.3766C93.2637 18.3204 93.9581 19.0421 94.8626 19.5409ZM107.91 15.5512L109.232 14.287L112.742 19.9974H116.007L111.151 12.4732L115.855 8.01549H112.18L107.91 12.3922V3.21884H105.078V19.9974H107.91V15.5512ZM118.488 19.8569C119.284 20.1457 120.169 20.2897 121.144 20.2897C122.634 20.2897 123.862 19.993 124.83 19.4011C125.805 18.8077 126.293 17.8402 126.293 16.4986C126.293 15.6249 126.066 14.9384 125.614 14.4396C125.162 13.9322 124.623 13.5695 123.999 13.351C123.383 13.1252 122.544 12.8952 121.484 12.6608C120.867 12.5282 120.38 12.4035 120.021 12.2867C119.662 12.1692 119.373 12.0172 119.155 11.8302C118.945 11.6424 118.839 11.4009 118.839 11.1049C118.839 10.6678 119.034 10.3367 119.424 10.1102C119.814 9.88373 120.298 9.77049 120.875 9.77049C121.639 9.77049 122.236 9.95396 122.666 10.3209C123.102 10.6878 123.336 11.2375 123.3
967 11.9707L125.988 11.5378C125.863 10.1962 125.337 9.22511 124.408 8.62383C123.488 8.02398 122.31 7.72298 120.875 7.72298C120.032 7.72298 119.253 7.85126 118.535 8.10926C117.825 8.35866 117.252 8.75283 116.815 9.29176C116.378 9.82926 116.16 10.5079 116.16 11.3271C116.16 12.0839 116.347 12.6959 116.721 13.1639C117.102 13.6369 117.592 14.0102 118.149 14.2518C118.726 14.5019 119.451 14.7399 120.325 14.9656L121.051 15.1412C121.535 15.256 122.015 15.3887 122.49 15.5389C122.817 15.6407 123.086 15.7812 123.297 15.9603C123.508 16.1395 123.613 16.3739 123.613 16.6627C123.613 17.1694 123.402 17.5599 122.981 17.8323C122.568 18.106 121.963 18.2422 121.168 18.2422C120.356 18.2422 119.709 18.0394 119.225 17.6338C118.742 17.2281 118.496 16.6433 118.488 15.8786L115.821 16.1825C115.851 17.1034 116.105 17.8717 116.581 18.488C117.065 19.1044 117.7 19.5602 118.488 19.8569Z",fill:"currentColor"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5 9H0L4 13V18.5L13.5 9Z",fill:"currentColor"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.5 20H20L16 16V10.5L6.5 20Z",fill:"currentColor"})]});return p?(0,t.jsxs)(s,{children:[(0,t.jsx)(o,{children:b}),(0,t.jsx)(l,{children:(0,t.jsxs)(c,{children:[(0,t.jsx)(d,{onSelect:()=>{window.open(n.WEBSITE_ROUTES.HOME,"_ blank")},children:"Open link in new tab"}),(0,t.jsx)(u,{}),(0,t.jsx)(d,{onSelect:()=>{(0,m.default)('<svg width="384" height="72" viewBox="0 0 128 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M28.8316 3.21884H26L26.0007 19.9974H28.8316V3.21884ZM34.0855 8.01549H31.2547V19.9974H34.0855V8.01549ZM34.0855 3.08984H31.2547V6.14356H34.0855V3.08984ZM38.2401 8.01549H35.1978L39.4807 19.9974H42.6398L46.9226 8.01549H43.9269L42.1367 13.6908C42.0901 13.8384 41.9224 14.416 41.6336 15.4222L41.0602 17.3529C40.7213 16.1277 40.3665 14.9069 39.996 13.6908L38.2401 8.01549ZM58.5185 11.7601C58.2841 10.9567 57.9408 10.2737 57.4879 9.71184C56.9805 9.08118 56.3376 8.59313 55.5579 8.24984C54.7853 7.89868 53.9274 7.72381 52.9836 7.72381C51.1897 7.72381 49.7542 8.28496 48.6778 9.40798C48.1408 9.9882 47.7303 10.6737 47.4723 11.4211C47.2072 12.1929 47.0746 13.0472 47.0746 13.9832C47.0746 15.9877 47.6092 17.5364 48.6785 18.6286C49.7621 19.7359 51.2055 20.2898 53.0072 20.2898C54.5517 20.2898 55.803 
919.943 56.7633 19.2485C57.723 18.5541 58.3586 17.5249 58.6704 16.1597L55.909 15.949C55.7765 16.69 55.4719 17.244 54.996 17.6102C54.5201 17.9693 53.8493 18.1492 52.9836 18.1492C51.0027 18.1492 49.9886 17.0333 49.942 14.8023H58.8575L58.8696 14.4046C58.8696 13.445 58.7521 12.5635 58.5185 11.7601ZM50.5734 10.918C51.0729 10.2157 51.8763 9.86449 52.9836 9.86449C53.5218 9.86449 53.9747 9.93831 54.341 10.0867C54.7079 10.235 55.024 10.4729 55.2891 10.8005C55.4953 11.0547 55.6539 11.3441 55.7571 11.6547C55.8734 11.9788 55.9443 12.3174 55.9678 12.6609H49.9649C50.0352 11.9665 50.238 11.3853 50.5734 10.918ZM69.8685 8.48419C69.0651 7.96103 68.137 7.70016 67.0842 7.70016H67.0827C66.3188 7.70016 65.6207 7.85568 64.9886 8.16814C64.3667 8.4713 63.8342 8.9309 63.4435 9.50186V3.21884H60.6126V19.9974H63.4442V18.3477C63.8031 18.9405 64.3115 19.4286 64.9184 19.7631C65.5505 20.1143 66.2485 20.2898 67.0125 20.2898C68.0739 20.2898 69.0135 20.0361 69.8341 19.5295C70.6525 19.0228 71.2882 18.2968 71.7404 17.3529C72.2005 16.4012 72.4313 15.2861 72.4313 14.0068C72.4313 12.7584 72.2041 11.659 71.7526 10.7073C71.3076 9.74768 70.6797 9.00664 69.8685 8.48419ZM68.663 17.1774C68.2108 17.8639 67.4389 18.2065 66.346 18.2065C65.3627 18.2065 64.6224 17.8517 64.1236 17.1422C63.6241 16.4327 63.3747 15.395 63.3747 14.0298C63.3747 12.7111 63.5968 11.682 64.0412 10.9409C64.4941 10.192 65.2545 9.81791 66.3231 9.81791C67.4153 9.81791 68.1914 10.1612 68.6516 10.847C69.1124 11.5257 69.3417 12.5792 69.3417 14.0068C69.3417 15.4337 69.116 16.4908 68.663 17.1774ZM77.0302 3.21884H74.1986V19.9974H77.0302V3.21884ZM81.6169 19.5409C82.5379 20.0404 83.6294 20.2898 84.8936 20.2898C86.1105 20.2898 87.1791 20.0283 88.0993 19.5065C89.0131 18.9985 89.7576 18.2335 90.2407 17.3064C90.7474 16.3546 91.0011 15.2545 91.0011 14.0068C91.0011 12.8057 90.7517 11.7285 90.2522 10.7775C89.7734 9.83933 89.0341 9.05921 88.1229 8.53078C87.202 7.99256 86.1256 7.72309 84.8936 7.72309C83.653 7.72309 82.5687 7.99256 81.6406 8.53078C80.7318 9.05692 79.9926 9.83235 79.5106 10.7653C79.0197 11.7092 78.7739 12.7899 78.7739 14.0068C78.7739 15.3018 79.0154 16.4206 79.4992 17.3644C79.9697 18.2867 80.7079 19.0453 81.6169 19.5409ZM87.245 17.1895C86.7691 17.8603 85.9851 18.1957 84.8936 18.1957C84.1525 18.1957 83.5556 18.0474 83.1033 17.7507C82.6504 17.4468 82.3229 16.9903 82.12 16.3819C81.9172 15.7655 81.8162 14.9736 81.8162 14.0061C81.8162 12.5556 82.0541 11.4949 82.53 10.8241C83.0137 10.1533 83.8014 9.81791 84.8936 9.81791C85.9779 9.81791 86.7577 10.1533 87.2335 10.8241C87.7173 11.4949 87.9588 12.5556 87.9588 14.0068C87.9588 15.4574 87.7209 16.518 87.245 17.1895ZM94.8626 19.5409C95.7756 20.0404 96.8635 20.2898 98.1277 20.2898C99.1103 20.2898 99.9882 20.1186 100.76 19.7753C101.533 19.432 102.16 18.9525 102.644 18.3362C103.129 17.708 103.447 16.967 103.568 16.1826L100.842 15.9024C100.655 16.6506 100.343 17.2089 99.9058 17.5751C99.4693 17.942 98.8759 18.1255 98.1277 18.1255C97.363 18.1255 96.7625 17.9693 96.3253 17.6568C95.8888 17.3372 95.5842 16.8814 95.413 16.288C95.241 15.6874 95.1557 14.927 95.1557 14.0068C95.1557 13.1017 95.241 12.3528 95.413 11.7601C95.5842 11.1595 95.8845 10.6994 96.3138 10.3791C96.751 10.0515 97.3552 9.88814 98.1277 9.88814C98.9541 9.88814 99.5668 10.1182 99.9646 10.5783C100.37 11.0305 100.659 11.6504 100.83 12.4388L103.51 11.9586C103.253 10.6793 102.671 9.65379 101.766 8.88194C100.869 8.10938 99.6564 7.72381 98.1277 7.72381C96.8793 7.72381 95.7992 7.98898 94.8862 8.51931C93.9847 9.03823 93.2562 9.81153 92.7921 10.7424C92.3083 11.6863 92.0661 12.7742 92.0661 14.0068C92.0661 15.309 92.304 16.4327 92.7799 17.3766C93.2637 18.3204 93.9581 19.0421 94.8626 19.5409ZM107.91 15.5512L109.232 14.287L112.742 19.9974H116.007L111.151 12.4732L115.855 8.01549H112.18L107.91 12.3922V3.21884H105.078V19.9974H107.91V15.5512ZM118.488 19.8569C119.284 20.1457 120.169 20.2897 121.144 20.2897C122.634 20.2897 123.862 19.993 124.83 19.4011C125.805 18.8077 126.293 17.8402 126.293 16.4986C126.293 15.6249 126.066 14.9384 125.614 14.4396C125.162 13.9322 124.623 13.5695 123.999 13.351C123.383 13.1252 122.544 12.8952 121.484 12.6608C120.867 12.5282 120.38 12.4035 120.021 12.2867C119.662 12.1692 119.373 12.0172 119.155 11.8302C118.945 11.6424 118.839 11.4009 118.839 11.1049C118.839 10.6678 119.034 10.3367 119.424 10.1102C119.814 9.88373 120.298 9.77049 120.875 9.77049C121.639 9.77049 122.236 9.95396 122.666 10.3209C123.102 10.6878 123.336 11.2375 123.3
967 11.9707L125.988 11.5378C125.863 10.1962 125.337 9.22511 124.408 8.62383C123.488 8.02398 122.31 7.72298 120.875 7.72298C120.032 7.72298 119.253 7.85126 118.535 8.10926C117.825 8.35866 117.252 8.75283 116.815 9.29176C116.378 9.82926 116.16 10.5079 116.16 11.3271C116.16 12.0839 116.347 12.6959 116.721 13.1639C117.102 13.6369 117.592 14.0102 118.149 14.2518C118.726 14.5019 119.451 14.7399 120.325 14.9656L121.051 15.1412C121.535 15.256 122.015 15.3887 122.49 15.5389C122.817 15.6407 123.086 15.7812 123.297 15.9603C123.508 16.1395 123.613 16.3739 123.613 16.6627C123.613 17.1694 123.402 17.5599 122.981 17.8323C122.568 18.106 121.963 18.2422 121.168 18.2422C120.356 18.2422 119.709 18.0394 119.225 17.6338C118.742 17.2281 118.496 16.6433 118.488 15.8786L115.821 16.1825C115.851 17.1034 116.105 17.8717 116.581 18.488C117.065 19.1044 117.7 19.5602 118.488 19.8569Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M13.5 9H0L4 13V18.5L13.5 9Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M6.5 20H20L16 16V10.5L6.5 20Z" fill="currentColor"></path></svg>')},children:"Copy logo as SVG"}),(0,t.jsx)(d,{onSelect:()=>{window.open(n.PRESSKIT_PAGE,"_ blank")},children:"Open press kit"})]})})]}):b}],20406)},844925,e=>{"use strict";e.i(20406),e.s([])},80060,270751,e=>{"use strict";var t,r=e.i(843476),n=e.i(399004),a=e.i(271645),i=e.i(895203),s=e.i(675545);e.i(903057);var o=e.i(78293);e.i(612290);var l=e.i(393701);e.i(508578);var c=e.i(296413);e.i(867198);var d=e.i(869776);e.i(614446);var u=e.i(973856),m=((t=m||{})[t.None=0]="None",t[t.Submitting=1]="Submitting",t[t.Success=2]="Success",t[t.Error=3]="Error",t);e.s(["FeedbackDialog",0,function({children:e,wasItHelpful:t,sentFromFeedbackButton:m,open:p,setOpen:f}){let{user:h}=(0,n.useAuth)(),[g,x]=(0,a.useState)(h?.email??""),[b,v]=(0,a.useState)(""),[C,w]=(0,a.useState)(0),[,y]=(0,a.useTransition)();return(0,r.jsxs)(c.Dialog,{open:p,onOpenChange:e=>{f(e)},children:[(0,r.jsx)(c.DialogTrigger,{asChild:!0,children:e}),(0,r.jsxs)(c.DialogContent,{children:[(0,r.jsx)(c.DialogHeader,{children:(0,r.jsxs)("div",{children:[(0,r.jsx)(c.DialogTitle,{children:"Share your feedback"}),(0,r.jsx)("p",{className:"mt-1 text-sm text-product-subtle",children:"We read every response and reply if needed."})]})}),2===C||3===C?(0,r.jsx)(c.DialogBody,{children:(0,r.jsx)(o.Banner,{type:2===C?"success":"error",title:2===C?"Feedback sent":"Your message couldn’t be sent.",description:2===C?"Thank you for your feedback.":(0,r.jsxs)(r.Fragment,{children:["Please try again. If the problem persists, you can send us feedback directly at ",s.EMAIL_FEEDBACK,"."]}),onClose:3===C?()=>{v(""),w(0)}:void 0})}):(0,r.jsxs)("form",{onSubmit:e=>{e.preventDefault(),y(async()=>{w(1),"SUCCESS"===(await (0,i.submitFeedbackAction)({user:h?{name:(h?.firstName??"")+" "+(h?.lastName??""),email:h?.email??""}:{name:"Unknown",email:g},wasItHelpful:t,sentFromFeedbackButton:m,message:b,route:window.location.pathname})).type?w(2):w(3)})},children:[(0,r.jsxs)(c.DialogBody,{children:[!h&&(0,r.jsx)("div",{className:"mb-4",children:(0,r.jsx)(d.Input,{value:g,onChange:e=>x(e),placeholder:"Email address",type:"email",disabled:1===C})}),(0,r.jsx)(u.Textarea,{placeholder:"Your feedback…",rows:4,value:b,onChange:e=>{v(e)},disabled:1===C,autoFocus:!0})]}),(0,r.jsxs)(c.DialogFooter,{children:[(0,r.jsx)(c.DialogClose,{onClick:e=>{e.preventDefault(),f(!1)},disabled:1===C,asChild:!0,children:(0,r.jsx)(l.Button,{children:"Cancel"})}),(0,r.jsx)(l.Button,{appearance:"primary",loading:1===C,type:"submit",disabled:1===C,children:"Send feedback"})]})]})]})]})}],270751),e.s([],80060)},531574,e=>{"use strict";var t,r,n=e.i(271645);function a(){return(a=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return n.createElement("svg",a({"aria-hidden":"true",focusable:"false",width:32,height:32,viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=n.createElement("path",{d:"M26 10h-7v2h7v-2ZM26 15h-7v2h7v-2ZM26 20h-7v2h7v-2ZM13 10H6v2h7v-2ZM13 15H6v2h7v-2ZM13 20H6v2h7v-2Z"})),r||(r=n.createElement("path",{d:"M28 5H4a2.002 2.002 0 0 0-2 2v18a2.002 2.002 0 0 0 2 2h24a2.002 2.002 0 0 0 2-2V7a2.002 2.002 0 0 0-2-2ZM4 7h11v18H4V7Zm13 18V7h11v18H17Z"})))}])},464831,e=>{"use strict";e.i(153838),e.i(627372),e.s([])},46939,e=>{"use strict";var t,r=e.i(271645);function n(){return(n=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return r.createElement("svg",n({width:16,height:16,"aria-hidden":"true",focusable:"false",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=r.createElement("path",{d:"M5 3v1h6.295L3 12.295l.705.705L12 4.705V11h1V3H5Z"})))}])},536162,e=>{"use strict";e.i(271645),e.s(["getCssPixelVar",0,function(e){let t=parseInt(getComputedStyle(document.documentElement).getPropertyValue(e),10);return Number.isFinite(t)?t:0},"getDocsHref",0,function(e){return`/docs${e&&"/"!==e?e:""}`},"isCSSColor",0,function(e){return/^#[0-9a-fA-F]{6}$/.test(e)||/^rgb\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*\)$/.test(e)||/^rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*(0(\.\d+)?|1(\.0+)?)\s*\)$/.test(e)||/^hsl\(\s*\d+\s*,\s*\d+%?\s*,\s*\d+%?\s*\)$/.test(e)}])},969529,376123,e=>{"use strict";var t=e.i(269880),r=e.i(628759),n=e.i(510586),a=e.i(888722);let i={GLOBAL:"global",US:"fedramp",EU:"eu"},s={US_EAST_1:"us-east-1",EU_CENTRAL_1:"eu-central-1"},o=(0,r.enum_)(t.Permission);(0,r.oneOf)(["0","1","true","false"]).transform(e=>"1"===e||"true"===e).describe("Must be 0 or 1");let l=(0,r.regex)(/^[0-9a-f]{24}$/i,"Must be an object ID string").describe("Must be project ID").refineType(),c=(0,r.sized)(r.nonEmptyString,{max:128}).reject(e=>
9"."===e||".."===e?"Cannot be '.' or '..'":e.includes("*")?"Cannot contain '*'":null),d=c.refineType(),u=(0,r.nanoid)().describe("Must be internal room ID").refineType(),m=c.refineType();function p(e,t){return(0,r.sized)(e.transform(e=>e.trim()),t)}function f(e){return(0,r.nullish)(e,void 0)}e.s(["AWSRegionId",0,s,"CloudflareJurisdictionId",0,i,"externalRoomId",0,d,"internalRoomId",0,u,"isValidDomainFilter",0,function(e){let t;if(/^[a-zA-Z][a-zA-Z0-9+.-]*:\/\//.test(e)||/\*/.test(e))return!1;let r=e.indexOf("/"),n=-1===r?e:e.slice(0,r),a=-1===r?"":e.slice(r);if(a&&!/^\/[^\s?#]*$/.test(a)||n.includes(":")||n.startsWith("[")||n.endsWith("]")||!n.includes("."))return!1;try{t=new URL("http://"+n).hostname.toLowerCase()}catch(e){return!1}if(t.length<1||t.length>253)return!1;let i=t.split(".");if(!i.every(e=>e.length>0&&e.length<=63&&/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/.test(e)))return!1;let s=i[i.length-1];return!!/^[a-z]{2,}$/i.test(s)},"organizationId",0,m,"permission",0,o,"projectIdString",0,l],376123),p((0,r.regex)(/^[a-zA-Z0-9\s\-_().]+$/,"Only alphanumeric characters, spaces, and the following punctuation are allowed: -_()."),{min:1,max:100}),(0,r.optional)(p(r.string,{max:250}));let h=(0,r.enum_)(n.ProjectTypes),g=(0,r.enum_)(i),x=(0,r.enum_)(s),b=(0,r.object)({cfJurisdictionId:g,awsRegionId:x}),v=(0,r.inexact)({createdAt:r.flexDate,expiredAt:f(r.flexDate),prefix:r.string,last4:r.string,hash:r.string,value:f(r.string)}),C=(0,r.inexact)({createdAt:r.flexDate,expiredAt:f(r.flexDate),value:r.string,hash:r.string});(0,r.inexact)({_id:l,accountId:r.string,type:h,isPublicApiKeyEnabled:r.boolean,displayName:f(r.string),description:f(r.string),secretKeys:(0,r.array)(v),publicKeys:(0,r.array)(C),createdAt:r.flexDate,updatedAt:r.flexDate,deletedAt:f(r.flexDate),versionCreationTimeout:(0,r.nullish)(r.number),regionsConfiguration:f(b)}),t.Permission,r.string.transform(e=>JSON.parse(e)),(0,r.regex)(/^[^<>%|;~*\\\/]{1,50}$/,"Name must be non empty string with less than 50 characters and cannot contain any of the following characters: < > | ; * / \\");let w=(0,r.object)({type:(0,r.oneOf)(["lexical","tiptap","blocknote"]),rootKey:(0,r.array)(r.string)}),y={type:(0,r.constant)("room"),internalId:u,externalId:d,projectId:l,organizationId:m,textEditor:(0,r.optional)(w),metadata:(0,r.record)((0,r.either)((0,r.array)(r.string),r.string)),defaultAccesses:(0,r.array)(o),groupsAccesses:(0,r.record)((0,r.array)(o)),usersAccesses:(0,r.record)((0,r.array)(o)),createdAt:r.flexDate,updatedAt:(0,r.optional)(r.flexDate),deletedAt:(0,r.optional)(r.flexDate),editedAt:(0,r.optional)(r.flexDate),lastConnectedAt:(0,r.optional)(r.flexDate),statsUpdatedAt:(0,r.optional)(r.flexDate),numOfStorageItems:r.number,numOfYjsDocuments:r.number,numOfOtherItems:r.number,sizeOfStorageItems:r.number,sizeOfYjsDocuments:r.number,sizeOfOtherItems:r.number,numOfComments:r.number},j=(0,r.object)(y),S=(0,r.object)({...y,documentSize:r.number}),E=(0,r.object)({rooms:(0,r.array)(S),meta:(0,r.object)({nextCursor:(0,r.nullable)(r.string),numOfTotalRooms:r.number})}),k=(0,r.object)({connectionId:r.number,id:r.string,type:r.string}),M=(0,r.array)(k);(0,r.object)({data:M});let R=(0,r.sized)((0,r.startsWith)("maat_").describe("Must be Management API Access Token ID"),{size:26}),D=(0,r.oneOf)(["read:all","write:all"]),T=(0,r.either)((0,r.oneOf)(["7 days","30 days","90 days","1 year"]),r.flexDate);(0,r.object)({name:r.string,scopes:(0,r.array)(D),expiresAt:(0,r.optional)(T,"1 year")});let N=(0,r.object)({type:(0,r.constant)("management-api-access-token"),id:R,accountId:r.string,name:r.string,prefix:r.string,last4Chars:r.string,scopes:(0,r.array)(D),createdAt:r.flexDate,expiresAt:r.flexDate,lastUsedAt:(0,r.nullable)(r.flexDate)}),A=(0,r.sized)((0,r.startsWith)("lbs_").describe("Must be Management API Access Token Value"),{size:68});(0,r.object)({managementApiAccessToken:N,managementApiAccessTokenValue:A});let O=(0,r.object)({emoji:r.string,createdAt:r.flexDate,users:(0,r.array)((0,r.object)({id:r.string}))}),P=(0,r.object)({id:r.string,name:r.string,size:r.number,mimeType:r.string}),I=(0,r.object)({id:r.string,threadId:r.string,roomId:r.string,userId:r.string,createdAt:r.flexDate,editedAt:(0,r.optional)(r.flexDate),reactions:(0,r.array)(O),attachments:(0,r.array)(P),metadata:(0,r.record)(r.string,(0,r.either)(r.string,r.number,r.boolean,r.undefined_)),body:(0,r.optional)(r.jsonObject.refineType()),deletedAt:(0,r.optional)(r.flexDate)});(0,r.oneOf)(["createdAtDesc","createdAtAsc","mostReplies","lastActivity"]);let L=(0,r.oneOf)(["public","private"]),_=(0,r.object)({id:r.string,roomId:r.string,createdAt:r.flexDate,updatedAt:r.flexDate,comments:(0,r.array)(I),metadata:(0,r.record)(r.string,(0,r.either)(r.string,r.number,r.boolean,r.undefined_)),resolved:r.boolean,visibility:L,deletedAt:(0,r.optional)(r.flexDate)}),H=(0,r.object)({id:r.string,displayName:r.string,type:(0,r.enum_)(n.ProjectTypes)}),U=(0,r.object)({id:r.string,name:r.string,logoUrl:(0,r.optional)(r.string),role:r.string,numberOfMembers:r.number,activePlanType:a.planType,projects:(0,r.array)(H),hasRegionRestrictionAccess:r.boolean,workosOrganizationId:r.string}),z=(0,r.object)({editor:(0,r.oneOf)(["lexical","tiptap","blocknote"]),states:(0,r.array)((0,r.object)({key:r.string,state:(0,r.nullable)(r.unknown)}))});e.s(["accountSummaryDecoder",0,U,"managementApiTokenDecoder",0,N,"paginatedRoomsDecoder",0,E,"roomDecoder",0,j,"roomOnlineUsersDecoder",0,M,"roomTextEditorStateDecoder",0,z,"threadDecoder",0,_],969529)},761858,e=>{"use strict";var t,r=e.i(271645);function n(){return(n=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return r.createElement("svg",n({"aria-hidden":"true",focusable:"false",width:16,height:16,viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=r.createElement("path",{d:"M15 14.3 10.7 10c1.9-2.3 1.6-5.8-.7-7.7C7.7.4 4.2.7 2.3 3 .4 5.3.7 8.8 3 10.7c2 1.7 5 1.7 7 0l4.3 4.3.7-.7ZM2 6.5C2 4 4 2 6.5 2S11 4 11 6.5 9 11 6.5 11 2 9 2 6.5Z"})))}])},28733,e=>{e.v({"animate-in":"DropdownMenu-module__O_p4eG__animate-in",content:"DropdownMenu-module__O_p4eG__content",subcontent:"DropdownMenu-module__O_p4eG__subcontent"})},359740,e=>{"use strict";var t=e.i(843476),r=e.i(295692),n=e.i(271645),a=e.i(138959),i=e.i(177823);e.i(529333);var s=e.i(128769),o=e.i(28733);let l=r.DropdownMenu.Root,c=r.DropdownMenu.Trigger,d=r.DropdownMenu.Group,u=r.DropdownMenu.Portal,m=r.DropdownMenu.Sub,p=r.DropdownMenu.RadioGroup,f=n.default.forwardRef(({className:e,inset:n,children:a,...o},l)=>(0,t.jsxs)(r.DropdownMenu.SubTrigger,{ref:l,className:(0,s.cn)("flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-product-surface-base-alpha-subtle data-[state=open]:bg-product-surface-base-alpha-subtle",n&&"pl-8",e),...o,children:[a,(0,t.jsx)(i.default,{className:"ml-auto size-4 fill-product-icon"})]})),h=n.default.forwardRef(({className:e,...n},a)=>(0,t.jsx)(r.DropdownMenu.SubContent,{ref:a,className:(0,s.cn)(o.default.subcontent,"z-(--z-index-high) overflow-hidden rounded-md border border-product-divider bg-product-surface-base p-1 shadow-product-popover data-[side=bottom]:data-[align=center]:origin-top data-[side=bottom]:data-[align=end]:origin-top-right data-[side=bottom]:data-[align=start]:origin-top-left data-[side=left]:data-[align=center]:origin-right data-[side=right]:data-[align=center]:origin-left data-[side=top]:data-[align=center]:origin-bottom data-[side=top]:data-[align=end]:origin-bottom-right data-[side=top]:data-[align=start]:origin-bottom-left dark:bg-product-surface-raised"),alignOffset:-4,collisionPadding:16,...n})),g=n.default.forwardRef(({className:e,sideOffset:n=8,...a},i)=>(0,t.jsx)(r.DropdownMenu.Portal,{children:(0,t.jsx)(r.DropdownMenu.Content,{ref:i,sideOffset:n,className:(0,s.cn)(o.default.content,"z-(--z-index-high) min-w-32 overflow-hidden rounded-lg border border-product-divider bg-product-surface-base p-1 shadow-product-popover data-[side=bottom]:data-[align=center]:origin-top data-[side=bottom]:data-[align=end]:origin-top-right data-[side=bottom]:data-[align=start]:origin-top-left data-[side=left]:data-[align=center]:origin-right data-[side=right]:data-[align=center]:origin-left data-[side=top]:data-[align=center]:origin-bottom data-[side=top]:data-[align=end]:origin-bottom-right data-[side=top]:data-[align=start]:origin-bottom-left dark:bg-product-surface-raised",e),...a})})),x=n.default.forwardRef(({className:e,inset:n,active:a,destructive:i,...o},l)=>(0,t.jsx)(r.DropdownMenu.Item,{ref:l,className:(0,s.cn)(e,"relative flex cursor-pointer items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-product-surface-base-alpha-subtle focus-visible:ring-0 focus-visible:ring-offset-0 data-disabled:pointer-events-none data-highlighted:bg-product-surface-base-alpha-subtle",n&&"pl-8",{"text-product-danger":i,"bg-product-surface-base-alpha-subtle":a,"data-disabled:text-product-disabled":!a}),...o})),b=n.default.forwardRef(({className:e,children:n,checked:i,...o},l)=>(0,t.jsxs)(r.DropdownMenu.CheckboxItem,{ref:l,className:(0,s.cn)("relative flex cursor-pointer items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-product-surface-base-alpha-subtle data-disabled:pointer-events-none data-disabled:text-product-disabled data-highlighted:bg-product-surface-base-alpha-subtle",e),checked:i,...o,children:[(0,t.jsx)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:(0,t.jsx)(r.DropdownMenu.ItemIndicator,{children:(0,t.jsx)(a.default,{className:"size-4 fill-product-icon"})})}),n]})),v=n.default.forwardRef(({className:e,children:n,...i},o)=>(0,t.jsxs)(r.DropdownMenu.RadioItem,{ref:o,className:(0,s.cn)("relative flex cursor-pointer items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-product-surface-base-alpha-subtle data-disabled:pointer-events-none data-disabled:text-product-disabled data-highlighted:bg-product-surface-base-alpha-subtle",e),...i,children:[(0,t.jsx)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:(0,t.jsx)(r.DropdownMenu.ItemIndicator,{children:(0,t.jsx)(a.default,{className:"size-4 fill-product-icon"})})}),n]})),C=n.default.forwardRef(({className:e,inset:n,...a},i)=>(0,t.jsx)(r.DropdownMenu.Label,{ref:i,className:(0,s.cn)("px-2 py-1.5 text-2xs text-product-subtlest",n&&"pl-8",e),...a})),w=n.default.forwardRef(({className:e,...n},a)=>(0,t.jsx)(r.DropdownMenu.Separator,{ref:a,className:(0,s.cn)("-mx-1 my-1 h-px border-b border-product-divider-subtle",e),...n}));e.s(["DropdownMenu",0,l,"DropdownMenuCheckboxItem",0,b,"DropdownMenuContent",0,g,"DropdownMenuGroup",0,d,"DropdownMenuItem",0,x,"DropdownMenuLabel",0,C,"DropdownMenuPortal",0,u,"DropdownMenuRadioGroup",0,p,"DropdownMenuRadioItem",0,v,"DropdownMenuSeparator",0,w,"DropdownMenuShortcut",0,({className:e,...r})=>(0,t.jsx)("span",{className:(0,s.cn)("ml-auto pl-3 text-xs tracking-widest text-product-subtlest",e),...r}),"DropdownMenuSub",0,m,"DropdownMenuSubContent",0,h,"DropdownMenuSubTrigger",0,f,"DropdownMenuTrigger",0,c])},134835,e=>{"use strict";e.i(359740),e.s([])},659202,e=>{"use strict";var t,r=e.i(271645);function n(){return(n=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return r.createElement("svg",n({"aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none"},e),t||(t=r.createElement("path",{d:"M5 3v1h6.295L3 12.295l.705.705L12 4.705V11h1V3H5Z"})))}])},607485,457058,e=>{"use strict";var t,r,n=e.i(271645);function a(){return(a=Object.assign.bind()).apply(null,arguments)}function i(){return(i=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return n.createElement("svg",a({width:16,height:16,"aria-hidden":"true",focusable:"false",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=n.createElement("path",{d:"M13.502 5.414a15.076 15.076 0 0 0 11.594 18.194 11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3c-.059 0-.117.005-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555 1.008 1.008 0 0 0-.783-1.565A13.081 13.081 0 0 1 15.89 4.38 1.014 1.014 0 0 0 14.98 3Z"})))}],607485),e.s(["default",0,function(e){return n.createElement("svg",i({width:16,height:16,"aria-hidden":"true",focusable:"false",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=n.createElement("path",{d:"M16 12.005a4 4 0 1 1 0 8 4 4 0 0 1 0-8m0-2a6 6 0 1 0 0 12 6 6 0 0 0 0-12ZM6.808 5.398 5.394 6.813l3.505 3.505 1.415-1.414-3.506-3.506ZM7 15.005H2v2h5v-2ZM8.9 21.691l-3.506 3.506 1.414 1.414 3.505-3.506L8.9 21.691ZM17 25.005h-2v5h2v-5ZM23.1 21.691l-1.414 1.415 3.506 3.505 1.414-1.414-3.505-3.506ZM30 15.005h-5v2h5v-2ZM25.192 5.398l-3.506 3.506 1.415 1.414 3.505-3.505-1.414-1.415ZM17 2.005h-2v5h2v-5Z"})))}],457058)},770352,e=>{"use strict";var t=/[\\\/_+.#"@\[\(\{&]/,r=/[\\\/_+.#"@\[\(\{&]/g,n=/[\s-]/,a=/[\s-]/g;function i(e){return e.toLowerCase().replace(a," ")}var s=e.i(326999),o=e.i(271645),l=e.i(248425),c=e.i(610772),d=e.i(820783),u='[cmdk-group=""]',m='[cmdk-group-items=""]',p='[cmdk-item=""]',f=`${p}:not([aria-disabled="true"])`,h="cmdk-item-select",g="data-value",x=(e,s,o)=>{var l;return l=e,function e(i,s,o,l,c,d,u){if(d===s.length)return c===i.length?1:.99;var m=`${c},${d}`;if(void 0!==u[m])return u[m];for(var p,f,h,g,x=l.charAt(d),b=o.indexOf(x,c),v=0;b>=0;)(p=e(i,s,o,l,b+1,d+1,u))>v&&(b===c?p*=1:t.test(i.charAt(b-1))?(p*=.8,(h=i.slice(c,b-1).match(r))&&c>0&&(p*=Math.pow(.999,h.length))):n.test(i.charAt(b-1))?(p*=.9,(g=i.slice(c,b-1).match(a))&&c>0&&(p*=Math.pow(.999,g.length))):(p*=.17,c>0&&(p*=Math.pow(.999,b-c))),i.charAt(b)!==s.charAt(d)&&(p*=.9999)),(p<.1&&o.charAt(b-1)===l.charAt(d+1)||l.charAt(d+1)===l.charAt(d)&&o.charAt(b-1)!==l.charAt(d))&&.1*(f=e(i,s,o,l,b+1,d+2,u))>p&&(p=.1*f),p>v&&(v=p),b=o.indexOf(x,b+1);return u[m]=v,v}(l=o&&o.length>0?`${l+" "+o.join(" ")}`:l,s,i(l),i(s),0,0,{})},b=o.createContext(void 0),v=o.createContext(void 0),C=o.createContext(void 0),w=o.forwardRef((e,t)=>
9{let r=N(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=N(()=>new Set),a=N(()=>new Map),i=N(()=>new Map),s=N(()=>new Set),d=D(e),{label:C,children:w,value:y,onValueChange:j,filter:S,shouldFilter:E,loop:k,disablePointerSelection:M=!1,vimBindings:R=!0,...A}=e,O=(0,c.useId)(),_=(0,c.useId)(),H=(0,c.useId)(),U=o.useRef(null),z=P();T(()=>{if(void 0!==y){let e=y.trim();r.current.value=e,Z.emit()}},[y]),T(()=>{z(6,W)},[]);let Z=o.useMemo(()=>({subscribe:e=>(s.current.add(e),()=>s.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var a,i,s,o;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)F(),G(),z(1,$);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(H);e?e.focus():null==(a=document.getElementById(O))||a.focus()}if(z(7,()=>{var e;r.current.selectedItemId=null==(e=K())?void 0:e.id,Z.emit()}),n||z(5,W),(null==(i=d.current)?void 0:i.value)!==void 0){null==(o=(s=d.current).onValueChange)||o.call(s,null!=t?t:"");return}}Z.emit()}},emit:()=>{s.current.forEach(e=>e())}}),[]),V=o.useMemo(()=>({value:(e,t,n)=>{var a;t!==(null==(a=i.current.get(e))?void 0:a.value)&&(i.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,B(t,n)),z(2,()=>{G(),Z.emit()}))},item:(e,t)=>(n.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),z(3,()=>{F(),G(),r.current.value||$(),Z.emit()}),()=>{i.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=K();z(4,()=>{F(),(null==t?void 0:t.getAttribute("id"))===e&&$(),Z.emit()})}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{i.current.delete(e),a.current.delete(e)}),filter:()=>d.current.shouldFilter,label:C||e["aria-label"],getDisablePointerSelection:()=>d.current.disablePointerSelection,listId:O,inputId:H,labelId:_,listInnerRef:U}),[]);function B(e,t){var n,a;let i=null!=(a=null==(n=d.current)?void 0:n.filter)?a:x;return e?i(e,r.current.search,t):0}function G(){if(!r.current.search||!1===d.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=a.current.get(r),i=0;n.forEach(t=>{i=Math.max(e.get(t),i)}),t.push([r,i])});let n=U.current;q().sort((t,r)=>{var n,a;let i=t.getAttribute("id"),s=r.getAttribute("id");return(null!=(n=e.get(s))?n:0)-(null!=(a=e.get(i))?a:0)}).forEach(e=>{let t=e.closest(m);t?t.appendChild(e.parentElement===t?e:e.closest(`${m} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${m} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=U.current)?void 0:t.querySelector(`${u}[${g}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function $(){let e=q().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(g);Z.setState("value",t||void 0)}function F(){var e,t,s,o;if(!r.current.search||!1===d.current.shouldFilter){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let l=0;for(let a of n.current){let n=B(null!=(t=null==(e=i.current.get(a))?void 0:e.value)?t:"",null!=(o=null==(s=i.current.get(a))?void 0:s.keywords)?o:[]);r.current.filtered.items.set(a,n),n>0&&l++}for(let[e,t]of a.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=l}function W(){var e,t,r;let n=K();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(u))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function K(){var e;return null==(e=U.current)?void 0:e.querySelector(`${p}[aria-selected="true"]`)}function q(){var e;return Array.from((null==(e=U.current)?void 0:e.querySelectorAll(f))||[])}function J(e){let t=q()[e];t&&Z.setState("value",t.getAttribute(g))}function Y(e){var t;let r=K(),n=q(),a=n.findIndex(e=>e===r),i=n[a+e];null!=(t=d.current)&&t.loop&&(i=a+e<0?n[n.length-1]:a+e===n.length?n[0]:n[a+e]),i&&Z.setState("value",i.getAttribute(g))}function X(e){let t=K(),r=null==t?void 0:t.closest(u),n;for(;r&&!n;)n=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,u):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,u))?void 0:r.querySelector(f);n?Z.setState("value",n.getAttribute(g)):Y(e)}let Q=()=>J(q().length-1),ee=e=>{e.preventDefault(),e.metaKey?Q():e.altKey?X(1):Y(1)},et=e=>
9{e.preventDefault(),e.metaKey?J(0):e.altKey?X(-1):Y(-1)};return o.createElement(l.Primitive.div,{ref:t,tabIndex:-1,...A,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=A.onKeyDown)||t.call(A,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":R&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":R&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),J(0);break;case"End":e.preventDefault(),Q();break;case"Enter":{e.preventDefault();let t=K();if(t){let e=new Event(h);t.dispatchEvent(e)}}}}},o.createElement("label",{"cmdk-label":"",htmlFor:V.inputId,id:V.labelId,style:L},C),I(e,e=>o.createElement(v.Provider,{value:Z},o.createElement(b.Provider,{value:V},e))))}),y=o.forwardRef((e,t)=>{var r,n;let a=(0,c.useId)(),i=o.useRef(null),s=o.useContext(C),u=o.useContext(b),m=D(e),p=null!=(n=null==(r=m.current)?void 0:r.forceMount)?n:null==s?void 0:s.forceMount;T(()=>{if(!p)return u.item(a,null==s?void 0:s.id)},[p]);let f=O(a,i,[e.value,e.children,i],e.keywords),g=o.useContext(v),x=A(e=>e.value&&e.value===f.current),w=A(e=>!!p||!1===u.filter()||!e.search||e.filtered.items.get(a)>0);function y(){var e,t;j(),null==(t=(e=m.current).onSelect)||t.call(e,f.current)}function j(){g.setState("value",f.current,!0)}if(o.useEffect(()=>{let t=i.current;if(!(!t||e.disabled))return t.addEventListener(h,y),()=>t.removeEventListener(h,y)},[w,e.onSelect,e.disabled]),!w)return null;let{disabled:S,value:E,onSelect:k,forceMount:M,keywords:R,...N}=e;return o.createElement(l.Primitive.div,{ref:(0,d.composeRefs)(i,t),...N,id:a,"cmdk-item":"",role:"option","aria-disabled":!!S,"aria-selected":!!x,"data-disabled":!!S,"data-selected":!!x,onPointerMove:S||u.getDisablePointerSelection()?void 0:j,onClick:S?void 0:y},e.children)}),j=o.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:a,...i}=e,s=(0,c.useId)(),u=o.useRef(null),m=o.useRef(null),p=(0,c.useId)(),f=o.useContext(b),h=A(e=>!!a||!1===f.filter()||!e.search||e.filtered.groups.has(s));T(()=>f.group(s),[]),O(s,u,[e.value,e.heading,m]);let g=o.useMemo(()=>({id:s,forceMount:a}),[a]);return o.createElement(l.Primitive.div,{ref:(0,d.composeRefs)(u,t),...i,"cmdk-group":"",role:"presentation",hidden:!h||void 0},r&&o.createElement("div",{ref:m,"cmdk-group-heading":"","aria-hidden":!0,id:p},r),I(e,e=>o.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?p:void 0},o.createElement(C.Provider,{value:g},e))))}),S=o.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,a=o.useRef(null),i=A(e=>!e.search);return r||i?o.createElement(l.Primitive.div,{ref:(0,d.composeRefs)(a,t),...n,"cmdk-separator":"",role:"separator"}):null}),E=o.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,a=null!=e.value,i=o.useContext(v),s=A(e=>e.search),c=A(e=>e.selectedItemId),d=o.useContext(b);return o.useEffect(()=>{null!=e.value&&i.setState("search",e.value)},[e.value]),o.createElement(l.Primitive.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":d.listId,"aria-labelledby":d.labelId,"aria-activedescendant":c,id:d.inputId,type:"text",value:a?e.value:s,onChange:e=>{a||i.setState("search",e.target.value),null==r||r(e.target.value)}})}),k=o.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...a}=e,i=o.useRef(null),s=o.useRef(null),c=A(e=>e.selectedItemId),u=o.useContext(b);return o.useEffect(()=>{if(s.current&&i.current){let e=s.current,t=i.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),o.createElement(l.Primitive.div,{ref:(0,d.composeRefs)(i,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":c,"aria-label":n,id:u.listId},I(e,e=>o.createElement("div",{ref:(0,d.composeRefs)(s,u.listInnerRef),"cmdk-list-sizer":""},e)))}),M=o.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:a,contentClassName:i,container:l,...c}=e;return o.createElement(s.Root,{open:r,onOpenChange:n},o.createElement(s.Portal,{container:l},o.createElement(s.Overlay,{"cmdk-overlay":"",className:a}),o.createElement(s.Content,{"aria-label":e.label,"cmdk-dialog":"",className:i},o.createElement(w,{ref:t,...c}))))}),R=Object.assign(w,{List:k,Item:y,Input:E,Group:j,Separator:S,Dialog:M,Empty:o.forwardRef((e,t)=>
9A(e=>0===e.filtered.count)?o.createElement(l.Primitive.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:o.forwardRef((e,t)=>{let{progress:r,children:n,label:a="Loading...",...i}=e;return o.createElement(l.Primitive.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},I(e,e=>o.createElement("div",{"aria-hidden":!0},e)))})});function D(e){let t=o.useRef(e);return T(()=>{t.current=e}),t}var T="u"<typeof window?o.useEffect:o.useLayoutEffect;function N(e){let t=o.useRef();return void 0===t.current&&(t.current=e()),t}function A(e){let t=o.useContext(v),r=()=>e(t.snapshot());return o.useSyncExternalStore(t.subscribe,r,r)}function O(e,t,r,n=[]){let a=o.useRef(),i=o.useContext(b);return T(()=>{var s;let o=(()=>{var e;for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():a.current}})(),l=n.map(e=>e.trim());i.value(e,o,l),null==(s=t.current)||s.setAttribute(g,o),a.current=o}),a}var P=()=>{let[e,t]=o.useState(),r=N(()=>new Map);return T(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function I({asChild:e,children:t},r){let n;return e&&o.isValidElement(t)?o.cloneElement("function"==typeof(n=t.type)?n(t.props):"render"in n?n.render(t.props):t,{ref:t.ref},r(t.props.children)):r(t)}var L={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};e.s(["Command",0,R],770352)},461455,e=>{"use strict";var t,r,n=e.i(271645);function a(){return(a=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return n.createElement("svg",a({"aria-hidden":"true",focusable:"false",width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=n.createElement("path",{d:"M13.5 8.4v-.8l1-.8c.4-.3.4-.9.2-1.3l-1.2-2c-.2-.3-.5-.5-.9-.5-.1 0-.2 0-.3.1l-1.2.4c-.2-.1-.4-.3-.7-.4l-.3-1.3c0-.5-.4-.8-.9-.8H6.8c-.5 0-.9.3-1 .8l-.2 1.3c-.3.1-.5.2-.7.3L3.7 3h-.3c-.4 0-.7.2-.9.5l-1.2 2c-.2.4-.1.9.3 1.3l.9.9v.8l-.9.7c-.4.3-.5.9-.2 1.3l1.2 2c.1.3.4.5.8.5.1 0 .2 0 .3-.1l1.2-.4c.2.1.4.3.7.4l.3 1.3c.1.5.5.8 1 .8h2.4c.5 0 .9-.3 1-.8l.3-1.3c.2-.1.4-.2.7-.4l1.2.4c.1 0 .2.1.3.1.4 0 .7-.2.9-.5l1.1-2c.2-.4.2-.9-.2-1.3l-1.1-.8Zm-.9 3.6-1.7-.6c-.4.3-.9.6-1.4.8L9.2 14H6.8l-.4-1.8c-.5-.2-.9-.5-1.4-.8l-1.6.6-1.2-2 1.4-1.2c-.1-.5-.1-1.1 0-1.6L2.2 6l1.2-2 1.7.6c.4-.4.9-.6 1.4-.8L6.8 2h2.4l.4 1.8c.5.2.9.5 1.4.8l1.6-.6 1.2 2-1.4 1.2c.1.5.1 1.1 0 1.6l1.4 1.2-1.2 2Z"})),r||(r=n.createElement("path",{d:"M8 11c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3c0 1.6-1.3 3-3 3Zm0-5c-1.1 0-2 .8-2 1.9V8c0 1.1.8 2 1.9 2H8c1.1 0 2-.8 2-1.9V8c0-1.1-.8-2-2-2Z"})))}])},971616,779106,616986,e=>{"use strict";var t,r=e.i(843476),n=e.i(846932),a=e.i(271645);function i(){return(i=Object.assign.bind()).apply(null,arguments)}let s=function(e){return a.createElement("svg",i({width:16,height:16,viewBox:"0 0 32 32","aria-hidden":"true",focusable:"false",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=a.createElement("path",{d:"M28 4H4C3.46957 4 2.96086 4.21071 2.58579 4.58579C2.21071 4.96086 2 5.46957 2 6V22C2 22.5304 2.21071 23.0391 2.58579 23.4142C2.96086 23.7893 3.46957 24 4 24H12V28H8V30H24V28H20V24H28C28.5304 24 29.0391 23.7893 29.4142 23.4142C29.7893 23.0391 30 22.5304 30 22V6C30 5.46957 29.7893 4.96086 29.4142 4.58579C29.0391 4.21071 28.5304 4 28 4V4ZM18 28H14V24H18V28ZM28 22H4V6H28V22Z",fill:"currentColor"})))};e.s(["default",0,s],779106);var o=e.i(607485),l=e.i(457058);e.i(529333);var c=e.i(128769);let d=[{key:"system",icon:s,label:"System theme"},{key:"light",icon:l.default,label:"Light theme"},{key:"dark",icon:o.default,label:"Dark theme"}];e.s(["ThemeSwitcher",0,function({className:e,theme:t,onThemeChange:i}){let[s,o]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{o(!0)},[]),s)?(0,r.jsx)("div",{className:(0,c.cn)("relative isolate flex h-8 rounded-full bg-product-surface-base p-1 ring-1 ring-product-divider",e),children:d.map(({key:e,icon:a,label:s})=>{let o=t===e;return(0,r.jsxs)("button",{"aria-label":s,className:"relative size-6 rounded-full",onClick:()=>i(e),type:"button",children:[o&&(0,r.jsx)(n.motion.div,{className:"absolute inset-0 rounded-full bg-product-surface-base-alpha-subtle",layoutId:"activeTheme",transition:{type:"spring",duration:.5}}
9),(0,r.jsx)(a,{className:(0,c.cn)("relative z-10 m-auto size-4",o?"fill-product":"fill-product-subtle")})]},e)})}):null}],616986),e.s([],971616)},518704,e=>{"use strict";var t=e.i(843476),r=e.i(522016),n=e.i(271645),a=e.i(283599);let i=new Set(["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","IS","LI","NO","GB","UK"]);var s=e.i(675545);e.i(39967);var o=e.i(81636);e.i(612290);var l=e.i(393701);e.i(529333);var c=e.i(128769);async function d(e){return fetch(e).then(e=>e.json())}var u=e.i(365715);function m({value:e,onValueChange:u,domain:p,isInEurope:f}){var h,g;let x="marketing"===p?o.Button:l.Button,b="boolean"!=typeof f&&e?.consentGivenInEurope!==!0,{data:v,error:C}=(0,a.default)(b?"/api/location":null,d,{revalidateOnFocus:!1,revalidateOnReconnect:!1}),w="boolean"==typeof f?f:C||v?.country==null?void 0!==v||null!=C||null:null==(h=v.country)||""===h||i.has(h.toUpperCase());(0,n.useEffect)(()=>{!1!==w||(null===e||!0!==e.marketing||!0!==e.analytics)&&u({marketing:!0,analytics:!0,lastUpdated:new Date,essentials:!0,consentGivenInEurope:!1})},[w,e,u]);let y=!1;if(null!==w&&!1!==w&&e)if(!0!==e.consentGivenInEurope)y=!0;else if(void 0===e.lastUpdated)y=!0;else{let t=(g=new Date(e.lastUpdated),Math.floor((new Date().getTime()-g.getTime())/6048e5)),r=!0===e.marketing,n=!0===e.analytics;t>26?y=!0:!(t>1)||r||n||(y=!0)}return y?(0,t.jsxs)("div",{className:(0,c.cn)("fixed right-3.5 bottom-3.5 left-3.5 z-(--z-index-high) rounded-lg border px-5 pt-4 pb-5 sm:bottom-4 sm:left-4 sm:max-w-md",{"shadow-marketing-elevation-popover border-marketing-divider bg-marketing-surface-raised":"marketing"===p,"border-product-divider bg-product-surface-base-bold shadow-product-popover":"product"===p}),children:[(0,t.jsxs)("p",{className:(0,c.cn)("text-sm",{"text-marketing-subtler":"marketing"===p,"text-product-subtle":"product"===p}),children:["We use cookies to collect data to improve your experience on our site. Read our"," ",(0,t.jsx)(r.default,{href:s.WEBSITE_ROUTES.PRIVACY,className:(0,c.cn)("rounded-sm",{"marketing-link-subtle":"marketing"===p,"product-link-subtle":"product"===p}),children:"Privacy Policy"})," ","to learn more."]}),(0,t.jsxs)("div",{className:"mt-4 flex items-center justify-end gap-2",children:[(0,t.jsx)(x,{onClick:()=>{u({marketing:!1,analytics:!1,lastUpdated:new Date,essentials:!0,consentGivenInEurope:!0})},children:"Decline"}),(0,t.jsx)(x,{appearance:"primary",onClick:()=>{u({marketing:!0,analytics:!0,lastUpdated:new Date,essentials:!0,consentGivenInEurope:!0})},children:"Accept"})]})]}):null}e.s(["CookieConsentBannerImpl",0,m,"default",0,function({domain:e,isInEurope:r}){let{value:n,updateValue:a}=(0,u.useCookieSettings)();return(0,t.jsx)(m,{value:n,onValueChange:a,domain:e,isInEurope:r})}],518704)},528240,e=>{"use strict";var t,r=e.i(271645);function n(){return(n=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return r.createElement("svg",n({"aria-hidden":"true",focusable:"false",width:16,height:16,viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=r.createElement("path",{d:"M2 3h12v1H2V3Zm0 9h12v1H2v-1Zm0-6h12v1H2V6Zm0 3h12v1H2V9Z"})))}])},125551,e=>{"use strict";var t=e.i(843476),r=e.i(271645);let n=(0,r.createContext)(null);e.s(["DocsNavigationProvider",0,function({navigation:e,children:r}){return(0,t.jsx)(n.Provider,{value:e,children:r})},"useDocsNavigation",0,function(){let e=(0,r.useContext)(n);if(!e)throw Error("useDocsNavigation must be used within DocsNavigationProvider");return e}])},299527,e=>{"use strict";var t=e.i(843476),r=e.i(88653),n=e.i(846932),a=e.i(522016),i=e.i(618566),s=e.i(271645),o=e.i(364030),l=e.i(46939),c=e.i(675545);e.i(780225);var d=e.i(54369);e.i(529333);var u=e.i(128769),m=e.i(969557),p=e.i(536162),f=e.i(125551);let h="docs-nav-scroll",g=0;function x({children:e,title:a,defaultCollapsed:l=!1,routes:c}){let d=(0,i.usePathname)()??"/",m=(0,s.useCallback)(e=>{for(let t of e){if(t.hidden)continue;let e=t.path??t.href;if(e&&!e.startsWith("http")){let t=(0,p.getDocsHref)(e);if(d===t||d.startsWith(t+"/")||d.startsWith(t+"#"))return!0}if(t.routes&&m(t.routes))return!0}return!1},[d]),f=(0,s.useMemo)(()=>
9!l||m(c),[l,c,m]),[h,g]=(0,s.useState)(f);return(0,t.jsxs)("li",{children:[a&&(0,t.jsxs)("button",{type:"button",onClick:()=>g(!h),className:"flex w-full items-center justify-between gap-1.5 rounded-md px-2 py-1 text-sm font-medium text-product","aria-expanded":h,"aria-label":`${h?"Collapse":"Expand"} ${a} section`,children:[(0,t.jsx)("span",{children:a}),(0,t.jsx)(o.default,{className:(0,u.cn)("size-4 fill-product-icon-subtler transition duration-150 ease-out",{"-rotate-90":!h})})]}),(0,t.jsx)(r.AnimatePresence,{initial:!1,children:h&&(0,t.jsx)(n.motion.div,{className:"relative mb-3",initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeOut"},children:e})})]})}function b({href:e,title:d,isExternal:p=!1,className:f,subLinks:h,setHamburgerOpen:g,level:x=0}){let v=(0,i.usePathname)()??"/",C=(0,s.useMemo)(()=>(h??[])?.some(e=>e),[h]),w=(0,m.useMediaQuery)(`(min-width: ${c.BREAKPOINTS.LG}px)`),y=C&&(v===e||v.startsWith(e)),j=e.startsWith(c.DOCS_ROUTES.GET_STARTED)&&v.startsWith(c.DOCS_ROUTES.GET_STARTED)||v.replace(/#.*/,"")===e;return(0,t.jsxs)("li",{className:(0,u.cn)("relative",f),children:[(0,t.jsxs)(a.default,{href:e,target:p?"_blank":void 0,rel:p?"noopener noreferrer":void 0,className:(0,u.cn)("group flex w-full items-center justify-between gap-1.5 rounded-md px-2 py-1 text-sm transition duration-75 ease-out",{"text-product-subtle hover:text-product focus-visible:text-product":!j,"font-medium text-product-brand":j}),onClick:()=>{!w&&g&&g(!1)},children:[(0,t.jsx)(r.AnimatePresence,{initial:!1,children:x>0&&j&&(0,t.jsx)(n.motion.div,{className:"absolute left-2.5 h-5 w-px",initial:{opacity:0}
9,animate:{opacity:1},transition:{duration:.2,ease:"easeOut"},children:(0,t.jsx)(n.motion.div,{className:"absolute top-0 left-0 h-full border-l border-product-divider-brand",layout:!0,layoutId:"default-sub-nav-link",transition:{x:{duration:0},y:{type:"spring",stiffness:400,damping:30}}})})}),(0,t.jsxs)("span",{className:"flex items-center gap-1 truncate",style:x>0?{marginLeft:`${16*x}px`}:void 0,children:[(0,t.jsx)("span",{className:"truncate",children:d}),p&&(0,t.jsx)(l.default,{className:"size-4 shrink-0 fill-current opacity-70 transition duration-200 ease-out group-hover:opacity-90 group-focus:opacity-90"})]}),C&&(0,t.jsx)(o.default,{className:(0,u.cn)("size-4 transition duration-150 ease-out",j?"fill-product-icon-brand":"fill-product-icon-subtler group-hover:fill-product-icon group-focus-visible:fill-product-icon",{"-rotate-90":!y})})]}),C&&y&&(0,t.jsx)("ul",{className:(0,u.cn)("relative my-px flex flex-col gap-px",0===x&&"before:absolute before:top-[3px] before:bottom-[3px] before:left-2.5 before:w-px before:border-l before:border-product-divider"),children:h.map((e,r)=>e?(0,t.jsx)(b,{...e,level:x+1},r):null)})]})}e.s(["default",0,function(){let e=((0,i.usePathname)()??"/").startsWith(c.DOCS_ROUTES.API_REFERENCE),r=(0,f.useDocsNavigation)().filter(t=>!t.hidden&&!!t.routes.some(e=>!e.hidden&&(e.path??e.href))&&t.routes.every(e=>{let t=e.path??e.href;return t?.startsWith("/api-reference")})===e),n=(0,s.useRef)(null);return(0,s.useLayoutEffect)(()=>{let e=n.current;if(!e)return;e.scrollTop=function(){try{let e=sessionStorage.getItem(h);null!==e&&(g=Number(e))}catch{}return g}();let t=()=>{var t=e.scrollTop;g=t;try{sessionStorage.setItem(h,String(t))}catch{}};return e.addEventListener("scroll",t,{passive:!0}),()=>{e.removeEventListener("scroll",t)}},[]),(0,t.jsx)(d.ScrollArea,{className:"h-full flex-1",orientation:"vertical",viewportRef:n,children:(0,t.jsx)("ul",{className:"-mx-2 flex flex-col lg:px-4 lg:py-3 lg:pb-6",children:r.map((e,r)=>{let n="descending"===e.sort?[...e.routes].reverse():e.routes;return(0,t.jsx)(x,{title:e.title,defaultCollapsed:e.defaultCollapsed,routes:e.routes,children:(0,t.jsx)("ul",{className:"flex flex-col gap-px",children:n.map((e,r)=>{let n=e.path??e.href;if(e.hidden||!n)return null;let a=n.startsWith("http");return(0,t.jsx)(b,{href:a?n:(0,p.getDocsHref)(n),title:e.title,isExternal:a,subLinks:function e(t){let r=(t.routes??[]).map(t=>{let r=t.path??t.href;if(t.hidden||!r)return null;let n=r.startsWith("http");return{href:n?r:(0,p.getDocsHref)(r),title:t.title,isExternal:n,subLinks:t.routes?e(t):void 0}});return"descending"===t.sort?r.reverse():r}(e),level:0},r)})})},`${r}`)})})})}])},968030,e=>{"use strict";var t=e.i(843476),r=e.i(586011),n=e.i(271645);e.i(529333);var a=e.i(128769),i=e.i(95187);let s=(0,i.createServerReference)("40766123161212765b932a9b49925763f41a47fde1",i.callServer,void 0,i.findSourceMapURL,"handleSignOut"),o=(0,n.forwardRef)(({returnTo:e,asChild:n=!1,className:i,children:o,...l},c)=>{let d=n?r.Slot.Slot:"button";return(0,t.jsx)("form",{action:()=>s({returnTo:e}),children:(0,t.jsx)(d,{ref:c,...l,type:"submit",className:(0,a.cn)(i),onClick:e=>{e.preventDefault(),e.currentTarget.form?.requestSubmit(),l.onClick?.(e)},children:o})})});e.s(["SignOutButton",0,o],968030)},898813,e=>{"use strict";var t=e.i(843476);e.i(529333);var r=e.i(128769);e.s(["Avatar",0,function({size:e="md",imageUrl:n,initials:a,team:i,className:s,...o}){return(0,t.jsx)("div",{className:(0,r.cn)("relative flex aspect-square flex-none select-none",{"size-5":"xs"===e,"size-7":"sm"===e,"size-9":"md"===e,"size-14":"lg"===e,"size-16":"xl"===e,"size-20":"2xl"===e},s),...o,children:(0,t.jsx)("div",{className:(0,r.cn)("absolute inset-0 flex items-center justify-center overflow-hidden",{"inset-0":!i,"inset-px":i&&("xs"===e||"sm"===e),"inset-0.5":i&&("md"===e||"lg"===e||"xl"===e||"2xl"===e),"bg-product-surface-base-inverse":!n,"rounded-full":!i,"rounded-sm":"xs"===e&&i,rounded:"sm"===e&&i,"rounded-md":"md"===e&&i,"rounded-lg":("lg"===e||"xl"===e||"2xl"===e)&&i}),children:n?(0,t.jsx)("img",{className:"absolute inset-0 block h-full w-full object-cover",src:n,alt:""}):(0,t.jsx)("span",{className:(0,r.cn)("text-center font-semibold tracking-wide text-product-inverse",{"text-[9px]":"xs"===e||"sm"===e,"text-xs":"md"===e,"text-sm":"lg"===e,"text-base":"xl"===e||"2xl"===e}),children:a})})})}])},573504,e=>{"use strict";e.i(898813),e.s([])},204345,e=>{"use strict";
9let t=/^[a-z\u00C0-\u017F]/i;e.s(["default",0,function(e){let r="";if(!e)return r;let n=e.toUpperCase().split(/[\s+-]/),a=[];for(let e=0;e<n.length&&t.test(n[e]);e++)a.push(n[e]);if(a.length>=1&&(r+=a[0].substr(0,1)),a.length>=2){let e=!1;for(let t=1;t<a.length;t++)if(!a[t].match(/.\./)){e=!0,r+=a[t].substr(0,1);break}e||(r+=a[1].substr(0,1))}return r}])},466428,e=>{"use strict";var t,r=e.i(271645);function n(){return(n=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return r.createElement("svg",n({"aria-hidden":"true",focusable:"false",width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=r.createElement("path",{d:"M12 7h-1V4a3 3 0 0 0-6 0v3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1ZM6 4a2 2 0 1 1 4 0v3H6V4Zm6 10H4V8h8v6Z"})))}])},734116,e=>{"use strict";var t,r=e.i(271645);function n(){return(n=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return r.createElement("svg",n({"aria-hidden":"true",focusable:"false",width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=r.createElement("path",{d:"M8 2 3 7l.705.705L7.5 3.915V14h1V3.915l3.795 3.79L13 7 8 2Z"})))}])},331745,e=>{"use strict";var t=e.i(888722);class r extends Error{constructor(e="Unreachable unknown error"){super(e),Object.setPrototypeOf(this,r.prototype)}}e.s(["getPlanLabel",0,function(e){switch(e){case t.PlanType.Free:return"Free";case t.PlanType.Pro_2026_01:return"Pro";case t.PlanType.Team_2026_01:return"Team";case t.PlanType.Pro_2024_05:return"LegacyPro";case t.PlanType.Enterprise:return"Enterprise";case t.PlanType.Custom:return"Custom";case t.PlanType.Pro_2026_04_monthly:case t.PlanType.Pro_2026_04_annual:return"Pro";case t.PlanType.Team_2026_04_monthly:case t.PlanType.Team_2026_04_annual:return"Team";default:throw new r(`Unreachable argument: ${e}`)}}],331745)},275007,e=>{"use strict";e.s(["getUserNickName",0,function({user:e}){return e.firstName&&e.lastName?`${e.firstName} ${e.lastName}`.trim():e.email.split("@")[0]}])},887181,e=>{"use strict";e.s(["default",0,function(){return/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)}])},726163,e=>{"use strict";var t,r=e.i(271645);function n(){return(n=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return r.createElement("svg",n({"aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),t||(t=r.createElement("path",{d:"M6 2H3a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1Zm0 4H3V3h3v3ZM13 2h-3a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1Zm0 4h-3V3h3v3ZM6 9H3a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1Zm0 4H3v-3h3v3ZM13 9h-3a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1Zm0 4h-3v-3h3v3Z"})))}])},566755,579458,e=>{"use strict";var t,r,n,a=e.i(843476),i=e.i(618566),s=e.i(271645),o=e.i(761858);e.i(612290);var l=e.i(393701),c=e.i(770352),d=e.i(576364),u=e.i(734116),m=e.i(177823),p=e.i(258596),f=e.i(607485);function h(){return(h=Object.assign.bind()).apply(null,arguments)}let g=function(e){return s.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32",fill:"none"},e),t||(t=s.createElement("path",{d:"M22 8v2c2.206 0 4 1.794 4 4s-1.794 4-4 4H10v-5l-6 6 6 6v-5h12c3.309 0 6-2.691 6-6s-2.691-6-6-6Z"})))};var x=e.i(544794),b=e.i(457058);e.i(508578);var v=e.i(296413);e.i(529333);var C=e.i(128769);e.i(464831);var w=e.i(627372),y=e.i(531574);function j(){return(j=Object.assign.bind()).apply(null,arguments)}let S=function(e){return s.createElement("svg",j({"aria-hidden":"true",focusable:"false",width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=s.createElement("path",{d:"M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2Zm0-1a7 7 0 1 0 0 14A7 7 0 0 0 8 1Z"})),n||(n=s.createElement("path",{d:"m11.5 5.205-.705-.705-2.15 2.15a1.5 1.5 0 0 0-2 2L4.5 10.795l.705.705 2.15-2.15a1.5 1.5 0 0 0 2-2L11.5 5.205ZM8.5 8a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0ZM8 4.5A.75.75 0 1 0 8 3a.75.75 0 0 0 0 1.5Z"})))};e.s(["default",0,S],579458);var E=e.i(846324),k=e.i(726163),M=e.i(437460),R=e.i(466428),D=e.i(300399),T=e.i(461455),N=e.i(377848),A=e.i(707674);let O={anchor:M.default,api:N.default,guides:S,tutorial:S,examples:E.default,showcase:D.default,auth:R.default,docs:y.default,dashboard:T.default,team:A.default,project:k.default};var P=e.i(399004),I=e.i(628759),L=e.i(718812),_=e.i(969529),H=e.i(675545),U=e.i(293038);let z=[{id:"docs-get-started",title:"Get started",keywords:["start","begin","tutorial","intro","getting","started"],path:["Documentation"],href:H.DOCS_ROUTES.GET_STARTED,context:"docs",priority:1},{id:"docs-concepts",title:"Concepts",keywords:["how","why","benefits","features","overview"],path:["Concepts"],href:H.DOCS_ROUTES.CONCEPTS,context:"docs",priority:2},{id:"docs-guides",title:"Browse guides",keywords:["guides","tutorials","how-to","examples"],path:["Documentation","Guides"],href:H.DOCS_ROUTES.GUIDES,context:"docs",priority:4},{id:"docs-tutorials",title:"Browse tutorials",keywords:["tutorials","tutorial","learn","step-by-step"],path:["Documentation","Tutorials"],href:H.DOCS_ROUTES.TUTORIALS,
9context:"docs",priority:5},{id:"examples-browse",title:"Browse examples",keywords:["examples","demo","sample","code","showcase","apps"],path:["Examples"],href:H.WEBSITE_ROUTES.EXAMPLES,context:"docs",priority:6},{id:"team-projects",title:"Projects",keywords:["projects","project","add","setup","manage","overview","create","create project","new project"],path:["Dashboard","Projects"],href:e=>H.APP_ROUTES.ACCOUNT(e),context:"team",priority:2},{id:"team-members",title:"Team members",keywords:["members","team","users","people","invite","invitations","manage"],path:["Dashboard","Team members"],href:e=>H.APP_ROUTES.MEMBERS(e),context:"team",priority:1},{id:"team-settings",title:"Team settings",keywords:["settings","config","configuration","preferences","team"],path:["Dashboard","Settings"],href:e=>H.APP_ROUTES.SETTINGS(e),context:"team",priority:3},{id:"team-billing",title:"Billing",keywords:["billing","payment","subscription","plan","invoice"],path:["Dashboard","Billing"],href:e=>H.APP_ROUTES.BILLING(e),context:"team",priority:4},{id:"project-overview",title:"Overview",keywords:["overview","dashboard","stats","analytics","usage","metrics"],path:["Dashboard","Overview"],href:(e,t)=>H.APP_ROUTES.PROJECT(e,t),context:"project",priority:1},{id:"project-quickstart",title:"Quickstart",keywords:["quickstart","quick","start","setup","getting","started"],path:["Dashboard","Quickstart"],href:(e,t)=>H.APP_ROUTES.PROJECT_QUICKSTART(e,t),context:"project",priority:2},{id:"project-rooms",title:"Rooms",keywords:["rooms","spaces","channels","storage"],path:["Dashboard","Rooms"],href:(e,t)=>H.APP_ROUTES.PROJECT_ROOMS(e,t),context:"project",priority:3},{id:"project-events",title:"Events",keywords:["events","logs","activity","history"],path:["Dashboard","Events"],href:(e,t)=>H.APP_ROUTES.PROJECT_EVENTS(e,t),context:"project",priority:4},{id:"project-ai-copilots",title:"AI Copilots",keywords:["ai","copilots","assistant","chat","artificial"],path:["Dashboard","AI Copilots"],href:(e,t)=>H.APP_ROUTES.PROJECT_COPILOTS({accountId:e,projectId:t}),context:"project",priority:5},{id:"project-notifications",title:"Notifications",keywords:["notifications","alerts","email","messaging"],path:["Dashboard","Notifications"],href:(e,t)=>H.APP_ROUTES.PROJECT_NOTIFICATIONS(e,t),context:"project",priority:6},{id:"project-webhooks",title:"Webhooks",keywords:["webhooks","endpoints","integrations","callbacks"],path:["Dashboard","Webhooks"],href:(e,t)=>H.APP_ROUTES.PROJECT_WEBHOOKS(e,t),context:"project",priority:7},{id:"project-api-keys",title:"API keys",keywords:["api","keys","credentials","auth","authentication","token"],path:["Dashboard","API keys"],href:(e,t)=>H.APP_ROUTES.PROJECT_API_KEYS(e,t),context:"project",priority:8},{id:"project-settings",title:"Project settings",keywords:["settings","config","configuration","project"],path:["Dashboard","Project settings"],href:(e,t)=>H.APP_ROUTES.PROJECT_SETTINGS(e,t),context:"project",priority:9}];function Z(e,t,r=5){let n=e.toLowerCase();return z.filter(e=>e.context===t&&(e.title.toLowerCase().includes(n)||e.keywords.some(e=>e.includes(n))||e.path.some(e=>e.toLowerCase().includes(n)))).sort((e,t)=>{let r=e.title.toLowerCase().includes(n),a=t.title.toLowerCase().includes(n);return r&&!a?-1:!r&&a?1:e.priority-t.priority}).slice(0,r)}function V(e,t,r){let n="function"==typeof e.href?e.href(t,r):e.href;return{item:{title:e.title,href:n,path:e.path}}}function B({children:e,open:t,setOpen:r,context:n,accountId:o,projectId:l}){let d=(0,i.useRouter)(),[u,m]=(0,s.useState)(""),[p,f]=(0,s.useState)(""),[h,g]=(0,s.useState)(5),{createNewChat:x}=(0,w.useAiAssistant)(),{results:b,effectiveAccountId:y}=function(e){let{query:t,context:r,accountId:n,projectId:a}=e,{organizationId:i,user:o}=(0,P.useAuth)(),{data:l,isLoading:c}
9=(0,L.useSWRAugmented)(o?H.APP_ROUTER_API_ROUTES.GET_ACCOUNTS_SUMMARIES:null,(0,I.object)({accounts:(0,I.array)(_.accountSummaryDecoder)})),d="docs"===r?"docs":a&&n?"project":n?"team":"docs",u=n||i;return{results:(0,s.useMemo)(()=>(function(e){let{query:t,context:r,accountId:n,projectId:a,accountsData:i,maxResults:s=5}=e;if(!(t.length>0))return(function(e,t=3){return z.filter(t=>t.context===e).sort((e,t)=>e.priority-t.priority).slice(0,t)})(r,3).map(e=>({item:V(e,n,a).item,source:"action",priority:e.priority}));let o=[];if((function(e,t,r,n,a,i=5){let s=e.toLowerCase(),o=Z(e,t,i).map(e=>V(e,n,a));return s.length>=2?[...o,...function(e,t,r=5){if(!t)return[];let n=[],a=e.toLowerCase();for(let e of t.accounts){let t=e.name||"Unnamed team";for(let r of(t.toLowerCase().includes(a)&&n.push({item:{title:t,href:H.APP_ROUTES.ACCOUNT(e.id),path:["Dashboard","Team"]}}),e.projects))r.displayName.toLowerCase().includes(a)&&n.push({item:{title:r.displayName,href:H.APP_ROUTES.PROJECT(e.id,r.id),path:["Dashboard","Project",`${t}`]}})}return n.slice(0,r)}(e,r,i)].slice(0,i):o})(t,r,i,n,a,s).forEach(e=>{o.push({item:e.item,source:"action",priority:1})}),"docs"===r&&n){let e=Z(t,"team",s);(a?[...e,...Z(t,"project",s)]:e).forEach(e=>{o.push({item:V(e,n,a).item,source:"team"===e.context?"team":"project",priority:2})})}let l=U.fuse.search(t),c=new Set(o.map(e=>e.item.href));return l.forEach(e=>{c.has(e.item.href)||o.push({item:e.item,source:"fuse",priority:3})}),o.sort((e,t)=>e.priority-t.priority).slice(0,s)})({query:t,context:d,accountId:u,projectId:a,accountsData:l}),[t,d,u,a,l]),isLoading:c,searchContext:d,effectiveAccountId:u}}({query:p,context:n,accountId:o,projectId:l}),j=p.length>0,S=()=>{f(""),g(5)};return(0,a.jsxs)(v.Dialog,{open:t,onOpenChange:e=>{r(e),e||S()},children:[(0,a.jsx)(v.DialogTrigger,{asChild:!0,children:e}),(0,a.jsxs)(v.DialogContent,{className:(0,C.cn)("flex max-h-[90%] w-full flex-col md:max-w-2xl lg:bg-product-surface-base-bold","sm:top-[10vh]! sm:max-h-[80vh]! sm:translate-y-0!"),children:[(0,a.jsx)(v.DialogTitle,{className:"sr-only",children:"Search"}),(0,a.jsxs)(c.Command,{shouldFilter:!1,className:"w-full lg:rounded-b-lg lg:border-b lg:border-product-divider lg:bg-product-surface-base",value:u,onValueChange:m,children:[(0,a.jsx)(G,{onInputChange:f}),(0,a.jsx)($,{results:b,maxResults:h,onSelect:e=>{d.push(e),r(!1),S()},inputValue:p,isSearching:j,context:n,accountId:y,projectId:l,onAskAi:e=>{x(e),r(!1),S()}})]}),(0,a.jsx)(F,{})]})]})}function G({onInputChange:e}){return(0,a.jsxs)("div",{className:"relative flex h-14 flex-none items-center justify-between",children:[(0,a.jsx)(c.Command.Input,{onValueChange:e,className:"absolute inset-0 size-full truncate border-b border-b-product-divider-subtle bg-transparent pr-16 pl-12 text-sm placeholder:text-product-disabled focus-visible:ring-0 focus-visible:ring-transparent!",placeholder:"Search…"}),(0,a.jsx)(o.default,{className:"ml-5 h-4 w-4 fill-product-icon"}),(0,a.jsx)(v.DialogClose,{asChild:!0,children:(0,a.jsxs)("button",{className:"group z-10 flex aspect-square h-full items-center justify-end focus-visible:ring-0",children:[(0,a.jsx)("abbr",{title:"Escape",className:"mr-4 hidden h-7 items-center justify-center rounded-sm border border-product-divider bg-product-surface-base-bold px-1.5 font-mono text-2xs text-product-subtlest no-underline group-hover:bg-product-surface-base-alpha group-focus-visible:ring-2 group-focus-visible:ring-product-divider-brand group-focus-visible:ring-offset-2 group-focus-visible:ring-offset-product-surface-base lg:flex",children:"esc"}),(0,a.jsx)(p.default,{className:"mr-5 block fill-product-icon transition duration-100 ease-out group-hover:fill-product-icon-bolder group-focus:fill-product-icon-bolder lg:hidden"})]})})]})}function $({results:e,maxResults:t,onSelect:r,inputValue:n,isSearching:i,context:s,accountId:o,projectId:l,onAskAi:d}){let u=i&&(n.toLowerCase().includes("theme")||n.toLowerCase().includes("dark")||n.toLowerCase().includes("light")||n.toLowerCase().includes("mode")||n.toLowerCase().includes("switch")||n.toLowerCase().includes("color"));return(0,a.jsxs)(c.Command.List,{className:(0,C.cn)("**:[[cmdk-group-heading]]:px-3 **:[[cmdk-group-heading]]:pt-2 **:[[cmdk-group-heading]]:pb-0.5 **:[[cmdk-group-heading]]:font-mono **:[[cmdk-group-heading]]:text-2xs **:[[cmdk-group-heading]]:tracking-widest **:[[cmdk-group-heading]]:text-product-disabled **:[[cmdk-group-heading]]:uppercase **:[[cmdk-group-heading]]:select-none","[&_[cmdk-item]]:group/item [&_[cmdk-item][data-selected=true]]:bg-product-surface-base-alpha-subtle [&_[cmdk-item][data-selected=true]]:text-product [&_[cmdk-item][data-selected=true]:focus]:text-product [&_[cmdk-item][data-selected=true]:hover]:text-product **:[[cmdk-item]]:mx-2 **:[[cmdk-item]]:flex **:[[cmdk-item]]:items-center **:[[cmdk-item]]:gap-3 **:[[cmdk-item]]:rounded-sm **:[[cmdk-item]]:px-3 **:[[cmdk-item]]:py-2 **:[[cmdk-item]]:text-sm **:[[cmdk-item]]:transition-colors","[&_[cmdk-item]:first-child]:mt-2 [&_[cmdk-item]:last-child]:mb-2","[&_[cmdk-item]>svg]:size-4 [&_[cmdk-item]>svg]:fill-product-icon"),children:[u&&(0,a.jsx)(q,{}),e.slice(0,t).map(e=>(0,a.jsx)(Y,{item:e.item,onSelect:()=>r(e.item.href)},Q(e.item))),(e.length>
90||u)&&(0,a.jsx)("div",{"aria-hidden":!0,className:"my-2 h-px border-t border-product-divider-subtle"}),(0,a.jsx)(K,{inputValue:n,isSearching:i,context:s,accountId:o,projectId:l,onAskAi:d})]})}function F(){return(0,a.jsxs)("div",{className:"hidden items-center px-4 py-3 text-xs text-product-subtlest lg:flex lg:justify-end",children:[(0,a.jsx)("span",{className:"font-medium",children:"Navigate"}),(0,a.jsx)(W,{children:(0,a.jsx)(u.default,{className:"size-3 fill-product-icon"})}),(0,a.jsx)(W,{className:"ml-1.5",children:(0,a.jsx)(u.default,{className:"size-3 rotate-180 fill-product-icon"})}),(0,a.jsx)("span",{className:"ml-3 font-medium",children:"Select"}),(0,a.jsx)(W,{children:(0,a.jsx)(g,{className:"size-3 fill-product-icon"})})]})}function W({children:e,className:t}){return(0,a.jsx)("span",{className:(0,C.cn)("ml-2 inline-flex size-5 items-center justify-center rounded-xs border border-product-divider",t),children:e})}function K({inputValue:e,isSearching:t,context:r,accountId:n,projectId:i,onAskAi:s}){return(0,a.jsxs)(c.Command.Item,{onSelect:()=>{t&&e.trim()?s(e.trim()):s("")},children:[(0,a.jsx)(x.default,{className:"size-4 flex-none animate-mask-flare-loop fill-product-icon-brand!"}),(0,a.jsx)("span",{className:"font-medium",children:t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"font-normal text-product-subtle",children:"Ask AI about"})," ",e]}):"docs"===r?"Ask AI about documentation":i&&n?"Ask AI about this project":n?"Ask AI about your team":"Ask AI anything"})]})}function q(){let{value:e,updateValue:t}=(0,d.useDashboardSettings)(),r=e?.theme??"system",n=()=>"dark"===r?"Switch to light mode":"Switch to dark mode";return(0,a.jsxs)(c.Command.Item,{onSelect:()=>{t({theme:"dark"===r?"light":"dark"})},value:`theme switch dark light mode ${n().toLowerCase()}`,children:["dark"===r?(0,a.jsx)(b.default,{className:"size-4 flex-none fill-product-icon"}):(0,a.jsx)(f.default,{className:"size-4 flex-none fill-product-icon"}),(0,a.jsx)("span",{className:"font-medium",children:n()})]})}function J({item:e}){let t=O[function(e){let{href:t="",path:r=[]}=e,n=r[0]||"",a=r[1]||"";return t.includes("#")?"anchor":"Dashboard"===n&&"Team"===a?"team":"Dashboard"===n&&"Project"===a?"project":"Dashboard"===n||t.startsWith("/dashboard")?"dashboard":t.includes("/docs/api-reference")||t.includes("/rest-api-endpoints")?"api":"Documentation"===n&&"Guides"===a||"Guides"===n||t.startsWith("/docs/guides")?"guides":"Documentation"===n&&"Tutorials"===a||"Tutorial"===n||t.startsWith("/docs/tutorial")?"tutorial":"Examples"===n||t.startsWith("/examples")?"examples":"Showcase"===n||t.startsWith("/showcase")?"showcase":"Authentication"===n||t.startsWith("/docs/api-reference/authentication")?"auth":"docs"}(e)];return(0,a.jsx)(t,{})}function Y({item:e,onSelect:t}){return(0,a.jsxs)(c.Command.Item,{onSelect:t,value:Q(e),children:[(0,a.jsx)(J,{item:e}),(0,a.jsxs)("div",{className:"flex w-full flex-col gap-1",children:[(0,a.jsx)(X,{path:e.path}),(0,a.jsx)("div",{className:"font-medium",children:e.title})]})]})}function X({path:e}){return(0,a.jsx)("div",{className:"flex items-center truncate text-xs text-product-subtle",children:e.map((t,r)=>{let n=0===r,i=r===e.length-1;return n?(0,a.jsx)("span",{children:t},r):(0,a.jsxs)("span",{className:(0,C.cn)("flex items-center",!i&&"min-w-0"),children:[(0,a.jsx)(m.default,{className:"mx-1 h-auto w-2.5 flex-none fill-product-icon-subtler"}),(0,a.jsx)("span",{className:i?"whitespace-nowrap":"min-w-0 truncate",children:t})]},r)})})}function Q(e){return`${e.path.join("")}-${e.href}`}var ee=e.i(887181);e.s(["default",0,function({className:e,context:t,...r}){let[n,c]=(0,s.useState)(!1),d=function(){let[e,t]=(0,s.useState)("server");return(0,s.useEffect)(()=>{t((0,ee.default)()?"macOS":"windows")},[]),e}(),u=(0,i.useParams)(),{accountId:m,projectId:p}=(0,s.useMemo)(()=>u?{accountId:(Array.isArray(u.accountId)?u.accountId[0]:u.accountId)||void 0,projectId:(Array.isArray(u.projectId)?u.projectId[0]:u.projectId)||void 0}:{accountId:void 0,projectId:void 0},[u]),f=(0,s.useCallback)(()=>{c(!0)},[]);return(0,s.useEffect)(()=>
9{function e(e){"k"===e.key&&("macOS"===d?e.metaKey:e.ctrlKey)&&(e.preventDefault(),c(!0))}return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[d,c]),(0,a.jsx)(B,{open:n,setOpen:c,context:t,accountId:m,projectId:p,children:(0,a.jsxs)(l.Button,{className:(0,C.cn)("relative w-9 px-0","@5xl/header:w-56 @5xl/header:justify-start @5xl/header:pr-1.5 @5xl/header:pl-2",e),onClick:f,"aria-label":"Open search dialog",...r,children:[(0,a.jsx)(o.default,{className:(0,C.cn)("mx-0 size-4 flex-none fill-product-icon","@5xl/header:mr-2"),"aria-hidden":"true"}),(0,a.jsx)("span",{className:(0,C.cn)("hidden items-center text-left font-normal text-product-disabled","@5xl/header:inline-flex"),"aria-hidden":"true",children:"Search or ask AI…"}),(0,a.jsxs)("kbd",{className:"pointer-events-none ml-auto hidden items-center justify-center rounded-xs border border-product-divider bg-product-surface-base-alpha-subtle px-1.5 py-0.5 font-mono text-xs text-product-subtlest md:@5xl/header:inline-flex",children:["macOS"===d?"⌘":"Ctrl ","K"]})]})})}],566755)},650620,e=>{"use strict";var t=e.i(888722);let r={[t.PlanType.Free]:"default",[t.PlanType.Pro_2024_05]:"brand",[t.PlanType.Pro_2026_01]:"brand",[t.PlanType.Pro_2026_04_monthly]:"brand",[t.PlanType.Pro_2026_04_annual]:"brand",[t.PlanType.Team_2026_01]:"brand",[t.PlanType.Team_2026_04_monthly]:"brand",[t.PlanType.Team_2026_04_annual]:"brand",[t.PlanType.Enterprise]:"information",[t.PlanType.Custom]:"information"};e.s(["getPlanBadgeAppearance",0,function(e){return e?r[e]:"default"}])},839242,e=>{"use strict";var t=e.i(843476),r=e.i(271645);e.i(529333);var n=e.i(128769);function a(e){let{scrollTop:t,scrollHeight:r,clientHeight:n}=e,a=r-n;return a<=1?"none":t<=1?"top":a-t<=1?"bottom":"middle"}e.s(["ScrollFade",0,function({side:e,className:r}){return(0,t.jsx)("div",{"aria-hidden":!0,className:(0,n.cn)("pointer-events-none absolute inset-x-0 h-4 from-product-surface-base to-transparent dark:from-product-surface-raised","top"===e?"bg-linear-to-b":"bg-linear-to-t",r)})},"useScrollOverflow",0,function(){let[e,t]=(0,r.useState)("none");return{onScroll:(0,r.useCallback)(e=>{t(a(e.currentTarget))},[]),viewportRef:(0,r.useCallback)(e=>{if(!e)return void t("none");t(a(e));let r=new ResizeObserver(()=>{t(a(e))});return r.observe(e),e.firstElementChild&&r.observe(e.firstElementChild),()=>r.disconnect()},[]),hasContentAbove:"middle"===e||"bottom"===e,hasContentBelow:"top"===e||"middle"===e}}])},566180,e=>{"use strict";var t,r,n=e.i(843476),a=e.i(399004),i=e.i(522016),s=e.i(271645),o=e.i(275007),l=e.i(881750),c=e.i(566755),d=e.i(628759),u=e.i(618566),m=e.i(576364),p=e.i(718812),f=e.i(969529),h=e.i(968030),g=e.i(659202),x=e.i(138959),b=e.i(779106),v=e.i(607485),C=e.i(457058),w=e.i(675545);e.i(780225);var y=e.i(54369);e.i(573504);var j=e.i(898813);e.i(15710);var S=e.i(575295);e.i(134835);var E=e.i(359740),k=e.i(529019),M=e.i(204345),R=e.i(650620),D=e.i(331745),T=e.i(839242);let N=(0,n.jsx)(E.DropdownMenuLabel,{className:"sticky top-0 z-10 flex h-8 items-center bg-product-surface-base dark:bg-product-surface-raised",children:"Teams"}),A=(0,n.jsx)(T.ScrollFade,{side:"top",className:"top-8"}),O=(0,n.jsx)(T.ScrollFade,{side:"bottom",className:"bottom-0"}),P=(0,s.memo)(function({account:e,isCurrent:t,onSelect:r}){return(0,n.jsxs)(E.DropdownMenuItem,{"aria-current":t?"true":void 0,onSelect:()=>r({id:e.id,workosOrganizationId:e.workosOrganizationId}),children:[(0,n.jsxs)("span",{className:"flex min-w-0 flex-1 items-center gap-1.5",children:[(0,n.jsx)(j.Avatar,{className:"shrink-0",imageUrl:e.logoUrl,initials:e.initials,size:"xs",team:!0}),(0,n.jsx)("span",{className:"truncate",children:e.name}),(0,n.jsx)(S.Badge,{className:"shrink-0",size:"xs",appearance:(0,R.getPlanBadgeAppearance)(e.activePlanType),children:(0,D.getPlanLabel)(e.activePlanType)})]}),t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"sr-only",children:"Current team"}),(0,n.jsx)(x.default,{className:"ml-3 size-3.5 shrink-0 fill-product-icon"})]}):null]})});function I({children:e}){let{user:t,organizationId:r,refreshAuth:i}=(0,a.useAuth)();return t?(0,n.jsx)(L,{organizationId:r,refreshAuth:i,user:t,children:e}):null}function L({children:e,organizationId:t,refreshAuth:r,user:a}){let o=(0,u.usePathname)(),l=(0,k.useToastActions)(),c=(0,u.useRouter)(),{value:x,updateV
9alue:j}=(0,m.useDashboardSettings)(),S=x?.theme??"system",R=[a.firstName,a.lastName].filter(Boolean).join(" "),{viewportRef:D,onScroll:I,hasContentAbove:_,hasContentBelow:H}=(0,T.useScrollOverflow)(),{data:U}=(0,p.useSWRAugmented)(w.APP_ROUTER_API_ROUTES.GET_ACCOUNTS_SUMMARIES,(0,d.object)({accounts:(0,d.array)(f.accountSummaryDecoder)})),z=(0,s.useMemo)(()=>{var e;let r=U?.accounts;return r?.length?(e=r.map(e=>{let t=e.name||w.COMPANY_NAME;return{...e,name:t,initials:(0,M.default)(t)}}),e.length<=1?e.slice():e.toSorted((e,r)=>{let n=e.workosOrganizationId===t;return n!==(r.workosOrganizationId===t)?n?-1:1:e.name.localeCompare(r.name,"en",{sensitivity:"base"})})):[]},[U?.accounts,t]),Z=(0,s.useCallback)(async({id:e,workosOrganizationId:t})=>{try{await r({organizationId:t}),c.push(w.APP_ROUTES.ACCOUNT(e))}catch(e){console.error("Failed to switch account:",e),l.create({type:"error",title:"Failed to switch account."})}},[c,r,l]),V=z.length>0&&!o?.startsWith(w.APP_ROUTES.HOME);return(0,n.jsxs)(E.DropdownMenu,{children:[(0,n.jsx)(E.DropdownMenuTrigger,{asChild:!0,children:e}),(0,n.jsx)(E.DropdownMenuPortal,{children:(0,n.jsxs)(E.DropdownMenuContent,{align:"end",sideOffset:12,className:"w-64",children:[(0,n.jsxs)(E.DropdownMenuLabel,{className:"flex flex-col truncate",title:R?`${R} <${a.email}>`:a.email,children:[R?(0,n.jsx)("span",{className:"truncate text-sm font-medium text-product",children:R}):null,(0,n.jsx)("span",{className:"truncate text-xs",children:a.email})]}),(0,n.jsx)(E.DropdownMenuSeparator,{}),V?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(y.ScrollAreaRoot,{className:"max-h-52 w-full",type:"auto",children:[(0,n.jsxs)(y.ScrollAreaViewport,{className:"overscroll-none pb-1",ref:D,onScroll:I,children:[N,z.map(e=>(0,n.jsx)(P,{account:e,isCurrent:e.workosOrganizationId===t,onSelect:Z},e.id))]}),(0,n.jsx)(y.ScrollAreaScrollbar,{orientation:"vertical",children:(0,n.jsx)(y.ScrollAreaThumb,{})}),_?A:null,H?O:null]}),(0,n.jsx)(E.DropdownMenuSeparator,{className:"mt-0!"})]}):null,(0,n.jsx)(E.DropdownMenuItem,{onSelect:()=>c.push(w.APP_ROUTES.ACCOUNT_SETTINGS),children:"Personal settings"}),(0,n.jsxs)(E.DropdownMenuSub,{children:[(0,n.jsx)(E.DropdownMenuSubTrigger,{children:"Theme"}),(0,n.jsx)(E.DropdownMenuPortal,{children:(0,n.jsx)(E.DropdownMenuSubContent,{children:(0,n.jsxs)(E.DropdownMenuRadioGroup,{value:S,onValueChange:e=>j({theme:e}),children:[(0,n.jsxs)(E.DropdownMenuRadioItem,{value:"light",children:[(0,n.jsx)(C.default,{className:"mr-2 size-3.5 fill-product-icon"}),"Light"]}),(0,n.jsxs)(E.DropdownMenuRadioItem,{value:"dark",children:[(0,n.jsx)(v.default,{className:"mr-2 size-3.5 fill-product-icon"}),"Dark"]}),(0,n.jsxs)(E.DropdownMenuRadioItem,{value:"system",children:[(0,n.jsx)(b.default,{className:"mr-2 size-3.5 fill-product-icon"}),"System"]})]})})})]}),(0,n.jsx)(E.DropdownMenuSeparator,{}),(0,n.jsx)(E.DropdownMenuItem,{asChild:!0,children:(0,n.jsxs)(i.default,{href:w.WEBSITE_ROUTES.CHANGELOG,target:"_blank",children:["Changelog",(0,n.jsx)(g.default,{className:"-mt-1 ml-1 size-2 fill-product-icon"})]})}),(0,n.jsx)(E.DropdownMenuItem,{asChild:!0,children:(0,n.jsxs)(i.default,{href:w.DOCS_ROUTES.HOME,target:"_blank",children:["Documentation",(0,n.jsx)(g.default,{className:"-mt-1 ml-1 size-2 fill-product-icon"})]})}),(0,n.jsx)(E.DropdownMenuItem,{asChild:!0,children:(0,n.jsxs)(i.default,{href:w.SOCIAL_URLS.DISCORD,target:"_blank",children:["Join Discord community",(0,n.jsx)(g.default,{className:"-mt-1 ml-1 size-2 fill-product-icon"})]})}),(0,n.jsx)(E.DropdownMenuSeparator,{}),(0,n.jsx)(E.DropdownMenuItem,{onSelect:e=>{e.preventDefault()},asChild:!0,children:(0,n.jsx)(h.SignOutButton,{className:"w-full",children:"Sign out"})})]})})]})}e.i(844925);var _=e.i(20406);e.i(612290);var H=e.i(393701);e.i(529333);var U=e.i(128769),z=e.i(14983),Z=e.i(584789),V=e.i(846932);function B(){return(B=Object.assign.bind()).apply(null,arguments)}let G=function(e){return s.createElement("svg",B({width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=s.createElement("path",{d:"M10.1761 9.60999C10.1497 9.58382 10.114 9.56914 10.0768 9.56914C10.0396 9.56914 10.0039 9.58382 9.97747 9.60999L8.80677 10.7807L7.21947 9.19339L8.39193 8.02093C8.44642 7.96644 8.44642 7.87679 8.39193 7.8223L7.75208 7.18245C7.72565 7.15628 7.68996 7.1416 7.65277 7.1416C7.61557 7.1416 7.57988 7.15628 7.55345 7.18245L6.38099 8.35491L5.62513 7.59905C5.61201 7.58592 5.59637 7.57557 5.57915 7.56863C5.56194 7.56168 5.5435 7.55828 5.52493 7.55862C5.48978 7.55862 5.45286 7.57269 5.42474 7.59905L3.63529 9.39027C2.42415 10.6014 2.28177 12.4787 3.20814 13.8463L1.87044 15.184C1.84427 15.2104 1.82959 15.2461 1.82959 15.2833C1.82959 15.3205 1.84427 15.3562 1.87044 15.3827L2.61575 16.128C2.64388 16.1561 2.67904 16.1684 2.71595 16.1684C2.75286 16.1684 2.78802 16.1543 2.81614 16.128L4.15384 14.7903C4.74622 15.1928 5.43529 15.3932 6.12435 15.3932C7.02435 15.3932 7.92435 15.0504 8.61165 14.3631L10.4029 12.5719C10.4574 12.5174 10.4574 12.4278 10.4029 12.3733L9.64701 11.6174L10.8195 10.445C10.874 10.3905 10.874 10.3008 10.8195 10.2463L10.1761 9.60999Z"})),r||(r=s.createElement("path",{opacity:.4,d:"M11.6004 7.99509L10.0131 6.40779L9.17282 5.5
97107L8.41696 4.81521C8.36247 4.76072 8.36247 4.67107 8.41696 4.61658L10.2082 2.82537C10.8955 2.13806 11.7955 1.79529 12.6955 1.79529C13.3845 1.79529 14.0736 1.99568 14.666 2.39822L16.0037 1.06052C16.0318 1.03415 16.067 1.02009 16.1039 1.02009C16.1408 1.02009 16.1759 1.0324 16.2041 1.06052L16.9494 1.80583C16.9756 1.83226 16.9902 1.86796 16.9902 1.90515C16.9902 1.94235 16.9756 1.97804 16.9494 2.00447L15.6117 3.34216C16.5381 4.70974 16.3957 6.58708 15.1845 7.79822L13.3951 9.58943C13.367 9.6158 13.33 9.62986 13.2949 9.62986C13.2763 9.63021 13.2579 9.62681 13.2407 9.61986C13.2235 9.61291 13.2078 9.60256 13.1947 9.58943L12.4388 8.83357L11.6004 7.99509Z"})))};var $=e.i(531574),F=e.i(579458),W=e.i(846324),K=e.i(726163);function q({direction:e="horizontal",className:t,...r}){let a=(0,u.usePathname)()??"/",i=a.startsWith(w.DOCS_ROUTES.API_REFERENCE);return(0,n.jsx)("div",{className:t,...r,children:(0,n.jsxs)(V.motion.ul,{layout:!0,layoutRoot:!0,className:(0,U.cn)("flex pt-2 lg:pt-0",{"items-center gap-px":"horizontal"===e,"flex-col gap-2":"vertical"===e}),children:[(0,n.jsx)(J,{href:w.DOCS_ROUTES.HOME,label:"Documentation",icon:(0,n.jsx)($.default,{className:"size-4 fill-current"}),direction:e,isActive:!i&&!a.startsWith(w.DOCS_ROUTES.GUIDES)&&!a.startsWith(w.DOCS_ROUTES.TUTORIALS)}),(0,n.jsx)(J,{href:w.DOCS_ROUTES.API_REFERENCE,label:"API Reference",icon:(0,n.jsx)(G,{className:"size-4 fill-current"}),direction:e,isActive:i}),(0,n.jsx)(J,{href:w.DOCS_ROUTES.GUIDES,label:"Guides",icon:(0,n.jsx)(F.default,{className:"size-4 fill-current"}),direction:e,isActive:a.startsWith(w.DOCS_ROUTES.GUIDES)}),(0,n.jsx)(J,{href:w.DOCS_ROUTES.TUTORIALS,label:"Tutorial",icon:(0,n.jsx)(W.default,{className:"size-4 fill-current"}),direction:e,isActive:a.startsWith(w.DOCS_ROUTES.TUTORIALS)}),(0,n.jsx)(J,{href:w.WEBSITE_ROUTES.EXAMPLES,label:"Examples",icon:(0,n.jsx)(K.default,{className:"size-4 fill-current"}),direction:e})]})})}function J({href:e,label:t,icon:r,direction:a="horizontal",isActive:s,isBeta:o}){return(0,n.jsx)("li",{className:(0,U.cn)("flex items-center",{relative:"horizontal"===a}),children:(0,n.jsxs)(i.default,{className:(0,U.cn)("group flex items-center text-sm font-medium",{"text-product-brand":s,"text-product":!s,"w-full":"vertical"===a,"rounded-sm px-2 py-1 transition-colors duration-150 ease-out":"horizontal"===a,"hover:bg-product-surface-base-alpha-subtle focus-visible:bg-product-surface-base-alpha-subtle":"horizontal"===a&&!s,"bg-product-surface-brand-subtlest hover:bg-product-surface-brand-subtler focus-visible:bg-product-surface-brand-subtler":"horizontal"===a&&s}),href:e,children:["vertical"===a&&(0,n.jsx)("span",{className:"mr-3 flex size-8 items-center justify-center rounded-sm border border-product-divider bg-product-surface-base shadow-product-raised transition-colors duration-150 ease-out group-hover:border-product-divider-bold group-focus:border-product-divider-bold",children:(0,n.jsx)("div",{className:(0,U.cn)("transition-colors duration-150 ease-out",{"text-product-brand":s,"text-product-subtle group-hover:text-product group-focus:text-product":!s}),children:r})}),t,o&&(0,n.jsx)(S.Badge,{className:"ml-2",size:"sm",appearance:s?"brand":"default",children:"Beta"})]})})}var Y=e.i(985369),X=e.i(258596),Q=e.i(528240);e.i(971616);var ee=e.i(616986),et=e.i(969557),er=e.i(299527);function en(){let{user:e}
9=(0,a.useAuth)(),t=(0,u.usePathname)()??"/",[r,o]=(0,s.useState)(!1),l=(0,et.useMediaQuery)(`(min-width: ${w.BREAKPOINTS.LG}px)`),{value:c,updateValue:d}=(0,m.useDashboardSettings)(),p=c?.theme??"system",f=(0,s.useCallback)(()=>{o(e=>!e)},[]);return(0,s.useEffect)(()=>{r&&l&&o(!1)},[r,l]),(0,s.useEffect)(()=>{o(!1)},[t]),(0,n.jsxs)(Y.RemoveScroll,{className:"lg:hidden",enabled:r,removeScrollBar:!1,children:[(0,n.jsx)(H.Button,{onClick:f,appearance:"ghost",square:!0,"aria-label":r?"Close navigation menu":"Open navigation menu","aria-expanded":r,"aria-controls":"docs-mobile-nav-menu",children:r?(0,n.jsx)(X.default,{className:"fill-current"}):(0,n.jsx)(Q.default,{className:"fill-current"})}),(0,n.jsx)("div",{id:"docs-mobile-nav-menu",className:(0,U.cn)("fixed top-(--header-height) right-0 bottom-0 left-0 z-(--z-index-high) bg-product-surface-base",!r&&"hidden"),children:(0,n.jsxs)(y.ScrollArea,{className:"h-full",children:[(0,n.jsxs)("nav",{"aria-label":"mobile",className:"flex flex-col gap-6 p-4",children:[(0,n.jsx)(q,{direction:"vertical"}),(0,n.jsx)(er.default,{})]}),(0,n.jsxs)("div",{className:"sticky bottom-0 flex flex-col-reverse justify-between gap-4 bg-product-surface-base px-4 py-4 sm:flex-row",children:[(0,n.jsx)(ee.ThemeSwitcher,{className:"self-start",theme:p,onThemeChange:e=>d({theme:e})}),(0,n.jsx)("div",{className:"flex justify-evenly gap-2",children:e?(0,n.jsx)(H.Button,{asChild:!0,children:(0,n.jsx)(i.default,{className:"grow",href:w.APP_ROUTES.HOME,children:"Dashboard"})}):(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(H.Button,{asChild:!0,children:(0,n.jsx)("a",{className:"grow",href:w.APP_ROUTER_API_ROUTES.AUTH_LOGIN,children:"Sign in"})})})})]})]})})]})}e.i(80060);var ea=e.i(270751);function ei({user:e}){return e?(0,n.jsx)(j.Avatar,{imageUrl:e.profilePictureUrl,initials:(0,M.default)((0,o.getUserNickName)({user:e})),size:"sm"}):(0,n.jsx)("div",{className:"relative flex aspect-square size-7 flex-none items-center justify-center rounded-full bg-product-divider-bold select-none"})}e.s(["DocsHeader",0,function({className:e,...t}){let{user:r}=(0,a.useAuth)(),o=(0,z.useGithubStars)(`${w.GITHUB_ORG}/${w.GITHUB_REPO}`),{showAiInlinePanel:d}=(0,Z.useAiAssistantLayout)(),[u,m]=(0,s.useState)(!1);return(0,n.jsxs)("header",{className:(0,U.cn)("@container/header fixed inset-x-0 top-0 z-(--z-index-high) flex h-(--header-height) items-center justify-between gap-3 border-b border-product-divider bg-product-surface-base px-4",d&&"xl:right-(--ai-assistant-inline-width)",e),...t,children:[(0,n.jsxs)("nav",{"aria-label":"primary",className:"flex h-full max-w-full flex-auto items-center gap-4",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(i.default,{className:"group rounded",href:w.WEBSITE_ROUTES.HOME,title:"Liveblocks","aria-label":"Go to Liveblocks home",children:(0,n.jsx)(_.Logo,{maskingAnimationOnHover:!0})}),(0,n.jsx)(i.default,{className:"rounded-full lg:hidden",href:w.DOCS_ROUTES.HOME,children:(0,n.jsx)(S.Badge,{appearance:"brand",size:"sm",children:"Docs"})})]}),(0,n.jsx)(q,{className:"max-lg:hidden",direction:"horizontal"})]}),(0,n.jsxs)("div",{className:"flex flex-none items-center justify-end gap-2",children:[o?(0,n.jsxs)(i.default,{className:(0,U.cn)("group items-center gap-1 rounded-sm px-2 text-xs font-medium text-product-subtle transition-colors duration-150 ease-out hover:text-product focus:text-product","hidden @5xl/header:flex"),href:w.SOCIAL_URLS.GITHUB_REPO,target:"_blank",rel:"noopener",children:[(0,n.jsx)(l.default,{className:"size-4 fill-current"}),o]}):null,(0,n.jsx)(c.default,{context:"docs"}),(0,n.jsx)(ea.FeedbackDialog,{open:u,setOpen:m,sentFromFeedbackButton:!0,children:(0,n.jsx)(H.Button,{className:"hidden sm:flex",children:"Feedback"})}),r?(0,n.jsx)(I,{children:(0,n.jsx)("button",{className:"ml-1 hidden rounded-full sm:inline-flex",type:"button",children:(0,n.jsx)(ei,{user:r})})}):(0,n.jsx)(H.Button,{appearance:"primary",className:"max-lg:hidden",asChild:!0,children:(0,n.jsx)("a",{href:w.APP_ROUTER_API_ROUTES.AUTH_LOGIN,children:"Sign in"})}),(0,n.jsx)(en,{})]})]})}],566180)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.