1import{d as e,u as t,j as a,o as l,l as i,y as n,e as s,t as o,b as r,f as d,S as u,h as c,V as p,c as w,g as m,m as f,x as v,n as h,F as x,r as g,i as y,_ as b,B as _,k,X as C,Y as $,b8 as j,a0 as A,ag as F,b9 as M,ba as S,A as D,p as I,Z as T,a2 as L,a3 as E,ap as z,aq as N,as as O,at as H,a as P,bb as R,C as U,D as B,E as V,G as W,H as Z,I as G,J,K as q,M as K,N as Q,O as X,P as Y,Q as ee,R as te}from"./index-B2ii4X_Q.js";import{_ as ae}from"./LoginDialog.vue_vue_type_style_index_0_lang-CiXxmpNK.js";import{u as le}from"./useTimeGlobal-DEfo2s9H.js";import{e as ie,f as ne,_ as se}from"./index.vue_vue_type_script_setup_true_lang-wMhzHLNl.js";import{T as oe}from"./Tabbar-BLHhETBq.js";import{_ as re}from"./BaseDeclaration.vue_vue_type_script_setup_true_lang-DssCPLkW.js";import{u as de,_ as ue,a as ce}from"./useSubmitLock-im9ZxmCF.js";import{E as pe,_ as we}from"./LazyImg.vue_vue_type_script_setup_true_lang-D5Iz8f0S.js";import{a as me,u as fe,g as ve}from"./useTimeZoneFormat-9YVygFS8.js";import{_ as he,a as xe,E as ge,b as ye}from"./SettingFlashOpenAffectRow.vue_vue_type_script_setup_true_lang-DzWLK9Pd.js";import{b as be}from"./BaseFlag.vue_vue_type_style_index_0_lang-C-6CRfDv.js";import{a as _e,u as ke,p as Ce}from"./time-Ld0BjKto.js";import{u as $e,_ as je}from"./news-D-O88Ca7.js";import{u as Ae}from"./useHotFlash-BBOgNQwS.js";import{_ as Fe}from"./BaseDivider-C2OVU0p_.js";import{e as Me,d as Se,c as De,u as Ie}from"./useEventList-Dl7pXryh.js";import{g as Te}from"./url-BbNeLq-j.js";import{F as Le,a as Ee}from"./FlashShareDialog.vue_vue_type_style_index_0_lang-Dhb3BUEl.js";import{_ as ze}from"./index.vue_vue_type_script_setup_true_lang-BdyDGL4s.js";import{u as Ne}from"./useUser-CgYC5NNn.js";const Oe=e({__name:"SettingFlashOnSound",setup(e){const{t:p}=t(),w=me(),m=a({get:()=>w.onSound,set:e=>{w.setOnSound(e)}});return(e,t)=>{const a=ie;return l(),i(a,{trigger:"hover",placement:"top",style:{background:"var(--toast)",color:"var(--on-toast)"},"arrow-style":{background:"var(--toast)"}},{trigger:n(()=>[d(r(u),{icon:"lucide:bell","w:p":"3px","w:w":"24px","w:h":"24px","w:m":"r-8px","w:cursor":"pointer","w:bg":"hover:$gray-200","w:border":"rounded-4px",style:{outline:"none"},class:c(r(m)?"text-$primary":"hover:text-$gray-700"),onClick:t[0]||(t[0]=e=>m.value=r(m)?0:1)},null,8,["class"])]),default:n(()=>[s("div",null,o(r(p)(r(m)?"notification_on":"notification_off")),1)]),_:1})}}}),He=e({__name:"SettingFlashImportant",setup(e){const{t:n}=t(),s=me(),o=a({get:()=>s.onlyImportant,set:e=>{s.setOnlyImportant(e)}});return(e,t)=>{const a=he;return l(),i(a,{value:r(o),"onUpdate:value":t[0]||(t[0]=e=>p(o)?o.value=e:null),label:r(n)("only_important"),"active-value":1,"inactive-value":0},null,8,["value","label"])}}}),Pe={"w:flex":"~","w:h":"25px","w:justify":"center","w:align":"items-center","w:border":"rounded-100px"},Re={key:0,"w:m":"r-4px","w:text":"space-nowrap 16px"},Ue=e({__name:"UtcTime",setup(e){const t=_e();return(e,a)=>(l(),w("div",Pe,[r(t).currentUtc?(l(),w("span",Re,o(r(t).time),1)):m("",!0)]))}}),Be={key:0,"w:flex":"~","w:align":"items-center","w:p":"l-14px","w:title":"list-not-impt","w:font":"!semibold","w:border":"b-0.5px solid $outline"},Ve=["onClick"],We={key:0,"w:w":"26px","w:flex":"shrink-0","w:h":"17px","w:rounded":"2px","w:overflow":"hidden","w:m":"r-6px"},Ze={key:1,"w:flex":"~","w:align":"items-center","w:p":"y-8px x-10px","w:text":"16px $primary-dark dark:white","w:font":"semibold leading-common","w:border":"b-2px solid $primary-light rounded-t-4px","w:bg":"$gray-50 dark:[#2C3E50]"},Ge={key:0,"w:w":"26px","w:h":"17px","w:flex":"shrink-0","w:rounded":"2px","w:overflow":"hidden","w:m":"r-6px"},Je={"w:flex":"1","w:p":"y-12px",class:"scroller","w:overflow":"y-auto x-hidden"},qe=["href","onClick"],Ke=["innerHTML"],Qe=b(e({__name:"HotFlashSection",props:{tabs:{},length:{},isPulse:{type:Boolean}},setup(e){const t=e,a=f(0);v(()=>t.tabs,e=>{if(e&&e.length>0){const t=e.findIndex(e=>"Chinese Policy & Markets"===e.name);-1!==t&&(a.value=t)}},{immediate:!0});const i=e=>0===e?{backgroundColor:"#f43f5e"}:1===e?{backgroundColor:"#f97316"}:2===e?{backgroundColor:"#eab308"}:3===e?{backgroundColor:"#10b981"}:4===e?{backgroundColor:"#3b82f6"}:{backgroundColor:"var(--gray-400)"};return(e,t)=>{var n,u,p,f;const v=pe;return l(),w("section",{"w:flex":"~ col","w:bg":"$main-bg","w:min-h":"230px",style:h({height:100/e.length+"%"}),"w:p":"x-16px"},[e.tabs.length>1?(l(),w("div",Be,[(l(!0),w(x,null,g(e.tabs,(e,t)=>{var i,n,u,p;return l(),w("div",{key:e.id,"w:m":"r-24px","w:cursor":"pointer","w:text":"list-sec $on-surface-low","w:font":"!leading-22px","w:transition":"duration-100","w:flex":"~","w:align":"items-center",class:c({"is-active-tab":r(a)===t}),onClick:e=>a.value=t},[(null==(n=null==(i=e.data)?void 0:i.image)?void 0:n.url)?(l(),w("div",We,[d(v,{style:{width:"100%",height:"100%"},src:null==(p=null==(u=e.data)?void 0:u.image)?void 0:p.url,fit:"
1cover"},null,8,["src"])])):m("",!0),s("span",null,o(e.name),1)],10,Ve)}),128))])):(l(),w("div",Ze,[(null==(u=null==(n=e.tabs[r(a)].data)?void 0:n.image)?void 0:u.url)?(l(),w("div",Ge,[d(v,{style:{width:"100%",height:"100%"},src:null==(f=null==(p=e.tabs[r(a)].data)?void 0:p.image)?void 0:f.url,fit:"cover"},null,8,["src"])])):m("",!0),s("span",null,o(e.tabs[r(a)].name.toLocaleUpperCase()),1)])),s("div",Je,[(l(!0),w(x,null,g(e.tabs[r(a)].flash_list,(t,a)=>{var n,d;return l(),w("a",{key:t.id,href:r(y)(`flashDetail.html?id=${t.id}`),target:"_blank","w:flex":"~","w:p":"x-10px y-8px","w:border":"rounded-6px","w:overflow":"hidden",class:c(["hot-flash-item transition",{pulse:e.isPulse&&0===a}]),onClick:e=>r($e)({pageName:"HomePage",module:"topNews",action:"click",type:"content",object:null,params:{order:a+1,id:t.id,source_type:"flash",is_vip:0}})},[s("span",{"w:font":"leading-20px","w:text":"11px center white","w:flex":"shrink-0","w:w":"20px","w:h":"20px","w:border":"rounded-full","w:m":"r-6px",style:h(i(a))},o(a+1),5),s("div",{"w:text":"$gray-800 13px","w:font":"semibold leading-common",class:"transition",innerHTML:(null==(n=null==t?void 0:t.data)?void 0:n.title)||(null==(d=null==t?void 0:t.data)?void 0:d.content)||""},null,8,Ke)],10,qe)}),128))])],4)}}}),[["__scopeId","data-v-5254a4ce"]]),Xe={key:0,"w:flex":"~ col","w:overflow":"y-auto x-hidden",class:"scroller","w:border":"r-0.5px solid $outline","w:p":"t-16px","w:bg":"$main-bg",style:{width:"var(--side-hot-width)",height:"calc(100vh - var(--header-height))",gap:"24px"}},Ye=e({__name:"HotFlash",setup(e){const t=_(),n=a(()=>
1t.windowWidth),{hotFlashs:o,getHotFlashs:d}=Ae({filterName:"Home",exclude:!0});return k(()=>{d()}),(e,t)=>r(o).length>0&&r(n)>=768?(l(),w("div",Xe,[t[0]||(t[0]=s("div",{"w:display":"hidden <md:block","w:w":"9px","w:flex":"shrink-0"},null,-1)),(l(!0),w(x,null,g(r(o),e=>(l(),i(Qe,{key:e.id,length:r(o).length,tabs:e.child,"is-pulse":e.isPulse},null,8,["length","tabs","is-pulse"]))),128)),t[1]||(t[1]=s("div",{"w:display":"hidden <md:block","w:w":"9px","w:flex":"shrink-0"},null,-1))])):m("",!0)}}),et=e({__name:"SettingFlashOnNotify",setup(e){const{t:s}=t(),o=me(),u=a({get:()=>o.openNotify,set:e=>{o.setOpenNotify(e)}});return(e,t)=>{const a=he,o=xe;return l(),i(o,{"left-text":r(s)("desktop_notification")},{right:n(()=>[d(a,{value:r(u),"onUpdate:value":t[0]||(t[0]=e=>p(u)?u.value=e:null),"active-value":1,"inactive-value":0},null,8,["value"])]),_:1},8,["left-text"])}}}),tt=e({__name:"SettingFlashOnlyArticleRow",setup(e){const{t:s}=t(),o=me(),u=a({get:()=>o.onlyArticle,set:e=>{o.setOnlyArticle(e)}});return(e,t)=>{const a=he,o=xe;return l(),i(o,{"left-text":r(s)("only_article")},{right:n(()=>[d(a,{value:r(u),"onUpdate:value":t[0]||(t[0]=e=>p(u)?u.value=e:null),"active-value":1,"inactive-value":0},null,8,["value"])]),_:1},8,["left-text"])}}}),at={"w:text":"16px $on-surface-high","w:font":"semibold leading-normal"},lt=e({__name:"SettingFlashMenu",setup(e){const{t:a}=t(),[c,{toggle:m}]=ke();return(e,t)=>{const f=tt,v=Fe,h=ye,g=et,y=ge;return l(),w(x,null,[s("div",C(e.$attrs,{"w:flex":"inline shrink-0","w:bg":"hover:$tap-surface-light","w:border":"rounded-4px","w:text":"hover:$gray-700"}),[d($,{name:"fade",mode:"out-in",duration:100},{default:n(()=>[r(c)?(l(),i(r(u),{key:1,icon:"lucide:x","w:p":"3px","w:w":"24px","w:h":"24px","w:flex":"shrink-0","w:cursor":"pointer",onClick:t[1]||(t[1]=e=>r(m)(!1))})):(l(),i(r(u),{key:0,icon:"lucide:menu","w:p":"3px","w:w":"24px","w:h":"24px","w:flex":"shrink-0","w:cursor":"pointer",onClick:t[0]||(t[0]=e=>r(m)(!0))}))]),_:1})],16),d(y,{modelValue:r(c),"onUpdate:modelValue":t[2]||(t[2]=e=>p(c)?c.value=e:null),class:"flash-setting-drawer","modal-class":"flash-setting-drawer-mask",direction:"rtl","with-header":!1,size:"100%","append-to-body":""},{default:n(()=>[s("div",null,[s("div",at,o(r(a)("general_setting")),1),s("div",null,[d(f),d(v),d(h),d(v),d(g)])])]),_:1},8,["modelValue"])],64)}}}),it={class:"dropdown-header border-half-b","w:flex":"~","w:align":"items-center","w:justify":"between","w:p":"x-12px y-8px"},nt={key:1,class:"checkbox-circle","w:w":"12px","w:h":"12px","w:border":"rounded-full","w:m":"r-8px"},st=["w:text","w:font"],ot={class:"dropdown-body","w:p":"y-8px"},rt=["onClick"],dt={key:1,class:"checkbox-circle","w:w":"12px","w:h":"12px","w:border":"rounded-full","w:m":"r-8px","w:flex":"shrink-0"},ut=["w:text","w:font"],ct=b(e({__name:"CategoryDropdown",props:{category:{},selectedIds:{}},emits:["select","close"],setup(e,{emit:t}){const n=e,d=t,u=f([...n.selectedIds]);v(()=>n.selectedIds,e=>{u.value=[...e]},{deep:!0});const p=a(()=>!!n.category&&u.value.length===n.category.child.length),h=()=>{var e;p.value?u.value=[]:u.value=(null==(e=n.category)?void 0:e.child.map(e=>e.id))||[],d("select",u.value)},y=()=>{u.value=[],d("select",[]),d("close")},b=f(null);return j(b,()=>{d("close")}),(e,t)=>{const a=A("SvgIcon");return e.category?(l(),w("div",{key:0,ref_key:"dropdownRef",ref:b,class:"category-dropdown","w:pos":"fixed z-99","w:m":"t-4px","w:min-w":"210px","w:max-w":"400px","w:max-h":"420px","w:overflow":"y-auto","w:border":"rounded-8px",onClick:t[0]||(t[0]=F(()=>{},["stop"]))},[s("div",it,[s("div",{"w:flex":"1 ~","w:align":"items-center","w:cursor":"pointer",onClick:h},[r(p)?(l(),i(a,{key:0,name:"checked","w:w":"12px","w:h":"12px","w:text":"$primary","w:m":"r-8px"})):(l(),w("div",nt)),s("span",{"w:text":r(p)?"14px $primary":"14px $on-input-low","w:font":r(p)?"500":"400"},"ALL",8,st)]),s("button",{class:"reset-btn","w:text":"14px $on-card-low","w:cursor":"pointer","w:border":"none rounded-4px","w:p":"x-8px y-4px",onClick:y}," Reset ")]),s("div",ot,[(l(!0),w(x,null,g(e.category.child,e=>(l(),w("div",{key:e.id,class:c(["dropdown-item",{"is-selected":r(u).includes(e.id)}]),"w:flex":"~","w:align":"items-center","w:p":"x-12px y-8px","w:cursor":"pointer","w:transition":"all duration-150",onClick:t=>(e=>{const t=u.value.indexOf(e);t>-1?u.value.splice(t,1):u.value.push(e),d("select",u.value)})(e.id)},[r(u).includes(e.id)?(l(),i(a,{key:0,name:"checked","w:w":"12px","w:h":"12px","w:text":"$primary","w:m":"r-8px","w:flex":"shrink-0"})):(l(),w("div",dt)),s("span",{"w:leading":"22px","w:text":r(u).includes(e.id)?"16px $primary":"16px $on-input-low","w:font":r(u).includes(e.id)?"500":"400"},o(e.name),9,ut)],10,rt))),128))])],512)):m("",!0)}}}),[["__scopeId","data-v-e4d3bd42"]]),pt=f([]);let wt=!1,mt=null;function ft(){return{categories:a(()=>pt.value),fetchCategories:async()=>pt.value.length>0?pt.value:mt||(wt?pt.value:(wt=!0,mt=ne().then(e=>{const t=e.data||[];return pt.value=t,t}).catch(e=>[]).finally(()=>{wt=!1,mt=null}),mt))}}const vt={class:"category-bar custom-scrollbar-container","w:pos":"relative","w:p":"l-16px","w:flex":"~","w:align":"items-center"},ht={class:"category-list custom-scrollbar-x","w:flex":"1 ~","w:align":"items-center","w:gap":"12px","w:p":"b-8px <md:x-16px","w:overflow":"x-auto y-hidden"},xt=["onClick"],gt=["data-text"],yt={key:0,class:"category-badge","w:m":"l-4px","w:flex":"inl
1ine ~","w:align":"items-center","w:justify":"center","w:w":"14px","w:h":"14px","w:p":"x-4px","w:text":"10px $on-primary","w:border":"rounded-100px"},bt=b(e({__name:"CategoryBar",emits:["categoryChange"],setup(e,{expose:t,emit:n}){const{categories:u}=ft(),p=n,v=f({}),y=f(null),b=f([]),_=f(null),{width:k}=M(),{left:C,bottom:$}=S(_),j=a(()=>{var e;const t=y.value===(null==(e=u.value[u.value.length-1])?void 0:e.id),a=k.value<768;return{left:t&&a?C.value-40:C.value,top:$.value+4}}),F=e=>{var t;return(null==(t=v.value[e])?void 0:t.length)||0},D=e=>{b.value=e,y.value&&(e.length>0?v.value[y.value]=e:delete v.value[y.value],p("categoryChange",y.value,e))},I=()=>{y.value=null,_.value=null},T=()=>{v.value={},y.value=null,b.value=[],_.value=null,p("categoryChange",0,[])};return t({resetCategory:T}),(e,t)=>{const a=A("SvgIcon");return l(),w("div",vt,[s("div",ht,[(l(!0),w(x,null,g(r(u),e=>{return l(),w("div",{key:e.id,class:c(["category-item",{"is-active":(t=e.id,(null==(i=v.value[t])?void 0:i.length)>0),"is-selecting":r(y)===e.id}]),"w:pos":"relative","w:flex":"inline ~","w:align":"items-center","w:p":"x-12px y-6px","w:text":"16px space-nowrap","w:border":"rounded-100px","w:cursor":"pointer","w:transition":"all duration-200",onClick:t=>((e,t)=>{y.value===e.id?(y.value=null,_.value=null):(y.value=e.id,b.value=v.value[e.id]||[],_.value=t.currentTarget)})(e,t)},[s("span",{class:"category-name","data-text":e.name},o(e.name),9,gt),F(e.id)>0?(l(),w("span",yt,o(F(e.id)),1)):m("",!0),d(a,{name:"right1","w:m":"l-4px","w:w":"12px","w:h":"8px","w:transform":"~","w:transition":"transform duration-200",style:h({transform:r(y)===e.id?"rotate(-90deg)":"rotate(90deg)"})},null,8,["style"])],10,xt);var t,i}),128))]),Object.keys(r(v)).length>0?(l(),w("button",{key:0,class:"reset-all-btn","w:flex":"shrink-0 ~","w:align":"items-center","w:justify":"center","w:m":"l-8px <md:r-32px","w:p":"x-12px y-6px","w:text":"14px $on-card-low","w:cursor":"pointer",onClick:T}," Reset ALL ")):m("",!0),r(y)?(l(),i(ct,{key:1,category:u.value.find(e=>e.id===y.value),"selected-ids":r(b),style:h({left:`${r(j).left}px`,top:`${r(j).top}px`}),onSelect:D,onClose:I},null,8,["category","selected-ids","style"])):m("",!0)])}}}),[["__scopeId","data-v-33259320"]]),_t=["w:bg"],kt={"w:flex":"1","w:min-w":"0"},Ct={id:"flash_header",class:"flash-header border-half-b","w:pos":"-pad:sticky top-0 z-10","w:flex":"~ -pad:col","w:align":"items-center -pad:items-start","w:justify":"between","w:p":"x-16px","w:h":"58px -pad:min-content","w:m":"b-12px","w:bg":"-pad:$main-bg"},$t={class:"flash-header_left","w:w":"-pad:full"},jt={"w:flex":"inline","w:align":"items-center","w:justify":"-pad:between","w:w":"-pad:full"},At={"w:display":"inline-block","w:text":"middle 16px space-nowrap"},Ft={class:"flash-header_right","w:w":"-pad:full"},Mt={"w:flex":"~","w:align":"items-center","w:justify":"-pad:between","w:text":"$gray-500","w:w":"-pad:full","w:h":"-pad:24px","w:m":"-pad:b-8px"},St={"w:flex":"~","w:align":"items-center"},Dt={key:0,"w:bg":"md:$main-bg","w:min-h":"[calc(100vh-var(--header-height)-200px)]"},It={key:2,"w:flex":"~","w:justify":"center","w:align":"items-center","w:min-h":"[calc(100vh-var(--header-height)-200px)]","w:bg":"md:$main-bg"},Tt={key:3,"w:bg":"md:$main-bg"},Lt={"w:w":"min-content","w:m":"x-auto","w:p":"y-20px","w:text":"space-nowrap"},Et=b(e({__name:"FlashModule",props:{size:{}},setup(e){const t=D(),x=me(),{categories:g,fetchCategories:y}=ft(),b=e,C=f(b.size),$=_();"normal"===C.value&&v(()=>$.windowWidth,e=>{C.value=e<=1024?"small":"normal"},{immediate:!0});const j=f("small"===b.size),A=new Date,F=a(()=>x.selectedDate&&x.selectedDate!==Ce(A,"{y}-{m}-{d}")),M=f(null),S=f([]),P=new Map,R=new Map,U=new Map,B=e=>{if(e.size<=100)return;const t=e.keys().next().value;e.delete(t)},V=e=>{P.delete(e),R.delete(e),U.delete(e)},W=e=>{const t=(e=>(e.classification||[]).flatMap(e=>{var t;return(null==(t=e.child)?void 0:t.map(e=>e.id))||[]}))(e);return t.some(e=>S.value.includes(e))},{flashs:Z,loading:G,loadingMore:J,loadedEnd:q,getFlashs:K}=Me(),Q=a(()=>q.value?"noMore":J.value?"loading":"more"),X=async({init:e,showLoading:t=!0})=>{const a={...F.value?{date:x.selectedDate}:{},...S.value.length?{classification:S.value.join(",")}:{}};await K({params:a,init:e,showLoading:t})},Y=(e,t)=>
1{if(0===e)S.value=[];else{const a=S.value.filter(t=>{const a=g.value.find(e=>e.child.some(e=>e.id===t));return a&&a.id!==e});S.value=[...a,...t]}P.clear(),R.clear(),U.clear(),X({init:!0})},ee=()=>{Z.value=[],X({init:!0})},te=a(()=>{const{onlyArticle:e,onlyImportant:t,hotFilter:a,isFilterHot:l,hotFlashMap:i}=x;return Z.value.filter(n=>{const s=!e||2===n.type;let o=!0;t&&(o=0===n.type||2===n.type?n.important:n.data.star>=3);let r=!0;return l&&(r=a.includes(i[n.id])||void 0===i[n.id]&&a.includes(n.hot)),s&&o&&r})}),{playNewFlashTipVoice:ae}=Se(),{flashNotification:le}=De(),ie=e=>{const t=void 0!==(null==e?void 0:e.id)&&U.has(e.id)?{...e,impact:U.get(e.id)}:e,[a]=O({data:[t]});if(!a)return null;const l=H(Z.value,a,2e3);return Z.value=l.list,U.delete(e.id),l},ne={addAction:e=>{if(F.value||x.isFilterHot)return;const t=Z.value.length>0,a=ie(e);a&&t&&!a.existed&&0===a.index&&(ae(a.item),le(e,a.item,x.openNotify))},modifyAction:e=>{F.value||e.data&&ie(e)},delAction:e=>{if(x.setHotFlashMap({value:{[e.id]:void 0},reset:!1}),V(e.id),F.value)return;const t=Z.value.findIndex(t=>t.id===e.id);-1!==t&&Z.value.splice(t,1)},reloadPage:()=>{const e=Math.floor(30*Math.random()+1)-1;setTimeout(()=>{window.location.reload()},1e3*e)},classificationAction:e=>{if(!S.value.length||F.value)return;const t=W(e),a=P.get(e.id);if(t&&a)2===a.action?ne.modifyAction(a):ne.addAction(a);else if(!t){const t=Z.value.findIndex(t=>t.id===e.id);-1!==t&&Z.value.splice(t,1)}a?V(e.id):(R.set(e.id,e),B(R))}},se=({type:e,datas:t})=>{if("flash"===e){const e={1:"addAction",2:"modifyAction",3:"delAction",6:"reloadPage"}[t.action];ne[e]&&ne[e](t)}else if("flash_classification"===e)ne.classificationAction&&ne.classificationAction(t);else if("flash_impact"===e){if(!(null==t?void 0:t.id)||!(null==t?void 0:t.impact))return;const e=Z.value.findIndex(e=>e.id===t.id);if(-1!==e)Z.value[e].impact=t.impact;else{const e=P.get(t.id);e?e.impact=t.impact:(U.set(t.id,t.impact),B(U))}}else"voice"===e||("time"===e?window.SERVER_TIME=t+50:"new_chat"===e?z.emit(N.NEW_CHAT,t):"delete_chat"===e&&z.emit(N.DELETE_CHAT,t))},[oe,{toggle:pe}]=ke(!0),{connect:fe,disconnect:ve}=Ie({url:`${I.vip_news}?lang=${window.validPath[window.validLang.indexOf(window.LANG)]}`,key:"快讯socket",binaryType:"arraybuffer",encrypteMsg:!1,onConnected:()=>{if(!S.value.length){if(!oe.value){if(F.value)return;X({init:!0,showLoading:!1})}oe.value&&pe(!1)}},onMessage:e=>{let t=null,a="";if("string"==typeof e){let i=null;try{i=JSON.parse(e)}catch(l){}i&&i.data&&(a=i.type,t=i.data)}if(a&&["flash","flash_classification","flash_impact","time","new_chat","delete_chat"].includes(a)&&t)if(S.value.length&&"flash"===a){if(3===t.action)return void se({type:a,datas:t});const e=R.get(t.id),l=Z.value.findIndex(e=>e.id===t.id);if(2===t.action&&-1!==l)return e?(W(e)?se({type:a,datas:t}):Z.value.splice(l,1),void V(t.id)):void se({type:a,datas:t});if(![1,2].includes(t.action))return void se({type:a,datas:t});e?(W(e)&&(2===t.action?ne.modifyAction(t):ne.addAction(t)),V(t.id)):(P.set(t.id,t),B(P))}else S.value.length&&"flash"===a||se({type:a,datas:t})}});k(async()=>{await y();try{X({init:!0})}catch(e){}fe()}),T(()=>{ve()});const he=de(async()=>{await X({init:!1,showLoading:!1})});v(()=>x.hotFilter,e=>{X({init:!0})},{deep:!0}),v(()=>x.selectedDate,(e,t)=>{e!==t&&X({init:!0})});const xe=f(null),ge=()=>{xe.value.openCalendar()},ye=a({get:()=>x.selectedDate||void 0,set:e=>{x.setSelectedDate(e)}}),_e=e=>{const t=new Date;return t.setDate(t.getDate()-30),e>Date.now()||e<t.getTime()};return(e,a)=>{const f=Ue,v=be,g=He,y=Oe,b=we,_=ce,k=re,$=E;return l(),w("div",{"w:flex":"1","w:h":"full","w:w":"0",class:c({"is-small-module":r(j)})},[L((l(),w("div",{id:"flash_scroller",class:"scroller","w:pos":"relative","w:h":"full","w:overflow":"y-auto x-hidden","w:bg":r(t).showSideModule?"$main-bg":"$surface-mkt"},[s("div",{"w:m":"x-auto","w:flex":"~","w:bg":"$main-bg",style:h({maxWidth:r(t).showSideModule?"100%":"1308px"})},[r(t).showSideModule?m("",!0):(l(),i(Ye,{key:0,"w:pos":"sticky z-3 top-0"})),s("div",kt,[s("div",Ct,[s("div",$t,[s("div",jt,[d(v,{ref_key:"pickerRef",ref:xe,"formatted-value":r(ye),"onUpdate:formattedValue":a[0]||(a[0]=e=>p(ye)?ye.value=e:null),class:"flash-date","is-date-disabled":_e},{default:n(()=>[s("div",{"w:flex":"~","w:align":"items-center","w:justify":"center","w:z":"3","
1w:text":"$on-surface-low","w:border":"rounded-100px","w:cursor":"pointer",onClick:ge},[s("span",At,o(r(Ce)(r(x).selectedDate||r(A),"{me} {d}")),1),a[1]||(a[1]=s("span",null,"Â ",-1)),d(f)])]),_:1},8,["formatted-value"])])]),s("div",Ft,[s("div",Mt,[d(g,{"w:m":"r-8px"}),s("div",St,[d(y),d(r(u),{icon:"lucide:refresh-ccw","w:m":"r-8px","w:p":"3px","w:w":"24px","w:h":"24px","w:flex":"shrink-0","w:text":"hover:$gray-700","w:bg":"hover:$tap-surface-light","w:border":"rounded-4px","w:cursor":"pointer",onClick:ee}),d(lt)])])])]),d(bt,{ref_key:"categoryBarRef",ref:M,onCategoryChange:Y},null,512),r(G)&&0===r(te).length?(l(),w("div",Dt)):m("",!0),r(te).length?(l(),i(ue,{key:1,size:r(C),list:r(te),"open-affect":!!r(t).openAffect},null,8,["size","list","open-affect"])):m("",!0),r(G)||0!==r(te).length?m("",!0):(l(),w("div",It,[d(b)])),!r(G)&&r(te).length?(l(),w("div",Tt,[s("div",Lt,[d(_,{status:r(Q),"w:m":"!t-0",onClick:r(he)},null,8,["status","onClick"])])])):m("",!0)])],4),d(k)],8,_t)),[[$,r(G)]])],2)}}}),[["__scopeId","data-v-4805fbbf"]]),zt={"w:flex":"~ 1","w:h":"full","w:pos":"relative"},Nt=e({__name:"index",setup:e=>(e,t)=>(l(),w("div",zt,[d(Et,{size:"normal"})]))}),Ot={class:"detail-page scroller","w:pos":"relative","w:h":"full","w:overflow":"auto","w:bg":"$surface"},Ht={id:"flash_detail","w:pos":"relative","w:p":"24px t-72px","w:min-h":"330px","w:bg":"$surface","w:border":"rounded-8px"},Pt=["src"],Rt={"w:pos":"relative z-2"},Ut={"w:p":"l-16px t-24px b-24px","w:overflow":"x-auto y-hidden","w:flex":"~"},Bt={key:1,id:"flash_detail","w:w":"full","w:max-w":"1308px","w:m":"x-auto t-24px","w:p":"36px","w:bg":"$main-bg"},Vt={"w:flex":"~","w:align":"items-center","w:justify":"between","w:m":"b-16px","w:p":"b-14px","w:border":"b-0.5px dashed $outline"},Wt={key:0,"w:flex":"~","w:align":"items-center","w:num":"list-dft","w:text":"$on-surface-low"},Zt={"w:m":"l-12px"},Gt=e({__name:"Detail",setup(e){const{isMobile:t}=P(),n=D(),d=_(),u=a(()=>y(d.isDark?"imgs/detail_bg_dark.png":"imgs/detail_bg.png")),[c,{toggle:p}
1]=ke(),v=f(null),h=Te().id,{parseTimeZone:g,currentTimeOffset:b}=fe(),k=a(()=>R(v.value,{currentTimeOffset:b.value,parseTimeZone:g})),C=a(()=>window.location.href);c.value||(p(!0),ve(h).then(e=>{if(e&&200===e.status&&e.data){[v.value]=O({data:[e.data]}),$e({pageName:"FlashPage",module:null,action:"load",type:null,object:null,params:{id:v.value.id,source_type:"flash",is_vip:0}});const t=document.createElement("meta");t.setAttribute("name","twitter:url"),t.setAttribute("content",window.location.href),document.head.appendChild(t);const a=document.createElement("meta");t.setAttribute("name","twitter:title"),t.setAttribute("content",v.value.title||""),document.head.appendChild(a);const l=document.createElement("meta");if(t.setAttribute("name","twitter:description"),t.setAttribute("content",k.value),document.head.appendChild(l),v.value.data.pic){const e=document.createElement("meta");t.setAttribute("name","twitter:image"),t.setAttribute("content",v.value.data.pic),document.head.appendChild(e)}}}).finally(()=>{p(!1)}));const $=e=>{$e({pageName:"FlashPage",module:"share",action:"click",type:"button",object:e.label,params:{id:v.value.id,source_type:"flash",is_vip:0}})};return(e,a)=>{const d=E;return L((l(),w("div",Ot,[r(t)?(l(),w(x,{key:0},[s("div",Ht,[s("img",{src:r(u),"w:max-w":"272px","w:w":"[65.7%]","w:pos":"absolute right-0 top-0 z-1"},null,8,Pt),s("div",Rt,[r(v)?(l(),i(Le,{key:0,link:r(C),flash:r(v)},null,8,["link","flash"])):m("",!0)])]),s("div",Ut,[r(v)?(l(),i(je,{key:0,link:r(C),"capture-dom-i-d":"flash_detail",content:r(k),onShareClick:$},null,8,["link","content"])):m("",!0),a[0]||(a[0]=s("div",{"w:flex":"shrink-0","w:w":"16px","w:h":"10px"},null,-1))])],64)):(l(),w("div",Bt,[s("div",Vt,[r(v)?(l(),w("div",Wt,[s("span",null,o(r(Ce)(r(v).timestamp,"{me} {d} {h}:{i}:{s}")),1),s("span",Zt,o(r(Ce)(r(v).timestamp,"{ae}")),1)])):m("",!0),r(v)?(l(),i(je,{key:1,link:r(C),"capture-dom-i-d":"flash_detail",content:r(k),type:"text",onShareClick:$},null,8,["link","content"])):m("",!0)]),r(v)?(l(),i(Ee,{key:0,size:"small",flash:r(v),index:0,"show-date":!1,"show-time":!1,"show-share":!1,"open-affect":!!r(n).openAffect,"page-name":"FlashPage"},null,8,["flash","open-affect"])):m("",!0)]))])),[[d,r(c)]])}}}),Jt={"w:flex":"1","w:h":"0","w:w":"full"},qt=e({__name:"App-flash",setup(e){Ne();const{t:o}=t(),u=D(),p=a(()=>U(o)),w=a(()=>B(o)),f=window.location.href.includes("flashDetail.html"),{isMobile:v}=P();le(!0);const h=_();return V(),W(),(e,t)=>{const a=ae,o=Z,x=q;return l(),i(x,{locale:r(w)},{default:n(()=>[d(o,{locale:r(p),"date-locale":r(J),theme:r(h).darkMode?r(G):void 0,"w:flex":"~ col","w:h":"100vh","w:bg":"$main-bg","w:text":"$on-surface"},{default:n(()=>[s("div",Jt,[d(se,{class:c({"is-flash-page":!r(f),"is-show-side-module":r(u).showSideModule}),"show-header":!r(f)||!r(v)},{default:n(()=>[!r(f)&&r(u).showSideModule?(l(),i(Ye,{key:0})):m("",!0),r(f)?(l(),i(Gt,{key:1})):(l(),i(Nt,{key:2})),r(f)?m("",!0):(l(),i(ze,{key:3}))]),_:1},8,["class","show-header"])]),d(a),r(f)&&r(v)?m("",!0):(l(),i(oe,{key:0}))]),_:1},8,["locale","date-locale","theme"])]),_:1},8,["locale"])}}});window.onerror=(e,t,a,l,i)=>!0,window.addEventListener("error",e=>{},!0);const Kt=K(qt);Kt.use(Q),Kt.use(X),Kt.use(Y),Kt.use(ee),te(),Kt.mount("#app");
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.