1let host = (typeof window !== 'undefined' && window.__PZ_ORIGIN__) 2 ? String(window.__PZ_ORIGIN__).replace(/\/+$/, '') 3 : (location.protocol + '//' + location.host); 4let _u; 5try { _u = new URL(host); } catch (e) { _u = new URL(location.protocol + '//' + location.host); host = _u.origin; } 6 7// Default: Virginia east via nginx coast LB (/w/). VPN picker can pin west/east/tor. 8let stream = (_u.protocol === 'https:' ? 'wss://' : 'ws://') + _u.host + '/w/?coast=east'; 9try { 10 var id = localStorage.getItem('selectedVpnRegion') || ''; 11 var custom = (localStorage.getItem('proxServer') || '').trim(); 12 if (id === '9' || id === 'tor') { 13 stream = (_u.protocol === 'https:' ? 'wss://' : 'ws://') + _u.host + '/api/websocket-9/'; 14 } else if (id === '3') { 15 stream = (_u.protocol === 'https:' ? 'wss://' : 'ws://') + _u.host + '/w/?coast=west'; 16 } else if (id === '4' || !id) { 17 stream = (_u.protocol === 'https:' ? 'wss://' : 'ws://') + _u.host + '/w/?coast=east'; 18 } else if (id === 'custom') { 19 var cu = new URL(custom); 20 if ((cu.protocol === 'wss:' || cu.protocol === 'ws:') && custom.charAt(custom.length - 1) === '/') stream = custom; 21 } 22} catch (e) {} 23 24let _CONFIG = { 25 streamurl: stream, 26 bareurl: host + '/api/edge/' 27}; 28if (typeof window !== 'undefined') window._CONFIG = _CONFIG;
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.