function enableNetworkPanel(){let e=wx._MINI_WX_PROXY_||wx,t=e.request;if(!global.__minium_request_hooked){Object.defineProperty(global,"__minium_request_hooked",{value:!0,writable:!1});const r=Object.getOwnPropertyDescriptor(e,"request");if(r&&!1===r.configurable)return void console.warn("[minitest] Cannot redefine property: request");let i=function(e){let t=5381,r=e.length;for(;r;)t=33*t^e.charCodeAt(--r);return t>>>0},n=new Map,l=new Map;Object.defineProperty(e,"request",{configurable:!0,get:()=>function(e){if(!global||!global.__minium_get_mini_network_id)return t(e);if("https://weapp.tencent.com/jscov_driver/CollectCovTimer"==e.url)return t(e);let r,o=global.__minium_get_mini_network_id(),_=Object.assign({},e);delete _.success,delete _.fail,delete _.complete;let s=Date.now();try{let e=JSON.stringify(_);r=i(e),n.has(r)&&n.get(r)>s&&(e=""),n.set(r,s+21e3),mini_send_request(o,e,s,r)}catch(e){mini_send_request(o,JSON.stringify({url:_.url,err:e.toString()}),s,0)}let u=e.complete;return e.complete=t=>{let r=Object.assign({},t);delete r.profile;let n=JSON.stringify(r),_=i(n),s=Date.now();l.has(_)&&l.get(_)>s&&(n=""),l.set(_,s+21e3),mini_request_callback(o,n,s,_,e.__miniumMocked),u&&u(t)},t(e)}})}}
