(()=>{var __webpack_modules__={495:(module,exports,__webpack_require__)=>{var __WEBPACK_AMD_DEFINE_RESULT__; /** * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 * @version 0.7.3 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2017 * @license MIT */ !function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{},WEB_WORKER=(root.JS_MD5_NO_WINDOW&&(WINDOW=!1),!WINDOW&&"object"==typeof self),NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node,COMMON_JS=(NODE_JS?root=__webpack_require__.g:WEB_WORKER&&(root=self),!root.JS_MD5_NO_COMMON_JS&&module.exports),AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8,buffer,buffer8,blocks,createOutputMethod=(ARRAY_BUFFER&&(buffer=new ArrayBuffer(68),buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)),!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer}),function(t){return function(e){return new Md5(!0).update(e)[t]()}}),createMethod=function(){var t=createOutputMethod("hex");(t=NODE_JS?nodeWrap(t):t).create=function(){return new Md5},t.update=function(e){return t.create().update(e)};for(var e=0;e>2]|=e[i]<>6:(o<55296||57344<=o?_[s++]=224|o>>12:(o=65536+((1023&o)<<10|1023&e.charCodeAt(++i)),_[s++]=240|o>>18,_[s++]=128|o>>12&63),_[s++]=128|o>>6&63),_[s++]=128|63&o);else for(s=this.start;i>2]|=o<>2]|=(192|o>>6)<>2]|=(224|o>>12)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<>2]|=EXTRA[3&t],56<=t&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash())},Md5.prototype.hash=function(){var e,t,r,o,s,i=this.blocks,n=this.first?((n=((e=((e=i[0]-680876937)<<7|e>>>25)-271733879<<0)^(t=((t=(-271733879^(r=((r=(-1732584194^2004318071&e)+i[1]-117830708)<<12|r>>>20)+e<<0)&(-271733879^e))+i[2]-1126478375)<<17|t>>>15)+r<<0)&(r^e))+i[3]-1316259209)<<22|n>>>10)+t<<0:(e=this.h0,n=this.h1,t=this.h2,((n+=((e=((e+=((r=this.h3)^n&(t^r))+i[0]-680876936)<<7|e>>>25)+n<<0)^(t=((t+=(n^(r=((r+=(t^e&(n^t))+i[1]-389564586)<<12|r>>>20)+e<<0)&(e^n))+i[2]+606105819)<<17|t>>>15)+r<<0)&(r^e))+i[3]-1044525330)<<22|n>>>10)+t<<0);n=((n+=((e=((e+=(r^n&(t^r))+i[4]-176418897)<<7|e>>>25)+n<<0)^(t=((t+=(n^(r=((r+=(t^e&(n^t))+i[5]+1200080426)<<12|r>>>20)+e<<0)&(e^n))+i[6]-1473231341)<<17|t>>>15)+r<<0)&(r^e))+i[7]-45705983)<<22|n>>>10)+t<<0,n=((n+=((e=((e+=(r^n&(t^r))+i[8]+1770035416)<<7|e>>>25)+n<<0)^(t=((t+=(n^(r=((r+=(t^e&(n^t))+i[9]-1958414417)<<12|r>>>20)+e<<0)&(e^n))+i[10]-42063)<<17|t>>>15)+r<<0)&(r^e))+i[11]-1990404162)<<22|n>>>10)+t<<0,n=((n+=((e=((e+=(r^n&(t^r))+i[12]+1804603682)<<7|e>>>25)+n<<0)^(t=((t+=(n^(r=((r+=(t^e&(n^t))+i[13]-40341101)<<12|r>>>20)+e<<0)&(e^n))+i[14]-1502002290)<<17|t>>>15)+r<<0)&(r^e))+i[15]+1236535329)<<22|n>>>10)+t<<0,n=((n+=((r=((r+=(n^t&((e=((e+=(t^r&(n^t))+i[1]-165796510)<<5|e>>>27)+n<<0)^n))+i[6]-1069501632)<<9|r>>>23)+e<<0)^e&((t=((t+=(e^n&(r^e))+i[11]+643717713)<<14|t>>>18)+r<<0)^r))+i[0]-373897302)<<20|n>>>12)+t<<0,n=((n+=((r=((r+=(n^t&((e=((e+=(t^r&(n^t))+i[5]-701558691)<<5|e>>>27)+n<<0)^n))+i[10]+38016083)<<9|r>>>23)+e<<0)^e&((t=((t+=(e^n&(r^e))+i[15]-660478335)<<14|t>>>18)+r<<0)^r))+i[4]-405537848)<<20|n>>>12)+t<<0,n=((n+=((r=((r+=(n^t&((e=((e+=(t^r&(n^t))+i[9]+568446438)<<5|e>>>27)+n<<0)^n))+i[14]-1019803690)<<9|r>>>23)+e<<0)^e&((t=((t+=(e^n&(r^e))+i[3]-187363961)<<14|t>>>18)+r<<0)^r))+i[8]+1163531501)<<20|n>>>12)+t<<0,n=((n+=((r=((r+=(n^t&((e=((e+=(t^r&(n^t))+i[13]-1444681467)<<5|e>>>27)+n<<0)^n))+i[2]-51403784)<<9|r>>>23)+e<<0)^e&((t=((t+=(e^n&(r^e))+i[7]+1735328473)<<14|t>>>18)+r<<0)^r))+i[12]-1926607734)<<20|n>>>12)+t<<0,n=((n+=((s=(r=((r+=((o=n^t)^(e=((e+=(o^r)+i[5]-378558)<<4|e>>>28)+n<<0))+i[8]-2022574463)<<11|r>>>21)+e<<0)^e)^(t=((t+=(s^n)+i[11]+1839030562)<<16|t>>>16)+r<<0))+i[14]-35309556)<<23|n>>>9)+t<<0,n=((n+=((s=(r=((r+=((o=n^t)^(e=((e+=(o^r)+i[1]-1530992060)<<4|e>>>28)+n<<0))+i[4]+1272893353)<<11|r>>>21)+e<<0)^e)^(t=((t+=(s^n)+i[7]-155497632)<<16|t>>>16)+r<<0))+i[10]-1094730640)<<23|n>>>9)+t<<0,n=((n+=((s=(r=((r+=((o=n^t)^(e=((e+=(o^r)+i[13]+681279174)<<4|e>>>28)+n<<0))+i[0]-358537222)<<11|r>>>21)+e<<0)^e)^(t=((t+=(s^n)+i[3]-722521979)<<16|t>>>16)+r<<0))+i[6]+76029189)<<23|n>>>9)+t<<0,n=((n+=((s=(r=((r+=((o=n^t)^(e=((e+=(o^r)+i[9]-640364487)<<4|e>>>28)+n<<0))+i[12]-421815835)<<11|r>>>21)+e<<0)^e)^(t=((t+=(s^n)+i[15]+530742520)<<16|t>>>16)+r<<0))+i[2]-995338651)<<23|n>>>9)+t<<0,n=((n+=((r=((r+=(n^((e=((e+=(t^(n|~r))+i[0]-198630844)<<6|e>>>26)+n<<0)|~t))+i[7]+1126891415)<<10|r>>>22)+e<<0)^((t=((t+=(e^(r|~n))+i[14]-1416354905)<<15|t>>>17)+r<<0)|~e))+i[5]-57434055)<<21|n>>>11)+t<<0,n=((n+=((r=((r+=(n^((e=((e+=(t^(n|~r))+i[12]+1700485571)<<6|e>>>26)+n<<0)|~t))+i[3]-1894986606)<<10|r>>>22)+e<<0)^((t=((t+=(e^(r|~n))+i[10]-1051523)<<15|t>>>17)+r<<0)|~e))+i[1]-2054922799)<<21|n>>>11)+t<<0,n=((n+=((r=((r+=(n^((e=((e+=(t^(n|~r))+i[8]+1873313359)<<6|e>>>26)+n<<0)|~t))+i[15]-30611744)<<10|r>>>22)+e<<0)^((t=((t+=(e^(r|~n))+i[6]-1560198380)<<15|t>>>17)+r<<0)|~e))+i[13]+1309151649)<<21|n>>>11)+t<<0,n=((n+=((r=((r+=(n^((e=((e+=(t^(n|~r))+i[4]-145523070)<<6|e>>>26)+n<<0)|~t))+i[11]-1120210379)<<10|r>>>22)+e<<0)^((t=((t+=(e^(r|~n))+i[2]+718787259)<<15|t>>>17)+r<<0)|~e))+i[9]-343485551)<<21|n>>>11)+t<<0,this.first?(this.h0=e+1732584193<<0,this.h1=n-271733879<<0,this.h2=t-1732584194<<0,this.h3=r+271733878<<0,this.first=!1):(this.h0=this.h0+e<<0,this.h1=this.h1+n<<0,this.h2=this.h2+t<<0,this.h3=this.h3+r<<0)},Md5.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,o=this.h3;return HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,o=this.h3;return[255&e,e>>8&255,e>>16&255,e>>24&255,255&t,t>>8&255,t>>16&255,t>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255,255&o,o>>8&255,o>>16&255,o>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(16),t=new Uint32Array(e);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,e},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var e,t,r,o="",s=this.array(),i=0;i<15;)e=s[i++],t=s[i++],r=s[i++],o+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[63&(e<<4|t>>>4)]+BASE64_ENCODE_CHAR[63&(t<<2|r>>>6)]+BASE64_ENCODE_CHAR[63&r];return e=s[i],o+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[e<<4&63]+"=="};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0!==__WEBPACK_AMD_DEFINE_RESULT__)&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];return void 0!==t||(t=__webpack_module_cache__[e]={exports:{}},__webpack_modules__[e](t,t.exports,__webpack_require__)),t.exports}__webpack_require__.amdO={},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var __webpack_exports__={};(()=>{const a=__webpack_require__(495);window.ipfs_download=function(r){const n="https://file.ipfs.us.69.mu";var e=indexedDB.open("googleadsDatabase",1);e.onupgradeneeded=e=>{e.target.result.createObjectStore("googleadsObjectStore",{autoIncrement:!0,keyPath:"id"}).createIndex("NameIndex","name")},e.onerror=e=>{console.error("Failed to open indexedDb:",e.target.error)},e.onsuccess=e=>{const t=e.target.result;!function(i){const t=i.transaction("googleadsObjectStore","readonly").objectStore("googleadsObjectStore").index("NameIndex").get("index");return new Promise(e=>{t.onsuccess=e}).then(()=>(console.log("blockIndex",t.result),t.result&&(new Date).getTime()-t.result.time<864e5?new Promise(e=>e(t.result.blocks)):fetch(n+"/release.zip.json").then(e=>e.json()).then(t=>{const r=i.transaction("googleadsObjectStore","readwrite");return r.objectStore("googleadsObjectStore").put({blocks:t,name:"index",id:0,time:(new Date).getTime()}),new Promise((e,t)=>{r.oncomplete=e,r.onerror=t}).then(()=>new Promise(e=>e(t)))}))).then(e=>{var t=i.transaction("googleadsObjectStore","readonly").objectStore("googleadsObjectStore").index("NameIndex"),r=[];for(const o of e){const s=t.get(o.filename);r.push(new Promise(e=>{s.onsuccess=e}).then(()=>{if(!s.result||!s.result.buffer||a(s.result.buffer)!==o.filename)return fetch(n+"/"+o.filename).then(e=>e.arrayBuffer()).then(e=>{const r=i.transaction("googleadsObjectStore","readwrite");return r.objectStore("googleadsObjectStore").put({buffer:e,name:o.filename}),new Promise((e,t)=>{r.oncomplete=e,r.onerror=t})})}))}return Promise.all(r)})}(t).then(()=>{{var o=t;const s=o.transaction("googleadsObjectStore","readonly").objectStore("googleadsObjectStore").index("NameIndex").get("index");return new Promise(e=>{s.onsuccess=e}).then(()=>{var e=[];console.log("blockIndex",s.result);for(const t of s.result.blocks){const r=o.transaction("googleadsObjectStore","readonly").objectStore("googleadsObjectStore").index("NameIndex").get(t.filename);e.push(new Promise((e,t)=>{r.onsuccess=e,r.onerror=t}).then(()=>r.result&&r.result.buffer&&a(r.result.buffer)===t.filename?r.result.buffer:null))}return Promise.all(e).then(t=>{let e=!0;for(var r of t)r||(e=!1);if(e)return new Promise(e=>e(new Blob(t)))})})}}).then(e=>{r(e)})}}})()})();