PageSourceSearch

https://www.mux.com/_next/static/immutable/chunks/1x-fva3hymt2t.js

js mux.com collected 2026-09-24 08:00:33 UTC 50,225 bytes, 4 lines download raw bytes

1;!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]="08ff82ba-4bc7-a7ba-7aed-3280cab6a02c")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,86588,e=>{"use strict";var t=e.i(843476),a=e.i(271645),l=e.i(102305),s=e.i(702791),r=e.i(904947);e.s(["default",0,function({bulletPoints:e}){let n=(0,a.useRef)(null),i=(0,s.default)(n,{rootMargin:"0px",threshold:.5});return(0,t.jsx)("ul",{ref:n,className:"-space-y-px text-pretty",children:e.map((e,a)=>(0,t.jsx)(r.CheckmarkListItem,{className:(0,l.default)("duration-medium ease-out-energetic transform-gpu transition",i?"translate-y-0 opacity-100":"translate-y-0 opacity-100 lg:-translate-y-0.25 lg:opacity-0"),markerClassName:"stroke-green",style:{transitionDelay:`${.2*a}s`},children:e},e))})}])},117154,e=>{"use strict";var t=e.i(843476),a=e.i(767660),l=e.i(102305);e.i(185981);var s=e.i(468509),r=e.i(84341);e.s(["default",0,function({creditExamples:e}){return(0,t.jsx)(a.Root,{type:"single",collapsible:!0,defaultValue:e[0]._key,className:"pb-2 lg:hidden",children:e.map(e=>(0,t.jsxs)(a.Item,{value:e._key,className:"mx-auto w-full max-w-21",children:[(0,t.jsx)(a.Header,{className:"group px-1 sm:px-2",children:(0,t.jsxs)(a.Trigger,{className:"border-gray flex min-h-2 w-full items-center justify-between border-t py-0.5 text-left",children:[(0,t.jsx)(s.default,{scale:"mono-14",linkStyle:"anti-underline",children:e.title}),(0,t.jsx)(r.default,{className:"rotate-0 fill-transparent group-data-state-open:-rotate-180 group-data-state-open:fill-current"})]})}),(0,t.jsx)(a.Content,{className:(0,l.default)("overflow-hidden","data-state-open:animate-radix-accordion-content-down","data-state-closed:animate-radix-accordion-content-up"),children:(0,t.jsxs)("div",{className:"pb-1",children:[(0,t.jsx)(s.default,{scale:"p2",bold:!0,className:"my-0.5 px-1 sm:px-2",children:"With $100, you could..."}),e.content]})})]},e._key))})}])},995474,e=>{e.v({clipReveal:"MathCollapsible-module__3l-jFW__clipReveal",fadeIn:"MathCollapsible-module__3l-jFW__fadeIn",slideIn:"MathCollapsible-module__3l-jFW__slideIn",tooltipContent:"MathCollapsible-module__3l-jFW__tooltipContent"})},776019,e=>{"use strict";var t=e.i(843476),a=e.i(271645),l=e.i(687607),s=e.i(186336),r=e.i(102305);e.i(185981);var n=e.i(468509),i=e.i(200556);function o(e){return(0,t.jsxs)(i.default,{label:"Calculator",width:"29",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsx)("path",{className:"stroke-current",vectorEffect:"non-scaling-stroke",d:"M3.5.5h21v27h-21zM6.5 16.5h15m-15 4h10m-5 4v-12m5 12v-12"}),(0,t.jsx)("path",{className:"stroke-current",vectorEffect:"non-scaling-stroke",d:"M6.5 3.5h15v5h-15zm0 9h15v12h-15z"})]})}var c=e.i(995474);let d=(0,a.createContext)(!1),u=()=>(0,a.useContext)(d);e.s(["MathCollapsibleRoot",0,function({children:e}){let[s,r]=(0,a.useState)(!1);return(0,t.jsx)(d.Provider,{value:s,children:(0,t.jsx)(l.Root,{open:s,onOpenChange:r,children:e})})},"default",0,function({bulletPoints:e,math:a}){let i=u();return(0,t.jsx)(s.Provider,{delayDuration:0,skipDelayDuration:300,children:(0,t.jsxs)(s.Root,{children:[(0,t.jsxs)("div",{className:"relative px-1 sm:px-2 lg:px-0",children:[e,(0,t.jsx)(s.Trigger,{className:"group right-0 bottom-0 mt-1 flex items-center lg:absolute lg:m-0",asChild:!0,children:(0,t.jsxs)(l.Trigger,{children:[(0,t.jsx)(o,{className:"text-gray-dark h-1 w-1 lg:text-current"}),(0,t.jsx)(n.default,{scale:"mono-14",className:"rounded-1 bg-putty py-0.125 border-ctx ml-0.25 border px-0.5 group-hover:border-current group-focus-visible:border-current lg:hidden",children:i?"Hide the math":"Show the math"})]})})]}),(0,t.jsx)(l.Content,{className:(0,r.default)("overflow-hidden","data-state-open:animate-radix-collapsible-content-down","data-state-closed:animate-radix-collapsible-content-up"),style:{animationDuration:"300ms"},children:a}),(0,t.jsx)(s.Portal,{children:(0,t.jsx)(s.Content,{side:"left",sideOffset:10,hideWhenDetached:!0,className:(0,r.default)("rounded-1 bg-putty py-0.125 hidden min-h-1 px-0.5 lg:block",c.default.tooltipContent),children:(0,t.jsx)(n.default,{scale:"mono-14",className:(0,r.default)(c.default.tooltipContentInner),children:i?"Hide the math":"Show the math"})})})]})})},"useIsCollapsibleOpen",0,u],776019)},38368,e=>{e.v({container:"AnimationColdStorage-module__H36-jW__container",fall:"AnimationColdStorage-module__H36-jW__fall",snowflake:"AnimationColdStorage-module__H36-jW__snowflake",swoop:"AnimationColdStorage-module__H36-jW__swoop"})},977794,e=>{"use strict";var t=e.i(843476),a=e.i(271645),l=e.i(34795),s=e.i(102305),r=e.i(200556);function n(e){return(0,t.jsxs)(r.default,{label:"Servers",xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",fill:"none",viewBox:"0 0 56 56",...e,children:[(0,t.jsx)("rect",{x:"3",y:"4",width:"50",height:"16",rx:"2",className:"fill-current stroke-ctx-putty dark:stroke-ctx-charcoal",vectorEffect:"non-scaling-stroke"}),(0,t.jsx)("path",{className:"fill-current stroke-ctx-putty dark:stroke-ctx-charcoal",vectorEffect:"non-scaling-stroke",d:"M22 9h18v6H22zM40 9h6v6h-6z"}),(0,t.jsx)("rect",{x:"3",y:"20",width:"50",height:"16",rx:"2",className:"fill-current stroke-ctx-putty dark:stroke-ctx-charcoal",vectorEffect:"non-scaling-stroke"}),(0,t.jsx)("path",{className:"fill-current stroke-ctx-putty dark:stroke-ctx-charcoal",vectorEffect:"non-scaling-stroke",d:"M22 25h18v6H22zM40 25h6v6h-6z"}),(0,t.jsx)("rect",{x:"3",y:"36",width:"50",height:"16",rx:"2",className:"fill-current stroke-ctx-putty dark:stroke-ctx-charcoal",vectorEffect:"non-scaling-stroke"}),(0,t.jsx)("path",{className:"fill-current stroke-ctx-putty dark:stroke-ctx-charcoal",vectorEffect:"non-scaling-stroke",d:"M22 41h18v6H22zM40 41h6v6h-6z"})]})}var i=e.i(700261),o=e.i(38368);let c=({children:e,onAnimationEnd:a})=>(0,t.jsx)("div",{className:(0,s.default)("absolute inset-0",o.default.container),onAnimationEnd:a,children:e}),d=[({style:e})=>(0,t.jsx)("svg",{style:e,className:o.default.snowflake,viewBox:"0 0 50 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsxs)("g",{stroke:"#F1F2F2",strokeLinecap:"round",children:[(0,t.jsx)("path",{vectorEffect:"non-scaling-stroke",d:"M13.627 21.098l2.292-8.323 8.539 2.23M36.258 34.902l-2.291 8.323-8.54-2.231M13.147 34.092L6.89 28l6.257-6.092M36.746 21.908L42.994 28l-6.248 6.092M25.428 15.006l8.539-2.231 2.291 8.322M24.458 40.994l-8.54 2.23-2.29-8.322M25.004.683V27.61M25.004 55.317V28.392M.701 14.341L24.654 27.8M49.298 41.659L25.355 28.2M49.298 14.341L25.355 27.8M.701 41.658L24.654 28.2M16.275 27.69l-1.515-5.5 5.649-1.475M33.933 28.31l1.516 5.5-5.659 1.474M20.409 35.285l-5.65-1.476 1.516-5.5M29.79 20.715l5.659 1.476-1.516 5.5M20.956 20.397l4.143-4.025 4.134 4.025M29.239 35.594l-4.134 4.034-4.134-4.034M32.23 5.136L25 12.174l-7.23-7.038M17.77 50.864L25 43.826l7.23 7.038M8.275 10.472l2.646 9.615-9.876 2.577M41.724 45.529l-2.647-9.616 9.877-2.577M48.954 22.664l-9.877-2.577 2.647-9.615M1.045 33.336l9.877 2.577-2.647 9.616"}),(0,t.jsx)("path",{vectorEffect:"non-scaling-stroke",d:"M13.627 21.098l2.292-8.323 8.539 2.23M36.258 34.902l-2.291 8.323-8.54-2.231M13.147 34.092L6.89 28l6.257-6.092M36.746 21.908L42.994 28l-6.248 6.092M25.428 15.006l8.539-2.231 2.291 8.322M24.458 40.994l-8.54 2.23-2.29-8.322M25.004.683V27.61M25.004 55.317V28.392M.701 14.341L24.654 27.8M49.298 41.659L25.355 28.2M49.298 14.341L25.355 27.8M.701 41.658L24.654 28.2M16.275 27.69l-1.515-5.5 5.649-1.475M33.933 28.31l1.516 5.5-5.659 1.474M20.409 35.285l-5.65-1.476 1.516-5.5M29.79 20.715l5.659 1.476-1.516 5.5M20.956 20.397l4.143-4.025 4.134 4.025M29.239 35.594l-4.134 4.034-4.134-4.034M32.23 5.136L25 12.174l-7.23-7.038M17.77 50.864L25 43.826l7.23 7.038M8.275 10.472l2.646 9.615-9.876 2.577M41.724 45.529l-2.647-9.616 9.877-2.577M48.954 22.664l-9.877-2.577 2.647-9.615M1.045 33.336l9.877 2.577-2.647 9.616"})]})}),({style:e})=>(0,t.jsx)("svg",{style:e,className:o.default.snowflake,viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsxs)("g",{stroke:"#F1F2F2",strokeLinecap:"round",children:[(0,t.jsx)("path",{vectorEffect:"non-scaling-stroke",d:"M27.256 1.395l-6.254 5.968-6.26-5.968M14.743 40.144l6.26-5.968 6.253 5.968M6.531 5.917l2.29 8.145-8.549 2.189M35.467 35.622l-2.29-8.151 8.55-2.183M41.727 16.25l-8.55-2.188 2.29-8.146M.272 25.288l8.549 2.183-2.29 8.151"}),(0,t.jsx)("path",{vectorEffect:"non-scaling-stroke",d:"M21.004 12.294l8.886-6.207-1.191 10.443 10.082 4.242L28.7 25.008l1.19 10.443-8.885-6.207-8.892 6.207 1.191-10.443L3.22 20.772l10.083-4.242-1.19-10.443 8.89 6.207zM15.988 23.526l10.023-5.512M15.988 23.526l10.023-5.512M21.001 26.284v-11.03M21.001 26.284v-11.03M15.988 18.014l10.023 5.512M15.988 18.014l10.023 5.512M21.001.26v6.46M21.001 35.285v6.456M2.158 10.63l5.868 3.23M33.972 28.14l5.868 3.23M39.84 10.63l-5.868 3.23M8.026 28.14l-5.868 3.23"})]})}),({style:e})=>(0,t.jsx)("svg",{style:e,className:o.default.snowflake,viewBox:"0 0 48 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsxs)("g",{stroke:"#F1F2F2",strokeLinecap:"round",children:[(0,t.jsx)("path",{vectorEffect:"non-scaling-stroke",d:"M24 .933v26.963M16.79 23.72l1.461-5.51 5.443 1.473M24 55.654v-26.97M31.214 32.867l-1.461 5.51-5.444-1.472M.592 14.615l23.071 13.482M16.482 32.328L12.5 28.29l3.982-4.03M47.407 41.972L24.336 28.491M31.52 24.26l3.981 4.03-3.981 4.038M47.407 14.615L24.336 28.097M24.31 19.683l5.443-1.473 1.461 5.51M.592 41.972l23.071-13.481M23.694 36.905l-5.443 1.472-1.462-5.51M12.993 9.292l5.048 8.842M29.934 38.35l5.04 8.842M2.276 28.4h10.088M35.612 28.083h10.087M34.705 9.126l-5.04 8.842M18.31 38.509l-5.04 8.842M24.002.343l-5.443 5.51 5.443 5.508 5.443-5.509-5.443-5.51zM24.001 44.631l-5.442 5.51 5.444 5.51 5.442-5.511L24 44.63zM7.777 12.156L.342 14.172l1.992 7.526 7.435-2.016-1.992-7.526zM45.672 34.302l-7.435 2.015 1.99 7.527 7.436-2.016-1.99-7.526zM40.229 12.156l-1.992 7.527 7.435 2.016 1.992-7.526-7.435-2.017zM2.328 34.3L.336 41.826l7.435 2.017 1.992-7.526L2.328 34.3zM24 .933v26.963"}),(0,t.jsx)("path",{vectorEffect:"non-scaling-stroke",d:"M16.79 23.72l1.461-5.51 5.443 1.473M24 55.654v-26.97M31.214 32.867l-1.461 5.51-5.444-1.472M.592 14.615l23.071 13.482M16.482 32.328L12.5 28.29l3.982-4.03M47.407 41.972L24.336 28.491M31.52 24.26l3.981 4.03-3.981 4.038M47.407 14.615L24.336 28.097M24.31 19.683l5.443-1.473 1.461 5.51M.592 41.972l23.071-13.481M23.694 36.905l-5.443 1.472-1.462-5.51M12.993 9.292l5.048 8.842M29.934 38.35l5.04 8.842M2.276 28.4h10.088M35.612 28.083h10.087M34.705 9.126l-5.04 8.842M18.31 38.509l-5.04 8.842M24.002.343l-5.443 5.51 5.443 5.508 5.443-5.509-5.443-5.51zM24.001 44.631l-5.442 5.51 5.444 5.51 5.442-5.511L24 44.63zM7.777 12.156L.342 14.172l1.992 7.526 7.435-2.016-1.992-7.526zM45.672 34.302l-7.435 2.015 1.99 7.527 7.436-2.016-1.99-7.526zM40.229 12.156l-1.992 7.527 7.435 2.016 1.992-7.526-7.435-2.017zM2.328 34.3L.336 41.826l7.435 2.017 1.992-7.526L2.328 34.3z"})]})}),({style:e})=>(0,t.jsx)("svg",{style:e,className:o.default.snowflake,viewBox:"0 0 36 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("g",{stroke:"#F1F2F2",strokeLinecap:"round",children:(0,t.jsx)("path",{vectorEffect:"non-scaling-stroke",d:"M18 .512v20.194M23.204 3.852l-5.205 5.28-5.206-5.28h10.411zM18 41.488V2
21.294M12.793 38.148L18 32.862l5.205 5.286-9.98.103M.505 10.756L17.75 20.849M5.963 7.854l1.905 7.211-7.11 1.933 5.205-9.144zM30.038 34.146l-1.906-7.211 7.111-1.933-5.205 9.144zM35.491 10.756L18.245 20.849M35.243 16.998l-7.11-1.933 1.905-7.211 5.205 9.144zM.505 31.244L17.75 21.15M.757 25.002l7.111 1.933-1.905 7.211-5.206-9.144zM35.491 31.244L18.245 21.15M18.308 14.457l6.424-4.773-.862 8.024 7.287 3.258-7.287 3.257.862 8.025-6.424-4.767-6.417 4.767.861-8.025-7.286-3.258 7.286-3.257-.861-8.024 6.417 4.773z"})})})],u=(e,t)=>Math.random()*(t-e)+e;e.s(["default",0,function({className:e}){let[r,o]=(0,a.useState)([]),[m,f]=(0,a.useState)([]),x=(0,i.default)(),p=(0,a.useRef)(null),h=(0,l.useIntersection)(p,{rootMargin:"0px",threshold:.1});return(0,a.useEffect)(()=>{let e;if("hidden"===x||!h?.isIntersecting)return;let a=()=>{let l,s=(l=Math.floor(Math.random()*d.length),d[l]),r={id:Date.now(),Snowflake:(0,t.jsx)(s,{style:{position:"absolute",top:"50%",left:`${u(0,80)}%`,width:`${u(5,15)}%`,"--frequency":`${u(2,4)}s`,"--amplitude":u(.25,.5),"--scale":u(.8,1.3)}})};.5>Math.random()?f(e=>[...e,r]):o(e=>[...e,r]),e=setTimeout(a,u(1500,3e3))};return a(),()=>{clearTimeout(e)}},[x,h]),(0,t.jsxs)("div",{style:{aspectRatio:2},className:(0,s.default)("relative overflow-hidden bg-blue",e),ref:p,children:[r.map(e=>(0,t.jsx)(c,{onAnimationEnd:()=>o(t=>t.filter(t=>t.id!==e.id)),children:e.Snowflake},e.id)),(0,t.jsx)(n,{className:"absolute left-1/2 top-1/2 aspect-square h-3 w-3 -translate-x-1/2 -translate-y-1/2 text-black set-bg-ctx-blue"}),m.map(e=>(0,t.jsx)(c,{onAnimationEnd:()=>f(t=>t.filter(t=>t.id!==e.id)),children:e.Snowflake},e.id))]})}],977794)},924913,e=>{e.v({gear:"AnimationJIT-module__GXZbaa__gear",hour:"AnimationJIT-module__GXZbaa__hour",jit:"AnimationJIT-module__GXZbaa__jit",minute:"AnimationJIT-module__GXZbaa__minute",rotate360:"AnimationJIT-module__GXZbaa__rotate360"})},130619,e=>{"use strict";var t=e.i(843476),a=e.i(271645),l=e.i(102305),s=e.i(200556),r=e.i(702791);e.s(["default",0,function({className:e}){let n=(0,a.useRef)(null),i=(0,r.default)(n,{rootMargin:"0px",threshold:.5});return(0,t.jsx)("div",{style:{aspectRatio:2},className:(0,l.default)("relative bg-green",e),ref:n,children:(0,t.jsxs)(s.default,{label:"Chart showing price going down as number of minutes goes up",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 117",className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 fill-black font-mono",style:{aspectRatio:100/117,height:`${117/168*100}%`},children:[(0,t.jsx)("rect",{x:"16.5",y:"16",width:"20",height:"68"}),(0,t.jsx)("rect",{x:"37.5",y:"16",width:"20",height:"68",className:"origin-bottom transform ease-in-out-energetic",style:{transformBox:"fill-box",transform:i?"scaleY(0.7)":"scaleY(1)",transitionDuration:"0.5s"}}),(0,t.jsx)("rect",{x:"58.5",y:"16",width:"20",height:"68",className:"origin-bottom transform ease-in-out-energetic",style:{transformBox:"fill-box",transform:i?"scaleY(0.5)":"scaleY(1)",transitionDuration:"1s"}}),(0,t.jsx)("rect",{x:"79.5",y:"16",width:"20",height:"68",className:"origin-bottom transform ease-in-out-energetic",style:{transformBox:"fill-box",transform:i?"scaleY(0.3)":"scaleY(1)",transitionDuration:"1.5s"}}),(0,t.jsx)("rect",{x:"36.5",y:"86",width:"1",height:"3"}),(0,t.jsx)("text",{x:"36.5",y:"92",textAnchor:"middle",dominantBaseline:"hanging",fontSize:"8",children:"5"}),(0,t.jsx)("rect",{x:"57.5",y:"86",width:"1",height:"3"}),(0,t.jsx)("text",{x:"57.5",y:"92",textAnchor:"middle",dominantBaseline:"hanging",fontSize:"8",children:"10"}),(0,t.jsx)("rect",{x:"78.5",y:"86",width:"1",height:"3"}),(0,t.jsx)("text",{x:"78.5",y:"92",textAnchor:"middle",dominantBaseline:"hanging",fontSize:"8",children:"15"}),(0,t.jsx)("text",{x:"58",y:"103",textAnchor:"middle",dominantBaseline:"hanging",fontSize:"8",className:"uppercase",fill:"#086428",children:"Minutes (K)"}),(0,t.jsx)("text",{x:"4",y:"55",textAnchor:"middle",dominantBaseline:"hanging",fontSize:"8",className:"uppercase",fill:"#086428",transform:"rotate(-90 4 55)",children:"Price"})]})})}])},659233,e=>{"use strict";var t=e.i(843476),a=e.i(271645),l=e.i(926209),s=e.i(102305),r=e.i(832648),n=e.i(868769);e.i(185981);var i=e.i(468509),o=e.i(977794),c=e.i(200556),d=e.i(924913);function u({className:e}){return(0,t.jsx)("div",{style:{aspectRatio:2},className:(0,s.default)("relative bg-yellow",e),children:(0,t.jsxs)(c.default,{label:"Gear with clock",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 120 120",className:(0,s.default)("absolute left-1/2 top-1/2 aspect-square -translate-x-1/2 -translate-y-1/2",d.default.jit),style:{height:`${120/168*100}%`},children:[(0,t.jsx)("path",{vectorEffect:"non-scaling-stroke",d:"M83.503 83.503c3.562-3.561 9.173-3.746 13.003-.638A42.938 42.938 0 00102 69.643c-4.906-.504-8.753-4.603-8.753-9.643 0-5.04 3.847-9.156 8.753-9.643a42.938 42.938 0 00-5.494-13.222c-3.83 3.108-9.441 2.923-13.003-.638-3.561-3.562-3.746-9.173-.638-13.003A42.938 42.938 0 0069.643 18c-.504 4.906-4.603 8.77-9.643 8.77-5.04 0-9.156-3.848-9.643-8.77a42.938 42.938 0 00-13.222 5.494c3.108 3.83 2.923 9.441-.638 13.003-3.562 3.561-9.173 3.746-13.003.638A42.938 42.938 0 0018 50.357c4.906.504 8.77 4.603 8.77 9.643 0 5.04-3.848 9.156-8.77 9.643a42.938 42.938 0 005.494 13.222c3.83-3.108 9.441-2.923 13.003.638 3.561 3.562 3.746 9.173.638 13.003A42.938 42.938 0 0050.357 102c.504-4.906 4.603-8.77 9.643-8.77 5.04 0 9.156 3.848 9.643 8.77a42.938 42.938 0 0013.222-5.494c-3.108-3.83-2.923-9.441.638-13.003z",className:(0,s.default)("origin-center fill-black",d.default.gear)}),(0,t.jsxs)("g",{className:"stroke-yellow",children:[(0,t.jsx)("path",{vectorEffect:"non-scaling-stroke",d:"M60 74c7.732 0 14-6.268 14-14s-6.268-14-14-14-14 6.268-14 14 6.268 14 14 14z",fill:"none"}),(0,t.jsx)("path",{vectorEffect:"non-scaling-stroke",d:"M60 84c13.255 0 24-10.745 24-24S73.255 36 60 36 36 46.745 36 60s10.745 24 24 24z",fill:"none"}),(0,t.jsxs)("g",{strokeLinecap:"square",children:[(0,t.jsx)("path",{vectorEffect:"non-scaling-stroke",d:"M60,53.6l0,6.4",className:(0,s.default)("origin-center",d.default.hour)}),(0,t.jsx)("path",{vectorEffect:"non-scaling-stroke",d:"M60,51l0,9",className:(0,s.default)("origin-center",d.default.minute)})]})]}),(0,t.jsxs)("g",{className:"stroke-black",children:[(0,t.jsx)("path",{vectorEffect:"non-scaling-stroke",d:"M60 0v10M60 110v10",strokeWidth:"2"}),(0,t.jsx)("path",{vectorEffect:"non-scaling-stroke",d:"M89 9.77l-3 5.197M34 105.033l-3 5.196M110.229 31l-5.196 3M14.967 86l-5.196 3"}),(0,t.jsx)("path",{vectorEffect:"non-scaling-stroke",d:"M120 60h-10M10 60H0",strokeWidth:"2"}),(0,t.jsx)("path",{vectorEffect:"non-scaling-stroke",d:"M110.229 89l-5.196-3M14.967 34l-5.196-3M89 110.229l-3-5.196M34 14.967l-3-5.196"})]})]})})}var m=e.i(130619),f=e.i(959560);function x({section:e,value:a}
2){let n=(0,f.useSneakySlugDesktop)(e.id);return(0,t.jsx)(i.default,{as:l.Trigger,value:e._key,className:(0,s.default)("-mx-0.5px -mt-0.5px rounded-1 duration-medium ease-in-out-energetic border-ctx -mb-px min-h-2 border px-1 py-0.5",a===e._key?"rounded-none":"hover:rounded-none focus-visible:rounded-none",a===e._key&&"font-bold",a===e._key&&r.coreAccentBackground[e.tabColor],a===e._key&&r.coreAccentContrastText[e.tabColor]),style:{transitionProperty:"border-radius"},scale:"h5-reg",id:n,children:e.title})}e.s(["default",0,function({sections:e}){let[s,r]=(0,a.useState)(e[0]?._key),i=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(!i.current)return;let t=()=>{let t=window.location.hash.replace("#",""),a=e.find(e=>e.id===t);a&&r(a._key)};return window.addEventListener("hashchange",t),t(),()=>{window.removeEventListener("hashchange",t)}},[e]),(0,t.jsx)(l.Root,{ref:i,className:"border-ctx hidden border lg:mx-2 lg:block xl:mx-3",value:s,onValueChange:r,children:(0,t.jsxs)("div",{className:"-m-0.5px",children:[(0,t.jsx)(l.List,{className:"-mx-0.5px -mt-0.5px border-ctx grid grid-cols-3 border-b",children:e.map(e=>(0,t.jsx)(x,{section:e,value:s},e._key))}),e.map(e=>(0,t.jsxs)(l.Content,{value:e._key,className:"grid grid-cols-3 items-center",children:[(0,t.jsx)("h3",{className:"sr-only",children:e.title}),(0,t.jsx)("div",{className:"col-span-2 p-2",children:e.description}),(0,t.jsx)("div",{className:"relative w-full py-2 pr-2",children:"animation"===e.illustrationType?"jit"===e.animation?(0,t.jsx)(u,{className:"rounded-1 h-auto w-full overflow-hidden"}):"volume"===e.animation?(0,t.jsx)(m.default,{className:"rounded-1 h-auto w-full overflow-hidden"}):(0,t.jsx)(o.default,{className:"rounded-1 h-auto w-full overflow-hidden"}):(0,t.jsx)(n.default,{className:"rounded-1 h-auto w-full overflow-hidden",image:e.image.image,alt:e.image.alt,style:{backgroundColor:e.image.image.asset.metadata.palette.dominant.background}})})]},e._key))]})})}],659233)},959560,e=>{"use strict";var t=e.i(843476);e.i(271183);var a=e.i(596564),l=e.i(584556),s=e.i(171667);e.s(["SneakySlugMobileCard",0,({id:e,...s})=>{let r=!(0,l.default)(1e3).lg;return(0,t.jsx)(a.default,{id:r?e:void 0,...s})},"default",0,function({slugs:e}){return(0,s.default)()?null:(0,t.jsx)(t.Fragment,{children:e.map(e=>(0,t.jsx)("div",{id:e,className:"absolute left-0 top-1/2"},e))})}
2,"useSneakySlugDesktop",0,e=>(0,l.default)(1e3).lg?e:void 0])},130220,e=>{"use strict";var t=e.i(843476);e.i(703399);var a=e.i(38699);e.s(["default",0,function({sections:e}){return(0,t.jsx)(a.default.Root,{type:"multiple",defaultValue:e.map(e=>e._key),children:e.map(e=>(0,t.jsxs)(a.default.Item,{value:e._key,id:e.slug,children:[(0,t.jsx)(a.default.Trigger,{scale:"h4",className:"border-putty-deep -mt-px md:border-y",innerClassName:"px-1 sm:px-2 md:px-0",children:e.title}),(0,t.jsx)(a.default.Content,{innerClassName:"p-0",children:e.content})]},e._key))})}])},543601,e=>{"use strict";var t=e.i(843476),a=e.i(271645),l=e.i(832648);e.i(314071);var s=e.i(234113),r=e.i(30030),n=e.i(248425),i=e.i(842727),o=e.i(981140),c=e.i(369340),d="Toggle",u=a.forwardRef((e,a)=>{let{pressed:l,defaultPressed:s,onPressedChange:r,...i}=e,[u,m]=(0,c.useControllableState)({prop:l,onChange:r,defaultProp:s??!1,caller:d});return(0,t.jsx)(n.Primitive.button,{type:"button","aria-pressed":u,"data-state":u?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:a,onClick:(0,o.composeEventHandlers)(e.onClick,()=>{e.disabled||m(!u)})})});u.displayName=d;var m=e.i(586318),f="ToggleGroup",[x,p]=(0,r.createContextScope)(f,[i.createRovingFocusGroupScope]),h=(0,i.createRovingFocusGroupScope)(),g=a.default.forwardRef((e,a)=>{let{type:l,...s}=e;if("single"===l)return(0,t.jsx)(v,{...s,ref:a});if("multiple"===l)return(0,t.jsx)(y,{...s,ref:a});throw Error(`Missing prop \`type\` expected on \`${f}\``)});g.displayName=f;var[j,b]=x(f),v=a.default.forwardRef((e,l)=>{let{value:s,defaultValue:r,onValueChange:n=()=>{},...i}=e,[o,d]=(0,c.useControllableState)({prop:s,defaultProp:r??"",onChange:n,caller:f});return(0,t.jsx)(j,{scope:e.__scopeToggleGroup,type:"single",value:a.default.useMemo(()=>o?[o]:[],[o]),onItemActivate:d,onItemDeactivate:a.default.useCallback(()=>d(""),[d]),children:(0,t.jsx)(N,{...i,ref:l})})}),y=a.default.forwardRef((e,l)=>{let{value:s,defaultValue:r,onValueChange:n=()=>{},...i}=e,[o,d]=(0,c.useControllableState)({prop:s,defaultProp:r??[],onChange:n,caller:f}),u=a.default.useCallback(e=>d((t=[])=>[...t,e]),[d]),m=a.default.useCallback(e=>d((t=[])=>t.filter(t=>t!==e)),[d]);return(0,t.jsx)(j,{scope:e.__scopeToggleGroup,type:"multiple",value:o,onItemActivate:u,onItemDeactivate:m,children:(0,t.jsx)(N,{...i,ref:l})})});g.displayName=f;var[w,M]=x(f),N=a.default.forwardRef((e,a)=>{let{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:r=!0,orientation:o,dir:c,loop:d=!0,...u}=e,f=h(l),x=(0,m.useDirection)(c),p={role:"group",dir:x,...u};return(0,t.jsx)(w,{scope:l,rovingFocus:r,disabled:s,children:r?(0,t.jsx)(i.Root,{asChild:!0,...f,orientation:o,dir:x,loop:d,children:(0,t.jsx)(n.Primitive.div,{...p,ref:a})}):(0,t.jsx)(n.Primitive.div,{...p,ref:a})})}),k="ToggleGroupItem",C=a.default.forwardRef((e,l)=>{let s=b(k,e.__scopeToggleGroup),r=M(k,e.__scopeToggleGroup),n=h(e.__scopeToggleGroup),o=s.value.includes(e.value),c=r.disabled||e.disabled,d={...e,pressed:o,disabled:c},u=a.default.useRef(null);return r.rovingFocus?(0,t.jsx)(i.Item,{asChild:!0,...n,focusable:!c,active:o,ref:u,children:(0,t.jsx)(_,{...d,ref:l})}):(0,t.jsx)(_,{...d,ref:l})});C.displayName=k;var _=a.default.forwardRef((e,a)=>{let{__scopeToggleGroup:l,value:s,...r}=e,n=b(k,l),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},o="single"===n.type?i:void 0;
2return(0,t.jsx)(u,{...o,...r,ref:a,onPressedChange:e=>{e?n.onItemActivate(s):n.onItemDeactivate(s)}})}),S=e.i(102305),R=e.i(992310);let A=(0,a.forwardRef)(({className:e,...a},l)=>(0,t.jsx)(g,{className:(0,R.default)((0,S.default)("-mb-1 -ml-0.5 flex flex-wrap"),e),...a,ref:l})),L=(0,a.forwardRef)(({className:e,...a},l)=>(0,t.jsx)("span",{className:(0,R.default)((0,S.default)("relative flex h-full w-full items-center justify-center opacity-0 transition-opacity group-data-[state=on]:opacity-100"),e),...a,ref:l})),T=(0,a.forwardRef)(({outerClassName:e,className:s,id:r,label:n,color:i,...o},c)=>{let d=(0,a.useId)(),u=r??d;return(0,t.jsxs)("div",{className:(0,R.default)("mb-0.5 ml-0.5 flex items-center",e),children:[(0,t.jsx)(C,{className:(0,R.default)((0,S.default)("group border-gray-dark h-1 w-1 shrink-0 cursor-default border"),s),...o,id:u,ref:c,children:(0,t.jsx)(L,{children:(0,t.jsx)("span",{className:(0,S.default)("rounded-1 content-empty block h-0.5 w-0.5 border",l.coreAccentBackground[i],l.coreAccentBorder[i])})})}),(0,t.jsx)("label",{className:"pl-0.5",htmlFor:u,children:n})]})});A.displayName="ToggleGroup.Root",L.displayName="ToggleGroup.Indicator",T.displayName="ToggleGroup.Item";e.i(185981);var I=e.i(468509);let $=e=>e/8/1e3*60,E={"720p":3.33,"1080p":5.33,"1440p":8.8,"2160p":13.33},z=(e,t)=>t.filter(t=>t.unique_key===e.toLowerCase()).sort((e,t)=>e.tier-t.tier),F=(e,t)=>{let a=0,l=e;for(let e=0;e<t.length;e++){let{price:s,start:r,end:n}=t[e],i=n-r,o=Math.min(l,i);if(a+=s*o,i>l)break;l-=o}return a},B="rounded-2 px-0.25 py-0.5 sm:text-sm overflow-hidden whitespace-nowrap",D="p-0.125 appearance-none border border-gray bg-gray-dark/20 text-center w-3 h-1 text-white",P=e=>e.toLocaleString("en-US",{style:"currency",currency:"USD"}),q=e=>new Intl.NumberFormat("en-US",{maximumFractionDigits:2}).format(e),O=e=>t=>{let a=t.target.value.replace(/,/g,"");if(""===a)return e(0);let l=parseInt(a,10);isNaN(l)||e(l)};var G=e.i(359359);e.i(644272);var H=e.i(77059);e.i(23911);var V=e.i(137456),W=e.i(545108),U=e.i(515710),K=e.i(518123);let Y=({total:e,encodingCost:s,discount:r,freeDeliveryMinutes:n,freeDeliveryDiscount:i,freeRobotsDiscount:o,storageCostWithCold:c,shouldHaveContract:d,usingLaunchPlan:u,usingScalePlan:m,deliveryCost:f,setShowExtraOptions:x,calculatorType:p,robotWorkflowCosts:h})=>{let[g,j]=(0,a.useState)(!1);return(0,t.jsxs)("div",{className:(0,S.default)("border-gray-dark flex h-full flex-col gap-1 border bg-black","simple"===p&&"justify-between"),children:[(0,t.jsx)("div",{className:"text-gray-text-dark border-ctx border-b p-0.5 text-center",children:(0,t.jsx)(I.default,{scale:"mono-14",children:"Estimate Mux costs"})}),(0,t.jsxs)("div",{className:(0,S.default)("flex flex-row items-center justify-center md:py-0.25","simple"==p&&0==e&&"text-gray-text-dark"),children:[(0,t.jsx)(I.default,{scale:"h3",className:(0,S.default)("mr-0.25 font-normal","simple"==p&&0==e?"text-gray-text-dark":"text-green-neon"),children:P(e)}),(0,t.jsxs)(I.default,{scale:"h3",bold:!1,children:[" ","per month"]})]}),(0,t.jsxs)("div",{className:"mb-0.5 flex flex-col items-center gap-0.5",children:[(u||m)&&(0,t.jsxs)("div",{className:"border-gray-dark bg-charcoal mx-2 border px-1 py-0.5 sm:px-2 lg:px-1 xl:px-2",children:[d&&(0,t.jsxs)("div",{className:"flex flex-col items-center gap-0.25",children:[(0,t.jsx)(I.default,{as:W.default,linkStyle:"underline",className:"text-center font-bold text-pretty",target:"_blank",href:"/sales-contact",children:"Talk to sales"}),(0,t.jsx)(I.default,{scale:"p2",className:"text-gray-text-dark text-center text-pretty",children:"For usage above $3k / month we can offer custom pricing. Contract rates are negotiated separately and aren't included in this estimate."})]}),u&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(I.default,{scale:"p2",className:"text-center font-bold text-pretty",children:"Launch plan recommended"}),(0,t.jsx)(I.default,{scale:"p2",className:"text-gray-text-dark text-center text-pretty",children:"Pay $20 and get $100 of usage, every month"})]}),m&&!d&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(I.default,{scale:"p2",className:"text-center font-bold text-pretty",children:"Scale plan recommended"}),(0,t.jsx)(I.default,{scale:"p2",className:"text-gray-text-dark text-center text-pretty",children:"Pay $500 and get $1,000 of usage, every month"})]})]}),"advanced"==p&&(0,t.jsxs)("div",{className:"text-gray-text-dark xs:px-2 px-1 text-sm text-pretty lg:px-1 xl:px-2",children:[(0,t.jsx)(I.default,{as:W.default,linkStyle:"underline",target:"_blank",href:"/docs/pricing/overview#automatic-cold-storage",children:"Cold Storage"})," ",(0,t.jsx)(U.default,{triggerProps:{className:"p-0 m-0 text-gray-text-dark hover:text-white focus:text-white"},trigger:(0,t.jsx)(K.default,{className:"top-2px mx-2px relative h-0.5 w-0.5"}),children:"Cold Storage saves you money by storing unwatched videos in a cheaper storage tier. Videos automatically move in and out of storage tiers without you needing to do anything."})," ",(0,t.jsx)(I.default,{children:"is enabled which gives you up to a 60% discount on assets not being watched. See "}),(0,t.jsx)(I.default,{className:"text-white",linkStyle:"underline",as:"button",onClick:()=>x(e=>!e),children:"advanced options"})," ",(0,t.jsx)(I.default,{children:"for a breakdown"})]})]}),(0,t.jsxs)("div",{className:"mt-auto flex flex-col",children:["advanced"==p&&(0,t.jsxs)(V.default.Root,{className:"before:border-gray-dark flex flex-col justify-center before:border-t before:content-[''] before:sm:mx-2 before:lg:mx-1 before:xl:mx-2",open:g,onOpenChange:()=>j(e=>!e),children:[(0,t.jsx)(V.default.Trigger,{className:(0,S.default)("xs:px-1 flex w-full items-center justify-between p-0.5 sm:px-2 lg:px-1 xl:px-2",!g&&"md:pb-2"),children:(0,t.jsx)(I.default,{scale:"mono-14",children:g?"Too much math":"Show me the math"})}),(0,t.jsx)(V.default.Content,{className:"",children:(0,t.jsxs)("div",{className:"flex flex-col items-start px-1 pb-1 sm:px-2 lg:px-1 xl:px-2",children:[(0,t.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,t.jsx)("span",{children:"Input cost:"}),(0,t.jsx)("span",{className:"font-bold",children:P(s)})]}),(0,t.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,t.jsx)("span",{children:"Storage cost:"}),(0,t.jsx)("span",{className:"font-bold",children:P(c)})]}),(0,t.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,t.jsx)("span",{children:"Delivery cost:"}),(0,t.jsx)("span",{className:"font-bold",children:P(f)})]}),h&&Object.keys(h).length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("hr",{className:"border-ctx my-0.5 h-px w-full border-0 border-b border-dashed"}),(0,t.jsx)(I.default,{scale:"p3",className:"font-bold",children:"Mux Robots"}),(0,t.jsx)("div",{className:"flex w-full flex-col",children:Object.entries(h).filter(e=>void 0!==e[1]).map(([e,a])=>(0,t.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,t.jsx)("span",{children:e}),(0,t.jsx)("span",{className:"font-bold",children:P(a)})]},e))})]}),n>0||o>0||r>0?(0,t.jsx)("hr",{className:"border-ctx my-0.5 h-px w-full border-0 border-b border-dashed"}):null,r>1&&(0,t.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,t.jsxs)("span",{className:"text-pretty",children:["Usage credits",r<20&&!u?" (up to $20)":"",r>20&&r<100&&u?" (up to $100)":"",r>100&&r<1e3&&m?" (up to $1,000)":"",":"]}),(0,t.jsxs)("span",{className:"font-bold",children:["-",P(r)]})]}),n>0&&(0,t.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,t.jsxs)("span",{children:[`${n.toLocaleStr
2ing()}`," free delivery minutes",n<1e5?" (up to 100K)":"",":"]}),(0,t.jsxs)("span",{className:"font-bold",children:["-",`${P(i)}`]})]}),o>0&&(0,t.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,t.jsxs)("span",{className:"text-pretty",children:[`${Math.round(1e5*o).toLocaleString()}`," free Mux Robots units",o<1?" (up to 100K)":"",":"]}),(0,t.jsxs)("span",{className:"font-bold",children:["-",(1e5*o).toLocaleString()," units"]})]}),(0,t.jsx)("hr",{className:"border-ctx my-0.5 h-px w-full border-0 border-b"}),u&&(0,t.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,t.jsx)("span",{className:"text-pretty",children:"Launch Plan pre-pay cost:"}),(0,t.jsx)("span",{className:"font-bold",children:P(20)})]}),m&&(0,t.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,t.jsx)("span",{className:"text-pretty",children:"Scale Plan pre-pay cost:"}),(0,t.jsx)("span",{className:"font-bold",children:P(500)})]}),(0,t.jsxs)("div",{className:"text-green-neon flex w-full items-center justify-between",children:[(0,t.jsx)("span",{className:"font-bold",children:"Total cost:"}),(0,t.jsx)("span",{className:"font-bold",children:P(e)})]})]})})]}),(0,t.jsx)(H.default,{as:"a",cta:!0,href:"https://dashboard.mux.com/signup",rounded:!1,color:l.CoreAccent.green,className:"-m-px",children:(0,t.jsx)(I.default,{className:"text-black",scale:"mono-14",children:"Create Free Account"})})]})]})};e.i(266153);var J=e.i(913185);let X=({showExtraOptions:e,coldBreakdown:a,updateColdBreakdown:s,setShowExtraOptions:r,bitrateInMbps:n,setBitrateInMbps:i,staticRenditions:o,setStaticRenditions:c})=>(0,t.jsxs)(t.Fragment,{children:[e&&(0,t.jsxs)("div",{className:"mt-1",children:[(0,t.jsx)(I.default,{scale:"p2",className:"mb-0.5 font-bold",children:"Cold storage breakdown"}),(0,t.jsxs)("div",{className:"grid gap-1 md:grid-cols-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)(I.default,{children:["Cold: ",a[0],"%"]}),(0,t.jsx)(J.default,{value:[a[0]],color:l.CoreAccent.yellow,min:0,max:100,step:1,onValueChange:e=>s(0,e[0])})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)(I.default,{children:["Infrequent: ",a[1],"%"]}),(0,t.jsx)(J.default,{color:l.CoreAccent.yellow,value:[a[1]],min:0,max:100,step:1,onValueChange:e=>s(1,e[0])})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)(I.default,{children:["Hot: ",a[2],"%"]}),(0,t.jsx)(J.default,{color:l.CoreAccent.yellow,value:[a[2]],min:0,max:100,step:1,onValueChange:e=>s(2,e[0])})]})]}),(0,t.jsx)(I.default,{scale:"p2",className:"mb-0.5 mt-1",bold:!0,children:"Static Renditions (MP4s)"}),(0,t.jsx)("div",{className:"mb-0.5 flex w-full items-center",children:(0,t.jsxs)(I.default,{scale:"p2",children:[o,"% of assets stored"]})}),(0,t.jsx)(J.default,{className:"w-full",value:[o],color:l.CoreAccent.yellow,min:0,max:100,step:5,onValueChange:e=>c(e[0])}),(0,t.jsx)(I.default,{scale:"p2",className:"mb-0.5 mt-1",bold:!0,children:"Bitrate for minutes to bandwidth conversion (GB)"}),(0,t.jsxs)("div",{className:"mb-0.5 flex w-full items-center",children:[(0,t.jsx)("input",{className:(0,S.default)(D,"mr-0.5 w-1"),type:"number",step:"0.1",value:n,onChange:e=>(function(e,t){let a=e.target.value.trim().replace(/,/g,"");if(""===a)return void t(0);let l=parseFloat(a);t(isNaN(l)?0:Math.min(l,20))})(e,i)}),(0,t.jsx)(I.default,{children:"Mbps"})]}),(0,t.jsx)(J.default,{className:"w-full",value:[n],color:l.CoreAccent.yellow,min:0,max:20,step:.1,onValueChange:e=>i(e[0])})]}),(0,t.jsx)(H.default,{className:"mt-2 w-full",rounded:!0,cta:!0,border:!0,color:l.CoreNeutral.charcoal,onClick:()=>r(e=>!e),children:(0,t.jsxs)(I.default,{scale:"mono-14",children:[e?"Hide":"Show"," advanced options"]})})]}),Z=({numberOfAssets:e,setNumberOfAssets:a})=>(0,t.jsxs)("div",{className:"flex flex-col justify-between gap-0.5 pt-1 first:pt-0 md:flex-row md:items-center",children:[(0,t.jsx)("span",{className:"flex flex-1 gap-0.25",children:(0,t.jsx)(I.default,{as:"label",htmlFor:"num-assets",scale:"p2",bold:!0,children:"Estimated number of assets"})}),(0,t.jsx)(I.default,{children:(0,t.jsx)("input",{id:"num-assets",className:D,type:"text",value:q(e),onChange:O(a)})})]}),Q=({amount:e,setAmount:a,pricingType:s,bitrateInMbps:r})=>(0,t.jsxs)("div",{className:"pt-1 first:pt-0",children:[(0,t.jsxs)("label",{htmlFor:s,className:"mb-1 flex flex-col justify-between gap-0.5 md:mb-0.5 md:flex-row md:items-center",children:[(0,t.jsxs)("span",{className:"flex flex-1 gap-0.25",children:[(0,t.jsx)(I.default,{scale:"p2",bold:!0,children:s}),(0,t.jsx)("span",{className:"text-gray-text-dark",children:"minutes / month"})]}),(0,t.jsxs)(I.default,{children:[(0,t.jsx)("input",{className:D,type:"text",value:q(e),onChange:O(a)}),(0,t.jsxs)(I.default,{as:"small",scale:"p2",children:[" ","mins"]})," ",(0,t.jsxs)(I.default,{className:"text-gray-text-dark",children:["≈"," ",(0,t.jsx)("input",{className:D,type:"text",value:q($(r)*e),onChange:e=>{let t=e.target.value.replace(/,/g,"");if(""===t)return a(0);let l=parseFloat(t);isNaN(l)||a(l/$(r))}}),(0,t.jsx)(I.default,{children:" gb"})]})]})]}),(0,t.jsx)(J.default,{color:l.CoreAccent.yellow,id:s,min:0,max:2e5,value:[e],onValueChange:e=>a(e[0])})]}),ee=({active:e,setActive:a,building:l,quality:s,setBitrateInMbps:r,pricingType:n})=>{let i="",o="",c=[];return"quality"===n&&(o="Video Quality",i="Higher quality videos look better, but cost slightly more to ingest, store, and deliver. Basic quality comes with free input",c=["basic","plus","premium"].map(s=>(0,t.jsx)(I.default,{scale:"mono-12",as:"button",onClick:()=>a(s),className:(0,S.default)(B,"flex-1",e===s&&"bg-yellow text-black","live"===l&&"basic"===s&&"cursor-not-allowed line-through opacity-50"),disabled:"live"===l&&"basic"===s,children:s},s))),"resolution"===n&&(o="Resolution",i="The highest resolution you expect to upload. Some quality levels have support for higher resolutions",c=["720p","1080p","1440p","2160p"].map(s=>{let n=("1440p"===s||"2160p"===s)&&"live"===l;return(0,t.jsx)(I.default,{scale:"mono-12",as:"button",className:(0,S.default)(B,"flex-1",e===s&&"bg-yellow text-black",n&&"cursor-not-allowed line-through opacity-50"),onClick:()=>{a(s),r&&r(E[s])},disabled:n,children:"1440p"===s?"2K":"2160p"===s?"4K":s},s)})),"asset_type"===n&&(o="Asset Type",i="The type of video you'll be utilizing Mux for.",c=["ondemand","live"].map(l=>(0,t.jsxs)(I.default,{scale:"mono-12",as:"button",className:(0,S.default)(B,"flex-1",e===l&&"bg-yellow text-black"),onClick:()=>a(l),children:["ondemand"===l?"on demand":l," video"]},l))),(0,t.jsxs)("div",{className:"-my-0.5px grid border font-bold border-ctx md:grid-cols-7 lg:grid-cols-3 xl:grid-cols-7",children:[(0,t.jsx)(U.default,{contentProps:{sideOffset:0},triggerProps:{className:"p-0 m-0 flex text-gray-text-dark hover:text-white focus:text-white md:col-span-2 lg:col-span-1 xl:col-span-2"},trigger:(0,t.jsxs)("label",{className:"inline-flex flex-1 cursor-pointer items-center justify-center whitespace-nowrap p-0.5 md:justify-start",children:[(0,t.jsx)(I.default,{bold:!0,className:"text-white",children:o}),(0,t.jsx)(K.default,{className:"pl-0.125 md:ml-auto"})]}),children:i}),(0,t.jsx)("div",{className:"flex border-t bg-gray-dark/20 p-0.125 border-ctx md:col-span-5 md:border-l md:border-t-0 lg:col-span-2 xl:col-span-5",children:c})]})};e.s(["default",0,({data:e,searchParams:r={},disableManageSearchParams:n=!1})=>{var i;let[o,c]=(0,a.useState)(()=>r.asset_type||"ondemand"),[d,u]=(0,a.useState)(()=>r.resolution||"720p"),[m,f]=(0,a.useState)(()=>r.quality||"basic"),[x,p]=(0,a.useState)(()=>parseInt(String(r.upload||"100"))),[h,g]=(0,a.useState)(()=>parseInt(String(r.storage||"500"))),[j,b]=(0,a.useState)(()=>parseInt(String(r.delivery||"1000"))),[v,y]=(0,a.useState)(!1),w="live"===o,[M,N]=(0,a.useState)(()=>{let e=r.cold_breakdown;return e?decodeURIComponent(e).split(",").map(Number):[60,10,30]}),[k,C]=(0,a.useState)(()=>{let e=r.bitrate_in_mbps;return"string"==typeof e?parseFloat(e):E[d]}),[_,S]=(0,a.useState)(()=>{let e=r.static_renditions;return"string"==typeof e?parseInt(e):0}),[R,L]=(0,a.useState)(()=>{let e=r.robot_workflows;
2return e?decodeURIComponent(e).split(",").filter(Boolean):[]}),[$,B]=(0,a.useState)(()=>parseInt(String(r.num_assets||"100"))),D=F(x,z(`${m}_${w?"live_":""}encoding_${d}`,e)),q=F(h,z(`${m}_storage_${d}`,e)),O=q*(M[0]/100)*.6,H=q*(M[1]/100)*.4,V=F(_/100*h,z(`${m}_static_storage_${d}`,e)),W=V*(M[0]/100)*.6,U=V*(M[1]/100)*.4,K=q-O-H+(V-W-U),{deliveryCost:J,freeDeliveryMinutes:et,freeDeliveryDiscount:ea}=function(e,t,a,l){let s=["720p","1080p","1440p","2160p"],r=s.slice(0,s.indexOf(t)+1),n=Math.min(e,1e5),i=0,o=0;for(let t of r){let s=z(`${a}_streaming_${t}`,l);i+=F(e/r.length,s),o+=F(n/r.length,s)}return{deliveryCost:i,freeDeliveryMinutes:Math.floor(n),freeDeliveryDiscount:o}}(j,d,m,e),el=R.reduce((e,t)=>({...e,[t]:(0,G.calculateRobotWorkflowCost)(t,$,x)}),{}),es=Object.values(el).reduce((e,t)=>e+(t??0),0),er=Math.min(es,1),en=(i=Math.max(D+K+J+es-ea-er,0),[{name:"Pay as you go",fee:0,credit:20},{name:"Launch",fee:20,credit:100},{name:"Scale",fee:500,credit:1e3}].map(e=>({...e,discount:Math.min(i,e.credit),total:e.fee+Math.max(i-e.credit,0)})).reduce((e,t)=>t.total<e.total?t:e)),{total:ei,discount:eo}=en,ec="Scale"===en.name,ed="Launch"===en.name,eu=ei>3e3,em=["Mux monthly estimate at public rates (USD)","Calculator settings may include defaults; these are planning assumptions, not measured usage.",`Workflow: ${o}; quality: ${m}; input resolution: ${d}`,`Input: ${x} minutes; storage: ${h} minutes; delivery: ${j} minutes`,`Storage mix: ${M[0]}% cold, ${M[1]}% infrequent, ${M[2]}% frequent`,"Delivery uses the calculator’s modeled resolution mix, not necessarily the input resolution for every minute.",`GB conversion bitrate: ${k} Mbps (an assumption, not a measured source bitrate)`,`Static renditions: ${_}% of stored minutes`,`AI workflows: ${R.join(", ")||"none"}; asset count for AI jobs: ${$}`,...R.length>0?[`Mux Robots assumptions: ${G.ROBOT_ESTIMATE_ASSUMPTIONS}`]:[],`Input cost: ${P(D)}; storage cost: ${P(K)}; delivery cost: ${P(J)}; AI cost: ${P(es)}`,`Free delivery allowance applied: ${et} minutes (${P(ea)})`,`Free Mux Robots allowance applied: ${P(er)}`,`Plan: ${en.name}`,`Plan fee: ${P(en.fee)}; usage credits applied: ${P(eo)}`,`Estimated payable total: ${P(ei)} per month`,"Contract price: unknown; public rates do not determine a negotiated contract quote.",...eu?["Custom pricing is available above $3,000/month: https://www.mux.com/sales-contact"]:[],"Library growth, deletion timing, and exact storage proration/minimums need separate modeling.","Calculator: https://www.mux.com/pricing/calculator","Rate reference: https://www.mux.com/docs/pricing/overview"].join("\n");return(0,a.useEffect)(()=>{if(n)return;let e=new URLSearchParams;o||d||m||x||h||j||M||k||_?(e.set("asset_type",o),e.set("resolution",d),e.set("quality",m),e.set("upload",x),e.set("storage",h),e.set("delivery",j),e.set("cold_breakdown",M),e.set("bitrate_in_mbps",k),e.set("static_renditions",_),e.set("robot_workflows",R.join(",")),e.set("num_assets",$)):(e.delete("asset_type"),e.delete("resolution"),e.delete("quality"),e.delete("upload"),e.delete("storage"),e.delete("delivery"),e.delete("cold_breakdown"),e.delete("bitrate_in_mbps"),e.delete("static_renditions"),e.delete("robot_workflows"),e.delete("num_assets"));let t=setTimeout(()=>{let t=`${window.location.pathname}?${e.toString()}`;window.history.replaceState({...window.history.state,as:t,url:t},"",t)},250);return()=>clearTimeout(t)},[o,d,m,x,h,j,M,k,n,_,R,$]),(0,a.useEffect)(()=>{"live"===o&&"basic"===m&&f("plus")},[o,m]),(0,a.useEffect)(()=>{"live"===o&&("1440p"===d||"2160p"===d)&&u("1080p")},[o,d]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mx-auto w-full max-w-26",children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(ee,{pricingType:"asset_type",active:o,setActive:c}),(0,t.jsx)(ee,{pricingType:"resolution",active:d,setBitrateInMbps:C,setActive:u,building:o,quality:m}),(0,t.jsx)(ee,{pricingType:"quality",active:m,setActive:f,building:o})]}),(0,t.jsxs)("div",{className:"pt-2",children:[(0,t.jsx)(Q,{pricingType:"Input",amount:x,setAmount:p,bitrateInMbps:k}),(0,t.jsx)(Q,{pricingType:"Storage",amount:h,setAmount:g,bitrateInMbps:k}),(0,t.jsx)(Q,{pricingType:"Delivery",amount:j,setAmount:b,bitrateInMbps:k})]}),(0,t.jsx)("div",{className:"pt-1.5 pr-[1.4rem]",children:(0,t.jsx)(Z,{numberOfAssets:$,setNumberOfAssets:B})}),(0,t.jsxs)("div",{className:"pt-1.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-0.25 pb-1",children:[(0,t.jsx)(I.default,{scale:"p2",bold:!0,children:"Mux Robots"}),(0,t.jsx)(I.default,{scale:"p2",className:"text-gray-text-dark",children:"(select all that apply)"})]}),(0,t.jsx)(A,{type:"multiple",className:"grid grid-cols-2 items-center justify-center gap-x-1","aria-label":"Select Mux Robot workflows",value:R,onValueChange:e=>{L(e)},children:["Caption translation","Ask questions","Key moments","Summarization","Content moderation","Chaptering"].map(e=>(0,t.jsx)(T,{color:l.CoreAccent.green,label:e,value:e},e))})]}),(0,t.jsx)(X,{showExtraOptions:v,coldBreakdown:M,updateColdBreakdown:(e=0,t=0)=>{N(a=>{let l=100-t,s=[0,1,2].filter(t=>t!==e),r=a[s[0]]+a[s[1]],n=[...a];return n[e]=t,r>0?(n[s[0]]=Math.ceil(a[s[0]]/r*l),n[s[1]]=Math.floor(a[s[1]]/r*l)):(n[s[0]]=Math.ceil(l/2),n[s[1]]=Math.floor(l/2)),n.map(e=>Math.max(0,Math.min(100,e)))})},setShowExtraOptions:y,bitrateInMbps:k,setBitrateInMbps:C,staticRenditions:_,setStaticRenditions:S})]}),(0,t.jsxs)("div",{className:"mx-auto w-full max-w-26",children:[(0,t.jsx)(Y,{calculatorType:"advanced",total:ei,discount:eo,freeDeliveryMinutes:et,freeDeliveryDiscount:ea,freeRobotsDiscount:er,encodingCost:D,storageCostWithCold:K,deliveryCost:J,shouldHaveContract:eu,usingLaunchPlan:ed,usingScalePlan:ec,setShowExtraOptions:y,robotWorkflowCosts:el}),(0,t.jsxs)("div",{className:"text-gray-text-dark flex flex-col items-center justify-center gap-0.5 pt-1",children:[(0,t.jsx)(I.default,{scale:"mono-14",className:"pb-0.5",children:"How are we doing the math?"}),(0,t.jsx)(I.default,{scale:"p3",children:"Estimates include applicable credits and plan costs at the listed rates. Contact sales for custom pricing."}),(0,t.jsxs)(I.default,{scale:"p3",children:["Storage assumes ",M[0],"% cold, ",M[1],"% infrequent, and ",M[2],"% frequent storage. Adjust this mix in the additional options for your library. Model retention, proration, and the one-month minimum for basic quality separately."]}),(0,t.jsxs)(I.default,{scale:"p3",children:["GB equivalents use ",k," Mbps as the default. You can adjust that in additional options. Resolution alone doesn't establish the bitrate or duration of a migration library. Delivery input
2s should include buffered or preloaded video, even when it isn't watched."]}),(0,t.jsx)(I.default,{scale:"p3",children:"Delivery cost is calculated across available resolutions to simulate typical delivery patterns. For example, 1080p video is split evenly between 720p and 1080p, while 4K is split across all four resolutions."}),(0,t.jsx)(I.default,{scale:"p3",children:G.ROBOT_ESTIMATE_ASSUMPTIONS}),(0,t.jsx)(s.default,{copyText:em,defaultLabel:"Copy estimate",color:l.CoreNeutral.charcoal})]})]})]})}],543601)},703399,38699,e=>{"use strict";var t=e.i(843476),a=e.i(271645),l=e.i(767660),s=e.i(102305),r=e.i(992310),n=e.i(916424);e.i(185981);var i=e.i(468509);let o=(0,a.forwardRef)(({children:e,className:a,innerClassName:o,padding:c="md",...d},u)=>(0,t.jsx)(l.Header,{asChild:!0,ref:u,children:(0,t.jsx)(i.default,{scale:"h4-reg",as:"h3",className:(0,r.default)((0,s.default)("group border-gray border-t"),a),...d,linkStyle:"anti-underline",children:(0,t.jsxs)(l.Trigger,{className:(0,r.default)((0,s.default)("group flex w-full items-center [text-align:inherit]","sm"===c&&"min-h-2 px-0.5 py-0.25","md"===c&&"min-h-3 px-1 py-0.5","lg"===c&&"min-h-4 px-2 py-1"),o),children:[(0,t.jsx)("span",{className:"mr-1",children:e}),(0,t.jsx)(n.default,{className:"duration-short ease-in-out-energetic ml-auto h-0.5 w-0.5 shrink-0 transition-transform group-data-state-closed:rotate-45"})]})})})),c=(0,a.forwardRef)(({className:e,innerClassName:a,padding:n="md",children:i,...o},c)=>(0,t.jsx)(l.Content,{...o,ref:c,className:(0,r.default)((0,s.default)("overflow-hidden","data-state-open:animate-radix-accordion-content-down","data-state-closed:animate-radix-accordion-content-up"),e),children:(0,t.jsx)("div",{className:(0,r.default)((0,s.default)("sm"===n&&"p-0.5","md"===n&&"p-1","lg"===n&&"p-2","pt-0"),a),children:i})})),d=l.Root,u=l.Item;d.displayName="Accordion.Root",u.displayName="Accordion.Item",o.displayName="Accordion.Trigger",c.displayName="Accordion.Content",e.s(["default",0,{Root:d,Item:u,Trigger:o,Content:c}],38699),e.s([],703399)},325738,e=>{"use strict";var t=e.i(843476),a=e.i(271645),l=e.i(992310),s=e.i(702791);e.s(["default",0,function({children:e,className:r,style:n,...i}){let o=(0,a.useRef)(null),c=(0,s.default)(o,{rootMargin:"56px 0px 56px 0px",threshold:.75});return(0,t.jsx)("div",{ref:o,className:(0,l.default)("transform-gpu transition ease-in-out-energetic",c?"translate-y-0 opacity-100":"translate-y-0.75 opacity-0",r),style:{transitionDelay:"0.1s",transitionDuration:"0.5s",...n},...i,children:e})}])},137456,e=>{"use strict";var t=e.i(843476),a=e.i(271645),l=e.i(687607),s=e.i(102305),r=e.i(992310),n=e.i(84341);e.i(185981);var i=e.i(468509);let o=l.Root,c=(0,a.forwardRef)(({children:e,className:a,typographyProps:o,...c},d)=>(0,t.jsx)(l.Trigger,{...c,asChild:!0,ref:d,children:(0,t.jsxs)(i.default,{as:"button",linkStyle:"anti-underline",...o,className:(0,r.default)((0,s.default)("group flex items-center justify-between text-left",o?.className,a)),children:[e,(0,t.jsx)("span",{className:"ml-0.5",children:(0,t.jsx)(n.default,{className:"rotate-0 fill-transparent group-data-state-open:-rotate-180 group-data-state-open:fill-current"})})]})})),d=(0,a.forwardRef)(({className:e,...a},n)=>(0,t.jsx)(l.Content,{...a,ref:n,className:(0,r.default)((0,s.default)("overflow-hidden","data-state-open:animate-radix-collapsible-content-down","data-state-closed:animate-radix-collapsible-content-up"),e)}));o.displayName="Collapsible.Root",c.displayName="Collapsible.Trigger",d.displayName="Collapsible.Content",e.s(["CollapsibleContent",0,d,"CollapsibleRoot",0,o,"CollapsibleTrigger",0,c,"default",0,{Root:o,Trigger:c,Content:d}])},23911,e=>{"use strict";e.i(137456),e.s([])},171667,e=>{"use strict";var t=e.i(271645);e.s(["default",0,()=>{let[e,a]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{a(!0)},[]),e}])}]);
3
4//# debugId=08ff82ba-4bc7-a7ba-7aed-3280cab6a02c

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