PageSourceSearch

https://foliapg.com/assets/theme-0/index.DYqZvH6J.js

js foliapg.com collected 2026-10-08 17:37:53 UTC 6,272 bytes, 1 lines download raw bytes

1import{qX as de,ho as ye,n as J,fF as ge,qY as ee,qZ as pe,o as j,aE as F,aw as te,q_ as z,q$ as ae,fS as C,fT as x,aD as Q,r0 as V}from"./commonChunk.BFXpR10Z.js";import{D as re,t as H}from"./vendorChunk.CgkL40vP.js";import"../vendors/vendor-stable.XrTtKD8T.js";const X=async(t=!1,S=!1,g=!0)=>{const l=a=>ge.ossDecrypt(a),{useMockMaintainIframe:u}=de(),{domainListMap:p}=ye(),r=()=>{var a;return J.request({baseURL:"/",url:u?`${window.location.origin}/pages/503/cocos/maintain-time.json`:"/cocos/maintain-time.json",method:"GET",params:{timestamp:Date.now()}},{maxRetryCount:Math.max(((a=p.ossDomain)==null?void 0:a.length)||0,3),oss:{enable:!0,force:!0},token:{type:!1},cache:{useCacheOnError:()=>!1},error:{checkResCode:!1,action:"silent",failedActions:[{type:"statusCode",code:[404,403],actions:{retry:!1}}]},crypto:{enable:!1}}).then(o=>{const y=typeof o.data=="string"?JSON.parse(l(o.data)):o.data;return JSON.stringify(y)==="{}"?Promise.reject(new Error("empty-maintain-error")):!g||g&&ee(y).health?y:Promise.reject()}).catch(()=>Promise.reject(new Error("request-error")))},w=()=>J.request({baseURL:"/",url:"/cocos/maintain-time-default.json",method:"GET",params:{timestamp:Date.now()}},{oss:{enable:!0,force:!0},token:{type:!1},error:{checkResCode:!1,action:"silent",failedActions:[{type:"statusCode",code:[404,403],actions:{retry:!1}}]},crypto:{enable:!1}}).then(a=>{const o=typeof a.data=="string"?JSON.parse(l(a.data)):a.data;return o&&(o._isDefault=!0),o});try{if(t)return w();if(!S)return r();try{return await r()}catch(a){return await w()}}catch(a){return Promise.reject()}},he=()=>J.request({url:"/api/lobby/h5/config/getAccessRestrictedInfo"},{token:{type:"staticOnly"},oss:{enable:!0},omitKey:["platformType","currency"],crypto:{enable:!1}}),Se=async t=>{const S=await he(),g=await pe().catch(()=>{}),l={...S.data.data,...g};let u="";const p="page-403-payload";sessionStorage.setItem(p,JSON.stringify(l)),t&&(u="page-403-log",sessionStorage.setItem(u,t));const{siteInfos:r}=j(),w=(r==null?void 0:r.title)||(r==null?void 0:r.siteName)||"",a=re(`${window.location.origin}/pages/403/index.html`,{logId:u,payloadId:p,title:w,t:Math.ceil(Date.now()/(1e3*60*5))}),{updateAreaStatus:o}=F();o(!0);const y=te();y.closeAll(),y.open("iframeAccessRestrictedPopup",{options:{src:a,fullScreen:!0,scrollable:!1,closeOnRouteChange:!1,zIndex:ae["modal-top-z-index"],style:{backgroundColor:z.iframeMaintainPopupBg}}})};let _=!1;const d={state:"unknown",timestamp:null},Ae=async t=>{var S,g;if(!_){_=!0;try{t=Object.assign({isSiteFreeze:!1,isSiteFreezeAndMaintain:!1,ipCheck:!0,check403:!1},t);const l=te(),u=!0,{isSiteFreeze:p,isSiteFreezeAndMaintain:r,ipCheck:w,check403:a}=t,o=p,y=r,q=!p&&!r,O="page-503-payload";let U;const{updateSiteMaintenanceStatus:$,updateIPCheck:W}=F(),se=()=>{clearTimeout(U),C.destroy(x.MAINTAININFO),$(!1)},B=e=>{const{siteConfig:s}=j(),{language:n}=Q();return{siteConfig:s,...e,staffall:{online:{type:1,url:e.online_service}},maintainTimeInfo:ee(e),requestInfo:t.requestInfo,language:n}},E=e=>{const s=e.end_time*1e3-Date.now();s>0&&(C.destroy(x.MAINTAININFO),U=window.setTimeout(()=>{C.create({key:x.MAINTAININFO,immediate:!0,interval:1e3*60*5,pollingHandler:async()=>{const[n,i]=await H(X(!1,!1));if(n&&["empty-maintain-error","request-error"].includes(n.message))return b.end();i&&JSON.stringify(i)!==JSON.stringify(e)&&(b.update(B(i)),E(i))}})},s))},G=e=>{Object.entries(e).forEach(([s,n])=>{sessionStorage.setItem(s,n)})},v=e=>{e.style.textAlign="left";const s=e.children;for(const n of s)v(n)},b={update:e=>{G({[O]:JSON.stringify(e)})},start:async e=>{const{siteMaintenanceStatus:s,areaStatus:n}=F();if(s||!n)return;const i=503,{siteInfos:h}=j(),T=B(e),ie=JSON.stringify(T),oe=(h==null?void 0:h.title)||(h==null?void 0:h.siteName)||"Access Restricted",ce=re(`${window.location.origin}/pages/${i}/index.html`,{payloadKey:O,title:oe,useIframe:u,t:Math.ceil(Date.now()/(1e3*60*5))});if($(!0),u){G({[O]:ie}),E(e);const f=(T.annSkinConfig||[]).find(k=>k.languageCodes.includes(T.language||"")&&k.backgroundColorType===1),le=f!=null&&f.backgroundColorType?{backgroundColor:(f==null?void 0:f.backgroundColorUrl)||z.iframeMaintainPopupBg,backgroundImage:(f==null?void 0:f.backgroundColorUrl)||"",width:"6.9rem"}:{backgroundColor:z.iframeMaintainPopupBg,width:"6.9rem"};l.closeAll(),l.open("iframeMaintainPopup",{options:{src:ce,closeOnRouteChange:!1,zIndex:ae["modal-top-z-index"],style:le,className:"maintain-pop"}}).then(()=>{var k;q&&E(e);try{const M=(k=document.querySelector(".maintain-pop"))==null?void 0:k.querySelector(".ui-iframe-popup__content"),A=M==null?void 0:M.querySelector("iframe");A&&(A.onload=()=>{var K,Z;const m=(Z=(K=A.contentDocument)==null?void 0:K.body)==null?void 0:Z.querySelector(".matainContentWrap"),N=m==null?void 0:m.querySelector("#accessRestrictedImagePath"),c=m==null?void 0:m.querySelector("#accessRestrictedContent"),P=m==null?void 0:m.querySelector("#accessRestrictedLogInfo"),ue=c.querySelectorAll("img")||[],fe=[N,...Array.from(ue)].map(D=>new Promise((L,me)=>{const R=new Image;R.src=D.src,R.onload=()=>L(R),R.onerror=()=>me(new Error(`Failed to load image: ${D.src}`))}));Promise.all(fe).then(()=>{setTimeout(()=>{const D=(c==null?void 0:c.scrollHeight)>c.clientHeight?c.clientHeight:c==null?void 0:c.scrollHeight,L=Number(D)+Number(N==null?void 0:N.scrollHeight)+Number(P==null?void 0:P.scrollHeight)||0;A.style.height=`${L+10}px`,M.style.height=`${L+10}px`},150)}),Q().isRtlLayoutWithLeftAlign&&v(c)})}catch(M){console.warn(M)}})}},end:()=>{u&&l.close("iframeMaintainPopup"),se()}},[Y,I]=await H(X(o,y)),ne=!Y&&!!I;if(w&&q){if(ne){const s=Date.now();if(d.state!=="unknown"&&d.timestamp&&s-d.timestamp>=36e5&&(d.state="unknown",d.timestamp=null),d.state==="whiteList")return;if(d.state==="notWhiteList"){b.start(I);return}const n=new Date(I.start_time*1e3).getTime()<=Date.now(),[,i]=await H(V("whiteList",n?2:void 0));i&&W(i),i&&i.areaStatus&&!i.siteMaintenanceStatus?d.state="whiteList":(d.state="notWhiteList",b.start(I))}else if(a){const e=await V("area");W(e),typeof e.areaStatus=="boolean"&&!e.areaStatus&&Se(JSON.stringify({data:e}))}}else Y?(S=t==null?void 0:t.onError)==null||S.call(t):b.start(I)}catch(l){}finally{_=!1,(g=t==null?void 0:t.onCallback)==null||g.call(t)}}};export{Ae as to503};

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.