@psnext/slingcli 2.5.20260718-2 → 2.5.20260719-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,7 +32,7 @@ ${s}`),i.push({type:"error",reason:o.stopReason,error:o}),i.end()}})(),i},RD=(t,
32
32
  `);for(;s!==-1;){let a=LT(i.slice(0,s));a&&(yield a),i=i.slice(s+2),s=i.indexOf(`
33
33
 
34
34
  `)}if(o)break}if(i.trim()){let o=LT(i);o&&(yield o)}}finally{n.releaseLock()}}function LT(t){let e=t.split(`
35
- `).find(n=>n.startsWith("data:"))?.slice(5).trim();return e&&e!=="[DONE]"?JSON.parse(e):void 0}function oU(t,e,n){let i=n?"aborted":"error",o={role:"assistant",content:[],api:t.api,provider:t.provider,model:t.id,usage:WT(),stopReason:i,errorMessage:e instanceof Error?e.message:String(e),timestamp:Date.now()};return!n&&e instanceof wc&&bc(o,rp("pi_messages_response_failure",e,e.diagnosticDetails)),{type:"error",reason:i,error:o}}function rU(t,e){return t||(Ae("PI_CACHE_RETENTION",e)==="long"?"long":void 0)}var wc,FT,sU,UT=_e(()=>{"use strict";Tf();ii();Ji();Sa();Yi();wc=class extends Error{constructor(e,n,i){super(e),this.name="PiMessagesResponseError",this.code=n,this.diagnosticDetails=i}};FT=(t,e,n)=>{let i=new st,o=nU(t);return(async()=>{try{let r=n?.apiKey;if(!r)throw new Error(`No API key provided for provider "${t.provider}"`);let s=new URL(`${t.baseUrl.replace(/\/+$/u,"")}/messages`);n?.debug&&s.searchParams.set("debug","1");let a={model:t.id,context:e,options:{temperature:n?.temperature,maxTokens:n?.maxTokens,reasoning:n?.reasoning,cacheRetention:rU(n?.cacheRetention,n?.env),sessionId:n?.sessionId,toolChoice:n?.toolChoice}},l=await n?.onPayload?.(a,t);l!==void 0&&(a=l);let c=await fetch(s,{method:"POST",headers:{authorization:`Bearer ${r}`,accept:"text/event-stream","content-type":"application/json",...wa(n?.headers)},body:JSON.stringify(a),signal:n?.signal});if(await n?.onResponse?.({status:c.status,headers:kn(c.headers)},t),!c.ok){let u=await c.text();throw tU(t,s,c,u)}if(!c.body)throw new Error(`${t.provider} response has no body`);for await(let u of iU(c.body)){let d=o(u);if(i.push(d),d.type==="done"||d.type==="error")return}throw new Error(`${t.provider} stream ended without a terminal event`)}catch(r){i.push(oU(t,r,n?.signal?.aborted??!1))}})(),i},sU=(t,e,n)=>{let i=n;return FT(t,e,{...n,reasoning:n?.reasoning,toolChoice:i?.toolChoice,debug:i?.debug})}});var Qt=C(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.HasPropertyKey=TV;It.IsAsyncIterator=CV;It.IsArray=rx;It.IsBigInt=MV;It.IsBoolean=RV;It.IsDate=PV;It.IsFunction=IV;It.IsIterator=EV;It.IsNull=AV;It.IsNumber=_V;It.IsObject=sx;It.IsRegExp=OV;It.IsString=LV;It.IsSymbol=WV;It.IsUint8Array=ax;It.IsUndefined=FV;function TV(t,e){return e in t}function CV(t){return sx(t)&&!rx(t)&&!ax(t)&&Symbol.asyncIterator in t}function rx(t){return Array.isArray(t)}function MV(t){return typeof t=="bigint"}function RV(t){return typeof t=="boolean"}function PV(t){return t instanceof globalThis.Date}function IV(t){return typeof t=="function"}function EV(t){return sx(t)&&!rx(t)&&!ax(t)&&Symbol.iterator in t}function AV(t){return t===null}function _V(t){return typeof t=="number"}function sx(t){return typeof t=="object"&&t!==null}function OV(t){return t instanceof globalThis.RegExp}function LV(t){return typeof t=="string"}function WV(t){return typeof t=="symbol"}function ax(t){return t instanceof globalThis.Uint8Array}function FV(t){return t===void 0}});var ln=C(mo=>{"use strict";var DV=mo&&mo.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),UV=mo&&mo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$V=mo&&mo.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&DV(n,e,i[o]);return UV(n,e),n}})();Object.defineProperty(mo,"__esModule",{value:!0});mo.Clone=GV;var Ku=$V(Qt());function NV(t){return t.map(e=>Sh(e))}function BV(t){return new Date(t.getTime())}function jV(t){return new Uint8Array(t)}function qV(t){return new RegExp(t.source,t.flags)}function KV(t){let e={};for(let n of Object.getOwnPropertyNames(t))e[n]=Sh(t[n]);for(let n of Object.getOwnPropertySymbols(t))e[n]=Sh(t[n]);return e}function Sh(t){return Ku.IsArray(t)?NV(t):Ku.IsDate(t)?BV(t):Ku.IsUint8Array(t)?jV(t):Ku.IsRegExp(t)?qV(t):Ku.IsObject(t)?KV(t):t}function GV(t){return Sh(t)}});var Th=C(kh=>{"use strict";Object.defineProperty(kh,"__esModule",{value:!0});kh.CloneRest=zV;kh.CloneType=g_;var h_=ln();function zV(t){return t.map(e=>g_(e))}function g_(t,e){return e===void 0?(0,h_.Clone)(t):(0,h_.Clone)({...e,...t})}});var lx=C(sr=>{"use strict";var HV=sr&&sr.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),f_=sr&&sr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&HV(e,t,n)};Object.defineProperty(sr,"__esModule",{value:!0});f_(Th(),sr);f_(ln(),sr)});var M_=C(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.IsAsyncIterator=VV;Ie.IsIterator=QV;Ie.IsStandardObject=JV;Ie.IsInstanceObject=YV;Ie.IsPromise=XV;Ie.IsDate=ZV;Ie.IsMap=eQ;Ie.IsSet=tQ;Ie.IsRegExp=nQ;Ie.IsTypedArray=iQ;Ie.IsInt8Array=oQ;Ie.IsUint8Array=rQ;Ie.IsUint8ClampedArray=sQ;Ie.IsInt16Array=aQ;Ie.IsUint16Array=lQ;Ie.IsInt32Array=cQ;Ie.IsUint32Array=uQ;Ie.IsFloat32Array=dQ;Ie.IsFloat64Array=pQ;Ie.IsBigInt64Array=mQ;Ie.IsBigUint64Array=hQ;Ie.HasPropertyKey=gQ;Ie.IsObject=Gu;Ie.IsArray=v_;Ie.IsUndefined=b_;Ie.IsNull=x_;Ie.IsBoolean=y_;Ie.IsNumber=w_;Ie.IsInteger=fQ;Ie.IsBigInt=S_;Ie.IsString=k_;Ie.IsFunction=T_;Ie.IsSymbol=C_;Ie.IsValueType=vQ;function VV(t){return Gu(t)&&globalThis.Symbol.asyncIterator in t}function QV(t){return Gu(t)&&globalThis.Symbol.iterator in t}function JV(t){return Gu(t)&&(globalThis.Object.getPrototypeOf(t)===Object.prototype||globalThis.Object.getPrototypeOf(t)===null)}function YV(t){return Gu(t)&&!v_(t)&&T_(t.constructor)&&t.constructor.name!=="Object"}function XV(t){return t instanceof globalThis.Promise}function ZV(t){return t instanceof Date&&globalThis.Number.isFinite(t.getTime())}function eQ(t){return t instanceof globalThis.Map}function tQ(t){return t instanceof globalThis.Set}function nQ(t){return t instanceof globalThis.RegExp}function iQ(t){return globalThis.ArrayBuffer.isView(t)}function oQ(t){return t instanceof globalThis.Int8Array}function rQ(t){return t instanceof globalThis.Uint8Array}function sQ(t){return t instanceof globalThis.Uint8ClampedArray}function aQ(t){return t instanceof globalThis.Int16Array}function lQ(t){return t instanceof globalThis.Uint16Array}function cQ(t){return t instanceof globalThis.Int32Array}function uQ(t){return t instanceof globalThis.Uint32Array}function dQ(t){return t instanceof globalThis.Float32Array}function pQ(t){return t instanceof globalThis.Float64Array}function mQ(t){return t instanceof globalThis.BigInt64Array}function hQ(t){return t instanceof globalThis.BigUint64Array}function gQ(t,e){return e in t}function Gu(t){return t!==null&&typeof t=="object"}function v_(t){return globalThis.Array.isArray(t)&&!globalThis.ArrayBuffer.isView(t)}function b_(t){return t===void 0}function x_(t){return t===null}function y_(t){return typeof t=="boolean"}function w_(t){return typeof t=="number"}function fQ(t){return globalThis.Number.isInteger(t)}function S_(t){return typeof t=="bigint"}function k_(t){return typeof t=="string"}function T_(t){return typeof t=="function"}function C_(t){return typeof t=="symbol"}function vQ(t){return S_(t)||y_(t)||x_(t)||w_(t)||k_(t)||C_(t)||b_(t)}});var R_=C(ls=>{"use strict";var bQ=ls&&ls.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),xQ=ls&&ls.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&bQ(e,t,n)};Object.defineProperty(ls,"__esModule",{value:!0});xQ(M_(),ls)});var I_=C(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});Mh.TypeSystemPolicy=void 0;var Ch=R_(),P_;(function(t){t.InstanceMode="default",t.ExactOptionalPropertyTypes=!1,t.AllowArrayObject=!1,t.AllowNaN=!1,t.AllowNullVoid=!1;function e(s,a){return t.ExactOptionalPropertyTypes?a in s:s[a]!==void 0}t.IsExactOptionalProperty=e;function n(s){let a=(0,Ch.IsObject)(s);return t.AllowArrayObject?a:a&&!(0,Ch.IsArray)(s)}t.IsObjectLike=n;function i(s){return n(s)&&!(s instanceof Date)&&!(s instanceof Uint8Array)}t.IsRecordLike=i;function o(s){return t.AllowNaN?(0,Ch.IsNumber)(s):Number.isFinite(s)}t.IsNumberLike=o;function r(s){let a=(0,Ch.IsUndefined)(s);return t.AllowNullVoid?a||s===null:a}t.IsVoidLike=r})(P_||(Mh.TypeSystemPolicy=P_={}))});var E_=C(ho=>{"use strict";var yQ=ho&&ho.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),wQ=ho&&ho.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),SQ=ho&&ho.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&yQ(n,e,i[o]);return wQ(n,e),n}})();Object.defineProperty(ho,"__esModule",{value:!0});ho.Immutable=Rh;var zu=SQ(Qt());function kQ(t){return globalThis.Object.freeze(t).map(e=>Rh(e))}function TQ(t){let e={};for(let n of Object.getOwnPropertyNames(t))e[n]=Rh(t[n]);for(let n of Object.getOwnPropertySymbols(t))e[n]=Rh(t[n]);return globalThis.Object.freeze(e)}function Rh(t){return zu.IsArray(t)?kQ(t):zu.IsDate(t)?t:zu.IsUint8Array(t)?t:zu.IsRegExp(t)?t:zu.IsObject(t)?TQ(t):t}});var he=C(cx=>{"use strict";Object.defineProperty(cx,"__esModule",{value:!0});cx.CreateType=PQ;var CQ=I_(),MQ=E_(),RQ=ln();function PQ(t,e){let n=e!==void 0?{...e,...t}:t;switch(CQ.TypeSystemPolicy.InstanceMode){case"freeze":return(0,MQ.Immutable)(n);case"clone":return(0,RQ.Clone)(n);default:return n}}});var go=C(cs=>{"use strict";var IQ=cs&&cs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),EQ=cs&&cs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&IQ(e,t,n)};Object.defineProperty(cs,"__esModule",{value:!0});EQ(he(),cs)});var A_=C(Ph=>{"use strict";Object.defineProperty(Ph,"__esModule",{value:!0});Ph.TypeBoxError=void 0;var ux=class extends Error{constructor(e){super(e)}};Ph.TypeBoxError=ux});var Li=C(us=>{"use strict";var AQ=us&&us.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),_Q=us&&us.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&AQ(e,t,n)};Object.defineProperty(us,"__esModule",{value:!0});_Q(A_(),us)});var Hu=C(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.Kind=Vn.Hint=Vn.OptionalKind=Vn.ReadonlyKind=Vn.TransformKind=void 0;Vn.TransformKind=Symbol.for("TypeBox.Transform");Vn.ReadonlyKind=Symbol.for("TypeBox.Readonly");Vn.OptionalKind=Symbol.for("TypeBox.Optional");Vn.Hint=Symbol.for("TypeBox.Hint");Vn.Kind=Symbol.for("TypeBox.Kind")});var me=C(ds=>{"use strict";var OQ=ds&&ds.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),LQ=ds&&ds.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&OQ(e,t,n)};Object.defineProperty(ds,"__esModule",{value:!0});LQ(Hu(),ds)});var Oe=C(de=>{"use strict";var WQ=de&&de.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),FQ=de&&de.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),DQ=de&&de.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&WQ(n,e,i[o]);return FQ(n,e),n}})();Object.defineProperty(de,"__esModule",{value:!0});de.IsReadonly=UQ;de.IsOptional=$Q;de.IsAny=__;de.IsArgument=O_;de.IsArray=L_;de.IsAsyncIterator=W_;de.IsBigInt=F_;de.IsBoolean=D_;de.IsComputed=U_;de.IsConstructor=$_;de.IsDate=N_;de.IsFunction=B_;de.IsImport=NQ;de.IsInteger=j_;de.IsProperties=BQ;de.IsIntersect=q_;de.IsIterator=K_;de.IsKindOf=Re;de.IsLiteralString=jQ;de.IsLiteralNumber=qQ;de.IsLiteralBoolean=KQ;de.IsLiteralValue=GQ;de.IsLiteral=Vu;de.IsMappedKey=G_;de.IsMappedResult=z_;de.IsNever=H_;de.IsNot=V_;de.IsNull=Q_;de.IsNumber=J_;de.IsObject=Y_;de.IsPromise=X_;de.IsRecord=Z_;de.IsRecursive=zQ;de.IsRef=e2;de.IsRegExp=t2;de.IsString=n2;de.IsSymbol=i2;de.IsTemplateLiteral=o2;de.IsThis=r2;de.IsTransform=HQ;de.IsTuple=s2;de.IsUndefined=a2;de.IsUnion=l2;de.IsUint8Array=c2;de.IsUnknown=u2;de.IsUnsafe=d2;de.IsVoid=p2;de.IsKind=m2;de.IsSchema=VQ;var cn=DQ(Qt()),fo=me();function UQ(t){return cn.IsObject(t)&&t[fo.ReadonlyKind]==="Readonly"}function $Q(t){return cn.IsObject(t)&&t[fo.OptionalKind]==="Optional"}function __(t){return Re(t,"Any")}function O_(t){return Re(t,"Argument")}function L_(t){return Re(t,"Array")}function W_(t){return Re(t,"AsyncIterator")}function F_(t){return Re(t,"BigInt")}function D_(t){return Re(t,"Boolean")}function U_(t){return Re(t,"Computed")}function $_(t){return Re(t,"Constructor")}function N_(t){return Re(t,"Date")}function B_(t){return Re(t,"Function")}function NQ(t){return Re(t,"Import")}function j_(t){return Re(t,"Integer")}function BQ(t){return cn.IsObject(t)}function q_(t){return Re(t,"Intersect")}function K_(t){return Re(t,"Iterator")}function Re(t,e){return cn.IsObject(t)&&fo.Kind in t&&t[fo.Kind]===e}function jQ(t){return Vu(t)&&cn.IsString(t.const)}function qQ(t){return Vu(t)&&cn.IsNumber(t.const)}function KQ(t){return Vu(t)&&cn.IsBoolean(t.const)}function GQ(t){return cn.IsBoolean(t)||cn.IsNumber(t)||cn.IsString(t)}function Vu(t){return Re(t,"Literal")}function G_(t){return Re(t,"MappedKey")}function z_(t){return Re(t,"MappedResult")}function H_(t){return Re(t,"Never")}function V_(t){return Re(t,"Not")}function Q_(t){return Re(t,"Null")}function J_(t){return Re(t,"Number")}function Y_(t){return Re(t,"Object")}function X_(t){return Re(t,"Promise")}function Z_(t){return Re(t,"Record")}function zQ(t){return cn.IsObject(t)&&fo.Hint in t&&t[fo.Hint]==="Recursive"}function e2(t){return Re(t,"Ref")}function t2(t){return Re(t,"RegExp")}function n2(t){return Re(t,"String")}function i2(t){return Re(t,"Symbol")}function o2(t){return Re(t,"TemplateLiteral")}function r2(t){return Re(t,"This")}function HQ(t){return cn.IsObject(t)&&fo.TransformKind in t}function s2(t){return Re(t,"Tuple")}function a2(t){return Re(t,"Undefined")}function l2(t){return Re(t,"Union")}function c2(t){return Re(t,"Uint8Array")}function u2(t){return Re(t,"Unknown")}function d2(t){return Re(t,"Unsafe")}function p2(t){return Re(t,"Void")}function m2(t){return cn.IsObject(t)&&fo.Kind in t&&cn.IsString(t[fo.Kind])}function VQ(t){return __(t)||O_(t)||L_(t)||D_(t)||F_(t)||W_(t)||U_(t)||$_(t)||N_(t)||B_(t)||j_(t)||q_(t)||K_(t)||Vu(t)||G_(t)||z_(t)||H_(t)||V_(t)||Q_(t)||J_(t)||Y_(t)||X_(t)||Z_(t)||e2(t)||t2(t)||n2(t)||i2(t)||o2(t)||r2(t)||s2(t)||a2(t)||l2(t)||c2(t)||u2(t)||d2(t)||p2(t)||m2(t)}});var nO=C(ae=>{"use strict";var QQ=ae&&ae.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),JQ=ae&&ae.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),YQ=ae&&ae.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&QQ(n,e,i[o]);return JQ(n,e),n}})();Object.defineProperty(ae,"__esModule",{value:!0});ae.TypeGuardUnknownTypeError=void 0;ae.IsReadonly=nJ;ae.IsOptional=iJ;ae.IsAny=v2;ae.IsArgument=b2;ae.IsArray=x2;ae.IsAsyncIterator=y2;ae.IsBigInt=w2;ae.IsBoolean=S2;ae.IsComputed=k2;ae.IsConstructor=T2;ae.IsDate=C2;ae.IsFunction=M2;ae.IsImport=oJ;ae.IsInteger=R2;ae.IsProperties=Ih;ae.IsIntersect=P2;ae.IsIterator=I2;ae.IsKindOf=Pe;ae.IsLiteralString=E2;ae.IsLiteralNumber=A2;ae.IsLiteralBoolean=rJ;ae.IsLiteral=Ju;ae.IsLiteralValue=_2;ae.IsMappedKey=O2;ae.IsMappedResult=L2;ae.IsNever=W2;ae.IsNot=F2;ae.IsNull=D2;ae.IsNumber=U2;ae.IsObject=$2;ae.IsPromise=N2;ae.IsRecord=B2;ae.IsRecursive=sJ;ae.IsRef=j2;ae.IsRegExp=q2;ae.IsString=K2;ae.IsSymbol=G2;ae.IsTemplateLiteral=z2;ae.IsThis=H2;ae.IsTransform=V2;ae.IsTuple=Q2;ae.IsUndefined=J2;ae.IsUnionLiteral=aJ;ae.IsUnion=hx;ae.IsUint8Array=Y2;ae.IsUnknown=X2;ae.IsUnsafe=Z2;ae.IsVoid=eO;ae.IsKind=tO;ae.IsSchema=Et;var ue=YQ(Qt()),Wi=me(),XQ=Li(),dx=class extends XQ.TypeBoxError{};ae.TypeGuardUnknownTypeError=dx;var ZQ=["Argument","Any","Array","AsyncIterator","BigInt","Boolean","Computed","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function h2(t){try{return new RegExp(t),!0}catch{return!1}}function px(t){if(!ue.IsString(t))return!1;for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n>=7&&n<=13||n===27||n===127)return!1}return!0}function g2(t){return mx(t)||Et(t)}function Qu(t){return ue.IsUndefined(t)||ue.IsBigInt(t)}function Ve(t){return ue.IsUndefined(t)||ue.IsNumber(t)}function mx(t){return ue.IsUndefined(t)||ue.IsBoolean(t)}function qe(t){return ue.IsUndefined(t)||ue.IsString(t)}function eJ(t){return ue.IsUndefined(t)||ue.IsString(t)&&px(t)&&h2(t)}function tJ(t){return ue.IsUndefined(t)||ue.IsString(t)&&px(t)}function f2(t){return ue.IsUndefined(t)||Et(t)}function nJ(t){return ue.IsObject(t)&&t[Wi.ReadonlyKind]==="Readonly"}function iJ(t){return ue.IsObject(t)&&t[Wi.OptionalKind]==="Optional"}function v2(t){return Pe(t,"Any")&&qe(t.$id)}function b2(t){return Pe(t,"Argument")&&ue.IsNumber(t.index)}function x2(t){return Pe(t,"Array")&&t.type==="array"&&qe(t.$id)&&Et(t.items)&&Ve(t.minItems)&&Ve(t.maxItems)&&mx(t.uniqueItems)&&f2(t.contains)&&Ve(t.minContains)&&Ve(t.maxContains)}function y2(t){return Pe(t,"AsyncIterator")&&t.type==="AsyncIterator"&&qe(t.$id)&&Et(t.items)}function w2(t){return Pe(t,"BigInt")&&t.type==="bigint"&&qe(t.$id)&&Qu(t.exclusiveMaximum)&&Qu(t.exclusiveMinimum)&&Qu(t.maximum)&&Qu(t.minimum)&&Qu(t.multipleOf)}function S2(t){return Pe(t,"Boolean")&&t.type==="boolean"&&qe(t.$id)}function k2(t){return Pe(t,"Computed")&&ue.IsString(t.target)&&ue.IsArray(t.parameters)&&t.parameters.every(e=>Et(e))}function T2(t){return Pe(t,"Constructor")&&t.type==="Constructor"&&qe(t.$id)&&ue.IsArray(t.parameters)&&t.parameters.every(e=>Et(e))&&Et(t.returns)}function C2(t){return Pe(t,"Date")&&t.type==="Date"&&qe(t.$id)&&Ve(t.exclusiveMaximumTimestamp)&&Ve(t.exclusiveMinimumTimestamp)&&Ve(t.maximumTimestamp)&&Ve(t.minimumTimestamp)&&Ve(t.multipleOfTimestamp)}function M2(t){return Pe(t,"Function")&&t.type==="Function"&&qe(t.$id)&&ue.IsArray(t.parameters)&&t.parameters.every(e=>Et(e))&&Et(t.returns)}function oJ(t){return Pe(t,"Import")&&ue.HasPropertyKey(t,"$defs")&&ue.IsObject(t.$defs)&&Ih(t.$defs)&&ue.HasPropertyKey(t,"$ref")&&ue.IsString(t.$ref)&&t.$ref in t.$defs}function R2(t){return Pe(t,"Integer")&&t.type==="integer"&&qe(t.$id)&&Ve(t.exclusiveMaximum)&&Ve(t.exclusiveMinimum)&&Ve(t.maximum)&&Ve(t.minimum)&&Ve(t.multipleOf)}function Ih(t){return ue.IsObject(t)&&Object.entries(t).every(([e,n])=>px(e)&&Et(n))}function P2(t){return Pe(t,"Intersect")&&!(ue.IsString(t.type)&&t.type!=="object")&&ue.IsArray(t.allOf)&&t.allOf.every(e=>Et(e)&&!V2(e))&&qe(t.type)&&(mx(t.unevaluatedProperties)||f2(t.unevaluatedProperties))&&qe(t.$id)}function I2(t){return Pe(t,"Iterator")&&t.type==="Iterator"&&qe(t.$id)&&Et(t.items)}function Pe(t,e){return ue.IsObject(t)&&Wi.Kind in t&&t[Wi.Kind]===e}function E2(t){return Ju(t)&&ue.IsString(t.const)}function A2(t){return Ju(t)&&ue.IsNumber(t.const)}function rJ(t){return Ju(t)&&ue.IsBoolean(t.const)}function Ju(t){return Pe(t,"Literal")&&qe(t.$id)&&_2(t.const)}function _2(t){return ue.IsBoolean(t)||ue.IsNumber(t)||ue.IsString(t)}function O2(t){return Pe(t,"MappedKey")&&ue.IsArray(t.keys)&&t.keys.every(e=>ue.IsNumber(e)||ue.IsString(e))}function L2(t){return Pe(t,"MappedResult")&&Ih(t.properties)}function W2(t){return Pe(t,"Never")&&ue.IsObject(t.not)&&Object.getOwnPropertyNames(t.not).length===0}function F2(t){return Pe(t,"Not")&&Et(t.not)}function D2(t){return Pe(t,"Null")&&t.type==="null"&&qe(t.$id)}function U2(t){return Pe(t,"Number")&&t.type==="number"&&qe(t.$id)&&Ve(t.exclusiveMaximum)&&Ve(t.exclusiveMinimum)&&Ve(t.maximum)&&Ve(t.minimum)&&Ve(t.multipleOf)}function $2(t){return Pe(t,"Object")&&t.type==="object"&&qe(t.$id)&&Ih(t.properties)&&g2(t.additionalProperties)&&Ve(t.minProperties)&&Ve(t.maxProperties)}function N2(t){return Pe(t,"Promise")&&t.type==="Promise"&&qe(t.$id)&&Et(t.item)}function B2(t){return Pe(t,"Record")&&t.type==="object"&&qe(t.$id)&&g2(t.additionalProperties)&&ue.IsObject(t.patternProperties)&&(e=>{let n=Object.getOwnPropertyNames(e.patternProperties);return n.length===1&&h2(n[0])&&ue.IsObject(e.patternProperties)&&Et(e.patternProperties[n[0]])})(t)}function sJ(t){return ue.IsObject(t)&&Wi.Hint in t&&t[Wi.Hint]==="Recursive"}function j2(t){return Pe(t,"Ref")&&qe(t.$id)&&ue.IsString(t.$ref)}function q2(t){return Pe(t,"RegExp")&&qe(t.$id)&&ue.IsString(t.source)&&ue.IsString(t.flags)&&Ve(t.maxLength)&&Ve(t.minLength)}function K2(t){return Pe(t,"String")&&t.type==="string"&&qe(t.$id)&&Ve(t.minLength)&&Ve(t.maxLength)&&eJ(t.pattern)&&tJ(t.format)}function G2(t){return Pe(t,"Symbol")&&t.type==="symbol"&&qe(t.$id)}function z2(t){return Pe(t,"TemplateLiteral")&&t.type==="string"&&ue.IsString(t.pattern)&&t.pattern[0]==="^"&&t.pattern[t.pattern.length-1]==="$"}function H2(t){return Pe(t,"This")&&qe(t.$id)&&ue.IsString(t.$ref)}function V2(t){return ue.IsObject(t)&&Wi.TransformKind in t}function Q2(t){return Pe(t,"Tuple")&&t.type==="array"&&qe(t.$id)&&ue.IsNumber(t.minItems)&&ue.IsNumber(t.maxItems)&&t.minItems===t.maxItems&&(ue.IsUndefined(t.items)&&ue.IsUndefined(t.additionalItems)&&t.minItems===0||ue.IsArray(t.items)&&t.items.every(e=>Et(e)))}function J2(t){return Pe(t,"Undefined")&&t.type==="undefined"&&qe(t.$id)}function aJ(t){return hx(t)&&t.anyOf.every(e=>E2(e)||A2(e))}function hx(t){return Pe(t,"Union")&&qe(t.$id)&&ue.IsObject(t)&&ue.IsArray(t.anyOf)&&t.anyOf.every(e=>Et(e))}function Y2(t){return Pe(t,"Uint8Array")&&t.type==="Uint8Array"&&qe(t.$id)&&Ve(t.minByteLength)&&Ve(t.maxByteLength)}function X2(t){return Pe(t,"Unknown")&&qe(t.$id)}function Z2(t){return Pe(t,"Unsafe")}function eO(t){return Pe(t,"Void")&&t.type==="void"&&qe(t.$id)}function tO(t){return ue.IsObject(t)&&Wi.Kind in t&&ue.IsString(t[Wi.Kind])&&!ZQ.includes(t[Wi.Kind])}function Et(t){return ue.IsObject(t)&&(v2(t)||b2(t)||x2(t)||S2(t)||w2(t)||y2(t)||k2(t)||T2(t)||C2(t)||M2(t)||R2(t)||P2(t)||I2(t)||Ju(t)||O2(t)||L2(t)||W2(t)||F2(t)||D2(t)||U2(t)||$2(t)||N2(t)||B2(t)||j2(t)||q2(t)||K2(t)||G2(t)||z2(t)||H2(t)||Q2(t)||J2(t)||hx(t)||Y2(t)||X2(t)||Z2(t)||eO(t)||tO(t))}});var fx=C(un=>{"use strict";var lJ=un&&un.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),cJ=un&&un.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),gx=un&&un.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&lJ(n,e,i[o]);return cJ(n,e),n}})();Object.defineProperty(un,"__esModule",{value:!0});un.ValueGuard=un.TypeGuard=un.KindGuard=void 0;un.KindGuard=gx(Oe());un.TypeGuard=gx(nO());un.ValueGuard=gx(Qt())});var iO=C(vx=>{"use strict";Object.defineProperty(vx,"__esModule",{value:!0});vx.Increment=uJ;function uJ(t){return(parseInt(t)+1).toString()}});var oO=C(ps=>{"use strict";var dJ=ps&&ps.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),pJ=ps&&ps.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&dJ(e,t,n)};Object.defineProperty(ps,"__esModule",{value:!0});pJ(iO(),ps)});var rO=C(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.PatternNeverExact=ct.PatternStringExact=ct.PatternNumberExact=ct.PatternBooleanExact=ct.PatternNever=ct.PatternString=ct.PatternNumber=ct.PatternBoolean=void 0;ct.PatternBoolean="(true|false)";ct.PatternNumber="(0|[1-9][0-9]*)";ct.PatternString="(.*)";ct.PatternNever="(?!.*)";ct.PatternBooleanExact=`^${ct.PatternBoolean}$`;ct.PatternNumberExact=`^${ct.PatternNumber}$`;ct.PatternStringExact=`^${ct.PatternString}$`;ct.PatternNeverExact=`^${ct.PatternNever}$`});var Yu=C(ms=>{"use strict";var mJ=ms&&ms.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),hJ=ms&&ms.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&mJ(e,t,n)};Object.defineProperty(ms,"__esModule",{value:!0});hJ(rO(),ms)});var sO=C(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.Entries=gJ;ar.Clear=fJ;ar.Delete=vJ;ar.Has=bJ;ar.Set=xJ;ar.Get=yJ;var $l=new Map;function gJ(){return new Map($l)}function fJ(){return $l.clear()}function vJ(t){return $l.delete(t)}function bJ(t){return $l.has(t)}function xJ(t,e){$l.set(t,e)}function yJ(t){return $l.get(t)}});var aO=C(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.Entries=wJ;lr.Clear=SJ;lr.Delete=kJ;lr.Has=TJ;lr.Set=CJ;lr.Get=MJ;var Nl=new Map;function wJ(){return new Map(Nl)}function SJ(){return Nl.clear()}function kJ(t){return Nl.delete(t)}function TJ(t){return Nl.has(t)}function CJ(t,e){Nl.set(t,e)}function MJ(t){return Nl.get(t)}});var cO=C(Qn=>{"use strict";var RJ=Qn&&Qn.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),PJ=Qn&&Qn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lO=Qn&&Qn.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&RJ(n,e,i[o]);return PJ(n,e),n}})();Object.defineProperty(Qn,"__esModule",{value:!0});Qn.TypeRegistry=Qn.FormatRegistry=void 0;Qn.FormatRegistry=lO(sO());Qn.TypeRegistry=lO(aO())});var pO=C(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.SetIncludes=uO;Fi.SetIsSubset=IJ;Fi.SetDistinct=EJ;Fi.SetIntersect=dO;Fi.SetUnion=AJ;Fi.SetComplement=_J;Fi.SetIntersectMany=LJ;Fi.SetUnionMany=WJ;function uO(t,e){return t.includes(e)}function IJ(t,e){return t.every(n=>uO(e,n))}function EJ(t){return[...new Set(t)]}function dO(t,e){return t.filter(n=>e.includes(n))}function AJ(t,e){return[...t,...e]}function _J(t,e){return t.filter(n=>!e.includes(n))}function OJ(t,e){return t.reduce((n,i)=>dO(n,i),e)}function LJ(t){return t.length===1?t[0]:t.length>1?OJ(t.slice(1),t[0]):[]}function WJ(t){let e=[];for(let n of t)e.push(...n);return e}});var Xu=C(hs=>{"use strict";var FJ=hs&&hs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),DJ=hs&&hs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&FJ(e,t,n)};Object.defineProperty(hs,"__esModule",{value:!0});DJ(pO(),hs)});var mO=C(bx=>{"use strict";Object.defineProperty(bx,"__esModule",{value:!0});bx.Any=NJ;var UJ=go(),$J=me();function NJ(t){return(0,UJ.CreateType)({[$J.Kind]:"Any"},t)}});var Bl=C(gs=>{"use strict";var BJ=gs&&gs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),jJ=gs&&gs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&BJ(e,t,n)};Object.defineProperty(gs,"__esModule",{value:!0});jJ(mO(),gs)});var hO=C(xx=>{"use strict";Object.defineProperty(xx,"__esModule",{value:!0});xx.Array=GJ;var qJ=he(),KJ=me();function GJ(t,e){return(0,qJ.CreateType)({[KJ.Kind]:"Array",type:"array",items:t},e)}});var jl=C(fs=>{"use strict";var zJ=fs&&fs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),HJ=fs&&fs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&zJ(e,t,n)};Object.defineProperty(fs,"__esModule",{value:!0});HJ(hO(),fs)});var gO=C(yx=>{"use strict";Object.defineProperty(yx,"__esModule",{value:!0});yx.Argument=JJ;var VJ=he(),QJ=me();function JJ(t){return(0,VJ.CreateType)({[QJ.Kind]:"Argument",index:t})}});var Eh=C(vs=>{"use strict";var YJ=vs&&vs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),XJ=vs&&vs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&YJ(e,t,n)};Object.defineProperty(vs,"__esModule",{value:!0});XJ(gO(),vs)});var fO=C(wx=>{"use strict";Object.defineProperty(wx,"__esModule",{value:!0});wx.AsyncIterator=tY;var ZJ=me(),eY=he();function tY(t,e){return(0,eY.CreateType)({[ZJ.Kind]:"AsyncIterator",type:"AsyncIterator",items:t},e)}});var ql=C(bs=>{"use strict";var nY=bs&&bs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),iY=bs&&bs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&nY(e,t,n)};Object.defineProperty(bs,"__esModule",{value:!0});iY(fO(),bs)});var vO=C(Sx=>{"use strict";Object.defineProperty(Sx,"__esModule",{value:!0});Sx.Computed=sY;var oY=go(),rY=Hu();function sY(t,e,n){return(0,oY.CreateType)({[rY.Kind]:"Computed",target:t,parameters:e},n)}});var cr=C(xs=>{"use strict";var aY=xs&&xs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),lY=xs&&xs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&aY(e,t,n)};Object.defineProperty(xs,"__esModule",{value:!0});lY(vO(),xs)});var Ah=C(kx=>{"use strict";Object.defineProperty(kx,"__esModule",{value:!0});kx.Discard=uY;function cY(t,e){let{[e]:n,...i}=t;return i}function uY(t,e){return e.reduce((n,i)=>cY(n,i),t)}});var vo=C(ys=>{"use strict";var dY=ys&&ys.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),pY=ys&&ys.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&dY(e,t,n)};Object.defineProperty(ys,"__esModule",{value:!0});pY(Ah(),ys)});var bO=C(Tx=>{"use strict";Object.defineProperty(Tx,"__esModule",{value:!0});Tx.Never=gY;var mY=he(),hY=me();function gY(t){return(0,mY.CreateType)({[hY.Kind]:"Never",not:{}},t)}});var At=C(ws=>{"use strict";var fY=ws&&ws.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),vY=ws&&ws.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&fY(e,t,n)};Object.defineProperty(ws,"__esModule",{value:!0});vY(bO(),ws)});var xO=C(Cx=>{"use strict";Object.defineProperty(Cx,"__esModule",{value:!0});Cx.MappedKey=yY;var bY=he(),xY=me();function yY(t){return(0,bY.CreateType)({[xY.Kind]:"MappedKey",keys:t})}});var Rx=C(Mx=>{"use strict";Object.defineProperty(Mx,"__esModule",{value:!0});Mx.MappedResult=kY;var wY=he(),SY=me();function kY(t){return(0,wY.CreateType)({[SY.Kind]:"MappedResult",properties:t})}});var yO=C(Px=>{"use strict";Object.defineProperty(Px,"__esModule",{value:!0});Px.Constructor=MY;var TY=he(),CY=me();function MY(t,e,n){return(0,TY.CreateType)({[CY.Kind]:"Constructor",type:"Constructor",parameters:t,returns:e},n)}});var Kl=C(Ss=>{"use strict";var RY=Ss&&Ss.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),PY=Ss&&Ss.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&RY(e,t,n)};Object.defineProperty(Ss,"__esModule",{value:!0});PY(yO(),Ss)});var wO=C(Ix=>{"use strict";Object.defineProperty(Ix,"__esModule",{value:!0});Ix.Function=AY;var IY=he(),EY=me();function AY(t,e,n){return(0,IY.CreateType)({[EY.Kind]:"Function",type:"Function",parameters:t,returns:e},n)}});var ur=C(ks=>{"use strict";var _Y=ks&&ks.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),OY=ks&&ks.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&_Y(e,t,n)};Object.defineProperty(ks,"__esModule",{value:!0});OY(wO(),ks)});var Ax=C(Ex=>{"use strict";Object.defineProperty(Ex,"__esModule",{value:!0});Ex.UnionCreate=FY;var LY=he(),WY=me();function FY(t,e){return(0,LY.CreateType)({[WY.Kind]:"Union",anyOf:t},e)}});var CO=C(_x=>{"use strict";Object.defineProperty(_x,"__esModule",{value:!0});_x.UnionEvaluated=GY;var DY=he(),UY=me(),$Y=vo(),NY=At(),BY=Di(),SO=Ax(),TO=Oe();function jY(t){return t.some(e=>(0,TO.IsOptional)(e))}function kO(t){return t.map(e=>(0,TO.IsOptional)(e)?qY(e):e)}function qY(t){return(0,$Y.Discard)(t,[UY.OptionalKind])}function KY(t,e){return jY(t)?(0,BY.Optional)((0,SO.UnionCreate)(kO(t),e)):(0,SO.UnionCreate)(kO(t),e)}function GY(t,e){return t.length===1?(0,DY.CreateType)(t[0],e):t.length===0?(0,NY.Never)(e):KY(t,e)}});var RO=C(MO=>{"use strict";Object.defineProperty(MO,"__esModule",{value:!0});var GBe=me()});var PO=C(Ox=>{"use strict";Object.defineProperty(Ox,"__esModule",{value:!0});Ox.Union=QY;var zY=At(),HY=he(),VY=Ax();function QY(t,e){return t.length===0?(0,zY.Never)(e):t.length===1?(0,HY.CreateType)(t[0],e):(0,VY.UnionCreate)(t,e)}});var mt=C(bo=>{"use strict";var JY=bo&&bo.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Lx=bo&&bo.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&JY(e,t,n)};Object.defineProperty(bo,"__esModule",{value:!0});Lx(CO(),bo);Lx(RO(),bo);Lx(PO(),bo)});var _h=C(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.TemplateLiteralParserError=void 0;Gl.TemplateLiteralParse=Ts;Gl.TemplateLiteralParseExact=rX;var YY=Li(),Zu=class extends YY.TypeBoxError{};Gl.TemplateLiteralParserError=Zu;function XY(t){return t.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function Wx(t,e,n){return t[e]===n&&t.charCodeAt(e-1)!==92}function xo(t,e){return Wx(t,e,"(")}function ed(t,e){return Wx(t,e,")")}function IO(t,e){return Wx(t,e,"|")}function ZY(t){if(!(xo(t,0)&&ed(t,t.length-1)))return!1;let e=0;for(let n=0;n<t.length;n++)if(xo(t,n)&&(e+=1),ed(t,n)&&(e-=1),e===0&&n!==t.length-1)return!1;return!0}function eX(t){return t.slice(1,t.length-1)}function tX(t){let e=0;for(let n=0;n<t.length;n++)if(xo(t,n)&&(e+=1),ed(t,n)&&(e-=1),IO(t,n)&&e===0)return!0;return!1}function nX(t){for(let e=0;e<t.length;e++)if(xo(t,e))return!0;return!1}function iX(t){let[e,n]=[0,0],i=[];for(let r=0;r<t.length;r++)if(xo(t,r)&&(e+=1),ed(t,r)&&(e-=1),IO(t,r)&&e===0){let s=t.slice(n,r);s.length>0&&i.push(Ts(s)),n=r+1}let o=t.slice(n);return o.length>0&&i.push(Ts(o)),i.length===0?{type:"const",const:""}:i.length===1?i[0]:{type:"or",expr:i}}function oX(t){function e(o,r){if(!xo(o,r))throw new Zu("TemplateLiteralParser: Index must point to open parens");let s=0;for(let a=r;a<o.length;a++)if(xo(o,a)&&(s+=1),ed(o,a)&&(s-=1),s===0)return[r,a];throw new Zu("TemplateLiteralParser: Unclosed group parens in expression")}function n(o,r){for(let s=r;s<o.length;s++)if(xo(o,s))return[r,s];return[r,o.length]}let i=[];for(let o=0;o<t.length;o++)if(xo(t,o)){let[r,s]=e(t,o),a=t.slice(r,s+1);i.push(Ts(a)),o=s}else{let[r,s]=n(t,o),a=t.slice(r,s);a.length>0&&i.push(Ts(a)),o=s-1}return i.length===0?{type:"const",const:""}:i.length===1?i[0]:{type:"and",expr:i}}function Ts(t){return ZY(t)?Ts(eX(t)):tX(t)?iX(t):nX(t)?oX(t):{type:"const",const:XY(t)}}function rX(t){return Ts(t.slice(1,t.length-1))}});var Fx=C(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});zl.TemplateLiteralFiniteError=void 0;zl.IsTemplateLiteralExpressionFinite=Lh;zl.IsTemplateLiteralFinite=dX;var sX=_h(),aX=Li(),Oh=class extends aX.TypeBoxError{};zl.TemplateLiteralFiniteError=Oh;function lX(t){return t.type==="or"&&t.expr.length===2&&t.expr[0].type==="const"&&t.expr[0].const==="0"&&t.expr[1].type==="const"&&t.expr[1].const==="[1-9][0-9]*"}function cX(t){return t.type==="or"&&t.expr.length===2&&t.expr[0].type==="const"&&t.expr[0].const==="true"&&t.expr[1].type==="const"&&t.expr[1].const==="false"}function uX(t){return t.type==="const"&&t.const===".*"}function Lh(t){return lX(t)||uX(t)?!1:cX(t)?!0:t.type==="and"?t.expr.every(e=>Lh(e)):t.type==="or"?t.expr.every(e=>Lh(e)):t.type==="const"?!0:(()=>{throw new Oh("Unknown expression type")})()}function dX(t){let e=(0,sX.TemplateLiteralParseExact)(t.pattern);return Lh(e)}});var Dx=C(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.TemplateLiteralGenerateError=void 0;Hl.TemplateLiteralExpressionGenerate=Fh;Hl.TemplateLiteralGenerate=bX;var pX=Fx(),mX=_h(),hX=Li(),Wh=class extends hX.TypeBoxError{};Hl.TemplateLiteralGenerateError=Wh;function*EO(t){if(t.length===1)return yield*t[0];for(let e of t[0])for(let n of EO(t.slice(1)))yield`${e}${n}`}function*gX(t){return yield*EO(t.expr.map(e=>[...Fh(e)]))}function*fX(t){for(let e of t.expr)yield*Fh(e)}function*vX(t){return yield t.const}function*Fh(t){return t.type==="and"?yield*gX(t):t.type==="or"?yield*fX(t):t.type==="const"?yield*vX(t):(()=>{throw new Wh("Unknown expression")})()}function bX(t){let e=(0,mX.TemplateLiteralParseExact)(t.pattern);return(0,pX.IsTemplateLiteralExpressionFinite)(e)?[...Fh(e)]:[]}});var AO=C(Ux=>{"use strict";Object.defineProperty(Ux,"__esModule",{value:!0});Ux.Literal=wX;var xX=he(),yX=me();function wX(t,e){return(0,xX.CreateType)({[yX.Kind]:"Literal",const:t,type:typeof t},e)}});var Jt=C(Cs=>{"use strict";var SX=Cs&&Cs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),kX=Cs&&Cs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&SX(e,t,n)};Object.defineProperty(Cs,"__esModule",{value:!0});kX(AO(),Cs)});var _O=C($x=>{"use strict";Object.defineProperty($x,"__esModule",{value:!0});$x.Boolean=MX;var TX=me(),CX=go();function MX(t){return(0,CX.CreateType)({[TX.Kind]:"Boolean",type:"boolean"},t)}});var td=C(Ms=>{"use strict";var RX=Ms&&Ms.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),PX=Ms&&Ms.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&RX(e,t,n)};Object.defineProperty(Ms,"__esModule",{value:!0});PX(_O(),Ms)});var OO=C(Nx=>{"use strict";Object.defineProperty(Nx,"__esModule",{value:!0});Nx.BigInt=AX;var IX=me(),EX=go();function AX(t){return(0,EX.CreateType)({[IX.Kind]:"BigInt",type:"bigint"},t)}});var Vl=C(Rs=>{"use strict";var _X=Rs&&Rs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),OX=Rs&&Rs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&_X(e,t,n)};Object.defineProperty(Rs,"__esModule",{value:!0});OX(OO(),Rs)});var LO=C(Bx=>{"use strict";Object.defineProperty(Bx,"__esModule",{value:!0});Bx.Number=FX;var LX=he(),WX=me();function FX(t){return(0,LX.CreateType)({[WX.Kind]:"Number",type:"number"},t)}});var dr=C(Ps=>{"use strict";var DX=Ps&&Ps.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),UX=Ps&&Ps.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&DX(e,t,n)};Object.defineProperty(Ps,"__esModule",{value:!0});UX(LO(),Ps)});var WO=C(jx=>{"use strict";Object.defineProperty(jx,"__esModule",{value:!0});jx.String=BX;var $X=he(),NX=me();function BX(t){return(0,$X.CreateType)({[NX.Kind]:"String",type:"string"},t)}});var Es=C(Is=>{"use strict";var jX=Is&&Is.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),qX=Is&&Is.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&jX(e,t,n)};Object.defineProperty(Is,"__esModule",{value:!0});qX(WO(),Is)});var Gx=C(Kx=>{"use strict";Object.defineProperty(Kx,"__esModule",{value:!0});Kx.TemplateLiteralSyntax=XX;var nd=Jt(),KX=td(),GX=Vl(),zX=dr(),HX=Es(),VX=mt(),QX=At();function*JX(t){let e=t.trim().replace(/"|'/g,"");return e==="boolean"?yield(0,KX.Boolean)():e==="number"?yield(0,zX.Number)():e==="bigint"?yield(0,GX.BigInt)():e==="string"?yield(0,HX.String)():yield(()=>{let n=e.split("|").map(i=>(0,nd.Literal)(i.trim()));return n.length===0?(0,QX.Never)():n.length===1?n[0]:(0,VX.UnionEvaluated)(n)})()}function*YX(t){if(t[1]!=="{"){let e=(0,nd.Literal)("$"),n=qx(t.slice(1));return yield*[e,...n]}for(let e=2;e<t.length;e++)if(t[e]==="}"){let n=JX(t.slice(2,e)),i=qx(t.slice(e+1));return yield*[...n,...i]}yield(0,nd.Literal)(t)}function*qx(t){for(let e=0;e<t.length;e++)if(t[e]==="$"){let n=(0,nd.Literal)(t.slice(0,e)),i=YX(t.slice(e));return yield*[n,...i]}yield(0,nd.Literal)(t)}function XX(t){return[...qx(t)]}});var zx=C(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.TemplateLiteralPatternError=void 0;od.TemplateLiteralPattern=nZ;var id=Yu(),ZX=me(),eZ=Li(),pr=Oe(),Dh=class extends eZ.TypeBoxError{};od.TemplateLiteralPatternError=Dh;function tZ(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function FO(t,e){return(0,pr.IsTemplateLiteral)(t)?t.pattern.slice(1,t.pattern.length-1):(0,pr.IsUnion)(t)?`(${t.anyOf.map(n=>FO(n,e)).join("|")})`:(0,pr.IsNumber)(t)?`${e}${id.PatternNumber}`:(0,pr.IsInteger)(t)?`${e}${id.PatternNumber}`:(0,pr.IsBigInt)(t)?`${e}${id.PatternNumber}`:(0,pr.IsString)(t)?`${e}${id.PatternString}`:(0,pr.IsLiteral)(t)?`${e}${tZ(t.const.toString())}`:(0,pr.IsBoolean)(t)?`${e}${id.PatternBoolean}`:(()=>{throw new Dh(`Unexpected Kind '${t[ZX.Kind]}'`)})()}function nZ(t){return`^${t.map(e=>FO(e,"")).join("")}$`}});var DO=C(Hx=>{"use strict";Object.defineProperty(Hx,"__esModule",{value:!0});Hx.TemplateLiteralToUnion=sZ;var iZ=mt(),oZ=Jt(),rZ=Dx();function sZ(t){let n=(0,rZ.TemplateLiteralGenerate)(t).map(i=>(0,oZ.Literal)(i));return(0,iZ.UnionEvaluated)(n)}});var $O=C(Vx=>{"use strict";Object.defineProperty(Vx,"__esModule",{value:!0});Vx.TemplateLiteral=dZ;var aZ=he(),lZ=Gx(),UO=zx(),cZ=Qt(),uZ=me();function dZ(t,e){let n=(0,cZ.IsString)(t)?(0,UO.TemplateLiteralPattern)((0,lZ.TemplateLiteralSyntax)(t)):(0,UO.TemplateLiteralPattern)(t);return(0,aZ.CreateType)({[uZ.Kind]:"TemplateLiteral",type:"string",pattern:n},e)}});var Ui=C(En=>{"use strict";var pZ=En&&En.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),As=En&&En.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&pZ(e,t,n)};Object.defineProperty(En,"__esModule",{value:!0});As(Fx(),En);As(Dx(),En);As(Gx(),En);As(_h(),En);As(zx(),En);As(DO(),En);As($O(),En)});var Uh=C(Qx=>{"use strict";Object.defineProperty(Qx,"__esModule",{value:!0});Qx.IndexPropertyKeys=NO;var mZ=Ui(),rd=Oe();function hZ(t){return(0,mZ.TemplateLiteralGenerate)(t).map(n=>n.toString())}function gZ(t){let e=[];for(let n of t)e.push(...NO(n));return e}function fZ(t){return[t.toString()]}function NO(t){return[...new Set((0,rd.IsTemplateLiteral)(t)?hZ(t):(0,rd.IsUnion)(t)?gZ(t.anyOf):(0,rd.IsLiteral)(t)?fZ(t.const):(0,rd.IsNumber)(t)?["[number]"]:(0,rd.IsInteger)(t)?["[number]"]:[])]}});var Yx=C(Jx=>{"use strict";Object.defineProperty(Jx,"__esModule",{value:!0});Jx.IndexFromMappedResult=SZ;var vZ=bt(),bZ=Uh(),xZ=pi();function yZ(t,e,n){let i={};for(let o of Object.getOwnPropertyNames(e))i[o]=(0,xZ.Index)(t,(0,bZ.IndexPropertyKeys)(e[o]),n);return i}function wZ(t,e,n){return yZ(t,e.properties,n)}function SZ(t,e,n){let i=wZ(t,e,n);return(0,vZ.MappedResult)(i)}});var Nh=C(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.IndexFromPropertyKey=Zx;Ql.IndexFromPropertyKeys=KO;Ql.IndexFromComputed=FZ;Ql.Index=DZ;var kZ=he(),TZ=Li(),jO=cr(),$h=At(),CZ=An(),Xx=mt(),MZ=Uh(),RZ=ey(),PZ=Yx(),dn=Oe();function qO(t,e){return t.map(n=>Zx(n,e))}function IZ(t){return t.filter(e=>!(0,dn.IsNever)(e))}function EZ(t,e){return(0,CZ.IntersectEvaluated)(IZ(qO(t,e)))}function AZ(t){return t.some(e=>(0,dn.IsNever)(e))?[]:t}function _Z(t,e){return(0,Xx.UnionEvaluated)(AZ(qO(t,e)))}function OZ(t,e){return e in t?t[e]:e==="[number]"?(0,Xx.UnionEvaluated)(t):(0,$h.Never)()}function LZ(t,e){return e==="[number]"?t:(0,$h.Never)()}function WZ(t,e){return e in t?t[e]:(0,$h.Never)()}function Zx(t,e){return(0,dn.IsIntersect)(t)?EZ(t.allOf,e):(0,dn.IsUnion)(t)?_Z(t.anyOf,e):(0,dn.IsTuple)(t)?OZ(t.items??[],e):(0,dn.IsArray)(t)?LZ(t.items,e):(0,dn.IsObject)(t)?WZ(t.properties,e):(0,$h.Never)()}function KO(t,e){return e.map(n=>Zx(t,n))}function BO(t,e){return(0,Xx.UnionEvaluated)(KO(t,e))}function FZ(t,e){return(0,jO.Computed)("Index",[t,e])}function DZ(t,e,n){if((0,dn.IsRef)(t)||(0,dn.IsRef)(e)){let i="Index types using Ref parameters require both Type and Key to be of TSchema";if(!(0,dn.IsSchema)(t)||!(0,dn.IsSchema)(e))throw new TZ.TypeBoxError(i);return(0,jO.Computed)("Index",[t,e])}return(0,dn.IsMappedResult)(e)?(0,PZ.IndexFromMappedResult)(t,e,n):(0,dn.IsMappedKey)(e)?(0,RZ.IndexFromMappedKey)(t,e,n):(0,kZ.CreateType)((0,dn.IsSchema)(e)?BO(t,(0,MZ.IndexPropertyKeys)(e)):BO(t,e),n)}});var ey=C(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});ty.IndexFromMappedKey=KZ;var UZ=Nh(),$Z=bt(),NZ=ln();function BZ(t,e,n){return{[e]:(0,UZ.Index)(t,[e],(0,NZ.Clone)(n))}}function jZ(t,e,n){return e.reduce((i,o)=>({...i,...BZ(t,o,n)}),{})}function qZ(t,e,n){return jZ(t,e.keys,n)}function KZ(t,e,n){let i=qZ(t,e,n);return(0,$Z.MappedResult)(i)}});var pi=C($i=>{"use strict";var GZ=$i&&$i.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Bh=$i&&$i.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&GZ(e,t,n)};Object.defineProperty($i,"__esModule",{value:!0});Bh(ey(),$i);Bh(Yx(),$i);Bh(Uh(),$i);Bh(Nh(),$i)});var GO=C(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});ny.Iterator=VZ;var zZ=he(),HZ=me();function VZ(t,e){return(0,zZ.CreateType)({[HZ.Kind]:"Iterator",type:"Iterator",items:t},e)}});var Jl=C(_s=>{"use strict";var QZ=_s&&_s.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),JZ=_s&&_s.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&QZ(e,t,n)};Object.defineProperty(_s,"__esModule",{value:!0});JZ(GO(),_s)});var HO=C(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});jh.Object=void 0;var YZ=he(),zO=me(),XZ=Oe();function ZZ(t){return globalThis.Object.keys(t).filter(e=>!(0,XZ.IsOptional)(t[e]))}function eee(t,e){let n=ZZ(t),i=n.length>0?{[zO.Kind]:"Object",type:"object",required:n,properties:t}:{[zO.Kind]:"Object",type:"object",properties:t};return(0,YZ.CreateType)(i,e)}jh.Object=eee});var pn=C(Os=>{"use strict";var tee=Os&&Os.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),nee=Os&&Os.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&tee(e,t,n)};Object.defineProperty(Os,"__esModule",{value:!0});nee(HO(),Os)});var VO=C(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});iy.Promise=ree;var iee=he(),oee=me();function ree(t,e){return(0,iee.CreateType)({[oee.Kind]:"Promise",type:"Promise",item:t},e)}});var sd=C(Ls=>{"use strict";var see=Ls&&Ls.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),aee=Ls&&Ls.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&see(e,t,n)};Object.defineProperty(Ls,"__esModule",{value:!0});aee(VO(),Ls)});var ry=C(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});oy.Readonly=hee;var QO=he(),JO=me(),lee=vo(),cee=sy(),uee=Oe();function dee(t){return(0,QO.CreateType)((0,lee.Discard)(t,[JO.ReadonlyKind]))}function pee(t){return(0,QO.CreateType)({...t,[JO.ReadonlyKind]:"Readonly"})}function mee(t,e){return e===!1?dee(t):pee(t)}function hee(t,e){let n=e??!0;return(0,uee.IsMappedResult)(t)?(0,cee.ReadonlyFromMappedResult)(t,n):mee(t,n)}});var sy=C(ay=>{"use strict";Object.defineProperty(ay,"__esModule",{value:!0});ay.ReadonlyFromMappedResult=xee;var gee=bt(),fee=ry();function vee(t,e){let n={};for(let i of globalThis.Object.getOwnPropertyNames(t))n[i]=(0,fee.Readonly)(t[i],e);return n}function bee(t,e){return vee(t.properties,e)}function xee(t,e){let n=bee(t,e);return(0,gee.MappedResult)(n)}});var hr=C(mr=>{"use strict";var yee=mr&&mr.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),YO=mr&&mr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&yee(e,t,n)};Object.defineProperty(mr,"__esModule",{value:!0});YO(sy(),mr);YO(ry(),mr)});var ZO=C(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});ly.Tuple=See;var wee=he(),XO=me();function See(t,e){return(0,wee.CreateType)(t.length>0?{[XO.Kind]:"Tuple",type:"array",items:t,additionalItems:!1,minItems:t.length,maxItems:t.length}:{[XO.Kind]:"Tuple",type:"array",minItems:t.length,maxItems:t.length},e)}});var yo=C(Ws=>{"use strict";var kee=Ws&&Ws.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Tee=Ws&&Ws.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&kee(e,t,n)};Object.defineProperty(Ws,"__esModule",{value:!0});Tee(ZO(),Ws)});var r5=C(qh=>{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});qh.MappedFunctionReturnType=o5;qh.Mapped=Kee;var cy=me(),e5=vo(),Cee=jl(),Mee=ql(),Ree=Kl(),Pee=ur(),Iee=pi(),Eee=An(),Aee=Jl(),t5=Jt(),n5=pn(),_ee=Di(),Oee=sd(),Lee=hr(),Wee=yo(),Fee=mt(),Dee=Xu(),Uee=Rx(),Yt=Oe();function i5(t,e){return t in e?Jn(t,e[t]):(0,Uee.MappedResult)(e)}function $ee(t){return{[t]:(0,t5.Literal)(t)}}function Nee(t){let e={};for(let n of t)e[n]=(0,t5.Literal)(n);return e}function Bee(t,e){return(0,Dee.SetIncludes)(e,t)?$ee(t):Nee(e)}function jee(t,e){let n=Bee(t,e);return i5(t,n)}function ad(t,e){return e.map(n=>Jn(t,n))}function qee(t,e){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=Jn(t,e[i]);return n}function Jn(t,e){let n={...e};return(0,Yt.IsOptional)(e)?(0,_ee.Optional)(Jn(t,(0,e5.Discard)(e,[cy.OptionalKind]))):(0,Yt.IsReadonly)(e)?(0,Lee.Readonly)(Jn(t,(0,e5.Discard)(e,[cy.ReadonlyKind]))):(0,Yt.IsMappedResult)(e)?i5(t,e.properties):(0,Yt.IsMappedKey)(e)?jee(t,e.keys):(0,Yt.IsConstructor)(e)?(0,Ree.Constructor)(ad(t,e.parameters),Jn(t,e.returns),n):(0,Yt.IsFunction)(e)?(0,Pee.Function)(ad(t,e.parameters),Jn(t,e.returns),n):(0,Yt.IsAsyncIterator)(e)?(0,Mee.AsyncIterator)(Jn(t,e.items),n):(0,Yt.IsIterator)(e)?(0,Aee.Iterator)(Jn(t,e.items),n):(0,Yt.IsIntersect)(e)?(0,Eee.Intersect)(ad(t,e.allOf),n):(0,Yt.IsUnion)(e)?(0,Fee.Union)(ad(t,e.anyOf),n):(0,Yt.IsTuple)(e)?(0,Wee.Tuple)(ad(t,e.items??[]),n):(0,Yt.IsObject)(e)?(0,n5.Object)(qee(t,e.properties),n):(0,Yt.IsArray)(e)?(0,Cee.Array)(Jn(t,e.items),n):(0,Yt.IsPromise)(e)?(0,Oee.Promise)(Jn(t,e.item),n):e}function o5(t,e){let n={};for(let i of t)n[i]=Jn(i,e);return n}function Kee(t,e,n){let i=(0,Yt.IsSchema)(t)?(0,Iee.IndexPropertyKeys)(t):t,o=e({[cy.Kind]:"MappedKey",keys:i}),r=o5(i,o);return(0,n5.Object)(r,n)}});var bt=C(wo=>{"use strict";var Gee=wo&&wo.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),uy=wo&&wo.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Gee(e,t,n)};Object.defineProperty(wo,"__esModule",{value:!0});uy(xO(),wo);uy(Rx(),wo);uy(r5(),wo)});var py=C(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});dy.Optional=Xee;var s5=he(),a5=me(),zee=vo(),Hee=my(),Vee=Oe();function Qee(t){return(0,s5.CreateType)((0,zee.Discard)(t,[a5.OptionalKind]))}function Jee(t){return(0,s5.CreateType)({...t,[a5.OptionalKind]:"Optional"})}function Yee(t,e){return e===!1?Qee(t):Jee(t)}function Xee(t,e){let n=e??!0;return(0,Vee.IsMappedResult)(t)?(0,Hee.OptionalFromMappedResult)(t,n):Yee(t,n)}});var my=C(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});hy.OptionalFromMappedResult=ite;var Zee=bt(),ete=py();function tte(t,e){let n={};for(let i of globalThis.Object.getOwnPropertyNames(t))n[i]=(0,ete.Optional)(t[i],e);return n}function nte(t,e){return tte(t.properties,e)}function ite(t,e){let n=nte(t,e);return(0,Zee.MappedResult)(n)}});var Di=C(gr=>{"use strict";var ote=gr&&gr.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),l5=gr&&gr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&ote(e,t,n)};Object.defineProperty(gr,"__esModule",{value:!0});l5(my(),gr);l5(py(),gr)});var vy=C(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});fy.IntersectCreate=ste;var rte=he(),c5=me(),gy=Oe();function ste(t,e={}){let n=t.every(o=>(0,gy.IsObject)(o)),i=(0,gy.IsSchema)(e.unevaluatedProperties)?{unevaluatedProperties:e.unevaluatedProperties}:{};return(0,rte.CreateType)(e.unevaluatedProperties===!1||(0,gy.IsSchema)(e.unevaluatedProperties)||n?{...i,[c5.Kind]:"Intersect",type:"object",allOf:t}:{...i,[c5.Kind]:"Intersect",allOf:t},e)}});var p5=C(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});xy.IntersectEvaluated=gte;var ate=me(),lte=he(),cte=vo(),ute=At(),dte=Di(),u5=vy(),by=Oe();function pte(t){return t.every(e=>(0,by.IsOptional)(e))}function mte(t){return(0,cte.Discard)(t,[ate.OptionalKind])}function d5(t){return t.map(e=>(0,by.IsOptional)(e)?mte(e):e)}function hte(t,e){return pte(t)?(0,dte.Optional)((0,u5.IntersectCreate)(d5(t),e)):(0,u5.IntersectCreate)(d5(t),e)}function gte(t,e={}){if(t.length===1)return(0,lte.CreateType)(t[0],e);if(t.length===0)return(0,ute.Never)(e);if(t.some(n=>(0,by.IsTransform)(n)))throw new Error("Cannot intersect transform types");return hte(t,e)}});var h5=C(m5=>{"use strict";Object.defineProperty(m5,"__esModule",{value:!0});var F6e=me()});var g5=C(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});yy.Intersect=yte;var fte=he(),vte=At(),bte=vy(),xte=Oe();function yte(t,e){if(t.length===1)return(0,fte.CreateType)(t[0],e);if(t.length===0)return(0,vte.Never)(e);if(t.some(n=>(0,xte.IsTransform)(n)))throw new Error("Cannot intersect transform types");return(0,bte.IntersectCreate)(t,e)}});var An=C(So=>{"use strict";var wte=So&&So.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),wy=So&&So.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&wte(e,t,n)};Object.defineProperty(So,"__esModule",{value:!0});wy(p5(),So);wy(h5(),So);wy(g5(),So)});var f5=C(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});Sy.Ref=Cte;var Ste=Li(),kte=he(),Tte=me();function Cte(...t){let[e,n]=typeof t[0]=="string"?[t[0],t[1]]:[t[0].$id,t[1]];if(typeof e!="string")throw new Ste.TypeBoxError("Ref: $ref must be a string");return(0,kte.CreateType)({[Tte.Kind]:"Ref",$ref:e},n)}});var fr=C(Fs=>{"use strict";var Mte=Fs&&Fs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Rte=Fs&&Fs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Mte(e,t,n)};Object.defineProperty(Fs,"__esModule",{value:!0});Rte(f5(),Fs)});var b5=C(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});Cy.Awaited=Ty;var Pte=he(),ky=cr(),Ite=An(),Ete=mt(),Ate=fr(),ld=Oe();function _te(t,e){return(0,ky.Computed)("Awaited",[(0,ky.Computed)(t,e)])}function Ote(t){return(0,ky.Computed)("Awaited",[(0,Ate.Ref)(t)])}function Lte(t){return(0,Ite.Intersect)(v5(t))}function Wte(t){return(0,Ete.Union)(v5(t))}function Fte(t){return Ty(t)}function v5(t){return t.map(e=>Ty(e))}function Ty(t,e){return(0,Pte.CreateType)((0,ld.IsComputed)(t)?_te(t.target,t.parameters):(0,ld.IsIntersect)(t)?Lte(t.allOf):(0,ld.IsUnion)(t)?Wte(t.anyOf):(0,ld.IsPromise)(t)?Fte(t.item):(0,ld.IsRef)(t)?Ote(t.$ref):t,e)}});var cd=C(Ds=>{"use strict";var Dte=Ds&&Ds.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Ute=Ds&&Ds.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Dte(e,t,n)};Object.defineProperty(Ds,"__esModule",{value:!0});Ute(b5(),Ds)});var Gh=C(Kh=>{"use strict";Object.defineProperty(Kh,"__esModule",{value:!0});Kh.KeyOfPropertyKeys=Ry;Kh.KeyOfPattern=Gte;var x5=Xu(),Yl=Oe();function y5(t){let e=[];for(let n of t)e.push(Ry(n));return e}function $te(t){let e=y5(t);return(0,x5.SetUnionMany)(e)}function Nte(t){let e=y5(t);return(0,x5.SetIntersectMany)(e)}function Bte(t){return t.map((e,n)=>n.toString())}function jte(t){return["[number]"]}function qte(t){return globalThis.Object.getOwnPropertyNames(t)}function Kte(t){return My?globalThis.Object.getOwnPropertyNames(t).map(n=>n[0]==="^"&&n[n.length-1]==="$"?n.slice(1,n.length-1):n):[]}function Ry(t){return(0,Yl.IsIntersect)(t)?$te(t.allOf):(0,Yl.IsUnion)(t)?Nte(t.anyOf):(0,Yl.IsTuple)(t)?Bte(t.items??[]):(0,Yl.IsArray)(t)?jte(t.items):(0,Yl.IsObject)(t)?qte(t.properties):(0,Yl.IsRecord)(t)?Kte(t.patternProperties):[]}var My=!1;function Gte(t){My=!0;let e=Ry(t);return My=!1,`^(${e.map(i=>`(${i})`).join("|")})$`}});var Ey=C(zh=>{"use strict";Object.defineProperty(zh,"__esModule",{value:!0});zh.KeyOfPropertyKeysToRest=w5;zh.KeyOf=nne;var zte=he(),Hte=Jt(),Vte=dr(),Iy=cr(),Qte=fr(),Jte=Gh(),Yte=mt(),Xte=Ay(),Py=Oe();function Zte(t,e){return(0,Iy.Computed)("KeyOf",[(0,Iy.Computed)(t,e)])}function ene(t){return(0,Iy.Computed)("KeyOf",[(0,Qte.Ref)(t)])}function tne(t,e){let n=(0,Jte.KeyOfPropertyKeys)(t),i=w5(n),o=(0,Yte.UnionEvaluated)(i);return(0,zte.CreateType)(o,e)}function w5(t){return t.map(e=>e==="[number]"?(0,Vte.Number)():(0,Hte.Literal)(e))}function nne(t,e){return(0,Py.IsComputed)(t)?Zte(t.target,t.parameters):(0,Py.IsRef)(t)?ene(t.$ref):(0,Py.IsMappedResult)(t)?(0,Xte.KeyOfFromMappedResult)(t,e):tne(t,e)}});var Ay=C(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});_y.KeyOfFromMappedResult=lne;var ine=bt(),one=Ey(),rne=ln();function sne(t,e){let n={};for(let i of globalThis.Object.getOwnPropertyNames(t))n[i]=(0,one.KeyOf)(t[i],(0,rne.Clone)(e));return n}function ane(t,e){return sne(t.properties,e)}function lne(t,e){let n=ane(t,e);return(0,ine.MappedResult)(n)}});var S5=C(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});Oy.KeyOfPropertyEntries=dne;var cne=Nh(),une=Gh();function dne(t){let e=(0,une.KeyOfPropertyKeys)(t),n=(0,cne.IndexFromPropertyKeys)(t,e);return e.map((i,o)=>[e[o],n[o]])}});var Xl=C(Ni=>{"use strict";var pne=Ni&&Ni.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Hh=Ni&&Ni.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&pne(e,t,n)};Object.defineProperty(Ni,"__esModule",{value:!0});Hh(Ay(),Ni);Hh(S5(),Ni);Hh(Gh(),Ni);Hh(Ey(),Ni)});var k5=C(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});Ly.Composite=kne;var mne=An(),hne=pi(),gne=Xl(),fne=pn(),vne=Xu(),bne=Oe();function xne(t){let e=[];for(let n of t)e.push(...(0,gne.KeyOfPropertyKeys)(n));return(0,vne.SetDistinct)(e)}function yne(t){return t.filter(e=>!(0,bne.IsNever)(e))}function wne(t,e){let n=[];for(let i of t)n.push(...(0,hne.IndexFromPropertyKeys)(i,[e]));return yne(n)}function Sne(t,e){let n={};for(let i of e)n[i]=(0,mne.IntersectEvaluated)(wne(t,i));return n}function kne(t,e){let n=xne(t),i=Sne(t,n);return(0,fne.Object)(i,e)}});var Vh=C(Us=>{"use strict";var Tne=Us&&Us.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Cne=Us&&Us.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Tne(e,t,n)};Object.defineProperty(Us,"__esModule",{value:!0});Cne(k5(),Us)});var T5=C(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});Wy.Date=Pne;var Mne=me(),Rne=he();function Pne(t){return(0,Rne.CreateType)({[Mne.Kind]:"Date",type:"Date"},t)}});var ud=C($s=>{"use strict";var Ine=$s&&$s.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Ene=$s&&$s.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Ine(e,t,n)};Object.defineProperty($s,"__esModule",{value:!0});Ene(T5(),$s)});var C5=C(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});Fy.Null=One;var Ane=he(),_ne=me();function One(t){return(0,Ane.CreateType)({[_ne.Kind]:"Null",type:"null"},t)}});var dd=C(Ns=>{"use strict";var Lne=Ns&&Ns.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Wne=Ns&&Ns.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Lne(e,t,n)};Object.defineProperty(Ns,"__esModule",{value:!0});Wne(C5(),Ns)});var M5=C(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});Dy.Symbol=Une;var Fne=he(),Dne=me();function Une(t){return(0,Fne.CreateType)({[Dne.Kind]:"Symbol",type:"symbol"},t)}});var pd=C(Bs=>{"use strict";var $ne=Bs&&Bs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Nne=Bs&&Bs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&$ne(e,t,n)};Object.defineProperty(Bs,"__esModule",{value:!0});Nne(M5(),Bs)});var R5=C(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});Uy.Undefined=qne;var Bne=he(),jne=me();function qne(t){return(0,Bne.CreateType)({[jne.Kind]:"Undefined",type:"undefined"},t)}});var md=C(js=>{"use strict";var Kne=js&&js.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Gne=js&&js.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Kne(e,t,n)};Object.defineProperty(js,"__esModule",{value:!0});Gne(R5(),js)});var P5=C($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});$y.Uint8Array=Vne;var zne=he(),Hne=me();function Vne(t){return(0,zne.CreateType)({[Hne.Kind]:"Uint8Array",type:"Uint8Array"},t)}});var hd=C(qs=>{"use strict";var Qne=qs&&qs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Jne=qs&&qs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Qne(e,t,n)};Object.defineProperty(qs,"__esModule",{value:!0});Jne(P5(),qs)});var I5=C(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});Ny.Unknown=Zne;var Yne=he(),Xne=me();function Zne(t){return(0,Yne.CreateType)({[Xne.Kind]:"Unknown"},t)}});var Gs=C(Ks=>{"use strict";var eie=Ks&&Ks.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),tie=Ks&&Ks.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&eie(e,t,n)};Object.defineProperty(Ks,"__esModule",{value:!0});tie(I5(),Ks)});var _5=C(Ky=>{"use strict";Object.defineProperty(Ky,"__esModule",{value:!0});Ky.Const=hie;var E5=Bl(),nie=Vl(),iie=ud(),oie=ur(),By=Jt(),rie=dd(),A5=pn(),sie=pd(),aie=yo(),jy=hr(),lie=md(),cie=hd(),uie=Gs(),die=go(),mn=Qt();function pie(t){return t.map(e=>qy(e,!1))}function mie(t){let e={};for(let n of globalThis.Object.getOwnPropertyNames(t))e[n]=(0,jy.Readonly)(qy(t[n],!1));return e}function Qh(t,e){return e===!0?t:(0,jy.Readonly)(t)}function qy(t,e){return(0,mn.IsAsyncIterator)(t)||(0,mn.IsIterator)(t)?Qh((0,E5.Any)(),e):(0,mn.IsArray)(t)?(0,jy.Readonly)((0,aie.Tuple)(pie(t))):(0,mn.IsUint8Array)(t)?(0,cie.Uint8Array)():(0,mn.IsDate)(t)?(0,iie.Date)():(0,mn.IsObject)(t)?Qh((0,A5.Object)(mie(t)),e):(0,mn.IsFunction)(t)?Qh((0,oie.Function)([],(0,uie.Unknown)()),e):(0,mn.IsUndefined)(t)?(0,lie.Undefined)():(0,mn.IsNull)(t)?(0,rie.Null)():(0,mn.IsSymbol)(t)?(0,sie.Symbol)():(0,mn.IsBigInt)(t)?(0,nie.BigInt)():(0,mn.IsNumber)(t)||(0,mn.IsBoolean)(t)||(0,mn.IsString)(t)?(0,By.Literal)(t):(0,A5.Object)({})}function hie(t,e){return(0,die.CreateType)(qy(t,!0),e)}});var Jh=C(zs=>{"use strict";var gie=zs&&zs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),fie=zs&&zs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&gie(e,t,n)};Object.defineProperty(zs,"__esModule",{value:!0});fie(_5(),zs)});var O5=C(ko=>{"use strict";var vie=ko&&ko.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),bie=ko&&ko.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xie=ko&&ko.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&vie(n,e,i[o]);return bie(n,e),n}})();Object.defineProperty(ko,"__esModule",{value:!0});ko.ConstructorParameters=kie;var yie=yo(),wie=At(),Sie=xie(Oe());function kie(t,e){return Sie.IsConstructor(t)?(0,yie.Tuple)(t.parameters,e):(0,wie.Never)(e)}});var Yh=C(Hs=>{"use strict";var Tie=Hs&&Hs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Cie=Hs&&Hs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Tie(e,t,n)};Object.defineProperty(Hs,"__esModule",{value:!0});Cie(O5(),Hs)});var L5=C(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0});Gy.Enum=Eie;var Mie=Jt(),Rie=me(),Pie=mt(),Iie=Qt();function Eie(t,e){if((0,Iie.IsUndefined)(t))throw new Error("Enum undefined or empty");let n=globalThis.Object.getOwnPropertyNames(t).filter(r=>isNaN(r)).map(r=>t[r]),o=[...new Set(n)].map(r=>(0,Mie.Literal)(r));return(0,Pie.Union)(o,{...e,[Rie.Hint]:"Enum"})}});var Xh=C(Vs=>{"use strict";var Aie=Vs&&Vs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),_ie=Vs&&Vs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Aie(e,t,n)};Object.defineProperty(Vs,"__esModule",{value:!0});_ie(L5(),Vs)});var Zy=C(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.ExtendsResult=Qs.ExtendsResolverError=void 0;Qs.ExtendsCheck=woe;var W5=Bl(),Oie=ur(),Jy=dr(),Hy=Es(),Lie=Gs(),F5=Ui(),Zl=Yu(),B5=me(),Wie=Li(),M=fx(),Zh=class extends Wie.TypeBoxError{};Qs.ExtendsResolverError=Zh;var B;(function(t){t[t.Union=0]="Union",t[t.True=1]="True",t[t.False=2]="False"})(B||(Qs.ExtendsResult=B={}));function Yn(t){return t===B.False?t:B.True}function ec(t){throw new Zh(t)}function xt(t){return M.TypeGuard.IsNever(t)||M.TypeGuard.IsIntersect(t)||M.TypeGuard.IsUnion(t)||M.TypeGuard.IsUnknown(t)||M.TypeGuard.IsAny(t)}function yt(t,e){return M.TypeGuard.IsNever(e)?K5(t,e):M.TypeGuard.IsIntersect(e)?eg(t,e):M.TypeGuard.IsUnion(e)?Xy(t,e):M.TypeGuard.IsUnknown(e)?V5(t,e):M.TypeGuard.IsAny(e)?Yy(t,e):ec("StructuralRight")}function Yy(t,e){return B.True}function Fie(t,e){return M.TypeGuard.IsIntersect(e)?eg(t,e):M.TypeGuard.IsUnion(e)&&e.anyOf.some(n=>M.TypeGuard.IsAny(n)||M.TypeGuard.IsUnknown(n))?B.True:M.TypeGuard.IsUnion(e)?B.Union:M.TypeGuard.IsUnknown(e)||M.TypeGuard.IsAny(e)?B.True:B.Union}function Die(t,e){return M.TypeGuard.IsUnknown(t)?B.False:M.TypeGuard.IsAny(t)?B.Union:M.TypeGuard.IsNever(t)?B.True:B.False}function Uie(t,e){return M.TypeGuard.IsObject(e)&&tg(e)?B.True:xt(e)?yt(t,e):M.TypeGuard.IsArray(e)?Yn(Ke(t.items,e.items)):B.False}function $ie(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsAsyncIterator(e)?Yn(Ke(t.items,e.items)):B.False}function Nie(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):M.TypeGuard.IsBigInt(e)?B.True:B.False}function j5(t,e){return M.TypeGuard.IsLiteralBoolean(t)||M.TypeGuard.IsBoolean(t)?B.True:B.False}function Bie(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):M.TypeGuard.IsBoolean(e)?B.True:B.False}function jie(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsConstructor(e)?t.parameters.length>e.parameters.length?B.False:t.parameters.every((n,i)=>Yn(Ke(e.parameters[i],n))===B.True)?Yn(Ke(t.returns,e.returns)):B.False:B.False}function qie(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):M.TypeGuard.IsDate(e)?B.True:B.False}function Kie(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsFunction(e)?t.parameters.length>e.parameters.length?B.False:t.parameters.every((n,i)=>Yn(Ke(e.parameters[i],n))===B.True)?Yn(Ke(t.returns,e.returns)):B.False:B.False}function q5(t,e){return M.TypeGuard.IsLiteral(t)&&M.ValueGuard.IsNumber(t.const)||M.TypeGuard.IsNumber(t)||M.TypeGuard.IsInteger(t)?B.True:B.False}function Gie(t,e){return M.TypeGuard.IsInteger(e)||M.TypeGuard.IsNumber(e)?B.True:xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):B.False}function eg(t,e){return e.allOf.every(n=>Ke(t,n)===B.True)?B.True:B.False}function zie(t,e){return t.allOf.some(n=>Ke(n,e)===B.True)?B.True:B.False}function Hie(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsIterator(e)?Yn(Ke(t.items,e.items)):B.False}function Vie(t,e){return M.TypeGuard.IsLiteral(e)&&e.const===t.const?B.True:xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):M.TypeGuard.IsString(e)?H5(t,e):M.TypeGuard.IsNumber(e)?G5(t,e):M.TypeGuard.IsInteger(e)?q5(t,e):M.TypeGuard.IsBoolean(e)?j5(t,e):B.False}function K5(t,e){return B.False}function Qie(t,e){return B.True}function D5(t){let[e,n]=[t,0];for(;M.TypeGuard.IsNot(e);)e=e.not,n+=1;return n%2===0?e:(0,Lie.Unknown)()}function Jie(t,e){return M.TypeGuard.IsNot(t)?Ke(D5(t),e):M.TypeGuard.IsNot(e)?Ke(t,D5(e)):ec("Invalid fallthrough for Not")}function Yie(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):M.TypeGuard.IsNull(e)?B.True:B.False}function G5(t,e){return M.TypeGuard.IsLiteralNumber(t)||M.TypeGuard.IsNumber(t)||M.TypeGuard.IsInteger(t)?B.True:B.False}function Xie(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):M.TypeGuard.IsInteger(e)||M.TypeGuard.IsNumber(e)?B.True:B.False}function hn(t,e){return Object.getOwnPropertyNames(t.properties).length===e}function U5(t){return tg(t)}function $5(t){return hn(t,0)||hn(t,1)&&"description"in t.properties&&M.TypeGuard.IsUnion(t.properties.description)&&t.properties.description.anyOf.length===2&&(M.TypeGuard.IsString(t.properties.description.anyOf[0])&&M.TypeGuard.IsUndefined(t.properties.description.anyOf[1])||M.TypeGuard.IsString(t.properties.description.anyOf[1])&&M.TypeGuard.IsUndefined(t.properties.description.anyOf[0]))}function zy(t){return hn(t,0)}function N5(t){return hn(t,0)}function Zie(t){return hn(t,0)}function eoe(t){return hn(t,0)}function toe(t){return tg(t)}function noe(t){let e=(0,Jy.Number)();return hn(t,0)||hn(t,1)&&"length"in t.properties&&Yn(Ke(t.properties.length,e))===B.True}function ioe(t){return hn(t,0)}function tg(t){let e=(0,Jy.Number)();return hn(t,0)||hn(t,1)&&"length"in t.properties&&Yn(Ke(t.properties.length,e))===B.True}function ooe(t){let e=(0,Oie.Function)([(0,W5.Any)()],(0,W5.Any)());return hn(t,0)||hn(t,1)&&"then"in t.properties&&Yn(Ke(t.properties.then,e))===B.True}function z5(t,e){return Ke(t,e)===B.False||M.TypeGuard.IsOptional(t)&&!M.TypeGuard.IsOptional(e)?B.False:B.True}function Bt(t,e){return M.TypeGuard.IsUnknown(t)?B.False:M.TypeGuard.IsAny(t)?B.Union:M.TypeGuard.IsNever(t)||M.TypeGuard.IsLiteralString(t)&&U5(e)||M.TypeGuard.IsLiteralNumber(t)&&zy(e)||M.TypeGuard.IsLiteralBoolean(t)&&N5(e)||M.TypeGuard.IsSymbol(t)&&$5(e)||M.TypeGuard.IsBigInt(t)&&Zie(e)||M.TypeGuard.IsString(t)&&U5(e)||M.TypeGuard.IsSymbol(t)&&$5(e)||M.TypeGuard.IsNumber(t)&&zy(e)||M.TypeGuard.IsInteger(t)&&zy(e)||M.TypeGuard.IsBoolean(t)&&N5(e)||M.TypeGuard.IsUint8Array(t)&&toe(e)||M.TypeGuard.IsDate(t)&&eoe(e)||M.TypeGuard.IsConstructor(t)&&ioe(e)||M.TypeGuard.IsFunction(t)&&noe(e)?B.True:M.TypeGuard.IsRecord(t)&&M.TypeGuard.IsString(Vy(t))?e[B5.Hint]==="Record"?B.True:B.False:M.TypeGuard.IsRecord(t)&&M.TypeGuard.IsNumber(Vy(t))&&hn(e,0)?B.True:B.False}function roe(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):M.TypeGuard.IsObject(e)?(()=>{for(let n of Object.getOwnPropertyNames(e.properties)){if(!(n in t.properties)&&!M.TypeGuard.IsOptional(e.properties[n]))return B.False;if(M.TypeGuard.IsOptional(e.properties[n]))return B.True;if(z5(t.properties[n],e.properties[n])===B.False)return B.False}return B.True})():B.False}function soe(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)&&ooe(e)?B.True:M.TypeGuard.IsPromise(e)?Yn(Ke(t.item,e.item)):B.False}function Vy(t){return Zl.PatternNumberExact in t.patternProperties?(0,Jy.Number)():Zl.PatternStringExact in t.patternProperties?(0,Hy.String)():ec("Unknown record key pattern")}function Qy(t){return Zl.PatternNumberExact in t.patternProperties?t.patternProperties[Zl.PatternNumberExact]:Zl.PatternStringExact in t.patternProperties?t.patternProperties[Zl.PatternStringExact]:ec("Unable to get record value schema")}function Xn(t,e){let[n,i]=[Vy(e),Qy(e)];return M.TypeGuard.IsLiteralString(t)&&M.TypeGuard.IsNumber(n)&&Yn(Ke(t,i))===B.True?B.True:M.TypeGuard.IsUint8Array(t)&&M.TypeGuard.IsNumber(n)||M.TypeGuard.IsString(t)&&M.TypeGuard.IsNumber(n)||M.TypeGuard.IsArray(t)&&M.TypeGuard.IsNumber(n)?Ke(t,i):M.TypeGuard.IsObject(t)?(()=>{for(let o of Object.getOwnPropertyNames(t.properties))if(z5(i,t.properties[o])===B.False)return B.False;return B.True})():B.False}function aoe(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Ke(Qy(t),Qy(e)):B.False}function loe(t,e){let n=M.TypeGuard.IsRegExp(t)?(0,Hy.String)():t,i=M.TypeGuard.IsRegExp(e)?(0,Hy.String)():e;return Ke(n,i)}function H5(t,e){return M.TypeGuard.IsLiteral(t)&&M.ValueGuard.IsString(t.const)||M.TypeGuard.IsString(t)?B.True:B.False}function coe(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):M.TypeGuard.IsString(e)?B.True:B.False}function uoe(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):M.TypeGuard.IsSymbol(e)?B.True:B.False}function doe(t,e){return M.TypeGuard.IsTemplateLiteral(t)?Ke((0,F5.TemplateLiteralToUnion)(t),e):M.TypeGuard.IsTemplateLiteral(e)?Ke(t,(0,F5.TemplateLiteralToUnion)(e)):ec("Invalid fallthrough for TemplateLiteral")}function poe(t,e){return M.TypeGuard.IsArray(e)&&t.items!==void 0&&t.items.every(n=>Ke(n,e.items)===B.True)}function moe(t,e){return M.TypeGuard.IsNever(t)?B.True:M.TypeGuard.IsUnknown(t)?B.False:M.TypeGuard.IsAny(t)?B.Union:B.False}function hoe(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)&&tg(e)||M.TypeGuard.IsArray(e)&&poe(t,e)?B.True:M.TypeGuard.IsTuple(e)?M.ValueGuard.IsUndefined(t.items)&&!M.ValueGuard.IsUndefined(e.items)||!M.ValueGuard.IsUndefined(t.items)&&M.ValueGuard.IsUndefined(e.items)?B.False:M.ValueGuard.IsUndefined(t.items)&&!M.ValueGuard.IsUndefined(e.items)||t.items.every((n,i)=>Ke(n,e.items[i])===B.True)?B.True:B.False:B.False}function goe(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):M.TypeGuard.IsUint8Array(e)?B.True:B.False}function foe(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):M.TypeGuard.IsVoid(e)?xoe(t,e):M.TypeGuard.IsUndefined(e)?B.True:B.False}function Xy(t,e){return e.anyOf.some(n=>Ke(t,n)===B.True)?B.True:B.False}function voe(t,e){return t.anyOf.every(n=>Ke(n,e)===B.True)?B.True:B.False}function V5(t,e){return B.True}function boe(t,e){return M.TypeGuard.IsNever(e)?K5(t,e):M.TypeGuard.IsIntersect(e)?eg(t,e):M.TypeGuard.IsUnion(e)?Xy(t,e):M.TypeGuard.IsAny(e)?Yy(t,e):M.TypeGuard.IsString(e)?H5(t,e):M.TypeGuard.IsNumber(e)?G5(t,e):M.TypeGuard.IsInteger(e)?q5(t,e):M.TypeGuard.IsBoolean(e)?j5(t,e):M.TypeGuard.IsArray(e)?Die(t,e):M.TypeGuard.IsTuple(e)?moe(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsUnknown(e)?B.True:B.False}function xoe(t,e){return M.TypeGuard.IsUndefined(t)||M.TypeGuard.IsUndefined(t)?B.True:B.False}function yoe(t,e){return M.TypeGuard.IsIntersect(e)?eg(t,e):M.TypeGuard.IsUnion(e)?Xy(t,e):M.TypeGuard.IsUnknown(e)?V5(t,e):M.TypeGuard.IsAny(e)?Yy(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsVoid(e)?B.True:B.False}function Ke(t,e){return M.TypeGuard.IsTemplateLiteral(t)||M.TypeGuard.IsTemplateLiteral(e)?doe(t,e):M.TypeGuard.IsRegExp(t)||M.TypeGuard.IsRegExp(e)?loe(t,e):M.TypeGuard.IsNot(t)||M.TypeGuard.IsNot(e)?Jie(t,e):M.TypeGuard.IsAny(t)?Fie(t,e):M.TypeGuard.IsArray(t)?Uie(t,e):M.TypeGuard.IsBigInt(t)?Nie(t,e):M.TypeGuard.IsBoolean(t)?Bie(t,e):M.TypeGuard.IsAsyncIterator(t)?$ie(t,e):M.TypeGuard.IsConstructor(t)?jie(t,e):M.TypeGuard.IsDate(t)?qie(t,e):M.TypeGuard.IsFunction(t)?Kie(t,e):M.TypeGuard.IsInteger(t)?Gie(t,e):M.TypeGuard.IsIntersect(t)?zie(t,e):M.TypeGuard.IsIterator(t)?Hie(t,e):M.TypeGuard.IsLiteral(t)?Vie(t,e):M.TypeGuard.IsNever(t)?Qie(t,e):M.TypeGuard.IsNull(t)?Yie(t,e):M.TypeGuard.IsNumber(t)?Xie(t,e):M.TypeGuard.IsObject(t)?roe(t,e):M.TypeGuard.IsRecord(t)?aoe(t,e):M.TypeGuard.IsString(t)?coe(t,e):M.TypeGuard.IsSymbol(t)?uoe(t,e):M.TypeGuard.IsTuple(t)?hoe(t,e):M.TypeGuard.IsPromise(t)?soe(t,e):M.TypeGuard.IsUint8Array(t)?goe(t,e):M.TypeGuard.IsUndefined(t)?foe(t,e):M.TypeGuard.IsUnion(t)?voe(t,e):M.TypeGuard.IsUnknown(t)?boe(t,e):M.TypeGuard.IsVoid(t)?yoe(t,e):ec(`Unknown left type operand '${t[B5.Kind]}'`)}function woe(t,e){return Ke(t,e)}});var tw=C(ew=>{"use strict";Object.defineProperty(ew,"__esModule",{value:!0});ew.ExtendsFromMappedResult=Roe;var Soe=bt(),koe=ng(),Toe=ln();function Coe(t,e,n,i,o){let r={};for(let s of globalThis.Object.getOwnPropertyNames(t))r[s]=(0,koe.Extends)(t[s],e,n,i,(0,Toe.Clone)(o));return r}function Moe(t,e,n,i,o){return Coe(t.properties,e,n,i,o)}function Roe(t,e,n,i,o){let r=Moe(t,e,n,i,o);return(0,Soe.MappedResult)(r)}});var ng=C(iw=>{"use strict";Object.defineProperty(iw,"__esModule",{value:!0});iw.Extends=_oe;var Q5=he(),Poe=mt(),nw=Zy(),Ioe=ow(),Eoe=tw(),J5=Oe();function Aoe(t,e,n,i){let o=(0,nw.ExtendsCheck)(t,e);return o===nw.ExtendsResult.Union?(0,Poe.Union)([n,i]):o===nw.ExtendsResult.True?n:i}function _oe(t,e,n,i,o){return(0,J5.IsMappedResult)(t)?(0,Eoe.ExtendsFromMappedResult)(t,e,n,i,o):(0,J5.IsMappedKey)(t)?(0,Q5.CreateType)((0,Ioe.ExtendsFromMappedKey)(t,e,n,i,o)):(0,Q5.CreateType)(Aoe(t,e,n,i),o)}});var ow=C(rw=>{"use strict";Object.defineProperty(rw,"__esModule",{value:!0});rw.ExtendsFromMappedKey=Noe;var Ooe=bt(),Loe=Jt(),Woe=ng(),Foe=ln();function Doe(t,e,n,i,o){return{[t]:(0,Woe.Extends)((0,Loe.Literal)(t),e,n,i,(0,Foe.Clone)(o))}}function Uoe(t,e,n,i,o){return t.reduce((r,s)=>({...r,...Doe(s,e,n,i,o)}),{})}function $oe(t,e,n,i,o){return Uoe(t.keys,e,n,i,o)}function Noe(t,e,n,i,o){let r=$oe(t,e,n,i,o);return(0,Ooe.MappedResult)(r)}});var Y5=C(sw=>{"use strict";Object.defineProperty(sw,"__esModule",{value:!0});sw.ExtendsUndefinedCheck=og;var ig=me();function Boe(t){return t.allOf.every(e=>og(e))}function joe(t){return t.anyOf.some(e=>og(e))}function qoe(t){return!og(t.not)}function og(t){return t[ig.Kind]==="Intersect"?Boe(t):t[ig.Kind]==="Union"?joe(t):t[ig.Kind]==="Not"?qoe(t):t[ig.Kind]==="Undefined"}});var tc=C(mi=>{"use strict";var Koe=mi&&mi.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),gd=mi&&mi.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Koe(e,t,n)};Object.defineProperty(mi,"__esModule",{value:!0});gd(Zy(),mi);gd(ow(),mi);gd(tw(),mi);gd(Y5(),mi);gd(ng(),mi)});var lw=C(aw=>{"use strict";Object.defineProperty(aw,"__esModule",{value:!0});aw.ExcludeFromTemplateLiteral=Hoe;var Goe=rg(),zoe=Ui();function Hoe(t,e){return(0,Goe.Exclude)((0,zoe.TemplateLiteralToUnion)(t),e)}});var rg=C(dw=>{"use strict";Object.defineProperty(dw,"__esModule",{value:!0});dw.Exclude=Zoe;var cw=he(),Voe=mt(),Qoe=At(),sg=tc(),Joe=pw(),Yoe=lw(),uw=Oe();function Xoe(t,e){let n=t.filter(i=>(0,sg.ExtendsCheck)(i,e)===sg.ExtendsResult.False);return n.length===1?n[0]:(0,Voe.Union)(n)}function Zoe(t,e,n={}){return(0,uw.IsTemplateLiteral)(t)?(0,cw.CreateType)((0,Yoe.ExcludeFromTemplateLiteral)(t,e),n):(0,uw.IsMappedResult)(t)?(0,cw.CreateType)((0,Joe.ExcludeFromMappedResult)(t,e),n):(0,cw.CreateType)((0,uw.IsUnion)(t)?Xoe(t.anyOf,e):(0,sg.ExtendsCheck)(t,e)!==sg.ExtendsResult.False?(0,Qoe.Never)():t,n)}});var pw=C(mw=>{"use strict";Object.defineProperty(mw,"__esModule",{value:!0});mw.ExcludeFromMappedResult=ore;var ere=bt(),tre=rg();function nre(t,e){let n={};for(let i of globalThis.Object.getOwnPropertyNames(t))n[i]=(0,tre.Exclude)(t[i],e);return n}function ire(t,e){return nre(t.properties,e)}function ore(t,e){let n=ire(t,e);return(0,ere.MappedResult)(n)}});var ag=C(To=>{"use strict";var rre=To&&To.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),hw=To&&To.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&rre(e,t,n)};Object.defineProperty(To,"__esModule",{value:!0});hw(pw(),To);hw(lw(),To);hw(rg(),To)});var fw=C(gw=>{"use strict";Object.defineProperty(gw,"__esModule",{value:!0});gw.ExtractFromTemplateLiteral=lre;var sre=lg(),are=Ui();function lre(t,e){return(0,sre.Extract)((0,are.TemplateLiteralToUnion)(t),e)}});var lg=C(xw=>{"use strict";Object.defineProperty(xw,"__esModule",{value:!0});xw.Extract=hre;var vw=he(),cre=mt(),ure=At(),cg=tc(),dre=yw(),pre=fw(),bw=Oe();function mre(t,e){let n=t.filter(i=>(0,cg.ExtendsCheck)(i,e)!==cg.ExtendsResult.False);return n.length===1?n[0]:(0,cre.Union)(n)}function hre(t,e,n){return(0,bw.IsTemplateLiteral)(t)?(0,vw.CreateType)((0,pre.ExtractFromTemplateLiteral)(t,e),n):(0,bw.IsMappedResult)(t)?(0,vw.CreateType)((0,dre.ExtractFromMappedResult)(t,e),n):(0,vw.CreateType)((0,bw.IsUnion)(t)?mre(t.anyOf,e):(0,cg.ExtendsCheck)(t,e)!==cg.ExtendsResult.False?t:(0,ure.Never)(),n)}});var yw=C(ww=>{"use strict";Object.defineProperty(ww,"__esModule",{value:!0});ww.ExtractFromMappedResult=xre;var gre=bt(),fre=lg();function vre(t,e){let n={};for(let i of globalThis.Object.getOwnPropertyNames(t))n[i]=(0,fre.Extract)(t[i],e);return n}function bre(t,e){return vre(t.properties,e)}function xre(t,e){let n=bre(t,e);return(0,gre.MappedResult)(n)}});var ug=C(Co=>{"use strict";var yre=Co&&Co.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Sw=Co&&Co.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&yre(e,t,n)};Object.defineProperty(Co,"__esModule",{value:!0});Sw(yw(),Co);Sw(fw(),Co);Sw(lg(),Co)});var X5=C(Mo=>{"use strict";var wre=Mo&&Mo.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Sre=Mo&&Mo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kre=Mo&&Mo.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&wre(n,e,i[o]);return Sre(n,e),n}})();Object.defineProperty(Mo,"__esModule",{value:!0});Mo.InstanceType=Rre;var Tre=he(),Cre=At(),Mre=kre(Oe());function Rre(t,e){return Mre.IsConstructor(t)?(0,Tre.CreateType)(t.returns,e):(0,Cre.Never)(e)}});var dg=C(Js=>{"use strict";var Pre=Js&&Js.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Ire=Js&&Js.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Pre(e,t,n)};Object.defineProperty(Js,"__esModule",{value:!0});Ire(X5(),Js)});var Z5=C(kw=>{"use strict";Object.defineProperty(kw,"__esModule",{value:!0});kw.ReadonlyOptional=_re;var Ere=hr(),Are=Di();function _re(t){return(0,Ere.Readonly)((0,Are.Optional)(t))}});var fd=C(Ys=>{"use strict";var Ore=Ys&&Ys.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Lre=Ys&&Ys.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Ore(e,t,n)};Object.defineProperty(Ys,"__esModule",{value:!0});Lre(Z5(),Ys)});var oL=C(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.Record=Yre;nc.RecordPattern=Cw;nc.RecordKey=Xre;nc.RecordValue=Zre;var Wre=he(),tL=me(),Fre=At(),Dre=dr(),nL=pn(),eL=Es(),Ure=mt(),$re=Ui(),Xs=Yu(),iL=pi(),Nre=Qt(),Bi=Oe();function Zs(t,e,n){return(0,Wre.CreateType)({[tL.Kind]:"Record",type:"object",patternProperties:{[t]:e}},n)}function Tw(t,e,n){let i={};for(let o of t)i[o]=e;return(0,nL.Object)(i,{...n,[tL.Hint]:"Record"})}function Bre(t,e,n){return(0,$re.IsTemplateLiteralFinite)(t)?Tw((0,iL.IndexPropertyKeys)(t),e,n):Zs(t.pattern,e,n)}function jre(t,e,n){return Tw((0,iL.IndexPropertyKeys)((0,Ure.Union)(t)),e,n)}function qre(t,e,n){return Tw([t.toString()],e,n)}function Kre(t,e,n){return Zs(t.source,e,n)}function Gre(t,e,n){let i=(0,Nre.IsUndefined)(t.pattern)?Xs.PatternStringExact:t.pattern;return Zs(i,e,n)}function zre(t,e,n){return Zs(Xs.PatternStringExact,e,n)}function Hre(t,e,n){return Zs(Xs.PatternNeverExact,e,n)}function Vre(t,e,n){return(0,nL.Object)({true:e,false:e},n)}function Qre(t,e,n){return Zs(Xs.PatternNumberExact,e,n)}function Jre(t,e,n){return Zs(Xs.PatternNumberExact,e,n)}function Yre(t,e,n={}){return(0,Bi.IsUnion)(t)?jre(t.anyOf,e,n):(0,Bi.IsTemplateLiteral)(t)?Bre(t,e,n):(0,Bi.IsLiteral)(t)?qre(t.const,e,n):(0,Bi.IsBoolean)(t)?Vre(t,e,n):(0,Bi.IsInteger)(t)?Qre(t,e,n):(0,Bi.IsNumber)(t)?Jre(t,e,n):(0,Bi.IsRegExp)(t)?Kre(t,e,n):(0,Bi.IsString)(t)?Gre(t,e,n):(0,Bi.IsAny)(t)?zre(t,e,n):(0,Bi.IsNever)(t)?Hre(t,e,n):(0,Fre.Never)(n)}function Cw(t){return globalThis.Object.getOwnPropertyNames(t.patternProperties)[0]}function Xre(t){let e=Cw(t);return e===Xs.PatternStringExact?(0,eL.String)():e===Xs.PatternNumberExact?(0,Dre.Number)():(0,eL.String)({pattern:e})}function Zre(t){return t.patternProperties[Cw(t)]}});var ic=C(ea=>{"use strict";var ese=ea&&ea.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),tse=ea&&ea.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&ese(e,t,n)};Object.defineProperty(ea,"__esModule",{value:!0});tse(oL(),ea)});var sL=C(ji=>{"use strict";var nse=ji&&ji.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),ise=ji&&ji.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rL=ji&&ji.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&nse(n,e,i[o]);return ise(n,e),n}})();Object.defineProperty(ji,"__esModule",{value:!0});ji.FromTypes=oc;ji.Instantiate=Cse;var ose=Th(),rse=Gs(),sse=fd(),ase=hr(),lse=Di(),cse=pn(),Mw=ic(),use=rL(Qt()),gn=rL(Oe());function dse(t,e){return e.parameters=oc(t,e.parameters),e.returns=hi(t,e.returns),e}function pse(t,e){return e.parameters=oc(t,e.parameters),e.returns=hi(t,e.returns),e}function mse(t,e){return e.allOf=oc(t,e.allOf),e}function hse(t,e){return e.anyOf=oc(t,e.anyOf),e}function gse(t,e){return use.IsUndefined(e.items)||(e.items=oc(t,e.items)),e}function fse(t,e){return e.items=hi(t,e.items),e}function vse(t,e){return e.items=hi(t,e.items),e}function bse(t,e){return e.items=hi(t,e.items),e}function xse(t,e){return e.item=hi(t,e.item),e}function yse(t,e){let n=Tse(t,e.properties);return{...e,...(0,cse.Object)(n)}}function wse(t,e){let n=hi(t,(0,Mw.RecordKey)(e)),i=hi(t,(0,Mw.RecordValue)(e)),o=(0,Mw.Record)(n,i);return{...e,...o}}function Sse(t,e){return e.index in t?t[e.index]:(0,rse.Unknown)()}function kse(t,e){let n=gn.IsReadonly(e),i=gn.IsOptional(e),o=hi(t,e);return n&&i?(0,sse.ReadonlyOptional)(o):n&&!i?(0,ase.Readonly)(o):!n&&i?(0,lse.Optional)(o):o}function Tse(t,e){return globalThis.Object.getOwnPropertyNames(e).reduce((n,i)=>({...n,[i]:kse(t,e[i])}),{})}function oc(t,e){return e.map(n=>hi(t,n))}function hi(t,e){return gn.IsConstructor(e)?dse(t,e):gn.IsFunction(e)?pse(t,e):gn.IsIntersect(e)?mse(t,e):gn.IsUnion(e)?hse(t,e):gn.IsTuple(e)?gse(t,e):gn.IsArray(e)?fse(t,e):gn.IsAsyncIterator(e)?vse(t,e):gn.IsIterator(e)?bse(t,e):gn.IsPromise(e)?xse(t,e):gn.IsObject(e)?yse(t,e):gn.IsRecord(e)?wse(t,e):gn.IsArgument(e)?Sse(t,e):e}function Cse(t,e){return hi(e,(0,ose.CloneType)(t))}});var pg=C(ta=>{"use strict";var Mse=ta&&ta.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Rse=ta&&ta.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Mse(e,t,n)};Object.defineProperty(ta,"__esModule",{value:!0});Rse(sL(),ta)});var aL=C(Rw=>{"use strict";Object.defineProperty(Rw,"__esModule",{value:!0});Rw.Integer=Ese;var Pse=he(),Ise=me();function Ese(t){return(0,Pse.CreateType)({[Ise.Kind]:"Integer",type:"integer"},t)}});var mg=C(na=>{"use strict";var Ase=na&&na.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),_se=na&&na.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Ase(e,t,n)};Object.defineProperty(na,"__esModule",{value:!0});_se(aL(),na)});var Iw=C(Pw=>{"use strict";Object.defineProperty(Pw,"__esModule",{value:!0});Pw.IntrinsicFromMappedKey=Nse;var Ose=bt(),Lse=ia(),Wse=Jt(),Fse=ln();function Dse(t,e,n){return{[t]:(0,Lse.Intrinsic)((0,Wse.Literal)(t),e,(0,Fse.Clone)(n))}}function Use(t,e,n){return t.reduce((o,r)=>({...o,...Dse(r,e,n)}),{})}function $se(t,e,n){return Use(t.keys,e,n)}function Nse(t,e,n){let i=$se(t,e,n);return(0,Ose.MappedResult)(i)}});var ia=C(Ew=>{"use strict";Object.defineProperty(Ew,"__esModule",{value:!0});Ew.Intrinsic=pL;var Bse=he(),hg=Ui(),jse=Iw(),lL=Jt(),cL=mt(),gg=Oe();function qse(t){let[e,n]=[t.slice(0,1),t.slice(1)];return[e.toLowerCase(),n].join("")}function Kse(t){let[e,n]=[t.slice(0,1),t.slice(1)];return[e.toUpperCase(),n].join("")}function Gse(t){return t.toUpperCase()}function zse(t){return t.toLowerCase()}function Hse(t,e,n){let i=(0,hg.TemplateLiteralParseExact)(t.pattern);if(!(0,hg.IsTemplateLiteralExpressionFinite)(i))return{...t,pattern:uL(t.pattern,e)};let s=[...(0,hg.TemplateLiteralExpressionGenerate)(i)].map(c=>(0,lL.Literal)(c)),a=dL(s,e),l=(0,cL.Union)(a);return(0,hg.TemplateLiteral)([l],n)}function uL(t,e){return typeof t=="string"?e==="Uncapitalize"?qse(t):e==="Capitalize"?Kse(t):e==="Uppercase"?Gse(t):e==="Lowercase"?zse(t):t:t.toString()}function dL(t,e){return t.map(n=>pL(n,e))}function pL(t,e,n={}){return(0,gg.IsMappedKey)(t)?(0,jse.IntrinsicFromMappedKey)(t,e,n):(0,gg.IsTemplateLiteral)(t)?Hse(t,e,n):(0,gg.IsUnion)(t)?(0,cL.Union)(dL(t.anyOf,e),n):(0,gg.IsLiteral)(t)?(0,lL.Literal)(uL(t.const,e),n):(0,Bse.CreateType)(t,n)}});var mL=C(Aw=>{"use strict";Object.defineProperty(Aw,"__esModule",{value:!0});Aw.Capitalize=Qse;var Vse=ia();function Qse(t,e={}){return(0,Vse.Intrinsic)(t,"Capitalize",e)}});var hL=C(_w=>{"use strict";Object.defineProperty(_w,"__esModule",{value:!0});_w.Lowercase=Yse;var Jse=ia();function Yse(t,e={}){return(0,Jse.Intrinsic)(t,"Lowercase",e)}});var gL=C(Ow=>{"use strict";Object.defineProperty(Ow,"__esModule",{value:!0});Ow.Uncapitalize=Zse;var Xse=ia();function Zse(t,e={}){return(0,Xse.Intrinsic)(t,"Uncapitalize",e)}});var fL=C(Lw=>{"use strict";Object.defineProperty(Lw,"__esModule",{value:!0});Lw.Uppercase=tae;var eae=ia();function tae(t,e={}){return(0,eae.Intrinsic)(t,"Uppercase",e)}});var fg=C(Zn=>{"use strict";var nae=Zn&&Zn.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),rc=Zn&&Zn.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&nae(e,t,n)};Object.defineProperty(Zn,"__esModule",{value:!0});rc(mL(),Zn);rc(Iw(),Zn);rc(ia(),Zn);rc(hL(),Zn);rc(gL(),Zn);rc(fL(),Zn)});var Fw=C(Ww=>{"use strict";Object.defineProperty(Ww,"__esModule",{value:!0});Ww.OmitFromMappedResult=lae;var iae=bt(),oae=vg(),rae=ln();function sae(t,e,n){let i={};for(let o of globalThis.Object.getOwnPropertyNames(t))i[o]=(0,oae.Omit)(t[o],e,(0,rae.Clone)(n));return i}function aae(t,e,n){return sae(t.properties,e,n)}function lae(t,e,n){let i=aae(t,e,n);return(0,iae.MappedResult)(i)}});var vg=C($w=>{"use strict";Object.defineProperty($w,"__esModule",{value:!0});$w.Omit=Tae;var cae=he(),uae=Ah(),dae=Hu(),Dw=cr(),pae=Jt(),mae=pi(),hae=An(),vL=mt(),bL=pn(),gae=Nw(),fae=Fw(),Ro=Oe(),vae=Qt();function bae(t,e){return t.map(n=>Uw(n,e))}function xae(t,e){return t.map(n=>Uw(n,e))}function yae(t,e){let{[e]:n,...i}=t;return i}function wae(t,e){return e.reduce((n,i)=>yae(n,i),t)}function Sae(t,e,n){let i=(0,uae.Discard)(t,[dae.TransformKind,"$id","required","properties"]),o=wae(n,e);return(0,bL.Object)(o,i)}function kae(t){let e=t.reduce((n,i)=>(0,Ro.IsLiteralValue)(i)?[...n,(0,pae.Literal)(i)]:n,[]);return(0,vL.Union)(e)}function Uw(t,e){return(0,Ro.IsIntersect)(t)?(0,hae.Intersect)(bae(t.allOf,e)):(0,Ro.IsUnion)(t)?(0,vL.Union)(xae(t.anyOf,e)):(0,Ro.IsObject)(t)?Sae(t,e,t.properties):(0,bL.Object)({})}function Tae(t,e,n){let i=(0,vae.IsArray)(e)?kae(e):e,o=(0,Ro.IsSchema)(e)?(0,mae.IndexPropertyKeys)(e):e,r=(0,Ro.IsRef)(t),s=(0,Ro.IsRef)(e);return(0,Ro.IsMappedResult)(t)?(0,fae.OmitFromMappedResult)(t,o,n):(0,Ro.IsMappedKey)(e)?(0,gae.OmitFromMappedKey)(t,e,n):r&&s?(0,Dw.Computed)("Omit",[t,i],n):!r&&s?(0,Dw.Computed)("Omit",[t,i],n):r&&!s?(0,Dw.Computed)("Omit",[t,i],n):(0,cae.CreateType)({...Uw(t,o),...n})}});var Nw=C(Bw=>{"use strict";Object.defineProperty(Bw,"__esModule",{value:!0});Bw.OmitFromMappedKey=Aae;var Cae=bt(),Mae=vg(),Rae=ln();function Pae(t,e,n){return{[e]:(0,Mae.Omit)(t,[e],(0,Rae.Clone)(n))}}function Iae(t,e,n){return e.reduce((i,o)=>({...i,...Pae(t,o,n)}),{})}function Eae(t,e,n){return Iae(t,e.keys,n)}function Aae(t,e,n){let i=Eae(t,e,n);return(0,Cae.MappedResult)(i)}});var vd=C(Po=>{"use strict";var _ae=Po&&Po.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),jw=Po&&Po.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&_ae(e,t,n)};Object.defineProperty(Po,"__esModule",{value:!0});jw(Nw(),Po);jw(Fw(),Po);jw(vg(),Po)});var Kw=C(qw=>{"use strict";Object.defineProperty(qw,"__esModule",{value:!0});qw.PickFromMappedResult=Uae;var Oae=bt(),Lae=bg(),Wae=ln();function Fae(t,e,n){let i={};for(let o of globalThis.Object.getOwnPropertyNames(t))i[o]=(0,Lae.Pick)(t[o],e,(0,Wae.Clone)(n));return i}function Dae(t,e,n){return Fae(t.properties,e,n)}function Uae(t,e,n){let i=Dae(t,e,n);return(0,Oae.MappedResult)(i)}});var bg=C(Hw=>{"use strict";Object.defineProperty(Hw,"__esModule",{value:!0});Hw.Pick=Zae;var $ae=he(),Nae=Ah(),Gw=cr(),Bae=An(),jae=Jt(),xL=pn(),yL=mt(),qae=pi(),Kae=Hu(),Io=Oe(),Gae=Qt(),zae=Vw(),Hae=Kw();function Vae(t,e){return t.map(n=>zw(n,e))}function Qae(t,e){return t.map(n=>zw(n,e))}function Jae(t,e){let n={};for(let i of e)i in t&&(n[i]=t[i]);return n}function Yae(t,e,n){let i=(0,Nae.Discard)(t,[Kae.TransformKind,"$id","required","properties"]),o=Jae(n,e);return(0,xL.Object)(o,i)}function Xae(t){let e=t.reduce((n,i)=>(0,Io.IsLiteralValue)(i)?[...n,(0,jae.Literal)(i)]:n,[]);return(0,yL.Union)(e)}function zw(t,e){return(0,Io.IsIntersect)(t)?(0,Bae.Intersect)(Vae(t.allOf,e)):(0,Io.IsUnion)(t)?(0,yL.Union)(Qae(t.anyOf,e)):(0,Io.IsObject)(t)?Yae(t,e,t.properties):(0,xL.Object)({})}function Zae(t,e,n){let i=(0,Gae.IsArray)(e)?Xae(e):e,o=(0,Io.IsSchema)(e)?(0,qae.IndexPropertyKeys)(e):e,r=(0,Io.IsRef)(t),s=(0,Io.IsRef)(e);return(0,Io.IsMappedResult)(t)?(0,Hae.PickFromMappedResult)(t,o,n):(0,Io.IsMappedKey)(e)?(0,zae.PickFromMappedKey)(t,e,n):r&&s?(0,Gw.Computed)("Pick",[t,i],n):!r&&s?(0,Gw.Computed)("Pick",[t,i],n):r&&!s?(0,Gw.Computed)("Pick",[t,i],n):(0,$ae.CreateType)({...zw(t,o),...n})}});var Vw=C(Qw=>{"use strict";Object.defineProperty(Qw,"__esModule",{value:!0});Qw.PickFromMappedKey=sle;var ele=bt(),tle=bg(),nle=ln();function ile(t,e,n){return{[e]:(0,tle.Pick)(t,[e],(0,nle.Clone)(n))}}function ole(t,e,n){return e.reduce((i,o)=>({...i,...ile(t,o,n)}),{})}function rle(t,e,n){return ole(t,e.keys,n)}function sle(t,e,n){let i=rle(t,e,n);return(0,ele.MappedResult)(i)}});var bd=C(Eo=>{"use strict";var ale=Eo&&Eo.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Jw=Eo&&Eo.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&ale(e,t,n)};Object.defineProperty(Eo,"__esModule",{value:!0});Jw(Vw(),Eo);Jw(Kw(),Eo);Jw(bg(),Eo)});var Xw=C(Ao=>{"use strict";var lle=Ao&&Ao.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),cle=Ao&&Ao.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ule=Ao&&Ao.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&lle(n,e,i[o]);return cle(n,e),n}})();Object.defineProperty(Ao,"__esModule",{value:!0});Ao.Partial=kle;var dle=he(),Yw=cr(),ple=Di(),SL=pn(),mle=An(),hle=mt(),gle=fr(),fle=vo(),vle=me(),ble=Zw(),Xt=ule(Oe());function xle(t,e){return(0,Yw.Computed)("Partial",[(0,Yw.Computed)(t,e)])}function yle(t){return(0,Yw.Computed)("Partial",[(0,gle.Ref)(t)])}function wle(t){let e={};for(let n of globalThis.Object.getOwnPropertyNames(t))e[n]=(0,ple.Optional)(t[n]);return e}function Sle(t,e){let n=(0,fle.Discard)(t,[vle.TransformKind,"$id","required","properties"]),i=wle(e);return(0,SL.Object)(i,n)}function wL(t){return t.map(e=>kL(e))}function kL(t){return Xt.IsComputed(t)?xle(t.target,t.parameters):Xt.IsRef(t)?yle(t.$ref):Xt.IsIntersect(t)?(0,mle.Intersect)(wL(t.allOf)):Xt.IsUnion(t)?(0,hle.Union)(wL(t.anyOf)):Xt.IsObject(t)?Sle(t,t.properties):Xt.IsBigInt(t)||Xt.IsBoolean(t)||Xt.IsInteger(t)||Xt.IsLiteral(t)||Xt.IsNull(t)||Xt.IsNumber(t)||Xt.IsString(t)||Xt.IsSymbol(t)||Xt.IsUndefined(t)?t:(0,SL.Object)({})}function kle(t,e){return Xt.IsMappedResult(t)?(0,ble.PartialFromMappedResult)(t,e):(0,dle.CreateType)({...kL(t),...e})}});var Zw=C(eS=>{"use strict";Object.defineProperty(eS,"__esModule",{value:!0});eS.PartialFromMappedResult=Ile;var Tle=bt(),Cle=Xw(),Mle=ln();function Rle(t,e){let n={};for(let i of globalThis.Object.getOwnPropertyNames(t))n[i]=(0,Cle.Partial)(t[i],(0,Mle.Clone)(e));return n}function Ple(t,e){return Rle(t.properties,e)}function Ile(t,e){let n=Ple(t,e);return(0,Tle.MappedResult)(n)}});var xd=C(vr=>{"use strict";var Ele=vr&&vr.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),TL=vr&&vr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Ele(e,t,n)};Object.defineProperty(vr,"__esModule",{value:!0});TL(Zw(),vr);TL(Xw(),vr)});var nS=C(_o=>{"use strict";var Ale=_o&&_o.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),_le=_o&&_o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ole=_o&&_o.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&Ale(n,e,i[o]);return _le(n,e),n}})();Object.defineProperty(_o,"__esModule",{value:!0});_o.Required=qle;var Lle=he(),tS=cr(),ML=pn(),Wle=An(),Fle=mt(),Dle=fr(),RL=me(),PL=vo(),Ule=iS(),Zt=Ole(Oe());function $le(t,e){return(0,tS.Computed)("Required",[(0,tS.Computed)(t,e)])}function Nle(t){return(0,tS.Computed)("Required",[(0,Dle.Ref)(t)])}function Ble(t){let e={};for(let n of globalThis.Object.getOwnPropertyNames(t))e[n]=(0,PL.Discard)(t[n],[RL.OptionalKind]);return e}function jle(t,e){let n=(0,PL.Discard)(t,[RL.TransformKind,"$id","required","properties"]),i=Ble(e);return(0,ML.Object)(i,n)}function CL(t){return t.map(e=>IL(e))}function IL(t){return Zt.IsComputed(t)?$le(t.target,t.parameters):Zt.IsRef(t)?Nle(t.$ref):Zt.IsIntersect(t)?(0,Wle.Intersect)(CL(t.allOf)):Zt.IsUnion(t)?(0,Fle.Union)(CL(t.anyOf)):Zt.IsObject(t)?jle(t,t.properties):Zt.IsBigInt(t)||Zt.IsBoolean(t)||Zt.IsInteger(t)||Zt.IsLiteral(t)||Zt.IsNull(t)||Zt.IsNumber(t)||Zt.IsString(t)||Zt.IsSymbol(t)||Zt.IsUndefined(t)?t:(0,ML.Object)({})}function qle(t,e){return Zt.IsMappedResult(t)?(0,Ule.RequiredFromMappedResult)(t,e):(0,Lle.CreateType)({...IL(t),...e})}});var iS=C(oS=>{"use strict";Object.defineProperty(oS,"__esModule",{value:!0});oS.RequiredFromMappedResult=Vle;var Kle=bt(),Gle=nS();function zle(t,e){let n={};for(let i of globalThis.Object.getOwnPropertyNames(t))n[i]=(0,Gle.Required)(t[i],e);return n}function Hle(t,e){return zle(t.properties,e)}function Vle(t,e){let n=Hle(t,e);return(0,Kle.MappedResult)(n)}});var yd=C(br=>{"use strict";var Qle=br&&br.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),EL=br&&br.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Qle(e,t,n)};Object.defineProperty(br,"__esModule",{value:!0});EL(iS(),br);EL(nS(),br)});var LL=C(gi=>{"use strict";var Jle=gi&&gi.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Yle=gi&&gi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Xle=gi&&gi.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&Jle(n,e,i[o]);return Yle(n,e),n}})();Object.defineProperty(gi,"__esModule",{value:!0});gi.FromType=vn;gi.ComputeType=OL;gi.ComputeModuleProperties=Fce;var fn=go(),Zle=lx(),AL=vo(),ece=jl(),tce=cd(),nce=ql(),ice=Kl(),oce=pi(),rce=ur(),sce=An(),ace=Jl(),lce=Xl(),cce=pn(),uce=vd(),dce=bd(),rS=At(),pce=xd(),_L=ic(),mce=yd(),hce=yo(),gce=mt(),xg=me(),Ut=Xle(Oe());function fce(t,e){return e.map(n=>Ut.IsRef(n)?sS(t,n.$ref):vn(t,n))}function sS(t,e){return e in t?Ut.IsRef(t[e])?sS(t,t[e].$ref):vn(t,t[e]):(0,rS.Never)()}function vce(t){return(0,tce.Awaited)(t[0])}function bce(t){return(0,oce.Index)(t[0],t[1])}function xce(t){return(0,lce.KeyOf)(t[0])}function yce(t){return(0,pce.Partial)(t[0])}function wce(t){return(0,uce.Omit)(t[0],t[1])}function Sce(t){return(0,dce.Pick)(t[0],t[1])}function kce(t){return(0,mce.Required)(t[0])}function Tce(t,e,n){let i=fce(t,n);return e==="Awaited"?vce(i):e==="Index"?bce(i):e==="KeyOf"?xce(i):e==="Partial"?yce(i):e==="Omit"?wce(i):e==="Pick"?Sce(i):e==="Required"?kce(i):(0,rS.Never)()}function Cce(t,e){return(0,ece.Array)(vn(t,e))}function Mce(t,e){return(0,nce.AsyncIterator)(vn(t,e))}function Rce(t,e,n){return(0,ice.Constructor)(wd(t,e),vn(t,n))}function Pce(t,e,n){return(0,rce.Function)(wd(t,e),vn(t,n))}function Ice(t,e){return(0,sce.Intersect)(wd(t,e))}function Ece(t,e){return(0,ace.Iterator)(vn(t,e))}function Ace(t,e){return(0,cce.Object)(globalThis.Object.keys(e).reduce((n,i)=>({...n,[i]:vn(t,e[i])}),{}))}function _ce(t,e){let[n,i]=[vn(t,(0,_L.RecordValue)(e)),(0,_L.RecordPattern)(e)],o=(0,Zle.CloneType)(e);return o.patternProperties[i]=n,o}function Oce(t,e){return Ut.IsRef(e)?{...sS(t,e.$ref),[xg.TransformKind]:e[xg.TransformKind]}:e}function Lce(t,e){return(0,hce.Tuple)(wd(t,e))}function Wce(t,e){return(0,gce.Union)(wd(t,e))}function wd(t,e){return e.map(n=>vn(t,n))}function vn(t,e){return Ut.IsOptional(e)?(0,fn.CreateType)(vn(t,(0,AL.Discard)(e,[xg.OptionalKind])),e):Ut.IsReadonly(e)?(0,fn.CreateType)(vn(t,(0,AL.Discard)(e,[xg.ReadonlyKind])),e):Ut.IsTransform(e)?(0,fn.CreateType)(Oce(t,e),e):Ut.IsArray(e)?(0,fn.CreateType)(Cce(t,e.items),e):Ut.IsAsyncIterator(e)?(0,fn.CreateType)(Mce(t,e.items),e):Ut.IsComputed(e)?(0,fn.CreateType)(Tce(t,e.target,e.parameters)):Ut.IsConstructor(e)?(0,fn.CreateType)(Rce(t,e.parameters,e.returns),e):Ut.IsFunction(e)?(0,fn.CreateType)(Pce(t,e.parameters,e.returns),e):Ut.IsIntersect(e)?(0,fn.CreateType)(Ice(t,e.allOf),e):Ut.IsIterator(e)?(0,fn.CreateType)(Ece(t,e.items),e):Ut.IsObject(e)?(0,fn.CreateType)(Ace(t,e.properties),e):Ut.IsRecord(e)?(0,fn.CreateType)(_ce(t,e)):Ut.IsTuple(e)?(0,fn.CreateType)(Lce(t,e.items||[]),e):Ut.IsUnion(e)?(0,fn.CreateType)(Wce(t,e.anyOf),e):e}function OL(t,e){return e in t?vn(t,t[e]):(0,rS.Never)()}function Fce(t){return globalThis.Object.getOwnPropertyNames(t).reduce((e,n)=>({...e,[n]:OL(t,n)}),{})}});var FL=C(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.TModule=void 0;Sd.Module=$ce;var WL=go(),Dce=me(),Uce=LL(),yg=class{constructor(e){let n=(0,Uce.ComputeModuleProperties)(e),i=this.WithIdentifiers(n);this.$defs=i}Import(e,n){let i={...this.$defs,[e]:(0,WL.CreateType)(this.$defs[e],n)};return(0,WL.CreateType)({[Dce.Kind]:"Import",$defs:i,$ref:e})}WithIdentifiers(e){return globalThis.Object.getOwnPropertyNames(e).reduce((n,i)=>({...n,[i]:{...e[i],$id:i}}),{})}};Sd.TModule=yg;function $ce(t){return new yg(t)}});var wg=C(oa=>{"use strict";var Nce=oa&&oa.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Bce=oa&&oa.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Nce(e,t,n)};Object.defineProperty(oa,"__esModule",{value:!0});Bce(FL(),oa)});var DL=C(aS=>{"use strict";Object.defineProperty(aS,"__esModule",{value:!0});aS.Not=Kce;var jce=he(),qce=me();function Kce(t,e){return(0,jce.CreateType)({[qce.Kind]:"Not",not:t},e)}});var Sg=C(ra=>{"use strict";var Gce=ra&&ra.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),zce=ra&&ra.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Gce(e,t,n)};Object.defineProperty(ra,"__esModule",{value:!0});zce(DL(),ra)});var UL=C(Oo=>{"use strict";var Hce=Oo&&Oo.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Vce=Oo&&Oo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Qce=Oo&&Oo.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&Hce(n,e,i[o]);return Vce(n,e),n}})();Object.defineProperty(Oo,"__esModule",{value:!0});Oo.Parameters=Zce;var Jce=yo(),Yce=At(),Xce=Qce(Oe());function Zce(t,e){return Xce.IsFunction(t)?(0,Jce.Tuple)(t.parameters,e):(0,Yce.Never)()}});var kg=C(sa=>{"use strict";var eue=sa&&sa.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),tue=sa&&sa.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&eue(e,t,n)};Object.defineProperty(sa,"__esModule",{value:!0});tue(UL(),sa)});var NL=C(lS=>{"use strict";Object.defineProperty(lS,"__esModule",{value:!0});lS.Recursive=sue;var nue=Th(),iue=he(),oue=Qt(),$L=me(),rue=0;function sue(t,e={}){(0,oue.IsUndefined)(e.$id)&&(e.$id=`T${rue++}`);let n=(0,nue.CloneType)(t({[$L.Kind]:"This",$ref:`${e.$id}`}));return n.$id=e.$id,(0,iue.CreateType)({[$L.Hint]:"Recursive",...n},e)}});var Tg=C(aa=>{"use strict";var aue=aa&&aa.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),lue=aa&&aa.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&aue(e,t,n)};Object.defineProperty(aa,"__esModule",{value:!0});lue(NL(),aa)});var BL=C(cS=>{"use strict";Object.defineProperty(cS,"__esModule",{value:!0});cS.RegExp=pue;var cue=he(),uue=Qt(),due=me();function pue(t,e){let n=(0,uue.IsString)(t)?new globalThis.RegExp(t):t;return(0,cue.CreateType)({[due.Kind]:"RegExp",type:"RegExp",source:n.source,flags:n.flags},e)}});var Cg=C(la=>{"use strict";var mue=la&&la.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),hue=la&&la.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&mue(e,t,n)};Object.defineProperty(la,"__esModule",{value:!0});hue(BL(),la)});var jL=C(dS=>{"use strict";Object.defineProperty(dS,"__esModule",{value:!0});dS.Rest=fue;var uS=Oe();function gue(t){return(0,uS.IsIntersect)(t)?t.allOf:(0,uS.IsUnion)(t)?t.anyOf:(0,uS.IsTuple)(t)?t.items??[]:[]}function fue(t){return gue(t)}});var Mg=C(ca=>{"use strict";var vue=ca&&ca.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),bue=ca&&ca.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&vue(e,t,n)};Object.defineProperty(ca,"__esModule",{value:!0});bue(jL(),ca)});var qL=C(Lo=>{"use strict";var xue=Lo&&Lo.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),yue=Lo&&Lo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),wue=Lo&&Lo.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&xue(n,e,i[o]);return yue(n,e),n}})();Object.defineProperty(Lo,"__esModule",{value:!0});Lo.ReturnType=Cue;var Sue=he(),kue=At(),Tue=wue(Oe());function Cue(t,e){return Tue.IsFunction(t)?(0,Sue.CreateType)(t.returns,e):(0,kue.Never)(e)}});var Rg=C(ua=>{"use strict";var Mue=ua&&ua.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Rue=ua&&ua.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Mue(e,t,n)};Object.defineProperty(ua,"__esModule",{value:!0});Rue(qL(),ua)});var GL=C(KL=>{"use strict";Object.defineProperty(KL,"__esModule",{value:!0})});var HL=C(zL=>{"use strict";Object.defineProperty(zL,"__esModule",{value:!0});var S8e=me()});var QL=C(xr=>{"use strict";var Pue=xr&&xr.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),VL=xr&&xr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Pue(e,t,n)};Object.defineProperty(xr,"__esModule",{value:!0});VL(GL(),xr);VL(HL(),xr)});var YL=C(JL=>{"use strict";Object.defineProperty(JL,"__esModule",{value:!0})});var XL=C(da=>{"use strict";var Iue=da&&da.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Eue=da&&da.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Iue(e,t,n)};Object.defineProperty(da,"__esModule",{value:!0});Eue(YL(),da)});var ZL=C(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.TransformEncodeBuilder=pa.TransformDecodeBuilder=void 0;pa.Transform=_ue;var Pg=me(),Aue=Oe(),Ig=class{constructor(e){this.schema=e}Decode(e){return new Eg(this.schema,e)}};pa.TransformDecodeBuilder=Ig;var Eg=class{constructor(e,n){this.schema=e,this.decode=n}EncodeTransform(e,n){let r={Encode:s=>n[Pg.TransformKind].Encode(e(s)),Decode:s=>this.decode(n[Pg.TransformKind].Decode(s))};return{...n,[Pg.TransformKind]:r}}EncodeSchema(e,n){let i={Decode:this.decode,Encode:e};return{...n,[Pg.TransformKind]:i}}Encode(e){return(0,Aue.IsTransform)(this.schema)?this.EncodeTransform(e,this.schema):this.EncodeSchema(e,this.schema)}};pa.TransformEncodeBuilder=Eg;function _ue(t){return new Ig(t)}});var Ag=C(ma=>{"use strict";var Oue=ma&&ma.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Lue=ma&&ma.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Oue(e,t,n)};Object.defineProperty(ma,"__esModule",{value:!0});Lue(ZL(),ma)});var tW=C(pS=>{"use strict";Object.defineProperty(pS,"__esModule",{value:!0});pS.Unsafe=Fue;var Wue=he(),eW=me();function Fue(t={}){return(0,Wue.CreateType)({[eW.Kind]:t[eW.Kind]??"Unsafe"},t)}});var _g=C(ha=>{"use strict";var Due=ha&&ha.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Uue=ha&&ha.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Due(e,t,n)};Object.defineProperty(ha,"__esModule",{value:!0});Uue(tW(),ha)});var nW=C(mS=>{"use strict";Object.defineProperty(mS,"__esModule",{value:!0});mS.Void=Bue;var $ue=he(),Nue=me();function Bue(t){return(0,$ue.CreateType)({[Nue.Kind]:"Void",type:"void"},t)}});var Og=C(ga=>{"use strict";var jue=ga&&ga.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),que=ga&&ga.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&jue(e,t,n)};Object.defineProperty(ga,"__esModule",{value:!0});que(nW(),ga)});var gS=C(Wg=>{"use strict";Object.defineProperty(Wg,"__esModule",{value:!0});Wg.JsonTypeBuilder=void 0;var Kue=Bl(),Gue=jl(),zue=td(),Hue=Vh(),Vue=Jh(),Que=Xh(),Jue=ag(),Yue=tc(),Xue=ug(),Zue=pi(),ede=mg(),tde=An(),Lg=fg(),nde=Xl(),ide=Jt(),ode=bt(),rde=At(),sde=Sg(),ade=dd(),lde=wg(),cde=dr(),ude=pn(),dde=vd(),pde=Di(),mde=xd(),hde=bd(),gde=hr(),fde=fd(),vde=ic(),bde=Tg(),xde=fr(),yde=yd(),wde=Mg(),Sde=Es(),kde=Ui(),Tde=Ag(),Cde=yo(),Mde=mt(),Rde=Gs(),Pde=_g(),hS=class{ReadonlyOptional(e){return(0,fde.ReadonlyOptional)(e)}Readonly(e,n){return(0,gde.Readonly)(e,n??!0)}Optional(e,n){return(0,pde.Optional)(e,n??!0)}Any(e){return(0,Kue.Any)(e)}Array(e,n){return(0,Gue.Array)(e,n)}Boolean(e){return(0,zue.Boolean)(e)}Capitalize(e,n){return(0,Lg.Capitalize)(e,n)}Composite(e,n){return(0,Hue.Composite)(e,n)}Const(e,n){return(0,Vue.Const)(e,n)}Enum(e,n){return(0,Que.Enum)(e,n)}Exclude(e,n,i){return(0,Jue.Exclude)(e,n,i)}Extends(e,n,i,o,r){return(0,Yue.Extends)(e,n,i,o,r)}Extract(e,n,i){return(0,Xue.Extract)(e,n,i)}Index(e,n,i){return(0,Zue.Index)(e,n,i)}Integer(e){return(0,ede.Integer)(e)}Intersect(e,n){return(0,tde.Intersect)(e,n)}KeyOf(e,n){return(0,nde.KeyOf)(e,n)}Literal(e,n){return(0,ide.Literal)(e,n)}Lowercase(e,n){return(0,Lg.Lowercase)(e,n)}Mapped(e,n,i){return(0,ode.Mapped)(e,n,i)}Module(e){return(0,lde.Module)(e)}Never(e){return(0,rde.Never)(e)}Not(e,n){return(0,sde.Not)(e,n)}Null(e){return(0,ade.Null)(e)}Number(e){return(0,cde.Number)(e)}Object(e,n){return(0,ude.Object)(e,n)}Omit(e,n,i){return(0,dde.Omit)(e,n,i)}Partial(e,n){return(0,mde.Partial)(e,n)}Pick(e,n,i){return(0,hde.Pick)(e,n,i)}Record(e,n,i){return(0,vde.Record)(e,n,i)}Recursive(e,n){return(0,bde.Recursive)(e,n)}Ref(...e){return(0,xde.Ref)(e[0],e[1])}Required(e,n){return(0,yde.Required)(e,n)}Rest(e){return(0,wde.Rest)(e)}String(e){return(0,Sde.String)(e)}TemplateLiteral(e,n){return(0,kde.TemplateLiteral)(e,n)}Transform(e){return(0,Tde.Transform)(e)}Tuple(e,n){return(0,Cde.Tuple)(e,n)}Uncapitalize(e,n){return(0,Lg.Uncapitalize)(e,n)}Union(e,n){return(0,Mde.Union)(e,n)}Unknown(e){return(0,Rde.Unknown)(e)}Unsafe(e){return(0,Pde.Unsafe)(e)}Uppercase(e,n){return(0,Lg.Uppercase)(e,n)}};Wg.JsonTypeBuilder=hS});var iW=C(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.Rest=N.Required=N.RegExp=N.Ref=N.Recursive=N.Record=N.ReadonlyOptional=N.Readonly=N.Promise=N.Pick=N.Partial=N.Parameters=N.Optional=N.Omit=N.Object=N.Number=N.Null=N.Not=N.Never=N.Module=N.Mapped=N.Literal=N.KeyOf=N.Iterator=N.Uppercase=N.Lowercase=N.Uncapitalize=N.Capitalize=N.Intersect=N.Integer=N.Instantiate=N.InstanceType=N.Index=N.Function=N.Extract=N.Extends=N.Exclude=N.Enum=N.Date=N.ConstructorParameters=N.Constructor=N.Const=N.Composite=N.Boolean=N.BigInt=N.Awaited=N.AsyncIterator=N.Array=N.Argument=N.Any=void 0;N.Void=N.Unsafe=N.Unknown=N.Union=N.Undefined=N.Uint8Array=N.Tuple=N.Transform=N.TemplateLiteral=N.Symbol=N.String=N.ReturnType=void 0;var Ide=Bl();Object.defineProperty(N,"Any",{enumerable:!0,get:function(){return Ide.Any}});var Ede=Eh();Object.defineProperty(N,"Argument",{enumerable:!0,get:function(){return Ede.Argument}});var Ade=jl();Object.defineProperty(N,"Array",{enumerable:!0,get:function(){return Ade.Array}});var _de=ql();Object.defineProperty(N,"AsyncIterator",{enumerable:!0,get:function(){return _de.AsyncIterator}});var Ode=cd();Object.defineProperty(N,"Awaited",{enumerable:!0,get:function(){return Ode.Awaited}});var Lde=Vl();Object.defineProperty(N,"BigInt",{enumerable:!0,get:function(){return Lde.BigInt}});var Wde=td();Object.defineProperty(N,"Boolean",{enumerable:!0,get:function(){return Wde.Boolean}});var Fde=Vh();Object.defineProperty(N,"Composite",{enumerable:!0,get:function(){return Fde.Composite}});var Dde=Jh();Object.defineProperty(N,"Const",{enumerable:!0,get:function(){return Dde.Const}});var Ude=Kl();Object.defineProperty(N,"Constructor",{enumerable:!0,get:function(){return Ude.Constructor}});var $de=Yh();Object.defineProperty(N,"ConstructorParameters",{enumerable:!0,get:function(){return $de.ConstructorParameters}});var Nde=ud();Object.defineProperty(N,"Date",{enumerable:!0,get:function(){return Nde.Date}});var Bde=Xh();Object.defineProperty(N,"Enum",{enumerable:!0,get:function(){return Bde.Enum}});var jde=ag();Object.defineProperty(N,"Exclude",{enumerable:!0,get:function(){return jde.Exclude}});var qde=tc();Object.defineProperty(N,"Extends",{enumerable:!0,get:function(){return qde.Extends}});var Kde=ug();Object.defineProperty(N,"Extract",{enumerable:!0,get:function(){return Kde.Extract}});var Gde=ur();Object.defineProperty(N,"Function",{enumerable:!0,get:function(){return Gde.Function}});var zde=pi();Object.defineProperty(N,"Index",{enumerable:!0,get:function(){return zde.Index}});var Hde=dg();Object.defineProperty(N,"InstanceType",{enumerable:!0,get:function(){return Hde.InstanceType}});var Vde=pg();Object.defineProperty(N,"Instantiate",{enumerable:!0,get:function(){return Vde.Instantiate}});var Qde=mg();Object.defineProperty(N,"Integer",{enumerable:!0,get:function(){return Qde.Integer}});var Jde=An();Object.defineProperty(N,"Intersect",{enumerable:!0,get:function(){return Jde.Intersect}});var Fg=fg();Object.defineProperty(N,"Capitalize",{enumerable:!0,get:function(){return Fg.Capitalize}});Object.defineProperty(N,"Uncapitalize",{enumerable:!0,get:function(){return Fg.Uncapitalize}});Object.defineProperty(N,"Lowercase",{enumerable:!0,get:function(){return Fg.Lowercase}});Object.defineProperty(N,"Uppercase",{enumerable:!0,get:function(){return Fg.Uppercase}});var Yde=Jl();Object.defineProperty(N,"Iterator",{enumerable:!0,get:function(){return Yde.Iterator}});var Xde=Xl();Object.defineProperty(N,"KeyOf",{enumerable:!0,get:function(){return Xde.KeyOf}});var Zde=Jt();Object.defineProperty(N,"Literal",{enumerable:!0,get:function(){return Zde.Literal}});var epe=bt();Object.defineProperty(N,"Mapped",{enumerable:!0,get:function(){return epe.Mapped}});var tpe=wg();Object.defineProperty(N,"Module",{enumerable:!0,get:function(){return tpe.Module}});var npe=At();Object.defineProperty(N,"Never",{enumerable:!0,get:function(){return npe.Never}});var ipe=Sg();Object.defineProperty(N,"Not",{enumerable:!0,get:function(){return ipe.Not}});var ope=dd();Object.defineProperty(N,"Null",{enumerable:!0,get:function(){return ope.Null}});var rpe=dr();Object.defineProperty(N,"Number",{enumerable:!0,get:function(){return rpe.Number}});var spe=pn();Object.defineProperty(N,"Object",{enumerable:!0,get:function(){return spe.Object}});var ape=vd();Object.defineProperty(N,"Omit",{enumerable:!0,get:function(){return ape.Omit}});var lpe=Di();Object.defineProperty(N,"Optional",{enumerable:!0,get:function(){return lpe.Optional}});var cpe=kg();Object.defineProperty(N,"Parameters",{enumerable:!0,get:function(){return cpe.Parameters}});var upe=xd();Object.defineProperty(N,"Partial",{enumerable:!0,get:function(){return upe.Partial}});var dpe=bd();Object.defineProperty(N,"Pick",{enumerable:!0,get:function(){return dpe.Pick}});var ppe=sd();Object.defineProperty(N,"Promise",{enumerable:!0,get:function(){return ppe.Promise}});var mpe=hr();Object.defineProperty(N,"Readonly",{enumerable:!0,get:function(){return mpe.Readonly}});var hpe=fd();Object.defineProperty(N,"ReadonlyOptional",{enumerable:!0,get:function(){return hpe.ReadonlyOptional}});var gpe=ic();Object.defineProperty(N,"Record",{enumerable:!0,get:function(){return gpe.Record}});var fpe=Tg();Object.defineProperty(N,"Recursive",{enumerable:!0,get:function(){return fpe.Recursive}});var vpe=fr();Object.defineProperty(N,"Ref",{enumerable:!0,get:function(){return vpe.Ref}});var bpe=Cg();Object.defineProperty(N,"RegExp",{enumerable:!0,get:function(){return bpe.RegExp}});var xpe=yd();Object.defineProperty(N,"Required",{enumerable:!0,get:function(){return xpe.Required}});var ype=Mg();Object.defineProperty(N,"Rest",{enumerable:!0,get:function(){return ype.Rest}});var wpe=Rg();Object.defineProperty(N,"ReturnType",{enumerable:!0,get:function(){return wpe.ReturnType}});var Spe=Es();Object.defineProperty(N,"String",{enumerable:!0,get:function(){return Spe.String}});var kpe=pd();Object.defineProperty(N,"Symbol",{enumerable:!0,get:function(){return kpe.Symbol}});var Tpe=Ui();Object.defineProperty(N,"TemplateLiteral",{enumerable:!0,get:function(){return Tpe.TemplateLiteral}});var Cpe=Ag();Object.defineProperty(N,"Transform",{enumerable:!0,get:function(){return Cpe.Transform}});var Mpe=yo();Object.defineProperty(N,"Tuple",{enumerable:!0,get:function(){return Mpe.Tuple}});var Rpe=hd();Object.defineProperty(N,"Uint8Array",{enumerable:!0,get:function(){return Rpe.Uint8Array}});var Ppe=md();Object.defineProperty(N,"Undefined",{enumerable:!0,get:function(){return Ppe.Undefined}});var Ipe=mt();Object.defineProperty(N,"Union",{enumerable:!0,get:function(){return Ipe.Union}});var Epe=Gs();Object.defineProperty(N,"Unknown",{enumerable:!0,get:function(){return Epe.Unknown}});var Ape=_g();Object.defineProperty(N,"Unsafe",{enumerable:!0,get:function(){return Ape.Unsafe}});var _pe=Og();Object.defineProperty(N,"Void",{enumerable:!0,get:function(){return _pe.Void}})});var oW=C(Dg=>{"use strict";Object.defineProperty(Dg,"__esModule",{value:!0});Dg.JavaScriptTypeBuilder=void 0;var Ope=gS(),Lpe=Eh(),Wpe=ql(),Fpe=cd(),Dpe=Vl(),Upe=Kl(),$pe=Yh(),Npe=ud(),Bpe=ur(),jpe=dg(),qpe=pg(),Kpe=Jl(),Gpe=kg(),zpe=sd(),Hpe=Cg(),Vpe=Rg(),Qpe=pd(),Jpe=hd(),Ype=md(),Xpe=Og(),fS=class extends Ope.JsonTypeBuilder{Argument(e){return(0,Lpe.Argument)(e)}AsyncIterator(e,n){return(0,Wpe.AsyncIterator)(e,n)}Awaited(e,n){return(0,Fpe.Awaited)(e,n)}BigInt(e){return(0,Dpe.BigInt)(e)}ConstructorParameters(e,n){return(0,$pe.ConstructorParameters)(e,n)}Constructor(e,n,i){return(0,Upe.Constructor)(e,n,i)}Date(e={}){return(0,Npe.Date)(e)}Function(e,n,i){return(0,Bpe.Function)(e,n,i)}InstanceType(e,n){return(0,jpe.InstanceType)(e,n)}Instantiate(e,n){return(0,qpe.Instantiate)(e,n)}Iterator(e,n){return(0,Kpe.Iterator)(e,n)}Parameters(e,n){return(0,Gpe.Parameters)(e,n)}Promise(e,n){return(0,zpe.Promise)(e,n)}RegExp(e,n){return(0,Hpe.RegExp)(e,n)}ReturnType(e,n){return(0,Vpe.ReturnType)(e,n)}Symbol(e){return(0,Qpe.Symbol)(e)}Undefined(e){return(0,Ype.Undefined)(e)}Uint8Array(e){return(0,Jpe.Uint8Array)(e)}Void(e){return(0,Xpe.Void)(e)}};Dg.JavaScriptTypeBuilder=fS});var rW=C(bn=>{"use strict";var Zpe=bn&&bn.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),eme=bn&&bn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tme=bn&&bn.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&Zpe(n,e,i[o]);return eme(n,e),n}})();Object.defineProperty(bn,"__esModule",{value:!0});bn.Type=bn.JavaScriptTypeBuilder=bn.JsonTypeBuilder=void 0;var nme=gS();Object.defineProperty(bn,"JsonTypeBuilder",{enumerable:!0,get:function(){return nme.JsonTypeBuilder}});var ime=tme(iW()),ome=oW();Object.defineProperty(bn,"JavaScriptTypeBuilder",{enumerable:!0,get:function(){return ome.JavaScriptTypeBuilder}});var rme=ime;bn.Type=rme});var sW=C(V=>{"use strict";var sme=V&&V.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),J=V&&V.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&sme(e,t,n)};Object.defineProperty(V,"__esModule",{value:!0});J(lx(),V);J(go(),V);J(Li(),V);J(fx(),V);J(oO(),V);J(Yu(),V);J(cO(),V);J(Xu(),V);J(me(),V);J(Bl(),V);J(jl(),V);J(Eh(),V);J(ql(),V);J(cd(),V);J(Vl(),V);J(td(),V);J(Vh(),V);J(Jh(),V);J(Kl(),V);J(Yh(),V);J(ud(),V);J(Xh(),V);J(ag(),V);J(tc(),V);J(ug(),V);J(ur(),V);J(pi(),V);J(dg(),V);J(pg(),V);J(mg(),V);J(An(),V);J(Jl(),V);J(fg(),V);J(Xl(),V);J(Jt(),V);J(wg(),V);J(bt(),V);J(At(),V);J(Sg(),V);J(dd(),V);J(dr(),V);J(pn(),V);J(vd(),V);J(Di(),V);J(kg(),V);J(xd(),V);J(bd(),V);J(sd(),V);J(hr(),V);J(fd(),V);J(ic(),V);J(Tg(),V);J(fr(),V);J(Cg(),V);J(yd(),V);J(Mg(),V);J(Rg(),V);J(QL(),V);J(XL(),V);J(Es(),V);J(pd(),V);J(Ui(),V);J(Ag(),V);J(yo(),V);J(hd(),V);J(md(),V);J(mt(),V);J(Gs(),V);J(_g(),V);J(Og(),V);J(rW(),V)});import ehe from"chalk";import{accessSync as Nme,constants as Bme,existsSync as Yg,readFileSync as t3,realpathSync as jme}from"fs";import{homedir as n3}from"os";import{basename as Gme,dirname as _d,join as Ct,resolve as Xg,sep as zme,win32 as Hme}from"path";import{fileURLToPath as i3}from"url";import{spawn as zW,spawnSync as HW}from"node:child_process";import _S from"cross-spawn";var VW=100;function Ed(t,e,n){return process.platform==="win32"?_S(t,e,n):zW(t,e,n)}function ba(t,e,n){return process.platform==="win32"?_S.sync(t,e,n):HW(t,e,n)}function Jg(t){return new Promise((e,n)=>{let i=!1,o=!1,r=null,s,a=t.stdout===null,l=t.stderr===null,c=()=>{s&&(clearTimeout(s),s=void 0),t.removeListener("error",f),t.removeListener("exit",b),t.removeListener("close",x),t.stdout?.removeListener("end",g),t.stderr?.removeListener("end",h),t.stdout?.removeListener("data",m),t.stderr?.removeListener("data",m)},u=y=>{i||(i=!0,c(),t.stdout?.destroy(),t.stderr?.destroy(),e(y))},d=()=>{!o||i||a&&l&&u(r)},p=()=>{s&&clearTimeout(s),s=setTimeout(()=>u(r),VW)},m=()=>{o&&!i&&p()},g=()=>{a=!0,d()},h=()=>{l=!0,d()},f=y=>{i||(i=!0,c(),n(y))},b=y=>{o=!0,r=y,d(),i||p()},x=y=>{u(y)};t.stdout?.once("end",g),t.stderr?.once("end",h),t.stdout?.on("data",m),t.stderr?.on("data",m),t.once("error",f),t.once("exit",b),t.once("close",x)})}import{realpathSync as QW}from"node:fs";import{homedir as JW}from"node:os";import{isAbsolute as LS,join as YW,resolve as OS,relative as XW,sep as WS}from"node:path";import{fileURLToPath as ZW}from"node:url";var e3=/[\u00A0\u2000-\u200A\u202F\u205F\u3000]/g;function ti(t){try{return QW(t)}catch{return t}}function dc(t){let e=t.trim();return!(e.startsWith("npm:")||e.startsWith("git:")||e.startsWith("github:")||e.startsWith("http:")||e.startsWith("https:")||e.startsWith("ssh:"))}function tt(t,e={}){let n=e.trim?t.trim():t;if(e.normalizeUnicodeSpaces&&(n=n.replace(e3," ")),e.stripAtPrefix&&n.startsWith("@")&&(n=n.slice(1)),e.expandTilde??!0){let i=e.homeDir??JW();if(n==="~")return i;if(n.startsWith("~/")||process.platform==="win32"&&n.startsWith("~\\"))return YW(i,n.slice(2))}return/^file:\/\//.test(n)?ZW(n):n}function Se(t,e=process.cwd(),n={}){let i=tt(t,n),o=tt(e);return LS(i)?OS(i):OS(o,i)}function Ad(t,e){let n=Se(e),i=Se(t,n),o=XW(n,i);return o===""||o!==".."&&!o.startsWith(`..${WS}`)&&!LS(o)?o||".":void 0}function FS(t,e){let n=Se(t,e);return(Ad(n,e)??n).split(WS).join("/")}function DS(t){let e=process.platform==="darwin"?["com.dropbox.ignored","com.apple.fileprovider.ignore#P"]:process.platform==="linux"?["user.com.dropbox.ignored"]:[];for(let n of e)process.platform==="darwin"?ba("xattr",["-w",n,"1",t],{encoding:"utf-8",stdio:"ignore"}):ba("setfattr",["-n",n,"-v","1",t],{encoding:"utf-8",stdio:"ignore"})}var o3=i3(import.meta.url),US=_d(o3),Od=import.meta.url.includes("$bunfs")||import.meta.url.includes("~BUN")||import.meta.url.includes("%7EBUN"),Yme=!!process.versions.bun;function ni(){let t=process.env.PI_PACKAGE_DIR;if(t)return tt(t);if(Od)return _d(process.execPath);let e=US;for(;e!==_d(e);){if(Yg(Ct(e,"package.json")))return e;e=_d(e)}return US}function Zg(){if(Od)return Ct(ni(),"theme");let t=ni(),e=Yg(Ct(t,"src"))?"src":"dist";return Ct(t,e,"modes","interactive","theme")}function r3(){return Ct(ni(),"package.json")}function Ld(){return Xg(Ct(ni(),"README.md"))}function pc(){return Xg(Ct(ni(),"docs"))}function Wd(){return Xg(Ct(ni(),"CHANGELOG.md"))}function s3(){if(Od)return Ct(ni(),"assets");let t=ni(),e=Yg(Ct(t,"src"))?"src":"dist";return Ct(t,e,"modes","interactive","assets")}function $S(t){return Ct(s3(),t)}var mc={};try{mc=JSON.parse(t3(r3(),"utf-8"))}catch(t){if(t.code!=="ENOENT")throw t}var NS=mc.piConfig?.name,BS=mc.name||"@earendil-works/pi-coding-agent",St=NS||"pi",ef=NS?St:"\u03C0",Xe=mc.piConfig?.configDir||".pi",vi=mc.version||"0.0.0",tf=`${St.toUpperCase()}_CODING_AGENT_DIR`,jS=`${St.toUpperCase()}_CODING_AGENT_SESSION_DIR`;function qS(t){return tt(t)}var a3="https://pi.dev/session/";function KS(t){return`${process.env.PI_SHARE_VIEWER_URL||a3}#${t}`}function Ee(){let t=process.env[tf];return t?qS(t):Ct(n3(),Xe,"agent")}function Fd(){return Ct(Ee(),"themes")}function nf(){return Ct(Ee(),"auth.json")}function hc(){return Ct(Ee(),"bin")}function GS(){return Ct(Ee(),"sessions")}function zS(){return Ct(Ee(),`${St}-debug.log`)}var l3=["off","minimal","low","medium","high","xhigh","max"];function of(t){return l3.includes(t)}Ln();var at=()=>gt(()=>Promise.resolve().then(()=>(yk(),xk)));Ln();var Hd=()=>gt(()=>Promise.resolve().then(()=>(Tk(),kk)));Ln();var yF=t=>import(import.meta.url.endsWith(".js")?t.replace(/\.ts$/,".js"):t),wF;var Vd=()=>gt(async()=>wF??await yF("./bedrock-converse-stream.ts"));Ln();var Pa=()=>gt(()=>Promise.resolve().then(()=>(Pk(),Rk)));Ln();var ip=()=>gt(()=>Promise.resolve().then(()=>(Lk(),Ok)));Ln();var op=()=>gt(()=>Promise.resolve().then(()=>(Bk(),Nk)));Ln();var cp=()=>gt(()=>Promise.resolve().then(()=>(mT(),pT)));Ln();var ve=()=>gt(()=>Promise.resolve().then(()=>(TT(),kT)));Ln();var Un=()=>gt(()=>Promise.resolve().then(()=>(AT(),ET)));Ln();var up=()=>gt(()=>Promise.resolve().then(()=>(UT(),DT)));Yi();var Ea=null,_f=null,Of=null,Af=t=>import(t),aU="node:fs",lU="node:os",cU="node:path";typeof process<"u"&&(process.versions?.node||process.versions?.bun)&&(Af(aU).then(t=>{Ea=t.existsSync}),Af(lU).then(t=>{_f=t.homedir}),Af(cU).then(t=>{Of=t.join}));var Sc=null;function uU(t){let e=t?.GOOGLE_APPLICATION_CREDENTIALS;if(e)return Ea?Ea(e):!1;if(Sc===null){if(!Ea||!_f||!Of)return typeof process<"u"&&(process.versions?.node||process.versions?.bun)||(Sc=!1),!1;let n=Ae("GOOGLE_APPLICATION_CREDENTIALS",t);n?Sc=Ea(n):Sc=Ea(Of(_f(),".config","gcloud","application_default_credentials.json"))}return Sc}function dU(t){if(t==="github-copilot")return["COPILOT_GITHUB_TOKEN"];if(t==="anthropic")return["ANTHROPIC_OAUTH_TOKEN","ANTHROPIC_API_KEY"];let n={"ant-ling":"ANT_LING_API_KEY",openai:"OPENAI_API_KEY","azure-openai-responses":"AZURE_OPENAI_API_KEY",nvidia:"NVIDIA_API_KEY",deepseek:"DEEPSEEK_API_KEY",google:"GEMINI_API_KEY","google-vertex":"GOOGLE_CLOUD_API_KEY",groq:"GROQ_API_KEY",cerebras:"CEREBRAS_API_KEY",xai:"XAI_API_KEY",radius:"RADIUS_API_KEY",openrouter:"OPENROUTER_API_KEY","vercel-ai-gateway":"AI_GATEWAY_API_KEY",zai:"ZAI_API_KEY","zai-coding-cn":"ZAI_CODING_CN_API_KEY",mistral:"MISTRAL_API_KEY",minimax:"MINIMAX_API_KEY","minimax-cn":"MINIMAX_CN_API_KEY",moonshotai:"MOONSHOT_API_KEY","moonshotai-cn":"MOONSHOT_API_KEY",huggingface:"HF_TOKEN",fireworks:"FIREWORKS_API_KEY",together:"TOGETHER_API_KEY",opencode:"OPENCODE_API_KEY","opencode-go":"OPENCODE_API_KEY","kimi-coding":"KIMI_API_KEY","cloudflare-workers-ai":"CLOUDFLARE_API_KEY","cloudflare-ai-gateway":"CLOUDFLARE_API_KEY",xiaomi:"XIAOMI_API_KEY","xiaomi-token-plan-cn":"XIAOMI_TOKEN_PLAN_CN_API_KEY","xiaomi-token-plan-ams":"XIAOMI_TOKEN_PLAN_AMS_API_KEY","xiaomi-token-plan-sgp":"XIAOMI_TOKEN_PLAN_SGP_API_KEY"}[t];return n?[n]:void 0}function pU(t,e){let n=dU(t);if(!n)return;let i=n.filter(o=>!!Ae(o,e));return i.length>0?i:void 0}function $T(t,e){let n=pU(t,e);if(n?.[0])return Ae(n[0],e);if(t==="google-vertex"){let i=uU(e),o=!!(Ae("GOOGLE_CLOUD_PROJECT",e)||Ae("GCLOUD_PROJECT",e)),r=!!Ae("GOOGLE_CLOUD_LOCATION",e);if(i&&o&&r)return"<authenticated>"}if(t==="amazon-bedrock"&&(Ae("AWS_PROFILE",e)||Ae("AWS_ACCESS_KEY_ID",e)&&Ae("AWS_SECRET_ACCESS_KEY",e)||Ae("AWS_BEARER_TOKEN_BEDROCK",e)||Ae("AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",e)||Ae("AWS_CONTAINER_CREDENTIALS_FULL_URI",e)||Ae("AWS_WEB_IDENTITY_TOKEN_FILE",e)))return"<authenticated>"}function ne(t,e){return{name:t,login:async n=>({type:"api_key",key:await n.prompt({type:"secret",message:`Enter ${t}`})}),resolve:async({ctx:n,credential:i})=>{if(i?.key)return{auth:{apiKey:i.key},source:"stored credential"};for(let o of e){let r=await n.env(o);if(r)return{auth:{apiKey:r},source:o}}}}}function yi(t){let e,n=()=>(e??=t.load(),e);return{name:t.name,loginLabel:t.loginLabel,login:async i=>(await n()).login(i),refresh:async i=>(await n()).refresh(i),toAuth:async i=>(await n()).toAuth(i)}}var NT={"amazon.nova-2-lite-v1:0":{id:"amazon.nova-2-lite-v1:0",name:"Nova 2 Lite",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:.33,output:2.75,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"amazon.nova-lite-v1:0":{id:"amazon.nova-lite-v1:0",name:"Nova Lite",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.06,output:.24,cacheRead:.015,cacheWrite:0},contextWindow:3e5,maxTokens:8192},"amazon.nova-micro-v1:0":{id:"amazon.nova-micro-v1:0",name:"Nova Micro",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.035,output:.14,cacheRead:.00875,cacheWrite:0},contextWindow:128e3,maxTokens:8192},"amazon.nova-pro-v1:0":{id:"amazon.nova-pro-v1:0",name:"Nova Pro",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.8,output:3.2,cacheRead:.2,cacheWrite:0},contextWindow:3e5,maxTokens:8192},"anthropic.claude-fable-5":{id:"anthropic.claude-fable-5",name:"Claude Fable 5",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"anthropic.claude-haiku-4-5-20251001-v1:0":{id:"anthropic.claude-haiku-4-5-20251001-v1:0",name:"Claude Haiku 4.5",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3},"anthropic.claude-opus-4-1-20250805-v1:0":{id:"anthropic.claude-opus-4-1-20250805-v1:0",name:"Claude Opus 4.1",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:32e3},"anthropic.claude-opus-4-5-20251101-v1:0":{id:"anthropic.claude-opus-4-5-20251101-v1:0",name:"Claude Opus 4.5",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:2e5,maxTokens:64e3},"anthropic.claude-opus-4-6-v1":{id:"anthropic.claude-opus-4-6-v1",name:"Claude Opus 4.6",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"}},"anthropic.claude-opus-4-7":{id:"anthropic.claude-opus-4-7",name:"Claude Opus 4.7",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"anthropic.claude-opus-4-8":{id:"anthropic.claude-opus-4-8",name:"Claude Opus 4.8",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"anthropic.claude-sonnet-4-5-20250929-v1:0":{id:"anthropic.claude-sonnet-4-5-20250929-v1:0",name:"Claude Sonnet 4.5",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3},"anthropic.claude-sonnet-4-6":{id:"anthropic.claude-sonnet-4-6",name:"Claude Sonnet 4.6",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:64e3,thinkingLevelMap:{max:"max"}},"anthropic.claude-sonnet-5":{id:"anthropic.claude-sonnet-5",name:"Claude Sonnet 5",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"au.anthropic.claude-haiku-4-5-20251001-v1:0":{id:"au.anthropic.claude-haiku-4-5-20251001-v1:0",name:"Claude Haiku 4.5 (AU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3},"au.anthropic.claude-opus-4-6-v1":{id:"au.anthropic.claude-opus-4-6-v1",name:"AU Anthropic Claude Opus 4.6",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:16.5,output:82.5,cacheRead:1.65,cacheWrite:20.625},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"}},"au.anthropic.claude-opus-4-8":{id:"au.anthropic.claude-opus-4-8",name:"Claude Opus 4.8 (AU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"au.anthropic.claude-sonnet-4-5-20250929-v1:0":{id:"au.anthropic.claude-sonnet-4-5-20250929-v1:0",name:"Claude Sonnet 4.5 (AU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3},"au.anthropic.claude-sonnet-4-6":{id:"au.anthropic.claude-sonnet-4-6",name:"AU Anthropic Claude Sonnet 4.6",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3.3,output:16.5,cacheRead:.33,cacheWrite:4.125},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"}},"au.anthropic.claude-sonnet-5":{id:"au.anthropic.claude-sonnet-5",name:"Claude Sonnet 5 (AU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"deepseek.r1-v1:0":{id:"deepseek.r1-v1:0",name:"DeepSeek-R1",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:1.35,output:5.4,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:32768},"deepseek.v3-v1:0":{id:"deepseek.v3-v1:0",name:"DeepSeek-V3.1",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.58,output:1.68,cacheRead:0,cacheWrite:0},contextWindow:163840,maxTokens:81920},"deepseek.v3.2":{id:"deepseek.v3.2",name:"DeepSeek-V3.2",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.62,output:1.85,cacheRead:0,cacheWrite:0},contextWindow:163840,maxTokens:81920},"eu.anthropic.claude-fable-5":{id:"eu.anthropic.claude-fable-5",name:"Claude Fable 5 (EU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.eu-central-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:11,output:55,cacheRead:1.1,cacheWrite:13.75},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"eu.anthropic.claude-haiku-4-5-20251001-v1:0":{id:"eu.anthropic.claude-haiku-4-5-20251001-v1:0",name:"Claude Haiku 4.5 (EU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.eu-central-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:1.1,output:5.5,cacheRead:.11,cacheWrite:1.375},contextWindow:2e5,maxTokens:64e3},"eu.anthropic.claude-opus-4-5-20251101-v1:0":{id:"eu.anthropic.claude-opus-4-5-20251101-v1:0",name:"Claude Opus 4.5 (EU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.eu-central-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5.5,output:27.5,cacheRead:.55,cacheWrite:6.875},contextWindow:2e5,maxTokens:64e3},"eu.anthropic.claude-opus-4-6-v1":{id:"eu.anthropic.claude-opus-4-6-v1",name:"Claude Opus 4.6 (EU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.eu-central-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5.5,output:27.5,cacheRead:.55,cacheWrite:6.875},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"}},"eu.anthropic.claude-opus-4-7":{id:"eu.anthropic.claude-opus-4-7",name:"Claude Opus 4.7 (EU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.eu-central-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5.5,output:27.5,cacheRead:.55,cacheWrite:6.875},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"eu.anthropic.claude-opus-4-8":{id:"eu.anthropic.claude-opus-4-8",name:"Claude Opus 4.8 (EU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.eu-central-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5.5,output:27.5,cacheRead:.55,cacheWrite:6.875},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"eu.anthropic.claude-sonnet-4-5-20250929-v1:0":{id:"eu.anthropic.claude-sonnet-4-5-20250929-v1:0",name:"Claude Sonnet 4.5 (EU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.eu-central-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3.3,output:16.5,cacheRead:.33,cacheWrite:4.125},contextWindow:2e5,maxTokens:64e3},"eu.anthropic.claude-sonnet-4-6":{id:"eu.anthropic.claude-sonnet-4-6",name:"Claude Sonnet 4.6 (EU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.eu-central-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3.3,output:16.5,cacheRead:.33,cacheWrite:4.125},contextWindow:1e6,maxTokens:64e3,thinkingLevelMap:{max:"max"}},"eu.anthropic.claude-sonnet-5":{id:"eu.anthropic.claude-sonnet-5",name:"Claude Sonnet 5 (EU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.eu-central-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:2.2,output:11,cacheRead:.22,cacheWrite:2.75},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"global.anthropic.claude-fable-5":{id:"global.anthropic.claude-fable-5",name:"Claude Fable 5 (Global)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"global.anthropic.claude-haiku-4-5-20251001-v1:0":{id:"global.anthropic.claude-haiku-4-5-20251001-v1:0",name:"Claude Haiku 4.5 (Global)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3},"global.anthropic.claude-opus-4-5-20251101-v1:0":{id:"global.anthropic.claude-opus-4-5-20251101-v1:0",name:"Claude Opus 4.5 (Global)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:2e5,maxTokens:64e3},"global.anthropic.claude-opus-4-6-v1":{id:"global.anthropic.claude-opus-4-6-v1",name:"Claude Opus 4.6 (Global)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"}},"global.anthropic.claude-opus-4-7":{id:"global.anthropic.claude-opus-4-7",name:"Claude Opus 4.7 (Global)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"global.anthropic.claude-opus-4-8":{id:"global.anthropic.claude-opus-4-8",name:"Claude Opus 4.8 (Global)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"global.anthropic.claude-sonnet-4-5-20250929-v1:0":{id:"global.anthropic.claude-sonnet-4-5-20250929-v1:0",name:"Claude Sonnet 4.5 (Global)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3},"global.anthropic.claude-sonnet-4-6":{id:"global.anthropic.claude-sonnet-4-6",name:"Claude Sonnet 4.6 (Global)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:64e3,thinkingLevelMap:{max:"max"}},"global.anthropic.claude-sonnet-5":{id:"global.anthropic.claude-sonnet-5",name:"Claude Sonnet 5 (Global)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"google.gemma-3-27b-it":{id:"google.gemma-3-27b-it",name:"Google Gemma 3 27B Instruct",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.12,output:.2,cacheRead:0,cacheWrite:0},contextWindow:202752,maxTokens:8192},"google.gemma-3-4b-it":{id:"google.gemma-3-4b-it",name:"Gemma 3 4B IT",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.04,output:.08,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"jp.anthropic.claude-haiku-4-5-20251001-v1:0":{id:"jp.anthropic.claude-haiku-4-5-20251001-v1:0",name:"Claude Haiku 4.5 (JP)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3},"jp.anthropic.claude-opus-4-7":{id:"jp.anthropic.claude-opus-4-7",name:"Claude Opus 4.7 (JP)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"jp.anthropic.claude-opus-4-8":{id:"jp.anthropic.claude-opus-4-8",name:"Claude Opus 4.8 (JP)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"jp.anthropic.claude-sonnet-4-5-20250929-v1:0":{id:"jp.anthropic.claude-sonnet-4-5-20250929-v1:0",name:"Claude Sonnet 4.5 (JP)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3},"jp.anthropic.claude-sonnet-4-6":{id:"jp.anthropic.claude-sonnet-4-6",name:"Claude Sonnet 4.6 (JP)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:64e3,thinkingLevelMap:{max:"max"}},"jp.anthropic.claude-sonnet-5":{id:"jp.anthropic.claude-sonnet-5",name:"Claude Sonnet 5 (JP)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"meta.llama3-1-70b-instruct-v1:0":{id:"meta.llama3-1-70b-instruct-v1:0",name:"Llama 3.1 70B Instruct",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.72,output:.72,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"meta.llama3-1-8b-instruct-v1:0":{id:"meta.llama3-1-8b-instruct-v1:0",name:"Llama 3.1 8B Instruct",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.22,output:.22,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"meta.llama3-3-70b-instruct-v1:0":{id:"meta.llama3-3-70b-instruct-v1:0",name:"Llama 3.3 70B Instruct",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.72,output:.72,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"meta.llama4-maverick-17b-instruct-v1:0":{id:"meta.llama4-maverick-17b-instruct-v1:0",name:"Llama 4 Maverick 17B Instruct",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.24,output:.97,cacheRead:0,cacheWrite:0},contextWindow:1e6,maxTokens:16384},"meta.llama4-scout-17b-instruct-v1:0":{id:"meta.llama4-scout-17b-instruct-v1:0",name:"Llama 4 Scout 17B Instruct",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.17,output:.66,cacheRead:0,cacheWrite:0},contextWindow:35e5,maxTokens:16384},"minimax.minimax-m2":{id:"minimax.minimax-m2",name:"MiniMax M2",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:0,cacheWrite:0},contextWindow:204608,maxTokens:128e3},"minimax.minimax-m2.1":{id:"minimax.minimax-m2.1",name:"MiniMax M2.1",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:0,cacheWrite:0},contextWindow:204800,maxTokens:131072},"minimax.minimax-m2.5":{id:"minimax.minimax-m2.5",name:"MiniMax M2.5",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:0,cacheWrite:0},contextWindow:196608,maxTokens:98304},"mistral.devstral-2-123b":{id:"mistral.devstral-2-123b",name:"Devstral 2 123B",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.4,output:2,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:8192},"mistral.magistral-small-2509":{id:"mistral.magistral-small-2509",name:"Magistral Small 1.2",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:.5,output:1.5,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4e4},"mistral.ministral-3-14b-instruct":{id:"mistral.ministral-3-14b-instruct",name:"Ministral 14B 3.0",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.2,output:.2,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"mistral.ministral-3-3b-instruct":{id:"mistral.ministral-3-3b-instruct",name:"Ministral 3 3B",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.1,output:.1,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:8192},"mistral.ministral-3-8b-instruct":{id:"mistral.ministral-3-8b-instruct",name:"Ministral 3 8B",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.15,output:.15,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"mistral.mistral-large-3-675b-instruct":{id:"mistral.mistral-large-3-675b-instruct",name:"Mistral Large 3",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.5,output:1.5,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:8192},"mistral.pixtral-large-2502-v1:0":{id:"mistral.pixtral-large-2502-v1:0",name:"Pixtral Large (25.02)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:2,output:6,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:8192},"mistral.voxtral-mini-3b-2507":{id:"mistral.voxtral-mini-3b-2507",name:"Voxtral Mini 3B 2507",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.04,output:.04,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"mistral.voxtral-small-24b-2507":{id:"mistral.voxtral-small-24b-2507",name:"Voxtral Small 24B 2507",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.15,output:.35,cacheRead:0,cacheWrite:0},contextWindow:32e3,maxTokens:8192},"moonshot.kimi-k2-thinking":{id:"moonshot.kimi-k2-thinking",name:"Kimi K2 Thinking",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.6,output:2.5,cacheRead:0,cacheWrite:0},contextWindow:262143,maxTokens:16e3},"moonshotai.kimi-k2.5":{id:"moonshotai.kimi-k2.5",name:"Kimi K2.5",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:.6,output:3,cacheRead:0,cacheWrite:0},contextWindow:262143,maxTokens:16e3},"nvidia.nemotron-nano-12b-v2":{id:"nvidia.nemotron-nano-12b-v2",name:"NVIDIA Nemotron Nano 12B v2 VL BF16",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.2,output:.6,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"nvidia.nemotron-nano-3-30b":{id:"nvidia.nemotron-nano-3-30b",name:"NVIDIA Nemotron Nano 3 30B",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.06,output:.24,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"nvidia.nemotron-nano-9b-v2":{id:"nvidia.nemotron-nano-9b-v2",name:"NVIDIA Nemotron Nano 9B v2",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.06,output:.23,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"nvidia.nemotron-super-3-120b":{id:"nvidia.nemotron-super-3-120b",name:"NVIDIA Nemotron 3 Super 120B A12B",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.15,output:.65,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:131072},"openai.gpt-5.4":{id:"openai.gpt-5.4",name:"GPT-5.4",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:2.75,output:16.5,cacheRead:.275,cacheWrite:0},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai.gpt-5.5":{id:"openai.gpt-5.5",name:"GPT-5.5",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5.5,output:33,cacheRead:.55,cacheWrite:0},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai.gpt-5.6-luna":{id:"openai.gpt-5.6-luna",name:"GPT-5.6 Luna",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:1,output:6,cacheRead:.1,cacheWrite:1.25},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai.gpt-5.6-sol":{id:"openai.gpt-5.6-sol",name:"GPT-5.6 Sol",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:6.25},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai.gpt-5.6-terra":{id:"openai.gpt-5.6-terra",name:"GPT-5.6 Terra",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:3.125},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai.gpt-oss-120b":{id:"openai.gpt-oss-120b",name:"gpt-oss-120b",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.15,output:.6,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"openai.gpt-oss-120b-1:0":{id:"openai.gpt-oss-120b-1:0",name:"gpt-oss-120b",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.15,output:.6,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"openai.gpt-oss-20b":{id:"openai.gpt-oss-20b",name:"gpt-oss-20b",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.07,output:.3,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"openai.gpt-oss-20b-1:0":{id:"openai.gpt-oss-20b-1:0",name:"gpt-oss-20b",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.07,output:.3,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"openai.gpt-oss-safeguard-120b":{id:"openai.gpt-oss-safeguard-120b",name:"GPT OSS Safeguard 120B",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.15,output:.6,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"openai.gpt-oss-safeguard-20b":{id:"openai.gpt-oss-safeguard-20b",name:"GPT OSS Safeguard 20B",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.07,output:.2,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"qwen.qwen3-235b-a22b-2507-v1:0":{id:"qwen.qwen3-235b-a22b-2507-v1:0",name:"Qwen3 235B A22B 2507",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.22,output:.88,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:131072},"qwen.qwen3-32b-v1:0":{id:"qwen.qwen3-32b-v1:0",name:"Qwen3 32B (dense)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.15,output:.6,cacheRead:0,cacheWrite:0},contextWindow:16384,maxTokens:16384},"qwen.qwen3-coder-30b-a3b-v1:0":{id:"qwen.qwen3-coder-30b-a3b-v1:0",name:"Qwen3 Coder 30B A3B Instruct",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.15,output:.6,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:131072},"qwen.qwen3-coder-480b-a35b-v1:0":{id:"qwen.qwen3-coder-480b-a35b-v1:0",name:"Qwen3 Coder 480B A35B Instruct",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.22,output:1.8,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:65536},"qwen.qwen3-coder-next":{id:"qwen.qwen3-coder-next",name:"Qwen3 Coder Next",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.22,output:1.8,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:65536},"qwen.qwen3-next-80b-a3b":{id:"qwen.qwen3-next-80b-a3b",name:"Qwen/Qwen3-Next-80B-A3B-Instruct",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.14,output:1.4,cacheRead:0,cacheWrite:0},contextWindow:262e3,maxTokens:262e3},"qwen.qwen3-vl-235b-a22b":{id:"qwen.qwen3-vl-235b-a22b",name:"Qwen/Qwen3-VL-235B-A22B-Instruct",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.3,output:1.5,cacheRead:0,cacheWrite:0},contextWindow:262e3,maxTokens:262e3},"us.anthropic.claude-fable-5":{id:"us.anthropic.claude-fable-5",name:"Claude Fable 5 (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"us.anthropic.claude-haiku-4-5-20251001-v1:0":{id:"us.anthropic.claude-haiku-4-5-20251001-v1:0",name:"Claude Haiku 4.5 (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3},"us.anthropic.claude-opus-4-1-20250805-v1:0":{id:"us.anthropic.claude-opus-4-1-20250805-v1:0",name:"Claude Opus 4.1 (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:32e3},"us.anthropic.claude-opus-4-5-20251101-v1:0":{id:"us.anthropic.claude-opus-4-5-20251101-v1:0",name:"Claude Opus 4.5 (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:2e5,maxTokens:64e3},"us.anthropic.claude-opus-4-6-v1":{id:"us.anthropic.claude-opus-4-6-v1",name:"Claude Opus 4.6 (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"}},"us.anthropic.claude-opus-4-7":{id:"us.anthropic.claude-opus-4-7",name:"Claude Opus 4.7 (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"us.anthropic.claude-opus-4-8":{id:"us.anthropic.claude-opus-4-8",name:"Claude Opus 4.8 (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"us.anthropic.claude-sonnet-4-5-20250929-v1:0":{id:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",name:"Claude Sonnet 4.5 (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3},"us.anthropic.claude-sonnet-4-6":{id:"us.anthropic.claude-sonnet-4-6",name:"Claude Sonnet 4.6 (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:64e3,thinkingLevelMap:{max:"max"}},"us.anthropic.claude-sonnet-5":{id:"us.anthropic.claude-sonnet-5",name:"Claude Sonnet 5 (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"us.deepseek.r1-v1:0":{id:"us.deepseek.r1-v1:0",name:"DeepSeek-R1 (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:1.35,output:5.4,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:32768},"us.meta.llama4-maverick-17b-instruct-v1:0":{id:"us.meta.llama4-maverick-17b-instruct-v1:0",name:"Llama 4 Maverick 17B Instruct (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.24,output:.97,cacheRead:0,cacheWrite:0},contextWindow:1e6,maxTokens:16384},"us.meta.llama4-scout-17b-instruct-v1:0":{id:"us.meta.llama4-scout-17b-instruct-v1:0",name:"Llama 4 Scout 17B Instruct (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.17,output:.66,cacheRead:0,cacheWrite:0},contextWindow:35e5,maxTokens:16384},"writer.palmyra-x4-v1:0":{id:"writer.palmyra-x4-v1:0",name:"Palmyra X4",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:2.5,output:10,cacheRead:0,cacheWrite:0},contextWindow:122880,maxTokens:8192},"writer.palmyra-x5-v1:0":{id:"writer.palmyra-x5-v1:0",name:"Palmyra X5",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.6,output:6,cacheRead:0,cacheWrite:0},contextWindow:104e4,maxTokens:8192},"xai.grok-4.3":{id:"xai.grok-4.3",name:"Grok 4.3",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:1.25,output:2.5,cacheRead:.2,cacheWrite:0},contextWindow:1e6,maxTokens:131072},"zai.glm-4.7":{id:"zai.glm-4.7",name:"GLM-4.7",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.6,output:2.2,cacheRead:0,cacheWrite:0},contextWindow:204800,maxTokens:131072},"zai.glm-4.7-flash":{id:"zai.glm-4.7-flash",name:"GLM-4.7-Flash",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.07,output:.4,cacheRead:0,cacheWrite:0},contextWindow:2e5,maxTokens:131072},"zai.glm-5":{id:"zai.glm-5",name:"GLM-5",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:1,output:3.2,cacheRead:0,cacheWrite:0},contextWindow:202752,maxTokens:101376}};var BT=NT;var jT={"Ling-2.6-1T":{id:"Ling-2.6-1T",name:"Ling 2.6 1T",api:"openai-completions",baseUrl:"https://api.ant-ling.com/v1",provider:"ant-ling",reasoning:!1,input:["text"],cost:{input:.06,output:.25,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:65536,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"ant-ling",supportsLongCacheRetention:!1}},"Ling-2.6-flash":{id:"Ling-2.6-flash",name:"Ling 2.6 Flash",api:"openai-completions",baseUrl:"https://api.ant-ling.com/v1",provider:"ant-ling",reasoning:!1,input:["text"],cost:{input:.01,output:.02,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:65536,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"ant-ling",supportsLongCacheRetention:!1}},"Ring-2.6-1T":{id:"Ring-2.6-1T",name:"Ring 2.6 1T",api:"openai-completions",baseUrl:"https://api.ant-ling.com/v1",provider:"ant-ling",reasoning:!0,input:["text"],cost:{input:.06,output:.25,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:65536,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"ant-ling",supportsLongCacheRetention:!1},thinkingLevelMap:{off:null,minimal:null,low:null,medium:null,high:"high",xhigh:"xhigh"}}};var qT=jT;var KT={"claude-fable-5":{id:"claude-fable-5",name:"Claude Fable 5",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0}},"claude-haiku-4-5":{id:"claude-haiku-4-5",name:"Claude Haiku 4.5 (latest)",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3},"claude-haiku-4-5-20251001":{id:"claude-haiku-4-5-20251001",name:"Claude Haiku 4.5",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3},"claude-opus-4-1":{id:"claude-opus-4-1",name:"Claude Opus 4.1 (latest)",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:32e3},"claude-opus-4-1-20250805":{id:"claude-opus-4-1-20250805",name:"Claude Opus 4.1",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:32e3},"claude-opus-4-5":{id:"claude-opus-4-5",name:"Claude Opus 4.5 (latest)",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:2e5,maxTokens:64e3},"claude-opus-4-5-20251101":{id:"claude-opus-4-5-20251101",name:"Claude Opus 4.5",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:2e5,maxTokens:64e3},"claude-opus-4-6":{id:"claude-opus-4-6",name:"Claude Opus 4.6",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"},compat:{forceAdaptiveThinking:!0}},"claude-opus-4-7":{id:"claude-opus-4-7",name:"Claude Opus 4.7",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0,supportsTemperature:!1}},"claude-opus-4-8":{id:"claude-opus-4-8",name:"Claude Opus 4.8",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0,supportsTemperature:!1}},"claude-sonnet-4-5":{id:"claude-sonnet-4-5",name:"Claude Sonnet 4.5 (latest)",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:64e3},"claude-sonnet-4-5-20250929":{id:"claude-sonnet-4-5-20250929",name:"Claude Sonnet 4.5",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:64e3},"claude-sonnet-4-6":{id:"claude-sonnet-4-6",name:"Claude Sonnet 4.6",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"},compat:{forceAdaptiveThinking:!0}},"claude-sonnet-5":{id:"claude-sonnet-5",name:"Claude Sonnet 5",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0}}};var GT=KT;var zT={"gpt-4":{id:"gpt-4",name:"GPT-4",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!1,input:["text"],cost:{input:30,output:60,cacheRead:0,cacheWrite:0},contextWindow:8192,maxTokens:8192},"gpt-4-turbo":{id:"gpt-4-turbo",name:"GPT-4 Turbo",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!1,input:["text","image"],cost:{input:10,output:30,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!1,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:1047576,maxTokens:32768},"gpt-4.1-mini":{id:"gpt-4.1-mini",name:"GPT-4.1 mini",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!1,input:["text","image"],cost:{input:.4,output:1.6,cacheRead:.1,cacheWrite:0},contextWindow:1047576,maxTokens:32768},"gpt-4.1-nano":{id:"gpt-4.1-nano",name:"GPT-4.1 nano",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!1,input:["text","image"],cost:{input:.1,output:.4,cacheRead:.025,cacheWrite:0},contextWindow:1047576,maxTokens:32768},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"gpt-4o-2024-05-13":{id:"gpt-4o-2024-05-13",name:"GPT-4o (2024-05-13)",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!1,input:["text","image"],cost:{input:5,output:15,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"gpt-4o-2024-08-06":{id:"gpt-4o-2024-08-06",name:"GPT-4o (2024-08-06)",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"gpt-4o-2024-11-20":{id:"gpt-4o-2024-11-20",name:"GPT-4o (2024-11-20)",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"gpt-4o-mini":{id:"gpt-4o-mini",name:"GPT-4o mini",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!1,input:["text","image"],cost:{input:.15,output:.6,cacheRead:.075,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"gpt-5":{id:"gpt-5",name:"GPT-5",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5-chat-latest":{id:"gpt-5-chat-latest",name:"GPT-5 Chat Latest",api:"azure-openai-responses",baseUrl:"",provider:"azure-openai-responses",reasoning:!1,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{off:null}},"gpt-5-codex":{id:"gpt-5-codex",name:"GPT-5-Codex",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 Mini",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.025,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5-nano":{id:"gpt-5-nano",name:"GPT-5 Nano",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:.05,output:.4,cacheRead:.005,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5-pro":{id:"gpt-5-pro",name:"GPT-5 Pro",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:15,output:120,cacheRead:0,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1":{id:"gpt-5.1",name:"GPT-5.1",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1-chat-latest":{id:"gpt-5.1-chat-latest",name:"GPT-5.1 Chat",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{off:null}},"gpt-5.1-codex":{id:"gpt-5.1-codex",name:"GPT-5.1 Codex",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1-codex-max":{id:"gpt-5.1-codex-max",name:"GPT-5.1 Codex Max",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1-codex-mini":{id:"gpt-5.1-codex-mini",name:"GPT-5.1 Codex mini",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.025,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.2":{id:"gpt-5.2",name:"GPT-5.2",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.2-chat-latest":{id:"gpt-5.2-chat-latest",name:"GPT-5.2 Chat",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2 Codex",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.2-pro":{id:"gpt-5.2-pro",name:"GPT-5.2 Pro",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:21,output:168,cacheRead:0,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.3-chat-latest":{id:"gpt-5.3-chat-latest",name:"GPT-5.3 Chat (latest)",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!1,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.3-codex":{id:"gpt-5.3-codex",name:"GPT-5.3 Codex",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.3-codex-spark":{id:"gpt-5.3-codex-spark",name:"GPT-5.3 Codex Spark",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:128e3,maxTokens:32e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.4-mini":{id:"gpt-5.4-mini",name:"GPT-5.4 mini",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:.75,output:4.5,cacheRead:.075,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.4-nano":{id:"gpt-5.4-nano",name:"GPT-5.4 nano",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:.2,output:1.25,cacheRead:.02,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.4-pro":{id:"gpt-5.4-pro",name:"GPT-5.4 Pro",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:30,output:180,cacheRead:0,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.5-pro":{id:"gpt-5.5-pro",name:"GPT-5.5 Pro",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:30,output:180,cacheRead:0,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",minimal:null,low:null}},"gpt-5.6-luna":{id:"gpt-5.6-luna",name:"GPT-5.6 Luna",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1,output:6,cacheRead:.1,cacheWrite:1.25},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"gpt-5.6-sol":{id:"gpt-5.6-sol",name:"GPT-5.6 Sol",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:6.25},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"gpt-5.6-terra":{id:"gpt-5.6-terra",name:"GPT-5.6 Terra",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:3.125},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"gpt-realtime-2.1":{id:"gpt-realtime-2.1",name:"GPT-Realtime-2.1",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:4,output:24,cacheRead:.4,cacheWrite:0},contextWindow:128e3,maxTokens:32e3},o1:{id:"o1",name:"o1",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:15,output:60,cacheRead:7.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o1-pro":{id:"o1-pro",name:"o1-pro",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:150,output:600,cacheRead:0,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},o3:{id:"o3",name:"o3",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o3-deep-research":{id:"o3-deep-research",name:"o3-deep-research",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:10,output:40,cacheRead:2.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o3-mini":{id:"o3-mini",name:"o3-mini",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text"],cost:{input:1.1,output:4.4,cacheRead:.55,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o3-pro":{id:"o3-pro",name:"o3-pro",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:20,output:80,cacheRead:0,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o4-mini":{id:"o4-mini",name:"o4-mini",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.1,output:4.4,cacheRead:.275,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o4-mini-deep-research":{id:"o4-mini-deep-research",name:"o4-mini-deep-research",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5}};var HT=zT;var VT={"gemma-4-31b":{id:"gemma-4-31b",name:"Gemma 4 31B IT",api:"openai-completions",provider:"cerebras",baseUrl:"https://api.cerebras.ai/v1",reasoning:!0,input:["text","image"],cost:{input:.99,output:1.49,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:40960,compat:{supportsStore:!1,supportsDeveloperRole:!1}},"gpt-oss-120b":{id:"gpt-oss-120b",name:"GPT OSS 120B",api:"openai-completions",provider:"cerebras",baseUrl:"https://api.cerebras.ai/v1",reasoning:!0,input:["text"],cost:{input:.35,output:.75,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:40960,compat:{supportsStore:!1,supportsDeveloperRole:!1}},"zai-glm-4.7":{id:"zai-glm-4.7",name:"Z.AI GLM-4.7",api:"openai-completions",provider:"cerebras",baseUrl:"https://api.cerebras.ai/v1",reasoning:!0,input:["text"],cost:{input:2.25,output:2.75,cacheRead:2.25,cacheWrite:0},contextWindow:131072,maxTokens:40960,compat:{supportsStore:!1,supportsDeveloperRole:!1}}};var QT=VT;var JT={"claude-3-5-haiku":{id:"claude-3-5-haiku",name:"Claude Haiku 3.5 (latest)",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!1,input:["text","image"],cost:{input:.8,output:4,cacheRead:.08,cacheWrite:1},contextWindow:2e5,maxTokens:8192,compat:{sendSessionAffinityHeaders:!0}},"claude-3-haiku":{id:"claude-3-haiku",name:"Claude Haiku 3",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!1,input:["text","image"],cost:{input:.25,output:1.25,cacheRead:.03,cacheWrite:.3},contextWindow:2e5,maxTokens:4096,compat:{sendSessionAffinityHeaders:!0}},"claude-3-opus":{id:"claude-3-opus",name:"Claude Opus 3",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!1,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:4096,compat:{sendSessionAffinityHeaders:!0}},"claude-3-sonnet":{id:"claude-3-sonnet",name:"Claude Sonnet 3",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!1,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:.3},contextWindow:2e5,maxTokens:4096,compat:{sendSessionAffinityHeaders:!0}},"claude-3.5-haiku":{id:"claude-3.5-haiku",name:"Claude Haiku 3.5 (latest)",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!1,input:["text","image"],cost:{input:.8,output:4,cacheRead:.08,cacheWrite:1},contextWindow:2e5,maxTokens:8192,compat:{sendSessionAffinityHeaders:!0}},"claude-3.5-sonnet":{id:"claude-3.5-sonnet",name:"Claude Sonnet 3.5 v2",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!1,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:8192,compat:{sendSessionAffinityHeaders:!0}},"claude-fable-5":{id:"claude-fable-5",name:"Claude Fable 5",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,compat:{sendSessionAffinityHeaders:!0,forceAdaptiveThinking:!0},thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"claude-haiku-4-5":{id:"claude-haiku-4-5",name:"Claude Haiku 4.5 (latest)",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3,compat:{sendSessionAffinityHeaders:!0}},"claude-opus-4":{id:"claude-opus-4",name:"Claude Opus 4 (latest)",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:32e3,compat:{sendSessionAffinityHeaders:!0}},"claude-opus-4-1":{id:"claude-opus-4-1",name:"Claude Opus 4.1 (latest)",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:32e3,compat:{sendSessionAffinityHeaders:!0}},"claude-opus-4-5":{id:"claude-opus-4-5",name:"Claude Opus 4.5 (latest)",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:2e5,maxTokens:64e3,compat:{sendSessionAffinityHeaders:!0}},"claude-opus-4-6":{id:"claude-opus-4-6",name:"Claude Opus 4.6 (latest)",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,compat:{sendSessionAffinityHeaders:!0,forceAdaptiveThinking:!0},thinkingLevelMap:{max:"max"}},"claude-opus-4-7":{id:"claude-opus-4-7",name:"Claude Opus 4.7",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,compat:{sendSessionAffinityHeaders:!0,forceAdaptiveThinking:!0,supportsTemperature:!1},thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"claude-opus-4-8":{id:"claude-opus-4-8",name:"Claude Opus 4.8",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,compat:{sendSessionAffinityHeaders:!0,forceAdaptiveThinking:!0,supportsTemperature:!1},thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"claude-sonnet-4":{id:"claude-sonnet-4",name:"Claude Sonnet 4 (latest)",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3,compat:{sendSessionAffinityHeaders:!0}},"claude-sonnet-4-5":{id:"claude-sonnet-4-5",name:"Claude Sonnet 4.5 (latest)",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3,compat:{sendSessionAffinityHeaders:!0}},"claude-sonnet-4-6":{id:"claude-sonnet-4-6",name:"Claude Sonnet 4.6",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:64e3,compat:{sendSessionAffinityHeaders:!0,forceAdaptiveThinking:!0},thinkingLevelMap:{max:"max"}},"claude-sonnet-5":{id:"claude-sonnet-5",name:"Claude Sonnet 5",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,compat:{sendSessionAffinityHeaders:!0,forceAdaptiveThinking:!0},thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"gpt-4":{id:"gpt-4",name:"GPT-4",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!1,input:["text"],cost:{input:30,output:60,cacheRead:0,cacheWrite:0},contextWindow:8192,maxTokens:8192},"gpt-4-turbo":{id:"gpt-4-turbo",name:"GPT-4 Turbo",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!1,input:["text","image"],cost:{input:10,output:30,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"gpt-4o-mini":{id:"gpt-4o-mini",name:"GPT-4o mini",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!1,input:["text","image"],cost:{input:.15,output:.6,cacheRead:.08,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"gpt-5.1":{id:"gpt-5.1",name:"GPT-5.1",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.13,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1-codex":{id:"gpt-5.1-codex",name:"GPT-5.1 Codex",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.2":{id:"gpt-5.2",name:"GPT-5.2",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2 Codex",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.3-codex":{id:"gpt-5.3-codex",name:"GPT-5.3 Codex",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.6-luna":{id:"gpt-5.6-luna",name:"GPT-5.6 Luna",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:1,output:6,cacheRead:.1,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"gpt-5.6-sol":{id:"gpt-5.6-sol",name:"GPT-5.6 Sol",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"gpt-5.6-terra":{id:"gpt-5.6-terra",name:"GPT-5.6 Terra",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},o1:{id:"o1",name:"o1",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:15,output:60,cacheRead:7.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},o3:{id:"o3",name:"o3",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o3-mini":{id:"o3-mini",name:"o3-mini",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text"],cost:{input:1.1,output:4.4,cacheRead:.55,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o3-pro":{id:"o3-pro",name:"o3-pro",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:20,output:80,cacheRead:0,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o4-mini":{id:"o4-mini",name:"o4-mini",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:1.1,output:4.4,cacheRead:.28,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"workers-ai/@cf/moonshotai/kimi-k2.5":{id:"workers-ai/@cf/moonshotai/kimi-k2.5",name:"Kimi K2.5",api:"openai-completions",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/compat",reasoning:!0,input:["text","image"],cost:{input:.6,output:3,cacheRead:.1,cacheWrite:0},contextWindow:256e3,maxTokens:256e3,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"workers-ai/@cf/moonshotai/kimi-k2.6":{id:"workers-ai/@cf/moonshotai/kimi-k2.6",name:"Kimi K2.6",api:"openai-completions",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/compat",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.16,cacheWrite:0},contextWindow:256e3,maxTokens:256e3,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"workers-ai/@cf/nvidia/nemotron-3-120b-a12b":{id:"workers-ai/@cf/nvidia/nemotron-3-120b-a12b",name:"Nemotron 3 Super 120B",api:"openai-completions",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/compat",reasoning:!0,input:["text"],cost:{input:.5,output:1.5,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:256e3,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"workers-ai/@cf/zai-org/glm-4.7-flash":{id:"workers-ai/@cf/zai-org/glm-4.7-flash",name:"GLM-4.7-Flash",api:"openai-completions",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/compat",reasoning:!0,input:["text"],cost:{input:.06,output:.4,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:131072,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"workers-ai/@cf/zai-org/glm-5.2":{id:"workers-ai/@cf/zai-org/glm-5.2",name:"Glm 5.2",api:"openai-completions",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/compat",reasoning:!0,input:["text"],cost:{input:1.4,output:4.4,cacheRead:.26,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}}};var YT=JT;var XT={"@cf/google/gemma-4-26b-a4b-it":{id:"@cf/google/gemma-4-26b-a4b-it",name:"Gemma 4 26B A4B IT",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!0,input:["text","image"],cost:{input:.1,output:.3,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:16384,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/ibm-granite/granite-4.0-h-micro":{id:"@cf/ibm-granite/granite-4.0-h-micro",name:"Granite 4.0 H Micro",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!1,input:["text"],cost:{input:.017,output:.112,cacheRead:0,cacheWrite:0},contextWindow:131e3,maxTokens:131e3,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/meta/llama-3.3-70b-instruct-fp8-fast":{id:"@cf/meta/llama-3.3-70b-instruct-fp8-fast",name:"Llama 3.3 70B Instruct fp8 Fast",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!1,input:["text"],cost:{input:.293,output:2.253,cacheRead:0,cacheWrite:0},contextWindow:24e3,maxTokens:24e3,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/meta/llama-4-scout-17b-16e-instruct":{id:"@cf/meta/llama-4-scout-17b-16e-instruct",name:"Llama 4 Scout 17B 16E Instruct",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!1,input:["text","image"],cost:{input:.27,output:.85,cacheRead:0,cacheWrite:0},contextWindow:131e3,maxTokens:16384,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/mistralai/mistral-small-3.1-24b-instruct":{id:"@cf/mistralai/mistral-small-3.1-24b-instruct",name:"Mistral Small 3.1 24B Instruct",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!1,input:["text"],cost:{input:.351,output:.555,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:128e3,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/moonshotai/kimi-k2.6":{id:"@cf/moonshotai/kimi-k2.6",name:"Kimi K2.6",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.16,cacheWrite:0},contextWindow:262144,maxTokens:256e3,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/moonshotai/kimi-k2.7-code":{id:"@cf/moonshotai/kimi-k2.7-code",name:"Kimi K2.7 Code",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.19,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/nvidia/nemotron-3-120b-a12b":{id:"@cf/nvidia/nemotron-3-120b-a12b",name:"Nemotron 3 Super 120B",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!0,input:["text"],cost:{input:.5,output:1.5,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:256e3,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/openai/gpt-oss-120b":{id:"@cf/openai/gpt-oss-120b",name:"GPT OSS 120B",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!0,input:["text"],cost:{input:.35,output:.75,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16384,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/openai/gpt-oss-20b":{id:"@cf/openai/gpt-oss-20b",name:"GPT OSS 20B",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!0,input:["text"],cost:{input:.2,output:.3,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16384,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/qwen/qwen3-30b-a3b-fp8":{id:"@cf/qwen/qwen3-30b-a3b-fp8",name:"Qwen3 30B A3b fp8",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!0,input:["text"],cost:{input:.0509,output:.335,cacheRead:0,cacheWrite:0},contextWindow:32768,maxTokens:32768,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/zai-org/glm-4.7-flash":{id:"@cf/zai-org/glm-4.7-flash",name:"GLM-4.7-Flash",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!0,input:["text"],cost:{input:.0605,output:.4,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:131072,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/zai-org/glm-5.2":{id:"@cf/zai-org/glm-5.2",name:"Glm 5.2",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!0,input:["text"],cost:{input:1.4,output:4.4,cacheRead:.26,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}}};var ZT=XT;var eC={"deepseek-v4-flash":{id:"deepseek-v4-flash",name:"DeepSeek V4 Flash",api:"openai-completions",baseUrl:"https://api.deepseek.com",provider:"deepseek",reasoning:!0,input:["text"],cost:{input:.14,output:.28,cacheRead:.0028,cacheWrite:0},contextWindow:1e6,maxTokens:384e3,compat:{supportsStore:!1,supportsDeveloperRole:!1,requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},thinkingLevelMap:{minimal:null,low:null,medium:null,high:"high",max:"max"}},"deepseek-v4-pro":{id:"deepseek-v4-pro",name:"DeepSeek V4 Pro",api:"openai-completions",baseUrl:"https://api.deepseek.com",provider:"deepseek",reasoning:!0,input:["text"],cost:{input:.435,output:.87,cacheRead:.003625,cacheWrite:0},contextWindow:1e6,maxTokens:384e3,compat:{supportsStore:!1,supportsDeveloperRole:!1,requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},thinkingLevelMap:{minimal:null,low:null,medium:null,high:"high",max:"max"}}};var tC=eC;var nC={"accounts/fireworks/models/deepseek-v4-flash":{id:"accounts/fireworks/models/deepseek-v4-flash",name:"DeepSeek V4 Flash",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text"],cost:{input:.14,output:.28,cacheRead:.028,cacheWrite:0},contextWindow:1e6,maxTokens:384e3,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/models/deepseek-v4-pro":{id:"accounts/fireworks/models/deepseek-v4-pro",name:"DeepSeek V4 Pro",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text"],cost:{input:1.74,output:3.48,cacheRead:.145,cacheWrite:0},contextWindow:1e6,maxTokens:384e3,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/models/glm-5p1":{id:"accounts/fireworks/models/glm-5p1",name:"GLM 5.1",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text"],cost:{input:1.4,output:4.4,cacheRead:.26,cacheWrite:0},contextWindow:202800,maxTokens:131072,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/models/glm-5p2":{id:"accounts/fireworks/models/glm-5p2",name:"GLM 5.2",api:"openai-completions",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference/v1",reasoning:!0,input:["text"],cost:{input:1.4,output:4.4,cacheRead:.14,cacheWrite:0},contextWindow:1048575,maxTokens:131072,compat:{supportsStore:!1,supportsDeveloperRole:!1},thinkingLevelMap:{off:"none",minimal:null,low:"high",medium:"high",max:"max"}},"accounts/fireworks/models/gpt-oss-120b":{id:"accounts/fireworks/models/gpt-oss-120b",name:"GPT OSS 120B",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text"],cost:{input:.15,output:.6,cacheRead:.015,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/models/gpt-oss-20b":{id:"accounts/fireworks/models/gpt-oss-20b",name:"GPT OSS 20B",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text"],cost:{input:.07,output:.3,cacheRead:.035,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/models/kimi-k2p6":{id:"accounts/fireworks/models/kimi-k2p6",name:"Kimi K2.6",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.16,cacheWrite:0},contextWindow:262e3,maxTokens:262e3,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/models/kimi-k2p7-code":{id:"accounts/fireworks/models/kimi-k2p7-code",name:"Kimi K2.7 Code",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.19,cacheWrite:0},contextWindow:262e3,maxTokens:262e3,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/models/minimax-m2p7":{id:"accounts/fireworks/models/minimax-m2p7",name:"MiniMax-M2.7",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},contextWindow:196608,maxTokens:196608,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/models/minimax-m3":{id:"accounts/fireworks/models/minimax-m3",name:"MiniMax-M3",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},contextWindow:512e3,maxTokens:512e3,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/models/qwen3p7-plus":{id:"accounts/fireworks/models/qwen3p7-plus",name:"Qwen 3.7 Plus",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text","image"],cost:{input:.4,output:1.6,cacheRead:.08,cacheWrite:0},contextWindow:262144,maxTokens:65536,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/routers/glm-5p1-fast":{id:"accounts/fireworks/routers/glm-5p1-fast",name:"GLM 5.1 Fast",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text"],cost:{input:2.8,output:8.8,cacheRead:.52,cacheWrite:0},contextWindow:202800,maxTokens:131072,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/routers/glm-5p2-fast":{id:"accounts/fireworks/routers/glm-5p2-fast",name:"GLM 5.2 Fast",api:"openai-completions",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference/v1",reasoning:!0,input:["text"],cost:{input:2.1,output:6.6,cacheRead:.21,cacheWrite:0},contextWindow:1048575,maxTokens:131072,compat:{supportsStore:!1,supportsDeveloperRole:!1},thinkingLevelMap:{off:"none",minimal:null,low:"high",medium:"high",max:"max"}},"accounts/fireworks/routers/kimi-k2p6-fast":{id:"accounts/fireworks/routers/kimi-k2p6-fast",name:"Kimi K2.6 Fast",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text","image"],cost:{input:2,output:8,cacheRead:.3,cacheWrite:0},contextWindow:262e3,maxTokens:262e3,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/routers/kimi-k2p6-turbo":{id:"accounts/fireworks/routers/kimi-k2p6-turbo",name:"Kimi K2.6 Turbo",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text","image"],cost:{input:2,output:8,cacheRead:.3,cacheWrite:0},contextWindow:262e3,maxTokens:262e3,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/routers/kimi-k2p7-code-fast":{id:"accounts/fireworks/routers/kimi-k2p7-code-fast",name:"Kimi K2.7 Code Fast",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text","image"],cost:{input:1.9,output:8,cacheRead:.38,cacheWrite:0},contextWindow:262e3,maxTokens:262e3,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}}};var iC=nC;var oC={"claude-fable-5":{id:"claude-fable-5",name:"Claude Fable 5",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1},thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5 (latest)",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsEagerToolInputStreaming:!1}},"claude-opus-4.5":{id:"claude-opus-4.5",name:"Claude Opus 4.5 (latest)",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:2e5,maxTokens:32e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"}},"claude-opus-4.6":{id:"claude-opus-4.6",name:"Claude Opus 4.6",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:32e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{max:"max"},compat:{forceAdaptiveThinking:!0}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:32e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{xhigh:"xhigh",max:"max",minimal:"low"},compat:{forceAdaptiveThinking:!0,supportsTemperature:!1}},"claude-opus-4.8":{id:"claude-opus-4.8",name:"Claude Opus 4.8",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:64e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{xhigh:"xhigh",max:"max",minimal:"low"},compat:{forceAdaptiveThinking:!0,supportsTemperature:!1}},"claude-sonnet-4":{id:"claude-sonnet-4",name:"Claude Sonnet 4 (latest)",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:216e3,maxTokens:16e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsEagerToolInputStreaming:!1}},"claude-sonnet-4.5":{id:"claude-sonnet-4.5",name:"Claude Sonnet 4.5 (latest)",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:32e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsEagerToolInputStreaming:!1}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:32e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{max:"max",minimal:"low"},compat:{forceAdaptiveThinking:!0}},"claude-sonnet-5":{id:"claude-sonnet-5",name:"Claude Sonnet 5",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0}},"gemini-2.5-pro":{id:"gemini-2.5-pro",name:"Gemini 2.5 Pro",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:128e3,maxTokens:64e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1}},"gemini-3-flash-preview":{id:"gemini-3-flash-preview",name:"Gemini 3 Flash Preview",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:.5,output:3,cacheRead:.05,cacheWrite:0},contextWindow:128e3,maxTokens:64e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:0,tiers:[{inputTokensAbove:2e5,input:4,output:18,cacheRead:.4,cacheWrite:0}]},contextWindow:1e6,maxTokens:64e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1}},"gemini-3.5-flash":{id:"gemini-3.5-flash",name:"Gemini 3.5 Flash",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:1.5,output:9,cacheRead:.15,cacheWrite:0},contextWindow:2e5,maxTokens:64e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!1,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:128e3,maxTokens:16384,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 Mini",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.025,cacheWrite:0},contextWindow:264e3,maxTokens:64e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low"}},"gpt-5.2":{id:"gpt-5.2",name:"GPT-5.2",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",xhigh:"xhigh"}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2 Codex",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",xhigh:"xhigh"}},"gpt-5.3-codex":{id:"gpt-5.3-codex",name:"GPT-5.3 Codex",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:1e6,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",xhigh:"xhigh"}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:0,tiers:[{inputTokensAbove:272e3,input:5,output:22.5,cacheRead:.5,cacheWrite:0}]},contextWindow:1e6,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",xhigh:"xhigh"}},"gpt-5.4-mini":{id:"gpt-5.4-mini",name:"GPT-5.4 mini",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:.75,output:4.5,cacheRead:.075,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",xhigh:"xhigh"}},"gpt-5.4-nano":{id:"gpt-5.4-nano",name:"GPT-5.4 nano",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:.2,output:1.25,cacheRead:.02,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",xhigh:"xhigh"}},"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0,tiers:[{inputTokensAbove:272e3,input:10,output:45,cacheRead:1,cacheWrite:0}]},contextWindow:1e6,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",xhigh:"xhigh"}},"gpt-5.6-luna":{id:"gpt-5.6-luna",name:"GPT-5.6 Luna",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:1,output:6,cacheRead:.1,cacheWrite:1.25,tiers:[{inputTokensAbove:2e5,input:2,output:9,cacheRead:.2,cacheWrite:2.5}]},contextWindow:105e4,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",xhigh:"xhigh",max:"max"}},"gpt-5.6-sol":{id:"gpt-5.6-sol",name:"GPT-5.6 Sol",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:6.25,tiers:[{inputTokensAbove:272e3,input:10,output:45,cacheRead:1,cacheWrite:12.5}]},contextWindow:105e4,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",xhigh:"xhigh",max:"max"}},"gpt-5.6-terra":{id:"gpt-5.6-terra",name:"GPT-5.6 Terra",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:3.125,tiers:[{inputTokensAbove:272e3,input:5,output:22.5,cacheRead:.5,cacheWrite:6.25}]},contextWindow:105e4,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",xhigh:"xhigh",max:"max"}},"kimi-k2.7-code":{id:"kimi-k2.7-code",name:"Kimi K2.7 Code",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.19,cacheWrite:0},contextWindow:256e3,maxTokens:32e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1}},"mai-code-1-flash-picker":{id:"mai-code-1-flash-picker",name:"MAI-Code-1-Flash",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text"],cost:{input:.75,output:4.5,cacheRead:.075,cacheWrite:0},contextWindow:256e3,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"}}};var rC=oC;var sC={"gemini-2.0-flash":{id:"gemini-2.0-flash",name:"Gemini 2.0 Flash",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!1,input:["text","image"],cost:{input:.1,output:.4,cacheRead:.025,cacheWrite:0},contextWindow:1048576,maxTokens:8192},"gemini-2.0-flash-lite":{id:"gemini-2.0-flash-lite",name:"Gemini 2.0 Flash-Lite",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!1,input:["text","image"],cost:{input:.075,output:.3,cacheRead:0,cacheWrite:0},contextWindow:1048576,maxTokens:8192},"gemini-2.5-flash":{id:"gemini-2.5-flash",name:"Gemini 2.5 Flash",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:.3,output:2.5,cacheRead:.03,cacheWrite:0},contextWindow:1048576,maxTokens:65536},"gemini-2.5-flash-lite":{id:"gemini-2.5-flash-lite",name:"Gemini 2.5 Flash-Lite",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:.1,output:.4,cacheRead:.01,cacheWrite:0},contextWindow:1048576,maxTokens:65536},"gemini-2.5-pro":{id:"gemini-2.5-pro",name:"Gemini 2.5 Pro",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:1048576,maxTokens:65536},"gemini-3-flash-preview":{id:"gemini-3-flash-preview",name:"Gemini 3 Flash Preview",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:.5,output:3,cacheRead:.05,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"gemini-3-pro-preview":{id:"gemini-3-pro-preview",name:"Gemini 3 Pro Preview",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null,minimal:null,low:"LOW",medium:null,high:"HIGH"}},"gemini-3.1-flash-lite":{id:"gemini-3.1-flash-lite",name:"Gemini 3.1 Flash Lite",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:.25,output:1.5,cacheRead:.025,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"gemini-3.1-flash-lite-preview":{id:"gemini-3.1-flash-lite-preview",name:"Gemini 3.1 Flash Lite Preview",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:.25,output:1.5,cacheRead:.025,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null,minimal:null,low:"LOW",medium:null,high:"HIGH"}},"gemini-3.1-pro-preview-customtools":{id:"gemini-3.1-pro-preview-customtools",name:"Gemini 3.1 Pro Preview Custom Tools",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null,minimal:null,low:"LOW",medium:null,high:"HIGH"}},"gemini-3.5-flash":{id:"gemini-3.5-flash",name:"Gemini 3.5 Flash",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:1.5,output:9,cacheRead:.15,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"gemini-flash-latest":{id:"gemini-flash-latest",name:"Gemini Flash Latest",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:1.5,output:9,cacheRead:.15,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"gemini-flash-lite-latest":{id:"gemini-flash-lite-latest",name:"Gemini Flash-Lite Latest",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:.25,output:1.5,cacheRead:.025,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"gemma-4-26b-a4b-it":{id:"gemma-4-26b-a4b-it",name:"Gemma 4 26B A4B IT",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:32768,thinkingLevelMap:{off:null,minimal:"MINIMAL",low:null,medium:null,high:"HIGH"}},"gemma-4-31b-it":{id:"gemma-4-31b-it",name:"Gemma 4 31B IT",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:32768,thinkingLevelMap:{off:null,minimal:"MINIMAL",low:null,medium:null,high:"HIGH"}}};var aC=sC;var lC={"gemini-2.5-flash":{id:"gemini-2.5-flash",name:"Gemini 2.5 Flash",api:"google-vertex",provider:"google-vertex",baseUrl:"https://{location}-aiplatform.googleapis.com",reasoning:!0,input:["text","image"],cost:{input:.3,output:2.5,cacheRead:.03,cacheWrite:0},contextWindow:1048576,maxTokens:65536},"gemini-2.5-flash-lite":{id:"gemini-2.5-flash-lite",name:"Gemini 2.5 Flash-Lite",api:"google-vertex",provider:"google-vertex",baseUrl:"https://{location}-aiplatform.googleapis.com",reasoning:!0,input:["text","image"],cost:{input:.1,output:.4,cacheRead:.01,cacheWrite:0},contextWindow:1048576,maxTokens:65536},"gemini-2.5-pro":{id:"gemini-2.5-pro",name:"Gemini 2.5 Pro",api:"google-vertex",provider:"google-vertex",baseUrl:"https://{location}-aiplatform.googleapis.com",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:1048576,maxTokens:65536},"gemini-3-flash-preview":{id:"gemini-3-flash-preview",name:"Gemini 3 Flash Preview",api:"google-vertex",provider:"google-vertex",baseUrl:"https://{location}-aiplatform.googleapis.com",reasoning:!0,input:["text","image"],cost:{input:.5,output:3,cacheRead:.05,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"gemini-3.1-flash-lite":{id:"gemini-3.1-flash-lite",name:"Gemini 3.1 Flash Lite",api:"google-vertex",provider:"google-vertex",baseUrl:"https://{location}-aiplatform.googleapis.com",reasoning:!0,input:["text","image"],cost:{input:.25,output:1.5,cacheRead:.025,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",api:"google-vertex",provider:"google-vertex",baseUrl:"https://{location}-aiplatform.googleapis.com",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null,minimal:null,low:"LOW",medium:null,high:"HIGH"}},"gemini-3.1-pro-preview-customtools":{id:"gemini-3.1-pro-preview-customtools",name:"Gemini 3.1 Pro Preview Custom Tools",api:"google-vertex",provider:"google-vertex",baseUrl:"https://{location}-aiplatform.googleapis.com",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null,minimal:null,low:"LOW",medium:null,high:"HIGH"}},"gemini-3.5-flash":{id:"gemini-3.5-flash",name:"Gemini 3.5 Flash",api:"google-vertex",provider:"google-vertex",baseUrl:"https://{location}-aiplatform.googleapis.com",reasoning:!0,input:["text","image"],cost:{input:1.5,output:9,cacheRead:.15,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"gemini-flash-latest":{id:"gemini-flash-latest",name:"Gemini Flash Latest",api:"google-vertex",provider:"google-vertex",baseUrl:"https://{location}-aiplatform.googleapis.com",reasoning:!0,input:["text","image"],cost:{input:1.5,output:9,cacheRead:.15,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"gemini-flash-lite-latest":{id:"gemini-flash-lite-latest",name:"Gemini Flash-Lite Latest",api:"google-vertex",provider:"google-vertex",baseUrl:"https://{location}-aiplatform.googleapis.com",reasoning:!0,input:["text","image"],cost:{input:.25,output:1.5,cacheRead:.025,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}}};var cC=lC;var uC={"llama-3.1-8b-instant":{id:"llama-3.1-8b-instant",name:"Llama 3.1 8B",api:"openai-completions",provider:"groq",baseUrl:"https://api.groq.com/openai/v1",reasoning:!1,input:["text"],cost:{input:.05,output:.08,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:131072},"llama-3.3-70b-versatile":{id:"llama-3.3-70b-versatile",name:"Llama 3.3 70B",api:"openai-completions",provider:"groq",baseUrl:"https://api.groq.com/openai/v1",reasoning:!1,input:["text"],cost:{input:.59,output:.79,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768},"meta-llama/llama-4-scout-17b-16e-instruct":{id:"meta-llama/llama-4-scout-17b-16e-instruct",name:"Llama 4 Scout 17B 16E",api:"openai-completions",provider:"groq",baseUrl:"https://api.groq.com/openai/v1",reasoning:!1,input:["text","image"],cost:{input:.11,output:.34,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:8192},"openai/gpt-oss-120b":{id:"openai/gpt-oss-120b",name:"GPT OSS 120B",api:"openai-completions",provider:"groq",baseUrl:"https://api.groq.com/openai/v1",reasoning:!0,input:["text"],cost:{input:.15,output:.6,cacheRead:.075,cacheWrite:0},contextWindow:131072,maxTokens:65536},"openai/gpt-oss-20b":{id:"openai/gpt-oss-20b",name:"GPT OSS 20B",api:"openai-completions",provider:"groq",baseUrl:"https://api.groq.com/openai/v1",reasoning:!0,input:["text"],cost:{input:.075,output:.3,cacheRead:.0375,cacheWrite:0},contextWindow:131072,maxTokens:65536},"openai/gpt-oss-safeguard-20b":{id:"openai/gpt-oss-safeguard-20b",name:"Safety GPT OSS 20B",api:"openai-completions",provider:"groq",baseUrl:"https://api.groq.com/openai/v1",reasoning:!0,input:["text"],cost:{input:.075,output:.3,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:65536},"qwen/qwen3-32b":{id:"qwen/qwen3-32b",name:"Qwen3-32B",api:"openai-completions",provider:"groq",baseUrl:"https://api.groq.com/openai/v1",reasoning:!0,input:["text"],cost:{input:.29,output:.59,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:40960,thinkingLevelMap:{minimal:null,low:null,medium:null,high:"default"}}};var dC=uC;var pC={"MiniMaxAI/MiniMax-M2":{id:"MiniMaxAI/MiniMax-M2",name:"MiniMax-M2",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:204800,maxTokens:128e3},"MiniMaxAI/MiniMax-M2.1":{id:"MiniMaxAI/MiniMax-M2.1",name:"MiniMax-M2.1",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:204800,maxTokens:131072},"MiniMaxAI/MiniMax-M2.5":{id:"MiniMaxAI/MiniMax-M2.5",name:"MiniMax-M2.5",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.03,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:204800,maxTokens:131072},"MiniMaxAI/MiniMax-M2.7":{id:"MiniMaxAI/MiniMax-M2.7",name:"MiniMax-M2.7",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:204800,maxTokens:131072},"MiniMaxAI/MiniMax-M3":{id:"MiniMaxAI/MiniMax-M3",name:"MiniMax-M3",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.3,output:1.2,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:524288,maxTokens:128e3},"Qwen/Qwen3-235B-A22B":{id:"Qwen/Qwen3-235B-A22B",name:"Qwen3 235B-A22B",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.2,output:.8,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:40960,maxTokens:16384},"Qwen/Qwen3-235B-A22B-Thinking-2507":{id:"Qwen/Qwen3-235B-A22B-Thinking-2507",name:"Qwen3-235B-A22B-Thinking-2507",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.3,output:3,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:131072},"Qwen/Qwen3-32B":{id:"Qwen/Qwen3-32B",name:"Qwen3 32B",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.29,output:.59,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:131072,maxTokens:16384},"Qwen/Qwen3-Coder-30B-A3B-Instruct":{id:"Qwen/Qwen3-Coder-30B-A3B-Instruct",name:"Qwen3-Coder 30B-A3B Instruct",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!1,input:["text"],cost:{input:.07,output:.26,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:65536},"Qwen/Qwen3-Coder-480B-A35B-Instruct":{id:"Qwen/Qwen3-Coder-480B-A35B-Instruct",name:"Qwen3-Coder-480B-A35B-Instruct",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!1,input:["text"],cost:{input:2,output:2,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:66536},"Qwen/Qwen3-Coder-Next":{id:"Qwen/Qwen3-Coder-Next",name:"Qwen3-Coder-Next",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!1,input:["text"],cost:{input:.2,output:1.5,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:65536},"Qwen/Qwen3-Next-80B-A3B-Instruct":{id:"Qwen/Qwen3-Next-80B-A3B-Instruct",name:"Qwen3-Next-80B-A3B-Instruct",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!1,input:["text"],cost:{input:.25,output:1,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:66536},"Qwen/Qwen3-Next-80B-A3B-Thinking":{id:"Qwen/Qwen3-Next-80B-A3B-Thinking",name:"Qwen3-Next-80B-A3B-Thinking",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!1,input:["text"],cost:{input:.3,output:2,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:131072},"Qwen/Qwen3.5-122B-A10B":{id:"Qwen/Qwen3.5-122B-A10B",name:"Qwen3.5 122B-A10B",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.4,output:3.2,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:65536},"Qwen/Qwen3.5-27B":{id:"Qwen/Qwen3.5-27B",name:"Qwen3.5 27B",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.3,output:2.4,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:65536},"Qwen/Qwen3.5-35B-A3B":{id:"Qwen/Qwen3.5-35B-A3B",name:"Qwen3.5 35B-A3B",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:65536},"Qwen/Qwen3.5-397B-A17B":{id:"Qwen/Qwen3.5-397B-A17B",name:"Qwen3.5-397B-A17B",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.6,output:3.6,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:32768},"Qwen/Qwen3.5-9B":{id:"Qwen/Qwen3.5-9B",name:"Qwen3.5 9B",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.17,output:.25,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:65536},"Qwen/Qwen3.6-27B":{id:"Qwen/Qwen3.6-27B",name:"Qwen3.6 27B",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.47,output:3.19,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:65536},"Qwen/Qwen3.6-35B-A3B":{id:"Qwen/Qwen3.6-35B-A3B",name:"Qwen3.6 35B-A3B",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.15,output:.95,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:65536},"XiaomiMiMo/MiMo-V2-Flash":{id:"XiaomiMiMo/MiMo-V2-Flash",name:"MiMo-V2-Flash",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.1,output:.3,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:4096},"XiaomiMiMo/MiMo-V2.5-Pro":{id:"XiaomiMiMo/MiMo-V2.5-Pro",name:"MiMo-V2.5-Pro",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:1,output:3,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:1048576,maxTokens:131072},"deepseek-ai/DeepSeek-R1":{id:"deepseek-ai/DeepSeek-R1",name:"DeepSeek-R1",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.7,output:2.5,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:64e3,maxTokens:32768},"deepseek-ai/DeepSeek-R1-0528":{id:"deepseek-ai/DeepSeek-R1-0528",name:"DeepSeek-R1-0528",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:3,output:5,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:163840,maxTokens:163840},"deepseek-ai/DeepSeek-V3.2":{id:"deepseek-ai/DeepSeek-V3.2",name:"DeepSeek-V3.2",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.28,output:.4,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:163840,maxTokens:65536},"deepseek-ai/DeepSeek-V4-Flash":{id:"deepseek-ai/DeepSeek-V4-Flash",name:"DeepSeek V4 Flash",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.14,output:.28,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:1048576,maxTokens:384e3},"deepseek-ai/DeepSeek-V4-Pro":{id:"deepseek-ai/DeepSeek-V4-Pro",name:"DeepSeek V4 Pro",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.435,output:.87,cacheRead:.003625,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:1048576,maxTokens:393216},"google/gemma-4-26B-A4B-it":{id:"google/gemma-4-26B-A4B-it",name:"Gemma 4 26B A4B IT",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.13,output:.4,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:32768},"google/gemma-4-31B-it":{id:"google/gemma-4-31B-it",name:"Gemma 4 31B IT",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.14,output:.4,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:32768},"meta-llama/Llama-3.3-70B-Instruct":{id:"meta-llama/Llama-3.3-70B-Instruct",name:"Llama-3.3-70B-Instruct",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!1,input:["text"],cost:{input:.59,output:.79,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:131072,maxTokens:4096},"moonshotai/Kimi-K2-Instruct":{id:"moonshotai/Kimi-K2-Instruct",name:"Kimi-K2-Instruct",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!1,input:["text"],cost:{input:1,output:3,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:131072,maxTokens:16384},"moonshotai/Kimi-K2-Instruct-0905":{id:"moonshotai/Kimi-K2-Instruct-0905",name:"Kimi-K2-Instruct-0905",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!1,input:["text"],cost:{input:1,output:3,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:16384},"moonshotai/Kimi-K2-Thinking":{id:"moonshotai/Kimi-K2-Thinking",name:"Kimi-K2-Thinking",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.6,output:2.5,cacheRead:.15,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:262144},"moonshotai/Kimi-K2.5":{id:"moonshotai/Kimi-K2.5",name:"Kimi-K2.5",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.6,output:3,cacheRead:.1,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:262144},"moonshotai/Kimi-K2.6":{id:"moonshotai/Kimi-K2.6",name:"Kimi-K2.6",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.16,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:262144},"moonshotai/Kimi-K2.7-Code":{id:"moonshotai/Kimi-K2.7-Code",name:"Kimi K2.7 Code",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:262144},"openai/gpt-oss-120b":{id:"openai/gpt-oss-120b",name:"GPT OSS 120B",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.25,output:.69,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:131072,maxTokens:32768},"openai/gpt-oss-20b":{id:"openai/gpt-oss-20b",name:"GPT OSS 20B",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.1,output:.5,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:131072,maxTokens:32768},"stepfun-ai/Step-3.5-Flash":{id:"stepfun-ai/Step-3.5-Flash",name:"Step 3.5 Flash",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.1,output:.3,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:256e3},"stepfun-ai/Step-3.7-Flash":{id:"stepfun-ai/Step-3.7-Flash",name:"Step 3.7 Flash",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.2,output:1.15,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:256e3},"zai-org/GLM-4.5":{id:"zai-org/GLM-4.5",name:"GLM-4.5",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.6,output:2.2,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:131072,maxTokens:98304},"zai-org/GLM-4.5-Air":{id:"zai-org/GLM-4.5-Air",name:"GLM-4.5-Air",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.13,output:.85,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:131072,maxTokens:98304},"zai-org/GLM-4.5V":{id:"zai-org/GLM-4.5V",name:"GLM-4.5V",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.6,output:1.8,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:65536,maxTokens:16384},"zai-org/GLM-4.6":{id:"zai-org/GLM-4.6",name:"GLM-4.6",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.55,output:2.2,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:204800,maxTokens:131072},"zai-org/GLM-4.7":{id:"zai-org/GLM-4.7",name:"GLM-4.7",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.6,output:2.2,cacheRead:.11,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:204800,maxTokens:131072},"zai-org/GLM-4.7-Flash":{id:"zai-org/GLM-4.7-Flash",name:"GLM-4.7-Flash",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:2e5,maxTokens:128e3},"zai-org/GLM-5":{id:"zai-org/GLM-5",name:"GLM-5",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:1,output:3.2,cacheRead:.2,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:202752,maxTokens:131072},"zai-org/GLM-5.1":{id:"zai-org/GLM-5.1",name:"GLM-5.1",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:1,output:3.2,cacheRead:.2,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:202752,maxTokens:131072},"zai-org/GLM-5.2":{id:"zai-org/GLM-5.2",name:"GLM-5.2",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:1.4,output:4.4,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:131072}};var mC=pC;var hC={k2p7:{id:"k2p7",name:"Kimi K2.7 Code",api:"anthropic-messages",provider:"kimi-coding",baseUrl:"https://api.kimi.com/coding",headers:{"User-Agent":"KimiCLI/1.5"},compat:{forceAdaptiveThinking:!0},reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.19,cacheWrite:0},contextWindow:262144,maxTokens:32768},k3:{id:"k3",name:"Kimi K3",api:"anthropic-messages",provider:"kimi-coding",baseUrl:"https://api.kimi.com/coding",headers:{"User-Agent":"KimiCLI/1.5"},compat:{allowEmptySignature:!0,forceAdaptiveThinking:!0},reasoning:!0,thinkingLevelMap:{off:null,minimal:null,low:null,medium:null,high:null,xhigh:null,max:"max"},input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:0},contextWindow:1048576,maxTokens:131072},"kimi-for-coding-highspeed":{id:"kimi-for-coding-highspeed",name:"Kimi For Coding HighSpeed",api:"anthropic-messages",provider:"kimi-coding",baseUrl:"https://api.kimi.com/coding",headers:{"User-Agent":"KimiCLI/1.5"},compat:{forceAdaptiveThinking:!0},reasoning:!0,input:["text","image"],cost:{input:1.9,output:8,cacheRead:.38,cacheWrite:0},contextWindow:262144,maxTokens:32768}};var gC=hC;var fC={"MiniMax-M2.7":{id:"MiniMax-M2.7",name:"MiniMax-M2.7",api:"anthropic-messages",provider:"minimax",baseUrl:"https://api.minimax.io/anthropic",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:.375},contextWindow:204800,maxTokens:131072},"MiniMax-M2.7-highspeed":{id:"MiniMax-M2.7-highspeed",name:"MiniMax-M2.7-highspeed",api:"anthropic-messages",provider:"minimax",baseUrl:"https://api.minimax.io/anthropic",reasoning:!0,input:["text"],cost:{input:.6,output:2.4,cacheRead:.06,cacheWrite:.375},contextWindow:204800,maxTokens:131072},"MiniMax-M3":{id:"MiniMax-M3",name:"MiniMax-M3",api:"anthropic-messages",provider:"minimax",baseUrl:"https://api.minimax.io/anthropic",reasoning:!0,input:["text","image"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},contextWindow:1e6,maxTokens:128e3}};var vC=fC;var bC={"MiniMax-M2.7":{id:"MiniMax-M2.7",name:"MiniMax-M2.7",api:"anthropic-messages",provider:"minimax-cn",baseUrl:"https://api.minimaxi.com/anthropic",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:.375},contextWindow:204800,maxTokens:131072},"MiniMax-M2.7-highspeed":{id:"MiniMax-M2.7-highspeed",name:"MiniMax-M2.7-highspeed",api:"anthropic-messages",provider:"minimax-cn",baseUrl:"https://api.minimaxi.com/anthropic",reasoning:!0,input:["text"],cost:{input:.6,output:2.4,cacheRead:.06,cacheWrite:.375},contextWindow:204800,maxTokens:131072},"MiniMax-M3":{id:"MiniMax-M3",name:"MiniMax-M3",api:"anthropic-messages",provider:"minimax-cn",baseUrl:"https://api.minimaxi.com/anthropic",reasoning:!0,input:["text","image"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},contextWindow:1e6,maxTokens:128e3}};var xC=bC;var yC={"codestral-latest":{id:"codestral-latest",name:"Codestral (latest)",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.3,output:.9,cacheRead:.03,cacheWrite:0},contextWindow:256e3,maxTokens:4096},"devstral-2512":{id:"devstral-2512",name:"Devstral 2",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.4,output:2,cacheRead:.04,cacheWrite:0},contextWindow:262144,maxTokens:262144},"devstral-latest":{id:"devstral-latest",name:"Devstral 2",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.4,output:2,cacheRead:.04,cacheWrite:0},contextWindow:262144,maxTokens:262144},"devstral-medium-2507":{id:"devstral-medium-2507",name:"Devstral Medium",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.4,output:2,cacheRead:.04,cacheWrite:0},contextWindow:128e3,maxTokens:128e3},"devstral-medium-latest":{id:"devstral-medium-latest",name:"Devstral 2 (latest)",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.4,output:2,cacheRead:.04,cacheWrite:0},contextWindow:262144,maxTokens:262144},"devstral-small-2505":{id:"devstral-small-2505",name:"Devstral Small 2505",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.1,output:.3,cacheRead:.01,cacheWrite:0},contextWindow:128e3,maxTokens:128e3},"devstral-small-2507":{id:"devstral-small-2507",name:"Devstral Small",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.1,output:.3,cacheRead:.01,cacheWrite:0},contextWindow:128e3,maxTokens:128e3},"labs-devstral-small-2512":{id:"labs-devstral-small-2512",name:"Devstral Small 2",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"magistral-medium-latest":{id:"magistral-medium-latest",name:"Magistral Medium (latest)",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!0,input:["text"],cost:{input:2,output:5,cacheRead:.2,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"magistral-small":{id:"magistral-small",name:"Magistral Small",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!0,input:["text"],cost:{input:.5,output:1.5,cacheRead:.05,cacheWrite:0},contextWindow:128e3,maxTokens:128e3},"ministral-3b-latest":{id:"ministral-3b-latest",name:"Ministral 3B (latest)",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.04,output:.04,cacheRead:.004,cacheWrite:0},contextWindow:128e3,maxTokens:128e3},"ministral-8b-latest":{id:"ministral-8b-latest",name:"Ministral 8B (latest)",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.1,output:.1,cacheRead:.01,cacheWrite:0},contextWindow:128e3,maxTokens:128e3},"mistral-large-2411":{id:"mistral-large-2411",name:"Mistral Large 2.1",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:2,output:6,cacheRead:.2,cacheWrite:0},contextWindow:131072,maxTokens:16384},"mistral-large-2512":{id:"mistral-large-2512",name:"Mistral Large 3",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text","image"],cost:{input:.5,output:1.5,cacheRead:.05,cacheWrite:0},contextWindow:262144,maxTokens:262144},"mistral-large-latest":{id:"mistral-large-latest",name:"Mistral Large (latest)",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text","image"],cost:{input:.5,output:1.5,cacheRead:.05,cacheWrite:0},contextWindow:262144,maxTokens:262144},"mistral-medium-2505":{id:"mistral-medium-2505",name:"Mistral Medium 3",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text","image"],cost:{input:.4,output:2,cacheRead:.04,cacheWrite:0},contextWindow:131072,maxTokens:131072},"mistral-medium-2508":{id:"mistral-medium-2508",name:"Mistral Medium 3.1",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text","image"],cost:{input:.4,output:2,cacheRead:.04,cacheWrite:0},contextWindow:262144,maxTokens:262144},"mistral-medium-2604":{id:"mistral-medium-2604",name:"Mistral Medium 3.5",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!0,input:["text","image"],cost:{input:1.5,output:7.5,cacheRead:.15,cacheWrite:0},contextWindow:262144,maxTokens:262144},"mistral-medium-3.5":{id:"mistral-medium-3.5",name:"Mistral Medium 3.5",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!0,input:["text","image"],cost:{input:1.5,output:7.5,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:262144},"mistral-medium-latest":{id:"mistral-medium-latest",name:"Mistral Medium (latest)",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!0,input:["text","image"],cost:{input:1.5,output:7.5,cacheRead:.15,cacheWrite:0},contextWindow:262144,maxTokens:262144},"mistral-nemo":{id:"mistral-nemo",name:"Mistral Nemo",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.15,output:.15,cacheRead:.015,cacheWrite:0},contextWindow:128e3,maxTokens:128e3},"mistral-small-2506":{id:"mistral-small-2506",name:"Mistral Small 3.2",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text","image"],cost:{input:.1,output:.3,cacheRead:.01,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"mistral-small-2603":{id:"mistral-small-2603",name:"Mistral Small 4",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!0,input:["text","image"],cost:{input:.15,output:.6,cacheRead:.015,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"mistral-small-latest":{id:"mistral-small-latest",name:"Mistral Small (latest)",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!0,input:["text","image"],cost:{input:.15,output:.6,cacheRead:.015,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"open-mistral-7b":{id:"open-mistral-7b",name:"Mistral 7B",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.25,output:.25,cacheRead:.025,cacheWrite:0},contextWindow:8e3,maxTokens:8e3},"open-mistral-nemo":{id:"open-mistral-nemo",name:"Open Mistral Nemo",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.15,output:.15,cacheRead:.015,cacheWrite:0},contextWindow:128e3,maxTokens:128e3},"open-mixtral-8x22b":{id:"open-mixtral-8x22b",name:"Mixtral 8x22B",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:2,output:6,cacheRead:.2,cacheWrite:0},contextWindow:64e3,maxTokens:64e3},"open-mixtral-8x7b":{id:"open-mixtral-8x7b",name:"Mixtral 8x7B",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.7,output:.7,cacheRead:.07,cacheWrite:0},contextWindow:32e3,maxTokens:32e3},"pixtral-12b":{id:"pixtral-12b",name:"Pixtral 12B",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text","image"],cost:{input:.15,output:.15,cacheRead:.015,cacheWrite:0},contextWindow:128e3,maxTokens:128e3},"pixtral-large-latest":{id:"pixtral-large-latest",name:"Pixtral Large (latest)",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text","image"],cost:{input:2,output:6,cacheRead:.2,cacheWrite:0},contextWindow:128e3,maxTokens:128e3}};var wC=yC;var SC={"kimi-k2-0711-preview":{id:"kimi-k2-0711-preview",name:"Kimi K2 0711",api:"openai-completions",provider:"moonshotai",baseUrl:"https://api.moonshot.ai/v1",reasoning:!1,input:["text"],cost:{input:.6,output:2.5,cacheRead:.15,cacheWrite:0},contextWindow:131072,maxTokens:16384,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2-0905-preview":{id:"kimi-k2-0905-preview",name:"Kimi K2 0905",api:"openai-completions",provider:"moonshotai",baseUrl:"https://api.moonshot.ai/v1",reasoning:!1,input:["text"],cost:{input:.6,output:2.5,cacheRead:.15,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2-thinking":{id:"kimi-k2-thinking",name:"Kimi K2 Thinking",api:"openai-completions",provider:"moonshotai",baseUrl:"https://api.moonshot.ai/v1",reasoning:!0,input:["text"],cost:{input:.6,output:2.5,cacheRead:.15,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2-thinking-turbo":{id:"kimi-k2-thinking-turbo",name:"Kimi K2 Thinking Turbo",api:"openai-completions",provider:"moonshotai",baseUrl:"https://api.moonshot.ai/v1",reasoning:!0,input:["text"],cost:{input:1.15,output:8,cacheRead:.15,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2-turbo-preview":{id:"kimi-k2-turbo-preview",name:"Kimi K2 Turbo",api:"openai-completions",provider:"moonshotai",baseUrl:"https://api.moonshot.ai/v1",reasoning:!1,input:["text"],cost:{input:2.4,output:10,cacheRead:.6,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2.5":{id:"kimi-k2.5",name:"Kimi K2.5",api:"openai-completions",provider:"moonshotai",baseUrl:"https://api.moonshot.ai/v1",reasoning:!0,input:["text","image"],cost:{input:.6,output:3,cacheRead:.1,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2.6":{id:"kimi-k2.6",name:"Kimi K2.6",api:"openai-completions",provider:"moonshotai",baseUrl:"https://api.moonshot.ai/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.16,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2.7-code":{id:"kimi-k2.7-code",name:"Kimi K2.7 Code",api:"openai-completions",provider:"moonshotai",baseUrl:"https://api.moonshot.ai/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.19,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"},thinkingLevelMap:{off:null}},"kimi-k2.7-code-highspeed":{id:"kimi-k2.7-code-highspeed",name:"Kimi K2.7 Code HighSpeed",api:"openai-completions",provider:"moonshotai",baseUrl:"https://api.moonshot.ai/v1",reasoning:!0,input:["text","image"],cost:{input:1.9,output:8,cacheRead:.38,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"},thinkingLevelMap:{off:null}},"kimi-k3":{id:"kimi-k3",name:"Kimi K3",api:"openai-completions",provider:"moonshotai",baseUrl:"https://api.moonshot.ai/v1",reasoning:!0,thinkingLevelMap:{off:null,minimal:null,low:null,medium:null,high:null,xhigh:null,max:"max"},input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:0},contextWindow:1048576,maxTokens:131072,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek",requiresReasoningContentOnAssistantMessages:!0,deferredToolsMode:"kimi"}}};var kC=SC;var TC={"kimi-k2-0711-preview":{id:"kimi-k2-0711-preview",name:"Kimi K2 0711",api:"openai-completions",provider:"moonshotai-cn",baseUrl:"https://api.moonshot.cn/v1",reasoning:!1,input:["text"],cost:{input:.6,output:2.5,cacheRead:.15,cacheWrite:0},contextWindow:131072,maxTokens:16384,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2-0905-preview":{id:"kimi-k2-0905-preview",name:"Kimi K2 0905",api:"openai-completions",provider:"moonshotai-cn",baseUrl:"https://api.moonshot.cn/v1",reasoning:!1,input:["text"],cost:{input:.6,output:2.5,cacheRead:.15,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2-thinking":{id:"kimi-k2-thinking",name:"Kimi K2 Thinking",api:"openai-completions",provider:"moonshotai-cn",baseUrl:"https://api.moonshot.cn/v1",reasoning:!0,input:["text"],cost:{input:.6,output:2.5,cacheRead:.15,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2-thinking-turbo":{id:"kimi-k2-thinking-turbo",name:"Kimi K2 Thinking Turbo",api:"openai-completions",provider:"moonshotai-cn",baseUrl:"https://api.moonshot.cn/v1",reasoning:!0,input:["text"],cost:{input:1.15,output:8,cacheRead:.15,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2-turbo-preview":{id:"kimi-k2-turbo-preview",name:"Kimi K2 Turbo",api:"openai-completions",provider:"moonshotai-cn",baseUrl:"https://api.moonshot.cn/v1",reasoning:!1,input:["text"],cost:{input:2.4,output:10,cacheRead:.6,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2.5":{id:"kimi-k2.5",name:"Kimi K2.5",api:"openai-completions",provider:"moonshotai-cn",baseUrl:"https://api.moonshot.cn/v1",reasoning:!0,input:["text","image"],cost:{input:.6,output:3,cacheRead:.1,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2.6":{id:"kimi-k2.6",name:"Kimi K2.6",api:"openai-completions",provider:"moonshotai-cn",baseUrl:"https://api.moonshot.cn/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.16,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2.7-code":{id:"kimi-k2.7-code",name:"Kimi K2.7 Code",api:"openai-completions",provider:"moonshotai-cn",baseUrl:"https://api.moonshot.cn/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.19,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"},thinkingLevelMap:{off:null}},"kimi-k2.7-code-highspeed":{id:"kimi-k2.7-code-highspeed",name:"Kimi K2.7 Code HighSpeed",api:"openai-completions",provider:"moonshotai-cn",baseUrl:"https://api.moonshot.cn/v1",reasoning:!0,input:["text","image"],cost:{input:1.9,output:8,cacheRead:.38,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"},thinkingLevelMap:{off:null}},"kimi-k3":{id:"kimi-k3",name:"Kimi K3",api:"openai-completions",provider:"moonshotai-cn",baseUrl:"https://api.moonshot.cn/v1",reasoning:!0,thinkingLevelMap:{off:null,minimal:null,low:null,medium:null,high:null,xhigh:null,max:"max"},input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:0},contextWindow:1048576,maxTokens:131072,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek",requiresReasoningContentOnAssistantMessages:!0,deferredToolsMode:"kimi"}}};var CC=TC;var MC={"meta/llama-3.1-70b-instruct":{id:"meta/llama-3.1-70b-instruct",name:"Llama 3.1 70b Instruct",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!1,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:128e3,maxTokens:4096},"meta/llama-3.1-8b-instruct":{id:"meta/llama-3.1-8b-instruct",name:"Llama 3.1 8B Instruct",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!1,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:16e3,maxTokens:4096},"meta/llama-3.2-11b-vision-instruct":{id:"meta/llama-3.2-11b-vision-instruct",name:"Llama 3.2 11b Vision Instruct",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!1,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:128e3,maxTokens:4096},"meta/llama-3.2-90b-vision-instruct":{id:"meta/llama-3.2-90b-vision-instruct",name:"Llama-3.2-90B-Vision-Instruct",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!1,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:128e3,maxTokens:8192},"meta/llama-3.3-70b-instruct":{id:"meta/llama-3.3-70b-instruct",name:"Llama 3.3 70b Instruct",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!1,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:128e3,maxTokens:4096},"minimaxai/minimax-m3":{id:"minimaxai/minimax-m3",name:"MiniMax-M3",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:1e6,maxTokens:16384},"mistralai/mistral-large-3-675b-instruct-2512":{id:"mistralai/mistral-large-3-675b-instruct-2512",name:"Mistral Large 3 675B Instruct 2512",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!1,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:262144},"mistralai/mistral-small-4-119b-2603":{id:"mistralai/mistral-small-4-119b-2603",name:"mistral-small-4-119b-2603",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:128e3,maxTokens:8192},"moonshotai/kimi-k2.6":{id:"moonshotai/kimi-k2.6",name:"Kimi K2.6",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:262144},"nvidia/nemotron-3-nano-30b-a3b":{id:"nvidia/nemotron-3-nano-30b-a3b",name:"nemotron-3-nano-30b-a3b",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:131072,maxTokens:131072},"nvidia/nemotron-3-nano-omni-30b-a3b-reasoning":{id:"nvidia/nemotron-3-nano-omni-30b-a3b-reasoning",name:"Nemotron 3 Nano Omni",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:256e3,maxTokens:65536},"nvidia/nemotron-3-super-120b-a12b":{id:"nvidia/nemotron-3-super-120b-a12b",name:"Nemotron 3 Super",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text"],cost:{input:.2,output:.8,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:262144},"nvidia/nemotron-3-ultra-550b-a55b":{id:"nvidia/nemotron-3-ultra-550b-a55b",name:"Nemotron 3 Ultra 550B A55B",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text"],cost:{input:.5,output:2.5,cacheRead:.15,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:1e6,maxTokens:65536},"nvidia/nvidia-nemotron-nano-9b-v2":{id:"nvidia/nvidia-nemotron-nano-9b-v2",name:"nvidia-nemotron-nano-9b-v2",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:131072,maxTokens:131072},"openai/gpt-oss-120b":{id:"openai/gpt-oss-120b",name:"GPT-OSS-120B",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:128e3,maxTokens:8192},"openai/gpt-oss-20b":{id:"openai/gpt-oss-20b",name:"GPT OSS 20B",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:131072,maxTokens:32768},"qwen/qwen3.5-122b-a10b":{id:"qwen/qwen3.5-122b-a10b",name:"Qwen3.5 122B-A10B",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:65536},"stepfun-ai/step-3.5-flash":{id:"stepfun-ai/step-3.5-flash",name:"Step 3.5 Flash",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:256e3,maxTokens:16384},"stepfun-ai/step-3.7-flash":{id:"stepfun-ai/step-3.7-flash",name:"Step 3.7 Flash",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:256e3,maxTokens:16384},"z-ai/glm-5.2":{id:"z-ai/glm-5.2",name:"GLM-5.2",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:1e6,maxTokens:131072}};var RC=MC;var PC={"gpt-4":{id:"gpt-4",name:"GPT-4",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text"],cost:{input:30,output:60,cacheRead:0,cacheWrite:0},contextWindow:8192,maxTokens:8192},"gpt-4-turbo":{id:"gpt-4-turbo",name:"GPT-4 Turbo",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:10,output:30,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:1047576,maxTokens:32768},"gpt-4.1-mini":{id:"gpt-4.1-mini",name:"GPT-4.1 mini",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:.4,output:1.6,cacheRead:.1,cacheWrite:0},contextWindow:1047576,maxTokens:32768},"gpt-4.1-nano":{id:"gpt-4.1-nano",name:"GPT-4.1 nano",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:.1,output:.4,cacheRead:.025,cacheWrite:0},contextWindow:1047576,maxTokens:32768},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"gpt-4o-2024-05-13":{id:"gpt-4o-2024-05-13",name:"GPT-4o (2024-05-13)",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:5,output:15,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"gpt-4o-2024-08-06":{id:"gpt-4o-2024-08-06",name:"GPT-4o (2024-08-06)",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"gpt-4o-2024-11-20":{id:"gpt-4o-2024-11-20",name:"GPT-4o (2024-11-20)",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"gpt-4o-mini":{id:"gpt-4o-mini",name:"GPT-4o mini",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:.15,output:.6,cacheRead:.075,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"gpt-5":{id:"gpt-5",name:"GPT-5",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5-chat-latest":{id:"gpt-5-chat-latest",name:"GPT-5 Chat Latest",api:"openai-responses",baseUrl:"https://api.openai.com/v1",provider:"openai",reasoning:!1,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{off:null}},"gpt-5-codex":{id:"gpt-5-codex",name:"GPT-5-Codex",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 Mini",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.025,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5-nano":{id:"gpt-5-nano",name:"GPT-5 Nano",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:.05,output:.4,cacheRead:.005,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5-pro":{id:"gpt-5-pro",name:"GPT-5 Pro",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:15,output:120,cacheRead:0,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1":{id:"gpt-5.1",name:"GPT-5.1",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:"none"}},"gpt-5.1-chat-latest":{id:"gpt-5.1-chat-latest",name:"GPT-5.1 Chat",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{off:null}},"gpt-5.1-codex":{id:"gpt-5.1-codex",name:"GPT-5.1 Codex",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1-codex-max":{id:"gpt-5.1-codex-max",name:"GPT-5.1 Codex Max",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1-codex-mini":{id:"gpt-5.1-codex-mini",name:"GPT-5.1 Codex mini",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.025,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.2":{id:"gpt-5.2",name:"GPT-5.2",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:"none",xhigh:"xhigh"}},"gpt-5.2-chat-latest":{id:"gpt-5.2-chat-latest",name:"GPT-5.2 Chat",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2 Codex",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.2-pro":{id:"gpt-5.2-pro",name:"GPT-5.2 Pro",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:21,output:168,cacheRead:0,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.3-chat-latest":{id:"gpt-5.3-chat-latest",name:"GPT-5.3 Chat (latest)",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.3-codex":{id:"gpt-5.3-codex",name:"GPT-5.3 Codex",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:"none",xhigh:"xhigh"}},"gpt-5.3-codex-spark":{id:"gpt-5.3-codex-spark",name:"GPT-5.3 Codex Spark",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:128e3,maxTokens:32e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:0,tiers:[{inputTokensAbove:272e3,input:5,output:22.5,cacheRead:.5,cacheWrite:0}]},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{off:"none",xhigh:"xhigh"},compat:{supportsToolSearch:!0}},"gpt-5.4-mini":{id:"gpt-5.4-mini",name:"GPT-5.4 mini",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:.75,output:4.5,cacheRead:.075,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:"none",xhigh:"xhigh"},compat:{supportsToolSearch:!0}},"gpt-5.4-nano":{id:"gpt-5.4-nano",name:"GPT-5.4 nano",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:.2,output:1.25,cacheRead:.02,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:"none",xhigh:"xhigh"}},"gpt-5.4-pro":{id:"gpt-5.4-pro",name:"GPT-5.4 Pro",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:30,output:180,cacheRead:0,cacheWrite:0,tiers:[{inputTokensAbove:272e3,input:60,output:270,cacheRead:0,cacheWrite:0}]},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"},compat:{supportsToolSearch:!0}},"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0,tiers:[{inputTokensAbove:272e3,input:10,output:45,cacheRead:1,cacheWrite:0}]},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{off:"none",xhigh:"xhigh",minimal:null},compat:{supportsToolSearch:!0}},"gpt-5.5-pro":{id:"gpt-5.5-pro",name:"GPT-5.5 Pro",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:30,output:180,cacheRead:0,cacheWrite:0,tiers:[{inputTokensAbove:272e3,input:60,output:270,cacheRead:0,cacheWrite:0}]},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",minimal:null,low:null}},"gpt-5.6-luna":{id:"gpt-5.6-luna",name:"GPT-5.6 Luna",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1,output:6,cacheRead:.1,cacheWrite:1.25,tiers:[{inputTokensAbove:272e3,input:2,output:9,cacheRead:.2,cacheWrite:2.5}]},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{off:"none",xhigh:"xhigh",max:"max"},compat:{supportsToolSearch:!0}},"gpt-5.6-sol":{id:"gpt-5.6-sol",name:"GPT-5.6 Sol",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:6.25,tiers:[{inputTokensAbove:272e3,input:10,output:45,cacheRead:1,cacheWrite:12.5}]},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{off:"none",xhigh:"xhigh",max:"max"},compat:{supportsToolSearch:!0}},"gpt-5.6-terra":{id:"gpt-5.6-terra",name:"GPT-5.6 Terra",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:3.125,tiers:[{inputTokensAbove:272e3,input:5,output:22.5,cacheRead:.5,cacheWrite:6.25}]},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{off:"none",xhigh:"xhigh",max:"max"},compat:{supportsToolSearch:!0}},"gpt-realtime-2.1":{id:"gpt-realtime-2.1",name:"GPT-Realtime-2.1",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:4,output:24,cacheRead:.4,cacheWrite:0},contextWindow:128e3,maxTokens:32e3},o1:{id:"o1",name:"o1",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:15,output:60,cacheRead:7.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o1-pro":{id:"o1-pro",name:"o1-pro",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:150,output:600,cacheRead:0,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},o3:{id:"o3",name:"o3",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o3-deep-research":{id:"o3-deep-research",name:"o3-deep-research",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:10,output:40,cacheRead:2.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o3-mini":{id:"o3-mini",name:"o3-mini",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text"],cost:{input:1.1,output:4.4,cacheRead:.55,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o3-pro":{id:"o3-pro",name:"o3-pro",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:20,output:80,cacheRead:0,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o4-mini":{id:"o4-mini",name:"o4-mini",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.1,output:4.4,cacheRead:.275,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o4-mini-deep-research":{id:"o4-mini-deep-research",name:"o4-mini-deep-research",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5}};var IC=PC;var EC={"gpt-5.3-codex-spark":{id:"gpt-5.3-codex-spark",name:"GPT-5.3 Codex Spark",api:"openai-codex-responses",provider:"openai-codex",baseUrl:"https://chatgpt.com/backend-api",reasoning:!0,input:["text"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:128e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",minimal:"low"}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",api:"openai-codex-responses",provider:"openai-codex",baseUrl:"https://chatgpt.com/backend-api",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:0,tiers:[{inputTokensAbove:272e3,input:5,output:22.5,cacheRead:.5,cacheWrite:0}]},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",minimal:"low"},compat:{supportsToolSearch:!0}},"gpt-5.4-mini":{id:"gpt-5.4-mini",name:"GPT-5.4 mini",api:"openai-codex-responses",provider:"openai-codex",baseUrl:"https://chatgpt.com/backend-api",reasoning:!0,input:["text","image"],cost:{input:.75,output:4.5,cacheRead:.075,cacheWrite:0},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",minimal:"low"},compat:{supportsToolSearch:!0}},"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",api:"openai-codex-responses",provider:"openai-codex",baseUrl:"https://chatgpt.com/backend-api",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0,tiers:[{inputTokensAbove:272e3,input:10,output:45,cacheRead:1,cacheWrite:0}]},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",minimal:"low"},compat:{supportsToolSearch:!0}},"gpt-5.6-luna":{id:"gpt-5.6-luna",name:"GPT-5.6 Luna",api:"openai-codex-responses",provider:"openai-codex",baseUrl:"https://chatgpt.com/backend-api",reasoning:!0,input:["text","image"],cost:{input:1,output:6,cacheRead:.1,cacheWrite:1.25,tiers:[{inputTokensAbove:272e3,input:2,output:9,cacheRead:.2,cacheWrite:2.5}]},contextWindow:372e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max",minimal:"low"},compat:{supportsToolSearch:!0}},"gpt-5.6-sol":{id:"gpt-5.6-sol",name:"GPT-5.6 Sol",api:"openai-codex-responses",provider:"openai-codex",baseUrl:"https://chatgpt.com/backend-api",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:6.25,tiers:[{inputTokensAbove:272e3,input:10,output:45,cacheRead:1,cacheWrite:12.5}]},contextWindow:372e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max",minimal:"low"},compat:{supportsToolSearch:!0}},"gpt-5.6-terra":{id:"gpt-5.6-terra",name:"GPT-5.6 Terra",api:"openai-codex-responses",provider:"openai-codex",baseUrl:"https://chatgpt.com/backend-api",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:3.125,tiers:[{inputTokensAbove:272e3,input:5,output:22.5,cacheRead:.5,cacheWrite:6.25}]},contextWindow:372e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max",minimal:"low"},compat:{supportsToolSearch:!0}}};var AC=EC;var _C={"big-pickle":{id:"big-pickle",name:"Big Pickle",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:2e5,maxTokens:32e3},"claude-fable-5":{id:"claude-fable-5",name:"Claude Fable 5",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0}},"claude-haiku-4-5":{id:"claude-haiku-4-5",name:"Claude Haiku 4.5",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3},"claude-opus-4-1":{id:"claude-opus-4-1",name:"Claude Opus 4.1",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:32e3},"claude-opus-4-5":{id:"claude-opus-4-5",name:"Claude Opus 4.5",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:2e5,maxTokens:64e3},"claude-opus-4-6":{id:"claude-opus-4-6",name:"Claude Opus 4.6",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"},compat:{forceAdaptiveThinking:!0}},"claude-opus-4-7":{id:"claude-opus-4-7",name:"Claude Opus 4.7",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0,supportsTemperature:!1}},"claude-opus-4-8":{id:"claude-opus-4-8",name:"Claude Opus 4.8",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0,supportsTemperature:!1}},"claude-sonnet-4":{id:"claude-sonnet-4",name:"Claude Sonnet 4",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3},"claude-sonnet-4-5":{id:"claude-sonnet-4-5",name:"Claude Sonnet 4.5",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3},"claude-sonnet-4-6":{id:"claude-sonnet-4-6",name:"Claude Sonnet 4.6",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:64e3,thinkingLevelMap:{max:"max"},compat:{forceAdaptiveThinking:!0}},"claude-sonnet-5":{id:"claude-sonnet-5",name:"Claude Sonnet 5",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0}},"deepseek-v4-flash":{id:"deepseek-v4-flash",name:"DeepSeek V4 Flash",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:.14,output:.28,cacheRead:.028,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens",supportsLongCacheRetention:!1,requiresReasoningContentOnAssistantMessages:!0},contextWindow:1e6,maxTokens:384e3,thinkingLevelMap:{minimal:null,low:null,medium:null,high:"high",max:"max"}},"deepseek-v4-flash-free":{id:"deepseek-v4-flash-free",name:"DeepSeek V4 Flash Free",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens",requiresReasoningContentOnAssistantMessages:!0},contextWindow:2e5,maxTokens:128e3,thinkingLevelMap:{minimal:null,low:null,medium:null,high:"high",max:"max"}},"deepseek-v4-pro":{id:"deepseek-v4-pro",name:"DeepSeek V4 Pro",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:1.74,output:3.84,cacheRead:.145,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens",supportsLongCacheRetention:!1,requiresReasoningContentOnAssistantMessages:!0},contextWindow:1e6,maxTokens:384e3,thinkingLevelMap:{minimal:null,low:null,medium:null,high:"high",max:"max"}},"gemini-3-flash":{id:"gemini-3-flash",name:"Gemini 3 Flash",api:"google-generative-ai",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:.5,output:3,cacheRead:.05,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"gemini-3.1-pro":{id:"gemini-3.1-pro",name:"Gemini 3.1 Pro Preview",api:"google-generative-ai",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null,minimal:null,low:"LOW",medium:null,high:"HIGH"}},"gemini-3.5-flash":{id:"gemini-3.5-flash",name:"Gemini 3.5 Flash",api:"google-generative-ai",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:1.5,output:9,cacheRead:.15,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"glm-5":{id:"glm-5",name:"GLM-5",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:1,output:3.2,cacheRead:.2,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:204800,maxTokens:131072},"glm-5.1":{id:"glm-5.1",name:"GLM-5.1",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:1.4,output:4.4,cacheRead:.26,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:204800,maxTokens:131072},"glm-5.2":{id:"glm-5.2",name:"GLM-5.2",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:1.4,output:4.4,cacheRead:.26,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:1e6,maxTokens:131072},"gpt-5":{id:"gpt-5",name:"GPT-5",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:1.07,output:8.5,cacheRead:.107,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5-codex":{id:"gpt-5-codex",name:"GPT-5 Codex",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:1.07,output:8.5,cacheRead:.107,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5-nano":{id:"gpt-5-nano",name:"GPT-5 Nano",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:.05,output:.4,cacheRead:.005,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1":{id:"gpt-5.1",name:"GPT-5.1",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:1.07,output:8.5,cacheRead:.107,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1-codex":{id:"gpt-5.1-codex",name:"GPT-5.1 Codex",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:1.07,output:8.5,cacheRead:.107,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1-codex-max":{id:"gpt-5.1-codex-max",name:"GPT-5.1 Codex Max",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1-codex-mini":{id:"gpt-5.1-codex-mini",name:"GPT-5.1 Codex Mini",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.025,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.2":{id:"gpt-5.2",name:"GPT-5.2",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2 Codex",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.3-codex":{id:"gpt-5.3-codex",name:"GPT-5.3 Codex",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.4-mini":{id:"gpt-5.4-mini",name:"GPT-5.4 Mini",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:.75,output:4.5,cacheRead:.075,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.4-nano":{id:"gpt-5.4-nano",name:"GPT-5.4 Nano",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:.2,output:1.25,cacheRead:.02,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.4-pro":{id:"gpt-5.4-pro",name:"GPT-5.4 Pro",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:30,output:180,cacheRead:30,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.5-pro":{id:"gpt-5.5-pro",name:"GPT-5.5 Pro",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:30,output:180,cacheRead:30,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",minimal:null,low:null}},"gpt-5.6-luna":{id:"gpt-5.6-luna",name:"GPT-5.6 Luna",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:1,output:6,cacheRead:.1,cacheWrite:1.25},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"gpt-5.6-sol":{id:"gpt-5.6-sol",name:"GPT-5.6 Sol",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:6.25},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"gpt-5.6-terra":{id:"gpt-5.6-terra",name:"GPT-5.6 Terra",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:3.125},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"grok-4.5":{id:"grok-4.5",name:"Grok 4.5",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:2,output:6,cacheRead:.5,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:5e5,maxTokens:5e5},"grok-build-0.1":{id:"grok-build-0.1",name:"Grok Build 0.1",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:1,output:2,cacheRead:.2,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens"},contextWindow:256e3,maxTokens:256e3,thinkingLevelMap:{off:null,minimal:null,low:null,medium:null}},"hy3-free":{id:"hy3-free",name:"Hy3 Free",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:19e4,maxTokens:64e3},"kimi-k2.5":{id:"kimi-k2.5",name:"Kimi K2.5",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:.6,output:3,cacheRead:.08,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens",supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:65536},"kimi-k2.6":{id:"kimi-k2.6",name:"Kimi K2.6",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.16,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,thinkingFormat:"deepseek",supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:65536},"kimi-k2.7-code":{id:"kimi-k2.7-code",name:"Kimi K2.7 Code",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.19,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:262144,maxTokens:262144},"mimo-v2.5-free":{id:"mimo-v2.5-free",name:"MiMo V2.5 Free",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:2e5,maxTokens:32e3},"minimax-m2.5":{id:"minimax-m2.5",name:"MiniMax-M2.5",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:204800,maxTokens:131072},"minimax-m2.7":{id:"minimax-m2.7",name:"MiniMax-M2.7",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens",supportsLongCacheRetention:!1},contextWindow:204800,maxTokens:131072},"minimax-m3":{id:"minimax-m3",name:"MiniMax-M3",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:512e3,maxTokens:128e3},"nemotron-3-ultra-free":{id:"nemotron-3-ultra-free",name:"Nemotron 3 Ultra Free",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:1e6,maxTokens:128e3},"north-mini-code-free":{id:"north-mini-code-free",name:"North Mini Code Free",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:256e3,maxTokens:64e3},"qwen3.5-plus":{id:"qwen3.5-plus",name:"Qwen3.5 Plus",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:.2,output:1.2,cacheRead:.02,cacheWrite:.25},contextWindow:262144,maxTokens:65536},"qwen3.6-plus":{id:"qwen3.6-plus",name:"Qwen3.6 Plus",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:.5,output:3,cacheRead:.05,cacheWrite:.625},contextWindow:262144,maxTokens:65536}};var OC=_C;var LC={"deepseek-v4-flash":{id:"deepseek-v4-flash",name:"DeepSeek V4 Flash",api:"openai-completions",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text"],cost:{input:.14,output:.28,cacheRead:.0028,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens",requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},contextWindow:1e6,maxTokens:384e3,thinkingLevelMap:{minimal:null,low:null,medium:null,high:"high",max:"max"}},"deepseek-v4-pro":{id:"deepseek-v4-pro",name:"DeepSeek V4 Pro",api:"openai-completions",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text"],cost:{input:.435,output:.87,cacheRead:.003625,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens",requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},contextWindow:1e6,maxTokens:384e3,thinkingLevelMap:{minimal:null,low:null,medium:null,high:"high",max:"max"}},"glm-5.1":{id:"glm-5.1",name:"GLM-5.1",api:"openai-completions",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text"],cost:{input:1.4,output:4.4,cacheRead:.26,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:202752,maxTokens:32768},"glm-5.2":{id:"glm-5.2",name:"GLM-5.2",api:"openai-completions",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text"],cost:{input:1.4,output:4.4,cacheRead:.26,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:1e6,maxTokens:131072,thinkingLevelMap:{off:null,minimal:null,low:null,medium:null,high:"high",max:"max"}},"grok-4.5":{id:"grok-4.5",name:"Grok 4.5",api:"openai-completions",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text","image"],cost:{input:2,output:6,cacheRead:.5,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:5e5,maxTokens:5e5},"kimi-k2.6":{id:"kimi-k2.6",name:"Kimi K2.6",api:"openai-completions",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.16,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,thinkingFormat:"deepseek",supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:65536,thinkingLevelMap:{minimal:null,low:null,medium:null}},"kimi-k2.7-code":{id:"kimi-k2.7-code",name:"Kimi K2.7 Code",api:"openai-completions",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.19,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:262144,maxTokens:262144},"kimi-k3":{id:"kimi-k3",name:"Kimi K3 (2x usage)",api:"openai-completions",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:1048576,maxTokens:131072},"mimo-v2.5":{id:"mimo-v2.5",name:"MiMo V2.5",api:"openai-completions",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text","image"],cost:{input:.14,output:.28,cacheRead:.0028,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:1e6,maxTokens:128e3},"mimo-v2.5-pro":{id:"mimo-v2.5-pro",name:"MiMo V2.5 Pro",api:"openai-completions",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text"],cost:{input:.435,output:.87,cacheRead:.003625,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:1048576,maxTokens:128e3},"minimax-m2.7":{id:"minimax-m2.7",name:"MiniMax-M2.7",api:"openai-completions",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:204800,maxTokens:131072},"minimax-m3":{id:"minimax-m3",name:"MiniMax-M3",api:"anthropic-messages",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go",reasoning:!0,input:["text","image"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},contextWindow:1e6,maxTokens:131072},"qwen3.6-plus":{id:"qwen3.6-plus",name:"Qwen3.6 Plus",api:"openai-completions",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text","image"],cost:{input:.5,output:3,cacheRead:.05,cacheWrite:.625},compat:{supportsStore:!1,supportsDeveloperRole:!1,thinkingFormat:"qwen",maxTokensField:"max_tokens"},contextWindow:1e6,maxTokens:65536},"qwen3.7-max":{id:"qwen3.7-max",name:"Qwen3.7 Max",api:"anthropic-messages",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go",reasoning:!0,input:["text"],cost:{input:2.5,output:7.5,cacheRead:.5,cacheWrite:3.125},contextWindow:1e6,maxTokens:65536},"qwen3.7-plus":{id:"qwen3.7-plus",name:"Qwen3.7 Plus",api:"anthropic-messages",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go",reasoning:!0,input:["text","image"],cost:{input:.4,output:1.6,cacheRead:.04,cacheWrite:.5},contextWindow:1e6,maxTokens:65536}};var WC=LC;var FC={"ai21/jamba-large-1.7":{id:"ai21/jamba-large-1.7",name:"AI21: Jamba Large 1.7",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:2,output:8,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"aion-labs/aion-2.0":{id:"aion-labs/aion-2.0",name:"AionLabs: Aion-2.0",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.8,output:1.6,cacheRead:.2,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"aion-labs/aion-3.0":{id:"aion-labs/aion-3.0",name:"AionLabs: Aion-3.0",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:3,output:6,cacheRead:.75,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"aion-labs/aion-3.0-mini":{id:"aion-labs/aion-3.0-mini",name:"AionLabs: Aion-3.0-Mini",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.7,output:1.4,cacheRead:.18,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"amazon/nova-2-lite-v1":{id:"amazon/nova-2-lite-v1",name:"Amazon: Nova 2 Lite",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.3,output:2.5,cacheRead:0,cacheWrite:0},contextWindow:1e6,maxTokens:65535,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"amazon/nova-lite-v1":{id:"amazon/nova-lite-v1",name:"Amazon: Nova Lite 1.0",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.06,output:.24,cacheRead:0,cacheWrite:0},contextWindow:3e5,maxTokens:5120,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"amazon/nova-micro-v1":{id:"amazon/nova-micro-v1",name:"Amazon: Nova Micro 1.0",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.035,output:.14,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:5120,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"amazon/nova-premier-v1":{id:"amazon/nova-premier-v1",name:"Amazon: Nova Premier 1.0",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:2.5,output:12.5,cacheRead:.625,cacheWrite:0},contextWindow:1e6,maxTokens:32e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"amazon/nova-pro-v1":{id:"amazon/nova-pro-v1",name:"Amazon: Nova Pro 1.0",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.8,output:3.2,cacheRead:0,cacheWrite:0},contextWindow:3e5,maxTokens:5120,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"anthropic/claude-3-haiku":{id:"anthropic/claude-3-haiku",name:"Anthropic: Claude 3 Haiku",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.25,output:1.25,cacheRead:.03,cacheWrite:.3},contextWindow:2e5,maxTokens:4096,compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-fable-5":{id:"anthropic/claude-fable-5",name:"Anthropic: Claude Fable 5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-haiku-4.5":{id:"anthropic/claude-haiku-4.5",name:"Anthropic: Claude Haiku 4.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3,compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-opus-4":{id:"anthropic/claude-opus-4",name:"Anthropic: Claude Opus 4",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:32e3,compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-opus-4.1":{id:"anthropic/claude-opus-4.1",name:"Anthropic: Claude Opus 4.1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:32e3,compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-opus-4.5":{id:"anthropic/claude-opus-4.5",name:"Anthropic: Claude Opus 4.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:2e5,maxTokens:64e3,compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-opus-4.6":{id:"anthropic/claude-opus-4.6",name:"Anthropic: Claude Opus 4.6",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"},compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-opus-4.7":{id:"anthropic/claude-opus-4.7",name:"Anthropic: Claude Opus 4.7",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-opus-4.7-fast":{id:"anthropic/claude-opus-4.7-fast",name:"Anthropic: Claude Opus 4.7 (Fast)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:30,output:150,cacheRead:3,cacheWrite:37.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-opus-4.8":{id:"anthropic/claude-opus-4.8",name:"Anthropic: Claude Opus 4.8",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-opus-4.8-fast":{id:"anthropic/claude-opus-4.8-fast",name:"Anthropic: Claude Opus 4.8 (Fast)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-sonnet-4":{id:"anthropic/claude-sonnet-4",name:"Anthropic: Claude Sonnet 4",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3,compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-sonnet-4.5":{id:"anthropic/claude-sonnet-4.5",name:"Anthropic: Claude Sonnet 4.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:64e3,compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-sonnet-4.6":{id:"anthropic/claude-sonnet-4.6",name:"Anthropic: Claude Sonnet 4.6",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"},compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-sonnet-5":{id:"anthropic/claude-sonnet-5",name:"Anthropic: Claude Sonnet 5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"arcee-ai/trinity-large-thinking":{id:"arcee-ai/trinity-large-thinking",name:"Arcee AI: Trinity Large Thinking",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.25,output:.8,cacheRead:.06,cacheWrite:0},contextWindow:262144,maxTokens:8e4,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"arcee-ai/virtuoso-large":{id:"arcee-ai/virtuoso-large",name:"Arcee AI: Virtuoso Large",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.75,output:1.2,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:64e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},auto:{id:"auto",name:"Auto",api:"openai-completions",provider:"openrouter",baseUrl:"https://openrouter.ai/api/v1",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:2e6,maxTokens:3e4,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"bytedance-seed/seed-1.6":{id:"bytedance-seed/seed-1.6",name:"ByteDance Seed: Seed 1.6",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"bytedance-seed/seed-1.6-flash":{id:"bytedance-seed/seed-1.6-flash",name:"ByteDance Seed: Seed 1.6 Flash",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.075,output:.3,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"bytedance-seed/seed-2.0-lite":{id:"bytedance-seed/seed-2.0-lite",name:"ByteDance Seed: Seed-2.0-Lite",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"bytedance-seed/seed-2.0-mini":{id:"bytedance-seed/seed-2.0-mini",name:"ByteDance Seed: Seed-2.0-Mini",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.1,output:.4,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"cohere/command-r-08-2024":{id:"cohere/command-r-08-2024",name:"Cohere: Command R (08-2024)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.15,output:.6,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"cohere/command-r-plus-08-2024":{id:"cohere/command-r-plus-08-2024",name:"Cohere: Command R+ (08-2024)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:2.5,output:10,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"cohere/north-mini-code:free":{id:"cohere/north-mini-code:free",name:"Cohere: North Mini Code (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:64e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"deepseek/deepseek-chat":{id:"deepseek/deepseek-chat",name:"DeepSeek: DeepSeek V3",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.2002,output:.8001,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"deepseek/deepseek-chat-v3-0324":{id:"deepseek/deepseek-chat-v3-0324",name:"DeepSeek: DeepSeek V3 0324",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.27,output:1.12,cacheRead:.135,cacheWrite:0},contextWindow:163840,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"deepseek/deepseek-chat-v3.1":{id:"deepseek/deepseek-chat-v3.1",name:"DeepSeek: DeepSeek V3.1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.25,output:.95,cacheRead:.13,cacheWrite:0},contextWindow:163840,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"deepseek/deepseek-r1":{id:"deepseek/deepseek-r1",name:"DeepSeek: R1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.7,output:2.5,cacheRead:0,cacheWrite:0},contextWindow:64e3,maxTokens:16e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"deepseek/deepseek-r1-0528":{id:"deepseek/deepseek-r1-0528",name:"DeepSeek: R1 0528",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.5,output:2.15,cacheRead:.35,cacheWrite:0},contextWindow:163840,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"deepseek/deepseek-v3.1-terminus":{id:"deepseek/deepseek-v3.1-terminus",name:"DeepSeek: DeepSeek V3.1 Terminus",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.27,output:1,cacheRead:.135,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"deepseek/deepseek-v3.2":{id:"deepseek/deepseek-v3.2",name:"DeepSeek: DeepSeek V3.2",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.269,output:.4,cacheRead:.1345,cacheWrite:0},contextWindow:163840,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"deepseek/deepseek-v3.2-exp":{id:"deepseek/deepseek-v3.2-exp",name:"DeepSeek: DeepSeek V3.2 Exp",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.27,output:.41,cacheRead:0,cacheWrite:0},contextWindow:163840,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"deepseek/deepseek-v4-flash":{id:"deepseek/deepseek-v4-flash",name:"DeepSeek: DeepSeek V4 Flash",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.098,output:.196,cacheRead:.0196,cacheWrite:0},contextWindow:1048575,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter",requiresReasoningContentOnAssistantMessages:!0},thinkingLevelMap:{minimal:null,low:null,medium:null,high:"high",max:null,xhigh:"xhigh"}},"deepseek/deepseek-v4-pro":{id:"deepseek/deepseek-v4-pro",name:"DeepSeek: DeepSeek V4 Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.435,output:.87,cacheRead:.003625,cacheWrite:0},contextWindow:1048576,maxTokens:384e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter",requiresReasoningContentOnAssistantMessages:!0},thinkingLevelMap:{minimal:null,low:null,medium:null,high:"high",max:null,xhigh:"xhigh"}},"google/gemini-2.5-flash":{id:"google/gemini-2.5-flash",name:"Google: Gemini 2.5 Flash",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.3,output:2.5,cacheRead:.03,cacheWrite:.083333},contextWindow:1048576,maxTokens:65535,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemini-2.5-flash-lite":{id:"google/gemini-2.5-flash-lite",name:"Google: Gemini 2.5 Flash Lite",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.1,output:.4,cacheRead:.01,cacheWrite:.083333},contextWindow:1048576,maxTokens:65535,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemini-2.5-pro":{id:"google/gemini-2.5-pro",name:"Google: Gemini 2.5 Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:.375},contextWindow:1048576,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemini-2.5-pro-preview":{id:"google/gemini-2.5-pro-preview",name:"Google: Gemini 2.5 Pro Preview 06-05",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:.375},contextWindow:1048576,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemini-2.5-pro-preview-05-06":{id:"google/gemini-2.5-pro-preview-05-06",name:"Google: Gemini 2.5 Pro Preview 05-06",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:.375},contextWindow:1048576,maxTokens:65535,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemini-3-flash-preview":{id:"google/gemini-3-flash-preview",name:"Google: Gemini 3 Flash Preview",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.5,output:3,cacheRead:.05,cacheWrite:.083333},contextWindow:1048576,maxTokens:65535,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemini-3-pro-image":{id:"google/gemini-3-pro-image",name:"Google: Nano Banana Pro (Gemini 3 Pro Image)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:.375},contextWindow:65536,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemini-3.1-flash-lite":{id:"google/gemini-3.1-flash-lite",name:"Google: Gemini 3.1 Flash Lite",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.25,output:1.5,cacheRead:.025,cacheWrite:.083333},contextWindow:1048576,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemini-3.1-flash-lite-preview":{id:"google/gemini-3.1-flash-lite-preview",name:"Google: Gemini 3.1 Flash Lite Preview",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.25,output:1.5,cacheRead:.025,cacheWrite:.083333},contextWindow:1048576,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemini-3.1-pro-preview":{id:"google/gemini-3.1-pro-preview",name:"Google: Gemini 3.1 Pro Preview",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:.375},contextWindow:1048576,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemini-3.1-pro-preview-customtools":{id:"google/gemini-3.1-pro-preview-customtools",name:"Google: Gemini 3.1 Pro Preview Custom Tools",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:.375},contextWindow:1048576,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemini-3.5-flash":{id:"google/gemini-3.5-flash",name:"Google: Gemini 3.5 Flash",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.5,output:9,cacheRead:.15,cacheWrite:.083333},contextWindow:1048576,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemma-3-12b-it":{id:"google/gemma-3-12b-it",name:"Google: Gemma 3 12B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.05,output:.15,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemma-3-27b-it":{id:"google/gemma-3-27b-it",name:"Google: Gemma 3 27B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.1,output:.3,cacheRead:0,cacheWrite:0},contextWindow:11e4,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemma-4-26b-a4b-it":{id:"google/gemma-4-26b-a4b-it",name:"Google: Gemma 4 26B A4B ",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.1,output:.3,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:256e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemma-4-26b-a4b-it:free":{id:"google/gemma-4-26b-a4b-it:free",name:"Google: Gemma 4 26B A4B (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemma-4-31b-it":{id:"google/gemma-4-31b-it",name:"Google: Gemma 4 31B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.12,output:.37,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemma-4-31b-it:free":{id:"google/gemma-4-31b-it:free",name:"Google: Gemma 4 31B (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"ibm-granite/granite-4.1-8b":{id:"ibm-granite/granite-4.1-8b",name:"IBM: Granite 4.1 8B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.05,output:.1,cacheRead:.05,cacheWrite:0},contextWindow:131072,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"inception/mercury-2":{id:"inception/mercury-2",name:"Inception: Mercury 2",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.25,output:.75,cacheRead:.025,cacheWrite:0},contextWindow:128e3,maxTokens:5e4,thinkingLevelMap:{off:null},compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"inclusionai/ling-2.6-1t":{id:"inclusionai/ling-2.6-1t",name:"inclusionAI: Ling-2.6-1T",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.075,output:.625,cacheRead:.015,cacheWrite:0},contextWindow:262144,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"inclusionai/ling-2.6-flash":{id:"inclusionai/ling-2.6-flash",name:"inclusionAI: Ling-2.6-flash",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.01,output:.03,cacheRead:.002,cacheWrite:0},contextWindow:262144,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"inclusionai/ring-2.6-1t":{id:"inclusionai/ring-2.6-1t",name:"inclusionAI: Ring-2.6-1T",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.075,output:.625,cacheRead:.015,cacheWrite:0},contextWindow:262144,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"kwaipilot/kat-coder-air-v2.5":{id:"kwaipilot/kat-coder-air-v2.5",name:"Kwaipilot: KAT-Coder-Air V2.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.15,output:.6,cacheRead:.03,cacheWrite:0},contextWindow:256e3,maxTokens:8e4,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"kwaipilot/kat-coder-pro-v2":{id:"kwaipilot/kat-coder-pro-v2",name:"Kwaipilot: KAT-Coder-Pro V2",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},contextWindow:256e3,maxTokens:8e4,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"kwaipilot/kat-coder-pro-v2.5":{id:"kwaipilot/kat-coder-pro-v2.5",name:"Kwaipilot: KAT-Coder-Pro V2.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.74,output:2.96,cacheRead:.15,cacheWrite:0},contextWindow:256e3,maxTokens:8e4,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"meta-llama/llama-3.1-70b-instruct":{id:"meta-llama/llama-3.1-70b-instruct",name:"Meta: Llama 3.1 70B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.4,output:.4,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"meta-llama/llama-3.1-8b-instruct":{id:"meta-llama/llama-3.1-8b-instruct",name:"Meta: Llama 3.1 8B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.05,output:.08,cacheRead:.025,cacheWrite:0},contextWindow:131072,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"meta-llama/llama-3.3-70b-instruct":{id:"meta-llama/llama-3.3-70b-instruct",name:"Meta: Llama 3.3 70B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.13,output:.4,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:128e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"meta-llama/llama-3.3-70b-instruct:free":{id:"meta-llama/llama-3.3-70b-instruct:free",name:"Meta: Llama 3.3 70B Instruct (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:65536,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"meta-llama/llama-4-maverick":{id:"meta-llama/llama-4-maverick",name:"Meta: Llama 4 Maverick",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.2,output:.8,cacheRead:0,cacheWrite:0},contextWindow:1048576,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"meta-llama/llama-4-scout":{id:"meta-llama/llama-4-scout",name:"Meta: Llama 4 Scout",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.1,output:.3,cacheRead:0,cacheWrite:0},contextWindow:327680,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"meta/muse-spark-1.1":{id:"meta/muse-spark-1.1",name:"Meta: Muse Spark 1.1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.25,output:4.25,cacheRead:.15,cacheWrite:0},contextWindow:1048576,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"minimax/minimax-m1":{id:"minimax/minimax-m1",name:"MiniMax: MiniMax M1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.55,output:2.2,cacheRead:0,cacheWrite:0},contextWindow:1e6,maxTokens:4e4,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"minimax/minimax-m2":{id:"minimax/minimax-m2",name:"MiniMax: MiniMax M2",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.255,output:1.02,cacheRead:0,cacheWrite:0},contextWindow:204800,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"minimax/minimax-m2.1":{id:"minimax/minimax-m2.1",name:"MiniMax: MiniMax M2.1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.03,cacheWrite:0},contextWindow:204800,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"minimax/minimax-m2.5":{id:"minimax/minimax-m2.5",name:"MiniMax: MiniMax M2.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.15,output:.9,cacheRead:.05,cacheWrite:0},contextWindow:196608,maxTokens:196608,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"minimax/minimax-m2.7":{id:"minimax/minimax-m2.7",name:"MiniMax: MiniMax M2.7",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.25,output:1,cacheRead:.05,cacheWrite:0},contextWindow:196608,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"minimax/minimax-m3":{id:"minimax/minimax-m3",name:"MiniMax: MiniMax M3",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},contextWindow:524288,maxTokens:512e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/codestral-2508":{id:"mistralai/codestral-2508",name:"Mistral: Codestral 2508",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.3,output:.9,cacheRead:.03,cacheWrite:0},contextWindow:256e3,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/devstral-2512":{id:"mistralai/devstral-2512",name:"Mistral: Devstral 2 2512",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.4,output:2,cacheRead:.04,cacheWrite:0},contextWindow:262144,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/ministral-14b-2512":{id:"mistralai/ministral-14b-2512",name:"Mistral: Ministral 3 14B 2512",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.2,output:.2,cacheRead:.02,cacheWrite:0},contextWindow:262144,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/ministral-3b-2512":{id:"mistralai/ministral-3b-2512",name:"Mistral: Ministral 3 3B 2512",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.1,output:.1,cacheRead:.01,cacheWrite:0},contextWindow:131072,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/ministral-8b-2512":{id:"mistralai/ministral-8b-2512",name:"Mistral: Ministral 3 8B 2512",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.15,output:.15,cacheRead:.015,cacheWrite:0},contextWindow:262144,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/mistral-large":{id:"mistralai/mistral-large",name:"Mistral Large",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:2,output:6,cacheRead:.2,cacheWrite:0},contextWindow:128e3,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/mistral-large-2407":{id:"mistralai/mistral-large-2407",name:"Mistral Large 2407",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:2,output:6,cacheRead:.2,cacheWrite:0},contextWindow:131072,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/mistral-large-2512":{id:"mistralai/mistral-large-2512",name:"Mistral: Mistral Large 3 2512",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.5,output:1.5,cacheRead:.05,cacheWrite:0},contextWindow:262144,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/mistral-medium-3":{id:"mistralai/mistral-medium-3",name:"Mistral: Mistral Medium 3",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.4,output:2,cacheRead:.04,cacheWrite:0},contextWindow:131072,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/mistral-medium-3-5":{id:"mistralai/mistral-medium-3-5",name:"Mistral: Mistral Medium 3.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.5,output:7.5,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/mistral-medium-3.1":{id:"mistralai/mistral-medium-3.1",name:"Mistral: Mistral Medium 3.1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.4,output:2,cacheRead:.04,cacheWrite:0},contextWindow:131072,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/mistral-nemo":{id:"mistralai/mistral-nemo",name:"Mistral: Mistral Nemo",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.019,output:.03,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/mistral-saba":{id:"mistralai/mistral-saba",name:"Mistral: Saba",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.2,output:.6,cacheRead:.02,cacheWrite:0},contextWindow:32768,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/mistral-small-2603":{id:"mistralai/mistral-small-2603",name:"Mistral: Mistral Small 4",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.15,output:.6,cacheRead:.015,cacheWrite:0},contextWindow:262144,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/mistral-small-3.2-24b-instruct":{id:"mistralai/mistral-small-3.2-24b-instruct",name:"Mistral: Mistral Small 3.2 24B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.1,output:.3,cacheRead:.01,cacheWrite:0},contextWindow:131072,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/mixtral-8x22b-instruct":{id:"mistralai/mixtral-8x22b-instruct",name:"Mistral: Mixtral 8x22B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:2,output:6,cacheRead:.2,cacheWrite:0},contextWindow:65536,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/voxtral-small-24b-2507":{id:"mistralai/voxtral-small-24b-2507",name:"Mistral: Voxtral Small 24B 2507",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.1,output:.3,cacheRead:.01,cacheWrite:0},contextWindow:32e3,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"moonshotai/kimi-k2":{id:"moonshotai/kimi-k2",name:"MoonshotAI: Kimi K2 0711",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.57,output:2.3,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:100352,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"moonshotai/kimi-k2-0905":{id:"moonshotai/kimi-k2-0905",name:"MoonshotAI: Kimi K2 0905",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.6,output:2.5,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:100352,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"moonshotai/kimi-k2-thinking":{id:"moonshotai/kimi-k2-thinking",name:"MoonshotAI: Kimi K2 Thinking",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.6,output:2.5,cacheRead:.15,cacheWrite:0},contextWindow:262144,maxTokens:100352,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"moonshotai/kimi-k2.5":{id:"moonshotai/kimi-k2.5",name:"MoonshotAI: Kimi K2.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.41,output:2.06,cacheRead:.07,cacheWrite:0},contextWindow:262144,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"moonshotai/kimi-k2.6":{id:"moonshotai/kimi-k2.6",name:"MoonshotAI: Kimi K2.6",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.16,cacheWrite:0},contextWindow:262144,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter",requiresReasoningContentOnAssistantMessages:!0}},"moonshotai/kimi-k2.7-code":{id:"moonshotai/kimi-k2.7-code",name:"MoonshotAI: Kimi K2.7 Code",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1,output:4.4,cacheRead:.2,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"moonshotai/kimi-k3":{id:"moonshotai/kimi-k3",name:"MoonshotAI: Kimi K3",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:0},contextWindow:1048576,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"nex-agi/nex-n2-mini":{id:"nex-agi/nex-n2-mini",name:"Nex AGI: Nex-N2-Mini",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.025,output:.1,cacheRead:.0025,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"nex-agi/nex-n2-pro":{id:"nex-agi/nex-n2-pro",name:"Nex AGI: Nex-N2-Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.25,output:1,cacheRead:.025,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"nvidia/nemotron-3-nano-30b-a3b":{id:"nvidia/nemotron-3-nano-30b-a3b",name:"NVIDIA: Nemotron 3 Nano 30B A3B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.05,output:.2,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:228e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"nvidia/nemotron-3-nano-30b-a3b:free":{id:"nvidia/nemotron-3-nano-30b-a3b:free",name:"NVIDIA: Nemotron 3 Nano 30B A3B (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free":{id:"nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free",name:"NVIDIA: Nemotron 3 Nano Omni (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"nvidia/nemotron-3-super-120b-a12b":{id:"nvidia/nemotron-3-super-120b-a12b",name:"NVIDIA: Nemotron 3 Super",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.21,output:.455,cacheRead:.06,cacheWrite:0},contextWindow:1e6,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"nvidia/nemotron-3-super-120b-a12b:free":{id:"nvidia/nemotron-3-super-120b-a12b:free",name:"NVIDIA: Nemotron 3 Super (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"nvidia/nemotron-3-ultra-550b-a55b":{id:"nvidia/nemotron-3-ultra-550b-a55b",name:"NVIDIA: Nemotron 3 Ultra",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.6,output:3.6,cacheRead:.2,cacheWrite:0},contextWindow:512288,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"nvidia/nemotron-3-ultra-550b-a55b:free":{id:"nvidia/nemotron-3-ultra-550b-a55b:free",name:"NVIDIA: Nemotron 3 Ultra (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:1e6,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"nvidia/nemotron-nano-12b-v2-vl:free":{id:"nvidia/nemotron-nano-12b-v2-vl:free",name:"NVIDIA: Nemotron Nano 12B 2 VL (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:128e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"nvidia/nemotron-nano-9b-v2:free":{id:"nvidia/nemotron-nano-9b-v2:free",name:"NVIDIA: Nemotron Nano 9B V2 (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"openai/gpt-3.5-turbo":{id:"openai/gpt-3.5-turbo",name:"OpenAI: GPT-3.5 Turbo",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.5,output:1.5,cacheRead:0,cacheWrite:0},contextWindow:16385,maxTokens:4096,compat:{thinkingFormat:"openrouter"}},"openai/gpt-3.5-turbo-0613":{id:"openai/gpt-3.5-turbo-0613",name:"OpenAI: GPT-3.5 Turbo (older v0613)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:1,output:2,cacheRead:0,cacheWrite:0},contextWindow:4095,maxTokens:4096,compat:{thinkingFormat:"openrouter"}},"openai/gpt-3.5-turbo-16k":{id:"openai/gpt-3.5-turbo-16k",name:"OpenAI: GPT-3.5 Turbo 16k",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:3,output:4,cacheRead:0,cacheWrite:0},contextWindow:16385,maxTokens:4096,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4":{id:"openai/gpt-4",name:"OpenAI: GPT-4",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:30,output:60,cacheRead:0,cacheWrite:0},contextWindow:8191,maxTokens:4096,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4-turbo":{id:"openai/gpt-4-turbo",name:"OpenAI: GPT-4 Turbo",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:10,output:30,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4-turbo-preview":{id:"openai/gpt-4-turbo-preview",name:"OpenAI: GPT-4 Turbo Preview",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:10,output:30,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4.1":{id:"openai/gpt-4.1",name:"OpenAI: GPT-4.1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:1047576,maxTokens:32768,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4.1-mini":{id:"openai/gpt-4.1-mini",name:"OpenAI: GPT-4.1 Mini",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.4,output:1.6,cacheRead:.1,cacheWrite:0},contextWindow:1047576,maxTokens:32768,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4.1-nano":{id:"openai/gpt-4.1-nano",name:"OpenAI: GPT-4.1 Nano",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.1,output:.4,cacheRead:.025,cacheWrite:0},contextWindow:1047576,maxTokens:32768,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4o":{id:"openai/gpt-4o",name:"OpenAI: GPT-4o",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128e3,maxTokens:16384,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4o-2024-05-13":{id:"openai/gpt-4o-2024-05-13",name:"OpenAI: GPT-4o (2024-05-13)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:5,output:15,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4o-2024-08-06":{id:"openai/gpt-4o-2024-08-06",name:"OpenAI: GPT-4o (2024-08-06)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128e3,maxTokens:16384,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4o-2024-11-20":{id:"openai/gpt-4o-2024-11-20",name:"OpenAI: GPT-4o (2024-11-20)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128e3,maxTokens:16384,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4o-mini":{id:"openai/gpt-4o-mini",name:"OpenAI: GPT-4o-mini",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.15,output:.6,cacheRead:.075,cacheWrite:0},contextWindow:128e3,maxTokens:16384,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4o-mini-2024-07-18":{id:"openai/gpt-4o-mini-2024-07-18",name:"OpenAI: GPT-4o-mini (2024-07-18)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.15,output:.6,cacheRead:.075,cacheWrite:0},contextWindow:128e3,maxTokens:16384,compat:{thinkingFormat:"openrouter"}},"openai/gpt-5":{id:"openai/gpt-5",name:"OpenAI: GPT-5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,compat:{thinkingFormat:"openrouter"}},"openai/gpt-5-codex":{id:"openai/gpt-5-codex",name:"OpenAI: GPT-5 Codex",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,compat:{thinkingFormat:"openrouter"}},"openai/gpt-5-mini":{id:"openai/gpt-5-mini",name:"OpenAI: GPT-5 Mini",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.025,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,compat:{thinkingFormat:"openrouter"}},"openai/gpt-5-nano":{id:"openai/gpt-5-nano",name:"OpenAI: GPT-5 Nano",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.05,output:.4,cacheRead:.005,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,compat:{thinkingFormat:"openrouter"}},"openai/gpt-5-pro":{id:"openai/gpt-5-pro",name:"OpenAI: GPT-5 Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:15,output:120,cacheRead:0,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.1":{id:"openai/gpt-5.1",name:"OpenAI: GPT-5.1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.1-chat":{id:"openai/gpt-5.1-chat",name:"OpenAI: GPT-5.1 Chat",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:128e3,maxTokens:16384,compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.1-codex":{id:"openai/gpt-5.1-codex",name:"OpenAI: GPT-5.1-Codex",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.1-codex-max":{id:"openai/gpt-5.1-codex-max",name:"OpenAI: GPT-5.1-Codex-Max",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.1-codex-mini":{id:"openai/gpt-5.1-codex-mini",name:"OpenAI: GPT-5.1-Codex-Mini",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.025,cacheWrite:0},contextWindow:4e5,maxTokens:1e5,compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.2":{id:"openai/gpt-5.2",name:"OpenAI: GPT-5.2",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.2-chat":{id:"openai/gpt-5.2-chat",name:"OpenAI: GPT-5.2 Chat",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{xhigh:"xhigh"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.2-codex":{id:"openai/gpt-5.2-codex",name:"OpenAI: GPT-5.2-Codex",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.2-pro":{id:"openai/gpt-5.2-pro",name:"OpenAI: GPT-5.2 Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:21,output:168,cacheRead:0,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.3-chat":{id:"openai/gpt-5.3-chat",name:"OpenAI: GPT-5.3 Chat",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{xhigh:"xhigh"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.3-codex":{id:"openai/gpt-5.3-codex",name:"OpenAI: GPT-5.3-Codex",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.4":{id:"openai/gpt-5.4",name:"OpenAI: GPT-5.4",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.4-mini":{id:"openai/gpt-5.4-mini",name:"OpenAI: GPT-5.4 Mini",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.75,output:4.5,cacheRead:.075,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.4-nano":{id:"openai/gpt-5.4-nano",name:"OpenAI: GPT-5.4 Nano",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.2,output:1.25,cacheRead:.02,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.4-pro":{id:"openai/gpt-5.4-pro",name:"OpenAI: GPT-5.4 Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:30,output:180,cacheRead:0,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.5":{id:"openai/gpt-5.5",name:"OpenAI: GPT-5.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.5-pro":{id:"openai/gpt-5.5-pro",name:"OpenAI: GPT-5.5 Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:30,output:180,cacheRead:0,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",off:null,minimal:null,low:null},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.6-luna":{id:"openai/gpt-5.6-luna",name:"OpenAI: GPT-5.6 Luna",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1,output:6,cacheRead:.1,cacheWrite:1.25},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.6-luna-pro":{id:"openai/gpt-5.6-luna-pro",name:"OpenAI: GPT-5.6 Luna Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1,output:6,cacheRead:.1,cacheWrite:1.25},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.6-sol":{id:"openai/gpt-5.6-sol",name:"OpenAI: GPT-5.6 Sol",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:6.25},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.6-sol-pro":{id:"openai/gpt-5.6-sol-pro",name:"OpenAI: GPT-5.6 Sol Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:6.25},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.6-terra":{id:"openai/gpt-5.6-terra",name:"OpenAI: GPT-5.6 Terra",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:3.125},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.6-terra-pro":{id:"openai/gpt-5.6-terra-pro",name:"OpenAI: GPT-5.6 Terra Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:3.125},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-audio":{id:"openai/gpt-audio",name:"OpenAI: GPT Audio",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:2.5,output:10,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16384,compat:{thinkingFormat:"openrouter"}},"openai/gpt-audio-mini":{id:"openai/gpt-audio-mini",name:"OpenAI: GPT Audio Mini",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.6,output:2.4,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16384,compat:{thinkingFormat:"openrouter"}},"openai/gpt-chat-latest":{id:"openai/gpt-chat-latest",name:"OpenAI: GPT Chat Latest",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,compat:{thinkingFormat:"openrouter"}},"openai/gpt-oss-120b":{id:"openai/gpt-oss-120b",name:"OpenAI: gpt-oss-120b",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.037,output:.17,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:131072,compat:{thinkingFormat:"openrouter"}},"openai/gpt-oss-20b":{id:"openai/gpt-oss-20b",name:"OpenAI: gpt-oss-20b",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.03,output:.13,cacheRead:.03,cacheWrite:0},contextWindow:131072,maxTokens:131072,compat:{thinkingFormat:"openrouter"}},"openai/gpt-oss-20b:free":{id:"openai/gpt-oss-20b:free",name:"OpenAI: gpt-oss-20b (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{thinkingFormat:"openrouter"}},"openai/gpt-oss-safeguard-20b":{id:"openai/gpt-oss-safeguard-20b",name:"OpenAI: gpt-oss-safeguard-20b",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.075,output:.3,cacheRead:.0375,cacheWrite:0},contextWindow:131072,maxTokens:65536,compat:{thinkingFormat:"openrouter"}},"openai/o1":{id:"openai/o1",name:"OpenAI: o1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:15,output:60,cacheRead:7.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,compat:{thinkingFormat:"openrouter"}},"openai/o3":{id:"openai/o3",name:"OpenAI: o3",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,compat:{thinkingFormat:"openrouter"}},"openai/o3-deep-research":{id:"openai/o3-deep-research",name:"OpenAI: o3 Deep Research",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:10,output:40,cacheRead:2.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,compat:{thinkingFormat:"openrouter"}},"openai/o3-mini":{id:"openai/o3-mini",name:"OpenAI: o3 Mini",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:1.1,output:4.4,cacheRead:.55,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,compat:{thinkingFormat:"openrouter"}},"openai/o3-mini-high":{id:"openai/o3-mini-high",name:"OpenAI: o3 Mini High",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:1.1,output:4.4,cacheRead:.55,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,compat:{thinkingFormat:"openrouter"}},"openai/o3-pro":{id:"openai/o3-pro",name:"OpenAI: o3 Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:20,output:80,cacheRead:0,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,compat:{thinkingFormat:"openrouter"}},"openai/o4-mini":{id:"openai/o4-mini",name:"OpenAI: o4 Mini",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.1,output:4.4,cacheRead:.275,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,compat:{thinkingFormat:"openrouter"}},"openai/o4-mini-deep-research":{id:"openai/o4-mini-deep-research",name:"OpenAI: o4 Mini Deep Research",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,compat:{thinkingFormat:"openrouter"}},"openai/o4-mini-high":{id:"openai/o4-mini-high",name:"OpenAI: o4 Mini High",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.1,output:4.4,cacheRead:.275,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,compat:{thinkingFormat:"openrouter"}},"openrouter/auto":{id:"openrouter/auto",name:"Auto Router",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:-1e6,output:-1e6,cacheRead:0,cacheWrite:0},contextWindow:2e6,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"openrouter/auto-beta":{id:"openrouter/auto-beta",name:"Auto Router (Beta)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:-1e6,output:-1e6,cacheRead:0,cacheWrite:0},contextWindow:2e6,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"openrouter/free":{id:"openrouter/free",name:"Free Models Router",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:2e5,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"openrouter/fusion":{id:"openrouter/fusion",name:"OpenRouter: Fusion",api:"openai-completions",provider:"openrouter",baseUrl:"https://openrouter.ai/api/v1",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:1e6,maxTokens:3e4,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"poolside/laguna-m.1":{id:"poolside/laguna-m.1",name:"Poolside: Laguna M.1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.2,output:.4,cacheRead:.1,cacheWrite:0},contextWindow:262144,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"poolside/laguna-m.1:free":{id:"poolside/laguna-m.1:free",name:"Poolside: Laguna M.1 (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"poolside/laguna-xs-2.1":{id:"poolside/laguna-xs-2.1",name:"Poolside: Laguna XS 2.1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.06,output:.12,cacheRead:.03,cacheWrite:0},contextWindow:262144,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"poolside/laguna-xs-2.1:free":{id:"poolside/laguna-xs-2.1:free",name:"Poolside: Laguna XS 2.1 (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen-2.5-72b-instruct":{id:"qwen/qwen-2.5-72b-instruct",name:"Qwen2.5 72B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.36,output:.4,cacheRead:0,cacheWrite:0},contextWindow:32768,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen-2.5-7b-instruct":{id:"qwen/qwen-2.5-7b-instruct",name:"Qwen: Qwen2.5 7B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.04,output:.1,cacheRead:0,cacheWrite:0},contextWindow:32768,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen-plus":{id:"qwen/qwen-plus",name:"Qwen: Qwen-Plus",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.26,output:.78,cacheRead:.052,cacheWrite:.325},contextWindow:1e6,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen-plus-2025-07-28":{id:"qwen/qwen-plus-2025-07-28",name:"Qwen: Qwen Plus 0728",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.26,output:.78,cacheRead:0,cacheWrite:0},contextWindow:1e6,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen-plus-2025-07-28:thinking":{id:"qwen/qwen-plus-2025-07-28:thinking",name:"Qwen: Qwen Plus 0728 (thinking)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.26,output:.78,cacheRead:0,cacheWrite:.325},contextWindow:1e6,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-14b":{id:"qwen/qwen3-14b",name:"Qwen: Qwen3 14B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.2275,output:.91,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:8192,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-235b-a22b":{id:"qwen/qwen3-235b-a22b",name:"Qwen: Qwen3 235B A22B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.455,output:1.82,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:8192,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-235b-a22b-2507":{id:"qwen/qwen3-235b-a22b-2507",name:"Qwen: Qwen3 235B A22B Instruct 2507",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.09,output:.55,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-235b-a22b-thinking-2507":{id:"qwen/qwen3-235b-a22b-thinking-2507",name:"Qwen: Qwen3 235B A22B Thinking 2507",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.1495,output:1.495,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-30b-a3b":{id:"qwen/qwen3-30b-a3b",name:"Qwen: Qwen3 30B A3B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.13,output:.52,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:8192,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-30b-a3b-instruct-2507":{id:"qwen/qwen3-30b-a3b-instruct-2507",name:"Qwen: Qwen3 30B A3B Instruct 2507",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.1,output:.3,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-30b-a3b-thinking-2507":{id:"qwen/qwen3-30b-a3b-thinking-2507",name:"Qwen: Qwen3 30B A3B Thinking 2507",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.13,output:1.56,cacheRead:0,cacheWrite:0},contextWindow:81920,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-32b":{id:"qwen/qwen3-32b",name:"Qwen: Qwen3 32B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.08,output:.28,cacheRead:0,cacheWrite:0},contextWindow:40960,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-8b":{id:"qwen/qwen3-8b",name:"Qwen: Qwen3 8B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.117,output:.455,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:8192,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-coder":{id:"qwen/qwen3-coder",name:"Qwen: Qwen3 Coder 480B A35B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.3,output:1,cacheRead:.1,cacheWrite:0},contextWindow:262144,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-coder-30b-a3b-instruct":{id:"qwen/qwen3-coder-30b-a3b-instruct",name:"Qwen: Qwen3 Coder 30B A3B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.07,output:.27,cacheRead:0,cacheWrite:0},contextWindow:16e4,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-coder-flash":{id:"qwen/qwen3-coder-flash",name:"Qwen: Qwen3 Coder Flash",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.195,output:.975,cacheRead:.039,cacheWrite:.24375},contextWindow:1e6,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-coder-next":{id:"qwen/qwen3-coder-next",name:"Qwen: Qwen3 Coder Next",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.11,output:.8,cacheRead:.07,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-coder-plus":{id:"qwen/qwen3-coder-plus",name:"Qwen: Qwen3 Coder Plus",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.65,output:3.25,cacheRead:.13,cacheWrite:.8125},contextWindow:1e6,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-coder:free":{id:"qwen/qwen3-coder:free",name:"Qwen: Qwen3 Coder 480B A35B (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:262e3,maxTokens:262e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-max":{id:"qwen/qwen3-max",name:"Qwen: Qwen3 Max",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.78,output:3.9,cacheRead:.156,cacheWrite:.975},contextWindow:262144,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-max-thinking":{id:"qwen/qwen3-max-thinking",name:"Qwen: Qwen3 Max Thinking",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.78,output:3.9,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-next-80b-a3b-instruct":{id:"qwen/qwen3-next-80b-a3b-instruct",name:"Qwen: Qwen3 Next 80B A3B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.1,output:1.1,cacheRead:.07,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-next-80b-a3b-instruct:free":{id:"qwen/qwen3-next-80b-a3b-instruct:free",name:"Qwen: Qwen3 Next 80B A3B Instruct (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-next-80b-a3b-thinking":{id:"qwen/qwen3-next-80b-a3b-thinking",name:"Qwen: Qwen3 Next 80B A3B Thinking",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.0975,output:.78,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-vl-235b-a22b-instruct":{id:"qwen/qwen3-vl-235b-a22b-instruct",name:"Qwen: Qwen3 VL 235B A22B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.21,output:1.9,cacheRead:.1,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-vl-235b-a22b-thinking":{id:"qwen/qwen3-vl-235b-a22b-thinking",name:"Qwen: Qwen3 VL 235B A22B Thinking",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.26,output:2.6,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-vl-30b-a3b-instruct":{id:"qwen/qwen3-vl-30b-a3b-instruct",name:"Qwen: Qwen3 VL 30B A3B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.13,output:.52,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-vl-30b-a3b-thinking":{id:"qwen/qwen3-vl-30b-a3b-thinking",name:"Qwen: Qwen3 VL 30B A3B Thinking",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.13,output:1.56,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-vl-32b-instruct":{id:"qwen/qwen3-vl-32b-instruct",name:"Qwen: Qwen3 VL 32B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.104,output:.416,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-vl-8b-instruct":{id:"qwen/qwen3-vl-8b-instruct",name:"Qwen: Qwen3 VL 8B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.117,output:.455,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-vl-8b-thinking":{id:"qwen/qwen3-vl-8b-thinking",name:"Qwen: Qwen3 VL 8B Thinking",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.117,output:1.365,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.5-122b-a10b":{id:"qwen/qwen3.5-122b-a10b",name:"Qwen: Qwen3.5-122B-A10B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.26,output:2.08,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.5-27b":{id:"qwen/qwen3.5-27b",name:"Qwen: Qwen3.5-27B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.26,output:2.6,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:81920,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.5-35b-a3b":{id:"qwen/qwen3.5-35b-a3b",name:"Qwen: Qwen3.5-35B-A3B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.14,output:1,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.5-397b-a17b":{id:"qwen/qwen3.5-397b-a17b",name:"Qwen: Qwen3.5 397B A17B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.39,output:2.34,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.5-9b":{id:"qwen/qwen3.5-9b",name:"Qwen: Qwen3.5-9B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.1,output:.15,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.5-flash-02-23":{id:"qwen/qwen3.5-flash-02-23",name:"Qwen: Qwen3.5-Flash",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.065,output:.26,cacheRead:0,cacheWrite:0},contextWindow:1e6,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.5-plus-02-15":{id:"qwen/qwen3.5-plus-02-15",name:"Qwen: Qwen3.5 Plus 2026-02-15",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.26,output:1.56,cacheRead:0,cacheWrite:0},contextWindow:1e6,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.5-plus-20260420":{id:"qwen/qwen3.5-plus-20260420",name:"Qwen: Qwen3.5 Plus 2026-04-20",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.3,output:1.8,cacheRead:0,cacheWrite:.375},contextWindow:1e6,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.6-27b":{id:"qwen/qwen3.6-27b",name:"Qwen: Qwen3.6 27B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.45,output:2.7,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.6-35b-a3b":{id:"qwen/qwen3.6-35b-a3b",name:"Qwen: Qwen3.6 35B A3B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.14,output:1,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.6-flash":{id:"qwen/qwen3.6-flash",name:"Qwen: Qwen3.6 Flash",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.1875,output:1.125,cacheRead:0,cacheWrite:.234375},contextWindow:1e6,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.6-max-preview":{id:"qwen/qwen3.6-max-preview",name:"Qwen: Qwen3.6 Max Preview",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:1.04,output:6.24,cacheRead:0,cacheWrite:1.3},contextWindow:262144,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.6-plus":{id:"qwen/qwen3.6-plus",name:"Qwen: Qwen3.6 Plus",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.325,output:1.95,cacheRead:0,cacheWrite:.40625},contextWindow:1e6,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.7-max":{id:"qwen/qwen3.7-max",name:"Qwen: Qwen3.7 Max",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:1.475,output:4.425,cacheRead:.295,cacheWrite:1.84375},contextWindow:1e6,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.7-plus":{id:"qwen/qwen3.7-plus",name:"Qwen: Qwen3.7 Plus",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.32,output:1.28,cacheRead:.064,cacheWrite:.4},contextWindow:1e6,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"rekaai/reka-edge":{id:"rekaai/reka-edge",name:"Reka Edge",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.1,output:.1,cacheRead:0,cacheWrite:0},contextWindow:16384,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"relace/relace-search":{id:"relace/relace-search",name:"Relace: Relace Search",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:1,output:3,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:128e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"sakana/fugu-ultra":{id:"sakana/fugu-ultra",name:"Sakana: Fugu Ultra",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0},contextWindow:1e6,maxTokens:128e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"sao10k/l3.1-euryale-70b":{id:"sao10k/l3.1-euryale-70b",name:"Sao10K: Llama 3.1 Euryale 70B v2.2",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.85,output:.85,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"stepfun/step-3.5-flash":{id:"stepfun/step-3.5-flash",name:"StepFun: Step 3.5 Flash",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.1,output:.3,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"stepfun/step-3.7-flash":{id:"stepfun/step-3.7-flash",name:"StepFun: Step 3.7 Flash",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.2,output:1.15,cacheRead:.04,cacheWrite:0},contextWindow:256e3,maxTokens:256e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"tencent/hy3":{id:"tencent/hy3",name:"Tencent: Hy3",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.2,output:.8,cacheRead:.05,cacheWrite:0},contextWindow:262144,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"tencent/hy3-preview":{id:"tencent/hy3-preview",name:"Tencent: Hy3 preview",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.063,output:.21,cacheRead:.021,cacheWrite:0},contextWindow:262144,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"tencent/hy3:free":{id:"tencent/hy3:free",name:"Tencent: Hy3 (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"thedrummer/unslopnemo-12b":{id:"thedrummer/unslopnemo-12b",name:"TheDrummer: UnslopNemo 12B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.4,output:.4,cacheRead:0,cacheWrite:0},contextWindow:32768,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"thinkingmachines/inkling":{id:"thinkingmachines/inkling",name:"Thinking Machines: Inkling",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1,output:4.05,cacheRead:.17,cacheWrite:0},contextWindow:524288,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"upstage/solar-pro-3":{id:"upstage/solar-pro-3",name:"Upstage: Solar Pro 3",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.15,output:.6,cacheRead:.015,cacheWrite:0},contextWindow:128e3,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"x-ai/grok-4.20":{id:"x-ai/grok-4.20",name:"xAI: Grok 4.20",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.25,output:2.5,cacheRead:.2,cacheWrite:0},contextWindow:2e6,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"x-ai/grok-4.3":{id:"x-ai/grok-4.3",name:"xAI: Grok 4.3",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.25,output:2.5,cacheRead:.2,cacheWrite:0},contextWindow:1e6,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"x-ai/grok-4.5":{id:"x-ai/grok-4.5",name:"xAI: Grok 4.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2,output:6,cacheRead:.5,cacheWrite:0},contextWindow:5e5,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"x-ai/grok-build-0.1":{id:"x-ai/grok-build-0.1",name:"xAI: Grok Build 0.1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1,output:2,cacheRead:.2,cacheWrite:0},contextWindow:256e3,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"xiaomi/mimo-v2.5":{id:"xiaomi/mimo-v2.5",name:"Xiaomi: MiMo-V2.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.14,output:.28,cacheRead:.0028,cacheWrite:0},contextWindow:1048576,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"xiaomi/mimo-v2.5-pro":{id:"xiaomi/mimo-v2.5-pro",name:"Xiaomi: MiMo-V2.5-Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.435,output:.87,cacheRead:.0036,cacheWrite:0},contextWindow:1048576,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-4.5":{id:"z-ai/glm-4.5",name:"Z.ai: GLM 4.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.6,output:2.2,cacheRead:.11,cacheWrite:0},contextWindow:131072,maxTokens:98304,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-4.5-air":{id:"z-ai/glm-4.5-air",name:"Z.ai: GLM 4.5 Air",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.13,output:.85,cacheRead:.025,cacheWrite:0},contextWindow:131072,maxTokens:98304,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-4.5v":{id:"z-ai/glm-4.5v",name:"Z.ai: GLM 4.5V",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.6,output:1.8,cacheRead:.11,cacheWrite:0},contextWindow:65536,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-4.6":{id:"z-ai/glm-4.6",name:"Z.ai: GLM 4.6",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.5,output:2,cacheRead:.1,cacheWrite:0},contextWindow:202752,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-4.6v":{id:"z-ai/glm-4.6v",name:"Z.ai: GLM 4.6V",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.3,output:.9,cacheRead:.055,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-4.7":{id:"z-ai/glm-4.7",name:"Z.ai: GLM 4.7",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.4,output:1.75,cacheRead:.08,cacheWrite:0},contextWindow:202752,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-4.7-flash":{id:"z-ai/glm-4.7-flash",name:"Z.ai: GLM 4.7 Flash",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.0605,output:.4,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-5":{id:"z-ai/glm-5",name:"Z.ai: GLM 5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.6,output:1.9,cacheRead:.119,cacheWrite:0},contextWindow:202752,maxTokens:202752,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-5-turbo":{id:"z-ai/glm-5-turbo",name:"Z.ai: GLM 5 Turbo",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:1.2,output:4,cacheRead:.24,cacheWrite:0},contextWindow:202752,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-5.1":{id:"z-ai/glm-5.1",name:"Z.ai: GLM 5.1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.966,output:3.036,cacheRead:.1794,cacheWrite:0},contextWindow:2e5,maxTokens:128e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-5.2":{id:"z-ai/glm-5.2",name:"Z.ai: GLM 5.2",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.2926,output:.9196,cacheRead:.05434,cacheWrite:0},contextWindow:1048576,maxTokens:131072,thinkingLevelMap:{xhigh:"xhigh"},compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-5v-turbo":{id:"z-ai/glm-5v-turbo",name:"Z.ai: GLM 5V Turbo",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.2,output:4,cacheRead:.24,cacheWrite:0},contextWindow:202752,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"~anthropic/claude-fable-latest":{id:"~anthropic/claude-fable-latest",name:"Anthropic: Claude Fable Latest",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"~anthropic/claude-haiku-latest":{id:"~anthropic/claude-haiku-latest",name:"Anthropic Claude Haiku Latest",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"~anthropic/claude-opus-latest":{id:"~anthropic/claude-opus-latest",name:"Anthropic: Claude Opus Latest",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"~anthropic/claude-sonnet-latest":{id:"~anthropic/claude-sonnet-latest",name:"Anthropic Claude Sonnet Latest",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"~google/gemini-flash-latest":{id:"~google/gemini-flash-latest",name:"Google Gemini Flash Latest",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.5,output:9,cacheRead:.15,cacheWrite:.083333},contextWindow:1048576,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"~google/gemini-pro-latest":{id:"~google/gemini-pro-latest",name:"Google Gemini Pro Latest",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:.375},contextWindow:1048576,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"~moonshotai/kimi-latest":{id:"~moonshotai/kimi-latest",name:"MoonshotAI Kimi Latest",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:0},contextWindow:1048576,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"~openai/gpt-latest":{id:"~openai/gpt-latest",name:"OpenAI GPT Latest",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:6.25},contextWindow:105e4,maxTokens:128e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"~openai/gpt-mini-latest":{id:"~openai/gpt-mini-latest",name:"OpenAI GPT Mini Latest",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.75,output:4.5,cacheRead:.075,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"~x-ai/grok-latest":{id:"~x-ai/grok-latest",name:"xAI: Grok Latest",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2,output:6,cacheRead:.5,cacheWrite:0},contextWindow:5e5,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}}};var DC=FC;var UC={"MiniMaxAI/MiniMax-M2.7":{id:"MiniMaxAI/MiniMax-M2.7",name:"MiniMax-M2.7",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{off:null,minimal:null,low:null,medium:null},input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:202752,maxTokens:131072},"MiniMaxAI/MiniMax-M3":{id:"MiniMaxAI/MiniMax-M3",name:"MiniMax-M3",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{minimal:null,low:null,medium:null},input:["text","image"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:524288,maxTokens:25e4},"Qwen/Qwen2.5-7B-Instruct-Turbo":{id:"Qwen/Qwen2.5-7B-Instruct-Turbo",name:"Qwen 2.5 7B Instruct Turbo",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!1,input:["text"],cost:{input:.3,output:.3,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:32768,maxTokens:32768},"Qwen/Qwen3-235B-A22B-Instruct-2507-tput":{id:"Qwen/Qwen3-235B-A22B-Instruct-2507-tput",name:"Qwen3 235B A22B Instruct 2507 FP8",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!1,input:["text"],cost:{input:.2,output:.6,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:262144},"Qwen/Qwen3.5-397B-A17B":{id:"Qwen/Qwen3.5-397B-A17B",name:"Qwen3.5 397B A17B",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{minimal:null,low:null,medium:null},input:["text","image"],cost:{input:.6,output:3.6,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:13e4},"Qwen/Qwen3.5-9B":{id:"Qwen/Qwen3.5-9B",name:"Qwen3.5 9B",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{minimal:null,low:null,medium:null},input:["text","image"],cost:{input:.17,output:.25,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:65536},"Qwen/Qwen3.6-Plus":{id:"Qwen/Qwen3.6-Plus",name:"Qwen3.6 Plus",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{minimal:null,low:null,medium:null},input:["text"],cost:{input:.5,output:3,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:1e6,maxTokens:5e5},"Qwen/Qwen3.7-Max":{id:"Qwen/Qwen3.7-Max",name:"Qwen3.7 Max",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!1,input:["text"],cost:{input:1.25,output:3.75,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:1e6,maxTokens:5e5},"deepseek-ai/DeepSeek-V4-Pro":{id:"deepseek-ai/DeepSeek-V4-Pro",name:"DeepSeek V4 Pro",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{minimal:null,low:null,medium:null,high:"high",xhigh:null},input:["text"],cost:{input:1.74,output:3.48,cacheRead:.2,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!0,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:512e3,maxTokens:384e3},"essentialai/Rnj-1-Instruct":{id:"essentialai/Rnj-1-Instruct",name:"Rnj-1 Instruct",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!1,input:["text"],cost:{input:.15,output:.15,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:32768,maxTokens:32768},"google/gemma-4-31B-it":{id:"google/gemma-4-31B-it",name:"Gemma 4 31B Instruct",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{minimal:null,low:null,medium:null},input:["text","image"],cost:{input:.39,output:.97,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:131072},"meta-llama/Llama-3.3-70B-Instruct-Turbo":{id:"meta-llama/Llama-3.3-70B-Instruct-Turbo",name:"Llama 3.3 70B",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!1,input:["text"],cost:{input:1.04,output:1.04,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:131072,maxTokens:131072},"moonshotai/Kimi-K2.6":{id:"moonshotai/Kimi-K2.6",name:"Kimi K2.6",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{minimal:null,low:null,medium:null},input:["text","image"],cost:{input:1.2,output:4.5,cacheRead:.2,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:131e3},"moonshotai/Kimi-K2.7-Code":{id:"moonshotai/Kimi-K2.7-Code",name:"Kimi K2.7 Code",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{minimal:null,low:null,medium:null},input:["text"],cost:{input:.95,output:4,cacheRead:.19,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:131072},"nvidia/nemotron-3-ultra-550b-a55b":{id:"nvidia/nemotron-3-ultra-550b-a55b",name:"Nemotron 3 Ultra 550B A55B",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{minimal:null,low:null,medium:null},input:["text"],cost:{input:.6,output:3.6,cacheRead:.2,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:512300,maxTokens:512300},"openai/gpt-oss-120b":{id:"openai/gpt-oss-120b",name:"GPT OSS 120B",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{off:null,minimal:null},input:["text"],cost:{input:.15,output:.6,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!0,maxTokensField:"max_tokens",thinkingFormat:"openai",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:131072,maxTokens:131072},"openai/gpt-oss-20b":{id:"openai/gpt-oss-20b",name:"GPT OSS 20B",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{off:null,minimal:null},input:["text"],cost:{input:.05,output:.2,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!0,maxTokensField:"max_tokens",thinkingFormat:"openai",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:131072,maxTokens:131072},"thinkingmachines/Inkling":{id:"thinkingmachines/Inkling",name:"Inkling",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{minimal:null,low:null,medium:null},input:["text","image"],cost:{input:1,output:4.05,cacheRead:.17,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:524288,maxTokens:131072},"zai-org/GLM-5":{id:"zai-org/GLM-5",name:"GLM-5",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{minimal:null,low:null,medium:null},input:["text"],cost:{input:1,output:3.2,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:202752,maxTokens:131072},"zai-org/GLM-5.1":{id:"zai-org/GLM-5.1",name:"GLM-5.1",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{minimal:null,low:null,medium:null},input:["text"],cost:{input:1.4,output:4.4,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:202752,maxTokens:131072},"zai-org/GLM-5.2":{id:"zai-org/GLM-5.2",name:"GLM-5.2",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{minimal:null,low:null,medium:null},input:["text"],cost:{input:1.4,output:4.4,cacheRead:.26,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:164e3}};var $C=UC;var NC={"alibaba/qwen-3-14b":{id:"alibaba/qwen-3-14b",name:"Qwen3-14B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.12,output:.24,cacheRead:0,cacheWrite:0},contextWindow:40960,maxTokens:16384},"alibaba/qwen-3-235b":{id:"alibaba/qwen-3-235b",name:"Qwen3 235B A22B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.22,output:.88,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:16384},"alibaba/qwen-3-30b":{id:"alibaba/qwen-3-30b",name:"Qwen3-30B-A3B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.12,output:.5,cacheRead:0,cacheWrite:0},contextWindow:40960,maxTokens:16384},"alibaba/qwen-3-32b":{id:"alibaba/qwen-3-32b",name:"Qwen 3 32B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.16,output:.64,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:8192},"alibaba/qwen-3.6-max-preview":{id:"alibaba/qwen-3.6-max-preview",name:"Qwen 3.6 Max Preview",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:1.3,output:7.8,cacheRead:.26,cacheWrite:1.625},contextWindow:24e4,maxTokens:64e3},"alibaba/qwen3-235b-a22b-thinking":{id:"alibaba/qwen3-235b-a22b-thinking",name:"Qwen3 VL 235B A22B Thinking",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.4,output:4,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768},"alibaba/qwen3-coder":{id:"alibaba/qwen3-coder",name:"Qwen3 Coder 480B A35B Instruct",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:1.5,output:7.5,cacheRead:.3,cacheWrite:0},contextWindow:262144,maxTokens:65536},"alibaba/qwen3-coder-30b-a3b":{id:"alibaba/qwen3-coder-30b-a3b",name:"Qwen 3 Coder 30B A3B Instruct",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.15,output:.6,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:8192},"alibaba/qwen3-coder-next":{id:"alibaba/qwen3-coder-next",name:"Qwen3 Coder Next",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.5,output:1.2,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"alibaba/qwen3-coder-plus":{id:"alibaba/qwen3-coder-plus",name:"Qwen3 Coder Plus",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:1,output:5,cacheRead:.2,cacheWrite:0},contextWindow:1e6,maxTokens:65536},"alibaba/qwen3-max":{id:"alibaba/qwen3-max",name:"Qwen3 Max",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:1.2,output:6,cacheRead:.24,cacheWrite:0},contextWindow:262144,maxTokens:32768},"alibaba/qwen3-max-preview":{id:"alibaba/qwen3-max-preview",name:"Qwen3 Max Preview",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:1.2,output:6,cacheRead:.24,cacheWrite:0},contextWindow:262144,maxTokens:32768},"alibaba/qwen3-max-thinking":{id:"alibaba/qwen3-max-thinking",name:"Qwen 3 Max Thinking",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:1.2,output:6,cacheRead:.24,cacheWrite:0},contextWindow:256e3,maxTokens:65536},"alibaba/qwen3-next-80b-a3b-instruct":{id:"alibaba/qwen3-next-80b-a3b-instruct",name:"Qwen3 Next 80B A3B Instruct",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.15,output:1.2,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768},"alibaba/qwen3-next-80b-a3b-thinking":{id:"alibaba/qwen3-next-80b-a3b-thinking",name:"Qwen3 Next 80B A3B Thinking",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.15,output:1.2,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768},"alibaba/qwen3-vl-235b-a22b-instruct":{id:"alibaba/qwen3-vl-235b-a22b-instruct",name:"Qwen3 VL 235B A22B Instruct",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.4,output:1.6,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:129024},"alibaba/qwen3-vl-instruct":{id:"alibaba/qwen3-vl-instruct",name:"Qwen3 VL 235B A22B Instruct",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.4,output:1.6,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:129024},"alibaba/qwen3-vl-thinking":{id:"alibaba/qwen3-vl-thinking",name:"Qwen3 VL 235B A22B Thinking",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.4,output:4,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768},"alibaba/qwen3.5-flash":{id:"alibaba/qwen3.5-flash",name:"Qwen 3.5 Flash",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.1,output:.4,cacheRead:.001,cacheWrite:.125},contextWindow:1e6,maxTokens:64e3},"alibaba/qwen3.5-plus":{id:"alibaba/qwen3.5-plus",name:"Qwen 3.5 Plus",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.4,output:2.4,cacheRead:.04,cacheWrite:.5},contextWindow:1e6,maxTokens:64e3},"alibaba/qwen3.6-27b":{id:"alibaba/qwen3.6-27b",name:"Qwen 3.6 27B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.6,output:3.6,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"alibaba/qwen3.6-plus":{id:"alibaba/qwen3.6-plus",name:"Qwen 3.6 Plus",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.5,output:3,cacheRead:.1,cacheWrite:.625},contextWindow:1e6,maxTokens:64e3},"alibaba/qwen3.7-max":{id:"alibaba/qwen3.7-max",name:"Qwen 3.7 Max",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:1.25,output:3.75,cacheRead:.25,cacheWrite:1.5625},contextWindow:991e3,maxTokens:64e3},"alibaba/qwen3.7-plus":{id:"alibaba/qwen3.7-plus",name:"Qwen 3.7 Plus",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.4,output:1.6,cacheRead:.08,cacheWrite:.5},contextWindow:1e6,maxTokens:64e3},"amazon/nova-2-lite":{id:"amazon/nova-2-lite",name:"Nova 2 Lite",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.3,output:2.5,cacheRead:.075,cacheWrite:0},contextWindow:1e6,maxTokens:1e6},"amazon/nova-lite":{id:"amazon/nova-lite",name:"Nova Lite",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.06,output:.24,cacheRead:0,cacheWrite:0},contextWindow:3e5,maxTokens:8192},"amazon/nova-micro":{id:"amazon/nova-micro",name:"Nova Micro",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.035,output:.14,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:8192},"amazon/nova-pro":{id:"amazon/nova-pro",name:"Nova Pro",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.8,output:3.2,cacheRead:0,cacheWrite:0},contextWindow:3e5,maxTokens:8192},"anthropic/claude-3-haiku":{id:"anthropic/claude-3-haiku",name:"Claude 3 Haiku",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.25,output:1.25,cacheRead:.03,cacheWrite:.3},contextWindow:2e5,maxTokens:4096},"anthropic/claude-fable-5":{id:"anthropic/claude-fable-5",name:"Claude Fable 5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0}},"anthropic/claude-haiku-4.5":{id:"anthropic/claude-haiku-4.5",name:"Claude Haiku 4.5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3},"anthropic/claude-opus-4":{id:"anthropic/claude-opus-4",name:"Claude Opus 4",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:8192},"anthropic/claude-opus-4.1":{id:"anthropic/claude-opus-4.1",name:"Claude Opus 4.1",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:32e3},"anthropic/claude-opus-4.5":{id:"anthropic/claude-opus-4.5",name:"Claude Opus 4.5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:2e5,maxTokens:64e3},"anthropic/claude-opus-4.6":{id:"anthropic/claude-opus-4.6",name:"Claude Opus 4.6",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"},compat:{forceAdaptiveThinking:!0}},"anthropic/claude-opus-4.7":{id:"anthropic/claude-opus-4.7",name:"Claude Opus 4.7",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0,supportsTemperature:!1}},"anthropic/claude-opus-4.7-fast":{id:"anthropic/claude-opus-4.7-fast",name:"Claude Opus 4.7 (Fast)",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:30,output:150,cacheRead:3,cacheWrite:37.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0,supportsTemperature:!1}},"anthropic/claude-opus-4.8":{id:"anthropic/claude-opus-4.8",name:"Claude Opus 4.8",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0,supportsTemperature:!1}},"anthropic/claude-opus-4.8-fast":{id:"anthropic/claude-opus-4.8-fast",name:"Claude Opus 4.8 (Fast)",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0,supportsTemperature:!1}},"anthropic/claude-sonnet-4":{id:"anthropic/claude-sonnet-4",name:"Claude Sonnet 4",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:8192},"anthropic/claude-sonnet-4.5":{id:"anthropic/claude-sonnet-4.5",name:"Claude Sonnet 4.5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:64e3},"anthropic/claude-sonnet-4.6":{id:"anthropic/claude-sonnet-4.6",name:"Claude Sonnet 4.6",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"},compat:{forceAdaptiveThinking:!0}},"anthropic/claude-sonnet-5":{id:"anthropic/claude-sonnet-5",name:"Claude Sonnet 5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0}},"arcee-ai/trinity-large-thinking":{id:"arcee-ai/trinity-large-thinking",name:"Trinity Large Thinking",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.25,output:.9,cacheRead:0,cacheWrite:0},contextWindow:262100,maxTokens:8e4},"arcee-ai/trinity-mini":{id:"arcee-ai/trinity-mini",name:"Trinity Mini",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.045,output:.15,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:131072},"bytedance/seed-1.6":{id:"bytedance/seed-1.6",name:"Seed 1.6",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.05,cacheWrite:0},contextWindow:256e3,maxTokens:32e3},"bytedance/seed-1.8":{id:"bytedance/seed-1.8",name:"Bytedance Seed 1.8",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.05,cacheWrite:0},contextWindow:256e3,maxTokens:64e3},"cohere/command-a":{id:"cohere/command-a",name:"Command A",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:2.5,output:10,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:8e3},"deepseek/deepseek-r1":{id:"deepseek/deepseek-r1",name:"DeepSeek-R1",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:1.35,output:5.4,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:8192},"deepseek/deepseek-v3":{id:"deepseek/deepseek-v3",name:"DeepSeek V3 0324",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.27,output:1.12,cacheRead:.135,cacheWrite:0},contextWindow:163840,maxTokens:163840},"deepseek/deepseek-v3.1":{id:"deepseek/deepseek-v3.1",name:"DeepSeek V3.1",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.25,output:.95,cacheRead:.13,cacheWrite:0},contextWindow:163840,maxTokens:128e3},"deepseek/deepseek-v3.1-terminus":{id:"deepseek/deepseek-v3.1-terminus",name:"DeepSeek V3.1 Terminus",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.27,output:1,cacheRead:.135,cacheWrite:0},contextWindow:131072,maxTokens:65536},"deepseek/deepseek-v3.2":{id:"deepseek/deepseek-v3.2",name:"DeepSeek V3.2",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.28,output:.42,cacheRead:.028,cacheWrite:0},contextWindow:128e3,maxTokens:8e3},"deepseek/deepseek-v3.2-thinking":{id:"deepseek/deepseek-v3.2-thinking",name:"DeepSeek V3.2 Thinking",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.62,output:1.85,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:8e3},"deepseek/deepseek-v4-flash":{id:"deepseek/deepseek-v4-flash",name:"DeepSeek V4 Flash",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.14,output:.28,cacheRead:.028,cacheWrite:0},contextWindow:1e6,maxTokens:384e3},"deepseek/deepseek-v4-pro":{id:"deepseek/deepseek-v4-pro",name:"DeepSeek V4 Pro",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.435,output:.87,cacheRead:.0036,cacheWrite:0},contextWindow:1e6,maxTokens:384e3},"google/gemini-2.5-flash":{id:"google/gemini-2.5-flash",name:"Gemini 2.5 Flash",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.3,output:2.5,cacheRead:.03,cacheWrite:0},contextWindow:1e6,maxTokens:65536},"google/gemini-2.5-flash-lite":{id:"google/gemini-2.5-flash-lite",name:"Gemini 2.5 Flash Lite",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.1,output:.4,cacheRead:.01,cacheWrite:0},contextWindow:1048576,maxTokens:65536},"google/gemini-2.5-pro":{id:"google/gemini-2.5-pro",name:"Gemini 2.5 Pro",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:1048576,maxTokens:65536},"google/gemini-3-flash":{id:"google/gemini-3-flash",name:"Gemini 3 Flash",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.5,output:3,cacheRead:.05,cacheWrite:0},contextWindow:1e6,maxTokens:65e3},"google/gemini-3-pro-preview":{id:"google/gemini-3-pro-preview",name:"Gemini 3 Pro Preview",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:0},contextWindow:1e6,maxTokens:64e3},"google/gemini-3.1-flash-lite":{id:"google/gemini-3.1-flash-lite",name:"Gemini 3.1 Flash Lite",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.25,output:1.5,cacheRead:.03,cacheWrite:0},contextWindow:1e6,maxTokens:65e3},"google/gemini-3.1-flash-lite-preview":{id:"google/gemini-3.1-flash-lite-preview",name:"Gemini 3.1 Flash Lite Preview",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.25,output:1.5,cacheRead:.03,cacheWrite:0},contextWindow:1e6,maxTokens:65e3},"google/gemini-3.1-pro-preview":{id:"google/gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:0},contextWindow:1e6,maxTokens:64e3},"google/gemini-3.5-flash":{id:"google/gemini-3.5-flash",name:"Gemini 3.5 Flash",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.5,output:9,cacheRead:.15,cacheWrite:0},contextWindow:1e6,maxTokens:64e3},"google/gemma-4-26b-a4b-it":{id:"google/gemma-4-26b-a4b-it",name:"Gemma 4 26B A4B IT",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.15,output:.6,cacheRead:.015,cacheWrite:0},contextWindow:262144,maxTokens:131072},"google/gemma-4-31b-it":{id:"google/gemma-4-31b-it",name:"Gemma 4 31B IT",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.14,output:.4,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:131072},"inception/mercury-2":{id:"inception/mercury-2",name:"Mercury 2",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.25,output:.75,cacheRead:.025,cacheWrite:0},contextWindow:128e3,maxTokens:128e3},"inception/mercury-coder-small":{id:"inception/mercury-coder-small",name:"Mercury Coder Small Beta",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.25,output:1,cacheRead:0,cacheWrite:0},contextWindow:32e3,maxTokens:16384},"interfaze/interfaze-beta":{id:"interfaze/interfaze-beta",name:"Interfaze Beta",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.5,output:3.5,cacheRead:0,cacheWrite:0},contextWindow:1e6,maxTokens:32e3},"kwaipilot/kat-coder-air-v2.5":{id:"kwaipilot/kat-coder-air-v2.5",name:"Kat Coder Air V2.5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.15,output:.6,cacheRead:.03,cacheWrite:0},contextWindow:256e3,maxTokens:8e4},"kwaipilot/kat-coder-pro-v1":{id:"kwaipilot/kat-coder-pro-v1",name:"KAT-Coder-Pro V1",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},contextWindow:256e3,maxTokens:32e3},"kwaipilot/kat-coder-pro-v2":{id:"kwaipilot/kat-coder-pro-v2",name:"Kat Coder Pro V2",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"kwaipilot/kat-coder-pro-v2.5":{id:"kwaipilot/kat-coder-pro-v2.5",name:"Kat Coder Pro V2.5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.74,output:2.96,cacheRead:.15,cacheWrite:0},contextWindow:256e3,maxTokens:8e4},"meta/llama-3.1-70b":{id:"meta/llama-3.1-70b",name:"Llama 3.1 70B Instruct",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.72,output:.72,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:8192},"meta/llama-3.1-8b":{id:"meta/llama-3.1-8b",name:"Llama 3.1 8B Instruct",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.22,output:.22,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:8192},"meta/llama-3.3-70b":{id:"meta/llama-3.3-70b",name:"Llama 3.3 70B Instruct",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.72,output:.72,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:8192},"meta/llama-4-maverick":{id:"meta/llama-4-maverick",name:"Llama 4 Maverick 17B Instruct",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.24,output:.97,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:8192},"meta/llama-4-scout":{id:"meta/llama-4-scout",name:"Llama 4 Scout 17B Instruct",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.17,output:.66,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:8192},"meta/muse-spark-1.1":{id:"meta/muse-spark-1.1",name:"Muse Spark 1.1",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:4.25,cacheRead:.15,cacheWrite:0},contextWindow:1048576,maxTokens:1048576},"minimax/minimax-m2":{id:"minimax/minimax-m2",name:"MiniMax M2",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.03,cacheWrite:.375},contextWindow:205e3,maxTokens:205e3},"minimax/minimax-m2.1":{id:"minimax/minimax-m2.1",name:"MiniMax M2.1",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.03,cacheWrite:.375},contextWindow:204800,maxTokens:131072},"minimax/minimax-m2.1-lightning":{id:"minimax/minimax-m2.1-lightning",name:"MiniMax M2.1 Lightning",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.3,output:2.4,cacheRead:.03,cacheWrite:.375},contextWindow:204800,maxTokens:131072},"minimax/minimax-m2.5":{id:"minimax/minimax-m2.5",name:"MiniMax M2.5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.03,cacheWrite:.375},contextWindow:204800,maxTokens:131e3},"minimax/minimax-m2.5-highspeed":{id:"minimax/minimax-m2.5-highspeed",name:"MiniMax M2.5 High Speed",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.6,output:2.4,cacheRead:.03,cacheWrite:.375},contextWindow:204800,maxTokens:131e3},"minimax/minimax-m2.7":{id:"minimax/minimax-m2.7",name:"MiniMax M2.7",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:.375},contextWindow:204800,maxTokens:131e3},"minimax/minimax-m2.7-highspeed":{id:"minimax/minimax-m2.7-highspeed",name:"MiniMax M2.7 High Speed",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.6,output:2.4,cacheRead:.06,cacheWrite:.375},contextWindow:204800,maxTokens:131100},"minimax/minimax-m3":{id:"minimax/minimax-m3",name:"MiniMax M3",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},contextWindow:1e6,maxTokens:1e6},"mistral/codestral":{id:"mistral/codestral",name:"Mistral Codestral",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.3,output:.9,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4e3},"mistral/devstral-2":{id:"mistral/devstral-2",name:"Devstral 2",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.4,output:2,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"mistral/devstral-small-2":{id:"mistral/devstral-small-2",name:"Devstral Small 2",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.1,output:.3,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"mistral/magistral-medium":{id:"mistral/magistral-medium",name:"Magistral Medium 2509",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:2,output:5,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:64e3},"mistral/magistral-small":{id:"mistral/magistral-small",name:"Magistral Small 2509",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.5,output:1.5,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:64e3},"mistral/ministral-14b":{id:"mistral/ministral-14b",name:"Ministral 14B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.2,output:.2,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"mistral/ministral-3b":{id:"mistral/ministral-3b",name:"Ministral 3B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.1,output:.1,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4e3},"mistral/ministral-8b":{id:"mistral/ministral-8b",name:"Ministral 8B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.15,output:.15,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4e3},"mistral/mistral-large-3":{id:"mistral/mistral-large-3",name:"Mistral Large 3",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.5,output:1.5,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"mistral/mistral-medium":{id:"mistral/mistral-medium",name:"Mistral Medium 3.1",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.4,output:2,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:64e3},"mistral/mistral-medium-3.5":{id:"mistral/mistral-medium-3.5",name:"Mistral Medium Latest",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.5,output:7.5,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"mistral/mistral-nemo":{id:"mistral/mistral-nemo",name:"Mistral Nemo 12B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.15,output:.15,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:128e3},"mistral/mistral-small":{id:"mistral/mistral-small",name:"Mistral Small",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.1,output:.3,cacheRead:0,cacheWrite:0},contextWindow:32e3,maxTokens:4e3},"mistral/pixtral-12b":{id:"mistral/pixtral-12b",name:"Pixtral 12B 2409",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.15,output:.15,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4e3},"moonshotai/kimi-k2":{id:"moonshotai/kimi-k2",name:"Kimi K2 Instruct",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.57,output:2.3,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:131072},"moonshotai/kimi-k2-thinking":{id:"moonshotai/kimi-k2-thinking",name:"Kimi K2 Thinking",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.47,output:2,cacheRead:.141,cacheWrite:0},contextWindow:216144,maxTokens:216144},"moonshotai/kimi-k2.5":{id:"moonshotai/kimi-k2.5",name:"Kimi K2.5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.6,output:3,cacheRead:.1,cacheWrite:0},contextWindow:262114,maxTokens:262114},"moonshotai/kimi-k2.6":{id:"moonshotai/kimi-k2.6",name:"Kimi K2.6",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.16,cacheWrite:0},contextWindow:262e3,maxTokens:262e3},"moonshotai/kimi-k2.7-code":{id:"moonshotai/kimi-k2.7-code",name:"Kimi K2.7 Code",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.19,cacheWrite:0},contextWindow:256e3,maxTokens:32768},"moonshotai/kimi-k2.7-code-highspeed":{id:"moonshotai/kimi-k2.7-code-highspeed",name:"Kimi K2.7 Code High Speed",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.9,output:8,cacheRead:.38,cacheWrite:0},contextWindow:262144,maxTokens:32768},"moonshotai/kimi-k3":{id:"moonshotai/kimi-k3",name:"Kimi K3",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:0},contextWindow:1e6,maxTokens:131072},"nvidia/nemotron-3-nano-30b-a3b":{id:"nvidia/nemotron-3-nano-30b-a3b",name:"Nemotron 3 Nano 30B A3B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.05,output:.24,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:262144},"nvidia/nemotron-3-super-120b-a12b":{id:"nvidia/nemotron-3-super-120b-a12b",name:"NVIDIA Nemotron 3 Super 120B A12B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.15,output:.65,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:32e3},"nvidia/nemotron-3-ultra-550b-a55b":{id:"nvidia/nemotron-3-ultra-550b-a55b",name:"Nemotron 3 Ultra",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.6,output:2.4,cacheRead:.12,cacheWrite:0},contextWindow:1e6,maxTokens:65e3},"nvidia/nemotron-nano-12b-v2-vl":{id:"nvidia/nemotron-nano-12b-v2-vl",name:"Nvidia Nemotron Nano 12B V2 VL",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.2,output:.6,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:131072},"nvidia/nemotron-nano-9b-v2":{id:"nvidia/nemotron-nano-9b-v2",name:"Nvidia Nemotron Nano 9B V2",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.06,output:.23,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:131072},"openai/gpt-3.5-turbo":{id:"openai/gpt-3.5-turbo",name:"GPT-3.5 Turbo",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.5,output:1.5,cacheRead:0,cacheWrite:0},contextWindow:16385,maxTokens:4096},"openai/gpt-4-turbo":{id:"openai/gpt-4-turbo",name:"GPT-4 Turbo",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:10,output:30,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"openai/gpt-4.1":{id:"openai/gpt-4.1",name:"GPT-4.1",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:1047576,maxTokens:32768},"openai/gpt-4.1-mini":{id:"openai/gpt-4.1-mini",name:"GPT-4.1 mini",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.4,output:1.6,cacheRead:.1,cacheWrite:0},contextWindow:1047576,maxTokens:32768},"openai/gpt-4.1-nano":{id:"openai/gpt-4.1-nano",name:"GPT-4.1 nano",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.1,output:.4,cacheRead:.025,cacheWrite:0},contextWindow:1047576,maxTokens:32768},"openai/gpt-4o":{id:"openai/gpt-4o",name:"GPT-4o",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"openai/gpt-4o-mini":{id:"openai/gpt-4o-mini",name:"GPT-4o mini",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.15,output:.6,cacheRead:.075,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"openai/gpt-5":{id:"openai/gpt-5",name:"GPT-5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3},"openai/gpt-5-chat":{id:"openai/gpt-5-chat",name:"GPT 5 Chat",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"openai/gpt-5-codex":{id:"openai/gpt-5-codex",name:"GPT-5-Codex",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3},"openai/gpt-5-mini":{id:"openai/gpt-5-mini",name:"GPT-5 mini",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.025,cacheWrite:0},contextWindow:4e5,maxTokens:128e3},"openai/gpt-5-nano":{id:"openai/gpt-5-nano",name:"GPT-5 nano",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.05,output:.4,cacheRead:.005,cacheWrite:0},contextWindow:4e5,maxTokens:128e3},"openai/gpt-5-pro":{id:"openai/gpt-5-pro",name:"GPT-5 pro",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:15,output:120,cacheRead:0,cacheWrite:0},contextWindow:4e5,maxTokens:272e3},"openai/gpt-5.1-codex":{id:"openai/gpt-5.1-codex",name:"GPT-5.1-Codex",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3},"openai/gpt-5.1-codex-max":{id:"openai/gpt-5.1-codex-max",name:"GPT 5.1 Codex Max",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3},"openai/gpt-5.1-codex-mini":{id:"openai/gpt-5.1-codex-mini",name:"GPT 5.1 Codex Mini",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.025,cacheWrite:0},contextWindow:4e5,maxTokens:128e3},"openai/gpt-5.1-instant":{id:"openai/gpt-5.1-instant",name:"GPT-5.1 Instant",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"openai/gpt-5.1-thinking":{id:"openai/gpt-5.1-thinking",name:"GPT 5.1 Thinking",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3},"openai/gpt-5.2":{id:"openai/gpt-5.2",name:"GPT 5.2",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.2-chat":{id:"openai/gpt-5.2-chat",name:"GPT 5.2 Chat",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.2-codex":{id:"openai/gpt-5.2-codex",name:"GPT 5.2 Codex",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.2-pro":{id:"openai/gpt-5.2-pro",name:"GPT 5.2 ",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:21,output:168,cacheRead:0,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.3-chat":{id:"openai/gpt-5.3-chat",name:"GPT-5.3 Chat",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.3-codex":{id:"openai/gpt-5.3-codex",name:"GPT 5.3 Codex",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.4":{id:"openai/gpt-5.4",name:"GPT 5.4",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.4-mini":{id:"openai/gpt-5.4-mini",name:"GPT 5.4 Mini",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.75,output:4.5,cacheRead:.075,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.4-nano":{id:"openai/gpt-5.4-nano",name:"GPT 5.4 Nano",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.2,output:1.25,cacheRead:.02,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.4-pro":{id:"openai/gpt-5.4-pro",name:"GPT 5.4 Pro",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:30,output:180,cacheRead:0,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.5":{id:"openai/gpt-5.5",name:"GPT 5.5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.5-pro":{id:"openai/gpt-5.5-pro",name:"GPT 5.5 Pro",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:30,output:180,cacheRead:0,cacheWrite:0},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",off:null,minimal:null,low:null}},"openai/gpt-5.6-luna":{id:"openai/gpt-5.6-luna",name:"GPT 5.6 Luna",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1,output:6,cacheRead:.1,cacheWrite:1.25},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.6-sol":{id:"openai/gpt-5.6-sol",name:"GPT 5.6 Sol",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:6.25},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.6-terra":{id:"openai/gpt-5.6-terra",name:"GPT 5.6 Terra",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:3.125},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-oss-120b":{id:"openai/gpt-oss-120b",name:"GPT OSS 120B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.1,output:.5,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:131072},"openai/gpt-oss-20b":{id:"openai/gpt-oss-20b",name:"GPT OSS 20B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.05,output:.2,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:8192},"openai/gpt-oss-safeguard-20b":{id:"openai/gpt-oss-safeguard-20b",name:"GPT OSS Safeguard 20B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.075,output:.3,cacheRead:.037,cacheWrite:0},contextWindow:131072,maxTokens:65536},"openai/o1":{id:"openai/o1",name:"o1",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:15,output:60,cacheRead:7.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"openai/o3":{id:"openai/o3",name:"o3",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"openai/o3-deep-research":{id:"openai/o3-deep-research",name:"o3-deep-research",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:10,output:40,cacheRead:2.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"openai/o3-mini":{id:"openai/o3-mini",name:"o3-mini",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:1.1,output:4.4,cacheRead:.55,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"openai/o3-pro":{id:"openai/o3-pro",name:"o3 Pro",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:20,output:80,cacheRead:0,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"openai/o4-mini":{id:"openai/o4-mini",name:"o4-mini",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.1,output:4.4,cacheRead:.275,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"sakana/fugu-ultra":{id:"sakana/fugu-ultra",name:"Fugu Ultra",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0},contextWindow:1e6,maxTokens:1e6},"stepfun/step-3.5-flash":{id:"stepfun/step-3.5-flash",name:"StepFun 3.5 Flash",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.09,output:.3,cacheRead:.02,cacheWrite:0},contextWindow:262114,maxTokens:262114},"stepfun/step-3.7-flash":{id:"stepfun/step-3.7-flash",name:"Step 3.7 Flash",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.2,output:1.15,cacheRead:.04,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"thinkingmachines/inkling":{id:"thinkingmachines/inkling",name:"Inkling",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1,output:4.05,cacheRead:.17,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"xai/grok-4.1-fast-non-reasoning":{id:"xai/grok-4.1-fast-non-reasoning",name:"Grok 4.1 Fast Non-Reasoning",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.2,output:.5,cacheRead:.05,cacheWrite:0},contextWindow:1e6,maxTokens:1e6},"xai/grok-4.1-fast-reasoning":{id:"xai/grok-4.1-fast-reasoning",name:"Grok 4.1 Fast Reasoning",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.2,output:.5,cacheRead:.05,cacheWrite:0},contextWindow:1e6,maxTokens:1e6},"xai/grok-4.20-multi-agent":{id:"xai/grok-4.20-multi-agent",name:"Grok 4.20 Multi-Agent",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:2.5,cacheRead:.2,cacheWrite:0},contextWindow:2e6,maxTokens:2e6},"xai/grok-4.20-multi-agent-beta":{id:"xai/grok-4.20-multi-agent-beta",name:"Grok 4.20 Multi Agent Beta",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:2.5,cacheRead:.2,cacheWrite:0},contextWindow:2e6,maxTokens:2e6},"xai/grok-4.20-non-reasoning":{id:"xai/grok-4.20-non-reasoning",name:"Grok 4.20 Non-Reasoning",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:1.25,output:2.5,cacheRead:.2,cacheWrite:0},contextWindow:2e6,maxTokens:2e6},"xai/grok-4.20-non-reasoning-beta":{id:"xai/grok-4.20-non-reasoning-beta",name:"Grok 4.20 Beta Non-Reasoning",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:1.25,output:2.5,cacheRead:.2,cacheWrite:0},contextWindow:2e6,maxTokens:2e6},"xai/grok-4.20-reasoning":{id:"xai/grok-4.20-reasoning",name:"Grok 4.20 Reasoning",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:2.5,cacheRead:.2,cacheWrite:0},contextWindow:2e6,maxTokens:2e6},"xai/grok-4.20-reasoning-beta":{id:"xai/grok-4.20-reasoning-beta",name:"Grok 4.20 Beta Reasoning",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:2.5,cacheRead:.2,cacheWrite:0},contextWindow:2e6,maxTokens:2e6},"xai/grok-4.3":{id:"xai/grok-4.3",name:"Grok 4.3",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:2.5,cacheRead:.2,cacheWrite:0},contextWindow:1e6,maxTokens:1e6},"xai/grok-4.5":{id:"xai/grok-4.5",name:"Grok 4.5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:2,output:6,cacheRead:.5,cacheWrite:0},contextWindow:5e5,maxTokens:5e5},"xai/grok-build-0.1":{id:"xai/grok-build-0.1",name:"Grok Build 0.1",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1,output:2,cacheRead:.2,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"xiaomi/mimo-v2.5":{id:"xiaomi/mimo-v2.5",name:"MiMo M2.5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.14,output:.28,cacheRead:.0028,cacheWrite:0},contextWindow:105e4,maxTokens:131100},"xiaomi/mimo-v2.5-pro":{id:"xiaomi/mimo-v2.5-pro",name:"MiMo V2.5 Pro",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.435,output:.87,cacheRead:.0036,cacheWrite:0},contextWindow:105e4,maxTokens:131e3},"zai/glm-4.5":{id:"zai/glm-4.5",name:"GLM 4.5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.6,output:2.2,cacheRead:.11,cacheWrite:0},contextWindow:128e3,maxTokens:96e3},"zai/glm-4.5-air":{id:"zai/glm-4.5-air",name:"GLM 4.5 Air",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.2,output:1.1,cacheRead:.03,cacheWrite:0},contextWindow:128e3,maxTokens:96e3},"zai/glm-4.5v":{id:"zai/glm-4.5v",name:"GLM 4.5V",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.6,output:1.8,cacheRead:.11,cacheWrite:0},contextWindow:66e3,maxTokens:16e3},"zai/glm-4.6":{id:"zai/glm-4.6",name:"GLM 4.6",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.6,output:2.2,cacheRead:.11,cacheWrite:0},contextWindow:2e5,maxTokens:96e3},"zai/glm-4.6v":{id:"zai/glm-4.6v",name:"GLM-4.6V",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.3,output:.9,cacheRead:.05,cacheWrite:0},contextWindow:128e3,maxTokens:24e3},"zai/glm-4.6v-flash":{id:"zai/glm-4.6v-flash",name:"GLM-4.6V-Flash",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:24e3},"zai/glm-4.7":{id:"zai/glm-4.7",name:"GLM 4.7",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.6,output:2.2,cacheRead:.12,cacheWrite:0},contextWindow:2e5,maxTokens:12e4},"zai/glm-4.7-flash":{id:"zai/glm-4.7-flash",name:"GLM 4.7 Flash",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.07,output:.4,cacheRead:0,cacheWrite:0},contextWindow:2e5,maxTokens:131e3},"zai/glm-4.7-flashx":{id:"zai/glm-4.7-flashx",name:"GLM 4.7 FlashX",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.06,output:.4,cacheRead:.01,cacheWrite:0},contextWindow:2e5,maxTokens:128e3},"zai/glm-5":{id:"zai/glm-5",name:"GLM 5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.95,output:3.15,cacheRead:.2,cacheWrite:0},contextWindow:202800,maxTokens:131100},"zai/glm-5-turbo":{id:"zai/glm-5-turbo",name:"GLM 5 Turbo",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:1.2,output:4,cacheRead:.24,cacheWrite:0},contextWindow:202800,maxTokens:131100},"zai/glm-5.1":{id:"zai/glm-5.1",name:"GLM 5.1",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:1.3,output:4.3,cacheRead:.26,cacheWrite:0},contextWindow:202e3,maxTokens:202e3},"zai/glm-5.2":{id:"zai/glm-5.2",name:"GLM 5.2",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:1.4,output:4.4,cacheRead:.26,cacheWrite:0},contextWindow:104e4,maxTokens:128e3},"zai/glm-5.2-fast":{id:"zai/glm-5.2-fast",name:"GLM 5.2 Fast",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:2.1,output:6.6,cacheRead:.21,cacheWrite:0},contextWindow:1e6,maxTokens:128e3},"zai/glm-5v-turbo":{id:"zai/glm-5v-turbo",name:"GLM 5V Turbo",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.2,output:4,cacheRead:.24,cacheWrite:0},contextWindow:2e5,maxTokens:128e3}};var BC=NC;var jC={"grok-4.3":{id:"grok-4.3",name:"Grok 4.3",api:"openai-completions",provider:"xai",baseUrl:"https://api.x.ai/v1",reasoning:!0,input:["text","image"],cost:{input:1.25,output:2.5,cacheRead:.2,cacheWrite:0},contextWindow:1e6,maxTokens:3e4,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1}},"grok-4.5":{id:"grok-4.5",name:"Grok 4.5",api:"openai-responses",provider:"xai",baseUrl:"https://api.x.ai/v1",compat:{supportsLongCacheRetention:!1},reasoning:!0,input:["text","image"],cost:{input:2,output:6,cacheRead:.5,cacheWrite:0},contextWindow:5e5,maxTokens:5e5,thinkingLevelMap:{off:null,minimal:null}},"grok-build-0.1":{id:"grok-build-0.1",name:"Grok Build 0.1",api:"openai-completions",provider:"xai",baseUrl:"https://api.x.ai/v1",reasoning:!0,input:["text","image"],cost:{input:1,output:2,cacheRead:.2,cacheWrite:0},contextWindow:256e3,maxTokens:256e3,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1}}};var qC=jC;var KC={"mimo-v2-flash":{id:"mimo-v2-flash",name:"MiMo-V2-Flash",api:"openai-completions",provider:"xiaomi",baseUrl:"https://api.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text"],cost:{input:.14,output:.28,cacheRead:.0028,cacheWrite:0},contextWindow:262144,maxTokens:65536},"mimo-v2-omni":{id:"mimo-v2-omni",name:"MiMo-V2-Omni",api:"openai-completions",provider:"xiaomi",baseUrl:"https://api.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text","image"],cost:{input:.14,output:.28,cacheRead:.0028,cacheWrite:0},contextWindow:262144,maxTokens:131072},"mimo-v2-pro":{id:"mimo-v2-pro",name:"MiMo-V2-Pro",api:"openai-completions",provider:"xiaomi",baseUrl:"https://api.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text"],cost:{input:.435,output:.87,cacheRead:.0036,cacheWrite:0},contextWindow:1048576,maxTokens:131072},"mimo-v2.5":{id:"mimo-v2.5",name:"MiMo-V2.5",api:"openai-completions",provider:"xiaomi",baseUrl:"https://api.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text","image"],cost:{input:.14,output:.28,cacheRead:.0028,cacheWrite:0},contextWindow:1048576,maxTokens:131072},"mimo-v2.5-pro":{id:"mimo-v2.5-pro",name:"MiMo-V2.5-Pro",api:"openai-completions",provider:"xiaomi",baseUrl:"https://api.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text"],cost:{input:.435,output:.87,cacheRead:.0036,cacheWrite:0},contextWindow:1048576,maxTokens:131072},"mimo-v2.5-pro-ultraspeed":{id:"mimo-v2.5-pro-ultraspeed",name:"MiMo-V2.5-Pro-UltraSpeed",api:"openai-completions",provider:"xiaomi",baseUrl:"https://api.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text"],cost:{input:1.305,output:2.61,cacheRead:.0108,cacheWrite:0},contextWindow:1048576,maxTokens:131072}};var GC=KC;var zC={"mimo-v2-pro":{id:"mimo-v2-pro",name:"MiMo-V2-Pro",api:"openai-completions",provider:"xiaomi-token-plan-ams",baseUrl:"https://token-plan-ams.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:1048576,maxTokens:131072},"mimo-v2.5":{id:"mimo-v2.5",name:"MiMo-V2.5",api:"openai-completions",provider:"xiaomi-token-plan-ams",baseUrl:"https://token-plan-ams.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:1048576,maxTokens:131072},"mimo-v2.5-pro":{id:"mimo-v2.5-pro",name:"MiMo-V2.5-Pro",api:"openai-completions",provider:"xiaomi-token-plan-ams",baseUrl:"https://token-plan-ams.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:1048576,maxTokens:131072}};var HC=zC;var VC={"mimo-v2-pro":{id:"mimo-v2-pro",name:"MiMo-V2-Pro",api:"openai-completions",provider:"xiaomi-token-plan-cn",baseUrl:"https://token-plan-cn.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:1048576,maxTokens:131072},"mimo-v2.5":{id:"mimo-v2.5",name:"MiMo-V2.5",api:"openai-completions",provider:"xiaomi-token-plan-cn",baseUrl:"https://token-plan-cn.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:1048576,maxTokens:131072},"mimo-v2.5-pro":{id:"mimo-v2.5-pro",name:"MiMo-V2.5-Pro",api:"openai-completions",provider:"xiaomi-token-plan-cn",baseUrl:"https://token-plan-cn.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:1048576,maxTokens:131072}};var QC=VC;var JC={"mimo-v2-pro":{id:"mimo-v2-pro",name:"MiMo-V2-Pro",api:"openai-completions",provider:"xiaomi-token-plan-sgp",baseUrl:"https://token-plan-sgp.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:1048576,maxTokens:131072},"mimo-v2.5":{id:"mimo-v2.5",name:"MiMo-V2.5",api:"openai-completions",provider:"xiaomi-token-plan-sgp",baseUrl:"https://token-plan-sgp.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:1048576,maxTokens:131072},"mimo-v2.5-pro":{id:"mimo-v2.5-pro",name:"MiMo-V2.5-Pro",api:"openai-completions",provider:"xiaomi-token-plan-sgp",baseUrl:"https://token-plan-sgp.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:1048576,maxTokens:131072}};var YC=JC;var XC={"glm-4.5-air":{id:"glm-4.5-air",name:"GLM-4.5-Air",api:"openai-completions",provider:"zai",baseUrl:"https://api.z.ai/api/coding/paas/v4",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,thinkingFormat:"zai"},contextWindow:131072,maxTokens:98304},"glm-4.7":{id:"glm-4.7",name:"GLM-4.7",api:"openai-completions",provider:"zai",baseUrl:"https://api.z.ai/api/coding/paas/v4",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,thinkingFormat:"zai",zaiToolStream:!0},contextWindow:204800,maxTokens:131072},"glm-5-turbo":{id:"glm-5-turbo",name:"GLM-5-Turbo",api:"openai-completions",provider:"zai",baseUrl:"https://api.z.ai/api/coding/paas/v4",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,thinkingFormat:"zai",zaiToolStream:!0},contextWindow:2e5,maxTokens:131072},"glm-5.1":{id:"glm-5.1",name:"GLM-5.1",api:"openai-completions",provider:"zai",baseUrl:"https://api.z.ai/api/coding/paas/v4",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,thinkingFormat:"zai",zaiToolStream:!0},contextWindow:2e5,maxTokens:131072},"glm-5.2":{id:"glm-5.2",name:"GLM-5.2",api:"openai-completions",provider:"zai",baseUrl:"https://api.z.ai/api/coding/paas/v4",reasoning:!0,thinkingLevelMap:{minimal:null,low:"high",medium:"high",high:"high",max:"max"},input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!0,thinkingFormat:"zai",zaiToolStream:!0},contextWindow:1e6,maxTokens:131072},"glm-5v-turbo":{id:"glm-5v-turbo",name:"GLM-5V-Turbo",api:"openai-completions",provider:"zai",baseUrl:"https://api.z.ai/api/coding/paas/v4",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,thinkingFormat:"zai",zaiToolStream:!0},contextWindow:2e5,maxTokens:131072}};var ZC=XC;var e1={"glm-4.5-air":{id:"glm-4.5-air",name:"GLM-4.5-Air",api:"openai-completions",provider:"zai-coding-cn",baseUrl:"https://open.bigmodel.cn/api/coding/paas/v4",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,thinkingFormat:"zai"},contextWindow:131072,maxTokens:98304},"glm-4.7":{id:"glm-4.7",name:"GLM-4.7",api:"openai-completions",provider:"zai-coding-cn",baseUrl:"https://open.bigmodel.cn/api/coding/paas/v4",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,thinkingFormat:"zai",zaiToolStream:!0},contextWindow:204800,maxTokens:131072},"glm-5-turbo":{id:"glm-5-turbo",name:"GLM-5-Turbo",api:"openai-completions",provider:"zai-coding-cn",baseUrl:"https://open.bigmodel.cn/api/coding/paas/v4",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,thinkingFormat:"zai",zaiToolStream:!0},contextWindow:2e5,maxTokens:131072},"glm-5.1":{id:"glm-5.1",name:"GLM-5.1",api:"openai-completions",provider:"zai-coding-cn",baseUrl:"https://open.bigmodel.cn/api/coding/paas/v4",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,thinkingFormat:"zai",zaiToolStream:!0},contextWindow:2e5,maxTokens:131072},"glm-5.2":{id:"glm-5.2",name:"GLM-5.2",api:"openai-completions",provider:"zai-coding-cn",baseUrl:"https://open.bigmodel.cn/api/coding/paas/v4",reasoning:!0,thinkingLevelMap:{minimal:null,low:"high",medium:"high",high:"high",max:"max"},input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!0,thinkingFormat:"zai",zaiToolStream:!0},contextWindow:1e6,maxTokens:131072},"glm-5v-turbo":{id:"glm-5v-turbo",name:"GLM-5V-Turbo",api:"openai-completions",provider:"zai-coding-cn",baseUrl:"https://open.bigmodel.cn/api/coding/paas/v4",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,thinkingFormat:"zai",zaiToolStream:!0},contextWindow:2e5,maxTokens:131072}};var t1=e1;be();be();var VU={name:"AWS credentials or bearer token",login:async t=>{let e=await t.prompt({type:"select",message:"Select Amazon Bedrock authentication method:",options:[{id:"bearer-token",label:"Bearer token"},{id:"aws-profile",label:"AWS profile"},{id:"credential-chain",label:"Existing AWS credential chain"}]});if(e==="bearer-token")return{type:"api_key",key:await t.prompt({type:"secret",message:"Enter Amazon Bedrock bearer token"})};if(t.notify({type:"info",message:"Amazon Bedrock supports AWS profiles, IAM credentials, and role-based credentials.",links:[{label:"AWS credential provider chain",url:"https://docs.aws.amazon.com/sdkref/latest/guide/standardized-credentials.html"}]}),e==="aws-profile")return{type:"api_key",env:{AWS_PROFILE:await t.prompt({type:"text",message:"Enter AWS profile name"})}};if(e!=="credential-chain")throw new Error(`Unknown Amazon Bedrock auth method: ${e}`);return await t.prompt({type:"text",message:"Configure AWS credentials, then press Enter to continue"}),{type:"api_key"}},resolve:async({ctx:t,credential:e})=>{if(e?.key)return{auth:{apiKey:e.key},source:"stored credential"};if(await t.env("AWS_BEARER_TOKEN_BEDROCK"))return{auth:{},source:"AWS_BEARER_TOKEN_BEDROCK"};if(e?.env?.AWS_PROFILE??await t.env("AWS_PROFILE"))return{auth:{},env:e?.env,source:e?.env?.AWS_PROFILE?"stored credential":"AWS_PROFILE"};if(await t.env("AWS_ACCESS_KEY_ID")&&await t.env("AWS_SECRET_ACCESS_KEY"))return{auth:{},source:"AWS access keys"};if(await t.env("AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"))return{auth:{},source:"ECS task role"};if(await t.env("AWS_CONTAINER_CREDENTIALS_FULL_URI"))return{auth:{},source:"ECS task role"};if(await t.env("AWS_WEB_IDENTITY_TOKEN_FILE"))return{auth:{},source:"web identity token"}}};function n1(){return Y({id:"amazon-bedrock",name:"Amazon Bedrock",auth:{apiKey:VU},models:Object.values(BT),api:Vd()})}be();function i1(){return Y({id:"ant-ling",name:"Ant Ling",baseUrl:"https://api.ant-ling.com/v1",auth:{apiKey:ne("Ant Ling API key",["ANT_LING_API_KEY"])},models:Object.values(qT),api:ve()})}var kc=t=>import(import.meta.url.endsWith(".js")?t.replace(/\.ts$/,".js"):t),wi;var o1=async()=>wi?wi.anthropic():(await kc("./anthropic.ts")).anthropicOAuth,r1=async()=>wi?wi.openaiCodex():(await kc("./openai-codex.ts")).openaiCodexOAuth,s1=async()=>wi?wi.githubCopilot():(await kc("./github-copilot.ts")).githubCopilotOAuth,a1=async()=>wi?wi.xai():(await kc("./xai.ts")).xaiOAuth,l1=async t=>wi?wi.radius(t):(await kc("./radius.ts")).createRadiusOAuth(t);be();function c1(){return Y({id:"anthropic",name:"Anthropic",baseUrl:"https://api.anthropic.com",auth:{apiKey:ne("Anthropic API key",["ANTHROPIC_OAUTH_TOKEN","ANTHROPIC_API_KEY"]),oauth:yi({name:"Anthropic (Claude Pro/Max)",load:o1})},models:Object.values(GT),api:at()})}be();function u1(){return Y({id:"azure-openai-responses",name:"Azure OpenAI",auth:{apiKey:ne("Azure OpenAI API key",["AZURE_OPENAI_API_KEY"])},models:Object.values(HT),api:Hd()})}be();function d1(){return Y({id:"cerebras",name:"Cerebras",baseUrl:"https://api.cerebras.ai/v1",auth:{apiKey:ne("Cerebras API key",["CEREBRAS_API_KEY"])},models:Object.values(QT),api:ve()})}be();var Wf="CLOUDFLARE_API_KEY",QU="CLOUDFLARE_ACCOUNT_ID",JU="CLOUDFLARE_GATEWAY_ID";async function Lf(t,e,n){return(n?t===Wf?n.key:n.env?.[t]:void 0)??await e.env(t)}async function p1(t,e,n){let i=await Lf(Wf,e,n),o=await Lf(QU,e,n),r=t==="ai-gateway"?await Lf(JU,e,n):void 0;if(!(!i||!o||t==="ai-gateway"&&!r))return{apiKey:i,env:{CLOUDFLARE_ACCOUNT_ID:o,...r?{CLOUDFLARE_GATEWAY_ID:r}:{}},source:n?"stored credential":Wf}}function m1(){return{name:"Cloudflare API key",login:async t=>{let e=await t.prompt({type:"secret",message:"Enter Cloudflare API key"}),n=await t.prompt({type:"text",message:"Enter Cloudflare account ID"});return{type:"api_key",key:e,env:{CLOUDFLARE_ACCOUNT_ID:n}}},resolve:async({ctx:t,credential:e})=>{let n=await p1("workers-ai",t,e);if(n)return{auth:{apiKey:n.apiKey},env:n.env,source:n.source}}}}function h1(){return{name:"Cloudflare API key",login:async t=>{let e=await t.prompt({type:"secret",message:"Enter Cloudflare API key"}),n=await t.prompt({type:"text",message:"Enter Cloudflare account ID"}),i=await t.prompt({type:"text",message:"Enter Cloudflare AI Gateway ID"});return{type:"api_key",key:e,env:{CLOUDFLARE_ACCOUNT_ID:n,CLOUDFLARE_GATEWAY_ID:i}}},resolve:async({ctx:t,credential:e})=>{let n=await p1("ai-gateway",t,e);if(n)return{auth:{headers:{"cf-aig-authorization":`Bearer ${n.apiKey}`,Authorization:null,"x-api-key":null}},env:n.env,source:n.source}}}}var Ff="CLOUDFLARE_ACCOUNT_ID",Df="CLOUDFLARE_GATEWAY_ID";function g1(t,e){if(!e)return t;let n=t.baseUrl.replaceAll(`{${Ff}}`,e[Ff]??`{${Ff}}`).replaceAll(`{${Df}}`,e[Df]??`{${Df}}`);return n===t.baseUrl?t:{...t,baseUrl:n}}function Aa(t){return{stream:(e,n,i)=>t.stream(g1(e,i?.env),n,i),streamSimple:(e,n,i)=>t.streamSimple(g1(e,i?.env),n,i)}}function f1(){return Y({id:"cloudflare-ai-gateway",name:"Cloudflare AI Gateway",auth:{apiKey:h1()},models:Object.values(YT),api:{"anthropic-messages":Aa(at()),"openai-completions":Aa(ve()),"openai-responses":Aa(Un())}})}be();function v1(){return Y({id:"cloudflare-workers-ai",name:"Cloudflare Workers AI",auth:{apiKey:m1()},models:Object.values(ZT),api:Aa(ve())})}be();function b1(){return Y({id:"deepseek",name:"DeepSeek",baseUrl:"https://api.deepseek.com",auth:{apiKey:ne("DeepSeek API key",["DEEPSEEK_API_KEY"])},models:Object.values(tC),api:ve()})}be();function x1(){return Y({id:"fireworks",name:"Fireworks",baseUrl:"https://api.fireworks.ai/inference",auth:{apiKey:ne("Fireworks API key",["FIREWORKS_API_KEY"])},models:Object.values(iC),api:{"anthropic-messages":at(),"openai-completions":ve()}})}be();function y1(){return Y({id:"github-copilot",name:"GitHub Copilot",baseUrl:"https://api.individual.githubcopilot.com",auth:{apiKey:ne("GitHub Copilot token",["COPILOT_GITHUB_TOKEN"]),oauth:yi({name:"GitHub Copilot",load:s1})},models:Object.values(rC),filterModels:(t,e)=>{if(e?.type!=="oauth")return t;let n=e.availableModelIds;if(!Array.isArray(n)||!n.every(o=>typeof o=="string"))return t;let i=new Set(n);return t.filter(o=>i.has(o.id))},api:{"anthropic-messages":at(),"openai-completions":ve(),"openai-responses":Un()}})}be();function w1(){return Y({id:"google",name:"Google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",auth:{apiKey:ne("Gemini API key",["GEMINI_API_KEY"])},models:Object.values(aC),api:Pa()})}be();var YU="~/.config/gcloud/application_default_credentials.json",XU={name:"Google Cloud credentials",login:async t=>{let e=await t.prompt({type:"select",message:"Select Google Vertex AI authentication method:",options:[{id:"api-key",label:"Google Cloud API key"},{id:"adc",label:"Application Default Credentials"},{id:"service-account",label:"Service account credentials file"}]});if(e==="api-key")return{type:"api_key",key:await t.prompt({type:"secret",message:"Enter Google Cloud API key"})};if(e!=="adc"&&e!=="service-account")throw new Error(`Unknown Google Vertex AI auth method: ${e}`);t.notify({type:"info",message:e==="adc"?"Run `gcloud auth application-default login`, then provide the project and location.":"Provide a service account credentials file, project, and location.",links:[{label:"Application Default Credentials",url:"https://cloud.google.com/docs/authentication/provide-credentials-adc"}]});let n=await t.prompt({type:"text",message:"Enter Google Cloud project ID"}),i=await t.prompt({type:"text",message:"Enter Google Cloud location"}),o=e==="service-account"?await t.prompt({type:"text",message:"Enter service account credentials file path"}):void 0;return{type:"api_key",env:{GOOGLE_CLOUD_PROJECT:n,GOOGLE_CLOUD_LOCATION:i,...o?{GOOGLE_APPLICATION_CREDENTIALS:o}:{}}}},resolve:async({ctx:t,credential:e})=>{let n=e?.key??await t.env("GOOGLE_CLOUD_API_KEY");if(n)return{auth:{apiKey:n},source:e?.key?"stored credential":"GOOGLE_CLOUD_API_KEY"};let i=e?.env?.GOOGLE_APPLICATION_CREDENTIALS??await t.env("GOOGLE_APPLICATION_CREDENTIALS"),o=await t.fileExists(i??YU),r=e?.env?.GOOGLE_CLOUD_PROJECT??await t.env("GOOGLE_CLOUD_PROJECT")??await t.env("GCLOUD_PROJECT"),s=e?.env?.GOOGLE_CLOUD_LOCATION??await t.env("GOOGLE_CLOUD_LOCATION");if(o&&r&&s)return{auth:{},env:e?.env,source:e?"stored credential":"gcloud application default credentials"}}};function S1(){return Y({id:"google-vertex",name:"Google Vertex AI",auth:{apiKey:XU},models:Object.values(cC),api:ip()})}be();function k1(){return Y({id:"groq",name:"Groq",baseUrl:"https://api.groq.com/openai/v1",auth:{apiKey:ne("Groq API key",["GROQ_API_KEY"])},models:Object.values(dC),api:ve()})}be();function T1(){return Y({id:"huggingface",name:"Hugging Face",baseUrl:"https://router.huggingface.co/v1",auth:{apiKey:ne("Hugging Face token",["HF_TOKEN"])},models:Object.values(mC),api:ve()})}be();function C1(){return Y({id:"kimi-coding",name:"Kimi For Coding",baseUrl:"https://api.kimi.com/coding",auth:{apiKey:ne("Kimi API key",["KIMI_API_KEY"])},models:Object.values(gC),api:at()})}be();function M1(){return Y({id:"minimax",name:"MiniMax",baseUrl:"https://api.minimax.io/anthropic",auth:{apiKey:ne("MiniMax API key",["MINIMAX_API_KEY"])},models:Object.values(vC),api:at()})}be();function R1(){return Y({id:"minimax-cn",name:"MiniMax CN",baseUrl:"https://api.minimaxi.com/anthropic",auth:{apiKey:ne("MiniMax CN API key",["MINIMAX_CN_API_KEY"])},models:Object.values(xC),api:at()})}be();function P1(){return Y({id:"mistral",name:"Mistral",baseUrl:"https://api.mistral.ai",auth:{apiKey:ne("Mistral API key",["MISTRAL_API_KEY"])},models:Object.values(wC),api:op()})}be();function I1(){return Y({id:"moonshotai",name:"Moonshot AI",baseUrl:"https://api.moonshot.ai/v1",auth:{apiKey:ne("Moonshot AI API key",["MOONSHOT_API_KEY"])},models:Object.values(kC),api:ve()})}be();function E1(){return Y({id:"moonshotai-cn",name:"Moonshot AI CN",baseUrl:"https://api.moonshot.cn/v1",auth:{apiKey:ne("Moonshot AI API key",["MOONSHOT_API_KEY"])},models:Object.values(CC),api:ve()})}be();function A1(){return Y({id:"nvidia",name:"NVIDIA",baseUrl:"https://integrate.api.nvidia.com/v1",auth:{apiKey:ne("NVIDIA API key",["NVIDIA_API_KEY"])},models:Object.values(RC),api:ve()})}be();function _1(){return Y({id:"openai",name:"OpenAI",baseUrl:"https://api.openai.com/v1",auth:{apiKey:ne("OpenAI API key",["OPENAI_API_KEY"])},models:Object.values(IC),api:Un()})}be();function O1(){return Y({id:"openai-codex",name:"OpenAI Codex",baseUrl:"https://chatgpt.com/backend-api",auth:{oauth:yi({name:"OpenAI (ChatGPT Plus/Pro)",load:r1})},models:Object.values(AC),api:cp()})}be();function L1(){return Y({id:"opencode",name:"OpenCode Zen",auth:{apiKey:ne("OpenCode API key",["OPENCODE_API_KEY"])},models:Object.values(OC),api:{"anthropic-messages":at(),"google-generative-ai":Pa(),"openai-completions":ve(),"openai-responses":Un()}})}be();function W1(){return Y({id:"opencode-go",name:"OpenCode Zen Go",auth:{apiKey:ne("OpenCode API key",["OPENCODE_API_KEY"])},models:Object.values(WC),api:{"anthropic-messages":at(),"openai-completions":ve()}})}be();function F1(){return Y({id:"openrouter",name:"OpenRouter",baseUrl:"https://openrouter.ai/api/v1",auth:{apiKey:ne("OpenRouter API key",["OPENROUTER_API_KEY"])},models:Object.values(DC),api:ve()})}var D1="https://radius.pi.dev";function Uf(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function ZU(t){return Uf(t)&&typeof t.id=="string"&&typeof t.name=="string"&&typeof t.reasoning=="boolean"&&Array.isArray(t.input)&&Uf(t.cost)&&typeof t.contextWindow=="number"&&typeof t.maxTokens=="number"}function U1(t){if(!(!Uf(t)||typeof t.baseUrl!="string"||!Array.isArray(t.models)))return{baseUrl:t.baseUrl,models:t.models.filter(ZU).map(e=>({...e}))}}function $1(t){return(/^https?:\/\//iu.test(t)?t:`https://${t}`).replace(/\/+$/u,"")}function e$(t){return U1(t?.gatewayConfig)}function $f(t,e){return e.models.map(n=>({...n,api:"pi-messages",provider:t,baseUrl:e.baseUrl}))}function Nf(t,e){let n=e$(e);return n?$f(t,n):[]}function t$(t){let e=t.trim();return e.length>512?`${e.slice(0,512)}\u2026`:e}async function N1(t,e,n){let i={accept:"application/json"};e&&(i.authorization=`Bearer ${e}`);let o=await fetch(new URL("/v1/config",t),{headers:i,signal:n});if(!o.ok)throw new Error(`Could not load Radius config from ${t}: ${o.status}: ${t$(await o.text())}`);let r=U1(await o.json());if(!r)throw new Error(`Invalid Radius config from ${t}`);return r}function B1(t={}){let e=t.id??"radius",n=t.name??"Radius",i=$1(t.gateway??D1),o=Nf(e,void 0),r,s=up();return{id:e,name:n,auth:{apiKey:ne("Radius API key",["RADIUS_API_KEY"]),oauth:yi({name:n,load:()=>l1({name:n,gateway:i})})},getModels:()=>o,refreshModels:a=>(r??=(async()=>{try{let l=await a.store.read();if(l&&(o=l.models.filter(d=>d.provider===e)),!l&&a.credential?.type==="oauth"){let d=Nf(e,a.credential);d.length>0&&(o=d,await a.store.write({models:d,checkedAt:Date.now()}))}if(!a.allowNetwork||a.signal?.aborted)return;let c=a.credential?.type==="oauth"?a.credential.access:a.credential?.key,u=await N1(i,c,a.signal);if(a.signal?.aborted)return;o=$f(e,u),await a.store.write({models:o,checkedAt:Date.now()})}finally{r=void 0}})(),r),stream:(a,l,c)=>s.stream(a,l,c),streamSimple:(a,l,c)=>s.streamSimple(a,l,c)}}be();function j1(){return Y({id:"together",name:"Together",baseUrl:"https://api.together.ai/v1",auth:{apiKey:ne("Together API key",["TOGETHER_API_KEY"])},models:Object.values($C),api:ve()})}be();function q1(){return Y({id:"vercel-ai-gateway",name:"Vercel AI Gateway",baseUrl:"https://ai-gateway.vercel.sh",auth:{apiKey:ne("Vercel AI Gateway API key",["AI_GATEWAY_API_KEY"])},models:Object.values(BC),api:at()})}be();function K1(){return Y({id:"xai",name:"xAI",baseUrl:"https://api.x.ai/v1",auth:{apiKey:ne("xAI API key",["XAI_API_KEY"]),oauth:yi({name:"xAI (Grok/X subscription)",loginLabel:"Sign in with SuperGrok or X Premium",load:a1})},models:Object.values(qC),api:{"openai-completions":ve(),"openai-responses":Un()}})}be();function G1(){return Y({id:"xiaomi",name:"Xiaomi",baseUrl:"https://api.xiaomimimo.com/v1",auth:{apiKey:ne("Xiaomi API key",["XIAOMI_API_KEY"])},models:Object.values(GC),api:ve()})}be();function z1(){return Y({id:"xiaomi-token-plan-ams",name:"Xiaomi Token Plan AMS",baseUrl:"https://token-plan-ams.xiaomimimo.com/v1",auth:{apiKey:ne("Xiaomi Token Plan AMS API key",["XIAOMI_TOKEN_PLAN_AMS_API_KEY"])},models:Object.values(HC),api:ve()})}be();function H1(){return Y({id:"xiaomi-token-plan-cn",name:"Xiaomi Token Plan CN",baseUrl:"https://token-plan-cn.xiaomimimo.com/v1",auth:{apiKey:ne("Xiaomi Token Plan CN API key",["XIAOMI_TOKEN_PLAN_CN_API_KEY"])},models:Object.values(QC),api:ve()})}be();function V1(){return Y({id:"xiaomi-token-plan-sgp",name:"Xiaomi Token Plan SGP",baseUrl:"https://token-plan-sgp.xiaomimimo.com/v1",auth:{apiKey:ne("Xiaomi Token Plan SGP API key",["XIAOMI_TOKEN_PLAN_SGP_API_KEY"])},models:Object.values(YC),api:ve()})}be();function Q1(){return Y({id:"zai",name:"Z.AI",baseUrl:"https://api.z.ai/api/coding/paas/v4",auth:{apiKey:ne("Z.AI API key",["ZAI_API_KEY"])},models:Object.values(ZC),api:ve()})}be();function J1(){return Y({id:"zai-coding-cn",name:"Z.AI Coding CN",baseUrl:"https://open.bigmodel.cn/api/coding/paas/v4",auth:{apiKey:ne("Z.AI Coding CN API key",["ZAI_CODING_CN_API_KEY"])},models:Object.values(t1),api:ve()})}function n$(){return[n1(),i1(),c1(),u1(),d1(),f1(),v1(),b1(),x1(),y1(),w1(),S1(),k1(),T1(),C1(),M1(),R1(),P1(),I1(),E1(),A1(),_1(),O1(),L1(),W1(),F1(),B1(),j1(),q1(),K1(),G1(),z1(),H1(),V1(),Q1(),J1()]}function Y1(t){let e=ek(t);for(let n of n$())e.setProvider(n);return e}var Z1=new Map;function i$(t,e){return(n,i,o)=>{if(n.api!==t)throw new Error(`Mismatched api: ${n.api} expected ${t}`);return e(n,i,o)}}function o$(t,e){return(n,i,o)=>{if(n.api!==t)throw new Error(`Mismatched api: ${n.api} expected ${t}`);return e(n,i,o)}}function r$(t,e){Z1.set(t.api,{provider:{api:t.api,stream:i$(t.api,t.stream),streamSimple:o$(t.api,t.streamSimple)},sourceId:e})}function dp(t){return Z1.get(t)?.provider}var s$=[["anthropic-messages",at()],["openai-completions",ve()],["openai-responses",Un()],["openai-codex-responses",cp()],["azure-openai-responses",Hd()],["google-generative-ai",Pa()],["google-vertex",ip()],["mistral-conversations",op()],["bedrock-converse-stream",Vd()],["pi-messages",up()]],eM=new Map;function a$(){for(let[t,e]of s$)dp(t)||r$({api:t,stream:e.stream,streamSimple:e.streamSimple}),eM.set(t,dp(t))}a$();var tM=Y1(),l$="<authenticated>";function nM(t){return typeof t=="string"&&t.trim().length>0}function X1(t,e){if(nM(e?.apiKey))return e;let n=$T(t.provider,e?.env);return!n||n===l$?e:{...e,apiKey:n}}function c$(t){return nM(t?.apiKey)||typeof t?.headers?.["cf-aig-authorization"]=="string"}function u$(t){if(dp(t.api)!==eM.get(t.api))return;let e=tM.getProvider(t.provider);return e?.getModels().some(n=>n.api===t.api)?e:void 0}function d$(t){let e=dp(t);if(!e)throw new Error(`No API provider registered for api: ${t}`);return e}function p$(t,e,n){let i=u$(t);return i?t.provider.startsWith("cloudflare-")&&!c$(n)?tM.stream(t,e,n):i.stream(t,e,X1(t,n)):d$(t.api).stream(t,e,X1(t,n))}async function iM(t,e,n){return p$(t,e,n).result()}import*as Mn from"node:fs";import*as Ur from"node:path";import{spawn as m$}from"child_process";import{readdirSync as h$,statSync as oM}from"fs";import{homedir as rM}from"os";import{basename as Bf,dirname as mp,join as Do}from"path";function pp(t,e){let n=t.toLowerCase(),i=e.toLowerCase(),o=u=>{if(u.length===0)return{matches:!0,score:0};if(u.length>i.length)return{matches:!1,score:0};let d=0,p=0,m=-1,g=0;for(let h=0;h<i.length&&d<u.length;h++)if(i[h]===u[d]){let f=h===0||/[\s\-_./:]/.test(i[h-1]);m===h-1?(g++,p-=g*5):(g=0,m>=0&&(p+=(h-m-1)*2)),f&&(p-=10),p+=h*.1,m=h,d++}return d<u.length?{matches:!1,score:0}:(u===i&&(p-=100),{matches:!0,score:p})},r=o(n);if(r.matches)return r;let s=n.match(/^(?<letters>[a-z]+)(?<digits>[0-9]+)$/),a=n.match(/^(?<digits>[0-9]+)(?<letters>[a-z]+)$/),l=s?`${s.groups?.digits??""}${s.groups?.letters??""}`:a?`${a.groups?.letters??""}${a.groups?.digits??""}`:"";if(!l)return r;let c=o(l);return c.matches?{matches:!0,score:c.score+5}:r}function Kt(t,e,n){if(!e.trim())return t;let i=e.trim().split(/[\s/]+/).filter(r=>r.length>0);if(i.length===0)return t;let o=[];for(let r of t){let s=n(r),a=0,l=!0;for(let c of i){let u=pp(c,s);if(u.matches)a+=u.score;else{l=!1;break}}l&&o.push({item:r,totalScore:a})}return o.sort((r,s)=>r.totalScore-s.totalScore),o.map(r=>r.item)}var dM=new Set([" "," ",'"',"'","="]);function Mr(t){return t.replace(/\\/g,"/")}function g$(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function f$(t){let e=Mr(t);if(!e.includes("/"))return e;let n=e.endsWith("/"),i=e.replace(/^\/+|\/+$/g,"");if(!i)return e;let o="[\\\\/]",r=i.split("/").filter(Boolean).map(a=>g$(a));if(r.length===0)return e;let s=r.join(o);return n&&(s+=o),s}function sM(t){for(let e=t.length-1;e>=0;e-=1)if(dM.has(t[e]??""))return e;return-1}function v$(t){let e=!1,n=-1;for(let i=0;i<t.length;i+=1)t[i]==='"'&&(e=!e,e&&(n=i));return e?n:null}function aM(t,e){return e===0||dM.has(t[e-1]??"")}function lM(t){let e=v$(t);return e===null?null:e>0&&t[e-1]==="@"?aM(t,e-1)?t.slice(e-1):null:aM(t,e)?t.slice(e):null}function cM(t){return t.startsWith('@"')?{rawPrefix:t.slice(2),isAtPrefix:!0,isQuotedPrefix:!0}:t.startsWith('"')?{rawPrefix:t.slice(1),isAtPrefix:!1,isQuotedPrefix:!0}:t.startsWith("@")?{rawPrefix:t.slice(1),isAtPrefix:!0,isQuotedPrefix:!1}:{rawPrefix:t,isAtPrefix:!1,isQuotedPrefix:!1}}function uM(t,e){let n=e.isQuotedPrefix||t.includes(" "),i=e.isAtPrefix?"@":"";return n?`${`${i}"`}${t}"`:`${i}${t}`}async function b$(t,e,n,i,o){let r=["--base-directory",t,"--max-results",String(i),"--type","f","--type","d","--follow","--hidden","--exclude",".git","--exclude",".git/*","--exclude",".git/**"];return Mr(n).includes("/")&&r.push("--full-path"),n&&r.push(f$(n)),await new Promise(s=>{if(o.aborted){s([]);return}let a=m$(e,r,{stdio:["ignore","pipe","pipe"]}),l="",c=!1,u=p=>{c||(c=!0,o.removeEventListener("abort",d),s(p))},d=()=>{a.exitCode===null&&a.kill("SIGKILL")};o.addEventListener("abort",d,{once:!0}),a.stdout.setEncoding("utf-8"),a.stdout.on("data",p=>{l+=p}),a.on("error",()=>{u([])}),a.on("close",p=>{if(o.aborted||p!==0||!l){u([]);return}let m=l.trim().split(`
35
+ `).find(n=>n.startsWith("data:"))?.slice(5).trim();return e&&e!=="[DONE]"?JSON.parse(e):void 0}function oU(t,e,n){let i=n?"aborted":"error",o={role:"assistant",content:[],api:t.api,provider:t.provider,model:t.id,usage:WT(),stopReason:i,errorMessage:e instanceof Error?e.message:String(e),timestamp:Date.now()};return!n&&e instanceof wc&&bc(o,rp("pi_messages_response_failure",e,e.diagnosticDetails)),{type:"error",reason:i,error:o}}function rU(t,e){return t||(Ae("PI_CACHE_RETENTION",e)==="long"?"long":void 0)}var wc,FT,sU,UT=_e(()=>{"use strict";Tf();ii();Ji();Sa();Yi();wc=class extends Error{constructor(e,n,i){super(e),this.name="PiMessagesResponseError",this.code=n,this.diagnosticDetails=i}};FT=(t,e,n)=>{let i=new st,o=nU(t);return(async()=>{try{let r=n?.apiKey;if(!r)throw new Error(`No API key provided for provider "${t.provider}"`);let s=new URL(`${t.baseUrl.replace(/\/+$/u,"")}/messages`);n?.debug&&s.searchParams.set("debug","1");let a={model:t.id,context:e,options:{temperature:n?.temperature,maxTokens:n?.maxTokens,reasoning:n?.reasoning,cacheRetention:rU(n?.cacheRetention,n?.env),sessionId:n?.sessionId,toolChoice:n?.toolChoice}},l=await n?.onPayload?.(a,t);l!==void 0&&(a=l);let c=await fetch(s,{method:"POST",headers:{authorization:`Bearer ${r}`,accept:"text/event-stream","content-type":"application/json",...wa(n?.headers)},body:JSON.stringify(a),signal:n?.signal});if(await n?.onResponse?.({status:c.status,headers:kn(c.headers)},t),!c.ok){let u=await c.text();throw tU(t,s,c,u)}if(!c.body)throw new Error(`${t.provider} response has no body`);for await(let u of iU(c.body)){let d=o(u);if(i.push(d),d.type==="done"||d.type==="error")return}throw new Error(`${t.provider} stream ended without a terminal event`)}catch(r){i.push(oU(t,r,n?.signal?.aborted??!1))}})(),i},sU=(t,e,n)=>{let i=n;return FT(t,e,{...n,reasoning:n?.reasoning,toolChoice:i?.toolChoice,debug:i?.debug})}});var Qt=C(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.HasPropertyKey=TV;It.IsAsyncIterator=CV;It.IsArray=rx;It.IsBigInt=MV;It.IsBoolean=RV;It.IsDate=PV;It.IsFunction=IV;It.IsIterator=EV;It.IsNull=AV;It.IsNumber=_V;It.IsObject=sx;It.IsRegExp=OV;It.IsString=LV;It.IsSymbol=WV;It.IsUint8Array=ax;It.IsUndefined=FV;function TV(t,e){return e in t}function CV(t){return sx(t)&&!rx(t)&&!ax(t)&&Symbol.asyncIterator in t}function rx(t){return Array.isArray(t)}function MV(t){return typeof t=="bigint"}function RV(t){return typeof t=="boolean"}function PV(t){return t instanceof globalThis.Date}function IV(t){return typeof t=="function"}function EV(t){return sx(t)&&!rx(t)&&!ax(t)&&Symbol.iterator in t}function AV(t){return t===null}function _V(t){return typeof t=="number"}function sx(t){return typeof t=="object"&&t!==null}function OV(t){return t instanceof globalThis.RegExp}function LV(t){return typeof t=="string"}function WV(t){return typeof t=="symbol"}function ax(t){return t instanceof globalThis.Uint8Array}function FV(t){return t===void 0}});var ln=C(mo=>{"use strict";var DV=mo&&mo.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),UV=mo&&mo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$V=mo&&mo.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&DV(n,e,i[o]);return UV(n,e),n}})();Object.defineProperty(mo,"__esModule",{value:!0});mo.Clone=GV;var Ku=$V(Qt());function NV(t){return t.map(e=>Sh(e))}function BV(t){return new Date(t.getTime())}function jV(t){return new Uint8Array(t)}function qV(t){return new RegExp(t.source,t.flags)}function KV(t){let e={};for(let n of Object.getOwnPropertyNames(t))e[n]=Sh(t[n]);for(let n of Object.getOwnPropertySymbols(t))e[n]=Sh(t[n]);return e}function Sh(t){return Ku.IsArray(t)?NV(t):Ku.IsDate(t)?BV(t):Ku.IsUint8Array(t)?jV(t):Ku.IsRegExp(t)?qV(t):Ku.IsObject(t)?KV(t):t}function GV(t){return Sh(t)}});var Th=C(kh=>{"use strict";Object.defineProperty(kh,"__esModule",{value:!0});kh.CloneRest=zV;kh.CloneType=g_;var h_=ln();function zV(t){return t.map(e=>g_(e))}function g_(t,e){return e===void 0?(0,h_.Clone)(t):(0,h_.Clone)({...e,...t})}});var lx=C(sr=>{"use strict";var HV=sr&&sr.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),f_=sr&&sr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&HV(e,t,n)};Object.defineProperty(sr,"__esModule",{value:!0});f_(Th(),sr);f_(ln(),sr)});var M_=C(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.IsAsyncIterator=VV;Ie.IsIterator=QV;Ie.IsStandardObject=JV;Ie.IsInstanceObject=YV;Ie.IsPromise=XV;Ie.IsDate=ZV;Ie.IsMap=eQ;Ie.IsSet=tQ;Ie.IsRegExp=nQ;Ie.IsTypedArray=iQ;Ie.IsInt8Array=oQ;Ie.IsUint8Array=rQ;Ie.IsUint8ClampedArray=sQ;Ie.IsInt16Array=aQ;Ie.IsUint16Array=lQ;Ie.IsInt32Array=cQ;Ie.IsUint32Array=uQ;Ie.IsFloat32Array=dQ;Ie.IsFloat64Array=pQ;Ie.IsBigInt64Array=mQ;Ie.IsBigUint64Array=hQ;Ie.HasPropertyKey=gQ;Ie.IsObject=Gu;Ie.IsArray=v_;Ie.IsUndefined=b_;Ie.IsNull=x_;Ie.IsBoolean=y_;Ie.IsNumber=w_;Ie.IsInteger=fQ;Ie.IsBigInt=S_;Ie.IsString=k_;Ie.IsFunction=T_;Ie.IsSymbol=C_;Ie.IsValueType=vQ;function VV(t){return Gu(t)&&globalThis.Symbol.asyncIterator in t}function QV(t){return Gu(t)&&globalThis.Symbol.iterator in t}function JV(t){return Gu(t)&&(globalThis.Object.getPrototypeOf(t)===Object.prototype||globalThis.Object.getPrototypeOf(t)===null)}function YV(t){return Gu(t)&&!v_(t)&&T_(t.constructor)&&t.constructor.name!=="Object"}function XV(t){return t instanceof globalThis.Promise}function ZV(t){return t instanceof Date&&globalThis.Number.isFinite(t.getTime())}function eQ(t){return t instanceof globalThis.Map}function tQ(t){return t instanceof globalThis.Set}function nQ(t){return t instanceof globalThis.RegExp}function iQ(t){return globalThis.ArrayBuffer.isView(t)}function oQ(t){return t instanceof globalThis.Int8Array}function rQ(t){return t instanceof globalThis.Uint8Array}function sQ(t){return t instanceof globalThis.Uint8ClampedArray}function aQ(t){return t instanceof globalThis.Int16Array}function lQ(t){return t instanceof globalThis.Uint16Array}function cQ(t){return t instanceof globalThis.Int32Array}function uQ(t){return t instanceof globalThis.Uint32Array}function dQ(t){return t instanceof globalThis.Float32Array}function pQ(t){return t instanceof globalThis.Float64Array}function mQ(t){return t instanceof globalThis.BigInt64Array}function hQ(t){return t instanceof globalThis.BigUint64Array}function gQ(t,e){return e in t}function Gu(t){return t!==null&&typeof t=="object"}function v_(t){return globalThis.Array.isArray(t)&&!globalThis.ArrayBuffer.isView(t)}function b_(t){return t===void 0}function x_(t){return t===null}function y_(t){return typeof t=="boolean"}function w_(t){return typeof t=="number"}function fQ(t){return globalThis.Number.isInteger(t)}function S_(t){return typeof t=="bigint"}function k_(t){return typeof t=="string"}function T_(t){return typeof t=="function"}function C_(t){return typeof t=="symbol"}function vQ(t){return S_(t)||y_(t)||x_(t)||w_(t)||k_(t)||C_(t)||b_(t)}});var R_=C(ls=>{"use strict";var bQ=ls&&ls.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),xQ=ls&&ls.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&bQ(e,t,n)};Object.defineProperty(ls,"__esModule",{value:!0});xQ(M_(),ls)});var I_=C(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});Mh.TypeSystemPolicy=void 0;var Ch=R_(),P_;(function(t){t.InstanceMode="default",t.ExactOptionalPropertyTypes=!1,t.AllowArrayObject=!1,t.AllowNaN=!1,t.AllowNullVoid=!1;function e(s,a){return t.ExactOptionalPropertyTypes?a in s:s[a]!==void 0}t.IsExactOptionalProperty=e;function n(s){let a=(0,Ch.IsObject)(s);return t.AllowArrayObject?a:a&&!(0,Ch.IsArray)(s)}t.IsObjectLike=n;function i(s){return n(s)&&!(s instanceof Date)&&!(s instanceof Uint8Array)}t.IsRecordLike=i;function o(s){return t.AllowNaN?(0,Ch.IsNumber)(s):Number.isFinite(s)}t.IsNumberLike=o;function r(s){let a=(0,Ch.IsUndefined)(s);return t.AllowNullVoid?a||s===null:a}t.IsVoidLike=r})(P_||(Mh.TypeSystemPolicy=P_={}))});var E_=C(ho=>{"use strict";var yQ=ho&&ho.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),wQ=ho&&ho.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),SQ=ho&&ho.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&yQ(n,e,i[o]);return wQ(n,e),n}})();Object.defineProperty(ho,"__esModule",{value:!0});ho.Immutable=Rh;var zu=SQ(Qt());function kQ(t){return globalThis.Object.freeze(t).map(e=>Rh(e))}function TQ(t){let e={};for(let n of Object.getOwnPropertyNames(t))e[n]=Rh(t[n]);for(let n of Object.getOwnPropertySymbols(t))e[n]=Rh(t[n]);return globalThis.Object.freeze(e)}function Rh(t){return zu.IsArray(t)?kQ(t):zu.IsDate(t)?t:zu.IsUint8Array(t)?t:zu.IsRegExp(t)?t:zu.IsObject(t)?TQ(t):t}});var he=C(cx=>{"use strict";Object.defineProperty(cx,"__esModule",{value:!0});cx.CreateType=PQ;var CQ=I_(),MQ=E_(),RQ=ln();function PQ(t,e){let n=e!==void 0?{...e,...t}:t;switch(CQ.TypeSystemPolicy.InstanceMode){case"freeze":return(0,MQ.Immutable)(n);case"clone":return(0,RQ.Clone)(n);default:return n}}});var go=C(cs=>{"use strict";var IQ=cs&&cs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),EQ=cs&&cs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&IQ(e,t,n)};Object.defineProperty(cs,"__esModule",{value:!0});EQ(he(),cs)});var A_=C(Ph=>{"use strict";Object.defineProperty(Ph,"__esModule",{value:!0});Ph.TypeBoxError=void 0;var ux=class extends Error{constructor(e){super(e)}};Ph.TypeBoxError=ux});var Li=C(us=>{"use strict";var AQ=us&&us.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),_Q=us&&us.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&AQ(e,t,n)};Object.defineProperty(us,"__esModule",{value:!0});_Q(A_(),us)});var Hu=C(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.Kind=Vn.Hint=Vn.OptionalKind=Vn.ReadonlyKind=Vn.TransformKind=void 0;Vn.TransformKind=Symbol.for("TypeBox.Transform");Vn.ReadonlyKind=Symbol.for("TypeBox.Readonly");Vn.OptionalKind=Symbol.for("TypeBox.Optional");Vn.Hint=Symbol.for("TypeBox.Hint");Vn.Kind=Symbol.for("TypeBox.Kind")});var me=C(ds=>{"use strict";var OQ=ds&&ds.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),LQ=ds&&ds.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&OQ(e,t,n)};Object.defineProperty(ds,"__esModule",{value:!0});LQ(Hu(),ds)});var Oe=C(de=>{"use strict";var WQ=de&&de.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),FQ=de&&de.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),DQ=de&&de.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&WQ(n,e,i[o]);return FQ(n,e),n}})();Object.defineProperty(de,"__esModule",{value:!0});de.IsReadonly=UQ;de.IsOptional=$Q;de.IsAny=__;de.IsArgument=O_;de.IsArray=L_;de.IsAsyncIterator=W_;de.IsBigInt=F_;de.IsBoolean=D_;de.IsComputed=U_;de.IsConstructor=$_;de.IsDate=N_;de.IsFunction=B_;de.IsImport=NQ;de.IsInteger=j_;de.IsProperties=BQ;de.IsIntersect=q_;de.IsIterator=K_;de.IsKindOf=Re;de.IsLiteralString=jQ;de.IsLiteralNumber=qQ;de.IsLiteralBoolean=KQ;de.IsLiteralValue=GQ;de.IsLiteral=Vu;de.IsMappedKey=G_;de.IsMappedResult=z_;de.IsNever=H_;de.IsNot=V_;de.IsNull=Q_;de.IsNumber=J_;de.IsObject=Y_;de.IsPromise=X_;de.IsRecord=Z_;de.IsRecursive=zQ;de.IsRef=e2;de.IsRegExp=t2;de.IsString=n2;de.IsSymbol=i2;de.IsTemplateLiteral=o2;de.IsThis=r2;de.IsTransform=HQ;de.IsTuple=s2;de.IsUndefined=a2;de.IsUnion=l2;de.IsUint8Array=c2;de.IsUnknown=u2;de.IsUnsafe=d2;de.IsVoid=p2;de.IsKind=m2;de.IsSchema=VQ;var cn=DQ(Qt()),fo=me();function UQ(t){return cn.IsObject(t)&&t[fo.ReadonlyKind]==="Readonly"}function $Q(t){return cn.IsObject(t)&&t[fo.OptionalKind]==="Optional"}function __(t){return Re(t,"Any")}function O_(t){return Re(t,"Argument")}function L_(t){return Re(t,"Array")}function W_(t){return Re(t,"AsyncIterator")}function F_(t){return Re(t,"BigInt")}function D_(t){return Re(t,"Boolean")}function U_(t){return Re(t,"Computed")}function $_(t){return Re(t,"Constructor")}function N_(t){return Re(t,"Date")}function B_(t){return Re(t,"Function")}function NQ(t){return Re(t,"Import")}function j_(t){return Re(t,"Integer")}function BQ(t){return cn.IsObject(t)}function q_(t){return Re(t,"Intersect")}function K_(t){return Re(t,"Iterator")}function Re(t,e){return cn.IsObject(t)&&fo.Kind in t&&t[fo.Kind]===e}function jQ(t){return Vu(t)&&cn.IsString(t.const)}function qQ(t){return Vu(t)&&cn.IsNumber(t.const)}function KQ(t){return Vu(t)&&cn.IsBoolean(t.const)}function GQ(t){return cn.IsBoolean(t)||cn.IsNumber(t)||cn.IsString(t)}function Vu(t){return Re(t,"Literal")}function G_(t){return Re(t,"MappedKey")}function z_(t){return Re(t,"MappedResult")}function H_(t){return Re(t,"Never")}function V_(t){return Re(t,"Not")}function Q_(t){return Re(t,"Null")}function J_(t){return Re(t,"Number")}function Y_(t){return Re(t,"Object")}function X_(t){return Re(t,"Promise")}function Z_(t){return Re(t,"Record")}function zQ(t){return cn.IsObject(t)&&fo.Hint in t&&t[fo.Hint]==="Recursive"}function e2(t){return Re(t,"Ref")}function t2(t){return Re(t,"RegExp")}function n2(t){return Re(t,"String")}function i2(t){return Re(t,"Symbol")}function o2(t){return Re(t,"TemplateLiteral")}function r2(t){return Re(t,"This")}function HQ(t){return cn.IsObject(t)&&fo.TransformKind in t}function s2(t){return Re(t,"Tuple")}function a2(t){return Re(t,"Undefined")}function l2(t){return Re(t,"Union")}function c2(t){return Re(t,"Uint8Array")}function u2(t){return Re(t,"Unknown")}function d2(t){return Re(t,"Unsafe")}function p2(t){return Re(t,"Void")}function m2(t){return cn.IsObject(t)&&fo.Kind in t&&cn.IsString(t[fo.Kind])}function VQ(t){return __(t)||O_(t)||L_(t)||D_(t)||F_(t)||W_(t)||U_(t)||$_(t)||N_(t)||B_(t)||j_(t)||q_(t)||K_(t)||Vu(t)||G_(t)||z_(t)||H_(t)||V_(t)||Q_(t)||J_(t)||Y_(t)||X_(t)||Z_(t)||e2(t)||t2(t)||n2(t)||i2(t)||o2(t)||r2(t)||s2(t)||a2(t)||l2(t)||c2(t)||u2(t)||d2(t)||p2(t)||m2(t)}});var nO=C(ae=>{"use strict";var QQ=ae&&ae.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),JQ=ae&&ae.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),YQ=ae&&ae.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&QQ(n,e,i[o]);return JQ(n,e),n}})();Object.defineProperty(ae,"__esModule",{value:!0});ae.TypeGuardUnknownTypeError=void 0;ae.IsReadonly=nJ;ae.IsOptional=iJ;ae.IsAny=v2;ae.IsArgument=b2;ae.IsArray=x2;ae.IsAsyncIterator=y2;ae.IsBigInt=w2;ae.IsBoolean=S2;ae.IsComputed=k2;ae.IsConstructor=T2;ae.IsDate=C2;ae.IsFunction=M2;ae.IsImport=oJ;ae.IsInteger=R2;ae.IsProperties=Ih;ae.IsIntersect=P2;ae.IsIterator=I2;ae.IsKindOf=Pe;ae.IsLiteralString=E2;ae.IsLiteralNumber=A2;ae.IsLiteralBoolean=rJ;ae.IsLiteral=Ju;ae.IsLiteralValue=_2;ae.IsMappedKey=O2;ae.IsMappedResult=L2;ae.IsNever=W2;ae.IsNot=F2;ae.IsNull=D2;ae.IsNumber=U2;ae.IsObject=$2;ae.IsPromise=N2;ae.IsRecord=B2;ae.IsRecursive=sJ;ae.IsRef=j2;ae.IsRegExp=q2;ae.IsString=K2;ae.IsSymbol=G2;ae.IsTemplateLiteral=z2;ae.IsThis=H2;ae.IsTransform=V2;ae.IsTuple=Q2;ae.IsUndefined=J2;ae.IsUnionLiteral=aJ;ae.IsUnion=hx;ae.IsUint8Array=Y2;ae.IsUnknown=X2;ae.IsUnsafe=Z2;ae.IsVoid=eO;ae.IsKind=tO;ae.IsSchema=Et;var ue=YQ(Qt()),Wi=me(),XQ=Li(),dx=class extends XQ.TypeBoxError{};ae.TypeGuardUnknownTypeError=dx;var ZQ=["Argument","Any","Array","AsyncIterator","BigInt","Boolean","Computed","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function h2(t){try{return new RegExp(t),!0}catch{return!1}}function px(t){if(!ue.IsString(t))return!1;for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n>=7&&n<=13||n===27||n===127)return!1}return!0}function g2(t){return mx(t)||Et(t)}function Qu(t){return ue.IsUndefined(t)||ue.IsBigInt(t)}function Ve(t){return ue.IsUndefined(t)||ue.IsNumber(t)}function mx(t){return ue.IsUndefined(t)||ue.IsBoolean(t)}function qe(t){return ue.IsUndefined(t)||ue.IsString(t)}function eJ(t){return ue.IsUndefined(t)||ue.IsString(t)&&px(t)&&h2(t)}function tJ(t){return ue.IsUndefined(t)||ue.IsString(t)&&px(t)}function f2(t){return ue.IsUndefined(t)||Et(t)}function nJ(t){return ue.IsObject(t)&&t[Wi.ReadonlyKind]==="Readonly"}function iJ(t){return ue.IsObject(t)&&t[Wi.OptionalKind]==="Optional"}function v2(t){return Pe(t,"Any")&&qe(t.$id)}function b2(t){return Pe(t,"Argument")&&ue.IsNumber(t.index)}function x2(t){return Pe(t,"Array")&&t.type==="array"&&qe(t.$id)&&Et(t.items)&&Ve(t.minItems)&&Ve(t.maxItems)&&mx(t.uniqueItems)&&f2(t.contains)&&Ve(t.minContains)&&Ve(t.maxContains)}function y2(t){return Pe(t,"AsyncIterator")&&t.type==="AsyncIterator"&&qe(t.$id)&&Et(t.items)}function w2(t){return Pe(t,"BigInt")&&t.type==="bigint"&&qe(t.$id)&&Qu(t.exclusiveMaximum)&&Qu(t.exclusiveMinimum)&&Qu(t.maximum)&&Qu(t.minimum)&&Qu(t.multipleOf)}function S2(t){return Pe(t,"Boolean")&&t.type==="boolean"&&qe(t.$id)}function k2(t){return Pe(t,"Computed")&&ue.IsString(t.target)&&ue.IsArray(t.parameters)&&t.parameters.every(e=>Et(e))}function T2(t){return Pe(t,"Constructor")&&t.type==="Constructor"&&qe(t.$id)&&ue.IsArray(t.parameters)&&t.parameters.every(e=>Et(e))&&Et(t.returns)}function C2(t){return Pe(t,"Date")&&t.type==="Date"&&qe(t.$id)&&Ve(t.exclusiveMaximumTimestamp)&&Ve(t.exclusiveMinimumTimestamp)&&Ve(t.maximumTimestamp)&&Ve(t.minimumTimestamp)&&Ve(t.multipleOfTimestamp)}function M2(t){return Pe(t,"Function")&&t.type==="Function"&&qe(t.$id)&&ue.IsArray(t.parameters)&&t.parameters.every(e=>Et(e))&&Et(t.returns)}function oJ(t){return Pe(t,"Import")&&ue.HasPropertyKey(t,"$defs")&&ue.IsObject(t.$defs)&&Ih(t.$defs)&&ue.HasPropertyKey(t,"$ref")&&ue.IsString(t.$ref)&&t.$ref in t.$defs}function R2(t){return Pe(t,"Integer")&&t.type==="integer"&&qe(t.$id)&&Ve(t.exclusiveMaximum)&&Ve(t.exclusiveMinimum)&&Ve(t.maximum)&&Ve(t.minimum)&&Ve(t.multipleOf)}function Ih(t){return ue.IsObject(t)&&Object.entries(t).every(([e,n])=>px(e)&&Et(n))}function P2(t){return Pe(t,"Intersect")&&!(ue.IsString(t.type)&&t.type!=="object")&&ue.IsArray(t.allOf)&&t.allOf.every(e=>Et(e)&&!V2(e))&&qe(t.type)&&(mx(t.unevaluatedProperties)||f2(t.unevaluatedProperties))&&qe(t.$id)}function I2(t){return Pe(t,"Iterator")&&t.type==="Iterator"&&qe(t.$id)&&Et(t.items)}function Pe(t,e){return ue.IsObject(t)&&Wi.Kind in t&&t[Wi.Kind]===e}function E2(t){return Ju(t)&&ue.IsString(t.const)}function A2(t){return Ju(t)&&ue.IsNumber(t.const)}function rJ(t){return Ju(t)&&ue.IsBoolean(t.const)}function Ju(t){return Pe(t,"Literal")&&qe(t.$id)&&_2(t.const)}function _2(t){return ue.IsBoolean(t)||ue.IsNumber(t)||ue.IsString(t)}function O2(t){return Pe(t,"MappedKey")&&ue.IsArray(t.keys)&&t.keys.every(e=>ue.IsNumber(e)||ue.IsString(e))}function L2(t){return Pe(t,"MappedResult")&&Ih(t.properties)}function W2(t){return Pe(t,"Never")&&ue.IsObject(t.not)&&Object.getOwnPropertyNames(t.not).length===0}function F2(t){return Pe(t,"Not")&&Et(t.not)}function D2(t){return Pe(t,"Null")&&t.type==="null"&&qe(t.$id)}function U2(t){return Pe(t,"Number")&&t.type==="number"&&qe(t.$id)&&Ve(t.exclusiveMaximum)&&Ve(t.exclusiveMinimum)&&Ve(t.maximum)&&Ve(t.minimum)&&Ve(t.multipleOf)}function $2(t){return Pe(t,"Object")&&t.type==="object"&&qe(t.$id)&&Ih(t.properties)&&g2(t.additionalProperties)&&Ve(t.minProperties)&&Ve(t.maxProperties)}function N2(t){return Pe(t,"Promise")&&t.type==="Promise"&&qe(t.$id)&&Et(t.item)}function B2(t){return Pe(t,"Record")&&t.type==="object"&&qe(t.$id)&&g2(t.additionalProperties)&&ue.IsObject(t.patternProperties)&&(e=>{let n=Object.getOwnPropertyNames(e.patternProperties);return n.length===1&&h2(n[0])&&ue.IsObject(e.patternProperties)&&Et(e.patternProperties[n[0]])})(t)}function sJ(t){return ue.IsObject(t)&&Wi.Hint in t&&t[Wi.Hint]==="Recursive"}function j2(t){return Pe(t,"Ref")&&qe(t.$id)&&ue.IsString(t.$ref)}function q2(t){return Pe(t,"RegExp")&&qe(t.$id)&&ue.IsString(t.source)&&ue.IsString(t.flags)&&Ve(t.maxLength)&&Ve(t.minLength)}function K2(t){return Pe(t,"String")&&t.type==="string"&&qe(t.$id)&&Ve(t.minLength)&&Ve(t.maxLength)&&eJ(t.pattern)&&tJ(t.format)}function G2(t){return Pe(t,"Symbol")&&t.type==="symbol"&&qe(t.$id)}function z2(t){return Pe(t,"TemplateLiteral")&&t.type==="string"&&ue.IsString(t.pattern)&&t.pattern[0]==="^"&&t.pattern[t.pattern.length-1]==="$"}function H2(t){return Pe(t,"This")&&qe(t.$id)&&ue.IsString(t.$ref)}function V2(t){return ue.IsObject(t)&&Wi.TransformKind in t}function Q2(t){return Pe(t,"Tuple")&&t.type==="array"&&qe(t.$id)&&ue.IsNumber(t.minItems)&&ue.IsNumber(t.maxItems)&&t.minItems===t.maxItems&&(ue.IsUndefined(t.items)&&ue.IsUndefined(t.additionalItems)&&t.minItems===0||ue.IsArray(t.items)&&t.items.every(e=>Et(e)))}function J2(t){return Pe(t,"Undefined")&&t.type==="undefined"&&qe(t.$id)}function aJ(t){return hx(t)&&t.anyOf.every(e=>E2(e)||A2(e))}function hx(t){return Pe(t,"Union")&&qe(t.$id)&&ue.IsObject(t)&&ue.IsArray(t.anyOf)&&t.anyOf.every(e=>Et(e))}function Y2(t){return Pe(t,"Uint8Array")&&t.type==="Uint8Array"&&qe(t.$id)&&Ve(t.minByteLength)&&Ve(t.maxByteLength)}function X2(t){return Pe(t,"Unknown")&&qe(t.$id)}function Z2(t){return Pe(t,"Unsafe")}function eO(t){return Pe(t,"Void")&&t.type==="void"&&qe(t.$id)}function tO(t){return ue.IsObject(t)&&Wi.Kind in t&&ue.IsString(t[Wi.Kind])&&!ZQ.includes(t[Wi.Kind])}function Et(t){return ue.IsObject(t)&&(v2(t)||b2(t)||x2(t)||S2(t)||w2(t)||y2(t)||k2(t)||T2(t)||C2(t)||M2(t)||R2(t)||P2(t)||I2(t)||Ju(t)||O2(t)||L2(t)||W2(t)||F2(t)||D2(t)||U2(t)||$2(t)||N2(t)||B2(t)||j2(t)||q2(t)||K2(t)||G2(t)||z2(t)||H2(t)||Q2(t)||J2(t)||hx(t)||Y2(t)||X2(t)||Z2(t)||eO(t)||tO(t))}});var fx=C(un=>{"use strict";var lJ=un&&un.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),cJ=un&&un.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),gx=un&&un.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&lJ(n,e,i[o]);return cJ(n,e),n}})();Object.defineProperty(un,"__esModule",{value:!0});un.ValueGuard=un.TypeGuard=un.KindGuard=void 0;un.KindGuard=gx(Oe());un.TypeGuard=gx(nO());un.ValueGuard=gx(Qt())});var iO=C(vx=>{"use strict";Object.defineProperty(vx,"__esModule",{value:!0});vx.Increment=uJ;function uJ(t){return(parseInt(t)+1).toString()}});var oO=C(ps=>{"use strict";var dJ=ps&&ps.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),pJ=ps&&ps.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&dJ(e,t,n)};Object.defineProperty(ps,"__esModule",{value:!0});pJ(iO(),ps)});var rO=C(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.PatternNeverExact=ct.PatternStringExact=ct.PatternNumberExact=ct.PatternBooleanExact=ct.PatternNever=ct.PatternString=ct.PatternNumber=ct.PatternBoolean=void 0;ct.PatternBoolean="(true|false)";ct.PatternNumber="(0|[1-9][0-9]*)";ct.PatternString="(.*)";ct.PatternNever="(?!.*)";ct.PatternBooleanExact=`^${ct.PatternBoolean}$`;ct.PatternNumberExact=`^${ct.PatternNumber}$`;ct.PatternStringExact=`^${ct.PatternString}$`;ct.PatternNeverExact=`^${ct.PatternNever}$`});var Yu=C(ms=>{"use strict";var mJ=ms&&ms.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),hJ=ms&&ms.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&mJ(e,t,n)};Object.defineProperty(ms,"__esModule",{value:!0});hJ(rO(),ms)});var sO=C(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.Entries=gJ;ar.Clear=fJ;ar.Delete=vJ;ar.Has=bJ;ar.Set=xJ;ar.Get=yJ;var $l=new Map;function gJ(){return new Map($l)}function fJ(){return $l.clear()}function vJ(t){return $l.delete(t)}function bJ(t){return $l.has(t)}function xJ(t,e){$l.set(t,e)}function yJ(t){return $l.get(t)}});var aO=C(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.Entries=wJ;lr.Clear=SJ;lr.Delete=kJ;lr.Has=TJ;lr.Set=CJ;lr.Get=MJ;var Nl=new Map;function wJ(){return new Map(Nl)}function SJ(){return Nl.clear()}function kJ(t){return Nl.delete(t)}function TJ(t){return Nl.has(t)}function CJ(t,e){Nl.set(t,e)}function MJ(t){return Nl.get(t)}});var cO=C(Qn=>{"use strict";var RJ=Qn&&Qn.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),PJ=Qn&&Qn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lO=Qn&&Qn.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&RJ(n,e,i[o]);return PJ(n,e),n}})();Object.defineProperty(Qn,"__esModule",{value:!0});Qn.TypeRegistry=Qn.FormatRegistry=void 0;Qn.FormatRegistry=lO(sO());Qn.TypeRegistry=lO(aO())});var pO=C(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.SetIncludes=uO;Fi.SetIsSubset=IJ;Fi.SetDistinct=EJ;Fi.SetIntersect=dO;Fi.SetUnion=AJ;Fi.SetComplement=_J;Fi.SetIntersectMany=LJ;Fi.SetUnionMany=WJ;function uO(t,e){return t.includes(e)}function IJ(t,e){return t.every(n=>uO(e,n))}function EJ(t){return[...new Set(t)]}function dO(t,e){return t.filter(n=>e.includes(n))}function AJ(t,e){return[...t,...e]}function _J(t,e){return t.filter(n=>!e.includes(n))}function OJ(t,e){return t.reduce((n,i)=>dO(n,i),e)}function LJ(t){return t.length===1?t[0]:t.length>1?OJ(t.slice(1),t[0]):[]}function WJ(t){let e=[];for(let n of t)e.push(...n);return e}});var Xu=C(hs=>{"use strict";var FJ=hs&&hs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),DJ=hs&&hs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&FJ(e,t,n)};Object.defineProperty(hs,"__esModule",{value:!0});DJ(pO(),hs)});var mO=C(bx=>{"use strict";Object.defineProperty(bx,"__esModule",{value:!0});bx.Any=NJ;var UJ=go(),$J=me();function NJ(t){return(0,UJ.CreateType)({[$J.Kind]:"Any"},t)}});var Bl=C(gs=>{"use strict";var BJ=gs&&gs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),jJ=gs&&gs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&BJ(e,t,n)};Object.defineProperty(gs,"__esModule",{value:!0});jJ(mO(),gs)});var hO=C(xx=>{"use strict";Object.defineProperty(xx,"__esModule",{value:!0});xx.Array=GJ;var qJ=he(),KJ=me();function GJ(t,e){return(0,qJ.CreateType)({[KJ.Kind]:"Array",type:"array",items:t},e)}});var jl=C(fs=>{"use strict";var zJ=fs&&fs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),HJ=fs&&fs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&zJ(e,t,n)};Object.defineProperty(fs,"__esModule",{value:!0});HJ(hO(),fs)});var gO=C(yx=>{"use strict";Object.defineProperty(yx,"__esModule",{value:!0});yx.Argument=JJ;var VJ=he(),QJ=me();function JJ(t){return(0,VJ.CreateType)({[QJ.Kind]:"Argument",index:t})}});var Eh=C(vs=>{"use strict";var YJ=vs&&vs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),XJ=vs&&vs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&YJ(e,t,n)};Object.defineProperty(vs,"__esModule",{value:!0});XJ(gO(),vs)});var fO=C(wx=>{"use strict";Object.defineProperty(wx,"__esModule",{value:!0});wx.AsyncIterator=tY;var ZJ=me(),eY=he();function tY(t,e){return(0,eY.CreateType)({[ZJ.Kind]:"AsyncIterator",type:"AsyncIterator",items:t},e)}});var ql=C(bs=>{"use strict";var nY=bs&&bs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),iY=bs&&bs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&nY(e,t,n)};Object.defineProperty(bs,"__esModule",{value:!0});iY(fO(),bs)});var vO=C(Sx=>{"use strict";Object.defineProperty(Sx,"__esModule",{value:!0});Sx.Computed=sY;var oY=go(),rY=Hu();function sY(t,e,n){return(0,oY.CreateType)({[rY.Kind]:"Computed",target:t,parameters:e},n)}});var cr=C(xs=>{"use strict";var aY=xs&&xs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),lY=xs&&xs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&aY(e,t,n)};Object.defineProperty(xs,"__esModule",{value:!0});lY(vO(),xs)});var Ah=C(kx=>{"use strict";Object.defineProperty(kx,"__esModule",{value:!0});kx.Discard=uY;function cY(t,e){let{[e]:n,...i}=t;return i}function uY(t,e){return e.reduce((n,i)=>cY(n,i),t)}});var vo=C(ys=>{"use strict";var dY=ys&&ys.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),pY=ys&&ys.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&dY(e,t,n)};Object.defineProperty(ys,"__esModule",{value:!0});pY(Ah(),ys)});var bO=C(Tx=>{"use strict";Object.defineProperty(Tx,"__esModule",{value:!0});Tx.Never=gY;var mY=he(),hY=me();function gY(t){return(0,mY.CreateType)({[hY.Kind]:"Never",not:{}},t)}});var At=C(ws=>{"use strict";var fY=ws&&ws.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),vY=ws&&ws.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&fY(e,t,n)};Object.defineProperty(ws,"__esModule",{value:!0});vY(bO(),ws)});var xO=C(Cx=>{"use strict";Object.defineProperty(Cx,"__esModule",{value:!0});Cx.MappedKey=yY;var bY=he(),xY=me();function yY(t){return(0,bY.CreateType)({[xY.Kind]:"MappedKey",keys:t})}});var Rx=C(Mx=>{"use strict";Object.defineProperty(Mx,"__esModule",{value:!0});Mx.MappedResult=kY;var wY=he(),SY=me();function kY(t){return(0,wY.CreateType)({[SY.Kind]:"MappedResult",properties:t})}});var yO=C(Px=>{"use strict";Object.defineProperty(Px,"__esModule",{value:!0});Px.Constructor=MY;var TY=he(),CY=me();function MY(t,e,n){return(0,TY.CreateType)({[CY.Kind]:"Constructor",type:"Constructor",parameters:t,returns:e},n)}});var Kl=C(Ss=>{"use strict";var RY=Ss&&Ss.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),PY=Ss&&Ss.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&RY(e,t,n)};Object.defineProperty(Ss,"__esModule",{value:!0});PY(yO(),Ss)});var wO=C(Ix=>{"use strict";Object.defineProperty(Ix,"__esModule",{value:!0});Ix.Function=AY;var IY=he(),EY=me();function AY(t,e,n){return(0,IY.CreateType)({[EY.Kind]:"Function",type:"Function",parameters:t,returns:e},n)}});var ur=C(ks=>{"use strict";var _Y=ks&&ks.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),OY=ks&&ks.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&_Y(e,t,n)};Object.defineProperty(ks,"__esModule",{value:!0});OY(wO(),ks)});var Ax=C(Ex=>{"use strict";Object.defineProperty(Ex,"__esModule",{value:!0});Ex.UnionCreate=FY;var LY=he(),WY=me();function FY(t,e){return(0,LY.CreateType)({[WY.Kind]:"Union",anyOf:t},e)}});var CO=C(_x=>{"use strict";Object.defineProperty(_x,"__esModule",{value:!0});_x.UnionEvaluated=GY;var DY=he(),UY=me(),$Y=vo(),NY=At(),BY=Di(),SO=Ax(),TO=Oe();function jY(t){return t.some(e=>(0,TO.IsOptional)(e))}function kO(t){return t.map(e=>(0,TO.IsOptional)(e)?qY(e):e)}function qY(t){return(0,$Y.Discard)(t,[UY.OptionalKind])}function KY(t,e){return jY(t)?(0,BY.Optional)((0,SO.UnionCreate)(kO(t),e)):(0,SO.UnionCreate)(kO(t),e)}function GY(t,e){return t.length===1?(0,DY.CreateType)(t[0],e):t.length===0?(0,NY.Never)(e):KY(t,e)}});var RO=C(MO=>{"use strict";Object.defineProperty(MO,"__esModule",{value:!0});var GBe=me()});var PO=C(Ox=>{"use strict";Object.defineProperty(Ox,"__esModule",{value:!0});Ox.Union=QY;var zY=At(),HY=he(),VY=Ax();function QY(t,e){return t.length===0?(0,zY.Never)(e):t.length===1?(0,HY.CreateType)(t[0],e):(0,VY.UnionCreate)(t,e)}});var mt=C(bo=>{"use strict";var JY=bo&&bo.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Lx=bo&&bo.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&JY(e,t,n)};Object.defineProperty(bo,"__esModule",{value:!0});Lx(CO(),bo);Lx(RO(),bo);Lx(PO(),bo)});var _h=C(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.TemplateLiteralParserError=void 0;Gl.TemplateLiteralParse=Ts;Gl.TemplateLiteralParseExact=rX;var YY=Li(),Zu=class extends YY.TypeBoxError{};Gl.TemplateLiteralParserError=Zu;function XY(t){return t.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function Wx(t,e,n){return t[e]===n&&t.charCodeAt(e-1)!==92}function xo(t,e){return Wx(t,e,"(")}function ed(t,e){return Wx(t,e,")")}function IO(t,e){return Wx(t,e,"|")}function ZY(t){if(!(xo(t,0)&&ed(t,t.length-1)))return!1;let e=0;for(let n=0;n<t.length;n++)if(xo(t,n)&&(e+=1),ed(t,n)&&(e-=1),e===0&&n!==t.length-1)return!1;return!0}function eX(t){return t.slice(1,t.length-1)}function tX(t){let e=0;for(let n=0;n<t.length;n++)if(xo(t,n)&&(e+=1),ed(t,n)&&(e-=1),IO(t,n)&&e===0)return!0;return!1}function nX(t){for(let e=0;e<t.length;e++)if(xo(t,e))return!0;return!1}function iX(t){let[e,n]=[0,0],i=[];for(let r=0;r<t.length;r++)if(xo(t,r)&&(e+=1),ed(t,r)&&(e-=1),IO(t,r)&&e===0){let s=t.slice(n,r);s.length>0&&i.push(Ts(s)),n=r+1}let o=t.slice(n);return o.length>0&&i.push(Ts(o)),i.length===0?{type:"const",const:""}:i.length===1?i[0]:{type:"or",expr:i}}function oX(t){function e(o,r){if(!xo(o,r))throw new Zu("TemplateLiteralParser: Index must point to open parens");let s=0;for(let a=r;a<o.length;a++)if(xo(o,a)&&(s+=1),ed(o,a)&&(s-=1),s===0)return[r,a];throw new Zu("TemplateLiteralParser: Unclosed group parens in expression")}function n(o,r){for(let s=r;s<o.length;s++)if(xo(o,s))return[r,s];return[r,o.length]}let i=[];for(let o=0;o<t.length;o++)if(xo(t,o)){let[r,s]=e(t,o),a=t.slice(r,s+1);i.push(Ts(a)),o=s}else{let[r,s]=n(t,o),a=t.slice(r,s);a.length>0&&i.push(Ts(a)),o=s-1}return i.length===0?{type:"const",const:""}:i.length===1?i[0]:{type:"and",expr:i}}function Ts(t){return ZY(t)?Ts(eX(t)):tX(t)?iX(t):nX(t)?oX(t):{type:"const",const:XY(t)}}function rX(t){return Ts(t.slice(1,t.length-1))}});var Fx=C(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});zl.TemplateLiteralFiniteError=void 0;zl.IsTemplateLiteralExpressionFinite=Lh;zl.IsTemplateLiteralFinite=dX;var sX=_h(),aX=Li(),Oh=class extends aX.TypeBoxError{};zl.TemplateLiteralFiniteError=Oh;function lX(t){return t.type==="or"&&t.expr.length===2&&t.expr[0].type==="const"&&t.expr[0].const==="0"&&t.expr[1].type==="const"&&t.expr[1].const==="[1-9][0-9]*"}function cX(t){return t.type==="or"&&t.expr.length===2&&t.expr[0].type==="const"&&t.expr[0].const==="true"&&t.expr[1].type==="const"&&t.expr[1].const==="false"}function uX(t){return t.type==="const"&&t.const===".*"}function Lh(t){return lX(t)||uX(t)?!1:cX(t)?!0:t.type==="and"?t.expr.every(e=>Lh(e)):t.type==="or"?t.expr.every(e=>Lh(e)):t.type==="const"?!0:(()=>{throw new Oh("Unknown expression type")})()}function dX(t){let e=(0,sX.TemplateLiteralParseExact)(t.pattern);return Lh(e)}});var Dx=C(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.TemplateLiteralGenerateError=void 0;Hl.TemplateLiteralExpressionGenerate=Fh;Hl.TemplateLiteralGenerate=bX;var pX=Fx(),mX=_h(),hX=Li(),Wh=class extends hX.TypeBoxError{};Hl.TemplateLiteralGenerateError=Wh;function*EO(t){if(t.length===1)return yield*t[0];for(let e of t[0])for(let n of EO(t.slice(1)))yield`${e}${n}`}function*gX(t){return yield*EO(t.expr.map(e=>[...Fh(e)]))}function*fX(t){for(let e of t.expr)yield*Fh(e)}function*vX(t){return yield t.const}function*Fh(t){return t.type==="and"?yield*gX(t):t.type==="or"?yield*fX(t):t.type==="const"?yield*vX(t):(()=>{throw new Wh("Unknown expression")})()}function bX(t){let e=(0,mX.TemplateLiteralParseExact)(t.pattern);return(0,pX.IsTemplateLiteralExpressionFinite)(e)?[...Fh(e)]:[]}});var AO=C(Ux=>{"use strict";Object.defineProperty(Ux,"__esModule",{value:!0});Ux.Literal=wX;var xX=he(),yX=me();function wX(t,e){return(0,xX.CreateType)({[yX.Kind]:"Literal",const:t,type:typeof t},e)}});var Jt=C(Cs=>{"use strict";var SX=Cs&&Cs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),kX=Cs&&Cs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&SX(e,t,n)};Object.defineProperty(Cs,"__esModule",{value:!0});kX(AO(),Cs)});var _O=C($x=>{"use strict";Object.defineProperty($x,"__esModule",{value:!0});$x.Boolean=MX;var TX=me(),CX=go();function MX(t){return(0,CX.CreateType)({[TX.Kind]:"Boolean",type:"boolean"},t)}});var td=C(Ms=>{"use strict";var RX=Ms&&Ms.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),PX=Ms&&Ms.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&RX(e,t,n)};Object.defineProperty(Ms,"__esModule",{value:!0});PX(_O(),Ms)});var OO=C(Nx=>{"use strict";Object.defineProperty(Nx,"__esModule",{value:!0});Nx.BigInt=AX;var IX=me(),EX=go();function AX(t){return(0,EX.CreateType)({[IX.Kind]:"BigInt",type:"bigint"},t)}});var Vl=C(Rs=>{"use strict";var _X=Rs&&Rs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),OX=Rs&&Rs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&_X(e,t,n)};Object.defineProperty(Rs,"__esModule",{value:!0});OX(OO(),Rs)});var LO=C(Bx=>{"use strict";Object.defineProperty(Bx,"__esModule",{value:!0});Bx.Number=FX;var LX=he(),WX=me();function FX(t){return(0,LX.CreateType)({[WX.Kind]:"Number",type:"number"},t)}});var dr=C(Ps=>{"use strict";var DX=Ps&&Ps.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),UX=Ps&&Ps.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&DX(e,t,n)};Object.defineProperty(Ps,"__esModule",{value:!0});UX(LO(),Ps)});var WO=C(jx=>{"use strict";Object.defineProperty(jx,"__esModule",{value:!0});jx.String=BX;var $X=he(),NX=me();function BX(t){return(0,$X.CreateType)({[NX.Kind]:"String",type:"string"},t)}});var Es=C(Is=>{"use strict";var jX=Is&&Is.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),qX=Is&&Is.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&jX(e,t,n)};Object.defineProperty(Is,"__esModule",{value:!0});qX(WO(),Is)});var Gx=C(Kx=>{"use strict";Object.defineProperty(Kx,"__esModule",{value:!0});Kx.TemplateLiteralSyntax=XX;var nd=Jt(),KX=td(),GX=Vl(),zX=dr(),HX=Es(),VX=mt(),QX=At();function*JX(t){let e=t.trim().replace(/"|'/g,"");return e==="boolean"?yield(0,KX.Boolean)():e==="number"?yield(0,zX.Number)():e==="bigint"?yield(0,GX.BigInt)():e==="string"?yield(0,HX.String)():yield(()=>{let n=e.split("|").map(i=>(0,nd.Literal)(i.trim()));return n.length===0?(0,QX.Never)():n.length===1?n[0]:(0,VX.UnionEvaluated)(n)})()}function*YX(t){if(t[1]!=="{"){let e=(0,nd.Literal)("$"),n=qx(t.slice(1));return yield*[e,...n]}for(let e=2;e<t.length;e++)if(t[e]==="}"){let n=JX(t.slice(2,e)),i=qx(t.slice(e+1));return yield*[...n,...i]}yield(0,nd.Literal)(t)}function*qx(t){for(let e=0;e<t.length;e++)if(t[e]==="$"){let n=(0,nd.Literal)(t.slice(0,e)),i=YX(t.slice(e));return yield*[n,...i]}yield(0,nd.Literal)(t)}function XX(t){return[...qx(t)]}});var zx=C(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.TemplateLiteralPatternError=void 0;od.TemplateLiteralPattern=nZ;var id=Yu(),ZX=me(),eZ=Li(),pr=Oe(),Dh=class extends eZ.TypeBoxError{};od.TemplateLiteralPatternError=Dh;function tZ(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function FO(t,e){return(0,pr.IsTemplateLiteral)(t)?t.pattern.slice(1,t.pattern.length-1):(0,pr.IsUnion)(t)?`(${t.anyOf.map(n=>FO(n,e)).join("|")})`:(0,pr.IsNumber)(t)?`${e}${id.PatternNumber}`:(0,pr.IsInteger)(t)?`${e}${id.PatternNumber}`:(0,pr.IsBigInt)(t)?`${e}${id.PatternNumber}`:(0,pr.IsString)(t)?`${e}${id.PatternString}`:(0,pr.IsLiteral)(t)?`${e}${tZ(t.const.toString())}`:(0,pr.IsBoolean)(t)?`${e}${id.PatternBoolean}`:(()=>{throw new Dh(`Unexpected Kind '${t[ZX.Kind]}'`)})()}function nZ(t){return`^${t.map(e=>FO(e,"")).join("")}$`}});var DO=C(Hx=>{"use strict";Object.defineProperty(Hx,"__esModule",{value:!0});Hx.TemplateLiteralToUnion=sZ;var iZ=mt(),oZ=Jt(),rZ=Dx();function sZ(t){let n=(0,rZ.TemplateLiteralGenerate)(t).map(i=>(0,oZ.Literal)(i));return(0,iZ.UnionEvaluated)(n)}});var $O=C(Vx=>{"use strict";Object.defineProperty(Vx,"__esModule",{value:!0});Vx.TemplateLiteral=dZ;var aZ=he(),lZ=Gx(),UO=zx(),cZ=Qt(),uZ=me();function dZ(t,e){let n=(0,cZ.IsString)(t)?(0,UO.TemplateLiteralPattern)((0,lZ.TemplateLiteralSyntax)(t)):(0,UO.TemplateLiteralPattern)(t);return(0,aZ.CreateType)({[uZ.Kind]:"TemplateLiteral",type:"string",pattern:n},e)}});var Ui=C(En=>{"use strict";var pZ=En&&En.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),As=En&&En.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&pZ(e,t,n)};Object.defineProperty(En,"__esModule",{value:!0});As(Fx(),En);As(Dx(),En);As(Gx(),En);As(_h(),En);As(zx(),En);As(DO(),En);As($O(),En)});var Uh=C(Qx=>{"use strict";Object.defineProperty(Qx,"__esModule",{value:!0});Qx.IndexPropertyKeys=NO;var mZ=Ui(),rd=Oe();function hZ(t){return(0,mZ.TemplateLiteralGenerate)(t).map(n=>n.toString())}function gZ(t){let e=[];for(let n of t)e.push(...NO(n));return e}function fZ(t){return[t.toString()]}function NO(t){return[...new Set((0,rd.IsTemplateLiteral)(t)?hZ(t):(0,rd.IsUnion)(t)?gZ(t.anyOf):(0,rd.IsLiteral)(t)?fZ(t.const):(0,rd.IsNumber)(t)?["[number]"]:(0,rd.IsInteger)(t)?["[number]"]:[])]}});var Yx=C(Jx=>{"use strict";Object.defineProperty(Jx,"__esModule",{value:!0});Jx.IndexFromMappedResult=SZ;var vZ=bt(),bZ=Uh(),xZ=pi();function yZ(t,e,n){let i={};for(let o of Object.getOwnPropertyNames(e))i[o]=(0,xZ.Index)(t,(0,bZ.IndexPropertyKeys)(e[o]),n);return i}function wZ(t,e,n){return yZ(t,e.properties,n)}function SZ(t,e,n){let i=wZ(t,e,n);return(0,vZ.MappedResult)(i)}});var Nh=C(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.IndexFromPropertyKey=Zx;Ql.IndexFromPropertyKeys=KO;Ql.IndexFromComputed=FZ;Ql.Index=DZ;var kZ=he(),TZ=Li(),jO=cr(),$h=At(),CZ=An(),Xx=mt(),MZ=Uh(),RZ=ey(),PZ=Yx(),dn=Oe();function qO(t,e){return t.map(n=>Zx(n,e))}function IZ(t){return t.filter(e=>!(0,dn.IsNever)(e))}function EZ(t,e){return(0,CZ.IntersectEvaluated)(IZ(qO(t,e)))}function AZ(t){return t.some(e=>(0,dn.IsNever)(e))?[]:t}function _Z(t,e){return(0,Xx.UnionEvaluated)(AZ(qO(t,e)))}function OZ(t,e){return e in t?t[e]:e==="[number]"?(0,Xx.UnionEvaluated)(t):(0,$h.Never)()}function LZ(t,e){return e==="[number]"?t:(0,$h.Never)()}function WZ(t,e){return e in t?t[e]:(0,$h.Never)()}function Zx(t,e){return(0,dn.IsIntersect)(t)?EZ(t.allOf,e):(0,dn.IsUnion)(t)?_Z(t.anyOf,e):(0,dn.IsTuple)(t)?OZ(t.items??[],e):(0,dn.IsArray)(t)?LZ(t.items,e):(0,dn.IsObject)(t)?WZ(t.properties,e):(0,$h.Never)()}function KO(t,e){return e.map(n=>Zx(t,n))}function BO(t,e){return(0,Xx.UnionEvaluated)(KO(t,e))}function FZ(t,e){return(0,jO.Computed)("Index",[t,e])}function DZ(t,e,n){if((0,dn.IsRef)(t)||(0,dn.IsRef)(e)){let i="Index types using Ref parameters require both Type and Key to be of TSchema";if(!(0,dn.IsSchema)(t)||!(0,dn.IsSchema)(e))throw new TZ.TypeBoxError(i);return(0,jO.Computed)("Index",[t,e])}return(0,dn.IsMappedResult)(e)?(0,PZ.IndexFromMappedResult)(t,e,n):(0,dn.IsMappedKey)(e)?(0,RZ.IndexFromMappedKey)(t,e,n):(0,kZ.CreateType)((0,dn.IsSchema)(e)?BO(t,(0,MZ.IndexPropertyKeys)(e)):BO(t,e),n)}});var ey=C(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});ty.IndexFromMappedKey=KZ;var UZ=Nh(),$Z=bt(),NZ=ln();function BZ(t,e,n){return{[e]:(0,UZ.Index)(t,[e],(0,NZ.Clone)(n))}}function jZ(t,e,n){return e.reduce((i,o)=>({...i,...BZ(t,o,n)}),{})}function qZ(t,e,n){return jZ(t,e.keys,n)}function KZ(t,e,n){let i=qZ(t,e,n);return(0,$Z.MappedResult)(i)}});var pi=C($i=>{"use strict";var GZ=$i&&$i.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Bh=$i&&$i.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&GZ(e,t,n)};Object.defineProperty($i,"__esModule",{value:!0});Bh(ey(),$i);Bh(Yx(),$i);Bh(Uh(),$i);Bh(Nh(),$i)});var GO=C(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});ny.Iterator=VZ;var zZ=he(),HZ=me();function VZ(t,e){return(0,zZ.CreateType)({[HZ.Kind]:"Iterator",type:"Iterator",items:t},e)}});var Jl=C(_s=>{"use strict";var QZ=_s&&_s.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),JZ=_s&&_s.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&QZ(e,t,n)};Object.defineProperty(_s,"__esModule",{value:!0});JZ(GO(),_s)});var HO=C(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});jh.Object=void 0;var YZ=he(),zO=me(),XZ=Oe();function ZZ(t){return globalThis.Object.keys(t).filter(e=>!(0,XZ.IsOptional)(t[e]))}function eee(t,e){let n=ZZ(t),i=n.length>0?{[zO.Kind]:"Object",type:"object",required:n,properties:t}:{[zO.Kind]:"Object",type:"object",properties:t};return(0,YZ.CreateType)(i,e)}jh.Object=eee});var pn=C(Os=>{"use strict";var tee=Os&&Os.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),nee=Os&&Os.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&tee(e,t,n)};Object.defineProperty(Os,"__esModule",{value:!0});nee(HO(),Os)});var VO=C(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});iy.Promise=ree;var iee=he(),oee=me();function ree(t,e){return(0,iee.CreateType)({[oee.Kind]:"Promise",type:"Promise",item:t},e)}});var sd=C(Ls=>{"use strict";var see=Ls&&Ls.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),aee=Ls&&Ls.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&see(e,t,n)};Object.defineProperty(Ls,"__esModule",{value:!0});aee(VO(),Ls)});var ry=C(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});oy.Readonly=hee;var QO=he(),JO=me(),lee=vo(),cee=sy(),uee=Oe();function dee(t){return(0,QO.CreateType)((0,lee.Discard)(t,[JO.ReadonlyKind]))}function pee(t){return(0,QO.CreateType)({...t,[JO.ReadonlyKind]:"Readonly"})}function mee(t,e){return e===!1?dee(t):pee(t)}function hee(t,e){let n=e??!0;return(0,uee.IsMappedResult)(t)?(0,cee.ReadonlyFromMappedResult)(t,n):mee(t,n)}});var sy=C(ay=>{"use strict";Object.defineProperty(ay,"__esModule",{value:!0});ay.ReadonlyFromMappedResult=xee;var gee=bt(),fee=ry();function vee(t,e){let n={};for(let i of globalThis.Object.getOwnPropertyNames(t))n[i]=(0,fee.Readonly)(t[i],e);return n}function bee(t,e){return vee(t.properties,e)}function xee(t,e){let n=bee(t,e);return(0,gee.MappedResult)(n)}});var hr=C(mr=>{"use strict";var yee=mr&&mr.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),YO=mr&&mr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&yee(e,t,n)};Object.defineProperty(mr,"__esModule",{value:!0});YO(sy(),mr);YO(ry(),mr)});var ZO=C(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});ly.Tuple=See;var wee=he(),XO=me();function See(t,e){return(0,wee.CreateType)(t.length>0?{[XO.Kind]:"Tuple",type:"array",items:t,additionalItems:!1,minItems:t.length,maxItems:t.length}:{[XO.Kind]:"Tuple",type:"array",minItems:t.length,maxItems:t.length},e)}});var yo=C(Ws=>{"use strict";var kee=Ws&&Ws.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Tee=Ws&&Ws.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&kee(e,t,n)};Object.defineProperty(Ws,"__esModule",{value:!0});Tee(ZO(),Ws)});var r5=C(qh=>{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});qh.MappedFunctionReturnType=o5;qh.Mapped=Kee;var cy=me(),e5=vo(),Cee=jl(),Mee=ql(),Ree=Kl(),Pee=ur(),Iee=pi(),Eee=An(),Aee=Jl(),t5=Jt(),n5=pn(),_ee=Di(),Oee=sd(),Lee=hr(),Wee=yo(),Fee=mt(),Dee=Xu(),Uee=Rx(),Yt=Oe();function i5(t,e){return t in e?Jn(t,e[t]):(0,Uee.MappedResult)(e)}function $ee(t){return{[t]:(0,t5.Literal)(t)}}function Nee(t){let e={};for(let n of t)e[n]=(0,t5.Literal)(n);return e}function Bee(t,e){return(0,Dee.SetIncludes)(e,t)?$ee(t):Nee(e)}function jee(t,e){let n=Bee(t,e);return i5(t,n)}function ad(t,e){return e.map(n=>Jn(t,n))}function qee(t,e){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=Jn(t,e[i]);return n}function Jn(t,e){let n={...e};return(0,Yt.IsOptional)(e)?(0,_ee.Optional)(Jn(t,(0,e5.Discard)(e,[cy.OptionalKind]))):(0,Yt.IsReadonly)(e)?(0,Lee.Readonly)(Jn(t,(0,e5.Discard)(e,[cy.ReadonlyKind]))):(0,Yt.IsMappedResult)(e)?i5(t,e.properties):(0,Yt.IsMappedKey)(e)?jee(t,e.keys):(0,Yt.IsConstructor)(e)?(0,Ree.Constructor)(ad(t,e.parameters),Jn(t,e.returns),n):(0,Yt.IsFunction)(e)?(0,Pee.Function)(ad(t,e.parameters),Jn(t,e.returns),n):(0,Yt.IsAsyncIterator)(e)?(0,Mee.AsyncIterator)(Jn(t,e.items),n):(0,Yt.IsIterator)(e)?(0,Aee.Iterator)(Jn(t,e.items),n):(0,Yt.IsIntersect)(e)?(0,Eee.Intersect)(ad(t,e.allOf),n):(0,Yt.IsUnion)(e)?(0,Fee.Union)(ad(t,e.anyOf),n):(0,Yt.IsTuple)(e)?(0,Wee.Tuple)(ad(t,e.items??[]),n):(0,Yt.IsObject)(e)?(0,n5.Object)(qee(t,e.properties),n):(0,Yt.IsArray)(e)?(0,Cee.Array)(Jn(t,e.items),n):(0,Yt.IsPromise)(e)?(0,Oee.Promise)(Jn(t,e.item),n):e}function o5(t,e){let n={};for(let i of t)n[i]=Jn(i,e);return n}function Kee(t,e,n){let i=(0,Yt.IsSchema)(t)?(0,Iee.IndexPropertyKeys)(t):t,o=e({[cy.Kind]:"MappedKey",keys:i}),r=o5(i,o);return(0,n5.Object)(r,n)}});var bt=C(wo=>{"use strict";var Gee=wo&&wo.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),uy=wo&&wo.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Gee(e,t,n)};Object.defineProperty(wo,"__esModule",{value:!0});uy(xO(),wo);uy(Rx(),wo);uy(r5(),wo)});var py=C(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});dy.Optional=Xee;var s5=he(),a5=me(),zee=vo(),Hee=my(),Vee=Oe();function Qee(t){return(0,s5.CreateType)((0,zee.Discard)(t,[a5.OptionalKind]))}function Jee(t){return(0,s5.CreateType)({...t,[a5.OptionalKind]:"Optional"})}function Yee(t,e){return e===!1?Qee(t):Jee(t)}function Xee(t,e){let n=e??!0;return(0,Vee.IsMappedResult)(t)?(0,Hee.OptionalFromMappedResult)(t,n):Yee(t,n)}});var my=C(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});hy.OptionalFromMappedResult=ite;var Zee=bt(),ete=py();function tte(t,e){let n={};for(let i of globalThis.Object.getOwnPropertyNames(t))n[i]=(0,ete.Optional)(t[i],e);return n}function nte(t,e){return tte(t.properties,e)}function ite(t,e){let n=nte(t,e);return(0,Zee.MappedResult)(n)}});var Di=C(gr=>{"use strict";var ote=gr&&gr.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),l5=gr&&gr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&ote(e,t,n)};Object.defineProperty(gr,"__esModule",{value:!0});l5(my(),gr);l5(py(),gr)});var vy=C(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});fy.IntersectCreate=ste;var rte=he(),c5=me(),gy=Oe();function ste(t,e={}){let n=t.every(o=>(0,gy.IsObject)(o)),i=(0,gy.IsSchema)(e.unevaluatedProperties)?{unevaluatedProperties:e.unevaluatedProperties}:{};return(0,rte.CreateType)(e.unevaluatedProperties===!1||(0,gy.IsSchema)(e.unevaluatedProperties)||n?{...i,[c5.Kind]:"Intersect",type:"object",allOf:t}:{...i,[c5.Kind]:"Intersect",allOf:t},e)}});var p5=C(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});xy.IntersectEvaluated=gte;var ate=me(),lte=he(),cte=vo(),ute=At(),dte=Di(),u5=vy(),by=Oe();function pte(t){return t.every(e=>(0,by.IsOptional)(e))}function mte(t){return(0,cte.Discard)(t,[ate.OptionalKind])}function d5(t){return t.map(e=>(0,by.IsOptional)(e)?mte(e):e)}function hte(t,e){return pte(t)?(0,dte.Optional)((0,u5.IntersectCreate)(d5(t),e)):(0,u5.IntersectCreate)(d5(t),e)}function gte(t,e={}){if(t.length===1)return(0,lte.CreateType)(t[0],e);if(t.length===0)return(0,ute.Never)(e);if(t.some(n=>(0,by.IsTransform)(n)))throw new Error("Cannot intersect transform types");return hte(t,e)}});var h5=C(m5=>{"use strict";Object.defineProperty(m5,"__esModule",{value:!0});var F6e=me()});var g5=C(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});yy.Intersect=yte;var fte=he(),vte=At(),bte=vy(),xte=Oe();function yte(t,e){if(t.length===1)return(0,fte.CreateType)(t[0],e);if(t.length===0)return(0,vte.Never)(e);if(t.some(n=>(0,xte.IsTransform)(n)))throw new Error("Cannot intersect transform types");return(0,bte.IntersectCreate)(t,e)}});var An=C(So=>{"use strict";var wte=So&&So.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),wy=So&&So.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&wte(e,t,n)};Object.defineProperty(So,"__esModule",{value:!0});wy(p5(),So);wy(h5(),So);wy(g5(),So)});var f5=C(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});Sy.Ref=Cte;var Ste=Li(),kte=he(),Tte=me();function Cte(...t){let[e,n]=typeof t[0]=="string"?[t[0],t[1]]:[t[0].$id,t[1]];if(typeof e!="string")throw new Ste.TypeBoxError("Ref: $ref must be a string");return(0,kte.CreateType)({[Tte.Kind]:"Ref",$ref:e},n)}});var fr=C(Fs=>{"use strict";var Mte=Fs&&Fs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Rte=Fs&&Fs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Mte(e,t,n)};Object.defineProperty(Fs,"__esModule",{value:!0});Rte(f5(),Fs)});var b5=C(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});Cy.Awaited=Ty;var Pte=he(),ky=cr(),Ite=An(),Ete=mt(),Ate=fr(),ld=Oe();function _te(t,e){return(0,ky.Computed)("Awaited",[(0,ky.Computed)(t,e)])}function Ote(t){return(0,ky.Computed)("Awaited",[(0,Ate.Ref)(t)])}function Lte(t){return(0,Ite.Intersect)(v5(t))}function Wte(t){return(0,Ete.Union)(v5(t))}function Fte(t){return Ty(t)}function v5(t){return t.map(e=>Ty(e))}function Ty(t,e){return(0,Pte.CreateType)((0,ld.IsComputed)(t)?_te(t.target,t.parameters):(0,ld.IsIntersect)(t)?Lte(t.allOf):(0,ld.IsUnion)(t)?Wte(t.anyOf):(0,ld.IsPromise)(t)?Fte(t.item):(0,ld.IsRef)(t)?Ote(t.$ref):t,e)}});var cd=C(Ds=>{"use strict";var Dte=Ds&&Ds.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Ute=Ds&&Ds.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Dte(e,t,n)};Object.defineProperty(Ds,"__esModule",{value:!0});Ute(b5(),Ds)});var Gh=C(Kh=>{"use strict";Object.defineProperty(Kh,"__esModule",{value:!0});Kh.KeyOfPropertyKeys=Ry;Kh.KeyOfPattern=Gte;var x5=Xu(),Yl=Oe();function y5(t){let e=[];for(let n of t)e.push(Ry(n));return e}function $te(t){let e=y5(t);return(0,x5.SetUnionMany)(e)}function Nte(t){let e=y5(t);return(0,x5.SetIntersectMany)(e)}function Bte(t){return t.map((e,n)=>n.toString())}function jte(t){return["[number]"]}function qte(t){return globalThis.Object.getOwnPropertyNames(t)}function Kte(t){return My?globalThis.Object.getOwnPropertyNames(t).map(n=>n[0]==="^"&&n[n.length-1]==="$"?n.slice(1,n.length-1):n):[]}function Ry(t){return(0,Yl.IsIntersect)(t)?$te(t.allOf):(0,Yl.IsUnion)(t)?Nte(t.anyOf):(0,Yl.IsTuple)(t)?Bte(t.items??[]):(0,Yl.IsArray)(t)?jte(t.items):(0,Yl.IsObject)(t)?qte(t.properties):(0,Yl.IsRecord)(t)?Kte(t.patternProperties):[]}var My=!1;function Gte(t){My=!0;let e=Ry(t);return My=!1,`^(${e.map(i=>`(${i})`).join("|")})$`}});var Ey=C(zh=>{"use strict";Object.defineProperty(zh,"__esModule",{value:!0});zh.KeyOfPropertyKeysToRest=w5;zh.KeyOf=nne;var zte=he(),Hte=Jt(),Vte=dr(),Iy=cr(),Qte=fr(),Jte=Gh(),Yte=mt(),Xte=Ay(),Py=Oe();function Zte(t,e){return(0,Iy.Computed)("KeyOf",[(0,Iy.Computed)(t,e)])}function ene(t){return(0,Iy.Computed)("KeyOf",[(0,Qte.Ref)(t)])}function tne(t,e){let n=(0,Jte.KeyOfPropertyKeys)(t),i=w5(n),o=(0,Yte.UnionEvaluated)(i);return(0,zte.CreateType)(o,e)}function w5(t){return t.map(e=>e==="[number]"?(0,Vte.Number)():(0,Hte.Literal)(e))}function nne(t,e){return(0,Py.IsComputed)(t)?Zte(t.target,t.parameters):(0,Py.IsRef)(t)?ene(t.$ref):(0,Py.IsMappedResult)(t)?(0,Xte.KeyOfFromMappedResult)(t,e):tne(t,e)}});var Ay=C(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});_y.KeyOfFromMappedResult=lne;var ine=bt(),one=Ey(),rne=ln();function sne(t,e){let n={};for(let i of globalThis.Object.getOwnPropertyNames(t))n[i]=(0,one.KeyOf)(t[i],(0,rne.Clone)(e));return n}function ane(t,e){return sne(t.properties,e)}function lne(t,e){let n=ane(t,e);return(0,ine.MappedResult)(n)}});var S5=C(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});Oy.KeyOfPropertyEntries=dne;var cne=Nh(),une=Gh();function dne(t){let e=(0,une.KeyOfPropertyKeys)(t),n=(0,cne.IndexFromPropertyKeys)(t,e);return e.map((i,o)=>[e[o],n[o]])}});var Xl=C(Ni=>{"use strict";var pne=Ni&&Ni.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Hh=Ni&&Ni.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&pne(e,t,n)};Object.defineProperty(Ni,"__esModule",{value:!0});Hh(Ay(),Ni);Hh(S5(),Ni);Hh(Gh(),Ni);Hh(Ey(),Ni)});var k5=C(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});Ly.Composite=kne;var mne=An(),hne=pi(),gne=Xl(),fne=pn(),vne=Xu(),bne=Oe();function xne(t){let e=[];for(let n of t)e.push(...(0,gne.KeyOfPropertyKeys)(n));return(0,vne.SetDistinct)(e)}function yne(t){return t.filter(e=>!(0,bne.IsNever)(e))}function wne(t,e){let n=[];for(let i of t)n.push(...(0,hne.IndexFromPropertyKeys)(i,[e]));return yne(n)}function Sne(t,e){let n={};for(let i of e)n[i]=(0,mne.IntersectEvaluated)(wne(t,i));return n}function kne(t,e){let n=xne(t),i=Sne(t,n);return(0,fne.Object)(i,e)}});var Vh=C(Us=>{"use strict";var Tne=Us&&Us.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Cne=Us&&Us.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Tne(e,t,n)};Object.defineProperty(Us,"__esModule",{value:!0});Cne(k5(),Us)});var T5=C(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});Wy.Date=Pne;var Mne=me(),Rne=he();function Pne(t){return(0,Rne.CreateType)({[Mne.Kind]:"Date",type:"Date"},t)}});var ud=C($s=>{"use strict";var Ine=$s&&$s.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Ene=$s&&$s.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Ine(e,t,n)};Object.defineProperty($s,"__esModule",{value:!0});Ene(T5(),$s)});var C5=C(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});Fy.Null=One;var Ane=he(),_ne=me();function One(t){return(0,Ane.CreateType)({[_ne.Kind]:"Null",type:"null"},t)}});var dd=C(Ns=>{"use strict";var Lne=Ns&&Ns.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Wne=Ns&&Ns.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Lne(e,t,n)};Object.defineProperty(Ns,"__esModule",{value:!0});Wne(C5(),Ns)});var M5=C(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});Dy.Symbol=Une;var Fne=he(),Dne=me();function Une(t){return(0,Fne.CreateType)({[Dne.Kind]:"Symbol",type:"symbol"},t)}});var pd=C(Bs=>{"use strict";var $ne=Bs&&Bs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Nne=Bs&&Bs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&$ne(e,t,n)};Object.defineProperty(Bs,"__esModule",{value:!0});Nne(M5(),Bs)});var R5=C(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});Uy.Undefined=qne;var Bne=he(),jne=me();function qne(t){return(0,Bne.CreateType)({[jne.Kind]:"Undefined",type:"undefined"},t)}});var md=C(js=>{"use strict";var Kne=js&&js.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Gne=js&&js.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Kne(e,t,n)};Object.defineProperty(js,"__esModule",{value:!0});Gne(R5(),js)});var P5=C($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});$y.Uint8Array=Vne;var zne=he(),Hne=me();function Vne(t){return(0,zne.CreateType)({[Hne.Kind]:"Uint8Array",type:"Uint8Array"},t)}});var hd=C(qs=>{"use strict";var Qne=qs&&qs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Jne=qs&&qs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Qne(e,t,n)};Object.defineProperty(qs,"__esModule",{value:!0});Jne(P5(),qs)});var I5=C(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});Ny.Unknown=Zne;var Yne=he(),Xne=me();function Zne(t){return(0,Yne.CreateType)({[Xne.Kind]:"Unknown"},t)}});var Gs=C(Ks=>{"use strict";var eie=Ks&&Ks.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),tie=Ks&&Ks.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&eie(e,t,n)};Object.defineProperty(Ks,"__esModule",{value:!0});tie(I5(),Ks)});var _5=C(Ky=>{"use strict";Object.defineProperty(Ky,"__esModule",{value:!0});Ky.Const=hie;var E5=Bl(),nie=Vl(),iie=ud(),oie=ur(),By=Jt(),rie=dd(),A5=pn(),sie=pd(),aie=yo(),jy=hr(),lie=md(),cie=hd(),uie=Gs(),die=go(),mn=Qt();function pie(t){return t.map(e=>qy(e,!1))}function mie(t){let e={};for(let n of globalThis.Object.getOwnPropertyNames(t))e[n]=(0,jy.Readonly)(qy(t[n],!1));return e}function Qh(t,e){return e===!0?t:(0,jy.Readonly)(t)}function qy(t,e){return(0,mn.IsAsyncIterator)(t)||(0,mn.IsIterator)(t)?Qh((0,E5.Any)(),e):(0,mn.IsArray)(t)?(0,jy.Readonly)((0,aie.Tuple)(pie(t))):(0,mn.IsUint8Array)(t)?(0,cie.Uint8Array)():(0,mn.IsDate)(t)?(0,iie.Date)():(0,mn.IsObject)(t)?Qh((0,A5.Object)(mie(t)),e):(0,mn.IsFunction)(t)?Qh((0,oie.Function)([],(0,uie.Unknown)()),e):(0,mn.IsUndefined)(t)?(0,lie.Undefined)():(0,mn.IsNull)(t)?(0,rie.Null)():(0,mn.IsSymbol)(t)?(0,sie.Symbol)():(0,mn.IsBigInt)(t)?(0,nie.BigInt)():(0,mn.IsNumber)(t)||(0,mn.IsBoolean)(t)||(0,mn.IsString)(t)?(0,By.Literal)(t):(0,A5.Object)({})}function hie(t,e){return(0,die.CreateType)(qy(t,!0),e)}});var Jh=C(zs=>{"use strict";var gie=zs&&zs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),fie=zs&&zs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&gie(e,t,n)};Object.defineProperty(zs,"__esModule",{value:!0});fie(_5(),zs)});var O5=C(ko=>{"use strict";var vie=ko&&ko.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),bie=ko&&ko.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xie=ko&&ko.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&vie(n,e,i[o]);return bie(n,e),n}})();Object.defineProperty(ko,"__esModule",{value:!0});ko.ConstructorParameters=kie;var yie=yo(),wie=At(),Sie=xie(Oe());function kie(t,e){return Sie.IsConstructor(t)?(0,yie.Tuple)(t.parameters,e):(0,wie.Never)(e)}});var Yh=C(Hs=>{"use strict";var Tie=Hs&&Hs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Cie=Hs&&Hs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Tie(e,t,n)};Object.defineProperty(Hs,"__esModule",{value:!0});Cie(O5(),Hs)});var L5=C(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0});Gy.Enum=Eie;var Mie=Jt(),Rie=me(),Pie=mt(),Iie=Qt();function Eie(t,e){if((0,Iie.IsUndefined)(t))throw new Error("Enum undefined or empty");let n=globalThis.Object.getOwnPropertyNames(t).filter(r=>isNaN(r)).map(r=>t[r]),o=[...new Set(n)].map(r=>(0,Mie.Literal)(r));return(0,Pie.Union)(o,{...e,[Rie.Hint]:"Enum"})}});var Xh=C(Vs=>{"use strict";var Aie=Vs&&Vs.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),_ie=Vs&&Vs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Aie(e,t,n)};Object.defineProperty(Vs,"__esModule",{value:!0});_ie(L5(),Vs)});var Zy=C(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.ExtendsResult=Qs.ExtendsResolverError=void 0;Qs.ExtendsCheck=woe;var W5=Bl(),Oie=ur(),Jy=dr(),Hy=Es(),Lie=Gs(),F5=Ui(),Zl=Yu(),B5=me(),Wie=Li(),M=fx(),Zh=class extends Wie.TypeBoxError{};Qs.ExtendsResolverError=Zh;var B;(function(t){t[t.Union=0]="Union",t[t.True=1]="True",t[t.False=2]="False"})(B||(Qs.ExtendsResult=B={}));function Yn(t){return t===B.False?t:B.True}function ec(t){throw new Zh(t)}function xt(t){return M.TypeGuard.IsNever(t)||M.TypeGuard.IsIntersect(t)||M.TypeGuard.IsUnion(t)||M.TypeGuard.IsUnknown(t)||M.TypeGuard.IsAny(t)}function yt(t,e){return M.TypeGuard.IsNever(e)?K5(t,e):M.TypeGuard.IsIntersect(e)?eg(t,e):M.TypeGuard.IsUnion(e)?Xy(t,e):M.TypeGuard.IsUnknown(e)?V5(t,e):M.TypeGuard.IsAny(e)?Yy(t,e):ec("StructuralRight")}function Yy(t,e){return B.True}function Fie(t,e){return M.TypeGuard.IsIntersect(e)?eg(t,e):M.TypeGuard.IsUnion(e)&&e.anyOf.some(n=>M.TypeGuard.IsAny(n)||M.TypeGuard.IsUnknown(n))?B.True:M.TypeGuard.IsUnion(e)?B.Union:M.TypeGuard.IsUnknown(e)||M.TypeGuard.IsAny(e)?B.True:B.Union}function Die(t,e){return M.TypeGuard.IsUnknown(t)?B.False:M.TypeGuard.IsAny(t)?B.Union:M.TypeGuard.IsNever(t)?B.True:B.False}function Uie(t,e){return M.TypeGuard.IsObject(e)&&tg(e)?B.True:xt(e)?yt(t,e):M.TypeGuard.IsArray(e)?Yn(Ke(t.items,e.items)):B.False}function $ie(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsAsyncIterator(e)?Yn(Ke(t.items,e.items)):B.False}function Nie(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):M.TypeGuard.IsBigInt(e)?B.True:B.False}function j5(t,e){return M.TypeGuard.IsLiteralBoolean(t)||M.TypeGuard.IsBoolean(t)?B.True:B.False}function Bie(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):M.TypeGuard.IsBoolean(e)?B.True:B.False}function jie(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsConstructor(e)?t.parameters.length>e.parameters.length?B.False:t.parameters.every((n,i)=>Yn(Ke(e.parameters[i],n))===B.True)?Yn(Ke(t.returns,e.returns)):B.False:B.False}function qie(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):M.TypeGuard.IsDate(e)?B.True:B.False}function Kie(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsFunction(e)?t.parameters.length>e.parameters.length?B.False:t.parameters.every((n,i)=>Yn(Ke(e.parameters[i],n))===B.True)?Yn(Ke(t.returns,e.returns)):B.False:B.False}function q5(t,e){return M.TypeGuard.IsLiteral(t)&&M.ValueGuard.IsNumber(t.const)||M.TypeGuard.IsNumber(t)||M.TypeGuard.IsInteger(t)?B.True:B.False}function Gie(t,e){return M.TypeGuard.IsInteger(e)||M.TypeGuard.IsNumber(e)?B.True:xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):B.False}function eg(t,e){return e.allOf.every(n=>Ke(t,n)===B.True)?B.True:B.False}function zie(t,e){return t.allOf.some(n=>Ke(n,e)===B.True)?B.True:B.False}function Hie(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsIterator(e)?Yn(Ke(t.items,e.items)):B.False}function Vie(t,e){return M.TypeGuard.IsLiteral(e)&&e.const===t.const?B.True:xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):M.TypeGuard.IsString(e)?H5(t,e):M.TypeGuard.IsNumber(e)?G5(t,e):M.TypeGuard.IsInteger(e)?q5(t,e):M.TypeGuard.IsBoolean(e)?j5(t,e):B.False}function K5(t,e){return B.False}function Qie(t,e){return B.True}function D5(t){let[e,n]=[t,0];for(;M.TypeGuard.IsNot(e);)e=e.not,n+=1;return n%2===0?e:(0,Lie.Unknown)()}function Jie(t,e){return M.TypeGuard.IsNot(t)?Ke(D5(t),e):M.TypeGuard.IsNot(e)?Ke(t,D5(e)):ec("Invalid fallthrough for Not")}function Yie(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):M.TypeGuard.IsNull(e)?B.True:B.False}function G5(t,e){return M.TypeGuard.IsLiteralNumber(t)||M.TypeGuard.IsNumber(t)||M.TypeGuard.IsInteger(t)?B.True:B.False}function Xie(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):M.TypeGuard.IsInteger(e)||M.TypeGuard.IsNumber(e)?B.True:B.False}function hn(t,e){return Object.getOwnPropertyNames(t.properties).length===e}function U5(t){return tg(t)}function $5(t){return hn(t,0)||hn(t,1)&&"description"in t.properties&&M.TypeGuard.IsUnion(t.properties.description)&&t.properties.description.anyOf.length===2&&(M.TypeGuard.IsString(t.properties.description.anyOf[0])&&M.TypeGuard.IsUndefined(t.properties.description.anyOf[1])||M.TypeGuard.IsString(t.properties.description.anyOf[1])&&M.TypeGuard.IsUndefined(t.properties.description.anyOf[0]))}function zy(t){return hn(t,0)}function N5(t){return hn(t,0)}function Zie(t){return hn(t,0)}function eoe(t){return hn(t,0)}function toe(t){return tg(t)}function noe(t){let e=(0,Jy.Number)();return hn(t,0)||hn(t,1)&&"length"in t.properties&&Yn(Ke(t.properties.length,e))===B.True}function ioe(t){return hn(t,0)}function tg(t){let e=(0,Jy.Number)();return hn(t,0)||hn(t,1)&&"length"in t.properties&&Yn(Ke(t.properties.length,e))===B.True}function ooe(t){let e=(0,Oie.Function)([(0,W5.Any)()],(0,W5.Any)());return hn(t,0)||hn(t,1)&&"then"in t.properties&&Yn(Ke(t.properties.then,e))===B.True}function z5(t,e){return Ke(t,e)===B.False||M.TypeGuard.IsOptional(t)&&!M.TypeGuard.IsOptional(e)?B.False:B.True}function Bt(t,e){return M.TypeGuard.IsUnknown(t)?B.False:M.TypeGuard.IsAny(t)?B.Union:M.TypeGuard.IsNever(t)||M.TypeGuard.IsLiteralString(t)&&U5(e)||M.TypeGuard.IsLiteralNumber(t)&&zy(e)||M.TypeGuard.IsLiteralBoolean(t)&&N5(e)||M.TypeGuard.IsSymbol(t)&&$5(e)||M.TypeGuard.IsBigInt(t)&&Zie(e)||M.TypeGuard.IsString(t)&&U5(e)||M.TypeGuard.IsSymbol(t)&&$5(e)||M.TypeGuard.IsNumber(t)&&zy(e)||M.TypeGuard.IsInteger(t)&&zy(e)||M.TypeGuard.IsBoolean(t)&&N5(e)||M.TypeGuard.IsUint8Array(t)&&toe(e)||M.TypeGuard.IsDate(t)&&eoe(e)||M.TypeGuard.IsConstructor(t)&&ioe(e)||M.TypeGuard.IsFunction(t)&&noe(e)?B.True:M.TypeGuard.IsRecord(t)&&M.TypeGuard.IsString(Vy(t))?e[B5.Hint]==="Record"?B.True:B.False:M.TypeGuard.IsRecord(t)&&M.TypeGuard.IsNumber(Vy(t))&&hn(e,0)?B.True:B.False}function roe(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):M.TypeGuard.IsObject(e)?(()=>{for(let n of Object.getOwnPropertyNames(e.properties)){if(!(n in t.properties)&&!M.TypeGuard.IsOptional(e.properties[n]))return B.False;if(M.TypeGuard.IsOptional(e.properties[n]))return B.True;if(z5(t.properties[n],e.properties[n])===B.False)return B.False}return B.True})():B.False}function soe(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)&&ooe(e)?B.True:M.TypeGuard.IsPromise(e)?Yn(Ke(t.item,e.item)):B.False}function Vy(t){return Zl.PatternNumberExact in t.patternProperties?(0,Jy.Number)():Zl.PatternStringExact in t.patternProperties?(0,Hy.String)():ec("Unknown record key pattern")}function Qy(t){return Zl.PatternNumberExact in t.patternProperties?t.patternProperties[Zl.PatternNumberExact]:Zl.PatternStringExact in t.patternProperties?t.patternProperties[Zl.PatternStringExact]:ec("Unable to get record value schema")}function Xn(t,e){let[n,i]=[Vy(e),Qy(e)];return M.TypeGuard.IsLiteralString(t)&&M.TypeGuard.IsNumber(n)&&Yn(Ke(t,i))===B.True?B.True:M.TypeGuard.IsUint8Array(t)&&M.TypeGuard.IsNumber(n)||M.TypeGuard.IsString(t)&&M.TypeGuard.IsNumber(n)||M.TypeGuard.IsArray(t)&&M.TypeGuard.IsNumber(n)?Ke(t,i):M.TypeGuard.IsObject(t)?(()=>{for(let o of Object.getOwnPropertyNames(t.properties))if(z5(i,t.properties[o])===B.False)return B.False;return B.True})():B.False}function aoe(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Ke(Qy(t),Qy(e)):B.False}function loe(t,e){let n=M.TypeGuard.IsRegExp(t)?(0,Hy.String)():t,i=M.TypeGuard.IsRegExp(e)?(0,Hy.String)():e;return Ke(n,i)}function H5(t,e){return M.TypeGuard.IsLiteral(t)&&M.ValueGuard.IsString(t.const)||M.TypeGuard.IsString(t)?B.True:B.False}function coe(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):M.TypeGuard.IsString(e)?B.True:B.False}function uoe(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):M.TypeGuard.IsSymbol(e)?B.True:B.False}function doe(t,e){return M.TypeGuard.IsTemplateLiteral(t)?Ke((0,F5.TemplateLiteralToUnion)(t),e):M.TypeGuard.IsTemplateLiteral(e)?Ke(t,(0,F5.TemplateLiteralToUnion)(e)):ec("Invalid fallthrough for TemplateLiteral")}function poe(t,e){return M.TypeGuard.IsArray(e)&&t.items!==void 0&&t.items.every(n=>Ke(n,e.items)===B.True)}function moe(t,e){return M.TypeGuard.IsNever(t)?B.True:M.TypeGuard.IsUnknown(t)?B.False:M.TypeGuard.IsAny(t)?B.Union:B.False}function hoe(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)&&tg(e)||M.TypeGuard.IsArray(e)&&poe(t,e)?B.True:M.TypeGuard.IsTuple(e)?M.ValueGuard.IsUndefined(t.items)&&!M.ValueGuard.IsUndefined(e.items)||!M.ValueGuard.IsUndefined(t.items)&&M.ValueGuard.IsUndefined(e.items)?B.False:M.ValueGuard.IsUndefined(t.items)&&!M.ValueGuard.IsUndefined(e.items)||t.items.every((n,i)=>Ke(n,e.items[i])===B.True)?B.True:B.False:B.False}function goe(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):M.TypeGuard.IsUint8Array(e)?B.True:B.False}function foe(t,e){return xt(e)?yt(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsRecord(e)?Xn(t,e):M.TypeGuard.IsVoid(e)?xoe(t,e):M.TypeGuard.IsUndefined(e)?B.True:B.False}function Xy(t,e){return e.anyOf.some(n=>Ke(t,n)===B.True)?B.True:B.False}function voe(t,e){return t.anyOf.every(n=>Ke(n,e)===B.True)?B.True:B.False}function V5(t,e){return B.True}function boe(t,e){return M.TypeGuard.IsNever(e)?K5(t,e):M.TypeGuard.IsIntersect(e)?eg(t,e):M.TypeGuard.IsUnion(e)?Xy(t,e):M.TypeGuard.IsAny(e)?Yy(t,e):M.TypeGuard.IsString(e)?H5(t,e):M.TypeGuard.IsNumber(e)?G5(t,e):M.TypeGuard.IsInteger(e)?q5(t,e):M.TypeGuard.IsBoolean(e)?j5(t,e):M.TypeGuard.IsArray(e)?Die(t,e):M.TypeGuard.IsTuple(e)?moe(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsUnknown(e)?B.True:B.False}function xoe(t,e){return M.TypeGuard.IsUndefined(t)||M.TypeGuard.IsUndefined(t)?B.True:B.False}function yoe(t,e){return M.TypeGuard.IsIntersect(e)?eg(t,e):M.TypeGuard.IsUnion(e)?Xy(t,e):M.TypeGuard.IsUnknown(e)?V5(t,e):M.TypeGuard.IsAny(e)?Yy(t,e):M.TypeGuard.IsObject(e)?Bt(t,e):M.TypeGuard.IsVoid(e)?B.True:B.False}function Ke(t,e){return M.TypeGuard.IsTemplateLiteral(t)||M.TypeGuard.IsTemplateLiteral(e)?doe(t,e):M.TypeGuard.IsRegExp(t)||M.TypeGuard.IsRegExp(e)?loe(t,e):M.TypeGuard.IsNot(t)||M.TypeGuard.IsNot(e)?Jie(t,e):M.TypeGuard.IsAny(t)?Fie(t,e):M.TypeGuard.IsArray(t)?Uie(t,e):M.TypeGuard.IsBigInt(t)?Nie(t,e):M.TypeGuard.IsBoolean(t)?Bie(t,e):M.TypeGuard.IsAsyncIterator(t)?$ie(t,e):M.TypeGuard.IsConstructor(t)?jie(t,e):M.TypeGuard.IsDate(t)?qie(t,e):M.TypeGuard.IsFunction(t)?Kie(t,e):M.TypeGuard.IsInteger(t)?Gie(t,e):M.TypeGuard.IsIntersect(t)?zie(t,e):M.TypeGuard.IsIterator(t)?Hie(t,e):M.TypeGuard.IsLiteral(t)?Vie(t,e):M.TypeGuard.IsNever(t)?Qie(t,e):M.TypeGuard.IsNull(t)?Yie(t,e):M.TypeGuard.IsNumber(t)?Xie(t,e):M.TypeGuard.IsObject(t)?roe(t,e):M.TypeGuard.IsRecord(t)?aoe(t,e):M.TypeGuard.IsString(t)?coe(t,e):M.TypeGuard.IsSymbol(t)?uoe(t,e):M.TypeGuard.IsTuple(t)?hoe(t,e):M.TypeGuard.IsPromise(t)?soe(t,e):M.TypeGuard.IsUint8Array(t)?goe(t,e):M.TypeGuard.IsUndefined(t)?foe(t,e):M.TypeGuard.IsUnion(t)?voe(t,e):M.TypeGuard.IsUnknown(t)?boe(t,e):M.TypeGuard.IsVoid(t)?yoe(t,e):ec(`Unknown left type operand '${t[B5.Kind]}'`)}function woe(t,e){return Ke(t,e)}});var tw=C(ew=>{"use strict";Object.defineProperty(ew,"__esModule",{value:!0});ew.ExtendsFromMappedResult=Roe;var Soe=bt(),koe=ng(),Toe=ln();function Coe(t,e,n,i,o){let r={};for(let s of globalThis.Object.getOwnPropertyNames(t))r[s]=(0,koe.Extends)(t[s],e,n,i,(0,Toe.Clone)(o));return r}function Moe(t,e,n,i,o){return Coe(t.properties,e,n,i,o)}function Roe(t,e,n,i,o){let r=Moe(t,e,n,i,o);return(0,Soe.MappedResult)(r)}});var ng=C(iw=>{"use strict";Object.defineProperty(iw,"__esModule",{value:!0});iw.Extends=_oe;var Q5=he(),Poe=mt(),nw=Zy(),Ioe=ow(),Eoe=tw(),J5=Oe();function Aoe(t,e,n,i){let o=(0,nw.ExtendsCheck)(t,e);return o===nw.ExtendsResult.Union?(0,Poe.Union)([n,i]):o===nw.ExtendsResult.True?n:i}function _oe(t,e,n,i,o){return(0,J5.IsMappedResult)(t)?(0,Eoe.ExtendsFromMappedResult)(t,e,n,i,o):(0,J5.IsMappedKey)(t)?(0,Q5.CreateType)((0,Ioe.ExtendsFromMappedKey)(t,e,n,i,o)):(0,Q5.CreateType)(Aoe(t,e,n,i),o)}});var ow=C(rw=>{"use strict";Object.defineProperty(rw,"__esModule",{value:!0});rw.ExtendsFromMappedKey=Noe;var Ooe=bt(),Loe=Jt(),Woe=ng(),Foe=ln();function Doe(t,e,n,i,o){return{[t]:(0,Woe.Extends)((0,Loe.Literal)(t),e,n,i,(0,Foe.Clone)(o))}}function Uoe(t,e,n,i,o){return t.reduce((r,s)=>({...r,...Doe(s,e,n,i,o)}),{})}function $oe(t,e,n,i,o){return Uoe(t.keys,e,n,i,o)}function Noe(t,e,n,i,o){let r=$oe(t,e,n,i,o);return(0,Ooe.MappedResult)(r)}});var Y5=C(sw=>{"use strict";Object.defineProperty(sw,"__esModule",{value:!0});sw.ExtendsUndefinedCheck=og;var ig=me();function Boe(t){return t.allOf.every(e=>og(e))}function joe(t){return t.anyOf.some(e=>og(e))}function qoe(t){return!og(t.not)}function og(t){return t[ig.Kind]==="Intersect"?Boe(t):t[ig.Kind]==="Union"?joe(t):t[ig.Kind]==="Not"?qoe(t):t[ig.Kind]==="Undefined"}});var tc=C(mi=>{"use strict";var Koe=mi&&mi.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),gd=mi&&mi.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Koe(e,t,n)};Object.defineProperty(mi,"__esModule",{value:!0});gd(Zy(),mi);gd(ow(),mi);gd(tw(),mi);gd(Y5(),mi);gd(ng(),mi)});var lw=C(aw=>{"use strict";Object.defineProperty(aw,"__esModule",{value:!0});aw.ExcludeFromTemplateLiteral=Hoe;var Goe=rg(),zoe=Ui();function Hoe(t,e){return(0,Goe.Exclude)((0,zoe.TemplateLiteralToUnion)(t),e)}});var rg=C(dw=>{"use strict";Object.defineProperty(dw,"__esModule",{value:!0});dw.Exclude=Zoe;var cw=he(),Voe=mt(),Qoe=At(),sg=tc(),Joe=pw(),Yoe=lw(),uw=Oe();function Xoe(t,e){let n=t.filter(i=>(0,sg.ExtendsCheck)(i,e)===sg.ExtendsResult.False);return n.length===1?n[0]:(0,Voe.Union)(n)}function Zoe(t,e,n={}){return(0,uw.IsTemplateLiteral)(t)?(0,cw.CreateType)((0,Yoe.ExcludeFromTemplateLiteral)(t,e),n):(0,uw.IsMappedResult)(t)?(0,cw.CreateType)((0,Joe.ExcludeFromMappedResult)(t,e),n):(0,cw.CreateType)((0,uw.IsUnion)(t)?Xoe(t.anyOf,e):(0,sg.ExtendsCheck)(t,e)!==sg.ExtendsResult.False?(0,Qoe.Never)():t,n)}});var pw=C(mw=>{"use strict";Object.defineProperty(mw,"__esModule",{value:!0});mw.ExcludeFromMappedResult=ore;var ere=bt(),tre=rg();function nre(t,e){let n={};for(let i of globalThis.Object.getOwnPropertyNames(t))n[i]=(0,tre.Exclude)(t[i],e);return n}function ire(t,e){return nre(t.properties,e)}function ore(t,e){let n=ire(t,e);return(0,ere.MappedResult)(n)}});var ag=C(To=>{"use strict";var rre=To&&To.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),hw=To&&To.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&rre(e,t,n)};Object.defineProperty(To,"__esModule",{value:!0});hw(pw(),To);hw(lw(),To);hw(rg(),To)});var fw=C(gw=>{"use strict";Object.defineProperty(gw,"__esModule",{value:!0});gw.ExtractFromTemplateLiteral=lre;var sre=lg(),are=Ui();function lre(t,e){return(0,sre.Extract)((0,are.TemplateLiteralToUnion)(t),e)}});var lg=C(xw=>{"use strict";Object.defineProperty(xw,"__esModule",{value:!0});xw.Extract=hre;var vw=he(),cre=mt(),ure=At(),cg=tc(),dre=yw(),pre=fw(),bw=Oe();function mre(t,e){let n=t.filter(i=>(0,cg.ExtendsCheck)(i,e)!==cg.ExtendsResult.False);return n.length===1?n[0]:(0,cre.Union)(n)}function hre(t,e,n){return(0,bw.IsTemplateLiteral)(t)?(0,vw.CreateType)((0,pre.ExtractFromTemplateLiteral)(t,e),n):(0,bw.IsMappedResult)(t)?(0,vw.CreateType)((0,dre.ExtractFromMappedResult)(t,e),n):(0,vw.CreateType)((0,bw.IsUnion)(t)?mre(t.anyOf,e):(0,cg.ExtendsCheck)(t,e)!==cg.ExtendsResult.False?t:(0,ure.Never)(),n)}});var yw=C(ww=>{"use strict";Object.defineProperty(ww,"__esModule",{value:!0});ww.ExtractFromMappedResult=xre;var gre=bt(),fre=lg();function vre(t,e){let n={};for(let i of globalThis.Object.getOwnPropertyNames(t))n[i]=(0,fre.Extract)(t[i],e);return n}function bre(t,e){return vre(t.properties,e)}function xre(t,e){let n=bre(t,e);return(0,gre.MappedResult)(n)}});var ug=C(Co=>{"use strict";var yre=Co&&Co.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Sw=Co&&Co.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&yre(e,t,n)};Object.defineProperty(Co,"__esModule",{value:!0});Sw(yw(),Co);Sw(fw(),Co);Sw(lg(),Co)});var X5=C(Mo=>{"use strict";var wre=Mo&&Mo.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Sre=Mo&&Mo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kre=Mo&&Mo.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&wre(n,e,i[o]);return Sre(n,e),n}})();Object.defineProperty(Mo,"__esModule",{value:!0});Mo.InstanceType=Rre;var Tre=he(),Cre=At(),Mre=kre(Oe());function Rre(t,e){return Mre.IsConstructor(t)?(0,Tre.CreateType)(t.returns,e):(0,Cre.Never)(e)}});var dg=C(Js=>{"use strict";var Pre=Js&&Js.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Ire=Js&&Js.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Pre(e,t,n)};Object.defineProperty(Js,"__esModule",{value:!0});Ire(X5(),Js)});var Z5=C(kw=>{"use strict";Object.defineProperty(kw,"__esModule",{value:!0});kw.ReadonlyOptional=_re;var Ere=hr(),Are=Di();function _re(t){return(0,Ere.Readonly)((0,Are.Optional)(t))}});var fd=C(Ys=>{"use strict";var Ore=Ys&&Ys.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Lre=Ys&&Ys.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Ore(e,t,n)};Object.defineProperty(Ys,"__esModule",{value:!0});Lre(Z5(),Ys)});var oL=C(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.Record=Yre;nc.RecordPattern=Cw;nc.RecordKey=Xre;nc.RecordValue=Zre;var Wre=he(),tL=me(),Fre=At(),Dre=dr(),nL=pn(),eL=Es(),Ure=mt(),$re=Ui(),Xs=Yu(),iL=pi(),Nre=Qt(),Bi=Oe();function Zs(t,e,n){return(0,Wre.CreateType)({[tL.Kind]:"Record",type:"object",patternProperties:{[t]:e}},n)}function Tw(t,e,n){let i={};for(let o of t)i[o]=e;return(0,nL.Object)(i,{...n,[tL.Hint]:"Record"})}function Bre(t,e,n){return(0,$re.IsTemplateLiteralFinite)(t)?Tw((0,iL.IndexPropertyKeys)(t),e,n):Zs(t.pattern,e,n)}function jre(t,e,n){return Tw((0,iL.IndexPropertyKeys)((0,Ure.Union)(t)),e,n)}function qre(t,e,n){return Tw([t.toString()],e,n)}function Kre(t,e,n){return Zs(t.source,e,n)}function Gre(t,e,n){let i=(0,Nre.IsUndefined)(t.pattern)?Xs.PatternStringExact:t.pattern;return Zs(i,e,n)}function zre(t,e,n){return Zs(Xs.PatternStringExact,e,n)}function Hre(t,e,n){return Zs(Xs.PatternNeverExact,e,n)}function Vre(t,e,n){return(0,nL.Object)({true:e,false:e},n)}function Qre(t,e,n){return Zs(Xs.PatternNumberExact,e,n)}function Jre(t,e,n){return Zs(Xs.PatternNumberExact,e,n)}function Yre(t,e,n={}){return(0,Bi.IsUnion)(t)?jre(t.anyOf,e,n):(0,Bi.IsTemplateLiteral)(t)?Bre(t,e,n):(0,Bi.IsLiteral)(t)?qre(t.const,e,n):(0,Bi.IsBoolean)(t)?Vre(t,e,n):(0,Bi.IsInteger)(t)?Qre(t,e,n):(0,Bi.IsNumber)(t)?Jre(t,e,n):(0,Bi.IsRegExp)(t)?Kre(t,e,n):(0,Bi.IsString)(t)?Gre(t,e,n):(0,Bi.IsAny)(t)?zre(t,e,n):(0,Bi.IsNever)(t)?Hre(t,e,n):(0,Fre.Never)(n)}function Cw(t){return globalThis.Object.getOwnPropertyNames(t.patternProperties)[0]}function Xre(t){let e=Cw(t);return e===Xs.PatternStringExact?(0,eL.String)():e===Xs.PatternNumberExact?(0,Dre.Number)():(0,eL.String)({pattern:e})}function Zre(t){return t.patternProperties[Cw(t)]}});var ic=C(ea=>{"use strict";var ese=ea&&ea.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),tse=ea&&ea.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&ese(e,t,n)};Object.defineProperty(ea,"__esModule",{value:!0});tse(oL(),ea)});var sL=C(ji=>{"use strict";var nse=ji&&ji.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),ise=ji&&ji.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rL=ji&&ji.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&nse(n,e,i[o]);return ise(n,e),n}})();Object.defineProperty(ji,"__esModule",{value:!0});ji.FromTypes=oc;ji.Instantiate=Cse;var ose=Th(),rse=Gs(),sse=fd(),ase=hr(),lse=Di(),cse=pn(),Mw=ic(),use=rL(Qt()),gn=rL(Oe());function dse(t,e){return e.parameters=oc(t,e.parameters),e.returns=hi(t,e.returns),e}function pse(t,e){return e.parameters=oc(t,e.parameters),e.returns=hi(t,e.returns),e}function mse(t,e){return e.allOf=oc(t,e.allOf),e}function hse(t,e){return e.anyOf=oc(t,e.anyOf),e}function gse(t,e){return use.IsUndefined(e.items)||(e.items=oc(t,e.items)),e}function fse(t,e){return e.items=hi(t,e.items),e}function vse(t,e){return e.items=hi(t,e.items),e}function bse(t,e){return e.items=hi(t,e.items),e}function xse(t,e){return e.item=hi(t,e.item),e}function yse(t,e){let n=Tse(t,e.properties);return{...e,...(0,cse.Object)(n)}}function wse(t,e){let n=hi(t,(0,Mw.RecordKey)(e)),i=hi(t,(0,Mw.RecordValue)(e)),o=(0,Mw.Record)(n,i);return{...e,...o}}function Sse(t,e){return e.index in t?t[e.index]:(0,rse.Unknown)()}function kse(t,e){let n=gn.IsReadonly(e),i=gn.IsOptional(e),o=hi(t,e);return n&&i?(0,sse.ReadonlyOptional)(o):n&&!i?(0,ase.Readonly)(o):!n&&i?(0,lse.Optional)(o):o}function Tse(t,e){return globalThis.Object.getOwnPropertyNames(e).reduce((n,i)=>({...n,[i]:kse(t,e[i])}),{})}function oc(t,e){return e.map(n=>hi(t,n))}function hi(t,e){return gn.IsConstructor(e)?dse(t,e):gn.IsFunction(e)?pse(t,e):gn.IsIntersect(e)?mse(t,e):gn.IsUnion(e)?hse(t,e):gn.IsTuple(e)?gse(t,e):gn.IsArray(e)?fse(t,e):gn.IsAsyncIterator(e)?vse(t,e):gn.IsIterator(e)?bse(t,e):gn.IsPromise(e)?xse(t,e):gn.IsObject(e)?yse(t,e):gn.IsRecord(e)?wse(t,e):gn.IsArgument(e)?Sse(t,e):e}function Cse(t,e){return hi(e,(0,ose.CloneType)(t))}});var pg=C(ta=>{"use strict";var Mse=ta&&ta.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Rse=ta&&ta.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Mse(e,t,n)};Object.defineProperty(ta,"__esModule",{value:!0});Rse(sL(),ta)});var aL=C(Rw=>{"use strict";Object.defineProperty(Rw,"__esModule",{value:!0});Rw.Integer=Ese;var Pse=he(),Ise=me();function Ese(t){return(0,Pse.CreateType)({[Ise.Kind]:"Integer",type:"integer"},t)}});var mg=C(na=>{"use strict";var Ase=na&&na.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),_se=na&&na.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Ase(e,t,n)};Object.defineProperty(na,"__esModule",{value:!0});_se(aL(),na)});var Iw=C(Pw=>{"use strict";Object.defineProperty(Pw,"__esModule",{value:!0});Pw.IntrinsicFromMappedKey=Nse;var Ose=bt(),Lse=ia(),Wse=Jt(),Fse=ln();function Dse(t,e,n){return{[t]:(0,Lse.Intrinsic)((0,Wse.Literal)(t),e,(0,Fse.Clone)(n))}}function Use(t,e,n){return t.reduce((o,r)=>({...o,...Dse(r,e,n)}),{})}function $se(t,e,n){return Use(t.keys,e,n)}function Nse(t,e,n){let i=$se(t,e,n);return(0,Ose.MappedResult)(i)}});var ia=C(Ew=>{"use strict";Object.defineProperty(Ew,"__esModule",{value:!0});Ew.Intrinsic=pL;var Bse=he(),hg=Ui(),jse=Iw(),lL=Jt(),cL=mt(),gg=Oe();function qse(t){let[e,n]=[t.slice(0,1),t.slice(1)];return[e.toLowerCase(),n].join("")}function Kse(t){let[e,n]=[t.slice(0,1),t.slice(1)];return[e.toUpperCase(),n].join("")}function Gse(t){return t.toUpperCase()}function zse(t){return t.toLowerCase()}function Hse(t,e,n){let i=(0,hg.TemplateLiteralParseExact)(t.pattern);if(!(0,hg.IsTemplateLiteralExpressionFinite)(i))return{...t,pattern:uL(t.pattern,e)};let s=[...(0,hg.TemplateLiteralExpressionGenerate)(i)].map(c=>(0,lL.Literal)(c)),a=dL(s,e),l=(0,cL.Union)(a);return(0,hg.TemplateLiteral)([l],n)}function uL(t,e){return typeof t=="string"?e==="Uncapitalize"?qse(t):e==="Capitalize"?Kse(t):e==="Uppercase"?Gse(t):e==="Lowercase"?zse(t):t:t.toString()}function dL(t,e){return t.map(n=>pL(n,e))}function pL(t,e,n={}){return(0,gg.IsMappedKey)(t)?(0,jse.IntrinsicFromMappedKey)(t,e,n):(0,gg.IsTemplateLiteral)(t)?Hse(t,e,n):(0,gg.IsUnion)(t)?(0,cL.Union)(dL(t.anyOf,e),n):(0,gg.IsLiteral)(t)?(0,lL.Literal)(uL(t.const,e),n):(0,Bse.CreateType)(t,n)}});var mL=C(Aw=>{"use strict";Object.defineProperty(Aw,"__esModule",{value:!0});Aw.Capitalize=Qse;var Vse=ia();function Qse(t,e={}){return(0,Vse.Intrinsic)(t,"Capitalize",e)}});var hL=C(_w=>{"use strict";Object.defineProperty(_w,"__esModule",{value:!0});_w.Lowercase=Yse;var Jse=ia();function Yse(t,e={}){return(0,Jse.Intrinsic)(t,"Lowercase",e)}});var gL=C(Ow=>{"use strict";Object.defineProperty(Ow,"__esModule",{value:!0});Ow.Uncapitalize=Zse;var Xse=ia();function Zse(t,e={}){return(0,Xse.Intrinsic)(t,"Uncapitalize",e)}});var fL=C(Lw=>{"use strict";Object.defineProperty(Lw,"__esModule",{value:!0});Lw.Uppercase=tae;var eae=ia();function tae(t,e={}){return(0,eae.Intrinsic)(t,"Uppercase",e)}});var fg=C(Zn=>{"use strict";var nae=Zn&&Zn.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),rc=Zn&&Zn.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&nae(e,t,n)};Object.defineProperty(Zn,"__esModule",{value:!0});rc(mL(),Zn);rc(Iw(),Zn);rc(ia(),Zn);rc(hL(),Zn);rc(gL(),Zn);rc(fL(),Zn)});var Fw=C(Ww=>{"use strict";Object.defineProperty(Ww,"__esModule",{value:!0});Ww.OmitFromMappedResult=lae;var iae=bt(),oae=vg(),rae=ln();function sae(t,e,n){let i={};for(let o of globalThis.Object.getOwnPropertyNames(t))i[o]=(0,oae.Omit)(t[o],e,(0,rae.Clone)(n));return i}function aae(t,e,n){return sae(t.properties,e,n)}function lae(t,e,n){let i=aae(t,e,n);return(0,iae.MappedResult)(i)}});var vg=C($w=>{"use strict";Object.defineProperty($w,"__esModule",{value:!0});$w.Omit=Tae;var cae=he(),uae=Ah(),dae=Hu(),Dw=cr(),pae=Jt(),mae=pi(),hae=An(),vL=mt(),bL=pn(),gae=Nw(),fae=Fw(),Ro=Oe(),vae=Qt();function bae(t,e){return t.map(n=>Uw(n,e))}function xae(t,e){return t.map(n=>Uw(n,e))}function yae(t,e){let{[e]:n,...i}=t;return i}function wae(t,e){return e.reduce((n,i)=>yae(n,i),t)}function Sae(t,e,n){let i=(0,uae.Discard)(t,[dae.TransformKind,"$id","required","properties"]),o=wae(n,e);return(0,bL.Object)(o,i)}function kae(t){let e=t.reduce((n,i)=>(0,Ro.IsLiteralValue)(i)?[...n,(0,pae.Literal)(i)]:n,[]);return(0,vL.Union)(e)}function Uw(t,e){return(0,Ro.IsIntersect)(t)?(0,hae.Intersect)(bae(t.allOf,e)):(0,Ro.IsUnion)(t)?(0,vL.Union)(xae(t.anyOf,e)):(0,Ro.IsObject)(t)?Sae(t,e,t.properties):(0,bL.Object)({})}function Tae(t,e,n){let i=(0,vae.IsArray)(e)?kae(e):e,o=(0,Ro.IsSchema)(e)?(0,mae.IndexPropertyKeys)(e):e,r=(0,Ro.IsRef)(t),s=(0,Ro.IsRef)(e);return(0,Ro.IsMappedResult)(t)?(0,fae.OmitFromMappedResult)(t,o,n):(0,Ro.IsMappedKey)(e)?(0,gae.OmitFromMappedKey)(t,e,n):r&&s?(0,Dw.Computed)("Omit",[t,i],n):!r&&s?(0,Dw.Computed)("Omit",[t,i],n):r&&!s?(0,Dw.Computed)("Omit",[t,i],n):(0,cae.CreateType)({...Uw(t,o),...n})}});var Nw=C(Bw=>{"use strict";Object.defineProperty(Bw,"__esModule",{value:!0});Bw.OmitFromMappedKey=Aae;var Cae=bt(),Mae=vg(),Rae=ln();function Pae(t,e,n){return{[e]:(0,Mae.Omit)(t,[e],(0,Rae.Clone)(n))}}function Iae(t,e,n){return e.reduce((i,o)=>({...i,...Pae(t,o,n)}),{})}function Eae(t,e,n){return Iae(t,e.keys,n)}function Aae(t,e,n){let i=Eae(t,e,n);return(0,Cae.MappedResult)(i)}});var vd=C(Po=>{"use strict";var _ae=Po&&Po.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),jw=Po&&Po.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&_ae(e,t,n)};Object.defineProperty(Po,"__esModule",{value:!0});jw(Nw(),Po);jw(Fw(),Po);jw(vg(),Po)});var Kw=C(qw=>{"use strict";Object.defineProperty(qw,"__esModule",{value:!0});qw.PickFromMappedResult=Uae;var Oae=bt(),Lae=bg(),Wae=ln();function Fae(t,e,n){let i={};for(let o of globalThis.Object.getOwnPropertyNames(t))i[o]=(0,Lae.Pick)(t[o],e,(0,Wae.Clone)(n));return i}function Dae(t,e,n){return Fae(t.properties,e,n)}function Uae(t,e,n){let i=Dae(t,e,n);return(0,Oae.MappedResult)(i)}});var bg=C(Hw=>{"use strict";Object.defineProperty(Hw,"__esModule",{value:!0});Hw.Pick=Zae;var $ae=he(),Nae=Ah(),Gw=cr(),Bae=An(),jae=Jt(),xL=pn(),yL=mt(),qae=pi(),Kae=Hu(),Io=Oe(),Gae=Qt(),zae=Vw(),Hae=Kw();function Vae(t,e){return t.map(n=>zw(n,e))}function Qae(t,e){return t.map(n=>zw(n,e))}function Jae(t,e){let n={};for(let i of e)i in t&&(n[i]=t[i]);return n}function Yae(t,e,n){let i=(0,Nae.Discard)(t,[Kae.TransformKind,"$id","required","properties"]),o=Jae(n,e);return(0,xL.Object)(o,i)}function Xae(t){let e=t.reduce((n,i)=>(0,Io.IsLiteralValue)(i)?[...n,(0,jae.Literal)(i)]:n,[]);return(0,yL.Union)(e)}function zw(t,e){return(0,Io.IsIntersect)(t)?(0,Bae.Intersect)(Vae(t.allOf,e)):(0,Io.IsUnion)(t)?(0,yL.Union)(Qae(t.anyOf,e)):(0,Io.IsObject)(t)?Yae(t,e,t.properties):(0,xL.Object)({})}function Zae(t,e,n){let i=(0,Gae.IsArray)(e)?Xae(e):e,o=(0,Io.IsSchema)(e)?(0,qae.IndexPropertyKeys)(e):e,r=(0,Io.IsRef)(t),s=(0,Io.IsRef)(e);return(0,Io.IsMappedResult)(t)?(0,Hae.PickFromMappedResult)(t,o,n):(0,Io.IsMappedKey)(e)?(0,zae.PickFromMappedKey)(t,e,n):r&&s?(0,Gw.Computed)("Pick",[t,i],n):!r&&s?(0,Gw.Computed)("Pick",[t,i],n):r&&!s?(0,Gw.Computed)("Pick",[t,i],n):(0,$ae.CreateType)({...zw(t,o),...n})}});var Vw=C(Qw=>{"use strict";Object.defineProperty(Qw,"__esModule",{value:!0});Qw.PickFromMappedKey=sle;var ele=bt(),tle=bg(),nle=ln();function ile(t,e,n){return{[e]:(0,tle.Pick)(t,[e],(0,nle.Clone)(n))}}function ole(t,e,n){return e.reduce((i,o)=>({...i,...ile(t,o,n)}),{})}function rle(t,e,n){return ole(t,e.keys,n)}function sle(t,e,n){let i=rle(t,e,n);return(0,ele.MappedResult)(i)}});var bd=C(Eo=>{"use strict";var ale=Eo&&Eo.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Jw=Eo&&Eo.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&ale(e,t,n)};Object.defineProperty(Eo,"__esModule",{value:!0});Jw(Vw(),Eo);Jw(Kw(),Eo);Jw(bg(),Eo)});var Xw=C(Ao=>{"use strict";var lle=Ao&&Ao.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),cle=Ao&&Ao.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ule=Ao&&Ao.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&lle(n,e,i[o]);return cle(n,e),n}})();Object.defineProperty(Ao,"__esModule",{value:!0});Ao.Partial=kle;var dle=he(),Yw=cr(),ple=Di(),SL=pn(),mle=An(),hle=mt(),gle=fr(),fle=vo(),vle=me(),ble=Zw(),Xt=ule(Oe());function xle(t,e){return(0,Yw.Computed)("Partial",[(0,Yw.Computed)(t,e)])}function yle(t){return(0,Yw.Computed)("Partial",[(0,gle.Ref)(t)])}function wle(t){let e={};for(let n of globalThis.Object.getOwnPropertyNames(t))e[n]=(0,ple.Optional)(t[n]);return e}function Sle(t,e){let n=(0,fle.Discard)(t,[vle.TransformKind,"$id","required","properties"]),i=wle(e);return(0,SL.Object)(i,n)}function wL(t){return t.map(e=>kL(e))}function kL(t){return Xt.IsComputed(t)?xle(t.target,t.parameters):Xt.IsRef(t)?yle(t.$ref):Xt.IsIntersect(t)?(0,mle.Intersect)(wL(t.allOf)):Xt.IsUnion(t)?(0,hle.Union)(wL(t.anyOf)):Xt.IsObject(t)?Sle(t,t.properties):Xt.IsBigInt(t)||Xt.IsBoolean(t)||Xt.IsInteger(t)||Xt.IsLiteral(t)||Xt.IsNull(t)||Xt.IsNumber(t)||Xt.IsString(t)||Xt.IsSymbol(t)||Xt.IsUndefined(t)?t:(0,SL.Object)({})}function kle(t,e){return Xt.IsMappedResult(t)?(0,ble.PartialFromMappedResult)(t,e):(0,dle.CreateType)({...kL(t),...e})}});var Zw=C(eS=>{"use strict";Object.defineProperty(eS,"__esModule",{value:!0});eS.PartialFromMappedResult=Ile;var Tle=bt(),Cle=Xw(),Mle=ln();function Rle(t,e){let n={};for(let i of globalThis.Object.getOwnPropertyNames(t))n[i]=(0,Cle.Partial)(t[i],(0,Mle.Clone)(e));return n}function Ple(t,e){return Rle(t.properties,e)}function Ile(t,e){let n=Ple(t,e);return(0,Tle.MappedResult)(n)}});var xd=C(vr=>{"use strict";var Ele=vr&&vr.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),TL=vr&&vr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Ele(e,t,n)};Object.defineProperty(vr,"__esModule",{value:!0});TL(Zw(),vr);TL(Xw(),vr)});var nS=C(_o=>{"use strict";var Ale=_o&&_o.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),_le=_o&&_o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ole=_o&&_o.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&Ale(n,e,i[o]);return _le(n,e),n}})();Object.defineProperty(_o,"__esModule",{value:!0});_o.Required=qle;var Lle=he(),tS=cr(),ML=pn(),Wle=An(),Fle=mt(),Dle=fr(),RL=me(),PL=vo(),Ule=iS(),Zt=Ole(Oe());function $le(t,e){return(0,tS.Computed)("Required",[(0,tS.Computed)(t,e)])}function Nle(t){return(0,tS.Computed)("Required",[(0,Dle.Ref)(t)])}function Ble(t){let e={};for(let n of globalThis.Object.getOwnPropertyNames(t))e[n]=(0,PL.Discard)(t[n],[RL.OptionalKind]);return e}function jle(t,e){let n=(0,PL.Discard)(t,[RL.TransformKind,"$id","required","properties"]),i=Ble(e);return(0,ML.Object)(i,n)}function CL(t){return t.map(e=>IL(e))}function IL(t){return Zt.IsComputed(t)?$le(t.target,t.parameters):Zt.IsRef(t)?Nle(t.$ref):Zt.IsIntersect(t)?(0,Wle.Intersect)(CL(t.allOf)):Zt.IsUnion(t)?(0,Fle.Union)(CL(t.anyOf)):Zt.IsObject(t)?jle(t,t.properties):Zt.IsBigInt(t)||Zt.IsBoolean(t)||Zt.IsInteger(t)||Zt.IsLiteral(t)||Zt.IsNull(t)||Zt.IsNumber(t)||Zt.IsString(t)||Zt.IsSymbol(t)||Zt.IsUndefined(t)?t:(0,ML.Object)({})}function qle(t,e){return Zt.IsMappedResult(t)?(0,Ule.RequiredFromMappedResult)(t,e):(0,Lle.CreateType)({...IL(t),...e})}});var iS=C(oS=>{"use strict";Object.defineProperty(oS,"__esModule",{value:!0});oS.RequiredFromMappedResult=Vle;var Kle=bt(),Gle=nS();function zle(t,e){let n={};for(let i of globalThis.Object.getOwnPropertyNames(t))n[i]=(0,Gle.Required)(t[i],e);return n}function Hle(t,e){return zle(t.properties,e)}function Vle(t,e){let n=Hle(t,e);return(0,Kle.MappedResult)(n)}});var yd=C(br=>{"use strict";var Qle=br&&br.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),EL=br&&br.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Qle(e,t,n)};Object.defineProperty(br,"__esModule",{value:!0});EL(iS(),br);EL(nS(),br)});var LL=C(gi=>{"use strict";var Jle=gi&&gi.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Yle=gi&&gi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Xle=gi&&gi.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&Jle(n,e,i[o]);return Yle(n,e),n}})();Object.defineProperty(gi,"__esModule",{value:!0});gi.FromType=vn;gi.ComputeType=OL;gi.ComputeModuleProperties=Fce;var fn=go(),Zle=lx(),AL=vo(),ece=jl(),tce=cd(),nce=ql(),ice=Kl(),oce=pi(),rce=ur(),sce=An(),ace=Jl(),lce=Xl(),cce=pn(),uce=vd(),dce=bd(),rS=At(),pce=xd(),_L=ic(),mce=yd(),hce=yo(),gce=mt(),xg=me(),Ut=Xle(Oe());function fce(t,e){return e.map(n=>Ut.IsRef(n)?sS(t,n.$ref):vn(t,n))}function sS(t,e){return e in t?Ut.IsRef(t[e])?sS(t,t[e].$ref):vn(t,t[e]):(0,rS.Never)()}function vce(t){return(0,tce.Awaited)(t[0])}function bce(t){return(0,oce.Index)(t[0],t[1])}function xce(t){return(0,lce.KeyOf)(t[0])}function yce(t){return(0,pce.Partial)(t[0])}function wce(t){return(0,uce.Omit)(t[0],t[1])}function Sce(t){return(0,dce.Pick)(t[0],t[1])}function kce(t){return(0,mce.Required)(t[0])}function Tce(t,e,n){let i=fce(t,n);return e==="Awaited"?vce(i):e==="Index"?bce(i):e==="KeyOf"?xce(i):e==="Partial"?yce(i):e==="Omit"?wce(i):e==="Pick"?Sce(i):e==="Required"?kce(i):(0,rS.Never)()}function Cce(t,e){return(0,ece.Array)(vn(t,e))}function Mce(t,e){return(0,nce.AsyncIterator)(vn(t,e))}function Rce(t,e,n){return(0,ice.Constructor)(wd(t,e),vn(t,n))}function Pce(t,e,n){return(0,rce.Function)(wd(t,e),vn(t,n))}function Ice(t,e){return(0,sce.Intersect)(wd(t,e))}function Ece(t,e){return(0,ace.Iterator)(vn(t,e))}function Ace(t,e){return(0,cce.Object)(globalThis.Object.keys(e).reduce((n,i)=>({...n,[i]:vn(t,e[i])}),{}))}function _ce(t,e){let[n,i]=[vn(t,(0,_L.RecordValue)(e)),(0,_L.RecordPattern)(e)],o=(0,Zle.CloneType)(e);return o.patternProperties[i]=n,o}function Oce(t,e){return Ut.IsRef(e)?{...sS(t,e.$ref),[xg.TransformKind]:e[xg.TransformKind]}:e}function Lce(t,e){return(0,hce.Tuple)(wd(t,e))}function Wce(t,e){return(0,gce.Union)(wd(t,e))}function wd(t,e){return e.map(n=>vn(t,n))}function vn(t,e){return Ut.IsOptional(e)?(0,fn.CreateType)(vn(t,(0,AL.Discard)(e,[xg.OptionalKind])),e):Ut.IsReadonly(e)?(0,fn.CreateType)(vn(t,(0,AL.Discard)(e,[xg.ReadonlyKind])),e):Ut.IsTransform(e)?(0,fn.CreateType)(Oce(t,e),e):Ut.IsArray(e)?(0,fn.CreateType)(Cce(t,e.items),e):Ut.IsAsyncIterator(e)?(0,fn.CreateType)(Mce(t,e.items),e):Ut.IsComputed(e)?(0,fn.CreateType)(Tce(t,e.target,e.parameters)):Ut.IsConstructor(e)?(0,fn.CreateType)(Rce(t,e.parameters,e.returns),e):Ut.IsFunction(e)?(0,fn.CreateType)(Pce(t,e.parameters,e.returns),e):Ut.IsIntersect(e)?(0,fn.CreateType)(Ice(t,e.allOf),e):Ut.IsIterator(e)?(0,fn.CreateType)(Ece(t,e.items),e):Ut.IsObject(e)?(0,fn.CreateType)(Ace(t,e.properties),e):Ut.IsRecord(e)?(0,fn.CreateType)(_ce(t,e)):Ut.IsTuple(e)?(0,fn.CreateType)(Lce(t,e.items||[]),e):Ut.IsUnion(e)?(0,fn.CreateType)(Wce(t,e.anyOf),e):e}function OL(t,e){return e in t?vn(t,t[e]):(0,rS.Never)()}function Fce(t){return globalThis.Object.getOwnPropertyNames(t).reduce((e,n)=>({...e,[n]:OL(t,n)}),{})}});var FL=C(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.TModule=void 0;Sd.Module=$ce;var WL=go(),Dce=me(),Uce=LL(),yg=class{constructor(e){let n=(0,Uce.ComputeModuleProperties)(e),i=this.WithIdentifiers(n);this.$defs=i}Import(e,n){let i={...this.$defs,[e]:(0,WL.CreateType)(this.$defs[e],n)};return(0,WL.CreateType)({[Dce.Kind]:"Import",$defs:i,$ref:e})}WithIdentifiers(e){return globalThis.Object.getOwnPropertyNames(e).reduce((n,i)=>({...n,[i]:{...e[i],$id:i}}),{})}};Sd.TModule=yg;function $ce(t){return new yg(t)}});var wg=C(oa=>{"use strict";var Nce=oa&&oa.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Bce=oa&&oa.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Nce(e,t,n)};Object.defineProperty(oa,"__esModule",{value:!0});Bce(FL(),oa)});var DL=C(aS=>{"use strict";Object.defineProperty(aS,"__esModule",{value:!0});aS.Not=Kce;var jce=he(),qce=me();function Kce(t,e){return(0,jce.CreateType)({[qce.Kind]:"Not",not:t},e)}});var Sg=C(ra=>{"use strict";var Gce=ra&&ra.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),zce=ra&&ra.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Gce(e,t,n)};Object.defineProperty(ra,"__esModule",{value:!0});zce(DL(),ra)});var UL=C(Oo=>{"use strict";var Hce=Oo&&Oo.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Vce=Oo&&Oo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Qce=Oo&&Oo.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&Hce(n,e,i[o]);return Vce(n,e),n}})();Object.defineProperty(Oo,"__esModule",{value:!0});Oo.Parameters=Zce;var Jce=yo(),Yce=At(),Xce=Qce(Oe());function Zce(t,e){return Xce.IsFunction(t)?(0,Jce.Tuple)(t.parameters,e):(0,Yce.Never)()}});var kg=C(sa=>{"use strict";var eue=sa&&sa.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),tue=sa&&sa.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&eue(e,t,n)};Object.defineProperty(sa,"__esModule",{value:!0});tue(UL(),sa)});var NL=C(lS=>{"use strict";Object.defineProperty(lS,"__esModule",{value:!0});lS.Recursive=sue;var nue=Th(),iue=he(),oue=Qt(),$L=me(),rue=0;function sue(t,e={}){(0,oue.IsUndefined)(e.$id)&&(e.$id=`T${rue++}`);let n=(0,nue.CloneType)(t({[$L.Kind]:"This",$ref:`${e.$id}`}));return n.$id=e.$id,(0,iue.CreateType)({[$L.Hint]:"Recursive",...n},e)}});var Tg=C(aa=>{"use strict";var aue=aa&&aa.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),lue=aa&&aa.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&aue(e,t,n)};Object.defineProperty(aa,"__esModule",{value:!0});lue(NL(),aa)});var BL=C(cS=>{"use strict";Object.defineProperty(cS,"__esModule",{value:!0});cS.RegExp=pue;var cue=he(),uue=Qt(),due=me();function pue(t,e){let n=(0,uue.IsString)(t)?new globalThis.RegExp(t):t;return(0,cue.CreateType)({[due.Kind]:"RegExp",type:"RegExp",source:n.source,flags:n.flags},e)}});var Cg=C(la=>{"use strict";var mue=la&&la.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),hue=la&&la.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&mue(e,t,n)};Object.defineProperty(la,"__esModule",{value:!0});hue(BL(),la)});var jL=C(dS=>{"use strict";Object.defineProperty(dS,"__esModule",{value:!0});dS.Rest=fue;var uS=Oe();function gue(t){return(0,uS.IsIntersect)(t)?t.allOf:(0,uS.IsUnion)(t)?t.anyOf:(0,uS.IsTuple)(t)?t.items??[]:[]}function fue(t){return gue(t)}});var Mg=C(ca=>{"use strict";var vue=ca&&ca.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),bue=ca&&ca.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&vue(e,t,n)};Object.defineProperty(ca,"__esModule",{value:!0});bue(jL(),ca)});var qL=C(Lo=>{"use strict";var xue=Lo&&Lo.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),yue=Lo&&Lo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),wue=Lo&&Lo.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&xue(n,e,i[o]);return yue(n,e),n}})();Object.defineProperty(Lo,"__esModule",{value:!0});Lo.ReturnType=Cue;var Sue=he(),kue=At(),Tue=wue(Oe());function Cue(t,e){return Tue.IsFunction(t)?(0,Sue.CreateType)(t.returns,e):(0,kue.Never)(e)}});var Rg=C(ua=>{"use strict";var Mue=ua&&ua.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Rue=ua&&ua.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Mue(e,t,n)};Object.defineProperty(ua,"__esModule",{value:!0});Rue(qL(),ua)});var GL=C(KL=>{"use strict";Object.defineProperty(KL,"__esModule",{value:!0})});var HL=C(zL=>{"use strict";Object.defineProperty(zL,"__esModule",{value:!0});var S8e=me()});var QL=C(xr=>{"use strict";var Pue=xr&&xr.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),VL=xr&&xr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Pue(e,t,n)};Object.defineProperty(xr,"__esModule",{value:!0});VL(GL(),xr);VL(HL(),xr)});var YL=C(JL=>{"use strict";Object.defineProperty(JL,"__esModule",{value:!0})});var XL=C(da=>{"use strict";var Iue=da&&da.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Eue=da&&da.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Iue(e,t,n)};Object.defineProperty(da,"__esModule",{value:!0});Eue(YL(),da)});var ZL=C(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.TransformEncodeBuilder=pa.TransformDecodeBuilder=void 0;pa.Transform=_ue;var Pg=me(),Aue=Oe(),Ig=class{constructor(e){this.schema=e}Decode(e){return new Eg(this.schema,e)}};pa.TransformDecodeBuilder=Ig;var Eg=class{constructor(e,n){this.schema=e,this.decode=n}EncodeTransform(e,n){let r={Encode:s=>n[Pg.TransformKind].Encode(e(s)),Decode:s=>this.decode(n[Pg.TransformKind].Decode(s))};return{...n,[Pg.TransformKind]:r}}EncodeSchema(e,n){let i={Decode:this.decode,Encode:e};return{...n,[Pg.TransformKind]:i}}Encode(e){return(0,Aue.IsTransform)(this.schema)?this.EncodeTransform(e,this.schema):this.EncodeSchema(e,this.schema)}};pa.TransformEncodeBuilder=Eg;function _ue(t){return new Ig(t)}});var Ag=C(ma=>{"use strict";var Oue=ma&&ma.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Lue=ma&&ma.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Oue(e,t,n)};Object.defineProperty(ma,"__esModule",{value:!0});Lue(ZL(),ma)});var tW=C(pS=>{"use strict";Object.defineProperty(pS,"__esModule",{value:!0});pS.Unsafe=Fue;var Wue=he(),eW=me();function Fue(t={}){return(0,Wue.CreateType)({[eW.Kind]:t[eW.Kind]??"Unsafe"},t)}});var _g=C(ha=>{"use strict";var Due=ha&&ha.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Uue=ha&&ha.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Due(e,t,n)};Object.defineProperty(ha,"__esModule",{value:!0});Uue(tW(),ha)});var nW=C(mS=>{"use strict";Object.defineProperty(mS,"__esModule",{value:!0});mS.Void=Bue;var $ue=he(),Nue=me();function Bue(t){return(0,$ue.CreateType)({[Nue.Kind]:"Void",type:"void"},t)}});var Og=C(ga=>{"use strict";var jue=ga&&ga.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),que=ga&&ga.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&jue(e,t,n)};Object.defineProperty(ga,"__esModule",{value:!0});que(nW(),ga)});var gS=C(Wg=>{"use strict";Object.defineProperty(Wg,"__esModule",{value:!0});Wg.JsonTypeBuilder=void 0;var Kue=Bl(),Gue=jl(),zue=td(),Hue=Vh(),Vue=Jh(),Que=Xh(),Jue=ag(),Yue=tc(),Xue=ug(),Zue=pi(),ede=mg(),tde=An(),Lg=fg(),nde=Xl(),ide=Jt(),ode=bt(),rde=At(),sde=Sg(),ade=dd(),lde=wg(),cde=dr(),ude=pn(),dde=vd(),pde=Di(),mde=xd(),hde=bd(),gde=hr(),fde=fd(),vde=ic(),bde=Tg(),xde=fr(),yde=yd(),wde=Mg(),Sde=Es(),kde=Ui(),Tde=Ag(),Cde=yo(),Mde=mt(),Rde=Gs(),Pde=_g(),hS=class{ReadonlyOptional(e){return(0,fde.ReadonlyOptional)(e)}Readonly(e,n){return(0,gde.Readonly)(e,n??!0)}Optional(e,n){return(0,pde.Optional)(e,n??!0)}Any(e){return(0,Kue.Any)(e)}Array(e,n){return(0,Gue.Array)(e,n)}Boolean(e){return(0,zue.Boolean)(e)}Capitalize(e,n){return(0,Lg.Capitalize)(e,n)}Composite(e,n){return(0,Hue.Composite)(e,n)}Const(e,n){return(0,Vue.Const)(e,n)}Enum(e,n){return(0,Que.Enum)(e,n)}Exclude(e,n,i){return(0,Jue.Exclude)(e,n,i)}Extends(e,n,i,o,r){return(0,Yue.Extends)(e,n,i,o,r)}Extract(e,n,i){return(0,Xue.Extract)(e,n,i)}Index(e,n,i){return(0,Zue.Index)(e,n,i)}Integer(e){return(0,ede.Integer)(e)}Intersect(e,n){return(0,tde.Intersect)(e,n)}KeyOf(e,n){return(0,nde.KeyOf)(e,n)}Literal(e,n){return(0,ide.Literal)(e,n)}Lowercase(e,n){return(0,Lg.Lowercase)(e,n)}Mapped(e,n,i){return(0,ode.Mapped)(e,n,i)}Module(e){return(0,lde.Module)(e)}Never(e){return(0,rde.Never)(e)}Not(e,n){return(0,sde.Not)(e,n)}Null(e){return(0,ade.Null)(e)}Number(e){return(0,cde.Number)(e)}Object(e,n){return(0,ude.Object)(e,n)}Omit(e,n,i){return(0,dde.Omit)(e,n,i)}Partial(e,n){return(0,mde.Partial)(e,n)}Pick(e,n,i){return(0,hde.Pick)(e,n,i)}Record(e,n,i){return(0,vde.Record)(e,n,i)}Recursive(e,n){return(0,bde.Recursive)(e,n)}Ref(...e){return(0,xde.Ref)(e[0],e[1])}Required(e,n){return(0,yde.Required)(e,n)}Rest(e){return(0,wde.Rest)(e)}String(e){return(0,Sde.String)(e)}TemplateLiteral(e,n){return(0,kde.TemplateLiteral)(e,n)}Transform(e){return(0,Tde.Transform)(e)}Tuple(e,n){return(0,Cde.Tuple)(e,n)}Uncapitalize(e,n){return(0,Lg.Uncapitalize)(e,n)}Union(e,n){return(0,Mde.Union)(e,n)}Unknown(e){return(0,Rde.Unknown)(e)}Unsafe(e){return(0,Pde.Unsafe)(e)}Uppercase(e,n){return(0,Lg.Uppercase)(e,n)}};Wg.JsonTypeBuilder=hS});var iW=C(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.Rest=N.Required=N.RegExp=N.Ref=N.Recursive=N.Record=N.ReadonlyOptional=N.Readonly=N.Promise=N.Pick=N.Partial=N.Parameters=N.Optional=N.Omit=N.Object=N.Number=N.Null=N.Not=N.Never=N.Module=N.Mapped=N.Literal=N.KeyOf=N.Iterator=N.Uppercase=N.Lowercase=N.Uncapitalize=N.Capitalize=N.Intersect=N.Integer=N.Instantiate=N.InstanceType=N.Index=N.Function=N.Extract=N.Extends=N.Exclude=N.Enum=N.Date=N.ConstructorParameters=N.Constructor=N.Const=N.Composite=N.Boolean=N.BigInt=N.Awaited=N.AsyncIterator=N.Array=N.Argument=N.Any=void 0;N.Void=N.Unsafe=N.Unknown=N.Union=N.Undefined=N.Uint8Array=N.Tuple=N.Transform=N.TemplateLiteral=N.Symbol=N.String=N.ReturnType=void 0;var Ide=Bl();Object.defineProperty(N,"Any",{enumerable:!0,get:function(){return Ide.Any}});var Ede=Eh();Object.defineProperty(N,"Argument",{enumerable:!0,get:function(){return Ede.Argument}});var Ade=jl();Object.defineProperty(N,"Array",{enumerable:!0,get:function(){return Ade.Array}});var _de=ql();Object.defineProperty(N,"AsyncIterator",{enumerable:!0,get:function(){return _de.AsyncIterator}});var Ode=cd();Object.defineProperty(N,"Awaited",{enumerable:!0,get:function(){return Ode.Awaited}});var Lde=Vl();Object.defineProperty(N,"BigInt",{enumerable:!0,get:function(){return Lde.BigInt}});var Wde=td();Object.defineProperty(N,"Boolean",{enumerable:!0,get:function(){return Wde.Boolean}});var Fde=Vh();Object.defineProperty(N,"Composite",{enumerable:!0,get:function(){return Fde.Composite}});var Dde=Jh();Object.defineProperty(N,"Const",{enumerable:!0,get:function(){return Dde.Const}});var Ude=Kl();Object.defineProperty(N,"Constructor",{enumerable:!0,get:function(){return Ude.Constructor}});var $de=Yh();Object.defineProperty(N,"ConstructorParameters",{enumerable:!0,get:function(){return $de.ConstructorParameters}});var Nde=ud();Object.defineProperty(N,"Date",{enumerable:!0,get:function(){return Nde.Date}});var Bde=Xh();Object.defineProperty(N,"Enum",{enumerable:!0,get:function(){return Bde.Enum}});var jde=ag();Object.defineProperty(N,"Exclude",{enumerable:!0,get:function(){return jde.Exclude}});var qde=tc();Object.defineProperty(N,"Extends",{enumerable:!0,get:function(){return qde.Extends}});var Kde=ug();Object.defineProperty(N,"Extract",{enumerable:!0,get:function(){return Kde.Extract}});var Gde=ur();Object.defineProperty(N,"Function",{enumerable:!0,get:function(){return Gde.Function}});var zde=pi();Object.defineProperty(N,"Index",{enumerable:!0,get:function(){return zde.Index}});var Hde=dg();Object.defineProperty(N,"InstanceType",{enumerable:!0,get:function(){return Hde.InstanceType}});var Vde=pg();Object.defineProperty(N,"Instantiate",{enumerable:!0,get:function(){return Vde.Instantiate}});var Qde=mg();Object.defineProperty(N,"Integer",{enumerable:!0,get:function(){return Qde.Integer}});var Jde=An();Object.defineProperty(N,"Intersect",{enumerable:!0,get:function(){return Jde.Intersect}});var Fg=fg();Object.defineProperty(N,"Capitalize",{enumerable:!0,get:function(){return Fg.Capitalize}});Object.defineProperty(N,"Uncapitalize",{enumerable:!0,get:function(){return Fg.Uncapitalize}});Object.defineProperty(N,"Lowercase",{enumerable:!0,get:function(){return Fg.Lowercase}});Object.defineProperty(N,"Uppercase",{enumerable:!0,get:function(){return Fg.Uppercase}});var Yde=Jl();Object.defineProperty(N,"Iterator",{enumerable:!0,get:function(){return Yde.Iterator}});var Xde=Xl();Object.defineProperty(N,"KeyOf",{enumerable:!0,get:function(){return Xde.KeyOf}});var Zde=Jt();Object.defineProperty(N,"Literal",{enumerable:!0,get:function(){return Zde.Literal}});var epe=bt();Object.defineProperty(N,"Mapped",{enumerable:!0,get:function(){return epe.Mapped}});var tpe=wg();Object.defineProperty(N,"Module",{enumerable:!0,get:function(){return tpe.Module}});var npe=At();Object.defineProperty(N,"Never",{enumerable:!0,get:function(){return npe.Never}});var ipe=Sg();Object.defineProperty(N,"Not",{enumerable:!0,get:function(){return ipe.Not}});var ope=dd();Object.defineProperty(N,"Null",{enumerable:!0,get:function(){return ope.Null}});var rpe=dr();Object.defineProperty(N,"Number",{enumerable:!0,get:function(){return rpe.Number}});var spe=pn();Object.defineProperty(N,"Object",{enumerable:!0,get:function(){return spe.Object}});var ape=vd();Object.defineProperty(N,"Omit",{enumerable:!0,get:function(){return ape.Omit}});var lpe=Di();Object.defineProperty(N,"Optional",{enumerable:!0,get:function(){return lpe.Optional}});var cpe=kg();Object.defineProperty(N,"Parameters",{enumerable:!0,get:function(){return cpe.Parameters}});var upe=xd();Object.defineProperty(N,"Partial",{enumerable:!0,get:function(){return upe.Partial}});var dpe=bd();Object.defineProperty(N,"Pick",{enumerable:!0,get:function(){return dpe.Pick}});var ppe=sd();Object.defineProperty(N,"Promise",{enumerable:!0,get:function(){return ppe.Promise}});var mpe=hr();Object.defineProperty(N,"Readonly",{enumerable:!0,get:function(){return mpe.Readonly}});var hpe=fd();Object.defineProperty(N,"ReadonlyOptional",{enumerable:!0,get:function(){return hpe.ReadonlyOptional}});var gpe=ic();Object.defineProperty(N,"Record",{enumerable:!0,get:function(){return gpe.Record}});var fpe=Tg();Object.defineProperty(N,"Recursive",{enumerable:!0,get:function(){return fpe.Recursive}});var vpe=fr();Object.defineProperty(N,"Ref",{enumerable:!0,get:function(){return vpe.Ref}});var bpe=Cg();Object.defineProperty(N,"RegExp",{enumerable:!0,get:function(){return bpe.RegExp}});var xpe=yd();Object.defineProperty(N,"Required",{enumerable:!0,get:function(){return xpe.Required}});var ype=Mg();Object.defineProperty(N,"Rest",{enumerable:!0,get:function(){return ype.Rest}});var wpe=Rg();Object.defineProperty(N,"ReturnType",{enumerable:!0,get:function(){return wpe.ReturnType}});var Spe=Es();Object.defineProperty(N,"String",{enumerable:!0,get:function(){return Spe.String}});var kpe=pd();Object.defineProperty(N,"Symbol",{enumerable:!0,get:function(){return kpe.Symbol}});var Tpe=Ui();Object.defineProperty(N,"TemplateLiteral",{enumerable:!0,get:function(){return Tpe.TemplateLiteral}});var Cpe=Ag();Object.defineProperty(N,"Transform",{enumerable:!0,get:function(){return Cpe.Transform}});var Mpe=yo();Object.defineProperty(N,"Tuple",{enumerable:!0,get:function(){return Mpe.Tuple}});var Rpe=hd();Object.defineProperty(N,"Uint8Array",{enumerable:!0,get:function(){return Rpe.Uint8Array}});var Ppe=md();Object.defineProperty(N,"Undefined",{enumerable:!0,get:function(){return Ppe.Undefined}});var Ipe=mt();Object.defineProperty(N,"Union",{enumerable:!0,get:function(){return Ipe.Union}});var Epe=Gs();Object.defineProperty(N,"Unknown",{enumerable:!0,get:function(){return Epe.Unknown}});var Ape=_g();Object.defineProperty(N,"Unsafe",{enumerable:!0,get:function(){return Ape.Unsafe}});var _pe=Og();Object.defineProperty(N,"Void",{enumerable:!0,get:function(){return _pe.Void}})});var oW=C(Dg=>{"use strict";Object.defineProperty(Dg,"__esModule",{value:!0});Dg.JavaScriptTypeBuilder=void 0;var Ope=gS(),Lpe=Eh(),Wpe=ql(),Fpe=cd(),Dpe=Vl(),Upe=Kl(),$pe=Yh(),Npe=ud(),Bpe=ur(),jpe=dg(),qpe=pg(),Kpe=Jl(),Gpe=kg(),zpe=sd(),Hpe=Cg(),Vpe=Rg(),Qpe=pd(),Jpe=hd(),Ype=md(),Xpe=Og(),fS=class extends Ope.JsonTypeBuilder{Argument(e){return(0,Lpe.Argument)(e)}AsyncIterator(e,n){return(0,Wpe.AsyncIterator)(e,n)}Awaited(e,n){return(0,Fpe.Awaited)(e,n)}BigInt(e){return(0,Dpe.BigInt)(e)}ConstructorParameters(e,n){return(0,$pe.ConstructorParameters)(e,n)}Constructor(e,n,i){return(0,Upe.Constructor)(e,n,i)}Date(e={}){return(0,Npe.Date)(e)}Function(e,n,i){return(0,Bpe.Function)(e,n,i)}InstanceType(e,n){return(0,jpe.InstanceType)(e,n)}Instantiate(e,n){return(0,qpe.Instantiate)(e,n)}Iterator(e,n){return(0,Kpe.Iterator)(e,n)}Parameters(e,n){return(0,Gpe.Parameters)(e,n)}Promise(e,n){return(0,zpe.Promise)(e,n)}RegExp(e,n){return(0,Hpe.RegExp)(e,n)}ReturnType(e,n){return(0,Vpe.ReturnType)(e,n)}Symbol(e){return(0,Qpe.Symbol)(e)}Undefined(e){return(0,Ype.Undefined)(e)}Uint8Array(e){return(0,Jpe.Uint8Array)(e)}Void(e){return(0,Xpe.Void)(e)}};Dg.JavaScriptTypeBuilder=fS});var rW=C(bn=>{"use strict";var Zpe=bn&&bn.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),eme=bn&&bn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tme=bn&&bn.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),o=0;o<i.length;o++)i[o]!=="default"&&Zpe(n,e,i[o]);return eme(n,e),n}})();Object.defineProperty(bn,"__esModule",{value:!0});bn.Type=bn.JavaScriptTypeBuilder=bn.JsonTypeBuilder=void 0;var nme=gS();Object.defineProperty(bn,"JsonTypeBuilder",{enumerable:!0,get:function(){return nme.JsonTypeBuilder}});var ime=tme(iW()),ome=oW();Object.defineProperty(bn,"JavaScriptTypeBuilder",{enumerable:!0,get:function(){return ome.JavaScriptTypeBuilder}});var rme=ime;bn.Type=rme});var sW=C(V=>{"use strict";var sme=V&&V.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),J=V&&V.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&sme(e,t,n)};Object.defineProperty(V,"__esModule",{value:!0});J(lx(),V);J(go(),V);J(Li(),V);J(fx(),V);J(oO(),V);J(Yu(),V);J(cO(),V);J(Xu(),V);J(me(),V);J(Bl(),V);J(jl(),V);J(Eh(),V);J(ql(),V);J(cd(),V);J(Vl(),V);J(td(),V);J(Vh(),V);J(Jh(),V);J(Kl(),V);J(Yh(),V);J(ud(),V);J(Xh(),V);J(ag(),V);J(tc(),V);J(ug(),V);J(ur(),V);J(pi(),V);J(dg(),V);J(pg(),V);J(mg(),V);J(An(),V);J(Jl(),V);J(fg(),V);J(Xl(),V);J(Jt(),V);J(wg(),V);J(bt(),V);J(At(),V);J(Sg(),V);J(dd(),V);J(dr(),V);J(pn(),V);J(vd(),V);J(Di(),V);J(kg(),V);J(xd(),V);J(bd(),V);J(sd(),V);J(hr(),V);J(fd(),V);J(ic(),V);J(Tg(),V);J(fr(),V);J(Cg(),V);J(yd(),V);J(Mg(),V);J(Rg(),V);J(QL(),V);J(XL(),V);J(Es(),V);J(pd(),V);J(Ui(),V);J(Ag(),V);J(yo(),V);J(hd(),V);J(md(),V);J(mt(),V);J(Gs(),V);J(_g(),V);J(Og(),V);J(rW(),V)});import ehe from"chalk";import{accessSync as Nme,constants as Bme,existsSync as Yg,readFileSync as t3,realpathSync as jme}from"fs";import{homedir as n3}from"os";import{basename as Gme,dirname as _d,join as Ct,resolve as Xg,sep as zme,win32 as Hme}from"path";import{fileURLToPath as i3}from"url";import{spawn as zW,spawnSync as HW}from"node:child_process";import _S from"cross-spawn";var VW=100;function Ed(t,e,n){return process.platform==="win32"?_S(t,e,n):zW(t,e,n)}function ba(t,e,n){return process.platform==="win32"?_S.sync(t,e,n):HW(t,e,n)}function Jg(t){return new Promise((e,n)=>{let i=!1,o=!1,r=null,s,a=t.stdout===null,l=t.stderr===null,c=()=>{s&&(clearTimeout(s),s=void 0),t.removeListener("error",f),t.removeListener("exit",b),t.removeListener("close",x),t.stdout?.removeListener("end",g),t.stderr?.removeListener("end",h),t.stdout?.removeListener("data",m),t.stderr?.removeListener("data",m)},u=y=>{i||(i=!0,c(),t.stdout?.destroy(),t.stderr?.destroy(),e(y))},d=()=>{!o||i||a&&l&&u(r)},p=()=>{s&&clearTimeout(s),s=setTimeout(()=>u(r),VW)},m=()=>{o&&!i&&p()},g=()=>{a=!0,d()},h=()=>{l=!0,d()},f=y=>{i||(i=!0,c(),n(y))},b=y=>{o=!0,r=y,d(),i||p()},x=y=>{u(y)};t.stdout?.once("end",g),t.stderr?.once("end",h),t.stdout?.on("data",m),t.stderr?.on("data",m),t.once("error",f),t.once("exit",b),t.once("close",x)})}import{realpathSync as QW}from"node:fs";import{homedir as JW}from"node:os";import{isAbsolute as LS,join as YW,resolve as OS,relative as XW,sep as WS}from"node:path";import{fileURLToPath as ZW}from"node:url";var e3=/[\u00A0\u2000-\u200A\u202F\u205F\u3000]/g;function ti(t){try{return QW(t)}catch{return t}}function dc(t){let e=t.trim();return!(e.startsWith("npm:")||e.startsWith("git:")||e.startsWith("github:")||e.startsWith("http:")||e.startsWith("https:")||e.startsWith("ssh:"))}function tt(t,e={}){let n=e.trim?t.trim():t;if(e.normalizeUnicodeSpaces&&(n=n.replace(e3," ")),e.stripAtPrefix&&n.startsWith("@")&&(n=n.slice(1)),e.expandTilde??!0){let i=e.homeDir??JW();if(n==="~")return i;if(n.startsWith("~/")||process.platform==="win32"&&n.startsWith("~\\"))return YW(i,n.slice(2))}return/^file:\/\//.test(n)?ZW(n):n}function Se(t,e=process.cwd(),n={}){let i=tt(t,n),o=tt(e);return LS(i)?OS(i):OS(o,i)}function Ad(t,e){let n=Se(e),i=Se(t,n),o=XW(n,i);return o===""||o!==".."&&!o.startsWith(`..${WS}`)&&!LS(o)?o||".":void 0}function FS(t,e){let n=Se(t,e);return(Ad(n,e)??n).split(WS).join("/")}function DS(t){let e=process.platform==="darwin"?["com.dropbox.ignored","com.apple.fileprovider.ignore#P"]:process.platform==="linux"?["user.com.dropbox.ignored"]:[];for(let n of e)process.platform==="darwin"?ba("xattr",["-w",n,"1",t],{encoding:"utf-8",stdio:"ignore"}):ba("setfattr",["-n",n,"-v","1",t],{encoding:"utf-8",stdio:"ignore"})}var o3=i3(import.meta.url),US=_d(o3),Od=import.meta.url.includes("$bunfs")||import.meta.url.includes("~BUN")||import.meta.url.includes("%7EBUN"),Yme=!!process.versions.bun;function ni(){let t=process.env.PI_PACKAGE_DIR;if(t)return tt(t);if(Od)return _d(process.execPath);let e=US;for(;e!==_d(e);){if(Yg(Ct(e,"package.json")))return e;e=_d(e)}return US}function Zg(){if(Od)return Ct(ni(),"theme");let t=ni(),e=Yg(Ct(t,"src"))?"src":"dist";return Ct(t,e,"modes","interactive","theme")}function r3(){return Ct(ni(),"package.json")}function Ld(){return Xg(Ct(ni(),"README.md"))}function pc(){return Xg(Ct(ni(),"docs"))}function Wd(){return Xg(Ct(ni(),"CHANGELOG.md"))}function s3(){if(Od)return Ct(ni(),"assets");let t=ni(),e=Yg(Ct(t,"src"))?"src":"dist";return Ct(t,e,"modes","interactive","assets")}function $S(t){return Ct(s3(),t)}var mc={};try{mc=JSON.parse(t3(r3(),"utf-8"))}catch(t){if(t.code!=="ENOENT")throw t}var NS=mc.piConfig?.name,BS=mc.name||"@earendil-works/pi-coding-agent",St=NS||"pi",ef=NS?St:"\u03C0",Xe=mc.piConfig?.configDir||".pi",vi=mc.version||"0.0.0",tf=`${St.toUpperCase()}_CODING_AGENT_DIR`,jS=`${St.toUpperCase()}_CODING_AGENT_SESSION_DIR`;function qS(t){return tt(t)}var a3="https://pi.dev/session/";function KS(t){return`${process.env.PI_SHARE_VIEWER_URL||a3}#${t}`}function Ee(){let t=process.env[tf];return t?qS(t):Ct(n3(),Xe,"agent")}function Fd(){return Ct(Ee(),"themes")}function nf(){return Ct(Ee(),"auth.json")}function hc(){return Ct(Ee(),"bin")}function GS(){return Ct(Ee(),"sessions")}function zS(){return Ct(Ee(),`${St}-debug.log`)}var l3=["off","minimal","low","medium","high","xhigh","max"];function of(t){return l3.includes(t)}Ln();var at=()=>gt(()=>Promise.resolve().then(()=>(yk(),xk)));Ln();var Hd=()=>gt(()=>Promise.resolve().then(()=>(Tk(),kk)));Ln();var yF=t=>import(import.meta.url.endsWith(".js")?t.replace(/\.ts$/,".js"):t),wF;var Vd=()=>gt(async()=>wF??await yF("./bedrock-converse-stream.ts"));Ln();var Pa=()=>gt(()=>Promise.resolve().then(()=>(Pk(),Rk)));Ln();var ip=()=>gt(()=>Promise.resolve().then(()=>(Lk(),Ok)));Ln();var op=()=>gt(()=>Promise.resolve().then(()=>(Bk(),Nk)));Ln();var cp=()=>gt(()=>Promise.resolve().then(()=>(mT(),pT)));Ln();var ve=()=>gt(()=>Promise.resolve().then(()=>(TT(),kT)));Ln();var Un=()=>gt(()=>Promise.resolve().then(()=>(AT(),ET)));Ln();var up=()=>gt(()=>Promise.resolve().then(()=>(UT(),DT)));Yi();var Ea=null,_f=null,Of=null,Af=t=>import(t),aU="node:fs",lU="node:os",cU="node:path";typeof process<"u"&&(process.versions?.node||process.versions?.bun)&&(Af(aU).then(t=>{Ea=t.existsSync}),Af(lU).then(t=>{_f=t.homedir}),Af(cU).then(t=>{Of=t.join}));var Sc=null;function uU(t){let e=t?.GOOGLE_APPLICATION_CREDENTIALS;if(e)return Ea?Ea(e):!1;if(Sc===null){if(!Ea||!_f||!Of)return typeof process<"u"&&(process.versions?.node||process.versions?.bun)||(Sc=!1),!1;let n=Ae("GOOGLE_APPLICATION_CREDENTIALS",t);n?Sc=Ea(n):Sc=Ea(Of(_f(),".config","gcloud","application_default_credentials.json"))}return Sc}function dU(t){if(t==="github-copilot")return["COPILOT_GITHUB_TOKEN"];if(t==="anthropic")return["ANTHROPIC_OAUTH_TOKEN","ANTHROPIC_API_KEY"];let n={"ant-ling":"ANT_LING_API_KEY",openai:"OPENAI_API_KEY","azure-openai-responses":"AZURE_OPENAI_API_KEY",nvidia:"NVIDIA_API_KEY",deepseek:"DEEPSEEK_API_KEY",google:"GEMINI_API_KEY","google-vertex":"GOOGLE_CLOUD_API_KEY",groq:"GROQ_API_KEY",cerebras:"CEREBRAS_API_KEY",xai:"XAI_API_KEY",radius:"RADIUS_API_KEY",openrouter:"OPENROUTER_API_KEY","vercel-ai-gateway":"AI_GATEWAY_API_KEY",zai:"ZAI_API_KEY","zai-coding-cn":"ZAI_CODING_CN_API_KEY",mistral:"MISTRAL_API_KEY",minimax:"MINIMAX_API_KEY","minimax-cn":"MINIMAX_CN_API_KEY",moonshotai:"MOONSHOT_API_KEY","moonshotai-cn":"MOONSHOT_API_KEY",huggingface:"HF_TOKEN",fireworks:"FIREWORKS_API_KEY",together:"TOGETHER_API_KEY",opencode:"OPENCODE_API_KEY","opencode-go":"OPENCODE_API_KEY","kimi-coding":"KIMI_API_KEY","cloudflare-workers-ai":"CLOUDFLARE_API_KEY","cloudflare-ai-gateway":"CLOUDFLARE_API_KEY",xiaomi:"XIAOMI_API_KEY","xiaomi-token-plan-cn":"XIAOMI_TOKEN_PLAN_CN_API_KEY","xiaomi-token-plan-ams":"XIAOMI_TOKEN_PLAN_AMS_API_KEY","xiaomi-token-plan-sgp":"XIAOMI_TOKEN_PLAN_SGP_API_KEY"}[t];return n?[n]:void 0}function pU(t,e){let n=dU(t);if(!n)return;let i=n.filter(o=>!!Ae(o,e));return i.length>0?i:void 0}function $T(t,e){let n=pU(t,e);if(n?.[0])return Ae(n[0],e);if(t==="google-vertex"){let i=uU(e),o=!!(Ae("GOOGLE_CLOUD_PROJECT",e)||Ae("GCLOUD_PROJECT",e)),r=!!Ae("GOOGLE_CLOUD_LOCATION",e);if(i&&o&&r)return"<authenticated>"}if(t==="amazon-bedrock"&&(Ae("AWS_PROFILE",e)||Ae("AWS_ACCESS_KEY_ID",e)&&Ae("AWS_SECRET_ACCESS_KEY",e)||Ae("AWS_BEARER_TOKEN_BEDROCK",e)||Ae("AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",e)||Ae("AWS_CONTAINER_CREDENTIALS_FULL_URI",e)||Ae("AWS_WEB_IDENTITY_TOKEN_FILE",e)))return"<authenticated>"}function ne(t,e){return{name:t,login:async n=>({type:"api_key",key:await n.prompt({type:"secret",message:`Enter ${t}`})}),resolve:async({ctx:n,credential:i})=>{if(i?.key)return{auth:{apiKey:i.key},source:"stored credential"};for(let o of e){let r=await n.env(o);if(r)return{auth:{apiKey:r},source:o}}}}}function yi(t){let e,n=()=>(e??=t.load(),e);return{name:t.name,loginLabel:t.loginLabel,login:async i=>(await n()).login(i),refresh:async i=>(await n()).refresh(i),toAuth:async i=>(await n()).toAuth(i)}}var NT={"amazon.nova-2-lite-v1:0":{id:"amazon.nova-2-lite-v1:0",name:"Nova 2 Lite",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:.33,output:2.75,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"amazon.nova-lite-v1:0":{id:"amazon.nova-lite-v1:0",name:"Nova Lite",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.06,output:.24,cacheRead:.015,cacheWrite:0},contextWindow:3e5,maxTokens:8192},"amazon.nova-micro-v1:0":{id:"amazon.nova-micro-v1:0",name:"Nova Micro",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.035,output:.14,cacheRead:.00875,cacheWrite:0},contextWindow:128e3,maxTokens:8192},"amazon.nova-pro-v1:0":{id:"amazon.nova-pro-v1:0",name:"Nova Pro",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.8,output:3.2,cacheRead:.2,cacheWrite:0},contextWindow:3e5,maxTokens:8192},"anthropic.claude-fable-5":{id:"anthropic.claude-fable-5",name:"Claude Fable 5",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"anthropic.claude-haiku-4-5-20251001-v1:0":{id:"anthropic.claude-haiku-4-5-20251001-v1:0",name:"Claude Haiku 4.5",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3},"anthropic.claude-opus-4-1-20250805-v1:0":{id:"anthropic.claude-opus-4-1-20250805-v1:0",name:"Claude Opus 4.1",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:32e3},"anthropic.claude-opus-4-5-20251101-v1:0":{id:"anthropic.claude-opus-4-5-20251101-v1:0",name:"Claude Opus 4.5",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:2e5,maxTokens:64e3},"anthropic.claude-opus-4-6-v1":{id:"anthropic.claude-opus-4-6-v1",name:"Claude Opus 4.6",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"}},"anthropic.claude-opus-4-7":{id:"anthropic.claude-opus-4-7",name:"Claude Opus 4.7",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"anthropic.claude-opus-4-8":{id:"anthropic.claude-opus-4-8",name:"Claude Opus 4.8",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"anthropic.claude-sonnet-4-5-20250929-v1:0":{id:"anthropic.claude-sonnet-4-5-20250929-v1:0",name:"Claude Sonnet 4.5",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3},"anthropic.claude-sonnet-4-6":{id:"anthropic.claude-sonnet-4-6",name:"Claude Sonnet 4.6",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:64e3,thinkingLevelMap:{max:"max"}},"anthropic.claude-sonnet-5":{id:"anthropic.claude-sonnet-5",name:"Claude Sonnet 5",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"au.anthropic.claude-haiku-4-5-20251001-v1:0":{id:"au.anthropic.claude-haiku-4-5-20251001-v1:0",name:"Claude Haiku 4.5 (AU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3},"au.anthropic.claude-opus-4-6-v1":{id:"au.anthropic.claude-opus-4-6-v1",name:"AU Anthropic Claude Opus 4.6",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:16.5,output:82.5,cacheRead:1.65,cacheWrite:20.625},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"}},"au.anthropic.claude-opus-4-8":{id:"au.anthropic.claude-opus-4-8",name:"Claude Opus 4.8 (AU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"au.anthropic.claude-sonnet-4-5-20250929-v1:0":{id:"au.anthropic.claude-sonnet-4-5-20250929-v1:0",name:"Claude Sonnet 4.5 (AU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3},"au.anthropic.claude-sonnet-4-6":{id:"au.anthropic.claude-sonnet-4-6",name:"AU Anthropic Claude Sonnet 4.6",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3.3,output:16.5,cacheRead:.33,cacheWrite:4.125},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"}},"au.anthropic.claude-sonnet-5":{id:"au.anthropic.claude-sonnet-5",name:"Claude Sonnet 5 (AU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"deepseek.r1-v1:0":{id:"deepseek.r1-v1:0",name:"DeepSeek-R1",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:1.35,output:5.4,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:32768},"deepseek.v3-v1:0":{id:"deepseek.v3-v1:0",name:"DeepSeek-V3.1",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.58,output:1.68,cacheRead:0,cacheWrite:0},contextWindow:163840,maxTokens:81920},"deepseek.v3.2":{id:"deepseek.v3.2",name:"DeepSeek-V3.2",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.62,output:1.85,cacheRead:0,cacheWrite:0},contextWindow:163840,maxTokens:81920},"eu.anthropic.claude-fable-5":{id:"eu.anthropic.claude-fable-5",name:"Claude Fable 5 (EU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.eu-central-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:11,output:55,cacheRead:1.1,cacheWrite:13.75},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"eu.anthropic.claude-haiku-4-5-20251001-v1:0":{id:"eu.anthropic.claude-haiku-4-5-20251001-v1:0",name:"Claude Haiku 4.5 (EU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.eu-central-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:1.1,output:5.5,cacheRead:.11,cacheWrite:1.375},contextWindow:2e5,maxTokens:64e3},"eu.anthropic.claude-opus-4-5-20251101-v1:0":{id:"eu.anthropic.claude-opus-4-5-20251101-v1:0",name:"Claude Opus 4.5 (EU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.eu-central-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5.5,output:27.5,cacheRead:.55,cacheWrite:6.875},contextWindow:2e5,maxTokens:64e3},"eu.anthropic.claude-opus-4-6-v1":{id:"eu.anthropic.claude-opus-4-6-v1",name:"Claude Opus 4.6 (EU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.eu-central-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5.5,output:27.5,cacheRead:.55,cacheWrite:6.875},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"}},"eu.anthropic.claude-opus-4-7":{id:"eu.anthropic.claude-opus-4-7",name:"Claude Opus 4.7 (EU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.eu-central-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5.5,output:27.5,cacheRead:.55,cacheWrite:6.875},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"eu.anthropic.claude-opus-4-8":{id:"eu.anthropic.claude-opus-4-8",name:"Claude Opus 4.8 (EU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.eu-central-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5.5,output:27.5,cacheRead:.55,cacheWrite:6.875},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"eu.anthropic.claude-sonnet-4-5-20250929-v1:0":{id:"eu.anthropic.claude-sonnet-4-5-20250929-v1:0",name:"Claude Sonnet 4.5 (EU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.eu-central-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3.3,output:16.5,cacheRead:.33,cacheWrite:4.125},contextWindow:2e5,maxTokens:64e3},"eu.anthropic.claude-sonnet-4-6":{id:"eu.anthropic.claude-sonnet-4-6",name:"Claude Sonnet 4.6 (EU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.eu-central-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3.3,output:16.5,cacheRead:.33,cacheWrite:4.125},contextWindow:1e6,maxTokens:64e3,thinkingLevelMap:{max:"max"}},"eu.anthropic.claude-sonnet-5":{id:"eu.anthropic.claude-sonnet-5",name:"Claude Sonnet 5 (EU)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.eu-central-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:2.2,output:11,cacheRead:.22,cacheWrite:2.75},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"global.anthropic.claude-fable-5":{id:"global.anthropic.claude-fable-5",name:"Claude Fable 5 (Global)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"global.anthropic.claude-haiku-4-5-20251001-v1:0":{id:"global.anthropic.claude-haiku-4-5-20251001-v1:0",name:"Claude Haiku 4.5 (Global)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3},"global.anthropic.claude-opus-4-5-20251101-v1:0":{id:"global.anthropic.claude-opus-4-5-20251101-v1:0",name:"Claude Opus 4.5 (Global)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:2e5,maxTokens:64e3},"global.anthropic.claude-opus-4-6-v1":{id:"global.anthropic.claude-opus-4-6-v1",name:"Claude Opus 4.6 (Global)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"}},"global.anthropic.claude-opus-4-7":{id:"global.anthropic.claude-opus-4-7",name:"Claude Opus 4.7 (Global)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"global.anthropic.claude-opus-4-8":{id:"global.anthropic.claude-opus-4-8",name:"Claude Opus 4.8 (Global)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"global.anthropic.claude-sonnet-4-5-20250929-v1:0":{id:"global.anthropic.claude-sonnet-4-5-20250929-v1:0",name:"Claude Sonnet 4.5 (Global)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3},"global.anthropic.claude-sonnet-4-6":{id:"global.anthropic.claude-sonnet-4-6",name:"Claude Sonnet 4.6 (Global)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:64e3,thinkingLevelMap:{max:"max"}},"global.anthropic.claude-sonnet-5":{id:"global.anthropic.claude-sonnet-5",name:"Claude Sonnet 5 (Global)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"google.gemma-3-27b-it":{id:"google.gemma-3-27b-it",name:"Google Gemma 3 27B Instruct",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.12,output:.2,cacheRead:0,cacheWrite:0},contextWindow:202752,maxTokens:8192},"google.gemma-3-4b-it":{id:"google.gemma-3-4b-it",name:"Gemma 3 4B IT",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.04,output:.08,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"jp.anthropic.claude-haiku-4-5-20251001-v1:0":{id:"jp.anthropic.claude-haiku-4-5-20251001-v1:0",name:"Claude Haiku 4.5 (JP)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3},"jp.anthropic.claude-opus-4-7":{id:"jp.anthropic.claude-opus-4-7",name:"Claude Opus 4.7 (JP)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"jp.anthropic.claude-opus-4-8":{id:"jp.anthropic.claude-opus-4-8",name:"Claude Opus 4.8 (JP)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"jp.anthropic.claude-sonnet-4-5-20250929-v1:0":{id:"jp.anthropic.claude-sonnet-4-5-20250929-v1:0",name:"Claude Sonnet 4.5 (JP)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3},"jp.anthropic.claude-sonnet-4-6":{id:"jp.anthropic.claude-sonnet-4-6",name:"Claude Sonnet 4.6 (JP)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:64e3,thinkingLevelMap:{max:"max"}},"jp.anthropic.claude-sonnet-5":{id:"jp.anthropic.claude-sonnet-5",name:"Claude Sonnet 5 (JP)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"meta.llama3-1-70b-instruct-v1:0":{id:"meta.llama3-1-70b-instruct-v1:0",name:"Llama 3.1 70B Instruct",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.72,output:.72,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"meta.llama3-1-8b-instruct-v1:0":{id:"meta.llama3-1-8b-instruct-v1:0",name:"Llama 3.1 8B Instruct",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.22,output:.22,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"meta.llama3-3-70b-instruct-v1:0":{id:"meta.llama3-3-70b-instruct-v1:0",name:"Llama 3.3 70B Instruct",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.72,output:.72,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"meta.llama4-maverick-17b-instruct-v1:0":{id:"meta.llama4-maverick-17b-instruct-v1:0",name:"Llama 4 Maverick 17B Instruct",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.24,output:.97,cacheRead:0,cacheWrite:0},contextWindow:1e6,maxTokens:16384},"meta.llama4-scout-17b-instruct-v1:0":{id:"meta.llama4-scout-17b-instruct-v1:0",name:"Llama 4 Scout 17B Instruct",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.17,output:.66,cacheRead:0,cacheWrite:0},contextWindow:35e5,maxTokens:16384},"minimax.minimax-m2":{id:"minimax.minimax-m2",name:"MiniMax M2",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:0,cacheWrite:0},contextWindow:204608,maxTokens:128e3},"minimax.minimax-m2.1":{id:"minimax.minimax-m2.1",name:"MiniMax M2.1",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:0,cacheWrite:0},contextWindow:204800,maxTokens:131072},"minimax.minimax-m2.5":{id:"minimax.minimax-m2.5",name:"MiniMax M2.5",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:0,cacheWrite:0},contextWindow:196608,maxTokens:98304},"mistral.devstral-2-123b":{id:"mistral.devstral-2-123b",name:"Devstral 2 123B",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.4,output:2,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:8192},"mistral.magistral-small-2509":{id:"mistral.magistral-small-2509",name:"Magistral Small 1.2",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:.5,output:1.5,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4e4},"mistral.ministral-3-14b-instruct":{id:"mistral.ministral-3-14b-instruct",name:"Ministral 14B 3.0",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.2,output:.2,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"mistral.ministral-3-3b-instruct":{id:"mistral.ministral-3-3b-instruct",name:"Ministral 3 3B",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.1,output:.1,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:8192},"mistral.ministral-3-8b-instruct":{id:"mistral.ministral-3-8b-instruct",name:"Ministral 3 8B",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.15,output:.15,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"mistral.mistral-large-3-675b-instruct":{id:"mistral.mistral-large-3-675b-instruct",name:"Mistral Large 3",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.5,output:1.5,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:8192},"mistral.pixtral-large-2502-v1:0":{id:"mistral.pixtral-large-2502-v1:0",name:"Pixtral Large (25.02)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:2,output:6,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:8192},"mistral.voxtral-mini-3b-2507":{id:"mistral.voxtral-mini-3b-2507",name:"Voxtral Mini 3B 2507",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.04,output:.04,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"mistral.voxtral-small-24b-2507":{id:"mistral.voxtral-small-24b-2507",name:"Voxtral Small 24B 2507",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.15,output:.35,cacheRead:0,cacheWrite:0},contextWindow:32e3,maxTokens:8192},"moonshot.kimi-k2-thinking":{id:"moonshot.kimi-k2-thinking",name:"Kimi K2 Thinking",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.6,output:2.5,cacheRead:0,cacheWrite:0},contextWindow:262143,maxTokens:16e3},"moonshotai.kimi-k2.5":{id:"moonshotai.kimi-k2.5",name:"Kimi K2.5",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:.6,output:3,cacheRead:0,cacheWrite:0},contextWindow:262143,maxTokens:16e3},"nvidia.nemotron-nano-12b-v2":{id:"nvidia.nemotron-nano-12b-v2",name:"NVIDIA Nemotron Nano 12B v2 VL BF16",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.2,output:.6,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"nvidia.nemotron-nano-3-30b":{id:"nvidia.nemotron-nano-3-30b",name:"NVIDIA Nemotron Nano 3 30B",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.06,output:.24,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"nvidia.nemotron-nano-9b-v2":{id:"nvidia.nemotron-nano-9b-v2",name:"NVIDIA Nemotron Nano 9B v2",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.06,output:.23,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"nvidia.nemotron-super-3-120b":{id:"nvidia.nemotron-super-3-120b",name:"NVIDIA Nemotron 3 Super 120B A12B",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.15,output:.65,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:131072},"openai.gpt-5.4":{id:"openai.gpt-5.4",name:"GPT-5.4",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:2.75,output:16.5,cacheRead:.275,cacheWrite:0},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai.gpt-5.5":{id:"openai.gpt-5.5",name:"GPT-5.5",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5.5,output:33,cacheRead:.55,cacheWrite:0},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai.gpt-5.6-luna":{id:"openai.gpt-5.6-luna",name:"GPT-5.6 Luna",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:1,output:6,cacheRead:.1,cacheWrite:1.25},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai.gpt-5.6-sol":{id:"openai.gpt-5.6-sol",name:"GPT-5.6 Sol",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:6.25},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai.gpt-5.6-terra":{id:"openai.gpt-5.6-terra",name:"GPT-5.6 Terra",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:3.125},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai.gpt-oss-120b":{id:"openai.gpt-oss-120b",name:"gpt-oss-120b",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.15,output:.6,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"openai.gpt-oss-120b-1:0":{id:"openai.gpt-oss-120b-1:0",name:"gpt-oss-120b",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.15,output:.6,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"openai.gpt-oss-20b":{id:"openai.gpt-oss-20b",name:"gpt-oss-20b",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.07,output:.3,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"openai.gpt-oss-20b-1:0":{id:"openai.gpt-oss-20b-1:0",name:"gpt-oss-20b",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.07,output:.3,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"openai.gpt-oss-safeguard-120b":{id:"openai.gpt-oss-safeguard-120b",name:"GPT OSS Safeguard 120B",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.15,output:.6,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"openai.gpt-oss-safeguard-20b":{id:"openai.gpt-oss-safeguard-20b",name:"GPT OSS Safeguard 20B",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.07,output:.2,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"qwen.qwen3-235b-a22b-2507-v1:0":{id:"qwen.qwen3-235b-a22b-2507-v1:0",name:"Qwen3 235B A22B 2507",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.22,output:.88,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:131072},"qwen.qwen3-32b-v1:0":{id:"qwen.qwen3-32b-v1:0",name:"Qwen3 32B (dense)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.15,output:.6,cacheRead:0,cacheWrite:0},contextWindow:16384,maxTokens:16384},"qwen.qwen3-coder-30b-a3b-v1:0":{id:"qwen.qwen3-coder-30b-a3b-v1:0",name:"Qwen3 Coder 30B A3B Instruct",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.15,output:.6,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:131072},"qwen.qwen3-coder-480b-a35b-v1:0":{id:"qwen.qwen3-coder-480b-a35b-v1:0",name:"Qwen3 Coder 480B A35B Instruct",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.22,output:1.8,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:65536},"qwen.qwen3-coder-next":{id:"qwen.qwen3-coder-next",name:"Qwen3 Coder Next",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.22,output:1.8,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:65536},"qwen.qwen3-next-80b-a3b":{id:"qwen.qwen3-next-80b-a3b",name:"Qwen/Qwen3-Next-80B-A3B-Instruct",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text"],cost:{input:.14,output:1.4,cacheRead:0,cacheWrite:0},contextWindow:262e3,maxTokens:262e3},"qwen.qwen3-vl-235b-a22b":{id:"qwen.qwen3-vl-235b-a22b",name:"Qwen/Qwen3-VL-235B-A22B-Instruct",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.3,output:1.5,cacheRead:0,cacheWrite:0},contextWindow:262e3,maxTokens:262e3},"us.anthropic.claude-fable-5":{id:"us.anthropic.claude-fable-5",name:"Claude Fable 5 (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"us.anthropic.claude-haiku-4-5-20251001-v1:0":{id:"us.anthropic.claude-haiku-4-5-20251001-v1:0",name:"Claude Haiku 4.5 (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3},"us.anthropic.claude-opus-4-1-20250805-v1:0":{id:"us.anthropic.claude-opus-4-1-20250805-v1:0",name:"Claude Opus 4.1 (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:32e3},"us.anthropic.claude-opus-4-5-20251101-v1:0":{id:"us.anthropic.claude-opus-4-5-20251101-v1:0",name:"Claude Opus 4.5 (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:2e5,maxTokens:64e3},"us.anthropic.claude-opus-4-6-v1":{id:"us.anthropic.claude-opus-4-6-v1",name:"Claude Opus 4.6 (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"}},"us.anthropic.claude-opus-4-7":{id:"us.anthropic.claude-opus-4-7",name:"Claude Opus 4.7 (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"us.anthropic.claude-opus-4-8":{id:"us.anthropic.claude-opus-4-8",name:"Claude Opus 4.8 (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"us.anthropic.claude-sonnet-4-5-20250929-v1:0":{id:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",name:"Claude Sonnet 4.5 (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3},"us.anthropic.claude-sonnet-4-6":{id:"us.anthropic.claude-sonnet-4-6",name:"Claude Sonnet 4.6 (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:64e3,thinkingLevelMap:{max:"max"}},"us.anthropic.claude-sonnet-5":{id:"us.anthropic.claude-sonnet-5",name:"Claude Sonnet 5 (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"us.deepseek.r1-v1:0":{id:"us.deepseek.r1-v1:0",name:"DeepSeek-R1 (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:1.35,output:5.4,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:32768},"us.meta.llama4-maverick-17b-instruct-v1:0":{id:"us.meta.llama4-maverick-17b-instruct-v1:0",name:"Llama 4 Maverick 17B Instruct (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.24,output:.97,cacheRead:0,cacheWrite:0},contextWindow:1e6,maxTokens:16384},"us.meta.llama4-scout-17b-instruct-v1:0":{id:"us.meta.llama4-scout-17b-instruct-v1:0",name:"Llama 4 Scout 17B Instruct (US)",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!1,input:["text","image"],cost:{input:.17,output:.66,cacheRead:0,cacheWrite:0},contextWindow:35e5,maxTokens:16384},"writer.palmyra-x4-v1:0":{id:"writer.palmyra-x4-v1:0",name:"Palmyra X4",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:2.5,output:10,cacheRead:0,cacheWrite:0},contextWindow:122880,maxTokens:8192},"writer.palmyra-x5-v1:0":{id:"writer.palmyra-x5-v1:0",name:"Palmyra X5",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.6,output:6,cacheRead:0,cacheWrite:0},contextWindow:104e4,maxTokens:8192},"xai.grok-4.3":{id:"xai.grok-4.3",name:"Grok 4.3",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text","image"],cost:{input:1.25,output:2.5,cacheRead:.2,cacheWrite:0},contextWindow:1e6,maxTokens:131072},"zai.glm-4.7":{id:"zai.glm-4.7",name:"GLM-4.7",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.6,output:2.2,cacheRead:0,cacheWrite:0},contextWindow:204800,maxTokens:131072},"zai.glm-4.7-flash":{id:"zai.glm-4.7-flash",name:"GLM-4.7-Flash",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:.07,output:.4,cacheRead:0,cacheWrite:0},contextWindow:2e5,maxTokens:131072},"zai.glm-5":{id:"zai.glm-5",name:"GLM-5",api:"bedrock-converse-stream",provider:"amazon-bedrock",baseUrl:"https://bedrock-runtime.us-east-1.amazonaws.com",reasoning:!0,input:["text"],cost:{input:1,output:3.2,cacheRead:0,cacheWrite:0},contextWindow:202752,maxTokens:101376}};var BT=NT;var jT={"Ling-2.6-1T":{id:"Ling-2.6-1T",name:"Ling 2.6 1T",api:"openai-completions",baseUrl:"https://api.ant-ling.com/v1",provider:"ant-ling",reasoning:!1,input:["text"],cost:{input:.06,output:.25,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:65536,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"ant-ling",supportsLongCacheRetention:!1}},"Ling-2.6-flash":{id:"Ling-2.6-flash",name:"Ling 2.6 Flash",api:"openai-completions",baseUrl:"https://api.ant-ling.com/v1",provider:"ant-ling",reasoning:!1,input:["text"],cost:{input:.01,output:.02,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:65536,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"ant-ling",supportsLongCacheRetention:!1}},"Ring-2.6-1T":{id:"Ring-2.6-1T",name:"Ring 2.6 1T",api:"openai-completions",baseUrl:"https://api.ant-ling.com/v1",provider:"ant-ling",reasoning:!0,input:["text"],cost:{input:.06,output:.25,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:65536,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"ant-ling",supportsLongCacheRetention:!1},thinkingLevelMap:{off:null,minimal:null,low:null,medium:null,high:"high",xhigh:"xhigh"}}};var qT=jT;var KT={"claude-fable-5":{id:"claude-fable-5",name:"Claude Fable 5",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0}},"claude-haiku-4-5":{id:"claude-haiku-4-5",name:"Claude Haiku 4.5 (latest)",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3},"claude-haiku-4-5-20251001":{id:"claude-haiku-4-5-20251001",name:"Claude Haiku 4.5",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3},"claude-opus-4-1":{id:"claude-opus-4-1",name:"Claude Opus 4.1 (latest)",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:32e3},"claude-opus-4-1-20250805":{id:"claude-opus-4-1-20250805",name:"Claude Opus 4.1",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:32e3},"claude-opus-4-5":{id:"claude-opus-4-5",name:"Claude Opus 4.5 (latest)",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:2e5,maxTokens:64e3},"claude-opus-4-5-20251101":{id:"claude-opus-4-5-20251101",name:"Claude Opus 4.5",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:2e5,maxTokens:64e3},"claude-opus-4-6":{id:"claude-opus-4-6",name:"Claude Opus 4.6",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"},compat:{forceAdaptiveThinking:!0}},"claude-opus-4-7":{id:"claude-opus-4-7",name:"Claude Opus 4.7",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0,supportsTemperature:!1}},"claude-opus-4-8":{id:"claude-opus-4-8",name:"Claude Opus 4.8",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0,supportsTemperature:!1}},"claude-sonnet-4-5":{id:"claude-sonnet-4-5",name:"Claude Sonnet 4.5 (latest)",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:64e3},"claude-sonnet-4-5-20250929":{id:"claude-sonnet-4-5-20250929",name:"Claude Sonnet 4.5",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:64e3},"claude-sonnet-4-6":{id:"claude-sonnet-4-6",name:"Claude Sonnet 4.6",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"},compat:{forceAdaptiveThinking:!0}},"claude-sonnet-5":{id:"claude-sonnet-5",name:"Claude Sonnet 5",api:"anthropic-messages",provider:"anthropic",baseUrl:"https://api.anthropic.com",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0}}};var GT=KT;var zT={"gpt-4":{id:"gpt-4",name:"GPT-4",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!1,input:["text"],cost:{input:30,output:60,cacheRead:0,cacheWrite:0},contextWindow:8192,maxTokens:8192},"gpt-4-turbo":{id:"gpt-4-turbo",name:"GPT-4 Turbo",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!1,input:["text","image"],cost:{input:10,output:30,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!1,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:1047576,maxTokens:32768},"gpt-4.1-mini":{id:"gpt-4.1-mini",name:"GPT-4.1 mini",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!1,input:["text","image"],cost:{input:.4,output:1.6,cacheRead:.1,cacheWrite:0},contextWindow:1047576,maxTokens:32768},"gpt-4.1-nano":{id:"gpt-4.1-nano",name:"GPT-4.1 nano",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!1,input:["text","image"],cost:{input:.1,output:.4,cacheRead:.025,cacheWrite:0},contextWindow:1047576,maxTokens:32768},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"gpt-4o-2024-05-13":{id:"gpt-4o-2024-05-13",name:"GPT-4o (2024-05-13)",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!1,input:["text","image"],cost:{input:5,output:15,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"gpt-4o-2024-08-06":{id:"gpt-4o-2024-08-06",name:"GPT-4o (2024-08-06)",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"gpt-4o-2024-11-20":{id:"gpt-4o-2024-11-20",name:"GPT-4o (2024-11-20)",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"gpt-4o-mini":{id:"gpt-4o-mini",name:"GPT-4o mini",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!1,input:["text","image"],cost:{input:.15,output:.6,cacheRead:.075,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"gpt-5":{id:"gpt-5",name:"GPT-5",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5-chat-latest":{id:"gpt-5-chat-latest",name:"GPT-5 Chat Latest",api:"azure-openai-responses",baseUrl:"",provider:"azure-openai-responses",reasoning:!1,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{off:null}},"gpt-5-codex":{id:"gpt-5-codex",name:"GPT-5-Codex",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 Mini",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.025,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5-nano":{id:"gpt-5-nano",name:"GPT-5 Nano",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:.05,output:.4,cacheRead:.005,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5-pro":{id:"gpt-5-pro",name:"GPT-5 Pro",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:15,output:120,cacheRead:0,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1":{id:"gpt-5.1",name:"GPT-5.1",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1-chat-latest":{id:"gpt-5.1-chat-latest",name:"GPT-5.1 Chat",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{off:null}},"gpt-5.1-codex":{id:"gpt-5.1-codex",name:"GPT-5.1 Codex",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1-codex-max":{id:"gpt-5.1-codex-max",name:"GPT-5.1 Codex Max",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1-codex-mini":{id:"gpt-5.1-codex-mini",name:"GPT-5.1 Codex mini",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.025,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.2":{id:"gpt-5.2",name:"GPT-5.2",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.2-chat-latest":{id:"gpt-5.2-chat-latest",name:"GPT-5.2 Chat",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2 Codex",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.2-pro":{id:"gpt-5.2-pro",name:"GPT-5.2 Pro",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:21,output:168,cacheRead:0,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.3-chat-latest":{id:"gpt-5.3-chat-latest",name:"GPT-5.3 Chat (latest)",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!1,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.3-codex":{id:"gpt-5.3-codex",name:"GPT-5.3 Codex",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.3-codex-spark":{id:"gpt-5.3-codex-spark",name:"GPT-5.3 Codex Spark",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:128e3,maxTokens:32e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.4-mini":{id:"gpt-5.4-mini",name:"GPT-5.4 mini",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:.75,output:4.5,cacheRead:.075,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.4-nano":{id:"gpt-5.4-nano",name:"GPT-5.4 nano",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:.2,output:1.25,cacheRead:.02,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.4-pro":{id:"gpt-5.4-pro",name:"GPT-5.4 Pro",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:30,output:180,cacheRead:0,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.5-pro":{id:"gpt-5.5-pro",name:"GPT-5.5 Pro",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:30,output:180,cacheRead:0,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",minimal:null,low:null}},"gpt-5.6-luna":{id:"gpt-5.6-luna",name:"GPT-5.6 Luna",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1,output:6,cacheRead:.1,cacheWrite:1.25},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"gpt-5.6-sol":{id:"gpt-5.6-sol",name:"GPT-5.6 Sol",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:6.25},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"gpt-5.6-terra":{id:"gpt-5.6-terra",name:"GPT-5.6 Terra",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:3.125},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"gpt-realtime-2.1":{id:"gpt-realtime-2.1",name:"GPT-Realtime-2.1",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:4,output:24,cacheRead:.4,cacheWrite:0},contextWindow:128e3,maxTokens:32e3},o1:{id:"o1",name:"o1",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:15,output:60,cacheRead:7.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o1-pro":{id:"o1-pro",name:"o1-pro",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:150,output:600,cacheRead:0,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},o3:{id:"o3",name:"o3",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o3-deep-research":{id:"o3-deep-research",name:"o3-deep-research",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:10,output:40,cacheRead:2.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o3-mini":{id:"o3-mini",name:"o3-mini",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text"],cost:{input:1.1,output:4.4,cacheRead:.55,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o3-pro":{id:"o3-pro",name:"o3-pro",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:20,output:80,cacheRead:0,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o4-mini":{id:"o4-mini",name:"o4-mini",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.1,output:4.4,cacheRead:.275,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o4-mini-deep-research":{id:"o4-mini-deep-research",name:"o4-mini-deep-research",api:"azure-openai-responses",provider:"azure-openai-responses",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5}};var HT=zT;var VT={"gemma-4-31b":{id:"gemma-4-31b",name:"Gemma 4 31B IT",api:"openai-completions",provider:"cerebras",baseUrl:"https://api.cerebras.ai/v1",reasoning:!0,input:["text","image"],cost:{input:.99,output:1.49,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:40960,compat:{supportsStore:!1,supportsDeveloperRole:!1}},"gpt-oss-120b":{id:"gpt-oss-120b",name:"GPT OSS 120B",api:"openai-completions",provider:"cerebras",baseUrl:"https://api.cerebras.ai/v1",reasoning:!0,input:["text"],cost:{input:.35,output:.75,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:40960,compat:{supportsStore:!1,supportsDeveloperRole:!1}},"zai-glm-4.7":{id:"zai-glm-4.7",name:"Z.AI GLM-4.7",api:"openai-completions",provider:"cerebras",baseUrl:"https://api.cerebras.ai/v1",reasoning:!0,input:["text"],cost:{input:2.25,output:2.75,cacheRead:2.25,cacheWrite:0},contextWindow:131072,maxTokens:40960,compat:{supportsStore:!1,supportsDeveloperRole:!1}}};var QT=VT;var JT={"claude-3-5-haiku":{id:"claude-3-5-haiku",name:"Claude Haiku 3.5 (latest)",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!1,input:["text","image"],cost:{input:.8,output:4,cacheRead:.08,cacheWrite:1},contextWindow:2e5,maxTokens:8192,compat:{sendSessionAffinityHeaders:!0}},"claude-3-haiku":{id:"claude-3-haiku",name:"Claude Haiku 3",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!1,input:["text","image"],cost:{input:.25,output:1.25,cacheRead:.03,cacheWrite:.3},contextWindow:2e5,maxTokens:4096,compat:{sendSessionAffinityHeaders:!0}},"claude-3-opus":{id:"claude-3-opus",name:"Claude Opus 3",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!1,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:4096,compat:{sendSessionAffinityHeaders:!0}},"claude-3-sonnet":{id:"claude-3-sonnet",name:"Claude Sonnet 3",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!1,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:.3},contextWindow:2e5,maxTokens:4096,compat:{sendSessionAffinityHeaders:!0}},"claude-3.5-haiku":{id:"claude-3.5-haiku",name:"Claude Haiku 3.5 (latest)",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!1,input:["text","image"],cost:{input:.8,output:4,cacheRead:.08,cacheWrite:1},contextWindow:2e5,maxTokens:8192,compat:{sendSessionAffinityHeaders:!0}},"claude-3.5-sonnet":{id:"claude-3.5-sonnet",name:"Claude Sonnet 3.5 v2",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!1,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:8192,compat:{sendSessionAffinityHeaders:!0}},"claude-fable-5":{id:"claude-fable-5",name:"Claude Fable 5",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,compat:{sendSessionAffinityHeaders:!0,forceAdaptiveThinking:!0},thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"claude-haiku-4-5":{id:"claude-haiku-4-5",name:"Claude Haiku 4.5 (latest)",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3,compat:{sendSessionAffinityHeaders:!0}},"claude-opus-4":{id:"claude-opus-4",name:"Claude Opus 4 (latest)",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:32e3,compat:{sendSessionAffinityHeaders:!0}},"claude-opus-4-1":{id:"claude-opus-4-1",name:"Claude Opus 4.1 (latest)",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:32e3,compat:{sendSessionAffinityHeaders:!0}},"claude-opus-4-5":{id:"claude-opus-4-5",name:"Claude Opus 4.5 (latest)",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:2e5,maxTokens:64e3,compat:{sendSessionAffinityHeaders:!0}},"claude-opus-4-6":{id:"claude-opus-4-6",name:"Claude Opus 4.6 (latest)",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,compat:{sendSessionAffinityHeaders:!0,forceAdaptiveThinking:!0},thinkingLevelMap:{max:"max"}},"claude-opus-4-7":{id:"claude-opus-4-7",name:"Claude Opus 4.7",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,compat:{sendSessionAffinityHeaders:!0,forceAdaptiveThinking:!0,supportsTemperature:!1},thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"claude-opus-4-8":{id:"claude-opus-4-8",name:"Claude Opus 4.8",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,compat:{sendSessionAffinityHeaders:!0,forceAdaptiveThinking:!0,supportsTemperature:!1},thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"claude-sonnet-4":{id:"claude-sonnet-4",name:"Claude Sonnet 4 (latest)",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3,compat:{sendSessionAffinityHeaders:!0}},"claude-sonnet-4-5":{id:"claude-sonnet-4-5",name:"Claude Sonnet 4.5 (latest)",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3,compat:{sendSessionAffinityHeaders:!0}},"claude-sonnet-4-6":{id:"claude-sonnet-4-6",name:"Claude Sonnet 4.6",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:64e3,compat:{sendSessionAffinityHeaders:!0,forceAdaptiveThinking:!0},thinkingLevelMap:{max:"max"}},"claude-sonnet-5":{id:"claude-sonnet-5",name:"Claude Sonnet 5",api:"anthropic-messages",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,compat:{sendSessionAffinityHeaders:!0,forceAdaptiveThinking:!0},thinkingLevelMap:{xhigh:"xhigh",max:"max"}},"gpt-4":{id:"gpt-4",name:"GPT-4",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!1,input:["text"],cost:{input:30,output:60,cacheRead:0,cacheWrite:0},contextWindow:8192,maxTokens:8192},"gpt-4-turbo":{id:"gpt-4-turbo",name:"GPT-4 Turbo",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!1,input:["text","image"],cost:{input:10,output:30,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"gpt-4o-mini":{id:"gpt-4o-mini",name:"GPT-4o mini",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!1,input:["text","image"],cost:{input:.15,output:.6,cacheRead:.08,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"gpt-5.1":{id:"gpt-5.1",name:"GPT-5.1",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.13,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1-codex":{id:"gpt-5.1-codex",name:"GPT-5.1 Codex",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.2":{id:"gpt-5.2",name:"GPT-5.2",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2 Codex",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.3-codex":{id:"gpt-5.3-codex",name:"GPT-5.3 Codex",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.6-luna":{id:"gpt-5.6-luna",name:"GPT-5.6 Luna",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:1,output:6,cacheRead:.1,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"gpt-5.6-sol":{id:"gpt-5.6-sol",name:"GPT-5.6 Sol",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"gpt-5.6-terra":{id:"gpt-5.6-terra",name:"GPT-5.6 Terra",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},o1:{id:"o1",name:"o1",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:15,output:60,cacheRead:7.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},o3:{id:"o3",name:"o3",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o3-mini":{id:"o3-mini",name:"o3-mini",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text"],cost:{input:1.1,output:4.4,cacheRead:.55,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o3-pro":{id:"o3-pro",name:"o3-pro",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:20,output:80,cacheRead:0,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o4-mini":{id:"o4-mini",name:"o4-mini",api:"openai-responses",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai",reasoning:!0,input:["text","image"],cost:{input:1.1,output:4.4,cacheRead:.28,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"workers-ai/@cf/moonshotai/kimi-k2.5":{id:"workers-ai/@cf/moonshotai/kimi-k2.5",name:"Kimi K2.5",api:"openai-completions",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/compat",reasoning:!0,input:["text","image"],cost:{input:.6,output:3,cacheRead:.1,cacheWrite:0},contextWindow:256e3,maxTokens:256e3,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"workers-ai/@cf/moonshotai/kimi-k2.6":{id:"workers-ai/@cf/moonshotai/kimi-k2.6",name:"Kimi K2.6",api:"openai-completions",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/compat",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.16,cacheWrite:0},contextWindow:256e3,maxTokens:256e3,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"workers-ai/@cf/nvidia/nemotron-3-120b-a12b":{id:"workers-ai/@cf/nvidia/nemotron-3-120b-a12b",name:"Nemotron 3 Super 120B",api:"openai-completions",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/compat",reasoning:!0,input:["text"],cost:{input:.5,output:1.5,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:256e3,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"workers-ai/@cf/zai-org/glm-4.7-flash":{id:"workers-ai/@cf/zai-org/glm-4.7-flash",name:"GLM-4.7-Flash",api:"openai-completions",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/compat",reasoning:!0,input:["text"],cost:{input:.06,output:.4,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:131072,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"workers-ai/@cf/zai-org/glm-5.2":{id:"workers-ai/@cf/zai-org/glm-5.2",name:"Glm 5.2",api:"openai-completions",provider:"cloudflare-ai-gateway",baseUrl:"https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/compat",reasoning:!0,input:["text"],cost:{input:1.4,output:4.4,cacheRead:.26,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}}};var YT=JT;var XT={"@cf/google/gemma-4-26b-a4b-it":{id:"@cf/google/gemma-4-26b-a4b-it",name:"Gemma 4 26B A4B IT",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!0,input:["text","image"],cost:{input:.1,output:.3,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:16384,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/ibm-granite/granite-4.0-h-micro":{id:"@cf/ibm-granite/granite-4.0-h-micro",name:"Granite 4.0 H Micro",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!1,input:["text"],cost:{input:.017,output:.112,cacheRead:0,cacheWrite:0},contextWindow:131e3,maxTokens:131e3,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/meta/llama-3.3-70b-instruct-fp8-fast":{id:"@cf/meta/llama-3.3-70b-instruct-fp8-fast",name:"Llama 3.3 70B Instruct fp8 Fast",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!1,input:["text"],cost:{input:.293,output:2.253,cacheRead:0,cacheWrite:0},contextWindow:24e3,maxTokens:24e3,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/meta/llama-4-scout-17b-16e-instruct":{id:"@cf/meta/llama-4-scout-17b-16e-instruct",name:"Llama 4 Scout 17B 16E Instruct",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!1,input:["text","image"],cost:{input:.27,output:.85,cacheRead:0,cacheWrite:0},contextWindow:131e3,maxTokens:16384,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/mistralai/mistral-small-3.1-24b-instruct":{id:"@cf/mistralai/mistral-small-3.1-24b-instruct",name:"Mistral Small 3.1 24B Instruct",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!1,input:["text"],cost:{input:.351,output:.555,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:128e3,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/moonshotai/kimi-k2.6":{id:"@cf/moonshotai/kimi-k2.6",name:"Kimi K2.6",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.16,cacheWrite:0},contextWindow:262144,maxTokens:256e3,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/moonshotai/kimi-k2.7-code":{id:"@cf/moonshotai/kimi-k2.7-code",name:"Kimi K2.7 Code",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.19,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/nvidia/nemotron-3-120b-a12b":{id:"@cf/nvidia/nemotron-3-120b-a12b",name:"Nemotron 3 Super 120B",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!0,input:["text"],cost:{input:.5,output:1.5,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:256e3,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/openai/gpt-oss-120b":{id:"@cf/openai/gpt-oss-120b",name:"GPT OSS 120B",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!0,input:["text"],cost:{input:.35,output:.75,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16384,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/openai/gpt-oss-20b":{id:"@cf/openai/gpt-oss-20b",name:"GPT OSS 20B",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!0,input:["text"],cost:{input:.2,output:.3,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16384,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/qwen/qwen3-30b-a3b-fp8":{id:"@cf/qwen/qwen3-30b-a3b-fp8",name:"Qwen3 30B A3b fp8",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!0,input:["text"],cost:{input:.0509,output:.335,cacheRead:0,cacheWrite:0},contextWindow:32768,maxTokens:32768,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/zai-org/glm-4.7-flash":{id:"@cf/zai-org/glm-4.7-flash",name:"GLM-4.7-Flash",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!0,input:["text"],cost:{input:.0605,output:.4,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:131072,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}},"@cf/zai-org/glm-5.2":{id:"@cf/zai-org/glm-5.2",name:"Glm 5.2",api:"openai-completions",provider:"cloudflare-workers-ai",baseUrl:"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",reasoning:!0,input:["text"],cost:{input:1.4,output:4.4,cacheRead:.26,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsLongCacheRetention:!1,sendSessionAffinityHeaders:!0}}};var ZT=XT;var eC={"deepseek-v4-flash":{id:"deepseek-v4-flash",name:"DeepSeek V4 Flash",api:"openai-completions",baseUrl:"https://api.deepseek.com",provider:"deepseek",reasoning:!0,input:["text"],cost:{input:.14,output:.28,cacheRead:.0028,cacheWrite:0},contextWindow:1e6,maxTokens:384e3,compat:{supportsStore:!1,supportsDeveloperRole:!1,requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},thinkingLevelMap:{minimal:null,low:null,medium:null,high:"high",max:"max"}},"deepseek-v4-pro":{id:"deepseek-v4-pro",name:"DeepSeek V4 Pro",api:"openai-completions",baseUrl:"https://api.deepseek.com",provider:"deepseek",reasoning:!0,input:["text"],cost:{input:.435,output:.87,cacheRead:.003625,cacheWrite:0},contextWindow:1e6,maxTokens:384e3,compat:{supportsStore:!1,supportsDeveloperRole:!1,requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},thinkingLevelMap:{minimal:null,low:null,medium:null,high:"high",max:"max"}}};var tC=eC;var nC={"accounts/fireworks/models/deepseek-v4-flash":{id:"accounts/fireworks/models/deepseek-v4-flash",name:"DeepSeek V4 Flash",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text"],cost:{input:.14,output:.28,cacheRead:.028,cacheWrite:0},contextWindow:1e6,maxTokens:384e3,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/models/deepseek-v4-pro":{id:"accounts/fireworks/models/deepseek-v4-pro",name:"DeepSeek V4 Pro",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text"],cost:{input:1.74,output:3.48,cacheRead:.145,cacheWrite:0},contextWindow:1e6,maxTokens:384e3,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/models/glm-5p1":{id:"accounts/fireworks/models/glm-5p1",name:"GLM 5.1",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text"],cost:{input:1.4,output:4.4,cacheRead:.26,cacheWrite:0},contextWindow:202800,maxTokens:131072,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/models/glm-5p2":{id:"accounts/fireworks/models/glm-5p2",name:"GLM 5.2",api:"openai-completions",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference/v1",reasoning:!0,input:["text"],cost:{input:1.4,output:4.4,cacheRead:.14,cacheWrite:0},contextWindow:1048575,maxTokens:131072,compat:{supportsStore:!1,supportsDeveloperRole:!1},thinkingLevelMap:{off:"none",minimal:null,low:"high",medium:"high",max:"max"}},"accounts/fireworks/models/gpt-oss-120b":{id:"accounts/fireworks/models/gpt-oss-120b",name:"GPT OSS 120B",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text"],cost:{input:.15,output:.6,cacheRead:.015,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/models/gpt-oss-20b":{id:"accounts/fireworks/models/gpt-oss-20b",name:"GPT OSS 20B",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text"],cost:{input:.07,output:.3,cacheRead:.035,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/models/kimi-k2p6":{id:"accounts/fireworks/models/kimi-k2p6",name:"Kimi K2.6",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.16,cacheWrite:0},contextWindow:262e3,maxTokens:262e3,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/models/kimi-k2p7-code":{id:"accounts/fireworks/models/kimi-k2p7-code",name:"Kimi K2.7 Code",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.19,cacheWrite:0},contextWindow:262e3,maxTokens:262e3,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/models/minimax-m2p7":{id:"accounts/fireworks/models/minimax-m2p7",name:"MiniMax-M2.7",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},contextWindow:196608,maxTokens:196608,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/models/minimax-m3":{id:"accounts/fireworks/models/minimax-m3",name:"MiniMax-M3",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},contextWindow:512e3,maxTokens:512e3,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/models/qwen3p7-plus":{id:"accounts/fireworks/models/qwen3p7-plus",name:"Qwen 3.7 Plus",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text","image"],cost:{input:.4,output:1.6,cacheRead:.08,cacheWrite:0},contextWindow:262144,maxTokens:65536,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/routers/glm-5p1-fast":{id:"accounts/fireworks/routers/glm-5p1-fast",name:"GLM 5.1 Fast",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text"],cost:{input:2.8,output:8.8,cacheRead:.52,cacheWrite:0},contextWindow:202800,maxTokens:131072,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/routers/glm-5p2-fast":{id:"accounts/fireworks/routers/glm-5p2-fast",name:"GLM 5.2 Fast",api:"openai-completions",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference/v1",reasoning:!0,input:["text"],cost:{input:2.1,output:6.6,cacheRead:.21,cacheWrite:0},contextWindow:1048575,maxTokens:131072,compat:{supportsStore:!1,supportsDeveloperRole:!1},thinkingLevelMap:{off:"none",minimal:null,low:"high",medium:"high",max:"max"}},"accounts/fireworks/routers/kimi-k2p6-fast":{id:"accounts/fireworks/routers/kimi-k2p6-fast",name:"Kimi K2.6 Fast",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text","image"],cost:{input:2,output:8,cacheRead:.3,cacheWrite:0},contextWindow:262e3,maxTokens:262e3,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/routers/kimi-k2p6-turbo":{id:"accounts/fireworks/routers/kimi-k2p6-turbo",name:"Kimi K2.6 Turbo",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text","image"],cost:{input:2,output:8,cacheRead:.3,cacheWrite:0},contextWindow:262e3,maxTokens:262e3,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}},"accounts/fireworks/routers/kimi-k2p7-code-fast":{id:"accounts/fireworks/routers/kimi-k2p7-code-fast",name:"Kimi K2.7 Code Fast",api:"anthropic-messages",provider:"fireworks",baseUrl:"https://api.fireworks.ai/inference",reasoning:!0,input:["text","image"],cost:{input:1.9,output:8,cacheRead:.38,cacheWrite:0},contextWindow:262e3,maxTokens:262e3,compat:{sendSessionAffinityHeaders:!0,supportsEagerToolInputStreaming:!1,supportsCacheControlOnTools:!1,supportsLongCacheRetention:!1}}};var iC=nC;var oC={"claude-fable-5":{id:"claude-fable-5",name:"Claude Fable 5",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1},thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5 (latest)",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsEagerToolInputStreaming:!1}},"claude-opus-4.5":{id:"claude-opus-4.5",name:"Claude Opus 4.5 (latest)",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:2e5,maxTokens:32e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"}},"claude-opus-4.6":{id:"claude-opus-4.6",name:"Claude Opus 4.6",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:32e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{max:"max"},compat:{forceAdaptiveThinking:!0}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:32e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{xhigh:"xhigh",max:"max",minimal:"low"},compat:{forceAdaptiveThinking:!0,supportsTemperature:!1}},"claude-opus-4.8":{id:"claude-opus-4.8",name:"Claude Opus 4.8",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:64e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{xhigh:"xhigh",max:"max",minimal:"low"},compat:{forceAdaptiveThinking:!0,supportsTemperature:!1}},"claude-sonnet-4":{id:"claude-sonnet-4",name:"Claude Sonnet 4 (latest)",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:216e3,maxTokens:16e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsEagerToolInputStreaming:!1}},"claude-sonnet-4.5":{id:"claude-sonnet-4.5",name:"Claude Sonnet 4.5 (latest)",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:32e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsEagerToolInputStreaming:!1}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:32e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{max:"max",minimal:"low"},compat:{forceAdaptiveThinking:!0}},"claude-sonnet-5":{id:"claude-sonnet-5",name:"Claude Sonnet 5",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0}},"gemini-2.5-pro":{id:"gemini-2.5-pro",name:"Gemini 2.5 Pro",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:128e3,maxTokens:64e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1}},"gemini-3-flash-preview":{id:"gemini-3-flash-preview",name:"Gemini 3 Flash Preview",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:.5,output:3,cacheRead:.05,cacheWrite:0},contextWindow:128e3,maxTokens:64e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:0,tiers:[{inputTokensAbove:2e5,input:4,output:18,cacheRead:.4,cacheWrite:0}]},contextWindow:1e6,maxTokens:64e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1}},"gemini-3.5-flash":{id:"gemini-3.5-flash",name:"Gemini 3.5 Flash",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:1.5,output:9,cacheRead:.15,cacheWrite:0},contextWindow:2e5,maxTokens:64e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!1,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:128e3,maxTokens:16384,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 Mini",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.025,cacheWrite:0},contextWindow:264e3,maxTokens:64e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low"}},"gpt-5.2":{id:"gpt-5.2",name:"GPT-5.2",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",xhigh:"xhigh"}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2 Codex",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",xhigh:"xhigh"}},"gpt-5.3-codex":{id:"gpt-5.3-codex",name:"GPT-5.3 Codex",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:1e6,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",xhigh:"xhigh"}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:0,tiers:[{inputTokensAbove:272e3,input:5,output:22.5,cacheRead:.5,cacheWrite:0}]},contextWindow:1e6,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",xhigh:"xhigh"}},"gpt-5.4-mini":{id:"gpt-5.4-mini",name:"GPT-5.4 mini",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:.75,output:4.5,cacheRead:.075,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",xhigh:"xhigh"}},"gpt-5.4-nano":{id:"gpt-5.4-nano",name:"GPT-5.4 nano",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:.2,output:1.25,cacheRead:.02,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",xhigh:"xhigh"}},"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0,tiers:[{inputTokensAbove:272e3,input:10,output:45,cacheRead:1,cacheWrite:0}]},contextWindow:1e6,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",xhigh:"xhigh"}},"gpt-5.6-luna":{id:"gpt-5.6-luna",name:"GPT-5.6 Luna",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:1,output:6,cacheRead:.1,cacheWrite:1.25,tiers:[{inputTokensAbove:2e5,input:2,output:9,cacheRead:.2,cacheWrite:2.5}]},contextWindow:105e4,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",xhigh:"xhigh",max:"max"}},"gpt-5.6-sol":{id:"gpt-5.6-sol",name:"GPT-5.6 Sol",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:6.25,tiers:[{inputTokensAbove:272e3,input:10,output:45,cacheRead:1,cacheWrite:12.5}]},contextWindow:105e4,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",xhigh:"xhigh",max:"max"}},"gpt-5.6-terra":{id:"gpt-5.6-terra",name:"GPT-5.6 Terra",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:3.125,tiers:[{inputTokensAbove:272e3,input:5,output:22.5,cacheRead:.5,cacheWrite:6.25}]},contextWindow:105e4,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",xhigh:"xhigh",max:"max"}},"kimi-k2.7-code":{id:"kimi-k2.7-code",name:"Kimi K2.7 Code",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.19,cacheWrite:0},contextWindow:256e3,maxTokens:32e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1}},"mai-code-1-flash-picker":{id:"mai-code-1-flash-picker",name:"MAI-Code-1-Flash",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text"],cost:{input:.75,output:4.5,cacheRead:.075,cacheWrite:0},contextWindow:256e3,maxTokens:128e3,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"}}};var rC=oC;var sC={"gemini-2.0-flash":{id:"gemini-2.0-flash",name:"Gemini 2.0 Flash",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!1,input:["text","image"],cost:{input:.1,output:.4,cacheRead:.025,cacheWrite:0},contextWindow:1048576,maxTokens:8192},"gemini-2.0-flash-lite":{id:"gemini-2.0-flash-lite",name:"Gemini 2.0 Flash-Lite",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!1,input:["text","image"],cost:{input:.075,output:.3,cacheRead:0,cacheWrite:0},contextWindow:1048576,maxTokens:8192},"gemini-2.5-flash":{id:"gemini-2.5-flash",name:"Gemini 2.5 Flash",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:.3,output:2.5,cacheRead:.03,cacheWrite:0},contextWindow:1048576,maxTokens:65536},"gemini-2.5-flash-lite":{id:"gemini-2.5-flash-lite",name:"Gemini 2.5 Flash-Lite",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:.1,output:.4,cacheRead:.01,cacheWrite:0},contextWindow:1048576,maxTokens:65536},"gemini-2.5-pro":{id:"gemini-2.5-pro",name:"Gemini 2.5 Pro",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:1048576,maxTokens:65536},"gemini-3-flash-preview":{id:"gemini-3-flash-preview",name:"Gemini 3 Flash Preview",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:.5,output:3,cacheRead:.05,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"gemini-3-pro-preview":{id:"gemini-3-pro-preview",name:"Gemini 3 Pro Preview",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null,minimal:null,low:"LOW",medium:null,high:"HIGH"}},"gemini-3.1-flash-lite":{id:"gemini-3.1-flash-lite",name:"Gemini 3.1 Flash Lite",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:.25,output:1.5,cacheRead:.025,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"gemini-3.1-flash-lite-preview":{id:"gemini-3.1-flash-lite-preview",name:"Gemini 3.1 Flash Lite Preview",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:.25,output:1.5,cacheRead:.025,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null,minimal:null,low:"LOW",medium:null,high:"HIGH"}},"gemini-3.1-pro-preview-customtools":{id:"gemini-3.1-pro-preview-customtools",name:"Gemini 3.1 Pro Preview Custom Tools",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null,minimal:null,low:"LOW",medium:null,high:"HIGH"}},"gemini-3.5-flash":{id:"gemini-3.5-flash",name:"Gemini 3.5 Flash",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:1.5,output:9,cacheRead:.15,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"gemini-flash-latest":{id:"gemini-flash-latest",name:"Gemini Flash Latest",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:1.5,output:9,cacheRead:.15,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"gemini-flash-lite-latest":{id:"gemini-flash-lite-latest",name:"Gemini Flash-Lite Latest",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:.25,output:1.5,cacheRead:.025,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"gemma-4-26b-a4b-it":{id:"gemma-4-26b-a4b-it",name:"Gemma 4 26B A4B IT",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:32768,thinkingLevelMap:{off:null,minimal:"MINIMAL",low:null,medium:null,high:"HIGH"}},"gemma-4-31b-it":{id:"gemma-4-31b-it",name:"Gemma 4 31B IT",api:"google-generative-ai",provider:"google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:32768,thinkingLevelMap:{off:null,minimal:"MINIMAL",low:null,medium:null,high:"HIGH"}}};var aC=sC;var lC={"gemini-2.5-flash":{id:"gemini-2.5-flash",name:"Gemini 2.5 Flash",api:"google-vertex",provider:"google-vertex",baseUrl:"https://{location}-aiplatform.googleapis.com",reasoning:!0,input:["text","image"],cost:{input:.3,output:2.5,cacheRead:.03,cacheWrite:0},contextWindow:1048576,maxTokens:65536},"gemini-2.5-flash-lite":{id:"gemini-2.5-flash-lite",name:"Gemini 2.5 Flash-Lite",api:"google-vertex",provider:"google-vertex",baseUrl:"https://{location}-aiplatform.googleapis.com",reasoning:!0,input:["text","image"],cost:{input:.1,output:.4,cacheRead:.01,cacheWrite:0},contextWindow:1048576,maxTokens:65536},"gemini-2.5-pro":{id:"gemini-2.5-pro",name:"Gemini 2.5 Pro",api:"google-vertex",provider:"google-vertex",baseUrl:"https://{location}-aiplatform.googleapis.com",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:1048576,maxTokens:65536},"gemini-3-flash-preview":{id:"gemini-3-flash-preview",name:"Gemini 3 Flash Preview",api:"google-vertex",provider:"google-vertex",baseUrl:"https://{location}-aiplatform.googleapis.com",reasoning:!0,input:["text","image"],cost:{input:.5,output:3,cacheRead:.05,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"gemini-3.1-flash-lite":{id:"gemini-3.1-flash-lite",name:"Gemini 3.1 Flash Lite",api:"google-vertex",provider:"google-vertex",baseUrl:"https://{location}-aiplatform.googleapis.com",reasoning:!0,input:["text","image"],cost:{input:.25,output:1.5,cacheRead:.025,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",api:"google-vertex",provider:"google-vertex",baseUrl:"https://{location}-aiplatform.googleapis.com",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null,minimal:null,low:"LOW",medium:null,high:"HIGH"}},"gemini-3.1-pro-preview-customtools":{id:"gemini-3.1-pro-preview-customtools",name:"Gemini 3.1 Pro Preview Custom Tools",api:"google-vertex",provider:"google-vertex",baseUrl:"https://{location}-aiplatform.googleapis.com",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null,minimal:null,low:"LOW",medium:null,high:"HIGH"}},"gemini-3.5-flash":{id:"gemini-3.5-flash",name:"Gemini 3.5 Flash",api:"google-vertex",provider:"google-vertex",baseUrl:"https://{location}-aiplatform.googleapis.com",reasoning:!0,input:["text","image"],cost:{input:1.5,output:9,cacheRead:.15,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"gemini-flash-latest":{id:"gemini-flash-latest",name:"Gemini Flash Latest",api:"google-vertex",provider:"google-vertex",baseUrl:"https://{location}-aiplatform.googleapis.com",reasoning:!0,input:["text","image"],cost:{input:1.5,output:9,cacheRead:.15,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"gemini-flash-lite-latest":{id:"gemini-flash-lite-latest",name:"Gemini Flash-Lite Latest",api:"google-vertex",provider:"google-vertex",baseUrl:"https://{location}-aiplatform.googleapis.com",reasoning:!0,input:["text","image"],cost:{input:.25,output:1.5,cacheRead:.025,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}}};var cC=lC;var uC={"llama-3.1-8b-instant":{id:"llama-3.1-8b-instant",name:"Llama 3.1 8B",api:"openai-completions",provider:"groq",baseUrl:"https://api.groq.com/openai/v1",reasoning:!1,input:["text"],cost:{input:.05,output:.08,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:131072},"llama-3.3-70b-versatile":{id:"llama-3.3-70b-versatile",name:"Llama 3.3 70B",api:"openai-completions",provider:"groq",baseUrl:"https://api.groq.com/openai/v1",reasoning:!1,input:["text"],cost:{input:.59,output:.79,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768},"meta-llama/llama-4-scout-17b-16e-instruct":{id:"meta-llama/llama-4-scout-17b-16e-instruct",name:"Llama 4 Scout 17B 16E",api:"openai-completions",provider:"groq",baseUrl:"https://api.groq.com/openai/v1",reasoning:!1,input:["text","image"],cost:{input:.11,output:.34,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:8192},"openai/gpt-oss-120b":{id:"openai/gpt-oss-120b",name:"GPT OSS 120B",api:"openai-completions",provider:"groq",baseUrl:"https://api.groq.com/openai/v1",reasoning:!0,input:["text"],cost:{input:.15,output:.6,cacheRead:.075,cacheWrite:0},contextWindow:131072,maxTokens:65536},"openai/gpt-oss-20b":{id:"openai/gpt-oss-20b",name:"GPT OSS 20B",api:"openai-completions",provider:"groq",baseUrl:"https://api.groq.com/openai/v1",reasoning:!0,input:["text"],cost:{input:.075,output:.3,cacheRead:.0375,cacheWrite:0},contextWindow:131072,maxTokens:65536},"openai/gpt-oss-safeguard-20b":{id:"openai/gpt-oss-safeguard-20b",name:"Safety GPT OSS 20B",api:"openai-completions",provider:"groq",baseUrl:"https://api.groq.com/openai/v1",reasoning:!0,input:["text"],cost:{input:.075,output:.3,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:65536},"qwen/qwen3-32b":{id:"qwen/qwen3-32b",name:"Qwen3-32B",api:"openai-completions",provider:"groq",baseUrl:"https://api.groq.com/openai/v1",reasoning:!0,input:["text"],cost:{input:.29,output:.59,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:40960,thinkingLevelMap:{minimal:null,low:null,medium:null,high:"default"}}};var dC=uC;var pC={"MiniMaxAI/MiniMax-M2":{id:"MiniMaxAI/MiniMax-M2",name:"MiniMax-M2",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:204800,maxTokens:128e3},"MiniMaxAI/MiniMax-M2.1":{id:"MiniMaxAI/MiniMax-M2.1",name:"MiniMax-M2.1",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:204800,maxTokens:131072},"MiniMaxAI/MiniMax-M2.5":{id:"MiniMaxAI/MiniMax-M2.5",name:"MiniMax-M2.5",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.03,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:204800,maxTokens:131072},"MiniMaxAI/MiniMax-M2.7":{id:"MiniMaxAI/MiniMax-M2.7",name:"MiniMax-M2.7",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:204800,maxTokens:131072},"MiniMaxAI/MiniMax-M3":{id:"MiniMaxAI/MiniMax-M3",name:"MiniMax-M3",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.3,output:1.2,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:524288,maxTokens:128e3},"Qwen/Qwen3-235B-A22B":{id:"Qwen/Qwen3-235B-A22B",name:"Qwen3 235B-A22B",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.2,output:.8,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:40960,maxTokens:16384},"Qwen/Qwen3-235B-A22B-Thinking-2507":{id:"Qwen/Qwen3-235B-A22B-Thinking-2507",name:"Qwen3-235B-A22B-Thinking-2507",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.3,output:3,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:131072},"Qwen/Qwen3-32B":{id:"Qwen/Qwen3-32B",name:"Qwen3 32B",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.29,output:.59,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:131072,maxTokens:16384},"Qwen/Qwen3-Coder-30B-A3B-Instruct":{id:"Qwen/Qwen3-Coder-30B-A3B-Instruct",name:"Qwen3-Coder 30B-A3B Instruct",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!1,input:["text"],cost:{input:.07,output:.26,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:65536},"Qwen/Qwen3-Coder-480B-A35B-Instruct":{id:"Qwen/Qwen3-Coder-480B-A35B-Instruct",name:"Qwen3-Coder-480B-A35B-Instruct",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!1,input:["text"],cost:{input:2,output:2,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:66536},"Qwen/Qwen3-Coder-Next":{id:"Qwen/Qwen3-Coder-Next",name:"Qwen3-Coder-Next",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!1,input:["text"],cost:{input:.2,output:1.5,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:65536},"Qwen/Qwen3-Next-80B-A3B-Instruct":{id:"Qwen/Qwen3-Next-80B-A3B-Instruct",name:"Qwen3-Next-80B-A3B-Instruct",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!1,input:["text"],cost:{input:.25,output:1,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:66536},"Qwen/Qwen3-Next-80B-A3B-Thinking":{id:"Qwen/Qwen3-Next-80B-A3B-Thinking",name:"Qwen3-Next-80B-A3B-Thinking",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!1,input:["text"],cost:{input:.3,output:2,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:131072},"Qwen/Qwen3.5-122B-A10B":{id:"Qwen/Qwen3.5-122B-A10B",name:"Qwen3.5 122B-A10B",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.4,output:3.2,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:65536},"Qwen/Qwen3.5-27B":{id:"Qwen/Qwen3.5-27B",name:"Qwen3.5 27B",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.3,output:2.4,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:65536},"Qwen/Qwen3.5-35B-A3B":{id:"Qwen/Qwen3.5-35B-A3B",name:"Qwen3.5 35B-A3B",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:65536},"Qwen/Qwen3.5-397B-A17B":{id:"Qwen/Qwen3.5-397B-A17B",name:"Qwen3.5-397B-A17B",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.6,output:3.6,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:32768},"Qwen/Qwen3.5-9B":{id:"Qwen/Qwen3.5-9B",name:"Qwen3.5 9B",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.17,output:.25,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:65536},"Qwen/Qwen3.6-27B":{id:"Qwen/Qwen3.6-27B",name:"Qwen3.6 27B",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.47,output:3.19,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:65536},"Qwen/Qwen3.6-35B-A3B":{id:"Qwen/Qwen3.6-35B-A3B",name:"Qwen3.6 35B-A3B",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.15,output:.95,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:65536},"XiaomiMiMo/MiMo-V2-Flash":{id:"XiaomiMiMo/MiMo-V2-Flash",name:"MiMo-V2-Flash",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.1,output:.3,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:4096},"XiaomiMiMo/MiMo-V2.5-Pro":{id:"XiaomiMiMo/MiMo-V2.5-Pro",name:"MiMo-V2.5-Pro",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:1,output:3,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:1048576,maxTokens:131072},"deepseek-ai/DeepSeek-R1":{id:"deepseek-ai/DeepSeek-R1",name:"DeepSeek-R1",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.7,output:2.5,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:64e3,maxTokens:32768},"deepseek-ai/DeepSeek-R1-0528":{id:"deepseek-ai/DeepSeek-R1-0528",name:"DeepSeek-R1-0528",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:3,output:5,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:163840,maxTokens:163840},"deepseek-ai/DeepSeek-V3.2":{id:"deepseek-ai/DeepSeek-V3.2",name:"DeepSeek-V3.2",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.28,output:.4,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:163840,maxTokens:65536},"deepseek-ai/DeepSeek-V4-Flash":{id:"deepseek-ai/DeepSeek-V4-Flash",name:"DeepSeek V4 Flash",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.14,output:.28,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:1048576,maxTokens:384e3},"deepseek-ai/DeepSeek-V4-Pro":{id:"deepseek-ai/DeepSeek-V4-Pro",name:"DeepSeek V4 Pro",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.435,output:.87,cacheRead:.003625,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:1048576,maxTokens:393216},"google/gemma-4-26B-A4B-it":{id:"google/gemma-4-26B-A4B-it",name:"Gemma 4 26B A4B IT",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.13,output:.4,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:32768},"google/gemma-4-31B-it":{id:"google/gemma-4-31B-it",name:"Gemma 4 31B IT",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.14,output:.4,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:32768},"meta-llama/Llama-3.3-70B-Instruct":{id:"meta-llama/Llama-3.3-70B-Instruct",name:"Llama-3.3-70B-Instruct",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!1,input:["text"],cost:{input:.59,output:.79,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:131072,maxTokens:4096},"moonshotai/Kimi-K2-Instruct":{id:"moonshotai/Kimi-K2-Instruct",name:"Kimi-K2-Instruct",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!1,input:["text"],cost:{input:1,output:3,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:131072,maxTokens:16384},"moonshotai/Kimi-K2-Instruct-0905":{id:"moonshotai/Kimi-K2-Instruct-0905",name:"Kimi-K2-Instruct-0905",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!1,input:["text"],cost:{input:1,output:3,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:16384},"moonshotai/Kimi-K2-Thinking":{id:"moonshotai/Kimi-K2-Thinking",name:"Kimi-K2-Thinking",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.6,output:2.5,cacheRead:.15,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:262144},"moonshotai/Kimi-K2.5":{id:"moonshotai/Kimi-K2.5",name:"Kimi-K2.5",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.6,output:3,cacheRead:.1,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:262144},"moonshotai/Kimi-K2.6":{id:"moonshotai/Kimi-K2.6",name:"Kimi-K2.6",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.16,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:262144},"moonshotai/Kimi-K2.7-Code":{id:"moonshotai/Kimi-K2.7-Code",name:"Kimi K2.7 Code",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:262144},"openai/gpt-oss-120b":{id:"openai/gpt-oss-120b",name:"GPT OSS 120B",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.25,output:.69,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:131072,maxTokens:32768},"openai/gpt-oss-20b":{id:"openai/gpt-oss-20b",name:"GPT OSS 20B",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.1,output:.5,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:131072,maxTokens:32768},"stepfun-ai/Step-3.5-Flash":{id:"stepfun-ai/Step-3.5-Flash",name:"Step 3.5 Flash",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.1,output:.3,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:256e3},"stepfun-ai/Step-3.7-Flash":{id:"stepfun-ai/Step-3.7-Flash",name:"Step 3.7 Flash",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.2,output:1.15,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:256e3},"zai-org/GLM-4.5":{id:"zai-org/GLM-4.5",name:"GLM-4.5",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.6,output:2.2,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:131072,maxTokens:98304},"zai-org/GLM-4.5-Air":{id:"zai-org/GLM-4.5-Air",name:"GLM-4.5-Air",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.13,output:.85,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:131072,maxTokens:98304},"zai-org/GLM-4.5V":{id:"zai-org/GLM-4.5V",name:"GLM-4.5V",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text","image"],cost:{input:.6,output:1.8,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:65536,maxTokens:16384},"zai-org/GLM-4.6":{id:"zai-org/GLM-4.6",name:"GLM-4.6",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.55,output:2.2,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:204800,maxTokens:131072},"zai-org/GLM-4.7":{id:"zai-org/GLM-4.7",name:"GLM-4.7",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:.6,output:2.2,cacheRead:.11,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:204800,maxTokens:131072},"zai-org/GLM-4.7-Flash":{id:"zai-org/GLM-4.7-Flash",name:"GLM-4.7-Flash",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:2e5,maxTokens:128e3},"zai-org/GLM-5":{id:"zai-org/GLM-5",name:"GLM-5",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:1,output:3.2,cacheRead:.2,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:202752,maxTokens:131072},"zai-org/GLM-5.1":{id:"zai-org/GLM-5.1",name:"GLM-5.1",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:1,output:3.2,cacheRead:.2,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:202752,maxTokens:131072},"zai-org/GLM-5.2":{id:"zai-org/GLM-5.2",name:"GLM-5.2",api:"openai-completions",provider:"huggingface",baseUrl:"https://router.huggingface.co/v1",reasoning:!0,input:["text"],cost:{input:1.4,output:4.4,cacheRead:0,cacheWrite:0},compat:{supportsDeveloperRole:!1},contextWindow:262144,maxTokens:131072}};var mC=pC;var hC={k2p7:{id:"k2p7",name:"Kimi K2.7 Code",api:"anthropic-messages",provider:"kimi-coding",baseUrl:"https://api.kimi.com/coding",headers:{"User-Agent":"KimiCLI/1.5"},compat:{forceAdaptiveThinking:!0},reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.19,cacheWrite:0},contextWindow:262144,maxTokens:32768},k3:{id:"k3",name:"Kimi K3",api:"anthropic-messages",provider:"kimi-coding",baseUrl:"https://api.kimi.com/coding",headers:{"User-Agent":"KimiCLI/1.5"},compat:{allowEmptySignature:!0,forceAdaptiveThinking:!0},reasoning:!0,thinkingLevelMap:{off:null,minimal:null,low:null,medium:null,high:null,xhigh:null,max:"max"},input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:0},contextWindow:1048576,maxTokens:131072},"kimi-for-coding-highspeed":{id:"kimi-for-coding-highspeed",name:"Kimi For Coding HighSpeed",api:"anthropic-messages",provider:"kimi-coding",baseUrl:"https://api.kimi.com/coding",headers:{"User-Agent":"KimiCLI/1.5"},compat:{forceAdaptiveThinking:!0},reasoning:!0,input:["text","image"],cost:{input:1.9,output:8,cacheRead:.38,cacheWrite:0},contextWindow:262144,maxTokens:32768}};var gC=hC;var fC={"MiniMax-M2.7":{id:"MiniMax-M2.7",name:"MiniMax-M2.7",api:"anthropic-messages",provider:"minimax",baseUrl:"https://api.minimax.io/anthropic",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:.375},contextWindow:204800,maxTokens:131072},"MiniMax-M2.7-highspeed":{id:"MiniMax-M2.7-highspeed",name:"MiniMax-M2.7-highspeed",api:"anthropic-messages",provider:"minimax",baseUrl:"https://api.minimax.io/anthropic",reasoning:!0,input:["text"],cost:{input:.6,output:2.4,cacheRead:.06,cacheWrite:.375},contextWindow:204800,maxTokens:131072},"MiniMax-M3":{id:"MiniMax-M3",name:"MiniMax-M3",api:"anthropic-messages",provider:"minimax",baseUrl:"https://api.minimax.io/anthropic",reasoning:!0,input:["text","image"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},contextWindow:1e6,maxTokens:128e3}};var vC=fC;var bC={"MiniMax-M2.7":{id:"MiniMax-M2.7",name:"MiniMax-M2.7",api:"anthropic-messages",provider:"minimax-cn",baseUrl:"https://api.minimaxi.com/anthropic",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:.375},contextWindow:204800,maxTokens:131072},"MiniMax-M2.7-highspeed":{id:"MiniMax-M2.7-highspeed",name:"MiniMax-M2.7-highspeed",api:"anthropic-messages",provider:"minimax-cn",baseUrl:"https://api.minimaxi.com/anthropic",reasoning:!0,input:["text"],cost:{input:.6,output:2.4,cacheRead:.06,cacheWrite:.375},contextWindow:204800,maxTokens:131072},"MiniMax-M3":{id:"MiniMax-M3",name:"MiniMax-M3",api:"anthropic-messages",provider:"minimax-cn",baseUrl:"https://api.minimaxi.com/anthropic",reasoning:!0,input:["text","image"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},contextWindow:1e6,maxTokens:128e3}};var xC=bC;var yC={"codestral-latest":{id:"codestral-latest",name:"Codestral (latest)",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.3,output:.9,cacheRead:.03,cacheWrite:0},contextWindow:256e3,maxTokens:4096},"devstral-2512":{id:"devstral-2512",name:"Devstral 2",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.4,output:2,cacheRead:.04,cacheWrite:0},contextWindow:262144,maxTokens:262144},"devstral-latest":{id:"devstral-latest",name:"Devstral 2",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.4,output:2,cacheRead:.04,cacheWrite:0},contextWindow:262144,maxTokens:262144},"devstral-medium-2507":{id:"devstral-medium-2507",name:"Devstral Medium",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.4,output:2,cacheRead:.04,cacheWrite:0},contextWindow:128e3,maxTokens:128e3},"devstral-medium-latest":{id:"devstral-medium-latest",name:"Devstral 2 (latest)",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.4,output:2,cacheRead:.04,cacheWrite:0},contextWindow:262144,maxTokens:262144},"devstral-small-2505":{id:"devstral-small-2505",name:"Devstral Small 2505",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.1,output:.3,cacheRead:.01,cacheWrite:0},contextWindow:128e3,maxTokens:128e3},"devstral-small-2507":{id:"devstral-small-2507",name:"Devstral Small",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.1,output:.3,cacheRead:.01,cacheWrite:0},contextWindow:128e3,maxTokens:128e3},"labs-devstral-small-2512":{id:"labs-devstral-small-2512",name:"Devstral Small 2",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"magistral-medium-latest":{id:"magistral-medium-latest",name:"Magistral Medium (latest)",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!0,input:["text"],cost:{input:2,output:5,cacheRead:.2,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"magistral-small":{id:"magistral-small",name:"Magistral Small",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!0,input:["text"],cost:{input:.5,output:1.5,cacheRead:.05,cacheWrite:0},contextWindow:128e3,maxTokens:128e3},"ministral-3b-latest":{id:"ministral-3b-latest",name:"Ministral 3B (latest)",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.04,output:.04,cacheRead:.004,cacheWrite:0},contextWindow:128e3,maxTokens:128e3},"ministral-8b-latest":{id:"ministral-8b-latest",name:"Ministral 8B (latest)",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.1,output:.1,cacheRead:.01,cacheWrite:0},contextWindow:128e3,maxTokens:128e3},"mistral-large-2411":{id:"mistral-large-2411",name:"Mistral Large 2.1",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:2,output:6,cacheRead:.2,cacheWrite:0},contextWindow:131072,maxTokens:16384},"mistral-large-2512":{id:"mistral-large-2512",name:"Mistral Large 3",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text","image"],cost:{input:.5,output:1.5,cacheRead:.05,cacheWrite:0},contextWindow:262144,maxTokens:262144},"mistral-large-latest":{id:"mistral-large-latest",name:"Mistral Large (latest)",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text","image"],cost:{input:.5,output:1.5,cacheRead:.05,cacheWrite:0},contextWindow:262144,maxTokens:262144},"mistral-medium-2505":{id:"mistral-medium-2505",name:"Mistral Medium 3",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text","image"],cost:{input:.4,output:2,cacheRead:.04,cacheWrite:0},contextWindow:131072,maxTokens:131072},"mistral-medium-2508":{id:"mistral-medium-2508",name:"Mistral Medium 3.1",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text","image"],cost:{input:.4,output:2,cacheRead:.04,cacheWrite:0},contextWindow:262144,maxTokens:262144},"mistral-medium-2604":{id:"mistral-medium-2604",name:"Mistral Medium 3.5",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!0,input:["text","image"],cost:{input:1.5,output:7.5,cacheRead:.15,cacheWrite:0},contextWindow:262144,maxTokens:262144},"mistral-medium-3.5":{id:"mistral-medium-3.5",name:"Mistral Medium 3.5",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!0,input:["text","image"],cost:{input:1.5,output:7.5,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:262144},"mistral-medium-latest":{id:"mistral-medium-latest",name:"Mistral Medium (latest)",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!0,input:["text","image"],cost:{input:1.5,output:7.5,cacheRead:.15,cacheWrite:0},contextWindow:262144,maxTokens:262144},"mistral-nemo":{id:"mistral-nemo",name:"Mistral Nemo",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.15,output:.15,cacheRead:.015,cacheWrite:0},contextWindow:128e3,maxTokens:128e3},"mistral-small-2506":{id:"mistral-small-2506",name:"Mistral Small 3.2",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text","image"],cost:{input:.1,output:.3,cacheRead:.01,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"mistral-small-2603":{id:"mistral-small-2603",name:"Mistral Small 4",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!0,input:["text","image"],cost:{input:.15,output:.6,cacheRead:.015,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"mistral-small-latest":{id:"mistral-small-latest",name:"Mistral Small (latest)",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!0,input:["text","image"],cost:{input:.15,output:.6,cacheRead:.015,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"open-mistral-7b":{id:"open-mistral-7b",name:"Mistral 7B",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.25,output:.25,cacheRead:.025,cacheWrite:0},contextWindow:8e3,maxTokens:8e3},"open-mistral-nemo":{id:"open-mistral-nemo",name:"Open Mistral Nemo",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.15,output:.15,cacheRead:.015,cacheWrite:0},contextWindow:128e3,maxTokens:128e3},"open-mixtral-8x22b":{id:"open-mixtral-8x22b",name:"Mixtral 8x22B",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:2,output:6,cacheRead:.2,cacheWrite:0},contextWindow:64e3,maxTokens:64e3},"open-mixtral-8x7b":{id:"open-mixtral-8x7b",name:"Mixtral 8x7B",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text"],cost:{input:.7,output:.7,cacheRead:.07,cacheWrite:0},contextWindow:32e3,maxTokens:32e3},"pixtral-12b":{id:"pixtral-12b",name:"Pixtral 12B",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text","image"],cost:{input:.15,output:.15,cacheRead:.015,cacheWrite:0},contextWindow:128e3,maxTokens:128e3},"pixtral-large-latest":{id:"pixtral-large-latest",name:"Pixtral Large (latest)",api:"mistral-conversations",provider:"mistral",baseUrl:"https://api.mistral.ai",reasoning:!1,input:["text","image"],cost:{input:2,output:6,cacheRead:.2,cacheWrite:0},contextWindow:128e3,maxTokens:128e3}};var wC=yC;var SC={"kimi-k2-0711-preview":{id:"kimi-k2-0711-preview",name:"Kimi K2 0711",api:"openai-completions",provider:"moonshotai",baseUrl:"https://api.moonshot.ai/v1",reasoning:!1,input:["text"],cost:{input:.6,output:2.5,cacheRead:.15,cacheWrite:0},contextWindow:131072,maxTokens:16384,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2-0905-preview":{id:"kimi-k2-0905-preview",name:"Kimi K2 0905",api:"openai-completions",provider:"moonshotai",baseUrl:"https://api.moonshot.ai/v1",reasoning:!1,input:["text"],cost:{input:.6,output:2.5,cacheRead:.15,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2-thinking":{id:"kimi-k2-thinking",name:"Kimi K2 Thinking",api:"openai-completions",provider:"moonshotai",baseUrl:"https://api.moonshot.ai/v1",reasoning:!0,input:["text"],cost:{input:.6,output:2.5,cacheRead:.15,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2-thinking-turbo":{id:"kimi-k2-thinking-turbo",name:"Kimi K2 Thinking Turbo",api:"openai-completions",provider:"moonshotai",baseUrl:"https://api.moonshot.ai/v1",reasoning:!0,input:["text"],cost:{input:1.15,output:8,cacheRead:.15,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2-turbo-preview":{id:"kimi-k2-turbo-preview",name:"Kimi K2 Turbo",api:"openai-completions",provider:"moonshotai",baseUrl:"https://api.moonshot.ai/v1",reasoning:!1,input:["text"],cost:{input:2.4,output:10,cacheRead:.6,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2.5":{id:"kimi-k2.5",name:"Kimi K2.5",api:"openai-completions",provider:"moonshotai",baseUrl:"https://api.moonshot.ai/v1",reasoning:!0,input:["text","image"],cost:{input:.6,output:3,cacheRead:.1,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2.6":{id:"kimi-k2.6",name:"Kimi K2.6",api:"openai-completions",provider:"moonshotai",baseUrl:"https://api.moonshot.ai/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.16,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2.7-code":{id:"kimi-k2.7-code",name:"Kimi K2.7 Code",api:"openai-completions",provider:"moonshotai",baseUrl:"https://api.moonshot.ai/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.19,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"},thinkingLevelMap:{off:null}},"kimi-k2.7-code-highspeed":{id:"kimi-k2.7-code-highspeed",name:"Kimi K2.7 Code HighSpeed",api:"openai-completions",provider:"moonshotai",baseUrl:"https://api.moonshot.ai/v1",reasoning:!0,input:["text","image"],cost:{input:1.9,output:8,cacheRead:.38,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"},thinkingLevelMap:{off:null}},"kimi-k3":{id:"kimi-k3",name:"Kimi K3",api:"openai-completions",provider:"moonshotai",baseUrl:"https://api.moonshot.ai/v1",reasoning:!0,thinkingLevelMap:{off:null,minimal:null,low:null,medium:null,high:null,xhigh:null,max:"max"},input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:0},contextWindow:1048576,maxTokens:131072,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek",requiresReasoningContentOnAssistantMessages:!0,deferredToolsMode:"kimi"}}};var kC=SC;var TC={"kimi-k2-0711-preview":{id:"kimi-k2-0711-preview",name:"Kimi K2 0711",api:"openai-completions",provider:"moonshotai-cn",baseUrl:"https://api.moonshot.cn/v1",reasoning:!1,input:["text"],cost:{input:.6,output:2.5,cacheRead:.15,cacheWrite:0},contextWindow:131072,maxTokens:16384,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2-0905-preview":{id:"kimi-k2-0905-preview",name:"Kimi K2 0905",api:"openai-completions",provider:"moonshotai-cn",baseUrl:"https://api.moonshot.cn/v1",reasoning:!1,input:["text"],cost:{input:.6,output:2.5,cacheRead:.15,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2-thinking":{id:"kimi-k2-thinking",name:"Kimi K2 Thinking",api:"openai-completions",provider:"moonshotai-cn",baseUrl:"https://api.moonshot.cn/v1",reasoning:!0,input:["text"],cost:{input:.6,output:2.5,cacheRead:.15,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2-thinking-turbo":{id:"kimi-k2-thinking-turbo",name:"Kimi K2 Thinking Turbo",api:"openai-completions",provider:"moonshotai-cn",baseUrl:"https://api.moonshot.cn/v1",reasoning:!0,input:["text"],cost:{input:1.15,output:8,cacheRead:.15,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2-turbo-preview":{id:"kimi-k2-turbo-preview",name:"Kimi K2 Turbo",api:"openai-completions",provider:"moonshotai-cn",baseUrl:"https://api.moonshot.cn/v1",reasoning:!1,input:["text"],cost:{input:2.4,output:10,cacheRead:.6,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2.5":{id:"kimi-k2.5",name:"Kimi K2.5",api:"openai-completions",provider:"moonshotai-cn",baseUrl:"https://api.moonshot.cn/v1",reasoning:!0,input:["text","image"],cost:{input:.6,output:3,cacheRead:.1,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2.6":{id:"kimi-k2.6",name:"Kimi K2.6",api:"openai-completions",provider:"moonshotai-cn",baseUrl:"https://api.moonshot.cn/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.16,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"}},"kimi-k2.7-code":{id:"kimi-k2.7-code",name:"Kimi K2.7 Code",api:"openai-completions",provider:"moonshotai-cn",baseUrl:"https://api.moonshot.cn/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.19,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"},thinkingLevelMap:{off:null}},"kimi-k2.7-code-highspeed":{id:"kimi-k2.7-code-highspeed",name:"Kimi K2.7 Code HighSpeed",api:"openai-completions",provider:"moonshotai-cn",baseUrl:"https://api.moonshot.cn/v1",reasoning:!0,input:["text","image"],cost:{input:1.9,output:8,cacheRead:.38,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek"},thinkingLevelMap:{off:null}},"kimi-k3":{id:"kimi-k3",name:"Kimi K3",api:"openai-completions",provider:"moonshotai-cn",baseUrl:"https://api.moonshot.cn/v1",reasoning:!0,thinkingLevelMap:{off:null,minimal:null,low:null,medium:null,high:null,xhigh:null,max:"max"},input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:0},contextWindow:1048576,maxTokens:131072,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,thinkingFormat:"deepseek",requiresReasoningContentOnAssistantMessages:!0,deferredToolsMode:"kimi"}}};var CC=TC;var MC={"meta/llama-3.1-70b-instruct":{id:"meta/llama-3.1-70b-instruct",name:"Llama 3.1 70b Instruct",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!1,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:128e3,maxTokens:4096},"meta/llama-3.1-8b-instruct":{id:"meta/llama-3.1-8b-instruct",name:"Llama 3.1 8B Instruct",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!1,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:16e3,maxTokens:4096},"meta/llama-3.2-11b-vision-instruct":{id:"meta/llama-3.2-11b-vision-instruct",name:"Llama 3.2 11b Vision Instruct",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!1,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:128e3,maxTokens:4096},"meta/llama-3.2-90b-vision-instruct":{id:"meta/llama-3.2-90b-vision-instruct",name:"Llama-3.2-90B-Vision-Instruct",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!1,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:128e3,maxTokens:8192},"meta/llama-3.3-70b-instruct":{id:"meta/llama-3.3-70b-instruct",name:"Llama 3.3 70b Instruct",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!1,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:128e3,maxTokens:4096},"minimaxai/minimax-m3":{id:"minimaxai/minimax-m3",name:"MiniMax-M3",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:1e6,maxTokens:16384},"mistralai/mistral-large-3-675b-instruct-2512":{id:"mistralai/mistral-large-3-675b-instruct-2512",name:"Mistral Large 3 675B Instruct 2512",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!1,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:262144},"mistralai/mistral-small-4-119b-2603":{id:"mistralai/mistral-small-4-119b-2603",name:"mistral-small-4-119b-2603",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:128e3,maxTokens:8192},"moonshotai/kimi-k2.6":{id:"moonshotai/kimi-k2.6",name:"Kimi K2.6",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:262144},"nvidia/nemotron-3-nano-30b-a3b":{id:"nvidia/nemotron-3-nano-30b-a3b",name:"nemotron-3-nano-30b-a3b",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:131072,maxTokens:131072},"nvidia/nemotron-3-nano-omni-30b-a3b-reasoning":{id:"nvidia/nemotron-3-nano-omni-30b-a3b-reasoning",name:"Nemotron 3 Nano Omni",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:256e3,maxTokens:65536},"nvidia/nemotron-3-super-120b-a12b":{id:"nvidia/nemotron-3-super-120b-a12b",name:"Nemotron 3 Super",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text"],cost:{input:.2,output:.8,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:262144},"nvidia/nemotron-3-ultra-550b-a55b":{id:"nvidia/nemotron-3-ultra-550b-a55b",name:"Nemotron 3 Ultra 550B A55B",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text"],cost:{input:.5,output:2.5,cacheRead:.15,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:1e6,maxTokens:65536},"nvidia/nvidia-nemotron-nano-9b-v2":{id:"nvidia/nvidia-nemotron-nano-9b-v2",name:"nvidia-nemotron-nano-9b-v2",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:131072,maxTokens:131072},"openai/gpt-oss-120b":{id:"openai/gpt-oss-120b",name:"GPT-OSS-120B",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:128e3,maxTokens:8192},"openai/gpt-oss-20b":{id:"openai/gpt-oss-20b",name:"GPT OSS 20B",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:131072,maxTokens:32768},"qwen/qwen3.5-122b-a10b":{id:"qwen/qwen3.5-122b-a10b",name:"Qwen3.5 122B-A10B",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:65536},"stepfun-ai/step-3.5-flash":{id:"stepfun-ai/step-3.5-flash",name:"Step 3.5 Flash",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:256e3,maxTokens:16384},"stepfun-ai/step-3.7-flash":{id:"stepfun-ai/step-3.7-flash",name:"Step 3.7 Flash",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:256e3,maxTokens:16384},"z-ai/glm-5.2":{id:"z-ai/glm-5.2",name:"GLM-5.2",api:"openai-completions",provider:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1",headers:{"NVCF-POLL-SECONDS":"3600"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:1e6,maxTokens:131072}};var RC=MC;var PC={"gpt-4":{id:"gpt-4",name:"GPT-4",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text"],cost:{input:30,output:60,cacheRead:0,cacheWrite:0},contextWindow:8192,maxTokens:8192},"gpt-4-turbo":{id:"gpt-4-turbo",name:"GPT-4 Turbo",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:10,output:30,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:1047576,maxTokens:32768},"gpt-4.1-mini":{id:"gpt-4.1-mini",name:"GPT-4.1 mini",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:.4,output:1.6,cacheRead:.1,cacheWrite:0},contextWindow:1047576,maxTokens:32768},"gpt-4.1-nano":{id:"gpt-4.1-nano",name:"GPT-4.1 nano",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:.1,output:.4,cacheRead:.025,cacheWrite:0},contextWindow:1047576,maxTokens:32768},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"gpt-4o-2024-05-13":{id:"gpt-4o-2024-05-13",name:"GPT-4o (2024-05-13)",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:5,output:15,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"gpt-4o-2024-08-06":{id:"gpt-4o-2024-08-06",name:"GPT-4o (2024-08-06)",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"gpt-4o-2024-11-20":{id:"gpt-4o-2024-11-20",name:"GPT-4o (2024-11-20)",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"gpt-4o-mini":{id:"gpt-4o-mini",name:"GPT-4o mini",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:.15,output:.6,cacheRead:.075,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"gpt-5":{id:"gpt-5",name:"GPT-5",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5-chat-latest":{id:"gpt-5-chat-latest",name:"GPT-5 Chat Latest",api:"openai-responses",baseUrl:"https://api.openai.com/v1",provider:"openai",reasoning:!1,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{off:null}},"gpt-5-codex":{id:"gpt-5-codex",name:"GPT-5-Codex",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 Mini",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.025,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5-nano":{id:"gpt-5-nano",name:"GPT-5 Nano",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:.05,output:.4,cacheRead:.005,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5-pro":{id:"gpt-5-pro",name:"GPT-5 Pro",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:15,output:120,cacheRead:0,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1":{id:"gpt-5.1",name:"GPT-5.1",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:"none"}},"gpt-5.1-chat-latest":{id:"gpt-5.1-chat-latest",name:"GPT-5.1 Chat",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{off:null}},"gpt-5.1-codex":{id:"gpt-5.1-codex",name:"GPT-5.1 Codex",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1-codex-max":{id:"gpt-5.1-codex-max",name:"GPT-5.1 Codex Max",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1-codex-mini":{id:"gpt-5.1-codex-mini",name:"GPT-5.1 Codex mini",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.025,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.2":{id:"gpt-5.2",name:"GPT-5.2",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:"none",xhigh:"xhigh"}},"gpt-5.2-chat-latest":{id:"gpt-5.2-chat-latest",name:"GPT-5.2 Chat",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2 Codex",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.2-pro":{id:"gpt-5.2-pro",name:"GPT-5.2 Pro",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:21,output:168,cacheRead:0,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.3-chat-latest":{id:"gpt-5.3-chat-latest",name:"GPT-5.3 Chat (latest)",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.3-codex":{id:"gpt-5.3-codex",name:"GPT-5.3 Codex",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:"none",xhigh:"xhigh"}},"gpt-5.3-codex-spark":{id:"gpt-5.3-codex-spark",name:"GPT-5.3 Codex Spark",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:128e3,maxTokens:32e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:0,tiers:[{inputTokensAbove:272e3,input:5,output:22.5,cacheRead:.5,cacheWrite:0}]},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{off:"none",xhigh:"xhigh"},compat:{supportsToolSearch:!0}},"gpt-5.4-mini":{id:"gpt-5.4-mini",name:"GPT-5.4 mini",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:.75,output:4.5,cacheRead:.075,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:"none",xhigh:"xhigh"},compat:{supportsToolSearch:!0}},"gpt-5.4-nano":{id:"gpt-5.4-nano",name:"GPT-5.4 nano",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:.2,output:1.25,cacheRead:.02,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:"none",xhigh:"xhigh"}},"gpt-5.4-pro":{id:"gpt-5.4-pro",name:"GPT-5.4 Pro",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:30,output:180,cacheRead:0,cacheWrite:0,tiers:[{inputTokensAbove:272e3,input:60,output:270,cacheRead:0,cacheWrite:0}]},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"},compat:{supportsToolSearch:!0}},"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0,tiers:[{inputTokensAbove:272e3,input:10,output:45,cacheRead:1,cacheWrite:0}]},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{off:"none",xhigh:"xhigh",minimal:null},compat:{supportsToolSearch:!0}},"gpt-5.5-pro":{id:"gpt-5.5-pro",name:"GPT-5.5 Pro",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:30,output:180,cacheRead:0,cacheWrite:0,tiers:[{inputTokensAbove:272e3,input:60,output:270,cacheRead:0,cacheWrite:0}]},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",minimal:null,low:null}},"gpt-5.6-luna":{id:"gpt-5.6-luna",name:"GPT-5.6 Luna",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1,output:6,cacheRead:.1,cacheWrite:1.25,tiers:[{inputTokensAbove:272e3,input:2,output:9,cacheRead:.2,cacheWrite:2.5}]},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{off:"none",xhigh:"xhigh",max:"max"},compat:{supportsToolSearch:!0}},"gpt-5.6-sol":{id:"gpt-5.6-sol",name:"GPT-5.6 Sol",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:6.25,tiers:[{inputTokensAbove:272e3,input:10,output:45,cacheRead:1,cacheWrite:12.5}]},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{off:"none",xhigh:"xhigh",max:"max"},compat:{supportsToolSearch:!0}},"gpt-5.6-terra":{id:"gpt-5.6-terra",name:"GPT-5.6 Terra",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:3.125,tiers:[{inputTokensAbove:272e3,input:5,output:22.5,cacheRead:.5,cacheWrite:6.25}]},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{off:"none",xhigh:"xhigh",max:"max"},compat:{supportsToolSearch:!0}},"gpt-realtime-2.1":{id:"gpt-realtime-2.1",name:"GPT-Realtime-2.1",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:4,output:24,cacheRead:.4,cacheWrite:0},contextWindow:128e3,maxTokens:32e3},o1:{id:"o1",name:"o1",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:15,output:60,cacheRead:7.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o1-pro":{id:"o1-pro",name:"o1-pro",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:150,output:600,cacheRead:0,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},o3:{id:"o3",name:"o3",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o3-deep-research":{id:"o3-deep-research",name:"o3-deep-research",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:10,output:40,cacheRead:2.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o3-mini":{id:"o3-mini",name:"o3-mini",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text"],cost:{input:1.1,output:4.4,cacheRead:.55,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o3-pro":{id:"o3-pro",name:"o3-pro",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:20,output:80,cacheRead:0,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o4-mini":{id:"o4-mini",name:"o4-mini",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.1,output:4.4,cacheRead:.275,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"o4-mini-deep-research":{id:"o4-mini-deep-research",name:"o4-mini-deep-research",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5}};var IC=PC;var EC={"gpt-5.3-codex-spark":{id:"gpt-5.3-codex-spark",name:"GPT-5.3 Codex Spark",api:"openai-codex-responses",provider:"openai-codex",baseUrl:"https://chatgpt.com/backend-api",reasoning:!0,input:["text"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:128e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",minimal:"low"}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",api:"openai-codex-responses",provider:"openai-codex",baseUrl:"https://chatgpt.com/backend-api",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:0,tiers:[{inputTokensAbove:272e3,input:5,output:22.5,cacheRead:.5,cacheWrite:0}]},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",minimal:"low"},compat:{supportsToolSearch:!0}},"gpt-5.4-mini":{id:"gpt-5.4-mini",name:"GPT-5.4 mini",api:"openai-codex-responses",provider:"openai-codex",baseUrl:"https://chatgpt.com/backend-api",reasoning:!0,input:["text","image"],cost:{input:.75,output:4.5,cacheRead:.075,cacheWrite:0},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",minimal:"low"},compat:{supportsToolSearch:!0}},"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",api:"openai-codex-responses",provider:"openai-codex",baseUrl:"https://chatgpt.com/backend-api",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0,tiers:[{inputTokensAbove:272e3,input:10,output:45,cacheRead:1,cacheWrite:0}]},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",minimal:"low"},compat:{supportsToolSearch:!0}},"gpt-5.6-luna":{id:"gpt-5.6-luna",name:"GPT-5.6 Luna",api:"openai-codex-responses",provider:"openai-codex",baseUrl:"https://chatgpt.com/backend-api",reasoning:!0,input:["text","image"],cost:{input:1,output:6,cacheRead:.1,cacheWrite:1.25,tiers:[{inputTokensAbove:272e3,input:2,output:9,cacheRead:.2,cacheWrite:2.5}]},contextWindow:372e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max",minimal:"low"},compat:{supportsToolSearch:!0}},"gpt-5.6-sol":{id:"gpt-5.6-sol",name:"GPT-5.6 Sol",api:"openai-codex-responses",provider:"openai-codex",baseUrl:"https://chatgpt.com/backend-api",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:6.25,tiers:[{inputTokensAbove:272e3,input:10,output:45,cacheRead:1,cacheWrite:12.5}]},contextWindow:372e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max",minimal:"low"},compat:{supportsToolSearch:!0}},"gpt-5.6-terra":{id:"gpt-5.6-terra",name:"GPT-5.6 Terra",api:"openai-codex-responses",provider:"openai-codex",baseUrl:"https://chatgpt.com/backend-api",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:3.125,tiers:[{inputTokensAbove:272e3,input:5,output:22.5,cacheRead:.5,cacheWrite:6.25}]},contextWindow:372e3,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max",minimal:"low"},compat:{supportsToolSearch:!0}}};var AC=EC;var _C={"big-pickle":{id:"big-pickle",name:"Big Pickle",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:2e5,maxTokens:32e3},"claude-fable-5":{id:"claude-fable-5",name:"Claude Fable 5",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0}},"claude-haiku-4-5":{id:"claude-haiku-4-5",name:"Claude Haiku 4.5",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3},"claude-opus-4-1":{id:"claude-opus-4-1",name:"Claude Opus 4.1",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:32e3},"claude-opus-4-5":{id:"claude-opus-4-5",name:"Claude Opus 4.5",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:2e5,maxTokens:64e3},"claude-opus-4-6":{id:"claude-opus-4-6",name:"Claude Opus 4.6",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"},compat:{forceAdaptiveThinking:!0}},"claude-opus-4-7":{id:"claude-opus-4-7",name:"Claude Opus 4.7",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0,supportsTemperature:!1}},"claude-opus-4-8":{id:"claude-opus-4-8",name:"Claude Opus 4.8",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0,supportsTemperature:!1}},"claude-sonnet-4":{id:"claude-sonnet-4",name:"Claude Sonnet 4",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3},"claude-sonnet-4-5":{id:"claude-sonnet-4-5",name:"Claude Sonnet 4.5",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3},"claude-sonnet-4-6":{id:"claude-sonnet-4-6",name:"Claude Sonnet 4.6",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:64e3,thinkingLevelMap:{max:"max"},compat:{forceAdaptiveThinking:!0}},"claude-sonnet-5":{id:"claude-sonnet-5",name:"Claude Sonnet 5",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0}},"deepseek-v4-flash":{id:"deepseek-v4-flash",name:"DeepSeek V4 Flash",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:.14,output:.28,cacheRead:.028,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens",supportsLongCacheRetention:!1,requiresReasoningContentOnAssistantMessages:!0},contextWindow:1e6,maxTokens:384e3,thinkingLevelMap:{minimal:null,low:null,medium:null,high:"high",max:"max"}},"deepseek-v4-flash-free":{id:"deepseek-v4-flash-free",name:"DeepSeek V4 Flash Free",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens",requiresReasoningContentOnAssistantMessages:!0},contextWindow:2e5,maxTokens:128e3,thinkingLevelMap:{minimal:null,low:null,medium:null,high:"high",max:"max"}},"deepseek-v4-pro":{id:"deepseek-v4-pro",name:"DeepSeek V4 Pro",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:1.74,output:3.84,cacheRead:.145,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens",supportsLongCacheRetention:!1,requiresReasoningContentOnAssistantMessages:!0},contextWindow:1e6,maxTokens:384e3,thinkingLevelMap:{minimal:null,low:null,medium:null,high:"high",max:"max"}},"gemini-3-flash":{id:"gemini-3-flash",name:"Gemini 3 Flash",api:"google-generative-ai",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:.5,output:3,cacheRead:.05,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"gemini-3.1-pro":{id:"gemini-3.1-pro",name:"Gemini 3.1 Pro Preview",api:"google-generative-ai",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null,minimal:null,low:"LOW",medium:null,high:"HIGH"}},"gemini-3.5-flash":{id:"gemini-3.5-flash",name:"Gemini 3.5 Flash",api:"google-generative-ai",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:1.5,output:9,cacheRead:.15,cacheWrite:0},contextWindow:1048576,maxTokens:65536,thinkingLevelMap:{off:null}},"glm-5":{id:"glm-5",name:"GLM-5",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:1,output:3.2,cacheRead:.2,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:204800,maxTokens:131072},"glm-5.1":{id:"glm-5.1",name:"GLM-5.1",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:1.4,output:4.4,cacheRead:.26,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:204800,maxTokens:131072},"glm-5.2":{id:"glm-5.2",name:"GLM-5.2",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:1.4,output:4.4,cacheRead:.26,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:1e6,maxTokens:131072},"gpt-5":{id:"gpt-5",name:"GPT-5",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:1.07,output:8.5,cacheRead:.107,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5-codex":{id:"gpt-5-codex",name:"GPT-5 Codex",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:1.07,output:8.5,cacheRead:.107,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5-nano":{id:"gpt-5-nano",name:"GPT-5 Nano",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:.05,output:.4,cacheRead:.005,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1":{id:"gpt-5.1",name:"GPT-5.1",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:1.07,output:8.5,cacheRead:.107,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1-codex":{id:"gpt-5.1-codex",name:"GPT-5.1 Codex",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:1.07,output:8.5,cacheRead:.107,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1-codex-max":{id:"gpt-5.1-codex-max",name:"GPT-5.1 Codex Max",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.1-codex-mini":{id:"gpt-5.1-codex-mini",name:"GPT-5.1 Codex Mini",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.025,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null}},"gpt-5.2":{id:"gpt-5.2",name:"GPT-5.2",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2 Codex",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.3-codex":{id:"gpt-5.3-codex",name:"GPT-5.3 Codex",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:272e3,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.4-mini":{id:"gpt-5.4-mini",name:"GPT-5.4 Mini",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:.75,output:4.5,cacheRead:.075,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.4-nano":{id:"gpt-5.4-nano",name:"GPT-5.4 Nano",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:.2,output:1.25,cacheRead:.02,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.4-pro":{id:"gpt-5.4-pro",name:"GPT-5.4 Pro",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:30,output:180,cacheRead:30,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh"}},"gpt-5.5-pro":{id:"gpt-5.5-pro",name:"GPT-5.5 Pro",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:30,output:180,cacheRead:30,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",minimal:null,low:null}},"gpt-5.6-luna":{id:"gpt-5.6-luna",name:"GPT-5.6 Luna",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:1,output:6,cacheRead:.1,cacheWrite:1.25},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"gpt-5.6-sol":{id:"gpt-5.6-sol",name:"GPT-5.6 Sol",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:6.25},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"gpt-5.6-terra":{id:"gpt-5.6-terra",name:"GPT-5.6 Terra",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:3.125},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"}},"grok-4.5":{id:"grok-4.5",name:"Grok 4.5",api:"openai-responses",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:2,output:6,cacheRead:.5,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:5e5,maxTokens:5e5},"grok-build-0.1":{id:"grok-build-0.1",name:"Grok Build 0.1",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:1,output:2,cacheRead:.2,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens"},contextWindow:256e3,maxTokens:256e3,thinkingLevelMap:{off:null,minimal:null,low:null,medium:null}},"hy3-free":{id:"hy3-free",name:"Hy3 Free",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:19e4,maxTokens:64e3},"kimi-k2.5":{id:"kimi-k2.5",name:"Kimi K2.5",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:.6,output:3,cacheRead:.08,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens",supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:65536},"kimi-k2.6":{id:"kimi-k2.6",name:"Kimi K2.6",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.16,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,thinkingFormat:"deepseek",supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:65536},"kimi-k2.7-code":{id:"kimi-k2.7-code",name:"Kimi K2.7 Code",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.19,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:262144,maxTokens:262144},"mimo-v2.5-free":{id:"mimo-v2.5-free",name:"MiMo V2.5 Free",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:2e5,maxTokens:32e3},"minimax-m2.5":{id:"minimax-m2.5",name:"MiniMax-M2.5",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:204800,maxTokens:131072},"minimax-m2.7":{id:"minimax-m2.7",name:"MiniMax-M2.7",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens",supportsLongCacheRetention:!1},contextWindow:204800,maxTokens:131072},"minimax-m3":{id:"minimax-m3",name:"MiniMax-M3",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text","image"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:512e3,maxTokens:128e3},"nemotron-3-ultra-free":{id:"nemotron-3-ultra-free",name:"Nemotron 3 Ultra Free",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:1e6,maxTokens:128e3},"north-mini-code-free":{id:"north-mini-code-free",name:"North Mini Code Free",api:"openai-completions",provider:"opencode",baseUrl:"https://opencode.ai/zen/v1",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:256e3,maxTokens:64e3},"qwen3.5-plus":{id:"qwen3.5-plus",name:"Qwen3.5 Plus",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:.2,output:1.2,cacheRead:.02,cacheWrite:.25},contextWindow:262144,maxTokens:65536},"qwen3.6-plus":{id:"qwen3.6-plus",name:"Qwen3.6 Plus",api:"anthropic-messages",provider:"opencode",baseUrl:"https://opencode.ai/zen",reasoning:!0,input:["text","image"],cost:{input:.5,output:3,cacheRead:.05,cacheWrite:.625},contextWindow:262144,maxTokens:65536}};var OC=_C;var LC={"deepseek-v4-flash":{id:"deepseek-v4-flash",name:"DeepSeek V4 Flash",api:"openai-completions",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text"],cost:{input:.14,output:.28,cacheRead:.0028,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens",requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},contextWindow:1e6,maxTokens:384e3,thinkingLevelMap:{minimal:null,low:null,medium:null,high:"high",max:"max"}},"deepseek-v4-pro":{id:"deepseek-v4-pro",name:"DeepSeek V4 Pro",api:"openai-completions",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text"],cost:{input:.435,output:.87,cacheRead:.003625,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens",requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},contextWindow:1e6,maxTokens:384e3,thinkingLevelMap:{minimal:null,low:null,medium:null,high:"high",max:"max"}},"glm-5.1":{id:"glm-5.1",name:"GLM-5.1",api:"openai-completions",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text"],cost:{input:1.4,output:4.4,cacheRead:.26,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:202752,maxTokens:32768},"glm-5.2":{id:"glm-5.2",name:"GLM-5.2",api:"openai-completions",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text"],cost:{input:1.4,output:4.4,cacheRead:.26,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:1e6,maxTokens:131072,thinkingLevelMap:{off:null,minimal:null,low:null,medium:null,high:"high",max:"max"}},"grok-4.5":{id:"grok-4.5",name:"Grok 4.5",api:"openai-responses",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text","image"],cost:{input:2,output:6,cacheRead:.5,cacheWrite:0},compat:{sessionAffinityFormat:"openai-nosession"},contextWindow:5e5,maxTokens:5e5},"kimi-k2.6":{id:"kimi-k2.6",name:"Kimi K2.6",api:"openai-completions",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.16,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,thinkingFormat:"deepseek",supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:65536,thinkingLevelMap:{minimal:null,low:null,medium:null}},"kimi-k2.7-code":{id:"kimi-k2.7-code",name:"Kimi K2.7 Code",api:"openai-completions",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.19,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:262144,maxTokens:262144},"kimi-k3":{id:"kimi-k3",name:"Kimi K3 (2x usage)",api:"openai-completions",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:1048576,maxTokens:131072},"mimo-v2.5":{id:"mimo-v2.5",name:"MiMo V2.5",api:"openai-completions",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text","image"],cost:{input:.14,output:.28,cacheRead:.0028,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:1e6,maxTokens:128e3},"mimo-v2.5-pro":{id:"mimo-v2.5-pro",name:"MiMo V2.5 Pro",api:"openai-completions",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text"],cost:{input:.435,output:.87,cacheRead:.003625,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:1048576,maxTokens:128e3},"minimax-m2.7":{id:"minimax-m2.7",name:"MiniMax-M2.7",api:"openai-completions",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,maxTokensField:"max_tokens"},contextWindow:204800,maxTokens:131072},"minimax-m3":{id:"minimax-m3",name:"MiniMax-M3",api:"anthropic-messages",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go",reasoning:!0,input:["text","image"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},contextWindow:1e6,maxTokens:131072},"qwen3.6-plus":{id:"qwen3.6-plus",name:"Qwen3.6 Plus",api:"openai-completions",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go/v1",reasoning:!0,input:["text","image"],cost:{input:.5,output:3,cacheRead:.05,cacheWrite:.625},compat:{supportsStore:!1,supportsDeveloperRole:!1,thinkingFormat:"qwen",maxTokensField:"max_tokens"},contextWindow:1e6,maxTokens:65536},"qwen3.7-max":{id:"qwen3.7-max",name:"Qwen3.7 Max",api:"anthropic-messages",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go",reasoning:!0,input:["text"],cost:{input:2.5,output:7.5,cacheRead:.5,cacheWrite:3.125},contextWindow:1e6,maxTokens:65536},"qwen3.7-plus":{id:"qwen3.7-plus",name:"Qwen3.7 Plus",api:"anthropic-messages",provider:"opencode-go",baseUrl:"https://opencode.ai/zen/go",reasoning:!0,input:["text","image"],cost:{input:.4,output:1.6,cacheRead:.04,cacheWrite:.5},contextWindow:1e6,maxTokens:65536}};var WC=LC;var FC={"ai21/jamba-large-1.7":{id:"ai21/jamba-large-1.7",name:"AI21: Jamba Large 1.7",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:2,output:8,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"aion-labs/aion-2.0":{id:"aion-labs/aion-2.0",name:"AionLabs: Aion-2.0",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.8,output:1.6,cacheRead:.2,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"aion-labs/aion-3.0":{id:"aion-labs/aion-3.0",name:"AionLabs: Aion-3.0",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:3,output:6,cacheRead:.75,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"aion-labs/aion-3.0-mini":{id:"aion-labs/aion-3.0-mini",name:"AionLabs: Aion-3.0-Mini",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.7,output:1.4,cacheRead:.18,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"amazon/nova-2-lite-v1":{id:"amazon/nova-2-lite-v1",name:"Amazon: Nova 2 Lite",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.3,output:2.5,cacheRead:0,cacheWrite:0},contextWindow:1e6,maxTokens:65535,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"amazon/nova-lite-v1":{id:"amazon/nova-lite-v1",name:"Amazon: Nova Lite 1.0",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.06,output:.24,cacheRead:0,cacheWrite:0},contextWindow:3e5,maxTokens:5120,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"amazon/nova-micro-v1":{id:"amazon/nova-micro-v1",name:"Amazon: Nova Micro 1.0",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.035,output:.14,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:5120,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"amazon/nova-premier-v1":{id:"amazon/nova-premier-v1",name:"Amazon: Nova Premier 1.0",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:2.5,output:12.5,cacheRead:.625,cacheWrite:0},contextWindow:1e6,maxTokens:32e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"amazon/nova-pro-v1":{id:"amazon/nova-pro-v1",name:"Amazon: Nova Pro 1.0",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.8,output:3.2,cacheRead:0,cacheWrite:0},contextWindow:3e5,maxTokens:5120,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"anthropic/claude-3-haiku":{id:"anthropic/claude-3-haiku",name:"Anthropic: Claude 3 Haiku",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.25,output:1.25,cacheRead:.03,cacheWrite:.3},contextWindow:2e5,maxTokens:4096,compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-fable-5":{id:"anthropic/claude-fable-5",name:"Anthropic: Claude Fable 5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-haiku-4.5":{id:"anthropic/claude-haiku-4.5",name:"Anthropic: Claude Haiku 4.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3,compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-opus-4":{id:"anthropic/claude-opus-4",name:"Anthropic: Claude Opus 4",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:32e3,compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-opus-4.1":{id:"anthropic/claude-opus-4.1",name:"Anthropic: Claude Opus 4.1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:32e3,compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-opus-4.5":{id:"anthropic/claude-opus-4.5",name:"Anthropic: Claude Opus 4.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:2e5,maxTokens:64e3,compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-opus-4.6":{id:"anthropic/claude-opus-4.6",name:"Anthropic: Claude Opus 4.6",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"},compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-opus-4.7":{id:"anthropic/claude-opus-4.7",name:"Anthropic: Claude Opus 4.7",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-opus-4.7-fast":{id:"anthropic/claude-opus-4.7-fast",name:"Anthropic: Claude Opus 4.7 (Fast)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:30,output:150,cacheRead:3,cacheWrite:37.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-opus-4.8":{id:"anthropic/claude-opus-4.8",name:"Anthropic: Claude Opus 4.8",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-opus-4.8-fast":{id:"anthropic/claude-opus-4.8-fast",name:"Anthropic: Claude Opus 4.8 (Fast)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-sonnet-4":{id:"anthropic/claude-sonnet-4",name:"Anthropic: Claude Sonnet 4",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3,compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-sonnet-4.5":{id:"anthropic/claude-sonnet-4.5",name:"Anthropic: Claude Sonnet 4.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:64e3,compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-sonnet-4.6":{id:"anthropic/claude-sonnet-4.6",name:"Anthropic: Claude Sonnet 4.6",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"},compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"anthropic/claude-sonnet-5":{id:"anthropic/claude-sonnet-5",name:"Anthropic: Claude Sonnet 5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter",cacheControlFormat:"anthropic"}},"arcee-ai/trinity-large-thinking":{id:"arcee-ai/trinity-large-thinking",name:"Arcee AI: Trinity Large Thinking",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.25,output:.8,cacheRead:.06,cacheWrite:0},contextWindow:262144,maxTokens:8e4,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"arcee-ai/virtuoso-large":{id:"arcee-ai/virtuoso-large",name:"Arcee AI: Virtuoso Large",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.75,output:1.2,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:64e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},auto:{id:"auto",name:"Auto",api:"openai-completions",provider:"openrouter",baseUrl:"https://openrouter.ai/api/v1",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:2e6,maxTokens:3e4,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"bytedance-seed/seed-1.6":{id:"bytedance-seed/seed-1.6",name:"ByteDance Seed: Seed 1.6",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"bytedance-seed/seed-1.6-flash":{id:"bytedance-seed/seed-1.6-flash",name:"ByteDance Seed: Seed 1.6 Flash",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.075,output:.3,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"bytedance-seed/seed-2.0-lite":{id:"bytedance-seed/seed-2.0-lite",name:"ByteDance Seed: Seed-2.0-Lite",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"bytedance-seed/seed-2.0-mini":{id:"bytedance-seed/seed-2.0-mini",name:"ByteDance Seed: Seed-2.0-Mini",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.1,output:.4,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"cohere/command-r-08-2024":{id:"cohere/command-r-08-2024",name:"Cohere: Command R (08-2024)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.15,output:.6,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"cohere/command-r-plus-08-2024":{id:"cohere/command-r-plus-08-2024",name:"Cohere: Command R+ (08-2024)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:2.5,output:10,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"cohere/north-mini-code:free":{id:"cohere/north-mini-code:free",name:"Cohere: North Mini Code (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:64e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"deepseek/deepseek-chat":{id:"deepseek/deepseek-chat",name:"DeepSeek: DeepSeek V3",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.2002,output:.8001,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"deepseek/deepseek-chat-v3-0324":{id:"deepseek/deepseek-chat-v3-0324",name:"DeepSeek: DeepSeek V3 0324",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.27,output:1.12,cacheRead:.135,cacheWrite:0},contextWindow:163840,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"deepseek/deepseek-chat-v3.1":{id:"deepseek/deepseek-chat-v3.1",name:"DeepSeek: DeepSeek V3.1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.25,output:.95,cacheRead:.13,cacheWrite:0},contextWindow:163840,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"deepseek/deepseek-r1":{id:"deepseek/deepseek-r1",name:"DeepSeek: R1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.7,output:2.5,cacheRead:0,cacheWrite:0},contextWindow:64e3,maxTokens:16e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"deepseek/deepseek-r1-0528":{id:"deepseek/deepseek-r1-0528",name:"DeepSeek: R1 0528",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.5,output:2.15,cacheRead:.35,cacheWrite:0},contextWindow:163840,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"deepseek/deepseek-v3.1-terminus":{id:"deepseek/deepseek-v3.1-terminus",name:"DeepSeek: DeepSeek V3.1 Terminus",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.27,output:1,cacheRead:.135,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"deepseek/deepseek-v3.2":{id:"deepseek/deepseek-v3.2",name:"DeepSeek: DeepSeek V3.2",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.269,output:.4,cacheRead:.1345,cacheWrite:0},contextWindow:163840,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"deepseek/deepseek-v3.2-exp":{id:"deepseek/deepseek-v3.2-exp",name:"DeepSeek: DeepSeek V3.2 Exp",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.27,output:.41,cacheRead:0,cacheWrite:0},contextWindow:163840,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"deepseek/deepseek-v4-flash":{id:"deepseek/deepseek-v4-flash",name:"DeepSeek: DeepSeek V4 Flash",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.098,output:.196,cacheRead:.0196,cacheWrite:0},contextWindow:1048575,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter",requiresReasoningContentOnAssistantMessages:!0},thinkingLevelMap:{minimal:null,low:null,medium:null,high:"high",max:null,xhigh:"xhigh"}},"deepseek/deepseek-v4-pro":{id:"deepseek/deepseek-v4-pro",name:"DeepSeek: DeepSeek V4 Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.435,output:.87,cacheRead:.003625,cacheWrite:0},contextWindow:1048576,maxTokens:384e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter",requiresReasoningContentOnAssistantMessages:!0},thinkingLevelMap:{minimal:null,low:null,medium:null,high:"high",max:null,xhigh:"xhigh"}},"google/gemini-2.5-flash":{id:"google/gemini-2.5-flash",name:"Google: Gemini 2.5 Flash",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.3,output:2.5,cacheRead:.03,cacheWrite:.083333},contextWindow:1048576,maxTokens:65535,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemini-2.5-flash-lite":{id:"google/gemini-2.5-flash-lite",name:"Google: Gemini 2.5 Flash Lite",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.1,output:.4,cacheRead:.01,cacheWrite:.083333},contextWindow:1048576,maxTokens:65535,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemini-2.5-pro":{id:"google/gemini-2.5-pro",name:"Google: Gemini 2.5 Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:.375},contextWindow:1048576,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemini-2.5-pro-preview":{id:"google/gemini-2.5-pro-preview",name:"Google: Gemini 2.5 Pro Preview 06-05",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:.375},contextWindow:1048576,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemini-2.5-pro-preview-05-06":{id:"google/gemini-2.5-pro-preview-05-06",name:"Google: Gemini 2.5 Pro Preview 05-06",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:.375},contextWindow:1048576,maxTokens:65535,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemini-3-flash-preview":{id:"google/gemini-3-flash-preview",name:"Google: Gemini 3 Flash Preview",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.5,output:3,cacheRead:.05,cacheWrite:.083333},contextWindow:1048576,maxTokens:65535,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemini-3-pro-image":{id:"google/gemini-3-pro-image",name:"Google: Nano Banana Pro (Gemini 3 Pro Image)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:.375},contextWindow:65536,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemini-3.1-flash-lite":{id:"google/gemini-3.1-flash-lite",name:"Google: Gemini 3.1 Flash Lite",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.25,output:1.5,cacheRead:.025,cacheWrite:.083333},contextWindow:1048576,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemini-3.1-flash-lite-preview":{id:"google/gemini-3.1-flash-lite-preview",name:"Google: Gemini 3.1 Flash Lite Preview",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.25,output:1.5,cacheRead:.025,cacheWrite:.083333},contextWindow:1048576,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemini-3.1-pro-preview":{id:"google/gemini-3.1-pro-preview",name:"Google: Gemini 3.1 Pro Preview",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:.375},contextWindow:1048576,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemini-3.1-pro-preview-customtools":{id:"google/gemini-3.1-pro-preview-customtools",name:"Google: Gemini 3.1 Pro Preview Custom Tools",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:.375},contextWindow:1048576,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemini-3.5-flash":{id:"google/gemini-3.5-flash",name:"Google: Gemini 3.5 Flash",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.5,output:9,cacheRead:.15,cacheWrite:.083333},contextWindow:1048576,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemma-3-12b-it":{id:"google/gemma-3-12b-it",name:"Google: Gemma 3 12B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.05,output:.15,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemma-3-27b-it":{id:"google/gemma-3-27b-it",name:"Google: Gemma 3 27B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.1,output:.3,cacheRead:0,cacheWrite:0},contextWindow:11e4,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemma-4-26b-a4b-it":{id:"google/gemma-4-26b-a4b-it",name:"Google: Gemma 4 26B A4B ",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.07,output:.34,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemma-4-26b-a4b-it:free":{id:"google/gemma-4-26b-a4b-it:free",name:"Google: Gemma 4 26B A4B (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemma-4-31b-it":{id:"google/gemma-4-31b-it",name:"Google: Gemma 4 31B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.22,output:.55,cacheRead:.12,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"google/gemma-4-31b-it:free":{id:"google/gemma-4-31b-it:free",name:"Google: Gemma 4 31B (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"ibm-granite/granite-4.1-8b":{id:"ibm-granite/granite-4.1-8b",name:"IBM: Granite 4.1 8B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.05,output:.1,cacheRead:.05,cacheWrite:0},contextWindow:131072,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"inception/mercury-2":{id:"inception/mercury-2",name:"Inception: Mercury 2",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.25,output:.75,cacheRead:.025,cacheWrite:0},contextWindow:128e3,maxTokens:5e4,thinkingLevelMap:{off:null},compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"inclusionai/ling-2.6-1t":{id:"inclusionai/ling-2.6-1t",name:"inclusionAI: Ling-2.6-1T",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.075,output:.625,cacheRead:.015,cacheWrite:0},contextWindow:262144,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"inclusionai/ling-2.6-flash":{id:"inclusionai/ling-2.6-flash",name:"inclusionAI: Ling-2.6-flash",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.01,output:.03,cacheRead:.002,cacheWrite:0},contextWindow:262144,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"inclusionai/ring-2.6-1t":{id:"inclusionai/ring-2.6-1t",name:"inclusionAI: Ring-2.6-1T",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.075,output:.625,cacheRead:.015,cacheWrite:0},contextWindow:262144,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"kwaipilot/kat-coder-air-v2.5":{id:"kwaipilot/kat-coder-air-v2.5",name:"Kwaipilot: KAT-Coder-Air V2.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.15,output:.6,cacheRead:.03,cacheWrite:0},contextWindow:256e3,maxTokens:8e4,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"kwaipilot/kat-coder-pro-v2":{id:"kwaipilot/kat-coder-pro-v2",name:"Kwaipilot: KAT-Coder-Pro V2",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},contextWindow:256e3,maxTokens:8e4,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"kwaipilot/kat-coder-pro-v2.5":{id:"kwaipilot/kat-coder-pro-v2.5",name:"Kwaipilot: KAT-Coder-Pro V2.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.74,output:2.96,cacheRead:.15,cacheWrite:0},contextWindow:256e3,maxTokens:8e4,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"meta-llama/llama-3.1-70b-instruct":{id:"meta-llama/llama-3.1-70b-instruct",name:"Meta: Llama 3.1 70B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.4,output:.4,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"meta-llama/llama-3.1-8b-instruct":{id:"meta-llama/llama-3.1-8b-instruct",name:"Meta: Llama 3.1 8B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.05,output:.08,cacheRead:.025,cacheWrite:0},contextWindow:131072,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"meta-llama/llama-3.3-70b-instruct":{id:"meta-llama/llama-3.3-70b-instruct",name:"Meta: Llama 3.3 70B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.13,output:.4,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:128e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"meta-llama/llama-3.3-70b-instruct:free":{id:"meta-llama/llama-3.3-70b-instruct:free",name:"Meta: Llama 3.3 70B Instruct (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:65536,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"meta-llama/llama-4-maverick":{id:"meta-llama/llama-4-maverick",name:"Meta: Llama 4 Maverick",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.2,output:.8,cacheRead:0,cacheWrite:0},contextWindow:1048576,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"meta-llama/llama-4-scout":{id:"meta-llama/llama-4-scout",name:"Meta: Llama 4 Scout",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.1,output:.3,cacheRead:0,cacheWrite:0},contextWindow:327680,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"meta/muse-spark-1.1":{id:"meta/muse-spark-1.1",name:"Meta: Muse Spark 1.1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.25,output:4.25,cacheRead:.15,cacheWrite:0},contextWindow:1048576,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"minimax/minimax-m1":{id:"minimax/minimax-m1",name:"MiniMax: MiniMax M1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.55,output:2.2,cacheRead:0,cacheWrite:0},contextWindow:1e6,maxTokens:4e4,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"minimax/minimax-m2":{id:"minimax/minimax-m2",name:"MiniMax: MiniMax M2",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.03,cacheWrite:0},contextWindow:204800,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"minimax/minimax-m2.1":{id:"minimax/minimax-m2.1",name:"MiniMax: MiniMax M2.1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.03,cacheWrite:0},contextWindow:204800,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"minimax/minimax-m2.5":{id:"minimax/minimax-m2.5",name:"MiniMax: MiniMax M2.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.15,output:.9,cacheRead:.05,cacheWrite:0},contextWindow:196608,maxTokens:196608,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"minimax/minimax-m2.7":{id:"minimax/minimax-m2.7",name:"MiniMax: MiniMax M2.7",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.25,output:1,cacheRead:.05,cacheWrite:0},contextWindow:196608,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"minimax/minimax-m3":{id:"minimax/minimax-m3",name:"MiniMax: MiniMax M3",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},contextWindow:524288,maxTokens:512e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/codestral-2508":{id:"mistralai/codestral-2508",name:"Mistral: Codestral 2508",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.3,output:.9,cacheRead:.03,cacheWrite:0},contextWindow:256e3,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/devstral-2512":{id:"mistralai/devstral-2512",name:"Mistral: Devstral 2 2512",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.4,output:2,cacheRead:.04,cacheWrite:0},contextWindow:262144,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/ministral-14b-2512":{id:"mistralai/ministral-14b-2512",name:"Mistral: Ministral 3 14B 2512",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.2,output:.2,cacheRead:.02,cacheWrite:0},contextWindow:262144,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/ministral-3b-2512":{id:"mistralai/ministral-3b-2512",name:"Mistral: Ministral 3 3B 2512",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.1,output:.1,cacheRead:.01,cacheWrite:0},contextWindow:131072,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/ministral-8b-2512":{id:"mistralai/ministral-8b-2512",name:"Mistral: Ministral 3 8B 2512",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.15,output:.15,cacheRead:.015,cacheWrite:0},contextWindow:262144,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/mistral-large":{id:"mistralai/mistral-large",name:"Mistral Large",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:2,output:6,cacheRead:.2,cacheWrite:0},contextWindow:128e3,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/mistral-large-2407":{id:"mistralai/mistral-large-2407",name:"Mistral Large 2407",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:2,output:6,cacheRead:.2,cacheWrite:0},contextWindow:131072,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/mistral-large-2512":{id:"mistralai/mistral-large-2512",name:"Mistral: Mistral Large 3 2512",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.5,output:1.5,cacheRead:.05,cacheWrite:0},contextWindow:262144,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/mistral-medium-3":{id:"mistralai/mistral-medium-3",name:"Mistral: Mistral Medium 3",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.4,output:2,cacheRead:.04,cacheWrite:0},contextWindow:131072,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/mistral-medium-3-5":{id:"mistralai/mistral-medium-3-5",name:"Mistral: Mistral Medium 3.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.5,output:7.5,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/mistral-medium-3.1":{id:"mistralai/mistral-medium-3.1",name:"Mistral: Mistral Medium 3.1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.4,output:2,cacheRead:.04,cacheWrite:0},contextWindow:131072,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/mistral-nemo":{id:"mistralai/mistral-nemo",name:"Mistral: Mistral Nemo",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.019,output:.03,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/mistral-saba":{id:"mistralai/mistral-saba",name:"Mistral: Saba",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.2,output:.6,cacheRead:.02,cacheWrite:0},contextWindow:32768,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/mistral-small-2603":{id:"mistralai/mistral-small-2603",name:"Mistral: Mistral Small 4",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.15,output:.6,cacheRead:.015,cacheWrite:0},contextWindow:262144,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/mistral-small-3.2-24b-instruct":{id:"mistralai/mistral-small-3.2-24b-instruct",name:"Mistral: Mistral Small 3.2 24B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.1,output:.3,cacheRead:.01,cacheWrite:0},contextWindow:131072,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/mixtral-8x22b-instruct":{id:"mistralai/mixtral-8x22b-instruct",name:"Mistral: Mixtral 8x22B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:2,output:6,cacheRead:.2,cacheWrite:0},contextWindow:65536,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"mistralai/voxtral-small-24b-2507":{id:"mistralai/voxtral-small-24b-2507",name:"Mistral: Voxtral Small 24B 2507",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.1,output:.3,cacheRead:.01,cacheWrite:0},contextWindow:32e3,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"moonshotai/kimi-k2":{id:"moonshotai/kimi-k2",name:"MoonshotAI: Kimi K2 0711",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.57,output:2.3,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:100352,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"moonshotai/kimi-k2-0905":{id:"moonshotai/kimi-k2-0905",name:"MoonshotAI: Kimi K2 0905",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.6,output:2.5,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:100352,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"moonshotai/kimi-k2-thinking":{id:"moonshotai/kimi-k2-thinking",name:"MoonshotAI: Kimi K2 Thinking",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.6,output:2.5,cacheRead:.15,cacheWrite:0},contextWindow:262144,maxTokens:100352,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"moonshotai/kimi-k2.5":{id:"moonshotai/kimi-k2.5",name:"MoonshotAI: Kimi K2.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.41,output:2.06,cacheRead:.07,cacheWrite:0},contextWindow:262144,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"moonshotai/kimi-k2.6":{id:"moonshotai/kimi-k2.6",name:"MoonshotAI: Kimi K2.6",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.684,output:3.42,cacheRead:.144,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter",requiresReasoningContentOnAssistantMessages:!0}},"moonshotai/kimi-k2.7-code":{id:"moonshotai/kimi-k2.7-code",name:"MoonshotAI: Kimi K2.7 Code",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.85,output:3.8,cacheRead:.17,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"moonshotai/kimi-k3":{id:"moonshotai/kimi-k3",name:"MoonshotAI: Kimi K3",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:0},contextWindow:1048576,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"nex-agi/nex-n2-mini":{id:"nex-agi/nex-n2-mini",name:"Nex AGI: Nex-N2-Mini",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.025,output:.1,cacheRead:.0025,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"nex-agi/nex-n2-pro":{id:"nex-agi/nex-n2-pro",name:"Nex AGI: Nex-N2-Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.25,output:1,cacheRead:.025,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"nvidia/nemotron-3-nano-30b-a3b":{id:"nvidia/nemotron-3-nano-30b-a3b",name:"NVIDIA: Nemotron 3 Nano 30B A3B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.05,output:.2,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:228e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"nvidia/nemotron-3-nano-30b-a3b:free":{id:"nvidia/nemotron-3-nano-30b-a3b:free",name:"NVIDIA: Nemotron 3 Nano 30B A3B (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free":{id:"nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free",name:"NVIDIA: Nemotron 3 Nano Omni (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"nvidia/nemotron-3-super-120b-a12b":{id:"nvidia/nemotron-3-super-120b-a12b",name:"NVIDIA: Nemotron 3 Super",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.21,output:.455,cacheRead:.06,cacheWrite:0},contextWindow:1e6,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"nvidia/nemotron-3-super-120b-a12b:free":{id:"nvidia/nemotron-3-super-120b-a12b:free",name:"NVIDIA: Nemotron 3 Super (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"nvidia/nemotron-3-ultra-550b-a55b":{id:"nvidia/nemotron-3-ultra-550b-a55b",name:"NVIDIA: Nemotron 3 Ultra",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.6,output:3.6,cacheRead:.2,cacheWrite:0},contextWindow:512288,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"nvidia/nemotron-3-ultra-550b-a55b:free":{id:"nvidia/nemotron-3-ultra-550b-a55b:free",name:"NVIDIA: Nemotron 3 Ultra (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:1e6,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"nvidia/nemotron-nano-12b-v2-vl:free":{id:"nvidia/nemotron-nano-12b-v2-vl:free",name:"NVIDIA: Nemotron Nano 12B 2 VL (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:128e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"nvidia/nemotron-nano-9b-v2:free":{id:"nvidia/nemotron-nano-9b-v2:free",name:"NVIDIA: Nemotron Nano 9B V2 (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"openai/gpt-3.5-turbo":{id:"openai/gpt-3.5-turbo",name:"OpenAI: GPT-3.5 Turbo",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.5,output:1.5,cacheRead:0,cacheWrite:0},contextWindow:16385,maxTokens:4096,compat:{thinkingFormat:"openrouter"}},"openai/gpt-3.5-turbo-0613":{id:"openai/gpt-3.5-turbo-0613",name:"OpenAI: GPT-3.5 Turbo (older v0613)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:1,output:2,cacheRead:0,cacheWrite:0},contextWindow:4095,maxTokens:4096,compat:{thinkingFormat:"openrouter"}},"openai/gpt-3.5-turbo-16k":{id:"openai/gpt-3.5-turbo-16k",name:"OpenAI: GPT-3.5 Turbo 16k",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:3,output:4,cacheRead:0,cacheWrite:0},contextWindow:16385,maxTokens:4096,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4":{id:"openai/gpt-4",name:"OpenAI: GPT-4",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:30,output:60,cacheRead:0,cacheWrite:0},contextWindow:8191,maxTokens:4096,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4-turbo":{id:"openai/gpt-4-turbo",name:"OpenAI: GPT-4 Turbo",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:10,output:30,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4-turbo-preview":{id:"openai/gpt-4-turbo-preview",name:"OpenAI: GPT-4 Turbo Preview",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:10,output:30,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4.1":{id:"openai/gpt-4.1",name:"OpenAI: GPT-4.1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:1047576,maxTokens:32768,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4.1-mini":{id:"openai/gpt-4.1-mini",name:"OpenAI: GPT-4.1 Mini",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.4,output:1.6,cacheRead:.1,cacheWrite:0},contextWindow:1047576,maxTokens:32768,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4.1-nano":{id:"openai/gpt-4.1-nano",name:"OpenAI: GPT-4.1 Nano",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.1,output:.4,cacheRead:.025,cacheWrite:0},contextWindow:1047576,maxTokens:32768,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4o":{id:"openai/gpt-4o",name:"OpenAI: GPT-4o",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128e3,maxTokens:16384,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4o-2024-05-13":{id:"openai/gpt-4o-2024-05-13",name:"OpenAI: GPT-4o (2024-05-13)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:5,output:15,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4o-2024-08-06":{id:"openai/gpt-4o-2024-08-06",name:"OpenAI: GPT-4o (2024-08-06)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128e3,maxTokens:16384,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4o-2024-11-20":{id:"openai/gpt-4o-2024-11-20",name:"OpenAI: GPT-4o (2024-11-20)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128e3,maxTokens:16384,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4o-mini":{id:"openai/gpt-4o-mini",name:"OpenAI: GPT-4o-mini",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.15,output:.6,cacheRead:.075,cacheWrite:0},contextWindow:128e3,maxTokens:16384,compat:{thinkingFormat:"openrouter"}},"openai/gpt-4o-mini-2024-07-18":{id:"openai/gpt-4o-mini-2024-07-18",name:"OpenAI: GPT-4o-mini (2024-07-18)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.15,output:.6,cacheRead:.075,cacheWrite:0},contextWindow:128e3,maxTokens:16384,compat:{thinkingFormat:"openrouter"}},"openai/gpt-5":{id:"openai/gpt-5",name:"OpenAI: GPT-5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,compat:{thinkingFormat:"openrouter"}},"openai/gpt-5-codex":{id:"openai/gpt-5-codex",name:"OpenAI: GPT-5 Codex",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,compat:{thinkingFormat:"openrouter"}},"openai/gpt-5-mini":{id:"openai/gpt-5-mini",name:"OpenAI: GPT-5 Mini",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.025,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,compat:{thinkingFormat:"openrouter"}},"openai/gpt-5-nano":{id:"openai/gpt-5-nano",name:"OpenAI: GPT-5 Nano",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.05,output:.4,cacheRead:.005,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,compat:{thinkingFormat:"openrouter"}},"openai/gpt-5-pro":{id:"openai/gpt-5-pro",name:"OpenAI: GPT-5 Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:15,output:120,cacheRead:0,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.1":{id:"openai/gpt-5.1",name:"OpenAI: GPT-5.1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.1-chat":{id:"openai/gpt-5.1-chat",name:"OpenAI: GPT-5.1 Chat",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:128e3,maxTokens:16384,compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.1-codex":{id:"openai/gpt-5.1-codex",name:"OpenAI: GPT-5.1-Codex",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.1-codex-max":{id:"openai/gpt-5.1-codex-max",name:"OpenAI: GPT-5.1-Codex-Max",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.1-codex-mini":{id:"openai/gpt-5.1-codex-mini",name:"OpenAI: GPT-5.1-Codex-Mini",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.025,cacheWrite:0},contextWindow:4e5,maxTokens:1e5,compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.2":{id:"openai/gpt-5.2",name:"OpenAI: GPT-5.2",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.2-chat":{id:"openai/gpt-5.2-chat",name:"OpenAI: GPT-5.2 Chat",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{xhigh:"xhigh"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.2-codex":{id:"openai/gpt-5.2-codex",name:"OpenAI: GPT-5.2-Codex",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.2-pro":{id:"openai/gpt-5.2-pro",name:"OpenAI: GPT-5.2 Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:21,output:168,cacheRead:0,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.3-chat":{id:"openai/gpt-5.3-chat",name:"OpenAI: GPT-5.3 Chat",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{xhigh:"xhigh"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.3-codex":{id:"openai/gpt-5.3-codex",name:"OpenAI: GPT-5.3-Codex",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.4":{id:"openai/gpt-5.4",name:"OpenAI: GPT-5.4",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.4-mini":{id:"openai/gpt-5.4-mini",name:"OpenAI: GPT-5.4 Mini",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.75,output:4.5,cacheRead:.075,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.4-nano":{id:"openai/gpt-5.4-nano",name:"OpenAI: GPT-5.4 Nano",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.2,output:1.25,cacheRead:.02,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.4-pro":{id:"openai/gpt-5.4-pro",name:"OpenAI: GPT-5.4 Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:30,output:180,cacheRead:0,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.5":{id:"openai/gpt-5.5",name:"OpenAI: GPT-5.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.5-pro":{id:"openai/gpt-5.5-pro",name:"OpenAI: GPT-5.5 Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:30,output:180,cacheRead:0,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",off:null,minimal:null,low:null},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.6-luna":{id:"openai/gpt-5.6-luna",name:"OpenAI: GPT-5.6 Luna",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1,output:6,cacheRead:.1,cacheWrite:1.25},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.6-luna-pro":{id:"openai/gpt-5.6-luna-pro",name:"OpenAI: GPT-5.6 Luna Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1,output:6,cacheRead:.1,cacheWrite:1.25},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.6-sol":{id:"openai/gpt-5.6-sol",name:"OpenAI: GPT-5.6 Sol",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:6.25},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.6-sol-pro":{id:"openai/gpt-5.6-sol-pro",name:"OpenAI: GPT-5.6 Sol Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:6.25},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.6-terra":{id:"openai/gpt-5.6-terra",name:"OpenAI: GPT-5.6 Terra",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:3.125},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-5.6-terra-pro":{id:"openai/gpt-5.6-terra-pro",name:"OpenAI: GPT-5.6 Terra Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:3.125},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{thinkingFormat:"openrouter"}},"openai/gpt-audio":{id:"openai/gpt-audio",name:"OpenAI: GPT Audio",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:2.5,output:10,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16384,compat:{thinkingFormat:"openrouter"}},"openai/gpt-audio-mini":{id:"openai/gpt-audio-mini",name:"OpenAI: GPT Audio Mini",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.6,output:2.4,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:16384,compat:{thinkingFormat:"openrouter"}},"openai/gpt-chat-latest":{id:"openai/gpt-chat-latest",name:"OpenAI: GPT Chat Latest",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,compat:{thinkingFormat:"openrouter"}},"openai/gpt-oss-120b":{id:"openai/gpt-oss-120b",name:"OpenAI: gpt-oss-120b",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.037,output:.17,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:131072,compat:{thinkingFormat:"openrouter"}},"openai/gpt-oss-20b":{id:"openai/gpt-oss-20b",name:"OpenAI: gpt-oss-20b",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.03,output:.13,cacheRead:.03,cacheWrite:0},contextWindow:131072,maxTokens:131072,compat:{thinkingFormat:"openrouter"}},"openai/gpt-oss-20b:free":{id:"openai/gpt-oss-20b:free",name:"OpenAI: gpt-oss-20b (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{thinkingFormat:"openrouter"}},"openai/gpt-oss-safeguard-20b":{id:"openai/gpt-oss-safeguard-20b",name:"OpenAI: gpt-oss-safeguard-20b",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.075,output:.3,cacheRead:.0375,cacheWrite:0},contextWindow:131072,maxTokens:65536,compat:{thinkingFormat:"openrouter"}},"openai/o1":{id:"openai/o1",name:"OpenAI: o1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:15,output:60,cacheRead:7.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,compat:{thinkingFormat:"openrouter"}},"openai/o3":{id:"openai/o3",name:"OpenAI: o3",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,compat:{thinkingFormat:"openrouter"}},"openai/o3-deep-research":{id:"openai/o3-deep-research",name:"OpenAI: o3 Deep Research",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:10,output:40,cacheRead:2.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,compat:{thinkingFormat:"openrouter"}},"openai/o3-mini":{id:"openai/o3-mini",name:"OpenAI: o3 Mini",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:1.1,output:4.4,cacheRead:.55,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,compat:{thinkingFormat:"openrouter"}},"openai/o3-mini-high":{id:"openai/o3-mini-high",name:"OpenAI: o3 Mini High",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:1.1,output:4.4,cacheRead:.55,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,compat:{thinkingFormat:"openrouter"}},"openai/o3-pro":{id:"openai/o3-pro",name:"OpenAI: o3 Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:20,output:80,cacheRead:0,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,compat:{thinkingFormat:"openrouter"}},"openai/o4-mini":{id:"openai/o4-mini",name:"OpenAI: o4 Mini",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.1,output:4.4,cacheRead:.275,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,compat:{thinkingFormat:"openrouter"}},"openai/o4-mini-deep-research":{id:"openai/o4-mini-deep-research",name:"OpenAI: o4 Mini Deep Research",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,compat:{thinkingFormat:"openrouter"}},"openai/o4-mini-high":{id:"openai/o4-mini-high",name:"OpenAI: o4 Mini High",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.1,output:4.4,cacheRead:.275,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,compat:{thinkingFormat:"openrouter"}},"openrouter/auto":{id:"openrouter/auto",name:"Auto Router",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:-1e6,output:-1e6,cacheRead:0,cacheWrite:0},contextWindow:2e6,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"openrouter/auto-beta":{id:"openrouter/auto-beta",name:"Auto Router (Beta)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:-1e6,output:-1e6,cacheRead:0,cacheWrite:0},contextWindow:2e6,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"openrouter/free":{id:"openrouter/free",name:"Free Models Router",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:2e5,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"openrouter/fusion":{id:"openrouter/fusion",name:"OpenRouter: Fusion",api:"openai-completions",provider:"openrouter",baseUrl:"https://openrouter.ai/api/v1",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:1e6,maxTokens:3e4,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"poolside/laguna-m.1":{id:"poolside/laguna-m.1",name:"Poolside: Laguna M.1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.2,output:.4,cacheRead:.1,cacheWrite:0},contextWindow:262144,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"poolside/laguna-m.1:free":{id:"poolside/laguna-m.1:free",name:"Poolside: Laguna M.1 (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"poolside/laguna-xs-2.1":{id:"poolside/laguna-xs-2.1",name:"Poolside: Laguna XS 2.1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.06,output:.12,cacheRead:.03,cacheWrite:0},contextWindow:262144,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"poolside/laguna-xs-2.1:free":{id:"poolside/laguna-xs-2.1:free",name:"Poolside: Laguna XS 2.1 (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen-2.5-72b-instruct":{id:"qwen/qwen-2.5-72b-instruct",name:"Qwen2.5 72B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.36,output:.4,cacheRead:0,cacheWrite:0},contextWindow:32768,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen-2.5-7b-instruct":{id:"qwen/qwen-2.5-7b-instruct",name:"Qwen: Qwen2.5 7B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.04,output:.1,cacheRead:0,cacheWrite:0},contextWindow:32768,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen-plus":{id:"qwen/qwen-plus",name:"Qwen: Qwen-Plus",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.26,output:.78,cacheRead:.052,cacheWrite:.325},contextWindow:1e6,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen-plus-2025-07-28":{id:"qwen/qwen-plus-2025-07-28",name:"Qwen: Qwen Plus 0728",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.26,output:.78,cacheRead:0,cacheWrite:0},contextWindow:1e6,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen-plus-2025-07-28:thinking":{id:"qwen/qwen-plus-2025-07-28:thinking",name:"Qwen: Qwen Plus 0728 (thinking)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.26,output:.78,cacheRead:0,cacheWrite:.325},contextWindow:1e6,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-14b":{id:"qwen/qwen3-14b",name:"Qwen: Qwen3 14B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.2275,output:.91,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:8192,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-235b-a22b":{id:"qwen/qwen3-235b-a22b",name:"Qwen: Qwen3 235B A22B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.455,output:1.82,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:8192,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-235b-a22b-2507":{id:"qwen/qwen3-235b-a22b-2507",name:"Qwen: Qwen3 235B A22B Instruct 2507",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.09,output:.55,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-235b-a22b-thinking-2507":{id:"qwen/qwen3-235b-a22b-thinking-2507",name:"Qwen: Qwen3 235B A22B Thinking 2507",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.1495,output:1.495,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-30b-a3b":{id:"qwen/qwen3-30b-a3b",name:"Qwen: Qwen3 30B A3B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.13,output:.52,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:8192,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-30b-a3b-instruct-2507":{id:"qwen/qwen3-30b-a3b-instruct-2507",name:"Qwen: Qwen3 30B A3B Instruct 2507",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.1,output:.3,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-30b-a3b-thinking-2507":{id:"qwen/qwen3-30b-a3b-thinking-2507",name:"Qwen: Qwen3 30B A3B Thinking 2507",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.13,output:1.56,cacheRead:0,cacheWrite:0},contextWindow:81920,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-32b":{id:"qwen/qwen3-32b",name:"Qwen: Qwen3 32B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.08,output:.28,cacheRead:0,cacheWrite:0},contextWindow:40960,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-8b":{id:"qwen/qwen3-8b",name:"Qwen: Qwen3 8B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.117,output:.455,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:8192,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-coder":{id:"qwen/qwen3-coder",name:"Qwen: Qwen3 Coder 480B A35B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.3,output:1,cacheRead:.1,cacheWrite:0},contextWindow:262144,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-coder-30b-a3b-instruct":{id:"qwen/qwen3-coder-30b-a3b-instruct",name:"Qwen: Qwen3 Coder 30B A3B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.07,output:.27,cacheRead:0,cacheWrite:0},contextWindow:16e4,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-coder-flash":{id:"qwen/qwen3-coder-flash",name:"Qwen: Qwen3 Coder Flash",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.195,output:.975,cacheRead:.039,cacheWrite:.24375},contextWindow:1e6,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-coder-next":{id:"qwen/qwen3-coder-next",name:"Qwen: Qwen3 Coder Next",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.11,output:.8,cacheRead:.07,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-coder-plus":{id:"qwen/qwen3-coder-plus",name:"Qwen: Qwen3 Coder Plus",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.65,output:3.25,cacheRead:.13,cacheWrite:.8125},contextWindow:1e6,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-coder:free":{id:"qwen/qwen3-coder:free",name:"Qwen: Qwen3 Coder 480B A35B (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:262e3,maxTokens:262e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-max":{id:"qwen/qwen3-max",name:"Qwen: Qwen3 Max",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.78,output:3.9,cacheRead:.156,cacheWrite:.975},contextWindow:262144,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-max-thinking":{id:"qwen/qwen3-max-thinking",name:"Qwen: Qwen3 Max Thinking",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.78,output:3.9,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-next-80b-a3b-instruct":{id:"qwen/qwen3-next-80b-a3b-instruct",name:"Qwen: Qwen3 Next 80B A3B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.1,output:1.1,cacheRead:.07,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-next-80b-a3b-instruct:free":{id:"qwen/qwen3-next-80b-a3b-instruct:free",name:"Qwen: Qwen3 Next 80B A3B Instruct (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-next-80b-a3b-thinking":{id:"qwen/qwen3-next-80b-a3b-thinking",name:"Qwen: Qwen3 Next 80B A3B Thinking",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.0975,output:.78,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-vl-235b-a22b-instruct":{id:"qwen/qwen3-vl-235b-a22b-instruct",name:"Qwen: Qwen3 VL 235B A22B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.21,output:1.9,cacheRead:.1,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-vl-235b-a22b-thinking":{id:"qwen/qwen3-vl-235b-a22b-thinking",name:"Qwen: Qwen3 VL 235B A22B Thinking",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.26,output:2.6,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-vl-30b-a3b-instruct":{id:"qwen/qwen3-vl-30b-a3b-instruct",name:"Qwen: Qwen3 VL 30B A3B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.13,output:.52,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-vl-30b-a3b-thinking":{id:"qwen/qwen3-vl-30b-a3b-thinking",name:"Qwen: Qwen3 VL 30B A3B Thinking",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.13,output:1.56,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-vl-32b-instruct":{id:"qwen/qwen3-vl-32b-instruct",name:"Qwen: Qwen3 VL 32B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.104,output:.416,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-vl-8b-instruct":{id:"qwen/qwen3-vl-8b-instruct",name:"Qwen: Qwen3 VL 8B Instruct",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.117,output:.455,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3-vl-8b-thinking":{id:"qwen/qwen3-vl-8b-thinking",name:"Qwen: Qwen3 VL 8B Thinking",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.117,output:1.365,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.5-122b-a10b":{id:"qwen/qwen3.5-122b-a10b",name:"Qwen: Qwen3.5-122B-A10B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.26,output:2.08,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.5-27b":{id:"qwen/qwen3.5-27b",name:"Qwen: Qwen3.5-27B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.26,output:2.6,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:81920,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.5-35b-a3b":{id:"qwen/qwen3.5-35b-a3b",name:"Qwen: Qwen3.5-35B-A3B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.14,output:1,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.5-397b-a17b":{id:"qwen/qwen3.5-397b-a17b",name:"Qwen: Qwen3.5 397B A17B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.39,output:2.34,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.5-9b":{id:"qwen/qwen3.5-9b",name:"Qwen: Qwen3.5-9B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.1,output:.15,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.5-flash-02-23":{id:"qwen/qwen3.5-flash-02-23",name:"Qwen: Qwen3.5-Flash",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.065,output:.26,cacheRead:0,cacheWrite:0},contextWindow:1e6,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.5-plus-02-15":{id:"qwen/qwen3.5-plus-02-15",name:"Qwen: Qwen3.5 Plus 2026-02-15",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.26,output:1.56,cacheRead:0,cacheWrite:0},contextWindow:1e6,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.5-plus-20260420":{id:"qwen/qwen3.5-plus-20260420",name:"Qwen: Qwen3.5 Plus 2026-04-20",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.3,output:1.8,cacheRead:0,cacheWrite:.375},contextWindow:1e6,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.6-27b":{id:"qwen/qwen3.6-27b",name:"Qwen: Qwen3.6 27B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.45,output:2.7,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.6-35b-a3b":{id:"qwen/qwen3.6-35b-a3b",name:"Qwen: Qwen3.6 35B A3B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.14,output:1,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.6-flash":{id:"qwen/qwen3.6-flash",name:"Qwen: Qwen3.6 Flash",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.1875,output:1.125,cacheRead:0,cacheWrite:.234375},contextWindow:1e6,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.6-max-preview":{id:"qwen/qwen3.6-max-preview",name:"Qwen: Qwen3.6 Max Preview",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:1.04,output:6.24,cacheRead:0,cacheWrite:1.3},contextWindow:262144,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.6-plus":{id:"qwen/qwen3.6-plus",name:"Qwen: Qwen3.6 Plus",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.325,output:1.95,cacheRead:0,cacheWrite:.40625},contextWindow:1e6,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.7-max":{id:"qwen/qwen3.7-max",name:"Qwen: Qwen3.7 Max",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:1.475,output:4.425,cacheRead:.295,cacheWrite:1.84375},contextWindow:1e6,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"qwen/qwen3.7-plus":{id:"qwen/qwen3.7-plus",name:"Qwen: Qwen3.7 Plus",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.32,output:1.28,cacheRead:.064,cacheWrite:.4},contextWindow:1e6,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"rekaai/reka-edge":{id:"rekaai/reka-edge",name:"Reka Edge",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text","image"],cost:{input:.1,output:.1,cacheRead:0,cacheWrite:0},contextWindow:16384,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"relace/relace-search":{id:"relace/relace-search",name:"Relace: Relace Search",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:1,output:3,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:128e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"sakana/fugu-ultra":{id:"sakana/fugu-ultra",name:"Sakana: Fugu Ultra",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0},contextWindow:1e6,maxTokens:128e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"sao10k/l3.1-euryale-70b":{id:"sao10k/l3.1-euryale-70b",name:"Sao10K: Llama 3.1 Euryale 70B v2.2",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.85,output:.85,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"stepfun/step-3.5-flash":{id:"stepfun/step-3.5-flash",name:"StepFun: Step 3.5 Flash",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.1,output:.3,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"stepfun/step-3.7-flash":{id:"stepfun/step-3.7-flash",name:"StepFun: Step 3.7 Flash",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.2,output:1.15,cacheRead:.04,cacheWrite:0},contextWindow:256e3,maxTokens:256e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"tencent/hy3":{id:"tencent/hy3",name:"Tencent: Hy3",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.2,output:.8,cacheRead:.05,cacheWrite:0},contextWindow:262144,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"tencent/hy3-preview":{id:"tencent/hy3-preview",name:"Tencent: Hy3 preview",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.063,output:.21,cacheRead:.021,cacheWrite:0},contextWindow:262144,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"tencent/hy3:free":{id:"tencent/hy3:free",name:"Tencent: Hy3 (free)",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:262144,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"thedrummer/unslopnemo-12b":{id:"thedrummer/unslopnemo-12b",name:"TheDrummer: UnslopNemo 12B",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!1,input:["text"],cost:{input:.4,output:.4,cacheRead:0,cacheWrite:0},contextWindow:32768,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"thinkingmachines/inkling":{id:"thinkingmachines/inkling",name:"Thinking Machines: Inkling",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1,output:4.05,cacheRead:.17,cacheWrite:0},contextWindow:524288,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"upstage/solar-pro-3":{id:"upstage/solar-pro-3",name:"Upstage: Solar Pro 3",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.15,output:.6,cacheRead:.015,cacheWrite:0},contextWindow:128e3,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"x-ai/grok-4.20":{id:"x-ai/grok-4.20",name:"xAI: Grok 4.20",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.25,output:2.5,cacheRead:.2,cacheWrite:0},contextWindow:2e6,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"x-ai/grok-4.3":{id:"x-ai/grok-4.3",name:"xAI: Grok 4.3",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.25,output:2.5,cacheRead:.2,cacheWrite:0},contextWindow:1e6,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"x-ai/grok-4.5":{id:"x-ai/grok-4.5",name:"xAI: Grok 4.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2,output:6,cacheRead:.3,cacheWrite:0},contextWindow:5e5,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"x-ai/grok-build-0.1":{id:"x-ai/grok-build-0.1",name:"xAI: Grok Build 0.1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1,output:2,cacheRead:.2,cacheWrite:0},contextWindow:256e3,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"xiaomi/mimo-v2.5":{id:"xiaomi/mimo-v2.5",name:"Xiaomi: MiMo-V2.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.14,output:.28,cacheRead:.0028,cacheWrite:0},contextWindow:1048576,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"xiaomi/mimo-v2.5-pro":{id:"xiaomi/mimo-v2.5-pro",name:"Xiaomi: MiMo-V2.5-Pro",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.435,output:.87,cacheRead:.0036,cacheWrite:0},contextWindow:1048576,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-4.5":{id:"z-ai/glm-4.5",name:"Z.ai: GLM 4.5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.6,output:2.2,cacheRead:.11,cacheWrite:0},contextWindow:131072,maxTokens:98304,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-4.5-air":{id:"z-ai/glm-4.5-air",name:"Z.ai: GLM 4.5 Air",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.13,output:.85,cacheRead:.025,cacheWrite:0},contextWindow:131072,maxTokens:98304,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-4.5v":{id:"z-ai/glm-4.5v",name:"Z.ai: GLM 4.5V",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.6,output:1.8,cacheRead:.11,cacheWrite:0},contextWindow:65536,maxTokens:16384,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-4.6":{id:"z-ai/glm-4.6",name:"Z.ai: GLM 4.6",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.5,output:2,cacheRead:.1,cacheWrite:0},contextWindow:202752,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-4.6v":{id:"z-ai/glm-4.6v",name:"Z.ai: GLM 4.6V",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.3,output:.9,cacheRead:.055,cacheWrite:0},contextWindow:131072,maxTokens:32768,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-4.7":{id:"z-ai/glm-4.7",name:"Z.ai: GLM 4.7",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.4,output:1.75,cacheRead:.08,cacheWrite:0},contextWindow:202752,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-4.7-flash":{id:"z-ai/glm-4.7-flash",name:"Z.ai: GLM 4.7 Flash",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.0605,output:.4,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-5":{id:"z-ai/glm-5",name:"Z.ai: GLM 5",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.6,output:1.9,cacheRead:.119,cacheWrite:0},contextWindow:202752,maxTokens:202752,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-5-turbo":{id:"z-ai/glm-5-turbo",name:"Z.ai: GLM 5 Turbo",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:1.2,output:4,cacheRead:.24,cacheWrite:0},contextWindow:202752,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-5.1":{id:"z-ai/glm-5.1",name:"Z.ai: GLM 5.1",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.966,output:3.036,cacheRead:.1794,cacheWrite:0},contextWindow:2e5,maxTokens:128e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-5.2":{id:"z-ai/glm-5.2",name:"Z.ai: GLM 5.2",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text"],cost:{input:.2674,output:.8404,cacheRead:.04966,cacheWrite:0},contextWindow:1048576,maxTokens:131072,thinkingLevelMap:{xhigh:"xhigh"},compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"z-ai/glm-5v-turbo":{id:"z-ai/glm-5v-turbo",name:"Z.ai: GLM 5V Turbo",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.2,output:4,cacheRead:.24,cacheWrite:0},contextWindow:202752,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"~anthropic/claude-fable-latest":{id:"~anthropic/claude-fable-latest",name:"Anthropic: Claude Fable Latest",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"~anthropic/claude-haiku-latest":{id:"~anthropic/claude-haiku-latest",name:"Anthropic Claude Haiku Latest",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"~anthropic/claude-opus-latest":{id:"~anthropic/claude-opus-latest",name:"Anthropic: Claude Opus Latest",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"~anthropic/claude-sonnet-latest":{id:"~anthropic/claude-sonnet-latest",name:"Anthropic Claude Sonnet Latest",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"~google/gemini-flash-latest":{id:"~google/gemini-flash-latest",name:"Google Gemini Flash Latest",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:1.5,output:9,cacheRead:.15,cacheWrite:.083333},contextWindow:1048576,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"~google/gemini-pro-latest":{id:"~google/gemini-pro-latest",name:"Google Gemini Pro Latest",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:.375},contextWindow:1048576,maxTokens:65536,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"~moonshotai/kimi-latest":{id:"~moonshotai/kimi-latest",name:"MoonshotAI Kimi Latest",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:0},contextWindow:1048576,maxTokens:131072,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"~openai/gpt-latest":{id:"~openai/gpt-latest",name:"OpenAI GPT Latest",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:6.25},contextWindow:105e4,maxTokens:128e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"~openai/gpt-mini-latest":{id:"~openai/gpt-mini-latest",name:"OpenAI GPT Mini Latest",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:.75,output:4.5,cacheRead:.075,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}},"~x-ai/grok-latest":{id:"~x-ai/grok-latest",name:"xAI: Grok Latest",api:"openai-completions",baseUrl:"https://openrouter.ai/api/v1",provider:"openrouter",reasoning:!0,input:["text","image"],cost:{input:2,output:6,cacheRead:.3,cacheWrite:0},contextWindow:5e5,maxTokens:4096,compat:{supportsDeveloperRole:!1,thinkingFormat:"openrouter"}}};var DC=FC;var UC={"MiniMaxAI/MiniMax-M2.7":{id:"MiniMaxAI/MiniMax-M2.7",name:"MiniMax-M2.7",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{off:null,minimal:null,low:null,medium:null},input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:202752,maxTokens:131072},"MiniMaxAI/MiniMax-M3":{id:"MiniMaxAI/MiniMax-M3",name:"MiniMax-M3",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{minimal:null,low:null,medium:null},input:["text","image"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:524288,maxTokens:25e4},"Qwen/Qwen2.5-7B-Instruct-Turbo":{id:"Qwen/Qwen2.5-7B-Instruct-Turbo",name:"Qwen 2.5 7B Instruct Turbo",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!1,input:["text"],cost:{input:.3,output:.3,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:32768,maxTokens:32768},"Qwen/Qwen3.5-9B":{id:"Qwen/Qwen3.5-9B",name:"Qwen3.5 9B",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{minimal:null,low:null,medium:null},input:["text","image"],cost:{input:.17,output:.25,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:65536},"Qwen/Qwen3.6-Plus":{id:"Qwen/Qwen3.6-Plus",name:"Qwen3.6 Plus",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{minimal:null,low:null,medium:null},input:["text"],cost:{input:.5,output:3,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:1e6,maxTokens:5e5},"Qwen/Qwen3.7-Max":{id:"Qwen/Qwen3.7-Max",name:"Qwen3.7 Max",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!1,input:["text"],cost:{input:1.25,output:3.75,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:1e6,maxTokens:5e5},"deepseek-ai/DeepSeek-V4-Pro":{id:"deepseek-ai/DeepSeek-V4-Pro",name:"DeepSeek V4 Pro",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{minimal:null,low:null,medium:null,high:"high",xhigh:null},input:["text"],cost:{input:1.74,output:3.48,cacheRead:.2,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!0,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:512e3,maxTokens:384e3},"google/gemma-4-31B-it":{id:"google/gemma-4-31B-it",name:"Gemma 4 31B Instruct",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{minimal:null,low:null,medium:null},input:["text","image"],cost:{input:.39,output:.97,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:131072},"meta-llama/Llama-3.3-70B-Instruct-Turbo":{id:"meta-llama/Llama-3.3-70B-Instruct-Turbo",name:"Llama 3.3 70B",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!1,input:["text"],cost:{input:1.04,output:1.04,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:131072,maxTokens:131072},"moonshotai/Kimi-K2.6":{id:"moonshotai/Kimi-K2.6",name:"Kimi K2.6",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{minimal:null,low:null,medium:null},input:["text","image"],cost:{input:1.2,output:4.5,cacheRead:.2,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:131e3},"moonshotai/Kimi-K2.7-Code":{id:"moonshotai/Kimi-K2.7-Code",name:"Kimi K2.7 Code",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{minimal:null,low:null,medium:null},input:["text"],cost:{input:.95,output:4,cacheRead:.19,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:131072},"nvidia/nemotron-3-ultra-550b-a55b":{id:"nvidia/nemotron-3-ultra-550b-a55b",name:"Nemotron 3 Ultra 550B A55B",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{minimal:null,low:null,medium:null},input:["text"],cost:{input:.6,output:3.6,cacheRead:.2,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:512300,maxTokens:512300},"openai/gpt-oss-120b":{id:"openai/gpt-oss-120b",name:"GPT OSS 120B",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{off:null,minimal:null},input:["text"],cost:{input:.15,output:.6,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!0,maxTokensField:"max_tokens",thinkingFormat:"openai",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:131072,maxTokens:131072},"openai/gpt-oss-20b":{id:"openai/gpt-oss-20b",name:"GPT OSS 20B",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{off:null,minimal:null},input:["text"],cost:{input:.05,output:.2,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!0,maxTokensField:"max_tokens",thinkingFormat:"openai",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:131072,maxTokens:131072},"thinkingmachines/Inkling":{id:"thinkingmachines/Inkling",name:"Inkling",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{minimal:null,low:null,medium:null},input:["text","image"],cost:{input:1,output:4.05,cacheRead:.17,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:524288,maxTokens:131072},"zai-org/GLM-5.2":{id:"zai-org/GLM-5.2",name:"GLM-5.2",api:"openai-completions",provider:"together",baseUrl:"https://api.together.ai/v1",reasoning:!0,thinkingLevelMap:{minimal:null,low:null,medium:null},input:["text"],cost:{input:1.4,output:4.4,cacheRead:.26,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,maxTokensField:"max_tokens",thinkingFormat:"together",supportsStrictMode:!1,supportsLongCacheRetention:!1},contextWindow:262144,maxTokens:164e3}};var $C=UC;var NC={"alibaba/qwen-3-14b":{id:"alibaba/qwen-3-14b",name:"Qwen3-14B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.12,output:.24,cacheRead:0,cacheWrite:0},contextWindow:40960,maxTokens:16384},"alibaba/qwen-3-235b":{id:"alibaba/qwen-3-235b",name:"Qwen3 235B A22B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.22,output:.88,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:16384},"alibaba/qwen-3-30b":{id:"alibaba/qwen-3-30b",name:"Qwen3-30B-A3B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.12,output:.5,cacheRead:0,cacheWrite:0},contextWindow:40960,maxTokens:16384},"alibaba/qwen-3-32b":{id:"alibaba/qwen-3-32b",name:"Qwen 3 32B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.16,output:.64,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:8192},"alibaba/qwen-3.6-max-preview":{id:"alibaba/qwen-3.6-max-preview",name:"Qwen 3.6 Max Preview",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:1.3,output:7.8,cacheRead:.26,cacheWrite:1.625},contextWindow:24e4,maxTokens:64e3},"alibaba/qwen3-235b-a22b-thinking":{id:"alibaba/qwen3-235b-a22b-thinking",name:"Qwen3 VL 235B A22B Thinking",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.4,output:4,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768},"alibaba/qwen3-coder":{id:"alibaba/qwen3-coder",name:"Qwen3 Coder 480B A35B Instruct",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:1.5,output:7.5,cacheRead:.3,cacheWrite:0},contextWindow:262144,maxTokens:65536},"alibaba/qwen3-coder-30b-a3b":{id:"alibaba/qwen3-coder-30b-a3b",name:"Qwen 3 Coder 30B A3B Instruct",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.15,output:.6,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:8192},"alibaba/qwen3-coder-next":{id:"alibaba/qwen3-coder-next",name:"Qwen3 Coder Next",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.5,output:1.2,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"alibaba/qwen3-coder-plus":{id:"alibaba/qwen3-coder-plus",name:"Qwen3 Coder Plus",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:1,output:5,cacheRead:.2,cacheWrite:0},contextWindow:1e6,maxTokens:65536},"alibaba/qwen3-max":{id:"alibaba/qwen3-max",name:"Qwen3 Max",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:1.2,output:6,cacheRead:.24,cacheWrite:0},contextWindow:262144,maxTokens:32768},"alibaba/qwen3-max-preview":{id:"alibaba/qwen3-max-preview",name:"Qwen3 Max Preview",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:1.2,output:6,cacheRead:.24,cacheWrite:0},contextWindow:262144,maxTokens:32768},"alibaba/qwen3-max-thinking":{id:"alibaba/qwen3-max-thinking",name:"Qwen 3 Max Thinking",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:1.2,output:6,cacheRead:.24,cacheWrite:0},contextWindow:256e3,maxTokens:65536},"alibaba/qwen3-next-80b-a3b-instruct":{id:"alibaba/qwen3-next-80b-a3b-instruct",name:"Qwen3 Next 80B A3B Instruct",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.15,output:1.2,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768},"alibaba/qwen3-next-80b-a3b-thinking":{id:"alibaba/qwen3-next-80b-a3b-thinking",name:"Qwen3 Next 80B A3B Thinking",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.15,output:1.2,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768},"alibaba/qwen3-vl-235b-a22b-instruct":{id:"alibaba/qwen3-vl-235b-a22b-instruct",name:"Qwen3 VL 235B A22B Instruct",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.4,output:1.6,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:129024},"alibaba/qwen3-vl-instruct":{id:"alibaba/qwen3-vl-instruct",name:"Qwen3 VL 235B A22B Instruct",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.4,output:1.6,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:129024},"alibaba/qwen3-vl-thinking":{id:"alibaba/qwen3-vl-thinking",name:"Qwen3 VL 235B A22B Thinking",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.4,output:4,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:32768},"alibaba/qwen3.5-flash":{id:"alibaba/qwen3.5-flash",name:"Qwen 3.5 Flash",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.1,output:.4,cacheRead:.001,cacheWrite:.125},contextWindow:1e6,maxTokens:64e3},"alibaba/qwen3.5-plus":{id:"alibaba/qwen3.5-plus",name:"Qwen 3.5 Plus",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.4,output:2.4,cacheRead:.04,cacheWrite:.5},contextWindow:1e6,maxTokens:64e3},"alibaba/qwen3.6-27b":{id:"alibaba/qwen3.6-27b",name:"Qwen 3.6 27B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.6,output:3.6,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"alibaba/qwen3.6-plus":{id:"alibaba/qwen3.6-plus",name:"Qwen 3.6 Plus",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.5,output:3,cacheRead:.1,cacheWrite:.625},contextWindow:1e6,maxTokens:64e3},"alibaba/qwen3.7-max":{id:"alibaba/qwen3.7-max",name:"Qwen 3.7 Max",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:1.25,output:3.75,cacheRead:.25,cacheWrite:1.5625},contextWindow:991e3,maxTokens:64e3},"alibaba/qwen3.7-plus":{id:"alibaba/qwen3.7-plus",name:"Qwen 3.7 Plus",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.4,output:1.6,cacheRead:.08,cacheWrite:.5},contextWindow:1e6,maxTokens:64e3},"amazon/nova-2-lite":{id:"amazon/nova-2-lite",name:"Nova 2 Lite",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.3,output:2.5,cacheRead:.075,cacheWrite:0},contextWindow:1e6,maxTokens:1e6},"amazon/nova-lite":{id:"amazon/nova-lite",name:"Nova Lite",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.06,output:.24,cacheRead:0,cacheWrite:0},contextWindow:3e5,maxTokens:8192},"amazon/nova-micro":{id:"amazon/nova-micro",name:"Nova Micro",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.035,output:.14,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:8192},"amazon/nova-pro":{id:"amazon/nova-pro",name:"Nova Pro",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.8,output:3.2,cacheRead:0,cacheWrite:0},contextWindow:3e5,maxTokens:8192},"anthropic/claude-3-haiku":{id:"anthropic/claude-3-haiku",name:"Claude 3 Haiku",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.25,output:1.25,cacheRead:.03,cacheWrite:.3},contextWindow:2e5,maxTokens:4096},"anthropic/claude-fable-5":{id:"anthropic/claude-fable-5",name:"Claude Fable 5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0}},"anthropic/claude-haiku-4.5":{id:"anthropic/claude-haiku-4.5",name:"Claude Haiku 4.5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:.1,cacheWrite:1.25},contextWindow:2e5,maxTokens:64e3},"anthropic/claude-opus-4":{id:"anthropic/claude-opus-4",name:"Claude Opus 4",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:8192},"anthropic/claude-opus-4.1":{id:"anthropic/claude-opus-4.1",name:"Claude Opus 4.1",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:32e3},"anthropic/claude-opus-4.5":{id:"anthropic/claude-opus-4.5",name:"Claude Opus 4.5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:2e5,maxTokens:64e3},"anthropic/claude-opus-4.6":{id:"anthropic/claude-opus-4.6",name:"Claude Opus 4.6",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"},compat:{forceAdaptiveThinking:!0}},"anthropic/claude-opus-4.7":{id:"anthropic/claude-opus-4.7",name:"Claude Opus 4.7",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0,supportsTemperature:!1}},"anthropic/claude-opus-4.7-fast":{id:"anthropic/claude-opus-4.7-fast",name:"Claude Opus 4.7 (Fast)",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:30,output:150,cacheRead:3,cacheWrite:37.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0,supportsTemperature:!1}},"anthropic/claude-opus-4.8":{id:"anthropic/claude-opus-4.8",name:"Claude Opus 4.8",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0,supportsTemperature:!1}},"anthropic/claude-opus-4.8-fast":{id:"anthropic/claude-opus-4.8-fast",name:"Claude Opus 4.8 (Fast)",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0,supportsTemperature:!1}},"anthropic/claude-sonnet-4":{id:"anthropic/claude-sonnet-4",name:"Claude Sonnet 4",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:8192},"anthropic/claude-sonnet-4.5":{id:"anthropic/claude-sonnet-4.5",name:"Claude Sonnet 4.5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:64e3},"anthropic/claude-sonnet-4.6":{id:"anthropic/claude-sonnet-4.6",name:"Claude Sonnet 4.6",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{max:"max"},compat:{forceAdaptiveThinking:!0}},"anthropic/claude-sonnet-5":{id:"anthropic/claude-sonnet-5",name:"Claude Sonnet 5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0}},"arcee-ai/trinity-large-thinking":{id:"arcee-ai/trinity-large-thinking",name:"Trinity Large Thinking",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.25,output:.9,cacheRead:0,cacheWrite:0},contextWindow:262100,maxTokens:8e4},"arcee-ai/trinity-mini":{id:"arcee-ai/trinity-mini",name:"Trinity Mini",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.045,output:.15,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:131072},"bytedance/seed-1.6":{id:"bytedance/seed-1.6",name:"Seed 1.6",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.05,cacheWrite:0},contextWindow:256e3,maxTokens:32e3},"bytedance/seed-1.8":{id:"bytedance/seed-1.8",name:"Bytedance Seed 1.8",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.05,cacheWrite:0},contextWindow:256e3,maxTokens:64e3},"cohere/command-a":{id:"cohere/command-a",name:"Command A",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:2.5,output:10,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:8e3},"deepseek/deepseek-r1":{id:"deepseek/deepseek-r1",name:"DeepSeek-R1",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:1.35,output:5.4,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:8192},"deepseek/deepseek-v3":{id:"deepseek/deepseek-v3",name:"DeepSeek V3 0324",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.27,output:1.12,cacheRead:.135,cacheWrite:0},contextWindow:163840,maxTokens:163840},"deepseek/deepseek-v3.1":{id:"deepseek/deepseek-v3.1",name:"DeepSeek V3.1",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.25,output:.95,cacheRead:.13,cacheWrite:0},contextWindow:163840,maxTokens:128e3},"deepseek/deepseek-v3.1-terminus":{id:"deepseek/deepseek-v3.1-terminus",name:"DeepSeek V3.1 Terminus",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.27,output:1,cacheRead:.135,cacheWrite:0},contextWindow:131072,maxTokens:65536},"deepseek/deepseek-v3.2":{id:"deepseek/deepseek-v3.2",name:"DeepSeek V3.2",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.28,output:.42,cacheRead:.028,cacheWrite:0},contextWindow:128e3,maxTokens:8e3},"deepseek/deepseek-v3.2-thinking":{id:"deepseek/deepseek-v3.2-thinking",name:"DeepSeek V3.2 Thinking",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.62,output:1.85,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:8e3},"deepseek/deepseek-v4-flash":{id:"deepseek/deepseek-v4-flash",name:"DeepSeek V4 Flash",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.14,output:.28,cacheRead:.028,cacheWrite:0},contextWindow:1e6,maxTokens:384e3},"deepseek/deepseek-v4-pro":{id:"deepseek/deepseek-v4-pro",name:"DeepSeek V4 Pro",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.435,output:.87,cacheRead:.0036,cacheWrite:0},contextWindow:1e6,maxTokens:384e3},"google/gemini-2.5-flash":{id:"google/gemini-2.5-flash",name:"Gemini 2.5 Flash",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.3,output:2.5,cacheRead:.03,cacheWrite:0},contextWindow:1e6,maxTokens:65536},"google/gemini-2.5-flash-lite":{id:"google/gemini-2.5-flash-lite",name:"Gemini 2.5 Flash Lite",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.1,output:.4,cacheRead:.01,cacheWrite:0},contextWindow:1048576,maxTokens:65536},"google/gemini-2.5-pro":{id:"google/gemini-2.5-pro",name:"Gemini 2.5 Pro",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:1048576,maxTokens:65536},"google/gemini-3-flash":{id:"google/gemini-3-flash",name:"Gemini 3 Flash",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.5,output:3,cacheRead:.05,cacheWrite:0},contextWindow:1e6,maxTokens:65e3},"google/gemini-3-pro-preview":{id:"google/gemini-3-pro-preview",name:"Gemini 3 Pro Preview",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:0},contextWindow:1e6,maxTokens:64e3},"google/gemini-3.1-flash-lite":{id:"google/gemini-3.1-flash-lite",name:"Gemini 3.1 Flash Lite",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.25,output:1.5,cacheRead:.03,cacheWrite:0},contextWindow:1e6,maxTokens:65e3},"google/gemini-3.1-flash-lite-preview":{id:"google/gemini-3.1-flash-lite-preview",name:"Gemini 3.1 Flash Lite Preview",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.25,output:1.5,cacheRead:.03,cacheWrite:0},contextWindow:1e6,maxTokens:65e3},"google/gemini-3.1-pro-preview":{id:"google/gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:.2,cacheWrite:0},contextWindow:1e6,maxTokens:64e3},"google/gemini-3.5-flash":{id:"google/gemini-3.5-flash",name:"Gemini 3.5 Flash",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.5,output:9,cacheRead:.15,cacheWrite:0},contextWindow:1e6,maxTokens:64e3},"google/gemma-4-26b-a4b-it":{id:"google/gemma-4-26b-a4b-it",name:"Gemma 4 26B A4B IT",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.15,output:.6,cacheRead:.015,cacheWrite:0},contextWindow:262144,maxTokens:131072},"google/gemma-4-31b-it":{id:"google/gemma-4-31b-it",name:"Gemma 4 31B IT",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.14,output:.4,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:131072},"inception/mercury-2":{id:"inception/mercury-2",name:"Mercury 2",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.25,output:.75,cacheRead:.025,cacheWrite:0},contextWindow:128e3,maxTokens:128e3},"inception/mercury-coder-small":{id:"inception/mercury-coder-small",name:"Mercury Coder Small Beta",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.25,output:1,cacheRead:0,cacheWrite:0},contextWindow:32e3,maxTokens:16384},"interfaze/interfaze-beta":{id:"interfaze/interfaze-beta",name:"Interfaze Beta",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.5,output:3.5,cacheRead:0,cacheWrite:0},contextWindow:1e6,maxTokens:32e3},"kwaipilot/kat-coder-air-v2.5":{id:"kwaipilot/kat-coder-air-v2.5",name:"Kat Coder Air V2.5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.15,output:.6,cacheRead:.03,cacheWrite:0},contextWindow:256e3,maxTokens:8e4},"kwaipilot/kat-coder-pro-v1":{id:"kwaipilot/kat-coder-pro-v1",name:"KAT-Coder-Pro V1",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},contextWindow:256e3,maxTokens:32e3},"kwaipilot/kat-coder-pro-v2":{id:"kwaipilot/kat-coder-pro-v2",name:"Kat Coder Pro V2",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"kwaipilot/kat-coder-pro-v2.5":{id:"kwaipilot/kat-coder-pro-v2.5",name:"Kat Coder Pro V2.5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.74,output:2.96,cacheRead:.15,cacheWrite:0},contextWindow:256e3,maxTokens:8e4},"meta/llama-3.1-70b":{id:"meta/llama-3.1-70b",name:"Llama 3.1 70B Instruct",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.72,output:.72,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:8192},"meta/llama-3.1-8b":{id:"meta/llama-3.1-8b",name:"Llama 3.1 8B Instruct",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.22,output:.22,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:8192},"meta/llama-3.3-70b":{id:"meta/llama-3.3-70b",name:"Llama 3.3 70B Instruct",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.72,output:.72,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:8192},"meta/llama-4-maverick":{id:"meta/llama-4-maverick",name:"Llama 4 Maverick 17B Instruct",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.24,output:.97,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:8192},"meta/llama-4-scout":{id:"meta/llama-4-scout",name:"Llama 4 Scout 17B Instruct",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.17,output:.66,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:8192},"meta/muse-spark-1.1":{id:"meta/muse-spark-1.1",name:"Muse Spark 1.1",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:4.25,cacheRead:.15,cacheWrite:0},contextWindow:1048576,maxTokens:1048576},"minimax/minimax-m2":{id:"minimax/minimax-m2",name:"MiniMax M2",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.03,cacheWrite:.375},contextWindow:205e3,maxTokens:205e3},"minimax/minimax-m2.1":{id:"minimax/minimax-m2.1",name:"MiniMax M2.1",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.03,cacheWrite:.375},contextWindow:204800,maxTokens:131072},"minimax/minimax-m2.1-lightning":{id:"minimax/minimax-m2.1-lightning",name:"MiniMax M2.1 Lightning",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.3,output:2.4,cacheRead:.03,cacheWrite:.375},contextWindow:204800,maxTokens:131072},"minimax/minimax-m2.5":{id:"minimax/minimax-m2.5",name:"MiniMax M2.5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.03,cacheWrite:.375},contextWindow:204800,maxTokens:131e3},"minimax/minimax-m2.5-highspeed":{id:"minimax/minimax-m2.5-highspeed",name:"MiniMax M2.5 High Speed",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.6,output:2.4,cacheRead:.03,cacheWrite:.375},contextWindow:204800,maxTokens:131e3},"minimax/minimax-m2.7":{id:"minimax/minimax-m2.7",name:"MiniMax M2.7",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:.375},contextWindow:204800,maxTokens:131e3},"minimax/minimax-m2.7-highspeed":{id:"minimax/minimax-m2.7-highspeed",name:"MiniMax M2.7 High Speed",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.6,output:2.4,cacheRead:.06,cacheWrite:.375},contextWindow:204800,maxTokens:131100},"minimax/minimax-m3":{id:"minimax/minimax-m3",name:"MiniMax M3",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.3,output:1.2,cacheRead:.06,cacheWrite:0},contextWindow:1e6,maxTokens:1e6},"mistral/codestral":{id:"mistral/codestral",name:"Mistral Codestral",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.3,output:.9,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4e3},"mistral/devstral-2":{id:"mistral/devstral-2",name:"Devstral 2",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.4,output:2,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"mistral/devstral-small-2":{id:"mistral/devstral-small-2",name:"Devstral Small 2",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.1,output:.3,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"mistral/magistral-medium":{id:"mistral/magistral-medium",name:"Magistral Medium 2509",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:2,output:5,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:64e3},"mistral/magistral-small":{id:"mistral/magistral-small",name:"Magistral Small 2509",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.5,output:1.5,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:64e3},"mistral/ministral-14b":{id:"mistral/ministral-14b",name:"Ministral 14B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.2,output:.2,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"mistral/ministral-3b":{id:"mistral/ministral-3b",name:"Ministral 3B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.1,output:.1,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4e3},"mistral/ministral-8b":{id:"mistral/ministral-8b",name:"Ministral 8B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.15,output:.15,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4e3},"mistral/mistral-large-3":{id:"mistral/mistral-large-3",name:"Mistral Large 3",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.5,output:1.5,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"mistral/mistral-medium":{id:"mistral/mistral-medium",name:"Mistral Medium 3.1",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.4,output:2,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:64e3},"mistral/mistral-medium-3.5":{id:"mistral/mistral-medium-3.5",name:"Mistral Medium Latest",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.5,output:7.5,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"mistral/mistral-nemo":{id:"mistral/mistral-nemo",name:"Mistral Nemo 12B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.15,output:.15,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:128e3},"mistral/mistral-small":{id:"mistral/mistral-small",name:"Mistral Small",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.1,output:.3,cacheRead:0,cacheWrite:0},contextWindow:32e3,maxTokens:4e3},"mistral/pixtral-12b":{id:"mistral/pixtral-12b",name:"Pixtral 12B 2409",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.15,output:.15,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4e3},"moonshotai/kimi-k2":{id:"moonshotai/kimi-k2",name:"Kimi K2 Instruct",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.57,output:2.3,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:131072},"moonshotai/kimi-k2-thinking":{id:"moonshotai/kimi-k2-thinking",name:"Kimi K2 Thinking",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.47,output:2,cacheRead:.141,cacheWrite:0},contextWindow:216144,maxTokens:216144},"moonshotai/kimi-k2.5":{id:"moonshotai/kimi-k2.5",name:"Kimi K2.5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.6,output:3,cacheRead:.1,cacheWrite:0},contextWindow:262114,maxTokens:262114},"moonshotai/kimi-k2.6":{id:"moonshotai/kimi-k2.6",name:"Kimi K2.6",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.16,cacheWrite:0},contextWindow:262e3,maxTokens:262e3},"moonshotai/kimi-k2.7-code":{id:"moonshotai/kimi-k2.7-code",name:"Kimi K2.7 Code",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.95,output:4,cacheRead:.19,cacheWrite:0},contextWindow:256e3,maxTokens:32768},"moonshotai/kimi-k2.7-code-highspeed":{id:"moonshotai/kimi-k2.7-code-highspeed",name:"Kimi K2.7 Code High Speed",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.9,output:8,cacheRead:.38,cacheWrite:0},contextWindow:262144,maxTokens:32768},"moonshotai/kimi-k3":{id:"moonshotai/kimi-k3",name:"Kimi K3",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:0},contextWindow:1e6,maxTokens:131072},"nvidia/nemotron-3-nano-30b-a3b":{id:"nvidia/nemotron-3-nano-30b-a3b",name:"Nemotron 3 Nano 30B A3B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.05,output:.24,cacheRead:0,cacheWrite:0},contextWindow:262144,maxTokens:262144},"nvidia/nemotron-3-super-120b-a12b":{id:"nvidia/nemotron-3-super-120b-a12b",name:"NVIDIA Nemotron 3 Super 120B A12B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.15,output:.65,cacheRead:0,cacheWrite:0},contextWindow:256e3,maxTokens:32e3},"nvidia/nemotron-3-ultra-550b-a55b":{id:"nvidia/nemotron-3-ultra-550b-a55b",name:"Nemotron 3 Ultra",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.6,output:2.4,cacheRead:.12,cacheWrite:0},contextWindow:1e6,maxTokens:65e3},"nvidia/nemotron-nano-12b-v2-vl":{id:"nvidia/nemotron-nano-12b-v2-vl",name:"Nvidia Nemotron Nano 12B V2 VL",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.2,output:.6,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:131072},"nvidia/nemotron-nano-9b-v2":{id:"nvidia/nemotron-nano-9b-v2",name:"Nvidia Nemotron Nano 9B V2",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.06,output:.23,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:131072},"openai/gpt-3.5-turbo":{id:"openai/gpt-3.5-turbo",name:"GPT-3.5 Turbo",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text"],cost:{input:.5,output:1.5,cacheRead:0,cacheWrite:0},contextWindow:16385,maxTokens:4096},"openai/gpt-4-turbo":{id:"openai/gpt-4-turbo",name:"GPT-4 Turbo",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:10,output:30,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:4096},"openai/gpt-4.1":{id:"openai/gpt-4.1",name:"GPT-4.1",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:1047576,maxTokens:32768},"openai/gpt-4.1-mini":{id:"openai/gpt-4.1-mini",name:"GPT-4.1 mini",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.4,output:1.6,cacheRead:.1,cacheWrite:0},contextWindow:1047576,maxTokens:32768},"openai/gpt-4.1-nano":{id:"openai/gpt-4.1-nano",name:"GPT-4.1 nano",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.1,output:.4,cacheRead:.025,cacheWrite:0},contextWindow:1047576,maxTokens:32768},"openai/gpt-4o":{id:"openai/gpt-4o",name:"GPT-4o",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"openai/gpt-4o-mini":{id:"openai/gpt-4o-mini",name:"GPT-4o mini",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.15,output:.6,cacheRead:.075,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"openai/gpt-5":{id:"openai/gpt-5",name:"GPT-5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3},"openai/gpt-5-chat":{id:"openai/gpt-5-chat",name:"GPT 5 Chat",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"openai/gpt-5-codex":{id:"openai/gpt-5-codex",name:"GPT-5-Codex",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3},"openai/gpt-5-mini":{id:"openai/gpt-5-mini",name:"GPT-5 mini",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.025,cacheWrite:0},contextWindow:4e5,maxTokens:128e3},"openai/gpt-5-nano":{id:"openai/gpt-5-nano",name:"GPT-5 nano",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.05,output:.4,cacheRead:.005,cacheWrite:0},contextWindow:4e5,maxTokens:128e3},"openai/gpt-5-pro":{id:"openai/gpt-5-pro",name:"GPT-5 pro",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:15,output:120,cacheRead:0,cacheWrite:0},contextWindow:4e5,maxTokens:272e3},"openai/gpt-5.1-codex":{id:"openai/gpt-5.1-codex",name:"GPT-5.1-Codex",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3},"openai/gpt-5.1-codex-max":{id:"openai/gpt-5.1-codex-max",name:"GPT 5.1 Codex Max",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3},"openai/gpt-5.1-codex-mini":{id:"openai/gpt-5.1-codex-mini",name:"GPT 5.1 Codex Mini",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.025,cacheWrite:0},contextWindow:4e5,maxTokens:128e3},"openai/gpt-5.1-instant":{id:"openai/gpt-5.1-instant",name:"GPT-5.1 Instant",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:128e3,maxTokens:16384},"openai/gpt-5.1-thinking":{id:"openai/gpt-5.1-thinking",name:"GPT 5.1 Thinking",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3},"openai/gpt-5.2":{id:"openai/gpt-5.2",name:"GPT 5.2",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.2-chat":{id:"openai/gpt-5.2-chat",name:"GPT 5.2 Chat",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.2-codex":{id:"openai/gpt-5.2-codex",name:"GPT 5.2 Codex",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.2-pro":{id:"openai/gpt-5.2-pro",name:"GPT 5.2 ",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:21,output:168,cacheRead:0,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.3-chat":{id:"openai/gpt-5.3-chat",name:"GPT-5.3 Chat",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:128e3,maxTokens:16384,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.3-codex":{id:"openai/gpt-5.3-codex",name:"GPT 5.3 Codex",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.4":{id:"openai/gpt-5.4",name:"GPT 5.4",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.4-mini":{id:"openai/gpt-5.4-mini",name:"GPT 5.4 Mini",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.75,output:4.5,cacheRead:.075,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.4-nano":{id:"openai/gpt-5.4-nano",name:"GPT 5.4 Nano",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.2,output:1.25,cacheRead:.02,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.4-pro":{id:"openai/gpt-5.4-pro",name:"GPT 5.4 Pro",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:30,output:180,cacheRead:0,cacheWrite:0},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.5":{id:"openai/gpt-5.5",name:"GPT 5.5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.5-pro":{id:"openai/gpt-5.5-pro",name:"GPT 5.5 Pro",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:30,output:180,cacheRead:0,cacheWrite:0},contextWindow:1e6,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh",off:null,minimal:null,low:null}},"openai/gpt-5.6-luna":{id:"openai/gpt-5.6-luna",name:"GPT 5.6 Luna",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1,output:6,cacheRead:.1,cacheWrite:1.25},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.6-sol":{id:"openai/gpt-5.6-sol",name:"GPT 5.6 Sol",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:6.25},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-5.6-terra":{id:"openai/gpt-5.6-terra",name:"GPT 5.6 Terra",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:3.125},contextWindow:105e4,maxTokens:128e3,thinkingLevelMap:{xhigh:"xhigh"}},"openai/gpt-oss-120b":{id:"openai/gpt-oss-120b",name:"GPT OSS 120B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.1,output:.5,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:131072},"openai/gpt-oss-20b":{id:"openai/gpt-oss-20b",name:"GPT OSS 20B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.05,output:.2,cacheRead:0,cacheWrite:0},contextWindow:131072,maxTokens:8192},"openai/gpt-oss-safeguard-20b":{id:"openai/gpt-oss-safeguard-20b",name:"GPT OSS Safeguard 20B",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.075,output:.3,cacheRead:.037,cacheWrite:0},contextWindow:131072,maxTokens:65536},"openai/o1":{id:"openai/o1",name:"o1",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:15,output:60,cacheRead:7.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"openai/o3":{id:"openai/o3",name:"o3",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"openai/o3-deep-research":{id:"openai/o3-deep-research",name:"o3-deep-research",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:10,output:40,cacheRead:2.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"openai/o3-mini":{id:"openai/o3-mini",name:"o3-mini",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:1.1,output:4.4,cacheRead:.55,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"openai/o3-pro":{id:"openai/o3-pro",name:"o3 Pro",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:20,output:80,cacheRead:0,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"openai/o4-mini":{id:"openai/o4-mini",name:"o4-mini",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.1,output:4.4,cacheRead:.275,cacheWrite:0},contextWindow:2e5,maxTokens:1e5},"sakana/fugu-ultra":{id:"sakana/fugu-ultra",name:"Fugu Ultra",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0},contextWindow:1e6,maxTokens:1e6},"stepfun/step-3.5-flash":{id:"stepfun/step-3.5-flash",name:"StepFun 3.5 Flash",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.09,output:.3,cacheRead:.02,cacheWrite:0},contextWindow:262114,maxTokens:262114},"stepfun/step-3.7-flash":{id:"stepfun/step-3.7-flash",name:"Step 3.7 Flash",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.2,output:1.15,cacheRead:.04,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"thinkingmachines/inkling":{id:"thinkingmachines/inkling",name:"Inkling",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1,output:4.05,cacheRead:.17,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"xai/grok-4.1-fast-non-reasoning":{id:"xai/grok-4.1-fast-non-reasoning",name:"Grok 4.1 Fast Non-Reasoning",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:.2,output:.5,cacheRead:.05,cacheWrite:0},contextWindow:1e6,maxTokens:1e6},"xai/grok-4.1-fast-reasoning":{id:"xai/grok-4.1-fast-reasoning",name:"Grok 4.1 Fast Reasoning",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.2,output:.5,cacheRead:.05,cacheWrite:0},contextWindow:1e6,maxTokens:1e6},"xai/grok-4.20-multi-agent":{id:"xai/grok-4.20-multi-agent",name:"Grok 4.20 Multi-Agent",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:2.5,cacheRead:.2,cacheWrite:0},contextWindow:2e6,maxTokens:2e6},"xai/grok-4.20-multi-agent-beta":{id:"xai/grok-4.20-multi-agent-beta",name:"Grok 4.20 Multi Agent Beta",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:2.5,cacheRead:.2,cacheWrite:0},contextWindow:2e6,maxTokens:2e6},"xai/grok-4.20-non-reasoning":{id:"xai/grok-4.20-non-reasoning",name:"Grok 4.20 Non-Reasoning",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:1.25,output:2.5,cacheRead:.2,cacheWrite:0},contextWindow:2e6,maxTokens:2e6},"xai/grok-4.20-non-reasoning-beta":{id:"xai/grok-4.20-non-reasoning-beta",name:"Grok 4.20 Beta Non-Reasoning",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!1,input:["text","image"],cost:{input:1.25,output:2.5,cacheRead:.2,cacheWrite:0},contextWindow:2e6,maxTokens:2e6},"xai/grok-4.20-reasoning":{id:"xai/grok-4.20-reasoning",name:"Grok 4.20 Reasoning",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:2.5,cacheRead:.2,cacheWrite:0},contextWindow:2e6,maxTokens:2e6},"xai/grok-4.20-reasoning-beta":{id:"xai/grok-4.20-reasoning-beta",name:"Grok 4.20 Beta Reasoning",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:2.5,cacheRead:.2,cacheWrite:0},contextWindow:2e6,maxTokens:2e6},"xai/grok-4.3":{id:"xai/grok-4.3",name:"Grok 4.3",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.25,output:2.5,cacheRead:.2,cacheWrite:0},contextWindow:1e6,maxTokens:1e6},"xai/grok-4.5":{id:"xai/grok-4.5",name:"Grok 4.5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:2,output:6,cacheRead:.5,cacheWrite:0},contextWindow:5e5,maxTokens:5e5},"xai/grok-build-0.1":{id:"xai/grok-build-0.1",name:"Grok Build 0.1",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1,output:2,cacheRead:.2,cacheWrite:0},contextWindow:256e3,maxTokens:256e3},"xiaomi/mimo-v2.5":{id:"xiaomi/mimo-v2.5",name:"MiMo M2.5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.14,output:.28,cacheRead:.0028,cacheWrite:0},contextWindow:105e4,maxTokens:131100},"xiaomi/mimo-v2.5-pro":{id:"xiaomi/mimo-v2.5-pro",name:"MiMo V2.5 Pro",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.435,output:.87,cacheRead:.0036,cacheWrite:0},contextWindow:105e4,maxTokens:131e3},"zai/glm-4.5":{id:"zai/glm-4.5",name:"GLM 4.5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.6,output:2.2,cacheRead:.11,cacheWrite:0},contextWindow:128e3,maxTokens:96e3},"zai/glm-4.5-air":{id:"zai/glm-4.5-air",name:"GLM 4.5 Air",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.2,output:1.1,cacheRead:.03,cacheWrite:0},contextWindow:128e3,maxTokens:96e3},"zai/glm-4.5v":{id:"zai/glm-4.5v",name:"GLM 4.5V",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.6,output:1.8,cacheRead:.11,cacheWrite:0},contextWindow:66e3,maxTokens:16e3},"zai/glm-4.6":{id:"zai/glm-4.6",name:"GLM 4.6",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.6,output:2.2,cacheRead:.11,cacheWrite:0},contextWindow:2e5,maxTokens:96e3},"zai/glm-4.6v":{id:"zai/glm-4.6v",name:"GLM-4.6V",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:.3,output:.9,cacheRead:.05,cacheWrite:0},contextWindow:128e3,maxTokens:24e3},"zai/glm-4.6v-flash":{id:"zai/glm-4.6v-flash",name:"GLM-4.6V-Flash",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:128e3,maxTokens:24e3},"zai/glm-4.7":{id:"zai/glm-4.7",name:"GLM 4.7",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.6,output:2.2,cacheRead:.12,cacheWrite:0},contextWindow:2e5,maxTokens:12e4},"zai/glm-4.7-flash":{id:"zai/glm-4.7-flash",name:"GLM 4.7 Flash",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.07,output:.4,cacheRead:0,cacheWrite:0},contextWindow:2e5,maxTokens:131e3},"zai/glm-4.7-flashx":{id:"zai/glm-4.7-flashx",name:"GLM 4.7 FlashX",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.06,output:.4,cacheRead:.01,cacheWrite:0},contextWindow:2e5,maxTokens:128e3},"zai/glm-5":{id:"zai/glm-5",name:"GLM 5",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:.95,output:3.15,cacheRead:.2,cacheWrite:0},contextWindow:202800,maxTokens:131100},"zai/glm-5-turbo":{id:"zai/glm-5-turbo",name:"GLM 5 Turbo",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:1.2,output:4,cacheRead:.24,cacheWrite:0},contextWindow:202800,maxTokens:131100},"zai/glm-5.1":{id:"zai/glm-5.1",name:"GLM 5.1",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:1.3,output:4.3,cacheRead:.26,cacheWrite:0},contextWindow:202e3,maxTokens:202e3},"zai/glm-5.2":{id:"zai/glm-5.2",name:"GLM 5.2",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:1.4,output:4.4,cacheRead:.26,cacheWrite:0},contextWindow:104e4,maxTokens:128e3},"zai/glm-5.2-fast":{id:"zai/glm-5.2-fast",name:"GLM 5.2 Fast",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text"],cost:{input:2.1,output:6.6,cacheRead:.21,cacheWrite:0},contextWindow:1e6,maxTokens:128e3},"zai/glm-5v-turbo":{id:"zai/glm-5v-turbo",name:"GLM 5V Turbo",api:"anthropic-messages",baseUrl:"https://ai-gateway.vercel.sh",provider:"vercel-ai-gateway",reasoning:!0,input:["text","image"],cost:{input:1.2,output:4,cacheRead:.24,cacheWrite:0},contextWindow:2e5,maxTokens:128e3}};var BC=NC;var jC={"grok-4.3":{id:"grok-4.3",name:"Grok 4.3",api:"openai-completions",provider:"xai",baseUrl:"https://api.x.ai/v1",reasoning:!0,input:["text","image"],cost:{input:1.25,output:2.5,cacheRead:.2,cacheWrite:0},contextWindow:1e6,maxTokens:3e4,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1}},"grok-4.5":{id:"grok-4.5",name:"Grok 4.5",api:"openai-responses",provider:"xai",baseUrl:"https://api.x.ai/v1",compat:{supportsLongCacheRetention:!1},reasoning:!0,input:["text","image"],cost:{input:2,output:6,cacheRead:.3,cacheWrite:0},contextWindow:5e5,maxTokens:5e5,thinkingLevelMap:{off:null,minimal:null}},"grok-build-0.1":{id:"grok-build-0.1",name:"Grok Build 0.1",api:"openai-completions",provider:"xai",baseUrl:"https://api.x.ai/v1",reasoning:!0,input:["text","image"],cost:{input:1,output:2,cacheRead:.2,cacheWrite:0},contextWindow:256e3,maxTokens:256e3,compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1}}};var qC=jC;var KC={"mimo-v2-flash":{id:"mimo-v2-flash",name:"MiMo-V2-Flash",api:"openai-completions",provider:"xiaomi",baseUrl:"https://api.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text"],cost:{input:.14,output:.28,cacheRead:.0028,cacheWrite:0},contextWindow:262144,maxTokens:65536},"mimo-v2-omni":{id:"mimo-v2-omni",name:"MiMo-V2-Omni",api:"openai-completions",provider:"xiaomi",baseUrl:"https://api.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text","image"],cost:{input:.14,output:.28,cacheRead:.0028,cacheWrite:0},contextWindow:262144,maxTokens:131072},"mimo-v2-pro":{id:"mimo-v2-pro",name:"MiMo-V2-Pro",api:"openai-completions",provider:"xiaomi",baseUrl:"https://api.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text"],cost:{input:.435,output:.87,cacheRead:.0036,cacheWrite:0},contextWindow:1048576,maxTokens:131072},"mimo-v2.5":{id:"mimo-v2.5",name:"MiMo-V2.5",api:"openai-completions",provider:"xiaomi",baseUrl:"https://api.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text","image"],cost:{input:.14,output:.28,cacheRead:.0028,cacheWrite:0},contextWindow:1048576,maxTokens:131072},"mimo-v2.5-pro":{id:"mimo-v2.5-pro",name:"MiMo-V2.5-Pro",api:"openai-completions",provider:"xiaomi",baseUrl:"https://api.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text"],cost:{input:.435,output:.87,cacheRead:.0036,cacheWrite:0},contextWindow:1048576,maxTokens:131072},"mimo-v2.5-pro-ultraspeed":{id:"mimo-v2.5-pro-ultraspeed",name:"MiMo-V2.5-Pro-UltraSpeed",api:"openai-completions",provider:"xiaomi",baseUrl:"https://api.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text"],cost:{input:1.305,output:2.61,cacheRead:.0108,cacheWrite:0},contextWindow:1048576,maxTokens:131072}};var GC=KC;var zC={"mimo-v2-pro":{id:"mimo-v2-pro",name:"MiMo-V2-Pro",api:"openai-completions",provider:"xiaomi-token-plan-ams",baseUrl:"https://token-plan-ams.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:1048576,maxTokens:131072},"mimo-v2.5":{id:"mimo-v2.5",name:"MiMo-V2.5",api:"openai-completions",provider:"xiaomi-token-plan-ams",baseUrl:"https://token-plan-ams.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:1048576,maxTokens:131072},"mimo-v2.5-pro":{id:"mimo-v2.5-pro",name:"MiMo-V2.5-Pro",api:"openai-completions",provider:"xiaomi-token-plan-ams",baseUrl:"https://token-plan-ams.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:1048576,maxTokens:131072}};var HC=zC;var VC={"mimo-v2-pro":{id:"mimo-v2-pro",name:"MiMo-V2-Pro",api:"openai-completions",provider:"xiaomi-token-plan-cn",baseUrl:"https://token-plan-cn.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:1048576,maxTokens:131072},"mimo-v2.5":{id:"mimo-v2.5",name:"MiMo-V2.5",api:"openai-completions",provider:"xiaomi-token-plan-cn",baseUrl:"https://token-plan-cn.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:1048576,maxTokens:131072},"mimo-v2.5-pro":{id:"mimo-v2.5-pro",name:"MiMo-V2.5-Pro",api:"openai-completions",provider:"xiaomi-token-plan-cn",baseUrl:"https://token-plan-cn.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:1048576,maxTokens:131072}};var QC=VC;var JC={"mimo-v2-pro":{id:"mimo-v2-pro",name:"MiMo-V2-Pro",api:"openai-completions",provider:"xiaomi-token-plan-sgp",baseUrl:"https://token-plan-sgp.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:1048576,maxTokens:131072},"mimo-v2.5":{id:"mimo-v2.5",name:"MiMo-V2.5",api:"openai-completions",provider:"xiaomi-token-plan-sgp",baseUrl:"https://token-plan-sgp.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:1048576,maxTokens:131072},"mimo-v2.5-pro":{id:"mimo-v2.5-pro",name:"MiMo-V2.5-Pro",api:"openai-completions",provider:"xiaomi-token-plan-sgp",baseUrl:"https://token-plan-sgp.xiaomimimo.com/v1",compat:{requiresReasoningContentOnAssistantMessages:!0,thinkingFormat:"deepseek"},reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:1048576,maxTokens:131072}};var YC=JC;var XC={"glm-4.5-air":{id:"glm-4.5-air",name:"GLM-4.5-Air",api:"openai-completions",provider:"zai",baseUrl:"https://api.z.ai/api/coding/paas/v4",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,thinkingFormat:"zai"},contextWindow:131072,maxTokens:98304},"glm-4.7":{id:"glm-4.7",name:"GLM-4.7",api:"openai-completions",provider:"zai",baseUrl:"https://api.z.ai/api/coding/paas/v4",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,thinkingFormat:"zai",zaiToolStream:!0},contextWindow:204800,maxTokens:131072},"glm-5-turbo":{id:"glm-5-turbo",name:"GLM-5-Turbo",api:"openai-completions",provider:"zai",baseUrl:"https://api.z.ai/api/coding/paas/v4",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,thinkingFormat:"zai",zaiToolStream:!0},contextWindow:2e5,maxTokens:131072},"glm-5.1":{id:"glm-5.1",name:"GLM-5.1",api:"openai-completions",provider:"zai",baseUrl:"https://api.z.ai/api/coding/paas/v4",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,thinkingFormat:"zai",zaiToolStream:!0},contextWindow:2e5,maxTokens:131072},"glm-5.2":{id:"glm-5.2",name:"GLM-5.2",api:"openai-completions",provider:"zai",baseUrl:"https://api.z.ai/api/coding/paas/v4",reasoning:!0,thinkingLevelMap:{minimal:null,low:"high",medium:"high",high:"high",max:"max"},input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!0,thinkingFormat:"zai",zaiToolStream:!0},contextWindow:1e6,maxTokens:131072},"glm-5v-turbo":{id:"glm-5v-turbo",name:"GLM-5V-Turbo",api:"openai-completions",provider:"zai",baseUrl:"https://api.z.ai/api/coding/paas/v4",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,thinkingFormat:"zai",zaiToolStream:!0},contextWindow:2e5,maxTokens:131072}};var ZC=XC;var e1={"glm-4.5-air":{id:"glm-4.5-air",name:"GLM-4.5-Air",api:"openai-completions",provider:"zai-coding-cn",baseUrl:"https://open.bigmodel.cn/api/coding/paas/v4",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,thinkingFormat:"zai"},contextWindow:131072,maxTokens:98304},"glm-4.7":{id:"glm-4.7",name:"GLM-4.7",api:"openai-completions",provider:"zai-coding-cn",baseUrl:"https://open.bigmodel.cn/api/coding/paas/v4",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,thinkingFormat:"zai",zaiToolStream:!0},contextWindow:204800,maxTokens:131072},"glm-5-turbo":{id:"glm-5-turbo",name:"GLM-5-Turbo",api:"openai-completions",provider:"zai-coding-cn",baseUrl:"https://open.bigmodel.cn/api/coding/paas/v4",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,thinkingFormat:"zai",zaiToolStream:!0},contextWindow:2e5,maxTokens:131072},"glm-5.1":{id:"glm-5.1",name:"GLM-5.1",api:"openai-completions",provider:"zai-coding-cn",baseUrl:"https://open.bigmodel.cn/api/coding/paas/v4",reasoning:!0,input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,thinkingFormat:"zai",zaiToolStream:!0},contextWindow:2e5,maxTokens:131072},"glm-5.2":{id:"glm-5.2",name:"GLM-5.2",api:"openai-completions",provider:"zai-coding-cn",baseUrl:"https://open.bigmodel.cn/api/coding/paas/v4",reasoning:!0,thinkingLevelMap:{minimal:null,low:"high",medium:"high",high:"high",max:"max"},input:["text"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!0,thinkingFormat:"zai",zaiToolStream:!0},contextWindow:1e6,maxTokens:131072},"glm-5v-turbo":{id:"glm-5v-turbo",name:"GLM-5V-Turbo",api:"openai-completions",provider:"zai-coding-cn",baseUrl:"https://open.bigmodel.cn/api/coding/paas/v4",reasoning:!0,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},compat:{supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,thinkingFormat:"zai",zaiToolStream:!0},contextWindow:2e5,maxTokens:131072}};var t1=e1;be();be();var VU={name:"AWS credentials or bearer token",login:async t=>{let e=await t.prompt({type:"select",message:"Select Amazon Bedrock authentication method:",options:[{id:"bearer-token",label:"Bearer token"},{id:"aws-profile",label:"AWS profile"},{id:"credential-chain",label:"Existing AWS credential chain"}]});if(e==="bearer-token")return{type:"api_key",key:await t.prompt({type:"secret",message:"Enter Amazon Bedrock bearer token"})};if(t.notify({type:"info",message:"Amazon Bedrock supports AWS profiles, IAM credentials, and role-based credentials.",links:[{label:"AWS credential provider chain",url:"https://docs.aws.amazon.com/sdkref/latest/guide/standardized-credentials.html"}]}),e==="aws-profile")return{type:"api_key",env:{AWS_PROFILE:await t.prompt({type:"text",message:"Enter AWS profile name"})}};if(e!=="credential-chain")throw new Error(`Unknown Amazon Bedrock auth method: ${e}`);return await t.prompt({type:"text",message:"Configure AWS credentials, then press Enter to continue"}),{type:"api_key"}},resolve:async({ctx:t,credential:e})=>{if(e?.key)return{auth:{apiKey:e.key},source:"stored credential"};if(await t.env("AWS_BEARER_TOKEN_BEDROCK"))return{auth:{},source:"AWS_BEARER_TOKEN_BEDROCK"};if(e?.env?.AWS_PROFILE??await t.env("AWS_PROFILE"))return{auth:{},env:e?.env,source:e?.env?.AWS_PROFILE?"stored credential":"AWS_PROFILE"};if(await t.env("AWS_ACCESS_KEY_ID")&&await t.env("AWS_SECRET_ACCESS_KEY"))return{auth:{},source:"AWS access keys"};if(await t.env("AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"))return{auth:{},source:"ECS task role"};if(await t.env("AWS_CONTAINER_CREDENTIALS_FULL_URI"))return{auth:{},source:"ECS task role"};if(await t.env("AWS_WEB_IDENTITY_TOKEN_FILE"))return{auth:{},source:"web identity token"}}};function n1(){return Y({id:"amazon-bedrock",name:"Amazon Bedrock",auth:{apiKey:VU},models:Object.values(BT),api:Vd()})}be();function i1(){return Y({id:"ant-ling",name:"Ant Ling",baseUrl:"https://api.ant-ling.com/v1",auth:{apiKey:ne("Ant Ling API key",["ANT_LING_API_KEY"])},models:Object.values(qT),api:ve()})}var kc=t=>import(import.meta.url.endsWith(".js")?t.replace(/\.ts$/,".js"):t),wi;var o1=async()=>wi?wi.anthropic():(await kc("./anthropic.ts")).anthropicOAuth,r1=async()=>wi?wi.openaiCodex():(await kc("./openai-codex.ts")).openaiCodexOAuth,s1=async()=>wi?wi.githubCopilot():(await kc("./github-copilot.ts")).githubCopilotOAuth,a1=async()=>wi?wi.xai():(await kc("./xai.ts")).xaiOAuth,l1=async t=>wi?wi.radius(t):(await kc("./radius.ts")).createRadiusOAuth(t);be();function c1(){return Y({id:"anthropic",name:"Anthropic",baseUrl:"https://api.anthropic.com",auth:{apiKey:ne("Anthropic API key",["ANTHROPIC_OAUTH_TOKEN","ANTHROPIC_API_KEY"]),oauth:yi({name:"Anthropic (Claude Pro/Max)",load:o1})},models:Object.values(GT),api:at()})}be();function u1(){return Y({id:"azure-openai-responses",name:"Azure OpenAI",auth:{apiKey:ne("Azure OpenAI API key",["AZURE_OPENAI_API_KEY"])},models:Object.values(HT),api:Hd()})}be();function d1(){return Y({id:"cerebras",name:"Cerebras",baseUrl:"https://api.cerebras.ai/v1",auth:{apiKey:ne("Cerebras API key",["CEREBRAS_API_KEY"])},models:Object.values(QT),api:ve()})}be();var Wf="CLOUDFLARE_API_KEY",QU="CLOUDFLARE_ACCOUNT_ID",JU="CLOUDFLARE_GATEWAY_ID";async function Lf(t,e,n){return(n?t===Wf?n.key:n.env?.[t]:void 0)??await e.env(t)}async function p1(t,e,n){let i=await Lf(Wf,e,n),o=await Lf(QU,e,n),r=t==="ai-gateway"?await Lf(JU,e,n):void 0;if(!(!i||!o||t==="ai-gateway"&&!r))return{apiKey:i,env:{CLOUDFLARE_ACCOUNT_ID:o,...r?{CLOUDFLARE_GATEWAY_ID:r}:{}},source:n?"stored credential":Wf}}function m1(){return{name:"Cloudflare API key",login:async t=>{let e=await t.prompt({type:"secret",message:"Enter Cloudflare API key"}),n=await t.prompt({type:"text",message:"Enter Cloudflare account ID"});return{type:"api_key",key:e,env:{CLOUDFLARE_ACCOUNT_ID:n}}},resolve:async({ctx:t,credential:e})=>{let n=await p1("workers-ai",t,e);if(n)return{auth:{apiKey:n.apiKey},env:n.env,source:n.source}}}}function h1(){return{name:"Cloudflare API key",login:async t=>{let e=await t.prompt({type:"secret",message:"Enter Cloudflare API key"}),n=await t.prompt({type:"text",message:"Enter Cloudflare account ID"}),i=await t.prompt({type:"text",message:"Enter Cloudflare AI Gateway ID"});return{type:"api_key",key:e,env:{CLOUDFLARE_ACCOUNT_ID:n,CLOUDFLARE_GATEWAY_ID:i}}},resolve:async({ctx:t,credential:e})=>{let n=await p1("ai-gateway",t,e);if(n)return{auth:{headers:{"cf-aig-authorization":`Bearer ${n.apiKey}`,Authorization:null,"x-api-key":null}},env:n.env,source:n.source}}}}var Ff="CLOUDFLARE_ACCOUNT_ID",Df="CLOUDFLARE_GATEWAY_ID";function g1(t,e){if(!e)return t;let n=t.baseUrl.replaceAll(`{${Ff}}`,e[Ff]??`{${Ff}}`).replaceAll(`{${Df}}`,e[Df]??`{${Df}}`);return n===t.baseUrl?t:{...t,baseUrl:n}}function Aa(t){return{stream:(e,n,i)=>t.stream(g1(e,i?.env),n,i),streamSimple:(e,n,i)=>t.streamSimple(g1(e,i?.env),n,i)}}function f1(){return Y({id:"cloudflare-ai-gateway",name:"Cloudflare AI Gateway",auth:{apiKey:h1()},models:Object.values(YT),api:{"anthropic-messages":Aa(at()),"openai-completions":Aa(ve()),"openai-responses":Aa(Un())}})}be();function v1(){return Y({id:"cloudflare-workers-ai",name:"Cloudflare Workers AI",auth:{apiKey:m1()},models:Object.values(ZT),api:Aa(ve())})}be();function b1(){return Y({id:"deepseek",name:"DeepSeek",baseUrl:"https://api.deepseek.com",auth:{apiKey:ne("DeepSeek API key",["DEEPSEEK_API_KEY"])},models:Object.values(tC),api:ve()})}be();function x1(){return Y({id:"fireworks",name:"Fireworks",baseUrl:"https://api.fireworks.ai/inference",auth:{apiKey:ne("Fireworks API key",["FIREWORKS_API_KEY"])},models:Object.values(iC),api:{"anthropic-messages":at(),"openai-completions":ve()}})}be();function y1(){return Y({id:"github-copilot",name:"GitHub Copilot",baseUrl:"https://api.individual.githubcopilot.com",auth:{apiKey:ne("GitHub Copilot token",["COPILOT_GITHUB_TOKEN"]),oauth:yi({name:"GitHub Copilot",load:s1})},models:Object.values(rC),filterModels:(t,e)=>{if(e?.type!=="oauth")return t;let n=e.availableModelIds;if(!Array.isArray(n)||!n.every(o=>typeof o=="string"))return t;let i=new Set(n);return t.filter(o=>i.has(o.id))},api:{"anthropic-messages":at(),"openai-completions":ve(),"openai-responses":Un()}})}be();function w1(){return Y({id:"google",name:"Google",baseUrl:"https://generativelanguage.googleapis.com/v1beta",auth:{apiKey:ne("Gemini API key",["GEMINI_API_KEY"])},models:Object.values(aC),api:Pa()})}be();var YU="~/.config/gcloud/application_default_credentials.json",XU={name:"Google Cloud credentials",login:async t=>{let e=await t.prompt({type:"select",message:"Select Google Vertex AI authentication method:",options:[{id:"api-key",label:"Google Cloud API key"},{id:"adc",label:"Application Default Credentials"},{id:"service-account",label:"Service account credentials file"}]});if(e==="api-key")return{type:"api_key",key:await t.prompt({type:"secret",message:"Enter Google Cloud API key"})};if(e!=="adc"&&e!=="service-account")throw new Error(`Unknown Google Vertex AI auth method: ${e}`);t.notify({type:"info",message:e==="adc"?"Run `gcloud auth application-default login`, then provide the project and location.":"Provide a service account credentials file, project, and location.",links:[{label:"Application Default Credentials",url:"https://cloud.google.com/docs/authentication/provide-credentials-adc"}]});let n=await t.prompt({type:"text",message:"Enter Google Cloud project ID"}),i=await t.prompt({type:"text",message:"Enter Google Cloud location"}),o=e==="service-account"?await t.prompt({type:"text",message:"Enter service account credentials file path"}):void 0;return{type:"api_key",env:{GOOGLE_CLOUD_PROJECT:n,GOOGLE_CLOUD_LOCATION:i,...o?{GOOGLE_APPLICATION_CREDENTIALS:o}:{}}}},resolve:async({ctx:t,credential:e})=>{let n=e?.key??await t.env("GOOGLE_CLOUD_API_KEY");if(n)return{auth:{apiKey:n},source:e?.key?"stored credential":"GOOGLE_CLOUD_API_KEY"};let i=e?.env?.GOOGLE_APPLICATION_CREDENTIALS??await t.env("GOOGLE_APPLICATION_CREDENTIALS"),o=await t.fileExists(i??YU),r=e?.env?.GOOGLE_CLOUD_PROJECT??await t.env("GOOGLE_CLOUD_PROJECT")??await t.env("GCLOUD_PROJECT"),s=e?.env?.GOOGLE_CLOUD_LOCATION??await t.env("GOOGLE_CLOUD_LOCATION");if(o&&r&&s)return{auth:{},env:e?.env,source:e?"stored credential":"gcloud application default credentials"}}};function S1(){return Y({id:"google-vertex",name:"Google Vertex AI",auth:{apiKey:XU},models:Object.values(cC),api:ip()})}be();function k1(){return Y({id:"groq",name:"Groq",baseUrl:"https://api.groq.com/openai/v1",auth:{apiKey:ne("Groq API key",["GROQ_API_KEY"])},models:Object.values(dC),api:ve()})}be();function T1(){return Y({id:"huggingface",name:"Hugging Face",baseUrl:"https://router.huggingface.co/v1",auth:{apiKey:ne("Hugging Face token",["HF_TOKEN"])},models:Object.values(mC),api:ve()})}be();function C1(){return Y({id:"kimi-coding",name:"Kimi For Coding",baseUrl:"https://api.kimi.com/coding",auth:{apiKey:ne("Kimi API key",["KIMI_API_KEY"])},models:Object.values(gC),api:at()})}be();function M1(){return Y({id:"minimax",name:"MiniMax",baseUrl:"https://api.minimax.io/anthropic",auth:{apiKey:ne("MiniMax API key",["MINIMAX_API_KEY"])},models:Object.values(vC),api:at()})}be();function R1(){return Y({id:"minimax-cn",name:"MiniMax CN",baseUrl:"https://api.minimaxi.com/anthropic",auth:{apiKey:ne("MiniMax CN API key",["MINIMAX_CN_API_KEY"])},models:Object.values(xC),api:at()})}be();function P1(){return Y({id:"mistral",name:"Mistral",baseUrl:"https://api.mistral.ai",auth:{apiKey:ne("Mistral API key",["MISTRAL_API_KEY"])},models:Object.values(wC),api:op()})}be();function I1(){return Y({id:"moonshotai",name:"Moonshot AI",baseUrl:"https://api.moonshot.ai/v1",auth:{apiKey:ne("Moonshot AI API key",["MOONSHOT_API_KEY"])},models:Object.values(kC),api:ve()})}be();function E1(){return Y({id:"moonshotai-cn",name:"Moonshot AI CN",baseUrl:"https://api.moonshot.cn/v1",auth:{apiKey:ne("Moonshot AI API key",["MOONSHOT_API_KEY"])},models:Object.values(CC),api:ve()})}be();function A1(){return Y({id:"nvidia",name:"NVIDIA",baseUrl:"https://integrate.api.nvidia.com/v1",auth:{apiKey:ne("NVIDIA API key",["NVIDIA_API_KEY"])},models:Object.values(RC),api:ve()})}be();function _1(){return Y({id:"openai",name:"OpenAI",baseUrl:"https://api.openai.com/v1",auth:{apiKey:ne("OpenAI API key",["OPENAI_API_KEY"])},models:Object.values(IC),api:Un()})}be();function O1(){return Y({id:"openai-codex",name:"OpenAI Codex",baseUrl:"https://chatgpt.com/backend-api",auth:{oauth:yi({name:"OpenAI (ChatGPT Plus/Pro)",load:r1})},models:Object.values(AC),api:cp()})}be();function L1(){return Y({id:"opencode",name:"OpenCode Zen",auth:{apiKey:ne("OpenCode API key",["OPENCODE_API_KEY"])},models:Object.values(OC),api:{"anthropic-messages":at(),"google-generative-ai":Pa(),"openai-completions":ve(),"openai-responses":Un()}})}be();function W1(){return Y({id:"opencode-go",name:"OpenCode Zen Go",auth:{apiKey:ne("OpenCode API key",["OPENCODE_API_KEY"])},models:Object.values(WC),api:{"anthropic-messages":at(),"openai-completions":ve()}})}be();function F1(){return Y({id:"openrouter",name:"OpenRouter",baseUrl:"https://openrouter.ai/api/v1",auth:{apiKey:ne("OpenRouter API key",["OPENROUTER_API_KEY"])},models:Object.values(DC),api:ve()})}var D1="https://radius.pi.dev";function Uf(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function ZU(t){return Uf(t)&&typeof t.id=="string"&&typeof t.name=="string"&&typeof t.reasoning=="boolean"&&Array.isArray(t.input)&&Uf(t.cost)&&typeof t.contextWindow=="number"&&typeof t.maxTokens=="number"}function U1(t){if(!(!Uf(t)||typeof t.baseUrl!="string"||!Array.isArray(t.models)))return{baseUrl:t.baseUrl,models:t.models.filter(ZU).map(e=>({...e}))}}function $1(t){return(/^https?:\/\//iu.test(t)?t:`https://${t}`).replace(/\/+$/u,"")}function e$(t){return U1(t?.gatewayConfig)}function $f(t,e){return e.models.map(n=>({...n,api:"pi-messages",provider:t,baseUrl:e.baseUrl}))}function Nf(t,e){let n=e$(e);return n?$f(t,n):[]}function t$(t){let e=t.trim();return e.length>512?`${e.slice(0,512)}\u2026`:e}async function N1(t,e,n){let i={accept:"application/json"};e&&(i.authorization=`Bearer ${e}`);let o=await fetch(new URL("/v1/config",t),{headers:i,signal:n});if(!o.ok)throw new Error(`Could not load Radius config from ${t}: ${o.status}: ${t$(await o.text())}`);let r=U1(await o.json());if(!r)throw new Error(`Invalid Radius config from ${t}`);return r}function B1(t={}){let e=t.id??"radius",n=t.name??"Radius",i=$1(t.gateway??D1),o=Nf(e,void 0),r,s=up();return{id:e,name:n,auth:{apiKey:ne("Radius API key",["RADIUS_API_KEY"]),oauth:yi({name:n,load:()=>l1({name:n,gateway:i})})},getModels:()=>o,refreshModels:a=>(r??=(async()=>{try{let l=await a.store.read();if(l&&(o=l.models.filter(d=>d.provider===e)),!l&&a.credential?.type==="oauth"){let d=Nf(e,a.credential);d.length>0&&(o=d,await a.store.write({models:d,checkedAt:Date.now()}))}if(!a.allowNetwork||a.signal?.aborted)return;let c=a.credential?.type==="oauth"?a.credential.access:a.credential?.key,u=await N1(i,c,a.signal);if(a.signal?.aborted)return;o=$f(e,u),await a.store.write({models:o,checkedAt:Date.now()})}finally{r=void 0}})(),r),stream:(a,l,c)=>s.stream(a,l,c),streamSimple:(a,l,c)=>s.streamSimple(a,l,c)}}be();function j1(){return Y({id:"together",name:"Together",baseUrl:"https://api.together.ai/v1",auth:{apiKey:ne("Together API key",["TOGETHER_API_KEY"])},models:Object.values($C),api:ve()})}be();function q1(){return Y({id:"vercel-ai-gateway",name:"Vercel AI Gateway",baseUrl:"https://ai-gateway.vercel.sh",auth:{apiKey:ne("Vercel AI Gateway API key",["AI_GATEWAY_API_KEY"])},models:Object.values(BC),api:at()})}be();function K1(){return Y({id:"xai",name:"xAI",baseUrl:"https://api.x.ai/v1",auth:{apiKey:ne("xAI API key",["XAI_API_KEY"]),oauth:yi({name:"xAI (Grok/X subscription)",loginLabel:"Sign in with SuperGrok or X Premium",load:a1})},models:Object.values(qC),api:{"openai-completions":ve(),"openai-responses":Un()}})}be();function G1(){return Y({id:"xiaomi",name:"Xiaomi",baseUrl:"https://api.xiaomimimo.com/v1",auth:{apiKey:ne("Xiaomi API key",["XIAOMI_API_KEY"])},models:Object.values(GC),api:ve()})}be();function z1(){return Y({id:"xiaomi-token-plan-ams",name:"Xiaomi Token Plan AMS",baseUrl:"https://token-plan-ams.xiaomimimo.com/v1",auth:{apiKey:ne("Xiaomi Token Plan AMS API key",["XIAOMI_TOKEN_PLAN_AMS_API_KEY"])},models:Object.values(HC),api:ve()})}be();function H1(){return Y({id:"xiaomi-token-plan-cn",name:"Xiaomi Token Plan CN",baseUrl:"https://token-plan-cn.xiaomimimo.com/v1",auth:{apiKey:ne("Xiaomi Token Plan CN API key",["XIAOMI_TOKEN_PLAN_CN_API_KEY"])},models:Object.values(QC),api:ve()})}be();function V1(){return Y({id:"xiaomi-token-plan-sgp",name:"Xiaomi Token Plan SGP",baseUrl:"https://token-plan-sgp.xiaomimimo.com/v1",auth:{apiKey:ne("Xiaomi Token Plan SGP API key",["XIAOMI_TOKEN_PLAN_SGP_API_KEY"])},models:Object.values(YC),api:ve()})}be();function Q1(){return Y({id:"zai",name:"Z.AI",baseUrl:"https://api.z.ai/api/coding/paas/v4",auth:{apiKey:ne("Z.AI API key",["ZAI_API_KEY"])},models:Object.values(ZC),api:ve()})}be();function J1(){return Y({id:"zai-coding-cn",name:"Z.AI Coding CN",baseUrl:"https://open.bigmodel.cn/api/coding/paas/v4",auth:{apiKey:ne("Z.AI Coding CN API key",["ZAI_CODING_CN_API_KEY"])},models:Object.values(t1),api:ve()})}function n$(){return[n1(),i1(),c1(),u1(),d1(),f1(),v1(),b1(),x1(),y1(),w1(),S1(),k1(),T1(),C1(),M1(),R1(),P1(),I1(),E1(),A1(),_1(),O1(),L1(),W1(),F1(),B1(),j1(),q1(),K1(),G1(),z1(),H1(),V1(),Q1(),J1()]}function Y1(t){let e=ek(t);for(let n of n$())e.setProvider(n);return e}var Z1=new Map;function i$(t,e){return(n,i,o)=>{if(n.api!==t)throw new Error(`Mismatched api: ${n.api} expected ${t}`);return e(n,i,o)}}function o$(t,e){return(n,i,o)=>{if(n.api!==t)throw new Error(`Mismatched api: ${n.api} expected ${t}`);return e(n,i,o)}}function r$(t,e){Z1.set(t.api,{provider:{api:t.api,stream:i$(t.api,t.stream),streamSimple:o$(t.api,t.streamSimple)},sourceId:e})}function dp(t){return Z1.get(t)?.provider}var s$=[["anthropic-messages",at()],["openai-completions",ve()],["openai-responses",Un()],["openai-codex-responses",cp()],["azure-openai-responses",Hd()],["google-generative-ai",Pa()],["google-vertex",ip()],["mistral-conversations",op()],["bedrock-converse-stream",Vd()],["pi-messages",up()]],eM=new Map;function a$(){for(let[t,e]of s$)dp(t)||r$({api:t,stream:e.stream,streamSimple:e.streamSimple}),eM.set(t,dp(t))}a$();var tM=Y1(),l$="<authenticated>";function nM(t){return typeof t=="string"&&t.trim().length>0}function X1(t,e){if(nM(e?.apiKey))return e;let n=$T(t.provider,e?.env);return!n||n===l$?e:{...e,apiKey:n}}function c$(t){return nM(t?.apiKey)||typeof t?.headers?.["cf-aig-authorization"]=="string"}function u$(t){if(dp(t.api)!==eM.get(t.api))return;let e=tM.getProvider(t.provider);return e?.getModels().some(n=>n.api===t.api)?e:void 0}function d$(t){let e=dp(t);if(!e)throw new Error(`No API provider registered for api: ${t}`);return e}function p$(t,e,n){let i=u$(t);return i?t.provider.startsWith("cloudflare-")&&!c$(n)?tM.stream(t,e,n):i.stream(t,e,X1(t,n)):d$(t.api).stream(t,e,X1(t,n))}async function iM(t,e,n){return p$(t,e,n).result()}import*as Mn from"node:fs";import*as Ur from"node:path";import{spawn as m$}from"child_process";import{readdirSync as h$,statSync as oM}from"fs";import{homedir as rM}from"os";import{basename as Bf,dirname as mp,join as Do}from"path";function pp(t,e){let n=t.toLowerCase(),i=e.toLowerCase(),o=u=>{if(u.length===0)return{matches:!0,score:0};if(u.length>i.length)return{matches:!1,score:0};let d=0,p=0,m=-1,g=0;for(let h=0;h<i.length&&d<u.length;h++)if(i[h]===u[d]){let f=h===0||/[\s\-_./:]/.test(i[h-1]);m===h-1?(g++,p-=g*5):(g=0,m>=0&&(p+=(h-m-1)*2)),f&&(p-=10),p+=h*.1,m=h,d++}return d<u.length?{matches:!1,score:0}:(u===i&&(p-=100),{matches:!0,score:p})},r=o(n);if(r.matches)return r;let s=n.match(/^(?<letters>[a-z]+)(?<digits>[0-9]+)$/),a=n.match(/^(?<digits>[0-9]+)(?<letters>[a-z]+)$/),l=s?`${s.groups?.digits??""}${s.groups?.letters??""}`:a?`${a.groups?.letters??""}${a.groups?.digits??""}`:"";if(!l)return r;let c=o(l);return c.matches?{matches:!0,score:c.score+5}:r}function Kt(t,e,n){if(!e.trim())return t;let i=e.trim().split(/[\s/]+/).filter(r=>r.length>0);if(i.length===0)return t;let o=[];for(let r of t){let s=n(r),a=0,l=!0;for(let c of i){let u=pp(c,s);if(u.matches)a+=u.score;else{l=!1;break}}l&&o.push({item:r,totalScore:a})}return o.sort((r,s)=>r.totalScore-s.totalScore),o.map(r=>r.item)}var dM=new Set([" "," ",'"',"'","="]);function Mr(t){return t.replace(/\\/g,"/")}function g$(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function f$(t){let e=Mr(t);if(!e.includes("/"))return e;let n=e.endsWith("/"),i=e.replace(/^\/+|\/+$/g,"");if(!i)return e;let o="[\\\\/]",r=i.split("/").filter(Boolean).map(a=>g$(a));if(r.length===0)return e;let s=r.join(o);return n&&(s+=o),s}function sM(t){for(let e=t.length-1;e>=0;e-=1)if(dM.has(t[e]??""))return e;return-1}function v$(t){let e=!1,n=-1;for(let i=0;i<t.length;i+=1)t[i]==='"'&&(e=!e,e&&(n=i));return e?n:null}function aM(t,e){return e===0||dM.has(t[e-1]??"")}function lM(t){let e=v$(t);return e===null?null:e>0&&t[e-1]==="@"?aM(t,e-1)?t.slice(e-1):null:aM(t,e)?t.slice(e):null}function cM(t){return t.startsWith('@"')?{rawPrefix:t.slice(2),isAtPrefix:!0,isQuotedPrefix:!0}:t.startsWith('"')?{rawPrefix:t.slice(1),isAtPrefix:!1,isQuotedPrefix:!0}:t.startsWith("@")?{rawPrefix:t.slice(1),isAtPrefix:!0,isQuotedPrefix:!1}:{rawPrefix:t,isAtPrefix:!1,isQuotedPrefix:!1}}function uM(t,e){let n=e.isQuotedPrefix||t.includes(" "),i=e.isAtPrefix?"@":"";return n?`${`${i}"`}${t}"`:`${i}${t}`}async function b$(t,e,n,i,o){let r=["--base-directory",t,"--max-results",String(i),"--type","f","--type","d","--follow","--hidden","--exclude",".git","--exclude",".git/*","--exclude",".git/**"];return Mr(n).includes("/")&&r.push("--full-path"),n&&r.push(f$(n)),await new Promise(s=>{if(o.aborted){s([]);return}let a=m$(e,r,{stdio:["ignore","pipe","pipe"]}),l="",c=!1,u=p=>{c||(c=!0,o.removeEventListener("abort",d),s(p))},d=()=>{a.exitCode===null&&a.kill("SIGKILL")};o.addEventListener("abort",d,{once:!0}),a.stdout.setEncoding("utf-8"),a.stdout.on("data",p=>{l+=p}),a.on("error",()=>{u([])}),a.on("close",p=>{if(o.aborted||p!==0||!l){u([]);return}let m=l.trim().split(`
36
36
  `).filter(Boolean),g=[];for(let h of m){let f=Mr(h),b=f.endsWith("/"),x=b?f.slice(0,-1):f;x===".git"||x.startsWith(".git/")||x.includes("/.git/")||g.push({path:f,isDirectory:b})}u(g)})})}var Tc=class{constructor(e=[],n,i=null){this.commands=e,this.basePath=n,this.fdPath=i}async getSuggestions(e,n,i,o){let s=(e[n]||"").slice(0,i),a=this.extractAtPrefix(s);if(a){let{rawPrefix:u,isQuotedPrefix:d}=cM(a),p=await this.getFuzzyFileSuggestions(u,{isQuotedPrefix:d,signal:o.signal});return p.length===0?null:{items:p,prefix:a}}if(!o.force&&s.startsWith("/")){let u=s.indexOf(" ");if(u===-1){let h=s.slice(1),f=this.commands.map(x=>{let y="name"in x?x.name:x.value,T="argumentHint"in x&&x.argumentHint?x.argumentHint:void 0,P=x.description??"",E=T?P?`${T} \u2014 ${P}`:T:P;return{name:y,label:y,description:E||void 0}}),b=Kt(f,h,x=>x.name).map(x=>({value:x.name,label:x.label,...x.description&&{description:x.description}}));return b.length===0?null:{items:b,prefix:s}}let d=s.slice(1,u),p=s.slice(u+1),m=this.commands.find(h=>("name"in h?h.name:h.value)===d);if(!m||!("getArgumentCompletions"in m)||!m.getArgumentCompletions)return null;let g=await m.getArgumentCompletions(p);return!Array.isArray(g)||g.length===0?null:{items:g,prefix:p}}let l=this.extractPathPrefix(s,o.force??!1);if(l===null)return null;let c=this.getFileSuggestions(l);return c.length===0?null:{items:c,prefix:l}}applyCompletion(e,n,i,o,r){let s=e[n]||"",a=s.slice(0,i-r.length),l=s.slice(i),c=r.startsWith('"')||r.startsWith('@"'),u=l.startsWith('"'),d=o.value.endsWith('"'),p=c&&d&&u?l.slice(1):l;if(r.startsWith("/")&&a.trim()===""&&!r.slice(1).includes("/")){let T=`${a}/${o.value} ${p}`,P=[...e];return P[n]=T,{lines:P,cursorLine:n,cursorCol:a.length+o.value.length+2}}if(r.startsWith("@")){let T=o.label.endsWith("/"),P=T?"":" ",E=`${a+o.value}${P}${p}`,W=[...e];W[n]=E;let D=o.value.endsWith('"'),_=T&&D?o.value.length-1:o.value.length;return{lines:W,cursorLine:n,cursorCol:a.length+_+P.length}}let g=s.slice(0,i);if(g.includes("/")&&g.includes(" ")){let T=a+o.value+p,P=[...e];P[n]=T;let E=o.label.endsWith("/"),W=o.value.endsWith('"'),D=E&&W?o.value.length-1:o.value.length;return{lines:P,cursorLine:n,cursorCol:a.length+D}}let h=a+o.value+p,f=[...e];f[n]=h;let b=o.label.endsWith("/"),x=o.value.endsWith('"'),y=b&&x?o.value.length-1:o.value.length;return{lines:f,cursorLine:n,cursorCol:a.length+y}}extractAtPrefix(e){let n=lM(e);if(n?.startsWith('@"'))return n;let i=sM(e),o=i===-1?0:i+1;return e[o]==="@"?e.slice(o):null}extractPathPrefix(e,n=!1){let i=lM(e);if(i)return i;let o=sM(e),r=o===-1?e:e.slice(o+1);return n||r.includes("/")||r.startsWith(".")||r.startsWith("~/")||r===""&&e.endsWith(" ")?r:null}expandHomePath(e){if(e.startsWith("~/")){let n=Do(rM(),e.slice(2));return e.endsWith("/")&&!n.endsWith("/")?`${n}/`:n}else if(e==="~")return rM();return e}resolveScopedFuzzyQuery(e){let n=Mr(e),i=n.lastIndexOf("/");if(i===-1)return null;let o=n.slice(0,i+1),r=n.slice(i+1),s;o.startsWith("~/")?s=this.expandHomePath(o):o.startsWith("/")?s=o:s=Do(this.basePath,o);try{if(!oM(s).isDirectory())return null}catch{return null}return{baseDir:s,query:r,displayBase:o}}scopedPathForDisplay(e,n){let i=Mr(n);return e==="/"?`/${i}`:`${Mr(e)}${i}`}getFileSuggestions(e){try{let n,i,{rawPrefix:o,isAtPrefix:r,isQuotedPrefix:s}=cM(e),a=o;if(a.startsWith("~")&&(a=this.expandHomePath(a)),o===""||o==="./"||o==="../"||o==="~"||o==="~/"||o==="/"||r&&o==="")o.startsWith("~")||a.startsWith("/")?n=a:n=Do(this.basePath,a),i="";else if(o.endsWith("/"))o.startsWith("~")||a.startsWith("/")?n=a:n=Do(this.basePath,a),i="";else{let d=mp(a),p=Bf(a);o.startsWith("~")||a.startsWith("/")?n=d:n=Do(this.basePath,d),i=p}let c=h$(n,{withFileTypes:!0}),u=[];for(let d of c){if(!d.name.toLowerCase().startsWith(i.toLowerCase()))continue;let p=d.isDirectory();if(!p&&d.isSymbolicLink())try{let x=Do(n,d.name);p=oM(x).isDirectory()}catch{}let m,g=d.name,h=o;if(h.endsWith("/"))m=h+g;else if(h.includes("/")||h.includes("\\"))if(h.startsWith("~/")){let x=h.slice(2),y=mp(x);m=`~/${y==="."?g:Do(y,g)}`}else if(h.startsWith("/")){let x=mp(h);x==="/"?m=`/${g}`:m=`${x}/${g}`}else m=Do(mp(h),g),h.startsWith("./")&&!m.startsWith("./")&&(m=`./${m}`);else h.startsWith("~")?m=`~/${g}`:m=g;m=Mr(m);let f=p?`${m}/`:m,b=uM(f,{isDirectory:p,isAtPrefix:r,isQuotedPrefix:s});u.push({value:b,label:g+(p?"/":"")})}return u.sort((d,p)=>{let m=d.value.endsWith("/"),g=p.value.endsWith("/");return m&&!g?-1:!m&&g?1:d.label.localeCompare(p.label)}),u}catch{return[]}}scoreEntry(e,n,i){let r=Bf(e).toLowerCase(),s=n.toLowerCase(),a=0;return r===s?a=100:r.startsWith(s)?a=80:r.includes(s)?a=50:e.toLowerCase().includes(s)&&(a=30),i&&a>0&&(a+=10),a}async getFuzzyFileSuggestions(e,n){if(!this.fdPath||n.signal.aborted)return[];try{let i=this.resolveScopedFuzzyQuery(e),o=i?.baseDir??this.basePath,r=i?.query??e,s=await b$(o,this.fdPath,r,100,n.signal);if(n.signal.aborted)return[];let a=s.map(u=>({...u,score:r?this.scoreEntry(u.path,r,u.isDirectory):1})).filter(u=>u.score>0);a.sort((u,d)=>d.score-u.score);let l=a.slice(0,20),c=[];for(let{path:u,isDirectory:d}of l){let p=d?u.slice(0,-1):u,m=i?this.scopedPathForDisplay(i.displayBase,p):p,g=Bf(p),h=d?`${m}/`:m,f=uM(h,{isDirectory:d,isAtPrefix:!0,isQuotedPrefix:n.isQuotedPrefix});c.push({value:f,label:g+(d?"/":""),description:m})}return c}catch{return[]}}shouldTriggerFileCompletion(e,n,i){let r=(e[n]||"").slice(0,i);return!(r.trim().startsWith("/")&&!r.trim().includes(" "))}};import{eastAsianWidth as pM}from"get-east-asian-width";var Si=new Intl.Segmenter(void 0,{granularity:"grapheme"}),x$=new Intl.Segmenter(void 0,{granularity:"word"});function hp(){return Si}function gp(){return x$}function y$(t){let e=t.codePointAt(0);return e>=126976&&e<=130047||e>=8960&&e<=9215||e>=9728&&e<=10175||e>=11088&&e<=11093||t.includes("\uFE0F")||t.length>2}var w$=new RegExp("^(?:\\p{Default_Ignorable_Code_Point}|\\p{Control}|\\p{Mark}|\\p{Surrogate})+$","v"),S$=new RegExp("^[\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Mark}\\p{Surrogate}]+","v"),k$=new RegExp("^\\p{RGI_Emoji}$","v"),T$=512,Cc=new Map,fp=/[\p{Script_Extensions=Han}\p{Script_Extensions=Hiragana}\p{Script_Extensions=Katakana}\p{Script_Extensions=Hangul}\p{Script_Extensions=Bopomofo}]/u;function Kf(t){for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n<32||n>126)return!1}return!0}function C$(t,e){if(e<=0||t.length===0)return{text:"",width:0};if(Kf(t)){let l=t.slice(0,e);return{text:l,width:l.length}}let n=t.includes("\x1B"),i=t.includes(" ");if(!n&&!i){let l="",c=0;for(let{segment:u}of Si.segment(t)){let d=Rr(u);if(c+d>e)break;l+=u,c+=d}return{text:l,width:c}}let o="",r=0,s=0,a="";for(;s<t.length;){let l=Gt(t,s);if(l){a+=l.code,s+=l.length;continue}if(t[s]===" "){if(r+3>e)break;a&&(o+=a,a=""),o+=" ",r+=3,s++;continue}let c=s;for(;c<t.length&&t[c]!==" "&&!Gt(t,c);)c++;for(let{segment:u}of Si.segment(t.slice(s,c))){let d=Rr(u);if(r+d>e)return{text:o,width:r};a&&(o+=a,a=""),o+=u,r+=d}s=c}return{text:o,width:r}}function jf(t,e,n,i,o,r){let s="\x1B[0m",a=e+i,l;return n.length>0?l=`${t}${s}${n}${s}`:l=`${t}${s}`,r?l+" ".repeat(Math.max(0,o-a)):l}function Rr(t){if(t===" ")return 3;if(w$.test(t))return 0;if(y$(t)&&k$.test(t))return 2;let n=t.replace(S$,"").codePointAt(0);if(n===void 0)return 0;if(n>=127462&&n<=127487)return 2;let i=pM(n);if(t.length>1)for(let o of t.slice(1)){let r=o.codePointAt(0);r>=65280&&r<=65519?i+=pM(r):(r===3635||r===3763)&&(i+=1)}return i}function j(t){if(t.length===0)return 0;if(Kf(t))return t.length;let e=Cc.get(t);if(e!==void 0)return e;let n=t;if(t.includes(" ")&&(n=n.replace(/\t/g," ")),n.includes("\x1B")){let o="",r=0;for(;r<n.length;){let s=Gt(n,r);if(s){r+=s.length;continue}o+=n[r],r++}n=o}let i=0;for(let{segment:o}of Si.segment(n))i+=Rr(o);if(Cc.size>=T$){let o=Cc.keys().next().value;o!==void 0&&Cc.delete(o)}return Cc.set(t,i),i}var M$=/[\u0e33\u0eb3]/,R$=/[\u0e33\u0eb3]/g;function mM(t){let e=t;if(M$.test(e)&&(e=e.replace(R$,o=>o==="\u0E33"?"\u0E4D\u0E32":"\u0ECD\u0EB2")),!e.includes(" "))return e;let n="",i=0;for(;i<e.length;){let o=Gt(e,i);if(o){n+=o.code,i+=o.length;continue}n+=e[i]===" "?" ":e[i],i++}return n}function Gt(t,e){if(e>=t.length||t[e]!=="\x1B")return null;let n=t[e+1];if(n==="["){let i=e+2;for(;i<t.length&&!/[mGKHJ]/.test(t[i]);)i++;return i<t.length?{code:t.substring(e,i+1),length:i+1-e}:null}if(n==="]"){let i=e+2;for(;i<t.length;){if(t[i]==="\x07")return{code:t.substring(e,i+1),length:i+1-e};if(t[i]==="\x1B"&&t[i+1]==="\\")return{code:t.substring(e,i+2),length:i+2-e};i++}return null}if(n==="_"){let i=e+2;for(;i<t.length;){if(t[i]==="\x07")return{code:t.substring(e,i+1),length:i+1-e};if(t[i]==="\x1B"&&t[i+1]==="\\")return{code:t.substring(e,i+2),length:i+2-e};i++}return null}return null}function P$(t){if(!t.startsWith("\x1B]8;"))return;let e=t.endsWith("\x07")?"\x07":"\x1B\\",n=t.slice(4,e==="\x07"?-1:-2),i=n.indexOf(";");if(i===-1)return;let o=n.slice(0,i),r=n.slice(i+1);return r?{params:o,url:r,terminator:e}:null}function I$(t){return`\x1B]8;${t.params};${t.url}${t.terminator}`}function E$(t){return`\x1B]8;;${t}`}var Mc=class{constructor(){this.bold=!1;this.dim=!1;this.italic=!1;this.underline=!1;this.blink=!1;this.inverse=!1;this.hidden=!1;this.strikethrough=!1;this.fgColor=null;this.bgColor=null;this.activeHyperlink=null}process(e){let n=P$(e);if(n!==void 0){this.activeHyperlink=n;return}if(!e.endsWith("m"))return;let i=e.match(/\x1b\[([\d;]*)m/);if(!i)return;let o=i[1];if(o===""||o==="0"){this.reset();return}let r=o.split(";"),s=0;for(;s<r.length;){let a=Number.parseInt(r[s],10);if(a===38||a===48){if(r[s+1]==="5"&&r[s+2]!==void 0){let l=`${r[s]};${r[s+1]};${r[s+2]}`;a===38?this.fgColor=l:this.bgColor=l,s+=3;continue}else if(r[s+1]==="2"&&r[s+4]!==void 0){let l=`${r[s]};${r[s+1]};${r[s+2]};${r[s+3]};${r[s+4]}`;a===38?this.fgColor=l:this.bgColor=l,s+=5;continue}}switch(a){case 0:this.reset();break;case 1:this.bold=!0;break;case 2:this.dim=!0;break;case 3:this.italic=!0;break;case 4:this.underline=!0;break;case 5:this.blink=!0;break;case 7:this.inverse=!0;break;case 8:this.hidden=!0;break;case 9:this.strikethrough=!0;break;case 21:this.bold=!1;break;case 22:this.bold=!1,this.dim=!1;break;case 23:this.italic=!1;break;case 24:this.underline=!1;break;case 25:this.blink=!1;break;case 27:this.inverse=!1;break;case 28:this.hidden=!1;break;case 29:this.strikethrough=!1;break;case 39:this.fgColor=null;break;case 49:this.bgColor=null;break;default:a>=30&&a<=37||a>=90&&a<=97?this.fgColor=String(a):(a>=40&&a<=47||a>=100&&a<=107)&&(this.bgColor=String(a));break}s++}}reset(){this.bold=!1,this.dim=!1,this.italic=!1,this.underline=!1,this.blink=!1,this.inverse=!1,this.hidden=!1,this.strikethrough=!1,this.fgColor=null,this.bgColor=null}clear(){this.reset(),this.activeHyperlink=null}getActiveCodes(){let e=[];this.bold&&e.push("1"),this.dim&&e.push("2"),this.italic&&e.push("3"),this.underline&&e.push("4"),this.blink&&e.push("5"),this.inverse&&e.push("7"),this.hidden&&e.push("8"),this.strikethrough&&e.push("9"),this.fgColor&&e.push(this.fgColor),this.bgColor&&e.push(this.bgColor);let n=e.length>0?`\x1B[${e.join(";")}m`:"";return this.activeHyperlink&&(n+=I$(this.activeHyperlink)),n}hasActiveCodes(){return this.bold||this.dim||this.italic||this.underline||this.blink||this.inverse||this.hidden||this.strikethrough||this.fgColor!==null||this.bgColor!==null||this.activeHyperlink!==null}getLineEndReset(){let e="";return this.underline&&(e+="\x1B[24m"),this.activeHyperlink&&(e+=E$(this.activeHyperlink.terminator)),e}};function hM(t,e){let n=0;for(;n<t.length;){let i=Gt(t,n);i?(e.process(i.code),n+=i.length):n++}}function A$(t){let e=[],n="",i="",o=null,r=0,s=()=>{n&&(e.push(n),n="",o=null)};for(;r<t.length;){let a=Gt(t,r);if(a){i+=a.code,r+=a.length;continue}let l=r;for(;l<t.length&&!Gt(t,l);)l++;for(let{segment:c}of Si.segment(t.slice(r,l))){let u=c===" ";if(!u&&fp.test(c)){s();let p=i+c;i="",e.push(p);continue}let d=u?"space":"word";n&&o!==d&&s(),i&&(n+=i,i=""),o=d,n+=c}r=l}return i&&(n?n+=i:e.length>0?e[e.length-1]+=i:n=i),n&&e.push(n),e}function on(t,e){if(!t)return[""];let n=t.split(/\r\n|\r|\n/),i=[],o=new Mc;for(let r of n){let s=i.length>0?o.getActiveCodes():"",a=_$(s+r,e);for(let l of a)i.push(l);hM(r,o)}return i.length>0?i:[""]}function _$(t,e){if(!t)return[""];if(j(t)<=e)return[t];let i=[],o=new Mc,r=A$(t),s="",a=0;for(let l of r){let c=j(l),u=l.trim()==="";if(c>e&&!u){if(s){let m=o.getLineEndReset();m&&(s+=m),i.push(s),s="",a=0}let p=O$(l,e,o);for(let m=0;m<p.length-1;m++)i.push(p[m]);s=p[p.length-1],a=j(s);continue}if(a+c>e&&a>0){let p=s.trimEnd(),m=o.getLineEndReset();m&&(p+=m),i.push(p),u?(s=o.getActiveCodes(),a=0):(s=o.getActiveCodes()+l,a=c)}else s+=l,a+=c;hM(l,o)}return s&&i.push(s),i.length>0?i.map(l=>l.trimEnd()):[""]}var Gf=/[(){}[\]<>.,;:'"!?+\-=*/\\|&%^$#@~`]/;function Tn(t){return/\s/.test(t)}function O$(t,e,n){let i=[],o=n.getActiveCodes(),r=0,s=0,a=[];for(;s<t.length;){let l=Gt(t,s);if(l)a.push({type:"ansi",value:l.code}),s+=l.length;else{let c=s;for(;c<t.length&&!Gt(t,c);)c++;let u=t.slice(s,c);for(let d of Si.segment(u))a.push({type:"grapheme",value:d.segment});s=c}}for(let l of a){if(l.type==="ansi"){o+=l.value,n.process(l.value);continue}let c=l.value;if(!c)continue;let u=j(c);if(r+u>e){let d=n.getLineEndReset();d&&(o+=d),i.push(o),o=n.getActiveCodes(),r=0}o+=c,r+=u}return o&&i.push(o),i.length>0?i:[""]}function Uo(t,e,n){let i=j(t),o=Math.max(0,e-i),r=" ".repeat(o),s=t+r;return n(s)}function te(t,e,n="...",i=!1){if(e<=0)return"";if(t.length===0)return i?" ".repeat(e):"";let o=j(n);if(o>=e){let h=j(t);if(h<=e)return i?t+" ".repeat(e-h):t;let f=C$(n,e);return f.width===0?i?" ".repeat(e):"":jf("",0,f.text,f.width,e,i)}if(Kf(t)){if(t.length<=e)return i?t+" ".repeat(e-t.length):t;let h=e-o;return jf(t.slice(0,h),h,n,o,e,i)}let r=e-o,s="",a="",l=0,c=0,u=!0,d=!1,p=!1,m=t.includes("\x1B"),g=t.includes(" ");if(!m&&!g){for(let{segment:h}of Si.segment(t)){let f=Rr(h);if(u&&c+f<=r?(s+=h,c+=f):u=!1,l+=f,l>e){d=!0;break}}p=!d}else{let h=0;for(;h<t.length;){let f=Gt(t,h);if(f){a+=f.code,h+=f.length;continue}if(t[h]===" "){if(u&&c+3<=r?(a&&(s+=a,a=""),s+=" ",c+=3):(u=!1,a=""),l+=3,l>e){d=!0;break}h++;continue}let b=h;for(;b<t.length&&t[b]!==" "&&!Gt(t,b);)b++;for(let{segment:x}of Si.segment(t.slice(h,b))){let y=Rr(x);if(u&&c+y<=r?(a&&(s+=a,a=""),s+=x,c+=y):(u=!1,a=""),l+=y,l>e){d=!0;break}}if(d)break;h=b}p=h>=t.length}return!d&&p?i?t+" ".repeat(Math.max(0,e-l)):t:jf(s,c,n,o,e,i)}function eo(t,e,n,i=!1){return zf(t,e,n,i).text}function zf(t,e,n,i=!1){if(n<=0)return{text:"",width:0};let o=e+n,r="",s=0,a=0,l=0,c="";for(;l<t.length;){let u=Gt(t,l);if(u){a>=e&&a<o?r+=u.code:a<e&&(c+=u.code),l+=u.length;continue}let d=l;for(;d<t.length&&!Gt(t,d);)d++;for(let{segment:p}of Si.segment(t.slice(l,d))){let m=Rr(p),g=a>=e&&a<o,h=!i||a+m<=o;if(g&&h&&(c&&(r+=c,c=""),r+=p,s+=m),a+=m,a>=o)break}if(l=d,a>=o)break}return{text:r,width:s}}var qf=new Mc;function gM(t,e,n,i,o=!1){let r="",s=0,a="",l=0,c=0,u=0,d="",p=!1,m=n+i;for(qf.clear();u<t.length;){let g=Gt(t,u);if(g){qf.process(g.code),c<e?d+=g.code:c>=n&&c<m&&p&&(a+=g.code),u+=g.length;continue}let h=u;for(;h<t.length&&!Gt(t,h);)h++;for(let{segment:f}of Si.segment(t.slice(u,h))){let b=Rr(f);if(c<e&&c+b<=e?(d&&(r+=d,d=""),r+=f,s+=b):c>=n&&c<m&&(!o||c+b<=m)&&(p||(a+=qf.getActiveCodes(),p=!0),a+=f,l+=b),c+=b,i<=0?c>=e:c>=m)break}if(u=h,i<=0?c>=e:c>=m)break}return{before:r,beforeWidth:s,after:a,afterWidth:l}}var pt=class{constructor(e=1,n=1,i){this.children=[];this.paddingX=e,this.paddingY=n,this.bgFn=i}addChild(e){this.children.push(e),this.invalidateCache()}removeChild(e){let n=this.children.indexOf(e);n!==-1&&(this.children.splice(n,1),this.invalidateCache())}clear(){this.children=[],this.invalidateCache()}setBgFn(e){this.bgFn=e}invalidateCache(){this.cache=void 0}matchCache(e,n,i){let o=this.cache;return!!o&&o.width===e&&o.bgSample===i&&o.childLines.length===n.length&&o.childLines.every((r,s)=>r===n[s])}invalidate(){this.invalidateCache();for(let e of this.children)e.invalidate?.()}render(e){if(this.children.length===0)return[];let n=Math.max(1,e-this.paddingX*2),i=" ".repeat(this.paddingX),o=[];for(let a of this.children){let l=a.render(n);for(let c of l)o.push(i+c)}if(o.length===0)return[];let r=this.bgFn?this.bgFn("test"):void 0;if(this.matchCache(e,o,r))return this.cache.lines;let s=[];for(let a=0;a<this.paddingY;a++)s.push(this.applyBg("",e));for(let a of o)s.push(this.applyBg(a,e));for(let a=0;a<this.paddingY;a++)s.push(this.applyBg("",e));return this.cache={childLines:o,width:e,bgSample:r,lines:s},s}applyBg(e,n){let i=j(e),o=Math.max(0,n-i),r=e+" ".repeat(o);return this.bgFn?Uo(r,n,this.bgFn):r}};var to=!1;function Pc(t){to=t}var Pr={escape:"escape",esc:"esc",enter:"enter",return:"return",tab:"tab",space:"space",backspace:"backspace",delete:"delete",insert:"insert",clear:"clear",home:"home",end:"end",pageUp:"pageUp",pageDown:"pageDown",up:"up",down:"down",left:"left",right:"right",f1:"f1",f2:"f2",f3:"f3",f4:"f4",f5:"f5",f6:"f6",f7:"f7",f8:"f8",f9:"f9",f10:"f10",f11:"f11",f12:"f12",backtick:"`",hyphen:"-",equals:"=",leftbracket:"[",rightbracket:"]",backslash:"\\",semicolon:";",quote:"'",comma:",",period:".",slash:"/",exclamation:"!",at:"@",hash:"#",dollar:"$",percent:"%",caret:"^",ampersand:"&",asterisk:"*",leftparen:"(",rightparen:")",underscore:"_",plus:"+",pipe:"|",tilde:"~",leftbrace:"{",rightbrace:"}",colon:":",lessthan:"<",greaterthan:">",question:"?",ctrl:t=>`ctrl+${t}`,shift:t=>`shift+${t}`,alt:t=>`alt+${t}`,super:t=>`super+${t}`,ctrlShift:t=>`ctrl+shift+${t}`,shiftCtrl:t=>`shift+ctrl+${t}`,ctrlAlt:t=>`ctrl+alt+${t}`,altCtrl:t=>`alt+ctrl+${t}`,shiftAlt:t=>`shift+alt+${t}`,altShift:t=>`alt+shift+${t}`,ctrlSuper:t=>`ctrl+super+${t}`,superCtrl:t=>`super+ctrl+${t}`,shiftSuper:t=>`shift+super+${t}`,superShift:t=>`super+shift+${t}`,altSuper:t=>`alt+super+${t}`,superAlt:t=>`super+alt+${t}`,ctrlShiftAlt:t=>`ctrl+shift+alt+${t}`,ctrlShiftSuper:t=>`ctrl+shift+super+${t}`},Hf=new Set(["`","-","=","[","]","\\",";","'",",",".","/","!","@","#","$","%","^","&","*","(",")","_","+","|","~","{","}",":","<",">","?"]),ie={shift:1,alt:2,ctrl:4,super:8},Rc=192,Ne={escape:27,tab:9,enter:13,space:32,backspace:127,kpEnter:57414},Mt={up:-1,down:-2,right:-3,left:-4},Qe={delete:-10,insert:-11,pageUp:-12,pageDown:-13,home:-14,end:-15},L$=new Map([[57399,48],[57400,49],[57401,50],[57402,51],[57403,52],[57404,53],[57405,54],[57406,55],[57407,56],[57408,57],[57409,46],[57410,47],[57411,42],[57412,45],[57413,43],[57415,61],[57416,44],[57417,Mt.left],[57418,Mt.right],[57419,Mt.up],[57420,Mt.down],[57421,Qe.pageUp],[57422,Qe.pageDown],[57423,Qe.home],[57424,Qe.end],[57425,Qe.insert],[57426,Qe.delete]]);function Vf(t){return L$.get(t)??t}function yp(t,e){return(e&~Rc&ie.shift)!==0&&t>=65&&t<=90?t+32:t}var $n={up:["\x1B[A","\x1BOA"],down:["\x1B[B","\x1BOB"],right:["\x1B[C","\x1BOC"],left:["\x1B[D","\x1BOD"],home:["\x1B[H","\x1BOH","\x1B[1~","\x1B[7~"],end:["\x1B[F","\x1BOF","\x1B[4~","\x1B[8~"],insert:["\x1B[2~"],delete:["\x1B[3~"],pageUp:["\x1B[5~","\x1B[[5~"],pageDown:["\x1B[6~","\x1B[[6~"],clear:["\x1B[E","\x1BOE"],f1:["\x1BOP","\x1B[11~","\x1B[[A"],f2:["\x1BOQ","\x1B[12~","\x1B[[B"],f3:["\x1BOR","\x1B[13~","\x1B[[C"],f4:["\x1BOS","\x1B[14~","\x1B[[D"],f5:["\x1B[15~","\x1B[[E"],f6:["\x1B[17~"],f7:["\x1B[18~"],f8:["\x1B[19~"],f9:["\x1B[20~"],f10:["\x1B[21~"],f11:["\x1B[23~"],f12:["\x1B[24~"]},W$={up:["\x1B[a"],down:["\x1B[b"],right:["\x1B[c"],left:["\x1B[d"],clear:["\x1B[e"],insert:["\x1B[2$"],delete:["\x1B[3$"],pageUp:["\x1B[5$"],pageDown:["\x1B[6$"],home:["\x1B[7$"],end:["\x1B[8$"]},F$={up:["\x1BOa"],down:["\x1BOb"],right:["\x1BOc"],left:["\x1BOd"],clear:["\x1BOe"],insert:["\x1B[2^"],delete:["\x1B[3^"],pageUp:["\x1B[5^"],pageDown:["\x1B[6^"],home:["\x1B[7^"],end:["\x1B[8^"]};var rn=(t,e)=>e.includes(t),Cn=(t,e,n)=>n===ie.shift?rn(t,W$[e]):n===ie.ctrl?rn(t,F$[e]):!1,vp="press";function oi(t){return t.includes("\x1B[200~")?!1:!!(t.includes(":3u")||t.includes(":3~")||t.includes(":3A")||t.includes(":3B")||t.includes(":3C")||t.includes(":3D")||t.includes(":3H")||t.includes(":3F"))}function bp(t){if(!t)return"press";let e=parseInt(t,10);return e===2?"repeat":e===3?"release":"press"}function D$(t){let e=t.match(/^\x1b\[(\d+)(?::(\d*))?(?::(\d+))?(?:;(\d+))?(?::(\d+))?u$/);if(e){let r=parseInt(e[1],10),s=e[2]&&e[2].length>0?parseInt(e[2],10):void 0,a=e[3]?parseInt(e[3],10):void 0,l=e[4]?parseInt(e[4],10):1,c=bp(e[5]);return vp=c,{codepoint:r,shiftedKey:s,baseLayoutKey:a,modifier:l-1,eventType:c}}let n=t.match(/^\x1b\[1;(\d+)(?::(\d+))?([ABCD])$/);if(n){let r=parseInt(n[1],10),s=bp(n[2]),a={A:-1,B:-2,C:-3,D:-4};return vp=s,{codepoint:a[n[3]],modifier:r-1,eventType:s}}let i=t.match(/^\x1b\[(\d+)(?:;(\d+))?(?::(\d+))?~$/);if(i){let r=parseInt(i[1],10),s=i[2]?parseInt(i[2],10):1,a=bp(i[3]),c={2:Qe.insert,3:Qe.delete,5:Qe.pageUp,6:Qe.pageDown,7:Qe.home,8:Qe.end}[r];if(c!==void 0)return vp=a,{codepoint:c,modifier:s-1,eventType:a}}let o=t.match(/^\x1b\[1;(\d+)(?::(\d+))?([HF])$/);if(o){let r=parseInt(o[1],10),s=bp(o[2]),a=o[3]==="H"?Qe.home:Qe.end;return vp=s,{codepoint:a,modifier:r-1,eventType:s}}return null}function fe(t,e,n){let i=D$(t);if(!i)return!1;let o=i.modifier&~Rc,r=n&~Rc;if(o!==r)return!1;let s=yp(Vf(i.codepoint),i.modifier),a=yp(Vf(e),n);if(s===a)return!0;if(i.baseLayoutKey!==void 0&&i.baseLayoutKey===e){let l=s,c=l>=97&&l<=122,u=Hf.has(String.fromCharCode(l));if(!c&&!u)return!0}return!1}function Qf(t){let e=t.match(/^\x1b\[27;(\d+);(\d+)~$/);if(!e)return null;let n=parseInt(e[1],10);return{codepoint:parseInt(e[2],10),modifier:n-1}}function Nn(t,e,n){let i=Qf(t);return i?i.codepoint===e&&i.modifier===n:!1}function U$(){return!!process.env.WT_SESSION&&!process.env.SSH_CONNECTION&&!process.env.SSH_CLIENT&&!process.env.SSH_TTY}function fM(t,e){return t==="\x7F"?e===0:t!=="\b"?!1:U$()?e===ie.ctrl:e===0}function $$(t){let e=t.toLowerCase(),n=e.charCodeAt(0);return n>=97&&n<=122||e==="["||e==="\\"||e==="]"||e==="_"?String.fromCharCode(n&31):e==="-"?"":null}function vM(t){return t>="0"&&t<="9"}function xp(t,e,n){if(n===0)return!1;let i=Qf(t);return!i||i.modifier!==n?!1:yp(i.codepoint,i.modifier)===yp(e,n)}function N$(t){let e=t.toLowerCase().split("+"),n=e[e.length-1];return n?{key:n,ctrl:e.includes("ctrl"),shift:e.includes("shift"),alt:e.includes("alt"),super:e.includes("super")}:null}function Fe(t,e){let n=N$(e);if(!n)return!1;let{key:i,ctrl:o,shift:r,alt:s,super:a}=n,l=0;switch(r&&(l|=ie.shift),s&&(l|=ie.alt),o&&(l|=ie.ctrl),a&&(l|=ie.super),i){case"escape":case"esc":return l!==0?!1:t==="\x1B"||fe(t,Ne.escape,0)||Nn(t,Ne.escape,0);case"space":return!to&&(l===ie.ctrl&&t==="\0"||l===ie.alt&&t==="\x1B ")?!0:l===0?t===" "||fe(t,Ne.space,0)||Nn(t,Ne.space,0):fe(t,Ne.space,l)||Nn(t,Ne.space,l);case"tab":return l===ie.shift?t==="\x1B[Z"||fe(t,Ne.tab,ie.shift)||Nn(t,Ne.tab,ie.shift):l===0?t===" "||fe(t,Ne.tab,0):fe(t,Ne.tab,l)||Nn(t,Ne.tab,l);case"enter":case"return":return l===ie.shift?fe(t,Ne.enter,ie.shift)||fe(t,Ne.kpEnter,ie.shift)||Nn(t,Ne.enter,ie.shift)?!0:to?t==="\x1B\r"||t===`
37
37
  `:!1:l===ie.alt?fe(t,Ne.enter,ie.alt)||fe(t,Ne.kpEnter,ie.alt)||Nn(t,Ne.enter,ie.alt)?!0:to?!1:t==="\x1B\r":l===0?t==="\r"||!to&&t===`
38
38
  `||t==="\x1BOM"||fe(t,Ne.enter,0)||fe(t,Ne.kpEnter,0):fe(t,Ne.enter,l)||fe(t,Ne.kpEnter,l)||Nn(t,Ne.enter,l);case"backspace":return l===ie.alt?t==="\x1B\x7F"||t==="\x1B\b"?!0:fe(t,Ne.backspace,ie.alt)||Nn(t,Ne.backspace,ie.alt):l===ie.ctrl?fM(t,ie.ctrl)?!0:fe(t,Ne.backspace,ie.ctrl)||Nn(t,Ne.backspace,ie.ctrl):l===0?fM(t,0)||fe(t,Ne.backspace,0)||Nn(t,Ne.backspace,0):fe(t,Ne.backspace,l)||Nn(t,Ne.backspace,l);case"insert":return l===0?rn(t,$n.insert)||fe(t,Qe.insert,0):Cn(t,"insert",l)?!0:fe(t,Qe.insert,l);case"delete":return l===0?rn(t,$n.delete)||fe(t,Qe.delete,0):Cn(t,"delete",l)?!0:fe(t,Qe.delete,l);case"clear":return l===0?rn(t,$n.clear):Cn(t,"clear",l);case"home":return l===0?rn(t,$n.home)||fe(t,Qe.home,0):Cn(t,"home",l)?!0:fe(t,Qe.home,l);case"end":return l===0?rn(t,$n.end)||fe(t,Qe.end,0):Cn(t,"end",l)?!0:fe(t,Qe.end,l);case"pageup":return l===0?rn(t,$n.pageUp)||fe(t,Qe.pageUp,0):Cn(t,"pageUp",l)?!0:fe(t,Qe.pageUp,l);case"pagedown":return l===0?rn(t,$n.pageDown)||fe(t,Qe.pageDown,0):Cn(t,"pageDown",l)?!0:fe(t,Qe.pageDown,l);case"up":return l===ie.alt?t==="\x1Bp"||fe(t,Mt.up,ie.alt):l===0?rn(t,$n.up)||fe(t,Mt.up,0):Cn(t,"up",l)?!0:fe(t,Mt.up,l);case"down":return l===ie.alt?t==="\x1Bn"||fe(t,Mt.down,ie.alt):l===0?rn(t,$n.down)||fe(t,Mt.down,0):Cn(t,"down",l)?!0:fe(t,Mt.down,l);case"left":return l===ie.alt?t==="\x1B[1;3D"||!to&&t==="\x1BB"||t==="\x1Bb"||fe(t,Mt.left,ie.alt):l===ie.ctrl?t==="\x1B[1;5D"||Cn(t,"left",ie.ctrl)||fe(t,Mt.left,ie.ctrl):l===0?rn(t,$n.left)||fe(t,Mt.left,0):Cn(t,"left",l)?!0:fe(t,Mt.left,l);case"right":return l===ie.alt?t==="\x1B[1;3C"||!to&&t==="\x1BF"||t==="\x1Bf"||fe(t,Mt.right,ie.alt):l===ie.ctrl?t==="\x1B[1;5C"||Cn(t,"right",ie.ctrl)||fe(t,Mt.right,ie.ctrl):l===0?rn(t,$n.right)||fe(t,Mt.right,0):Cn(t,"right",l)?!0:fe(t,Mt.right,l);case"f1":case"f2":case"f3":case"f4":case"f5":case"f6":case"f7":case"f8":case"f9":case"f10":case"f11":case"f12":return l!==0?!1:rn(t,$n[i])}if(i.length===1&&(i>="a"&&i<="z"||vM(i)||Hf.has(i))){let c=i.charCodeAt(0),u=$$(i),d=i>="a"&&i<="z",p=vM(i);return l===ie.ctrl+ie.alt&&!to&&u&&t===`\x1B${u}`||l===ie.alt&&!to&&(d||p||Hf.has(i))&&t===`\x1B${i}`?!0:l===ie.ctrl?u&&t===u?!0:fe(t,c,ie.ctrl)||xp(t,c,ie.ctrl):l===ie.shift+ie.ctrl?fe(t,c,ie.shift+ie.ctrl)||xp(t,c,ie.shift+ie.ctrl):l===ie.shift?d&&t===i.toUpperCase()?!0:fe(t,c,ie.shift)||xp(t,c,ie.shift):l!==0?fe(t,c,l)||xp(t,c,l):t===i||fe(t,c,0)}return!1}var B$=/^\x1b\[(\d+)(?::(\d*))?(?::(\d+))?(?:;(\d+))?(?::(\d+))?u$/,j$=ie.shift|Rc;function wp(t){let e=t.match(B$);if(!e)return;let n=Number.parseInt(e[1]??"",10);if(!Number.isFinite(n))return;let i=e[2]&&e[2].length>0?Number.parseInt(e[2],10):void 0,o=e[4]?Number.parseInt(e[4],10):1,r=Number.isFinite(o)?o-1:0;if((r&~j$)!==0||r&(ie.alt|ie.ctrl))return;let s=n;if(r&ie.shift&&typeof i=="number"&&(s=i),s=Vf(s),!(!Number.isFinite(s)||s<32))try{return String.fromCodePoint(s)}catch{return}}function q$(t){let e=Qf(t);if(!(!e||(e.modifier&~Rc&~ie.shift)!==0)&&!(!Number.isFinite(e.codepoint)||e.codepoint<32))try{return String.fromCodePoint(e.codepoint)}catch{return}}function Jf(t){return wp(t)??q$(t)}var Oa={"tui.editor.cursorUp":{defaultKeys:"up",description:"Move cursor up"},"tui.editor.cursorDown":{defaultKeys:"down",description:"Move cursor down"},"tui.editor.cursorLeft":{defaultKeys:["left","ctrl+b"],description:"Move cursor left"},"tui.editor.cursorRight":{defaultKeys:["right","ctrl+f"],description:"Move cursor right"},"tui.editor.cursorWordLeft":{defaultKeys:["alt+left","ctrl+left","alt+b"],description:"Move cursor word left"},"tui.editor.cursorWordRight":{defaultKeys:["alt+right","ctrl+right","alt+f"],description:"Move cursor word right"},"tui.editor.cursorLineStart":{defaultKeys:["home","ctrl+a"],description:"Move to line start"},"tui.editor.cursorLineEnd":{defaultKeys:["end","ctrl+e"],description:"Move to line end"},"tui.editor.jumpForward":{defaultKeys:"ctrl+]",description:"Jump forward to character"},"tui.editor.jumpBackward":{defaultKeys:"ctrl+alt+]",description:"Jump backward to character"},"tui.editor.pageUp":{defaultKeys:"pageUp",description:"Page up"},"tui.editor.pageDown":{defaultKeys:"pageDown",description:"Page down"},"tui.editor.deleteCharBackward":{defaultKeys:"backspace",description:"Delete character backward"},"tui.editor.deleteCharForward":{defaultKeys:["delete","ctrl+d"],description:"Delete character forward"},"tui.editor.deleteWordBackward":{defaultKeys:["ctrl+w","alt+backspace"],description:"Delete word backward"},"tui.editor.deleteWordForward":{defaultKeys:["alt+d","alt+delete"],description:"Delete word forward"},"tui.editor.deleteToLineStart":{defaultKeys:"ctrl+u",description:"Delete to line start"},"tui.editor.deleteToLineEnd":{defaultKeys:"ctrl+k",description:"Delete to line end"},"tui.editor.yank":{defaultKeys:"ctrl+y",description:"Yank"},"tui.editor.yankPop":{defaultKeys:"alt+y",description:"Yank pop"},"tui.editor.undo":{defaultKeys:"ctrl+-",description:"Undo"},"tui.input.newLine":{defaultKeys:["shift+enter","ctrl+j"],description:"Insert newline"},"tui.input.submit":{defaultKeys:"enter",description:"Submit input"},"tui.input.tab":{defaultKeys:"tab",description:"Tab / autocomplete"},"tui.input.copy":{defaultKeys:"ctrl+c",description:"Copy selection"},"tui.select.up":{defaultKeys:"up",description:"Move selection up"},"tui.select.down":{defaultKeys:"down",description:"Move selection down"},"tui.select.pageUp":{defaultKeys:"pageUp",description:"Selection page up"},"tui.select.pageDown":{defaultKeys:"pageDown",description:"Selection page down"},"tui.select.confirm":{defaultKeys:"enter",description:"Confirm selection"},"tui.select.cancel":{defaultKeys:["escape","ctrl+c"],description:"Cancel selection"}};function Yf(t){if(t===void 0)return[];let e=Array.isArray(t)?t:[t],n=new Set,i=[];for(let o of e)n.has(o)||(n.add(o),i.push(o));return i}var _a=class{constructor(e,n={}){this.keysById=new Map;this.conflicts=[];this.definitions=e,this.userBindings=n,this.rebuild()}rebuild(){this.keysById.clear(),this.conflicts=[];let e=new Map;for(let[n,i]of Object.entries(this.userBindings))if(n in this.definitions)for(let o of Yf(i)){let r=e.get(o)??new Set;r.add(n),e.set(o,r)}for(let[n,i]of e)i.size>1&&this.conflicts.push({key:n,keybindings:[...i]});for(let[n,i]of Object.entries(this.definitions)){let o=this.userBindings[n],r=Yf(o===void 0?i.defaultKeys:o);this.keysById.set(n,r)}}matches(e,n){let i=this.keysById.get(n)??[];for(let o of i)if(Fe(e,o))return!0;return!1}getKeys(e){return[...this.keysById.get(e)??[]]}getDefinition(e){return this.definitions[e]}getConflicts(){return this.conflicts.map(e=>({...e,keybindings:[...e.keybindings]}))}setUserBindings(e){this.userBindings=e,this.rebuild()}getUserBindings(){return{...this.userBindings}}getResolvedBindings(){let e={};for(let n of Object.keys(this.definitions)){let i=this.keysById.get(n)??[];e[n]=i.length===1?i[0]:[...i]}return e}},Sp=null;function Ic(t){Sp=t}function we(){return Sp||(Sp=new _a(Oa)),Sp}var A=class{constructor(e="",n=1,i=1,o){this.text=e,this.paddingX=n,this.paddingY=i,this.customBgFn=o}setText(e){this.text=e,this.cachedText=void 0,this.cachedWidth=void 0,this.cachedLines=void 0}setCustomBgFn(e){this.customBgFn=e,this.cachedText=void 0,this.cachedWidth=void 0,this.cachedLines=void 0}invalidate(){this.cachedText=void 0,this.cachedWidth=void 0,this.cachedLines=void 0}render(e){if(this.cachedLines&&this.cachedText===this.text&&this.cachedWidth===e)return this.cachedLines;if(!this.text||this.text.trim()===""){let d=[];return this.cachedText=this.text,this.cachedWidth=e,this.cachedLines=d,d}let n=this.text.replace(/\t/g," "),i=Math.max(1,e-this.paddingX*2),o=on(n,i),r=" ".repeat(this.paddingX),s=" ".repeat(this.paddingX),a=[];for(let d of o){let p=r+d+s;if(this.customBgFn)a.push(Uo(p,e,this.customBgFn));else{let m=j(p),g=Math.max(0,e-m);a.push(p+" ".repeat(g))}}let l=" ".repeat(e),c=[];for(let d=0;d<this.paddingY;d++){let p=this.customBgFn?Uo(l,e,this.customBgFn):l;c.push(p)}let u=[...c,...a,...c];return this.cachedText=this.text,this.cachedWidth=e,this.cachedLines=u,u.length>0?u:[""]}};var bM=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],xM=80,ri=class extends A{constructor(n,i,o,r="Loading...",s){super("",1,0);this.frames=[...bM];this.intervalMs=xM;this.currentFrame=0;this.intervalId=null;this.ui=null;this.renderIndicatorVerbatim=!1;this.message="Loading...";this.ui=n,this.spinnerColorFn=i,this.messageColorFn=o,this.message=r,this.setIndicator(s)}render(n){return["",...super.render(n)]}start(){this.updateDisplay(),this.restartAnimation()}stop(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)}setMessage(n){this.message=n,this.updateDisplay()}setIndicator(n){this.renderIndicatorVerbatim=n!==void 0,this.frames=n?.frames!==void 0?[...n.frames]:[...bM],this.intervalMs=n?.intervalMs&&n.intervalMs>0?n.intervalMs:xM,this.currentFrame=0,this.start()}restartAnimation(){this.stop(),!(this.frames.length<=1)&&(this.intervalId=setInterval(()=>{this.currentFrame=(this.currentFrame+1)%this.frames.length,this.updateDisplay()},this.intervalMs))}updateDisplay(){let n=this.frames[this.currentFrame]??"",i=this.renderIndicatorVerbatim?n:this.spinnerColorFn(n),o=n.length>0?`${i} `:"";this.setText(`${o}${this.messageColorFn(this.message)}`),this.ui&&this.ui.requestRender()}};var Ec=class extends ri{constructor(){super(...arguments);this.abortController=new AbortController}get signal(){return this.abortController.signal}get aborted(){return this.abortController.signal.aborted}handleInput(n){we().matches(n,"tui.select.cancel")&&(this.abortController.abort(),this.onAbort?.())}dispose(){this.stop()}};var La=class{constructor(){this.ring=[]}push(e,n){if(e)if(n.accumulate&&this.ring.length>0){let i=this.ring.pop();this.ring.push(n.prepend?e+i:i+e)}else this.ring.push(e)}peek(){return this.ring.length>0?this.ring[this.ring.length-1]:void 0}rotate(){if(this.ring.length>1){let e=this.ring.pop();this.ring.unshift(e)}}get length(){return this.ring.length}};import*as $o from"node:fs";import*as av from"node:os";import*as Da from"node:path";import{performance as rv}from"node:perf_hooks";function K$(t){let e=t.startsWith("#")?t.slice(1):t,n=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),o=parseInt(e.slice(4,6),16);return{r:n,g:i,b:o}}function Wa(t){if(!/^[0-9a-f]+$/i.test(t))return;let e=16**t.length-1;if(!(e<=0))return Math.round(parseInt(t,16)/e*255)}var yM=/^\x1b\]11;([^\x07\x1b]*)(?:\x07|\x1b\\)$/i,G$=/^\x1b\[\?997;(1|2)n$/;function wM(t){return yM.test(t)}function Xf(t){let e=t.match(yM);if(!e)return;let n=e[1].trim();if(n.startsWith("#")){let u=n.slice(1);if(/^[0-9a-f]{6}$/i.test(u))return K$(n);if(/^[0-9a-f]{12}$/i.test(u)){let d=Wa(u.slice(0,4)),p=Wa(u.slice(4,8)),m=Wa(u.slice(8,12));return d!==void 0&&p!==void 0&&m!==void 0?{r:d,g:p,b:m}:void 0}return}let i=n.replace(/^rgba?:/i,""),[o,r,s]=i.split("/");if(o===void 0||r===void 0||s===void 0)return;let a=Wa(o),l=Wa(r),c=Wa(s);return a!==void 0&&l!==void 0&&c!==void 0?{r:a,g:l,b:c}:void 0}function Zf(t){let e=t.match(G$);if(e)return e[1]==="2"?"light":"dark"}import{execSync as z$}from"node:child_process";var ev=null,TM={widthPx:9,heightPx:18};function kp(){return TM}function tv(t){TM=t}function H$(){try{return z$("tmux display-message -p '#{client_termfeatures}'",{encoding:"utf8",timeout:250,stdio:["ignore","pipe","ignore"]}).split(",").map(e=>e.trim()).includes("hyperlinks")}catch{return!1}}function CM(t=H$){let e=process.env.TERM_PROGRAM?.toLowerCase()||"",n=process.env.TERMINAL_EMULATOR?.toLowerCase()||"",i=process.env.TERM?.toLowerCase()||"",o=process.env.COLORTERM?.toLowerCase()||"",r=o==="truecolor"||o==="24bit";return process.env.TMUX||i.startsWith("tmux")?{images:null,trueColor:r,hyperlinks:t()}:i.startsWith("screen")?{images:null,trueColor:r,hyperlinks:!1}:process.env.KITTY_WINDOW_ID||e==="kitty"?{images:"kitty",trueColor:!0,hyperlinks:!0}:e==="ghostty"||i.includes("ghostty")||process.env.GHOSTTY_RESOURCES_DIR?{images:"kitty",trueColor:!0,hyperlinks:!0}:process.env.WEZTERM_PANE||e==="wezterm"?{images:"kitty",trueColor:!0,hyperlinks:!0}:e==="warpterminal"||process.env.WARP_SESSION_ID||process.env.WARP_TERMINAL_SESSION_UUID?{images:"kitty",trueColor:!0,hyperlinks:!0}:process.env.ITERM_SESSION_ID||e==="iterm.app"?{images:"iterm2",trueColor:!0,hyperlinks:!0}:process.env.WT_SESSION?{images:null,trueColor:!0,hyperlinks:!0}:e==="vscode"?{images:null,trueColor:!0,hyperlinks:!0}:e==="alacritty"?{images:null,trueColor:!0,hyperlinks:!0}:n==="jetbrains-jediterm"?{images:null,trueColor:!0,hyperlinks:!1}:{images:null,trueColor:r,hyperlinks:!1}}function ft(){return ev||(ev=CM()),ev}var SM="\x1B_G",kM="\x1B]1337;File=";function no(t){return t.startsWith(SM)||t.startsWith(kM)?!0:t.includes(SM)||t.includes(kM)}function nv(){return Math.floor(Math.random()*4294967294)+1}function MM(t,e={}){let i=["a=T","f=100","q=2"];if(e.moveCursor===!1&&i.push("C=1"),e.columns&&i.push(`c=${e.columns}`),e.rows&&i.push(`r=${e.rows}`),e.imageId&&i.push(`i=${e.imageId}`),t.length<=4096)return`\x1B_G${i.join(",")};${t}\x1B\\`;let o=[],r=0,s=!0;for(;r<t.length;){let a=t.slice(r,r+4096),l=r+4096>=t.length;s?(o.push(`\x1B_G${i.join(",")},m=1;${a}\x1B\\`),s=!1):l?o.push(`\x1B_Gm=0;${a}\x1B\\`):o.push(`\x1B_Gm=1;${a}\x1B\\`),r+=4096}return o.join("")}function iv(t){return`\x1B_Ga=d,d=I,i=${t},q=2\x1B\\`}function RM(t,e={}){let n=[`inline=${e.inline!==!1?1:0}`];if(e.width!==void 0&&n.push(`width=${e.width}`),e.height!==void 0&&n.push(`height=${e.height}`),e.name){let i=Buffer.from(e.name).toString("base64");n.push(`name=${i}`)}return e.preserveAspectRatio===!1&&n.push("preserveAspectRatio=0"),`\x1B]1337;File=${n.join(";")}:${t}\x07`}function V$(t,e,n,i={widthPx:9,heightPx:18}){let o=Math.max(1,Math.floor(e)),r=n===void 0?void 0:Math.max(1,Math.floor(n)),s=Math.max(1,t.widthPx),a=Math.max(1,t.heightPx),l=o*i.widthPx/s,c=r===void 0?l:r*i.heightPx/a,u=Math.min(l,c),d=s*u,p=a*u,m=Math.ceil(d/i.widthPx),g=Math.ceil(p/i.heightPx);return{columns:Math.max(1,Math.min(o,m)),rows:Math.max(1,r===void 0?g:Math.min(r,g))}}function PM(t){try{let e=Buffer.from(t,"base64");if(e.length<24||e[0]!==137||e[1]!==80||e[2]!==78||e[3]!==71)return null;let n=e.readUInt32BE(16),i=e.readUInt32BE(20);return{widthPx:n,heightPx:i}}catch{return null}}function IM(t){try{let e=Buffer.from(t,"base64");if(e.length<2||e[0]!==255||e[1]!==216)return null;let n=2;for(;n<e.length-9;){if(e[n]!==255){n++;continue}let i=e[n+1];if(i>=192&&i<=194){let r=e.readUInt16BE(n+5);return{widthPx:e.readUInt16BE(n+7),heightPx:r}}if(n+3>=e.length)return null;let o=e.readUInt16BE(n+2);if(o<2)return null;n+=2+o}return null}catch{return null}}function EM(t){try{let e=Buffer.from(t,"base64");if(e.length<10)return null;let n=e.slice(0,6).toString("ascii");if(n!=="GIF87a"&&n!=="GIF89a")return null;let i=e.readUInt16LE(6),o=e.readUInt16LE(8);return{widthPx:i,heightPx:o}}catch{return null}}function AM(t){try{let e=Buffer.from(t,"base64");if(e.length<30)return null;let n=e.slice(0,4).toString("ascii"),i=e.slice(8,12).toString("ascii");if(n!=="RIFF"||i!=="WEBP")return null;let o=e.slice(12,16).toString("ascii");if(o==="VP8 "){if(e.length<30)return null;let r=e.readUInt16LE(26)&16383,s=e.readUInt16LE(28)&16383;return{widthPx:r,heightPx:s}}else if(o==="VP8L"){if(e.length<25)return null;let r=e.readUInt32LE(21),s=(r&16383)+1,a=(r>>14&16383)+1;return{widthPx:s,heightPx:a}}else if(o==="VP8X"){if(e.length<30)return null;let r=(e[24]|e[25]<<8|e[26]<<16)+1,s=(e[27]|e[28]<<8|e[29]<<16)+1;return{widthPx:r,heightPx:s}}return null}catch{return null}}function Ac(t,e){return e==="image/png"?PM(t):e==="image/jpeg"?IM(t):e==="image/gif"?EM(t):e==="image/webp"?AM(t):null}function ov(t,e,n={}){let i=ft();if(!i.images)return null;let o=n.maxWidthCells??80,r=V$(e,o,n.maxHeightCells,kp());return i.images==="kitty"?{sequence:MM(t,{columns:r.columns,rows:r.rows,imageId:n.imageId,moveCursor:n.moveCursor}),rows:r.rows,imageId:n.imageId}:i.images==="iterm2"?{sequence:RM(t,{width:r.columns,height:"auto",preserveAspectRatio:n.preserveAspectRatio??!0}),rows:r.rows}:null}function Ir(t,e){return`\x1B]8;;${e}\x1B\\${t}\x1B]8;;\x1B\\`}function Fa(t,e,n){let i=[];return n&&i.push(n),i.push(`[${t}]`),e&&i.push(`${e.widthPx}x${e.heightPx}`),`[Image: ${i.join(" ")}]`}var _M="\x1B_G";function LM(t){let e=t.indexOf(_M);if(e===-1)return;let n=e+_M.length,i=t.indexOf(";",n);if(i===-1)return;let o=[],r=1,s=t.slice(n,i);for(let a of s.split(",")){let[l,c]=a.split("=",2);if(c===void 0)continue;let u=Number(c);!Number.isInteger(u)||u<=0||u>4294967295||(l==="i"?o.push(u):l==="r"&&(r=u))}return{ids:o,rows:r}}function sv(t){return LM(t)?.ids??[]}function Q$(t){return LM(t)?.rows??1}function lv(t){return t!==null&&"focused"in t}var Er="\x1B_pi:c\x07";function OM(t,e){if(t===void 0)return;if(typeof t=="number")return t;let n=t.match(/^(\d+(?:\.\d+)?)%$/);if(n)return Math.floor(e*parseFloat(n[1])/100)}function J$(){return!!process.env.TERMUX_VERSION}var G=class{constructor(){this.children=[]}addChild(e){this.children.push(e)}removeChild(e){let n=this.children.indexOf(e);n!==-1&&this.children.splice(n,1)}clear(){this.children=[]}invalidate(){for(let e of this.children)e.invalidate?.()}render(e){let n=[];for(let i of this.children){let o=i.render(e);for(let r of o)n.push(r)}return n}},Ar=class t extends G{constructor(n,i){super();this.previousLines=[];this.previousKittyImageIds=new Set;this.previousWidth=0;this.previousHeight=0;this.focusedComponent=null;this.inputListeners=new Set;this.renderRequested=!1;this.lastRenderAt=0;this.cursorRow=0;this.hardwareCursorRow=0;this.showHardwareCursor=process.env.PI_HARDWARE_CURSOR==="1";this.clearOnShrink=process.env.PI_CLEAR_ON_SHRINK==="1";this.maxLinesRendered=0;this.previousViewportTop=0;this.fullRedrawCount=0;this.stopped=!1;this.pendingOsc11BackgroundReplies=0;this.pendingOsc11BackgroundQueries=[];this.terminalColorSchemeListeners=new Set;this.terminalColorSchemeNotificationsEnabled=!1;this.focusOrderCounter=0;this.overlayStack=[];this.overlayFocusRestore={status:"inactive"};this.terminal=n,i!==void 0&&(this.showHardwareCursor=i)}static{this.MIN_RENDER_INTERVAL_MS=16}get fullRedraws(){return this.fullRedrawCount}getShowHardwareCursor(){return this.showHardwareCursor}setShowHardwareCursor(n){this.showHardwareCursor!==n&&(this.showHardwareCursor=n,n||this.terminal.hideCursor(),this.requestRender())}getClearOnShrink(){return this.clearOnShrink}setClearOnShrink(n){this.clearOnShrink=n}setFocus(n){this.setFocusInternal({component:n,overlayFocusRestore:"clear"})}setFocusInternal({component:n,overlayFocusRestore:i}){let o=this.focusedComponent,r=n,s=o?this.overlayStack.find(u=>u.component===o&&this.isOverlayVisible(u)):void 0,a=r?this.overlayStack.some(u=>u.component===r):!1,l=this.getVisibleOverlayFocusRestore();r&&!a?l.status==="blocked"&&l.blockedBy===o?l.resume.status==="focus-target"||!this.isComponentMounted(l.blockedBy)?r=this.resolveBlockedOverlayFocusResume(l):this.overlayFocusRestore={status:"blocked",overlay:l.overlay,blockedBy:r,resume:l.resume}:s&&l.status!=="inactive"&&l.overlay===s&&!this.isOverlayFocusAncestor(s,r)&&(this.overlayFocusRestore={status:"blocked",overlay:s,blockedBy:r,resume:{status:"restore-overlay"}}):r===null&&(l.status==="blocked"&&l.blockedBy===o?r=this.resolveBlockedOverlayFocusResume(l):i==="clear"&&this.clearOverlayFocusRestore()),lv(this.focusedComponent)&&(this.focusedComponent.focused=!1),this.focusedComponent=r,lv(r)&&(r.focused=!0);let c=r?this.overlayStack.find(u=>u.component===r&&this.isOverlayVisible(u)):void 0;c&&(this.overlayFocusRestore={status:"eligible",overlay:c})}clearOverlayFocusRestore(){this.overlayFocusRestore={status:"inactive"}}clearOverlayFocusRestoreFor(n){this.overlayFocusRestore.status!=="inactive"&&this.overlayFocusRestore.overlay===n&&this.clearOverlayFocusRestore()}resolveBlockedOverlayFocusResume(n){return n.resume.status==="restore-overlay"?n.overlay.component:(this.clearOverlayFocusRestore(),n.resume.target)}getVisibleOverlayFocusRestore(){let n=this.overlayFocusRestore;return n.status==="inactive"?n:!this.overlayStack.includes(n.overlay)||!this.isOverlayVisible(n.overlay)?{status:"inactive"}:n}isOverlayFocusAncestor(n,i){let o=new Set,r=n.preFocus;for(;r&&!o.has(r);){if(o.add(r),r===i)return!0;r=this.overlayStack.find(s=>s.component===r)?.preFocus??null}return!1}retargetOverlayPreFocus(n){for(let i of this.overlayStack)i!==n&&i.preFocus===n.component&&(i.preFocus=n.preFocus)}isComponentMounted(n){return this.children.some(i=>this.containsComponent(i,n))}containsComponent(n,i){return n===i?!0:n instanceof G?n.children.some(o=>this.containsComponent(o,i)):!1}showOverlay(n,i){let o={component:n,...i===void 0?{}:{options:i},preFocus:this.focusedComponent,hidden:!1,focusOrder:++this.focusOrderCounter};return this.overlayStack.push(o),!i?.nonCapturing&&this.isOverlayVisible(o)&&this.setFocus(n),this.terminal.hideCursor(),this.requestRender(),{hide:()=>{let r=this.overlayStack.indexOf(o);if(r!==-1){if(this.clearOverlayFocusRestoreFor(o),this.retargetOverlayPreFocus(o),this.overlayStack.splice(r,1),this.focusedComponent===n){let s=this.getTopmostVisibleOverlay();this.setFocus(s?.component??o.preFocus)}this.overlayStack.length===0&&this.terminal.hideCursor(),this.requestRender()}},setHidden:r=>{if(o.hidden!==r){if(o.hidden=r,r){if(this.clearOverlayFocusRestoreFor(o),this.focusedComponent===n){let s=this.getTopmostVisibleOverlay();this.setFocus(s?.component??o.preFocus)}}else!i?.nonCapturing&&this.isOverlayVisible(o)&&(o.focusOrder=++this.focusOrderCounter,this.setFocus(n));this.requestRender()}},isHidden:()=>o.hidden,focus:()=>{!this.overlayStack.includes(o)||!this.isOverlayVisible(o)||(o.focusOrder=++this.focusOrderCounter,this.setFocus(n),this.requestRender())},unfocus:r=>{let s=this.focusedComponent===n,a=this.overlayFocusRestore,l=a.status!=="inactive"&&a.overlay===o;if(!(!s&&!l)){if(a.status==="blocked"&&a.overlay===o&&this.focusedComponent===a.blockedBy){r?this.overlayFocusRestore={status:"blocked",overlay:o,blockedBy:a.blockedBy,resume:{status:"focus-target",target:r.target}}:this.clearOverlayFocusRestore(),this.requestRender();return}if(this.clearOverlayFocusRestoreFor(o),s||r){let c=this.getTopmostVisibleOverlay(),u=c&&c!==o?c.component:o.preFocus;this.setFocus(r?r.target:u)}this.requestRender()}},isFocused:()=>this.focusedComponent===n}}hideOverlay(){let n=this.overlayStack[this.overlayStack.length-1];if(n){if(this.clearOverlayFocusRestoreFor(n),this.retargetOverlayPreFocus(n),this.overlayStack.pop(),this.focusedComponent===n.component){let i=this.getTopmostVisibleOverlay();this.setFocus(i?.component??n.preFocus)}this.overlayStack.length===0&&this.terminal.hideCursor(),this.requestRender()}}hasOverlay(){return this.overlayStack.some(n=>this.isOverlayVisible(n))}isOverlayVisible(n){return n.hidden?!1:n.options?.visible?n.options.visible(this.terminal.columns,this.terminal.rows):!0}getTopmostVisibleOverlay(){let n;for(let i of this.overlayStack)i.options?.nonCapturing||!this.isOverlayVisible(i)||(!n||i.focusOrder>n.focusOrder)&&(n=i);return n}invalidate(){super.invalidate();for(let n of this.overlayStack)n.component.invalidate?.()}start(){this.stopped=!1,this.terminal.start(n=>this.handleInput(n),()=>this.requestRender()),this.terminal.hideCursor(),this.terminalColorSchemeNotificationsEnabled&&this.terminal.write("\x1B[?2031h"),this.queryCellSize(),this.requestRender()}addInputListener(n){return this.inputListeners.add(n),()=>{this.inputListeners.delete(n)}}removeInputListener(n){this.inputListeners.delete(n)}onTerminalColorSchemeChange(n){return this.terminalColorSchemeListeners.add(n),()=>{this.terminalColorSchemeListeners.delete(n)}}setTerminalColorSchemeNotifications(n){this.terminalColorSchemeNotificationsEnabled!==n&&(this.terminalColorSchemeNotificationsEnabled=n,this.stopped||this.terminal.write(n?"\x1B[?2031h":"\x1B[?2031l"))}queryCellSize(){ft().images&&this.terminal.write("\x1B[16t")}stop(){if(this.stopped=!0,this.renderTimer&&(clearTimeout(this.renderTimer),this.renderTimer=void 0),this.terminalColorSchemeNotificationsEnabled&&this.terminal.write("\x1B[?2031l"),this.previousLines.length>0){let i=this.previousLines.length-this.hardwareCursorRow;i>0?this.terminal.write(`\x1B[${i}B`):i<0&&this.terminal.write(`\x1B[${-i}A`),this.terminal.write(`\r
@@ -258,8 +258,8 @@ Pi will resume when the editor exits.
258
258
  ${i}`);let o=this.getTextOutput();return o&&(n+=`
259
259
  ${o}`),n}};var KK=2,GK=4,zK=20,HK=2,VK=12;function QK(t,e){let n=Math.max(0,e-KK),i=t.reduce((a,l)=>Math.max(a,l.bodyWidth),0),o=Math.max(0,i-n),r=t.find(a=>a.isSelected),s=0;if(r&&o>0){let a=Math.min(zK,Math.max(GK,Math.floor(n/3)));if(r.anchorCol>n-a){let l=Math.min(VK,Math.max(HK,Math.floor(n/4)));s=Math.min(o,r.anchorCol-l)}}return t.map(a=>{let l=s>0?`${a.gutter}${eo(a.body,s,n,!0)}\x1B[0m`:a.gutter+a.body;return te(l,e,"")})}var tb=class{constructor(e,n,i,o,r){this.flatNodes=[];this.filteredNodes=[];this.selectedIndex=0;this.filterMode="default";this.searchQuery="";this.toolCallMap=new Map;this.multipleRoots=!1;this.showLabelTimestamps=!1;this.activePathIds=new Set;this.visibleParentMap=new Map;this.visibleChildrenMap=new Map;this.lastSelectedId=null;this.foldedNodes=new Set;this.currentLeafId=n,this.maxVisibleLines=i,this.filterMode=r??"default",this.multipleRoots=e.length>1,this.flatNodes=this.flattenTree(e),this.buildActivePath(),this.applyFilter();let s=o??n;this.selectedIndex=this.findNearestVisibleIndex(s),this.lastSelectedId=this.filteredNodes[this.selectedIndex]?.node.entry.id??null}findNearestVisibleIndex(e){if(this.filteredNodes.length===0)return 0;let n=new Map;for(let r of this.flatNodes)n.set(r.node.entry.id,r);let i=new Map(this.filteredNodes.map((r,s)=>[r.node.entry.id,s])),o=e;for(;o!==null;){let r=i.get(o);if(r!==void 0)return r;let s=n.get(o);if(!s)break;o=s.node.entry.parentId??null}return this.filteredNodes.length-1}buildActivePath(){if(this.activePathIds.clear(),!this.currentLeafId)return;let e=new Map;for(let i of this.flatNodes)e.set(i.node.entry.id,i);let n=this.currentLeafId;for(;n;){this.activePathIds.add(n);let i=e.get(n);if(!i)break;n=i.node.entry.parentId??null}}flattenTree(e){let n=[];this.toolCallMap.clear();let i=[],o=new Map,r=this.currentLeafId;{let l=[],c=[...e];for(;c.length>0;){let u=c.pop();l.push(u);for(let d=u.children.length-1;d>=0;d--)c.push(u.children[d])}for(let u=l.length-1;u>=0;u--){let d=l[u],p=r!==null&&d.entry.id===r;for(let m of d.children)o.get(m)&&(p=!0);o.set(d,p)}}let s=e.length>1,a=[...e].sort((l,c)=>Number(o.get(c))-Number(o.get(l)));for(let l=a.length-1;l>=0;l--){let c=l===a.length-1;i.push([a[l],s?1:0,s,s,c,[],s])}for(;i.length>0;){let[l,c,u,d,p,m,g]=i.pop(),h=l.entry;if(h.type==="message"&&h.message.role==="assistant"){let D=h.message.content;if(Array.isArray(D)){for(let _ of D)if(typeof _=="object"&&_!==null&&"type"in _&&_.type==="toolCall"){let F=_;this.toolCallMap.set(F.id,{name:F.name,arguments:F.arguments})}}}n.push({node:l,indent:c,showConnector:d,isLast:p,gutters:m,isVirtualRootChild:g});let f=l.children,b=f.length>1,x=(()=>{let D=[],_=[];for(let F of f)o.get(F)?D.push(F):_.push(F);return[...D,..._]})(),y;b||u&&c>0?y=c+1:y=c;let T=d&&!g,P=this.multipleRoots?Math.max(0,c-1):c,E=Math.max(0,P-1),W=T?[...m,{position:E,show:!p}]:m;for(let D=x.length-1;D>=0;D--){let _=D===x.length-1;i.push([x[D],y,b,b,_,W,!1])}}return n}applyFilter(){this.filteredNodes.length>0&&(this.lastSelectedId=this.filteredNodes[this.selectedIndex]?.node.entry.id??this.lastSelectedId);let e=this.searchQuery.toLowerCase().split(/\s+/).filter(Boolean);if(this.filteredNodes=this.flatNodes.filter(n=>{let i=n.node.entry,o=i.id===this.currentLeafId;if(i.type==="message"&&i.message.role==="assistant"&&!o){let a=i.message,l=this.hasTextContent(a.content),c=a.stopReason&&a.stopReason!=="stop"&&a.stopReason!=="toolUse";if(!l&&!c)return!1}let r=!0,s=i.type==="label"||i.type==="custom"||i.type==="model_change"||i.type==="thinking_level_change"||i.type==="session_info";switch(this.filterMode){case"user-only":r=i.type==="message"&&i.message.role==="user";break;case"no-tools":r=!s&&!(i.type==="message"&&i.message.role==="toolResult");break;case"labeled-only":r=n.node.label!==void 0;break;case"all":r=!0;break;default:r=!s;break}if(!r)return!1;if(e.length>0){let a=this.getSearchableText(n.node).toLowerCase();return e.every(l=>a.includes(l))}return!0}),this.foldedNodes.size>0){let n=new Set;for(let i of this.flatNodes){let{id:o,parentId:r}=i.node.entry;r!=null&&(this.foldedNodes.has(r)||n.has(r))&&n.add(o)}this.filteredNodes=this.filteredNodes.filter(i=>!n.has(i.node.entry.id))}this.recalculateVisualStructure(),this.lastSelectedId?this.selectedIndex=this.findNearestVisibleIndex(this.lastSelectedId):this.selectedIndex>=this.filteredNodes.length&&(this.selectedIndex=Math.max(0,this.filteredNodes.length-1)),this.filteredNodes.length>0&&(this.lastSelectedId=this.filteredNodes[this.selectedIndex]?.node.entry.id??this.lastSelectedId)}recalculateVisualStructure(){if(this.filteredNodes.length===0)return;let e=new Set(this.filteredNodes.map(c=>c.node.entry.id)),n=new Map;for(let c of this.flatNodes)n.set(c.node.entry.id,c);let i=c=>{let u=n.get(c)?.node.entry.parentId??null;for(;u!==null;){if(e.has(u))return u;u=n.get(u)?.node.entry.parentId??null}return null},o=new Map,r=new Map;r.set(null,[]);for(let c of this.filteredNodes){let u=c.node.entry.id,d=i(u);o.set(u,d),r.has(d)||r.set(d,[]),r.get(d).push(u)}let s=r.get(null);this.multipleRoots=s.length>1;let a=new Map;for(let c of this.filteredNodes)a.set(c.node.entry.id,c);let l=[];for(let c=s.length-1;c>=0;c--){let u=c===s.length-1;l.push([s[c],this.multipleRoots?1:0,this.multipleRoots,this.multipleRoots,u,[],this.multipleRoots])}for(;l.length>0;){let[c,u,d,p,m,g,h]=l.pop(),f=a.get(c);if(!f)continue;f.indent=u,f.showConnector=p,f.isLast=m,f.gutters=g,f.isVirtualRootChild=h;let b=r.get(c)||[],x=b.length>1,y;x||d&&u>0?y=u+1:y=u;let T=p&&!h,P=this.multipleRoots?Math.max(0,u-1):u,E=Math.max(0,P-1),W=T?[...g,{position:E,show:!m}]:g;for(let D=b.length-1;D>=0;D--){let _=D===b.length-1;l.push([b[D],y,x,x,_,W,!1])}}this.visibleParentMap=o,this.visibleChildrenMap=r}getSearchableText(e){let n=e.entry,i=[];switch(e.label&&i.push(e.label),n.type){case"message":{let o=n.message;if(i.push(o.role),"content"in o&&o.content&&i.push(this.extractContent(o.content)),o.role==="bashExecution"){let r=o;r.command&&i.push(r.command)}break}case"custom_message":{i.push(n.customType),typeof n.content=="string"?i.push(n.content):i.push(this.extractContent(n.content));break}case"compaction":i.push("compaction");break;case"branch_summary":i.push("branch summary",n.summary);break;case"session_info":i.push("title"),n.name&&i.push(n.name);break;case"model_change":i.push("model",n.modelId);break;case"thinking_level_change":i.push("thinking",n.thinkingLevel);break;case"custom":i.push("custom",n.customType);break;case"label":i.push("label",n.label??"");break}return i.join(" ")}invalidate(){}getSearchQuery(){return this.searchQuery}getSelectedNode(){return this.filteredNodes[this.selectedIndex]?.node}copySelected(){let e=this.getSelectedNode();this.onCopy?.(e?this.getEntryCopyText(e):void 0)}updateNodeLabel(e,n,i){for(let o of this.flatNodes)if(o.node.entry.id===e){o.node.label=n,o.node.labelTimestamp=n?i??new Date().toISOString():void 0;break}}getStatusLabels(){let e="";switch(this.filterMode){case"no-tools":e+=" [no-tools]";break;case"user-only":e+=" [user]";break;case"labeled-only":e+=" [labeled]";break;case"all":e+=" [all]";break}return this.showLabelTimestamps&&(e+=" [+label time]"),e}render(e){let n=[];if(this.filteredNodes.length===0)return n.push(te(v.fg("muted"," No entries found"),e)),n.push(te(v.fg("muted",` (0/0)${this.getStatusLabels()}`),e)),n;let i=Math.max(0,Math.min(this.selectedIndex-Math.floor(this.maxVisibleLines/2),this.filteredNodes.length-this.maxVisibleLines)),o=Math.min(i+this.maxVisibleLines,this.filteredNodes.length),r=[];for(let s=i;s<o;s++){let a=this.filteredNodes[s],l=a.node.entry,c=s===this.selectedIndex,u=c?v.fg("accent","\u203A "):" ",d=this.multipleRoots?Math.max(0,a.indent-1):a.indent,p=a.showConnector&&!a.isVirtualRootChild?a.isLast?"\u2514\u2500 ":"\u251C\u2500 ":"",m=p?d-1:-1,g=d*3,h=[],f=this.foldedNodes.has(l.id);for(let I=0;I<g;I++){let U=Math.floor(I/3),K=I%3,z=a.gutters.find(oe=>oe.position===U);if(z)K===0?h.push(z.show?"\u2502":" "):h.push(" ");else if(p&&U===m)if(K===0)h.push(a.isLast?"\u2514":"\u251C");else if(K===1){let oe=this.isFoldable(l.id);h.push(f?"\u229E":oe?"\u229F":"\u2500")}else h.push(" ");else h.push(" ")}let b=h.join(""),x=a.showConnector&&!a.isVirtualRootChild,y=f&&!x?v.fg("accent","\u229E "):"",P=this.activePathIds.has(l.id)?v.fg("accent","\u2022 "):"",E=a.node.label?v.fg("warning",`[${a.node.label}] `):"",W=this.showLabelTimestamps&&a.node.label&&a.node.labelTimestamp?v.fg("muted",`${this.formatLabelTimestamp(a.node.labelTimestamp)} `):"",D=this.getEntryDisplayText(a.node,c),_=v.fg("dim",b)+y+P,F=j(_),O=u,R=_+E+W+D;c&&(O=v.bg("selectedBg",O),R=v.bg("selectedBg",R)),r.push({gutter:O,body:R,anchorCol:F,bodyWidth:j(R),isSelected:c})}return n.push(...QK(r,e)),n.push(te(v.fg("muted",` (${this.selectedIndex+1}/${this.filteredNodes.length})${this.getStatusLabels()}`),e)),n}getEntryDisplayText(e,n){let i=e.entry,o,r=s=>s.replace(/[\n\t]/g," ").trim();switch(i.type){case"message":{let s=i.message,a=s.role;if(a==="user"){let l=s,c=r(this.extractContent(l.content));o=v.fg("accent","user: ")+c}else if(a==="assistant"){let l=s,c=r(this.extractContent(l.content));if(c)o=v.fg("success","assistant: ")+c;else if(l.stopReason==="aborted")o=v.fg("success","assistant: ")+v.fg("muted","(aborted)");else if(l.errorMessage){let u=r(l.errorMessage).slice(0,80);o=v.fg("success","assistant: ")+v.fg("error",u)}else o=v.fg("success","assistant: ")+v.fg("muted","(no content)")}else if(a==="toolResult"){let l=s,c=l.toolCallId?this.toolCallMap.get(l.toolCallId):void 0;c?o=v.fg("muted",this.formatToolCall(c.name,c.arguments)):o=v.fg("muted",`[${l.toolName??"tool"}]`)}else if(a==="bashExecution"){let l=s;o=v.fg("dim",`[bash]: ${r(l.command??"")}`)}else o=v.fg("dim",`[${a}]`);break}case"custom_message":{let s=typeof i.content=="string"?i.content:i.content.filter(a=>a.type==="text").map(a=>a.text).join("");o=v.fg("customMessageLabel",`[${i.customType}]: `)+r(s);break}case"compaction":{let s=Math.round(i.tokensBefore/1e3);o=v.fg("borderAccent",`[compaction: ${s}k tokens]`);break}case"branch_summary":o=v.fg("warning","[branch summary]: ")+r(i.summary);break;case"model_change":o=v.fg("dim",`[model: ${i.modelId}]`);break;case"thinking_level_change":o=v.fg("dim",`[thinking: ${i.thinkingLevel}]`);break;case"custom":o=v.fg("dim",`[custom: ${i.customType}]`);break;case"label":o=v.fg("dim",`[label: ${i.label??"(cleared)"}]`);break;case"session_info":o=i.name?[v.fg("dim","[title: "),v.fg("dim",i.name),v.fg("dim","]")].join(""):[v.fg("dim","[title: "),v.italic(v.fg("dim","empty")),v.fg("dim","]")].join("");break;default:o=""}return n?v.bold(o):o}formatLabelTimestamp(e){let n=new Date(e),i=new Date,o=n.getHours().toString().padStart(2,"0"),r=n.getMinutes().toString().padStart(2,"0"),s=`${o}:${r}`;if(n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()&&n.getDate()===i.getDate())return s;let a=n.getMonth()+1,l=n.getDate();return n.getFullYear()===i.getFullYear()?`${a}/${l} ${s}`:`${n.getFullYear().toString().slice(-2)}/${a}/${l} ${s}`}extractContent(e){return this.extractFullContent(e).slice(0,200)}extractFullContent(e){if(typeof e=="string")return e;if(!Array.isArray(e))return"";let n="";for(let i of e)typeof i=="object"&&i!==null&&"type"in i&&i.type==="text"&&(n+=i.text);return n}getEntryCopyText(e){let n=e.entry,i;switch(n.type){case"message":n.message.role==="bashExecution"?i=n.message.command:"content"in n.message&&(i=this.extractFullContent(n.message.content),!i&&n.message.role==="assistant"&&(i=n.message.errorMessage));break;case"custom_message":i=this.extractFullContent(n.content);break;case"compaction":i=n.summary;break;case"branch_summary":i=n.summary;break}return i?.trim()?i:void 0}hasTextContent(e){if(typeof e=="string")return e.trim().length>0;if(Array.isArray(e)){for(let n of e)if(typeof n=="object"&&n!==null&&"type"in n&&n.type==="text"){let i=n.text;if(i&&i.trim().length>0)return!0}}return!1}formatToolCall(e,n){let i=o=>{let r=process.env.HOME||process.env.USERPROFILE||"";return r&&o.startsWith(r)?`~${o.slice(r.length)}`:o};switch(e){case"read":{let o=i(String(n.path||n.file_path||"")),r=n.offset,s=n.limit,a=o;if(r!==void 0||s!==void 0){let l=r??1,c=s!==void 0?l+s-1:"";a+=`:${l}${c?`-${c}`:""}`}return`[read: ${a}]`}case"write":return`[write: ${i(String(n.path||n.file_path||""))}]`;case"edit":return`[edit: ${i(String(n.path||n.file_path||""))}]`;case"bash":{let o=String(n.command||"");return`[bash: ${o.replace(/[\n\t]/g," ").trim().slice(0,50)}${o.length>50?"...":""}]`}case"grep":{let o=String(n.pattern||""),r=i(String(n.path||"."));return`[grep: /${o}/ in ${r}]`}case"find":{let o=String(n.pattern||""),r=i(String(n.path||"."));return`[find: ${o} in ${r}]`}case"ls":return`[ls: ${i(String(n.path||"."))}]`;default:{let o=JSON.stringify(n).slice(0,40);return`[${e}: ${o}${JSON.stringify(n).length>40?"...":""}]`}}}handleInput(e){let n=we();if(n.matches(e,"tui.select.up"))this.selectedIndex=this.selectedIndex===0?this.filteredNodes.length-1:this.selectedIndex-1;else if(n.matches(e,"tui.select.down"))this.selectedIndex=this.selectedIndex===this.filteredNodes.length-1?0:this.selectedIndex+1;else if(n.matches(e,"app.tree.foldOrUp")){let i=this.filteredNodes[this.selectedIndex]?.node.entry.id;i&&this.isFoldable(i)&&!this.foldedNodes.has(i)?(this.foldedNodes.add(i),this.applyFilter()):this.selectedIndex=this.findBranchSegmentStart("up")}else if(n.matches(e,"app.tree.unfoldOrDown")){let i=this.filteredNodes[this.selectedIndex]?.node.entry.id;i&&this.foldedNodes.has(i)?(this.foldedNodes.delete(i),this.applyFilter()):this.selectedIndex=this.findBranchSegmentStart("down")}else if(n.matches(e,"tui.editor.cursorLeft")||n.matches(e,"tui.select.pageUp"))this.selectedIndex=Math.max(0,this.selectedIndex-this.maxVisibleLines);else if(n.matches(e,"tui.editor.cursorRight")||n.matches(e,"tui.select.pageDown"))this.selectedIndex=Math.min(this.filteredNodes.length-1,this.selectedIndex+this.maxVisibleLines);else if(n.matches(e,"tui.select.confirm")){let i=this.filteredNodes[this.selectedIndex];i&&this.onSelect&&this.onSelect(i.node.entry.id)}else if(n.matches(e,"app.message.copy"))this.copySelected();else if(n.matches(e,"tui.select.cancel"))this.searchQuery?(this.searchQuery="",this.foldedNodes.clear(),this.applyFilter()):this.onCancel?.();else if(n.matches(e,"app.tree.filter.default"))this.filterMode="default",this.foldedNodes.clear(),this.applyFilter();else if(n.matches(e,"app.tree.filter.noTools"))this.filterMode=this.filterMode==="no-tools"?"default":"no-tools",this.foldedNodes.clear(),this.applyFilter();else if(n.matches(e,"app.tree.filter.userOnly"))this.filterMode=this.filterMode==="user-only"?"default":"user-only",this.foldedNodes.clear(),this.applyFilter();else if(n.matches(e,"app.tree.filter.labeledOnly"))this.filterMode=this.filterMode==="labeled-only"?"default":"labeled-only",this.foldedNodes.clear(),this.applyFilter();else if(n.matches(e,"app.tree.filter.all"))this.filterMode=this.filterMode==="all"?"default":"all",this.foldedNodes.clear(),this.applyFilter();else if(n.matches(e,"app.tree.filter.cycleBackward")){let i=["default","no-tools","user-only","labeled-only","all"],o=i.indexOf(this.filterMode);this.filterMode=i[(o-1+i.length)%i.length],this.foldedNodes.clear(),this.applyFilter()}else if(n.matches(e,"app.tree.filter.cycleForward")){let i=["default","no-tools","user-only","labeled-only","all"],o=i.indexOf(this.filterMode);this.filterMode=i[(o+1)%i.length],this.foldedNodes.clear(),this.applyFilter()}else if(n.matches(e,"tui.editor.deleteCharBackward"))this.searchQuery.length>0&&(this.searchQuery=this.searchQuery.slice(0,-1),this.foldedNodes.clear(),this.applyFilter());else if(n.matches(e,"app.tree.editLabel")){let i=this.filteredNodes[this.selectedIndex];i&&this.onLabelEdit&&this.onLabelEdit(i.node.entry.id,i.node.label)}else n.matches(e,"app.tree.toggleLabelTimestamp")?this.showLabelTimestamps=!this.showLabelTimestamps:![...e].some(o=>{let r=o.charCodeAt(0);return r<32||r===127||r>=128&&r<=159})&&e.length>0&&(this.searchQuery+=e,this.foldedNodes.clear(),this.applyFilter())}isFoldable(e){let n=this.visibleChildrenMap.get(e);if(!n||n.length===0)return!1;let i=this.visibleParentMap.get(e);if(i==null)return!0;let o=this.visibleChildrenMap.get(i);return o!==void 0&&o.length>1}findBranchSegmentStart(e){let n=this.filteredNodes[this.selectedIndex]?.node.entry.id;if(!n)return this.selectedIndex;let i=new Map(this.filteredNodes.map((r,s)=>[r.node.entry.id,s])),o=n;if(e==="down")for(;;){let r=this.visibleChildrenMap.get(o)??[];if(r.length===0)return i.get(o);if(r.length>1)return i.get(r[0]);o=r[0]}for(;;){let r=this.visibleParentMap.get(o)??null;if(r===null)return i.get(o);if((this.visibleChildrenMap.get(r)??[]).length>1){let a=i.get(o);if(a<this.selectedIndex)return a}o=r}}},nb=class{constructor(e){this.treeList=e}invalidate(){}render(e){let n=this.treeList.getSearchQuery();return n?[te(` ${v.fg("muted","Type to search:")} ${v.fg("accent",n)}`,e)]:[te(` ${v.fg("muted","Type to search:")}`,e)]}handleInput(e){}},ib=class{invalidate(){}render(e){let n=JK.map(({keys:l,label:c,labelFirst:u})=>{let d=YK(l);return d?u?`${c} ${d}`:`${d} ${c}`:c}),i=Math.max(1,e),o=" ",r=" \xB7 ",s=[],a="";for(let l of n){let c=a?`${a}${r}${l}`:j(`${o}${l}`)<=i?`${o}${l}`:l;if(!a||j(c)<=i){a=c;continue}s.push(...on(a.trimEnd(),i)),a=j(`${o}${l}`)<=i?`${o}${l}`:l}return a&&s.push(...on(a.trimEnd(),i)),s.map(l=>v.fg("muted",l))}},JK=[{keys:["tui.select.up","tui.select.down"],label:"move"},{keys:["tui.editor.cursorLeft","tui.editor.cursorRight"],label:"page"},{keys:["app.tree.foldOrUp","app.tree.unfoldOrDown"],label:"branch"},{keys:["app.message.copy"],label:"copy"},{keys:["app.tree.editLabel"],label:"label"},{keys:["app.tree.toggleLabelTimestamp"],label:"label time"},{keys:["app.tree.filter.default","app.tree.filter.noTools","app.tree.filter.userOnly","app.tree.filter.labeledOnly","app.tree.filter.all"],label:"filters",labelFirst:!0},{keys:["app.tree.filter.cycleForward","app.tree.filter.cycleBackward"],label:"cycle",labelFirst:!0}];function YK(t){let e=[];for(let n of t){let i=we().getKeys(n)[0];i!==void 0&&e.push(i)}return e.length===0?"":zr(XK(e)).replace(/\bpageUp\b/g,"pgup").replace(/\bpageDown\b/g,"pgdn").replace(/\bup\b/g,"\u2191").replace(/\bdown\b/g,"\u2193").replace(/\bleft\b/g,"\u2190").replace(/\bright\b/g,"\u2192")}function XK(t){if(t.length===1)return t[0];let e=t.map(i=>{let o=i.lastIndexOf("+");return o===-1?{prefix:"",suffix:i}:{prefix:i.slice(0,o+1),suffix:i.slice(o+1)}}),n=e[0].prefix;return n&&e.every(i=>i.prefix===n)?`${n}${e.map(i=>i.suffix).join("/")}`:t.join("/")}var ob=class{constructor(e,n){this._focused=!1;this.entryId=e,this.input=new Ze,n&&this.input.setValue(n)}get focused(){return this._focused}set focused(e){this._focused=e,this.input.focused=e}invalidate(){}render(e){let n=[],o=e-2;return n.push(te(` ${v.fg("muted","Label (empty to remove):")}`,e)),n.push(...this.input.render(o).map(r=>te(` ${r}`,e))),n.push(te(` ${ce("tui.select.confirm","save")} ${ce("tui.select.cancel","cancel")}`,e)),n}handleInput(e){let n=we();if(n.matches(e,"tui.select.confirm")){let i=this.input.getValue().trim();this.onSubmit?.(this.entryId,i||void 0)}else n.matches(e,"tui.select.cancel")?this.onCancel?.():this.input.handleInput(e)}},Cl=class extends G{constructor(n,i,o,r,s,a,l,c){super();this.labelInput=null;this._focused=!1;this.onLabelChangeCallback=a;let u=Math.max(5,Math.floor(o/2));this.treeList=new tb(n,i,u,l,c),this.treeList.onSelect=r,this.treeList.onCancel=s,this.treeList.onCopy=d=>this.onCopy?.(d),this.treeList.onLabelEdit=(d,p)=>this.showLabelInput(d,p),this.treeContainer=new G,this.treeContainer.addChild(this.treeList),this.labelInputContainer=new G,this.addChild(new L(1)),this.addChild(new H),this.addChild(new A(v.bold(" Session Tree"),1,0)),this.addChild(new ib),this.addChild(new nb(this.treeList)),this.addChild(new H),this.addChild(new L(1)),this.addChild(this.treeContainer),this.addChild(this.labelInputContainer),this.addChild(new L(1)),this.addChild(new H),n.length===0&&setTimeout(()=>s(),100)}get focused(){return this._focused}set focused(n){this._focused=n,this.labelInput&&(this.labelInput.focused=n)}showLabelInput(n,i){this.labelInput=new ob(n,i),this.labelInput.onSubmit=(o,r)=>{this.treeList.updateNodeLabel(o,r),this.onLabelChangeCallback?.(o,r),this.hideLabelInput()},this.labelInput.onCancel=()=>this.hideLabelInput(),this.labelInput.focused=this._focused,this.treeContainer.clear(),this.labelInputContainer.clear(),this.labelInputContainer.addChild(this.labelInput)}hideLabelInput(){this.labelInput=null,this.labelInputContainer.clear(),this.treeContainer.clear(),this.treeContainer.addChild(this.treeList)}handleInput(n){this.labelInput?this.labelInput.handleInput(n):this.treeList.handleInput(n)}getTreeList(){return this.treeList}};function ZK(t,e){if(e===null)return"none";let n=e.decision?"trusted":"untrusted";return t!==void 0&&e.path!==t?`${n} (inherited from ${e.path})`:`${n} (${e.path})`}var yu=class extends G{constructor(e){super(),this.savedDecision=e.savedDecision,this.trustOptions=F0(e.cwd),this.selectedIndex=Math.max(0,this.trustOptions.findIndex(n=>this.isSavedOption(n))),this.onSelectCallback=e.onSelect,this.onCancelCallback=e.onCancel,this.addChild(new H),this.addChild(new L(1)),this.addChild(new A(v.fg("accent",v.bold("Project trust")),1,0)),this.addChild(new A(v.fg("muted",e.cwd),1,0)),this.addChild(new L(1)),this.addChild(new A(v.fg("muted",`Saved decision: ${ZK(this.trustOptions[0]?.savedPath,e.savedDecision)}`),1,0)),this.addChild(new A(v.fg("muted",`Current session: ${e.projectTrusted?"trusted":"untrusted"}`),1,0)),this.addChild(new L(1)),this.listContainer=new G,this.addChild(this.listContainer),this.addChild(new L(1)),this.addChild(new A(lt("\u2191\u2193","navigate")+" "+ce("tui.select.confirm","save")+" "+ce("tui.select.cancel","cancel"),1,0)),this.addChild(new L(1)),this.addChild(new H),this.updateList()}isSavedOption(e){return e.savedPath!==void 0&&this.savedDecision?.decision===e.trusted&&this.savedDecision.path===e.savedPath}updateList(){this.listContainer.clear();for(let e=0;e<this.trustOptions.length;e++){let n=this.trustOptions[e];if(!n)continue;let i=e===this.selectedIndex,r=this.isSavedOption(n)?v.fg("success"," \u2713"):"",s=i?v.fg("accent","\u2192 "):" ",a=i?v.fg("accent",n.label):v.fg("text",n.label);this.listContainer.addChild(new A(`${s}${a}${r}`,1,0))}}handleInput(e){let n=we();if(n.matches(e,"tui.select.up")||e==="k")this.selectedIndex=Math.max(0,this.selectedIndex-1),this.updateList();else if(n.matches(e,"tui.select.down")||e==="j")this.selectedIndex=Math.min(this.trustOptions.length-1,this.selectedIndex+1),this.updateList();else if(n.matches(e,"tui.select.confirm")||e===`
260
260
  `){let i=this.trustOptions[this.selectedIndex];i&&this.onSelectCallback({trusted:i.trusted,updates:i.updates})}else n.matches(e,"tui.select.cancel")&&this.onCancelCallback()}};var eG="\x1B]133;A\x07",tG="\x1B]133;B\x07",nG="\x1B]133;C\x07",Xo=class extends G{constructor(e,n=Ft(),i=1){super(),this.text=e,this.markdownTheme=n,this.outputPad=i,this.rebuild()}setOutputPad(e){this.outputPad=e,this.rebuild()}rebuild(){this.clear();let e=new pt(this.outputPad,1,n=>v.bg("userMessageBg",n));e.addChild(new nt(this.text,0,0,this.markdownTheme,{color:n=>v.fg("userMessageText",n)},{preserveOrderedListMarkers:!0,preserveBackslashEscapes:!0})),this.addChild(e)}render(e){let n=super.render(e);return n.length===0||(n[0]=eG+n[0],n[n.length-1]=tG+nG+n[n.length-1]),n}};var rb=class{constructor(e,n){this.messages=[];this.selectedIndex=0;this.maxVisible=10;this.messages=e;let i=n?e.findIndex(o=>o.id===n):-1;this.selectedIndex=i>=0?i:Math.max(0,e.length-1)}invalidate(){}render(e){let n=[];if(this.messages.length===0)return n.push(v.fg("muted"," No user messages found")),n;let i=Math.max(0,Math.min(this.selectedIndex-Math.floor(this.maxVisible/2),this.messages.length-this.maxVisible)),o=Math.min(i+this.maxVisible,this.messages.length);for(let r=i;r<o;r++){let s=this.messages[r],a=r===this.selectedIndex,l=s.text.replace(/\n/g," ").trim(),c=a?v.fg("accent","\u203A "):" ",u=e-2,d=te(l,u),p=c+(a?v.bold(d):d);n.push(p);let g=` Message ${r+1} of ${this.messages.length}`,h=v.fg("muted",g);n.push(h),n.push("")}if(i>0||o<this.messages.length){let r=v.fg("muted",` (${this.selectedIndex+1}/${this.messages.length})`);n.push(r)}return n}handleInput(e){let n=we();if(n.matches(e,"tui.select.up"))this.selectedIndex=this.selectedIndex===0?this.messages.length-1:this.selectedIndex-1;else if(n.matches(e,"tui.select.down"))this.selectedIndex=this.selectedIndex===this.messages.length-1?0:this.selectedIndex+1;else if(n.matches(e,"tui.select.confirm")){let i=this.messages[this.selectedIndex];i&&this.onSelect&&this.onSelect(i.id)}else n.matches(e,"tui.select.cancel")&&this.onCancel&&this.onCancel()}},Ml=class extends G{constructor(e,n,i,o){super(),this.addChild(new L(1)),this.addChild(new A(v.bold("Fork from Message"),1,0)),this.addChild(new A(v.fg("muted","Select a user message to copy the active path up to that point into a new session"),1,0)),this.addChild(new L(1)),this.addChild(new H),this.addChild(new L(1)),this.messageList=new rb(e,o),this.messageList.onSelect=n,this.messageList.onCancel=i,this.addChild(this.messageList),this.addChild(new L(1)),this.addChild(new H),e.length===0&&setTimeout(()=>i(),100)}getMessageList(){return this.messageList}};var Wm=class{constructor(e,n,i,o){this.terminalTheme=Dc().theme;this.autoSyncEnabled=!1;this.ui=e,this.settingsManager=n,this.showError=i,this.onChanged=o,this.activeThemeName=Ap(this.settingsManager.getThemeSetting(),this.terminalTheme),Ga(this.activeThemeName,!0),this.ui.onTerminalColorSchemeChange(r=>this.applyTerminalTheme(r))}async applyFromSettings(){let e=this.settingsManager.getThemeSetting(),n=Bo(e);if(n){this.terminalTheme=await Tv({ui:this.ui,timeoutMs:100}),this.setAutoSync(!0),this.applyThemeName(this.terminalTheme==="light"?n.lightTheme:n.darkTheme,!0);return}if(this.setAutoSync(!1),e!==void 0){this.applyThemeName(e,!0);return}let i=await kv({ui:this.ui,timeoutMs:100});this.terminalTheme=i.theme,this.applyThemeName(i.theme).success&&i.confidence==="high"&&(this.settingsManager.setTheme(i.theme),await this.settingsManager.flush())}setThemeName(e,n=!1){return this.setAutoSync(!1),this.applyThemeName(e,n)}setThemeInstance(e){return this.setAutoSync(!1),hR(e),this.activeThemeName="<in-memory>",this.notifyChanged(),{success:!0}}preview(e){let n=Ap(e,this.terminalTheme)??this.activeThemeName;n&&_p(n,!0).success&&(this.ui.invalidate(),this.ui.requestRender())}disableAutoSync(){this.setAutoSync(!1)}getTerminalTheme(){return this.terminalTheme}applyThemeName(e,n=!1){let i=_p(e,!0);return this.activeThemeName=i.success?e:"dark",this.notifyChanged(),!i.success&&n&&this.showError(`Failed to load theme "${e}": ${i.error}
261
- Fell back to dark theme.`),i}notifyChanged(){this.ui.invalidate(),this.onChanged()}setAutoSync(e){this.autoSyncEnabled!==e&&(this.autoSyncEnabled=e,this.ui.setTerminalColorSchemeNotifications(e))}applyTerminalTheme(e){if(!this.autoSyncEnabled)return;this.terminalTheme=e;let n=Bo(this.settingsManager.getThemeSetting());if(!n){this.setAutoSync(!1);return}let i=e==="light"?n.lightTheme:n.darkTheme;i!==this.activeThemeName&&this.applyThemeName(i)}};function wu(t){return typeof t=="object"&&t!==null&&"setExpanded"in t&&typeof t.setExpanded=="function"}var Fm=class extends A{constructor(e,n,i=!1,o=0,r=0){super(i?n():e(),o,r),this.getCollapsedText=e,this.getExpandedText=n}setExpanded(e){this.setText(e?this.getExpandedText():this.getCollapsedText())}};function sG(t){return"type"in t&&t.type==="custom"}var aG=new Set(["EIO","EPIPE","ENOTCONN"]);function lG(t){if(!t||typeof t!="object"||!("code"in t))return!1;let e=t.code;return e!==void 0&&aG.has(e)}var YI="Anthropic subscription auth is active. Third-party harness usage draws from extra usage and is billed per token, not your Claude plan limits. Manage extra usage at https://claude.ai/settings/usage. Disable this warning in /settings.";function cG(t){return typeof t=="string"&&t.startsWith("sk-ant-oat")}function uG(t){return!!t&&t.provider==="unknown"&&t.id==="unknown"&&t.api==="unknown"}function dG(t){return t.length>0&&!/[^a-zA-Z0-9_\-./~:@]/.test(t)?t:`'${t.replace(/'/g,"'\\''")}'`}function pG(t){if(!process.stdout.isTTY||!t.isPersisted())return;let e=t.getSessionFile();if(!e||!Pn.existsSync(e))return;let n=[St];return t.usesDefaultSessionDir()||n.push("--session-dir",dG(t.getSessionDir())),n.push("--session",t.getSessionId()),n.join(" ")}function mG(t){return t in f0}var XI={oauth:0,api_key:1};function ZI(t,e,n,i){let o=Kt(t,e,n);return o.length===0?null:o.map(i)}function hG(t){let e=new Map;for(let n of t){let i=e.get(n.id);if(i){i.authTypes.includes(n.authType)||(i.authTypes.push(n.authType),i.authTypes.sort((o,r)=>XI[o]-XI[r]));continue}e.set(n.id,{id:n.id,name:n.name,authTypes:[n.authType]})}return Array.from(e.values()).sort((n,i)=>n.name.localeCompare(i.name))}function gG(t){let e=t.authTypes.map(n=>`${n} ${Em(n)}`).join(" ");return`${t.id} ${t.name} ${e}`}function fG(t){let e=t.authTypes.map(Em).join("/");return t.name===t.id?e:`${t.name} \xB7 ${e}`}var Su=class t{constructor(e,n={}){this.autocompleteProviderWrappers=[];this.isInitialized=!1;this.pendingUserInputs=[];this.activeStatusIndicator=void 0;this.idleStatus=new Lm;this.workingMessage=void 0;this.workingVisible=!0;this.workingIndicatorOptions=void 0;this.defaultWorkingMessage="Working...";this.defaultHiddenThinkingLabel="Thinking...";this.hiddenThinkingLabel=this.defaultHiddenThinkingLabel;this.lastSigintTime=0;this.lastEscapeTime=0;this.changelogMarkdown=void 0;this.startupNoticesShown=!1;this.anthropicSubscriptionWarningShown=!1;this.lastStatusSpacer=void 0;this.lastStatusText=void 0;this.streamingComponent=void 0;this.streamingMessage=void 0;this.pendingTools=new Map;this.toolOutputExpanded=!1;this.hideThinkingBlock=!1;this.outputPad=1;this.skillCommands=new Map;this.signalCleanupHandlers=[];this.isBashMode=!1;this.bashComponent=void 0;this.pendingBashComponents=[];this.compactionQueuedMessages=[];this.shutdownRequested=!1;this.extensionSelector=void 0;this.extensionInput=void 0;this.extensionEditor=void 0;this.extensionTerminalInputUnsubscribers=new Set;this.extensionWidgetsAbove=new Map;this.extensionWidgetsBelow=new Map;this.customFooter=void 0;this.builtInHeader=void 0;this.customHeader=void 0;this.isShuttingDown=!1;this.runtimeHost=e,this.options=n,this.autoTrustOnReloadCwd=n.autoTrustOnReloadCwd,this.runtimeHost.setBeforeSessionInvalidate(()=>{this.resetExtensionUI()}),this.runtimeHost.setRebindSession(async()=>{await this.rebindCurrentSession({renderBeforeBind:!0})}),this.version=vi,this.ui=new Ar(new Wr,this.settingsManager.getShowHardwareCursor()),this.ui.setClearOnShrink(this.settingsManager.getClearOnShrink()),this.headerContainer=new G,this.loadedResourcesContainer=new G,this.chatContainer=new G,this.pendingMessagesContainer=new G,this.statusContainer=new G,this.widgetContainerAbove=new G,this.widgetContainerBelow=new G,this.keybindings=Ho.create(),Ic(this.keybindings);let i=this.settingsManager.getEditorPaddingX(),o=this.settingsManager.getAutocompleteMaxVisible();this.defaultEditor=new Jo(this.ui,$c(),this.keybindings,{paddingX:i,autocompleteMaxVisible:o}),this.editor=this.defaultEditor,this.editorContainer=new G,this.editorContainer.addChild(this.editor),this.footerDataProvider=new km(this.sessionManager.getCwd()),this.footer=new yl(this.session,this.footerDataProvider),this.footer.setAutoCompactEnabled(this.session.autoCompactionEnabled),this.hideThinkingBlock=this.settingsManager.getHideThinkingBlock(),this.outputPad=this.settingsManager.getOutputPad(),Uc(this.session.resourceLoader.getThemes().themes),this.themeController=new Wm(this.ui,this.settingsManager,r=>this.showError(r),()=>this.updateEditorBorderColor())}get session(){return this.runtimeHost.session}get agent(){return this.session.agent}get sessionManager(){return this.session.sessionManager}get settingsManager(){return this.session.settingsManager}getAutocompleteSourceTag(e){if(!e)return;let n=e.scope==="user"?"u":e.scope==="project"?"p":"t",i=e.source.trim();if(i==="auto"||i==="local"||i==="cli")return n;if(i.startsWith("npm:"))return`${n}:${i}`;let o=ru(i);if(o){let r=o.ref?`@${o.ref}`:"";return`${n}:git:${o.host}/${o.path}${r}`}return n}prefixAutocompleteDescription(e,n){let i=this.getAutocompleteSourceTag(n);return i?e?`[${i}] ${e}`:`[${i}]`:e}getBuiltInCommandConflictDiagnostics(e){let n=new Set(j0.map(i=>i.name));return e.getRegisteredCommands().filter(i=>n.has(i.name)).map(i=>({type:"warning",message:i.invocationName===i.name?`Extension command '/${i.name}' conflicts with built-in interactive command. Skipping in autocomplete.`:`Extension command '/${i.name}' conflicts with built-in interactive command. Available as '/${i.invocationName}'.`,path:i.sourceInfo.path}))}createBaseAutocompleteProvider(){let e=j0.map(l=>({name:l.name,description:l.description,...l.argumentHint&&{argumentHint:l.argumentHint}})),n=e.find(l=>l.name==="model");n&&(n.getArgumentCompletions=async l=>{let c=this.session.scopedModels.length>0?this.session.scopedModels.map(d=>d.model):await this.session.modelRuntime.getAvailable();if(c.length===0)return null;let u=c.map(d=>({id:d.id,provider:d.provider,name:d.name,label:`${d.provider}/${d.id}`}));return ZI(u,l,Im,d=>({value:d.label,label:d.id,description:d.provider}))});let i=e.find(l=>l.name==="login");i&&(i.getArgumentCompletions=l=>{let c=hG(this.getLoginProviderOptions().filter(u=>u.id==="slingshot"||u.id==="ollama"));return ZI(c,l,gG,u=>({value:u.id,label:u.id,description:fG(u)}))});let o=this.session.promptTemplates.map(l=>({name:l.name,description:this.prefixAutocompleteDescription(l.description,l.sourceInfo),...l.argumentHint&&{argumentHint:l.argumentHint}})),r=new Set(e.map(l=>l.name)),s=this.session.extensionRunner.getRegisteredCommands().filter(l=>!r.has(l.name)).map(l=>({name:l.invocationName,description:this.prefixAutocompleteDescription(l.description,l.sourceInfo),getArgumentCompletions:l.getArgumentCompletions}));this.skillCommands.clear();let a=[];if(this.settingsManager.getEnableSkillCommands())for(let l of this.session.resourceLoader.getSkills().skills){let c=`skill:${l.name}`;this.skillCommands.set(c,l.filePath),a.push({name:c,description:this.prefixAutocompleteDescription(l.description,l.sourceInfo)})}return new Tc([...e,...o,...s,...a],this.sessionManager.getCwd(),this.fdPath)}setupAutocompleteProvider(){let e=this.createBaseAutocompleteProvider(),n=[];for(let i of this.autocompleteProviderWrappers)e=i(e),n.push(...e.triggerCharacters??[]);n.length>0&&(e.triggerCharacters=[...new Set(n)]),this.autocompleteProvider=e,this.defaultEditor.setAutocompleteProvider(e),this.editor!==this.defaultEditor&&this.editor.setAutocompleteProvider?.(e)}async init(){if(this.isInitialized)return;this.registerSignalHandlers(),this.changelogMarkdown=this.getChangelogForDisplay();let[e]=await Promise.all([Qr("fd"),Qr("rg")]);if(this.fdPath=e,this.session.scopedModels.length>0&&(this.options.verbose||!this.settingsManager.getQuietStartup())){let n=this.session.scopedModels.map(r=>{let s=r.thinkingLevel?`:${r.thinkingLevel}`:"";return`${r.model.id}${s}`}).join(", "),i=this.keybindings.getKeys("app.model.cycleForward"),o=i.length>0?v.fg("muted",` (${zr(i.join("/"),{capitalize:!0})} to cycle)`):"";console.log(v.fg("dim",`Model scope: ${n}${o}`))}if(this.ui.addChild(this.headerContainer),this.ui.addChild(this.loadedResourcesContainer),this.ui.addChild(this.chatContainer),this.ui.addChild(this.pendingMessagesContainer),this.ui.addChild(this.statusContainer),this.renderWidgets(),this.ui.addChild(this.widgetContainerAbove),this.ui.addChild(this.editorContainer),this.ui.addChild(this.widgetContainerBelow),this.ui.addChild(this.footer),this.ui.setFocus(this.editor),this.setupKeyHandlers(),this.setupEditorSubmitHandler(),this.ui.start(),this.isInitialized=!0,await this.themeController.applyFromSettings(),this.options.verbose||!this.settingsManager.getQuietStartup()){let n=v.bold(v.fg("accent",St))+v.fg("dim",` v${this.version}`),i=(l,c)=>ce(l,c),o=[i("app.interrupt","to interrupt"),i("app.clear","to clear"),lt(`${Me("app.clear")} twice`,"to exit"),i("app.exit","to exit (empty)"),i("app.suspend","to suspend"),ce("tui.editor.deleteToLineEnd","to delete to end"),i("app.thinking.cycle","to cycle thinking level"),lt(`${Me("app.model.cycleForward")}/${Me("app.model.cycleBackward")}`,"to cycle models"),i("app.model.select","to select model"),i("app.tools.expand","to expand tools"),i("app.thinking.toggle","to expand thinking"),i("app.editor.external","for external editor"),lt("/","for commands"),lt("!","to run bash"),lt("!!","to run bash (no context)"),i("app.message.followUp","to queue follow-up"),i("app.message.dequeue","to edit all queued messages"),i("app.clipboard.pasteImage","to paste image (with text fallback)"),lt("drop files","to attach")].join(`
262
- `),r=[i("app.interrupt","interrupt"),lt(`${Me("app.clear")}/${Me("app.exit")}`,"clear/exit"),lt("/","commands"),lt("!","bash"),i("app.tools.expand","more")].join(v.fg("muted"," \xB7 ")),s=v.fg("dim",`Press ${Me("app.tools.expand")} to show full startup help and loaded resources.`),a=v.fg("dim","Pi can explain its own features and look up its docs. Ask it how to use or extend Pi.");this.builtInHeader=new Fm(()=>`${n}
261
+ Fell back to dark theme.`),i}notifyChanged(){this.ui.invalidate(),this.onChanged()}setAutoSync(e){this.autoSyncEnabled!==e&&(this.autoSyncEnabled=e,this.ui.setTerminalColorSchemeNotifications(e))}applyTerminalTheme(e){if(!this.autoSyncEnabled)return;this.terminalTheme=e;let n=Bo(this.settingsManager.getThemeSetting());if(!n){this.setAutoSync(!1);return}let i=e==="light"?n.lightTheme:n.darkTheme;i!==this.activeThemeName&&this.applyThemeName(i)}};function wu(t){return typeof t=="object"&&t!==null&&"setExpanded"in t&&typeof t.setExpanded=="function"}var Fm=class extends A{constructor(e,n,i=!1,o=0,r=0){super(i?n():e(),o,r),this.getCollapsedText=e,this.getExpandedText=n}setExpanded(e){this.setText(e?this.getExpandedText():this.getCollapsedText())}};function sG(t){return"type"in t&&t.type==="custom"}var aG=new Set(["EIO","EPIPE","ENOTCONN"]);function lG(t){if(!t||typeof t!="object"||!("code"in t))return!1;let e=t.code;return e!==void 0&&aG.has(e)}var YI="Anthropic subscription auth is active. Third-party harness usage draws from extra usage and is billed per token, not your Claude plan limits. Manage extra usage at https://claude.ai/settings/usage. Disable this warning in /settings.";function cG(t){return typeof t=="string"&&t.startsWith("sk-ant-oat")}function uG(t){return!!t&&t.provider==="unknown"&&t.id==="unknown"&&t.api==="unknown"}function dG(t){return t.length>0&&!/[^a-zA-Z0-9_\-./~:@]/.test(t)?t:`'${t.replace(/'/g,"'\\''")}'`}function pG(t){if(!process.stdout.isTTY||!t.isPersisted())return;let e=t.getSessionFile();if(!e||!Pn.existsSync(e))return;let n=[St];return t.usesDefaultSessionDir()||n.push("--session-dir",dG(t.getSessionDir())),n.push("--session",t.getSessionId()),n.join(" ")}function mG(t){return t in f0}var XI={oauth:0,api_key:1};function ZI(t,e,n,i){let o=Kt(t,e,n);return o.length===0?null:o.map(i)}function hG(t){let e=new Map;for(let n of t){let i=e.get(n.id);if(i){i.authTypes.includes(n.authType)||(i.authTypes.push(n.authType),i.authTypes.sort((o,r)=>XI[o]-XI[r]));continue}e.set(n.id,{id:n.id,name:n.name,authTypes:[n.authType]})}return Array.from(e.values()).sort((n,i)=>n.name.localeCompare(i.name))}function gG(t){let e=t.authTypes.map(n=>`${n} ${Em(n)}`).join(" ");return`${t.id} ${t.name} ${e}`}function fG(t){let e=t.authTypes.map(Em).join("/");return t.name===t.id?e:`${t.name} \xB7 ${e}`}var Su=class t{constructor(e,n={}){this.autocompleteProviderWrappers=[];this.isInitialized=!1;this.pendingUserInputs=[];this.activeStatusIndicator=void 0;this.idleStatus=new Lm;this.workingMessage=void 0;this.workingVisible=!0;this.workingIndicatorOptions=void 0;this.defaultWorkingMessage="Working...";this.defaultHiddenThinkingLabel="Thinking...";this.hiddenThinkingLabel=this.defaultHiddenThinkingLabel;this.lastSigintTime=0;this.lastEscapeTime=0;this.startupNoticesShown=!1;this.Shown=!1;this.lastStatusSpacer=void 0;this.lastStatusText=void 0;this.streamingComponent=void 0;this.streamingMessage=void 0;this.pendingTools=new Map;this.toolOutputExpanded=!1;this.hideThinkingBlock=!1;this.outputPad=1;this.skillCommands=new Map;this.signalCleanupHandlers=[];this.isBashMode=!1;this.bashComponent=void 0;this.pendingBashComponents=[];this.compactionQueuedMessages=[];this.shutdownRequested=!1;this.extensionSelector=void 0;this.extensionInput=void 0;this.extensionEditor=void 0;this.extensionTerminalInputUnsubscribers=new Set;this.extensionWidgetsAbove=new Map;this.extensionWidgetsBelow=new Map;this.customFooter=void 0;this.builtInHeader=void 0;this.customHeader=void 0;this.isShuttingDown=!1;this.runtimeHost=e,this.options=n,this.autoTrustOnReloadCwd=n.autoTrustOnReloadCwd,this.runtimeHost.setBeforeSessionInvalidate(()=>{this.resetExtensionUI()}),this.runtimeHost.setRebindSession(async()=>{await this.rebindCurrentSession({renderBeforeBind:!0})}),this.version=vi,this.ui=new Ar(new Wr,this.settingsManager.getShowHardwareCursor()),this.ui.setClearOnShrink(this.settingsManager.getClearOnShrink()),this.headerContainer=new G,this.loadedResourcesContainer=new G,this.chatContainer=new G,this.pendingMessagesContainer=new G,this.statusContainer=new G,this.widgetContainerAbove=new G,this.widgetContainerBelow=new G,this.keybindings=Ho.create(),Ic(this.keybindings);let i=this.settingsManager.getEditorPaddingX(),o=this.settingsManager.getAutocompleteMaxVisible();this.defaultEditor=new Jo(this.ui,$c(),this.keybindings,{paddingX:i,autocompleteMaxVisible:o}),this.editor=this.defaultEditor,this.editorContainer=new G,this.editorContainer.addChild(this.editor),this.footerDataProvider=new km(this.sessionManager.getCwd()),this.footer=new yl(this.session,this.footerDataProvider),this.footer.setAutoCompactEnabled(this.session.autoCompactionEnabled),this.hideThinkingBlock=this.settingsManager.getHideThinkingBlock(),this.outputPad=this.settingsManager.getOutputPad(),Uc(this.session.resourceLoader.getThemes().themes),this.themeController=new Wm(this.ui,this.settingsManager,r=>this.showError(r),()=>this.updateEditorBorderColor())}get session(){return this.runtimeHost.session}get agent(){return this.session.agent}get sessionManager(){return this.session.sessionManager}get settingsManager(){return this.session.settingsManager}getAutocompleteSourceTag(e){if(!e)return;let n=e.scope==="user"?"u":e.scope==="project"?"p":"t",i=e.source.trim();if(i==="auto"||i==="local"||i==="cli")return n;if(i.startsWith("npm:"))return`${n}:${i}`;let o=ru(i);if(o){let r=o.ref?`@${o.ref}`:"";return`${n}:git:${o.host}/${o.path}${r}`}return n}prefixAutocompleteDescription(e,n){let i=this.getAutocompleteSourceTag(n);return i?e?`[${i}] ${e}`:`[${i}]`:e}getBuiltInCommandConflictDiagnostics(e){let n=new Set(j0.map(i=>i.name));return e.getRegisteredCommands().filter(i=>n.has(i.name)).map(i=>({type:"warning",message:i.invocationName===i.name?`Extension command '/${i.name}' conflicts with built-in interactive command. Skipping in autocomplete.`:`Extension command '/${i.name}' conflicts with built-in interactive command. Available as '/${i.invocationName}'.`,path:i.sourceInfo.path}))}createBaseAutocompleteProvider(){let e=j0.map(l=>({name:l.name,description:l.description,...l.argumentHint&&{argumentHint:l.argumentHint}})),n=e.find(l=>l.name==="model");n&&(n.getArgumentCompletions=async l=>{let c=this.session.scopedModels.length>0?this.session.scopedModels.map(d=>d.model):await this.session.modelRuntime.getAvailable();if(c.length===0)return null;let u=c.map(d=>({id:d.id,provider:d.provider,name:d.name,label:`${d.provider}/${d.id}`}));return ZI(u,l,Im,d=>({value:d.label,label:d.id,description:d.provider}))});let i=e.find(l=>l.name==="login");i&&(i.getArgumentCompletions=l=>{let c=hG(this.getLoginProviderOptions().filter(u=>u.id==="slingshot"||u.id==="ollama"));return ZI(c,l,gG,u=>({value:u.id,label:u.id,description:fG(u)}))});let o=this.session.promptTemplates.map(l=>({name:l.name,description:this.prefixAutocompleteDescription(l.description,l.sourceInfo),...l.argumentHint&&{argumentHint:l.argumentHint}})),r=new Set(e.map(l=>l.name)),s=this.session.extensionRunner.getRegisteredCommands().filter(l=>!r.has(l.name)).map(l=>({name:l.invocationName,description:this.prefixAutocompleteDescription(l.description,l.sourceInfo),getArgumentCompletions:l.getArgumentCompletions}));this.skillCommands.clear();let a=[];if(this.settingsManager.getEnableSkillCommands())for(let l of this.session.resourceLoader.getSkills().skills){let c=`skill:${l.name}`;this.skillCommands.set(c,l.filePath),a.push({name:c,description:this.prefixAutocompleteDescription(l.description,l.sourceInfo)})}return new Tc([...e,...o,...s,...a],this.sessionManager.getCwd(),this.fdPath)}setupAutocompleteProvider(){let e=this.createBaseAutocompleteProvider(),n=[];for(let i of this.autocompleteProviderWrappers)e=i(e),n.push(...e.triggerCharacters??[]);n.length>0&&(e.triggerCharacters=[...new Set(n)]),this.autocompleteProvider=e,this.defaultEditor.setAutocompleteProvider(e),this.editor!==this.defaultEditor&&this.editor.setAutocompleteProvider?.(e)}async init(){if(this.isInitialized)return;this.registerSignalHandlers();let[e]=await Promise.all([Qr("fd"),Qr("rg")]);if(this.fdPath=e,this.session.scopedModels.length>0&&(this.options.verbose||!this.settingsManager.getQuietStartup())){let n=this.session.scopedModels.map(r=>{let s=r.thinkingLevel?`:${r.thinkingLevel}`:"";return`${r.model.id}${s}`}).join(", "),i=this.keybindings.getKeys("app.model.cycleForward"),o=i.length>0?v.fg("muted",` (${zr(i.join("/"),{capitalize:!0})} to cycle)`):"";console.log(v.fg("dim",`Model scope: ${n}${o}`))}if(this.ui.addChild(this.headerContainer),this.ui.addChild(this.loadedResourcesContainer),this.ui.addChild(this.chatContainer),this.ui.addChild(this.pendingMessagesContainer),this.ui.addChild(this.statusContainer),this.renderWidgets(),this.ui.addChild(this.widgetContainerAbove),this.ui.addChild(this.editorContainer),this.ui.addChild(this.widgetContainerBelow),this.ui.addChild(this.footer),this.ui.setFocus(this.editor),this.setupKeyHandlers(),this.setupEditorSubmitHandler(),this.ui.start(),this.isInitialized=!0,await this.themeController.applyFromSettings(),this.options.verbose||!this.settingsManager.getQuietStartup()){let n=v.bold(v.fg("accent",St))+v.fg("dim",` v${process.env.SLING_VERSION??this.version}`),i=(l,c)=>ce(l,c),o=[i("app.interrupt","to interrupt"),i("app.clear","to clear"),lt(`${Me("app.clear")} twice`,"to exit"),i("app.exit","to exit (empty)"),i("app.suspend","to suspend"),ce("tui.editor.deleteToLineEnd","to delete to end"),i("app.thinking.cycle","to cycle thinking level"),lt(`${Me("app.model.cycleForward")}/${Me("app.model.cycleBackward")}`,"to cycle models"),i("app.model.select","to select model"),i("app.tools.expand","to expand tools"),i("app.thinking.toggle","to expand thinking"),i("app.editor.external","for external editor"),lt("/","for commands"),lt("!","to run bash"),lt("!!","to run bash (no context)"),i("app.message.followUp","to queue follow-up"),i("app.message.dequeue","to edit all queued messages"),i("app.clipboard.pasteImage","to paste image (with text fallback)"),lt("drop files","to attach")].join(`
262
+ `),r=[i("app.interrupt","interrupt"),lt(`${Me("app.clear")}/${Me("app.exit")}`,"clear/exit"),lt("/","commands"),lt("!","bash"),i("app.tools.expand","more")].join(v.fg("muted"," \xB7 ")),s=v.fg("dim",`Press ${Me("app.tools.expand")} to show full startup help and loaded resources.`),a=v.fg("dim","Sling can explain its own features and look up its docs. Ask it how to use or extend Sling.");this.builtInHeader=new Fm(()=>`${n}
263
263
  ${r}
264
264
  ${s}
265
265
 
@@ -292,7 +292,7 @@ ${o}`,1,0)),this.chatContainer.addChild(new H(r=>v.fg("warning",r))),this.ui.req
292
292
 
293
293
  `),s=e?.currentText??this.editor.getText(),a=[r,s].filter(l=>l.trim()).join(`
294
294
 
295
- `);return this.editor.setText(a),this.updatePendingMessagesDisplay(),e?.abort&&this.agent.abort(),o.length}queueCompactionMessage(e,n){this.compactionQueuedMessages.push({text:e,mode:n}),this.editor.addToHistory?.(e),this.editor.setText(""),this.updatePendingMessagesDisplay(),this.showStatus("Queued message for after compaction")}isExtensionCommand(e){if(!e.startsWith("/"))return!1;let n=this.session.extensionRunner,i=e.indexOf(" "),o=i===-1?e.slice(1):e.slice(1,i);return!!n.getCommand(o)}async flushCompactionQueue(e){if(this.compactionQueuedMessages.length===0)return;let n=[...this.compactionQueuedMessages];this.compactionQueuedMessages=[],this.updatePendingMessagesDisplay();let i=o=>{this.session.clearQueue(),this.compactionQueuedMessages=n,this.updatePendingMessagesDisplay(),this.showError(`Failed to send queued message${n.length>1?"s":""}: ${o instanceof Error?o.message:String(o)}`)};try{if(e?.willRetry){for(let c of n)this.isExtensionCommand(c.text)?await this.session.prompt(c.text):c.mode==="followUp"?await this.session.followUp(c.text):await this.session.steer(c.text);this.updatePendingMessagesDisplay();return}let o=n.findIndex(c=>!this.isExtensionCommand(c.text));if(o===-1){for(let c of n)await this.session.prompt(c.text);return}let r=n.slice(0,o),s=n[o],a=n.slice(o+1);for(let c of r)await this.session.prompt(c.text);let l=this.session.prompt(s.text,{streamingBehavior:s.mode}).catch(c=>{i(c)});for(let c of a)this.isExtensionCommand(c.text)?await this.session.prompt(c.text):c.mode==="followUp"?await this.session.followUp(c.text):await this.session.steer(c.text);this.updatePendingMessagesDisplay()}catch(o){i(o)}}flushPendingBashComponents(){for(let e of this.pendingBashComponents)this.pendingMessagesContainer.removeChild(e),this.chatContainer.addChild(e);this.pendingBashComponents=[]}showSelector(e){let n=()=>{this.editorContainer.clear(),this.editorContainer.addChild(this.editor),this.ui.setFocus(this.editor)},{component:i,focus:o}=e(n);this.editorContainer.clear(),this.editorContainer.addChild(i),this.ui.setFocus(o),this.ui.requestRender()}showSettingsSelector(){this.showSelector(e=>{let n=new Sl({autoCompact:this.session.autoCompactionEnabled,showImages:this.settingsManager.getShowImages(),imageWidthCells:this.settingsManager.getImageWidthCells(),autoResizeImages:this.settingsManager.getImageAutoResize(),blockImages:this.settingsManager.getBlockImages(),enableSkillCommands:this.settingsManager.getEnableSkillCommands(),steeringMode:this.session.steeringMode,followUpMode:this.session.followUpMode,transport:this.settingsManager.getTransport(),httpIdleTimeoutMs:this.settingsManager.getHttpIdleTimeoutMs(),thinkingLevel:this.session.thinkingLevel,availableThinkingLevels:this.session.getAvailableThinkingLevels(),currentTheme:this.settingsManager.getThemeSetting()||"dark",terminalTheme:this.themeController.getTerminalTheme(),availableThemes:yv(),hideThinkingBlock:this.hideThinkingBlock,collapseChangelog:this.settingsManager.getCollapseChangelog(),enableInstallTelemetry:this.settingsManager.getEnableInstallTelemetry(),doubleEscapeAction:this.settingsManager.getDoubleEscapeAction(),treeFilterMode:this.settingsManager.getTreeFilterMode(),showHardwareCursor:this.settingsManager.getShowHardwareCursor(),showCacheMissNotices:this.settingsManager.getShowCacheMissNotices(),defaultProjectTrust:this.settingsManager.getDefaultProjectTrust(),editorPaddingX:this.settingsManager.getEditorPaddingX(),outputPad:this.settingsManager.getOutputPad(),autocompleteMaxVisible:this.settingsManager.getAutocompleteMaxVisible(),quietStartup:this.settingsManager.getQuietStartup(),clearOnShrink:this.settingsManager.getClearOnShrink(),showTerminalProgress:this.settingsManager.getShowTerminalProgress(),warnings:this.settingsManager.getWarnings()},{onAutoCompactChange:i=>{this.session.setAutoCompactionEnabled(i),this.footer.setAutoCompactEnabled(i)},onShowImagesChange:i=>{this.settingsManager.setShowImages(i);for(let o of this.chatContainer.children)o instanceof Ai&&o.setShowImages(i)},onImageWidthCellsChange:i=>{this.settingsManager.setImageWidthCells(i);for(let o of this.chatContainer.children)o instanceof Ai&&o.setImageWidthCells(i)},onAutoResizeImagesChange:i=>{this.settingsManager.setImageAutoResize(i)},onBlockImagesChange:i=>{this.settingsManager.setBlockImages(i)},onEnableSkillCommandsChange:i=>{this.settingsManager.setEnableSkillCommands(i),this.setupAutocompleteProvider()},onSteeringModeChange:i=>{this.session.setSteeringMode(i)},onFollowUpModeChange:i=>{this.session.setFollowUpMode(i)},onTransportChange:i=>{this.settingsManager.setTransport(i),this.session.agent.transport=i},onHttpIdleTimeoutMsChange:i=>{this.settingsManager.setHttpIdleTimeoutMs(i),uu(i),this.showStatus(`HTTP idle timeout: ${xm(i)}`)},onThinkingLevelChange:i=>{this.session.setThinkingLevel(i),this.footer.invalidate(),this.updateEditorBorderColor()},onThemeChange:i=>{this.settingsManager.setTheme(i),this.themeController.applyFromSettings()},onThemePreview:i=>this.themeController.preview(i),onHideThinkingBlockChange:i=>{this.hideThinkingBlock=i,this.settingsManager.setHideThinkingBlock(i);for(let o of this.chatContainer.children)o instanceof Ei&&o.setHideThinkingBlock(i);this.chatContainer.clear(),this.rebuildChatFromMessages()},onShowCacheMissNoticesChange:i=>{this.settingsManager.setShowCacheMissNotices(i),this.rebuildChatFromMessages()},onCollapseChangelogChange:i=>{this.settingsManager.setCollapseChangelog(i)},onEnableInstallTelemetryChange:i=>{this.settingsManager.setEnableInstallTelemetry(i)},onQuietStartupChange:i=>{this.settingsManager.setQuietStartup(i)},onDefaultProjectTrustChange:i=>{this.settingsManager.setDefaultProjectTrust(i)},onDoubleEscapeActionChange:i=>{this.settingsManager.setDoubleEscapeAction(i)},onTreeFilterModeChange:i=>{this.settingsManager.setTreeFilterMode(i)},onShowHardwareCursorChange:i=>{this.settingsManager.setShowHardwareCursor(i),this.ui.setShowHardwareCursor(i)},onEditorPaddingXChange:i=>{this.settingsManager.setEditorPaddingX(i),this.defaultEditor.setPaddingX(i),this.editor!==this.defaultEditor&&this.editor.setPaddingX!==void 0&&this.editor.setPaddingX(i)},onOutputPadChange:i=>{if(this.settingsManager.setOutputPad(i),this.outputPad=i,this.streamingComponent||this.session.isStreaming){for(let o of this.chatContainer.children)(o instanceof Ei||o instanceof Xo)&&o.setOutputPad(i);this.streamingComponent&&this.streamingComponent.setOutputPad(i),this.ui.requestRender();return}this.rebuildChatFromMessages()},onAutocompleteMaxVisibleChange:i=>{this.settingsManager.setAutocompleteMaxVisible(i),this.defaultEditor.setAutocompleteMaxVisible(i),this.editor!==this.defaultEditor&&this.editor.setAutocompleteMaxVisible!==void 0&&this.editor.setAutocompleteMaxVisible(i)},onClearOnShrinkChange:i=>{this.settingsManager.setClearOnShrink(i),this.ui.setClearOnShrink(i),!i&&!this.activeStatusIndicator&&this.statusContainer.clear()},onShowTerminalProgressChange:i=>{this.settingsManager.setShowTerminalProgress(i)},onWarningsChange:i=>{this.settingsManager.setWarnings(i)},onCancel:()=>{e(),this.ui.requestRender()}});return{component:n,focus:n.getSettingsList()}})}async handleModelCommand(e){if(!e){this.showModelSelector();return}let n=await this.findExactModelMatch(e);if(n){try{await this.session.setModel(n),this.footer.invalidate(),this.updateEditorBorderColor(),this.showStatus(`Model: ${n.id}`),this.maybeWarnAboutAnthropicSubscriptionAuth(n),this.checkDaxnutsEasterEgg(n)}catch(i){this.showError(i instanceof Error?i.message:String(i))}return}this.showModelSelector(e)}async findExactModelMatch(e){let n=await this.getModelCandidates();return v0(e,n)}async getModelCandidates(){if(this.session.scopedModels.length>0)return this.session.scopedModels.map(e=>e.model);try{return await this.session.modelRuntime.refresh(),[...await this.session.modelRuntime.getAvailable()]}catch{return[]}}async updateAvailableProviderCount(){let e=await this.getModelCandidates(),n=new Set(e.map(i=>i.provider));this.footerDataProvider.setAvailableProviderCount(n.size)}async maybeWarnAboutAnthropicSubscriptionAuth(e=this.session.model){if(this.settingsManager.getWarnings().anthropicExtraUsage!==!1&&!this.anthropicSubscriptionWarningShown&&!(!e||e.provider!=="anthropic"))try{if((await this.session.modelRuntime.checkAuth("anthropic"))?.type==="oauth"){this.anthropicSubscriptionWarningShown=!0,this.showWarning(YI);return}let n=(await this.session.modelRuntime.getAuth(e.provider))?.auth.apiKey;if(!cG(n))return;this.anthropicSubscriptionWarningShown=!0,this.showWarning(YI)}catch{}}maybeSaveImplicitProjectTrustAfterReload(){let e=this.sessionManager.getCwd();if(this.autoTrustOnReloadCwd!==e||!this.settingsManager.isProjectTrusted()||!es(e))return!1;let n=new zo(this.runtimeHost.services.agentDir);try{return n.get(e)!==null?(this.autoTrustOnReloadCwd=void 0,!1):(n.set(e,!0),this.autoTrustOnReloadCwd=void 0,!0)}catch(i){return this.showWarning(`Could not save project trust after reload: ${i instanceof Error?i.message:String(i)}`),!1}}showTrustSelector(){let e=this.sessionManager.getCwd(),n=new zo(this.runtimeHost.services.agentDir),i=n.getEntry(e);this.showSelector(o=>{let r=new yu({cwd:e,savedDecision:i,projectTrusted:this.settingsManager.isProjectTrusted(),onSelect:s=>{n.setMany(s.updates),o(),this.showStatus(`Saved trust decision: ${s.trusted?"trusted":"untrusted"}. Restart sling for this to take effect.`)},onCancel:()=>{o(),this.ui.requestRender()}});return{component:r,focus:r}})}showModelSelector(e){this.showSelector(n=>{let i=new wl(this.ui,this.session.model,this.settingsManager,this.session.modelRuntime,this.session.scopedModels,async o=>{try{await this.session.setModel(o),this.footer.invalidate(),this.updateEditorBorderColor(),n(),this.showStatus(`Model: ${o.id}`),this.maybeWarnAboutAnthropicSubscriptionAuth(o),this.checkDaxnutsEasterEgg(o)}catch(r){n(),this.showError(r instanceof Error?r.message:String(r))}},()=>{n(),this.ui.requestRender()},e);return{component:i,focus:i}})}async showModelsSelector(){await this.session.modelRuntime.refresh();let e=[...await this.session.modelRuntime.getAvailable()];if(e.length===0){this.showStatus("No models available");return}let n=this.session.scopedModels,i=n.length>0,o=null;if(i)o=n.map(s=>`${s.model.provider}/${s.model.id}`);else{let s=this.settingsManager.getEnabledModels();s!==void 0&&s.length>0&&(o=(await cm(s,this.session.modelRuntime)).map(l=>`${l.model.provider}/${l.model.id}`))}let r=async s=>{if(o=s===null?null:[...s],s&&s.length>0&&s.length<e.length){let a=await cm(s,this.session.modelRuntime);this.session.setScopedModels(a.map(l=>({model:l.model,thinkingLevel:l.thinkingLevel})))}else this.session.setScopedModels([]);await this.updateAvailableProviderCount(),this.ui.requestRender()};this.showSelector(s=>{let a=new vu({allModels:e,enabledModelIds:o},{onChange:async l=>{await r(l)},onPersist:l=>{let c=l===null||l.length===e.length?void 0:l;this.settingsManager.setEnabledModels(c?[...c]:void 0),this.showStatus("Model selection saved to settings")},onCancel:()=>{s(),this.ui.requestRender()}});return{component:a,focus:a}})}showUserMessageSelector(){let e=this.session.getUserMessagesForForking();if(e.length===0){this.showStatus("No messages to fork from");return}let n=e[e.length-1]?.entryId;this.showSelector(i=>{let o=new Ml(e.map(r=>({id:r.entryId,text:r.text})),async r=>{i();try{let s=await this.runtimeHost.fork(r);if(s.cancelled){this.ui.requestRender();return}this.editor.setText(s.selectedText??""),this.showStatus("Forked to new session")}catch(s){this.showError(s instanceof Error?s.message:String(s))}},()=>{i(),this.ui.requestRender()},n);return{component:o,focus:o.getMessageList()}})}async handleCloneCommand(){let e=this.sessionManager.getLeafId();if(!e){this.showStatus("Nothing to clone yet");return}try{if((await this.runtimeHost.fork(e,{position:"at"})).cancelled){this.ui.requestRender();return}this.editor.setText(""),this.showStatus("Cloned to new session")}catch(n){this.showError(n instanceof Error?n.message:String(n))}}showTreeSelector(e){let n=this.sessionManager.getTree(),i=this.sessionManager.getLeafId(),o=this.settingsManager.getTreeFilterMode();if(n.length===0){this.showStatus("No entries in session");return}this.showSelector(r=>{let s=new Cl(n,i,this.ui.terminal.rows,async a=>{if(a===i){r(),this.showStatus("Already at this point");return}r();let l=!1,c;if(!this.settingsManager.getBranchSummarySkipPrompt())for(;;){let p=await this.showExtensionSelector("Summarize branch?",["No summary","Summarize","Summarize with custom prompt"]);if(p===void 0){this.showTreeSelector(a);return}if(l=p!=="No summary",!(p==="Summarize with custom prompt"&&(c=await this.showExtensionEditor("Custom summarization instructions"),c===void 0)))break}let u=!1,d=this.defaultEditor.onEscape;l&&(this.defaultEditor.onEscape=()=>{this.session.abortBranchSummary()},this.chatContainer.addChild(new L(1)),this.showStatusIndicator(new Om(this.ui)),u=!0,this.ui.requestRender());try{let p=await this.session.navigateTree(a,{summarize:l,customInstructions:c});if(p.aborted){this.showStatus("Branch summarization cancelled"),this.showTreeSelector(a);return}if(p.cancelled){this.showStatus("Navigation cancelled");return}this.chatContainer.clear(),this.renderInitialMessages(),p.editorText&&!this.editor.getText().trim()&&this.editor.setText(p.editorText),this.showStatus("Navigated to selected point"),this.flushCompactionQueue({willRetry:!1})}catch(p){this.showError(p instanceof Error?p.message:String(p))}finally{u&&this.clearStatusIndicator("branchSummary"),this.defaultEditor.onEscape=d}},()=>{r(),this.ui.requestRender()},(a,l)=>{this.sessionManager.appendLabelChange(a,l),this.ui.requestRender()},e,o);return s.onCopy=async a=>{if(!a){this.showError("Selected entry has no text to copy");return}try{await pl(a),this.showStatus("Copied selected message to clipboard")}catch(l){this.showError(l instanceof Error?l.message:String(l))}},{component:s,focus:s}})}showSessionSelector(){this.showSelector(e=>{let n=new ns(i=>qn.list(this.sessionManager.getCwd(),this.sessionManager.getSessionDir(),i),i=>this.sessionManager.usesDefaultSessionDir()?qn.listAll(i):qn.listAll(this.sessionManager.getSessionDir(),i),async i=>{e(),await this.handleResumeSession(i)},()=>{e(),this.ui.requestRender()},()=>{this.shutdown()},()=>this.ui.requestRender(),{renameSession:async(i,o)=>{let r=(o??"").trim();if(!r)return;qn.open(i).appendSessionInfo(r)},showRenameHint:!0,keybindings:this.keybindings},this.sessionManager.getSessionFile());return{component:n,focus:n}})}async handleResumeSession(e,n){this.clearStatusIndicator();try{let i=await this.runtimeHost.switchSession(e,{withSession:n?.withSession,projectTrustContextFactory:o=>this.createProjectTrustContext(o)});return i.cancelled||this.showStatus("Resumed session"),i}catch(i){if(i instanceof al){let o=await this.promptForMissingSessionCwd(i);if(!o)return this.showStatus("Resume cancelled"),{cancelled:!0};let r=await this.runtimeHost.switchSession(e,{cwdOverride:o,withSession:n?.withSession,projectTrustContextFactory:s=>this.createProjectTrustContext(s)});return r.cancelled||this.showStatus("Resumed session in current cwd"),r}return this.handleFatalRuntimeError("Failed to resume session",i)}}getLoginProviderOptions(e){let n=[];for(let i of this.session.modelRuntime.getProviders()){let o=this.session.modelRuntime.getProviderAuthStatus(i.id),r=o.configured?{type:this.session.modelRuntime.isUsingOAuth(i.id)?"oauth":"api_key",source:o.label??o.source}:void 0;(!e||e==="oauth")&&i.auth.oauth&&n.push({id:i.id,name:i.name,authType:"oauth",method:i.auth.oauth,status:r}),(!e||e==="api_key")&&i.auth.apiKey&&n.push({id:i.id,name:i.name,authType:"api_key",method:i.auth.apiKey,status:r})}return n.sort((i,o)=>i.name.localeCompare(o.name))}async getLogoutProviderOptions(){return(await this.session.modelRuntime.listCredentials()).map(({providerId:e,type:n})=>({id:e,name:this.session.modelRuntime.getProvider(e)?.name??e,authType:n,status:{type:n,source:"stored credential"}})).sort((e,n)=>e.name.localeCompare(n.name))}findLoginProviderOptions(e){let n=e.trim().toLowerCase();return n?this.getLoginProviderOptions().filter(i=>i.id.toLowerCase()===n||i.name.toLowerCase()===n):[]}async handleLoginCommand(e){if(await this.session.modelRuntime.getAvailable(),!e){this.showLoginAuthTypeSelector();return}let n=this.findLoginProviderOptions(e);if(n.length===1){await this.startProviderLogin(n[0]);return}if(n.length>1&&new Set(n.map(o=>o.id)).size===1){this.showLoginAuthTypeSelector(n);return}this.showLoginProviderSelector(void 0,e)}async startProviderLogin(e){e.authType==="oauth"?await this.showLoginDialog(e.id,e.name):e.method?.login?await this.showApiKeyLoginDialog(e.id,e.name):this.showAmbientAuthDialog(e)}showLoginAuthTypeSelector(e){let n=e?.find(c=>c.authType==="oauth"),o=(n?.method&&"loginLabel"in n.method?n.method.loginLabel:void 0)??"Sign in with an account",r="Sign in with an API key",s=e?new Set(e.map(c=>c.authType)):new Set(["oauth","api_key"]),a=[];if(s.has("oauth")&&a.push(o),s.has("api_key")&&a.push(r),a.length===0){this.showStatus("No login methods available.");return}if(e&&a.length===1){let c=e[0];c&&this.startProviderLogin(c);return}let l=e?.[0]?`Select authentication method for ${e[0].name}:`:"Select authentication method:";this.showSelector(c=>{let u=new so(l,a,d=>{c();let p=d===o?"oauth":"api_key";if(e){let m=e.find(g=>g.authType===p);m&&this.startProviderLogin(m);return}this.showLoginProviderSelector(p)},()=>{c(),this.ui.requestRender()});return{component:u,focus:u}})}showLoginProviderSelector(e,n){let i=this.getLoginProviderOptions(e);if(i.length===0){let o=e==="oauth"?"No subscription providers available.":e==="api_key"?"No API key providers available.":"No login providers available.";this.showStatus(o);return}this.showSelector(o=>{let r=new is("login",i,async(s,a)=>{o();let l=i.find(c=>c.id===s&&c.authType===a);l&&await this.startProviderLogin(l)},()=>{o(),e?this.showLoginAuthTypeSelector():this.ui.requestRender()},n);return{component:r,focus:r}})}async showOAuthSelector(e){if(e==="login"){this.showLoginAuthTypeSelector();return}let n=await this.getLogoutProviderOptions();if(n.length===0){this.showStatus("No stored credentials to remove. /logout only removes credentials saved by /login; environment variables and models.json config are unchanged.");return}this.showSelector(i=>{let o=new is(e,n,async r=>{i();let s=n.find(a=>a.id===r);if(s)try{await this.session.modelRuntime.logout(s.id),await this.updateAvailableProviderCount();let a=s.authType==="oauth"?`Logged out of ${s.name}`:`Removed stored API key for ${s.name}. Environment variables and models.json config are unchanged.`;this.showStatus(a)}catch(a){this.showError(`Logout failed: ${a instanceof Error?a.message:String(a)}`)}},()=>{i(),this.ui.requestRender()});return{component:o,focus:o}})}async completeProviderAuthentication(e,n,i,o){await this.session.modelRuntime.getAvailable();let r=i==="oauth"?`Logged in to ${n}`:`Saved API key for ${n}`,s,a;if(uG(o)){let c=(await this.session.modelRuntime.getAvailable()).filter(u=>u.provider===e);if(!mG(e))a=`${r}, but no default model is configured for provider "${e}". Use /model to select a model.`;else if(c.length===0)a=`${r}, but no models are available for that provider. Use /model to select a model.`;else{let u=f0[e];if(s=c.find(d=>d.id===u),!s)a=`${r}, but its default model "${u}" is not available. Use /model to select a model.`;else try{await this.session.setModel(s)}catch(d){s=void 0;let p=d instanceof Error?d.message:String(d);a=`${r}, but selecting its default model failed: ${p}. Use /model to select a model.`}}}await this.updateAvailableProviderCount(),this.footer.invalidate(),this.updateEditorBorderColor(),s?(this.showStatus(`${r}. Selected ${s.id}. Credentials saved to ${nf()}`),this.maybeWarnAboutAnthropicSubscriptionAuth(s),this.checkDaxnutsEasterEgg(s)):(this.showStatus(`${r}. Credentials saved to ${nf()}`),a?this.showError(a):this.maybeWarnAboutAnthropicSubscriptionAuth())}showAmbientAuthDialog(e){let n=()=>{this.editorContainer.clear(),this.editorContainer.addChild(this.editor),this.ui.setFocus(this.editor),this.ui.requestRender()},i=new Yo(this.ui,e.id,()=>n(),e.name,`${e.name} setup`);i.showInfo(`${e.method?.name??"Authentication"} is configured outside pi.`,[],!0),this.editorContainer.clear(),this.editorContainer.addChild(i),this.ui.setFocus(i),this.ui.requestRender()}async showApiKeyLoginDialog(e,n){let i=this.session.model,o=new Yo(this.ui,e,(s,a)=>{},n);e==="amazon-bedrock"&&o.showDetails([v.fg("text","You can also use an AWS profile, IAM keys, or role-based credentials."),v.fg("muted","See:"),v.fg("accent",` ${et.join(pc(),"providers.md")}`)]),this.editorContainer.clear(),this.editorContainer.addChild(o),this.ui.setFocus(o),this.ui.requestRender();let r=()=>{this.editorContainer.clear(),this.editorContainer.addChild(this.editor),this.ui.setFocus(this.editor),this.ui.requestRender()};try{await this.loginProvider(o,e,"api_key"),r(),await this.completeProviderAuthentication(e,n,"api_key",i)}catch(s){r();let a=s instanceof Error?s.message:String(s);a!=="Login cancelled"&&this.showError(`Failed to save API key for ${n}: ${a}`)}}showAuthSelect(e,n){return new Promise((i,o)=>{let r=()=>{this.editorContainer.clear(),this.editorContainer.addChild(e),this.ui.setFocus(e),this.ui.requestRender()},s=n.options.map(l=>l.label),a=new so(n.message,s,l=>{r();let c=n.options.find(u=>u.label===l)?.id;c?i(c):o(new Error("Login cancelled"))},()=>{r(),o(new Error("Login cancelled"))});this.editorContainer.clear(),this.editorContainer.addChild(a),this.ui.setFocus(a),this.ui.requestRender()})}async showAuthPrompt(e,n){let i;if(n.type==="select"?i=this.showAuthSelect(e,n):n.type==="manual_code"?i=e.showManualInput(n.message):i=e.showPrompt(n.message,n.placeholder),!n.signal)return i;if(n.signal.aborted)throw new Error("Login cancelled");let o=n.signal,r,s=new Promise((a,l)=>{r=()=>l(new Error("Login cancelled")),o.addEventListener("abort",r,{once:!0})});try{return await Promise.race([i,s])}finally{r&&o.removeEventListener("abort",r)}}notifyAuthDialog(e,n){n.type==="auth_url"?e.showAuth(n.url,n.instructions):n.type==="device_code"?(e.showDeviceCode(n),e.showWaiting("Waiting for authentication...")):n.type==="info"?e.showInfo(n.message,n.links):e.showProgress(n.message)}async loginProvider(e,n,i){await this.session.modelRuntime.login(n,i,{signal:e.signal,prompt:o=>this.showAuthPrompt(e,o),notify:o=>this.notifyAuthDialog(e,o)})}async showLoginDialog(e,n){let i=this.session.model,o=new Yo(this.ui,e,(s,a)=>{},n);this.editorContainer.clear(),this.editorContainer.addChild(o),this.ui.setFocus(o),this.ui.requestRender();let r=()=>{this.editorContainer.clear(),this.editorContainer.addChild(this.editor),this.ui.setFocus(this.editor),this.ui.requestRender()};try{await this.loginProvider(o,e,"oauth"),r(),await this.completeProviderAuthentication(e,n,"oauth",i)}catch(s){r();let a=s instanceof Error?s.message:String(s);a!=="Login cancelled"&&this.showError(`Failed to login to ${n}: ${a}`)}}async handleReloadCommand(){if(this.session.isStreaming){this.showWarning("Wait for the current response to finish before reloading.");return}if(this.session.isCompacting){this.showWarning("Wait for compaction to finish before reloading.");return}this.resetExtensionUI();let e=new G,n=l=>v.fg("border",l);e.addChild(new H(n)),e.addChild(new L(1)),e.addChild(new A(v.fg("muted","Reloading keybindings, extensions, skills, prompts, themes, and context files..."),1,0)),e.addChild(new L(1)),e.addChild(new H(n));let i=this.editor;this.editorContainer.clear(),this.editorContainer.addChild(e),this.ui.setFocus(e),this.ui.requestRender(!0),await new Promise(l=>process.nextTick(l));let o=l=>{this.editorContainer.clear(),this.editorContainer.addChild(l),this.ui.setFocus(l),this.ui.requestRender()},r=!1,s=!1,a=()=>{r||(this.hideThinkingBlock=this.settingsManager.getHideThinkingBlock(),this.outputPad=this.settingsManager.getOutputPad(),this.rebuildChatFromMessages(),r=!0)};try{await this.session.reload({beforeSessionStart:a}),a(),uu(this.settingsManager.getHttpIdleTimeoutMs()),this.keybindings.reload();let l=this.customHeader??this.builtInHeader;wu(l)&&l.setExpanded(this.toolOutputExpanded),Uc(this.session.resourceLoader.getThemes().themes),await this.themeController.applyFromSettings();let c=this.settingsManager.getEditorPaddingX(),u=this.settingsManager.getAutocompleteMaxVisible();this.defaultEditor.setPaddingX(c),this.defaultEditor.setAutocompleteMaxVisible(u),this.editor!==this.defaultEditor&&(this.editor.setPaddingX?.(c),this.editor.setAutocompleteMaxVisible?.(u)),this.ui.setShowHardwareCursor(this.settingsManager.getShowHardwareCursor());let d=this.settingsManager.getClearOnShrink();this.ui.setClearOnShrink(d),!d&&!this.activeStatusIndicator&&this.statusContainer.clear(),this.setupAutocompleteProvider();let p=this.session.extensionRunner;this.setupExtensionShortcuts(p),this.showLoadedResources({force:!1,showDiagnosticsWhenQuiet:!0});let m=this.maybeSaveImplicitProjectTrustAfterReload(),g=this.session.modelRuntime.getError();g&&this.showError(`models.json error: ${g}`),this.showStatus(m?"Reloaded keybindings, extensions, skills, prompts, themes, and context files; saved project trust":"Reloaded keybindings, extensions, skills, prompts, themes, and context files"),o(this.editor),s=!0}catch(l){s||o(i),this.showError(`Reload failed: ${l instanceof Error?l.message:String(l)}`)}}async handleExportCommand(e){let n=this.getPathCommandArgument(e,"/export");try{if(n?.endsWith(".jsonl")){let i=this.session.exportToJsonl(n);this.showStatus(`Session exported to: ${i}`)}else{let i=await this.session.exportToHtml(n);this.showStatus(`Session exported to: ${i}`)}}catch(i){this.showError(`Failed to export session: ${i instanceof Error?i.message:"Unknown error"}`)}}getPathCommandArgument(e,n){if(e===n||!e.startsWith(`${n} `))return;let i=e.slice(n.length+1).trimStart();if(!i)return;let o=i[0];if(o==='"'||o==="'"){let s=i.indexOf(o,1);return s<0?void 0:i.slice(1,s)}let r=i.search(/\s/);return r<0?i:i.slice(0,r)}async handleImportCommand(e){let n=this.getPathCommandArgument(e,"/import");if(!n){this.showError("Usage: /import <path.jsonl>");return}if(!await this.showExtensionConfirm("Import session",`Replace current session with ${n}?`)){this.showStatus("Import cancelled");return}try{if(this.clearStatusIndicator(),(await this.runtimeHost.importFromJsonl(n)).cancelled){this.showStatus("Import cancelled");return}this.showStatus(`Session imported from: ${n}`)}catch(o){if(o instanceof al){let r=await this.promptForMissingSessionCwd(o);if(!r){this.showStatus("Import cancelled");return}if((await this.runtimeHost.importFromJsonl(n,r)).cancelled){this.showStatus("Import cancelled");return}this.showStatus(`Session imported from: ${n}`);return}if(o instanceof ym){this.showError(`Failed to import session: ${o.message}`);return}await this.handleFatalRuntimeError("Failed to import session",o)}}async handleShareCommand(){try{if(rG("gh",["auth","status"],{encoding:"utf-8"}).status!==0){this.showError("GitHub CLI is not logged in. Run 'gh auth login' first.");return}}catch{this.showError("GitHub CLI (gh) is not installed. Install it from https://cli.github.com/");return}let e=et.join(Rl.tmpdir(),"session.html");try{await this.session.exportToHtml(e)}catch(r){this.showError(`Failed to export session: ${r instanceof Error?r.message:"Unknown error"}`);return}let n=new hl(this.ui,v,"Creating gist...");this.editorContainer.clear(),this.editorContainer.addChild(n),this.ui.setFocus(n),this.ui.requestRender();let i=()=>{n.dispose(),this.editorContainer.clear(),this.editorContainer.addChild(this.editor),this.ui.setFocus(this.editor);try{Pn.unlinkSync(e)}catch{}},o=null;n.onAbort=()=>{o?.kill(),i(),this.showStatus("Share cancelled")};try{let r=await new Promise(c=>{o=sb("gh",["gist","create","--public=false",e]);let u="",d="";o.stdout?.on("data",p=>{u+=p.toString()}),o.stderr?.on("data",p=>{d+=p.toString()}),o.on("close",p=>c({stdout:u,stderr:d,code:p}))});if(n.signal.aborted)return;if(i(),r.code!==0){let c=r.stderr?.trim()||"Unknown error";this.showError(`Failed to create gist: ${c}`);return}let s=r.stdout?.trim(),a=s?.split("/").pop();if(!a){this.showError("Failed to parse gist ID from gh output");return}let l=KS(a);this.showStatus(`Share URL: ${l}
295
+ `);return this.editor.setText(a),this.updatePendingMessagesDisplay(),e?.abort&&this.agent.abort(),o.length}queueCompactionMessage(e,n){this.compactionQueuedMessages.push({text:e,mode:n}),this.editor.addToHistory?.(e),this.editor.setText(""),this.updatePendingMessagesDisplay(),this.showStatus("Queued message for after compaction")}isExtensionCommand(e){if(!e.startsWith("/"))return!1;let n=this.session.extensionRunner,i=e.indexOf(" "),o=i===-1?e.slice(1):e.slice(1,i);return!!n.getCommand(o)}async flushCompactionQueue(e){if(this.compactionQueuedMessages.length===0)return;let n=[...this.compactionQueuedMessages];this.compactionQueuedMessages=[],this.updatePendingMessagesDisplay();let i=o=>{this.session.clearQueue(),this.compactionQueuedMessages=n,this.updatePendingMessagesDisplay(),this.showError(`Failed to send queued message${n.length>1?"s":""}: ${o instanceof Error?o.message:String(o)}`)};try{if(e?.willRetry){for(let c of n)this.isExtensionCommand(c.text)?await this.session.prompt(c.text):c.mode==="followUp"?await this.session.followUp(c.text):await this.session.steer(c.text);this.updatePendingMessagesDisplay();return}let o=n.findIndex(c=>!this.isExtensionCommand(c.text));if(o===-1){for(let c of n)await this.session.prompt(c.text);return}let r=n.slice(0,o),s=n[o],a=n.slice(o+1);for(let c of r)await this.session.prompt(c.text);let l=this.session.prompt(s.text,{streamingBehavior:s.mode}).catch(c=>{i(c)});for(let c of a)this.isExtensionCommand(c.text)?await this.session.prompt(c.text):c.mode==="followUp"?await this.session.followUp(c.text):await this.session.steer(c.text);this.updatePendingMessagesDisplay()}catch(o){i(o)}}flushPendingBashComponents(){for(let e of this.pendingBashComponents)this.pendingMessagesContainer.removeChild(e),this.chatContainer.addChild(e);this.pendingBashComponents=[]}showSelector(e){let n=()=>{this.editorContainer.clear(),this.editorContainer.addChild(this.editor),this.ui.setFocus(this.editor)},{component:i,focus:o}=e(n);this.editorContainer.clear(),this.editorContainer.addChild(i),this.ui.setFocus(o),this.ui.requestRender()}showSettingsSelector(){this.showSelector(e=>{let n=new Sl({autoCompact:this.session.autoCompactionEnabled,showImages:this.settingsManager.getShowImages(),imageWidthCells:this.settingsManager.getImageWidthCells(),autoResizeImages:this.settingsManager.getImageAutoResize(),blockImages:this.settingsManager.getBlockImages(),enableSkillCommands:this.settingsManager.getEnableSkillCommands(),steeringMode:this.session.steeringMode,followUpMode:this.session.followUpMode,transport:this.settingsManager.getTransport(),httpIdleTimeoutMs:this.settingsManager.getHttpIdleTimeoutMs(),thinkingLevel:this.session.thinkingLevel,availableThinkingLevels:this.session.getAvailableThinkingLevels(),currentTheme:this.settingsManager.getThemeSetting()||"dark",terminalTheme:this.themeController.getTerminalTheme(),availableThemes:yv(),hideThinkingBlock:this.hideThinkingBlock,collapseChangelog:this.settingsManager.getCollapseChangelog(),enableInstallTelemetry:this.settingsManager.getEnableInstallTelemetry(),doubleEscapeAction:this.settingsManager.getDoubleEscapeAction(),treeFilterMode:this.settingsManager.getTreeFilterMode(),showHardwareCursor:this.settingsManager.getShowHardwareCursor(),showCacheMissNotices:this.settingsManager.getShowCacheMissNotices(),defaultProjectTrust:this.settingsManager.getDefaultProjectTrust(),editorPaddingX:this.settingsManager.getEditorPaddingX(),outputPad:this.settingsManager.getOutputPad(),autocompleteMaxVisible:this.settingsManager.getAutocompleteMaxVisible(),quietStartup:this.settingsManager.getQuietStartup(),clearOnShrink:this.settingsManager.getClearOnShrink(),showTerminalProgress:this.settingsManager.getShowTerminalProgress(),warnings:this.settingsManager.getWarnings()},{onAutoCompactChange:i=>{this.session.setAutoCompactionEnabled(i),this.footer.setAutoCompactEnabled(i)},onShowImagesChange:i=>{this.settingsManager.setShowImages(i);for(let o of this.chatContainer.children)o instanceof Ai&&o.setShowImages(i)},onImageWidthCellsChange:i=>{this.settingsManager.setImageWidthCells(i);for(let o of this.chatContainer.children)o instanceof Ai&&o.setImageWidthCells(i)},onAutoResizeImagesChange:i=>{this.settingsManager.setImageAutoResize(i)},onBlockImagesChange:i=>{this.settingsManager.setBlockImages(i)},onEnableSkillCommandsChange:i=>{this.settingsManager.setEnableSkillCommands(i),this.setupAutocompleteProvider()},onSteeringModeChange:i=>{this.session.setSteeringMode(i)},onFollowUpModeChange:i=>{this.session.setFollowUpMode(i)},onTransportChange:i=>{this.settingsManager.setTransport(i),this.session.agent.transport=i},onHttpIdleTimeoutMsChange:i=>{this.settingsManager.setHttpIdleTimeoutMs(i),uu(i),this.showStatus(`HTTP idle timeout: ${xm(i)}`)},onThinkingLevelChange:i=>{this.session.setThinkingLevel(i),this.footer.invalidate(),this.updateEditorBorderColor()},onThemeChange:i=>{this.settingsManager.setTheme(i),this.themeController.applyFromSettings()},onThemePreview:i=>this.themeController.preview(i),onHideThinkingBlockChange:i=>{this.hideThinkingBlock=i,this.settingsManager.setHideThinkingBlock(i);for(let o of this.chatContainer.children)o instanceof Ei&&o.setHideThinkingBlock(i);this.chatContainer.clear(),this.rebuildChatFromMessages()},onShowCacheMissNoticesChange:i=>{this.settingsManager.setShowCacheMissNotices(i),this.rebuildChatFromMessages()},onCollapseChangelogChange:i=>{this.settingsManager.setCollapseChangelog(i)},onEnableInstallTelemetryChange:i=>{this.settingsManager.setEnableInstallTelemetry(i)},onQuietStartupChange:i=>{this.settingsManager.setQuietStartup(i)},onDefaultProjectTrustChange:i=>{this.settingsManager.setDefaultProjectTrust(i)},onDoubleEscapeActionChange:i=>{this.settingsManager.setDoubleEscapeAction(i)},onTreeFilterModeChange:i=>{this.settingsManager.setTreeFilterMode(i)},onShowHardwareCursorChange:i=>{this.settingsManager.setShowHardwareCursor(i),this.ui.setShowHardwareCursor(i)},onEditorPaddingXChange:i=>{this.settingsManager.setEditorPaddingX(i),this.defaultEditor.setPaddingX(i),this.editor!==this.defaultEditor&&this.editor.setPaddingX!==void 0&&this.editor.setPaddingX(i)},onOutputPadChange:i=>{if(this.settingsManager.setOutputPad(i),this.outputPad=i,this.streamingComponent||this.session.isStreaming){for(let o of this.chatContainer.children)(o instanceof Ei||o instanceof Xo)&&o.setOutputPad(i);this.streamingComponent&&this.streamingComponent.setOutputPad(i),this.ui.requestRender();return}this.rebuildChatFromMessages()},onAutocompleteMaxVisibleChange:i=>{this.settingsManager.setAutocompleteMaxVisible(i),this.defaultEditor.setAutocompleteMaxVisible(i),this.editor!==this.defaultEditor&&this.editor.setAutocompleteMaxVisible!==void 0&&this.editor.setAutocompleteMaxVisible(i)},onClearOnShrinkChange:i=>{this.settingsManager.setClearOnShrink(i),this.ui.setClearOnShrink(i),!i&&!this.activeStatusIndicator&&this.statusContainer.clear()},onShowTerminalProgressChange:i=>{this.settingsManager.setShowTerminalProgress(i)},onWarningsChange:i=>{this.settingsManager.setWarnings(i)},onCancel:()=>{e(),this.ui.requestRender()}});return{component:n,focus:n.getSettingsList()}})}async handleModelCommand(e){if(!e){this.showModelSelector();return}let n=await this.findExactModelMatch(e);if(n){try{await this.session.setModel(n),this.footer.invalidate(),this.updateEditorBorderColor(),this.showStatus(`Model: ${n.id}`),this.maybeWarnAboutAnthropicSubscriptionAuth(n),this.checkDaxnutsEasterEgg(n)}catch(i){this.showError(i instanceof Error?i.message:String(i))}return}this.showModelSelector(e)}async findExactModelMatch(e){let n=await this.getModelCandidates();return v0(e,n)}async getModelCandidates(){if(this.session.scopedModels.length>0)return this.session.scopedModels.map(e=>e.model);try{return await this.session.modelRuntime.refresh(),[...await this.session.modelRuntime.getAvailable()]}catch{return[]}}async updateAvailableProviderCount(){let e=await this.getModelCandidates(),n=new Set(e.map(i=>i.provider));this.footerDataProvider.setAvailableProviderCount(n.size)}async maybeWarnAboutAnthropicSubscriptionAuth(e=this.session.model){if(this.settingsManager.getWarnings().anthropicExtraUsage!==!1&&!(!e||e.provider!=="anthropic"))try{if((await this.session.modelRuntime.checkAuth("anthropic"))?.type==="oauth"){this.showWarning(YI);return}let n=(await this.session.modelRuntime.getAuth(e.provider))?.auth.apiKey;if(!cG(n))return;this.showWarning(YI)}catch{}}maybeSaveImplicitProjectTrustAfterReload(){let e=this.sessionManager.getCwd();if(this.autoTrustOnReloadCwd!==e||!this.settingsManager.isProjectTrusted()||!es(e))return!1;let n=new zo(this.runtimeHost.services.agentDir);try{return n.get(e)!==null?(this.autoTrustOnReloadCwd=void 0,!1):(n.set(e,!0),this.autoTrustOnReloadCwd=void 0,!0)}catch(i){return this.showWarning(`Could not save project trust after reload: ${i instanceof Error?i.message:String(i)}`),!1}}showTrustSelector(){let e=this.sessionManager.getCwd(),n=new zo(this.runtimeHost.services.agentDir),i=n.getEntry(e);this.showSelector(o=>{let r=new yu({cwd:e,savedDecision:i,projectTrusted:this.settingsManager.isProjectTrusted(),onSelect:s=>{n.setMany(s.updates),o(),this.showStatus(`Saved trust decision: ${s.trusted?"trusted":"untrusted"}. Restart sling for this to take effect.`)},onCancel:()=>{o(),this.ui.requestRender()}});return{component:r,focus:r}})}showModelSelector(e){this.showSelector(n=>{let i=new wl(this.ui,this.session.model,this.settingsManager,this.session.modelRuntime,this.session.scopedModels,async o=>{try{await this.session.setModel(o),this.footer.invalidate(),this.updateEditorBorderColor(),n(),this.showStatus(`Model: ${o.id}`),this.maybeWarnAboutAnthropicSubscriptionAuth(o),this.checkDaxnutsEasterEgg(o)}catch(r){n(),this.showError(r instanceof Error?r.message:String(r))}},()=>{n(),this.ui.requestRender()},e);return{component:i,focus:i}})}async showModelsSelector(){await this.session.modelRuntime.refresh();let e=[...await this.session.modelRuntime.getAvailable()];if(e.length===0){this.showStatus("No models available");return}let n=this.session.scopedModels,i=n.length>0,o=null;if(i)o=n.map(s=>`${s.model.provider}/${s.model.id}`);else{let s=this.settingsManager.getEnabledModels();s!==void 0&&s.length>0&&(o=(await cm(s,this.session.modelRuntime)).map(l=>`${l.model.provider}/${l.model.id}`))}let r=async s=>{if(o=s===null?null:[...s],s&&s.length>0&&s.length<e.length){let a=await cm(s,this.session.modelRuntime);this.session.setScopedModels(a.map(l=>({model:l.model,thinkingLevel:l.thinkingLevel})))}else this.session.setScopedModels([]);await this.updateAvailableProviderCount(),this.ui.requestRender()};this.showSelector(s=>{let a=new vu({allModels:e,enabledModelIds:o},{onChange:async l=>{await r(l)},onPersist:l=>{let c=l===null||l.length===e.length?void 0:l;this.settingsManager.setEnabledModels(c?[...c]:void 0),this.showStatus("Model selection saved to settings")},onCancel:()=>{s(),this.ui.requestRender()}});return{component:a,focus:a}})}showUserMessageSelector(){let e=this.session.getUserMessagesForForking();if(e.length===0){this.showStatus("No messages to fork from");return}let n=e[e.length-1]?.entryId;this.showSelector(i=>{let o=new Ml(e.map(r=>({id:r.entryId,text:r.text})),async r=>{i();try{let s=await this.runtimeHost.fork(r);if(s.cancelled){this.ui.requestRender();return}this.editor.setText(s.selectedText??""),this.showStatus("Forked to new session")}catch(s){this.showError(s instanceof Error?s.message:String(s))}},()=>{i(),this.ui.requestRender()},n);return{component:o,focus:o.getMessageList()}})}async handleCloneCommand(){let e=this.sessionManager.getLeafId();if(!e){this.showStatus("Nothing to clone yet");return}try{if((await this.runtimeHost.fork(e,{position:"at"})).cancelled){this.ui.requestRender();return}this.editor.setText(""),this.showStatus("Cloned to new session")}catch(n){this.showError(n instanceof Error?n.message:String(n))}}showTreeSelector(e){let n=this.sessionManager.getTree(),i=this.sessionManager.getLeafId(),o=this.settingsManager.getTreeFilterMode();if(n.length===0){this.showStatus("No entries in session");return}this.showSelector(r=>{let s=new Cl(n,i,this.ui.terminal.rows,async a=>{if(a===i){r(),this.showStatus("Already at this point");return}r();let l=!1,c;if(!this.settingsManager.getBranchSummarySkipPrompt())for(;;){let p=await this.showExtensionSelector("Summarize branch?",["No summary","Summarize","Summarize with custom prompt"]);if(p===void 0){this.showTreeSelector(a);return}if(l=p!=="No summary",!(p==="Summarize with custom prompt"&&(c=await this.showExtensionEditor("Custom summarization instructions"),c===void 0)))break}let u=!1,d=this.defaultEditor.onEscape;l&&(this.defaultEditor.onEscape=()=>{this.session.abortBranchSummary()},this.chatContainer.addChild(new L(1)),this.showStatusIndicator(new Om(this.ui)),u=!0,this.ui.requestRender());try{let p=await this.session.navigateTree(a,{summarize:l,customInstructions:c});if(p.aborted){this.showStatus("Branch summarization cancelled"),this.showTreeSelector(a);return}if(p.cancelled){this.showStatus("Navigation cancelled");return}this.chatContainer.clear(),this.renderInitialMessages(),p.editorText&&!this.editor.getText().trim()&&this.editor.setText(p.editorText),this.showStatus("Navigated to selected point"),this.flushCompactionQueue({willRetry:!1})}catch(p){this.showError(p instanceof Error?p.message:String(p))}finally{u&&this.clearStatusIndicator("branchSummary"),this.defaultEditor.onEscape=d}},()=>{r(),this.ui.requestRender()},(a,l)=>{this.sessionManager.appendLabelChange(a,l),this.ui.requestRender()},e,o);return s.onCopy=async a=>{if(!a){this.showError("Selected entry has no text to copy");return}try{await pl(a),this.showStatus("Copied selected message to clipboard")}catch(l){this.showError(l instanceof Error?l.message:String(l))}},{component:s,focus:s}})}showSessionSelector(){this.showSelector(e=>{let n=new ns(i=>qn.list(this.sessionManager.getCwd(),this.sessionManager.getSessionDir(),i),i=>this.sessionManager.usesDefaultSessionDir()?qn.listAll(i):qn.listAll(this.sessionManager.getSessionDir(),i),async i=>{e(),await this.handleResumeSession(i)},()=>{e(),this.ui.requestRender()},()=>{this.shutdown()},()=>this.ui.requestRender(),{renameSession:async(i,o)=>{let r=(o??"").trim();if(!r)return;qn.open(i).appendSessionInfo(r)},showRenameHint:!0,keybindings:this.keybindings},this.sessionManager.getSessionFile());return{component:n,focus:n}})}async handleResumeSession(e,n){this.clearStatusIndicator();try{let i=await this.runtimeHost.switchSession(e,{withSession:n?.withSession,projectTrustContextFactory:o=>this.createProjectTrustContext(o)});return i.cancelled||this.showStatus("Resumed session"),i}catch(i){if(i instanceof al){let o=await this.promptForMissingSessionCwd(i);if(!o)return this.showStatus("Resume cancelled"),{cancelled:!0};let r=await this.runtimeHost.switchSession(e,{cwdOverride:o,withSession:n?.withSession,projectTrustContextFactory:s=>this.createProjectTrustContext(s)});return r.cancelled||this.showStatus("Resumed session in current cwd"),r}return this.handleFatalRuntimeError("Failed to resume session",i)}}getLoginProviderOptions(e){let n=[];for(let i of this.session.modelRuntime.getProviders()){let o=this.session.modelRuntime.getProviderAuthStatus(i.id),r=o.configured?{type:this.session.modelRuntime.isUsingOAuth(i.id)?"oauth":"api_key",source:o.label??o.source}:void 0;(!e||e==="oauth")&&i.auth.oauth&&n.push({id:i.id,name:i.name,authType:"oauth",method:i.auth.oauth,status:r}),(!e||e==="api_key")&&i.auth.apiKey&&n.push({id:i.id,name:i.name,authType:"api_key",method:i.auth.apiKey,status:r})}return n.sort((i,o)=>i.name.localeCompare(o.name))}async getLogoutProviderOptions(){return(await this.session.modelRuntime.listCredentials()).map(({providerId:e,type:n})=>({id:e,name:this.session.modelRuntime.getProvider(e)?.name??e,authType:n,status:{type:n,source:"stored credential"}})).sort((e,n)=>e.name.localeCompare(n.name))}findLoginProviderOptions(e){let n=e.trim().toLowerCase();return n?this.getLoginProviderOptions().filter(i=>i.id.toLowerCase()===n||i.name.toLowerCase()===n):[]}async handleLoginCommand(e){if(await this.session.modelRuntime.getAvailable(),!e){this.showLoginAuthTypeSelector();return}let n=this.findLoginProviderOptions(e);if(n.length===1){await this.startProviderLogin(n[0]);return}if(n.length>1&&new Set(n.map(o=>o.id)).size===1){this.showLoginAuthTypeSelector(n);return}this.showLoginProviderSelector(void 0,e)}async startProviderLogin(e){e.authType==="oauth"?await this.showLoginDialog(e.id,e.name):e.method?.login?await this.showApiKeyLoginDialog(e.id,e.name):this.showAmbientAuthDialog(e)}showLoginAuthTypeSelector(e){let n=e?.find(c=>c.authType==="oauth"),o=(n?.method&&"loginLabel"in n.method?n.method.loginLabel:void 0)??"Sign in with an account",r="Sign in with an API key",s=e?new Set(e.map(c=>c.authType)):new Set(["oauth","api_key"]),a=[];if(s.has("oauth")&&a.push(o),s.has("api_key")&&a.push(r),a.length===0){this.showStatus("No login methods available.");return}if(e&&a.length===1){let c=e[0];c&&this.startProviderLogin(c);return}let l=e?.[0]?`Select authentication method for ${e[0].name}:`:"Select authentication method:";this.showSelector(c=>{let u=new so(l,a,d=>{c();let p=d===o?"oauth":"api_key";if(e){let m=e.find(g=>g.authType===p);m&&this.startProviderLogin(m);return}this.showLoginProviderSelector(p)},()=>{c(),this.ui.requestRender()});return{component:u,focus:u}})}showLoginProviderSelector(e,n){let i=this.getLoginProviderOptions(e);if(i.length===0){let o=e==="oauth"?"No subscription providers available.":e==="api_key"?"No API key providers available.":"No login providers available.";this.showStatus(o);return}this.showSelector(o=>{let r=new is("login",i,async(s,a)=>{o();let l=i.find(c=>c.id===s&&c.authType===a);l&&await this.startProviderLogin(l)},()=>{o(),e?this.showLoginAuthTypeSelector():this.ui.requestRender()},n);return{component:r,focus:r}})}async showOAuthSelector(e){if(e==="login"){this.showLoginAuthTypeSelector();return}let n=await this.getLogoutProviderOptions();if(n.length===0){this.showStatus("No stored credentials to remove. /logout only removes credentials saved by /login; environment variables and models.json config are unchanged.");return}this.showSelector(i=>{let o=new is(e,n,async r=>{i();let s=n.find(a=>a.id===r);if(s)try{await this.session.modelRuntime.logout(s.id),await this.updateAvailableProviderCount();let a=s.authType==="oauth"?`Logged out of ${s.name}`:`Removed stored API key for ${s.name}. Environment variables and models.json config are unchanged.`;this.showStatus(a)}catch(a){this.showError(`Logout failed: ${a instanceof Error?a.message:String(a)}`)}},()=>{i(),this.ui.requestRender()});return{component:o,focus:o}})}async completeProviderAuthentication(e,n,i,o){await this.session.modelRuntime.getAvailable();let r=i==="oauth"?`Logged in to ${n}`:`Saved API key for ${n}`,s,a;if(uG(o)){let c=(await this.session.modelRuntime.getAvailable()).filter(u=>u.provider===e);if(!mG(e))a=`${r}, but no default model is configured for provider "${e}". Use /model to select a model.`;else if(c.length===0)a=`${r}, but no models are available for that provider. Use /model to select a model.`;else{let u=f0[e];if(s=c.find(d=>d.id===u),!s)a=`${r}, but its default model "${u}" is not available. Use /model to select a model.`;else try{await this.session.setModel(s)}catch(d){s=void 0;let p=d instanceof Error?d.message:String(d);a=`${r}, but selecting its default model failed: ${p}. Use /model to select a model.`}}}await this.updateAvailableProviderCount(),this.footer.invalidate(),this.updateEditorBorderColor(),s?(this.showStatus(`${r}. Selected ${s.id}. Credentials saved to ${nf()}`),this.maybeWarnAboutAnthropicSubscriptionAuth(s),this.checkDaxnutsEasterEgg(s)):(this.showStatus(`${r}. Credentials saved to ${nf()}`),a?this.showError(a):this.maybeWarnAboutAnthropicSubscriptionAuth())}showAmbientAuthDialog(e){let n=()=>{this.editorContainer.clear(),this.editorContainer.addChild(this.editor),this.ui.setFocus(this.editor),this.ui.requestRender()},i=new Yo(this.ui,e.id,()=>n(),e.name,`${e.name} setup`);i.showInfo(`${e.method?.name??"Authentication"} is configured outside pi.`,[],!0),this.editorContainer.clear(),this.editorContainer.addChild(i),this.ui.setFocus(i),this.ui.requestRender()}async showApiKeyLoginDialog(e,n){let i=this.session.model,o=new Yo(this.ui,e,(s,a)=>{},n);e==="amazon-bedrock"&&o.showDetails([v.fg("text","You can also use an AWS profile, IAM keys, or role-based credentials."),v.fg("muted","See:"),v.fg("accent",` ${et.join(pc(),"providers.md")}`)]),this.editorContainer.clear(),this.editorContainer.addChild(o),this.ui.setFocus(o),this.ui.requestRender();let r=()=>{this.editorContainer.clear(),this.editorContainer.addChild(this.editor),this.ui.setFocus(this.editor),this.ui.requestRender()};try{await this.loginProvider(o,e,"api_key"),r(),await this.completeProviderAuthentication(e,n,"api_key",i)}catch(s){r();let a=s instanceof Error?s.message:String(s);a!=="Login cancelled"&&this.showError(`Failed to save API key for ${n}: ${a}`)}}showAuthSelect(e,n){return new Promise((i,o)=>{let r=()=>{this.editorContainer.clear(),this.editorContainer.addChild(e),this.ui.setFocus(e),this.ui.requestRender()},s=n.options.map(l=>l.label),a=new so(n.message,s,l=>{r();let c=n.options.find(u=>u.label===l)?.id;c?i(c):o(new Error("Login cancelled"))},()=>{r(),o(new Error("Login cancelled"))});this.editorContainer.clear(),this.editorContainer.addChild(a),this.ui.setFocus(a),this.ui.requestRender()})}async showAuthPrompt(e,n){let i;if(n.type==="select"?i=this.showAuthSelect(e,n):n.type==="manual_code"?i=e.showManualInput(n.message):i=e.showPrompt(n.message,n.placeholder),!n.signal)return i;if(n.signal.aborted)throw new Error("Login cancelled");let o=n.signal,r,s=new Promise((a,l)=>{r=()=>l(new Error("Login cancelled")),o.addEventListener("abort",r,{once:!0})});try{return await Promise.race([i,s])}finally{r&&o.removeEventListener("abort",r)}}notifyAuthDialog(e,n){n.type==="auth_url"?e.showAuth(n.url,n.instructions):n.type==="device_code"?(e.showDeviceCode(n),e.showWaiting("Waiting for authentication...")):n.type==="info"?e.showInfo(n.message,n.links):e.showProgress(n.message)}async loginProvider(e,n,i){await this.session.modelRuntime.login(n,i,{signal:e.signal,prompt:o=>this.showAuthPrompt(e,o),notify:o=>this.notifyAuthDialog(e,o)})}async showLoginDialog(e,n){let i=this.session.model,o=new Yo(this.ui,e,(s,a)=>{},n);this.editorContainer.clear(),this.editorContainer.addChild(o),this.ui.setFocus(o),this.ui.requestRender();let r=()=>{this.editorContainer.clear(),this.editorContainer.addChild(this.editor),this.ui.setFocus(this.editor),this.ui.requestRender()};try{await this.loginProvider(o,e,"oauth"),r(),await this.completeProviderAuthentication(e,n,"oauth",i)}catch(s){r();let a=s instanceof Error?s.message:String(s);a!=="Login cancelled"&&this.showError(`Failed to login to ${n}: ${a}`)}}async handleReloadCommand(){if(this.session.isStreaming){this.showWarning("Wait for the current response to finish before reloading.");return}if(this.session.isCompacting){this.showWarning("Wait for compaction to finish before reloading.");return}this.resetExtensionUI();let e=new G,n=l=>v.fg("border",l);e.addChild(new H(n)),e.addChild(new L(1)),e.addChild(new A(v.fg("muted","Reloading keybindings, extensions, skills, prompts, themes, and context files..."),1,0)),e.addChild(new L(1)),e.addChild(new H(n));let i=this.editor;this.editorContainer.clear(),this.editorContainer.addChild(e),this.ui.setFocus(e),this.ui.requestRender(!0),await new Promise(l=>process.nextTick(l));let o=l=>{this.editorContainer.clear(),this.editorContainer.addChild(l),this.ui.setFocus(l),this.ui.requestRender()},r=!1,s=!1,a=()=>{r||(this.hideThinkingBlock=this.settingsManager.getHideThinkingBlock(),this.outputPad=this.settingsManager.getOutputPad(),this.rebuildChatFromMessages(),r=!0)};try{await this.session.reload({beforeSessionStart:a}),a(),uu(this.settingsManager.getHttpIdleTimeoutMs()),this.keybindings.reload();let l=this.customHeader??this.builtInHeader;wu(l)&&l.setExpanded(this.toolOutputExpanded),Uc(this.session.resourceLoader.getThemes().themes),await this.themeController.applyFromSettings();let c=this.settingsManager.getEditorPaddingX(),u=this.settingsManager.getAutocompleteMaxVisible();this.defaultEditor.setPaddingX(c),this.defaultEditor.setAutocompleteMaxVisible(u),this.editor!==this.defaultEditor&&(this.editor.setPaddingX?.(c),this.editor.setAutocompleteMaxVisible?.(u)),this.ui.setShowHardwareCursor(this.settingsManager.getShowHardwareCursor());let d=this.settingsManager.getClearOnShrink();this.ui.setClearOnShrink(d),!d&&!this.activeStatusIndicator&&this.statusContainer.clear(),this.setupAutocompleteProvider();let p=this.session.extensionRunner;this.setupExtensionShortcuts(p),this.showLoadedResources({force:!1,showDiagnosticsWhenQuiet:!0});let m=this.maybeSaveImplicitProjectTrustAfterReload(),g=this.session.modelRuntime.getError();g&&this.showError(`models.json error: ${g}`),this.showStatus(m?"Reloaded keybindings, extensions, skills, prompts, themes, and context files; saved project trust":"Reloaded keybindings, extensions, skills, prompts, themes, and context files"),o(this.editor),s=!0}catch(l){s||o(i),this.showError(`Reload failed: ${l instanceof Error?l.message:String(l)}`)}}async handleExportCommand(e){let n=this.getPathCommandArgument(e,"/export");try{if(n?.endsWith(".jsonl")){let i=this.session.exportToJsonl(n);this.showStatus(`Session exported to: ${i}`)}else{let i=await this.session.exportToHtml(n);this.showStatus(`Session exported to: ${i}`)}}catch(i){this.showError(`Failed to export session: ${i instanceof Error?i.message:"Unknown error"}`)}}getPathCommandArgument(e,n){if(e===n||!e.startsWith(`${n} `))return;let i=e.slice(n.length+1).trimStart();if(!i)return;let o=i[0];if(o==='"'||o==="'"){let s=i.indexOf(o,1);return s<0?void 0:i.slice(1,s)}let r=i.search(/\s/);return r<0?i:i.slice(0,r)}async handleImportCommand(e){let n=this.getPathCommandArgument(e,"/import");if(!n){this.showError("Usage: /import <path.jsonl>");return}if(!await this.showExtensionConfirm("Import session",`Replace current session with ${n}?`)){this.showStatus("Import cancelled");return}try{if(this.clearStatusIndicator(),(await this.runtimeHost.importFromJsonl(n)).cancelled){this.showStatus("Import cancelled");return}this.showStatus(`Session imported from: ${n}`)}catch(o){if(o instanceof al){let r=await this.promptForMissingSessionCwd(o);if(!r){this.showStatus("Import cancelled");return}if((await this.runtimeHost.importFromJsonl(n,r)).cancelled){this.showStatus("Import cancelled");return}this.showStatus(`Session imported from: ${n}`);return}if(o instanceof ym){this.showError(`Failed to import session: ${o.message}`);return}await this.handleFatalRuntimeError("Failed to import session",o)}}async handleShareCommand(){try{if(rG("gh",["auth","status"],{encoding:"utf-8"}).status!==0){this.showError("GitHub CLI is not logged in. Run 'gh auth login' first.");return}}catch{this.showError("GitHub CLI (gh) is not installed. Install it from https://cli.github.com/");return}let e=et.join(Rl.tmpdir(),"session.html");try{await this.session.exportToHtml(e)}catch(r){this.showError(`Failed to export session: ${r instanceof Error?r.message:"Unknown error"}`);return}let n=new hl(this.ui,v,"Creating gist...");this.editorContainer.clear(),this.editorContainer.addChild(n),this.ui.setFocus(n),this.ui.requestRender();let i=()=>{n.dispose(),this.editorContainer.clear(),this.editorContainer.addChild(this.editor),this.ui.setFocus(this.editor);try{Pn.unlinkSync(e)}catch{}},o=null;n.onAbort=()=>{o?.kill(),i(),this.showStatus("Share cancelled")};try{let r=await new Promise(c=>{o=sb("gh",["gist","create","--public=false",e]);let u="",d="";o.stdout?.on("data",p=>{u+=p.toString()}),o.stderr?.on("data",p=>{d+=p.toString()}),o.on("close",p=>c({stdout:u,stderr:d,code:p}))});if(n.signal.aborted)return;if(i(),r.code!==0){let c=r.stderr?.trim()||"Unknown error";this.showError(`Failed to create gist: ${c}`);return}let s=r.stdout?.trim(),a=s?.split("/").pop();if(!a){this.showError("Failed to parse gist ID from gh output");return}let l=KS(a);this.showStatus(`Share URL: ${l}
296
296
  Gist: ${s}`)}catch(r){n.signal.aborted||(i(),this.showError(`Failed to create gist: ${r instanceof Error?r.message:"Unknown error"}`))}}async handleCopyCommand(){let e=this.session.getLastAssistantText();if(!e){this.showError("No agent messages to copy yet.");return}try{await pl(e),this.showStatus("Copied last agent message to clipboard")}catch(n){this.showError(n instanceof Error?n.message:String(n))}}handleNameCommand(e){let n=e.replace(/^\/name\s*/,"").trim();if(!n){let o=this.sessionManager.getSessionName();o?(this.chatContainer.addChild(new L(1)),this.chatContainer.addChild(new A(v.fg("dim",`Session name: ${o}`),1,0))):this.showWarning("Usage: /name <name>"),this.ui.requestRender();return}this.session.setSessionName(n);let i=this.sessionManager.getSessionName();i!==n&&this.showWarning(`Session name was normalized from ${JSON.stringify(n)} to ${JSON.stringify(i)}`),this.chatContainer.addChild(new L(1)),this.chatContainer.addChild(new A(v.fg("dim",`Session name set: ${i??n}`),1,0)),this.ui.requestRender()}handleSessionCommand(){let e=this.session.getSessionStats(),n=this.sessionManager.getSessionName(),i=this.sessionManager.getEntries(),o=uI(i,this.session.modelRuntime),r=new Map;for(let p of i){if(p.type!=="message"||p.message.role!=="assistant")continue;let m=p.message,g=m.usage,h=`${m.provider}/${m.responseModel??m.model}`,f=r.get(h);f||(f={key:h,cost:0,tokens:0},r.set(h,f)),f.cost+=g.cost.total,f.tokens+=g.input+g.output+g.cacheRead+g.cacheWrite}let s=Array.from(r.values()).sort((p,m)=>m.cost-p.cost),a=`${v.bold("Session Info")}
297
297
 
298
298
  `;n&&(a+=`${v.fg("dim","Name:")} ${n}
@@ -383,7 +383,7 @@ Log file: ${co}
383
383
  `;Zo.appendFileSync(co,n)}catch{}}function vt(t,e){if(!(!co||!Zo||!ku))try{let i=`[${new Date().toISOString()}] ${t}:
384
384
  ${JSON.stringify(e,null,2)}
385
385
 
386
- `;Zo.appendFileSync(co,i)}catch{}}var er=null;function rE(t){if(!t)return;let e=t.trim();if(e)return e.replace(/\/+$/,"")}var We=class t{static{this.BASE_URL="base_url"}static{this.ANALYTICS_DOMAIN="analytics_domain"}static{this.CLIENT_ID="client_id"}static{this.PROJECT_ID="project_id"}static{this.WORKSPACE_ID="workspace_id"}static{this.defaultValues={[t.BASE_URL]:"https://sapientaiproducts.com",[t.ANALYTICS_DOMAIN]:"https://slingshot.sapientaiproducts.com",[t.CLIENT_ID]:"b97fbef7-cad9-4e56-9850-39e86c8fdf61",[t.PROJECT_ID]:"fa8121c4-e2fc-48f1-9478-8949c04e13cc",[t.WORKSPACE_ID]:"6e5756eb-d7e2-4d80-ad07-9d7a51600d85"}}static{this.LOGIN_PATH="/web/v1/studio-auth/login"}static{this.EXCHANGE_PATH="/api/v1/studio-auth/auth/desktop/exchange"}static{this.REFRESH_PATH="/api/v3/auth/refreshtoken"}static{this.REFRESH_CLIENT_NAME="machine"}static{this.API_BASE_PATH="/api/v1/llm"}static{this.SAGE_EVENTS_PATH="/api/v1/ai-portal/sage_events"}static{this.APP_TOKEN_PATH="/api/v3/auth/app-token"}static{this.CONFIG_SERVICE_PATH="/api/v2/configservice/client"}static{this.APP_TOKEN_REFRESH_BUFFER_MS=60*1e3}static{this.SLINGSHOT_APP_TOKEN_ENV="SLINGSHOT_APP_TOKEN_HEADER"}static{this.TOKEN_EXPIRY_BUFFER_MS=300*1e3}static{this.SAPI="/save/api/v1"}static{this.CLIENT_NAME="desktop"}static defaults(e){return this.defaultValues[e]}static getLocalSettingsPath(){return Dm.resolve(process.cwd(),".sling","sling.settings.json")}static getGlobalSettingsPath(){return Dm.resolve(Ee(),"sling.settings.json")}static getSettingsPath(e){if(e==="local")return this.getLocalSettingsPath();if(e==="global")return this.getGlobalSettingsPath();let n=this.getLocalSettingsPath();return ci.existsSync(n)?n:this.getGlobalSettingsPath()}static getSettings(){if(!er){let i=this.getSettingsPath();try{if(ci.existsSync(i)){let o=ci.readFileSync(i,"utf-8"),r=JSON.parse(o)||{};er={...this.defaultValues,...r}}else{let o=Dm.dirname(i);ci.existsSync(o)||ci.mkdirSync(o,{recursive:!0}),ci.writeFileSync(i,JSON.stringify(this.defaultValues,null,2),"utf-8"),er={...this.defaultValues}}}catch(o){vt("Error reading/writing sling.settings.json: ",o),er={...this.defaultValues}}}let e=rE(process.env.SLINGSHOT_API_DOMAIN),n=rE(process.env.SLINGSHOT_ANALYTICS_DOMAIN);return{...er,[t.BASE_URL]:e||er[t.BASE_URL],[t.ANALYTICS_DOMAIN]:n||er[t.ANALYTICS_DOMAIN]}}static updateSettings(e,n){let i=n?.scope??"global",o=this.getSettingsPath(i);try{let r={};if(ci.existsSync(o)){let l=ci.readFileSync(o,"utf-8");r=JSON.parse(l)||{}}let s={...this.defaultValues,...r,...e},a=Dm.dirname(o);ci.existsSync(a)||ci.mkdirSync(a,{recursive:!0}),ci.writeFileSync(o,JSON.stringify(s,null,2),"utf-8"),er=null}catch(r){vt("Error updating sling.settings.json: ",r)}}static getLoginUrl(e){let n=this.getSettings(),i=new URLSearchParams({client:this.CLIENT_NAME,port:String(e.port),localState:e.localState});return e.clientId&&i.set("clientId",e.clientId),`${n[t.BASE_URL]}${this.LOGIN_PATH}?${i.toString()}`}static getExchangeUrl(){return`${this.getSettings()[t.BASE_URL]}${this.EXCHANGE_PATH}`}static getRefreshUrl(){let e=this.getSettings(),n=new URLSearchParams({client:this.REFRESH_CLIENT_NAME});return`${e[t.BASE_URL]}${this.REFRESH_PATH}?${n.toString()}`}static getApiBaseUrl(){return`${this.getSettings()[t.BASE_URL]}${this.API_BASE_PATH}`}static getSageEventsUrl(){return`${this.getSettings()[t.ANALYTICS_DOMAIN]}${this.SAGE_EVENTS_PATH}`}static getTokenExpiryBuffer(){return this.TOKEN_EXPIRY_BUFFER_MS}static getDefaultProjectId(){let e=this.getSettings();return process.env.SLINGSHOT_PROJECT_ID||e[t.PROJECT_ID]}static getDefaultWorkspaceId(){let e=this.getSettings();return process.env.SLINGSHOT_WORKSPACE_ID||e[t.WORKSPACE_ID]}static getDefaultClientId(){let e=this.getSettings();return process.env.CLIENT_ID||e[t.CLIENT_ID]}static getUserActivityUrl(){return`${this.getSettings()[t.BASE_URL]}${this.SAPI}/users/activity`}static getUserUrl(){return`${this.getSettings()[t.BASE_URL]}${this.SAPI}/users`}static getAppTokenUrl(){return`${this.getSettings()[t.BASE_URL]}${this.APP_TOKEN_PATH}`}static getConfigServiceUrl(e){let n=this.getSettings(),i=this.getDefaultClientId(),o=new URLSearchParams({keys:e});return`${n[t.BASE_URL]}${this.CONFIG_SERVICE_PATH}/${i}?${o.toString()}`}static getAppTokenRefreshBuffer(){return this.APP_TOKEN_REFRESH_BUFFER_MS}};function Cu(t){try{let e=t.split(".");if(e.length!==3)return 0;let n=JSON.parse(atob(e[1]));return n.exp?n.exp*1e3:0}catch{return 0}}function sE(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var lb="Xq7Wm2zR9pLkVbN4cD8fH3jT6yG1sA5",_G=BigInt(lb.length);function OG(t){if(t.length===0)return"";let e=0n;for(let i of t){let o=lb.indexOf(i);if(o===-1)throw new Error(`Cannot decode app_key: character "${i}" is not in the expected alphabet`);e=e*_G+BigInt(o)}let n=[];for(;e>0n;)n.unshift(Number(e&0xffn)),e>>=8n;for(let i of t)if(i===lb[0])n.unshift(0);else break;return new TextDecoder().decode(new Uint8Array(n))}var cb=new Map,Um=new Map;async function LG(t,e){let n=We.getConfigServiceUrl(t);Ge(`sling-config: fetching ${n}`);let i;try{i=await fetch(n,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${e}`}})}catch(s){let a=s instanceof Error?s.message:String(s);throw new Error(`Cannot reach config service: ${a}`)}if(!i.ok){let s=`${i.status} ${i.statusText}`;try{let a=await i.json();a.message?s=String(a.message):a.error&&(s=String(a.error))}catch{}throw new Error(`Config service request failed: ${s}`)}let r=(await i.json())?.data?.config;if(!r||typeof r!="object")throw new Error("Config service response missing data.config");return r}async function aE(t,e){let n=cb.get(t);if(n)return n;let i=Um.get(t);if(i)return i;if(!e)throw new Error("Cannot reach config service: no Slingshot user token provided");let o=LG(t,e).then(r=>(cb.set(t,r),r)).finally(()=>{Um.delete(t)});return Um.set(t,o),o}var Pl=class{static async getSlingcliConfig(e){let n=await aE("slingcli",e),i=n.slingcli;if(!i||typeof i.app_id!="string"||typeof i.app_key!="string"||!i.app_id||!i.app_key)throw vt("sling-config: missing slingcli block",n),new Error("Config service did not return slingcli.app_id / slingcli.app_key for this client");return{app_id:i.app_id,app_key:OG(i.app_key)}}static async getRemoteConfig(e,n){return aE(e,n)}static clearCache(){cb.clear(),Um=new Map}};import lE from"node:path";import tr from"node:fs";var WG="sling.app-creds.json";function ub(){return lE.resolve(Ee(),WG)}function cE(){let t=ub();if(!tr.existsSync(t))return null;try{let e=tr.readFileSync(t,"utf-8"),n=JSON.parse(e);return typeof n.app_id!="string"||typeof n.app_key!="string"||!n.app_id||!n.app_key?(vt("app-creds-store: invalid creds file, ignoring",n),null):{app_id:n.app_id,app_key:n.app_key}}catch(e){return vt("app-creds-store: failed to read creds file",e),null}}function db(t){let e=ub(),n=lE.dirname(e);try{tr.existsSync(n)||tr.mkdirSync(n,{recursive:!0});let i={...t,savedAt:Date.now()};tr.writeFileSync(e,JSON.stringify(i,null,2),{encoding:"utf-8",mode:384});try{tr.chmodSync(e,384)}catch{}Ge(`app-creds-store: persisted to ${e}`)}catch(i){vt("app-creds-store: failed to persist creds",i)}}function uE(){let t=ub();try{tr.existsSync(t)&&(tr.unlinkSync(t),Ge(`app-creds-store: cleared ${t}`))}catch(e){vt("app-creds-store: failed to clear creds file",e)}}var Nm=class extends Error{constructor(n,i){super(i);this.status=n;this.name="AppTokenHttpError"}},Mu=null,Ru=null,$m=null,Il=null;function dE(t){process.env[We.SLINGSHOT_APP_TOKEN_ENV]=`Bearer ${t}`}function FG(t){Il&&(clearTimeout(Il),Il=null);let e=t.expiresAt-Date.now();e<=0||(Il=setTimeout(()=>{Il=null,_i().catch(n=>{vt("app-token: scheduled refresh failed",n)})},e),Il.unref?.())}async function pE(t){let e=Buffer.from(`${t.app_id}:${t.app_key}`).toString("base64"),n=We.getAppTokenUrl();Ge(`app-token: minting from ${n}`);let i;try{i=await fetch(n,{method:"GET",headers:{Accept:"application/json",Authorization:`Basic ${e}`}})}catch(a){let l=a instanceof Error?a.message:String(a);throw new Error(`Cannot reach app-token service: ${l}`)}if(!i.ok){let a=`${i.status} ${i.statusText}`;try{let l=await i.text()||"";l&&(a=l)}catch{}throw new Nm(i.status,`App token request failed: ${a}`)}let o=await i.json();if(!o.app_token||typeof o.expires_in!="number")throw new Error("App token response missing app_token or expires_in");let r=We.getAppTokenRefreshBuffer(),s=Date.now()+o.expires_in*1e3-r;return Ge(`app-token: minted, expires at ${new Date(s).toISOString()}`),{token:o.app_token,expiresAt:s}}async function DG(){let t=cE();if(t)return{creds:t,fromDisk:!0};if(!Ru)throw new Error("Cannot mint app token: no on-disk app credentials and no Slingshot user token available (please /login slingshot first)");let e=await Pl.getSlingcliConfig(Ru);return db(e),{creds:e,fromDisk:!1}}async function UG(){let{creds:t,fromDisk:e}=await DG();try{return await pE(t)}catch(n){let i=n instanceof Nm&&(n.status===401||n.status===403);if(!e||!i)throw n;if(vt("app-token: disk creds rejected (likely rotated), refetching from config service",{status:n.status}),uE(),!Ru)throw new Error("Cannot rotate app credentials: on-disk creds rejected and no Slingshot user token available (please /login slingshot)");let o=await Pl.getSlingcliConfig(Ru);return db(o),await pE(o)}}async function _i(t){if(t&&(Ru=t),Mu&&Mu.expiresAt>Date.now())return dE(Mu.token),Mu.token;if($m)return(await $m).token;let e=UG().then(i=>(Mu=i,dE(i.token),FG(i),i)).finally(()=>{$m=null});return $m=e,(await e).token}var Pu=null,pb=null;typeof process<"u"&&process.versions?.node&&(pb=import("node:http").then(t=>{Pu=t.createServer}));async function $G(){if(Pu||(pb&&await pb,Pu))return Pu;throw new Error("Slingshot OAuth requires Node.js")}async function mb(t){let e=await $G(),n,i,o,r=!1,s=new Promise((u,d)=>{i=u,o=d}),a=u=>{if(!r){r=!0;try{n.close()}catch{}u()}};n=e((u,d)=>{let p=new URL(u.url||"","http://127.0.0.1"),m=p.searchParams.get("code"),g=p.searchParams.get("state"),h=p.searchParams.get("clientId"),f=p.searchParams.get("error"),b=p.searchParams.get("error_description");if(f){d.writeHead(400,{"Content-Type":"text/html"}),d.end(`<html><body><h1>Login Failed</h1><p>${b||f}</p><p>You can close this window.</p></body></html>`),a(()=>o(new Error(`Login failed: ${b||f}`)));return}if(!m||!g){d.writeHead(400,{"Content-Type":"text/html"}),d.end("<html><body><h1>Login Failed</h1><p>Missing code or state in callback.</p><p>You can close this window.</p></body></html>"),a(()=>o(new Error("Missing code or state in callback")));return}d.writeHead(200,{"Content-Type":"text/html"}),d.end("<html><body><h1>Login Successful</h1><p>You can close this window and return to your terminal.</p><script>setTimeout(()=>window.close(),3000)</script></body></html>"),a(()=>i({code:m,state:g,clientId:h||""}))}),n.on("error",u=>{a(()=>o(u))});let l=setTimeout(()=>{a(()=>o(new Error("Login timeout - no callback received within 5 minutes")))},300*1e3);return n.on("close",()=>clearTimeout(l)),t&&t.addEventListener("abort",()=>{a(()=>o(new Error("Login cancelled")))}),{port:await new Promise((u,d)=>{n.once("error",d),n.listen(0,"127.0.0.1",()=>{let p=n.address();p&&typeof p=="object"?u(p.port):d(new Error("Failed to obtain loopback server port"))})}),result:s}}async function hb(t,e){if(!t)throw new Error("Missing exchange code");if(!e)throw new Error("Missing clientId for exchange");let n=We.getExchangeUrl(),i;try{i=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json",accept:"application/json"},body:JSON.stringify({code:t,clientId:e})})}catch(r){let s=r instanceof Error?r.message:String(r);throw new Error(`Cannot reach Studio Auth: ${s}`)}if(!i.ok){let r,s=`${i.status} ${i.statusText}`;try{let a=await i.json();r=a.error?.code,a.error?.message?s=a.error.message:a.message?s=a.message:r&&(s=r)}catch{}throw r==="INVALID_CALLBACK"?new Error("Login failed: exchange code is expired, already used, or bound to a different tenant. Please log in again."):new Error(`Code exchange failed: ${s}`)}let o=await i.json();if(!o.accessToken||!o.refreshToken)throw new Error("Exchange response missing accessToken or refreshToken");return o}function BG(){return NG(16).toString("hex")}function jG(t){let e=new URL(t),n=e.searchParams.get("code"),i=e.searchParams.get("state"),o=e.searchParams.get("clientId");if(!n||!i)throw new Error("Pasted URL is missing code or state");return{code:n,state:i,clientId:o||""}}async function gb(t){let e=process.env.SLINGSHOT_TOKEN;if(e){let u=Cu(e);return Ge("Using Slingshot token from SLINGSHOT_TOKEN environment variable"),await _i(e),{refresh:"",access:e,expires:u>0?u-We.getTokenExpiryBuffer():Date.now()+10800*1e3,projectId:process.env.SLINGSHOT_PROJECT_ID,workspaceId:process.env.SLINGSHOT_WORKSPACE_ID}}let{port:n,result:i}=await mb(t.signal),o=BG(),r=We.getDefaultClientId(),s=We.getLoginUrl({port:n,localState:o,clientId:r||void 0});t.onAuth({url:s});let a;if(t.onManualCodeInput){let u=t.onManualCodeInput().then(jG);a=await Promise.race([i,u])}else a=await i;if(a.state!==o)throw new Error("CSRF check failed - state does not match localState");if(!a.clientId)throw new Error("Login callback did not include clientId");let l=await hb(a.code,a.clientId),c=Cu(l.accessToken);return await _i(l.accessToken),{refresh:l.refreshToken,access:l.accessToken,expires:c>0?c-We.getTokenExpiryBuffer():Date.now()+10800*1e3,projectId:void 0,workspaceId:void 0}}import{randomUUID as qG}from"node:crypto";async function Bm(t){if(!t.refresh)throw new Error("No refresh token available. Please login again.");let e;try{e=await _i()}catch(a){throw vt("auth/refresh: app token unavailable for refresh call",a),new Error(`Cannot refresh Slingshot token: app token unavailable (${a instanceof Error?a.message:String(a)}). Please /login slingshot.`)}let n=qG(),i={accept:"application/json",rt:t.refresh,"trace-id":n,Authorization:`Bearer ${e}`},o;try{let a=We.getRefreshUrl();o=await fetch(a,{headers:i})}catch(a){let l=a instanceof Error?a.message:String(a);throw new Error(`Cannot reach Slingshot server: ${l}`)}if(!o.ok){let a=`${o.status} ${o.statusText}`;try{let l=await o.json();l.message?a=String(l.message):l.error&&(a=String(l.error))}catch{}throw new Error(`Token refresh failed: ${a}`)}let r=await o.json();if(!r.accessToken)throw new Error("No access token in refresh response");let s=Cu(r.accessToken);try{await _i(r.accessToken)}catch(a){throw vt("auth/refresh: app token refresh failed",a),a}return{refresh:r.refreshToken||t.refresh,access:r.accessToken,expires:s>0?s-We.getTokenExpiryBuffer():Date.now()+10800*1e3,projectId:t.projectId,workspaceId:t.workspaceId}}var mE=[{id:"gpt-5.4-nano",name:"GPT-5.4 nano",baseUrl:"",reasoning:!0,thinkingLevelMap:{xhigh:"xhigh"},input:["text","image"],cost:{input:.2,output:1.25,cacheRead:.02,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,api:"openai-responses",provider:"slingshot"},{id:"gpt-4.1",name:"GPT-4.1",baseUrl:"",reasoning:!1,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:1047576,maxTokens:32768,provider:"slingshot",api:"openai-completions"},{id:"gpt-5",name:"GPT-5",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,provider:"slingshot",api:"openai-responses"},{id:"gpt-5-mini",name:"GPT-5 Mini",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.025,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,provider:"slingshot",api:"openai-responses"},{id:"gpt-5-nano",name:"GPT-5 Nano",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:.05,output:.4,cacheRead:.005,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,provider:"slingshot",api:"openai-responses"},{id:"gpt-5.1",name:"GPT-5.1",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.13,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,provider:"slingshot",api:"openai-responses"},{id:"gpt-5.2",name:"GPT-5.2",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,provider:"slingshot",api:"openai-responses"},{id:"gpt-5.4-mini",name:"GPT-5.4 mini",baseUrl:"",reasoning:!0,thinkingLevelMap:{xhigh:"xhigh"},input:["text","image"],cost:{input:.75,output:4.5,cacheRead:.075,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,api:"openai-responses",provider:"slingshot"},{id:"gpt-5.4",name:"GPT-5.4",baseUrl:"",reasoning:!0,thinkingLevelMap:{xhigh:"xhigh"},input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:0},contextWindow:272e3,maxTokens:128e3,api:"openai-responses",provider:"slingshot"},{id:"gpt-5.5",name:"GPT-5.5",baseUrl:"",reasoning:!0,thinkingLevelMap:{xhigh:"xhigh"},input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0},contextWindow:272e3,maxTokens:128e3,api:"openai-responses",provider:"slingshot"},{id:"gpt-5.2-codex",name:"GPT-5.2 Codex",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,provider:"slingshot",api:"openai-responses"},{id:"gpt-5.3-codex",name:"GPT-5.3 Codex",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,provider:"slingshot",api:"openai-responses"},{id:"claude-opus-4@20250514",name:"Claude Opus 4",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:32e3,provider:"slingshot",api:"openai-completions"},{id:"claude-sonnet-4@20250514",name:"Claude Sonnet 4",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3,provider:"slingshot",api:"openai-completions"},{id:"claude-sonnet-4-5@20250929",name:"Claude Sonnet 4.5",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3,provider:"slingshot",api:"openai-completions"},{id:"claude-sonnet-4-6",name:"Claude Sonnet 4.6",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:64e3,provider:"slingshot",api:"openai-completions"},{id:"claude-opus-4-6",name:"Claude Opus 4.6",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,provider:"slingshot",api:"openai-completions"},{id:"o3",name:"O3",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,provider:"slingshot",api:"openai-completions"},{id:"o3-mini",name:"o3-mini",baseUrl:"",reasoning:!0,input:["text"],cost:{input:1.1,output:4.4,cacheRead:.55,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,provider:"slingshot",api:"openai-completions"},{id:"o4-mini",name:"o4-mini",baseUrl:"",reasoning:!0,input:["text"],cost:{input:1.1,output:4.4,cacheRead:.28,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,provider:"slingshot",api:"openai-completions"},{id:"gemini-2.5-flash",name:"Gemini 2.5 Flash",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:.3,output:2.5,cacheRead:.075,cacheWrite:0},contextWindow:1048576,maxTokens:65536,provider:"slingshot",api:"openai-completions"}];var jm={name:"slingshot.cli",private:!0,type:"module",workspaces:["packages/*","packages/web-ui/example","packages/coding-agent/examples/extensions/with-deps","packages/coding-agent/examples/extensions/custom-provider-anthropic","packages/coding-agent/examples/extensions/custom-provider-gitlab-duo"],scripts:{clean:"npm run clean --workspaces",build:"cd packages/tui && npm run build && cd ../ai && npm run build && cd ../agent && npm run build && cd ../coding-agent && npm run build && cd ../web-ui && npm run build",dev:'concurrently --names "ai,agent,coding-agent,web-ui,tui" --prefix-colors "cyan,yellow,red,white,green,magenta" "cd packages/ai && npm run dev" "cd packages/agent && npm run dev" "cd packages/coding-agent && npm run dev" "cd packages/web-ui && npm run dev" "cd packages/tui && npm run dev"',"dev:tsc":'concurrently --names "ai,web-ui" --prefix-colors "cyan,green" "cd packages/ai && npm run dev:tsc" "cd packages/web-ui && npm run dev:tsc"',check:"","check:browser-smoke":"","test:models":"node scripts/test-models.mjs","profile:tui":"node scripts/profile-coding-agent-node.mjs --mode tui","profile:rpc":"node scripts/profile-coding-agent-node.mjs --mode rpc",test:"npm run test --workspaces --if-present","version:patch":"npm version patch -ws --no-git-tag-version && node scripts/sync-versions.js && shx rm -rf node_modules packages/*/node_modules package-lock.json && npm install","version:minor":"npm version minor -ws --no-git-tag-version && node scripts/sync-versions.js && shx rm -rf node_modules packages/*/node_modules package-lock.json && npm install","version:major":"npm version major -ws --no-git-tag-version && node scripts/sync-versions.js && shx rm -rf node_modules packages/*/node_modules package-lock.json && npm install","version:set":"npm version -ws",prepublishOnly:"npm run clean && npm run build && npm run check",publish:"npm run prepublishOnly && npm publish -ws --access public","publish:dry":"npm run prepublishOnly && npm publish -ws --access public --dry-run","release:patch":"node scripts/release.mjs patch","release:minor":"node scripts/release.mjs minor","release:major":"node scripts/release.mjs major",prepare:"husky"},devDependencies:{"@anthropic-ai/sandbox-runtime":"0.0.57","@biomejs/biome":"2.3.15","@types/lodash.mergewith":"^4.6.9","@types/node":"24.13.2","@typescript/native-preview":"7.0.0-dev.20260120.1",concurrently:"^9.2.3",esbuild:"0.28.1","fast-xml-parser":"^5.9.3",husky:"9.1.7",jiti:"2.7.0",psadk:"^1.5.1",shx:"0.4.0",tsx:"4.22.4",turbo:"^2.9.18",typescript:"5.9.3",vitest:"^4.1.9"},engines:{node:">=20.0.0"},slingVersion:"2.5.20260718-2",overrides:{postcss:"8.5.14",next:{postcss:"8.5.14"},"ip-address":"^10.1.1","@modelcontextprotocol/sdk":"^1.29.0",ai:">=5.0.52","fast-xml-parser":"^5.9.3","@aws-sdk/xml-builder":{"fast-xml-parser":"^5.9.3"},"adaptivecards-templating":{"adaptive-expressions":{"fast-xml-parser":"^5.5.8"}},picomatch:"^4.0.4","path-to-regexp":"8.4.1",router:{"path-to-regexp":"8.4.1"},minimatch:"^10.2.3",tar:"7.5.11",react:"19.1.1","react-dom":"19.1.1","@types/react":"19","@types/react-dom":"19",tailwindcss:"4.1.12",lightningcss:"1.30.2",glob:{".":"11.1.0",minimatch:"10.2.3"},prismjs:"^1.30.0",qs:"^6.15.0","@hono/node-server":"1.19.14",protobufjs:"^8.2.0","@opentelemetry/otlp-transformer":{protobufjs:"^8.2.0"},langchain:{langsmith:">=0.7.0"},hono:"4.12.18",fsevents:"^2.3.3",swiper:"^12.1.2",lodash:"^4.18.0","lodash-es":"^4.18.1",axios:"^1.15.0","ibm-cloud-sdk-core":"^5.4.11",dompurify:">=3.4.0","react-markdown-mermaid":{mermaid:"10.9.6"}},dependencies:{"@modelcontextprotocol/sdk":"^1.29.0","@mozilla/readability":"^0.6.0","compound-engineering-pi":"^0.2.4","get-east-asian-width":"^1.4.0",linkedom:"^0.18.12",turndown:"^7.2.4",unpdf:"^1.6.2"}};import Iu from"chalk";function hE(t,e){return{render(n){let i=` \u26AC _______. __ __ .__ __. _______
386
+ `;Zo.appendFileSync(co,i)}catch{}}var er=null;function rE(t){if(!t)return;let e=t.trim();if(e)return e.replace(/\/+$/,"")}var We=class t{static{this.BASE_URL="base_url"}static{this.ANALYTICS_DOMAIN="analytics_domain"}static{this.CLIENT_ID="client_id"}static{this.PROJECT_ID="project_id"}static{this.WORKSPACE_ID="workspace_id"}static{this.defaultValues={[t.BASE_URL]:"https://sapientaiproducts.com",[t.ANALYTICS_DOMAIN]:"https://slingshot.sapientaiproducts.com",[t.CLIENT_ID]:"b97fbef7-cad9-4e56-9850-39e86c8fdf61",[t.PROJECT_ID]:"fa8121c4-e2fc-48f1-9478-8949c04e13cc",[t.WORKSPACE_ID]:"6e5756eb-d7e2-4d80-ad07-9d7a51600d85"}}static{this.LOGIN_PATH="/web/v1/studio-auth/login"}static{this.EXCHANGE_PATH="/api/v1/studio-auth/auth/desktop/exchange"}static{this.REFRESH_PATH="/api/v3/auth/refreshtoken"}static{this.REFRESH_CLIENT_NAME="machine"}static{this.API_BASE_PATH="/api/v1/llm"}static{this.SAGE_EVENTS_PATH="/api/v1/ai-portal/sage_events"}static{this.APP_TOKEN_PATH="/api/v3/auth/app-token"}static{this.CONFIG_SERVICE_PATH="/api/v2/configservice/client"}static{this.APP_TOKEN_REFRESH_BUFFER_MS=60*1e3}static{this.SLINGSHOT_APP_TOKEN_ENV="SLINGSHOT_APP_TOKEN_HEADER"}static{this.TOKEN_EXPIRY_BUFFER_MS=300*1e3}static{this.SAPI="/save/api/v1"}static{this.CLIENT_NAME="desktop"}static defaults(e){return this.defaultValues[e]}static getLocalSettingsPath(){return Dm.resolve(process.cwd(),".sling","sling.settings.json")}static getGlobalSettingsPath(){return Dm.resolve(Ee(),"sling.settings.json")}static getSettingsPath(e){if(e==="local")return this.getLocalSettingsPath();if(e==="global")return this.getGlobalSettingsPath();let n=this.getLocalSettingsPath();return ci.existsSync(n)?n:this.getGlobalSettingsPath()}static getSettings(){if(!er){let i=this.getSettingsPath();try{if(ci.existsSync(i)){let o=ci.readFileSync(i,"utf-8"),r=JSON.parse(o)||{};er={...this.defaultValues,...r}}else{let o=Dm.dirname(i);ci.existsSync(o)||ci.mkdirSync(o,{recursive:!0}),ci.writeFileSync(i,JSON.stringify(this.defaultValues,null,2),"utf-8"),er={...this.defaultValues}}}catch(o){vt("Error reading/writing sling.settings.json: ",o),er={...this.defaultValues}}}let e=rE(process.env.SLINGSHOT_API_DOMAIN),n=rE(process.env.SLINGSHOT_ANALYTICS_DOMAIN);return{...er,[t.BASE_URL]:e||er[t.BASE_URL],[t.ANALYTICS_DOMAIN]:n||er[t.ANALYTICS_DOMAIN]}}static updateSettings(e,n){let i=n?.scope??"global",o=this.getSettingsPath(i);try{let r={};if(ci.existsSync(o)){let l=ci.readFileSync(o,"utf-8");r=JSON.parse(l)||{}}let s={...this.defaultValues,...r,...e},a=Dm.dirname(o);ci.existsSync(a)||ci.mkdirSync(a,{recursive:!0}),ci.writeFileSync(o,JSON.stringify(s,null,2),"utf-8"),er=null}catch(r){vt("Error updating sling.settings.json: ",r)}}static getLoginUrl(e){let n=this.getSettings(),i=new URLSearchParams({client:this.CLIENT_NAME,port:String(e.port),localState:e.localState});return e.clientId&&i.set("clientId",e.clientId),`${n[t.BASE_URL]}${this.LOGIN_PATH}?${i.toString()}`}static getExchangeUrl(){return`${this.getSettings()[t.BASE_URL]}${this.EXCHANGE_PATH}`}static getRefreshUrl(){let e=this.getSettings(),n=new URLSearchParams({client:this.REFRESH_CLIENT_NAME});return`${e[t.BASE_URL]}${this.REFRESH_PATH}?${n.toString()}`}static getApiBaseUrl(){return`${this.getSettings()[t.BASE_URL]}${this.API_BASE_PATH}`}static getSageEventsUrl(){return`${this.getSettings()[t.ANALYTICS_DOMAIN]}${this.SAGE_EVENTS_PATH}`}static getTokenExpiryBuffer(){return this.TOKEN_EXPIRY_BUFFER_MS}static getDefaultProjectId(){let e=this.getSettings();return process.env.SLINGSHOT_PROJECT_ID||e[t.PROJECT_ID]}static getDefaultWorkspaceId(){let e=this.getSettings();return process.env.SLINGSHOT_WORKSPACE_ID||e[t.WORKSPACE_ID]}static getDefaultClientId(){let e=this.getSettings();return process.env.CLIENT_ID||e[t.CLIENT_ID]}static getUserActivityUrl(){return`${this.getSettings()[t.BASE_URL]}${this.SAPI}/users/activity`}static getUserUrl(){return`${this.getSettings()[t.BASE_URL]}${this.SAPI}/users`}static getAppTokenUrl(){return`${this.getSettings()[t.BASE_URL]}${this.APP_TOKEN_PATH}`}static getConfigServiceUrl(e){let n=this.getSettings(),i=this.getDefaultClientId(),o=new URLSearchParams({keys:e});return`${n[t.BASE_URL]}${this.CONFIG_SERVICE_PATH}/${i}?${o.toString()}`}static getAppTokenRefreshBuffer(){return this.APP_TOKEN_REFRESH_BUFFER_MS}};function Cu(t){try{let e=t.split(".");if(e.length!==3)return 0;let n=JSON.parse(atob(e[1]));return n.exp?n.exp*1e3:0}catch{return 0}}function sE(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var lb="Xq7Wm2zR9pLkVbN4cD8fH3jT6yG1sA5",_G=BigInt(lb.length);function OG(t){if(t.length===0)return"";let e=0n;for(let i of t){let o=lb.indexOf(i);if(o===-1)throw new Error(`Cannot decode app_key: character "${i}" is not in the expected alphabet`);e=e*_G+BigInt(o)}let n=[];for(;e>0n;)n.unshift(Number(e&0xffn)),e>>=8n;for(let i of t)if(i===lb[0])n.unshift(0);else break;return new TextDecoder().decode(new Uint8Array(n))}var cb=new Map,Um=new Map;async function LG(t,e){let n=We.getConfigServiceUrl(t);Ge(`sling-config: fetching ${n}`);let i;try{i=await fetch(n,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${e}`}})}catch(s){let a=s instanceof Error?s.message:String(s);throw new Error(`Cannot reach config service: ${a}`)}if(!i.ok){let s=`${i.status} ${i.statusText}`;try{let a=await i.json();a.message?s=String(a.message):a.error&&(s=String(a.error))}catch{}throw new Error(`Config service request failed: ${s}`)}let r=(await i.json())?.data?.config;if(!r||typeof r!="object")throw new Error("Config service response missing data.config");return r}async function aE(t,e){let n=cb.get(t);if(n)return n;let i=Um.get(t);if(i)return i;if(!e)throw new Error("Cannot reach config service: no Slingshot user token provided");let o=LG(t,e).then(r=>(cb.set(t,r),r)).finally(()=>{Um.delete(t)});return Um.set(t,o),o}var Pl=class{static async getSlingcliConfig(e){let n=await aE("slingcli",e),i=n.slingcli;if(!i||typeof i.app_id!="string"||typeof i.app_key!="string"||!i.app_id||!i.app_key)throw vt("sling-config: missing slingcli block",n),new Error("Config service did not return slingcli.app_id / slingcli.app_key for this client");return{app_id:i.app_id,app_key:OG(i.app_key)}}static async getRemoteConfig(e,n){return aE(e,n)}static clearCache(){cb.clear(),Um=new Map}};import lE from"node:path";import tr from"node:fs";var WG="sling.app-creds.json";function ub(){return lE.resolve(Ee(),WG)}function cE(){let t=ub();if(!tr.existsSync(t))return null;try{let e=tr.readFileSync(t,"utf-8"),n=JSON.parse(e);return typeof n.app_id!="string"||typeof n.app_key!="string"||!n.app_id||!n.app_key?(vt("app-creds-store: invalid creds file, ignoring",n),null):{app_id:n.app_id,app_key:n.app_key}}catch(e){return vt("app-creds-store: failed to read creds file",e),null}}function db(t){let e=ub(),n=lE.dirname(e);try{tr.existsSync(n)||tr.mkdirSync(n,{recursive:!0});let i={...t,savedAt:Date.now()};tr.writeFileSync(e,JSON.stringify(i,null,2),{encoding:"utf-8",mode:384});try{tr.chmodSync(e,384)}catch{}Ge(`app-creds-store: persisted to ${e}`)}catch(i){vt("app-creds-store: failed to persist creds",i)}}function uE(){let t=ub();try{tr.existsSync(t)&&(tr.unlinkSync(t),Ge(`app-creds-store: cleared ${t}`))}catch(e){vt("app-creds-store: failed to clear creds file",e)}}var Nm=class extends Error{constructor(n,i){super(i);this.status=n;this.name="AppTokenHttpError"}},Mu=null,Ru=null,$m=null,Il=null;function dE(t){process.env[We.SLINGSHOT_APP_TOKEN_ENV]=`Bearer ${t}`}function FG(t){Il&&(clearTimeout(Il),Il=null);let e=t.expiresAt-Date.now();e<=0||(Il=setTimeout(()=>{Il=null,_i().catch(n=>{vt("app-token: scheduled refresh failed",n)})},e),Il.unref?.())}async function pE(t){let e=Buffer.from(`${t.app_id}:${t.app_key}`).toString("base64"),n=We.getAppTokenUrl();Ge(`app-token: minting from ${n}`);let i;try{i=await fetch(n,{method:"GET",headers:{Accept:"application/json",Authorization:`Basic ${e}`}})}catch(a){let l=a instanceof Error?a.message:String(a);throw new Error(`Cannot reach app-token service: ${l}`)}if(!i.ok){let a=`${i.status} ${i.statusText}`;try{let l=await i.text()||"";l&&(a=l)}catch{}throw new Nm(i.status,`App token request failed: ${a}`)}let o=await i.json();if(!o.app_token||typeof o.expires_in!="number")throw new Error("App token response missing app_token or expires_in");let r=We.getAppTokenRefreshBuffer(),s=Date.now()+o.expires_in*1e3-r;return Ge(`app-token: minted, expires at ${new Date(s).toISOString()}`),{token:o.app_token,expiresAt:s}}async function DG(){let t=cE();if(t)return{creds:t,fromDisk:!0};if(!Ru)throw new Error("Cannot mint app token: no on-disk app credentials and no Slingshot user token available (please /login slingshot first)");let e=await Pl.getSlingcliConfig(Ru);return db(e),{creds:e,fromDisk:!1}}async function UG(){let{creds:t,fromDisk:e}=await DG();try{return await pE(t)}catch(n){let i=n instanceof Nm&&(n.status===401||n.status===403);if(!e||!i)throw n;if(vt("app-token: disk creds rejected (likely rotated), refetching from config service",{status:n.status}),uE(),!Ru)throw new Error("Cannot rotate app credentials: on-disk creds rejected and no Slingshot user token available (please /login slingshot)");let o=await Pl.getSlingcliConfig(Ru);return db(o),await pE(o)}}async function _i(t){if(t&&(Ru=t),Mu&&Mu.expiresAt>Date.now())return dE(Mu.token),Mu.token;if($m)return(await $m).token;let e=UG().then(i=>(Mu=i,dE(i.token),FG(i),i)).finally(()=>{$m=null});return $m=e,(await e).token}var Pu=null,pb=null;typeof process<"u"&&process.versions?.node&&(pb=import("node:http").then(t=>{Pu=t.createServer}));async function $G(){if(Pu||(pb&&await pb,Pu))return Pu;throw new Error("Slingshot OAuth requires Node.js")}async function mb(t){let e=await $G(),n,i,o,r=!1,s=new Promise((u,d)=>{i=u,o=d}),a=u=>{if(!r){r=!0;try{n.close()}catch{}u()}};n=e((u,d)=>{let p=new URL(u.url||"","http://127.0.0.1"),m=p.searchParams.get("code"),g=p.searchParams.get("state"),h=p.searchParams.get("clientId"),f=p.searchParams.get("error"),b=p.searchParams.get("error_description");if(f){d.writeHead(400,{"Content-Type":"text/html"}),d.end(`<html><body><h1>Login Failed</h1><p>${b||f}</p><p>You can close this window.</p></body></html>`),a(()=>o(new Error(`Login failed: ${b||f}`)));return}if(!m||!g){d.writeHead(400,{"Content-Type":"text/html"}),d.end("<html><body><h1>Login Failed</h1><p>Missing code or state in callback.</p><p>You can close this window.</p></body></html>"),a(()=>o(new Error("Missing code or state in callback")));return}d.writeHead(200,{"Content-Type":"text/html"}),d.end("<html><body><h1>Login Successful</h1><p>You can close this window and return to your terminal.</p><script>setTimeout(()=>window.close(),3000)</script></body></html>"),a(()=>i({code:m,state:g,clientId:h||""}))}),n.on("error",u=>{a(()=>o(u))});let l=setTimeout(()=>{a(()=>o(new Error("Login timeout - no callback received within 5 minutes")))},300*1e3);return n.on("close",()=>clearTimeout(l)),t&&t.addEventListener("abort",()=>{a(()=>o(new Error("Login cancelled")))}),{port:await new Promise((u,d)=>{n.once("error",d),n.listen(0,"127.0.0.1",()=>{let p=n.address();p&&typeof p=="object"?u(p.port):d(new Error("Failed to obtain loopback server port"))})}),result:s}}async function hb(t,e){if(!t)throw new Error("Missing exchange code");if(!e)throw new Error("Missing clientId for exchange");let n=We.getExchangeUrl(),i;try{i=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json",accept:"application/json"},body:JSON.stringify({code:t,clientId:e})})}catch(r){let s=r instanceof Error?r.message:String(r);throw new Error(`Cannot reach Studio Auth: ${s}`)}if(!i.ok){let r,s=`${i.status} ${i.statusText}`;try{let a=await i.json();r=a.error?.code,a.error?.message?s=a.error.message:a.message?s=a.message:r&&(s=r)}catch{}throw r==="INVALID_CALLBACK"?new Error("Login failed: exchange code is expired, already used, or bound to a different tenant. Please log in again."):new Error(`Code exchange failed: ${s}`)}let o=await i.json();if(!o.accessToken||!o.refreshToken)throw new Error("Exchange response missing accessToken or refreshToken");return o}function BG(){return NG(16).toString("hex")}function jG(t){let e=new URL(t),n=e.searchParams.get("code"),i=e.searchParams.get("state"),o=e.searchParams.get("clientId");if(!n||!i)throw new Error("Pasted URL is missing code or state");return{code:n,state:i,clientId:o||""}}async function gb(t){let e=process.env.SLINGSHOT_TOKEN;if(e){let u=Cu(e);return Ge("Using Slingshot token from SLINGSHOT_TOKEN environment variable"),await _i(e),{refresh:"",access:e,expires:u>0?u-We.getTokenExpiryBuffer():Date.now()+10800*1e3,projectId:process.env.SLINGSHOT_PROJECT_ID,workspaceId:process.env.SLINGSHOT_WORKSPACE_ID}}let{port:n,result:i}=await mb(t.signal),o=BG(),r=We.getDefaultClientId(),s=We.getLoginUrl({port:n,localState:o,clientId:r||void 0});t.onAuth({url:s});let a;if(t.onManualCodeInput){let u=t.onManualCodeInput().then(jG);a=await Promise.race([i,u])}else a=await i;if(a.state!==o)throw new Error("CSRF check failed - state does not match localState");if(!a.clientId)throw new Error("Login callback did not include clientId");let l=await hb(a.code,a.clientId),c=Cu(l.accessToken);return await _i(l.accessToken),{refresh:l.refreshToken,access:l.accessToken,expires:c>0?c-We.getTokenExpiryBuffer():Date.now()+10800*1e3,projectId:void 0,workspaceId:void 0}}import{randomUUID as qG}from"node:crypto";async function Bm(t){if(!t.refresh)throw new Error("No refresh token available. Please login again.");let e;try{e=await _i()}catch(a){throw vt("auth/refresh: app token unavailable for refresh call",a),new Error(`Cannot refresh Slingshot token: app token unavailable (${a instanceof Error?a.message:String(a)}). Please /login slingshot.`)}let n=qG(),i={accept:"application/json",rt:t.refresh,"trace-id":n,Authorization:`Bearer ${e}`},o;try{let a=We.getRefreshUrl();o=await fetch(a,{headers:i})}catch(a){let l=a instanceof Error?a.message:String(a);throw new Error(`Cannot reach Slingshot server: ${l}`)}if(!o.ok){let a=`${o.status} ${o.statusText}`;try{let l=await o.json();l.message?a=String(l.message):l.error&&(a=String(l.error))}catch{}throw new Error(`Token refresh failed: ${a}`)}let r=await o.json();if(!r.accessToken)throw new Error("No access token in refresh response");let s=Cu(r.accessToken);try{await _i(r.accessToken)}catch(a){throw vt("auth/refresh: app token refresh failed",a),a}return{refresh:r.refreshToken||t.refresh,access:r.accessToken,expires:s>0?s-We.getTokenExpiryBuffer():Date.now()+10800*1e3,projectId:t.projectId,workspaceId:t.workspaceId}}var mE=[{id:"gpt-5.4-nano",name:"GPT-5.4 nano",baseUrl:"",reasoning:!0,thinkingLevelMap:{xhigh:"xhigh"},input:["text","image"],cost:{input:.2,output:1.25,cacheRead:.02,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,api:"openai-responses",provider:"slingshot"},{id:"gpt-4.1",name:"GPT-4.1",baseUrl:"",reasoning:!1,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:1047576,maxTokens:32768,provider:"slingshot",api:"openai-completions"},{id:"gpt-5",name:"GPT-5",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.125,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,provider:"slingshot",api:"openai-responses"},{id:"gpt-5-mini",name:"GPT-5 Mini",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:.25,output:2,cacheRead:.025,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,provider:"slingshot",api:"openai-responses"},{id:"gpt-5-nano",name:"GPT-5 Nano",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:.05,output:.4,cacheRead:.005,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,provider:"slingshot",api:"openai-responses"},{id:"gpt-5.1",name:"GPT-5.1",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:.13,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,provider:"slingshot",api:"openai-responses"},{id:"gpt-5.2",name:"GPT-5.2",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,provider:"slingshot",api:"openai-responses"},{id:"gpt-5.4-mini",name:"GPT-5.4 mini",baseUrl:"",reasoning:!0,thinkingLevelMap:{xhigh:"xhigh"},input:["text","image"],cost:{input:.75,output:4.5,cacheRead:.075,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,api:"openai-responses",provider:"slingshot"},{id:"gpt-5.4",name:"GPT-5.4",baseUrl:"",reasoning:!0,thinkingLevelMap:{xhigh:"xhigh"},input:["text","image"],cost:{input:2.5,output:15,cacheRead:.25,cacheWrite:0},contextWindow:272e3,maxTokens:128e3,api:"openai-responses",provider:"slingshot"},{id:"gpt-5.5",name:"GPT-5.5",baseUrl:"",reasoning:!0,thinkingLevelMap:{xhigh:"xhigh"},input:["text","image"],cost:{input:5,output:30,cacheRead:.5,cacheWrite:0},contextWindow:272e3,maxTokens:128e3,api:"openai-responses",provider:"slingshot"},{id:"gpt-5.2-codex",name:"GPT-5.2 Codex",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,provider:"slingshot",api:"openai-responses"},{id:"gpt-5.3-codex",name:"GPT-5.3 Codex",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:.175,cacheWrite:0},contextWindow:4e5,maxTokens:128e3,provider:"slingshot",api:"openai-responses"},{id:"claude-opus-4@20250514",name:"Claude Opus 4",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},contextWindow:2e5,maxTokens:32e3,provider:"slingshot",api:"openai-completions"},{id:"claude-sonnet-4@20250514",name:"Claude Sonnet 4",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3,provider:"slingshot",api:"openai-completions"},{id:"claude-sonnet-4-5@20250929",name:"Claude Sonnet 4.5",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:2e5,maxTokens:64e3,provider:"slingshot",api:"openai-completions"},{id:"claude-sonnet-4-6",name:"Claude Sonnet 4.6",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:64e3,provider:"slingshot",api:"openai-completions"},{id:"claude-opus-4-6",name:"Claude Opus 4.6",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:128e3,provider:"slingshot",api:"openai-completions"},{id:"o3",name:"O3",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:2,output:8,cacheRead:.5,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,provider:"slingshot",api:"openai-completions"},{id:"o3-mini",name:"o3-mini",baseUrl:"",reasoning:!0,input:["text"],cost:{input:1.1,output:4.4,cacheRead:.55,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,provider:"slingshot",api:"openai-completions"},{id:"o4-mini",name:"o4-mini",baseUrl:"",reasoning:!0,input:["text"],cost:{input:1.1,output:4.4,cacheRead:.28,cacheWrite:0},contextWindow:2e5,maxTokens:1e5,provider:"slingshot",api:"openai-completions"},{id:"gemini-2.5-flash",name:"Gemini 2.5 Flash",baseUrl:"",reasoning:!0,input:["text","image"],cost:{input:.3,output:2.5,cacheRead:.075,cacheWrite:0},contextWindow:1048576,maxTokens:65536,provider:"slingshot",api:"openai-completions"}];var jm={name:"slingshot.cli",private:!0,type:"module",workspaces:["packages/*","packages/web-ui/example","packages/coding-agent/examples/extensions/with-deps","packages/coding-agent/examples/extensions/custom-provider-anthropic","packages/coding-agent/examples/extensions/custom-provider-gitlab-duo"],scripts:{clean:"npm run clean --workspaces",build:"cd packages/tui && npm run build && cd ../ai && npm run build && cd ../agent && npm run build && cd ../coding-agent && npm run build && cd ../web-ui && npm run build",dev:'concurrently --names "ai,agent,coding-agent,web-ui,tui" --prefix-colors "cyan,yellow,red,white,green,magenta" "cd packages/ai && npm run dev" "cd packages/agent && npm run dev" "cd packages/coding-agent && npm run dev" "cd packages/web-ui && npm run dev" "cd packages/tui && npm run dev"',"dev:tsc":'concurrently --names "ai,web-ui" --prefix-colors "cyan,green" "cd packages/ai && npm run dev:tsc" "cd packages/web-ui && npm run dev:tsc"',check:"","check:browser-smoke":"","test:models":"node scripts/test-models.mjs","profile:tui":"node scripts/profile-coding-agent-node.mjs --mode tui","profile:rpc":"node scripts/profile-coding-agent-node.mjs --mode rpc",test:"npm run test --workspaces --if-present","version:patch":"npm version patch -ws --no-git-tag-version && node scripts/sync-versions.js && shx rm -rf node_modules packages/*/node_modules package-lock.json && npm install","version:minor":"npm version minor -ws --no-git-tag-version && node scripts/sync-versions.js && shx rm -rf node_modules packages/*/node_modules package-lock.json && npm install","version:major":"npm version major -ws --no-git-tag-version && node scripts/sync-versions.js && shx rm -rf node_modules packages/*/node_modules package-lock.json && npm install","version:set":"npm version -ws",prepublishOnly:"npm run clean && npm run build && npm run check",publish:"npm run prepublishOnly && npm publish -ws --access public","publish:dry":"npm run prepublishOnly && npm publish -ws --access public --dry-run","release:patch":"node scripts/release.mjs patch","release:minor":"node scripts/release.mjs minor","release:major":"node scripts/release.mjs major",prepare:"husky"},devDependencies:{"@anthropic-ai/sandbox-runtime":"0.0.57","@biomejs/biome":"2.3.15","@types/better-sqlite3":"^7.6.13","@types/lodash.mergewith":"^4.6.9","@types/node":"24.13.2","@typescript/native-preview":"7.0.0-dev.20260120.1",concurrently:"^9.2.3",esbuild:"0.28.1","fast-xml-parser":"^5.9.3",husky:"9.1.7",jiti:"2.7.0",psadk:"^1.5.1",shx:"0.4.0",tsx:"4.22.4",turbo:"^2.9.18",typescript:"5.9.3",vitest:"^4.1.9"},engines:{node:">=20.0.0"},slingVersion:"2.5.20260719-2",overrides:{postcss:"8.5.14",next:{postcss:"8.5.14"},"ip-address":"^10.1.1","@modelcontextprotocol/sdk":"^1.29.0",ai:">=5.0.52","fast-xml-parser":"^5.9.3","@aws-sdk/xml-builder":{"fast-xml-parser":"^5.9.3"},"adaptivecards-templating":{"adaptive-expressions":{"fast-xml-parser":"^5.5.8"}},picomatch:"^4.0.4","path-to-regexp":"8.4.1",router:{"path-to-regexp":"8.4.1"},minimatch:"^10.2.3",tar:"7.5.11",react:"19.1.1","react-dom":"19.1.1","@types/react":"19","@types/react-dom":"19",tailwindcss:"4.1.12",lightningcss:"1.30.2",glob:{".":"11.1.0",minimatch:"10.2.3"},prismjs:"^1.30.0",qs:"^6.15.0","@hono/node-server":"1.19.14",protobufjs:"^8.2.0","@opentelemetry/otlp-transformer":{protobufjs:"^8.2.0"},langchain:{langsmith:">=0.7.0"},hono:"4.12.18",fsevents:"^2.3.3",swiper:"^12.1.2",lodash:"^4.18.0","lodash-es":"^4.18.1",axios:"^1.15.0","ibm-cloud-sdk-core":"^5.4.11",dompurify:">=3.4.0","react-markdown-mermaid":{mermaid:"10.9.6"}},dependencies:{"@modelcontextprotocol/sdk":"^1.29.0","@mozilla/readability":"^0.6.0","better-sqlite3":"^12.11.1","compound-engineering-pi":"^0.2.4","get-east-asian-width":"^1.4.0",linkedom:"^0.18.12",turndown:"^7.2.4",unpdf:"^1.6.2"}};import Iu from"chalk";function hE(t,e){return{render(n){let i=` \u26AC _______. __ __ .__ __. _______
387
387
  \u274D \xB7 \u274D / || | | | | \\ | | / _____|
388
388
  \u2726 \u26AC \u2726 | (----\`| | | | | \\| | | | __
389
389
  \u26AC \xB7 \u26AC \u26AC \xB7 \u26AC \\ \\ | | | | | . \` | | | |_ |