Amazing
(function ne(){const e=()=>{};let t=null,o=null,n=[],i=e,r=e,a=e,s=e;try{i=window.fetch,r=window.XMLHttpRequest.prototype.open,a=window.XMLHttpRequest.prototype.send,s=window.XMLHttpRequest.prototype.setRequestHeader}catch(e){0}function c(e){return!(!window.XMLHttpRequest||!window.XMLHttpRequest.prototype||"function"!=typeof window.XMLHttpRequest.prototype[e])}function d(){let e=[];return{subscribe:t=>{e.push(t)},next:t=>{e.length&&e.forEach((e=>e(t)))},clear
)=>{e.length=0}}}const l=new d,p=new WeakMap,u=new WeakMap,E=new WeakMap;c("open")&&c("send")&&c("setRequestHeader")&&(window.XMLHttpRequest.prototype.open=function(...e){if(p.set(this,{method:e[0]&&e[0].toUpperCase()||"GET"}),!0===this.__amicabletbecoxhro||"OFF"===t){r.apply(this,e);const t=u.get(this);t&&t.next()}else{const t=u.get(this)||new d;u.set(this,t),this.__headersReady=function(e,t){let o=null;return()=>{o&&clearTimeout(o),o=setTimeout((()=>{e()}),t)}}((()=>{this.__onPendingHeadersSet&&this.__onPendingHeadersSet()}),50),l.subscribe((()=>{c("open")&&window.XMLHttpRequest.prototype.open.apply(this,e)}))}},window.XMLHttpRequest.prototype.setRequestHeader=function(...e){if(this.readyState===XMLHttpRequest.OPENED||"OFF"===t)s.apply(this,e);else{E.set(this,!0);const t=u.get(this);t&&t.subscribe((()=>{s.apply(this,e),this.__headersReady()}))}},window.XMLHttpRequest.prototype.send=function(e){if(this.addEventListener("readystatechange",(()=>{if("OFF"!==o&&this.readyState===XMLHttpRequest.DONE)try{const t=p.get(this),i=t&&"string"==typeof t.method&&t.method.toUpperCase()||"";let r,a=[];try{const e=this.getAllResponseHeaders();a=(e&&e.trim().split(/[\r\n]+/)).reduce(((e,t)=>{try{const o=t.split(": "),n=o.shift(),i=o.join(": ");e.push({active:!0,header:n,value:i})}catch(e){}return e}),[])}catch(e){a=[]}try{r="string"==typeof this.response?this.response:JSON.stringify(this.response)}catch(e){r=this.response}const s={type:"STASH_REQUESTS",payload:[[{method:i,requestURL:this.responseURL,responsePayload:r,requestPayload:e,status:this.status,timestamp
ate.now(),responseHeaders:a}]]};"ON"===o?window.postMessage(s,"*"):n.push(s.payload[0][0])}catch(e){}})),"OFF"===t)a.call(this,e);else if(E.get(this))this.__onPendingHeadersSet=()=>{E.delete(this),c("send")&&this.readyState===XMLHttpRequest.OPENED&&window.XMLHttpRequest.prototype.send.call(this,e),this.__onPendingHeadersSet=null};else if(this.readyState===XMLHttpRequest.OPENED&&!0===this.__amicabletbebypoxhrs){Object.defineProperty(this,"readyState",{writable:!0,configurable:!0,value:XMLHttpRequest.LOADING});const e=new Event("readystatechange");this.dispatchEvent(e)}else if(this.readyState===XMLHttpRequest.OPENED&&!0===this.__amicabletbecoxhrs)a.call(this,e);else{const t=u.get(this);t&&t.subscribe((()=>{c("send")&&this.readyState===XMLHttpRequest.OPENED&&window.XMLHttpRequest.prototype.send.call(this,e)}))}});function h(e,t){let o,n="GET";"string"==typeof e?(o=e,n=t?.method?.toUpperCase()||"GET"):"string"==typeof e?.search?(o=e.toString(),n=t?.method?.toUpperCase()||"GET")
o=e.url||"",n=e?.method?.toUpperCase()||"GET");const i=function(e,t){try{const o=t?.headers||e?.headers;if(!o)return;const n={};if("function"==typeof o.keys){const e=o;for(const t of e.keys()){const o=e.get(t);null!=o&&(n[t]=o)}return n}const i=o;return Object.assign({},i)}catch(e){0}}(e,t);return{method:n,url:o,headers:i}}Object.defineProperty(window,"fetch",{writable:!0,value
...e)=>{const r=e[0];let a=e[1];const{url
,method:c,headers:d}=h(r,a),p=function(e,t){return new Promise((o=>{if("string"==typeof e||"string"==typeof e?.search){const e=t&&t.body||null;"function"==typeof e?.stream?e.text().then(o).catch((()=>o(""))):o(e)}else try{e.clone().text().then((async e=>{if("function"==typeof e?.stream){const t=await e.text();o(t)}else o(e)})).catch((e=>{o(null)}))}catch(e){o(null)}}))}(r,a);let u=!1;try{if(a?.headers?.amicabletbecof&&"string"==typeof a.headers.amicabletbecof)switch(u=!0,a.headers.amicabletbecof){case"no-init":a=void 0;break;case"no-headers":a.headers=void 0;break;default:delete a.headers.amicabletbecof}}catch(e){0}return u||"OFF"===t?i(r,a).then((async e=>{if("OFF"===o)return e;try{const t=await p;let i;try{i=t.replace(/\s/gi,"")}catch(e){i=t}const r=e.clone(),a=await r.text();let l=[];try{for(const e of r?.headers?.entries()){const[t,o]=e;l.push({active:!0,header:t,value:o})}}catch(e){l=[]}let u=[];try{for(const e in d){const t=d[e];u.push({active:!0,header:e,value:t})}}catch(e){u=[]}const E={type:"STASH_REQUESTS",payload:[[{method:c&&c.toUpperCase()||"GET",requestHeaders:u,requestPayload:i,requestURL
,responseHeaders:l,responsePayload:a,status:e.status,timestamp
ate.now()}]]};"ON"===o?window.postMessage(E,"*"):n.push(E.payload[0][0])}catch(e){}return e}))
(...e)=>new Promise((t=>{l.subscribe((()=>{t(window.fetch(...e))}))})))(...e)}}),l.subscribe((()=>{try{window.postMessage({type:"__TWEAK_BOOTSTRAP_FINISHED__",payload:[]})}catch(e){0}}));const _=["ON","OFF"];setTimeout((()=>{t&&_.includes(t)||(t="OFF",l.next())}),5e3),window.__onttis=e=>{e&&_.includes(e)&&(t&&_.includes(t)?t=e
t=e,l.next()))},window.__onttss__=(e,t)=>{if(e&&_.includes(e)){if("OFF"===e&&"user"===t&&n.length)n=[];else if("ON"===e&&"system"===t&&n.length)try{window.postMessage({type:"STASH_REQUESTS",payload:[n]})}catch(e){0}n=[],o=e}};window.__textm__="c2"})();