import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{n as t,t as n}from"./react-vendor-p7iaafZV.js";import{$ as r,A as i,B as a,C as o,D as s,E as c,F as l,G as u,H as d,I as f,J as p,K as m,L as h,M as g,N as _,O as v,P as y,Q as b,R as x,S,T as C,U as w,V as T,W as E,X as D,Y as O,Z as k,_ as ee,a as A,at as j,b as te,c as M,ct as ne,d as N,dt as re,et as P,f as ie,ft as ae,g as oe,gt as se,h as ce,ht as le,i as ue,it as de,j as fe,k as pe,l as me,lt as he,m as ge,mt as _e,n as ve,nt as ye,o as be,ot as xe,p as Se,pt as Ce,q as we,r as Te,rt as Ee,s as De,st as Oe,t as ke,tt as Ae,u as je,ut as F,v as Me,w as Ne,x as Pe,y as Fe,z as Ie}from"./icons-vendor-DWXXEd8r.js";import{f as Le,i as Re,n as ze,o as Be,r as Ve}from"./echarts-vendor-cxhjuxlY.js";var He=t();(function(e){var t=`zh-cn`,n=null,r={"zh-cn":`zh-CN`,zh:`zh-TW`,en:`en-US`,it:`it-IT`,jp:`ja-JP`,kr:`ko-KR`,de:`de-DE`,es:`es-ES`,pt:`pt-PT`,sa:`ar`,fr:`fr-FR`,ru:`ru-RU`,vm:`vi-VN`,in:`hi-IN`,th:`th-TH`,ir:`fa-IR`,my:`ms-MY`,se:`sv-SE`,tr:`tr-TR`,mm:`my-MM`,ua:`uk-UA`},i={"zh-cn":{titleDefault:`订阅站点更新提醒`,titleWithSite:`订阅 {siteName} 站点更新提醒`,description:`扫码关注公众号 站点更新将通过公众号消息推送`,loading:`二维码加载中`,qrAlt:`订阅二维码`,expiresIn:`{minutes}分钟内有效`,generatedAt:`{datetime}生成`},zh:{titleDefault:`訂閱站點更新提醒`,titleWithSite:`訂閱 {siteName} 站點更新提醒`,description:`掃碼關注公眾號 站點更新將透過公眾號訊息推送`,loading:`QR 碼載入中`,qrAlt:`訂閱 QR 碼`,expiresIn:`{minutes} 分鐘內有效`,generatedAt:`{datetime} 產生`},en:{titleDefault:`Subscribe to site updates`,titleWithSite:`Subscribe to {siteName} site update alerts`,description:`Scan the QR code to follow our WeChat account Get notified when this site is updated`,loading:`Loading QR code`,qrAlt:`Subscription QR code`,expiresIn:`Valid for {minutes} minutes`,generatedAt:`Generated at {datetime}`},jp:{titleDefault:`サイト更新通知を購読`,titleWithSite:`{siteName} の 更新通知を購読`,description:`QRコードをスキャンしてWeChat公式アカウントをフォロー サイト更新時に通知を受け取れます`,loading:`QRコードを読み込み中`,qrAlt:`購読用QRコード`,expiresIn:`{minutes}分間有効`,generatedAt:`{datetime} 生成`},kr:{titleDefault:`사이트 업데이트 알림 구독`,titleWithSite:`{siteName} 사이트 업데이트 알림 구독`,description:`QR 코드를 스캔하여 WeChat 공식 계정을 팔로우하세요 사이트가 업데이트되면 알림을 받습니다`,loading:`QR 코드 불러오는 중`,qrAlt:`구독 QR 코드`,expiresIn:`{minutes}분간 유효`,generatedAt:`{datetime} 생성`},de:{titleDefault:`Website-Updates abonnieren`,titleWithSite:`{siteName} Update-Benachrichtigungen abonnieren`,description:`QR-Code scannen, um unser WeChat-Konto zu folgen Benachrichtigung bei Website-Updates erhalten`,loading:`QR-Code wird geladen`,qrAlt:`Abonnement-QR-Code`,expiresIn:`{minutes} Minuten gültig`,generatedAt:`Erstellt am {datetime}`},es:{titleDefault:`Suscribirse a actualizaciones del sitio`,titleWithSite:`Suscribirse a {siteName} alertas de actualización`,description:`Escanee el código QR para seguir nuestra cuenta de WeChat Reciba avisos cuando se actualice el sitio`,loading:`Cargando código QR`,qrAlt:`Código QR de suscripción`,expiresIn:`Válido por {minutes} minutos`,generatedAt:`Generado el {datetime}`},pt:{titleDefault:`Subscrever atualizações do site`,titleWithSite:`Subscrever {siteName} alertas de atualização`,description:`Digitalize o código QR para seguir a nossa conta WeChat Receba notificações quando o site for atualizado`,loading:`A carregar código QR`,qrAlt:`Código QR de subscrição`,expiresIn:`Válido por {minutes} minutos`,generatedAt:`Gerado em {datetime}`},it:{titleDefault:`Iscriviti agli aggiornamenti del sito`,titleWithSite:`Iscriviti a {siteName} avvisi di aggiornamento`,description:`Scansiona il codice QR per seguire il nostro account WeChat Ricevi notifiche quando il sito viene aggiornato`,loading:`Caricamento codice QR`,qrAlt:`Codice QR di iscrizione`,expiresIn:`Valido per {minutes} minuti`,generatedAt:`Generato il {datetime}`},fr:{titleDefault:`S'abonner aux mises à jour du site`,titleWithSite:`S'abonner à {siteName} alertes de mise à jour`,description:`Scannez le code QR pour suivre notre compte WeChat Recevez une notification lors des mises à jour du site`,loading:`Chargement du code QR`,qrAlt:`Code QR d'abonnement`,expiresIn:`Valable {minutes} minutes`,generatedAt:`Généré le {datetime}`},ru:{titleDefault:`Подписка на обновления сайта`,titleWithSite:`Подписка на {siteName} уведомления об обновлениях`,description:`Отсканируйте QR-код, чтобы подписаться на WeChat Получайте уведомления об обновлениях сайта`,loading:`Загрузка QR-кода`,qrAlt:`QR-код подписки`,expiresIn:`Действителен {minutes} мин.`,generatedAt:`Создан {datetime}`},vm:{titleDefault:`Đăng ký cập nhật trang web`,titleWithSite:`Đăng ký {siteName} thông báo cập nhật`,description:`Quét mã QR để theo dõi tài khoản WeChat Nhận thông báo khi trang web được cập nhật`,loading:`Đang tải mã QR`,qrAlt:`Mã QR đăng ký`,expiresIn:`Có hiệu lực trong {minutes} phút`,generatedAt:`Tạo lúc {datetime}`},th:{titleDefault:`สมัครรับการอัปเดตเว็บไซต์`,titleWithSite:`สมัครรับ {siteName} การแจ้งเตือนอัปเดต`,description:`สแกน QR Code เพื่อติดตามบัญชี WeChat รับการแจ้งเตือนเมื่อเว็บไซต์มีการอัปเดต`,loading:`กำลังโหลด QR Code`,qrAlt:`QR Code สำหรับสมัคร`,expiresIn:`ใช้ได้ {minutes} นาที`,generatedAt:`สร้างเมื่อ {datetime}`},sa:{titleDefault:`اشترك في تحديثات الموقع`,titleWithSite:`اشترك في {siteName} تنبيهات التحديث`,description:`امسح رمز QR لمتابعة حساب WeChat احصل على إشعار عند تحديث الموقع`,loading:`جارٍ تحميل رمز QR`,qrAlt:`رمز QR للاشتراك`,expiresIn:`صالح لمدة {minutes} دقيقة`,generatedAt:`تم الإنشاء في {datetime}`},ir:{titleDefault:`اشتراک در بهروزرسانیهای سایت`,titleWithSite:`اشتراک در {siteName} هشدارهای بهروزرسانی`,description:`برای دنبال کردن حساب WeChat، QR را اسکن کنید با بهروزرسانی سایت اطلاعرسانی دریافت کنید`,loading:`در حال بارگذاری QR`,qrAlt:`QR اشتراک`,expiresIn:`معتبر برای {minutes} دقیقه`,generatedAt:`ایجاد شده در {datetime}`},in:{titleDefault:`साइट अपडेट की सदस्यता लें`,titleWithSite:`{siteName} साइट अपडेट अलर्ट की सदस्यता`,description:`WeChat खाता फॉलो करने के लिए QR कोड स्कैन करें साइट अपडेट होने पर सूचना पाएं`,loading:`QR कोड लोड हो रहा है`,qrAlt:`सदस्यता QR कोड`,expiresIn:`{minutes} मिनट तक मान्य`,generatedAt:`{datetime} को बनाया गया`},my:{titleDefault:`Langgan kemas kini laman web`,titleWithSite:`Langgan {siteName} amaran kemas kini`,description:`Imbas kod QR untuk ikuti akaun WeChat kami Dapatkan pemberitahuan apabila laman web dikemas kini`,loading:`Memuatkan kod QR`,qrAlt:`Kod QR langganan`,expiresIn:`Sah selama {minutes} minit`,generatedAt:`Dijana pada {datetime}`},se:{titleDefault:`Prenumerera på webbplatsuppdateringar`,titleWithSite:`Prenumerera på {siteName} uppdateringsaviseringar`,description:`Skanna QR-koden för att följa vårt WeChat-konto Få avisering när webbplatsen uppdateras`,loading:`Laddar QR-kod`,qrAlt:`Prenumerations-QR-kod`,expiresIn:`Giltig i {minutes} minuter`,generatedAt:`Skapad {datetime}`},tr:{titleDefault:`Site güncellemelerine abone ol`,titleWithSite:`{siteName} güncelleme bildirimlerine abone ol`,description:`WeChat hesabımızı takip etmek için QR kodu tarayın Site güncellendiğinde bildirim alın`,loading:`QR kodu yükleniyor`,qrAlt:`Abonelik QR kodu`,expiresIn:`{minutes} dakika geçerli`,generatedAt:`{datetime} tarihinde oluşturuldu`},mm:{titleDefault:`ဝဘ်ဆိုက် အပ်ဒိတ်များကို စာရင်းသွင်းပါ`,titleWithSite:`{siteName} အပ်ဒိတ်သတိပေးချက်များကို စာရင်းသွင်းပါ`,description:`WeChat အကောင့်ကို follow လုပ်ရန် QR ကုဒ်ကို scan လုပ်ပါ ဝဘ်ဆိုက် အပ်ဒိတ်ဖြစ်သည့်အခါ အကြောင်းကြားချက်ရယူပါ`,loading:`QR ကုဒ် လုပ်ဆောင်နေသည်`,qrAlt:`စာရင်းသွင်းမှု QR ကုဒ်`,expiresIn:`{minutes} မိနစ်အတွင်း အကျုံးဝင်သည်`,generatedAt:`{datetime} တွင် ဖန်တီးထားသည်`},ua:{titleDefault:`Підписка на оновлення сайту`,titleWithSite:`Підписка на {siteName} сповіщення про оновлення`,description:`Відскануйте QR-код, щоб підписатися на WeChat Отримуйте сповіщення про оновлення сайту`,loading:`Завантаження QR-коду`,qrAlt:`QR-код підписки`,expiresIn:`Дійсний {minutes} хв.`,generatedAt:`Створено {datetime}`}},a={"zh-cn":`zh-cn`,"zh-hans":`zh-cn`,"zh-hant":`zh`,"zh-tw":`zh`,"zh-hk":`zh`,ja:`jp`,"ja-jp":`jp`,ko:`kr`,"ko-kr":`kr`,vi:`vm`,"vi-vn":`vm`,ar:`sa`,fa:`ir`,hi:`in`,sv:`se`,"sv-se":`se`,uk:`ua`,"pt-br":`pt`};function o(t){var n=(t||e.__DINGYUE_LOCALE__||`zh-cn`).toString().trim().toLowerCase().replace(/_/g,`-`);return a[n]||n}function s(e){return String(e).replace(/&/g,`&`).replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}function c(e,t){return e?e.replace(/\{(\w+)\}/g,function(e,n){return t&&t[n]!=null?t[n]:``}):``}function l(e,t){return c((n||i[`zh-cn`])[e]||i[`zh-cn`][e]||e,t||{})}function u(e){var n=r[t]||t;try{return new Intl.DateTimeFormat(n,{year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`}).format(e)}catch{var i=e;return i.getFullYear()+`-`+String(i.getMonth()+1).padStart(2,`0`)+`-`+String(i.getDate()).padStart(2,`0`)+` `+String(i.getHours()).padStart(2,`0`)+`:`+String(i.getMinutes()).padStart(2,`0`)}}function d(e){return e?/未输入|官微中心/.test(e):!0}function f(e){var t=(e||``).trim();return!t||d(t)?l(`titleDefault`):l(`titleWithSite`,{siteName:``+s(t)+` `})}function p(e){var r=o(e);return t=r,n=i[r]||i[`zh-cn`],Promise.resolve(n)}e.dingyueI18n={t:l,loadLocale:p,buildTitle:f,formatDateTime:u,escapeHtml:s,normalizeLocale:o,getLocale:function(){return t}}})(typeof window<`u`?window:void 0);var Ue={style:`
/* 订阅弹窗样式 */
.dingyue-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 20001;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.dingyue-modal.dingyue-modal-show {
opacity: 1;
visibility: visible;
}
.dingyue-modal-overlay {
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
box-sizing: border-box;
}
.dingyue-modal-content {
background-color: #fff;
border-radius: 12px;
padding: 0;
width: 100%;
max-width: 320px;
position: relative;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
transform: scale(0.8);
transition: transform 0.3s ease;
padding: 10px;
}
.dingyue-modal-show .dingyue-modal-content {
transform: scale(1);
}
.dingyue-modal-close {
position: absolute;
top: 3px;
right: 3px;
width: 30px;
height: 30px;
border: none;
background: transparent;
cursor: pointer;
font-size: 20px;
color: #999;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
transition: all 0.2s ease;
z-index: 1;
}
.dingyue-modal-close:hover {
background-color: #f5f5f5;
color: #666;
}
/* 第一部分:标题 */
.dingyue-title {
padding: 10px 10px 8px 10px;
text-align: center;
}
.dingyue-title{
margin: 0;
font-size: 18px;
color: #333;
line-height: 1.3;
}
.dingyue-title .dingyue-title-website-name {
font-weight: 600;
color: #333;
line-height: 1.3;
}
/* 第二部分:描述 */
.dingyue-description {
padding: 10px 10px 0 10px;
text-align: center;
font-size: 15px;
color: #888;
line-height: 1.3;
}
/* 第三部分:二维码 */
.dingyue-qr-code {
padding: 6px 24px;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
min-height: 202px;
}
.dingyue-qr-wrapper {
position: relative;
display: inline-block;
line-height: 0;
}
.dingyue-qr-img {
width: 160px;
height: 160px;
border-radius: 8px;
object-fit: cover;
display: block;
}
.dingyue-qr-logo-box {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #fff;
padding: 2px;
border-radius: 5px;
box-shadow: 0 1px 5px rgba(0,0,0,0.08);
width: 36px;
height: 36px;
box-sizing: border-box;
}
.dingyue-qr-logo-inner {
/* border: 0.5px solid #f0f0f0; */
border-radius: 3px;
width: 32px;
height: 32px;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.dingyue-qr-logo-inner::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 200%;
height: 200%;
border: 1px solid #e0e0e0;
border-radius: 6px;
transform: scale(0.5);
transform-origin: 0 0;
pointer-events: none;
}
.dingyue-qr-logo {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
border-radius: 3px;
}
.dingyue-qr-code .dingyue-expires-text{
font-size: 12px;
color: #888;
}
.dingyue-qr-code .dingyue-expires-text.font-size-14{
font-size: 14px;
}
.dingyue-loading {
width: 100%;
height: 160px;
display: flex;
justify-content: center;
align-items: center;
}
.dingyue-loading .dingyue-loading-text{
font-size: 15px;
color: #aaa;
}
.dingyue-loading .dot-loader {
height: 20px;
width: 20px;
border-radius: 50%;
background-color: #576B96;
position: relative;
animation: 1.2s grow ease-in-out infinite;
}
@keyframes grow {
0%, 40%, 100% {
transform: scale(0);
}
40% {
transform: scale(1);
}
}
.dingyue-loading .dot-loader--2 {
animation: 1.2s grow ease-in-out infinite 0.15555s;
margin: 0 20px;
}
.dingyue-loading .dot-loader--3 {
animation: 1.2s grow ease-in-out infinite 0.3s;
}
.dingyue-loading .dot-loader--3 {
animation: 1.2s grow ease-in-out infinite 0.3s;
}
/* 第四部分:小字描述 */
.dingyue-footer {
padding: 8px 10px 10px 10px;
text-align: center;
font-size: 13px;
color: #999;
line-height: 1.4;
}
/* 响应式适配 */
@media screen and (max-width: 320px) {
.dingyue-modal-content {
max-width: 285px;
}
.dingyue-title {
font-size: 18px;
}
.dingyue-title .dingyue-title-website-name {
font-weight: 600;
color: #333;
line-height: 1.3;
}
.dingyue-description {
font-size: 14px;
}
.dingyue-qr-code .dingyue-qr-img {
width: 140px;
height: 140px;
}
.dingyue-qr-logo-box {
width: 32px;
height: 32px;
}
.dingyue-qr-logo-inner {
width: 28px;
height: 28px;
}
.dingyue-footer {
font-size: 12px;
}
}
@media screen and (min-width: 768px) {
.dingyue-modal-content {
max-width: 285px;
}
}
`,fetch:async(e,t=`get`,n,r={})=>{let i=window.location.origin;try{let a=[`/analyst/event`],o=i;a.includes(e)&&(o=`https://wei.ltd.com`),t===`post`?(r.method=t,r.headers={"Content-Type":`application/json`},r.body=JSON.stringify(n)):(r.method=t,e+=`?`+Object.keys(n).map(e=>`${e}=${n[e]}`).join(`&`));let s=await fetch(o+e,r);if(!s.ok)throw Error(`HTTP error! status: ${s.status}`);return(s.headers.get(`content-type`)||``).startsWith(`image/`)?{code:0,msg:`success`,data:null}:await s.json()}catch(e){return{code:-1,msg:e.message,data:null}}},sendAnalyst:function(e){let t={..._ga.params,referer:location.href,website_id:e,duration:parseInt(Date.now()/1e3)-_ga.timestamp,relative:`站点订阅: 弹出二维码`,type:501};return this.fetch(`/analyst/event`,`post`,t)},getQRcode:function(e){let t={website_id:e};return this.fetch(`/api/subscribe/getSubscribeQrcodeByWebsiteId`,`get`,t)},getWebsiteInfo:function(e,t){let n={website_id:e,language_type:t||`zh-cn`};return this.fetch(`/api/getWebsiteInfo`,`get`,n)},updateModalTitle:function(e){var t=typeof window<`u`?window.dingyueI18n:null,n=t?t.buildTitle(e):!e||e.includes(`未输入`)||e.includes(`官微中心`)?`订阅站点更新提醒`:`订阅 `+e+` 站点更新提醒`,r=document.querySelector(`.dingyue-modal .dingyue-title`);r&&(r.innerHTML=n),this._modalConfig&&(this._modalConfig.title=n)},resolveSiteName:function(e,t,n){return t=(t||``).trim(),n=(n||``).trim(),(e||`zh-cn`)===`zh-cn`&&t||n},init:async function(e,t={}){var n=typeof window<`u`?window.dingyueI18n:null,r=t.locale||`zh-cn`,i=r!==`zh-cn`;n&&await n.loadLocale(r);let a=this.getQRcode(e),o=this.getWebsiteInfo(e,r),s=(t.siteName||t.title||``).trim(),c=i?``:s,l={title:n?n.buildTitle(c):c,description:n?n.t(`description`):`扫码关注公众号 站点更新将通过公众号消息推送`,qrCode:``,logo:``,footerText:`本站站点内容更新提醒功能 由枢纽云营销SaaS公众号 提供服务`,loadingText:n?n.t(`loading`):`二维码加载中`,qrAlt:n?n.t(`qrAlt`):`订阅二维码`,closeOnOverlay:!0},u=Object.assign({},l,t);n?u.title=n.buildTitle(c):!c||c.includes(`未输入`)||c.includes(`官微中心`)?u.title=`订阅站点更新提醒`:u.title=`订阅 `+c+` 站点更新提醒`,this._modalConfig=u,this.createModal(u);let[d,f]=await Promise.all([a,o]);if(f.code===0&&f.data){let e=(f.data.name||``).trim(),n=(t.siteName||t.title||``).trim(),i=this.resolveSiteName(r,n,e);((r||`zh-cn`)!==`zh-cn`||i)&&this.updateModalTitle(i)}if(d.code===0){var p;let t=u.logo;!t&&f.code===0&&f.data&&f.data.company_logo&&f.data.company_logo.id&&(t=f.data.company_logo.url),this.replaceLoading(d.data.url,((p=d.data)==null?void 0:p.expire_seconds)||null,t),this.sendAnalyst(e)}},replaceLoading:function(e,t,n){let r=document.querySelector(`.dingyue-qr-code`),i=this._modalConfig||{},a=typeof window<`u`?window.dingyueI18n:null,o=i.qrAlt||(a?a.t(`qrAlt`):`订阅二维码`),s=``;if(n&&n.trim()&&(s=`
`),r.innerHTML=`
${s}
`,t&&t>0){let e=Math.floor(t/60),n=new Date,i=a?a.formatDateTime(n):n.getFullYear()+`年`+(n.getMonth()+1)+`月`+n.getDate().toString().padStart(2,`0`)+`日`+n.getHours().toString().padStart(2,`0`)+`时`+n.getMinutes().toString().padStart(2,`0`)+`分`,o=a?a.t(`expiresIn`,{minutes:e}):e+`分钟内有效`,s=a?a.t(`generatedAt`,{datetime:i}):i+`生成`;r.innerHTML+=`${o}
${s} `}},createModal:function(e){let t=document.createElement(`div`);t.className=`dingyue-modal`,t.innerHTML=`
×
${e.title}
${e.description}
${e.loadingText||`二维码加载中`}
`;let n=document.createElement(`style`);return n.textContent=this.style,document.head.appendChild(n),document.body.appendChild(t),this.bindEvents(t,e),setTimeout(()=>{t.classList.add(`dingyue-modal-show`)},10),t},bindEvents:function(e,t){if(e.querySelector(`.dingyue-modal-close`).addEventListener(`click`,()=>{this.close(e)}),t.closeOnOverlay){let t=e.querySelector(`.dingyue-modal-overlay`);t.addEventListener(`click`,n=>{n.target===t&&this.close(e)})}let n=t=>{t.key===`Escape`&&this.close(e)};document.addEventListener(`keydown`,n),e._handleEscape=n},close:function(e){e.classList.remove(`dingyue-modal-show`),setTimeout(()=>{document.body.removeChild(e),e._handleEscape&&document.removeEventListener(`keydown`,e._handleEscape)},300)}};(function(e){e.dingyue=Ue})(typeof window<`u`?window:void 0);var I=e(se(),1),We=[{key:`support`,className:`font-size-24`,href:`https://ltd.com`,iconClassName:`icon-ltd-copyright-logo-iconfont-line-new`,label:`支持`,target:`_blank`},{key:`feedback`,href:`/report`,iconClassName:`icon-ltd-copyright-feedback-iconfont-line-new`,id:`report-click`,label:`反馈`},{key:`subscribe`,href:`#notice-subscribe`,iconClassName:`icon-ltd-copyright-notify-iconfont-line`,id:`notice-click`,label:`订阅`,preventNavigation:!0,subscribeKey:`notice-click`},{key:`management`,href:`/admin/login`,iconClassName:`icon-ltd-copyright-chart-iconfont-line-new`,label:`管理`,target:`_blank`}],L=n();function Ge({actions:e=We,ariaLabel:t=`网站服务入口`,className:n=``,onAction:r,subscription:i,...a}){return(0,L.jsx)(`footer`,{...a,"aria-label":t,className:`gw-website-copyright report-mobile report-pc report${n?` ${n}`:``}`,children:e.map(e=>(0,L.jsxs)(`a`,{className:`gw-website-copyright__action flex-box${e.className?` ${e.className}`:``}`,"data-subscribe":e.subscribeKey,href:e.href,id:e.id,onClick:t=>{var n;if(e.preventNavigation&&t.preventDefault(),e.key===`subscribe`){var a;let e=(i==null?void 0:i.websiteId)||window.localStorage.getItem(`websiteId`),t=(i==null?void 0:i.locale)||document.documentElement.lang||`zh-cn`;e&&(a=window.dingyue)!=null&&a.init&&window.dingyue.init(e,{locale:t,siteName:i==null?void 0:i.siteName}).catch(e=>{})}(n=e.onClick)==null||n.call(e,t),r==null||r(e)},rel:e.target===`_blank`?`noopener noreferrer`:void 0,target:e.target,children:[(0,L.jsx)(`i`,{"aria-hidden":`true`,className:`gw-website-copyright__icon iconfont-copyright ${e.iconClassName}`}),(0,L.jsx)(`span`,{children:e.label})]},e.key))})}var Ke=`/visual-editor-new/dist/big-data-dashboard/embed/assets/dashboard-panel-texture-Cw7y15_8.jpg`,qe=`/visual-editor-new/dist/big-data-dashboard/embed/assets/dashboard-tech-backdrop-lCSsjkr8.jpg`,Je=`/visual-editor-new/dist/big-data-dashboard/embed/assets/dashboard-enable-guide-B4lvR_2p.jpg`,Ye=2200,Xe=Je,Ze=Ke,Qe=qe,$e=`https://ltd.com/admin/login`,et=[qe,Ke];function tt(e){return[`disabled`,`enabled`,`password-checking`,`password-required`].includes(e)}function nt(e,t,n,r=!1){return tt(e)?e===`enabled`?r||t&&n:!0:!1}function rt(e,t=!1){return!t&&[`checking`,`enabled`].includes(e)}function it(e,t){return e===`enabled`&&!t}var at={desktop:{width:1500,height:875},landscapePhone:{width:840,height:490},portraitPhone:{width:520,height:728}};function ot(e){let t=e.isMobile?e.mode===`portrait`?at.portraitPhone:at.landscapePhone:at.desktop,n=e.isMobile?24:48,r=Math.max(1,e.viewportWidth-n),i=Math.max(1,e.viewportHeight-n),a=Math.min(e.scale,r/t.width,i/t.height);return Number.isFinite(a)?Math.max(.01,a):1}var st={left:[`data_asset`,`sales`,`content`,`monthly_analyst_data`],right:[`client_info`,`shop_user_list`,`seo_count`,`cloud_computing_resources`],center:[`visit_log`,`interact_all_count`],mobile:[`data_asset`,`sales`,`visit_log`,`client_info`,`shop_user_list`,`content`,`monthly_analyst_data`,`interact_all_count`,`seo_count`,`cloud_computing_resources`]},ct={placard:`placard_cunt`};function lt(e){var t;return(t=ct[e])==null?`${e}_count`:t}function ut(e,t,n=e=>e){var r;return e!=null&&e.status?((r=e.children)==null?[]:r).filter(e=>{if(!e.status)return!1;let r=Number(t==null?void 0:t[n(e.key)]);return Number.isFinite(r)&&r!==0}).length:0}function dt(e,t,n=!1){if(n)return[];let r=new Map(e.map(e=>[e.key,e])),i=ut(r.get(`sales`),t),a=ut(r.get(`content`),t,lt),o=[];return i>0&&o.push(i<=4?`has-compact-business-advisor`:`has-expanded-business-advisor`),a>0&&a<=5&&o.push(`has-sparse-content-share`),o}function ft(e,t){return e.map(e=>t.get(e)).filter(Boolean).sort((e,t)=>{var n,r;return((n=t.sort)==null?-(2**53-1):n)-((r=e.sort)==null?-(2**53-1):r)})}function pt(e,t){return e.map(e=>t.get(e)).filter(Boolean)}function mt(e){let t=new Map(e.map(e=>[e.key,e]));return{leftModules:ft(st.left,t),rightModules:ft(st.right,t),centerModules:pt(st.center,t),mobileModules:ft(st.mobile,t)}}function ht(e){return!!(e!=null&&e.id&&e!=null&&e.url)}function gt(e){return Array.isArray(e)&&e.some(ht)}function _t({config:e,isLoading:t,visits:n}){return!!(e!=null&&e.status)&&(t||gt(n))}var vt=/(^|\.)ltdcdn\.com$/i,yt=/^(?:imageMogr2|imageView2)\//i,bt=/\.(?:gif|svg)(?:$|[?#])/i;function xt(e,t=64){let n=String(e==null?``:e).trim();if(!n||bt.test(n))return n;try{let e=new URL(n),r=e.search.replace(/^\?+/,``);if(![`http:`,`https:`].includes(e.protocol)||!vt.test(e.hostname)||r&&!yt.test(r))return n;let i=Math.min(512,Math.max(16,Math.round(Number(t)||64)));return`${e.origin}${e.pathname}?imageMogr2/thumbnail/${i}x${i}/format/webp/quality/82`}catch{return n}}var St=8e3,Ct=800,wt=[3e4,12e4,3e5];function Tt(){var e;return(e=document.fullscreenElement)==null?document.webkitFullscreenElement:e}function Et(e){let t=new Intl.DateTimeFormat(`zh-CN`,{year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1}).formatToParts(e).reduce((e,{type:t,value:n})=>(e[t]=n,e),{});return{date:`${t.year}.${t.month}.${t.day}`,time:`${t.hour}:${t.minute}:${t.second}`}}function Dt(e){let t=String(e==null?``:e).trim();return t?Array.from(t)[0].toUpperCase():`BI`}function Ot(e,t=[]){return[e,...Array.isArray(t)?t:[]].map(e=>String(e==null?``:e).trim()).filter((e,t,n)=>e&&n.indexOf(e)===t).flatMap(e=>{let t=xt(e,96);return t===e?[e]:[t,e]}).filter((e,t,n)=>n.indexOf(e)===t)}function kt({companyName:e,dataState:t,isMobile:n,logoUrl:r,logoUrls:i,title:a}){var o,s,c;let[u,d]=(0,I.useState)(()=>new Date),[f,p]=(0,I.useState)(()=>!!Tt()),[m,h]=(0,I.useState)(0),[g,v]=(0,I.useState)(null),[y,b]=(0,I.useState)(0),[x,S]=(0,I.useState)(0),[C,w]=(0,I.useState)(!1),T=(0,I.useRef)(null),E=(0,I.useRef)(),D=(0,I.useRef)(),O=(0,I.useRef)(``),k=(0,I.useMemo)(()=>Ot(r,i),[r,i]),ee=k.join(`
`),A=(o=(s=k[m])==null?k[0]:s)==null?``:o,j=`${A}:${x}`;(0,I.useEffect)(()=>{let e=window.setInterval(()=>d(new Date),1e3);return()=>window.clearInterval(e)},[]),(0,I.useEffect)(()=>(window.clearTimeout(E.current),window.clearTimeout(D.current),O.current=``,h(0),v(null),b(0),S(0),w(!1),()=>{window.clearTimeout(E.current),window.clearTimeout(D.current)}),[ee]);let te=(0,I.useCallback)(()=>{O.current!==j&&(O.current=j,window.clearTimeout(E.current),window.clearTimeout(D.current),v(A),b(0))},[A,j]),M=(0,I.useCallback)(()=>{if(O.current!==j){if(O.current=j,window.clearTimeout(E.current),v(null),me+1);return}w(!0)}},[m,k.length,j]);(0,I.useEffect)(()=>{if(window.clearTimeout(E.current),!A||C)return;let e=T.current;if(e!=null&&e.complete&&e.naturalWidth>0){te();return}return E.current=window.setTimeout(M,St),()=>window.clearTimeout(E.current)},[A,M,te,C,x]),(0,I.useEffect)(()=>{if(!C||k.length===0)return;let e=x===0,t=()=>document.visibilityState!==`hidden`&&navigator.onLine!==!1,n=()=>{!e&&!t()||(window.clearTimeout(D.current),O.current=``,h(0),v(null),S(e=>e+1),e||b(e=>Math.min(e+1,wt.length-1)),w(!1))},r=()=>{if(window.clearTimeout(D.current),!e&&!t())return;let r=e?Ct:wt[y];D.current=window.setTimeout(n,r)},i=()=>{if(document.visibilityState===`hidden`){window.clearTimeout(D.current);return}n()};return r(),e||(window.addEventListener(`online`,n),document.addEventListener(`visibilitychange`,i)),()=>{window.clearTimeout(D.current),window.removeEventListener(`online`,n),document.removeEventListener(`visibilitychange`,i)}},[k.length,C,y,x]),(0,I.useEffect)(()=>{let e=()=>{p(!!Tt())};return document.addEventListener(`fullscreenchange`,e),document.addEventListener(`webkitfullscreenchange`,e),()=>{document.removeEventListener(`fullscreenchange`,e),document.removeEventListener(`webkitfullscreenchange`,e)}},[]);let ne=async()=>{var e;if(Tt()){var t;let e=(t=document.exitFullscreen)==null?document.webkitExitFullscreen:t;await(e==null?void 0:e.call(document));return}let n=document.documentElement,r=(e=n.requestFullscreen)==null?n.webkitRequestFullscreen:e;await(r==null?void 0:r.call(n))},N=Et(u),re=k.length===0?`missing`:C?`error`:g===A?`ready`:`loading`,P=(c={degraded:`实时数据暂不可用,正在显示最近数据快照`,live:`实时数据网络运行中`,loading:`正在连接数据网络`,preview:`正在显示默认预览数据,实时数据连接中`}[t])==null?`实时数据网络运行中`:c;return(0,L.jsxs)(`header`,{className:`dashboard-header`,children:[(0,L.jsx)(`div`,{className:`header-network-state is-${t}`,"aria-label":P,role:`status`,children:(0,L.jsx)(`span`,{className:`header-network-dot`,"aria-hidden":`true`})}),(0,L.jsxs)(`div`,{className:`dashboard-title`,children:[(0,L.jsxs)(`span`,{"aria-label":`${e||`企业`}品牌标识`,className:`dashboard-logo is-${re}`,role:`img`,children:[(0,L.jsx)(`span`,{className:`dashboard-logo-placeholder`,"aria-hidden":`true`,children:Dt(e)}),A&&re!==`error`&&(0,L.jsx)(`img`,{className:`dashboard-logo-image`,src:A,alt:``,decoding:`async`,fetchPriority:`high`,ref:T,onLoad:te,onError:M},j)]}),(0,L.jsxs)(`div`,{className:`dashboard-title-copy`,children:[(0,L.jsxs)(`span`,{className:`dashboard-title-kicker`,children:[(0,L.jsx)(`i`,{"aria-hidden":`true`}),e||`INBOUND MARKETING INTELLIGENCE`]}),(0,L.jsx)(`h1`,{children:a})]})]}),(0,L.jsxs)(`div`,{className:`header-meta`,children:[(0,L.jsxs)(`time`,{dateTime:u.toISOString(),"aria-label":`${N.date} ${N.time}`,children:[(0,L.jsxs)(`span`,{className:`header-date`,children:[(0,L.jsx)(`small`,{children:`DATE`}),(0,L.jsx)(`b`,{children:N.date})]}),(0,L.jsxs)(`span`,{className:`header-time`,children:[(0,L.jsx)(`small`,{children:`LOCAL TIME`}),(0,L.jsx)(`b`,{children:N.time})]})]}),!n&&(0,L.jsx)(`div`,{className:`header-controls`,children:(0,L.jsx)(`button`,{type:`button`,className:`fullscreen-button`,onClick:ne,"aria-label":f?`退出全屏`:`进入全屏`,title:f?`退出全屏`:`进入全屏`,children:f?(0,L.jsx)(_,{"aria-hidden":`true`,strokeWidth:1.8}):(0,L.jsx)(l,{"aria-hidden":`true`,strokeWidth:1.8})})})]})]})}var At=2048,jt;function Mt(e=``){let t=String(e).match(/(?:Chrome|Chromium)\/(\d+)/);return t?Number(t[1]):null}function Nt(e,t=``){let n=Mt(t);return!(e!=null&&e.supported)||!n||n>=80?e:{...e,mode:`reduced`,reason:e.reason===`supported`?`legacy-chromium`:e.reason,textureWidth:Math.min(e.textureWidth,1024),chromiumMajorVersion:n}}function Pt(e=()=>document.createElement(`canvas`)){let t,n=!1,r=t=>{let r=e(),i=[`webgl`,`experimental-webgl`];for(let e=0;e=2048||s===0?At:s>=1024?1024:s>=512?512:0;return c?(c<2048&&(e=`reduced`,i=i===`software-webgl`?`software-webgl-limited-texture`:`limited-texture`),{supported:!0,mode:e,reason:i,contextName:o,maxTextureSize:s,textureWidth:c}):{supported:!1,reason:`texture-size`,maxTextureSize:s}}catch{return{supported:!1,reason:`webgl-error`}}finally{let e=t&&t.context;try{let t=e&&e.getExtension?e.getExtension(`WEBGL_lose_context`):null;t&&t.loseContext&&t.loseContext()}catch{}}}function Ft(){return jt||(jt=Nt(typeof document>`u`?{supported:!1,reason:`document-unavailable`}:Pt(),typeof navigator>`u`?``:navigator.userAgent)),jt}var It=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),Lt=function(e){return`/visual-editor-new/dist/big-data-dashboard/embed/`+e},Rt={},zt=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute(`nonce`));function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Lt(t,n),t in Rt)return;Rt[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="../../../../../../${t}/index.html"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:It,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Bt;function Vt(){let e=Ft();return e.supported?(Bt||(Bt=zt(()=>import(`./EChartsGlobe-BBaCoikd.js`),[])),Bt):Promise.reject(Error(`ECharts globe is unavailable: ${e.reason}`))}function Ht({isCompatibility:e=!1,isRevealing:t=!1,sourceCount:n=0,viewportHeight:r}){let i=e?`兼容地球视图运行中`:`正在同步全球访问数据`;return(0,L.jsx)(`div`,{"aria-label":e?`当前浏览器使用兼容地球视图,访问数据仍正常同步`:i,className:`globe-data-placeholder${t?` is-revealing`:``}${e?` is-compatibility`:``}`,role:`status`,style:Number.isFinite(r)?{"--globe-legacy-square-size":`${Math.max(1,r)}px`}:void 0,children:(0,L.jsxs)(`span`,{className:`globe-data-placeholder-system`,children:[(0,L.jsx)(`span`,{className:`globe-data-placeholder-orbit`,"aria-hidden":`true`,children:(0,L.jsxs)(`svg`,{className:`globe-placeholder-svg`,viewBox:`0 0 240 240`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,L.jsx)(`circle`,{className:`globe-placeholder-halo`,cx:`120`,cy:`120`,r:`88`}),(0,L.jsxs)(`g`,{className:`globe-placeholder-grid`,children:[(0,L.jsx)(`circle`,{cx:`120`,cy:`120`,r:`78`}),(0,L.jsx)(`ellipse`,{cx:`120`,cy:`120`,rx:`78`,ry:`25`}),(0,L.jsx)(`ellipse`,{cx:`120`,cy:`120`,rx:`78`,ry:`52`}),(0,L.jsx)(`ellipse`,{cx:`120`,cy:`120`,rx:`25`,ry:`78`}),(0,L.jsx)(`ellipse`,{cx:`120`,cy:`120`,rx:`52`,ry:`78`})]}),(0,L.jsx)(`path`,{className:`globe-placeholder-scan`,d:`M120 120 L120 42 A78 78 0 0 1 186 79 Z`}),(0,L.jsxs)(`g`,{className:`globe-placeholder-orbit-ring is-outer`,children:[(0,L.jsx)(`ellipse`,{cx:`120`,cy:`120`,rx:`108`,ry:`42`,transform:`rotate(-17 120 120)`}),(0,L.jsx)(`circle`,{cx:`222`,cy:`88`,r:`3.4`})]}),(0,L.jsxs)(`g`,{className:`globe-placeholder-orbit-ring is-inner`,children:[(0,L.jsx)(`ellipse`,{cx:`120`,cy:`120`,rx:`91`,ry:`31`,transform:`rotate(27 120 120)`}),(0,L.jsx)(`circle`,{cx:`42`,cy:`89`,r:`2.8`})]}),(0,L.jsxs)(`g`,{className:`globe-placeholder-nodes`,children:[(0,L.jsx)(`circle`,{cx:`151`,cy:`65`,r:`3.2`}),(0,L.jsx)(`circle`,{cx:`77`,cy:`136`,r:`2.8`}),(0,L.jsx)(`circle`,{cx:`160`,cy:`158`,r:`3`}),(0,L.jsx)(`circle`,{cx:`115`,cy:`105`,r:`2.2`})]})]})}),(0,L.jsxs)(`span`,{className:`globe-data-placeholder-copy`,children:[(0,L.jsx)(`small`,{children:e?`LIGHTWEIGHT GLOBAL VIEW`:`GLOBAL VISITOR DATA SYNC`}),(0,L.jsxs)(`strong`,{children:[(0,L.jsx)(`i`,{"aria-hidden":`true`}),i]}),e&&(0,L.jsx)(`em`,{children:n>0?`${n} VISITOR NODES · DATA LINK ACTIVE`:`WEBGL FALLBACK · DATA LINK ACTIVE`})]}),(0,L.jsxs)(`span`,{className:`globe-data-placeholder-channel`,"aria-hidden":`true`,children:[(0,L.jsx)(`i`,{}),(0,L.jsx)(`i`,{}),(0,L.jsx)(`i`,{})]})]})})}var Ut=class extends I.Component{constructor(e){super(e),this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(){this.props.onUnsupported()}render(){return this.state.failed?null:this.props.children}};function Wt({isLoading:e,sourceData:t=[],...n}){let[r,i]=(0,I.useState)(`waiting`),[a,o]=(0,I.useState)(null),s=Ft(),[c,l]=(0,I.useState)(()=>!s.supported);return(0,I.useEffect)(()=>{if(e||c||a)return;let t=!1;return Vt().then(e=>{t||o(()=>e.default)}).catch(()=>{t||l(!0)}),()=>{t=!0}},[a,c,e]),(0,I.useEffect)(()=>{e&&i(`waiting`)},[e]),(0,I.useEffect)(()=>{if(r!==`revealing`)return;let e=window.setTimeout(()=>{i(`ready`)},800);return()=>window.clearTimeout(e)},[r]),(0,L.jsxs)(L.Fragment,{children:[(c||e||r!==`ready`)&&(0,L.jsx)(Ht,{isCompatibility:c,isRevealing:!c&&!e&&r===`revealing`,sourceCount:t.length,viewportHeight:n.viewportHeight}),!e&&!c&&a&&(0,L.jsx)(Ut,{onUnsupported:()=>l(!0),children:(0,L.jsx)(a,{...n,dataReady:!0,globeRuntimeSupport:s,onUnsupported:()=>l(!0),onReady:()=>i(e=>e===`waiting`?`revealing`:e),showLoadingIndicator:!1,sourceData:t})})]})}var Gt=760,Kt=1e3/30,R=new Map,z;function qt(e){z=void 0,R.forEach((t,n)=>{t(e)||R.delete(n)}),R.size>0&&(z=window.requestAnimationFrame(qt))}function Jt(e,t){R.set(e,t),z===void 0&&(z=window.requestAnimationFrame(qt))}function Yt(e){R.delete(e),R.size===0&&z!==void 0&&(window.cancelAnimationFrame(z),z=void 0)}var B=(0,I.memo)(function({value:e,formatter:t,className:n=``,title:r}){let i=Number(e)||0,a=(0,I.useRef)({}),o=(0,I.useRef)(null),s=(0,I.useRef)(null),c=(0,I.useRef)(null),l=(0,I.useRef)(i),u=(0,I.useRef)(),d=(0,I.useRef)(t(i));(0,I.useEffect)(()=>{let e=a.current,n=o.current,r=s.current,d=c.current,f=l.current;if(!n||!r||!d)return;let p=e=>{var i,a;let o=t(e),s=String((i=o.amount)==null?``:i),c=String((a=o.unit)==null?``:a);r.textContent!==s&&(r.textContent=s),d.textContent!==c&&(d.textContent=c),d.hidden=c.length===0,n.setAttribute(`aria-label`,`${s}${c}`),l.current=e};if(Yt(e),window.clearTimeout(u.current),Object.is(f,i)){p(i),n.classList.remove(`is-changing`);return}if(window.matchMedia(`(prefers-reduced-motion: reduce)`).matches){p(i),n.classList.remove(`is-changing`);return}let m=performance.now(),h=-1/0;return n.classList.add(`is-changing`),Jt(e,e=>{let t=Math.min((e-m)/Gt,1);if(t>=1||e-h>=Kt){let n=1-(1-t)**3,r=f+(i-f)*n;p(t>=1?i:r),h=e}return t<1?!0:(u.current=window.setTimeout(()=>{var e;(e=o.current)==null||e.classList.remove(`is-changing`)},80),!1)}),()=>{Yt(e),window.clearTimeout(u.current)}},[t,i]);let f=d.current;return(0,L.jsxs)(`span`,{className:`animated-number ${n}`,"aria-label":`${f.amount}${f.unit}`,"aria-live":`off`,ref:o,role:`status`,title:r,children:[(0,L.jsx)(`strong`,{ref:s,children:f.amount}),(0,L.jsx)(`span`,{hidden:!f.unit,ref:c,children:f.unit})]})}),Xt=new Intl.NumberFormat(`zh-CN`,{minimumFractionDigits:0,maximumFractionDigits:2}),Zt=new Intl.NumberFormat(`zh-CN`,{maximumFractionDigits:0}),Qt=new Intl.NumberFormat(`zh-CN`,{maximumFractionDigits:2,minimumFractionDigits:0,useGrouping:!1});function V(e){let t=Number(e);return Number.isFinite(t)?Math.abs(t)<.005?0:t:0}function H(e){return Xt.format(V(e))}function U(e){let t=V(e),n=Math.abs(t);return n>=1e8?{amount:H(t/1e8),unit:`亿`}:n>=1e4?{amount:H(t/1e4),unit:`万`}:{amount:Zt.format(t),unit:``}}function $t(e){let t=V(e),n=Math.abs(t);if(n>=0x56bc75e2d63100000){let e=Math.floor(Math.log10(n));return{amount:Qt.format(t/10**e),unit:`E${e}`}}return n>=0x2386f26fc10000?{amount:Qt.format(t/0x2386f26fc10000),unit:`京`}:n>=0xe8d4a51000?{amount:Qt.format(t/0xe8d4a51000),unit:`万亿`}:U(t)}function en(e){let t=V(e);return Math.abs(t)>=1e4?{amount:H(t/1e4),unit:`万`}:{amount:Zt.format(t),unit:``}}function W(e){return{amount:Zt.format(V(e)),unit:``}}var tn=new Intl.NumberFormat(`zh-CN`,{minimumFractionDigits:0,maximumFractionDigits:2});function nn(e){return{amount:tn.format(V(e)),unit:`%`}}var rn=[{key:`total_pv`,configKey:`total_pv`,fallbackName:`访客总量`},{key:`total_exposure`,configKey:`total_exposure`,fallbackName:`全网曝光总量`},{key:`today_pv`,configKey:`today_pv`,fallbackName:`今日访问量`},{key:`yesterday_pv`,configKey:`yesterday_pv`,fallbackName:`昨日访问量`},{key:`month_pv`,configKey:`month_pv`,fallbackName:`本月访问量`},{key:`last_month_pv`,configKey:`last_month_pv`,fallbackName:`上月访问量`},{key:`interact_count`,configKey:`interact`,fallbackName:`交互统计`}],an={interact_count:le,last_month_pv:ne,month_pv:ne,today_pv:P,total_exposure:c,total_pv:Se,yesterday_pv:P};function on(e){var t;let n=e.find(e=>e.key===`total_exposure`),r=new Map([...e.map(e=>[e.key,e.name]),...((t=n==null?void 0:n.children)==null?[]:t).map(e=>[e.key,e.name])]);return rn.map(e=>{var t;return{key:e.key,name:(t=r.get(e.configKey))==null?e.fallbackName:t}})}var sn=(0,I.memo)(function({modules:e,data:t,isLoading:n=!1}){let[r,i]=(0,I.useState)(!1),a=n?[]:on(e).map(e=>({...e,value:Number(t[e.key])||0})).filter(e=>e.value!==0),o=a.length>0;if((0,I.useEffect)(()=>{if(!o||r)return;let e,t;return e=window.requestAnimationFrame(()=>{t=window.requestAnimationFrame(()=>{i(!0)})}),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(t)}},[o,r]),!o)return null;let s=(a.length-1)/2;return(0,L.jsx)(`section`,{className:`overview-metrics is-data-revealed${r?` is-reveal-active`:``}${a.length>4?` is-dense`:``}`,style:{"--overview-column-count":a.length},"aria-label":`实时访问指标`,"aria-live":`polite`,children:a.map((e,t)=>{let n=an[e.key]||le;return(0,L.jsxs)(`div`,{className:`overview-metric`,style:{"--overview-enter-distance":Math.abs(t-s)},children:[(0,L.jsxs)(`span`,{className:`overview-metric-primary`,children:[(0,L.jsx)(n,{className:`overview-metric-icon`,"aria-hidden":`true`,strokeWidth:1.6}),(0,L.jsx)(B,{className:`overview-metric-value`,value:e.value,formatter:U})]}),(0,L.jsx)(`span`,{className:`overview-metric-label`,children:e.name})]},e.key)})})});function cn({onChange:e,options:t,title:n,value:r}){return(0,L.jsxs)(`label`,{className:`dashboard-sort-control`,title:`选择排序方式`,children:[(0,L.jsx)(_e,{className:`dashboard-sort-leading-icon`,"aria-hidden":`true`}),(0,L.jsx)(`select`,{"aria-label":`${n}排序方式`,value:r,onChange:t=>e(t.target.value),children:t.map(e=>(0,L.jsx)(`option`,{value:e.value,children:e.label},e.value))}),(0,L.jsx)(j,{className:`dashboard-sort-chevron`,"aria-hidden":`true`})]})}function G({badge:e,className:t=``,icon:n,id:r,onSortChange:i,sortOptions:a=[],sortValue:o,title:s}){let c=a.length>0&&i,l=c||e!==void 0;return(0,L.jsxs)(`header`,{className:`dashboard-panel-header${t?` ${t}`:``}`,children:[(0,L.jsxs)(`h2`,{className:`dashboard-panel-heading`,id:r,children:[n&&(0,L.jsx)(`span`,{className:`dashboard-panel-title-icon`,"aria-hidden":`true`,children:(0,L.jsx)(n,{strokeWidth:1.8})}),(0,L.jsx)(`span`,{children:s})]}),l&&(0,L.jsxs)(`div`,{className:`dashboard-panel-actions`,children:[e!==void 0&&(0,L.jsx)(`span`,{className:`dashboard-panel-badge`,children:e}),c&&(0,L.jsx)(cn,{onChange:i,options:a,title:s,value:o})]})]})}function ln(e){return e.endsWith(`_performance`)?nn:$t}function un(e){return e>100?{icon:ee,label:`环比上升`,tone:`up`}:e<100?{icon:Fe,label:`环比下降`,tone:`down`}:{icon:Me,label:`环比持平`,tone:`steady`}}function dn(e){if(e.key===`sales_performance`){let t=un(e.value);return{icon:t.icon,tone:t.tone,title:t.label}}if(e.key===`order_performance`){let t=un(e.value);return{icon:E,tone:t.tone,title:t.label}}let t={monthly_sales:{icon:Ee,tone:`sales`,title:`本月销售数据`},last_months_sales:{icon:he,tone:`previous`,title:`上月销售数据`},monthly_order:{icon:Pe,tone:`orders`,title:`本月订单数据`},last_months_order:{icon:w,tone:`previous`,title:`上月订单数据`},total_sales:{icon:Ce,tone:`total`,title:`累计销售数据`},total_order:{icon:i,tone:`total`,title:`累计订单数据`}};return t[e.key]?t[e.key]:{icon:Oe,tone:`sales`,title:e.name}}var fn=(0,I.memo)(function({config:e,data:t,isLoading:n=!1}){if(!e.status)return null;if(n)return(0,L.jsxs)(`section`,{className:`dashboard-panel business-advisor-panel is-loading`,"aria-busy":`true`,"aria-labelledby":`business-advisor-title`,children:[(0,L.jsx)(G,{id:`business-advisor-title`,icon:Oe,title:e.name}),(0,L.jsxs)(`div`,{className:`business-advisor-loading`,role:`status`,"aria-live":`polite`,children:[(0,L.jsx)(`span`,{className:`business-advisor-loading-indicator`,"aria-hidden":`true`,children:(0,L.jsx)(a,{strokeWidth:1.7})}),(0,L.jsxs)(`span`,{className:`business-advisor-loading-copy`,children:[(0,L.jsx)(`strong`,{children:`经营数据加载中`}),(0,L.jsx)(`small`,{children:`WAITING FOR BUSINESS DATA`})]})]})]});let r=e.children.filter(e=>e.status).map(e=>{let n=Number(t==null?void 0:t[e.key]),r=Number.isFinite(n)&&n!==0;return{...e,formatter:ln(e.key),value:r?n:0}}).filter(e=>e.value!==0);if(r.length===0)return null;let i=Math.min(r.length,4),o=Math.ceil(r.length/4);return(0,L.jsxs)(`section`,{className:`dashboard-panel business-advisor-panel is-${i}-columns${o===1?` is-single-row`:` is-multi-row`}`,"aria-labelledby":`business-advisor-title`,children:[(0,L.jsx)(G,{id:`business-advisor-title`,icon:Oe,title:e.name}),(0,L.jsx)(`div`,{className:`business-advisor-metrics`,style:{"--business-advisor-columns":i,"--business-advisor-rows":o},children:r.map((e,t)=>{let n=dn(e),r=n.icon,i=e.key.endsWith(`_performance`)?`${H(e.value)}%`:H(e.value);return(0,L.jsxs)(`div`,{className:`business-advisor-metric is-${n.tone}`,style:{"--business-advisor-enter-index":t},title:n.title,children:[(0,L.jsx)(`span`,{className:`business-advisor-icon-slot`,"aria-hidden":`true`,children:(0,L.jsx)(r,{strokeWidth:1.65})}),(0,L.jsxs)(`span`,{className:`business-advisor-copy`,children:[(0,L.jsx)(B,{className:`business-advisor-value`,formatter:e.formatter,title:`${e.name}:${i}`,value:e.value}),(0,L.jsx)(`span`,{className:`business-advisor-label`,children:e.name})]})]},e.key)})})]})}),pn={space:{usedKey:`use_interspace`,totalKey:`total_interspace`,unitLabel:`M`,color:`#63d5eb`,eyebrow:`CLOUD STORAGE`,icon:p},flow:{usedKey:`use_flow`,totalKey:`total_flow`,unitLabel:`GB`,color:`#65d8b3`,eyebrow:`DATA TRAFFIC`,icon:s},power:{usedKey:`use_power`,totalKey:`total_power`,unitLabel:`tokens`,color:`#b291e9`,eyebrow:`AI COMPUTE`,icon:D}},mn=Array.from({length:7},(e,t)=>{let n=Math.PI-Math.PI*t/6;return{x1:60+Math.cos(n)*42,y1:62-Math.sin(n)*42,x2:60+Math.cos(n)*47,y2:62-Math.sin(n)*47}});function hn(e){let t=Number(e)||0;return Math.abs(t)<1e4?{amount:H(t),unit:``}:$t(t)}function gn(e){let t=hn(e),n=`${t.amount}${t.unit}`.length;return n>=8?` is-extra-long-value`:n>=6?` is-long-value`:``}function _n(e){let t=Math.PI-Math.PI*e/100;return{x:60+Math.cos(t)*48,y:62-Math.sin(t)*48}}function vn(){return(0,L.jsxs)(`div`,{className:`cloud-resources-loading`,role:`status`,"aria-label":`云计算资源加载中`,children:[(0,L.jsxs)(`span`,{className:`cloud-resources-loading-orbit`,"aria-hidden":`true`,children:[(0,L.jsx)(r,{strokeWidth:1.45}),(0,L.jsx)(`i`,{}),(0,L.jsx)(`i`,{}),(0,L.jsx)(`i`,{})]}),(0,L.jsxs)(`span`,{className:`cloud-resources-loading-copy`,children:[(0,L.jsx)(`strong`,{children:`正在同步云资源状态`}),(0,L.jsxs)(`small`,{children:[(0,L.jsx)(`i`,{"aria-hidden":`true`}),` RESOURCE TELEMETRY CONNECTING`]})]})]})}var yn=(0,I.memo)(function({config:e,data:t,isLoading:n=!1}){let i=(0,I.useMemo)(()=>e.children.filter(e=>e.status&&pn[e.key]).map(e=>{let n=pn[e.key],r=Math.max(0,Number(t[n.usedKey])||0),i=Math.max(0,Number(t[n.totalKey])||0),a=i>0?r/i*100:0,o=a>100;return{...e,...n,color:o?`#ff858a`:n.color,isOverQuota:o,progress:Math.min(100,a),total:i,used:r,utilization:a}}).filter(e=>e.used>0),[e.children,t]);return!e.status||!n&&i.length===0?null:(0,L.jsxs)(`section`,{className:`dashboard-panel cloud-resources-panel${n?` is-loading`:``}`,"aria-busy":n||void 0,"aria-labelledby":`cloud-resources-title`,children:[(0,L.jsx)(G,{badge:n?`SYNCING`:`${i.length} ACTIVE`,id:`cloud-resources-title`,icon:r,title:e.name}),n?(0,L.jsx)(vn,{}):(0,L.jsx)(`div`,{className:`cloud-resources-grid`,style:{"--cloud-resource-columns":i.length},children:i.map((e,t)=>{let n=e.icon,r=_n(e.progress),i=$t(e.total);return(0,L.jsxs)(`article`,{className:`cloud-resource-item${e.isOverQuota?` is-over-quota`:``}`,style:{"--cloud-resource-accent":e.color,"--cloud-resource-index":t},children:[(0,L.jsxs)(`header`,{className:`cloud-resource-meta`,children:[(0,L.jsx)(`span`,{"aria-hidden":`true`,children:(0,L.jsx)(n,{strokeWidth:1.6})}),(0,L.jsx)(`small`,{children:e.eyebrow}),(0,L.jsx)(`i`,{children:e.isOverQuota?`OVER LIMIT`:`ONLINE`})]}),(0,L.jsxs)(`div`,{className:`cloud-resource-gauge`,"aria-label":`${e.name} 已使用 ${H(e.used)},配额 ${H(e.total)}`,role:`img`,children:[(0,L.jsxs)(`svg`,{viewBox:`0 0 120 74`,"aria-hidden":`true`,children:[(0,L.jsx)(`g`,{className:`cloud-resource-ticks`,children:mn.map((e,t)=>(0,L.jsx)(`line`,{...e},`cloud-tick-${t}`))}),(0,L.jsx)(`path`,{className:`cloud-resource-track`,d:`M 12 62 A 48 48 0 0 1 108 62`,pathLength:`100`}),(0,L.jsx)(`path`,{className:`cloud-resource-progress`,d:`M 12 62 A 48 48 0 0 1 108 62`,pathLength:`100`,style:{strokeDasharray:`${e.progress} 100`}}),(0,L.jsx)(`circle`,{className:`cloud-resource-endpoint`,cx:r.x,cy:r.y,r:`2.5`})]}),(0,L.jsx)(B,{className:`cloud-resource-value${gn(e.used)}`,value:e.used,formatter:hn}),(0,L.jsxs)(`span`,{className:`cloud-resource-rate`,children:[e.isOverQuota?`已超额 `:`使用率 `,H(e.utilization),`%`]})]}),(0,L.jsx)(`strong`,{className:`cloud-resource-label`,children:e.name}),(0,L.jsxs)(`span`,{className:`cloud-resource-quota`,title:`配额 ${H(e.total)} ${e.unitLabel}`,children:[(0,L.jsx)(`span`,{children:`配额`}),(0,L.jsxs)(`strong`,{children:[i.amount,i.unit]}),(0,L.jsx)(`small`,{children:e.unitLabel})]})]},e.key)})})]})});function K(e){let t=(0,I.useRef)(null),[n,r]=(0,I.useState)(!1);return(0,I.useEffect)(()=>{let n=t.current;if(!e||!n){r(!1);return}let i=!document.hidden,a=!(`IntersectionObserver`in window),o=()=>{let e=i&&a;r(t=>t===e?t:e)},s=()=>{i=!document.hidden,o()},c=`IntersectionObserver`in window?new IntersectionObserver(([e])=>{a=e.isIntersecting,o()},{rootMargin:`80px 0px`,threshold:.01}):null;return c==null||c.observe(n),document.addEventListener(`visibilitychange`,s),o(),()=>{c==null||c.disconnect(),document.removeEventListener(`visibilitychange`,s)}},[e]),[t,n]}function bn({enabled:e,interval:t,pageCount:n,resetKey:r}){let i=Math.max(1,n),a=!!(e&&i>1),[o,s]=(0,I.useState)(0),[c,l]=(0,I.useState)(!1),[u,d]=K(a);return(0,I.useEffect)(()=>{s(0)},[r,i]),(0,I.useEffect)(()=>{if(!a||!d||c)return;let e=window.setInterval(()=>{s(e=>(e+1)%i)},t);return()=>window.clearInterval(e)},[t,d,c,i,a]),{containerRef:u,isAutoScrollActive:d,setIsInteractionPaused:l,shouldRotate:a,visiblePageIndex:o%i}}Be([Re,Ve,ze]);var xn=10,Sn=2,Cn=17,wn=4600,Tn=26,En={article:`#65d7ef`,video:`#f0bd67`,image_text:`#8a9ff2`,file:`#b78be6`,notice:`#ff8d92`,activity:`#5bd4aa`,case:`#5aa9e8`,question:`#6fc8ff`,encylo:`#56b894`,invite:`#ef9b68`,media:`#8fc7d8`,placard:`#ee7fba`,album:`#8395c9`,ai_contribute:`#8e7fe3`,feed:`#64c3bd`,product:`#f1a45d`,goods:`#d7c66b`},Dn=[`#65d7ef`,`#7faff0`,`#5bd4aa`,`#f0bd67`,`#b78be6`,`#ff8d92`],On=[{label:`数量 ↓`,value:`value-desc`},{label:`数量 ↑`,value:`value-asc`},{label:`配置顺序`,value:`config`}];function kn(e){return e>0&&e<.01?`<0.01%`:`${H(e)}%`}function An(e,t=Tn){let n=Number(e),r=Number(t);return!Number.isFinite(n)||n<=0||!Number.isFinite(r)||r<=0?xn:Math.max(Sn,Math.min(Cn,Math.floor(n/r)))}function jn(e,t=xn){if(e.length===0)return[{items:[],startIndex:0}];let n=Number(t),r=Number.isFinite(n)?Math.max(Sn,Math.floor(n)):xn,i=[],a=0;for(;ae.children.filter(e=>e.status).map((e,n)=>{var r;let i=Math.max(0,Number(t[lt(e.key)])||0);return{...e,color:(r=En[e.key])==null?Dn[n%Dn.length]:r,value:i}}).filter(e=>e.value>0).sort((e,t)=>{var n,r;return a===`value-asc`?e.value-t.value:a===`config`?((n=e.sort)==null?0:n)-((r=t.sort)==null?0:r):t.value-e.value}),[e.children,t,a]),f=d.reduce((e,t)=>e+t.value,0),p=Math.max(...d.map(e=>e.value),1),m=(0,I.useMemo)(()=>jn(d,l),[d,l]),h=m.length,g=e.status&&!n&&d.length>0,{containerRef:_,isAutoScrollActive:v,setIsInteractionPaused:y,shouldRotate:b,visiblePageIndex:x}=bn({enabled:g,interval:wn,pageCount:h,resetKey:`${a}:${l}`}),S=m[x],C=S.items,w=d.length<=5,T=33+C.length*Tn,E=(0,I.useMemo)(()=>d.map(e=>({name:e.name,value:e.value,itemStyle:{color:e.color}})),[d]);return(0,I.useEffect)(()=>{if(!g)return;let e=_.current;if(!e)return;let t=()=>{let t=window.getComputedStyle(e),n=(Number.parseFloat(t.paddingTop)||0)+(Number.parseFloat(t.paddingBottom)||0),r=e.querySelector(`.content-share-item`),i=(r==null?void 0:r.offsetHeight)||Number.parseFloat(r?window.getComputedStyle(r).minHeight:``)||Tn,a=An(e.clientHeight-n,i);u(e=>e===a?e:a)},n=new ResizeObserver(t);return n.observe(e),t(),()=>n.disconnect()},[g,_]),(0,I.useEffect)(()=>{if(!g)return;let e=r.current;if(!e)return;let t=Le(e,null,{renderer:`canvas`}),n=new ResizeObserver(()=>t.resize());return i.current=t,n.observe(e),()=>{n.disconnect(),i.current=null,t.dispose()}},[g]),(0,I.useEffect)(()=>{let t=i.current;if(!t)return;let n=f>0,r=n?E:[{name:`暂无数据`,value:1,itemStyle:{color:`rgba(86, 159, 194, 0.16)`}}];t.setOption({animationDuration:800,animationDurationUpdate:720,animationEasing:`cubicOut`,animationEasingUpdate:`cubicInOut`,tooltip:{show:n,trigger:`item`,renderMode:`html`,className:`content-share-chart-tooltip`,confine:!0,appendToBody:!1,borderWidth:1,borderColor:`#347b94`,backgroundColor:`#06172a`,padding:[7,9],extraCssText:`background-color:#06172a !important;opacity:1 !important;box-shadow:0 8px 24px rgba(0,0,0,0.45);backdrop-filter:none;`,textStyle:{color:`#dff6ff`,fontSize:15},formatter:e=>`${e.marker}${e.name} ${H(e.value)} · ${kn(e.percent)}`},series:[{id:`content-share-track`,type:`pie`,center:[`50%`,`50%`],radius:[`59%`,`83%`],animation:!1,silent:!0,z:0,label:{show:!1},labelLine:{show:!1},itemStyle:{color:`rgba(45, 112, 144, 0.11)`,borderColor:`rgba(78, 177, 210, 0.14)`,borderWidth:1},data:[{value:1}]},{id:`content-share`,name:e.name,type:`pie`,center:[`50%`,`50%`],radius:[`63%`,`80%`],startAngle:90,clockwise:!0,minAngle:2,minShowLabelAngle:1,padAngle:1.2,selectedMode:!1,silent:!n,z:2,label:{show:!1},labelLine:{show:!1},itemStyle:{borderRadius:2,shadowBlur:3,shadowColor:`rgba(42, 151, 186, 0.16)`},emphasis:{scale:!0,scaleSize:4,itemStyle:{shadowBlur:14,shadowColor:`rgba(92, 210, 246, 0.38)`}},data:r}]})},[E,e.name,f]),(0,I.useEffect)(()=>{let e=i.current;if(!e||!g)return;e.dispatchAction({type:`downplay`,seriesId:`content-share`});let t=d.findIndex(e=>e.key===s);t>=0?(e.dispatchAction({type:`highlight`,seriesId:`content-share`,dataIndex:t}),e.dispatchAction({type:`showTip`,seriesId:`content-share`,dataIndex:t})):e.dispatchAction({type:`hideTip`})},[s,g,d]),e.status?n?(0,L.jsxs)(`section`,{className:`dashboard-panel content-share-panel is-loading`,"aria-busy":`true`,"aria-labelledby":`content-share-title`,children:[(0,L.jsx)(G,{id:`content-share-title`,icon:xe,title:e.name}),(0,L.jsxs)(`div`,{className:`content-share-loading`,role:`status`,"aria-live":`polite`,children:[(0,L.jsxs)(`span`,{className:`content-share-loading-orbit`,"aria-hidden":`true`,children:[(0,L.jsx)(`i`,{}),(0,L.jsx)(`i`,{}),(0,L.jsx)(`i`,{})]}),(0,L.jsxs)(`span`,{className:`content-share-loading-copy`,children:[(0,L.jsx)(`strong`,{children:`内容数据加载中`}),(0,L.jsx)(`small`,{children:`WAITING FOR CONTENT DISTRIBUTION`})]})]})]}):d.length===0?null:(0,L.jsxs)(`section`,{className:`dashboard-panel content-share-panel${w?` is-sparse`:``}`,"aria-labelledby":`content-share-title`,style:{"--content-share-list-centered-height":`${T}px`},children:[(0,L.jsx)(G,{id:`content-share-title`,icon:xe,onSortChange:o,sortOptions:On,sortValue:a,title:e.name}),(0,L.jsxs)(`div`,{className:`content-share-body`,children:[(0,L.jsxs)(`div`,{className:`content-share-chart-shell`,children:[(0,L.jsx)(`div`,{className:`content-share-chart`,ref:r,role:`img`,"aria-label":`${e.name}环形图`}),(0,L.jsxs)(`div`,{className:`content-share-total`,children:[(0,L.jsx)(B,{className:`content-share-total-value`,value:f,formatter:W}),(0,L.jsx)(`span`,{className:`content-share-total-label`,children:`发布总量`}),(0,L.jsxs)(`small`,{children:[d.length,` ACTIVE TYPES`]})]})]}),(0,L.jsxs)(`div`,{className:`content-share-list-shell`,children:[(0,L.jsxs)(`div`,{className:`content-share-list-header`,"aria-hidden":`true`,children:[(0,L.jsx)(`span`,{children:`序`}),(0,L.jsxs)(`span`,{className:`content-share-list-heading`,children:[`类型`,(0,L.jsxs)(`small`,{children:[String(x+1).padStart(2,`0`),`/`,String(h).padStart(2,`0`)]})]}),(0,L.jsx)(`span`,{children:`数量`}),(0,L.jsx)(`span`,{children:`占比`})]}),(0,L.jsx)(`div`,{className:`content-share-list`,"data-scroll-active":v,ref:_,tabIndex:b?0:void 0,role:`list`,"aria-label":`内容类型明细`,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||y(!1)},onFocus:()=>y(!0),onMouseEnter:()=>y(!0),onMouseLeave:()=>{c(null),y(!1)},children:(0,L.jsx)(`div`,{className:`content-share-list-page`,children:C.map((e,t)=>{let n=f>0?e.value/f*100:0,r=S.startIndex+t+1;return(0,L.jsxs)(`div`,{className:`content-share-item${s===e.key?` is-active`:``}${r<=3?` is-leading`:``}`,role:`listitem`,style:{"--content-share-color":e.color,"--content-share-enter-index":t,"--content-share-progress":`${Math.max(2,e.value/p*100)}%`},title:`${e.name}:${H(e.value)},占比 ${kn(n)}`,onMouseEnter:()=>c(e.key),onMouseLeave:()=>c(null),children:[(0,L.jsxs)(`span`,{className:`content-share-rank`,"aria-hidden":`true`,children:[(0,L.jsx)(`i`,{}),(0,L.jsx)(`small`,{children:String(r).padStart(2,`0`)})]}),(0,L.jsx)(`span`,{className:`content-share-name`,children:e.name}),(0,L.jsx)(B,{className:`content-share-count`,value:e.value,formatter:W}),(0,L.jsx)(`span`,{className:`content-share-percentage`,children:kn(n)})]},e.key)})},`${a}-${x}`)})]})]})]}):null}),q=6,Nn=[{label:`数量 ↓`,value:`value-desc`},{label:`数量 ↑`,value:`value-asc`},{label:`配置顺序`,value:`config`}];function Pn(e){return(0,L.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,...e,children:(0,L.jsx)(`path`,{d:`M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z`})})}function Fn(e){return e<=0?`0%`:e<.1?`<0.1%`:e<10?`${e.toFixed(1)}%`:`${e.toFixed(0)}%`}var In={360:{color:`#20c45a`,company:`三六零`,displayName:`360搜索`,mark:`360`},baidu:{color:`#4f68ff`,company:`百度`,displayName:`百度`,icon:ve},google:{color:`#4285f4`,company:`Google`,displayName:`Google`,icon:be},sogou:{color:`#fb6022`,company:`腾讯`,displayName:`搜狗`,icon:M},bing:{color:`#20b4a5`,company:`Microsoft`,displayName:`Bing`,icon:N},toutiao:{color:`#f04b4c`,company:`字节跳动`,displayName:`今日头条`,icon:Te},shenma:{color:`#ff7a2f`,company:`阿里巴巴`,displayName:`神马搜索`,mark:`神`},yahoo:{color:`#a071ff`,company:`Yahoo`,displayName:`Yahoo`,icon:je},amazon:{color:`#ffad32`,company:`Amazon`,displayName:`Amazon`,icon:me},ahrefs:{color:`#ff6b45`,company:`Ahrefs`,displayName:`Ahrefs`,mark:`Ah`},apple:{color:`#c3d2dc`,company:`Apple`,displayName:`Applebot`,icon:ke},claude:{color:`#d97757`,company:`Anthropic`,displayName:`ClaudeBot`,icon:ue},gpt:{color:`#5bd6b2`,company:`OpenAI`,displayName:`GPTBot`,icon:Pn},chatgpt:{color:`#5bd6b2`,company:`OpenAI`,displayName:`ChatGPT-User`,icon:Pn},perplexity:{color:`#5cc7cd`,company:`Perplexity`,displayName:`PerplexityBot`,icon:De},facebook:{color:`#5c9cff`,company:`Meta`,displayName:`Facebook`,icon:A}};function Ln({items:e}){return(0,L.jsx)(`div`,{className:`crawler-data-group`,children:e.map((e,t)=>{let n=W(e.value),r=e.icon;return(0,L.jsxs)(`div`,{className:`crawler-data-item${e.value===0?` is-zero`:``}`,style:{"--crawler-accent":e.color,"--crawler-enter-index":t,"--crawler-progress":e.progress},role:`listitem`,title:`${e.displayName} · ${e.company}: ${n.amount}`,children:[(0,L.jsx)(`span`,{className:`crawler-data-source-icon${e.mark?` is-lettermark`:``}`,"aria-hidden":`true`,children:e.mark?(0,L.jsx)(`strong`,{children:e.mark}):(0,L.jsx)(r,{})}),(0,L.jsxs)(`span`,{className:`crawler-data-identity`,children:[(0,L.jsx)(`strong`,{className:`crawler-data-name`,children:e.displayName}),(0,L.jsx)(`small`,{children:e.company})]}),(0,L.jsxs)(`span`,{className:`crawler-data-stat`,children:[(0,L.jsx)(B,{className:`crawler-data-value`,value:e.value,formatter:W}),(0,L.jsxs)(`small`,{className:`crawler-data-share`,children:[`占比 `,e.shareLabel]})]})]},`crawler-${e.key}-${t}`)})})}function Rn(){return(0,L.jsxs)(`div`,{className:`crawler-data-loading`,role:`status`,"aria-live":`polite`,children:[(0,L.jsxs)(`span`,{className:`crawler-data-loading-node`,"aria-hidden":`true`,children:[(0,L.jsx)(`i`,{className:`is-outer`}),(0,L.jsx)(`i`,{className:`is-inner`}),(0,L.jsx)(F,{strokeWidth:1.65})]}),(0,L.jsxs)(`span`,{className:`crawler-data-loading-copy`,children:[(0,L.jsx)(`small`,{children:`CRAWLER INDEX CHANNEL`}),(0,L.jsx)(`strong`,{children:`正在同步索引来源数据`})]}),(0,L.jsxs)(`span`,{className:`crawler-data-loading-signal`,"aria-hidden":`true`,children:[(0,L.jsx)(`i`,{}),(0,L.jsx)(`i`,{}),(0,L.jsx)(`i`,{}),(0,L.jsx)(`i`,{})]})]})}var zn=(0,I.memo)(function({config:e,data:t={},isLoading:n=!1}){let[r,i]=(0,I.useState)(`value-desc`),{configuredSourceCount:a,items:o}=(0,I.useMemo)(()=>{let n=e.children.filter(e=>e.status).map(e=>{var n,r,i,a,o;let s=(n=In[e.key])==null?{}:n;return{...e,color:(r=s.color)==null?`#63d5eb`:r,company:(i=s.company)==null?e.name:i,displayName:(a=s.displayName)==null?e.name:a,icon:(o=s.icon)==null?F:o,mark:s.mark,value:Math.max(0,Number(t[e.key])||0)}}),i=n.filter(e=>e.value>0),a=Math.max(...i.map(e=>e.value),1),o=i.reduce((e,t)=>e+t.value,0);return{configuredSourceCount:n.length,items:i.sort((e,t)=>{var n,i;return r===`value-asc`?e.value-t.value:r===`config`?((n=e.sort)==null?0:n)-((i=t.sort)==null?0:i):t.value-e.value}).map(e=>({...e,progress:`${Math.max(2,e.value/a*100)}%`,shareLabel:Fn(o>0?e.value/o*100:0)}))}},[e.children,t,r]),s=o.length,c=Math.max(1,Math.ceil(Math.min(s,q)/2)),l=o.reduce((e,t)=>e+t.value,0),u=a>0?s/a*100:0,d=!n&&o.length>q,{containerRef:f,isAutoScrollActive:p,setIsInteractionPaused:m,visiblePageIndex:h}=bn({enabled:d,interval:4200,pageCount:Math.max(1,Math.ceil(o.length/q)),resetKey:r}),g=o.slice(h*q,(h+1)*q);return e.status?n?(0,L.jsxs)(`section`,{className:`dashboard-panel crawler-data-panel is-1-row is-loading`,"aria-busy":`true`,"aria-labelledby":`crawler-data-title`,"data-visible-rows":`1`,children:[(0,L.jsx)(G,{badge:`SYNCING`,id:`crawler-data-title`,icon:F,title:e.name}),(0,L.jsx)(Rn,{})]}):o.length===0?null:(0,L.jsxs)(`section`,{className:`dashboard-panel crawler-data-panel is-${c}-row${c>1?`s`:``}`,"aria-labelledby":`crawler-data-title`,"data-visible-rows":c,children:[(0,L.jsx)(G,{badge:`${s}/${a} ACTIVE`,id:`crawler-data-title`,icon:F,onSortChange:i,sortOptions:Nn,sortValue:r,title:e.name}),(0,L.jsxs)(`div`,{className:`crawler-data-summary`,"aria-label":`本月累计抓取 ${H(l)} 次,活跃来源 ${s} 个`,role:`group`,children:[(0,L.jsxs)(`span`,{className:`crawler-data-summary-heading`,children:[(0,L.jsx)(`i`,{"aria-hidden":`true`}),(0,L.jsxs)(`span`,{children:[(0,L.jsx)(`small`,{children:`MONTHLY BOT TRAFFIC`}),(0,L.jsx)(`strong`,{children:`本月累计抓取`})]})]}),(0,L.jsx)(B,{className:`crawler-data-summary-total`,value:l,formatter:U}),(0,L.jsxs)(`span`,{className:`crawler-data-coverage`,children:[(0,L.jsxs)(`span`,{children:[(0,L.jsx)(`strong`,{children:s}),(0,L.jsxs)(`small`,{children:[`/`,a]})]}),(0,L.jsxs)(`small`,{children:[`活跃来源 · `,u.toFixed(0),`%`]})]})]}),(0,L.jsx)(`div`,{className:`crawler-data-list`,"data-scroll-active":p,ref:f,tabIndex:d?0:void 0,role:`list`,"aria-label":`爬虫来源数据`,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||m(!1)},onFocus:()=>m(!0),onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:(0,L.jsx)(`div`,{className:`crawler-data-page`,children:(0,L.jsx)(Ln,{items:g})},`${r}-${h}`)})]}):null}),Bn={data_asset_original:`coral`,data_asset_output:`amber`,data_asset_surplus:`cyan`},Vn={data_asset_original:Ee,data_asset_output:ee,data_asset_surplus:ie},Hn=(0,I.memo)(function({config:e,data:t,isLoading:n=!1}){let r=e.children.filter(e=>e.status).map(e=>({...e,color:Bn[e.key]||`cyan`,icon:Vn[e.key]||p,value:Number(t[e.key])||0})).filter(e=>e.value!==0),i=Math.max(...r.map(e=>Math.abs(e.value)),1);return e.status?n?(0,L.jsxs)(`section`,{className:`dashboard-panel data-asset-panel is-loading`,"aria-busy":`true`,"aria-labelledby":`data-asset-title`,children:[(0,L.jsx)(G,{id:`data-asset-title`,icon:p,title:e.name}),(0,L.jsxs)(`div`,{className:`data-asset-loading`,role:`status`,"aria-live":`polite`,children:[(0,L.jsxs)(`span`,{className:`data-asset-loading-signal`,"aria-hidden":`true`,children:[(0,L.jsx)(`i`,{}),(0,L.jsx)(`i`,{}),(0,L.jsx)(`i`,{})]}),(0,L.jsxs)(`span`,{className:`data-asset-loading-copy`,children:[(0,L.jsx)(`strong`,{children:`资产数据加载中`}),(0,L.jsx)(`small`,{children:`CALCULATING ASSET VALUE`})]})]})]}):r.length===0?null:(0,L.jsxs)(`section`,{className:`dashboard-panel data-asset-panel`,"aria-labelledby":`data-asset-title`,children:[(0,L.jsx)(G,{id:`data-asset-title`,icon:p,title:e.name}),(0,L.jsx)(`div`,{className:`data-asset-metrics`,style:{"--asset-column-count":r.length},children:r.map(e=>{let t=e.icon,n=`${Math.max(3,Math.abs(e.value)/i*100)}%`;return(0,L.jsxs)(`div`,{className:`data-asset-metric is-${e.color}`,style:{"--metric-progress":n},children:[(0,L.jsx)(`div`,{className:`data-asset-meta`,"aria-hidden":`true`,children:(0,L.jsx)(`span`,{className:`data-asset-icon-shell`,children:(0,L.jsx)(t,{className:`data-asset-icon`,strokeWidth:1.65})})}),(0,L.jsx)(B,{className:`data-asset-value is-${e.color}`,value:e.value,formatter:en}),(0,L.jsx)(`div`,{className:`data-asset-label`,title:e.name,children:e.name}),(0,L.jsx)(`span`,{className:`dashboard-metric-progress is-${e.color}`,"aria-hidden":`true`})]},e.key)})})]}):null}),Un=new Intl.NumberFormat(`zh-CN`,{maximumFractionDigits:0}),Wn={gw_user:{color:`#63d5eb`,dataKey:`gw_merchant_count`,eyebrow:`INBOUND AUDIENCE`},register_user:{color:`#7baef0`,dataKey:`register_merchant_count`,eyebrow:`REGISTERED CONVERSION`},pay_user:{color:`#e6b765`,dataKey:`consumer_merchant_count`,eyebrow:`PAID CONVERSION`}},Gn=460,Kn=154,qn=4,J=124,Jn=198,Yn=J-qn-10,Xn=34,Zn=Gn-68,Qn=Gn-qn;function $n(e){if(e.length<=1)return[68];if(e.length===2)return[46,92];let t=92/(e.length-1);return e.map((e,n)=>25+t*n)}function er(){return(0,L.jsxs)(`div`,{className:`inbound-customers-loading`,role:`status`,"aria-label":`入站信息加载中`,children:[(0,L.jsxs)(`div`,{className:`inbound-customers-loading-signal`,"aria-hidden":`true`,children:[(0,L.jsx)(`span`,{}),(0,L.jsx)(`span`,{}),(0,L.jsx)(`span`,{}),(0,L.jsx)(`i`,{})]}),(0,L.jsxs)(`div`,{className:`inbound-customers-loading-copy`,children:[(0,L.jsx)(`strong`,{children:`正在同步入站数据`}),(0,L.jsx)(`span`,{children:`INBOUND DATA CONNECTING`})]}),(0,L.jsx)(`span`,{className:`inbound-customers-loading-track`,"aria-hidden":`true`,children:(0,L.jsx)(`i`,{})})]})}function tr({metrics:e}){let t=$n(e),n=e.map((e,n)=>`${J+Math.max(4,Jn*e.share/100)},${t[n]+10}`).join(` `);return(0,L.jsxs)(`figure`,{className:`inbound-customers-chart`,children:[(0,L.jsxs)(`figcaption`,{className:`inbound-customers-chart-caption`,children:[(0,L.jsxs)(`span`,{children:[(0,L.jsx)(`small`,{children:`INBOUND CONVERSION FUNNEL`}),(0,L.jsx)(`strong`,{children:`客户转化路径`})]}),(0,L.jsxs)(`span`,{className:`inbound-customers-chart-legend`,children:[(0,L.jsx)(`i`,{"aria-hidden":`true`}),` 基准值 100%`]})]}),(0,L.jsxs)(`svg`,{className:`inbound-customers-chart-svg`,viewBox:`0 0 ${Gn} ${Kn}`,preserveAspectRatio:`xMidYMid meet`,role:`img`,"aria-label":`入站客户转化图表`,children:[(0,L.jsx)(`title`,{children:`入站客户转化图表`}),(0,L.jsx)(`desc`,{children:`按照配置顺序展示网站客户、注册用户和付费用户相对于入站客户总量的转化比例。`}),(0,L.jsxs)(`defs`,{children:[(0,L.jsxs)(`filter`,{id:`inbound-bar-glow`,x:`-20%`,y:`-70%`,width:`140%`,height:`240%`,children:[(0,L.jsx)(`feGaussianBlur`,{stdDeviation:`2.4`,result:`blur`}),(0,L.jsxs)(`feMerge`,{children:[(0,L.jsx)(`feMergeNode`,{in:`blur`}),(0,L.jsx)(`feMergeNode`,{in:`SourceGraphic`})]})]}),e.map(e=>(0,L.jsxs)(`linearGradient`,{id:`inbound-gradient-${e.key}`,x1:`0`,x2:`1`,children:[(0,L.jsx)(`stop`,{offset:`0%`,stopColor:e.color,stopOpacity:`0.28`}),(0,L.jsx)(`stop`,{offset:`72%`,stopColor:e.color,stopOpacity:`0.78`}),(0,L.jsx)(`stop`,{offset:`100%`,stopColor:e.color})]},e.key))]}),(0,L.jsx)(`g`,{className:`inbound-customers-chart-grid`,"aria-hidden":`true`,children:[0,25,50,75,100].map(e=>{let t=J+Jn*e/100;return(0,L.jsxs)(`g`,{children:[(0,L.jsx)(`line`,{x1:t,y1:`16`,x2:t,y2:`144`}),(0,L.jsxs)(`text`,{x:t,y:`10`,textAnchor:e===0?`start`:e===100?`end`:`middle`,children:[e,`%`]})]},`inbound-tick-${e}`)})}),e.length>1&&(0,L.jsx)(`polyline`,{className:`inbound-customers-conversion-path`,points:n,"aria-hidden":`true`}),e.map((e,n)=>{let r=t[n],i=Math.max(4,Jn*e.share/100);return(0,L.jsxs)(`g`,{className:`inbound-customers-chart-row`,style:{"--inbound-row-index":n},children:[(0,L.jsx)(`foreignObject`,{x:qn,y:r-7,width:Yn,height:Xn,children:(0,L.jsx)(`div`,{className:`inbound-customers-chart-label`,title:e.name,xmlns:`http://www.w3.org/1999/xhtml`,children:(0,L.jsx)(`span`,{children:e.name})})}),(0,L.jsx)(`rect`,{className:`inbound-customers-chart-track`,x:J,y:r,width:Jn,height:`20`}),(0,L.jsx)(`rect`,{className:`inbound-customers-chart-bar`,x:J,y:r,width:i,height:`20`,fill:`url(#inbound-gradient-${e.key})`}),(0,L.jsx)(`line`,{className:`inbound-customers-chart-end-line`,x1:J+i,y1:r-3,x2:J+i,y2:r+23,style:{stroke:e.color}}),(0,L.jsx)(`circle`,{className:`inbound-customers-chart-endpoint`,cx:J+i,cy:r+10,r:`2.5`,style:{fill:e.color}}),(0,L.jsx)(`text`,{className:`inbound-customers-chart-value`,x:Zn,y:r+12,textAnchor:`end`,children:Un.format(e.value)}),(0,L.jsxs)(`text`,{className:`inbound-customers-chart-share`,x:Qn,y:r+12,textAnchor:`end`,style:{fill:e.color},children:[H(e.share),`%`]})]},e.key)})]})]})}var nr=(0,I.memo)(function({config:e,data:t,isLoading:n=!1}){let r=(0,I.useMemo)(()=>{var n,r;let i=e.children.filter(e=>e.status).map(e=>{var n,r,i,a;let o=(n=Wn[e.key])==null?{}:n,s=(r=o.dataKey)==null?e.key:r,c=Math.max(0,Number(t[s])||0);return{...e,color:(i=o.color)==null?`#63d5eb`:i,dataKey:s,eyebrow:(a=o.eyebrow)==null?`INBOUND CONVERSION`:a,value:c}}).filter(e=>e.value>0),a=(n=(r=i.find(e=>e.key===`gw_user`))==null?void 0:r.value)==null?0:n,o=Math.max(1,...i.map(e=>e.value)),s=Math.max(1,a||o);return i.map(e=>({...e,share:Math.min(100,e.value/s*100)}))},[e.children,t]);return!e.status||!n&&r.length===0?null:(0,L.jsxs)(`section`,{className:`dashboard-panel inbound-customers-panel${n?` is-loading`:``}`,"aria-busy":n||void 0,"aria-labelledby":`inbound-customers-title`,children:[(0,L.jsx)(G,{badge:n?`SYNCING`:`${r.length} STAGES`,id:`inbound-customers-title`,icon:ge,title:e.name}),n?(0,L.jsx)(er,{}):(0,L.jsx)(tr,{metrics:r})]})}),rr=4,ir={ai_interaction:{color:`#b98cff`,icon:F},click:{color:`#64cfe4`,icon:g},collection:{color:`#ecb967`,icon:re},form:{color:`#67d8bf`,icon:Ae},like:{color:`#ffbd66`,icon:te},link:{color:`#62cbea`,icon:we},mail:{color:`#79b8ff`,icon:x},phone:{color:`#67d8df`,icon:pe},qq:{color:`#6da5ff`,icon:y},qrcode:{color:`#62d4b1`,icon:v},share:{color:`#8aa8ff`,icon:o},share_wxaccount_copyname:{color:`#69c9c0`,icon:ye},share_wxaccount_showcode:{color:`#70d5ae`,icon:b},share_wxofficial_copyname:{color:`#7fc5e8`,icon:k},share_wxofficial_showcode:{color:`#5fd0a8`,icon:Ne},register_form:{color:`#73cce8`,icon:oe},shop_add_cart:{color:`#e9ad68`,icon:Pe},shop_add_order:{color:`#dda56f`,icon:i},shop_login:{color:`#e8aa62`,icon:Ie},shop_pay:{color:`#efbd69`,icon:O},site_subscribe:{color:`#e6c36c`,icon:ae}},ar=[`#62cbea`,`#67d8bf`,`#8aa8ff`,`#ffbd66`];function or(e){return e<=0?`0%`:e<.1?`<0.1%`:e<10?`${e.toFixed(1)}%`:`${e.toFixed(0)}%`}function sr({items:e}){return(0,L.jsx)(`div`,{className:`interaction-data-page`,"aria-label":`交互数据分类`,role:`list`,style:{"--interaction-column-count":Math.max(1,e.length)},children:e.map(e=>{let t=e.icon;return(0,L.jsxs)(`div`,{className:`interaction-data-item`,style:{"--interaction-accent":e.color,"--interaction-progress":e.progress},role:`listitem`,title:`${e.name}:${H(e.value)},占比 ${e.shareLabel}`,children:[(0,L.jsx)(`span`,{className:`interaction-data-icon`,"aria-hidden":`true`,children:(0,L.jsx)(t,{strokeWidth:1.8})}),(0,L.jsxs)(`span`,{className:`interaction-data-copy`,children:[(0,L.jsx)(`small`,{children:e.name}),(0,L.jsx)(B,{value:e.value,formatter:U})]}),(0,L.jsx)(`span`,{className:`interaction-data-share`,children:e.shareLabel})]},e.key)})})}function cr(){return(0,L.jsx)(`div`,{className:`interaction-data-skeleton`,role:`status`,"aria-label":`交互数据加载中`,children:Array.from({length:rr},(e,t)=>(0,L.jsxs)(`span`,{className:`interaction-data-skeleton-item`,style:{"--interaction-skeleton-index":t},"aria-hidden":`true`,children:[(0,L.jsx)(`i`,{className:`interaction-data-skeleton-icon`}),(0,L.jsxs)(`span`,{className:`interaction-data-skeleton-copy`,children:[(0,L.jsx)(`i`,{}),(0,L.jsx)(`strong`,{})]}),(0,L.jsx)(`i`,{className:`interaction-data-skeleton-share`})]},`interaction-data-skeleton-${t}`))})}var lr=(0,I.memo)(function({config:e,data:t={},isLoading:n=!1}){let[r,i]=(0,I.useState)(0),[a,o]=(0,I.useState)(!1),{items:s,totalValue:c}=(0,I.useMemo)(()=>{var n,r;let i=e.children.filter(e=>e.status).map(e=>({...e,value:Math.max(0,Number(t[e.key])||0)})),a=(n=(r=i.find(e=>e.key===`total`))==null?void 0:r.value)==null?0:n,o=i.filter(e=>e.key!==`total`&&e.value>0),s=o.reduce((e,t)=>e+t.value,0),c=a>0?a:s;return{totalValue:c,items:o.map((e,t)=>{var n,r,i;let a=(n=ir[e.key])==null?{}:n,o=c>0?e.value/c*100:0;return{...e,color:(r=a.color)==null?ar[t%ar.length]:r,icon:(i=a.icon)==null?fe:i,progress:`${Math.max(2,Math.min(100,o))}%`,shareLabel:or(o)}})}},[e.children,t]),l=Math.max(1,Math.ceil(s.length/rr)),u=r%l,d=s.slice(u*rr,(u+1)*rr),f=!n&&l>1,[p,m]=K(f);return(0,I.useEffect)(()=>{i(0)},[l]),(0,I.useEffect)(()=>{if(!f||!m||a)return;let e=window.setInterval(()=>{i(e=>(e+1)%l)},4400);return()=>window.clearInterval(e)},[m,a,l,f]),!e.status||!n&&s.length===0?null:(0,L.jsx)(`div`,{className:`interaction-data-cluster`,children:(0,L.jsxs)(`section`,{className:`dashboard-panel interaction-data-panel${n?` is-loading`:``}`,"aria-busy":n||void 0,"aria-labelledby":`interaction-data-title`,children:[(0,L.jsxs)(`header`,{className:`interaction-data-summary`,children:[(0,L.jsx)(`span`,{className:`dashboard-panel-title-icon`,"aria-hidden":`true`,children:(0,L.jsx)(fe,{strokeWidth:1.8})}),(0,L.jsxs)(`span`,{className:`interaction-data-heading`,children:[(0,L.jsx)(`small`,{children:`WEEKLY ENGAGEMENT`}),(0,L.jsx)(`h2`,{id:`interaction-data-title`,title:e.name,children:e.name})]}),(0,L.jsx)(`span`,{className:`interaction-data-total`,children:n?(0,L.jsxs)(`span`,{className:`interaction-data-total-skeleton`,"aria-hidden":`true`,children:[(0,L.jsx)(`i`,{}),(0,L.jsx)(`small`,{})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(B,{value:c,formatter:U}),(0,L.jsxs)(`small`,{children:[(0,L.jsx)(`strong`,{children:s.length}),` 类活跃交互`]})]})})]}),(0,L.jsxs)(`div`,{className:`interaction-data-list${f?` has-pages`:``}`,"data-scroll-active":m,ref:p,tabIndex:f?0:void 0,role:`group`,"aria-label":`交互数据轮播`,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||o(!1)},onFocus:()=>o(!0),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:[n?(0,L.jsx)(cr,{}):(0,L.jsx)(sr,{items:d},u),!n&&f&&(0,L.jsxs)(`span`,{className:`interaction-data-pagination`,"aria-label":`第 ${u+1} 页,共 ${l} 页`,role:`status`,children:[(0,L.jsx)(`strong`,{children:String(u+1).padStart(2,`0`)}),(0,L.jsx)(`i`,{}),(0,L.jsx)(`small`,{children:String(l).padStart(2,`0`)})]})]})]})})}),ur=3,dr=30,fr=[{label:`最新优先`,value:`time-desc`},{label:`最早优先`,value:`time-asc`},{label:`客户名称`,value:`name-asc`}];function pr(e){return e.company_short_name||e.nickname||e.company_name||`客户 ${e.id}`}function mr(e){let t=String(e||``);return t.length<16?{date:`--.--`,full:t,time:t||`--:--`}:{date:t.slice(5,10).replace(`-`,`.`),full:t,time:t.slice(11,16)}}function hr(e){var t,n;let r=((t=e.avatar)==null?void 0:t.thumbnail)||((n=e.avatar)==null?void 0:n.url)||``;return/(?:no[-_]?image|default[-_]?avatar|placeholder)/i.test(r)?{original:``,optimized:``}:{original:r,optimized:xt(r,64)}}function gr(e){let t=String(e||``).normalize(`NFKC`),n=Array.from(t).find(e=>/[\p{L}\p{N}]/u.test(e));return(n==null?void 0:n.toLocaleUpperCase(`zh-CN`))||``}function _r(e,t){var n;return 184+[...String((n=e.id)==null?t:n)].reduce((e,t)=>e+t.charCodeAt(0),0)%32}function vr(){return(0,L.jsxs)(`div`,{className:`new-customers-loading`,role:`status`,"aria-label":`新增会员列表加载中`,children:[(0,L.jsxs)(`span`,{className:`new-customers-loading-network`,"aria-hidden":`true`,children:[(0,L.jsx)(`i`,{className:`new-customers-loading-node is-first`}),(0,L.jsx)(`i`,{className:`new-customers-loading-node is-second`}),(0,L.jsx)(`i`,{className:`new-customers-loading-node is-third`}),(0,L.jsx)(`span`,{className:`new-customers-loading-core`,children:(0,L.jsx)(oe,{strokeWidth:1.55})}),(0,L.jsx)(`i`,{className:`new-customers-loading-scan`})]}),(0,L.jsxs)(`span`,{className:`new-customers-loading-copy`,children:[(0,L.jsx)(`strong`,{children:`正在接入新增会员数据`}),(0,L.jsxs)(`small`,{children:[(0,L.jsx)(`i`,{"aria-hidden":`true`}),` MEMBER STREAM CONNECTING`]})]})]})}function yr({customers:e,clone:t=!1}){return(0,L.jsx)(`div`,{className:`new-customers-group`,"aria-hidden":t||void 0,children:e.map((e,n)=>{let r=pr(e),i=hr(e),a=gr(r),o=mr(e.created_at),s=_r(e,n);return(0,L.jsxs)(`div`,{className:`new-customer-item`,role:t?void 0:`listitem`,"aria-label":t?void 0:`${r},注册时间 ${o.full}`,style:{"--new-customer-accent-hue":s,"--new-customer-index":n},children:[(0,L.jsx)(`span`,{className:`new-customer-sequence`,"aria-hidden":`true`,children:String(n+1).padStart(2,`0`)}),(0,L.jsxs)(`span`,{className:`new-customer-avatar`,"aria-hidden":`true`,children:[a?(0,L.jsx)(`span`,{className:`new-customer-avatar-initial`,children:a}):(0,L.jsx)(ce,{className:`new-customer-avatar-placeholder`,strokeWidth:1.6}),i.optimized&&(0,L.jsx)(`img`,{className:`new-customer-avatar-image`,src:i.optimized,"data-fallback-src":i.optimized===i.original?void 0:i.original,alt:``,loading:`lazy`,decoding:`async`,referrerPolicy:`no-referrer`,onLoad:e=>{e.currentTarget.classList.add(`is-loaded`)},onError:e=>{let t=e.currentTarget.dataset.fallbackSrc;if(t){delete e.currentTarget.dataset.fallbackSrc,e.currentTarget.src=t;return}e.currentTarget.style.display=`none`}})]}),(0,L.jsxs)(`span`,{className:`new-customer-copy`,children:[(0,L.jsx)(`strong`,{title:e.company_name||r,children:r}),(0,L.jsxs)(`small`,{children:[(0,L.jsx)(`i`,{"aria-hidden":`true`}),` NEW MEMBER`]})]}),(0,L.jsxs)(`time`,{dateTime:e.created_at,title:o.full,children:[(0,L.jsx)(`strong`,{children:o.time}),(0,L.jsx)(`span`,{children:o.date})]})]},`${t?`clone`:`customer`}-${e.id}-${n}`)})})}var br=(0,I.memo)(function({config:e,customers:t=[],isLoading:n=!1,visibleRows:r=ur}){let[i,a]=(0,I.useState)(`time-desc`),[o,s]=(0,I.useState)(0),[c,l]=(0,I.useState)(!1),[u,d]=(0,I.useState)(!0),[f,p]=(0,I.useState)(r),m=r>ur?56:55,[h,g]=(0,I.useState)(m),_=(0,I.useRef)(null),v=(0,I.useMemo)(()=>[...t].filter(e=>e==null?void 0:e.id).sort((e,t)=>i===`time-asc`?String(e.created_at||``).localeCompare(String(t.created_at||``)):i===`name-asc`?pr(e).localeCompare(pr(t),`zh-CN`):String(t.created_at||``).localeCompare(String(e.created_at||``))).slice(0,dr),[t,i]),y=Math.max(r,f),b=v.length>y,[x,S]=K(b&&!n);return(0,I.useEffect)(()=>{if(n)return;let e=x.current;if(!e)return;let t=()=>{let t=e.clientHeight;if(!t)return;let n=Math.max(r,Math.floor(t/m));p(e=>e===n?e:n),g(e=>{let r=t/n;return Math.abs(e-r)<.1?e:r})},i=`ResizeObserver`in window?new ResizeObserver(t):null;return t(),i==null||i.observe(e),window.addEventListener(`resize`,t),()=>{i==null||i.disconnect(),window.removeEventListener(`resize`,t)}},[m,n,x,r]),(0,I.useEffect)(()=>(window.clearTimeout(_.current),d(!1),s(0),_.current=window.setTimeout(()=>{d(!0)},50),()=>window.clearTimeout(_.current)),[y,v]),(0,I.useEffect)(()=>{if(!b||!S||c||n||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;let e=window.setInterval(()=>{d(!0),s(e=>ewindow.clearInterval(e)},[S,n,c,v.length,b]),!e.status||!n&&v.length===0?null:(0,L.jsxs)(`section`,{className:`dashboard-panel new-customers-panel${n?` is-loading`:``}`,"aria-busy":n||void 0,"aria-labelledby":`new-customers-title`,children:[(0,L.jsx)(G,{badge:n?`SYNCING`:`${v.length} NEW`,id:`new-customers-title`,icon:oe,onSortChange:n?void 0:a,sortOptions:n?[]:fr,sortValue:i,title:e.name}),n?(0,L.jsx)(vr,{}):(0,L.jsx)(`div`,{className:`new-customers-list${b?` is-looping`:``}`,"data-scroll-active":S,ref:x,style:{"--new-customer-row-height":`${h}px`},tabIndex:b?0:void 0,role:`list`,"aria-label":`新增会员`,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||l(!1)},onFocus:()=>l(!0),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:(0,L.jsxs)(`div`,{className:`new-customers-track${u?` is-transitioning`:``}`,onTransitionEnd:e=>{e.currentTarget!==e.target||e.propertyName!==`transform`||o{d(!0)},50))},style:{transform:`translate3d(0, ${-o*h}px, 0)`},children:[(0,L.jsx)(yr,{customers:v}),b&&(0,L.jsx)(yr,{customers:v,clone:!0})]},i)})]})}),xr=3,Sr=30,Cr=[{label:`最新优先`,value:`time-desc`},{label:`最早优先`,value:`time-asc`},{label:`访问地区`,value:`location-asc`}];function wr(e){let t=String(e||``);return t.length>=19?{date:t.slice(5,10),time:t.slice(11,19)}:{date:`-- --`,time:t||`--:--:--`}}function Tr(e){let[t]=String(e||`未知地区`).split(`-`);return t.startsWith(`中国`)?[`北京`,`上海`,`天津`,`重庆`,`香港`,`澳门`].find(e=>t.startsWith(`中国${e}`))||t.slice(2).split(`特别行政区`).join(` · `).split(`自治区`).join(` · `).split(`省`).join(` · `).split(`市`).join(``).replace(/\s*·\s*/g,` · `).replace(/\s+/g,` `).trim():t.replace(`United States`,`美国 · `).replace(`California`,`California · `).replace(`New Jersey`,`New Jersey · `).trim()}function Er(e){try{let t=new URL(e);return{hostname:t.hostname,path:`${t.pathname}${t.search}`||`/`}}catch{return{hostname:String(e||`-`),path:`/`}}}function Dr({rows:e}){return(0,L.jsx)(`div`,{className:`realtime-visits-skeleton`,role:`status`,"aria-live":`polite`,"aria-label":`实时访问记录加载中`,style:{"--realtime-skeleton-row-count":Math.max(1,e)},children:Array.from({length:e},(e,t)=>(0,L.jsxs)(`div`,{className:`realtime-visits-skeleton-row`,style:{"--realtime-skeleton-index":t},"aria-hidden":`true`,children:[(0,L.jsx)(`span`,{className:`realtime-skeleton-sequence`}),(0,L.jsxs)(`span`,{className:`realtime-skeleton-cell is-time`,children:[(0,L.jsx)(P,{strokeWidth:1.6}),(0,L.jsxs)(`span`,{children:[(0,L.jsx)(`i`,{className:`is-short`}),(0,L.jsx)(`i`,{className:`is-medium`})]})]}),(0,L.jsxs)(`span`,{className:`realtime-skeleton-cell is-location`,children:[(0,L.jsx)(h,{strokeWidth:1.6}),(0,L.jsxs)(`span`,{children:[(0,L.jsx)(`i`,{className:`is-medium`}),(0,L.jsx)(`i`,{className:`is-long`})]})]}),(0,L.jsxs)(`span`,{className:`realtime-skeleton-cell is-url`,children:[(0,L.jsx)(T,{strokeWidth:1.6}),(0,L.jsxs)(`span`,{children:[(0,L.jsx)(`i`,{className:`is-url`}),(0,L.jsx)(`i`,{className:`is-path`})]})]})]},`realtime-visit-skeleton-${t}`))})}function Or({visits:e,clone:t=!1,highlightLatest:n=!1}){return(0,L.jsx)(`div`,{className:`realtime-visits-group${t?` is-clone`:``}`,"aria-hidden":t||void 0,children:e.map((e,r)=>{let i=Er(e.url),a=wr(e.created_at),o=Tr(e.created_ip_location),s=i.path.length>48,c=!String(e.created_ip_location||``).startsWith(`中国`);return(0,L.jsxs)(`div`,{className:[`realtime-visit-item`,!t&&n&&r===0?`is-latest`:``,c?`is-overseas`:``].filter(Boolean).join(` `),role:t?void 0:`listitem`,style:{"--visit-enter-index":Math.min(r,6)},"aria-label":t?void 0:`${a.date} ${a.time},${o},IP ${e.created_ip},访问 ${i.hostname}${i.path}`,children:[(0,L.jsx)(`span`,{className:`realtime-visit-sequence`,"aria-hidden":`true`,children:String(r+1).padStart(2,`0`)}),(0,L.jsxs)(`time`,{className:`realtime-visit-time`,dateTime:e.created_at,children:[(0,L.jsx)(P,{"aria-hidden":`true`,strokeWidth:1.8}),(0,L.jsxs)(`span`,{children:[(0,L.jsx)(`small`,{children:a.date}),(0,L.jsx)(`strong`,{children:a.time})]})]}),(0,L.jsxs)(`span`,{className:`realtime-visit-location`,title:e.created_ip_location,children:[(0,L.jsx)(h,{"aria-hidden":`true`,strokeWidth:1.8}),(0,L.jsxs)(`span`,{children:[(0,L.jsx)(`strong`,{children:o}),(0,L.jsxs)(`small`,{className:`realtime-visit-ip`,children:[(0,L.jsx)(`i`,{"aria-hidden":`true`,children:`IP`}),(0,L.jsx)(`span`,{children:e.created_ip||`未知 IP`})]})]})]}),(0,L.jsxs)(`span`,{className:`realtime-visit-url`,title:e.url,children:[(0,L.jsx)(T,{"aria-hidden":`true`,strokeWidth:1.8}),(0,L.jsxs)(`span`,{className:`realtime-visit-destination`,children:[(0,L.jsx)(`strong`,{children:i.hostname}),(0,L.jsx)(`span`,{className:`realtime-visit-url-viewport${s?` is-long`:``}`,children:(0,L.jsx)(`span`,{children:i.path===`/`?`首页 /`:i.path})})]})]})]},`${t?`clone`:`visit`}-${e.id}-${r}`)})})}var kr=(0,I.memo)(function({config:e,isLoading:t=!1,visibleRows:n=xr,visits:r=[]}){let[i,a]=(0,I.useState)(`time-desc`),o=(0,I.useMemo)(()=>[...r].filter(ht).sort((e,t)=>i===`time-asc`?String(e.created_at||``).localeCompare(String(t.created_at||``)):i===`location-asc`?Tr(e.created_ip_location).localeCompare(Tr(t.created_ip_location),`zh-CN`):String(t.created_at||``).localeCompare(String(e.created_at||``))).slice(0,Sr),[i,r]),s=!t&&o.length>n,l=Math.max(27,o.length*3),[u,d]=K(s);return!e.status||!t&&o.length===0?null:(0,L.jsxs)(`section`,{"aria-busy":t||void 0,"aria-labelledby":`realtime-visits-title`,className:`dashboard-panel realtime-visits-panel${t?` is-loading`:``}`,children:[(0,L.jsxs)(`header`,{className:`dashboard-panel-header realtime-visits-header`,children:[(0,L.jsxs)(`div`,{className:`realtime-visits-heading`,children:[(0,L.jsx)(`span`,{className:`dashboard-panel-title-icon`,"aria-hidden":`true`,children:(0,L.jsx)(c,{strokeWidth:1.8})}),(0,L.jsxs)(`span`,{className:`realtime-visits-heading-copy`,children:[(0,L.jsx)(`small`,{children:`LIVE VISITOR STREAM`}),(0,L.jsx)(`h2`,{className:`dashboard-panel-heading`,id:`realtime-visits-title`,children:e.name})]})]}),(0,L.jsxs)(`span`,{className:`realtime-live-indicator`,"aria-label":t?`实时访问数据同步中`:`实时数据流运行中`,role:`status`,children:[(0,L.jsx)(`i`,{"aria-hidden":`true`}),(0,L.jsx)(`span`,{children:t?`SYNCING`:`STREAMING`})]}),(0,L.jsx)(`div`,{className:`realtime-visits-actions`,children:t?(0,L.jsxs)(`span`,{className:`realtime-visits-sync-state`,"aria-hidden":`true`,children:[(0,L.jsx)(`i`,{}),(0,L.jsx)(`span`,{children:`AWAITING DATA`})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(`span`,{className:`realtime-visits-count`,"aria-label":`${o.length} 条记录`,role:`status`,children:[(0,L.jsx)(`strong`,{children:o.length}),(0,L.jsx)(`small`,{children:`RECORDS`})]}),(0,L.jsx)(cn,{onChange:a,options:Cr,title:e.name,value:i})]})})]}),t?(0,L.jsx)(Dr,{rows:n}):(0,L.jsx)(`div`,{className:`realtime-visits-list${s?` is-looping`:``}`,"data-scroll-active":d,ref:u,style:{"--realtime-visits-duration":`${l}s`},tabIndex:s?0:void 0,role:`list`,"aria-label":`实时访问记录`,children:(0,L.jsxs)(`div`,{className:`realtime-visits-track`,children:[(0,L.jsx)(Or,{visits:o,highlightLatest:i===`time-desc`}),s&&(0,L.jsx)(Or,{visits:o,clone:!0})]})})]})}),Ar=4200,jr=37,Mr=[{match:`中国北京`,name:`北京`,region:`中国`},{match:`中国上海`,name:`上海`,region:`中国`},{match:`中国天津`,name:`天津`,region:`中国`},{match:`中国重庆`,name:`重庆`,region:`中国`},{match:`中国香港`,name:`香港`,region:`中国`},{match:`中国澳门`,name:`澳门`,region:`中国`},{match:`United StatesTexasDallas`,name:`Dallas`,region:`美国 · Texas`},{match:`United StatesNew JerseyNorth Bergen`,name:`North Bergen`,region:`美国 · New Jersey`},{match:`United StatesCaliforniaMonrovia`,name:`Monrovia`,region:`美国 · California`},{match:`United StatesCaliforniaCupertino`,name:`Cupertino`,region:`美国 · California`},{match:`SwedenNorrbottenLuleå`,name:`Luleå`,region:`瑞典 · Norrbotten`}],Nr=[[`United States`,`美国`],[`United Kingdom`,`英国`],[`Singapore`,`新加坡`],[`Australia`,`澳大利亚`],[`Canada`,`加拿大`],[`Germany`,`德国`],[`France`,`法国`],[`Sweden`,`瑞典`],[`Japan`,`日本`]],Pr=[{label:`访问量 ↓`,value:`value-desc`},{label:`访问量 ↑`,value:`value-asc`},{label:`地区名称`,value:`name-asc`}];function Fr(e){let t=e.slice(2).replace(/0+$/,``),n=t.match(/^(.+?)(特别行政区)(.*)$/),r=t.match(/^(.+?)(省|自治区)(.*)$/);if(n){let e=n[1];return{name:n[3].replace(/市$/,``)||e,region:`中国 · ${e}`,domestic:!0}}if(r){let e=r[1];return{name:r[3].replace(/市$/,``)||e,region:`中国 · ${e}`,domestic:!0}}return{name:t.replace(/市$/,``)||`未知地区`,region:`中国`,domestic:!0}}function Ir(e){let t=String(e||``).split(`-`)[0].trim(),n=Mr.find(e=>t.includes(e.match));if(n)return{...n,domestic:t.startsWith(`中国`)};if(t.startsWith(`中国`))return Fr(t);let r=Nr.find(([e])=>t.startsWith(e));return r?{name:t.slice(r[0].length).trim()||r[1],region:r[1],domestic:!1}:{name:t||`未知地区`,region:`海外`,domestic:!1}}function Lr(e,t){if(t<=0||e<=0)return`0%`;let n=e/t*100;return n<.01?`<0.01%`:`${H(n)}%`}function Rr({enterIndex:e=0,index:t,item:n,total:r}){return(0,L.jsxs)(`div`,{className:`source-region-item ${n.domestic?`is-domestic`:`is-overseas`}`,role:`listitem`,title:n.created_ip_location,"aria-label":`第 ${t+1} 名,${n.name},访问量 ${H(n.pv)}`,style:{"--source-region-progress":n.progress,"--source-region-delay":`${e*55}ms`},children:[(0,L.jsx)(`span`,{className:`source-region-rank ${t<3?`is-leading`:``}`,children:String(t+1).padStart(2,`0`)}),(0,L.jsxs)(`div`,{className:`source-region-content`,children:[(0,L.jsxs)(`div`,{className:`source-region-mainline`,children:[(0,L.jsxs)(`div`,{className:`source-region-location`,children:[(0,L.jsx)(`strong`,{className:`source-region-name`,children:n.name}),(0,L.jsx)(`span`,{className:`source-region-country`,children:n.region})]}),(0,L.jsxs)(`div`,{className:`source-region-metric`,children:[(0,L.jsx)(B,{className:`source-region-value`,value:n.pv,formatter:W}),(0,L.jsx)(`span`,{className:`source-region-share`,children:Lr(n.pv,r)})]})]}),(0,L.jsx)(`div`,{className:`source-region-bar`,"aria-hidden":`true`,children:(0,L.jsx)(`span`,{})})]})]})}var zr=(0,I.memo)(function({config:e,data:t=[],isLoading:n=!1,visibleRows:r=4}){let[i,a]=(0,I.useState)(`value-desc`),[o,s]=(0,I.useState)(r),c=(0,I.useMemo)(()=>{let e=Array.isArray(t)?t:[],n=new Map;e.forEach(e=>{let t=String((e==null?void 0:e.created_ip_location)||``).split(`-`)[0].trim();t&&n.set(t,(n.get(t)||0)+(Number(e.pv)||0))});let r=[...n.entries()].map(([e,t])=>({created_ip_location:e,pv:Math.max(0,t)})).filter(e=>e.pv>0).map(e=>({...e,...Ir(e.created_ip_location)})).sort((e,t)=>i===`value-asc`?e.pv-t.pv:i===`name-asc`?e.name.localeCompare(t.name,`zh-CN`):t.pv-e.pv),a=Math.max(...r.map(e=>e.pv),0);return r.map(e=>({...e,progress:a>0?Math.max(1.5,e.pv/a*100):0}))},[t,i]),l=c.reduce((e,t)=>e+t.pv,0),u=c.filter(e=>e.domestic).length,d=c.length-u,p=Math.max(1,Math.ceil(c.length/o)),{containerRef:m,isAutoScrollActive:h,setIsInteractionPaused:g,shouldRotate:_,visiblePageIndex:v}=bn({enabled:!n,interval:Ar,pageCount:p,resetKey:`${i}:${o}`}),y=c.slice(v*o,(v+1)*o);return(0,I.useEffect)(()=>{let e=m.current;if(!e)return;let t=e=>{let t=Math.max(1,Math.floor(e/jr)),n=Math.max(r,Math.min(c.length||r,t));s(e=>e===n?e:n)},n=`ResizeObserver`in window?new ResizeObserver(([e])=>t(e.contentRect.height)):null;return n==null||n.observe(e),t(e.clientHeight),()=>n==null?void 0:n.disconnect()},[c.length,m,r]),e.status?n?(0,L.jsxs)(`section`,{className:`dashboard-panel source-regions-panel is-loading`,"aria-busy":`true`,"aria-labelledby":`source-regions-title`,children:[(0,L.jsx)(G,{id:`source-regions-title`,icon:f,title:e.name}),(0,L.jsxs)(`div`,{className:`source-regions-loading`,role:`status`,"aria-live":`polite`,children:[(0,L.jsxs)(`span`,{className:`source-regions-loading-radar`,"aria-hidden":`true`,children:[(0,L.jsx)(`i`,{}),(0,L.jsx)(`i`,{}),(0,L.jsx)(`i`,{})]}),(0,L.jsxs)(`span`,{className:`source-regions-loading-copy`,children:[(0,L.jsx)(`strong`,{children:`访问来源定位中`}),(0,L.jsx)(`small`,{children:`LOCATING VISITOR REGIONS`})]})]})]}):c.length===0?null:(0,L.jsxs)(`section`,{className:`dashboard-panel source-regions-panel`,"aria-labelledby":`source-regions-title`,children:[(0,L.jsx)(G,{id:`source-regions-title`,icon:f,onSortChange:a,sortOptions:Pr,sortValue:i,title:e.name}),(0,L.jsxs)(`div`,{className:`source-regions-body`,children:[(0,L.jsxs)(`div`,{className:`source-regions-summary`,children:[(0,L.jsxs)(`span`,{className:`source-regions-count`,children:[(0,L.jsx)(`strong`,{children:c.length}),` 个来源地区`,(0,L.jsxs)(`small`,{children:[`境内 `,u,(0,L.jsx)(`i`,{}),`海外 `,d]})]}),(0,L.jsxs)(`span`,{className:`source-regions-page-state`,"aria-label":`第 ${v+1} 页,共 ${p} 页`,role:`status`,children:[String(v+1).padStart(2,`0`),(0,L.jsx)(`i`,{children:`/`}),String(p).padStart(2,`0`)]}),(0,L.jsxs)(`span`,{children:[`累计访问`,(0,L.jsx)(B,{className:`source-regions-total`,value:l,formatter:W})]})]}),(0,L.jsx)(`div`,{className:`source-regions-list${_?` is-paged`:``}`,"data-scroll-active":h,ref:m,role:`list`,tabIndex:_?0:void 0,"aria-label":`主要访问来源地区排行`,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||g(!1)},onFocus:()=>g(!0),onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),style:{"--source-region-visible-rows":o},children:(0,L.jsx)(`div`,{className:`source-regions-page`,children:y.map((e,t)=>(0,L.jsx)(Rr,{enterIndex:t,index:v*o+t,item:e,total:l},e.created_ip_location))},`${i}-${v}`)})]})]}):null});function Br({config:e,data:t,isLoading:n=!1,isMobile:r=!1}){switch(e.key){case`data_asset`:return(0,L.jsx)(Hn,{config:e,data:t,isLoading:n});case`sales`:return(0,L.jsx)(fn,{config:e,data:t,isLoading:n});case`content`:return(0,L.jsx)(Mn,{config:e,data:t,isLoading:n});case`monthly_analyst_data`:return(0,L.jsx)(zr,{config:e,data:t.monthly_analyst_data,isLoading:n,visibleRows:r?6:4});case`client_info`:return(0,L.jsx)(nr,{config:e,data:t,isLoading:n});case`shop_user_list`:return(0,L.jsx)(br,{config:e,customers:t.shop_user_list,isLoading:n,visibleRows:r?5:3});case`visit_log`:return(0,L.jsx)(kr,{config:e,isLoading:n,visits:t.visit_log});case`interact_all_count`:return(0,L.jsx)(lr,{config:e,data:t.interact_all_count,isLoading:n});case`seo_count`:return(0,L.jsx)(zn,{config:e,data:t.seo_count,isLoading:n});case`cloud_computing_resources`:return(0,L.jsx)(yn,{config:e,data:t,isLoading:n});default:return null}}function Vr({config:e,dashboardData:t,dashboardLayout:n,isLoading:r=!1,showVisits:i=!0}){var a,o;let s=n.mode===`portrait`?360:300,c=Math.max(1,n.width-36),l=s-48,u=r?null:(a=(o=t.visit_log)==null?void 0:o.length)==null?0:a;return(0,L.jsxs)(`section`,{className:`mobile-realtime-cluster`,"aria-label":`全球实时访问`,children:[(0,L.jsxs)(`section`,{className:`mobile-globe-panel`,style:{"--mobile-globe-height":`${s}px`},"aria-label":`全球实时访问态势`,children:[(0,L.jsxs)(`header`,{className:`mobile-globe-toolbar`,children:[(0,L.jsxs)(`span`,{className:`mobile-globe-heading`,children:[(0,L.jsx)(`i`,{"aria-hidden":`true`}),(0,L.jsxs)(`span`,{children:[(0,L.jsx)(`small`,{children:`LIVE VISITOR GEO STREAM`}),(0,L.jsx)(`strong`,{children:`全球实时访问态势`})]})]}),e&&(0,L.jsxs)(`span`,{className:`mobile-globe-records`,children:[(0,L.jsx)(`strong`,{children:u==null?`--`:u}),(0,L.jsx)(`small`,{children:r?`正在同步`:u?`实时记录`:`暂无记录`})]})]}),(0,L.jsx)(Wt,{displayScale:n.scale,isMobileDevice:n.isPhoneDevice,isLoading:r,sourceData:t.monthly_analyst_data,viewportHeight:l,viewportWidth:c,zoom:1})]}),i&&e&&(0,L.jsx)(kr,{config:e,isLoading:r,visits:t.visit_log,visibleRows:n.mode===`portrait`?4:5})]})}function Hr(e){return{"--dashboard-layout-width":`${e.width}px`,"--dashboard-layout-height":`${e.height}px`,"--dashboard-scale":e.scale,"--dashboard-header-height":`94px`,"--dashboard-side-panel-width":e.sidePanelWidth?`${e.sidePanelWidth}px`:void 0,"--dashboard-center-panel-width":e.centerPanelWidth?`${e.centerPanelWidth}px`:void 0,"--dashboard-overview-width":e.overviewWidth?`${e.overviewWidth}px`:void 0,"--dashboard-stack-gap":e.stackGap?`${e.stackGap}px`:void 0}}function Ur(e,t,n,r=!1){return(0,L.jsx)(Br,{config:e,data:t,isLoading:n,isMobile:r},e.key)}function Wr({copyrightSubscription:e,data:t,dataState:n,isLoading:r,layout:i,meta:a,modules:o}){let{centerModules:s,leftModules:c,mobileModules:l,rightModules:u}=(0,I.useMemo)(()=>mt(o),[o]),d=l.find(e=>e.key===`visit_log`),f=_t({config:d,isLoading:r,visits:t.visit_log}),p=[`dashboard-left-stack`,...dt(c,t,r)].join(` `);return(0,L.jsxs)(`main`,{className:`globe-only-shell layout-${i.mode}`,style:Hr(i),children:[(0,L.jsx)(kt,{dataState:n,isMobile:i.isMobile,logoUrl:a.logoUrl,logoUrls:a.logoUrls,companyName:a.companyName,title:a.title}),(0,L.jsx)(`section`,{className:`globe-stage`,"aria-label":`全球访问来源`,children:i.isMobile?(0,L.jsxs)(`section`,{className:`dashboard-mobile-stack`,"aria-label":`数据大屏模块`,children:[!f&&(0,L.jsx)(Vr,{config:d,dashboardData:t,dashboardLayout:i,isLoading:r,showVisits:!1},`mobile-globe-primary`),(0,L.jsx)(sn,{modules:o,data:t,isLoading:r}),l.map(e=>e.key===`visit_log`?f?(0,L.jsx)(Vr,{config:e,dashboardData:t,dashboardLayout:i,isLoading:r},e.key):null:Ur(e,t,r,!0)),(0,L.jsx)(Ge,{className:`dashboard-copyright`,subscription:e})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wt,{displayScale:i.scale,immersive:!0,isMobileDevice:i.isPhoneDevice,isLoading:r,sourceData:t.monthly_analyst_data,viewportHeight:Math.max(1,i.height-94),viewportWidth:i.width,zoom:1}),(0,L.jsxs)(`aside`,{className:p,"aria-label":`数据概览`,children:[c.map(e=>Ur(e,t,r)),(0,L.jsx)(sn,{modules:o,data:t,isLoading:r})]}),(0,L.jsx)(`aside`,{className:`dashboard-right-stack`,"aria-label":`客户概览`,children:u.map(e=>Ur(e,t,r))}),(0,L.jsxs)(`section`,{className:`dashboard-center-stack`,"aria-label":`实时动态数据`,children:[s.map(e=>Ur(e,t,r)),(0,L.jsx)(Ge,{className:`dashboard-copyright`,subscription:e})]})]})})]})}var Gr=`/visual-editor-new/dist/big-data-dashboard/embed/assets/dashboard-disabled-reference-D1phc8HU.jpg`;function Kr({aspectMode:e,isMobile:t}){let n=t?`w-[min(94vw,calc(38dvh*2.30645))]`:e===`ultrawide`?`w-[min(42vw,calc(39dvh*2.30645))]`:e===`tall`?`w-[min(66vw,calc(39dvh*2.30645))]`:`w-[min(46vw,calc(39dvh*2.30645))]`,r=t?`text-[5.15vmin]`:`text-[4.5vmin]`,i=t?`text-[3.15vmin]`:`text-[1.82vmin]`,a=t?`w-[220vw]`:`w-[70vw]`,o=t?`is-mobile`:e===`ultrawide`?`is-ultrawide`:e===`tall`?`is-tall`:`is-standard`;return(0,L.jsxs)(`main`,{className:`absolute inset-0 z-10 overflow-hidden bg-[#010713]`,"aria-labelledby":`dashboard-disabled-title`,style:{WebkitFontSmoothing:`antialiased`,fontFamily:`"PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif`,textRendering:`geometricPrecision`},children:[(0,L.jsx)(`span`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 bg-cover bg-center bg-no-repeat`,style:{backgroundImage:`url(${Gr})`}}),(0,L.jsx)(`span`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 bg-[linear-gradient(180deg,rgba(0,6,18,0.04),rgba(0,6,18,0.12)_68%,rgba(0,6,18,0.3))]`}),(0,L.jsx)(`span`,{"aria-hidden":`true`,className:`${a} dashboard-disabled-focus pointer-events-none absolute left-1/2 top-0 h-[82dvh] -translate-x-1/2`,style:{background:`linear-gradient(90deg, transparent 0%, #010713 16%, #010713 84%, transparent 100%)`,maskImage:`linear-gradient(to bottom, black 0 86%, transparent 100%)`}}),(0,L.jsx)(`span`,{"aria-hidden":`true`,className:`dashboard-disabled-bottom-shade pointer-events-none absolute inset-x-0 bottom-0 h-[19dvh] bg-[linear-gradient(180deg,transparent,rgba(0,5,16,0.24))]`}),(0,L.jsxs)(`section`,{"aria-live":`polite`,className:`${n} dashboard-disabled-section ${o} absolute left-1/2 top-1/2 z-[1] flex max-w-[94vw] -translate-x-1/2 -translate-y-1/2 flex-col items-center animate-[dashboard-shell-enter_460ms_cubic-bezier(0.2,0.72,0.25,1)_both]`,role:`status`,children:[(0,L.jsxs)(`figure`,{className:`dashboard-disabled-guide relative m-0 aspect-[143/62] w-full overflow-hidden rounded-[0.75vmin] border-[0.065vmin] border-solid border-[rgba(71,174,235,0.68)] bg-[#071426] shadow-[0_1.8vmin_5.2vmin_rgba(0,0,0,0.58),0_0_2.4vmin_rgba(24,139,224,0.18)]`,children:[(0,L.jsx)(`span`,{"aria-hidden":`true`,className:`absolute inset-0 bg-[linear-gradient(110deg,#071426_18%,#0c213b_38%,#071426_58%)] bg-[length:220%_100%] animate-[dashboard-guide-shimmer_1.35s_ease-in-out_infinite]`}),(0,L.jsx)(`img`,{alt:`后台数据运营大屏功能设置位置示意图`,className:`relative block h-full w-full object-cover`,decoding:`sync`,fetchPriority:`high`,loading:`eager`,src:Xe}),(0,L.jsx)(`span`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-x-[6%] bottom-[-0.06vmin] h-[0.1vmin] bg-[linear-gradient(90deg,transparent,rgba(58,190,255,0.72),transparent)] shadow-[0_0_1.2vmin_rgba(48,177,246,0.52)]`})]}),(0,L.jsxs)(`div`,{className:`dashboard-disabled-copy relative mt-[4.1dvh] w-[min(72vw,180%)] text-center`,children:[(0,L.jsx)(`h1`,{className:`${r} m-0 font-[650] leading-[1.18] tracking-[0.018em] text-[#dce7f6] [text-shadow:0_0.14vmin_0_rgba(83,103,131,0.42),0_0.5vmin_1.45vmin_rgba(0,0,0,0.56)]`,id:`dashboard-disabled-title`,children:`数据大屏尚未开启`}),(0,L.jsx)(`p`,{className:`${i} dashboard-disabled-description mt-[1.7dvh] mb-0 font-normal leading-[1.62] tracking-[0.006em] text-[rgba(207,220,236,0.88)]`,children:`您还没有开启数据大屏功能`}),(0,L.jsxs)(`p`,{className:`${i} dashboard-disabled-hint mt-[0.55dvh] mb-0 font-normal leading-[1.62] tracking-[0.006em] text-[rgba(184,201,221,0.88)]`,children:[`请到`,` `,(0,L.jsx)(`a`,{className:`font-medium text-[#279cff] underline decoration-[0.07vmin] decoration-[rgba(39,156,255,0.34)] underline-offset-[0.42vmin] transition-colors duration-200 hover:text-[#73c8ff] focus-visible:rounded-[0.25vmin] focus-visible:outline-[0.08vmin] focus-visible:outline-offset-[0.35vmin] focus-visible:outline-[#62bfff]`,href:$e,rel:`noreferrer`,target:`_blank`,children:`后台 - 数据 - 运营大屏`}),` `,`开启`]})]})]})]})}var qr=`/visual-editor-new/dist/big-data-dashboard/embed/assets/dashboard-password-tech-v1-DOD3UuSm.jpg`;function Jr({error:e,isMobile:t,isSubmitting:n,onSubmit:r}){let[i,o]=(0,I.useState)(``),[s,c]=(0,I.useState)(!1),[l,f]=(0,I.useState)(``),p=l||e,h=t?`text-[6.2vmin]`:`text-[3.05vmin]`,g=t?`text-[3.5vmin]`:`text-[1.45vmin]`,_=t?`text-[4vmin]`:`text-[1.65vmin]`,v=t?`w-[92vw]`:`w-[min(92vw,82vmin)]`,y=t?`h-[11vmin] px-[5vmin] text-[2.2vmin]`:`h-[5.2vmin] px-[3.2vmin] text-[1.05vmin]`,b=t?`h-[17vmin] w-[17vmin]`:`h-[9vmin] w-[9vmin]`,x=t?`h-[7.5vmin] w-[7.5vmin]`:`h-[4.1vmin] w-[4.1vmin]`,C=t?`h-[12vmin]`:`h-[6.4vmin]`,w=t?`h-[4vmin] w-[4vmin]`:`h-[2.05vmin] w-[2.05vmin]`,T=t?`h-[4vmin] w-[4vmin]`:`h-[2vmin] w-[2vmin]`;return(0,L.jsxs)(`main`,{className:`absolute inset-0 z-10 grid place-items-center overflow-hidden bg-[#010713]`,"aria-labelledby":`dashboard-password-title`,children:[(0,L.jsx)(`span`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 bg-cover bg-center bg-no-repeat`,style:{backgroundImage:`url(${qr})`}}),(0,L.jsx)(`span`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_50%_43%,rgba(1,7,19,0.03),rgba(1,7,19,0.16)_46%,rgba(1,7,19,0.44)_100%)]`}),(0,L.jsxs)(`section`,{className:`${v} dashboard-password-panel ${t?`is-mobile`:`is-desktop`} relative overflow-x-hidden overflow-y-auto bg-[linear-gradient(145deg,rgba(5,26,48,0.78),rgba(2,12,29,0.88))] shadow-[0_2.6vmin_9vmin_rgba(0,0,0,0.56),0_0_6vmin_rgba(39,165,207,0.1),inset_0_0_7vmin_rgba(40,167,211,0.05)] backdrop-blur-[1.2vmin] [scrollbar-color:rgba(84,199,228,0.42)_transparent] [scrollbar-width:thin] animate-[dashboard-shell-enter_420ms_cubic-bezier(0.2,0.72,0.25,1)_both]`,children:[(0,L.jsxs)(`header`,{className:`${y} sticky top-0 z-[1] flex items-center justify-between bg-[rgba(3,18,37,0.76)] font-mono tracking-[0.18em] text-[rgba(113,196,222,0.68)] backdrop-blur-[1vmin]`,children:[(0,L.jsxs)(`span`,{className:`dashboard-password-status inline-flex items-center gap-[0.8vmin] text-[#62d9ed]`,children:[(0,L.jsx)(`i`,{className:`h-[0.48vmin] w-[0.48vmin] rounded-full bg-[#62e5f5] shadow-[0_0_0.9vmin_rgba(98,229,245,0.8)]`}),`SECURE ACCESS`]}),(0,L.jsx)(`span`,{className:t?`hidden`:void 0,children:`DATA SCREEN / AUTHORIZATION`})]}),(0,L.jsxs)(`form`,{className:`relative flex flex-col items-center px-[8vmin] pb-[6.2vmin] pt-[5vmin] text-center`,onSubmit:async e=>{if(e.preventDefault(),!i){f(`请输入大屏访问密码`);return}f(``),await r(i)},children:[(0,L.jsx)(`span`,{className:`${b} relative grid place-items-center border-[0.08vmin] border-solid border-[rgba(98,220,241,0.5)] bg-[rgba(7,55,79,0.46)] text-[#73e5f4] shadow-[inset_0_0_2.4vmin_rgba(65,197,225,0.09),0_0_3vmin_rgba(40,174,211,0.1)] [clip-path:polygon(22%_0,78%_0,100%_22%,100%_78%,78%_100%,22%_100%,0_78%,0_22%)]`,children:(0,L.jsx)(S,{"aria-hidden":`true`,className:x,strokeWidth:1.45})}),(0,L.jsx)(`p`,{className:`mb-0 mt-[2.2vmin] font-mono text-[1.02vmin] tracking-[0.24em] text-[rgba(91,189,217,0.72)]`,children:`IDENTITY VERIFICATION REQUIRED`}),(0,L.jsx)(`h1`,{className:`${h} mb-0 mt-[0.8vmin] font-[650] tracking-[0.04em] text-[#e6f8ff] [text-shadow:0_0_1.8vmin_rgba(91,213,236,0.16)]`,id:`dashboard-password-title`,children:`请输入大屏访问密码`}),(0,L.jsx)(`p`,{className:`${g} mb-0 mt-[1vmin] leading-[1.7] text-[rgba(177,211,224,0.72)]`,children:`当前数据大屏已开启访问保护,验证通过后将加载实时数据。`}),(0,L.jsxs)(`label`,{className:`mt-[3.2vmin] w-full text-left`,htmlFor:`dashboard-access-password`,children:[(0,L.jsxs)(`span`,{className:`mb-[0.75vmin] flex items-center justify-between font-mono text-[1.05vmin] tracking-[0.12em] text-[rgba(110,193,218,0.68)]`,children:[(0,L.jsx)(`span`,{children:`ACCESS PASSWORD`}),(0,L.jsx)(`span`,{children:`ENCRYPTED CHANNEL`})]}),(0,L.jsxs)(`span`,{className:`${C} relative flex items-center border-[0.08vmin] border-solid border-[rgba(84,197,228,0.32)] bg-[rgba(1,12,28,0.78)] transition-[border-color,box-shadow] duration-200 focus-within:border-[rgba(103,224,243,0.78)] focus-within:shadow-[0_0_2vmin_rgba(64,192,222,0.12)]`,children:[(0,L.jsx)(d,{"aria-hidden":`true`,className:`${w} ml-[1.7vmin] shrink-0 text-[rgba(99,214,235,0.78)]`,strokeWidth:1.7}),(0,L.jsx)(`input`,{autoComplete:`current-password`,autoFocus:!0,className:`${_} h-full min-w-0 flex-1 border-0 bg-transparent px-[1.35vmin] tracking-[0.08em] text-[#e7faff] caret-[#68e0f1] outline-none placeholder:tracking-normal placeholder:text-[rgba(109,157,177,0.42)]`,disabled:n,id:`dashboard-access-password`,onChange:e=>{o(e.target.value),l&&f(``)},placeholder:`输入访问密码`,spellCheck:`false`,type:s?`text`:`password`,value:i}),(0,L.jsx)(`button`,{"aria-label":s?`隐藏密码`:`显示密码`,className:`grid h-full w-[9vmin] place-items-center border-0 bg-transparent text-[rgba(112,190,215,0.64)] transition-colors hover:text-[#76e2f2] focus-visible:outline-[0.1vmin] focus-visible:outline-[#62d9ed]`,disabled:n,onClick:()=>c(e=>!e),type:`button`,children:s?(0,L.jsx)(m,{"aria-hidden":`true`,className:T}):(0,L.jsx)(u,{"aria-hidden":`true`,className:T})})]})]}),(0,L.jsx)(`p`,{"aria-live":`polite`,className:`${g} mb-0 mt-[1vmin] min-h-[1.7em] text-[#ff8791]`,role:p?`alert`:void 0,children:p||`\xA0`}),(0,L.jsxs)(`button`,{className:`${C} ${_} dashboard-password-submit mt-[1.35vmin] flex w-full items-center justify-center gap-[1vmin] border-[0.08vmin] border-solid border-[rgba(100,221,240,0.62)] bg-[linear-gradient(105deg,rgba(17,117,150,0.72),rgba(5,55,82,0.86))] font-medium tracking-[0.08em] text-[#eaffff] shadow-[inset_0_0_2.4vmin_rgba(84,219,240,0.08)] transition-[border-color,box-shadow,filter] duration-200 hover:border-[#83e8f5] hover:shadow-[inset_0_0_2.4vmin_rgba(84,219,240,0.12),0_0_2.5vmin_rgba(56,193,221,0.13)] disabled:cursor-wait disabled:opacity-70`,disabled:n,type:`submit`,children:[n?(0,L.jsx)(a,{"aria-hidden":`true`,className:`${T} animate-spin`}):(0,L.jsx)(S,{"aria-hidden":`true`,className:T}),(0,L.jsx)(`span`,{children:n?`正在验证访问权限`:`验证并进入数据大屏`})]})]})]})]})}var Yr=Array.from({length:13},(e,t)=>t+1),Xr=Array.from({length:10},(e,t)=>t+1);function Zr({eyebrow:e,message:t,title:n}){let[r,i]=(0,I.useState)(!1);return(0,I.useEffect)(()=>{let e=()=>window.location.reload();return window.addEventListener(`online`,e),()=>window.removeEventListener(`online`,e)},[]),(0,L.jsxs)(`main`,{className:`dashboard-disabled-state dashboard-request-error-state`,"aria-labelledby":`dashboard-setting-error-title`,children:[(0,L.jsxs)(`header`,{className:`dashboard-request-error-brand`,children:[(0,L.jsxs)(`span`,{className:`dashboard-request-error-brand-lockup`,children:[(0,L.jsx)(`i`,{"aria-hidden":`true`,children:(0,L.jsx)(`span`,{})}),(0,L.jsx)(`strong`,{children:`LTD.COM`}),(0,L.jsx)(`span`,{children:`入站营销大数据`})]}),(0,L.jsxs)(`span`,{className:`dashboard-request-error-service`,children:[(0,L.jsx)(S,{"aria-hidden":`true`}),(0,L.jsx)(`i`,{}),`数据服务状态`,(0,L.jsx)(j,{"aria-hidden":`true`})]})]}),(0,L.jsxs)(`section`,{className:`dashboard-request-error-card`,children:[(0,L.jsxs)(`div`,{className:`dashboard-request-error-visual`,"aria-hidden":`true`,children:[(0,L.jsx)(`span`,{className:`dashboard-request-error-orbit is-orbit-one`}),(0,L.jsx)(`span`,{className:`dashboard-request-error-orbit is-orbit-two`}),(0,L.jsx)(`span`,{className:`dashboard-request-error-orbit is-orbit-three`}),(0,L.jsx)(`span`,{className:`dashboard-request-error-sweep`}),Xr.map(e=>(0,L.jsx)(`span`,{className:`dashboard-request-error-line is-line-${e}`},`network-line-${e}`)),Yr.map(e=>(0,L.jsx)(`i`,{className:`dashboard-request-error-node is-node-${e}`},`network-node-${e}`)),(0,L.jsx)(`span`,{className:`dashboard-request-error-fault`})]}),(0,L.jsxs)(`div`,{className:`dashboard-request-error-copy`,children:[(0,L.jsxs)(`span`,{className:`dashboard-request-error-badge`,children:[(0,L.jsx)(`i`,{"aria-hidden":`true`}),`连接异常`]}),(0,L.jsx)(`p`,{className:`dashboard-request-error-eyebrow`,children:e}),(0,L.jsx)(`h1`,{id:`dashboard-setting-error-title`,children:n}),(0,L.jsx)(`p`,{className:`dashboard-request-error-message`,children:t}),(0,L.jsxs)(`div`,{className:`dashboard-request-error-actions`,children:[(0,L.jsxs)(`button`,{className:`dashboard-request-error-retry`,onClick:()=>window.location.reload(),type:`button`,children:[(0,L.jsx)(C,{"aria-hidden":`true`}),(0,L.jsx)(`span`,{children:`重新加载`})]}),(0,L.jsxs)(`button`,{"aria-expanded":r,className:`dashboard-request-error-diagnostics-trigger`,onClick:()=>i(e=>!e),type:`button`,children:[(0,L.jsx)(`span`,{children:r?`收起诊断信息`:`查看诊断信息`}),(0,L.jsx)(de,{"aria-hidden":`true`})]})]}),r?(0,L.jsxs)(`dl`,{className:`dashboard-request-error-diagnostics`,children:[(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`dt`,{children:`配置服务`}),(0,L.jsx)(`dd`,{children:`连接失败`})]}),(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`dt`,{children:`数据接口`}),(0,L.jsx)(`dd`,{children:`等待配置`})]}),(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`dt`,{children:`恢复策略`}),(0,L.jsx)(`dd`,{children:`网络在线后重试`})]})]}):null,(0,L.jsxs)(`span`,{className:`dashboard-request-error-auto-retry`,children:[(0,L.jsx)(P,{"aria-hidden":`true`}),`系统将在网络恢复后自动重试`]})]})]})]})}function Qr({accessStatus:e,hasDashboardData:t,minimumElapsed:n}){return n?e===`checking`?`WEBSITE SETTING SYNCHRONIZATION`:t?`VISUAL ASSET SYNCHRONIZATION`:`LIVE DATA SYNCHRONIZATION`:`VISUAL SYSTEM INITIALIZATION`}function $r({accessStatus:e,hasDashboardData:t,minimumElapsed:n}){return n?e===`checking`?`正在检查数据大屏开通状态`:t?`正在装载大屏视觉资源`:`正在加载大屏实时数据`:`大屏系统启动中`}function ei({accessStatus:e,hasDashboardData:t,isReady:n,minimumElapsed:r}){let i=$r({accessStatus:e,hasDashboardData:t,minimumElapsed:r});return(0,L.jsx)(`div`,{"aria-hidden":n||void 0,"aria-label":i,className:`dashboard-system-loader`,role:`status`,children:(0,L.jsxs)(`span`,{className:`dashboard-system-loader-stage`,children:[(0,L.jsx)(`span`,{className:`dashboard-system-loader-corner is-top-left`,"aria-hidden":`true`}),(0,L.jsx)(`span`,{className:`dashboard-system-loader-corner is-top-right`,"aria-hidden":`true`}),(0,L.jsx)(`span`,{className:`dashboard-system-loader-corner is-bottom-left`,"aria-hidden":`true`}),(0,L.jsx)(`span`,{className:`dashboard-system-loader-corner is-bottom-right`,"aria-hidden":`true`}),(0,L.jsxs)(`span`,{className:`dashboard-system-loader-orbit`,"aria-hidden":`true`,children:[(0,L.jsx)(`i`,{}),(0,L.jsx)(`i`,{}),(0,L.jsx)(`i`,{})]}),(0,L.jsxs)(`span`,{className:`dashboard-system-loader-side is-left`,"aria-hidden":`true`,children:[(0,L.jsx)(`i`,{children:`SYS / 01`}),(0,L.jsx)(`b`,{children:`DISPLAY MATRIX`}),(0,L.jsx)(`em`,{children:`ADAPTIVE SCALE`})]}),(0,L.jsxs)(`span`,{className:`dashboard-system-loader-side is-right`,"aria-hidden":`true`,children:[(0,L.jsx)(`i`,{children:`NET / 04`}),(0,L.jsx)(`b`,{children:`RESOURCE LINK`}),(0,L.jsx)(`em`,{children:`CHANNEL ACTIVE`})]}),(0,L.jsxs)(`span`,{className:`dashboard-system-loader-core`,children:[(0,L.jsxs)(`span`,{className:`dashboard-system-loader-signal`,"aria-hidden":`true`,children:[(0,L.jsx)(`i`,{}),(0,L.jsx)(`i`,{}),(0,L.jsx)(`i`,{}),(0,L.jsx)(`i`,{})]}),(0,L.jsx)(`small`,{children:Qr({accessStatus:e,hasDashboardData:t,minimumElapsed:r})}),(0,L.jsx)(`strong`,{children:i}),(0,L.jsx)(`span`,{className:`dashboard-system-loader-track`,"aria-hidden":`true`,children:(0,L.jsx)(`i`,{})}),(0,L.jsxs)(`span`,{className:`dashboard-system-loader-meta`,"aria-hidden":`true`,children:[(0,L.jsxs)(`i`,{children:[(0,L.jsx)(`b`,{}),e===`checking`?`WEBSITE SETTING`:`IMAGE ASSETS`]}),(0,L.jsxs)(`i`,{children:[(0,L.jsx)(`b`,{}),`GL RENDERER`]}),(0,L.jsxs)(`i`,{children:[(0,L.jsx)(`b`,{}),`DATA CHANNEL`]})]})]})]})})}function ti(e){let t=e=>String(e).padStart(2,`0`);return[e.getFullYear(),`-`,t(e.getMonth()+1),`-`,t(e.getDate()),` `,t(e.getHours()),`:`,t(e.getMinutes()),`:`,t(e.getSeconds())].join(``)}function Y(e){return ti(new Date(Date.now()-e*60*1e3))}function ni(){return{total_exposure:148520,total_pv:74280,today_pv:1286,yesterday_pv:3864,month_pv:18642,last_month_pv:27480,interact_count:965,total_sales:286540,monthly_sales:48620,last_months_sales:43280,sales_performance:112.34,total_order:1862,monthly_order:326,last_months_order:298,order_performance:109.4,article_count:154,video_count:28,image_text_count:119,file_count:46,notice_count:12,activity_count:18,case_count:62,question_count:86,encylo_count:95,invite_count:16,media_count:24,placard_cunt:35,album_count:42,ai_contribute_count:78,feed_count:57,product_count:132,goods_count:268,gw_merchant_count:1248,register_merchant_count:986,consumer_merchant_count:326,data_asset_original:328600,data_asset_output:586420,data_asset_surplus:257820,total_interspace:10400,use_interspace:2680,total_flow:12e3,use_flow:4860,total_power:5e5,use_power:138400,monthly_analyst_data:[{created_ip_location:`中国浙江省杭州市-移动`,pv:3280},{created_ip_location:`中国上海市-电信`,pv:2460},{created_ip_location:`中国广东省深圳市-联通`,pv:1980},{created_ip_location:`中国北京市-移动`,pv:1560},{created_ip_location:`United StatesCaliforniaSan Francisco`,pv:860},{created_ip_location:`SingaporeSingapore`,pv:620}],shop_user_list:[{id:`preview-customer-1`,nickname:`示例客户 A`,created_at:Y(3)},{id:`preview-customer-2`,nickname:`示例客户 B`,created_at:Y(12)},{id:`preview-customer-3`,nickname:`示例客户 C`,created_at:Y(28)},{id:`preview-customer-4`,nickname:`示例客户 D`,created_at:Y(46)},{id:`preview-customer-5`,nickname:`示例客户 E`,created_at:Y(75)}],visit_log:[{id:`preview-visit-1`,url:`https://example.com/product/overview`,created_at:Y(1),created_ip:`203.0.113.18`,created_ip_location:`中国浙江省杭州市-移动`},{id:`preview-visit-2`,url:`https://example.com/article/industry-data`,created_at:Y(4),created_ip:`203.0.113.26`,created_ip_location:`中国上海市-电信`},{id:`preview-visit-3`,url:`https://example.com/solutions/enterprise`,created_at:Y(7),created_ip:`203.0.113.42`,created_ip_location:`中国广东省深圳市-联通`},{id:`preview-visit-4`,url:`https://example.com/contact`,created_at:Y(11),created_ip:`203.0.113.56`,created_ip_location:`United StatesCaliforniaSan Francisco`},{id:`preview-visit-5`,url:`https://example.com/`,created_at:Y(18),created_ip:`203.0.113.68`,created_ip_location:`SingaporeSingapore`}],interact_all_count:{total:965,phone:86,form:238,link:154,mail:72,qq:48,qrcode:96,register_form:112,ai_interaction:68,site_subscribe:52,shop_login:32,shop_add_cart:7},seo_count:{baidu:1268,google:986,bing:428,toutiao:286,apple:198,claude:156,gpt:132,chatgpt:118,perplexity:86,facebook:64}}}function ri(e){if(!(e!=null&&e.tips))return{};try{return JSON.parse(e.tips)}catch{return{}}}function ii(e=[]){return e.flatMap(e=>Object.entries(e).map(([e,t])=>({key:e,...t}))).map((e,t)=>{var n;return{...e,configOrder:t,sort:(n=e.sort)==null?t:n}}).sort((e,t)=>e.sort-t.sort||e.configOrder-t.configOrder)}function ai(e,t=!0){return e==null||e===``?t:typeof e==`string`?![`0`,`false`,`off`,`disabled`].includes(e.trim().toLowerCase()):!!e}function oi(...e){let t=[`url`,`qiniu_hls_key`,`thumbnail`,`src`],n=[],r=e=>{let t=String(e==null?``:e).trim();t&&!n.includes(t)&&n.push(t)};for(let n of e){if(typeof n==`string`){r(n);continue}if(!(!n||typeof n!=`object`))for(let e of t)r(n[e])}return n}function si(e,t){var n,r,i,a,o;let s=ri(e==null?void 0:e.big_data_config),c=s.effects&&typeof s.effects==`object`?s.effects:{},l=oi(e==null||(n=e.website_info)==null?void 0:n.logo,e==null||(r=e.website_info)==null?void 0:r.company_logo,t==null?void 0:t.company_logo,t==null?void 0:t.logo);return{meta:{title:s.title||`入站营销大数据`,logoUrl:(i=l[0])==null?``:i,logoUrls:l,companyName:(e==null||(a=e.website_info)==null?void 0:a.name)||(t==null?void 0:t.company_name)||``},effects:{enterFade:ai((o=c.enter_fade)==null?c.enterFade:o,!0)},modules:Object.entries(s).filter(([e,t])=>![`title`,`effects`].includes(e)&&typeof t==`object`&&Number(t.status)===1).map(([e,t])=>({key:e,...t,children:ii(t.children).filter(e=>Number(e.status)===1)})).sort((e,t)=>{var n,r;return((n=e.sort)==null?2**53-1:n)-((r=t.sort)==null?2**53-1:r)})}}function X(e){return e==null?null:String(e).trim()||null}function ci(){try{return X(window.localStorage.getItem(`website_id`)||window.localStorage.getItem(`websiteId`))}catch{return null}}function li(){let e=null;try{let t=new URLSearchParams(window.location.search);e=X(t.get(`website_id`)||t.get(`websiteId`))}catch{}return e||X(window.website_id)||X(window.websiteId)||ci()}function ui(){let e=li();if(!e)return null;window.websiteId=e,window.website_id=e;try{window.localStorage.setItem(`websiteId`,e),window.localStorage.setItem(`website_id`,e)}catch{}return e}var di=60*1e3,fi=`big-data-dashboard:password-passed-until`,pi=`big-data-dashboard:last-real-snapshot`;function mi(e){let t=li();return t?`${e}:${encodeURIComponent(t)}`:null}function hi(){return mi(fi)}function gi(){return mi(pi)}function Z(){let e=hi();if(e)try{window.sessionStorage.removeItem(e)}catch{}}function _i(){let e=hi();if(!e)return null;try{let t=Number(window.sessionStorage.getItem(e));if(Number.isFinite(t)&&t>Date.now())return t}catch{}return Z(),null}function vi(e){let t=hi();if(t)try{window.sessionStorage.setItem(t,String(e))}catch{}}function yi(){let e=gi();if(e)try{window.localStorage.removeItem(e),window.sessionStorage.removeItem(e)}catch{}}function bi(){let e=gi();if(!e)return null;try{let t=JSON.parse(window.localStorage.getItem(e)||`null`),n=Number(t==null?void 0:t.savedAt);if(t!=null&&t.data&&typeof t.data==`object`&&Number.isFinite(n))return t}catch{}return yi(),null}function xi(e){if(!e||typeof e!=`object`)return;let t=li(),n=gi();if(!(!t||!n))try{window.localStorage.setItem(n,JSON.stringify({data:e,savedAt:Date.now(),websiteId:t}))}catch{}}var Si=15e3;function Ci(e,t){let[n,r=``]=e.split(`#`,2),[i,a=``]=n.split(`?`,2),o=new URLSearchParams(a);Object.entries(t).forEach(([e,t])=>{if(!(t==null||t===``)){if(Array.isArray(t)){t.forEach(t=>o.append(e,String(t)));return}o.set(e,String(t))}});let s=o.toString();return`${i}${s?`?${s}`:``}${r?`#${r}`:``}`}function wi(e,t){let n=new AbortController,r=!1,i=()=>n.abort(e==null?void 0:e.reason),a=window.setTimeout(()=>{r=!0,n.abort(new DOMException(`The request timed out.`,`TimeoutError`))},t);return e!=null&&e.aborted?i():e==null||e.addEventListener(`abort`,i,{once:!0}),{signal:n.signal,wasTimedOut:()=>r,cleanup(){window.clearTimeout(a),e==null||e.removeEventListener(`abort`,i)}}}async function Ti(e=``,t={},n=`get`,r={}){var i;let a=n.toUpperCase(),o=/^https?:\/\//i.test(e),s=o||e.startsWith(`/`)?e:`/${e}`,c=li(),l=window.localStorage.getItem(`lang`)||`zh-cn`,u=!o&&c&&t.website_id===void 0?{website_id:c,...t}:t,d=o&&u.lang===void 0?{lang:l,...u}:u,f={Accept:`application/json`};if(!o){f.lang=l;let e=window.localStorage.getItem(`GwShopUserToken`);e&&(f[`gw-shop-user-token`]=e)}let p=s,m={method:a,cache:`no-store`,credentials:o?`omit`:`same-origin`,headers:f};a===`GET`||a===`HEAD`?p=Ci(p,d):(f[`Content-Type`]=`application/x-www-form-urlencoded;charset=UTF-8`,m.body=new URLSearchParams(Object.entries(d).flatMap(([e,t])=>Array.isArray(t)?t.map(t=>[e,String(t)]):[[e,String(t==null?``:t)]])));let h=wi(r.signal,(i=r.timeout)==null?Si:i);m.signal=h.signal;try{let e=await fetch(p,m);if(!e.ok)throw Error(`LTD request failed with status ${e.status}`);return e.json()}catch(e){var g;throw(g=r.signal)!=null&&g.aborted?e:h.wasTimedOut()?Error(`请求超时,请检查网络`,{cause:e}):e}finally{h.cleanup()}}var Ei,Di,Oi=(Ei=void 0)==null?void 0:Ei.trim().replace(/\/+$/,``);function ki(e,t){return(e==null?void 0:e.trim())||(Oi?`${Oi}${t}`:t)}var Ai=ki(void 0,`/api/dashboard/data`),ji=ki(void 0,`/shop/frontend/home/getWebsiteSetting`),Mi=ki(void 0,`/shop/frontend/home/checkBigDataPassword`),Ni=Number((Di=void 0)==null?void 0:Di),Pi=NaN,Fi=Number.isFinite(Ni)?Math.max(2e3,Ni):1200*1e3,Ii=Number.isFinite(Pi)?Math.max(2e3,Pi):7200*1e3,Li=[`total_exposure`,`total_pv`,`today_pv`,`yesterday_pv`,`month_pv`,`last_month_pv`,`interact_count`],Ri=new Set([`company_logo`,`company_name`]),zi,Bi=/(?:未开启.*(?:数据大屏|运营大屏)|不能访问.*(?:数据大屏|运营大屏))/,Vi=class extends Error{constructor(e){super(e),this.name=`DashboardDisabledError`}};function Hi(e){if((e==null?void 0:e.code)!==0||!e.data||typeof e.data!=`object`){let t=(e==null?void 0:e.msg)||(e==null?void 0:e.message)||`Dashboard response is invalid`;throw Bi.test(t)?new Vi(t):Error(t)}return e.data}function Ui(e){return Li.reduce((t,n)=>{let r=e[n],i=Number(r);return Number.isFinite(i)&&i!==0&&(t[n]=r),t},{})}function Wi(){return zi||(zi=Ti(ji).then(e=>{if((e==null?void 0:e.code)!==0||!e.data||typeof e.data!=`object`)throw Error((e==null?void 0:e.msg)||`Website setting response is invalid`);return e.data}).catch(e=>{throw zi=void 0,e})),zi}function Gi(e){var t;return Number(e==null||(t=e.big_data_config)==null?void 0:t.status)===1}function Ki(e){var t,n;let r=(t=e==null?void 0:e.big_data_password)==null?e==null||(n=e.big_data_config)==null?void 0:n.big_data_password:t;return Number(r==null?void 0:r.status)===1}async function qi(e,t){let n=await Ti(Mi,{password:e},`post`,{signal:t});if((n==null?void 0:n.code)!==0||!n.data||typeof n.data!=`object`)throw Error((n==null?void 0:n.msg)||(n==null?void 0:n.message)||`密码验证请求失败`);return Number(n.data.is_pass)===1}async function Ji(e){return Ui(Hi(await Ti(Ai,{is_data:1},`get`,{signal:e})))}async function Yi(e){if(!Gi(await Wi()))throw Error(`Big data screen is not enabled`);return Hi(await Ti(Ai,{},`get`,{signal:e}))}function Xi(e){return Object.entries(e==null?{}:e).reduce((e,[t,n])=>{if(n===``||n==null)return e;if(typeof n==`object`)return e[t]=n,e;if(typeof n==`string`&&Ri.has(t)){let r=n.trim();return r&&(e[t]=r),e}let r=Number(typeof n==`string`?n.split(`,`).join(``):n);return Number.isFinite(r)&&(e[t]=r),e},{})}function Zi(e,t){if(Object.is(e,t))return!0;if(!e||!t||typeof e!=`object`||typeof t!=`object`)return!1;if(Array.isArray(e)||Array.isArray(t))return!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length?!1:e.every((e,n)=>Zi(e,t[n]));let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>Object.prototype.hasOwnProperty.call(t,n)&&Zi(e[n],t[n]))}function Qi(e,t,{preserveNonZeroKeys:n=[]}={}){let r=Xi(t),i=!1,a=e==null?{}:e,o={...a},s=new Set(n);return Object.entries(r).forEach(([e,t])=>{let n=Number(a[e]);s.has(e)&&Number.isFinite(n)&&n!==0||Zi(a[e],t)||(o[e]=t,i=!0)}),[{key:`sales_performance`,currentKey:`monthly_sales`,previousKey:`last_new_months_sales`},{key:`order_performance`,currentKey:`monthly_order`,previousKey:`last_new_months_order`}].forEach(({key:e,currentKey:t,previousKey:n})=>{if(!(r[e]===void 0&&(r[t]!==void 0||r[n]!==void 0)))return;let a=o[n],s=a?o[t]/a*100:0;Object.is(o[e],s)||(o[e]=s,i=!0)}),i?o:e}var $i=5e3;function ea(){return!1}function ta(){let[e]=(0,I.useState)(bi),[t,n]=(0,I.useState)(()=>{var t;return(t=e==null?void 0:e.data)==null?null:t}),[r,i]=(0,I.useState)({error:null,isSnapshot:!!e}),[a,o]=(0,I.useState)({status:`checking`,error:null,passwordError:null,passwordExpiresAt:null,websiteSetting:null}),s=(0,I.useRef)(null),c=(0,I.useRef)(0);(0,I.useEffect)(()=>{let e=!0,t,r=async()=>{try{let t=await Wi();if(!e)return;let r=Gi(t)&&!ea(),a=r&&Ki(t),s=a?_i():null;a||Z(),r||(yi(),n(null),i({error:null,isSnapshot:!1})),o({status:r?a&&!s?`password-required`:`enabled`:`disabled`,error:null,passwordError:null,passwordExpiresAt:s,websiteSetting:t})}catch(n){if(!e)return;o({status:`checking`,error:n,passwordError:null,passwordExpiresAt:null,websiteSetting:null}),t=window.setTimeout(r,$i)}};return r(),()=>{e=!1,window.clearTimeout(t)}},[]),(0,I.useEffect)(()=>{if(a.status!==`enabled`)return;let e=!0,t,r,s=0,c=(t,r)=>{e&&(n(e=>{let n=Qi(e,t,r);return xi(n),n}),i({error:null,isSnapshot:!1}))},l=async()=>{let a=!0;r=new AbortController;let u=!s||Date.now()-s>=Ii;try{if(u){let t=Ji(r.signal).then(e=>({data:e,error:null}),e=>({data:null,error:e})),n=await Yi(r.signal);e&&(s=Date.now()),c(n,{preserveNonZeroKeys:Li});let i=await t;if(i.error){if(r.signal.aborted||i.error instanceof Vi)throw i.error}else c(i.data)}else c(await Ji(r.signal))}catch(t){t instanceof Vi?(a=!1,Z(),yi(),e&&(n(null),i({error:null,isSnapshot:!1}),o(e=>({...e,status:`disabled`,error:null,passwordError:null,passwordExpiresAt:null})))):t.name!==`AbortError`&&e&&i(e=>({...e,error:t}))}finally{e&&a&&(t=window.setTimeout(l,Fi))}};return l(),()=>{e=!1,window.clearTimeout(t),r==null||r.abort()}},[a.status]),(0,I.useEffect)(()=>()=>{var e;c.current+=1,(e=s.current)==null||e.abort()},[]);let l=(0,I.useCallback)(async e=>{var t;let r=c.current+1;c.current=r,(t=s.current)==null||t.abort();let a=new AbortController;s.current=a,o(e=>({...e,status:`password-checking`,passwordError:null}));try{let t=await qi(e,a.signal);if(c.current!==r)return!1;let s=t?Date.now()+di:null;if(t){vi(s);let e=bi();e&&(n(t=>t==null?e.data:t),i({error:null,isSnapshot:!0}))}else Z();return o(e=>({...e,status:t?`enabled`:`password-required`,passwordError:t?null:`访问密码不正确,请重新输入`,passwordExpiresAt:s})),t}catch(e){return a.signal.aborted||c.current!==r?!1:(o(t=>({...t,status:`password-required`,passwordError:(e==null?void 0:e.message)||`密码验证失败,请稍后重试`,passwordExpiresAt:null})),Z(),!1)}finally{s.current===a&&(s.current=null)}},[]);return{data:t,error:r.error,isSnapshot:r.isSnapshot,accessError:a.error,accessStatus:a.status,passwordError:a.passwordError,verifyDashboardPassword:l,websiteSetting:a.websiteSetting}}var na=1920,ra=1080,ia=1180,aa=/(?:smart[- ]?tv|hbbtv|netcast|web0s|tizen|googletv|android tv|appletv|roku|bravia|viera|aftb|aftm|aftt|aftss|crkey|mitv)/i,oa=/(?:iphone|ipod|windows phone|iemobile|blackberry|bb10|opera mini|opera mobi|android.+mobile|mobile.+android)/i;function sa(e){let t=String(e||``).trim().toLowerCase();return t===`mobile`||t===`phone`?`phone`:t===`pc`||t===`desktop`?`desktop`:null}function ca(e=``){let t=new URLSearchParams(String(e||``).replace(/^\?/,``));return sa(t.get(`device_type`)||t.get(`_device_type`))}function la(e=``){return aa.test(e)?`tv`:oa.test(e)?`phone`:`desktop`}function ua({deviceTypeOverride:e=null,userAgent:t=``,viewportHeight:n=1,viewportWidth:r=1}){let i=Math.max(Number(r)||0,1),a=Math.max(Number(n)||0,1),o=i/a,s=sa(e),c=la(t),l=s||c,u=c===`phone`,d=!s&&c!==`tv`&&o<.95,f=!s&&u&&o<1;if(s===`phone`||d||f){let e=d||f||o<1,t=e?500:920,n=i/t;return{viewportWidth:i,viewportHeight:a,width:t,height:a/n,scale:n,deviceType:l,isPhoneDevice:u,isMobile:!0,mode:e?`portrait`:`mobile-landscape`}}if(u&&!s){let e=ia,t=i/e;return{viewportWidth:i,viewportHeight:a,width:e,height:a/t,scale:t,deviceType:l,isPhoneDevice:u,isMobile:!1,mode:`compact`}}let p=Math.min(i/na,a/ra),m=i/p,h=a/p,g=Math.max(0,m-na),_=Math.max(0,h-ra);return{viewportWidth:i,viewportHeight:a,width:m,height:h,scale:p,deviceType:l,isPhoneDevice:u,isMobile:!1,mode:`landscape`,aspectMode:o>=2.05?`ultrawide`:o<=1.5?`tall`:`standard`,sidePanelWidth:Math.min(640,520+g*.18),centerPanelWidth:Math.min(1040,800+g*.4),overviewWidth:Math.min(1040,820+g*.36),stackGap:Math.min(26,10+_*.035)}}function da(){return ua({deviceTypeOverride:ca(window.location.search),userAgent:window.navigator.userAgent,viewportHeight:window.innerHeight,viewportWidth:window.innerWidth})}var Q={HIGH:`high`,BALANCED:`balanced`,REDUCED:`reduced`};function fa(e){let t=Number(e);return Number.isFinite(t)&&t>0?t:void 0}function pa({deviceMemory:e,hardwareConcurrency:t,isMobile:n=!1,prefersReducedMotion:r=!1,saveData:i=!1}={}){let a=fa(e),o=fa(t),s=i||a!==void 0&&a<=4||o!==void 0&&o<=4?Q.REDUCED:n||a!==void 0&&a<=8||o!==void 0&&o<=8?Q.BALANCED:Q.HIGH;return{enableContinuousMotion:!r,maxRendererDpr:s===Q.REDUCED?1:s===Q.BALANCED?1.5:2,projectedPositionInterval:s===Q.REDUCED?64:s===Q.BALANCED?32:16,warmupFallbackDelay:s===Q.REDUCED?160:s===Q.BALANCED?96:48,warmupTimeout:s===Q.REDUCED?1800:s===Q.BALANCED?1e3:600,tier:s}}function ma(e=!1){var t,n,r;let i=window.navigator,a=(t=(n=window).matchMedia)==null?void 0:t.call(n,`(prefers-reduced-motion: reduce)`);return pa({deviceMemory:i==null?void 0:i.deviceMemory,hardwareConcurrency:i==null?void 0:i.hardwareConcurrency,isMobile:e,prefersReducedMotion:!!(a!=null&&a.matches),saveData:!!(!(i==null||(r=i.connection)==null)&&r.saveData)})}function ha(e,t){let n=!!(e!=null&&e.enableContinuousMotion);return t===Q.REDUCED?{...e,enableContinuousMotion:!1,enableGlobeRotation:n,maxRendererDpr:1,projectedPositionInterval:Math.max(96,e.projectedPositionInterval),tier:Q.REDUCED}:{...e,enableGlobeRotation:n}}function ga(e){return new Promise(t=>{let n=new Image,r=!1,i=()=>{r||(r=!0,n.onload=null,n.onerror=null,t())};n.decoding=`async`,n.onload=i,n.onerror=i,n.src=e,n.complete&&i()})}function _a(e,t,n){return`requestIdleCallback`in window?{id:window.requestIdleCallback(e,{timeout:t}),type:`idle`}:{id:window.setTimeout(e,n),type:`timer`}}function va(e){var t,n;e&&(e.type===`idle`?(t=(n=window).cancelIdleCallback)==null||t.call(n,e.id):window.clearTimeout(e.id))}function ya(){let[e,t]=(0,I.useState)(da);return(0,I.useEffect)(()=>{var e;let n,r=()=>{window.cancelAnimationFrame(n),n=window.requestAnimationFrame(()=>{t(da())})};return window.addEventListener(`resize`,r),(e=window.visualViewport)==null||e.addEventListener(`resize`,r),()=>{var e;window.cancelAnimationFrame(n),window.removeEventListener(`resize`,r),(e=window.visualViewport)==null||e.removeEventListener(`resize`,r)}},[]),e}function ba(e){if(document.title=window.dashboardDocumentTitle||(e.companyName?`${e.title} - ${e.companyName}`:e.title),!e.logoUrl)return;let t=document.querySelector(`link[rel~="icon"]`);t||(t=document.createElement(`link`),t.setAttribute(`rel`,`icon`),t.setAttribute(`data-dashboard-favicon`,`true`),document.head.appendChild(t)),t.setAttribute(`href`,e.logoUrl)}function xa(e){(0,I.useEffect)(()=>{ba(e)},[e.companyName,e.logoUrl,e.title])}function Sa(e){let[t,n]=(0,I.useState)(!1);return(0,I.useEffect)(()=>{let t,r,i;return t=window.requestAnimationFrame(()=>{r=window.requestAnimationFrame(()=>{i=window.setTimeout(()=>n(!0),e)})}),()=>{window.cancelAnimationFrame(t),window.cancelAnimationFrame(r),window.clearTimeout(i)}},[e]),t}function Ca(e,t){let[n,r]=(0,I.useState)(!1);return(0,I.useEffect)(()=>{if(!e){r(!1);return}let n=!1,i,a,o=performance.now(),s=[...et,t].filter(Boolean),c=Promise.all(s.map(ga)),l=new Promise(e=>{a=window.setTimeout(e,Ye)});return Promise.race([c,l]).then(()=>{window.clearTimeout(a);let e=Math.max(0,520-(performance.now()-o));i=window.setTimeout(()=>{n||r(!0)},e)}),()=>{n=!0,window.clearTimeout(i),window.clearTimeout(a)}},[t,e]),n}function wa(e,t){(0,I.useEffect)(()=>{if(!e)return;let n=!1,r,i,a=ma(t.isPhoneDevice),o=Ft(),s=t.mode===`portrait`?360:300,c=t.isMobile?{displayScale:t.scale,viewportHeight:s-48,viewportWidth:Math.max(1,t.width-36)}:{displayScale:1,viewportHeight:Math.max(1,t.height-94),viewportWidth:t.width};return r=_a(()=>{Vt().then(e=>{n||(i=_a(()=>{n||e.prepareGlobeAssets({...c,textureWidth:o.textureWidth})},a.warmupTimeout+600,a.warmupFallbackDelay))}).catch(()=>{})},a.warmupTimeout,a.warmupFallbackDelay),()=>{n=!0,va(r),va(i)}},[t.height,t.isPhoneDevice,t.isMobile,t.mode,t.scale,t.width,e])}var Ta=ni();function Ea({dashboardEffects:e,dashboardLayout:t,hasDataError:n,systemImagesReady:r,systemReady:i}){return[`dashboard-viewport`,`is-${t.mode}`,`is-${t.deviceType}-device`,t.aspectMode?`is-${t.aspectMode}-screen`:``,i?`is-data-ready is-system-ready`:`is-system-loading`,r?`is-visual-assets-ready`:`is-visual-assets-loading`,e.enterFade?`with-enter-motion`:``,n?`has-data-error`:``].filter(Boolean).join(` `)}function Da({data:e,error:t,isSnapshot:n}){return n||t&&e?`degraded`:`live`}function Oa(){var e,t,n,r,i,a,o;let s=ya(),c=Sa(500),{data:l,error:u,accessStatus:d,isSnapshot:f,passwordError:p,verifyDashboardPassword:m,websiteSetting:h}=ta(),g=l==null?void 0:l.company_logo,_=l==null?void 0:l.company_name,v=l==null?void 0:l.logo,{effects:y,meta:b,modules:x}=(0,I.useMemo)(()=>si(h,{company_logo:g,company_name:_,logo:v}),[g,_,v,h]),S=d===`enabled`,C=!!l,w=it(d,C),T=ot(s),E=Ca(S,b.logoUrl),D=nt(d,c,C,w),O={locale:(e=(t=h==null?void 0:h.language_type)==null?h==null||(n=h.website_info)==null?void 0:n.language_type:t)==null?document.documentElement.lang:e,siteName:b.companyName,websiteId:(r=(i=(a=h==null||(o=h.website_info)==null?void 0:o.id)==null?h==null?void 0:h.website_id:a)==null?window.website_id:i)==null?window.websiteId:r};return xa(b),wa(S&&C,s),(0,I.useEffect)(()=>(document.documentElement.classList.add(`big-data-dashboard-page`),window.dispatchEvent(new CustomEvent(`dashboard:app-mounted`)),()=>{document.documentElement.classList.remove(`big-data-dashboard-page`),document.documentElement.style.removeProperty(`--dashboard-subscription-scale`),document.documentElement.style.removeProperty(`--dashboard-subscription-enter-scale`)}),[]),(0,I.useEffect)(()=>{let e=s.scale;document.documentElement.style.setProperty(`--dashboard-subscription-scale`,String(e)),document.documentElement.style.setProperty(`--dashboard-subscription-enter-scale`,String(e*.8))},[s.scale]),(0,I.useEffect)(()=>{D&&window.dispatchEvent(new CustomEvent(`dashboard:system-ready`))},[D]),(0,L.jsxs)(`div`,{className:Ea({dashboardEffects:y,dashboardLayout:s,hasDataError:!!u,systemImagesReady:E,systemReady:D}),style:{"--dashboard-panel-texture-image":`url("${Ze}")`,"--dashboard-tech-backdrop-image":`url("${Qe}")`,"--system-loader-scale":T},children:[rt(d,w)&&(0,L.jsx)(ei,{accessStatus:d,hasDashboardData:C,isReady:D,minimumElapsed:c}),d===`disabled`?(0,L.jsx)(Kr,{aspectMode:s.aspectMode,isMobile:s.isMobile}):[`password-required`,`password-checking`].includes(d)?(0,L.jsx)(Jr,{error:p,isMobile:s.isMobile,isSubmitting:d===`password-checking`,onSubmit:m}):d===`error`?(0,L.jsx)(Zr,{eyebrow:`DATA SERVICE UNAVAILABLE`,message:`大屏配置未能完成加载,请检查网络连接后重试。`,title:`暂时无法连接数据中心`}):S&&(C||w)?(0,L.jsx)(Wr,{copyrightSubscription:O,data:l==null?Ta:l,dataState:Da({data:l,error:u,isSnapshot:f}),isLoading:w,layout:s,meta:b,modules:x}):null]})}ui();var ka=0,Aa=120,$=document.getElementById(`dashboard-boot-loader`),ja=!1,Ma=!1,Na=!1;function Pa(){Na||!ja||!Ma||!$||(Na=!0,document.documentElement.classList.remove(`has-boot-loader`),$.setAttribute(`aria-hidden`,`true`),$.classList.add(`is-leaving`),window.setTimeout(()=>{$.remove()},Aa))}window.addEventListener(`dashboard:app-mounted`,()=>{ja=!0,Pa()},{once:!0}),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{window.setTimeout(()=>{Ma=!0,Pa()},ka)})}),(0,He.createRoot)(document.getElementById(`root`)).render((0,L.jsx)(Oa,{}));export{ma as n,H as r,ha as t};