!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0a063-3779-7e32-bff5-c10513c29f3b")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,613696,914111,e=>{"use strict";var t=e.i(270401),r=e.i(618568),n=e.i(364960),i=e.i(733171),a=e.i(228876),s=e.i(235901),o=e.i(899454),l=e.i(302113);let c="data-composite-item-active";e.s(["ACTIVE_COMPOSITE_ITEM",0,c],914111);var u=e.i(271710);let d=[];var m=e.i(878392),h=e.i(281334),f=e.i(698031),g=e.i(222666);e.s(["CompositeRoot",0,function(e){let{render:p,className:v,style:b,refs:y=r.EMPTY_ARRAY,props:x=r.EMPTY_ARRAY,state:S=r.EMPTY_OBJECT,stateAttributesMapping:w,highlightedIndex:k,onHighlightedIndexChange:C,orientation:_,dense:R,itemSizes:E,loopFocus:M,onLoop:N,cols:A,enableHomeAndEndKeys:I,onMapChange:O,stopEventPropagation:T=!0,rootRef:j,disabledIndices:L,modifierKeys:P,highlightItemOnHover:z=!1,tag:U="div",...F}=e,{props:D,highlightedIndex:W,onHighlightedIndexChange:B,elementsRef:V,onMapChange:H,relayKeyboardEvent:G}=function(e){let{itemSizes:r,cols:n=1,loopFocus:m=!0,onLoop:h,dense:f=!1,orientation:g="both",direction:p,highlightedIndex:v,onHighlightedIndexChange:b,rootRef:y,enableHomeAndEndKeys:x=!1,stopEventPropagation:S=!1,disabledIndices:w,modifierKeys:k=d}=e,[C,_]=t.useState(0),R=n>1,E=t.useRef(null),M=(0,s.useMergedRefs)(E,y),N=t.useRef([]),A=t.useRef(!1),I=v??C,O=(0,a.useStableCallback)((e,t=!1)=>{if((b??_)(e),t){let t=N.current[e];(0,o.scrollIntoViewIfNeeded)(E.current,t,p,g)}}),T=(0,a.useStableCallback)(e=>{if(0===e.size||A.current)return;A.current=!0;let t=Array.from(e.keys()),r=t.find(e=>e?.hasAttribute(c))??null,n=r?t.indexOf(r):-1;-1!==n&&O(n),(0,o.scrollIntoViewIfNeeded)(E.current,r,p,g)}),j=(0,a.useStableCallback)((e,t,r)=>h?h?.(e,t,r,N):r),L=t.useMemo(()=>({"aria-orientation":"both"===g?void 0:g,ref:M,onFocus(e){let t=E.current,r=(0,u.getTarget)(e.nativeEvent);t&&null!=r&&(0,o.isNativeInput)(r)&&r.setSelectionRange(0,r.value.length??0)},onKeyDown(e){let t=x?o.ALL_KEYS:o.ARROW_KEYS;if(!t.has(e.key)||function(e,t){for(let r of o.MODIFIER_KEYS.values())if(!t.includes(r)&&e.getModifierState(r))return!0;return!1}(e,k)||!E.current)return;let a="rtl"===p,s=a?o.ARROW_LEFT:o.ARROW_RIGHT,c={horizontal:s,vertical:o.ARROW_DOWN,both:s}[g],d=a?o.ARROW_RIGHT:o.ARROW_LEFT,v={horizontal:d,vertical:o.ARROW_UP,both:d}[g],b=(0,u.getTarget)(e.nativeEvent);if(null!=b&&(0,o.isNativeInput)(b)&&!(0,i.isElementDisabled)(b)){let t=b.selectionStart,r=b.selectionEnd,n=b.value??"";if(null==t||e.shiftKey||t!==r||e.key!==v&&t0)return}let y=I,C=(0,l.getMinListIndex)(N,w),_=(0,l.getMaxListIndex)(N,w);if(R){let t=r||Array.from({length:N.current.length},()=>({width:1,height:1})),i=(0,l.createGridCellMap)(t,n,f),s=i.findIndex(e=>null!=e&&!(0,l.isListIndexDisabled)(N.current,e,w)),c=i.reduce((e,t,r)=>null==t||(0,l.isListIndexDisabled)(N.current,t,w)?e:r,-1);y=i[(0,l.getGridNavigatedIndex)(i.map(e=>null!=e?N.current[e]:null),{event:e,orientation:g,loopFocus:m,onLoop:j,cols:n,disabledIndices:(0,l.getGridCellIndices)([...w||N.current.map((e,t)=>(0,l.isListIndexDisabled)(N.current,t)?t:void 0),void 0],i),minIndex:s,maxIndex:c,prevIndex:(0,l.getGridCellIndexOfCorner)(I>_?C:I,t,i,n,e.key===o.ARROW_DOWN?"bl":e.key===o.ARROW_RIGHT?"tr":"tl"),rtl:a})]}let M={horizontal:[s],vertical:[o.ARROW_DOWN],both:[s,o.ARROW_DOWN]}[g],A={horizontal:[d],vertical:[o.ARROW_UP],both:[d,o.ARROW_UP]}[g],T=R?t:({horizontal:x?o.HORIZONTAL_KEYS_WITH_EXTRA_KEYS:o.HORIZONTAL_KEYS,vertical:x?o.VERTICAL_KEYS_WITH_EXTRA_KEYS:o.VERTICAL_KEYS,both:t})[g];x&&(e.key===o.HOME?y=C:e.key===o.END&&(y=_)),y===I&&(M.includes(e.key)||A.includes(e.key))&&(m&&y===_&&M.includes(e.key)?(y=C,h&&(y=h(e,I,y,N))):m&&y===C&&A.includes(e.key)?(y=_,h&&(y=h(e,I,y,N))):y=(0,l.findNonDisabledListIndex)(N.current,{startingIndex:y,decrement:A.includes(e.key),disabledIndices:w})),y===I||(0,l.isIndexOutOfListBounds)(N.current,y)||(S&&e.stopPropagation(),T.has(e.key)&&e.preventDefault(),O(y,!0),queueMicrotask(()=>{N.current[y]?.focus()}))}}),[n,f,p,w,N,x,I,R,r,m,h,j,M,k,O,g,S]);return t.useMemo(()=>({props:L,highlightedIndex:I,onHighlightedIndexChange:O,elementsRef:N,disabledIndices:w,onMapChange:T,relayKeyboardEvent:L.onKeyDown}),[L,I,O,N,w,T])}({itemSizes:E,cols:A,loopFocus:M,onLoop:N,dense:R,orientation:_,highlightedIndex:k,onHighlightedIndexChange:C,rootRef:j,stopEventPropagation:T,enableHomeAndEndKeys:I,direction:(0,f.useDirection)(),disabledIndices:L,modifierKeys:P}),K=(0,h.useRenderElement)(U,e,{state:S,ref:y,props:[D,...x,F],stateAttributesMapping:w}),$=t.useMemo(()=>({highlightedIndex:W,onHighlightedIndexChange:B,highlightItemOnHover:z,relayKeyboardEvent:G}),[W,B,z,G]);return(0,g.jsx)(m.CompositeRootContext.Provider,{value:$,children:(0,g.jsx)(n.CompositeList,{elementsRef:V,onMapChange:e=>{O?.(e),H(e)},children:K})})}],613696)},733171,e=>{"use strict";e.s(["isElementDisabled",0,function(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}])},860439,e=>{"use strict";var t=e.i(396359);let r=new Set;e.s(["deprecated",0,(e,n,i)=>{let a=(0,t.a)()||(0,t.i)(),s=i??e;r.has(s)||a||(r.add(s),console.warn(`Clerk - DEPRECATION WARNING: "${e}" is deprecated and will be removed in the next major release. ${n}`))}])},390485,e=>{"use strict";var t=e.i(15957);e.s(["d",()=>t.useOrganizationList])},241747,e=>{"use strict";var t=e.i(390485);e.s(["useOrganizationList",()=>t.d])},140773,e=>{"use strict";var t=e.i(15957);e.s(["f",()=>t.useReverification])},832151,e=>{"use strict";var t=e.i(140773);e.s(["useReverification",()=>t.f])},296278,717300,e=>{"use strict";var t=e.i(15957);e.s(["p",()=>t.useSession],717300);var t=t;e.s(["useSession",()=>t.useSession],296278)},645537,844743,678346,e=>{"use strict";let t={initialDelay:125,maxDelayBetweenRetries:0,factor:2,shouldRetry:(e,t)=>t<5,retryImmediately:!1,jitter:!0},r=async e=>new Promise(t=>setTimeout(t,e)),n=(e,t)=>t?e*(1+Math.random()):e,i=async(e,i={})=>{var a;let s,o=0,{shouldRetry:l,initialDelay:c,maxDelayBetweenRetries:u,factor:d,retryImmediately:m,jitter:h,onBeforeRetry:f}={...t,...i},g=(a={initialDelay:c,maxDelayBetweenRetries:u,factor:d,jitter:h},s=0,async()=>{let e;await r((e=n(e=a.initialDelay*Math.pow(a.factor,s),a.jitter),Math.min(a.maxDelayBetweenRetries||e,e))),s++});for(;;)try{return await e()}catch(e){if(!l(e,++o))throw e;f&&await f(o),m&&1===o?await r(n(100,h)):await g()}};e.s(["retry",0,i],645537);var a=e.i(820803),s=e.i(924599),o=e.i(594158);function l(e){return e.startsWith("/")}let c=[".vercel.app"];function u(){return void 0!==a.default&&a.default.env?a.default.env:{}}e.s(["getAutoProxyUrlFromEnvironment",0,function({publishableKey:e,hasDomain:t=!1,hasProxyUrl:r=!1,environment:n=u()}){var i;if(r||t||!(0,s.isProductionFromPublishableKey)(e)||function(e=u()){return(0,o.isTruthy)(e.CLERK_DISABLE_AUTO_PROXY)}(n)||"production"!==n.VERCEL_TARGET_ENV)return"";let a=n.VERCEL_PROJECT_PRODUCTION_URL;return a&&(i=function(e){if(e.startsWith("http://")||e.startsWith("https://"))try{return new URL(e).hostname}catch{return""}return e.split("/")[0]||""}(a),c.some(e=>i?.endsWith(e)))?"/__clerk":""},"isProxyUrlRelative",0,l,"isValidProxyUrl",0,function(e){var t;return!e||(t=e,/^http(s)?:\/\//.test(t||""))||l(e)},"proxyUrlToAbsoluteURL",0,function(e){return e?!l(e)||"u"e.endsWith(t)&&!e.endsWith(".clerk"+t))},"isLegacyDevAccountPortalOrigin",0,function(e){return d.LEGACY_DEV_INSTANCE_SUFFIXES.some(t=>e.startsWith("accounts.")&&e.endsWith(t))}],678346)},818576,e=>{"use strict";let t;function r(e){let r;return t||(t=new Map),t.has(e)?r=t.get(e):(r={records_count:0,segments_count:0,segments_total_raw_size:0},t.set(e,r),t.size>1e3&&function(){if(!t)return;let e=t.keys().next().value;e&&t.delete(e)}()),r}e.s(["addRecord",0,function(e){r(e).records_count+=1},"addSegment",0,function(e){r(e).segments_count+=1},"addWroteData",0,function(e,t){r(e).segments_total_raw_size+=t},"getReplayStats",0,function(e){return null==t?void 0:t.get(e)},"getSegmentsCount",0,function(e){return r(e).segments_count}])},173037,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.75 3.104v5.714a2.25 2.25 0 0 1-.659 1.591L5 14.5M9.75 3.104c-.251.023-.501.05-.75.082m.75-.082a24.301 24.301 0 0 1 4.5 0m0 0v5.714c0 .597.237 1.17.659 1.591L19.8 15.3M14.25 3.104c.251.023.501.05.75.082M19.8 15.3l-1.57.393A9.065 9.065 0 0 1 12 15a9.065 9.065 0 0 0-6.23-.693L5 14.5m14.8.8 1.402 1.402c1.232 1.232.65 3.318-1.067 3.611A48.309 48.309 0 0 1 12 21c-2.773 0-5.491-.235-8.135-.687-1.718-.293-2.3-2.379-1.067-3.61L5 14.5"}))});e.s(["BeakerIcon",0,r],173037)},203661,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"}))});e.s(["BookOpenIcon",0,r],203661)},511696,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 21h19.5m-18-18v18m10.5-18v18m6-13.5V21M6.75 6.75h.75m-.75 3h.75m-.75 3h.75m3-6h.75m-.75 3h.75m-.75 3h.75M6.75 21v-3.375c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21M3 3h12m-.75 4.5H21m-3.75 3.75h.008v.008h-.008v-.008Zm0 3h.008v.008h-.008v-.008Zm0 3h.008v.008h-.008v-.008Z"}))});e.s(["BuildingOffice2Icon",0,r],511696)},50157,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z"}))});e.s(["ChartBarIcon",0,r],50157)},534390,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.76c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.076-4.076a1.526 1.526 0 0 1 1.037-.443 48.282 48.282 0 0 0 5.68-.494c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"}))});e.s(["ChatBubbleLeftIcon",0,r],534390)},557338,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))});e.s(["Cog6ToothIcon",0,r],557338)},838545,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 8.25h19.5M2.25 9h19.5m-16.5 5.25h6m-6 2.25h3m-3.75 3h15a2.25 2.25 0 0 0 2.25-2.25V6.75A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25v10.5A2.25 2.25 0 0 0 4.5 19.5Z"}))});e.s(["CreditCardIcon",0,r],838545)},920248,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 7.5-9-5.25L3 7.5m18 0-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"}))});e.s(["CubeIcon",0,r],920248)},506514,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0ZM3.75 12h.007v.008H3.75V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm-.375 5.25h.007v.008H3.75v-.008Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))});e.s(["ListBulletIcon",0,r],506514)},328103,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 7.125C2.25 6.504 2.754 6 3.375 6h6c.621 0 1.125.504 1.125 1.125v3.75c0 .621-.504 1.125-1.125 1.125h-6a1.125 1.125 0 0 1-1.125-1.125v-3.75ZM14.25 8.625c0-.621.504-1.125 1.125-1.125h5.25c.621 0 1.125.504 1.125 1.125v8.25c0 .621-.504 1.125-1.125 1.125h-5.25a1.125 1.125 0 0 1-1.125-1.125v-8.25ZM3.75 16.125c0-.621.504-1.125 1.125-1.125h5.25c.621 0 1.125.504 1.125 1.125v2.25c0 .621-.504 1.125-1.125 1.125h-5.25a1.125 1.125 0 0 1-1.125-1.125v-2.25Z"}))});e.s(["RectangleGroupIcon",0,r],328103)},162034,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6.878V6a2.25 2.25 0 0 1 2.25-2.25h7.5A2.25 2.25 0 0 1 18 6v.878m-12 0c.235-.083.487-.128.75-.128h10.5c.263 0 .515.045.75.128m-12 0A2.25 2.25 0 0 0 4.5 9v.878m13.5-3A2.25 2.25 0 0 1 19.5 9v.878m0 0a2.246 2.246 0 0 0-.75-.128H5.25c-.263 0-.515.045-.75.128m15 0A2.25 2.25 0 0 1 21 12v6a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 18v-6c0-.98.626-1.813 1.5-2.122"}))});e.s(["RectangleStackIcon",0,r],162034)},733288,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"}))});e.s(["SparklesIcon",0,r],733288)},920240,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 18.75h-9m9 0a3 3 0 0 1 3 3h-15a3 3 0 0 1 3-3m9 0v-3.375c0-.621-.503-1.125-1.125-1.125h-.871M7.5 18.75v-3.375c0-.621.504-1.125 1.125-1.125h.872m5.007 0H9.497m5.007 0a7.454 7.454 0 0 1-.982-3.172M9.497 14.25a7.454 7.454 0 0 0 .981-3.172M5.25 4.236c-.982.143-1.954.317-2.916.52A6.003 6.003 0 0 0 7.73 9.728M5.25 4.236V4.5c0 2.108.966 3.99 2.48 5.228M5.25 4.236V2.721C7.456 2.41 9.71 2.25 12 2.25c2.291 0 4.545.16 6.75.47v1.516M7.73 9.728a6.726 6.726 0 0 0 2.748 1.35m8.272-6.842V4.5c0 2.108-.966 3.99-2.48 5.228m2.48-5.492a46.32 46.32 0 0 1 2.916.52 6.003 6.003 0 0 1-5.395 4.972m0 0a6.726 6.726 0 0 1-2.749 1.35m0 0a6.772 6.772 0 0 1-3.044 0"}))});e.s(["TrophyIcon",0,r],920240)},820963,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))});e.s(["UserCircleIcon",0,r],820963)},714243,320426,e=>{"use strict";let t=(0,e.i(202913).default)("app-window-mac",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M14 8h.01",key:"1primd"}]]);e.s(["AppWindowMac",0,t],714243);var r=e.i(843491);e.s(["SquareTerminal",()=>r.default],320426)},863458,e=>{"use strict";let t=(0,e.i(202913).default)("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]]);e.s(["Building2",0,t],863458)},987545,e=>{"use strict";let t=(0,e.i(202913).default)("compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Compass",0,t],987545)},252661,e=>{"use strict";let t=(0,e.i(202913).default)("gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);e.s(["Gauge",0,t],252661)},213648,e=>{"use strict";let t=(0,e.i(202913).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["Globe",0,t],213648)},93705,e=>{"use strict";let t=(0,e.i(202913).default)("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);e.s(["GraduationCap",0,t],93705)},239371,e=>{"use strict";let t=(0,e.i(202913).default)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);e.s(["LayoutGrid",0,t],239371)},220499,e=>{"use strict";let t=(0,e.i(202913).default)("plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]]);e.s(["Plug",0,t],220499)},986122,e=>{"use strict";let t=(0,e.i(202913).default)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);e.s(["Server",0,t],986122)},210041,e=>{"use strict";let t=(0,e.i(202913).default)("trophy",[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]]);e.s(["Trophy",0,t],210041)},435480,e=>{"use strict";let t=(0,e.i(202913).default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);e.s(["Zap",0,t],435480)},653706,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={callServer:function(){return a.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(155352),s=e.r(384541),o=e.r(932482)},709732,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RouterContext",{enumerable:!0,get:function(){return n}});let n=e.r(692454)._(e.r(270401)).default.createContext(null)},103719,(e,t,r)=>{"use strict";function n(e,t={}){if(t.onlyHashChange)return void e();let r=document.documentElement;if("smooth"!==r.dataset.scrollBehavior)return void e();let i=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=i}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"disableSmoothScrollDuringRouteTransition",{enumerable:!0,get:function(){return n}})},743902,e=>{"use strict";var t=e.i(337804);let r=/^[0-9a-fA-F.:]+$/;var n=e.i(204067),i=e.i(796805);let a={TimedOut:"timed_out",Unavailable:"unavailable",FetchFailed:"fetch_failed"};i.z.enum([a.TimedOut,a.Unavailable,a.FetchFailed]);let s=i.z.string().max(256).startsWith("rse_").regex(/^\S+$/,"must be a single token"),o=i.z.string().refine(e=>{var n;let i;return null===(!r.test(e)||!(0,t.isIPLiteral)(e)||(i=(n=e).slice(n.lastIndexOf(":")+1)).includes(".")&&i.split(".").some(e=>e.length>1&&e.startsWith("0"))?"malformed":(0,t.isLocalhost)(e)||(0,t.isPrivateIP)(e)?"unroutable":null)},"must be a routable address"),l=i.z.string().max(256).regex(/^\/(?:[^/\s?#][^\s?#]*)?$/,"must be a URL pathname"),c=i.z.object({country:i.z.string().max(16).nullable().or((0,n.zodCatch)(null)),ip_hash:i.z.string().max(64).nullable().or((0,n.zodCatch)(null)),asn:i.z.number().int().nullable().or((0,n.zodCatch)(null)),corporate_proxy:i.z.boolean().nullable(),js_detection:i.z.boolean().nullish(),bot_score:i.z.number().int().nullable().or((0,n.zodCatch)(null)),verified_bot:i.z.boolean().nullable(),ja3_hash:i.z.string().max(64).nullable().or((0,n.zodCatch)(null)),ja4:i.z.string().max(64).nullable().or((0,n.zodCatch)(null)),continent:i.z.string().max(8).nullish().or((0,n.zodCatch)(null)),region:i.z.string().max(128).nullish().or((0,n.zodCatch)(null)),city:i.z.string().max(128).nullish().or((0,n.zodCatch)(null)),timezone:i.z.string().max(128).nullish().or((0,n.zodCatch)(null)),ip:o.nullish().or((0,n.zodCatch)(null)),page:l.nullish().or((0,n.zodCatch)(null))});i.z.object({v:i.z.literal(2),iat:i.z.number().int(),data:c}),e.s(["RadarSessionIdSchema",0,s,"SIGNUP_CF_CLIENT_STATUS_KEY",0,"signup_cf_client_status","SIGNUP_CF_METADATA_KEY",0,"signup_cf","SIGNUP_RADAR_SESSION_METADATA_KEY",0,"signup_radar_session","SIGNUP_RADAR_SESSION_STATUS_KEY",0,"signup_radar_session_status","SIGNUP_TIMEZONE_METADATA_KEY",0,"signup_timezone","SealedSignupCfMetadataStatus",0,a,"SignupRadarSessionStatus",0,{NotStarted:"not_started",MintPending:"mint_pending",StripeLoadFailed:"stripe_load_failed",StripeUnavailable:"stripe_unavailable",RadarSessionError:"radar_session_error",RadarSessionParseFailed:"radar_session_parse_failed",UnexpectedError:"unexpected_error"}],743902)},142721,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(241747),i=e.i(415753),a=e.i(557338),s=e.i(482108),o=e.i(452473),l=e.i(970654),c=e.i(806024),u=e.i(910939),d=e.i(648156),m=e.i(79247),h=e.i(749509),f=e.i(270401),g=e.i(117738),p=e.i(237587),v=e.i(499807);function b(e){return e.includes("eyJ0eXBlIjoiZGVmYXVsdCI")}let y=["bg-chart-1","bg-chart-2","bg-chart-3","bg-chart-4","bg-chart-5","bg-chart-6","bg-chart-7","bg-chart-8","bg-chart-9","bg-chart-10","bg-chart-11","bg-chart-12","bg-chart-13","bg-chart-14","bg-chart-15","bg-chart-16","bg-chart-17","bg-chart-18","bg-chart-19","bg-chart-20"];function x(e){return e.split(/\s+/).map(e=>e[0]).join("").toUpperCase().slice(0,2)}function S(e){return y[Math.abs([...e].reduce((e,t)=>(t.codePointAt(0)??0)+((e<<5)-e),0))%y.length]??"bg-chart-1"}function w(e){let n,i,a,s=(0,r.c)(13),{imageUrl:l,name:c,isPersonal:u,personalImageUrl:d}=e;if(u&&d){let e;return s[0]!==c||s[1]!==d?(e=(0,t.jsx)("picture",{className:"size-5 shrink-0 overflow-hidden rounded-full border border-border/50",children:(0,t.jsx)("img",{src:d,alt:c,className:"h-full w-full object-cover"})}),s[0]=c,s[1]=d,s[2]=e):e=s[2],e}if(l&&!b(l)){let e;return s[3]!==l||s[4]!==c?(e=(0,t.jsx)("picture",{className:"size-5 shrink-0 overflow-hidden rounded-full border border-border/50",children:(0,t.jsx)("img",{src:l,alt:c,className:"h-full w-full object-cover"})}),s[3]=l,s[4]=c,s[5]=e):e=s[5],e}return s[6]!==c?(n=(0,o.cn)("flex size-5 shrink-0 items-center justify-center rounded-full text-3xs font-medium text-primary-foreground",S(c)),s[6]=c,s[7]=n):n=s[7],s[8]!==c?(i=x(c),s[8]=c,s[9]=i):i=s[9],s[10]!==n||s[11]!==i?(a=(0,t.jsx)("div",{className:n,children:i}),s[10]=n,s[11]=i,s[12]=a):a=s[12],a}function k(e){let n,i,s,l,c,u,m=(0,r.c)(21),{name:h,imageUrl:f,isActive:g,isPersonal:p,personalImageUrl:b,subscriptionPlan:y,onClick:x,onManage:S}=e,k=g?"bg-accent/50 text-accent-foreground":"text-muted-foreground hover:text-accent-foreground";return m[0]!==k?(n=(0,o.cn)("group flex w-full cursor-pointer items-center gap-2.5 rounded-md px-2 py-1.5 text-sm font-medium transition-colors hover:bg-card-hover",k),m[0]=k,m[1]=n):n=m[1],m[2]!==f||m[3]!==p||m[4]!==h||m[5]!==b?(i=(0,t.jsx)(w,{imageUrl:f,name:h,isPersonal:p,personalImageUrl:b}),m[2]=f,m[3]=p,m[4]=h,m[5]=b,m[6]=i):i=m[6],m[7]!==h?(s=(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-left",children:h}),m[7]=h,m[8]=s):s=m[8],m[9]!==y?(l=y&&(0,t.jsx)(v.PlanBadge,{plan:y}),m[9]=y,m[10]=l):l=m[10],m[11]!==g||m[12]!==S?(c=g&&S&&(0,t.jsx)(d.Tooltip,{content:"Manage",hoverable:!1,children:(0,t.jsx)("span",{role:"button","aria-label":"Manage",tabIndex:0,onClick:e=>{e.stopPropagation(),S()},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.stopPropagation(),S())},className:"shrink-0 rounded-sm p-0.5 hover:bg-card-hover",children:(0,t.jsx)(a.Cog6ToothIcon,{className:"size-3.5 text-muted-foreground"})})}),m[11]=g,m[12]=S,m[13]=c):c=m[13],m[14]!==x||m[15]!==n||m[16]!==i||m[17]!==s||m[18]!==l||m[19]!==c?(u=(0,t.jsxs)("button",{type:"button",onClick:x,className:n,children:[i,s,l,c]}),m[14]=x,m[15]=n,m[16]=i,m[17]=s,m[18]=l,m[19]=c,m[20]=u):u=m[20],u}function C(e){let a,l,c,d,v,b,y,x,S,w,C=(0,r.c)(35),{onNavigate:_,onManageProfile:R,onManageOrg:E,className:M}=e,{user:N}=(0,i.useUser)(),{clerkOrg:A}=(0,g.useEntity)(),I=(0,h.useRouter)();C[0]===Symbol.for("react.memo_cache_sentinel")?(a={userMemberships:{infinite:!0}},C[0]=a):a=C[0];let{isLoaded:O,setActive:T,userMemberships:j}=(0,n.useOrganizationList)(a),L=N?.id??null;C[1]!==L?(l=(0,p.organizationSubscriptionPlansOptions)(L),C[1]=L,C[2]=l):l=C[2];let{data:P}=(0,m.useQuery)(l);C[3]!==P?(c=void 0===P?{}:P,C[3]=P,C[4]=c):c=C[4];let z=c;C[5]!==j?(d=()=>{j.hasNextPage&&!j.isFetching&&j.fetchNext()},C[5]=j,C[6]=d):d=C[6],C[7]!==j.fetchNext||C[8]!==j.hasNextPage||C[9]!==j.isFetching?(v=[j.hasNextPage,j.isFetching,j.fetchNext],C[7]=j.fetchNext,C[8]=j.hasNextPage,C[9]=j.isFetching,C[10]=v):v=C[10],(0,f.useEffect)(d,v),C[11]!==_||C[12]!==I||C[13]!==T?(b=()=>{T&&T({organization:null}).then(()=>{I.refresh()}),_?.()},C[11]=_,C[12]=I,C[13]=T,C[14]=b):b=C[14];let U=b;C[15]!==_||C[16]!==I||C[17]!==T?(y=e=>{T&&T({organization:e.organization.id}).then(()=>{I.refresh()}),_?.()},C[15]=_,C[16]=I,C[17]=T,C[18]=y):y=C[18];let F=y,D=N?.imageUrl,W=!A;return C[19]!==M?(x=(0,o.cn)("flex max-h-[min(40vh,320px)] flex-col gap-0.5 overflow-y-auto p-1",M),C[19]=M,C[20]=x):x=C[20],C[21]!==A?.id||C[22]!==F||C[23]!==U||C[24]!==O||C[25]!==W||C[26]!==E||C[27]!==R||C[28]!==z||C[29]!==D||C[30]!==j.data?(S=O?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k,{name:"Personal",isActive:W,isPersonal:!0,personalImageUrl:D,onClick:U,onManage:R}),j.data?.map(e=>{let r=A?.id===e.organization.id;return(0,t.jsx)(k,{name:e.organization.name,imageUrl:e.organization.imageUrl,isActive:r,subscriptionPlan:z[e.organization.id],onClick:()=>F(e),onManage:e.role===s.OrganizationRole.Admin?E:void 0},e.id)})]}):(0,t.jsx)("div",{className:"flex items-center justify-center py-2",children:(0,t.jsx)(u.Spinner,{className:"size-5 text-muted-foreground"})}),C[21]=A?.id,C[22]=F,C[23]=U,C[24]=O,C[25]=W,C[26]=E,C[27]=R,C[28]=z,C[29]=D,C[30]=j.data,C[31]=S):S=C[31],C[32]!==x||C[33]!==S?(w=(0,t.jsx)("div",{className:x,children:S}),C[32]=x,C[33]=S,C[34]=w):w=C[34],w}e.s(["CustomOrgSwitcherContent",0,function(e){let n,i,a,s,u,d,m,h,f,g=(0,r.c)(25),{onSignOut:p,onNavigate:v,onManageProfile:b,onManageOrg:y,customItems:x,signOutIcon:S,bottomSection:w,className:k}=e;return g[0]!==k?(n=(0,o.cn)("flex w-64 flex-col",k),g[0]=k,g[1]=n):n=g[1],g[2]!==y||g[3]!==b||g[4]!==v?(i=(0,t.jsx)(C,{onNavigate:v,onManageProfile:b,onManageOrg:y}),g[2]=y,g[3]=b,g[4]=v,g[5]=i):i=g[5],g[6]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("hr",{className:"my-1 border-muted"}),g[6]=a):a=g[6],g[7]!==x||g[8]!==v?(s=x?.map(e=>{let r=(0,o.cn)("flex w-full items-center gap-2.5 rounded-md px-2 py-1.5 text-left text-sm font-medium no-underline transition-colors hover:bg-card-hover","destructive"===e.variant?"text-destructive":"text-muted-foreground hover:text-accent-foreground"),n=(0,t.jsxs)(t.Fragment,{children:[e.icon&&(0,t.jsx)("span",{className:"flex size-5 shrink-0 items-center justify-center",children:e.icon}),e.label,e.badge&&(0,t.jsx)(l.Badge,{variant:"promo",size:"sm",children:e.badge})]});return e.render?(0,t.jsx)("div",{children:e.render()},e.key):e.href?(0,t.jsx)(c.Link,{href:e.href,onClick:()=>{e.onClick?.(),v?.()},className:r,children:n},e.key):(0,t.jsxs)("button",{type:"button",onClick:()=>{e.onClick?.(),e.preventClose||v?.()},className:(0,o.cn)("flex w-full cursor-pointer items-center gap-2.5 rounded-md px-2 py-1.5 text-left text-sm font-medium transition-colors hover:bg-card-hover","destructive"===e.variant?"text-destructive":"text-muted-foreground hover:text-accent-foreground"),children:[e.icon&&(0,t.jsx)("span",{className:"flex size-5 shrink-0 items-center justify-center",children:e.icon}),e.label]},e.key)}),g[7]=x,g[8]=v,g[9]=s):s=g[9],g[10]!==S?(u=S&&(0,t.jsx)("span",{className:"flex size-5 shrink-0 items-center justify-center",children:S}),g[10]=S,g[11]=u):u=g[11],g[12]!==p||g[13]!==u?(d=(0,t.jsxs)("button",{type:"button",onClick:p,className:"flex w-full cursor-pointer items-center gap-2.5 rounded-md px-2 py-1.5 text-left text-sm font-medium text-destructive transition-colors hover:bg-card-hover",children:[u,"Sign Out"]}),g[12]=p,g[13]=u,g[14]=d):d=g[14],g[15]!==s||g[16]!==d?(m=(0,t.jsxs)("div",{className:"flex flex-col gap-0.5 p-1",children:[s,d]}),g[15]=s,g[16]=d,g[17]=m):m=g[17],g[18]!==w?(h=w&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("hr",{className:"my-1 border-muted"}),(0,t.jsx)("div",{className:"p-1 pb-1.5",children:w})]}),g[18]=w,g[19]=h):h=g[19],g[20]!==n||g[21]!==i||g[22]!==m||g[23]!==h?(f=(0,t.jsxs)("div",{className:n,children:[i,a,m,h]}),g[20]=n,g[21]=i,g[22]=m,g[23]=h,g[24]=f):f=g[24],f},"CustomOrgSwitcherTrigger",0,function(e){let n,a,s,l,c,u,d=(0,r.c)(54),{className:m,size:h,showLabel:f}=e,p=void 0===h?"size-6":h,{user:y}=(0,i.useUser)(),{clerkOrg:w,entity:k}=(0,g.useEntity)(),C=y?.imageUrl,_=w?w.name:"Personal",R=w?.id??y?.id,E=void 0!==R&&k.data?.clerk_user_id===R?k.data?.plan:void 0;d[0]!==f||d[1]!==E?(n=f&&E&&"standard"!==E?(0,t.jsx)(v.PlanBadge,{plan:E,compact:!0}):null,d[0]=f,d[1]=E,d[2]=n):n=d[2];let M=n;d[3]!==_||d[4]!==f?(a=f?(0,t.jsx)("span",{className:(0,o.cn)("truncate max-w-[120px] text-xs text-muted-foreground transition-colors","group-hover:text-accent-foreground group-focus-visible:text-accent-foreground","group-data-[popup-open]:text-accent-foreground group-data-[state=open]:text-accent-foreground"),children:_}):null,d[3]=_,d[4]=f,d[5]=a):a=d[5];let N=a;if(w){let e,r,n,i;if(w.imageUrl&&!b(w.imageUrl)){let e,r,n,i;return d[6]!==m||d[7]!==p?(e=(0,o.cn)("inline-block shrink-0 overflow-hidden rounded-full border border-border/50",p,m),d[6]=m,d[7]=p,d[8]=e):e=d[8],d[9]!==w.imageUrl||d[10]!==w.name?(r=(0,t.jsx)("img",{src:w.imageUrl,alt:w.name,className:"h-full w-full object-cover"}),d[9]=w.imageUrl,d[10]=w.name,d[11]=r):r=d[11],d[12]!==e||d[13]!==r?(n=(0,t.jsx)("picture",{className:e,children:r}),d[12]=e,d[13]=r,d[14]=n):n=d[14],d[15]!==M||d[16]!==N||d[17]!==n?(i=(0,t.jsxs)(t.Fragment,{children:[n,N,M]}),d[15]=M,d[16]=N,d[17]=n,d[18]=i):i=d[18],i}return d[19]!==m||d[20]!==w.name||d[21]!==p?(e=(0,o.cn)("flex shrink-0 items-center justify-center rounded-full text-2xs font-medium text-primary-foreground",p,S(w.name),m),d[19]=m,d[20]=w.name,d[21]=p,d[22]=e):e=d[22],d[23]!==w.name?(r=x(w.name),d[23]=w.name,d[24]=r):r=d[24],d[25]!==e||d[26]!==r?(n=(0,t.jsx)("div",{className:e,children:r}),d[25]=e,d[26]=r,d[27]=n):n=d[27],d[28]!==M||d[29]!==N||d[30]!==n?(i=(0,t.jsxs)(t.Fragment,{children:[n,N,M]}),d[28]=M,d[29]=N,d[30]=n,d[31]=i):i=d[31],i}if(C){let e,r,n,i;return d[32]!==m||d[33]!==p?(e=(0,o.cn)("inline-block shrink-0 overflow-hidden rounded-full border border-border/50",p,m),d[32]=m,d[33]=p,d[34]=e):e=d[34],d[35]!==C?(r=(0,t.jsx)("img",{src:C,alt:"Personal",className:"h-full w-full object-cover"}),d[35]=C,d[36]=r):r=d[36],d[37]!==e||d[38]!==r?(n=(0,t.jsx)("picture",{className:e,children:r}),d[37]=e,d[38]=r,d[39]=n):n=d[39],d[40]!==M||d[41]!==N||d[42]!==n?(i=(0,t.jsxs)(t.Fragment,{children:[n,N,M]}),d[40]=M,d[41]=N,d[42]=n,d[43]=i):i=d[43],i}return d[44]!==m||d[45]!==p?(s=(0,o.cn)("flex shrink-0 items-center justify-center rounded-full bg-muted text-2xs font-medium",p,m),d[44]=m,d[45]=p,d[46]=s):s=d[46],d[47]===Symbol.for("react.memo_cache_sentinel")?(l=x("Personal"),d[47]=l):l=d[47],d[48]!==s?(c=(0,t.jsx)("div",{className:s,children:l}),d[48]=s,d[49]=c):c=d[49],d[50]!==M||d[51]!==N||d[52]!==c?(u=(0,t.jsxs)(t.Fragment,{children:[c,N,M]}),d[50]=M,d[51]=N,d[52]=c,d[53]=u):u=d[53],u},"OrgAvatar",0,w,"getOrgColor",0,S,"getOrgInitials",0,x,"isClerkDefaultImage",0,b])},237587,499807,e=>{"use strict";var t=e.i(73610),r=e.i(151960),n=e.i(626824),i=e.i(8842),a=e.i(450740);let s=(0,n.createQueryKeys)("organization-subscription-plans",{list:e=>[e]});e.s(["organizationSubscriptionPlanKeys",0,s,"organizationSubscriptionPlansOptions",0,function(e){return(0,i.queryOptions)({queryKey:s.list(e),queryFn:null===e?a.skipToken:({signal:e})=>(0,r.fetchAPIQuery)("/api/frontend/v1/private/organization-subscription-plans",{signal:e,schema:t.OrganizationSubscriptionPlansSchema})})}],237587);var o=e.i(222666),l=e.i(505962),c=e.i(452473);let u=(0,e.i(202913).default)("building",[["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3",key:"cabbwy"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]]);var d=e.i(863458),m=e.i(435480);let h="bg-muted text-muted-foreground border-border",f="text-muted-foreground",g={pro:{label:"Pro",Icon:m.Zap,badgeClassName:h,iconClassName:f},business:{label:"Business",Icon:u,badgeClassName:h,iconClassName:f},enterprise:{label:"Enterprise",Icon:d.Building2,badgeClassName:h,iconClassName:f}};e.s(["PlanBadge",0,function(e){let t,r,n,i=(0,l.c)(18),{plan:a,compact:s,className:u}=e;if(!(a in g))return null;let d=g[a],{Icon:m}=d;if(s){let e,t,r;i[0]!==u||i[1]!==d.iconClassName?(e=(0,c.cn)("inline-flex items-center justify-center",d.iconClassName,u),i[0]=u,i[1]=d.iconClassName,i[2]=e):e=i[2];let n=`${d.label} plan`;return i[3]!==m?(t=(0,o.jsx)(m,{className:"size-3.5"}),i[3]=m,i[4]=t):t=i[4],i[5]!==e||i[6]!==n||i[7]!==t?(r=(0,o.jsx)("span",{className:e,role:"img","aria-label":n,children:t}),i[5]=e,i[6]=n,i[7]=t,i[8]=r):r=i[8],r}return i[9]!==u||i[10]!==d.badgeClassName?(t=(0,c.cn)("inline-flex items-center gap-1 rounded-full border px-1.5 py-0.5 text-overline font-medium leading-none",d.badgeClassName,u),i[9]=u,i[10]=d.badgeClassName,i[11]=t):t=i[11],i[12]!==m?(r=(0,o.jsx)(m,{className:"size-2.5 shrink-0"}),i[12]=m,i[13]=r):r=i[13],i[14]!==d.label||i[15]!==t||i[16]!==r?(n=(0,o.jsxs)("span",{className:t,children:[r,d.label]}),i[14]=d.label,i[15]=t,i[16]=r,i[17]=n):n=i[17],n}],499807)},970654,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(733288),i=e.i(452473);let a=(0,e.i(207298).cva)("inline-flex items-center rounded-full border border-border font-medium transition-colors focus-visible:outline-none focus-visible:border-focus-border focus-visible:shadow-focus",{variants:{variant:{default:"text-foreground",primary:"border-transparent bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground border-primary/14",destructive:"border-transparent bg-destructive text-destructive-foreground",positive:"bg-positive/12 text-positive-text border-positive/14",negative:"bg-negative/12 text-negative-text border-negative/14",warning:"bg-warning/12 text-warning-text border-warning/14",info:"bg-info/12 text-info-text border-info/14",promo:"bg-promo/12 text-promo-text border-promo/14"},size:{sm:"px-1.5 py-0 text-overline",md:"px-2.5 py-0.5 text-overline",lg:"px-2 py-0.5 text-overline"}},defaultVariants:{variant:"default",size:"md"}});function s(e){let n,s,o,l,c,u,d=(0,r.c)(12);return d[0]!==e?({className:n,variant:l,size:o,...s}=e,d[0]=e,d[1]=n,d[2]=s,d[3]=o,d[4]=l):(n=d[1],s=d[2],o=d[3],l=d[4]),d[5]!==n||d[6]!==o||d[7]!==l?(c=(0,i.cn)(a({variant:l,size:o}),n),d[5]=n,d[6]=o,d[7]=l,d[8]=c):c=d[8],d[9]!==s||d[10]!==c?(u=(0,t.jsx)("div",{className:c,...s}),d[9]=s,d[10]=c,d[11]=u):u=d[11],u}e.s(["Badge",0,s,"NewBadge",0,function(e){let a,o,l,c,u,d,m,h,f=(0,r.c)(15);f[0]!==e?({className:a,size:c,msg:o,...l}=e,f[0]=e,f[1]=a,f[2]=o,f[3]=l,f[4]=c):(a=f[1],o=f[2],l=f[3],c=f[4]);let g=void 0===c?"sm":c;f[5]!==a?(u=(0,i.cn)("gap-1",a),f[5]=a,f[6]=u):u=f[6];let p=o??"New";return f[7]!==p?(d=(0,t.jsx)("span",{children:p}),f[7]=p,f[8]=d):d=f[8],f[9]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(n.SparklesIcon,{className:"size-3"}),f[9]=m):m=f[9],f[10]!==l||f[11]!==g||f[12]!==u||f[13]!==d?(h=(0,t.jsxs)(s,{variant:"promo",size:g,className:u,...l,children:[d,m]}),f[10]=l,f[11]=g,f[12]=u,f[13]=d,f[14]=h):h=f[14],h},"badgeVariants",0,a])},320347,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473),i=e.i(207298),a=e.i(249656);let s=(0,i.cva)("relative flex w-full items-start justify-between gap-3 rounded-lg border px-4 py-3 text-left text-body",{variants:{variant:{default:"border-border bg-muted text-foreground",positive:"border-positive/30 bg-positive-bg text-foreground",negative:"border-negative/30 bg-negative-bg text-foreground",warning:"border-warning/30 bg-warning-bg text-foreground",info:"border-info/30 bg-info-bg text-foreground",promo:"border-promo/30 bg-promo-bg text-foreground"}},defaultVariants:{variant:"default"}}),o={default:"text-muted-foreground",positive:"text-positive",negative:"text-negative",warning:"text-warning",info:"text-info",promo:"text-promo"};e.s(["Banner",0,function(e){let i,l,c,u,d,m,h,f,g,p,v,b,y,x,S,w,k,C,_=(0,r.c)(37);return _[0]!==e?({action:i,children:l,className:c,dismissButtonProps:u,icon:d,onDismiss:m,variant:f,...h}=e,_[0]=e,_[1]=i,_[2]=l,_[3]=c,_[4]=u,_[5]=d,_[6]=m,_[7]=h,_[8]=f):(i=_[1],l=_[2],c=_[3],u=_[4],d=_[5],m=_[6],h=_[7],f=_[8]),_[9]!==u?(g=u??{},_[9]=u,_[10]=g):g=_[10],_[11]!==g?({className:p,...v}=g,_[11]=g,_[12]=p,_[13]=v):(p=_[12],v=_[13]),_[14]!==c||_[15]!==f?(b=(0,n.cn)(s({variant:f}),c),_[14]=c,_[15]=f,_[16]=b):b=_[16],_[17]!==d||_[18]!==f?(y=d&&(0,t.jsx)("span",{className:(0,n.cn)("mt-0.5 shrink-0 [&>svg]:size-4",o[f??"default"]),children:d}),_[17]=d,_[18]=f,_[19]=y):y=_[19],_[20]!==l?(x=(0,t.jsx)("div",{className:"min-w-0",children:l}),_[20]=l,_[21]=x):x=_[21],_[22]!==y||_[23]!==x?(S=(0,t.jsxs)("div",{className:"flex min-w-0 items-start gap-2",children:[y,x]}),_[22]=y,_[23]=x,_[24]=S):S=_[24],_[25]!==i?(w=i&&(0,t.jsx)("div",{className:"shrink-0 self-center",children:i}),_[25]=i,_[26]=w):w=_[26],_[27]!==p||_[28]!==v||_[29]!==m?(k=m&&(0,t.jsxs)("button",{type:"button",...v,className:(0,n.cn)("shrink-0 self-center rounded-sm p-1 text-muted-foreground transition-colors hover:bg-card-hover hover:text-foreground focus-visible:outline-none focus-visible:border-focus-border focus-visible:shadow-focus cursor-pointer",p),onClick:e=>{v.onClick?.(e),e.defaultPrevented||m()},children:[(0,t.jsx)(a.X,{className:"size-3.5"}),(0,t.jsx)("span",{className:"sr-only",children:"Dismiss"})]}),_[27]=p,_[28]=v,_[29]=m,_[30]=k):k=_[30],_[31]!==h||_[32]!==b||_[33]!==S||_[34]!==w||_[35]!==k?(C=(0,t.jsxs)("div",{className:b,...h,children:[S,w,k]}),_[31]=h,_[32]=b,_[33]=S,_[34]=w,_[35]=k,_[36]=C):C=_[36],C}])},742593,571236,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473),i=e.i(270401);e.s(["Fade",0,function(e){let a,s,o,l,c,u=(0,r.c)(17),d=e.as??"div",[m,h]=(0,i.useState)(e.initialRender??!1),f=!e.hidden;if(u[0]!==f?(a=()=>{f&&h(!0)},s=[f],u[0]=f,u[1]=a,u[2]=s):(a=u[1],s=u[2]),(0,i.useEffect)(a,s),!m)return e.loader;let g=e.style;return u[3]!==f||u[4]!==e.className||u[5]!==e.disableAnimation||u[6]!==e.inClassName||u[7]!==e.outClassName?(o=(0,n.cn)("duration-200",e.className,!e.disableAnimation&&(f?(0,n.cn)("animate-in fade-in",e.inClassName):(0,n.cn)("animate-out fade-out fill-mode-forwards",e.outClassName))),u[3]=f,u[4]=e.className,u[5]=e.disableAnimation,u[6]=e.inClassName,u[7]=e.outClassName,u[8]=o):o=u[8],u[9]!==f?(l=()=>{f||h(!1)},u[9]=f,u[10]=l):l=u[10],u[11]!==d||u[12]!==e.children||u[13]!==e.style||u[14]!==o||u[15]!==l?(c=(0,t.jsx)(d,{style:g,className:o,onAnimationEnd:l,children:e.children}),u[11]=d,u[12]=e.children,u[13]=e.style,u[14]=o,u[15]=l,u[16]=c):c=u[16],c}],571236),e.s([],742593)},507869,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473);let i=(0,e.i(207298).cva)("inline-flex h-5 min-w-5 items-center justify-center rounded-sm px-1.5 py-0.5 font-mono text-overline leading-none",{variants:{variant:{default:"bg-muted text-muted-foreground",action:"border border-border bg-background text-foreground shadow-sm"}},defaultVariants:{variant:"default"}});e.s(["Shortcut",0,function(e){let a,s,o,l,c,u=(0,r.c)(10);return u[0]!==e?({className:a,variant:o,...s}=e,u[0]=e,u[1]=a,u[2]=s,u[3]=o):(a=u[1],s=u[2],o=u[3]),u[4]!==a||u[5]!==o?(l=(0,n.cn)(i({variant:o}),a),u[4]=a,u[5]=o,u[6]=l):l=u[6],u[7]!==s||u[8]!==l?(c=(0,t.jsx)("kbd",{className:l,...s}),u[7]=s,u[8]=l,u[9]=c):c=u[9],c}])},910939,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473);e.s(["Spinner",0,e=>{let i,a,s,o,l=(0,r.c)(6),{className:c}=e,u=void 0===c?"":c;return l[0]!==u?(i=(0,n.cn)("h-6 w-6","flex items-center justify-center",u),l[0]=u,l[1]=i):i=l[1],l[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("title",{children:"Loading..."}),s=(0,t.jsx)("circle",{className:"origin-center animate-spin will-change-transform",cx:"50%",cy:"50%",r:"25%",strokeWidth:"10%",strokeLinecap:"round",strokeDasharray:"15%",fill:"none",stroke:"currentColor"}),l[2]=a,l[3]=s):(a=l[2],s=l[3]),l[4]!==i?(o=(0,t.jsxs)("svg",{className:i,children:[a,s]}),l[4]=i,l[5]=o):o=l[5],o}])},712518,984816,e=>{"use strict";var t=e.i(505962),r=e.i(270401),n=e.i(150049),i=e.i(980351);function a(){return()=>{}}function s(){}e.s(["useSignupTimezone",0,function(){let e,o=(0,t.c)(3),l=(0,r.useSyncExternalStore)(a,n.resolveBrowserTimeZone,s),c=(0,i.useHydrated)();return o[0]!==c||o[1]!==l?(e={isResolved:c,timezone:l},o[0]=c,o[1]=l,o[2]=e):e=o[2],e}],712518);var o=e.i(743902),l=e.i(553215),c=e.i(693697),u=e.i(564618);let d=new Set([o.SIGNUP_CF_METADATA_KEY,o.SIGNUP_CF_CLIENT_STATUS_KEY,o.SIGNUP_RADAR_SESSION_METADATA_KEY,o.SIGNUP_RADAR_SESSION_STATUS_KEY]);e.s(["buildSignupUnsafeMetadata",0,function({sessionId:e,anonymousDistinctId:t,sealedSignupCfMetadataResult:r,radarSessionRelay:n=(0,u.readSignupRadarSessionRelay)(),existingMetadata:i}){let a=void 0!==r&&"sealedSignupCfMetadata"in r?r.sealedSignupCfMetadata:void 0,s=void 0!==r&&"status"in r?r.status:void 0;return{...Object.fromEntries(Object.entries(i??{}).filter(([e])=>!d.has(e))),[l.PostHogMetaDataKey.SessionId]:e,[l.PostHogMetaDataKey.AnonDistinctId]:t,...a?{[o.SIGNUP_CF_METADATA_KEY]:a}:{},...(0,c.isOk)(n)?{[o.SIGNUP_RADAR_SESSION_METADATA_KEY]:n.data}:{[o.SIGNUP_RADAR_SESSION_STATUS_KEY]:n.error},...void 0===a&&void 0!==s?{[o.SIGNUP_CF_CLIENT_STATUS_KEY]:s}:{}}}],984816)},139616,e=>{"use strict";e.i(204067);var t=e.i(796805);let r=t.z.object({ciphertext:t.z.string().min(1),nonce:t.z.string().min(1)}),n=t.z.object({sealed:r.nullable().openapi({description:"Sealed signup Cloudflare metadata for the calling request, or null when sealing is unavailable (e.g. missing encryption key in local dev)."})});t.z.object({data:n}),e.s(["SealedSignupCfMetadataDataSchema",0,n])},93090,e=>{"use strict";async function t(e,t,r){let n=[],i=0;async function a(){for(;ia())),Promise.all(n)}e.i(693697),e.i(484704),e.s(["mapWithConcurrency",0,t,"promiseWithResolvers",0,function(){let e,t;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}}])},484704,e=>{"use strict";function t(e){return null===e||"object"!=typeof e&&"function"!=typeof e}let r=new WeakMap;async function n(e){let n;return new Promise((i,a)=>{for(let s of(n={resolve:i,reject:a},e)){if(t(s)){Promise.resolve(s).then(i,a);continue}let e=r.get(s);void 0===e?(e=function(e){let t=new Set,r={deferreds:t,settled:!1};return Promise.resolve(e).then(e=>{for(let{resolve:r}of t)r(e);t.clear(),r.settled=!0},e=>{for(let{reject:r}of t)r(e);t.clear(),r.settled=!0}),r}(s))&&(e.deferreds.add(n),r.set(s,e)):e.settled?Promise.resolve(s).then(i,a):e.deferreds.add(n)}}).finally(()=>{for(let i of e)if(!t(i)){let e=r.get(i);e?.deferreds.delete(n)}})}e.s(["safeRace",0,n])},337804,e=>{"use strict";e.i(200222);var t=e.i(629572),r=e.i(693697);function n(e){let t=e.replaceAll(/^\[|\]$/g,""),r=l(t);if(r)return n(r);if(a(t)){let e=Number.parseInt(t.split(".")[0]??"",10);return 0===e||127===e}let i=s(t);if(i)return i.slice(0,15).every(e=>0===e)&&(0===i[15]||1===i[15]);let o=c(t);return"localhost"===o||o.endsWith(".localhost")||o.includes(":")}function i(e){let t=l(e.replaceAll(/^\[|\]$/g,""));if(t)return i(t)||n(t);if(a(e)){let t=e.split(".").map(Number);if(4!==t.length||t.some(e=>Number.isNaN(e)))return!1;let[r,n]=t;return void 0!==r&&void 0!==n&&(10===r||172===r&&n>=16&&n<=31||192===r&&168===n||100===r&&n>=64&&n<=127||169===r&&254===n)}if(null!==s(e)){let t=s(e);return null!==t&&(((t[0]??0)&254)==252||o(t))}return!1}function a(e){let t=e.split(".");return 4===t.length&&t.every(e=>/^\d{1,3}$/.test(e)&&Number(e)>=0&&255>=Number(e))}function s(e){let t=e.replaceAll(/^\[|\]$/g,"").toLowerCase(),r=t.indexOf("%");if(-1!==r){if(0===r||r===t.length-1)return null;t=t.slice(0,r)}if(!t.includes(":"))return null;if(t.includes(".")){let e=t.lastIndexOf(":");if(-1===e)return null;let r=t.slice(e+1);if(!a(r))return null;let n=r.split(".").map(Number),i=(n[0]??0)<<8|(n[1]??0),s=(n[2]??0)<<8|(n[3]??0);t=`${t.slice(0,e+1)}${i.toString(16)}:${s.toString(16)}`}let n=t.indexOf("::");if(n!==t.lastIndexOf("::"))return null;let i=-1!==n?function(e,t){let r=e.slice(0,t),n=e.slice(t+2),i=""===r?[]:r.split(":"),a=""===n?[]:n.split(":");if(i.some(e=>""===e)||a.some(e=>""===e))return null;let s=8-i.length-a.length;return s<1?null:[...i,...Array.from({length:s},()=>"0"),...a]}(t,n):t.split(":");return null===i||8!==i.length||i.some(e=>!/^[0-9a-f]{1,4}$/.test(e))?null:i.flatMap(e=>{let t=Number.parseInt(e,16);return[t>>8&255,255&t]})}function o(e){return 254===e[0]&&((e[1]??0)&192)==128}function l(e){let t=s(e);if(null===t)return null;let r=t.slice(0,10).every(e=>0===e)&&255===t[10]&&255===t[11],n=t.slice(0,12).every(e=>0===e),i=t.slice(0,15).every(e=>0===e)&&(0===t[15]||1===t[15]);return!r&&!n||n&&i?null:`${t[12]}.${t[13]}.${t[14]}.${t[15]}`}function c(e){let t=e.toLowerCase(),r=t.length;for(;r>0&&"."===t[r-1];)r-=1;return t.slice(0,r)}e.s(["isAllowedWebhookUrlScheme",0,function(e,t){return"https:"===e.protocol||"http:"===e.protocol&&t&&n(e.hostname)},"isIPLiteral",0,function(e){let t=e.replaceAll(/^\[|\]$/g,"");return a(t)||null!==s(t)},"isLocalhost",0,n,"isPrivateIP",0,i,"validateUrlForSSRF",0,function(e,l={}){let u,d,m,h;try{u=new URL(e)}catch{return(0,r.err)("Invalid URL format")}let f=u.hostname.toLowerCase(),g=u.protocol,p=(0,t.isDev)()&&!0;if(n(f)&&p)return"http:"!==g&&"https:"!==g?(0,r.err)("Only HTTP and HTTPS protocols are allowed"):(0,r.ok)(!0);if(n(f))return(0,r.err)("Localhost URLs are not allowed");if(i(f))return(0,r.err)("Private IP addresses are not allowed");if(function(e){if(a(e)){let t=e.split(".").map(Number);if(4===t.length&&169===t[0]&&254===t[1])return!0}if(null!==s(e)){let t=s(e);return null!==t&&o(t)}return!1}(f)||"metadata.google.internal"===(d=c(f))||d.endsWith(".metadata.google.internal")||(m=c(f)).endsWith(".svc")||m.endsWith(".svc.cluster.local")||m.endsWith(".cluster.local")||(h=c(f)).endsWith(".internal")||h.endsWith(".local"))return(0,r.err)("Unsupported URL, public internet addresses only");if(!p&&"https:"!==g){if(!l.allowHttp)return(0,r.err)("Only HTTPS URLs are allowed");if("http:"!==g)return(0,r.err)("Only HTTP and HTTPS protocols are allowed")}return p&&"http:"!==g&&"https:"!==g?(0,r.err)("Only HTTP and HTTPS protocols are allowed in dev"):(0,r.ok)(!0)}],337804)},987511,e=>{"use strict";let t="curl -fsSL https://openrouter.ai/labs/ori/install.sh | bash";e.s(["HERO",0,{kicker:"Meet Ori",title:["Use every model,","right where you are."],body:"OpenRouter’s family of tools for putting any model to work in your terminal, in Slack, and on your desktop.",emailPlaceholder:"Enter your email address",chooser:{prompt:"Where do you want to use Ori?",options:[{id:"terminal",label:"Terminal",target:"harness"},{id:"slack",label:"Slack",target:"intern"},{id:"desktop",label:"Desktop",target:"desktop"}]},invalidEmail:"That does not look like an email address.",emptyEmail:"Enter an email address first.",submitFailed:"That did not save. Please try again.",rateLimited:"Too many attempts from your network. Wait a minute and try again."},"PRODUCTS",0,[{id:"harness",name:"Ori ",status:"live",family:"CLI",title:"Use any model in your favorite harness",body:"`ori claude`, `ori codex`, `ori hermes`, and more: launch your coding agent with the `ori` CLI to use any model from OpenRouter. Switch from the native model selector with no extra auth and respect your org’s guardrails.",cta:{label:"Explore Ori Harness",kind:"docs",href:"/ori/harness",command:t}},{id:"code",name:"Ori Code",status:"live",family:"CLI",title:"OpenRouter’s native coding agent",body:"Ori Code is built from the ground up to be the best terminal agent for using OpenRouter. A beautiful terminal experience crafted natively for working with multiple models.",cta:{label:"Explore Ori Code",kind:"docs",href:"/ori/code",isLandingGated:!0,command:t}},{id:"eval",name:"Ori Eval",status:"live",family:"CLI",title:"Find the best model for your project",body:"Get model recommendations tailored for what your app does. Run `ori eval` to find the prompts in your app, create evals for them, and test how they perform across many models.",cta:{label:"Explore Ori Eval",kind:"docs",href:"/ori/eval",command:t}},{id:"intern",name:"Ori Intern",status:"waitlist",title:"Deploy Slack agents that run any model",body:"Give everyone on your team an Intern in Slack. Ori Interns learn and build skills naturally rather than feeling like an engineering task. Their skills work across any model, so you can find the most cost-optimal way to delegate work to your intern. Skills are easily shareable across interns so your entire org improves together.",cta:{label:"Join the waitlist",kind:"waitlist"}},{id:"desktop",name:"Ori Desktop",status:"waitlist",title:"Send tasks to any model from your Mac",body:"An OS-native experience for sending tasks to any OpenRouter model. Tasks run with Ori, so they can use any harness and run across hundreds of models. Quickly create tasks from the menu bar, manage sessions, and make approvals.",cta:{label:"Join the waitlist",kind:"waitlist"}}],"WAITLIST",0,{kicker:"Join the waitlist",title:"Get on the list.",body:"The Ori CLI is live today. Ori Intern is in private testing and Desktop is on the way. Leave an address and we will pull you into testing as spots open.",emailLabel:"Work email",submit:"Join the waitlist",thanksTitle:"You're on the list",thanksBody:"Help shape Ori by telling us about the agent you use today.",modalTitle:"About your agent",skipRest:"Finish later",next:"Next",back:"Back",send:"Finish",close:"Close questionnaire",resume:"Answer a few questions",resumeDone:"Continue the questions",freeformStep:"Anything else",freeformLabel:"What would make your agent more useful?",freeformPlaceholder:"A task you want to delegate, a problem with your current setup, or something we missed…",doneTitle:"Thanks for helping shape Ori.",doneBody:"You are on the waitlist. We will be in touch as testing spots open, and may reach out to learn more about your workflow."}])},299701,e=>{"use strict";var t=e.i(714243),r=e.i(252661),n=e.i(93705),i=e.i(220499);let a={code:e.i(320426).SquareTerminal,harness:i.Plug,eval:r.Gauge,intern:n.GraduationCap,desktop:t.AppWindowMac};e.s(["PRODUCT_ICONS",0,a])},88130,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(270401);let i=(0,n.createContext)(null);function a(e){return!e}function s(){return o}function o(){}function l(){}function c(){}e.s(["MobileSidebarProvider",0,function(e){let s,o,l,c,u,d=(0,r.c)(9),{children:m}=e,[h,f]=(0,n.useState)(!1),[g,p]=(0,n.useState)(!1);d[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>f(a),d[0]=s):s=d[0];let v=s;d[1]===Symbol.for("react.memo_cache_sentinel")?(o=()=>f(!1),d[1]=o):o=d[1];let b=o;d[2]===Symbol.for("react.memo_cache_sentinel")?(l=()=>(p(!0),()=>{p(!1),f(!1)}),d[2]=l):l=d[2];let y=l;d[3]!==g||d[4]!==h?(c={isOpen:h,hasSidebar:g,toggle:v,close:b,register:y},d[3]=g,d[4]=h,d[5]=c):c=d[5];let x=c;return d[6]!==m||d[7]!==x?(u=(0,t.jsx)(i.Provider,{value:x,children:m}),d[6]=m,d[7]=x,d[8]=u):u=d[8],u},"useMobileSidebar",0,function(){let e=(0,r.c)(1),t=(0,n.useContext)(i);if(!t){let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={isOpen:!1,hasSidebar:!1,toggle:c,close:l,register:s},e[0]=t):t=e[0],t}return t}])},238071,e=>{"use strict";var t=e.i(462904),r=e.i(81174),n=e.i(693697);e.s(["claimSessionExposure",0,function(e,i,a){let s=`or:experiment-exposure:${e}`,o=`${i}:${a}`,l=(0,n.wrap)(()=>window.sessionStorage.getItem(s)!==o&&(window.sessionStorage.setItem(s,o),!0));return(0,n.isErr)(l)?((0,r.wLog)("experiment-exposure-claim-failed",{experiment:e,...(0,t.errorToLogFields)(l.error)}),!0):l.data}])},804021,e=>{"use strict";let t={Treatment:"treatment",Control:"control"};e.s(["ExperimentArm",0,t,"MEASURED_EXPERIMENTS",0,[],"RETIRED_EXPERIMENTS",0,["model_page_pins","tasks_surface"],"armForFlagValue",0,function(e){return e?t.Treatment:t.Control},"armPropertyName",0,function(e){return`${e}_arm`}])},375813,e=>{"use strict";let t="devpanel.statsig-gate-overrides";function r(e){try{if(0===Object.keys(e).length)return void window.localStorage.removeItem(t);window.localStorage.setItem(t,JSON.stringify(e))}catch{}}class n{overrides;customerModeValues=null;revision=0;listeners=new Set;constructor(){this.overrides=function(){try{let e=window.localStorage.getItem(t);if(!e)return{};let r=JSON.parse(e);if(!r||"object"!=typeof r||Array.isArray(r))return{};let n={};for(let[e,t]of Object.entries(r))"boolean"==typeof t&&(n[e]=t);return n}catch{return{}}}()}getGateOverride(e){let t=this.customerModeValues?.get(e.name);if(void 0!==t)return{...e,value:t,details:{...e.details,reason:"CustomerMode:DevPanel"}};let r=this.overrides[e.name];return void 0===r?null:{...e,value:r,details:{...e.details,reason:"LocalOverride:DevPanel"}}}getOverrides(){return this.overrides}getRevision(){return this.revision}setCustomerModeValues(e){var t,r;t=this.customerModeValues,t===(r=e)||null!==t&&null!==r&&t.size===r.size&&[...r].every(([e,r])=>t.get(e)===r)||(this.customerModeValues=e,this.notify())}setOverride(e,t){this.overrides[e]!==t&&(this.overrides={...this.overrides,[e]:t},r(this.overrides),this.notify())}clearOverride(e){if(!(e in this.overrides))return;let t={...this.overrides};delete t[e],this.overrides=t,r(this.overrides),this.notify()}clearAll(){0!==Object.keys(this.overrides).length&&(this.overrides={},r(this.overrides),this.notify())}pruneOverrides(e){let t=new Set(e),n=Object.fromEntries(Object.entries(this.overrides).filter(([e])=>t.has(e)));Object.keys(n).length!==Object.keys(this.overrides).length&&(this.overrides=n,r(this.overrides),this.notify())}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}notify(){for(let e of(this.revision+=1,this.listeners))e()}}let i=new n;e.s(["statsigGateOverrideAdapter",0,i])},707512,e=>{"use strict";e.i(204067);var t=e.i(796805);let r=t.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/),n=t.z.object({seed:r,values:t.z.record(t.z.string(),t.z.boolean())}),i=t.z.object({data:n});e.s(["StatsigCustomerProfileResponseSchema",0,i,"StatsigCustomerSeedSchema",0,r])},773109,e=>{"use strict";var t=e.i(222666),r=e.i(850658),n=e.i(306937),i=e.i(743902),a=e.i(252358),s=e.i(712518),o=e.i(270401),l=e.i(954947),c=e.i(610814),u=e.i(564618),d=e.i(984816),m=e.i(945434),h=e.i(148333),f=e.i(979749);e.s(["SignUpButton",0,function({sealedSignupCfMetadata:e,children:g,...p}){let{openSignUp:v}=(0,n.useClerk)(),b=(0,a.usePosthogClient)(),{timezone:y}=(0,s.useSignupTimezone)(),x=(0,h.useSignupCtaAttribution)(),[S,w]=(0,o.useState)(!1),k=(0,o.useRef)(!1),{isSignedIn:C}=(0,r.useAuth)();(0,m.useIdlePrefetchSealedSignupCfMetadata)(C,void 0===e);let _=(0,f.useSignupIntentPrefetch)(C,void 0===e),R=(0,o.useCallback)(async()=>{if(void 0===v)return;let[t,r]=await Promise.all([void 0===e?(0,l.awaitSealedSignupCfMetadata)(c.SIGNUP_METADATA_AWAIT_TIMEOUT_MS):{sealedSignupCfMetadata:e},(0,u.awaitSignupRadarSessionRelay)(c.SIGNUP_METADATA_AWAIT_TIMEOUT_MS)]);v({forceRedirectUrl:p.forceRedirectUrl,signInForceRedirectUrl:p.signInForceRedirectUrl,unsafeMetadata:{...(0,d.buildSignupUnsafeMetadata)({sessionId:b.get_session_id()??"",anonymousDistinctId:b.get_distinct_id()??"",sealedSignupCfMetadataResult:t,radarSessionRelay:r}),...y?{[i.SIGNUP_TIMEZONE_METADATA_KEY]:y}:{},...x()}})},[v,b,p.forceRedirectUrl,p.signInForceRedirectUrl,e,y,x]),E=(0,o.isValidElement)(g)?(0,o.cloneElement)(g,{"aria-busy":S||void 0,disabled:S||g.props.disabled,..."string"==typeof g.type?{}:{isLoading:S},onClick:async e=>{if(!k.current){k.current=!0,w(!0);try{try{await g.props.onClick?.(e)}catch(e){b.captureException(e,{error_source:"signup-child-click"})}await R()}catch(e){b.captureException(e,{error_source:"signup-modal-open"})}finally{k.current=!1,w(!1)}}}}):g;return(0,t.jsx)("span",{className:"contents",onPointerEnter:_,onPointerDown:_,onTouchStart:_,onFocus:_,children:E})}])},910209,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473),i=e.i(528164);e.i(742593);var a=e.i(571236),s=e.i(980351),o=e.i(150049),l=e.i(270401);e.i(406201);var c=e.i(806024),u=e.i(998237);let d="openrouter-cookie-consent";e.s(["COOKIE_CONSENT",0,d,"CookieConsent",0,()=>{let e,m,h,f,g,p,v,b,y,x,S=(0,r.c)(19),[w,k]=(0,u.useBooleanLocalStorage)("openrouter-cookie-consent-banner"),[C,_]=(0,u.useBooleanLocalStorage)(d),R=(0,s.useHydrated)(),E=(0,o.useResolvedDisplayTimeZone)("local");S[0]!==R||S[1]!==k||S[2]!==E?(e=()=>{R&&!E.includes("Europe")&&k(!0)},m=[R,E,k],S[0]=R,S[1]=k,S[2]=E,S[3]=e,S[4]=m):(e=S[3],m=S[4]),(0,l.useEffect)(e,m),S[5]!==_||S[6]!==k?(h=e=>{k(!0),_(e)},S[5]=_,S[6]=k,S[7]=h):h=S[7];let M=h;if(!C&&!w)return S[8]===Symbol.for("react.memo_cache_sentinel")?(f=(0,n.cn)("fixed w-full bottom-0 z-overlay","sm:bottom-4 sm:right-4 sm:max-w-xl sm:rounded-lg","flex flex-col gap-4 px-6 py-4","bg-background border shadow-lg"),g=(0,t.jsx)("h3",{className:"text-base font-semibold text-inherit",children:"Cookie Preferences"}),p=(0,t.jsx)("p",{children:"We use essential cookies for site functionality and optional cookies for analytics."}),S[8]=f,S[9]=g,S[10]=p):(f=S[8],g=S[9],p=S[10]),S[11]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)(c.Link,{href:"/privacy",target:"_self",className:"text-sm mr-auto",children:"Privacy policy"}),S[11]=v):v=S[11],S[12]!==M?(b=(0,t.jsx)(i.Button,{variant:"outline",type:"button",className:"text-sm px-4 py-2",onClick:()=>M(!1),children:"Decline"}),S[12]=M,S[13]=b):b=S[13],S[14]!==M?(y=(0,t.jsx)(i.Button,{variant:"default",type:"button",className:"text-sm px-4 py-2",onClick:()=>M(!0),children:"Accept"}),S[14]=M,S[15]=y):y=S[15],S[16]!==b||S[17]!==y?(x=(0,t.jsxs)(a.Fade,{className:f,children:[g,p,(0,t.jsxs)("div",{className:"flex justify-end items-center gap-4",children:[v,b,y]})]}),S[16]=b,S[17]=y,S[18]=x):x=S[18],x}])},511640,e=>{"use strict";let t={TopLeft:"top-left",TopRight:"top-right",BottomLeft:"bottom-left",BottomRight:"bottom-right"},r=[t.TopLeft,t.TopRight,t.BottomLeft,t.BottomRight],n={[t.TopLeft]:"Top left",[t.TopRight]:"Top right",[t.BottomLeft]:"Bottom left",[t.BottomRight]:"Bottom right"};e.s(["ALL_CORNERS",0,r,"CORNER_LABEL",0,n,"Corner",0,t,"cornerClasses",0,function(e){switch(e){case t.TopLeft:return"top-4 left-4";case t.TopRight:return"top-4 right-4";case t.BottomLeft:return"bottom-4 left-4";case t.BottomRight:return"bottom-4 right-4";default:throw Error(`Unhandled corner: ${String(e)}`)}},"nearestCorner",0,function(e,r){let n=e.left+e.width/2,i=e.top+e.height/2,a=r.width/2,s=i{"use strict";var t=e.i(693697),r=e.i(204067),n=e.i(270401),i=e.i(796805),a=e.i(707512),s=e.i(511640);let o={Circular:"circular",Sleek:"sleek"},l=[o.Circular,o.Sleek],c=o.Circular,u={Customer:"customer",Internal:"internal"},d=[u.Customer,u.Internal],m=u.Internal,h=s.Corner.BottomRight,f="devpanel.closedFormat",g="devpanel.panelAnchor",p="devpanel.disabledForSession",v="devpanel.flagMode",b="devpanel.customerSeed",y=["devpanel.anchor","devpanel.buttonAnchor"],x=i.z.enum(l),S=i.z.enum(s.ALL_CORNERS),w=i.z.enum(d),k={closedFormat:c,panelAnchor:h,disabledForSession:!1,flagMode:m,customerSeed:"",customerModeFetchFailed:!1},C=!1,_=new Set;function R(e){if(e.closedFormat!==k.closedFormat||e.panelAnchor!==k.panelAnchor||e.disabledForSession!==k.disabledForSession||e.flagMode!==k.flagMode||e.customerSeed!==k.customerSeed||e.customerModeFetchFailed!==k.customerModeFetchFailed)for(let t of(k=e,_))t()}function E(){return k}function M(e){return _.add(e),()=>{_.delete(e)}}function N(e){e!==k.panelAnchor&&(R({...k,panelAnchor:e}),A({kind:"local",key:g,value:e}))}function A({kind:e,key:t,value:r}){let n=O(e);if(n)try{n.setItem(t,r)}catch{}}function I(e,t){let r=O(e);if(r)try{r.removeItem(t)}catch{}}function O(e){try{return"local"===e?window.localStorage:window.sessionStorage}catch{return null}}e.s(["ALL_FLAG_MODES",0,d,"ClosedFormat",0,o,"FlagMode",0,u,"clearDisabledForSession",0,function(){!1!==k.disabledForSession&&(R({...k,disabledForSession:!1}),I("session",p))},"getDevPanelState",0,E,"hydrateDevPanelStore",0,function(){if(C)return!1;for(let e of(C=!0,y))I("local",e);let e=function(){let e=O("local");if(!e)return null;try{let n=e.getItem(f);if(null===n)return null;let i=(0,r.parseSchema)(x,n);return(0,t.isOk)(i)?i.data:null}catch{return null}}()??c,n=function(){let e=O("local");if(!e)return null;try{let n=e.getItem(g);if(null===n)return null;let i=(0,r.parseSchema)(S,n);return(0,t.isOk)(i)?i.data:null}catch{return null}}()??h,i=function(){let e=O("session");if(!e)return!1;try{return"1"===e.getItem(p)}catch{return!1}}(),s=function(){let e=O("local");if(!e)return null;try{let n=e.getItem(v);if(null===n)return null;let i=(0,r.parseSchema)(w,n);return(0,t.isOk)(i)?i.data:null}catch{return null}}()??m,o=function(){let e=O("local");if(!e)return null;try{let n=e.getItem(b);if(null===n)return null;let i=(0,r.parseSchema)(a.StatsigCustomerSeedSchema,n);return(0,t.isOk)(i)?i.data:null}catch{return null}}()??crypto.randomUUID();A({kind:"local",key:b,value:o});let l=function(){try{return"on"===new URLSearchParams(window.location.search).get("devpanel")}catch{return!1}}();return l&&i&&I("session",p),R({closedFormat:e,panelAnchor:n,disabledForSession:!l&&i,flagMode:s,customerSeed:o,customerModeFetchFailed:!1}),!0},"rerollCustomerSeed",0,function(){var e;(e=crypto.randomUUID())!==k.customerSeed&&(R({...k,customerSeed:e}),A({kind:"local",key:b,value:e}))},"resetPanelAnchor",0,function(){N(h)},"setClosedFormat",0,function(e){e!==k.closedFormat&&(R({...k,closedFormat:e}),A({kind:"local",key:f,value:e}))},"setCustomerModeFetchFailed",0,function(e){e!==k.customerModeFetchFailed&&R({...k,customerModeFetchFailed:e})},"setFlagMode",0,function(e){e!==k.flagMode&&(R({...k,flagMode:e}),A({kind:"local",key:v,value:e}))},"setPanelAnchor",0,N,"useDevPanelStore",0,function(){return(0,n.useSyncExternalStore)(M,E,E)}],213298);var T=e.i(505962),j=e.i(448712),L=e.i(877357);e.s(["useRefreshStatsigConsumers",0,function(){let e,t=(0,T.c)(2),{client:r}=(0,j.useStatsigClient)();return t[0]!==r?(e=()=>{r instanceof j.StatsigClient?r.updateUserSync(r.getContext().user,L.STATSIG_SYNC_UPDATE_OPTIONS):r.updateUserSync(r.getContext().user)},t[0]=r,t[1]=e):e=t[1],e}],484182)},376294,e=>{"use strict";var t=e.i(222666),r=e.i(505962);e.s(["OpenRouterIcon",0,e=>{let n,i,a,s,o=(0,r.c)(7);o[0]!==e?({className:i,...n}=e,o[0]=e,o[1]=n,o[2]=i):(n=o[1],i=o[2]);let l=void 0===i?"":i;return o[3]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("path",{d:"M303.9475,17.19926c42.79734,0,77.48933,34.69327,77.48933,77.48933s-34.69199,77.48933-77.48933,77.48933l76.86166,76.86244c9.76367,9.76313,2.84903,26.45667-10.95697,26.45667h-220.88335c-71.32686,0-129.14889-57.82202-129.14889-129.14889S77.64197,17.19926,148.96884,17.19926h154.97866ZM148.96884,68.85881c-42.79607,0-77.48933,34.69327-77.48933,77.48933s34.69327,77.48933,77.48933,77.48933,77.48933-34.69327,77.48933-77.48933-34.69327-77.48933-77.48933-77.48933Z"}),o[3]=a):a=o[3],o[4]!==l||o[5]!==n?(s=(0,t.jsx)("svg",{width:"100%",height:"100%",viewBox:"0 0 401.4 293.7",xmlns:"http://www.w3.org/2000/svg",className:l,fill:"currentColor",role:"img","aria-label":"OpenRouter",...n,children:a}),o[4]=l,o[5]=n,o[6]=s):s=o[6],s}])},539326,e=>{"use strict";function t(e,t){return e<=0?0:Math.min(e,t)}e.s(["cnGlassScrollHint",0,"flex size-[22px] items-center justify-center rounded-full border border-border/60 bg-popover/50 shadow-sm backdrop-blur-sm transition-opacity","computeScrollEdgeFade",0,function(e,r={}){let{scrollLeft:n,scrollWidth:i,clientWidth:a}=e,{maxFadePx:s=64,edgeAlpha:o=.2}=r,l=i-a;if(l<=0)return"none";let c=`rgb(0 0 0 / ${o})`,u=t(n,s),d=t(l-n,s);return`linear-gradient(to right, ${c} 0, #000 ${u}px, #000 calc(100% - ${d}px), ${c} 100%)`}])},954947,e=>{"use strict";var t=e.i(151960),r=e.i(139616),n=e.i(743902),i=e.i(484704),a=e.i(693697);let s=function(e,t=Date.now){let r,s,o,l,c=0,u=!1,d=()=>{if(void 0!==r){if(void 0!==s&&t()-s<12e4)return Promise.resolve({sealedSignupCfMetadata:r});r=void 0,s=void 0}if(void 0!==l){if(t()-l.since<6e4)return Promise.resolve({status:l.status});c=0,l=void 0}if(void 0!==o)return o;let i=d();return o=i,i;async function d(){c+=1;let i=await (0,a.wrap)(e);if(o=void 0,(0,a.isErr)(i)){let e=d();return l=void 0===e?void 0:{since:e,status:n.SealedSignupCfMetadataStatus.FetchFailed},{status:n.SealedSignupCfMetadataStatus.FetchFailed}}if(void 0===i.data){let e=d();return l=void 0===e?void 0:{since:e,status:n.SealedSignupCfMetadataStatus.Unavailable},{status:n.SealedSignupCfMetadataStatus.Unavailable}}return r=i.data,s=t(),c=0,l=void 0,u=!1,{sealedSignupCfMetadata:i.data};function d(){return c>=3?t():void 0}}},m=()=>{d().then(e=>{"sealedSignupCfMetadata"in e||u||(u=!0,setTimeout(m,5e3))})};return{awaitSealedSignupCfMetadata:async e=>{let t,r=Symbol("signup-cf-metadata-timeout"),a=new Promise(n=>{t=setTimeout(n,e,r)});try{let e=await (0,i.safeRace)([d(),a]);if(e===r)return{status:n.SealedSignupCfMetadataStatus.TimedOut};return e}finally{void 0!==t&&clearTimeout(t)}},prefetchSealedSignupCfMetadata:m}}(async function(){let{sealed:e}=await (0,t.fetchAPIQuery)("/api/frontend/v1/private/signup-cf-metadata",{schema:r.SealedSignupCfMetadataDataSchema});return e??void 0});e.s(["awaitSealedSignupCfMetadata",0,e=>s.awaitSealedSignupCfMetadata(e),"prefetchSealedSignupCfMetadata",0,()=>s.prefetchSealedSignupCfMetadata()],954947)},652116,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473);e.s(["CommandKFooter",0,function(e){let i,a,s,o,l,c,u,d,m,h,f,g=(0,r.c)(22),{keyboardClassName:p}=e,v=void 0===p?"text-xs":p;g[0]!==v?(i=(0,n.cn)("inline-flex h-5 min-w-5 items-center justify-center rounded bg-muted px-1 font-mono",v),g[0]=v,g[1]=i):i=g[1];let b=i;return g[2]!==b?(a=(0,t.jsx)("kbd",{className:b,children:"↑"}),s=(0,t.jsx)("kbd",{className:b,children:"↓"}),g[2]=b,g[3]=a,g[4]=s):(a=g[3],s=g[4]),g[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)("span",{className:"ml-0.5",children:"Navigate"}),g[5]=o):o=g[5],g[6]!==a||g[7]!==s?(l=(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[a,s,o]}),g[6]=a,g[7]=s,g[8]=l):l=g[8],g[9]!==b?(c=(0,t.jsx)("kbd",{className:b,children:"↵"}),g[9]=b,g[10]=c):c=g[10],g[11]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)("span",{className:"ml-0.5",children:"Select"}),g[11]=u):u=g[11],g[12]!==c?(d=(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[c,u]}),g[12]=c,g[13]=d):d=g[13],g[14]!==l||g[15]!==d?(m=(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[l,d]}),g[14]=l,g[15]=d,g[16]=m):m=g[16],g[17]!==b?(h=(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)("kbd",{className:b,children:"⌘"}),(0,t.jsx)("kbd",{className:b,children:"K"})]}),g[17]=b,g[18]=h):h=g[18],g[19]!==m||g[20]!==h?(f=(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between border-t border-border bg-muted/30 px-5 py-3 text-xs text-muted-foreground",children:[m,h]}),g[19]=m,g[20]=h,g[21]=f):f=g[21],f}])},716221,e=>{"use strict";let t=(0,e.i(948810).create)()(e=>({isOpen:!1,setIsOpen:t=>e({isOpen:t}),toggle:()=>e(e=>({isOpen:!e.isOpen}))}));e.s(["useCommandKStore",0,t])},610814,945434,e=>{"use strict";e.s(["SIGNUP_METADATA_AWAIT_TIMEOUT_MS",0,4e3],610814);var t=e.i(505962),r=e.i(270401),n=e.i(954947);e.s(["useIdlePrefetchSealedSignupCfMetadata",0,function(e,i){let a,s,o=(0,t.c)(3),l=(void 0===i||i)&&!1===e;o[0]!==l?(a=()=>{if(l){if("function"==typeof window.requestIdleCallback){let e=window.requestIdleCallback(()=>{(0,n.prefetchSealedSignupCfMetadata)()});return()=>{window.cancelIdleCallback(e)}}let e=setTimeout(()=>{(0,n.prefetchSealedSignupCfMetadata)()},200);return()=>{clearTimeout(e)}}},s=[l],o[0]=l,o[1]=a,o[2]=s):(a=o[1],s=o[2]),(0,r.useEffect)(a,s)}],945434)},564618,e=>{"use strict";var t=e.i(743902),r=e.i(462904),n=e.i(81174),i=e.i(693697),a=e.i(204067),s=e.i(796805),o=e.i(270401),l=e.i(93090);let c=(0,i.err)(t.SignupRadarSessionStatus.NotStarted),u=(0,i.err)(t.SignupRadarSessionStatus.MintPending),d=e=>(0,i.isErr)(e)&&e.error===t.SignupRadarSessionStatus.MintPending,m=s.z.object({radarSession:s.z.object({id:t.RadarSessionIdSchema})});function h(e,t={}){return(0,n.wLog)("signup-radar-session-mint-failed",{reason:e,...t}),(0,i.err)(e)}let f=async()=>{let{stripeRoot:t}=await e.A(915603);return await t};async function g(e=f){let n=await (0,i.wrap)(e);if((0,i.isErr)(n))return h(t.SignupRadarSessionStatus.StripeLoadFailed,(0,r.errorToLogFields)(n.error));if(!n.data)return h(t.SignupRadarSessionStatus.StripeUnavailable);var s=await n.data.createRadarSession();if(s.error)return h(t.SignupRadarSessionStatus.RadarSessionError,{stripe_error_type:s.error.type,stripe_error_code:s.error.code});let o=(0,a.parseSchema)(m,s);return(0,i.isErr)(o)?h(t.SignupRadarSessionStatus.RadarSessionParseFailed,{error_message:o.error.message}):(0,i.ok)(o.data.radarSession.id)}let p=function(e,a={}){let s,o,{sessionMaxAgeMs:m=12e4,now:h=Date.now}=a,f=c,g=0,p=new Set;function v(e){for(let t of(f=e,p))t()}function b(e,t){(0,n.wLog)("signup-radar-session-mint-failed",{reason:e,...void 0===t?{}:(0,r.errorToLogFields)(t)})}async function y(r){let n=await (0,i.wrap)(e);if(r===g){if(o=h(),(0,i.isErr)(n)){b("unexpected_error",n.error),v((0,i.err)(t.SignupRadarSessionStatus.UnexpectedError));return}v(n.data)}}let x=e=>(p.add(e),()=>{p.delete(e)}),S=async e=>{if(!d(f))return f;let t=(0,l.promiseWithResolvers)(),r=x(()=>{d(f)||t.resolve(f)}),n=setTimeout(()=>t.resolve(f),e);try{return await t.promise}finally{r(),clearTimeout(n)}};return{startRadarSessionMint:()=>{let e;if(void 0!==s&&!(void 0!==(e=o??s)&&h()-e>=m))return;let t=void 0!==s&&void 0===o;t&&b("timed_out"),(t||(0,i.isErr)(f))&&v(u),s=h(),o=void 0,y(g+=1)},readRadarSessionRelay:()=>f,subscribeRadarSessionRelay:x,awaitRadarSessionRelay:S}}(()=>g()),v=()=>p.readRadarSessionRelay(),b=e=>p.subscribeRadarSessionRelay(e);e.s(["awaitSignupRadarSessionRelay",0,e=>p.awaitRadarSessionRelay(e),"readSignupRadarSessionRelay",0,v,"startSignupRadarSessionMint",0,()=>p.startRadarSessionMint(),"useSignupRadarSessionRelay",0,function(){return(0,o.useSyncExternalStore)(b,v,v)}],564618)},323866,e=>{"use strict";e.s(["MAINTENANCE_BANNER_PORTAL_ID",0,"maintenance-portal","NAVBAR_TOP_CSS_VARIABLE",0,"--navbar-top"])},278509,295484,e=>{"use strict";var t=e.i(693697),r=e.i(204067),n=e.i(796805);let i="openrouter-nav-identity",a=["standard","business","pro","enterprise"];e.s(["NAV_IDENTITY_SNAPSHOT_KEY",0,i,"NAV_SUBSCRIPTION_PLANS",0,a],295484);let s=n.z.object({imageUrl:n.z.string().refine(function(e){try{let{protocol:t}=new URL(e);return"http:"===t||"https:"===t}catch{return!1}}).nullable(),label:n.z.string().min(1),subscriptionPlan:n.z.enum(a).nullable(),isOrg:n.z.boolean()});e.s(["clearNavIdentitySnapshot",0,function(e){try{e?.removeItem(i)}catch{}},"getNavIdentityStorage",0,function(){try{return window.localStorage}catch{return}},"readNavIdentitySnapshot",0,function(e){if(!e)return null;try{var n;let a,o=e.getItem(i);if(!o)return null;return n=JSON.parse(o),a=(0,r.parseSchema)(s,n),(0,t.isOk)(a)?a.data:null}catch{return null}},"writeNavIdentitySnapshot",0,function(e,t){if(e)try{e.setItem(i,JSON.stringify(t))}catch{}}],278509)},107770,e=>{"use strict";var t=e.i(213648),r=e.i(987511),n=e.i(299701);let i={Landing:"landing",Overview:"overview"},a={live:null,waitlist:"Waitlist"};e.s(["OriNavDestination",0,i,"oriNavItems",0,function({canOpenProductPages:e}){return[{id:"overview",label:"Ori",href:"/ori",icon:t.Globe,tag:null,destination:i.Overview},...r.PRODUCTS.map(r=>{let s=r.cta.href,o=void 0!==s&&(!r.cta.isLandingGated||e);return{id:r.id,label:r.name,href:o?s:`/ori#${r.id}`,icon:n.PRODUCT_ICONS[r.id]??t.Globe,tag:a[r.status],destination:o?i.Landing:i.Overview}})]}])},561584,e=>{"use strict";e.s(["isSearchShortcut",0,(e,t=!0)=>{let r=e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement;return((e,t,r=!0)=>!!e.key&&("/"===e.key?!t&&!e.metaKey&&!e.ctrlKey:r&&"k"===e.key.toLowerCase()&&(e.metaKey||e.ctrlKey)))(e,r,t)}])},148333,e=>{"use strict";var t=e.i(553215);function r(){let e=new URLSearchParams(window.location.search).get("ref")||void 0;return e?{[t.PostHogMetaDataKey.SignupRef]:e}:{}}e.i(270401),e.s(["useSignupCtaAttribution",0,function(){return r}])},979749,e=>{"use strict";var t=e.i(505962);e.i(270401);var r=e.i(954947),n=e.i(564618);e.s(["useSignupIntentPrefetch",0,function(e,i){let a,s=(0,t.c)(3),o=void 0===i||i;return s[0]!==e||s[1]!==o?(a=()=>{!0!==e&&((0,n.startSignupRadarSessionMint)(),o&&(0,r.prefetchSealedSignupCfMetadata)())},s[0]=e,s[1]=o,s[2]=a):a=s[2],a}])},462517,e=>{"use strict";var t=e.i(704355),r=e.i(575404);let n=["/api","/_next","/docs","/blog","/.well-known","/cron","/dynamic-og","/ingest","/model-assets-dev","/skills","/spawn/og"],i=/\.(?:avif|css|gif|ico|jpe?g|js|json|map|md|mp4|pdf|png|svg|ttf|txt|wasm|webm|webmanifest|webp|woff2?|xml|zip)$/u,a=[/^\/ori\/eval\.md$/u,/^\/[^/]+\/[^/]+\/llms\.txt$/u],s=new Set(["openrouter.ai","www.openrouter.ai"]),o=/^https?:\/\//u;function l(e,s){if(!e.startsWith("/")||e.startsWith("//"))return e;let o=(0,r.removeLocaleFromPathname)(e,[t.DEFAULT_LOCALE]);return o||((0,r.removeLocaleFromPathname)(e,t.SUPPORTED_LOCALES)||s===t.DEFAULT_LOCALE||n.some(t=>(0,r.isPathWithin)(e,t))||i.test(e)&&!a.some(t=>t.test(e))?e:(0,r.addLocaleToPathname)(e,s))}e.s(["localizeHref",0,function(e,t){if("string"!=typeof e){if(e.host||e.hostname||e.protocol||!e.pathname)return e;let r=l(e.pathname,t);return r===e.pathname?e:{...e,pathname:r}}if(o.test(e)){var r=e,n=t;if(!URL.canParse(r))return r;let i=new URL(r);if(!s.has(i.host)||i.username||i.password)return r;let a=l(i.pathname,n);return a===i.pathname?r:`${i.origin}${a}${i.search}${i.hash}`}if(!e.startsWith("/")||e.startsWith("//"))return e;let i=e.search(/[?#]/u),a=i<0?e:e.slice(0,i),c=i<0?"":e.slice(i);return l(a,t)+c}])},612960,e=>{"use strict";var t=e.i(505962),r=e.i(779100),n=e.i(749509);e.i(270401);var i=e.i(462517);e.s(["useLocalizedRouter",0,function(){let e,a,s,o,l=(0,t.c)(10),c=(0,n.useRouter)(),u=(0,r.useLocale)();return l[0]!==u||l[1]!==c?(e=(e,t)=>void 0===t?c.push((0,i.localizeHref)(e,u)):c.push((0,i.localizeHref)(e,u),t),a=(e,t)=>void 0===t?c.replace((0,i.localizeHref)(e,u)):c.replace((0,i.localizeHref)(e,u),t),s=(e,t)=>void 0===t?c.prefetch((0,i.localizeHref)(e,u)):c.prefetch((0,i.localizeHref)(e,u),t),l[0]=u,l[1]=c,l[2]=e,l[3]=a,l[4]=s):(e=l[2],a=l[3],s=l[4]),l[5]!==c||l[6]!==e||l[7]!==a||l[8]!==s?(o={...c,push:e,replace:a,prefetch:s},l[5]=c,l[6]=e,l[7]=a,l[8]=s,l[9]=o):o=l[9],o}])},998237,e=>{"use strict";var t=e.i(505962),r=e.i(693697),n=e.i(270401);let i="or-local-storage";function a(){}let s=(e,{defaultValue:t=a(),serialize:s=e=>JSON.stringify(e),deserialize:o=e=>JSON.parse(e),namespace:l="openrouter"}={})=>{let[c,u]=(0,n.useState)(t),d=(0,n.useMemo)(()=>`${l}:${e}`,[l,e]),m=(0,n.useCallback)(t=>{let n=s(t);(0,r.wrap)(()=>globalThis.localStorage?.setItem(d,n)),u(()=>t),void 0!==globalThis.window&&globalThis.window.dispatchEvent(new CustomEvent(i,{detail:{key:e,namespace:l,serializedValue:n}}))},[d,e,l]),h=(0,n.useCallback)(()=>{let e=(0,r.wrap)(()=>{let e=globalThis.localStorage?.getItem(d);return e?o(e):t});return(0,r.isOk)(e)?e.data:t},[d]);(0,n.useEffect)(()=>{u(h())},[d]);let f=(0,n.useCallback)(n=>{if(!function(e){if(e.type!==i||!(e instanceof CustomEvent))return!1;let t=e.detail;return"object"==typeof t&&null!==t&&"key"in t&&"string"==typeof t.key&&"namespace"in t&&"string"==typeof t.namespace&&"serializedValue"in t&&"string"==typeof t.serializedValue}(n)||n.detail.key&&n.detail.key!==e)return;let{serializedValue:a}=n.detail;if(n.detail.namespace===l){let e=(0,r.wrap)(()=>o(a));u(()=>(0,r.isOk)(e)?e.data:t);return}u(h())},[e,l,h]);return(0,n.useEffect)(()=>(globalThis.window.addEventListener(i,f),()=>{globalThis.window.removeEventListener(i,f)}),[f]),[c,m]};function o(e){return String(e)}function l(e){return"true"===e}e.s(["useBooleanLocalStorage",0,(e,r)=>{let n,i=(0,t.c)(3),a=r?.defaultValue,c=r?.namespace;return i[0]!==a||i[1]!==c?(n={defaultValue:a,serialize:o,deserialize:l,namespace:c},i[0]=a,i[1]=c,i[2]=n):n=i[2],s(e,n)},"useLocalStorage",0,s])}]); //# sourceMappingURL=2-gbrik49ujnh.js.map //# chunkId=01a0a063-3779-7e32-bff5-c10513c29f3b