4 lines
89 KiB
JavaScript
4 lines
89 KiB
JavaScript
/*! filer 2014-02-18 */
|
|
(function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Filer||(t.Filer=e())})(this,function(){var t,e,n;(function(r){function i(t,e){return w.call(t,e)}function o(t,e){var n,r,i,o,s,a,c,u,f,l,h=e&&e.split("/"),d=m.map,p=d&&d["*"]||{};if(t&&"."===t.charAt(0))if(e){for(h=h.slice(0,h.length-1),t=h.concat(t.split("/")),u=0;t.length>u;u+=1)if(l=t[u],"."===l)t.splice(u,1),u-=1;else if(".."===l){if(1===u&&(".."===t[2]||".."===t[0]))break;u>0&&(t.splice(u-1,2),u-=2)}t=t.join("/")}else 0===t.indexOf("./")&&(t=t.substring(2));if((h||p)&&d){for(n=t.split("/"),u=n.length;u>0;u-=1){if(r=n.slice(0,u).join("/"),h)for(f=h.length;f>0;f-=1)if(i=d[h.slice(0,f).join("/")],i&&(i=i[r])){o=i,s=u;break}if(o)break;!a&&p&&p[r]&&(a=p[r],c=u)}!o&&a&&(o=a,s=c),o&&(n.splice(0,s,o),t=n.join("/"))}return t}function s(t,e){return function(){return d.apply(r,E.call(arguments,0).concat([t,e]))}}function a(t){return function(e){return o(e,t)}}function c(t){return function(e){v[t]=e}}function u(t){if(i(y,t)){var e=y[t];delete y[t],b[t]=!0,h.apply(r,e)}if(!i(v,t)&&!i(b,t))throw Error("No "+t);return v[t]}function f(t){var e,n=t?t.indexOf("!"):-1;return n>-1&&(e=t.substring(0,n),t=t.substring(n+1,t.length)),[e,t]}function l(t){return function(){return m&&m.config&&m.config[t]||{}}}var h,d,p,g,v={},y={},m={},b={},w=Object.prototype.hasOwnProperty,E=[].slice;p=function(t,e){var n,r=f(t),i=r[0];return t=r[1],i&&(i=o(i,e),n=u(i)),i?t=n&&n.normalize?n.normalize(t,a(e)):o(t,e):(t=o(t,e),r=f(t),i=r[0],t=r[1],i&&(n=u(i))),{f:i?i+"!"+t:t,n:t,pr:i,p:n}},g={require:function(t){return s(t)},exports:function(t){var e=v[t];return e!==void 0?e:v[t]={}},module:function(t){return{id:t,uri:"",exports:v[t],config:l(t)}}},h=function(t,e,n,o){var a,f,l,h,d,m,w=[];if(o=o||t,"function"==typeof n){for(e=!e.length&&n.length?["require","exports","module"]:e,d=0;e.length>d;d+=1)if(h=p(e[d],o),f=h.f,"require"===f)w[d]=g.require(t);else if("exports"===f)w[d]=g.exports(t),m=!0;else if("module"===f)a=w[d]=g.module(t);else if(i(v,f)||i(y,f)||i(b,f))w[d]=u(f);else{if(!h.p)throw Error(t+" missing "+f);h.p.load(h.n,s(o,!0),c(f),{}),w[d]=v[f]}l=n.apply(v[t],w),t&&(a&&a.exports!==r&&a.exports!==v[t]?v[t]=a.exports:l===r&&m||(v[t]=l))}else t&&(v[t]=n)},t=e=d=function(t,e,n,i,o){return"string"==typeof t?g[t]?g[t](e):u(p(t,e).f):(t.splice||(m=t,e.splice?(t=e,e=n,n=null):t=r),e=e||function(){},"function"==typeof n&&(n=i,i=o),i?h(r,t,e,n):setTimeout(function(){h(r,t,e,n)},4),d)},d.config=function(t){return m=t,m.deps&&d(m.deps,m.callback),d},n=function(t,e,n){e.splice||(n=e,e=[]),i(v,t)||i(y,t)||(y[t]=[t,e,n])},n.amd={jQuery:!0}})(),n("build/almond",function(){}),n("nodash",["require"],function(){function t(t,e){return d.call(t,e)}function e(t){return null==t?0:t.length===+t.length?t.length:v(t).length}function n(t){return t}function r(t,e,n){var r,i;if(null!=t)if(u&&t.forEach===u)t.forEach(e,n);else if(t.length===+t.length){for(r=0,i=t.length;i>r;r++)if(e.call(n,t[r],r,t)===g)return}else{var o=o(t);for(r=0,i=o.length;i>r;r++)if(e.call(n,t[o[r]],o[r],t)===g)return}}function i(t,e,i){e||(e=n);var o=!1;return null==t?o:l&&t.some===l?t.some(e,i):(r(t,function(t,n,r){return o||(o=e.call(i,t,n,r))?g:void 0}),!!o)}function o(t,e){return null==t?!1:f&&t.indexOf===f?-1!=t.indexOf(e):i(t,function(t){return t===e})}function s(t){this.value=t}function a(t){return t&&"object"==typeof t&&!Array.isArray(t)&&d.call(t,"__wrapped__")?t:new s(t)}var c=Array.prototype,u=c.forEach,f=c.indexOf,l=c.some,h=Object.prototype,d=h.hasOwnProperty,p=Object.keys,g={},v=p||function(e){if(e!==Object(e))throw new TypeError("Invalid object");var n=[];for(var r in e)t(e,r)&&n.push(r);return n};return s.prototype.has=function(e){return t(this.value,e)},s.prototype.contains=function(t){return o(this.value,t)},s.prototype.size=function(){return e(this.value)},a}),function(t){t["encoding-indexes"]=t["encoding-indexes"]||[]}(this),n("encoding-indexes-shim",function(){}),function(t){function e(t,e,n){return t>=e&&n>=t}function n(t,e){return Math.floor(t/e)}function r(t){var e=0;this.get=function(){return e>=t.length?U:Number(t[e])},this.offset=function(n){if(e+=n,0>e)throw Error("Seeking past start of the buffer");if(e>t.length)throw Error("Seeking past EOF")},this.match=function(n){if(n.length>e+t.length)return!1;var r;for(r=0;n.length>r;r+=1)if(Number(t[e+r])!==n[r])return!1;return!0}}function i(t){var e=0;this.emit=function(){var n,r=U;for(n=0;arguments.length>n;++n)r=Number(arguments[n]),t[e++]=r;return r}}function o(t){function n(t){for(var n=[],r=0,i=t.length;t.length>r;){var o=t.charCodeAt(r);if(e(o,55296,57343))if(e(o,56320,57343))n.push(65533);else if(r===i-1)n.push(65533);else{var s=t.charCodeAt(r+1);if(e(s,56320,57343)){var a=1023&o,c=1023&s;r+=1,n.push(65536+(a<<10)+c)}else n.push(65533)}else n.push(o);r+=1}return n}var r=0,i=n(t);this.offset=function(t){if(r+=t,0>r)throw Error("Seeking past start of the buffer");if(r>i.length)throw Error("Seeking past EOF")},this.get=function(){return r>=i.length?F:i[r]}}function s(){var t="";this.string=function(){return t},this.emit=function(e){65535>=e?t+=String.fromCharCode(e):(e-=65536,t+=String.fromCharCode(55296+(1023&e>>10)),t+=String.fromCharCode(56320+(1023&e)))}}function a(t){this.name="EncodingError",this.message=t,this.code=0}function c(t,e){if(t)throw new a("Decoder error");return e||65533}function u(t){throw new a("The code point "+t+" could not be encoded.")}function f(t){return t=(t+"").trim().toLowerCase(),Object.prototype.hasOwnProperty.call(q,t)?q[t]:null}function l(t,e){return(e||[])[t]||null}function h(t,e){var n=e.indexOf(t);return-1===n?null:n}function d(e){if(!("encoding-indexes"in t))throw Error("Indexes missing. Did you forget to include encoding-indexes.js?");return t["encoding-indexes"][e]}function p(t){if(t>39419&&189e3>t||t>1237575)return null;var e,n=0,r=0,i=d("gb18030");for(e=0;i.length>e;++e){var o=i[e];if(!(t>=o[0]))break;n=o[0],r=o[1]}return r+t-n}function g(t){var e,n=0,r=0,i=d("gb18030");for(e=0;i.length>e;++e){var o=i[e];if(!(t>=o[1]))break;n=o[1],r=o[0]}return r+t-n}function v(t){var n=t.fatal,r=0,i=0,o=0,s=0;this.decode=function(t){var a=t.get();if(a===U)return 0!==i?c(n):F;if(t.offset(1),0===i){if(e(a,0,127))return a;if(e(a,194,223))i=1,s=128,r=a-192;else if(e(a,224,239))i=2,s=2048,r=a-224;else{if(!e(a,240,244))return c(n);i=3,s=65536,r=a-240}return r*=Math.pow(64,i),null}if(!e(a,128,191))return r=0,i=0,o=0,s=0,t.offset(-1),c(n);if(o+=1,r+=(a-128)*Math.pow(64,i-o),o!==i)return null;var u=r,f=s;return r=0,i=0,o=0,s=0,e(u,f,1114111)&&!e(u,55296,57343)?u:c(n)}}function y(t){t.fatal,this.encode=function(t,r){var i=r.get();if(i===F)return U;if(r.offset(1),e(i,55296,57343))return u(i);if(e(i,0,127))return t.emit(i);var o,s;e(i,128,2047)?(o=1,s=192):e(i,2048,65535)?(o=2,s=224):e(i,65536,1114111)&&(o=3,s=240);for(var a=t.emit(n(i,Math.pow(64,o))+s);o>0;){var c=n(i,Math.pow(64,o-1));a=t.emit(128+c%64),o-=1}return a}}function m(t,n){var r=n.fatal;this.decode=function(n){var i=n.get();if(i===U)return F;if(n.offset(1),e(i,0,127))return i;var o=t[i-128];return null===o?c(r):o}}function b(t,n){n.fatal,this.encode=function(n,r){var i=r.get();if(i===F)return U;if(r.offset(1),e(i,0,127))return n.emit(i);var o=h(i,t);return null===o&&u(i),n.emit(o+128)}}function w(t,n){var r=n.fatal,i=0,o=0,s=0;this.decode=function(n){var a=n.get();if(a===U&&0===i&&0===o&&0===s)return F;a!==U||0===i&&0===o&&0===s||(i=0,o=0,s=0,c(r)),n.offset(1);var u;if(0!==s)return u=null,e(a,48,57)&&(u=p(10*(126*(10*(i-129)+(o-48))+(s-129))+a-48)),i=0,o=0,s=0,null===u?(n.offset(-3),c(r)):u;if(0!==o)return e(a,129,254)?(s=a,null):(n.offset(-2),i=0,o=0,c(r));if(0!==i){if(e(a,48,57)&&t)return o=a,null;var f=i,h=null;i=0;var g=127>a?64:65;return(e(a,64,126)||e(a,128,254))&&(h=190*(f-129)+(a-g)),u=null===h?null:l(h,d("gbk")),null===h&&n.offset(-1),null===u?c(r):u}return e(a,0,127)?a:128===a?8364:e(a,129,254)?(i=a,null):c(r)}}function E(t,r){r.fatal,this.encode=function(r,i){var o=i.get();if(o===F)return U;if(i.offset(1),e(o,0,127))return r.emit(o);var s=h(o,d("gbk"));if(null!==s){var a=n(s,190)+129,c=s%190,f=63>c?64:65;return r.emit(a,c+f)}if(null===s&&!t)return u(o);s=g(o);var l=n(n(n(s,10),126),10);s-=10*126*10*l;var p=n(n(s,10),126);s-=126*10*p;var v=n(s,10),y=s-10*v;return r.emit(l+129,p+48,v+129,y+48)}}function _(t){var n=t.fatal,r=!1,i=0;this.decode=function(t){var o=t.get();if(o===U&&0===i)return F;if(o===U&&0!==i)return i=0,c(n);if(t.offset(1),126===i)return i=0,123===o?(r=!0,null):125===o?(r=!1,null):126===o?126:10===o?null:(t.offset(-1),c(n));if(0!==i){var s=i;i=0;var a=null;return e(o,33,126)&&(a=l(190*(s-1)+(o+63),d("gbk"))),10===o&&(r=!1),null===a?c(n):a}return 126===o?(i=126,null):r?e(o,32,127)?(i=o,null):(10===o&&(r=!1),c(n)):e(o,0,127)?o:c(n)}}function x(t){t.fatal;var r=!1;this.encode=function(t,i){var o=i.get();if(o===F)return U;if(i.offset(1),e(o,0,127)&&r)return i.offset(-1),r=!1,t.emit(126,125);if(126===o)return t.emit(126,126);if(e(o,0,127))return t.emit(o);if(!r)return i.offset(-1),r=!0,t.emit(126,123);var s=h(o,d("gbk"));if(null===s)return u(o);var a=n(s,190)+1,c=s%190-63;return e(a,33,126)&&e(c,33,126)?t.emit(a,c):u(o)}}function k(t){var n=t.fatal,r=0,i=null;this.decode=function(t){if(null!==i){var o=i;return i=null,o}var s=t.get();if(s===U&&0===r)return F;if(s===U&&0!==r)return r=0,c(n);if(t.offset(1),0!==r){var a=r,u=null;r=0;var f=127>s?64:98;if((e(s,64,126)||e(s,161,254))&&(u=157*(a-129)+(s-f)),1133===u)return i=772,202;if(1135===u)return i=780,202;if(1164===u)return i=772,234;if(1166===u)return i=780,234;var h=null===u?null:l(u,d("big5"));return null===u&&t.offset(-1),null===h?c(n):h}return e(s,0,127)?s:e(s,129,254)?(r=s,null):c(n)}}function A(t){t.fatal,this.encode=function(t,r){var i=r.get();if(i===F)return U;if(r.offset(1),e(i,0,127))return t.emit(i);var o=h(i,d("big5"));if(null===o)return u(i);var s=n(o,157)+129,a=o%157,c=63>a?64:98;return t.emit(s,a+c)}}function S(t){var n=t.fatal,r=0,i=0;this.decode=function(t){var o=t.get();if(o===U)return 0===r&&0===i?F:(r=0,i=0,c(n));t.offset(1);var s,a;return 0!==i?(s=i,i=0,a=null,e(s,161,254)&&e(o,161,254)&&(a=l(94*(s-161)+o-161,d("jis0212"))),e(o,161,254)||t.offset(-1),null===a?c(n):a):142===r&&e(o,161,223)?(r=0,65377+o-161):143===r&&e(o,161,254)?(r=0,i=o,null):0!==r?(s=r,r=0,a=null,e(s,161,254)&&e(o,161,254)&&(a=l(94*(s-161)+o-161,d("jis0208"))),e(o,161,254)||t.offset(-1),null===a?c(n):a):e(o,0,127)?o:142===o||143===o||e(o,161,254)?(r=o,null):c(n)}}function O(t){t.fatal,this.encode=function(t,r){var i=r.get();if(i===F)return U;if(r.offset(1),e(i,0,127))return t.emit(i);if(165===i)return t.emit(92);if(8254===i)return t.emit(126);if(e(i,65377,65439))return t.emit(142,i-65377+161);var o=h(i,d("jis0208"));if(null===o)return u(i);var s=n(o,94)+161,a=o%94+161;return t.emit(s,a)}}function R(t){var n=t.fatal,r={ASCII:0,escape_start:1,escape_middle:2,escape_final:3,lead:4,trail:5,Katakana:6},i=r.ASCII,o=!1,s=0;this.decode=function(t){var a=t.get();switch(a!==U&&t.offset(1),i){default:case r.ASCII:return 27===a?(i=r.escape_start,null):e(a,0,127)?a:a===U?F:c(n);case r.escape_start:return 36===a||40===a?(s=a,i=r.escape_middle,null):(a!==U&&t.offset(-1),i=r.ASCII,c(n));case r.escape_middle:var u=s;return s=0,36!==u||64!==a&&66!==a?36===u&&40===a?(i=r.escape_final,null):40!==u||66!==a&&74!==a?40===u&&73===a?(i=r.Katakana,null):(a===U?t.offset(-1):t.offset(-2),i=r.ASCII,c(n)):(i=r.ASCII,null):(o=!1,i=r.lead,null);case r.escape_final:return 68===a?(o=!0,i=r.lead,null):(a===U?t.offset(-2):t.offset(-3),i=r.ASCII,c(n));case r.lead:return 10===a?(i=r.ASCII,c(n,10)):27===a?(i=r.escape_start,null):a===U?F:(s=a,i=r.trail,null);case r.trail:if(i=r.lead,a===U)return c(n);var f=null,h=94*(s-33)+a-33;return e(s,33,126)&&e(a,33,126)&&(f=o===!1?l(h,d("jis0208")):l(h,d("jis0212"))),null===f?c(n):f;case r.Katakana:return 27===a?(i=r.escape_start,null):e(a,33,95)?65377+a-33:a===U?F:c(n)}}}function C(t){t.fatal;var r={ASCII:0,lead:1,Katakana:2},i=r.ASCII;this.encode=function(t,o){var s=o.get();if(s===F)return U;if(o.offset(1),(e(s,0,127)||165===s||8254===s)&&i!==r.ASCII)return o.offset(-1),i=r.ASCII,t.emit(27,40,66);if(e(s,0,127))return t.emit(s);if(165===s)return t.emit(92);if(8254===s)return t.emit(126);if(e(s,65377,65439)&&i!==r.Katakana)return o.offset(-1),i=r.Katakana,t.emit(27,40,73);if(e(s,65377,65439))return t.emit(s-65377-33);if(i!==r.lead)return o.offset(-1),i=r.lead,t.emit(27,36,66);var a=h(s,d("jis0208"));if(null===a)return u(s);var c=n(a,94)+33,f=a%94+33;return t.emit(c,f)}}function D(t){var n=t.fatal,r=0;this.decode=function(t){var i=t.get();if(i===U&&0===r)return F;if(i===U&&0!==r)return r=0,c(n);if(t.offset(1),0!==r){var o=r;if(r=0,e(i,64,126)||e(i,128,252)){var s=127>i?64:65,a=160>o?129:193,u=l(188*(o-a)+i-s,d("jis0208"));return null===u?c(n):u}return t.offset(-1),c(n)}return e(i,0,128)?i:e(i,161,223)?65377+i-161:e(i,129,159)||e(i,224,252)?(r=i,null):c(n)}}function I(t){t.fatal,this.encode=function(t,r){var i=r.get();if(i===F)return U;if(r.offset(1),e(i,0,128))return t.emit(i);if(165===i)return t.emit(92);if(8254===i)return t.emit(126);if(e(i,65377,65439))return t.emit(i-65377+161);var o=h(i,d("jis0208"));if(null===o)return u(i);var s=n(o,188),a=31>s?129:193,c=o%188,f=63>c?64:65;return t.emit(s+a,c+f)}}function B(t){var n=t.fatal,r=0;this.decode=function(t){var i=t.get();if(i===U&&0===r)return F;if(i===U&&0!==r)return r=0,c(n);if(t.offset(1),0!==r){var o=r,s=null;if(r=0,e(o,129,198)){var a=178*(o-129);e(i,65,90)?s=a+i-65:e(i,97,122)?s=a+26+i-97:e(i,129,254)&&(s=a+26+26+i-129)}e(o,199,253)&&e(i,161,254)&&(s=12460+94*(o-199)+(i-161));var u=null===s?null:l(s,d("euc-kr"));return null===s&&t.offset(-1),null===u?c(n):u}return e(i,0,127)?i:e(i,129,253)?(r=i,null):c(n)}}function T(t){t.fatal,this.encode=function(t,r){var i=r.get();if(i===F)return U;if(r.offset(1),e(i,0,127))return t.emit(i);var o=h(i,d("euc-kr"));if(null===o)return u(i);var s,a;if(12460>o){s=n(o,178)+129,a=o%178;var c=26>a?65:52>a?71:77;return t.emit(s,a+c)}return o-=12460,s=n(o,94)+199,a=o%94+161,t.emit(s,a)}}function M(t,n){var r=n.fatal,i=null,o=null;this.decode=function(n){var s=n.get();if(s===U&&null===i&&null===o)return F;if(s===U&&(null!==i||null!==o))return c(r);if(n.offset(1),null===i)return i=s,null;var a;if(a=t?(i<<8)+s:(s<<8)+i,i=null,null!==o){var u=o;return o=null,e(a,56320,57343)?65536+1024*(u-55296)+(a-56320):(n.offset(-2),c(r))}return e(a,55296,56319)?(o=a,null):e(a,56320,57343)?c(r):a}}function j(t,r){r.fatal,this.encode=function(r,i){function o(e){var n=e>>8,i=255&e;return t?r.emit(n,i):r.emit(i,n)}var s=i.get();if(s===F)return U;if(i.offset(1),e(s,55296,57343)&&u(s),65535>=s)return o(s);var a=n(s-65536,1024)+55296,c=(s-65536)%1024+56320;return o(a),o(c)}}function z(t,e){if(!(this instanceof z))throw new TypeError("Constructor cannot be called as a function");if(t=t?t+"":P,e=Object(e),this._encoding=f(t),null===this._encoding||"utf-8"!==this._encoding.name&&"utf-16le"!==this._encoding.name&&"utf-16be"!==this._encoding.name)throw new TypeError("Unknown encoding: "+t);return this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(e.fatal)},Object.defineProperty?Object.defineProperty(this,"encoding",{get:function(){return this._encoding.name}}):this.encoding=this._encoding.name,this}function N(t,e){if(!(this instanceof N))throw new TypeError("Constructor cannot be called as a function");if(t=t?t+"":P,e=Object(e),this._encoding=f(t),null===this._encoding)throw new TypeError("Unknown encoding: "+t);return this._streaming=!1,this._decoder=null,this._options={fatal:Boolean(e.fatal)},Object.defineProperty?Object.defineProperty(this,"encoding",{get:function(){return this._encoding.name}}):this.encoding=this._encoding.name,this}var U=-1,F=-1;a.prototype=Error.prototype;var L=[{encodings:[{labels:["unicode-1-1-utf-8","utf-8","utf8"],name:"utf-8"}],heading:"The Encoding"},{encodings:[{labels:["866","cp866","csibm866","ibm866"],name:"ibm866"},{labels:["csisolatin2","iso-8859-2","iso-ir-101","iso8859-2","iso88592","iso_8859-2","iso_8859-2:1987","l2","latin2"],name:"iso-8859-2"},{labels:["csisolatin3","iso-8859-3","iso-ir-109","iso8859-3","iso88593","iso_8859-3","iso_8859-3:1988","l3","latin3"],name:"iso-8859-3"},{labels:["csisolatin4","iso-8859-4","iso-ir-110","iso8859-4","iso88594","iso_8859-4","iso_8859-4:1988","l4","latin4"],name:"iso-8859-4"},{labels:["csisolatincyrillic","cyrillic","iso-8859-5","iso-ir-144","iso8859-5","iso88595","iso_8859-5","iso_8859-5:1988"],name:"iso-8859-5"},{labels:["arabic","asmo-708","csiso88596e","csiso88596i","csisolatinarabic","ecma-114","iso-8859-6","iso-8859-6-e","iso-8859-6-i","iso-ir-127","iso8859-6","iso88596","iso_8859-6","iso_8859-6:1987"],name:"iso-8859-6"},{labels:["csisolatingreek","ecma-118","elot_928","greek","greek8","iso-8859-7","iso-ir-126","iso8859-7","iso88597","iso_8859-7","iso_8859-7:1987","sun_eu_greek"],name:"iso-8859-7"},{labels:["csiso88598e","csisolatinhebrew","hebrew","iso-8859-8","iso-8859-8-e","iso-ir-138","iso8859-8","iso88598","iso_8859-8","iso_8859-8:1988","visual"],name:"iso-8859-8"},{labels:["csiso88598i","iso-8859-8-i","logical"],name:"iso-8859-8-i"},{labels:["csisolatin6","iso-8859-10","iso-ir-157","iso8859-10","iso885910","l6","latin6"],name:"iso-8859-10"},{labels:["iso-8859-13","iso8859-13","iso885913"],name:"iso-8859-13"},{labels:["iso-8859-14","iso8859-14","iso885914"],name:"iso-8859-14"},{labels:["csisolatin9","iso-8859-15","iso8859-15","iso885915","iso_8859-15","l9"],name:"iso-8859-15"},{labels:["iso-8859-16"],name:"iso-8859-16"},{labels:["cskoi8r","koi","koi8","koi8-r","koi8_r"],name:"koi8-r"},{labels:["koi8-u"],name:"koi8-u"},{labels:["csmacintosh","mac","macintosh","x-mac-roman"],name:"macintosh"},{labels:["dos-874","iso-8859-11","iso8859-11","iso885911","tis-620","windows-874"],name:"windows-874"},{labels:["cp1250","windows-1250","x-cp1250"],name:"windows-1250"},{labels:["cp1251","windows-1251","x-cp1251"],name:"windows-1251"},{labels:["ansi_x3.4-1968","ascii","cp1252","cp819","csisolatin1","ibm819","iso-8859-1","iso-ir-100","iso8859-1","iso88591","iso_8859-1","iso_8859-1:1987","l1","latin1","us-ascii","windows-1252","x-cp1252"],name:"windows-1252"},{labels:["cp1253","windows-1253","x-cp1253"],name:"windows-1253"},{labels:["cp1254","csisolatin5","iso-8859-9","iso-ir-148","iso8859-9","iso88599","iso_8859-9","iso_8859-9:1989","l5","latin5","windows-1254","x-cp1254"],name:"windows-1254"},{labels:["cp1255","windows-1255","x-cp1255"],name:"windows-1255"},{labels:["cp1256","windows-1256","x-cp1256"],name:"windows-1256"},{labels:["cp1257","windows-1257","x-cp1257"],name:"windows-1257"},{labels:["cp1258","windows-1258","x-cp1258"],name:"windows-1258"},{labels:["x-mac-cyrillic","x-mac-ukrainian"],name:"x-mac-cyrillic"}],heading:"Legacy single-byte encodings"},{encodings:[{labels:["chinese","csgb2312","csiso58gb231280","gb2312","gb_2312","gb_2312-80","gbk","iso-ir-58","x-gbk"],name:"gbk"},{labels:["gb18030"],name:"gb18030"},{labels:["hz-gb-2312"],name:"hz-gb-2312"}],heading:"Legacy multi-byte Chinese (simplified) encodings"},{encodings:[{labels:["big5","big5-hkscs","cn-big5","csbig5","x-x-big5"],name:"big5"}],heading:"Legacy multi-byte Chinese (traditional) encodings"},{encodings:[{labels:["cseucpkdfmtjapanese","euc-jp","x-euc-jp"],name:"euc-jp"},{labels:["csiso2022jp","iso-2022-jp"],name:"iso-2022-jp"},{labels:["csshiftjis","ms_kanji","shift-jis","shift_jis","sjis","windows-31j","x-sjis"],name:"shift_jis"}],heading:"Legacy multi-byte Japanese encodings"},{encodings:[{labels:["cseuckr","csksc56011987","euc-kr","iso-ir-149","korean","ks_c_5601-1987","ks_c_5601-1989","ksc5601","ksc_5601","windows-949"],name:"euc-kr"}],heading:"Legacy multi-byte Korean encodings"},{encodings:[{labels:["csiso2022kr","iso-2022-kr","iso-2022-cn","iso-2022-cn-ext"],name:"replacement"},{labels:["utf-16be"],name:"utf-16be"},{labels:["utf-16","utf-16le"],name:"utf-16le"},{labels:["x-user-defined"],name:"x-user-defined"}],heading:"Legacy miscellaneous encodings"}],W={},q={};L.forEach(function(t){t.encodings.forEach(function(t){W[t.name]=t,t.labels.forEach(function(e){q[e]=t})})}),W["utf-8"].getEncoder=function(t){return new y(t)},W["utf-8"].getDecoder=function(t){return new v(t)},function(){L.forEach(function(t){"Legacy single-byte encodings"===t.heading&&t.encodings.forEach(function(t){var e=d(t.name);t.getDecoder=function(t){return new m(e,t)},t.getEncoder=function(t){return new b(e,t)}})})}(),W.gbk.getEncoder=function(t){return new E(!1,t)},W.gbk.getDecoder=function(t){return new w(!1,t)},W.gb18030.getEncoder=function(t){return new E(!0,t)},W.gb18030.getDecoder=function(t){return new w(!0,t)},W["hz-gb-2312"].getEncoder=function(t){return new x(t)},W["hz-gb-2312"].getDecoder=function(t){return new _(t)},W.big5.getEncoder=function(t){return new A(t)},W.big5.getDecoder=function(t){return new k(t)},W["euc-jp"].getEncoder=function(t){return new O(t)},W["euc-jp"].getDecoder=function(t){return new S(t)},W["iso-2022-jp"].getEncoder=function(t){return new C(t)},W["iso-2022-jp"].getDecoder=function(t){return new R(t)},W.shift_jis.getEncoder=function(t){return new I(t)},W.shift_jis.getDecoder=function(t){return new D(t)},W["euc-kr"].getEncoder=function(t){return new T(t)},W["euc-kr"].getDecoder=function(t){return new B(t)},W["utf-16le"].getEncoder=function(t){return new j(!1,t)},W["utf-16le"].getDecoder=function(t){return new M(!1,t)},W["utf-16be"].getEncoder=function(t){return new j(!0,t)},W["utf-16be"].getDecoder=function(t){return new M(!0,t)};var P="utf-8";z.prototype={encode:function(t,e){t=t?t+"":"",e=Object(e),this._streaming||(this._encoder=this._encoding.getEncoder(this._options)),this._streaming=Boolean(e.stream);for(var n=[],r=new i(n),s=new o(t);s.get()!==F;)this._encoder.encode(r,s);if(!this._streaming){var a;do a=this._encoder.encode(r,s);while(a!==U);this._encoder=null}return new Uint8Array(n)}},N.prototype={decode:function(t,e){if(t&&!("buffer"in t&&"byteOffset"in t&&"byteLength"in t))throw new TypeError("Expected ArrayBufferView");t||(t=new Uint8Array(0)),e=Object(e),this._streaming||(this._decoder=this._encoding.getDecoder(this._options),this._BOMseen=!1),this._streaming=Boolean(e.stream);for(var n,i=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),o=new r(i),a=new s;o.get()!==U;)n=this._decoder.decode(o),null!==n&&n!==F&&a.emit(n);if(!this._streaming){do n=this._decoder.decode(o),null!==n&&n!==F&&a.emit(n);while(n!==F&&o.get()!=U);this._decoder=null}var c=a.string();return!this._BOMseen&&c.length&&(this._BOMseen=!0,-1!==["utf-8","utf-16le","utf-16be"].indexOf(this.encoding)&&65279===c.charCodeAt(0)&&(c=c.substring(1))),c}},t.TextEncoder=t.TextEncoder||z,t.TextDecoder=t.TextDecoder||N}(this),n("encoding",["encoding-indexes-shim"],function(){}),n("src/path",[],function(){function t(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}function e(){for(var e="",n=!1,r=arguments.length-1;r>=-1&&!n;r--){var i=r>=0?arguments[r]:"/";"string"==typeof i&&i&&(e=i+"/"+e,n="/"===i.charAt(0))}return e=t(e.split("/").filter(function(t){return!!t}),!n).join("/"),(n?"/":"")+e||"."}function n(e){var n="/"===e.charAt(0);return"/"===e.substr(-1),e=t(e.split("/").filter(function(t){return!!t}),!n).join("/"),e||n||(e="."),(n?"/":"")+e}function r(){var t=Array.prototype.slice.call(arguments,0);return n(t.filter(function(t){return t&&"string"==typeof t}).join("/"))}function i(t,e){function n(t){for(var e=0;t.length>e&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=exports.resolve(t).substr(1),e=exports.resolve(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),s=o,a=0;o>a;a++)if(r[a]!==i[a]){s=a;break}for(var c=[],a=s;r.length>a;a++)c.push("..");return c=c.concat(i.slice(s)),c.join("/")}function o(t){var e=u(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."}function s(t,e){var n=u(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),""===n?"/":n}function a(t){return u(t)[3]}var c=/^(\/?)([\s\S]+\/(?!$)|\/)?((?:\.{1,2}$|[\s\S]+?)?(\.[^.\/]*)?)$/,u=function(t){var e=c.exec(t);return[e[1]||"",e[2]||"",e[3]||"",e[4]||""]};return{normalize:n,resolve:e,join:r,relative:i,sep:"/",delimiter:":",dirname:o,basename:s,extname:a}});var r=r||function(t,e){var n={},r=n.lib={},i=r.Base=function(){function t(){}return{extend:function(e){t.prototype=this;var n=new t;return e&&n.mixIn(e),n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.$super.extend(this)}}}(),o=r.WordArray=i.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:4*t.length},toString:function(t){return(t||a).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,t=t.sigBytes;if(this.clamp(),r%4)for(var i=0;t>i;i++)e[r+i>>>2]|=(255&n[i>>>2]>>>24-8*(i%4))<<24-8*((r+i)%4);else if(n.length>65535)for(i=0;t>i;i+=4)e[r+i>>>2]=n[i>>>2];else e.push.apply(e,n);return this.sigBytes+=t,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-8*(n%4),e.length=t.ceil(n/4)},clone:function(){var t=i.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var n=[],r=0;e>r;r+=4)n.push(0|4294967296*t.random());return o.create(n,e)}}),s=n.enc={},a=s.Hex={stringify:function(t){for(var e=t.words,t=t.sigBytes,n=[],r=0;t>r;r++){var i=255&e[r>>>2]>>>24-8*(r%4);n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;e>r;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-4*(r%8);return o.create(n,e/2)}},c=s.Latin1={stringify:function(t){for(var e=t.words,t=t.sigBytes,n=[],r=0;t>r;r++)n.push(String.fromCharCode(255&e[r>>>2]>>>24-8*(r%4)));return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;e>r;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-8*(r%4);return o.create(n,e)}},u=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},f=r.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=o.create(),this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=u.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n=this._data,r=n.words,i=n.sigBytes,s=this.blockSize,a=i/(4*s),a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0),e=a*s,i=t.min(4*e,i);if(e){for(var c=0;e>c;c+=s)this._doProcessBlock(r,c);c=r.splice(0,e),n.sigBytes-=i}return o.create(c,i)},clone:function(){var t=i.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});r.Hasher=f.extend({init:function(){this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize(),this._hash},clone:function(){var t=f.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:16,_createHelper:function(t){return function(e,n){return t.create(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return l.HMAC.create(t,n).finalize(e)}}});var l=n.algo={};return n}(Math);(function(t){var e=r,n=e.lib,i=n.WordArray,n=n.Hasher,o=e.algo,s=[],a=[];(function(){function e(e){for(var n=t.sqrt(e),r=2;n>=r;r++)if(!(e%r))return!1;return!0}function n(t){return 0|4294967296*(t-(0|t))}for(var r=2,i=0;64>i;)e(r)&&(8>i&&(s[i]=n(t.pow(r,.5))),a[i]=n(t.pow(r,1/3)),i++),r++})();var c=[],o=o.SHA256=n.extend({_doReset:function(){this._hash=i.create(s.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],u=n[4],f=n[5],l=n[6],h=n[7],d=0;64>d;d++){if(16>d)c[d]=0|t[e+d];else{var p=c[d-15],g=c[d-2];c[d]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+c[d-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+c[d-16]}p=h+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&f^~u&l)+a[d]+c[d],g=((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+(r&i^r&o^i&o),h=l,l=f,f=u,u=0|s+p,s=o,o=i,i=r,r=0|p+g}n[0]=0|n[0]+r,n[1]=0|n[1]+i,n[2]=0|n[2]+o,n[3]=0|n[3]+s,n[4]=0|n[4]+u,n[5]=0|n[5]+f,n[6]=0|n[6]+l,n[7]=0|n[7]+h},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[(r+64>>>9<<4)+15]=n,t.sigBytes=4*e.length,this._process()}});e.SHA256=n._createHelper(o),e.HmacSHA256=n._createHmacHelper(o)})(Math),n("crypto-js/rollups/sha256",function(){}),n("src/shared",["require","crypto-js/rollups/sha256"],function(t){function e(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=0|16*Math.random(),n="x"==t?e:8|3&e;return n.toString(16)}).toUpperCase()}function n(t){return o.SHA256(t).toString(o.enc.hex)}function i(){}t("crypto-js/rollups/sha256");var o=r;return{guid:e,hash:n,nop:i}}),n("src/error",["require"],function(){function t(t){this.message=t||""}function e(t){this.message=t||""}function n(t){this.message=t||""}function r(t){this.message=t||""}function i(t){this.message=t||""}function o(t){this.message=t||""}function s(t){this.message=t||""}function a(t){this.message=t||""}function c(t){this.message=t||""}function u(t){this.message=t||""}function f(t){this.message=t||""}function l(t){this.message=t||""}function h(t){this.message=t||""}function d(t){this.message=t||""}return t.prototype=Error(),t.prototype.name="EExists",t.prototype.constructor=t,e.prototype=Error(),e.prototype.name="EIsDirectory",e.prototype.constructor=e,n.prototype=Error(),n.prototype.name="ENoEntry",n.prototype.constructor=n,r.prototype=Error(),r.prototype.name="EBusy",r.prototype.constructor=r,i.prototype=Error(),i.prototype.name="ENotEmpty",i.prototype.constructor=i,o.prototype=Error(),o.prototype.name="ENotDirectory",o.prototype.constructor=o,s.prototype=Error(),s.prototype.name="EBadFileDescriptor",s.prototype.constructor=s,a.prototype=Error(),a.prototype.name="ENotImplemented",a.prototype.constructor=a,c.prototype=Error(),c.prototype.name="ENotMounted",c.prototype.constructor=c,u.prototype=Error(),u.prototype.name="EInvalid",u.prototype.constructor=u,f.prototype=Error(),f.prototype.name="EIO",f.prototype.constructor=f,l.prototype=Error(),l.prototype.name="ELoop",l.prototype.constructor=l,h.prototype=Error(),h.prototype.name="EFileSystemError",h.prototype.constructor=h,d.prototype=Error(),d.prototype.name="ENoAttr",d.prototype.constructor=d,{EExists:t,EIsDirectory:e,ENoEntry:n,EBusy:r,ENotEmpty:i,ENotDirectory:o,EBadFileDescriptor:s,ENotImplemented:a,ENotMounted:c,EInvalid:u,EIO:f,ELoop:l,EFileSystemError:h,ENoAttr:d}}),n("src/constants",["require"],function(){var t="READ",e="WRITE",n="CREATE",r="EXCLUSIVE",i="TRUNCATE",o="APPEND",s="CREATE",a="REPLACE";return{FILE_SYSTEM_NAME:"local",FILE_STORE_NAME:"files",IDB_RO:"readonly",IDB_RW:"readwrite",WSQL_VERSION:"1",WSQL_SIZE:5242880,WSQL_DESC:"FileSystem Storage",MODE_FILE:"FILE",MODE_DIRECTORY:"DIRECTORY",MODE_SYMBOLIC_LINK:"SYMLINK",MODE_META:"META",SYMLOOP_MAX:10,BINARY_MIME_TYPE:"application/octet-stream",JSON_MIME_TYPE:"application/json",ROOT_DIRECTORY_NAME:"/",FS_FORMAT:"FORMAT",O_READ:t,O_WRITE:e,O_CREATE:n,O_EXCLUSIVE:r,O_TRUNCATE:i,O_APPEND:o,O_FLAGS:{r:[t],"r+":[t,e],w:[e,n,i],"w+":[e,t,n,i],wx:[e,n,r,i],"wx+":[e,t,n,r,i],a:[e,n,o],"a+":[e,t,n,o],ax:[e,n,r,o],"ax+":[e,t,n,r,o]},XATTR_CREATE:s,XATTR_REPLACE:a,FS_READY:"READY",FS_PENDING:"PENDING",FS_ERROR:"ERROR",SUPER_NODE_ID:"00000000-0000-0000-0000-000000000000"}}),n("src/providers/indexeddb",["require","src/constants","src/constants","src/constants","src/constants"],function(t){function e(t,e){var n=t.transaction(i,e);this.objectStore=n.objectStore(i)}function n(t){this.name=t||r,this.db=null}var r=t("src/constants").FILE_SYSTEM_NAME,i=t("src/constants").FILE_STORE_NAME,o=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,s=t("src/constants").IDB_RW,a=t("src/constants").IDB_RO;
|
|
return e.prototype.clear=function(t){try{var e=this.objectStore.clear();e.onsuccess=function(){t()},e.onerror=function(e){t(e)}}catch(n){t(n)}},e.prototype.get=function(t,e){try{var n=this.objectStore.get(t);n.onsuccess=function(t){var n=t.target.result;e(null,n)},n.onerror=function(t){e(t)}}catch(r){e(r)}},e.prototype.put=function(t,e,n){try{var r=this.objectStore.put(e,t);r.onsuccess=function(t){var e=t.target.result;n(null,e)},r.onerror=function(t){n(t)}}catch(i){n(i)}},e.prototype.delete=function(t,e){try{var n=this.objectStore.delete(t);n.onsuccess=function(t){var n=t.target.result;e(null,n)},n.onerror=function(t){e(t)}}catch(r){e(r)}},n.isSupported=function(){return!!o},n.prototype.open=function(t){var e=this;if(e.db)return t(null,!1),void 0;var n=!1,r=o.open(e.name);r.onupgradeneeded=function(t){var e=t.target.result;e.objectStoreNames.contains(i)&&e.deleteObjectStore(i),e.createObjectStore(i),n=!0},r.onsuccess=function(r){e.db=r.target.result,t(null,n)},r.onerror=function(e){t(e)}},n.prototype.getReadOnlyContext=function(){return new e(this.db,a)},n.prototype.getReadWriteContext=function(){return new e(this.db,s)},n}),n("src/providers/websql",["require","src/constants","src/constants","src/constants","src/constants","src/constants"],function(t){function e(t,e){var n=this;this.getTransaction=function(r){return n.transaction?(r(n.transaction),void 0):(t[e?"readTransaction":"transaction"](function(t){n.transaction=t,r(t)}),void 0)}}function n(t){this.name=t||r,this.db=null}var r=t("src/constants").FILE_SYSTEM_NAME,i=t("src/constants").FILE_STORE_NAME,o=t("src/constants").WSQL_VERSION,s=t("src/constants").WSQL_SIZE,a=t("src/constants").WSQL_DESC;return e.prototype.clear=function(t){function e(e,n){t(n)}function n(){t(null)}this.getTransaction(function(t){t.executeSql("DELETE FROM "+i,[],n,e)})},e.prototype.get=function(t,e){function n(t,n){var r=0===n.rows.length?null:n.rows.item(0).data;e(null,r)}function r(t,n){e(n)}this.getTransaction(function(e){e.executeSql("SELECT data FROM "+i+" WHERE id = ?",[t],n,r)})},e.prototype.put=function(t,e,n){function r(){n(null)}function o(t,e){n(e)}this.getTransaction(function(n){n.executeSql("INSERT OR REPLACE INTO "+i+" (id, data) VALUES (?, ?)",[t,e],r,o)})},e.prototype.delete=function(t,e){function n(){e(null)}function r(t,n){e(n)}this.getTransaction(function(e){e.executeSql("DELETE FROM "+i+" WHERE id = ?",[t],n,r)})},n.isSupported=function(){return!!window.openDatabase},n.prototype.open=function(t){function e(e,n){t(n)}function n(e){function n(e,n){var r=0===n.rows.item(0).count;t(null,r)}function o(e,n){t(n)}r.db=c,e.executeSql("SELECT COUNT(id) AS count FROM "+i+";",[],n,o)}var r=this;if(r.db)return t(null,!1),void 0;var c=window.openDatabase(r.name,o,a,s);return c?(c.transaction(function(t){t.executeSql("CREATE TABLE IF NOT EXISTS "+i+" (id unique, data)",[],n,e)}),void 0):(t("[WebSQL] Unable to open database."),void 0)},n.prototype.getReadOnlyContext=function(){return new e(this.db,!0)},n.prototype.getReadWriteContext=function(){return new e(this.db,!1)},n}),n("src/providers/memory",["require","src/constants"],function(t){function e(t){o(t)}function n(t,e){this.readOnly=e,this.objectStore=t}function r(t){this.name=t||i,this.db={}}var i=t("src/constants").FILE_SYSTEM_NAME,o=function(){return"undefined"!=typeof process&&process.nextTick?process.nextTick:"function"==typeof setImmediate?function(t){setImmediate(t)}:function(t){setTimeout(t,0)}}();return n.prototype.clear=function(t){if(this.readOnly)return e(function(){t("[MemoryContext] Error: write operation on read only context")}),void 0;var n=this.objectStore;Object.keys(n).forEach(function(t){delete n[t]}),e(t)},n.prototype.get=function(t,n){var r=this;e(function(){n(null,r.objectStore[t])})},n.prototype.put=function(t,n,r){return this.readOnly?(e(function(){r("[MemoryContext] Error: write operation on read only context")}),void 0):(this.objectStore[t]=n,e(r),void 0)},n.prototype.delete=function(t,n){return this.readOnly?(e(function(){n("[MemoryContext] Error: write operation on read only context")}),void 0):(delete this.objectStore[t],e(n),void 0)},r.isSupported=function(){return!0},r.prototype.open=function(t){e(function(){t(null,!0)})},r.prototype.getReadOnlyContext=function(){return new n(this.db,!0)},r.prototype.getReadWriteContext=function(){return new n(this.db,!1)},r}),n("src/providers/providers",["require","src/providers/indexeddb","src/providers/websql","src/providers/memory"],function(t){var e=t("src/providers/indexeddb"),n=t("src/providers/websql"),r=t("src/providers/memory");return{IndexedDB:e,WebSQL:n,Memory:r,Default:e,Fallback:function(){function t(){throw"[Filer Error] Your browser doesn't support IndexedDB or WebSQL."}return e.isSupported()?e:n.isSupported()?n:(t.isSupported=function(){return!1},t)}()}}),function(){function t(t){throw t}function e(t,e){var n=t.split("."),r=_;!(n[0]in r)&&r.execScript&&r.execScript("var "+n[0]);for(var i;n.length&&(i=n.shift());)n.length||e===w?r=r[i]?r[i]:r[i]={}:r[i]=e}function n(e,n){this.index="number"==typeof n?n:0,this.i=0,this.buffer=e instanceof(x?Uint8Array:Array)?e:new(x?Uint8Array:Array)(32768),2*this.buffer.length<=this.index&&t(Error("invalid index")),this.buffer.length<=this.index&&this.f()}function r(t){this.buffer=new(x?Uint16Array:Array)(2*t),this.length=0}function i(t){var e,n,r,i,o,s,a,c,u,f=t.length,l=0,h=Number.POSITIVE_INFINITY;for(c=0;f>c;++c)t[c]>l&&(l=t[c]),h>t[c]&&(h=t[c]);for(e=1<<l,n=new(x?Uint32Array:Array)(e),r=1,i=0,o=2;l>=r;){for(c=0;f>c;++c)if(t[c]===r){for(s=0,a=i,u=0;r>u;++u)s=s<<1|1&a,a>>=1;for(u=s;e>u;u+=o)n[u]=r<<16|c;++i}++r,i<<=1,o<<=1}return[n,l,h]}function o(t,e){this.h=I,this.w=0,this.input=x&&t instanceof Array?new Uint8Array(t):t,this.b=0,e&&(e.lazy&&(this.w=e.lazy),"number"==typeof e.compressionType&&(this.h=e.compressionType),e.outputBuffer&&(this.a=x&&e.outputBuffer instanceof Array?new Uint8Array(e.outputBuffer):e.outputBuffer),"number"==typeof e.outputIndex&&(this.b=e.outputIndex)),this.a||(this.a=new(x?Uint8Array:Array)(32768))}function s(t,e){this.length=t,this.G=e}function a(e,n){function r(e,n){var r,i=e.G,o=[],s=0;r=j[e.length],o[s++]=65535&r,o[s++]=255&r>>16,o[s++]=r>>24;var a;switch(E){case 1===i:a=[0,i-1,0];break;case 2===i:a=[1,i-2,0];break;case 3===i:a=[2,i-3,0];break;case 4===i:a=[3,i-4,0];break;case 6>=i:a=[4,i-5,1];break;case 8>=i:a=[5,i-7,1];break;case 12>=i:a=[6,i-9,2];break;case 16>=i:a=[7,i-13,2];break;case 24>=i:a=[8,i-17,3];break;case 32>=i:a=[9,i-25,3];break;case 48>=i:a=[10,i-33,4];break;case 64>=i:a=[11,i-49,4];break;case 96>=i:a=[12,i-65,5];break;case 128>=i:a=[13,i-97,5];break;case 192>=i:a=[14,i-129,6];break;case 256>=i:a=[15,i-193,6];break;case 384>=i:a=[16,i-257,7];break;case 512>=i:a=[17,i-385,7];break;case 768>=i:a=[18,i-513,8];break;case 1024>=i:a=[19,i-769,8];break;case 1536>=i:a=[20,i-1025,9];break;case 2048>=i:a=[21,i-1537,9];break;case 3072>=i:a=[22,i-2049,10];break;case 4096>=i:a=[23,i-3073,10];break;case 6144>=i:a=[24,i-4097,11];break;case 8192>=i:a=[25,i-6145,11];break;case 12288>=i:a=[26,i-8193,12];break;case 16384>=i:a=[27,i-12289,12];break;case 24576>=i:a=[28,i-16385,13];break;case 32768>=i:a=[29,i-24577,13];break;default:t("invalid distance")}r=a,o[s++]=r[0],o[s++]=r[1],o[s++]=r[2];var c,u;for(c=0,u=o.length;u>c;++c)g[v++]=o[c];m[o[0]]++,b[o[3]]++,y=e.length+n-1,h=null}var i,o,s,a,u,f,l,h,d,p={},g=x?new Uint16Array(2*n.length):[],v=0,y=0,m=new(x?Uint32Array:Array)(286),b=new(x?Uint32Array:Array)(30),_=e.w;if(!x){for(s=0;285>=s;)m[s++]=0;for(s=0;29>=s;)b[s++]=0}for(m[256]=1,i=0,o=n.length;o>i;++i){for(s=u=0,a=3;a>s&&i+s!==o;++s)u=u<<8|n[i+s];if(p[u]===w&&(p[u]=[]),f=p[u],!(y-->0)){for(;f.length>0&&i-f[0]>32768;)f.shift();if(i+3>=o){for(h&&r(h,-1),s=0,a=o-i;a>s;++s)d=n[i+s],g[v++]=d,++m[d];break}f.length>0?(l=c(n,i,f),h?h.length<l.length?(d=n[i-1],g[v++]=d,++m[d],r(l,0)):r(h,-1):_>l.length?h=l:r(l,0)):h?r(h,-1):(d=n[i],g[v++]=d,++m[d])}f.push(i)}return g[v++]=256,m[256]++,e.L=m,e.K=b,x?g.subarray(0,v):g}function c(t,e,n){var r,i,o,a,c,u,f=0,l=t.length;a=0,u=n.length;t:for(;u>a;a++){if(r=n[u-a-1],o=3,f>3){for(c=f;c>3;c--)if(t[r+c-1]!==t[e+c-1])continue t;o=f}for(;258>o&&l>e+o&&t[r+o]===t[e+o];)++o;if(o>f&&(i=r,f=o),258===o)break}return new s(f,e-i)}function u(t,e){var n,i,o,s,a,c=t.length,u=new r(572),l=new(x?Uint8Array:Array)(c);if(!x)for(s=0;c>s;s++)l[s]=0;for(s=0;c>s;++s)t[s]>0&&u.push(s,t[s]);if(n=Array(u.length/2),i=new(x?Uint32Array:Array)(u.length/2),1===n.length)return l[u.pop().index]=1,l;for(s=0,a=u.length/2;a>s;++s)n[s]=u.pop(),i[s]=n[s].value;for(o=f(i,i.length,e),s=0,a=n.length;a>s;++s)l[n[s].index]=o[s];return l}function f(t,e,n){function r(t){var n=d[t][p[t]];n===e?(r(t+1),r(t+1)):--l[n],++p[t]}var i,o,s,a,c,u=new(x?Uint16Array:Array)(n),f=new(x?Uint8Array:Array)(n),l=new(x?Uint8Array:Array)(e),h=Array(n),d=Array(n),p=Array(n),g=(1<<n)-e,v=1<<n-1;for(u[n-1]=e,o=0;n>o;++o)v>g?f[o]=0:(f[o]=1,g-=v),g<<=1,u[n-2-o]=(0|u[n-1-o]/2)+e;for(u[0]=f[0],h[0]=Array(u[0]),d[0]=Array(u[0]),o=1;n>o;++o)u[o]>2*u[o-1]+f[o]&&(u[o]=2*u[o-1]+f[o]),h[o]=Array(u[o]),d[o]=Array(u[o]);for(i=0;e>i;++i)l[i]=n;for(s=0;u[n-1]>s;++s)h[n-1][s]=t[s],d[n-1][s]=s;for(i=0;n>i;++i)p[i]=0;for(1===f[n-1]&&(--l[0],++p[n-1]),o=n-2;o>=0;--o){for(a=i=0,c=p[o+1],s=0;u[o]>s;s++)a=h[o+1][c]+h[o+1][c+1],a>t[i]?(h[o][s]=a,d[o][s]=e,c+=2):(h[o][s]=t[i],d[o][s]=i,++i);p[o]=0,1===f[o]&&r(o)}return l}function l(t){var e,n,r,i,o=new(x?Uint16Array:Array)(t.length),s=[],a=[],c=0;for(e=0,n=t.length;n>e;e++)s[t[e]]=(0|s[t[e]])+1;for(e=1,n=16;n>=e;e++)a[e]=c,c+=0|s[e],c<<=1;for(e=0,n=t.length;n>e;e++)for(c=a[t[e]],a[t[e]]+=1,r=o[e]=0,i=t[e];i>r;r++)o[e]=o[e]<<1|1&c,c>>>=1;return o}function h(e,n){switch(this.l=[],this.m=32768,this.e=this.g=this.c=this.q=0,this.input=x?new Uint8Array(e):e,this.s=!1,this.n=N,this.B=!1,(n||!(n={}))&&(n.index&&(this.c=n.index),n.bufferSize&&(this.m=n.bufferSize),n.bufferType&&(this.n=n.bufferType),n.resize&&(this.B=n.resize)),this.n){case z:this.b=32768,this.a=new(x?Uint8Array:Array)(32768+this.m+258);break;case N:this.b=0,this.a=new(x?Uint8Array:Array)(this.m),this.f=this.J,this.t=this.H,this.o=this.I;break;default:t(Error("invalid inflate mode"))}}function d(e,n){for(var r,i=e.g,o=e.e,s=e.input,a=e.c;n>o;)r=s[a++],r===w&&t(Error("input buffer is broken")),i|=r<<o,o+=8;return r=i&(1<<n)-1,e.g=i>>>n,e.e=o-n,e.c=a,r}function p(t,e){for(var n,r,i,o=t.g,s=t.e,a=t.input,c=t.c,u=e[0],f=e[1];f>s&&(n=a[c++],n!==w);)o|=n<<s,s+=8;return r=u[o&(1<<f)-1],i=r>>>16,t.g=o>>i,t.e=s-i,t.c=c,65535&r}function g(t){function e(t,e,n){var r,i,o,s;for(s=0;t>s;)switch(r=p(this,e)){case 16:for(o=3+d(this,2);o--;)n[s++]=i;break;case 17:for(o=3+d(this,3);o--;)n[s++]=0;i=0;break;case 18:for(o=11+d(this,7);o--;)n[s++]=0;i=0;break;default:i=n[s++]=r}return n}var n,r,o,s,a=d(t,5)+257,c=d(t,5)+1,u=d(t,4)+4,f=new(x?Uint8Array:Array)(q.length);for(s=0;u>s;++s)f[q[s]]=d(t,3);n=i(f),r=new(x?Uint8Array:Array)(a),o=new(x?Uint8Array:Array)(c),t.o(i(e.call(t,a,n,r)),i(e.call(t,c,n,o)))}function v(t){if("string"==typeof t){var e,n,r=t.split("");for(e=0,n=r.length;n>e;e++)r[e]=(255&r[e].charCodeAt(0))>>>0;t=r}for(var i,o=1,s=0,a=t.length,c=0;a>0;){i=a>1024?1024:a,a-=i;do o+=t[c++],s+=o;while(--i);o%=65521,s%=65521}return(s<<16|o)>>>0}function y(e,n){var r,i;switch(this.input=e,this.c=0,(n||!(n={}))&&(n.index&&(this.c=n.index),n.verify&&(this.M=n.verify)),r=e[this.c++],i=e[this.c++],15&r){case re:this.method=re;break;default:t(Error("unsupported compression method"))}0!==((r<<8)+i)%31&&t(Error("invalid fcheck flag:"+((r<<8)+i)%31)),32&i&&t(Error("fdict flag is not supported")),this.A=new h(e,{index:this.c,bufferSize:n.bufferSize,bufferType:n.bufferType,resize:n.resize})}function m(t,e){this.input=t,this.a=new(x?Uint8Array:Array)(32768),this.h=ie.k;var n,r={};!e&&(e={})||"number"!=typeof e.compressionType||(this.h=e.compressionType);for(n in e)r[n]=e[n];r.outputBuffer=this.a,this.z=new o(this.input,r)}function b(t,n){var r,i,o,s;if(Object.keys)r=Object.keys(n);else for(i in r=[],o=0,n)r[o++]=i;for(o=0,s=r.length;s>o;++o)i=r[o],e(t+"."+i,n[i])}var w=void 0,E=!0,_=this,x="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;n.prototype.f=function(){var t,e=this.buffer,n=e.length,r=new(x?Uint8Array:Array)(n<<1);if(x)r.set(e);else for(t=0;n>t;++t)r[t]=e[t];return this.buffer=r},n.prototype.d=function(t,e,n){var r,i=this.buffer,o=this.index,s=this.i,a=i[o];if(n&&e>1&&(t=e>8?(C[255&t]<<24|C[255&t>>>8]<<16|C[255&t>>>16]<<8|C[255&t>>>24])>>32-e:C[t]>>8-e),8>e+s)a=a<<e|t,s+=e;else for(r=0;e>r;++r)a=a<<1|1&t>>e-r-1,8===++s&&(s=0,i[o++]=C[a],a=0,o===i.length&&(i=this.f()));i[o]=a,this.buffer=i,this.i=s,this.index=o},n.prototype.finish=function(){var t,e=this.buffer,n=this.index;return this.i>0&&(e[n]<<=8-this.i,e[n]=C[e[n]],n++),x?t=e.subarray(0,n):(e.length=n,t=e),t};var k,A=new(x?Uint8Array:Array)(256);for(k=0;256>k;++k){for(var S=k,O=S,R=7,S=S>>>1;S;S>>>=1)O<<=1,O|=1&S,--R;A[k]=(255&O<<R)>>>0}var C=A;r.prototype.getParent=function(t){return 2*(0|(t-2)/4)},r.prototype.push=function(t,e){var n,r,i,o=this.buffer;for(n=this.length,o[this.length++]=e,o[this.length++]=t;n>0&&(r=this.getParent(n),o[n]>o[r]);)i=o[n],o[n]=o[r],o[r]=i,i=o[n+1],o[n+1]=o[r+1],o[r+1]=i,n=r;return this.length},r.prototype.pop=function(){var t,e,n,r,i,o=this.buffer;for(e=o[0],t=o[1],this.length-=2,o[0]=o[this.length],o[1]=o[this.length+1],i=0;(r=2*i+2,!(r>=this.length))&&(this.length>r+2&&o[r+2]>o[r]&&(r+=2),o[r]>o[i]);)n=o[i],o[i]=o[r],o[r]=n,n=o[i+1],o[i+1]=o[r+1],o[r+1]=n,i=r;return{index:t,value:e,length:this.length}};var D,I=2,B={NONE:0,r:1,k:I,N:3},T=[];for(D=0;288>D;D++)switch(E){case 143>=D:T.push([D+48,8]);break;case 255>=D:T.push([D-144+400,9]);break;case 279>=D:T.push([D-256+0,7]);break;case 287>=D:T.push([D-280+192,8]);break;default:t("invalid literal: "+D)}o.prototype.j=function(){var e,r,i,o,s=this.input;switch(this.h){case 0:for(i=0,o=s.length;o>i;){r=x?s.subarray(i,i+65535):s.slice(i,i+65535),i+=r.length;var c=r,f=i===o,h=w,d=w,p=w,g=w,v=w,y=this.a,m=this.b;if(x){for(y=new Uint8Array(this.a.buffer);y.length<=m+c.length+5;)y=new Uint8Array(y.length<<1);y.set(this.a)}if(h=f?1:0,y[m++]=0|h,d=c.length,p=65535&~d+65536,y[m++]=255&d,y[m++]=255&d>>>8,y[m++]=255&p,y[m++]=255&p>>>8,x)y.set(c,m),m+=c.length,y=y.subarray(0,m);else{for(g=0,v=c.length;v>g;++g)y[m++]=c[g];y.length=m}this.b=m,this.a=y}break;case 1:var b=new n(x?new Uint8Array(this.a.buffer):this.a,this.b);b.d(1,1,E),b.d(1,2,E);var _,k,A,S=a(this,s);for(_=0,k=S.length;k>_;_++)if(A=S[_],n.prototype.d.apply(b,T[A]),A>256)b.d(S[++_],S[++_],E),b.d(S[++_],5),b.d(S[++_],S[++_],E);else if(256===A)break;this.a=b.finish(),this.b=this.a.length;break;case I:var O,R,C,D,B,M,j,z,N,U,F,L,W,q,P,H=new n(x?new Uint8Array(this.a.buffer):this.a,this.b),Y=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],X=Array(19);for(O=I,H.d(1,1,E),H.d(O,2,E),R=a(this,s),M=u(this.L,15),j=l(M),z=u(this.K,7),N=l(z),C=286;C>257&&0===M[C-1];C--);for(D=30;D>1&&0===z[D-1];D--);var K,Z,Q,V,G,$,J=C,te=D,ee=new(x?Uint32Array:Array)(J+te),ne=new(x?Uint32Array:Array)(316),re=new(x?Uint8Array:Array)(19);for(K=Z=0;J>K;K++)ee[Z++]=M[K];for(K=0;te>K;K++)ee[Z++]=z[K];if(!x)for(K=0,V=re.length;V>K;++K)re[K]=0;for(K=G=0,V=ee.length;V>K;K+=Z){for(Z=1;V>K+Z&&ee[K+Z]===ee[K];++Z);if(Q=Z,0===ee[K])if(3>Q)for(;Q-->0;)ne[G++]=0,re[0]++;else for(;Q>0;)$=138>Q?Q:138,$>Q-3&&Q>$&&($=Q-3),10>=$?(ne[G++]=17,ne[G++]=$-3,re[17]++):(ne[G++]=18,ne[G++]=$-11,re[18]++),Q-=$;else if(ne[G++]=ee[K],re[ee[K]]++,Q--,3>Q)for(;Q-->0;)ne[G++]=ee[K],re[ee[K]]++;else for(;Q>0;)$=6>Q?Q:6,$>Q-3&&Q>$&&($=Q-3),ne[G++]=16,ne[G++]=$-3,re[16]++,Q-=$}for(e=x?ne.subarray(0,G):ne.slice(0,G),U=u(re,7),q=0;19>q;q++)X[q]=U[Y[q]];for(B=19;B>4&&0===X[B-1];B--);for(F=l(U),H.d(C-257,5,E),H.d(D-1,5,E),H.d(B-4,4,E),q=0;B>q;q++)H.d(X[q],3,E);for(q=0,P=e.length;P>q;q++)if(L=e[q],H.d(F[L],U[L],E),L>=16){switch(q++,L){case 16:W=2;break;case 17:W=3;break;case 18:W=7;break;default:t("invalid code: "+L)}H.d(e[q],W,E)}var ie,oe,se,ae,ce,ue,fe,le,he=[j,M],de=[N,z];for(ce=he[0],ue=he[1],fe=de[0],le=de[1],ie=0,oe=R.length;oe>ie;++ie)if(se=R[ie],H.d(ce[se],ue[se],E),se>256)H.d(R[++ie],R[++ie],E),ae=R[++ie],H.d(fe[ae],le[ae],E),H.d(R[++ie],R[++ie],E);else if(256===se)break;this.a=H.finish(),this.b=this.a.length;break;default:t("invalid compression type")}return this.a};var M=function(){function e(e){switch(E){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case 12>=e:return[265,e-11,1];case 14>=e:return[266,e-13,1];case 16>=e:return[267,e-15,1];case 18>=e:return[268,e-17,1];case 22>=e:return[269,e-19,2];case 26>=e:return[270,e-23,2];case 30>=e:return[271,e-27,2];case 34>=e:return[272,e-31,2];case 42>=e:return[273,e-35,3];case 50>=e:return[274,e-43,3];case 58>=e:return[275,e-51,3];case 66>=e:return[276,e-59,3];case 82>=e:return[277,e-67,4];case 98>=e:return[278,e-83,4];case 114>=e:return[279,e-99,4];case 130>=e:return[280,e-115,4];case 162>=e:return[281,e-131,5];case 194>=e:return[282,e-163,5];case 226>=e:return[283,e-195,5];case 257>=e:return[284,e-227,5];case 258===e:return[285,e-258,0];default:t("invalid length: "+e)}}var n,r,i=[];for(n=3;258>=n;n++)r=e(n),i[n]=r[2]<<24|r[1]<<16|r[0];return i}(),j=x?new Uint32Array(M):M,z=0,N=1,U={D:z,C:N};h.prototype.p=function(){for(;!this.s;){var e=d(this,3);switch(1&e&&(this.s=E),e>>>=1){case 0:var n=this.input,r=this.c,i=this.a,o=this.b,s=w,a=w,c=w,u=i.length,f=w;switch(this.e=this.g=0,s=n[r++],s===w&&t(Error("invalid uncompressed block header: LEN (first byte)")),a=s,s=n[r++],s===w&&t(Error("invalid uncompressed block header: LEN (second byte)")),a|=s<<8,s=n[r++],s===w&&t(Error("invalid uncompressed block header: NLEN (first byte)")),c=s,s=n[r++],s===w&&t(Error("invalid uncompressed block header: NLEN (second byte)")),c|=s<<8,a===~c&&t(Error("invalid uncompressed block header: length verify")),r+a>n.length&&t(Error("input buffer is broken")),this.n){case z:for(;o+a>i.length;){if(f=u-o,a-=f,x)i.set(n.subarray(r,r+f),o),o+=f,r+=f;else for(;f--;)i[o++]=n[r++];this.b=o,i=this.f(),o=this.b}break;case N:for(;o+a>i.length;)i=this.f({v:2});break;default:t(Error("invalid inflate mode"))}if(x)i.set(n.subarray(r,r+a),o),o+=a,r+=a;else for(;a--;)i[o++]=n[r++];this.c=r,this.b=o,this.a=i;break;case 1:this.o(te,ne);break;case 2:g(this);break;default:t(Error("unknown BTYPE: "+e))}}return this.t()};var F,L,W=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],q=x?new Uint16Array(W):W,P=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258],H=x?new Uint16Array(P):P,Y=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],X=x?new Uint8Array(Y):Y,K=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],Z=x?new Uint16Array(K):K,Q=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],V=x?new Uint8Array(Q):Q,G=new(x?Uint8Array:Array)(288);for(F=0,L=G.length;L>F;++F)G[F]=143>=F?8:255>=F?9:279>=F?7:8;var $,J,te=i(G),ee=new(x?Uint8Array:Array)(30);for($=0,J=ee.length;J>$;++$)ee[$]=5;var ne=i(ee);h.prototype.o=function(t,e){var n=this.a,r=this.b;this.u=t;for(var i,o,s,a,c=n.length-258;256!==(i=p(this,t));)if(256>i)r>=c&&(this.b=r,n=this.f(),r=this.b),n[r++]=i;else for(o=i-257,a=H[o],X[o]>0&&(a+=d(this,X[o])),i=p(this,e),s=Z[i],V[i]>0&&(s+=d(this,V[i])),r>=c&&(this.b=r,n=this.f(),r=this.b);a--;)n[r]=n[r++-s];for(;this.e>=8;)this.e-=8,this.c--;this.b=r},h.prototype.I=function(t,e){var n=this.a,r=this.b;this.u=t;for(var i,o,s,a,c=n.length;256!==(i=p(this,t));)if(256>i)r>=c&&(n=this.f(),c=n.length),n[r++]=i;else for(o=i-257,a=H[o],X[o]>0&&(a+=d(this,X[o])),i=p(this,e),s=Z[i],V[i]>0&&(s+=d(this,V[i])),r+a>c&&(n=this.f(),c=n.length);a--;)n[r]=n[r++-s];for(;this.e>=8;)this.e-=8,this.c--;this.b=r},h.prototype.f=function(){var t,e,n=new(x?Uint8Array:Array)(this.b-32768),r=this.b-32768,i=this.a;if(x)n.set(i.subarray(32768,n.length));else for(t=0,e=n.length;e>t;++t)n[t]=i[t+32768];if(this.l.push(n),this.q+=n.length,x)i.set(i.subarray(r,r+32768));else for(t=0;32768>t;++t)i[t]=i[r+t];return this.b=32768,i},h.prototype.J=function(t){var e,n,r,i,o=0|this.input.length/this.c+1,s=this.input,a=this.a;return t&&("number"==typeof t.v&&(o=t.v),"number"==typeof t.F&&(o+=t.F)),2>o?(n=(s.length-this.c)/this.u[2],i=0|258*(n/2),r=a.length>i?a.length+i:a.length<<1):r=a.length*o,x?(e=new Uint8Array(r),e.set(a)):e=a,this.a=e},h.prototype.t=function(){var t,e,n,r,i,o=0,s=this.a,a=this.l,c=new(x?Uint8Array:Array)(this.q+(this.b-32768));if(0===a.length)return x?this.a.subarray(32768,this.b):this.a.slice(32768,this.b);for(e=0,n=a.length;n>e;++e)for(t=a[e],r=0,i=t.length;i>r;++r)c[o++]=t[r];for(e=32768,n=this.b;n>e;++e)c[o++]=s[e];return this.l=[],this.buffer=c},h.prototype.H=function(){var t,e=this.b;return x?this.B?(t=new Uint8Array(e),t.set(this.a.subarray(0,e))):t=this.a.subarray(0,e):(this.a.length>e&&(this.a.length=e),t=this.a),this.buffer=t},y.prototype.p=function(){var e,n,r=this.input;return e=this.A.p(),this.c=this.A.c,this.M&&(n=(r[this.c++]<<24|r[this.c++]<<16|r[this.c++]<<8|r[this.c++])>>>0,n!==v(e)&&t(Error("invalid adler-32 checksum"))),e};var re=8,ie=B;m.prototype.j=function(){var e,n,r,i,o,s,a,c=0;switch(a=this.a,e=re){case re:n=Math.LOG2E*Math.log(32768)-8;break;default:t(Error("invalid compression method"))}switch(r=n<<4|e,a[c++]=r,e){case re:switch(this.h){case ie.NONE:o=0;break;case ie.r:o=1;break;case ie.k:o=2;break;default:t(Error("unsupported compression type"))}break;default:t(Error("invalid compression method"))}return i=0|o<<6,a[c++]=i|31-(256*r+i)%31,s=v(this.input),this.z.b=c,a=this.z.j(),c=a.length,x&&(a=new Uint8Array(a.buffer),c+4>=a.length&&(this.a=new Uint8Array(a.length+4),this.a.set(a),a=this.a),a=a.subarray(0,c+4)),a[c++]=255&s>>24,a[c++]=255&s>>16,a[c++]=255&s>>8,a[c++]=255&s,a},e("Zlib.Inflate",y),e("Zlib.Inflate.prototype.decompress",y.prototype.p),b("Zlib.Inflate.BufferType",{ADAPTIVE:U.C,BLOCK:U.D}),e("Zlib.Deflate",m),e("Zlib.Deflate.compress",function(t,e){return new m(t,e).j()}),e("Zlib.Deflate.prototype.compress",m.prototype.j),b("Zlib.Deflate.CompressionType",{NONE:ie.NONE,FIXED:ie.r,DYNAMIC:ie.k})}.call(this),n("zlib",function(){}),n("src/adapters/zlib",["require","zlib"],function(t){function e(t){return new o(t).decompress()}function n(t){return new s(t).compress()}function r(t){this.context=t}function i(t){this.provider=t}t("zlib");var o=Zlib.Inflate,s=Zlib.Deflate;return r.prototype.clear=function(t){this.context.clear(t)},r.prototype.get=function(t,n){this.context.get(t,function(t,r){return t?(n(t),void 0):(r&&(r=e(r)),n(null,r),void 0)})},r.prototype.put=function(t,e,r){e=n(e),this.context.put(t,e,r)},r.prototype.delete=function(t,e){this.context.delete(t,e)},i.isSupported=function(){return!0},i.prototype.open=function(t){this.provider.open(t)},i.prototype.getReadOnlyContext=function(){return new r(this.provider.getReadOnlyContext())},i.prototype.getReadWriteContext=function(){return new r(this.provider.getReadWriteContext())},i});var r=r||function(t,e){var n={},r=n.lib={},i=r.Base=function(){function t(){}return{extend:function(e){t.prototype=this;var n=new t;return e&&n.mixIn(e),n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.$super.extend(this)}}}(),o=r.WordArray=i.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:4*t.length},toString:function(t){return(t||a).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,t=t.sigBytes;if(this.clamp(),r%4)for(var i=0;t>i;i++)e[r+i>>>2]|=(255&n[i>>>2]>>>24-8*(i%4))<<24-8*((r+i)%4);else if(n.length>65535)for(i=0;t>i;i+=4)e[r+i>>>2]=n[i>>>2];else e.push.apply(e,n);return this.sigBytes+=t,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-8*(n%4),e.length=t.ceil(n/4)},clone:function(){var t=i.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var n=[],r=0;e>r;r+=4)n.push(0|4294967296*t.random());return o.create(n,e)}}),s=n.enc={},a=s.Hex={stringify:function(t){for(var e=t.words,t=t.sigBytes,n=[],r=0;t>r;r++){var i=255&e[r>>>2]>>>24-8*(r%4);n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;e>r;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-4*(r%8);return o.create(n,e/2)}},c=s.Latin1={stringify:function(t){for(var e=t.words,t=t.sigBytes,n=[],r=0;t>r;r++)n.push(String.fromCharCode(255&e[r>>>2]>>>24-8*(r%4)));return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;e>r;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-8*(r%4);return o.create(n,e)}},u=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},f=r.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=o.create(),this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=u.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n=this._data,r=n.words,i=n.sigBytes,s=this.blockSize,a=i/(4*s),a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0),e=a*s,i=t.min(4*e,i);if(e){for(var c=0;e>c;c+=s)this._doProcessBlock(r,c);c=r.splice(0,e),n.sigBytes-=i}return o.create(c,i)},clone:function(){var t=i.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});r.Hasher=f.extend({init:function(){this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize(),this._hash},clone:function(){var t=f.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:16,_createHelper:function(t){return function(e,n){return t.create(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return l.HMAC.create(t,n).finalize(e)}}});var l=n.algo={};return n}(Math);(function(){var t=r,e=t.lib.WordArray;t.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var t=[],i=0;n>i;i+=3)for(var o=(255&e[i>>>2]>>>24-8*(i%4))<<16|(255&e[i+1>>>2]>>>24-8*((i+1)%4))<<8|255&e[i+2>>>2]>>>24-8*((i+2)%4),s=0;4>s&&n>i+.75*s;s++)t.push(r.charAt(63&o>>>6*(3-s)));if(e=r.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(t){var t=t.replace(/\s/g,""),n=t.length,r=this._map,i=r.charAt(64);i&&(i=t.indexOf(i),-1!=i&&(n=i));for(var i=[],o=0,s=0;n>s;s++)if(s%4){var a=r.indexOf(t.charAt(s-1))<<2*(s%4),c=r.indexOf(t.charAt(s))>>>6-2*(s%4);i[o>>>2]|=(a|c)<<24-8*(o%4),o++}return e.create(i,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})(),function(t){function e(t,e,n,r,i,o,s){return t=t+(e&n|~e&r)+i+s,(t<<o|t>>>32-o)+e}function n(t,e,n,r,i,o,s){return t=t+(e&r|n&~r)+i+s,(t<<o|t>>>32-o)+e}function i(t,e,n,r,i,o,s){return t=t+(e^n^r)+i+s,(t<<o|t>>>32-o)+e}function o(t,e,n,r,i,o,s){return t=t+(n^(e|~r))+i+s,(t<<o|t>>>32-o)+e}var s=r,a=s.lib,c=a.WordArray,a=a.Hasher,u=s.algo,f=[];(function(){for(var e=0;64>e;e++)f[e]=0|4294967296*t.abs(t.sin(e+1))})(),u=u.MD5=a.extend({_doReset:function(){this._hash=c.create([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,r){for(var s=0;16>s;s++){var a=r+s,c=t[a];t[a]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}for(var a=this._hash.words,c=a[0],u=a[1],l=a[2],h=a[3],s=0;64>s;s+=4)16>s?(c=e(c,u,l,h,t[r+s],7,f[s]),h=e(h,c,u,l,t[r+s+1],12,f[s+1]),l=e(l,h,c,u,t[r+s+2],17,f[s+2]),u=e(u,l,h,c,t[r+s+3],22,f[s+3])):32>s?(c=n(c,u,l,h,t[r+(s+1)%16],5,f[s]),h=n(h,c,u,l,t[r+(s+6)%16],9,f[s+1]),l=n(l,h,c,u,t[r+(s+11)%16],14,f[s+2]),u=n(u,l,h,c,t[r+s%16],20,f[s+3])):48>s?(c=i(c,u,l,h,t[r+(3*s+5)%16],4,f[s]),h=i(h,c,u,l,t[r+(3*s+8)%16],11,f[s+1]),l=i(l,h,c,u,t[r+(3*s+11)%16],16,f[s+2]),u=i(u,l,h,c,t[r+(3*s+14)%16],23,f[s+3])):(c=o(c,u,l,h,t[r+3*s%16],6,f[s]),h=o(h,c,u,l,t[r+(3*s+7)%16],10,f[s+1]),l=o(l,h,c,u,t[r+(3*s+14)%16],15,f[s+2]),u=o(u,l,h,c,t[r+(3*s+5)%16],21,f[s+3]));a[0]=0|a[0]+c,a[1]=0|a[1]+u,a[2]=0|a[2]+l,a[3]=0|a[3]+h},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;for(e[r>>>5]|=128<<24-r%32,e[(r+64>>>9<<4)+14]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process(),t=this._hash.words,e=0;4>e;e++)n=t[e],t[e]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}}),s.MD5=a._createHelper(u),s.HmacMD5=a._createHmacHelper(u)}(Math),function(){var t=r,e=t.lib,n=e.Base,i=e.WordArray,e=t.algo,o=e.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:e.MD5,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=this.cfg,r=n.hasher.create(),o=i.create(),s=o.words,a=n.keySize,n=n.iterations;a>s.length;){c&&r.update(c);var c=r.update(t).finalize(e);r.reset();for(var u=1;n>u;u++)c=r.finalize(c),r.reset();o.concat(c)}return o.sigBytes=4*a,o}});t.EvpKDF=function(t,e,n){return o.create(n).compute(t,e)}}(),r.lib.Cipher||function(t){var e=r,n=e.lib,i=n.Base,o=n.WordArray,s=n.BufferedBlockAlgorithm,a=e.enc.Base64,c=e.algo.EvpKDF,u=n.Cipher=s.extend({cfg:i.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){return function(t){return{encrypt:function(e,n,r){return("string"==typeof n?g:p).encrypt(t,e,n,r)},decrypt:function(e,n,r){return("string"==typeof n?g:p).decrypt(t,e,n,r)}}}}()});n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var f=e.mode={},l=n.BlockCipherMode=i.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),f=f.CBC=function(){function e(e,n,r){var i=this._iv;i?this._iv=t:i=this._prevBlock;for(var o=0;r>o;o++)e[n+o]^=i[o]}var n=l.extend();return n.Encryptor=n.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize;e.call(this,t,n,i),r.encryptBlock(t,n),this._prevBlock=t.slice(n,n+i)}}),n.Decryptor=n.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize,o=t.slice(n,n+i);r.decryptBlock(t,n),e.call(this,t,n,i),this._prevBlock=o}}),n}(),h=(e.pad={}).Pkcs7={pad:function(t,e){for(var n=4*e,n=n-t.sigBytes%n,r=n<<24|n<<16|n<<8|n,i=[],s=0;n>s;s+=4)i.push(r);n=o.create(i,n),t.concat(n)},unpad:function(t){t.sigBytes-=255&t.words[t.sigBytes-1>>>2]}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:f,padding:h}),reset:function(){u.reset.call(this);var t=this.cfg,e=t.iv,t=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=t.createEncryptor;else n=t.createDecryptor,this._minBufferSize=1;this._mode=n.call(t,this,e&&e.words)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else e=this._process(!0),t.unpad(e);return e},blockSize:4});var d=n.CipherParams=i.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),f=(e.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,t=t.salt,e=(t?o.create([1398893684,1701076831]).concat(t).concat(e):e).toString(a);return e=e.replace(/(.{64})/g,"$1\n")},parse:function(t){var t=a.parse(t),e=t.words;if(1398893684==e[0]&&1701076831==e[1]){var n=o.create(e.slice(2,4));
|
|
e.splice(0,4),t.sigBytes-=16}return d.create({ciphertext:t,salt:n})}},p=n.SerializableCipher=i.extend({cfg:i.extend({format:f}),encrypt:function(t,e,n,r){var r=this.cfg.extend(r),i=t.createEncryptor(n,r),e=i.finalize(e),i=i.cfg;return d.create({ciphertext:e,key:n,iv:i.iv,algorithm:t,mode:i.mode,padding:i.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,n,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),t.createDecryptor(n,r).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t):t}}),e=(e.kdf={}).OpenSSL={compute:function(t,e,n,r){return r||(r=o.random(8)),t=c.create({keySize:e+n}).compute(t,r),n=o.create(t.words.slice(e),4*n),t.sigBytes=4*e,d.create({key:t,iv:n,salt:r})}},g=n.PasswordBasedCipher=p.extend({cfg:p.cfg.extend({kdf:e}),encrypt:function(t,e,n,r){return r=this.cfg.extend(r),n=r.kdf.compute(n,t.keySize,t.ivSize),r.iv=n.iv,t=p.encrypt.call(this,t,e,n.key,r),t.mixIn(n),t},decrypt:function(t,e,n,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),n=r.kdf.compute(n,t.keySize,t.ivSize,e.salt),r.iv=n.iv,p.decrypt.call(this,t,e,n.key,r)}})}(),function(){var t=r,e=t.lib.BlockCipher,n=t.algo,i=[],o=[],s=[],a=[],c=[],u=[],f=[],l=[],h=[],d=[];(function(){for(var t=[],e=0;256>e;e++)t[e]=128>e?e<<1:283^e<<1;for(var n=0,r=0,e=0;256>e;e++){var p=r^r<<1^r<<2^r<<3^r<<4,p=99^(p>>>8^255&p);i[n]=p,o[p]=n;var g=t[n],v=t[g],y=t[v],m=257*t[p]^16843008*p;s[n]=m<<24|m>>>8,a[n]=m<<16|m>>>16,c[n]=m<<8|m>>>24,u[n]=m,m=16843009*y^65537*v^257*g^16843008*n,f[p]=m<<24|m>>>8,l[p]=m<<16|m>>>16,h[p]=m<<8|m>>>24,d[p]=m,n?(n=g^t[t[t[y^g]]],r^=t[t[r]]):n=r=1}})();var p=[0,1,2,4,8,16,32,64,128,27,54],n=n.AES=e.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes/4,t=4*((this._nRounds=n+6)+1),r=this._keySchedule=[],o=0;t>o;o++)if(n>o)r[o]=e[o];else{var s=r[o-1];o%n?n>6&&4==o%n&&(s=i[s>>>24]<<24|i[255&s>>>16]<<16|i[255&s>>>8]<<8|i[255&s]):(s=s<<8|s>>>24,s=i[s>>>24]<<24|i[255&s>>>16]<<16|i[255&s>>>8]<<8|i[255&s],s^=p[0|o/n]<<24),r[o]=r[o-n]^s}for(e=this._invKeySchedule=[],n=0;t>n;n++)o=t-n,s=n%4?r[o]:r[o-4],e[n]=4>n||4>=o?s:f[i[s>>>24]]^l[i[255&s>>>16]]^h[i[255&s>>>8]]^d[i[255&s]]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,a,c,u,i)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,f,l,h,d,o),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,i,o,s,a){for(var c=this._nRounds,u=t[e]^n[0],f=t[e+1]^n[1],l=t[e+2]^n[2],h=t[e+3]^n[3],d=4,p=1;c>p;p++)var g=r[u>>>24]^i[255&f>>>16]^o[255&l>>>8]^s[255&h]^n[d++],v=r[f>>>24]^i[255&l>>>16]^o[255&h>>>8]^s[255&u]^n[d++],y=r[l>>>24]^i[255&h>>>16]^o[255&u>>>8]^s[255&f]^n[d++],h=r[h>>>24]^i[255&u>>>16]^o[255&f>>>8]^s[255&l]^n[d++],u=g,f=v,l=y;g=(a[u>>>24]<<24|a[255&f>>>16]<<16|a[255&l>>>8]<<8|a[255&h])^n[d++],v=(a[f>>>24]<<24|a[255&l>>>16]<<16|a[255&h>>>8]<<8|a[255&u])^n[d++],y=(a[l>>>24]<<24|a[255&h>>>16]<<16|a[255&u>>>8]<<8|a[255&f])^n[d++],h=(a[h>>>24]<<24|a[255&u>>>16]<<16|a[255&f>>>8]<<8|a[255&l])^n[d++],t[e]=g,t[e+1]=v,t[e+2]=y,t[e+3]=h},keySize:8});t.AES=e._createHelper(n)}(),n("crypto-js/rollups/aes",function(){}),n("src/adapters/crypto",["require","crypto-js/rollups/aes","encoding"],function(t){function e(t){for(var e=t.length,n=[],r=0;e>r;r++)n[r>>>2]|=(255&t[r])<<24-8*(r%4);return a.create(n,e)}function n(t){return new TextEncoder("utf-8").encode(t)}function i(t){return new TextDecoder("utf-8").decode(t)}function o(t,e,n){this.context=t,this.encrypt=e,this.decrypt=n}function s(t,o){this.provider=o;var s=r.AES;this.encrypt=function(r){var i=e(r),o=s.encrypt(i,t),a=n(o);return a},this.decrypt=function(e){var o=i(e),a=s.decrypt(o,t),c=a.toString(r.enc.Utf8),u=n(c);return u}}t("crypto-js/rollups/aes");var a=r.lib.WordArray;return t("encoding"),o.prototype.clear=function(t){this.context.clear(t)},o.prototype.get=function(t,e){var n=this.decrypt;this.context.get(t,function(t,r){return t?(e(t),void 0):(r&&(r=n(r)),e(null,r),void 0)})},o.prototype.put=function(t,e,n){var r=this.encrypt(e);this.context.put(t,r,n)},o.prototype.delete=function(t,e){this.context.delete(t,e)},s.isSupported=function(){return!0},s.prototype.open=function(t){this.provider.open(t)},s.prototype.getReadOnlyContext=function(){return new o(this.provider.getReadOnlyContext(),this.encrypt,this.decrypt)},s.prototype.getReadWriteContext=function(){return new o(this.provider.getReadWriteContext(),this.encrypt,this.decrypt)},s}),n("src/adapters/adapters",["require","src/adapters/zlib","src/adapters/crypto"],function(t){return{Compression:t("src/adapters/zlib"),Encryption:t("src/adapters/crypto")}}),n("src/fs",["require","nodash","encoding","src/path","src/path","src/path","src/shared","src/shared","src/shared","src/error","src/error","src/error","src/error","src/error","src/error","src/error","src/error","src/error","src/error","src/error","src/error","src/error","src/error","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/providers/providers","src/adapters/adapters"],function(t){function e(t,e){this.id=t,this.type=e||Be}function n(t,e,n){this.id=t,this.flags=e,this.position=n}function r(t,e,n){var r=Date.now();this.id=Ne,this.mode=je,this.atime=t||r,this.ctime=e||r,this.mtime=n||r,this.rnode=ve()}function i(t,e,n,r,i,o,s,a,c,u){var f=Date.now();this.id=t||ve(),this.mode=e||Be,this.size=n||0,this.atime=r||f,this.ctime=i||f,this.mtime=o||f,this.flags=s||[],this.xattrs=a||{},this.nlinks=c||0,this.version=u||0,this.blksize=void 0,this.nblocks=1,this.data=ve()}function o(t,e){this.node=t.id,this.dev=e,this.size=t.size,this.nlinks=t.nlinks,this.atime=t.atime,this.mtime=t.mtime,this.ctime=t.ctime,this.type=t.mode}function s(t,e,n){function r(e,r){e?n(e):r&&r.mode===je&&r.rnode?t.get(r.rnode,i):n(new Re("missing super node"))}function i(t,e){t?n(t):e?n(null,e):n(new we("path does not exist"))}function o(e,r){e?n(e):r.mode===Te&&r.data?t.get(r.data,a):n(new xe("a component of the path prefix is not a directory"))}function a(e,r){if(e)n(e);else if(he(r).has(f)){var i=r[f].id;t.get(i,c)}else n(new we("path does not exist"))}function c(t,e){t?n(t):e.mode==Me?(h++,h>Ue?n(new Oe("too many symbolic links were encountered")):u(e.data)):n(null,e)}function u(e){e=de(e),l=pe(e),f=ge(e),ze==f?t.get(Ne,r):s(t,l,o)}if(e=de(e),!e)return n(new we("path is an empty string"));var f=ge(e),l=pe(e),h=0;ze==f?t.get(Ne,r):s(t,l,o)}function a(t,e,n,r,i,o){function a(e,s){s?s.xattrs[n]:null,e?o(e):i===Ze&&s.xattrs.hasOwnProperty(n)?o(new me("attribute already exists")):i!==Qe||s.xattrs.hasOwnProperty(n)?(s.xattrs[n]=r,t.put(s.id,s,o)):o(new Ce("attribute does not exist"))}"string"==typeof e?s(t,e,a):"object"==typeof e&&"string"==typeof e.id?t.get(e.id,a):o(new Ae("path or file descriptor of wrong type"))}function c(t,e){function n(n,i){!n&&i?e(new me):n&&!n instanceof we?e(n):(a=new r,t.put(a.id,a,o))}function o(n){n?e(n):(c=new i(a.rnode,Te),c.nlinks+=1,t.put(c.id,c,s))}function s(n){n?e(n):(u={},t.put(c.data,u,e))}var a,c,u;t.get(Ne,n)}function u(t,n,r){function o(e,n){!e&&n?r(new me):e&&!e instanceof we?r(e):s(t,v,a)}function a(e,n){e?r(e):(d=n,t.get(d.data,c))}function c(e,n){e?r(e):(p=n,l=new i(void 0,Te),l.nlinks+=1,t.put(l.id,l,u))}function u(e){e?r(e):(h={},t.put(l.data,h,f))}function f(n){n?r(n):(p[g]=new e(l.id,Te),t.put(d.data,p,r))}n=de(n);var l,h,d,p,g=ge(n),v=pe(n);s(t,n,o)}function f(t,e,n){function r(e,r){e?n(e):(d=r,t.get(d.data,i))}function i(e,r){e?n(e):ze==g?n(new Ee):he(r).has(g)?(p=r,l=p[g].id,t.get(l,o)):n(new we)}function o(e,r){e?n(e):r.mode!=Te?n(new xe):(l=r,t.get(l.data,a))}function a(t,e){t?n(t):(h=e,he(h).size()>0?n(new _e):c())}function c(){delete p[g],t.put(d.data,p,u)}function u(e){e?n(e):t.delete(l.id,f)}function f(e){e?n(e):t.delete(l.data,n)}e=de(e);var l,h,d,p,g=ge(e),v=pe(e);s(t,v,r)}function l(t,n,r,o){function a(e,n){e?o(e):(v=n,t.get(v.data,c))}function c(e,n){e?o(e):(y=n,he(y).has(E)?he(r).contains(Ye)?o(new we("O_CREATE and O_EXCLUSIVE are set, and the named file exists")):(m=y[E],m.type==Te&&he(r).contains(Pe)?o(new be("the named file is a directory and O_WRITE is set")):t.get(m.id,u)):he(r).contains(He)?h():o(new we("O_CREATE is not set and the named file does not exist")))}function u(t,e){if(t)o(t);else{var n=e;n.mode==Me?(x++,x>Ue?o(new Oe("too many symbolic links were encountered")):f(n.data)):l(void 0,n)}}function f(e){e=de(e),_=pe(e),E=ge(e),ze==E&&(he(r).contains(Pe)?o(new be("the named file is a directory and O_WRITE is set")):s(t,n,l)),s(t,_,a)}function l(t,e){t?o(t):(b=e,o(null,b))}function h(){b=new i(void 0,Be),b.nlinks+=1,t.put(b.id,b,d)}function d(e){e?o(e):(w=new Uint8Array(0),t.put(b.data,w,p))}function p(n){n?o(n):(y[E]=new e(b.id,Be),t.put(v.data,y,g))}function g(t){t?o(t):o(null,b)}n=de(n);var v,y,m,b,w,E=ge(n),_=pe(n),x=0;ze==E?he(r).contains(Pe)?o(new be("the named file is a directory and O_WRITE is set")):s(t,n,l):s(t,_,a)}function h(t,e,n,r,i,o,s){function a(t){t?s(t):s(null,i)}function c(e){e?s(e):t.put(l.id,l,a)}function u(r,a){if(r)s(r);else{h=a;var u=void 0!==o&&null!==o?o:e.position,f=Math.max(h.length,u+i),d=new Uint8Array(f);h&&d.set(h),d.set(n,u),void 0===o&&(e.position+=i),l.size=f,l.mtime=Date.now(),l.version+=1,t.put(l.data,d,c)}}function f(e,n){e?s(e):(l=n,t.get(l.data,u))}var l,h;t.get(e.id,f)}function d(t,e,n,r,i,o,s){function a(t,a){if(t)s(t);else{f=a;var c=void 0!==o&&null!==o?o:e.position;i=c+i>n.length?i-c:i;var u=f.subarray(c,c+i);n.set(u,r),void 0===o&&(e.position+=i),s(null,i)}}function c(e,n){e?s(e):(u=n,t.get(u.data,a))}var u,f;t.get(e.id,c)}function p(t,e,n){function r(t,e){t?n(t):n(null,e)}e=de(e),ge(e),s(t,e,r)}function g(t,e,n){function r(t,e){t?n(t):n(null,e)}t.get(e.id,r)}function v(t,e,n){function r(e,r){e?n(e):(a=r,t.get(a.data,i))}function i(e,r){e?n(e):(c=r,he(c).has(u)?t.get(c[u].id,o):n(new we("a component of the path does not name an existing file")))}function o(t,e){t?n(t):n(null,e)}e=de(e);var a,c,u=ge(e),f=pe(e);ze==u?s(t,e,o):s(t,f,r)}function y(t,e,n,r){function i(e,n){e?r(e):(y=n,y.nlinks+=1,t.put(y.id,y,r))}function o(e){e?r(e):t.get(v[m].id,i)}function a(e,n){e?r(e):(v=n,he(v).has(m)?r(new me("newpath resolves to an existing file")):(v[m]=p[l],t.put(g.data,v,o)))}function c(e,n){e?r(e):(g=n,t.get(g.data,a))}function u(e,n){e?r(e):(p=n,he(p).has(l)?s(t,b,c):r(new we("a component of either path prefix does not exist")))}function f(e,n){e?r(e):(d=n,t.get(d.data,u))}e=de(e);var l=ge(e),h=pe(e);n=de(n);var d,p,g,v,y,m=ge(n),b=pe(n);s(t,h,f)}function m(t,e,n){function r(e){e?n(e):(delete f[h],t.put(u.data,f,n))}function i(e){e?n(e):t.delete(l.data,r)}function o(e,o){e?n(e):(l=o,l.nlinks-=1,1>l.nlinks?t.delete(l.id,i):t.put(l.id,l,r))}function a(e,r){e?n(e):(f=r,he(f).has(h)?t.get(f[h].id,o):n(new we("a component of the path does not name an existing file")))}function c(e,r){e?n(e):(u=r,t.get(u.data,a))}e=de(e);var u,f,l,h=ge(e),d=pe(e);s(t,d,c)}function b(t,e,n){function r(t,e){if(t)n(t);else{a=e;var r=Object.keys(a);n(null,r)}}function i(e,i){e?n(e):(o=i,t.get(o.data,r))}e=de(e),ge(e);var o,a;s(t,e,i)}function w(t,n,r,o){function a(e,n){e?o(e):(l=n,t.get(l.data,c))}function c(t,e){t?o(t):(h=e,he(h).has(p)?o(new me("the destination path already exists")):u())}function u(){d=new i(void 0,Me),d.nlinks+=1,d.size=n.length,d.data=n,t.put(d.id,d,f)}function f(n){n?o(n):(h[p]=new e(d.id,Me),t.put(l.data,h,o))}r=de(r);var l,h,d,p=ge(r),g=pe(r);ze==p?o(new me("the destination path already exists")):s(t,g,a)}function E(t,e,n){function r(e,r){e?n(e):(a=r,t.get(a.data,i))}function i(e,r){e?n(e):(c=r,he(c).has(u)?t.get(c[u].id,o):n(new we("a component of the path does not name an existing file")))}function o(t,e){t?n(t):e.mode!=Me?n(new Ae("path not a symbolic link")):n(null,e.data)}e=de(e);var a,c,u=ge(e),f=pe(e);s(t,f,r)}function _(t,e,n,r){function i(e,n){e?r(e):n.mode==Te?r(new be("the named file is a directory")):(c=n,t.get(c.data,o))}function o(e,i){if(e)r(e);else{var o=new Uint8Array(n);i&&o.set(i.subarray(0,n)),t.put(c.data,o,a)}}function a(e){e?r(e):(c.size=n,c.mtime=Date.now(),c.version+=1,t.put(c.id,c,r))}e=de(e);var c;0>n?r(new Ae("length cannot be negative")):s(t,e,i)}function x(t,e,n,r){function i(e,n){e?r(e):n.mode==Te?r(new be("the named file is a directory")):(a=n,t.get(a.data,o))}function o(e,i){if(e)r(e);else{var o=new Uint8Array(n);i&&o.set(i.subarray(0,n)),t.put(a.data,o,s)}}function s(e){e?r(e):(a.size=n,a.mtime=Date.now(),a.version+=1,t.put(a.id,a,r))}var a;0>n?r(new Ae("length cannot be negative")):t.get(e.id,i)}function k(t,e,n,r,i){function o(e,o){e?i(e):(o.atime=n,o.mtime=r,t.put(o.id,o,i))}e=de(e),"number"!=typeof n||"number"!=typeof r?i(new Ae("atime and mtime must be number")):0>n||0>r?i(new Ae("atime and mtime must be positive integers")):s(t,e,o)}function A(t,e,n,r,i){function o(e,o){e?i(e):(o.atime=n,o.mtime=r,t.put(o.id,o,i))}"number"!=typeof n||"number"!=typeof r?i(new Ae("atime and mtime must be a number")):0>n||0>r?i(new Ae("atime and mtime must be positive integers")):t.get(e.id,o)}function S(t,e,n,r,i,o){e=de(e),"string"!=typeof n?o(new Ae("attribute name must be a string")):n?null!==i&&i!==Ze&&i!==Qe?o(new Ae("invalid flag, must be null, XATTR_CREATE or XATTR_REPLACE")):a(t,e,n,r,i,o):o(new Ae("attribute name cannot be an empty string"))}function O(t,e,n,r,i,o){"string"!=typeof n?o(new Ae("attribute name must be a string")):n?null!==i&&i!==Ze&&i!==Qe?o(new Ae("invalid flag, must be null, XATTR_CREATE or XATTR_REPLACE")):a(t,e,n,r,i,o):o(new Ae("attribute name cannot be an empty string"))}function R(t,e,n,r){function i(t,e){e?e.xattrs[n]:null,t?r(t):e.xattrs.hasOwnProperty(n)?r(null,e.xattrs[n]):r(new Ce("attribute does not exist"))}e=de(e),"string"!=typeof n?r(new Ae("attribute name must be a string")):n?s(t,e,i):r(new Ae("attribute name cannot be an empty string"))}function C(t,e,n,r){function i(t,e){e?e.xattrs[n]:null,t?r(t):e.xattrs.hasOwnProperty(n)?r(null,e.xattrs[n]):r(new Ce("attribute does not exist"))}"string"!=typeof n?r(new Ae("attribute name must be a string")):n?t.get(e.id,i):r(new Ae("attribute name cannot be an empty string"))}function D(t,e,n,r){function i(e,i){var o=i?i.xattrs:null;e?r(e):o.hasOwnProperty(n)?(delete i.xattrs[n],t.put(i.id,i,r)):r(new Ce("attribute does not exist"))}e=de(e),"string"!=typeof n?r(new Ae("attribute name must be a string")):n?s(t,e,i):r(new Ae("attribute name cannot be an empty string"))}function I(t,e,n,r){function i(e,i){e?r(e):i.xattrs.hasOwnProperty(n)?(delete i.xattrs[n],t.put(i.id,i,r)):r(new Ce("attribute does not exist"))}"string"!=typeof n?r(new Ae("attribute name must be a string")):n?t.get(e.id,i):r(new Ae("attribute name cannot be an empty string"))}function B(t){return he(Ke).has(t)?Ke[t]:null}function T(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 M(t,e){if(-1!==(""+t).indexOf("\0")){var n=Error("Path must be a string without null bytes.");return e(n),!1}return!0}function j(t){return"function"==typeof t?t:function(t){if(t)throw t}}function z(t,e){function n(){l.forEach(function(t){t.call(this)}.bind(a)),l=null}t=t||{},e=e||ye;var r=t.name||De,i=t.flags,o=t.provider||new Ve.Default(r),s=he(i).contains(Ie),a=this;a.readyState=Le,a.name=r,a.error=null;var u={},f=1;Object.defineProperty(this,"openFiles",{get:function(){return u}}),this.allocDescriptor=function(t){var e=f++;return u[e]=t,e},this.releaseDescriptor=function(t){delete u[t]};var l=[];this.queueOrRun=function(t){var e;return Fe==a.readyState?t.call(a):We==a.readyState?e=new Re("unknown error"):l.push(t),e},o.open(function(t,r){function i(t){a.provider=o,t?a.readyState=We:(a.readyState=Fe,n()),e(t,a)}if(t)return i(t);if(!s&&!r)return i(null);var u=o.getReadWriteContext();u.clear(function(t){return t?(i(t),void 0):(c(u,i),void 0)})})}function N(t,e,r,i,o){function s(e,r){if(e)o(e);else{var s;s=he(i).contains(Xe)?r.size:0;var a=new n(r.id,i,s),c=t.allocDescriptor(a);o(null,c)}}M(r,o)&&(i=B(i),i||o(new Ae("flags is not valid")),l(e,r,i,s))}function U(t,e,n){he(t.openFiles).has(e)?(t.releaseDescriptor(e),n(null)):n(new ke("invalid file descriptor"))}function F(t,e,n){function r(t){t?n(t):n(null)}M(e,n)&&u(t,e,r)}function L(t,e,n){function r(t){t?n(t):n(null)}M(e,n)&&f(t,e,r)}function W(t,e,n,r){function i(t,n){if(t)r(t);else{var i=new o(n,e);r(null,i)}}M(n,r)&&p(t,n,i)}function q(t,e,n,r){function i(e,n){if(e)r(e);else{var i=new o(n,t.name);r(null,i)}}var s=t.openFiles[n];s?g(e,s,i):r(new ke("invalid file descriptor"))}function P(t,e,n,r){function i(t){t?r(t):r(null)}M(e,r)&&M(n,r)&&y(t,e,n,i)}function H(t,e,n){function r(t){t?n(t):n(null)}M(e,n)&&m(t,e,r)}function Y(t,e,n,r,i,o,s,a){function c(t,e){t?a(t):a(null,e)}i=void 0===i?0:i,o=void 0===o?r.length-i:o;var u=t.openFiles[n];u?he(u.flags).contains(qe)?d(e,u,r,i,o,s,c):a(new ke("descriptor does not permit reading")):a(new ke("invalid file descriptor"))}function X(t,e,r,i,s){if(i=T(i,null,"r"),M(r,s)){var a=B(i.flag||"r");a||s(new Ae("flags is not valid")),l(e,r,a,function(r,c){if(r)return s(r);var u=new n(c.id,a,0),f=t.allocDescriptor(u);g(e,u,function(n,r){if(n)return s(n);var a=new o(r,t.name),c=a.size,l=new Uint8Array(c);d(e,u,l,0,c,0,function(e){if(e)return s(e);t.releaseDescriptor(f);var n;n="utf8"===i.encoding?new TextDecoder("utf-8").decode(l):l,s(null,n)})})})}}function K(t,e,n,r,i,o,s,a){function c(t,e){t?a(t):a(null,e)}i=void 0===i?0:i,o=void 0===o?r.length-i:o;var u=t.openFiles[n];u?he(u.flags).contains(Pe)?o>r.length-i?a(new Se("intput buffer is too small")):h(e,u,r,i,o,s,c):a(new ke("descriptor does not permit writing")):a(new ke("invalid file descriptor"))}function Z(t,e,r,i,o,s){if(o=T(o,"utf8","w"),M(r,s)){var a=B(o.flag||"w");a||s(new Ae("flags is not valid")),i=i||"","number"==typeof i&&(i=""+i),"string"==typeof i&&"utf8"===o.encoding&&(i=new TextEncoder("utf-8").encode(i)),l(e,r,a,function(r,o){if(r)return s(r);var c=new n(o.id,a,0),u=t.allocDescriptor(c);h(e,c,i,0,i.length,0,function(e){return e?s(e):(t.releaseDescriptor(u),s(null),void 0)})})}}function Q(t,e,r,i,o,s){if(o=T(o,"utf8","a"),M(r,s)){var a=B(o.flag||"a");a||s(new Ae("flags is not valid")),i=i||"","number"==typeof i&&(i=""+i),"string"==typeof i&&"utf8"===o.encoding&&(i=new TextEncoder("utf-8").encode(i)),l(e,r,a,function(r,o){if(r)return s(r);var c=new n(o.id,a,o.size),u=t.allocDescriptor(c);h(e,c,i,0,i.length,c.position,function(e){return e?s(e):(t.releaseDescriptor(u),s(null),void 0)})})}}function V(t,e,n,r){function i(t,e){t?r(t):r(null,e)}M(e,r)&&R(t,e,n,i)}function G(t,e,n,r,i){function o(t,e){t?i(t):i(null,e)}var s=t.openFiles[n];s?C(e,s,r,o):i(new ke("invalid file descriptor"))}function $(t,e,n,r,i,o){function s(t){t?o(t):o(null)}M(e,o)&&S(t,e,n,r,i,s)}function J(t,e,n,r,i,o,s){function a(t){t?s(t):s(null)}var c=t.openFiles[n];c?he(c.flags).contains(Pe)?O(e,c,r,i,o,a):s(new ke("descriptor does not permit writing")):s(new ke("invalid file descriptor"))}function te(t,e,n,r){function i(t){t?r(t):r(null)}M(e,r)&&D(t,e,n,i)}function ee(t,e,n,r,i){function o(t){t?i(t):i(null)}var s=t.openFiles[n];s?he(s.flags).contains(Pe)?I(e,s,r,o):i(new ke("descriptor does not permit writing")):i(new ke("invalid file descriptor"))}function ne(t,e,n,r,i,o){function s(t,e){t?o(t):0>e.size+r?o(new Ae("resulting file offset would be negative")):(a.position=e.size+r,o(null,a.position))}var a=t.openFiles[n];a||o(new ke("invalid file descriptor")),"SET"===i?0>r?o(new Ae("resulting file offset would be negative")):(a.position=r,o(null,a.position)):"CUR"===i?0>a.position+r?o(new Ae("resulting file offset would be negative")):(a.position+=r,o(null,a.position)):"END"===i?g(e,a,s):o(new Ae("whence argument is not a proper value"))}function re(t,e,n){function r(t,e){t?n(t):n(null,e)}M(e,n)&&b(t,e,r)}function ie(t,e,n,r,i){function o(t){t?i(t):i(null)}if(M(e,i)){var s=Date.now();n=n?n:s,r=r?r:s,k(t,e,n,r,o)}}function oe(t,e,n,r,i,o){function s(t){t?o(t):o(null)}var a=Date.now();r=r?r:a,i=i?i:a;var c=t.openFiles[n];c?he(c.flags).contains(Pe)?A(e,c,r,i,s):o(new ke("descriptor does not permit writing")):o(new ke("invalid file descriptor"))}function se(t,e,n,r){function i(t){t?r(t):r(null)}function o(n){n?r(n):m(t,e,i)}M(e,r)&&M(n,r)&&y(t,e,n,o)}function ae(t,e,n,r){function i(t){t?r(t):r(null)}M(e,r)&&M(n,r)&&w(t,e,n,i)}function ce(t,e,n){function r(t,e){t?n(t):n(null,e)}M(e,n)&&E(t,e,r)}function ue(t,e,n,r){function i(e,n){if(e)r(e);else{var i=new o(n,t.name);r(null,i)}}M(n,r)&&v(e,n,i)}function fe(t,e,n,r){function i(t){t?r(t):r(null)}M(e,r)&&_(t,e,n,i)}function le(t,e,n,r,i){function o(t){t?i(t):i(null)}var s=t.openFiles[n];s?he(s.flags).contains(Pe)?x(e,s,r,o):i(new ke("descriptor does not permit writing")):i(new ke("invalid file descriptor"))}var he=t("nodash");t("encoding");var de=t("src/path").normalize,pe=t("src/path").dirname,ge=t("src/path").basename,ve=t("src/shared").guid;t("src/shared").hash;var ye=t("src/shared").nop,me=t("src/error").EExists,be=t("src/error").EIsDirectory,we=t("src/error").ENoEntry,Ee=t("src/error").EBusy,_e=t("src/error").ENotEmpty,xe=t("src/error").ENotDirectory,ke=t("src/error").EBadFileDescriptor;t("src/error").ENotImplemented,t("src/error").ENotMounted;var Ae=t("src/error").EInvalid,Se=t("src/error").EIO,Oe=t("src/error").ELoop,Re=t("src/error").EFileSystemError,Ce=t("src/error").ENoAttr,De=t("src/constants").FILE_SYSTEM_NAME,Ie=t("src/constants").FS_FORMAT,Be=t("src/constants").MODE_FILE,Te=t("src/constants").MODE_DIRECTORY,Me=t("src/constants").MODE_SYMBOLIC_LINK,je=t("src/constants").MODE_META,ze=t("src/constants").ROOT_DIRECTORY_NAME,Ne=t("src/constants").SUPER_NODE_ID,Ue=t("src/constants").SYMLOOP_MAX,Fe=t("src/constants").FS_READY,Le=t("src/constants").FS_PENDING,We=t("src/constants").FS_ERROR,qe=t("src/constants").O_READ,Pe=t("src/constants").O_WRITE,He=t("src/constants").O_CREATE,Ye=t("src/constants").O_EXCLUSIVE;t("src/constants").O_TRUNCATE;var Xe=t("src/constants").O_APPEND,Ke=t("src/constants").O_FLAGS,Ze=t("src/constants").XATTR_CREATE,Qe=t("src/constants").XATTR_REPLACE,Ve=t("src/providers/providers"),Ge=t("src/adapters/adapters");return z.providers=Ve,z.adapters=Ge,z.prototype.open=function(t,e,n,r){r=j(arguments[arguments.length-1]);var i=this,o=i.queueOrRun(function(){var n=i.provider.getReadWriteContext();N(i,n,t,e,r)});o&&r(o)},z.prototype.close=function(t,e){U(this,t,j(e))},z.prototype.mkdir=function(t,e,n){"function"==typeof e&&(n=e),n=j(n);var r=this,i=r.queueOrRun(function(){var e=r.provider.getReadWriteContext();F(e,t,n)});i&&n(i)},z.prototype.rmdir=function(t,e){e=j(e);var n=this,r=n.queueOrRun(function(){var r=n.provider.getReadWriteContext();L(r,t,e)});r&&e(r)},z.prototype.stat=function(t,e){e=j(e);var n=this,r=n.queueOrRun(function(){var r=n.provider.getReadWriteContext();W(r,n.name,t,e)});r&&e(r)},z.prototype.fstat=function(t,e){e=j(e);var n=this,r=n.queueOrRun(function(){var r=n.provider.getReadWriteContext();q(n,r,t,e)});r&&e(r)},z.prototype.link=function(t,e,n){n=j(n);var r=this,i=r.queueOrRun(function(){var i=r.provider.getReadWriteContext();P(i,t,e,n)});i&&n(i)},z.prototype.unlink=function(t,e){e=j(e);var n=this,r=n.queueOrRun(function(){var r=n.provider.getReadWriteContext();H(r,t,e)});r&&e(r)},z.prototype.read=function(t,e,n,r,i,o){function s(t,n){o(t,n||0,e)}o=j(o);var a=this,c=a.queueOrRun(function(){var o=a.provider.getReadWriteContext();Y(a,o,t,e,n,r,i,s)});c&&o(c)},z.prototype.readFile=function(t,e){var n=j(arguments[arguments.length-1]),r=this,i=r.queueOrRun(function(){var i=r.provider.getReadWriteContext();X(r,i,t,e,n)});i&&n(i)},z.prototype.write=function(t,e,n,r,i,o){o=j(o);var s=this,a=s.queueOrRun(function(){var a=s.provider.getReadWriteContext();K(s,a,t,e,n,r,i,o)});a&&o(a)},z.prototype.writeFile=function(t,e,n){var r=j(arguments[arguments.length-1]),i=this,o=i.queueOrRun(function(){var o=i.provider.getReadWriteContext();Z(i,o,t,e,n,r)});o&&r(o)},z.prototype.appendFile=function(t,e,n){var r=j(arguments[arguments.length-1]),i=this,o=i.queueOrRun(function(){var o=i.provider.getReadWriteContext();Q(i,o,t,e,n,r)});o&&r(o)},z.prototype.lseek=function(t,e,n,r){r=j(r);var i=this,o=i.queueOrRun(function(){var o=i.provider.getReadWriteContext();ne(i,o,t,e,n,r)});o&&r(o)},z.prototype.readdir=function(t,e){e=j(e);var n=this,r=n.queueOrRun(function(){var r=n.provider.getReadWriteContext();re(r,t,e)});r&&e(r)},z.prototype.rename=function(t,e,n){n=j(n);var r=this,i=r.queueOrRun(function(){var i=r.provider.getReadWriteContext();se(i,t,e,n)});i&&n(i)},z.prototype.readlink=function(t,e){e=j(e);var n=this,r=n.queueOrRun(function(){var r=n.provider.getReadWriteContext();ce(r,t,e)});r&&e(r)},z.prototype.symlink=function(t,e){var n=j(arguments[arguments.length-1]),r=this,i=r.queueOrRun(function(){var i=r.provider.getReadWriteContext();ae(i,t,e,n)});i&&n(i)},z.prototype.lstat=function(t,e){e=j(e);var n=this,r=n.queueOrRun(function(){var r=n.provider.getReadWriteContext();ue(n,r,t,e)});r&&e(r)},z.prototype.truncate=function(t,e,n){"function"==typeof e&&(n=e,e=0),n=j(n),e="number"==typeof e?e:0;var r=this,i=r.queueOrRun(function(){var i=r.provider.getReadWriteContext();fe(i,t,e,n)});i&&n(i)},z.prototype.ftruncate=function(t,e,n){n=j(n);var r=this,i=r.queueOrRun(function(){var i=r.provider.getReadWriteContext();le(r,i,t,e,n)});i&&n(i)},z.prototype.utimes=function(t,e,n,r){r=j(r);var i=this,o=i.queueOrRun(function(){var o=i.provider.getReadWriteContext();ie(o,t,e,n,r)});o&&r(o)},z.prototype.futimes=function(t,e,n,r){r=j(r);var i=this,o=i.queueOrRun(function(){var o=i.provider.getReadWriteContext();oe(i,o,t,e,n,r)});o&&r(o)},z.prototype.setxattr=function(t,e,n,r,i){i=j(arguments[arguments.length-1]);var o="function"!=typeof r?r:null,s=this,a=s.queueOrRun(function(){var r=s.provider.getReadWriteContext();$(r,t,e,n,o,i)});a&&i(a)},z.prototype.getxattr=function(t,e,n){n=j(n);var r=this,i=r.queueOrRun(function(){var i=r.provider.getReadWriteContext();V(i,t,e,n)});i&&n(i)},z.prototype.fsetxattr=function(t,e,n,r,i){i=j(arguments[arguments.length-1]);var o="function"!=typeof r?r:null,s=this,a=s.queueOrRun(function(){var r=s.provider.getReadWriteContext();J(s,r,t,e,n,o,i)});a&&i(a)},z.prototype.fgetxattr=function(t,e,n){n=j(n);var r=this,i=r.queueOrRun(function(){var i=r.provider.getReadWriteContext();G(r,i,t,e,n)});i&&n(i)},z.prototype.removexattr=function(t,e,n){n=j(n);var r=this,i=r.queueOrRun(function(){var i=r.provider.getReadWriteContext();te(i,t,e,n)});i&&n(i)},z.prototype.fremovexattr=function(t,e,n){n=j(n);var r=this,i=r.queueOrRun(function(){var i=r.provider.getReadWriteContext();ee(r,i,t,e,n)});i&&n(i)},z}),n("src/index",["require","src/fs","src/fs","src/path"],function(t){return t("src/fs"),{FileSystem:t("src/fs"),Path:t("src/path")}});var i=e("src/index");return i}); |