;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="6dd30e2b-391b-0bc4-4b8f-1175e76804cf")}catch(e){}}(); (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,901891,e=>{"use strict";var t=e.i(271645);e.s(["LegacyCheckoutRedirect",0,function(){return(0,t.useEffect)(()=>{let e=new URLSearchParams(window.location.search);if("true"!==e.get("success")||!e.get("session_id"))return;e.delete("success");let t=window.location.pathname.replace(/\/pricing\/?$/,"/checkout/success");window.location.replace(`${t}?${e.toString()}`)},[]),null}])},452071,e=>{"use strict";var t=e.i(843476),r=e.i(948148),n=e.i(271645),l=Object.defineProperty,o=(e,t)=>l(e,"name",{value:t,configurable:!0});function i(e,r=[]){let l=[];function a(r,i){let s=n.createContext(i);s.displayName=r+"Context";let a=l.length;l=[...l,i];let c=o(r=>{let{scope:l,children:o,...i}=r,c=l?.[e]?.[a]||s,d=n.useMemo(()=>i,Object.values(i));return(0,t.jsx)(c.Provider,{value:d,children:o})},"Provider");function d(t,l,o={}){let{optional:c=!1}=o,u=l?.[e]?.[a]||s,m=n.useContext(u);if(m)return m;if(void 0!==i)return i;if(!c)throw Error(`\`${t}\` must be used within \`${r}\``)}return c.displayName=r+"Provider",o(d,"useContext"),[c,d]}o(a,"createContext");let c=o(()=>{let t=l.map(e=>n.createContext(e));return o(function(r){let l=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:l}}),[r,l])},"useScope")},"createScope");return c.scopeName=e,[a,s(c,...r)]}function s(...e){let t=e[0];if(1===e.length)return t;let r=o(()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return o(function(e){let l=r.reduce((t,{useScope:r,scopeName:n})=>{let l=r(e)[`__scope${n}`];return{...t,...l}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}o(function(e,r){let l=n.createContext(r);l.displayName=e+"Context";let i=o(e=>{let{children:r,...o}=e,i=n.useMemo(()=>o,Object.values(o));return(0,t.jsx)(l.Provider,{value:i,children:r})},"Provider");function s(t,o={}){let{optional:i=!1}=o,a=n.useContext(l);if(a)return a;if(void 0!==r)return r;if(!i)throw Error(`\`${t}\` must be used within \`${e}\``)}return i.displayName=e+"Provider",o(s,"useContext"),[i,s]},"createContext"),o(i,"createContextScope"),o(s,"composeContextScopes");var a=e.i(820783),c=e.i(991918),d=Object.defineProperty,u=(e,t)=>d(e,"name",{value:t,configurable:!0});function m(e){let r=e+"CollectionProvider",[l,o]=i(r),[s,d]=l(r,{collectionRef:{current:null},itemMap:new Map}),m=u(e=>{let{scope:r,children:l}=e,o=n.useRef(null),i=n.useRef(new Map).current;return(0,t.jsx)(s,{scope:r,itemMap:i,collectionRef:o,children:l})},"CollectionProvider");m.displayName=r;let f=e+"CollectionSlot",p=(0,c.createSlot)(f),h=n.forwardRef((e,r)=>{let{scope:n,children:l}=e,o=d(f,n),i=(0,a.useComposedRefs)(r,o.collectionRef);return(0,t.jsx)(p,{ref:i,children:l})});h.displayName=f;let x=e+"CollectionItemSlot",g="data-radix-collection-item",b=(0,c.createSlot)(x),y=n.forwardRef((e,r)=>{let{scope:l,children:o,...i}=e,s=n.useRef(null),c=(0,a.useComposedRefs)(r,s),u=d(x,l);return n.useEffect(()=>(u.itemMap.set(s,{ref:s,...i}),()=>void u.itemMap.delete(s))),(0,t.jsx)(b,{...{[g]:""},ref:c,children:o})});function j(t){let r=d(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])}return y.displayName=x,u(j,"useCollection"),[{Provider:m,Slot:h,ItemSlot:y},j,o]}u(m,"createCollection");var f=new WeakMap,p=class e extends Map{static{u(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],f.set(this,!0)}set(e,t){return f.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,l=this.has(t),o=this.#e.length,i=g(e),s=i>=0?i:o+i,a=s<0||s>=o?-1:s;if(a===this.size||l&&a===this.size-1||-1===a)return this.set(t,r),this;let c=this.size+ +!l;i<0&&s++;let d=[...this.#e],u=!1;for(let e=s;e=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],l=0;for(let e of this)Reflect.apply(t,r,[e,l,this])&&n.push(e),l++;return new e(n)}map(t,r){let n=[],l=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,l,this])]),l++;return new e(n)}reduce(...e){let[t,r]=e,n=0,l=r??this.at(0);for(let r of this)l=0===n&&1===e.length?r:Reflect.apply(t,this,[l,r,n,this]),n++;return l}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let l=this.at(r);n=r===this.size-1&&1===e.length?l:Reflect.apply(t,this,[n,l,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,l=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(l=r-1);for(let e=t;e<=l;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}};function h(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=x(e,t);return -1===r?void 0:e[r]}function x(e,t){let r=e.length,n=g(t),l=n>=0?n:r+n;return l<0||l>=r?-1:l}function g(e){return e!=e||0===e?0:Math.trunc(e)}function b(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(!Object.prototype.hasOwnProperty.call(t,n)||e[n]!==t[n])return!1;return!0}function y(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function j(e,t){return e[1].element&&t[1].element?y(e[1].element,t[1].element)?-1:1:0}function v(e){return new MutationObserver(t=>{for(let r of t)if("childList"===r.type)return void e()})}u(h,"at"),u(x,"toSafeIndex"),u(g,"toSafeInteger"),u(function(e){let r=e+"CollectionProvider",[l,o]=i(r),[s,d]=l(r,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new p,setItemMap:u(()=>void 0,"setItemMap")}),m=u(({state:e,...r})=>e?(0,t.jsx)(h,{...r,state:e}):(0,t.jsx)(f,{...r}),"CollectionProvider");m.displayName=r;let f=u(e=>{let r=C();return(0,t.jsx)(h,{...e,state:r})},"CollectionInit");f.displayName=r+"Init";let h=u(e=>{let{scope:r,children:l,state:o}=e,i=n.useRef(null),[c,d]=n.useState(null),u=(0,a.useComposedRefs)(i,d),[m,f]=o;return n.useEffect(()=>{if(!c)return;let e=v(()=>{});return e.observe(c,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[c]),(0,t.jsx)(s,{scope:r,itemMap:m,setItemMap:f,collectionRef:u,collectionRefObject:i,collectionElement:c,children:l})},"CollectionProviderImpl");h.displayName=r+"Impl";let x=e+"CollectionSlot",g=(0,c.createSlot)(x),y=n.forwardRef((e,r)=>{let{scope:n,children:l}=e,o=d(x,n),i=(0,a.useComposedRefs)(r,o.collectionRef);return(0,t.jsx)(g,{ref:i,children:l})});y.displayName=x;let w=e+"CollectionItemSlot",N=(0,c.createSlot)(w),_=n.forwardRef((e,r)=>{let{scope:l,children:o,...i}=e,s=n.useRef(null),[c,u]=n.useState(null),m=(0,a.useComposedRefs)(r,s,u),{setItemMap:f}=d(w,l),h=n.useRef(i);b(h.current,i)||(h.current=i);let x=h.current;return n.useEffect(()=>(f(e=>c?e.has(c)?e.set(c,{...x,element:c}).toSorted(j):(e.set(c,{...x,element:c}),e.toSorted(j)):e),()=>{f(e=>c&&e.has(c)?(e.delete(c),new p(e)):e)}),[c,x,f]),(0,t.jsx)(N,{"data-radix-collection-item":"",ref:m,children:o})});function C(){return n.useState(new p)}function k(t){let{itemMap:r}=d(e+"CollectionConsumer",t);return r}return _.displayName=w,u(C,"useInitCollection"),u(k,"useCollection"),[{Provider:m,Slot:y,ItemSlot:_},{createCollectionScope:o,useCollection:k,useInitCollection:C}]},"createCollection"),u(b,"shallowEqual"),u(y,"isElementPreceding"),u(j,"sortByDocumentPosition"),u(v,"getChildListObserver");var w=Object.defineProperty,N=(e,t)=>w(e,"name",{value:t,configurable:!0}),_=!!("u">typeof window&&window.document&&window.document.createElement);function C(e,t,{checkForDefaultPrevented:r=!0}={}){return N(function(n){if(e?.(n),!1===r||!n||!n.defaultPrevented)return t?.(n)},"handleEvent")}function k(e){if(!_)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function S(e){return"IFRAME"===e.tagName}N(C,"composeEventHandlers"),N(function(e){if(!_)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),N(k,"getOwnerDocument"),N(function e(t,r=!1){let{activeElement:n}=k(t);if(!n?.nodeName)return null;if(S(n)&&n.contentDocument)return e(n.contentDocument.body,r);if(r){let e=n.getAttribute("aria-activedescendant");if(e){let t=k(n).getElementById(e);if(t)return t}}return n},"getActiveElement"),N(S,"isFrame");var R=globalThis?.document?n.useLayoutEffect:()=>{},P=Object.defineProperty,A=n[" useEffectEvent ".trim().toString()],O=n[" useInsertionEffect ".trim().toString()];function $(e){if("function"==typeof A)return A(e);let t=n.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof O?O(()=>{t.current=e}):R(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}P($,"name",{value:"useEffectEvent",configurable:!0});var M=Object.defineProperty,E=(e,t)=>M(e,"name",{value:t,configurable:!0}),I=n[" useInsertionEffect ".trim().toString()]||R;function U({prop:e,defaultProp:t,onChange:r=E(()=>{},"onChange"),caller:l}){let[o,i,s]=D({defaultProp:t,onChange:r}),a=void 0!==e,c=a?e:o;return[c,n.useCallback(t=>{if(a){let r=F(t)?t(e):t;r!==e&&s.current?.(r)}else i(t)},[a,e,i,s])]}function D({defaultProp:e,onChange:t}){let[r,l]=n.useState(e),o=n.useRef(r),i=n.useRef(t);return I(()=>{i.current=t},[t]),n.useEffect(()=>{o.current!==r&&(i.current?.(r),o.current=r)},[r,o]),[r,l,i]}function F(e){return"function"==typeof e}E(U,"useControllableState"),E(D,"useUncontrolledState"),E(F,"isFunction");var T=Symbol("RADIX:SYNC_STATE");E(function(e,t,r,l){let{prop:o,defaultProp:i,onChange:s,caller:a}=t,c=void 0!==o,d=$(s),u=[{...r,state:i}];l&&u.push(l);let[m,f]=n.useReducer((t,r)=>{if(r.type===T)return{...t,state:r.state};let n=e(t,r);return c&&!Object.is(n.state,t.state)&&d(n.state),n},...u),p=m.state,h=n.useRef(p);n.useEffect(()=>{h.current!==p&&(h.current=p,c||d(p))},[p,h,c]);let x=n.useMemo(()=>void 0!==o?{...m,state:o}:m,[m,o]);return n.useEffect(()=>{c&&!Object.is(o,m.state)&&f({type:T,state:o})},[o,m.state,c]),[x,f]},"useControllableStateReducer");var L=e.i(174080),z=Object.defineProperty,Y=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let l=(0,c.createSlot)(`Primitive.${r}`),o=n.forwardRef((e,n)=>{let{asChild:o,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(o?l:r,{...i,ref:n})});return o.displayName=`Primitive.${r}`,{...e,[r]:o}},{});z(function(e,t){e&&L.flushSync(()=>e.dispatchEvent(t))},"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var q=Object.defineProperty,W=(e,t)=>q(e,"name",{value:t,configurable:!0});function H(e,t){return n.useReducer((e,r)=>t[e][r]??e,e)}W(H,"useStateMachine");var B=W(e=>{let{present:t,children:r}=e,l=V(t),o="function"==typeof r?r({present:l.isPresent}):n.Children.only(r),i=G(l.ref,Z(o));return"function"==typeof r||l.isPresent?n.cloneElement(o,{ref:i}):null},"Presence");function V(e){let[t,r]=n.useState(),l=n.useRef(null),o=n.useRef(e),i=n.useRef("none"),s=n.useRef(void 0),[a,c]=H(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return n.useEffect(()=>{"mounted"===a?(i.current=s.current??Q(l.current),s.current=void 0):i.current="none"},[a]),R(()=>{let t=l.current,r=o.current;if(r!==e){let n=i.current,l=Q(t);e?(s.current=l,c("MOUNT")):"none"===l||t?.display==="none"?c("UNMOUNT"):r&&n!==l?c("ANIMATION_OUT"):c("UNMOUNT"),o.current=e}},[e,c]),R(()=>{if(t){let e,r=t.ownerDocument.defaultView??window,n=W(n=>{let i=Q(l.current).includes(CSS.escape(n.animationName));if(n.target===t&&i&&(c("ANIMATION_END"),!o.current)){let n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)})}},"handleAnimationEnd"),s=W(e=>{e.target===t&&(i.current=Q(l.current))},"handleAnimationStart");return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",n),t.addEventListener("animationend",n),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",n),t.removeEventListener("animationend",n)}}c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:n.useCallback(e=>{if(e){let t=getComputedStyle(e);l.current=t,s.current=Q(t)}else l.current=null;r(e)},[])}}function K(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function G(...e){let t=n.useRef(e);return t.current=e,n.useCallback(e=>{let r=t.current,n=!1,l=r.map(t=>{let r=K(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;evoid 0),ee=0;function et(e){let[t,r]=n.useState(X());return R(()=>{e||r(e=>e??String(ee++))},[e]),e||(t?`radix-${t}`:"")}J(et,"name",{value:"useId",configurable:!0});var er=Object.defineProperty,en=(e,t)=>er(e,"name",{value:t,configurable:!0}),el="Collapsible",[eo,ei]=i(el),[es,ea]=eo(el),ec=n.forwardRef(en(function(e,r){let{__scopeCollapsible:l,open:o,defaultOpen:i,disabled:s,onOpenChange:a,...c}=e,[d,u]=U({prop:o,defaultProp:i??!1,onChange:a,caller:el});return(0,t.jsx)(es,{scope:l,disabled:s,contentId:et(),open:d,onOpenToggle:n.useCallback(()=>u(e=>!e),[u]),children:(0,t.jsx)(Y.div,{"data-state":ep(d),"data-disabled":s?"":void 0,...c,ref:r})})},"Collapsible")),ed=n.forwardRef(en(function(e,r){let{__scopeCollapsible:n,...l}=e,o=ea("CollapsibleTrigger",n);return(0,t.jsx)(Y.button,{type:"button","aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open||!1,"data-state":ep(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...l,ref:r,onClick:C(e.onClick,o.onOpenToggle)})},"CollapsibleTrigger")),eu="CollapsibleContent",em=n.forwardRef(en(function(e,r){let{forceMount:n,...l}=e,o=ea(eu,e.__scopeCollapsible);return(0,t.jsx)(B,{present:n||o.open,children:({present:e})=>(0,t.jsx)(ef,{...l,ref:r,present:e})})},"CollapsibleContent")),ef=n.forwardRef(en(function(e,r){let{__scopeCollapsible:l,present:o,children:i,...s}=e,c=ea(eu,l),[d,u]=n.useState(o),m=n.useRef(null),f=(0,a.useComposedRefs)(r,m),p=n.useRef(0),h=p.current,x=n.useRef(0),g=x.current,b=c.open||d,y=n.useRef(b),j=n.useRef(void 0);return n.useEffect(()=>{let e=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(e)},[]),R(()=>{let e=m.current;if(e){j.current=j.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();p.current=t.height,x.current=t.width,y.current||(e.style.transitionDuration=j.current.transitionDuration,e.style.animationName=j.current.animationName),u(o)}},[c.open,o]),(0,t.jsx)(Y.div,{"data-state":ep(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!b,...s,ref:f,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:b&&i})},"CollapsibleContentImpl"));function ep(e){return e?"open":"closed"}en(ep,"getState");var eh=Object.defineProperty,ex=n.createContext(void 0);function eg(e){let t=n.useContext(ex);return e||t||"ltr"}eh(eg,"name",{value:"useDirection",configurable:!0});var eb=Object.defineProperty,ey=(e,t)=>eb(e,"name",{value:t,configurable:!0}),ej="Accordion",ev=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[ew,eN,e_]=m(ej),[eC,ek]=i(ej,[e_,ei]),eS=ei(),eR=n.forwardRef(ey(function(e,r){let{type:n,...l}=e;return(0,t.jsx)(ew.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,t.jsx)(eE,{...l,ref:r}):(0,t.jsx)(eM,{...l,ref:r})})},"Accordion")),[eP,eA]=eC(ej),[eO,e$]=eC(ej,{collapsible:!1}),eM=n.forwardRef(ey(function(e,r){let{value:l,defaultValue:o,onValueChange:i=ey(()=>{},"onValueChange"),collapsible:s=!1,...a}=e,[c,d]=U({prop:l,defaultProp:o??"",onChange:i,caller:ej});return(0,t.jsx)(eP,{scope:e.__scopeAccordion,value:n.useMemo(()=>c?[c]:[],[c]),onItemOpen:d,onItemClose:n.useCallback(()=>s&&d(""),[s,d]),children:(0,t.jsx)(eO,{scope:e.__scopeAccordion,collapsible:s,children:(0,t.jsx)(eD,{...a,ref:r})})})},"AccordionImplSingle")),eE=n.forwardRef(ey(function(e,r){let{value:l,defaultValue:o,onValueChange:i=ey(()=>{},"onValueChange"),...s}=e,[a,c]=U({prop:l,defaultProp:o??[],onChange:i,caller:ej}),d=n.useCallback(e=>c((t=[])=>[...t,e]),[c]),u=n.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,t.jsx)(eP,{scope:e.__scopeAccordion,value:a,onItemOpen:d,onItemClose:u,children:(0,t.jsx)(eO,{scope:e.__scopeAccordion,collapsible:!0,children:(0,t.jsx)(eD,{...s,ref:r})})})},"AccordionImplMultiple")),[eI,eU]=eC(ej),eD=n.forwardRef(ey(function(e,r){let{__scopeAccordion:l,disabled:o,dir:i,orientation:s="vertical",...c}=e,d=n.useRef(null),u=(0,a.useComposedRefs)(d,r),m=eN(l),f="ltr"===eg(i),p=C(e.onKeyDown,e=>{if(!ev.includes(e.key))return;let t=e.target,r=m().filter(e=>!e.ref.current?.disabled),n=r.findIndex(e=>e.ref.current===t),l=r.length;if(-1===n)return;e.preventDefault();let o=n,i=l-1,a=ey(()=>{(o=n+1)>i&&(o=0)},"moveNext"),c=ey(()=>{(o=n-1)<0&&(o=i)},"movePrev");switch(e.key){case"Home":o=0;break;case"End":o=i;break;case"ArrowRight":"horizontal"===s&&(f?a():c());break;case"ArrowDown":"vertical"===s&&a();break;case"ArrowLeft":"horizontal"===s&&(f?c():a());break;case"ArrowUp":"vertical"===s&&c()}let d=o%l;r[d].ref.current?.focus()});return(0,t.jsx)(eI,{scope:l,disabled:o,direction:i,orientation:s,children:(0,t.jsx)(ew.Slot,{scope:l,children:(0,t.jsx)(Y.div,{...c,"data-orientation":s,ref:u,onKeyDown:o?void 0:p})})})},"AccordionImpl")),eF="AccordionItem",[eT,eL]=eC(eF),ez=n.forwardRef(ey(function(e,r){let{__scopeAccordion:n,value:l,...o}=e,i=eU(eF,n),s=eA(eF,n),a=eS(n),c=et(),d=l&&s.value.includes(l)||!1,u=i.disabled||e.disabled;return(0,t.jsx)(eT,{scope:n,open:d,disabled:u,triggerId:c,children:(0,t.jsx)(ec,{"data-orientation":i.orientation,"data-state":eB(d),...a,...o,ref:r,disabled:u,open:d,onOpenChange:e=>{e?s.onItemOpen(l):s.onItemClose(l)}})})},"AccordionItem")),eY=n.forwardRef(ey(function(e,r){let{__scopeAccordion:n,...l}=e,o=eU(ej,n),i=eL("AccordionHeader",n);return(0,t.jsx)(Y.h3,{"data-orientation":o.orientation,"data-state":eB(i.open),"data-disabled":i.disabled?"":void 0,...l,ref:r})},"AccordionHeader")),eq="AccordionTrigger",eW=n.forwardRef(ey(function(e,r){let{__scopeAccordion:n,...l}=e,o=eU(ej,n),i=eL(eq,n),s=e$(eq,n),a=eS(n);return(0,t.jsx)(ew.ItemSlot,{scope:n,children:(0,t.jsx)(ed,{"aria-disabled":i.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...a,...l,ref:r})})},"AccordionTrigger")),eH=n.forwardRef(ey(function(e,r){let{__scopeAccordion:n,...l}=e,o=eU(ej,n),i=eL("AccordionContent",n),s=eS(n);return(0,t.jsx)(em,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...s,...l,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})},"AccordionContent"));function eB(e){return e?"open":"closed"}ey(eB,"getState");var eV=e.i(664659),eK=e.i(647163);let eG=n.forwardRef(({className:e,...r},n)=>(0,t.jsx)(ez,{ref:n,className:(0,eK.cn)("border-b border-border",e),...r}));eG.displayName="AccordionItem";let eQ=n.forwardRef(({className:e,children:r,...n},l)=>(0,t.jsx)(eY,{className:"flex",children:(0,t.jsxs)(eW,{ref:l,className:(0,eK.cn)("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[r,(0,t.jsx)(eV.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));eQ.displayName=eW.displayName;let eZ=n.forwardRef(({className:e,children:r,...n},l)=>(0,t.jsx)(eH,{ref:l,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:(0,t.jsx)("div",{className:(0,eK.cn)("pb-4 pt-0",e),children:r})}));eZ.displayName=eH.displayName;let eJ=["1","2","3","4","5","6"];e.s(["PricingFaq",0,function(){let e=(0,r.useTranslations)("Pricing.faq");return(0,t.jsx)("section",{className:"py-24",children:(0,t.jsxs)("div",{className:"mx-auto max-w-3xl px-4 sm:px-6 lg:px-8",children:[(0,t.jsx)("h2",{className:"mb-12 text-center text-3xl font-bold tracking-tight",children:e("title")}),(0,t.jsx)(eR,{type:"single",collapsible:!0,className:"w-full",children:eJ.map(r=>(0,t.jsxs)(eG,{value:`faq-${r}`,children:[(0,t.jsx)(eQ,{className:"text-left",children:e(`q${r}`)}),(0,t.jsx)(eZ,{className:"text-muted-foreground",children:e(`a${r}`)})]},r))})]})})}],452071)},919459,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(861745),l=e.i(948148),o=e.i(160889),i=e.i(643531),s=e.i(531278),a=e.i(475254);let c=(0,a.default)("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);var d=e.i(727927),u=e.i(618393),m=e.i(283086);let f=(0,a.default)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);var p=e.i(972520),h=e.i(647163),x=e.i(397935),g=e.i(271433);function b(e){let t=/^(\D*?)(\d+(?:[.,]\d+)?)(\D*)$/.exec(e.trim());return t?{prefix:t[1],amount:parseFloat(t[2].replace(",",".")),suffix:t[3]}:null}function y(e,t="."){let r=Math.round(100*e.amount)/100,n=Number.isInteger(r)?String(r):r.toFixed(2).replace(".",t);return`${e.prefix}${n}${e.suffix}`}function j(e,t,r="."){let n=b(e);return n?(n.amount=n.amount*(1-t/100),y(n,r)):e}function v(e,t,r="."){let n=b(e);return n?(n.amount=Math.max(0,Math.round(100*n.amount-t)/100),y(n,r)):e}let w=/^[A-Za-z0-9_-]{1,64}$/,N=["starter","team","business","enterprise"],_=["starter","team","enterprise"],C=["starter","team","enterprise"],k="starter",S=["starter","team","business"],R={team:"starter",business:"team",enterprise:"team"},P={starter:["community.f1","f2","f3","community.f4","f4","f5"],team:["f2"],business:["f2","f6","f3","f8"],enterprise:["f2","f3","f4","f5","f6","f7","f8"]},A={starter:["cloudF1","cloudF2","cloudF3","cloudF4","cloudF5"],team:["cloudF2","cloudF3","cloudF4","cloudF5"],business:["cloudF2","cloudF3","cloudF4","cloudF5"],enterprise:["f2","f3","f4","cloudF5","f6","f7","f8"]},O={starter:u.Server,team:d.Cloud,business:m.Sparkles,enterprise:f},$=[{label:"Connectors & MCP",rows:[{feat:"Connectors",cloud:["5","15","Unlimited","Unlimited"],self:["Unlimited","Unlimited","Unlimited","Unlimited"]},{feat:"MCP servers",cloud:["3","10","Unlimited","Unlimited"],self:["Unlimited","Unlimited","Unlimited","Unlimited"]},{feat:"REST · SOAP · GraphQL · SQL",cloud:[!0,!0,!0,!0],self:[!0,!0,!0,!0]},{feat:"Marketplace (drop-in adapters)",cloud:[!0,!0,!0,!0],self:[!0,!0,!0,!0]}]},{label:"Team & governance",rows:[{feat:"Users included",cloud:["1","3","10","Unlimited"],self:["1","Up to 3","10","Unlimited"]},{feat:"Custom roles",cloud:[!1,!0,!0,!0],self:[!0,!0,!0,!0]},{feat:"Per-tool permissions",cloud:[!0,!0,!0,!0],self:[!0,!0,!0,!0]},{feat:"SSO / SCIM (self-hosted only)",cloud:[!1,!1,!1,!1],self:[!1,!1,!0,!0]},{feat:"Audit log",cloud:["30 days","60 days","90 days","Unlimited"],self:["Full","Full","Full","Full"]}]},{label:"Hosting & deployment",rows:[{feat:"Self-host (Docker, Helm, Railway, DO)",cloud:[!1,!1,!1,"Dedicated cloud"],self:[!0,!0,!0,!0]},{feat:"Automatic backups",cloud:[!0,!0,!0,!0],self:[!1,!1,!1,"On request"]},{feat:"Managed updates",cloud:[!0,!0,!0,!0],self:["Priority","Priority","Priority","Custom"]},{feat:"Region (EU / DE / US)",cloud:["EU","EU","EU","Choice"],self:["—","—","—","—"]}]},{label:"Support & SLA",rows:[{feat:"Support channel",cloud:["Email","Email","Priority","Dedicated"],self:["Email","Email","Priority","Dedicated"]},{feat:"Contractual SLA",cloud:[!1,!1,!1,"99.9%"],self:[!1,!1,!1,"Custom"]},{feat:"DPA & compliance pack",cloud:[!1,!1,!0,!0],self:[!1,!1,!0,!0]}]}];async function M(e){let t=e.yearly?"yearly":"monthly",r=e.isCloud?"cloud":"self-hosted";try{let n=await fetch("/api/stripe/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({plan:e.plan,billingPeriod:t,deploymentMode:r,...e.promo&&{promo:e.promo},...e.returnUrl&&{returnUrl:e.returnUrl},...e.emailToken&&{emailToken:e.emailToken},...(0,g.getCheckoutAdAttribution)()})}),l=await n.json();if(!l.url)return!1;return window.dataLayer?.push({event:"begin_checkout",plan:e.plan,billing_period:t,deployment_mode:r,...e.promo&&{promo:e.promo}}),window.location.href=l.url,!0}catch{return!1}}function E({active:e,onSelect:r,icon:n,title:l,lines:o}){return(0,t.jsxs)("button",{type:"button",role:"radio","aria-checked":e,onClick:r,className:(0,h.cn)("flex flex-col items-start rounded-2xl border p-5 text-left transition-colors sm:p-6 lg:p-4",e?"border-foreground bg-card shadow-sm":"border-border bg-card/60 hover:border-foreground/30"),children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-2.5",children:[(0,t.jsx)("span",{className:(0,h.cn)("inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-lg",e?"bg-primary/10 text-primary":"bg-muted text-muted-foreground"),children:n}),(0,t.jsx)("span",{className:"text-base font-semibold tracking-tight",children:l}),(0,t.jsx)("span",{"aria-hidden":!0,className:(0,h.cn)("ml-2 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full border",e?"border-foreground":"border-border"),children:e?(0,t.jsx)("span",{className:"h-2 w-2 rounded-full bg-foreground"}):null})]}),(0,t.jsx)("dl",{className:"mt-4 space-y-1.5 lg:hidden",children:o.map(e=>{let[r,...n]=e.split(":");return(0,t.jsxs)("div",{className:"flex gap-2 text-sm leading-relaxed",children:[(0,t.jsx)("dt",{className:"shrink-0 text-muted-foreground",children:r}),(0,t.jsx)("dd",{className:"text-foreground/90",children:n.join(":").trim()})]},e)})}),(0,t.jsx)("p",{className:"mt-2 hidden text-sm leading-snug text-foreground/80 lg:block",children:o.map(e=>e.split(":").slice(1).join(":").trim()).join(" · ")})]})}function I({planKey:e,isCloud:n,yearly:l,loadingPlan:a,onCheckout:c,trialSignup:d,promoMeta:u,decimal:m,tr:f,t:g,tp:b}){var y,w;let N,S,$="enterprise"===e,M=e===k,E=$?null:(y=n?`cloud_${e}`:e,w=l?"yearly":"monthly",u?.valid&&(!u.applies_to||u.applies_to.includes(`${y}:${w}`))?null!=u.percent_off?"percent":null!=u.amount_off&&u.amount_off>0&&u.currency?.toLowerCase()==="eur"?"amount":null:null),U=n?A[e]:P[e],D=R[e],F=g(`${e}.name`),T=(0,r.useMemo)(()=>{if(n&&"enterprise"!==e)try{return g(`${e}.cloudDescription`)}catch{}return g(`${e}.description`)},[n,e,g]),L=(0,r.useMemo)(()=>{if(n&&"enterprise"!==e)try{return g(`${e}.cloudCta`)}catch{}return g(`${e}.cta`)},[n,e,g]),z=null,Y=null,q=null,W=null;if(!$){if(n){if(z=l?g(`${e}.cloudPriceYearlyMonthly`):g(`${e}.cloudPrice`),Y=l?g(`${e}.cloudPrice`):null,l)try{q=g(`${e}.cloudYearlySaving`)}catch{}}else if(z=l?g(`${e}.priceYearlyMonthly`):g(`${e}.price`),Y=l?g(`${e}.price`):null,l)try{q=g(`${e}.yearlySaving`)}catch{}if(z&&"percent"===E&&u?.percent_off!=null){let t=z;if(z=j(t,u.percent_off,m),Y=t,q=null,"repeating"===u.duration)if(l)try{W=b("thenPerYear",{price:g(`${e}.${n?"cloudPriceYearly":"priceYearly"}`)})}catch{}else W=b("thenPerMonth",{price:t})}if(z&&"amount"===E&&u?.amount_off!=null){let t=g(`${e}.${n?"cloudPriceYearly":"priceYearly"}`);if(l)"forever"!==u.duration&&(W=b("thenPerYear",{price:t}));else{let e=z;z=v(e,u.amount_off,m),Y=e,q=null,"forever"!==u.duration&&(W=b("thenPerMonth",{price:e}))}}}let H=O[e];return(0,t.jsxs)("div",{className:(0,h.cn)("relative flex flex-col rounded-2xl border bg-card p-6 transition-colors lg:px-5 lg:py-4",M?"mt-3 border-primary/40 shadow-[0_24px_60px_-24px_rgba(37,99,235,0.35)] sm:mt-0":"border-border hover:border-border/80"),children:[M&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"absolute -top-3 left-1/2 -translate-x-1/2 rounded-full bg-primary px-3 py-1 text-label font-bold uppercase tracking-[0.08em] text-primary-foreground shadow-[0_4px_12px_rgba(37,99,235,0.35)]",children:g("team.popular")}),(0,t.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -z-10 rounded-2xl",style:{background:"radial-gradient(80% 50% at 50% 0%, color-mix(in oklab, var(--primary) 22%, transparent), transparent 70%)"}})]}),(0,t.jsxs)("div",{className:"mb-1 flex items-center justify-between",children:[(0,t.jsx)("span",{className:(0,h.cn)("text-sm font-bold uppercase tracking-[0.08em]",M?"text-primary":"text-muted-foreground"),children:F}),(0,t.jsx)("span",{className:(0,h.cn)("grid h-8 w-8 place-items-center rounded-lg",M?"bg-primary/15 text-primary":"bg-muted text-muted-foreground"),children:(0,t.jsx)(H,{className:"h-4 w-4"})})]}),(0,t.jsx)("p",{className:"text-sm leading-relaxed text-muted-foreground lg:hidden",children:T}),(0,t.jsx)("div",{className:"mt-5 lg:mt-2",children:$?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"font-serif text-3xl font-medium tracking-tight text-foreground",children:f("enterprise_quote_title")}),(0,t.jsx)("div",{className:"mt-1 text-sm text-muted-foreground",children:f("enterprise_quote_sub")})]}):(0,t.jsxs)(t.Fragment,{children:[Y&&(0,t.jsx)("span",{className:"block text-sm text-muted-foreground line-through",children:Y}),(0,t.jsxs)("div",{className:"flex flex-wrap items-baseline gap-x-2 gap-y-0.5",children:[(0,t.jsx)("span",{className:"whitespace-nowrap font-serif text-[2.75rem] font-medium leading-none tracking-tight text-foreground",children:z}),(0,t.jsx)("span",{className:"whitespace-nowrap text-sm text-muted-foreground",children:g("perMonth")})]}),(0,t.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-2 text-sm text-muted-foreground",children:[l?(N=g(`${e}.${n?"cloudPriceYearly":"priceYearly"}`),S="percent"===E&&u?.percent_off!=null?j(N,u.percent_off,m):"amount"===E&&u?.amount_off!=null?v(N,u.amount_off,m):null,(0,t.jsx)("span",{children:S?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"line-through opacity-70",children:N})," ",(0,t.jsx)("span",{className:"font-semibold text-foreground",children:S})," ",f("perYearVat")]}):(0,t.jsxs)(t.Fragment,{children:[N," ",f("perYearVat")]})})):(0,t.jsx)("span",{children:f("vatIncluded")}),q&&(0,t.jsx)("span",{className:"inline-flex items-center rounded-full bg-emerald-500/10 px-2 py-0.5 text-label font-bold text-emerald-700 dark:text-emerald-400",children:q})]}),W&&(0,t.jsx)("div",{className:"mt-1 text-label text-muted-foreground/80",children:W})]})}),(0,t.jsx)("div",{className:"mt-6 flex flex-col gap-2 lg:mt-3 lg:gap-1.5",children:$?(0,t.jsx)(o.Link,{href:"/contact?plan=enterprise",className:"inline-flex h-11 items-center justify-center rounded-lg border border-border bg-background px-4 text-sm font-medium text-foreground hover:bg-accent",children:L}):d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("a",{href:(0,x.cloudRegisterForPlan)(e,l?"yearly":"monthly",u?.valid?u.code:null),onClick:()=>window.dataLayer?.push({event:"trial_cta_click",plan:`cloud_${e}`,billing_period:l?"yearly":"monthly"}),className:(0,h.cn)("inline-flex h-11 items-center justify-center gap-2 rounded-lg px-4 text-sm font-medium transition-colors",M?"bg-primary text-primary-foreground hover:bg-primary/90":"border border-border bg-background text-foreground hover:bg-accent"),children:[f("trial_cta"),M&&(0,t.jsx)(p.ArrowRight,{className:"h-3.5 w-3.5"})]}),(0,t.jsx)("p",{className:"text-center text-label text-muted-foreground",children:f(l?"trial_note_yearly":"trial_note_monthly",{price:g(`${e}.${l?"cloudPriceYearly":"cloudPrice"}`)})})]}):(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("button",{type:"button",disabled:null!==a,onClick:()=>c(n?`cloud_${e}`:e),className:(0,h.cn)("inline-flex h-11 items-center justify-center gap-2 rounded-lg px-4 text-sm font-medium transition-colors",M?"bg-primary text-primary-foreground hover:bg-primary/90":"border border-border bg-background text-foreground hover:bg-accent"),children:a===(n?`cloud_${e}`:e)?(0,t.jsx)(s.Loader2,{className:"h-4 w-4 animate-spin"}):(0,t.jsxs)(t.Fragment,{children:[L,M&&(0,t.jsx)(p.ArrowRight,{className:"h-3.5 w-3.5"})]})})})}),(0,t.jsxs)("ul",{className:(0,h.cn)("mt-6 space-y-2.5 text-sm lg:mt-4 lg:space-y-2","border-t border-dashed border-border/70 pt-5"),children:[D&&U.length>0&&(n?C.includes(D):_.includes(D))&&(0,t.jsxs)("li",{className:"flex items-start gap-2",children:[(0,t.jsx)(i.Check,{className:"mt-0.5 h-4 w-4 shrink-0 text-emerald-500",strokeWidth:2.5}),(0,t.jsxs)("span",{children:[(0,t.jsxs)("strong",{className:"font-semibold",children:[f("all_in")," ",g(`${D}.name`)]}),", ",f("plus"),":"]})]}),U.map(r=>(0,t.jsxs)("li",{className:"flex items-start gap-2",children:[(0,t.jsx)(i.Check,{className:"mt-0.5 h-4 w-4 shrink-0 text-emerald-500",strokeWidth:2.5}),(0,t.jsx)("span",{children:g(r.includes(".")?r:`${e}.${r}`)})]},r))]})]})}function U({tr:e}){let r=[{icon:f,title:e("trust1_title"),sub:e("trust1_sub")},{icon:d.Cloud,title:e("trust2_title"),sub:e("trust2_sub")},{icon:i.Check,title:e("trust3_title"),sub:e("trust3_sub")},{icon:c,title:e("trust4_title"),sub:e("trust4_sub")}];return(0,t.jsx)("div",{className:"mt-16 grid gap-4 rounded-2xl border border-border bg-paper p-6 sm:grid-cols-2 lg:grid-cols-4",children:r.map((e,r)=>{let n=e.icon;return(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("span",{className:"grid h-9 w-9 shrink-0 place-items-center rounded-lg bg-primary/12 text-primary",children:(0,t.jsx)(n,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-foreground",children:e.title}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e.sub})]})]},r)})})}function D({isCloud:e,tr:n,t:l}){let o=e?C.map(e=>({key:e,name:l(`${e}.name`),featured:e===k})):_.map(e=>({key:e,name:l(`${e}.name`),featured:e===k})),s=new Set(o.map(e=>e.key));return(0,t.jsxs)("div",{className:"relative mt-6 overflow-hidden rounded-2xl border border-border bg-card",children:[(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full border-collapse",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"border-b border-border bg-muted/30",children:[(0,t.jsx)("th",{className:"sticky left-0 z-10 w-[180px] bg-muted/40 px-4 py-4 text-left text-sm font-semibold text-foreground sm:w-[280px] sm:bg-muted/30 sm:px-5",children:n("feature_col")}),o.map(e=>(0,t.jsx)("th",{className:(0,h.cn)("min-w-[110px] px-4 py-4 text-center text-sm font-semibold",e.featured&&"bg-primary/5 text-primary"),children:e.name},e.key))]})}),(0,t.jsx)("tbody",{children:$.map(n=>(0,t.jsxs)(r.Fragment,{children:[(0,t.jsx)("tr",{className:"bg-muted/20",children:(0,t.jsx)("th",{colSpan:o.length+1,className:"sticky left-0 z-10 bg-muted/20 px-4 py-2.5 text-left text-label font-bold uppercase tracking-[0.08em] text-muted-foreground sm:px-5",children:n.label})}),n.rows.map((r,l)=>{let a=(e?r.cloud:r.self).filter((e,t)=>s.has(N[t]));return(0,t.jsxs)("tr",{className:"border-t border-border",children:[(0,t.jsx)("th",{className:"sticky left-0 z-10 bg-card px-4 py-3 text-left text-sm font-normal text-foreground sm:px-5",children:r.feat}),a.map((e,r)=>(0,t.jsx)("td",{className:(0,h.cn)("px-4 py-3 text-center",o[r]?.featured&&"bg-primary/5"),children:!0===e?(0,t.jsx)(i.Check,{className:"mx-auto h-4 w-4 text-emerald-500",strokeWidth:2.5}):!1===e?(0,t.jsx)("span",{className:"text-muted-foreground",children:"—"}):(0,t.jsx)("span",{className:"text-sm text-foreground",children:e})},r))]},`${n.label}-${l}`)})]},n.label))})]})}),(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-y-0 right-0 w-10 bg-gradient-to-l from-card to-transparent md:hidden"})]})}function F({t:e,tr:r}){let n=[r("oem1"),r("oem2"),r("oem3"),r("oem4"),r("oem5")];return(0,t.jsxs)("div",{className:"mt-16 grid gap-6 rounded-2xl border border-border bg-card p-8 lg:grid-cols-[1.4fr_1fr] lg:items-center lg:p-10",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("h3",{className:"font-serif text-2xl font-medium tracking-[-0.015em] sm:text-3xl",children:[r("oem_title_a")," ",(0,t.jsx)("em",{className:"italic text-primary",children:r("oem_title_b")}),"?"]}),(0,t.jsx)("p",{className:"mt-3 text-sm leading-relaxed text-muted-foreground",children:e("custom.description")}),(0,t.jsx)("div",{className:"mt-4 flex flex-wrap gap-2",children:n.map(e=>(0,t.jsx)("span",{className:"rounded-full border border-border bg-muted/40 px-3 py-1 text-sm text-foreground",children:e},e))})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 lg:items-end",children:[(0,t.jsxs)(o.Link,{href:"/contact",className:"inline-flex h-11 items-center justify-center gap-2 rounded-lg bg-primary px-5 text-sm font-medium text-primary-foreground hover:bg-primary/90",children:[e("custom.cta"),(0,t.jsx)(p.ArrowRight,{className:"h-3.5 w-3.5"})]}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:r("oem_sla")})]})]})}e.s(["PricingTable",0,function({returnUrl:e,headingLevel:o="h1"}={}){let i=(0,l.useTranslations)("Pricing"),s=(0,l.useTranslations)("PricingRedesign"),a=(0,l.useTranslations)("PromoBanner"),m=(0,n.useLocale)(),f=(0,r.useMemo)(()=>(function(e){try{return new Intl.NumberFormat(e).formatToParts(1.5).find(e=>"decimal"===e.type)?.value??"."}catch{return"."}})(m),[m]),[p,x]=(0,r.useState)(!1),[g,j]=(0,r.useState)(!0),[N,k]=(0,r.useState)(null),[R,P]=(0,r.useState)(null),[A,O]=(0,r.useState)(null),[$,T]=(0,r.useState)(!1),[L,z]=(0,r.useState)(null),[Y,q]=(0,r.useState)(null),W=(0,r.useRef)(e??null),H=(0,r.useRef)(!1),[B,V]=(0,r.useState)(null);function K(){if(!A?.valid)return null;if(null==A.percent_off)return function(e){if(null==e.amount_off||e.amount_off<=0||e.currency?.toLowerCase()!=="eur"||e.applies_to&&0===e.applies_to.length)return null;let t=p?"yearly":"monthly",r=function(e,t,r="."){let n=b(e);return n?y({...n,amount:t/100},r):null}(i("starter.cloudPrice"),e.amount_off,f);if(!r)return null;let n=e.duration_in_months??1,l=function(e,t,r){if(!e.applies_to||0===e.applies_to.length)return null;let n=e.applies_to.map(e=>{let[t,r]=e.split(":");return{plan:t,period:r}}).filter(e=>e.plan&&("monthly"===e.period||"yearly"===e.period)),l=e=>e.plan.startsWith("cloud_")===t;return n.find(e=>l(e)&&e.period===r)??n.find(e=>e.period===r)??n.find(l)??n[0]??null}(e,g,t);if(!l)return"forever"===e.duration?a("amountForever",{amount:r}):"repeating"===e.duration?p?a("amountFirstYear",{amount:r}):a("amountMonths",{amount:r,months:n}):a("amountOnce",{amount:r});let o=l.plan.startsWith("cloud_"),c=l.plan.replace(/^cloud_/,""),d="yearly"===l.period,u=o?`${s("seg_cloud_title")} ${i(`${c}.name`)}`:`${i(`${c}.name`)} (${s("seg_self_title")})`;l.period!==t&&(u=a(d?"planYearly":"planMonthly",{plan:u}));let m=i(`${c}.${o?d?"cloudPriceYearly":"cloudPrice":d?"priceYearly":"price"}`),h=v(m,e.amount_off,f);return"forever"===e.duration?a("planOffer",{plan:u,offer:a("amountForever",{amount:r})}):d?a("firstYearPrice",{plan:u,price:h,regular:m}):"repeating"===e.duration&&n>1?a("firstMonthsPrice",{plan:u,price:h,regular:m,months:n}):a("firstMonthPrice",{plan:u,price:h,regular:m})}(A);let e=A.percent_off;return"repeating"===A.duration?p?a("yearlyDiscount",{percent:e}):a("monthsDiscount",{percent:e,months:A.duration_in_months??1}):"once"===A.duration?a("onceDiscount",{percent:e}):"forever"===A.duration?a("foreverDiscount",{percent:e}):null}async function G(t){k(t),await M({plan:t,yearly:p,isCloud:g,promo:R,returnUrl:e??Y,emailToken:L})||k(null)}(0,r.useEffect)(()=>{let e=new URLSearchParams(window.location.search),t=e.get("promo"),r=t&&w.test(t)?t.toUpperCase():null;r&&P(r);let n=e.get("return_url");n&&q(n);let l=e.get("checkout");"expired"===l||"error"===l?V(l):"true"===e.get("canceled")&&V("canceled");let o=e.get("buy"),i=null!==o&&S.includes(o)?o:null,s=e.get("hosting"),a="cloud"===s,c="yearly"===e.get("period");("self-hosted"===s||i&&!a)&&j(!1),i&&c&&x(!0);let d=new URLSearchParams(window.location.hash.slice(1)).get("t"),u=d&&/^[A-Za-z0-9_-]{20,1024}$/.test(d)?d:null;if(u&&z(u),u||e.has("buy")||e.has("period")){let e=new URL(window.location.href);u&&(e.hash=""),e.searchParams.delete("buy"),e.searchParams.delete("period"),window.history.replaceState(window.history.state,"",e.toString())}if(i&&!H.current){H.current=!0;let e=a?`cloud_${i}`:i;k(e),M({plan:e,yearly:c,isCloud:a,promo:r,returnUrl:W.current??n,emailToken:u}).then(e=>{e||k(null)})}},[]),(0,r.useEffect)(()=>{if(!R)return void O(null);let e=!1;return fetch(`/api/stripe/promo/${encodeURIComponent(R)}`).then(e=>e.ok?e.json():null).then(t=>{!e&&t&&t.valid&&O(t)}).catch(()=>{}),()=>{e=!0}},[R]);let Q=g?C:_,Z=g&&!(e??Y)&&!L;return(0,t.jsxs)("section",{className:"relative py-16 sm:py-24 lg:pb-10 lg:pt-5",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 -z-10","aria-hidden":!0,style:{background:"radial-gradient(800px 320px at 50% -40%, color-mix(in oklab, var(--primary) 10%, transparent), transparent 70%)"}}),(0,t.jsxs)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:[(0,t.jsxs)("div",{className:"mx-auto max-w-3xl text-center",children:[(0,t.jsxs)(o,{className:"font-serif text-[clamp(2.2rem,5vw,4rem)] font-medium leading-[1.04] tracking-[-0.025em] lg:text-[2.1rem]",children:[s("h1_a")," ",(0,t.jsx)("em",{className:"italic text-primary",children:s("h1_b")})]}),(0,t.jsx)("p",{className:"mx-auto mt-5 max-w-xl text-lg leading-relaxed text-muted-foreground lg:mt-3 lg:text-sm",children:i("subtitle")})]}),(0,t.jsxs)("div",{role:"radiogroup","aria-label":s("mode_group_label"),className:"mx-auto mt-12 grid max-w-4xl gap-4 sm:grid-cols-2 lg:mt-6",children:[(0,t.jsx)(E,{active:g,onSelect:()=>j(!0),icon:(0,t.jsx)(d.Cloud,{className:"h-[18px] w-[18px]"}),title:s("seg_cloud_title"),lines:[s("mode_cloud_who"),s("mode_cloud_where"),s("mode_cloud_cost")]}),(0,t.jsx)(E,{active:!g,onSelect:()=>j(!1),icon:(0,t.jsx)(u.Server,{className:"h-[18px] w-[18px]"}),title:s("seg_self_title"),lines:[s("mode_self_who"),s("mode_self_where"),s("mode_self_cost")]})]}),(0,t.jsx)("div",{className:"mt-10 flex flex-col items-center gap-4 lg:mt-4 lg:gap-2.5",children:(0,t.jsxs)("div",{className:"inline-flex max-w-full flex-wrap items-center justify-center gap-2.5 rounded-full border border-border bg-background py-1 pl-4 pr-1 text-sm text-muted-foreground",children:[(0,t.jsx)("span",{children:s("billing_label")}),(0,t.jsxs)("div",{className:"inline-flex rounded-full bg-muted p-0.5",children:[(0,t.jsx)("button",{onClick:()=>x(!1),className:(0,h.cn)("rounded-full px-3.5 py-1.5 text-sm font-semibold transition-colors",p?"text-muted-foreground":"bg-background text-foreground shadow-sm"),children:i("monthly")}),(0,t.jsx)("button",{onClick:()=>x(!0),className:(0,h.cn)("rounded-full px-3.5 py-1.5 text-sm font-semibold transition-colors",p?"bg-background text-foreground shadow-sm":"text-muted-foreground"),children:i("yearly")})]}),(0,t.jsx)("span",{className:"ml-1 inline-flex items-center rounded-full border border-emerald-500/30 bg-emerald-500/10 px-2 py-0.5 text-label font-bold text-emerald-700 dark:text-emerald-400",children:s("yearly_save_badge")})]})}),A?.valid&&A.code&&(0,t.jsxs)("div",{className:"mx-auto mt-10 flex max-w-2xl flex-wrap items-center justify-center gap-3 rounded-2xl border border-primary/30 bg-primary/5 px-4 py-3 text-sm lg:mt-4 lg:py-2",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-2 font-semibold text-primary",children:[(0,t.jsx)(c,{className:"h-4 w-4"}),a("applied",{code:A.code})]}),K()&&(0,t.jsxs)("span",{className:"text-foreground/80",children:["— ",K()]}),(0,t.jsx)("button",{type:"button",onClick:function(){P(null),O(null);{let e=new URL(window.location.href);e.searchParams.delete("promo"),window.history.replaceState({},"",e.toString())}},className:"ml-auto text-sm text-muted-foreground underline-offset-2 hover:text-foreground hover:underline",children:a("remove")})]}),B&&(0,t.jsx)("p",{role:"status",className:"mx-auto mt-10 max-w-2xl rounded-2xl border border-amber-500/30 bg-amber-500/10 px-4 py-3 text-center text-sm text-foreground lg:mt-4 lg:py-2",children:"expired"===B?s("checkout_expired"):"canceled"===B?s("checkout_canceled"):s("checkout_error")}),(0,t.jsx)("div",{className:(0,h.cn)("mt-10 grid gap-5 sm:grid-cols-2 lg:mt-5","md:grid-cols-3"),children:Q.map(e=>(0,t.jsx)(I,{planKey:e,isCloud:g,yearly:p,loadingPlan:N,onCheckout:G,trialSignup:Z,promoMeta:A,decimal:f,tr:s,t:i,tp:a},`${g?"cloud":"self"}-${e}`))}),!g&&(0,t.jsxs)("p",{className:"mt-6 text-center text-sm text-muted-foreground",children:[s("oss_note")," ",(0,t.jsx)("a",{href:"https://github.com/HelpCode-ai/AnythingMCP",className:"font-medium text-foreground underline underline-offset-2 hover:text-primary",children:s("oss_note_link")})]}),(0,t.jsx)("p",{className:(0,h.cn)("text-center text-sm text-muted-foreground",g?"mt-7":"mt-2"),children:s("fine_print")}),(0,t.jsx)(U,{tr:s}),(0,t.jsxs)("div",{className:"mt-16",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-end justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("h2",{className:"font-serif text-3xl font-medium tracking-[-0.02em] sm:text-4xl",children:[s("compare_title_a")," ",(0,t.jsx)("em",{className:"italic text-primary",children:g?s("seg_cloud_title"):s("seg_self_title")})]}),(0,t.jsx)("p",{className:"mt-2 max-w-xl text-sm text-muted-foreground",children:s("compare_subtitle")})]}),(0,t.jsx)("button",{type:"button",onClick:()=>T(e=>!e),className:"inline-flex h-9 items-center gap-1 rounded-lg border border-border bg-background px-3 text-sm font-medium text-foreground hover:bg-accent",children:$?s("compare_hide"):s("compare_show")})]}),$&&(0,t.jsx)(D,{isCloud:g,tr:s,t:i})]}),(0,t.jsx)(F,{t:i,tr:s})]})]})}],919459)}]); //# debugId=6dd30e2b-391b-0bc4-4b8f-1175e76804cf