This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbleach.js
1 lines (1 loc) · 16.1 KB
/
bleach.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="bleach.data";var REMOTE_PACKAGE_BASE="bleach.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","bleach",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/bleach","_vendor",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/bleach/_vendor","html5lib-1.0.1.dist-info",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/bleach/_vendor","html5lib",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/bleach/_vendor/html5lib","treebuilders",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/bleach/_vendor/html5lib","filters",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/bleach/_vendor/html5lib","_trie",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/bleach/_vendor/html5lib","treewalkers",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/bleach/_vendor/html5lib","treeadapters",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages","bleach-3.1.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:300315,cachedIndexes:[-1,-1],cachedChunks:[null,null],offsets:[0,1181,2225,3400,4453,5779,7081,8356,9590,10808,12540,13915,15187,16483,17475,18493,19427,20520,21620,22942,24381,25563,26756,27821,28789,29971,31157,32374,33373,34599,35987,37207,38613,40281,41520,43081,44671,46103,47705,49202,50391,51540,53070,54504,56069,57600,59132,60541,62062,63476,64711,65968,66991,68322,69455,70562,71747,73068,74066,74962,76125,76950,78067,79008,80075,80962,82253,83628,84834,86012,87035,88210,89178,90202,91082,91586,92274,93123,93752,94393,94999,95539,96034,96669,97303,97740,98466,99311,100313,100978,101585,102321,103314,104151,104653,105216,105869,106438,107255,107807,108321,108848,109404,109920,110487,111605,112600,113868,114940,115772,116884,118212,119308,120422,121417,121813,122510,123237,124033,124990,125976,126771,127724,128725,129648,130670,131705,132478,133337,134001,134891,135740,136578,137519,138458,139186,140185,141142,141978,142866,143841,144894,145618,146568,147453,148450,149338,150146,151088,151874,152864,153871,154749,155724,156399,157232,158152,159071,159989,160852,161655,162400,163002,164143,165358,166668,168003,169383,170902,172438,173404,174380,175623,176882,178066,179200,180218,181145,181935,183142,184016,184746,185550,186304,187012,187710,188457,189021,189977,191015,192020,193176,194169,195067,196025,196886,197717,198666,199548,200518,201424,202379,203233,204144,205098,206035,206920,207828,208727,209654,210519,211295,212198,213124,214052,214982,215816,216746,217656,218590,219978,220928,221866,222824,223668,224804,225715,226598,227405,228257,229215,230496,231467,232312,233361,234139,235122,236309,237471,238559,239702,240899,241881,242827,243793,245150,246551,247741,248717,249711,250529,251311,251987,252885,253915,254737,255875,256343,256829,257477,258201,258904,259643,260425,261458,262432,263463,264681,265681,266923,267896,269002,270242,271172,272151,273072,274175,275305,276388,277401,278329,279213,280485,281580,282339,283391,284518,285552,286416,287792,289070,290232,291360,292392,293626,294824,295941,297269,298359,299409],sizes:[1181,1044,1175,1053,1326,1302,1275,1234,1218,1732,1375,1272,1296,992,1018,934,1093,1100,1322,1439,1182,1193,1065,968,1182,1186,1217,999,1226,1388,1220,1406,1668,1239,1561,1590,1432,1602,1497,1189,1149,1530,1434,1565,1531,1532,1409,1521,1414,1235,1257,1023,1331,1133,1107,1185,1321,998,896,1163,825,1117,941,1067,887,1291,1375,1206,1178,1023,1175,968,1024,880,504,688,849,629,641,606,540,495,635,634,437,726,845,1002,665,607,736,993,837,502,563,653,569,817,552,514,527,556,516,567,1118,995,1268,1072,832,1112,1328,1096,1114,995,396,697,727,796,957,986,795,953,1001,923,1022,1035,773,859,664,890,849,838,941,939,728,999,957,836,888,975,1053,724,950,885,997,888,808,942,786,990,1007,878,975,675,833,920,919,918,863,803,745,602,1141,1215,1310,1335,1380,1519,1536,966,976,1243,1259,1184,1134,1018,927,790,1207,874,730,804,754,708,698,747,564,956,1038,1005,1156,993,898,958,861,831,949,882,970,906,955,854,911,954,937,885,908,899,927,865,776,903,926,928,930,834,930,910,934,1388,950,938,958,844,1136,911,883,807,852,958,1281,971,845,1049,778,983,1187,1162,1088,1143,1197,982,946,966,1357,1401,1190,976,994,818,782,676,898,1030,822,1138,468,486,648,724,703,739,782,1033,974,1031,1218,1e3,1242,973,1106,1240,930,979,921,1103,1130,1083,1013,928,884,1272,1095,759,1052,1127,1034,864,1376,1278,1162,1128,1032,1234,1198,1117,1328,1090,1050,906],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,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_bleach.data")}Module["addRunDependency"]("datafile_bleach.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/bleach/html5lib_shim.py",start:0,end:17929,audio:0},{filename:"/lib/python3.7/site-packages/bleach/linkifier.py",start:17929,end:37525,audio:0},{filename:"/lib/python3.7/site-packages/bleach/utils.py",start:37525,end:38640,audio:0},{filename:"/lib/python3.7/site-packages/bleach/callbacks.py",start:38640,end:39444,audio:0},{filename:"/lib/python3.7/site-packages/bleach/sanitizer.py",start:39444,end:60326,audio:0},{filename:"/lib/python3.7/site-packages/bleach/__init__.py",start:60326,end:64101,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/README.rst",start:64101,end:65358,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/pip_install_vendor.sh",start:65358,end:65448,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/vendor.txt",start:65448,end:65634,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/__init__.py",start:65634,end:65634,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib-1.0.1.dist-info/LICENSE.txt",start:65634,end:66718,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib-1.0.1.dist-info/DESCRIPTION.rst",start:66718,end:80481,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib-1.0.1.dist-info/INSTALLER",start:80481,end:80485,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib-1.0.1.dist-info/METADATA",start:80485,end:95969,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib-1.0.1.dist-info/RECORD",start:95969,end:99569,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib-1.0.1.dist-info/metadata.json",start:99569,end:101300,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib-1.0.1.dist-info/top_level.txt",start:101300,end:101309,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib-1.0.1.dist-info/WHEEL",start:101309,end:101422,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/_inputstream.py",start:101422,end:133921,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/_utils.py",start:133921,end:137924,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/_tokenizer.py",start:137924,end:214492,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/html5parser.py",start:214492,end:333443,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/_ihatexml.py",start:333443,end:350148,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/serializer.py",start:350148,end:365894,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/constants.py",start:365894,end:449412,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/__init__.py",start:449412,end:450557,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/treebuilders/dom.py",start:450557,end:459392,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/treebuilders/etree.py",start:459392,end:472144,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/treebuilders/etree_lxml.py",start:472144,end:486266,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/treebuilders/base.py",start:486266,end:500833,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/treebuilders/__init__.py",start:500833,end:504425,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/filters/alphabeticalattributes.py",start:504425,end:505344,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/filters/optionaltags.py",start:505344,end:515932,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/filters/lint.py",start:515932,end:519563,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/filters/inject_meta_charset.py",start:519563,end:522508,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/filters/whitespace.py",start:522508,end:523722,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/filters/base.py",start:523722,end:524008,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/filters/sanitizer.py",start:524008,end:550244,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/filters/__init__.py",start:550244,end:550244,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/_trie/py.py",start:550244,end:552007,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/_trie/datrie.py",start:552007,end:553173,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/_trie/_base.py",start:553173,end:554103,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/_trie/__init__.py",start:554103,end:554392,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/treewalkers/dom.py",start:554392,end:555805,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/treewalkers/etree.py",start:555805,end:560343,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/treewalkers/etree_lxml.py",start:560343,end:566640,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/treewalkers/genshi.py",start:566640,end:568949,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/treewalkers/base.py",start:568949,end:576425,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/treewalkers/__init__.py",start:576425,end:582139,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/treeadapters/sax.py",start:582139,end:583915,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/treeadapters/genshi.py",start:583915,end:585630,audio:0},{filename:"/lib/python3.7/site-packages/bleach/_vendor/html5lib/treeadapters/__init__.py",start:585630,end:586280,audio:0},{filename:"/lib/python3.7/site-packages/bleach-3.1.0-py3.7.egg-info/SOURCES.txt",start:586280,end:589546,audio:0},{filename:"/lib/python3.7/site-packages/bleach-3.1.0-py3.7.egg-info/not-zip-safe",start:589546,end:589547,audio:0},{filename:"/lib/python3.7/site-packages/bleach-3.1.0-py3.7.egg-info/PKG-INFO",start:589547,end:614200,audio:0},{filename:"/lib/python3.7/site-packages/bleach-3.1.0-py3.7.egg-info/dependency_links.txt",start:614200,end:614201,audio:0},{filename:"/lib/python3.7/site-packages/bleach-3.1.0-py3.7.egg-info/top_level.txt",start:614201,end:614208,audio:0},{filename:"/lib/python3.7/site-packages/bleach-3.1.0-py3.7.egg-info/requires.txt",start:614208,end:614232,audio:0}],remote_package_size:304411,package_uuid:"07251854-2bff-4f8f-81d3-c664b4ec24cf"})})();