-
Notifications
You must be signed in to change notification settings - Fork 4
/
beautifulsoup4.js
1 lines (1 loc) · 9.47 KB
/
beautifulsoup4.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="beautifulsoup4.data";var REMOTE_PACKAGE_BASE="beautifulsoup4.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","bs4",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/bs4","tests",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/bs4","builder",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages","beautifulsoup4-4.7.1-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:180093,cachedIndexes:[-1,-1],cachedChunks:[null,null],offsets:[0,1445,2758,3600,4398,5491,6675,7777,8961,9965,11122,12088,13189,14428,15545,16745,17665,18904,20158,21167,22297,23557,24823,26067,27463,28738,29877,30951,32114,33109,34351,35455,36553,37453,38184,39055,39768,40676,41828,43368,44914,45969,47046,48136,49280,50492,51488,52531,53696,54909,56332,57375,58395,59725,60939,61864,62790,63738,64685,65725,66448,67585,68459,69681,70870,71962,73161,74297,75471,76613,77811,78774,79877,81172,82333,83578,84666,85744,86849,88070,88932,89797,91072,92312,93481,94786,95800,96967,98253,99115,99999,100923,102111,103088,103915,105100,106339,107477,108641,109602,110701,111558,112544,113328,114203,115121,116086,117028,118031,119027,119845,120949,122063,123064,124095,125121,125946,126805,127700,128559,129633,130833,131826,132740,134096,135083,135677,136769,137951,138816,140110,141274,142175,142994,143632,144578,145422,146231,147548,148810,150076,151177,152622,153862,155274,156581,157824,158881,160160,161469,162682,164024,165302,166537,167633,168824,169982,171144,172131,173163,174184,175318,176277,177260,178599,179762],sizes:[1445,1313,842,798,1093,1184,1102,1184,1004,1157,966,1101,1239,1117,1200,920,1239,1254,1009,1130,1260,1266,1244,1396,1275,1139,1074,1163,995,1242,1104,1098,900,731,871,713,908,1152,1540,1546,1055,1077,1090,1144,1212,996,1043,1165,1213,1423,1043,1020,1330,1214,925,926,948,947,1040,723,1137,874,1222,1189,1092,1199,1136,1174,1142,1198,963,1103,1295,1161,1245,1088,1078,1105,1221,862,865,1275,1240,1169,1305,1014,1167,1286,862,884,924,1188,977,827,1185,1239,1138,1164,961,1099,857,986,784,875,918,965,942,1003,996,818,1104,1114,1001,1031,1026,825,859,895,859,1074,1200,993,914,1356,987,594,1092,1182,865,1294,1164,901,819,638,946,844,809,1317,1262,1266,1101,1445,1240,1412,1307,1243,1057,1279,1309,1213,1342,1278,1235,1096,1191,1158,1162,987,1032,1021,1134,959,983,1339,1163,331],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,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_beautifulsoup4.data")}Module["addRunDependency"]("datafile_beautifulsoup4.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/bs4/testing.py",start:0,end:41141,audio:0},{filename:"/lib/python3.7/site-packages/bs4/diagnose.py",start:41141,end:48113,audio:0},{filename:"/lib/python3.7/site-packages/bs4/dammit.py",start:48113,end:77986,audio:0},{filename:"/lib/python3.7/site-packages/bs4/__init__.py",start:77986,end:101219,audio:0},{filename:"/lib/python3.7/site-packages/bs4/element.py",start:101219,end:160955,audio:0},{filename:"/lib/python3.7/site-packages/bs4/tests/test_builder_registry.py",start:160955,end:166537,audio:0},{filename:"/lib/python3.7/site-packages/bs4/tests/test_docs.py",start:166537,end:167604,audio:0},{filename:"/lib/python3.7/site-packages/bs4/tests/__init__.py",start:167604,end:167631,audio:0},{filename:"/lib/python3.7/site-packages/bs4/tests/test_lxml.py",start:167631,end:171069,audio:0},{filename:"/lib/python3.7/site-packages/bs4/tests/test_htmlparser.py",start:171069,end:172797,audio:0},{filename:"/lib/python3.7/site-packages/bs4/tests/test_html5lib.py",start:172797,end:178634,audio:0},{filename:"/lib/python3.7/site-packages/bs4/tests/test_soup.py",start:178634,end:198947,audio:0},{filename:"/lib/python3.7/site-packages/bs4/tests/test_tree.py",start:198947,end:281043,audio:0},{filename:"/lib/python3.7/site-packages/bs4/builder/__init__.py",start:281043,end:293455,audio:0},{filename:"/lib/python3.7/site-packages/bs4/builder/_htmlparser.py",start:293455,end:306628,audio:0},{filename:"/lib/python3.7/site-packages/bs4/builder/_lxml.py",start:306628,end:317374,audio:0},{filename:"/lib/python3.7/site-packages/bs4/builder/_html5lib.py",start:317374,end:334106,audio:0},{filename:"/lib/python3.7/site-packages/beautifulsoup4-4.7.1-py3.7.egg-info/SOURCES.txt",start:334106,end:334967,audio:0},{filename:"/lib/python3.7/site-packages/beautifulsoup4-4.7.1-py3.7.egg-info/top_level.txt",start:334967,end:334971,audio:0},{filename:"/lib/python3.7/site-packages/beautifulsoup4-4.7.1-py3.7.egg-info/dependency_links.txt",start:334971,end:334972,audio:0},{filename:"/lib/python3.7/site-packages/beautifulsoup4-4.7.1-py3.7.egg-info/requires.txt",start:334972,end:335021,audio:0},{filename:"/lib/python3.7/site-packages/beautifulsoup4-4.7.1-py3.7.egg-info/PKG-INFO",start:335021,end:338508,audio:0}],remote_package_size:184189,package_uuid:"90b2e6ee-feb7-452f-a53c-fc0992878657"})})();