forked from phcode-dev/phcode.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvirtual-server-test.js
More file actions
22 lines (22 loc) · 105 KB
/
virtual-server-test.js
File metadata and controls
22 lines (22 loc) · 105 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"55+A":[function(require,module,exports) {
"use strict";function t(t){return{body:"The requested URL ".concat(t," was not found on this server."),config:{status:404,statusText:"Not Found",headers:{"Content-Type":"application/json"}}}}function n(t,n){return{body:"Internal Server Error accessing ".concat(t,": ").concat(n.message),config:{status:500,statusText:"Not Found",headers:{"Content-Type":"application/json"}}}}function o(t,n,o){return{body:JSON.stringify(o),config:{status:200,statusText:"OK",headers:{"Content-Type":"application/json"}}}}function e(t,n,o){return{body:JSON.stringify(o),config:{status:200,statusText:"OK",headers:{"Content-Type":"application/json"}}}}module.exports={format404:t,format500:n,formatDir:o,formatFile:e};
},{}],"lo7t":[function(require,module,exports) {
var define;
var e;parcelRequire=function(t,n,s,o){var i,r="function"==typeof parcelRequire&&parcelRequire,a="function"==typeof require&&require;function x(e,s){if(!n[e]){if(!t[e]){var o="function"==typeof parcelRequire&&parcelRequire;if(!s&&o)return o(e,!0);if(r)return r(e,!0);if(a&&"string"==typeof e)return a(e);var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}u.resolve=function(n){return t[e][1][n]||n},u.cache={};var c=n[e]=new x.Module(e);t[e][0].call(c.exports,u,c,c.exports,this)}return n[e].exports;function u(e){return x(u.resolve(e))}}x.isParcelRequire=!0,x.Module=function(e){this.id=e,this.bundle=x,this.exports={}},x.modules=t,x.cache=n,x.parent=r,x.register=function(e,n){t[e]=[function(e,t){t.exports=n},{}]};for(var c=0;c<s.length;c++)try{x(s[c])}catch(t){i||(i=t)}if(s.length){var u=x(s[s.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=u:"function"==typeof e&&e.amd&&e(function(){return u})}if(parcelRequire=x,i)throw i;return x}({ECDM:[function(e,t,n){t.exports={"application/xhtml+xml":{extensions:["xhtml","xht","xhtm"]},"text/html":{extensions:["html","htm","shtml","shtm"]},"image/apng":{extensions:["apng"]},"application/wasm":{extensions:["wasm"]},"audio/mp3":{extensions:["mp3"]},"audio/wav":{extensions:["wav"]},"audio/x-flac":{extensions:["flac"]},"audio/x-m4a":{extensions:["m4a"]},"application/javascript":{charset:"UTF-8",extensions:["js","mjs"]},"video/x-m4v":{extensions:["m4v"]},"video/ogg":{extensions:["ogv","ogm"]},"application/epub+zip":{extensions:["epub"]},"application/pdf":{extensions:["pdf"]},"video/mpeg":{extensions:["mpeg","mpg","mpe","m1v","m2v"]},"audio/mpeg":{extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"font/otf":{extensions:["otf"]},"font/ttf":{extensions:["ttf"]},"font/woff":{extensions:["woff"]},"font/woff2":{extensions:["woff2"]},"application/atom+xml":{extensions:["atom"]},"application/ecmascript":{extensions:["ecma","es"]},"application/geo+json":{extensions:["geojson"]},"application/json":{charset:"UTF-8",extensions:["json","map"]},"application/jsonml+json":{extensions:["jsonml"]},"application/ld+json":{extensions:["jsonld"]},"application/manifest+json":{charset:"UTF-8",extensions:["webmanifest"]},"application/ogg":{extensions:["ogx"]},"application/rss+xml":{extensions:["rss"]},"application/x-web-app-manifest+json":{extensions:["webapp"]},"application/xml":{extensions:["xml","xsl","xsd","rng"]},"audio/mp4":{extensions:["m4a","mp4a"]},"audio/ogg":{extensions:["oga","ogg","spx"]},"audio/webm":{extensions:["weba"]},"audio/x-wav":{extensions:["wav"]},"image/bmp":{extensions:["bmp"]},"image/gif":{extensions:["gif"]},"image/jpeg":{extensions:["jpeg","jpg","jpe"]},"image/png":{extensions:["png"]},"image/svg+xml":{extensions:["svg","svgz"]},"image/vnd.microsoft.icon":{extensions:["ico"]},"image/webp":{extensions:["webp"]},"image/x-icon":{extensions:["ico"]},"image/x-xbitmap":{extensions:["xbm"]},"text/cache-manifest":{extensions:["appcache","manifest"]},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/css":{charset:"UTF-8",extensions:["css"]},"text/jade":{extensions:["jade"]},"text/jsx":{extensions:["jsx"]},"text/less":{extensions:["less"]},"text/markdown":{extensions:["markdown","md"]},"text/mathml":{extensions:["mml"]},"text/n3":{extensions:["n3"]},"text/plain":{extensions:["txt","text","conf","def","list","log","in","ini"]},"text/prs.lines.tag":{extensions:["dsc"]},"text/richtext":{extensions:["rtx"]},"text/sgml":{extensions:["sgml","sgm"]},"text/shex":{extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/stylus":{extensions:["stylus","styl"]},"text/troff":{extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{charset:"UTF-8",extensions:["ttl"]},"text/uri-list":{extensions:["uri","uris","urls"]},"text/vnd.curl":{extensions:["curl"]},"text/vnd.curl.dcurl":{extensions:["dcurl"]},"text/vnd.curl.mcurl":{extensions:["mcurl"]},"text/vnd.curl.scurl":{extensions:["scurl"]},"text/vnd.dvb.subtitle":{extensions:["sub"]},"text/vnd.fly":{extensions:["fly"]},"text/vnd.fmi.flexstor":{extensions:["flx"]},"text/vnd.graphviz":{extensions:["gv"]},"text/vnd.in3d.3dml":{extensions:["3dml"]},"text/vnd.in3d.spot":{extensions:["spot"]},"text/vnd.wap.wml":{extensions:["wml"]},"text/vnd.wap.wmlscript":{extensions:["wmls"]},"text/vtt":{charset:"UTF-8",extensions:["vtt"]},"text/x-asm":{extensions:["s","asm"]},"text/x-c":{extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{extensions:["htc"]},"text/x-fortran":{extensions:["f","for","f77","f90"]},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{extensions:["java"]},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{extensions:["mkd"]},"text/x-nfo":{extensions:["nfo"]},"text/x-opml":{extensions:["opml"]},"text/x-org":{extensions:["org"]},"text/x-pascal":{extensions:["p","pas"]},"text/x-processing":{extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{extensions:["etx"]},"text/x-sfv":{extensions:["sfv"]},"text/x-suse-ymp":{extensions:["ymp"]},"text/x-uuencode":{extensions:["uu"]},"text/xml":{extensions:["xml"]},"text/yaml":{extensions:["yaml","yml"]},"video/mp4":{extensions:["mp4","mp4v","mpg4"]},"video/webm":{extensions:["webm"]}}},{}],pBGv:[function(e,t,n){var s,o,i=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function x(e){if(s===setTimeout)return setTimeout(e,0);if((s===r||!s)&&setTimeout)return s=setTimeout,setTimeout(e,0);try{return s(e,0)}catch(i){try{return s.call(null,e,0)}catch(i){return s.call(this,e,0)}}}function c(e){if(o===clearTimeout)return clearTimeout(e);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{return o(e)}catch(i){try{return o.call(null,e)}catch(i){return o.call(this,e)}}}!function(){try{s="function"==typeof setTimeout?setTimeout:r}catch(i){s=r}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(i){o=a}}();var u,l=[],f=!1,p=-1;function m(){f&&u&&(f=!1,u.length?l=u.concat(l):p=-1,l.length&&h())}function h(){if(!f){var e=x(m);f=!0;for(var t=l.length;t;){for(u=l,l=[];++p<t;)u&&u[p].run();p=-1,t=l.length}u=null,f=!1,c(e)}}function v(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new v(e,t)),1!==l.length||f||x(h)},v.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],UUq2:[function(e,t,n){e("process");var s=e("process");function o(e,t){for(var n=0,s=e.length-1;s>=0;s--){var o=e[s];"."===o?e.splice(s,1):".."===o?(e.splice(s,1),n++):n&&(e.splice(s,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var i=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,r=function(e){return i.exec(e).slice(1)};function a(e,t){if(e.filter)return e.filter(t);for(var n=[],s=0;s<e.length;s++)t(e[s],s,e)&&n.push(e[s]);return n}n.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var i=n>=0?arguments[n]:s.cwd();if("string"!=typeof i)throw new TypeError("Arguments to path.resolve must be strings");i&&(e=i+"/"+e,t="/"===i.charAt(0))}return(t?"/":"")+(e=o(a(e.split("/"),function(e){return!!e}),!t).join("/"))||"."},n.normalize=function(e){var t=n.isAbsolute(e),s="/"===x(e,-1);return(e=o(a(e.split("/"),function(e){return!!e}),!t).join("/"))||t||(e="."),e&&s&&(e+="/"),(t?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(a(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function s(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var o=s(e.split("/")),i=s(t.split("/")),r=Math.min(o.length,i.length),a=r,x=0;x<r;x++)if(o[x]!==i[x]){a=x;break}var c=[];for(x=a;x<o.length;x++)c.push("..");return(c=c.concat(i.slice(a))).join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){var t=r(e),n=t[0],s=t[1];return n||s?(s&&(s=s.substr(0,s.length-1)),n+s):"."},n.basename=function(e,t){var n=r(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){return r(e)[3]};var x="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}},{process:"pBGv"}],Focm:[function(e,t,n){"use strict";var s=e("mime-db"),o=e("path").extname,i=/^\s*([^;\s]*)(?:;|\s|$)/,r=/^text\//i;function a(e){if(!e||"string"!=typeof e)return!1;var t=i.exec(e),n=t&&s[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!r.test(t[1]))&&"UTF-8"}n.charset=a,n.charsets={lookup:a},n.contentType=function(e){if(!e||"string"!=typeof e)return!1;var t=-1===e.indexOf("/")?n.lookup(e):e;if(!t)return!1;if(-1===t.indexOf("charset")){var s=n.charset(t);s&&(t+="; charset="+s.toLowerCase())}return t},n.extension=function(e){if(!e||"string"!=typeof e)return!1;var t=i.exec(e),s=t&&n.extensions[t[1].toLowerCase()];return!(!s||!s.length)&&s[0]},n.extensions=Object.create(null),n.lookup=function(e){if(!e||"string"!=typeof e)return!1;var t=o("x."+e).toLowerCase().substr(1);return t&&n.types[t]||!1},n.types=Object.create(null),function(e,t){var n=["nginx","apache",void 0,"iana"];Object.keys(s).forEach(function(o){var i=s[o],r=i.extensions;if(r&&r.length){e[o]=r;for(var a=0;a<r.length;a++){var x=r[a];if(t[x]){var c=n.indexOf(s[t[x]].source),u=n.indexOf(i.source);if("application/octet-stream"!==t[x]&&(c>u||c===u&&"application/"===t[x].substr(0,12)))continue}t[x]=o}}})}(n.extensions,n.types)},{"mime-db":"ECDM",path:"UUq2"}]},{},["Focm"]);
},{}],"KEOA":[function(require,module,exports) {
"use strict";var t=require("browser-mime");function e(e){return t.lookup(e)||"application/octet-stream"}function o(e){var o=t.lookup(e);return!!o&&("application/ogg"===(o=o.toLowerCase())||(o.startsWith("audio/")||o.startsWith("video/")))}function r(e){var o=t.lookup(e);return!!o&&o.toLowerCase().startsWith("image/")}module.exports={isMedia:o,isImage:r,getMimeType:e};
},{"browser-mime":"lo7t"}],"KyOv":[function(require,module,exports) {
var define;
var t;parcelRequire=function(e,n,r,i){var o="function"==typeof parcelRequire&&parcelRequire,s="function"==typeof require&&require;function a(t,r){if(!n[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!r&&i)return i(t,!0);if(o)return o(t,!0);if(s&&"string"==typeof t)return s(t);var u=new Error("Cannot find module '"+t+"'");throw u.code="MODULE_NOT_FOUND",u}c.resolve=function(n){return e[t][1][n]||n},c.cache={};var f=n[t]=new a.Module(t);e[t][0].call(f.exports,c,f,f.exports,this)}return n[t].exports;function c(t){return a(c.resolve(t))}}a.isParcelRequire=!0,a.Module=function(t){this.id=t,this.bundle=a,this.exports={}},a.modules=e,a.cache=n,a.parent=o,a.register=function(t,n){e[t]=[function(t,e){e.exports=n},{}]};for(var u=0;u<r.length;u++)a(r[u]);if(r.length){var f=a(r[r.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=f:"function"==typeof t&&t.amd?t(function(){return f}):this[i]=f}return a}({"0c0E":[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r="__ES6-PROMISIFY--CUSTOM-ARGUMENTS__";function i(t){if("function"!=typeof t)throw new TypeError("Argument to promisify must be a function");var e=t[r],n=i.Promise||Promise;if("function"!=typeof n)throw new Error("No Promise implementation found; do you need a polyfill?");return function(){for(var r=this,i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return new n(function(n,i){o.push(function(t){if(t)return i(t);for(var r=arguments.length,o=Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];if(1===o.length||!e)return n(o[0]);var a={};o.forEach(function(t,n){var r=e[n];r&&(a[r]=t)}),n(a)}),t.call.apply(t,[r].concat(o))})}}i.argumentNames=r,i.Promise=void 0,n.promisify=i},{}],pBGv:[function(t,e,n){var r,i,o=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(t){if(r===setTimeout)return setTimeout(t,0);if((r===s||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(o){try{return r.call(null,t,0)}catch(o){return r.call(this,t,0)}}}function f(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{return i(t)}catch(o){try{return i.call(null,t)}catch(o){return i.call(this,t)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:s}catch(o){r=s}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(o){i=a}}();var c,p=[],h=!1,l=-1;function d(){h&&c&&(h=!1,c.length?p=c.concat(p):l=-1,p.length&&g())}function g(){if(!h){var t=u(d);h=!0;for(var e=p.length;e;){for(c=p,p=[];++l<e;)c&&c[l].run();l=-1,e=p.length}c=null,h=!1,f(t)}}function m(t,e){this.fun=t,this.array=e}function y(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];p.push(new m(t,e)),1!==p.length||h||u(g)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],UUq2:[function(t,e,n){t("process");var r=t("process");function i(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}var o=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,s=function(t){return o.exec(t).slice(1)};function a(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}n.resolve=function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var o=n>=0?arguments[n]:r.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,e="/"===o.charAt(0))}return(e?"/":"")+(t=i(a(t.split("/"),function(t){return!!t}),!e).join("/"))||"."},n.normalize=function(t){var e=n.isAbsolute(t),r="/"===u(t,-1);return(t=i(a(t.split("/"),function(t){return!!t}),!e).join("/"))||e||(t="."),t&&r&&(t+="/"),(e?"/":"")+t},n.isAbsolute=function(t){return"/"===t.charAt(0)},n.join=function(){var t=Array.prototype.slice.call(arguments,0);return n.normalize(a(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},n.relative=function(t,e){function r(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=n.resolve(t).substr(1),e=n.resolve(e).substr(1);for(var i=r(t.split("/")),o=r(e.split("/")),s=Math.min(i.length,o.length),a=s,u=0;u<s;u++)if(i[u]!==o[u]){a=u;break}var f=[];for(u=a;u<i.length;u++)f.push("..");return(f=f.concat(o.slice(a))).join("/")},n.sep="/",n.delimiter=":",n.dirname=function(t){var e=s(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},n.basename=function(t,e){var n=s(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},n.extname=function(t){return s(t)[3]};var u="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}},{process:"pBGv"}],"8thZ":[function(t,e,n){t("process");t("process").cwd=function(){return"/"};var r=t("path"),i=Object.create(r);i.basename=function(t,e){var n=r.basename(t,e);return""===n?"/":n},i.normalize=function(t){return"/"===(t=r.normalize(t))?t:i.removeTrailing(t)},i.isNull=function(t){return-1!==(""+t).indexOf("\0")},i.addTrailing=function(t){return t.replace(/\/*$/,"/")},i.removeTrailing=function(t){return""===(t=t.replace(/\/*$/,""))?"/":t},e.exports=i},{path:"UUq2",process:"pBGv"}],gCho:[function(t,e,n){var r="READ",i="WRITE",o="CREATE",s="EXCLUSIVE",a="TRUNCATE",u="APPEND";e.exports={FILE_SYSTEM_NAME:"local",FILE_STORE_NAME:"files",IDB_RO:"readonly",IDB_RW:"readwrite",WSQL_VERSION:"1",WSQL_SIZE:5242880,WSQL_DESC:"FileSystem Storage",NODE_TYPE_FILE:"FILE",NODE_TYPE_DIRECTORY:"DIRECTORY",NODE_TYPE_SYMBOLIC_LINK:"SYMLINK",NODE_TYPE_META:"META",DEFAULT_DIR_PERMISSIONS:493,DEFAULT_FILE_PERMISSIONS:420,FULL_READ_WRITE_EXEC_PERMISSIONS:511,READ_WRITE_PERMISSIONS:438,SYMLOOP_MAX:10,BINARY_MIME_TYPE:"application/octet-stream",JSON_MIME_TYPE:"application/json",ROOT_DIRECTORY_NAME:"/",FS_FORMAT:"FORMAT",FS_NOCTIME:"NOCTIME",FS_NOMTIME:"NOMTIME",FS_NODUPEIDCHECK:"FS_NODUPEIDCHECK",O_READ:r,O_WRITE:i,O_CREATE:o,O_EXCLUSIVE:s,O_TRUNCATE:a,O_APPEND:u,O_FLAGS:{r:[r],"r+":[r,i],w:[i,o,a],"w+":[i,r,o,a],wx:[i,o,s,a],"wx+":[i,r,o,s,a],a:[i,o,u],"a+":[i,r,o,u],ax:[i,o,s,u],"ax+":[i,r,o,s,u]},XATTR_CREATE:"CREATE",XATTR_REPLACE:"REPLACE",FS_READY:"READY",FS_PENDING:"PENDING",FS_ERROR:"ERROR",SUPER_NODE_ID:"00000000-0000-0000-0000-000000000000",STDIN:0,STDOUT:1,STDERR:2,FIRST_DESCRIPTOR:3,ENVIRONMENT:{TMP:"/tmp",PATH:""},fsConstants:{O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_DSYNC:4194304,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_COPYFILE_EXCL:1,COPYFILE_EXCL:1}}},{}],yh9p:[function(t,e,n){"use strict";n.byteLength=function(t){var e=f(t),n=e[0],r=e[1];return 3*(n+r)/4-r},n.toByteArray=function(t){for(var e,n=f(t),r=n[0],s=n[1],a=new o(function(t,e,n){return 3*(e+n)/4-n}(0,r,s)),u=0,c=s>0?r-4:r,p=0;p<c;p+=4)e=i[t.charCodeAt(p)]<<18|i[t.charCodeAt(p+1)]<<12|i[t.charCodeAt(p+2)]<<6|i[t.charCodeAt(p+3)],a[u++]=e>>16&255,a[u++]=e>>8&255,a[u++]=255&e;return 2===s&&(e=i[t.charCodeAt(p)]<<2|i[t.charCodeAt(p+1)]>>4,a[u++]=255&e),1===s&&(e=i[t.charCodeAt(p)]<<10|i[t.charCodeAt(p+1)]<<4|i[t.charCodeAt(p+2)]>>2,a[u++]=e>>8&255,a[u++]=255&e),a},n.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(p(t,s,s+16383>a?a:s+16383));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function f(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function p(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(c(r));return i.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],JgNJ:[function(t,e,n){n.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,f=u>>1,c=-7,p=n?i-1:0,h=n?-1:1,l=t[e+p];for(p+=h,o=l&(1<<-c)-1,l>>=-c,c+=a;c>0;o=256*o+t[e+p],p+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+t[e+p],p+=h,c-=8);if(0===o)o=1-f;else{if(o===u)return s?NaN:1/0*(l?-1:1);s+=Math.pow(2,r),o-=f}return(l?-1:1)*s*Math.pow(2,o-r)},n.write=function(t,e,n,r,i,o){var s,a,u,f=8*o-i-1,c=(1<<f)-1,p=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=r?0:o-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+p>=1?h/u:h*Math.pow(2,1-p))*u>=2&&(s++,u/=2),s+p>=c?(a=0,s=c):s+p>=1?(a=(e*u-1)*Math.pow(2,i),s+=p):(a=e*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;t[n+l]=255&a,l+=d,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;t[n+l]=255&s,l+=d,s/=256,f-=8);t[n+l-d]|=128*g}},{}],REa7:[function(t,e,n){var r={}.toString;e.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},{}],dskh:[function(t,e,n){arguments[3];var r=arguments[3],i=t("base64-js"),o=t("ieee754"),s=t("isarray");function a(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=f.prototype:(null===t&&(t=new f(e)),t.length=e),t}function f(t,e,n){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return c(this,t,e,n)}function c(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),f.TYPED_ARRAY_SUPPORT?(t=e).__proto__=f.prototype:t=l(t,e),t}(t,e,n,r):"string"==typeof e?function(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!f.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|m(e,n),i=(t=u(t,r)).write(e,n);return i!==r&&(t=t.slice(0,i)),t}(t,e,n):d(t,e)}function p(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(p(e),t=u(t,e<0?0:0|g(e)),!f.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function l(t,e){var n=e.length<0?0:0|g(e.length);t=u(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function d(t,e){if(f.isBuffer(e)){var n=0|g(e.length);return 0===(t=u(t,n)).length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||function(t){return t!=t}(e.length)?u(t,0):l(t,e);if("Buffer"===e.type&&s(e.data))return l(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function m(t,e){if(f.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(t).length;default:if(r)return V(t).length;e=(""+e).toLowerCase(),r=!0}}function y(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function E(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=f.from(e,r)),f.isBuffer(e))return 0===e.length?-1:v(t,e,n,r,i);if("number"==typeof e)return e&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,r,i){var o,s=1,a=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,n/=2}function f(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var c=-1;for(o=n;o<a;o++)if(f(t,o)===f(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(n+u>a&&(n=a-u),o=n;o>=0;o--){for(var p=!0,h=0;h<u;h++)if(f(t,o+h)!==f(e,h)){p=!1;break}if(p)return o}return-1}function w(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function b(t,e,n,r){return z(V(e,t.length-n),t,n,r)}function O(t,e,n,r){return z(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function _(t,e,n,r){return O(t,e,n,r)}function A(t,e,n,r){return z(X(e),t,n,r)}function I(t,e,n,r){return z(function(t,e){for(var n,r,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)r=(n=t.charCodeAt(s))>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function R(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function T(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,s,a,u,f=t[i],c=null,p=f>239?4:f>223?3:f>191?2:1;if(i+p<=n)switch(p){case 1:f<128&&(c=f);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&f)<<6|63&o)>127&&(c=u);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(u=(15&f)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&f)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,p=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=p}return function(t){var e=t.length;if(e<=S)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=S));return n}(r)}n.Buffer=f,n.SlowBuffer=function(t){return+t!=t&&(t=0),f.alloc(+t)},n.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=void 0!==r.TYPED_ARRAY_SUPPORT?r.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(i){return!1}}(),n.kMaxLength=a(),f.poolSize=8192,f._augment=function(t){return t.__proto__=f.prototype,t},f.from=function(t,e,n){return c(null,t,e,n)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})),f.alloc=function(t,e,n){return function(t,e,n,r){return p(e),e<=0?u(t,e):void 0!==n?"string"==typeof r?u(t,e).fill(n,r):u(t,e).fill(n):u(t,e)}(null,t,e,n)},f.allocUnsafe=function(t){return h(null,t)},f.allocUnsafeSlow=function(t){return h(null,t)},f.isBuffer=function(t){return!(null==t||!t._isBuffer)},f.compare=function(t,e){if(!f.isBuffer(t)||!f.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},f.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(t,e){if(!s(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return f.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=f.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var o=t[n];if(!f.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},f.byteLength=m,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},f.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},f.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},f.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?T(this,0,t):function(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return j(this,e,n);case"utf8":case"utf-8":return T(this,e,n);case"ascii":return D(this,e,n);case"latin1":case"binary":return N(this,e,n);case"base64":return R(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}.apply(this,arguments)},f.prototype.equals=function(t){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===f.compare(this,t)},f.prototype.inspect=function(){var t="",e=n.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},f.prototype.compare=function(t,e,n,r,i){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0),a=Math.min(o,s),u=this.slice(r,i),c=t.slice(e,n),p=0;p<a;++p)if(u[p]!==c[p]){o=u[p],s=c[p];break}return o<s?-1:s<o?1:0},f.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},f.prototype.indexOf=function(t,e,n){return E(this,t,e,n,!0)},f.prototype.lastIndexOf=function(t,e,n){return E(this,t,e,n,!1)},f.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return O(this,t,e,n);case"latin1":case"binary":return _(this,t,e,n);case"base64":return A(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function D(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function N(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function j(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=k(t[o]);return i}function P(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function x(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,n,r,i,o){if(!f.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function C(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function B(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function M(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(t,e,n,r,i){return i||M(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function Y(t,e,n,r,i){return i||M(t,0,n,8),o.write(t,e,n,r,52,8),n+8}f.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),f.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=f.prototype;else{var i=e-t;n=new f(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},f.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||x(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},f.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||x(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},f.prototype.readUInt8=function(t,e){return e||x(t,1,this.length),this[t]},f.prototype.readUInt16LE=function(t,e){return e||x(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUInt16BE=function(t,e){return e||x(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUInt32LE=function(t,e){return e||x(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},f.prototype.readUInt32BE=function(t,e){return e||x(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||x(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},f.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||x(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},f.prototype.readInt8=function(t,e){return e||x(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},f.prototype.readInt16LE=function(t,e){e||x(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},f.prototype.readInt16BE=function(t,e){e||x(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},f.prototype.readInt32LE=function(t,e){return e||x(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,e){return e||x(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readFloatLE=function(t,e){return e||x(t,4,this.length),o.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,e){return e||x(t,4,this.length),o.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,e){return e||x(t,8,this.length),o.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,e){return e||x(t,8,this.length),o.read(this,t,!1,52,8)},f.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||L(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},f.prototype.writeUIntBE=function(t,e,n,r){t=+t,e|=0,n|=0,r||L(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},f.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,255,0),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},f.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):C(this,t,e,!0),e+2},f.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):C(this,t,e,!1),e+2},f.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):B(this,t,e,!0),e+4},f.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},f.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<n&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},f.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},f.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,127,-128),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},f.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):C(this,t,e,!0),e+2},f.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):C(this,t,e,!1),e+2},f.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):B(this,t,e,!0),e+4},f.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},f.prototype.writeFloatLE=function(t,e,n){return F(this,t,e,!0,n)},f.prototype.writeFloatBE=function(t,e,n){return F(this,t,e,!1,n)},f.prototype.writeDoubleLE=function(t,e,n){return Y(this,t,e,!0,n)},f.prototype.writeDoubleBE=function(t,e,n){return Y(this,t,e,!1,n)},f.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},f.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!f.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var s=f.isBuffer(t)?t:V(new f(t,r).toString()),a=s.length;for(o=0;o<n-e;++o)this[o+e]=s[o%a]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function k(t){return t<16?"0"+t.toString(16):t.toString(16)}function V(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],s=0;s<r;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function X(t){return i.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(U,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function z(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}},{"base64-js":"yh9p",ieee754:"JgNJ",isarray:"REa7",buffer:"dskh"}],aSGf:[function(t,e,n){t("buffer").Buffer,arguments[3];var r=t("buffer").Buffer,i=arguments[3],o=t("../constants.js").FILE_SYSTEM_NAME,s=t("../constants.js").FILE_STORE_NAME,a=t("../constants.js").IDB_RW,u=t("../constants.js").IDB_RO;function f(t,e){this.db=t,this.mode=e}function c(t){this.name=t||o,this.db=null}f.prototype._getObjectStore=function(){if(this.objectStore)return this.objectStore;var t=this.db.transaction(s,this.mode);return this.objectStore=t.objectStore(s),this.objectStore},f.prototype.clear=function(t){try{var e=this._getObjectStore().clear();e.onsuccess=function(){t()},e.onerror=function(e){e.preventDefault(),t(e.error)}}catch(o){t(o)}},f.prototype._get=function(t,e){try{var n=this._getObjectStore().get(t);n.onsuccess=function(t){var n=t.target.result;e(null,n)},n.onerror=function(t){t.preventDefault(),e(t.error)}}catch(s){e(s)}},f.prototype.getObject=function(t,e){this._get(t,e)},f.prototype.getBuffer=function(t,e){this._get(t,function(t,n){if(t)return e(t);e(null,r.from(n))})},f.prototype._put=function(t,e,n){try{var r=this._getObjectStore().put(e,t);r.onsuccess=function(t){var e=t.target.result;n(null,e)},r.onerror=function(t){t.preventDefault(),n(t.error)}}catch(a){n(a)}},f.prototype.putObject=function(t,e,n){this._put(t,e,n)},f.prototype.putBuffer=function(t,e,n){var r=e.buffer;this._put(t,r,n)},f.prototype.delete=function(t,e){try{var n=this._getObjectStore().delete(t);n.onsuccess=function(t){var n=t.target.result;e(null,n)},n.onerror=function(t){t.preventDefault(),e(t.error)}}catch(s){e(s)}},c.isSupported=function(){return!!(i.indexedDB||i.mozIndexedDB||i.webkitIndexedDB||i.msIndexedDB)},c.prototype.open=function(t){var e=this;if(e.db)return t();try{var n=(i.indexedDB||i.mozIndexedDB||i.webkitIndexedDB||i.msIndexedDB).open(e.name);n.onupgradeneeded=function(t){var e=t.target.result;e.objectStoreNames.contains(s)&&e.deleteObjectStore(s),e.createObjectStore(s)},n.onsuccess=function(n){e.db=n.target.result,t()},n.onerror=function(e){e.preventDefault(),t(e.error)}}catch(u){t(u)}},c.prototype.getReadOnlyContext=function(){return new f(this.db,u)},c.prototype.getReadWriteContext=function(){return new f(this.db,a)},e.exports=c},{"../constants.js":"gCho",buffer:"dskh"}],u4Zs:[function(t,e,n){t("process");var r,i=t("process");r={},void 0!==i&&i.nextTick?(r.nextTick=i.nextTick,"undefined"!=typeof setImmediate?r.setImmediate=function(t){setImmediate(t)}:r.setImmediate=r.nextTick):"function"==typeof setImmediate?(r.nextTick=function(t){setImmediate(t)},r.setImmediate=r.nextTick):(r.nextTick=function(t){setTimeout(t,0)},r.setImmediate=r.nextTick),r.eachSeries=function(t,e,n){if(n=n||function(){},!t.length)return n();var r=0;!function i(){e(t[r],function(e){e?(n(e),n=function(){}):(r+=1)>=t.length?n():i()})}()},r.forEachSeries=r.eachSeries,void 0!==e&&e.exports?e.exports=r:root.async=r},{process:"pBGv"}],Xhog:[function(t,e,n){var r=t("../constants.js").FILE_SYSTEM_NAME,i=t("../../lib/async.js").setImmediate,o=function(){var t={};return function(e){return t.hasOwnProperty(e)||(t[e]={}),t[e]}}();function s(t,e){this.readOnly=e,this.objectStore=t}function a(t){this.name=t||r}s.prototype.clear=function(t){if(this.readOnly)i(function(){t("[MemoryContext] Error: write operation on read only context")});else{var e=this.objectStore;Object.keys(e).forEach(function(t){delete e[t]}),i(t)}},s.prototype.getObject=s.prototype.getBuffer=function(t,e){var n=this;i(function(){e(null,n.objectStore[t])})},s.prototype.putObject=s.prototype.putBuffer=function(t,e,n){this.readOnly?i(function(){n("[MemoryContext] Error: write operation on read only context")}):(this.objectStore[t]=e,i(n))},s.prototype.delete=function(t,e){this.readOnly?i(function(){e("[MemoryContext] Error: write operation on read only context")}):(delete this.objectStore[t],i(e))},a.isSupported=function(){return!0},a.prototype.open=function(t){this.db=o(this.name),i(t)},a.prototype.getReadOnlyContext=function(){return new s(this.db,!0)},a.prototype.getReadWriteContext=function(){return new s(this.db,!1)},e.exports=a},{"../constants.js":"gCho","../../lib/async.js":"u4Zs"}],UCG6:[function(t,e,n){var r=t("./indexeddb.js"),i=t("./memory.js");e.exports={IndexedDB:r,Default:r,Memory:i}},{"./indexeddb.js":"aSGf","./memory.js":"Xhog"}],Hmaa:[function(t,e,n){var r={};["3:EACCES:permission denied","9:EBADF:bad file descriptor","10:EBUSY:resource busy or locked","18:EINVAL:invalid argument","27:ENOTDIR:not a directory","28:EISDIR:illegal operation on a directory","34:ENOENT:no such file or directory","47:EEXIST:file already exists","50:EPERM:operation not permitted","51:ELOOP:too many symbolic links encountered","53:ENOTEMPTY:directory not empty","55:EIO:i/o error","1000:ENOTMOUNTED:not mounted","1001:EFILESYSTEMERROR:missing super node, use 'FORMAT' flag to format filesystem.","1002:ENOATTR:attribute does not exist"].forEach(function(t){var e=+(t=t.split(":"))[0],n=t[1],i=t[2];function o(t,r){Error.call(this),this.name=n,this.code=n,this.errno=e,this.message=t||i,r&&(this.path=r),this.stack=new Error(this.message).stack}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.prototype.toString=function(){var t=this.path?", '"+this.path+"'":"";return this.name+": "+this.message+t},r[n]=r[e]=o}),e.exports=r},{}],lsut:[function(t,e,n){"use strict";var r=t("../constants.js").ENVIRONMENT;e.exports=function(t){(t=t||{}).TMP=t.TMP||r.TMP,t.PATH=t.PATH||r.PATH,this.get=function(e){return t[e]},this.set=function(e,n){t[e]=n}}},{"../constants.js":"gCho"}],bQx9:[function(t,e,n){e.exports=function(t,e){for(var n=[],i=0;i<t.length;i++){var o=e(t[i],i);r(o)?n.push.apply(n,o):n.push(o)}return n};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},{}],"6D9y":[function(t,e,n){"use strict";function r(t,e,n){t instanceof RegExp&&(t=i(t,n)),e instanceof RegExp&&(e=i(e,n));var r=o(t,e,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+t.length,r[1]),post:n.slice(r[1]+e.length)}}function i(t,e){var n=e.match(t);return n?n[0]:null}function o(t,e,n){var r,i,o,s,a,u=n.indexOf(t),f=n.indexOf(e,u+1),c=u;if(u>=0&&f>0){for(r=[],o=n.length;c>=0&&!a;)c==u?(r.push(c),u=n.indexOf(t,c+1)):1==r.length?a=[r.pop(),f]:((i=r.pop())<o&&(o=i,s=f),f=n.indexOf(e,c+1)),c=u<f&&u>=0?u:f;r.length&&(a=[o,s])}return a}e.exports=r,r.range=o},{}],"dwX/":[function(t,e,n){var r=t("concat-map"),i=t("balanced-match");e.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),m(function(t){return t.split("\\\\").join(o).split("\\{").join(s).split("\\}").join(a).split("\\,").join(u).split("\\.").join(f)}(t),!0).map(p)):[]};var o="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",u="\0COMMA"+Math.random()+"\0",f="\0PERIOD"+Math.random()+"\0";function c(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function p(t){return t.split(o).join("\\").split(s).join("{").split(a).join("}").split(u).join(",").split(f).join(".")}function h(t){return"{"+t+"}"}function l(t){return/^-?0\d/.test(t)}function d(t,e){return t<=e}function g(t,e){return t>=e}function m(t,e){var n=[],o=i("{","}",t);if(!o||/\$$/.test(o.pre))return[t];var s,u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),f=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),p=u||f,y=o.body.indexOf(",")>=0;if(!p&&!y)return o.post.match(/,.*\}/)?m(t=o.pre+"{"+o.body+a+o.post):[t];if(p)s=o.body.split(/\.\./);else if(1===(s=function t(e){if(!e)return[""];var n=[],r=i("{","}",e);if(!r)return e.split(",");var o=r.pre,s=r.body,a=r.post,u=o.split(",");u[u.length-1]+="{"+s+"}";var f=t(a);return a.length&&(u[u.length-1]+=f.shift(),u.push.apply(u,f)),n.push.apply(n,u),n}(o.body)).length&&1===(s=m(s[0],!1).map(h)).length)return(w=o.post.length?m(o.post,!1):[""]).map(function(t){return o.pre+s[0]+t});var E,v=o.pre,w=o.post.length?m(o.post,!1):[""];if(p){var b=c(s[0]),O=c(s[1]),_=Math.max(s[0].length,s[1].length),A=3==s.length?Math.abs(c(s[2])):1,I=d;O<b&&(A*=-1,I=g);var R=s.some(l);E=[];for(var T=b;I(T,O);T+=A){var S;if(f)"\\"===(S=String.fromCharCode(T))&&(S="");else if(S=String(T),R){var D=_-S.length;if(D>0){var N=new Array(D+1).join("0");S=T<0?"-"+N+S.slice(1):N+S}}E.push(S)}}else E=r(s,function(t){return m(t,!1)});for(var j=0;j<E.length;j++)for(var P=0;P<w.length;P++){var x=v+E[j]+w[P];(!e||p||x)&&n.push(x)}return n}},{"concat-map":"bQx9","balanced-match":"6D9y"}],"Nt/K":[function(t,e,n){e.exports=d,d.Minimatch=g;var r={sep:"/"};try{r=t("path")}catch(E){}var i=d.GLOBSTAR=g.GLOBSTAR={},o=t("brace-expansion"),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",u=a+"*?",f="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",c="(?:(?!(?:\\/|^)\\.).)*?",p=function(t){return t.split("").reduce(function(t,e){return t[e]=!0,t},{})}("().*{}+?[]^$\\!");var h=/\/+/;function l(t,e){t=t||{},e=e||{};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}function d(t,e,n){if("string"!=typeof e)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===e.charAt(0))&&(""===e.trim()?""===t:new g(e,n).match(t))}function g(t,e){if(!(this instanceof g))return new g(t,e);if("string"!=typeof t)throw new TypeError("glob pattern string required");e||(e={}),t=t.trim(),"/"!==r.sep&&(t=t.split(r.sep).join("/")),this.options=e,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function m(t,e){if(e||(e=this instanceof g?this.options:{}),void 0===(t=void 0===t?this.pattern:t))throw new TypeError("undefined pattern");return e.nobrace||!t.match(/\{.*\}/)?[t]:o(t)}d.filter=function(t,e){return e=e||{},function(n,r,i){return d(n,t,e)}},d.defaults=function(t){if(!t||!Object.keys(t).length)return d;var e=d,n=function(n,r,i){return e.minimatch(n,r,l(t,i))};return n.Minimatch=function(n,r){return new e.Minimatch(n,l(t,r))},n},g.defaults=function(t){return t&&Object.keys(t).length?d.defaults(t).Minimatch:g},g.prototype.debug=function(){},g.prototype.make=function(){if(!this._made){var t=this.pattern,e=this.options;if(e.nocomment||"#"!==t.charAt(0))if(t){this.parseNegate();var n=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error),this.debug(this.pattern,n),n=this.globParts=n.map(function(t){return t.split(h)}),this.debug(this.pattern,n),n=n.map(function(t,e,n){return t.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(t){return-1===t.indexOf(!1)}),this.debug(this.pattern,n),this.set=n}else this.empty=!0;else this.comment=!0}},g.prototype.parseNegate=function(){var t=this.pattern,e=!1,n=0;if(!this.options.nonegate){for(var r=0,i=t.length;r<i&&"!"===t.charAt(r);r++)e=!e,n++;n&&(this.pattern=t.substr(n)),this.negate=e}},d.braceExpand=function(t,e){return m(t,e)},g.prototype.braceExpand=m,g.prototype.parse=function(t,e){if(t.length>65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===t)return i;if(""===t)return"";var r,o="",f=!!n.nocase,c=!1,h=[],l=[],d=!1,g=-1,m=-1,v="."===t.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",w=this;function b(){if(r){switch(r){case"*":o+=u,f=!0;break;case"?":o+=a,f=!0;break;default:o+="\\"+r}w.debug("clearStateChar %j %j",r,o),r=!1}}for(var O,_=0,A=t.length;_<A&&(O=t.charAt(_));_++)if(this.debug("%s\t%s %s %j",t,_,o,O),c&&p[O])o+="\\"+O,c=!1;else switch(O){case"/":return!1;case"\\":b(),c=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",t,_,o,O),d){this.debug(" in class"),"!"===O&&_===m+1&&(O="^"),o+=O;continue}w.debug("call clearStateChar %j",r),b(),r=O,n.noext&&b();continue;case"(":if(d){o+="(";continue}if(!r){o+="\\(";continue}h.push({type:r,start:_-1,reStart:o.length,open:s[r].open,close:s[r].close}),o+="!"===r?"(?:(?!(?:":"(?:",this.debug("plType %j %j",r,o),r=!1;continue;case")":if(d||!h.length){o+="\\)";continue}b(),f=!0;var I=h.pop();o+=I.close,"!"===I.type&&l.push(I),I.reEnd=o.length;continue;case"|":if(d||!h.length||c){o+="\\|",c=!1;continue}b(),o+="|";continue;case"[":if(b(),d){o+="\\"+O;continue}d=!0,m=_,g=o.length,o+=O;continue;case"]":if(_===m+1||!d){o+="\\"+O,c=!1;continue}if(d){var R=t.substring(m+1,_);try{RegExp("["+R+"]")}catch(E){var T=this.parse(R,y);o=o.substr(0,g)+"\\["+T[0]+"\\]",f=f||T[1],d=!1;continue}}f=!0,d=!1,o+=O;continue;default:b(),c?c=!1:!p[O]||"^"===O&&d||(o+="\\"),o+=O}for(d&&(R=t.substr(m+1),T=this.parse(R,y),o=o.substr(0,g)+"\\["+T[0],f=f||T[1]),I=h.pop();I;I=h.pop()){var S=o.slice(I.reStart+I.open.length);this.debug("setting tail",o,I),S=S.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(t,e,n){return n||(n="\\"),e+e+n+"|"}),this.debug("tail=%j\n %s",S,S,I,o);var D="*"===I.type?u:"?"===I.type?a:"\\"+I.type;f=!0,o=o.slice(0,I.reStart)+D+"\\("+S}b(),c&&(o+="\\\\");var N=!1;switch(o.charAt(0)){case".":case"[":case"(":N=!0}for(var j=l.length-1;j>-1;j--){var P=l[j],x=o.slice(0,P.reStart),L=o.slice(P.reStart,P.reEnd-8),C=o.slice(P.reEnd-8,P.reEnd),B=o.slice(P.reEnd);C+=B;var M=x.split("(").length-1,F=B;for(_=0;_<M;_++)F=F.replace(/\)[+*?]?/,"");var Y="";""===(B=F)&&e!==y&&(Y="$"),o=x+L+B+Y+C}if(""!==o&&f&&(o="(?=.)"+o),N&&(o=v+o),e===y)return[o,f];if(!f)return function(t){return t.replace(/\\(.)/g,"$1")}(t);var U=n.nocase?"i":"";try{var k=new RegExp("^"+o+"$",U)}catch(E){return new RegExp("$.")}return k._glob=t,k._src=o,k};var y={};d.makeRe=function(t,e){return new g(t,e||{}).makeRe()},g.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,n=e.noglobstar?u:e.dot?f:c,r=e.nocase?"i":"",o=t.map(function(t){return t.map(function(t){return t===i?n:"string"==typeof t?function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(t):t._src}).join("\\/")}).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,r)}catch(s){this.regexp=!1}return this.regexp},d.match=function(t,e,n){var r=new g(e,n=n||{});return t=t.filter(function(t){return r.match(t)}),r.options.nonull&&!t.length&&t.push(e),t},g.prototype.match=function(t,e){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;var n=this.options;"/"!==r.sep&&(t=t.split(r.sep).join("/")),t=t.split(h),this.debug(this.pattern,"split",t);var i,o,s=this.set;for(this.debug(this.pattern,"set",s),o=t.length-1;o>=0&&!(i=t[o]);o--);for(o=0;o<s.length;o++){var a=s[o],u=t;if(n.matchBase&&1===a.length&&(u=[i]),this.matchOne(u,a,e))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate},g.prototype.matchOne=function(t,e,n){var r=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var o=0,s=0,a=t.length,u=e.length;o<a&&s<u;o++,s++){this.debug("matchOne loop");var f,c=e[s],p=t[o];if(this.debug(e,c,p),!1===c)return!1;if(c===i){this.debug("GLOBSTAR",[e,c,p]);var h=o,l=s+1;if(l===u){for(this.debug("** at the end");o<a;o++)if("."===t[o]||".."===t[o]||!r.dot&&"."===t[o].charAt(0))return!1;return!0}for(;h<a;){var d=t[h];if(this.debug("\nglobstar while",t,h,e,l,d),this.matchOne(t.slice(h),e.slice(l),n))return this.debug("globstar found match!",h,a,d),!0;if("."===d||".."===d||!r.dot&&"."===d.charAt(0)){this.debug("dot detected!",t,h,e,l);break}this.debug("globstar swallow a segment, and continue"),h++}return!(!n||(this.debug("\n>>> no match, partial?",t,h,e,l),h!==a))}if("string"==typeof c?(f=r.nocase?p.toLowerCase()===c.toLowerCase():p===c,this.debug("string match",c,p,f)):(f=p.match(c),this.debug("pattern match",c,p,f)),!f)return!1}if(o===a&&s===u)return!0;if(o===a)return n;if(s===u)return o===a-1&&""===t[o];throw new Error("wtf?")}},{path:"UUq2","brace-expansion":"dwX/"}],Kf0M:[function(t,e,n){var r=t("es6-promisify").promisify,i=t("../path.js"),o=t("../errors.js"),s=t("./environment.js"),a=t("../../lib/async.js"),u=t("minimatch");function f(t,e){var n=this,a=new s((e=e||{}).env),u="/";Object.defineProperty(this,"fs",{get:function(){return t},enumerable:!0}),Object.defineProperty(this,"env",{get:function(){return a},enumerable:!0}),this.cd=function(e,n){e=i.resolve(u,e),t.stat(e,function(t,r){t?n(new o.ENOTDIR(null,e)):"DIRECTORY"===r.type?(u=e,n()):n(new o.ENOTDIR(null,e))})},this.pwd=function(){return u},this.promises={},["cd","exec","touch","cat","ls","rm","tempDir","mkdirp","find"].forEach(function(t){n.promises[t]=r(n[t].bind(n))})}f.prototype.exec=function(t,e,n){var r=this.fs;"function"==typeof e&&(n=e,e=[]),e=e||[],n=n||function(){},t=i.resolve(this.pwd(),t),r.readFile(t,"utf8",function(t,i){if(t)n(t);else try{new Function("fs","args","callback",i)(r,e,n)}catch(a){n(a)}})},f.prototype.touch=function(t,e,n){var r=this.fs;"function"==typeof e&&(n=e,e={}),e=e||{},n=n||function(){},t=i.resolve(this.pwd(),t),r.stat(t,function(i){i?!0===e.updateOnly?n():function(t){r.writeFile(t,"",n)}(t):function(t){var i=Date.now(),o=e.date||i,s=e.date||i;r.utimes(t,o,s,n)}(t)})},f.prototype.cat=function(t,e){var n=this,r=n.fs,s="";e=e||function(){},t?(t="string"==typeof t?[t]:t,a.eachSeries(t,function(t,e){var o=i.resolve(n.pwd(),t);r.readFile(o,"utf8",function(t,n){t?e(t):(s+=n+"\n",e())})},function(t){t?e(t):e(null,s.replace(/\n$/,""))})):e(new o.EINVAL("Missing files argument"))},f.prototype.ls=function(t,e,n){var r=this,s=r.fs;"function"==typeof e&&(n=e,e={}),e=e||{},n=n||function(){},t?function t(n,o){var u=i.resolve(r.pwd(),n),f=[];s.readdir(u,function(n,r){n?o(n):a.eachSeries(r,function(n,r){n=i.join(u,n),s.stat(n,function(n,o){if(n)r(n);else{var s=o;e.recursive&&"DIRECTORY"===o.type?t(i.join(u,s.name),function(t,e){t?r(t):(s.contents=e,f.push(s),r())}):(f.push(s),r())}})},function(t){o(t,f)})})}(t,n):n(new o.EINVAL("Missing dir argument"))},f.prototype.rm=function(t,e,n){var r=this,s=r.fs;"function"==typeof e&&(n=e,e={}),e=e||{},n=n||function(){},t?function t(n,u){n=i.resolve(r.pwd(),n),s.stat(n,function(r,f){r?u(r):"FILE"!==f.type?s.readdir(n,function(r,f){r?u(r):0!==f.length?e.recursive?(f=f.map(function(t){return i.join(n,t)}),a.eachSeries(f,t,function(t){t?u(t):s.rmdir(n,u)})):u(new o.ENOTEMPTY(null,n)):s.rmdir(n,u)}):s.unlink(n,u)})}(t,n):n(new o.EINVAL("Missing path argument"))},f.prototype.tempDir=function(t){var e=this.fs,n=this.env.get("TMP");t=t||function(){},e.mkdir(n,function(){t(null,n)})},f.prototype.mkdirp=function(t,e){var n=this.fs;e=e||function(){},t?"/"!==t?function t(e,r){n.stat(e,function(s,a){if(a){if(a.isDirectory())return void r();if(a.isFile())return void r(new o.ENOTDIR(null,e))}else{if(s&&"ENOENT"!==s.code)return void r(s);var u=i.dirname(e);"/"===u?n.mkdir(e,function(t){t&&"EEXIST"!==t.code?r(t):r()}):t(u,function(t){if(t)return r(t);n.mkdir(e,function(t){t&&"EEXIST"!==t.code?r(t):r()})})}})}(t,e):e():e(new o.EINVAL("Missing path argument"))},f.prototype.find=function(t,e,n){var r=this,s=r.fs;"function"==typeof e&&(n=e,e={}),n=n||function(){};var f=(e=e||{}).exec||function(t,e){e()},c=[];function p(t,n){var r=i.removeTrailing(t);!e.regex||e.regex.test(r)?e.name&&!u(i.basename(r),e.name)||e.path&&!u(i.dirname(r),e.path)?n():function(t,e){f(t,function(n){n?e(n):(c.push(t),e())})}(t,n):n()}function h(t,e){t=i.resolve(r.pwd(),t),s.readdir(t,function(n,r){n?"ENOTDIR"===n.code?p(t,e):e(n):p(i.addTrailing(t),function(n){n?e(n):(r=r.map(function(e){return i.join(t,e)}),a.eachSeries(r,h,function(t){e(t,c)}))})})}t?s.stat(t,function(e,r){e?n(e):r.isDirectory()?h(t,n):n(new o.ENOTDIR(null,t))}):n(new o.EINVAL("Missing path argument"))},e.exports=f},{"es6-promisify":"0c0E","../path.js":"8thZ","../errors.js":"Hmaa","./environment.js":"lsut","../../lib/async.js":"u4Zs",minimatch:"Nt/K"}],J4Qg:[function(t,e,n){var r=function(){};r.createInterface=function(t){return{on:function(e,n){void 0===this[t]&&(this[t]={}),this[t].hasOwnProperty(e)||(this[t][e]=[]),this[t][e].push(n)},off:function(e,n){void 0!==this[t]&&this[t].hasOwnProperty(e)&&function(t,e){for(var n=e.length-1;n>=0;n--)e[n]===t&&e.splice(n,1)}(n,this[t][e])},trigger:function(e){if(void 0!==this[t]&&this[t].hasOwnProperty(e))for(var n=Array.prototype.slice.call(arguments,1),r=0;r<this[t][e].length;r++)this[t][e][r].apply(this[t][e][r],n)},removeAllListeners:function(e){if(void 0!==this[t]){var n=this;n[t][e].forEach(function(t){n.off(e,t)})}}}};var i=r.createInterface("_handlers");r.prototype._on=i.on,r.prototype._off=i.off,r.prototype._trigger=i.trigger;var o=r.createInterface("handlers");r.prototype.on=function(){o.on.apply(this,arguments),Array.prototype.unshift.call(arguments,"on"),this._trigger.apply(this,arguments)},r.prototype.off=o.off,r.prototype.trigger=o.trigger,r.prototype.removeAllListeners=o.removeAllListeners,e.exports=r},{}],zFPO:[function(t,e,n){function r(t){return t.replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}e.exports={guid:function(){return r("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").toUpperCase()},nop:function(){},randomChars:function(t){return r("x".repeat(t=t||6))}}},{}],u7Jv:[function(t,e,n){arguments[3];var r=arguments[3];function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=t("./eventemitter.js"),s=t("../src/shared.js").guid;function a(t,e){var n=0;return function(){var r=Date.now();r-n>t&&(n=r,e.apply(this,arguments))}}var u=function(t){return void 0===t||void 0===t.localStorage?{getItem:function(){},setItem:function(){},removeItem:function(){}}:t.localStorage}(r);function f(){var t=this,e=Date.now();this.origin=s(),this.lastMessage=e,this.receivedIDs={},this.previousValues={};var n=function(){t._onStorageEvent.apply(t,arguments)};"undefined"!=typeof document&&(document.attachEvent?document.attachEvent("onstorage",n):r.addEventListener("storage",n,!1))}f.prototype._transaction=function(t){var e=1e3,n=20,r=this,i=!1,o=!1,s=null;!function a(){if(!i){var f=Date.now(),c=0|u.getItem(h);if(c&&f-c<e)return o||(r._on("storage",a),o=!0),void(s=setTimeout(a,n));i=!0,u.setItem(h,f),t(),o&&r._off("storage",a),s&&clearTimeout(s),u.removeItem(h)}}()},f.prototype._cleanup_emit=a(100,function(){this._transaction(function(){var t,e=Date.now()-l,n=0;try{t=JSON.parse(u.getItem(c)||"[]")}catch(a){t=[]}for(var r=t.length-1;r>=0;r--)t[r].timestamp<e&&(t.splice(r,1),n++);n>0&&u.setItem(c,JSON.stringify(t))})}),f.prototype._cleanup_once=a(100,function(){var t=this;t._transaction(function(){Date.now();var e,n,r=0;try{n=JSON.parse(u.getItem(p)||"{}")}catch(a){n={}}for(e in n)t._once_expired(e,n)&&(delete n[e],r++);r>0&&u.setItem(p,JSON.stringify(n))})}),f.prototype._once_expired=function(t,e){if(!e)return!0;if(!e.hasOwnProperty(t))return!0;if("object"!==i(e[t]))return!0;var n=e[t].ttl||d,r=Date.now();return e[t].timestamp<r-n},f.prototype._localStorageChanged=function(t,e){if(t&&t.key)return t.key===e;var n=u.getItem(e);return n!==this.previousValues[e]&&(this.previousValues[e]=n,!0)},f.prototype._onStorageEvent=function(t){t=t||r.event;var e=this;this._localStorageChanged(t,c)&&this._transaction(function(){var t,n=Date.now(),r=u.getItem(c);try{t=JSON.parse(r||"[]")}catch(o){t=[]}for(var i=0;i<t.length;i++)if(t[i].origin!==e.origin&&!(t[i].timestamp<e.lastMessage)){if(t[i].id){if(e.receivedIDs.hasOwnProperty(t[i].id))continue;e.receivedIDs[t[i].id]=!0}e.trigger(t[i].name,t[i].payload)}e.lastMessage=n}),this._trigger("storage",t)},f.prototype._emit=function(t,e,n){if((n="string"==typeof n||"number"==typeof n?String(n):null)&&n.length){if(this.receivedIDs.hasOwnProperty(n))return;this.receivedIDs[n]=!0}var r={id:n,name:t,origin:this.origin,timestamp:Date.now(),payload:e},i=this;this._transaction(function(){var n=u.getItem(c)||"[]",o="[]"===n?"":",";n=[n.substring(0,n.length-1),o,JSON.stringify(r),"]"].join(""),u.setItem(c,n),i.trigger(t,e),setTimeout(function(){i._cleanup_emit()},50)})},f.prototype.emit=function(t,e){this._emit.apply(this,arguments),this._trigger("emit",t,e)},f.prototype.once=function(t,e,n){if(f.supported){var r=this;this._transaction(function(){var i;try{i=JSON.parse(u.getItem(p)||"{}")}catch(o){i={}}r._once_expired(t,i)&&(i[t]={},i[t].timestamp=Date.now(),"number"==typeof n&&(i[t].ttl=1e3*n),u.setItem(p,JSON.stringify(i)),e(),setTimeout(function(){r._cleanup_once()},50))})}},function(t,e){if(void 0!==t&&t||(t={}),"object"===i(e))for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}(f.prototype,o.prototype),f.supported=void 0!==u;var c="intercom",p="intercom_once",h="intercom_lock",l=5e4,d=36e5;f.destroy=function(){u.removeItem(h),u.removeItem(c),u.removeItem(p)},f.getInstance=function(){var t;return function(){return t||(t=new f),t}}(),e.exports=f},{"./eventemitter.js":"J4Qg","../src/shared.js":"zFPO"}],"p3D+":[function(t,e,n){var r=t("../lib/eventemitter.js"),i=t("./path.js"),o=t("../lib/intercom.js");function s(){r.call(this);var t,e,n=this,s=!1;function a(r){(e===r||s&&0===r.indexOf(t))&&n.trigger("change","change",r)}n.start=function(n,r,u){if(!e){if(i.isNull(n))throw new Error("Path must be a string without null bytes.");e=i.normalize(n),(s=!0===u)&&(t="/"===e?"/":e+"/"),o.getInstance().on("change",a)}},n.close=function(){o.getInstance().off("change",a),n.removeAllListeners("change")}}s.prototype=new r,s.prototype.constructor=s,e.exports=s},{"../lib/eventemitter.js":"J4Qg","./path.js":"8thZ","../lib/intercom.js":"u7Jv"}],RlAD:[function(t,e,n){var r=t("./constants.js").NODE_TYPE_FILE;e.exports=function(t,e){this.id=t,this.type=e||r}},{"./constants.js":"gCho"}],U1jA:[function(t,e,n){var r=t("./constants").FIRST_DESCRIPTOR,i={},o=function(){for(var t=r;s(t);)t++;return t},s=function(t){return i[t]};e.exports={allocDescriptor:function(t){var e=o();return i[e]=t,e},releaseDescriptor:function(t){return delete i[t]},getOpenFileDescription:s}},{"./constants":"gCho"}],epsH:[function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}var o=t("./constants"),s=o.NODE_TYPE_FILE,a=o.NODE_TYPE_DIRECTORY,u=o.NODE_TYPE_SYMBOLIC_LINK,f=o.DEFAULT_FILE_PERMISSIONS,c=o.DEFAULT_DIR_PERMISSIONS,p=t("./constants").fsConstants,h=p.S_IFREG,l=p.S_IFDIR,d=p.S_IFLNK;function g(t,e,n){if(t[e])return n();t.guid(function(r,i){if(r)return n(r);t[e]=i,n()})}function m(t,e){switch(t){case a:return(e||c)|l;case u:return(e||f)|d;case s:default:return(e||f)|h}}var y=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=Date.now();this.id=e.id,this.data=e.data,this.size=e.size||0,this.atime=e.atime||n,this.ctime=e.ctime||n,this.mtime=e.mtime||n,this.flags=e.flags||[],this.xattrs=e.xattrs||{},this.nlinks=e.nlinks||0,"string"==typeof e.type?this.type=e.type:"string"==typeof e.mode?this.type=e.mode:this.type=s,this.permissions=e.permissions||m(this.type),this.uid=e.uid||0,this.gid=e.gid||0}return i(t,[{key:"toJSON",value:function(){return{id:this.id,data:this.data,size:this.size,atime:this.atime,ctime:this.ctime,mtime:this.ctime,flags:this.flags,xattrs:this.xattrs,nlinks:this.nlinks,mode:this.type,permissions:this.permissions,uid:this.uid,gid:this.gid}}},{key:"mode",get:function(){return m(this.type,this.permissions)},set:function(t){this.permissions=t}}]),t}();e.exports.create=function(t,e){g(t,"id",function(n){if(n)return e(n);g(t,"data",function(n){if(n)return e(n);e(null,new y(t))})})}},{"./constants":"gCho"}],"E+68":[function(t,e,n){var r=t("./errors.js"),i=t("./node");function o(t,e,n,r){this.path=t,this.id=e,this.flags=n,this.position=r}o.prototype.getNode=function(t,e){var n=this.id,o=this.path;t.getObject(n,function(t,n){return t?e(t):n?void i.create(n,e):e(new r.EBADF("file descriptor refers to unknown node",o))})},e.exports=o},{"./errors.js":"Hmaa","./node":"epsH"}],"3YM/":[function(t,e,n){var r=t("./constants.js");function i(t){var e=Date.now();this.id=r.SUPER_NODE_ID,this.type=r.NODE_TYPE_META,this.atime=t.atime||e,this.ctime=t.ctime||e,this.mtime=t.mtime||e,this.rnode=t.rnode}i.create=function(t,e){t.guid(function(n,r){n?e(n):(t.rnode=t.rnode||r,e(null,new i(t)))})},e.exports=i},{"./constants.js":"gCho"}],OfGU:[function(t,e,n){"use strict";var r=t("./constants.js"),i=t("./path.js");function o(t){return new Date(Number(t))}function s(t,e,n){this.dev=n,this.node=e.id,this.type=e.type,this.size=e.size,this.nlinks=e.nlinks,this.atime=o(e.atime),this.mtime=o(e.mtime),this.ctime=o(e.ctime),this.atimeMs=e.atime,this.mtimeMs=e.mtime,this.ctimeMs=e.ctime,this.version=e.version,this.mode=e.mode,this.uid=e.uid,this.gid=e.gid,this.name=i.basename(t)}s.prototype.isFile=function(){return this.type===r.NODE_TYPE_FILE},s.prototype.isDirectory=function(){return this.type===r.NODE_TYPE_DIRECTORY},s.prototype.isSymbolicLink=function(){return this.type===r.NODE_TYPE_SYMBOLIC_LINK},s.prototype.isSocket=s.prototype.isFIFO=s.prototype.isCharacterDevice=s.prototype.isBlockDevice=function(){return!1},e.exports=s},{"./constants.js":"gCho","./path.js":"8thZ"}],HvxC:[function(t,e,n){t("buffer").Buffer;var r=t("buffer").Buffer;function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=t("../path.js"),s=o.normalize,a=o.dirname,u=o.basename,f=o.isAbsolute,c=t("../shared.js"),p=t("../constants.js"),h=p.NODE_TYPE_FILE,l=p.NODE_TYPE_DIRECTORY,d=p.NODE_TYPE_SYMBOLIC_LINK,g=p.NODE_TYPE_META,m=p.FULL_READ_WRITE_EXEC_PERMISSIONS,y=p.ROOT_DIRECTORY_NAME,E=p.SUPER_NODE_ID,v=p.SYMLOOP_MAX,w=p.O_READ,b=p.O_WRITE,O=p.O_CREATE,_=p.O_EXCLUSIVE,A=p.O_APPEND,I=p.O_FLAGS,R=p.XATTR_CREATE,T=p.XATTR_REPLACE,S=p.FS_NOMTIME,D=p.FS_NOCTIME,N=t("../errors.js"),j=t("../directory-entry.js"),P=t("../open-files.js"),x=t("../open-file-description.js"),L=t("../super-node.js"),C=t("../node.js"),B=t("../stats.js");function M(t,e,n,r,i){var o=t.flags;o.includes(D)&&delete r.ctime,o.includes(S)&&delete r.mtime;var s=!1;function a(n){t.changes.push({event:"change",path:e}),i(n)}r.ctime&&(n.ctime=r.ctime,n.atime=r.ctime,s=!0),r.atime&&(n.atime=r.atime,s=!0),r.mtime&&(n.mtime=r.mtime,s=!0),s?t.putObject(n.id,n,a):a()}function F(t,e,n,r){if(n!==l&&n!==h)return r(new N.EINVAL("type must be a directory or file",e));e=s(e);var i,o,f,c=u(e),p=a(e);function d(n,o){!n&&o?r(new N.EEXIST("path name already exists",e)):!n||n instanceof N.ENOENT?t.getObject(i.data,g):r(n)}function g(e,i){e?r(e):(o=i,C.create({guid:t.guid,type:n},function(e,n){e?r(e):((f=n).nlinks+=1,t.putObject(f.id,f,y))}))}function m(e){if(e)r(e);else{var n=Date.now();M(t,p,f,{mtime:n,ctime:n},r)}}function y(e){e?r(e):(o[c]=new j(f.id,n),t.putObject(i.data,o,m))}Y(t,p,function(n,o){n?r(n):o.type!==l?r(new N.ENOTDIR("a component of the path prefix is not a directory",e)):(i=o,Y(t,e,d))})}function Y(t,e,n){if(!(e=s(e)))return n(new N.ENOENT("path is an empty string"));var r=u(e),i=a(e),o=0;function f(e,r){if(e)return n(e);var i=new L(r);i&&i.type===g&&i.rnode?t.getObject(i.rnode,c):n(new N.EFILESYSTEMERROR)}function c(t,e){t?n(t):e?C.create(e,n):n(new N.ENOENT)}function p(r,i){r?n(r):i.type===l&&i.data?t.getObject(i.data,h):n(new N.ENOTDIR("a component of the path prefix is not a directory",e))}function h(i,o){if(i)n(i);else if(o.hasOwnProperty(r)){var s=o[r].id;t.getObject(s,m)}else n(new N.ENOENT(null,e))}function m(t,e){if(t)return n(t);C.create(e,w)}function w(c,h){var l;c?n(c):h.type===d?++o>v?n(new N.ELOOP(null,e)):(l=h.data,l=s(l),i=a(l),r=u(l),y===r?t.getObject(E,f):Y(t,i,p)):n(null,h)}y===r?t.getObject(E,f):Y(t,i,p)}function U(t,e,n,r,i,o,s){var a=n.xattrs;o===R&&a.hasOwnProperty(r)?s(new N.EEXIST("attribute already exists",e)):o!==T||a.hasOwnProperty(r)?(a[r]=i,t.putObject(n.id,n,function(r){r?s(r):M(t,e,n,{ctime:Date.now()},s)})):s(new N.ENOATTR(null,e))}function k(t,e,n){e=s(e);var r,i,o,f,c=u(e),p=a(e);function h(e,r){e?n(e):(o=r,t.getObject(o.data,d))}function d(e,i){e?n(e):(f=i,C.create({guid:t.guid,type:l},function(e,i){e?n(e):((r=i).nlinks+=1,t.putObject(r.id,r,g))}))}function g(e){e?n(e):(i={},t.putObject(r.data,i,y))}function m(e){if(e)n(e);else{var r=Date.now();M(t,p,o,{mtime:r,ctime:r},n)}}function y(e){e?n(e):(f[c]=new j(r.id,l),t.putObject(o.data,f,m))}Y(t,e,function(r,i){!r&&i?n(new N.EEXIST(null,e)):!r||r instanceof N.ENOENT?Y(t,p,h):n(r)})}function V(t,e,n,r){var i=p.fsConstants,o=i.F_OK,a=i.R_OK,u=i.W_OK,f=i.X_OK,c=i.S_IXUSR,h=i.S_IXGRP,l=i.S_IXOTH;Y(t,e=s(e),function(t,i){if(t)return r(t);if(n===o)return r(null);var s=ct(i.mode,r);return s?n&(a|u)?r(null):n&f&&s&(c|h|l)?r(null):void r(new N.EACCES("permission denied",e)):void 0})}function X(t,e,n){e=s(e);var r,i,o,f,c=u(e),p=a(e);function h(i,o){i?n(i):y===c?n(new N.EBUSY(null,e)):o.hasOwnProperty(c)?(r=(f=o)[c].id,t.getObject(r,d)):n(new N.ENOENT(null,e))}function d(i,o){i?n(i):o.type!==l?n(new N.ENOTDIR(null,e)):(r=o,t.getObject(r.data,g))}function g(r,s){r?n(r):(i=s,Object.keys(i).length>0?n(new N.ENOTEMPTY(null,e)):(delete f[c],t.putObject(o.data,f,m)))}function m(e){if(e)n(e);else{var r=Date.now();M(t,p,o,{mtime:r,ctime:r},E)}}function E(e){e?n(e):t.delete(r.id,v)}function v(e){e?n(e):t.delete(r.data,n)}Y(t,p,function(e,r){e?n(e):(o=r,t.getObject(o.data,h))})}function z(t,e,n,i,o){"function"==typeof i&&(o=i,i=null),e=s(e);var f,c,p,g,m,E=u(e),w=a(e),A=0;function I(n,r){n?o(n):r.type!==l?o(new N.ENOENT(null,e)):(f=r,t.getObject(f.data,R))}function R(r,s){r?o(r):(c=s).hasOwnProperty(E)?n.includes(_)?o(new N.ENOENT("O_CREATE and O_EXCLUSIVE are set, and the named file exists",e)):(p=c[E]).type===l&&n.includes(b)?o(new N.EISDIR("the named file is a directory and O_WRITE is set",e)):t.getObject(p.id,T):n.includes(O)?C.create({guid:t.guid,type:h},function(e,n){e?o(e):((g=n).nlinks+=1,i&&(g.mode=i),t.putObject(g.id,g,D))}):o(new N.ENOENT("O_CREATE is not set and the named file does not exist",e))}function T(r,i){if(r)o(r);else{var f=i;f.type===d?++A>v?o(new N.ELOOP(null,e)):function(r){r=s(r),w=a(r),E=u(r),y===E&&(n.includes(b)?o(new N.EISDIR("the named file is a directory and O_WRITE is set",e)):Y(t,e,S)),Y(t,w,I)}(f.data):S(void 0,f)}}function S(t,e){t?o(t):o(null,g=e)}function D(e){e?o(e):(m=r.alloc(0),t.putBuffer(g.data,m,x))}function P(e){if(e)o(e);else{var n=Date.now();M(t,w,f,{mtime:n,ctime:n},L)}}function x(e){e?o(e):(c[E]=new j(g.id,h),t.putObject(f.data,c,P))}function L(t){t?o(t):o(null,g)}y===E?n.includes(b)?o(new N.EISDIR("the named file is a directory and O_WRITE is set",e)):Y(t,e,S):Y(t,w,I)}function K(t,e,n,i,o,s){var a;function u(t){t?s(t):s(null,o)}function f(n){if(n)s(n);else{var r=Date.now();M(t,e.path,a,{mtime:r,ctime:r},u)}}function c(e){e?s(e):t.putObject(a.id,a,f)}t.getObject(e.id,function(u,f){if(u)s(u);else{a=f;var p=r.alloc(o);n.copy(p,0,i,i+o),e.position=o,a.size=o,a.version+=1,t.putBuffer(a.data,p,c)}})}function W(t,e,n,i,o,s,a){var u,f;function c(t){t?a(t):a(null,o)}function p(n){if(n)a(n);else{var r=Date.now();M(t,e.path,u,{mtime:r,ctime:r},c)}}function h(e){e?a(e):t.putObject(u.id,u,p)}function l(c,p){if(c)a(c);else{if(!(f=p))return a(new N.EIO("Expected Buffer"));var l=null!=s?s:e.position,d=Math.max(f.length,l+o),g=r.alloc(d);f&&f.copy(g),n.copy(g,l,i,i+o),void 0===s&&(e.position+=o),u.size=d,u.version+=1,t.putBuffer(u.data,g,h)}}t.getObject(e.id,function(e,n){e?a(e):(u=n,t.getBuffer(u.data,l))})}function G(t,e,n,r,i,o,s){var a,u;function f(t,a){if(t)s(t);else{if(!(u=a))return s(new N.EIO("Expected Buffer"));var f=null!=o?o:e.position;i=f+i>n.length?i-f:i,u.copy(n,r,f,f+i),void 0===o&&(e.position+=i),s(null,i)}}t.getObject(e.id,function(n,r){n?s(n):r.type===l?s(new N.EISDIR("the named file is a directory",e.path)):(a=r,t.getBuffer(a.data,f))})}function H(t,e,n){e.getNode(t,n)}function J(t,e,n,r){e=s(e);var i=u(e),o=a(e);n=s(n);var f,c,p,h,d,g,m=u(n),y=a(n),E=Date.now();function v(e){e?r(e):M(t,n,g,{ctime:E},r)}function w(e,n){e?r(e):((g=n).nlinks+=1,t.putObject(g.id,g,v))}function b(e){e?r(e):t.getObject(d,w)}function O(e,n){e?r(e):(h=n).hasOwnProperty(m)?r(new N.EEXIST("newpath resolves to an existing file",m)):(h[m]=c[i],d=h[m].id,t.putObject(p.data,h,b))}function _(e,n){e?r(e):(p=n,t.getObject(p.data,O))}function A(e,n){e?r(e):(c=n).hasOwnProperty(i)?c[i].type===l?r(new N.EPERM("oldpath refers to a directory")):Y(t,y,_):r(new N.ENOENT("a component of either path prefix does not exist",i))}Y(t,o,function(e,n){e?r(e):(f=n,t.getObject(f.data,A))})}function $(t,e,n){e=s(e);var r,i,o,f=u(e),c=a(e);function p(e){e?n(e):(delete i[f],t.putObject(r.data,i,function(e){if(e)n(e);else{var i=Date.now();M(t,c,r,{mtime:i,ctime:i},n)}}))}function h(e){e?n(e):t.delete(o.data,p)}function d(r,i){r?n(r):i.type===l?n(new N.EPERM("unlink not permitted on directories",f)):function(r,i){(o=i).nlinks-=1,o.nlinks<1?t.delete(o.id,h):t.putObject(o.id,o,function(r){r?n(r):M(t,e,o,{ctime:Date.now()},p)})}(0,i)}function g(e,r){e?n(e):(i=r).hasOwnProperty(f)?t.getObject(i[f].id,d):n(new N.ENOENT("a component of the path does not name an existing file",f))}Y(t,c,function(e,i){e?n(e):(r=i,t.getObject(r.data,g))})}function q(t,e,n,r){n=s(n);var i,c,p,h=u(n),l=a(n);function g(n,i){n?r(n):(c=i).hasOwnProperty(h)?r(new N.EEXIST(null,h)):C.create({guid:t.guid,type:d},function(n,i){n?r(n):((p=i).nlinks+=1,f(e)||(p.symlink_relpath=e,e=o.resolve(l,e)),p.size=e.length,p.data=e,t.putObject(p.id,p,E))})}function m(e){if(e)r(e);else{var n=Date.now();M(t,l,i,{mtime:n,ctime:n},r)}}function E(e){e?r(e):(c[h]=new j(p.id,d),t.putObject(i.data,c,m))}y===h?r(new N.EEXIST(null,h)):Y(t,l,function(e,n){e?r(e):(i=n,t.getObject(i.data,g))})}function Z(t,e,n,i){var o;function a(e,s){if(e)i(e);else{if(!s)return i(new N.EIO("Expected Buffer"));var a=r.alloc(n);s&&s.copy(a),t.putBuffer(o.data,a,f)}}function u(n){if(n)i(n);else{var r=Date.now();M(t,e,o,{mtime:r,ctime:r},i)}}function f(e){e?i(e):(o.size=n,o.version+=1,t.putObject(o.id,o,u))}e=s(e),n<0?i(new N.EINVAL("length cannot be negative")):Y(t,e,function(n,r){n?i(n):r.type===l?i(new N.EISDIR(null,e)):(o=r,t.getBuffer(o.data,a))})}function Q(t,e,n,i){var o;function s(e,s){if(e)i(e);else{var a;if(!s)return i(new N.EIO("Expected Buffer"));a=s?s.slice(0,n):r.alloc(n),t.putBuffer(o.data,a,u)}}function a(n){if(n)i(n);else{var r=Date.now();M(t,e.path,o,{mtime:r,ctime:r},i)}}function u(e){e?i(e):(o.size=n,o.version+=1,t.putObject(o.id,o,a))}n<0?i(new N.EINVAL("length cannot be negative")):e.getNode(t,function(e,n){e?i(e):n.type===l?i(new N.EISDIR):(o=n,t.getBuffer(o.data,s))})}function tt(t,e,n,r,i){e=s(e),"number"!=typeof n||"number"!=typeof r?i(new N.EINVAL("atime and mtime must be number",e)):n<0||r<0?i(new N.EINVAL("atime and mtime must be positive integers",e)):Y(t,e,function(o,s){o?i(o):M(t,e,s,{atime:n,ctime:r,mtime:r},i)})}function et(t,e,n,r,i,o){e=s(e),"string"!=typeof n?o(new N.EINVAL("attribute name must be a string",e)):n?null!==i&&i!==R&&i!==T?o(new N.EINVAL("invalid flag, must be null, XATTR_CREATE or XATTR_REPLACE",e)):Y(t,e,function(s,a){if(s)return o(s);U(t,e,a,n,r,i,o)}):o(new N.EINVAL("attribute name cannot be an empty string",e))}function nt(t,e,n,r){e=s(e),"string"!=typeof n?r(new N.EINVAL("attribute name must be a string",e)):n?Y(t,e,function(t,i){if(t)return r(t);var o=i.xattrs;o.hasOwnProperty(n)?r(null,o[n]):r(new N.ENOATTR(null,e))}):r(new N.EINVAL("attribute name cannot be an empty string",e))}function rt(t,e,n,r){e=s(e),"string"!=typeof n?r(new N.EINVAL("attribute name must be a string",e)):n?Y(t,e,function(i,o){if(i)return r(i);var s=o.xattrs;s.hasOwnProperty(n)?(delete s[n],t.putObject(o.id,o,function(n){n?r(n):M(t,e,o,{ctime:Date.now()},r)})):r(new N.ENOATTR(null,e))}):r(new N.EINVAL("attribute name cannot be an empty string",e))}function it(t){return I.hasOwnProperty(t)?I[t]:null}function ot(t,e,n){return t?"function"==typeof t?t={encoding:e,flag:n}:"string"==typeof t&&(t={encoding:t,flag:n}):t={encoding:e,flag:n},t}function st(t,e,n){!function(t,e,n){Y(t,e=s(e),n)}(t,e,function(r,i){if(r)n(r);else{var o=new B(e,i,t.name);n(null,o)}})}function at(t,e){if("number"==typeof t)return t;e(new N.EINVAL("Expected integer",t))}var ut=/^[0-7]+$/;function ft(t){return t===t>>>0}function ct(t,e,n){return"function"==typeof e&&(n=e,e=void 0),ft(t)?t&m:"number"==typeof t?(Number.isInteger(t),n(new N.EINVAL("mode not a valid an integer value",t)),!1):"string"==typeof t?ut.test(t)?parseInt(t,8)&m:(n(new N.EINVAL("mode not a valid octal string",t)),!1):void 0!==e?e:(n(new N.EINVAL("mode not valid",t)),!1)}function pt(t,e,n,r){e=s(e),"number"!=typeof n?r(new N.EINVAL("mode must be number",e)):Y(t,e,function(i,o){i?r(i):(o.mode=n,M(t,e,o,{mtime:Date.now()},r))})}function ht(t,e,n,r,i){e=s(e),Y(t,e,function(o,s){o?i(o):(s.uid=n,s.gid=r,M(t,e,s,{mtime:Date.now()},i))})}function lt(t){return"number"==typeof t?t:"object"===i(t)&&"function"==typeof t.getTime?t.getTime():void 0}e.exports={appendFile:function(t,e,n,i,o){o=arguments[arguments.length-1];var s=it((i=ot(i,"utf8","a")).flag||"a");if(!s)return o(new N.EINVAL("flags is not valid",e));"number"==typeof(n=n||"")&&(n=""+n),"string"==typeof n&&"utf8"===i.encoding&&(n=r.from(n)),z(t,e,s,function(r,i){if(r)return o(r);var a=new x(e,i.id,s,i.size),u=P.allocDescriptor(a);W(t,a,n,0,n.length,a.position,function(t){if(P.releaseDescriptor(u),t)return o(t);o(null)})})},access:function(t,e,n,r){"function"==typeof n&&(r=n,n=p.fsConstants.F_OK),V(t,e,n|=p.fsConstants.F_OK,r)},chown:function(t,e,n,r,i){return ft(n)?ft(r)?void ht(t,e,n,r,i):i(new N.EINVAL("gid must be a valid integer",r)):i(new N.EINVAL("uid must be a valid integer",n))},chmod:function(t,e,n,r){(n=ct(n,r))&&pt(t,e,n,r)},close:function(t,e,n){P.getOpenFileDescription(e)?(P.releaseDescriptor(e),n(null)):n(new N.EBADF)},ensureRootDirectory:function(t,e){var n,r,i;function o(i){i?e(i):C.create({guid:t.guid,id:n.rnode,type:l},function(n,i){n?e(n):((r=i).nlinks+=1,t.putObject(r.id,r,s))})}function s(n){n?e(n):(i={},t.putObject(r.data,i,e))}t.getObject(E,function(r,i){!r&&i?e():!r||r instanceof N.ENOENT?L.create({guid:t.guid},function(r,i){r?e(r):(n=i,t.putObject(n.id,n,o))}):e(r)})},exists:function(t,e,n){st(t,e,function(t){n(!t)})},fchown:function(t,e,n,r,i){if(!ft(n))return i(new N.EINVAL("uid must be a valid integer",n));if(!ft(r))return i(new N.EINVAL("gid must be a valid integer",r));var o=P.getOpenFileDescription(e);o?o.flags.includes(b)?function(t,e,n,r,i){e.getNode(t,function(o,s){o?i(o):(s.uid=n,s.gid=r,M(t,e.path,s,{mtime:Date.now()},i))})}(t,o,n,r,i):i(new N.EBADF("descriptor does not permit writing")):i(new N.EBADF)},fchmod:function(t,e,n,r){if(n=ct(n,r)){var i=P.getOpenFileDescription(e);i?i.flags.includes(b)?function(t,e,n,r){"number"!=typeof n?r(new N.EINVAL("mode must be a number")):e.getNode(t,function(i,o){i?r(i):(o.mode=n,M(t,e.path,o,{mtime:Date.now()},r))})}(t,i,n,r):r(new N.EBADF("descriptor does not permit writing")):r(new N.EBADF)}},fgetxattr:function(t,e,n,r){var i=P.getOpenFileDescription(e);i?function(t,e,n,r){"string"!=typeof n?r(new N.EINVAL):n?e.getNode(t,function(t,e){if(t)return r(t);var i=e.xattrs;i.hasOwnProperty(n)?r(null,i[n]):r(new N.ENOATTR)}):r(new N.EINVAL("attribute name cannot be an empty string"))}(t,i,n,r):r(new N.EBADF)},fremovexattr:function(t,e,n,r){var i=P.getOpenFileDescription(e);i?i.flags.includes(b)?function(t,e,n,r){"string"!=typeof n?r(new N.EINVAL("attribute name must be a string")):n?e.getNode(t,function(i,o){if(i)return r(i);var s=o.xattrs;s.hasOwnProperty(n)?(delete s[n],t.putObject(o.id,o,function(n){n?r(n):M(t,e.path,o,{ctime:Date.now()},r)})):r(new N.ENOATTR)}):r(new N.EINVAL("attribute name cannot be an empty string"))}(t,i,n,r):r(new N.EBADF("descriptor does not permit writing")):r(new N.EBADF)},fsetxattr:function(t,e,n,r,i,o){"function"==typeof i&&(o=i,i=null);var s=P.getOpenFileDescription(e);s?s.flags.includes(b)?function(t,e,n,r,i,o){"string"!=typeof n?o(new N.EINVAL("attribute name must be a string")):n?null!==i&&i!==R&&i!==T?o(new N.EINVAL("invalid flag, must be null, XATTR_CREATE or XATTR_REPLACE")):e.getNode(t,function(s,a){if(s)return o(s);U(t,e.path,a,n,r,i,o)}):o(new N.EINVAL("attribute name cannot be an empty string"))}(t,s,n,r,i,o):o(new N.EBADF("descriptor does not permit writing")):o(new N.EBADF)},fstat:function(t,e,n){var r=P.getOpenFileDescription(e);r?H(t,r,function(e,i){if(e)n(e);else{var o=new B(r.path,i,t.name);n(null,o)}}):n(new N.EBADF)},fsync:function(t,e,n){at(e,n)===e&&(P.getOpenFileDescription(e)?n():n(new N.EBADF))},ftruncate:function(t,e,n,r){r=arguments[arguments.length-1],n=n||0;var i=P.getOpenFileDescription(e);if(i)if(i.flags.includes(b)){if(at(n,r)!==n)return;Q(t,i,n,r)}else r(new N.EBADF("descriptor does not permit writing"));else r(new N.EBADF)},futimes:function(t,e,n,r,i){var o=Date.now();n=lt(n||o),r=lt(r||o);var s=P.getOpenFileDescription(e);s?s.flags.includes(b)?function(t,e,n,r,i){"number"!=typeof n||"number"!=typeof r?i(new N.EINVAL("atime and mtime must be a number")):n<0||r<0?i(new N.EINVAL("atime and mtime must be positive integers")):e.getNode(t,function(o,s){o?i(o):M(t,e.path,s,{atime:n,ctime:r,mtime:r},i)})}(t,s,n,r,i):i(new N.EBADF("descriptor does not permit writing")):i(new N.EBADF)},getxattr:function(t,e,n,r){nt(t,e,n,r)},link:function(t,e,n,r){J(t,e,n,r)},lseek:function(t,e,n,r,i){var o=P.getOpenFileDescription(e);o||i(new N.EBADF),"SET"===r?n<0?i(new N.EINVAL("resulting file offset would be negative")):(o.position=n,i(null,o.position)):"CUR"===r?o.position+n<0?i(new N.EINVAL("resulting file offset would be negative")):(o.position+=n,i(null,o.position)):"END"===r?H(t,o,function(t,e){t?i(t):e.size+n<0?i(new N.EINVAL("resulting file offset would be negative")):(o.position=e.size+n,i(null,o.position))}):i(new N.EINVAL("whence argument is not a proper value"))},lstat:function(t,e,n){!function(t,e,n){e=s(e);var r,i,o=u(e),f=a(e);function c(t,e){if(t)return n(t);C.create(e,n)}function p(r,s){r?n(r):(i=s).hasOwnProperty(o)?t.getObject(i[o].id,c):n(new N.ENOENT("a component of the path does not name an existing file",e))}y===o?Y(t,e,n):Y(t,f,function(e,i){e?n(e):(r=i,t.getObject(r.data,p))})}(t,e,function(r,i){if(r)n(r);else{var o=new B(e,i,t.name);n(null,o)}})},mkdir:function(t,e,n,r){if(arguments.length<4)r=n,n=m;else if(!(n=ct(n,m,r)))return;k(t,e,r)},mkdtemp:function(t,e,n,r){if(r=arguments[arguments.length-1],!e)return r(new Error("filename prefix is required"));var i=e+"-"+c.randomChars(6);k(t,i,function(t){r(t,i)})},mknod:function(t,e,n,r){F(t,e,n,r)},open:function(t,e,n,r,i){if(arguments.length<5?(i=arguments[arguments.length-1],r=420):r=ct(r,m,i),!(n=it(n)))return i(new N.EINVAL("flags is not valid"),e);z(t,e,n,r,function(t,r){if(t)i(t);else{var o;o=n.includes(A)?r.size:0;var s=new x(e,r.id,n,o),a=P.allocDescriptor(s);i(null,a)}})},readdir:function(t,e,n){!function(t,e,n){var r,i;function o(t,e){if(t)n(t);else{i=e;var r=Object.keys(i);n(null,r)}}e=s(e),Y(t,e,function(i,s){i?n(i):s.type!==l?n(new N.ENOTDIR(null,e)):(r=s,t.getObject(r.data,o))})}(t,e,n)},read:function(t,e,n,r,i,o,s){r=void 0===r?0:r,i=void 0===i?n.length-r:i,s=arguments[arguments.length-1];var a=P.getOpenFileDescription(e);a?a.flags.includes(w)?G(t,a,n,r,i,o,function(t,e){s(t,e||0,n)}):s(new N.EBADF("descriptor does not permit reading")):s(new N.EBADF)},readFile:function(t,e,n,i){i=arguments[arguments.length-1];var o=it((n=ot(n,null,"r")).flag||"r");if(!o)return i(new N.EINVAL("flags is not valid",e));z(t,e,o,function(s,a){if(s)return i(s);var u=new x(e,a.id,o,0),f=P.allocDescriptor(u);function c(){P.releaseDescriptor(f)}H(t,u,function(o,s){if(o)return c(),i(o);var a=new B(u.path,s,t.name);if(a.isDirectory())return c(),i(new N.EISDIR("illegal operation on directory",e));var f=a.size,p=r.alloc(f);G(t,u,p,0,f,0,function(t){if(c(),t)return i(t);var e;e="utf8"===n.encoding?p.toString("utf8"):p,i(null,e)})})})},readlink:function(t,e,n){!function(t,e,n){e=s(e);var r,i,o=u(e),f=a(e);function c(e,r){e?n(e):(i=r).hasOwnProperty(o)?t.getObject(i[o].id,p):n(new N.ENOENT("a component of the path does not name an existing file",o))}function p(t,r){if(t)n(t);else if(r.type!==d)n(new N.EINVAL("path not a symbolic link",e));else{var i=r.symlink_relpath?r.symlink_relpath:r.data;n(null,i)}}Y(t,f,function(e,i){e?n(e):(r=i,t.getObject(r.data,c))})}(t,e,n)},removexattr:function(t,e,n,r){rt(t,e,n,r)},rename:function(t,e,n,r){e=s(e),n=s(n);var i,a,u,f,c=o.dirname(e),p=o.dirname(e),h=o.basename(e),d=o.basename(n),g=Date.now();function m(e,i){e?r(e):M(t,n,i,{ctime:g},r)}function y(e){e?r(e):t.getObject(f[d].id,m)}function E(e){e?r(e):(i.id===u.id&&(a=f),delete a[h],t.putObject(i.data,a,y))}function v(e){e?r(e):(f[d]=a[h],t.putObject(u.data,f,E))}function w(e,i){e?r(e):(f=i).hasOwnProperty(d)?X(t,n,v):v()}function b(e,n){e?r(e):(u=n,t.getObject(u.data,w))}function O(e,n){e?r(e):(a=n,Y(t,p,b))}function _(e,n){e?r(e):(i=n,t.getObject(n.data,O))}function A(n){n?r(n):$(t,e,r)}Y(t,e,function(i,o){i?r(i):o.type===l?Y(t,c,_):J(t,e,n,A)})},rmdir:function(t,e,n){X(t,e,n)},setxattr:function(t,e,n,r,i,o){"function"==typeof i&&(o=i,i=null),et(t,e,n,r,i,o)},stat:st,symlink:function(t,e,n,r,i){q(t,e,n,i=arguments[arguments.length-1])},truncate:function(t,e,n,r){at(n=n||0,r=arguments[arguments.length-1])===n&&Z(t,e,n,r)},unlink:function(t,e,n){$(t,e,n)},utimes:function(t,e,n,r,i){var o=Date.now();tt(t,e,n=lt(n||o),r=lt(r||o),i)},writeFile:function(t,e,n,i,o){o=arguments[arguments.length-1];var s=it((i=ot(i,"utf8","w")).flag||"w");if(!s)return o(new N.EINVAL("flags is not valid",e));"number"==typeof(n=n||"")&&(n=""+n),"string"==typeof n&&"utf8"===i.encoding&&(n=r.from(n)),z(t,e,s,function(r,i){if(r)return o(r);var a=new x(e,i.id,s,0),u=P.allocDescriptor(a);K(t,a,n,0,n.length,function(t){if(P.releaseDescriptor(u),t)return o(t);o(null)})})},write:function(t,e,n,r,i,o,s){s=arguments[arguments.length-1],r=void 0===r?0:r,i=void 0===i?n.length-r:i;var a=P.getOpenFileDescription(e);a?a.flags.includes(b)?n.length-r<i?s(new N.EIO("input buffer is too small")):W(t,a,n,r,i,o,s):s(new N.EBADF("descriptor does not permit writing")):s(new N.EBADF)}}},{"../path.js":"8thZ","../shared.js":"zFPO","../constants.js":"gCho","../errors.js":"Hmaa","../directory-entry.js":"RlAD","../open-files.js":"U1jA","../open-file-description.js":"E+68","../super-node.js":"3YM/","../node.js":"epsH","../stats.js":"OfGU",buffer:"dskh"}],"Q4+W":[function(t,e,n){t("buffer").Buffer;var r=t("buffer").Buffer,i=t("es6-promisify").promisify,o=t("../path.js"),s=t("../providers/index.js"),a=t("../shell/shell.js"),u=t("../../lib/intercom.js"),f=t("../fs-watcher.js"),c=t("../errors.js"),p=t("../shared.js"),h=p.nop,l=p.guid,d=t("../constants.js"),g=d.fsConstants,m=d.FILE_SYSTEM_NAME,y=d.FS_FORMAT,E=d.FS_READY,v=d.FS_PENDING,w=d.FS_ERROR,b=d.FS_NODUPEIDCHECK,O=d.STDIN,_=d.STDOUT,A=d.STDERR,I=t("./implementation.js");function R(t){t&&console.error("Filer error: ",t)}function T(t){return r.isBuffer(t)?t.toString():t}function S(t,e){return t?o.isNull(t)?new c.EINVAL("Path must be a string without null bytes.",t):e||o.isAbsolute(t)?void 0:new c.EINVAL("Path must be absolute.",t):new c.EINVAL("Path must be a string",t)}function D(t,e,n){var r=t[e],i=S(r=T(r=function(t){if(!(t&&t.protocol&&t.pathname))return t;if("file:"!==t.protocol)throw new c.EINVAL("only file: URLs are supported for paths",t);for(var e=t.pathname,n=0;n<e.length;n++)if("%"===e[n]){var r=32|e.codePointAt(n+2);if("2"===e[n+1]&&102===r)throw new c.EINVAL("file: URLs must not include encoded / characters",t)}return decodeURIComponent(e)}(r)),n);if(i)throw i;t[e]=r}function N(t,e){e=e||R;var n=(t=t||{}).flags||[],r=t.guid?t.guid:l,p=t.provider||new s.Default(t.name||m),d=t.name||p.name,T=n.includes(y),S=this;S.readyState=v,S.name=d,S.error=null,S.stdin=O,S.stdout=_,S.stderr=A,S.constants=g,S.F_OK=g.F_OK,S.R_OK=g.R_OK,S.W_OK=g.W_OK,S.X_OK=g.X_OK,this.Shell=a.bind(void 0,this);var j=[];function P(t){return function(e){n.includes(b)?e(null,r()):function e(n){var i=r();t.getObject(i,function(t,r){t?n(t):r?e(n):n(null,i)})}(e)}}this.queueOrRun=function(t){var e;return E===S.readyState?t.call(S):w===S.readyState?e=new c.EFILESYSTEMERROR("unknown error"):j.push(t),e},this.watch=function(t,e,n){if(o.isNull(t))throw new Error("Path must be a string without null bytes.");"function"==typeof e&&(n=e,e={}),e=e||{},n=n||h;var r=new f;return r.start(t,!1,e.recursive),r.on("change",n),r},p.open(function(t){function r(t){function r(t){var e=p[t]();return e.name=d,e.flags=n,e.changes=[],e.guid=P(e),e.close=function(){var t=e.changes;!function(t){if(t.length){var e=u.getInstance();t.forEach(function(t){e.emit(t.event,t.path)})}}(t),t.length=0},e}S.provider={openReadWriteContext:function(){return r("getReadWriteContext")},openReadOnlyContext:function(){return r("getReadOnlyContext")}},S.readyState=t?w:E,j.forEach(function(t){t.call(this)}.bind(S)),j=null,e(t,S)}if(t)return r(t);var i=p.getReadWriteContext();i.guid=P(i),T?i.clear(function(t){if(t)return r(t);I.ensureRootDirectory(i,r)}):I.ensureRootDirectory(i,r)}),N.prototype.promises={},[{name:"appendFile",promises:!0,absPathArgs:[0]},{name:"access",promises:!0,absPathArgs:[0]},{name:"chown",promises:!0,absPathArgs:[0]},{name:"chmod",promises:!0,absPathArgs:[0]},{name:"close"},{name:"exists",absPathArgs:[0]},{name:"fchown"},{name:"fchmod"},{name:"fgetxattr"},{name:"fremovexattr"},{name:"fsetxattr"},{name:"fstat"},{name:"fsync"},{name:"ftruncate"},{name:"futimes"},{name:"getxattr",promises:!0,absPathArgs:[0]},{name:"link",promises:!0,absPathArgs:[0,1]},{name:"lseek"},{name:"lstat",promises:!0},{name:"mkdir",promises:!0,absPathArgs:[0]},{name:"mkdtemp",promises:!0},{name:"mknod",promises:!0,absPathArgs:[0]},{name:"open",promises:!0,absPathArgs:[0]},{name:"readdir",promises:!0,absPathArgs:[0]},{name:"read"},{name:"readFile",promises:!0,absPathArgs:[0]},{name:"readlink",promises:!0,absPathArgs:[0]},{name:"removexattr",promises:!0,absPathArgs:[0]},{name:"rename",promises:!0,absPathArgs:[0,1]},{name:"rmdir",promises:!0,absPathArgs:[0]},{name:"setxattr",promises:!0,absPathArgs:[0]},{name:"stat",promises:!0,absPathArgs:[0]},{name:"symlink",promises:!0,relPathArgs:[0],absPathArgs:[1]},{name:"truncate",promises:!0,absPathArgs:[0]},{name:"unlink",promises:!0,absPathArgs:[0]},{name:"utimes",promises:!0,absPathArgs:[0]},{name:"writeFile",promises:!0,absPathArgs:[0]},{name:"write"}].forEach(function(t){var e=t.name,n=!0===t.promises;N.prototype[e]=function(){var n=this,r=Array.prototype.slice.call(arguments,0),i=r.length-1,o="function"!=typeof r[i],s=function(t){return"function"==typeof t?t:function(t){if(t)throw t}}(r[i]);t.absPathArgs&&t.absPathArgs.forEach(function(t){return D(r,t,!1)}),t.relPathArgs&&t.relPathArgs.forEach(function(t){return D(r,t,!0)});var a=n.queueOrRun(function(){var t=n.provider.openReadWriteContext();if(w===n.readyState){var a=new c.EFILESYSTEMERROR("filesystem unavailable, operation canceled");return s.call(n,a)}function u(){t.close(),s.apply(n,arguments)}o?r.push(u):r[i]=u;var f=[t].concat(r);I[e].apply(null,f)});a&&s(a)},n&&(N.prototype.promises[e]=i(N.prototype[e].bind(S)))})}N.providers=s,e.exports=N},{"es6-promisify":"0c0E","../path.js":"8thZ","../providers/index.js":"UCG6","../shell/shell.js":"Kf0M","../../lib/intercom.js":"u7Jv","../fs-watcher.js":"p3D+","../errors.js":"Hmaa","../shared.js":"zFPO","../constants.js":"gCho","./implementation.js":"HvxC",buffer:"dskh"}],"2u/B":[function(t,e,n){t("buffer").Buffer;var r=t("buffer").Buffer,i=null,o=null;e.exports=o={FileSystem:t("./filesystem/interface.js"),Buffer:r,Path:t("./path.js"),path:t("./path.js"),Errors:t("./errors.js"),Shell:t("./shell/shell.js")},Object.defineProperty(o,"fs",{enumerable:!0,get:function(){return i||(i=new o.FileSystem),i}})},{"./filesystem/interface.js":"Q4+W","./path.js":"8thZ","./errors.js":"Hmaa","./shell/shell.js":"Kf0M",buffer:"dskh"}]},{},["2u/B"],"Filer");
},{}],"xVBo":[function(require,module,exports) {
module.exports.back="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAWBAMAAAAyb6E1AAAAElBMVEX////M//+ZmZlmZmYzMzMAAACei5rnAAAAAnRSTlP/AOW3MEoAAAABYktHRACIBR1IAAAAYElEQVQIW0XP0QnAMAhFUVew4ACFLpARUl4XKHH/VdqXRPUjHC5+GNEc4dOQvICelY4KVEWviqo2qVz1Re3HQxq33UnXP02a7xENDcn4Sshb1lv37jh5pC3Me70+ZMWYD08uJsBsi+cYAAAAVnRFWHRjb21tZW50AFRoaXMgYXJ0IGlzIGluIHRoZSBwdWJsaWMgZG9tYWluLiBLZXZpbiBIdWdoZXMsIGtldmluaEBlaXQuY29tLCBTZXB0ZW1iZXIgMTk5NXb275wAAAAASUVORK5CYII=",module.exports.blank="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAWAQMAAAD6jy5FAAAABlBMVEX////M//9zUa6lAAAAAnRSTlP/AOW3MEoAAAABYktHRACIBR1IAAAAD0lEQVQIHWP8z/CRkQYYAFlpKreJcPlsAAAAVnRFWHRjb21tZW50AFRoaXMgYXJ0IGlzIGluIHRoZSBwdWJsaWMgZG9tYWluLiBLZXZpbiBIdWdoZXMsIGtldmluaEBlaXQuY29tLCBTZXB0ZW1iZXIgMTk5NXb275wAAAAASUVORK5CYII=",module.exports.folder="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAWBAMAAAAyb6E1AAAAElBMVEX/////zJnM//+ZZjMzMzMAAADCEvqoAAAAA3RSTlP//wDXyg1BAAAAAWJLR0QAiAUdSAAAAFJJREFUCFtjUIIDBsLMUCCAMFUFgSAIzAwEMUVDQ4OUGIJBTEMgDyhqDARAnnAQRAEQGLvCmcKuVBYVhgJXBlVjCDBxZVAKcYGAEAYl1VAIcAIAfgAgxXnPTZkAAABWdEVYdGNvbW1lbnQAVGhpcyBhcnQgaXMgaW4gdGhlIHB1YmxpYyBkb21haW4uIEtldmluIEh1Z2hlcywga2V2aW5oQGVpdC5jb20sIFNlcHRlbWJlciAxOTk1dvbvnAAAAABJRU5ErkJggg==",module.exports.image2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAWBAMAAAAyb6E1AAAAJFBMVEX/////MzPM///MzMyZmZlmZmZmAAAzMzMAmcwAmTMAM2YAAADMt1kEAAAAA3RSTlP//wDXyg1BAAAAAWJLR0QAiAUdSAAAAIxJREFUCFtFzjsKwkAUheEDVxjEaggIae8KtPFVp3MBrsEuxGIis4FgFRCLu4VsYTbnnUeSv/o41YFLdcyMFpoxK9GtNJHW2spA58T9zns/M4RQiE1zT6zli8KR5IDIY00iLUWenlflLRJbEXl9Eo3Ir8+ktzyGTJxdPxM0LLwspEkra0zpmpye5FDiP+BZOkuqcu7kAAAAVnRFWHRjb21tZW50AFRoaXMgYXJ0IGlzIGluIHRoZSBwdWJsaWMgZG9tYWluLiBLZXZpbiBIdWdoZXMsIGtldmluaEBlaXQuY29tLCBTZXB0ZW1iZXIgMTk5NXb275wAAAAASUVORK5CYII=",module.exports.movie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAWBAMAAAAyb6E1AAAAFVBMVEX////M///MzMyZmZlmZmYzMzMAAAC3QbbwAAAAAnRSTlP/AOW3MEoAAAABYktHRACIBR1IAAAAOUlEQVQIW2NIg4JEQYYkNTBLKRXEdAECNhAzLc3Z2NiYLQ0sCmYqoTKJUMAABFAF9LUCzhQNhQJBAGWZNOmfH9xVAAAAVnRFWHRjb21tZW50AFRoaXMgYXJ0IGlzIGluIHRoZSBwdWJsaWMgZG9tYWluLiBLZXZpbiBIdWdoZXMsIGtldmluaEBlaXQuY29tLCBTZXB0ZW1iZXIgMTk5NXb275wAAAAASUVORK5CYII=",module.exports.text="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAWBAMAAAAyb6E1AAAAD1BMVEX////M//+ZmZkzMzMAAABVsTOVAAAAAnRSTlP/AOW3MEoAAAABYktHRACIBR1IAAAAT0lEQVQIW5XIsQ3AIAwF0VNgAa+AGABkD0Dx958pRRy55qrTw93dfZsZC6C1WnZtq2Ubq0unR0Rql5TKM2YqjPmpdCjlVuFG//XxFYYpsxfEkhYAImC9XwAAAFZ0RVh0Y29tbWVudABUaGlzIGFydCBpcyBpbiB0aGUgcHVibGljIGRvbWFpbi4gS2V2aW4gSHVnaGVzLCBrZXZpbmhAZWl0LmNvbSwgU2VwdGVtYmVyIDE5OTV29u+cAAAAAElFTkSuQmCC",module.exports.unknown="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAWBAMAAAAyb6E1AAAAD1BMVEX////M//+ZmZkzMzMAAABVsTOVAAAAAnRSTlP/AOW3MEoAAAABYktHRACIBR1IAAAAYklEQVQIW23O0Q2AIBAD0AZcgA0IYQAJDGCw+8/k3SFoov16FEKKaikhBOyQeP8QxZjIE17pqJR6kK014cZuJ+MBMuXxg1vUewxmst+UMi5GLGLS8mn/+Xo7WdOIjAw60EZeVZkZLhf9K5EAAABWdEVYdGNvbW1lbnQAVGhpcyBhcnQgaXMgaW4gdGhlIHB1YmxpYyBkb21haW4uIEtldmluIEh1Z2hlcywga2V2aW5oQGVpdC5jb20sIFNlcHRlbWJlciAxOTk1dvbvnAAAAABJRU5ErkJggg==";
},{}],"0nsJ":[function(require,module,exports) {
"use strict";var t=require("./content-type"),n=t.isMedia,e=t.isImage,r=t.getMimeType,o=require("filer"),a=o.path,c=require("../icons/icons"),h=c.back,i=c.blank,d=c.folder,s=c.image2,l=c.movie,u=c.text,m=c.unknown,g=function(t){var n=t.getDate(),e=t.toLocaleString("en-us",{month:"short"}),r=t.getFullYear(),o=t.getHours(),a=t.getMinutes();return"".concat(n,"-").concat(e,"-").concat(r," ").concat(o,":").concat(a)},f=function(t){if(!t)return"-";var n=0|Math.floor(Math.log(t)/Math.log(1024));return Math.round(t/Math.pow(1024,n),2)+["","K","M"][n]},p=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"[ ]",e=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;return"<tr><td valign='top'><img src='".concat(t||m,"' alt='").concat(n,"'></td><td>\n <a href='").concat(e,"'>").concat(r,"</a></td>\n <td align='right'>").concat(g(new Date(o)),"</td>\n <td align='right'>").concat(f(a),"</td><td> </td></tr>")},b="<address>nohost (Web Browser Server)</address></body></html>";function v(t){return{body:"\n <!DOCTYPE html>\n <html><head>\n <title>404 Not Found</title>\n </head><body>\n <h1>Not Found</h1>\n <p>The requested URL ".concat(t," was not found on this server.</p>\n <hr>").concat(b),config:{status:404,statusText:"Not Found",headers:{"Content-Type":"text/html"}}}}function T(t,n){return{body:"\n <!DOCTYPE html>\n <html><head>\n <title>500 Internal Server Error</title>\n </head><body>\n <h1>Internal Server Error</h1>\n <p>The server encountered an internal error while attempting to access ".concat(t,".</p>\n <p>The error was: ").concat(n.message,".</p>\n <hr>").concat(b),config:{status:500,statusText:"Internal Error",headers:{"Content-Type":"text/html"}}}}function y(t,r,o){var c=a.dirname(r)||"/",m=encodeURI(t+c),g="\n <!DOCTYPE html>\n <html><head><title>Index of ".concat(r,"</title></head>\n <body><h1>Index of ").concat(r,"</h1>\n <table><tr><th><img src='").concat(i,"' alt='[ICO]'></th>\n <th><b>Name</b></th><th><b>Last modified</b></th>\n <th><b>Size</b></th><th><b>Description</b></th></tr>\n <tr><th colspan='5'><hr></th></tr>\n <tr><td valign='top'><img src='").concat(h,"' alt='[DIR]'></td>\n <td><a href='").concat(m,"'>Parent Directory</a></td><td> </td>\n <td align='right'> - </td><td> </td></tr>"),f="<tr><th colspan='5'><hr></th></tr></table>".concat(b);return{body:g+o.map(function(o){var c,h,i=a.extname(o.name),m=encodeURI("".concat(t).concat(a.join(r,o.name)));return"DIRECTORY"===o.type?(c=d,h="[DIR]"):e(i)?(c=s,h="[IMG]"):n(i)?(c=l,h="[MOV]"):(c=u,h="[TXT]"),p(c,h,m,o.name,o.mtime,o.size)}).join("\n")+f,config:{status:200,statusText:"OK",headers:{"Content-Type":"text/html"}}}}function I(t,n){return{body:n,config:{status:200,statusText:"OK",headers:{"Content-Type":r(t)}}}}module.exports={format404:v,format500:T,formatDir:y,formatFile:I};
},{"./content-type":"KEOA","filer":"KyOv","../icons/icons":"xVBo"}],"4itQ":[function(require,module,exports) {
"use strict";var e=new URL(location);function r(){var r=e.searchParams.get("route")||"fs";return r=(r=r.replace(/^\/*/,"/")).replace(/\/*$/,"")}module.exports={route:r(),disableIndexes:null!==e.searchParams.get("disableIndexes"),directoryIndex:e.searchParams.get("route")||"index.html",debug:null!==e.searchParams.get("debug")};
},{}],"/tkn":[function(require,module,exports) {
"use strict";var n=require("filer"),e=n.fs,t=n.Path,i=require("./config"),o=i.route,r=i.disableIndexes,c=i.directoryIndex,f=new e.Shell;function a(n,e){var i=t.basename(n),o=e.mtime.toUTCString();return'attachment; filename="'.concat(i,'"; modification-date="').concat(o,'"; size=').concat(e.size,";")}var s=function(n,i,s){return new Promise(function(u){function d(n){return new Response(n.body,n.config)}function m(n,e){if("ENOENT"===e.code)return u(d(i.format404(n)));u(d(i.format500(n,e)))}function l(n,t){e.readFile(n,function(e,o){if(e)return m(n,e);var r=i.formatFile(n,o,t);200===r.config.status&&s&&(r.config.headers["Content-Disposition"]=a(n,t)),u(new Response(r.body,r.config))})}function g(n){var a;a=t.join(n,c),e.stat(a,function(e,t){e?"ENOENT"!==e.code||r?m(n,e):f.ls(n,function(e,t){if(e)return m(n,e);var r=i.formatDir(o,n,t);u(new Response(r.body,r.config))}):l(a,t)})}e.stat(n,function(e,t){if(e)return m(n,e);t.isDirectory()?g(n):l(n,t)})})};module.exports.serve=s;
},{"filer":"KyOv","./config":"4itQ"}],"JQ+3":[function(require,module,exports) {
var e=require("./json-formatter"),r=require("./html-formatter"),o=require("./webserver"),t=o.serve,a=require("./config"),n=a.debug,s=a.route;importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.1.1/workbox-sw.js"),workbox.setConfig({debug:n});var i=new RegExp("".concat(s,"(/.*)")),c=new RegExp("".concat(s,"$"));workbox.routing.registerRoute(i,function(o){var a=o.url,n=a.pathname.match(i)[1];n=decodeURI(n);var s=null!==a.searchParams.get("json")?e:r,c=null!==a.searchParams.get("download")||null!==a.searchParams.get("dl");return t(n,s,c)},"GET"),workbox.routing.registerRoute(c,function(e){var r=e.url;return r.pathname="".concat(s,"/"),Promise.resolve(Response.redirect(r,302))},"GET"),workbox.core.skipWaiting(),workbox.core.clientsClaim();
},{"./json-formatter":"55+A","./html-formatter":"0nsJ","./webserver":"/tkn","./config":"4itQ"}]},{},["JQ+3"], null)
//# sourceMappingURL=/nohost-sw.js.map