PageSourceSearch

https://www.13winds.com/assets/theme-0/index.Clz1CNc3.js

js 13winds.com collected 2026-10-07 22:45:08 UTC 1,780 bytes, 1 lines download raw bytes

1import{fJ as p,sY as b,b as g,z as B,sZ as E,s_ as S}from"./commonChunk.BIjOjUCX.js";import{V as _,t as a}from"./vendorChunk.B6ure_9S.js";import"../vendors/vendor-stable.BZTOV27i.js";const j=()=>{var e;return!!p().browser.isWebSpace&&!!((e=window.jsBridge)!=null&&e.postMessage)},y=()=>b("mock.alertWsAuthResult")==="true",A=_({disabled:()=>{var e;return!((e=window.jsBridge)!=null&&e.postMessage)},sendMessage(e){var s,r;(r=(s=window.jsBridge)==null?void 0:s.postMessage)==null||r.call(s,"WSEvents",JSON.stringify(e))},registerMessage(e){if(window.jsBridge)return window.jsBridge.onWSEvents=s=>e(s),()=>{delete window.jsBridge.onWSEvents}}});let n=null;async function M(e){var w,f,d,c;const[s,r]=await a(E()),t=(w=r==null?void 0:r.data)==null?void 0:w.data;if(s||!t)return!1;const[m,o]=await a(Promise.resolve(A("attestation").send({nonce:t.nonce,origin:window.location.origin},{timeout:1e4}))),l=o==null?void 0:o.payload;if(m||Number(o==null?void 0:o.status)!==1||!l)return!1;const[W,i]=await a(S({challengeId:t.challengeId,...l})),h=(d=(f=i==null?void 0:i.data)==null?void 0:f.data)==null?void 0:d.isWsBrowser;return W||!h?!1:(typeof e=="number"&&((c=g().userInfos)==null?void 0:c.username)===e&&B().markWsBrowserVerified(e),!0)}function u(e){window.__ws_auth_result__=e,y()&&alert(`wsAuthResult: ${e}`)}function k(){var r;const e=j();if(!e)return u(!1),Promise.resolve({isPossibleWsBrowser:e,isWsBrowser:!1});if(n!==null)return n;const s=(r=g().userInfos)==null?void 0:r.username;return typeof s=="number"&&B().hasWsBrowserVerified(s)?(u(!0),Promise.resolve({isPossibleWsBrowser:e,isWsBrowser:!0})):(n=M(s).then(t=>({isPossibleWsBrowser:e,isWsBrowser:t})).catch(()=>({isPossibleWsBrowser:e,isWsBrowser:!1})),n.then(t=>{u(t.isWsBrowser),n=null}),n)}export{k as wsBrowserAuth};

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.