const t={exports:{}};{let n=function(e){const s=String(e?.retire_stage||"").trim();return s===a||s===u?s:i},_=function(e){return n(e)===u},l=function(e){return n(e)===a},d=function(e){return String(e?.retire_stage||"").trim()===R},f=function(e){return!!e?.is_new&&!d(e)},T=function(e){const s=String(e||"").trim();if(!s)return"";const r=s.match(/^(\d{4})-(\d{2})-(\d{2})/);return r?`${r[1]}-${r[2]}-${r[3]}`:""},x=function(e,s){const r=n(e);if(r===i)return"";const o=String(s||"").toLowerCase().startsWith("en");if(r===u){const c=T(e?.retired_at);return o?c?`This model was retired on ${c}.`:"This model has been retired.":c?`该模型已于 ${c} 下线。`:"该模型已下线。"}const E=T(e?.retired_at);return o?E?`This model will be retired on ${E}.`:"This model is scheduled for retirement.":E?`该模型将于 ${E} 下线。`:"该模型即将下线。"},I=function(e,s){const r=n(e);if(r===i)return"";const o=String(s||"").toLowerCase().startsWith("en");return r===u?o?"Requests return 404 model_retired.":"请求会返回 404 model_retired。":o?"Calls still work until then.":"在此之前调用不受影响。"},A=function(e){return String(e||"").toLowerCase().startsWith("en")?"All model retirements":"查看全部下线模型"},S=function(e){return String(e?.successor_model||"").trim()},D=function(e,s){const r=n(e);if(r===i)return null;const o=String(s||"").toLowerCase().startsWith("en");return r===u?o?{before:" Use ",after:" instead."}:{before:" 请改用 ",after:"。"}:o?{before:" Plan to migrate to ",after:"."}:{before:" 建议提前迁移至 ",after:"。"}};const B=t,i="active",a="deprecated",u="retired",R="coming_soon",g="/models/retirements";B.exports={RETIRE_STAGE_ACTIVE:i,RETIRE_STAGE_DEPRECATED:a,RETIRE_STAGE_RETIRED:u,RETIRE_STAGE_COMING_SOON:R,retireStageOf:n,isRetiredModel:_,isDeprecatedModel:l,isComingSoonModel:d,showNewBadge:f,retireDateText:T,retireNoticeText:x,retireConsequenceText:I,RETIRE_INDEX_PATH:g,retireIndexLinkText:A,successorModelOf:S,successorNoticeParts:D}}const C=t.exports.RETIRE_STAGE_ACTIVE;t.exports.RETIRE_STAGE_DEPRECATED;const m=t.exports.RETIRE_STAGE_RETIRED;t.exports.RETIRE_STAGE_COMING_SOON;const p=t.exports.retireStageOf,N=t.exports.isRetiredModel,M=t.exports.isDeprecatedModel,h=t.exports.isComingSoonModel,w=t.exports.showNewBadge;t.exports.retireDateText;const G=t.exports.retireNoticeText,O=t.exports.retireConsequenceText,F=t.exports.RETIRE_INDEX_PATH,P=t.exports.retireIndexLinkText,L=t.exports.successorModelOf,b=t.exports.successorNoticeParts;export{m as R,b as a,C as b,G as c,O as d,P as e,h as f,w as g,F as h,N as i,M as j,p as r,L as s};
