import{p as s,b as o}from"./capabilities-CQ-mRPPK.js";async function c(){try{const t=await s();o(t.language)}catch{o("auto")}}const i={"gpt-4o":128e3,"gpt-4o-mini":128e3,"gpt-4-turbo":128e3,"gpt-5":256e3,o1:2e5,"o1-mini":128e3,"o1-preview":128e3,"o3-mini":2e5,"claude-3-5-sonnet-latest":2e5,"claude-3-5-sonnet-20241022":2e5,"claude-3-5-haiku-latest":2e5,"claude-3-opus-latest":2e5,"claude-opus-4":2e5,"claude-opus-4-1":2e5,"claude-sonnet-4-5":1e6,"deepseek-chat":65536,"deepseek-reasoner":65536,"deepseek-v3":65536,"deepseek-v4":128e3,"qwen-max":32768,"qwen-plus":131072,"qwen-turbo":1008e3,"qwen3-max":1e6,"kimi-k2-thinking":256e3,"kimi-k2-0905-preview":256e3,"kimi-k2-turbo-preview":256e3,"MiniMax-M2":204800},u=32768;function p(t,e){return typeof e=="number"&&e>0?e:i[t]??u}function r(t){if(!t)return 0;let e=0;for(let a=0;a<t.length;a++){const n=t.charCodeAt(a);n>=19968&&n<=40959?e+=.6:n>=12352&&n<=12543?e+=.5:e+=.25}return Math.ceil(e)}export{i as M,r as e,p as g,c as l};
