-
Notifications
You must be signed in to change notification settings - Fork 4
/
more-itertools.js
1 lines (1 loc) · 7.73 KB
/
more-itertools.js
1
var Module=typeof pyodide._module!=="undefined"?pyodide._module:{};Module.checkABI(1);if(!Module.expectedDataFileDownloads){Module.expectedDataFileDownloads=0;Module.finishedDataFileDownloads=0}Module.expectedDataFileDownloads++;(function(){var loadPackage=function(metadata){var PACKAGE_PATH;if(typeof window==="object"){PACKAGE_PATH=window["encodeURIComponent"](window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/")}else if(typeof location!=="undefined"){PACKAGE_PATH=encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/")}else{throw"using preloaded data can only be done on a web page or in a web worker"}var PACKAGE_NAME="more-itertools.data";var REMOTE_PACKAGE_BASE="more-itertools.data";if(typeof Module["locateFilePackage"]==="function"&&!Module["locateFile"]){Module["locateFile"]=Module["locateFilePackage"];err("warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)")}var REMOTE_PACKAGE_NAME=Module["locateFile"]?Module["locateFile"](REMOTE_PACKAGE_BASE,""):REMOTE_PACKAGE_BASE;var REMOTE_PACKAGE_SIZE=metadata.remote_package_size;var PACKAGE_UUID=metadata.package_uuid;function fetchRemotePackage(packageName,packageSize,callback,errback){var xhr=new XMLHttpRequest;xhr.open("GET",packageName,true);xhr.responseType="arraybuffer";xhr.onprogress=function(event){var url=packageName;var size=packageSize;if(event.total)size=event.total;if(event.loaded){if(!xhr.addedTotal){xhr.addedTotal=true;if(!Module.dataFileDownloads)Module.dataFileDownloads={};Module.dataFileDownloads[url]={loaded:event.loaded,total:size}}else{Module.dataFileDownloads[url].loaded=event.loaded}var total=0;var loaded=0;var num=0;for(var download in Module.dataFileDownloads){var data=Module.dataFileDownloads[download];total+=data.total;loaded+=data.loaded;num++}total=Math.ceil(total*Module.expectedDataFileDownloads/num);if(Module["setStatus"])Module["setStatus"]("Downloading data... ("+loaded+"/"+total+")")}else if(!Module.dataFileDownloads){if(Module["setStatus"])Module["setStatus"]("Downloading data...")}};xhr.onerror=function(event){throw new Error("NetworkError for: "+packageName)};xhr.onload=function(event){if(xhr.status==200||xhr.status==304||xhr.status==206||xhr.status==0&&xhr.response){var packageData=xhr.response;callback(packageData)}else{throw new Error(xhr.statusText+" : "+xhr.responseURL)}};xhr.send(null)}function handleError(error){console.error("package error:",error)}var fetchedCallback=null;var fetched=Module["getPreloadedPackage"]?Module["getPreloadedPackage"](REMOTE_PACKAGE_NAME,REMOTE_PACKAGE_SIZE):null;if(!fetched)fetchRemotePackage(REMOTE_PACKAGE_NAME,REMOTE_PACKAGE_SIZE,function(data){if(fetchedCallback){fetchedCallback(data);fetchedCallback=null}else{fetched=data}},handleError);function runWithFS(){function assert(check,msg){if(!check)throw msg+(new Error).stack}Module["FS_createPath"]("/","lib",true,true);Module["FS_createPath"]("/lib","python3.7",true,true);Module["FS_createPath"]("/lib/python3.7","site-packages",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages","more_itertools",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/more_itertools","tests",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages","more_itertools-7.2.0-py3.7.egg-info",true,true);function DataRequest(start,end,audio){this.start=start;this.end=end;this.audio=audio}DataRequest.prototype={requests:{},open:function(mode,name){this.name=name;this.requests[name]=this;Module["addRunDependency"]("fp "+this.name)},send:function(){},onload:function(){var byteArray=this.byteArray.subarray(this.start,this.end);this.finish(byteArray)},finish:function(byteArray){var that=this;Module["FS_createPreloadedFile"](this.name,null,byteArray,true,true,function(){Module["removeRunDependency"]("fp "+that.name)},function(){if(that.audio){Module["removeRunDependency"]("fp "+that.name)}else{err("Preloading file "+that.name+" failed")}},false,true);this.requests[this.name]=null}};function processPackageData(arrayBuffer){Module.finishedDataFileDownloads++;assert(arrayBuffer,"Loading data file failed.");assert(arrayBuffer instanceof ArrayBuffer,"bad input to processPackageData");var byteArray=new Uint8Array(arrayBuffer);var curr;var compressedData={data:null,cachedOffset:124489,cachedIndexes:[-1,-1],cachedChunks:[null,null],offsets:[0,1256,2529,3761,4837,6156,7570,8945,10262,11479,12830,14180,15492,16651,17976,19229,20250,21523,22807,23982,25324,26626,27817,29219,30462,31749,32947,34198,35205,36474,37767,39041,40233,41541,42783,44062,45257,46588,47720,49025,50404,51671,52900,54148,55538,56850,57956,59036,60281,61393,62546,63403,64412,65564,66362,67253,68243,69270,70266,71248,72045,72860,73748,74628,75614,76475,77184,77881,78755,79690,80638,81518,82429,83139,84145,84915,85771,86828,87837,88709,89465,90441,91294,92250,93226,94199,95052,95829,96419,97239,98158,98964,99758,100410,101476,102450,103390,104366,105411,106294,107512,108651,109440,110574,111176,111468,111789,112104,112423,112742,113043,113373,113672,114001,114345,114664,115259,116466,117710,118828,120027,121185,122321,123478],sizes:[1256,1273,1232,1076,1319,1414,1375,1317,1217,1351,1350,1312,1159,1325,1253,1021,1273,1284,1175,1342,1302,1191,1402,1243,1287,1198,1251,1007,1269,1293,1274,1192,1308,1242,1279,1195,1331,1132,1305,1379,1267,1229,1248,1390,1312,1106,1080,1245,1112,1153,857,1009,1152,798,891,990,1027,996,982,797,815,888,880,986,861,709,697,874,935,948,880,911,710,1006,770,856,1057,1009,872,756,976,853,956,976,973,853,777,590,820,919,806,794,652,1066,974,940,976,1045,883,1218,1139,789,1134,602,292,321,315,319,319,301,330,299,329,344,319,595,1207,1244,1118,1199,1158,1136,1157,1011],successes:[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]};compressedData.data=byteArray;assert(typeof Module.LZ4==="object","LZ4 not present - was your app build with -s LZ4=1 ?");Module.LZ4.loadPackage({metadata:metadata,compressedData:compressedData});Module["removeRunDependency"]("datafile_more-itertools.data")}Module["addRunDependency"]("datafile_more-itertools.data");if(!Module.preloadResults)Module.preloadResults={};Module.preloadResults[PACKAGE_NAME]={fromCache:false};if(fetched){processPackageData(fetched);fetched=null}else{fetchedCallback=processPackageData}}if(Module["calledRun"]){runWithFS()}else{if(!Module["preRun"])Module["preRun"]=[];Module["preRun"].push(runWithFS)}};loadPackage({files:[{filename:"/lib/python3.7/site-packages/more_itertools/more.py",start:0,end:82859,audio:0},{filename:"/lib/python3.7/site-packages/more_itertools/recipes.py",start:82859,end:98094,audio:0},{filename:"/lib/python3.7/site-packages/more_itertools/__init__.py",start:98094,end:98181,audio:0},{filename:"/lib/python3.7/site-packages/more_itertools/tests/test_more.py",start:98181,end:190543,audio:0},{filename:"/lib/python3.7/site-packages/more_itertools/tests/__init__.py",start:190543,end:190543,audio:0},{filename:"/lib/python3.7/site-packages/more_itertools/tests/test_recipes.py",start:190543,end:210021,audio:0},{filename:"/lib/python3.7/site-packages/more_itertools-7.2.0-py3.7.egg-info/SOURCES.txt",start:210021,end:210564,audio:0},{filename:"/lib/python3.7/site-packages/more_itertools-7.2.0-py3.7.egg-info/top_level.txt",start:210564,end:210579,audio:0},{filename:"/lib/python3.7/site-packages/more_itertools-7.2.0-py3.7.egg-info/dependency_links.txt",start:210579,end:210580,audio:0},{filename:"/lib/python3.7/site-packages/more_itertools-7.2.0-py3.7.egg-info/PKG-INFO",start:210580,end:253429,audio:0}],remote_package_size:128585,package_uuid:"be5c28b3-523e-481d-b13e-1440e6d2770b"})})();