@kenz1117/dsh-ui-usage-billing 1.2.4 → 1.2.5
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.
- package/lib/client.js +1 -1
- package/package.json +3 -2
package/lib/client.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
window.__ModuleLoader__.load({id:`@kenz1117/dsh-ui-usage-billing`,factory:e=>{var t={exports:{}},n=t.exports;Object.defineProperty(n,Symbol.toStringTag,{value:`Module`});let r=e("react"),i=e("react-dom"),a=e("@deepseek-ai/dsh-client-ui-primitives"),o=e("react/jsx-runtime"),s=e("@deepseek-ai/dsh-client-store");function c(e){return e}function l(e){return c(e)}function u(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=u(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function d(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=u(e))&&(r&&(r+=` `),r+=t);return r}let f={mode:`combined`,targets:[]},p=`dsh.ui-usage-billing.float`;function m(){try{let e=localStorage.getItem(p);if(e===null)return{...f,targets:[...f.targets]};let t=JSON.parse(e);return{mode:t.mode===`subscription`?`subscription`:`combined`,targets:Array.isArray(t.targets)?t.targets.filter(e=>typeof e==`string`):[]}}catch{return{...f,targets:[...f.targets]}}}function h(e){try{localStorage.setItem(p,JSON.stringify(e))}catch{}}let g={metric:`money`},_=`dsh.ui-usage-billing.card`;function v(){try{let e=localStorage.getItem(_);return e===null?{...g}:{metric:JSON.parse(e).metric===`tokens`?`tokens`:`money`}}catch{return{...g}}}function y(e){try{localStorage.setItem(_,JSON.stringify(e))}catch{}}let b={hideUnidentified:!0},ee=`dsh.ui-usage-billing.sites`;function x(){try{let e=localStorage.getItem(ee);return e===null?{...b}:{hideUnidentified:JSON.parse(e).hideUnidentified!==!1}}catch{return{...b}}}function S(e){try{localStorage.setItem(ee,JSON.stringify(e))}catch{}}let C={show:!0,position:`below`},w=`dsh.ui-usage-billing.livecost`,T=`dsh.ui-usage-billing.livecost-pref`;function E(){try{let e=localStorage.getItem(w);if(e===null)return{...C};let t=JSON.parse(e);return{show:t.show!==!1,position:t.position===`above`||t.position===`toolbar`?t.position:`below`}}catch{return{...C}}}function D(e){try{localStorage.setItem(w,JSON.stringify(e))}catch{}}let O=`dsh.ui-usage-billing.prices`;function k(){try{let e=localStorage.getItem(O);if(e===null)return[];let t=JSON.parse(e);if(t===null)return[];let n=[],r=(e,t)=>{if(typeof t!=`object`||!t)return;let r=t,i=Number(r.input),a=Number(r.cacheHit),o=Number(r.output);if(![i,a,o].every(e=>Number.isFinite(e)&&e>=0))return;let s=r.offPeak,c;if(typeof s==`object`&&s){let e=s,t=Number(e.input),n=Number(e.cacheHit),r=Number(e.output);[t,n,r].every(e=>Number.isFinite(e)&&e>=0)&&(c={input:t,cacheHit:n,output:r})}n.push({key:e,...typeof r.origin==`string`&&r.origin!==``?{origin:r.origin}:{},input:i,cacheHit:a,output:o,...c===void 0?{}:{offPeak:c},...r.currency===`USD`?{currency:`USD`}:{}})};if(Array.isArray(t))for(let e of t){if(typeof e!=`object`||!e)continue;let t=e;typeof t.key==`string`&&t.key!==``&&r(t.key,e)}else if(typeof t==`object`)for(let[e,n]of Object.entries(t))r(e,n);return n}catch{return[]}}function A(e){try{localStorage.setItem(O,JSON.stringify(e))}catch{}}let te={metric:`ttft`},j=`dsh.ui-usage-billing.perf`;function M(){try{let e=localStorage.getItem(j);if(e===null)return{...te};let t=JSON.parse(e);return{metric:t.metric===`tps`?`tps`:`ttft`,...Array.isArray(t.models)?{models:t.models.filter(e=>typeof e==`string`)}:{}}}catch{return{...te}}}function ne(e){try{localStorage.setItem(j,JSON.stringify(e))}catch{}}let N=`@kenz1117/dsh-ui-usage-billing/UsageBilling.module.css`;if(typeof document<`u`&&document.querySelector(`style[data-plugin-css=`+JSON.stringify(N)+`]`)===null){let e=document.createElement(`style`);e.dataset.plugin=`@kenz1117/dsh-ui-usage-billing`,e.dataset.pluginCss=N,e.textContent=`.KFXqYa_railButton{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);width:36px;height:36px;color:var(--dsw-alias-label-secondary);cursor:pointer;border-radius:8px;flex:none;justify-content:center;align-items:center;padding:0;transition:border-color .16s,color .16s;display:flex}.KFXqYa_railButton:hover,.KFXqYa_railButton:focus-visible{border-color:var(--dsw-static-blue-500);color:var(--dsw-static-blue-500);outline:none}.KFXqYa_railButton svg{stroke-width:2px;width:18px;height:18px}.KFXqYa_trigger{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);width:100%;min-width:0;color:var(--dsw-alias-label-primary);cursor:pointer;text-align:left;border-radius:14px;align-items:center;gap:10px;padding:9px 12px;transition:border-color .16s,transform .16s,box-shadow .16s;display:flex;position:relative;overflow:hidden;box-shadow:0 1px 2px #0000000a}.KFXqYa_trigger:hover,.KFXqYa_trigger:focus-visible{border-color:var(--dsw-static-blue-500);box-shadow:0 6px 18px -8px color-mix(in srgb, var(--dsw-static-blue-500) 45%, transparent);outline:none;transform:translateY(-1px)}.KFXqYa_triggerIcon{border:1px solid var(--dsw-alias-border-l1);width:32px;height:32px;color:var(--dsw-alias-label-secondary);opacity:.8;border-radius:8px;flex:none;justify-content:center;align-items:center;display:inline-flex}.KFXqYa_triggerIcon svg{stroke-width:2px;width:16px;height:16px}.KFXqYa_triggerMain{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.KFXqYa_triggerPrimary{align-items:baseline;gap:5px;min-width:0;display:inline-flex}.KFXqYa_triggerLabel{color:var(--dsw-alias-label-tertiary);white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:11px;line-height:15px;overflow:hidden}.KFXqYa_triggerYen{color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;font-size:12px;font-weight:600;line-height:16px}.KFXqYa_triggerMetric{color:var(--dsw-alias-label-primary);letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:20px;font-weight:700;line-height:24px;overflow:hidden}.KFXqYa_triggerSub{color:var(--dsw-alias-label-tertiary);white-space:nowrap;text-overflow:ellipsis;font-size:10px;line-height:14px;overflow:hidden}.KFXqYa_triggerSpark{flex:none;align-items:flex-end;gap:2px;height:20px;display:flex}.KFXqYa_triggerSparkBar,.KFXqYa_triggerSparkHot{background:var(--dsw-static-blue-500);opacity:.6;border-radius:1px 1px 0 0;width:3px}.KFXqYa_triggerSparkHot{opacity:1}.KFXqYa_triggerWrap{flex:auto;width:100%;min-width:96px;max-width:100%;display:block;position:relative;container:KFXqYa_billing-trigger/inline-size}@container KFXqYa_billing-trigger (width<=200px){.KFXqYa_trigger{gap:6px;padding:8px 10px}.KFXqYa_triggerSpark{display:none}}@container KFXqYa_billing-trigger (width<=170px){.KFXqYa_triggerSub,.KFXqYa_triggerLabel{display:none}}@container KFXqYa_billing-trigger (width<=110px){.KFXqYa_triggerIcon,.KFXqYa_triggerSpark,.KFXqYa_triggerSub,.KFXqYa_triggerLabel{display:none}.KFXqYa_trigger{justify-content:center;padding:8px 6px}}.KFXqYa_triggerPop{box-sizing:border-box;border:1px solid color-mix(in srgb, var(--dsw-alias-border-l1) 80%, transparent);background:color-mix(in srgb, var(--dsw-alias-bg-layer-3) 72%, transparent);-webkit-backdrop-filter:blur(14px)saturate(1.3);width:256px;box-shadow:0 12px 32px #00000029, inset 0 1px 0 color-mix(in srgb, var(--dsw-alias-label-primary) 8%, transparent);opacity:0;visibility:hidden;pointer-events:none;z-index:2000;border-radius:14px;flex-direction:column;gap:5px;padding:10px 12px;transition:opacity .16s,transform .16s,visibility 0s linear .16s;display:flex;position:fixed;top:0;left:0;overflow:hidden;transform:translateY(calc(4px - 100%))}.KFXqYa_triggerPop,.KFXqYa_triggerPop *{box-sizing:border-box}.KFXqYa_triggerPop:before{content:"";background:linear-gradient(90deg, transparent 0%, var(--dsw-static-amber-500) 30%, var(--dsw-alias-label-primary) 50%, var(--dsw-static-amber-500) 70%, transparent 100%);opacity:.9;pointer-events:none;background-size:200% 100%;height:1.5px;animation:4s ease-in-out infinite KFXqYa_subscriptionGoldFlow;position:absolute;top:0;left:0;right:0}.KFXqYa_triggerPopShown{opacity:1;visibility:visible;transition:opacity .16s,transform .16s,visibility linear;transform:translateY(-100%)}.KFXqYa_popHead{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.KFXqYa_popTitle{color:var(--dsw-alias-label-primary);font-size:13px;font-weight:700;line-height:18px}.KFXqYa_metricGrid{grid-template-columns:repeat(3,1fr);gap:10px 8px;display:grid}.KFXqYa_metricCell{flex-direction:column;gap:2px;min-width:0;display:flex}.KFXqYa_metricLabel{color:var(--dsw-alias-label-tertiary);font-size:10px;line-height:14px}.KFXqYa_metricValue{color:var(--dsw-alias-label-primary);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px;font-weight:700;line-height:16px}.KFXqYa_metricValuePrimary{color:var(--dsw-static-amber-500)}.KFXqYa_metricValueSuccess{color:var(--dsw-static-green-500)}.KFXqYa_popModel{border-top:1px solid var(--dsw-alias-border-l1);flex-direction:column;gap:6px;padding-top:10px;display:flex}.KFXqYa_popModelLabel{color:var(--dsw-alias-label-tertiary);font-size:10px;line-height:14px}.KFXqYa_popModelRow{align-items:center;gap:8px;min-width:0;display:flex}.KFXqYa_popDot{border-radius:999px;flex:none;width:6px;height:6px}.KFXqYa_popDotDirect{background:var(--dsw-static-green-500)}.KFXqYa_popDotSub{background:var(--dsw-static-amber-500)}.KFXqYa_popDotNeutral{background:var(--dsw-alias-label-tertiary)}.KFXqYa_popTagPrimary,.KFXqYa_popTagSub{white-space:nowrap;border-radius:5px;flex:none;align-items:center;height:18px;padding:0 6px;font-size:10px;font-weight:600;line-height:14px;display:inline-flex}.KFXqYa_popTagPrimary{background:color-mix(in srgb, var(--dsw-static-blue-500) 14%, transparent);color:var(--dsw-static-blue-500)}.KFXqYa_popTagSub{background:color-mix(in srgb, var(--dsw-static-amber-500) 18%, transparent);color:var(--dsw-static-amber-500)}.KFXqYa_popModelName{color:var(--dsw-alias-label-secondary);text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:500;line-height:16px;overflow:hidden}.KFXqYa_popModelStatus{color:var(--dsw-alias-label-primary);font-variant-numeric:tabular-nums;white-space:nowrap;margin-left:auto;font-size:11px;font-weight:600;line-height:16px}.KFXqYa_popModelStatusLow{color:var(--dsw-static-red-500)}.KFXqYa_dashboardModal{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);border-radius:14px;width:min(760px,100vw - 48px);max-height:min(760px,88vh);animation:.18s ease-out KFXqYa_dashboardIn;box-shadow:0 12px 32px -12px #0000002e,0 2px 8px #0000000f}@keyframes KFXqYa_dashboardIn{0%{opacity:0;transform:translateY(8px)scale(.98)}to{opacity:1;transform:none}}div[role=presentation]:has(>.dsh-billing-modal)>div[aria-hidden=true]:first-child{backdrop-filter:blur(8px)saturate(1.25)}.KFXqYa_dashboard{flex-direction:column;width:100%;max-height:min(760px,88vh);display:flex}.KFXqYa_dashboardHead{border-bottom:1px solid var(--dsw-alias-border-l1);justify-content:space-between;align-items:center;gap:12px;padding:12px 18px;display:flex}.KFXqYa_dashboardTitle{color:var(--dsw-alias-label-primary);margin:0;font-size:14px;font-weight:600;line-height:20px}.KFXqYa_dashboardSubtitle{color:var(--dsw-alias-label-caption);margin:2px 0 0;font-size:11px;line-height:16px}.KFXqYa_closeButton{border:1px solid var(--dsw-alias-border-l1);width:32px;height:32px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border-radius:8px;flex:none;justify-content:center;align-items:center;transition:background-color .14s,color .14s;display:inline-flex}.KFXqYa_closeButton:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.KFXqYa_closeButton svg{stroke-width:2px;width:16px;height:16px}.KFXqYa_dashboardBody{flex-direction:column;gap:14px;padding:16px 24px 24px;display:flex;overflow-y:auto}.KFXqYa_modalFooter{border-top:1px solid var(--dsw-alias-border-l1);color:var(--dsw-alias-label-tertiary);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding:8px 18px;font-size:11px;line-height:16px;display:flex}.KFXqYa_tabNav{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);border-radius:10px;align-items:center;gap:4px;margin:14px 24px 0;padding:4px;display:flex}.KFXqYa_tabButton{color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;border-radius:7px;padding:6px 14px;font-size:13px;font-weight:500;line-height:20px;transition:background-color .16s,color .16s}.KFXqYa_tabButton:hover,.KFXqYa_tabButton:focus-visible{color:var(--dsw-alias-label-primary);background:color-mix(in srgb, var(--dsw-alias-bg-layer-3) 62%, transparent);outline:none}.KFXqYa_tabButtonActive,.KFXqYa_tabButtonActive:hover,.KFXqYa_tabButtonActive:focus-visible{background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);font-weight:600;box-shadow:0 1px 3px #0000001f}.KFXqYa_tabPanel{flex-direction:column;gap:14px;animation:.14s ease-out KFXqYa_tabPanelIn;display:flex}@keyframes KFXqYa_tabPanelIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.KFXqYa_reconcileNotice{border:1px solid color-mix(in srgb, var(--dsw-alias-border-l1) 78%, transparent);background:color-mix(in srgb, var(--dsw-alias-bg-layer-2) 62%, transparent);color:var(--dsw-alias-label-secondary);border-radius:10px;align-items:flex-start;gap:10px;padding:10px 12px;font-size:12px;line-height:1.55;display:flex}.KFXqYa_reconcileIcon{color:var(--dsw-alias-label-tertiary);flex:none;margin-top:1px;display:inline-flex}.KFXqYa_reconcileText{flex:1}.KFXqYa_reconcileDismiss{color:var(--dsw-alias-label-tertiary);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:6px;flex:none;padding:2px 8px;font-size:12px;line-height:1.4;transition:color .15s,background-color .15s}.KFXqYa_reconcileDismiss:hover{color:var(--dsw-alias-label-primary);background:color-mix(in srgb, var(--dsw-alias-label-primary) 8%, transparent)}.KFXqYa_hero{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);border-radius:10px;flex-direction:column;gap:12px;padding:14px 16px;display:flex;position:relative;overflow:hidden}.KFXqYa_heroTop{justify-content:space-between;align-items:center;gap:24px;display:flex}.KFXqYa_heroMain{flex-direction:column;gap:2px;min-width:0;display:flex}.KFXqYa_heroLabel{color:var(--dsw-alias-label-tertiary);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap;font-size:10px;font-weight:500;line-height:14px}.KFXqYa_heroReadout{align-items:baseline;gap:4px;display:flex}.KFXqYa_heroCurrency{letter-spacing:-.01em;color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;font-size:15px;font-weight:600;line-height:20px}.KFXqYa_heroValue{letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--dsw-alias-label-primary);font-size:28px;font-weight:650;line-height:34px}.KFXqYa_heroMeta{color:var(--dsw-alias-label-caption);white-space:nowrap;margin-top:2px;font-size:11px;line-height:15px}.KFXqYa_heroGauge{flex:none;width:72px;height:72px;position:relative}.KFXqYa_heroGaugeSvg{width:100%;height:100%;display:block;transform:rotate(-90deg)}.KFXqYa_heroGaugeTrack{fill:none;stroke:var(--dsw-alias-bg-module-platform);stroke-width:7px}.KFXqYa_heroGaugeArc{fill:none;stroke:var(--dsw-static-blue-500);stroke-width:7px;stroke-linecap:round;transition:stroke-dasharray .26s}.KFXqYa_heroGaugeArcOver{stroke:var(--dsw-static-red-500)}.KFXqYa_heroGaugeCenter{flex-direction:column;justify-content:center;align-items:center;gap:1px;display:flex;position:absolute;inset:0}.KFXqYa_heroGaugePct{letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--dsw-alias-label-primary);font-size:14px;font-weight:700;line-height:18px}.KFXqYa_heroGaugePctOver{color:var(--dsw-static-red-500)}.KFXqYa_heroGaugeLabel{color:var(--dsw-alias-label-tertiary);font-size:9px;line-height:12px}.KFXqYa_heroBudget{border-top:1px solid var(--dsw-alias-border-l1);align-items:center;gap:14px;padding-top:14px;display:flex}.KFXqYa_heroBudgetLabel{color:var(--dsw-alias-label-secondary);white-space:nowrap;flex:none;font-size:11px;line-height:16px}.KFXqYa_heroBudgetTrack{background:var(--dsw-alias-border-l1);border-radius:999px;flex:1;min-width:0;height:6px;overflow:hidden}.KFXqYa_heroBudgetFill{background:var(--dsw-static-blue-500);border-radius:999px;height:100%;transition:width .22s}.KFXqYa_heroBudgetFillOver{background:var(--dsw-static-red-500)}.KFXqYa_heroBudgetValue{color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;white-space:nowrap;flex:none;font-size:11px;line-height:16px}.KFXqYa_heroSide{border-top:1px solid var(--dsw-alias-border-l1);align-items:stretch;padding-top:12px;display:flex}.KFXqYa_heroSideItem{border-left:1px solid var(--dsw-alias-border-l1);flex-direction:column;flex:1;gap:2px;min-width:0;padding-left:14px;display:flex}.KFXqYa_heroSideItem:first-child{border-left:none;padding-left:0}.KFXqYa_heroSideLabel{color:var(--dsw-alias-label-tertiary);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap;font-size:10px;font-weight:500;line-height:13px}.KFXqYa_heroSideValue{color:var(--dsw-alias-label-primary);font-variant-numeric:tabular-nums;letter-spacing:-.01em;white-space:nowrap;align-items:baseline;gap:6px;font-size:15px;font-weight:600;line-height:20px;display:inline-flex}.KFXqYa_heroSideSpacer{flex:1;display:block}.KFXqYa_delta{font-variant-numeric:tabular-nums;border-radius:999px;align-items:center;gap:2px;margin-left:6px;padding:1px 7px;font-size:10.5px;font-weight:600;line-height:16px;display:inline-flex}.KFXqYa_deltaUp{color:var(--dsw-static-green-500);background:color-mix(in srgb, var(--dsw-static-green-500) 12%, transparent)}.KFXqYa_deltaDown{color:var(--dsw-static-red-500);background:color-mix(in srgb, var(--dsw-static-red-500) 12%, transparent)}.KFXqYa_unpricedHint{border:1px solid color-mix(in srgb, var(--dsw-static-amber-500) 30%, transparent);background:color-mix(in srgb, var(--dsw-static-amber-500) 8%, transparent);color:var(--dsw-static-amber-500);border-radius:8px;align-items:center;padding:8px 12px;font-size:11.5px;font-weight:500;line-height:17px;display:flex}.KFXqYa_kpiGrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.KFXqYa_kpiTile{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);border-radius:10px;flex-direction:column;gap:2px;padding:10px 12px;transition:border-color .16s;display:flex;position:relative;overflow:hidden}.KFXqYa_kpiTile:hover{border-color:var(--dsw-alias-border-l2)}.KFXqYa_kpiLabel{color:var(--dsw-alias-label-tertiary);text-transform:uppercase;letter-spacing:.06em;font-size:10px;font-weight:500;line-height:13px}.KFXqYa_kpiValue{color:var(--dsw-alias-label-primary);font-variant-numeric:tabular-nums;letter-spacing:-.01em;font-size:16px;font-weight:650;line-height:22px}.KFXqYa_kpiGreen{color:var(--dsw-static-green-500)}.KFXqYa_kpiDetail{color:var(--dsw-alias-label-caption);white-space:nowrap;text-overflow:ellipsis;font-size:10.5px;line-height:14px;overflow:hidden}.KFXqYa_panel{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);border-radius:10px;flex-direction:column;gap:8px;padding:12px 14px;transition:border-color .16s;display:flex}.KFXqYa_panelHead{justify-content:space-between;align-items:baseline;gap:10px;display:flex}.KFXqYa_panelHeadControls{align-items:center;gap:8px;display:inline-flex}.KFXqYa_panelTitle{letter-spacing:-.005em;color:var(--dsw-alias-label-primary);margin:0;font-size:14px;font-weight:600;line-height:20px}.KFXqYa_panelHint{color:var(--dsw-alias-label-caption);white-space:nowrap;font-size:11px;line-height:16px}.KFXqYa_rangeToggle{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);border-radius:8px;gap:2px;padding:2px;display:inline-flex}.KFXqYa_rangeButton{color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;border-radius:6px;padding:2px 8px;font-size:11px;line-height:16px;transition:background-color .14s,color .14s}.KFXqYa_rangeButtonActive{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary);font-weight:600}.KFXqYa_exportBar{justify-content:flex-end;align-items:center;gap:8px;display:flex}.KFXqYa_exportLabel{color:var(--dsw-alias-label-caption);font-size:11px;line-height:16px}.KFXqYa_exportButton{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-secondary);cursor:pointer;border-radius:999px;padding:4px 12px;font-size:11.5px;line-height:16px;transition:border-color .16s,color .16s,background-color .16s}.KFXqYa_exportButton:hover,.KFXqYa_exportButton:focus-visible{border-color:var(--dsw-alias-border-l2);color:var(--dsw-alias-label-primary);outline:none}.KFXqYa_shareTrack{background:var(--dsw-alias-bg-module-platform);border-radius:999px;height:10px;display:flex;overflow:hidden}.KFXqYa_shareSeg{height:100%;transition:width .2s}.KFXqYa_shareSegPeak{background:var(--dsw-static-blue-500)}.KFXqYa_shareSegOff{background:color-mix(in srgb, var(--dsw-static-blue-500) 25%, var(--dsw-alias-bg-module-platform))}.KFXqYa_shareSegUser{background:var(--dsw-static-blue-500)}.KFXqYa_shareSegAssistant{background:var(--dsw-static-green-500)}.KFXqYa_shareSegTool{background:var(--dsw-static-amber-500)}.KFXqYa_shareLegend{align-items:center;gap:16px;display:flex}.KFXqYa_shareItem{color:var(--dsw-alias-label-secondary);align-items:baseline;gap:6px;font-size:12px;line-height:17px;display:inline-flex}.KFXqYa_bucketCost{align-items:baseline;gap:3px;display:inline-flex}.KFXqYa_bucketOfficial{color:var(--dsw-static-blue-500);font-weight:600}.KFXqYa_bucketSep{color:var(--dsw-alias-label-dimmed)}.KFXqYa_bucketThird{color:var(--dsw-alias-label-secondary)}.KFXqYa_shareDot{border-radius:50%;flex:none;align-self:center;width:8px;height:8px}.KFXqYa_shareValue{color:var(--dsw-alias-label-primary);font-variant-numeric:tabular-nums;font-weight:600}.KFXqYa_budgetInput{width:64px;color:var(--dsw-alias-label-primary);font-variant-numeric:tabular-nums;text-align:right;background:0 0;border:none;padding:0;font-size:12px;line-height:16px}.KFXqYa_budgetInput:focus-visible{outline:none}.KFXqYa_switch{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-module-platform);cursor:pointer;border-radius:999px;flex:none;width:30px;height:17px;padding:0;transition:background-color .16s,border-color .16s;position:relative}.KFXqYa_switchOn{border-color:var(--dsw-alias-border-l1);background:var(--dsw-alias-label-primary)}.KFXqYa_switchKnob{background:var(--dsw-static-neutral-bluish-00);border-radius:50%;width:11px;height:11px;transition:transform .16s;position:absolute;top:2px;left:2px}.KFXqYa_switchOn .KFXqYa_switchKnob{transform:translate(13px)}.KFXqYa_budgetFillWarn{background:var(--dsw-static-amber-500)}.KFXqYa_budgetFillOver{background:var(--dsw-static-red-500);animation:1.6s ease-in-out infinite KFXqYa_budgetOverPulse}@keyframes KFXqYa_budgetOverPulse{50%{opacity:.55}}.KFXqYa_chartWrap{width:100%;position:relative}.KFXqYa_chartSvg{width:100%;height:auto;display:block}.KFXqYa_chartEmpty{height:140px;color:var(--dsw-alias-label-caption);justify-content:center;align-items:center;font-size:13px;display:flex}.KFXqYa_emptyRow{text-align:center;color:var(--dsw-alias-label-caption);padding:28px 0;font-size:13px}.KFXqYa_chartGrid{stroke:var(--dsw-alias-border-l1);stroke-width:1px}.KFXqYa_chartAxisLabel{fill:var(--dsw-alias-label-tertiary);font-size:10px}.KFXqYa_chartBar{fill:var(--dsw-static-blue-500);opacity:.7}.KFXqYa_chartBar:hover{opacity:1}.KFXqYa_chartStack{stroke:var(--dsw-alias-bg-layer-1);stroke-width:.75px}.KFXqYa_chartStack:hover{opacity:.9}.KFXqYa_chartLine{stroke:var(--dsw-static-blue-500);stroke-width:2px;stroke-linecap:round;stroke-linejoin:round}.KFXqYa_chartCrosshair{stroke:var(--dsw-alias-label-dimmed);stroke-width:1px;stroke-dasharray:3 3}.KFXqYa_chartTooltip{pointer-events:none;z-index:2;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);box-shadow:none;white-space:nowrap;border-radius:8px;padding:8px 10px;position:absolute;transform:translate(-50%,calc(-100% - 10px))}.KFXqYa_chartTooltipAlignRight{transform:translate(calc(-100% - 8px),calc(-100% - 10px))}.KFXqYa_chartTooltipAlignLeft{transform:translate(8px,calc(-100% - 10px))}.KFXqYa_chartTooltipDate{color:var(--dsw-alias-label-primary);margin-bottom:3px;font-size:11px;font-weight:600}.KFXqYa_chartTooltipRow{color:var(--dsw-alias-label-secondary);align-items:center;gap:5px;font-size:11px;line-height:17px;display:flex}.KFXqYa_chartTooltipRow strong{color:var(--dsw-alias-label-primary);font-variant-numeric:tabular-nums;font-weight:600}.KFXqYa_chartTooltipHead{justify-content:space-between;align-items:baseline;gap:14px;margin-bottom:3px;display:flex}.KFXqYa_chartTooltipHead .KFXqYa_chartTooltipDate{margin-bottom:0}.KFXqYa_chartTooltipHead strong{color:var(--dsw-alias-label-primary);font-variant-numeric:tabular-nums;font-size:11px;font-weight:600}.KFXqYa_chartTooltipSplit{justify-content:space-between;gap:14px}.KFXqYa_chartTooltipLabel{align-items:center;gap:5px;display:flex}.KFXqYa_chartTooltipModelDetail{color:var(--dsw-alias-label-caption);font-variant-numeric:tabular-nums;margin:-2px 0 4px 13px;font-size:10.5px;line-height:14px}.KFXqYa_chartBarPlaceholder{fill:color-mix(in srgb, var(--dsw-alias-label-secondary) 30%, transparent)}.KFXqYa_chartLegendLine{background:var(--dsw-static-blue-500);border-radius:2px;width:10px;height:3px;display:inline-block}.KFXqYa_chartLegendBar{background:var(--dsw-static-blue-500);opacity:.5;border-radius:2px;width:7px;height:7px;display:inline-block}.KFXqYa_chartTooltipSwatch{border-radius:3px;flex:none;width:8px;height:8px;display:inline-block}.KFXqYa_chartLegend{color:var(--dsw-alias-label-tertiary);justify-content:flex-end;gap:14px;margin-top:2px;font-size:11px;display:flex}.KFXqYa_chartLegend span{align-items:center;gap:5px;display:inline-flex}.KFXqYa_chartLegendItem{font:inherit;color:inherit;cursor:pointer;background:0 0;border:none;align-items:center;gap:5px;padding:0;transition:color .12s;display:inline-flex}.KFXqYa_chartLegendItem:hover{color:var(--dsw-alias-label-secondary)}.KFXqYa_chartLegendItemActive{color:var(--dsw-alias-label-primary);font-weight:600}.KFXqYa_perfBar{align-items:center;margin:10px 0 2px;display:flex}.KFXqYa_perfChips{flex-wrap:wrap;gap:6px;margin:6px 0 2px;display:flex}.KFXqYa_perfChip{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-secondary);cursor:pointer;border-radius:999px;align-items:center;gap:5px;padding:2px 9px;font-size:11px;line-height:16px;transition:border-color .12s,color .12s,opacity .12s;display:inline-flex}.KFXqYa_perfChip:hover{color:var(--dsw-alias-label-primary)}.KFXqYa_perfChipOff{opacity:.45}.KFXqYa_perfChipDot{border-radius:3px;flex:none;width:8px;height:8px;display:inline-block}.KFXqYa_chartHoverDot{stroke:var(--dsw-alias-bg-layer-2);stroke-width:1.5px}.KFXqYa_tableScroll{border:1px solid var(--dsw-alias-border-l1);--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);border-radius:12px;overflow:auto}.KFXqYa_ubAlert{border:1px solid color-mix(in srgb, var(--dsw-static-blue-500) 30%, transparent);background:color-mix(in srgb, var(--dsw-static-blue-500) 8%, transparent);border-radius:10px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;font-size:12px;line-height:17px;display:flex}.KFXqYa_ubAlertLeft{align-items:center;gap:8px;display:inline-flex}.KFXqYa_ubRate{color:var(--dsw-alias-label-primary);font-variant-numeric:tabular-nums;font-weight:600}.KFXqYa_ubAlertNote{color:var(--dsw-alias-label-secondary);margin:0}.KFXqYa_ubTag,.KFXqYa_ubTagSuccess,.KFXqYa_ubTagNeutral,.KFXqYa_ubTagAlert,.KFXqYa_ubTagPromo{white-space:nowrap;border-radius:999px;align-items:center;height:18px;padding:0 7px;font-size:10px;font-weight:600;line-height:14px;display:inline-flex}.KFXqYa_ubTagSuccess{background:color-mix(in srgb, var(--dsw-static-green-500) 14%, transparent);color:var(--dsw-static-green-500)}.KFXqYa_ubTagNeutral{background:var(--dsw-alias-bg-layer-3);color:var(--dsw-alias-label-secondary)}.KFXqYa_ubTagAlert{background:color-mix(in srgb, var(--dsw-static-amber-500) 16%, transparent);color:var(--dsw-static-amber-500)}.KFXqYa_ubTagPromo{background:color-mix(in srgb, var(--dsw-static-red-500) 14%, transparent);color:var(--dsw-static-red-500);cursor:help}.KFXqYa_ubExtraRow td{opacity:.72;padding-top:2px;padding-bottom:2px;font-size:12px}.KFXqYa_ubExtraName{color:var(--dsw-alias-label-secondary);margin-left:26px}.KFXqYa_ubExtraNote{color:var(--dsw-alias-label-tertiary);margin-left:8px;font-size:10px}.KFXqYa_ubCard{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);border-radius:12px;flex-direction:column;gap:12px;padding:16px 18px;display:flex}.KFXqYa_ubCardHead{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.KFXqYa_ubCardTitle{color:var(--dsw-alias-label-primary);margin:0;font-size:13px;font-weight:600;line-height:18px}.KFXqYa_ubCardSub{color:var(--dsw-alias-label-tertiary);font-size:11px;line-height:16px}.KFXqYa_ubTablewrap{border:1px solid var(--dsw-alias-border-l1);border-radius:10px;overflow:auto}.KFXqYa_ubTable{border-collapse:collapse;white-space:nowrap;width:100%;font-size:12.5px}.KFXqYa_ubTable th,.KFXqYa_ubTable td{border-bottom:1px solid var(--dsw-alias-border-l1);text-align:left;padding:9px 12px}.KFXqYa_ubTable tbody tr:last-child td{border-bottom:0}.KFXqYa_ubTable thead th{color:var(--dsw-alias-label-tertiary);text-transform:uppercase;letter-spacing:.05em;font-size:11px;font-weight:600}.KFXqYa_ubModel{align-items:center;gap:8px;display:inline-flex}.KFXqYa_vendorLogo{object-fit:contain;border-radius:4px;flex:none;width:18px;height:18px}.KFXqYa_vendorLetter{color:#fff;border-radius:4px;flex:none;justify-content:center;align-items:center;width:18px;height:18px;font-size:10px;font-weight:600;line-height:1;display:inline-flex}.KFXqYa_ubModelName{color:var(--dsw-alias-label-primary);align-items:center;gap:6px;font-weight:500;display:inline-flex}.KFXqYa_ubPricepair{flex-wrap:wrap;gap:6px;display:inline-flex}.KFXqYa_ubChipPeak,.KFXqYa_ubChipOff{font-variant-numeric:tabular-nums;border-radius:999px;align-items:center;gap:5px;height:20px;padding:0 8px;font-size:11px;line-height:16px;display:inline-flex}.KFXqYa_ubChipLabel{font-size:10px;font-weight:600}.KFXqYa_ubChipPeak{background:color-mix(in srgb, var(--dsw-static-blue-500) 14%, transparent);color:var(--dsw-static-blue-500)}.KFXqYa_ubChipOff{background:color-mix(in srgb, var(--dsw-static-green-500) 14%, transparent);color:var(--dsw-static-green-500)}.KFXqYa_ubNotes{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.KFXqYa_ubNotesItem{align-items:baseline;gap:10px;display:flex}.KFXqYa_ubNotesTerm{color:var(--dsw-alias-label-primary);flex:0 0 72px;font-size:12px;font-weight:500}.KFXqYa_ubNotesDesc{min-width:0;color:var(--dsw-alias-label-secondary);flex:1;font-size:12px;line-height:17px}.KFXqYa_ubCardControlGroup{flex-wrap:wrap;align-items:center;gap:8px;display:inline-flex}.KFXqYa_ubTagError{white-space:nowrap;background:color-mix(in srgb, var(--dsw-static-red-500) 14%, transparent);height:18px;color:var(--dsw-static-red-500);border-radius:999px;align-items:center;padding:0 7px;font-size:10px;font-weight:600;line-height:14px;display:inline-flex}.KFXqYa_modelTable{border-collapse:collapse;table-layout:fixed;width:100%;min-width:640px;font-size:12.5px}.KFXqYa_modelTable th:first-child{width:26%}.KFXqYa_modelTable th,.KFXqYa_modelTable td th td{border-bottom:1px solid var(--dsw-alias-border-l1);text-align:left;white-space:nowrap;padding:7px 10px}.KFXqYa_modelTable tbody tr:last-child td tbody tr:last-child td{border-bottom:0}.KFXqYa_sessionGroupRow{cursor:pointer}.KFXqYa_sessionGroupRow .KFXqYa_modelName:before{content:"›";color:var(--dsw-alias-label-tertiary);margin-right:6px;display:inline-block}.KFXqYa_sessionGroupRow[aria-expanded=true] .KFXqYa_modelName:before{transform:rotate(90deg)}.KFXqYa_sessionChildRow td:first-child{padding-left:30px}.KFXqYa_modelTable thead th thead th{color:var(--dsw-alias-label-tertiary);text-transform:uppercase;letter-spacing:.05em;background:0 0;font-size:11px;font-weight:600}.KFXqYa_modelTable tbody tr tbody tr{transition:background-color .12s}.KFXqYa_modelTable tbody tr:hover tbody tr:hover{background:0 0}.KFXqYa_modelTable tbody tr.KFXqYa_modelRowFocusable{cursor:pointer}.KFXqYa_modelTable tbody tr.KFXqYa_modelRowActive,.KFXqYa_modelTable tbody tr.KFXqYa_modelRowActive:hover{background:var(--dsw-alias-interactive-bg-hover)}.KFXqYa_numCol{text-align:right;font-variant-numeric:tabular-nums}.KFXqYa_na{color:var(--dsw-alias-label-dimmed)}.KFXqYa_modelCell{align-items:center;gap:8px;display:inline-flex}.KFXqYa_modelDot{border-radius:50%;flex:none;width:9px;height:9px}.KFXqYa_modelName{color:var(--dsw-alias-label-primary);font-weight:500;line-height:16px;display:block}.KFXqYa_modelProvider{color:var(--dsw-alias-label-caption);font-size:10.5px;line-height:14px;display:block}.KFXqYa_siteRow{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:8px 10px;display:flex}.KFXqYa_siteRowName{align-items:center;gap:8px;min-width:0;display:inline-flex}.KFXqYa_siteKindTag{white-space:nowrap;border-radius:999px;flex:none;align-items:center;padding:1px 7px;font-size:10.5px;font-weight:600;line-height:16px;display:inline-flex}.KFXqYa_siteKindSite{color:var(--dsw-static-blue-500);background:color-mix(in srgb, var(--dsw-static-blue-500) 14%, transparent)}.KFXqYa_siteKindDirect{color:var(--dsw-static-green-500);background:color-mix(in srgb, var(--dsw-static-green-500) 14%, transparent)}.KFXqYa_siteKindUnknown{color:var(--dsw-static-red-500);background:color-mix(in srgb, var(--dsw-static-red-500) 14%, transparent)}.KFXqYa_siteRowTitle{color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;font-weight:600;line-height:18px;overflow:hidden}.KFXqYa_siteRowMeta{flex:none;align-items:center;gap:10px;display:inline-flex}.KFXqYa_siteRowCost{color:var(--dsw-alias-label-primary);font-variant-numeric:tabular-nums;font-size:12.5px;font-weight:700;line-height:18px}.KFXqYa_siteRowCalls{color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;font-size:11.5px;line-height:17px}.KFXqYa_siteRowCallsLow{color:var(--dsw-static-red-500)}.KFXqYa_flatTag{color:var(--dsw-alias-label-caption);font-size:10.5px;line-height:14px}.KFXqYa_healthDot{border-radius:50%;flex:none;width:8px;height:8px;display:inline-block}.KFXqYa_healthOk{background:var(--dsw-static-green-500)}.KFXqYa_healthBad{background:var(--dsw-static-red-500)}.KFXqYa_healthIdle{background:var(--dsw-static-neutral-bluish-400)}.KFXqYa_dashboardRight{align-items:center;gap:8px;min-width:0;display:flex}.KFXqYa_healthBadge{white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:3px 9px;font-size:11px;line-height:16px;display:inline-flex}.KFXqYa_healthBadgeOk{color:var(--dsw-static-green-500);background:var(--dsw-alias-bg-layer-2)}.KFXqYa_healthBadgeBad{color:var(--dsw-static-red-500);background:var(--dsw-alias-bg-layer-2)}.KFXqYa_planTag{color:var(--dsw-static-green-500);background:var(--dsw-alias-bg-layer-2);border-radius:999px;align-items:center;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px;display:inline-flex}.KFXqYa_uncataloguedTag{vertical-align:1px;color:var(--dsw-static-amber-500);background:var(--dsw-alias-bg-layer-2);border-radius:999px;margin-left:6px;padding:0 6px;font-size:10px;font-weight:600;line-height:16px;display:inline-block}.KFXqYa_estimatedTag{vertical-align:1px;color:var(--dsw-static-blue-500);background:var(--dsw-alias-bg-layer-2);border-radius:999px;margin-left:6px;padding:0 6px;font-size:10px;font-weight:600;line-height:16px;display:inline-block}.KFXqYa_feeBar{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-3);color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;border-radius:999px;flex-wrap:wrap;align-items:center;gap:8px;padding:6px 12px;font-size:11px;line-height:16px;display:inline-flex}.KFXqYa_feeBarAbove{order:-1;align-self:center;margin-bottom:8px}.KFXqYa_feeInline{font-variant-numeric:tabular-nums;white-space:nowrap;cursor:default;border-radius:999px;align-self:center;align-items:center;gap:5px;height:22px;padding:0 4px;font-size:11px;line-height:16px;display:inline-flex}.KFXqYa_feeInline .KFXqYa_feeChipPrimary,.KFXqYa_feeInline .KFXqYa_feeChipOff{height:18px;padding:0 7px}.KFXqYa_feeInlineNum{color:var(--dsw-alias-label-primary);padding-right:6px;font-weight:600}.KFXqYa_feeInlineAlert{background:color-mix(in srgb, var(--dsw-static-amber-500) 12%, transparent)}.KFXqYa_feeInlineAlert .KFXqYa_feeInlineNum{color:var(--dsw-static-amber-500)}.KFXqYa_feeInlineError{background:color-mix(in srgb, var(--dsw-static-red-500) 12%, transparent)}.KFXqYa_feeInlineError .KFXqYa_feeInlineNum{color:var(--dsw-static-red-500)}.KFXqYa_feeBar .KFXqYa_feeSep{color:var(--dsw-alias-label-dimmed)}.KFXqYa_feeCount{color:var(--dsw-alias-label-primary);font-weight:600}.KFXqYa_feeSuffix{color:var(--dsw-alias-label-tertiary)}.KFXqYa_feeItem{color:var(--dsw-alias-label-secondary);white-space:nowrap}.KFXqYa_feeNum{color:var(--dsw-alias-label-primary);font-weight:600}.KFXqYa_feeSep{color:var(--dsw-alias-label-tertiary)}.KFXqYa_feeChipPrimary,.KFXqYa_feeChipOff,.KFXqYa_feeChipAlert,.KFXqYa_feeChipError{font-variant-numeric:tabular-nums;white-space:nowrap;border-radius:999px;align-items:center;height:20px;padding:0 8px;font-size:10px;font-weight:600;line-height:14px;display:inline-flex}.KFXqYa_feeChipPrimary{background:color-mix(in srgb, var(--dsw-static-blue-500) 14%, transparent);color:var(--dsw-static-blue-500)}.KFXqYa_feeChipOff{background:color-mix(in srgb, var(--dsw-static-green-500) 14%, transparent);color:var(--dsw-static-green-500)}.KFXqYa_feeChipAlert{background:color-mix(in srgb, var(--dsw-static-amber-500) 16%, transparent);color:var(--dsw-static-amber-500)}.KFXqYa_feeChipError{background:color-mix(in srgb, var(--dsw-static-red-500) 14%, transparent);color:var(--dsw-static-red-500)}.KFXqYa_balanceCell{align-items:center;gap:6px;display:inline-flex;position:relative}.KFXqYa_balanceDaysBadge{border:1px solid var(--dsw-alias-label-caption);background:color-mix(in srgb, var(--dsw-alias-label-caption) 10%, transparent);min-width:24px;height:24px;color:var(--dsw-alias-label-secondary);cursor:pointer;border-radius:12px;justify-content:center;align-items:center;padding:0 6px;font-size:10.5px;font-weight:600;line-height:1;display:inline-flex}.KFXqYa_balanceDaysBadge:hover{border-color:var(--dsw-alias-label-secondary);background:color-mix(in srgb, var(--dsw-alias-label-caption) 18%, transparent)}.KFXqYa_balanceDaysBadgeLow{color:var(--dsw-static-red-500);border-color:var(--dsw-static-red-500);background:color-mix(in srgb, var(--dsw-static-red-500) 10%, transparent)}.KFXqYa_balanceDetailPop{z-index:20;background:var(--dsw-alias-bg-layer-3);border:1px solid var(--dsw-alias-label-caption);white-space:nowrap;border-radius:8px;flex-direction:column;gap:6px;min-width:180px;padding:8px 10px;display:inline-flex;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 6px 20px #0000002e}.KFXqYa_balanceDetailHead{justify-content:space-between;align-items:center;gap:12px;display:flex}.KFXqYa_balanceDetailTitle{color:var(--dsw-alias-label-primary);font-size:12px;font-weight:600}.KFXqYa_balanceDetailClose{cursor:pointer;color:var(--dsw-alias-label-caption);background:0 0;border:none;font-size:14px;line-height:1}.KFXqYa_balanceDetailClose:hover{color:var(--dsw-alias-label-primary)}.KFXqYa_balanceDetailGrid{flex-direction:column;gap:4px;display:inline-flex}.KFXqYa_balanceDetailRow{color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;justify-content:space-between;gap:16px;font-size:11px;line-height:15px;display:flex}.KFXqYa_balanceDetailLabel{color:var(--dsw-alias-label-caption)}.KFXqYa_balanceDetailValue{color:var(--dsw-alias-label-primary);font-weight:500}.KFXqYa_currencyToggle{background:var(--dsw-alias-bg-layer-3);border:none;border-radius:8px;align-items:center;gap:2px;margin-right:8px;padding:2px;display:inline-flex}.KFXqYa_currencyButton{color:var(--dsw-alias-label-secondary);white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:6px;padding:4px 8px;font-size:11px;font-weight:700;line-height:1}.KFXqYa_currencyButtonActive{background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary)}.KFXqYa_subscriptionGrid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;margin-top:10px;display:grid}.KFXqYa_subscriptionCard{border:1px solid color-mix(in srgb, var(--dsw-alias-border-l1) 75%, transparent);background:color-mix(in srgb, var(--dsw-alias-bg-layer-2) 62%, transparent);-webkit-backdrop-filter:blur(12px)saturate(1.3);border-radius:12px;padding:12px 14px;transition:border-color .2s,box-shadow .2s;position:relative;overflow:hidden;box-shadow:0 8px 24px #0000001a}.KFXqYa_subscriptionCard:before{content:"";background:linear-gradient(90deg, transparent 0%, var(--dsw-static-amber-500) 30%, var(--dsw-alias-label-primary) 50%, var(--dsw-static-amber-500) 70%, transparent 100%);opacity:.9;pointer-events:none;background-size:200% 100%;height:1.5px;animation:3.6s ease-in-out infinite KFXqYa_subscriptionGoldFlow;position:absolute;top:0;left:0;right:0}@keyframes KFXqYa_subscriptionGoldFlow{0%{background-position:200% 0}to{background-position:-200% 0}}.KFXqYa_subscriptionCard:hover{border-color:color-mix(in srgb, var(--dsw-static-amber-500) 55%, var(--dsw-alias-border-l1));box-shadow:0 10px 30px #00000029}.KFXqYa_subscriptionHead{flex-wrap:wrap;align-items:baseline;gap:6px;margin-bottom:8px;display:flex}.KFXqYa_subscriptionName{font-size:13px;font-weight:700}.KFXqYa_subscriptionPlan{color:var(--dsw-alias-label-secondary);font-size:11px}.KFXqYa_subscriptionPlan[data-kind=code],.KFXqYa_subscriptionPlan[data-kind=token]{color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-layer-3);border-radius:999px;padding:1px 8px;font-weight:500}.KFXqYa_subscriptionTier{color:var(--dsw-alias-label-secondary);margin-left:6px}.KFXqYa_subscriptionAuto{color:var(--dsw-static-blue-500);background:color-mix(in srgb, var(--dsw-static-blue-500) 14%, var(--dsw-alias-bg-layer-2));border-radius:999px;margin-left:6px;padding:1px 6px;font-size:10px}.KFXqYa_subscriptionStatus{color:var(--dsw-alias-label-secondary);margin-bottom:6px;font-size:11px}.KFXqYa_subscriptionWindow{align-items:center;gap:10px;margin-top:8px;font-size:11px;display:flex}.KFXqYa_subscriptionWindowLabel{color:var(--dsw-alias-label-secondary);flex:0 0 44px}.KFXqYa_subscriptionTrack{background:var(--dsw-alias-bg-layer-3);border-radius:3px;flex:1;height:6px;overflow:hidden}.KFXqYa_subscriptionFill{background:var(--dsw-static-blue-500);border-radius:3px;height:100%;transition:width .2s;display:block}.KFXqYa_subscriptionFillWarn{background:var(--dsw-static-amber-500)}.KFXqYa_subscriptionFillOver{background:var(--dsw-static-red-500)}.KFXqYa_subscriptionMeta{flex-direction:column;flex:none;align-items:flex-end;gap:2px;display:flex}.KFXqYa_subscriptionPct{text-align:right;font-variant-numeric:tabular-nums;flex:none;min-width:52px}.KFXqYa_subscriptionExhausted{color:var(--dsw-static-red-500);min-width:52px;font-weight:600}.KFXqYa_subscriptionReset{color:var(--dsw-alias-label-caption);white-space:nowrap;flex:none;font-size:10px}.KFXqYa_providerGroupList{flex-direction:column;gap:10px;display:flex}.KFXqYa_providerGroup{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);border-radius:12px;padding:12px 14px}.KFXqYa_providerGroupHead{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.KFXqYa_providerGroupTitle{align-items:center;gap:7px;min-width:0;display:inline-flex}.KFXqYa_providerGroupName{color:var(--dsw-alias-label-primary);font-size:13px;font-weight:600;line-height:18px}.KFXqYa_providerGroupMeta{flex:none;align-items:center;gap:10px;display:inline-flex}.KFXqYa_providerGroupBadge{color:var(--dsw-static-green-500);background:var(--dsw-alias-bg-layer-2);border-radius:999px;justify-content:center;align-items:center;min-width:64px;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px;display:inline-flex}.KFXqYa_providerGroupBalance,.KFXqYa_providerGroupCost{color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;white-space:nowrap;justify-content:flex-end;align-items:baseline;gap:6px;min-width:118px;font-size:12px;line-height:17px;display:inline-flex}.KFXqYa_providerGroupCostLabel{font-size:11px}.KFXqYa_providerGroupCostValue{color:var(--dsw-alias-label-primary);text-align:right;min-width:56px;font-weight:600}.KFXqYa_providerGroupBalanceLabel{color:var(--dsw-alias-label-caption);font-size:11px;line-height:17px}.KFXqYa_rounds{margin-top:10px}.KFXqYa_roundsBars{align-items:flex-end;gap:3px;height:124px;padding:16px 2px 0;display:flex;overflow-x:auto}.KFXqYa_roundsBarCol{border-radius:5px 5px 0 0;flex-direction:column;flex:1 0 28px;justify-content:flex-end;align-items:stretch;height:100%;display:flex;position:relative}.KFXqYa_roundsBarColPeak{background:color-mix(in srgb, var(--dsw-static-amber-500) 16%, transparent)}.KFXqYa_roundsBarColOff{background:var(--dsw-alias-bg-module-platform)}.KFXqYa_roundsBarLabel{text-align:center;color:var(--dsw-alias-label-secondary);white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:9px;line-height:1.2;position:absolute;bottom:0;left:0;right:0;overflow:hidden;transform:translateY(-100%)}.KFXqYa_roundsBarWrap{flex:1;align-items:flex-end;min-height:0;display:flex}.KFXqYa_roundsBar{background:var(--dsw-static-blue-500);border-radius:2px 2px 0 0;width:100%;min-height:2px;position:relative}.KFXqYa_roundsBarFlagged{background:var(--dsw-static-red-500);border-radius:2px 2px 0 0;width:100%;min-height:2px;position:relative}.KFXqYa_roundsFlagMark{background:var(--dsw-static-red-500);border-radius:50%;width:7px;height:7px;position:absolute;top:-3px;right:-3px}.KFXqYa_roundsAxis{color:var(--dsw-alias-label-secondary);justify-content:space-between;margin-top:6px;font-size:10px;display:flex}.KFXqYa_roundsEmpty{color:var(--dsw-alias-label-secondary);margin-top:10px;font-size:12px}.KFXqYa_heatmap{margin-top:10px}.KFXqYa_heatmapGrid{grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;display:grid}.KFXqYa_heatmapCellEmpty{background:var(--dsw-alias-bg-layer-1);height:30px;color:var(--dsw-alias-label-dimmed);font-variant-numeric:tabular-nums;border-radius:8px;justify-content:center;align-items:center;font-size:11px;display:flex}.KFXqYa_heatmapCell{font-variant-numeric:tabular-nums;cursor:pointer;border:0;border-radius:8px;justify-content:center;align-items:center;height:30px;padding:0;font-size:11px;display:flex}.KFXqYa_heatmapCell[data-level="0"],.KFXqYa_heatmapCell[data-level="1"],.KFXqYa_heatmapCell[data-level="2"]{color:var(--dsw-alias-label-primary)}.KFXqYa_heatmapCell[data-level="3"],.KFXqYa_heatmapCell[data-level="4"]{color:var(--dsw-static-neutral-bluish-00)}.KFXqYa_heatmapFooter{color:var(--dsw-alias-label-secondary);align-items:center;gap:8px;margin-top:10px;font-size:10px;display:flex}.KFXqYa_heatmapLegend{gap:3px;display:inline-flex}.KFXqYa_heatmapLegend i{border-radius:4px;width:14px;height:14px;display:block}.KFXqYa_heatmapHover{font-variant-numeric:tabular-nums;margin-left:auto}.KFXqYa_heatmapRangeSwitch{gap:4px;margin-left:auto;display:inline-flex}.KFXqYa_heatmapRangeButton{border:1px solid var(--dsw-alias-border-l1);color:var(--dsw-alias-text-secondary);cursor:pointer;background:0 0;border-radius:6px;padding:2px 8px;font-size:11px;line-height:1.4}.KFXqYa_heatmapRangeButtonActive{color:var(--dsw-alias-text-primary);border-color:currentColor;font-weight:600}.KFXqYa_heatmapYear{flex-direction:column;gap:6px;display:flex}.KFXqYa_heatmapYearBody{align-items:flex-start;gap:6px;display:flex}.KFXqYa_heatmapYearWeekdays{color:var(--dsw-alias-text-tertiary);flex:none;grid-template-rows:repeat(7,11px);gap:3px;padding-top:12px;font-size:9px;line-height:11px;display:grid}.KFXqYa_heatmapYearWeekday{white-space:nowrap;text-align:right;height:11px}.KFXqYa_heatmapYearMonths{min-width:max-content;color:var(--dsw-alias-text-tertiary);grid-template-columns:repeat(52,11px);gap:3px;font-size:9px;line-height:12px;display:grid;overflow:visible}.KFXqYa_heatmapYearMonth{white-space:nowrap;overflow:visible}.KFXqYa_heatmapYearScroll{padding-bottom:2px;overflow-x:auto}.KFXqYa_heatmapYearGrid{grid-template-rows:repeat(7,11px);grid-auto-flow:column;gap:3px;min-width:max-content;display:grid}.KFXqYa_heatmapYearCell{cursor:pointer;border:0;border-radius:2px;width:11px;height:11px;padding:0}.KFXqYa_floatSub{flex-direction:column;gap:6px;min-width:0;display:flex}.KFXqYa_floatSubHead{flex-wrap:wrap;align-items:baseline;gap:6px;min-width:0;display:flex}.KFXqYa_floatSubName{color:var(--dsw-alias-label-primary);font-size:12px;font-weight:700}.KFXqYa_floatSubPlan{color:var(--dsw-alias-label-secondary);font-size:10px}.KFXqYa_floatSub .KFXqYa_subscriptionWindow{flex-wrap:wrap;gap:4px 10px}.KFXqYa_floatSub .KFXqYa_subscriptionWindowLabel{flex:none}.KFXqYa_floatSub .KFXqYa_subscriptionMeta{min-width:0;max-width:100%}.KFXqYa_floatSub .KFXqYa_subscriptionPct{min-width:0}.KFXqYa_floatSub .KFXqYa_subscriptionReset{white-space:normal;overflow-wrap:anywhere}.KFXqYa_triggerPopEmpty{color:var(--dsw-alias-label-tertiary);padding:2px 0;font-size:11px;line-height:1.5}.KFXqYa_triggerPopSwitcher{justify-content:flex-end;align-items:center;gap:8px;margin-top:2px;display:flex}.KFXqYa_triggerPopSwitchCount{color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;font-size:10px}.KFXqYa_floatModeBtn{border:1px solid color-mix(in srgb, var(--dsw-alias-border-l1) 75%, transparent);background:color-mix(in srgb, var(--dsw-alias-bg-layer-2) 60%, transparent);color:var(--dsw-alias-label-secondary);white-space:nowrap;cursor:pointer;border-radius:10px;flex:1;padding:7px 10px;font-size:12px}.KFXqYa_floatModeBtnOn{border-color:var(--dsw-static-blue-500);color:var(--dsw-alias-label-primary);background:color-mix(in srgb, var(--dsw-static-blue-500) 16%, transparent)}.KFXqYa_rdoRow{justify-content:space-between;align-items:center;gap:8px;margin-top:10px;display:flex}.KFXqYa_rdoLabel{color:var(--dsw-alias-label-secondary);font-size:12px}.KFXqYa_rdoSelect{border:1px solid color-mix(in srgb, var(--dsw-alias-border-l1) 75%, transparent);background:color-mix(in srgb, var(--dsw-alias-bg-layer-2) 60%, transparent);color:var(--dsw-alias-label-primary);white-space:nowrap;cursor:pointer;border-radius:10px;align-items:center;gap:5px;padding:5px 8px 5px 10px;font-size:12px;display:inline-flex}.KFXqYa_rdoSelect:hover{background:color-mix(in srgb, var(--dsw-alias-bg-layer-2) 85%, transparent)}.KFXqYa_rdoSelect:focus-visible{border-color:var(--dsw-static-blue-500);outline:none}.KFXqYa_rdoChevron{color:var(--dsw-alias-label-tertiary);transition:transform .15s;display:inline-flex}.KFXqYa_rdoChevronOpen{transform:rotate(180deg)}.KFXqYa_floatTarget{color:var(--dsw-alias-label-secondary);cursor:pointer;align-items:center;gap:5px;font-size:12px;display:inline-flex}.KFXqYa_floatTargetLabel{color:var(--dsw-alias-label-secondary)}.KFXqYa_staleNotice{color:var(--dsw-static-amber-500);background:color-mix(in srgb, var(--dsw-static-amber-500) 12%, transparent);border:1px solid color-mix(in srgb, var(--dsw-static-amber-500) 30%, transparent);border-radius:10px;align-items:center;gap:6px;margin:0 0 10px;padding:8px 10px;font-size:11px;display:flex}.KFXqYa_plgHead{align-items:flex-start;gap:12px;display:flex}.KFXqYa_plgIcon{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);width:40px;height:40px;color:var(--dsw-alias-label-secondary);border-radius:10px;flex:none;justify-content:center;align-items:center;display:inline-flex}.KFXqYa_plgTitle{flex-direction:column;gap:4px;min-width:0;display:flex}.KFXqYa_plgNameRow{align-items:center;gap:8px;display:flex}.KFXqYa_plgName{color:var(--dsw-alias-label-primary);margin:0;font-size:13px;font-weight:600;line-height:18px}.KFXqYa_plgTag{height:18px;color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-layer-3);white-space:nowrap;border-radius:5px;align-items:center;padding:0 6px;font-size:10px;font-weight:600;display:inline-flex}.KFXqYa_plgDesc{color:var(--dsw-alias-label-secondary);margin:0;font-size:11px;line-height:16px}.KFXqYa_plgGrid{border-top:1px solid var(--dsw-alias-border-l1);grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:12px;display:grid}.KFXqYa_plgItem{flex-direction:column;gap:2px;min-width:0;display:flex}.KFXqYa_plgLabel{color:var(--dsw-alias-label-tertiary);font-size:10px;line-height:14px}.KFXqYa_plgVal{color:var(--dsw-alias-label-primary);word-break:break-all;font-size:12px;line-height:17px}.KFXqYa_plgLink{color:var(--dsw-static-blue-500);word-break:break-all;font-size:12px;line-height:17px;text-decoration:none}.KFXqYa_plgLink:hover{text-decoration:underline}.KFXqYa_tokenPanel{flex-direction:column;gap:14px;display:flex}.KFXqYa_tokenModelBar{background:var(--dsw-alias-bg-layer-2);border-radius:999px;height:8px;overflow:hidden}.KFXqYa_tokenModelParts{height:100%;display:flex}.KFXqYa_tokenModelPartIn{background:var(--dsw-static-blue-500)}.KFXqYa_tokenModelPartOut{background:var(--dsw-static-amber-500)}.KFXqYa_tokenModelShareRow{align-items:center;gap:6px;display:inline-flex}@media (width<=640px){.KFXqYa_kpiGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.KFXqYa_hero{gap:14px}.KFXqYa_heroTop{flex-direction:column;align-items:flex-start;gap:12px}.KFXqYa_heroGauge{width:72px;height:72px}.KFXqYa_heroSide{gap:12px}.KFXqYa_heroSideSpacer{display:none}}.KFXqYa_peakCard{z-index:2000;border:1px solid var(--dsw-alias-border-l1);background:color-mix(in srgb, var(--dsw-alias-bg-layer-2) 82%, transparent);-webkit-backdrop-filter:blur(12px)saturate(1.2);border-radius:12px;flex-direction:column;gap:8px;min-width:280px;max-width:380px;padding:16px;animation:.2s KFXqYa_peakAlertIn;display:flex;position:fixed;box-shadow:0 4px 16px #00000014}.KFXqYa_peakCardCorner{bottom:18px;right:18px}.KFXqYa_peakCardCenter{top:20%;left:50%;transform:translate(-50%)}.KFXqYa_peakCardPeak{color:var(--dsw-static-blue-500)}.KFXqYa_peakCardOff{color:var(--dsw-static-green-500)}.KFXqYa_peakHead{justify-content:space-between;align-items:center;gap:8px;display:flex}.KFXqYa_peakTag{white-space:nowrap;border-radius:6px;align-items:center;gap:6px;height:20px;padding:0 8px;font-size:11px;font-weight:600;line-height:14px;display:inline-flex}.KFXqYa_peakTagPrimary{background:var(--dsw-alias-bg-layer-3);color:var(--dsw-static-blue-500)}.KFXqYa_peakTagSuccess{background:var(--dsw-alias-bg-layer-3);color:var(--dsw-static-green-500)}.KFXqYa_peakDot{border-radius:999px;flex:none;width:6px;height:6px}.KFXqYa_peakDotPrimary{background:var(--dsw-static-blue-500)}.KFXqYa_peakDotSuccess{background:var(--dsw-static-green-500)}.KFXqYa_peakClose{width:24px;height:24px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;font-size:15px;line-height:1;transition:background-color .14s,color .14s;display:inline-flex}.KFXqYa_peakClose:hover{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-2)}.KFXqYa_peakCount{font-variant-numeric:tabular-nums;font-size:28px;font-weight:700;line-height:34px}.KFXqYa_peakCountPrimary{color:var(--dsw-static-blue-500)}.KFXqYa_peakCountSuccess{color:var(--dsw-static-green-500)}.KFXqYa_peakDesc{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px;line-height:18px}@keyframes KFXqYa_peakAlertIn{0%{opacity:0}to{opacity:1}}.KFXqYa_setCard{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);border-radius:12px;flex-direction:column;gap:12px;padding:16px 18px;display:flex}.KFXqYa_setGrid3,.KFXqYa_setGrid2{gap:10px;display:grid}.KFXqYa_setGrid3{grid-template-columns:repeat(3,minmax(0,1fr))}.KFXqYa_setGrid2{grid-template-columns:repeat(2,minmax(0,1fr))}@media (width<=720px){.KFXqYa_setGrid3,.KFXqYa_setGrid2{grid-template-columns:1fr}}.KFXqYa_setCell{border:1px solid var(--dsw-alias-border-l1);border-radius:10px;flex-direction:column;gap:8px;min-width:0;padding:12px 14px;display:flex}.KFXqYa_setCardHead{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.KFXqYa_setCardMeta{flex-direction:column;gap:4px;min-width:0;display:flex}.KFXqYa_setCardTitle{color:var(--dsw-alias-label-primary);margin:0;font-size:13px;font-weight:600;line-height:18px}.KFXqYa_setCardDesc{color:var(--dsw-alias-label-secondary);margin:0;font-size:11px;line-height:16px}.KFXqYa_ctlCol{flex-direction:column;gap:10px;padding-top:2px;display:flex}.KFXqYa_ctlRow{align-items:center;gap:12px;min-height:28px;display:flex}.KFXqYa_ctlRowStretch{display:flex}.KFXqYa_ctlLabel{color:var(--dsw-alias-label-secondary);flex:0 0 96px;font-size:11px;line-height:16px}.KFXqYa_ctlGroup{flex-wrap:wrap;align-items:center;gap:8px;display:inline-flex}.KFXqYa_userPriceRow{border-bottom:1px solid var(--dsw-alias-border-l1);align-items:center;gap:10px;padding:8px 0;display:flex}.KFXqYa_userPriceCheck{width:14px;height:14px;accent-color:var(--dsw-static-blue-500);flex:none;margin:0}.KFXqYa_userPriceBody{flex-direction:column;flex:1;gap:8px;min-width:0;display:flex}.KFXqYa_userPriceLineMeta{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) auto;align-items:end;gap:8px 10px;display:grid}@media (width<=720px){.KFXqYa_userPriceLineMeta{grid-template-columns:repeat(2,minmax(0,1fr))}}.KFXqYa_userPriceLineMeta .KFXqYa_userPriceInput{box-sizing:border-box;width:100%;min-width:0;max-width:none}.KFXqYa_userPriceBody .KFXqYa_ctlGroup{flex-wrap:nowrap}.KFXqYa_userPriceLineMeta .KFXqYa_userPriceField .KFXqYa_ctlLabel{align-items:flex-end;min-height:30px;display:flex}.KFXqYa_userPricePriceLine{border-left:2px solid var(--dsw-alias-border-l1);flex-wrap:wrap;align-items:center;gap:10px;width:calc(100% - 22px);margin-left:10px;padding:2px 0 6px 12px;display:flex}.KFXqYa_userPricePriceLine>.KFXqYa_ctlLabel{color:var(--dsw-alias-label-secondary);flex:0 0 44px;font-size:11px}.KFXqYa_userPricePriceLine .KFXqYa_userPriceInputNum{box-sizing:border-box;flex:1 1 0;width:auto;min-width:120px;max-width:240px}.KFXqYa_userPriceField{flex-direction:column;gap:4px;min-width:0;display:flex}.KFXqYa_userPriceField .KFXqYa_ctlLabel{flex:none;font-size:11px}.KFXqYa_userPriceInput,.KFXqYa_userPriceInputNum{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);min-width:96px;max-width:160px;color:var(--dsw-alias-label-primary);border-radius:6px;padding:4px 8px;font-size:12px;line-height:16px}.KFXqYa_userPriceInputNum{min-width:72px;max-width:88px}.KFXqYa_rdo{color:var(--dsw-alias-label-secondary);cursor:pointer;white-space:nowrap;align-items:center;gap:6px;font-size:12px;line-height:16px;display:inline-flex}.KFXqYa_rdo input{opacity:0;pointer-events:none;position:absolute}.KFXqYa_rdoDot{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);border-radius:50%;flex:none;width:14px;height:14px;position:relative}.KFXqYa_rdo input:checked+.KFXqYa_rdoDot{border-color:var(--dsw-static-blue-500)}.KFXqYa_rdo input:checked+.KFXqYa_rdoDot:after{content:"";background:var(--dsw-static-blue-500);border-radius:50%;position:absolute;inset:3px}.KFXqYa_inp{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);border-radius:6px;align-items:center;gap:4px;padding:2px 6px;display:inline-flex}.KFXqYa_affix{color:var(--dsw-alias-label-tertiary);font-size:11px;line-height:16px}.KFXqYa_prog{background:var(--dsw-alias-bg-module-platform);border-radius:999px;flex:1;min-width:0;height:6px;overflow:hidden}.KFXqYa_progFill{background:var(--dsw-static-blue-500);border-radius:999px;height:100%;transition:width .2s}.KFXqYa_btn{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);height:28px;color:var(--dsw-alias-label-secondary);cursor:pointer;border-radius:999px;align-items:center;gap:6px;padding:0 12px;font-size:12px;line-height:16px;transition:border-color .16s,color .16s,background-color .16s;display:inline-flex}.KFXqYa_btn:hover{border-color:var(--dsw-static-blue-500);color:var(--dsw-alias-label-primary);background:color-mix(in srgb, var(--dsw-static-blue-500) 12%, var(--dsw-alias-bg-layer-1))}.KFXqYa_modelTable tbody td:not(:first-child) tbody td:not(:first-child){text-align:right;font-family:var(--mono);font-variant-numeric:tabular-nums;color:var(--dsw-alias-label-primary)}`,document.head.appendChild(e)}var P={triggerPopShown:`KFXqYa_triggerPopShown`,panelTitle:`KFXqYa_panelTitle`,heroBudgetTrack:`KFXqYa_heroBudgetTrack`,modelTable:`KFXqYa_modelTable`,providerGroupCost:`KFXqYa_providerGroupCost`,plgName:`KFXqYa_plgName`,healthDot:`KFXqYa_healthDot`,tokenModelShareRow:`KFXqYa_tokenModelShareRow`,peakCardPeak:`KFXqYa_peakCardPeak`,feeCount:`KFXqYa_feeCount`,heatmapRangeSwitch:`KFXqYa_heatmapRangeSwitch`,panelHeadControls:`KFXqYa_panelHeadControls`,rdoChevron:`KFXqYa_rdoChevron`,inp:`KFXqYa_inp`,triggerSub:`KFXqYa_triggerSub`,chartBarPlaceholder:`KFXqYa_chartBarPlaceholder`,modalFooter:`KFXqYa_modalFooter`,ubNotesDesc:`KFXqYa_ubNotesDesc`,modelName:`KFXqYa_modelName`,plgIcon:`KFXqYa_plgIcon`,peakCardOff:`KFXqYa_peakCardOff`,tabPanelIn:`KFXqYa_tabPanelIn`,heroMain:`KFXqYa_heroMain`,heroReadout:`KFXqYa_heroReadout`,feeInlineError:`KFXqYa_feeInlineError`,setCard:`KFXqYa_setCard`,dashboardSubtitle:`KFXqYa_dashboardSubtitle`,switchOn:`KFXqYa_switchOn`,chartLegendBar:`KFXqYa_chartLegendBar`,feeSep:`KFXqYa_feeSep`,triggerLabel:`KFXqYa_triggerLabel`,subscriptionCard:`KFXqYa_subscriptionCard`,popModelStatus:`KFXqYa_popModelStatus`,heroCurrency:`KFXqYa_heroCurrency`,subscriptionFillWarn:`KFXqYa_subscriptionFillWarn`,providerGroupCostValue:`KFXqYa_providerGroupCostValue`,deltaUp:`KFXqYa_deltaUp`,deltaDown:`KFXqYa_deltaDown`,siteRowCalls:`KFXqYa_siteRowCalls`,numCol:`KFXqYa_numCol`,ubCardSub:`KFXqYa_ubCardSub`,balanceDetailTitle:`KFXqYa_balanceDetailTitle`,modelRowFocusable:`KFXqYa_modelRowFocusable`,chartLegend:`KFXqYa_chartLegend`,tabButtonActive:`KFXqYa_tabButtonActive`,setGrid3:`KFXqYa_setGrid3`,currencyButton:`KFXqYa_currencyButton`,flatTag:`KFXqYa_flatTag`,triggerMetric:`KFXqYa_triggerMetric`,unpricedHint:`KFXqYa_unpricedHint`,subscriptionTier:`KFXqYa_subscriptionTier`,staleNotice:`KFXqYa_staleNotice`,kpiDetail:`KFXqYa_kpiDetail`,userPriceField:`KFXqYa_userPriceField`,dashboardIn:`KFXqYa_dashboardIn`,hero:`KFXqYa_hero`,tableScroll:`KFXqYa_tableScroll`,heatmapYearCell:`KFXqYa_heatmapYearCell`,userPriceRow:`KFXqYa_userPriceRow`,panelHint:`KFXqYa_panelHint`,popTagSub:`KFXqYa_popTagSub`,subscriptionHead:`KFXqYa_subscriptionHead`,heatmapYearGrid:`KFXqYa_heatmapYearGrid`,ubAlert:`KFXqYa_ubAlert`,balanceDetailClose:`KFXqYa_balanceDetailClose`,metricLabel:`KFXqYa_metricLabel`,peakCardCenter:`KFXqYa_peakCardCenter`,ubChipPeak:`KFXqYa_ubChipPeak`,rangeButton:`KFXqYa_rangeButton`,chartTooltipRow:`KFXqYa_chartTooltipRow`,triggerSparkBar:`KFXqYa_triggerSparkBar`,budgetInput:`KFXqYa_budgetInput`,feeBarAbove:`KFXqYa_feeBarAbove`,ubExtraRow:`KFXqYa_ubExtraRow`,balanceDetailRow:`KFXqYa_balanceDetailRow`,roundsBarColOff:`KFXqYa_roundsBarColOff`,tabPanel:`KFXqYa_tabPanel`,triggerWrap:`KFXqYa_triggerWrap`,rdoRow:`KFXqYa_rdoRow`,roundsBar:`KFXqYa_roundsBar`,plgLink:`KFXqYa_plgLink`,peakCount:`KFXqYa_peakCount`,popDotNeutral:`KFXqYa_popDotNeutral`,shareSegUser:`KFXqYa_shareSegUser`,heroBudgetValue:`KFXqYa_heroBudgetValue`,peakCountSuccess:`KFXqYa_peakCountSuccess`,heatmapYearBody:`KFXqYa_heatmapYearBody`,popModelName:`KFXqYa_popModelName`,reconcileIcon:`KFXqYa_reconcileIcon`,currencyToggle:`KFXqYa_currencyToggle`,subscriptionPct:`KFXqYa_subscriptionPct`,providerGroupList:`KFXqYa_providerGroupList`,dashboard:`KFXqYa_dashboard`,chartTooltipLabel:`KFXqYa_chartTooltipLabel`,floatSubHead:`KFXqYa_floatSubHead`,userPriceCheck:`KFXqYa_userPriceCheck`,shareSeg:`KFXqYa_shareSeg`,ubAlertLeft:`KFXqYa_ubAlertLeft`,balanceDetailGrid:`KFXqYa_balanceDetailGrid`,feeNum:`KFXqYa_feeNum`,ctlCol:`KFXqYa_ctlCol`,ubTablewrap:`KFXqYa_ubTablewrap`,shareSegOff:`KFXqYa_shareSegOff`,chartTooltipModelDetail:`KFXqYa_chartTooltipModelDetail`,modelDot:`KFXqYa_modelDot`,popModelStatusLow:`KFXqYa_popModelStatusLow`,na:`KFXqYa_na`,ubTagNeutral:`KFXqYa_ubTagNeutral`,perfChip:`KFXqYa_perfChip`,subscriptionWindowLabel:`KFXqYa_subscriptionWindowLabel`,heatmap:`KFXqYa_heatmap`,chartLegendItemActive:`KFXqYa_chartLegendItemActive`,heatmapCellEmpty:`KFXqYa_heatmapCellEmpty`,triggerPopSwitchCount:`KFXqYa_triggerPopSwitchCount`,heroGaugeCenter:`KFXqYa_heroGaugeCenter`,shareValue:`KFXqYa_shareValue`,kpiValue:`KFXqYa_kpiValue`,modelRowActive:`KFXqYa_modelRowActive`,setGrid2:`KFXqYa_setGrid2`,chartAxisLabel:`KFXqYa_chartAxisLabel`,popModelLabel:`KFXqYa_popModelLabel`,siteKindSite:`KFXqYa_siteKindSite`,budgetFillWarn:`KFXqYa_budgetFillWarn`,subscriptionName:`KFXqYa_subscriptionName`,"billing-trigger":`KFXqYa_billing-trigger`,heatmapFooter:`KFXqYa_heatmapFooter`,healthBadgeOk:`KFXqYa_healthBadgeOk`,delta:`KFXqYa_delta`,ctlGroup:`KFXqYa_ctlGroup`,plgVal:`KFXqYa_plgVal`,setCardDesc:`KFXqYa_setCardDesc`,ubTagPromo:`KFXqYa_ubTagPromo`,panel:`KFXqYa_panel`,ubModel:`KFXqYa_ubModel`,healthBad:`KFXqYa_healthBad`,feeInline:`KFXqYa_feeInline`,balanceDaysBadge:`KFXqYa_balanceDaysBadge`,railButton:`KFXqYa_railButton`,heroGaugeTrack:`KFXqYa_heroGaugeTrack`,dashboardModal:`KFXqYa_dashboardModal`,heroGaugePct:`KFXqYa_heroGaugePct`,roundsFlagMark:`KFXqYa_roundsFlagMark`,plgDesc:`KFXqYa_plgDesc`,plgLabel:`KFXqYa_plgLabel`,tokenModelPartIn:`KFXqYa_tokenModelPartIn`,peakDotSuccess:`KFXqYa_peakDotSuccess`,chartTooltipSplit:`KFXqYa_chartTooltipSplit`,reconcileNotice:`KFXqYa_reconcileNotice`,peakCountPrimary:`KFXqYa_peakCountPrimary`,heroGauge:`KFXqYa_heroGauge`,heroBudget:`KFXqYa_heroBudget`,heatmapLegend:`KFXqYa_heatmapLegend`,providerGroupMeta:`KFXqYa_providerGroupMeta`,heatmapYearMonth:`KFXqYa_heatmapYearMonth`,heroSideItem:`KFXqYa_heroSideItem`,ubChipLabel:`KFXqYa_ubChipLabel`,affix:`KFXqYa_affix`,ubExtraNote:`KFXqYa_ubExtraNote`,tokenPanel:`KFXqYa_tokenPanel`,vendorLetter:`KFXqYa_vendorLetter`,estimatedTag:`KFXqYa_estimatedTag`,ubNotes:`KFXqYa_ubNotes`,sessionChildRow:`KFXqYa_sessionChildRow`,roundsBarLabel:`KFXqYa_roundsBarLabel`,switch:`KFXqYa_switch`,metricValue:`KFXqYa_metricValue`,kpiLabel:`KFXqYa_kpiLabel`,healthOk:`KFXqYa_healthOk`,chartLine:`KFXqYa_chartLine`,providerGroupBalanceLabel:`KFXqYa_providerGroupBalanceLabel`,plgTag:`KFXqYa_plgTag`,dashboardHead:`KFXqYa_dashboardHead`,heroBudgetLabel:`KFXqYa_heroBudgetLabel`,chartWrap:`KFXqYa_chartWrap`,subscriptionPlan:`KFXqYa_subscriptionPlan`,metricCell:`KFXqYa_metricCell`,userPriceBody:`KFXqYa_userPriceBody`,shareSegPeak:`KFXqYa_shareSegPeak`,peakTag:`KFXqYa_peakTag`,rdoDot:`KFXqYa_rdoDot`,balanceDaysBadgeLow:`KFXqYa_balanceDaysBadgeLow`,triggerYen:`KFXqYa_triggerYen`,metricGrid:`KFXqYa_metricGrid`,subscriptionMeta:`KFXqYa_subscriptionMeta`,popHead:`KFXqYa_popHead`,ubNotesTerm:`KFXqYa_ubNotesTerm`,heroSideSpacer:`KFXqYa_heroSideSpacer`,ubPricepair:`KFXqYa_ubPricepair`,trigger:`KFXqYa_trigger`,feeChipAlert:`KFXqYa_feeChipAlert`,balanceDetailLabel:`KFXqYa_balanceDetailLabel`,perfChips:`KFXqYa_perfChips`,providerGroupBadge:`KFXqYa_providerGroupBadge`,popTitle:`KFXqYa_popTitle`,rangeToggle:`KFXqYa_rangeToggle`,rdoChevronOpen:`KFXqYa_rdoChevronOpen`,floatSub:`KFXqYa_floatSub`,heroGaugePctOver:`KFXqYa_heroGaugePctOver`,roundsEmpty:`KFXqYa_roundsEmpty`,triggerPopEmpty:`KFXqYa_triggerPopEmpty`,floatSubName:`KFXqYa_floatSubName`,roundsBars:`KFXqYa_roundsBars`,chartEmpty:`KFXqYa_chartEmpty`,triggerSpark:`KFXqYa_triggerSpark`,chartGrid:`KFXqYa_chartGrid`,metricValueSuccess:`KFXqYa_metricValueSuccess`,dashboardBody:`KFXqYa_dashboardBody`,feeInlineAlert:`KFXqYa_feeInlineAlert`,ubTag:`KFXqYa_ubTag`,kpiGreen:`KFXqYa_kpiGreen`,siteRowName:`KFXqYa_siteRowName`,shareLegend:`KFXqYa_shareLegend`,popDotSub:`KFXqYa_popDotSub`,ubExtraName:`KFXqYa_ubExtraName`,chartBar:`KFXqYa_chartBar`,ubCard:`KFXqYa_ubCard`,feeChipError:`KFXqYa_feeChipError`,providerGroupTitle:`KFXqYa_providerGroupTitle`,rounds:`KFXqYa_rounds`,ubTagSuccess:`KFXqYa_ubTagSuccess`,heatmapCell:`KFXqYa_heatmapCell`,triggerSparkHot:`KFXqYa_triggerSparkHot`,userPriceInput:`KFXqYa_userPriceInput`,shareDot:`KFXqYa_shareDot`,popTagPrimary:`KFXqYa_popTagPrimary`,closeButton:`KFXqYa_closeButton`,dashboardTitle:`KFXqYa_dashboardTitle`,kpiGrid:`KFXqYa_kpiGrid`,rangeButtonActive:`KFXqYa_rangeButtonActive`,exportButton:`KFXqYa_exportButton`,siteRowTitle:`KFXqYa_siteRowTitle`,subscriptionFillOver:`KFXqYa_subscriptionFillOver`,heatmapYearWeekday:`KFXqYa_heatmapYearWeekday`,plgTitle:`KFXqYa_plgTitle`,plgNameRow:`KFXqYa_plgNameRow`,bucketThird:`KFXqYa_bucketThird`,metricValuePrimary:`KFXqYa_metricValuePrimary`,heroGaugeLabel:`KFXqYa_heroGaugeLabel`,plgGrid:`KFXqYa_plgGrid`,triggerMain:`KFXqYa_triggerMain`,plgHead:`KFXqYa_plgHead`,plgItem:`KFXqYa_plgItem`,setCardTitle:`KFXqYa_setCardTitle`,heroSideLabel:`KFXqYa_heroSideLabel`,feeBar:`KFXqYa_feeBar`,userPricePriceLine:`KFXqYa_userPricePriceLine`,budgetOverPulse:`KFXqYa_budgetOverPulse`,shareTrack:`KFXqYa_shareTrack`,siteKindTag:`KFXqYa_siteKindTag`,chartLegendLine:`KFXqYa_chartLegendLine`,tokenModelBar:`KFXqYa_tokenModelBar`,ubModelName:`KFXqYa_ubModelName`,balanceDetailHead:`KFXqYa_balanceDetailHead`,roundsAxis:`KFXqYa_roundsAxis`,bucketSep:`KFXqYa_bucketSep`,chartTooltipAlignLeft:`KFXqYa_chartTooltipAlignLeft`,emptyRow:`KFXqYa_emptyRow`,rdoLabel:`KFXqYa_rdoLabel`,siteRowMeta:`KFXqYa_siteRowMeta`,heatmapHover:`KFXqYa_heatmapHover`,heatmapRangeButtonActive:`KFXqYa_heatmapRangeButtonActive`,reconcileDismiss:`KFXqYa_reconcileDismiss`,heroValue:`KFXqYa_heroValue`,peakDesc:`KFXqYa_peakDesc`,chartHoverDot:`KFXqYa_chartHoverDot`,bucketOfficial:`KFXqYa_bucketOfficial`,chartTooltipDate:`KFXqYa_chartTooltipDate`,chartTooltipSwatch:`KFXqYa_chartTooltipSwatch`,triggerIcon:`KFXqYa_triggerIcon`,ubTagError:`KFXqYa_ubTagError`,perfChipOff:`KFXqYa_perfChipOff`,currencyButtonActive:`KFXqYa_currencyButtonActive`,siteRowCost:`KFXqYa_siteRowCost`,floatTargetLabel:`KFXqYa_floatTargetLabel`,tokenModelPartOut:`KFXqYa_tokenModelPartOut`,triggerPop:`KFXqYa_triggerPop`,subscriptionExhausted:`KFXqYa_subscriptionExhausted`,chartStack:`KFXqYa_chartStack`,peakCard:`KFXqYa_peakCard`,peakHead:`KFXqYa_peakHead`,setCardMeta:`KFXqYa_setCardMeta`,popModelRow:`KFXqYa_popModelRow`,userPriceInputNum:`KFXqYa_userPriceInputNum`,tokenModelParts:`KFXqYa_tokenModelParts`,heroGaugeArc:`KFXqYa_heroGaugeArc`,ubCardTitle:`KFXqYa_ubCardTitle`,chartTooltip:`KFXqYa_chartTooltip`,rdoSelect:`KFXqYa_rdoSelect`,feeItem:`KFXqYa_feeItem`,heatmapYearMonths:`KFXqYa_heatmapYearMonths`,ctlRow:`KFXqYa_ctlRow`,feeInlineNum:`KFXqYa_feeInlineNum`,providerGroupName:`KFXqYa_providerGroupName`,rdo:`KFXqYa_rdo`,ubCardHead:`KFXqYa_ubCardHead`,shareItem:`KFXqYa_shareItem`,roundsBarCol:`KFXqYa_roundsBarCol`,popDot:`KFXqYa_popDot`,heatmapRangeButton:`KFXqYa_heatmapRangeButton`,floatModeBtnOn:`KFXqYa_floatModeBtnOn`,sessionGroupRow:`KFXqYa_sessionGroupRow`,heatmapYearWeekdays:`KFXqYa_heatmapYearWeekdays`,siteKindUnknown:`KFXqYa_siteKindUnknown`,peakCardCorner:`KFXqYa_peakCardCorner`,exportBar:`KFXqYa_exportBar`,peakDotPrimary:`KFXqYa_peakDotPrimary`,floatSubPlan:`KFXqYa_floatSubPlan`,heatmapYearScroll:`KFXqYa_heatmapYearScroll`,subscriptionFill:`KFXqYa_subscriptionFill`,tabButton:`KFXqYa_tabButton`,peakClose:`KFXqYa_peakClose`,ctlRowStretch:`KFXqYa_ctlRowStretch`,chartTooltipAlignRight:`KFXqYa_chartTooltipAlignRight`,heroSide:`KFXqYa_heroSide`,kpiTile:`KFXqYa_kpiTile`,heroBudgetFillOver:`KFXqYa_heroBudgetFillOver`,siteRowCallsLow:`KFXqYa_siteRowCallsLow`,tabNav:`KFXqYa_tabNav`,chartLegendItem:`KFXqYa_chartLegendItem`,subscriptionStatus:`KFXqYa_subscriptionStatus`,ctlLabel:`KFXqYa_ctlLabel`,subscriptionAuto:`KFXqYa_subscriptionAuto`,modelProvider:`KFXqYa_modelProvider`,uncataloguedTag:`KFXqYa_uncataloguedTag`,heroSideValue:`KFXqYa_heroSideValue`,panelHead:`KFXqYa_panelHead`,subscriptionWindow:`KFXqYa_subscriptionWindow`,ubCardControlGroup:`KFXqYa_ubCardControlGroup`,heroGaugeArcOver:`KFXqYa_heroGaugeArcOver`,balanceDetailValue:`KFXqYa_balanceDetailValue`,setCell:`KFXqYa_setCell`,modelCell:`KFXqYa_modelCell`,shareSegAssistant:`KFXqYa_shareSegAssistant`,chartSvg:`KFXqYa_chartSvg`,btn:`KFXqYa_btn`,dashboardRight:`KFXqYa_dashboardRight`,setCardHead:`KFXqYa_setCardHead`,heatmapGrid:`KFXqYa_heatmapGrid`,peakDot:`KFXqYa_peakDot`,roundsBarWrap:`KFXqYa_roundsBarWrap`,peakAlertIn:`KFXqYa_peakAlertIn`,exportLabel:`KFXqYa_exportLabel`,bucketCost:`KFXqYa_bucketCost`,ubNotesItem:`KFXqYa_ubNotesItem`,triggerPopSwitcher:`KFXqYa_triggerPopSwitcher`,siteRow:`KFXqYa_siteRow`,chartCrosshair:`KFXqYa_chartCrosshair`,feeChipOff:`KFXqYa_feeChipOff`,balanceCell:`KFXqYa_balanceCell`,feeSuffix:`KFXqYa_feeSuffix`,providerGroup:`KFXqYa_providerGroup`,heroGaugeSvg:`KFXqYa_heroGaugeSvg`,chartTooltipHead:`KFXqYa_chartTooltipHead`,ubTagAlert:`KFXqYa_ubTagAlert`,planTag:`KFXqYa_planTag`,ubRate:`KFXqYa_ubRate`,floatModeBtn:`KFXqYa_floatModeBtn`,healthBadge:`KFXqYa_healthBadge`,peakTagPrimary:`KFXqYa_peakTagPrimary`,heroBudgetFill:`KFXqYa_heroBudgetFill`,budgetFillOver:`KFXqYa_budgetFillOver`,prog:`KFXqYa_prog`,progFill:`KFXqYa_progFill`,perfChipDot:`KFXqYa_perfChipDot`,ubTable:`KFXqYa_ubTable`,popDotDirect:`KFXqYa_popDotDirect`,subscriptionGrid:`KFXqYa_subscriptionGrid`,shareSegTool:`KFXqYa_shareSegTool`,siteKindDirect:`KFXqYa_siteKindDirect`,heroTop:`KFXqYa_heroTop`,ubChipOff:`KFXqYa_ubChipOff`,ubAlertNote:`KFXqYa_ubAlertNote`,triggerPrimary:`KFXqYa_triggerPrimary`,switchKnob:`KFXqYa_switchKnob`,balanceDetailPop:`KFXqYa_balanceDetailPop`,providerGroupHead:`KFXqYa_providerGroupHead`,providerGroupBalance:`KFXqYa_providerGroupBalance`,healthIdle:`KFXqYa_healthIdle`,roundsBarColPeak:`KFXqYa_roundsBarColPeak`,heatmapYear:`KFXqYa_heatmapYear`,peakTagSuccess:`KFXqYa_peakTagSuccess`,subscriptionReset:`KFXqYa_subscriptionReset`,subscriptionGoldFlow:`KFXqYa_subscriptionGoldFlow`,vendorLogo:`KFXqYa_vendorLogo`,floatTarget:`KFXqYa_floatTarget`,userPriceLineMeta:`KFXqYa_userPriceLineMeta`,reconcileText:`KFXqYa_reconcileText`,healthBadgeBad:`KFXqYa_healthBadgeBad`,feeChipPrimary:`KFXqYa_feeChipPrimary`,perfBar:`KFXqYa_perfBar`,heroLabel:`KFXqYa_heroLabel`,roundsBarFlagged:`KFXqYa_roundsBarFlagged`,heroMeta:`KFXqYa_heroMeta`,providerGroupCostLabel:`KFXqYa_providerGroupCostLabel`,subscriptionTrack:`KFXqYa_subscriptionTrack`,popModel:`KFXqYa_popModel`};let re={"opencode-go":{type:`code`,subscription:{amount:10,currency:`USD`,period:`month`},tier:{amount:10,currency:`USD`,periodDays:7,label:`周额度 $30`}},opencode:{type:`code`,subscription:{amount:10,currency:`USD`,period:`month`},tier:{amount:10,currency:`USD`,periodDays:7,label:`周额度 $30`}},"kimi-coding":{type:`code`},"zai-coding-cn":{type:`code`},"zai-coding":{type:`code`},"qwen-token-plan":{type:`code`},"qwen-token-plan-cn":{type:`code`},"xiaomi-token-plan-ams":{type:`code`},"xiaomi-token-plan-cn":{type:`code`},"xiaomi-token-plan-sgp":{type:`code`},"volcengine-token-plan":{type:`code`},"ark-token-plan":{type:`code`},"doubao-token-plan":{type:`code`},minimax:{type:`code`},"minimax-cn":{type:`code`},"minimax-token-plan":{type:`code`},"minimax-token-plan-cn":{type:`code`},"hunyuan-token-plan":{type:`code`},"tencent-token-plan":{type:`code`},"hy-token-plan":{type:`code`},"xinghuo-token-plan":{type:`code`},"xfyun-coding":{type:`code`},"spark-coding":{type:`code`},"huawei-token-plan":{type:`code`},"pangu-token-plan":{type:`code`},"huawei-maas-token-plan":{type:`code`},"volcengine-agent-plan":{type:`code`},"ark-agent-plan":{type:`code`},"baidu-token-plan":{type:`code`},"ernie-token-plan":{type:`code`},"wenxin-token-plan":{type:`code`}},F={glm:`zai-coding-cn`,bigmodel:`zai-coding-cn`,zhipu:`zai-coding-cn`,zhipuai:`zai-coding-cn`,zai:`zai-coding`,ark:`volcengine-token-plan`,volcengine:`volcengine-token-plan`,doubao:`doubao-token-plan`,moonshot:`kimi-coding`,kimi:`kimi-coding`,xiaomi:`xiaomi-token-plan-cn`,opencode:`opencode-go`};function ie(e){return e===``?e:F[e]??e}function ae(e){let t=re[ie(e)];return t?.type===`code`?t.tier:void 0}let oe=[{key:`deepseek-v4-flash`,input:.14,cacheHit:.0028,output:.28},{key:`deepseek-v4-pro`,input:.435,cacheHit:.003625,output:.87},{key:`gpt-5.6-sol`,input:5,cacheHit:.5,output:30},{key:`gpt-5.6-terra`,input:2,cacheHit:.2,output:12},{key:`gpt-5.6-luna`,input:.2,cacheHit:.02,output:1.2},{key:`glm-5.2`,input:1.4,cacheHit:.26,output:4.4},{key:`qwen3.8-max`,input:2,cacheHit:.21,output:6},{key:`kimi-k3`,input:2.82,cacheHit:.28,output:14.08},{key:`grok-4.6`,input:2,cacheHit:.5,output:6},{key:`gemini-2.5-pro`,input:1.25,cacheHit:.125,output:10}],se,ce,le,ue,de;function fe(e){let t=/:\/\//.test(e)?e:`https://${e}`;try{return new URL(t).origin}catch{return e.trim().toLowerCase().replace(/\/+$/,``)}}function pe(e,t){return fe(e)===fe(t)}function me(e){de=e.length>0?e:void 0}function he(){return de}function ge(e){return G(e)}function _e(e,t){let n=ve(e,t);if(n!==void 0)return{input:n.input,cacheHit:n.cacheHit,output:n.output,...n.currency===void 0?{}:{currency:n.currency},...n.offPeak===void 0?{}:{offPeak:n.offPeak}}}function ve(e,t){if(de===void 0)return;let n=ge(e),r=U(n),i=e=>ge(e.key)===n||U(e.key)===r;if(t!==void 0){for(let e of de)if(e.origin!==void 0&&e.origin!==``&&i(e)&&pe(e.origin,t))return e}for(let e of de)if((e.origin===void 0||e.origin===``)&&i(e))return e}function I(e){if(de===void 0)return;let t=ge(e),n=U(t);return de.find(e=>e.origin!==void 0&&e.origin!==``&&(ge(e.key)===t||U(e.key)===n))}function ye(e){se=typeof e.rate==`number`&&Number.isFinite(e.rate)&&e.rate>0?e.rate:void 0,ce=e.prices,le=e.extraModels}function be(e){ue=e}function xe(){return se??6.79}function Se(){return{rate:xe(),live:se!==void 0}}let Ce=.5,L=Date.parse(`2026-09-14T04:00:00Z`),R={input:1.5,cacheHit:.05,output:4.5},z={flash:R,"flash-vision-exp":R,pro:{input:4.5,cacheHit:.15,output:13.5}};function B(e){return e>=9&&e<12||e>=14&&e<18}function V(e){return e==null||!Number.isFinite(e)?`peak`:we(e)?`offPeak`:B((new Date(e).getUTCHours()+8)%24)?`peak`:`offPeak`}function we(e){let t=new Date(e+288e5).getUTCDay();return t===0||t===6}let Te=[540,720,840,1080];function Ee(e){return((e+288e5)%864e5+864e5)%864e5}function De(e){let t=V(e),n=Ee(e);for(let r=0;r<7;r++){let i=r*864e5-n;for(let n of Te){let r=i+n*6e4;if(!(r<=0)&&V(e+r)!==t)return{tier:t,nextSwitchInMs:r}}}let r=Te[0]??0;return{tier:t,nextSwitchInMs:864e5-n+r*6e4}}function Oe(e,t){let{nextSwitchInMs:n}=De(e);if(n>t)return null;let r=e+n;return{entering:V(r),atMs:r}}function ke(e){let t=Math.max(1,Math.ceil(e/6e4)),n=Math.floor(t/60),r=t%60;return n>0?`${n}h${String(r).padStart(2,`0`)}m`:`${r}m`}let Ae=`09:00-12:00 / 14:00-18:00`,je=`Standard / Flex`,Me=[{key:`flash`,name:`DeepSeek V4.1 Flash`,provider:`DeepSeek`,colorVar:`dsw-static-blue-500`,price:{currency:`CNY`,input:2,cacheHit:.04,output:8,offPeak:{input:1,cacheHit:.02,output:4}},peakHours:Ae},{key:`flash-vision-exp`,name:`DeepSeek V4 Flash Vision (Exp)`,provider:`DeepSeek`,colorVar:`dsw-static-blue-500`,retired:!0,price:{currency:`CNY`,input:2,cacheHit:.04,output:8,offPeak:{input:1,cacheHit:.02,output:4}},peakHours:Ae},{key:`pro`,name:`DeepSeek V4 Pro`,provider:`DeepSeek`,colorVar:`dsw-static-deepseek-500`,price:{currency:`CNY`,input:2,cacheHit:.04,output:8,offPeak:{input:1,cacheHit:.02,output:4}},peakHours:Ae},{key:`glm`,name:`GLM-5.2`,provider:`智谱 AI`,colorVar:`dsw-static-blue-600`,price:{currency:`CNY`,input:8,cacheHit:2,output:28}},{key:`glm-5.3`,name:`GLM-5.3`,provider:`智谱 AI`,colorVar:`dsw-static-blue-500`,price:{currency:`CNY`,input:8,cacheHit:2,output:28}},{key:`glm-5.3-flash`,name:`GLM-5.3-Flash`,provider:`智谱 AI`,colorVar:`dsw-static-blue-300`,price:{currency:`CNY`,input:.8,cacheHit:.23,output:2.8},promo:{factor:.5,endsAtMs:Date.UTC(2026,8,8,16,0,0),note:`限时 5 折`}},{key:`glm-4.6`,name:`GLM-4.6`,provider:`智谱 AI`,colorVar:`dsw-static-blue-400`,price:{currency:`CNY`,input:4,cacheHit:.8,output:16}},{key:`glm-4.5-air`,name:`GLM-4.5-Air`,provider:`智谱 AI`,colorVar:`dsw-static-blue-300`,price:{currency:`CNY`,input:.8,cacheHit:.16,output:2}},{key:`glm-4.7`,name:`GLM-4.7`,provider:`智谱 AI`,colorVar:`dsw-static-blue-400`,price:{currency:`CNY`,input:4,cacheHit:1,output:16},estimated:!0},{key:`glm-5-turbo`,name:`GLM-5-Turbo`,provider:`智谱 AI`,colorVar:`dsw-static-blue-500`,price:{currency:`CNY`,input:5,cacheHit:1.2,output:22}},{key:`glm-5.1`,name:`GLM-5.1`,provider:`智谱 AI`,colorVar:`dsw-static-blue-600`,price:{currency:`CNY`,input:6,cacheHit:1.2,output:24}},{key:`glm-5v-turbo`,name:`GLM-5V-Turbo`,provider:`智谱 AI`,colorVar:`dsw-static-blue-300`,price:{currency:`CNY`,input:5,cacheHit:1.2,output:22}},{key:`qwen-3.8-max`,name:`Qwen3.8 Max`,provider:`阿里通义`,colorVar:`dsw-static-blue-600`,price:{currency:`CNY`,input:12,cacheHit:1.5,output:36},extraRows:[{label:`显式缓存创建`,input:15},{label:`显式缓存命中`,input:1},{label:`Batch File`,input:6,output:18,note:`长期半价`},{label:`Batch Chat`,input:12,output:36,note:`与标准价一致`}]},{key:`qwen-3.8-flash`,name:`Qwen3.8 Flash`,provider:`阿里通义`,colorVar:`dsw-static-blue-400`,price:{currency:`CNY`,input:1,cacheHit:.1,output:3},extraRows:[{label:`显式缓存创建`,input:1.25},{label:`显式缓存命中`,input:.1},{label:`Batch File`,input:.5,output:1.5,note:`长期半价`},{label:`Batch Chat`,input:1,output:3,note:`与标准价一致`}]},{key:`qwen-max`,name:`Qwen3.7-Max`,provider:`阿里通义`,colorVar:`dsw-static-blue-300`,price:{currency:`CNY`,input:12,cacheHit:1.2,output:36},promo:{factor:.5,note:`限时 5 折`},extraRows:[{label:`显式缓存创建`,input:15},{label:`显式缓存命中`,input:1.2},{label:`Batch File`,input:6,output:18,note:`长期半价`},{label:`Batch Chat`,input:12,output:36,note:`与标准价一致`}]},{key:`qwen-plus`,name:`Qwen3.5-Plus`,provider:`阿里通义`,colorVar:`dsw-static-blue-500`,price:{currency:`CNY`,input:.8,cacheHit:.08,output:4.8},extraRows:[{label:`显式缓存创建`,input:1},{label:`显式缓存命中`,input:.08},{label:`Batch File`,input:.4,output:2.4,note:`长期半价`},{label:`Batch Chat`,input:.8,output:4.8,note:`与标准价一致`}]},{key:`qwen-flash`,name:`Qwen3.5-Flash`,provider:`阿里通义`,colorVar:`dsw-static-blue-400`,price:{currency:`CNY`,input:.2,cacheHit:.02,output:2},extraRows:[{label:`显式缓存创建`,input:.25},{label:`显式缓存命中`,input:.02}]},{key:`doubao`,name:`Doubao Seed-2.0 Pro`,provider:`字节豆包`,colorVar:`dsw-static-red-500`,price:{currency:`CNY`,input:3.2,cacheHit:.64,output:16}},{key:`doubao-mini`,name:`Doubao Seed-2.0 Mini`,provider:`字节豆包`,colorVar:`dsw-static-red-300`,price:{currency:`CNY`,input:.2,cacheHit:.02,output:2}},{key:`doubao-1.6`,name:`Doubao Seed-1.6`,provider:`字节豆包`,colorVar:`dsw-static-red-400`,price:{currency:`CNY`,input:.8,cacheHit:0,output:8}},{key:`doubao-seed-evolving`,name:`Doubao-Seed-Evolving`,provider:`字节豆包`,colorVar:`dsw-static-red-500`,price:{currency:`CNY`,input:6,cacheHit:1.2,output:30}},{key:`doubao-seed-2.1-pro`,name:`Doubao Seed-2.1 Pro`,provider:`字节豆包`,colorVar:`dsw-static-red-400`,price:{currency:`CNY`,input:6,cacheHit:1.2,output:30}},{key:`doubao-seed-2.1-turbo`,name:`Doubao Seed-2.1 Turbo`,provider:`字节豆包`,colorVar:`dsw-static-red-300`,price:{currency:`CNY`,input:3,cacheHit:.6,output:15}},{key:`kimi`,name:`Kimi K2.7 Code`,provider:`月之暗面`,colorVar:`dsw-static-neutral-bluish-700`,price:{currency:`CNY`,input:6.5,cacheHit:1.3,output:27}},{key:`kimi-k2.7-hs`,name:`Kimi K2.7 Code HighSpeed`,provider:`月之暗面`,colorVar:`dsw-static-neutral-bluish-600`,price:{currency:`CNY`,input:13,cacheHit:2.6,output:54}},{key:`kimi-k2.6`,name:`Kimi K2.6`,provider:`月之暗面`,colorVar:`dsw-static-neutral-bluish-500`,price:{currency:`CNY`,input:6.5,cacheHit:1.1,output:27}},{key:`kimi-k3`,name:`Kimi K3`,provider:`月之暗面`,colorVar:`dsw-static-neutral-bluish-500`,price:{currency:`CNY`,input:20,cacheHit:2,output:100}},{key:`mimo-v2.5`,name:`MiMo V2.5`,provider:`小米`,colorVar:`dsw-static-green-400`,price:{currency:`CNY`,input:1,cacheHit:.02,output:2}},{key:`mimo-v2.5-pro`,name:`MiMo V2.5 Pro`,provider:`小米`,colorVar:`dsw-static-green-400`,price:{currency:`CNY`,input:3,cacheHit:.025,output:6}},{key:`minimax`,name:`MiniMax-M3`,provider:`MiniMax`,colorVar:`dsw-static-amber-500`,price:{currency:`CNY`,input:2.1,cacheHit:.42,output:8.4}},{key:`minimax-m2.7`,name:`MiniMax-M2.7`,provider:`MiniMax`,colorVar:`dsw-static-amber-400`,price:{currency:`CNY`,input:2.1,cacheHit:.42,output:8.4}},{key:`minimax-m2.7-highspeed`,name:`MiniMax-M2.7-highspeed`,provider:`MiniMax`,colorVar:`dsw-static-amber-500`,price:{currency:`CNY`,input:4.2,cacheHit:.42,output:16.8}},{key:`ernie`,name:`ERNIE-5.1`,provider:`百度文心`,colorVar:`dsw-static-blue-300`,price:{currency:`CNY`,input:4,cacheHit:.4,output:18}},{key:`hunyuan`,name:`混元 Hy3`,provider:`腾讯混元`,colorVar:`dsw-static-amber-400`,price:{currency:`CNY`,input:1,cacheHit:.25,output:4}},{key:`hunyuan-t1`,name:`混元 T1`,provider:`腾讯混元`,colorVar:`dsw-static-amber-300`,price:{currency:`CNY`,input:1,cacheHit:.1,output:4}},{key:`yi`,name:`Yi-Lightning`,provider:`零一万物`,colorVar:`dsw-static-green-500`,price:{currency:`CNY`,input:.99,cacheHit:.1,output:.99}},{key:`step`,name:`Step 3.7 Flash`,provider:`阶跃星辰`,colorVar:`dsw-static-neutral-bluish-400`,price:{currency:`CNY`,input:1.35,cacheHit:.27,output:8.1}},{key:`spark`,name:`Spark 4.0 Ultra`,provider:`科大讯飞`,colorVar:`dsw-static-green-400`,price:{currency:`CNY`,input:5,cacheHit:.5,output:10},estimated:!0},{key:`sensenova`,name:`SenseNova 6.5`,provider:`商汤`,colorVar:`dsw-static-red-400`,price:{currency:`CNY`,input:4.5,cacheHit:.45,output:9},estimated:!0},{key:`baichuan`,name:`Baichuan M3-Plus`,provider:`百川智能`,colorVar:`dsw-static-neutral-bluish-500`,price:{currency:`CNY`,input:5,cacheHit:.5,output:9}},{key:`gpt-5.6-sol`,name:`GPT-5.6 Sol`,provider:`OpenAI`,colorVar:`dsw-static-green-500`,price:{currency:`USD`,input:5,cacheHit:.5,output:30}},{key:`gpt-5.6-terra`,name:`GPT-5.6 Terra`,provider:`OpenAI`,colorVar:`dsw-static-green-400`,price:{currency:`USD`,input:2,cacheHit:.2,output:12}},{key:`gpt-5.6-luna`,name:`GPT-5.6 Luna`,provider:`OpenAI`,colorVar:`dsw-static-green-500`,price:{currency:`USD`,input:.2,cacheHit:.02,output:1.2}},{key:`gemini-pro`,name:`Gemini 3.1 Pro`,provider:`Google`,colorVar:`dsw-static-blue-600`,price:{currency:`USD`,input:2,cacheHit:.2,output:12,offPeak:{input:1,cacheHit:.1,output:6}},peakHours:je,tierSemantics:`latency`},{key:`gemini-flash`,name:`Gemini 3.6 Flash`,provider:`Google`,colorVar:`dsw-static-blue-400`,price:{currency:`USD`,input:1.5,cacheHit:.15,output:7.5,offPeak:{input:.75,cacheHit:.075,output:3.75}},peakHours:je,tierSemantics:`latency`},{key:`grok`,name:`Grok 4.6`,provider:`xAI`,colorVar:`dsw-static-neutral-bluish-700`,price:{currency:`USD`,input:2,cacheHit:.5,output:6}},{key:`grok-4.3`,name:`Grok 4.3`,provider:`xAI`,colorVar:`dsw-static-neutral-bluish-500`,price:{currency:`USD`,input:1.25,cacheHit:.2,output:2.5}},{key:`llama`,name:`Llama 4 Maverick`,provider:`Meta`,colorVar:`dsw-static-red-500`,price:{currency:`USD`,input:.2,cacheHit:.05,output:.6}},{key:`llama-scout`,name:`Llama 4 Scout`,provider:`Meta`,colorVar:`dsw-static-red-400`,price:{currency:`USD`,input:.1,cacheHit:.025,output:.3}},{key:`claude-opus-4-6`,name:`Claude Opus 4.6`,provider:`Anthropic`,colorVar:`dsw-static-red-500`,price:{currency:`USD`,input:5,cacheHit:.5,output:25}},{key:`claude-sonnet-4-6`,name:`Claude Sonnet 4.6`,provider:`Anthropic`,colorVar:`dsw-static-red-400`,price:{currency:`USD`,input:3,cacheHit:.3,output:15}},{key:`claude-haiku-4-5`,name:`Claude Haiku 4.5`,provider:`Anthropic`,colorVar:`dsw-static-red-300`,price:{currency:`USD`,input:1,cacheHit:.1,output:5}},{key:`claude-opus-5`,name:`Claude Opus 5`,provider:`Anthropic`,colorVar:`dsw-static-red-500`,price:{currency:`USD`,input:5,cacheHit:.5,output:25}},{key:`claude-sonnet-5`,name:`Claude Sonnet 5`,provider:`Anthropic`,colorVar:`dsw-static-red-400`,price:{currency:`USD`,input:2,cacheHit:.2,output:10}},{key:`mistral-large-2512`,name:`Mistral Large 3`,provider:`Mistral AI`,colorVar:`dsw-static-violet-500`,price:{currency:`USD`,input:.5,cacheHit:.05,output:1.5}},{key:`mistral-small-2603`,name:`Mistral Small 4`,provider:`Mistral AI`,colorVar:`dsw-static-violet-400`,price:{currency:`USD`,input:.15,cacheHit:.015,output:.6}},{key:`ministral-8b-latest`,name:`Ministral 8B`,provider:`Mistral AI`,colorVar:`dsw-static-violet-300`,price:{currency:`USD`,input:.1,cacheHit:.01,output:.1}},{key:`command-a-03-2025`,name:`Command A`,provider:`Cohere`,colorVar:`dsw-static-cyan-500`,price:{currency:`USD`,input:2.5,cacheHit:.25,output:10}},{key:`command-r-08-2024`,name:`Command R`,provider:`Cohere`,colorVar:`dsw-static-cyan-400`,price:{currency:`USD`,input:.15,cacheHit:.015,output:.6}},{key:`longcat-2.0`,name:`LongCat 2.0`,provider:`美团`,colorVar:`dsw-static-amber-500`,price:{currency:`CNY`,input:4,cacheHit:.8,output:16},estimated:!0},{key:`minicpm-v-4.5`,name:`MiniCPM-V 4.5`,provider:`面壁智能`,colorVar:`dsw-static-green-500`,price:{currency:`CNY`,input:1,cacheHit:.2,output:4},estimated:!0},{key:`ernie-4.5`,name:`ERNIE-4.5 300B`,provider:`百度文心`,colorVar:`dsw-static-blue-300`,price:{currency:`CNY`,input:2,cacheHit:.4,output:8},estimated:!0},{key:`dots-3-note-preview`,name:`Dots3-Note Preview`,provider:`小红书`,colorVar:`dsw-static-red-500`,price:{currency:`CNY`,input:2,cacheHit:.4,output:8},estimated:!0},{key:`qwen3.6-max`,name:`Qwen3.6 Max`,provider:`阿里通义`,colorVar:`dsw-static-orange-500`,price:{currency:`CNY`,input:9,cacheHit:.9,output:54},extraRows:[{label:`显式缓存创建`,input:11.25},{label:`显式缓存命中`,input:.9}]},{key:`qwen3-coder-plus`,name:`Qwen3-Coder Plus`,provider:`阿里通义`,colorVar:`dsw-static-orange-400`,price:{currency:`CNY`,input:4,cacheHit:.8,output:16},extraRows:[{label:`显式缓存创建`,input:5},{label:`显式缓存命中`,input:.4}]},{key:`qwen3-coder`,name:`Qwen3-Coder 480B`,provider:`阿里通义`,colorVar:`dsw-static-orange-300`,price:{currency:`CNY`,input:4,cacheHit:.8,output:16},estimated:!0},{key:`glm-4.5-x`,name:`GLM-4.5-X`,provider:`智谱 AI`,colorVar:`dsw-static-blue-400`,price:{currency:`CNY`,input:4,cacheHit:1,output:16},estimated:!0},{key:`glm-5.2-fast`,name:`GLM-5.2 Fast`,provider:`智谱 AI`,colorVar:`dsw-static-blue-300`,price:{currency:`CNY`,input:6,cacheHit:1.2,output:24},estimated:!0},{key:`kimi-k3-fast`,name:`Kimi K3 Fast`,provider:`月之暗面`,colorVar:`dsw-static-cyan-400`,price:{currency:`CNY`,input:20,cacheHit:2,output:100},estimated:!0},{key:`kimi-k2.7-code-fast`,name:`Kimi K2.7 Code Fast`,provider:`月之暗面`,colorVar:`dsw-static-cyan-400`,price:{currency:`CNY`,input:6.5,cacheHit:1.3,output:27},estimated:!0},{key:`kimi-k2.6-fast`,name:`Kimi K2.6 Fast`,provider:`月之暗面`,colorVar:`dsw-static-cyan-300`,price:{currency:`CNY`,input:6.5,cacheHit:1.1,output:27},estimated:!0},{key:`kimi-k2.6-turbo`,name:`Kimi K2.6 Turbo`,provider:`月之暗面`,colorVar:`dsw-static-cyan-300`,price:{currency:`CNY`,input:6.5,cacheHit:1.1,output:27},estimated:!0},{key:`kimi-k2-thinking-turbo`,name:`Kimi K2 Thinking Turbo`,provider:`月之暗面`,colorVar:`dsw-static-cyan-300`,price:{currency:`CNY`,input:8,cacheHit:1,output:58}},{key:`doubao-seed-2.0-code`,name:`Doubao Seed-2.0 Code`,provider:`字节豆包`,colorVar:`dsw-static-red-500`,price:{currency:`CNY`,input:3.2,cacheHit:.64,output:16}},{key:`doubao-seed-2.0-lite`,name:`Doubao Seed-2.0 Lite`,provider:`字节豆包`,colorVar:`dsw-static-red-300`,price:{currency:`CNY`,input:.6,cacheHit:.12,output:3.6}},{key:`other`,name:`其他模型`,provider:`Custom`,colorVar:`dsw-static-neutral-bluish-500`,price:{currency:`CNY`,input:0,cacheHit:0,cacheMiss:0,output:0}}],H={"deepseek-v4-flash":`flash`,"deepseek-v4-flash-vision-exp":`flash-vision-exp`,"deepseek-v4.1-flash":`flash`,"deepseek-v4.1-flash-expires-on-0910":`flash`,"deepseek-flash":`flash`,"deepseek-v4-pro":`pro`,"glm-5.2":`glm`,"glm-4.5-air":`glm-4.5-air`,"glm-4.5air":`glm-4.5-air`,"glm-4.7":`glm-4.7`,"glm-5-turbo":`glm-5-turbo`,"glm-5.1":`glm-5.1`,"glm-5.3-flash":`glm-5.3-flash`,"glm-5v-turbo":`glm-5v-turbo`,"glm-5v.1":`glm-5v-turbo`,"claude-opus-4-6":`claude-opus-4-6`,"claude-opus-4.6":`claude-opus-4-6`,"claude-sonnet-4-6":`claude-sonnet-4-6`,"claude-sonnet-4.6":`claude-sonnet-4-6`,"claude-haiku-4-5":`claude-haiku-4-5`,"claude-haiku-4.5":`claude-haiku-4-5`,"claude-opus-5":`claude-opus-5`,"claude-sonnet-5":`claude-sonnet-5`,"mistral-large-2512":`mistral-large-2512`,"mistral-large-3":`mistral-large-2512`,"mistral-small-2603":`mistral-small-2603`,"mistral-small-4":`mistral-small-2603`,"ministral-8b-latest":`ministral-8b-latest`,"ministral-8b":`ministral-8b-latest`,"command-a-03-2025":`command-a-03-2025`,"command-a":`command-a-03-2025`,"command-r-08-2024":`command-r-08-2024`,"command-r":`command-r-08-2024`,hy3:`hunyuan`,"longcat-2.0":`longcat-2.0`,"longcat-2":`longcat-2.0`,"minicpm-v-4.5":`minicpm-v-4.5`,"minicpm-v-4.5-thinking":`minicpm-v-4.5`,"ernie-4.5":`ernie-4.5`,"ernie-4.5-300b":`ernie-4.5`,"dots-3-note-preview":`dots-3-note-preview`,"dots-3-note":`dots-3-note-preview`,"dots3-note-preview":`dots-3-note-preview`,"rednote-dots3":`dots-3-note-preview`,"doubao-seed-evolving":`doubao-seed-evolving`,"doubao-seed-evolve":`doubao-seed-evolving`,"doubao-seed-2.1-pro":`doubao-seed-2.1-pro`,"doubao-seed-2.1-pro-290000":`doubao-seed-2.1-pro`,"doubao-seed-2.1-turbo":`doubao-seed-2.1-turbo`,"doubao-seed-2-1-turbo":`doubao-seed-2.1-turbo`,"qwen3.8-max":`qwen-3.8-max`,"qwen3.8-flash":`qwen-3.8-flash`,"qwen3.7-max":`qwen-max`,"qwen3.6-max":`qwen3.6-max`,"qwen3.6-max-preview":`qwen3.6-max`,"qwen3-coder-plus":`qwen3-coder-plus`,"qwen3-coder":`qwen3-coder`,"qwen3-coder-480b":`qwen3-coder`,"glm-4.5-x":`glm-4.5-x`,"glm-4.5x":`glm-4.5-x`,"glm-5.2-fast":`glm-5.2-fast`,"glm-5.2f":`glm-5.2-fast`,"kimi-k3-fast":`kimi-k3-fast`,"kimi-k3f":`kimi-k3-fast`,"kimi-k2.7-code-fast":`kimi-k2.7-code-fast`,"kimi-k2.7-code-f":`kimi-k2.7-code-fast`,"kimi-k2.6-fast":`kimi-k2.6-fast`,"kimi-k2.6-turbo":`kimi-k2.6-turbo`,"kimi-k2-thinking-turbo":`kimi-k2-thinking-turbo`,"doubao-seed-2.0-code":`doubao-seed-2.0-code`,"doubao-seed-2-0-code":`doubao-seed-2.0-code`,"doubao-seed-2.0-lite":`doubao-seed-2.0-lite`,"doubao-seed-2-0-lite":`doubao-seed-2.0-lite`,"qwen-max":`qwen-max`,"hunyuan-t1":`hunyuan-t1`,"step-3.7-flash":`step`,"seed-2.0-mini":`doubao-mini`,k3:`kimi-k3`,"kimi-k3":`kimi-k3`,"minimax-m1":`minimax`,"minimax-m2":`minimax`,"minimax-m3":`minimax`,"minimax-m2.7":`minimax-m2.7`,"minimax-m2.7-highspeed":`minimax-m2.7-highspeed`,"minimax-m2.7-high-speed":`minimax-m2.7-highspeed`,"minimax-m2-7":`minimax-m2.7`,"minimax-m2-7-highspeed":`minimax-m2.7-highspeed`,"minimax-m2-7-high-speed":`minimax-m2.7-highspeed`};function U(e){return String(e).toLowerCase().replace(/\([^)]*\)/g,``).replace(/[^a-z0-9]+/g,``)}let Ne=(()=>{let e=new Map,t=(t,n)=>{let r=U(t);r!==``&&!e.has(r)&&e.set(r,n)};for(let e of Me)t(e.key,e.key);for(let[e,n]of Object.entries(H))t(e,n);for(let e of oe)t(e.key,e.key);return e})();function Pe(e){let t=[],n=e=>{e!==``&&!t.includes(e)&&t.push(e)},r=e=>{let t=e;for(;;){let e=t.replace(/[-_]\d{3,}$/u,``);if(e===t||e===``)return;t=e,n(t)}},i=e.lastIndexOf(`/`);if(i>0&&i<e.length-1){let t=e.slice(i+1);n(t),r(t)}return r(e),t}function W(e){let t=H[e];if(t!==void 0)return t;let n=U(e);if(n===``)return;let r=Ne.get(n);return r===void 0?(le??[]).find(e=>U(e.key)===n)?.key:r}function G(e){let t=H[e]??e;if(t===e){let t=U(e);if(t!==``){let e=Ne.get(t);if(e!==void 0)return e;let n=(le??[]).find(e=>U(e.key)===t);if(n!==void 0)return n.key}for(let t of Pe(e)){let e=W(t);if(e!==void 0)return e}}return t}function Fe(e){let t=G(e),n=ce?.[t];if(n!==void 0)return n;let r=oe.find(e=>e.key.toLowerCase()===t.toLowerCase());if(r!==void 0)return{input:r.input,cacheHit:r.cacheHit,output:r.output}}function Ie(e){let t=G(e),n=Me.find(e=>e.key===t),r=le?.find(e=>e.key===t),i=n??(r===void 0?(()=>{let e=Me.at(-1);if(e!==void 0)return e;throw Error(`MODEL_CATALOG must not be empty`)})():K(r)),a=_e(t);if(a!==void 0)return{...i,userPriced:!0,price:{currency:a.currency??`CNY`,input:a.input,cacheHit:a.cacheHit,output:a.output,...a.offPeak===void 0?{}:{offPeak:a.offPeak}}};let o=Fe(t);return o===void 0?i:{...i,price:{currency:`USD`,input:o.input,cacheHit:o.cacheHit,output:o.output}}}function K(e){return{key:e.key,name:e.name,provider:e.provider,colorVar:`dsw-static-neutral-400`,price:{currency:`USD`,input:e.price.input,cacheHit:e.price.cacheHit,output:e.price.output}}}function Le(e,t){let n=e.endsAtMs!==void 0&&t>=e.endsAtMs;return Number.isFinite(t)&&!n&&e.factor>0&&e.factor<1}function Re(e,t){let{promo:n}=e;if(n===void 0||!Le(n,t))return e;let r=e=>({input:e.input*n.factor,cacheHit:e.cacheHit*n.factor,...e.cacheMiss===void 0?{}:{cacheMiss:e.cacheMiss*n.factor},output:e.output*n.factor});return{...e,price:{...r(e.price),currency:e.price.currency,...e.price.offPeak===void 0?{}:{offPeak:r(e.price.offPeak)}}}}function ze(e,t){if(e.key!==`pro`||t>=L)return e;let n=z.pro;return n===void 0?e:{...e,price:{currency:`CNY`,input:n.input*2,cacheHit:n.cacheHit*2,output:n.output*2,offPeak:{...n}}}}function Be(e=Date.now()){let t=[...Me.filter(e=>e.retired!==!0).map(t=>ze(Re(t,e),e))],n=new Set(t.map(e=>e.key.toLowerCase())),r=new Set(t.map(e=>U(e.key)));for(let e of ue??[]){let i=e.id.toLowerCase();if((()=>{let t=G(e.id);return Me.find(e=>e.key===t)})()!==void 0)continue;let a=U(e.id);if(n.has(i)||a!==``&&r.has(a))continue;let o=(le??[]).find(e=>U(e.key)===a),s;if(o!==void 0)s=K(o),e.name!==void 0&&e.name!==``&&(s={...s,name:e.name});else{let t=Fe(i);s=t===void 0?{key:G(e.id),name:e.name??e.id,provider:e.provider,colorVar:`dsw-static-neutral-400`,price:{currency:`USD`,input:0,cacheHit:0,output:0},uncatalogued:!0}:{key:i,name:e.name??e.id,provider:e.provider,colorVar:`dsw-static-neutral-400`,price:{currency:`USD`,input:t.input,cacheHit:t.cacheHit,output:t.output}}}n.add(s.key.toLowerCase()),a!==``&&r.add(a),t.push(s)}return t.map(e=>{let t=_e(e.key);return t===void 0?e:{...e,userPriced:!0,price:{currency:t.currency??`CNY`,input:t.input,cacheHit:t.cacheHit,output:t.output}}})}function Ve(e){let t=getComputedStyle(document.documentElement).getPropertyValue(`--${e}`).trim();return t===``?`#8b95a3`:t}function He(e,t,n){let r=t.cacheMiss>0?t.cacheMiss:Math.max(0,t.input-t.cacheHit),i=Math.min(t.cacheHit,t.input),a=(r*(e.cacheMiss??e.input)+i*e.cacheHit+t.output*e.output)/1e6;return n===`USD`?a*xe():a}function Ue(e,t,n=Ce,r=Date.now()){let i=Re(e,r),a=He(i.price,t,i.price.currency),o=i.price.offPeak===void 0?a:He(i.price.offPeak,t,i.price.currency);return a*n+o*(1-n)}function q(e){let t=xe();return t>0?e/t:e}function J(e,t=`cny`){let n=Number(e);if(!Number.isFinite(n))return t===`cny`?`¥0`:`$0`;let r=t===`cny`?`¥`:`$`;return n<=0?`${r}0`:n>=1e3?`${r}${n.toFixed(0)}`:n>=10?`${r}${n.toFixed(1)}`:n>=.1?`${r}${n.toFixed(2)}`:`${r}${n.toFixed(3)}`}function We(e,t=`CNY`){return e===0?`免费`:t===`USD`?e>=10?`$${e.toFixed(1)}`:`$${e.toFixed(2)}`:e>=10?`¥${e.toFixed(1)}`:`¥${e.toFixed(2)}`}function Ge(e,t,n,r){return r<=0||!Number.isFinite(r)||t===(n===`usd`?`USD`:`CNY`)?e:n===`usd`?e/r:e*r}function Y(e){return e>=1e9?`${(e/1e9).toFixed(2)}B`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(0)}K`:String(e)}function Ke(e){let t=Number(e);return Number.isFinite(t)?`${t.toFixed(1)}%`:`0.0%`}let X={top:18,right:40,bottom:26,left:46};function qe(e){let[,t,n]=e.split(`-`);return`${Number(t)}/${Number(n)}`}function Je(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(Math.round(e))}function Ye(e,t){let n=[];for(let r=0;r<e;r+=t)n.push(r);return e>0&&n[n.length-1]!==e-1&&n.push(e-1),n}let Xe={key:`__total__`,name:`总计`,color:``};function Ze({data:e,models:t=[],currency:n=`cny`,metric:i=`cost`}){let[a,s]=(0,r.useState)(null),c=e=>J(n===`usd`?q(e):e,n),l=e=>i===`tokens`?Je(e):c(e),u=e=>i===`tokens`?e.tokens??0:e.cost,d=(0,r.useMemo)(()=>{let n=e.length;if(n===0)return null;let r=680-X.left-X.right,a=220-X.top-X.bottom,o=e=>n===1?X.left+r/2:X.left+r*e/(n-1),s=Math.max(...i===`tokens`?e.map(e=>e.tokens??0):e.map(e=>Math.max(e.cost,Object.values(e.byModel??{}).reduce((e,t)=>e+t,0))),1e-4),c=e=>X.top+a-e/s*a,l=Math.max(...e.map(e=>e.calls),1),d=e=>X.top+a-e/l*a,f=r/n,p=Math.min(18,f*.6);return{n,plotW:r,plotH:a,inner:o,yCost:c,yCalls:d,barW:p,bars:e.flatMap((e,n)=>{let r=o(n)-p/2;if(t.length===0||i===`tokens`)return[{date:e.date,model:Xe,x:r,base:0,value:u(e),topRounded:!0}];let a=null;for(let n of t)(e.byModel?.[n.key]??0)>0&&(a=n.key);let s=0;return t.map(t=>{let n=e.byModel?.[t.key]??0,i={date:e.date,model:t,x:r,base:s,value:n,topRounded:t.key===a};return s+=n,i})}),costTicks:[0,.25,.5,.75,1].map(e=>s*e).reverse(),callsTicks:[0,.25,.5,.75,1].map(e=>l*e).reverse(),linePath:e.map((e,t)=>{let n=d(e.calls);return`${t===0?`M`:`L`}${o(t)} ${n}`}).join(` `)}},[e,t,i]);if(d===null)return(0,o.jsx)(`div`,{className:P.chartEmpty,children:`暂无趋势数据`});let{n:f,plotW:p,plotH:m,inner:h,yCost:g,yCalls:_,barW:v,bars:y,costTicks:b,callsTicks:ee,linePath:x}=d,S=a===null?void 0:e[a],C=Ye(f,Math.max(1,Math.ceil(f/8)));return(0,o.jsxs)(`div`,{className:P.chartWrap,children:[(0,o.jsxs)(`svg`,{viewBox:`0 0 680 220`,className:P.chartSvg,role:`img`,"aria-label":`Daily cost by model and total calls`,onMouseLeave:()=>{s(null)},onMouseMove:e=>{let t=e.currentTarget.getBoundingClientRect(),n=((e.clientX-t.left)/t.width*680-X.left)/p,r=Math.round(n*(f-1));s(Math.min(Math.max(r,0),f-1))},children:[b.map((e,t)=>{let n=g(e);return(0,o.jsxs)(`g`,{children:[(0,o.jsx)(`line`,{x1:X.left,x2:680-X.right,y1:n,y2:n,className:P.chartGrid}),(0,o.jsx)(`text`,{x:X.left-8,y:n+3,textAnchor:`end`,className:P.chartAxisLabel,children:l(e)})]},`cost-${t}`)}),y.map(t=>{if(t.value>0)return(0,o.jsx)(`rect`,{x:t.x,y:g(t.base+t.value),width:v,height:g(t.base)-g(t.base+t.value),rx:t.topRounded?2:0,className:t.model.color===``?P.chartBar:P.chartStack,style:t.model.color===``?void 0:{fill:t.model.color}},`${t.date}-${t.model.key}`);let n=e.find(e=>e.date===t.date);return n!==void 0&&n.calls>0&&t.base===0?(0,o.jsx)(`rect`,{x:t.x,y:g(0)-1,width:v,height:1,rx:0,className:P.chartBarPlaceholder},`${t.date}-${t.model.key}-placeholder`):null}),(0,o.jsx)(`path`,{d:x,fill:`none`,className:P.chartLine}),ee.map((e,t)=>{let n=_(e);return(0,o.jsx)(`text`,{x:680-X.right+8,y:n+3,textAnchor:`start`,className:P.chartAxisLabel,children:Je(e)},`calls-${t}`)}),C.map(t=>{let n=e[t];return n===void 0?null:(0,o.jsx)(`text`,{x:h(t),y:214,textAnchor:`middle`,className:P.chartAxisLabel,children:qe(n.date)},n.date)}),a!==null&&(0,o.jsx)(`line`,{x1:h(a),x2:h(a),y1:X.top,y2:X.top+m,className:P.chartCrosshair})]}),S!==void 0&&a!==null&&(0,o.jsxs)(`div`,{className:P.chartTooltip,style:{left:`${h(a)/680*100}%`,top:`${g(S.cost)/220*100}%`},children:[(0,o.jsx)(`div`,{className:P.chartTooltipDate,children:S.date}),i!==`tokens`&&t.filter(e=>(S.byModel?.[e.key]??0)>0).map(e=>(0,o.jsxs)(`div`,{className:P.chartTooltipRow,children:[(0,o.jsx)(`span`,{className:P.chartTooltipSwatch,style:{background:e.color}}),e.name,` `,(0,o.jsx)(`strong`,{children:c(S.byModel?.[e.key]??0)})]},e.key)),(0,o.jsxs)(`div`,{className:P.chartTooltipRow,children:[(0,o.jsx)(`span`,{className:P.chartLegendBar}),`总计 `,(0,o.jsx)(`strong`,{children:i===`tokens`?Je(S.tokens??0):c(S.cost)})]}),(0,o.jsxs)(`div`,{className:P.chartTooltipRow,children:[(0,o.jsx)(`span`,{className:P.chartLegendLine}),`调用 `,(0,o.jsx)(`strong`,{children:S.calls.toLocaleString()})]})]}),t.length>0&&i!==`tokens`&&(0,o.jsxs)(`div`,{className:P.chartLegend,children:[t.map(e=>(0,o.jsxs)(`span`,{children:[(0,o.jsx)(`span`,{className:P.chartTooltipSwatch,style:{background:e.color}}),e.name]},e.key)),(0,o.jsxs)(`span`,{children:[(0,o.jsx)(`span`,{className:P.chartLegendLine}),`调用`]})]})]})}let Z={top:14,right:42,bottom:22,left:46};function Qe(e){return e.slice(5,13).replace(`T`,` `)}function $e(e){return String(e>=100?Math.round(e):Number(e.toFixed(1)))}function et(e){return e<1e4?`${Math.round(e)} ms`:e<6e4?`${(e/1e3).toFixed(1)} s`:`${(e/6e4).toFixed(1)} min`}function tt(e){return e>=1e3?`${(e/1e3).toFixed(1)}k`:e.toFixed(1)}function nt(e,t,n){return t===`ttft`?`${Math.round(e)} ms`:`${e.toFixed(1)} ${n(`perfTpsUnit`)}`}function rt({perf:e,models:t,t:n}){let[i,a]=(0,r.useState)(()=>M()),[s,c]=(0,r.useState)(null),l=e=>{a(e),ne(e)},u=e=>t.find(t=>t.key===e)?.color??`#8b95a3`,f=(0,r.useMemo)(()=>e===void 0?[]:Object.entries(e.byModel).map(([e,n])=>({key:e,name:t.find(t=>t.key===e)?.name??e,color:u(e),samples:n.samples,ttftAvg:n.ttftAvg,ttftP50:n.ttftP50,ttftP90:n.ttftP90,...n.ttftMax===void 0?{}:{ttftMax:n.ttftMax},...n.ttftSpikes===void 0?{}:{ttftSpikes:n.ttftSpikes},...n.tpsAvg===void 0?{}:{tpsAvg:n.tpsAvg},latencyAvg:n.latencyAvg,estimatedSamples:n.estimatedSamples})).sort((e,t)=>t.samples-e.samples||t.ttftP90-e.ttftP90),[e,t]),p=(0,r.useMemo)(()=>{if(e===void 0)return[];if(i.models!==void 0){let t=new Set(Object.keys(e.byModel));return i.models.filter(e=>t.has(e))}return f.slice(0,5).map(e=>e.key)},[e,f,i.models]),m=(0,r.useMemo)(()=>{if(e===void 0)return null;let t=Object.keys(e.byHourModel).sort().slice(-48);if(t.length===0)return null;let n=t.length,r=680-Z.left-Z.right,a=180-Z.top-Z.bottom,o=e=>n===1?Z.left+r/2:Z.left+r*e/(n-1),s=new Set(p),c=e=>i.metric===`ttft`?e?.ttftAvg:e?.tpsAvg,l=[],u=0;for(let r of f){if(!s.has(r.key))continue;let i=[];for(let a=0;a<n;a++){let n=t[a];if(n===void 0)continue;let s=c(e.byHourModel[n]?.[r.key]);s===void 0||!Number.isFinite(s)||(i.push({i:a,x:o(a),y:0,v:s}),s>u&&(u=s))}l.push({key:r.key,name:r.name,color:r.color,segments:[],points:i})}let d=l.reduce((e,t)=>e+t.points.length,0);u=Math.max(u,1);let m=e=>Z.top+a-e/u*a;for(let e of l){let t=``,n=-2;for(let r of e.points)r.y=m(r.v),t!==``&&r.i!==n+1&&(e.segments.push(t),t=``),t+=`${t===``?`M`:`L`}${r.x} ${r.y} `,n=r.i;t!==``&&e.segments.push(t)}let h=Math.max(1,Math.ceil(n/8)),g=[];for(let e=0;e<n;e+=h)g.push(e);return g[g.length-1]!==n-1&&g.push(n-1),{hourKeys:t,n,plotW:r,plotH:a,inner:o,yOf:m,series:l,ticks:[0,.5,1].map(e=>u*e).reverse(),xTicks:g,totalPoints:d}},[e,f,p,i.metric]);if(e===void 0||f.length===0)return(0,o.jsx)(`div`,{className:P.chartEmpty,"data-testid":`billing-perf-empty`,children:n(`perfEmpty`)});let h=e=>{let t=p.includes(e)?p.filter(t=>t!==e):[...p,e];l({metric:i.metric,models:t})},g=e=>{l({metric:e,...i.models===void 0?{}:{models:i.models}})},_=s===null||m===null?[]:m.series.flatMap(e=>{let t=e.points.find(e=>e.i===s);return t===void 0?[]:[{key:e.key,name:e.name,color:e.color,v:t.v}]});return(0,o.jsxs)(`div`,{"data-testid":`billing-perf-panel`,children:[(0,o.jsx)(`div`,{className:P.tableScroll,"data-testid":`billing-perf-table`,children:(0,o.jsxs)(`table`,{className:P.modelTable,children:[(0,o.jsx)(`thead`,{children:(0,o.jsxs)(`tr`,{children:[(0,o.jsx)(`th`,{children:n(`model`)}),(0,o.jsx)(`th`,{className:P.numCol,children:n(`perfSamples`)}),(0,o.jsx)(`th`,{className:P.numCol,children:n(`perfTtft`)}),(0,o.jsx)(`th`,{className:P.numCol,children:n(`perfP50`)}),(0,o.jsx)(`th`,{className:P.numCol,children:n(`perfP90`)}),(0,o.jsx)(`th`,{className:P.numCol,children:n(`perfMax`)}),(0,o.jsx)(`th`,{className:P.numCol,children:n(`perfTps`)}),(0,o.jsx)(`th`,{className:P.numCol,children:n(`perfLatency`)}),(0,o.jsx)(`th`,{className:P.numCol,children:n(`perfEstimated`)})]})}),(0,o.jsx)(`tbody`,{children:f.map(e=>(0,o.jsxs)(`tr`,{children:[(0,o.jsx)(`td`,{children:(0,o.jsxs)(`span`,{className:P.modelCell,children:[(0,o.jsx)(`span`,{className:P.modelDot,style:{background:e.color}}),(0,o.jsx)(`span`,{className:P.modelName,children:e.name})]})}),(0,o.jsx)(`td`,{className:P.numCol,children:e.samples.toLocaleString()}),(0,o.jsx)(`td`,{className:P.numCol,children:et(e.ttftAvg)}),(0,o.jsx)(`td`,{className:P.numCol,children:et(e.ttftP50)}),(0,o.jsx)(`td`,{className:P.numCol,children:et(e.ttftP90)}),(0,o.jsx)(`td`,{className:P.numCol,children:e.ttftMax===void 0?(0,o.jsx)(`span`,{className:P.na,children:`—`}):(0,o.jsxs)(`span`,{children:[et(e.ttftMax),e.ttftSpikes!==void 0&&e.ttftSpikes>0?` (${e.ttftSpikes}↑)`:``]})}),(0,o.jsx)(`td`,{className:P.numCol,children:e.tpsAvg===void 0?(0,o.jsx)(`span`,{className:P.na,children:`—`}):tt(e.tpsAvg)}),(0,o.jsx)(`td`,{className:P.numCol,children:et(e.latencyAvg)}),(0,o.jsx)(`td`,{className:P.numCol,children:e.estimatedSamples>0?e.estimatedSamples:(0,o.jsx)(`span`,{className:P.na,children:`—`})})]},e.key))})]})}),m!==null&&(0,o.jsxs)(`div`,{"data-testid":`billing-perf-hour`,children:[(0,o.jsx)(`div`,{className:P.perfBar,children:(0,o.jsx)(`span`,{className:P.rangeToggle,role:`group`,"aria-label":n(`perfTitle`),children:[`ttft`,`tps`].map(e=>(0,o.jsx)(`button`,{type:`button`,className:d(P.rangeButton,i.metric===e&&P.rangeButtonActive),"aria-pressed":i.metric===e,"data-testid":`billing-perf-tab-${e}`,onClick:()=>{g(e)},children:e===`ttft`?`${n(`perfTtft`)} (ms)`:`${n(`perfTps`)} (${n(`perfTpsUnit`)})`},e))})}),(0,o.jsxs)(`div`,{className:P.perfChips,role:`group`,"aria-label":n(`model`),children:[(0,o.jsx)(`button`,{type:`button`,className:P.perfChip,"data-testid":`billing-perf-chip-all`,onClick:()=>{l({metric:i.metric,models:f.map(e=>e.key)})},children:n(`perfAll`)}),f.map(e=>{let t=p.includes(e.key);return(0,o.jsxs)(`button`,{type:`button`,className:d(P.perfChip,!t&&P.perfChipOff),style:t?{color:e.color,borderColor:`color-mix(in srgb, ${e.color} 45%, transparent)`}:void 0,"aria-pressed":t,"data-testid":`billing-perf-chip-${e.key}`,onClick:()=>{h(e.key)},children:[(0,o.jsx)(`span`,{className:P.perfChipDot,style:{background:t?e.color:`var(--dsw-alias-label-dimmed)`}}),e.name]},e.key)})]}),m.totalPoints>0?(0,o.jsxs)(`div`,{className:P.chartWrap,children:[(0,o.jsxs)(`svg`,{viewBox:`0 0 680 180`,className:P.chartSvg,role:`img`,"aria-label":`Hourly perf comparison by model`,onMouseLeave:()=>{c(null)},onMouseMove:e=>{let t=e.currentTarget.getBoundingClientRect(),n=((e.clientX-t.left)/t.width*680-Z.left)/m.plotW,r=Math.round(n*(m.n-1));c(Math.min(Math.max(r,0),m.n-1))},children:[m.ticks.map((e,t)=>{let n=m.yOf(e);return(0,o.jsxs)(`g`,{children:[(0,o.jsx)(`line`,{x1:Z.left,x2:680-Z.right,y1:n,y2:n,className:P.chartGrid}),(0,o.jsx)(`text`,{x:Z.left-8,y:n+3,textAnchor:`end`,className:P.chartAxisLabel,children:$e(e)})]},`tick-${t}`)}),m.series.map(e=>e.segments.map((t,n)=>(0,o.jsx)(`path`,{d:t,fill:`none`,className:P.chartLine,style:{stroke:e.color}},`${e.key}-${n}`))),m.xTicks.map(e=>{let t=m.hourKeys[e];return t===void 0?null:(0,o.jsx)(`text`,{x:m.inner(e),y:174,textAnchor:`middle`,className:P.chartAxisLabel,children:Qe(t)},t)}),s!==null&&(0,o.jsx)(`line`,{x1:m.inner(s),x2:m.inner(s),y1:Z.top,y2:Z.top+m.plotH,className:P.chartCrosshair}),s!==null&&m.series.map(e=>{let t=e.points.find(e=>e.i===s);return t===void 0?null:(0,o.jsx)(`circle`,{cx:t.x,cy:t.y,r:3.5,fill:e.color,className:P.chartHoverDot},`${e.key}-dot`)})]}),s!==null&&_.length>0&&(0,o.jsxs)(`div`,{className:P.chartTooltip,"data-testid":`billing-perf-tooltip`,style:{left:`${m.inner(s)/680*100}%`,top:`${(Z.top+m.plotH/2)/180*100}%`},children:[(0,o.jsx)(`div`,{className:P.chartTooltipDate,children:Qe(m.hourKeys[s]??``)}),_.map(e=>(0,o.jsxs)(`div`,{className:P.chartTooltipRow,children:[(0,o.jsx)(`span`,{className:P.chartTooltipSwatch,style:{background:e.color}}),e.name,` `,(0,o.jsx)(`strong`,{children:nt(e.v,i.metric,n)})]},e.key))]})]}):(0,o.jsx)(`div`,{className:P.chartEmpty,"data-testid":`billing-perf-chart-empty`,children:n(`perfChartEmpty`)})]}),m===null&&(0,o.jsx)(`div`,{className:P.chartEmpty,"data-testid":`billing-perf-chart-empty`,children:n(`perfChartEmpty`)})]})}let it=`@kenz1117/dsh-ui-usage-billing`,at=`kenz1117`;function ot({t:e,version:t}){return(0,o.jsxs)(`section`,{className:P.setCard,"data-testid":`billing-plugin-info`,children:[(0,o.jsxs)(`div`,{className:P.plgHead,children:[(0,o.jsx)(`span`,{className:P.plgIcon,"aria-hidden":`true`,children:(0,o.jsx)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,o.jsx)(`path`,{d:`M10 3a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a2 2 0 0 0 4 0V4a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v1a2 2 0 0 0 4 0 1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-1a2 2 0 0 0 0 4h1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-1a2 2 0 0 0-4 0v1a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2a2 2 0 0 0-4 0v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a2 2 0 0 0-4 0 1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1a2 2 0 0 0 0-4H3a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1a2 2 0 0 0 4 0z`})})}),(0,o.jsxs)(`div`,{className:P.plgTitle,children:[(0,o.jsxs)(`div`,{className:P.plgNameRow,children:[(0,o.jsx)(`h3`,{className:P.plgName,children:it}),(0,o.jsx)(`span`,{className:P.plgTag,children:t===void 0?`—`:`v${t}`})]}),(0,o.jsx)(`p`,{className:P.plgDesc,children:`Usage billing dashboard for DeepSeek Harness`})]})]}),(0,o.jsxs)(`div`,{className:P.plgGrid,children:[(0,o.jsxs)(`div`,{className:P.plgItem,children:[(0,o.jsx)(`span`,{className:P.plgLabel,children:e(`pluginAuthor`)}),(0,o.jsxs)(`a`,{className:P.plgLink,href:`https://github.com/${at}`,target:`_blank`,rel:`noreferrer`,children:[`KenZ`,` (`,at,`)`]})]}),(0,o.jsxs)(`div`,{className:P.plgItem,children:[(0,o.jsx)(`span`,{className:P.plgLabel,children:e(`pluginRepository`)}),(0,o.jsx)(`a`,{className:P.plgLink,href:`https://github.com/kenz1117/dsh-ui-usage-billing`,target:`_blank`,rel:`noreferrer`,children:`GitHub`})]}),(0,o.jsxs)(`div`,{className:P.plgItem,children:[(0,o.jsx)(`span`,{className:P.plgLabel,children:e(`pluginNpm`)}),(0,o.jsx)(`a`,{className:P.plgLink,href:`https://www.npmjs.com/package/@kenz1117/dsh-ui-usage-billing`,target:`_blank`,rel:`noreferrer`,children:it})]}),(0,o.jsxs)(`div`,{className:P.plgItem,children:[(0,o.jsx)(`span`,{className:P.plgLabel,children:e(`pluginLicense`)}),(0,o.jsx)(`span`,{className:P.plgVal,children:`MIT`})]})]})]})}function st(e=Date.now()){let t=new Date(e),n=e=>String(e).padStart(2,`0`);return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())}`}function ct(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(Math.round(e))}let Q={top:14,right:18,bottom:22,left:46},lt=`var(--dsw-static-blue-500)`,ut=`#14b8a6`,dt=`var(--dsw-static-amber-500)`;function ft(e,t,n,r){return JSON.stringify({days:e,models:t,dayModels:n,total:r},null,2)}function pt(e){let{stats:t,trendDays:n,onTrendDays:i,t:a}=e,s=e.money,c=e.models??[],{byDay:l,byModel:u,total:f}=t,[p,m]=(0,r.useState)(null),[h,g]=(0,r.useState)(`structure`),[_,v]=(0,r.useState)(null),y=t.byDayModels!==void 0,b=e=>{g(e),v(null)},ee=(0,r.useMemo)(()=>{let e=t.byRole;if(e===void 0)return[];let n=e.user+e.assistant+e.tool;return n<=0?[]:[{label:a(`roleUser`),value:e.user,seg:P.shareSegUser},{label:a(`roleAssistant`),value:e.assistant,seg:P.shareSegAssistant},{label:a(`roleTool`),value:e.tool,seg:P.shareSegTool}].map(e=>({...e,pct:e.value/n*100}))},[t.byRole,a]),x=(0,r.useMemo)(()=>{let e=[];for(let t=n-1;t>=0;--t){let n=new Date;n.setDate(n.getDate()-t);let r=st(n.getTime()),i=l[r];e.push({date:r,miss:i?.cacheMiss??0,hit:i?.cacheHit??0,output:i?.output??0,reasoning:i?.reasoning??0})}return e},[l,n]),S=(0,r.useMemo)(()=>{let e=[];for(let r=n-1;r>=0;--r){let n=new Date;n.setDate(n.getDate()-r);let i=st(n.getTime()),a=t.byDayModels?.[i],o={},s=0;if(a!==void 0)for(let[e,t]of Object.entries(a)){let n=t.cacheHit??0,r=t.cacheMiss??0,i=t.output??0,a=n+r+i;a<=0||(o[e]={hit:n,miss:r,output:i,total:a},s+=a)}e.push({date:i,models:o,total:s})}return e},[t.byDayModels,n]),C=(0,r.useMemo)(()=>{let e=new Map;for(let t of S)for(let[n,r]of Object.entries(t.models))e.set(n,(e.get(n)??0)+r.total);return[...e.entries()].sort((e,t)=>t[1]-e[1]).map(([e])=>({key:e,name:c.find(t=>t.key===e)?.name??Ie(e).name,color:c.find(t=>t.key===e)?.color??`#8b95a3`}))},[S,c]),w=_!==null&&C.some(e=>e.key===_)?_:null,T=e=>{if(y){if(h!==`model`){g(`model`),v(e);return}v(t=>t===e?null:e)}},E=(0,r.useMemo)(()=>{let e=0;return Object.entries(u).filter(([,e])=>e.calls>0).map(([t,n])=>{let r=n.input+n.output;e+=r;let i=n.cacheHit+n.cacheMiss;return{key:t,name:Ie(t).name,input:n.input,output:n.output,reasoning:n.reasoning??0,calls:n.calls,cacheHit:n.cacheHit,cacheMiss:n.cacheMiss,cacheHitRate:i>0?n.cacheHit/i*100:0,total:r,share:0}}).sort((e,t)=>t.total-e.total).map(t=>({...t,share:e>0?t.total/e:0}))},[u]),D=(0,r.useMemo)(()=>{let e=f.cacheHit??0,t=f.cacheMiss??0,n=f.input??0,r=f.output??0,i=f.reasoning??0,a=e+t,o=a>0?e/a*100:0,s=r>0?i/r*100:0,c=r>0?n/r:0,l;for(let e of x){let t=e.miss+e.hit+e.output;(l===void 0||t>l.miss+l.hit+l.output)&&(l=e)}return{cacheHitRate:o,reasoningPct:s,io:c,peak:l,hit:e,miss:t,input:n,output:r,reasoning:i}},[f,x]),O=(0,r.useMemo)(()=>{let e=Object.entries(t.byTool??{}),n=e.slice(0,8),r=e.slice(8).reduce((e,[,t])=>e+t,0),i=e.reduce((e,[,t])=>e+t,0);return{top:n,rest:r>0?[[`…`,r]]:[],totalCalls:i}},[t.byTool]),k=(0,r.useMemo)(()=>{let e=x.length;if(e===0)return null;let t=680-Q.left-Q.right,n=200-Q.top-Q.bottom,r=Math.max(...h===`model`?S.map(e=>e.total):x.map(e=>e.miss+e.hit+e.output),1),i=e=>Q.top+n-e/r*n,a=t/e,o=Math.min(20,a*.6),s=n=>e===1?Q.left+t/2:Q.left+t*n/(e-1),c=Math.max(1,Math.ceil(e/8)),l=[];for(let t=0;t<e;t+=c)l.push(t);return e>0&&l[l.length-1]!==e-1&&l.push(e-1),{n:e,plotW:t,plotH:n,max:r,y:i,barW:o,inner:s,indices:l,groupW:a}},[x,S,h]),A=()=>{let e=new Blob([mt(x)],{type:`text/csv`}),t=document.createElement(`a`);t.href=URL.createObjectURL(e),t.download=`token-daily-${st()}.csv`,t.click(),setTimeout(()=>URL.revokeObjectURL(t.href),0)},te=()=>{let e=new Blob([ft(x,E,S,f)],{type:`application/json`}),t=document.createElement(`a`);t.href=URL.createObjectURL(e),t.download=`token-${st()}.json`,t.click(),setTimeout(()=>URL.revokeObjectURL(t.href),0)},j=p===null?void 0:x[p],M=p===null?void 0:S[p],ne=k===null?0:Math.ceil(80/Math.max(k.groupW,1)),N=p===null||k===null?void 0:p>=k.n-ne?P.chartTooltipAlignRight:p<ne?P.chartTooltipAlignLeft:void 0;return(0,o.jsxs)(`div`,{className:P.tokenPanel,"data-testid":`billing-token-panel`,children:[(0,o.jsxs)(`div`,{className:P.exportBar,role:`group`,"aria-label":a(`tokenExport`),children:[(0,o.jsx)(`span`,{className:P.exportLabel,children:a(`export`)}),(0,o.jsx)(`button`,{type:`button`,className:P.exportButton,"data-testid":`billing-token-export-csv`,onClick:A,children:a(`tokenExportCsv`)}),(0,o.jsx)(`button`,{type:`button`,className:P.exportButton,"data-testid":`billing-token-export-json`,onClick:te,children:a(`exportJson`)})]}),(0,o.jsxs)(`div`,{className:P.kpiGrid,"data-testid":`billing-token-kpis`,children:[(0,o.jsxs)(`div`,{className:P.kpiTile,children:[(0,o.jsx)(`span`,{className:P.kpiLabel,children:a(`tokenCacheHitRate`)}),(0,o.jsxs)(`span`,{className:P.kpiValue,children:[D.cacheHitRate.toFixed(1),`%`]}),(0,o.jsxs)(`span`,{className:P.kpiDetail,children:[Y(D.hit),` / `,Y(D.hit+D.miss),(f.cacheWrite??0)>0?` · ${a(`tokenCacheWrite`)} ${Y(f.cacheWrite??0)}`:``]})]}),(0,o.jsxs)(`div`,{className:P.kpiTile,children:[(0,o.jsx)(`span`,{className:P.kpiLabel,children:a(`tokenReasoningShare`)}),(0,o.jsxs)(`span`,{className:P.kpiValue,children:[D.reasoningPct.toFixed(1),`%`]}),(0,o.jsx)(`span`,{className:P.kpiDetail,children:Y(D.reasoning)})]}),(0,o.jsxs)(`div`,{className:P.kpiTile,children:[(0,o.jsx)(`span`,{className:P.kpiLabel,children:a(`tokenIo`)}),(0,o.jsx)(`span`,{className:P.kpiValue,children:D.io.toFixed(2)}),(0,o.jsxs)(`span`,{className:P.kpiDetail,children:[Y(D.input),` / `,Y(D.output)]})]}),(0,o.jsxs)(`div`,{className:P.kpiTile,children:[(0,o.jsx)(`span`,{className:P.kpiLabel,children:a(`tokenPeak`)}),(0,o.jsx)(`span`,{className:P.kpiValue,children:D.peak===void 0?`—`:ct(D.peak.miss+D.peak.hit+D.peak.output)}),(0,o.jsx)(`span`,{className:P.kpiDetail,children:D.peak?.date??`—`})]})]}),(0,o.jsxs)(`section`,{className:P.panel,"data-testid":`billing-token-daily`,children:[(0,o.jsxs)(`div`,{className:P.panelHead,children:[(0,o.jsx)(`h3`,{className:P.panelTitle,children:a(`tokenDaily`)}),(0,o.jsxs)(`span`,{className:P.panelHeadControls,children:[y&&(0,o.jsx)(`span`,{className:P.rangeToggle,role:`group`,"aria-label":a(`tokenDaily`),children:[`structure`,`model`].map(e=>(0,o.jsx)(`button`,{type:`button`,className:d(P.rangeButton,h===e&&P.rangeButtonActive),"aria-pressed":h===e,onClick:()=>{b(e)},"data-testid":`billing-token-view-${e}`,children:a(e===`structure`?`tokenViewStructure`:`tokenViewModel`)},e))}),(0,o.jsx)(`span`,{className:P.rangeToggle,role:`group`,"aria-label":a(`tokenDaily`),children:[7,30].map(e=>(0,o.jsx)(`button`,{type:`button`,className:d(P.rangeButton,n===e&&P.rangeButtonActive),"aria-pressed":n===e,onClick:()=>{i(e)},"data-testid":`billing-token-${e}d`,children:a(e===7?`trend7d`:`trend30d`)},e))})]})]}),k===null||h===`model`&&C.length===0?(0,o.jsx)(`div`,{className:P.chartEmpty,children:a(`trendEmpty`)}):(0,o.jsxs)(`div`,{className:P.chartWrap,children:[(0,o.jsxs)(`svg`,{viewBox:`0 0 680 200`,className:P.chartSvg,role:`img`,"aria-label":a(`tokenDaily`),onMouseLeave:()=>{m(null)},onMouseMove:e=>{let t=e.currentTarget.getBoundingClientRect(),n=((e.clientX-t.left)/t.width*680-Q.left)/k.plotW,r=Math.round(n*(k.n-1));m(Math.min(Math.max(r,0),k.n-1))},children:[[0,.5,1].map(e=>{let t=k.max*e,n=k.y(t);return(0,o.jsxs)(`g`,{children:[(0,o.jsx)(`line`,{x1:Q.left,x2:680-Q.right,y1:n,y2:n,className:P.chartGrid}),(0,o.jsx)(`text`,{x:Q.left-8,y:n+3,textAnchor:`end`,className:P.chartAxisLabel,children:ct(t)})]},e)}),h===`structure`?x.map((e,t)=>{let n=k.inner(t)-k.barW/2,r=k.y(0),i=k.y(e.miss),a=k.y(e.miss+e.hit),s=k.y(e.miss+e.hit+e.output);return(0,o.jsxs)(`g`,{children:[(0,o.jsx)(`rect`,{x:n,y:i,width:k.barW,height:r-i,fill:lt}),(0,o.jsx)(`rect`,{x:n,y:a,width:k.barW,height:i-a,fill:ut}),(0,o.jsx)(`rect`,{x:n,y:s,width:k.barW,height:a-s,fill:dt})]},e.date)}):S.map((e,t)=>{let n=k.inner(t)-k.barW/2,r=0;return(0,o.jsx)(`g`,{children:C.map(t=>{let i=e.models[t.key];if(i===void 0)return null;let a=k.y(r);r+=i.total;let s=k.y(r),c=w!==null&&t.key!==w;return(0,o.jsx)(`rect`,{x:n,y:s,width:k.barW,height:a-s,fill:t.color,opacity:c?.15:1},t.key)})},e.date)}),k.indices.map(e=>{let t=x[e];return t===void 0?null:(0,o.jsx)(`text`,{x:k.inner(e),y:194,textAnchor:`middle`,className:P.chartAxisLabel,children:t.date.slice(5)},t.date)}),p!==null&&(0,o.jsx)(`line`,{x1:k.inner(p),x2:k.inner(p),y1:Q.top,y2:Q.top+k.plotH,className:P.chartCrosshair})]}),p!==null&&h===`structure`&&j!==void 0&&(0,o.jsxs)(`div`,{className:d(P.chartTooltip,N),"data-testid":`billing-token-tooltip`,style:{left:`${k.inner(p)/680*100}%`,top:`${k.y(j.miss+j.hit+j.output)/200*100}%`},children:[(0,o.jsxs)(`div`,{className:P.chartTooltipHead,children:[(0,o.jsx)(`span`,{className:P.chartTooltipDate,children:j.date}),(0,o.jsx)(`strong`,{children:(j.miss+j.hit+j.output).toLocaleString()})]}),(0,o.jsxs)(`div`,{className:d(P.chartTooltipRow,P.chartTooltipSplit),children:[(0,o.jsxs)(`span`,{className:P.chartTooltipLabel,children:[(0,o.jsx)(`span`,{className:P.chartTooltipSwatch,style:{background:ut}}),a(`tokenHit`)]}),(0,o.jsx)(`strong`,{children:j.hit.toLocaleString()})]}),(0,o.jsxs)(`div`,{className:d(P.chartTooltipRow,P.chartTooltipSplit),children:[(0,o.jsxs)(`span`,{className:P.chartTooltipLabel,children:[(0,o.jsx)(`span`,{className:P.chartTooltipSwatch,style:{background:lt}}),a(`tokenMiss`)]}),(0,o.jsx)(`strong`,{children:j.miss.toLocaleString()})]}),(0,o.jsxs)(`div`,{className:d(P.chartTooltipRow,P.chartTooltipSplit),children:[(0,o.jsxs)(`span`,{className:P.chartTooltipLabel,children:[(0,o.jsx)(`span`,{className:P.chartTooltipSwatch,style:{background:dt}}),a(`tokenOutput`)]}),(0,o.jsx)(`strong`,{children:j.output.toLocaleString()})]})]}),p!==null&&h===`model`&&M!==void 0&&(0,o.jsxs)(`div`,{className:d(P.chartTooltip,N),"data-testid":`billing-token-tooltip`,style:{left:`${k.inner(p)/680*100}%`,top:`${k.y(M.total)/200*100}%`},children:[(0,o.jsxs)(`div`,{className:P.chartTooltipHead,children:[(0,o.jsx)(`span`,{className:P.chartTooltipDate,children:M.date}),(0,o.jsx)(`strong`,{children:M.total.toLocaleString()})]}),C.map(e=>{let t=M.models[e.key];return t===void 0?null:(0,o.jsxs)(`div`,{className:P.chartTooltipModel,children:[(0,o.jsxs)(`div`,{className:d(P.chartTooltipRow,P.chartTooltipSplit),children:[(0,o.jsxs)(`span`,{className:P.chartTooltipLabel,children:[(0,o.jsx)(`span`,{className:P.chartTooltipSwatch,style:{background:e.color}}),e.name]}),(0,o.jsx)(`strong`,{children:t.total.toLocaleString()})]}),(0,o.jsxs)(`div`,{className:P.chartTooltipModelDetail,children:[a(`tokenHitShort`),` `,t.hit.toLocaleString(),` · `,a(`tokenMissShort`),` `,t.miss.toLocaleString(),` · `,a(`tokenOutput`),` `,t.output.toLocaleString()]})]},e.key)})]}),(0,o.jsx)(`div`,{className:P.chartLegend,children:h===`structure`?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(`span`,{children:[(0,o.jsx)(`span`,{className:P.chartTooltipSwatch,style:{background:lt}}),a(`tokenMiss`)]}),(0,o.jsxs)(`span`,{children:[(0,o.jsx)(`span`,{className:P.chartTooltipSwatch,style:{background:ut}}),a(`tokenHit`)]}),(0,o.jsxs)(`span`,{children:[(0,o.jsx)(`span`,{className:P.chartTooltipSwatch,style:{background:dt}}),a(`tokenOutput`)]})]}):C.map(e=>(0,o.jsxs)(`button`,{type:`button`,className:d(P.chartLegendItem,w===e.key&&P.chartLegendItemActive),"aria-pressed":w===e.key,"data-testid":`billing-token-legend-${e.key}`,onClick:()=>{T(e.key)},children:[(0,o.jsx)(`span`,{className:P.chartTooltipSwatch,style:{background:e.color}}),e.name]},e.key))})]})]}),(0,o.jsxs)(`section`,{className:P.panel,"data-testid":`billing-token-models`,children:[(0,o.jsx)(`div`,{className:P.panelHead,children:(0,o.jsx)(`h3`,{className:P.panelTitle,children:a(`tokenByModel`)})}),E.length===0?(0,o.jsx)(`div`,{className:P.emptyRow,children:a(`noData`)}):(0,o.jsx)(`div`,{className:P.tableScroll,children:(0,o.jsxs)(`table`,{className:P.modelTable,"data-testid":`billing-token-model-table`,children:[(0,o.jsx)(`thead`,{children:(0,o.jsxs)(`tr`,{children:[(0,o.jsx)(`th`,{children:a(`model`)}),(0,o.jsx)(`th`,{className:P.numCol,children:a(`inputTokens`)}),(0,o.jsx)(`th`,{className:P.numCol,children:a(`outputTokens`)}),(0,o.jsx)(`th`,{className:P.numCol,children:a(`tokenReasoningShort`)}),(0,o.jsx)(`th`,{className:P.numCol,children:a(`cacheHitRate`)}),(0,o.jsx)(`th`,{className:P.numCol,children:a(`tokenTotal`)}),(0,o.jsx)(`th`,{className:P.numCol,children:a(`tokenShare`)}),(0,o.jsx)(`th`,{className:P.numCol,children:a(`calls`)})]})}),(0,o.jsx)(`tbody`,{children:E.map(e=>(0,o.jsxs)(`tr`,{"data-testid":`billing-token-model`,className:d(y&&P.modelRowFocusable,w===e.key&&P.modelRowActive),"aria-selected":y?w===e.key:void 0,onClick:y?()=>{T(e.key)}:void 0,children:[(0,o.jsx)(`td`,{children:(0,o.jsx)(`span`,{className:P.modelName,children:e.name})}),(0,o.jsx)(`td`,{className:P.numCol,children:Y(e.input)}),(0,o.jsx)(`td`,{className:P.numCol,children:Y(e.output)}),(0,o.jsx)(`td`,{className:P.numCol,children:e.reasoning>0?Y(e.reasoning):(0,o.jsx)(`span`,{className:P.na,children:`—`})}),(0,o.jsxs)(`td`,{className:P.numCol,children:[e.cacheHitRate.toFixed(1),`%`]}),(0,o.jsx)(`td`,{className:P.numCol,children:Y(e.total)}),(0,o.jsx)(`td`,{className:P.numCol,children:(0,o.jsxs)(`span`,{className:P.tokenModelShareRow,children:[(0,o.jsx)(`span`,{className:P.tokenModelBar,children:(0,o.jsxs)(`span`,{className:P.tokenModelParts,style:{width:`${(e.share*100).toFixed(2)}%`},children:[(0,o.jsx)(`span`,{className:P.tokenModelPartIn,style:{width:`${e.total>0?e.input/e.total*100:0}%`}}),(0,o.jsx)(`span`,{className:P.tokenModelPartOut,style:{width:`${e.total>0?e.output/e.total*100:0}%`}})]})}),(e.share*100).toFixed(1),`%`]})}),(0,o.jsx)(`td`,{className:P.numCol,children:e.calls.toLocaleString()})]},e.key))})]})})]}),O.totalCalls>0&&(0,o.jsxs)(`section`,{className:P.panel,"data-testid":`billing-token-tools`,children:[(0,o.jsx)(`div`,{className:P.panelHead,children:(0,o.jsx)(`h3`,{className:P.panelTitle,children:a(`toolRank`)})}),(0,o.jsx)(`div`,{className:P.tableScroll,children:(0,o.jsxs)(`table`,{className:P.modelTable,"data-testid":`billing-tool-table`,children:[(0,o.jsx)(`thead`,{children:(0,o.jsxs)(`tr`,{children:[(0,o.jsx)(`th`,{children:a(`toolName`)}),(0,o.jsx)(`th`,{className:P.numCol,children:a(`calls`)}),(0,o.jsx)(`th`,{className:P.numCol,children:a(`tokenShare`)})]})}),(0,o.jsx)(`tbody`,{children:[...O.top,...O.rest].map(([e,t])=>(0,o.jsxs)(`tr`,{"data-testid":`billing-tool-row`,children:[(0,o.jsx)(`td`,{children:(0,o.jsx)(`span`,{className:P.modelName,children:e})}),(0,o.jsx)(`td`,{className:P.numCol,children:t.toLocaleString()}),(0,o.jsxs)(`td`,{className:P.numCol,children:[(t/O.totalCalls*100).toFixed(1),`%`]})]},e))})]})})]}),ee.length>0&&(0,o.jsxs)(`section`,{className:P.panel,"data-testid":`billing-panel-roles`,children:[(0,o.jsxs)(`div`,{className:P.panelHead,children:[(0,o.jsx)(`h3`,{className:P.panelTitle,children:a(`roleCost`)}),(0,o.jsx)(`span`,{className:P.panelHint,children:a(`roleHint`)})]}),(0,o.jsx)(`div`,{className:P.shareTrack,"data-testid":`billing-role-track`,children:ee.map(e=>(0,o.jsx)(`div`,{className:d(P.shareSeg,e.seg),style:{width:`${e.pct}%`}},e.label))}),(0,o.jsx)(`div`,{className:P.shareLegend,children:ee.map(e=>(0,o.jsxs)(`span`,{className:P.shareItem,children:[(0,o.jsx)(`span`,{className:d(P.shareDot,e.seg)}),e.label,(0,o.jsxs)(`span`,{className:P.shareValue,children:[s(e.value),` · `,e.pct.toFixed(1),`%`]})]},e.label))})]})]})}function mt(e){return[`date,missInput,cacheHit,output,reasoning,total`,...e.map(e=>`${e.date},${e.miss},${e.hit},${e.output},${e.reasoning},${e.miss+e.hit+e.output}`)].join(`
|
|
1
|
+
window.__ModuleLoader__.load({id:`@kenz1117/dsh-ui-usage-billing`,factory:e=>{var t={exports:{}},n=t.exports;Object.defineProperty(n,Symbol.toStringTag,{value:`Module`});let r=e("react"),i=e("react-dom"),a=e("@deepseek-ai/dsh-client-ui-primitives"),o=e("react/jsx-runtime"),s=e("@deepseek-ai/dsh-client-store");function c(e){return e}function l(e){return c(e)}function u(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=u(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function d(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=u(e))&&(r&&(r+=` `),r+=t);return r}let f={mode:`combined`,targets:[]},p=`dsh.ui-usage-billing.float`;function m(){try{let e=localStorage.getItem(p);if(e===null)return{...f,targets:[...f.targets]};let t=JSON.parse(e);return{mode:t.mode===`subscription`?`subscription`:`combined`,targets:Array.isArray(t.targets)?t.targets.filter(e=>typeof e==`string`):[]}}catch{return{...f,targets:[...f.targets]}}}function h(e){try{localStorage.setItem(p,JSON.stringify(e))}catch{}}let g={metric:`money`},_=`dsh.ui-usage-billing.card`;function v(){try{let e=localStorage.getItem(_);return e===null?{...g}:{metric:JSON.parse(e).metric===`tokens`?`tokens`:`money`}}catch{return{...g}}}function y(e){try{localStorage.setItem(_,JSON.stringify(e))}catch{}}let b={hideUnidentified:!0},ee=`dsh.ui-usage-billing.sites`;function x(){try{let e=localStorage.getItem(ee);return e===null?{...b}:{hideUnidentified:JSON.parse(e).hideUnidentified!==!1}}catch{return{...b}}}function S(e){try{localStorage.setItem(ee,JSON.stringify(e))}catch{}}let C={show:!0,position:`below`},w=`dsh.ui-usage-billing.livecost`,T=`dsh.ui-usage-billing.livecost-pref`;function E(){try{let e=localStorage.getItem(w);if(e===null)return{...C};let t=JSON.parse(e);return{show:t.show!==!1,position:t.position===`above`||t.position===`toolbar`?t.position:`below`}}catch{return{...C}}}function D(e){try{localStorage.setItem(w,JSON.stringify(e))}catch{}}let O=`dsh.ui-usage-billing.prices`;function k(){try{let e=localStorage.getItem(O);if(e===null)return[];let t=JSON.parse(e);if(t===null)return[];let n=[],r=(e,t)=>{if(typeof t!=`object`||!t)return;let r=t,i=Number(r.input),a=Number(r.cacheHit),o=Number(r.output);if(![i,a,o].every(e=>Number.isFinite(e)&&e>=0))return;let s=r.offPeak,c;if(typeof s==`object`&&s){let e=s,t=Number(e.input),n=Number(e.cacheHit),r=Number(e.output);[t,n,r].every(e=>Number.isFinite(e)&&e>=0)&&(c={input:t,cacheHit:n,output:r})}n.push({key:e,...typeof r.origin==`string`&&r.origin!==``?{origin:r.origin}:{},input:i,cacheHit:a,output:o,...c===void 0?{}:{offPeak:c},...r.currency===`USD`?{currency:`USD`}:{}})};if(Array.isArray(t))for(let e of t){if(typeof e!=`object`||!e)continue;let t=e;typeof t.key==`string`&&t.key!==``&&r(t.key,e)}else if(typeof t==`object`)for(let[e,n]of Object.entries(t))r(e,n);return n}catch{return[]}}function A(e){try{localStorage.setItem(O,JSON.stringify(e))}catch{}}let te={metric:`ttft`},j=`dsh.ui-usage-billing.perf`;function M(){try{let e=localStorage.getItem(j);if(e===null)return{...te};let t=JSON.parse(e);return{metric:t.metric===`tps`?`tps`:`ttft`,...Array.isArray(t.models)?{models:t.models.filter(e=>typeof e==`string`)}:{}}}catch{return{...te}}}function ne(e){try{localStorage.setItem(j,JSON.stringify(e))}catch{}}let N=`@kenz1117/dsh-ui-usage-billing/UsageBilling.module.css`;if(typeof document<`u`&&document.querySelector(`style[data-plugin-css=`+JSON.stringify(N)+`]`)===null){let e=document.createElement(`style`);e.dataset.plugin=`@kenz1117/dsh-ui-usage-billing`,e.dataset.pluginCss=N,e.textContent=`.KFXqYa_railButton{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);width:36px;height:36px;color:var(--dsw-alias-label-secondary);cursor:pointer;border-radius:8px;flex:none;justify-content:center;align-items:center;padding:0;transition:border-color .16s,color .16s;display:flex}.KFXqYa_railButton:hover,.KFXqYa_railButton:focus-visible{border-color:var(--dsw-static-blue-500);color:var(--dsw-static-blue-500);outline:none}.KFXqYa_railButton svg{stroke-width:2px;width:18px;height:18px}.KFXqYa_trigger{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);width:100%;min-width:0;color:var(--dsw-alias-label-primary);cursor:pointer;text-align:left;border-radius:14px;align-items:center;gap:10px;padding:9px 12px;transition:border-color .16s,transform .16s,box-shadow .16s;display:flex;position:relative;overflow:hidden;box-shadow:0 1px 2px #0000000a}.KFXqYa_trigger:hover,.KFXqYa_trigger:focus-visible{border-color:var(--dsw-static-blue-500);box-shadow:0 6px 18px -8px color-mix(in srgb, var(--dsw-static-blue-500) 45%, transparent);outline:none;transform:translateY(-1px)}.KFXqYa_triggerIcon{border:1px solid var(--dsw-alias-border-l1);width:32px;height:32px;color:var(--dsw-alias-label-secondary);opacity:.8;border-radius:8px;flex:none;justify-content:center;align-items:center;display:inline-flex}.KFXqYa_triggerIcon svg{stroke-width:2px;width:16px;height:16px}.KFXqYa_triggerMain{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.KFXqYa_triggerPrimary{align-items:baseline;gap:5px;min-width:0;display:inline-flex}.KFXqYa_triggerLabel{color:var(--dsw-alias-label-tertiary);white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:11px;line-height:15px;overflow:hidden}.KFXqYa_triggerYen{color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;font-size:12px;font-weight:600;line-height:16px}.KFXqYa_triggerMetric{color:var(--dsw-alias-label-primary);letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:20px;font-weight:700;line-height:24px;overflow:hidden}.KFXqYa_triggerSub{color:var(--dsw-alias-label-tertiary);white-space:nowrap;text-overflow:ellipsis;font-size:10px;line-height:14px;overflow:hidden}.KFXqYa_triggerSpark{flex:none;align-items:flex-end;gap:2px;height:20px;display:flex}.KFXqYa_triggerSparkBar,.KFXqYa_triggerSparkHot{background:var(--dsw-static-blue-500);opacity:.6;border-radius:1px 1px 0 0;width:3px}.KFXqYa_triggerSparkHot{opacity:1}.KFXqYa_triggerWrap{flex:auto;width:100%;min-width:96px;max-width:100%;display:block;position:relative;container:KFXqYa_billing-trigger/inline-size}@container KFXqYa_billing-trigger (width<=200px){.KFXqYa_trigger{gap:6px;padding:8px 10px}.KFXqYa_triggerSpark{display:none}}@container KFXqYa_billing-trigger (width<=170px){.KFXqYa_triggerSub,.KFXqYa_triggerLabel{display:none}}@container KFXqYa_billing-trigger (width<=110px){.KFXqYa_triggerIcon,.KFXqYa_triggerSpark,.KFXqYa_triggerSub,.KFXqYa_triggerLabel{display:none}.KFXqYa_trigger{justify-content:center;padding:8px 6px}}.KFXqYa_triggerPop{box-sizing:border-box;border:1px solid color-mix(in srgb, var(--dsw-alias-border-l1) 80%, transparent);background:color-mix(in srgb, var(--dsw-alias-bg-layer-3) 72%, transparent);-webkit-backdrop-filter:blur(14px)saturate(1.3);width:256px;box-shadow:0 12px 32px #00000029, inset 0 1px 0 color-mix(in srgb, var(--dsw-alias-label-primary) 8%, transparent);opacity:0;visibility:hidden;pointer-events:none;z-index:2000;border-radius:14px;flex-direction:column;gap:5px;padding:10px 12px;transition:opacity .16s,transform .16s,visibility 0s linear .16s;display:flex;position:fixed;top:0;left:0;overflow:hidden;transform:translateY(calc(4px - 100%))}.KFXqYa_triggerPop,.KFXqYa_triggerPop *{box-sizing:border-box}.KFXqYa_triggerPop:before{content:"";background:linear-gradient(90deg, transparent 0%, var(--dsw-static-amber-500) 30%, var(--dsw-alias-label-primary) 50%, var(--dsw-static-amber-500) 70%, transparent 100%);opacity:.9;pointer-events:none;background-size:200% 100%;height:1.5px;animation:4s ease-in-out infinite KFXqYa_subscriptionGoldFlow;position:absolute;top:0;left:0;right:0}.KFXqYa_triggerPopShown{opacity:1;visibility:visible;transition:opacity .16s,transform .16s,visibility linear;transform:translateY(-100%)}.KFXqYa_popHead{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.KFXqYa_popTitle{color:var(--dsw-alias-label-primary);font-size:13px;font-weight:700;line-height:18px}.KFXqYa_metricGrid{grid-template-columns:repeat(3,1fr);gap:10px 8px;display:grid}.KFXqYa_metricCell{flex-direction:column;gap:2px;min-width:0;display:flex}.KFXqYa_metricLabel{color:var(--dsw-alias-label-tertiary);font-size:10px;line-height:14px}.KFXqYa_metricValue{color:var(--dsw-alias-label-primary);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px;font-weight:700;line-height:16px}.KFXqYa_metricValuePrimary{color:var(--dsw-static-amber-500)}.KFXqYa_metricValueSuccess{color:var(--dsw-static-green-500)}.KFXqYa_popModel{border-top:1px solid var(--dsw-alias-border-l1);flex-direction:column;gap:6px;padding-top:10px;display:flex}.KFXqYa_popModelLabel{color:var(--dsw-alias-label-tertiary);font-size:10px;line-height:14px}.KFXqYa_popModelRow{align-items:center;gap:8px;min-width:0;display:flex}.KFXqYa_popDot{border-radius:999px;flex:none;width:6px;height:6px}.KFXqYa_popDotDirect{background:var(--dsw-static-green-500)}.KFXqYa_popDotSub{background:var(--dsw-static-amber-500)}.KFXqYa_popDotNeutral{background:var(--dsw-alias-label-tertiary)}.KFXqYa_popTagPrimary,.KFXqYa_popTagSub{white-space:nowrap;border-radius:5px;flex:none;align-items:center;height:18px;padding:0 6px;font-size:10px;font-weight:600;line-height:14px;display:inline-flex}.KFXqYa_popTagPrimary{background:color-mix(in srgb, var(--dsw-static-blue-500) 14%, transparent);color:var(--dsw-static-blue-500)}.KFXqYa_popTagSub{background:color-mix(in srgb, var(--dsw-static-amber-500) 18%, transparent);color:var(--dsw-static-amber-500)}.KFXqYa_popModelName{color:var(--dsw-alias-label-secondary);text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:500;line-height:16px;overflow:hidden}.KFXqYa_popModelStatus{color:var(--dsw-alias-label-primary);font-variant-numeric:tabular-nums;white-space:nowrap;margin-left:auto;font-size:11px;font-weight:600;line-height:16px}.KFXqYa_popModelStatusLow{color:var(--dsw-static-red-500)}.KFXqYa_dashboardModal{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);border-radius:14px;width:min(760px,100vw - 48px);max-height:min(760px,88vh);animation:.18s ease-out KFXqYa_dashboardIn;box-shadow:0 12px 32px -12px #0000002e,0 2px 8px #0000000f}@keyframes KFXqYa_dashboardIn{0%{opacity:0;transform:translateY(8px)scale(.98)}to{opacity:1;transform:none}}div[role=presentation]:has(>.dsh-billing-modal)>div[aria-hidden=true]:first-child{backdrop-filter:blur(8px)saturate(1.25)}.KFXqYa_dashboard{flex-direction:column;width:100%;max-height:min(760px,88vh);display:flex}.KFXqYa_dashboardHead{border-bottom:1px solid var(--dsw-alias-border-l1);justify-content:space-between;align-items:center;gap:12px;padding:12px 18px;display:flex}.KFXqYa_dashboardTitle{color:var(--dsw-alias-label-primary);margin:0;font-size:14px;font-weight:600;line-height:20px}.KFXqYa_dashboardSubtitle{color:var(--dsw-alias-label-caption);margin:2px 0 0;font-size:11px;line-height:16px}.KFXqYa_closeButton{border:1px solid var(--dsw-alias-border-l1);width:32px;height:32px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border-radius:8px;flex:none;justify-content:center;align-items:center;transition:background-color .14s,color .14s;display:inline-flex}.KFXqYa_closeButton:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.KFXqYa_closeButton svg{stroke-width:2px;width:16px;height:16px}.KFXqYa_dashboardBody{flex-direction:column;gap:14px;padding:16px 24px 24px;display:flex;overflow-y:auto}.KFXqYa_modalFooter{border-top:1px solid var(--dsw-alias-border-l1);color:var(--dsw-alias-label-tertiary);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding:8px 18px;font-size:11px;line-height:16px;display:flex}.KFXqYa_tabNav{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);border-radius:10px;align-items:center;gap:4px;margin:14px 24px 0;padding:4px;display:flex}.KFXqYa_tabButton{color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;border-radius:7px;padding:6px 14px;font-size:13px;font-weight:500;line-height:20px;transition:background-color .16s,color .16s}.KFXqYa_tabButton:hover,.KFXqYa_tabButton:focus-visible{color:var(--dsw-alias-label-primary);background:color-mix(in srgb, var(--dsw-alias-bg-layer-3) 62%, transparent);outline:none}.KFXqYa_tabButtonActive,.KFXqYa_tabButtonActive:hover,.KFXqYa_tabButtonActive:focus-visible{background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);font-weight:600;box-shadow:0 1px 3px #0000001f}.KFXqYa_tabPanel{flex-direction:column;gap:14px;animation:.14s ease-out KFXqYa_tabPanelIn;display:flex}@keyframes KFXqYa_tabPanelIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.KFXqYa_reconcileNotice{border:1px solid color-mix(in srgb, var(--dsw-alias-border-l1) 78%, transparent);background:color-mix(in srgb, var(--dsw-alias-bg-layer-2) 62%, transparent);color:var(--dsw-alias-label-secondary);border-radius:10px;align-items:flex-start;gap:10px;padding:10px 12px;font-size:12px;line-height:1.55;display:flex}.KFXqYa_reconcileIcon{color:var(--dsw-alias-label-tertiary);flex:none;margin-top:1px;display:inline-flex}.KFXqYa_reconcileText{flex:1}.KFXqYa_reconcileDismiss{color:var(--dsw-alias-label-tertiary);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:6px;flex:none;padding:2px 8px;font-size:12px;line-height:1.4;transition:color .15s,background-color .15s}.KFXqYa_reconcileDismiss:hover{color:var(--dsw-alias-label-primary);background:color-mix(in srgb, var(--dsw-alias-label-primary) 8%, transparent)}.KFXqYa_hero{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);border-radius:10px;flex-direction:column;gap:12px;padding:14px 16px;display:flex;position:relative;overflow:hidden}.KFXqYa_heroTop{justify-content:space-between;align-items:center;gap:24px;display:flex}.KFXqYa_heroMain{flex-direction:column;gap:2px;min-width:0;display:flex}.KFXqYa_heroLabel{color:var(--dsw-alias-label-tertiary);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap;font-size:10px;font-weight:500;line-height:14px}.KFXqYa_heroReadout{align-items:baseline;gap:4px;display:flex}.KFXqYa_heroCurrency{letter-spacing:-.01em;color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;font-size:15px;font-weight:600;line-height:20px}.KFXqYa_heroValue{letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--dsw-alias-label-primary);font-size:28px;font-weight:650;line-height:34px}.KFXqYa_heroMeta{color:var(--dsw-alias-label-caption);white-space:nowrap;margin-top:2px;font-size:11px;line-height:15px}.KFXqYa_heroGauge{flex:none;width:72px;height:72px;position:relative}.KFXqYa_heroGaugeSvg{width:100%;height:100%;display:block;transform:rotate(-90deg)}.KFXqYa_heroGaugeTrack{fill:none;stroke:var(--dsw-alias-bg-module-platform);stroke-width:7px}.KFXqYa_heroGaugeArc{fill:none;stroke:var(--dsw-static-blue-500);stroke-width:7px;stroke-linecap:round;transition:stroke-dasharray .26s}.KFXqYa_heroGaugeArcOver{stroke:var(--dsw-static-red-500)}.KFXqYa_heroGaugeCenter{flex-direction:column;justify-content:center;align-items:center;gap:1px;display:flex;position:absolute;inset:0}.KFXqYa_heroGaugePct{letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--dsw-alias-label-primary);font-size:14px;font-weight:700;line-height:18px}.KFXqYa_heroGaugePctOver{color:var(--dsw-static-red-500)}.KFXqYa_heroGaugeLabel{color:var(--dsw-alias-label-tertiary);font-size:9px;line-height:12px}.KFXqYa_heroBudget{border-top:1px solid var(--dsw-alias-border-l1);align-items:center;gap:14px;padding-top:14px;display:flex}.KFXqYa_heroBudgetLabel{color:var(--dsw-alias-label-secondary);white-space:nowrap;flex:none;font-size:11px;line-height:16px}.KFXqYa_heroBudgetTrack{background:var(--dsw-alias-border-l1);border-radius:999px;flex:1;min-width:0;height:6px;overflow:hidden}.KFXqYa_heroBudgetFill{background:var(--dsw-static-blue-500);border-radius:999px;height:100%;transition:width .22s}.KFXqYa_heroBudgetFillOver{background:var(--dsw-static-red-500)}.KFXqYa_heroBudgetValue{color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;white-space:nowrap;flex:none;font-size:11px;line-height:16px}.KFXqYa_heroSide{border-top:1px solid var(--dsw-alias-border-l1);align-items:stretch;padding-top:12px;display:flex}.KFXqYa_heroSideItem{border-left:1px solid var(--dsw-alias-border-l1);flex-direction:column;flex:1;gap:2px;min-width:0;padding-left:14px;display:flex}.KFXqYa_heroSideItem:first-child{border-left:none;padding-left:0}.KFXqYa_heroSideLabel{color:var(--dsw-alias-label-tertiary);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap;font-size:10px;font-weight:500;line-height:13px}.KFXqYa_heroSideValue{color:var(--dsw-alias-label-primary);font-variant-numeric:tabular-nums;letter-spacing:-.01em;white-space:nowrap;align-items:baseline;gap:6px;font-size:15px;font-weight:600;line-height:20px;display:inline-flex}.KFXqYa_heroSideSpacer{flex:1;display:block}.KFXqYa_delta{font-variant-numeric:tabular-nums;border-radius:999px;align-items:center;gap:2px;margin-left:6px;padding:1px 7px;font-size:10.5px;font-weight:600;line-height:16px;display:inline-flex}.KFXqYa_deltaUp{color:var(--dsw-static-green-500);background:color-mix(in srgb, var(--dsw-static-green-500) 12%, transparent)}.KFXqYa_deltaDown{color:var(--dsw-static-red-500);background:color-mix(in srgb, var(--dsw-static-red-500) 12%, transparent)}.KFXqYa_unpricedHint{border:1px solid color-mix(in srgb, var(--dsw-static-amber-500) 30%, transparent);background:color-mix(in srgb, var(--dsw-static-amber-500) 8%, transparent);color:var(--dsw-static-amber-500);border-radius:8px;align-items:center;padding:8px 12px;font-size:11.5px;font-weight:500;line-height:17px;display:flex}.KFXqYa_kpiGrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.KFXqYa_kpiTile{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);border-radius:10px;flex-direction:column;gap:2px;padding:10px 12px;transition:border-color .16s;display:flex;position:relative;overflow:hidden}.KFXqYa_kpiTile:hover{border-color:var(--dsw-alias-border-l2)}.KFXqYa_kpiLabel{color:var(--dsw-alias-label-tertiary);text-transform:uppercase;letter-spacing:.06em;font-size:10px;font-weight:500;line-height:13px}.KFXqYa_kpiValue{color:var(--dsw-alias-label-primary);font-variant-numeric:tabular-nums;letter-spacing:-.01em;font-size:16px;font-weight:650;line-height:22px}.KFXqYa_kpiGreen{color:var(--dsw-static-green-500)}.KFXqYa_kpiDetail{color:var(--dsw-alias-label-caption);white-space:nowrap;text-overflow:ellipsis;font-size:10.5px;line-height:14px;overflow:hidden}.KFXqYa_panel{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);border-radius:10px;flex-direction:column;gap:8px;padding:12px 14px;transition:border-color .16s;display:flex}.KFXqYa_panelHead{justify-content:space-between;align-items:baseline;gap:10px;display:flex}.KFXqYa_panelHeadControls{align-items:center;gap:8px;display:inline-flex}.KFXqYa_panelTitle{letter-spacing:-.005em;color:var(--dsw-alias-label-primary);margin:0;font-size:14px;font-weight:600;line-height:20px}.KFXqYa_panelHint{color:var(--dsw-alias-label-caption);white-space:nowrap;font-size:11px;line-height:16px}.KFXqYa_rangeToggle{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);border-radius:8px;gap:2px;padding:2px;display:inline-flex}.KFXqYa_rangeButton{color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;border-radius:6px;padding:2px 8px;font-size:11px;line-height:16px;transition:background-color .14s,color .14s}.KFXqYa_rangeButtonActive{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary);font-weight:600}.KFXqYa_exportBar{justify-content:flex-end;align-items:center;gap:8px;display:flex}.KFXqYa_exportLabel{color:var(--dsw-alias-label-caption);font-size:11px;line-height:16px}.KFXqYa_exportButton{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-secondary);cursor:pointer;border-radius:999px;padding:4px 12px;font-size:11.5px;line-height:16px;transition:border-color .16s,color .16s,background-color .16s}.KFXqYa_exportButton:hover,.KFXqYa_exportButton:focus-visible{border-color:var(--dsw-alias-border-l2);color:var(--dsw-alias-label-primary);outline:none}.KFXqYa_shareTrack{background:var(--dsw-alias-bg-module-platform);border-radius:999px;height:10px;display:flex;overflow:hidden}.KFXqYa_shareSeg{height:100%;transition:width .2s}.KFXqYa_shareSegPeak{background:var(--dsw-static-blue-500)}.KFXqYa_shareSegOff{background:color-mix(in srgb, var(--dsw-static-blue-500) 25%, var(--dsw-alias-bg-module-platform))}.KFXqYa_shareSegUser{background:var(--dsw-static-blue-500)}.KFXqYa_shareSegAssistant{background:var(--dsw-static-green-500)}.KFXqYa_shareSegTool{background:var(--dsw-static-amber-500)}.KFXqYa_shareLegend{align-items:center;gap:16px;display:flex}.KFXqYa_shareItem{color:var(--dsw-alias-label-secondary);align-items:baseline;gap:6px;font-size:12px;line-height:17px;display:inline-flex}.KFXqYa_bucketCost{align-items:baseline;gap:3px;display:inline-flex}.KFXqYa_bucketOfficial{color:var(--dsw-static-blue-500);font-weight:600}.KFXqYa_bucketSep{color:var(--dsw-alias-label-dimmed)}.KFXqYa_bucketThird{color:var(--dsw-alias-label-secondary)}.KFXqYa_shareDot{border-radius:50%;flex:none;align-self:center;width:8px;height:8px}.KFXqYa_shareValue{color:var(--dsw-alias-label-primary);font-variant-numeric:tabular-nums;font-weight:600}.KFXqYa_budgetInput{width:64px;color:var(--dsw-alias-label-primary);font-variant-numeric:tabular-nums;text-align:right;background:0 0;border:none;padding:0;font-size:12px;line-height:16px}.KFXqYa_budgetInput:focus-visible{outline:none}.KFXqYa_switch{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-module-platform);cursor:pointer;border-radius:999px;flex:none;width:30px;height:17px;padding:0;transition:background-color .16s,border-color .16s;position:relative}.KFXqYa_switchOn{border-color:var(--dsw-alias-border-l1);background:var(--dsw-alias-label-primary)}.KFXqYa_switchKnob{background:var(--dsw-static-neutral-bluish-00);border-radius:50%;width:11px;height:11px;transition:transform .16s;position:absolute;top:2px;left:2px}.KFXqYa_switchOn .KFXqYa_switchKnob{transform:translate(13px)}.KFXqYa_budgetFillWarn{background:var(--dsw-static-amber-500)}.KFXqYa_budgetFillOver{background:var(--dsw-static-red-500);animation:1.6s ease-in-out infinite KFXqYa_budgetOverPulse}@keyframes KFXqYa_budgetOverPulse{50%{opacity:.55}}.KFXqYa_chartWrap{width:100%;position:relative}.KFXqYa_chartSvg{width:100%;height:auto;display:block}.KFXqYa_chartEmpty{height:140px;color:var(--dsw-alias-label-caption);justify-content:center;align-items:center;font-size:13px;display:flex}.KFXqYa_emptyRow{text-align:center;color:var(--dsw-alias-label-caption);padding:28px 0;font-size:13px}.KFXqYa_chartGrid{stroke:var(--dsw-alias-border-l1);stroke-width:1px}.KFXqYa_chartAxisLabel{fill:var(--dsw-alias-label-tertiary);font-size:10px}.KFXqYa_chartBar{fill:var(--dsw-static-blue-500);opacity:.7}.KFXqYa_chartBar:hover{opacity:1}.KFXqYa_chartStack{stroke:var(--dsw-alias-bg-layer-1);stroke-width:.75px}.KFXqYa_chartStack:hover{opacity:.9}.KFXqYa_chartLine{stroke:var(--dsw-static-blue-500);stroke-width:2px;stroke-linecap:round;stroke-linejoin:round}.KFXqYa_chartCrosshair{stroke:var(--dsw-alias-label-dimmed);stroke-width:1px;stroke-dasharray:3 3}.KFXqYa_chartTooltip{pointer-events:none;z-index:2;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);box-shadow:none;white-space:nowrap;border-radius:8px;padding:8px 10px;position:absolute;transform:translate(-50%,calc(-100% - 10px))}.KFXqYa_chartTooltipAlignRight{transform:translate(calc(-100% - 8px),calc(-100% - 10px))}.KFXqYa_chartTooltipAlignLeft{transform:translate(8px,calc(-100% - 10px))}.KFXqYa_chartTooltipDate{color:var(--dsw-alias-label-primary);margin-bottom:3px;font-size:11px;font-weight:600}.KFXqYa_chartTooltipRow{color:var(--dsw-alias-label-secondary);align-items:center;gap:5px;font-size:11px;line-height:17px;display:flex}.KFXqYa_chartTooltipRow strong{color:var(--dsw-alias-label-primary);font-variant-numeric:tabular-nums;font-weight:600}.KFXqYa_chartTooltipHead{justify-content:space-between;align-items:baseline;gap:14px;margin-bottom:3px;display:flex}.KFXqYa_chartTooltipHead .KFXqYa_chartTooltipDate{margin-bottom:0}.KFXqYa_chartTooltipHead strong{color:var(--dsw-alias-label-primary);font-variant-numeric:tabular-nums;font-size:11px;font-weight:600}.KFXqYa_chartTooltipSplit{justify-content:space-between;gap:14px}.KFXqYa_chartTooltipLabel{align-items:center;gap:5px;display:flex}.KFXqYa_chartTooltipModelDetail{color:var(--dsw-alias-label-caption);font-variant-numeric:tabular-nums;margin:-2px 0 4px 13px;font-size:10.5px;line-height:14px}.KFXqYa_chartBarPlaceholder{fill:color-mix(in srgb, var(--dsw-alias-label-secondary) 30%, transparent)}.KFXqYa_chartLegendLine{background:var(--dsw-static-blue-500);border-radius:2px;width:10px;height:3px;display:inline-block}.KFXqYa_chartLegendBar{background:var(--dsw-static-blue-500);opacity:.5;border-radius:2px;width:7px;height:7px;display:inline-block}.KFXqYa_chartTooltipSwatch{border-radius:3px;flex:none;width:8px;height:8px;display:inline-block}.KFXqYa_chartLegend{color:var(--dsw-alias-label-tertiary);justify-content:flex-end;gap:14px;margin-top:2px;font-size:11px;display:flex}.KFXqYa_chartLegend span{align-items:center;gap:5px;display:inline-flex}.KFXqYa_chartLegendItem{font:inherit;color:inherit;cursor:pointer;background:0 0;border:none;align-items:center;gap:5px;padding:0;transition:color .12s;display:inline-flex}.KFXqYa_chartLegendItem:hover{color:var(--dsw-alias-label-secondary)}.KFXqYa_chartLegendItemActive{color:var(--dsw-alias-label-primary);font-weight:600}.KFXqYa_perfBar{align-items:center;margin:10px 0 2px;display:flex}.KFXqYa_perfChips{flex-wrap:wrap;gap:6px;margin:6px 0 2px;display:flex}.KFXqYa_perfChip{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-secondary);cursor:pointer;border-radius:999px;align-items:center;gap:5px;padding:2px 9px;font-size:11px;line-height:16px;transition:border-color .12s,color .12s,opacity .12s;display:inline-flex}.KFXqYa_perfChip:hover{color:var(--dsw-alias-label-primary)}.KFXqYa_perfChipOff{opacity:.45}.KFXqYa_perfChipDot{border-radius:3px;flex:none;width:8px;height:8px;display:inline-block}.KFXqYa_chartHoverDot{stroke:var(--dsw-alias-bg-layer-2);stroke-width:1.5px}.KFXqYa_tableScroll{border:1px solid var(--dsw-alias-border-l1);--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);border-radius:12px;overflow:auto}.KFXqYa_ubAlert{border:1px solid color-mix(in srgb, var(--dsw-static-blue-500) 30%, transparent);background:color-mix(in srgb, var(--dsw-static-blue-500) 8%, transparent);border-radius:10px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;font-size:12px;line-height:17px;display:flex}.KFXqYa_ubAlertLeft{align-items:center;gap:8px;display:inline-flex}.KFXqYa_ubRate{color:var(--dsw-alias-label-primary);font-variant-numeric:tabular-nums;font-weight:600}.KFXqYa_ubAlertNote{color:var(--dsw-alias-label-secondary);margin:0}.KFXqYa_ubTag,.KFXqYa_ubTagSuccess,.KFXqYa_ubTagNeutral,.KFXqYa_ubTagAlert,.KFXqYa_ubTagPromo{white-space:nowrap;border-radius:999px;align-items:center;height:18px;padding:0 7px;font-size:10px;font-weight:600;line-height:14px;display:inline-flex}.KFXqYa_ubTagSuccess{background:color-mix(in srgb, var(--dsw-static-green-500) 14%, transparent);color:var(--dsw-static-green-500)}.KFXqYa_ubTagNeutral{background:var(--dsw-alias-bg-layer-3);color:var(--dsw-alias-label-secondary)}.KFXqYa_ubTagAlert{background:color-mix(in srgb, var(--dsw-static-amber-500) 16%, transparent);color:var(--dsw-static-amber-500)}.KFXqYa_ubTagPromo{background:color-mix(in srgb, var(--dsw-static-red-500) 14%, transparent);color:var(--dsw-static-red-500);cursor:help}.KFXqYa_ubExtraRow td{opacity:.72;padding-top:2px;padding-bottom:2px;font-size:12px}.KFXqYa_ubExtraName{color:var(--dsw-alias-label-secondary);margin-left:26px}.KFXqYa_ubExtraNote{color:var(--dsw-alias-label-tertiary);margin-left:8px;font-size:10px}.KFXqYa_ubCard{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);border-radius:12px;flex-direction:column;gap:12px;padding:16px 18px;display:flex}.KFXqYa_ubCardHead{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.KFXqYa_ubCardTitle{color:var(--dsw-alias-label-primary);margin:0;font-size:13px;font-weight:600;line-height:18px}.KFXqYa_ubCardSub{color:var(--dsw-alias-label-tertiary);font-size:11px;line-height:16px}.KFXqYa_ubTablewrap{border:1px solid var(--dsw-alias-border-l1);border-radius:10px;overflow:auto}.KFXqYa_ubTable{border-collapse:collapse;white-space:nowrap;width:100%;font-size:12.5px}.KFXqYa_ubTable th,.KFXqYa_ubTable td{border-bottom:1px solid var(--dsw-alias-border-l1);text-align:left;padding:9px 12px}.KFXqYa_ubTable tbody tr:last-child td{border-bottom:0}.KFXqYa_ubTable thead th{color:var(--dsw-alias-label-tertiary);text-transform:uppercase;letter-spacing:.05em;font-size:11px;font-weight:600}.KFXqYa_ubModel{align-items:center;gap:8px;display:inline-flex}.KFXqYa_vendorLogo{object-fit:contain;border-radius:4px;flex:none;width:18px;height:18px}.KFXqYa_vendorLetter{color:#fff;border-radius:4px;flex:none;justify-content:center;align-items:center;width:18px;height:18px;font-size:10px;font-weight:600;line-height:1;display:inline-flex}.KFXqYa_ubModelName{color:var(--dsw-alias-label-primary);align-items:center;gap:6px;font-weight:500;display:inline-flex}.KFXqYa_ubPricepair{flex-wrap:wrap;gap:6px;display:inline-flex}.KFXqYa_ubChipPeak,.KFXqYa_ubChipOff{font-variant-numeric:tabular-nums;border-radius:999px;align-items:center;gap:5px;height:20px;padding:0 8px;font-size:11px;line-height:16px;display:inline-flex}.KFXqYa_ubChipLabel{font-size:10px;font-weight:600}.KFXqYa_ubChipPeak{background:color-mix(in srgb, var(--dsw-static-blue-500) 14%, transparent);color:var(--dsw-static-blue-500)}.KFXqYa_ubChipOff{background:color-mix(in srgb, var(--dsw-static-green-500) 14%, transparent);color:var(--dsw-static-green-500)}.KFXqYa_ubNotes{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.KFXqYa_ubNotesItem{align-items:baseline;gap:10px;display:flex}.KFXqYa_ubNotesTerm{color:var(--dsw-alias-label-primary);flex:0 0 72px;font-size:12px;font-weight:500}.KFXqYa_ubNotesDesc{min-width:0;color:var(--dsw-alias-label-secondary);flex:1;font-size:12px;line-height:17px}.KFXqYa_ubCardControlGroup{flex-wrap:wrap;align-items:center;gap:8px;display:inline-flex}.KFXqYa_ubTagError{white-space:nowrap;background:color-mix(in srgb, var(--dsw-static-red-500) 14%, transparent);height:18px;color:var(--dsw-static-red-500);border-radius:999px;align-items:center;padding:0 7px;font-size:10px;font-weight:600;line-height:14px;display:inline-flex}.KFXqYa_modelTable{border-collapse:collapse;table-layout:fixed;width:100%;min-width:640px;font-size:12.5px}.KFXqYa_modelTable th:first-child{width:26%}.KFXqYa_modelTable th,.KFXqYa_modelTable td th td{border-bottom:1px solid var(--dsw-alias-border-l1);text-align:left;white-space:nowrap;padding:7px 10px}.KFXqYa_modelTable tbody tr:last-child td tbody tr:last-child td{border-bottom:0}.KFXqYa_sessionGroupRow{cursor:pointer}.KFXqYa_sessionGroupRow .KFXqYa_modelName:before{content:"›";color:var(--dsw-alias-label-tertiary);margin-right:6px;display:inline-block}.KFXqYa_sessionGroupRow[aria-expanded=true] .KFXqYa_modelName:before{transform:rotate(90deg)}.KFXqYa_sessionChildRow td:first-child{padding-left:30px}.KFXqYa_modelTable thead th thead th{color:var(--dsw-alias-label-tertiary);text-transform:uppercase;letter-spacing:.05em;background:0 0;font-size:11px;font-weight:600}.KFXqYa_modelTable tbody tr tbody tr{transition:background-color .12s}.KFXqYa_modelTable tbody tr:hover tbody tr:hover{background:0 0}.KFXqYa_modelTable tbody tr.KFXqYa_modelRowFocusable{cursor:pointer}.KFXqYa_modelTable tbody tr.KFXqYa_modelRowActive,.KFXqYa_modelTable tbody tr.KFXqYa_modelRowActive:hover{background:var(--dsw-alias-interactive-bg-hover)}.KFXqYa_numCol{text-align:right;font-variant-numeric:tabular-nums}.KFXqYa_na{color:var(--dsw-alias-label-dimmed)}.KFXqYa_modelCell{align-items:center;gap:8px;display:inline-flex}.KFXqYa_modelDot{border-radius:50%;flex:none;width:9px;height:9px}.KFXqYa_modelName{color:var(--dsw-alias-label-primary);font-weight:500;line-height:16px;display:block}.KFXqYa_modelProvider{color:var(--dsw-alias-label-caption);font-size:10.5px;line-height:14px;display:block}.KFXqYa_siteRow{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:8px 10px;display:flex}.KFXqYa_siteRowName{align-items:center;gap:8px;min-width:0;display:inline-flex}.KFXqYa_siteKindTag{white-space:nowrap;border-radius:999px;flex:none;align-items:center;padding:1px 7px;font-size:10.5px;font-weight:600;line-height:16px;display:inline-flex}.KFXqYa_siteKindSite{color:var(--dsw-static-blue-500);background:color-mix(in srgb, var(--dsw-static-blue-500) 14%, transparent)}.KFXqYa_siteKindDirect{color:var(--dsw-static-green-500);background:color-mix(in srgb, var(--dsw-static-green-500) 14%, transparent)}.KFXqYa_siteKindUnknown{color:var(--dsw-static-red-500);background:color-mix(in srgb, var(--dsw-static-red-500) 14%, transparent)}.KFXqYa_siteRowTitle{color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;font-weight:600;line-height:18px;overflow:hidden}.KFXqYa_siteRowMeta{flex:none;align-items:center;gap:10px;display:inline-flex}.KFXqYa_siteRowCost{color:var(--dsw-alias-label-primary);font-variant-numeric:tabular-nums;font-size:12.5px;font-weight:700;line-height:18px}.KFXqYa_siteRowCalls{color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;font-size:11.5px;line-height:17px}.KFXqYa_siteRowCallsLow{color:var(--dsw-static-red-500)}.KFXqYa_flatTag{color:var(--dsw-alias-label-caption);font-size:10.5px;line-height:14px}.KFXqYa_healthDot{border-radius:50%;flex:none;width:8px;height:8px;display:inline-block}.KFXqYa_healthOk{background:var(--dsw-static-green-500)}.KFXqYa_healthBad{background:var(--dsw-static-red-500)}.KFXqYa_healthIdle{background:var(--dsw-static-neutral-bluish-400)}.KFXqYa_dashboardRight{align-items:center;gap:8px;min-width:0;display:flex}.KFXqYa_healthBadge{white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:3px 9px;font-size:11px;line-height:16px;display:inline-flex}.KFXqYa_healthBadgeOk{color:var(--dsw-static-green-500);background:var(--dsw-alias-bg-layer-2)}.KFXqYa_healthBadgeBad{color:var(--dsw-static-red-500);background:var(--dsw-alias-bg-layer-2)}.KFXqYa_planTag{color:var(--dsw-static-green-500);background:var(--dsw-alias-bg-layer-2);border-radius:999px;align-items:center;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px;display:inline-flex}.KFXqYa_uncataloguedTag{vertical-align:1px;color:var(--dsw-static-amber-500);background:var(--dsw-alias-bg-layer-2);border-radius:999px;margin-left:6px;padding:0 6px;font-size:10px;font-weight:600;line-height:16px;display:inline-block}.KFXqYa_estimatedTag{vertical-align:1px;color:var(--dsw-static-blue-500);background:var(--dsw-alias-bg-layer-2);border-radius:999px;margin-left:6px;padding:0 6px;font-size:10px;font-weight:600;line-height:16px;display:inline-block}.KFXqYa_feeBar{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-3);color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;border-radius:999px;flex-wrap:wrap;align-items:center;gap:8px;padding:6px 12px;font-size:11px;line-height:16px;display:inline-flex}.KFXqYa_feeBarAbove{order:-1;align-self:center;margin-bottom:8px}.KFXqYa_feeInline{font-variant-numeric:tabular-nums;white-space:nowrap;cursor:default;border-radius:999px;align-self:center;align-items:center;gap:5px;height:22px;padding:0 4px;font-size:11px;line-height:16px;display:inline-flex}.KFXqYa_feeInline .KFXqYa_feeChipPrimary,.KFXqYa_feeInline .KFXqYa_feeChipOff{height:18px;padding:0 7px}.KFXqYa_feeInlineNum{color:var(--dsw-alias-label-primary);padding-right:6px;font-weight:600}.KFXqYa_feeInlineAlert{background:color-mix(in srgb, var(--dsw-static-amber-500) 12%, transparent)}.KFXqYa_feeInlineAlert .KFXqYa_feeInlineNum{color:var(--dsw-static-amber-500)}.KFXqYa_feeInlineError{background:color-mix(in srgb, var(--dsw-static-red-500) 12%, transparent)}.KFXqYa_feeInlineError .KFXqYa_feeInlineNum{color:var(--dsw-static-red-500)}.KFXqYa_feeBar .KFXqYa_feeSep{color:var(--dsw-alias-label-dimmed)}.KFXqYa_feeCount{color:var(--dsw-alias-label-primary);font-weight:600}.KFXqYa_feeSuffix{color:var(--dsw-alias-label-tertiary)}.KFXqYa_feeItem{color:var(--dsw-alias-label-secondary);white-space:nowrap}.KFXqYa_feeNum{color:var(--dsw-alias-label-primary);font-weight:600}.KFXqYa_feeSep{color:var(--dsw-alias-label-tertiary)}.KFXqYa_feeChipPrimary,.KFXqYa_feeChipOff,.KFXqYa_feeChipAlert,.KFXqYa_feeChipError{font-variant-numeric:tabular-nums;white-space:nowrap;border-radius:999px;align-items:center;height:20px;padding:0 8px;font-size:10px;font-weight:600;line-height:14px;display:inline-flex}.KFXqYa_feeChipPrimary{background:color-mix(in srgb, var(--dsw-static-blue-500) 14%, transparent);color:var(--dsw-static-blue-500)}.KFXqYa_feeChipOff{background:color-mix(in srgb, var(--dsw-static-green-500) 14%, transparent);color:var(--dsw-static-green-500)}.KFXqYa_feeChipAlert{background:color-mix(in srgb, var(--dsw-static-amber-500) 16%, transparent);color:var(--dsw-static-amber-500)}.KFXqYa_feeChipError{background:color-mix(in srgb, var(--dsw-static-red-500) 14%, transparent);color:var(--dsw-static-red-500)}.KFXqYa_balanceCell{align-items:center;gap:6px;display:inline-flex;position:relative}.KFXqYa_balanceDaysBadge{border:1px solid var(--dsw-alias-label-caption);background:color-mix(in srgb, var(--dsw-alias-label-caption) 10%, transparent);min-width:24px;height:24px;color:var(--dsw-alias-label-secondary);cursor:pointer;border-radius:12px;justify-content:center;align-items:center;padding:0 6px;font-size:10.5px;font-weight:600;line-height:1;display:inline-flex}.KFXqYa_balanceDaysBadge:hover{border-color:var(--dsw-alias-label-secondary);background:color-mix(in srgb, var(--dsw-alias-label-caption) 18%, transparent)}.KFXqYa_balanceDaysBadgeLow{color:var(--dsw-static-red-500);border-color:var(--dsw-static-red-500);background:color-mix(in srgb, var(--dsw-static-red-500) 10%, transparent)}.KFXqYa_balanceDetailPop{z-index:20;background:var(--dsw-alias-bg-layer-3);border:1px solid var(--dsw-alias-label-caption);white-space:nowrap;border-radius:8px;flex-direction:column;gap:6px;min-width:180px;padding:8px 10px;display:inline-flex;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 6px 20px #0000002e}.KFXqYa_balanceDetailHead{justify-content:space-between;align-items:center;gap:12px;display:flex}.KFXqYa_balanceDetailTitle{color:var(--dsw-alias-label-primary);font-size:12px;font-weight:600}.KFXqYa_balanceDetailClose{cursor:pointer;color:var(--dsw-alias-label-caption);background:0 0;border:none;font-size:14px;line-height:1}.KFXqYa_balanceDetailClose:hover{color:var(--dsw-alias-label-primary)}.KFXqYa_balanceDetailGrid{flex-direction:column;gap:4px;display:inline-flex}.KFXqYa_balanceDetailRow{color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;justify-content:space-between;gap:16px;font-size:11px;line-height:15px;display:flex}.KFXqYa_balanceDetailLabel{color:var(--dsw-alias-label-caption)}.KFXqYa_balanceDetailValue{color:var(--dsw-alias-label-primary);font-weight:500}.KFXqYa_currencyToggle{background:var(--dsw-alias-bg-layer-3);border:none;border-radius:8px;align-items:center;gap:2px;margin-right:8px;padding:2px;display:inline-flex}.KFXqYa_currencyButton{color:var(--dsw-alias-label-secondary);white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:6px;padding:4px 8px;font-size:11px;font-weight:700;line-height:1}.KFXqYa_currencyButtonActive{background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary)}.KFXqYa_subscriptionGrid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;margin-top:10px;display:grid}.KFXqYa_subscriptionCard{border:1px solid color-mix(in srgb, var(--dsw-alias-border-l1) 75%, transparent);background:color-mix(in srgb, var(--dsw-alias-bg-layer-2) 62%, transparent);-webkit-backdrop-filter:blur(12px)saturate(1.3);border-radius:12px;padding:12px 14px;transition:border-color .2s,box-shadow .2s;position:relative;overflow:hidden;box-shadow:0 8px 24px #0000001a}.KFXqYa_subscriptionCard:before{content:"";background:linear-gradient(90deg, transparent 0%, var(--dsw-static-amber-500) 30%, var(--dsw-alias-label-primary) 50%, var(--dsw-static-amber-500) 70%, transparent 100%);opacity:.9;pointer-events:none;background-size:200% 100%;height:1.5px;animation:3.6s ease-in-out infinite KFXqYa_subscriptionGoldFlow;position:absolute;top:0;left:0;right:0}@keyframes KFXqYa_subscriptionGoldFlow{0%{background-position:200% 0}to{background-position:-200% 0}}.KFXqYa_subscriptionCard:hover{border-color:color-mix(in srgb, var(--dsw-static-amber-500) 55%, var(--dsw-alias-border-l1));box-shadow:0 10px 30px #00000029}.KFXqYa_subscriptionHead{flex-wrap:wrap;align-items:baseline;gap:6px;margin-bottom:8px;display:flex}.KFXqYa_subscriptionName{font-size:13px;font-weight:700}.KFXqYa_subscriptionPlan{color:var(--dsw-alias-label-secondary);font-size:11px}.KFXqYa_subscriptionPlan[data-kind=code],.KFXqYa_subscriptionPlan[data-kind=token]{color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-layer-3);border-radius:999px;padding:1px 8px;font-weight:500}.KFXqYa_subscriptionTier{color:var(--dsw-alias-label-secondary);margin-left:6px}.KFXqYa_subscriptionAuto{color:var(--dsw-static-blue-500);background:color-mix(in srgb, var(--dsw-static-blue-500) 14%, var(--dsw-alias-bg-layer-2));border-radius:999px;margin-left:6px;padding:1px 6px;font-size:10px}.KFXqYa_subscriptionStatus{color:var(--dsw-alias-label-secondary);margin-bottom:6px;font-size:11px}.KFXqYa_subscriptionWindow{align-items:center;gap:10px;margin-top:8px;font-size:11px;display:flex}.KFXqYa_subscriptionWindowLabel{color:var(--dsw-alias-label-secondary);flex:0 0 44px}.KFXqYa_subscriptionTrack{background:var(--dsw-alias-bg-layer-3);border-radius:3px;flex:1;height:6px;overflow:hidden}.KFXqYa_subscriptionFill{background:var(--dsw-static-blue-500);border-radius:3px;height:100%;transition:width .2s;display:block}.KFXqYa_subscriptionFillWarn{background:var(--dsw-static-amber-500)}.KFXqYa_subscriptionFillOver{background:var(--dsw-static-red-500)}.KFXqYa_subscriptionMeta{flex-direction:column;flex:none;align-items:flex-end;gap:2px;display:flex}.KFXqYa_subscriptionPct{text-align:right;font-variant-numeric:tabular-nums;flex:none;min-width:52px}.KFXqYa_subscriptionExhausted{color:var(--dsw-static-red-500);min-width:52px;font-weight:600}.KFXqYa_subscriptionReset{color:var(--dsw-alias-label-caption);white-space:nowrap;flex:none;font-size:10px}.KFXqYa_providerGroupList{flex-direction:column;gap:10px;display:flex}.KFXqYa_providerGroup{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);border-radius:12px;padding:12px 14px}.KFXqYa_providerGroupHead{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.KFXqYa_providerGroupTitle{align-items:center;gap:7px;min-width:0;display:inline-flex}.KFXqYa_providerGroupName{color:var(--dsw-alias-label-primary);font-size:13px;font-weight:600;line-height:18px}.KFXqYa_providerGroupMeta{flex:none;align-items:center;gap:10px;display:inline-flex}.KFXqYa_providerGroupBadge{color:var(--dsw-static-green-500);background:var(--dsw-alias-bg-layer-2);border-radius:999px;justify-content:center;align-items:center;min-width:64px;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px;display:inline-flex}.KFXqYa_providerGroupBalance,.KFXqYa_providerGroupCost{color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;white-space:nowrap;justify-content:flex-end;align-items:baseline;gap:6px;min-width:118px;font-size:12px;line-height:17px;display:inline-flex}.KFXqYa_providerGroupCostLabel{font-size:11px}.KFXqYa_providerGroupCostValue{color:var(--dsw-alias-label-primary);text-align:right;min-width:56px;font-weight:600}.KFXqYa_providerGroupBalanceLabel{color:var(--dsw-alias-label-caption);font-size:11px;line-height:17px}.KFXqYa_rounds{margin-top:10px}.KFXqYa_roundsBars{align-items:flex-end;gap:3px;height:124px;padding:16px 2px 0;display:flex;overflow-x:auto}.KFXqYa_roundsBarCol{border-radius:5px 5px 0 0;flex-direction:column;flex:1 0 28px;justify-content:flex-end;align-items:stretch;height:100%;display:flex;position:relative}.KFXqYa_roundsBarColPeak{background:color-mix(in srgb, var(--dsw-static-amber-500) 16%, transparent)}.KFXqYa_roundsBarColOff{background:var(--dsw-alias-bg-module-platform)}.KFXqYa_roundsBarLabel{text-align:center;color:var(--dsw-alias-label-secondary);white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:9px;line-height:1.2;position:absolute;bottom:0;left:0;right:0;overflow:hidden;transform:translateY(-100%)}.KFXqYa_roundsBarWrap{flex:1;align-items:flex-end;min-height:0;display:flex}.KFXqYa_roundsBar{background:var(--dsw-static-blue-500);border-radius:2px 2px 0 0;width:100%;min-height:2px;position:relative}.KFXqYa_roundsBarFlagged{background:var(--dsw-static-red-500);border-radius:2px 2px 0 0;width:100%;min-height:2px;position:relative}.KFXqYa_roundsFlagMark{background:var(--dsw-static-red-500);border-radius:50%;width:7px;height:7px;position:absolute;top:-3px;right:-3px}.KFXqYa_roundsAxis{color:var(--dsw-alias-label-secondary);justify-content:space-between;margin-top:6px;font-size:10px;display:flex}.KFXqYa_roundsEmpty{color:var(--dsw-alias-label-secondary);margin-top:10px;font-size:12px}.KFXqYa_heatmap{margin-top:10px}.KFXqYa_heatmapGrid{grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;display:grid}.KFXqYa_heatmapCellEmpty{background:var(--dsw-alias-bg-layer-1);height:30px;color:var(--dsw-alias-label-dimmed);font-variant-numeric:tabular-nums;border-radius:8px;justify-content:center;align-items:center;font-size:11px;display:flex}.KFXqYa_heatmapCell{font-variant-numeric:tabular-nums;cursor:pointer;border:0;border-radius:8px;justify-content:center;align-items:center;height:30px;padding:0;font-size:11px;display:flex}.KFXqYa_heatmapCell[data-level="0"],.KFXqYa_heatmapCell[data-level="1"],.KFXqYa_heatmapCell[data-level="2"]{color:var(--dsw-alias-label-primary)}.KFXqYa_heatmapCell[data-level="3"],.KFXqYa_heatmapCell[data-level="4"]{color:var(--dsw-static-neutral-bluish-00)}.KFXqYa_heatmapFooter{color:var(--dsw-alias-label-secondary);align-items:center;gap:8px;margin-top:10px;font-size:10px;display:flex}.KFXqYa_heatmapLegend{gap:3px;display:inline-flex}.KFXqYa_heatmapLegend i{border-radius:4px;width:14px;height:14px;display:block}.KFXqYa_heatmapHover{font-variant-numeric:tabular-nums;margin-left:auto}.KFXqYa_heatmapRangeSwitch{gap:4px;margin-left:auto;display:inline-flex}.KFXqYa_heatmapRangeButton{border:1px solid var(--dsw-alias-border-l1);color:var(--dsw-alias-text-secondary);cursor:pointer;background:0 0;border-radius:6px;padding:2px 8px;font-size:11px;line-height:1.4}.KFXqYa_heatmapRangeButtonActive{color:var(--dsw-alias-text-primary);border-color:currentColor;font-weight:600}.KFXqYa_heatmapYear{flex-direction:column;gap:6px;display:flex}.KFXqYa_heatmapYearBody{align-items:flex-start;gap:6px;display:flex}.KFXqYa_heatmapYearWeekdays{color:var(--dsw-alias-text-tertiary);flex:none;grid-template-rows:repeat(7,11px);gap:3px;padding-top:12px;font-size:9px;line-height:11px;display:grid}.KFXqYa_heatmapYearWeekday{white-space:nowrap;text-align:right;height:11px}.KFXqYa_heatmapYearMonths{min-width:max-content;color:var(--dsw-alias-text-tertiary);grid-template-columns:repeat(52,11px);gap:3px;font-size:9px;line-height:12px;display:grid;overflow:visible}.KFXqYa_heatmapYearMonth{white-space:nowrap;overflow:visible}.KFXqYa_heatmapYearScroll{padding-bottom:2px;overflow-x:auto}.KFXqYa_heatmapYearGrid{grid-template-rows:repeat(7,11px);grid-auto-flow:column;gap:3px;min-width:max-content;display:grid}.KFXqYa_heatmapYearCell{cursor:pointer;border:0;border-radius:2px;width:11px;height:11px;padding:0}.KFXqYa_floatSub{flex-direction:column;gap:6px;min-width:0;display:flex}.KFXqYa_floatSubHead{flex-wrap:wrap;align-items:baseline;gap:6px;min-width:0;display:flex}.KFXqYa_floatSubName{color:var(--dsw-alias-label-primary);font-size:12px;font-weight:700}.KFXqYa_floatSubPlan{color:var(--dsw-alias-label-secondary);font-size:10px}.KFXqYa_floatSub .KFXqYa_subscriptionWindow{flex-wrap:wrap;gap:4px 10px}.KFXqYa_floatSub .KFXqYa_subscriptionWindowLabel{flex:none}.KFXqYa_floatSub .KFXqYa_subscriptionMeta{min-width:0;max-width:100%}.KFXqYa_floatSub .KFXqYa_subscriptionPct{min-width:0}.KFXqYa_floatSub .KFXqYa_subscriptionReset{white-space:normal;overflow-wrap:anywhere}.KFXqYa_triggerPopEmpty{color:var(--dsw-alias-label-tertiary);padding:2px 0;font-size:11px;line-height:1.5}.KFXqYa_triggerPopSwitcher{justify-content:flex-end;align-items:center;gap:8px;margin-top:2px;display:flex}.KFXqYa_triggerPopSwitchCount{color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;font-size:10px}.KFXqYa_floatModeBtn{border:1px solid color-mix(in srgb, var(--dsw-alias-border-l1) 75%, transparent);background:color-mix(in srgb, var(--dsw-alias-bg-layer-2) 60%, transparent);color:var(--dsw-alias-label-secondary);white-space:nowrap;cursor:pointer;border-radius:10px;flex:1;padding:7px 10px;font-size:12px}.KFXqYa_floatModeBtnOn{border-color:var(--dsw-static-blue-500);color:var(--dsw-alias-label-primary);background:color-mix(in srgb, var(--dsw-static-blue-500) 16%, transparent)}.KFXqYa_rdoRow{justify-content:space-between;align-items:center;gap:8px;margin-top:10px;display:flex}.KFXqYa_rdoLabel{color:var(--dsw-alias-label-secondary);font-size:12px}.KFXqYa_rdoSelect{border:1px solid color-mix(in srgb, var(--dsw-alias-border-l1) 75%, transparent);background:color-mix(in srgb, var(--dsw-alias-bg-layer-2) 60%, transparent);color:var(--dsw-alias-label-primary);white-space:nowrap;cursor:pointer;border-radius:10px;align-items:center;gap:5px;padding:5px 8px 5px 10px;font-size:12px;display:inline-flex}.KFXqYa_rdoSelect:hover{background:color-mix(in srgb, var(--dsw-alias-bg-layer-2) 85%, transparent)}.KFXqYa_rdoSelect:focus-visible{border-color:var(--dsw-static-blue-500);outline:none}.KFXqYa_rdoChevron{color:var(--dsw-alias-label-tertiary);transition:transform .15s;display:inline-flex}.KFXqYa_rdoChevronOpen{transform:rotate(180deg)}.KFXqYa_floatTarget{color:var(--dsw-alias-label-secondary);cursor:pointer;align-items:center;gap:5px;font-size:12px;display:inline-flex}.KFXqYa_floatTargetLabel{color:var(--dsw-alias-label-secondary)}.KFXqYa_staleNotice{color:var(--dsw-static-amber-500);background:color-mix(in srgb, var(--dsw-static-amber-500) 12%, transparent);border:1px solid color-mix(in srgb, var(--dsw-static-amber-500) 30%, transparent);border-radius:10px;align-items:center;gap:6px;margin:0 0 10px;padding:8px 10px;font-size:11px;display:flex}.KFXqYa_plgHead{align-items:flex-start;gap:12px;display:flex}.KFXqYa_plgIcon{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);width:40px;height:40px;color:var(--dsw-alias-label-secondary);border-radius:10px;flex:none;justify-content:center;align-items:center;display:inline-flex}.KFXqYa_plgTitle{flex-direction:column;gap:4px;min-width:0;display:flex}.KFXqYa_plgNameRow{align-items:center;gap:8px;display:flex}.KFXqYa_plgName{color:var(--dsw-alias-label-primary);margin:0;font-size:13px;font-weight:600;line-height:18px}.KFXqYa_plgTag{height:18px;color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-layer-3);white-space:nowrap;border-radius:5px;align-items:center;padding:0 6px;font-size:10px;font-weight:600;display:inline-flex}.KFXqYa_plgDesc{color:var(--dsw-alias-label-secondary);margin:0;font-size:11px;line-height:16px}.KFXqYa_plgGrid{border-top:1px solid var(--dsw-alias-border-l1);grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:12px;display:grid}.KFXqYa_plgItem{flex-direction:column;gap:2px;min-width:0;display:flex}.KFXqYa_plgLabel{color:var(--dsw-alias-label-tertiary);font-size:10px;line-height:14px}.KFXqYa_plgVal{color:var(--dsw-alias-label-primary);word-break:break-all;font-size:12px;line-height:17px}.KFXqYa_plgLink{color:var(--dsw-static-blue-500);word-break:break-all;font-size:12px;line-height:17px;text-decoration:none}.KFXqYa_plgLink:hover{text-decoration:underline}.KFXqYa_tokenPanel{flex-direction:column;gap:14px;display:flex}.KFXqYa_tokenModelBar{background:var(--dsw-alias-bg-layer-2);border-radius:999px;height:8px;overflow:hidden}.KFXqYa_tokenModelParts{height:100%;display:flex}.KFXqYa_tokenModelPartIn{background:var(--dsw-static-blue-500)}.KFXqYa_tokenModelPartOut{background:var(--dsw-static-amber-500)}.KFXqYa_tokenModelShareRow{align-items:center;gap:6px;display:inline-flex}@media (width<=640px){.KFXqYa_kpiGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.KFXqYa_hero{gap:14px}.KFXqYa_heroTop{flex-direction:column;align-items:flex-start;gap:12px}.KFXqYa_heroGauge{width:72px;height:72px}.KFXqYa_heroSide{gap:12px}.KFXqYa_heroSideSpacer{display:none}}.KFXqYa_peakCard{z-index:2000;border:1px solid var(--dsw-alias-border-l1);background:color-mix(in srgb, var(--dsw-alias-bg-layer-2) 82%, transparent);-webkit-backdrop-filter:blur(12px)saturate(1.2);border-radius:12px;flex-direction:column;gap:8px;min-width:280px;max-width:380px;padding:16px;animation:.2s KFXqYa_peakAlertIn;display:flex;position:fixed;box-shadow:0 4px 16px #00000014}.KFXqYa_peakCardCorner{bottom:18px;right:18px}.KFXqYa_peakCardCenter{top:20%;left:50%;transform:translate(-50%)}.KFXqYa_peakCardPeak{color:var(--dsw-static-blue-500)}.KFXqYa_peakCardOff{color:var(--dsw-static-green-500)}.KFXqYa_peakHead{justify-content:space-between;align-items:center;gap:8px;display:flex}.KFXqYa_peakTag{white-space:nowrap;border-radius:6px;align-items:center;gap:6px;height:20px;padding:0 8px;font-size:11px;font-weight:600;line-height:14px;display:inline-flex}.KFXqYa_peakTagPrimary{background:var(--dsw-alias-bg-layer-3);color:var(--dsw-static-blue-500)}.KFXqYa_peakTagSuccess{background:var(--dsw-alias-bg-layer-3);color:var(--dsw-static-green-500)}.KFXqYa_peakDot{border-radius:999px;flex:none;width:6px;height:6px}.KFXqYa_peakDotPrimary{background:var(--dsw-static-blue-500)}.KFXqYa_peakDotSuccess{background:var(--dsw-static-green-500)}.KFXqYa_peakClose{width:24px;height:24px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;font-size:15px;line-height:1;transition:background-color .14s,color .14s;display:inline-flex}.KFXqYa_peakClose:hover{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-2)}.KFXqYa_peakCount{font-variant-numeric:tabular-nums;font-size:28px;font-weight:700;line-height:34px}.KFXqYa_peakCountPrimary{color:var(--dsw-static-blue-500)}.KFXqYa_peakCountSuccess{color:var(--dsw-static-green-500)}.KFXqYa_peakDesc{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px;line-height:18px}@keyframes KFXqYa_peakAlertIn{0%{opacity:0}to{opacity:1}}.KFXqYa_setCard{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);border-radius:12px;flex-direction:column;gap:12px;padding:16px 18px;display:flex}.KFXqYa_setGrid3,.KFXqYa_setGrid2{gap:10px;display:grid}.KFXqYa_setGrid3{grid-template-columns:repeat(3,minmax(0,1fr))}.KFXqYa_setGrid2{grid-template-columns:repeat(2,minmax(0,1fr))}@media (width<=720px){.KFXqYa_setGrid3,.KFXqYa_setGrid2{grid-template-columns:1fr}}.KFXqYa_setCell{border:1px solid var(--dsw-alias-border-l1);border-radius:10px;flex-direction:column;gap:8px;min-width:0;padding:12px 14px;display:flex}.KFXqYa_setCardHead{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.KFXqYa_setCardMeta{flex-direction:column;gap:4px;min-width:0;display:flex}.KFXqYa_setCardTitle{color:var(--dsw-alias-label-primary);margin:0;font-size:13px;font-weight:600;line-height:18px}.KFXqYa_setCardDesc{color:var(--dsw-alias-label-secondary);margin:0;font-size:11px;line-height:16px}.KFXqYa_ctlCol{flex-direction:column;gap:10px;padding-top:2px;display:flex}.KFXqYa_ctlRow{align-items:center;gap:12px;min-height:28px;display:flex}.KFXqYa_ctlRowStretch{display:flex}.KFXqYa_ctlLabel{color:var(--dsw-alias-label-secondary);flex:0 0 96px;font-size:11px;line-height:16px}.KFXqYa_ctlGroup{flex-wrap:wrap;align-items:center;gap:8px;display:inline-flex}.KFXqYa_userPriceRow{border-bottom:1px solid var(--dsw-alias-border-l1);align-items:center;gap:10px;padding:8px 0;display:flex}.KFXqYa_userPriceCheck{width:14px;height:14px;accent-color:var(--dsw-static-blue-500);flex:none;margin:0}.KFXqYa_userPriceBody{flex-direction:column;flex:1;gap:8px;min-width:0;display:flex}.KFXqYa_userPriceLineMeta{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) auto;align-items:end;gap:8px 10px;display:grid}@media (width<=720px){.KFXqYa_userPriceLineMeta{grid-template-columns:repeat(2,minmax(0,1fr))}}.KFXqYa_userPriceLineMeta .KFXqYa_userPriceInput{box-sizing:border-box;width:100%;min-width:0;max-width:none}.KFXqYa_userPriceBody .KFXqYa_ctlGroup{flex-wrap:nowrap}.KFXqYa_userPriceLineMeta .KFXqYa_userPriceField .KFXqYa_ctlLabel{align-items:flex-end;min-height:30px;display:flex}.KFXqYa_userPricePriceLine{border-left:2px solid var(--dsw-alias-border-l1);flex-wrap:wrap;align-items:center;gap:10px;width:calc(100% - 22px);margin-left:10px;padding:2px 0 6px 12px;display:flex}.KFXqYa_userPricePriceLine>.KFXqYa_ctlLabel{color:var(--dsw-alias-label-secondary);flex:0 0 44px;font-size:11px}.KFXqYa_userPricePriceLine .KFXqYa_userPriceInputNum{box-sizing:border-box;flex:1 1 0;width:auto;min-width:120px;max-width:240px}.KFXqYa_userPriceField{flex-direction:column;gap:4px;min-width:0;display:flex}.KFXqYa_userPriceField .KFXqYa_ctlLabel{flex:none;font-size:11px}.KFXqYa_userPriceInput,.KFXqYa_userPriceInputNum{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);min-width:96px;max-width:160px;color:var(--dsw-alias-label-primary);border-radius:6px;padding:4px 8px;font-size:12px;line-height:16px}.KFXqYa_userPriceInputNum{min-width:72px;max-width:88px}.KFXqYa_rdo{color:var(--dsw-alias-label-secondary);cursor:pointer;white-space:nowrap;align-items:center;gap:6px;font-size:12px;line-height:16px;display:inline-flex}.KFXqYa_rdo input{opacity:0;pointer-events:none;position:absolute}.KFXqYa_rdoDot{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);border-radius:50%;flex:none;width:14px;height:14px;position:relative}.KFXqYa_rdo input:checked+.KFXqYa_rdoDot{border-color:var(--dsw-static-blue-500)}.KFXqYa_rdo input:checked+.KFXqYa_rdoDot:after{content:"";background:var(--dsw-static-blue-500);border-radius:50%;position:absolute;inset:3px}.KFXqYa_inp{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);border-radius:6px;align-items:center;gap:4px;padding:2px 6px;display:inline-flex}.KFXqYa_affix{color:var(--dsw-alias-label-tertiary);font-size:11px;line-height:16px}.KFXqYa_prog{background:var(--dsw-alias-bg-module-platform);border-radius:999px;flex:1;min-width:0;height:6px;overflow:hidden}.KFXqYa_progFill{background:var(--dsw-static-blue-500);border-radius:999px;height:100%;transition:width .2s}.KFXqYa_btn{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);height:28px;color:var(--dsw-alias-label-secondary);cursor:pointer;border-radius:999px;align-items:center;gap:6px;padding:0 12px;font-size:12px;line-height:16px;transition:border-color .16s,color .16s,background-color .16s;display:inline-flex}.KFXqYa_btn:hover{border-color:var(--dsw-static-blue-500);color:var(--dsw-alias-label-primary);background:color-mix(in srgb, var(--dsw-static-blue-500) 12%, var(--dsw-alias-bg-layer-1))}.KFXqYa_modelTable tbody td:not(:first-child) tbody td:not(:first-child){text-align:right;font-family:var(--mono);font-variant-numeric:tabular-nums;color:var(--dsw-alias-label-primary)}`,document.head.appendChild(e)}var P={chartTooltipSwatch:`KFXqYa_chartTooltipSwatch`,ubModel:`KFXqYa_ubModel`,trigger:`KFXqYa_trigger`,popModelRow:`KFXqYa_popModelRow`,emptyRow:`KFXqYa_emptyRow`,chartTooltip:`KFXqYa_chartTooltip`,ubCard:`KFXqYa_ubCard`,flatTag:`KFXqYa_flatTag`,uncataloguedTag:`KFXqYa_uncataloguedTag`,siteRowMeta:`KFXqYa_siteRowMeta`,subscriptionReset:`KFXqYa_subscriptionReset`,heatmapYearGrid:`KFXqYa_heatmapYearGrid`,triggerPopSwitcher:`KFXqYa_triggerPopSwitcher`,heroMeta:`KFXqYa_heroMeta`,rdoRow:`KFXqYa_rdoRow`,rdoChevron:`KFXqYa_rdoChevron`,rounds:`KFXqYa_rounds`,peakCount:`KFXqYa_peakCount`,exportBar:`KFXqYa_exportBar`,modelProvider:`KFXqYa_modelProvider`,roundsEmpty:`KFXqYa_roundsEmpty`,hero:`KFXqYa_hero`,popModelName:`KFXqYa_popModelName`,heroValue:`KFXqYa_heroValue`,shareSegAssistant:`KFXqYa_shareSegAssistant`,shareLegend:`KFXqYa_shareLegend`,triggerSub:`KFXqYa_triggerSub`,chartStack:`KFXqYa_chartStack`,chartLegendItemActive:`KFXqYa_chartLegendItemActive`,modelRowFocusable:`KFXqYa_modelRowFocusable`,subscriptionTrack:`KFXqYa_subscriptionTrack`,balanceDetailTitle:`KFXqYa_balanceDetailTitle`,dashboardSubtitle:`KFXqYa_dashboardSubtitle`,btn:`KFXqYa_btn`,heroTop:`KFXqYa_heroTop`,plgItem:`KFXqYa_plgItem`,railButton:`KFXqYa_railButton`,ubExtraName:`KFXqYa_ubExtraName`,ubChipPeak:`KFXqYa_ubChipPeak`,modelCell:`KFXqYa_modelCell`,siteKindUnknown:`KFXqYa_siteKindUnknown`,balanceDetailPop:`KFXqYa_balanceDetailPop`,roundsBarColPeak:`KFXqYa_roundsBarColPeak`,roundsBarWrap:`KFXqYa_roundsBarWrap`,subscriptionFill:`KFXqYa_subscriptionFill`,roundsAxis:`KFXqYa_roundsAxis`,kpiGrid:`KFXqYa_kpiGrid`,heroBudgetFill:`KFXqYa_heroBudgetFill`,feeBar:`KFXqYa_feeBar`,chartWrap:`KFXqYa_chartWrap`,panel:`KFXqYa_panel`,chartCrosshair:`KFXqYa_chartCrosshair`,heroBudgetLabel:`KFXqYa_heroBudgetLabel`,feeInlineNum:`KFXqYa_feeInlineNum`,heroSideSpacer:`KFXqYa_heroSideSpacer`,heroSideValue:`KFXqYa_heroSideValue`,kpiTile:`KFXqYa_kpiTile`,siteRowTitle:`KFXqYa_siteRowTitle`,roundsBar:`KFXqYa_roundsBar`,plgHead:`KFXqYa_plgHead`,tokenModelShareRow:`KFXqYa_tokenModelShareRow`,peakHead:`KFXqYa_peakHead`,prog:`KFXqYa_prog`,kpiValue:`KFXqYa_kpiValue`,heatmapYearBody:`KFXqYa_heatmapYearBody`,heroLabel:`KFXqYa_heroLabel`,switch:`KFXqYa_switch`,ctlLabel:`KFXqYa_ctlLabel`,deltaDown:`KFXqYa_deltaDown`,chartLegendBar:`KFXqYa_chartLegendBar`,feeInlineAlert:`KFXqYa_feeInlineAlert`,feeNum:`KFXqYa_feeNum`,floatSubName:`KFXqYa_floatSubName`,peakCardPeak:`KFXqYa_peakCardPeak`,ctlCol:`KFXqYa_ctlCol`,metricCell:`KFXqYa_metricCell`,ubPricepair:`KFXqYa_ubPricepair`,reconcileText:`KFXqYa_reconcileText`,feeBarAbove:`KFXqYa_feeBarAbove`,subscriptionWindowLabel:`KFXqYa_subscriptionWindowLabel`,heatmapYear:`KFXqYa_heatmapYear`,plgGrid:`KFXqYa_plgGrid`,deltaUp:`KFXqYa_deltaUp`,budgetFillWarn:`KFXqYa_budgetFillWarn`,heroGaugeLabel:`KFXqYa_heroGaugeLabel`,plgLink:`KFXqYa_plgLink`,staleNotice:`KFXqYa_staleNotice`,shareSegOff:`KFXqYa_shareSegOff`,siteRowCost:`KFXqYa_siteRowCost`,siteRowName:`KFXqYa_siteRowName`,chartTooltipLabel:`KFXqYa_chartTooltipLabel`,feeCount:`KFXqYa_feeCount`,siteRowCallsLow:`KFXqYa_siteRowCallsLow`,ubTagSuccess:`KFXqYa_ubTagSuccess`,dashboardTitle:`KFXqYa_dashboardTitle`,chartLegendLine:`KFXqYa_chartLegendLine`,heroSide:`KFXqYa_heroSide`,ubTagAlert:`KFXqYa_ubTagAlert`,triggerMain:`KFXqYa_triggerMain`,popModelStatus:`KFXqYa_popModelStatus`,heatmapRangeButton:`KFXqYa_heatmapRangeButton`,tokenPanel:`KFXqYa_tokenPanel`,ubCardControlGroup:`KFXqYa_ubCardControlGroup`,chartLegendItem:`KFXqYa_chartLegendItem`,ubCardSub:`KFXqYa_ubCardSub`,heroGaugeArc:`KFXqYa_heroGaugeArc`,balanceDaysBadge:`KFXqYa_balanceDaysBadge`,triggerWrap:`KFXqYa_triggerWrap`,ctlRowStretch:`KFXqYa_ctlRowStretch`,providerGroupBadge:`KFXqYa_providerGroupBadge`,setCardHead:`KFXqYa_setCardHead`,floatModeBtn:`KFXqYa_floatModeBtn`,na:`KFXqYa_na`,reconcileIcon:`KFXqYa_reconcileIcon`,tabNav:`KFXqYa_tabNav`,providerGroupCostLabel:`KFXqYa_providerGroupCostLabel`,setCard:`KFXqYa_setCard`,popTagPrimary:`KFXqYa_popTagPrimary`,dashboardIn:`KFXqYa_dashboardIn`,heroGauge:`KFXqYa_heroGauge`,chartTooltipModelDetail:`KFXqYa_chartTooltipModelDetail`,ubNotesTerm:`KFXqYa_ubNotesTerm`,triggerPopSwitchCount:`KFXqYa_triggerPopSwitchCount`,heroBudgetValue:`KFXqYa_heroBudgetValue`,panelHint:`KFXqYa_panelHint`,bucketOfficial:`KFXqYa_bucketOfficial`,perfChips:`KFXqYa_perfChips`,perfChip:`KFXqYa_perfChip`,popDot:`KFXqYa_popDot`,heatmapGrid:`KFXqYa_heatmapGrid`,planTag:`KFXqYa_planTag`,triggerPopEmpty:`KFXqYa_triggerPopEmpty`,plgDesc:`KFXqYa_plgDesc`,currencyToggle:`KFXqYa_currencyToggle`,roundsBars:`KFXqYa_roundsBars`,floatTarget:`KFXqYa_floatTarget`,chartBar:`KFXqYa_chartBar`,peakDotSuccess:`KFXqYa_peakDotSuccess`,setGrid3:`KFXqYa_setGrid3`,userPriceField:`KFXqYa_userPriceField`,balanceDetailClose:`KFXqYa_balanceDetailClose`,providerGroupBalance:`KFXqYa_providerGroupBalance`,tabPanelIn:`KFXqYa_tabPanelIn`,roundsBarColOff:`KFXqYa_roundsBarColOff`,peakCard:`KFXqYa_peakCard`,affix:`KFXqYa_affix`,heatmapYearWeekdays:`KFXqYa_heatmapYearWeekdays`,feeInline:`KFXqYa_feeInline`,providerGroupCostValue:`KFXqYa_providerGroupCostValue`,popTitle:`KFXqYa_popTitle`,panelTitle:`KFXqYa_panelTitle`,ubTag:`KFXqYa_ubTag`,ubNotes:`KFXqYa_ubNotes`,vendorLetter:`KFXqYa_vendorLetter`,siteKindDirect:`KFXqYa_siteKindDirect`,peakDot:`KFXqYa_peakDot`,perfChipOff:`KFXqYa_perfChipOff`,ubNotesDesc:`KFXqYa_ubNotesDesc`,ubTagPromo:`KFXqYa_ubTagPromo`,metricLabel:`KFXqYa_metricLabel`,metricValueSuccess:`KFXqYa_metricValueSuccess`,chartTooltipSplit:`KFXqYa_chartTooltipSplit`,chartHoverDot:`KFXqYa_chartHoverDot`,plgNameRow:`KFXqYa_plgNameRow`,popHead:`KFXqYa_popHead`,heroGaugeTrack:`KFXqYa_heroGaugeTrack`,roundsBarLabel:`KFXqYa_roundsBarLabel`,exportButton:`KFXqYa_exportButton`,subscriptionFillWarn:`KFXqYa_subscriptionFillWarn`,triggerPrimary:`KFXqYa_triggerPrimary`,heatmapFooter:`KFXqYa_heatmapFooter`,userPriceLineMeta:`KFXqYa_userPriceLineMeta`,metricGrid:`KFXqYa_metricGrid`,feeSuffix:`KFXqYa_feeSuffix`,chartEmpty:`KFXqYa_chartEmpty`,sessionChildRow:`KFXqYa_sessionChildRow`,heroMain:`KFXqYa_heroMain`,healthIdle:`KFXqYa_healthIdle`,closeButton:`KFXqYa_closeButton`,chartTooltipDate:`KFXqYa_chartTooltipDate`,ubExtraRow:`KFXqYa_ubExtraRow`,modelName:`KFXqYa_modelName`,providerGroup:`KFXqYa_providerGroup`,chartBarPlaceholder:`KFXqYa_chartBarPlaceholder`,providerGroupName:`KFXqYa_providerGroupName`,roundsBarCol:`KFXqYa_roundsBarCol`,roundsBarFlagged:`KFXqYa_roundsBarFlagged`,floatSubHead:`KFXqYa_floatSubHead`,popModel:`KFXqYa_popModel`,reconcileNotice:`KFXqYa_reconcileNotice`,heroGaugePct:`KFXqYa_heroGaugePct`,chartLine:`KFXqYa_chartLine`,peakTagSuccess:`KFXqYa_peakTagSuccess`,estimatedTag:`KFXqYa_estimatedTag`,setCardMeta:`KFXqYa_setCardMeta`,feeChipError:`KFXqYa_feeChipError`,floatModeBtnOn:`KFXqYa_floatModeBtnOn`,peakDotPrimary:`KFXqYa_peakDotPrimary`,subscriptionStatus:`KFXqYa_subscriptionStatus`,unpricedHint:`KFXqYa_unpricedHint`,healthBad:`KFXqYa_healthBad`,subscriptionWindow:`KFXqYa_subscriptionWindow`,setGrid2:`KFXqYa_setGrid2`,feeSep:`KFXqYa_feeSep`,heroBudgetFillOver:`KFXqYa_heroBudgetFillOver`,heroSideLabel:`KFXqYa_heroSideLabel`,ubCardHead:`KFXqYa_ubCardHead`,ubTagError:`KFXqYa_ubTagError`,tokenModelPartIn:`KFXqYa_tokenModelPartIn`,progFill:`KFXqYa_progFill`,plgVal:`KFXqYa_plgVal`,popModelLabel:`KFXqYa_popModelLabel`,metricValuePrimary:`KFXqYa_metricValuePrimary`,bucketSep:`KFXqYa_bucketSep`,userPriceRow:`KFXqYa_userPriceRow`,sessionGroupRow:`KFXqYa_sessionGroupRow`,"billing-trigger":`KFXqYa_billing-trigger`,triggerIcon:`KFXqYa_triggerIcon`,subscriptionGoldFlow:`KFXqYa_subscriptionGoldFlow`,chartGrid:`KFXqYa_chartGrid`,ubModelName:`KFXqYa_ubModelName`,subscriptionPct:`KFXqYa_subscriptionPct`,providerGroupMeta:`KFXqYa_providerGroupMeta`,plgIcon:`KFXqYa_plgIcon`,plgName:`KFXqYa_plgName`,exportLabel:`KFXqYa_exportLabel`,chartSvg:`KFXqYa_chartSvg`,setCell:`KFXqYa_setCell`,ubTagNeutral:`KFXqYa_ubTagNeutral`,healthBadge:`KFXqYa_healthBadge`,subscriptionCard:`KFXqYa_subscriptionCard`,subscriptionName:`KFXqYa_subscriptionName`,balanceCell:`KFXqYa_balanceCell`,feeChipPrimary:`KFXqYa_feeChipPrimary`,subscriptionExhausted:`KFXqYa_subscriptionExhausted`,ubTablewrap:`KFXqYa_ubTablewrap`,siteRowCalls:`KFXqYa_siteRowCalls`,balanceDetailRow:`KFXqYa_balanceDetailRow`,heatmapRangeSwitch:`KFXqYa_heatmapRangeSwitch`,peakCardOff:`KFXqYa_peakCardOff`,ctlGroup:`KFXqYa_ctlGroup`,providerGroupTitle:`KFXqYa_providerGroupTitle`,heatmapRangeButtonActive:`KFXqYa_heatmapRangeButtonActive`,kpiLabel:`KFXqYa_kpiLabel`,rdo:`KFXqYa_rdo`,feeChipAlert:`KFXqYa_feeChipAlert`,heroReadout:`KFXqYa_heroReadout`,floatSub:`KFXqYa_floatSub`,ubAlertNote:`KFXqYa_ubAlertNote`,budgetInput:`KFXqYa_budgetInput`,ubNotesItem:`KFXqYa_ubNotesItem`,chartTooltipAlignLeft:`KFXqYa_chartTooltipAlignLeft`,bucketThird:`KFXqYa_bucketThird`,bucketCost:`KFXqYa_bucketCost`,rdoLabel:`KFXqYa_rdoLabel`,peakAlertIn:`KFXqYa_peakAlertIn`,setCardDesc:`KFXqYa_setCardDesc`,siteKindSite:`KFXqYa_siteKindSite`,chartTooltipHead:`KFXqYa_chartTooltipHead`,heroSideItem:`KFXqYa_heroSideItem`,chartAxisLabel:`KFXqYa_chartAxisLabel`,dashboardModal:`KFXqYa_dashboardModal`,feeChipOff:`KFXqYa_feeChipOff`,modalFooter:`KFXqYa_modalFooter`,dashboard:`KFXqYa_dashboard`,providerGroupCost:`KFXqYa_providerGroupCost`,triggerSparkHot:`KFXqYa_triggerSparkHot`,rdoSelect:`KFXqYa_rdoSelect`,peakTag:`KFXqYa_peakTag`,triggerLabel:`KFXqYa_triggerLabel`,subscriptionMeta:`KFXqYa_subscriptionMeta`,triggerYen:`KFXqYa_triggerYen`,popModelStatusLow:`KFXqYa_popModelStatusLow`,tabPanel:`KFXqYa_tabPanel`,healthOk:`KFXqYa_healthOk`,heatmapYearCell:`KFXqYa_heatmapYearCell`,chartTooltipRow:`KFXqYa_chartTooltipRow`,heroCurrency:`KFXqYa_heroCurrency`,ubAlert:`KFXqYa_ubAlert`,ubExtraNote:`KFXqYa_ubExtraNote`,modelTable:`KFXqYa_modelTable`,subscriptionHead:`KFXqYa_subscriptionHead`,budgetOverPulse:`KFXqYa_budgetOverPulse`,subscriptionPlan:`KFXqYa_subscriptionPlan`,numCol:`KFXqYa_numCol`,modelRowActive:`KFXqYa_modelRowActive`,reconcileDismiss:`KFXqYa_reconcileDismiss`,tabButton:`KFXqYa_tabButton`,subscriptionAuto:`KFXqYa_subscriptionAuto`,heatmapLegend:`KFXqYa_heatmapLegend`,rdoChevronOpen:`KFXqYa_rdoChevronOpen`,feeItem:`KFXqYa_feeItem`,popDotSub:`KFXqYa_popDotSub`,floatTargetLabel:`KFXqYa_floatTargetLabel`,tokenModelBar:`KFXqYa_tokenModelBar`,peakCardCenter:`KFXqYa_peakCardCenter`,shareItem:`KFXqYa_shareItem`,triggerMetric:`KFXqYa_triggerMetric`,heatmapYearWeekday:`KFXqYa_heatmapYearWeekday`,plgTitle:`KFXqYa_plgTitle`,dashboardHead:`KFXqYa_dashboardHead`,peakCountPrimary:`KFXqYa_peakCountPrimary`,userPriceInput:`KFXqYa_userPriceInput`,shareValue:`KFXqYa_shareValue`,balanceDaysBadgeLow:`KFXqYa_balanceDaysBadgeLow`,heroGaugeSvg:`KFXqYa_heroGaugeSvg`,heroGaugeCenter:`KFXqYa_heroGaugeCenter`,ubChipLabel:`KFXqYa_ubChipLabel`,heatmapYearMonths:`KFXqYa_heatmapYearMonths`,ubTable:`KFXqYa_ubTable`,panelHeadControls:`KFXqYa_panelHeadControls`,popDotNeutral:`KFXqYa_popDotNeutral`,tableScroll:`KFXqYa_tableScroll`,ubCardTitle:`KFXqYa_ubCardTitle`,ubChipOff:`KFXqYa_ubChipOff`,delta:`KFXqYa_delta`,healthDot:`KFXqYa_healthDot`,feeInlineError:`KFXqYa_feeInlineError`,budgetFillOver:`KFXqYa_budgetFillOver`,subscriptionTier:`KFXqYa_subscriptionTier`,providerGroupBalanceLabel:`KFXqYa_providerGroupBalanceLabel`,kpiDetail:`KFXqYa_kpiDetail`,kpiGreen:`KFXqYa_kpiGreen`,heatmapYearScroll:`KFXqYa_heatmapYearScroll`,plgTag:`KFXqYa_plgTag`,rangeButtonActive:`KFXqYa_rangeButtonActive`,shareSegTool:`KFXqYa_shareSegTool`,chartLegend:`KFXqYa_chartLegend`,roundsFlagMark:`KFXqYa_roundsFlagMark`,siteRow:`KFXqYa_siteRow`,floatSubPlan:`KFXqYa_floatSubPlan`,ctlRow:`KFXqYa_ctlRow`,userPriceCheck:`KFXqYa_userPriceCheck`,heatmapHover:`KFXqYa_heatmapHover`,peakTagPrimary:`KFXqYa_peakTagPrimary`,shareDot:`KFXqYa_shareDot`,userPriceInputNum:`KFXqYa_userPriceInputNum`,tokenModelPartOut:`KFXqYa_tokenModelPartOut`,inp:`KFXqYa_inp`,tabButtonActive:`KFXqYa_tabButtonActive`,healthBadgeOk:`KFXqYa_healthBadgeOk`,chartTooltipAlignRight:`KFXqYa_chartTooltipAlignRight`,perfChipDot:`KFXqYa_perfChipDot`,panelHead:`KFXqYa_panelHead`,providerGroupList:`KFXqYa_providerGroupList`,providerGroupHead:`KFXqYa_providerGroupHead`,heatmap:`KFXqYa_heatmap`,tokenModelParts:`KFXqYa_tokenModelParts`,userPriceBody:`KFXqYa_userPriceBody`,triggerPopShown:`KFXqYa_triggerPopShown`,popTagSub:`KFXqYa_popTagSub`,switchKnob:`KFXqYa_switchKnob`,dashboardRight:`KFXqYa_dashboardRight`,ubAlertLeft:`KFXqYa_ubAlertLeft`,modelDot:`KFXqYa_modelDot`,setCardTitle:`KFXqYa_setCardTitle`,dashboardBody:`KFXqYa_dashboardBody`,balanceDetailHead:`KFXqYa_balanceDetailHead`,heatmapYearMonth:`KFXqYa_heatmapYearMonth`,peakClose:`KFXqYa_peakClose`,rangeToggle:`KFXqYa_rangeToggle`,siteKindTag:`KFXqYa_siteKindTag`,shareTrack:`KFXqYa_shareTrack`,heroGaugeArcOver:`KFXqYa_heroGaugeArcOver`,triggerSpark:`KFXqYa_triggerSpark`,vendorLogo:`KFXqYa_vendorLogo`,balanceDetailLabel:`KFXqYa_balanceDetailLabel`,heatmapCell:`KFXqYa_heatmapCell`,subscriptionFillOver:`KFXqYa_subscriptionFillOver`,heroGaugePctOver:`KFXqYa_heroGaugePctOver`,subscriptionGrid:`KFXqYa_subscriptionGrid`,balanceDetailGrid:`KFXqYa_balanceDetailGrid`,triggerSparkBar:`KFXqYa_triggerSparkBar`,metricValue:`KFXqYa_metricValue`,heatmapCellEmpty:`KFXqYa_heatmapCellEmpty`,peakCardCorner:`KFXqYa_peakCardCorner`,balanceDetailValue:`KFXqYa_balanceDetailValue`,plgLabel:`KFXqYa_plgLabel`,peakDesc:`KFXqYa_peakDesc`,triggerPop:`KFXqYa_triggerPop`,heroBudgetTrack:`KFXqYa_heroBudgetTrack`,rangeButton:`KFXqYa_rangeButton`,switchOn:`KFXqYa_switchOn`,userPricePriceLine:`KFXqYa_userPricePriceLine`,popDotDirect:`KFXqYa_popDotDirect`,shareSegPeak:`KFXqYa_shareSegPeak`,rdoDot:`KFXqYa_rdoDot`,perfBar:`KFXqYa_perfBar`,shareSegUser:`KFXqYa_shareSegUser`,shareSeg:`KFXqYa_shareSeg`,currencyButtonActive:`KFXqYa_currencyButtonActive`,heroBudget:`KFXqYa_heroBudget`,currencyButton:`KFXqYa_currencyButton`,ubRate:`KFXqYa_ubRate`,healthBadgeBad:`KFXqYa_healthBadgeBad`,peakCountSuccess:`KFXqYa_peakCountSuccess`};let re={"opencode-go":{type:`code`,subscription:{amount:10,currency:`USD`,period:`month`},tier:{amount:10,currency:`USD`,periodDays:7,label:`周额度 $30`}},opencode:{type:`code`,subscription:{amount:10,currency:`USD`,period:`month`},tier:{amount:10,currency:`USD`,periodDays:7,label:`周额度 $30`}},"kimi-coding":{type:`code`},"zai-coding-cn":{type:`code`},"zai-coding":{type:`code`},"qwen-token-plan":{type:`code`},"qwen-token-plan-cn":{type:`code`},"xiaomi-token-plan-ams":{type:`code`},"xiaomi-token-plan-cn":{type:`code`},"xiaomi-token-plan-sgp":{type:`code`},"volcengine-token-plan":{type:`code`},"ark-token-plan":{type:`code`},"doubao-token-plan":{type:`code`},minimax:{type:`code`},"minimax-cn":{type:`code`},"minimax-token-plan":{type:`code`},"minimax-token-plan-cn":{type:`code`},"hunyuan-token-plan":{type:`code`},"tencent-token-plan":{type:`code`},"hy-token-plan":{type:`code`},"xinghuo-token-plan":{type:`code`},"xfyun-coding":{type:`code`},"spark-coding":{type:`code`},"huawei-token-plan":{type:`code`},"pangu-token-plan":{type:`code`},"huawei-maas-token-plan":{type:`code`},"volcengine-agent-plan":{type:`code`},"ark-agent-plan":{type:`code`},"baidu-token-plan":{type:`code`},"ernie-token-plan":{type:`code`},"wenxin-token-plan":{type:`code`}},F={glm:`zai-coding-cn`,bigmodel:`zai-coding-cn`,zhipu:`zai-coding-cn`,zhipuai:`zai-coding-cn`,zai:`zai-coding`,ark:`volcengine-token-plan`,volcengine:`volcengine-token-plan`,doubao:`doubao-token-plan`,moonshot:`kimi-coding`,kimi:`kimi-coding`,xiaomi:`xiaomi-token-plan-cn`,opencode:`opencode-go`};function ie(e){return e===``?e:F[e]??e}function ae(e){let t=re[ie(e)];return t?.type===`code`?t.tier:void 0}let oe=[{key:`deepseek-v4-flash`,input:.14,cacheHit:.0028,output:.28},{key:`deepseek-v4-pro`,input:.435,cacheHit:.003625,output:.87},{key:`gpt-5.6-sol`,input:5,cacheHit:.5,output:30},{key:`gpt-5.6-terra`,input:2,cacheHit:.2,output:12},{key:`gpt-5.6-luna`,input:.2,cacheHit:.02,output:1.2},{key:`glm-5.2`,input:1.4,cacheHit:.26,output:4.4},{key:`qwen3.8-max`,input:2,cacheHit:.21,output:6},{key:`kimi-k3`,input:2.82,cacheHit:.28,output:14.08},{key:`grok-4.6`,input:2,cacheHit:.5,output:6},{key:`gemini-2.5-pro`,input:1.25,cacheHit:.125,output:10}],se,ce,le,ue,de;function fe(e){let t=/:\/\//.test(e)?e:`https://${e}`;try{return new URL(t).origin}catch{return e.trim().toLowerCase().replace(/\/+$/,``)}}function pe(e,t){return fe(e)===fe(t)}function me(e){de=e.length>0?e:void 0}function he(){return de}function ge(e){return G(e)}function _e(e,t){let n=ve(e,t);if(n!==void 0)return{input:n.input,cacheHit:n.cacheHit,output:n.output,...n.currency===void 0?{}:{currency:n.currency},...n.offPeak===void 0?{}:{offPeak:n.offPeak}}}function ve(e,t){if(de===void 0)return;let n=ge(e),r=U(n),i=e=>ge(e.key)===n||U(e.key)===r;if(t!==void 0){for(let e of de)if(e.origin!==void 0&&e.origin!==``&&i(e)&&pe(e.origin,t))return e}for(let e of de)if((e.origin===void 0||e.origin===``)&&i(e))return e}function I(e){if(de===void 0)return;let t=ge(e),n=U(t);return de.find(e=>e.origin!==void 0&&e.origin!==``&&(ge(e.key)===t||U(e.key)===n))}function ye(e){se=typeof e.rate==`number`&&Number.isFinite(e.rate)&&e.rate>0?e.rate:void 0,ce=e.prices,le=e.extraModels}function be(e){ue=e}function xe(){return se??6.79}function Se(){return{rate:xe(),live:se!==void 0}}let Ce=.5,L=Date.parse(`2026-09-14T04:00:00Z`),R={input:1.5,cacheHit:.05,output:4.5},z={flash:R,"flash-vision-exp":R,pro:{input:4.5,cacheHit:.15,output:13.5}};function B(e){return e>=9&&e<12||e>=14&&e<18}function V(e){return e==null||!Number.isFinite(e)?`peak`:we(e)?`offPeak`:B((new Date(e).getUTCHours()+8)%24)?`peak`:`offPeak`}function we(e){let t=new Date(e+288e5).getUTCDay();return t===0||t===6}let Te=[540,720,840,1080];function Ee(e){return((e+288e5)%864e5+864e5)%864e5}function De(e){let t=V(e),n=Ee(e);for(let r=0;r<7;r++){let i=r*864e5-n;for(let n of Te){let r=i+n*6e4;if(!(r<=0)&&V(e+r)!==t)return{tier:t,nextSwitchInMs:r}}}let r=Te[0]??0;return{tier:t,nextSwitchInMs:864e5-n+r*6e4}}function Oe(e,t){let{nextSwitchInMs:n}=De(e);if(n>t)return null;let r=e+n;return{entering:V(r),atMs:r}}function ke(e){let t=Math.max(1,Math.ceil(e/6e4)),n=Math.floor(t/60),r=t%60;return n>0?`${n}h${String(r).padStart(2,`0`)}m`:`${r}m`}let Ae=`09:00-12:00 / 14:00-18:00`,je=`Standard / Flex`,Me=[{key:`flash`,name:`DeepSeek V4.1 Flash`,provider:`DeepSeek`,colorVar:`dsw-static-blue-500`,price:{currency:`CNY`,input:2,cacheHit:.04,output:8,offPeak:{input:1,cacheHit:.02,output:4}},peakHours:Ae},{key:`flash-vision-exp`,name:`DeepSeek V4 Flash Vision (Exp)`,provider:`DeepSeek`,colorVar:`dsw-static-blue-500`,retired:!0,price:{currency:`CNY`,input:2,cacheHit:.04,output:8,offPeak:{input:1,cacheHit:.02,output:4}},peakHours:Ae},{key:`pro`,name:`DeepSeek V4 Pro`,provider:`DeepSeek`,colorVar:`dsw-static-deepseek-500`,price:{currency:`CNY`,input:2,cacheHit:.04,output:8,offPeak:{input:1,cacheHit:.02,output:4}},peakHours:Ae},{key:`glm`,name:`GLM-5.2`,provider:`智谱 AI`,colorVar:`dsw-static-blue-600`,price:{currency:`CNY`,input:8,cacheHit:2,output:28}},{key:`glm-5.3`,name:`GLM-5.3`,provider:`智谱 AI`,colorVar:`dsw-static-blue-500`,price:{currency:`CNY`,input:8,cacheHit:2,output:28}},{key:`glm-5.3-flash`,name:`GLM-5.3-Flash`,provider:`智谱 AI`,colorVar:`dsw-static-blue-300`,price:{currency:`CNY`,input:.8,cacheHit:.23,output:2.8},promo:{factor:.5,endsAtMs:Date.UTC(2026,8,8,16,0,0),note:`限时 5 折`}},{key:`glm-4.6`,name:`GLM-4.6`,provider:`智谱 AI`,colorVar:`dsw-static-blue-400`,price:{currency:`CNY`,input:4,cacheHit:.8,output:16}},{key:`glm-4.5-air`,name:`GLM-4.5-Air`,provider:`智谱 AI`,colorVar:`dsw-static-blue-300`,price:{currency:`CNY`,input:.8,cacheHit:.16,output:2}},{key:`glm-4.7`,name:`GLM-4.7`,provider:`智谱 AI`,colorVar:`dsw-static-blue-400`,price:{currency:`CNY`,input:4,cacheHit:1,output:16},estimated:!0},{key:`glm-5-turbo`,name:`GLM-5-Turbo`,provider:`智谱 AI`,colorVar:`dsw-static-blue-500`,price:{currency:`CNY`,input:5,cacheHit:1.2,output:22}},{key:`glm-5.1`,name:`GLM-5.1`,provider:`智谱 AI`,colorVar:`dsw-static-blue-600`,price:{currency:`CNY`,input:6,cacheHit:1.2,output:24}},{key:`glm-5v-turbo`,name:`GLM-5V-Turbo`,provider:`智谱 AI`,colorVar:`dsw-static-blue-300`,price:{currency:`CNY`,input:5,cacheHit:1.2,output:22}},{key:`qwen-3.8-max`,name:`Qwen3.8 Max`,provider:`阿里通义`,colorVar:`dsw-static-blue-600`,price:{currency:`CNY`,input:12,cacheHit:1.5,output:36},extraRows:[{label:`显式缓存创建`,input:15},{label:`显式缓存命中`,input:1},{label:`Batch File`,input:6,output:18,note:`长期半价`},{label:`Batch Chat`,input:12,output:36,note:`与标准价一致`}]},{key:`qwen-3.8-flash`,name:`Qwen3.8 Flash`,provider:`阿里通义`,colorVar:`dsw-static-blue-400`,price:{currency:`CNY`,input:1,cacheHit:.1,output:3},extraRows:[{label:`显式缓存创建`,input:1.25},{label:`显式缓存命中`,input:.1},{label:`Batch File`,input:.5,output:1.5,note:`长期半价`},{label:`Batch Chat`,input:1,output:3,note:`与标准价一致`}]},{key:`qwen-max`,name:`Qwen3.7-Max`,provider:`阿里通义`,colorVar:`dsw-static-blue-300`,price:{currency:`CNY`,input:12,cacheHit:1.2,output:36},promo:{factor:.5,note:`限时 5 折`},extraRows:[{label:`显式缓存创建`,input:15},{label:`显式缓存命中`,input:1.2},{label:`Batch File`,input:6,output:18,note:`长期半价`},{label:`Batch Chat`,input:12,output:36,note:`与标准价一致`}]},{key:`qwen-plus`,name:`Qwen3.5-Plus`,provider:`阿里通义`,colorVar:`dsw-static-blue-500`,price:{currency:`CNY`,input:.8,cacheHit:.08,output:4.8},extraRows:[{label:`显式缓存创建`,input:1},{label:`显式缓存命中`,input:.08},{label:`Batch File`,input:.4,output:2.4,note:`长期半价`},{label:`Batch Chat`,input:.8,output:4.8,note:`与标准价一致`}]},{key:`qwen-flash`,name:`Qwen3.5-Flash`,provider:`阿里通义`,colorVar:`dsw-static-blue-400`,price:{currency:`CNY`,input:.2,cacheHit:.02,output:2},extraRows:[{label:`显式缓存创建`,input:.25},{label:`显式缓存命中`,input:.02}]},{key:`doubao`,name:`Doubao Seed-2.0 Pro`,provider:`字节豆包`,colorVar:`dsw-static-red-500`,price:{currency:`CNY`,input:3.2,cacheHit:.64,output:16}},{key:`doubao-mini`,name:`Doubao Seed-2.0 Mini`,provider:`字节豆包`,colorVar:`dsw-static-red-300`,price:{currency:`CNY`,input:.2,cacheHit:.02,output:2}},{key:`doubao-1.6`,name:`Doubao Seed-1.6`,provider:`字节豆包`,colorVar:`dsw-static-red-400`,price:{currency:`CNY`,input:.8,cacheHit:0,output:8}},{key:`doubao-seed-evolving`,name:`Doubao-Seed-Evolving`,provider:`字节豆包`,colorVar:`dsw-static-red-500`,price:{currency:`CNY`,input:6,cacheHit:1.2,output:30}},{key:`doubao-seed-2.1-pro`,name:`Doubao Seed-2.1 Pro`,provider:`字节豆包`,colorVar:`dsw-static-red-400`,price:{currency:`CNY`,input:6,cacheHit:1.2,output:30}},{key:`doubao-seed-2.1-turbo`,name:`Doubao Seed-2.1 Turbo`,provider:`字节豆包`,colorVar:`dsw-static-red-300`,price:{currency:`CNY`,input:3,cacheHit:.6,output:15}},{key:`kimi`,name:`Kimi K2.7 Code`,provider:`月之暗面`,colorVar:`dsw-static-neutral-bluish-700`,price:{currency:`CNY`,input:6.5,cacheHit:1.3,output:27}},{key:`kimi-k2.7-hs`,name:`Kimi K2.7 Code HighSpeed`,provider:`月之暗面`,colorVar:`dsw-static-neutral-bluish-600`,price:{currency:`CNY`,input:13,cacheHit:2.6,output:54}},{key:`kimi-k2.6`,name:`Kimi K2.6`,provider:`月之暗面`,colorVar:`dsw-static-neutral-bluish-500`,price:{currency:`CNY`,input:6.5,cacheHit:1.1,output:27}},{key:`kimi-k3`,name:`Kimi K3`,provider:`月之暗面`,colorVar:`dsw-static-neutral-bluish-500`,price:{currency:`CNY`,input:20,cacheHit:2,output:100}},{key:`mimo-v2.5`,name:`MiMo V2.5`,provider:`小米`,colorVar:`dsw-static-green-400`,price:{currency:`CNY`,input:1,cacheHit:.02,output:2}},{key:`mimo-v2.5-pro`,name:`MiMo V2.5 Pro`,provider:`小米`,colorVar:`dsw-static-green-400`,price:{currency:`CNY`,input:3,cacheHit:.025,output:6}},{key:`minimax`,name:`MiniMax-M3`,provider:`MiniMax`,colorVar:`dsw-static-amber-500`,price:{currency:`CNY`,input:2.1,cacheHit:.42,output:8.4}},{key:`minimax-m2.7`,name:`MiniMax-M2.7`,provider:`MiniMax`,colorVar:`dsw-static-amber-400`,price:{currency:`CNY`,input:2.1,cacheHit:.42,output:8.4}},{key:`minimax-m2.7-highspeed`,name:`MiniMax-M2.7-highspeed`,provider:`MiniMax`,colorVar:`dsw-static-amber-500`,price:{currency:`CNY`,input:4.2,cacheHit:.42,output:16.8}},{key:`ernie`,name:`ERNIE-5.1`,provider:`百度文心`,colorVar:`dsw-static-blue-300`,price:{currency:`CNY`,input:4,cacheHit:.4,output:18}},{key:`hunyuan`,name:`混元 Hy3`,provider:`腾讯混元`,colorVar:`dsw-static-amber-400`,price:{currency:`CNY`,input:1,cacheHit:.25,output:4}},{key:`hunyuan-t1`,name:`混元 T1`,provider:`腾讯混元`,colorVar:`dsw-static-amber-300`,price:{currency:`CNY`,input:1,cacheHit:.1,output:4}},{key:`yi`,name:`Yi-Lightning`,provider:`零一万物`,colorVar:`dsw-static-green-500`,price:{currency:`CNY`,input:.99,cacheHit:.1,output:.99}},{key:`step`,name:`Step 3.7 Flash`,provider:`阶跃星辰`,colorVar:`dsw-static-neutral-bluish-400`,price:{currency:`CNY`,input:1.35,cacheHit:.27,output:8.1}},{key:`spark`,name:`Spark 4.0 Ultra`,provider:`科大讯飞`,colorVar:`dsw-static-green-400`,price:{currency:`CNY`,input:5,cacheHit:.5,output:10},estimated:!0},{key:`sensenova`,name:`SenseNova 6.5`,provider:`商汤`,colorVar:`dsw-static-red-400`,price:{currency:`CNY`,input:4.5,cacheHit:.45,output:9},estimated:!0},{key:`baichuan`,name:`Baichuan M3-Plus`,provider:`百川智能`,colorVar:`dsw-static-neutral-bluish-500`,price:{currency:`CNY`,input:5,cacheHit:.5,output:9}},{key:`gpt-5.6-sol`,name:`GPT-5.6 Sol`,provider:`OpenAI`,colorVar:`dsw-static-green-500`,price:{currency:`USD`,input:5,cacheHit:.5,output:30}},{key:`gpt-5.6-terra`,name:`GPT-5.6 Terra`,provider:`OpenAI`,colorVar:`dsw-static-green-400`,price:{currency:`USD`,input:2,cacheHit:.2,output:12}},{key:`gpt-5.6-luna`,name:`GPT-5.6 Luna`,provider:`OpenAI`,colorVar:`dsw-static-green-500`,price:{currency:`USD`,input:.2,cacheHit:.02,output:1.2}},{key:`gemini-pro`,name:`Gemini 3.1 Pro`,provider:`Google`,colorVar:`dsw-static-blue-600`,price:{currency:`USD`,input:2,cacheHit:.2,output:12,offPeak:{input:1,cacheHit:.1,output:6}},peakHours:je,tierSemantics:`latency`},{key:`gemini-flash`,name:`Gemini 3.6 Flash`,provider:`Google`,colorVar:`dsw-static-blue-400`,price:{currency:`USD`,input:1.5,cacheHit:.15,output:7.5,offPeak:{input:.75,cacheHit:.075,output:3.75}},peakHours:je,tierSemantics:`latency`},{key:`grok`,name:`Grok 4.6`,provider:`xAI`,colorVar:`dsw-static-neutral-bluish-700`,price:{currency:`USD`,input:2,cacheHit:.5,output:6}},{key:`grok-4.3`,name:`Grok 4.3`,provider:`xAI`,colorVar:`dsw-static-neutral-bluish-500`,price:{currency:`USD`,input:1.25,cacheHit:.2,output:2.5}},{key:`llama`,name:`Llama 4 Maverick`,provider:`Meta`,colorVar:`dsw-static-red-500`,price:{currency:`USD`,input:.2,cacheHit:.05,output:.6}},{key:`llama-scout`,name:`Llama 4 Scout`,provider:`Meta`,colorVar:`dsw-static-red-400`,price:{currency:`USD`,input:.1,cacheHit:.025,output:.3}},{key:`claude-opus-4-6`,name:`Claude Opus 4.6`,provider:`Anthropic`,colorVar:`dsw-static-red-500`,price:{currency:`USD`,input:5,cacheHit:.5,output:25}},{key:`claude-sonnet-4-6`,name:`Claude Sonnet 4.6`,provider:`Anthropic`,colorVar:`dsw-static-red-400`,price:{currency:`USD`,input:3,cacheHit:.3,output:15}},{key:`claude-haiku-4-5`,name:`Claude Haiku 4.5`,provider:`Anthropic`,colorVar:`dsw-static-red-300`,price:{currency:`USD`,input:1,cacheHit:.1,output:5}},{key:`claude-opus-5`,name:`Claude Opus 5`,provider:`Anthropic`,colorVar:`dsw-static-red-500`,price:{currency:`USD`,input:5,cacheHit:.5,output:25}},{key:`claude-sonnet-5`,name:`Claude Sonnet 5`,provider:`Anthropic`,colorVar:`dsw-static-red-400`,price:{currency:`USD`,input:2,cacheHit:.2,output:10}},{key:`mistral-large-2512`,name:`Mistral Large 3`,provider:`Mistral AI`,colorVar:`dsw-static-violet-500`,price:{currency:`USD`,input:.5,cacheHit:.05,output:1.5}},{key:`mistral-small-2603`,name:`Mistral Small 4`,provider:`Mistral AI`,colorVar:`dsw-static-violet-400`,price:{currency:`USD`,input:.15,cacheHit:.015,output:.6}},{key:`ministral-8b-latest`,name:`Ministral 8B`,provider:`Mistral AI`,colorVar:`dsw-static-violet-300`,price:{currency:`USD`,input:.1,cacheHit:.01,output:.1}},{key:`command-a-03-2025`,name:`Command A`,provider:`Cohere`,colorVar:`dsw-static-cyan-500`,price:{currency:`USD`,input:2.5,cacheHit:.25,output:10}},{key:`command-r-08-2024`,name:`Command R`,provider:`Cohere`,colorVar:`dsw-static-cyan-400`,price:{currency:`USD`,input:.15,cacheHit:.015,output:.6}},{key:`longcat-2.0`,name:`LongCat 2.0`,provider:`美团`,colorVar:`dsw-static-amber-500`,price:{currency:`CNY`,input:4,cacheHit:.8,output:16},estimated:!0},{key:`minicpm-v-4.5`,name:`MiniCPM-V 4.5`,provider:`面壁智能`,colorVar:`dsw-static-green-500`,price:{currency:`CNY`,input:1,cacheHit:.2,output:4},estimated:!0},{key:`ernie-4.5`,name:`ERNIE-4.5 300B`,provider:`百度文心`,colorVar:`dsw-static-blue-300`,price:{currency:`CNY`,input:2,cacheHit:.4,output:8},estimated:!0},{key:`dots-3-note-preview`,name:`Dots3-Note Preview`,provider:`小红书`,colorVar:`dsw-static-red-500`,price:{currency:`CNY`,input:2,cacheHit:.4,output:8},estimated:!0},{key:`qwen3.6-max`,name:`Qwen3.6 Max`,provider:`阿里通义`,colorVar:`dsw-static-orange-500`,price:{currency:`CNY`,input:9,cacheHit:.9,output:54},extraRows:[{label:`显式缓存创建`,input:11.25},{label:`显式缓存命中`,input:.9}]},{key:`qwen3-coder-plus`,name:`Qwen3-Coder Plus`,provider:`阿里通义`,colorVar:`dsw-static-orange-400`,price:{currency:`CNY`,input:4,cacheHit:.8,output:16},extraRows:[{label:`显式缓存创建`,input:5},{label:`显式缓存命中`,input:.4}]},{key:`qwen3-coder`,name:`Qwen3-Coder 480B`,provider:`阿里通义`,colorVar:`dsw-static-orange-300`,price:{currency:`CNY`,input:4,cacheHit:.8,output:16},estimated:!0},{key:`glm-4.5-x`,name:`GLM-4.5-X`,provider:`智谱 AI`,colorVar:`dsw-static-blue-400`,price:{currency:`CNY`,input:4,cacheHit:1,output:16},estimated:!0},{key:`glm-5.2-fast`,name:`GLM-5.2 Fast`,provider:`智谱 AI`,colorVar:`dsw-static-blue-300`,price:{currency:`CNY`,input:6,cacheHit:1.2,output:24},estimated:!0},{key:`kimi-k3-fast`,name:`Kimi K3 Fast`,provider:`月之暗面`,colorVar:`dsw-static-cyan-400`,price:{currency:`CNY`,input:20,cacheHit:2,output:100},estimated:!0},{key:`kimi-k2.7-code-fast`,name:`Kimi K2.7 Code Fast`,provider:`月之暗面`,colorVar:`dsw-static-cyan-400`,price:{currency:`CNY`,input:6.5,cacheHit:1.3,output:27},estimated:!0},{key:`kimi-k2.6-fast`,name:`Kimi K2.6 Fast`,provider:`月之暗面`,colorVar:`dsw-static-cyan-300`,price:{currency:`CNY`,input:6.5,cacheHit:1.1,output:27},estimated:!0},{key:`kimi-k2.6-turbo`,name:`Kimi K2.6 Turbo`,provider:`月之暗面`,colorVar:`dsw-static-cyan-300`,price:{currency:`CNY`,input:6.5,cacheHit:1.1,output:27},estimated:!0},{key:`kimi-k2-thinking-turbo`,name:`Kimi K2 Thinking Turbo`,provider:`月之暗面`,colorVar:`dsw-static-cyan-300`,price:{currency:`CNY`,input:8,cacheHit:1,output:58}},{key:`doubao-seed-2.0-code`,name:`Doubao Seed-2.0 Code`,provider:`字节豆包`,colorVar:`dsw-static-red-500`,price:{currency:`CNY`,input:3.2,cacheHit:.64,output:16}},{key:`doubao-seed-2.0-lite`,name:`Doubao Seed-2.0 Lite`,provider:`字节豆包`,colorVar:`dsw-static-red-300`,price:{currency:`CNY`,input:.6,cacheHit:.12,output:3.6}},{key:`other`,name:`其他模型`,provider:`Custom`,colorVar:`dsw-static-neutral-bluish-500`,price:{currency:`CNY`,input:0,cacheHit:0,cacheMiss:0,output:0}}],H={"deepseek-v4-flash":`flash`,"deepseek-v4-flash-vision-exp":`flash-vision-exp`,"deepseek-v4.1-flash":`flash`,"deepseek-v4.1-flash-expires-on-0910":`flash`,"deepseek-flash":`flash`,"deepseek-v4-pro":`pro`,"glm-5.2":`glm`,"glm-4.5-air":`glm-4.5-air`,"glm-4.5air":`glm-4.5-air`,"glm-4.7":`glm-4.7`,"glm-5-turbo":`glm-5-turbo`,"glm-5.1":`glm-5.1`,"glm-5.3-flash":`glm-5.3-flash`,"glm-5v-turbo":`glm-5v-turbo`,"glm-5v.1":`glm-5v-turbo`,"claude-opus-4-6":`claude-opus-4-6`,"claude-opus-4.6":`claude-opus-4-6`,"claude-sonnet-4-6":`claude-sonnet-4-6`,"claude-sonnet-4.6":`claude-sonnet-4-6`,"claude-haiku-4-5":`claude-haiku-4-5`,"claude-haiku-4.5":`claude-haiku-4-5`,"claude-opus-5":`claude-opus-5`,"claude-sonnet-5":`claude-sonnet-5`,"mistral-large-2512":`mistral-large-2512`,"mistral-large-3":`mistral-large-2512`,"mistral-small-2603":`mistral-small-2603`,"mistral-small-4":`mistral-small-2603`,"ministral-8b-latest":`ministral-8b-latest`,"ministral-8b":`ministral-8b-latest`,"command-a-03-2025":`command-a-03-2025`,"command-a":`command-a-03-2025`,"command-r-08-2024":`command-r-08-2024`,"command-r":`command-r-08-2024`,hy3:`hunyuan`,"longcat-2.0":`longcat-2.0`,"longcat-2":`longcat-2.0`,"minicpm-v-4.5":`minicpm-v-4.5`,"minicpm-v-4.5-thinking":`minicpm-v-4.5`,"ernie-4.5":`ernie-4.5`,"ernie-4.5-300b":`ernie-4.5`,"dots-3-note-preview":`dots-3-note-preview`,"dots-3-note":`dots-3-note-preview`,"dots3-note-preview":`dots-3-note-preview`,"rednote-dots3":`dots-3-note-preview`,"doubao-seed-evolving":`doubao-seed-evolving`,"doubao-seed-evolve":`doubao-seed-evolving`,"doubao-seed-2.1-pro":`doubao-seed-2.1-pro`,"doubao-seed-2.1-pro-290000":`doubao-seed-2.1-pro`,"doubao-seed-2.1-turbo":`doubao-seed-2.1-turbo`,"doubao-seed-2-1-turbo":`doubao-seed-2.1-turbo`,"qwen3.8-max":`qwen-3.8-max`,"qwen3.8-flash":`qwen-3.8-flash`,"qwen3.7-max":`qwen-max`,"qwen3.6-max":`qwen3.6-max`,"qwen3.6-max-preview":`qwen3.6-max`,"qwen3-coder-plus":`qwen3-coder-plus`,"qwen3-coder":`qwen3-coder`,"qwen3-coder-480b":`qwen3-coder`,"glm-4.5-x":`glm-4.5-x`,"glm-4.5x":`glm-4.5-x`,"glm-5.2-fast":`glm-5.2-fast`,"glm-5.2f":`glm-5.2-fast`,"kimi-k3-fast":`kimi-k3-fast`,"kimi-k3f":`kimi-k3-fast`,"kimi-k2.7-code-fast":`kimi-k2.7-code-fast`,"kimi-k2.7-code-f":`kimi-k2.7-code-fast`,"kimi-k2.6-fast":`kimi-k2.6-fast`,"kimi-k2.6-turbo":`kimi-k2.6-turbo`,"kimi-k2-thinking-turbo":`kimi-k2-thinking-turbo`,"doubao-seed-2.0-code":`doubao-seed-2.0-code`,"doubao-seed-2-0-code":`doubao-seed-2.0-code`,"doubao-seed-2.0-lite":`doubao-seed-2.0-lite`,"doubao-seed-2-0-lite":`doubao-seed-2.0-lite`,"qwen-max":`qwen-max`,"hunyuan-t1":`hunyuan-t1`,"step-3.7-flash":`step`,"seed-2.0-mini":`doubao-mini`,k3:`kimi-k3`,"kimi-k3":`kimi-k3`,"minimax-m1":`minimax`,"minimax-m2":`minimax`,"minimax-m3":`minimax`,"minimax-m2.7":`minimax-m2.7`,"minimax-m2.7-highspeed":`minimax-m2.7-highspeed`,"minimax-m2.7-high-speed":`minimax-m2.7-highspeed`,"minimax-m2-7":`minimax-m2.7`,"minimax-m2-7-highspeed":`minimax-m2.7-highspeed`,"minimax-m2-7-high-speed":`minimax-m2.7-highspeed`};function U(e){return String(e).toLowerCase().replace(/\([^)]*\)/g,``).replace(/[^a-z0-9]+/g,``)}let Ne=(()=>{let e=new Map,t=(t,n)=>{let r=U(t);r!==``&&!e.has(r)&&e.set(r,n)};for(let e of Me)t(e.key,e.key);for(let[e,n]of Object.entries(H))t(e,n);for(let e of oe)t(e.key,e.key);return e})();function Pe(e){let t=[],n=e=>{e!==``&&!t.includes(e)&&t.push(e)},r=e=>{let t=e;for(;;){let e=t.replace(/[-_]\d{3,}$/u,``);if(e===t||e===``)return;t=e,n(t)}},i=e.lastIndexOf(`/`);if(i>0&&i<e.length-1){let t=e.slice(i+1);n(t),r(t)}return r(e),t}function W(e){let t=H[e];if(t!==void 0)return t;let n=U(e);if(n===``)return;let r=Ne.get(n);return r===void 0?(le??[]).find(e=>U(e.key)===n)?.key:r}function G(e){let t=H[e]??e;if(t===e){let t=U(e);if(t!==``){let e=Ne.get(t);if(e!==void 0)return e;let n=(le??[]).find(e=>U(e.key)===t);if(n!==void 0)return n.key}for(let t of Pe(e)){let e=W(t);if(e!==void 0)return e}}return t}function Fe(e){let t=G(e),n=ce?.[t];if(n!==void 0)return n;let r=oe.find(e=>e.key.toLowerCase()===t.toLowerCase());if(r!==void 0)return{input:r.input,cacheHit:r.cacheHit,output:r.output}}function Ie(e){let t=G(e),n=Me.find(e=>e.key===t),r=le?.find(e=>e.key===t),i=n??(r===void 0?(()=>{let e=Me.at(-1);if(e!==void 0)return e;throw Error(`MODEL_CATALOG must not be empty`)})():K(r)),a=_e(t);if(a!==void 0)return{...i,userPriced:!0,price:{currency:a.currency??`CNY`,input:a.input,cacheHit:a.cacheHit,output:a.output,...a.offPeak===void 0?{}:{offPeak:a.offPeak}}};let o=Fe(t);return o===void 0?i:{...i,price:{currency:`USD`,input:o.input,cacheHit:o.cacheHit,output:o.output}}}function K(e){return{key:e.key,name:e.name,provider:e.provider,colorVar:`dsw-static-neutral-400`,price:{currency:`USD`,input:e.price.input,cacheHit:e.price.cacheHit,output:e.price.output}}}function Le(e,t){let n=e.endsAtMs!==void 0&&t>=e.endsAtMs;return Number.isFinite(t)&&!n&&e.factor>0&&e.factor<1}function Re(e,t){let{promo:n}=e;if(n===void 0||!Le(n,t))return e;let r=e=>({input:e.input*n.factor,cacheHit:e.cacheHit*n.factor,...e.cacheMiss===void 0?{}:{cacheMiss:e.cacheMiss*n.factor},output:e.output*n.factor});return{...e,price:{...r(e.price),currency:e.price.currency,...e.price.offPeak===void 0?{}:{offPeak:r(e.price.offPeak)}}}}function ze(e,t){if(e.key!==`pro`||t>=L)return e;let n=z.pro;return n===void 0?e:{...e,price:{currency:`CNY`,input:n.input*2,cacheHit:n.cacheHit*2,output:n.output*2,offPeak:{...n}}}}function Be(e=Date.now()){let t=[...Me.filter(e=>e.retired!==!0).map(t=>ze(Re(t,e),e))],n=new Set(t.map(e=>e.key.toLowerCase())),r=new Set(t.map(e=>U(e.key)));for(let e of ue??[]){let i=e.id.toLowerCase();if((()=>{let t=G(e.id);return Me.find(e=>e.key===t)})()!==void 0)continue;let a=U(e.id);if(n.has(i)||a!==``&&r.has(a))continue;let o=(le??[]).find(e=>U(e.key)===a),s;if(o!==void 0)s=K(o),e.name!==void 0&&e.name!==``&&(s={...s,name:e.name});else{let t=Fe(i);s=t===void 0?{key:G(e.id),name:e.name??e.id,provider:e.provider,colorVar:`dsw-static-neutral-400`,price:{currency:`USD`,input:0,cacheHit:0,output:0},uncatalogued:!0}:{key:i,name:e.name??e.id,provider:e.provider,colorVar:`dsw-static-neutral-400`,price:{currency:`USD`,input:t.input,cacheHit:t.cacheHit,output:t.output}}}n.add(s.key.toLowerCase()),a!==``&&r.add(a),t.push(s)}return t.map(e=>{let t=_e(e.key);return t===void 0?e:{...e,userPriced:!0,price:{currency:t.currency??`CNY`,input:t.input,cacheHit:t.cacheHit,output:t.output}}})}function Ve(e){let t=getComputedStyle(document.documentElement).getPropertyValue(`--${e}`).trim();return t===``?`#8b95a3`:t}function He(e,t,n){let r=t.cacheMiss>0?t.cacheMiss:Math.max(0,t.input-t.cacheHit),i=Math.min(t.cacheHit,t.input),a=(r*(e.cacheMiss??e.input)+i*e.cacheHit+t.output*e.output)/1e6;return n===`USD`?a*xe():a}function Ue(e,t,n=Ce,r=Date.now()){let i=Re(e,r),a=He(i.price,t,i.price.currency),o=i.price.offPeak===void 0?a:He(i.price.offPeak,t,i.price.currency);return a*n+o*(1-n)}function q(e){let t=xe();return t>0?e/t:e}function J(e,t=`cny`){let n=Number(e);if(!Number.isFinite(n))return t===`cny`?`¥0`:`$0`;let r=t===`cny`?`¥`:`$`;return n<=0?`${r}0`:n>=1e3?`${r}${n.toFixed(0)}`:n>=10?`${r}${n.toFixed(1)}`:n>=.1?`${r}${n.toFixed(2)}`:`${r}${n.toFixed(3)}`}function We(e,t=`CNY`){return e===0?`免费`:t===`USD`?e>=10?`$${e.toFixed(1)}`:`$${e.toFixed(2)}`:e>=10?`¥${e.toFixed(1)}`:`¥${e.toFixed(2)}`}function Ge(e,t,n,r){return r<=0||!Number.isFinite(r)||t===(n===`usd`?`USD`:`CNY`)?e:n===`usd`?e/r:e*r}function Y(e){return e>=1e9?`${(e/1e9).toFixed(2)}B`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(0)}K`:String(e)}function Ke(e){let t=Number(e);return Number.isFinite(t)?`${t.toFixed(1)}%`:`0.0%`}let X={top:18,right:40,bottom:26,left:46};function qe(e){let[,t,n]=e.split(`-`);return`${Number(t)}/${Number(n)}`}function Je(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(Math.round(e))}function Ye(e,t){let n=[];for(let r=0;r<e;r+=t)n.push(r);return e>0&&n[n.length-1]!==e-1&&n.push(e-1),n}let Xe={key:`__total__`,name:`总计`,color:``};function Ze({data:e,models:t=[],currency:n=`cny`,metric:i=`cost`}){let[a,s]=(0,r.useState)(null),c=e=>J(n===`usd`?q(e):e,n),l=e=>i===`tokens`?Je(e):c(e),u=e=>i===`tokens`?e.tokens??0:e.cost,d=(0,r.useMemo)(()=>{let n=e.length;if(n===0)return null;let r=680-X.left-X.right,a=220-X.top-X.bottom,o=e=>n===1?X.left+r/2:X.left+r*e/(n-1),s=Math.max(...i===`tokens`?e.map(e=>e.tokens??0):e.map(e=>Math.max(e.cost,Object.values(e.byModel??{}).reduce((e,t)=>e+t,0))),1e-4),c=e=>X.top+a-e/s*a,l=Math.max(...e.map(e=>e.calls),1),d=e=>X.top+a-e/l*a,f=r/n,p=Math.min(18,f*.6);return{n,plotW:r,plotH:a,inner:o,yCost:c,yCalls:d,barW:p,bars:e.flatMap((e,n)=>{let r=o(n)-p/2;if(t.length===0||i===`tokens`)return[{date:e.date,model:Xe,x:r,base:0,value:u(e),topRounded:!0}];let a=null;for(let n of t)(e.byModel?.[n.key]??0)>0&&(a=n.key);let s=0;return t.map(t=>{let n=e.byModel?.[t.key]??0,i={date:e.date,model:t,x:r,base:s,value:n,topRounded:t.key===a};return s+=n,i})}),costTicks:[0,.25,.5,.75,1].map(e=>s*e).reverse(),callsTicks:[0,.25,.5,.75,1].map(e=>l*e).reverse(),linePath:e.map((e,t)=>{let n=d(e.calls);return`${t===0?`M`:`L`}${o(t)} ${n}`}).join(` `)}},[e,t,i]);if(d===null)return(0,o.jsx)(`div`,{className:P.chartEmpty,children:`暂无趋势数据`});let{n:f,plotW:p,plotH:m,inner:h,yCost:g,yCalls:_,barW:v,bars:y,costTicks:b,callsTicks:ee,linePath:x}=d,S=a===null?void 0:e[a],C=Ye(f,Math.max(1,Math.ceil(f/8)));return(0,o.jsxs)(`div`,{className:P.chartWrap,children:[(0,o.jsxs)(`svg`,{viewBox:`0 0 680 220`,className:P.chartSvg,role:`img`,"aria-label":`Daily cost by model and total calls`,onMouseLeave:()=>{s(null)},onMouseMove:e=>{let t=e.currentTarget.getBoundingClientRect(),n=((e.clientX-t.left)/t.width*680-X.left)/p,r=Math.round(n*(f-1));s(Math.min(Math.max(r,0),f-1))},children:[b.map((e,t)=>{let n=g(e);return(0,o.jsxs)(`g`,{children:[(0,o.jsx)(`line`,{x1:X.left,x2:680-X.right,y1:n,y2:n,className:P.chartGrid}),(0,o.jsx)(`text`,{x:X.left-8,y:n+3,textAnchor:`end`,className:P.chartAxisLabel,children:l(e)})]},`cost-${t}`)}),y.map(t=>{if(t.value>0)return(0,o.jsx)(`rect`,{x:t.x,y:g(t.base+t.value),width:v,height:g(t.base)-g(t.base+t.value),rx:t.topRounded?2:0,className:t.model.color===``?P.chartBar:P.chartStack,style:t.model.color===``?void 0:{fill:t.model.color}},`${t.date}-${t.model.key}`);let n=e.find(e=>e.date===t.date);return n!==void 0&&n.calls>0&&t.base===0?(0,o.jsx)(`rect`,{x:t.x,y:g(0)-1,width:v,height:1,rx:0,className:P.chartBarPlaceholder},`${t.date}-${t.model.key}-placeholder`):null}),(0,o.jsx)(`path`,{d:x,fill:`none`,className:P.chartLine}),ee.map((e,t)=>{let n=_(e);return(0,o.jsx)(`text`,{x:680-X.right+8,y:n+3,textAnchor:`start`,className:P.chartAxisLabel,children:Je(e)},`calls-${t}`)}),C.map(t=>{let n=e[t];return n===void 0?null:(0,o.jsx)(`text`,{x:h(t),y:214,textAnchor:`middle`,className:P.chartAxisLabel,children:qe(n.date)},n.date)}),a!==null&&(0,o.jsx)(`line`,{x1:h(a),x2:h(a),y1:X.top,y2:X.top+m,className:P.chartCrosshair})]}),S!==void 0&&a!==null&&(0,o.jsxs)(`div`,{className:P.chartTooltip,style:{left:`${h(a)/680*100}%`,top:`${g(S.cost)/220*100}%`},children:[(0,o.jsx)(`div`,{className:P.chartTooltipDate,children:S.date}),i!==`tokens`&&t.filter(e=>(S.byModel?.[e.key]??0)>0).map(e=>(0,o.jsxs)(`div`,{className:P.chartTooltipRow,children:[(0,o.jsx)(`span`,{className:P.chartTooltipSwatch,style:{background:e.color}}),e.name,` `,(0,o.jsx)(`strong`,{children:c(S.byModel?.[e.key]??0)})]},e.key)),(0,o.jsxs)(`div`,{className:P.chartTooltipRow,children:[(0,o.jsx)(`span`,{className:P.chartLegendBar}),`总计 `,(0,o.jsx)(`strong`,{children:i===`tokens`?Je(S.tokens??0):c(S.cost)})]}),(0,o.jsxs)(`div`,{className:P.chartTooltipRow,children:[(0,o.jsx)(`span`,{className:P.chartLegendLine}),`调用 `,(0,o.jsx)(`strong`,{children:S.calls.toLocaleString()})]})]}),t.length>0&&i!==`tokens`&&(0,o.jsxs)(`div`,{className:P.chartLegend,children:[t.map(e=>(0,o.jsxs)(`span`,{children:[(0,o.jsx)(`span`,{className:P.chartTooltipSwatch,style:{background:e.color}}),e.name]},e.key)),(0,o.jsxs)(`span`,{children:[(0,o.jsx)(`span`,{className:P.chartLegendLine}),`调用`]})]})]})}let Z={top:14,right:42,bottom:22,left:46};function Qe(e){return e.slice(5,13).replace(`T`,` `)}function $e(e){return String(e>=100?Math.round(e):Number(e.toFixed(1)))}function et(e){return e<1e4?`${Math.round(e)} ms`:e<6e4?`${(e/1e3).toFixed(1)} s`:`${(e/6e4).toFixed(1)} min`}function tt(e){return e>=1e3?`${(e/1e3).toFixed(1)}k`:e.toFixed(1)}function nt(e,t,n){return t===`ttft`?`${Math.round(e)} ms`:`${e.toFixed(1)} ${n(`perfTpsUnit`)}`}function rt({perf:e,models:t,t:n}){let[i,a]=(0,r.useState)(()=>M()),[s,c]=(0,r.useState)(null),l=e=>{a(e),ne(e)},u=e=>t.find(t=>t.key===e)?.color??`#8b95a3`,f=(0,r.useMemo)(()=>e===void 0?[]:Object.entries(e.byModel).map(([e,n])=>({key:e,name:t.find(t=>t.key===e)?.name??e,color:u(e),samples:n.samples,ttftAvg:n.ttftAvg,ttftP50:n.ttftP50,ttftP90:n.ttftP90,...n.ttftMax===void 0?{}:{ttftMax:n.ttftMax},...n.ttftSpikes===void 0?{}:{ttftSpikes:n.ttftSpikes},...n.tpsAvg===void 0?{}:{tpsAvg:n.tpsAvg},latencyAvg:n.latencyAvg,estimatedSamples:n.estimatedSamples})).sort((e,t)=>t.samples-e.samples||t.ttftP90-e.ttftP90),[e,t]),p=(0,r.useMemo)(()=>{if(e===void 0)return[];if(i.models!==void 0){let t=new Set(Object.keys(e.byModel));return i.models.filter(e=>t.has(e))}return f.slice(0,5).map(e=>e.key)},[e,f,i.models]),m=(0,r.useMemo)(()=>{if(e===void 0)return null;let t=Object.keys(e.byHourModel).sort().slice(-48);if(t.length===0)return null;let n=t.length,r=680-Z.left-Z.right,a=180-Z.top-Z.bottom,o=e=>n===1?Z.left+r/2:Z.left+r*e/(n-1),s=new Set(p),c=e=>i.metric===`ttft`?e?.ttftAvg:e?.tpsAvg,l=[],u=0;for(let r of f){if(!s.has(r.key))continue;let i=[];for(let a=0;a<n;a++){let n=t[a];if(n===void 0)continue;let s=c(e.byHourModel[n]?.[r.key]);s===void 0||!Number.isFinite(s)||(i.push({i:a,x:o(a),y:0,v:s}),s>u&&(u=s))}l.push({key:r.key,name:r.name,color:r.color,segments:[],points:i})}let d=l.reduce((e,t)=>e+t.points.length,0);u=Math.max(u,1);let m=e=>Z.top+a-e/u*a;for(let e of l){let t=``,n=-2;for(let r of e.points)r.y=m(r.v),t!==``&&r.i!==n+1&&(e.segments.push(t),t=``),t+=`${t===``?`M`:`L`}${r.x} ${r.y} `,n=r.i;t!==``&&e.segments.push(t)}let h=Math.max(1,Math.ceil(n/8)),g=[];for(let e=0;e<n;e+=h)g.push(e);return g[g.length-1]!==n-1&&g.push(n-1),{hourKeys:t,n,plotW:r,plotH:a,inner:o,yOf:m,series:l,ticks:[0,.5,1].map(e=>u*e).reverse(),xTicks:g,totalPoints:d}},[e,f,p,i.metric]);if(e===void 0||f.length===0)return(0,o.jsx)(`div`,{className:P.chartEmpty,"data-testid":`billing-perf-empty`,children:n(`perfEmpty`)});let h=e=>{let t=p.includes(e)?p.filter(t=>t!==e):[...p,e];l({metric:i.metric,models:t})},g=e=>{l({metric:e,...i.models===void 0?{}:{models:i.models}})},_=s===null||m===null?[]:m.series.flatMap(e=>{let t=e.points.find(e=>e.i===s);return t===void 0?[]:[{key:e.key,name:e.name,color:e.color,v:t.v}]});return(0,o.jsxs)(`div`,{"data-testid":`billing-perf-panel`,children:[(0,o.jsx)(`div`,{className:P.tableScroll,"data-testid":`billing-perf-table`,children:(0,o.jsxs)(`table`,{className:P.modelTable,children:[(0,o.jsx)(`thead`,{children:(0,o.jsxs)(`tr`,{children:[(0,o.jsx)(`th`,{children:n(`model`)}),(0,o.jsx)(`th`,{className:P.numCol,children:n(`perfSamples`)}),(0,o.jsx)(`th`,{className:P.numCol,children:n(`perfTtft`)}),(0,o.jsx)(`th`,{className:P.numCol,children:n(`perfP50`)}),(0,o.jsx)(`th`,{className:P.numCol,children:n(`perfP90`)}),(0,o.jsx)(`th`,{className:P.numCol,children:n(`perfMax`)}),(0,o.jsx)(`th`,{className:P.numCol,children:n(`perfTps`)}),(0,o.jsx)(`th`,{className:P.numCol,children:n(`perfLatency`)}),(0,o.jsx)(`th`,{className:P.numCol,children:n(`perfEstimated`)})]})}),(0,o.jsx)(`tbody`,{children:f.map(e=>(0,o.jsxs)(`tr`,{children:[(0,o.jsx)(`td`,{children:(0,o.jsxs)(`span`,{className:P.modelCell,children:[(0,o.jsx)(`span`,{className:P.modelDot,style:{background:e.color}}),(0,o.jsx)(`span`,{className:P.modelName,children:e.name})]})}),(0,o.jsx)(`td`,{className:P.numCol,children:e.samples.toLocaleString()}),(0,o.jsx)(`td`,{className:P.numCol,children:et(e.ttftAvg)}),(0,o.jsx)(`td`,{className:P.numCol,children:et(e.ttftP50)}),(0,o.jsx)(`td`,{className:P.numCol,children:et(e.ttftP90)}),(0,o.jsx)(`td`,{className:P.numCol,children:e.ttftMax===void 0?(0,o.jsx)(`span`,{className:P.na,children:`—`}):(0,o.jsxs)(`span`,{children:[et(e.ttftMax),e.ttftSpikes!==void 0&&e.ttftSpikes>0?` (${e.ttftSpikes}↑)`:``]})}),(0,o.jsx)(`td`,{className:P.numCol,children:e.tpsAvg===void 0?(0,o.jsx)(`span`,{className:P.na,children:`—`}):tt(e.tpsAvg)}),(0,o.jsx)(`td`,{className:P.numCol,children:et(e.latencyAvg)}),(0,o.jsx)(`td`,{className:P.numCol,children:e.estimatedSamples>0?e.estimatedSamples:(0,o.jsx)(`span`,{className:P.na,children:`—`})})]},e.key))})]})}),m!==null&&(0,o.jsxs)(`div`,{"data-testid":`billing-perf-hour`,children:[(0,o.jsx)(`div`,{className:P.perfBar,children:(0,o.jsx)(`span`,{className:P.rangeToggle,role:`group`,"aria-label":n(`perfTitle`),children:[`ttft`,`tps`].map(e=>(0,o.jsx)(`button`,{type:`button`,className:d(P.rangeButton,i.metric===e&&P.rangeButtonActive),"aria-pressed":i.metric===e,"data-testid":`billing-perf-tab-${e}`,onClick:()=>{g(e)},children:e===`ttft`?`${n(`perfTtft`)} (ms)`:`${n(`perfTps`)} (${n(`perfTpsUnit`)})`},e))})}),(0,o.jsxs)(`div`,{className:P.perfChips,role:`group`,"aria-label":n(`model`),children:[(0,o.jsx)(`button`,{type:`button`,className:P.perfChip,"data-testid":`billing-perf-chip-all`,onClick:()=>{l({metric:i.metric,models:f.map(e=>e.key)})},children:n(`perfAll`)}),f.map(e=>{let t=p.includes(e.key);return(0,o.jsxs)(`button`,{type:`button`,className:d(P.perfChip,!t&&P.perfChipOff),style:t?{color:e.color,borderColor:`color-mix(in srgb, ${e.color} 45%, transparent)`}:void 0,"aria-pressed":t,"data-testid":`billing-perf-chip-${e.key}`,onClick:()=>{h(e.key)},children:[(0,o.jsx)(`span`,{className:P.perfChipDot,style:{background:t?e.color:`var(--dsw-alias-label-dimmed)`}}),e.name]},e.key)})]}),m.totalPoints>0?(0,o.jsxs)(`div`,{className:P.chartWrap,children:[(0,o.jsxs)(`svg`,{viewBox:`0 0 680 180`,className:P.chartSvg,role:`img`,"aria-label":`Hourly perf comparison by model`,onMouseLeave:()=>{c(null)},onMouseMove:e=>{let t=e.currentTarget.getBoundingClientRect(),n=((e.clientX-t.left)/t.width*680-Z.left)/m.plotW,r=Math.round(n*(m.n-1));c(Math.min(Math.max(r,0),m.n-1))},children:[m.ticks.map((e,t)=>{let n=m.yOf(e);return(0,o.jsxs)(`g`,{children:[(0,o.jsx)(`line`,{x1:Z.left,x2:680-Z.right,y1:n,y2:n,className:P.chartGrid}),(0,o.jsx)(`text`,{x:Z.left-8,y:n+3,textAnchor:`end`,className:P.chartAxisLabel,children:$e(e)})]},`tick-${t}`)}),m.series.map(e=>e.segments.map((t,n)=>(0,o.jsx)(`path`,{d:t,fill:`none`,className:P.chartLine,style:{stroke:e.color}},`${e.key}-${n}`))),m.xTicks.map(e=>{let t=m.hourKeys[e];return t===void 0?null:(0,o.jsx)(`text`,{x:m.inner(e),y:174,textAnchor:`middle`,className:P.chartAxisLabel,children:Qe(t)},t)}),s!==null&&(0,o.jsx)(`line`,{x1:m.inner(s),x2:m.inner(s),y1:Z.top,y2:Z.top+m.plotH,className:P.chartCrosshair}),s!==null&&m.series.map(e=>{let t=e.points.find(e=>e.i===s);return t===void 0?null:(0,o.jsx)(`circle`,{cx:t.x,cy:t.y,r:3.5,fill:e.color,className:P.chartHoverDot},`${e.key}-dot`)})]}),s!==null&&_.length>0&&(0,o.jsxs)(`div`,{className:P.chartTooltip,"data-testid":`billing-perf-tooltip`,style:{left:`${m.inner(s)/680*100}%`,top:`${(Z.top+m.plotH/2)/180*100}%`},children:[(0,o.jsx)(`div`,{className:P.chartTooltipDate,children:Qe(m.hourKeys[s]??``)}),_.map(e=>(0,o.jsxs)(`div`,{className:P.chartTooltipRow,children:[(0,o.jsx)(`span`,{className:P.chartTooltipSwatch,style:{background:e.color}}),e.name,` `,(0,o.jsx)(`strong`,{children:nt(e.v,i.metric,n)})]},e.key))]})]}):(0,o.jsx)(`div`,{className:P.chartEmpty,"data-testid":`billing-perf-chart-empty`,children:n(`perfChartEmpty`)})]}),m===null&&(0,o.jsx)(`div`,{className:P.chartEmpty,"data-testid":`billing-perf-chart-empty`,children:n(`perfChartEmpty`)})]})}let it=`@kenz1117/dsh-ui-usage-billing`,at=`kenz1117`;function ot({t:e,version:t}){return(0,o.jsxs)(`section`,{className:P.setCard,"data-testid":`billing-plugin-info`,children:[(0,o.jsxs)(`div`,{className:P.plgHead,children:[(0,o.jsx)(`span`,{className:P.plgIcon,"aria-hidden":`true`,children:(0,o.jsx)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,o.jsx)(`path`,{d:`M10 3a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a2 2 0 0 0 4 0V4a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v1a2 2 0 0 0 4 0 1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-1a2 2 0 0 0 0 4h1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-1a2 2 0 0 0-4 0v1a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2a2 2 0 0 0-4 0v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a2 2 0 0 0-4 0 1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1a2 2 0 0 0 0-4H3a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1a2 2 0 0 0 4 0z`})})}),(0,o.jsxs)(`div`,{className:P.plgTitle,children:[(0,o.jsxs)(`div`,{className:P.plgNameRow,children:[(0,o.jsx)(`h3`,{className:P.plgName,children:it}),(0,o.jsx)(`span`,{className:P.plgTag,children:t===void 0?`—`:`v${t}`})]}),(0,o.jsx)(`p`,{className:P.plgDesc,children:`Usage billing dashboard for DeepSeek Harness`})]})]}),(0,o.jsxs)(`div`,{className:P.plgGrid,children:[(0,o.jsxs)(`div`,{className:P.plgItem,children:[(0,o.jsx)(`span`,{className:P.plgLabel,children:e(`pluginAuthor`)}),(0,o.jsxs)(`a`,{className:P.plgLink,href:`https://github.com/${at}`,target:`_blank`,rel:`noreferrer`,children:[`KenZ`,` (`,at,`)`]})]}),(0,o.jsxs)(`div`,{className:P.plgItem,children:[(0,o.jsx)(`span`,{className:P.plgLabel,children:e(`pluginRepository`)}),(0,o.jsx)(`a`,{className:P.plgLink,href:`https://github.com/kenz1117/dsh-ui-usage-billing`,target:`_blank`,rel:`noreferrer`,children:`GitHub`})]}),(0,o.jsxs)(`div`,{className:P.plgItem,children:[(0,o.jsx)(`span`,{className:P.plgLabel,children:e(`pluginNpm`)}),(0,o.jsx)(`a`,{className:P.plgLink,href:`https://www.npmjs.com/package/@kenz1117/dsh-ui-usage-billing`,target:`_blank`,rel:`noreferrer`,children:it})]}),(0,o.jsxs)(`div`,{className:P.plgItem,children:[(0,o.jsx)(`span`,{className:P.plgLabel,children:e(`pluginLicense`)}),(0,o.jsx)(`span`,{className:P.plgVal,children:`MIT`})]})]})]})}function st(e=Date.now()){let t=new Date(e),n=e=>String(e).padStart(2,`0`);return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())}`}function ct(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(Math.round(e))}let Q={top:14,right:18,bottom:22,left:46},lt=`var(--dsw-static-blue-500)`,ut=`#14b8a6`,dt=`var(--dsw-static-amber-500)`;function ft(e,t,n,r){return JSON.stringify({days:e,models:t,dayModels:n,total:r},null,2)}function pt(e){let{stats:t,trendDays:n,onTrendDays:i,t:a}=e,s=e.money,c=e.models??[],{byDay:l,byModel:u,total:f}=t,[p,m]=(0,r.useState)(null),[h,g]=(0,r.useState)(`structure`),[_,v]=(0,r.useState)(null),y=t.byDayModels!==void 0,b=e=>{g(e),v(null)},ee=(0,r.useMemo)(()=>{let e=t.byRole;if(e===void 0)return[];let n=e.user+e.assistant+e.tool;return n<=0?[]:[{label:a(`roleUser`),value:e.user,seg:P.shareSegUser},{label:a(`roleAssistant`),value:e.assistant,seg:P.shareSegAssistant},{label:a(`roleTool`),value:e.tool,seg:P.shareSegTool}].map(e=>({...e,pct:e.value/n*100}))},[t.byRole,a]),x=(0,r.useMemo)(()=>{let e=[];for(let t=n-1;t>=0;--t){let n=new Date;n.setDate(n.getDate()-t);let r=st(n.getTime()),i=l[r];e.push({date:r,miss:i?.cacheMiss??0,hit:i?.cacheHit??0,output:i?.output??0,reasoning:i?.reasoning??0})}return e},[l,n]),S=(0,r.useMemo)(()=>{let e=[];for(let r=n-1;r>=0;--r){let n=new Date;n.setDate(n.getDate()-r);let i=st(n.getTime()),a=t.byDayModels?.[i],o={},s=0;if(a!==void 0)for(let[e,t]of Object.entries(a)){let n=t.cacheHit??0,r=t.cacheMiss??0,i=t.output??0,a=n+r+i;a<=0||(o[e]={hit:n,miss:r,output:i,total:a},s+=a)}e.push({date:i,models:o,total:s})}return e},[t.byDayModels,n]),C=(0,r.useMemo)(()=>{let e=new Map;for(let t of S)for(let[n,r]of Object.entries(t.models))e.set(n,(e.get(n)??0)+r.total);return[...e.entries()].sort((e,t)=>t[1]-e[1]).map(([e])=>({key:e,name:c.find(t=>t.key===e)?.name??Ie(e).name,color:c.find(t=>t.key===e)?.color??`#8b95a3`}))},[S,c]),w=_!==null&&C.some(e=>e.key===_)?_:null,T=e=>{if(y){if(h!==`model`){g(`model`),v(e);return}v(t=>t===e?null:e)}},E=(0,r.useMemo)(()=>{let e=0;return Object.entries(u).filter(([,e])=>e.calls>0).map(([t,n])=>{let r=n.input+n.output;e+=r;let i=n.cacheHit+n.cacheMiss;return{key:t,name:Ie(t).name,input:n.input,output:n.output,reasoning:n.reasoning??0,calls:n.calls,cacheHit:n.cacheHit,cacheMiss:n.cacheMiss,cacheHitRate:i>0?n.cacheHit/i*100:0,total:r,share:0}}).sort((e,t)=>t.total-e.total).map(t=>({...t,share:e>0?t.total/e:0}))},[u]),D=(0,r.useMemo)(()=>{let e=f.cacheHit??0,t=f.cacheMiss??0,n=f.input??0,r=f.output??0,i=f.reasoning??0,a=e+t,o=a>0?e/a*100:0,s=r>0?i/r*100:0,c=r>0?n/r:0,l;for(let e of x){let t=e.miss+e.hit+e.output;(l===void 0||t>l.miss+l.hit+l.output)&&(l=e)}return{cacheHitRate:o,reasoningPct:s,io:c,peak:l,hit:e,miss:t,input:n,output:r,reasoning:i}},[f,x]),O=(0,r.useMemo)(()=>{let e=Object.entries(t.byTool??{}),n=e.slice(0,8),r=e.slice(8).reduce((e,[,t])=>e+t,0),i=e.reduce((e,[,t])=>e+t,0);return{top:n,rest:r>0?[[`…`,r]]:[],totalCalls:i}},[t.byTool]),k=(0,r.useMemo)(()=>{let e=x.length;if(e===0)return null;let t=680-Q.left-Q.right,n=200-Q.top-Q.bottom,r=Math.max(...h===`model`?S.map(e=>e.total):x.map(e=>e.miss+e.hit+e.output),1),i=e=>Q.top+n-e/r*n,a=t/e,o=Math.min(20,a*.6),s=n=>e===1?Q.left+t/2:Q.left+t*n/(e-1),c=Math.max(1,Math.ceil(e/8)),l=[];for(let t=0;t<e;t+=c)l.push(t);return e>0&&l[l.length-1]!==e-1&&l.push(e-1),{n:e,plotW:t,plotH:n,max:r,y:i,barW:o,inner:s,indices:l,groupW:a}},[x,S,h]),A=()=>{let e=new Blob([mt(x)],{type:`text/csv`}),t=document.createElement(`a`);t.href=URL.createObjectURL(e),t.download=`token-daily-${st()}.csv`,t.click(),setTimeout(()=>URL.revokeObjectURL(t.href),0)},te=()=>{let e=new Blob([ft(x,E,S,f)],{type:`application/json`}),t=document.createElement(`a`);t.href=URL.createObjectURL(e),t.download=`token-${st()}.json`,t.click(),setTimeout(()=>URL.revokeObjectURL(t.href),0)},j=p===null?void 0:x[p],M=p===null?void 0:S[p],ne=k===null?0:Math.ceil(80/Math.max(k.groupW,1)),N=p===null||k===null?void 0:p>=k.n-ne?P.chartTooltipAlignRight:p<ne?P.chartTooltipAlignLeft:void 0;return(0,o.jsxs)(`div`,{className:P.tokenPanel,"data-testid":`billing-token-panel`,children:[(0,o.jsxs)(`div`,{className:P.exportBar,role:`group`,"aria-label":a(`tokenExport`),children:[(0,o.jsx)(`span`,{className:P.exportLabel,children:a(`export`)}),(0,o.jsx)(`button`,{type:`button`,className:P.exportButton,"data-testid":`billing-token-export-csv`,onClick:A,children:a(`tokenExportCsv`)}),(0,o.jsx)(`button`,{type:`button`,className:P.exportButton,"data-testid":`billing-token-export-json`,onClick:te,children:a(`exportJson`)})]}),(0,o.jsxs)(`div`,{className:P.kpiGrid,"data-testid":`billing-token-kpis`,children:[(0,o.jsxs)(`div`,{className:P.kpiTile,children:[(0,o.jsx)(`span`,{className:P.kpiLabel,children:a(`tokenCacheHitRate`)}),(0,o.jsxs)(`span`,{className:P.kpiValue,children:[D.cacheHitRate.toFixed(1),`%`]}),(0,o.jsxs)(`span`,{className:P.kpiDetail,children:[Y(D.hit),` / `,Y(D.hit+D.miss),(f.cacheWrite??0)>0?` · ${a(`tokenCacheWrite`)} ${Y(f.cacheWrite??0)}`:``]})]}),(0,o.jsxs)(`div`,{className:P.kpiTile,children:[(0,o.jsx)(`span`,{className:P.kpiLabel,children:a(`tokenReasoningShare`)}),(0,o.jsxs)(`span`,{className:P.kpiValue,children:[D.reasoningPct.toFixed(1),`%`]}),(0,o.jsx)(`span`,{className:P.kpiDetail,children:Y(D.reasoning)})]}),(0,o.jsxs)(`div`,{className:P.kpiTile,children:[(0,o.jsx)(`span`,{className:P.kpiLabel,children:a(`tokenIo`)}),(0,o.jsx)(`span`,{className:P.kpiValue,children:D.io.toFixed(2)}),(0,o.jsxs)(`span`,{className:P.kpiDetail,children:[Y(D.input),` / `,Y(D.output)]})]}),(0,o.jsxs)(`div`,{className:P.kpiTile,children:[(0,o.jsx)(`span`,{className:P.kpiLabel,children:a(`tokenPeak`)}),(0,o.jsx)(`span`,{className:P.kpiValue,children:D.peak===void 0?`—`:ct(D.peak.miss+D.peak.hit+D.peak.output)}),(0,o.jsx)(`span`,{className:P.kpiDetail,children:D.peak?.date??`—`})]})]}),(0,o.jsxs)(`section`,{className:P.panel,"data-testid":`billing-token-daily`,children:[(0,o.jsxs)(`div`,{className:P.panelHead,children:[(0,o.jsx)(`h3`,{className:P.panelTitle,children:a(`tokenDaily`)}),(0,o.jsxs)(`span`,{className:P.panelHeadControls,children:[y&&(0,o.jsx)(`span`,{className:P.rangeToggle,role:`group`,"aria-label":a(`tokenDaily`),children:[`structure`,`model`].map(e=>(0,o.jsx)(`button`,{type:`button`,className:d(P.rangeButton,h===e&&P.rangeButtonActive),"aria-pressed":h===e,onClick:()=>{b(e)},"data-testid":`billing-token-view-${e}`,children:a(e===`structure`?`tokenViewStructure`:`tokenViewModel`)},e))}),(0,o.jsx)(`span`,{className:P.rangeToggle,role:`group`,"aria-label":a(`tokenDaily`),children:[7,30].map(e=>(0,o.jsx)(`button`,{type:`button`,className:d(P.rangeButton,n===e&&P.rangeButtonActive),"aria-pressed":n===e,onClick:()=>{i(e)},"data-testid":`billing-token-${e}d`,children:a(e===7?`trend7d`:`trend30d`)},e))})]})]}),k===null||h===`model`&&C.length===0?(0,o.jsx)(`div`,{className:P.chartEmpty,children:a(`trendEmpty`)}):(0,o.jsxs)(`div`,{className:P.chartWrap,children:[(0,o.jsxs)(`svg`,{viewBox:`0 0 680 200`,className:P.chartSvg,role:`img`,"aria-label":a(`tokenDaily`),onMouseLeave:()=>{m(null)},onMouseMove:e=>{let t=e.currentTarget.getBoundingClientRect(),n=((e.clientX-t.left)/t.width*680-Q.left)/k.plotW,r=Math.round(n*(k.n-1));m(Math.min(Math.max(r,0),k.n-1))},children:[[0,.5,1].map(e=>{let t=k.max*e,n=k.y(t);return(0,o.jsxs)(`g`,{children:[(0,o.jsx)(`line`,{x1:Q.left,x2:680-Q.right,y1:n,y2:n,className:P.chartGrid}),(0,o.jsx)(`text`,{x:Q.left-8,y:n+3,textAnchor:`end`,className:P.chartAxisLabel,children:ct(t)})]},e)}),h===`structure`?x.map((e,t)=>{let n=k.inner(t)-k.barW/2,r=k.y(0),i=k.y(e.miss),a=k.y(e.miss+e.hit),s=k.y(e.miss+e.hit+e.output);return(0,o.jsxs)(`g`,{children:[(0,o.jsx)(`rect`,{x:n,y:i,width:k.barW,height:r-i,fill:lt}),(0,o.jsx)(`rect`,{x:n,y:a,width:k.barW,height:i-a,fill:ut}),(0,o.jsx)(`rect`,{x:n,y:s,width:k.barW,height:a-s,fill:dt})]},e.date)}):S.map((e,t)=>{let n=k.inner(t)-k.barW/2,r=0;return(0,o.jsx)(`g`,{children:C.map(t=>{let i=e.models[t.key];if(i===void 0)return null;let a=k.y(r);r+=i.total;let s=k.y(r),c=w!==null&&t.key!==w;return(0,o.jsx)(`rect`,{x:n,y:s,width:k.barW,height:a-s,fill:t.color,opacity:c?.15:1},t.key)})},e.date)}),k.indices.map(e=>{let t=x[e];return t===void 0?null:(0,o.jsx)(`text`,{x:k.inner(e),y:194,textAnchor:`middle`,className:P.chartAxisLabel,children:t.date.slice(5)},t.date)}),p!==null&&(0,o.jsx)(`line`,{x1:k.inner(p),x2:k.inner(p),y1:Q.top,y2:Q.top+k.plotH,className:P.chartCrosshair})]}),p!==null&&h===`structure`&&j!==void 0&&(0,o.jsxs)(`div`,{className:d(P.chartTooltip,N),"data-testid":`billing-token-tooltip`,style:{left:`${k.inner(p)/680*100}%`,top:`${k.y(j.miss+j.hit+j.output)/200*100}%`},children:[(0,o.jsxs)(`div`,{className:P.chartTooltipHead,children:[(0,o.jsx)(`span`,{className:P.chartTooltipDate,children:j.date}),(0,o.jsx)(`strong`,{children:(j.miss+j.hit+j.output).toLocaleString()})]}),(0,o.jsxs)(`div`,{className:d(P.chartTooltipRow,P.chartTooltipSplit),children:[(0,o.jsxs)(`span`,{className:P.chartTooltipLabel,children:[(0,o.jsx)(`span`,{className:P.chartTooltipSwatch,style:{background:ut}}),a(`tokenHit`)]}),(0,o.jsx)(`strong`,{children:j.hit.toLocaleString()})]}),(0,o.jsxs)(`div`,{className:d(P.chartTooltipRow,P.chartTooltipSplit),children:[(0,o.jsxs)(`span`,{className:P.chartTooltipLabel,children:[(0,o.jsx)(`span`,{className:P.chartTooltipSwatch,style:{background:lt}}),a(`tokenMiss`)]}),(0,o.jsx)(`strong`,{children:j.miss.toLocaleString()})]}),(0,o.jsxs)(`div`,{className:d(P.chartTooltipRow,P.chartTooltipSplit),children:[(0,o.jsxs)(`span`,{className:P.chartTooltipLabel,children:[(0,o.jsx)(`span`,{className:P.chartTooltipSwatch,style:{background:dt}}),a(`tokenOutput`)]}),(0,o.jsx)(`strong`,{children:j.output.toLocaleString()})]})]}),p!==null&&h===`model`&&M!==void 0&&(0,o.jsxs)(`div`,{className:d(P.chartTooltip,N),"data-testid":`billing-token-tooltip`,style:{left:`${k.inner(p)/680*100}%`,top:`${k.y(M.total)/200*100}%`},children:[(0,o.jsxs)(`div`,{className:P.chartTooltipHead,children:[(0,o.jsx)(`span`,{className:P.chartTooltipDate,children:M.date}),(0,o.jsx)(`strong`,{children:M.total.toLocaleString()})]}),C.map(e=>{let t=M.models[e.key];return t===void 0?null:(0,o.jsxs)(`div`,{className:P.chartTooltipModel,children:[(0,o.jsxs)(`div`,{className:d(P.chartTooltipRow,P.chartTooltipSplit),children:[(0,o.jsxs)(`span`,{className:P.chartTooltipLabel,children:[(0,o.jsx)(`span`,{className:P.chartTooltipSwatch,style:{background:e.color}}),e.name]}),(0,o.jsx)(`strong`,{children:t.total.toLocaleString()})]}),(0,o.jsxs)(`div`,{className:P.chartTooltipModelDetail,children:[a(`tokenHitShort`),` `,t.hit.toLocaleString(),` · `,a(`tokenMissShort`),` `,t.miss.toLocaleString(),` · `,a(`tokenOutput`),` `,t.output.toLocaleString()]})]},e.key)})]}),(0,o.jsx)(`div`,{className:P.chartLegend,children:h===`structure`?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(`span`,{children:[(0,o.jsx)(`span`,{className:P.chartTooltipSwatch,style:{background:lt}}),a(`tokenMiss`)]}),(0,o.jsxs)(`span`,{children:[(0,o.jsx)(`span`,{className:P.chartTooltipSwatch,style:{background:ut}}),a(`tokenHit`)]}),(0,o.jsxs)(`span`,{children:[(0,o.jsx)(`span`,{className:P.chartTooltipSwatch,style:{background:dt}}),a(`tokenOutput`)]})]}):C.map(e=>(0,o.jsxs)(`button`,{type:`button`,className:d(P.chartLegendItem,w===e.key&&P.chartLegendItemActive),"aria-pressed":w===e.key,"data-testid":`billing-token-legend-${e.key}`,onClick:()=>{T(e.key)},children:[(0,o.jsx)(`span`,{className:P.chartTooltipSwatch,style:{background:e.color}}),e.name]},e.key))})]})]}),(0,o.jsxs)(`section`,{className:P.panel,"data-testid":`billing-token-models`,children:[(0,o.jsx)(`div`,{className:P.panelHead,children:(0,o.jsx)(`h3`,{className:P.panelTitle,children:a(`tokenByModel`)})}),E.length===0?(0,o.jsx)(`div`,{className:P.emptyRow,children:a(`noData`)}):(0,o.jsx)(`div`,{className:P.tableScroll,children:(0,o.jsxs)(`table`,{className:P.modelTable,"data-testid":`billing-token-model-table`,children:[(0,o.jsx)(`thead`,{children:(0,o.jsxs)(`tr`,{children:[(0,o.jsx)(`th`,{children:a(`model`)}),(0,o.jsx)(`th`,{className:P.numCol,children:a(`inputTokens`)}),(0,o.jsx)(`th`,{className:P.numCol,children:a(`outputTokens`)}),(0,o.jsx)(`th`,{className:P.numCol,children:a(`tokenReasoningShort`)}),(0,o.jsx)(`th`,{className:P.numCol,children:a(`cacheHitRate`)}),(0,o.jsx)(`th`,{className:P.numCol,children:a(`tokenTotal`)}),(0,o.jsx)(`th`,{className:P.numCol,children:a(`tokenShare`)}),(0,o.jsx)(`th`,{className:P.numCol,children:a(`calls`)})]})}),(0,o.jsx)(`tbody`,{children:E.map(e=>(0,o.jsxs)(`tr`,{"data-testid":`billing-token-model`,className:d(y&&P.modelRowFocusable,w===e.key&&P.modelRowActive),"aria-selected":y?w===e.key:void 0,onClick:y?()=>{T(e.key)}:void 0,children:[(0,o.jsx)(`td`,{children:(0,o.jsx)(`span`,{className:P.modelName,children:e.name})}),(0,o.jsx)(`td`,{className:P.numCol,children:Y(e.input)}),(0,o.jsx)(`td`,{className:P.numCol,children:Y(e.output)}),(0,o.jsx)(`td`,{className:P.numCol,children:e.reasoning>0?Y(e.reasoning):(0,o.jsx)(`span`,{className:P.na,children:`—`})}),(0,o.jsxs)(`td`,{className:P.numCol,children:[e.cacheHitRate.toFixed(1),`%`]}),(0,o.jsx)(`td`,{className:P.numCol,children:Y(e.total)}),(0,o.jsx)(`td`,{className:P.numCol,children:(0,o.jsxs)(`span`,{className:P.tokenModelShareRow,children:[(0,o.jsx)(`span`,{className:P.tokenModelBar,children:(0,o.jsxs)(`span`,{className:P.tokenModelParts,style:{width:`${(e.share*100).toFixed(2)}%`},children:[(0,o.jsx)(`span`,{className:P.tokenModelPartIn,style:{width:`${e.total>0?e.input/e.total*100:0}%`}}),(0,o.jsx)(`span`,{className:P.tokenModelPartOut,style:{width:`${e.total>0?e.output/e.total*100:0}%`}})]})}),(e.share*100).toFixed(1),`%`]})}),(0,o.jsx)(`td`,{className:P.numCol,children:e.calls.toLocaleString()})]},e.key))})]})})]}),O.totalCalls>0&&(0,o.jsxs)(`section`,{className:P.panel,"data-testid":`billing-token-tools`,children:[(0,o.jsx)(`div`,{className:P.panelHead,children:(0,o.jsx)(`h3`,{className:P.panelTitle,children:a(`toolRank`)})}),(0,o.jsx)(`div`,{className:P.tableScroll,children:(0,o.jsxs)(`table`,{className:P.modelTable,"data-testid":`billing-tool-table`,children:[(0,o.jsx)(`thead`,{children:(0,o.jsxs)(`tr`,{children:[(0,o.jsx)(`th`,{children:a(`toolName`)}),(0,o.jsx)(`th`,{className:P.numCol,children:a(`calls`)}),(0,o.jsx)(`th`,{className:P.numCol,children:a(`tokenShare`)})]})}),(0,o.jsx)(`tbody`,{children:[...O.top,...O.rest].map(([e,t])=>(0,o.jsxs)(`tr`,{"data-testid":`billing-tool-row`,children:[(0,o.jsx)(`td`,{children:(0,o.jsx)(`span`,{className:P.modelName,children:e})}),(0,o.jsx)(`td`,{className:P.numCol,children:t.toLocaleString()}),(0,o.jsxs)(`td`,{className:P.numCol,children:[(t/O.totalCalls*100).toFixed(1),`%`]})]},e))})]})})]}),ee.length>0&&(0,o.jsxs)(`section`,{className:P.panel,"data-testid":`billing-panel-roles`,children:[(0,o.jsxs)(`div`,{className:P.panelHead,children:[(0,o.jsx)(`h3`,{className:P.panelTitle,children:a(`roleCost`)}),(0,o.jsx)(`span`,{className:P.panelHint,children:a(`roleHint`)})]}),(0,o.jsx)(`div`,{className:P.shareTrack,"data-testid":`billing-role-track`,children:ee.map(e=>(0,o.jsx)(`div`,{className:d(P.shareSeg,e.seg),style:{width:`${e.pct}%`}},e.label))}),(0,o.jsx)(`div`,{className:P.shareLegend,children:ee.map(e=>(0,o.jsxs)(`span`,{className:P.shareItem,children:[(0,o.jsx)(`span`,{className:d(P.shareDot,e.seg)}),e.label,(0,o.jsxs)(`span`,{className:P.shareValue,children:[s(e.value),` · `,e.pct.toFixed(1),`%`]})]},e.label))})]})]})}function mt(e){return[`date,missInput,cacheHit,output,reasoning,total`,...e.map(e=>`${e.date},${e.miss},${e.hit},${e.output},${e.reasoning},${e.miss+e.hit+e.output}`)].join(`
|
|
2
2
|
`)}function ht(e){let t=new Date(e),n=e=>String(e).padStart(2,`0`);return`${n(t.getHours())}:${n(t.getMinutes())}`}function gt(e){let t=new Date(e),n=e=>String(e).padStart(2,`0`);return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}`}function _t(e){let t=Math.round(e/1e3);return t<60?`${t}s`:`${Math.floor(t/60)}m${String(t%60).padStart(2,`0`)}s`}function vt({rounds:e,flags:t,currency:n,t:i}){let a=(0,r.useMemo)(()=>e.slice(-40),[e]),s=(0,r.useMemo)(()=>new Set(t.map(e=>`${e.sessionId}:${e.turn}`)),[t]),c=(0,r.useMemo)(()=>Math.max(1e-4,...a.map(e=>e.cost)),[a]);if(a.length===0)return(0,o.jsxs)(`div`,{className:P.roundsEmpty,children:[i(`model`),` —`]});let l=e=>J(n===`usd`?q(e):e,n);return(0,o.jsxs)(`div`,{className:P.rounds,children:[(0,o.jsx)(`div`,{className:P.roundsBars,role:`img`,"aria-label":`cost per turn`,children:a.map(e=>{let t=s.has(`${e.sessionId}:${e.turn}`),n=Math.max(1,e.cost/c*100),r=V(e.startedAt)===`peak`;return(0,o.jsxs)(`div`,{className:d(P.roundsBarCol,r?P.roundsBarColPeak:P.roundsBarColOff),children:[(0,o.jsx)(`span`,{className:P.roundsBarLabel,style:{bottom:`${n}%`},children:l(e.cost)}),(0,o.jsx)(`div`,{className:P.roundsBarWrap,children:(0,o.jsx)(`div`,{className:t?P.roundsBarFlagged:P.roundsBar,style:{height:`${n}%`},"data-testid":`round-bar`,title:`${i(`model`)} ${e.model} · ${l(e.cost)} · ${gt(e.startedAt)}${e.endedAt===void 0?``:` → ${ht(e.endedAt)} (${_t(e.endedAt-e.startedAt)})`}`,children:t&&(0,o.jsx)(`span`,{className:P.roundsFlagMark,"aria-hidden":`true`})})})]},`${e.sessionId}:${e.turn}`)})}),(0,o.jsxs)(`div`,{className:P.roundsAxis,children:[(0,o.jsxs)(`span`,{children:[i(`costAbbr`),` `,l(c)]}),(0,o.jsxs)(`span`,{children:[a.length,` 轮`]})]})]})}let yt=[`var(--dsw-alias-bg-layer-2)`,`color-mix(in srgb, var(--dsw-static-green-500) 22%, var(--dsw-alias-bg-layer-2))`,`color-mix(in srgb, var(--dsw-static-green-500) 45%, var(--dsw-alias-bg-layer-2))`,`color-mix(in srgb, var(--dsw-static-green-500) 70%, var(--dsw-alias-bg-layer-2))`,`var(--dsw-static-green-500)`],bt=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function xt(e){let t=e=>String(e).padStart(2,`0`);return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}`}function St(e,t){let n=new Map;for(let t of e)n.set(t.date,t.value);let r=0;for(let e of n.values())e>r&&(r=e);let i=t.getFullYear(),a=t.getMonth(),o=t.getDate(),s=new Date(i,a+1,0).getDate(),c=new Date(i,a,1).getDay(),l=c+s,u=Math.ceil(l/7),d=[];for(let e=0;e<u;e+=1){let t=[];for(let l=0;l<7;l+=1){let u=e*7+l-c+1;if(u<1){let e=new Date(i,a,u);t.push({date:xt(e),dayNum:e.getDate(),value:0,level:0,placeholder:!0});continue}if(u>s){let e=new Date(i,a+1,u-s);t.push({date:xt(e),dayNum:e.getDate(),value:0,level:0,placeholder:!0});continue}let d=xt(new Date(i,a,u)),f=n.get(d)??0,p=0;if(f>0&&r>0){let e=Math.ceil(f/r*4);p=Math.min(4,Math.max(1,e))}let m=u>o;t.push({date:d,dayNum:u,value:m?0:f,level:m?0:p,placeholder:m})}d.push(t)}return d}function Ct(e,t){let n=new Map;for(let t of e)n.set(t.date,t.value);let r=0;for(let e of n.values())e>r&&(r=e);let i=xt(t),a=new Date(t);a.setHours(0,0,0,0),a.setDate(a.getDate()-a.getDay());let o=new Date(a);o.setDate(a.getDate()-357);let s=[];for(let e=0;e<52;e+=1){let t=[];for(let a=0;a<7;a+=1){let s=new Date(o);s.setDate(o.getDate()+e*7+a);let c=xt(s),l=c>i,u=l?0:n.get(c)??0,d=0;if(!l&&u>0&&r>0){let e=Math.ceil(u/r*4);d=Math.min(4,Math.max(1,e))}t.push({date:c,dayNum:s.getDate(),value:u,level:d,placeholder:l})}s.push(t)}return s}function wt({days:e,currency:t,now:n,t:i,range:a=`month`}){let[s,c]=(0,r.useState)(null),l=e=>J(t===`usd`?q(e):e,t),u=(0,r.useMemo)(()=>St(e,n??new Date),[e,n]);if(a===`year`){let t=Ct(e,n??new Date),r=[],a=-1;return t.forEach((e,t)=>{let n=Number(e[0]?.date.slice(5,7)??0);n!==a&&(r.push({index:t,label:bt[n-1]??``}),a=n)}),(0,o.jsxs)(`div`,{className:P.heatmapYear,"data-testid":`heatmap-year`,children:[(0,o.jsxs)(`div`,{className:P.heatmapYearBody,children:[(0,o.jsx)(`div`,{className:P.heatmapYearWeekdays,"aria-hidden":`true`,children:[{label:`Mon`,row:1},{label:`Wed`,row:3},{label:`Fri`,row:5}].map(e=>(0,o.jsx)(`span`,{className:P.heatmapYearWeekday,style:{gridRow:e.row},children:e.label},e.label))}),(0,o.jsxs)(`div`,{className:P.heatmapYearScroll,children:[(0,o.jsx)(`div`,{className:P.heatmapYearMonths,"aria-hidden":`true`,"data-testid":`heatmap-year-months`,children:r.map(e=>(0,o.jsx)(`span`,{className:P.heatmapYearMonth,style:{gridColumn:e.index+1},children:e.label},e.index))}),(0,o.jsx)(`div`,{className:P.heatmapYearGrid,role:`img`,"aria-label":`yearly cost heatmap`,"data-testid":`heatmap-year-grid`,children:t.flat().map(e=>(0,o.jsx)(`button`,{type:`button`,className:P.heatmapYearCell,"data-testid":`heatmap-year-cell`,"data-level":e.level,style:{background:yt[e.level]},title:`${e.date} · ${l(e.value)}`,"aria-label":`${e.date}: ${l(e.value)}`},e.date))})]})]}),(0,o.jsxs)(`div`,{className:P.heatmapFooter,children:[(0,o.jsx)(`span`,{className:P.heatmapLegendText,children:i(`heatmapLess`)}),(0,o.jsx)(`span`,{className:P.heatmapLegend,children:yt.map((e,t)=>(0,o.jsx)(`i`,{style:{background:e}},t))}),(0,o.jsx)(`span`,{className:P.heatmapLegendText,children:i(`heatmapMore`)})]})]})}return(0,o.jsxs)(`div`,{className:P.heatmap,children:[(0,o.jsx)(`div`,{className:P.heatmapGrid,role:`img`,"aria-label":`daily cost heatmap`,children:u.map(e=>e.map(e=>e.placeholder?(0,o.jsx)(`div`,{className:P.heatmapCellEmpty,children:e.dayNum},e.date):(0,o.jsx)(`button`,{type:`button`,className:P.heatmapCell,"data-testid":`heatmap-cell`,"data-level":e.level,style:{background:yt[e.level]},title:`${e.date} · ${l(e.value)}`,"aria-label":`${e.date}: ${l(e.value)}`,onMouseEnter:()=>{c(e)},onMouseLeave:()=>{c(null)},onFocus:()=>{c(e)},onBlur:()=>{c(null)},children:e.dayNum},e.date)))}),(0,o.jsxs)(`div`,{className:P.heatmapFooter,children:[(0,o.jsx)(`span`,{className:P.heatmapLegendText,children:i(`heatmapLess`)}),(0,o.jsx)(`span`,{className:P.heatmapLegend,children:yt.map((e,t)=>(0,o.jsx)(`i`,{style:{background:e}},t))}),(0,o.jsx)(`span`,{className:P.heatmapLegendText,children:i(`heatmapMore`)}),s!==null&&(0,o.jsxs)(`span`,{className:P.heatmapHover,"data-testid":`heatmap-hover`,children:[s.date,` · `,l(s.value)]})]})]})}let Tt={window:6,threshold:2,reasonFactor:1.8,reasonHitDropPp:15};function Et(e){if(e.length===0)return null;let t=0;for(let n of e)t+=n;return t/e.length}function Dt(e){let t=e.cacheHit+e.cacheMiss;return t<=0?null:e.cacheHit/t*100}function Ot(e,t){let n=t?.window??Tt.window,r=t?.threshold??Tt.threshold,i=t?.reasonFactor??Tt.reasonFactor,a=t?.reasonHitDropPp??Tt.reasonHitDropPp,o=[];if(n<=0||r<=0)return o;let s=[],c=[],l=[],u=[];for(let t of e){if(t.cost<=0)continue;let e=t.output,d=t.input,f=Dt(t),p=Et(s),m=[];if(p!==null&&p>0&&t.cost>p*r){let n=Et(c),r=Et(l),s=Et(u);n!==null&&n>0&&e>n*i&&m.push(`output-growth`),r!==null&&r>0&&d>r*i&&m.push(`context-bloat`),s!==null&&f!==null&&f<s-a&&m.push(`cache-hit-drop`),o.push({sessionId:t.sessionId,turn:t.turn,cost:t.cost,reasons:m})}for(s.push(t.cost),c.push(e),l.push(d),f!==null&&u.push(f);s.length>n;)s.shift();for(;c.length>n;)c.shift();for(;l.length>n;)l.shift();for(;u.length>n;)u.shift()}return o}function kt(e){return/[",\r\n]/.test(e)?`"${e.replace(/"/g,`""`)}"`:e}function At(e){return/^[=+\-@\t\r]/.test(e)?`'${e}`:e}function jt(e){return e.toFixed(2)}function Mt(e){return[`date,calls,input,output,cache_hit,cache_miss,cost_cny`,...Object.keys(e).sort().map(t=>{let n=e[t];return n===void 0?``:[t,n.calls,n.input,n.output,n.cacheHit,n.cacheMiss,jt(n.cost)].join(`,`)})].join(`
|
|
3
3
|
`)}function Nt(e){return[`site,kind,calls,cost_cny`,...Object.entries(e).map(([e,t])=>{let n=e.startsWith(`site:`)?e.slice(5):e.startsWith(`direct:`)?e.slice(7):`unknown`,r=e.startsWith(`site:`)?`site`:e.startsWith(`direct:`)?`direct`:`unknown`;return[kt(At(n)),r,t.calls,jt(t.cost)].join(`,`)})].join(`
|
|
4
4
|
`)}function Pt(e){return e===void 0?``:e.split(/[\\/]/).filter(Boolean).pop()??e}function Ft(e){return[`session_id,title,project,calls,cost_cny,last_active`,...e.map(e=>[kt(At(e.id)),kt(At(e.title??``)),kt(At(Pt(e.cwd))),e.calls,jt(e.cost),e.lastActive>0?new Date(e.lastActive).toISOString():``].join(`,`))].join(`
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kenz1117/dsh-ui-usage-billing",
|
|
3
3
|
"description": "Usage billing dashboard for DeepSeek Harness: sidebar cost metrics plus a full dashboard modal, priced from a current multi-provider catalog with real usage aggregated from session logs.",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.5",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|
|
7
7
|
"deepseek",
|
|
@@ -64,7 +64,8 @@
|
|
|
64
64
|
"0.1.3-alpha.2": "compatible",
|
|
65
65
|
"0.1.5-alpha.1": "compatible",
|
|
66
66
|
"0.1.5-alpha.2": "compatible",
|
|
67
|
-
"0.1.5-rc.1": "compatible"
|
|
67
|
+
"0.1.5-rc.1": "compatible",
|
|
68
|
+
"0.1.5-rc.2": "compatible"
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
},
|