/*! filer 2014-03-08 */ (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 o(t,e){return b.call(t,e)}function i(t,e){var n,r,o,i,s,c,a,u,f,p,l=e&&e.split("/"),d=m.map,h=d&&d["*"]||{};if(t&&"."===t.charAt(0))if(e){for(l=l.slice(0,l.length-1),t=l.concat(t.split("/")),u=0;t.length>u;u+=1)if(p=t[u],"."===p)t.splice(u,1),u-=1;else if(".."===p){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((l||h)&&d){for(n=t.split("/"),u=n.length;u>0;u-=1){if(r=n.slice(0,u).join("/"),l)for(f=l.length;f>0;f-=1)if(o=d[l.slice(0,f).join("/")],o&&(o=o[r])){i=o,s=u;break}if(i)break;!c&&h&&h[r]&&(c=h[r],a=u)}!i&&c&&(i=c,s=a),i&&(n.splice(0,s,i),t=n.join("/"))}return t}function s(t,e){return function(){return d.apply(r,w.call(arguments,0).concat([t,e]))}}function c(t){return function(e){return i(e,t)}}function a(t){return function(e){g[t]=e}}function u(t){if(o(v,t)){var e=v[t];delete v[t],E[t]=!0,l.apply(r,e)}if(!o(g,t)&&!o(E,t))throw Error("No "+t);return g[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 p(t){return function(){return m&&m.config&&m.config[t]||{}}}var l,d,h,y,g={},v={},m={},E={},b=Object.prototype.hasOwnProperty,w=[].slice;h=function(t,e){var n,r=f(t),o=r[0];return t=r[1],o&&(o=i(o,e),n=u(o)),o?t=n&&n.normalize?n.normalize(t,c(e)):i(t,e):(t=i(t,e),r=f(t),o=r[0],t=r[1],o&&(n=u(o))),{f:o?o+"!"+t:t,n:t,pr:o,p:n}},y={require:function(t){return s(t)},exports:function(t){var e=g[t];return e!==void 0?e:g[t]={}},module:function(t){return{id:t,uri:"",exports:g[t],config:p(t)}}},l=function(t,e,n,i){var c,f,p,l,d,m,b=[];if(i=i||t,"function"==typeof n){for(e=!e.length&&n.length?["require","exports","module"]:e,d=0;e.length>d;d+=1)if(l=h(e[d],i),f=l.f,"require"===f)b[d]=y.require(t);else if("exports"===f)b[d]=y.exports(t),m=!0;else if("module"===f)c=b[d]=y.module(t);else if(o(g,f)||o(v,f)||o(E,f))b[d]=u(f);else{if(!l.p)throw Error(t+" missing "+f);l.p.load(l.n,s(i,!0),a(f),{}),b[d]=g[f]}p=n.apply(g[t],b),t&&(c&&c.exports!==r&&c.exports!==g[t]?g[t]=c.exports:p===r&&m||(g[t]=p))}else t&&(g[t]=n)},t=e=d=function(t,e,n,o,i){return"string"==typeof t?y[t]?y[t](e):u(h(t,e).f):(t.splice||(m=t,e.splice?(t=e,e=n,n=null):t=r),e=e||function(){},"function"==typeof n&&(n=o,o=i),o?l(r,t,e,n):setTimeout(function(){l(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=[]),o(g,t)||o(v,t)||(v[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:g(t).length}function n(t){return t}function r(t,e,n){var r,o;if(null!=t)if(u&&t.forEach===u)t.forEach(e,n);else if(t.length===+t.length){for(r=0,o=t.length;o>r;r++)if(e.call(n,t[r],r,t)===y)return}else{var i=i(t);for(r=0,o=i.length;o>r;r++)if(e.call(n,t[i[r]],i[r],t)===y)return}}function o(t,e,o){e||(e=n);var i=!1;return null==t?i:p&&t.some===p?t.some(e,o):(r(t,function(t,n,r){return i||(i=e.call(o,t,n,r))?y:void 0}),!!i)}function i(t,e){return null==t?!1:f&&t.indexOf===f?-1!=t.indexOf(e):o(t,function(t){return t===e})}function s(t){this.value=t}function c(t){return t&&"object"==typeof t&&!Array.isArray(t)&&d.call(t,"__wrapped__")?t:new s(t)}var a=Array.prototype,u=a.forEach,f=a.indexOf,p=a.some,l=Object.prototype,d=l.hasOwnProperty,h=Object.keys,y={},g=h||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 i(this.value,t)},s.prototype.size=function(){return e(this.value)},c}),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?j: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 o(t){var e=0;this.emit=function(){var n,r=j;for(n=0;arguments.length>n;++n)r=Number(arguments[n]),t[e++]=r;return r}}function i(t){function n(t){for(var n=[],r=0,o=t.length;t.length>r;){var i=t.charCodeAt(r);if(e(i,55296,57343))if(e(i,56320,57343))n.push(65533);else if(r===o-1)n.push(65533);else{var s=t.charCodeAt(r+1);if(e(s,56320,57343)){var c=1023&i,a=1023&s;r+=1,n.push(65536+(c<<10)+a)}else n.push(65533)}else n.push(i);r+=1}return n}var r=0,o=n(t);this.offset=function(t){if(r+=t,0>r)throw Error("Seeking past start of the buffer");if(r>o.length)throw Error("Seeking past EOF")},this.get=function(){return r>=o.length?z:o[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 c(t){this.name="EncodingError",this.message=t,this.code=0}function a(t,e){if(t)throw new c("Decoder error");return e||65533}function u(t){throw new c("The code point "+t+" could not be encoded.")}function f(t){return t=(t+"").trim().toLowerCase(),Object.prototype.hasOwnProperty.call(W,t)?W[t]:null}function p(t,e){return(e||[])[t]||null}function l(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 h(t){if(t>39419&&189e3>t||t>1237575)return null;var e,n=0,r=0,o=d("gb18030");for(e=0;o.length>e;++e){var i=o[e];if(!(t>=i[0]))break;n=i[0],r=i[1]}return r+t-n}function y(t){var e,n=0,r=0,o=d("gb18030");for(e=0;o.length>e;++e){var i=o[e];if(!(t>=i[1]))break;n=i[1],r=i[0]}return r+t-n}function g(t){var n=t.fatal,r=0,o=0,i=0,s=0;this.decode=function(t){var c=t.get();if(c===j)return 0!==o?a(n):z;if(t.offset(1),0===o){if(e(c,0,127))return c;if(e(c,194,223))o=1,s=128,r=c-192;else if(e(c,224,239))o=2,s=2048,r=c-224;else{if(!e(c,240,244))return a(n);o=3,s=65536,r=c-240}return r*=Math.pow(64,o),null}if(!e(c,128,191))return r=0,o=0,i=0,s=0,t.offset(-1),a(n);if(i+=1,r+=(c-128)*Math.pow(64,o-i),i!==o)return null;var u=r,f=s;return r=0,o=0,i=0,s=0,e(u,f,1114111)&&!e(u,55296,57343)?u:a(n)}}function v(t){t.fatal,this.encode=function(t,r){var o=r.get();if(o===z)return j;if(r.offset(1),e(o,55296,57343))return u(o);if(e(o,0,127))return t.emit(o);var i,s;e(o,128,2047)?(i=1,s=192):e(o,2048,65535)?(i=2,s=224):e(o,65536,1114111)&&(i=3,s=240);for(var c=t.emit(n(o,Math.pow(64,i))+s);i>0;){var a=n(o,Math.pow(64,i-1));c=t.emit(128+a%64),i-=1}return c}}function m(t,n){var r=n.fatal;this.decode=function(n){var o=n.get();if(o===j)return z;if(n.offset(1),e(o,0,127))return o;var i=t[o-128];return null===i?a(r):i}}function E(t,n){n.fatal,this.encode=function(n,r){var o=r.get();if(o===z)return j;if(r.offset(1),e(o,0,127))return n.emit(o);var i=l(o,t);return null===i&&u(o),n.emit(i+128)}}function b(t,n){var r=n.fatal,o=0,i=0,s=0;this.decode=function(n){var c=n.get();if(c===j&&0===o&&0===i&&0===s)return z;c!==j||0===o&&0===i&&0===s||(o=0,i=0,s=0,a(r)),n.offset(1);var u;if(0!==s)return u=null,e(c,48,57)&&(u=h(10*(126*(10*(o-129)+(i-48))+(s-129))+c-48)),o=0,i=0,s=0,null===u?(n.offset(-3),a(r)):u;if(0!==i)return e(c,129,254)?(s=c,null):(n.offset(-2),o=0,i=0,a(r));if(0!==o){if(e(c,48,57)&&t)return i=c,null;var f=o,l=null;o=0;var y=127>c?64:65;return(e(c,64,126)||e(c,128,254))&&(l=190*(f-129)+(c-y)),u=null===l?null:p(l,d("gbk")),null===l&&n.offset(-1),null===u?a(r):u}return e(c,0,127)?c:128===c?8364:e(c,129,254)?(o=c,null):a(r)}}function w(t,r){r.fatal,this.encode=function(r,o){var i=o.get();if(i===z)return j;if(o.offset(1),e(i,0,127))return r.emit(i);var s=l(i,d("gbk"));if(null!==s){var c=n(s,190)+129,a=s%190,f=63>a?64:65;return r.emit(c,a+f)}if(null===s&&!t)return u(i);s=y(i);var p=n(n(n(s,10),126),10);s-=10*126*10*p;var h=n(n(s,10),126);s-=126*10*h;var g=n(s,10),v=s-10*g;return r.emit(p+129,h+48,g+129,v+48)}}function x(t){var n=t.fatal,r=!1,o=0;this.decode=function(t){var i=t.get();if(i===j&&0===o)return z;if(i===j&&0!==o)return o=0,a(n);if(t.offset(1),126===o)return o=0,123===i?(r=!0,null):125===i?(r=!1,null):126===i?126:10===i?null:(t.offset(-1),a(n));if(0!==o){var s=o;o=0;var c=null;return e(i,33,126)&&(c=p(190*(s-1)+(i+63),d("gbk"))),10===i&&(r=!1),null===c?a(n):c}return 126===i?(o=126,null):r?e(i,32,127)?(o=i,null):(10===i&&(r=!1),a(n)):e(i,0,127)?i:a(n)}}function _(t){t.fatal;var r=!1;this.encode=function(t,o){var i=o.get();if(i===z)return j;if(o.offset(1),e(i,0,127)&&r)return o.offset(-1),r=!1,t.emit(126,125);if(126===i)return t.emit(126,126);if(e(i,0,127))return t.emit(i);if(!r)return o.offset(-1),r=!0,t.emit(126,123);var s=l(i,d("gbk"));if(null===s)return u(i);var c=n(s,190)+1,a=s%190-63;return e(c,33,126)&&e(a,33,126)?t.emit(c,a):u(i)}}function A(t){var n=t.fatal,r=0,o=null;this.decode=function(t){if(null!==o){var i=o;return o=null,i}var s=t.get();if(s===j&&0===r)return z;if(s===j&&0!==r)return r=0,a(n);if(t.offset(1),0!==r){var c=r,u=null;r=0;var f=127>s?64:98;if((e(s,64,126)||e(s,161,254))&&(u=157*(c-129)+(s-f)),1133===u)return o=772,202;if(1135===u)return o=780,202;if(1164===u)return o=772,234;if(1166===u)return o=780,234;var l=null===u?null:p(u,d("big5"));return null===u&&t.offset(-1),null===l?a(n):l}return e(s,0,127)?s:e(s,129,254)?(r=s,null):a(n)}}function k(t){t.fatal,this.encode=function(t,r){var o=r.get();if(o===z)return j;if(r.offset(1),e(o,0,127))return t.emit(o);var i=l(o,d("big5"));if(null===i)return u(o);var s=n(i,157)+129,c=i%157,a=63>c?64:98;return t.emit(s,c+a)}}function S(t){var n=t.fatal,r=0,o=0;this.decode=function(t){var i=t.get();if(i===j)return 0===r&&0===o?z:(r=0,o=0,a(n));t.offset(1);var s,c;return 0!==o?(s=o,o=0,c=null,e(s,161,254)&&e(i,161,254)&&(c=p(94*(s-161)+i-161,d("jis0212"))),e(i,161,254)||t.offset(-1),null===c?a(n):c):142===r&&e(i,161,223)?(r=0,65377+i-161):143===r&&e(i,161,254)?(r=0,o=i,null):0!==r?(s=r,r=0,c=null,e(s,161,254)&&e(i,161,254)&&(c=p(94*(s-161)+i-161,d("jis0208"))),e(i,161,254)||t.offset(-1),null===c?a(n):c):e(i,0,127)?i:142===i||143===i||e(i,161,254)?(r=i,null):a(n)}}function O(t){t.fatal,this.encode=function(t,r){var o=r.get();if(o===z)return j;if(r.offset(1),e(o,0,127))return t.emit(o);if(165===o)return t.emit(92);if(8254===o)return t.emit(126);if(e(o,65377,65439))return t.emit(142,o-65377+161);var i=l(o,d("jis0208"));if(null===i)return u(o);var s=n(i,94)+161,c=i%94+161;return t.emit(s,c)}}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},o=r.ASCII,i=!1,s=0;this.decode=function(t){var c=t.get();switch(c!==j&&t.offset(1),o){default:case r.ASCII:return 27===c?(o=r.escape_start,null):e(c,0,127)?c:c===j?z:a(n);case r.escape_start:return 36===c||40===c?(s=c,o=r.escape_middle,null):(c!==j&&t.offset(-1),o=r.ASCII,a(n));case r.escape_middle:var u=s;return s=0,36!==u||64!==c&&66!==c?36===u&&40===c?(o=r.escape_final,null):40!==u||66!==c&&74!==c?40===u&&73===c?(o=r.Katakana,null):(c===j?t.offset(-1):t.offset(-2),o=r.ASCII,a(n)):(o=r.ASCII,null):(i=!1,o=r.lead,null);case r.escape_final:return 68===c?(i=!0,o=r.lead,null):(c===j?t.offset(-2):t.offset(-3),o=r.ASCII,a(n));case r.lead:return 10===c?(o=r.ASCII,a(n,10)):27===c?(o=r.escape_start,null):c===j?z:(s=c,o=r.trail,null);case r.trail:if(o=r.lead,c===j)return a(n);var f=null,l=94*(s-33)+c-33;return e(s,33,126)&&e(c,33,126)&&(f=i===!1?p(l,d("jis0208")):p(l,d("jis0212"))),null===f?a(n):f;case r.Katakana:return 27===c?(o=r.escape_start,null):e(c,33,95)?65377+c-33:c===j?z:a(n)}}}function C(t){t.fatal;var r={ASCII:0,lead:1,Katakana:2},o=r.ASCII;this.encode=function(t,i){var s=i.get();if(s===z)return j;if(i.offset(1),(e(s,0,127)||165===s||8254===s)&&o!==r.ASCII)return i.offset(-1),o=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)&&o!==r.Katakana)return i.offset(-1),o=r.Katakana,t.emit(27,40,73);if(e(s,65377,65439))return t.emit(s-65377-33);if(o!==r.lead)return i.offset(-1),o=r.lead,t.emit(27,36,66);var c=l(s,d("jis0208"));if(null===c)return u(s);var a=n(c,94)+33,f=c%94+33;return t.emit(a,f)}}function T(t){var n=t.fatal,r=0;this.decode=function(t){var o=t.get();if(o===j&&0===r)return z;if(o===j&&0!==r)return r=0,a(n);if(t.offset(1),0!==r){var i=r;if(r=0,e(o,64,126)||e(o,128,252)){var s=127>o?64:65,c=160>i?129:193,u=p(188*(i-c)+o-s,d("jis0208"));return null===u?a(n):u}return t.offset(-1),a(n)}return e(o,0,128)?o:e(o,161,223)?65377+o-161:e(o,129,159)||e(o,224,252)?(r=o,null):a(n)}}function D(t){t.fatal,this.encode=function(t,r){var o=r.get();if(o===z)return j;if(r.offset(1),e(o,0,128))return t.emit(o);if(165===o)return t.emit(92);if(8254===o)return t.emit(126);if(e(o,65377,65439))return t.emit(o-65377+161);var i=l(o,d("jis0208"));if(null===i)return u(o);var s=n(i,188),c=31>s?129:193,a=i%188,f=63>a?64:65;return t.emit(s+c,a+f)}}function I(t){var n=t.fatal,r=0;this.decode=function(t){var o=t.get();if(o===j&&0===r)return z;if(o===j&&0!==r)return r=0,a(n);if(t.offset(1),0!==r){var i=r,s=null;if(r=0,e(i,129,198)){var c=178*(i-129);e(o,65,90)?s=c+o-65:e(o,97,122)?s=c+26+o-97:e(o,129,254)&&(s=c+26+26+o-129)}e(i,199,253)&&e(o,161,254)&&(s=12460+94*(i-199)+(o-161));var u=null===s?null:p(s,d("euc-kr"));return null===s&&t.offset(-1),null===u?a(n):u}return e(o,0,127)?o:e(o,129,253)?(r=o,null):a(n)}}function N(t){t.fatal,this.encode=function(t,r){var o=r.get();if(o===z)return j;if(r.offset(1),e(o,0,127))return t.emit(o);var i=l(o,d("euc-kr"));if(null===i)return u(o);var s,c;if(12460>i){s=n(i,178)+129,c=i%178;var a=26>c?65:52>c?71:77;return t.emit(s,c+a)}return i-=12460,s=n(i,94)+199,c=i%94+161,t.emit(s,c)}}function M(t,n){var r=n.fatal,o=null,i=null;this.decode=function(n){var s=n.get();if(s===j&&null===o&&null===i)return z;if(s===j&&(null!==o||null!==i))return a(r);if(n.offset(1),null===o)return o=s,null;var c;if(c=t?(o<<8)+s:(s<<8)+o,o=null,null!==i){var u=i;return i=null,e(c,56320,57343)?65536+1024*(u-55296)+(c-56320):(n.offset(-2),a(r))}return e(c,55296,56319)?(i=c,null):e(c,56320,57343)?a(r):c}}function B(t,r){r.fatal,this.encode=function(r,o){function i(e){var n=e>>8,o=255&e;return t?r.emit(n,o):r.emit(o,n)}var s=o.get();if(s===z)return j;if(o.offset(1),e(s,55296,57343)&&u(s),65535>=s)return i(s);var c=n(s-65536,1024)+55296,a=(s-65536)%1024+56320;return i(c),i(a)}}function F(t,e){if(!(this instanceof F))throw new TypeError("Constructor cannot be called as a function");if(t=t?t+"":q,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 U(t,e){if(!(this instanceof U))throw new TypeError("Constructor cannot be called as a function");if(t=t?t+"":q,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 j=-1,z=-1;c.prototype=Error.prototype;var P=[{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"}],L={},W={};P.forEach(function(t){t.encodings.forEach(function(t){L[t.name]=t,t.labels.forEach(function(e){W[e]=t})})}),L["utf-8"].getEncoder=function(t){return new v(t)},L["utf-8"].getDecoder=function(t){return new g(t)},function(){P.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 E(e,t)}})})}(),L.gbk.getEncoder=function(t){return new w(!1,t)},L.gbk.getDecoder=function(t){return new b(!1,t)},L.gb18030.getEncoder=function(t){return new w(!0,t)},L.gb18030.getDecoder=function(t){return new b(!0,t)},L["hz-gb-2312"].getEncoder=function(t){return new _(t)},L["hz-gb-2312"].getDecoder=function(t){return new x(t)},L.big5.getEncoder=function(t){return new k(t)},L.big5.getDecoder=function(t){return new A(t)},L["euc-jp"].getEncoder=function(t){return new O(t)},L["euc-jp"].getDecoder=function(t){return new S(t)},L["iso-2022-jp"].getEncoder=function(t){return new C(t)},L["iso-2022-jp"].getDecoder=function(t){return new R(t)},L.shift_jis.getEncoder=function(t){return new D(t)},L.shift_jis.getDecoder=function(t){return new T(t)},L["euc-kr"].getEncoder=function(t){return new N(t)},L["euc-kr"].getDecoder=function(t){return new I(t)},L["utf-16le"].getEncoder=function(t){return new B(!1,t)},L["utf-16le"].getDecoder=function(t){return new M(!1,t)},L["utf-16be"].getEncoder=function(t){return new B(!0,t)},L["utf-16be"].getDecoder=function(t){return new M(!0,t)};var q="utf-8";F.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 o(n),s=new i(t);s.get()!==z;)this._encoder.encode(r,s);if(!this._streaming){var c;do c=this._encoder.encode(r,s);while(c!==j);this._encoder=null}return new Uint8Array(n)}},U.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,o=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),i=new r(o),c=new s;i.get()!==j;)n=this._decoder.decode(i),null!==n&&n!==z&&c.emit(n);if(!this._streaming){do n=this._decoder.decode(i),null!==n&&n!==z&&c.emit(n);while(n!==z&&i.get()!=j);this._decoder=null}var a=c.string();return!this._BOMseen&&a.length&&(this._BOMseen=!0,-1!==["utf-8","utf-16le","utf-16be"].indexOf(this.encoding)&&65279===a.charCodeAt(0)&&(a=a.substring(1))),a}},t.TextEncoder=t.TextEncoder||F,t.TextDecoder=t.TextDecoder||U}(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 o=t[r];"."===o?t.splice(r,1):".."===o?(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 o=r>=0?arguments[r]:"/";"string"==typeof o&&o&&(e=o+"/"+e,n="/"===o.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 o(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("/")),o=n(e.split("/")),i=Math.min(r.length,o.length),s=i,c=0;i>c;c++)if(r[c]!==o[c]){s=c;break}for(var a=[],c=s;r.length>c;c++)a.push("..");return a=a.concat(o.slice(s)),a.join("/")}function i(t){var e=p(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=p(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),""===n?"/":n}function c(t){return p(t)[3]}function a(t){return"/"===t.charAt(0)?!0:!1}function u(t){return-1!==(""+t).indexOf("\0")?!0:!1}var f=/^(\/?)([\s\S]+\/(?!$)|\/)?((?:\.{1,2}$|[\s\S]+?)?(\.[^.\/]*)?)$/,p=function(t){var e=f.exec(t);return[e[1]||"",e[2]||"",e[3]||"",e[4]||""]};return{normalize:n,resolve:e,join:r,relative:o,sep:"/",delimiter:":",dirname:i,basename:s,extname:c,isAbsolute:a,isNull:u}});var r=r||function(t,e){var n={},r=n.lib={},o=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)}}}(),i=r.WordArray=o.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:4*t.length},toString:function(t){return(t||c).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 o=0;t>o;o++)e[r+o>>>2]|=(255&n[o>>>2]>>>24-8*(o%4))<<24-8*((r+o)%4);else if(n.length>65535)for(o=0;t>o;o+=4)e[r+o>>>2]=n[o>>>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=o.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 i.create(n,e)}}),s=n.enc={},c=s.Hex={stringify:function(t){for(var e=t.words,t=t.sigBytes,n=[],r=0;t>r;r++){var o=255&e[r>>>2]>>>24-8*(r%4);n.push((o>>>4).toString(16)),n.push((15&o).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 i.create(n,e/2)}},a=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 i.create(n,e)}},u=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(a.stringify(t)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(t){return a.parse(unescape(encodeURIComponent(t)))}},f=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=i.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,o=n.sigBytes,s=this.blockSize,c=o/(4*s),c=e?t.ceil(c):t.max((0|c)-this._minBufferSize,0),e=c*s,o=t.min(4*e,o);if(e){for(var a=0;e>a;a+=s)this._doProcessBlock(r,a);a=r.splice(0,e),n.sigBytes-=o}return i.create(a,o)},clone:function(){var t=o.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 p.HMAC.create(t,n).finalize(e)}}});var p=n.algo={};return n}(Math);(function(t){var e=r,n=e.lib,o=n.WordArray,n=n.Hasher,i=e.algo,s=[],c=[];(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,o=0;64>o;)e(r)&&(8>o&&(s[o]=n(t.pow(r,.5))),c[o]=n(t.pow(r,1/3)),o++),r++})();var a=[],i=i.SHA256=n.extend({_doReset:function(){this._hash=o.create(s.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],u=n[4],f=n[5],p=n[6],l=n[7],d=0;64>d;d++){if(16>d)a[d]=0|t[e+d];else{var h=a[d-15],y=a[d-2];a[d]=((h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3)+a[d-7]+((y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10)+a[d-16]}h=l+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&f^~u&p)+c[d]+a[d],y=((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+(r&o^r&i^o&i),l=p,p=f,f=u,u=0|s+h,s=i,i=o,o=r,r=0|h+y}n[0]=0|n[0]+r,n[1]=0|n[1]+o,n[2]=0|n[2]+i,n[3]=0|n[3]+s,n[4]=0|n[4]+u,n[5]=0|n[5]+f,n[6]=0|n[6]+p,n[7]=0|n[7]+l},_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(i),e.HmacSHA256=n._createHmacHelper(i)})(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 s.SHA256(t).toString(s.enc.hex)}function o(){}function i(t){for(var e=[],n=t.length,r=0;n>r;r++)e[r]=t[r];return e}t("crypto-js/rollups/sha256");var s=r;return{guid:e,hash:n,u8toArray:i,nop:o}}),n("src/error",["require"],function(){function t(t){this.message=t||"unknown error"}function e(t){this.message=t||"success"}function n(t){this.message=t||"end of file"}function r(t){this.message=t||"getaddrinfo error"}function o(t){this.message=t||"permission denied"}function i(t){this.message=t||"resource temporarily unavailable"}function s(t){this.message=t||"address already in use"}function c(t){this.message=t||"address not available"}function a(t){this.message=t||"address family not supported"}function u(t){this.message=t||"connection already in progress"}function f(t){this.message=t||"bad file descriptor"}function p(t){this.message=t||"resource busy or locked"}function l(t){this.message=t||"software caused connection abort"}function d(t){this.message=t||"connection refused"}function h(t){this.message=t||"connection reset by peer"}function y(t){this.message=t||"destination address required"}function g(t){this.message=t||"bad address in system call argument"}function v(t){this.message=t||"host is unreachable"}function m(t){this.message=t||"interrupted system call"}function E(t){this.message=t||"invalid argument"}function b(t){this.message=t||"socket is already connected"}function w(t){this.message=t||"too many open files"}function x(t){this.message=t||"message too long"}function _(t){this.message=t||"network is down"}function A(t){this.message=t||"network is unreachable"}function k(t){this.message=t||"file table overflow"}function S(t){this.message=t||"no buffer space available"}function O(t){this.message=t||"not enough memory"}function R(t){this.message=t||"not a directory"}function C(t){this.message=t||"illegal operation on a directory"}function T(t){this.message=t||"machine is not on the network"}function D(t){this.message=t||"socket is not connected"}function I(t){this.message=t||"socket operation on non-socket"}function N(t){this.message=t||"operation not supported on socket"}function M(t){this.message=t||"no such file or directory"}function B(t){this.message=t||"function not implemented"}function F(t){this.message=t||"broken pipe"}function U(t){this.message=t||"protocol error"}function j(t){this.message=t||"protocol not supported"}function z(t){this.message=t||"protocol wrong type for socket"}function P(t){this.message=t||"connection timed out"}function L(t){this.message=t||"invalid Unicode character"}function W(t){this.message=t||"address family for hostname not supported"}function q(t){this.message=t||"servname not supported for ai_socktype"}function H(t){this.message=t||"ai_socktype not supported"}function Y(t){this.message=t||"cannot send after transport endpoint shutdown"}function X(t){this.message=t||"file already exists"}function K(t){this.message=t||"no such process"}function V(t){this.message=t||"name too long"}function Z(t){this.message=t||"operation not permitted" }function G(t){this.message=t||"too many symbolic links encountered"}function Q(t){this.message=t||"cross-device link not permitted"}function $(t){this.message=t||"directory not empty"}function J(t){this.message=t||"no space left on device"}function te(t){this.message=t||"i/o error"}function ee(t){this.message=t||"read-only file system"}function ne(t){this.message=t||"no such device"}function re(t){this.message=t||"invalid seek"}function oe(t){this.message=t||"operation canceled"}function ie(t){this.message=t||"not mounted"}function se(t){this.message=t||"missing super node"}function ce(t){this.message=t||"attribute does not exist"}return t.prototype=Error(),t.prototype.errno=-1,t.prototype.code="UNKNOWN",t.prototype.constructor=t,e.prototype=Error(),e.prototype.errno=0,e.prototype.code="OK",e.prototype.constructor=e,n.prototype=Error(),n.prototype.errno=1,n.prototype.code="EOF",n.prototype.constructor=n,r.prototype=Error(),r.prototype.errno=2,r.prototype.code="EADDRINFO",r.prototype.constructor=r,o.prototype=Error(),o.prototype.errno=3,o.prototype.code="EACCES",o.prototype.constructor=o,i.prototype=Error(),i.prototype.errno=4,i.prototype.code="EAGAIN",i.prototype.constructor=i,s.prototype=Error(),s.prototype.errno=5,s.prototype.code="EADDRINUSE",s.prototype.constructor=s,c.prototype=Error(),c.prototype.errno=6,c.prototype.code="EADDRNOTAVAIL",c.prototype.constructor=c,a.prototype=Error(),a.prototype.errno=7,a.prototype.code="EAFNOSUPPORT",a.prototype.constructor=a,u.prototype=Error(),u.prototype.errno=8,u.prototype.code="EALREADY",u.prototype.constructor=u,f.prototype=Error(),f.prototype.errno=9,f.prototype.code="EBADF",f.prototype.constructor=f,p.prototype=Error(),p.prototype.errno=10,p.prototype.code="EBUSY",p.prototype.constructor=p,l.prototype=Error(),l.prototype.errno=11,l.prototype.code="ECONNABORTED",l.prototype.constructor=l,d.prototype=Error(),d.prototype.errno=12,d.prototype.code="ECONNREFUSED",d.prototype.constructor=d,h.prototype=Error(),h.prototype.errno=13,h.prototype.code="ECONNRESET",h.prototype.constructor=h,y.prototype=Error(),y.prototype.errno=14,y.prototype.code="EDESTADDRREQ",y.prototype.constructor=y,g.prototype=Error(),g.prototype.errno=15,g.prototype.code="EFAULT",g.prototype.constructor=g,v.prototype=Error(),v.prototype.errno=16,v.prototype.code="EHOSTUNREACH",v.prototype.constructor=v,m.prototype=Error(),m.prototype.errno=17,m.prototype.code="EINTR",m.prototype.constructor=m,E.prototype=Error(),E.prototype.errno=18,E.prototype.code="EINVAL",E.prototype.constructor=E,b.prototype=Error(),b.prototype.errno=19,b.prototype.code="EISCONN",b.prototype.constructor=b,w.prototype=Error(),w.prototype.errno=20,w.prototype.code="EMFILE",w.prototype.constructor=w,x.prototype=Error(),x.prototype.errno=21,x.prototype.code="EMSGSIZE",x.prototype.constructor=x,_.prototype=Error(),_.prototype.errno=22,_.prototype.code="ENETDOWN",_.prototype.constructor=_,A.prototype=Error(),A.prototype.errno=23,A.prototype.code="ENETUNREACH",A.prototype.constructor=A,k.prototype=Error(),k.prototype.errno=24,k.prototype.code="ENFILE",k.prototype.constructor=k,S.prototype=Error(),S.prototype.errno=25,S.prototype.code="ENOBUFS",S.prototype.constructor=S,O.prototype=Error(),O.prototype.errno=26,O.prototype.code="ENOMEM",O.prototype.constructor=O,R.prototype=Error(),R.prototype.errno=27,R.prototype.code="ENOTDIR",R.prototype.constructor=R,C.prototype=Error(),C.prototype.errno=28,C.prototype.code="EISDIR",C.prototype.constructor=C,T.prototype=Error(),T.prototype.errno=29,T.prototype.code="ENONET",T.prototype.constructor=T,D.prototype=Error(),D.prototype.errno=31,D.prototype.code="ENOTCONN",D.prototype.constructor=D,I.prototype=Error(),I.prototype.errno=32,I.prototype.code="ENOTSOCK",I.prototype.constructor=I,N.prototype=Error(),N.prototype.errno=33,N.prototype.code="ENOTSUP",N.prototype.constructor=N,M.prototype=Error(),M.prototype.errno=34,M.prototype.code="ENOENT",M.prototype.constructor=M,B.prototype=Error(),B.prototype.errno=35,B.prototype.code="ENOSYS",B.prototype.constructor=B,F.prototype=Error(),F.prototype.errno=36,F.prototype.code="EPIPE",F.prototype.constructor=F,U.prototype=Error(),U.prototype.errno=37,U.prototype.code="EPROTO",U.prototype.constructor=U,j.prototype=Error(),j.prototype.errno=38,j.prototype.code="EPROTONOSUPPORT",j.prototype.constructor=j,z.prototype=Error(),z.prototype.errno=39,z.prototype.code="EPROTOTYPE",z.prototype.constructor=z,P.prototype=Error(),P.prototype.errno=40,P.prototype.code="ETIMEDOUT",P.prototype.constructor=P,L.prototype=Error(),L.prototype.errno=41,L.prototype.code="ECHARSET",L.prototype.constructor=L,W.prototype=Error(),W.prototype.errno=42,W.prototype.code="EAIFAMNOSUPPORT",W.prototype.constructor=W,q.prototype=Error(),q.prototype.errno=44,q.prototype.code="EAISERVICE",q.prototype.constructor=q,H.prototype=Error(),H.prototype.errno=45,H.prototype.code="EAISOCKTYPE",H.prototype.constructor=H,Y.prototype=Error(),Y.prototype.errno=46,Y.prototype.code="ESHUTDOWN",Y.prototype.constructor=Y,X.prototype=Error(),X.prototype.errno=47,X.prototype.code="EEXIST",X.prototype.constructor=X,K.prototype=Error(),K.prototype.errno=48,K.prototype.code="ESRCH",K.prototype.constructor=K,V.prototype=Error(),V.prototype.errno=49,V.prototype.code="ENAMETOOLONG",V.prototype.constructor=V,Z.prototype=Error(),Z.prototype.errno=50,Z.prototype.code="EPERM",Z.prototype.constructor=Z,G.prototype=Error(),G.prototype.errno=51,G.prototype.code="ELOOP",G.prototype.constructor=G,Q.prototype=Error(),Q.prototype.errno=52,Q.prototype.code="EXDEV",Q.prototype.constructor=Q,$.prototype=Error(),$.prototype.errno=53,$.prototype.code="ENOTEMPTY",$.prototype.constructor=$,J.prototype=Error(),J.prototype.errno=54,J.prototype.code="ENOSPC",J.prototype.constructor=J,te.prototype=Error(),te.prototype.errno=55,te.prototype.code="EIO",te.prototype.constructor=te,ee.prototype=Error(),ee.prototype.errno=56,ee.prototype.code="EROFS",ee.prototype.constructor=ee,ne.prototype=Error(),ne.prototype.errno=57,ne.prototype.code="ENODEV",ne.prototype.constructor=ne,re.prototype=Error(),re.prototype.errno=58,re.prototype.code="ESPIPE",re.prototype.constructor=re,oe.prototype=Error(),oe.prototype.errno=59,oe.prototype.code="ECANCELED",oe.prototype.constructor=oe,ie.prototype=Error(),ie.prototype.errno=60,ie.prototype.code="ENotMounted",ie.prototype.constructor=ie,se.prototype=Error(),se.prototype.errno=61,se.prototype.code="EFileSystemError",se.prototype.constructor=se,ce.prototype=Error(),ce.prototype.errno=62,ce.prototype.code="ENoAttr",ce.prototype.constructor=ce,{Unknown:t,OK:e,EOF:n,EAddrInfo:r,EAcces:o,EAgain:i,EAddrInUse:s,EAddrNotAvail:c,EAFNoSupport:a,EAlready:u,EBadFileDescriptor:f,EBusy:p,EConnAborted:l,EConnRefused:d,EConnReset:h,EDestAddrReq:y,EFault:g,EHostUnreach:v,EIntr:m,EInvalid:E,EIsConn:b,EMFile:w,EMsgSize:x,ENetDown:_,ENetUnreach:A,ENFile:k,ENoBufS:S,ENoMem:O,ENotDirectory:R,EIsDirectory:C,ENoNet:T,ENotConn:D,ENotSock:I,ENotSup:N,ENoEntry:M,ENotImplemented:B,EPipe:F,EProto:U,EProtoNoSupport:j,EPrototype:z,ETimedOut:P,ECharset:L,EAIFamNoSupport:W,EAIService:q,EAISockType:H,EShutdown:Y,EExists:X,ESrch:K,ENameTooLong:V,EPerm:Z,ELoop:G,EXDev:Q,ENotEmpty:$,ENoSpc:J,EIO:te,EROFS:ee,ENoDev:ne,ESPipe:re,ECanceled:oe,ENotMounted:ie,EFileSystemError:se,ENoAttr:ce}}),n("src/constants",["require"],function(){var t="READ",e="WRITE",n="CREATE",r="EXCLUSIVE",o="TRUNCATE",i="APPEND",s="CREATE",c="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",FS_NOCTIME:"NOCTIME",FS_NOMTIME:"NOMTIME",O_READ:t,O_WRITE:e,O_CREATE:n,O_EXCLUSIVE:r,O_TRUNCATE:o,O_APPEND:i,O_FLAGS:{r:[t],"r+":[t,e],w:[e,n,o],"w+":[e,t,n,o],wx:[e,n,r,o],"wx+":[e,t,n,r,o],a:[e,n,i],"a+":[e,t,n,i],ax:[e,n,r,i],"ax+":[e,t,n,r,i]},XATTR_CREATE:s,XATTR_REPLACE:c,FS_READY:"READY",FS_PENDING:"PENDING",FS_ERROR:"ERROR",SUPER_NODE_ID:"00000000-0000-0000-0000-000000000000",ENVIRONMENT:{TMP:"/tmp",PATH:""}}}),n("src/providers/indexeddb",["require","src/constants","src/constants","src/constants","src/constants"],function(t){function e(t,e){var n=t.transaction(o,e);this.objectStore=n.objectStore(o)}function n(t){this.name=t||r,this.db=null}var r=t("src/constants").FILE_SYSTEM_NAME,o=t("src/constants").FILE_STORE_NAME,i=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,s=t("src/constants").IDB_RW;return t("src/constants").IDB_RO,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(o){n(o)}},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!!i},n.prototype.open=function(t){var e=this;if(e.db)return t(null,!1),void 0;var n=!1,r=i.open(e.name);r.onupgradeneeded=function(t){var e=t.target.result;e.objectStoreNames.contains(o)&&e.deleteObjectStore(o),e.createObjectStore(o),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,s)},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","src/shared"],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,o=t("src/constants").FILE_STORE_NAME,i=t("src/constants").WSQL_VERSION,s=t("src/constants").WSQL_SIZE,c=t("src/constants").WSQL_DESC,a=t("src/shared").u8toArray;return e.prototype.clear=function(t){function e(e,n){t(n)}function n(){t(null)}this.getTransaction(function(t){t.executeSql("DELETE FROM "+o+";",[],n,e)})},e.prototype.get=function(t,e){function n(t,n){var r=0===n.rows.length?null:n.rows.item(0).data;try{r&&(r=JSON.parse(r),r.__isUint8Array&&(r=new Uint8Array(r.__array))),e(null,r)}catch(o){e(o)}}function r(t,n){e(n)}this.getTransaction(function(e){e.executeSql("SELECT data FROM "+o+" WHERE id = ?;",[t],n,r)})},e.prototype.put=function(t,e,n){function r(){n(null)}function i(t,e){n(e)}"[object Uint8Array]"===Object.prototype.toString.call(e)&&(e={__isUint8Array:!0,__array:a(e)}),e=JSON.stringify(e),this.getTransaction(function(n){n.executeSql("INSERT OR REPLACE INTO "+o+" (id, data) VALUES (?, ?);",[t,e],r,i)})},e.prototype.delete=function(t,e){function n(){e(null)}function r(t,n){e(n)}this.getTransaction(function(e){e.executeSql("DELETE FROM "+o+" 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 i(e,n){t(n)}r.db=a,e.executeSql("SELECT COUNT(id) AS count FROM "+o+";",[],n,i)}var r=this;if(r.db)return t(null,!1),void 0;var a=window.openDatabase(r.name,i,c,s);return a?(a.transaction(function(t){function r(t){t.executeSql("CREATE INDEX IF NOT EXISTS idx_"+o+"_id"+" on "+o+" (id);",[],n,e)}t.executeSql("CREATE TABLE IF NOT EXISTS "+o+" (id unique, data TEXT);",[],r,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}),function(){function t(t){var n=!1;return function(){if(n)throw Error("Callback was already called.");n=!0,t.apply(e,arguments)}}var e,r,o={};e=this,null!=e&&(r=e.async),o.noConflict=function(){return e.async=r,o};var i=function(t,e){if(t.forEach)return t.forEach(e);for(var n=0;t.length>n;n+=1)e(t[n],n,t)},s=function(t,e){if(t.map)return t.map(e);var n=[];return i(t,function(t,r,o){n.push(e(t,r,o))}),n},c=function(t,e,n){return t.reduce?t.reduce(e,n):(i(t,function(t,r,o){n=e(n,t,r,o)}),n)},a=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e};"undefined"!=typeof process&&process.nextTick?(o.nextTick=process.nextTick,o.setImmediate="undefined"!=typeof setImmediate?function(t){setImmediate(t)}:o.nextTick):"function"==typeof setImmediate?(o.nextTick=function(t){setImmediate(t)},o.setImmediate=o.nextTick):(o.nextTick=function(t){setTimeout(t,0)},o.setImmediate=o.nextTick),o.each=function(e,n,r){if(r=r||function(){},!e.length)return r();var o=0;i(e,function(i){n(i,t(function(t){t?(r(t),r=function(){}):(o+=1,o>=e.length&&r(null))}))})},o.forEach=o.each,o.eachSeries=function(t,e,n){if(n=n||function(){},!t.length)return n();var r=0,o=function(){e(t[r],function(e){e?(n(e),n=function(){}):(r+=1,r>=t.length?n(null):o())})};o()},o.forEachSeries=o.eachSeries,o.eachLimit=function(t,e,n,r){var o=u(e);o.apply(null,[t,n,r])},o.forEachLimit=o.eachLimit;var u=function(t){return function(e,n,r){if(r=r||function(){},!e.length||0>=t)return r();var o=0,i=0,s=0;(function c(){if(o>=e.length)return r();for(;t>s&&e.length>i;)i+=1,s+=1,n(e[i-1],function(t){t?(r(t),r=function(){}):(o+=1,s-=1,o>=e.length?r():c())})})()}},f=function(t){return function(){var e=Array.prototype.slice.call(arguments);return t.apply(null,[o.each].concat(e))}},p=function(t,e){return function(){var n=Array.prototype.slice.call(arguments);return e.apply(null,[u(t)].concat(n))}},l=function(t){return function(){var e=Array.prototype.slice.call(arguments);return t.apply(null,[o.eachSeries].concat(e))}},d=function(t,e,n,r){var o=[];e=s(e,function(t,e){return{index:e,value:t}}),t(e,function(t,e){n(t.value,function(n,r){o[t.index]=r,e(n)})},function(t){r(t,o)})};o.map=f(d),o.mapSeries=l(d),o.mapLimit=function(t,e,n,r){return h(e)(t,n,r)};var h=function(t){return p(t,d)};o.reduce=function(t,e,n,r){o.eachSeries(t,function(t,r){n(e,t,function(t,n){e=n,r(t)})},function(t){r(t,e)})},o.inject=o.reduce,o.foldl=o.reduce,o.reduceRight=function(t,e,n,r){var i=s(t,function(t){return t}).reverse();o.reduce(i,e,n,r)},o.foldr=o.reduceRight;var y=function(t,e,n,r){var o=[];e=s(e,function(t,e){return{index:e,value:t}}),t(e,function(t,e){n(t.value,function(n){n&&o.push(t),e()})},function(){r(s(o.sort(function(t,e){return t.index-e.index}),function(t){return t.value}))})};o.filter=f(y),o.filterSeries=l(y),o.select=o.filter,o.selectSeries=o.filterSeries;var g=function(t,e,n,r){var o=[];e=s(e,function(t,e){return{index:e,value:t}}),t(e,function(t,e){n(t.value,function(n){n||o.push(t),e()})},function(){r(s(o.sort(function(t,e){return t.index-e.index}),function(t){return t.value}))})};o.reject=f(g),o.rejectSeries=l(g);var v=function(t,e,n,r){t(e,function(t,e){n(t,function(n){n?(r(t),r=function(){}):e()})},function(){r()})};o.detect=f(v),o.detectSeries=l(v),o.some=function(t,e,n){o.each(t,function(t,r){e(t,function(t){t&&(n(!0),n=function(){}),r()})},function(){n(!1)})},o.any=o.some,o.every=function(t,e,n){o.each(t,function(t,r){e(t,function(t){t||(n(!1),n=function(){}),r()})},function(){n(!0)})},o.all=o.every,o.sortBy=function(t,e,n){o.map(t,function(t,n){e(t,function(e,r){e?n(e):n(null,{value:t,criteria:r})})},function(t,e){if(t)return n(t);var r=function(t,e){var n=t.criteria,r=e.criteria;return r>n?-1:n>r?1:0};n(null,s(e.sort(r),function(t){return t.value}))})},o.auto=function(t,e){e=e||function(){};var n=a(t);if(!n.length)return e(null);var r={},s=[],u=function(t){s.unshift(t)},f=function(t){for(var e=0;s.length>e;e+=1)if(s[e]===t)return s.splice(e,1),void 0},p=function(){i(s.slice(0),function(t){t()})};u(function(){a(r).length===n.length&&(e(null,r),e=function(){})}),i(n,function(n){var s=t[n]instanceof Function?[t[n]]:t[n],l=function(t){var s=Array.prototype.slice.call(arguments,1);if(1>=s.length&&(s=s[0]),t){var c={};i(a(r),function(t){c[t]=r[t]}),c[n]=s,e(t,c),e=function(){}}else r[n]=s,o.setImmediate(p)},d=s.slice(0,Math.abs(s.length-1))||[],h=function(){return c(d,function(t,e){return t&&r.hasOwnProperty(e)},!0)&&!r.hasOwnProperty(n)};if(h())s[s.length-1](l,r);else{var y=function(){h()&&(f(y),s[s.length-1](l,r))};u(y)}})},o.waterfall=function(t,e){if(e=e||function(){},t.constructor!==Array){var n=Error("First argument to waterfall must be an array of functions");return e(n)}if(!t.length)return e();var r=function(t){return function(n){if(n)e.apply(null,arguments),e=function(){};else{var i=Array.prototype.slice.call(arguments,1),s=t.next();s?i.push(r(s)):i.push(e),o.setImmediate(function(){t.apply(null,i)})}}};r(o.iterator(t))()};var m=function(t,e,n){if(n=n||function(){},e.constructor===Array)t.map(e,function(t,e){t&&t(function(t){var n=Array.prototype.slice.call(arguments,1);1>=n.length&&(n=n[0]),e.call(null,t,n)})},n);else{var r={};t.each(a(e),function(t,n){e[t](function(e){var o=Array.prototype.slice.call(arguments,1);1>=o.length&&(o=o[0]),r[t]=o,n(e)})},function(t){n(t,r)})}};o.parallel=function(t,e){m({map:o.map,each:o.each},t,e)},o.parallelLimit=function(t,e,n){m({map:h(e),each:u(e)},t,n)},o.series=function(t,e){if(e=e||function(){},t.constructor===Array)o.mapSeries(t,function(t,e){t&&t(function(t){var n=Array.prototype.slice.call(arguments,1);1>=n.length&&(n=n[0]),e.call(null,t,n)})},e);else{var n={};o.eachSeries(a(t),function(e,r){t[e](function(t){var o=Array.prototype.slice.call(arguments,1);1>=o.length&&(o=o[0]),n[e]=o,r(t)})},function(t){e(t,n)})}},o.iterator=function(t){var e=function(n){var r=function(){return t.length&&t[n].apply(null,arguments),r.next()};return r.next=function(){return t.length-1>n?e(n+1):null},r};return e(0)},o.apply=function(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e.concat(Array.prototype.slice.call(arguments)))}};var E=function(t,e,n,r){var o=[];t(e,function(t,e){n(t,function(t,n){o=o.concat(n||[]),e(t)})},function(t){r(t,o)})};o.concat=f(E),o.concatSeries=l(E),o.whilst=function(t,e,n){t()?e(function(r){return r?n(r):(o.whilst(t,e,n),void 0)}):n()},o.doWhilst=function(t,e,n){t(function(r){return r?n(r):(e()?o.doWhilst(t,e,n):n(),void 0)})},o.until=function(t,e,n){t()?n():e(function(r){return r?n(r):(o.until(t,e,n),void 0)})},o.doUntil=function(t,e,n){t(function(r){return r?n(r):(e()?n():o.doUntil(t,e,n),void 0)})},o.queue=function(e,n){function r(t,e,r,s){e.constructor!==Array&&(e=[e]),i(e,function(e){var i={data:e,callback:"function"==typeof s?s:null};r?t.tasks.unshift(i):t.tasks.push(i),t.saturated&&t.tasks.length===n&&t.saturated(),o.setImmediate(t.process)})}void 0===n&&(n=1);var s=0,c={tasks:[],concurrency:n,saturated:null,empty:null,drain:null,push:function(t,e){r(c,t,!1,e)},unshift:function(t,e){r(c,t,!0,e)},process:function(){if(c.concurrency>s&&c.tasks.length){var n=c.tasks.shift();c.empty&&0===c.tasks.length&&c.empty(),s+=1;var r=function(){s-=1,n.callback&&n.callback.apply(n,arguments),c.drain&&0===c.tasks.length+s&&c.drain(),c.process()},o=t(r);e(n.data,o)}},length:function(){return c.tasks.length},running:function(){return s}};return c},o.cargo=function(t,e){var n=!1,r=[],c={tasks:r,payload:e,saturated:null,empty:null,drain:null,push:function(t,n){t.constructor!==Array&&(t=[t]),i(t,function(t){r.push({data:t,callback:"function"==typeof n?n:null}),c.saturated&&r.length===e&&c.saturated()}),o.setImmediate(c.process)},process:function a(){if(!n){if(0===r.length)return c.drain&&c.drain(),void 0;var o="number"==typeof e?r.splice(0,e):r.splice(0),u=s(o,function(t){return t.data});c.empty&&c.empty(),n=!0,t(u,function(){n=!1;var t=arguments;i(o,function(e){e.callback&&e.callback.apply(null,t)}),a()})}},length:function(){return r.length},running:function(){return n}};return c};var b=function(t){return function(e){var n=Array.prototype.slice.call(arguments,1);e.apply(null,n.concat([function(e){var n=Array.prototype.slice.call(arguments,1);"undefined"!=typeof console&&(e?console.error&&console.error(e):console[t]&&i(n,function(e){console[t](e)}))}]))}};o.log=b("log"),o.dir=b("dir"),o.memoize=function(t,e){var n={},r={};e=e||function(t){return t};var o=function(){var o=Array.prototype.slice.call(arguments),i=o.pop(),s=e.apply(null,o);s in n?i.apply(null,n[s]):s in r?r[s].push(i):(r[s]=[i],t.apply(null,o.concat([function(){n[s]=arguments;var t=r[s];delete r[s];for(var e=0,o=t.length;o>e;e++)t[e].apply(null,arguments)}])))};return o.memo=n,o.unmemoized=t,o},o.unmemoize=function(t){return function(){return(t.unmemoized||t).apply(null,arguments)}},o.times=function(t,e,n){for(var r=[],i=0;t>i;i++)r.push(i);return o.map(r,e,n)},o.timesSeries=function(t,e,n){for(var r=[],i=0;t>i;i++)r.push(i);return o.mapSeries(r,e,n)},o.compose=function(){var t=Array.prototype.reverse.call(arguments);return function(){var e=this,n=Array.prototype.slice.call(arguments),r=n.pop();o.reduce(t,n,function(t,n,r){n.apply(e,t.concat([function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1);r(t,e)}]))},function(t,n){r.apply(e,[t].concat(n))})}};var w=function(t,e){var n=function(){var n=this,r=Array.prototype.slice.call(arguments),o=r.pop();return t(e,function(t,e){t.apply(n,r.concat([e]))},o)};if(arguments.length>2){var r=Array.prototype.slice.call(arguments,2);return n.apply(this,r)}return n};o.applyEach=f(w),o.applyEachSeries=l(w),o.forever=function(t,e){function n(r){if(r){if(e)return e(r);throw r}t(n)}n()},n!==void 0&&n.amd?n("async",[],function(){return o}):"undefined"!=typeof module&&module.exports?module.exports=o:e.async=o}(),n("src/providers/memory",["require","src/constants","async"],function(t){function e(t,e){this.readOnly=e,this.objectStore=t}function n(t){this.name=t||r,this.db={}}var r=t("src/constants").FILE_SYSTEM_NAME,o=t("async").nextTick;return e.prototype.clear=function(t){if(this.readOnly)return o(function(){t("[MemoryContext] Error: write operation on read only context")}),void 0;var e=this.objectStore;Object.keys(e).forEach(function(t){delete e[t]}),o(t)},e.prototype.get=function(t,e){var n=this;o(function(){e(null,n.objectStore[t])})},e.prototype.put=function(t,e,n){return this.readOnly?(o(function(){n("[MemoryContext] Error: write operation on read only context")}),void 0):(this.objectStore[t]=e,o(n),void 0)},e.prototype.delete=function(t,e){return this.readOnly?(o(function(){e("[MemoryContext] Error: write operation on read only context")}),void 0):(delete this.objectStore[t],o(e),void 0)},n.isSupported=function(){return!0},n.prototype.open=function(t){o(function(){t(null,!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/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=x;!(n[0]in r)&&r.execScript&&r.execScript("var "+n[0]);for(var o;n.length&&(o=n.shift());)n.length||e===b?r=r[o]?r[o]:r[o]={}:r[o]=e}function n(e,n){this.index="number"==typeof n?n:0,this.i=0,this.buffer=e instanceof(_?Uint8Array:Array)?e:new(_?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(_?Uint16Array:Array)(2*t),this.length=0}function o(t){var e,n,r,o,i,s,c,a,u,f=t.length,p=0,l=Number.POSITIVE_INFINITY;for(a=0;f>a;++a)t[a]>p&&(p=t[a]),l>t[a]&&(l=t[a]);for(e=1<
=r;){for(a=0;f>a;++a)if(t[a]===r){for(s=0,c=o,u=0;r>u;++u)s=s<<1|1&c,c>>=1;for(u=s;e>u;u+=i)n[u]=r<<16|a;++o}++r,o<<=1,i<<=1}return[n,p,l]}function i(t,e){this.h=D,this.w=0,this.input=_&&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=_&&e.outputBuffer instanceof Array?new Uint8Array(e.outputBuffer):e.outputBuffer),"number"==typeof e.outputIndex&&(this.b=e.outputIndex)),this.a||(this.a=new(_?Uint8Array:Array)(32768))}function s(t,e){this.length=t,this.G=e}function c(e,n){function r(e,n){var r,o=e.G,i=[],s=0;r=B[e.length],i[s++]=65535&r,i[s++]=255&r>>16,i[s++]=r>>24;var c;switch(w){case 1===o:c=[0,o-1,0];break;case 2===o:c=[1,o-2,0];break;case 3===o:c=[2,o-3,0];break;case 4===o:c=[3,o-4,0];break;case 6>=o:c=[4,o-5,1];break;case 8>=o:c=[5,o-7,1];break;case 12>=o:c=[6,o-9,2];break;case 16>=o:c=[7,o-13,2];break;case 24>=o:c=[8,o-17,3];break;case 32>=o:c=[9,o-25,3];break;case 48>=o:c=[10,o-33,4];break;case 64>=o:c=[11,o-49,4];break;case 96>=o:c=[12,o-65,5];break;case 128>=o:c=[13,o-97,5];break;case 192>=o:c=[14,o-129,6];break;case 256>=o:c=[15,o-193,6];break;case 384>=o:c=[16,o-257,7];break;case 512>=o:c=[17,o-385,7];break;case 768>=o:c=[18,o-513,8];break;case 1024>=o:c=[19,o-769,8];break;case 1536>=o:c=[20,o-1025,9];break;case 2048>=o:c=[21,o-1537,9];break;case 3072>=o:c=[22,o-2049,10];break;case 4096>=o:c=[23,o-3073,10];break;case 6144>=o:c=[24,o-4097,11];break;case 8192>=o:c=[25,o-6145,11];break;case 12288>=o:c=[26,o-8193,12];break;case 16384>=o:c=[27,o-12289,12];break;case 24576>=o:c=[28,o-16385,13];break;case 32768>=o:c=[29,o-24577,13];break;default:t("invalid distance")}r=c,i[s++]=r[0],i[s++]=r[1],i[s++]=r[2];var a,u;for(a=0,u=i.length;u>a;++a)y[g++]=i[a];m[i[0]]++,E[i[3]]++,v=e.length+n-1,l=null}var o,i,s,c,u,f,p,l,d,h={},y=_?new Uint16Array(2*n.length):[],g=0,v=0,m=new(_?Uint32Array:Array)(286),E=new(_?Uint32Array:Array)(30),x=e.w;if(!_){for(s=0;285>=s;)m[s++]=0;for(s=0;29>=s;)E[s++]=0}for(m[256]=1,o=0,i=n.length;i>o;++o){for(s=u=0,c=3;c>s&&o+s!==i;++s)u=u<<8|n[o+s];if(h[u]===b&&(h[u]=[]),f=h[u],!(v-->0)){for(;f.length>0&&o-f[0]>32768;)f.shift();if(o+3>=i){for(l&&r(l,-1),s=0,c=i-o;c>s;++s)d=n[o+s],y[g++]=d,++m[d];break}f.length>0?(p=a(n,o,f),l?l.length