!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a09b99-99d6-71f2-b738-ed1aa7a8638f")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,512357,741485,58115,e=>{"use strict";var t=e.i(270401),r=e.i(120102),n=e.i(86222),i=e.i(228876),a=e.i(361409),o=e.i(192291),s=e.i(271710),l=e.i(365054),u=e.i(686738),c=e.i(302113),d=e.i(991066),p=e.i(939550),m=e.i(467219),f=e.i(846755),g=e.i(861187);function h(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function y(e,t){return h(t,e===g.ARROW_UP||e===g.ARROW_DOWN,e===g.ARROW_LEFT||e===g.ARROW_RIGHT)}function v(e,t,r){return h(t,e===g.ARROW_DOWN,r?e===g.ARROW_LEFT:e===g.ARROW_RIGHT)||"Enter"===e||" "===e||""===e}e.s(["useListNavigation",0,function(e,b){let x="rootStore"in e?e.rootStore:e,T=x.useState("open"),E=x.useState("floatingElement"),k=x.useState("domReferenceElement"),O=x.context.dataRef,{listRef:S,activeIndex:w,onNavigate:z=()=>{},enabled:R=!0,selectedIndex:P=null,allowEscape:_=!1,loopFocus:M=!1,nested:C=!1,rtl:I=!1,virtual:j=!1,focusItemOnOpen:A="auto",focusItemOnHover:N=!0,openOnArrowKeyDown:L=!0,disabledIndices:D,orientation:W="vertical",parentOrientation:V,cols:F=1,id:q,resetOnPointerLeave:G=!0,externalTree:H}=b,$=(0,l.getFloatingFocusElement)(E),B=(0,n.useValueAsRef)($),Q=(0,d.useFloatingParentNodeId)(),K=(0,d.useFloatingTree)(H);(0,a.useIsoLayoutEffect)(()=>{O.current.orientation=W},[O,W]);let U=(0,l.isTypeableCombobox)(k),Y=t.useRef(A),Z=t.useRef(P??-1),X=t.useRef(null),J=t.useRef(!0),ee=(0,i.useStableCallback)(e=>{z(-1===Z.current?null:Z.current,e)}),et=t.useRef(ee),er=t.useRef(!!E),en=t.useRef(T),ei=t.useRef(!1),ea=t.useRef(!1),eo=t.useRef(null),es=(0,n.useValueAsRef)(D),el=(0,n.useValueAsRef)(T),eu=(0,n.useValueAsRef)(P),ec=(0,n.useValueAsRef)(G),ed=(0,i.useStableCallback)(()=>{function e(e){j?K?.events.emit("virtualfocus",e):eo.current=(0,f.enqueueFocus)(e,{sync:ei.current,preventScroll:!0})}let t=S.current[Z.current],r=ea.current;t&&e(t),(ei.current?e=>e():requestAnimationFrame)(()=>{let n=S.current[Z.current]||t;!n||(t||e(n),ef&&(r||!J.current)&&n.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});(0,a.useIsoLayoutEffect)(()=>{R&&(T&&E?(Z.current=P??-1,Y.current&&null!=P&&(ea.current=!0,ee())):er.current&&(Z.current=-1,et.current()))},[R,T,E,P,ee]),(0,a.useIsoLayoutEffect)(()=>{if(R){if(!T){ei.current=!1;return}if(E)if(null==w){if(ei.current=!1,null!=eu.current)return;if(er.current&&(Z.current=-1,ed()),(!en.current||!er.current)&&Y.current&&(null!=X.current||!0===Y.current&&null==X.current)){let e=0,t=()=>{null==S.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(Z.current=null==X.current||v(X.current,W,I)||C?(0,c.getMinListIndex)(S):(0,c.getMaxListIndex)(S),X.current=null,ee())};t()}}else(0,c.isIndexOutOfListBounds)(S.current,w)||(Z.current=w,ed(),ea.current=!1)}},[R,T,E,w,eu,C,S,W,I,ee,ed,es]),(0,a.useIsoLayoutEffect)(()=>{if(!R||E||!K||j||!er.current)return;let e=K.nodesRef.current,t=e.find(e=>e.id===Q)?.context?.elements.floating,r=(0,s.activeElement)((0,o.ownerDocument)(E)),n=e.some(e=>e.context&&(0,s.contains)(e.context.elements.floating,r));t&&!n&&J.current&&t.focus({preventScroll:!0})},[R,E,K,Q,j]),(0,a.useIsoLayoutEffect)(()=>{et.current=ee,en.current=T,er.current=!!E}),(0,a.useIsoLayoutEffect)(()=>{T||(X.current=null,Y.current=A)},[T,A]);let ep=null!=w,em=(0,i.useStableCallback)(e=>{if(!el.current)return;let t=S.current.indexOf(e.currentTarget);-1!==t&&(Z.current!==t||w!==t)&&(Z.current=t,ee(e))}),ef=t.useMemo(()=>({onFocus(e){ei.current=!0,em(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){ei.current=!0,ea.current=!1,N&&em(e)},onPointerLeave(e){if(!el.current||!J.current||"touch"===e.pointerType)return;ei.current=!0;let t=e.relatedTarget;if(!(!N||S.current.includes(t))&&ec.current&&(eo.current?.(),eo.current=null,Z.current=-1,ee(e),!j)){let e=B.current,t=(0,s.activeElement)((0,o.ownerDocument)(e));e&&(0,s.contains)(e,t)&&e.focus({preventScroll:!0})}}}),[em,el,B,N,S,ee,ec,j]),eg=t.useCallback(()=>V??K?.nodesRef.current.find(e=>e.id===Q)?.context?.dataRef?.current.orientation,[Q,K,V]),eh=(0,i.useStableCallback)(e=>{var t;let n,i;if(J.current=!1,ei.current=!0,229===e.which||!el.current&&e.currentTarget===B.current)return;if(C&&(t=e.key,n=I?t===g.ARROW_RIGHT:t===g.ARROW_LEFT,i=t===g.ARROW_UP,"both"===W||"horizontal"===W&&F&&F>1?"Escape"===t:h(W,n,i))){y(e.key,eg())||(0,u.stopEvent)(e),x.setOpen(!1,(0,p.createChangeEventDetails)(m.REASONS.listNavigation,e.nativeEvent)),(0,r.isHTMLElement)(k)&&(j?K?.events.emit("virtualfocus",k):k.focus());return}let a=Z.current,o=(0,c.getMinListIndex)(S,D),l=(0,c.getMaxListIndex)(S,D);if(U||("Home"===e.key&&((0,u.stopEvent)(e),Z.current=o,ee(e)),"End"===e.key&&((0,u.stopEvent)(e),Z.current=l,ee(e))),F>1){let t=Array.from({length:S.current.length},()=>({width:1,height:1})),r=(0,c.createGridCellMap)(t,F,!1),n=r.findIndex(e=>null!=e&&!(0,c.isListIndexDisabled)(S.current,e,D)),i=r.reduce((e,t,r)=>null==t||(0,c.isListIndexDisabled)(S.current,t,D)?e:r,-1),a=r[(0,c.getGridNavigatedIndex)(r.map(e=>null!=e?S.current[e]:null),{event:e,orientation:W,loopFocus:M,rtl:I,cols:F,disabledIndices:(0,c.getGridCellIndices)([...("function"!=typeof D?D:null)||S.current.map((e,t)=>(0,c.isListIndexDisabled)(S.current,t,D)?t:void 0),void 0],r),minIndex:n,maxIndex:i,prevIndex:(0,c.getGridCellIndexOfCorner)(Z.current>l?o:Z.current,t,r,F,e.key===g.ARROW_DOWN?"bl":e.key===(I?g.ARROW_LEFT:g.ARROW_RIGHT)?"tr":"tl"),stopEvent:!0})];if(null!=a&&(Z.current=a,ee(e)),"both"===W)return}if(y(e.key,W)){if((0,u.stopEvent)(e),T&&!j&&(0,s.activeElement)(e.currentTarget.ownerDocument)===e.currentTarget){Z.current=v(e.key,W,I)?o:l,ee(e);return}v(e.key,W,I)?M?a>=l?_&&a!==S.current.length?Z.current=-1:(ei.current=!1,Z.current=o):Z.current=(0,c.findNonDisabledListIndex)(S.current,{startingIndex:a,disabledIndices:D}):Z.current=Math.min(l,(0,c.findNonDisabledListIndex)(S.current,{startingIndex:a,disabledIndices:D})):M?a<=o?_&&-1!==a?Z.current=S.current.length:(ei.current=!1,Z.current=l):Z.current=(0,c.findNonDisabledListIndex)(S.current,{startingIndex:a,decrement:!0,disabledIndices:D}):Z.current=Math.max(o,(0,c.findNonDisabledListIndex)(S.current,{startingIndex:a,decrement:!0,disabledIndices:D})),(0,c.isIndexOutOfListBounds)(S.current,Z.current)&&(Z.current=-1),ee(e)}}),ey=t.useMemo(()=>j&&T&&ep&&{"aria-activedescendant":`${q}-${w}`},[j,T,ep,q,w]),ev=t.useMemo(()=>({"aria-orientation":"both"===W?void 0:W,...!U?ey:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&T&&!j){let t=(0,s.getTarget)(e.nativeEvent);if(t&&!(0,s.contains)(B.current,t))return;(0,u.stopEvent)(e),x.setOpen(!1,(0,p.createChangeEventDetails)(m.REASONS.focusOut,e.nativeEvent)),(0,r.isHTMLElement)(k)&&k.focus();return}eh(e)},onPointerMove(){J.current=!0}}),[ey,eh,B,W,U,x,T,j,k]),eb=t.useMemo(()=>{function e(e){"auto"===A&&(0,u.isVirtualClick)(e.nativeEvent)&&(Y.current=!j)}function t(e){Y.current=A,"auto"===A&&(0,u.isVirtualPointerEvent)(e.nativeEvent)&&(Y.current=!0)}return{onKeyDown(e){var t,r;let n=x.select("open");J.current=!1;let i=e.key.startsWith("Arrow"),a=(t=e.key,r=eg(),h(r,I?t===g.ARROW_LEFT:t===g.ARROW_RIGHT,t===g.ARROW_DOWN)),o=y(e.key,W),s=(C?a:o)||"Enter"===e.key||""===e.key.trim();if(j&&n)return eh(e);if(n||L||!i){if(s){let t=y(e.key,eg());X.current=C&&t?null:e.key}if(C){a&&((0,u.stopEvent)(e),n?(Z.current=(0,c.getMinListIndex)(S,es.current),ee(e)):x.setOpen(!0,(0,p.createChangeEventDetails)(m.REASONS.listNavigation,e.nativeEvent,e.currentTarget)));return}o&&(null!=eu.current&&(Z.current=eu.current),(0,u.stopEvent)(e),!n&&L?x.setOpen(!0,(0,p.createChangeEventDetails)(m.REASONS.listNavigation,e.nativeEvent,e.currentTarget)):eh(e),n&&ee(e))}},onFocus(e){x.select("open")&&!j&&(Z.current=-1,ee(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[eh,es,A,S,C,ee,x,L,W,eg,I,eu,j]),ex=t.useMemo(()=>({...ey,...eb}),[ey,eb]);return t.useMemo(()=>R?{reference:ex,floating:ev,item:ef,trigger:eb}:{},[R,ex,ev,eb,ef])}],512357);var b=e.i(671695);e.s(["useTypeahead",0,function(e,r){let n="rootStore"in e?e.rootStore:e,o=n.context.dataRef,l=n.useState("open"),{listRef:d,elementsRef:p,activeIndex:m,onMatch:f,onTypingChange:g,enabled:h=!0,resetMs:y=750,selectedIndex:v=null}=r,x=(0,b.useTimeout)(),T=t.useRef(""),E=t.useRef(v??m??-1),k=t.useRef(null);(0,a.useIsoLayoutEffect)(()=>{(l||null===v)&&(x.clear(),k.current=null,""!==T.current&&(T.current=""))},[l,v,x]),(0,a.useIsoLayoutEffect)(()=>{l&&""===T.current&&(E.current=v??m??-1)},[l,v,m]);let O=(0,i.useStableCallback)(e=>{e?o.current.typing||(o.current.typing=e,g?.(e)):o.current.typing&&(o.current.typing=e,g?.(e))}),S=(0,i.useStableCallback)(e=>{function t(e,r,n=0){if(0===e.length)return -1;let i=(n%e.length+e.length)%e.length,a=r.toLocaleLowerCase();for(let t=0;t0&&" "===e.key&&((0,u.stopEvent)(e),O(!0)),T.current.length>0&&" "!==T.current[0]&&-1===t(r,T.current)&&" "!==e.key&&O(!1),null==r||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;l&&" "!==e.key&&((0,u.stopEvent)(e),O(!0));let n=""===T.current;n&&(E.current=v??m??-1),r.every(e=>!e||e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase())&&T.current===e.key&&(T.current="",E.current=k.current),T.current+=e.key,x.start(y,()=>{T.current="",E.current=k.current,O(!1)});let i=n?v??m??-1:E.current,a=t(r,T.current,(i??0)+1);-1!==a?(f?.(a),k.current=a):" "!==e.key&&(T.current="",O(!1))}),w=(0,i.useStableCallback)(e=>{let t=e.relatedTarget,r=n.select("domReferenceElement"),i=n.select("floatingElement"),a=(0,s.contains)(r,t),o=(0,s.contains)(i,t);a||o||(x.clear(),T.current="",E.current=k.current,O(!1))}),z=t.useMemo(()=>({onKeyDown:S,onBlur:w}),[S,w]),R=t.useMemo(()=>({onKeyDown:S,onBlur:w}),[S,w]);return t.useMemo(()=>h?{reference:z,floating:R}:{},[h,z,R])}],741485);var x=e.i(281085);e.s(["getPseudoElementBounds",0,function(e){let t=e.getBoundingClientRect(),r=(0,x.ownerWindow)(e),n=r.getComputedStyle(e,"::before"),i=r.getComputedStyle(e,"::after");if("none"===n.content&&"none"===i.content)return t;let a=parseFloat(n.width)||0,o=parseFloat(n.height)||0,s=parseFloat(i.width)||0,l=parseFloat(i.height)||0,u=Math.max(t.width,a,s),c=Math.max(t.height,o,l),d=u-t.width,p=c-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-p/2,bottom:t.bottom+p/2}}],58115)},897464,e=>{"use strict";var t=e.i(270401),r=e.i(361409),n=e.i(761073);e.s(["useRegisterFieldControl",0,function(e,i){let{enabled:a=!0,getValue:o,id:s,value:l}=i,{registerFieldControl:u}=(0,n.useFieldRootContext)(),c=t.useRef(null);c.current||(c.current=Symbol()),(0,r.useIsoLayoutEffect)(()=>{let t=c.current;if(t&&a)return u(t,{controlRef:e,getValue:o,id:s,value:l}),()=>{u(t,void 0)}},[e,a,o,s,u,l])}])},761073,391699,e=>{"use strict";var t,r=e.i(397744),n=e.i(270401),i=e.i(618568);let a=((t={}).disabled="data-disabled",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t),o={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},s={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},l={disabled:!1,...s};e.s(["DEFAULT_FIELD_ROOT_STATE",0,l,"DEFAULT_FIELD_STATE_ATTRIBUTES",0,s,"DEFAULT_VALIDITY_STATE",0,o,"fieldValidityMapping",0,{valid:e=>null===e?null:e?{[a.valid]:""}:{[a.invalid]:""}}],391699);let u=n.createContext({invalid:void 0,name:void 0,validityData:{state:o,errors:[],error:"",value:"",initialValue:null},setValidityData:i.NOOP,disabled:void 0,touched:s.touched,setTouched:i.NOOP,dirty:s.dirty,setDirty:i.NOOP,filled:s.filled,setFilled:i.NOOP,focused:s.focused,setFocused:i.NOOP,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:l,markedDirtyRef:{current:!1},registerFieldControl:i.NOOP,validation:{getValidationProps:(e=i.EMPTY_OBJECT)=>e,getInputValidationProps:(e=i.EMPTY_OBJECT)=>e,inputRef:{current:null},commit:async()=>{}}});e.s(["useFieldRootContext",0,function(e=!0){let t=n.useContext(u);if(t.setValidityData===i.NOOP&&!e)throw Error((0,r.default)(28));return t}],761073)},965358,e=>{"use strict";var t=e.i(270401),r=e.i(618568);let n=t.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:r.NOOP,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});e.s(["useFormContext",0,function(){return t.useContext(n)}])},231152,e=>{"use strict";var t=e.i(270401),r=e.i(618568);let n=t.createContext({controlId:void 0,registerControlId:r.NOOP,labelId:void 0,setLabelId:r.NOOP,messageIds:[],setMessageIds:r.NOOP,getDescriptionProps:e=>e});e.s(["useLabelableContext",0,function(){return t.useContext(n)}])},435848,e=>{"use strict";var t=e.i(270401),r=e.i(361409),n=e.i(228876),i=e.i(836033),a=e.i(120102),o=e.i(618568),s=e.i(593478),l=e.i(231152);e.s(["useLabelableId",0,function(e={}){let{id:u,implicit:c=!1,controlRef:d}=e,{controlId:p,registerControlId:m}=(0,l.useLabelableContext)(),f=(0,s.useBaseUiId)(u),g=c?p:void 0,h=(0,i.useRefWithInit)(()=>Symbol("labelable-control")),y=t.useRef(!1),v=t.useRef(null!=u),b=(0,n.useStableCallback)(()=>{y.current&&m!==o.NOOP&&(y.current=!1,m(h.current,void 0))});return(0,r.useIsoLayoutEffect)(()=>{let e;if(m!==o.NOOP){if(c){let t=d?.current;e=(0,a.isElement)(t)&&null!=t.closest("label")?u??null:g??f}else if(null!=u)v.current=!0,e=u;else{if(!v.current)return void b();e=f}if(void 0===e)return void b();y.current=!0,m(h.current,e)}},[u,d,g,m,c,f,h,b]),t.useEffect(()=>b,[b]),p??f}])},39285,e=>{"use strict";e.s(["serializeValue",0,function(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}])},540427,e=>{"use strict";var t=e.i(270401),r=e.i(281334);let n=t.forwardRef(function(e,t){let{className:n,render:i,orientation:a="horizontal",style:o,...s}=e;return(0,r.useRenderElement)("div",e,{state:{orientation:a},ref:t,props:[{role:"separator","aria-orientation":a},s]})});e.s(["Separator",0,n])},777246,e=>{"use strict";var t=e.i(397744),r=e.i(270401);let n=r.createContext(void 0);e.s(["useToolbarRootContext",0,function(e){let i=r.useContext(n);if(void 0===i&&!e)throw Error((0,t.default)(69));return i}])},922651,e=>{"use strict";var t=e.i(270401),r=e.i(192291),n=e.i(987950),i=e.i(361409);e.s(["useAnchoredPopupScrollLock",0,function(e,a,o,s){let[l,u]=t.useState(!1);(0,i.useIsoLayoutEffect)(()=>{if(!e||!a||null==o)return void u(!1);let t=(0,r.ownerDocument)(o).documentElement.clientWidth,n=o.offsetWidth;u(t>0&&n>0&&n>=t-20)},[e,a,o]),(0,n.useScrollLock)(e&&(!a||l),s)}])},210761,e=>{"use strict";var t=e.i(361409),r=e.i(593478);e.s(["useRegisteredLabelId",0,function(e,n){let i=(0,r.useBaseUiId)(e);return(0,t.useIsoLayoutEffect)(()=>(n(i),()=>{n(void 0)}),[i,n]),i}])},109917,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))});e.s(["ArrowPathIcon",0,r],109917)},619147,e=>{"use strict";var t=e.i(270401),r=e.i(34167),n=e.i(995254),i=e.i(614099),a=e.i(450740);function o(e,t){let r=new Set(t);return e.filter(e=>!r.has(e))}var s=class extends i.Subscribable{#e;#t;#r;#n;#i;#a;#o;#s;#l;#u=[];constructor(e,t,r){super(),this.#e=e,this.#n=r,this.#r=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#i.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#r=e,this.#n=t,r.notifyManager.batch(()=>{let e=this.#i,t=this.#d(this.#r);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let r=t.map(e=>e.observer),n=r.map(e=>e.getCurrentResult()),i=e.length!==r.length,s=r.some((t,r)=>t!==e[r]),l=i||s,u=!!l||n.some((e,t)=>{let r=this.#t[t];return!r||!(0,a.shallowEqualObjects)(e,r)});(l||u)&&(l&&(this.#u=t,this.#i=r),this.#t=n,this.hasListeners()&&(l&&(o(e,r).forEach(e=>{e.destroy()}),o(r,e).forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})),this.#p()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let r=this.#d(e),n=r.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=r.map(e=>e.defaultedQueryOptions.queryHash);return[n,e=>this.#m(e??n,t,i),()=>this.#f(n,r)]}#f(e,t){return t.map((r,n)=>{let i=e[n];return r.defaultedQueryOptions.notifyOnChangeProps?i:r.observer.trackResult(i,e=>{t.forEach(t=>{t.observer.trackProp(e)})})})}#m(e,t,r){if(t){let n=this.#l,i=void 0!==r&&void 0!==n&&(n.length!==r.length||r.some((e,t)=>e!==n[t]));return(!this.#a||this.#t!==this.#s||i||t!==this.#o)&&(this.#o=t,this.#s=this.#t,void 0!==r&&(this.#l=r),this.#a=(0,a.replaceEqualDeep)(this.#a,t(e))),this.#a}return e}#g(){return this.#n?.combine!==void 0&&this.#i.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#d(e){let t=new Map;this.#i.forEach(e=>{let r=e.options.queryHash;if(!r)return;let n=t.get(r);n?n.push(e):t.set(r,[e])});let r=[];return e.forEach(e=>{let i=this.#e.defaultQueryOptions(e),a=t.get(i.queryHash)?.shift()??new n.QueryObserver(this.#e,i);r.push({defaultedQueryOptions:i,observer:a})}),r}#c(e,t){let r=this.#i.indexOf(e);if(-1!==r){var n;let e;this.#t=(n=this.#t,(e=n.slice(0))[r]=t,e),this.#p()}}#p(){if(this.hasListeners()){let e=this.#f(this.#t,this.#u),t=this.#g(),n=this.#a,i=t?n:this.#m(e,this.#n?.combine);(t||n!==i)&&r.notifyManager.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},l=e.i(695707),u=e.i(365698),c=e.i(750660),d=e.i(695268),p=e.i(508365);e.s(["useQueries",0,function({queries:e,...i},o){let m=(0,l.useQueryClient)(o),f=(0,u.useIsRestoring)(),g=(0,c.useQueryErrorResetBoundary)(),h=t.useMemo(()=>e.map(e=>{let t=m.defaultQueryOptions(e);return t._optimisticResults=f?"isRestoring":"optimistic",t}),[e,m,f]);h.forEach(e=>{(0,p.ensureSuspenseTimers)(e);let t=m.getQueryCache().get(e.queryHash);(0,d.ensurePreventErrorBoundaryRetry)(e,g,t)}),(0,d.useClearResetErrorBoundary)(g);let[y]=t.useState(()=>new s(m,h,i)),[v,b,x]=y.getOptimisticResult(h,i.combine),T=!f&&!1!==i.subscribed;t.useSyncExternalStore(t.useCallback(e=>T?y.subscribe(r.notifyManager.batchCalls(e)):a.noop,[y,T]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),t.useEffect(()=>{y.setQueries(h,i)},[h,i,y]);let E=v.some((e,t)=>(0,p.shouldSuspend)(h[t],e))?v.flatMap((e,t)=>{let r=h[t];if(r&&(0,p.shouldSuspend)(r,e)){let e=new n.QueryObserver(m,r);return(0,p.fetchOptimistic)(r,e,g)}return[]}):[];if(E.length>0)throw Promise.all(E);let k=v.find((e,t)=>{let r=h[t];return r&&(0,d.getHasError)({result:e,errorResetBoundary:g,throwOnError:r.throwOnError,query:m.getQueryCache().get(r.queryHash),suspense:r.suspense})});if(k?.error)throw k.error;return b(x())}],619147)},746751,e=>{"use strict";let t=(0,e.i(202913).default)("audio-lines",[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]]);e.s(["AudioLines",0,t],746751)},505987,e=>{"use strict";let t=(0,e.i(202913).default)("boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);e.s(["Boxes",0,t],505987)},607296,e=>{"use strict";let t=(0,e.i(202913).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,t],607296)},479937,e=>{"use strict";let t=(0,e.i(202913).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);e.s(["default",0,t])},477986,e=>{"use strict";var t=e.i(479937);e.s(["ChevronUp",()=>t.default])},890136,e=>{"use strict";let t=(0,e.i(202913).default)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);e.s(["Image",0,t],890136)},218812,e=>{"use strict";let t=(0,e.i(202913).default)("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);e.s(["Mic",0,t],218812)},145891,e=>{"use strict";let t=(0,e.i(202913).default)("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);e.s(["Pause",0,t],145891)},197070,e=>{"use strict";let t=(0,e.i(202913).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",0,t],197070)},334471,e=>{"use strict";let t=(0,e.i(202913).default)("speech",[["path",{d:"M8.8 20v-4.1l1.9.2a2.3 2.3 0 0 0 2.164-2.1V8.3A5.37 5.37 0 0 0 2 8.25c0 2.8.656 3.054 1 4.55a5.77 5.77 0 0 1 .029 2.758L2 20",key:"11atix"}],["path",{d:"M19.8 17.8a7.5 7.5 0 0 0 .003-10.603",key:"yol142"}],["path",{d:"M17 15a3.5 3.5 0 0 0-.025-4.975",key:"ssbmkc"}]]);e.s(["Speech",0,t],334471)},353287,e=>{"use strict";let t=(0,e.i(202913).default)("type",[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]]);e.s(["Type",0,t],353287)},913767,e=>{"use strict";let t=(0,e.i(202913).default)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);e.s(["Video",0,t],913767)},450713,e=>{"use strict";var t=e.i(270401);function r(e){let t;return"string"==typeof e&&"%"===e[e.length-1]&&!isNaN(t=parseFloat(e.substring(0,e.length-1)))&&isFinite(t)}function n(e,t,r){0===t&&!r&&(null==e?void 0:e.style)&&(null==e?void 0:e.children.length)>0&&(e.style.display="none")}let i={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"};function a(e,t){return[e.static,0===t&&e.staticHeightZero,"number"==typeof t&&t>0?e.staticHeightSpecific:null,"auto"===t&&e.staticHeightAuto].filter(e=>e).join(" ")}let o=["animateOpacity","animationStateClasses","applyInlineTransitions","children","className","contentClassName","contentRef","delay","duration","easing","height","onHeightAnimationEnd","onHeightAnimationStart","style","disableDisplayNone"],s=t.default.forwardRef((e,s)=>{let{animateOpacity:l=!1,animationStateClasses:u={},applyInlineTransitions:c=!0,children:d,className:p="",contentClassName:m,delay:f=0,disableDisplayNone:g=!1,duration:h=500,easing:y="ease",height:v,onHeightAnimationEnd:b,onHeightAnimationStart:x,style:T,contentRef:E}=e,k=Object.assign({},e);o.forEach(e=>{delete k[e]});let O=(0,t.useRef)(v),S=(0,t.useRef)(null),w=(0,t.useRef)(),z=(0,t.useRef)(),R=(0,t.useRef)(Object.assign(Object.assign({},i),u)),P="u">typeof window,_=(0,t.useRef)(!!P&&!!window.matchMedia&&window.matchMedia("(prefers-reduced-motion)").matches),M=_.current?0:f,C=_.current?0:h,I=v,j="visible";"number"==typeof v?(I=v<0?0:v,j="hidden"):r(I)&&(I="0%"===v?0:v,j="hidden");let[A,N]=(0,t.useState)(I),[L,D]=(0,t.useState)(j),[W,V]=(0,t.useState)(!1),[F,q]=(0,t.useState)(a(R.current,v));(0,t.useEffect)(()=>{n(S.current,A,g)},[]),(0,t.useEffect)(()=>{if(v!==O.current&&S.current){var e;let t,i;e=S.current,0===O.current&&(null==e?void 0:e.style)&&(e.style.display=""),S.current.style.overflow="hidden";let o=S.current.offsetHeight;S.current.style.overflow="";let s=C+M,l="hidden",u="auto"===O.current;"number"==typeof v?i=t=v<0?0:v:r(v)?i=t="0%"===v?0:v:(t=o,i="auto",l=void 0),u&&(i=t,t=o);let c=[R.current.animating,("auto"===O.current||vO.current)&&R.current.animatingDown,0===i&&R.current.animatingToHeightZero,"auto"===i&&R.current.animatingToHeightAuto,"number"==typeof i&&i>0?R.current.animatingToHeightSpecific:null].filter(e=>e).join(" "),d=a(R.current,i);N(t),D("hidden"),V(!u),q(c),clearTimeout(z.current),clearTimeout(w.current),u?(z.current=setTimeout(()=>{N(i),D(l),V(!0),null==x||x(i)},50),w.current=setTimeout(()=>{V(!1),q(d),n(S.current,i,g),null==b||b(i)},s)):(null==x||x(t),z.current=setTimeout(()=>{N(i),D(l),V(!1),q(d),"auto"!==v&&n(S.current,t,g),null==b||b(t)},s))}return O.current=v,()=>{clearTimeout(z.current),clearTimeout(w.current)}},[v]);let G=Object.assign(Object.assign({},T),{height:A,overflow:L||(null==T?void 0:T.overflow)});W&&c&&(G.transition=`height ${C}ms ${y} ${M}ms`,(null==T?void 0:T.transition)&&(G.transition=`${T.transition}, ${G.transition}`),G.WebkitTransition=G.transition);let H={};l&&(H.transition=`opacity ${C}ms ${y} ${M}ms`,H.WebkitTransition=H.transition,0===A&&(H.opacity=0));let $=void 0!==k["aria-hidden"]?k["aria-hidden"]:0===v;return t.default.createElement("div",Object.assign({},k,{"aria-hidden":$,className:`${F} ${p}`,style:G,ref:s}),t.default.createElement("div",{className:m,style:H,ref:e=>{S.current=e,E&&(E.current=e)}},d))});e.s(["default",0,s])},179019,e=>{"use strict";var t=e.i(270401),r=e.i(214857),n=e.i(745578),i=t,a=e.i(470733),o=e.i(108184),s=e.i(211260),l=e.i(282545);function u(){return(u=Object.assign.bind()).apply(null,arguments)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class p extends i.PureComponent{renderIcon(e,t){var{inactiveColor:r}=this.props,n=32/6,a=32/3,o=e.inactive?r:e.color,l=null!=t?t:e.type;if("none"===l)return null;if("plainline"===l)return i.createElement("line",{strokeWidth:4,fill:"none",stroke:o,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:16,x2:32,y2:16,className:"recharts-legend-icon"});if("line"===l)return i.createElement("path",{strokeWidth:4,fill:"none",stroke:o,d:"M0,".concat(16,"h").concat(a,"\n A").concat(n,",").concat(n,",0,1,1,").concat(2*a,",").concat(16,"\n H").concat(32,"M").concat(2*a,",").concat(16,"\n A").concat(n,",").concat(n,",0,1,1,").concat(a,",").concat(16),className:"recharts-legend-icon"});if("rect"===l)return i.createElement("path",{stroke:"none",fill:o,d:"M0,".concat(4,"h").concat(32,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(i.isValidElement(e.legendIcon)){var u=function(e){for(var t=1;t{var f=e.formatter||n,g=(0,a.clsx)({"recharts-legend-item":!0,["legend-item-".concat(r)]:!0,inactive:e.inactive});if("none"===e.type)return null;var h=e.inactive?s:e.color,y=f?f(e.value,e,r):e.value;return i.createElement("li",u({className:g,style:p,key:"legend-item-".concat(r)},(0,l.adaptEventsOfChild)(this.props,e,r)),i.createElement(o.Surface,{width:t,height:t,viewBox:d,style:m,"aria-label":"".concat(y," legend icon")},this.renderIcon(e,c)),i.createElement("span",{className:"recharts-legend-item-text",style:{color:h}},y))})}render(){var{payload:e,layout:t,align:r}=this.props;return e&&e.length?i.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===t?r:"left"}},this.renderItems()):null}}d(p,"displayName","Legend"),d(p,"defaultProps",{align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"});var m=e.i(320012),f=e.i(329643),g=e.i(557059),h=e.i(425025),y=e.i(305651),v=e.i(48378),b=e.i(293848),x=["contextPayload"];function T(){return(T=Object.assign.bind()).apply(null,arguments)}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function k(e){for(var t=1;t{r((0,b.setLegendSettings)(e))},[r,e]),null}function R(e){var r=(0,g.useAppDispatch)();return(0,t.useEffect)(()=>(r((0,b.setLegendSize)(e)),()=>{r((0,b.setLegendSize)({width:0,height:0}))}),[r,e]),null}function P(e){var i=(0,g.useAppSelector)(h.selectLegendPayload),a=(0,n.useLegendPortal)(),o=(0,v.useMargin)(),{width:s,height:l,wrapperStyle:u,portal:c}=e,[d,p]=(0,y.useElementOffset)([i]),m=(0,v.useChartWidth)(),f=(0,v.useChartHeight)();if(null==m||null==f)return null;var b=m-(o.left||0)-(o.right||0),x=_.getWidthOrHeight(e.layout,l,s,b),E=c?u:k(k({position:"absolute",width:(null==x?void 0:x.width)||s||"auto",height:(null==x?void 0:x.height)||l||"auto"},function(e,t,r,n,i,a){var o,s,{layout:l,align:u,verticalAlign:c}=t;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(o="center"===u&&"vertical"===l?{left:((n||0)-a.width)/2}:"right"===u?{right:r&&r.right||0}:{left:r&&r.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(s="middle"===c?{top:((i||0)-a.height)/2}:"bottom"===c?{bottom:r&&r.bottom||0}:{top:r&&r.top||0}),k(k({},o),s)}(u,e,o,m,f,d)),u),O=null!=c?c:a;if(null==O)return null;var S=t.createElement("div",{className:"recharts-legend-wrapper",style:E,ref:p},t.createElement(z,{layout:e.layout,align:e.align,verticalAlign:e.verticalAlign,itemSorter:e.itemSorter}),t.createElement(R,{width:d.width,height:d.height}),t.createElement(w,T({},e,x,{margin:o,chartWidth:m,chartHeight:f,contextPayload:i})));return(0,r.createPortal)(S,O)}class _ extends t.PureComponent{static getWidthOrHeight(e,t,r,n){return"vertical"===e&&(0,m.isNumber)(t)?{height:t}:"horizontal"===e?{width:r||n}:null}render(){return t.createElement(P,this.props)}}O(_,"displayName","Legend"),O(_,"defaultProps",{align:"center",iconSize:14,itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"}),e.s(["Legend",0,_],179019)},581603,e=>{"use strict";e.i(204067);var t=e.i(796805);let r={TextGeneration:"text_generation",ImageGeneration:"image_generation",VideoGeneration:"video_generation",Embeddings:"embeddings",Rerank:"rerank",TTS:"tts",STT:"stt",Unknown:"unknown"};t.z.enum([r.TextGeneration,r.ImageGeneration,r.VideoGeneration,r.Embeddings,r.Rerank,r.TTS,r.STT,r.Unknown]),r.TextGeneration,e.s(["PerfWorkload",0,r])},543092,e=>{"use strict";e.i(963);var t=e.i(204067),r=e.i(796805);let n={Image:"image",Video:"video",Speech:"speech",Transcription:"transcription",Game:"game"};r.z.union([r.z.nativeEnum(n),r.z.literal("text_image")]);let i=r.z.object({url:r.z.string().url(),media_type:r.z.string(),size_bytes:(0,t.zInt)().nonnegative()}),a=i.extend({thumbnail_url:r.z.string().url().optional(),width:(0,t.zInt)().positive(),height:(0,t.zInt)().positive(),source:i.optional()}),o=i.extend({media_type:r.z.string().startsWith("video/"),thumbnail_url:r.z.string().url().optional(),width:(0,t.zInt)().positive(),height:(0,t.zInt)().positive(),duration_ms:(0,t.zInt)().nonnegative().optional()});r.z.union([o,a]);let s=i.extend({duration_ms:(0,t.zInt)().nonnegative().optional(),sample_rate_hz:(0,t.zInt)().positive().optional(),peaks:r.z.array(r.z.number().min(0).max(1)).optional()});s.extend({transcript:r.z.string(),voice:r.z.string()}),s.extend({transcript:r.z.string(),voice:r.z.string().optional()}),i.extend({media_type:r.z.literal("text/html"),three_version:r.z.string().min(1)}),s.extend({transcript:r.z.string()});let l=i.extend({thumbnail_url:r.z.string().url().optional(),frame_thumbnail_urls:r.z.array(r.z.string().url()).optional(),width:(0,t.zInt)().positive().optional(),height:(0,t.zInt)().positive().optional(),duration_ms:(0,t.zInt)().nonnegative().optional(),sample_rate_hz:(0,t.zInt)().positive().optional(),transcript:r.z.string().optional(),voice:r.z.string().optional(),peaks:r.z.array(r.z.number().min(0).max(1)).optional(),source:i.optional(),three_version:r.z.string().optional()}),u=r.z.array(l);e.s(["ExampleAssetListSchema",0,u,"ModelExampleModality",0,n])},130206,e=>{"use strict";let t={models:{label:"Models Arena",description:"Head-to-head comparison of AI model outputs across modalities",categories:{codecategories:{label:"Code Categories",description:"Aggregated stats across all code generation categories"},"3d":{label:"3D",description:"3D content generation"},dataviz:{label:"Data Visualization",description:"Data visualization generation"},gamedev:{label:"Game Development",description:"Game development code generation"},uicomponent:{label:"UI Component",description:"UI component generation quality"},logo:{label:"Logo",description:"Logo design generation"},image:{label:"Image",description:"Image generation quality"},video:{label:"Video",description:"Video generation quality"},slides:{label:"Slides",description:"Slide/presentation generation"},videotovideo:{label:"Video to Video",description:"Video-to-video transformation quality"},graphicdesign:{label:"Graphic Design",description:"Graphic design generation quality"},imagetoimage:{label:"Image to Image",description:"Image-to-image transformation quality"},svg:{label:"SVG",description:"SVG generation quality"}}},builders:{label:"Builders Arena",description:"Comparison of AI-powered app builders and coding agents",categories:{mobile:{label:"Mobile",description:"AI builder mobile app generation"},"native-android":{label:"Native Android",description:"AI builder native Android app generation"}}},agents:{label:"Agents Arena",description:"Agentic coding workflows evaluated end-to-end",categories:{agon_webapps:{label:"Agon Web Apps",description:"Agon web application development"},mobileapps:{label:"Mobile Apps",description:"Agentic mobile application development"},nativeapps:{label:"Native Apps",description:"Agentic native application development"},fullstack:{label:"Full Stack",description:"Full stack development workflows"}}}},r=["codecategories","uicomponent","gamedev","dataviz","3d","image","video","svg"],n=t.models,i=n?r.map(e=>({type:`da-${e}`,label:`${n.categories[e]?.label??e} ELO`,daKey:`models-${e}`})):[];({...Object.fromEntries(Object.values(t).flatMap(e=>Object.entries(e.categories).map(([e,t])=>[t.label,e]))),"3D Design":"3d","Game Dev":"gamedev"}),e.s(["DA_RANKINGS_CATEGORY_TABS",0,i,"RANKINGS_CATEGORY_KEYS",0,r,"getArenaLabel",0,function(e){return t[e]?.label??e},"getCategoryLabel",0,function(e,r){return t[e]?.categories[r]?.label??r.replaceAll(/\b([a-z])/g,e=>e.toUpperCase())}])},526073,e=>{"use strict";e.s(["ImageAspectRatio",0,{"1:1":"1:1","1:2":"1:2","1:4":"1:4","1:8":"1:8","2:1":"2:1","2:3":"2:3","3:2":"3:2","3:4":"3:4","4:1":"4:1","4:3":"4:3","4:5":"4:5","5:4":"5:4","8:1":"8:1","9:16":"9:16","16:9":"16:9","9:19.5":"9:19.5","19.5:9":"19.5:9","9:20":"9:20","20:9":"20:9","9:21":"9:21","21:9":"21:9",auto:"auto"},"ImageGenerationResolution",0,{512:"512","1K":"1K","2K":"2K","4K":"4K"},"ImageQuality",0,{auto:"auto",low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:"max"}])},182657,e=>{"use strict";e.s(["QuickStartExampleType",0,{Text:"text",ComputerUseTool:"computer_use_tool",AudioTool:"audio_tool",AudioOutput:"audio_output",FastApply:"fast_apply",Embeddings:"embeddings",ImageInputEmbeddings:"image_input_embeddings",Reasoning:"reasoning",ImageGeneration:"image_generation",ImageGenerationWithoutText:"image_generation_without_text",VideoGeneration:"video_generation",Rerank:"rerank",TTS:"tts",STT:"stt",STTMaiTranscribe:"stt_mai_transcribe",OCR:"ocr"}])},13589,e=>{"use strict";let t={Default:"default",Flex:"flex",Priority:"priority"},r={Flex:t.Flex,Priority:t.Priority};t.Priority;let n={Flex:r.Flex,Priority:r.Priority,Fast:"fast"};function i(e){return e===n.Fast?r.Priority:e}n.Flex,n.Priority,n.Fast,t.Default,t.Default,t.Priority,t.Default,e.s(["NonDefaultServiceTier",0,r,"OpenRouterServiceTier",0,t,"ServiceTierSpelling",0,n,"canonicalizeServiceTierSpelling",0,i,"getServiceTierSpellings",0,function(e){return Object.values(n).filter(t=>i(t)===e)}])},475968,e=>{"use strict";e.s(["VideoAspectRatio",0,{"16:9":"16:9","9:16":"9:16","1:1":"1:1","4:3":"4:3","3:4":"3:4","3:2":"3:2","2:3":"2:3","21:9":"21:9","9:21":"9:21"},"VideoFrameType",0,{first_frame:"first_frame",last_frame:"last_frame"},"VideoGenerationResolution",0,{"480p":"480p","720p":"720p","768p":"768p","1080p":"1080p","1K":"1K","2K":"2K","4K":"4K"},"VideoSize",0,{"480x480":"480x480","480x640":"480x640","480x720":"480x720","480x854":"480x854","480x1120":"480x1120","560x752":"560x752","640x480":"640x480","640x640":"640x640","720x480":"720x480","720x720":"720x720","720x960":"720x960","720x1080":"720x1080","720x1280":"720x1280","720x1680":"720x1680","752x560":"752x560","768x768":"768x768","768x1024":"768x1024","768x1152":"768x1152","768x1366":"768x1366","768x1792":"768x1792","834x1112":"834x1112","854x480":"854x480","960x720":"960x720","960x960":"960x960","992x432":"992x432","1024x768":"1024x768","1080x720":"1080x720","1080x1080":"1080x1080","1080x1440":"1080x1440","1080x1620":"1080x1620","1080x1920":"1080x1920","1080x2520":"1080x2520","1112x834":"1112x834","1120x480":"1120x480","1152x768":"1152x768","1280x720":"1280x720","1366x768":"1366x768","1440x1080":"1440x1080","1440x1440":"1440x1440","1440x1920":"1440x1920","1440x2160":"1440x2160","1440x2560":"1440x2560","1440x3360":"1440x3360","1470x630":"1470x630","1620x1080":"1620x1080","1680x720":"1680x720","1792x768":"1792x768","1920x1080":"1920x1080","1920x1440":"1920x1440","2160x1440":"2160x1440","2160x2160":"2160x2160","2160x2880":"2160x2880","2160x3240":"2160x3240","2160x3840":"2160x3840","2160x5040":"2160x5040","2520x1080":"2520x1080","2560x1440":"2560x1440","2880x2160":"2880x2160","3240x2160":"3240x2160","3360x1440":"3360x1440","3840x2160":"3840x2160","5040x2160":"5040x2160"}])},130868,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473),i=e.i(201459),a=e.i(145891),o=e.i(197070),s=e.i(270401),l=e.i(528164);let u=(0,s.createContext)(null),c=(0,s.createContext)(null);function d(){return(0,s.useContext)(u)}function p(){return(0,s.useContext)(c)}function m({audioProps:e,children:r,src:n}){let i=(0,s.useRef)(null),a=(0,s.useRef)(null),[o,l]=(0,s.useState)(),[d,p]=(0,s.useState)(null),[f,g]=(0,s.useState)(0),[h,y]=(0,s.useState)(!0),[v,b]=(0,s.useState)(0),[x,T]=(0,s.useState)(0),E=(0,s.useCallback)(async()=>{let e=i.current;if(!e)return;if(a.current)try{await a.current}catch{}finally{a.current=null}let t=e.play();a.current=t;try{await t}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return;throw e}finally{a.current=null}},[]),k=(0,s.useCallback)(()=>{i.current?.pause()},[]),O=(0,s.useCallback)(e=>{let t=i.current;if(!t||void 0===o||!Number.isFinite(o))return;let r=Math.max(0,Math.min(e,o));t.currentTime=r,T(r)},[o]);(0,s.useEffect)(()=>{let e=i.current;e&&(l(void 0),p(null),g(e.networkState),y(!0),b(e.readyState),T(0),e.load())},[n]),(0,s.useEffect)(()=>{let e=i.current;if(!e)return;let t=()=>{g(e.networkState),b(e.readyState)},r=()=>{l(e.duration)},n=()=>{p(e.error)},a=()=>{y(!0)},o=()=>{y(!1)},s=()=>{T(e.currentTime)};return e.addEventListener("canplay",t),e.addEventListener("durationchange",r),e.addEventListener("ended",a),e.addEventListener("error",n),e.addEventListener("loadedmetadata",r),e.addEventListener("loadstart",t),e.addEventListener("pause",a),e.addEventListener("play",o),e.addEventListener("playing",t),e.addEventListener("timeupdate",s),e.addEventListener("waiting",t),()=>{e.removeEventListener("canplay",t),e.removeEventListener("durationchange",r),e.removeEventListener("ended",a),e.removeEventListener("error",n),e.removeEventListener("loadedmetadata",r),e.removeEventListener("loadstart",t),e.removeEventListener("pause",a),e.removeEventListener("play",o),e.removeEventListener("playing",t),e.removeEventListener("timeupdate",s),e.removeEventListener("waiting",t)}},[]);let S=!h,w=v<3&&2===f,z=(0,s.useMemo)(()=>({duration:o,error:d,isBuffering:w,isPlaying:S,pause:k,play:E,ref:i,seek:O}),[o,d,w,S,k,E,O]);return(0,t.jsx)(u.Provider,{value:z,children:(0,t.jsxs)(c.Provider,{value:x,children:[(0,t.jsx)("audio",{ref:i,src:n,className:"hidden",preload:"metadata",...e}),r]})})}function f(e){let s,u,c,p,m,f,g,h,y,v,b,x,T=(0,r.c)(30);T[0]!==e?({children:s,className:u,isLoading:c,size:m,type:f,variant:g,...p}=e,T[0]=e,T[1]=s,T[2]=u,T[3]=c,T[4]=p,T[5]=m,T[6]=f,T[7]=g):(s=T[1],u=T[2],c=T[3],p=T[4],m=T[5],f=T[6],g=T[7]);let E=void 0===m?"icon":m,k=void 0===f?"button":f,O=void 0===g?"outline":g,S=d();if(!S)return null;let w=c??S.isBuffering;T[8]!==S.isPlaying?(h=S.isPlaying?(0,t.jsx)(a.Pause,{}):(0,t.jsx)(o.Play,{}),T[8]=S.isPlaying,T[9]=h):h=T[9];let z=h,R=w||void 0,P=S.isPlaying?"Pause audio":"Play audio";T[10]!==u?(y=(0,n.cn)("shrink-0 rounded-full",u),T[10]=u,T[11]=y):y=T[11];let _=!0===c;return T[12]!==S?(v=()=>{S.isPlaying?S.pause():S.play()},T[12]=S,T[13]=v):v=T[13],T[14]!==s||T[15]!==z||T[16]!==w||T[17]!==c?(b=w&&!0!==c?(0,t.jsx)(i.Loader2,{className:"animate-spin"}):s??z,T[14]=s,T[15]=z,T[16]=w,T[17]=c,T[18]=b):b=T[18],T[19]!==p||T[20]!==E||T[21]!==b||T[22]!==R||T[23]!==P||T[24]!==y||T[25]!==_||T[26]!==v||T[27]!==k||T[28]!==O?(x=(0,t.jsx)(l.Button,{"aria-busy":R,"aria-label":P,className:y,isLoading:_,onClick:v,size:E,type:k,variant:O,...p,children:b}),T[19]=p,T[20]=E,T[21]=b,T[22]=R,T[23]=P,T[24]=y,T[25]=_,T[26]=v,T[27]=k,T[28]=O,T[29]=x):x=T[29],x}function g(e){let i,a,o,l,u,c,m,f,g,y,v,b,x,T,E,k,O,S,w,z,R,P,_,M=(0,r.c)(55);M[0]!==e?({"aria-label":f,className:i,disabled:a,onPointerCancel:o,onPointerDown:l,onPointerUp:u,onValueChange:c,step:g,...m}=e,M[0]=e,M[1]=i,M[2]=a,M[3]=o,M[4]=l,M[5]=u,M[6]=c,M[7]=m,M[8]=f,M[9]=g):(i=M[1],a=M[2],o=M[3],l=M[4],u=M[5],c=M[6],m=M[7],f=M[8],g=M[9]);let C=void 0===f?"Seek audio":f,I=void 0===g?.25:g,j=d(),A=p(),N=(0,s.useRef)(!1),[L,D]=(0,s.useState)(!1),[W,V]=(0,s.useState)(null);if(!j||null===A)return null;let{duration:F}=j;M[10]!==F?(y=void 0!==F&&Number.isFinite(F)&&F>0,M[10]=F,M[11]=y):y=M[11];let q=y,G=L&&null!==W?W:A,H=q?Math.min(100,Math.max(0,G/F*100)):0,$=a||!q;M[12]!==j?(v=()=>{D(!1),V(null),N.current&&j.play().catch(h)},M[12]=j,M[13]=v):v=M[13];let B=v;M[14]!==B||M[15]!==u?(b=e=>{B(),u?.(e)},M[14]=B,M[15]=u,M[16]=b):b=M[16];let Q=b;M[17]!==B||M[18]!==o?(x=e=>{B(),o?.(e)},M[17]=B,M[18]=o,M[19]=x):x=M[19];let K=x;M[20]!==i?(T=(0,n.cn)("group/audio-progress relative flex h-4 min-w-20 flex-1 items-center",i),M[20]=i,M[21]=T):T=M[21],M[22]===Symbol.for("react.memo_cache_sentinel")?(E=(0,t.jsx)("div",{className:"pointer-events-none absolute inset-x-0 h-1 rounded-full bg-secondary"}),M[22]=E):E=M[22];let U=`${H}%`;M[23]!==U?(k=(0,t.jsx)("div",{className:"pointer-events-none absolute left-0 h-1 rounded-full bg-primary","data-allow-inline-style":!0,style:{width:U}}),M[23]=U,M[24]=k):k=M[24];let Y=!$&&"group-hover/audio-progress:opacity-100",Z=!$&&L&&"opacity-100";M[25]!==Y||M[26]!==Z?(O=(0,n.cn)("pointer-events-none absolute size-3 rounded-full bg-foreground opacity-0 shadow-sm transition-opacity",Y,Z),M[25]=Y,M[26]=Z,M[27]=O):O=M[27];let X=`calc(${H}% - 0.375rem)`;M[28]!==X?(S={left:X},M[28]=X,M[29]=S):S=M[29],M[30]!==O||M[31]!==S?(w=(0,t.jsx)("span",{className:O,"data-allow-inline-style":!0,style:S}),M[30]=O,M[31]=S,M[32]=w):w=M[32];let J=q?F:0;return M[33]!==c||M[34]!==j?(z=e=>{let t=e.currentTarget.valueAsNumber;V(t),j.seek(t),c?.(t)},M[33]=c,M[34]=j,M[35]=z):z=M[35],M[36]!==l||M[37]!==j?(R=e=>{N.current=j.isPlaying,D(!0),j.pause(),l?.(e)},M[36]=l,M[37]=j,M[38]=R):R=M[38],M[39]!==C||M[40]!==G||M[41]!==K||M[42]!==Q||M[43]!==$||M[44]!==m||M[45]!==I||M[46]!==J||M[47]!==z||M[48]!==R?(P=(0,t.jsx)("input",{"aria-label":C,className:"absolute inset-0 h-full w-full cursor-pointer appearance-none bg-transparent opacity-0 disabled:cursor-not-allowed",disabled:$,max:J,min:0,onChange:z,onPointerDown:R,onPointerUp:Q,onPointerCancel:K,step:I,type:"range",value:G,...m}),M[39]=C,M[40]=G,M[41]=K,M[42]=Q,M[43]=$,M[44]=m,M[45]=I,M[46]=J,M[47]=z,M[48]=R,M[49]=P):P=M[49],M[50]!==k||M[51]!==w||M[52]!==P||M[53]!==T?(_=(0,t.jsxs)("div",{className:T,children:[E,k,w,P]}),M[50]=k,M[51]=w,M[52]=P,M[53]=T,M[54]=_):_=M[54],_}function h(){}function y(e){let i,a,o,s,l,u=(0,r.c)(11);u[0]!==e?({className:i,...a}=e,u[0]=e,u[1]=i,u[2]=a):(i=u[1],a=u[2]);let c=p();return null===c?null:(u[3]!==i?(o=(0,n.cn)("w-10 text-overline tabular-nums text-muted-foreground",i),u[3]=i,u[4]=o):o=u[4],u[5]!==c?(s=x(c),u[5]=c,u[6]=s):s=u[6],u[7]!==a||u[8]!==o||u[9]!==s?(l=(0,t.jsx)("span",{className:o,...a,children:s}),u[7]=a,u[8]=o,u[9]=s,u[10]=l):l=u[10],l)}function v(e){let i,a,o,s,l,u=(0,r.c)(11);u[0]!==e?({className:i,...a}=e,u[0]=e,u[1]=i,u[2]=a):(i=u[1],a=u[2]);let c=d();if(!c)return null;let{duration:p}=c;return u[3]!==i?(o=(0,n.cn)("w-10 text-right text-overline tabular-nums text-muted-foreground",i),u[3]=i,u[4]=o):o=u[4],u[5]!==p?(s=void 0!==p&&Number.isFinite(p)?x(p):"--:--",u[5]=p,u[6]=s):s=u[6],u[7]!==a||u[8]!==o||u[9]!==s?(l=(0,t.jsx)("span",{className:o,...a,children:s}),u[7]=a,u[8]=o,u[9]=s,u[10]=l):l=u[10],l}function b(e){let i,a,o,s,l,u=(0,r.c)(10);u[0]!==e?({className:i,children:o,...a}=e,u[0]=e,u[1]=i,u[2]=a,u[3]=o):(i=u[1],a=u[2],o=u[3]);let c=void 0===o?"Audio could not be loaded.":o,p=d();return p?.error?(u[4]!==i?(s=(0,n.cn)("text-overline text-negative-text",i),u[4]=i,u[5]=s):s=u[5],u[6]!==c||u[7]!==a||u[8]!==s?(l=(0,t.jsx)("div",{className:s,role:"status",...a,children:c}),u[6]=c,u[7]=a,u[8]=s,u[9]=l):l=u[9],l):null}function x(e){let t=Number.isFinite(e)?Math.max(0,e):0,r=Math.floor(t/3600),n=Math.floor(t%3600/60),i=Math.floor(t%60),a=r>0?n.toString().padStart(2,"0"):n.toString(),o=i.toString().padStart(2,"0");return r>0?`${r}:${a}:${o}`:`${a}:${o}`}e.s(["AudioPlayer",0,function(e){let i,a,o,s,l,u,c,d,p,h,x,T,E=(0,r.c)(24);E[0]!==e?({audioProps:i,children:a,className:o,description:s,metadata:l,src:c,title:d,...u}=e,E[0]=e,E[1]=i,E[2]=a,E[3]=o,E[4]=s,E[5]=l,E[6]=u,E[7]=c,E[8]=d):(i=E[1],a=E[2],o=E[3],s=E[4],l=E[5],u=E[6],c=E[7],d=E[8]);let k=void 0===d?"Audio preview":d;return E[9]!==o?(p=(0,n.cn)("flex w-full items-center gap-3 rounded-lg border border-border bg-card p-3 text-card-foreground shadow-sm",o),E[9]=o,E[10]=p):p=E[10],E[11]!==a||E[12]!==s||E[13]!==l||E[14]!==k?(h=a??(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f,{}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 flex flex-col gap-y-2",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"min-w-0 flex flex-col gap-y-0.5",children:[(0,t.jsx)("div",{className:"truncate text-xs font-medium",children:k}),s&&(0,t.jsx)("div",{className:"truncate text-overline text-muted-foreground",children:s})]}),l&&(0,t.jsx)("div",{className:"shrink-0 text-overline text-muted-foreground",children:l})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(y,{}),(0,t.jsx)(g,{}),(0,t.jsx)(v,{})]}),(0,t.jsx)(b,{})]})]}),E[11]=a,E[12]=s,E[13]=l,E[14]=k,E[15]=h):h=E[15],E[16]!==u||E[17]!==p||E[18]!==h?(x=(0,t.jsx)("div",{className:p,...u,children:h}),E[16]=u,E[17]=p,E[18]=h,E[19]=x):x=E[19],E[20]!==i||E[21]!==c||E[22]!==x?(T=(0,t.jsx)(m,{src:c,audioProps:i,children:x}),E[20]=i,E[21]=c,E[22]=x,E[23]=T):T=E[23],T},"AudioPlayerButton",0,f,"AudioPlayerDuration",0,v,"AudioPlayerProgress",0,g,"AudioPlayerProvider",0,m,"AudioPlayerTime",0,y,"useAudioPlayer",0,d,"useAudioPlayerTime",0,p])},6231,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(734293),i=e.i(452473),a=e.i(379497);e.s(["Breadcrumb",0,function(e){let n,i,a,o=(0,r.c)(6);return o[0]!==e?({className:n,...i}=e,o[0]=e,o[1]=n,o[2]=i):(n=o[1],i=o[2]),o[3]!==n||o[4]!==i?(a=(0,t.jsx)("nav",{"aria-label":"breadcrumb",className:n,...i}),o[3]=n,o[4]=i,o[5]=a):a=o[5],a},"BreadcrumbItem",0,function(e){let n,a,o,s,l=(0,r.c)(8);return l[0]!==e?({className:n,...a}=e,l[0]=e,l[1]=n,l[2]=a):(n=l[1],a=l[2]),l[3]!==n?(o=(0,i.cn)("inline-flex items-center gap-1.5",n),l[3]=n,l[4]=o):o=l[4],l[5]!==a||l[6]!==o?(s=(0,t.jsx)("li",{className:o,...a}),l[5]=a,l[6]=o,l[7]=s):s=l[7],s},"BreadcrumbLink",0,function(e){let t,a,o,s,l,u,c,d=(0,r.c)(14);d[0]!==e?({render:s,children:t,className:a,...o}=e,d[0]=e,d[1]=t,d[2]=a,d[3]=o,d[4]=s):(t=d[1],a=d[2],o=d[3],s=d[4]),d[5]!==a?(l=(0,i.cn)("text-muted-foreground underline underline-offset-2 decoration-muted-foreground/40 transition-colors hover:text-accent-foreground hover:decoration-current",a),d[5]=a,d[6]=l):l=d[6];let p=s?void 0:t;return d[7]!==o||d[8]!==l||d[9]!==p?(u={className:l,children:p,...o},d[7]=o,d[8]=l,d[9]=p,d[10]=u):u=d[10],d[11]!==s||d[12]!==u?(c={render:s,defaultTagName:"a",props:u},d[11]=s,d[12]=u,d[13]=c):c=d[13],(0,n.useRender)(c)},"BreadcrumbList",0,function(e){let n,a,o,s,l=(0,r.c)(8);return l[0]!==e?({className:n,...a}=e,l[0]=e,l[1]=n,l[2]=a):(n=l[1],a=l[2]),l[3]!==n?(o=(0,i.cn)("flex flex-wrap items-center gap-1.5 text-xs",n),l[3]=n,l[4]=o):o=l[4],l[5]!==a||l[6]!==o?(s=(0,t.jsx)("ol",{className:o,...a}),l[5]=a,l[6]=o,l[7]=s):s=l[7],s},"BreadcrumbPage",0,function(e){let n,a,o,s,l=(0,r.c)(8);return l[0]!==e?({className:n,...a}=e,l[0]=e,l[1]=n,l[2]=a):(n=l[1],a=l[2]),l[3]!==n?(o=(0,i.cn)("font-normal text-foreground",n),l[3]=n,l[4]=o):o=l[4],l[5]!==a||l[6]!==o?(s=(0,t.jsx)("span",{"aria-current":"page",className:o,...a}),l[5]=a,l[6]=o,l[7]=s):s=l[7],s},"BreadcrumbSeparator",0,function(e){let n,o,s,l,u,c,d=(0,r.c)(12);return d[0]!==e?({children:n,className:o,...s}=e,d[0]=e,d[1]=n,d[2]=o,d[3]=s):(n=d[1],o=d[2],s=d[3]),d[4]!==o?(l=(0,i.cn)("text-faint [&>svg]:size-3",o),d[4]=o,d[5]=l):l=d[5],d[6]!==n?(u=n??(0,t.jsx)(a.ChevronRight,{}),d[6]=n,d[7]=u):u=d[7],d[8]!==s||d[9]!==l||d[10]!==u?(c=(0,t.jsx)("li",{"aria-hidden":"true",className:l,role:"presentation",...s,children:u}),d[8]=s,d[9]=l,d[10]=u,d[11]=c):c=d[11],c}])},126154,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473);e.s(["DotSeparator",0,function(e){let i,a,o=(0,r.c)(5),{className:s,"data-testid":l}=e;return o[0]!==s?(i=(0,n.cn)("inline-block size-[0.215em] shrink-0 rounded-full bg-current align-middle",s),o[0]=s,o[1]=i):i=o[1],o[2]!==l||o[3]!==i?(a=(0,t.jsx)("span",{"aria-hidden":"true",className:i,"data-testid":l}),o[2]=l,o[3]=i,o[4]=a):a=o[4],a}])},810563,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473);e.s(["Input",0,function(e){let i,a,o,s,l,u,c,d,p,m,f,g,h,y,v=(0,r.c)(31);v[0]!==e?({className:i,containerClassName:a,containerProps:o,type:d,leadingIcon:s,trailingContent:c,ref:u,...l}=e,v[0]=e,v[1]=i,v[2]=a,v[3]=o,v[4]=s,v[5]=l,v[6]=u,v[7]=c,v[8]=d):(i=v[1],a=v[2],o=v[3],s=v[4],l=v[5],u=v[6],c=v[7],d=v[8]);let b=s&&"pl-9",x=void 0!==c&&"pr-20";v[9]!==i||v[10]!==b||v[11]!==x?(p=(0,n.cn)("flex h-10 w-full rounded-md border border-input bg-input-bg px-3 py-2 text-body pointer-coarse:text-base file:border-0 file:bg-transparent file:text-body file:font-medium file:text-foreground placeholder:text-muted-foreground/50 focus-visible:outline-hidden focus-visible:ring-0 focus-visible:border-focus-border focus-visible:shadow-focus disabled:cursor-not-allowed disabled:opacity-50",b,x,i),v[9]=i,v[10]=b,v[11]=x,v[12]=p):p=v[12],v[13]!==l||v[14]!==u||v[15]!==p||v[16]!==d?(m=(0,t.jsx)("input",{type:d,className:p,ref:u,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,...l}),v[13]=l,v[14]=u,v[15]=p,v[16]=d,v[17]=m):m=v[17];let T=m;if(!s&&void 0===c)return T;let E=o?.className;return v[18]!==a||v[19]!==E?(f=(0,n.cn)("relative w-full",a,E),v[18]=a,v[19]=E,v[20]=f):f=v[20],v[21]!==s?(g=s&&(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none [&>svg]:h-4 [&>svg]:w-4",children:s}),v[21]=s,v[22]=g):g=v[22],v[23]!==c?(h=c&&(0,t.jsx)("span",{className:"absolute right-1 top-1/2 flex -translate-y-1/2 items-center gap-1",children:c}),v[23]=c,v[24]=h):h=v[24],v[25]!==o||v[26]!==T||v[27]!==f||v[28]!==g||v[29]!==h?(y=(0,t.jsxs)("div",{...o,className:f,children:[g,T,h]}),v[25]=o,v[26]=T,v[27]=f,v[28]=g,v[29]=h,v[30]=y):y=v[30],y}])},668832,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473),i=e.i(207298);let a=(0,i.cva)("rounded-full bg-current",{variants:{size:{default:"size-2",sm:"size-1",xs:"size-[0.1875rem]"}},defaultVariants:{size:"default"}}),o=(0,i.cva)("inline-flex items-center",{variants:{size:{default:"gap-2 leading-7",sm:"gap-1 leading-5",xs:"gap-[0.1875rem] leading-3"}},defaultVariants:{size:"default"}}),s=e=>{let i,o,s=(0,r.c)(5),{className:l,size:u}=e,c=void 0===l?"":l;return s[0]!==c||s[1]!==u?(i=(0,n.cn)(a({size:u}),c),s[0]=c,s[1]=u,s[2]=i):i=s[2],s[3]!==i?(o=(0,t.jsx)("span",{className:i}),s[3]=i,s[4]=o):o=s[4],o};e.s(["LoadingDots",0,e=>{let i,a,l,u,c,d,p,m,f,g=(0,r.c)(25);g[0]!==e?(i=void 0===e?{}:e,g[0]=e,g[1]=i):i=g[1];let{className:h,size:y,hasNoAnimation:v}=i,b=void 0===h?"":h,x=void 0===y?"default":y,T=void 0!==v&&v;g[2]!==b||g[3]!==x?(a=(0,n.cn)(o({size:x}),b),g[2]=b,g[3]=x,g[4]=a):a=g[4];let E=T?"animate-none":"animate-scale-pulse";g[5]!==E?(l=(0,n.cn)(E),g[5]=E,g[6]=l):l=g[6],g[7]!==x||g[8]!==l?(u=(0,t.jsx)(s,{size:x,className:l}),g[7]=x,g[8]=l,g[9]=u):u=g[9];let k=T?"animate-none":"animate-scale-pulse";g[10]!==k?(c=(0,n.cn)(k,"delay-150"),g[10]=k,g[11]=c):c=g[11],g[12]!==x||g[13]!==c?(d=(0,t.jsx)(s,{size:x,className:c}),g[12]=x,g[13]=c,g[14]=d):d=g[14];let O=T?"animate-none":"animate-scale-pulse";return g[15]!==O?(p=(0,n.cn)(O,"delay-300"),g[15]=O,g[16]=p):p=g[16],g[17]!==x||g[18]!==p?(m=(0,t.jsx)(s,{size:x,className:p}),g[17]=x,g[18]=p,g[19]=m):m=g[19],g[20]!==d||g[21]!==m||g[22]!==a||g[23]!==u?(f=(0,t.jsxs)("span",{className:a,children:[u,d,m]}),g[20]=d,g[21]=m,g[22]=a,g[23]=u,g[24]=f):f=g[24],f}])},264552,e=>{"use strict";var t=e.i(581603);let r={[t.PerfWorkload.TextGeneration]:"Time to first token, measured from when the request is sent. Data from the last 30 minutes.",[t.PerfWorkload.ImageGeneration]:"Time to generate the image, measured from when the request is sent until the image is returned. Data from the last 30 minutes.",[t.PerfWorkload.VideoGeneration]:"Time to generate the video, measured from when the job is submitted until the video is ready. Data from the last 30 minutes.",[t.PerfWorkload.Embeddings]:"Time to return the embeddings, measured from when the request is sent until the full response arrives. Data from the last 30 minutes.",[t.PerfWorkload.Rerank]:"Time to return the ranked results, measured from when the request is sent until the full response arrives. Data from the last 30 minutes.",[t.PerfWorkload.TTS]:"Time to return the generated audio, measured from when the request is sent until the full response arrives. Data from the last 30 minutes.",[t.PerfWorkload.STT]:"Time to return the transcript, measured from when the request is sent until the full response arrives. Data from the last 30 minutes.",[t.PerfWorkload.Unknown]:"Time to complete the request, measured from when the request is sent. Data from the last 30 minutes."};e.s(["PERFORMANCE_CHART_LABELS",0,{LATENCY:"Time to First Token",E2E_LATENCY:"Time to Last Token"},"PERFORMANCE_TOOLTIPS",0,{LATENCY:"Median time to first token, measured from when the request is sent. Data from the last 30 minutes.",THROUGHPUT:"Avg. output tokens/sec, measured from request start to completion. Includes reasoning tokens. Data from the last 30 minutes.",E2E_LATENCY:"Median time to end of response, measured from when the request is sent. Data from the last 30 minutes.",LATENCY_CHART:"Median time to first token, measured from when the request is sent. Data aggregated over one full day.",THROUGHPUT_CHART:"Avg. output tokens/sec, measured from request start to completion. Includes reasoning tokens. Data aggregated over one full day.",E2E_LATENCY_CHART:"Median time to end of response, measured from when the request is sent. Data aggregated over one full day.",CACHE_HIT_RATE_CHART:"Percentage of prompt tokens served from cache. Higher values mean more cache reuse and lower costs. Data aggregated over one full day."},"PROVIDER_LATENCY_TOOLTIP_BY_WORKLOAD",0,r])},946903,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(277281),i=e.i(779100),a=e.i(193975),o=e.i(370066),s=e.i(190557),l=e.i(270401);function u(e,t){let r=t/1e3;return r<60?`${(0,a.formatNativeFixed)(r,{locale:e,fractionDigits:1})??"—"}s`:`${(0,a.formatNativeNumber)(Math.round(r),{locale:e})??"—"}s`}function c(e,t){return(0,s.formatUsd)(t,{locale:e,preset:"model-price-fixed"})??"—"}e.s(["ElapsedTimer",0,function(){let e,a,o,s,c=(0,r.c)(7),d=(0,i.useLocale)();c[0]===Symbol.for("react.memo_cache_sentinel")?(e=Date.now(),c[0]=e):e=c[0];let p=(0,l.useRef)(e),[m,f]=(0,l.useState)(0);return c[1]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{f(Date.now()-p.current)},c[1]=a):a=c[1],(0,n.useInterval)(a,100),c[2]!==m||c[3]!==d?(o=u(d,m),c[2]=m,c[3]=d,c[4]=o):o=c[4],c[5]!==o?(s=(0,t.jsx)("p",{className:"text-muted-foreground text-xs",children:o}),c[5]=o,c[6]=s):s=c[6],s},"UsageSummary",0,function(e){let n,s,l=(0,r.c)(20),{usage:d}=e,p=(0,i.useLocale)();if(l[0]!==p||l[1]!==d.cost||l[2]!==d.durationMs||l[3]!==d.outputTokens||l[4]!==d.tokensPerSecond){if(n=[],void 0!==d.durationMs){let e;l[6]!==p||l[7]!==d.durationMs?(e=u(p,d.durationMs),l[6]=p,l[7]=d.durationMs,l[8]=e):e=l[8],n.push(e)}if(void 0!==d.outputTokens){let e;if(l[9]!==p||l[10]!==d.outputTokens){var m;m=d.outputTokens,e=(0,o.formatNumber)(m,{locale:p,preset:"compact-integer-lowercase"})??"—",l[9]=p,l[10]=d.outputTokens,l[11]=e}else e=l[11];n.push(`${e} tokens`)}if(void 0!==d.tokensPerSecond){let e;l[12]!==p||l[13]!==d.tokensPerSecond?(e=(0,a.formatNativeFixed)(d.tokensPerSecond,{locale:p,fractionDigits:1})??"—",l[12]=p,l[13]=d.tokensPerSecond,l[14]=e):e=l[14],n.push(`${e} tok/s`)}if(void 0!==d.cost){let e;l[15]!==p||l[16]!==d.cost?(e=c(p,d.cost),l[15]=p,l[16]=d.cost,l[17]=e):e=l[17],n.push(e)}l[0]=p,l[1]=d.cost,l[2]=d.durationMs,l[3]=d.outputTokens,l[4]=d.tokensPerSecond,l[5]=n}else n=l[5];if(0===n.length)return null;let f=n.join(" · ");return l[18]!==f?(s=(0,t.jsx)("p",{className:"text-muted-foreground text-xs tabular-nums",children:f}),l[18]=f,l[19]=s):s=l[19],s},"formatCost",0,c,"formatDuration",0,u])},19379,e=>{"use strict";var t=e.i(505962),r=e.i(270401);e.s(["useKeydown",0,function(e,n){let i,a,o,s=(0,t.c)(6);s[0]!==e||s[1]!==n?(i=t=>{if(null===e||!t.key)return;let r=t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement;("function"==typeof e?!e(t):t.key!==e||r||t.ctrlKey||t.metaKey)||(t.preventDefault(),n(t))},s[0]=e,s[1]=n,s[2]=i):i=s[2];let l=(0,r.useEffectEvent)(i);s[3]!==l?(a=()=>{let e=e=>l(e);return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},s[3]=l,s[4]=a):a=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(o=[],s[5]=o):o=s[5],(0,r.useEffect)(a,o)}])},260715,e=>{"use strict";function t(e){try{let t=new URL(e);if(t.origin!==location.origin)return`${location.origin}${t.pathname}${t.search}`}catch{}return e}e.s(["createPublicPlaygroundTransport",0,function(){return{fetchApi:(e,t)=>fetch(e,t),rewriteUrl:t}}])},652942,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473),i=e.i(528164),a=e.i(389097),o=e.i(607296),s=e.i(379497),l=e.i(270401),u=e.i(19379);function c(e){let a,o,s,l,u,c,d=(0,r.c)(12);d[0]!==e?({side:l,onClick:o,className:a,...s}=e,d[0]=e,d[1]=a,d[2]=o,d[3]=s,d[4]=l):(a=d[1],o=d[2],s=d[3],l=d[4]);let p="left"===l?"left-0":"right-0";return d[5]!==a||d[6]!==p?(u=(0,n.cn)("absolute top-0 h-full w-1/3 z-20",p,"rounded-none bg-transparent p-0 hover:bg-transparent",a),d[5]=a,d[6]=p,d[7]=u):u=d[7],d[8]!==o||d[9]!==s||d[10]!==u?(c=(0,t.jsx)(i.Button,{variant:"ghost",size:"sm",onClick:o,className:u,...s}),d[8]=o,d[9]=s,d[10]=u,d[11]=c):c=d[11],c}e.s(["ImagePreviewDialog",0,function(e){let d,p,m,f,g,h,y,v,b,x,T,E,k,O,S,w,z,R,P,_=(0,r.c)(45),{images:M,initialIndex:C,children:I}=e,j=void 0===C?0:C,[A,N]=(0,l.useState)(!1),[L,D]=(0,l.useState)(j),W=M.length,V=M[L];if(_[0]!==j||_[1]!==A?(d=()=>{A&&D(j)},p=[A,j],_[0]=j,_[1]=A,_[2]=d,_[3]=p):(d=_[2],p=_[3]),(0,l.useEffect)(d,p),_[4]!==A?(m=e=>A&&"ArrowRight"===e.key,_[4]=A,_[5]=m):m=_[5],_[6]!==W?(f=()=>D(e=>(e+1)%W),_[6]=W,_[7]=f):f=_[7],(0,u.useKeydown)(m,f),_[8]!==A?(g=e=>A&&"ArrowLeft"===e.key,_[8]=A,_[9]=g):g=_[9],_[10]!==W?(h=()=>D(e=>(e-1+W)%W),_[10]=W,_[11]=h):h=_[11],(0,u.useKeydown)(g,h),!V)return null;let F=`Open image preview: ${V.name}`;_[12]===Symbol.for("react.memo_cache_sentinel")?(y=()=>N(!0),_[12]=y):y=_[12],_[13]!==I||_[14]!==F?(v=(0,t.jsx)(i.Button,{variant:"ghost",className:"contents h-auto w-auto p-0 hover:bg-transparent","aria-label":F,onClick:y,children:I}),_[13]=I,_[14]=F,_[15]=v):v=_[15],_[16]===Symbol.for("react.memo_cache_sentinel")?(b=(0,n.cn)("w-full max-w-4xl flex flex-col items-center"),_[16]=b):b=_[16],_[17]!==V.name?(x=(0,t.jsx)(a.DialogHeader,{children:(0,t.jsx)(a.DialogTitle,{children:V.name})}),_[17]=V.name,_[18]=x):x=_[18],_[19]!==W?(T=W>1&&(0,t.jsx)(c,{"aria-label":"Previous image",side:"left",onClick:()=>D(e=>(e-1+W)%W)}),_[19]=W,_[20]=T):T=_[20],_[21]!==W?(E=W>1&&(0,t.jsx)(c,{"aria-label":"Next image",side:"right",onClick:()=>D(e=>(e+1)%W)}),_[21]=W,_[22]=E):E=_[22],_[23]!==W?(k=W>1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Button,{variant:"outline",size:"icon-sm",className:(0,n.cn)("absolute left-0 top-1/2 -translate-y-1/2 z-30 pointer-events-none","opacity-0 group-hover:opacity-100 transition-opacity duration-200"),tabIndex:-1,children:(0,t.jsx)(o.ChevronLeft,{className:"size-4"})}),(0,t.jsx)(i.Button,{variant:"outline",size:"icon-sm",className:(0,n.cn)("absolute right-0 top-1/2 -translate-y-1/2 z-30 pointer-events-none","opacity-0 group-hover:opacity-100 transition-opacity duration-200"),tabIndex:-1,children:(0,t.jsx)(s.ChevronRight,{className:"size-4"})})]}),_[23]=W,_[24]=k):k=_[24],_[25]!==V.name||_[26]!==V.url?(O=(0,t.jsx)("img",{src:V.url,alt:V.name,className:"relative z-0 object-contain max-h-[65vh] w-auto max-w-full select-none mx-auto rounded-sm",draggable:!1}),_[25]=V.name,_[26]=V.url,_[27]=O):O=_[27],_[28]!==T||_[29]!==E||_[30]!==k||_[31]!==O?(S=(0,t.jsxs)("div",{className:"relative flex items-center justify-center w-full max-h-[70vh] min-h-[320px] group ph-no-capture","data-dd-privacy":"hidden",children:[T,E,k,O]}),_[28]=T,_[29]=E,_[30]=k,_[31]=O,_[32]=S):S=_[32];let q=W>1?`${L+1} / ${W}`:"";return _[33]!==q?(w=(0,t.jsx)("div",{className:"text-xs text-muted-foreground py-2 text-center w-full",children:q}),_[33]=q,_[34]=w):w=_[34],_[35]!==x||_[36]!==S||_[37]!==w?(z=(0,t.jsxs)(a.DialogContent,{keepMounted:!1,className:b,children:[x,S,w]}),_[35]=x,_[36]=S,_[37]=w,_[38]=z):z=_[38],_[39]!==A||_[40]!==z?(R=(0,t.jsx)(a.Dialog,{open:A,onOpenChange:N,children:z}),_[39]=A,_[40]=z,_[41]=R):R=_[41],_[42]!==v||_[43]!==R?(P=(0,t.jsxs)(t.Fragment,{children:[v,R]}),_[42]=v,_[43]=R,_[44]=P):P=_[44],P}])},635528,971453,805333,e=>{"use strict";var t=e.i(151960),r=e.i(626824),n=e.i(693697),i=e.i(204067),a=e.i(8842),o=e.i(450740),s=e.i(260715),l=e.i(748700);function u(e){let t={};for(let a of e)for(let[e,o]of Object.entries(a)){var r,n,i;let a=t[e];if(!a){t[e]=(r=o).type===l.CapabilityType.Enum?{type:l.CapabilityType.Enum,values:[...r.values]}:{...r};continue}a.type===o.type&&(t[e]=(n=a,i=o,n.type===l.CapabilityType.Enum&&i.type===l.CapabilityType.Enum?{type:l.CapabilityType.Enum,values:[...new Set([...n.values,...i.values])]}:n.type===l.CapabilityType.Range&&i.type===l.CapabilityType.Range?{type:l.CapabilityType.Range,min:Math.min(n.min,i.min),max:Math.max(n.max,i.max)}:n))}return t}e.s(["mergeSupportedParameters",0,u],971453);var c=e.i(796805);let d=c.z.object({id:c.z.string(),endpoints:c.z.array(c.z.object({provider_name:c.z.string(),supported_parameters:l.SupportedParametersSchema,supports_streaming:c.z.boolean().default(!1),allowed_passthrough_parameters:c.z.array(c.z.string()).default([])}))});var p=e.i(543092),m=e.i(284175);let f=c.z.object({title:c.z.string().min(1).nullable().default(null),output_assets:p.ExampleAssetListSchema,input_assets:p.ExampleAssetListSchema,created_at:c.z.string().datetime(),duration_ms:(0,i.zInt)().nonnegative().nullable(),cost:c.z.number().nonnegative().nullable()}),g=f.extend({modality:c.z.literal(p.ModelExampleModality.Image),request:m.ImageGenerationRequestSchema});var h=e.i(191463);let y=c.z.object({model:c.z.string(),input:c.z.string(),voice:c.z.string().trim().min(1),response_format:c.z.nativeEnum(h.TTSResponseFormat).optional()}),v=f.extend({modality:c.z.literal(p.ModelExampleModality.Speech),request:y});var b=e.i(475968);let x=c.z.object({model:c.z.string(),prompt:c.z.string().optional(),duration:(0,i.zInt)().min(1).optional(),resolution:c.z.nativeEnum(b.VideoGenerationResolution).optional(),aspect_ratio:c.z.nativeEnum(b.VideoAspectRatio).optional(),size:c.z.string().optional(),generate_audio:c.z.boolean().optional(),seed:(0,i.zInt)().optional(),input_references:c.z.array(c.z.discriminatedUnion("type",[c.z.object({type:c.z.literal("image_url"),image_url:c.z.object({url:c.z.string()})}),c.z.object({type:c.z.literal("audio_url"),audio_url:c.z.object({url:c.z.string()})}),c.z.object({type:c.z.literal("video_url"),video_url:c.z.object({url:c.z.string()})})])).optional(),frame_images:c.z.array(c.z.object({type:c.z.literal("image_url"),image_url:c.z.object({url:c.z.string()}),frame_type:c.z.nativeEnum(b.VideoFrameType)})).optional()}),T=f.extend({modality:c.z.literal(p.ModelExampleModality.Video),request:x}),E={modality:!0,title:!0,request:!0,output_assets:!0,input_assets:!0,duration_ms:!0,cost:!0,created_at:!0},k=c.z.array(c.z.discriminatedUnion("modality",[g.pick(E),T.pick(E),v.pick(E)]));var O=e.i(963),S=e.i(182657);let w="https://openrouter.ai/api/v1/chat/completions",z="https://openrouter.ai/api/v1/responses",R="https://openrouter.ai/api/v1/messages",P="/api/v1/images",_=`https://openrouter.ai${P}`,M={endpoint:w},C={endpoint:z,docsHref:"/docs/api/api-reference/responses/create-responses"},I=[M,C,{endpoint:R,docsHref:"/docs/api/api-reference/anthropic-messages/create-messages"}],j=[M,C],A=[M],N=[[O.OutputModality.Embeddings,"https://openrouter.ai/api/v1/embeddings"],[O.OutputModality.Rerank,"https://openrouter.ai/api/v1/rerank"],[O.OutputModality.TTS,"https://openrouter.ai/api/v1/audio/speech"],[O.OutputModality.Transcription,"https://openrouter.ai/api/v1/audio/transcriptions"],[O.OutputModality.Video,"https://openrouter.ai/api/v1/videos"],[O.OutputModality.Image,_]];S.QuickStartExampleType.Embeddings,S.QuickStartExampleType.ImageInputEmbeddings,S.QuickStartExampleType.VideoGeneration,S.QuickStartExampleType.Rerank,S.QuickStartExampleType.TTS,S.QuickStartExampleType.STT,S.QuickStartExampleType.STTMaiTranscribe;let L=[{endpoint:_,docsHref:"/docs/features/multimodal/image-generation"}];e.s(["CHAT_COMPLETIONS_ENDPOINT",0,w,"IMAGE_API_ENDPOINT",0,_,"IMAGE_API_ROUTE",0,P,"MESSAGES_ENDPOINT",0,R,"RESPONSES_ENDPOINT",0,z,"getEndpointReferencesForOutputModalities",0,function(e,t){if(e.includes(O.OutputModality.Text))return I;if(e.includes(O.OutputModality.Image))return t?.useImageApi?L:j;if(e.includes(O.OutputModality.Audio))return A;let r=N.find(([t])=>e.includes(t))?.[1];return r?[{endpoint:r}]:[]}],805333);let D=(0,r.createQueryKeys)("image-discovery",{endpoints:({author:e,slug:t,route:r})=>[{author:e,slug:t,route:r}]}),W=(0,r.createQueryKeys)("model-examples",{list:(e,t)=>[{permaslug:e,modality:t}]});e.s(["imageDiscoveryOptions",0,function(e,t){let[r,l]=e.split("/"),c=r||null,p=l||null,{fetchApi:m,rewriteUrl:f}=t??(0,s.createPublicPlaygroundTransport)(),g=f(P);return(0,a.queryOptions)({queryKey:D.endpoints({author:c,slug:p,route:g}),queryFn:null===c||null===p?o.skipToken:async({signal:e})=>{var t;let r=await m(`${g}/models/${encodeURIComponent(c)}/${encodeURIComponent(p)}/endpoints`,{signal:e});if(!r.ok)throw r.body?.cancel(),Error(`Image discovery request failed: ${r.status} ${r.statusText}`);let a=await r.json(),o=(0,i.parseSchema)(d,a);if((0,n.isErr)(o))throw o.error;return{supportedParameters:u((t=o.data.endpoints).map(e=>e.supported_parameters)),supportsStreaming:t.some(e=>e.supports_streaming),passthroughByProvider:function(e){let t=new Map;for(let r of e){let e=t.get(r.provider_name)??new Set;for(let t of r.allowed_passthrough_parameters)e.add(t);t.set(r.provider_name,e)}return[...t.entries()].filter(([,e])=>e.size>0).map(([e,t])=>({providerName:e,parameters:[...t]}))}(t)}},refetchOnWindowFocus:!1})},"modelExamplesOptions",0,function({permaslug:e,modality:r}){return(0,a.queryOptions)({queryKey:W.list(e,r),queryFn:null===e||null===r?o.skipToken:({signal:n})=>(0,t.fetchAPIQuery)("/api/frontend/v1/model-examples",{searchParams:{permaslug:e,modality:r},signal:n,schema:k})})}],635528)},748700,191463,e=>{"use strict";e.i(204067);var t=e.i(796805);let r={Enum:"enum",Range:"range",Boolean:"boolean"},n=t.z.object({type:t.z.literal(r.Enum),values:t.z.array(t.z.string())}).openapi("EnumCapability",{description:"A parameter that accepts one of a discrete set of string values.",example:{type:"enum",values:["1K","2K","4K"]}}),i=t.z.object({type:t.z.literal(r.Range),min:t.z.number(),max:t.z.number()}).openapi("RangeCapability",{description:"A parameter that accepts any value within an inclusive numeric range.",example:{type:"range",min:0,max:100}}),a=t.z.object({type:t.z.literal(r.Boolean)}).openapi("BooleanCapability",{description:"A supported-or-not flag. Present means the parameter is accepted.",example:{type:"boolean"}}),o=t.z.discriminatedUnion("type",[n,i,a]).openapi("CapabilityDescriptor",{description:"A typed descriptor for one supported request parameter.",example:{type:"enum",values:["1K","2K","4K"]},discriminator:{propertyName:"type",mapping:{enum:"#/components/schemas/EnumCapability",range:"#/components/schemas/RangeCapability",boolean:"#/components/schemas/BooleanCapability"}}}),s=t.z.record(t.z.string(),o).openapi("SupportedParameters",{description:"Supported request parameters, keyed by request field name. An absent key means the parameter is not supported.",example:{resolution:{type:"enum",values:["1K","2K","4K"]},output_compression:{type:"range",min:0,max:100},seed:{type:"boolean"}}});e.s(["CapabilityType",0,r,"SupportedParametersSchema",0,s],748700),e.s(["TTSResponseFormat",0,{Mp3:"mp3",Pcm:"pcm"}],191463)},922358,e=>{"use strict";e.s(["hasCompleteImageParameterRange",0,function(e){return"number"==typeof e?.min&&"number"==typeof e.max}])},284175,e=>{"use strict";var t=e.i(526073),r=e.i(634723),n=e.i(609266),i=e.i(976927),a=e.i(204067),o=e.i(796805);let s=o.z.object({model:o.z.string().openapi({description:"The image generation model to use",example:"bytedance-seed/seedream-4.5"}),prompt:o.z.string().trim().min(1).openapi({description:"Text description of the desired image",example:"a red panda astronaut floating in space, studio lighting"}),n:(0,a.zInt)().min(1).max(10).optional().openapi({description:"Upper bound on the number of images to generate (1-10). Providers may return fewer images, and providers that only support single-image generation reject n > 1.",example:1}),quality:o.z.nativeEnum(t.ImageQuality).optional().openapi({description:"Rendering quality. Providers without a quality knob ignore this.",example:"high"}),background:o.z.enum(["auto","transparent","opaque"]).optional().openapi({description:"Background treatment. `transparent` requires an output_format that supports alpha (png or webp).",example:"auto"}),output_format:o.z.enum(["png","jpeg","webp"]).optional().openapi({description:"Encoding of the returned image bytes.",example:"png"}),output_compression:(0,a.zInt)().min(0).max(100).optional().openapi({description:"Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.",example:100}),user:o.z.string().optional().openapi({description:"A stable identifier for your end-users. Used to help detect and prevent abuse. Never sent to providers verbatim: for providers whose data policy requires user IDs, it is folded into a hashed, per-account upstream user identifier.",example:"end-user-abc123"})}),l=n.ProviderPreferencesSchema.pick({allow_fallbacks:!0,ignore:!0,only:!0,order:!0,sort:!0}).extend({options:i.ProviderOptionsSchema.optional().openapi({description:"Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.",example:{"black-forest-labs":{steps:40,guidance:3}}})}).openapi("ImageGenerationProviderPreferences",{description:"Provider routing preferences and provider-specific passthrough configuration.",example:{only:["google-ai-studio"],allow_fallbacks:!1}}),u=s.extend({output_format:o.z.enum(["png","jpeg","webp","svg"]).optional().openapi({description:"Encoding of the returned image bytes. Most models produce raster formats (png, jpeg, webp). SVG is supported by vectorization models (e.g. Quiver) — the SVG markup is UTF-8 base64-encoded in `b64_json`.",example:"png"}),aspect_ratio:o.z.nativeEnum(t.ImageAspectRatio).optional().openapi({description:"Normalized aspect ratio of the generated image. Providers clamp to their supported subset.",example:"16:9"}),resolution:o.z.nativeEnum(t.ImageGenerationResolution).optional().openapi({description:"Normalized resolution tier of the generated image. Concrete pixel dimensions are derived per-provider.",example:"2K"}),size:o.z.string().optional().openapi({description:'Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048") and we normalize it to the right dimensions for the chosen provider. A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. An explicit pixel size is authoritative: a mismatched `resolution` or `aspect_ratio` alongside it is rejected with a 400.',example:"2K"}),seed:(0,a.zInt)().optional().openapi({description:"If specified, the generation will sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed for all providers."}),stream:o.z.boolean().optional().openapi({description:"If true, partial images are streamed as SSE events as they become available. Only supported by providers with native streaming (currently OpenAI). Non-streaming providers ignore this flag and return a buffered response."}),input_references:o.z.array(r.OpenAIChatCompletionsContentPartImageSchema).max(16).optional().openapi({description:"Reference images to guide image-to-image generation, as base64 data URLs or HTTP(S) URLs."}),provider:l.optional()}).openapi("ImageGenerationRequest",{description:"Image generation request input",example:{model:"bytedance-seed/seedream-4.5",prompt:"a red panda astronaut floating in space, studio lighting"}});e.s(["ImageGenerationRequestSchema",0,u])},634723,e=>{"use strict";e.i(204067);var t=e.i(796805);let r=t.z.object({type:t.z.literal("text"),text:t.z.string()}).openapi("PredictionContentText",{description:"Text content part for a predicted output.",example:{type:"text",text:"Expected response"}}),n=t.z.object({type:t.z.literal("image_url"),image_url:t.z.object({url:t.z.string()})}).openapi("ContentPartImage",{example:{type:"image_url",image_url:{url:"https://example.com/image.png"}}});e.s(["OpenAIChatCompletionsContentPartImageSchema",0,n,"OpenAIChatCompletionsContentPartTextSchema",0,r])},238032,e=>{"use strict";var t=e.i(179273);e.s(["formatModelName",0,(e,{shorten:r=!1,keepNote:n=!1,preserveVariant:i=!1}={})=>{if(!r&&!0===n)return e;let a=e.split(": ")[1]||e;if(n)return a;let o=a.split(" (")[0];if(!i)return o;let s=Object.values(t.Variant).filter(e=>e!==t.StaticVariant.Standard&&e!==t.Variant.All).map(e=>(0,t.variantLabel)(e)),l=[...a.matchAll(/\(([^()]*)\)/g)].filter(([,e])=>s.some(t=>0===t.localeCompare(e??"",void 0,{sensitivity:"accent"}))).map(([,e])=>`(${e})`);return`${o}${l.length>0?` ${l.join(" ")}`:""}`}])},555105,e=>{"use strict";e.i(687421),e.i(928803);var t=e.i(13589),r=e.i(217631);function n(e){return e.includes("/")?e.split("/")[0]:e}function i(e){if(!e.includes("/"))return null;let n=e.split("/").at(-1);return(0,r.isMember)(n,t.NonDefaultServiceTier)?n:null}e.s(["getDefaultRowSlugsByModel",0,function(e){let t=new Map;for(let r of e){if(void 0!==r.service_tier)continue;let e=t.get(r.model.permaslug)??new Set;e.add(r.provider_slug),t.set(r.model.permaslug,e)}return t},"getProviderBaseSlug",0,n,"isEndpointProviderInSet",0,function(e,r,a){return(function(e,r){let a=e.provider_slug;if(void 0===e.service_tier){let e,t,r=null===(e=i(a))?null:`${n(a)}/${e}`;return[...new Set([a,...null===r?[]:[r],null===(t=i(a))?a:a.slice(0,a.length-t.length-1),n(a)])]}let o=a.split("/").slice(0,-1).join("/");return[...new Set([...(function(e){if(void 0===e.service_tier)return[e.provider_slug];let r=e.provider_slug.split("/").slice(0,-1).join("/"),i=n(e.provider_slug),a=(0,t.getServiceTierSpellings)(e.service_tier);return[...new Set([...a.map(e=>`${r}/${e}`),...a.map(e=>`${i}/${e}`)])].filter(e=>!e.startsWith("/"))})(e).filter(e=>!r?.has(e)),...""===o?[]:[o],n(a)])]})(e,a).some(e=>r.has(e))}])},976927,e=>{"use strict";var t=e.i(687421),r=e.i(555105);e.i(204067);var n=e.i(796805);let i=n.z.record(n.z.string(),n.z.unknown()),a=[...Object.values(t.providerSlugMap),...t.deprecatedProviderSlugs],o=n.z.preprocess(e=>!e||"object"!=typeof e||Array.isArray(e)?e:Object.fromEntries(Object.entries(e).filter(([e])=>{var n;return n=e,void 0!==(0,t.getProviderFromSlug)((0,r.getProviderBaseSlug)(n))})),n.z.object(Object.fromEntries(a.map(e=>[e,i.optional()]))).partial().catchall(i)).openapi("ProviderOptions",{description:"Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.",example:{openai:{max_tokens:1e3}}});e.s(["ProviderOptionsSchema",0,o])},616384,e=>{"use strict";var t=e.i(581603),r=e.i(963),n=e.i(182657),i=e.i(264552);let a={[n.QuickStartExampleType.Text]:t.PerfWorkload.TextGeneration,[n.QuickStartExampleType.ComputerUseTool]:t.PerfWorkload.TextGeneration,[n.QuickStartExampleType.AudioTool]:t.PerfWorkload.TextGeneration,[n.QuickStartExampleType.AudioOutput]:t.PerfWorkload.TextGeneration,[n.QuickStartExampleType.FastApply]:t.PerfWorkload.TextGeneration,[n.QuickStartExampleType.Embeddings]:t.PerfWorkload.Embeddings,[n.QuickStartExampleType.ImageInputEmbeddings]:t.PerfWorkload.Embeddings,[n.QuickStartExampleType.Reasoning]:t.PerfWorkload.TextGeneration,[n.QuickStartExampleType.ImageGeneration]:t.PerfWorkload.ImageGeneration,[n.QuickStartExampleType.ImageGenerationWithoutText]:t.PerfWorkload.ImageGeneration,[n.QuickStartExampleType.VideoGeneration]:t.PerfWorkload.VideoGeneration,[n.QuickStartExampleType.Rerank]:t.PerfWorkload.Rerank,[n.QuickStartExampleType.TTS]:t.PerfWorkload.TTS,[n.QuickStartExampleType.STT]:t.PerfWorkload.STT,[n.QuickStartExampleType.STTMaiTranscribe]:t.PerfWorkload.STT,[n.QuickStartExampleType.OCR]:t.PerfWorkload.TextGeneration},o=[[r.OutputModality.Embeddings,t.PerfWorkload.Embeddings],[r.OutputModality.Video,t.PerfWorkload.VideoGeneration],[r.OutputModality.Image,t.PerfWorkload.ImageGeneration],[r.OutputModality.TTS,t.PerfWorkload.TTS],[r.OutputModality.Transcription,t.PerfWorkload.STT],[r.OutputModality.Rerank,t.PerfWorkload.Rerank]];e.s(["getProviderTablePerfPresentation",0,function(e){return{latencyLabel:"latency_e2e"===e.latencyMetric?"End-to-end latency":"Latency",latencyTooltip:i.PROVIDER_LATENCY_TOOLTIP_BY_WORKLOAD[e.perfWorkload],shouldShowThroughputColumn:e.perfWorkload===t.PerfWorkload.TextGeneration}},"getProviderTablePerfSelector",0,function(e){var r;let n=(r=e).quick_start_example_type?a[r.quick_start_example_type]:function(e){for(let[t,r]of o)if(e.includes(t))return r;return t.PerfWorkload.TextGeneration}(r.output_modalities);return{perfWorkload:n,latencyMetric:n===t.PerfWorkload.ImageGeneration||n===t.PerfWorkload.VideoGeneration?"latency_e2e":"latency"}}])},268097,62380,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473),i=e.i(270401);let a=!1,o=new Set,s=e=>(o.add(e),()=>{o.delete(e)}),l=()=>a,u=()=>!1;function c(){return(0,i.useSyncExternalStore)(s,l,u)}function d(e){return`repeat(${e}, minmax(280px, 1fr))`}let p=(0,i.createContext)({mobileColumnLabels:[],columnCount:0}),m=(0,i.createContext)(null);function f(e){let a,o,s,l,u,c,d,p,f=(0,r.c)(23),{gridTemplate:g,gridRowTemplate:h,allowOverflow:y,children:v}=e,b=(0,i.useRef)(null),x=(0,i.useContext)(m);f[0]!==y||f[1]!==x?(a=()=>{let e=b.current;if(e&&x&&!y)return x.register(e),x.notify(e),()=>{x.unregister(e)}},o=[x,y],f[0]=y,f[1]=x,f[2]=a,f[3]=o):(a=f[2],o=f[3]),(0,i.useEffect)(a,o);let T=y?void 0:"";f[4]!==y||f[5]!==x?(s=e=>{y||x?.notify(e.currentTarget)},f[4]=y,f[5]=x,f[6]=s):s=f[6];let E=!y&&"md:overflow-x-auto",k=!y&&"[scrollbar-width:none] [&::-webkit-scrollbar]:hidden";f[7]!==E||f[8]!==k?(l=(0,n.cn)("flex flex-col",E,k),f[7]=E,f[8]=k,f[9]=l):l=f[9];let O=y?"":void 0;return f[10]===Symbol.for("react.memo_cache_sentinel")?(u=(0,n.cn)("flex flex-col md:grid md:min-w-min md:gap-x-3 md:pr-2"),f[10]=u):u=f[10],f[11]!==h||f[12]!==g?(c={gridTemplateColumns:g,gridTemplateRows:h,position:"relative"},f[11]=h,f[12]=g,f[13]=c):c=f[13],f[14]!==v||f[15]!==c||f[16]!==O?(d=(0,t.jsx)("div",{"data-synced-translate-target":O,className:u,style:c,children:v}),f[14]=v,f[15]=c,f[16]=O,f[17]=d):d=f[17],f[18]!==d||f[19]!==T||f[20]!==s||f[21]!==l?(p=(0,t.jsx)("div",{ref:b,"data-synced-scroll-wrapper":T,onScroll:s,className:l,children:d}),f[18]=d,f[19]=T,f[20]=s,f[21]=l,f[22]=p):p=f[22],p}function g(e){let i,a,o,s,l,u=(0,r.c)(17),{id:c,title:d,rightSlot:p,subsection:m}=e,f=m?"calc(var(--cards-sticky-bottom-px, 174px) + 3.5rem)":"var(--cards-sticky-bottom-px, 174px)";u[0]!==f?(i={top:f,scrollMarginTop:f},u[0]=f,u[1]=i):i=u[1];let g=m?"z-[55]":"z-[60]",h=m?"px-4 py-2 md:px-5 md:py-2.5":"px-4 py-3 md:px-5 md:py-4",y=!m&&"border-b border-border";u[2]!==g||u[3]!==h||u[4]!==y?(a=(0,n.cn)("flex items-center gap-3 bg-background",g,h,"md:sticky",y),u[2]=g,u[3]=h,u[4]=y,u[5]=a):a=u[5];let v=m?"text-base md:text-lg":"text-lg md:text-xl";return u[6]!==v?(o=(0,n.cn)("font-semibold text-foreground",v),u[6]=v,u[7]=o):o=u[7],u[8]!==o||u[9]!==d?(s=(0,t.jsx)("h2",{className:o,children:d}),u[8]=o,u[9]=d,u[10]=s):s=u[10],u[11]!==c||u[12]!==p||u[13]!==i||u[14]!==a||u[15]!==s?(l=(0,t.jsxs)("div",{id:c,style:i,className:a,children:[s,p]}),u[11]=c,u[12]=p,u[13]=i,u[14]=a,u[15]=s,u[16]=l):l=u[16],l}function h(e){let n,a,o,s,l,u,c,m=(0,r.c)(17),{title:f}=e,{columnCount:g}=(0,i.useContext)(p);m[0]!==g?(n=d(g),m[0]=g,m[1]=n):n=m[1];let h=n;return m[2]!==f?(a=(0,t.jsx)("div",{className:"z-[55] bg-muted px-4 py-2 text-sm font-medium text-muted-foreground md:hidden",children:f}),m[2]=f,m[3]=a):a=m[3],m[4]!==h?(o={top:"calc(var(--cards-sticky-bottom-px, 174px) + 3.5rem)",gridTemplateColumns:h},m[4]=h,m[5]=o):o=m[5],m[6]!==g?(s=Array.from({length:g}),m[6]=g,m[7]=s):s=m[7],m[8]!==s||m[9]!==f?(l=s.map((e,r)=>(0,t.jsx)("div",{className:"bg-muted px-5 py-2",children:0===r?f:null},r)),m[8]=s,m[9]=f,m[10]=l):l=m[10],m[11]!==o||m[12]!==l?(u=(0,t.jsx)("div",{className:"z-[55] hidden text-sm font-medium text-muted-foreground md:sticky md:grid md:min-w-min md:gap-x-3",style:o,children:l}),m[11]=o,m[12]=l,m[13]=u):u=m[13],m[14]!==a||m[15]!==u?(c=(0,t.jsxs)(t.Fragment,{children:[a,u]}),m[14]=a,m[15]=u,m[16]=c):c=m[16],c}e.s(["DataRow",0,function(e){let a,o,s,l,u,d,m=(0,r.c)(29),{label:f,values:g,isFirst:h,bestIndices:y,emptyIndices:v,stacked:b,hideLabel:x}=e,T=void 0!==b&&b,E=void 0!==x&&x,{mobileColumnLabels:k}=(0,i.useContext)(p),O=c();m[0]!==y||m[1]!==O?(a=O?y??[]:[],m[0]=y,m[1]=O,m[2]=a):a=m[2];let S=a;m[3]!==v?(o=v??[],m[3]=v,m[4]=o):o=m[4];let w=o,z=!h&&"md:border-t md:border-border",R=!h&&"border-t border-border md:border-t-0";if(m[5]!==R?(s=(0,n.cn)("col-span-full flex flex-col gap-2 px-4 py-3 md:grid md:grid-cols-subgrid md:gap-x-3 md:gap-y-0 md:px-0 md:py-0",R),m[5]=R,m[6]=s):s=m[6],m[7]!==z||m[8]!==w||m[9]!==E||m[10]!==f||m[11]!==k||m[12]!==T||m[13]!==g||m[14]!==S){let e;m[16]!==z||m[17]!==w||m[18]!==E||m[19]!==f||m[20]!==k||m[21]!==T||m[22]!==S?(e=(e,r)=>{let i=w.includes(r),a=S.includes(r);return(0,t.jsxs)("div",{className:(0,n.cn)("rounded-md border border-border bg-background px-3 py-2.5 text-sm md:rounded-none md:border-0 md:px-5 md:py-3",!i&&z,i&&"md:px-0 md:py-0",!i&&!a&&"md:bg-transparent",i&&"md:bg-background",a&&"border-positive/30 bg-positive/10 md:border-border md:bg-positive/10",!T&&!i&&"md:flex md:flex-row md:items-center md:justify-between md:gap-3"),children:[(0,t.jsx)("div",{className:"mb-1 truncate text-xs font-medium text-muted-foreground md:hidden",children:k[r]??`Model ${r+1}`}),!i&&!E&&(0,t.jsx)("div",{className:(0,n.cn)("mb-1 text-sm text-muted-foreground",!T&&"md:mb-0 md:shrink-0 md:whitespace-nowrap"),children:f}),e]},r)},m[16]=z,m[17]=w,m[18]=E,m[19]=f,m[20]=k,m[21]=T,m[22]=S,m[23]=e):e=m[23],l=g.map(e),m[7]=z,m[8]=w,m[9]=E,m[10]=f,m[11]=k,m[12]=T,m[13]=g,m[14]=S,m[15]=l}else l=m[15];return m[24]!==l?(u=(0,t.jsx)("div",{className:"grid grid-cols-1 gap-2 md:contents",children:l}),m[24]=l,m[25]=u):u=m[25],m[26]!==s||m[27]!==u?(d=(0,t.jsx)("div",{className:s,children:u}),m[26]=s,m[27]=u,m[28]=d):d=m[28],d},"SectionGrid",0,function(e){let a,o,s,l,u,c,m,y,v=(0,r.c)(27),{columnCount:b,mobileColumnLabels:x,allowOverflow:T,gridRowTemplate:E,children:k}=e;v[0]!==k?(a=function(e){let t,r,n={sectionHeader:null,groups:[]},a={subHeader:null,rows:[]},o=()=>{(a.subHeader||a.rows.length>0)&&n.groups.push(a)};for(let s of(t=[],(r=e=>{if(null!=e&&!1!==e&&!0!==e){if(Array.isArray(e)){for(let t of e)r(t);return}if((0,i.isValidElement)(e)){if(e.type===i.Fragment)return void r(e.props.children);t.push(e)}}})(e),t)){if(s.type===g){n.sectionHeader=s;continue}if(s.type===h){o(),a={subHeader:s,rows:[]};continue}a.rows.push(s)}return o(),0===n.groups.length&&n.groups.push({subHeader:null,rows:[]}),n}(k),v[0]=k,v[1]=a):a=v[1];let O=a;v[2]!==b?(o=d(b),v[2]=b,v[3]=o):o=v[3];let S=o;v[4]!==x?(s=x??[],v[4]=x,v[5]=s):s=v[5],v[6]!==b||v[7]!==s?(l={mobileColumnLabels:s,columnCount:b},v[6]=b,v[7]=s,v[8]=l):l=v[8];let w=l,z=!T&&"overflow-clip";v[9]!==z?(u=(0,n.cn)("flex flex-col bg-background",z),v[9]=z,v[10]=u):u=v[10];let R=O.sectionHeader;if(v[11]!==T||v[12]!==E||v[13]!==S||v[14]!==O.groups){let e;v[16]!==T||v[17]!==E||v[18]!==S?(e=(e,r)=>(0,t.jsxs)(i.Fragment,{children:[e.subHeader,e.rows.length>0&&(0,t.jsx)(f,{gridTemplate:S,gridRowTemplate:E,allowOverflow:T,children:e.rows})]},r),v[16]=T,v[17]=E,v[18]=S,v[19]=e):e=v[19],c=O.groups.map(e),v[11]=T,v[12]=E,v[13]=S,v[14]=O.groups,v[15]=c}else c=v[15];return v[20]!==O.sectionHeader||v[21]!==u||v[22]!==c?(m=(0,t.jsxs)("div",{className:u,children:[R,c]}),v[20]=O.sectionHeader,v[21]=u,v[22]=c,v[23]=m):m=v[23],v[24]!==w||v[25]!==m?(y=(0,t.jsx)(p.Provider,{value:w,children:m}),v[24]=w,v[25]=m,v[26]=y):y=v[26],y},"SectionHeader",0,g,"SyncedScrollProvider",0,function({children:e,onScrollLeftChange:r}){let n=(0,i.useRef)(new Set),a=(0,i.useRef)(!1),o=(0,i.useRef)(new Map),[s,l]=(0,i.useState)(!1),[u,c]=(0,i.useState)(!1),d=(0,i.useMemo)(()=>{let e=e=>{if(a.current)return;a.current=!0;let t=e.scrollLeft,i=e.scrollWidth-e.clientWidth;try{for(let r of n.current)r!==e&&Math.abs(r.scrollLeft-t)>.5&&(r.scrollLeft=t);l(t>4),c(t+4{n.current.add(t);let r=t.firstElementChild;if("u">typeof ResizeObserver&&r instanceof Element){let n=new ResizeObserver(()=>e(t));n.observe(r),o.current.set(t,n)}},unregister:e=>{n.current.delete(e);let t=o.current.get(e);t&&(t.disconnect(),o.current.delete(e))},notify:e,canScrollLeft:s,canScrollRight:u}},[s,u,r]);return(0,i.useEffect)(()=>{let e=()=>{let e=n.current.values().next().value;e&&d.notify(e)};return window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}},[d]),(0,t.jsx)(m.Provider,{value:d,children:e})},"buildGridTemplate",0,d,"highlightBestStore",0,{get:()=>a,set:e=>{if(a!==e)for(let t of(a=e,o))t()}},"useHighlightBest",0,c],268097);var y=e.i(288027),v=e.i(238032),b=e.i(586404);function x(e,t,r){let n=[];if(e.forEach((e,t)=>{if(null==e)return;let i=Number(e);!Number.isFinite(i)||!(i<0)&&(0!==i||r?.includeZeroValues)&&n.push({index:t,num:i})}),n.length<2)return[];let i=[],a="min"===t?1/0:-1/0;for(let{index:e,num:r}of n){if("min"===t?ra){i=[e],a=r;continue}r===a&&i.push(e)}return 1===i.length?i:[]}function T({visibleIndices:e,allModels:t,extract:r,dir:n,options:i}){return x(e.map((e,n)=>{let i=t[e];if(i)return r(i,n)}),n,i)}e.s(["anyModel",0,function(e,t){return e.some((e,r)=>!!t(e,r))},"authorLabelFor",0,function(e,t,r){let n=r[t];return n?.name??n?.slug??e.author},"buildValues",0,function(e,r,n){return e.map(e=>{let a=r[e];return a?(0,t.jsx)(i.Fragment,{children:n(a,e)},e):(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:"—"},e)})},"formatNameKeepNote",0,function(e){return(0,v.formatModelName)(e.short_name,{keepNote:!0})},"highestVisibleIndex",0,function({visibleIndices:e,allModels:t,extract:r,options:n}){return T({visibleIndices:e,allModels:t,extract:r,dir:"max",options:n})},"isPricedField",0,function(e){return(0,b.isDefinedAndNotNull)(e)&&(0,y.bn)(e).gte(0)},"joinList",0,function(e){return 0===e.length?"":1===e.length?e[0]??"":2===e.length?`${e[0]} and ${e[1]}`:`${e.slice(0,-1).join(", ")}, and ${e.at(-1)}`},"lowestVisibleIndex",0,function(e,t,r){return T({visibleIndices:e,allModels:t,extract:r,dir:"min"})},"winningValueIndices",0,x],62380)},428755,416363,e=>{"use strict";var t=e.i(505962),r=e.i(270401),n=e.i(323866);e.s(["useCompareScroll",0,function(){let e,i,a,o,s=(0,t.c)(6),l=(0,r.useRef)(null),u=(0,r.useRef)(null);s[0]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{if(u.current&&(u.current(),u.current=null),!e)return;let t=()=>{let t=document.querySelector("#page-content"),r=t?Number.parseFloat(getComputedStyle(t).getPropertyValue("--sticky-banner-top")):0,n=Math.ceil(56+(Number.isFinite(r)?r:0)+e.getBoundingClientRect().height)-8;document.documentElement.style.setProperty("--cards-sticky-bottom-px",`${n}px`)};t();let r="u"{r?.disconnect(),a?.disconnect()}},s[0]=e):e=s[0];let c=e,[d,p]=(0,r.useState)(!1),[m,f]=(0,r.useState)(!1),g=(0,r.useRef)(null);s[1]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{if(g.current?.(),g.current=null,!e)return;let t=t=>{if(1>Math.abs(t.deltaX)||t.target instanceof Element&&t.target.closest("[data-synced-scroll-wrapper]"))return;let r=e.querySelector("[data-synced-scroll-wrapper]");if(!r)return;let n=r.scrollWidth-r.clientWidth,i=r.scrollLeft<=0,a=r.scrollLeft>=n;t.deltaX<0&&i||t.deltaX>0&&a||(r.scrollLeft=r.scrollLeft+t.deltaX,t.preventDefault())};e.addEventListener("wheel",t,{passive:!1}),g.current=()=>{e.removeEventListener("wheel",t)}},s[1]=i):i=s[1];let h=i;s[2]===Symbol.for("react.memo_cache_sentinel")?(a=(e,t)=>{let r=e>0?`translate3d(${-e}px, 0, 0)`:"",n=l.current;for(let e of(n&&(n.style.transform=r),document.querySelectorAll("[data-synced-translate-target]")))e.style.transform=r;p(e>4),f(e+4{(0,i.flushSync)(e)});t&&r.finished.then(t,t)}],416363)},470573,e=>{"use strict";var t=e.i(748700);function r(e){switch(e.type){case t.CapabilityType.Enum:return e.values.join(", ");case t.CapabilityType.Range:return`${e.min}–${e.max}`;case t.CapabilityType.Boolean:return"Supported";default:return"—"}}e.s(["getCapabilityComparableValue",0,function(e){if(!e)return 0;switch(e.type){case t.CapabilityType.Enum:return e.values.length;case t.CapabilityType.Range:return e.max;case t.CapabilityType.Boolean:return 1;default:return 0}},"getCapabilityTypeLabel",0,function(e){switch(e.type){case t.CapabilityType.Enum:return"enum";case t.CapabilityType.Range:return"range";case t.CapabilityType.Boolean:return"boolean";default:return"unknown"}},"getCapabilityValuesLabel",0,r,"getCompareCapabilityValuesLabel",0,function(e){return e.type!==t.CapabilityType.Range?r(e):e.min===e.max?String(e.max):e.min<=1?`Up to ${e.max}`:`${e.min}–${e.max}`},"hasComparableCapabilityType",0,function(e){return new Set(e.filter(e=>void 0!==e).map(e=>e.type)).size<=1}])},761512,e=>{"use strict";var t=e.i(963);let r={[t.OutputModality.Text]:"bg-modality-text/12",[t.OutputModality.Image]:"bg-modality-image/12",[t.OutputModality.Audio]:"bg-modality-audio/12",[t.OutputModality.Video]:"bg-modality-video/12",[t.OutputModality.Embeddings]:"bg-modality-embeddings/12",[t.OutputModality.Rerank]:"bg-modality-rerank/12",[t.OutputModality.TTS]:"bg-modality-tts/12",[t.OutputModality.Transcription]:"bg-modality-transcription/12"},n={[t.OutputModality.Text]:"text-modality-text",[t.OutputModality.Image]:"text-modality-image",[t.OutputModality.Audio]:"text-modality-audio",[t.OutputModality.Video]:"text-modality-video",[t.OutputModality.Embeddings]:"text-modality-embeddings",[t.OutputModality.Rerank]:"text-modality-rerank",[t.OutputModality.TTS]:"text-modality-tts",[t.OutputModality.Transcription]:"text-modality-transcription"},i={[t.OutputModality.Text]:"border-modality-text",[t.OutputModality.Image]:"border-modality-image",[t.OutputModality.Audio]:"border-modality-audio",[t.OutputModality.Video]:"border-modality-video",[t.OutputModality.Embeddings]:"border-modality-embeddings",[t.OutputModality.Rerank]:"border-modality-rerank",[t.OutputModality.TTS]:"border-modality-tts",[t.OutputModality.Transcription]:"border-modality-transcription"},a={[t.OutputModality.Text]:"group-hover:text-modality-text",[t.OutputModality.Image]:"group-hover:text-modality-image",[t.OutputModality.Audio]:"group-hover:text-modality-audio",[t.OutputModality.Video]:"group-hover:text-modality-video",[t.OutputModality.Embeddings]:"group-hover:text-modality-embeddings",[t.OutputModality.Rerank]:"group-hover:text-modality-rerank",[t.OutputModality.TTS]:"group-hover:text-modality-tts",[t.OutputModality.Transcription]:"group-hover:text-modality-transcription"};e.s(["MODALITY_BG",0,r,"MODALITY_ICON_BORDER",0,i,"MODALITY_ICON_COLOR",0,n,"MODALITY_ICON_GROUP_HOVER",0,a])},353524,e=>{"use strict";var t=e.i(963),r=e.i(151960),n=e.i(626824),i=e.i(12266),a=e.i(555618),o=e.i(706527),s=e.i(204067),l=e.i(796805),u=e.i(8842),c=e.i(450740);let d=l.z.object({kind:l.z.enum(i.DisplayPricingKind),sku_label:l.z.string(),price:l.z.string(),displayMultiplier:(0,s.zDouble)(),unitLabel:l.z.string(),tiers:l.z.array(l.z.object({sku_label:l.z.string(),price:l.z.string()})).optional(),isServerTool:l.z.boolean().optional(),isDiscountExempt:l.z.boolean().optional(),scheduleWindows:l.z.array(l.z.object({utc_start:(0,s.zInt)(),utc_end:(0,s.zInt)()})).optional()}),p=l.z.object({slug:l.z.string(),permaslug:l.z.string(),name:l.z.string(),description:l.z.string(),created_at:l.z.string(),context_length:(0,s.zInt)(),output_modalities:l.z.array(l.z.enum(t.OutputModality)),endpoint:l.z.object({model_variant_slug:l.z.string(),model_variant_permaslug:l.z.string(),display_pricing:l.z.array(d),is_free:l.z.boolean(),pricing:a.PublicPricingSchema}).nullable()}),m=(0,s.buildZodGuard)(p),f=l.z.custom(m),g=l.z.object({author:l.z.object({slug:l.z.string(),name:l.z.string().nullable()}),models:l.z.array(f)}),h=(0,n.createQueryKeys)("author-models",{detail:e=>[null===e?null:{authorSlug:e}]});function y(e){return(0,u.queryOptions)({queryKey:h.detail(e),queryFn:null===e?c.skipToken:({signal:t})=>(0,r.fetchAPIQuery)("/api/frontend/v1/author-models",{searchParams:{authorSlug:e},signal:t,schema:g})})}e.s(["authorModelsOptions",0,y,"moreModelsOptions",0,function(e,t){let r=y(e);return(0,u.queryOptions)({...r,queryFn:null===t?c.skipToken:r.queryFn,select:e=>({...e,models:e.models.filter(e=>(0,o.getModelVariantSlug)(e)!==t).toSorted((e,t)=>new Date(t.created_at).getTime()-new Date(e.created_at).getTime())})})}])}]); //# sourceMappingURL=0lp4it9ep0t2z.js.map //# chunkId=01a09b99-99d6-71f2-b738-ed1aa7a8638f