From 518e85466f9bd74241b2dca63f2ae594b91859ef Mon Sep 17 00:00:00 2001 From: Stefano Brilli Date: Sat, 23 Jan 2021 15:20:56 +0100 Subject: [PATCH] Updates --- asset-manifest.json | 16 ++++++++-------- final-service-worker.js | 2 +- index.html | 2 +- ...-manifest.d33f70d72bb2c8db8f2a277c1acf3d63.js | 14 +++++++------- service-worker.js | 2 +- static/js/2.254aeff7.chunk.js | 3 --- static/js/2.254aeff7.chunk.js.map | 1 - static/js/2.ec89a630.chunk.js | 3 +++ ...CENSE.txt => 2.ec89a630.chunk.js.LICENSE.txt} | 0 static/js/2.ec89a630.chunk.js.map | 1 + static/js/main.1aed9c03.chunk.js | 2 ++ static/js/main.1aed9c03.chunk.js.map | 1 + static/js/main.ec094e9a.chunk.js | 2 -- static/js/main.ec094e9a.chunk.js.map | 1 - 14 files changed, 25 insertions(+), 25 deletions(-) rename precache-manifest.d7e81b850f98fbdf289fa23256d1903b.js => precache-manifest.d33f70d72bb2c8db8f2a277c1acf3d63.js (85%) delete mode 100644 static/js/2.254aeff7.chunk.js delete mode 100644 static/js/2.254aeff7.chunk.js.map create mode 100644 static/js/2.ec89a630.chunk.js rename static/js/{2.254aeff7.chunk.js.LICENSE.txt => 2.ec89a630.chunk.js.LICENSE.txt} (100%) create mode 100644 static/js/2.ec89a630.chunk.js.map create mode 100644 static/js/main.1aed9c03.chunk.js create mode 100644 static/js/main.1aed9c03.chunk.js.map delete mode 100644 static/js/main.ec094e9a.chunk.js delete mode 100644 static/js/main.ec094e9a.chunk.js.map diff --git a/asset-manifest.json b/asset-manifest.json index 2c3a47a..27947d2 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,12 +1,12 @@ { "files": { "main.css": "/webminidisc/static/css/main.6d9c03e4.chunk.css", - "main.js": "/webminidisc/static/js/main.ec094e9a.chunk.js", - "main.js.map": "/webminidisc/static/js/main.ec094e9a.chunk.js.map", + "main.js": "/webminidisc/static/js/main.1aed9c03.chunk.js", + "main.js.map": "/webminidisc/static/js/main.1aed9c03.chunk.js.map", "runtime-main.js": "/webminidisc/static/js/runtime-main.114d47b9.js", "runtime-main.js.map": "/webminidisc/static/js/runtime-main.114d47b9.js.map", - "static/js/2.254aeff7.chunk.js": "/webminidisc/static/js/2.254aeff7.chunk.js", - "static/js/2.254aeff7.chunk.js.map": "/webminidisc/static/js/2.254aeff7.chunk.js.map", + "static/js/2.ec89a630.chunk.js": "/webminidisc/static/js/2.ec89a630.chunk.js", + "static/js/2.ec89a630.chunk.js.map": "/webminidisc/static/js/2.ec89a630.chunk.js.map", "8880d26e7a47551cd42e.worker.js": "/webminidisc/8880d26e7a47551cd42e.worker.js", "8880d26e7a47551cd42e.worker.js.LICENSE.txt": "/webminidisc/8880d26e7a47551cd42e.worker.js.LICENSE.txt", "8880d26e7a47551cd42e.worker.js.map": "/webminidisc/8880d26e7a47551cd42e.worker.js.map", @@ -14,10 +14,10 @@ "ffb88193b05ec63929fd.worker.js.LICENSE.txt": "/webminidisc/ffb88193b05ec63929fd.worker.js.LICENSE.txt", "ffb88193b05ec63929fd.worker.js.map": "/webminidisc/ffb88193b05ec63929fd.worker.js.map", "index.html": "/webminidisc/index.html", - "precache-manifest.d7e81b850f98fbdf289fa23256d1903b.js": "/webminidisc/precache-manifest.d7e81b850f98fbdf289fa23256d1903b.js", + "precache-manifest.d33f70d72bb2c8db8f2a277c1acf3d63.js": "/webminidisc/precache-manifest.d33f70d72bb2c8db8f2a277c1acf3d63.js", "service-worker.js": "/webminidisc/service-worker.js", "static/css/main.6d9c03e4.chunk.css.map": "/webminidisc/static/css/main.6d9c03e4.chunk.css.map", - "static/js/2.254aeff7.chunk.js.LICENSE.txt": "/webminidisc/static/js/2.254aeff7.chunk.js.LICENSE.txt", + "static/js/2.ec89a630.chunk.js.LICENSE.txt": "/webminidisc/static/js/2.ec89a630.chunk.js.LICENSE.txt", "static/media/fonts.css": "/webminidisc/static/media/LCDDot-Regular.f9fc1d8a.eot", "static/media/chrome-icon.svg": "/webminidisc/static/media/chrome-icon.f3b6c54c.svg", "static/media/md0.a7574f83.svg": "/webminidisc/static/media/md0.a7574f83.svg", @@ -27,8 +27,8 @@ }, "entrypoints": [ "static/js/runtime-main.114d47b9.js", - "static/js/2.254aeff7.chunk.js", + "static/js/2.ec89a630.chunk.js", "static/css/main.6d9c03e4.chunk.css", - "static/js/main.ec094e9a.chunk.js" + "static/js/main.1aed9c03.chunk.js" ] } \ No newline at end of file diff --git a/final-service-worker.js b/final-service-worker.js index a555994..139c774 100644 --- a/final-service-worker.js +++ b/final-service-worker.js @@ -35,7 +35,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js"); importScripts( - "/webminidisc/precache-manifest.d7e81b850f98fbdf289fa23256d1903b.js" + "/webminidisc/precache-manifest.d33f70d72bb2c8db8f2a277c1acf3d63.js" ); self.addEventListener('message', (event) => { diff --git a/index.html b/index.html index 45db1d0..9401980 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Web MiniDisc - Brings NetMD Devices to the Web
\ No newline at end of file +Web MiniDisc - Brings NetMD Devices to the Web
\ No newline at end of file diff --git a/precache-manifest.d7e81b850f98fbdf289fa23256d1903b.js b/precache-manifest.d33f70d72bb2c8db8f2a277c1acf3d63.js similarity index 85% rename from precache-manifest.d7e81b850f98fbdf289fa23256d1903b.js rename to precache-manifest.d33f70d72bb2c8db8f2a277c1acf3d63.js index 5eb3d04..1063d6b 100644 --- a/precache-manifest.d7e81b850f98fbdf289fa23256d1903b.js +++ b/precache-manifest.d33f70d72bb2c8db8f2a277c1acf3d63.js @@ -16,24 +16,24 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ "url": "/webminidisc/ffb88193b05ec63929fd.worker.js.LICENSE.txt" }, { - "revision": "e2b1654aa1e31f3557ec9399092d7c42", + "revision": "b91bb37e3529abe1e7c318df1a98ab5d", "url": "/webminidisc/index.html" }, { - "revision": "acc4beb0bb446ad3ea13", + "revision": "e1e09e10314c8f1b921e", "url": "/webminidisc/static/css/main.6d9c03e4.chunk.css" }, { - "revision": "c4508c933fa9e31e3998", - "url": "/webminidisc/static/js/2.254aeff7.chunk.js" + "revision": "2172846631087a45ee6f", + "url": "/webminidisc/static/js/2.ec89a630.chunk.js" }, { "revision": "0b770f5ff90b2922632946fd129f694b", - "url": "/webminidisc/static/js/2.254aeff7.chunk.js.LICENSE.txt" + "url": "/webminidisc/static/js/2.ec89a630.chunk.js.LICENSE.txt" }, { - "revision": "acc4beb0bb446ad3ea13", - "url": "/webminidisc/static/js/main.ec094e9a.chunk.js" + "revision": "e1e09e10314c8f1b921e", + "url": "/webminidisc/static/js/main.1aed9c03.chunk.js" }, { "revision": "b873df5f5158f06b4f7b", diff --git a/service-worker.js b/service-worker.js index ab191d4..11958c7 100644 --- a/service-worker.js +++ b/service-worker.js @@ -14,7 +14,7 @@ importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js"); importScripts( - "/webminidisc/precache-manifest.d7e81b850f98fbdf289fa23256d1903b.js" + "/webminidisc/precache-manifest.d33f70d72bb2c8db8f2a277c1acf3d63.js" ); self.addEventListener('message', (event) => { diff --git a/static/js/2.254aeff7.chunk.js b/static/js/2.254aeff7.chunk.js deleted file mode 100644 index 2d564e4..0000000 --- a/static/js/2.254aeff7.chunk.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see 2.254aeff7.chunk.js.LICENSE.txt */ -(this.webpackJsonpwebmd=this.webpackJsonpwebmd||[]).push([[2],[function(e,t,r){"use strict";e.exports=r(304)},function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}},function(e,t,r){"use strict";function n(e){var t,r,i="";if("string"===typeof e||"number"===typeof e)i+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;t1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||m(e)||t}function g(e,t,r){var n=b(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}function v(e){if(null!=e){if("string"===typeof e)return e;if("function"===typeof e)return b(e,"Component");if("object"===Object(d.a)(e))switch(e.$$typeof){case h.ForwardRef:return g(e,e.render,"ForwardRef");case h.Memo:return g(e,e.type,"memo");default:return}}}function y(e,t,r,n,i){return null}var w="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),_=o.a.oneOfType([o.a.func,o.a.object]);r.d(t,"chainPropTypes",(function(){return n})),r.d(t,"deepmerge",(function(){return i.a})),r.d(t,"elementAcceptingRef",(function(){return c})),r.d(t,"elementTypeAcceptingRef",(function(){return u})),r.d(t,"exactProp",(function(){return l})),r.d(t,"formatMuiErrorMessage",(function(){return f.a})),r.d(t,"getDisplayName",(function(){return v})),r.d(t,"HTMLElementType",(function(){return y})),r.d(t,"ponyfillGlobal",(function(){return w})),r.d(t,"refType",(function(){return _}))},function(e,t){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";(function(e){var n=r(316),i=r(317),a=r(197);function o(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function p(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return U(e).length;default:if(n)return L(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,r);case"utf8":case"utf-8":return T(this,t,r);case"ascii":return C(this,t,r);case"latin1":case"binary":return O(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function b(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){var a,o=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(a=r;as&&(r=s-c),a=r;a>=0;a--){for(var f=!0,d=0;di&&(n=i):n=i;var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function x(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function T(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:u>223?3:u>191?2:1;if(i+f<=r)switch(f){case 1:u<128&&(l=u);break;case 2:128===(192&(a=e[i+1]))&&(c=(31&u)<<6|63&a)>127&&(l=c);break;case 3:a=e[i+1],o=e[i+2],128===(192&a)&&128===(192&o)&&(c=(15&u)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(c=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},c.prototype.compare=function(e,t,r,n,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(n,i),l=e.slice(t,r),f=0;fi)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return y(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":return _(this,e,t,r);case"latin1":case"binary":return k(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i="",a=t;ar)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,r,n,i,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function j(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function B(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function R(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function D(e,t,r,n,a){return a||R(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function N(e,t,r,n,a){return a||R(e,0,r,8),i.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||A(e,t,this.length);for(var n=this[e],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||A(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||P(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);P(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);P(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,r){return D(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return D(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return N(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return N(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(a<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(a=t;a55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function U(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(z,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function H(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(34))},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(0),i=r(37);function a(e,t){return n.useMemo((function(){return null==e&&null==t?null:function(r){Object(i.a)(e,r),Object(i.a)(t,r)}}),[e,t])}},function(e,t,r){"use strict";r.d(t,"c",(function(){return s})),r.d(t,"b",(function(){return u})),r.d(t,"a",(function(){return l})),r.d(t,"d",(function(){return f}));var n=r(137);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function a(e){if(e.type)return e;if("#"===e.charAt(0))return a(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(Object(n.a)(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:r,values:i=i.map((function(e){return parseFloat(e)}))}}function o(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function s(e,t){var r=c(e),n=c(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function c(e){var t="hsl"===(e=a(e)).type?a(function(e){var t=(e=a(e)).values,r=t[0],n=t[1]/100,i=t[2]/100,s=n*Math.min(i,1-i),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return i-s*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",l=[Math.round(255*c(0)),Math.round(255*c(8)),Math.round(255*c(4))];return"hsla"===e.type&&(u+="a",l.push(t[3])),o({type:u,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){return e=a(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,o(e)}function l(e,t){if(e=a(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return o(e)}function f(e,t){if(e=a(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return o(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.writeIntBE=t.readIntBE=t.writeUIntBE=t.readUIntBE=t.writeIntLE=t.AnsiStringType=t.StringType=t.BufferType=t.IgnoreType=t.Float80_LE=t.Float80_BE=t.Float64_LE=t.Float64_BE=t.Float32_LE=t.Float32_BE=t.Float16_LE=t.Float16_BE=t.INT64_BE=t.UINT64_BE=t.INT64_LE=t.UINT64_LE=t.INT32_LE=t.INT32_BE=t.INT24_BE=t.INT24_LE=t.INT16_LE=t.INT16_BE=t.INT8=t.UINT32_BE=t.UINT32_LE=t.UINT24_BE=t.UINT24_LE=t.UINT16_BE=t.UINT16_LE=t.UINT8=void 0;const n=r(435);t.UINT8={len:1,get:(e,t)=>e.readUInt8(t),put:(e,t,r)=>e.writeUInt8(r,t)},t.UINT16_LE={len:2,get:(e,t)=>e.readUInt16LE(t),put:(e,t,r)=>e.writeUInt16LE(r,t)},t.UINT16_BE={len:2,get:(e,t)=>e.readUInt16BE(t),put:(e,t,r)=>e.writeUInt16BE(r,t)},t.UINT24_LE={len:3,get:(e,t)=>e.readUIntLE(t,3),put:(e,t,r)=>e.writeUIntLE(r,t,3)},t.UINT24_BE={len:3,get:(e,t)=>e.readUIntBE(t,3),put:(e,t,r)=>e.writeUIntBE(r,t,3)},t.UINT32_LE={len:4,get:(e,t)=>e.readUInt32LE(t),put:(e,t,r)=>e.writeUInt32LE(r,t)},t.UINT32_BE={len:4,get:(e,t)=>e.readUInt32BE(t),put:(e,t,r)=>e.writeUInt32BE(r,t)},t.INT8={len:1,get:(e,t)=>e.readInt8(t),put:(e,t,r)=>e.writeInt8(r,t)},t.INT16_BE={len:2,get:(e,t)=>e.readInt16BE(t),put:(e,t,r)=>e.writeInt16BE(r,t)},t.INT16_LE={len:2,get:(e,t)=>e.readInt16LE(t),put:(e,t,r)=>e.writeInt16LE(r,t)},t.INT24_LE={len:3,get:(e,t)=>e.readIntLE(t,3),put:(e,t,r)=>e.writeIntLE(r,t,3)},t.INT24_BE={len:3,get:(e,t)=>e.readIntBE(t,3),put:(e,t,r)=>e.writeIntBE(r,t,3)},t.INT32_BE={len:4,get:(e,t)=>e.readInt32BE(t),put:(e,t,r)=>e.writeInt32BE(r,t)},t.INT32_LE={len:4,get:(e,t)=>e.readInt32LE(t),put:(e,t,r)=>e.writeInt32LE(r,t)},t.UINT64_LE={len:8,get(e,t){return function(e,t,r){r>>>=0;let n=e[t>>>=0],i=1,a=0;for(;++a>>=0;let i=1,a=0;e[r>>>=0]=255&t;for(;++a>>=0;let n=e[t>>>=0],i=1,a=0;for(;++a=i&&(n-=Math.pow(2,8*r));return n}(e,t,this.len)},put(e,t,r){return a(e,r,t,this.len)}},t.UINT64_BE={len:8,get(e,t){return o(e,t,this.len)},put(e,t,r){return s(e,r,t,this.len)}},t.INT64_BE={len:8,get(e,t){return c(e,t,this.len)},put(e,t,r){return u(e,r,t,this.len)}},t.Float16_BE={len:2,get(e,t){return n.read(e,t,!1,10,this.len)},put(e,t,r){return n.write(e,r,t,!1,10,this.len),t+this.len}},t.Float16_LE={len:2,get(e,t){return n.read(e,t,!0,10,this.len)},put(e,t,r){return n.write(e,r,t,!0,10,this.len),t+this.len}},t.Float32_BE={len:4,get:(e,t)=>e.readFloatBE(t),put:(e,t,r)=>e.writeFloatBE(r,t)},t.Float32_LE={len:4,get:(e,t)=>e.readFloatLE(t),put:(e,t,r)=>e.writeFloatLE(r,t)},t.Float64_BE={len:8,get:(e,t)=>e.readDoubleBE(t),put:(e,t,r)=>e.writeDoubleBE(r,t)},t.Float64_LE={len:8,get:(e,t)=>e.readDoubleLE(t),put:(e,t,r)=>e.writeDoubleLE(r,t)},t.Float80_BE={len:10,get(e,t){return n.read(e,t,!1,63,this.len)},put(e,t,r){return n.write(e,r,t,!1,63,this.len),t+this.len}},t.Float80_LE={len:10,get(e,t){return n.read(e,t,!0,63,this.len)},put(e,t,r){return n.write(e,r,t,!0,63,this.len),t+this.len}};t.IgnoreType=class{constructor(e){this.len=e}get(e,t){}};t.BufferType=class{constructor(e){this.len=e}get(e,t){return e.slice(t,t+this.len)}};t.StringType=class{constructor(e,t){this.len=e,this.encoding=t}get(e,t){return e.toString(this.encoding,t,t+this.len)}};class i{constructor(e){this.len=e}static decode(e,t,r){let n="";for(let a=t;a>10),56320+(1023&e)))}static singleByteDecoder(e){if(i.inRange(e,0,127))return e;const t=i.windows1252[e-128];if(null===t)throw Error("invaliding encoding");return t}get(e,t=0){return i.decode(e,t,t+this.len)}}function a(e,t,r,n){t=+t;let i=0,a=1,o=0;for(e[r>>>=0]=255&t;++i>0)-o&255;return r+n}function o(e,t,r){r>>>=0;let n=e[(t>>>=0)+--r],i=1;for(;r>0&&(i*=256);)n+=e[t+--r]*i;return n}function s(e,t,r,n){t=+t;let i=(n>>>=0)-1,a=1;for(e[(r>>>=0)+i]=255&t;--i>=0&&(a*=256);)e[r+i]=t/a&255;return r+n}function c(e,t,r){let n=r>>>=0,i=1,a=e[(t>>>=0)+--n];for(;n>0&&(i*=256);)a+=e[t+--n]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*r)),a}function u(e,t,r,n){t=+t;let i=n-1,a=1,o=0;for(e[(r>>>=0)+i]=255&t;--i>=0&&(a*=256);)t<0&&0===o&&0!==e[r+i+1]&&(o=1),e[r+i]=(t/a>>0)-o&255;return r+n}t.AnsiStringType=i,i.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255],t.writeIntLE=a,t.readUIntBE=o,t.writeUIntBE=s,t.readIntBE=c,t.writeIntBE=u},function(e,t,r){var n=r(10),i=n.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(a(n,t),t.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},o.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){(function(t){e.exports=function(){var e=e||function(e,n){var i;if("undefined"!==typeof window&&window.crypto&&(i=window.crypto),!i&&"undefined"!==typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&"undefined"!==typeof t&&t.crypto&&(i=t.crypto),!i)try{i=r(326)}catch(g){}var a=function(){if(i){if("function"===typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"===typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},c=s.lib={},u=c.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},l=c.WordArray=u.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var a=0;a>>2]>>>24-a%4*8&255;t[n+a>>>2]|=o<<24-(n+a)%4*8}else for(a=0;a>>2]=r[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=u.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r>>2]>>>24-i%4*8&255;n.push((a>>>4).toString(16)),n.push((15&a).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new l.init(r,t/2)}},h=f.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new l.init(r,t)}},p=f.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},m=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,a=n.sigBytes,o=this.blockSize,s=a/(4*o),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,u=e.min(4*c,a);if(c){for(var f=0;f1&&void 0!==arguments[1]?arguments[1]:n;return{type:t,meta:{batch:!0},payload:e}},t.enableBatching=function(e){return function t(r,n){return n&&n.meta&&n.meta.batch?n.payload.reduce(t,r):e(r,n)}},t.batchDispatchMiddleware=function(e){return function(t){return function(r){return r&&r.meta&&r.meta.batch&&function e(t,r){r.meta&&r.meta.batch?r.payload.forEach((function(r){e(t,r)})):t.dispatch(r)}(e,r),t(r)}}};var n=t.BATCH="BATCHING_REDUCER.BATCH"},function(e,t,r){"use strict";var n=r(0),i=r.n(n),a=(r(4),i.a.createContext(null));var o=function(e){e()},s={notify:function(){}};function c(){var e=o,t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],r=t;r;)e.push(r),r=r.next;return e},subscribe:function(e){var n=!0,i=r={callback:e,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function(){n&&null!==t&&(n=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var u=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=s,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=c())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=s)},e}();var l=function(e){var t=e.store,r=e.context,o=e.children,s=Object(n.useMemo)((function(){var e=new u(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),c=Object(n.useMemo)((function(){return t.getState()}),[t]);Object(n.useEffect)((function(){var e=s.subscription;return e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[s,c]);var l=r||a;return(i.a.createElement(l.Provider,{value:s},o))};r(56),r(262);var f="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?n.useLayoutEffect:n.useEffect;function d(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function h(e,t){if(d(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(r){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(r){}!e&&"undefined"!==typeof n&&"env"in n&&(e=Object({NODE_ENV:"production",PUBLIC_URL:"/webminidisc"}).DEBUG);return e},t.useColors=function(){if("undefined"!==typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(440)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}).call(this,r(25))},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),n(r(196)),n(r(198)),n(r(427)),n(r(240));var i=r(86);t.formatTimeFromFrames=i.formatTimeFromFrames},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";function n(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:h(e)?3:0}function c(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){return 2===s(e)?e.get(t):e[t]}function l(e,t,r){var n=s(e);2===n?e.set(t,r):3===n?(e.delete(t),e.add(r)):e[t]=r}function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return H&&e instanceof Map}function h(e){return W&&e instanceof Set}function p(e){return e.o||e.t}function m(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=G(e);delete t[K];for(var r=X(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=g),Object.freeze(e),t&&o(e,(function(e,t){return b(t,!0)}),!0),e)}function g(){n(2)}function v(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function y(e){var t=Q[e];return t||n(18,e),t}function w(e,t){Q[e]||(Q[e]=t)}function _(){return L}function k(e,t){t&&(y("Patches"),e.u=[],e.s=[],e.v=t)}function S(e){E(e),e.p.forEach(T),e.p=null}function E(e){e===L&&(L=e.l)}function x(e){return L={p:[],l:L,h:e,m:!0,_:0}}function T(e){var t=e[K];0===t.i||1===t.i?t.j():t.g=!0}function C(e,t){t._=t.p.length;var r=t.p[0],i=void 0!==e&&e!==r;return t.h.O||y("ES5").S(t,e,i),i?(r[K].P&&(S(t),n(4)),a(e)&&(e=O(t,e),t.l||M(t,e)),t.u&&y("Patches").M(r[K],e,t.u,t.s)):e=O(t,r,[]),S(t),t.u&&t.v(t.u,t.s),e!==$?e:void 0}function O(e,t,r){if(v(t))return t;var n=t[K];if(!n)return o(t,(function(i,a){return I(e,n,t,i,a,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return M(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=4===n.i||5===n.i?n.o=m(n.k):n.o;o(3===n.i?new Set(i):i,(function(t,a){return I(e,n,i,t,a,r)})),M(e,i,!1),r&&e.u&&y("Patches").R(n,r,e.u,e.s)}return n.o}function I(e,t,r,n,o,s){if(i(o)){var u=O(e,o,s&&t&&3!==t.i&&!c(t.D,n)?s.concat(n):void 0);if(l(r,n,u),!i(u))return;e.m=!1}if(a(o)&&!v(o)){if(!e.h.N&&e._<1)return;O(e,o),t&&t.A.l||M(e,o)}}function M(e,t,r){void 0===r&&(r=!1),e.h.N&&e.m&&b(t,r)}function A(e,t){var r=e[K];return(r?p(r):e)[t]}function P(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function j(e){e.P||(e.P=!0,e.l&&j(e.l))}function B(e){e.o||(e.o=m(e.t))}function R(e,t,r){var n=d(t)?y("MapSet").T(t,r):h(t)?y("MapSet").F(t,r):e.O?function(e,t){var r=Array.isArray(e),n={i:r?1:0,A:t?t.A:_(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=n,a=Y;r&&(i=[n],a=J);var o=Proxy.revocable(i,a),s=o.revoke,c=o.proxy;return n.k=c,n.j=s,c}(t,r):y("ES5").J(t,r);return(r?r.A:_()).p.push(n),n}function D(e){return i(e)||n(22,e),function e(t){if(!a(t))return t;var r,n=t[K],i=s(t);if(n){if(!n.P&&(n.i<4||!y("ES5").K(n)))return n.t;n.I=!0,r=N(t,i),n.I=!1}else r=N(t,i);return o(r,(function(t,i){n&&u(n.t,t)===i||l(r,t,e(i))})),3===i?new Set(r):r}(e)}function N(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return m(e)}function z(){function e(e,t){var r=a[e];return r?r.enumerable=t:a[e]=r={configurable:!0,enumerable:t,get:function(){var t=this[K];return Y.get(t,e)},set:function(t){var r=this[K];Y.set(r,e,t)}},r}function t(e){for(var t=e.length-1;t>=0;t--){var i=e[t][K];if(!i.P)switch(i.i){case 5:n(i)&&j(i);break;case 4:r(i)&&j(i)}}}function r(e){for(var t=e.t,r=e.k,n=X(r),i=n.length-1;i>=0;i--){var a=n[i];if(a!==K){var o=t[a];if(void 0===o&&!c(t,a))return!0;var s=r[a],u=s&&s[K];if(u?u.t!==o:!f(s,o))return!0}}var l=!!t[K];return n.length!==X(t).length+(l?0:1)}function n(e){var t=e.k;if(t.length!==e.t.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!r||r.get)}var a={};w("ES5",{J:function(t,r){var n=Array.isArray(t),i=function(t,r){if(t){for(var n=Array(r.length),i=0;i1?n-1:0),s=1;s1?r-1:0),a=1;a=0;r--){var n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}var a=y("Patches").$;return i(e)?a(e,t):this.produce(e,(function(e){return a(e,t.slice(r+1))}))},e}()),ee=Z.produce,te=(Z.produceWithPatches.bind(Z),Z.setAutoFreeze.bind(Z),Z.setUseProxies.bind(Z),Z.applyPatches.bind(Z),Z.createDraft.bind(Z),Z.finishDraft.bind(Z),ee),re=r(46);function ne(e,t){return e===t}function ie(e,t,r){if(null===t||null===r||t.length!==r.length)return!1;for(var n=t.length,i=0;i1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:ne,r=null,n=null;return function(){return ie(t,r,arguments)||(n=e.apply(null,arguments)),r=arguments,n}}));function oe(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(i){return"function"===typeof i?i(r,n,e):t(i)}}}}var se=oe();se.withExtraArgument=oe;var ce=se;r.d(t,"a",(function(){return ye})),r.d(t,"b",(function(){return ke})),r.d(t,"c",(function(){return ve}));function ue(){return(ue=Object.assign||function(e){for(var t=1;t=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function c(e,t,r,n){for(var i=0,a=Math.min(e.length,r),o=t;o=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"===typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initArray=function(e,t,r){if(n("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===r)for(i=0,a=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)i=s(e,r,r+6),this.words[n]|=i<>>26-a&4194303,(a+=24)>=26&&(a-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<>>26-a&4194303),this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,o=a%n,s=Math.min(a,a-o)+r,u=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,c=o/67108864|0;r.words[0]=s;for(var u=1;u>>26,f=67108863&c,d=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=d;h++){var p=u-h|0;l+=(o=(i=0|e.words[p])*(a=0|t.words[h])+f)/67108864|0,f=67108863&o}r.words[u]=0|f,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r.strip()}a.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,a=0,o=0;o>>24-i&16777215)||o!==this.length-1?u[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,o--)}for(0!==a&&(r=a.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=l[e],h=f[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:u[d-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return n("undefined"!==typeof o),this.toArrayLike(o,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i<=a,"byte array longer than desired length"),n(a>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(a),l=this.clone();if(c){for(s=0;!l.isZero();s++)o=l.andln(255),l.iushrn(8),u[s]=o;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var a=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==a&&o>26,this.words[o]=67108863&t;if(0===a&&o>>13,h=0|o[1],p=8191&h,m=h>>>13,b=0|o[2],g=8191&b,v=b>>>13,y=0|o[3],w=8191&y,_=y>>>13,k=0|o[4],S=8191&k,E=k>>>13,x=0|o[5],T=8191&x,C=x>>>13,O=0|o[6],I=8191&O,M=O>>>13,A=0|o[7],P=8191&A,j=A>>>13,B=0|o[8],R=8191&B,D=B>>>13,N=0|o[9],z=8191&N,F=N>>>13,L=0|s[0],U=8191&L,H=L>>>13,W=0|s[1],q=8191&W,$=W>>>13,V=0|s[2],K=8191&V,X=V>>>13,G=0|s[3],Q=8191&G,Y=G>>>13,J=0|s[4],Z=8191&J,ee=J>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],fe=8191&le,de=le>>>13,he=0|s[9],pe=8191&he,me=he>>>13;r.negative=e.negative^t.negative,r.length=19;var be=(u+(n=Math.imul(f,U))|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(d,U)|0))<<13)|0;u=((a=Math.imul(d,H))+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(p,U),i=(i=Math.imul(p,H))+Math.imul(m,U)|0,a=Math.imul(m,H);var ge=(u+(n=n+Math.imul(f,q)|0)|0)+((8191&(i=(i=i+Math.imul(f,$)|0)+Math.imul(d,q)|0))<<13)|0;u=((a=a+Math.imul(d,$)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,U),i=(i=Math.imul(g,H))+Math.imul(v,U)|0,a=Math.imul(v,H),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,q)|0,a=a+Math.imul(m,$)|0;var ve=(u+(n=n+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,X)|0)+Math.imul(d,K)|0))<<13)|0;u=((a=a+Math.imul(d,X)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,U),i=(i=Math.imul(w,H))+Math.imul(_,U)|0,a=Math.imul(_,H),n=n+Math.imul(g,q)|0,i=(i=i+Math.imul(g,$)|0)+Math.imul(v,q)|0,a=a+Math.imul(v,$)|0,n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,K)|0,a=a+Math.imul(m,X)|0;var ye=(u+(n=n+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,Q)|0))<<13)|0;u=((a=a+Math.imul(d,Y)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(S,U),i=(i=Math.imul(S,H))+Math.imul(E,U)|0,a=Math.imul(E,H),n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(_,q)|0,a=a+Math.imul(_,$)|0,n=n+Math.imul(g,K)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,K)|0,a=a+Math.imul(v,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,Y)|0;var we=(u+(n=n+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,Z)|0))<<13)|0;u=((a=a+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(T,U),i=(i=Math.imul(T,H))+Math.imul(C,U)|0,a=Math.imul(C,H),n=n+Math.imul(S,q)|0,i=(i=i+Math.imul(S,$)|0)+Math.imul(E,q)|0,a=a+Math.imul(E,$)|0,n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,K)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(v,Q)|0,a=a+Math.imul(v,Y)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Z)|0,a=a+Math.imul(m,ee)|0;var _e=(u+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(d,re)|0))<<13)|0;u=((a=a+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(I,U),i=(i=Math.imul(I,H))+Math.imul(M,U)|0,a=Math.imul(M,H),n=n+Math.imul(T,q)|0,i=(i=i+Math.imul(T,$)|0)+Math.imul(C,q)|0,a=a+Math.imul(C,$)|0,n=n+Math.imul(S,K)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(E,K)|0,a=a+Math.imul(E,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,Y)|0,n=n+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,Z)|0,a=a+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,a=a+Math.imul(m,ne)|0;var ke=(u+(n=n+Math.imul(f,ae)|0)|0)+((8191&(i=(i=i+Math.imul(f,oe)|0)+Math.imul(d,ae)|0))<<13)|0;u=((a=a+Math.imul(d,oe)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(P,U),i=(i=Math.imul(P,H))+Math.imul(j,U)|0,a=Math.imul(j,H),n=n+Math.imul(I,q)|0,i=(i=i+Math.imul(I,$)|0)+Math.imul(M,q)|0,a=a+Math.imul(M,$)|0,n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(C,K)|0,a=a+Math.imul(C,X)|0,n=n+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(E,Q)|0,a=a+Math.imul(E,Y)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Z)|0,a=a+Math.imul(_,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(v,re)|0,a=a+Math.imul(v,ne)|0,n=n+Math.imul(p,ae)|0,i=(i=i+Math.imul(p,oe)|0)+Math.imul(m,ae)|0,a=a+Math.imul(m,oe)|0;var Se=(u+(n=n+Math.imul(f,ce)|0)|0)+((8191&(i=(i=i+Math.imul(f,ue)|0)+Math.imul(d,ce)|0))<<13)|0;u=((a=a+Math.imul(d,ue)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(R,U),i=(i=Math.imul(R,H))+Math.imul(D,U)|0,a=Math.imul(D,H),n=n+Math.imul(P,q)|0,i=(i=i+Math.imul(P,$)|0)+Math.imul(j,q)|0,a=a+Math.imul(j,$)|0,n=n+Math.imul(I,K)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(M,K)|0,a=a+Math.imul(M,X)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,Y)|0)+Math.imul(C,Q)|0,a=a+Math.imul(C,Y)|0,n=n+Math.imul(S,Z)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(E,Z)|0,a=a+Math.imul(E,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,a=a+Math.imul(_,ne)|0,n=n+Math.imul(g,ae)|0,i=(i=i+Math.imul(g,oe)|0)+Math.imul(v,ae)|0,a=a+Math.imul(v,oe)|0,n=n+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(m,ce)|0,a=a+Math.imul(m,ue)|0;var Ee=(u+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;u=((a=a+Math.imul(d,de)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(z,U),i=(i=Math.imul(z,H))+Math.imul(F,U)|0,a=Math.imul(F,H),n=n+Math.imul(R,q)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(D,q)|0,a=a+Math.imul(D,$)|0,n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(j,K)|0,a=a+Math.imul(j,X)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,Y)|0,n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(C,Z)|0,a=a+Math.imul(C,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(E,re)|0,a=a+Math.imul(E,ne)|0,n=n+Math.imul(w,ae)|0,i=(i=i+Math.imul(w,oe)|0)+Math.imul(_,ae)|0,a=a+Math.imul(_,oe)|0,n=n+Math.imul(g,ce)|0,i=(i=i+Math.imul(g,ue)|0)+Math.imul(v,ce)|0,a=a+Math.imul(v,ue)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(m,fe)|0,a=a+Math.imul(m,de)|0;var xe=(u+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(d,pe)|0))<<13)|0;u=((a=a+Math.imul(d,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(z,q),i=(i=Math.imul(z,$))+Math.imul(F,q)|0,a=Math.imul(F,$),n=n+Math.imul(R,K)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(D,K)|0,a=a+Math.imul(D,X)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(j,Q)|0,a=a+Math.imul(j,Y)|0,n=n+Math.imul(I,Z)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(M,Z)|0,a=a+Math.imul(M,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(C,re)|0,a=a+Math.imul(C,ne)|0,n=n+Math.imul(S,ae)|0,i=(i=i+Math.imul(S,oe)|0)+Math.imul(E,ae)|0,a=a+Math.imul(E,oe)|0,n=n+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,ue)|0)+Math.imul(_,ce)|0,a=a+Math.imul(_,ue)|0,n=n+Math.imul(g,fe)|0,i=(i=i+Math.imul(g,de)|0)+Math.imul(v,fe)|0,a=a+Math.imul(v,de)|0;var Te=(u+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;u=((a=a+Math.imul(m,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(z,K),i=(i=Math.imul(z,X))+Math.imul(F,K)|0,a=Math.imul(F,X),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(D,Q)|0,a=a+Math.imul(D,Y)|0,n=n+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(j,Z)|0,a=a+Math.imul(j,ee)|0,n=n+Math.imul(I,re)|0,i=(i=i+Math.imul(I,ne)|0)+Math.imul(M,re)|0,a=a+Math.imul(M,ne)|0,n=n+Math.imul(T,ae)|0,i=(i=i+Math.imul(T,oe)|0)+Math.imul(C,ae)|0,a=a+Math.imul(C,oe)|0,n=n+Math.imul(S,ce)|0,i=(i=i+Math.imul(S,ue)|0)+Math.imul(E,ce)|0,a=a+Math.imul(E,ue)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,fe)|0,a=a+Math.imul(_,de)|0;var Ce=(u+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(v,pe)|0))<<13)|0;u=((a=a+Math.imul(v,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(z,Q),i=(i=Math.imul(z,Y))+Math.imul(F,Q)|0,a=Math.imul(F,Y),n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(D,Z)|0,a=a+Math.imul(D,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(j,re)|0,a=a+Math.imul(j,ne)|0,n=n+Math.imul(I,ae)|0,i=(i=i+Math.imul(I,oe)|0)+Math.imul(M,ae)|0,a=a+Math.imul(M,oe)|0,n=n+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,ue)|0)+Math.imul(C,ce)|0,a=a+Math.imul(C,ue)|0,n=n+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(E,fe)|0,a=a+Math.imul(E,de)|0;var Oe=(u+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0;u=((a=a+Math.imul(_,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(z,Z),i=(i=Math.imul(z,ee))+Math.imul(F,Z)|0,a=Math.imul(F,ee),n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(D,re)|0,a=a+Math.imul(D,ne)|0,n=n+Math.imul(P,ae)|0,i=(i=i+Math.imul(P,oe)|0)+Math.imul(j,ae)|0,a=a+Math.imul(j,oe)|0,n=n+Math.imul(I,ce)|0,i=(i=i+Math.imul(I,ue)|0)+Math.imul(M,ce)|0,a=a+Math.imul(M,ue)|0,n=n+Math.imul(T,fe)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(C,fe)|0,a=a+Math.imul(C,de)|0;var Ie=(u+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(E,pe)|0))<<13)|0;u=((a=a+Math.imul(E,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(z,re),i=(i=Math.imul(z,ne))+Math.imul(F,re)|0,a=Math.imul(F,ne),n=n+Math.imul(R,ae)|0,i=(i=i+Math.imul(R,oe)|0)+Math.imul(D,ae)|0,a=a+Math.imul(D,oe)|0,n=n+Math.imul(P,ce)|0,i=(i=i+Math.imul(P,ue)|0)+Math.imul(j,ce)|0,a=a+Math.imul(j,ue)|0,n=n+Math.imul(I,fe)|0,i=(i=i+Math.imul(I,de)|0)+Math.imul(M,fe)|0,a=a+Math.imul(M,de)|0;var Me=(u+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(C,pe)|0))<<13)|0;u=((a=a+Math.imul(C,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(z,ae),i=(i=Math.imul(z,oe))+Math.imul(F,ae)|0,a=Math.imul(F,oe),n=n+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,ue)|0)+Math.imul(D,ce)|0,a=a+Math.imul(D,ue)|0,n=n+Math.imul(P,fe)|0,i=(i=i+Math.imul(P,de)|0)+Math.imul(j,fe)|0,a=a+Math.imul(j,de)|0;var Ae=(u+(n=n+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,me)|0)+Math.imul(M,pe)|0))<<13)|0;u=((a=a+Math.imul(M,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(z,ce),i=(i=Math.imul(z,ue))+Math.imul(F,ce)|0,a=Math.imul(F,ue),n=n+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(D,fe)|0,a=a+Math.imul(D,de)|0;var Pe=(u+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(j,pe)|0))<<13)|0;u=((a=a+Math.imul(j,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(z,fe),i=(i=Math.imul(z,de))+Math.imul(F,fe)|0,a=Math.imul(F,de);var je=(u+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(D,pe)|0))<<13)|0;u=((a=a+Math.imul(D,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863;var Be=(u+(n=Math.imul(z,pe))|0)+((8191&(i=(i=Math.imul(z,me))+Math.imul(F,pe)|0))<<13)|0;return u=((a=Math.imul(F,me))+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,c[0]=be,c[1]=ge,c[2]=ve,c[3]=ye,c[4]=we,c[5]=_e,c[6]=ke,c[7]=Se,c[8]=Ee,c[9]=xe,c[10]=Te,c[11]=Ce,c[12]=Oe,c[13]=Ie,c[14]=Me,c[15]=Ae,c[16]=Pe,c[17]=je,c[18]=Be,0!==u&&(c[19]=u,r.length++),r};function p(e,t,r){return(new m).mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(h=d),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?h(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a>>26)|0)>>>26,o&=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1;return n},m.prototype.permute=function(e,t,r,n,i,a){for(var o=0;o>>=1)i++;return 1<>>=13,r[2*o+1]=8191&a,a>>>=13;for(o=2*t;o>=26,t+=i/67108864|0,t+=a>>>26,this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<o)for(this.length-=o,u=0;u=0&&(0!==l||u>=i);u--){var f=0|this.words[u];this.words[u]=l<<26-a|f>>>a,l=f&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&a}for(;i>26,this.words[i+r]=67108863&a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,c=n.length-i.length;if("mod"!==t){(s=new a(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(i,d,f);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},a.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),o=new a(0),s=new a(0),c=new a(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;0===(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(l),o.isub(f)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),o.isub(c)):(r.isub(t),s.isub(i),c.isub(o))}return{a:s,b:c,gcd:r.iushln(u)}},a.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,o=new a(1),s=new a(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;0===(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var f=0,d=1;0===(r.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s)):(r.isub(t),s.isub(o))}return(i=0===t.cmpn(1)?o:s).cmpn(0)<0&&i.iadd(e),i},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0===(1&this.words[0])},a.prototype.isOdd=function(){return 1===(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new k(e)},a.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"===typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},i(v,g),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=a}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return b[e]=t,t},k.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var s=new a(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new a(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var f=this.pow(l,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=o;0!==h.cmp(s);){for(var m=h,b=0;0!==m.cmp(s);b++)m=m.redSqr();n(b=0;n--){for(var u=t.words[n],l=c-1;l>=0;l--){var f=u>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==o?(o<<=1,o|=f,(4===++s||0===n&&0===l)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}c=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new S(e)},i(S,k),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(360)(e))},function(e,t){var r,n,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"===typeof setTimeout?setTimeout:a}catch(e){r=a}try{n="function"===typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&h())}function h(){if(!l){var e=s(d);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f1)for(var r=1;r=r)return r;i+=2}return i}for(;0!==e[i];){if(i>=r)return r;i++}return i}static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.substr(0,t)}static swapBytes(e){const t=e.length;if(0!==(1&t))throw new Error("Buffer length must be even");for(let r=0;r>a;const s=8-a,c=n-s;return c<0?o>>=8-a-n:c>0&&(o<<=c,o|=i.getBitAllignedNumber(e,t,r+s,c)),o}static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)}static a2hex(e){const t=[];for(let r=0,n=e.length;r0!==(e[t]&1<e.trim().toLowerCase());if(t.length>=1){const e=parseFloat(t[0]);return 2===t.length&&"db"===t[1]?{dB:e,ratio:o(e)}:{dB:a(e),ratio:e}}}},function(e,t,r){"use strict";r(1);var n=r(65);t.a=function(){for(var e=arguments.length,t=new Array(e),r=0;r<+~=|^:(),"'`\s])/g,g="undefined"!==typeof CSS&&CSS.escape,v=function(e){return g?g(e):e.replace(b,"\\$1")},y=function(){function e(e,t,r){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var n=r.sheet,i=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var i=t;r&&!1===r.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var a=null==i||!1===i,o=e in this.style;if(a&&!o&&!n)return this;var s=a&&o;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var c=this.options.sheet;return c&&c.attached,this},e}(),w=function(e){function t(t,r,n){var i;(i=e.call(this,t,r,n)||this).selectorText=void 0,i.id=void 0,i.renderable=void 0;var a=n.selector,o=n.scoped,c=n.sheet,u=n.generateId;return a?i.selectorText=a:!1!==o&&(i.id=u(Object(s.a)(Object(s.a)(i)),c),i.selectorText="."+v(i.id)),i}Object(o.a)(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!==typeof r?e[t]=r:Array.isArray(r)&&(e[t]=h(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Object(n.a)({},e,{allowEmpty:!0}):e;return m(this.selectorText,this.style,r)},Object(a.a)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(y),_={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new w(e,t,r)}},k={indent:1,children:!0},S=/@([\w-]+)/,E=function(){function e(e,t,r){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e;var i=e.match(S);for(var a in this.at=i?i[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new K(Object(n.a)({},r,{parent:this})),t)this.rules.add(a,t[a]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.toString=function(e){if(void 0===e&&(e=k),null==e.indent&&(e.indent=k.indent),null==e.children&&(e.children=k.children),!1===e.children)return this.query+" {}";var t=this.rules.toString(e);return t?this.query+" {\n"+t+"\n}":""},e}(),x=/@media|@supports\s+/,T={onCreateRule:function(e,t,r){return x.test(e)?new E(e,t,r):null}},C={indent:1,children:!0},O=/@keyframes\s+([\w-]+)/,I=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var i=e.match(O);i&&i[1]?this.name=i[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var a=r.scoped,o=r.sheet,s=r.generateId;for(var c in this.id=!1===a?this.name:v(s(this,o)),this.rules=new K(Object(n.a)({},r,{parent:this})),t)this.rules.add(c,t[c],Object(n.a)({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){if(void 0===e&&(e=C),null==e.indent&&(e.indent=C.indent),null==e.children&&(e.children=C.children),!1===e.children)return this.at+" "+this.id+" {}";var t=this.rules.toString(e);return t&&(t="\n"+t+"\n"),this.at+" "+this.id+" {"+t+"}"},e}(),M=/@keyframes\s+/,A=/\$([\w-]+)/g,P=function(e,t){return"string"===typeof e?e.replace(A,(function(e,r){return r in t?t[r]:e})):e},j=function(e,t,r){var n=e[t],i=P(n,r);i!==n&&(e[t]=i)},B={onCreateRule:function(e,t,r){return"string"===typeof e&&M.test(e)?new I(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&j(e,"animation-name",r.keyframes),"animation"in e&&j(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return P(e,n.keyframes);default:return e}}},R=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i=this.index)t.push(e);else for(var n=0;nr)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=Object(c.a)(t,["attached"]),i="",a=0;a0){var r=function(e,t){for(var r=0;rt.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if((r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e))&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"===typeof n){var i=function(e){for(var t=se(),r=0;rr?r:t},de=function(){function e(e){this.getPropertyValue=ne,this.setProperty=ie,this.removeProperty=ae,this.setSelector=oe,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,this.cssRules=[],e&&Y.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var a=ue();a&&this.element.setAttribute("nonce",a)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=ce(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"===typeof r.nodeType){var i=r,a=i.parentNode;a&&a.insertBefore(e,i.nextSibling)}else se().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r>>2];e.sigBytes-=t}},m=(r.BlockCipher=l.extend({cfg:l.cfg.extend({mode:h,padding:p}),reset:function(){var e;l.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),r.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),b=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?i.create([1398893684,1701076831]).concat(r).concat(t):t).toString(c)},parse:function(e){var t,r=c.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=i.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),m.create({ciphertext:r,salt:t})}},g=r.SerializableCipher=n.extend({cfg:n.extend({format:b}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),a=i.finalize(t),o=i.cfg;return m.create({ciphertext:a,key:r,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(t.kdf={}).OpenSSL={execute:function(e,t,r,n){n||(n=i.random(8));var a=u.create({keySize:t+r}).compute(e,n),o=i.create(a.words.slice(t),4*r);return a.sigBytes=4*t,m.create({key:a,iv:o,salt:n})}},y=r.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:v}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=i.iv;var a=g.encrypt.call(this,e,t,i.key,n);return a.mixIn(i),a},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);return n.iv=i.iv,g.decrypt.call(this,e,t,i.key,n)}})}()))}()},function(e,t,r){"use strict";function n(e,t,r,n,i){var a={};return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),a),i&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}r.d(t,"a",(function(){return n}))},function(e,t,r){var n=r(503);function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=r(177)},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.FourCcToken=void 0;const n=r(26),i=/^[\x21-\x7e\xa9][\x20-\x7e\x00()]{3}/;t.FourCcToken={len:4,get:(e,r)=>{const a=e.toString("binary",r,r+t.FourCcToken.len);if(!a.match(i))throw new Error(`FourCC contains invalid characters: ${n.default.a2hex(a)} "${a}"`);return a},put:(t,r,n)=>{const i=e.from(n,"binary");if(4!==i.length)throw new Error("Invalid length");return i.copy(t,r)}}}).call(this,r(10).Buffer)},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(182),i=(r(0),r(64));function a(){return Object(n.a)()||i.a}},function(e,t,r){"use strict";function n(e,t){"function"===typeof e?e(t):e&&(e.current=t)}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BasicParser=void 0;t.BasicParser=class{init(e,t,r){return this.metadata=e,this.tokenizer=t,this.options=r,this}}},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){"use strict";var n=t,i=r(24),a=r(39),o=r(225);n.assert=a,n.toArray=o.toArray,n.zero2=o.zero2,n.toHex=o.toHex,n.encode=o.encode,n.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<(i>>1)-1?(i>>1)-c:c,a.isubn(s)):s=0,n[o]=s,a.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var a,o,s,c=e.andln(3)+n&3,u=t.andln(3)+i&3;if(3===c&&(c=-1),3===u&&(u=-1),0===(1&c))a=0;else a=3!==(s=e.andln(7)+n&7)&&5!==s||2!==u?c:-c;if(r[0].push(a),0===(1&u))o=0;else o=3!==(s=t.andln(7)+i&7)&&5!==s||2!==c?u:-u;r[1].push(o),2*n===a+1&&(n=1-n),2*i===o+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"===typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(0),i=r(81);function a(){return n.useContext(i.a)}},function(e,t,r){"use strict";function n(e){var t=e.props,r=e.states,n=e.muiFormControl;return r.reduce((function(e,r){return e[r]=t[r],n&&"undefined"===typeof t[r]&&(e[r]=n[r]),e}),{})}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";var n=r(266);var i=r(267);function a(e,t){return Object(n.a)(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(c){i=!0,a=c}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}}(e,t)||Object(i.a)()}r.d(t,"a",(function(){return a}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(0),i="undefined"!==typeof window?n.useLayoutEffect:n.useEffect;function a(e){var t=n.useRef(e);return i((function(){t.current=e})),n.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return i}));var n=function(e){return e.scrollTop};function i(e,t){var r=e.timeout,n=e.style,i=void 0===n?{}:n;return{duration:i.transitionDuration||"number"===typeof r?r:r[t.mode]||0,delay:i.transitionDelay}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return b})),r.d(t,"b",(function(){return f})),r.d(t,"c",(function(){return u})),r.d(t,"d",(function(){return m})),r.d(t,"e",(function(){return s}));var n=r(179),i=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function o(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function s(e,t,r){var i;if("function"===typeof t&&"function"===typeof r||"function"===typeof r&&"function"===typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"===typeof t&&"undefined"===typeof r&&(r=t,t=void 0),"undefined"!==typeof r){if("function"!==typeof r)throw new Error("Expected the enhancer to be a function.");return r(s)(e,t)}if("function"!==typeof e)throw new Error("Expected the reducer to be a function.");var c=e,u=t,l=[],f=l,d=!1;function h(){f===l&&(f=l.slice())}function p(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return u}function m(e){if("function"!==typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return h(),f.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,h();var r=f.indexOf(e);f.splice(r,1),l=null}}}function b(e){if(!o(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,u=c(u,e)}finally{d=!1}for(var t=l=f,r=0;r0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.duration,s=void 0===r?a.standard:r,c=t.easing,u=void 0===c?i.easeInOut:c,l=t.delay,f=void 0===l?0:l;Object(n.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:o(s)," ").concat(u," ").concat("string"===typeof f?f:o(f))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},function(e,t,r){"use strict";var n=r(39),i=r(9);function a(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"===typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),i=0;i>6|192,r[n++]=63&o|128):a(e,i)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=63&o|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=63&o|128)}else for(i=0;i>>0}return o},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=a>>>16&255,r[i+2]=a>>>8&255,r[i+3]=255&a):(r[i+3]=a>>>24,r[i+2]=a>>>16&255,r[i+1]=a>>>8&255,r[i]=255&a)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],a=n+e[t+1]>>>0,o=(a>>0,e[t+1]=a},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,a,o,s){var c=0,u=t;return c+=(u=u+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,a,o,s){return t+n+a+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,a,o,s,c,u){var l=0,f=t;return l+=(f=f+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,a,o,s,c,u){return t+n+a+s+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";var n=r(1),i=r(0),a=r.n(i),o=r(2),s=(r(4),r(3)),c=r(5),u=r(7),l=i.forwardRef((function(e,t){var r=e.children,a=e.classes,c=e.className,l=e.color,f=void 0===l?"inherit":l,d=e.component,h=void 0===d?"svg":d,p=e.fontSize,m=void 0===p?"default":p,b=e.htmlColor,g=e.titleAccess,v=e.viewBox,y=void 0===v?"0 0 24 24":v,w=Object(o.a)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return(i.createElement(h,Object(n.a)({className:Object(s.default)(a.root,c,"inherit"!==f&&a["color".concat(Object(u.a)(f))],"default"!==m&&a["fontSize".concat(Object(u.a)(m))]),focusable:"false",viewBox:y,color:b,"aria-hidden":!g||void 0,role:g?"img":void 0,ref:t},w),r,g?i.createElement("title",null,g):null))}));l.muiName="SvgIcon";var f=Object(c.a)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(l);function d(e,t){var r=function(t,r){return a.a.createElement(f,Object(n.a)({ref:r},t),e)};return r.muiName=f.muiName,a.a.memo(a.a.forwardRef(r))}r.d(t,"a",(function(){return d}))},function(e,t,r){"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};Object(l.a)(this,e),this.options=t}return Object(f.a)(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new p.b;var r=Object(n.a)();return(h.a.createElement(m.b,Object(u.a)({sheetsManager:t,serverGenerateClassName:r,sheetsRegistry:this.sheetsRegistry},this.options),e))}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return h.a.createElement("style",Object(u.a)({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}(),g=r(594),v=r(110),y=r(601),w=r(182),_=r(546),k=r(2),S=(r(4),r(56)),E=r.n(S);function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,r=function(e){var r=h.a.forwardRef((function(r,n){var i=r.innerRef,a=Object(k.a)(r,["innerRef"]),o=Object(w.a)()||t;return h.a.createElement(e,Object(u.a)({theme:o,ref:i||n},a))}));return E()(r,e),r};return r}var T=x();r.d(t,"createGenerateClassName",(function(){return n.a})),r.d(t,"createStyles",(function(){return i})),r.d(t,"getThemeProps",(function(){return a.a})),r.d(t,"jssPreset",(function(){return o.a})),r.d(t,"makeStyles",(function(){return s.a})),r.d(t,"mergeClasses",(function(){return c.a})),r.d(t,"ServerStyleSheets",(function(){return b})),r.d(t,"styled",(function(){return g.a})),r.d(t,"StylesProvider",(function(){return m.b})),r.d(t,"sheetsManager",(function(){return v.b})),r.d(t,"StylesContext",(function(){return v.a})),r.d(t,"ThemeProvider",(function(){return y.a})),r.d(t,"useTheme",(function(){return w.a})),r.d(t,"withStyles",(function(){return _.a})),r.d(t,"withTheme",(function(){return T})),r.d(t,"withThemeCreator",(function(){return x}))},function(e,t,r){"use strict";e.exports=r(310)},function(e,t,r){"use strict";function n(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function n(){for(var n=arguments.length,i=new Array(n),a=0;a=0||(i[r]=e[r]);return i}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";var n=r(287),i=Object(n.a)();t.a=i},function(e,t,r){"use strict";var n=r(178);t.a=function(e,t){return t?Object(n.a)(e,t,{clone:!1}):e}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(0);function i(e,t){return n.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},function(e,t,r){"use strict";var n=r(0),i=n.createContext();t.a=i},function(e,t,r){"use strict";function n(e,t){for(var r=0;r""!==e),r=[];for(let i of t)/^\d+$/.test(i)&&!isNaN(parseInt(i,10))&&(i=n.Genres[i]),r.push(i);return r.filter(e=>void 0!==e).join("/")}static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t}static normalizeTrack(e){const t=e.toString().split("/");return{no:parseInt(t[0],10)||null,of:parseInt(t[1],10)||null}}mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r=this.getCommonName(e.id);return r?{id:r,value:e.value}:null}getCommonName(e){return this.tagMap[e]}postMap(e,t){}}t.CommonTagMapper=i,i.maxRatingScore=1},function(e,t,r){"use strict";function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";function n(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(n(e.value)&&""!==e.value||t&&n(e.defaultValue)&&""!==e.defaultValue)}function a(e){return e.startAdornment}r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return a}))},function(e,t,r){"use strict";r.d(t,"b",(function(){return a}));var n=r(0),i=n.createContext();function a(){return n.useContext(i)}t.a=i},function(e,t,r){"use strict";var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i="object"===("undefined"===typeof window?"undefined":n(window))&&"object"===("undefined"===typeof document?"undefined":n(document))&&9===document.nodeType;t.a=i},function(e,t,r){"use strict";var n=r(1),i=r(2),a=r(0),o=(r(4),r(3)),s=r(5),c=r(7),u={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},l=a.forwardRef((function(e,t){var r=e.align,s=void 0===r?"inherit":r,l=e.classes,f=e.className,d=e.color,h=void 0===d?"initial":d,p=e.component,m=e.display,b=void 0===m?"initial":m,g=e.gutterBottom,v=void 0!==g&&g,y=e.noWrap,w=void 0!==y&&y,_=e.paragraph,k=void 0!==_&&_,S=e.variant,E=void 0===S?"body1":S,x=e.variantMapping,T=void 0===x?u:x,C=Object(i.a)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),O=p||(k?"p":T[E]||u[E])||"span";return a.createElement(O,Object(n.a)({className:Object(o.default)(l.root,f,"inherit"!==E&&l[E],"initial"!==h&&l["color".concat(Object(c.a)(h))],w&&l.noWrap,v&&l.gutterBottom,k&&l.paragraph,"inherit"!==s&&l["align".concat(Object(c.a)(s))],"initial"!==b&&l["display".concat(Object(c.a)(b))]),ref:t},C))}));t.a=Object(s.a)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(l)},,,function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{c(n.next(e))}catch(t){a(t)}}function s(e){try{c(n.throw(e))}catch(t){a(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=r(10),c=o(r(318));function u(e,t){if(!e)throw t=t||"no message provided",new Error("Assertion failed: "+t)}function l(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r0&&r.push(e>>>24),t>1&&r.push(e>>>16&255),t>2&&r.push(e>>>8&255),t>3&&r.push(255&e),r}function h(e,t){return(t+e).slice(-t.length)}function p(e){return c.default.encode(e,"SJIS")}t.sleep=function(e){return n(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,new Promise((function(t){return setTimeout(t,e)}))];case 1:return t.sent(),[2]}}))}))},t.withTimeout=function(e,t){var r=this;return new Promise((function(a,o){return n(r,void 0,void 0,(function(){var r,n;return i(this,(function(i){switch(i.label){case 0:return r=setTimeout((function(){o(new Error("Operation timed out"))}),e),[4,t()];case 1:return n=i.sent(),clearTimeout(r),a(n),[2]}}))}))}))},t.assert=u,t.assertBigInt=function(e,t){if("bigint"===typeof e)return e;throw u(!1,"Expected BigInt type - "+t)},t.assertNumber=function(e,t){if("number"===typeof e)return e;throw u(!1,"Expected number type - "+t)},t.assertString=function(e,t){if("string"===typeof e)return e;throw u(!1,"Expected string type - "+t)},t.assertUint8Array=function(e,t){if(e instanceof Uint8Array)return e;throw u(!1,"Expected Uint8Array type - "+t)},t.stringToCharCodeArray=function(e){for(var t=new Array(e.length),r=0;r0;)r=d(e.words[i],Math.min(4,t)),n.set(r,a),t-=r.length,a+=r.length,i++;return n},t.timeToFrames=function(e){return u(4===e.length),512*(60*(60*e[0]+e[1])+e[2])+e[3]},t.pad=h,t.formatTimeFromFrames=function(e,t){void 0===t&&(t=!0);var r=e%512,n=(e=(e-r)/512)%60,i=(e=(e-n)/60)%60;return h(e=(e-i)/60,"00")+":"+h(i,"00")+":"+h(n,"00")+(t?"+"+h(r,"000"):"")},t.sanitizeTrackTitle=function(e){return encodeURIComponent(e)},t.encodeToSJIS=p,t.decodeFromSJIS=function(e){return c.default.decode(s.Buffer.from(e),"SJIS")},t.getLengthAfterEncodingToSJIS=function(e){return p(e).length}},function(e,t,r){"use strict";(function(t,n){var i=r(14).Buffer,a=t.crypto||t.msCrypto;a&&a.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var r=i.allocUnsafe(e);if(e>0)if(e>65536)for(var o=0;o=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,r){!function(t,n){var i;e.exports=(i=r(15),function(){var e=i,t=e.lib.WordArray;e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var r=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a>>6-o%4*2,u=s|c;i[a>>>2]|=u<<24-a%4*8,a++}return t.create(i,a)}(e,r,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),i.enc.Base64)}()},function(e,t,r){!function(t,n){var i;e.exports=(i=r(15),function(e){var t=i,r=t.lib,n=r.WordArray,a=r.Hasher,o=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=o.MD5=a.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var a=this._hash.words,o=e[t+0],c=e[t+1],h=e[t+2],p=e[t+3],m=e[t+4],b=e[t+5],g=e[t+6],v=e[t+7],y=e[t+8],w=e[t+9],_=e[t+10],k=e[t+11],S=e[t+12],E=e[t+13],x=e[t+14],T=e[t+15],C=a[0],O=a[1],I=a[2],M=a[3];C=u(C,O,I,M,o,7,s[0]),M=u(M,C,O,I,c,12,s[1]),I=u(I,M,C,O,h,17,s[2]),O=u(O,I,M,C,p,22,s[3]),C=u(C,O,I,M,m,7,s[4]),M=u(M,C,O,I,b,12,s[5]),I=u(I,M,C,O,g,17,s[6]),O=u(O,I,M,C,v,22,s[7]),C=u(C,O,I,M,y,7,s[8]),M=u(M,C,O,I,w,12,s[9]),I=u(I,M,C,O,_,17,s[10]),O=u(O,I,M,C,k,22,s[11]),C=u(C,O,I,M,S,7,s[12]),M=u(M,C,O,I,E,12,s[13]),I=u(I,M,C,O,x,17,s[14]),C=l(C,O=u(O,I,M,C,T,22,s[15]),I,M,c,5,s[16]),M=l(M,C,O,I,g,9,s[17]),I=l(I,M,C,O,k,14,s[18]),O=l(O,I,M,C,o,20,s[19]),C=l(C,O,I,M,b,5,s[20]),M=l(M,C,O,I,_,9,s[21]),I=l(I,M,C,O,T,14,s[22]),O=l(O,I,M,C,m,20,s[23]),C=l(C,O,I,M,w,5,s[24]),M=l(M,C,O,I,x,9,s[25]),I=l(I,M,C,O,p,14,s[26]),O=l(O,I,M,C,y,20,s[27]),C=l(C,O,I,M,E,5,s[28]),M=l(M,C,O,I,h,9,s[29]),I=l(I,M,C,O,v,14,s[30]),C=f(C,O=l(O,I,M,C,S,20,s[31]),I,M,b,4,s[32]),M=f(M,C,O,I,y,11,s[33]),I=f(I,M,C,O,k,16,s[34]),O=f(O,I,M,C,x,23,s[35]),C=f(C,O,I,M,c,4,s[36]),M=f(M,C,O,I,m,11,s[37]),I=f(I,M,C,O,v,16,s[38]),O=f(O,I,M,C,_,23,s[39]),C=f(C,O,I,M,E,4,s[40]),M=f(M,C,O,I,o,11,s[41]),I=f(I,M,C,O,p,16,s[42]),O=f(O,I,M,C,g,23,s[43]),C=f(C,O,I,M,w,4,s[44]),M=f(M,C,O,I,S,11,s[45]),I=f(I,M,C,O,T,16,s[46]),C=d(C,O=f(O,I,M,C,h,23,s[47]),I,M,o,6,s[48]),M=d(M,C,O,I,v,10,s[49]),I=d(I,M,C,O,x,15,s[50]),O=d(O,I,M,C,b,21,s[51]),C=d(C,O,I,M,S,6,s[52]),M=d(M,C,O,I,p,10,s[53]),I=d(I,M,C,O,_,15,s[54]),O=d(O,I,M,C,c,21,s[55]),C=d(C,O,I,M,y,6,s[56]),M=d(M,C,O,I,T,10,s[57]),I=d(I,M,C,O,g,15,s[58]),O=d(O,I,M,C,E,21,s[59]),C=d(C,O,I,M,m,6,s[60]),M=d(M,C,O,I,k,10,s[61]),I=d(I,M,C,O,h,15,s[62]),O=d(O,I,M,C,w,21,s[63]),a[0]=a[0]+C|0,a[1]=a[1]+O|0,a[2]=a[2]+I|0,a[3]=a[3]+M|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var a=e.floor(n/4294967296),o=n;r[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),r[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,n,i,a,o){var s=e+(t&r|~t&n)+i+o;return(s<>>32-a)+t}function l(e,t,r,n,i,a,o){var s=e+(t&n|r&~n)+i+o;return(s<>>32-a)+t}function f(e,t,r,n,i,a,o){var s=e+(t^r^n)+i+o;return(s<>>32-a)+t}function d(e,t,r,n,i,a,o){var s=e+(r^(t|~n))+i+o;return(s<>>32-a)+t}t.MD5=a._createHelper(c),t.HmacMD5=a._createHmacHelper(c)}(Math),i.MD5)}()},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.APEv2Parser=void 0;const n=r(19),i=r(54),a=r(26),o=r(38),s=r(446),c=r(13),u=n("music-metadata:parser:APEv2");class l extends o.BasicParser{constructor(){super(...arguments),this.ape={}}static tryParseApeHeader(e,t,r){const n=new l;return n.init(e,t,r),n.tryParseApeHeader()}static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.totalFrames-1):0;return t+=e.finalFrameBlocks,t/e.sampleRate}static async findApeFooterOffset(t,r){const n=e.alloc(s.TagFooter.len);await t.randomRead(n,0,s.TagFooter.len,r-s.TagFooter.len);const i=s.TagFooter.get(n,0);if("APETAGEX"===i.ID)return u(`APE footer header at offset=${r}`),{footer:i,offset:r-i.size}}static parseTagFooter(e,t,r){const n=s.TagFooter.get(t,t.length-s.TagFooter.len);if("APETAGEX"!==n.ID)throw new Error("Unexpected APEv2 Footer ID preamble value.");i.fromBuffer(t);const a=new l;return a.init(e,i.fromBuffer(t),r),a.parseTags(n)}async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokenizer.fileInfo.size-this.tokenizer.position0?this.parseDescriptorExpansion(t):this.parseHeader());return await this.tokenizer.ignore(r.forwardBytes),this.tryParseApeHeader()}async parseTags(t){const r=e.alloc(256);let n=t.size-s.TagFooter.len;u(`Parse APE tags at offset=${this.tokenizer.position}, size=${n}`);for(let i=0;i2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,r){var n,i,o,s;if("string"===typeof t&&(i="not ",t.substr(!o||o<0?0:+o,i.length)===i)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))s="The ".concat(e," ").concat(n," ").concat(a(t,"type"));else{var c=function(e,t,r){return"number"!==typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(c," ").concat(n," ").concat(a(t,"type"))}return s+=". Received type ".concat(typeof r)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=n},function(e,t,r){"use strict";(function(t){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var i=r(250),a=r(254);r(9)(u,i);for(var o=n(a.prototype),s=0;s=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}},function(e,t,r){"use strict";r.d(t,"b",(function(){return u}));var n=r(51),i=r(1),a=r(55),o=(r(4),r(65)),s={xs:0,sm:600,md:960,lg:1280,xl:1920},c={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(s[e],"px)")}};function u(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||c;return t.reduce((function(e,i,a){return e[n.up(n.keys[a])]=r(t[a]),e}),{})}if("object"===Object(a.a)(t)){var i=e.theme.breakpoints||c;return Object.keys(t).reduce((function(e,n){return e[i.up(n)]=r(t[n]),e}),{})}return r(t)}t.a=function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||c,a=n.keys.reduce((function(r,a){return t[a]&&((r=r||{})[n.up(a)]=e(Object(i.a)({theme:t.theme},t[a]))),r}),null);return Object(o.a)(r,a)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(Object(n.a)(e.filterProps)),t}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(28);function i(e){return Object(n.a)(e).defaultView||window}},function(e,t,r){"use strict";var n=r(0),i=r.n(n);t.a=i.a.createContext(null)},function(e,t,r){"use strict";var n=r(9),i=r(156),a=r(161),o=r(162),s=r(57);function c(e){s.call(this,"digest"),this._hash=e}n(c,s),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new a:new c(o(e))}},function(e,t,r){"use strict";var n,i="object"===typeof Reflect?Reflect:null,a=i&&"function"===typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function u(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,r,n){var i,a,o,s;if(u(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),void 0===o)o=a[t]=r,++e._eventsCount;else if("function"===typeof o?o=a[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=l(e))>0&&o.length>i&&!o.warned){o.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=o.length,s=c,console&&console.warn&&console.warn(s)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=d.bind(n);return i.listener=r,n.wrapFn=i,i}function p(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"===typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var c=i[e];if(void 0===c)return!1;if("function"===typeof c)a(c,this,t);else{var u=c.length,l=b(c,u);for(r=0;r=0;a--)if(r[a]===t||r[a].listener===t){o=r[a].listener,i=a;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){(function(e){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"===typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"===typeof e},t.isString=function(e){return"string"===typeof e},t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"===typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"===typeof e},t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=e.isBuffer}).call(this,r(10).Buffer)},function(e,t,r){"use strict";var n=r(14).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!==typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function o(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--n=0)return i>0&&(e.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,r){(function(t){e.exports=function(e,r){for(var n=Math.min(e.length,r.length),i=new t(n),a=0;a=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,a=8;a0?this.parseExtendedHeaderData(t,e.size):this.parseId3Data(this.id3Header.size-e.size)}async parseExtendedHeaderData(t,r){const n=e.alloc(t);return await this.tokenizer.readBuffer(n,{length:t}),this.parseId3Data(this.id3Header.size-r)}async parseId3Data(t){const r=e.alloc(t);await this.tokenizer.readBuffer(r,{length:t});for(const e of this.parseMetadata(r))if("TXXX"===e.id){if(e.value)for(const t of e.value.text)this.addTag(s.makeDescriptionTagName(e.id,e.value.description),t)}else if("COM"===e.id)for(const t of e.value)this.addTag(s.makeDescriptionTagName(e.id,t.description),t.text);else if("COMM"===e.id)for(const t of e.value)this.addTag(s.makeDescriptionTagName(e.id,t.description),t);else if(Array.isArray(e.value))for(const t of e.value)this.addTag(e.id,t);else this.addTag(e.id,e.value)}addTag(e,t){this.metadata.addTag(this.headerType,e,t)}parseMetadata(e){let t=0;const r=[];for(;t!==e.length;){const n=s.getFrameHeaderLength(this.id3Header.version.major);if(t+n>e.length){this.metadata.addWarning("Illegal ID3v2 tag length");break}const i=e.slice(t,t+=n),a=s.readFrameHeader(i,this.id3Header.version.major);if(!a.id.match(/[A-Z]/g)){this.metadata.addWarning(`Invalid ID3v2.${this.id3Header.version.major} frame-header-ID`);break}const o=e.slice(t,t+=a.length),c=s.readFrameData(o,a,this.id3Header.version.major,!this.options.skipCovers,this.metadata);c&&r.push({id:a.id,value:c})}return r}}t.ID3v2Parser=s}).call(this,r(10).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextEncodingToken=t.ExtendedHeader=t.ID3v2Header=t.UINT32SYNCSAFE=t.AttachedPictureType=void 0;const n=r(13),i=r(26);!function(e){e[e.Other=0]="Other",e[e["32x32 pixels 'file icon' (PNG only)"]=1]="32x32 pixels 'file icon' (PNG only)",e[e["Other file icon"]=2]="Other file icon",e[e["Cover (front)"]=3]="Cover (front)",e[e["Cover (back)"]=4]="Cover (back)",e[e["Leaflet page"]=5]="Leaflet page",e[e["Media (e.g. label side of CD)"]=6]="Media (e.g. label side of CD)",e[e["Lead artist/lead performer/soloist"]=7]="Lead artist/lead performer/soloist",e[e["Artist/performer"]=8]="Artist/performer",e[e.Conductor=9]="Conductor",e[e["Band/Orchestra"]=10]="Band/Orchestra",e[e.Composer=11]="Composer",e[e["Lyricist/text writer"]=12]="Lyricist/text writer",e[e["Recording Location"]=13]="Recording Location",e[e["During recording"]=14]="During recording",e[e["During performance"]=15]="During performance",e[e["Movie/video screen capture"]=16]="Movie/video screen capture",e[e["A bright coloured fish"]=17]="A bright coloured fish",e[e.Illustration=18]="Illustration",e[e["Band/artist logotype"]=19]="Band/artist logotype",e[e["Publisher/Studio logotype"]=20]="Publisher/Studio logotype"}(t.AttachedPictureType||(t.AttachedPictureType={})),t.UINT32SYNCSAFE={get:(e,t)=>127&e[t+3]|e[t+2]<<7|e[t+1]<<14|e[t]<<21,len:4},t.ID3v2Header={len:10,get:(e,r)=>({fileIdentifier:new n.StringType(3,"ascii").get(e,r),version:{major:n.INT8.get(e,r+3),revision:n.INT8.get(e,r+4)},flags:{unsynchronisation:i.default.strtokBITSET.get(e,r+5,7),isExtendedHeader:i.default.strtokBITSET.get(e,r+5,6),expIndicator:i.default.strtokBITSET.get(e,r+5,5),footer:i.default.strtokBITSET.get(e,r+5,4)},size:t.UINT32SYNCSAFE.get(e,r+6)})},t.ExtendedHeader={len:10,get:(e,t)=>({size:n.UINT32_BE.get(e,t),extendedFlags:n.UINT16_BE.get(e,t+4),sizeOfPadding:n.UINT32_BE.get(e,t+6),crcDataPresent:i.default.strtokBITSET.get(e,t+4,31)})},t.TextEncodingToken={len:1,get:(e,t)=>{switch(e.readUInt8(t)){case 0:return{encoding:"iso-8859-1"};case 1:return{encoding:"utf16",bom:!0};case 2:return{encoding:"utf16",bom:!1};case 3:default:return{encoding:"utf8",bom:!1}}}}},function(e,t,r){"use strict";var n=r(126);r.d(t,"a",(function(){return n.a})),r.d(t,"b",(function(){return n.c}))},function(e,t,r){"use strict";t.a=function(e,t){}},function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,"a",(function(){return n}))},,,,function(e,t,r){"use strict";(function(t){"undefined"===typeof t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,i){if("function"!==typeof e)throw new TypeError('"callback" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,r)}));case 3:return t.nextTick((function(){e.call(null,r,n)}));case 4:return t.nextTick((function(){e.call(null,r,n,i)}));default:for(a=new Array(s-1),o=0;o>>24]^l[p>>>16&255]^f[m>>>8&255]^d[255&b]^t[g++],o=u[p>>>24]^l[m>>>16&255]^f[b>>>8&255]^d[255&h]^t[g++],s=u[m>>>24]^l[b>>>16&255]^f[h>>>8&255]^d[255&p]^t[g++],c=u[b>>>24]^l[h>>>16&255]^f[p>>>8&255]^d[255&m]^t[g++],h=a,p=o,m=s,b=c;return a=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&b])^t[g++],o=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[b>>>8&255]<<8|n[255&h])^t[g++],s=(n[m>>>24]<<24|n[b>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^t[g++],c=(n[b>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^t[g++],[a>>>=0,o>>>=0,s>>>=0,c>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,c=0;c<256;++c){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,r[o]=u,n[u]=o;var l=e[o],f=e[l],d=e[f],h=257*e[u]^16843008*u;i[0][o]=h<<24|h>>>8,i[1][o]=h<<16|h>>>16,i[2][o]=h<<8|h>>>24,i[3][o]=h,h=16843009*d^65537*f^257*l^16843008*o,a[0][u]=h<<24|h>>>8,a[1][u]=h<<16|h>>>16,a[2][u]=h<<8|h>>>24,a[3][u]=h,0===o?o=s=1:(o=l^e[e[e[d^l]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:a}}();function u(e){this._key=i(e),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],a=0;a>>24,o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o],o^=s[a/t|0]<<24):t>6&&a%t===4&&(o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o]),i[a]=i[a-t]^o}for(var u=[],l=0;l>>24]]^c.INV_SUB_MIX[1][c.SBOX[d>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[d>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&d]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return o(e=i(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},u.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=o(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),a=n.allocUnsafe(16);return a.writeUInt32BE(r[0],0),a.writeUInt32BE(r[3],4),a.writeUInt32BE(r[2],8),a.writeUInt32BE(r[1],12),a},u.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},e.exports.AES=u},function(e,t,r){var n=r(14).Buffer,i=r(156);e.exports=function(e,t,r,a){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=r/8,s=n.alloc(o),c=n.alloc(a||0),u=n.alloc(0);o>0||a>0;){var l=new i;l.update(u),l.update(e),t&&l.update(t),u=l.digest();var f=0;if(o>0){var d=s.length-o;f=Math.min(o,u.length),u.copy(s,d,0,f),o-=f}if(f0){var h=c.length-a,p=Math.min(a,u.length-f);u.copy(c,h,f,f+p),a-=p}}return u.fill(0),{key:s,iv:c}}},function(e,t,r){"use strict";var n=r(24),i=r(40),a=i.getNAF,o=i.getJSF,s=i.assert;function c(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=a(t,1,this._bitLength),i=(1<=c;t--)u=(u<<1)+n[t];o.push(u)}for(var l=this.jpoint(null,null,null),f=this.jpoint(null,null,null),d=i;d>0;d--){for(c=0;c=0;u--){for(t=0;u>=0&&0===o[u];u--)t++;if(u>=0&&t++,c=c.dblp(t),u<0)break;var l=o[u];s(0!==l),c="affine"===e.type?l>0?c.mixedAdd(i[l-1>>1]):c.mixedAdd(i[-l-1>>1].neg()):l>0?c.add(i[l-1>>1]):c.add(i[-l-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,c=this._wnafT2,u=this._wnafT3,l=0,f=0;f=1;f-=2){var h=f-1,p=f;if(1===s[h]&&1===s[p]){var m=[t[h],null,null,t[p]];0===t[h].y.cmp(t[p].y)?(m[1]=t[h].add(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg())):0===t[h].y.cmp(t[p].y.redNeg())?(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].add(t[p].neg())):(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],g=o(r[h],r[p]);l=Math.max(g[0].length,l),u[h]=new Array(l),u[p]=new Array(l);for(var v=0;v=0;f--){for(var S=0;f>=0;){var E=!0;for(v=0;v=0&&S++,_=_.dblp(S),f<0)break;for(v=0;v0?x=c[v][T-1>>1]:T<0&&(x=c[v][-T-1>>1].neg()),_="affine"===x.type?_.mixedAdd(x):_.add(x))}}for(f=0;f=Math.ceil((e.bitLength()+1)/t.step)},u.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i{this.reject=t,this.resolve=e})}}t.StreamReader=class{constructor(e){if(this.s=e,this.endOfStream=!1,this.peekQueue=[],!e.read||!e.once)throw new Error("Expected an instance of stream.Readable");this.s.once("end",()=>this.reject(new n.EndOfStreamError)),this.s.once("error",e=>this.reject(e)),this.s.once("close",()=>this.reject(new Error("Stream closed")))}async peek(e,t,r){const n=await this.read(e,t,r);return this.peekQueue.push(e.slice(t,t+n)),n}async read(e,t,r){if(0===r)return 0;if(0===this.peekQueue.length&&this.endOfStream)throw new n.EndOfStreamError;let i=r,a=0;for(;this.peekQueue.length>0&&i>0;){const r=this.peekQueue.pop(),n=Math.min(r.length,i);r.copy(e,t+a,0,n),a+=n,i-=n,n0&&!this.endOfStream;){const r=Math.min(i,1048576),n=await this._read(e,t+a,r);if(a+=n,n{this.tryRead()}),this.request.deferred.promise.then(e=>(this.request=null,e),e=>{throw this.request=null,e}))}tryRead(){const e=this.s.read(this.request.length);e?(e.copy(this.request.buffer,this.request.offset),this.request.deferred.resolve(e.length)):this.s.once("readable",()=>{this.tryRead()})}reject(e){this.endOfStream=!0,this.request&&(this.request.deferred.reject(e),this.request=null)}}},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.hasID3v1Header=t.ID3v1Parser=t.Genres=void 0;const n=r(19),i=r(26),a=r(13),o=r(38),s=r(91),c=n("music-metadata:parser:ID3v1");t.Genres=["Blues","Classic Rock","Country","Dance","Disco","Funk","Grunge","Hip-Hop","Jazz","Metal","New Age","Oldies","Other","Pop","R&B","Rap","Reggae","Rock","Techno","Industrial","Alternative","Ska","Death Metal","Pranks","Soundtrack","Euro-Techno","Ambient","Trip-Hop","Vocal","Jazz+Funk","Fusion","Trance","Classical","Instrumental","Acid","House","Game","Sound Clip","Gospel","Noise","Alt. Rock","Bass","Soul","Punk","Space","Meditative","Instrumental Pop","Instrumental Rock","Ethnic","Gothic","Darkwave","Techno-Industrial","Electronic","Pop-Folk","Eurodance","Dream","Southern Rock","Comedy","Cult","Gangsta Rap","Top 40","Christian Rap","Pop/Funk","Jungle","Native American","Cabaret","New Wave","Psychedelic","Rave","Showtunes","Trailer","Lo-Fi","Tribal","Acid Punk","Acid Jazz","Polka","Retro","Musical","Rock & Roll","Hard Rock","Folk","Folk/Rock","National Folk","Swing","Fast-Fusion","Bebob","Latin","Revival","Celtic","Bluegrass","Avantgarde","Gothic Rock","Progressive Rock","Psychedelic Rock","Symphonic Rock","Slow Rock","Big Band","Chorus","Easy Listening","Acoustic","Humour","Speech","Chanson","Opera","Chamber Music","Sonata","Symphony","Booty Bass","Primus","Porn Groove","Satire","Slow Jam","Club","Tango","Samba","Folklore","Ballad","Power Ballad","Rhythmic Soul","Freestyle","Duet","Punk Rock","Drum Solo","A Cappella","Euro-House","Dance Hall","Goa","Drum & Bass","Club-House","Hardcore","Terror","Indie","BritPop","Negerpunk","Polsk Punk","Beat","Christian Gangsta Rap","Heavy Metal","Black Metal","Crossover","Contemporary Christian","Christian Rock","Merengue","Salsa","Thrash Metal","Anime","JPop","Synthpop","Abstract","Art Rock","Baroque","Bhangra","Big Beat","Breakbeat","Chillout","Downtempo","Dub","EBM","Eclectic","Electro","Electroclash","Emo","Experimental","Garage","Global","IDM","Illbient","Industro-Goth","Jam Band","Krautrock","Leftfield","Lounge","Math Rock","New Romantic","Nu-Breakz","Post-Punk","Post-Rock","Psytrance","Shoegaze","Space Rock","Trop Rock","World Music","Neoclassical","Audiobook","Audio Theatre","Neue Deutsche Welle","Podcast","Indie Rock","G-Funk","Dubstep","Garage Rock","Psybient"];const u={len:128,get:(e,t)=>{const r=new l(3).get(e,t);return"TAG"===r?{header:r,title:new l(30).get(e,t+3),artist:new l(30).get(e,t+33),album:new l(30).get(e,t+63),year:new l(4).get(e,t+93),comment:new l(28).get(e,t+97),zeroByte:a.UINT8.get(e,t+127),track:a.UINT8.get(e,t+126),genre:a.UINT8.get(e,t+127)}:null}};class l extends a.StringType{constructor(e){super(e,"binary")}get(e,t){let r=super.get(e,t);return r=i.default.trimRightNull(r),r=r.trim(),r.length>0?r:void 0}}class f extends o.BasicParser{static getGenre(e){if(ee)return void c("Already consumed the last 128 bytes");const t=await this.tokenizer.readToken(u,e);if(t){c("ID3v1 header found at: pos=%s",this.tokenizer.fileInfo.size-u.len);for(const r of["title","artist","album","comment","track","year"])t[r]&&""!==t[r]&&this.addTag(r,t[r]);const e=f.getGenre(t.genre);e&&this.addTag("genre",e)}else c("ID3v1 header not found at: pos=%s",this.tokenizer.fileInfo.size-u.len)}addTag(e,t){this.metadata.addTag("ID3v1",e,t)}}t.ID3v1Parser=f,t.hasID3v1Header=async function(t){if(t.fileSize>=128){const r=e.alloc(3);return await t.randomRead(r,0,r.length,t.fileSize-128),"TAG"===r.toString("binary")}return!1}}).call(this,r(10).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractID3Parser=void 0;const n=r(54),i=r(109),a=r(108),o=r(123),s=r(19),c=r(38),u=s("music-metadata:parser:ID3");class l extends c.BasicParser{constructor(){super(...arguments),this.id3parser=new a.ID3v2Parser}static async startsWithID3v2Header(e){return"ID3"===(await e.peekToken(i.ID3v2Header)).fileIdentifier}async parse(){try{await this.parseID3v2()}catch(e){if(!(e instanceof n.EndOfStreamError))throw e;u("End-of-stream")}}finalize(){}async parseID3v2(){if(await this.tryReadId3v2Headers(),u("End of ID3v2 header, go to MPEG-parser: pos=%s",this.tokenizer.position),await this._parse(),this.options.skipPostHeaders&&this.metadata.hasAny())this.finalize();else{const e=new o.ID3v1Parser;await e.init(this.metadata,this.tokenizer,this.options).parse(),this.finalize()}}async tryReadId3v2Headers(){if("ID3"===(await this.tokenizer.peekToken(i.ID3v2Header)).fileIdentifier)return u("Found ID3v2 header, pos=%s",this.tokenizer.position),await this.id3parser.parse(this.metadata,this.tokenizer,this.options),this.tryReadId3v2Headers()}}t.AbstractID3Parser=l},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.VorbisParser=void 0;const n=r(13),i=r(19),a=r(247),o=r(246),s=i("music-metadata:parser:ogg:vorbis1");t.VorbisParser=class{constructor(e,t){this.metadata=e,this.options=t,this.pageSegments=[]}parsePage(t,r){if(t.headerType.firstPage)this.parseFirstPage(t,r);else{if(t.headerType.continued){if(0===this.pageSegments.length)throw new Error("Cannot continue on previous page");this.pageSegments.push(r)}if(t.headerType.lastPage||!t.headerType.continued){if(this.pageSegments.length>0){const t=e.concat(this.pageSegments);this.parseFullPage(t)}this.pageSegments=t.headerType.lastPage?[]:[r]}}t.headerType.lastPage&&this.calculateDuration(t)}flush(){this.parseFullPage(e.concat(this.pageSegments))}parseUserComment(e,t){const r=new a.VorbisDecoder(e,t).parseUserComment();return this.addTag(r.key,r.value),r.len}addTag(e,t){if("METADATA_BLOCK_PICTURE"===e&&"string"===typeof t){if(this.options.skipCovers)return void s("Ignore picture");t=o.VorbisPictureToken.fromBase64(t),s(`Push picture: id=${e}, format=${t.format}`)}else s(`Push tag: id=${e}, value=${t}`);this.metadata.addTag("vorbis",e,t)}calculateDuration(e){this.metadata.format.sampleRate&&e.absoluteGranulePosition>=0&&(this.metadata.setFormat("numberOfSamples",e.absoluteGranulePosition),this.metadata.setFormat("duration",this.metadata.format.numberOfSamples/this.metadata.format.sampleRate))}parseFirstPage(e,t){this.metadata.setFormat("codec","Vorbis I"),s("Parse first page");const r=o.CommonHeader.get(t,0);if("vorbis"!==r.vorbis)throw new Error("Metadata does not look like Vorbis");if(1!==r.packetType)throw new Error("First Ogg page should be type 1: the identification header");{const e=o.IdentificationHeader.get(t,o.CommonHeader.len);this.metadata.setFormat("sampleRate",e.sampleRate),this.metadata.setFormat("bitrate",e.bitrateNominal),this.metadata.setFormat("numberOfChannels",e.channelMode),s("sample-rate=%s[hz], bitrate=%s[b/s], channel-mode=%s",e.sampleRate,e.bitrateNominal,e.channelMode)}}parseFullPage(e){const t=o.CommonHeader.get(e,0);switch(s("Parse full page: type=%s, byteLength=%s",t.packetType,e.byteLength),t.packetType){case 3:return this.parseUserCommentList(e,o.CommonHeader.len)}}parseUserCommentList(e,t){const r=n.UINT32_LE.get(e,t);t+=4,t+=r;let i=n.UINT32_LE.get(e,t);for(t+=4;i-- >0;)t+=this.parseUserComment(e,t)}}}).call(this,r(10).Buffer)},function(e,t,r){"use strict";r.d(t,"c",(function(){return h})),r.d(t,"a",(function(){return m})),r.d(t,"b",(function(){return b}));var n,i=r(1),a=r(2),o=r(0),s=r.n(o),c=(r(4),r(547)),u=r(29),l=r(292),f=Object(u.c)(Object(l.a)()),d=Object(c.a)(),h=new Map,p={disableGeneration:!1,generateClassName:d,jss:f,sheetsCache:null,sheetsManager:h,sheetsRegistry:null},m=s.a.createContext(p);function b(e){var t=e.children,r=e.injectFirst,o=void 0!==r&&r,c=e.disableGeneration,f=void 0!==c&&c,d=Object(a.a)(e,["children","injectFirst","disableGeneration"]),h=s.a.useContext(m),p=Object(i.a)({},h,{disableGeneration:f},d);if(!p.jss.options.insertionPoint&&o&&"undefined"!==typeof window){if(!n){var b=document.head;n=document.createComment("mui-inject-first"),b.insertBefore(n,b.firstChild)}p.jss=Object(u.c)({plugins:Object(l.a)().plugins,insertionPoint:n})}return(s.a.createElement(m.Provider,{value:p},t))}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"g",(function(){return s})),r.d(t,"f",(function(){return c})),r.d(t,"b",(function(){return u})),r.d(t,"d",(function(){return l})),r.d(t,"c",(function(){return f})),r.d(t,"e",(function(){return d}));var n=r(6),i=r(27);function a(e){return"number"!==typeof e?e:"".concat(e,"px solid")}var o=Object(n.a)({prop:"border",themeKey:"borders",transform:a}),s=Object(n.a)({prop:"borderTop",themeKey:"borders",transform:a}),c=Object(n.a)({prop:"borderRight",themeKey:"borders",transform:a}),u=Object(n.a)({prop:"borderBottom",themeKey:"borders",transform:a}),l=Object(n.a)({prop:"borderLeft",themeKey:"borders",transform:a}),f=Object(n.a)({prop:"borderColor",themeKey:"palette"}),d=Object(n.a)({prop:"borderRadius",themeKey:"shape"}),h=Object(i.a)(o,s,c,u,l,f,d);t.h=h},function(e,t,r){"use strict";r.d(t,"f",(function(){return a})),r.d(t,"g",(function(){return o})),r.d(t,"j",(function(){return s})),r.d(t,"k",(function(){return c})),r.d(t,"b",(function(){return u})),r.d(t,"a",(function(){return l})),r.d(t,"n",(function(){return f})),r.d(t,"e",(function(){return d})),r.d(t,"h",(function(){return h})),r.d(t,"i",(function(){return p})),r.d(t,"c",(function(){return m})),r.d(t,"l",(function(){return b})),r.d(t,"m",(function(){return g}));var n=r(6),i=r(27),a=Object(n.a)({prop:"flexBasis"}),o=Object(n.a)({prop:"flexDirection"}),s=Object(n.a)({prop:"flexWrap"}),c=Object(n.a)({prop:"justifyContent"}),u=Object(n.a)({prop:"alignItems"}),l=Object(n.a)({prop:"alignContent"}),f=Object(n.a)({prop:"order"}),d=Object(n.a)({prop:"flex"}),h=Object(n.a)({prop:"flexGrow"}),p=Object(n.a)({prop:"flexShrink"}),m=Object(n.a)({prop:"alignSelf"}),b=Object(n.a)({prop:"justifyItems"}),g=Object(n.a)({prop:"justifySelf"}),v=Object(i.a)(a,o,s,c,u,l,f,d,h,p,m,b,g);t.d=v},function(e,t,r){"use strict";r.d(t,"h",(function(){return a})),r.d(t,"g",(function(){return o})),r.d(t,"j",(function(){return s})),r.d(t,"f",(function(){return c})),r.d(t,"i",(function(){return u})),r.d(t,"d",(function(){return l})),r.d(t,"c",(function(){return f})),r.d(t,"e",(function(){return d})),r.d(t,"l",(function(){return h})),r.d(t,"m",(function(){return p})),r.d(t,"k",(function(){return m})),r.d(t,"b",(function(){return b}));var n=r(6),i=r(27),a=Object(n.a)({prop:"gridGap"}),o=Object(n.a)({prop:"gridColumnGap"}),s=Object(n.a)({prop:"gridRowGap"}),c=Object(n.a)({prop:"gridColumn"}),u=Object(n.a)({prop:"gridRow"}),l=Object(n.a)({prop:"gridAutoFlow"}),f=Object(n.a)({prop:"gridAutoColumns"}),d=Object(n.a)({prop:"gridAutoRows"}),h=Object(n.a)({prop:"gridTemplateColumns"}),p=Object(n.a)({prop:"gridTemplateRows"}),m=Object(n.a)({prop:"gridTemplateAreas"}),b=Object(n.a)({prop:"gridArea"}),g=Object(i.a)(a,o,s,c,u,l,f,d,h,p,m,b);t.a=g},function(e,t,r){"use strict";r.d(t,"d",(function(){return a})),r.d(t,"g",(function(){return o})),r.d(t,"f",(function(){return s})),r.d(t,"e",(function(){return c})),r.d(t,"a",(function(){return u})),r.d(t,"c",(function(){return l}));var n=r(6),i=r(27),a=Object(n.a)({prop:"position"}),o=Object(n.a)({prop:"zIndex",themeKey:"zIndex"}),s=Object(n.a)({prop:"top"}),c=Object(n.a)({prop:"right"}),u=Object(n.a)({prop:"bottom"}),l=Object(n.a)({prop:"left"});t.b=Object(i.a)(a,o,s,c,u,l)},function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return o}));var n=r(6),i=r(27),a=Object(n.a)({prop:"color",themeKey:"palette"}),o=Object(n.a)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),s=Object(i.a)(a,o);t.c=s},function(e,t,r){"use strict";r.d(t,"j",(function(){return o})),r.d(t,"e",(function(){return s})),r.d(t,"g",(function(){return c})),r.d(t,"c",(function(){return u})),r.d(t,"d",(function(){return l})),r.d(t,"f",(function(){return f})),r.d(t,"i",(function(){return d})),r.d(t,"h",(function(){return h})),r.d(t,"a",(function(){return p}));var n=r(6),i=r(27);function a(e){return e<=1?"".concat(100*e,"%"):e}var o=Object(n.a)({prop:"width",transform:a}),s=Object(n.a)({prop:"maxWidth",transform:a}),c=Object(n.a)({prop:"minWidth",transform:a}),u=Object(n.a)({prop:"height",transform:a}),l=Object(n.a)({prop:"maxHeight",transform:a}),f=Object(n.a)({prop:"minHeight",transform:a}),d=Object(n.a)({prop:"size",cssProperty:"width",transform:a}),h=Object(n.a)({prop:"size",cssProperty:"height",transform:a}),p=Object(n.a)({prop:"boxSizing"}),m=Object(i.a)(o,s,c,u,l,f,p);t.b=m},function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return o})),r.d(t,"d",(function(){return s})),r.d(t,"e",(function(){return c})),r.d(t,"f",(function(){return u})),r.d(t,"g",(function(){return l})),r.d(t,"h",(function(){return f}));var n=r(6),i=r(27),a=Object(n.a)({prop:"fontFamily",themeKey:"typography"}),o=Object(n.a)({prop:"fontSize",themeKey:"typography"}),s=Object(n.a)({prop:"fontStyle",themeKey:"typography"}),c=Object(n.a)({prop:"fontWeight",themeKey:"typography"}),u=Object(n.a)({prop:"letterSpacing"}),l=Object(n.a)({prop:"lineHeight"}),f=Object(n.a)({prop:"textAlign"}),d=Object(i.a)(a,o,s,c,u,l,f);t.a=d},function(e,t,r){"use strict";var n=r(43),i=r(96),a=r(65);r.d(t,"a",(function(){return f}));var o={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},u=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){if(e.length>2){if(!c[e])return[e];e=c[e]}var t=e.split(""),r=Object(n.a)(t,2),i=r[0],a=r[1],u=o[i],l=s[a]||"";return Array.isArray(l)?l.map((function(e){return u+e})):[u+l]})),l=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function f(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function d(e,t){return function(r){return e.reduce((function(e,n){return e[n]=function(e,t){if("string"===typeof t)return t;var r=e(Math.abs(t));return t>=0?r:"number"===typeof r?-r:"-".concat(r)}(t,r),e}),{})}}function h(e){var t=f(e.theme);return Object.keys(e).map((function(r){if(-1===l.indexOf(r))return null;var n=d(u(r),t),a=e[r];return Object(i.b)(e,a,n)})).reduce(a.a,{})}h.propTypes={},h.filterProps=l;t.b=h},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(0);function i(e){var t=n.useState(e),r=t[0],i=t[1],a=e||r;return n.useEffect((function(){null==r&&i("mui-".concat(Math.round(1e5*Math.random())))}),[r]),a}},function(e,t,r){"use strict";var n=r(0),i=r.n(n).a.createContext(null);t.a=i},function(e,t,r){"use strict";function n(e){for(var t="https://material-ui.com/production-error/?code="+e,r=1;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=t.pulsate,i=void 0!==n&&n,a=t.center,s=void 0===a?o||t.pulsate:a,c=t.fakeElement,u=void 0!==c&&c;if("mousedown"===e.type&&g.current)g.current=!1;else{"touchstart"===e.type&&(g.current=!0);var l,f,d,h=u?null:w.current,p=h?h.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)l=Math.round(p.width/2),f=Math.round(p.height/2);else{var m=e.touches?e.touches[0]:e,b=m.clientX,k=m.clientY;l=Math.round(b-p.left),f=Math.round(k-p.top)}if(s)(d=Math.sqrt((2*Math.pow(p.width,2)+Math.pow(p.height,2))/3))%2===0&&(d+=1);else{var S=2*Math.max(Math.abs((h?h.clientWidth:0)-l),l)+2,E=2*Math.max(Math.abs((h?h.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(S,2)+Math.pow(E,2))}e.touches?null===y.current&&(y.current=function(){_({pulsate:i,rippleX:l,rippleY:f,rippleSize:d,cb:r})},v.current=setTimeout((function(){y.current&&(y.current(),y.current=null)}),80)):_({pulsate:i,rippleX:l,rippleY:f,rippleSize:d,cb:r})}}),[o,_]),E=a.useCallback((function(){k({},{pulsate:!0})}),[k]),T=a.useCallback((function(e,t){if(clearTimeout(v.current),"touchend"===e.type&&y.current)return e.persist(),y.current(),y.current=null,void(v.current=setTimeout((function(){T(e,t)})));y.current=null,p((function(e){return e.length>0?e.slice(1):e})),b.current=t}),[]);return a.useImperativeHandle(t,(function(){return{pulsate:E,start:k,stop:T}}),[E,k,T]),a.createElement("span",Object(n.a)({className:Object(c.default)(s.root,u),ref:w},l),a.createElement(S,{component:null,exit:!0},d))})),C=Object(f.a)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(a.memo(T)),O=a.forwardRef((function(e,t){var r=e.action,o=e.buttonRef,f=e.centerRipple,h=void 0!==f&&f,p=e.children,m=e.classes,b=e.className,g=e.component,v=void 0===g?"button":g,y=e.disabled,w=void 0!==y&&y,_=e.disableRipple,k=void 0!==_&&_,S=e.disableTouchRipple,E=void 0!==S&&S,x=e.focusRipple,T=void 0!==x&&x,O=e.focusVisibleClassName,I=e.onBlur,M=e.onClick,A=e.onFocus,P=e.onFocusVisible,j=e.onKeyDown,B=e.onKeyUp,R=e.onMouseDown,D=e.onMouseLeave,N=e.onMouseUp,z=e.onTouchEnd,F=e.onTouchMove,L=e.onTouchStart,U=e.onDragLeave,H=e.tabIndex,W=void 0===H?0:H,q=e.TouchRippleProps,$=e.type,V=void 0===$?"button":$,K=Object(i.a)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),X=a.useRef(null);var G=a.useRef(null),Q=a.useState(!1),Y=Q[0],J=Q[1];w&&Y&&J(!1);var Z=Object(d.a)(),ee=Z.isFocusVisible,te=Z.onBlurVisible,re=Z.ref;function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;return Object(l.a)((function(n){return t&&t(n),!r&&G.current&&G.current[e](n),!0}))}a.useImperativeHandle(r,(function(){return{focusVisible:function(){J(!0),X.current.focus()}}}),[]),a.useEffect((function(){Y&&T&&!k&&G.current.pulsate()}),[k,T,Y]);var ie=ne("start",R),ae=ne("stop",U),oe=ne("stop",N),se=ne("stop",(function(e){Y&&e.preventDefault(),D&&D(e)})),ce=ne("start",L),ue=ne("stop",z),le=ne("stop",F),fe=ne("stop",(function(e){Y&&(te(e),J(!1)),I&&I(e)}),!1),de=Object(l.a)((function(e){X.current||(X.current=e.currentTarget),ee(e)&&(J(!0),P&&P(e)),A&&A(e)})),he=function(){var e=s.findDOMNode(X.current);return v&&"button"!==v&&!("A"===e.tagName&&e.href)},pe=a.useRef(!1),me=Object(l.a)((function(e){T&&!pe.current&&Y&&G.current&&" "===e.key&&(pe.current=!0,e.persist(),G.current.stop(e,(function(){G.current.start(e)}))),e.target===e.currentTarget&&he()&&" "===e.key&&e.preventDefault(),j&&j(e),e.target===e.currentTarget&&he()&&"Enter"===e.key&&!w&&(e.preventDefault(),M&&M(e))})),be=Object(l.a)((function(e){T&&" "===e.key&&G.current&&Y&&!e.defaultPrevented&&(pe.current=!1,e.persist(),G.current.stop(e,(function(){G.current.pulsate(e)}))),B&&B(e),M&&e.target===e.currentTarget&&he()&&" "===e.key&&!e.defaultPrevented&&M(e)})),ge=v;"button"===ge&&K.href&&(ge="a");var ve={};"button"===ge?(ve.type=V,ve.disabled=w):("a"===ge&&K.href||(ve.role="button"),ve["aria-disabled"]=w);var ye=Object(u.a)(o,t),we=Object(u.a)(re,X),_e=Object(u.a)(ye,we),ke=a.useState(!1),Se=ke[0],Ee=ke[1];a.useEffect((function(){Ee(!0)}),[]);var xe=Se&&!k&&!w;return a.createElement(ge,Object(n.a)({className:Object(c.default)(m.root,b,Y&&[m.focusVisible,O],w&&m.disabled),onBlur:fe,onClick:M,onFocus:de,onKeyDown:me,onKeyUp:be,onMouseDown:ie,onMouseLeave:se,onMouseUp:oe,onDragLeave:ae,onTouchEnd:ue,onTouchMove:le,onTouchStart:ce,ref:_e,tabIndex:w?-1:W},ve,K),p,xe?a.createElement(C,Object(n.a)({ref:G,center:h},q)):null)}));t.a=Object(f.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(O)},,,,,,,,,,,,function(e,t,r){"use strict";var n=r(9),i=r(201),a=r(14).Buffer,o=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(e,t){return e<>>32-t}function u(e,t,r,n,i,a,o){return c(e+(t&r|~t&n)+i+a|0,o)+t|0}function l(e,t,r,n,i,a,o){return c(e+(t&n|r&~n)+i+a|0,o)+t|0}function f(e,t,r,n,i,a,o){return c(e+(t^r^n)+i+a|0,o)+t|0}function d(e,t,r,n,i,a,o){return c(e+(r^(t|~n))+i+a|0,o)+t|0}n(s,i),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,a=this._d;r=u(r,n,i,a,e[0],3614090360,7),a=u(a,r,n,i,e[1],3905402710,12),i=u(i,a,r,n,e[2],606105819,17),n=u(n,i,a,r,e[3],3250441966,22),r=u(r,n,i,a,e[4],4118548399,7),a=u(a,r,n,i,e[5],1200080426,12),i=u(i,a,r,n,e[6],2821735955,17),n=u(n,i,a,r,e[7],4249261313,22),r=u(r,n,i,a,e[8],1770035416,7),a=u(a,r,n,i,e[9],2336552879,12),i=u(i,a,r,n,e[10],4294925233,17),n=u(n,i,a,r,e[11],2304563134,22),r=u(r,n,i,a,e[12],1804603682,7),a=u(a,r,n,i,e[13],4254626195,12),i=u(i,a,r,n,e[14],2792965006,17),r=l(r,n=u(n,i,a,r,e[15],1236535329,22),i,a,e[1],4129170786,5),a=l(a,r,n,i,e[6],3225465664,9),i=l(i,a,r,n,e[11],643717713,14),n=l(n,i,a,r,e[0],3921069994,20),r=l(r,n,i,a,e[5],3593408605,5),a=l(a,r,n,i,e[10],38016083,9),i=l(i,a,r,n,e[15],3634488961,14),n=l(n,i,a,r,e[4],3889429448,20),r=l(r,n,i,a,e[9],568446438,5),a=l(a,r,n,i,e[14],3275163606,9),i=l(i,a,r,n,e[3],4107603335,14),n=l(n,i,a,r,e[8],1163531501,20),r=l(r,n,i,a,e[13],2850285829,5),a=l(a,r,n,i,e[2],4243563512,9),i=l(i,a,r,n,e[7],1735328473,14),r=f(r,n=l(n,i,a,r,e[12],2368359562,20),i,a,e[5],4294588738,4),a=f(a,r,n,i,e[8],2272392833,11),i=f(i,a,r,n,e[11],1839030562,16),n=f(n,i,a,r,e[14],4259657740,23),r=f(r,n,i,a,e[1],2763975236,4),a=f(a,r,n,i,e[4],1272893353,11),i=f(i,a,r,n,e[7],4139469664,16),n=f(n,i,a,r,e[10],3200236656,23),r=f(r,n,i,a,e[13],681279174,4),a=f(a,r,n,i,e[0],3936430074,11),i=f(i,a,r,n,e[3],3572445317,16),n=f(n,i,a,r,e[6],76029189,23),r=f(r,n,i,a,e[9],3654602809,4),a=f(a,r,n,i,e[12],3873151461,11),i=f(i,a,r,n,e[15],530742520,16),r=d(r,n=f(n,i,a,r,e[2],3299628645,23),i,a,e[0],4096336452,6),a=d(a,r,n,i,e[7],1126891415,10),i=d(i,a,r,n,e[14],2878612391,15),n=d(n,i,a,r,e[5],4237533241,21),r=d(r,n,i,a,e[12],1700485571,6),a=d(a,r,n,i,e[3],2399980690,10),i=d(i,a,r,n,e[10],4293915773,15),n=d(n,i,a,r,e[1],2240044497,21),r=d(r,n,i,a,e[8],1873313359,6),a=d(a,r,n,i,e[15],4264355552,10),i=d(i,a,r,n,e[6],2734768916,15),n=d(n,i,a,r,e[13],1309151649,21),r=d(r,n,i,a,e[4],4149444226,6),a=d(a,r,n,i,e[11],3174756917,10),i=d(i,a,r,n,e[2],718787259,15),n=d(n,i,a,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+a|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,r){e.exports=i;var n=r(100).EventEmitter;function i(){n.call(this)}r(9)(i,n),i.Readable=r(158),i.Writable=r(333),i.Duplex=r(334),i.Transform=r(335),i.PassThrough=r(336),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,"function"===typeof e.destroy&&e.destroy())}function u(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",i),e.removeListener("drain",a),r.removeListener("end",s),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",u),e.on("error",u),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},function(e,t,r){(t=e.exports=r(202)).Stream=t,t.Readable=t,t.Writable=r(160),t.Duplex=r(76),t.Transform=r(206),t.PassThrough=r(332)},function(e,t,r){var n=r(10),i=n.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(a(n,t),t.Buffer=o),a(i,o),o.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},o.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){"use strict";(function(t,n,i){var a=r(116);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var s,c=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:a.nextTick;v.WritableState=g;var u=Object.create(r(101));u.inherits=r(9);var l={deprecate:r(205)},f=r(203),d=r(159).Buffer,h=i.Uint8Array||function(){};var p,m=r(204);function b(){}function g(e,t){s=s||r(76),e=e||{};var n=t instanceof s;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,u=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(a.nextTick(i,n),a.nextTick(E,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),E(e,t))}(e,r,n,t,i);else{var o=k(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),n?c(w,e,r,o,i):w(e,r,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function v(e){if(s=s||r(76),!p.call(v,this)&&!(this instanceof s))return new v(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),f.call(this)}function y(e,t,r,n,i,a,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),E(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,c=!0;r;)i[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;i.allBuffers=c,y(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,f=r.callback;if(y(e,t,!1,t.objectMode?1:u.length,u,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function S(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),E(e,t)}))}function E(e,t){var r=k(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"===typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(S,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(v,f),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===v&&(e&&e._writableState instanceof g)}})):p=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,r){var n,i=this._writableState,o=!1,s=!i.objectMode&&(n=e,d.isBuffer(n)||n instanceof h);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"===typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!==typeof r&&(r=b),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),a.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"===typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),a.nextTick(n,o),i=!1),i}(this,i,e,r))&&(i.pendingcb++,o=function(e,t,r,n,i,a){if(!r){var o=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=d.from(t,r));return t}(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,r){var n=this._writableState;"function"===typeof e?(r=e,e=null,t=null):"function"===typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,E(e,t),r&&(t.finished?a.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=m.destroy,v.prototype._undestroy=m.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(25),r(330).setImmediate,r(34))},function(e,t,r){"use strict";var n=r(10).Buffer,i=r(9),a=r(201),o=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function h(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function m(e,t,r,n,i,a,o,s){return p(e+(t^r^n)+a+o|0,s)+i|0}function b(e,t,r,n,i,a,o,s){return p(e+(t&r|~t&n)+a+o|0,s)+i|0}function g(e,t,r,n,i,a,o,s){return p(e+((t|~r)^n)+a+o|0,s)+i|0}function v(e,t,r,n,i,a,o,s){return p(e+(t&n|r&~n)+a+o|0,s)+i|0}function y(e,t,r,n,i,a,o,s){return p(e+(t^(r|~n))+a+o|0,s)+i|0}i(h,a),h.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,a=0|this._d,h=0|this._e,w=0|this._a,_=0|this._b,k=0|this._c,S=0|this._d,E=0|this._e,x=0;x<80;x+=1){var T,C;x<16?(T=m(r,n,i,a,h,e[s[x]],f[0],u[x]),C=y(w,_,k,S,E,e[c[x]],d[0],l[x])):x<32?(T=b(r,n,i,a,h,e[s[x]],f[1],u[x]),C=v(w,_,k,S,E,e[c[x]],d[1],l[x])):x<48?(T=g(r,n,i,a,h,e[s[x]],f[2],u[x]),C=g(w,_,k,S,E,e[c[x]],d[2],l[x])):x<64?(T=v(r,n,i,a,h,e[s[x]],f[3],u[x]),C=b(w,_,k,S,E,e[c[x]],d[3],l[x])):(T=y(r,n,i,a,h,e[s[x]],f[4],u[x]),C=m(w,_,k,S,E,e[c[x]],d[4],l[x])),r=h,h=a,a=p(i,10),i=n,n=T,w=E,E=S,S=p(k,10),k=_,_=C}var O=this._b+i+S|0;this._b=this._c+a+E|0,this._c=this._d+h+w|0,this._d=this._e+r+_|0,this._e=this._a+n+k|0,this._a=O},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(337),t.sha1=r(338),t.sha224=r(339),t.sha256=r(207),t.sha384=r(340),t.sha512=r(208)},function(e,t,r){"use strict";var n=r(39);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new n(i(t));return r}e.exports=a,a.getr=o}).call(this,r(10).Buffer)},function(e,t,r){"use strict";var n=t;n.version=r(367).version,n.utils=r(40),n.rand=r(166),n.curve=r(226),n.curves=r(169),n.ec=r(378),n.eddsa=r(382)},function(e,t,r){"use strict";var n,i=t,a=r(170),o=r(226),s=r(40).assert;function c(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=c,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(377)}catch(l){n=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t,r){var n=t;n.utils=r(48),n.common=r(104),n.sha=r(371),n.ripemd=r(375),n.hmac=r(376),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){!function(t,n){var i;e.exports=(i=r(15),function(){var e=i,t=e.lib,r=t.WordArray,n=t.Hasher,a=e.algo,o=[],s=a.SHA1=n.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],a=r[2],s=r[3],c=r[4],u=0;u<80;u++){if(u<16)o[u]=0|e[t+u];else{var l=o[u-3]^o[u-8]^o[u-14]^o[u-16];o[u]=l<<1|l>>>31}var f=(n<<5|n>>>27)+c+o[u];f+=u<20?1518500249+(i&a|~i&s):u<40?1859775393+(i^a^s):u<60?(i&a|i&s|a&s)-1894007588:(i^a^s)-899497514,c=s,s=a,a=i<<30|i>>>2,i=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+s|0,r[4]=r[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=n._createHelper(s),e.HmacSHA1=n._createHmacHelper(s)}(),i.SHA1)}()},function(e,t,r){!function(t,n){var i;e.exports=(i=r(15),void function(){var e=i,t=e.lib.Base,r=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),o=this._iKey=t.clone(),s=a.words,c=o.words,u=0;u2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=r.clone?Object(n.a)({},e):e;return a(e)&&a(t)&&Object.keys(t).forEach((function(n){"__proto__"!==n&&(a(t[n])&&n in e?i[n]=o(e[n],t[n],r):i[n]=t[n])})),i}},function(e,t,r){"use strict";(function(e,n){var i,a=r(263);i="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:n;var o=Object(a.a)(i);t.a=o}).call(this,r(34),r(312)(e))},function(e,t,r){"use strict";var n=r(32),i=r(22);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=i(r(94)),o=i(r(95)),s=n(r(0)),c=(i(r(4)),i(r(3))),u=i(r(505)),l=i(r(526)),f=function(e){return{root:{position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0},badge:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorError:{backgroundColor:e.palette.error.main,color:e.palette.error.contrastText},dot:{borderRadius:4,height:8,minWidth:8,padding:0},anchorOriginTopRightRectangle:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightRectangle:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftRectangle:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftRectangle:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginTopRightCircle:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightCircle:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftCircle:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftCircle:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},invisible:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}};t.styles=f;var d=s.forwardRef((function(e,t){var r=e.anchorOrigin,n=void 0===r?{vertical:"top",horizontal:"right"}:r,i=e.badgeContent,u=e.children,f=e.classes,d=e.className,h=e.color,p=void 0===h?"default":h,m=e.component,b=void 0===m?"span":m,g=e.invisible,v=e.max,y=void 0===v?99:v,w=e.overlap,_=void 0===w?"rectangle":w,k=e.showZero,S=void 0!==k&&k,E=e.variant,x=void 0===E?"standard":E,T=(0,o.default)(e,["anchorOrigin","badgeContent","children","classes","className","color","component","invisible","max","overlap","showZero","variant"]),C=g;null==g&&(0===i&&!S||null==i&&"dot"!==x)&&(C=!0);var O="";return"dot"!==x&&(O=i>y?"".concat(y,"+"):i),s.createElement(b,(0,a.default)({className:(0,c.default)(f.root,d),ref:t},T),u,s.createElement("span",{className:(0,c.default)(f.badge,f["".concat(n.horizontal).concat((0,l.default)(n.vertical),"}")],f["anchorOrigin".concat((0,l.default)(n.vertical)).concat((0,l.default)(n.horizontal)).concat((0,l.default)(_))],"default"!==p&&f["color".concat((0,l.default)(p))],C&&f.invisible,"dot"===x&&f.dot)},O))})),h=(0,u.default)(f,{name:"MuiBadge"})(d);t.default=h},function(e,t,r){const{logging:n,setLogging:i}=r(260),a=r(529);e.exports={logging:n,setLogging:i,createWorker:a}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0),i=r.n(n),a=r(136);function o(){return i.a.useContext(a.a)}},function(e,t,r){"use strict";var n=r(2),i=r(1),a=r(0),o=r.n(a),s=r(29),c=r(581),u={set:function(e,t,r,n){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(r,n)},get:function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},delete:function(e,t,r){e.get(t).delete(r)}},l=r(182),f=r(126),d=-1e9;function h(){return d+=1}r(55);var p=r(178);function m(e){var t="function"===typeof e;return{create:function(r,n){var a;try{a=t?e(r):e}catch(c){throw c}if(!n||!r.overrides||!r.overrides[n])return a;var o=r.overrides[n],s=Object(i.a)({},a);return Object.keys(o).forEach((function(e){s[e]=Object(p.a)(s[e],o[e])})),s},options:{}}}var b={};function g(e,t,r){var n=e.state;if(e.stylesOptions.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,i=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,i=!0),i&&(n.cacheClasses.value=Object(c.a)({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}function v(e,t){var r=e.state,n=e.theme,a=e.stylesOptions,o=e.stylesCreator,l=e.name;if(!a.disableGeneration){var f=u.get(a.sheetsManager,o,n);f||(f={refs:0,staticSheet:null,dynamicStyles:null},u.set(a.sheetsManager,o,n,f));var d=Object(i.a)({},o.options,a,{theme:n,flip:"boolean"===typeof a.flip?a.flip:"rtl"===n.direction});d.generateId=d.serverGenerateClassName||d.generateClassName;var h=a.sheetsRegistry;if(0===f.refs){var p;a.sheetsCache&&(p=u.get(a.sheetsCache,o,n));var m=o.create(n,l);p||((p=a.jss.createStyleSheet(m,Object(i.a)({link:!1},d))).attach(),a.sheetsCache&&u.set(a.sheetsCache,o,n,p)),h&&h.add(p),f.staticSheet=p,f.dynamicStyles=Object(s.e)(m)}if(f.dynamicStyles){var b=a.jss.createStyleSheet(f.dynamicStyles,Object(i.a)({link:!0},d));b.update(t),b.attach(),r.dynamicSheet=b,r.classes=Object(c.a)({baseClasses:f.staticSheet.classes,newClasses:b.classes}),h&&h.add(b)}else r.classes=f.staticSheet.classes;f.refs+=1}}function y(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}function w(e){var t=e.state,r=e.theme,n=e.stylesOptions,i=e.stylesCreator;if(!n.disableGeneration){var a=u.get(n.sheetsManager,i,r);a.refs-=1;var o=n.sheetsRegistry;0===a.refs&&(u.delete(n.sheetsManager,i,r),n.jss.removeStyleSheet(a.staticSheet),o&&o.remove(a.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),o&&o.remove(t.dynamicSheet))}}function _(e,t){var r,n=o.a.useRef([]),i=o.a.useMemo((function(){return{}}),t);n.current!==i&&(n.current=i,r=e()),o.a.useEffect((function(){return function(){r&&r()}}),[i])}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.name,a=t.classNamePrefix,s=t.Component,c=t.defaultTheme,u=void 0===c?b:c,d=Object(n.a)(t,["name","classNamePrefix","Component","defaultTheme"]),p=m(e),k=r||a||"makeStyles";p.options={index:h(),name:r,meta:k,classNamePrefix:k};var S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(l.a)()||u,n=Object(i.a)({},o.a.useContext(f.a),d),a=o.a.useRef(),c=o.a.useRef();_((function(){var i={name:r,state:{},stylesCreator:p,stylesOptions:n,theme:t};return v(i,e),c.current=!1,a.current=i,function(){w(i)}}),[t,p]),o.a.useEffect((function(){c.current&&y(a.current,e),c.current=!0}));var h=g(a.current,e.classes,s);return h};return S}r.d(t,"a",(function(){return k}))},function(e,t,r){"use strict";var n=r(63),i=r(79),a=(r(4),r(0)),o=r.n(a),s=r(16),c=r.n(s),u=!1,l=r(98),f=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var i,a=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(i="exited",n.appearStatus="entering"):i="entered":i=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",n.state={status:i},n.nextCallback=null,n}Object(i.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?"entering"!==r&&"entered"!==r&&(t="entering"):"entering"!==r&&"entered"!==r||(t="exiting")}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!==typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),"entering"===t?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,i=this.props.nodeRef?[n]:[c.a.findDOMNode(this),n],a=i[0],o=i[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||u?this.safeSetState({status:"entered"},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,o),this.safeSetState({status:"entering"},(function(){t.props.onEntering(a,o),t.onTransitionEnd(l,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(a,o)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:c.a.findDOMNode(this);t&&!u?(this.props.onExit(n),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:c.a.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,r=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(n.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return(o.a.createElement(l.a.Provider,{value:null},"function"===typeof r?r(e,i):o.a.cloneElement(o.a.Children.only(r),i)))},t}(o.a.Component);function d(){}f.contextType=l.a,f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:d,onEntering:d,onEntered:d,onExit:d,onExiting:d,onExited:d},f.UNMOUNTED="unmounted",f.EXITED="exited",f.ENTERING="entering",f.ENTERED="entered",f.EXITING="exiting";t.a=f},,,,,,,,,,,function(e,t,r){"use strict";var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var r,s,c=o(e),u=1;u0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0?[4,this.readReply()]:[3,7];case 6:r.sent(),r.label=7;case 7:return[2]}}))}))},e.prototype.getDeviceName=function(){var e,r,n=this.device,i=n.vendorId,a=n.productId;return null!==(r=null===(e=t.DevicesIds.find((function(e){return e.deviceId===a&&e.vendorId===i})))||void 0===e?void 0:e.name)&&void 0!==r?r:"Unknown Device"},e.prototype.finalize=function(){var e,t;return n(this,void 0,void 0,(function(){var r;return i(this,(function(n){switch(n.label){case 0:null===(e=this.logger)||void 0===e||e.debug("Finalize"),n.label=1;case 1:return n.trys.push([1,5,,6]),[4,this.device.reset()];case 2:return n.sent(),[4,this.device.releaseInterface(this.iface)];case 3:return n.sent(),[4,this.device.close()];case 4:return n.sent(),[3,6];case 5:return r=n.sent(),null===(t=this.logger)||void 0===t||t.error({err:r}),[3,6];case 6:return[2]}}))}))},e.prototype.getReplyLength=function(){var e,t,r;return n(this,void 0,void 0,(function(){var n,o;return i(this,(function(i){switch(i.label){case 0:return[4,this.device.controlTransferIn({requestType:"vendor",recipient:"interface",request:1,value:0,index:0},4)];case 1:return n=i.sent(),t=null===(e=n.data)||void 0===e?void 0:e.getUint8(2),o=null!==t&&void 0!==t?t:0,null===(r=this.logger)||void 0===r||r.debug({action:"getReplyLength",result:a.inspect(n),len:o}),[2,o]}}))}))},e.prototype.sendCommand=function(e){var t;return n(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return null===(t=this.logger)||void 0===t||t.debug({action:"sendCommand",command:a.inspect(e)}),[4,this.device.controlTransferOut({requestType:"vendor",recipient:"interface",request:128,value:0,index:0},e)];case 1:return r.sent(),[2]}}))}))},e.prototype.readReply=function(){var t;return n(this,void 0,void 0,(function(){var r,n,s;return i(this,(function(i){switch(i.label){case 0:return[4,this.getReplyLength()];case 1:r=i.sent(),n=0,i.label=2;case 2:return 0!==r?[3,5]:[4,o.sleep(e.readReplyRetryIntervalInMsec*Math.pow(2,~~(n/10)))];case 3:return i.sent(),[4,this.getReplyLength()];case 4:return r=i.sent(),n++,[3,2];case 5:return[4,this.device.controlTransferIn({requestType:"vendor",recipient:"interface",request:129,value:0,index:0},r)];case 6:return s=i.sent(),null===(t=this.logger)||void 0===t||t.debug({action:"readReply",result:a.inspect(s)}),[2,s]}}))}))},e.prototype.readBulk=function(e){return n(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:return[4,this.readBulkToArray(e)];case 1:return t=r.sent(),[2,new Uint8Array(t)]}}))}))},e.prototype.readBulkToArray=function(e,t){return void 0===t&&(t=65536),n(this,void 0,void 0,(function(){var t,r,n;return i(this,(function(i){switch(i.label){case 0:t=0,r=new ArrayBuffer(0),i.label=1;case 1:return t0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof u?Promise.resolve(r.value.v).then(c,l):f(a[0][2],r)}catch(n){f(a[0][3],n)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function f(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}},f=this&&this.__read||function(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},d=this&&this.__spread||function(){for(var e=[],t=0;t=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var m,b,g,v,y,w=r(325),_=r(86),k=p(r(199)),S=p(r(200));!function(e){e[e.control=0]="control",e[e.status=1]="status",e[e.specificInquiry=2]="specificInquiry",e[e.notify=3]="notify",e[e.generalInquiry=4]="generalInquiry",e[e.notImplemented=8]="notImplemented",e[e.accepted=9]="accepted",e[e.rejected=10]="rejected",e[e.inTransition=11]="inTransition",e[e.implemented=12]="implemented",e[e.changed=13]="changed",e[e.interim=15]="interim"}(m||(m={})),function(e){e[e.play=117]="play",e[e.pause=125]="pause",e[e.fastForward=57]="fastForward",e[e.rewind=73]="rewind"}(b||(b={})),function(e){e[e.previous=2]="previous",e[e.next=32769]="next",e[e.restart=1]="restart"}(g||(g={})),function(e){e[e.lp4=0]="lp4",e[e.lp2=2]="lp2",e[e.spMono=4]="spMono",e[e.spStereo=6]="spStereo"}(v=t.DiscFormat||(t.DiscFormat={})),function(e){e[e.pcm=0]="pcm",e[e.l105kbps=144]="l105kbps",e[e.lp2=148]="lp2",e[e.lp4=168]="lp4"}(y=t.Wireformat||(t.Wireformat={})),function(e){e[e.sp=144]="sp",e[e.lp2=146]="lp2",e[e.lp4=147]="lp4"}(t.Encoding||(t.Encoding={})),function(e){e[e.mono=1]="mono",e[e.stereo=0]="stereo"}(t.Channels||(t.Channels={})),function(e){e[e.mono=1]="mono",e[e.stereo=2]="stereo"}(t.ChannelCount||(t.ChannelCount={})),function(e){e[e.protected=3]="protected",e[e.unprotected=0]="unprotected"}(t.TrackFlag||(t.TrackFlag={})),function(e){e[e.writable=16]="writable",e[e.writeProtected=64]="writeProtected"}(t.DiscFlag||(t.DiscFlag={})),t.FrameSize=((n={})[y.pcm]=2048,n[y.lp2]=192,n[y.l105kbps]=152,n[y.lp4]=96,n);var E=function(e){function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return a(t,e),t}(Error),x=function(e){function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return a(t,e),t}(E),T=function(e){function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return a(t,e),t}(E),C=function(){function e(e,t){var r;this.netMd=e,this.logger=t,this.logger=null===(r=t)||void 0===r?void 0:r.child({class:"NetMDInterface"})}return e.prototype.sendQuery=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),o(this,void 0,void 0,(function(){return s(this,(function(n){switch(n.label){case 0:return[4,this.sendCommand(e,t)];case 1:return n.sent(),[2,this.readReply(r)]}}))}))},e.prototype.sendCommand=function(e,t){return void 0===t&&(t=!1),o(this,void 0,void 0,(function(){var r;return s(this,(function(n){return r=t?new Uint8Array([m.specificInquiry]).buffer:new Uint8Array([m.control]).buffer,this.netMd.sendCommand(_.concatArrayBuffers(r,e)),[2]}))}))},e.prototype.sendHandshake=function(e){return o(this,void 0,void 0,(function(){var t;return s(this,(function(r){switch(r.label){case 0:return t=w.formatQuery(e),[4,this.sendQuery(t)];case 1:return r.sent(),[2]}}))}))},e.prototype.readReply=function(t){return void 0===t&&(t=!1),o(this,void 0,void 0,(function(){var r,n,i;return s(this,(function(a){switch(a.label){case 0:r=0,a.label=1;case 1:return r=e.maxInterimReadAttempts)throw new T("Max attempts read attempts for interim status reached");return[2,n.buffer.slice(1)]}}))}))},e.prototype.acquire=function(){return o(this,void 0,void 0,(function(){var e,t;return s(this,(function(r){switch(r.label){case 0:return e=w.formatQuery("ff 010c ffff ffff ffff ffff ffff ffff"),[4,this.sendQuery(e)];case 1:return t=r.sent(),w.scanQuery(t,"ff 010c ffff ffff ffff ffff ffff ffff"),[2]}}))}))},e.prototype.release=function(){return o(this,void 0,void 0,(function(){var e,t;return s(this,(function(r){switch(r.label){case 0:return e=w.formatQuery("ff 0100 ffff ffff ffff ffff ffff ffff"),[4,this.sendQuery(e)];case 1:return t=r.sent(),w.scanQuery(t,"ff 0100 ffff ffff ffff ffff ffff ffff"),[2]}}))}))},e.prototype.getStatus=function(){return o(this,void 0,void 0,(function(){var e,t;return s(this,(function(r){switch(r.label){case 0:return[4,this.sendHandshake("1808 8000 0100")];case 1:return r.sent(),e=w.formatQuery("1809 8001 0230 8800 0030 8804 00 ff00 00000000"),[4,this.sendQuery(e)];case 2:return t=r.sent(),[2,w.scanQuery(t,"1809 8001 0230 8800 0030 8804 00 1000 00090000 %x")[0]]}}))}))},e.prototype.isDiscPresent=function(){return o(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,this.getStatus()];case 1:return[2,64===e.sent()[4]]}}))}))},e.prototype.getOperatingStatus=function(){return o(this,void 0,void 0,(function(){var e,t,r;return s(this,(function(n){switch(n.label){case 0:return[4,this.sendHandshake("1808 8000 0100")];case 1:return n.sent(),e=w.formatQuery("1809 8001 0330 8802 0030 8805 0030 8806 00 ff00 00000000"),[4,this.sendQuery(e)];case 2:return t=n.sent(),r=w.scanQuery(t,"1809 8001 0330 8802 0030 8805 0030 8806 00 1000 00%?0000 0006 8806 0002 %w")[0],[2,k.default.toNumber(r)]}}))}))},e.prototype._getPlaybackStatus=function(e,t){return o(this,void 0,void 0,(function(){var r,n;return s(this,(function(i){switch(i.label){case 0:return r=w.formatQuery("1809 8001 0330 %w 0030 8805 0030 %w 00 ff00 00000000",e,t),[4,this.sendQuery(r)];case 1:return n=i.sent(),[2,w.scanQuery(n,"1809 8001 0330 %?%? %?%? %?%? %?%? %?%? %? 1000 00%?0000 %x")[0]]}}))}))},e.prototype.getPlaybackStatus1=function(){return o(this,void 0,void 0,(function(){return s(this,(function(e){return[2,this._getPlaybackStatus(34817,34823)]}))}))},e.prototype.getPlaybackStatus2=function(){return o(this,void 0,void 0,(function(){return s(this,(function(e){return[2,this._getPlaybackStatus(34818,34822)]}))}))},e.prototype.getPosition=function(){return o(this,void 0,void 0,(function(){var e,t,r,n;return s(this,(function(i){switch(i.label){case 0:e=w.formatQuery("1809 8001 0430 8802 0030 8805 0030 0003 0030 0002 00 ff00 00000000"),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.sendQuery(e)];case 2:return t=i.sent(),[3,4];case 3:if((r=i.sent())instanceof T)return[2,null];throw r;case 4:return(n=w.scanQuery(t,"1809 8001 0430 %?%? %?%? %?%? %?%? %?%? %?%? %?%? %? %?00 00%?0000 000b 0002 0007 00 %w %b %b %b %b"))[0]=k.default.toNumber(n[0]),n[1]=w.BCD2int(k.default.toNumber(n[1])),n[2]=w.BCD2int(k.default.toNumber(n[2])),n[3]=w.BCD2int(k.default.toNumber(n[3])),n[4]=w.BCD2int(k.default.toNumber(n[4])),[2,n]}}))}))},e.prototype._play=function(e){return o(this,void 0,void 0,(function(){var t,r;return s(this,(function(n){switch(n.label){case 0:return t=w.formatQuery("18c3 ff %b 000000",e),[4,this.sendQuery(t)];case 1:return r=n.sent(),w.scanQuery(r,"18c3 00 %b 000000"),[2]}}))}))},e.prototype.play=function(){return o(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,this._play(b.play)];case 1:return e.sent(),[2]}}))}))},e.prototype.fast_forward=function(){return o(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,this._play(b.fastForward)];case 1:return e.sent(),[2]}}))}))},e.prototype.rewind=function(){return o(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,this._play(b.rewind)];case 1:return e.sent(),[2]}}))}))},e.prototype.pause=function(){return o(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,this._play(b.pause)];case 1:return e.sent(),[2]}}))}))},e.prototype.stop=function(){return o(this,void 0,void 0,(function(){var e,t;return s(this,(function(r){switch(r.label){case 0:return e=w.formatQuery("18c5 ff 00000000"),[4,this.sendQuery(e)];case 1:return t=r.sent(),w.scanQuery(t,"18c5 00 00000000"),[2]}}))}))},e.prototype.gotoTrack=function(e){return o(this,void 0,void 0,(function(){var t,r,n;return s(this,(function(i){switch(i.label){case 0:return t=w.formatQuery("1850 ff010000 0000 %w",e),[4,this.sendQuery(t)];case 1:return r=i.sent(),n=w.scanQuery(r,"1850 00010000 0000 %w")[0],[2,k.default.toNumber(n)]}}))}))},e.prototype.gotoTime=function(e,t,r,n,i){return void 0===t&&(t=0),void 0===r&&(r=0),void 0===n&&(n=0),void 0===i&&(i=0),o(this,void 0,void 0,(function(){var a,o;return s(this,(function(s){switch(s.label){case 0:return a=w.formatQuery("1850 ff000000 0000 %w %b%b%b%b",e,w.int2BCD(t),w.int2BCD(r),w.int2BCD(n),w.int2BCD(i)),[4,this.sendQuery(a)];case 1:return o=s.sent(),[2,w.scanQuery(o,"1850 00000000 %?%? %w %b%b%b%b").map((function(e){return k.default.toNumber(e)}))]}}))}))},e.prototype._trackChange=function(e){return o(this,void 0,void 0,(function(){var t,r;return s(this,(function(n){switch(n.label){case 0:return t=w.formatQuery("1850 ff10 00000000 %w",e),[4,this.sendQuery(t)];case 1:return r=n.sent(),[2,w.scanQuery(r,"1850 0010 00000000 %?%?")]}}))}))},e.prototype.nextTrack=function(){return o(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,this._trackChange(g.next)];case 1:return e.sent(),[2]}}))}))},e.prototype.previousTrack=function(){return o(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,this._trackChange(g.previous)];case 1:return e.sent(),[2]}}))}))},e.prototype.restartTrack=function(){return o(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,this._trackChange(g.restart)];case 1:return e.sent(),[2]}}))}))},e.prototype.eraseDisc=function(){return o(this,void 0,void 0,(function(){var e,t;return s(this,(function(r){switch(r.label){case 0:return e=w.formatQuery("1840 ff 0000"),[4,this.sendQuery(e)];case 1:return t=r.sent(),w.scanQuery(t,"1840 00 0000"),[2]}}))}))},e.prototype.syncTOC=function(){return o(this,void 0,void 0,(function(){var e,t;return s(this,(function(r){switch(r.label){case 0:return e=w.formatQuery("1808 10180200 00"),[4,this.sendQuery(e)];case 1:return t=r.sent(),w.scanQuery(t,"1808 10180200 00"),[2]}}))}))},e.prototype.cacheTOC=function(){return o(this,void 0,void 0,(function(){var e,t;return s(this,(function(r){switch(r.label){case 0:return e=w.formatQuery("1808 10180203 00"),[4,this.sendQuery(e)];case 1:return t=r.sent(),w.scanQuery(t,"1808 10180203 00"),[2]}}))}))},e.prototype.getDiscFlags=function(){return o(this,void 0,void 0,(function(){var e,t,r;return s(this,(function(n){switch(n.label){case 0:return e=w.formatQuery("1806 01101000 ff00 0001000b"),[4,this.sendQuery(e)];case 1:return t=n.sent(),r=w.scanQuery(t,"1806 01101000 1000 0001000b %b"),[2,k.default.toNumber(r[0])]}}))}))},e.prototype.getTrackCount=function(){var e;return o(this,void 0,void 0,(function(){var t,r,n,i,a;return s(this,(function(o){switch(o.label){case 0:return[4,this.sendHandshake("180810 1001 0100")];case 1:return o.sent(),t=w.formatQuery("1806 02101001 3000 1000 ff00 00000000"),[4,this.sendQuery(t)];case 2:return r=o.sent(),n=w.scanQuery(r,"1806 02101001 %?%? %?%? 1000 00%?0000 %x"),i=String.fromCharCode.apply(String,d(n[0])),_.assert(6===i.length,"Expected length === 6 for data"),_.assert("\0\x10\0\x02\0"===i.substring(0,5),"Wrong header in data response"),a=i.charCodeAt(5),null===(e=this.logger)||void 0===e||e.debug({method:"getTrackCount",result:a}),[2,a]}}))}))},e.prototype._getDiscTitle=function(e){var t;return void 0===e&&(e=!1),o(this,void 0,void 0,(function(){var r,n,i,a,o,c,u,l,f,d,h,p;return s(this,(function(s){switch(s.label){case 0:r=e?1:0,n=0,i=0,a=1,o=[],s.label=1;case 1:return n=0?(O=f(m.split("-"),2),g=O[0],v=O[1]):g=v=m,y=f([Number.parseInt(g,10),Number.parseInt(v,10)],2),w=y[0],k=y[1],k=Math.min(k,n),_.assert(0<=w),_.assert(w<=k),S=[],E=w-1;E0&&i.unshift([null,x]),[2,i]}}))}))},e.prototype.getTrackTitle=function(e,t){return void 0===t&&(t=!1),o(this,void 0,void 0,(function(){var r,n,i,a;return s(this,(function(o){switch(o.label){case 0:return r=t?3:2,n=w.formatQuery("1806 022018%b %w 3000 0a00 ff00 00000000",r,e),[4,this.sendQuery(n)];case 1:return i=o.sent(),a=w.scanQuery(i,"1806 022018%? %?%? %?%? %?%? 1000 00%?0000 00%?000a %x"),[2,_.decodeFromSJIS(a[0])]}}))}))},e.prototype.setDiscTitle=function(e,t){return void 0===t&&(t=!1),o(this,void 0,void 0,(function(){var r,n,i,a,o,c;return s(this,(function(s){switch(s.label){case 0:return i=_.getLengthAfterEncodingToSJIS,[4,this.getDiscTitle()];case 1:return n=i.apply(void 0,[s.sent()]),a=_.getLengthAfterEncodingToSJIS(e),r=t?1:0,[4,this.sendHandshake("180810 1801 0100")];case 2:return s.sent(),[4,this.sendHandshake("180810 1801 0000")];case 3:return s.sent(),[4,this.sendHandshake("180810 1801 0300")];case 4:return s.sent(),o=w.formatQuery("1807 02201801 00%b 3000 0a00 5000 %w 0000 %w %*",r,a,n,_.encodeToSJIS(e)),[4,this.sendQuery(o)];case 5:return c=s.sent(),w.scanQuery(c,"1807 02201801 00%? 3000 0a00 5000 %?%? 0000 %?%?"),[4,this.sendHandshake("180810 1801 0000")];case 6:return s.sent(),[2]}}))}))},e.prototype.setTrackTitle=function(e,t,r){return void 0===r&&(r=!1),o(this,void 0,void 0,(function(){var n,i,a,o,c,u,l;return s(this,(function(s){switch(s.label){case 0:n=r?3:2,a=_.getLengthAfterEncodingToSJIS(t),s.label=1;case 1:return s.trys.push([1,3,,4]),o=_.getLengthAfterEncodingToSJIS,[4,this.getTrackTitle(e)];case 2:return i=o.apply(void 0,[s.sent()]),[3,4];case 3:if(!((c=s.sent())instanceof T))throw c;return i=0,[3,4];case 4:return[4,this.sendHandshake("180810 1802 0000")];case 5:return s.sent(),[4,this.sendHandshake("180810 1802 0300")];case 6:return s.sent(),u=w.formatQuery("1807 022018%b %w 3000 0a00 5000 %w 0000 %w %*",n,e,a,i,_.encodeToSJIS(t)),[4,this.sendQuery(u)];case 7:return l=s.sent(),w.scanQuery(l,"1807 022018%? %?%? 3000 0a00 5000 %?%? 0000 %?%?"),[2]}}))}))},e.prototype.eraseTrack=function(e){return o(this,void 0,void 0,(function(){var t;return s(this,(function(r){switch(r.label){case 0:return t=w.formatQuery("1840 ff01 00 201001 %w",e),[4,this.sendQuery(t)];case 1:return r.sent(),[2]}}))}))},e.prototype.moveTrack=function(e,t){return o(this,void 0,void 0,(function(){var r;return s(this,(function(n){switch(n.label){case 0:return[4,this.sendHandshake("180810 1001 0000")];case 1:return n.sent(),r=w.formatQuery("1843 ff00 00 201001 %w 201001 %w",e,t),[4,this.sendQuery(r)];case 2:return n.sent(),[2]}}))}))},e.prototype._getTrackInfo=function(e,t,r){return o(this,void 0,void 0,(function(){var n,i,a;return s(this,(function(o){switch(o.label){case 0:return[4,this.sendHandshake("180810 1001 0100")];case 1:return o.sent(),n=w.formatQuery("1806 02201001 %w %w %w ff00 00000000",e,t,r),[4,this.sendQuery(n)];case 2:return i=o.sent(),a=w.scanQuery(i,"1806 02201001 %?%? %?%? %?%? 1000 00%?0000 %x"),[2,String.fromCharCode.apply(String,d(a[0]))]}}))}))},e.prototype.getTrackLength=function(e){return o(this,void 0,void 0,(function(){var t,r;return s(this,(function(n){switch(n.label){case 0:return[4,this._getTrackInfo(e,12288,256)];case 1:return t=n.sent(),(r=w.scanQuery(_.stringToCharCodeArray(t),"0001 0006 0000 %b %b %b %b"))[0]=w.BCD2int(k.default.toNumber(r[0])),r[1]=w.BCD2int(k.default.toNumber(r[1])),r[2]=w.BCD2int(k.default.toNumber(r[2])),r[3]=w.BCD2int(k.default.toNumber(r[3])),[2,r]}}))}))},e.prototype.getTrackEncoding=function(e){return o(this,void 0,void 0,(function(){var t;return s(this,(function(r){switch(r.label){case 0:return[4,this._getTrackInfo(e,12416,1792)];case 1:return t=r.sent(),[2,w.scanQuery(_.stringToCharCodeArray(t),"8007 0004 0110 %b %b").map((function(e){return k.default.toNumber(e)}))]}}))}))},e.prototype.getTrackFlags=function(e){return o(this,void 0,void 0,(function(){var t,r,n;return s(this,(function(i){switch(i.label){case 0:return t=w.formatQuery("1806 01201001 %w ff00 00010008",e),[4,this.sendQuery(t)];case 1:return r=i.sent(),n=w.scanQuery(r,"1806 01201001 %?%? 10 00 00010008 %b")[0],[2,k.default.toNumber(n)]}}))}))},e.prototype.getDiscCapacity=function(){return o(this,void 0,void 0,(function(){var e,t,r,n,i,a,o;return s(this,(function(s){switch(s.label){case 0:return[4,this.sendHandshake("180810 1000 0100")];case 1:return s.sent(),e=w.formatQuery("1806 02101000 3080 0300 ff00 00000000"),[4,this.sendQuery(e)];case 2:for(t=s.sent(),r=[],n=w.scanQuery(t,"1806 02101000 3080 0300 1000 001d0000 001b 8003 0017 8000 0005 %w %b %b %b 0005 %w %b %b %b 0005 %w %b %b %b"),i=0;i<3;i++)a=4*i,o=[w.BCD2int(k.default.toNumber(n[a+0])),w.BCD2int(k.default.toNumber(n[a+1])),w.BCD2int(k.default.toNumber(n[a+2])),w.BCD2int(k.default.toNumber(n[a+3]))],r.push(o);return[2,r]}}))}))},e.prototype.getRecordingParameters=function(){return o(this,void 0,void 0,(function(){var e,t;return s(this,(function(r){switch(r.label){case 0:return e=w.formatQuery("1809 8001 0330 8801 0030 8805 0030 8807 00 ff00 00000000"),[4,this.sendQuery(e)];case 1:return t=r.sent(),[2,w.scanQuery(t,"1809 8001 0330 8801 0030 8805 0030 8807 00 1000 000e0000 000c 8805 0008 80e0 0110 %b %b 4000").map((function(e){return k.default.toNumber(e)}))]}}))}))},e.prototype.disableNewTrackProtection=function(e){return o(this,void 0,void 0,(function(){var t,r;return s(this,(function(n){switch(n.label){case 0:return t=w.formatQuery("1800 080046 f0030103 2b ff %w",e),[4,this.sendQuery(t)];case 1:return r=n.sent(),w.scanQuery(r,"1800 080046 f0030103 2b 00 %?%?"),[2]}}))}))},e.prototype.enterSecureSession=function(){return o(this,void 0,void 0,(function(){var e,t;return s(this,(function(r){switch(r.label){case 0:return e=w.formatQuery("1800 080046 f0030103 80 ff"),[4,this.sendQuery(e)];case 1:return t=r.sent(),[2,w.scanQuery(t,"1800 080046 f0030103 80 00")]}}))}))},e.prototype.leaveSecureSession=function(){return o(this,void 0,void 0,(function(){var e,t;return s(this,(function(r){switch(r.label){case 0:return e=w.formatQuery("1800 080046 f0030103 81 ff"),[4,this.sendQuery(e)];case 1:return t=r.sent(),[2,w.scanQuery(t,"1800 080046 f0030103 81 00")]}}))}))},e.prototype.getLeafID=function(){return o(this,void 0,void 0,(function(){var e,t,r;return s(this,(function(n){switch(n.label){case 0:return e=w.formatQuery("1800 080046 f0030103 11 ff"),[4,this.sendQuery(e)];case 1:return t=n.sent(),r=w.scanQuery(t,"1800 080046 f0030103 11 00 %*"),[2,String.fromCharCode.apply(String,d(r[0]))]}}))}))},e.prototype.sendKeyData=function(e,t,r,n){return o(this,void 0,void 0,(function(){var i,a,o,c,u,l,f,p,m,b;return s(this,(function(s){switch(s.label){case 0:i=t.length,a=16+16*i+24;try{for(o=h(t),c=o.next();!c.done;c=o.next())if(16!==(u=c.value).length)throw new Error("Each key in the chain needs to have 16 bytes; this one has "+u.length)}catch(g){m={error:g}}finally{try{c&&!c.done&&(b=o.return)&&b.call(o)}finally{if(m)throw m.error}}if(r<1||r>63)throw new Error("Supplied depth is invalid");if(24!==n.length)throw new Error("Supplied EKB signature length wrong");return l=_.concatUint8Arrays.apply(void 0,d(t)),f=w.formatQuery("1800 080046 f0030103 12 ff %w %d %d %d %d 00000000 %* %*",a,a,i,r,e,l,n),[4,this.sendQuery(f)];case 1:return p=s.sent(),[2,w.scanQuery(p,"1800 080046 f0030103 12 01 %?%? %?%?%?%?")]}}))}))},e.prototype.sessionKeyExchange=function(e){return o(this,void 0,void 0,(function(){var t,r;return s(this,(function(n){switch(n.label){case 0:if(8!==e.length)throw new Error("Supplied host nonce length wrong");return t=w.formatQuery("1800 080046 f0030103 20 ff 000000 %*",e),[4,this.sendQuery(t)];case 1:return r=n.sent(),[2,w.scanQuery(r,"1800 080046 f0030103 20 00 000000 %#")[0]]}}))}))},e.prototype.sessionKeyForget=function(){return o(this,void 0,void 0,(function(){var e,t;return s(this,(function(r){switch(r.label){case 0:return e=w.formatQuery("1800 080046 f0030103 21 ff 000000"),[4,this.sendQuery(e)];case 1:return t=r.sent(),[2,w.scanQuery(t,"1800 080046 f0030103 21 00 000000")]}}))}))},e.prototype.setupDownload=function(e,t,r){return o(this,void 0,void 0,(function(){var n,i,a,o;return s(this,(function(s){switch(s.label){case 0:if(20!==e.length)throw new Error("Supplied Content ID length wrong");if(8!==t.length)throw new Error("Supplied Key Encryption Key length wrong");if(16!==r.length)throw new Error("Supplied Session Key length wrong");return n=_.concatUint8Arrays(new Uint8Array([1,1,1,1]),e,t),i=S.default.DES.encrypt(S.default.lib.WordArray.create(n),S.default.enc.Hex.parse(r),{mode:S.default.mode.CBC,padding:S.default.pad.NoPadding,iv:S.default.enc.Hex.parse("0000000000000000")}),a=w.formatQuery("1800 080046 f0030103 22 ff 0000 %*",_.wordArrayToByteArray(i.ciphertext)),[4,this.sendQuery(a)];case 1:return o=s.sent(),[2,w.scanQuery(o,"1800 080046 f0030103 22 00 0000")]}}))}))},e.prototype.commitTrack=function(e,t){return o(this,void 0,void 0,(function(){var r,n,i;return s(this,(function(a){switch(a.label){case 0:if(16!==t.length)throw new Error("Supplied Session Key length wrong");return r=S.default.DES.encrypt(S.default.enc.Hex.parse("0000000000000000"),S.default.enc.Hex.parse(t),{mode:S.default.mode.ECB,padding:S.default.pad.NoPadding}),n=w.formatQuery("1800 080046 f0030103 48 ff 00 1001 %w %*",e,_.wordArrayToByteArray(r.ciphertext)),[4,this.sendQuery(n)];case 1:return i=a.sent(),[2,w.scanQuery(i,"1800 080046 f0030103 48 00 00 1001 %?%?")]}}))}))},e.prototype.sendTrack=function(e,t,r,n,i,a,u){var l,f,d,h;return o(this,void 0,void 0,(function(){var o,p,m,b,g,v,y,E,x,T,C,O,I,M,A;return s(this,(function(s){switch(s.label){case 0:if(16!==a.length)throw new Error("Supplied Session Key length wrong");return o=n+24,p=w.formatQuery("1800 080046 f0030103 28 ff 000100 1001 ffff 00 %b %b %d %d",e,t,r,o),[4,this.sendQuery(p,!1,!0)];case 1:m=s.sent(),w.scanQuery(m,"1800 080046 f0030103 28 00 000100 1001 %?%? 00 %*"),b=!_.isBigEndian(),g=0,v=0,s.label=2;case 2:s.trys.push([2,8,9,14]),l=c(i),s.label=3;case 3:return[4,l.next()];case 4:return(f=s.sent()).done?[3,7]:(y=f.value,E=y.key,x=y.iv,T=y.data,u&&u({totalBytes:o,writtenBytes:v}),C=void 0,0===g?(O=new Uint8Array(new Uint32Array([n]).buffer),b&&O.reverse(),C=_.concatUint8Arrays(new Uint8Array([0,0,0,0]),O,E,x,T)):C=T,[4,this.netMd.writeBulk(C)]);case 5:s.sent(),g+=1,v+=T.length,s.label=6;case 6:return[3,3];case 7:return[3,14];case 8:return I=s.sent(),d={error:I},[3,14];case 9:return s.trys.push([9,,12,13]),f&&!f.done&&(h=l.return)?[4,h.call(l)]:[3,11];case 10:s.sent(),s.label=11;case 11:return[3,13];case 12:if(d)throw d.error;return[7];case 13:return[7];case 14:return u&&u({totalBytes:o,writtenBytes:v}),[4,this.readReply()];case 15:return m=s.sent(),[4,this.netMd.getReplyLength()];case 16:return s.sent(),M=w.scanQuery(m,"1800 080046 f0030103 28 00 000100 1001 %w 00 %?%? %?%?%?%? %?%?%?%? %*"),A=S.default.DES.decrypt(S.default.lib.WordArray.create(M[1]),S.default.enc.Hex.parse(a),{mode:S.default.mode.CBC,iv:S.default.enc.Hex.parse("0000000000000000")}).toString(S.default.enc.Utf8),[2,[k.default.toNumber(M[0]),A.substring(0,8),A.substring(12,32)]]}}))}))},e.prototype.getTrackUUID=function(e){return o(this,void 0,void 0,(function(){var t,r,n;return s(this,(function(i){switch(i.label){case 0:return t=w.formatQuery("1800 080046 f0030103 23 ff 1001 %w",e),[4,this.sendQuery(t)];case 1:return r=i.sent(),n=w.scanQuery(r,"1800 080046 f0030103 23 00 1001 %?%? %*"),[2,String.fromCharCode.apply(String,d(n[0]))]}}))}))},e.maxInterimReadAttempts=3,e.interimResponseRetryIntervalInMs=100,e}();function O(e,t,r){void 0===r&&(r=new Uint8Array([0,0,0,0,0,0,0,0]));var n=e.subarray(0,8),i=t.subarray(0,t.length-8),a=t.subarray(t.length-8,t.length),o=S.default.DES.encrypt(S.default.lib.WordArray.create(i),S.default.lib.WordArray.create(n),{mode:S.default.mode.CBC,iv:S.default.lib.WordArray.create(r)}),s=S.default.enc.Hex.stringify(o.ciphertext);s=s.substring(0,s.length-16);var c=S.default.TripleDES.encrypt(S.default.lib.WordArray.create(a),S.default.lib.WordArray.create(e),{mode:S.default.mode.CBC,iv:S.default.enc.Hex.parse(s)});return S.default.enc.Hex.stringify(c.ciphertext).substring(0,16)}t.NetMDInterface=C,t.retailmac=O;var I=((i={})[y.pcm]=v.spStereo,i[y.lp2]=v.lp2,i[y.l105kbps]=v.lp2,i[y.lp4]=v.lp4,i),M=function(){function e(){}return e.prototype.getRootKey=function(){return new Uint8Array([18,52,86,120,154,188,222,240,15,237,203,169,135,101,67,33])},e.prototype.getEKBID=function(){return 641869378},e.prototype.getEKBDataForLeafId=function(){return[[new Uint8Array([37,69,6,77,234,202,20,249,150,189,200,164,6,194,43,129]),new Uint8Array([251,96,189,221,13,188,171,132,138,0,94,3,25,77,62,218])],9,new Uint8Array([143,43,195,82,232,108,94,211,6,220,174,24,210,243,140,127,137,181,225,133,85,161,5,234])]},e}();t.EKBOpenSource=M;var A=function(){function e(e,t,r,n,i){this.title=e,this.format=t,this.data=r,this.chunkSize=n,this.encryptPacketsIterator=i}return e.prototype.getTitle=function(){return this.title},e.prototype.getDataFormat=function(){return this.format},e.prototype.getFrameCount=function(){return this.getTotalSize()/this.getFrameSize()},e.prototype.getFrameSize=function(){return t.FrameSize[this.format]},e.prototype.getChunkSize=function(){return this.chunkSize},e.prototype.getTotalSize=function(){var e=this.getFrameSize(),t=this.data.byteLength;return t%e!==0&&(t+=e-t%e),t},e.prototype.getContentID=function(){return new Uint8Array([1,15,80,0,0,4,0,0,0,72,162,141,62,26,59,12,68,175,47,160])},e.prototype.getKEK=function(){return new Uint8Array([20,227,131,78,226,211,204,165])},e.prototype.getPackets=function(){var e=new Uint8Array([0,0,0,0,0,0,0,0]),t=new Uint8Array([0,0,0,0,0,0,0,0]),r=S.default.lib.WordArray.create(e),n=S.default.lib.WordArray.create(this.getKEK()),i=S.default.DES.encrypt(r,n,{mode:S.default.mode.ECB}),a=S.default.lib.WordArray.create(t),o=S.default.lib.WordArray.create(this.data),s=S.default.DES.encrypt(o,i.ciphertext,{mode:S.default.mode.CBC,iv:a}),c=_.wordArrayToByteArray(s.ciphertext);return[[e,t,c=c.subarray(0,this.data.byteLength)]]},e.prototype.getPacketWorkerIterator=function(){return this.encryptPacketsIterator({kek:this.getKEK(),data:this.data,frameSize:this.getFrameSize(),chunkSize:this.chunkSize})},e.prototype.getPacketIterator=function(){return l(this,arguments,(function(){var e,t,r,n,i,a,o,c,l,f,d,h,p,m,b,g,v;return s(this,(function(s){switch(s.label){case 0:e=new Uint8Array([0,0,0,0,0,0,0,0]),t=S.default.lib.WordArray.create(e),r=S.default.lib.WordArray.create(this.getKEK()),n=S.default.lib.WordArray.random(8),(i=S.default.DES.decrypt({ciphertext:n},r,{mode:S.default.mode.ECB,padding:S.default.pad.Pkcs7})).sigBytes=8,a=_.wordArrayToByteArray(i),o=1048576,c=0,l=0,f=new Uint8Array(this.data),d=this.getFrameSize(),f.length%d!==0&&(h=d-f.length%d,f=_.concatUint8Arrays(f,new Uint8Array(Array(h).fill(0)))),p=0,s.label=1;case 1:return p0?o:o-24,l=Math.min(l,f.length-p),m=f.subarray(p,p+l),b=S.default.lib.WordArray.create(m),g=S.default.DES.encrypt(b,n,{mode:S.default.mode.CBC,iv:t}),v=(v=_.wordArrayToByteArray(g.ciphertext)).subarray(0,l),[4,u([a,e,v])]):[3,4];case 2:return[4,s.sent()];case 3:return s.sent(),t=S.default.lib.WordArray.create(v.subarray(v.length-8,v.length)),e=_.wordArrayToByteArray(t),p+=l,c+=1,[3,1];case 4:return[2]}}))}))},e}();t.MDTrack=A;var P=function(){function e(e,t,r){this.md=e,this.ekbobject=t,this.hexSessionKey=r}return e.prototype.init=function(){return o(this,void 0,void 0,(function(){var e,t,r,n,i,a,o;return s(this,(function(s){switch(s.label){case 0:return[4,this.md.enterSecureSession()];case 1:return s.sent(),e=f(this.ekbobject.getEKBDataForLeafId(),3),t=e[0],r=e[1],n=e[2],[4,this.md.sendKeyData(k.default.BigInt(this.ekbobject.getEKBID()),t,r,n)];case 2:return s.sent(),i=new Uint8Array(Array(8).fill(0).map((function(e){return Math.round(255*Math.random())}))),[4,this.md.sessionKeyExchange(i)];case 3:return a=s.sent(),o=_.concatUint8Arrays(i,a),this.hexSessionKey=O(this.ekbobject.getRootKey(),o),[2]}}))}))},e.prototype.downloadTrack=function(e,t){return o(this,void 0,void 0,(function(){var r,n,i,a,o;return s(this,(function(s){switch(s.label){case 0:if(!this.hexSessionKey)throw new Error("Call init first!");return[4,this.md.setupDownload(e.getContentID(),e.getKEK(),this.hexSessionKey)];case 1:return s.sent(),r=e.getDataFormat(),[4,this.md.sendTrack(r,I[r],e.getFrameCount(),e.getTotalSize(),e.getPacketWorkerIterator(),this.hexSessionKey,t)];case 2:return n=f.apply(void 0,[s.sent(),3]),i=n[0],a=n[1],o=n[2],[4,this.md.cacheTOC()];case 3:return s.sent(),[4,this.md.setTrackTitle(i,e.title)];case 4:return s.sent(),[4,this.md.syncTOC()];case 5:return s.sent(),[4,this.md.commitTrack(i,this.hexSessionKey)];case 6:return s.sent(),[2,[i,a,o]]}}))}))},e.prototype.close=function(){return o(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:if(void 0===this.hexSessionKey)return[3,5];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.md.sessionKeyForget()];case 2:return e.sent(),[3,4];case 3:return e.sent(),[3,4];case 4:this.hexSessionKey=void 0,e.label=5;case 5:return[4,this.md.leaveSecureSession()];case 6:return e.sent(),[2]}}))}))},e}();t.MDSession=P},function(e,t,r){e.exports=function(){"use strict";var e=Math.imul,t=Math.clz32;function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){for(var r,n=0;ne.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}var m=function(e){var t=Math.abs,n=Math.max;function o(e,t){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),e>o.__kMaxLength)throw new RangeError("Maximum BigInt size exceeded");return(r=s.call(this,e)).sign=t,r}a(o,e);var s=d(o);return i(o,[{key:"toDebugString",value:function(){var e,t=["BigInt["],r=p(this);try{for(r.s();!(e=r.n()).done;){var n=e.value;t.push((n?(n>>>0).toString(16):n)+", ")}}catch(e){r.e(e)}finally{r.f()}return t.push("]"),t.join("")}},{key:"toString",value:function(){var e=0e||36this.length&&(r=this.length);for(var n=65535&e,i=e>>>16,a=0,s=65535&t,c=t>>>16,u=0;u>>16,h=o.__imul(f,n),p=o.__imul(f,i),m=o.__imul(d,n),b=o.__imul(d,i),g=s+(65535&h),v=c+a+(g>>>16)+(h>>>16)+(65535&p)+(65535&m);a=(s=(p>>>16)+(m>>>16)+(65535&b)+(v>>>16))>>>16,s&=65535,c=b>>>16,this.__setDigit(u,65535&g|v<<16)}if(0!==a||0!==s||0!==c)throw new Error("implementation bug")}},{key:"__inplaceAdd",value:function(e,t,r){for(var n,i=0,a=0;a>>16,this.__setHalfDigit(t+a,n);return i}},{key:"__inplaceSub",value:function(e,t,r){var n=0;if(1&t){t>>=1;for(var i=this.__digit(t),a=65535&i,o=0;o>>1;o++){var s=e.__digit(o),c=(i>>>16)-(65535&s)-n;n=1&c>>>16,this.__setDigit(t+o,c<<16|65535&a),n=1&(a=(65535&(i=this.__digit(t+o+1)))-(s>>>16)-n)>>>16}var u=e.__digit(o),l=(i>>>16)-(65535&u)-n;if(n=1&l>>>16,this.__setDigit(t+o,l<<16|65535&a),t+o+1>=this.length)throw new RangeError("out of bounds");0==(1&r)&&(n=1&(a=(65535&(i=this.__digit(t+o+1)))-(u>>>16)-n)>>>16,this.__setDigit(t+e.length,4294901760&i|65535&a))}else{t>>=1;for(var f=0;f>>16)-(h>>>16)-(n=1&p>>>16);n=1&m>>>16,this.__setDigit(t+f,m<<16|65535&p)}var b=this.__digit(t+f),g=e.__digit(f),v=(65535&b)-(65535&g)-n;n=1&v>>>16;var y=0;0==(1&r)&&(n=1&(y=(b>>>16)-(g>>>16)-n)>>>16),this.__setDigit(t+f,y<<16|65535&v)}return n}},{key:"__inplaceRightShift",value:function(e){if(0!==e){for(var t,r=this.__digit(0)>>>e,n=this.length-1,i=0;i>>e;this.__setDigit(n,r)}}},{key:"__digit",value:function(e){return this[e]}},{key:"__unsignedDigit",value:function(e){return this[e]>>>0}},{key:"__setDigit",value:function(e,t){this[e]=0|t}},{key:"__setDigitGrow",value:function(e,t){this[e]=0|t}},{key:"__halfDigitLength",value:function(){var e=this.length;return 65535>=this.__unsignedDigit(e-1)?2*e-1:2*e}},{key:"__halfDigit",value:function(e){return 65535&this[e>>>1]>>>((1&e)<<4)}},{key:"__setHalfDigit",value:function(e,t){var r=e>>>1,n=this.__digit(r),i=1&e?65535&n|t<<16:4294901760&n|65535&t;this.__setDigit(r,i)}}],[{key:"BigInt",value:function(e){var t=Math.floor,n=Number.isFinite;if("number"==typeof e){if(0===e)return o.__zero();if((0|e)===e)return 0>e?o.__oneDigit(-e,!0):o.__oneDigit(e,!1);if(!n(e)||t(e)!==e)throw new RangeError("The number "+e+" cannot be converted to BigInt because it is not an integer");return o.__fromDouble(e)}if("string"==typeof e){var i=o.__fromString(e);if(null===i)throw new SyntaxError("Cannot convert "+e+" to a BigInt");return i}if("boolean"==typeof e)return!0===e?o.__oneDigit(1,!1):o.__zero();if("object"===r(e)){if(e.constructor===o)return e;var a=o.__toPrimitive(e);return o.BigInt(a)}throw new TypeError("Cannot convert "+e+" to a BigInt")}},{key:"toNumber",value:function(e){var t=e.length;if(0===t)return 0;if(1===t){var r=e.__unsignedDigit(0);return e.sign?-r:r}var n=e.__digit(t-1),i=o.__clz32(n),a=32*t-i;if(1024>>=12;var d=l-12,h=12<=l?0:c<<20+l,p=20+l;0>>32-d,h=c<>>32-p,p-=32);var m=o.__decideRounding(e,p,u,c);if((1===m||0===m&&1==(1&h))&&0===(h=h+1>>>0)&&0!=++f>>>20&&(f=0,1023<++s))return e.sign?-1/0:1/0;var b=e.sign?-2147483648:0;return s=s+1023<<20,o.__kBitConversionInts[1]=b|s|f,o.__kBitConversionInts[0]=h,o.__kBitConversionDouble[0]}},{key:"unaryMinus",value:function(e){if(0===e.length)return e;var t=e.__copy();return t.sign=!e.sign,t}},{key:"bitwiseNot",value:function(e){return e.sign?o.__absoluteSubOne(e).__trim():o.__absoluteAddOne(e,!0)}},{key:"exponentiate",value:function(e,t){if(t.sign)throw new RangeError("Exponent must be positive");if(0===t.length)return o.__oneDigit(1,!1);if(0===e.length)return e;if(1===e.length&&1===e.__digit(0))return e.sign&&0==(1&t.__digit(0))?o.unaryMinus(e):e;if(1=o.__kMaxLengthBits)throw new RangeError("BigInt too big");if(1===e.length&&2===e.__digit(0)){var n=1+(r>>>5),i=new o(n,e.sign&&0!=(1&r));i.__initializeDigits();var a=1<<(31&r);return i.__setDigit(n-1,a),i}var s=null,c=e;for(0!=(1&r)&&(s=e),r>>=1;0!==r;r>>=1)c=o.multiply(c,c),0!=(1&r)&&(s=null===s?c:o.multiply(s,c));return s}},{key:"multiply",value:function(e,t){if(0===e.length)return e;if(0===t.length)return t;var r=e.length+t.length;32<=e.__clzmsd()+t.__clzmsd()&&r--;var n=new o(r,e.sign!==t.sign);n.__initializeDigits();for(var i=0;io.__absoluteCompare(e,t))return o.__zero();var r,n=e.sign!==t.sign,i=t.__unsignedDigit(0);if(1===t.length&&65535>=i){if(1===i)return n===e.sign?e:o.unaryMinus(e);r=o.__absoluteDivSmall(e,i,null)}else r=o.__absoluteDivLarge(e,t,!0,!1);return r.sign=n,r.__trim()}},{key:"remainder",value:function(e,t){if(0===t.length)throw new RangeError("Division by zero");if(0>o.__absoluteCompare(e,t))return e;var r=t.__unsignedDigit(0);if(1===t.length&&65535>=r){if(1===r)return o.__zero();var n=o.__absoluteModSmall(e,r);return 0===n?o.__zero():o.__oneDigit(n,e.sign)}var i=o.__absoluteDivLarge(e,t,!1,!0);return i.sign=e.sign,i.__trim()}},{key:"add",value:function(e,t){var r=e.sign;return r===t.sign?o.__absoluteAdd(e,t,r):0<=o.__absoluteCompare(e,t)?o.__absoluteSub(e,t,r):o.__absoluteSub(t,e,!r)}},{key:"subtract",value:function(e,t){var r=e.sign;return r===t.sign?0<=o.__absoluteCompare(e,t)?o.__absoluteSub(e,t,r):o.__absoluteSub(t,e,!r):o.__absoluteAdd(e,t,r)}},{key:"leftShift",value:function(e,t){return 0===t.length||0===e.length?e:t.sign?o.__rightShiftByAbsolute(e,t):o.__leftShiftByAbsolute(e,t)}},{key:"signedRightShift",value:function(e,t){return 0===t.length||0===e.length?e:t.sign?o.__leftShiftByAbsolute(e,t):o.__rightShiftByAbsolute(e,t)}},{key:"unsignedRightShift",value:function(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}},{key:"lessThan",value:function(e,t){return 0>o.__compareToBigInt(e,t)}},{key:"lessThanOrEqual",value:function(e,t){return 0>=o.__compareToBigInt(e,t)}},{key:"greaterThan",value:function(e,t){return 0=o.__kMaxLengthBits)return t;var r=e+31>>>5;if(t.lengtho.__kMaxLengthBits)throw new RangeError("BigInt too big");return o.__truncateAndSubFromPowerOfTwo(e,t,!1)}if(e>=o.__kMaxLengthBits)return t;var r=e+31>>>5;if(t.length>>n)return t}return o.__truncateToNBits(e,t)}},{key:"ADD",value:function(e,t){if(e=o.__toPrimitive(e),t=o.__toPrimitive(t),"string"==typeof e)return"string"!=typeof t&&(t=t.toString()),e+t;if("string"==typeof t)return e.toString()+t;if(e=o.__toNumeric(e),t=o.__toNumeric(t),o.__isBigInt(e)&&o.__isBigInt(t))return o.add(e,t);if("number"==typeof e&&"number"==typeof t)return e+t;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions")}},{key:"LT",value:function(e,t){return o.__compare(e,t,0)}},{key:"LE",value:function(e,t){return o.__compare(e,t,1)}},{key:"GT",value:function(e,t){return o.__compare(e,t,2)}},{key:"GE",value:function(e,t){return o.__compare(e,t,3)}},{key:"EQ",value:function(e,t){for(;;){if(o.__isBigInt(e))return o.__isBigInt(t)?o.equal(e,t):o.EQ(t,e);if("number"==typeof e){if(o.__isBigInt(t))return o.__equalToNumber(t,e);if("object"!==r(t))return e==t;t=o.__toPrimitive(t)}else if("string"==typeof e){if(o.__isBigInt(t))return null!==(e=o.__fromString(e))&&o.equal(e,t);if("object"!==r(t))return e==t;t=o.__toPrimitive(t)}else if("boolean"==typeof e){if(o.__isBigInt(t))return o.__equalToNumber(t,+e);if("object"!==r(t))return e==t;t=o.__toPrimitive(t)}else if("symbol"===r(e)){if(o.__isBigInt(t))return!1;if("object"!==r(t))return e==t;t=o.__toPrimitive(t)}else{if("object"!==r(e))return e==t;if("object"===r(t)&&t.constructor!==o)return e==t;e=o.__toPrimitive(e)}}}},{key:"NE",value:function(e,t){return!o.EQ(e,t)}},{key:"__zero",value:function(){return new o(0,!1)}},{key:"__oneDigit",value:function(e,t){var r=new o(1,t);return r.__setDigit(0,e),r}},{key:"__decideRounding",value:function(e,t,r,n){if(0t)i=-t-1;else{if(0===r)return-1;r--,n=e.__digit(r),i=31}var a=1<>>20)-1023,n=1+(r>>>5),i=new o(n,0>e),a=1048575&o.__kBitConversionInts[1]|1048576,s=o.__kBitConversionInts[0],c=31&r,u=0;if(c<20){var l=20-c;u=l+32,t=a>>>l,a=a<<32-l|s>>>l,s<<=32-l}else if(20===c)u=32,t=a,a=s;else{var f=c-20;u=32-f,t=a<>>32-f,a=s<=e&&9<=e)||(159>=e?32==e:131071>=e?160==e||5760==e:196607>=e?10>=(e&=131071)||40==e||41==e||47==e||95==e||4096==e:65279==e)}},{key:"__fromString",value:function(e){var t=11073741824/c)return null;var l=c*s+u>>>o.__kBitsPerCharTableShift,f=new o(l+31>>>5,!1),d=10>t?t:10,h=10>=o.__kBitsPerCharTableShift;var p=[],m=[],b=!1;do{for(var g,v=0,y=0;;){if(g=void 0,a-48>>>0>>0>>0>>0>>o.__kBitsPerCharTableShift+5;f.__inplaceMultiplyAdd(E,S,T)}while(!w)}if(i!==n){if(!o.__isWhitespace(a))return null;for(i++;i>>c-(a-=32))}if(0!==i){if(n>=e.length)throw new Error("implementation bug");e.__setDigit(n++,i)}for(;n>>1)+(85&n))>>>2)+(51&n))>>>4)+(15&n),a=t-1,s=e.__digit(r-1),c=0|(32*r-o.__clz32(s)+i-1)/i;if(e.sign&&c++,268435456>>b,d=32-b;d>=i;)u[l--]=o.__kConversionChars[f&a],f>>>=i,d-=i}var g=(f|s<>>i-d;0!==f;)u[l--]=o.__kConversionChars[f&a],f>>>=i;if(e.sign&&(u[l--]="-"),-1!==l)throw new Error("implementation bug");return u.join("")}},{key:"__toStringGeneric",value:function(e,t,r){var n=e.length;if(0===n)return"";if(1===n){var i=e.__unsignedDigit(0).toString(t);return!1===r&&e.sign&&(i="-"+i),i}var a,s,c=32*n-o.__clz32(e.__digit(n-1)),u=o.__kMaxBitsPerChar[t]-1,l=c*o.__kBitsPerCharTableMultiplier,f=1+(l=0|(l+=u-1)/u)>>1,d=o.exponentiate(o.__oneDigit(t,!1),o.__oneDigit(f,!1)),h=d.__unsignedDigit(0);if(1===d.length&&65535>=h){(a=new o(e.length,!1)).__initializeDigits();for(var p,m=0,b=2*e.length-1;0<=b;b--)p=m<<16|e.__halfDigit(b),a.__setHalfDigit(b,0|p/h),m=0|p%h;s=m.toString(t)}else{var g=o.__absoluteDivLarge(e,d,!0,!0);a=g.quotient;var v=g.remainder.__trim();s=o.__toStringGeneric(v,t,!0)}a.__trim();for(var y=o.__toStringGeneric(a,t,!0);s.lengthn?o.__absoluteLess(r):0}},{key:"__compareToNumber",value:function(e,r){if(!0|r){var n=e.sign,i=0>r;if(n!==i)return o.__unequalSign(n);if(0===e.length){if(i)throw new Error("implementation bug");return 0===r?0:-1}if(1a?o.__absoluteGreater(n):st)return o.__unequalSign(r);if(0===t)throw new Error("implementation bug: should be handled elsewhere");if(0===e.length)return-1;o.__kBitConversionDouble[0]=t;var n=2047&o.__kBitConversionInts[1]>>>20;if(2047==n)throw new Error("implementation bug: handled elsewhere");var i=n-1023;if(0>i)return o.__absoluteGreater(r);var a=e.length,s=e.__digit(a-1),c=o.__clz32(s),u=32*a-c,l=i+1;if(ul)return o.__absoluteGreater(r);var f=1048576|1048575&o.__kBitConversionInts[1],d=o.__kBitConversionInts[0],h=31-c;if(h!==(u-1)%31)throw new Error("implementation bug");var p,m=0;if(h<20){var b=20-h;m=b+32,p=f>>>b,f=f<<32-b|d>>>b,d<<=32-b}else if(20===h)m=32,p=f,f=d;else{var g=h-20;m=32-g,p=f<>>32-g,f=d<>>=0)>(p>>>=0))return o.__absoluteGreater(r);if(s>>0,f=d,d=0):p=0;var y=e.__unsignedDigit(v);if(y>p)return o.__absoluteGreater(r);if(yr&&e.__unsignedDigit(0)===t(r):0===o.__compareToDouble(e,r)}},{key:"__comparisonResultToBool",value:function(e,t){switch(t){case 0:return 0>e;case 1:return 0>=e;case 2:return 0t;case 3:return e>=t}if(o.__isBigInt(e)&&"string"==typeof t)return null!==(t=o.__fromString(t))&&o.__comparisonResultToBool(o.__compareToBigInt(e,t),r);if("string"==typeof e&&o.__isBigInt(t))return null!==(e=o.__fromString(e))&&o.__comparisonResultToBool(o.__compareToBigInt(e,t),r);if(e=o.__toNumeric(e),t=o.__toNumeric(t),o.__isBigInt(e)){if(o.__isBigInt(t))return o.__comparisonResultToBool(o.__compareToBigInt(e,t),r);if("number"!=typeof t)throw new Error("implementation bug");return o.__comparisonResultToBool(o.__compareToNumber(e,t),r)}if("number"!=typeof e)throw new Error("implementation bug");if(o.__isBigInt(t))return o.__comparisonResultToBool(o.__compareToNumber(t,e),2^r);if("number"!=typeof t)throw new Error("implementation bug");return 0===r?et:3===r?e>=t:void 0}},{key:"__absoluteAdd",value:function(e,t,r){if(e.length>>16)+(c>>>16)+(l>>>16);a=f>>>16,i.__setDigit(s,65535&l|f<<16)}for(;s>>16)+(h>>>16);a=p>>>16,i.__setDigit(s,65535&h|p<<16)}return s>>16)-(c>>>16)-(i=1&u>>>16);i=1&l>>>16,n.__setDigit(a,65535&u|l<<16)}for(;a>>16)-(i=1&d>>>16);i=1&h>>>16,n.__setDigit(a,65535&d|h<<16)}return n.__trim()}},{key:"__absoluteAddOne",value:function(e,t){var r=2n?0:e.__unsignedDigit(n)>t.__unsignedDigit(n)?1:-1}},{key:"__multiplyAccumulate",value:function(e,t,r,n){if(0!==t){for(var i=65535&t,a=t>>>16,s=0,c=0,u=0,l=0;l>>16,p=e.__digit(l),m=65535&p,b=p>>>16,g=o.__imul(m,i),v=o.__imul(m,a),y=o.__imul(b,i),w=o.__imul(b,a);s=(c=(v>>>16)+(y>>>16)+(65535&w)+(s=(h+=u+s+((d+=c+(65535&g))>>>16)+(g>>>16)+(65535&v)+(65535&y))>>>16))>>>16,c&=65535,u=w>>>16,f=65535&d|h<<16,r.__setDigit(n,f)}for(;0!==s||0!==c||0!==u;n++){var _=r.__digit(n),k=(65535&_)+c,S=(_>>>16)+(k>>>16)+u+s;c=0,u=0,s=S>>>16,_=65535&k|S<<16,r.__setDigit(n,_)}}}},{key:"__internalMultiplyAdd",value:function(e,t,r,n,i){for(var a=r,s=0,c=0;c>>16;var d=o.__imul(u>>>16,t),h=(65535&d)+(l>>>16)+a;a=h>>>16,s=d>>>16,i.__setDigit(c,h<<16|65535&f)}if(i.length>n)for(i.__setDigit(n++,a+s);n>>0,s=0|a/t,c=0|(a=((n=0|a%t)<<16|e.__halfDigit(i-1))>>>0)/t;n=0|a%t,r.__setDigit(i>>>1,s<<16|c)}return r}},{key:"__absoluteModSmall",value:function(e,t){for(var r=0,n=2*e.length-1;0<=n;n--)r=0|((r<<16|e.__halfDigit(n))>>>0)%t;return r}},{key:"__absoluteDivLarge",value:function(e,t,r,n){var i=t.__halfDigitLength(),a=t.length,s=e.__halfDigitLength()-i,c=null;r&&(c=new o(s+2>>>1,!1)).__initializeDigits();var u=new o(i+2>>>1,!1);u.__initializeDigits();var l=o.__clz16(t.__halfDigit(i-1));0>>0;m=0|g/d;for(var v=0|g%d,y=t.__halfDigit(i-2),w=f.__halfDigit(p+i-2);o.__imul(m,y)>>>0>(v<<16|w)>>>0&&(m--,!(65535<(v+=d))););}o.__internalMultiplyAdd(t,m,0,a,u);var _=f.__inplaceSub(u,p,i+1);0!==_&&(_=f.__inplaceAdd(t,p,i),f.__setHalfDigit(p+i,f.__halfDigit(p+i)+_),m--),r&&(1&p?h=m<<16:c.__setDigit(p>>>1,h|m))}return n?(f.__inplaceRightShift(l),r?{quotient:c,remainder:f}:f):r?c:void 0}},{key:"__clz16",value:function(e){return o.__clz32(e)-16}},{key:"__specialLeftShift",value:function(e,t,r){var n=e.length,i=new o(n+r,!1);if(0===t){for(var a=0;a>>32-t;return 0r)throw new RangeError("BigInt too big");var n=r>>>5,i=31&r,a=e.length,s=0!==i&&0!=e.__digit(a-1)>>>32-i,c=a+n+(s?1:0),u=new o(c,e.sign);if(0===i){for(var l=0;l>>32-i;if(s)u.__setDigit(a+n,f);else if(0!==f)throw new Error("implementation bug")}return u.__trim()}},{key:"__rightShiftByAbsolute",value:function(e,t){var r=e.length,n=e.sign,i=o.__toShiftAmount(t);if(0>i)return o.__rightShiftByMaximum(n);var a=i>>>5,s=31&i,c=r-a;if(0>=c)return o.__rightShiftByMaximum(n);var u=!1;if(n)if(0!=(e.__digit(a)&(1<>>s,m=r-a-1,b=0;b>>s;f.__setDigit(m,p)}return u&&(f=o.__absoluteAddOne(f,!0,f)),f.__trim()}},{key:"__rightShiftByMaximum",value:function(e){return e?o.__oneDigit(1,!0):o.__zero()}},{key:"__toShiftAmount",value:function(e){if(1o.__kMaxLengthBits?-1:t}},{key:"__toPrimitive",value:function(e){var t=1>>5,n=new o(r,t.sign),i=r-1,a=0;a>>c}return n.__setDigit(i,s),n.__trim()}},{key:"__truncateAndSubFromPowerOfTwo",value:function(e,t,r){for(var n=Math.min,i=e+31>>>5,a=new o(i,r),s=0,c=i-1,u=0,l=n(c,t.length);s>>16)-(u=1&d>>>16);u=1&h>>>16,a.__setDigit(s,65535&d|h<<16)}for(;s>>16)-(u=1&g>>>16)<<16}else{var v=32-b,y=1<<32-v,w=(65535&y)-(65535&(m=m<>>v))-u;p=65535&w|(y>>>16)-(m>>>16)-(u=1&w>>>16)<<16,p&=y-1}return a.__setDigit(c,p),a.__trim()}},{key:"__digitPow",value:function(e,t){for(var r=1;0>>=1,e*=e;return r}}]),o}(l(Array));return m.__kMaxLength=33554432,m.__kMaxLengthBits=m.__kMaxLength<<5,m.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],m.__kBitsPerCharTableShift=5,m.__kBitsPerCharTableMultiplier=1<>>0)/t)},m.__imul=e||function(e,t){return 0|e*t},m}()},function(e,t,r){!function(t,n,i){var a;e.exports=(a=r(15),r(121),r(404),r(405),r(89),r(90),r(171),r(238),r(406),r(239),r(407),r(408),r(409),r(172),r(410),r(77),r(30),r(411),r(412),r(413),r(414),r(415),r(416),r(417),r(418),r(419),r(420),r(421),r(422),r(423),r(424),r(425),r(426),a)}()},function(e,t,r){"use strict";var n=r(14).Buffer,i=r(157).Transform;function a(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(9)(a,i),a.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(i){n=i}r(n)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)},a.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!==typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},a.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=a},function(e,t,r){"use strict";(function(t,n){var i=r(116);e.exports=y;var a,o=r(197);y.ReadableState=v;r(100).EventEmitter;var s=function(e,t){return e.listeners(t).length},c=r(203),u=r(159).Buffer,l=t.Uint8Array||function(){};var f=Object.create(r(101));f.inherits=r(9);var d=r(327),h=void 0;h=d&&d.debuglog?d.debuglog("stream"):function(){};var p,m=r(328),b=r(204);f.inherits(y,c);var g=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var n=t instanceof(a=a||r(76));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,o=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(102).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function y(e){if(a=a||r(76),!(this instanceof y))return new y(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function w(e,t,r,n,i){var a,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,S(e)}(e,o)):(i||(a=function(e,t){var r;n=t,u.isBuffer(n)||n instanceof l||"string"===typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?("string"===typeof t||o.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?_(e,o,t,!1):x(e,o)):_(e,o,t,!1))):n||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(E,e):E(e))}function E(e){h("emit readable"),e.emit("readable"),I(e)}function x(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(T,e,t))}function T(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;ea.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0===(e-=o)){o===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=u.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),0===(e-=o)){o===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function A(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(P,t,e))}function P(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function j(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?A(this):S(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&A(this),null;var n,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e0?M(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&A(this)),null!==n&&this.emit("data",n),n},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,h("pipe count=%d opts=%j",a.pipesCount,t);var c=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?l:y;function u(t,n){h("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,h("cleanup"),e.removeListener("close",g),e.removeListener("finish",v),e.removeListener("drain",f),e.removeListener("error",b),e.removeListener("unpipe",u),r.removeListener("end",l),r.removeListener("end",y),r.removeListener("data",m),d=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function l(){h("onend"),e.end()}a.endEmitted?i.nextTick(c):r.once("end",c),e.on("unpipe",u);var f=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,I(e))}}(r);e.on("drain",f);var d=!1;var p=!1;function m(t){h("ondata"),p=!1,!1!==e.write(t)||p||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==j(a.pipes,e))&&!d&&(h("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function b(t){h("onerror",t),y(),e.removeListener("error",b),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",v),y()}function v(){h("onfinish"),e.removeListener("close",g),y()}function y(){h("unpipe"),r.unpipe(e)}return r.on("data",m),function(e,t,r){if("function"===typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",b),e.once("close",g),e.once("finish",v),e.emit("pipe",r),a.flowing||(h("pipe resume"),r.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,p=0|this._f,m=0|this._g,b=0|this._h,g=0;g<16;++g)r[g]=e.readInt32BE(4*g);for(;g<64;++g)r[g]=0|(((t=r[g-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[g-7]+h(r[g-15])+r[g-16];for(var v=0;v<64;++v){var y=b+d(c)+u(c,p,m)+o[v]+r[v]|0,w=f(n)+l(n,i,a)|0;b=m,m=p,p=c,c=s+y|0,s=a,a=i,i=n,n=y+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=b+this._h|0},c.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},function(e,t,r){var n=r(9),i=r(88),a=r(14).Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0>>0?1:0}n(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,a=0|this._dh,s=0|this._eh,c=0|this._fh,v=0|this._gh,y=0|this._hh,w=0|this._al,_=0|this._bl,k=0|this._cl,S=0|this._dl,E=0|this._el,x=0|this._fl,T=0|this._gl,C=0|this._hl,O=0;O<32;O+=2)t[O]=e.readInt32BE(4*O),t[O+1]=e.readInt32BE(4*O+4);for(;O<160;O+=2){var I=t[O-30],M=t[O-30+1],A=h(I,M),P=p(M,I),j=m(I=t[O-4],M=t[O-4+1]),B=b(M,I),R=t[O-14],D=t[O-14+1],N=t[O-32],z=t[O-32+1],F=P+D|0,L=A+R+g(F,P)|0;L=(L=L+j+g(F=F+B|0,B)|0)+N+g(F=F+z|0,z)|0,t[O]=L,t[O+1]=F}for(var U=0;U<160;U+=2){L=t[U],F=t[U+1];var H=l(r,n,i),W=l(w,_,k),q=f(r,w),$=f(w,r),V=d(s,E),K=d(E,s),X=o[U],G=o[U+1],Q=u(s,c,v),Y=u(E,x,T),J=C+K|0,Z=y+V+g(J,C)|0;Z=(Z=(Z=Z+Q+g(J=J+Y|0,Y)|0)+X+g(J=J+G|0,G)|0)+L+g(J=J+F|0,F)|0;var ee=$+W|0,te=q+H+g(ee,$)|0;y=v,C=T,v=c,T=x,c=s,x=E,s=a+Z+g(E=S+J|0,S)|0,a=i,S=k,i=n,k=_,n=r,_=w,r=Z+te+g(w=J+ee|0,J)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+k|0,this._dl=this._dl+S|0,this._el=this._el+E|0,this._fl=this._fl+x|0,this._gl=this._gl+T|0,this._hl=this._hl+C|0,this._ah=this._ah+r+g(this._al,w)|0,this._bh=this._bh+n+g(this._bl,_)|0,this._ch=this._ch+i+g(this._cl,k)|0,this._dh=this._dh+a+g(this._dl,S)|0,this._eh=this._eh+s+g(this._el,E)|0,this._fh=this._fh+c+g(this._fl,x)|0,this._gh=this._gh+v+g(this._gl,T)|0,this._hh=this._hh+y+g(this._hl,C)|0},c.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},function(e,t,r){"use strict";var n=r(9),i=r(341),a=r(57),o=r(14).Buffer,s=r(210),c=r(161),u=r(162),l=o.alloc(128);function f(e,t){a.call(this,"digest"),"string"===typeof t&&(t=o.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new c:u(e)).update(t).digest():t.lengthr||a!==a)throw new TypeError("Bad key length")}}).call(this,r(10).Buffer)},function(e,t,r){(function(t){var r;t.browser?r="utf-8":r=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=r}).call(this,r(25))},function(e,t,r){var n=r(210),i=r(161),a=r(162),o=r(213),s=r(214),c=r(14).Buffer,u=c.alloc(128),l={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function f(e,t,r){var o=function(e){function t(t){return a(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?n:t}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=o(t):t.length>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,a=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+o&1}for(o=6;o>=0;o-=2){for(s=1;s<=25;s+=8)a<<=1,a|=t>>>s+o&1;for(s=1;s<=25;s+=8)a<<=1,a|=e>>>s+o&1}r[n+0]=i>>>0,r[n+1]=a>>>0},t.rip=function(e,t,r,n){for(var i=0,a=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+o&1,i<<=1,i|=e>>>s+o&1;for(o=4;o<8;o++)for(s=24;s>=0;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;r[n+0]=i>>>0,r[n+1]=a>>>0},t.pc1=function(e,t,r,n){for(var i=0,a=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(o=1;o<=3;o++){for(s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1;r[n+0]=i>>>0,r[n+1]=a>>>0},t.r28shl=function(e,t){return e<>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,r,i){for(var a=0,o=0,s=n.length>>>1,c=0;c>>n[c]&1;for(c=s;c>>n[c]&1;r[i+0]=a>>>0,r[i+1]=o>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var a=23;a>=15;a-=4)n<<=6,n|=e>>>a&63;for(a=11;a>=3;a-=4)i|=e>>>a&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)]}return r>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r>>a[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length>>1];r=a.r28shl(r,s),i=a.r28shl(i,s),a.pc2(r,i,e.keys,o)}},c.prototype._update=function(e,t,r,n){var i=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],a.writeUInt32BE(r,o,n),a.writeUInt32BE(r,s,n+4)},c.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n>>0,o=d}a.rip(s,o,n,i)},c.prototype._decrypt=function(e,t,r,n,i){for(var o=r,s=t,c=e.keys.length-2;c>=0;c-=2){var u=e.keys[c],l=e.keys[c+1];a.expand(o,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var f=a.substitute(u,l),d=o;o=(s^a.permute(f))>>>0,s=d}a.rip(o,s,n,i)}},function(e,t,r){var n=r(103),i=r(14).Buffer,a=r(219);function o(e){var t=e._cipher.encryptBlockRaw(e._prev);return a(e._prev),t}t.encrypt=function(e,t){var r=Math.ceil(t.length/16),a=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*r)]);for(var s=0;se;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(c),t.cmp(c)){if(!t.cmp(u))for(;r.mod(l).cmp(f);)r.iadd(h)}else for(;r.mod(a).cmp(d);)r.iadd(h);if(b(p=r.shrn(1))&&b(r)&&g(p)&&g(r)&&o.test(p)&&o.test(r))return r}}},function(e,t,r){var n=r(24),i=r(166);function a(e){this.rand=e||new i.Rand}e.exports=a,a.create=function(e){return new a(e)},a.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},a.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},a.prototype.test=function(e,t,r){var i=e.bitLength(),a=n.mont(e),o=new n(1).toRed(a);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var u=e.shrn(c),l=s.toRed(a);t>0;t--){var f=this._randrange(new n(2),s);r&&r(f);var d=f.toRed(a).redPow(u);if(0!==d.cmp(o)&&0!==d.cmp(l)){for(var h=1;h0;t--){var l=this._randrange(new n(2),o),f=e.gcd(l);if(0!==f.cmpn(1))return f;var d=l.toRed(i).redPow(c);if(0!==d.cmp(a)&&0!==d.cmp(u)){for(var h=1;h>8,o=255&i;a?r.push(a,o):r.push(o)}return r},n.zero2=i,n.toHex=a,n.encode=function(e,t){return"hex"===t?a(e):e}},function(e,t,r){"use strict";var n=t;n.base=r(119),n.short=r(368),n.mont=r(369),n.edwards=r(370)},function(e,t,r){"use strict";var n=r(48).rotr32;function i(e,t,r){return e&t^~e&r}function a(e,t,r){return e&t^e&r^t&r}function o(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?o(t,r,n):2===e?a(t,r,n):void 0},t.ch32=i,t.maj32=a,t.p32=o,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(48),i=r(104),a=r(227),o=r(39),s=n.sum32,c=n.sum32_4,u=n.sum32_5,l=a.ch32,f=a.maj32,d=a.s0_256,h=a.s1_256,p=a.g0_256,m=a.g1_256,b=i.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function v(){if(!(this instanceof v))return new v;b.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}n.inherits(v,b),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n>6],i=0===(32&r);if(31===(31&r)){var a=r;for(r=0;128===(128&a);){if(a=e.readUInt8(t),e.isError(a))return a;r<<=7,r|=127&a}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function f(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0===(128&n))return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var a=0;a=31)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=s.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(n.length<128)return(a=new i(2))[0]=o,a[1]=n.length,this._createEncoderBuffer([a,n]);for(var c=1,u=n.length;u>=256;u>>=8)c++;(a=new i(2+c))[0]=o,a[1]=128|c;u=1+c;for(var l=n.length;l>0;u--,l>>=8)a[u]=255&l;return this._createEncoderBuffer([a,n])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var a=0;for(n=0;n=128;o>>=7)a++}var s=new i(a),c=s.length-1;for(n=e.length-1;n>=0;n--){o=e[n];for(s[c--]=127&o;(o>>=7)>0;)s[c--]=128|127&o}return this._createEncoderBuffer(s)},u.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[l(n.getFullYear()),l(n.getUTCMonth()+1),l(n.getUTCDate()),l(n.getUTCHours()),l(n.getUTCMinutes()),l(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[l(n.getFullYear()%100),l(n.getUTCMonth()+1),l(n.getUTCDate()),l(n.getUTCHours()),l(n.getUTCMinutes()),l(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(e,t){if("string"===typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!==typeof e&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var a=new i(n);return e.copy(a),0===e.length&&(a[0]=0),this._createEncoderBuffer(a)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var o=e;o>=256;o>>=8)n++;for(o=(a=new Array(n)).length-1;o>=0;o--)a[o]=255&e,e>>=8;return 128&a[0]&&a.unshift(0),this._createEncoderBuffer(new i(a))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"===typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var a=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),a.length!==i.defaultBuffer.length)return!1;for(n=0;n>>7)^(p<<14|p>>>18)^p>>>3,b=u[h-2],g=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;u[h]=m+u[h-7]+g+u[h-16]}var v=n&i^n&a^i&a,y=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&f)+c[h]+u[h];d=f,f=l,l=s,s=o+w|0,o=a,a=i,i=n,n=w+(y+v)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+o|0,r[4]=r[4]+s|0,r[5]=r[5]+l|0,r[6]=r[6]+f|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=a._createHelper(l),t.HmacSHA256=a._createHmacHelper(l)}(Math),i.SHA256)}()},function(e,t,r){!function(t,n,i){var a;e.exports=(a=r(15),r(121),function(){var e=a,t=e.lib.Hasher,r=e.x64,n=r.Word,i=r.WordArray,o=e.algo;function s(){return n.create.apply(n,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=s()}();var l=o.SHA512=t.extend({_doReset:function(){this._hash=new i.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],l=r[5],f=r[6],d=r[7],h=n.high,p=n.low,m=i.high,b=i.low,g=a.high,v=a.low,y=o.high,w=o.low,_=s.high,k=s.low,S=l.high,E=l.low,x=f.high,T=f.low,C=d.high,O=d.low,I=h,M=p,A=m,P=b,j=g,B=v,R=y,D=w,N=_,z=k,F=S,L=E,U=x,H=T,W=C,q=O,$=0;$<80;$++){var V,K,X=u[$];if($<16)K=X.high=0|e[t+2*$],V=X.low=0|e[t+2*$+1];else{var G=u[$-15],Q=G.high,Y=G.low,J=(Q>>>1|Y<<31)^(Q>>>8|Y<<24)^Q>>>7,Z=(Y>>>1|Q<<31)^(Y>>>8|Q<<24)^(Y>>>7|Q<<25),ee=u[$-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),ae=u[$-7],oe=ae.high,se=ae.low,ce=u[$-16],ue=ce.high,le=ce.low;K=(K=(K=J+oe+((V=Z+se)>>>0>>0?1:0))+ne+((V+=ie)>>>0>>0?1:0))+ue+((V+=le)>>>0>>0?1:0),X.high=K,X.low=V}var fe,de=N&F^~N&U,he=z&L^~z&H,pe=I&A^I&j^A&j,me=M&P^M&B^P&B,be=(I>>>28|M<<4)^(I<<30|M>>>2)^(I<<25|M>>>7),ge=(M>>>28|I<<4)^(M<<30|I>>>2)^(M<<25|I>>>7),ve=(N>>>14|z<<18)^(N>>>18|z<<14)^(N<<23|z>>>9),ye=(z>>>14|N<<18)^(z>>>18|N<<14)^(z<<23|N>>>9),we=c[$],_e=we.high,ke=we.low,Se=W+ve+((fe=q+ye)>>>0>>0?1:0),Ee=ge+me;W=U,q=H,U=F,H=L,F=N,L=z,N=R+(Se=(Se=(Se=Se+de+((fe+=he)>>>0>>0?1:0))+_e+((fe+=ke)>>>0>>0?1:0))+K+((fe+=V)>>>0>>0?1:0))+((z=D+fe|0)>>>0>>0?1:0)|0,R=j,D=B,j=A,B=P,A=I,P=M,I=Se+(be+pe+(Ee>>>0>>0?1:0))+((M=fe+Ee|0)>>>0>>0?1:0)|0}p=n.low=p+M,n.high=h+I+(p>>>0>>0?1:0),b=i.low=b+P,i.high=m+A+(b>>>0

>>0?1:0),v=a.low=v+B,a.high=g+j+(v>>>0>>0?1:0),w=o.low=w+D,o.high=y+R+(w>>>0>>0?1:0),k=s.low=k+z,s.high=_+N+(k>>>0>>0?1:0),E=l.low=E+L,l.high=S+F+(E>>>0>>0?1:0),T=f.low=T+H,f.high=x+U+(T>>>0>>0?1:0),O=d.low=O+q,d.high=C+W+(O>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(l),e.HmacSHA512=t._createHmacHelper(l)}(),a.SHA512)}()},function(e,t,r){"use strict";var n=this&&this.__generator||function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]1||c(e,t)}))})}function c(e,t){try{(r=a[e](t)).value instanceof i?Promise.resolve(r.value.v).then(u,l):f(o[0][2],r)}catch(n){f(o[0][3],n)}var r}function u(e){c("next",e)}function l(e){c("throw",e)}function f(e,t){e(t),o.shift(),o.length&&c(o[0][0],o[0][1])}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(r(200)),c=r(86);t.getAsyncPacketIterator=function(e){var t=e.data,r=e.frameSize,o=e.kek,u=e.chunkSize;return a(this,arguments,(function(){var e,a,l,f,d,h,p,m,b,g,v,y,w,_,k,S,E,x;return n(this,(function(n){switch(n.label){case 0:e=new Uint8Array([0,0,0,0,0,0,0,0]),a=s.default.lib.WordArray.create(e),l=s.default.lib.WordArray.create(o),f=s.default.lib.WordArray.random(8),(d=s.default.DES.decrypt({ciphertext:f},l,{mode:s.default.mode.ECB,padding:s.default.pad.Pkcs7})).sigBytes=8,h=c.wordArrayToByteArray(d),p=u||1048576,m=0,b=0,(g=new Uint8Array(t)).length%r!==0&&(v=r-g.length%r,g=c.concatUint8Arrays(g,new Uint8Array(Array(v).fill(0)))),y=0,n.label=1;case 1:return y0?p:p-24,b=Math.min(b,g.length-y),w=g.subarray(y,y+b),_=s.default.lib.WordArray.create(w),k=s.default.DES.encrypt(_,f,{mode:s.default.mode.CBC,iv:a}),S=(S=c.wordArrayToByteArray(k.ciphertext)).subarray(0,b),E=s.default.lib.WordArray.create(S.subarray(S.length-8,S.length)),x=c.wordArrayToByteArray(a),[4,i({key:h,iv:e,data:S})]):[3,4];case 2:return[4,n.sent()];case 3:return n.sent(),a=E,e=x,y+=b,m+=1,[3,1];case 4:return[2]}}))}))}},function(e,t){var r=1e3,n=6e4,i=36e5,a=24*i;function o(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,t){t=t||{};var s=typeof e;if("string"===s&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var o=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return 6048e5*o;case"days":case"day":case"d":return o*a;case"hours":case"hour":case"hrs":case"hr":case"h":return o*i;case"minutes":case"minute":case"mins":case"min":case"m":return o*n;case"seconds":case"second":case"secs":case"sec":case"s":return o*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}(e);if("number"===s&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=a)return o(e,t,a,"day");if(t>=i)return o(e,t,i,"hour");if(t>=n)return o(e,t,n,"minute");if(t>=r)return o(e,t,r,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=a)return Math.round(e/a)+"d";if(t>=i)return Math.round(e/i)+"h";if(t>=n)return Math.round(e/n)+"m";if(t>=r)return Math.round(e/r)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scanAppendingHeaders=t.selectCover=t.ratingToStars=t.orderTags=t.parseFromTokenizer=t.parseBuffer=t.parseStream=void 0;const n=r(54),i=r(434),a=r(491),o=r(91),s=r(123),c=r(492);function u(e,t){return i.ParserFactory.parseOnContentType(e,t)}async function l(e,t={}){let r=e.fileSize;if(await s.hasID3v1Header(e)){r-=128,r-=await c.getLyricsHeaderLength(e)}t.apeHeader=await o.APEv2Parser.findApeFooterOffset(e,r)}t.parseStream=function(e,t,r={}){return u(n.fromStream(e,"string"===typeof t?{mimeType:t}:t),r)},t.parseBuffer=async function(e,t,r={}){const i=new a.RandomBufferReader(e);return await l(i,r),u(n.fromBuffer(e,"string"===typeof t?{mimeType:t}:t),r)},t.parseFromTokenizer=u,t.orderTags=function(e){const t={};for(const r of e)(t[r.id]=t[r.id]||[]).push(r.value);return t},t.ratingToStars=function(e){return void 0===e?0:1+Math.round(4*e)},t.selectCover=function(e){return e?e.reduce((e,t)=>t.name&&t.name.toLowerCase()in["front","cover","cover (front)"]?t:e):null},t.scanAppendingHeaders=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EndOfStreamError=t.defaultMessages=void 0,t.defaultMessages="End-Of-Stream";class n extends Error{constructor(){super(t.defaultMessages)}}t.EndOfStreamError=n},function(module,exports,__webpack_require__){"use strict";(function(Buffer){const Token=__webpack_require__(13),strtok3=__webpack_require__(54),{stringToBytes:stringToBytes,tarHeaderChecksumMatches:tarHeaderChecksumMatches,uint32SyncSafeToken:uint32SyncSafeToken}=__webpack_require__(436),supported=__webpack_require__(437),minimumBytes=4100;async function fromStream(e){const t=await strtok3.fromStream(e);try{return await fromTokenizer(t)}finally{await t.close()}}async function fromBuffer(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer||Buffer.isBuffer(e)))throw new TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`Buffer\` or \`ArrayBuffer\`, got \`${typeof e}\``);const t=e instanceof Buffer?e:Buffer.from(e);if(t&&t.length>1)return fromTokenizer(strtok3.fromBuffer(t))}function _check(e,t,r){r={offset:0,...r};for(const[n,i]of t.entries())if(r.mask){if(i!==(r.mask[n]&e[n+r.offset]))return!1}else if(i!==e[n+r.offset])return!1;return!0}async function fromTokenizer(e){try{return _fromTokenizer(e)}catch(t){if(!(t instanceof strtok3.EndOfStreamError))throw t}}async function _fromTokenizer(e){let t=Buffer.alloc(minimumBytes);const r=(e,r)=>_check(t,e,r),n=(e,t)=>r(stringToBytes(e),t);if(e.fileInfo.size||(e.fileInfo.size=Number.MAX_SAFE_INTEGER),await e.peekBuffer(t,{length:12,mayBeLess:!0}),r([66,77]))return{ext:"bmp",mime:"image/bmp"};if(r([11,119]))return{ext:"ac3",mime:"audio/vnd.dolby.dd-raw"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if(r([37,33]))return await e.peekBuffer(t,{length:24,mayBeLess:!0}),n("PS-Adobe-",{offset:2})&&n(" EPSF-",{offset:14})?{ext:"eps",mime:"application/eps"}:{ext:"ps",mime:"application/postscript"};if(r([31,160])||r([31,157]))return{ext:"Z",mime:"application/x-compress"};if(r([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(r([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(n("ID3")){await e.ignore(6);const t=await e.readToken(uint32SyncSafeToken);return e.position+t>e.fileInfo.size?{ext:"mp3",mime:"audio/mpeg"}:(await e.ignore(t),fromTokenizer(e))}if(n("MP+"))return{ext:"mpc",mime:"audio/x-musepack"};if((67===t[0]||70===t[0])&&r([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(r([71,73,70]))return{ext:"gif",mime:"image/gif"};if(n("FLIF"))return{ext:"flif",mime:"image/flif"};if(n("8BPS"))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(n("WEBP",{offset:8}))return{ext:"webp",mime:"image/webp"};if(n("MPCK"))return{ext:"mpc",mime:"audio/x-musepack"};if(n("FORM"))return{ext:"aif",mime:"audio/aiff"};if(n("icns",{offset:0}))return{ext:"icns",mime:"image/icns"};if(r([80,75,3,4])){try{for(;e.position+30=0?r:t.length)}else await e.ignore(r.compressedSize)}}catch(c){if(!(c instanceof strtok3.EndOfStreamError))throw c}return{ext:"zip",mime:"application/zip"}}if(n("OggS")){await e.ignore(28);const t=Buffer.alloc(8);return await e.readBuffer(t),_check(t,[79,112,117,115,72,101,97,100])?{ext:"opus",mime:"audio/opus"}:_check(t,[128,116,104,101,111,114,97])?{ext:"ogv",mime:"video/ogg"}:_check(t,[1,118,105,100,101,111,0])?{ext:"ogm",mime:"video/ogg"}:_check(t,[127,70,76,65,67])?{ext:"oga",mime:"audio/ogg"}:_check(t,[83,112,101,101,120,32,32])?{ext:"spx",mime:"audio/ogg"}:_check(t,[1,118,111,114,98,105,115])?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"}}if(r([80,75])&&(3===t[2]||5===t[2]||7===t[2])&&(4===t[3]||6===t[3]||8===t[3]))return{ext:"zip",mime:"application/zip"};if(n("ftyp",{offset:4})&&0!==(96&t[8])){const e=t.toString("binary",8,12).replace("\0"," ").trim();switch(e){case"avif":return{ext:"avif",mime:"image/avif"};case"mif1":return{ext:"heic",mime:"image/heif"};case"msf1":return{ext:"heic",mime:"image/heif-sequence"};case"heic":case"heix":return{ext:"heic",mime:"image/heic"};case"hevc":case"hevx":return{ext:"heic",mime:"image/heic-sequence"};case"qt":return{ext:"mov",mime:"video/quicktime"};case"M4V":case"M4VH":case"M4VP":return{ext:"m4v",mime:"video/x-m4v"};case"M4P":return{ext:"m4p",mime:"video/mp4"};case"M4B":return{ext:"m4b",mime:"audio/mp4"};case"M4A":return{ext:"m4a",mime:"audio/x-m4a"};case"F4V":return{ext:"f4v",mime:"video/mp4"};case"F4P":return{ext:"f4p",mime:"video/mp4"};case"F4A":return{ext:"f4a",mime:"audio/mp4"};case"F4B":return{ext:"f4b",mime:"audio/mp4"};case"crx":return{ext:"cr3",mime:"image/x-canon-cr3"};default:return e.startsWith("3g")?e.startsWith("3g2")?{ext:"3g2",mime:"video/3gpp2"}:{ext:"3gp",mime:"video/3gpp"}:{ext:"mp4",mime:"video/mp4"}}}if(n("MThd"))return{ext:"mid",mime:"audio/midi"};if(n("wOFF")&&(r([0,1,0,0],{offset:4})||n("OTTO",{offset:4})))return{ext:"woff",mime:"font/woff"};if(n("wOF2")&&(r([0,1,0,0],{offset:4})||n("OTTO",{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(r([212,195,178,161])||r([161,178,195,212]))return{ext:"pcap",mime:"application/vnd.tcpdump.pcap"};if(n("DSD "))return{ext:"dsf",mime:"audio/x-dsf"};if(n("LZIP"))return{ext:"lz",mime:"application/x-lzip"};if(n("fLaC"))return{ext:"flac",mime:"audio/x-flac"};if(r([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(n("wvpk"))return{ext:"wv",mime:"audio/wavpack"};if(n("%PDF")){await e.ignore(1350);const t=10485760,r=Buffer.alloc(Math.min(t,e.fileInfo.size));return await e.readBuffer(r,{mayBeLess:!0}),r.includes(Buffer.from("AIPrivateData"))?{ext:"ai",mime:"application/postscript"}:{ext:"pdf",mime:"application/pdf"}}if(r([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(r([73,73,42,0]))return n("CR",{offset:8})?{ext:"cr2",mime:"image/x-canon-cr2"}:r([28,0,254,0],{offset:8})||r([31,0,11,0],{offset:8})?{ext:"nef",mime:"image/x-nikon-nef"}:r([8,0,0,0],{offset:4})&&(r([45,0,254,0],{offset:8})||r([39,0,254,0],{offset:8}))?{ext:"dng",mime:"image/x-adobe-dng"}:(t=Buffer.alloc(24),await e.peekBuffer(t),(r([16,251,134,1],{offset:4})||r([8,0,0,0],{offset:4}))&&r([0,254,0,4,0,1,0,0,0,1,0,0,0,3,1],{offset:9})?{ext:"arw",mime:"image/x-sony-arw"}:{ext:"tif",mime:"image/tiff"});if(r([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(n("MAC "))return{ext:"ape",mime:"audio/ape"};if(r([26,69,223,163])){async function i(){const t=await e.peekNumber(Token.UINT8);let r=128,n=0;for(;0===(t&r);)++n,r>>=1;const i=Buffer.alloc(n+1);return await e.readBuffer(i),i}async function a(){const e=await i(),t=await i();t[0]^=128>>t.length-1;const r=Math.min(6,t.length);return{id:e.readUIntBE(0,e.length),len:t.readUIntBE(t.length-r,r)}}const t=await a();switch(await async function(t,r){for(;r>0;){const t=await a();if(17026===t.id)return e.readToken(new Token.StringType(t.len,"utf-8"));await e.ignore(t.len),--r}}(0,t.len)){case"webm":return{ext:"webm",mime:"video/webm"};case"matroska":return{ext:"mkv",mime:"video/x-matroska"};default:return}}if(r([82,73,70,70])){if(r([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(r([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(r([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(n("SQLi"))return{ext:"sqlite",mime:"application/x-sqlite3"};if(r([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(n("Cr24"))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(n("MSCF")||n("ISc("))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(r([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(r([197,208,211,198]))return{ext:"eps",mime:"application/eps"};if(r([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(n("#!AMR"))return{ext:"amr",mime:"audio/amr"};if(n("{\\rtf"))return{ext:"rtf",mime:"application/rtf"};if(r([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(n("IMPM"))return{ext:"it",mime:"audio/x-it"};if(n("-lh0-",{offset:2})||n("-lh1-",{offset:2})||n("-lh2-",{offset:2})||n("-lh3-",{offset:2})||n("-lh4-",{offset:2})||n("-lh5-",{offset:2})||n("-lh6-",{offset:2})||n("-lh7-",{offset:2})||n("-lzs-",{offset:2})||n("-lz4-",{offset:2})||n("-lz5-",{offset:2})||n("-lhd-",{offset:2}))return{ext:"lzh",mime:"application/x-lzh-compressed"};if(r([0,0,1,186])){if(r([33],{offset:4,mask:[241]}))return{ext:"mpg",mime:"video/MP1S"};if(r([68],{offset:4,mask:[196]}))return{ext:"mpg",mime:"video/MP2P"}}if(n("ITSF"))return{ext:"chm",mime:"application/vnd.ms-htmlhelp"};if(r([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(n("")){return await e.ignore(8),"debian-binary"===await e.readToken(new Token.StringType(13,"ascii"))?{ext:"deb",mime:"application/x-deb"}:{ext:"ar",mime:"application/x-unix-archive"}}if(r([137,80,78,71,13,10,26,10])){async function o(){return{length:await e.readToken(Token.INT32_BE),type:await e.readToken(new Token.StringType(4,"binary"))}}await e.ignore(8);do{const t=await o();if(t.length<0)return;switch(t.type){case"IDAT":return{ext:"png",mime:"image/png"};case"acTL":return{ext:"apng",mime:"image/apng"};default:await e.ignore(t.length+4)}}while(e.position+8=16){const e=t.readUInt32LE(12);if(e>12&&e<240&&t.length>=e+16)try{const r=t.slice(16,e+16).toString();if(JSON.parse(r).files)return{ext:"asar",mime:"application/x-asar"}}catch(u){}}if(r([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(n("SCRM",{offset:44}))return{ext:"s3m",mime:"audio/x-s3m"};if(r([71],{offset:4})&&(r([71],{offset:192})||r([71],{offset:196})))return{ext:"mts",mime:"video/mp2t"};if(r([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(r([68,73,67,77],{offset:128}))return{ext:"dcm",mime:"application/dicom"};if(r([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70]))return{ext:"lnk",mime:"application/x.ms.shortcut"};if(r([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0]))return{ext:"alias",mime:"application/x.apple.alias"};if(r([76,80],{offset:34})&&(r([0,0,1],{offset:8})||r([1,0,2],{offset:8})||r([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(r([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29]))return{ext:"indd",mime:"application/x-indesign"};if(await e.peekBuffer(t,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0}),tarHeaderChecksumMatches(t))return{ext:"tar",mime:"application/x-tar"};if(r([255,254,255,14,83,0,107,0,101,0,116,0,99,0,104,0,85,0,112,0,32,0,77,0,111,0,100,0,101,0,108,0]))return{ext:"skp",mime:"application/vnd.sketchup.skp"};if(n("-----BEGIN PGP MESSAGE-----"))return{ext:"pgp",mime:"application/pgp-encrypted"};for(let l=0;l<2&&l=l+2&&r([255,224],{offset:l,mask:[255,224]})){if(r([16],{offset:l+1,mask:[22]}))return r([8],{offset:l+1,mask:[8]}),{ext:"aac",mime:"audio/aac"};if(r([2],{offset:l+1,mask:[6]}))return{ext:"mp3",mime:"audio/mpeg"};if(r([4],{offset:l+1,mask:[6]}))return{ext:"mp2",mime:"audio/mpeg"};if(r([6],{offset:l+1,mask:[6]}))return{ext:"mp1",mime:"audio/mpeg"}}}const stream=readableStream=>new Promise((resolve,reject)=>{const stream=eval("require")("stream");readableStream.on("error",reject),readableStream.once("readable",async()=>{const e=new stream.PassThrough;let t;t=stream.pipeline?stream.pipeline(readableStream,e,()=>{}):readableStream.pipe(e);const r=readableStream.read(minimumBytes)||readableStream.read()||Buffer.alloc(0);try{const t=await fromBuffer(r);e.fileType=t}catch(n){reject(n)}resolve(t)})}),fileType={fromStream:fromStream,fromTokenizer:fromTokenizer,fromBuffer:fromBuffer,stream:stream};Object.defineProperty(fileType,"extensions",{get:()=>new Set(supported.extensions)}),Object.defineProperty(fileType,"mimeTypes",{get:()=>new Set(supported.mimeTypes)}),module.exports=fileType}).call(this,__webpack_require__(10).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e){this.str=e}static fromBin(e,t=0){return new r(this.decode(e,t))}static decode(e,t=0){return(e.readUInt32LE(t).toString(16)+"-"+e.readUInt16LE(t+4).toString(16)+"-"+e.readUInt16LE(t+6).toString(16)+"-"+e.readUInt16BE(t+8).toString(16)+"-"+e.slice(t+10,t+16).toString("hex")).toUpperCase()}static decodeMediaType(e){switch(e.str){case r.AudioMedia.str:return"audio";case r.VideoMedia.str:return"video";case r.CommandMedia.str:return"command";case r.Degradable_JPEG_Media.str:return"degradable-jpeg";case r.FileTransferMedia.str:return"file-transfer";case r.BinaryMedia.str:return"binary"}}static encode(t){const r=e.alloc(16);return r.writeUInt32LE(parseInt(t.slice(0,8),16),0),r.writeUInt16LE(parseInt(t.slice(9,13),16),4),r.writeUInt16LE(parseInt(t.slice(14,18),16),6),e.from(t.slice(19,23),"hex").copy(r,8),e.from(t.slice(24),"hex").copy(r,10),r}equals(e){return this.str===e.str}toBin(){return r.encode(this.str)}}t.default=r,r.HeaderObject=new r("75B22630-668E-11CF-A6D9-00AA0062CE6C"),r.DataObject=new r("75B22636-668E-11CF-A6D9-00AA0062CE6C"),r.SimpleIndexObject=new r("33000890-E5B1-11CF-89F4-00A0C90349CB"),r.IndexObject=new r("D6E229D3-35DA-11D1-9034-00A0C90349BE"),r.MediaObjectIndexObject=new r("FEB103F8-12AD-4C64-840F-2A1D2F7AD48C"),r.TimecodeIndexObject=new r("3CB73FD0-0C4A-4803-953D-EDF7B6228F0C"),r.FilePropertiesObject=new r("8CABDCA1-A947-11CF-8EE4-00C00C205365"),r.StreamPropertiesObject=new r("B7DC0791-A9B7-11CF-8EE6-00C00C205365"),r.HeaderExtensionObject=new r("5FBF03B5-A92E-11CF-8EE3-00C00C205365"),r.CodecListObject=new r("86D15240-311D-11D0-A3A4-00A0C90348F6"),r.ScriptCommandObject=new r("1EFB1A30-0B62-11D0-A39B-00A0C90348F6"),r.MarkerObject=new r("F487CD01-A951-11CF-8EE6-00C00C205365"),r.BitrateMutualExclusionObject=new r("D6E229DC-35DA-11D1-9034-00A0C90349BE"),r.ErrorCorrectionObject=new r("75B22635-668E-11CF-A6D9-00AA0062CE6C"),r.ContentDescriptionObject=new r("75B22633-668E-11CF-A6D9-00AA0062CE6C"),r.ExtendedContentDescriptionObject=new r("D2D0A440-E307-11D2-97F0-00A0C95EA850"),r.ContentBrandingObject=new r("2211B3FA-BD23-11D2-B4B7-00A0C955FC6E"),r.StreamBitratePropertiesObject=new r("7BF875CE-468D-11D1-8D82-006097C9A2B2"),r.ContentEncryptionObject=new r("2211B3FB-BD23-11D2-B4B7-00A0C955FC6E"),r.ExtendedContentEncryptionObject=new r("298AE614-2622-4C17-B935-DAE07EE9289C"),r.DigitalSignatureObject=new r("2211B3FC-BD23-11D2-B4B7-00A0C955FC6E"),r.PaddingObject=new r("1806D474-CADF-4509-A4BA-9AABCB96AAE8"),r.ExtendedStreamPropertiesObject=new r("14E6A5CB-C672-4332-8399-A96952065B5A"),r.AdvancedMutualExclusionObject=new r("A08649CF-4775-4670-8A16-6E35357566CD"),r.GroupMutualExclusionObject=new r("D1465A40-5A79-4338-B71B-E36B8FD6C249"),r.StreamPrioritizationObject=new r("D4FED15B-88D3-454F-81F0-ED5C45999E24"),r.BandwidthSharingObject=new r("A69609E6-517B-11D2-B6AF-00C04FD908E9"),r.LanguageListObject=new r("7C4346A9-EFE0-4BFC-B229-393EDE415C85"),r.MetadataObject=new r("C5F8CBEA-5BAF-4877-8467-AA8C44FA4CCA"),r.MetadataLibraryObject=new r("44231C94-9498-49D1-A141-1D134E457054"),r.IndexParametersObject=new r("D6E229DF-35DA-11D1-9034-00A0C90349BE"),r.MediaObjectIndexParametersObject=new r("6B203BAD-3F11-48E4-ACA8-D7613DE2CFA7"),r.TimecodeIndexParametersObject=new r("F55E496D-9797-4B5D-8C8B-604DFE9BFB24"),r.CompatibilityObject=new r("26F18B5D-4584-47EC-9F5F-0E651F0452C9"),r.AdvancedContentEncryptionObject=new r("43058533-6981-49E6-9B74-AD12CB86D58C"),r.AudioMedia=new r("F8699E40-5B4D-11CF-A8FD-00805F5C442B"),r.VideoMedia=new r("BC19EFC0-5B4D-11CF-A8FD-00805F5C442B"),r.CommandMedia=new r("59DACFC0-59E6-11D0-A3AC-00A0C90348F6"),r.JFIF_Media=new r("B61BE100-5B4E-11CF-A8FD-00805F5C442B"),r.Degradable_JPEG_Media=new r("35907DE0-E415-11CF-A917-00805F5C442B"),r.FileTransferMedia=new r("91BD222C-F21C-497A-8B6D-5AA86BFC0185"),r.BinaryMedia=new r("3AFB65E2-47EF-40F2-AC2C-70A90D71D343"),r.ASF_Index_Placeholder_Object=new r("D9AADE20-7C17-4F9C-BC28-8555DD98E2A2")}).call(this,r(10).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.IdentificationHeader=t.CommonHeader=t.VorbisPictureToken=void 0;const n=r(13),i=r(109);class a{constructor(e){this.len=e}static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))}static fromBuffer(e){return new a(e.length).get(e,0)}get(t,r){const a=i.AttachedPictureType[n.UINT32_BE.get(t,r)],o=n.UINT32_BE.get(t,r+=4),s=t.toString("utf-8",r+=4,r+o),c=n.UINT32_BE.get(t,r+=o),u=t.toString("utf-8",r+=4,r+c),l=n.UINT32_BE.get(t,r+=c),f=n.UINT32_BE.get(t,r+=4),d=n.UINT32_BE.get(t,r+=4),h=n.UINT32_BE.get(t,r+=4),p=n.UINT32_BE.get(t,r+=4);return{type:a,format:s,description:u,width:l,height:f,colour_depth:d,indexed_color:h,data:e.from(t.slice(r+=4,r+p))}}}t.VorbisPictureToken=a,t.CommonHeader={len:7,get:(e,t)=>({packetType:e.readUInt8(t),vorbis:new n.StringType(6,"ascii").get(e,t+1)})},t.IdentificationHeader={len:23,get:(e,t)=>({version:e.readUInt32LE(t+0),channelMode:e.readUInt8(t+4),sampleRate:e.readUInt32LE(t+5),bitrateMax:e.readUInt32LE(t+9),bitrateNominal:e.readUInt32LE(t+13),bitrateMin:e.readUInt32LE(t+17)})}}).call(this,r(10).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VorbisDecoder=void 0;const n=r(13);t.VorbisDecoder=class{constructor(e,t){this.data=e,this.offset=t}readInt32(){const e=n.UINT32_LE.get(this.data,this.offset);return this.offset+=4,e}readStringUtf8(){const e=this.readInt32(),t=this.data.toString("utf8",this.offset,this.offset+e);return this.offset+=e,t}parseUserComment(){const e=this.offset,t=this.readStringUtf8(),r=t.indexOf("=");return{key:t.slice(0,r).toUpperCase(),value:t.slice(r+1),len:this.offset-e}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChapterText=t.StcoAtom=t.StszAtom=t.StscAtom=t.SampleToChunkToken=t.SttsAtom=t.TimeToSampleToken=t.SoundSampleDescriptionV0=t.SoundSampleDescriptionVersion=t.StsdAtom=t.TrackHeaderAtom=t.NameAtom=t.DataAtom=t.MvhdAtom=t.MdhdAtom=t.FixedLengthAtom=t.mhdr=t.tkhd=t.ftyp=t.ExtendedSize=t.Header=void 0;const n=r(13),i=r(35),a=r(19)("music-metadata:parser:MP4:atom");t.Header={len:8,get:(e,t)=>{const r=n.UINT32_BE.get(e,t);if(r<0)throw new Error("Invalid atom header length");return{length:r,name:new n.StringType(4,"binary").get(e,t+4)}},put:(e,t,r)=>(n.UINT32_BE.put(e,t,r.length),i.FourCcToken.put(e,t+4,r.name))},t.ExtendedSize=n.UINT64_BE,t.ftyp={len:4,get:(e,t)=>({type:new n.StringType(4,"ascii").get(e,t)})},t.tkhd={len:4,get:(e,t)=>({type:new n.StringType(4,"ascii").get(e,t)})},t.mhdr={len:8,get:(e,t)=>({version:n.UINT8.get(e,t+0),flags:n.UINT24_BE.get(e,t+1),nextItemID:n.UINT32_BE.get(e,t+4)})};class o{constructor(e,t,r){if(this.len=e,et&&a(`Warning: atom ${r} expected to be ${t}, but was actually ${e} bytes long.`)}}t.FixedLengthAtom=o;const s=(e,t)=>{const r=n.UINT32_BE.get(e,t)-2082844800;return new Date(1e3*r)};t.MdhdAtom=class extends o{constructor(e){super(e,24,"mdhd"),this.len=e}get(e,t){return{version:n.UINT8.get(e,t+0),flags:n.UINT24_BE.get(e,t+1),creationTime:s(e,t+4),modificationTime:s(e,t+8),timeScale:n.UINT32_BE.get(e,t+12),duration:n.UINT32_BE.get(e,t+16),language:n.UINT16_BE.get(e,t+20),quality:n.UINT16_BE.get(e,t+22)}}};t.MvhdAtom=class extends o{constructor(e){super(e,100,"mvhd"),this.len=e}get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),creationTime:s(e,t+4),modificationTime:s(e,t+8),timeScale:n.UINT32_BE.get(e,t+12),duration:n.UINT32_BE.get(e,t+16),preferredRate:n.UINT32_BE.get(e,t+20),preferredVolume:n.UINT16_BE.get(e,t+24),previewTime:n.UINT32_BE.get(e,t+72),previewDuration:n.UINT32_BE.get(e,t+76),posterTime:n.UINT32_BE.get(e,t+80),selectionTime:n.UINT32_BE.get(e,t+84),selectionDuration:n.UINT32_BE.get(e,t+88),currentTime:n.UINT32_BE.get(e,t+92),nextTrackID:n.UINT32_BE.get(e,t+96)}}};t.DataAtom=class{constructor(e){this.len=e}get(e,t){return{type:{set:n.UINT8.get(e,t+0),type:n.UINT24_BE.get(e,t+1)},locale:n.UINT24_BE.get(e,t+4),value:new n.BufferType(this.len-8).get(e,t+8)}}};t.NameAtom=class{constructor(e){this.len=e}get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),name:new n.StringType(this.len-4,"utf-8").get(e,t+4)}}};t.TrackHeaderAtom=class{constructor(e){this.len=e}get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),creationTime:s(e,t+4),modificationTime:s(e,t+8),trackId:n.UINT32_BE.get(e,t+12),duration:n.UINT32_BE.get(e,t+20),layer:n.UINT16_BE.get(e,t+24),alternateGroup:n.UINT16_BE.get(e,t+26),volume:n.UINT16_BE.get(e,t+28)}}};const c=8,u=(e,t)=>({version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),numberOfEntries:n.UINT32_BE.get(e,t+4)});class l{constructor(e){this.len=e}get(e,t){return{dataFormat:i.FourCcToken.get(e,t),dataReferenceIndex:n.UINT16_BE.get(e,t+10),description:new n.BufferType(this.len-12).get(e,t+12)}}}t.StsdAtom=class{constructor(e){this.len=e}get(e,t){const r=u(e,t);t+=c;const i=[];for(let a=0;a({version:n.INT16_BE.get(e,t),revision:n.INT16_BE.get(e,t+2),vendor:n.INT32_BE.get(e,t+4)})},t.SoundSampleDescriptionV0={len:12,get:(e,t)=>({numAudioChannels:n.INT16_BE.get(e,t+0),sampleSize:n.INT16_BE.get(e,t+2),compressionId:n.INT16_BE.get(e,t+4),packetSize:n.INT16_BE.get(e,t+6),sampleRate:n.UINT16_BE.get(e,t+8)+n.UINT16_BE.get(e,t+10)/1e4})};class f{constructor(e,t){this.len=e,this.token=t}get(e,t){const r=n.INT32_BE.get(e,t+4);return{version:n.INT8.get(e,t+0),flags:n.INT24_BE.get(e,t+1),numberOfEntries:r,entries:d(e,this.token,t+8,this.len-8,r)}}}t.TimeToSampleToken={len:8,get:(e,t)=>({count:n.INT32_BE.get(e,t+0),duration:n.INT32_BE.get(e,t+4)})};t.SttsAtom=class extends f{constructor(e){super(e,t.TimeToSampleToken),this.len=e}},t.SampleToChunkToken={len:12,get:(e,t)=>({firstChunk:n.INT32_BE.get(e,t),samplesPerChunk:n.INT32_BE.get(e,t+4),sampleDescriptionId:n.INT32_BE.get(e,t+8)})};t.StscAtom=class extends f{constructor(e){super(e,t.SampleToChunkToken),this.len=e}};t.StszAtom=class{constructor(e){this.len=e}get(e,t){const r=n.INT32_BE.get(e,t+8);return{version:n.INT8.get(e,t),flags:n.INT24_BE.get(e,t+1),sampleSize:n.INT32_BE.get(e,t+4),numberOfEntries:r,entries:d(e,n.INT32_BE,t+12,this.len-12,r)}}};t.StcoAtom=class extends f{constructor(e){super(e,n.INT32_BE),this.len=e}};function d(e,t,r,n,i){if(a(`remainingLen=${n}, numberOfEntries=${i} * token-len=${t.len}`),0===n)return[];if(n!==i*t.len)throw new Error("mismatch number-of-entries with remaining atom-length");const o=[];for(let a=0;a0)if("string"===typeof t||o.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)o.endEmitted?k(e,new _):C(e,o,t,!0);else if(o.ended)k(e,new y);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?C(e,o,t,!1):A(e,o)):C(e,o,t,!1)}else n||(o.reading=!1,A(e,o));return!o.ended&&(o.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function I(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(M,e))}function M(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function A(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function B(e){u("readable nexttick read 0"),e.read(0)}function R(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function z(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(F,t,e))}function F(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function L(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?z(this):I(this),null;if(0===(e=O(e,t))&&t.ended)return 0===t.length&&z(this),null;var n,i=t.needReadable;return u("need readable",i),(0===t.length||t.length-e0?N(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&z(this)),null!==n&&this.emit("data",n),n},x.prototype._read=function(e){k(this,new w("_read()"))},x.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,u("pipe count=%d opts=%j",i.pipesCount,t);var o=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?c:b;function s(t,n){u("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,u("cleanup"),e.removeListener("close",p),e.removeListener("finish",m),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",b),r.removeListener("data",d),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function c(){u("onend"),e.end()}i.endEmitted?n.nextTick(o):r.once("end",o),e.on("unpipe",s);var l=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,D(e))}}(r);e.on("drain",l);var f=!1;function d(t){u("ondata");var n=e.write(t);u("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==L(i.pipes,e))&&!f&&(u("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(t){u("onerror",t),b(),e.removeListener("error",h),0===a(e,"error")&&k(e,t)}function p(){e.removeListener("finish",m),b()}function m(){u("onfinish"),e.removeListener("close",p),b()}function b(){u("unpipe"),r.unpipe(e)}return r.on("data",d),function(e,t,r){if("function"===typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",p),e.once("finish",m),e.emit("pipe",r),i.flowing||(u("pipe resume"),r.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,u("on readable",i.length,i.reading),i.length?I(this):i.reading||n.nextTick(B,this))),r},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(e,t){var r=o.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(j,this),r},x.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(j,this),t},x.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(R,e,t))}(this,e)),e.paused=!1,this},x.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(u("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(u("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!==i&&void 0!==i)&&((r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause())))})),e)void 0===this[i]&&"function"===typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new m("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,t,r){var i=this._writableState;return"function"===typeof e?(r=e,e=null,t=null):"function"===typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,A(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,i,r),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=f.destroy,x.prototype._undestroy=f.undestroy,x.prototype._destroy=function(e,t){t(e)}}).call(this,r(34),r(25))},function(e,t,r){"use strict";e.exports=l;var n=r(92).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,a=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,c=r(93);function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new a);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{r=e},t.log=(...e)=>r?console.log.apply(this,e):null},function(e,t){e.exports=(e,t)=>`${e}-${t}-${Math.random().toString(16).slice(3,8)}`},function(e,t,r){"use strict";e.exports=r(311)},function(e,t,r){"use strict";function n(e){var t,r=e.Symbol;return"function"===typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{c(n.next(e))}catch(t){a(t)}}function s(e){try{c(n.throw(e))}catch(t){a(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]1||c(e,t)}))})}function c(e,t){try{(r=i[e](t)).value instanceof a?Promise.resolve(r.value.v).then(u,l):f(o[0][2],r)}catch(n){f(o[0][3],n)}var r}function u(e){c("next",e)}function l(e){c("throw",e)}function f(e,t){e(t),o.shift(),o.length&&c(o[0][0],o[0][1])}},s=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i{const n=new FileReader;n.onloadend=e=>{let r=e.target.result;r instanceof ArrayBuffer&&(r=o(new Uint8Array(e.target.result))),t(r)},n.onerror=e=>{r(new Error(e.type))},n.onabort=e=>{r(new Error(e.type))},n.readAsArrayBuffer(e)})}(e),n={mimeType:e.type,size:e.size};return e.name&&(n.path=e.name),i.parseBuffer(r,{mimeType:e.type,size:e.size},t)},t.fetchFromUrl=async function(e,t){const r=await fetch(e),n={size:parseInt(r.headers.get("Content-Length"),10),mimeType:r.headers.get("Content-Type")};if(r.ok){if(r.body){const e=await this.parseReadableStream(r.body,n,t);return s("Closing HTTP-readable-stream..."),r.body.locked||await r.body.cancel(),s("HTTP-readable-stream closed."),e}return this.parseBlob(await r.blob(),t)}throw new Error(`HTTP error status=${r.status}: ${r.statusText}`)}},function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";function n(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";var n=r(22),i=r(32);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(0)),o=(0,n(r(33)).default)(a.createElement("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),"Refresh");t.default=o},function(e,t,r){"use strict";var n=r(22),i=r(32);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(0)),o=(0,n(r(33)).default)(a.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");t.default=o},function(e,t,r){"use strict";var n=r(22),i=r(32);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(0)),o=(0,n(r(33)).default)(a.createElement("path",{d:"M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"ExitToApp");t.default=o},function(e,t,r){"use strict";var n=r(22),i=r(32);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(0)),o=(0,n(r(33)).default)(a.createElement("path",{d:"M17 7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h10c2.76 0 5-2.24 5-5s-2.24-5-5-5zm0 8c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z"}),"ToggleOn");t.default=o},function(e,t,r){"use strict";var n=r(22),i=r(32);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(0)),o=(0,n(r(33)).default)(a.createElement("path",{d:"M17 7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h10c2.76 0 5-2.24 5-5s-2.24-5-5-5zM7 15c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z"}),"ToggleOff");t.default=o},function(e,t,r){"use strict";var n=r(22),i=r(32);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(0)),o=(0,n(r(33)).default)(a.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");t.default=o},function(e,t,r){"use strict";var n=r(22),i=r(32);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(0)),o=(0,n(r(33)).default)(a.createElement("path",{d:"M12 .3a12 12 0 0 0-3.8 23.4c.6.1.8-.3.8-.6v-2c-3.3.7-4-1.6-4-1.6-.6-1.4-1.4-1.8-1.4-1.8-1-.7.1-.7.1-.7 1.2 0 1.9 1.2 1.9 1.2 1 1.8 2.8 1.3 3.5 1 0-.8.4-1.3.7-1.6-2.7-.3-5.5-1.3-5.5-6 0-1.2.5-2.3 1.3-3.1-.2-.4-.6-1.6 0-3.2 0 0 1-.3 3.4 1.2a11.5 11.5 0 0 1 6 0c2.3-1.5 3.3-1.2 3.3-1.2.6 1.6.2 2.8 0 3.2.9.8 1.3 1.9 1.3 3.2 0 4.6-2.8 5.6-5.5 5.9.5.4.9 1 .9 2.2v3.3c0 .3.1.7.8.6A12 12 0 0 0 12 .3"}),"GitHub");t.default=o},function(e,t,r){"use strict";var n=r(22),i=r(32);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(0)),o=(0,n(r(33)).default)(a.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");t.default=o},,function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",i=e.type||"",a=i.replace(/\/.*$/,"");return r.some((function(e){var t=e.trim();return"."===t.charAt(0)?n.toLowerCase().endsWith(t.toLowerCase()):t.endsWith("/*")?a===t.replace(/\/.*$/,""):i===t}))}return!0}},function(e,t,r){"use strict";var n=r(22),i=r(32);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(0)),o=(0,n(r(33)).default)(a.createElement("path",{d:"M6 6h2v12H6zm3.5 6l8.5 6V6z"}),"SkipPrevious");t.default=o},function(e,t,r){"use strict";var n=r(22),i=r(32);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(0)),o=(0,n(r(33)).default)(a.createElement("path",{d:"M8 5v14l11-7z"}),"PlayArrow");t.default=o},function(e,t,r){"use strict";var n=r(22),i=r(32);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(0)),o=(0,n(r(33)).default)(a.createElement("path",{d:"M6 6h12v12H6z"}),"Stop");t.default=o},function(e,t,r){"use strict";var n=r(22),i=r(32);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(0)),o=(0,n(r(33)).default)(a.createElement("path",{d:"M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z"}),"SkipNext");t.default=o},function(e,t,r){"use strict";(function(e){var r="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,n=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}();var i=r&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),n))}};function a(e){return e&&"[object Function]"==={}.toString.call(e)}function o(e,t){if(1!==e.nodeType)return[];var r=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?r[t]:r}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function c(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=o(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(r+i+n)?e:c(s(e))}function u(e){return e&&e.referenceNode?e.referenceNode:e}var l=r&&!(!window.MSInputMethodContext||!document.documentMode),f=r&&/MSIE 10/.test(navigator.userAgent);function d(e){return 11===e?l:10===e?f:l||f}function h(e){if(!e)return document.documentElement;for(var t=d(10)?document.body:null,r=e.offsetParent||null;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var n=r&&r.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(r.nodeName)&&"static"===o(r,"position")?h(r):r:e?e.ownerDocument.documentElement:document.documentElement}function p(e){return null!==e.parentNode?p(e.parentNode):e}function m(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?e:t,i=r?t:e,a=document.createRange();a.setStart(n,0),a.setEnd(i,0);var o=a.commonAncestorContainer;if(e!==o&&t!==o||n.contains(i))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||h(e.firstElementChild)===e)}(o)?o:h(o);var s=p(e);return s.host?m(s.host,t):m(e,p(t).host)}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",r="top"===t?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var i=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||i;return a[r]}return e[r]}function g(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=b(t,"top"),i=b(t,"left"),a=r?-1:1;return e.top+=n*a,e.bottom+=n*a,e.left+=i*a,e.right+=i*a,e}function v(e,t){var r="x"===t?"Left":"Top",n="Left"===r?"Right":"Bottom";return parseFloat(e["border"+r+"Width"])+parseFloat(e["border"+n+"Width"])}function y(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],d(10)?parseInt(r["offset"+e])+parseInt(n["margin"+("Height"===e?"Top":"Left")])+parseInt(n["margin"+("Height"===e?"Bottom":"Right")]):0)}function w(e){var t=e.body,r=e.documentElement,n=d(10)&&getComputedStyle(r);return{height:y("Height",t,r,n),width:y("Width",t,r,n)}}var _=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},k=function(){function e(e,t){for(var r=0;r2&&void 0!==arguments[2]&&arguments[2],n=d(10),i="HTML"===t.nodeName,a=T(e),s=T(t),u=c(e),l=o(t),f=parseFloat(l.borderTopWidth),h=parseFloat(l.borderLeftWidth);r&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var p=x({top:a.top-s.top-f,left:a.left-s.left-h,width:a.width,height:a.height});if(p.marginTop=0,p.marginLeft=0,!n&&i){var m=parseFloat(l.marginTop),b=parseFloat(l.marginLeft);p.top-=f-m,p.bottom-=f-m,p.left-=h-b,p.right-=h-b,p.marginTop=m,p.marginLeft=b}return(n&&!r?t.contains(u):t===u&&"BODY"!==u.nodeName)&&(p=g(p,t)),p}function O(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.ownerDocument.documentElement,n=C(e,r),i=Math.max(r.clientWidth,window.innerWidth||0),a=Math.max(r.clientHeight,window.innerHeight||0),o=t?0:b(r),s=t?0:b(r,"left"),c={top:o-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:i,height:a};return x(c)}function I(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===o(e,"position"))return!0;var r=s(e);return!!r&&I(r)}function M(e){if(!e||!e.parentElement||d())return document.documentElement;for(var t=e.parentElement;t&&"none"===o(t,"transform");)t=t.parentElement;return t||document.documentElement}function A(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},o=i?M(e):m(e,u(t));if("viewport"===n)a=O(o,i);else{var l=void 0;"scrollParent"===n?"BODY"===(l=c(s(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===n?e.ownerDocument.documentElement:n;var f=C(l,o,i);if("HTML"!==l.nodeName||I(o))a=f;else{var d=w(e.ownerDocument),h=d.height,p=d.width;a.top+=f.top-f.marginTop,a.bottom=h+f.top,a.left+=f.left-f.marginLeft,a.right=p+f.left}}var b="number"===typeof(r=r||0);return a.left+=b?r:r.left||0,a.top+=b?r:r.top||0,a.right-=b?r:r.right||0,a.bottom-=b?r:r.bottom||0,a}function P(e){return e.width*e.height}function j(e,t,r,n,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var o=A(r,n,a,i),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},c=Object.keys(s).map((function(e){return E({key:e},s[e],{area:P(s[e])})})).sort((function(e,t){return t.area-e.area})),u=c.filter((function(e){var t=e.width,n=e.height;return t>=r.clientWidth&&n>=r.clientHeight})),l=u.length>0?u[0].key:c[0].key,f=e.split("-")[1];return l+(f?"-"+f:"")}function B(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=n?M(t):m(t,u(r));return C(r,i,n)}function R(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),r=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),n=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+n,height:e.offsetHeight+r}}function D(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function N(e,t,r){r=r.split("-")[0];var n=R(e),i={width:n.width,height:n.height},a=-1!==["right","left"].indexOf(r),o=a?"top":"left",s=a?"left":"top",c=a?"height":"width",u=a?"width":"height";return i[o]=t[o]+t[c]/2-n[c]/2,i[s]=r===s?t[s]-n[u]:t[D(s)],i}function z(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function F(e,t,r){return(void 0===r?e:e.slice(0,function(e,t,r){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===r}));var n=z(e,(function(e){return e[t]===r}));return e.indexOf(n)}(e,"name",r))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=e.function||e.fn;e.enabled&&a(r)&&(t.offsets.popper=x(t.offsets.popper),t.offsets.reference=x(t.offsets.reference),t=r(t,e))})),t}function L(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=B(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=j(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=N(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=F(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function U(e,t){return e.some((function(e){var r=e.name;return e.enabled&&r===t}))}function H(e){for(var t=[!1,"ms","Webkit","Moz","O"],r=e.charAt(0).toUpperCase()+e.slice(1),n=0;n1&&void 0!==arguments[1]&&arguments[1],r=Z.indexOf(e),n=Z.slice(r+1).concat(Z.slice(0,r));return t?n.reverse():n}var te="flip",re="clockwise",ne="counterclockwise";function ie(e,t,r,n){var i=[0,0],a=-1!==["right","left"].indexOf(n),o=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=o.indexOf(z(o,(function(e){return-1!==e.search(/,|\s/)})));o[s]&&-1===o[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,u=-1!==s?[o.slice(0,s).concat([o[s].split(c)[0]]),[o[s].split(c)[1]].concat(o.slice(s+1))]:[o];return(u=u.map((function(e,n){var i=(1===n?!a:a)?"height":"width",o=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,r,n){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],o=i[2];if(!a)return e;if(0===o.indexOf("%")){var s=void 0;switch(o){case"%p":s=r;break;case"%":case"%r":default:s=n}return x(s)[t]/100*a}if("vh"===o||"vw"===o){return("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a}return a}(e,i,t,r)}))}))).forEach((function(e,t){e.forEach((function(r,n){X(r)&&(i[t]+=r*("-"===e[n-1]?-1:1))}))})),i}var ae={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,r=t.split("-")[0],n=t.split("-")[1];if(n){var i=e.offsets,a=i.reference,o=i.popper,s=-1!==["bottom","top"].indexOf(r),c=s?"left":"top",u=s?"width":"height",l={start:S({},c,a[c]),end:S({},c,a[c]+a[u]-o[u])};e.offsets.popper=E({},o,l[n])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var r=t.offset,n=e.placement,i=e.offsets,a=i.popper,o=i.reference,s=n.split("-")[0],c=void 0;return c=X(+r)?[+r,0]:ie(r,a,o,s),"left"===s?(a.top+=c[0],a.left-=c[1]):"right"===s?(a.top+=c[0],a.left+=c[1]):"top"===s?(a.left+=c[0],a.top-=c[1]):"bottom"===s&&(a.left+=c[0],a.top+=c[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var r=t.boundariesElement||h(e.instance.popper);e.instance.reference===r&&(r=h(r));var n=H("transform"),i=e.instance.popper.style,a=i.top,o=i.left,s=i[n];i.top="",i.left="",i[n]="";var c=A(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);i.top=a,i.left=o,i[n]=s,t.boundaries=c;var u=t.priority,l=e.offsets.popper,f={primary:function(e){var r=l[e];return l[e]c[e]&&!t.escapeWithReference&&(n=Math.min(l[r],c[e]-("right"===e?l.width:l.height))),S({},r,n)}};return u.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=E({},l,f[t](e))})),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,r=t.popper,n=t.reference,i=e.placement.split("-")[0],a=Math.floor,o=-1!==["top","bottom"].indexOf(i),s=o?"right":"bottom",c=o?"left":"top",u=o?"width":"height";return r[s]a(n[s])&&(e.offsets.popper[c]=a(n[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var r;if(!Y(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if("string"===typeof n){if(!(n=e.instance.popper.querySelector(n)))return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],a=e.offsets,s=a.popper,c=a.reference,u=-1!==["left","right"].indexOf(i),l=u?"height":"width",f=u?"Top":"Left",d=f.toLowerCase(),h=u?"left":"top",p=u?"bottom":"right",m=R(n)[l];c[p]-ms[p]&&(e.offsets.popper[d]+=c[d]+m-s[p]),e.offsets.popper=x(e.offsets.popper);var b=c[d]+c[l]/2-m/2,g=o(e.instance.popper),v=parseFloat(g["margin"+f]),y=parseFloat(g["border"+f+"Width"]),w=b-e.offsets.popper[d]-v-y;return w=Math.max(Math.min(s[l]-m,w),0),e.arrowElement=n,e.offsets.arrow=(S(r={},d,Math.round(w)),S(r,h,""),r),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(U(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var r=A(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],i=D(n),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case te:o=[n,i];break;case re:o=ee(n);break;case ne:o=ee(n,!0);break;default:o=t.behavior}return o.forEach((function(s,c){if(n!==s||o.length===c+1)return e;n=e.placement.split("-")[0],i=D(n);var u=e.offsets.popper,l=e.offsets.reference,f=Math.floor,d="left"===n&&f(u.right)>f(l.left)||"right"===n&&f(u.left)f(l.top)||"bottom"===n&&f(u.top)f(r.right),m=f(u.top)f(r.bottom),g="left"===n&&h||"right"===n&&p||"top"===n&&m||"bottom"===n&&b,v=-1!==["top","bottom"].indexOf(n),y=!!t.flipVariations&&(v&&"start"===a&&h||v&&"end"===a&&p||!v&&"start"===a&&m||!v&&"end"===a&&b),w=!!t.flipVariationsByContent&&(v&&"start"===a&&p||v&&"end"===a&&h||!v&&"start"===a&&b||!v&&"end"===a&&m),_=y||w;(d||g||_)&&(e.flipped=!0,(d||g)&&(n=o[c+1]),_&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=n+(a?"-"+a:""),e.offsets.popper=E({},e.offsets.popper,N(e.instance.popper,e.offsets.reference,e.placement)),e=F(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,r=t.split("-")[0],n=e.offsets,i=n.popper,a=n.reference,o=-1!==["left","right"].indexOf(r),s=-1===["top","left"].indexOf(r);return i[o?"left":"top"]=a[r]-(s?i[o?"width":"height"]:0),e.placement=D(t),e.offsets.popper=x(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Y(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=z(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomr.right||t.top>r.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};_(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=i(this.update.bind(this)),this.options=E({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(E({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){n.options.modifiers[t]=E({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return E({name:e},n.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&a(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return k(e,[{key:"update",value:function(){return L.call(this)}},{key:"destroy",value:function(){return W.call(this)}},{key:"enableEventListeners",value:function(){return V.call(this)}},{key:"disableEventListeners",value:function(){return K.call(this)}}]),e}();oe.Utils=("undefined"!==typeof window?window:e).PopperUtils,oe.placements=J,oe.Defaults=ae,t.a=oe}).call(this,r(34))},function(e,t,r){"use strict";var n=r(22),i=r(32);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(0)),o=(0,n(r(33)).default)(a.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");t.default=o},function(e,t,r){"use strict";var n=r(22),i=r(32);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(0)),o=(0,n(r(33)).default)(a.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.default=o},function(e,t){var r=function(e,t){var r=t||{},n=r.bufferLen||4096;this.context=e.context,this.node=(this.context.createScriptProcessor||this.context.createJavaScriptNode).call(this.context,n,2,2);var i=new Worker("./recorderWorker.js");i.onmessage=function(e){var t=e.data;a(t)},i.postMessage({command:"init",config:{sampleRate:this.context.sampleRate}});var a,o=!1;this.node.onaudioprocess=function(e){o&&i.postMessage({command:"record",buffer:[e.inputBuffer.getChannelData(0),e.inputBuffer.getChannelData(1)]})},this.configure=function(e){for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t])},this.record=function(){o=!0},this.stop=function(){o=!1},this.clear=function(){i.postMessage({command:"clear"})},this.getBuffer=function(e){a=e||r.callback,i.postMessage({command:"getBuffer"})},this.exportWAV=function(e,t){if(a=e||r.callback,t=t||r.type||"audio/wav",!a)throw new Error("Callback not set");i.postMessage({command:"exportWAV",type:t})},e.connect(this.node),this.node.connect(this.context.destination)};r.forceDownload=function(e,t){var r=(window.URL||window.webkitURL).createObjectURL(e),n=window.document.createElement("a");n.href=r,n.download=t||"output.wav";var i=document.createEvent("Event");i.initEvent("click",!0,!0),n.dispatchEvent(i)},e.exports=r},function(e,t,r){"use strict";var n=r(20),i=r(2),a=r(178),o=r(1),s=["xs","sm","md","lg","xl"];function c(e){var t=e.values,r=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,n=e.unit,a=void 0===n?"px":n,c=e.step,u=void 0===c?5:c,l=Object(i.a)(e,["values","unit","step"]);function f(e){var t="number"===typeof r[e]?r[e]:e;return"@media (min-width:".concat(t).concat(a,")")}function d(e,t){var n=s.indexOf(t);return n===s.length-1?f(e):"@media (min-width:".concat("number"===typeof r[e]?r[e]:e).concat(a,") and ")+"(max-width:".concat((-1!==n&&"number"===typeof r[s[n+1]]?r[s[n+1]]:t)-u/100).concat(a,")")}return Object(o.a)({keys:s,values:r,up:f,down:function(e){var t=s.indexOf(e)+1,n=r[s[t]];return t===s.length?f("xs"):"@media (max-width:".concat(("number"===typeof n&&t>0?n:e)-u/100).concat(a,")")},between:d,only:function(e){return d(e,e)},width:function(e){return r[e]}},l)}function u(e,t,r){var i;return Object(o.a)({gutters:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(o.a)({paddingLeft:t(2),paddingRight:t(2)},r,Object(n.a)({},e.up("sm"),Object(o.a)({paddingLeft:t(3),paddingRight:t(3)},r[e.up("sm")])))},toolbar:(i={minHeight:56},Object(n.a)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(n.a)(i,e.up("sm"),{minHeight:64}),i)},r)}var l=r(137),f={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},h={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},p={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},m={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},b={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},v={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},y=r(12),w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.white,default:d[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},_={text:{primary:f.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:d[800],default:"#303030"},action:{active:f.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function k(e,t,r,n){var i=n.light||n,a=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=Object(y.d)(e.main,i):"dark"===t&&(e.dark=Object(y.a)(e.main,a)))}function S(e){var t=e.primary,r=void 0===t?{light:h[300],main:h[500],dark:h[700]}:t,n=e.secondary,s=void 0===n?{light:p.A200,main:p.A400,dark:p.A700}:n,c=e.error,u=void 0===c?{light:m[300],main:m[500],dark:m[700]}:c,S=e.warning,E=void 0===S?{light:b[300],main:b[500],dark:b[700]}:S,x=e.info,T=void 0===x?{light:g[300],main:g[500],dark:g[700]}:x,C=e.success,O=void 0===C?{light:v[300],main:v[500],dark:v[700]}:C,I=e.type,M=void 0===I?"light":I,A=e.contrastThreshold,P=void 0===A?3:A,j=e.tonalOffset,B=void 0===j?.2:j,R=Object(i.a)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function D(e){return Object(y.c)(e,_.text.primary)>=P?_.text.primary:w.text.primary}var N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Object(o.a)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Object(l.a)(4,t));if("string"!==typeof e.main)throw new Error(Object(l.a)(5,JSON.stringify(e.main)));return k(e,"light",r,B),k(e,"dark",n,B),e.contrastText||(e.contrastText=D(e.main)),e},z={dark:_,light:w};return Object(a.a)(Object(o.a)({common:f,type:M,primary:N(r),secondary:N(s,"A400","A200","A700"),error:N(u),warning:N(E),info:N(T),success:N(O),grey:d,contrastThreshold:P,getContrastText:D,augmentColor:N,tonalOffset:B},z[M]),R)}function E(e){return Math.round(1e5*e)/1e5}var x={textTransform:"uppercase"};function T(e,t){var r="function"===typeof t?t(e):t,n=r.fontFamily,s=void 0===n?'"Roboto", "Helvetica", "Arial", sans-serif':n,c=r.fontSize,u=void 0===c?14:c,l=r.fontWeightLight,f=void 0===l?300:l,d=r.fontWeightRegular,h=void 0===d?400:d,p=r.fontWeightMedium,m=void 0===p?500:p,b=r.fontWeightBold,g=void 0===b?700:b,v=r.htmlFontSize,y=void 0===v?16:v,w=r.allVariants,_=r.pxToRem,k=Object(i.a)(r,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var S=u/14,T=_||function(e){return"".concat(e/y*S,"rem")},C=function(e,t,r,n,i){return Object(o.a)({fontFamily:s,fontWeight:e,fontSize:T(t),lineHeight:r},'"Roboto", "Helvetica", "Arial", sans-serif'===s?{letterSpacing:"".concat(E(n/t),"em")}:{},i,w)},O={h1:C(f,96,1.167,-1.5),h2:C(f,60,1.2,-.5),h3:C(h,48,1.167,0),h4:C(h,34,1.235,.25),h5:C(h,24,1.334,0),h6:C(m,20,1.6,.15),subtitle1:C(h,16,1.75,.15),subtitle2:C(m,14,1.57,.1),body1:C(h,16,1.5,.15),body2:C(h,14,1.43,.15),button:C(m,14,1.75,.4,x),caption:C(h,12,1.66,.4),overline:C(h,12,2.66,1,x)};return Object(a.a)(Object(o.a)({htmlFontSize:y,pxToRem:T,round:E,fontFamily:s,fontSize:u,fontWeightLight:f,fontWeightRegular:h,fontWeightMedium:m,fontWeightBold:g},O),k,{clone:!1})}function C(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var O=["none",C(0,2,1,-1,0,1,1,0,0,1,3,0),C(0,3,1,-2,0,2,2,0,0,1,5,0),C(0,3,3,-2,0,3,4,0,0,1,8,0),C(0,2,4,-1,0,4,5,0,0,1,10,0),C(0,3,5,-1,0,5,8,0,0,1,14,0),C(0,3,5,-1,0,6,10,0,0,1,18,0),C(0,4,5,-2,0,7,10,1,0,2,16,1),C(0,5,5,-3,0,8,10,1,0,3,14,2),C(0,5,6,-3,0,9,12,1,0,3,16,2),C(0,6,6,-3,0,10,14,1,0,4,18,3),C(0,6,7,-4,0,11,15,1,0,4,20,3),C(0,7,8,-4,0,12,17,2,0,5,22,4),C(0,7,8,-4,0,13,19,2,0,5,24,4),C(0,7,9,-4,0,14,21,2,0,5,26,4),C(0,8,9,-5,0,15,22,2,0,6,28,5),C(0,8,10,-5,0,16,24,2,0,6,30,5),C(0,8,11,-5,0,17,26,2,0,6,32,5),C(0,9,11,-5,0,18,28,2,0,7,34,6),C(0,9,12,-6,0,19,29,2,0,7,36,6),C(0,10,13,-6,0,20,31,3,0,8,38,7),C(0,10,13,-6,0,21,33,3,0,8,40,7),C(0,10,14,-6,0,22,35,3,0,8,42,7),C(0,11,14,-7,0,23,36,3,0,9,44,8),C(0,11,15,-7,0,24,38,3,0,9,46,8)],I={borderRadius:4},M=r(134);function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=Object(M.a)({spacing:e}),r=function(){for(var e=arguments.length,r=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,r=void 0===t?{}:t,n=e.mixins,o=void 0===n?{}:n,s=e.palette,l=void 0===s?{}:s,f=e.spacing,d=e.typography,h=void 0===d?{}:d,p=Object(i.a)(e,["breakpoints","mixins","palette","spacing","typography"]),m=S(l),b=c(r),g=A(f),v=Object(a.a)({breakpoints:b,direction:"ltr",mixins:u(b,g,o),overrides:{},palette:m,props:{},shadows:O,typography:T(m,h),spacing:g,shape:I,transitions:P.a,zIndex:j.a},p),y=arguments.length,w=new Array(y>1?y-1:0),_=1;_0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0)&&!(n=a.next()).done;)o.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o}var l=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function f(e,t){var r=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var r=t.split(".").pop().toLowerCase(),n=l.get(r);n&&Object.defineProperty(e,"type",{value:n,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!==typeof r.path){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:"string"===typeof t?t:"string"===typeof n&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}var d=[".DS_Store","Thumbs.db"];function h(e){return s(this,void 0,void 0,(function(){return c(this,(function(t){return[2,(r=e,r.dataTransfer&&e.dataTransfer?m(e.dataTransfer,e.type):p(e))];var r}))}))}function p(e){return(null!==e.target&&e.target.files?g(e.target.files):[]).map((function(e){return f(e)}))}function m(e,t){return s(this,void 0,void 0,(function(){var r;return c(this,(function(n){switch(n.label){case 0:return e.items?(r=g(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,r]:[4,Promise.all(r.map(v))]):[3,2];case 1:return[2,b(y(n.sent()))];case 2:return[2,b(g(e.files).map((function(e){return f(e)})))]}}))}))}function b(e){return e.filter((function(e){return-1===d.indexOf(e.name)}))}function g(e){for(var t=[],r=0;r=t&&e.size<=r;if(O(t))return e.size>=t;if(O(r))return e.size<=r}return!0}function O(e){return void 0!==e&&null!==e}function I(e){var t=e.files,r=e.accept,n=e.minSize,i=e.maxSize;return!(!e.multiple&&t.length>1)&&t.every((function(e){return T(e,r)&&C(e,n,i)}))}function M(e){return"function"===typeof e.isPropagationStopped?e.isPropagationStopped():"undefined"!==typeof e.cancelBubble&&e.cancelBubble}function A(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function P(e){e.preventDefault()}function j(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function B(e){return-1!==e.indexOf("Edge/")}function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return j(e)||B(e)}function D(){for(var e=arguments.length,t=new Array(e),r=0;r1?r-1:0),i=1;i=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r.d(t,"a",(function(){return $}));var W=Object(n.forwardRef)((function(e,t){var r=e.children,a=$(H(e,["children"])),o=a.open,s=H(a,["open"]);return Object(n.useImperativeHandle)(t,(function(){return{open:o}}),[o]),i.a.createElement(n.Fragment,null,r(L({},s,{open:o})))}));W.displayName="Dropzone",W.propTypes={children:o.a.func,accept:o.a.oneOfType([o.a.string,o.a.arrayOf(o.a.string)]),multiple:o.a.bool,preventDropOnDocument:o.a.bool,noClick:o.a.bool,noKeyboard:o.a.bool,noDrag:o.a.bool,noDragEventsBubbling:o.a.bool,minSize:o.a.number,maxSize:o.a.number,disabled:o.a.bool,getFilesFromEvent:o.a.func,onFileDialogCancel:o.a.func,onDragEnter:o.a.func,onDragLeave:o.a.func,onDragOver:o.a.func,onDrop:o.a.func,onDropAccepted:o.a.func,onDropRejected:o.a.func};var q={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],rejectedFiles:[]};function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.accept,r=e.disabled,i=void 0!==r&&r,a=e.getFilesFromEvent,o=void 0===a?h:a,s=e.maxSize,c=void 0===s?1/0:s,u=e.minSize,l=void 0===u?0:u,f=e.multiple,d=void 0===f||f,p=e.onDragEnter,m=e.onDragLeave,b=e.onDragOver,g=e.onDrop,v=e.onDropAccepted,y=e.onDropRejected,w=e.onFileDialogCancel,_=e.preventDropOnDocument,k=void 0===_||_,S=e.noClick,E=void 0!==S&&S,x=e.noKeyboard,O=void 0!==x&&x,j=e.noDrag,B=void 0!==j&&j,F=e.noDragEventsBubbling,W=void 0!==F&&F,$=Object(n.useRef)(null),K=Object(n.useRef)(null),X=Object(n.useReducer)(V,q),G=z(X,2),Q=G[0],Y=G[1],J=Q.isFocused,Z=Q.isFileDialogActive,ee=Q.draggedFiles,te=Object(n.useCallback)((function(){K.current&&(Y({type:"openDialog"}),K.current.value=null,K.current.click())}),[Y]),re=function(){Z&&setTimeout((function(){K.current&&(K.current.files.length||(Y({type:"closeDialog"}),"function"===typeof w&&w()))}),300)};Object(n.useEffect)((function(){return window.addEventListener("focus",re,!1),function(){window.removeEventListener("focus",re,!1)}}),[K,Z,w]);var ne=Object(n.useCallback)((function(e){$.current&&$.current.isEqualNode(e.target)&&(32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),te()))}),[$,K]),ie=Object(n.useCallback)((function(){Y({type:"focus"})}),[]),ae=Object(n.useCallback)((function(){Y({type:"blur"})}),[]),oe=Object(n.useCallback)((function(){E||(R()?setTimeout(te,0):te())}),[K,E]),se=Object(n.useRef)([]),ce=function(e){$.current&&$.current.contains(e.target)||(e.preventDefault(),se.current=[])};Object(n.useEffect)((function(){return k&&(document.addEventListener("dragover",P,!1),document.addEventListener("drop",ce,!1)),function(){k&&(document.removeEventListener("dragover",P),document.removeEventListener("drop",ce))}}),[$,k]);var ue=Object(n.useCallback)((function(e){e.preventDefault(),e.persist(),be(e),-1===se.current.indexOf(e.target)&&(se.current=[].concat(N(se.current),[e.target])),A(e)&&Promise.resolve(o(e)).then((function(t){M(e)&&!W||(Y({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),p&&p(e))}))}),[o,p,W]),le=Object(n.useCallback)((function(e){if(e.preventDefault(),e.persist(),be(e),e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(t){}return A(e)&&b&&b(e),!1}),[b,W]),fe=Object(n.useCallback)((function(e){e.preventDefault(),e.persist(),be(e);var t=se.current.filter((function(t){return t!==e.target&&$.current&&$.current.contains(t)}));se.current=t,t.length>0||(Y({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),A(e)&&m&&m(e))}),[$,m,W]),de=Object(n.useCallback)((function(e){e.preventDefault(),e.persist(),be(e),se.current=[],A(e)&&Promise.resolve(o(e)).then((function(r){if(!M(e)||W){var n=[],i=[];r.forEach((function(e){T(e,t)&&C(e,l,c)?n.push(e):i.push(e)})),!d&&n.length>1&&i.push.apply(i,N(n.splice(0))),Y({acceptedFiles:n,rejectedFiles:i,type:"setFiles"}),g&&g(n,i,e),i.length>0&&y&&y(i,e),n.length>0&&v&&v(n,e)}})),Y({type:"reset"})}),[d,t,l,c,o,g,v,y,W]),he=function(e){return i?null:e},pe=function(e){return O?null:he(e)},me=function(e){return B?null:he(e)},be=function(e){W&&e.stopPropagation()},ge=Object(n.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,n=e.onKeyDown,a=e.onFocus,o=e.onBlur,s=e.onClick,c=e.onDragEnter,u=e.onDragOver,l=e.onDragLeave,f=e.onDrop,d=H(e,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return L(U({onKeyDown:pe(D(n,ne)),onFocus:pe(D(a,ie)),onBlur:pe(D(o,ae)),onClick:he(D(s,oe)),onDragEnter:me(D(c,ue)),onDragOver:me(D(u,le)),onDragLeave:me(D(l,fe)),onDrop:me(D(f,de))},r,$),i||O?{}:{tabIndex:0},{},d)}}),[$,ne,ie,ae,oe,ue,le,fe,de,O,B,i]),ve=Object(n.useCallback)((function(e){e.stopPropagation()}),[]),ye=Object(n.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.refKey,n=void 0===r?"ref":r,i=e.onChange,a=e.onClick,o=H(e,["refKey","onChange","onClick"]),s=U({accept:t,multiple:d,type:"file",style:{display:"none"},onChange:he(D(i,de)),onClick:he(D(a,ve)),autoComplete:"off",tabIndex:-1},n,K);return L({},s,{},o)}}),[K,t,d,de,i]),we=ee.length,_e=we>0&&I({files:ee,accept:t,minSize:l,maxSize:c,multiple:d}),ke=we>0&&!_e;return L({},Q,{isDragAccept:_e,isDragReject:ke,isFocused:J&&!i,getRootProps:ge,getInputProps:ye,rootRef:$,inputRef:K,open:he(te)})}function V(e,t){switch(t.type){case"focus":return L({},e,{isFocused:!0});case"blur":return L({},e,{isFocused:!1});case"openDialog":return L({},e,{isFileDialogActive:!0});case"closeDialog":return L({},e,{isFileDialogActive:!1});case"setDraggedFiles":var r=t.isDragActive;return L({},e,{draggedFiles:t.draggedFiles,isDragActive:r});case"setFiles":return L({},e,{acceptedFiles:t.acceptedFiles,rejectedFiles:t.rejectedFiles});case"reset":return L({},e,{isFileDialogActive:!1,isDragActive:!1,draggedFiles:[],acceptedFiles:[],rejectedFiles:[]});default:return e}}},function(e,t,r){"use strict";function n(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{c(n.next(e))}catch(t){a(t)}}function s(e){try{c(n.throw(e))}catch(t){a(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))}function i(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var e=this._currentReleaser;this._currentReleaser=void 0,e()}},e.prototype._dispatch=function(){var e=this,t=this._queue.shift();if(t){var r=!1;this._currentReleaser=function(){r||(r=!0,e._value++,e._dispatch())},t([this._value--,this._currentReleaser])}},e}(),o=function(){function e(){this._semaphore=new a(1)}return e.prototype.acquire=function(){return n(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return[4,this._semaphore.acquire()];case 1:return e=t.sent(),[2,e[1]]}}))}))},e.prototype.runExclusive=function(e){return this._semaphore.runExclusive((function(){return e()}))},e.prototype.isLocked=function(){return this._semaphore.isLocked()},e.prototype.release=function(){this._semaphore.release()},e}();r.d(t,"a",(function(){return o}))},function(e,t,r){"use strict";var n=r(1),i=r(2),a=r(0),o=(r(59),r(4),r(3)),s=r(5),c=r(16),u=r(60),l=r(28),f=r(97),d=r(50),h=r(550),p=r(593),m=r(545);function b(e,t){var r=0;return"number"===typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function g(e,t){var r=0;return"number"===typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function v(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function y(e){return"function"===typeof e?e():e}var w=a.forwardRef((function(e,t){var r=e.action,s=e.anchorEl,w=e.anchorOrigin,_=void 0===w?{vertical:"top",horizontal:"left"}:w,k=e.anchorPosition,S=e.anchorReference,E=void 0===S?"anchorEl":S,x=e.children,T=e.classes,C=e.className,O=e.container,I=e.elevation,M=void 0===I?8:I,A=e.getContentAnchorEl,P=e.marginThreshold,j=void 0===P?16:P,B=e.onEnter,R=e.onEntered,D=e.onEntering,N=e.onExit,z=e.onExited,F=e.onExiting,L=e.open,U=e.PaperProps,H=void 0===U?{}:U,W=e.transformOrigin,q=void 0===W?{vertical:"top",horizontal:"left"}:W,$=e.TransitionComponent,V=void 0===$?p.a:$,K=e.transitionDuration,X=void 0===K?"auto":K,G=e.TransitionProps,Q=void 0===G?{}:G,Y=Object(i.a)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),J=a.useRef(),Z=a.useCallback((function(e){if("anchorPosition"===E)return k;var t=y(s),r=(t&&1===t.nodeType?t:Object(l.a)(J.current).body).getBoundingClientRect(),n=0===e?_.vertical:"center";return{top:r.top+b(r,n),left:r.left+g(r,_.horizontal)}}),[s,_.horizontal,_.vertical,k,E]),ee=a.useCallback((function(e){var t=0;if(A&&"anchorEl"===E){var r=A(e);if(r&&e.contains(r)){var n=function(e,t){for(var r=t,n=0;r&&r!==e;)n+=(r=r.parentElement).scrollTop;return n}(e,r);t=r.offsetTop+r.clientHeight/2-n||0}0}return t}),[_.vertical,E,A]),te=a.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:b(e,q.vertical)+t,horizontal:g(e,q.horizontal)}}),[q.horizontal,q.vertical]),re=a.useCallback((function(e){var t=ee(e),r={width:e.offsetWidth,height:e.offsetHeight},n=te(r,t);if("none"===E)return{top:null,left:null,transformOrigin:v(n)};var i=Z(t),a=i.top-n.vertical,o=i.left-n.horizontal,c=a+r.height,u=o+r.width,l=Object(f.a)(y(s)),d=l.innerHeight-j,h=l.innerWidth-j;if(ad){var m=c-d;a-=m,n.vertical+=m}if(oh){var g=u-h;o-=g,n.horizontal+=g}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(o),"px"),transformOrigin:v(n)}}),[s,E,Z,ee,te,j]),ne=a.useCallback((function(){var e=J.current;if(e){var t=re(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[re]),ie=a.useCallback((function(e){J.current=c.findDOMNode(e)}),[]);a.useEffect((function(){L&&ne()})),a.useImperativeHandle(r,(function(){return L?{updatePosition:function(){ne()}}:null}),[L,ne]),a.useEffect((function(){if(L){var e=Object(u.a)((function(){ne()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[L,ne]);var ae=X;"auto"!==X||V.muiSupportAuto||(ae=void 0);var oe=O||(s?Object(l.a)(y(s)).body:void 0);return(a.createElement(h.a,Object(n.a)({container:oe,open:L,ref:t,BackdropProps:{invisible:!0},className:Object(o.default)(T.root,C)},Y),a.createElement(V,Object(n.a)({appear:!0,in:L,onEnter:B,onEntered:R,onExit:N,onExited:z,onExiting:F,timeout:ae},Q,{onEntering:Object(d.a)((function(e,t){D&&D(e,t),ne()}),Q.onEntering)}),a.createElement(m.a,Object(n.a)({elevation:M,ref:ie},H,{className:Object(o.default)(T.paper,H.className)}),x))))})),_=Object(s.a)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(w),k=r(52),S=a.forwardRef((function(e,t){var r=e.children,s=e.classes,c=e.className,u=e.component,l=void 0===u?"ul":u,f=e.dense,d=void 0!==f&&f,h=e.disablePadding,p=void 0!==h&&h,m=e.subheader,b=Object(i.a)(e,["children","classes","className","component","dense","disablePadding","subheader"]),g=a.useMemo((function(){return{dense:d}}),[d]);return a.createElement(k.a.Provider,{value:g},a.createElement(l,Object(n.a)({className:Object(o.default)(s.root,c,d&&s.dense,!p&&s.padding,m&&s.subheader),ref:t},b),m,r))})),E=Object(s.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(S),x=r(141),T=r(11);function C(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function O(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function I(e,t){if(void 0===t)return!0;var r=e.innerText;return void 0===r&&(r=e.textContent),0!==(r=r.trim().toLowerCase()).length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function M(e,t,r,n,i,a){for(var o=!1,s=i(e,t,!!t&&r);s;){if(s===e.firstChild){if(o)return;o=!0}var c=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&I(s,a)&&!c)return void s.focus();s=i(e,s,r)}}var A="undefined"===typeof window?a.useEffect:a.useLayoutEffect,P=a.forwardRef((function(e,t){var r=e.actions,o=e.autoFocus,s=void 0!==o&&o,u=e.autoFocusItem,f=void 0!==u&&u,d=e.children,h=e.className,p=e.disabledItemsFocusable,m=void 0!==p&&p,b=e.disableListWrap,g=void 0!==b&&b,v=e.onKeyDown,y=e.variant,w=void 0===y?"selectedMenu":y,_=Object(i.a)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),k=a.useRef(null),S=a.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});A((function(){s&&k.current.focus()}),[s]),a.useImperativeHandle(r,(function(){return{adjustStyleForScrollbar:function(e,t){var r=!k.current.style.width;if(e.clientHeight0&&(o-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&a!==i.keys[0]&&(i.repeating=!1)),i.lastTime=o,i.keys.push(a);var s=n&&!i.repeating&&I(n,i);i.previousKeyMatched&&(s||M(t,n,!1,m,C,i))?e.preventDefault():i.previousKeyMatched=!1}v&&v(e)},tabIndex:s?0:-1},_),R))})),j=r(37),B=r(36),R={vertical:"top",horizontal:"right"},D={vertical:"top",horizontal:"left"},N=a.forwardRef((function(e,t){var r=e.autoFocus,s=void 0===r||r,u=e.children,l=e.classes,f=e.disableAutoFocusItem,d=void 0!==f&&f,h=e.MenuListProps,p=void 0===h?{}:h,m=e.onClose,b=e.onEntering,g=e.open,v=e.PaperProps,y=void 0===v?{}:v,w=e.PopoverClasses,k=e.transitionDuration,S=void 0===k?"auto":k,E=e.variant,x=void 0===E?"selectedMenu":E,T=Object(i.a)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),C=Object(B.a)(),O=s&&!d&&g,I=a.useRef(null),M=a.useRef(null),A=-1;a.Children.map(u,(function(e,t){a.isValidElement(e)&&(e.props.disabled||("menu"!==x&&e.props.selected?A=t:-1===A&&(A=t)))}));var N=a.Children.map(u,(function(e,t){return t===A?a.cloneElement(e,{ref:function(t){M.current=c.findDOMNode(t),Object(j.a)(e.ref,t)}}):e}));return(a.createElement(_,Object(n.a)({getContentAnchorEl:function(){return M.current},classes:w,onClose:m,onEntering:function(e,t){I.current&&I.current.adjustStyleForScrollbar(e,C),b&&b(e,t)},anchorOrigin:"rtl"===C.direction?R:D,transformOrigin:"rtl"===C.direction?R:D,PaperProps:Object(n.a)({},y,{classes:Object(n.a)({},y.classes,{root:l.paper})}),open:g,ref:t,transitionDuration:S},T),a.createElement(P,Object(n.a)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),m&&m(e,"tabKeyDown"))},actions:I,autoFocus:s&&(-1===A||d),autoFocusItem:O,variant:x},p,{className:Object(o.default)(l.list,p.className)}),N)))}));t.a=Object(s.a)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(N)},function(e,t,r){"use strict";var n=r(1),i=r(43),a=r(2),o=r(0),s=(r(4),r(184)),c=r(47),u=r(36),l=r(45),f=r(11),d={entering:{opacity:1},entered:{opacity:1}},h={enter:c.b.enteringScreen,exit:c.b.leavingScreen},p=o.forwardRef((function(e,t){var r=e.children,c=e.disableStrictModeCompat,p=void 0!==c&&c,m=e.in,b=e.onEnter,g=e.onEntered,v=e.onEntering,y=e.onExit,w=e.onExited,_=e.onExiting,k=e.style,S=e.TransitionComponent,E=void 0===S?s.a:S,x=e.timeout,T=void 0===x?h:x,C=Object(a.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),O=Object(u.a)(),I=O.unstable_strictMode&&!p,M=o.useRef(null),A=Object(f.a)(r.ref,t),P=Object(f.a)(I?M:void 0,A),j=function(e){return function(t,r){if(e){var n=I?[M.current,t]:[t,r],a=Object(i.a)(n,2),o=a[0],s=a[1];void 0===s?e(o):e(o,s)}}},B=j(v),R=j((function(e,t){Object(l.b)(e);var r=Object(l.a)({style:k,timeout:T},{mode:"enter"});e.style.webkitTransition=O.transitions.create("opacity",r),e.style.transition=O.transitions.create("opacity",r),b&&b(e,t)})),D=j(g),N=j(_),z=j((function(e){var t=Object(l.a)({style:k,timeout:T},{mode:"exit"});e.style.webkitTransition=O.transitions.create("opacity",t),e.style.transition=O.transitions.create("opacity",t),y&&y(e)})),F=j(w);return o.createElement(E,Object(n.a)({appear:!0,in:m,nodeRef:I?M:void 0,onEnter:R,onEntered:D,onEntering:B,onExit:z,onExited:F,onExiting:N,timeout:T},C),(function(e,t){return o.cloneElement(r,Object(n.a)({style:Object(n.a)({opacity:0,visibility:"exited"!==e||m?void 0:"hidden"},d[e],k,r.props.style),ref:P},t))}))}));t.a=p},function(e,t,r){"use strict";var n=r(29),i=Date.now(),a="fnValues"+i,o="fnStyle"+ ++i,s=function(){return{onCreateRule:function(e,t,r){if("function"!==typeof t)return null;var i=Object(n.d)(e,{},r);return i[o]=t,i},onProcessStyle:function(e,t){if(a in t||o in t)return e;var r={};for(var n in e){var i=e[n];"function"===typeof i&&(delete e[n],r[n]=i)}return t[a]=r,e},onUpdate:function(e,t,r,n){var i=t,s=i[o];s&&(i.style=s(e)||{});var c=i[a];if(c)for(var u in c)i.prop(u,c[u](e),n)}}},c=r(1),u="@global",l=function(){function e(e,t,r){for(var i in this.type="global",this.at=u,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new n.a(Object(c.a)({},r,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),f=function(){function e(e,t,r){this.type="global",this.at=u,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=r;var n=e.substr("@global ".length);this.rule=r.jss.createRule(n,t,Object(c.a)({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),d=/\s*,\s*/g;function h(e,t){for(var r=e.split(d),n="",i=0;i-1){var i=me[e];if(!Array.isArray(i))return W+Z(i)in t&&q+i;if(!n)return!1;for(var a=0;at?1:-1:e.length-t.length};return{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},i=Object.keys(t).sort(e),a=0;a0&&Math.abs((e.outerHeightStyle||0)-f)>1||e.overflow!==d)?(S.current+=1,{overflow:d,outerHeightStyle:f}):e}))}),[s,v,e.placeholder]);o.useEffect((function(){var e=Object(h.a)((function(){S.current=0,C()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[C]),m((function(){C()})),o.useEffect((function(){S.current=0}),[f]);return o.createElement(o.Fragment,null,o.createElement("textarea",Object(i.a)({value:f,onChange:function(e){S.current=0,y||C(),r&&r(e)},ref:_,rows:v,style:Object(i.a)({height:x.outerHeightStyle,overflow:x.overflow?"hidden":null},l)},g)),o.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:k,tabIndex:-1,style:Object(i.a)({},b,l)}))})),v=r(80),y="undefined"===typeof window?o.useEffect:o.useLayoutEffect,w=o.forwardRef((function(e,t){var r=e["aria-describedby"],l=e.autoComplete,h=e.autoFocus,p=e.classes,m=e.className,b=(e.color,e.defaultValue),w=e.disabled,_=e.endAdornment,k=(e.error,e.fullWidth),S=void 0!==k&&k,E=e.id,x=e.inputComponent,T=void 0===x?"input":x,C=e.inputProps,O=void 0===C?{}:C,I=e.inputRef,M=(e.margin,e.multiline),A=void 0!==M&&M,P=e.name,j=e.onBlur,B=e.onChange,R=e.onClick,D=e.onFocus,N=e.onKeyDown,z=e.onKeyUp,F=e.placeholder,L=e.readOnly,U=e.renderSuffix,H=e.rows,W=e.rowsMax,q=e.rowsMin,$=e.startAdornment,V=e.type,K=void 0===V?"text":V,X=e.value,G=Object(n.a)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","startAdornment","type","value"]),Q=null!=O.value?O.value:X,Y=o.useRef(null!=Q).current,J=o.useRef(),Z=o.useCallback((function(e){0}),[]),ee=Object(d.a)(O.ref,Z),te=Object(d.a)(I,ee),re=Object(d.a)(J,te),ne=o.useState(!1),ie=ne[0],ae=ne[1],oe=Object(u.b)();var se=Object(c.a)({props:e,muiFormControl:oe,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});se.focused=oe?oe.focused:ie,o.useEffect((function(){!oe&&w&&ie&&(ae(!1),j&&j())}),[oe,w,ie,j]);var ce=oe&&oe.onFilled,ue=oe&&oe.onEmpty,le=o.useCallback((function(e){Object(v.b)(e)?ce&&ce():ue&&ue()}),[ce,ue]);y((function(){Y&&le({value:Q})}),[Q,le,Y]);o.useEffect((function(){le(J.current)}),[]);var fe=T,de=Object(i.a)({},O,{ref:re});"string"!==typeof fe?de=Object(i.a)({inputRef:re,type:K},de,{ref:null}):A?!H||W||q?(de=Object(i.a)({rows:H,rowsMax:W},de),fe=g):fe="textarea":de=Object(i.a)({type:K},de);return o.useEffect((function(){oe&&oe.setAdornedStart(Boolean($))}),[oe,$]),o.createElement("div",Object(i.a)({className:Object(s.default)(p.root,p["color".concat(Object(f.a)(se.color||"primary"))],m,se.disabled&&p.disabled,se.error&&p.error,S&&p.fullWidth,se.focused&&p.focused,oe&&p.formControl,A&&p.multiline,$&&p.adornedStart,_&&p.adornedEnd,"dense"===se.margin&&p.marginDense),onClick:function(e){J.current&&e.currentTarget===e.target&&J.current.focus(),R&&R(e)},ref:t},G),$,o.createElement(u.a.Provider,{value:null},o.createElement(fe,Object(i.a)({"aria-invalid":se.error,"aria-describedby":r,autoComplete:l,autoFocus:h,defaultValue:b,disabled:se.disabled,id:E,onAnimationStart:function(e){le("mui-auto-fill-cancel"===e.animationName?J.current:{value:"x"})},name:P,placeholder:F,readOnly:L,required:se.required,rows:H,value:Q,onKeyDown:N,onKeyUp:z},de,{className:Object(s.default)(p.input,O.className,se.disabled&&p.disabled,A&&p.inputMultiline,se.hiddenLabel&&p.inputHiddenLabel,$&&p.inputAdornedStart,_&&p.inputAdornedEnd,"search"===K&&p.inputTypeSearch,"dense"===se.margin&&p.inputMarginDense),onBlur:function(e){j&&j(e),O.onBlur&&O.onBlur(e),oe&&oe.onBlur?oe.onBlur(e):ae(!1)},onChange:function(e){if(!Y){var t=e.target||J.current;if(null==t)throw new Error(Object(a.a)(1));le({value:t.value})}for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;iM.length&&M.push(e)}function j(e,t,r){return null==e?0:function e(t,r,n,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var c=!1;if(null===t)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case a:case o:c=!0}}if(c)return n(i,t,""===r?"."+B(t,0):r),1;if(c=0,r=""===r?".":r+":",Array.isArray(t))for(var u=0;u

{store.getState()}
\n * }\n */\n\nexport function useReduxContext() {\n var contextValue = useContext(ReactReduxContext);\n\n if (process.env.NODE_ENV !== 'production' && !contextValue) {\n throw new Error('could not find react-redux context value; please ensure the component is wrapped in a ');\n }\n\n return contextValue;\n}","import { useContext } from 'react';\nimport { ReactReduxContext } from '../components/Context';\nimport { useReduxContext as useDefaultReduxContext } from './useReduxContext';\n/**\n * Hook factory, which creates a `useStore` hook bound to a given context.\n *\n * @param {React.Context} [context=ReactReduxContext] Context passed to your ``.\n * @returns {Function} A `useStore` hook bound to the specified context.\n */\n\nexport function createStoreHook(context) {\n if (context === void 0) {\n context = ReactReduxContext;\n }\n\n var useReduxContext = context === ReactReduxContext ? useDefaultReduxContext : function () {\n return useContext(context);\n };\n return function useStore() {\n var _useReduxContext = useReduxContext(),\n store = _useReduxContext.store;\n\n return store;\n };\n}\n/**\n * A hook to access the redux store.\n *\n * @returns {any} the redux store\n *\n * @example\n *\n * import React from 'react'\n * import { useStore } from 'react-redux'\n *\n * export const ExampleComponent = () => {\n * const store = useStore()\n * return
{store.getState()}
\n * }\n */\n\nexport var useStore = /*#__PURE__*/createStoreHook();","import { ReactReduxContext } from '../components/Context';\nimport { useStore as useDefaultStore, createStoreHook } from './useStore';\n/**\n * Hook factory, which creates a `useDispatch` hook bound to a given context.\n *\n * @param {React.Context} [context=ReactReduxContext] Context passed to your ``.\n * @returns {Function} A `useDispatch` hook bound to the specified context.\n */\n\nexport function createDispatchHook(context) {\n if (context === void 0) {\n context = ReactReduxContext;\n }\n\n var useStore = context === ReactReduxContext ? useDefaultStore : createStoreHook(context);\n return function useDispatch() {\n var store = useStore();\n return store.dispatch;\n };\n}\n/**\n * A hook to access the redux `dispatch` function.\n *\n * @returns {any|function} redux store's `dispatch` function\n *\n * @example\n *\n * import React, { useCallback } from 'react'\n * import { useDispatch } from 'react-redux'\n *\n * export const CounterComponent = ({ value }) => {\n * const dispatch = useDispatch()\n * const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])\n * return (\n *
\n * {value}\n * \n *
\n * )\n * }\n */\n\nexport var useDispatch = /*#__PURE__*/createDispatchHook();","import { useReducer, useRef, useMemo, useContext, useDebugValue } from 'react';\nimport { useReduxContext as useDefaultReduxContext } from './useReduxContext';\nimport Subscription from '../utils/Subscription';\nimport { useIsomorphicLayoutEffect } from '../utils/useIsomorphicLayoutEffect';\nimport { ReactReduxContext } from '../components/Context';\n\nvar refEquality = function refEquality(a, b) {\n return a === b;\n};\n\nfunction useSelectorWithStoreAndSubscription(selector, equalityFn, store, contextSub) {\n var _useReducer = useReducer(function (s) {\n return s + 1;\n }, 0),\n forceRender = _useReducer[1];\n\n var subscription = useMemo(function () {\n return new Subscription(store, contextSub);\n }, [store, contextSub]);\n var latestSubscriptionCallbackError = useRef();\n var latestSelector = useRef();\n var latestStoreState = useRef();\n var latestSelectedState = useRef();\n var storeState = store.getState();\n var selectedState;\n\n try {\n if (selector !== latestSelector.current || storeState !== latestStoreState.current || latestSubscriptionCallbackError.current) {\n selectedState = selector(storeState);\n } else {\n selectedState = latestSelectedState.current;\n }\n } catch (err) {\n if (latestSubscriptionCallbackError.current) {\n err.message += \"\\nThe error may be correlated with this previous error:\\n\" + latestSubscriptionCallbackError.current.stack + \"\\n\\n\";\n }\n\n throw err;\n }\n\n useIsomorphicLayoutEffect(function () {\n latestSelector.current = selector;\n latestStoreState.current = storeState;\n latestSelectedState.current = selectedState;\n latestSubscriptionCallbackError.current = undefined;\n });\n useIsomorphicLayoutEffect(function () {\n function checkForUpdates() {\n try {\n var newSelectedState = latestSelector.current(store.getState());\n\n if (equalityFn(newSelectedState, latestSelectedState.current)) {\n return;\n }\n\n latestSelectedState.current = newSelectedState;\n } catch (err) {\n // we ignore all errors here, since when the component\n // is re-rendered, the selectors are called again, and\n // will throw again, if neither props nor store state\n // changed\n latestSubscriptionCallbackError.current = err;\n }\n\n forceRender();\n }\n\n subscription.onStateChange = checkForUpdates;\n subscription.trySubscribe();\n checkForUpdates();\n return function () {\n return subscription.tryUnsubscribe();\n };\n }, [store, subscription]);\n return selectedState;\n}\n/**\n * Hook factory, which creates a `useSelector` hook bound to a given context.\n *\n * @param {React.Context} [context=ReactReduxContext] Context passed to your ``.\n * @returns {Function} A `useSelector` hook bound to the specified context.\n */\n\n\nexport function createSelectorHook(context) {\n if (context === void 0) {\n context = ReactReduxContext;\n }\n\n var useReduxContext = context === ReactReduxContext ? useDefaultReduxContext : function () {\n return useContext(context);\n };\n return function useSelector(selector, equalityFn) {\n if (equalityFn === void 0) {\n equalityFn = refEquality;\n }\n\n if (process.env.NODE_ENV !== 'production' && !selector) {\n throw new Error(\"You must pass a selector to useSelector\");\n }\n\n var _useReduxContext = useReduxContext(),\n store = _useReduxContext.store,\n contextSub = _useReduxContext.subscription;\n\n var selectedState = useSelectorWithStoreAndSubscription(selector, equalityFn, store, contextSub);\n useDebugValue(selectedState);\n return selectedState;\n };\n}\n/**\n * A hook to access the redux store's state. This hook takes a selector function\n * as an argument. The selector is called with the store state.\n *\n * This hook takes an optional equality comparison function as the second parameter\n * that allows you to customize the way the selected state is compared to determine\n * whether the component needs to be re-rendered.\n *\n * @param {Function} selector the selector function\n * @param {Function=} equalityFn the function that will be used to determine equality\n *\n * @returns {any} the selected state\n *\n * @example\n *\n * import React from 'react'\n * import { useSelector } from 'react-redux'\n *\n * export const CounterComponent = () => {\n * const counter = useSelector(state => state.counter)\n * return
{counter}
\n * }\n */\n\nexport var useSelector = /*#__PURE__*/createSelectorHook();","import Provider from './components/Provider';\nimport connectAdvanced from './components/connectAdvanced';\nimport { ReactReduxContext } from './components/Context';\nimport connect from './connect/connect';\nimport { useDispatch, createDispatchHook } from './hooks/useDispatch';\nimport { useSelector, createSelectorHook } from './hooks/useSelector';\nimport { useStore, createStoreHook } from './hooks/useStore';\nimport { setBatch } from './utils/batch';\nimport { unstable_batchedUpdates as batch } from './utils/reactBatchedUpdates';\nimport shallowEqual from './utils/shallowEqual';\nsetBatch(batch);\nexport { Provider, connectAdvanced, ReactReduxContext, connect, batch, useDispatch, createDispatchHook, useSelector, createSelectorHook, useStore, createStoreHook, shallowEqual };","/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\n\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\nexports.destroy = (() => {\n\tlet warned = false;\n\n\treturn () => {\n\t\tif (!warned) {\n\t\t\twarned = true;\n\t\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t\t}\n\t};\n})();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n\t'#0000CC',\n\t'#0000FF',\n\t'#0033CC',\n\t'#0033FF',\n\t'#0066CC',\n\t'#0066FF',\n\t'#0099CC',\n\t'#0099FF',\n\t'#00CC00',\n\t'#00CC33',\n\t'#00CC66',\n\t'#00CC99',\n\t'#00CCCC',\n\t'#00CCFF',\n\t'#3300CC',\n\t'#3300FF',\n\t'#3333CC',\n\t'#3333FF',\n\t'#3366CC',\n\t'#3366FF',\n\t'#3399CC',\n\t'#3399FF',\n\t'#33CC00',\n\t'#33CC33',\n\t'#33CC66',\n\t'#33CC99',\n\t'#33CCCC',\n\t'#33CCFF',\n\t'#6600CC',\n\t'#6600FF',\n\t'#6633CC',\n\t'#6633FF',\n\t'#66CC00',\n\t'#66CC33',\n\t'#9900CC',\n\t'#9900FF',\n\t'#9933CC',\n\t'#9933FF',\n\t'#99CC00',\n\t'#99CC33',\n\t'#CC0000',\n\t'#CC0033',\n\t'#CC0066',\n\t'#CC0099',\n\t'#CC00CC',\n\t'#CC00FF',\n\t'#CC3300',\n\t'#CC3333',\n\t'#CC3366',\n\t'#CC3399',\n\t'#CC33CC',\n\t'#CC33FF',\n\t'#CC6600',\n\t'#CC6633',\n\t'#CC9900',\n\t'#CC9933',\n\t'#CCCC00',\n\t'#CCCC33',\n\t'#FF0000',\n\t'#FF0033',\n\t'#FF0066',\n\t'#FF0099',\n\t'#FF00CC',\n\t'#FF00FF',\n\t'#FF3300',\n\t'#FF3333',\n\t'#FF3366',\n\t'#FF3399',\n\t'#FF33CC',\n\t'#FF33FF',\n\t'#FF6600',\n\t'#FF6633',\n\t'#FF9900',\n\t'#FF9933',\n\t'#FFCC00',\n\t'#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\n// eslint-disable-next-line complexity\nfunction useColors() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n\t\treturn true;\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false;\n\t}\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\targs[0] = (this.useColors ? '%c' : '') +\n\t\tthis.namespace +\n\t\t(this.useColors ? ' %c' : ' ') +\n\t\targs[0] +\n\t\t(this.useColors ? '%c ' : ' ') +\n\t\t'+' + module.exports.humanize(this.diff);\n\n\tif (!this.useColors) {\n\t\treturn;\n\t}\n\n\tconst c = 'color: ' + this.color;\n\targs.splice(1, 0, c, 'color: inherit');\n\n\t// The final \"%c\" is somewhat tricky, because there could be other\n\t// arguments passed either before or after the %c, so we need to\n\t// figure out the correct index to insert the CSS into\n\tlet index = 0;\n\tlet lastC = 0;\n\targs[0].replace(/%[a-zA-Z%]/g, match => {\n\t\tif (match === '%%') {\n\t\t\treturn;\n\t\t}\n\t\tindex++;\n\t\tif (match === '%c') {\n\t\t\t// We only are interested in the *last* %c\n\t\t\t// (the user may have provided their own)\n\t\t\tlastC = index;\n\t\t}\n\t});\n\n\targs.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.debug()` when available.\n * No-op when `console.debug` is not a \"function\".\n * If `console.debug` is not available, falls back\n * to `console.log`.\n *\n * @api public\n */\nexports.log = console.debug || console.log || (() => {});\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\ttry {\n\t\tif (namespaces) {\n\t\t\texports.storage.setItem('debug', namespaces);\n\t\t} else {\n\t\t\texports.storage.removeItem('debug');\n\t\t}\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\nfunction load() {\n\tlet r;\n\ttry {\n\t\tr = exports.storage.getItem('debug');\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n\n\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\tif (!r && typeof process !== 'undefined' && 'env' in process) {\n\t\tr = process.env.DEBUG;\n\t}\n\n\treturn r;\n}\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n\ttry {\n\t\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n\t\t// The Browser also has localStorage in the global context.\n\t\treturn localStorage;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n\ttry {\n\t\treturn JSON.stringify(v);\n\t} catch (error) {\n\t\treturn '[UnexpectedJSONParseError]: ' + error.message;\n\t}\n};\n","export default function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}","import { enableES5 } from 'immer'\r\nexport * from 'redux'\r\n// @ts-ignore\r\nexport { default as createNextState, Draft, current, freeze } from 'immer'\r\nexport {\r\n createSelector,\r\n Selector,\r\n OutputParametricSelector,\r\n OutputSelector,\r\n ParametricSelector\r\n} from 'reselect'\r\nexport { createDraftSafeSelector } from './createDraftSafeSelector'\r\nexport { ThunkAction, ThunkDispatch } from 'redux-thunk'\r\n\r\n// We deliberately enable Immer's ES5 support, on the grounds that\r\n// we assume RTK will be used with React Native and other Proxy-less\r\n// environments. In addition, that's how Immer 4 behaved, and since\r\n// we want to ship this in an RTK minor, we should keep the same behavior.\r\nenableES5()\r\n\r\nexport {\r\n // js\r\n configureStore,\r\n // types\r\n ConfigureEnhancersCallback,\r\n ConfigureStoreOptions,\r\n EnhancedStore\r\n} from './configureStore'\r\nexport {\r\n // js\r\n createAction,\r\n getType,\r\n // types\r\n PayloadAction,\r\n PayloadActionCreator,\r\n ActionCreatorWithNonInferrablePayload,\r\n ActionCreatorWithOptionalPayload,\r\n ActionCreatorWithPayload,\r\n ActionCreatorWithoutPayload,\r\n ActionCreatorWithPreparedPayload,\r\n PrepareAction\r\n} from './createAction'\r\nexport {\r\n // js\r\n createReducer,\r\n // types\r\n Actions,\r\n CaseReducer,\r\n CaseReducers\r\n} from './createReducer'\r\nexport {\r\n // js\r\n createSlice,\r\n // types\r\n CreateSliceOptions,\r\n Slice,\r\n CaseReducerActions,\r\n SliceCaseReducers,\r\n ValidateSliceCaseReducers,\r\n CaseReducerWithPrepare,\r\n SliceActionCreator\r\n} from './createSlice'\r\nexport {\r\n // js\r\n createImmutableStateInvariantMiddleware,\r\n isImmutableDefault,\r\n // types\r\n ImmutableStateInvariantMiddlewareOptions\r\n} from './immutableStateInvariantMiddleware'\r\nexport {\r\n // js\r\n createSerializableStateInvariantMiddleware,\r\n findNonSerializableValue,\r\n isPlain,\r\n // types\r\n SerializableStateInvariantMiddlewareOptions\r\n} from './serializableStateInvariantMiddleware'\r\nexport {\r\n // js\r\n getDefaultMiddleware\r\n} from './getDefaultMiddleware'\r\nexport {\r\n // types\r\n ActionReducerMapBuilder\r\n} from './mapBuilders'\r\nexport { MiddlewareArray } from './utils'\r\n\r\nexport { createEntityAdapter } from './entities/create_adapter'\r\nexport {\r\n Dictionary,\r\n EntityState,\r\n EntityAdapter,\r\n EntitySelectors,\r\n EntityStateAdapter,\r\n EntityId,\r\n Update,\r\n IdSelector,\r\n Comparer\r\n} from './entities/models'\r\n\r\nexport {\r\n AsyncThunk,\r\n AsyncThunkAction,\r\n AsyncThunkPayloadCreatorReturnValue,\r\n AsyncThunkPayloadCreator,\r\n createAsyncThunk,\r\n unwrapResult,\r\n SerializedError\r\n} from './createAsyncThunk'\r\n\r\nexport {\r\n // js\r\n isAllOf,\r\n isAnyOf,\r\n isPending,\r\n isRejected,\r\n isFulfilled,\r\n isAsyncThunkAction,\r\n isRejectedWithValue,\r\n // types\r\n ActionMatchingAllOf,\r\n ActionMatchingAnyOf\r\n} from './matchers'\r\n\r\nexport { nanoid } from './nanoid'\r\n\r\nexport { default as isPlainObject } from './isPlainObject'\r\n","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nmodule.exports = _interopRequireDefault;","const errors = {\n\t0: \"Illegal state\",\n\t1: \"Immer drafts cannot have computed properties\",\n\t2: \"This object has been frozen and should not be mutated\",\n\t3(data: any) {\n\t\treturn (\n\t\t\t\"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? \" +\n\t\t\tdata\n\t\t)\n\t},\n\t4: \"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.\",\n\t5: \"Immer forbids circular references\",\n\t6: \"The first or second argument to `produce` must be a function\",\n\t7: \"The third argument to `produce` must be a function or undefined\",\n\t8: \"First argument to `createDraft` must be a plain object, an array, or an immerable object\",\n\t9: \"First argument to `finishDraft` must be a draft returned by `createDraft`\",\n\t10: \"The given draft is already finalized\",\n\t11: \"Object.defineProperty() cannot be used on an Immer draft\",\n\t12: \"Object.setPrototypeOf() cannot be used on an Immer draft\",\n\t13: \"Immer only supports deleting array indices\",\n\t14: \"Immer only supports setting array indices and the 'length' property\",\n\t15(path: string) {\n\t\treturn \"Cannot apply patch, path doesn't resolve: \" + path\n\t},\n\t16: 'Sets cannot have \"replace\" patches.',\n\t17(op: string) {\n\t\treturn \"Unsupported patch operation: \" + op\n\t},\n\t18(plugin: string) {\n\t\treturn `The plugin for '${plugin}' has not been loaded into Immer. To enable the plugin, import and call \\`enable${plugin}()\\` when initializing your application.`\n\t},\n\t20: \"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available\",\n\t21(thing: string) {\n\t\treturn `produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${thing}'`\n\t},\n\t22(thing: string) {\n\t\treturn `'current' expects a draft, got: ${thing}`\n\t},\n\t23(thing: string) {\n\t\treturn `'original' expects a draft, got: ${thing}`\n\t}\n} as const\n\nexport function die(error: keyof typeof errors, ...args: any[]): never {\n\tif (__DEV__) {\n\t\tconst e = errors[error]\n\t\tconst msg = !e\n\t\t\t? \"unknown error nr: \" + error\n\t\t\t: typeof e === \"function\"\n\t\t\t? e.apply(null, args as any)\n\t\t\t: e\n\t\tthrow new Error(`[Immer] ${msg}`)\n\t}\n\tthrow new Error(\n\t\t`[Immer] minified error nr: ${error}${\n\t\t\targs.length ? \" \" + args.map(s => `'${s}'`).join(\",\") : \"\"\n\t\t}. Find the full error at: https://bit.ly/3cXEKWf`\n\t)\n}\n","import {\n\tDRAFT_STATE,\n\tDRAFTABLE,\n\thasSet,\n\tObjectish,\n\tDrafted,\n\tAnyObject,\n\tAnyMap,\n\tAnySet,\n\tImmerState,\n\thasMap,\n\tArchtypeObject,\n\tArchtypeArray,\n\tArchtypeMap,\n\tArchtypeSet,\n\tdie\n} from \"../internal\"\n\n/** Returns true if the given value is an Immer draft */\n/*#__PURE__*/\nexport function isDraft(value: any): boolean {\n\treturn !!value && !!value[DRAFT_STATE]\n}\n\n/** Returns true if the given value can be drafted by Immer */\n/*#__PURE__*/\nexport function isDraftable(value: any): boolean {\n\tif (!value) return false\n\treturn (\n\t\tisPlainObject(value) ||\n\t\tArray.isArray(value) ||\n\t\t!!value[DRAFTABLE] ||\n\t\t!!value.constructor[DRAFTABLE] ||\n\t\tisMap(value) ||\n\t\tisSet(value)\n\t)\n}\n\n/*#__PURE__*/\nexport function isPlainObject(value: any): boolean {\n\tif (!value || typeof value !== \"object\") return false\n\tconst proto = Object.getPrototypeOf(value)\n\treturn !proto || proto === Object.prototype\n}\n\n/** Get the underlying object that is represented by the given draft */\n/*#__PURE__*/\nexport function original(value: T): T | undefined\nexport function original(value: Drafted): any {\n\tif (!isDraft(value)) die(23, value)\n\treturn value[DRAFT_STATE].base_\n}\n\n/*#__PURE__*/\nexport const ownKeys: (target: AnyObject) => PropertyKey[] =\n\ttypeof Reflect !== \"undefined\" && Reflect.ownKeys\n\t\t? Reflect.ownKeys\n\t\t: typeof Object.getOwnPropertySymbols !== \"undefined\"\n\t\t? obj =>\n\t\t\t\tObject.getOwnPropertyNames(obj).concat(\n\t\t\t\t\tObject.getOwnPropertySymbols(obj) as any\n\t\t\t\t)\n\t\t: /* istanbul ignore next */ Object.getOwnPropertyNames\n\nexport const getOwnPropertyDescriptors =\n\tObject.getOwnPropertyDescriptors ||\n\tfunction getOwnPropertyDescriptors(target: any) {\n\t\t// Polyfill needed for Hermes and IE, see https://github.com/facebook/hermes/issues/274\n\t\tconst res: any = {}\n\t\townKeys(target).forEach(key => {\n\t\t\tres[key] = Object.getOwnPropertyDescriptor(target, key)\n\t\t})\n\t\treturn res\n\t}\n\nexport function each(\n\tobj: T,\n\titer: (key: string | number, value: any, source: T) => void,\n\tenumerableOnly?: boolean\n): void\nexport function each(obj: any, iter: any, enumerableOnly = false) {\n\tif (getArchtype(obj) === ArchtypeObject) {\n\t\t;(enumerableOnly ? Object.keys : ownKeys)(obj).forEach(key => {\n\t\t\tif (!enumerableOnly || typeof key !== \"symbol\") iter(key, obj[key], obj)\n\t\t})\n\t} else {\n\t\tobj.forEach((entry: any, index: any) => iter(index, entry, obj))\n\t}\n}\n\n/*#__PURE__*/\nexport function getArchtype(thing: any): 0 | 1 | 2 | 3 {\n\t/* istanbul ignore next */\n\tconst state: undefined | ImmerState = thing[DRAFT_STATE]\n\treturn state\n\t\t? state.type_ > 3\n\t\t\t? state.type_ - 4 // cause Object and Array map back from 4 and 5\n\t\t\t: (state.type_ as any) // others are the same\n\t\t: Array.isArray(thing)\n\t\t? ArchtypeArray\n\t\t: isMap(thing)\n\t\t? ArchtypeMap\n\t\t: isSet(thing)\n\t\t? ArchtypeSet\n\t\t: ArchtypeObject\n}\n\n/*#__PURE__*/\nexport function has(thing: any, prop: PropertyKey): boolean {\n\treturn getArchtype(thing) === ArchtypeMap\n\t\t? thing.has(prop)\n\t\t: Object.prototype.hasOwnProperty.call(thing, prop)\n}\n\n/*#__PURE__*/\nexport function get(thing: AnyMap | AnyObject, prop: PropertyKey): any {\n\t// @ts-ignore\n\treturn getArchtype(thing) === ArchtypeMap ? thing.get(prop) : thing[prop]\n}\n\n/*#__PURE__*/\nexport function set(thing: any, propOrOldValue: PropertyKey, value: any) {\n\tconst t = getArchtype(thing)\n\tif (t === ArchtypeMap) thing.set(propOrOldValue, value)\n\telse if (t === ArchtypeSet) {\n\t\tthing.delete(propOrOldValue)\n\t\tthing.add(value)\n\t} else thing[propOrOldValue] = value\n}\n\n/*#__PURE__*/\nexport function is(x: any, y: any): boolean {\n\t// From: https://github.com/facebook/fbjs/blob/c69904a511b900266935168223063dd8772dfc40/packages/fbjs/src/core/shallowEqual.js\n\tif (x === y) {\n\t\treturn x !== 0 || 1 / x === 1 / y\n\t} else {\n\t\treturn x !== x && y !== y\n\t}\n}\n\n/*#__PURE__*/\nexport function isMap(target: any): target is AnyMap {\n\treturn hasMap && target instanceof Map\n}\n\n/*#__PURE__*/\nexport function isSet(target: any): target is AnySet {\n\treturn hasSet && target instanceof Set\n}\n/*#__PURE__*/\nexport function latest(state: ImmerState): any {\n\treturn state.copy_ || state.base_\n}\n\n/*#__PURE__*/\nexport function shallowCopy(base: any) {\n\tif (Array.isArray(base)) return Array.prototype.slice.call(base)\n\tconst descriptors = getOwnPropertyDescriptors(base)\n\tdelete descriptors[DRAFT_STATE as any]\n\tlet keys = ownKeys(descriptors)\n\tfor (let i = 0; i < keys.length; i++) {\n\t\tconst key: any = keys[i]\n\t\tconst desc = descriptors[key]\n\t\tif (desc.writable === false) {\n\t\t\tdesc.writable = true\n\t\t\tdesc.configurable = true\n\t\t}\n\t\t// like object.assign, we will read any _own_, get/set accessors. This helps in dealing\n\t\t// with libraries that trap values, like mobx or vue\n\t\t// unlike object.assign, non-enumerables will be copied as well\n\t\tif (desc.get || desc.set)\n\t\t\tdescriptors[key] = {\n\t\t\t\tconfigurable: true,\n\t\t\t\twritable: true, // could live with !!desc.set as well here...\n\t\t\t\tenumerable: desc.enumerable,\n\t\t\t\tvalue: base[key]\n\t\t\t}\n\t}\n\treturn Object.create(Object.getPrototypeOf(base), descriptors)\n}\n\n/**\n * Freezes draftable objects. Returns the original object.\n * By default freezes shallowly, but if the second argument is `true` it will freeze recursively.\n *\n * @param obj\n * @param deep\n */\nexport function freeze(obj: T, deep?: boolean): T\nexport function freeze(obj: any, deep: boolean = false): T {\n\tif (isFrozen(obj) || isDraft(obj) || !isDraftable(obj)) return obj\n\tif (getArchtype(obj) > 1 /* Map or Set */) {\n\t\tobj.set = obj.add = obj.clear = obj.delete = dontMutateFrozenCollections as any\n\t}\n\tObject.freeze(obj)\n\tif (deep) each(obj, (key, value) => freeze(value, true), true)\n\treturn obj\n}\n\nfunction dontMutateFrozenCollections() {\n\tdie(2)\n}\n\nexport function isFrozen(obj: any): boolean {\n\tif (obj == null || typeof obj !== \"object\") return true\n\t// See #600, IE dies on non-objects in Object.isFrozen\n\treturn Object.isFrozen(obj)\n}\n","import {\n\tSetState,\n\tImmerScope,\n\tProxyObjectState,\n\tProxyArrayState,\n\tES5ObjectState,\n\tES5ArrayState,\n\tMapState,\n\tDRAFT_STATE\n} from \"../internal\"\n\nexport type Objectish = AnyObject | AnyArray | AnyMap | AnySet\nexport type ObjectishNoSet = AnyObject | AnyArray | AnyMap\n\nexport type AnyObject = {[key: string]: any}\nexport type AnyArray = Array\nexport type AnySet = Set\nexport type AnyMap = Map\n\nexport const ArchtypeObject = 0\nexport const ArchtypeArray = 1\nexport const ArchtypeMap = 2\nexport const ArchtypeSet = 3\n\nexport const ProxyTypeProxyObject = 0\nexport const ProxyTypeProxyArray = 1\nexport const ProxyTypeES5Object = 4\nexport const ProxyTypeES5Array = 5\nexport const ProxyTypeMap = 2\nexport const ProxyTypeSet = 3\n\nexport interface ImmerBaseState {\n\tparent_?: ImmerState\n\tscope_: ImmerScope\n\tmodified_: boolean\n\tfinalized_: boolean\n\tisManual_: boolean\n}\n\nexport type ImmerState =\n\t| ProxyObjectState\n\t| ProxyArrayState\n\t| ES5ObjectState\n\t| ES5ArrayState\n\t| MapState\n\t| SetState\n\n// The _internal_ type used for drafts (not to be confused with Draft, which is public facing)\nexport type Drafted = {\n\t[DRAFT_STATE]: T\n} & Base\n","import {\n\tImmerState,\n\tPatch,\n\tImmerScope,\n\tDrafted,\n\tAnyObject,\n\tImmerBaseState,\n\tAnyMap,\n\tAnySet,\n\tProxyTypeES5Array,\n\tProxyTypeES5Object,\n\tProxyTypeMap,\n\tProxyTypeSet,\n\tdie\n} from \"../internal\"\n\n/** Plugin utilities */\nconst plugins: {\n\tPatches?: {\n\t\tgeneratePatches_(\n\t\t\tstate: ImmerState,\n\t\t\tbasePath: PatchPath,\n\t\t\tpatches: Patch[],\n\t\t\tinversePatches: Patch[]\n\t\t): void\n\t\tgenerateReplacementPatches_(\n\t\t\trootState: ImmerState,\n\t\t\treplacement: any,\n\t\t\tpatches: Patch[],\n\t\t\tinversePatches: Patch[]\n\t\t): void\n\t\tapplyPatches_(draft: T, patches: Patch[]): T\n\t}\n\tES5?: {\n\t\twillFinalizeES5_(scope: ImmerScope, result: any, isReplaced: boolean): void\n\t\tcreateES5Proxy_(\n\t\t\tbase: T,\n\t\t\tparent?: ImmerState\n\t\t): Drafted\n\t\thasChanges_(state: ES5ArrayState | ES5ObjectState): boolean\n\t}\n\tMapSet?: {\n\t\tproxyMap_(target: T, parent?: ImmerState): T\n\t\tproxySet_(target: T, parent?: ImmerState): T\n\t}\n} = {}\n\ntype Plugins = typeof plugins\n\nexport function getPlugin(\n\tpluginKey: K\n): Exclude {\n\tconst plugin = plugins[pluginKey]\n\tif (!plugin) {\n\t\tdie(18, pluginKey)\n\t}\n\t// @ts-ignore\n\treturn plugin\n}\n\nexport function loadPlugin(\n\tpluginKey: K,\n\timplementation: Plugins[K]\n): void {\n\tif (!plugins[pluginKey]) plugins[pluginKey] = implementation\n}\n\n/** ES5 Plugin */\n\ninterface ES5BaseState extends ImmerBaseState {\n\tassigned_: {[key: string]: any}\n\tparent_?: ImmerState\n\trevoked_: boolean\n}\n\nexport interface ES5ObjectState extends ES5BaseState {\n\ttype_: typeof ProxyTypeES5Object\n\tdraft_: Drafted\n\tbase_: AnyObject\n\tcopy_: AnyObject | null\n}\n\nexport interface ES5ArrayState extends ES5BaseState {\n\ttype_: typeof ProxyTypeES5Array\n\tdraft_: Drafted\n\tbase_: any\n\tcopy_: any\n}\n\n/** Map / Set plugin */\n\nexport interface MapState extends ImmerBaseState {\n\ttype_: typeof ProxyTypeMap\n\tcopy_: AnyMap | undefined\n\tassigned_: Map | undefined\n\tbase_: AnyMap\n\trevoked_: boolean\n\tdraft_: Drafted\n}\n\nexport interface SetState extends ImmerBaseState {\n\ttype_: typeof ProxyTypeSet\n\tcopy_: AnySet | undefined\n\tbase_: AnySet\n\tdrafts_: Map // maps the original value to the draft value in the new set\n\trevoked_: boolean\n\tdraft_: Drafted\n}\n\n/** Patches plugin */\n\nexport type PatchPath = (string | number)[]\n","import {\n\tPatch,\n\tPatchListener,\n\tDrafted,\n\tImmer,\n\tDRAFT_STATE,\n\tImmerState,\n\tProxyTypeProxyObject,\n\tProxyTypeProxyArray,\n\tgetPlugin\n} from \"../internal\"\nimport {die} from \"../utils/errors\"\n\n/** Each scope represents a `produce` call. */\n\nexport interface ImmerScope {\n\tpatches_?: Patch[]\n\tinversePatches_?: Patch[]\n\tcanAutoFreeze_: boolean\n\tdrafts_: any[]\n\tparent_?: ImmerScope\n\tpatchListener_?: PatchListener\n\timmer_: Immer\n\tunfinalizedDrafts_: number\n}\n\nlet currentScope: ImmerScope | undefined\n\nexport function getCurrentScope() {\n\tif (__DEV__ && !currentScope) die(0)\n\treturn currentScope!\n}\n\nfunction createScope(\n\tparent_: ImmerScope | undefined,\n\timmer_: Immer\n): ImmerScope {\n\treturn {\n\t\tdrafts_: [],\n\t\tparent_,\n\t\timmer_,\n\t\t// Whenever the modified draft contains a draft from another scope, we\n\t\t// need to prevent auto-freezing so the unowned draft can be finalized.\n\t\tcanAutoFreeze_: true,\n\t\tunfinalizedDrafts_: 0\n\t}\n}\n\nexport function usePatchesInScope(\n\tscope: ImmerScope,\n\tpatchListener?: PatchListener\n) {\n\tif (patchListener) {\n\t\tgetPlugin(\"Patches\") // assert we have the plugin\n\t\tscope.patches_ = []\n\t\tscope.inversePatches_ = []\n\t\tscope.patchListener_ = patchListener\n\t}\n}\n\nexport function revokeScope(scope: ImmerScope) {\n\tleaveScope(scope)\n\tscope.drafts_.forEach(revokeDraft)\n\t// @ts-ignore\n\tscope.drafts_ = null\n}\n\nexport function leaveScope(scope: ImmerScope) {\n\tif (scope === currentScope) {\n\t\tcurrentScope = scope.parent_\n\t}\n}\n\nexport function enterScope(immer: Immer) {\n\treturn (currentScope = createScope(currentScope, immer))\n}\n\nfunction revokeDraft(draft: Drafted) {\n\tconst state: ImmerState = draft[DRAFT_STATE]\n\tif (\n\t\tstate.type_ === ProxyTypeProxyObject ||\n\t\tstate.type_ === ProxyTypeProxyArray\n\t)\n\t\tstate.revoke_()\n\telse state.revoked_ = true\n}\n","import {\n\tImmerScope,\n\tDRAFT_STATE,\n\tisDraftable,\n\tNOTHING,\n\tPatchPath,\n\teach,\n\thas,\n\tfreeze,\n\tImmerState,\n\tisDraft,\n\tSetState,\n\tset,\n\tProxyTypeES5Object,\n\tProxyTypeES5Array,\n\tProxyTypeSet,\n\tgetPlugin,\n\tdie,\n\trevokeScope,\n\tisFrozen,\n\tshallowCopy\n} from \"../internal\"\n\nexport function processResult(result: any, scope: ImmerScope) {\n\tscope.unfinalizedDrafts_ = scope.drafts_.length\n\tconst baseDraft = scope.drafts_![0]\n\tconst isReplaced = result !== undefined && result !== baseDraft\n\tif (!scope.immer_.useProxies_)\n\t\tgetPlugin(\"ES5\").willFinalizeES5_(scope, result, isReplaced)\n\tif (isReplaced) {\n\t\tif (baseDraft[DRAFT_STATE].modified_) {\n\t\t\trevokeScope(scope)\n\t\t\tdie(4)\n\t\t}\n\t\tif (isDraftable(result)) {\n\t\t\t// Finalize the result in case it contains (or is) a subset of the draft.\n\t\t\tresult = finalize(scope, result)\n\t\t\tif (!scope.parent_) maybeFreeze(scope, result)\n\t\t}\n\t\tif (scope.patches_) {\n\t\t\tgetPlugin(\"Patches\").generateReplacementPatches_(\n\t\t\t\tbaseDraft[DRAFT_STATE],\n\t\t\t\tresult,\n\t\t\t\tscope.patches_,\n\t\t\t\tscope.inversePatches_!\n\t\t\t)\n\t\t}\n\t} else {\n\t\t// Finalize the base draft.\n\t\tresult = finalize(scope, baseDraft, [])\n\t}\n\trevokeScope(scope)\n\tif (scope.patches_) {\n\t\tscope.patchListener_!(scope.patches_, scope.inversePatches_!)\n\t}\n\treturn result !== NOTHING ? result : undefined\n}\n\nfunction finalize(rootScope: ImmerScope, value: any, path?: PatchPath) {\n\t// Don't recurse in tho recursive data structures\n\tif (isFrozen(value)) return value\n\n\tconst state: ImmerState = value[DRAFT_STATE]\n\t// A plain object, might need freezing, might contain drafts\n\tif (!state) {\n\t\teach(\n\t\t\tvalue,\n\t\t\t(key, childValue) =>\n\t\t\t\tfinalizeProperty(rootScope, state, value, key, childValue, path),\n\t\t\ttrue // See #590, don't recurse into non-enumarable of non drafted objects\n\t\t)\n\t\treturn value\n\t}\n\t// Never finalize drafts owned by another scope.\n\tif (state.scope_ !== rootScope) return value\n\t// Unmodified draft, return the (frozen) original\n\tif (!state.modified_) {\n\t\tmaybeFreeze(rootScope, state.base_, true)\n\t\treturn state.base_\n\t}\n\t// Not finalized yet, let's do that now\n\tif (!state.finalized_) {\n\t\tstate.finalized_ = true\n\t\tstate.scope_.unfinalizedDrafts_--\n\t\tconst result =\n\t\t\t// For ES5, create a good copy from the draft first, with added keys and without deleted keys.\n\t\t\tstate.type_ === ProxyTypeES5Object || state.type_ === ProxyTypeES5Array\n\t\t\t\t? (state.copy_ = shallowCopy(state.draft_))\n\t\t\t\t: state.copy_\n\t\t// Finalize all children of the copy\n\t\t// For sets we clone before iterating, otherwise we can get in endless loop due to modifying during iteration, see #628\n\t\t// Although the original test case doesn't seem valid anyway, so if this in the way we can turn the next line\n\t\t// back to each(result, ....)\n\t\teach(\n\t\t\tstate.type_ === ProxyTypeSet ? new Set(result) : result,\n\t\t\t(key, childValue) =>\n\t\t\t\tfinalizeProperty(rootScope, state, result, key, childValue, path)\n\t\t)\n\t\t// everything inside is frozen, we can freeze here\n\t\tmaybeFreeze(rootScope, result, false)\n\t\t// first time finalizing, let's create those patches\n\t\tif (path && rootScope.patches_) {\n\t\t\tgetPlugin(\"Patches\").generatePatches_(\n\t\t\t\tstate,\n\t\t\t\tpath,\n\t\t\t\trootScope.patches_,\n\t\t\t\trootScope.inversePatches_!\n\t\t\t)\n\t\t}\n\t}\n\treturn state.copy_\n}\n\nfunction finalizeProperty(\n\trootScope: ImmerScope,\n\tparentState: undefined | ImmerState,\n\ttargetObject: any,\n\tprop: string | number,\n\tchildValue: any,\n\trootPath?: PatchPath\n) {\n\tif (__DEV__ && childValue === targetObject) die(5)\n\tif (isDraft(childValue)) {\n\t\tconst path =\n\t\t\trootPath &&\n\t\t\tparentState &&\n\t\t\tparentState!.type_ !== ProxyTypeSet && // Set objects are atomic since they have no keys.\n\t\t\t!has((parentState as Exclude).assigned_!, prop) // Skip deep patches for assigned keys.\n\t\t\t\t? rootPath!.concat(prop)\n\t\t\t\t: undefined\n\t\t// Drafts owned by `scope` are finalized here.\n\t\tconst res = finalize(rootScope, childValue, path)\n\t\tset(targetObject, prop, res)\n\t\t// Drafts from another scope must prevented to be frozen\n\t\t// if we got a draft back from finalize, we're in a nested produce and shouldn't freeze\n\t\tif (isDraft(res)) {\n\t\t\trootScope.canAutoFreeze_ = false\n\t\t} else return\n\t}\n\t// Search new objects for unfinalized drafts. Frozen objects should never contain drafts.\n\tif (isDraftable(childValue) && !isFrozen(childValue)) {\n\t\tif (!rootScope.immer_.autoFreeze_ && rootScope.unfinalizedDrafts_ < 1) {\n\t\t\t// optimization: if an object is not a draft, and we don't have to\n\t\t\t// deepfreeze everything, and we are sure that no drafts are left in the remaining object\n\t\t\t// cause we saw and finalized all drafts already; we can stop visiting the rest of the tree.\n\t\t\t// This benefits especially adding large data tree's without further processing.\n\t\t\t// See add-data.js perf test\n\t\t\treturn\n\t\t}\n\t\tfinalize(rootScope, childValue)\n\t\t// immer deep freezes plain objects, so if there is no parent state, we freeze as well\n\t\tif (!parentState || !parentState.scope_.parent_)\n\t\t\tmaybeFreeze(rootScope, childValue)\n\t}\n}\n\nfunction maybeFreeze(scope: ImmerScope, value: any, deep = false) {\n\tif (scope.immer_.autoFreeze_ && scope.canAutoFreeze_) {\n\t\tfreeze(value, deep)\n\t}\n}\n","import {\n\teach,\n\thas,\n\tis,\n\tisDraftable,\n\tshallowCopy,\n\tlatest,\n\tImmerBaseState,\n\tImmerState,\n\tDrafted,\n\tAnyObject,\n\tAnyArray,\n\tObjectish,\n\tgetCurrentScope,\n\tDRAFT_STATE,\n\tdie,\n\tcreateProxy,\n\tProxyTypeProxyObject,\n\tProxyTypeProxyArray\n} from \"../internal\"\n\ninterface ProxyBaseState extends ImmerBaseState {\n\tassigned_: {\n\t\t[property: string]: boolean\n\t}\n\tparent_?: ImmerState\n\trevoke_(): void\n}\n\nexport interface ProxyObjectState extends ProxyBaseState {\n\ttype_: typeof ProxyTypeProxyObject\n\tbase_: any\n\tcopy_: any\n\tdraft_: Drafted\n}\n\nexport interface ProxyArrayState extends ProxyBaseState {\n\ttype_: typeof ProxyTypeProxyArray\n\tbase_: AnyArray\n\tcopy_: AnyArray | null\n\tdraft_: Drafted\n}\n\ntype ProxyState = ProxyObjectState | ProxyArrayState\n\n/**\n * Returns a new draft of the `base` object.\n *\n * The second argument is the parent draft-state (used internally).\n */\nexport function createProxyProxy(\n\tbase: T,\n\tparent?: ImmerState\n): Drafted {\n\tconst isArray = Array.isArray(base)\n\tconst state: ProxyState = {\n\t\ttype_: isArray ? ProxyTypeProxyArray : (ProxyTypeProxyObject as any),\n\t\t// Track which produce call this is associated with.\n\t\tscope_: parent ? parent.scope_ : getCurrentScope()!,\n\t\t// True for both shallow and deep changes.\n\t\tmodified_: false,\n\t\t// Used during finalization.\n\t\tfinalized_: false,\n\t\t// Track which properties have been assigned (true) or deleted (false).\n\t\tassigned_: {},\n\t\t// The parent draft state.\n\t\tparent_: parent,\n\t\t// The base state.\n\t\tbase_: base,\n\t\t// The base proxy.\n\t\tdraft_: null as any, // set below\n\t\t// The base copy with any updated values.\n\t\tcopy_: null,\n\t\t// Called by the `produce` function.\n\t\trevoke_: null as any,\n\t\tisManual_: false\n\t}\n\n\t// the traps must target something, a bit like the 'real' base.\n\t// but also, we need to be able to determine from the target what the relevant state is\n\t// (to avoid creating traps per instance to capture the state in closure,\n\t// and to avoid creating weird hidden properties as well)\n\t// So the trick is to use 'state' as the actual 'target'! (and make sure we intercept everything)\n\t// Note that in the case of an array, we put the state in an array to have better Reflect defaults ootb\n\tlet target: T = state as any\n\tlet traps: ProxyHandler> = objectTraps\n\tif (isArray) {\n\t\ttarget = [state] as any\n\t\ttraps = arrayTraps\n\t}\n\n\tconst {revoke, proxy} = Proxy.revocable(target, traps)\n\tstate.draft_ = proxy as any\n\tstate.revoke_ = revoke\n\treturn proxy as any\n}\n\n/**\n * Object drafts\n */\nexport const objectTraps: ProxyHandler = {\n\tget(state, prop) {\n\t\tif (prop === DRAFT_STATE) return state\n\n\t\tconst source = latest(state)\n\t\tif (!has(source, prop)) {\n\t\t\t// non-existing or non-own property...\n\t\t\treturn readPropFromProto(state, source, prop)\n\t\t}\n\t\tconst value = source[prop]\n\t\tif (state.finalized_ || !isDraftable(value)) {\n\t\t\treturn value\n\t\t}\n\t\t// Check for existing draft in modified state.\n\t\t// Assigned values are never drafted. This catches any drafts we created, too.\n\t\tif (value === peek(state.base_, prop)) {\n\t\t\tprepareCopy(state)\n\t\t\treturn (state.copy_![prop as any] = createProxy(\n\t\t\t\tstate.scope_.immer_,\n\t\t\t\tvalue,\n\t\t\t\tstate\n\t\t\t))\n\t\t}\n\t\treturn value\n\t},\n\thas(state, prop) {\n\t\treturn prop in latest(state)\n\t},\n\townKeys(state) {\n\t\treturn Reflect.ownKeys(latest(state))\n\t},\n\tset(\n\t\tstate: ProxyObjectState,\n\t\tprop: string /* strictly not, but helps TS */,\n\t\tvalue\n\t) {\n\t\tconst desc = getDescriptorFromProto(latest(state), prop)\n\t\tif (desc?.set) {\n\t\t\t// special case: if this write is captured by a setter, we have\n\t\t\t// to trigger it with the correct context\n\t\t\tdesc.set.call(state.draft_, value)\n\t\t\treturn true\n\t\t}\n\t\tif (!state.modified_) {\n\t\t\t// the last check is because we need to be able to distinguish setting a non-existig to undefined (which is a change)\n\t\t\t// from setting an existing property with value undefined to undefined (which is not a change)\n\t\t\tconst current = peek(latest(state), prop)\n\t\t\t// special case, if we assigning the original value to a draft, we can ignore the assignment\n\t\t\tconst currentState: ProxyObjectState = current?.[DRAFT_STATE]\n\t\t\tif (currentState && currentState.base_ === value) {\n\t\t\t\tstate.copy_![prop] = value\n\t\t\t\tstate.assigned_[prop] = false\n\t\t\t\treturn true\n\t\t\t}\n\t\t\tif (is(value, current) && (value !== undefined || has(state.base_, prop)))\n\t\t\t\treturn true\n\t\t\tprepareCopy(state)\n\t\t\tmarkChanged(state)\n\t\t}\n\t\t// @ts-ignore\n\t\tstate.copy_![prop] = value\n\t\tstate.assigned_[prop] = true\n\t\treturn true\n\t},\n\tdeleteProperty(state, prop: string) {\n\t\t// The `undefined` check is a fast path for pre-existing keys.\n\t\tif (peek(state.base_, prop) !== undefined || prop in state.base_) {\n\t\t\tstate.assigned_[prop] = false\n\t\t\tprepareCopy(state)\n\t\t\tmarkChanged(state)\n\t\t} else {\n\t\t\t// if an originally not assigned property was deleted\n\t\t\tdelete state.assigned_[prop]\n\t\t}\n\t\t// @ts-ignore\n\t\tif (state.copy_) delete state.copy_[prop]\n\t\treturn true\n\t},\n\t// Note: We never coerce `desc.value` into an Immer draft, because we can't make\n\t// the same guarantee in ES5 mode.\n\tgetOwnPropertyDescriptor(state, prop) {\n\t\tconst owner = latest(state)\n\t\tconst desc = Reflect.getOwnPropertyDescriptor(owner, prop)\n\t\tif (!desc) return desc\n\t\treturn {\n\t\t\twritable: true,\n\t\t\tconfigurable: state.type_ !== ProxyTypeProxyArray || prop !== \"length\",\n\t\t\tenumerable: desc.enumerable,\n\t\t\tvalue: owner[prop]\n\t\t}\n\t},\n\tdefineProperty() {\n\t\tdie(11)\n\t},\n\tgetPrototypeOf(state) {\n\t\treturn Object.getPrototypeOf(state.base_)\n\t},\n\tsetPrototypeOf() {\n\t\tdie(12)\n\t}\n}\n\n/**\n * Array drafts\n */\n\nconst arrayTraps: ProxyHandler<[ProxyArrayState]> = {}\neach(objectTraps, (key, fn) => {\n\t// @ts-ignore\n\tarrayTraps[key] = function() {\n\t\targuments[0] = arguments[0][0]\n\t\treturn fn.apply(this, arguments)\n\t}\n})\narrayTraps.deleteProperty = function(state, prop) {\n\tif (__DEV__ && isNaN(parseInt(prop as any))) die(13)\n\treturn objectTraps.deleteProperty!.call(this, state[0], prop)\n}\narrayTraps.set = function(state, prop, value) {\n\tif (__DEV__ && prop !== \"length\" && isNaN(parseInt(prop as any))) die(14)\n\treturn objectTraps.set!.call(this, state[0], prop, value, state[0])\n}\n\n// Access a property without creating an Immer draft.\nfunction peek(draft: Drafted, prop: PropertyKey) {\n\tconst state = draft[DRAFT_STATE]\n\tconst source = state ? latest(state) : draft\n\treturn source[prop]\n}\n\nfunction readPropFromProto(state: ImmerState, source: any, prop: PropertyKey) {\n\tconst desc = getDescriptorFromProto(source, prop)\n\treturn desc\n\t\t? `value` in desc\n\t\t\t? desc.value\n\t\t\t: // This is a very special case, if the prop is a getter defined by the\n\t\t\t // prototype, we should invoke it with the draft as context!\n\t\t\t desc.get?.call(state.draft_)\n\t\t: undefined\n}\n\nfunction getDescriptorFromProto(\n\tsource: any,\n\tprop: PropertyKey\n): PropertyDescriptor | undefined {\n\t// 'in' checks proto!\n\tif (!(prop in source)) return undefined\n\tlet proto = Object.getPrototypeOf(source)\n\twhile (proto) {\n\t\tconst desc = Object.getOwnPropertyDescriptor(proto, prop)\n\t\tif (desc) return desc\n\t\tproto = Object.getPrototypeOf(proto)\n\t}\n\treturn undefined\n}\n\nexport function markChanged(state: ImmerState) {\n\tif (!state.modified_) {\n\t\tstate.modified_ = true\n\t\tif (state.parent_) {\n\t\t\tmarkChanged(state.parent_)\n\t\t}\n\t}\n}\n\nexport function prepareCopy(state: {base_: any; copy_: any}) {\n\tif (!state.copy_) {\n\t\tstate.copy_ = shallowCopy(state.base_)\n\t}\n}\n","import {\n\tIProduceWithPatches,\n\tIProduce,\n\tImmerState,\n\tDrafted,\n\tisDraftable,\n\tprocessResult,\n\tPatch,\n\tObjectish,\n\tDRAFT_STATE,\n\tDraft,\n\tPatchListener,\n\tisDraft,\n\tisMap,\n\tisSet,\n\tcreateProxyProxy,\n\tgetPlugin,\n\tdie,\n\thasProxies,\n\tenterScope,\n\trevokeScope,\n\tleaveScope,\n\tusePatchesInScope,\n\tgetCurrentScope,\n\tNOTHING,\n\tfreeze,\n\tcurrent\n} from \"../internal\"\n\ninterface ProducersFns {\n\tproduce: IProduce\n\tproduceWithPatches: IProduceWithPatches\n}\n\nexport class Immer implements ProducersFns {\n\tuseProxies_: boolean = hasProxies\n\n\tautoFreeze_: boolean = true\n\n\tconstructor(config?: {useProxies?: boolean; autoFreeze?: boolean}) {\n\t\tif (typeof config?.useProxies === \"boolean\")\n\t\t\tthis.setUseProxies(config!.useProxies)\n\t\tif (typeof config?.autoFreeze === \"boolean\")\n\t\t\tthis.setAutoFreeze(config!.autoFreeze)\n\t\tthis.produce = this.produce.bind(this)\n\t\tthis.produceWithPatches = this.produceWithPatches.bind(this)\n\t}\n\n\t/**\n\t * The `produce` function takes a value and a \"recipe function\" (whose\n\t * return value often depends on the base state). The recipe function is\n\t * free to mutate its first argument however it wants. All mutations are\n\t * only ever applied to a __copy__ of the base state.\n\t *\n\t * Pass only a function to create a \"curried producer\" which relieves you\n\t * from passing the recipe function every time.\n\t *\n\t * Only plain objects and arrays are made mutable. All other objects are\n\t * considered uncopyable.\n\t *\n\t * Note: This function is __bound__ to its `Immer` instance.\n\t *\n\t * @param {any} base - the initial state\n\t * @param {Function} producer - function that receives a proxy of the base state as first argument and which can be freely modified\n\t * @param {Function} patchListener - optional function that will be called with all the patches produced here\n\t * @returns {any} a new state, or the initial state if nothing was modified\n\t */\n\tproduce(base: any, recipe?: any, patchListener?: any) {\n\t\t// curried invocation\n\t\tif (typeof base === \"function\" && typeof recipe !== \"function\") {\n\t\t\tconst defaultBase = recipe\n\t\t\trecipe = base\n\n\t\t\tconst self = this\n\t\t\treturn function curriedProduce(\n\t\t\t\tthis: any,\n\t\t\t\tbase = defaultBase,\n\t\t\t\t...args: any[]\n\t\t\t) {\n\t\t\t\treturn self.produce(base, (draft: Drafted) => recipe.call(this, draft, ...args)) // prettier-ignore\n\t\t\t}\n\t\t}\n\n\t\tif (typeof recipe !== \"function\") die(6)\n\t\tif (patchListener !== undefined && typeof patchListener !== \"function\")\n\t\t\tdie(7)\n\n\t\tlet result\n\n\t\t// Only plain objects, arrays, and \"immerable classes\" are drafted.\n\t\tif (isDraftable(base)) {\n\t\t\tconst scope = enterScope(this)\n\t\t\tconst proxy = createProxy(this, base, undefined)\n\t\t\tlet hasError = true\n\t\t\ttry {\n\t\t\t\tresult = recipe(proxy)\n\t\t\t\thasError = false\n\t\t\t} finally {\n\t\t\t\t// finally instead of catch + rethrow better preserves original stack\n\t\t\t\tif (hasError) revokeScope(scope)\n\t\t\t\telse leaveScope(scope)\n\t\t\t}\n\t\t\tif (typeof Promise !== \"undefined\" && result instanceof Promise) {\n\t\t\t\treturn result.then(\n\t\t\t\t\tresult => {\n\t\t\t\t\t\tusePatchesInScope(scope, patchListener)\n\t\t\t\t\t\treturn processResult(result, scope)\n\t\t\t\t\t},\n\t\t\t\t\terror => {\n\t\t\t\t\t\trevokeScope(scope)\n\t\t\t\t\t\tthrow error\n\t\t\t\t\t}\n\t\t\t\t)\n\t\t\t}\n\t\t\tusePatchesInScope(scope, patchListener)\n\t\t\treturn processResult(result, scope)\n\t\t} else if (!base || typeof base !== \"object\") {\n\t\t\tresult = recipe(base)\n\t\t\tif (result === NOTHING) return undefined\n\t\t\tif (result === undefined) result = base\n\t\t\tif (this.autoFreeze_) freeze(result, true)\n\t\t\treturn result\n\t\t} else die(21, base)\n\t}\n\n\tproduceWithPatches(arg1: any, arg2?: any, arg3?: any): any {\n\t\tif (typeof arg1 === \"function\") {\n\t\t\treturn (state: any, ...args: any[]) =>\n\t\t\t\tthis.produceWithPatches(state, (draft: any) => arg1(draft, ...args))\n\t\t}\n\n\t\tlet patches: Patch[], inversePatches: Patch[]\n\t\tconst nextState = this.produce(arg1, arg2, (p: Patch[], ip: Patch[]) => {\n\t\t\tpatches = p\n\t\t\tinversePatches = ip\n\t\t})\n\t\treturn [nextState, patches!, inversePatches!]\n\t}\n\n\tcreateDraft(base: T): Draft {\n\t\tif (!isDraftable(base)) die(8)\n\t\tif (isDraft(base)) base = current(base)\n\t\tconst scope = enterScope(this)\n\t\tconst proxy = createProxy(this, base, undefined)\n\t\tproxy[DRAFT_STATE].isManual_ = true\n\t\tleaveScope(scope)\n\t\treturn proxy as any\n\t}\n\n\tfinishDraft>(\n\t\tdraft: D,\n\t\tpatchListener?: PatchListener\n\t): D extends Draft ? T : never {\n\t\tconst state: ImmerState = draft && (draft as any)[DRAFT_STATE]\n\t\tif (__DEV__) {\n\t\t\tif (!state || !state.isManual_) die(9)\n\t\t\tif (state.finalized_) die(10)\n\t\t}\n\t\tconst {scope_: scope} = state\n\t\tusePatchesInScope(scope, patchListener)\n\t\treturn processResult(undefined, scope)\n\t}\n\n\t/**\n\t * Pass true to automatically freeze all copies created by Immer.\n\t *\n\t * By default, auto-freezing is disabled in production.\n\t */\n\tsetAutoFreeze(value: boolean) {\n\t\tthis.autoFreeze_ = value\n\t}\n\n\t/**\n\t * Pass true to use the ES2015 `Proxy` class when creating drafts, which is\n\t * always faster than using ES5 proxies.\n\t *\n\t * By default, feature detection is used, so calling this is rarely necessary.\n\t */\n\tsetUseProxies(value: boolean) {\n\t\tif (value && !hasProxies) {\n\t\t\tdie(20)\n\t\t}\n\t\tthis.useProxies_ = value\n\t}\n\n\tapplyPatches(base: Objectish, patches: Patch[]) {\n\t\t// If a patch replaces the entire state, take that replacement as base\n\t\t// before applying patches\n\t\tlet i: number\n\t\tfor (i = patches.length - 1; i >= 0; i--) {\n\t\t\tconst patch = patches[i]\n\t\t\tif (patch.path.length === 0 && patch.op === \"replace\") {\n\t\t\t\tbase = patch.value\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\n\t\tconst applyPatchesImpl = getPlugin(\"Patches\").applyPatches_\n\t\tif (isDraft(base)) {\n\t\t\t// N.B: never hits if some patch a replacement, patches are never drafts\n\t\t\treturn applyPatchesImpl(base, patches)\n\t\t}\n\t\t// Otherwise, produce a copy of the base state.\n\t\treturn this.produce(base, (draft: Drafted) =>\n\t\t\tapplyPatchesImpl(draft, patches.slice(i + 1))\n\t\t)\n\t}\n}\n\nexport function createProxy(\n\timmer: Immer,\n\tvalue: T,\n\tparent?: ImmerState\n): Drafted {\n\t// precondition: createProxy should be guarded by isDraftable, so we know we can safely draft\n\tconst draft: Drafted = isMap(value)\n\t\t? getPlugin(\"MapSet\").proxyMap_(value, parent)\n\t\t: isSet(value)\n\t\t? getPlugin(\"MapSet\").proxySet_(value, parent)\n\t\t: immer.useProxies_\n\t\t? createProxyProxy(value, parent)\n\t\t: getPlugin(\"ES5\").createES5Proxy_(value, parent)\n\n\tconst scope = parent ? parent.scope_ : getCurrentScope()\n\tscope.drafts_.push(draft)\n\treturn draft\n}\n","import {\n\tdie,\n\tisDraft,\n\tshallowCopy,\n\teach,\n\tDRAFT_STATE,\n\tget,\n\tset,\n\tImmerState,\n\tisDraftable,\n\tArchtypeMap,\n\tArchtypeSet,\n\tgetArchtype,\n\tgetPlugin\n} from \"../internal\"\n\n/** Takes a snapshot of the current state of a draft and finalizes it (but without freezing). This is a great utility to print the current state during debugging (no Proxies in the way). The output of current can also be safely leaked outside the producer. */\nexport function current(value: T): T\nexport function current(value: any): any {\n\tif (!isDraft(value)) die(22, value)\n\treturn currentImpl(value)\n}\n\nfunction currentImpl(value: any): any {\n\tif (!isDraftable(value)) return value\n\tconst state: ImmerState | undefined = value[DRAFT_STATE]\n\tlet copy: any\n\tconst archType = getArchtype(value)\n\tif (state) {\n\t\tif (\n\t\t\t!state.modified_ &&\n\t\t\t(state.type_ < 4 || !getPlugin(\"ES5\").hasChanges_(state as any))\n\t\t)\n\t\t\treturn state.base_\n\t\t// Optimization: avoid generating new drafts during copying\n\t\tstate.finalized_ = true\n\t\tcopy = copyHelper(value, archType)\n\t\tstate.finalized_ = false\n\t} else {\n\t\tcopy = copyHelper(value, archType)\n\t}\n\n\teach(copy, (key, childValue) => {\n\t\tif (state && get(state.base_, key) === childValue) return // no need to copy or search in something that didn't change\n\t\tset(copy, key, currentImpl(childValue))\n\t})\n\t// In the future, we might consider freezing here, based on the current settings\n\treturn archType === ArchtypeSet ? new Set(copy) : copy\n}\n\nfunction copyHelper(value: any, archType: number): any {\n\t// creates a shallow copy, even if it is a map or set\n\tswitch (archType) {\n\t\tcase ArchtypeMap:\n\t\t\treturn new Map(value)\n\t\tcase ArchtypeSet:\n\t\t\t// Set will be cloned as array temporarily, so that we can replace individual items\n\t\t\treturn Array.from(value)\n\t}\n\treturn shallowCopy(value)\n}\n","import {\n\tImmerState,\n\tDrafted,\n\tES5ArrayState,\n\tES5ObjectState,\n\teach,\n\thas,\n\tisDraft,\n\tlatest,\n\tDRAFT_STATE,\n\tis,\n\tloadPlugin,\n\tImmerScope,\n\tProxyTypeES5Array,\n\tProxyTypeES5Object,\n\tgetCurrentScope,\n\tdie,\n\tmarkChanged,\n\tobjectTraps,\n\townKeys,\n\tgetOwnPropertyDescriptors\n} from \"../internal\"\n\ntype ES5State = ES5ArrayState | ES5ObjectState\n\nexport function enableES5() {\n\tfunction willFinalizeES5_(\n\t\tscope: ImmerScope,\n\t\tresult: any,\n\t\tisReplaced: boolean\n\t) {\n\t\tif (!isReplaced) {\n\t\t\tif (scope.patches_) {\n\t\t\t\tmarkChangesRecursively(scope.drafts_![0])\n\t\t\t}\n\t\t\t// This is faster when we don't care about which attributes changed.\n\t\t\tmarkChangesSweep(scope.drafts_)\n\t\t}\n\t\t// When a child draft is returned, look for changes.\n\t\telse if (\n\t\t\tisDraft(result) &&\n\t\t\t(result[DRAFT_STATE] as ES5State).scope_ === scope\n\t\t) {\n\t\t\tmarkChangesSweep(scope.drafts_)\n\t\t}\n\t}\n\n\tfunction createES5Draft(isArray: boolean, base: any) {\n\t\tif (isArray) {\n\t\t\tconst draft = new Array(base.length)\n\t\t\tfor (let i = 0; i < base.length; i++)\n\t\t\t\tObject.defineProperty(draft, \"\" + i, proxyProperty(i, true))\n\t\t\treturn draft\n\t\t} else {\n\t\t\tconst descriptors = getOwnPropertyDescriptors(base)\n\t\t\tdelete descriptors[DRAFT_STATE as any]\n\t\t\tconst keys = ownKeys(descriptors)\n\t\t\tfor (let i = 0; i < keys.length; i++) {\n\t\t\t\tconst key: any = keys[i]\n\t\t\t\tdescriptors[key] = proxyProperty(\n\t\t\t\t\tkey,\n\t\t\t\t\tisArray || !!descriptors[key].enumerable\n\t\t\t\t)\n\t\t\t}\n\t\t\treturn Object.create(Object.getPrototypeOf(base), descriptors)\n\t\t}\n\t}\n\n\tfunction createES5Proxy_(\n\t\tbase: T,\n\t\tparent?: ImmerState\n\t): Drafted {\n\t\tconst isArray = Array.isArray(base)\n\t\tconst draft = createES5Draft(isArray, base)\n\n\t\tconst state: ES5ObjectState | ES5ArrayState = {\n\t\t\ttype_: isArray ? ProxyTypeES5Array : (ProxyTypeES5Object as any),\n\t\t\tscope_: parent ? parent.scope_ : getCurrentScope(),\n\t\t\tmodified_: false,\n\t\t\tfinalized_: false,\n\t\t\tassigned_: {},\n\t\t\tparent_: parent,\n\t\t\t// base is the object we are drafting\n\t\t\tbase_: base,\n\t\t\t// draft is the draft object itself, that traps all reads and reads from either the base (if unmodified) or copy (if modified)\n\t\t\tdraft_: draft,\n\t\t\tcopy_: null,\n\t\t\trevoked_: false,\n\t\t\tisManual_: false\n\t\t}\n\n\t\tObject.defineProperty(draft, DRAFT_STATE, {\n\t\t\tvalue: state,\n\t\t\t// enumerable: false <- the default\n\t\t\twritable: true\n\t\t})\n\t\treturn draft\n\t}\n\n\t// property descriptors are recycled to make sure we don't create a get and set closure per property,\n\t// but share them all instead\n\tconst descriptors: {[prop: string]: PropertyDescriptor} = {}\n\n\tfunction proxyProperty(\n\t\tprop: string | number,\n\t\tenumerable: boolean\n\t): PropertyDescriptor {\n\t\tlet desc = descriptors[prop]\n\t\tif (desc) {\n\t\t\tdesc.enumerable = enumerable\n\t\t} else {\n\t\t\tdescriptors[prop] = desc = {\n\t\t\t\tconfigurable: true,\n\t\t\t\tenumerable,\n\t\t\t\tget(this: any) {\n\t\t\t\t\tconst state = this[DRAFT_STATE]\n\t\t\t\t\tif (__DEV__) assertUnrevoked(state)\n\t\t\t\t\t// @ts-ignore\n\t\t\t\t\treturn objectTraps.get(state, prop)\n\t\t\t\t},\n\t\t\t\tset(this: any, value) {\n\t\t\t\t\tconst state = this[DRAFT_STATE]\n\t\t\t\t\tif (__DEV__) assertUnrevoked(state)\n\t\t\t\t\t// @ts-ignore\n\t\t\t\t\tobjectTraps.set(state, prop, value)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn desc\n\t}\n\n\t// This looks expensive, but only proxies are visited, and only objects without known changes are scanned.\n\tfunction markChangesSweep(drafts: Drafted[]) {\n\t\t// The natural order of drafts in the `scope` array is based on when they\n\t\t// were accessed. By processing drafts in reverse natural order, we have a\n\t\t// better chance of processing leaf nodes first. When a leaf node is known to\n\t\t// have changed, we can avoid any traversal of its ancestor nodes.\n\t\tfor (let i = drafts.length - 1; i >= 0; i--) {\n\t\t\tconst state: ES5State = drafts[i][DRAFT_STATE]\n\t\t\tif (!state.modified_) {\n\t\t\t\tswitch (state.type_) {\n\t\t\t\t\tcase ProxyTypeES5Array:\n\t\t\t\t\t\tif (hasArrayChanges(state)) markChanged(state)\n\t\t\t\t\t\tbreak\n\t\t\t\t\tcase ProxyTypeES5Object:\n\t\t\t\t\t\tif (hasObjectChanges(state)) markChanged(state)\n\t\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction markChangesRecursively(object: any) {\n\t\tif (!object || typeof object !== \"object\") return\n\t\tconst state: ES5State | undefined = object[DRAFT_STATE]\n\t\tif (!state) return\n\t\tconst {base_, draft_, assigned_, type_} = state\n\t\tif (type_ === ProxyTypeES5Object) {\n\t\t\t// Look for added keys.\n\t\t\t// probably there is a faster way to detect changes, as sweep + recurse seems to do some\n\t\t\t// unnecessary work.\n\t\t\t// also: probably we can store the information we detect here, to speed up tree finalization!\n\t\t\teach(draft_, key => {\n\t\t\t\tif ((key as any) === DRAFT_STATE) return\n\t\t\t\t// The `undefined` check is a fast path for pre-existing keys.\n\t\t\t\tif ((base_ as any)[key] === undefined && !has(base_, key)) {\n\t\t\t\t\tassigned_[key] = true\n\t\t\t\t\tmarkChanged(state)\n\t\t\t\t} else if (!assigned_[key]) {\n\t\t\t\t\t// Only untouched properties trigger recursion.\n\t\t\t\t\tmarkChangesRecursively(draft_[key])\n\t\t\t\t}\n\t\t\t})\n\t\t\t// Look for removed keys.\n\t\t\teach(base_, key => {\n\t\t\t\t// The `undefined` check is a fast path for pre-existing keys.\n\t\t\t\tif (draft_[key] === undefined && !has(draft_, key)) {\n\t\t\t\t\tassigned_[key] = false\n\t\t\t\t\tmarkChanged(state)\n\t\t\t\t}\n\t\t\t})\n\t\t} else if (type_ === ProxyTypeES5Array) {\n\t\t\tif (hasArrayChanges(state as ES5ArrayState)) {\n\t\t\t\tmarkChanged(state)\n\t\t\t\tassigned_.length = true\n\t\t\t}\n\n\t\t\tif (draft_.length < base_.length) {\n\t\t\t\tfor (let i = draft_.length; i < base_.length; i++) assigned_[i] = false\n\t\t\t} else {\n\t\t\t\tfor (let i = base_.length; i < draft_.length; i++) assigned_[i] = true\n\t\t\t}\n\n\t\t\t// Minimum count is enough, the other parts has been processed.\n\t\t\tconst min = Math.min(draft_.length, base_.length)\n\n\t\t\tfor (let i = 0; i < min; i++) {\n\t\t\t\t// Only untouched indices trigger recursion.\n\t\t\t\tif (assigned_[i] === undefined) markChangesRecursively(draft_[i])\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction hasObjectChanges(state: ES5ObjectState) {\n\t\tconst {base_, draft_} = state\n\n\t\t// Search for added keys and changed keys. Start at the back, because\n\t\t// non-numeric keys are ordered by time of definition on the object.\n\t\tconst keys = ownKeys(draft_)\n\t\tfor (let i = keys.length - 1; i >= 0; i--) {\n\t\t\tconst key: any = keys[i]\n\t\t\tif (key === DRAFT_STATE) continue\n\t\t\tconst baseValue = base_[key]\n\t\t\t// The `undefined` check is a fast path for pre-existing keys.\n\t\t\tif (baseValue === undefined && !has(base_, key)) {\n\t\t\t\treturn true\n\t\t\t}\n\t\t\t// Once a base key is deleted, future changes go undetected, because its\n\t\t\t// descriptor is erased. This branch detects any missed changes.\n\t\t\telse {\n\t\t\t\tconst value = draft_[key]\n\t\t\t\tconst state: ImmerState = value && value[DRAFT_STATE]\n\t\t\t\tif (state ? state.base_ !== baseValue : !is(value, baseValue)) {\n\t\t\t\t\treturn true\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// At this point, no keys were added or changed.\n\t\t// Compare key count to determine if keys were deleted.\n\t\tconst baseIsDraft = !!base_[DRAFT_STATE as any]\n\t\treturn keys.length !== ownKeys(base_).length + (baseIsDraft ? 0 : 1) // + 1 to correct for DRAFT_STATE\n\t}\n\n\tfunction hasArrayChanges(state: ES5ArrayState) {\n\t\tconst {draft_} = state\n\t\tif (draft_.length !== state.base_.length) return true\n\t\t// See #116\n\t\t// If we first shorten the length, our array interceptors will be removed.\n\t\t// If after that new items are added, result in the same original length,\n\t\t// those last items will have no intercepting property.\n\t\t// So if there is no own descriptor on the last position, we know that items were removed and added\n\t\t// N.B.: splice, unshift, etc only shift values around, but not prop descriptors, so we only have to check\n\t\t// the last one\n\t\tconst descriptor = Object.getOwnPropertyDescriptor(\n\t\t\tdraft_,\n\t\t\tdraft_.length - 1\n\t\t)\n\t\t// descriptor can be null, but only for newly created sparse arrays, eg. new Array(10)\n\t\tif (descriptor && !descriptor.get) return true\n\t\t// For all other cases, we don't have to compare, as they would have been picked up by the index setters\n\t\treturn false\n\t}\n\n\tfunction hasChanges_(state: ES5State) {\n\t\treturn state.type_ === ProxyTypeES5Object\n\t\t\t? hasObjectChanges(state)\n\t\t\t: hasArrayChanges(state)\n\t}\n\n\tfunction assertUnrevoked(state: any /*ES5State | MapState | SetState*/) {\n\t\tif (state.revoked_) die(3, JSON.stringify(latest(state)))\n\t}\n\n\tloadPlugin(\"ES5\", {\n\t\tcreateES5Proxy_,\n\t\twillFinalizeES5_,\n\t\thasChanges_\n\t})\n}\n","import {\n\tIProduce,\n\tIProduceWithPatches,\n\tImmer,\n\tDraft,\n\tImmutable\n} from \"./internal\"\n\nexport {\n\tDraft,\n\tImmutable,\n\tPatch,\n\tPatchListener,\n\toriginal,\n\tcurrent,\n\tisDraft,\n\tisDraftable,\n\tNOTHING as nothing,\n\tDRAFTABLE as immerable,\n\tfreeze\n} from \"./internal\"\n\nconst immer = new Immer()\n\n/**\n * The `produce` function takes a value and a \"recipe function\" (whose\n * return value often depends on the base state). The recipe function is\n * free to mutate its first argument however it wants. All mutations are\n * only ever applied to a __copy__ of the base state.\n *\n * Pass only a function to create a \"curried producer\" which relieves you\n * from passing the recipe function every time.\n *\n * Only plain objects and arrays are made mutable. All other objects are\n * considered uncopyable.\n *\n * Note: This function is __bound__ to its `Immer` instance.\n *\n * @param {any} base - the initial state\n * @param {Function} producer - function that receives a proxy of the base state as first argument and which can be freely modified\n * @param {Function} patchListener - optional function that will be called with all the patches produced here\n * @returns {any} a new state, or the initial state if nothing was modified\n */\nexport const produce: IProduce = immer.produce\nexport default produce\n\n/**\n * Like `produce`, but `produceWithPatches` always returns a tuple\n * [nextState, patches, inversePatches] (instead of just the next state)\n */\nexport const produceWithPatches: IProduceWithPatches = immer.produceWithPatches.bind(\n\timmer\n)\n\n/**\n * Pass true to automatically freeze all copies created by Immer.\n *\n * By default, auto-freezing is disabled in production.\n */\nexport const setAutoFreeze = immer.setAutoFreeze.bind(immer)\n\n/**\n * Pass true to use the ES2015 `Proxy` class when creating drafts, which is\n * always faster than using ES5 proxies.\n *\n * By default, feature detection is used, so calling this is rarely necessary.\n */\nexport const setUseProxies = immer.setUseProxies.bind(immer)\n\n/**\n * Apply an array of Immer patches to the first argument.\n *\n * This function is a producer, which means copy-on-write is in effect.\n */\nexport const applyPatches = immer.applyPatches.bind(immer)\n\n/**\n * Create an Immer draft from the given base state, which may be a draft itself.\n * The draft can be modified until you finalize it with the `finishDraft` function.\n */\nexport const createDraft = immer.createDraft.bind(immer)\n\n/**\n * Finalize an Immer draft from a `createDraft` call, returning the base state\n * (if no changes were made) or a modified copy. The draft must *not* be\n * mutated afterwards.\n *\n * Pass a function as the 2nd argument to generate Immer patches based on the\n * changes that were made.\n */\nexport const finishDraft = immer.finishDraft.bind(immer)\n\n/**\n * This function is actually a no-op, but can be used to cast an immutable type\n * to an draft type and make TypeScript happy\n *\n * @param value\n */\nexport function castDraft(value: T): Draft {\n\treturn value as any\n}\n\n/**\n * This function is actually a no-op, but can be used to cast a mutable type\n * to an immutable type and make TypeScript happy\n * @param value\n */\nexport function castImmutable(value: T): Immutable {\n\treturn value as any\n}\n\nexport {Immer}\n\nexport {enableES5} from \"./plugins/es5\"\nexport {enablePatches} from \"./plugins/patches\"\nexport {enableMapSet} from \"./plugins/mapset\"\nexport {enableAllPlugins} from \"./plugins/all\"\n","// Should be no imports here!\n\n// Some things that should be evaluated before all else...\n\n// We only want to know if non-polyfilled symbols are available\nconst hasSymbol =\n\ttypeof Symbol !== \"undefined\" && typeof Symbol(\"x\") === \"symbol\"\nexport const hasMap = typeof Map !== \"undefined\"\nexport const hasSet = typeof Set !== \"undefined\"\nexport const hasProxies =\n\ttypeof Proxy !== \"undefined\" &&\n\ttypeof Proxy.revocable !== \"undefined\" &&\n\ttypeof Reflect !== \"undefined\"\n\n/**\n * The sentinel value returned by producers to replace the draft with undefined.\n */\nexport const NOTHING: Nothing = hasSymbol\n\t? Symbol.for(\"immer-nothing\")\n\t: ({[\"immer-nothing\"]: true} as any)\n\n/**\n * To let Immer treat your class instances as plain immutable objects\n * (albeit with a custom prototype), you must define either an instance property\n * or a static property on each of your custom classes.\n *\n * Otherwise, your class instance will never be drafted, which means it won't be\n * safe to mutate in a produce callback.\n */\nexport const DRAFTABLE: unique symbol = hasSymbol\n\t? Symbol.for(\"immer-draftable\")\n\t: (\"__$immer_draftable\" as any)\n\nexport const DRAFT_STATE: unique symbol = hasSymbol\n\t? Symbol.for(\"immer-state\")\n\t: (\"__$immer_state\" as any)\n\n// Even a polyfilled Symbol might provide Symbol.iterator\nexport const iteratorSymbol: typeof Symbol.iterator =\n\t(typeof Symbol != \"undefined\" && Symbol.iterator) || (\"@@iterator\" as any)\n\n/** Use a class type for `nothing` so its type is unique */\nexport class Nothing {\n\t// This lets us do `Exclude`\n\t// @ts-ignore\n\tprivate _!: unique symbol\n}\n","function defaultEqualityCheck(a, b) {\n return a === b;\n}\n\nfunction areArgumentsShallowlyEqual(equalityCheck, prev, next) {\n if (prev === null || next === null || prev.length !== next.length) {\n return false;\n }\n\n // Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.\n var length = prev.length;\n for (var i = 0; i < length; i++) {\n if (!equalityCheck(prev[i], next[i])) {\n return false;\n }\n }\n\n return true;\n}\n\nexport function defaultMemoize(func) {\n var equalityCheck = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultEqualityCheck;\n\n var lastArgs = null;\n var lastResult = null;\n // we reference arguments instead of spreading them for performance reasons\n return function () {\n if (!areArgumentsShallowlyEqual(equalityCheck, lastArgs, arguments)) {\n // apply arguments instead of spreading for performance.\n lastResult = func.apply(null, arguments);\n }\n\n lastArgs = arguments;\n return lastResult;\n };\n}\n\nfunction getDependencies(funcs) {\n var dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs;\n\n if (!dependencies.every(function (dep) {\n return typeof dep === 'function';\n })) {\n var dependencyTypes = dependencies.map(function (dep) {\n return typeof dep;\n }).join(', ');\n throw new Error('Selector creators expect all input-selectors to be functions, ' + ('instead received the following types: [' + dependencyTypes + ']'));\n }\n\n return dependencies;\n}\n\nexport function createSelectorCreator(memoize) {\n for (var _len = arguments.length, memoizeOptions = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n memoizeOptions[_key - 1] = arguments[_key];\n }\n\n return function () {\n for (var _len2 = arguments.length, funcs = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n funcs[_key2] = arguments[_key2];\n }\n\n var recomputations = 0;\n var resultFunc = funcs.pop();\n var dependencies = getDependencies(funcs);\n\n var memoizedResultFunc = memoize.apply(undefined, [function () {\n recomputations++;\n // apply arguments instead of spreading for performance.\n return resultFunc.apply(null, arguments);\n }].concat(memoizeOptions));\n\n // If a selector is called with the exact same arguments we don't need to traverse our dependencies again.\n var selector = memoize(function () {\n var params = [];\n var length = dependencies.length;\n\n for (var i = 0; i < length; i++) {\n // apply arguments instead of spreading and mutate a local list of params for performance.\n params.push(dependencies[i].apply(null, arguments));\n }\n\n // apply arguments instead of spreading for performance.\n return memoizedResultFunc.apply(null, params);\n });\n\n selector.resultFunc = resultFunc;\n selector.dependencies = dependencies;\n selector.recomputations = function () {\n return recomputations;\n };\n selector.resetRecomputations = function () {\n return recomputations = 0;\n };\n return selector;\n };\n}\n\nexport var createSelector = createSelectorCreator(defaultMemoize);\n\nexport function createStructuredSelector(selectors) {\n var selectorCreator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : createSelector;\n\n if (typeof selectors !== 'object') {\n throw new Error('createStructuredSelector expects first argument to be an object ' + ('where each property is a selector, instead received a ' + typeof selectors));\n }\n var objectKeys = Object.keys(selectors);\n return selectorCreator(objectKeys.map(function (key) {\n return selectors[key];\n }), function () {\n for (var _len3 = arguments.length, values = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n values[_key3] = arguments[_key3];\n }\n\n return values.reduce(function (composition, value, index) {\n composition[objectKeys[index]] = value;\n return composition;\n }, {});\n });\n}","function createThunkMiddleware(extraArgument) {\n return function (_ref) {\n var dispatch = _ref.dispatch,\n getState = _ref.getState;\n return function (next) {\n return function (action) {\n if (typeof action === 'function') {\n return action(dispatch, getState, extraArgument);\n }\n\n return next(action);\n };\n };\n };\n}\n\nvar thunk = createThunkMiddleware();\nthunk.withExtraArgument = createThunkMiddleware;\n\nexport default thunk;","import { Action, ActionCreator, StoreEnhancer, compose } from 'redux'\r\n\r\n/**\r\n * @public\r\n */\r\nexport interface EnhancerOptions {\r\n /**\r\n * the instance name to be showed on the monitor page. Default value is `document.title`.\r\n * If not specified and there's no document title, it will consist of `tabId` and `instanceId`.\r\n */\r\n name?: string\r\n /**\r\n * action creators functions to be available in the Dispatcher.\r\n */\r\n actionCreators?: ActionCreator[] | { [key: string]: ActionCreator }\r\n /**\r\n * if more than one action is dispatched in the indicated interval, all new actions will be collected and sent at once.\r\n * It is the joint between performance and speed. When set to `0`, all actions will be sent instantly.\r\n * Set it to a higher value when experiencing perf issues (also `maxAge` to a lower value).\r\n *\r\n * @default 500 ms.\r\n */\r\n latency?: number\r\n /**\r\n * (> 1) - maximum allowed actions to be stored in the history tree. The oldest actions are removed once maxAge is reached. It's critical for performance.\r\n *\r\n * @default 50\r\n */\r\n maxAge?: number\r\n /**\r\n * See detailed documentation at http://extension.remotedev.io/docs/API/Arguments.html#serialize\r\n */\r\n serialize?:\r\n | boolean\r\n | {\r\n options?:\r\n | boolean\r\n | {\r\n date?: boolean\r\n regex?: boolean\r\n undefined?: boolean\r\n error?: boolean\r\n symbol?: boolean\r\n map?: boolean\r\n set?: boolean\r\n function?: boolean | Function\r\n }\r\n replacer?: (key: string, value: unknown) => unknown\r\n reviver?: (key: string, value: unknown) => unknown\r\n immutable?: unknown\r\n refs?: unknown[]\r\n }\r\n /**\r\n * function which takes `action` object and id number as arguments, and should return `action` object back.\r\n */\r\n actionSanitizer?: (action: A, id: number) => A\r\n /**\r\n * function which takes `state` object and index as arguments, and should return `state` object back.\r\n */\r\n stateSanitizer?: (state: S, index: number) => S\r\n /**\r\n * *string or array of strings as regex* - actions types to be hidden / shown in the monitors (while passed to the reducers).\r\n * If `actionsWhitelist` specified, `actionsBlacklist` is ignored.\r\n */\r\n actionsBlacklist?: string | string[]\r\n /**\r\n * *string or array of strings as regex* - actions types to be hidden / shown in the monitors (while passed to the reducers).\r\n * If `actionsWhitelist` specified, `actionsBlacklist` is ignored.\r\n */\r\n actionsWhitelist?: string | string[]\r\n /**\r\n * called for every action before sending, takes `state` and `action` object, and returns `true` in case it allows sending the current data to the monitor.\r\n * Use it as a more advanced version of `actionsBlacklist`/`actionsWhitelist` parameters.\r\n */\r\n predicate?: (state: S, action: A) => boolean\r\n /**\r\n * if specified as `false`, it will not record the changes till clicking on `Start recording` button.\r\n * Available only for Redux enhancer, for others use `autoPause`.\r\n *\r\n * @default true\r\n */\r\n shouldRecordChanges?: boolean\r\n /**\r\n * if specified, whenever clicking on `Pause recording` button and there are actions in the history log, will add this action type.\r\n * If not specified, will commit when paused. Available only for Redux enhancer.\r\n *\r\n * @default \"@@PAUSED\"\"\r\n */\r\n pauseActionType?: string\r\n /**\r\n * auto pauses when the extension’s window is not opened, and so has zero impact on your app when not in use.\r\n * Not available for Redux enhancer (as it already does it but storing the data to be sent).\r\n *\r\n * @default false\r\n */\r\n autoPause?: boolean\r\n /**\r\n * if specified as `true`, it will not allow any non-monitor actions to be dispatched till clicking on `Unlock changes` button.\r\n * Available only for Redux enhancer.\r\n *\r\n * @default false\r\n */\r\n shouldStartLocked?: boolean\r\n /**\r\n * if set to `false`, will not recompute the states on hot reloading (or on replacing the reducers). Available only for Redux enhancer.\r\n *\r\n * @default true\r\n */\r\n shouldHotReload?: boolean\r\n /**\r\n * if specified as `true`, whenever there's an exception in reducers, the monitors will show the error message, and next actions will not be dispatched.\r\n *\r\n * @default false\r\n */\r\n shouldCatchErrors?: boolean\r\n /**\r\n * If you want to restrict the extension, specify the features you allow.\r\n * If not specified, all of the features are enabled. When set as an object, only those included as `true` will be allowed.\r\n * Note that except `true`/`false`, `import` and `export` can be set as `custom` (which is by default for Redux enhancer), meaning that the importing/exporting occurs on the client side.\r\n * Otherwise, you'll get/set the data right from the monitor part.\r\n */\r\n features?: {\r\n /**\r\n * start/pause recording of dispatched actions\r\n */\r\n pause?: boolean\r\n /**\r\n * lock/unlock dispatching actions and side effects\r\n */\r\n lock?: boolean\r\n /**\r\n * persist states on page reloading\r\n */\r\n persist?: boolean\r\n /**\r\n * export history of actions in a file\r\n */\r\n export?: boolean | 'custom'\r\n /**\r\n * import history of actions from a file\r\n */\r\n import?: boolean | 'custom'\r\n /**\r\n * jump back and forth (time travelling)\r\n */\r\n jump?: boolean\r\n /**\r\n * skip (cancel) actions\r\n */\r\n skip?: boolean\r\n /**\r\n * drag and drop actions in the history list\r\n */\r\n reorder?: boolean\r\n /**\r\n * dispatch custom actions or action creators\r\n */\r\n dispatch?: boolean\r\n /**\r\n * generate tests for the selected actions\r\n */\r\n test?: boolean\r\n }\r\n /**\r\n * Set to true or a stacktrace-returning function to record call stack traces for dispatched actions.\r\n * Defaults to false.\r\n */\r\n trace?: boolean | ((action: A) => string)\r\n /**\r\n * The maximum number of stack trace entries to record per action. Defaults to 10.\r\n */\r\n traceLimit?: number\r\n}\r\n\r\n/**\r\n * @public\r\n */\r\nexport const composeWithDevTools: {\r\n (options: EnhancerOptions): typeof compose\r\n (...funcs: Array>): StoreEnhancer\r\n} =\r\n typeof window !== 'undefined' &&\r\n (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__\r\n ? (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__\r\n : function() {\r\n if (arguments.length === 0) return undefined\r\n if (typeof arguments[0] === 'object') return compose\r\n return compose.apply(null, (arguments as any) as Function[])\r\n }\r\n\r\n/**\r\n * @public\r\n */\r\nexport const devToolsEnhancer: {\r\n (options: EnhancerOptions): StoreEnhancer\r\n} =\r\n typeof window !== 'undefined' && (window as any).__REDUX_DEVTOOLS_EXTENSION__\r\n ? (window as any).__REDUX_DEVTOOLS_EXTENSION__\r\n : function() {\r\n return function(noop) {\r\n return noop\r\n }\r\n }\r\n","/**\r\n * Returns true if the passed value is \"plain\" object, i.e. an object whose\r\n * protoype is the root `Object.prototype`. This includes objects created\r\n * using object literals, but not for instance for class instances.\r\n *\r\n * @param {any} value The value to inspect.\r\n * @returns {boolean} True if the argument appears to be a plain object.\r\n *\r\n * @public\r\n */\r\nexport default function isPlainObject(value: unknown): value is object {\r\n if (typeof value !== 'object' || value === null) return false\r\n\r\n let proto = value\r\n while (Object.getPrototypeOf(proto) !== null) {\r\n proto = Object.getPrototypeOf(proto)\r\n }\r\n\r\n return Object.getPrototypeOf(value) === proto\r\n}\r\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/* A bunch of utils. Some might be unused */\nvar buffer_1 = require(\"buffer\");\nvar jconv_1 = __importDefault(require(\"jconv\"));\nfunction sleep(msec) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, msec); })];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n}\nexports.sleep = sleep;\nfunction withTimeout(timeoutInMs, cb) {\n var _this = this;\n return new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {\n var timer, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n timer = setTimeout(function () {\n reject(new Error(\"Operation timed out\"));\n }, timeoutInMs);\n return [4 /*yield*/, cb()];\n case 1:\n result = _a.sent();\n clearTimeout(timer);\n resolve(result);\n return [2 /*return*/];\n }\n });\n }); });\n}\nexports.withTimeout = withTimeout;\nfunction assert(condition, message) {\n if (condition) {\n return;\n }\n message = message || 'no message provided';\n throw new Error(\"Assertion failed: \" + message);\n}\nexports.assert = assert;\nfunction assertBigInt(value, message) {\n if (typeof value === 'bigint') {\n return value;\n }\n throw assert(false, \"Expected BigInt type - \" + message);\n}\nexports.assertBigInt = assertBigInt;\nfunction assertNumber(value, message) {\n if (typeof value === 'number') {\n return value;\n }\n throw assert(false, \"Expected number type - \" + message);\n}\nexports.assertNumber = assertNumber;\nfunction assertString(value, message) {\n if (typeof value === 'string') {\n return value;\n }\n throw assert(false, \"Expected string type - \" + message);\n}\nexports.assertString = assertString;\nfunction assertUint8Array(value, message) {\n if (value instanceof Uint8Array) {\n return value;\n }\n throw assert(false, \"Expected Uint8Array type - \" + message);\n}\nexports.assertUint8Array = assertUint8Array;\nfunction stringToCharCodeArray(str) {\n var result = new Array(str.length);\n for (var i = 0; i < str.length; i++) {\n result[i] = str.charCodeAt(i);\n }\n return result;\n}\nexports.stringToCharCodeArray = stringToCharCodeArray;\n// compare ArrayBuffers\nfunction arrayBuffersAreEqual(a, b) {\n return dataViewsAreEqual(new DataView(a), new DataView(b));\n}\nexports.arrayBuffersAreEqual = arrayBuffersAreEqual;\n// compare DataViews\nfunction dataViewsAreEqual(a, b) {\n if (a.byteLength !== b.byteLength)\n return false;\n for (var i = 0; i < a.byteLength; i++) {\n if (a.getUint8(i) !== b.getUint8(i))\n return false;\n }\n return true;\n}\nexports.dataViewsAreEqual = dataViewsAreEqual;\n// Thanks to https://gist.github.com/TooTallNate/4750953\nfunction isBigEndian() {\n return new Uint8Array(new Uint32Array([0x12345678]).buffer)[0] === 0x12;\n}\nexports.isBigEndian = isBigEndian;\nfunction hexEncode(str) {\n var hex;\n var result = '';\n for (var i = 0; i < str.length; i++) {\n hex = str.charCodeAt(i).toString(16);\n result += ('0' + hex).slice(-2);\n }\n return result;\n}\nexports.hexEncode = hexEncode;\nfunction arrayBufferToBinaryString(ab) {\n var src = new Uint8Array(ab);\n return uint8arrayToBinaryString(src);\n}\nexports.arrayBufferToBinaryString = arrayBufferToBinaryString;\nfunction uint8arrayToBinaryString(u8a) {\n var dst = Array(u8a.length);\n u8a.forEach(function (c, i) { return (dst[i] = String.fromCharCode(c)); });\n return dst.join('');\n}\nexports.uint8arrayToBinaryString = uint8arrayToBinaryString;\nfunction concatUint8Arrays() {\n var e_1, _a, e_2, _b;\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var totalLength = 0;\n try {\n for (var args_1 = __values(args), args_1_1 = args_1.next(); !args_1_1.done; args_1_1 = args_1.next()) {\n var a = args_1_1.value;\n totalLength += a.length;\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (args_1_1 && !args_1_1.done && (_a = args_1.return)) _a.call(args_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n var res = new Uint8Array(totalLength);\n var offset = 0;\n try {\n for (var args_2 = __values(args), args_2_1 = args_2.next(); !args_2_1.done; args_2_1 = args_2.next()) {\n var a = args_2_1.value;\n res.set(a, offset);\n offset += a.length;\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (args_2_1 && !args_2_1.done && (_b = args_2.return)) _b.call(args_2);\n }\n finally { if (e_2) throw e_2.error; }\n }\n return res;\n}\nexports.concatUint8Arrays = concatUint8Arrays;\nfunction concatArrayBuffers(buffer1, buffer2) {\n var tmp = new Uint8Array(buffer1.byteLength + buffer2.byteLength);\n tmp.set(new Uint8Array(buffer1), 0);\n tmp.set(new Uint8Array(buffer2), buffer1.byteLength);\n return tmp.buffer;\n}\nexports.concatArrayBuffers = concatArrayBuffers;\n// Thanks to: https://gist.github.com/artjomb/7ef1ee574a411ba0dd1933c1ef4690d1\nfunction wordToByteArray(word, length) {\n var ba = [], xFF = 0xff;\n if (length > 0)\n ba.push(word >>> 24);\n if (length > 1)\n ba.push((word >>> 16) & xFF);\n if (length > 2)\n ba.push((word >>> 8) & xFF);\n if (length > 3)\n ba.push(word & xFF);\n return ba;\n}\nfunction wordArrayToByteArray(wordArray, length) {\n if (length === void 0) { length = wordArray.sigBytes; }\n var res = new Uint8Array(length);\n var bytes;\n var i = 0;\n var offset = 0;\n while (length > 0) {\n bytes = wordToByteArray(wordArray.words[i], Math.min(4, length));\n res.set(bytes, offset);\n length -= bytes.length;\n offset += bytes.length;\n i++;\n }\n return res;\n}\nexports.wordArrayToByteArray = wordArrayToByteArray;\nfunction timeToFrames(time) {\n assert(time.length === 4);\n return ((time[0] * 60 + time[1]) * 60 + time[2]) * 512 + time[3];\n}\nexports.timeToFrames = timeToFrames;\nfunction pad(str, pad) {\n return (pad + str).slice(-pad.length);\n}\nexports.pad = pad;\nfunction formatTimeFromFrames(value, frames) {\n if (frames === void 0) { frames = true; }\n var f = value % 512;\n value = (value - f) / 512; // sec\n var s = value % 60;\n value = (value - s) / 60; // min\n var m = value % 60;\n value = (value - m) / 60; // hour\n var h = value;\n return pad(h, '00') + \":\" + pad(m, '00') + \":\" + pad(s, '00') + (frames ? \"+\" + pad(f, '000') : \"\");\n}\nexports.formatTimeFromFrames = formatTimeFromFrames;\nfunction sanitizeTrackTitle(title) {\n return encodeURIComponent(title);\n}\nexports.sanitizeTrackTitle = sanitizeTrackTitle;\nfunction encodeToSJIS(utf8String) {\n return jconv_1.default.encode(utf8String, 'SJIS');\n}\nexports.encodeToSJIS = encodeToSJIS;\nfunction decodeFromSJIS(sjisBuffer) {\n return jconv_1.default.decode(buffer_1.Buffer.from(sjisBuffer), 'SJIS');\n}\nexports.decodeFromSJIS = decodeFromSJIS;\nfunction getLengthAfterEncodingToSJIS(utf8String) {\n return encodeToSJIS(utf8String).length;\n}\nexports.getLengthAfterEncodingToSJIS = getLengthAfterEncodingToSJIS;\n//# sourceMappingURL=utils.js.map","import { Middleware, AnyAction } from 'redux'\r\nimport thunkMiddleware, { ThunkMiddleware } from 'redux-thunk'\r\nimport {\r\n /* PROD_START_REMOVE_UMD */\r\n createImmutableStateInvariantMiddleware,\r\n /* PROD_STOP_REMOVE_UMD */\r\n ImmutableStateInvariantMiddlewareOptions\r\n} from './immutableStateInvariantMiddleware'\r\n\r\nimport {\r\n createSerializableStateInvariantMiddleware,\r\n SerializableStateInvariantMiddlewareOptions\r\n} from './serializableStateInvariantMiddleware'\r\nimport { MiddlewareArray } from './utils'\r\n\r\nfunction isBoolean(x: any): x is boolean {\r\n return typeof x === 'boolean'\r\n}\r\n\r\ninterface ThunkOptions {\r\n extraArgument: E\r\n}\r\n\r\ninterface GetDefaultMiddlewareOptions {\r\n thunk?: boolean | ThunkOptions\r\n immutableCheck?: boolean | ImmutableStateInvariantMiddlewareOptions\r\n serializableCheck?: boolean | SerializableStateInvariantMiddlewareOptions\r\n}\r\n\r\nexport type ThunkMiddlewareFor<\r\n S,\r\n O extends GetDefaultMiddlewareOptions = {}\r\n> = O extends {\r\n thunk: false\r\n}\r\n ? never\r\n : O extends { thunk: { extraArgument: infer E } }\r\n ? ThunkMiddleware\r\n :\r\n | ThunkMiddleware //The ThunkMiddleware with a `null` ExtraArgument is here to provide backwards-compatibility.\r\n | ThunkMiddleware\r\n\r\nexport type CurriedGetDefaultMiddleware = <\r\n O extends Partial = {\r\n thunk: true\r\n immutableCheck: true\r\n serializableCheck: true\r\n }\r\n>(\r\n options?: O\r\n) => MiddlewareArray | ThunkMiddlewareFor>\r\n\r\nexport function curryGetDefaultMiddleware<\r\n S = any\r\n>(): CurriedGetDefaultMiddleware {\r\n return function curriedGetDefaultMiddleware(options) {\r\n return getDefaultMiddleware(options)\r\n }\r\n}\r\n\r\n/**\r\n * Returns any array containing the default middleware installed by\r\n * `configureStore()`. Useful if you want to configure your store with a custom\r\n * `middleware` array but still keep the default set.\r\n *\r\n * @return The default middleware used by `configureStore()`.\r\n *\r\n * @public\r\n */\r\nexport function getDefaultMiddleware<\r\n S = any,\r\n O extends Partial = {\r\n thunk: true\r\n immutableCheck: true\r\n serializableCheck: true\r\n }\r\n>(\r\n options: O = {} as O\r\n): MiddlewareArray | ThunkMiddlewareFor> {\r\n const {\r\n thunk = true,\r\n immutableCheck = true,\r\n serializableCheck = true\r\n } = options\r\n\r\n let middlewareArray: Middleware<{}, S>[] = new MiddlewareArray()\r\n\r\n if (thunk) {\r\n if (isBoolean(thunk)) {\r\n middlewareArray.push(thunkMiddleware)\r\n } else {\r\n middlewareArray.push(\r\n thunkMiddleware.withExtraArgument(thunk.extraArgument)\r\n )\r\n }\r\n }\r\n\r\n if (process.env.NODE_ENV !== 'production') {\r\n if (immutableCheck) {\r\n /* PROD_START_REMOVE_UMD */\r\n let immutableOptions: ImmutableStateInvariantMiddlewareOptions = {}\r\n\r\n if (!isBoolean(immutableCheck)) {\r\n immutableOptions = immutableCheck\r\n }\r\n\r\n middlewareArray.unshift(\r\n createImmutableStateInvariantMiddleware(immutableOptions)\r\n )\r\n /* PROD_STOP_REMOVE_UMD */\r\n }\r\n\r\n if (serializableCheck) {\r\n let serializableOptions: SerializableStateInvariantMiddlewareOptions = {}\r\n\r\n if (!isBoolean(serializableCheck)) {\r\n serializableOptions = serializableCheck\r\n }\r\n\r\n middlewareArray.push(\r\n createSerializableStateInvariantMiddleware(serializableOptions)\r\n )\r\n }\r\n }\r\n\r\n return middlewareArray as any\r\n}\r\n","import {\r\n createStore,\r\n compose,\r\n applyMiddleware,\r\n combineReducers,\r\n Reducer,\r\n ReducersMapObject,\r\n Middleware,\r\n Action,\r\n AnyAction,\r\n StoreEnhancer,\r\n Store,\r\n DeepPartial,\r\n Dispatch\r\n} from 'redux'\r\nimport {\r\n composeWithDevTools,\r\n EnhancerOptions as DevToolsOptions\r\n} from './devtoolsExtension'\r\n\r\nimport isPlainObject from './isPlainObject'\r\nimport {\r\n ThunkMiddlewareFor,\r\n curryGetDefaultMiddleware,\r\n CurriedGetDefaultMiddleware\r\n} from './getDefaultMiddleware'\r\nimport { DispatchForMiddlewares } from './tsHelpers'\r\n\r\nconst IS_PRODUCTION = process.env.NODE_ENV === 'production'\r\n\r\n/**\r\n * Callback function type, to be used in `ConfigureStoreOptions.enhancers`\r\n *\r\n * @public\r\n */\r\nexport type ConfigureEnhancersCallback = (\r\n defaultEnhancers: StoreEnhancer[]\r\n) => StoreEnhancer[]\r\n\r\n/**\r\n * Options for `configureStore()`.\r\n *\r\n * @public\r\n */\r\nexport interface ConfigureStoreOptions<\r\n S = any,\r\n A extends Action = AnyAction,\r\n M extends Middlewares = Middlewares\r\n> {\r\n /**\r\n * A single reducer function that will be used as the root reducer, or an\r\n * object of slice reducers that will be passed to `combineReducers()`.\r\n */\r\n reducer: Reducer | ReducersMapObject\r\n\r\n /**\r\n * An array of Redux middleware to install. If not supplied, defaults to\r\n * the set of middleware returned by `getDefaultMiddleware()`.\r\n */\r\n middleware?: ((getDefaultMiddleware: CurriedGetDefaultMiddleware) => M) | M\r\n\r\n /**\r\n * Whether to enable Redux DevTools integration. Defaults to `true`.\r\n *\r\n * Additional configuration can be done by passing Redux DevTools options\r\n */\r\n devTools?: boolean | DevToolsOptions\r\n\r\n /**\r\n * The initial state, same as Redux's createStore.\r\n * You may optionally specify it to hydrate the state\r\n * from the server in universal apps, or to restore a previously serialized\r\n * user session. If you use `combineReducers()` to produce the root reducer\r\n * function (either directly or indirectly by passing an object as `reducer`),\r\n * this must be an object with the same shape as the reducer map keys.\r\n */\r\n // NOTE: The needlessly complicated `S extends any ? S : S` instead of just\r\n // `S` ensures that the TypeScript compiler doesn't attempt to infer `S`\r\n // based on the value passed as `preloadedState`, which might be a partial\r\n // state rather than the full thing.\r\n preloadedState?: DeepPartial\r\n\r\n /**\r\n * The store enhancers to apply. See Redux's `createStore()`.\r\n * All enhancers will be included before the DevTools Extension enhancer.\r\n * If you need to customize the order of enhancers, supply a callback\r\n * function that will receive the original array (ie, `[applyMiddleware]`),\r\n * and should return a new array (such as `[applyMiddleware, offline]`).\r\n * If you only need to add middleware, you can use the `middleware` parameter instead.\r\n */\r\n enhancers?: StoreEnhancer[] | ConfigureEnhancersCallback\r\n}\r\n\r\ntype Middlewares = ReadonlyArray>\r\n\r\n/**\r\n * A Redux store returned by `configureStore()`. Supports dispatching\r\n * side-effectful _thunks_ in addition to plain actions.\r\n *\r\n * @public\r\n */\r\nexport interface EnhancedStore<\r\n S = any,\r\n A extends Action = AnyAction,\r\n M extends Middlewares = Middlewares\r\n> extends Store {\r\n /**\r\n * The `dispatch` method of your store, enhanced by all its middlewares.\r\n *\r\n * @inheritdoc\r\n */\r\n dispatch: DispatchForMiddlewares & Dispatch\r\n}\r\n\r\n/**\r\n * A friendly abstraction over the standard Redux `createStore()` function.\r\n *\r\n * @param config The store configuration.\r\n * @returns A configured Redux store.\r\n *\r\n * @public\r\n */\r\nexport function configureStore<\r\n S = any,\r\n A extends Action = AnyAction,\r\n M extends Middlewares = [ThunkMiddlewareFor]\r\n>(options: ConfigureStoreOptions): EnhancedStore {\r\n const curriedGetDefaultMiddleware = curryGetDefaultMiddleware()\r\n\r\n const {\r\n reducer = undefined,\r\n middleware = curriedGetDefaultMiddleware(),\r\n devTools = true,\r\n preloadedState = undefined,\r\n enhancers = undefined\r\n } = options || {}\r\n\r\n let rootReducer: Reducer\r\n\r\n if (typeof reducer === 'function') {\r\n rootReducer = reducer\r\n } else if (isPlainObject(reducer)) {\r\n rootReducer = combineReducers(reducer)\r\n } else {\r\n throw new Error(\r\n '\"reducer\" is a required argument, and must be a function or an object of functions that can be passed to combineReducers'\r\n )\r\n }\r\n\r\n const middlewareEnhancer = applyMiddleware(\r\n ...(typeof middleware === 'function'\r\n ? middleware(curriedGetDefaultMiddleware)\r\n : middleware)\r\n )\r\n\r\n let finalCompose = compose\r\n\r\n if (devTools) {\r\n finalCompose = composeWithDevTools({\r\n // Enable capture of stack traces for dispatched Redux actions\r\n trace: !IS_PRODUCTION,\r\n ...(typeof devTools === 'object' && devTools)\r\n })\r\n }\r\n\r\n let storeEnhancers: StoreEnhancer[] = [middlewareEnhancer]\r\n\r\n if (Array.isArray(enhancers)) {\r\n storeEnhancers = [middlewareEnhancer, ...enhancers]\r\n } else if (typeof enhancers === 'function') {\r\n storeEnhancers = enhancers(storeEnhancers)\r\n }\r\n\r\n const composedEnhancer = finalCompose(...storeEnhancers) as any\r\n\r\n return createStore(rootReducer, preloadedState as any, composedEnhancer)\r\n}\r\n","import { Action } from 'redux'\r\nimport {\r\n IsUnknownOrNonInferrable,\r\n IfMaybeUndefined,\r\n IfVoid,\r\n IsAny\r\n} from './tsHelpers'\r\nimport isPlainObject from './isPlainObject'\r\n\r\n/**\r\n * An action with a string type and an associated payload. This is the\r\n * type of action returned by `createAction()` action creators.\r\n *\r\n * @template P The type of the action's payload.\r\n * @template T the type used for the action type.\r\n * @template M The type of the action's meta (optional)\r\n * @template E The type of the action's error (optional)\r\n *\r\n * @public\r\n */\r\nexport type PayloadAction<\r\n P = void,\r\n T extends string = string,\r\n M = never,\r\n E = never\r\n> = {\r\n payload: P\r\n type: T\r\n} & ([M] extends [never]\r\n ? {}\r\n : {\r\n meta: M\r\n }) &\r\n ([E] extends [never]\r\n ? {}\r\n : {\r\n error: E\r\n })\r\n\r\n/**\r\n * A \"prepare\" method to be used as the second parameter of `createAction`.\r\n * Takes any number of arguments and returns a Flux Standard Action without\r\n * type (will be added later) that *must* contain a payload (might be undefined).\r\n *\r\n * @public\r\n */\r\nexport type PrepareAction

=\r\n | ((...args: any[]) => { payload: P })\r\n | ((...args: any[]) => { payload: P; meta: any })\r\n | ((...args: any[]) => { payload: P; error: any })\r\n | ((...args: any[]) => { payload: P; meta: any; error: any })\r\n\r\n/**\r\n * Internal version of `ActionCreatorWithPreparedPayload`. Not to be used externally.\r\n *\r\n * @internal\r\n */\r\nexport type _ActionCreatorWithPreparedPayload<\r\n PA extends PrepareAction | void,\r\n T extends string = string\r\n> = PA extends PrepareAction\r\n ? ActionCreatorWithPreparedPayload<\r\n Parameters,\r\n P,\r\n T,\r\n ReturnType extends {\r\n error: infer E\r\n }\r\n ? E\r\n : never,\r\n ReturnType extends {\r\n meta: infer M\r\n }\r\n ? M\r\n : never\r\n >\r\n : void\r\n\r\n/**\r\n * Basic type for all action creators.\r\n *\r\n * @inheritdoc {redux#ActionCreator}\r\n */\r\ninterface BaseActionCreator {\r\n type: T\r\n match(action: Action): action is PayloadAction\r\n}\r\n\r\n/**\r\n * An action creator that takes multiple arguments that are passed\r\n * to a `PrepareAction` method to create the final Action.\r\n * @typeParam Args arguments for the action creator function\r\n * @typeParam P `payload` type\r\n * @typeParam T `type` name\r\n * @typeParam E optional `error` type\r\n * @typeParam M optional `meta` type\r\n *\r\n * @inheritdoc {redux#ActionCreator}\r\n *\r\n * @public\r\n */\r\nexport interface ActionCreatorWithPreparedPayload<\r\n Args extends unknown[],\r\n P,\r\n T extends string = string,\r\n E = never,\r\n M = never\r\n> extends BaseActionCreator {\r\n /**\r\n * Calling this {@link redux#ActionCreator} with `Args` will return\r\n * an Action with a payload of type `P` and (depending on the `PrepareAction`\r\n * method used) a `meta`- and `error` property of types `M` and `E` respectively.\r\n */\r\n (...args: Args): PayloadAction\r\n}\r\n\r\n/**\r\n * An action creator of type `T` that takes an optional payload of type `P`.\r\n *\r\n * @inheritdoc {redux#ActionCreator}\r\n *\r\n * @public\r\n */\r\nexport interface ActionCreatorWithOptionalPayload\r\n extends BaseActionCreator {\r\n /**\r\n * Calling this {@link redux#ActionCreator} with an argument will\r\n * return a {@link PayloadAction} of type `T` with a payload of `P`.\r\n * Calling it without an argument will return a PayloadAction with a payload of `undefined`.\r\n */\r\n (payload?: P): PayloadAction\r\n}\r\n\r\n/**\r\n * An action creator of type `T` that takes no payload.\r\n *\r\n * @inheritdoc {redux#ActionCreator}\r\n *\r\n * @public\r\n */\r\nexport interface ActionCreatorWithoutPayload\r\n extends BaseActionCreator {\r\n /**\r\n * Calling this {@link redux#ActionCreator} will\r\n * return a {@link PayloadAction} of type `T` with a payload of `undefined`\r\n */\r\n (): PayloadAction\r\n}\r\n\r\n/**\r\n * An action creator of type `T` that requires a payload of type P.\r\n *\r\n * @inheritdoc {redux#ActionCreator}\r\n *\r\n * @public\r\n */\r\nexport interface ActionCreatorWithPayload\r\n extends BaseActionCreator {\r\n /**\r\n * Calling this {@link redux#ActionCreator} with an argument will\r\n * return a {@link PayloadAction} of type `T` with a payload of `P`\r\n */\r\n (payload: P): PayloadAction\r\n}\r\n\r\n/**\r\n * An action creator of type `T` whose `payload` type could not be inferred. Accepts everything as `payload`.\r\n *\r\n * @inheritdoc {redux#ActionCreator}\r\n *\r\n * @public\r\n */\r\nexport interface ActionCreatorWithNonInferrablePayload<\r\n T extends string = string\r\n> extends BaseActionCreator {\r\n /**\r\n * Calling this {@link redux#ActionCreator} with an argument will\r\n * return a {@link PayloadAction} of type `T` with a payload\r\n * of exactly the type of the argument.\r\n */\r\n (payload: PT): PayloadAction\r\n}\r\n\r\n/**\r\n * An action creator that produces actions with a `payload` attribute.\r\n *\r\n * @typeParam P the `payload` type\r\n * @typeParam T the `type` of the resulting action\r\n * @typeParam PA if the resulting action is preprocessed by a `prepare` method, the signature of said method.\r\n *\r\n * @public\r\n */\r\nexport type PayloadActionCreator<\r\n P = void,\r\n T extends string = string,\r\n PA extends PrepareAction

| void = void\r\n> = IfPrepareActionMethodProvided<\r\n PA,\r\n _ActionCreatorWithPreparedPayload,\r\n // else\r\n IsAny<\r\n P,\r\n ActionCreatorWithPayload,\r\n IsUnknownOrNonInferrable<\r\n P,\r\n ActionCreatorWithNonInferrablePayload,\r\n // else\r\n IfVoid<\r\n P,\r\n ActionCreatorWithoutPayload,\r\n // else\r\n IfMaybeUndefined<\r\n P,\r\n ActionCreatorWithOptionalPayload,\r\n // else\r\n ActionCreatorWithPayload\r\n >\r\n >\r\n >\r\n >\r\n>\r\n\r\n/**\r\n * A utility function to create an action creator for the given action type\r\n * string. The action creator accepts a single argument, which will be included\r\n * in the action object as a field called payload. The action creator function\r\n * will also have its toString() overriden so that it returns the action type,\r\n * allowing it to be used in reducer logic that is looking for that action type.\r\n *\r\n * @param type The action type to use for created actions.\r\n * @param prepare (optional) a method that takes any number of arguments and returns { payload } or { payload, meta }.\r\n * If this is given, the resulting action creator will pass its arguments to this method to calculate payload & meta.\r\n *\r\n * @public\r\n */\r\nexport function createAction

(\r\n type: T\r\n): PayloadActionCreator\r\n\r\n/**\r\n * A utility function to create an action creator for the given action type\r\n * string. The action creator accepts a single argument, which will be included\r\n * in the action object as a field called payload. The action creator function\r\n * will also have its toString() overriden so that it returns the action type,\r\n * allowing it to be used in reducer logic that is looking for that action type.\r\n *\r\n * @param type The action type to use for created actions.\r\n * @param prepare (optional) a method that takes any number of arguments and returns { payload } or { payload, meta }.\r\n * If this is given, the resulting action creator will pass its arguments to this method to calculate payload & meta.\r\n *\r\n * @public\r\n */\r\nexport function createAction<\r\n PA extends PrepareAction,\r\n T extends string = string\r\n>(\r\n type: T,\r\n prepareAction: PA\r\n): PayloadActionCreator['payload'], T, PA>\r\n\r\nexport function createAction(type: string, prepareAction?: Function): any {\r\n function actionCreator(...args: any[]) {\r\n if (prepareAction) {\r\n let prepared = prepareAction(...args)\r\n if (!prepared) {\r\n throw new Error('prepareAction did not return an object')\r\n }\r\n\r\n return {\r\n type,\r\n payload: prepared.payload,\r\n ...('meta' in prepared && { meta: prepared.meta }),\r\n ...('error' in prepared && { error: prepared.error })\r\n }\r\n }\r\n return { type, payload: args[0] }\r\n }\r\n\r\n actionCreator.toString = () => `${type}`\r\n\r\n actionCreator.type = type\r\n\r\n actionCreator.match = (action: Action): action is PayloadAction =>\r\n action.type === type\r\n\r\n return actionCreator\r\n}\r\n\r\nexport function isFSA(\r\n action: unknown\r\n): action is {\r\n type: string\r\n payload?: unknown\r\n error?: unknown\r\n meta?: unknown\r\n} {\r\n return (\r\n isPlainObject(action) &&\r\n typeof (action as any).type === 'string' &&\r\n Object.keys(action).every(isValidKey)\r\n )\r\n}\r\n\r\nfunction isValidKey(key: string) {\r\n return ['type', 'payload', 'error', 'meta'].indexOf(key) > -1\r\n}\r\n\r\n/**\r\n * Returns the action type of the actions created by the passed\r\n * `createAction()`-generated action creator (arbitrary action creators\r\n * are not supported).\r\n *\r\n * @param action The action creator whose action type to get.\r\n * @returns The action type used by the action creator.\r\n *\r\n * @public\r\n */\r\nexport function getType(\r\n actionCreator: PayloadActionCreator\r\n): T {\r\n return `${actionCreator}` as T\r\n}\r\n\r\n// helper types for more readable typings\r\n\r\ntype IfPrepareActionMethodProvided<\r\n PA extends PrepareAction | void,\r\n True,\r\n False\r\n> = PA extends (...args: any[]) => any ? True : False\r\n","import { Action, AnyAction } from 'redux'\r\nimport {\r\n CaseReducer,\r\n CaseReducers,\r\n ActionMatcher,\r\n ActionMatcherDescriptionCollection\r\n} from './createReducer'\r\n\r\nexport interface TypedActionCreator {\r\n (...args: any[]): Action\r\n type: Type\r\n}\r\n\r\n/**\r\n * A builder for an action <-> reducer map.\r\n *\r\n * @public\r\n */\r\nexport interface ActionReducerMapBuilder {\r\n /**\r\n * Adds a case reducer to handle a single exact action type.\r\n * @remarks\r\n * All calls to `builder.addCase` must come before any calls to `builder.addMatcher` or `builder.addDefaultCase`.\r\n * @param actionCreator - Either a plain action type string, or an action creator generated by [`createAction`](./createAction) that can be used to determine the action type.\r\n * @param reducer - The actual case reducer function.\r\n */\r\n addCase>(\r\n actionCreator: ActionCreator,\r\n reducer: CaseReducer>\r\n ): ActionReducerMapBuilder\r\n /**\r\n * Adds a case reducer to handle a single exact action type.\r\n * @remarks\r\n * All calls to `builder.addCase` must come before any calls to `builder.addMatcher` or `builder.addDefaultCase`.\r\n * @param actionCreator - Either a plain action type string, or an action creator generated by [`createAction`](./createAction) that can be used to determine the action type.\r\n * @param reducer - The actual case reducer function.\r\n */\r\n addCase>(\r\n type: Type,\r\n reducer: CaseReducer\r\n ): ActionReducerMapBuilder\r\n\r\n /**\r\n * Allows you to match your incoming actions against your own filter function instead of only the `action.type` property.\r\n * @remarks\r\n * If multiple matcher reducers match, all of them will be executed in the order\r\n * they were defined in - even if a case reducer already matched.\r\n * All calls to `builder.addMatcher` must come after any calls to `builder.addCase` and before any calls to `builder.addDefaultCase`.\r\n * @param matcher - A matcher function. In TypeScript, this should be a [type predicate](https://www.typescriptlang.org/docs/handbook/advanced-types.html#using-type-predicates)\r\n * function\r\n * @param reducer - The actual case reducer function.\r\n *\r\n * @example\r\n```ts\r\nimport {\r\n createAction,\r\n createReducer,\r\n AsyncThunk,\r\n AnyAction,\r\n} from \"@reduxjs/toolkit\";\r\n\r\ntype GenericAsyncThunk = AsyncThunk;\r\n\r\ntype PendingAction = ReturnType;\r\ntype RejectedAction = ReturnType;\r\ntype FulfilledAction = ReturnType;\r\n\r\nconst initialState: Record = {};\r\nconst resetAction = createAction(\"reset-tracked-loading-state\");\r\n\r\nfunction isPendingAction(action: AnyAction): action is PendingAction {\r\n return action.type.endsWith(\"/pending\");\r\n}\r\n\r\nconst reducer = createReducer(initialState, (builder) => {\r\n builder\r\n .addCase(resetAction, () => initialState)\r\n // matcher can be defined outside as a type predicate function\r\n .addMatcher(isPendingAction, (state, action) => {\r\n state[action.meta.requestId] = \"pending\";\r\n })\r\n .addMatcher(\r\n // matcher can be defined inline as a type predicate function\r\n (action): action is RejectedAction => action.type.endsWith(\"/rejected\"),\r\n (state, action) => {\r\n state[action.meta.requestId] = \"rejected\";\r\n }\r\n )\r\n // matcher can just return boolean and the matcher can receive a generic argument\r\n .addMatcher(\r\n (action) => action.type.endsWith(\"/fulfilled\"),\r\n (state, action) => {\r\n state[action.meta.requestId] = \"fulfilled\";\r\n }\r\n );\r\n});\r\n```\r\n */\r\n addMatcher(\r\n matcher: ActionMatcher | ((action: AnyAction) => boolean),\r\n reducer: CaseReducer\r\n ): Omit, 'addCase'>\r\n\r\n /**\r\n * Adds a \"default case\" reducer that is executed if no case reducer and no matcher\r\n * reducer was executed for this action.\r\n * @param reducer - The fallback \"default case\" reducer function.\r\n *\r\n * @example\r\n```ts\r\nimport { createReducer } from '@reduxjs/toolkit'\r\nconst initialState = { otherActions: 0 }\r\nconst reducer = createReducer(initialState, builder => {\r\n builder\r\n // .addCase(...)\r\n // .addMatcher(...)\r\n .addDefaultCase((state, action) => {\r\n state.otherActions++\r\n })\r\n})\r\n```\r\n */\r\n addDefaultCase(reducer: CaseReducer): {}\r\n}\r\n\r\nexport function executeReducerBuilderCallback(\r\n builderCallback: (builder: ActionReducerMapBuilder) => void\r\n): [\r\n CaseReducers,\r\n ActionMatcherDescriptionCollection,\r\n CaseReducer | undefined\r\n] {\r\n const actionsMap: CaseReducers = {}\r\n const actionMatchers: ActionMatcherDescriptionCollection = []\r\n let defaultCaseReducer: CaseReducer | undefined\r\n const builder = {\r\n addCase(\r\n typeOrActionCreator: string | TypedActionCreator,\r\n reducer: CaseReducer\r\n ) {\r\n if (process.env.NODE_ENV !== 'production') {\r\n /*\r\n to keep the definition by the user in line with actual behavior, \r\n we enforce `addCase` to always be called before calling `addMatcher`\r\n as matching cases take precedence over matchers\r\n */\r\n if (actionMatchers.length > 0) {\r\n throw new Error(\r\n '`builder.addCase` should only be called before calling `builder.addMatcher`'\r\n )\r\n }\r\n if (defaultCaseReducer) {\r\n throw new Error(\r\n '`builder.addCase` should only be called before calling `builder.addDefaultCase`'\r\n )\r\n }\r\n }\r\n const type =\r\n typeof typeOrActionCreator === 'string'\r\n ? typeOrActionCreator\r\n : typeOrActionCreator.type\r\n if (type in actionsMap) {\r\n throw new Error(\r\n 'addCase cannot be called with two reducers for the same action type'\r\n )\r\n }\r\n actionsMap[type] = reducer\r\n return builder\r\n },\r\n addMatcher(\r\n matcher: ActionMatcher,\r\n reducer: CaseReducer\r\n ) {\r\n if (process.env.NODE_ENV !== 'production') {\r\n if (defaultCaseReducer) {\r\n throw new Error(\r\n '`builder.addMatcher` should only be called before calling `builder.addDefaultCase`'\r\n )\r\n }\r\n }\r\n actionMatchers.push({ matcher, reducer })\r\n return builder\r\n },\r\n addDefaultCase(reducer: CaseReducer) {\r\n if (process.env.NODE_ENV !== 'production') {\r\n if (defaultCaseReducer) {\r\n throw new Error('`builder.addDefaultCase` can only be called once')\r\n }\r\n }\r\n defaultCaseReducer = reducer\r\n return builder\r\n }\r\n }\r\n builderCallback(builder)\r\n return [actionsMap, actionMatchers, defaultCaseReducer]\r\n}\r\n","import { Reducer } from 'redux'\r\nimport {\r\n ActionCreatorWithoutPayload,\r\n createAction,\r\n PayloadAction,\r\n PayloadActionCreator,\r\n PrepareAction,\r\n _ActionCreatorWithPreparedPayload\r\n} from './createAction'\r\nimport { CaseReducer, CaseReducers, createReducer } from './createReducer'\r\nimport {\r\n ActionReducerMapBuilder,\r\n executeReducerBuilderCallback\r\n} from './mapBuilders'\r\nimport { NoInfer } from './tsHelpers'\r\n\r\n/**\r\n * An action creator attached to a slice.\r\n *\r\n * @deprecated please use PayloadActionCreator directly\r\n *\r\n * @public\r\n */\r\nexport type SliceActionCreator

= PayloadActionCreator

\r\n\r\n/**\r\n * The return value of `createSlice`\r\n *\r\n * @public\r\n */\r\nexport interface Slice<\r\n State = any,\r\n CaseReducers extends SliceCaseReducers = SliceCaseReducers,\r\n Name extends string = string\r\n> {\r\n /**\r\n * The slice name.\r\n */\r\n name: Name\r\n\r\n /**\r\n * The slice's reducer.\r\n */\r\n reducer: Reducer\r\n\r\n /**\r\n * Action creators for the types of actions that are handled by the slice\r\n * reducer.\r\n */\r\n actions: CaseReducerActions\r\n\r\n /**\r\n * The individual case reducer functions that were passed in the `reducers` parameter.\r\n * This enables reuse and testing if they were defined inline when calling `createSlice`.\r\n */\r\n caseReducers: SliceDefinedCaseReducers\r\n}\r\n\r\n/**\r\n * Options for `createSlice()`.\r\n *\r\n * @public\r\n */\r\nexport interface CreateSliceOptions<\r\n State = any,\r\n CR extends SliceCaseReducers = SliceCaseReducers,\r\n Name extends string = string\r\n> {\r\n /**\r\n * The slice's name. Used to namespace the generated action types.\r\n */\r\n name: Name\r\n\r\n /**\r\n * The initial state to be returned by the slice reducer.\r\n */\r\n initialState: State\r\n\r\n /**\r\n * A mapping from action types to action-type-specific *case reducer*\r\n * functions. For every action type, a matching action creator will be\r\n * generated using `createAction()`.\r\n */\r\n reducers: ValidateSliceCaseReducers\r\n\r\n /**\r\n * A callback that receives a *builder* object to define\r\n * case reducers via calls to `builder.addCase(actionCreatorOrType, reducer)`.\r\n * \r\n * Alternatively, a mapping from action types to action-type-specific *case reducer*\r\n * functions. These reducers should have existing action types used\r\n * as the keys, and action creators will _not_ be generated.\r\n * \r\n * @example\r\n```ts\r\nimport { createAction, createSlice, Action, AnyAction } from '@reduxjs/toolkit'\r\nconst incrementBy = createAction('incrementBy')\r\nconst decrement = createAction('decrement')\r\n\r\ninterface RejectedAction extends Action {\r\n error: Error\r\n}\r\n\r\nfunction isRejectedAction(action: AnyAction): action is RejectedAction {\r\n return action.type.endsWith('rejected')\r\n}\r\n\r\ncreateSlice({\r\n name: 'counter',\r\n initialState: 0,\r\n reducers: {},\r\n extraReducers: builder => {\r\n builder\r\n .addCase(incrementBy, (state, action) => {\r\n // action is inferred correctly here if using TS\r\n })\r\n // You can chain calls, or have separate `builder.addCase()` lines each time\r\n .addCase(decrement, (state, action) => {})\r\n // You can match a range of action types\r\n .addMatcher(\r\n isRejectedAction,\r\n // `action` will be inferred as a RejectedAction due to isRejectedAction being defined as a type guard\r\n (state, action) => {}\r\n )\r\n // and provide a default case if no other handlers matched\r\n .addDefaultCase((state, action) => {})\r\n }\r\n})\r\n```\r\n */\r\n extraReducers?:\r\n | CaseReducers, any>\r\n | ((builder: ActionReducerMapBuilder>) => void)\r\n}\r\n\r\n/**\r\n * A CaseReducer with a `prepare` method.\r\n *\r\n * @public\r\n */\r\nexport type CaseReducerWithPrepare = {\r\n reducer: CaseReducer\r\n prepare: PrepareAction\r\n}\r\n\r\n/**\r\n * The type describing a slice's `reducers` option.\r\n *\r\n * @public\r\n */\r\nexport type SliceCaseReducers = {\r\n [K: string]:\r\n | CaseReducer>\r\n | CaseReducerWithPrepare>\r\n}\r\n\r\n/**\r\n * Derives the slice's `actions` property from the `reducers` options\r\n *\r\n * @public\r\n */\r\nexport type CaseReducerActions> = {\r\n [Type in keyof CaseReducers]: CaseReducers[Type] extends { prepare: any }\r\n ? ActionCreatorForCaseReducerWithPrepare\r\n : ActionCreatorForCaseReducer\r\n}\r\n\r\n/**\r\n * Get a `PayloadActionCreator` type for a passed `CaseReducerWithPrepare`\r\n *\r\n * @internal\r\n */\r\ntype ActionCreatorForCaseReducerWithPrepare<\r\n CR extends { prepare: any }\r\n> = _ActionCreatorWithPreparedPayload\r\n\r\n/**\r\n * Get a `PayloadActionCreator` type for a passed `CaseReducer`\r\n *\r\n * @internal\r\n */\r\ntype ActionCreatorForCaseReducer = CR extends (\r\n state: any,\r\n action: infer Action\r\n) => any\r\n ? Action extends { payload: infer P }\r\n ? PayloadActionCreator

\r\n : ActionCreatorWithoutPayload\r\n : ActionCreatorWithoutPayload\r\n\r\n/**\r\n * Extracts the CaseReducers out of a `reducers` object, even if they are\r\n * tested into a `CaseReducerWithPrepare`.\r\n *\r\n * @internal\r\n */\r\ntype SliceDefinedCaseReducers> = {\r\n [Type in keyof CaseReducers]: CaseReducers[Type] extends {\r\n reducer: infer Reducer\r\n }\r\n ? Reducer\r\n : CaseReducers[Type]\r\n}\r\n\r\n/**\r\n * Used on a SliceCaseReducers object.\r\n * Ensures that if a CaseReducer is a `CaseReducerWithPrepare`, that\r\n * the `reducer` and the `prepare` function use the same type of `payload`.\r\n *\r\n * Might do additional such checks in the future.\r\n *\r\n * This type is only ever useful if you want to write your own wrapper around\r\n * `createSlice`. Please don't use it otherwise!\r\n *\r\n * @public\r\n */\r\nexport type ValidateSliceCaseReducers<\r\n S,\r\n ACR extends SliceCaseReducers\r\n> = ACR &\r\n {\r\n [T in keyof ACR]: ACR[T] extends {\r\n reducer(s: S, action?: infer A): any\r\n }\r\n ? {\r\n prepare(...a: never[]): Omit\r\n }\r\n : {}\r\n }\r\n\r\nfunction getType(slice: string, actionKey: string): string {\r\n return `${slice}/${actionKey}`\r\n}\r\n\r\n/**\r\n * A function that accepts an initial state, an object full of reducer\r\n * functions, and a \"slice name\", and automatically generates\r\n * action creators and action types that correspond to the\r\n * reducers and state.\r\n *\r\n * The `reducer` argument is passed to `createReducer()`.\r\n *\r\n * @public\r\n */\r\nexport function createSlice<\r\n State,\r\n CaseReducers extends SliceCaseReducers,\r\n Name extends string = string\r\n>(\r\n options: CreateSliceOptions\r\n): Slice {\r\n const { name, initialState } = options\r\n if (!name) {\r\n throw new Error('`name` is a required option for createSlice')\r\n }\r\n const reducers = options.reducers || {}\r\n const [\r\n extraReducers = {},\r\n actionMatchers = [],\r\n defaultCaseReducer = undefined\r\n ] =\r\n typeof options.extraReducers === 'undefined'\r\n ? []\r\n : typeof options.extraReducers === 'function'\r\n ? executeReducerBuilderCallback(options.extraReducers)\r\n : [options.extraReducers]\r\n\r\n const reducerNames = Object.keys(reducers)\r\n\r\n const sliceCaseReducersByName: Record = {}\r\n const sliceCaseReducersByType: Record = {}\r\n const actionCreators: Record = {}\r\n\r\n reducerNames.forEach(reducerName => {\r\n const maybeReducerWithPrepare = reducers[reducerName]\r\n const type = getType(name, reducerName)\r\n\r\n let caseReducer: CaseReducer\r\n let prepareCallback: PrepareAction | undefined\r\n\r\n if ('reducer' in maybeReducerWithPrepare) {\r\n caseReducer = maybeReducerWithPrepare.reducer\r\n prepareCallback = maybeReducerWithPrepare.prepare\r\n } else {\r\n caseReducer = maybeReducerWithPrepare\r\n }\r\n\r\n sliceCaseReducersByName[reducerName] = caseReducer\r\n sliceCaseReducersByType[type] = caseReducer\r\n actionCreators[reducerName] = prepareCallback\r\n ? createAction(type, prepareCallback)\r\n : createAction(type)\r\n })\r\n\r\n const finalCaseReducers = { ...extraReducers, ...sliceCaseReducersByType }\r\n const reducer = createReducer(\r\n initialState,\r\n finalCaseReducers as any,\r\n actionMatchers,\r\n defaultCaseReducer\r\n )\r\n\r\n return {\r\n name,\r\n reducer,\r\n actions: actionCreators as any,\r\n caseReducers: sliceCaseReducersByName as any\r\n }\r\n}\r\n","import createNextState, { Draft, isDraft, isDraftable } from 'immer'\r\nimport { AnyAction, Action, Reducer } from 'redux'\r\nimport {\r\n executeReducerBuilderCallback,\r\n ActionReducerMapBuilder\r\n} from './mapBuilders'\r\nimport { NoInfer } from './tsHelpers'\r\n\r\n/**\r\n * Defines a mapping from action types to corresponding action object shapes.\r\n *\r\n * @deprecated This should not be used manually - it is only used for internal\r\n * inference purposes and should not have any further value.\r\n * It might be removed in the future.\r\n * @public\r\n */\r\nexport type Actions = Record\r\n\r\nexport interface ActionMatcher {\r\n (action: AnyAction): action is A\r\n}\r\n\r\nexport type ActionMatcherDescription = {\r\n matcher: ActionMatcher\r\n reducer: CaseReducer>\r\n}\r\n\r\nexport type ActionMatcherDescriptionCollection = Array<\r\n ActionMatcherDescription\r\n>\r\n\r\n/**\r\n * An *case reducer* is a reducer function for a specific action type. Case\r\n * reducers can be composed to full reducers using `createReducer()`.\r\n *\r\n * Unlike a normal Redux reducer, a case reducer is never called with an\r\n * `undefined` state to determine the initial state. Instead, the initial\r\n * state is explicitly specified as an argument to `createReducer()`.\r\n *\r\n * In addition, a case reducer can choose to mutate the passed-in `state`\r\n * value directly instead of returning a new state. This does not actually\r\n * cause the store state to be mutated directly; instead, thanks to\r\n * [immer](https://github.com/mweststrate/immer), the mutations are\r\n * translated to copy operations that result in a new state.\r\n *\r\n * @public\r\n */\r\nexport type CaseReducer = (\r\n state: Draft,\r\n action: A\r\n) => S | void | Draft\r\n\r\n/**\r\n * A mapping from action types to case reducers for `createReducer()`.\r\n *\r\n * @deprecated This should not be used manually - it is only used\r\n * for internal inference purposes and using it manually\r\n * would lead to type erasure.\r\n * It might be removed in the future.\r\n * @public\r\n */\r\nexport type CaseReducers = {\r\n [T in keyof AS]: AS[T] extends Action ? CaseReducer : void\r\n}\r\n\r\n/**\r\n * A utility function that allows defining a reducer as a mapping from action\r\n * type to *case reducer* functions that handle these action types. The\r\n * reducer's initial state is passed as the first argument.\r\n *\r\n * @remarks\r\n * The body of every case reducer is implicitly wrapped with a call to\r\n * `produce()` from the [immer](https://github.com/mweststrate/immer) library.\r\n * This means that rather than returning a new state object, you can also\r\n * mutate the passed-in state object directly; these mutations will then be\r\n * automatically and efficiently translated into copies, giving you both\r\n * convenience and immutability.\r\n *\r\n * @overloadSummary\r\n * This overload accepts a callback function that receives a `builder` object as its argument.\r\n * That builder provides `addCase`, `addMatcher` and `addDefaultCase` functions that may be\r\n * called to define what actions this reducer will handle.\r\n *\r\n * @param initialState - The initial state that should be used when the reducer is called the first time.\r\n * @param builderCallback - A callback that receives a *builder* object to define\r\n * case reducers via calls to `builder.addCase(actionCreatorOrType, reducer)`.\r\n * @example\r\n```ts\r\nimport {\r\n createAction,\r\n createReducer,\r\n AnyAction,\r\n PayloadAction,\r\n} from \"@reduxjs/toolkit\";\r\n\r\nconst increment = createAction(\"increment\");\r\nconst decrement = createAction(\"decrement\");\r\n\r\nfunction isActionWithNumberPayload(\r\n action: AnyAction\r\n): action is PayloadAction {\r\n return typeof action.payload === \"number\";\r\n}\r\n\r\ncreateReducer(\r\n {\r\n counter: 0,\r\n sumOfNumberPayloads: 0,\r\n unhandledActions: 0,\r\n },\r\n (builder) => {\r\n builder\r\n .addCase(increment, (state, action) => {\r\n // action is inferred correctly here\r\n state.counter += action.payload;\r\n })\r\n // You can chain calls, or have separate `builder.addCase()` lines each time\r\n .addCase(decrement, (state, action) => {\r\n state.counter -= action.payload;\r\n })\r\n // You can apply a \"matcher function\" to incoming actions\r\n .addMatcher(isActionWithNumberPayload, (state, action) => {})\r\n // and provide a default case if no other handlers matched\r\n .addDefaultCase((state, action) => {});\r\n }\r\n);\r\n```\r\n * @public\r\n */\r\nexport function createReducer(\r\n initialState: S,\r\n builderCallback: (builder: ActionReducerMapBuilder) => void\r\n): Reducer\r\n\r\n/**\r\n * A utility function that allows defining a reducer as a mapping from action\r\n * type to *case reducer* functions that handle these action types. The\r\n * reducer's initial state is passed as the first argument.\r\n *\r\n * The body of every case reducer is implicitly wrapped with a call to\r\n * `produce()` from the [immer](https://github.com/mweststrate/immer) library.\r\n * This means that rather than returning a new state object, you can also\r\n * mutate the passed-in state object directly; these mutations will then be\r\n * automatically and efficiently translated into copies, giving you both\r\n * convenience and immutability.\r\n * \r\n * @overloadSummary\r\n * This overload accepts an object where the keys are string action types, and the values\r\n * are case reducer functions to handle those action types.\r\n *\r\n * @param initialState - The initial state that should be used when the reducer is called the first time.\r\n * @param actionsMap - An object mapping from action types to _case reducers_, each of which handles one specific action type.\r\n * @param actionMatchers - An array of matcher definitions in the form `{matcher, reducer}`.\r\n * All matching reducers will be executed in order, independently if a case reducer matched or not.\r\n * @param defaultCaseReducer - A \"default case\" reducer that is executed if no case reducer and no matcher\r\n * reducer was executed for this action.\r\n *\r\n * @example\r\n```js\r\nconst counterReducer = createReducer(0, {\r\n increment: (state, action) => state + action.payload,\r\n decrement: (state, action) => state - action.payload\r\n})\r\n```\r\n \r\n * Action creators that were generated using [`createAction`](./createAction) may be used directly as the keys here, using computed property syntax:\r\n\r\n```js\r\nconst increment = createAction('increment')\r\nconst decrement = createAction('decrement')\r\n\r\nconst counterReducer = createReducer(0, {\r\n [increment]: (state, action) => state + action.payload,\r\n [decrement.type]: (state, action) => state - action.payload\r\n})\r\n```\r\n * @public\r\n */\r\nexport function createReducer<\r\n S,\r\n CR extends CaseReducers = CaseReducers\r\n>(\r\n initialState: S,\r\n actionsMap: CR,\r\n actionMatchers?: ActionMatcherDescriptionCollection,\r\n defaultCaseReducer?: CaseReducer\r\n): Reducer\r\n\r\nexport function createReducer(\r\n initialState: S,\r\n mapOrBuilderCallback:\r\n | CaseReducers\r\n | ((builder: ActionReducerMapBuilder) => void),\r\n actionMatchers: ActionMatcherDescriptionCollection = [],\r\n defaultCaseReducer?: CaseReducer\r\n): Reducer {\r\n let [actionsMap, finalActionMatchers, finalDefaultCaseReducer] =\r\n typeof mapOrBuilderCallback === 'function'\r\n ? executeReducerBuilderCallback(mapOrBuilderCallback)\r\n : [mapOrBuilderCallback, actionMatchers, defaultCaseReducer]\r\n\r\n return function(state = initialState, action): S {\r\n let caseReducers = [\r\n actionsMap[action.type],\r\n ...finalActionMatchers\r\n .filter(({ matcher }) => matcher(action))\r\n .map(({ reducer }) => reducer)\r\n ]\r\n if (caseReducers.filter(cr => !!cr).length === 0) {\r\n caseReducers = [finalDefaultCaseReducer]\r\n }\r\n\r\n return caseReducers.reduce((previousState, caseReducer): S => {\r\n if (caseReducer) {\r\n if (isDraft(previousState)) {\r\n // If it's already a draft, we must already be inside a `createNextState` call,\r\n // likely because this is being wrapped in `createReducer`, `createSlice`, or nested\r\n // inside an existing draft. It's safe to just pass the draft to the mutator.\r\n const draft = previousState as Draft // We can assume this is already a draft\r\n const result = caseReducer(draft, action)\r\n\r\n if (typeof result === 'undefined') {\r\n return previousState\r\n }\r\n\r\n return result as S\r\n } else if (!isDraftable(previousState)) {\r\n // If state is not draftable (ex: a primitive, such as 0), we want to directly\r\n // return the caseReducer func and not wrap it with produce.\r\n const result = caseReducer(previousState as any, action)\r\n\r\n if (typeof result === 'undefined') {\r\n if (previousState === null) {\r\n return previousState\r\n }\r\n throw Error(\r\n 'A case reducer on a non-draftable value must not return undefined'\r\n )\r\n }\r\n\r\n return result as S\r\n } else {\r\n // @ts-ignore createNextState() produces an Immutable> rather\r\n // than an Immutable, and TypeScript cannot find out how to reconcile\r\n // these two types.\r\n return createNextState(previousState, (draft: Draft) => {\r\n return caseReducer(draft, action)\r\n })\r\n }\r\n }\r\n\r\n return previousState\r\n }, state)\r\n }\r\n}\r\n","// A type of promise-like that resolves synchronously and supports only one observer\nexport const _Pact = /*#__PURE__*/(function() {\n\tfunction _Pact() {}\n\t_Pact.prototype.then = function(onFulfilled, onRejected) {\n\t\tconst result = new _Pact();\n\t\tconst state = this.s;\n\t\tif (state) {\n\t\t\tconst callback = state & 1 ? onFulfilled : onRejected;\n\t\t\tif (callback) {\n\t\t\t\ttry {\n\t\t\t\t\t_settle(result, 1, callback(this.v));\n\t\t\t\t} catch (e) {\n\t\t\t\t\t_settle(result, 2, e);\n\t\t\t\t}\n\t\t\t\treturn result;\n\t\t\t} else {\n\t\t\t\treturn this;\n\t\t\t}\n\t\t}\n\t\tthis.o = function(_this) {\n\t\t\ttry {\n\t\t\t\tconst value = _this.v;\n\t\t\t\tif (_this.s & 1) {\n\t\t\t\t\t_settle(result, 1, onFulfilled ? onFulfilled(value) : value);\n\t\t\t\t} else if (onRejected) {\n\t\t\t\t\t_settle(result, 1, onRejected(value));\n\t\t\t\t} else {\n\t\t\t\t\t_settle(result, 2, value);\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\t_settle(result, 2, e);\n\t\t\t}\n\t\t};\n\t\treturn result;\n\t}\n\treturn _Pact;\n})();\n\n// Settles a pact synchronously\nexport function _settle(pact, state, value) {\n\tif (!pact.s) {\n\t\tif (value instanceof _Pact) {\n\t\t\tif (value.s) {\n\t\t\t\tif (state & 1) {\n\t\t\t\t\tstate = value.s;\n\t\t\t\t}\n\t\t\t\tvalue = value.v;\n\t\t\t} else {\n\t\t\t\tvalue.o = _settle.bind(null, pact, state);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (value && value.then) {\n\t\t\tvalue.then(_settle.bind(null, pact, state), _settle.bind(null, pact, 2));\n\t\t\treturn;\n\t\t}\n\t\tpact.s = state;\n\t\tpact.v = value;\n\t\tconst observer = pact.o;\n\t\tif (observer) {\n\t\t\tobserver(pact);\n\t\t}\n\t}\n}\n\nexport function _isSettledPact(thenable) {\n\treturn thenable instanceof _Pact && thenable.s & 1;\n}\n\n// Converts argument to a function that always returns a Promise\nexport function _async(f) {\n\treturn function() {\n\t\tfor (var args = [], i = 0; i < arguments.length; i++) {\n\t\t\targs[i] = arguments[i];\n\t\t}\n\t\ttry {\n\t\t\treturn Promise.resolve(f.apply(this, args));\n\t\t} catch(e) {\n\t\t\treturn Promise.reject(e);\n\t\t}\n\t}\n}\n\n// Awaits on a value that may or may not be a Promise (equivalent to the await keyword in ES2015, with continuations passed explicitly)\nexport function _await(value, then, direct) {\n\tif (direct) {\n\t\treturn then ? then(value) : value;\n\t}\n\tif (!value || !value.then) {\n\t\tvalue = Promise.resolve(value);\n\t}\n\treturn then ? value.then(then) : value;\n}\n\n// Awaits on a value that may or may not be a Promise, then ignores it\nexport function _awaitIgnored(value, direct) {\n\tif (!direct) {\n\t\treturn value && value.then ? value.then(_empty) : Promise.resolve();\n\t}\n}\n\n// Proceeds after a value has resolved, or proceeds immediately if the value is not thenable\nexport function _continue(value, then) {\n\treturn value && value.then ? value.then(then) : then(value);\n}\n\n// Proceeds after a value has resolved, or proceeds immediately if the value is not thenable\nexport function _continueIgnored(value) {\n\tif (value && value.then) {\n\t\treturn value.then(_empty);\n\t}\n}\n\n// Asynchronously iterate through an object that has a length property, passing the index as the first argument to the callback (even as the length property changes)\nexport function _forTo(array, body, check) {\n\tvar i = -1, pact, reject;\n\tfunction _cycle(result) {\n\t\ttry {\n\t\t\twhile (++i < array.length && (!check || !check())) {\n\t\t\t\tresult = body(i);\n\t\t\t\tif (result && result.then) {\n\t\t\t\t\tif (_isSettledPact(result)) {\n\t\t\t\t\t\tresult = result.v;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult.then(_cycle, reject || (reject = _settle.bind(null, pact = new _Pact(), 2)));\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pact) {\n\t\t\t\t_settle(pact, 1, result);\n\t\t\t} else {\n\t\t\t\tpact = result;\n\t\t\t}\n\t\t} catch (e) {\n\t\t\t_settle(pact || (pact = new _Pact()), 2, e);\n\t\t}\n\t}\n\t_cycle();\n\treturn pact;\n}\n\n// Asynchronously iterate through an object's properties (including properties inherited from the prototype)\n// Uses a snapshot of the object's properties\nexport function _forIn(target, body, check) {\n\tvar keys = [];\n\tfor (var key in target) {\n\t\tkeys.push(key);\n\t}\n\treturn _forTo(keys, function(i) { return body(keys[i]); }, check);\n}\n\n// Asynchronously iterate through an object's own properties (excluding properties inherited from the prototype)\n// Uses a snapshot of the object's properties\nexport function _forOwn(target, body, check) {\n\tvar keys = [];\n\tfor (var key in target) {\n\t\tif (Object.prototype.hasOwnProperty.call(target, key)) {\n\t\t\tkeys.push(key);\n\t\t}\n\t}\n\treturn _forTo(keys, function(i) { return body(keys[i]); }, check);\n}\n\nexport const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== \"undefined\" ? (Symbol.iterator || (Symbol.iterator = Symbol(\"Symbol.iterator\"))) : \"@@iterator\";\n\n// Asynchronously iterate through an object's values\n// Uses for...of if the runtime supports it, otherwise iterates until length on a copy\nexport function _forOf(target, body, check) {\n\tif (typeof target[_iteratorSymbol] === \"function\") {\n\t\tvar iterator = target[_iteratorSymbol](), step, pact, reject;\n\t\tfunction _cycle(result) {\n\t\t\ttry {\n\t\t\t\twhile (!(step = iterator.next()).done && (!check || !check())) {\n\t\t\t\t\tresult = body(step.value);\n\t\t\t\t\tif (result && result.then) {\n\t\t\t\t\t\tif (_isSettledPact(result)) {\n\t\t\t\t\t\t\tresult = result.v;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresult.then(_cycle, reject || (reject = _settle.bind(null, pact = new _Pact(), 2)));\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (pact) {\n\t\t\t\t\t_settle(pact, 1, result);\n\t\t\t\t} else {\n\t\t\t\t\tpact = result;\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\t_settle(pact || (pact = new _Pact()), 2, e);\n\t\t\t}\n\t\t}\n\t\t_cycle();\n\t\tif (iterator.return) {\n\t\t\tvar _fixup = function(value) {\n\t\t\t\ttry {\n\t\t\t\t\tif (!step.done) {\n\t\t\t\t\t\titerator.return();\n\t\t\t\t\t}\n\t\t\t\t} catch(e) {\n\t\t\t\t}\n\t\t\t\treturn value;\n\t\t\t}\n\t\t\tif (pact && pact.then) {\n\t\t\t\treturn pact.then(_fixup, function(e) {\n\t\t\t\t\tthrow _fixup(e);\n\t\t\t\t});\n\t\t\t}\n\t\t\t_fixup();\n\t\t}\n\t\treturn pact;\n\t}\n\t// No support for Symbol.iterator\n\tif (!(\"length\" in target)) {\n\t\tthrow new TypeError(\"Object is not iterable\");\n\t}\n\t// Handle live collections properly\n\tvar values = [];\n\tfor (var i = 0; i < target.length; i++) {\n\t\tvalues.push(target[i]);\n\t}\n\treturn _forTo(values, function(i) { return body(values[i]); }, check);\n}\n\nexport const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== \"undefined\" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol(\"Symbol.asyncIterator\"))) : \"@@asyncIterator\";\n\n// Asynchronously iterate on a value using it's async iterator if present, or its synchronous iterator if missing\nexport function _forAwaitOf(target, body, check) {\n\tif (typeof target[_asyncIteratorSymbol] === \"function\") {\n\t\tvar pact = new _Pact();\n\t\tvar iterator = target[_asyncIteratorSymbol]();\n\t\titerator.next().then(_resumeAfterNext).then(void 0, _reject);\n\t\treturn pact;\n\t\tfunction _resumeAfterBody(result) {\n\t\t\tif (check && check()) {\n\t\t\t\treturn _settle(pact, 1, iterator.return ? iterator.return().then(function() { return result; }) : result);\n\t\t\t}\n\t\t\titerator.next().then(_resumeAfterNext).then(void 0, _reject);\n\t\t}\n\t\tfunction _resumeAfterNext(step) {\n\t\t\tif (step.done) {\n\t\t\t\t_settle(pact, 1);\n\t\t\t} else {\n\t\t\t\tPromise.resolve(body(step.value)).then(_resumeAfterBody).then(void 0, _reject);\n\t\t\t}\n\t\t}\n\t\tfunction _reject(error) {\n\t\t\t_settle(pact, 2, iterator.return ? iterator.return().then(function() { return error; }) : error);\n\t\t}\n\t}\n\treturn Promise.resolve(_forOf(target, function(value) { return Promise.resolve(value).then(body); }, check));\n}\n\n// Asynchronously implement a generic for loop\nexport function _for(test, update, body) {\n\tvar stage;\n\tfor (;;) {\n\t\tvar shouldContinue = test();\n\t\tif (_isSettledPact(shouldContinue)) {\n\t\t\tshouldContinue = shouldContinue.v;\n\t\t}\n\t\tif (!shouldContinue) {\n\t\t\treturn result;\n\t\t}\n\t\tif (shouldContinue.then) {\n\t\t\tstage = 0;\n\t\t\tbreak;\n\t\t}\n\t\tvar result = body();\n\t\tif (result && result.then) {\n\t\t\tif (_isSettledPact(result)) {\n\t\t\t\tresult = result.s;\n\t\t\t} else {\n\t\t\t\tstage = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (update) {\n\t\t\tvar updateValue = update();\n\t\t\tif (updateValue && updateValue.then && !_isSettledPact(updateValue)) {\n\t\t\t\tstage = 2;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tvar pact = new _Pact();\n\tvar reject = _settle.bind(null, pact, 2);\n\t(stage === 0 ? shouldContinue.then(_resumeAfterTest) : stage === 1 ? result.then(_resumeAfterBody) : updateValue.then(_resumeAfterUpdate)).then(void 0, reject);\n\treturn pact;\n\tfunction _resumeAfterBody(value) {\n\t\tresult = value;\n\t\tdo {\n\t\t\tif (update) {\n\t\t\t\tupdateValue = update();\n\t\t\t\tif (updateValue && updateValue.then && !_isSettledPact(updateValue)) {\n\t\t\t\t\tupdateValue.then(_resumeAfterUpdate).then(void 0, reject);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tshouldContinue = test();\n\t\t\tif (!shouldContinue || (_isSettledPact(shouldContinue) && !shouldContinue.v)) {\n\t\t\t\t_settle(pact, 1, result);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (shouldContinue.then) {\n\t\t\t\tshouldContinue.then(_resumeAfterTest).then(void 0, reject);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tresult = body();\n\t\t\tif (_isSettledPact(result)) {\n\t\t\t\tresult = result.v;\n\t\t\t}\n\t\t} while (!result || !result.then);\n\t\tresult.then(_resumeAfterBody).then(void 0, reject);\n\t}\n\tfunction _resumeAfterTest(shouldContinue) {\n\t\tif (shouldContinue) {\n\t\t\tresult = body();\n\t\t\tif (result && result.then) {\n\t\t\t\tresult.then(_resumeAfterBody).then(void 0, reject);\n\t\t\t} else {\n\t\t\t\t_resumeAfterBody(result);\n\t\t\t}\n\t\t} else {\n\t\t\t_settle(pact, 1, result);\n\t\t}\n\t}\n\tfunction _resumeAfterUpdate() {\n\t\tif (shouldContinue = test()) {\n\t\t\tif (shouldContinue.then) {\n\t\t\t\tshouldContinue.then(_resumeAfterTest).then(void 0, reject);\n\t\t\t} else {\n\t\t\t\t_resumeAfterTest(shouldContinue);\n\t\t\t}\n\t\t} else {\n\t\t\t_settle(pact, 1, result);\n\t\t}\n\t}\n}\n\n// Asynchronously implement a do ... while loop\nexport function _do(body, test) {\n\tvar awaitBody;\n\tdo {\n\t\tvar result = body();\n\t\tif (result && result.then) {\n\t\t\tif (_isSettledPact(result)) {\n\t\t\t\tresult = result.v;\n\t\t\t} else {\n\t\t\t\tawaitBody = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tvar shouldContinue = test();\n\t\tif (_isSettledPact(shouldContinue)) {\n\t\t\tshouldContinue = shouldContinue.v;\n\t\t}\n\t\tif (!shouldContinue) {\n\t\t\treturn result;\n\t\t}\n\t} while (!shouldContinue.then);\n\tconst pact = new _Pact();\n\tconst reject = _settle.bind(null, pact, 2);\n\t(awaitBody ? result.then(_resumeAfterBody) : shouldContinue.then(_resumeAfterTest)).then(void 0, reject);\n\treturn pact;\n\tfunction _resumeAfterBody(value) {\n\t\tresult = value;\n\t\tfor (;;) {\n\t\t\tshouldContinue = test();\n\t\t\tif (_isSettledPact(shouldContinue)) {\n\t\t\t\tshouldContinue = shouldContinue.v;\n\t\t\t}\n\t\t\tif (!shouldContinue) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (shouldContinue.then) {\n\t\t\t\tshouldContinue.then(_resumeAfterTest).then(void 0, reject);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tresult = body();\n\t\t\tif (result && result.then) {\n\t\t\t\tif (_isSettledPact(result)) {\n\t\t\t\t\tresult = result.v;\n\t\t\t\t} else {\n\t\t\t\t\tresult.then(_resumeAfterBody).then(void 0, reject);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t_settle(pact, 1, result);\n\t}\n\tfunction _resumeAfterTest(shouldContinue) {\n\t\tif (shouldContinue) {\n\t\t\tdo {\n\t\t\t\tresult = body();\n\t\t\t\tif (result && result.then) {\n\t\t\t\t\tif (_isSettledPact(result)) {\n\t\t\t\t\t\tresult = result.v;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult.then(_resumeAfterBody).then(void 0, reject);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tshouldContinue = test();\n\t\t\t\tif (_isSettledPact(shouldContinue)) {\n\t\t\t\t\tshouldContinue = shouldContinue.v;\n\t\t\t\t}\n\t\t\t\tif (!shouldContinue) {\n\t\t\t\t\t_settle(pact, 1, result);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} while (!shouldContinue.then);\n\t\t\tshouldContinue.then(_resumeAfterTest).then(void 0, reject);\n\t\t} else {\n\t\t\t_settle(pact, 1, result);\n\t\t}\n\t}\n}\n\n// Asynchronously implement a switch statement\nexport function _switch(discriminant, cases) {\n\tvar dispatchIndex = -1;\n\tvar awaitBody;\n\touter: {\n\t\tfor (var i = 0; i < cases.length; i++) {\n\t\t\tvar test = cases[i][0];\n\t\t\tif (test) {\n\t\t\t\tvar testValue = test();\n\t\t\t\tif (testValue && testValue.then) {\n\t\t\t\t\tbreak outer;\n\t\t\t\t}\n\t\t\t\tif (testValue === discriminant) {\n\t\t\t\t\tdispatchIndex = i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Found the default case, set it as the pending dispatch case\n\t\t\t\tdispatchIndex = i;\n\t\t\t}\n\t\t}\n\t\tif (dispatchIndex !== -1) {\n\t\t\tdo {\n\t\t\t\tvar body = cases[dispatchIndex][1];\n\t\t\t\twhile (!body) {\n\t\t\t\t\tdispatchIndex++;\n\t\t\t\t\tbody = cases[dispatchIndex][1];\n\t\t\t\t}\n\t\t\t\tvar result = body();\n\t\t\t\tif (result && result.then) {\n\t\t\t\t\tawaitBody = true;\n\t\t\t\t\tbreak outer;\n\t\t\t\t}\n\t\t\t\tvar fallthroughCheck = cases[dispatchIndex][2];\n\t\t\t\tdispatchIndex++;\n\t\t\t} while (fallthroughCheck && !fallthroughCheck());\n\t\t\treturn result;\n\t\t}\n\t}\n\tconst pact = new _Pact();\n\tconst reject = _settle.bind(null, pact, 2);\n\t(awaitBody ? result.then(_resumeAfterBody) : testValue.then(_resumeAfterTest)).then(void 0, reject);\n\treturn pact;\n\tfunction _resumeAfterTest(value) {\n\t\tfor (;;) {\n\t\t\tif (value === discriminant) {\n\t\t\t\tdispatchIndex = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (++i === cases.length) {\n\t\t\t\tif (dispatchIndex !== -1) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\t_settle(pact, 1, result);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttest = cases[i][0];\n\t\t\tif (test) {\n\t\t\t\tvalue = test();\n\t\t\t\tif (value && value.then) {\n\t\t\t\t\tvalue.then(_resumeAfterTest).then(void 0, reject);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tdispatchIndex = i;\n\t\t\t}\n\t\t}\n\t\tdo {\n\t\t\tvar body = cases[dispatchIndex][1];\n\t\t\twhile (!body) {\n\t\t\t\tdispatchIndex++;\n\t\t\t\tbody = cases[dispatchIndex][1];\n\t\t\t}\n\t\t\tvar result = body();\n\t\t\tif (result && result.then) {\n\t\t\t\tresult.then(_resumeAfterBody).then(void 0, reject);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar fallthroughCheck = cases[dispatchIndex][2];\n\t\t\tdispatchIndex++;\n\t\t} while (fallthroughCheck && !fallthroughCheck());\n\t\t_settle(pact, 1, result);\n\t}\n\tfunction _resumeAfterBody(result) {\n\t\tfor (;;) {\n\t\t\tvar fallthroughCheck = cases[dispatchIndex][2];\n\t\t\tif (!fallthroughCheck || fallthroughCheck()) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdispatchIndex++;\n\t\t\tvar body = cases[dispatchIndex][1];\n\t\t\twhile (!body) {\n\t\t\t\tdispatchIndex++;\n\t\t\t\tbody = cases[dispatchIndex][1];\n\t\t\t}\n\t\t\tresult = body();\n\t\t\tif (result && result.then) {\n\t\t\t\tresult.then(_resumeAfterBody).then(void 0, reject);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t_settle(pact, 1, result);\n\t}\n}\n\n// Asynchronously call a function and pass the result to explicitly passed continuations\nexport function _call(body, then, direct) {\n\tif (direct) {\n\t\treturn then ? then(body()) : body();\n\t}\n\ttry {\n\t\tvar result = Promise.resolve(body());\n\t\treturn then ? result.then(then) : result;\n\t} catch (e) {\n\t\treturn Promise.reject(e);\n\t}\n}\n\n// Asynchronously call a function and swallow the result\nexport function _callIgnored(body, direct) {\n\treturn _call(body, _empty, direct);\n}\n\n// Asynchronously call a function and pass the result to explicitly passed continuations\nexport function _invoke(body, then) {\n\tvar result = body();\n\tif (result && result.then) {\n\t\treturn result.then(then);\n\t}\n\treturn then(result);\n}\n\n// Asynchronously call a function and swallow the result\nexport function _invokeIgnored(body) {\n\tvar result = body();\n\tif (result && result.then) {\n\t\treturn result.then(_empty);\n\t}\n}\n\n// Asynchronously call a function and send errors to recovery continuation\nexport function _catch(body, recover) {\n\ttry {\n\t\tvar result = body();\n\t} catch(e) {\n\t\treturn recover(e);\n\t}\n\tif (result && result.then) {\n\t\treturn result.then(void 0, recover);\n\t}\n\treturn result;\n}\n\n// Asynchronously await a promise and pass the result to a finally continuation\nexport function _finallyRethrows(body, finalizer) {\n\ttry {\n\t\tvar result = body();\n\t} catch (e) {\n\t\treturn finalizer(true, e);\n\t}\n\tif (result && result.then) {\n\t\treturn result.then(finalizer.bind(null, false), finalizer.bind(null, true));\n\t}\n\treturn finalizer(false, result);\n}\n\n// Asynchronously await a promise and invoke a finally continuation that always overrides the result\nexport function _finally(body, finalizer) {\n\ttry {\n\t\tvar result = body();\n\t} catch (e) {\n\t\treturn finalizer();\n\t}\n\tif (result && result.then) {\n\t\treturn result.then(finalizer, finalizer);\n\t}\n\treturn finalizer();\n}\n\n// Rethrow or return a value from a finally continuation\nexport function _rethrow(thrown, value) {\n\tif (thrown)\n\t\tthrow value;\n\treturn value;\n}\n\n// Empty function to implement break and other control flow that ignores asynchronous results\nexport function _empty() {\n}\n\n// Sentinel value for early returns in generators \nexport const _earlyReturn = /*#__PURE__*/ {};\n\n// Asynchronously call a function and send errors to recovery continuation, skipping early returns\nexport function _catchInGenerator(body, recover) {\n\treturn _catch(body, function(e) {\n\t\tif (e === _earlyReturn) {\n\t\t\tthrow e;\n\t\t}\n\t\treturn recover(e);\n\t});\n}\n\n// Asynchronous generator class; accepts the entrypoint of the generator, to which it passes itself when the generator should start\nexport const _AsyncGenerator = /*#__PURE__*/(function() {\n\tfunction _AsyncGenerator(entry) {\n\t\tthis._entry = entry;\n\t\tthis._pact = null;\n\t\tthis._resolve = null;\n\t\tthis._return = null;\n\t\tthis._promise = null;\n\t}\n\n\tfunction _wrapReturnedValue(value) {\n\t\treturn { value: value, done: true };\n\t}\n\tfunction _wrapYieldedValue(value) {\n\t\treturn { value: value, done: false };\n\t}\n\n\t_AsyncGenerator.prototype._yield = function(value) {\n\t\t// Yield the value to the pending next call\n\t\tthis._resolve(value && value.then ? value.then(_wrapYieldedValue) : _wrapYieldedValue(value));\n\t\t// Return a pact for an upcoming next/return/throw call\n\t\treturn this._pact = new _Pact();\n\t};\n\t_AsyncGenerator.prototype.next = function(value) {\n\t\t// Advance the generator, starting it if it has yet to be started\n\t\tconst _this = this;\n\t\treturn _this._promise = new Promise(function (resolve) {\n\t\t\tconst _pact = _this._pact;\n\t\t\tif (_pact === null) {\n\t\t\t\tconst _entry = _this._entry;\n\t\t\t\tif (_entry === null) {\n\t\t\t\t\t// Generator is started, but not awaiting a yield expression\n\t\t\t\t\t// Abandon the next call!\n\t\t\t\t\treturn resolve(_this._promise);\n\t\t\t\t}\n\t\t\t\t// Start the generator\n\t\t\t\t_this._entry = null;\n\t\t\t\t_this._resolve = resolve;\n\t\t\t\tfunction returnValue(value) {\n\t\t\t\t\t_this._resolve(value && value.then ? value.then(_wrapReturnedValue) : _wrapReturnedValue(value));\n\t\t\t\t\t_this._pact = null;\n\t\t\t\t\t_this._resolve = null;\n\t\t\t\t}\n\t\t\t\tvar result = _entry(_this);\n\t\t\t\tif (result && result.then) {\n\t\t\t\t\tresult.then(returnValue, function(error) {\n\t\t\t\t\t\tif (error === _earlyReturn) {\n\t\t\t\t\t\t\treturnValue(_this._return);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tconst pact = new _Pact();\n\t\t\t\t\t\t\t_this._resolve(pact);\n\t\t\t\t\t\t\t_this._pact = null;\n\t\t\t\t\t\t\t_this._resolve = null;\n\t\t\t\t\t\t\t_resolve(pact, 2, error);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\treturnValue(result);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Generator is started and a yield expression is pending, settle it\n\t\t\t\t_this._pact = null;\n\t\t\t\t_this._resolve = resolve;\n\t\t\t\t_settle(_pact, 1, value);\n\t\t\t}\n\t\t});\n\t};\n\t_AsyncGenerator.prototype.return = function(value) {\n\t\t// Early return from the generator if started, otherwise abandons the generator\n\t\tconst _this = this;\n\t\treturn _this._promise = new Promise(function (resolve) {\n\t\t\tconst _pact = _this._pact;\n\t\t\tif (_pact === null) {\n\t\t\t\tif (_this._entry === null) {\n\t\t\t\t\t// Generator is started, but not awaiting a yield expression\n\t\t\t\t\t// Abandon the return call!\n\t\t\t\t\treturn resolve(_this._promise);\n\t\t\t\t}\n\t\t\t\t// Generator is not started, abandon it and return the specified value\n\t\t\t\t_this._entry = null;\n\t\t\t\treturn resolve(value && value.then ? value.then(_wrapReturnedValue) : _wrapReturnedValue(value));\n\t\t\t}\n\t\t\t// Settle the yield expression with a rejected \"early return\" value\n\t\t\t_this._return = value;\n\t\t\t_this._resolve = resolve;\n\t\t\t_this._pact = null;\n\t\t\t_settle(_pact, 2, _earlyReturn);\n\t\t});\n\t};\n\t_AsyncGenerator.prototype.throw = function(error) {\n\t\t// Inject an exception into the pending yield expression\n\t\tconst _this = this;\n\t\treturn _this._promise = new Promise(function (resolve, reject) {\n\t\t\tconst _pact = _this._pact;\n\t\t\tif (_pact === null) {\n\t\t\t\tif (_this._entry === null) {\n\t\t\t\t\t// Generator is started, but not awaiting a yield expression\n\t\t\t\t\t// Abandon the throw call!\n\t\t\t\t\treturn resolve(_this._promise);\n\t\t\t\t}\n\t\t\t\t// Generator is not started, abandon it and return a rejected Promise containing the error\n\t\t\t\t_this._entry = null;\n\t\t\t\treturn reject(error);\n\t\t\t}\n\t\t\t// Settle the yield expression with the value as a rejection\n\t\t\t_this._resolve = resolve;\n\t\t\t_this._pact = null;\n\t\t\t_settle(_pact, 2, error);\n\t\t});\n\t};\n\n\t_AsyncGenerator.prototype[_asyncIteratorSymbol] = function() {\n\t\treturn this;\n\t};\n\t\n\treturn _AsyncGenerator;\n})();\n","(function (module, exports) {\n 'use strict';\n\n // Utils\n function assert (val, msg) {\n if (!val) throw new Error(msg || 'Assertion failed');\n }\n\n // Could use `inherits` module, but don't want to move from single file\n // architecture yet.\n function inherits (ctor, superCtor) {\n ctor.super_ = superCtor;\n var TempCtor = function () {};\n TempCtor.prototype = superCtor.prototype;\n ctor.prototype = new TempCtor();\n ctor.prototype.constructor = ctor;\n }\n\n // BN\n\n function BN (number, base, endian) {\n if (BN.isBN(number)) {\n return number;\n }\n\n this.negative = 0;\n this.words = null;\n this.length = 0;\n\n // Reduction context\n this.red = null;\n\n if (number !== null) {\n if (base === 'le' || base === 'be') {\n endian = base;\n base = 10;\n }\n\n this._init(number || 0, base || 10, endian || 'be');\n }\n }\n if (typeof module === 'object') {\n module.exports = BN;\n } else {\n exports.BN = BN;\n }\n\n BN.BN = BN;\n BN.wordSize = 26;\n\n var Buffer;\n try {\n Buffer = require('buffer').Buffer;\n } catch (e) {\n }\n\n BN.isBN = function isBN (num) {\n if (num instanceof BN) {\n return true;\n }\n\n return num !== null && typeof num === 'object' &&\n num.constructor.wordSize === BN.wordSize && Array.isArray(num.words);\n };\n\n BN.max = function max (left, right) {\n if (left.cmp(right) > 0) return left;\n return right;\n };\n\n BN.min = function min (left, right) {\n if (left.cmp(right) < 0) return left;\n return right;\n };\n\n BN.prototype._init = function init (number, base, endian) {\n if (typeof number === 'number') {\n return this._initNumber(number, base, endian);\n }\n\n if (typeof number === 'object') {\n return this._initArray(number, base, endian);\n }\n\n if (base === 'hex') {\n base = 16;\n }\n assert(base === (base | 0) && base >= 2 && base <= 36);\n\n number = number.toString().replace(/\\s+/g, '');\n var start = 0;\n if (number[0] === '-') {\n start++;\n }\n\n if (base === 16) {\n this._parseHex(number, start);\n } else {\n this._parseBase(number, base, start);\n }\n\n if (number[0] === '-') {\n this.negative = 1;\n }\n\n this.strip();\n\n if (endian !== 'le') return;\n\n this._initArray(this.toArray(), base, endian);\n };\n\n BN.prototype._initNumber = function _initNumber (number, base, endian) {\n if (number < 0) {\n this.negative = 1;\n number = -number;\n }\n if (number < 0x4000000) {\n this.words = [ number & 0x3ffffff ];\n this.length = 1;\n } else if (number < 0x10000000000000) {\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff\n ];\n this.length = 2;\n } else {\n assert(number < 0x20000000000000); // 2 ^ 53 (unsafe)\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff,\n 1\n ];\n this.length = 3;\n }\n\n if (endian !== 'le') return;\n\n // Reverse the bytes\n this._initArray(this.toArray(), base, endian);\n };\n\n BN.prototype._initArray = function _initArray (number, base, endian) {\n // Perhaps a Uint8Array\n assert(typeof number.length === 'number');\n if (number.length <= 0) {\n this.words = [ 0 ];\n this.length = 1;\n return this;\n }\n\n this.length = Math.ceil(number.length / 3);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n var j, w;\n var off = 0;\n if (endian === 'be') {\n for (i = number.length - 1, j = 0; i >= 0; i -= 3) {\n w = number[i] | (number[i - 1] << 8) | (number[i - 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n } else if (endian === 'le') {\n for (i = 0, j = 0; i < number.length; i += 3) {\n w = number[i] | (number[i + 1] << 8) | (number[i + 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n }\n return this.strip();\n };\n\n function parseHex (str, start, end) {\n var r = 0;\n var len = Math.min(str.length, end);\n for (var i = start; i < len; i++) {\n var c = str.charCodeAt(i) - 48;\n\n r <<= 4;\n\n // 'a' - 'f'\n if (c >= 49 && c <= 54) {\n r |= c - 49 + 0xa;\n\n // 'A' - 'F'\n } else if (c >= 17 && c <= 22) {\n r |= c - 17 + 0xa;\n\n // '0' - '9'\n } else {\n r |= c & 0xf;\n }\n }\n return r;\n }\n\n BN.prototype._parseHex = function _parseHex (number, start) {\n // Create possibly bigger array to ensure that it fits the number\n this.length = Math.ceil((number.length - start) / 6);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n var j, w;\n // Scan 24-bit chunks and add them to the number\n var off = 0;\n for (i = number.length - 6, j = 0; i >= start; i -= 6) {\n w = parseHex(number, i, i + 6);\n this.words[j] |= (w << off) & 0x3ffffff;\n // NOTE: `0x3fffff` is intentional here, 26bits max shift + 24bit hex limb\n this.words[j + 1] |= w >>> (26 - off) & 0x3fffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n if (i + 6 !== start) {\n w = parseHex(number, start, i + 6);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] |= w >>> (26 - off) & 0x3fffff;\n }\n this.strip();\n };\n\n function parseBase (str, start, end, mul) {\n var r = 0;\n var len = Math.min(str.length, end);\n for (var i = start; i < len; i++) {\n var c = str.charCodeAt(i) - 48;\n\n r *= mul;\n\n // 'a'\n if (c >= 49) {\n r += c - 49 + 0xa;\n\n // 'A'\n } else if (c >= 17) {\n r += c - 17 + 0xa;\n\n // '0' - '9'\n } else {\n r += c;\n }\n }\n return r;\n }\n\n BN.prototype._parseBase = function _parseBase (number, base, start) {\n // Initialize as zero\n this.words = [ 0 ];\n this.length = 1;\n\n // Find length of limb in base\n for (var limbLen = 0, limbPow = 1; limbPow <= 0x3ffffff; limbPow *= base) {\n limbLen++;\n }\n limbLen--;\n limbPow = (limbPow / base) | 0;\n\n var total = number.length - start;\n var mod = total % limbLen;\n var end = Math.min(total, total - mod) + start;\n\n var word = 0;\n for (var i = start; i < end; i += limbLen) {\n word = parseBase(number, i, i + limbLen, base);\n\n this.imuln(limbPow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n if (mod !== 0) {\n var pow = 1;\n word = parseBase(number, i, number.length, base);\n\n for (i = 0; i < mod; i++) {\n pow *= base;\n }\n\n this.imuln(pow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n };\n\n BN.prototype.copy = function copy (dest) {\n dest.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n dest.words[i] = this.words[i];\n }\n dest.length = this.length;\n dest.negative = this.negative;\n dest.red = this.red;\n };\n\n BN.prototype.clone = function clone () {\n var r = new BN(null);\n this.copy(r);\n return r;\n };\n\n BN.prototype._expand = function _expand (size) {\n while (this.length < size) {\n this.words[this.length++] = 0;\n }\n return this;\n };\n\n // Remove leading `0` from `this`\n BN.prototype.strip = function strip () {\n while (this.length > 1 && this.words[this.length - 1] === 0) {\n this.length--;\n }\n return this._normSign();\n };\n\n BN.prototype._normSign = function _normSign () {\n // -0 = 0\n if (this.length === 1 && this.words[0] === 0) {\n this.negative = 0;\n }\n return this;\n };\n\n BN.prototype.inspect = function inspect () {\n return (this.red ? '';\n };\n\n /*\n\n var zeros = [];\n var groupSizes = [];\n var groupBases = [];\n\n var s = '';\n var i = -1;\n while (++i < BN.wordSize) {\n zeros[i] = s;\n s += '0';\n }\n groupSizes[0] = 0;\n groupSizes[1] = 0;\n groupBases[0] = 0;\n groupBases[1] = 0;\n var base = 2 - 1;\n while (++base < 36 + 1) {\n var groupSize = 0;\n var groupBase = 1;\n while (groupBase < (1 << BN.wordSize) / base) {\n groupBase *= base;\n groupSize += 1;\n }\n groupSizes[base] = groupSize;\n groupBases[base] = groupBase;\n }\n\n */\n\n var zeros = [\n '',\n '0',\n '00',\n '000',\n '0000',\n '00000',\n '000000',\n '0000000',\n '00000000',\n '000000000',\n '0000000000',\n '00000000000',\n '000000000000',\n '0000000000000',\n '00000000000000',\n '000000000000000',\n '0000000000000000',\n '00000000000000000',\n '000000000000000000',\n '0000000000000000000',\n '00000000000000000000',\n '000000000000000000000',\n '0000000000000000000000',\n '00000000000000000000000',\n '000000000000000000000000',\n '0000000000000000000000000'\n ];\n\n var groupSizes = [\n 0, 0,\n 25, 16, 12, 11, 10, 9, 8,\n 8, 7, 7, 7, 7, 6, 6,\n 6, 6, 6, 6, 6, 5, 5,\n 5, 5, 5, 5, 5, 5, 5,\n 5, 5, 5, 5, 5, 5, 5\n ];\n\n var groupBases = [\n 0, 0,\n 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216,\n 43046721, 10000000, 19487171, 35831808, 62748517, 7529536, 11390625,\n 16777216, 24137569, 34012224, 47045881, 64000000, 4084101, 5153632,\n 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149,\n 24300000, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176\n ];\n\n BN.prototype.toString = function toString (base, padding) {\n base = base || 10;\n padding = padding | 0 || 1;\n\n var out;\n if (base === 16 || base === 'hex') {\n out = '';\n var off = 0;\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = this.words[i];\n var word = (((w << off) | carry) & 0xffffff).toString(16);\n carry = (w >>> (24 - off)) & 0xffffff;\n if (carry !== 0 || i !== this.length - 1) {\n out = zeros[6 - word.length] + word + out;\n } else {\n out = word + out;\n }\n off += 2;\n if (off >= 26) {\n off -= 26;\n i--;\n }\n }\n if (carry !== 0) {\n out = carry.toString(16) + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n if (base === (base | 0) && base >= 2 && base <= 36) {\n // var groupSize = Math.floor(BN.wordSize * Math.LN2 / Math.log(base));\n var groupSize = groupSizes[base];\n // var groupBase = Math.pow(base, groupSize);\n var groupBase = groupBases[base];\n out = '';\n var c = this.clone();\n c.negative = 0;\n while (!c.isZero()) {\n var r = c.modn(groupBase).toString(base);\n c = c.idivn(groupBase);\n\n if (!c.isZero()) {\n out = zeros[groupSize - r.length] + r + out;\n } else {\n out = r + out;\n }\n }\n if (this.isZero()) {\n out = '0' + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n assert(false, 'Base should be between 2 and 36');\n };\n\n BN.prototype.toNumber = function toNumber () {\n var ret = this.words[0];\n if (this.length === 2) {\n ret += this.words[1] * 0x4000000;\n } else if (this.length === 3 && this.words[2] === 0x01) {\n // NOTE: at this stage it is known that the top bit is set\n ret += 0x10000000000000 + (this.words[1] * 0x4000000);\n } else if (this.length > 2) {\n assert(false, 'Number can only safely store up to 53 bits');\n }\n return (this.negative !== 0) ? -ret : ret;\n };\n\n BN.prototype.toJSON = function toJSON () {\n return this.toString(16);\n };\n\n BN.prototype.toBuffer = function toBuffer (endian, length) {\n assert(typeof Buffer !== 'undefined');\n return this.toArrayLike(Buffer, endian, length);\n };\n\n BN.prototype.toArray = function toArray (endian, length) {\n return this.toArrayLike(Array, endian, length);\n };\n\n BN.prototype.toArrayLike = function toArrayLike (ArrayType, endian, length) {\n var byteLength = this.byteLength();\n var reqLength = length || Math.max(1, byteLength);\n assert(byteLength <= reqLength, 'byte array longer than desired length');\n assert(reqLength > 0, 'Requested array length <= 0');\n\n this.strip();\n var littleEndian = endian === 'le';\n var res = new ArrayType(reqLength);\n\n var b, i;\n var q = this.clone();\n if (!littleEndian) {\n // Assume big-endian\n for (i = 0; i < reqLength - byteLength; i++) {\n res[i] = 0;\n }\n\n for (i = 0; !q.isZero(); i++) {\n b = q.andln(0xff);\n q.iushrn(8);\n\n res[reqLength - i - 1] = b;\n }\n } else {\n for (i = 0; !q.isZero(); i++) {\n b = q.andln(0xff);\n q.iushrn(8);\n\n res[i] = b;\n }\n\n for (; i < reqLength; i++) {\n res[i] = 0;\n }\n }\n\n return res;\n };\n\n if (Math.clz32) {\n BN.prototype._countBits = function _countBits (w) {\n return 32 - Math.clz32(w);\n };\n } else {\n BN.prototype._countBits = function _countBits (w) {\n var t = w;\n var r = 0;\n if (t >= 0x1000) {\n r += 13;\n t >>>= 13;\n }\n if (t >= 0x40) {\n r += 7;\n t >>>= 7;\n }\n if (t >= 0x8) {\n r += 4;\n t >>>= 4;\n }\n if (t >= 0x02) {\n r += 2;\n t >>>= 2;\n }\n return r + t;\n };\n }\n\n BN.prototype._zeroBits = function _zeroBits (w) {\n // Short-cut\n if (w === 0) return 26;\n\n var t = w;\n var r = 0;\n if ((t & 0x1fff) === 0) {\n r += 13;\n t >>>= 13;\n }\n if ((t & 0x7f) === 0) {\n r += 7;\n t >>>= 7;\n }\n if ((t & 0xf) === 0) {\n r += 4;\n t >>>= 4;\n }\n if ((t & 0x3) === 0) {\n r += 2;\n t >>>= 2;\n }\n if ((t & 0x1) === 0) {\n r++;\n }\n return r;\n };\n\n // Return number of used bits in a BN\n BN.prototype.bitLength = function bitLength () {\n var w = this.words[this.length - 1];\n var hi = this._countBits(w);\n return (this.length - 1) * 26 + hi;\n };\n\n function toBitArray (num) {\n var w = new Array(num.bitLength());\n\n for (var bit = 0; bit < w.length; bit++) {\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n w[bit] = (num.words[off] & (1 << wbit)) >>> wbit;\n }\n\n return w;\n }\n\n // Number of trailing zero bits\n BN.prototype.zeroBits = function zeroBits () {\n if (this.isZero()) return 0;\n\n var r = 0;\n for (var i = 0; i < this.length; i++) {\n var b = this._zeroBits(this.words[i]);\n r += b;\n if (b !== 26) break;\n }\n return r;\n };\n\n BN.prototype.byteLength = function byteLength () {\n return Math.ceil(this.bitLength() / 8);\n };\n\n BN.prototype.toTwos = function toTwos (width) {\n if (this.negative !== 0) {\n return this.abs().inotn(width).iaddn(1);\n }\n return this.clone();\n };\n\n BN.prototype.fromTwos = function fromTwos (width) {\n if (this.testn(width - 1)) {\n return this.notn(width).iaddn(1).ineg();\n }\n return this.clone();\n };\n\n BN.prototype.isNeg = function isNeg () {\n return this.negative !== 0;\n };\n\n // Return negative clone of `this`\n BN.prototype.neg = function neg () {\n return this.clone().ineg();\n };\n\n BN.prototype.ineg = function ineg () {\n if (!this.isZero()) {\n this.negative ^= 1;\n }\n\n return this;\n };\n\n // Or `num` with `this` in-place\n BN.prototype.iuor = function iuor (num) {\n while (this.length < num.length) {\n this.words[this.length++] = 0;\n }\n\n for (var i = 0; i < num.length; i++) {\n this.words[i] = this.words[i] | num.words[i];\n }\n\n return this.strip();\n };\n\n BN.prototype.ior = function ior (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuor(num);\n };\n\n // Or `num` with `this`\n BN.prototype.or = function or (num) {\n if (this.length > num.length) return this.clone().ior(num);\n return num.clone().ior(this);\n };\n\n BN.prototype.uor = function uor (num) {\n if (this.length > num.length) return this.clone().iuor(num);\n return num.clone().iuor(this);\n };\n\n // And `num` with `this` in-place\n BN.prototype.iuand = function iuand (num) {\n // b = min-length(num, this)\n var b;\n if (this.length > num.length) {\n b = num;\n } else {\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = this.words[i] & num.words[i];\n }\n\n this.length = b.length;\n\n return this.strip();\n };\n\n BN.prototype.iand = function iand (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuand(num);\n };\n\n // And `num` with `this`\n BN.prototype.and = function and (num) {\n if (this.length > num.length) return this.clone().iand(num);\n return num.clone().iand(this);\n };\n\n BN.prototype.uand = function uand (num) {\n if (this.length > num.length) return this.clone().iuand(num);\n return num.clone().iuand(this);\n };\n\n // Xor `num` with `this` in-place\n BN.prototype.iuxor = function iuxor (num) {\n // a.length > b.length\n var a;\n var b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = a.words[i] ^ b.words[i];\n }\n\n if (this !== a) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = a.length;\n\n return this.strip();\n };\n\n BN.prototype.ixor = function ixor (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuxor(num);\n };\n\n // Xor `num` with `this`\n BN.prototype.xor = function xor (num) {\n if (this.length > num.length) return this.clone().ixor(num);\n return num.clone().ixor(this);\n };\n\n BN.prototype.uxor = function uxor (num) {\n if (this.length > num.length) return this.clone().iuxor(num);\n return num.clone().iuxor(this);\n };\n\n // Not ``this`` with ``width`` bitwidth\n BN.prototype.inotn = function inotn (width) {\n assert(typeof width === 'number' && width >= 0);\n\n var bytesNeeded = Math.ceil(width / 26) | 0;\n var bitsLeft = width % 26;\n\n // Extend the buffer with leading zeroes\n this._expand(bytesNeeded);\n\n if (bitsLeft > 0) {\n bytesNeeded--;\n }\n\n // Handle complete words\n for (var i = 0; i < bytesNeeded; i++) {\n this.words[i] = ~this.words[i] & 0x3ffffff;\n }\n\n // Handle the residue\n if (bitsLeft > 0) {\n this.words[i] = ~this.words[i] & (0x3ffffff >> (26 - bitsLeft));\n }\n\n // And remove leading zeroes\n return this.strip();\n };\n\n BN.prototype.notn = function notn (width) {\n return this.clone().inotn(width);\n };\n\n // Set `bit` of `this`\n BN.prototype.setn = function setn (bit, val) {\n assert(typeof bit === 'number' && bit >= 0);\n\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n this._expand(off + 1);\n\n if (val) {\n this.words[off] = this.words[off] | (1 << wbit);\n } else {\n this.words[off] = this.words[off] & ~(1 << wbit);\n }\n\n return this.strip();\n };\n\n // Add `num` to `this` in-place\n BN.prototype.iadd = function iadd (num) {\n var r;\n\n // negative + positive\n if (this.negative !== 0 && num.negative === 0) {\n this.negative = 0;\n r = this.isub(num);\n this.negative ^= 1;\n return this._normSign();\n\n // positive + negative\n } else if (this.negative === 0 && num.negative !== 0) {\n num.negative = 0;\n r = this.isub(num);\n num.negative = 1;\n return r._normSign();\n }\n\n // a.length > b.length\n var a, b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) + (b.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n\n this.length = a.length;\n if (carry !== 0) {\n this.words[this.length] = carry;\n this.length++;\n // Copy the rest of the words\n } else if (a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n return this;\n };\n\n // Add `num` to `this`\n BN.prototype.add = function add (num) {\n var res;\n if (num.negative !== 0 && this.negative === 0) {\n num.negative = 0;\n res = this.sub(num);\n num.negative ^= 1;\n return res;\n } else if (num.negative === 0 && this.negative !== 0) {\n this.negative = 0;\n res = num.sub(this);\n this.negative = 1;\n return res;\n }\n\n if (this.length > num.length) return this.clone().iadd(num);\n\n return num.clone().iadd(this);\n };\n\n // Subtract `num` from `this` in-place\n BN.prototype.isub = function isub (num) {\n // this - (-num) = this + num\n if (num.negative !== 0) {\n num.negative = 0;\n var r = this.iadd(num);\n num.negative = 1;\n return r._normSign();\n\n // -this - num = -(this + num)\n } else if (this.negative !== 0) {\n this.negative = 0;\n this.iadd(num);\n this.negative = 1;\n return this._normSign();\n }\n\n // At this point both numbers are positive\n var cmp = this.cmp(num);\n\n // Optimization - zeroify\n if (cmp === 0) {\n this.negative = 0;\n this.length = 1;\n this.words[0] = 0;\n return this;\n }\n\n // a > b\n var a, b;\n if (cmp > 0) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) - (b.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n\n // Copy rest of the words\n if (carry === 0 && i < a.length && a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = Math.max(this.length, i);\n\n if (a !== this) {\n this.negative = 1;\n }\n\n return this.strip();\n };\n\n // Subtract `num` from `this`\n BN.prototype.sub = function sub (num) {\n return this.clone().isub(num);\n };\n\n function smallMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n var len = (self.length + num.length) | 0;\n out.length = len;\n len = (len - 1) | 0;\n\n // Peel one iteration (compiler can't do it, because of code complexity)\n var a = self.words[0] | 0;\n var b = num.words[0] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n var carry = (r / 0x4000000) | 0;\n out.words[0] = lo;\n\n for (var k = 1; k < len; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = carry >>> 26;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = (k - j) | 0;\n a = self.words[i] | 0;\n b = num.words[j] | 0;\n r = a * b + rword;\n ncarry += (r / 0x4000000) | 0;\n rword = r & 0x3ffffff;\n }\n out.words[k] = rword | 0;\n carry = ncarry | 0;\n }\n if (carry !== 0) {\n out.words[k] = carry | 0;\n } else {\n out.length--;\n }\n\n return out.strip();\n }\n\n // TODO(indutny): it may be reasonable to omit it for users who don't need\n // to work with 256-bit numbers, otherwise it gives 20% improvement for 256-bit\n // multiplication (like elliptic secp256k1).\n var comb10MulTo = function comb10MulTo (self, num, out) {\n var a = self.words;\n var b = num.words;\n var o = out.words;\n var c = 0;\n var lo;\n var mid;\n var hi;\n var a0 = a[0] | 0;\n var al0 = a0 & 0x1fff;\n var ah0 = a0 >>> 13;\n var a1 = a[1] | 0;\n var al1 = a1 & 0x1fff;\n var ah1 = a1 >>> 13;\n var a2 = a[2] | 0;\n var al2 = a2 & 0x1fff;\n var ah2 = a2 >>> 13;\n var a3 = a[3] | 0;\n var al3 = a3 & 0x1fff;\n var ah3 = a3 >>> 13;\n var a4 = a[4] | 0;\n var al4 = a4 & 0x1fff;\n var ah4 = a4 >>> 13;\n var a5 = a[5] | 0;\n var al5 = a5 & 0x1fff;\n var ah5 = a5 >>> 13;\n var a6 = a[6] | 0;\n var al6 = a6 & 0x1fff;\n var ah6 = a6 >>> 13;\n var a7 = a[7] | 0;\n var al7 = a7 & 0x1fff;\n var ah7 = a7 >>> 13;\n var a8 = a[8] | 0;\n var al8 = a8 & 0x1fff;\n var ah8 = a8 >>> 13;\n var a9 = a[9] | 0;\n var al9 = a9 & 0x1fff;\n var ah9 = a9 >>> 13;\n var b0 = b[0] | 0;\n var bl0 = b0 & 0x1fff;\n var bh0 = b0 >>> 13;\n var b1 = b[1] | 0;\n var bl1 = b1 & 0x1fff;\n var bh1 = b1 >>> 13;\n var b2 = b[2] | 0;\n var bl2 = b2 & 0x1fff;\n var bh2 = b2 >>> 13;\n var b3 = b[3] | 0;\n var bl3 = b3 & 0x1fff;\n var bh3 = b3 >>> 13;\n var b4 = b[4] | 0;\n var bl4 = b4 & 0x1fff;\n var bh4 = b4 >>> 13;\n var b5 = b[5] | 0;\n var bl5 = b5 & 0x1fff;\n var bh5 = b5 >>> 13;\n var b6 = b[6] | 0;\n var bl6 = b6 & 0x1fff;\n var bh6 = b6 >>> 13;\n var b7 = b[7] | 0;\n var bl7 = b7 & 0x1fff;\n var bh7 = b7 >>> 13;\n var b8 = b[8] | 0;\n var bl8 = b8 & 0x1fff;\n var bh8 = b8 >>> 13;\n var b9 = b[9] | 0;\n var bl9 = b9 & 0x1fff;\n var bh9 = b9 >>> 13;\n\n out.negative = self.negative ^ num.negative;\n out.length = 19;\n /* k = 0 */\n lo = Math.imul(al0, bl0);\n mid = Math.imul(al0, bh0);\n mid = (mid + Math.imul(ah0, bl0)) | 0;\n hi = Math.imul(ah0, bh0);\n var w0 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w0 >>> 26)) | 0;\n w0 &= 0x3ffffff;\n /* k = 1 */\n lo = Math.imul(al1, bl0);\n mid = Math.imul(al1, bh0);\n mid = (mid + Math.imul(ah1, bl0)) | 0;\n hi = Math.imul(ah1, bh0);\n lo = (lo + Math.imul(al0, bl1)) | 0;\n mid = (mid + Math.imul(al0, bh1)) | 0;\n mid = (mid + Math.imul(ah0, bl1)) | 0;\n hi = (hi + Math.imul(ah0, bh1)) | 0;\n var w1 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w1 >>> 26)) | 0;\n w1 &= 0x3ffffff;\n /* k = 2 */\n lo = Math.imul(al2, bl0);\n mid = Math.imul(al2, bh0);\n mid = (mid + Math.imul(ah2, bl0)) | 0;\n hi = Math.imul(ah2, bh0);\n lo = (lo + Math.imul(al1, bl1)) | 0;\n mid = (mid + Math.imul(al1, bh1)) | 0;\n mid = (mid + Math.imul(ah1, bl1)) | 0;\n hi = (hi + Math.imul(ah1, bh1)) | 0;\n lo = (lo + Math.imul(al0, bl2)) | 0;\n mid = (mid + Math.imul(al0, bh2)) | 0;\n mid = (mid + Math.imul(ah0, bl2)) | 0;\n hi = (hi + Math.imul(ah0, bh2)) | 0;\n var w2 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w2 >>> 26)) | 0;\n w2 &= 0x3ffffff;\n /* k = 3 */\n lo = Math.imul(al3, bl0);\n mid = Math.imul(al3, bh0);\n mid = (mid + Math.imul(ah3, bl0)) | 0;\n hi = Math.imul(ah3, bh0);\n lo = (lo + Math.imul(al2, bl1)) | 0;\n mid = (mid + Math.imul(al2, bh1)) | 0;\n mid = (mid + Math.imul(ah2, bl1)) | 0;\n hi = (hi + Math.imul(ah2, bh1)) | 0;\n lo = (lo + Math.imul(al1, bl2)) | 0;\n mid = (mid + Math.imul(al1, bh2)) | 0;\n mid = (mid + Math.imul(ah1, bl2)) | 0;\n hi = (hi + Math.imul(ah1, bh2)) | 0;\n lo = (lo + Math.imul(al0, bl3)) | 0;\n mid = (mid + Math.imul(al0, bh3)) | 0;\n mid = (mid + Math.imul(ah0, bl3)) | 0;\n hi = (hi + Math.imul(ah0, bh3)) | 0;\n var w3 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w3 >>> 26)) | 0;\n w3 &= 0x3ffffff;\n /* k = 4 */\n lo = Math.imul(al4, bl0);\n mid = Math.imul(al4, bh0);\n mid = (mid + Math.imul(ah4, bl0)) | 0;\n hi = Math.imul(ah4, bh0);\n lo = (lo + Math.imul(al3, bl1)) | 0;\n mid = (mid + Math.imul(al3, bh1)) | 0;\n mid = (mid + Math.imul(ah3, bl1)) | 0;\n hi = (hi + Math.imul(ah3, bh1)) | 0;\n lo = (lo + Math.imul(al2, bl2)) | 0;\n mid = (mid + Math.imul(al2, bh2)) | 0;\n mid = (mid + Math.imul(ah2, bl2)) | 0;\n hi = (hi + Math.imul(ah2, bh2)) | 0;\n lo = (lo + Math.imul(al1, bl3)) | 0;\n mid = (mid + Math.imul(al1, bh3)) | 0;\n mid = (mid + Math.imul(ah1, bl3)) | 0;\n hi = (hi + Math.imul(ah1, bh3)) | 0;\n lo = (lo + Math.imul(al0, bl4)) | 0;\n mid = (mid + Math.imul(al0, bh4)) | 0;\n mid = (mid + Math.imul(ah0, bl4)) | 0;\n hi = (hi + Math.imul(ah0, bh4)) | 0;\n var w4 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w4 >>> 26)) | 0;\n w4 &= 0x3ffffff;\n /* k = 5 */\n lo = Math.imul(al5, bl0);\n mid = Math.imul(al5, bh0);\n mid = (mid + Math.imul(ah5, bl0)) | 0;\n hi = Math.imul(ah5, bh0);\n lo = (lo + Math.imul(al4, bl1)) | 0;\n mid = (mid + Math.imul(al4, bh1)) | 0;\n mid = (mid + Math.imul(ah4, bl1)) | 0;\n hi = (hi + Math.imul(ah4, bh1)) | 0;\n lo = (lo + Math.imul(al3, bl2)) | 0;\n mid = (mid + Math.imul(al3, bh2)) | 0;\n mid = (mid + Math.imul(ah3, bl2)) | 0;\n hi = (hi + Math.imul(ah3, bh2)) | 0;\n lo = (lo + Math.imul(al2, bl3)) | 0;\n mid = (mid + Math.imul(al2, bh3)) | 0;\n mid = (mid + Math.imul(ah2, bl3)) | 0;\n hi = (hi + Math.imul(ah2, bh3)) | 0;\n lo = (lo + Math.imul(al1, bl4)) | 0;\n mid = (mid + Math.imul(al1, bh4)) | 0;\n mid = (mid + Math.imul(ah1, bl4)) | 0;\n hi = (hi + Math.imul(ah1, bh4)) | 0;\n lo = (lo + Math.imul(al0, bl5)) | 0;\n mid = (mid + Math.imul(al0, bh5)) | 0;\n mid = (mid + Math.imul(ah0, bl5)) | 0;\n hi = (hi + Math.imul(ah0, bh5)) | 0;\n var w5 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w5 >>> 26)) | 0;\n w5 &= 0x3ffffff;\n /* k = 6 */\n lo = Math.imul(al6, bl0);\n mid = Math.imul(al6, bh0);\n mid = (mid + Math.imul(ah6, bl0)) | 0;\n hi = Math.imul(ah6, bh0);\n lo = (lo + Math.imul(al5, bl1)) | 0;\n mid = (mid + Math.imul(al5, bh1)) | 0;\n mid = (mid + Math.imul(ah5, bl1)) | 0;\n hi = (hi + Math.imul(ah5, bh1)) | 0;\n lo = (lo + Math.imul(al4, bl2)) | 0;\n mid = (mid + Math.imul(al4, bh2)) | 0;\n mid = (mid + Math.imul(ah4, bl2)) | 0;\n hi = (hi + Math.imul(ah4, bh2)) | 0;\n lo = (lo + Math.imul(al3, bl3)) | 0;\n mid = (mid + Math.imul(al3, bh3)) | 0;\n mid = (mid + Math.imul(ah3, bl3)) | 0;\n hi = (hi + Math.imul(ah3, bh3)) | 0;\n lo = (lo + Math.imul(al2, bl4)) | 0;\n mid = (mid + Math.imul(al2, bh4)) | 0;\n mid = (mid + Math.imul(ah2, bl4)) | 0;\n hi = (hi + Math.imul(ah2, bh4)) | 0;\n lo = (lo + Math.imul(al1, bl5)) | 0;\n mid = (mid + Math.imul(al1, bh5)) | 0;\n mid = (mid + Math.imul(ah1, bl5)) | 0;\n hi = (hi + Math.imul(ah1, bh5)) | 0;\n lo = (lo + Math.imul(al0, bl6)) | 0;\n mid = (mid + Math.imul(al0, bh6)) | 0;\n mid = (mid + Math.imul(ah0, bl6)) | 0;\n hi = (hi + Math.imul(ah0, bh6)) | 0;\n var w6 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w6 >>> 26)) | 0;\n w6 &= 0x3ffffff;\n /* k = 7 */\n lo = Math.imul(al7, bl0);\n mid = Math.imul(al7, bh0);\n mid = (mid + Math.imul(ah7, bl0)) | 0;\n hi = Math.imul(ah7, bh0);\n lo = (lo + Math.imul(al6, bl1)) | 0;\n mid = (mid + Math.imul(al6, bh1)) | 0;\n mid = (mid + Math.imul(ah6, bl1)) | 0;\n hi = (hi + Math.imul(ah6, bh1)) | 0;\n lo = (lo + Math.imul(al5, bl2)) | 0;\n mid = (mid + Math.imul(al5, bh2)) | 0;\n mid = (mid + Math.imul(ah5, bl2)) | 0;\n hi = (hi + Math.imul(ah5, bh2)) | 0;\n lo = (lo + Math.imul(al4, bl3)) | 0;\n mid = (mid + Math.imul(al4, bh3)) | 0;\n mid = (mid + Math.imul(ah4, bl3)) | 0;\n hi = (hi + Math.imul(ah4, bh3)) | 0;\n lo = (lo + Math.imul(al3, bl4)) | 0;\n mid = (mid + Math.imul(al3, bh4)) | 0;\n mid = (mid + Math.imul(ah3, bl4)) | 0;\n hi = (hi + Math.imul(ah3, bh4)) | 0;\n lo = (lo + Math.imul(al2, bl5)) | 0;\n mid = (mid + Math.imul(al2, bh5)) | 0;\n mid = (mid + Math.imul(ah2, bl5)) | 0;\n hi = (hi + Math.imul(ah2, bh5)) | 0;\n lo = (lo + Math.imul(al1, bl6)) | 0;\n mid = (mid + Math.imul(al1, bh6)) | 0;\n mid = (mid + Math.imul(ah1, bl6)) | 0;\n hi = (hi + Math.imul(ah1, bh6)) | 0;\n lo = (lo + Math.imul(al0, bl7)) | 0;\n mid = (mid + Math.imul(al0, bh7)) | 0;\n mid = (mid + Math.imul(ah0, bl7)) | 0;\n hi = (hi + Math.imul(ah0, bh7)) | 0;\n var w7 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w7 >>> 26)) | 0;\n w7 &= 0x3ffffff;\n /* k = 8 */\n lo = Math.imul(al8, bl0);\n mid = Math.imul(al8, bh0);\n mid = (mid + Math.imul(ah8, bl0)) | 0;\n hi = Math.imul(ah8, bh0);\n lo = (lo + Math.imul(al7, bl1)) | 0;\n mid = (mid + Math.imul(al7, bh1)) | 0;\n mid = (mid + Math.imul(ah7, bl1)) | 0;\n hi = (hi + Math.imul(ah7, bh1)) | 0;\n lo = (lo + Math.imul(al6, bl2)) | 0;\n mid = (mid + Math.imul(al6, bh2)) | 0;\n mid = (mid + Math.imul(ah6, bl2)) | 0;\n hi = (hi + Math.imul(ah6, bh2)) | 0;\n lo = (lo + Math.imul(al5, bl3)) | 0;\n mid = (mid + Math.imul(al5, bh3)) | 0;\n mid = (mid + Math.imul(ah5, bl3)) | 0;\n hi = (hi + Math.imul(ah5, bh3)) | 0;\n lo = (lo + Math.imul(al4, bl4)) | 0;\n mid = (mid + Math.imul(al4, bh4)) | 0;\n mid = (mid + Math.imul(ah4, bl4)) | 0;\n hi = (hi + Math.imul(ah4, bh4)) | 0;\n lo = (lo + Math.imul(al3, bl5)) | 0;\n mid = (mid + Math.imul(al3, bh5)) | 0;\n mid = (mid + Math.imul(ah3, bl5)) | 0;\n hi = (hi + Math.imul(ah3, bh5)) | 0;\n lo = (lo + Math.imul(al2, bl6)) | 0;\n mid = (mid + Math.imul(al2, bh6)) | 0;\n mid = (mid + Math.imul(ah2, bl6)) | 0;\n hi = (hi + Math.imul(ah2, bh6)) | 0;\n lo = (lo + Math.imul(al1, bl7)) | 0;\n mid = (mid + Math.imul(al1, bh7)) | 0;\n mid = (mid + Math.imul(ah1, bl7)) | 0;\n hi = (hi + Math.imul(ah1, bh7)) | 0;\n lo = (lo + Math.imul(al0, bl8)) | 0;\n mid = (mid + Math.imul(al0, bh8)) | 0;\n mid = (mid + Math.imul(ah0, bl8)) | 0;\n hi = (hi + Math.imul(ah0, bh8)) | 0;\n var w8 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w8 >>> 26)) | 0;\n w8 &= 0x3ffffff;\n /* k = 9 */\n lo = Math.imul(al9, bl0);\n mid = Math.imul(al9, bh0);\n mid = (mid + Math.imul(ah9, bl0)) | 0;\n hi = Math.imul(ah9, bh0);\n lo = (lo + Math.imul(al8, bl1)) | 0;\n mid = (mid + Math.imul(al8, bh1)) | 0;\n mid = (mid + Math.imul(ah8, bl1)) | 0;\n hi = (hi + Math.imul(ah8, bh1)) | 0;\n lo = (lo + Math.imul(al7, bl2)) | 0;\n mid = (mid + Math.imul(al7, bh2)) | 0;\n mid = (mid + Math.imul(ah7, bl2)) | 0;\n hi = (hi + Math.imul(ah7, bh2)) | 0;\n lo = (lo + Math.imul(al6, bl3)) | 0;\n mid = (mid + Math.imul(al6, bh3)) | 0;\n mid = (mid + Math.imul(ah6, bl3)) | 0;\n hi = (hi + Math.imul(ah6, bh3)) | 0;\n lo = (lo + Math.imul(al5, bl4)) | 0;\n mid = (mid + Math.imul(al5, bh4)) | 0;\n mid = (mid + Math.imul(ah5, bl4)) | 0;\n hi = (hi + Math.imul(ah5, bh4)) | 0;\n lo = (lo + Math.imul(al4, bl5)) | 0;\n mid = (mid + Math.imul(al4, bh5)) | 0;\n mid = (mid + Math.imul(ah4, bl5)) | 0;\n hi = (hi + Math.imul(ah4, bh5)) | 0;\n lo = (lo + Math.imul(al3, bl6)) | 0;\n mid = (mid + Math.imul(al3, bh6)) | 0;\n mid = (mid + Math.imul(ah3, bl6)) | 0;\n hi = (hi + Math.imul(ah3, bh6)) | 0;\n lo = (lo + Math.imul(al2, bl7)) | 0;\n mid = (mid + Math.imul(al2, bh7)) | 0;\n mid = (mid + Math.imul(ah2, bl7)) | 0;\n hi = (hi + Math.imul(ah2, bh7)) | 0;\n lo = (lo + Math.imul(al1, bl8)) | 0;\n mid = (mid + Math.imul(al1, bh8)) | 0;\n mid = (mid + Math.imul(ah1, bl8)) | 0;\n hi = (hi + Math.imul(ah1, bh8)) | 0;\n lo = (lo + Math.imul(al0, bl9)) | 0;\n mid = (mid + Math.imul(al0, bh9)) | 0;\n mid = (mid + Math.imul(ah0, bl9)) | 0;\n hi = (hi + Math.imul(ah0, bh9)) | 0;\n var w9 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w9 >>> 26)) | 0;\n w9 &= 0x3ffffff;\n /* k = 10 */\n lo = Math.imul(al9, bl1);\n mid = Math.imul(al9, bh1);\n mid = (mid + Math.imul(ah9, bl1)) | 0;\n hi = Math.imul(ah9, bh1);\n lo = (lo + Math.imul(al8, bl2)) | 0;\n mid = (mid + Math.imul(al8, bh2)) | 0;\n mid = (mid + Math.imul(ah8, bl2)) | 0;\n hi = (hi + Math.imul(ah8, bh2)) | 0;\n lo = (lo + Math.imul(al7, bl3)) | 0;\n mid = (mid + Math.imul(al7, bh3)) | 0;\n mid = (mid + Math.imul(ah7, bl3)) | 0;\n hi = (hi + Math.imul(ah7, bh3)) | 0;\n lo = (lo + Math.imul(al6, bl4)) | 0;\n mid = (mid + Math.imul(al6, bh4)) | 0;\n mid = (mid + Math.imul(ah6, bl4)) | 0;\n hi = (hi + Math.imul(ah6, bh4)) | 0;\n lo = (lo + Math.imul(al5, bl5)) | 0;\n mid = (mid + Math.imul(al5, bh5)) | 0;\n mid = (mid + Math.imul(ah5, bl5)) | 0;\n hi = (hi + Math.imul(ah5, bh5)) | 0;\n lo = (lo + Math.imul(al4, bl6)) | 0;\n mid = (mid + Math.imul(al4, bh6)) | 0;\n mid = (mid + Math.imul(ah4, bl6)) | 0;\n hi = (hi + Math.imul(ah4, bh6)) | 0;\n lo = (lo + Math.imul(al3, bl7)) | 0;\n mid = (mid + Math.imul(al3, bh7)) | 0;\n mid = (mid + Math.imul(ah3, bl7)) | 0;\n hi = (hi + Math.imul(ah3, bh7)) | 0;\n lo = (lo + Math.imul(al2, bl8)) | 0;\n mid = (mid + Math.imul(al2, bh8)) | 0;\n mid = (mid + Math.imul(ah2, bl8)) | 0;\n hi = (hi + Math.imul(ah2, bh8)) | 0;\n lo = (lo + Math.imul(al1, bl9)) | 0;\n mid = (mid + Math.imul(al1, bh9)) | 0;\n mid = (mid + Math.imul(ah1, bl9)) | 0;\n hi = (hi + Math.imul(ah1, bh9)) | 0;\n var w10 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w10 >>> 26)) | 0;\n w10 &= 0x3ffffff;\n /* k = 11 */\n lo = Math.imul(al9, bl2);\n mid = Math.imul(al9, bh2);\n mid = (mid + Math.imul(ah9, bl2)) | 0;\n hi = Math.imul(ah9, bh2);\n lo = (lo + Math.imul(al8, bl3)) | 0;\n mid = (mid + Math.imul(al8, bh3)) | 0;\n mid = (mid + Math.imul(ah8, bl3)) | 0;\n hi = (hi + Math.imul(ah8, bh3)) | 0;\n lo = (lo + Math.imul(al7, bl4)) | 0;\n mid = (mid + Math.imul(al7, bh4)) | 0;\n mid = (mid + Math.imul(ah7, bl4)) | 0;\n hi = (hi + Math.imul(ah7, bh4)) | 0;\n lo = (lo + Math.imul(al6, bl5)) | 0;\n mid = (mid + Math.imul(al6, bh5)) | 0;\n mid = (mid + Math.imul(ah6, bl5)) | 0;\n hi = (hi + Math.imul(ah6, bh5)) | 0;\n lo = (lo + Math.imul(al5, bl6)) | 0;\n mid = (mid + Math.imul(al5, bh6)) | 0;\n mid = (mid + Math.imul(ah5, bl6)) | 0;\n hi = (hi + Math.imul(ah5, bh6)) | 0;\n lo = (lo + Math.imul(al4, bl7)) | 0;\n mid = (mid + Math.imul(al4, bh7)) | 0;\n mid = (mid + Math.imul(ah4, bl7)) | 0;\n hi = (hi + Math.imul(ah4, bh7)) | 0;\n lo = (lo + Math.imul(al3, bl8)) | 0;\n mid = (mid + Math.imul(al3, bh8)) | 0;\n mid = (mid + Math.imul(ah3, bl8)) | 0;\n hi = (hi + Math.imul(ah3, bh8)) | 0;\n lo = (lo + Math.imul(al2, bl9)) | 0;\n mid = (mid + Math.imul(al2, bh9)) | 0;\n mid = (mid + Math.imul(ah2, bl9)) | 0;\n hi = (hi + Math.imul(ah2, bh9)) | 0;\n var w11 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w11 >>> 26)) | 0;\n w11 &= 0x3ffffff;\n /* k = 12 */\n lo = Math.imul(al9, bl3);\n mid = Math.imul(al9, bh3);\n mid = (mid + Math.imul(ah9, bl3)) | 0;\n hi = Math.imul(ah9, bh3);\n lo = (lo + Math.imul(al8, bl4)) | 0;\n mid = (mid + Math.imul(al8, bh4)) | 0;\n mid = (mid + Math.imul(ah8, bl4)) | 0;\n hi = (hi + Math.imul(ah8, bh4)) | 0;\n lo = (lo + Math.imul(al7, bl5)) | 0;\n mid = (mid + Math.imul(al7, bh5)) | 0;\n mid = (mid + Math.imul(ah7, bl5)) | 0;\n hi = (hi + Math.imul(ah7, bh5)) | 0;\n lo = (lo + Math.imul(al6, bl6)) | 0;\n mid = (mid + Math.imul(al6, bh6)) | 0;\n mid = (mid + Math.imul(ah6, bl6)) | 0;\n hi = (hi + Math.imul(ah6, bh6)) | 0;\n lo = (lo + Math.imul(al5, bl7)) | 0;\n mid = (mid + Math.imul(al5, bh7)) | 0;\n mid = (mid + Math.imul(ah5, bl7)) | 0;\n hi = (hi + Math.imul(ah5, bh7)) | 0;\n lo = (lo + Math.imul(al4, bl8)) | 0;\n mid = (mid + Math.imul(al4, bh8)) | 0;\n mid = (mid + Math.imul(ah4, bl8)) | 0;\n hi = (hi + Math.imul(ah4, bh8)) | 0;\n lo = (lo + Math.imul(al3, bl9)) | 0;\n mid = (mid + Math.imul(al3, bh9)) | 0;\n mid = (mid + Math.imul(ah3, bl9)) | 0;\n hi = (hi + Math.imul(ah3, bh9)) | 0;\n var w12 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w12 >>> 26)) | 0;\n w12 &= 0x3ffffff;\n /* k = 13 */\n lo = Math.imul(al9, bl4);\n mid = Math.imul(al9, bh4);\n mid = (mid + Math.imul(ah9, bl4)) | 0;\n hi = Math.imul(ah9, bh4);\n lo = (lo + Math.imul(al8, bl5)) | 0;\n mid = (mid + Math.imul(al8, bh5)) | 0;\n mid = (mid + Math.imul(ah8, bl5)) | 0;\n hi = (hi + Math.imul(ah8, bh5)) | 0;\n lo = (lo + Math.imul(al7, bl6)) | 0;\n mid = (mid + Math.imul(al7, bh6)) | 0;\n mid = (mid + Math.imul(ah7, bl6)) | 0;\n hi = (hi + Math.imul(ah7, bh6)) | 0;\n lo = (lo + Math.imul(al6, bl7)) | 0;\n mid = (mid + Math.imul(al6, bh7)) | 0;\n mid = (mid + Math.imul(ah6, bl7)) | 0;\n hi = (hi + Math.imul(ah6, bh7)) | 0;\n lo = (lo + Math.imul(al5, bl8)) | 0;\n mid = (mid + Math.imul(al5, bh8)) | 0;\n mid = (mid + Math.imul(ah5, bl8)) | 0;\n hi = (hi + Math.imul(ah5, bh8)) | 0;\n lo = (lo + Math.imul(al4, bl9)) | 0;\n mid = (mid + Math.imul(al4, bh9)) | 0;\n mid = (mid + Math.imul(ah4, bl9)) | 0;\n hi = (hi + Math.imul(ah4, bh9)) | 0;\n var w13 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w13 >>> 26)) | 0;\n w13 &= 0x3ffffff;\n /* k = 14 */\n lo = Math.imul(al9, bl5);\n mid = Math.imul(al9, bh5);\n mid = (mid + Math.imul(ah9, bl5)) | 0;\n hi = Math.imul(ah9, bh5);\n lo = (lo + Math.imul(al8, bl6)) | 0;\n mid = (mid + Math.imul(al8, bh6)) | 0;\n mid = (mid + Math.imul(ah8, bl6)) | 0;\n hi = (hi + Math.imul(ah8, bh6)) | 0;\n lo = (lo + Math.imul(al7, bl7)) | 0;\n mid = (mid + Math.imul(al7, bh7)) | 0;\n mid = (mid + Math.imul(ah7, bl7)) | 0;\n hi = (hi + Math.imul(ah7, bh7)) | 0;\n lo = (lo + Math.imul(al6, bl8)) | 0;\n mid = (mid + Math.imul(al6, bh8)) | 0;\n mid = (mid + Math.imul(ah6, bl8)) | 0;\n hi = (hi + Math.imul(ah6, bh8)) | 0;\n lo = (lo + Math.imul(al5, bl9)) | 0;\n mid = (mid + Math.imul(al5, bh9)) | 0;\n mid = (mid + Math.imul(ah5, bl9)) | 0;\n hi = (hi + Math.imul(ah5, bh9)) | 0;\n var w14 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w14 >>> 26)) | 0;\n w14 &= 0x3ffffff;\n /* k = 15 */\n lo = Math.imul(al9, bl6);\n mid = Math.imul(al9, bh6);\n mid = (mid + Math.imul(ah9, bl6)) | 0;\n hi = Math.imul(ah9, bh6);\n lo = (lo + Math.imul(al8, bl7)) | 0;\n mid = (mid + Math.imul(al8, bh7)) | 0;\n mid = (mid + Math.imul(ah8, bl7)) | 0;\n hi = (hi + Math.imul(ah8, bh7)) | 0;\n lo = (lo + Math.imul(al7, bl8)) | 0;\n mid = (mid + Math.imul(al7, bh8)) | 0;\n mid = (mid + Math.imul(ah7, bl8)) | 0;\n hi = (hi + Math.imul(ah7, bh8)) | 0;\n lo = (lo + Math.imul(al6, bl9)) | 0;\n mid = (mid + Math.imul(al6, bh9)) | 0;\n mid = (mid + Math.imul(ah6, bl9)) | 0;\n hi = (hi + Math.imul(ah6, bh9)) | 0;\n var w15 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w15 >>> 26)) | 0;\n w15 &= 0x3ffffff;\n /* k = 16 */\n lo = Math.imul(al9, bl7);\n mid = Math.imul(al9, bh7);\n mid = (mid + Math.imul(ah9, bl7)) | 0;\n hi = Math.imul(ah9, bh7);\n lo = (lo + Math.imul(al8, bl8)) | 0;\n mid = (mid + Math.imul(al8, bh8)) | 0;\n mid = (mid + Math.imul(ah8, bl8)) | 0;\n hi = (hi + Math.imul(ah8, bh8)) | 0;\n lo = (lo + Math.imul(al7, bl9)) | 0;\n mid = (mid + Math.imul(al7, bh9)) | 0;\n mid = (mid + Math.imul(ah7, bl9)) | 0;\n hi = (hi + Math.imul(ah7, bh9)) | 0;\n var w16 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w16 >>> 26)) | 0;\n w16 &= 0x3ffffff;\n /* k = 17 */\n lo = Math.imul(al9, bl8);\n mid = Math.imul(al9, bh8);\n mid = (mid + Math.imul(ah9, bl8)) | 0;\n hi = Math.imul(ah9, bh8);\n lo = (lo + Math.imul(al8, bl9)) | 0;\n mid = (mid + Math.imul(al8, bh9)) | 0;\n mid = (mid + Math.imul(ah8, bl9)) | 0;\n hi = (hi + Math.imul(ah8, bh9)) | 0;\n var w17 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w17 >>> 26)) | 0;\n w17 &= 0x3ffffff;\n /* k = 18 */\n lo = Math.imul(al9, bl9);\n mid = Math.imul(al9, bh9);\n mid = (mid + Math.imul(ah9, bl9)) | 0;\n hi = Math.imul(ah9, bh9);\n var w18 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w18 >>> 26)) | 0;\n w18 &= 0x3ffffff;\n o[0] = w0;\n o[1] = w1;\n o[2] = w2;\n o[3] = w3;\n o[4] = w4;\n o[5] = w5;\n o[6] = w6;\n o[7] = w7;\n o[8] = w8;\n o[9] = w9;\n o[10] = w10;\n o[11] = w11;\n o[12] = w12;\n o[13] = w13;\n o[14] = w14;\n o[15] = w15;\n o[16] = w16;\n o[17] = w17;\n o[18] = w18;\n if (c !== 0) {\n o[19] = c;\n out.length++;\n }\n return out;\n };\n\n // Polyfill comb\n if (!Math.imul) {\n comb10MulTo = smallMulTo;\n }\n\n function bigMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n out.length = self.length + num.length;\n\n var carry = 0;\n var hncarry = 0;\n for (var k = 0; k < out.length - 1; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = hncarry;\n hncarry = 0;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = k - j;\n var a = self.words[i] | 0;\n var b = num.words[j] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n ncarry = (ncarry + ((r / 0x4000000) | 0)) | 0;\n lo = (lo + rword) | 0;\n rword = lo & 0x3ffffff;\n ncarry = (ncarry + (lo >>> 26)) | 0;\n\n hncarry += ncarry >>> 26;\n ncarry &= 0x3ffffff;\n }\n out.words[k] = rword;\n carry = ncarry;\n ncarry = hncarry;\n }\n if (carry !== 0) {\n out.words[k] = carry;\n } else {\n out.length--;\n }\n\n return out.strip();\n }\n\n function jumboMulTo (self, num, out) {\n var fftm = new FFTM();\n return fftm.mulp(self, num, out);\n }\n\n BN.prototype.mulTo = function mulTo (num, out) {\n var res;\n var len = this.length + num.length;\n if (this.length === 10 && num.length === 10) {\n res = comb10MulTo(this, num, out);\n } else if (len < 63) {\n res = smallMulTo(this, num, out);\n } else if (len < 1024) {\n res = bigMulTo(this, num, out);\n } else {\n res = jumboMulTo(this, num, out);\n }\n\n return res;\n };\n\n // Cooley-Tukey algorithm for FFT\n // slightly revisited to rely on looping instead of recursion\n\n function FFTM (x, y) {\n this.x = x;\n this.y = y;\n }\n\n FFTM.prototype.makeRBT = function makeRBT (N) {\n var t = new Array(N);\n var l = BN.prototype._countBits(N) - 1;\n for (var i = 0; i < N; i++) {\n t[i] = this.revBin(i, l, N);\n }\n\n return t;\n };\n\n // Returns binary-reversed representation of `x`\n FFTM.prototype.revBin = function revBin (x, l, N) {\n if (x === 0 || x === N - 1) return x;\n\n var rb = 0;\n for (var i = 0; i < l; i++) {\n rb |= (x & 1) << (l - i - 1);\n x >>= 1;\n }\n\n return rb;\n };\n\n // Performs \"tweedling\" phase, therefore 'emulating'\n // behaviour of the recursive algorithm\n FFTM.prototype.permute = function permute (rbt, rws, iws, rtws, itws, N) {\n for (var i = 0; i < N; i++) {\n rtws[i] = rws[rbt[i]];\n itws[i] = iws[rbt[i]];\n }\n };\n\n FFTM.prototype.transform = function transform (rws, iws, rtws, itws, N, rbt) {\n this.permute(rbt, rws, iws, rtws, itws, N);\n\n for (var s = 1; s < N; s <<= 1) {\n var l = s << 1;\n\n var rtwdf = Math.cos(2 * Math.PI / l);\n var itwdf = Math.sin(2 * Math.PI / l);\n\n for (var p = 0; p < N; p += l) {\n var rtwdf_ = rtwdf;\n var itwdf_ = itwdf;\n\n for (var j = 0; j < s; j++) {\n var re = rtws[p + j];\n var ie = itws[p + j];\n\n var ro = rtws[p + j + s];\n var io = itws[p + j + s];\n\n var rx = rtwdf_ * ro - itwdf_ * io;\n\n io = rtwdf_ * io + itwdf_ * ro;\n ro = rx;\n\n rtws[p + j] = re + ro;\n itws[p + j] = ie + io;\n\n rtws[p + j + s] = re - ro;\n itws[p + j + s] = ie - io;\n\n /* jshint maxdepth : false */\n if (j !== l) {\n rx = rtwdf * rtwdf_ - itwdf * itwdf_;\n\n itwdf_ = rtwdf * itwdf_ + itwdf * rtwdf_;\n rtwdf_ = rx;\n }\n }\n }\n }\n };\n\n FFTM.prototype.guessLen13b = function guessLen13b (n, m) {\n var N = Math.max(m, n) | 1;\n var odd = N & 1;\n var i = 0;\n for (N = N / 2 | 0; N; N = N >>> 1) {\n i++;\n }\n\n return 1 << i + 1 + odd;\n };\n\n FFTM.prototype.conjugate = function conjugate (rws, iws, N) {\n if (N <= 1) return;\n\n for (var i = 0; i < N / 2; i++) {\n var t = rws[i];\n\n rws[i] = rws[N - i - 1];\n rws[N - i - 1] = t;\n\n t = iws[i];\n\n iws[i] = -iws[N - i - 1];\n iws[N - i - 1] = -t;\n }\n };\n\n FFTM.prototype.normalize13b = function normalize13b (ws, N) {\n var carry = 0;\n for (var i = 0; i < N / 2; i++) {\n var w = Math.round(ws[2 * i + 1] / N) * 0x2000 +\n Math.round(ws[2 * i] / N) +\n carry;\n\n ws[i] = w & 0x3ffffff;\n\n if (w < 0x4000000) {\n carry = 0;\n } else {\n carry = w / 0x4000000 | 0;\n }\n }\n\n return ws;\n };\n\n FFTM.prototype.convert13b = function convert13b (ws, len, rws, N) {\n var carry = 0;\n for (var i = 0; i < len; i++) {\n carry = carry + (ws[i] | 0);\n\n rws[2 * i] = carry & 0x1fff; carry = carry >>> 13;\n rws[2 * i + 1] = carry & 0x1fff; carry = carry >>> 13;\n }\n\n // Pad with zeroes\n for (i = 2 * len; i < N; ++i) {\n rws[i] = 0;\n }\n\n assert(carry === 0);\n assert((carry & ~0x1fff) === 0);\n };\n\n FFTM.prototype.stub = function stub (N) {\n var ph = new Array(N);\n for (var i = 0; i < N; i++) {\n ph[i] = 0;\n }\n\n return ph;\n };\n\n FFTM.prototype.mulp = function mulp (x, y, out) {\n var N = 2 * this.guessLen13b(x.length, y.length);\n\n var rbt = this.makeRBT(N);\n\n var _ = this.stub(N);\n\n var rws = new Array(N);\n var rwst = new Array(N);\n var iwst = new Array(N);\n\n var nrws = new Array(N);\n var nrwst = new Array(N);\n var niwst = new Array(N);\n\n var rmws = out.words;\n rmws.length = N;\n\n this.convert13b(x.words, x.length, rws, N);\n this.convert13b(y.words, y.length, nrws, N);\n\n this.transform(rws, _, rwst, iwst, N, rbt);\n this.transform(nrws, _, nrwst, niwst, N, rbt);\n\n for (var i = 0; i < N; i++) {\n var rx = rwst[i] * nrwst[i] - iwst[i] * niwst[i];\n iwst[i] = rwst[i] * niwst[i] + iwst[i] * nrwst[i];\n rwst[i] = rx;\n }\n\n this.conjugate(rwst, iwst, N);\n this.transform(rwst, iwst, rmws, _, N, rbt);\n this.conjugate(rmws, _, N);\n this.normalize13b(rmws, N);\n\n out.negative = x.negative ^ y.negative;\n out.length = x.length + y.length;\n return out.strip();\n };\n\n // Multiply `this` by `num`\n BN.prototype.mul = function mul (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return this.mulTo(num, out);\n };\n\n // Multiply employing FFT\n BN.prototype.mulf = function mulf (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return jumboMulTo(this, num, out);\n };\n\n // In-place Multiplication\n BN.prototype.imul = function imul (num) {\n return this.clone().mulTo(num, this);\n };\n\n BN.prototype.imuln = function imuln (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n\n // Carry\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = (this.words[i] | 0) * num;\n var lo = (w & 0x3ffffff) + (carry & 0x3ffffff);\n carry >>= 26;\n carry += (w / 0x4000000) | 0;\n // NOTE: lo is 27bit maximum\n carry += lo >>> 26;\n this.words[i] = lo & 0x3ffffff;\n }\n\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n\n return this;\n };\n\n BN.prototype.muln = function muln (num) {\n return this.clone().imuln(num);\n };\n\n // `this` * `this`\n BN.prototype.sqr = function sqr () {\n return this.mul(this);\n };\n\n // `this` * `this` in-place\n BN.prototype.isqr = function isqr () {\n return this.imul(this.clone());\n };\n\n // Math.pow(`this`, `num`)\n BN.prototype.pow = function pow (num) {\n var w = toBitArray(num);\n if (w.length === 0) return new BN(1);\n\n // Skip leading zeroes\n var res = this;\n for (var i = 0; i < w.length; i++, res = res.sqr()) {\n if (w[i] !== 0) break;\n }\n\n if (++i < w.length) {\n for (var q = res.sqr(); i < w.length; i++, q = q.sqr()) {\n if (w[i] === 0) continue;\n\n res = res.mul(q);\n }\n }\n\n return res;\n };\n\n // Shift-left in-place\n BN.prototype.iushln = function iushln (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n var carryMask = (0x3ffffff >>> (26 - r)) << (26 - r);\n var i;\n\n if (r !== 0) {\n var carry = 0;\n\n for (i = 0; i < this.length; i++) {\n var newCarry = this.words[i] & carryMask;\n var c = ((this.words[i] | 0) - newCarry) << r;\n this.words[i] = c | carry;\n carry = newCarry >>> (26 - r);\n }\n\n if (carry) {\n this.words[i] = carry;\n this.length++;\n }\n }\n\n if (s !== 0) {\n for (i = this.length - 1; i >= 0; i--) {\n this.words[i + s] = this.words[i];\n }\n\n for (i = 0; i < s; i++) {\n this.words[i] = 0;\n }\n\n this.length += s;\n }\n\n return this.strip();\n };\n\n BN.prototype.ishln = function ishln (bits) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushln(bits);\n };\n\n // Shift-right in-place\n // NOTE: `hint` is a lowest bit before trailing zeroes\n // NOTE: if `extended` is present - it will be filled with destroyed bits\n BN.prototype.iushrn = function iushrn (bits, hint, extended) {\n assert(typeof bits === 'number' && bits >= 0);\n var h;\n if (hint) {\n h = (hint - (hint % 26)) / 26;\n } else {\n h = 0;\n }\n\n var r = bits % 26;\n var s = Math.min((bits - r) / 26, this.length);\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n var maskedWords = extended;\n\n h -= s;\n h = Math.max(0, h);\n\n // Extended mode, copy masked part\n if (maskedWords) {\n for (var i = 0; i < s; i++) {\n maskedWords.words[i] = this.words[i];\n }\n maskedWords.length = s;\n }\n\n if (s === 0) {\n // No-op, we should not move anything at all\n } else if (this.length > s) {\n this.length -= s;\n for (i = 0; i < this.length; i++) {\n this.words[i] = this.words[i + s];\n }\n } else {\n this.words[0] = 0;\n this.length = 1;\n }\n\n var carry = 0;\n for (i = this.length - 1; i >= 0 && (carry !== 0 || i >= h); i--) {\n var word = this.words[i] | 0;\n this.words[i] = (carry << (26 - r)) | (word >>> r);\n carry = word & mask;\n }\n\n // Push carried bits as a mask\n if (maskedWords && carry !== 0) {\n maskedWords.words[maskedWords.length++] = carry;\n }\n\n if (this.length === 0) {\n this.words[0] = 0;\n this.length = 1;\n }\n\n return this.strip();\n };\n\n BN.prototype.ishrn = function ishrn (bits, hint, extended) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushrn(bits, hint, extended);\n };\n\n // Shift-left\n BN.prototype.shln = function shln (bits) {\n return this.clone().ishln(bits);\n };\n\n BN.prototype.ushln = function ushln (bits) {\n return this.clone().iushln(bits);\n };\n\n // Shift-right\n BN.prototype.shrn = function shrn (bits) {\n return this.clone().ishrn(bits);\n };\n\n BN.prototype.ushrn = function ushrn (bits) {\n return this.clone().iushrn(bits);\n };\n\n // Test if n bit is set\n BN.prototype.testn = function testn (bit) {\n assert(typeof bit === 'number' && bit >= 0);\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) return false;\n\n // Check bit and return\n var w = this.words[s];\n\n return !!(w & q);\n };\n\n // Return only lowers bits of number (in-place)\n BN.prototype.imaskn = function imaskn (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n\n assert(this.negative === 0, 'imaskn works only with positive numbers');\n\n if (this.length <= s) {\n return this;\n }\n\n if (r !== 0) {\n s++;\n }\n this.length = Math.min(s, this.length);\n\n if (r !== 0) {\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n this.words[this.length - 1] &= mask;\n }\n\n return this.strip();\n };\n\n // Return only lowers bits of number\n BN.prototype.maskn = function maskn (bits) {\n return this.clone().imaskn(bits);\n };\n\n // Add plain number `num` to `this`\n BN.prototype.iaddn = function iaddn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.isubn(-num);\n\n // Possible sign change\n if (this.negative !== 0) {\n if (this.length === 1 && (this.words[0] | 0) < num) {\n this.words[0] = num - (this.words[0] | 0);\n this.negative = 0;\n return this;\n }\n\n this.negative = 0;\n this.isubn(num);\n this.negative = 1;\n return this;\n }\n\n // Add without checks\n return this._iaddn(num);\n };\n\n BN.prototype._iaddn = function _iaddn (num) {\n this.words[0] += num;\n\n // Carry\n for (var i = 0; i < this.length && this.words[i] >= 0x4000000; i++) {\n this.words[i] -= 0x4000000;\n if (i === this.length - 1) {\n this.words[i + 1] = 1;\n } else {\n this.words[i + 1]++;\n }\n }\n this.length = Math.max(this.length, i + 1);\n\n return this;\n };\n\n // Subtract plain number `num` from `this`\n BN.prototype.isubn = function isubn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.iaddn(-num);\n\n if (this.negative !== 0) {\n this.negative = 0;\n this.iaddn(num);\n this.negative = 1;\n return this;\n }\n\n this.words[0] -= num;\n\n if (this.length === 1 && this.words[0] < 0) {\n this.words[0] = -this.words[0];\n this.negative = 1;\n } else {\n // Carry\n for (var i = 0; i < this.length && this.words[i] < 0; i++) {\n this.words[i] += 0x4000000;\n this.words[i + 1] -= 1;\n }\n }\n\n return this.strip();\n };\n\n BN.prototype.addn = function addn (num) {\n return this.clone().iaddn(num);\n };\n\n BN.prototype.subn = function subn (num) {\n return this.clone().isubn(num);\n };\n\n BN.prototype.iabs = function iabs () {\n this.negative = 0;\n\n return this;\n };\n\n BN.prototype.abs = function abs () {\n return this.clone().iabs();\n };\n\n BN.prototype._ishlnsubmul = function _ishlnsubmul (num, mul, shift) {\n var len = num.length + shift;\n var i;\n\n this._expand(len);\n\n var w;\n var carry = 0;\n for (i = 0; i < num.length; i++) {\n w = (this.words[i + shift] | 0) + carry;\n var right = (num.words[i] | 0) * mul;\n w -= right & 0x3ffffff;\n carry = (w >> 26) - ((right / 0x4000000) | 0);\n this.words[i + shift] = w & 0x3ffffff;\n }\n for (; i < this.length - shift; i++) {\n w = (this.words[i + shift] | 0) + carry;\n carry = w >> 26;\n this.words[i + shift] = w & 0x3ffffff;\n }\n\n if (carry === 0) return this.strip();\n\n // Subtraction overflow\n assert(carry === -1);\n carry = 0;\n for (i = 0; i < this.length; i++) {\n w = -(this.words[i] | 0) + carry;\n carry = w >> 26;\n this.words[i] = w & 0x3ffffff;\n }\n this.negative = 1;\n\n return this.strip();\n };\n\n BN.prototype._wordDiv = function _wordDiv (num, mode) {\n var shift = this.length - num.length;\n\n var a = this.clone();\n var b = num;\n\n // Normalize\n var bhi = b.words[b.length - 1] | 0;\n var bhiBits = this._countBits(bhi);\n shift = 26 - bhiBits;\n if (shift !== 0) {\n b = b.ushln(shift);\n a.iushln(shift);\n bhi = b.words[b.length - 1] | 0;\n }\n\n // Initialize quotient\n var m = a.length - b.length;\n var q;\n\n if (mode !== 'mod') {\n q = new BN(null);\n q.length = m + 1;\n q.words = new Array(q.length);\n for (var i = 0; i < q.length; i++) {\n q.words[i] = 0;\n }\n }\n\n var diff = a.clone()._ishlnsubmul(b, 1, m);\n if (diff.negative === 0) {\n a = diff;\n if (q) {\n q.words[m] = 1;\n }\n }\n\n for (var j = m - 1; j >= 0; j--) {\n var qj = (a.words[b.length + j] | 0) * 0x4000000 +\n (a.words[b.length + j - 1] | 0);\n\n // NOTE: (qj / bhi) is (0x3ffffff * 0x4000000 + 0x3ffffff) / 0x2000000 max\n // (0x7ffffff)\n qj = Math.min((qj / bhi) | 0, 0x3ffffff);\n\n a._ishlnsubmul(b, qj, j);\n while (a.negative !== 0) {\n qj--;\n a.negative = 0;\n a._ishlnsubmul(b, 1, j);\n if (!a.isZero()) {\n a.negative ^= 1;\n }\n }\n if (q) {\n q.words[j] = qj;\n }\n }\n if (q) {\n q.strip();\n }\n a.strip();\n\n // Denormalize\n if (mode !== 'div' && shift !== 0) {\n a.iushrn(shift);\n }\n\n return {\n div: q || null,\n mod: a\n };\n };\n\n // NOTE: 1) `mode` can be set to `mod` to request mod only,\n // to `div` to request div only, or be absent to\n // request both div & mod\n // 2) `positive` is true if unsigned mod is requested\n BN.prototype.divmod = function divmod (num, mode, positive) {\n assert(!num.isZero());\n\n if (this.isZero()) {\n return {\n div: new BN(0),\n mod: new BN(0)\n };\n }\n\n var div, mod, res;\n if (this.negative !== 0 && num.negative === 0) {\n res = this.neg().divmod(num, mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.iadd(num);\n }\n }\n\n return {\n div: div,\n mod: mod\n };\n }\n\n if (this.negative === 0 && num.negative !== 0) {\n res = this.divmod(num.neg(), mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n return {\n div: div,\n mod: res.mod\n };\n }\n\n if ((this.negative & num.negative) !== 0) {\n res = this.neg().divmod(num.neg(), mode);\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.isub(num);\n }\n }\n\n return {\n div: res.div,\n mod: mod\n };\n }\n\n // Both numbers are positive at this point\n\n // Strip both numbers to approximate shift value\n if (num.length > this.length || this.cmp(num) < 0) {\n return {\n div: new BN(0),\n mod: this\n };\n }\n\n // Very short reduction\n if (num.length === 1) {\n if (mode === 'div') {\n return {\n div: this.divn(num.words[0]),\n mod: null\n };\n }\n\n if (mode === 'mod') {\n return {\n div: null,\n mod: new BN(this.modn(num.words[0]))\n };\n }\n\n return {\n div: this.divn(num.words[0]),\n mod: new BN(this.modn(num.words[0]))\n };\n }\n\n return this._wordDiv(num, mode);\n };\n\n // Find `this` / `num`\n BN.prototype.div = function div (num) {\n return this.divmod(num, 'div', false).div;\n };\n\n // Find `this` % `num`\n BN.prototype.mod = function mod (num) {\n return this.divmod(num, 'mod', false).mod;\n };\n\n BN.prototype.umod = function umod (num) {\n return this.divmod(num, 'mod', true).mod;\n };\n\n // Find Round(`this` / `num`)\n BN.prototype.divRound = function divRound (num) {\n var dm = this.divmod(num);\n\n // Fast case - exact division\n if (dm.mod.isZero()) return dm.div;\n\n var mod = dm.div.negative !== 0 ? dm.mod.isub(num) : dm.mod;\n\n var half = num.ushrn(1);\n var r2 = num.andln(1);\n var cmp = mod.cmp(half);\n\n // Round down\n if (cmp < 0 || r2 === 1 && cmp === 0) return dm.div;\n\n // Round up\n return dm.div.negative !== 0 ? dm.div.isubn(1) : dm.div.iaddn(1);\n };\n\n BN.prototype.modn = function modn (num) {\n assert(num <= 0x3ffffff);\n var p = (1 << 26) % num;\n\n var acc = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n acc = (p * acc + (this.words[i] | 0)) % num;\n }\n\n return acc;\n };\n\n // In-place division by number\n BN.prototype.idivn = function idivn (num) {\n assert(num <= 0x3ffffff);\n\n var carry = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var w = (this.words[i] | 0) + carry * 0x4000000;\n this.words[i] = (w / num) | 0;\n carry = w % num;\n }\n\n return this.strip();\n };\n\n BN.prototype.divn = function divn (num) {\n return this.clone().idivn(num);\n };\n\n BN.prototype.egcd = function egcd (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var x = this;\n var y = p.clone();\n\n if (x.negative !== 0) {\n x = x.umod(p);\n } else {\n x = x.clone();\n }\n\n // A * x + B * y = x\n var A = new BN(1);\n var B = new BN(0);\n\n // C * x + D * y = y\n var C = new BN(0);\n var D = new BN(1);\n\n var g = 0;\n\n while (x.isEven() && y.isEven()) {\n x.iushrn(1);\n y.iushrn(1);\n ++g;\n }\n\n var yp = y.clone();\n var xp = x.clone();\n\n while (!x.isZero()) {\n for (var i = 0, im = 1; (x.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n x.iushrn(i);\n while (i-- > 0) {\n if (A.isOdd() || B.isOdd()) {\n A.iadd(yp);\n B.isub(xp);\n }\n\n A.iushrn(1);\n B.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (y.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n y.iushrn(j);\n while (j-- > 0) {\n if (C.isOdd() || D.isOdd()) {\n C.iadd(yp);\n D.isub(xp);\n }\n\n C.iushrn(1);\n D.iushrn(1);\n }\n }\n\n if (x.cmp(y) >= 0) {\n x.isub(y);\n A.isub(C);\n B.isub(D);\n } else {\n y.isub(x);\n C.isub(A);\n D.isub(B);\n }\n }\n\n return {\n a: C,\n b: D,\n gcd: y.iushln(g)\n };\n };\n\n // This is reduced incarnation of the binary EEA\n // above, designated to invert members of the\n // _prime_ fields F(p) at a maximal speed\n BN.prototype._invmp = function _invmp (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var a = this;\n var b = p.clone();\n\n if (a.negative !== 0) {\n a = a.umod(p);\n } else {\n a = a.clone();\n }\n\n var x1 = new BN(1);\n var x2 = new BN(0);\n\n var delta = b.clone();\n\n while (a.cmpn(1) > 0 && b.cmpn(1) > 0) {\n for (var i = 0, im = 1; (a.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n a.iushrn(i);\n while (i-- > 0) {\n if (x1.isOdd()) {\n x1.iadd(delta);\n }\n\n x1.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (b.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n b.iushrn(j);\n while (j-- > 0) {\n if (x2.isOdd()) {\n x2.iadd(delta);\n }\n\n x2.iushrn(1);\n }\n }\n\n if (a.cmp(b) >= 0) {\n a.isub(b);\n x1.isub(x2);\n } else {\n b.isub(a);\n x2.isub(x1);\n }\n }\n\n var res;\n if (a.cmpn(1) === 0) {\n res = x1;\n } else {\n res = x2;\n }\n\n if (res.cmpn(0) < 0) {\n res.iadd(p);\n }\n\n return res;\n };\n\n BN.prototype.gcd = function gcd (num) {\n if (this.isZero()) return num.abs();\n if (num.isZero()) return this.abs();\n\n var a = this.clone();\n var b = num.clone();\n a.negative = 0;\n b.negative = 0;\n\n // Remove common factor of two\n for (var shift = 0; a.isEven() && b.isEven(); shift++) {\n a.iushrn(1);\n b.iushrn(1);\n }\n\n do {\n while (a.isEven()) {\n a.iushrn(1);\n }\n while (b.isEven()) {\n b.iushrn(1);\n }\n\n var r = a.cmp(b);\n if (r < 0) {\n // Swap `a` and `b` to make `a` always bigger than `b`\n var t = a;\n a = b;\n b = t;\n } else if (r === 0 || b.cmpn(1) === 0) {\n break;\n }\n\n a.isub(b);\n } while (true);\n\n return b.iushln(shift);\n };\n\n // Invert number in the field F(num)\n BN.prototype.invm = function invm (num) {\n return this.egcd(num).a.umod(num);\n };\n\n BN.prototype.isEven = function isEven () {\n return (this.words[0] & 1) === 0;\n };\n\n BN.prototype.isOdd = function isOdd () {\n return (this.words[0] & 1) === 1;\n };\n\n // And first word and num\n BN.prototype.andln = function andln (num) {\n return this.words[0] & num;\n };\n\n // Increment at the bit position in-line\n BN.prototype.bincn = function bincn (bit) {\n assert(typeof bit === 'number');\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) {\n this._expand(s + 1);\n this.words[s] |= q;\n return this;\n }\n\n // Add bit and propagate, if needed\n var carry = q;\n for (var i = s; carry !== 0 && i < this.length; i++) {\n var w = this.words[i] | 0;\n w += carry;\n carry = w >>> 26;\n w &= 0x3ffffff;\n this.words[i] = w;\n }\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n return this;\n };\n\n BN.prototype.isZero = function isZero () {\n return this.length === 1 && this.words[0] === 0;\n };\n\n BN.prototype.cmpn = function cmpn (num) {\n var negative = num < 0;\n\n if (this.negative !== 0 && !negative) return -1;\n if (this.negative === 0 && negative) return 1;\n\n this.strip();\n\n var res;\n if (this.length > 1) {\n res = 1;\n } else {\n if (negative) {\n num = -num;\n }\n\n assert(num <= 0x3ffffff, 'Number is too big');\n\n var w = this.words[0] | 0;\n res = w === num ? 0 : w < num ? -1 : 1;\n }\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Compare two numbers and return:\n // 1 - if `this` > `num`\n // 0 - if `this` == `num`\n // -1 - if `this` < `num`\n BN.prototype.cmp = function cmp (num) {\n if (this.negative !== 0 && num.negative === 0) return -1;\n if (this.negative === 0 && num.negative !== 0) return 1;\n\n var res = this.ucmp(num);\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Unsigned comparison\n BN.prototype.ucmp = function ucmp (num) {\n // At this point both numbers have the same sign\n if (this.length > num.length) return 1;\n if (this.length < num.length) return -1;\n\n var res = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var a = this.words[i] | 0;\n var b = num.words[i] | 0;\n\n if (a === b) continue;\n if (a < b) {\n res = -1;\n } else if (a > b) {\n res = 1;\n }\n break;\n }\n return res;\n };\n\n BN.prototype.gtn = function gtn (num) {\n return this.cmpn(num) === 1;\n };\n\n BN.prototype.gt = function gt (num) {\n return this.cmp(num) === 1;\n };\n\n BN.prototype.gten = function gten (num) {\n return this.cmpn(num) >= 0;\n };\n\n BN.prototype.gte = function gte (num) {\n return this.cmp(num) >= 0;\n };\n\n BN.prototype.ltn = function ltn (num) {\n return this.cmpn(num) === -1;\n };\n\n BN.prototype.lt = function lt (num) {\n return this.cmp(num) === -1;\n };\n\n BN.prototype.lten = function lten (num) {\n return this.cmpn(num) <= 0;\n };\n\n BN.prototype.lte = function lte (num) {\n return this.cmp(num) <= 0;\n };\n\n BN.prototype.eqn = function eqn (num) {\n return this.cmpn(num) === 0;\n };\n\n BN.prototype.eq = function eq (num) {\n return this.cmp(num) === 0;\n };\n\n //\n // A reduce context, could be using montgomery or something better, depending\n // on the `m` itself.\n //\n BN.red = function red (num) {\n return new Red(num);\n };\n\n BN.prototype.toRed = function toRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n assert(this.negative === 0, 'red works only with positives');\n return ctx.convertTo(this)._forceRed(ctx);\n };\n\n BN.prototype.fromRed = function fromRed () {\n assert(this.red, 'fromRed works only with numbers in reduction context');\n return this.red.convertFrom(this);\n };\n\n BN.prototype._forceRed = function _forceRed (ctx) {\n this.red = ctx;\n return this;\n };\n\n BN.prototype.forceRed = function forceRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n return this._forceRed(ctx);\n };\n\n BN.prototype.redAdd = function redAdd (num) {\n assert(this.red, 'redAdd works only with red numbers');\n return this.red.add(this, num);\n };\n\n BN.prototype.redIAdd = function redIAdd (num) {\n assert(this.red, 'redIAdd works only with red numbers');\n return this.red.iadd(this, num);\n };\n\n BN.prototype.redSub = function redSub (num) {\n assert(this.red, 'redSub works only with red numbers');\n return this.red.sub(this, num);\n };\n\n BN.prototype.redISub = function redISub (num) {\n assert(this.red, 'redISub works only with red numbers');\n return this.red.isub(this, num);\n };\n\n BN.prototype.redShl = function redShl (num) {\n assert(this.red, 'redShl works only with red numbers');\n return this.red.shl(this, num);\n };\n\n BN.prototype.redMul = function redMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.mul(this, num);\n };\n\n BN.prototype.redIMul = function redIMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.imul(this, num);\n };\n\n BN.prototype.redSqr = function redSqr () {\n assert(this.red, 'redSqr works only with red numbers');\n this.red._verify1(this);\n return this.red.sqr(this);\n };\n\n BN.prototype.redISqr = function redISqr () {\n assert(this.red, 'redISqr works only with red numbers');\n this.red._verify1(this);\n return this.red.isqr(this);\n };\n\n // Square root over p\n BN.prototype.redSqrt = function redSqrt () {\n assert(this.red, 'redSqrt works only with red numbers');\n this.red._verify1(this);\n return this.red.sqrt(this);\n };\n\n BN.prototype.redInvm = function redInvm () {\n assert(this.red, 'redInvm works only with red numbers');\n this.red._verify1(this);\n return this.red.invm(this);\n };\n\n // Return negative clone of `this` % `red modulo`\n BN.prototype.redNeg = function redNeg () {\n assert(this.red, 'redNeg works only with red numbers');\n this.red._verify1(this);\n return this.red.neg(this);\n };\n\n BN.prototype.redPow = function redPow (num) {\n assert(this.red && !num.red, 'redPow(normalNum)');\n this.red._verify1(this);\n return this.red.pow(this, num);\n };\n\n // Prime numbers with efficient reduction\n var primes = {\n k256: null,\n p224: null,\n p192: null,\n p25519: null\n };\n\n // Pseudo-Mersenne prime\n function MPrime (name, p) {\n // P = 2 ^ N - K\n this.name = name;\n this.p = new BN(p, 16);\n this.n = this.p.bitLength();\n this.k = new BN(1).iushln(this.n).isub(this.p);\n\n this.tmp = this._tmp();\n }\n\n MPrime.prototype._tmp = function _tmp () {\n var tmp = new BN(null);\n tmp.words = new Array(Math.ceil(this.n / 13));\n return tmp;\n };\n\n MPrime.prototype.ireduce = function ireduce (num) {\n // Assumes that `num` is less than `P^2`\n // num = HI * (2 ^ N - K) + HI * K + LO = HI * K + LO (mod P)\n var r = num;\n var rlen;\n\n do {\n this.split(r, this.tmp);\n r = this.imulK(r);\n r = r.iadd(this.tmp);\n rlen = r.bitLength();\n } while (rlen > this.n);\n\n var cmp = rlen < this.n ? -1 : r.ucmp(this.p);\n if (cmp === 0) {\n r.words[0] = 0;\n r.length = 1;\n } else if (cmp > 0) {\n r.isub(this.p);\n } else {\n r.strip();\n }\n\n return r;\n };\n\n MPrime.prototype.split = function split (input, out) {\n input.iushrn(this.n, 0, out);\n };\n\n MPrime.prototype.imulK = function imulK (num) {\n return num.imul(this.k);\n };\n\n function K256 () {\n MPrime.call(\n this,\n 'k256',\n 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f');\n }\n inherits(K256, MPrime);\n\n K256.prototype.split = function split (input, output) {\n // 256 = 9 * 26 + 22\n var mask = 0x3fffff;\n\n var outLen = Math.min(input.length, 9);\n for (var i = 0; i < outLen; i++) {\n output.words[i] = input.words[i];\n }\n output.length = outLen;\n\n if (input.length <= 9) {\n input.words[0] = 0;\n input.length = 1;\n return;\n }\n\n // Shift by 9 limbs\n var prev = input.words[9];\n output.words[output.length++] = prev & mask;\n\n for (i = 10; i < input.length; i++) {\n var next = input.words[i] | 0;\n input.words[i - 10] = ((next & mask) << 4) | (prev >>> 22);\n prev = next;\n }\n prev >>>= 22;\n input.words[i - 10] = prev;\n if (prev === 0 && input.length > 10) {\n input.length -= 10;\n } else {\n input.length -= 9;\n }\n };\n\n K256.prototype.imulK = function imulK (num) {\n // K = 0x1000003d1 = [ 0x40, 0x3d1 ]\n num.words[num.length] = 0;\n num.words[num.length + 1] = 0;\n num.length += 2;\n\n // bounded at: 0x40 * 0x3ffffff + 0x3d0 = 0x100000390\n var lo = 0;\n for (var i = 0; i < num.length; i++) {\n var w = num.words[i] | 0;\n lo += w * 0x3d1;\n num.words[i] = lo & 0x3ffffff;\n lo = w * 0x40 + ((lo / 0x4000000) | 0);\n }\n\n // Fast length reduction\n if (num.words[num.length - 1] === 0) {\n num.length--;\n if (num.words[num.length - 1] === 0) {\n num.length--;\n }\n }\n return num;\n };\n\n function P224 () {\n MPrime.call(\n this,\n 'p224',\n 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001');\n }\n inherits(P224, MPrime);\n\n function P192 () {\n MPrime.call(\n this,\n 'p192',\n 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff');\n }\n inherits(P192, MPrime);\n\n function P25519 () {\n // 2 ^ 255 - 19\n MPrime.call(\n this,\n '25519',\n '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed');\n }\n inherits(P25519, MPrime);\n\n P25519.prototype.imulK = function imulK (num) {\n // K = 0x13\n var carry = 0;\n for (var i = 0; i < num.length; i++) {\n var hi = (num.words[i] | 0) * 0x13 + carry;\n var lo = hi & 0x3ffffff;\n hi >>>= 26;\n\n num.words[i] = lo;\n carry = hi;\n }\n if (carry !== 0) {\n num.words[num.length++] = carry;\n }\n return num;\n };\n\n // Exported mostly for testing purposes, use plain name instead\n BN._prime = function prime (name) {\n // Cached version of prime\n if (primes[name]) return primes[name];\n\n var prime;\n if (name === 'k256') {\n prime = new K256();\n } else if (name === 'p224') {\n prime = new P224();\n } else if (name === 'p192') {\n prime = new P192();\n } else if (name === 'p25519') {\n prime = new P25519();\n } else {\n throw new Error('Unknown prime ' + name);\n }\n primes[name] = prime;\n\n return prime;\n };\n\n //\n // Base reduction engine\n //\n function Red (m) {\n if (typeof m === 'string') {\n var prime = BN._prime(m);\n this.m = prime.p;\n this.prime = prime;\n } else {\n assert(m.gtn(1), 'modulus must be greater than 1');\n this.m = m;\n this.prime = null;\n }\n }\n\n Red.prototype._verify1 = function _verify1 (a) {\n assert(a.negative === 0, 'red works only with positives');\n assert(a.red, 'red works only with red numbers');\n };\n\n Red.prototype._verify2 = function _verify2 (a, b) {\n assert((a.negative | b.negative) === 0, 'red works only with positives');\n assert(a.red && a.red === b.red,\n 'red works only with red numbers');\n };\n\n Red.prototype.imod = function imod (a) {\n if (this.prime) return this.prime.ireduce(a)._forceRed(this);\n return a.umod(this.m)._forceRed(this);\n };\n\n Red.prototype.neg = function neg (a) {\n if (a.isZero()) {\n return a.clone();\n }\n\n return this.m.sub(a)._forceRed(this);\n };\n\n Red.prototype.add = function add (a, b) {\n this._verify2(a, b);\n\n var res = a.add(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.iadd = function iadd (a, b) {\n this._verify2(a, b);\n\n var res = a.iadd(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res;\n };\n\n Red.prototype.sub = function sub (a, b) {\n this._verify2(a, b);\n\n var res = a.sub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.isub = function isub (a, b) {\n this._verify2(a, b);\n\n var res = a.isub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res;\n };\n\n Red.prototype.shl = function shl (a, num) {\n this._verify1(a);\n return this.imod(a.ushln(num));\n };\n\n Red.prototype.imul = function imul (a, b) {\n this._verify2(a, b);\n return this.imod(a.imul(b));\n };\n\n Red.prototype.mul = function mul (a, b) {\n this._verify2(a, b);\n return this.imod(a.mul(b));\n };\n\n Red.prototype.isqr = function isqr (a) {\n return this.imul(a, a.clone());\n };\n\n Red.prototype.sqr = function sqr (a) {\n return this.mul(a, a);\n };\n\n Red.prototype.sqrt = function sqrt (a) {\n if (a.isZero()) return a.clone();\n\n var mod3 = this.m.andln(3);\n assert(mod3 % 2 === 1);\n\n // Fast case\n if (mod3 === 3) {\n var pow = this.m.add(new BN(1)).iushrn(2);\n return this.pow(a, pow);\n }\n\n // Tonelli-Shanks algorithm (Totally unoptimized and slow)\n //\n // Find Q and S, that Q * 2 ^ S = (P - 1)\n var q = this.m.subn(1);\n var s = 0;\n while (!q.isZero() && q.andln(1) === 0) {\n s++;\n q.iushrn(1);\n }\n assert(!q.isZero());\n\n var one = new BN(1).toRed(this);\n var nOne = one.redNeg();\n\n // Find quadratic non-residue\n // NOTE: Max is such because of generalized Riemann hypothesis.\n var lpow = this.m.subn(1).iushrn(1);\n var z = this.m.bitLength();\n z = new BN(2 * z * z).toRed(this);\n\n while (this.pow(z, lpow).cmp(nOne) !== 0) {\n z.redIAdd(nOne);\n }\n\n var c = this.pow(z, q);\n var r = this.pow(a, q.addn(1).iushrn(1));\n var t = this.pow(a, q);\n var m = s;\n while (t.cmp(one) !== 0) {\n var tmp = t;\n for (var i = 0; tmp.cmp(one) !== 0; i++) {\n tmp = tmp.redSqr();\n }\n assert(i < m);\n var b = this.pow(c, new BN(1).iushln(m - i - 1));\n\n r = r.redMul(b);\n c = b.redSqr();\n t = t.redMul(c);\n m = i;\n }\n\n return r;\n };\n\n Red.prototype.invm = function invm (a) {\n var inv = a._invmp(this.m);\n if (inv.negative !== 0) {\n inv.negative = 0;\n return this.imod(inv).redNeg();\n } else {\n return this.imod(inv);\n }\n };\n\n Red.prototype.pow = function pow (a, num) {\n if (num.isZero()) return new BN(1).toRed(this);\n if (num.cmpn(1) === 0) return a.clone();\n\n var windowSize = 4;\n var wnd = new Array(1 << windowSize);\n wnd[0] = new BN(1).toRed(this);\n wnd[1] = a;\n for (var i = 2; i < wnd.length; i++) {\n wnd[i] = this.mul(wnd[i - 1], a);\n }\n\n var res = wnd[0];\n var current = 0;\n var currentLen = 0;\n var start = num.bitLength() % 26;\n if (start === 0) {\n start = 26;\n }\n\n for (i = num.length - 1; i >= 0; i--) {\n var word = num.words[i];\n for (var j = start - 1; j >= 0; j--) {\n var bit = (word >> j) & 1;\n if (res !== wnd[0]) {\n res = this.sqr(res);\n }\n\n if (bit === 0 && current === 0) {\n currentLen = 0;\n continue;\n }\n\n current <<= 1;\n current |= bit;\n currentLen++;\n if (currentLen !== windowSize && (i !== 0 || j !== 0)) continue;\n\n res = this.mul(res, wnd[current]);\n currentLen = 0;\n current = 0;\n }\n start = 26;\n }\n\n return res;\n };\n\n Red.prototype.convertTo = function convertTo (num) {\n var r = num.umod(this.m);\n\n return r === num ? r.clone() : r;\n };\n\n Red.prototype.convertFrom = function convertFrom (num) {\n var res = num.clone();\n res.red = null;\n return res;\n };\n\n //\n // Montgomery method engine\n //\n\n BN.mont = function mont (num) {\n return new Mont(num);\n };\n\n function Mont (m) {\n Red.call(this, m);\n\n this.shift = this.m.bitLength();\n if (this.shift % 26 !== 0) {\n this.shift += 26 - (this.shift % 26);\n }\n\n this.r = new BN(1).iushln(this.shift);\n this.r2 = this.imod(this.r.sqr());\n this.rinv = this.r._invmp(this.m);\n\n this.minv = this.rinv.mul(this.r).isubn(1).div(this.m);\n this.minv = this.minv.umod(this.r);\n this.minv = this.r.sub(this.minv);\n }\n inherits(Mont, Red);\n\n Mont.prototype.convertTo = function convertTo (num) {\n return this.imod(num.ushln(this.shift));\n };\n\n Mont.prototype.convertFrom = function convertFrom (num) {\n var r = this.imod(num.mul(this.rinv));\n r.red = null;\n return r;\n };\n\n Mont.prototype.imul = function imul (a, b) {\n if (a.isZero() || b.isZero()) {\n a.words[0] = 0;\n a.length = 1;\n return a;\n }\n\n var t = a.imul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.mul = function mul (a, b) {\n if (a.isZero() || b.isZero()) return new BN(0)._forceRed(this);\n\n var t = a.mul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.invm = function invm (a) {\n // (AR)^-1 * R^2 = (A^-1 * R^-1) * R^2 = A^-1 * R\n var res = this.imod(a._invmp(this.m).mul(this.r2));\n return res._forceRed(this);\n };\n})(typeof module === 'undefined' || module, this);\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toRatio = exports.dbToRatio = exports.ratioToDb = void 0;\nconst Windows1292Decoder_1 = require(\"./Windows1292Decoder\");\nclass Util {\n /**\n *\n * @param buffer\n * @param start\n * @param end\n * @param encoding // ToDo: ts.enum\n * @return {number}\n */\n static findZero(buffer, start, end, encoding) {\n let i = start;\n if (encoding === 'utf16') {\n while (buffer[i] !== 0 || buffer[i + 1] !== 0) {\n if (i >= end)\n return end;\n i += 2;\n }\n return i;\n }\n else {\n while (buffer[i] !== 0) {\n if (i >= end)\n return end;\n i++;\n }\n return i;\n }\n }\n static trimRightNull(x) {\n const pos0 = x.indexOf('\\0');\n return pos0 === -1 ? x : x.substr(0, pos0);\n }\n static swapBytes(buffer) {\n const l = buffer.length;\n if ((l & 1) !== 0)\n throw new Error('Buffer length must be even');\n for (let i = 0; i < l; i += 2) {\n const a = buffer[i];\n buffer[i] = buffer[i + 1];\n buffer[i + 1] = a;\n }\n return buffer;\n }\n static readUTF16String(buffer) {\n let offset = 0;\n if (buffer[0] === 0xFE && buffer[1] === 0xFF) { // big endian\n buffer = Util.swapBytes(buffer);\n offset = 2;\n }\n else if (buffer[0] === 0xFF && buffer[1] === 0xFE) { // little endian\n offset = 2;\n }\n return buffer.toString('ucs2', offset);\n }\n /**\n *\n * @param buffer Decoder input data\n * @param encoding 'utf16le' | 'utf16' | 'utf8' | 'iso-8859-1'\n * @return {string}\n */\n static decodeString(buffer, encoding) {\n // annoying workaround for a double BOM issue\n // https://github.com/leetreveil/musicmetadata/issues/84\n if (buffer[0] === 0xFF && buffer[1] === 0xFE && buffer[2] === 0xFE && buffer[3] === 0xFF) {\n buffer = buffer.slice(2);\n }\n if (encoding === 'utf16le' || encoding === 'utf16') {\n return Util.readUTF16String(buffer);\n }\n else if (encoding === 'utf8') {\n return buffer.toString('utf8');\n }\n else if (encoding === 'iso-8859-1') {\n return Windows1292Decoder_1.Windows1292Decoder.decode(buffer);\n }\n throw Error(encoding + ' encoding is not supported!');\n }\n static stripNulls(str) {\n str = str.replace(/^\\x00+/g, '');\n str = str.replace(/\\x00+$/g, '');\n return str;\n }\n /**\n * Read bit-aligned number start from buffer\n * Total offset in bits = byteOffset * 8 + bitOffset\n * @param buf Byte buffer\n * @param byteOffset Starting offset in bytes\n * @param bitOffset Starting offset in bits: 0 = lsb\n * @param len Length of number in bits\n * @return {number} decoded bit aligned number\n */\n static getBitAllignedNumber(buf, byteOffset, bitOffset, len) {\n const byteOff = byteOffset + ~~(bitOffset / 8);\n const bitOff = bitOffset % 8;\n let value = buf[byteOff];\n value &= 0xff >> bitOff;\n const bitsRead = 8 - bitOff;\n const bitsLeft = len - bitsRead;\n if (bitsLeft < 0) {\n value >>= (8 - bitOff - len);\n }\n else if (bitsLeft > 0) {\n value <<= bitsLeft;\n value |= Util.getBitAllignedNumber(buf, byteOffset, bitOffset + bitsRead, bitsLeft);\n }\n return value;\n }\n /**\n * Read bit-aligned number start from buffer\n * Total offset in bits = byteOffset * 8 + bitOffset\n * @param buf Byte buffer\n * @param byteOffset Starting offset in bytes\n * @param bitOffset Starting offset in bits: 0 = most significant bit, 7 is least significant bit\n * @return {number} decoded bit aligned number\n */\n static isBitSet(buf, byteOffset, bitOffset) {\n return Util.getBitAllignedNumber(buf, byteOffset, bitOffset, 1) === 1;\n }\n static a2hex(str) {\n const arr = [];\n for (let i = 0, l = str.length; i < l; i++) {\n const hex = Number(str.charCodeAt(i)).toString(16);\n arr.push(hex.length === 1 ? '0' + hex : hex);\n }\n return arr.join(' ');\n }\n}\nexports.default = Util;\nUtil.strtokBITSET = {\n get: (buf, off, bit) => {\n return (buf[off] & (1 << bit)) !== 0;\n },\n len: 1\n};\n/**\n * Convert power ratio to DB\n * ratio: [0..1]\n */\nfunction ratioToDb(ratio) {\n return 10 * Math.log10(ratio);\n}\nexports.ratioToDb = ratioToDb;\n/**\n * Convert dB to ratio\n * db Decibels\n */\nfunction dbToRatio(dB) {\n return Math.pow(10, dB / 10);\n}\nexports.dbToRatio = dbToRatio;\n/**\n * Convert replay gain to ratio and Decibel\n * @param value string holding a ratio like '0.034' or '-7.54 dB'\n */\nfunction toRatio(value) {\n const ps = value.split(' ').map(p => p.trim().toLowerCase());\n // @ts-ignore\n if (ps.length >= 1) {\n const v = parseFloat(ps[0]);\n if (ps.length === 2 && ps[1] === 'db') {\n return {\n dB: v,\n ratio: dbToRatio(v)\n };\n }\n else {\n return {\n dB: ratioToDb(v),\n ratio: v\n };\n }\n }\n}\nexports.toRatio = toRatio;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport merge from './merge';\n\nfunction compose() {\n for (var _len = arguments.length, styles = new Array(_len), _key = 0; _key < _len; _key++) {\n styles[_key] = arguments[_key];\n }\n\n var fn = function fn(props) {\n return styles.reduce(function (acc, style) {\n var output = style(props);\n\n if (output) {\n return merge(acc, output);\n }\n\n return acc;\n }, {});\n }; // Alternative approach that doesn't yield any performance gain.\n // const handlers = styles.reduce((acc, style) => {\n // style.filterProps.forEach(prop => {\n // acc[prop] = style;\n // });\n // return acc;\n // }, {});\n // const fn = props => {\n // return Object.keys(props).reduce((acc, prop) => {\n // if (handlers[prop]) {\n // return merge(acc, handlers[prop](props));\n // }\n // return acc;\n // }, {});\n // };\n\n\n fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce(function (acc, style) {\n return _extends(acc, style.propTypes);\n }, {}) : {};\n fn.filterProps = styles.reduce(function (acc, style) {\n return acc.concat(style.filterProps);\n }, []);\n return fn;\n}\n\nexport default compose;","export default function ownerDocument(node) {\n return node && node.ownerDocument || document;\n}","import _extends from '@babel/runtime/helpers/esm/extends';\nimport isInBrowser from 'is-in-browser';\nimport warning from 'tiny-warning';\nimport _createClass from '@babel/runtime/helpers/esm/createClass';\nimport _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized';\nimport _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';\n\nvar plainObjectConstrurctor = {}.constructor;\nfunction cloneStyle(style) {\n if (style == null || typeof style !== 'object') return style;\n if (Array.isArray(style)) return style.map(cloneStyle);\n if (style.constructor !== plainObjectConstrurctor) return style;\n var newStyle = {};\n\n for (var name in style) {\n newStyle[name] = cloneStyle(style[name]);\n }\n\n return newStyle;\n}\n\n/**\n * Create a rule instance.\n */\n\nfunction createRule(name, decl, options) {\n if (name === void 0) {\n name = 'unnamed';\n }\n\n var jss = options.jss;\n var declCopy = cloneStyle(decl);\n var rule = jss.plugins.onCreateRule(name, declCopy, options);\n if (rule) return rule; // It is an at-rule and it has no instance.\n\n if (name[0] === '@') {\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Unknown rule \" + name) : void 0;\n }\n\n return null;\n}\n\nvar join = function join(value, by) {\n var result = '';\n\n for (var i = 0; i < value.length; i++) {\n // Remove !important from the value, it will be readded later.\n if (value[i] === '!important') break;\n if (result) result += by;\n result += value[i];\n }\n\n return result;\n};\n\n/**\n * Converts array values to string.\n *\n * `margin: [['5px', '10px']]` > `margin: 5px 10px;`\n * `border: ['1px', '2px']` > `border: 1px, 2px;`\n * `margin: [['5px', '10px'], '!important']` > `margin: 5px 10px !important;`\n * `color: ['red', !important]` > `color: red !important;`\n */\nvar toCssValue = function toCssValue(value, ignoreImportant) {\n if (ignoreImportant === void 0) {\n ignoreImportant = false;\n }\n\n if (!Array.isArray(value)) return value;\n var cssValue = ''; // Support space separated values via `[['5px', '10px']]`.\n\n if (Array.isArray(value[0])) {\n for (var i = 0; i < value.length; i++) {\n if (value[i] === '!important') break;\n if (cssValue) cssValue += ', ';\n cssValue += join(value[i], ' ');\n }\n } else cssValue = join(value, ', '); // Add !important, because it was ignored.\n\n\n if (!ignoreImportant && value[value.length - 1] === '!important') {\n cssValue += ' !important';\n }\n\n return cssValue;\n};\n\n/**\n * Indent a string.\n * http://jsperf.com/array-join-vs-for\n */\nfunction indentStr(str, indent) {\n var result = '';\n\n for (var index = 0; index < indent; index++) {\n result += ' ';\n }\n\n return result + str;\n}\n/**\n * Converts a Rule to CSS string.\n */\n\n\nfunction toCss(selector, style, options) {\n if (options === void 0) {\n options = {};\n }\n\n var result = '';\n if (!style) return result;\n var _options = options,\n _options$indent = _options.indent,\n indent = _options$indent === void 0 ? 0 : _options$indent;\n var fallbacks = style.fallbacks;\n if (selector) indent++; // Apply fallbacks first.\n\n if (fallbacks) {\n // Array syntax {fallbacks: [{prop: value}]}\n if (Array.isArray(fallbacks)) {\n for (var index = 0; index < fallbacks.length; index++) {\n var fallback = fallbacks[index];\n\n for (var prop in fallback) {\n var value = fallback[prop];\n\n if (value != null) {\n if (result) result += '\\n';\n result += \"\" + indentStr(prop + \": \" + toCssValue(value) + \";\", indent);\n }\n }\n }\n } else {\n // Object syntax {fallbacks: {prop: value}}\n for (var _prop in fallbacks) {\n var _value = fallbacks[_prop];\n\n if (_value != null) {\n if (result) result += '\\n';\n result += \"\" + indentStr(_prop + \": \" + toCssValue(_value) + \";\", indent);\n }\n }\n }\n }\n\n for (var _prop2 in style) {\n var _value2 = style[_prop2];\n\n if (_value2 != null && _prop2 !== 'fallbacks') {\n if (result) result += '\\n';\n result += \"\" + indentStr(_prop2 + \": \" + toCssValue(_value2) + \";\", indent);\n }\n } // Allow empty style in this case, because properties will be added dynamically.\n\n\n if (!result && !options.allowEmpty) return result; // When rule is being stringified before selector was defined.\n\n if (!selector) return result;\n indent--;\n if (result) result = \"\\n\" + result + \"\\n\";\n return indentStr(selector + \" {\" + result, indent) + indentStr('}', indent);\n}\n\nvar escapeRegex = /([[\\].#*$><+~=|^:(),\"'`\\s])/g;\nvar nativeEscape = typeof CSS !== 'undefined' && CSS.escape;\nvar escape = (function (str) {\n return nativeEscape ? nativeEscape(str) : str.replace(escapeRegex, '\\\\$1');\n});\n\nvar BaseStyleRule =\n/*#__PURE__*/\nfunction () {\n function BaseStyleRule(key, style, options) {\n this.type = 'style';\n this.key = void 0;\n this.isProcessed = false;\n this.style = void 0;\n this.renderer = void 0;\n this.renderable = void 0;\n this.options = void 0;\n var sheet = options.sheet,\n Renderer = options.Renderer;\n this.key = key;\n this.options = options;\n this.style = style;\n if (sheet) this.renderer = sheet.renderer;else if (Renderer) this.renderer = new Renderer();\n }\n /**\n * Get or set a style property.\n */\n\n\n var _proto = BaseStyleRule.prototype;\n\n _proto.prop = function prop(name, value, options) {\n // It's a getter.\n if (value === undefined) return this.style[name]; // Don't do anything if the value has not changed.\n\n var force = options ? options.force : false;\n if (!force && this.style[name] === value) return this;\n var newValue = value;\n\n if (!options || options.process !== false) {\n newValue = this.options.jss.plugins.onChangeValue(value, name, this);\n }\n\n var isEmpty = newValue == null || newValue === false;\n var isDefined = name in this.style; // Value is empty and wasn't defined before.\n\n if (isEmpty && !isDefined && !force) return this; // We are going to remove this value.\n\n var remove = isEmpty && isDefined;\n if (remove) delete this.style[name];else this.style[name] = newValue; // Renderable is defined if StyleSheet option `link` is true.\n\n if (this.renderable && this.renderer) {\n if (remove) this.renderer.removeProperty(this.renderable, name);else this.renderer.setProperty(this.renderable, name, newValue);\n return this;\n }\n\n var sheet = this.options.sheet;\n\n if (sheet && sheet.attached) {\n process.env.NODE_ENV !== \"production\" ? warning(false, '[JSS] Rule is not linked. Missing sheet option \"link: true\".') : void 0;\n }\n\n return this;\n };\n\n return BaseStyleRule;\n}();\nvar StyleRule =\n/*#__PURE__*/\nfunction (_BaseStyleRule) {\n _inheritsLoose(StyleRule, _BaseStyleRule);\n\n function StyleRule(key, style, options) {\n var _this;\n\n _this = _BaseStyleRule.call(this, key, style, options) || this;\n _this.selectorText = void 0;\n _this.id = void 0;\n _this.renderable = void 0;\n var selector = options.selector,\n scoped = options.scoped,\n sheet = options.sheet,\n generateId = options.generateId;\n\n if (selector) {\n _this.selectorText = selector;\n } else if (scoped !== false) {\n _this.id = generateId(_assertThisInitialized(_assertThisInitialized(_this)), sheet);\n _this.selectorText = \".\" + escape(_this.id);\n }\n\n return _this;\n }\n /**\n * Set selector string.\n * Attention: use this with caution. Most browsers didn't implement\n * selectorText setter, so this may result in rerendering of entire Style Sheet.\n */\n\n\n var _proto2 = StyleRule.prototype;\n\n /**\n * Apply rule to an element inline.\n */\n _proto2.applyTo = function applyTo(renderable) {\n var renderer = this.renderer;\n\n if (renderer) {\n var json = this.toJSON();\n\n for (var prop in json) {\n renderer.setProperty(renderable, prop, json[prop]);\n }\n }\n\n return this;\n }\n /**\n * Returns JSON representation of the rule.\n * Fallbacks are not supported.\n * Useful for inline styles.\n */\n ;\n\n _proto2.toJSON = function toJSON() {\n var json = {};\n\n for (var prop in this.style) {\n var value = this.style[prop];\n if (typeof value !== 'object') json[prop] = value;else if (Array.isArray(value)) json[prop] = toCssValue(value);\n }\n\n return json;\n }\n /**\n * Generates a CSS string.\n */\n ;\n\n _proto2.toString = function toString(options) {\n var sheet = this.options.sheet;\n var link = sheet ? sheet.options.link : false;\n var opts = link ? _extends({}, options, {\n allowEmpty: true\n }) : options;\n return toCss(this.selectorText, this.style, opts);\n };\n\n _createClass(StyleRule, [{\n key: \"selector\",\n set: function set(selector) {\n if (selector === this.selectorText) return;\n this.selectorText = selector;\n var renderer = this.renderer,\n renderable = this.renderable;\n if (!renderable || !renderer) return;\n var hasChanged = renderer.setSelector(renderable, selector); // If selector setter is not implemented, rerender the rule.\n\n if (!hasChanged) {\n renderer.replaceRule(renderable, this);\n }\n }\n /**\n * Get selector string.\n */\n ,\n get: function get() {\n return this.selectorText;\n }\n }]);\n\n return StyleRule;\n}(BaseStyleRule);\nvar pluginStyleRule = {\n onCreateRule: function onCreateRule(name, style, options) {\n if (name[0] === '@' || options.parent && options.parent.type === 'keyframes') {\n return null;\n }\n\n return new StyleRule(name, style, options);\n }\n};\n\nvar defaultToStringOptions = {\n indent: 1,\n children: true\n};\nvar atRegExp = /@([\\w-]+)/;\n/**\n * Conditional rule for @media, @supports\n */\n\nvar ConditionalRule =\n/*#__PURE__*/\nfunction () {\n function ConditionalRule(key, styles, options) {\n this.type = 'conditional';\n this.at = void 0;\n this.key = void 0;\n this.query = void 0;\n this.rules = void 0;\n this.options = void 0;\n this.isProcessed = false;\n this.renderable = void 0;\n this.key = key;\n var atMatch = key.match(atRegExp);\n this.at = atMatch ? atMatch[1] : 'unknown'; // Key might contain a unique suffix in case the `name` passed by user was duplicate.\n\n this.query = options.name || \"@\" + this.at;\n this.options = options;\n this.rules = new RuleList(_extends({}, options, {\n parent: this\n }));\n\n for (var name in styles) {\n this.rules.add(name, styles[name]);\n }\n\n this.rules.process();\n }\n /**\n * Get a rule.\n */\n\n\n var _proto = ConditionalRule.prototype;\n\n _proto.getRule = function getRule(name) {\n return this.rules.get(name);\n }\n /**\n * Get index of a rule.\n */\n ;\n\n _proto.indexOf = function indexOf(rule) {\n return this.rules.indexOf(rule);\n }\n /**\n * Create and register rule, run plugins.\n */\n ;\n\n _proto.addRule = function addRule(name, style, options) {\n var rule = this.rules.add(name, style, options);\n if (!rule) return null;\n this.options.jss.plugins.onProcessRule(rule);\n return rule;\n }\n /**\n * Generates a CSS string.\n */\n ;\n\n _proto.toString = function toString(options) {\n if (options === void 0) {\n options = defaultToStringOptions;\n }\n\n if (options.indent == null) options.indent = defaultToStringOptions.indent;\n if (options.children == null) options.children = defaultToStringOptions.children;\n\n if (options.children === false) {\n return this.query + \" {}\";\n }\n\n var children = this.rules.toString(options);\n return children ? this.query + \" {\\n\" + children + \"\\n}\" : '';\n };\n\n return ConditionalRule;\n}();\nvar keyRegExp = /@media|@supports\\s+/;\nvar pluginConditionalRule = {\n onCreateRule: function onCreateRule(key, styles, options) {\n return keyRegExp.test(key) ? new ConditionalRule(key, styles, options) : null;\n }\n};\n\nvar defaultToStringOptions$1 = {\n indent: 1,\n children: true\n};\nvar nameRegExp = /@keyframes\\s+([\\w-]+)/;\n/**\n * Rule for @keyframes\n */\n\nvar KeyframesRule =\n/*#__PURE__*/\nfunction () {\n function KeyframesRule(key, frames, options) {\n this.type = 'keyframes';\n this.at = '@keyframes';\n this.key = void 0;\n this.name = void 0;\n this.id = void 0;\n this.rules = void 0;\n this.options = void 0;\n this.isProcessed = false;\n this.renderable = void 0;\n var nameMatch = key.match(nameRegExp);\n\n if (nameMatch && nameMatch[1]) {\n this.name = nameMatch[1];\n } else {\n this.name = 'noname';\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Bad keyframes name \" + key) : void 0;\n }\n\n this.key = this.type + \"-\" + this.name;\n this.options = options;\n var scoped = options.scoped,\n sheet = options.sheet,\n generateId = options.generateId;\n this.id = scoped === false ? this.name : escape(generateId(this, sheet));\n this.rules = new RuleList(_extends({}, options, {\n parent: this\n }));\n\n for (var name in frames) {\n this.rules.add(name, frames[name], _extends({}, options, {\n parent: this\n }));\n }\n\n this.rules.process();\n }\n /**\n * Generates a CSS string.\n */\n\n\n var _proto = KeyframesRule.prototype;\n\n _proto.toString = function toString(options) {\n if (options === void 0) {\n options = defaultToStringOptions$1;\n }\n\n if (options.indent == null) options.indent = defaultToStringOptions$1.indent;\n if (options.children == null) options.children = defaultToStringOptions$1.children;\n\n if (options.children === false) {\n return this.at + \" \" + this.id + \" {}\";\n }\n\n var children = this.rules.toString(options);\n if (children) children = \"\\n\" + children + \"\\n\";\n return this.at + \" \" + this.id + \" {\" + children + \"}\";\n };\n\n return KeyframesRule;\n}();\nvar keyRegExp$1 = /@keyframes\\s+/;\nvar refRegExp = /\\$([\\w-]+)/g;\n\nvar findReferencedKeyframe = function findReferencedKeyframe(val, keyframes) {\n if (typeof val === 'string') {\n return val.replace(refRegExp, function (match, name) {\n if (name in keyframes) {\n return keyframes[name];\n }\n\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Referenced keyframes rule \\\"\" + name + \"\\\" is not defined.\") : void 0;\n return match;\n });\n }\n\n return val;\n};\n/**\n * Replace the reference for a animation name.\n */\n\n\nvar replaceRef = function replaceRef(style, prop, keyframes) {\n var value = style[prop];\n var refKeyframe = findReferencedKeyframe(value, keyframes);\n\n if (refKeyframe !== value) {\n style[prop] = refKeyframe;\n }\n};\n\nvar plugin = {\n onCreateRule: function onCreateRule(key, frames, options) {\n return typeof key === 'string' && keyRegExp$1.test(key) ? new KeyframesRule(key, frames, options) : null;\n },\n // Animation name ref replacer.\n onProcessStyle: function onProcessStyle(style, rule, sheet) {\n if (rule.type !== 'style' || !sheet) return style;\n if ('animation-name' in style) replaceRef(style, 'animation-name', sheet.keyframes);\n if ('animation' in style) replaceRef(style, 'animation', sheet.keyframes);\n return style;\n },\n onChangeValue: function onChangeValue(val, prop, rule) {\n var sheet = rule.options.sheet;\n\n if (!sheet) {\n return val;\n }\n\n switch (prop) {\n case 'animation':\n return findReferencedKeyframe(val, sheet.keyframes);\n\n case 'animation-name':\n return findReferencedKeyframe(val, sheet.keyframes);\n\n default:\n return val;\n }\n }\n};\n\nvar KeyframeRule =\n/*#__PURE__*/\nfunction (_BaseStyleRule) {\n _inheritsLoose(KeyframeRule, _BaseStyleRule);\n\n function KeyframeRule() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _BaseStyleRule.call.apply(_BaseStyleRule, [this].concat(args)) || this;\n _this.renderable = void 0;\n return _this;\n }\n\n var _proto = KeyframeRule.prototype;\n\n /**\n * Generates a CSS string.\n */\n _proto.toString = function toString(options) {\n var sheet = this.options.sheet;\n var link = sheet ? sheet.options.link : false;\n var opts = link ? _extends({}, options, {\n allowEmpty: true\n }) : options;\n return toCss(this.key, this.style, opts);\n };\n\n return KeyframeRule;\n}(BaseStyleRule);\nvar pluginKeyframeRule = {\n onCreateRule: function onCreateRule(key, style, options) {\n if (options.parent && options.parent.type === 'keyframes') {\n return new KeyframeRule(key, style, options);\n }\n\n return null;\n }\n};\n\nvar FontFaceRule =\n/*#__PURE__*/\nfunction () {\n function FontFaceRule(key, style, options) {\n this.type = 'font-face';\n this.at = '@font-face';\n this.key = void 0;\n this.style = void 0;\n this.options = void 0;\n this.isProcessed = false;\n this.renderable = void 0;\n this.key = key;\n this.style = style;\n this.options = options;\n }\n /**\n * Generates a CSS string.\n */\n\n\n var _proto = FontFaceRule.prototype;\n\n _proto.toString = function toString(options) {\n if (Array.isArray(this.style)) {\n var str = '';\n\n for (var index = 0; index < this.style.length; index++) {\n str += toCss(this.at, this.style[index]);\n if (this.style[index + 1]) str += '\\n';\n }\n\n return str;\n }\n\n return toCss(this.at, this.style, options);\n };\n\n return FontFaceRule;\n}();\nvar keyRegExp$2 = /@font-face/;\nvar pluginFontFaceRule = {\n onCreateRule: function onCreateRule(key, style, options) {\n return keyRegExp$2.test(key) ? new FontFaceRule(key, style, options) : null;\n }\n};\n\nvar ViewportRule =\n/*#__PURE__*/\nfunction () {\n function ViewportRule(key, style, options) {\n this.type = 'viewport';\n this.at = '@viewport';\n this.key = void 0;\n this.style = void 0;\n this.options = void 0;\n this.isProcessed = false;\n this.renderable = void 0;\n this.key = key;\n this.style = style;\n this.options = options;\n }\n /**\n * Generates a CSS string.\n */\n\n\n var _proto = ViewportRule.prototype;\n\n _proto.toString = function toString(options) {\n return toCss(this.key, this.style, options);\n };\n\n return ViewportRule;\n}();\nvar pluginViewportRule = {\n onCreateRule: function onCreateRule(key, style, options) {\n return key === '@viewport' || key === '@-ms-viewport' ? new ViewportRule(key, style, options) : null;\n }\n};\n\nvar SimpleRule =\n/*#__PURE__*/\nfunction () {\n function SimpleRule(key, value, options) {\n this.type = 'simple';\n this.key = void 0;\n this.value = void 0;\n this.options = void 0;\n this.isProcessed = false;\n this.renderable = void 0;\n this.key = key;\n this.value = value;\n this.options = options;\n }\n /**\n * Generates a CSS string.\n */\n // eslint-disable-next-line no-unused-vars\n\n\n var _proto = SimpleRule.prototype;\n\n _proto.toString = function toString(options) {\n if (Array.isArray(this.value)) {\n var str = '';\n\n for (var index = 0; index < this.value.length; index++) {\n str += this.key + \" \" + this.value[index] + \";\";\n if (this.value[index + 1]) str += '\\n';\n }\n\n return str;\n }\n\n return this.key + \" \" + this.value + \";\";\n };\n\n return SimpleRule;\n}();\nvar keysMap = {\n '@charset': true,\n '@import': true,\n '@namespace': true\n};\nvar pluginSimpleRule = {\n onCreateRule: function onCreateRule(key, value, options) {\n return key in keysMap ? new SimpleRule(key, value, options) : null;\n }\n};\n\nvar plugins = [pluginStyleRule, pluginConditionalRule, plugin, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];\n\nvar defaultUpdateOptions = {\n process: true\n};\nvar forceUpdateOptions = {\n force: true,\n process: true\n /**\n * Contains rules objects and allows adding/removing etc.\n * Is used for e.g. by `StyleSheet` or `ConditionalRule`.\n */\n\n};\n\nvar RuleList =\n/*#__PURE__*/\nfunction () {\n // Rules registry for access by .get() method.\n // It contains the same rule registered by name and by selector.\n // Original styles object.\n // Used to ensure correct rules order.\n function RuleList(options) {\n this.map = {};\n this.raw = {};\n this.index = [];\n this.counter = 0;\n this.options = void 0;\n this.classes = void 0;\n this.keyframes = void 0;\n this.options = options;\n this.classes = options.classes;\n this.keyframes = options.keyframes;\n }\n /**\n * Create and register rule.\n *\n * Will not render after Style Sheet was rendered the first time.\n */\n\n\n var _proto = RuleList.prototype;\n\n _proto.add = function add(name, decl, ruleOptions) {\n var _this$options = this.options,\n parent = _this$options.parent,\n sheet = _this$options.sheet,\n jss = _this$options.jss,\n Renderer = _this$options.Renderer,\n generateId = _this$options.generateId,\n scoped = _this$options.scoped;\n\n var options = _extends({\n classes: this.classes,\n parent: parent,\n sheet: sheet,\n jss: jss,\n Renderer: Renderer,\n generateId: generateId,\n scoped: scoped,\n name: name,\n keyframes: this.keyframes,\n selector: undefined\n }, ruleOptions); // When user uses .createStyleSheet(), duplicate names are not possible, but\n // `sheet.addRule()` opens the door for any duplicate rule name. When this happens\n // we need to make the key unique within this RuleList instance scope.\n\n\n var key = name;\n\n if (name in this.raw) {\n key = name + \"-d\" + this.counter++;\n } // We need to save the original decl before creating the rule\n // because cache plugin needs to use it as a key to return a cached rule.\n\n\n this.raw[key] = decl;\n\n if (key in this.classes) {\n // E.g. rules inside of @media container\n options.selector = \".\" + escape(this.classes[key]);\n }\n\n var rule = createRule(key, decl, options);\n if (!rule) return null;\n this.register(rule);\n var index = options.index === undefined ? this.index.length : options.index;\n this.index.splice(index, 0, rule);\n return rule;\n }\n /**\n * Get a rule.\n */\n ;\n\n _proto.get = function get(name) {\n return this.map[name];\n }\n /**\n * Delete a rule.\n */\n ;\n\n _proto.remove = function remove(rule) {\n this.unregister(rule);\n delete this.raw[rule.key];\n this.index.splice(this.index.indexOf(rule), 1);\n }\n /**\n * Get index of a rule.\n */\n ;\n\n _proto.indexOf = function indexOf(rule) {\n return this.index.indexOf(rule);\n }\n /**\n * Run `onProcessRule()` plugins on every rule.\n */\n ;\n\n _proto.process = function process() {\n var plugins = this.options.jss.plugins; // We need to clone array because if we modify the index somewhere else during a loop\n // we end up with very hard-to-track-down side effects.\n\n this.index.slice(0).forEach(plugins.onProcessRule, plugins);\n }\n /**\n * Register a rule in `.map`, `.classes` and `.keyframes` maps.\n */\n ;\n\n _proto.register = function register(rule) {\n this.map[rule.key] = rule;\n\n if (rule instanceof StyleRule) {\n this.map[rule.selector] = rule;\n if (rule.id) this.classes[rule.key] = rule.id;\n } else if (rule instanceof KeyframesRule && this.keyframes) {\n this.keyframes[rule.name] = rule.id;\n }\n }\n /**\n * Unregister a rule.\n */\n ;\n\n _proto.unregister = function unregister(rule) {\n delete this.map[rule.key];\n\n if (rule instanceof StyleRule) {\n delete this.map[rule.selector];\n delete this.classes[rule.key];\n } else if (rule instanceof KeyframesRule) {\n delete this.keyframes[rule.name];\n }\n }\n /**\n * Update the function values with a new data.\n */\n ;\n\n _proto.update = function update() {\n var name;\n var data;\n var options;\n\n if (typeof (arguments.length <= 0 ? undefined : arguments[0]) === 'string') {\n name = arguments.length <= 0 ? undefined : arguments[0]; // $FlowFixMe[invalid-tuple-index]\n\n data = arguments.length <= 1 ? undefined : arguments[1]; // $FlowFixMe[invalid-tuple-index]\n\n options = arguments.length <= 2 ? undefined : arguments[2];\n } else {\n data = arguments.length <= 0 ? undefined : arguments[0]; // $FlowFixMe[invalid-tuple-index]\n\n options = arguments.length <= 1 ? undefined : arguments[1];\n name = null;\n }\n\n if (name) {\n this.updateOne(this.map[name], data, options);\n } else {\n for (var index = 0; index < this.index.length; index++) {\n this.updateOne(this.index[index], data, options);\n }\n }\n }\n /**\n * Execute plugins, update rule props.\n */\n ;\n\n _proto.updateOne = function updateOne(rule, data, options) {\n if (options === void 0) {\n options = defaultUpdateOptions;\n }\n\n var _this$options2 = this.options,\n plugins = _this$options2.jss.plugins,\n sheet = _this$options2.sheet; // It is a rules container like for e.g. ConditionalRule.\n\n if (rule.rules instanceof RuleList) {\n rule.rules.update(data, options);\n return;\n }\n\n var styleRule = rule;\n var style = styleRule.style;\n plugins.onUpdate(data, rule, sheet, options); // We rely on a new `style` ref in case it was mutated during onUpdate hook.\n\n if (options.process && style && style !== styleRule.style) {\n // We need to run the plugins in case new `style` relies on syntax plugins.\n plugins.onProcessStyle(styleRule.style, styleRule, sheet); // Update and add props.\n\n for (var prop in styleRule.style) {\n var nextValue = styleRule.style[prop];\n var prevValue = style[prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.\n // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.\n\n if (nextValue !== prevValue) {\n styleRule.prop(prop, nextValue, forceUpdateOptions);\n }\n } // Remove props.\n\n\n for (var _prop in style) {\n var _nextValue = styleRule.style[_prop];\n var _prevValue = style[_prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.\n // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.\n\n if (_nextValue == null && _nextValue !== _prevValue) {\n styleRule.prop(_prop, null, forceUpdateOptions);\n }\n }\n }\n }\n /**\n * Convert rules to a CSS string.\n */\n ;\n\n _proto.toString = function toString(options) {\n var str = '';\n var sheet = this.options.sheet;\n var link = sheet ? sheet.options.link : false;\n\n for (var index = 0; index < this.index.length; index++) {\n var rule = this.index[index];\n var css = rule.toString(options); // No need to render an empty rule.\n\n if (!css && !link) continue;\n if (str) str += '\\n';\n str += css;\n }\n\n return str;\n };\n\n return RuleList;\n}();\n\nvar StyleSheet =\n/*#__PURE__*/\nfunction () {\n function StyleSheet(styles, options) {\n this.options = void 0;\n this.deployed = void 0;\n this.attached = void 0;\n this.rules = void 0;\n this.renderer = void 0;\n this.classes = void 0;\n this.keyframes = void 0;\n this.queue = void 0;\n this.attached = false;\n this.deployed = false;\n this.classes = {};\n this.keyframes = {};\n this.options = _extends({}, options, {\n sheet: this,\n parent: this,\n classes: this.classes,\n keyframes: this.keyframes\n });\n\n if (options.Renderer) {\n this.renderer = new options.Renderer(this);\n }\n\n this.rules = new RuleList(this.options);\n\n for (var name in styles) {\n this.rules.add(name, styles[name]);\n }\n\n this.rules.process();\n }\n /**\n * Attach renderable to the render tree.\n */\n\n\n var _proto = StyleSheet.prototype;\n\n _proto.attach = function attach() {\n if (this.attached) return this;\n if (this.renderer) this.renderer.attach();\n this.attached = true; // Order is important, because we can't use insertRule API if style element is not attached.\n\n if (!this.deployed) this.deploy();\n return this;\n }\n /**\n * Remove renderable from render tree.\n */\n ;\n\n _proto.detach = function detach() {\n if (!this.attached) return this;\n if (this.renderer) this.renderer.detach();\n this.attached = false;\n return this;\n }\n /**\n * Add a rule to the current stylesheet.\n * Will insert a rule also after the stylesheet has been rendered first time.\n */\n ;\n\n _proto.addRule = function addRule(name, decl, options) {\n var queue = this.queue; // Plugins can create rules.\n // In order to preserve the right order, we need to queue all `.addRule` calls,\n // which happen after the first `rules.add()` call.\n\n if (this.attached && !queue) this.queue = [];\n var rule = this.rules.add(name, decl, options);\n if (!rule) return null;\n this.options.jss.plugins.onProcessRule(rule);\n\n if (this.attached) {\n if (!this.deployed) return rule; // Don't insert rule directly if there is no stringified version yet.\n // It will be inserted all together when .attach is called.\n\n if (queue) queue.push(rule);else {\n this.insertRule(rule);\n\n if (this.queue) {\n this.queue.forEach(this.insertRule, this);\n this.queue = undefined;\n }\n }\n return rule;\n } // We can't add rules to a detached style node.\n // We will redeploy the sheet once user will attach it.\n\n\n this.deployed = false;\n return rule;\n }\n /**\n * Insert rule into the StyleSheet\n */\n ;\n\n _proto.insertRule = function insertRule(rule) {\n if (this.renderer) {\n this.renderer.insertRule(rule);\n }\n }\n /**\n * Create and add rules.\n * Will render also after Style Sheet was rendered the first time.\n */\n ;\n\n _proto.addRules = function addRules(styles, options) {\n var added = [];\n\n for (var name in styles) {\n var rule = this.addRule(name, styles[name], options);\n if (rule) added.push(rule);\n }\n\n return added;\n }\n /**\n * Get a rule by name.\n */\n ;\n\n _proto.getRule = function getRule(name) {\n return this.rules.get(name);\n }\n /**\n * Delete a rule by name.\n * Returns `true`: if rule has been deleted from the DOM.\n */\n ;\n\n _proto.deleteRule = function deleteRule(name) {\n var rule = typeof name === 'object' ? name : this.rules.get(name);\n\n if (!rule || // Style sheet was created without link: true and attached, in this case we\n // won't be able to remove the CSS rule from the DOM.\n this.attached && !rule.renderable) {\n return false;\n }\n\n this.rules.remove(rule);\n\n if (this.attached && rule.renderable && this.renderer) {\n return this.renderer.deleteRule(rule.renderable);\n }\n\n return true;\n }\n /**\n * Get index of a rule.\n */\n ;\n\n _proto.indexOf = function indexOf(rule) {\n return this.rules.indexOf(rule);\n }\n /**\n * Deploy pure CSS string to a renderable.\n */\n ;\n\n _proto.deploy = function deploy() {\n if (this.renderer) this.renderer.deploy();\n this.deployed = true;\n return this;\n }\n /**\n * Update the function values with a new data.\n */\n ;\n\n _proto.update = function update() {\n var _this$rules;\n\n (_this$rules = this.rules).update.apply(_this$rules, arguments);\n\n return this;\n }\n /**\n * Updates a single rule.\n */\n ;\n\n _proto.updateOne = function updateOne(rule, data, options) {\n this.rules.updateOne(rule, data, options);\n return this;\n }\n /**\n * Convert rules to a CSS string.\n */\n ;\n\n _proto.toString = function toString(options) {\n return this.rules.toString(options);\n };\n\n return StyleSheet;\n}();\n\nvar PluginsRegistry =\n/*#__PURE__*/\nfunction () {\n function PluginsRegistry() {\n this.plugins = {\n internal: [],\n external: []\n };\n this.registry = void 0;\n }\n\n var _proto = PluginsRegistry.prototype;\n\n /**\n * Call `onCreateRule` hooks and return an object if returned by a hook.\n */\n _proto.onCreateRule = function onCreateRule(name, decl, options) {\n for (var i = 0; i < this.registry.onCreateRule.length; i++) {\n var rule = this.registry.onCreateRule[i](name, decl, options);\n if (rule) return rule;\n }\n\n return null;\n }\n /**\n * Call `onProcessRule` hooks.\n */\n ;\n\n _proto.onProcessRule = function onProcessRule(rule) {\n if (rule.isProcessed) return;\n var sheet = rule.options.sheet;\n\n for (var i = 0; i < this.registry.onProcessRule.length; i++) {\n this.registry.onProcessRule[i](rule, sheet);\n }\n\n if (rule.style) this.onProcessStyle(rule.style, rule, sheet);\n rule.isProcessed = true;\n }\n /**\n * Call `onProcessStyle` hooks.\n */\n ;\n\n _proto.onProcessStyle = function onProcessStyle(style, rule, sheet) {\n for (var i = 0; i < this.registry.onProcessStyle.length; i++) {\n // $FlowFixMe[prop-missing]\n rule.style = this.registry.onProcessStyle[i](rule.style, rule, sheet);\n }\n }\n /**\n * Call `onProcessSheet` hooks.\n */\n ;\n\n _proto.onProcessSheet = function onProcessSheet(sheet) {\n for (var i = 0; i < this.registry.onProcessSheet.length; i++) {\n this.registry.onProcessSheet[i](sheet);\n }\n }\n /**\n * Call `onUpdate` hooks.\n */\n ;\n\n _proto.onUpdate = function onUpdate(data, rule, sheet, options) {\n for (var i = 0; i < this.registry.onUpdate.length; i++) {\n this.registry.onUpdate[i](data, rule, sheet, options);\n }\n }\n /**\n * Call `onChangeValue` hooks.\n */\n ;\n\n _proto.onChangeValue = function onChangeValue(value, prop, rule) {\n var processedValue = value;\n\n for (var i = 0; i < this.registry.onChangeValue.length; i++) {\n processedValue = this.registry.onChangeValue[i](processedValue, prop, rule);\n }\n\n return processedValue;\n }\n /**\n * Register a plugin.\n */\n ;\n\n _proto.use = function use(newPlugin, options) {\n if (options === void 0) {\n options = {\n queue: 'external'\n };\n }\n\n var plugins = this.plugins[options.queue]; // Avoids applying same plugin twice, at least based on ref.\n\n if (plugins.indexOf(newPlugin) !== -1) {\n return;\n }\n\n plugins.push(newPlugin);\n this.registry = [].concat(this.plugins.external, this.plugins.internal).reduce(function (registry, plugin) {\n for (var name in plugin) {\n if (name in registry) {\n registry[name].push(plugin[name]);\n } else {\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Unknown hook \\\"\" + name + \"\\\".\") : void 0;\n }\n }\n\n return registry;\n }, {\n onCreateRule: [],\n onProcessRule: [],\n onProcessStyle: [],\n onProcessSheet: [],\n onChangeValue: [],\n onUpdate: []\n });\n };\n\n return PluginsRegistry;\n}();\n\n/**\n * Sheets registry to access them all at one place.\n */\nvar SheetsRegistry =\n/*#__PURE__*/\nfunction () {\n function SheetsRegistry() {\n this.registry = [];\n }\n\n var _proto = SheetsRegistry.prototype;\n\n /**\n * Register a Style Sheet.\n */\n _proto.add = function add(sheet) {\n var registry = this.registry;\n var index = sheet.options.index;\n if (registry.indexOf(sheet) !== -1) return;\n\n if (registry.length === 0 || index >= this.index) {\n registry.push(sheet);\n return;\n } // Find a position.\n\n\n for (var i = 0; i < registry.length; i++) {\n if (registry[i].options.index > index) {\n registry.splice(i, 0, sheet);\n return;\n }\n }\n }\n /**\n * Reset the registry.\n */\n ;\n\n _proto.reset = function reset() {\n this.registry = [];\n }\n /**\n * Remove a Style Sheet.\n */\n ;\n\n _proto.remove = function remove(sheet) {\n var index = this.registry.indexOf(sheet);\n this.registry.splice(index, 1);\n }\n /**\n * Convert all attached sheets to a CSS string.\n */\n ;\n\n _proto.toString = function toString(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n attached = _ref.attached,\n options = _objectWithoutPropertiesLoose(_ref, [\"attached\"]);\n\n var css = '';\n\n for (var i = 0; i < this.registry.length; i++) {\n var sheet = this.registry[i];\n\n if (attached != null && sheet.attached !== attached) {\n continue;\n }\n\n if (css) css += '\\n';\n css += sheet.toString(options);\n }\n\n return css;\n };\n\n _createClass(SheetsRegistry, [{\n key: \"index\",\n\n /**\n * Current highest index number.\n */\n get: function get() {\n return this.registry.length === 0 ? 0 : this.registry[this.registry.length - 1].options.index;\n }\n }]);\n\n return SheetsRegistry;\n}();\n\n/**\n * This is a global sheets registry. Only DomRenderer will add sheets to it.\n * On the server one should use an own SheetsRegistry instance and add the\n * sheets to it, because you need to make sure to create a new registry for\n * each request in order to not leak sheets across requests.\n */\n\nvar registry = new SheetsRegistry();\n\n/* eslint-disable */\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar globalThis = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\n\nvar ns = '2f1acc6c3a606b082e5eef5e54414ffb';\nif (globalThis[ns] == null) globalThis[ns] = 0; // Bundle may contain multiple JSS versions at the same time. In order to identify\n// the current version with just one short number and use it for classes generation\n// we use a counter. Also it is more accurate, because user can manually reevaluate\n// the module.\n\nvar moduleId = globalThis[ns]++;\n\nvar maxRules = 1e10;\n\n/**\n * Returns a function which generates unique class names based on counters.\n * When new generator function is created, rule counter is reseted.\n * We need to reset the rule counter for SSR for each request.\n */\nvar createGenerateId = function createGenerateId(options) {\n if (options === void 0) {\n options = {};\n }\n\n var ruleCounter = 0;\n return function (rule, sheet) {\n ruleCounter += 1;\n\n if (ruleCounter > maxRules) {\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] You might have a memory leak. Rule counter is at \" + ruleCounter + \".\") : void 0;\n }\n\n var jssId = '';\n var prefix = '';\n\n if (sheet) {\n if (sheet.options.classNamePrefix) {\n prefix = sheet.options.classNamePrefix;\n }\n\n if (sheet.options.jss.id != null) {\n jssId = String(sheet.options.jss.id);\n }\n }\n\n if (options.minify) {\n // Using \"c\" because a number can't be the first char in a class name.\n return \"\" + (prefix || 'c') + moduleId + jssId + ruleCounter;\n }\n\n return prefix + rule.key + \"-\" + moduleId + (jssId ? \"-\" + jssId : '') + \"-\" + ruleCounter;\n };\n};\n\n/**\n * Cache the value from the first time a function is called.\n */\nvar memoize = function memoize(fn) {\n var value;\n return function () {\n if (!value) value = fn();\n return value;\n };\n};\n\n/**\n * Get a style property value.\n */\nvar getPropertyValue = function getPropertyValue(cssRule, prop) {\n try {\n // Support CSSTOM.\n if (cssRule.attributeStyleMap) {\n return cssRule.attributeStyleMap.get(prop);\n }\n\n return cssRule.style.getPropertyValue(prop);\n } catch (err) {\n // IE may throw if property is unknown.\n return '';\n }\n};\n\n/**\n * Set a style property.\n */\nvar setProperty = function setProperty(cssRule, prop, value) {\n try {\n var cssValue = value;\n\n if (Array.isArray(value)) {\n cssValue = toCssValue(value, true);\n\n if (value[value.length - 1] === '!important') {\n cssRule.style.setProperty(prop, cssValue, 'important');\n return true;\n }\n } // Support CSSTOM.\n\n\n if (cssRule.attributeStyleMap) {\n cssRule.attributeStyleMap.set(prop, cssValue);\n } else {\n cssRule.style.setProperty(prop, cssValue);\n }\n } catch (err) {\n // IE may throw if property is unknown.\n return false;\n }\n\n return true;\n};\n\n/**\n * Remove a style property.\n */\nvar removeProperty = function removeProperty(cssRule, prop) {\n try {\n // Support CSSTOM.\n if (cssRule.attributeStyleMap) {\n cssRule.attributeStyleMap.delete(prop);\n } else {\n cssRule.style.removeProperty(prop);\n }\n } catch (err) {\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] DOMException \\\"\" + err.message + \"\\\" was thrown. Tried to remove property \\\"\" + prop + \"\\\".\") : void 0;\n }\n};\n\n/**\n * Set the selector.\n */\nvar setSelector = function setSelector(cssRule, selectorText) {\n cssRule.selectorText = selectorText; // Return false if setter was not successful.\n // Currently works in chrome only.\n\n return cssRule.selectorText === selectorText;\n};\n/**\n * Gets the `head` element upon the first call and caches it.\n * We assume it can't be null.\n */\n\n\nvar getHead = memoize(function () {\n return document.querySelector('head');\n});\n/**\n * Find attached sheet with an index higher than the passed one.\n */\n\nfunction findHigherSheet(registry, options) {\n for (var i = 0; i < registry.length; i++) {\n var sheet = registry[i];\n\n if (sheet.attached && sheet.options.index > options.index && sheet.options.insertionPoint === options.insertionPoint) {\n return sheet;\n }\n }\n\n return null;\n}\n/**\n * Find attached sheet with the highest index.\n */\n\n\nfunction findHighestSheet(registry, options) {\n for (var i = registry.length - 1; i >= 0; i--) {\n var sheet = registry[i];\n\n if (sheet.attached && sheet.options.insertionPoint === options.insertionPoint) {\n return sheet;\n }\n }\n\n return null;\n}\n/**\n * Find a comment with \"jss\" inside.\n */\n\n\nfunction findCommentNode(text) {\n var head = getHead();\n\n for (var i = 0; i < head.childNodes.length; i++) {\n var node = head.childNodes[i];\n\n if (node.nodeType === 8 && node.nodeValue.trim() === text) {\n return node;\n }\n }\n\n return null;\n}\n\n/**\n * Find a node before which we can insert the sheet.\n */\nfunction findPrevNode(options) {\n var registry$1 = registry.registry;\n\n if (registry$1.length > 0) {\n // Try to insert before the next higher sheet.\n var sheet = findHigherSheet(registry$1, options);\n\n if (sheet && sheet.renderer) {\n return {\n parent: sheet.renderer.element.parentNode,\n node: sheet.renderer.element\n };\n } // Otherwise insert after the last attached.\n\n\n sheet = findHighestSheet(registry$1, options);\n\n if (sheet && sheet.renderer) {\n return {\n parent: sheet.renderer.element.parentNode,\n node: sheet.renderer.element.nextSibling\n };\n }\n } // Try to find a comment placeholder if registry is empty.\n\n\n var insertionPoint = options.insertionPoint;\n\n if (insertionPoint && typeof insertionPoint === 'string') {\n var comment = findCommentNode(insertionPoint);\n\n if (comment) {\n return {\n parent: comment.parentNode,\n node: comment.nextSibling\n };\n } // If user specifies an insertion point and it can't be found in the document -\n // bad specificity issues may appear.\n\n\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Insertion point \\\"\" + insertionPoint + \"\\\" not found.\") : void 0;\n }\n\n return false;\n}\n/**\n * Insert style element into the DOM.\n */\n\n\nfunction insertStyle(style, options) {\n var insertionPoint = options.insertionPoint;\n var nextNode = findPrevNode(options);\n\n if (nextNode !== false && nextNode.parent) {\n nextNode.parent.insertBefore(style, nextNode.node);\n return;\n } // Works with iframes and any node types.\n\n\n if (insertionPoint && typeof insertionPoint.nodeType === 'number') {\n // https://stackoverflow.com/questions/41328728/force-casting-in-flow\n var insertionPointElement = insertionPoint;\n var parentNode = insertionPointElement.parentNode;\n if (parentNode) parentNode.insertBefore(style, insertionPointElement.nextSibling);else process.env.NODE_ENV !== \"production\" ? warning(false, '[JSS] Insertion point is not in the DOM.') : void 0;\n return;\n }\n\n getHead().appendChild(style);\n}\n/**\n * Read jss nonce setting from the page if the user has set it.\n */\n\n\nvar getNonce = memoize(function () {\n var node = document.querySelector('meta[property=\"csp-nonce\"]');\n return node ? node.getAttribute('content') : null;\n});\n\nvar _insertRule = function insertRule(container, rule, index) {\n try {\n if ('insertRule' in container) {\n var c = container;\n c.insertRule(rule, index);\n } // Keyframes rule.\n else if ('appendRule' in container) {\n var _c = container;\n\n _c.appendRule(rule);\n }\n } catch (err) {\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] \" + err.message) : void 0;\n return false;\n }\n\n return container.cssRules[index];\n};\n\nvar getValidRuleInsertionIndex = function getValidRuleInsertionIndex(container, index) {\n var maxIndex = container.cssRules.length; // In case previous insertion fails, passed index might be wrong\n\n if (index === undefined || index > maxIndex) {\n // eslint-disable-next-line no-param-reassign\n return maxIndex;\n }\n\n return index;\n};\n\nvar createStyle = function createStyle() {\n var el = document.createElement('style'); // Without it, IE will have a broken source order specificity if we\n // insert rules after we insert the style tag.\n // It seems to kick-off the source order specificity algorithm.\n\n el.textContent = '\\n';\n return el;\n};\n\nvar DomRenderer =\n/*#__PURE__*/\nfunction () {\n // HTMLStyleElement needs fixing https://github.com/facebook/flow/issues/2696\n // Will be empty if link: true option is not set, because\n // it is only for use together with insertRule API.\n function DomRenderer(sheet) {\n this.getPropertyValue = getPropertyValue;\n this.setProperty = setProperty;\n this.removeProperty = removeProperty;\n this.setSelector = setSelector;\n this.element = void 0;\n this.sheet = void 0;\n this.hasInsertedRules = false;\n this.cssRules = [];\n // There is no sheet when the renderer is used from a standalone StyleRule.\n if (sheet) registry.add(sheet);\n this.sheet = sheet;\n\n var _ref = this.sheet ? this.sheet.options : {},\n media = _ref.media,\n meta = _ref.meta,\n element = _ref.element;\n\n this.element = element || createStyle();\n this.element.setAttribute('data-jss', '');\n if (media) this.element.setAttribute('media', media);\n if (meta) this.element.setAttribute('data-meta', meta);\n var nonce = getNonce();\n if (nonce) this.element.setAttribute('nonce', nonce);\n }\n /**\n * Insert style element into render tree.\n */\n\n\n var _proto = DomRenderer.prototype;\n\n _proto.attach = function attach() {\n // In the case the element node is external and it is already in the DOM.\n if (this.element.parentNode || !this.sheet) return;\n insertStyle(this.element, this.sheet.options); // When rules are inserted using `insertRule` API, after `sheet.detach().attach()`\n // most browsers create a new CSSStyleSheet, except of all IEs.\n\n var deployed = Boolean(this.sheet && this.sheet.deployed);\n\n if (this.hasInsertedRules && deployed) {\n this.hasInsertedRules = false;\n this.deploy();\n }\n }\n /**\n * Remove style element from render tree.\n */\n ;\n\n _proto.detach = function detach() {\n if (!this.sheet) return;\n var parentNode = this.element.parentNode;\n if (parentNode) parentNode.removeChild(this.element); // In the most browsers, rules inserted using insertRule() API will be lost when style element is removed.\n // Though IE will keep them and we need a consistent behavior.\n\n if (this.sheet.options.link) {\n this.cssRules = [];\n this.element.textContent = '\\n';\n }\n }\n /**\n * Inject CSS string into element.\n */\n ;\n\n _proto.deploy = function deploy() {\n var sheet = this.sheet;\n if (!sheet) return;\n\n if (sheet.options.link) {\n this.insertRules(sheet.rules);\n return;\n }\n\n this.element.textContent = \"\\n\" + sheet.toString() + \"\\n\";\n }\n /**\n * Insert RuleList into an element.\n */\n ;\n\n _proto.insertRules = function insertRules(rules, nativeParent) {\n for (var i = 0; i < rules.index.length; i++) {\n this.insertRule(rules.index[i], i, nativeParent);\n }\n }\n /**\n * Insert a rule into element.\n */\n ;\n\n _proto.insertRule = function insertRule(rule, index, nativeParent) {\n if (nativeParent === void 0) {\n nativeParent = this.element.sheet;\n }\n\n if (rule.rules) {\n var parent = rule;\n var latestNativeParent = nativeParent;\n\n if (rule.type === 'conditional' || rule.type === 'keyframes') {\n var _insertionIndex = getValidRuleInsertionIndex(nativeParent, index); // We need to render the container without children first.\n\n\n latestNativeParent = _insertRule(nativeParent, parent.toString({\n children: false\n }), _insertionIndex);\n\n if (latestNativeParent === false) {\n return false;\n }\n\n this.refCssRule(rule, _insertionIndex, latestNativeParent);\n }\n\n this.insertRules(parent.rules, latestNativeParent);\n return latestNativeParent;\n }\n\n var ruleStr = rule.toString();\n if (!ruleStr) return false;\n var insertionIndex = getValidRuleInsertionIndex(nativeParent, index);\n\n var nativeRule = _insertRule(nativeParent, ruleStr, insertionIndex);\n\n if (nativeRule === false) {\n return false;\n }\n\n this.hasInsertedRules = true;\n this.refCssRule(rule, insertionIndex, nativeRule);\n return nativeRule;\n };\n\n _proto.refCssRule = function refCssRule(rule, index, cssRule) {\n rule.renderable = cssRule; // We only want to reference the top level rules, deleteRule API doesn't support removing nested rules\n // like rules inside media queries or keyframes\n\n if (rule.options.parent instanceof StyleSheet) {\n this.cssRules[index] = cssRule;\n }\n }\n /**\n * Delete a rule.\n */\n ;\n\n _proto.deleteRule = function deleteRule(cssRule) {\n var sheet = this.element.sheet;\n var index = this.indexOf(cssRule);\n if (index === -1) return false;\n sheet.deleteRule(index);\n this.cssRules.splice(index, 1);\n return true;\n }\n /**\n * Get index of a CSS Rule.\n */\n ;\n\n _proto.indexOf = function indexOf(cssRule) {\n return this.cssRules.indexOf(cssRule);\n }\n /**\n * Generate a new CSS rule and replace the existing one.\n *\n * Only used for some old browsers because they can't set a selector.\n */\n ;\n\n _proto.replaceRule = function replaceRule(cssRule, rule) {\n var index = this.indexOf(cssRule);\n if (index === -1) return false;\n this.element.sheet.deleteRule(index);\n this.cssRules.splice(index, 1);\n return this.insertRule(rule, index);\n }\n /**\n * Get all rules elements.\n */\n ;\n\n _proto.getRules = function getRules() {\n return this.element.sheet.cssRules;\n };\n\n return DomRenderer;\n}();\n\nvar instanceCounter = 0;\n\nvar Jss =\n/*#__PURE__*/\nfunction () {\n function Jss(options) {\n this.id = instanceCounter++;\n this.version = \"10.5.0\";\n this.plugins = new PluginsRegistry();\n this.options = {\n id: {\n minify: false\n },\n createGenerateId: createGenerateId,\n Renderer: isInBrowser ? DomRenderer : null,\n plugins: []\n };\n this.generateId = createGenerateId({\n minify: false\n });\n\n for (var i = 0; i < plugins.length; i++) {\n this.plugins.use(plugins[i], {\n queue: 'internal'\n });\n }\n\n this.setup(options);\n }\n /**\n * Prepares various options, applies plugins.\n * Should not be used twice on the same instance, because there is no plugins\n * deduplication logic.\n */\n\n\n var _proto = Jss.prototype;\n\n _proto.setup = function setup(options) {\n if (options === void 0) {\n options = {};\n }\n\n if (options.createGenerateId) {\n this.options.createGenerateId = options.createGenerateId;\n }\n\n if (options.id) {\n this.options.id = _extends({}, this.options.id, options.id);\n }\n\n if (options.createGenerateId || options.id) {\n this.generateId = this.options.createGenerateId(this.options.id);\n }\n\n if (options.insertionPoint != null) this.options.insertionPoint = options.insertionPoint;\n\n if ('Renderer' in options) {\n this.options.Renderer = options.Renderer;\n } // eslint-disable-next-line prefer-spread\n\n\n if (options.plugins) this.use.apply(this, options.plugins);\n return this;\n }\n /**\n * Create a Style Sheet.\n */\n ;\n\n _proto.createStyleSheet = function createStyleSheet(styles, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n index = _options.index;\n\n if (typeof index !== 'number') {\n index = registry.index === 0 ? 0 : registry.index + 1;\n }\n\n var sheet = new StyleSheet(styles, _extends({}, options, {\n jss: this,\n generateId: options.generateId || this.generateId,\n insertionPoint: this.options.insertionPoint,\n Renderer: this.options.Renderer,\n index: index\n }));\n this.plugins.onProcessSheet(sheet);\n return sheet;\n }\n /**\n * Detach the Style Sheet and remove it from the registry.\n */\n ;\n\n _proto.removeStyleSheet = function removeStyleSheet(sheet) {\n sheet.detach();\n registry.remove(sheet);\n return this;\n }\n /**\n * Create a rule without a Style Sheet.\n * [Deprecated] will be removed in the next major version.\n */\n ;\n\n _proto.createRule = function createRule$1(name, style, options) {\n if (style === void 0) {\n style = {};\n }\n\n if (options === void 0) {\n options = {};\n }\n\n // Enable rule without name for inline styles.\n if (typeof name === 'object') {\n // $FlowFixMe[incompatible-call]\n return this.createRule(undefined, name, style);\n } // $FlowFixMe[incompatible-type]\n\n\n var ruleOptions = _extends({}, options, {\n name: name,\n jss: this,\n Renderer: this.options.Renderer\n });\n\n if (!ruleOptions.generateId) ruleOptions.generateId = this.generateId;\n if (!ruleOptions.classes) ruleOptions.classes = {};\n if (!ruleOptions.keyframes) ruleOptions.keyframes = {};\n\n var rule = createRule(name, style, ruleOptions);\n\n if (rule) this.plugins.onProcessRule(rule);\n return rule;\n }\n /**\n * Register plugin. Passed function will be invoked with a rule instance.\n */\n ;\n\n _proto.use = function use() {\n var _this = this;\n\n for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {\n plugins[_key] = arguments[_key];\n }\n\n plugins.forEach(function (plugin) {\n _this.plugins.use(plugin);\n });\n return this;\n };\n\n return Jss;\n}();\n\n/**\n * Extracts a styles object with only props that contain function values.\n */\nfunction getDynamicStyles(styles) {\n var to = null;\n\n for (var key in styles) {\n var value = styles[key];\n var type = typeof value;\n\n if (type === 'function') {\n if (!to) to = {};\n to[key] = value;\n } else if (type === 'object' && value !== null && !Array.isArray(value)) {\n var extracted = getDynamicStyles(value);\n\n if (extracted) {\n if (!to) to = {};\n to[key] = extracted;\n }\n }\n }\n\n return to;\n}\n\n/**\n * SheetsManager is like a WeakMap which is designed to count StyleSheet\n * instances and attach/detach automatically.\n */\nvar SheetsManager =\n/*#__PURE__*/\nfunction () {\n function SheetsManager() {\n this.length = 0;\n this.sheets = new WeakMap();\n }\n\n var _proto = SheetsManager.prototype;\n\n _proto.get = function get(key) {\n var entry = this.sheets.get(key);\n return entry && entry.sheet;\n };\n\n _proto.add = function add(key, sheet) {\n if (this.sheets.has(key)) return;\n this.length++;\n this.sheets.set(key, {\n sheet: sheet,\n refs: 0\n });\n };\n\n _proto.manage = function manage(key) {\n var entry = this.sheets.get(key);\n\n if (entry) {\n if (entry.refs === 0) {\n entry.sheet.attach();\n }\n\n entry.refs++;\n return entry.sheet;\n }\n\n warning(false, \"[JSS] SheetsManager: can't find sheet to manage\");\n return undefined;\n };\n\n _proto.unmanage = function unmanage(key) {\n var entry = this.sheets.get(key);\n\n if (entry) {\n if (entry.refs > 0) {\n entry.refs--;\n if (entry.refs === 0) entry.sheet.detach();\n }\n } else {\n warning(false, \"SheetsManager: can't find sheet to unmanage\");\n }\n };\n\n _createClass(SheetsManager, [{\n key: \"size\",\n get: function get() {\n return this.length;\n }\n }]);\n\n return SheetsManager;\n}();\n\n/**\n * A better abstraction over CSS.\n *\n * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present\n * @website https://github.com/cssinjs/jss\n * @license MIT\n */\n\n/**\n * Export a constant indicating if this browser has CSSTOM support.\n * https://developers.google.com/web/updates/2018/03/cssom\n */\nvar hasCSSTOMSupport = typeof CSS === 'object' && CSS != null && 'number' in CSS;\n/**\n * Creates a new instance of Jss.\n */\n\nvar create = function create(options) {\n return new Jss(options);\n};\n/**\n * A global Jss instance.\n */\n\nvar jss = create();\n\nexport default jss;\nexport { RuleList, SheetsManager, SheetsRegistry, create, createGenerateId, createRule, getDynamicStyles, hasCSSTOMSupport, registry as sheets, toCssValue };\n",";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./evpkdf\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./evpkdf\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t/**\n\t * Cipher core components.\n\t */\n\tCryptoJS.lib.Cipher || (function (undefined) {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var Base = C_lib.Base;\n\t var WordArray = C_lib.WordArray;\n\t var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm;\n\t var C_enc = C.enc;\n\t var Utf8 = C_enc.Utf8;\n\t var Base64 = C_enc.Base64;\n\t var C_algo = C.algo;\n\t var EvpKDF = C_algo.EvpKDF;\n\n\t /**\n\t * Abstract base cipher template.\n\t *\n\t * @property {number} keySize This cipher's key size. Default: 4 (128 bits)\n\t * @property {number} ivSize This cipher's IV size. Default: 4 (128 bits)\n\t * @property {number} _ENC_XFORM_MODE A constant representing encryption mode.\n\t * @property {number} _DEC_XFORM_MODE A constant representing decryption mode.\n\t */\n\t var Cipher = C_lib.Cipher = BufferedBlockAlgorithm.extend({\n\t /**\n\t * Configuration options.\n\t *\n\t * @property {WordArray} iv The IV to use for this operation.\n\t */\n\t cfg: Base.extend(),\n\n\t /**\n\t * Creates this cipher in encryption mode.\n\t *\n\t * @param {WordArray} key The key.\n\t * @param {Object} cfg (Optional) The configuration options to use for this operation.\n\t *\n\t * @return {Cipher} A cipher instance.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });\n\t */\n\t createEncryptor: function (key, cfg) {\n\t return this.create(this._ENC_XFORM_MODE, key, cfg);\n\t },\n\n\t /**\n\t * Creates this cipher in decryption mode.\n\t *\n\t * @param {WordArray} key The key.\n\t * @param {Object} cfg (Optional) The configuration options to use for this operation.\n\t *\n\t * @return {Cipher} A cipher instance.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });\n\t */\n\t createDecryptor: function (key, cfg) {\n\t return this.create(this._DEC_XFORM_MODE, key, cfg);\n\t },\n\n\t /**\n\t * Initializes a newly created cipher.\n\t *\n\t * @param {number} xformMode Either the encryption or decryption transormation mode constant.\n\t * @param {WordArray} key The key.\n\t * @param {Object} cfg (Optional) The configuration options to use for this operation.\n\t *\n\t * @example\n\t *\n\t * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });\n\t */\n\t init: function (xformMode, key, cfg) {\n\t // Apply config defaults\n\t this.cfg = this.cfg.extend(cfg);\n\n\t // Store transform mode and key\n\t this._xformMode = xformMode;\n\t this._key = key;\n\n\t // Set initial values\n\t this.reset();\n\t },\n\n\t /**\n\t * Resets this cipher to its initial state.\n\t *\n\t * @example\n\t *\n\t * cipher.reset();\n\t */\n\t reset: function () {\n\t // Reset data buffer\n\t BufferedBlockAlgorithm.reset.call(this);\n\n\t // Perform concrete-cipher logic\n\t this._doReset();\n\t },\n\n\t /**\n\t * Adds data to be encrypted or decrypted.\n\t *\n\t * @param {WordArray|string} dataUpdate The data to encrypt or decrypt.\n\t *\n\t * @return {WordArray} The data after processing.\n\t *\n\t * @example\n\t *\n\t * var encrypted = cipher.process('data');\n\t * var encrypted = cipher.process(wordArray);\n\t */\n\t process: function (dataUpdate) {\n\t // Append\n\t this._append(dataUpdate);\n\n\t // Process available blocks\n\t return this._process();\n\t },\n\n\t /**\n\t * Finalizes the encryption or decryption process.\n\t * Note that the finalize operation is effectively a destructive, read-once operation.\n\t *\n\t * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt.\n\t *\n\t * @return {WordArray} The data after final processing.\n\t *\n\t * @example\n\t *\n\t * var encrypted = cipher.finalize();\n\t * var encrypted = cipher.finalize('data');\n\t * var encrypted = cipher.finalize(wordArray);\n\t */\n\t finalize: function (dataUpdate) {\n\t // Final data update\n\t if (dataUpdate) {\n\t this._append(dataUpdate);\n\t }\n\n\t // Perform concrete-cipher logic\n\t var finalProcessedData = this._doFinalize();\n\n\t return finalProcessedData;\n\t },\n\n\t keySize: 128/32,\n\n\t ivSize: 128/32,\n\n\t _ENC_XFORM_MODE: 1,\n\n\t _DEC_XFORM_MODE: 2,\n\n\t /**\n\t * Creates shortcut functions to a cipher's object interface.\n\t *\n\t * @param {Cipher} cipher The cipher to create a helper for.\n\t *\n\t * @return {Object} An object with encrypt and decrypt shortcut functions.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);\n\t */\n\t _createHelper: (function () {\n\t function selectCipherStrategy(key) {\n\t if (typeof key == 'string') {\n\t return PasswordBasedCipher;\n\t } else {\n\t return SerializableCipher;\n\t }\n\t }\n\n\t return function (cipher) {\n\t return {\n\t encrypt: function (message, key, cfg) {\n\t return selectCipherStrategy(key).encrypt(cipher, message, key, cfg);\n\t },\n\n\t decrypt: function (ciphertext, key, cfg) {\n\t return selectCipherStrategy(key).decrypt(cipher, ciphertext, key, cfg);\n\t }\n\t };\n\t };\n\t }())\n\t });\n\n\t /**\n\t * Abstract base stream cipher template.\n\t *\n\t * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 1 (32 bits)\n\t */\n\t var StreamCipher = C_lib.StreamCipher = Cipher.extend({\n\t _doFinalize: function () {\n\t // Process partial blocks\n\t var finalProcessedBlocks = this._process(!!'flush');\n\n\t return finalProcessedBlocks;\n\t },\n\n\t blockSize: 1\n\t });\n\n\t /**\n\t * Mode namespace.\n\t */\n\t var C_mode = C.mode = {};\n\n\t /**\n\t * Abstract base block cipher mode template.\n\t */\n\t var BlockCipherMode = C_lib.BlockCipherMode = Base.extend({\n\t /**\n\t * Creates this mode for encryption.\n\t *\n\t * @param {Cipher} cipher A block cipher instance.\n\t * @param {Array} iv The IV words.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);\n\t */\n\t createEncryptor: function (cipher, iv) {\n\t return this.Encryptor.create(cipher, iv);\n\t },\n\n\t /**\n\t * Creates this mode for decryption.\n\t *\n\t * @param {Cipher} cipher A block cipher instance.\n\t * @param {Array} iv The IV words.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);\n\t */\n\t createDecryptor: function (cipher, iv) {\n\t return this.Decryptor.create(cipher, iv);\n\t },\n\n\t /**\n\t * Initializes a newly created mode.\n\t *\n\t * @param {Cipher} cipher A block cipher instance.\n\t * @param {Array} iv The IV words.\n\t *\n\t * @example\n\t *\n\t * var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);\n\t */\n\t init: function (cipher, iv) {\n\t this._cipher = cipher;\n\t this._iv = iv;\n\t }\n\t });\n\n\t /**\n\t * Cipher Block Chaining mode.\n\t */\n\t var CBC = C_mode.CBC = (function () {\n\t /**\n\t * Abstract base CBC mode.\n\t */\n\t var CBC = BlockCipherMode.extend();\n\n\t /**\n\t * CBC encryptor.\n\t */\n\t CBC.Encryptor = CBC.extend({\n\t /**\n\t * Processes the data block at offset.\n\t *\n\t * @param {Array} words The data words to operate on.\n\t * @param {number} offset The offset where the block starts.\n\t *\n\t * @example\n\t *\n\t * mode.processBlock(data.words, offset);\n\t */\n\t processBlock: function (words, offset) {\n\t // Shortcuts\n\t var cipher = this._cipher;\n\t var blockSize = cipher.blockSize;\n\n\t // XOR and encrypt\n\t xorBlock.call(this, words, offset, blockSize);\n\t cipher.encryptBlock(words, offset);\n\n\t // Remember this block to use with next block\n\t this._prevBlock = words.slice(offset, offset + blockSize);\n\t }\n\t });\n\n\t /**\n\t * CBC decryptor.\n\t */\n\t CBC.Decryptor = CBC.extend({\n\t /**\n\t * Processes the data block at offset.\n\t *\n\t * @param {Array} words The data words to operate on.\n\t * @param {number} offset The offset where the block starts.\n\t *\n\t * @example\n\t *\n\t * mode.processBlock(data.words, offset);\n\t */\n\t processBlock: function (words, offset) {\n\t // Shortcuts\n\t var cipher = this._cipher;\n\t var blockSize = cipher.blockSize;\n\n\t // Remember this block to use with next block\n\t var thisBlock = words.slice(offset, offset + blockSize);\n\n\t // Decrypt and XOR\n\t cipher.decryptBlock(words, offset);\n\t xorBlock.call(this, words, offset, blockSize);\n\n\t // This block becomes the previous block\n\t this._prevBlock = thisBlock;\n\t }\n\t });\n\n\t function xorBlock(words, offset, blockSize) {\n\t var block;\n\n\t // Shortcut\n\t var iv = this._iv;\n\n\t // Choose mixing block\n\t if (iv) {\n\t block = iv;\n\n\t // Remove IV for subsequent blocks\n\t this._iv = undefined;\n\t } else {\n\t block = this._prevBlock;\n\t }\n\n\t // XOR blocks\n\t for (var i = 0; i < blockSize; i++) {\n\t words[offset + i] ^= block[i];\n\t }\n\t }\n\n\t return CBC;\n\t }());\n\n\t /**\n\t * Padding namespace.\n\t */\n\t var C_pad = C.pad = {};\n\n\t /**\n\t * PKCS #5/7 padding strategy.\n\t */\n\t var Pkcs7 = C_pad.Pkcs7 = {\n\t /**\n\t * Pads data using the algorithm defined in PKCS #5/7.\n\t *\n\t * @param {WordArray} data The data to pad.\n\t * @param {number} blockSize The multiple that the data should be padded to.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * CryptoJS.pad.Pkcs7.pad(wordArray, 4);\n\t */\n\t pad: function (data, blockSize) {\n\t // Shortcut\n\t var blockSizeBytes = blockSize * 4;\n\n\t // Count padding bytes\n\t var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes;\n\n\t // Create padding word\n\t var paddingWord = (nPaddingBytes << 24) | (nPaddingBytes << 16) | (nPaddingBytes << 8) | nPaddingBytes;\n\n\t // Create padding\n\t var paddingWords = [];\n\t for (var i = 0; i < nPaddingBytes; i += 4) {\n\t paddingWords.push(paddingWord);\n\t }\n\t var padding = WordArray.create(paddingWords, nPaddingBytes);\n\n\t // Add padding\n\t data.concat(padding);\n\t },\n\n\t /**\n\t * Unpads data that had been padded using the algorithm defined in PKCS #5/7.\n\t *\n\t * @param {WordArray} data The data to unpad.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * CryptoJS.pad.Pkcs7.unpad(wordArray);\n\t */\n\t unpad: function (data) {\n\t // Get number of padding bytes from last byte\n\t var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;\n\n\t // Remove padding\n\t data.sigBytes -= nPaddingBytes;\n\t }\n\t };\n\n\t /**\n\t * Abstract base block cipher template.\n\t *\n\t * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 4 (128 bits)\n\t */\n\t var BlockCipher = C_lib.BlockCipher = Cipher.extend({\n\t /**\n\t * Configuration options.\n\t *\n\t * @property {Mode} mode The block mode to use. Default: CBC\n\t * @property {Padding} padding The padding strategy to use. Default: Pkcs7\n\t */\n\t cfg: Cipher.cfg.extend({\n\t mode: CBC,\n\t padding: Pkcs7\n\t }),\n\n\t reset: function () {\n\t var modeCreator;\n\n\t // Reset cipher\n\t Cipher.reset.call(this);\n\n\t // Shortcuts\n\t var cfg = this.cfg;\n\t var iv = cfg.iv;\n\t var mode = cfg.mode;\n\n\t // Reset block mode\n\t if (this._xformMode == this._ENC_XFORM_MODE) {\n\t modeCreator = mode.createEncryptor;\n\t } else /* if (this._xformMode == this._DEC_XFORM_MODE) */ {\n\t modeCreator = mode.createDecryptor;\n\t // Keep at least one block in the buffer for unpadding\n\t this._minBufferSize = 1;\n\t }\n\n\t if (this._mode && this._mode.__creator == modeCreator) {\n\t this._mode.init(this, iv && iv.words);\n\t } else {\n\t this._mode = modeCreator.call(mode, this, iv && iv.words);\n\t this._mode.__creator = modeCreator;\n\t }\n\t },\n\n\t _doProcessBlock: function (words, offset) {\n\t this._mode.processBlock(words, offset);\n\t },\n\n\t _doFinalize: function () {\n\t var finalProcessedBlocks;\n\n\t // Shortcut\n\t var padding = this.cfg.padding;\n\n\t // Finalize\n\t if (this._xformMode == this._ENC_XFORM_MODE) {\n\t // Pad data\n\t padding.pad(this._data, this.blockSize);\n\n\t // Process final blocks\n\t finalProcessedBlocks = this._process(!!'flush');\n\t } else /* if (this._xformMode == this._DEC_XFORM_MODE) */ {\n\t // Process final blocks\n\t finalProcessedBlocks = this._process(!!'flush');\n\n\t // Unpad data\n\t padding.unpad(finalProcessedBlocks);\n\t }\n\n\t return finalProcessedBlocks;\n\t },\n\n\t blockSize: 128/32\n\t });\n\n\t /**\n\t * A collection of cipher parameters.\n\t *\n\t * @property {WordArray} ciphertext The raw ciphertext.\n\t * @property {WordArray} key The key to this ciphertext.\n\t * @property {WordArray} iv The IV used in the ciphering operation.\n\t * @property {WordArray} salt The salt used with a key derivation function.\n\t * @property {Cipher} algorithm The cipher algorithm.\n\t * @property {Mode} mode The block mode used in the ciphering operation.\n\t * @property {Padding} padding The padding scheme used in the ciphering operation.\n\t * @property {number} blockSize The block size of the cipher.\n\t * @property {Format} formatter The default formatting strategy to convert this cipher params object to a string.\n\t */\n\t var CipherParams = C_lib.CipherParams = Base.extend({\n\t /**\n\t * Initializes a newly created cipher params object.\n\t *\n\t * @param {Object} cipherParams An object with any of the possible cipher parameters.\n\t *\n\t * @example\n\t *\n\t * var cipherParams = CryptoJS.lib.CipherParams.create({\n\t * ciphertext: ciphertextWordArray,\n\t * key: keyWordArray,\n\t * iv: ivWordArray,\n\t * salt: saltWordArray,\n\t * algorithm: CryptoJS.algo.AES,\n\t * mode: CryptoJS.mode.CBC,\n\t * padding: CryptoJS.pad.PKCS7,\n\t * blockSize: 4,\n\t * formatter: CryptoJS.format.OpenSSL\n\t * });\n\t */\n\t init: function (cipherParams) {\n\t this.mixIn(cipherParams);\n\t },\n\n\t /**\n\t * Converts this cipher params object to a string.\n\t *\n\t * @param {Format} formatter (Optional) The formatting strategy to use.\n\t *\n\t * @return {string} The stringified cipher params.\n\t *\n\t * @throws Error If neither the formatter nor the default formatter is set.\n\t *\n\t * @example\n\t *\n\t * var string = cipherParams + '';\n\t * var string = cipherParams.toString();\n\t * var string = cipherParams.toString(CryptoJS.format.OpenSSL);\n\t */\n\t toString: function (formatter) {\n\t return (formatter || this.formatter).stringify(this);\n\t }\n\t });\n\n\t /**\n\t * Format namespace.\n\t */\n\t var C_format = C.format = {};\n\n\t /**\n\t * OpenSSL formatting strategy.\n\t */\n\t var OpenSSLFormatter = C_format.OpenSSL = {\n\t /**\n\t * Converts a cipher params object to an OpenSSL-compatible string.\n\t *\n\t * @param {CipherParams} cipherParams The cipher params object.\n\t *\n\t * @return {string} The OpenSSL-compatible string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);\n\t */\n\t stringify: function (cipherParams) {\n\t var wordArray;\n\n\t // Shortcuts\n\t var ciphertext = cipherParams.ciphertext;\n\t var salt = cipherParams.salt;\n\n\t // Format\n\t if (salt) {\n\t wordArray = WordArray.create([0x53616c74, 0x65645f5f]).concat(salt).concat(ciphertext);\n\t } else {\n\t wordArray = ciphertext;\n\t }\n\n\t return wordArray.toString(Base64);\n\t },\n\n\t /**\n\t * Converts an OpenSSL-compatible string to a cipher params object.\n\t *\n\t * @param {string} openSSLStr The OpenSSL-compatible string.\n\t *\n\t * @return {CipherParams} The cipher params object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);\n\t */\n\t parse: function (openSSLStr) {\n\t var salt;\n\n\t // Parse base64\n\t var ciphertext = Base64.parse(openSSLStr);\n\n\t // Shortcut\n\t var ciphertextWords = ciphertext.words;\n\n\t // Test for salt\n\t if (ciphertextWords[0] == 0x53616c74 && ciphertextWords[1] == 0x65645f5f) {\n\t // Extract salt\n\t salt = WordArray.create(ciphertextWords.slice(2, 4));\n\n\t // Remove salt from ciphertext\n\t ciphertextWords.splice(0, 4);\n\t ciphertext.sigBytes -= 16;\n\t }\n\n\t return CipherParams.create({ ciphertext: ciphertext, salt: salt });\n\t }\n\t };\n\n\t /**\n\t * A cipher wrapper that returns ciphertext as a serializable cipher params object.\n\t */\n\t var SerializableCipher = C_lib.SerializableCipher = Base.extend({\n\t /**\n\t * Configuration options.\n\t *\n\t * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL\n\t */\n\t cfg: Base.extend({\n\t format: OpenSSLFormatter\n\t }),\n\n\t /**\n\t * Encrypts a message.\n\t *\n\t * @param {Cipher} cipher The cipher algorithm to use.\n\t * @param {WordArray|string} message The message to encrypt.\n\t * @param {WordArray} key The key.\n\t * @param {Object} cfg (Optional) The configuration options to use for this operation.\n\t *\n\t * @return {CipherParams} A cipher params object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);\n\t * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });\n\t * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });\n\t */\n\t encrypt: function (cipher, message, key, cfg) {\n\t // Apply config defaults\n\t cfg = this.cfg.extend(cfg);\n\n\t // Encrypt\n\t var encryptor = cipher.createEncryptor(key, cfg);\n\t var ciphertext = encryptor.finalize(message);\n\n\t // Shortcut\n\t var cipherCfg = encryptor.cfg;\n\n\t // Create and return serializable cipher params\n\t return CipherParams.create({\n\t ciphertext: ciphertext,\n\t key: key,\n\t iv: cipherCfg.iv,\n\t algorithm: cipher,\n\t mode: cipherCfg.mode,\n\t padding: cipherCfg.padding,\n\t blockSize: cipher.blockSize,\n\t formatter: cfg.format\n\t });\n\t },\n\n\t /**\n\t * Decrypts serialized ciphertext.\n\t *\n\t * @param {Cipher} cipher The cipher algorithm to use.\n\t * @param {CipherParams|string} ciphertext The ciphertext to decrypt.\n\t * @param {WordArray} key The key.\n\t * @param {Object} cfg (Optional) The configuration options to use for this operation.\n\t *\n\t * @return {WordArray} The plaintext.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });\n\t * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });\n\t */\n\t decrypt: function (cipher, ciphertext, key, cfg) {\n\t // Apply config defaults\n\t cfg = this.cfg.extend(cfg);\n\n\t // Convert string to CipherParams\n\t ciphertext = this._parse(ciphertext, cfg.format);\n\n\t // Decrypt\n\t var plaintext = cipher.createDecryptor(key, cfg).finalize(ciphertext.ciphertext);\n\n\t return plaintext;\n\t },\n\n\t /**\n\t * Converts serialized ciphertext to CipherParams,\n\t * else assumed CipherParams already and returns ciphertext unchanged.\n\t *\n\t * @param {CipherParams|string} ciphertext The ciphertext.\n\t * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext.\n\t *\n\t * @return {CipherParams} The unserialized ciphertext.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);\n\t */\n\t _parse: function (ciphertext, format) {\n\t if (typeof ciphertext == 'string') {\n\t return format.parse(ciphertext, this);\n\t } else {\n\t return ciphertext;\n\t }\n\t }\n\t });\n\n\t /**\n\t * Key derivation function namespace.\n\t */\n\t var C_kdf = C.kdf = {};\n\n\t /**\n\t * OpenSSL key derivation function.\n\t */\n\t var OpenSSLKdf = C_kdf.OpenSSL = {\n\t /**\n\t * Derives a key and IV from a password.\n\t *\n\t * @param {string} password The password to derive from.\n\t * @param {number} keySize The size in words of the key to generate.\n\t * @param {number} ivSize The size in words of the IV to generate.\n\t * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.\n\t *\n\t * @return {CipherParams} A cipher params object with the key, IV, and salt.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);\n\t * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');\n\t */\n\t execute: function (password, keySize, ivSize, salt) {\n\t // Generate random salt\n\t if (!salt) {\n\t salt = WordArray.random(64/8);\n\t }\n\n\t // Derive key and IV\n\t var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);\n\n\t // Separate key and IV\n\t var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);\n\t key.sigBytes = keySize * 4;\n\n\t // Return params\n\t return CipherParams.create({ key: key, iv: iv, salt: salt });\n\t }\n\t };\n\n\t /**\n\t * A serializable cipher wrapper that derives the key from a password,\n\t * and returns ciphertext as a serializable cipher params object.\n\t */\n\t var PasswordBasedCipher = C_lib.PasswordBasedCipher = SerializableCipher.extend({\n\t /**\n\t * Configuration options.\n\t *\n\t * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL\n\t */\n\t cfg: SerializableCipher.cfg.extend({\n\t kdf: OpenSSLKdf\n\t }),\n\n\t /**\n\t * Encrypts a message using a password.\n\t *\n\t * @param {Cipher} cipher The cipher algorithm to use.\n\t * @param {WordArray|string} message The message to encrypt.\n\t * @param {string} password The password.\n\t * @param {Object} cfg (Optional) The configuration options to use for this operation.\n\t *\n\t * @return {CipherParams} A cipher params object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');\n\t * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });\n\t */\n\t encrypt: function (cipher, message, password, cfg) {\n\t // Apply config defaults\n\t cfg = this.cfg.extend(cfg);\n\n\t // Derive key and other params\n\t var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize);\n\n\t // Add IV to config\n\t cfg.iv = derivedParams.iv;\n\n\t // Encrypt\n\t var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);\n\n\t // Mix in derived params\n\t ciphertext.mixIn(derivedParams);\n\n\t return ciphertext;\n\t },\n\n\t /**\n\t * Decrypts serialized ciphertext using a password.\n\t *\n\t * @param {Cipher} cipher The cipher algorithm to use.\n\t * @param {CipherParams|string} ciphertext The ciphertext to decrypt.\n\t * @param {string} password The password.\n\t * @param {Object} cfg (Optional) The configuration options to use for this operation.\n\t *\n\t * @return {WordArray} The plaintext.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });\n\t * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });\n\t */\n\t decrypt: function (cipher, ciphertext, password, cfg) {\n\t // Apply config defaults\n\t cfg = this.cfg.extend(cfg);\n\n\t // Convert string to CipherParams\n\t ciphertext = this._parse(ciphertext, cfg.format);\n\n\t // Derive key and other params\n\t var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt);\n\n\t // Add IV to config\n\t cfg.iv = derivedParams.iv;\n\n\t // Decrypt\n\t var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);\n\n\t return plaintext;\n\t }\n\t });\n\t}());\n\n\n}));","export default function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {\n var desc = {};\n Object.keys(descriptor).forEach(function (key) {\n desc[key] = descriptor[key];\n });\n desc.enumerable = !!desc.enumerable;\n desc.configurable = !!desc.configurable;\n\n if ('value' in desc || desc.initializer) {\n desc.writable = true;\n }\n\n desc = decorators.slice().reverse().reduce(function (desc, decorator) {\n return decorator(target, property, desc) || desc;\n }, desc);\n\n if (context && desc.initializer !== void 0) {\n desc.value = desc.initializer ? desc.initializer.call(context) : void 0;\n desc.initializer = undefined;\n }\n\n if (desc.initializer === void 0) {\n Object.defineProperty(target, property, desc);\n desc = null;\n }\n\n return desc;\n}","var _typeof = require(\"../helpers/typeof\");\n\nfunction _getRequireWildcardCache() {\n if (typeof WeakMap !== \"function\") return null;\n var cache = new WeakMap();\n\n _getRequireWildcardCache = function _getRequireWildcardCache() {\n return cache;\n };\n\n return cache;\n}\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n }\n\n if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") {\n return {\n \"default\": obj\n };\n }\n\n var cache = _getRequireWildcardCache();\n\n if (cache && cache.has(obj)) {\n return cache.get(obj);\n }\n\n var newObj = {};\n var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;\n\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;\n\n if (desc && (desc.get || desc.set)) {\n Object.defineProperty(newObj, key, desc);\n } else {\n newObj[key] = obj[key];\n }\n }\n }\n\n newObj[\"default\"] = obj;\n\n if (cache) {\n cache.set(obj, newObj);\n }\n\n return newObj;\n}\n\nmodule.exports = _interopRequireWildcard;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _utils.createSvgIcon;\n }\n});\n\nvar _utils = require(\"@material-ui/core/utils\");","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.FourCcToken = void 0;\nconst Util_1 = require(\"./Util\");\nconst validFourCC = /^[\\x21-\\x7e©][\\x20-\\x7e\\x00()]{3}/;\n/**\n * Token for read FourCC\n * Ref: https://en.wikipedia.org/wiki/FourCC\n */\nexports.FourCcToken = {\n len: 4,\n get: (buf, off) => {\n const id = buf.toString('binary', off, off + exports.FourCcToken.len);\n switch (id) {\n default:\n if (!id.match(validFourCC)) {\n throw new Error(`FourCC contains invalid characters: ${Util_1.default.a2hex(id)} \"${id}\"`);\n }\n }\n return id;\n },\n put: (buffer, offset, id) => {\n const str = Buffer.from(id, 'binary');\n if (str.length !== 4)\n throw new Error(\"Invalid length\");\n return str.copy(buffer, offset);\n }\n};\n","import { useTheme as useThemeWithoutDefault } from '@material-ui/styles';\nimport React from 'react';\nimport defaultTheme from './defaultTheme';\nexport default function useTheme() {\n var theme = useThemeWithoutDefault() || defaultTheme;\n\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useDebugValue(theme);\n }\n\n return theme;\n}","// TODO v5: consider to make it private\nexport default function setRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref) {\n ref.current = value;\n }\n}","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BasicParser = void 0;\nclass BasicParser {\n /**\n * Initialize parser with output (metadata), input (tokenizer) & parsing options (options).\n * @param {INativeMetadataCollector} metadata Output\n * @param {ITokenizer} tokenizer Input\n * @param {IOptions} options Parsing options\n */\n init(metadata, tokenizer, options) {\n this.metadata = metadata;\n this.tokenizer = tokenizer;\n this.options = options;\n return this;\n }\n}\nexports.BasicParser = BasicParser;\n","module.exports = assert;\n\nfunction assert(val, msg) {\n if (!val)\n throw new Error(msg || 'Assertion failed');\n}\n\nassert.equal = function assertEqual(l, r, msg) {\n if (l != r)\n throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r));\n};\n","'use strict';\n\nvar utils = exports;\nvar BN = require('bn.js');\nvar minAssert = require('minimalistic-assert');\nvar minUtils = require('minimalistic-crypto-utils');\n\nutils.assert = minAssert;\nutils.toArray = minUtils.toArray;\nutils.zero2 = minUtils.zero2;\nutils.toHex = minUtils.toHex;\nutils.encode = minUtils.encode;\n\n// Represent num in a w-NAF form\nfunction getNAF(num, w, bits) {\n var naf = new Array(Math.max(num.bitLength(), bits) + 1);\n naf.fill(0);\n\n var ws = 1 << (w + 1);\n var k = num.clone();\n\n for (var i = 0; i < naf.length; i++) {\n var z;\n var mod = k.andln(ws - 1);\n if (k.isOdd()) {\n if (mod > (ws >> 1) - 1)\n z = (ws >> 1) - mod;\n else\n z = mod;\n k.isubn(z);\n } else {\n z = 0;\n }\n\n naf[i] = z;\n k.iushrn(1);\n }\n\n return naf;\n}\nutils.getNAF = getNAF;\n\n// Represent k1, k2 in a Joint Sparse Form\nfunction getJSF(k1, k2) {\n var jsf = [\n [],\n []\n ];\n\n k1 = k1.clone();\n k2 = k2.clone();\n var d1 = 0;\n var d2 = 0;\n while (k1.cmpn(-d1) > 0 || k2.cmpn(-d2) > 0) {\n\n // First phase\n var m14 = (k1.andln(3) + d1) & 3;\n var m24 = (k2.andln(3) + d2) & 3;\n if (m14 === 3)\n m14 = -1;\n if (m24 === 3)\n m24 = -1;\n var u1;\n if ((m14 & 1) === 0) {\n u1 = 0;\n } else {\n var m8 = (k1.andln(7) + d1) & 7;\n if ((m8 === 3 || m8 === 5) && m24 === 2)\n u1 = -m14;\n else\n u1 = m14;\n }\n jsf[0].push(u1);\n\n var u2;\n if ((m24 & 1) === 0) {\n u2 = 0;\n } else {\n var m8 = (k2.andln(7) + d2) & 7;\n if ((m8 === 3 || m8 === 5) && m14 === 2)\n u2 = -m24;\n else\n u2 = m24;\n }\n jsf[1].push(u2);\n\n // Second phase\n if (2 * d1 === u1 + 1)\n d1 = 1 - d1;\n if (2 * d2 === u2 + 1)\n d2 = 1 - d2;\n k1.iushrn(1);\n k2.iushrn(1);\n }\n\n return jsf;\n}\nutils.getJSF = getJSF;\n\nfunction cachedProperty(obj, name, computer) {\n var key = '_' + name;\n obj.prototype[name] = function cachedProperty() {\n return this[key] !== undefined ? this[key] :\n this[key] = computer.call(this);\n };\n}\nutils.cachedProperty = cachedProperty;\n\nfunction parseBytes(bytes) {\n return typeof bytes === 'string' ? utils.toArray(bytes, 'hex') :\n bytes;\n}\nutils.parseBytes = parseBytes;\n\nfunction intFromLE(bytes) {\n return new BN(bytes, 'hex', 'le');\n}\nutils.intFromLE = intFromLE;\n\n","import * as React from 'react';\nimport FormControlContext from './FormControlContext';\nexport default function useFormControl() {\n return React.useContext(FormControlContext);\n}","export default function formControlState(_ref) {\n var props = _ref.props,\n states = _ref.states,\n muiFormControl = _ref.muiFormControl;\n return states.reduce(function (acc, state) {\n acc[state] = props[state];\n\n if (muiFormControl) {\n if (typeof props[state] === 'undefined') {\n acc[state] = muiFormControl[state];\n }\n }\n\n return acc;\n }, {});\n}","import arrayWithHoles from \"./arrayWithHoles\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit\";\nimport nonIterableRest from \"./nonIterableRest\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();\n}","export default function _iterableToArrayLimit(arr, i) {\n if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) {\n return;\n }\n\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}","import * as React from 'react';\nvar useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\n/**\n * https://github.com/facebook/react/issues/14099#issuecomment-440013892\n *\n * @param {function} fn\n */\n\nexport default function useEventCallback(fn) {\n var ref = React.useRef(fn);\n useEnhancedEffect(function () {\n ref.current = fn;\n });\n return React.useCallback(function () {\n return (0, ref.current).apply(void 0, arguments);\n }, []);\n}","export var reflow = function reflow(node) {\n return node.scrollTop;\n};\nexport function getTransitionProps(props, options) {\n var timeout = props.timeout,\n _props$style = props.style,\n style = _props$style === void 0 ? {} : _props$style;\n return {\n duration: style.transitionDuration || typeof timeout === 'number' ? timeout : timeout[options.mode] || 0,\n delay: style.transitionDelay\n };\n}","import $$observable from 'symbol-observable';\n\n/**\n * These are private action types reserved by Redux.\n * For any unknown actions, you must return the current state.\n * If the current state is undefined, you must return the initial state.\n * Do not reference these action types directly in your code.\n */\nvar randomString = function randomString() {\n return Math.random().toString(36).substring(7).split('').join('.');\n};\n\nvar ActionTypes = {\n INIT: \"@@redux/INIT\" + randomString(),\n REPLACE: \"@@redux/REPLACE\" + randomString(),\n PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {\n return \"@@redux/PROBE_UNKNOWN_ACTION\" + randomString();\n }\n};\n\n/**\n * @param {any} obj The object to inspect.\n * @returns {boolean} True if the argument appears to be a plain object.\n */\nfunction isPlainObject(obj) {\n if (typeof obj !== 'object' || obj === null) return false;\n var proto = obj;\n\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n\n return Object.getPrototypeOf(obj) === proto;\n}\n\n/**\n * Creates a Redux store that holds the state tree.\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */\n\nfunction createStore(reducer, preloadedState, enhancer) {\n var _ref2;\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {\n throw new Error('It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function.');\n }\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {\n enhancer = preloadedState;\n preloadedState = undefined;\n }\n\n if (typeof enhancer !== 'undefined') {\n if (typeof enhancer !== 'function') {\n throw new Error('Expected the enhancer to be a function.');\n }\n\n return enhancer(createStore)(reducer, preloadedState);\n }\n\n if (typeof reducer !== 'function') {\n throw new Error('Expected the reducer to be a function.');\n }\n\n var currentReducer = reducer;\n var currentState = preloadedState;\n var currentListeners = [];\n var nextListeners = currentListeners;\n var isDispatching = false;\n /**\n * This makes a shallow copy of currentListeners so we can use\n * nextListeners as a temporary list while dispatching.\n *\n * This prevents any bugs around consumers calling\n * subscribe/unsubscribe in the middle of a dispatch.\n */\n\n function ensureCanMutateNextListeners() {\n if (nextListeners === currentListeners) {\n nextListeners = currentListeners.slice();\n }\n }\n /**\n * Reads the state tree managed by the store.\n *\n * @returns {any} The current state tree of your application.\n */\n\n\n function getState() {\n if (isDispatching) {\n throw new Error('You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');\n }\n\n return currentState;\n }\n /**\n * Adds a change listener. It will be called any time an action is dispatched,\n * and some part of the state tree may potentially have changed. You may then\n * call `getState()` to read the current state tree inside the callback.\n *\n * You may call `dispatch()` from a change listener, with the following\n * caveats:\n *\n * 1. The subscriptions are snapshotted just before every `dispatch()` call.\n * If you subscribe or unsubscribe while the listeners are being invoked, this\n * will not have any effect on the `dispatch()` that is currently in progress.\n * However, the next `dispatch()` call, whether nested or not, will use a more\n * recent snapshot of the subscription list.\n *\n * 2. The listener should not expect to see all state changes, as the state\n * might have been updated multiple times during a nested `dispatch()` before\n * the listener is called. It is, however, guaranteed that all subscribers\n * registered before the `dispatch()` started will be called with the latest\n * state by the time it exits.\n *\n * @param {Function} listener A callback to be invoked on every dispatch.\n * @returns {Function} A function to remove this change listener.\n */\n\n\n function subscribe(listener) {\n if (typeof listener !== 'function') {\n throw new Error('Expected the listener to be a function.');\n }\n\n if (isDispatching) {\n throw new Error('You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.');\n }\n\n var isSubscribed = true;\n ensureCanMutateNextListeners();\n nextListeners.push(listener);\n return function unsubscribe() {\n if (!isSubscribed) {\n return;\n }\n\n if (isDispatching) {\n throw new Error('You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.');\n }\n\n isSubscribed = false;\n ensureCanMutateNextListeners();\n var index = nextListeners.indexOf(listener);\n nextListeners.splice(index, 1);\n currentListeners = null;\n };\n }\n /**\n * Dispatches an action. It is the only way to trigger a state change.\n *\n * The `reducer` function, used to create the store, will be called with the\n * current state tree and the given `action`. Its return value will\n * be considered the **next** state of the tree, and the change listeners\n * will be notified.\n *\n * The base implementation only supports plain object actions. If you want to\n * dispatch a Promise, an Observable, a thunk, or something else, you need to\n * wrap your store creating function into the corresponding middleware. For\n * example, see the documentation for the `redux-thunk` package. Even the\n * middleware will eventually dispatch plain object actions using this method.\n *\n * @param {Object} action A plain object representing “what changed”. It is\n * a good idea to keep actions serializable so you can record and replay user\n * sessions, or use the time travelling `redux-devtools`. An action must have\n * a `type` property which may not be `undefined`. It is a good idea to use\n * string constants for action types.\n *\n * @returns {Object} For convenience, the same action object you dispatched.\n *\n * Note that, if you use a custom middleware, it may wrap `dispatch()` to\n * return something else (for example, a Promise you can await).\n */\n\n\n function dispatch(action) {\n if (!isPlainObject(action)) {\n throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.');\n }\n\n if (typeof action.type === 'undefined') {\n throw new Error('Actions may not have an undefined \"type\" property. ' + 'Have you misspelled a constant?');\n }\n\n if (isDispatching) {\n throw new Error('Reducers may not dispatch actions.');\n }\n\n try {\n isDispatching = true;\n currentState = currentReducer(currentState, action);\n } finally {\n isDispatching = false;\n }\n\n var listeners = currentListeners = nextListeners;\n\n for (var i = 0; i < listeners.length; i++) {\n var listener = listeners[i];\n listener();\n }\n\n return action;\n }\n /**\n * Replaces the reducer currently used by the store to calculate the state.\n *\n * You might need this if your app implements code splitting and you want to\n * load some of the reducers dynamically. You might also need this if you\n * implement a hot reloading mechanism for Redux.\n *\n * @param {Function} nextReducer The reducer for the store to use instead.\n * @returns {void}\n */\n\n\n function replaceReducer(nextReducer) {\n if (typeof nextReducer !== 'function') {\n throw new Error('Expected the nextReducer to be a function.');\n }\n\n currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.\n // Any reducers that existed in both the new and old rootReducer\n // will receive the previous state. This effectively populates\n // the new state tree with any relevant data from the old one.\n\n dispatch({\n type: ActionTypes.REPLACE\n });\n }\n /**\n * Interoperability point for observable/reactive libraries.\n * @returns {observable} A minimal observable of state changes.\n * For more information, see the observable proposal:\n * https://github.com/tc39/proposal-observable\n */\n\n\n function observable() {\n var _ref;\n\n var outerSubscribe = subscribe;\n return _ref = {\n /**\n * The minimal observable subscription method.\n * @param {Object} observer Any object that can be used as an observer.\n * The observer object should have a `next` method.\n * @returns {subscription} An object with an `unsubscribe` method that can\n * be used to unsubscribe the observable from the store, and prevent further\n * emission of values from the observable.\n */\n subscribe: function subscribe(observer) {\n if (typeof observer !== 'object' || observer === null) {\n throw new TypeError('Expected the observer to be an object.');\n }\n\n function observeState() {\n if (observer.next) {\n observer.next(getState());\n }\n }\n\n observeState();\n var unsubscribe = outerSubscribe(observeState);\n return {\n unsubscribe: unsubscribe\n };\n }\n }, _ref[$$observable] = function () {\n return this;\n }, _ref;\n } // When a store is created, an \"INIT\" action is dispatched so that every\n // reducer returns their initial state. This effectively populates\n // the initial state tree.\n\n\n dispatch({\n type: ActionTypes.INIT\n });\n return _ref2 = {\n dispatch: dispatch,\n subscribe: subscribe,\n getState: getState,\n replaceReducer: replaceReducer\n }, _ref2[$$observable] = observable, _ref2;\n}\n\n/**\n * Prints a warning in the console if it exists.\n *\n * @param {String} message The warning message.\n * @returns {void}\n */\nfunction warning(message) {\n /* eslint-disable no-console */\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(message);\n }\n /* eslint-enable no-console */\n\n\n try {\n // This error was thrown as a convenience so that if you enable\n // \"break on all exceptions\" in your console,\n // it would pause the execution at this line.\n throw new Error(message);\n } catch (e) {} // eslint-disable-line no-empty\n\n}\n\nfunction getUndefinedStateErrorMessage(key, action) {\n var actionType = action && action.type;\n var actionDescription = actionType && \"action \\\"\" + String(actionType) + \"\\\"\" || 'an action';\n return \"Given \" + actionDescription + \", reducer \\\"\" + key + \"\\\" returned undefined. \" + \"To ignore an action, you must explicitly return the previous state. \" + \"If you want this reducer to hold no value, you can return null instead of undefined.\";\n}\n\nfunction getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {\n var reducerKeys = Object.keys(reducers);\n var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';\n\n if (reducerKeys.length === 0) {\n return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';\n }\n\n if (!isPlainObject(inputState)) {\n return \"The \" + argumentName + \" has unexpected type of \\\"\" + {}.toString.call(inputState).match(/\\s([a-z|A-Z]+)/)[1] + \"\\\". Expected argument to be an object with the following \" + (\"keys: \\\"\" + reducerKeys.join('\", \"') + \"\\\"\");\n }\n\n var unexpectedKeys = Object.keys(inputState).filter(function (key) {\n return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];\n });\n unexpectedKeys.forEach(function (key) {\n unexpectedKeyCache[key] = true;\n });\n if (action && action.type === ActionTypes.REPLACE) return;\n\n if (unexpectedKeys.length > 0) {\n return \"Unexpected \" + (unexpectedKeys.length > 1 ? 'keys' : 'key') + \" \" + (\"\\\"\" + unexpectedKeys.join('\", \"') + \"\\\" found in \" + argumentName + \". \") + \"Expected to find one of the known reducer keys instead: \" + (\"\\\"\" + reducerKeys.join('\", \"') + \"\\\". Unexpected keys will be ignored.\");\n }\n}\n\nfunction assertReducerShape(reducers) {\n Object.keys(reducers).forEach(function (key) {\n var reducer = reducers[key];\n var initialState = reducer(undefined, {\n type: ActionTypes.INIT\n });\n\n if (typeof initialState === 'undefined') {\n throw new Error(\"Reducer \\\"\" + key + \"\\\" returned undefined during initialization. \" + \"If the state passed to the reducer is undefined, you must \" + \"explicitly return the initial state. The initial state may \" + \"not be undefined. If you don't want to set a value for this reducer, \" + \"you can use null instead of undefined.\");\n }\n\n if (typeof reducer(undefined, {\n type: ActionTypes.PROBE_UNKNOWN_ACTION()\n }) === 'undefined') {\n throw new Error(\"Reducer \\\"\" + key + \"\\\" returned undefined when probed with a random type. \" + (\"Don't try to handle \" + ActionTypes.INIT + \" or other actions in \\\"redux/*\\\" \") + \"namespace. They are considered private. Instead, you must return the \" + \"current state for any unknown actions, unless it is undefined, \" + \"in which case you must return the initial state, regardless of the \" + \"action type. The initial state may not be undefined, but can be null.\");\n }\n });\n}\n/**\n * Turns an object whose values are different reducer functions, into a single\n * reducer function. It will call every child reducer, and gather their results\n * into a single state object, whose keys correspond to the keys of the passed\n * reducer functions.\n *\n * @param {Object} reducers An object whose values correspond to different\n * reducer functions that need to be combined into one. One handy way to obtain\n * it is to use ES6 `import * as reducers` syntax. The reducers may never return\n * undefined for any action. Instead, they should return their initial state\n * if the state passed to them was undefined, and the current state for any\n * unrecognized action.\n *\n * @returns {Function} A reducer function that invokes every reducer inside the\n * passed object, and builds a state object with the same shape.\n */\n\n\nfunction combineReducers(reducers) {\n var reducerKeys = Object.keys(reducers);\n var finalReducers = {};\n\n for (var i = 0; i < reducerKeys.length; i++) {\n var key = reducerKeys[i];\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof reducers[key] === 'undefined') {\n warning(\"No reducer provided for key \\\"\" + key + \"\\\"\");\n }\n }\n\n if (typeof reducers[key] === 'function') {\n finalReducers[key] = reducers[key];\n }\n }\n\n var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same\n // keys multiple times.\n\n var unexpectedKeyCache;\n\n if (process.env.NODE_ENV !== 'production') {\n unexpectedKeyCache = {};\n }\n\n var shapeAssertionError;\n\n try {\n assertReducerShape(finalReducers);\n } catch (e) {\n shapeAssertionError = e;\n }\n\n return function combination(state, action) {\n if (state === void 0) {\n state = {};\n }\n\n if (shapeAssertionError) {\n throw shapeAssertionError;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);\n\n if (warningMessage) {\n warning(warningMessage);\n }\n }\n\n var hasChanged = false;\n var nextState = {};\n\n for (var _i = 0; _i < finalReducerKeys.length; _i++) {\n var _key = finalReducerKeys[_i];\n var reducer = finalReducers[_key];\n var previousStateForKey = state[_key];\n var nextStateForKey = reducer(previousStateForKey, action);\n\n if (typeof nextStateForKey === 'undefined') {\n var errorMessage = getUndefinedStateErrorMessage(_key, action);\n throw new Error(errorMessage);\n }\n\n nextState[_key] = nextStateForKey;\n hasChanged = hasChanged || nextStateForKey !== previousStateForKey;\n }\n\n hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;\n return hasChanged ? nextState : state;\n };\n}\n\nfunction bindActionCreator(actionCreator, dispatch) {\n return function () {\n return dispatch(actionCreator.apply(this, arguments));\n };\n}\n/**\n * Turns an object whose values are action creators, into an object with the\n * same keys, but with every function wrapped into a `dispatch` call so they\n * may be invoked directly. This is just a convenience method, as you can call\n * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.\n *\n * For convenience, you can also pass an action creator as the first argument,\n * and get a dispatch wrapped function in return.\n *\n * @param {Function|Object} actionCreators An object whose values are action\n * creator functions. One handy way to obtain it is to use ES6 `import * as`\n * syntax. You may also pass a single function.\n *\n * @param {Function} dispatch The `dispatch` function available on your Redux\n * store.\n *\n * @returns {Function|Object} The object mimicking the original object, but with\n * every action creator wrapped into the `dispatch` call. If you passed a\n * function as `actionCreators`, the return value will also be a single\n * function.\n */\n\n\nfunction bindActionCreators(actionCreators, dispatch) {\n if (typeof actionCreators === 'function') {\n return bindActionCreator(actionCreators, dispatch);\n }\n\n if (typeof actionCreators !== 'object' || actionCreators === null) {\n throw new Error(\"bindActionCreators expected an object or a function, instead received \" + (actionCreators === null ? 'null' : typeof actionCreators) + \". \" + \"Did you write \\\"import ActionCreators from\\\" instead of \\\"import * as ActionCreators from\\\"?\");\n }\n\n var boundActionCreators = {};\n\n for (var key in actionCreators) {\n var actionCreator = actionCreators[key];\n\n if (typeof actionCreator === 'function') {\n boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);\n }\n }\n\n return boundActionCreators;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n keys.push.apply(keys, Object.getOwnPropertySymbols(object));\n }\n\n if (enumerableOnly) keys = keys.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\n/**\n * Composes single-argument functions from right to left. The rightmost\n * function can take multiple arguments as it provides the signature for\n * the resulting composite function.\n *\n * @param {...Function} funcs The functions to compose.\n * @returns {Function} A function obtained by composing the argument functions\n * from right to left. For example, compose(f, g, h) is identical to doing\n * (...args) => f(g(h(...args))).\n */\nfunction compose() {\n for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n if (funcs.length === 0) {\n return function (arg) {\n return arg;\n };\n }\n\n if (funcs.length === 1) {\n return funcs[0];\n }\n\n return funcs.reduce(function (a, b) {\n return function () {\n return a(b.apply(void 0, arguments));\n };\n });\n}\n\n/**\n * Creates a store enhancer that applies middleware to the dispatch method\n * of the Redux store. This is handy for a variety of tasks, such as expressing\n * asynchronous actions in a concise manner, or logging every action payload.\n *\n * See `redux-thunk` package as an example of the Redux middleware.\n *\n * Because middleware is potentially asynchronous, this should be the first\n * store enhancer in the composition chain.\n *\n * Note that each middleware will be given the `dispatch` and `getState` functions\n * as named arguments.\n *\n * @param {...Function} middlewares The middleware chain to be applied.\n * @returns {Function} A store enhancer applying the middleware.\n */\n\nfunction applyMiddleware() {\n for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {\n middlewares[_key] = arguments[_key];\n }\n\n return function (createStore) {\n return function () {\n var store = createStore.apply(void 0, arguments);\n\n var _dispatch = function dispatch() {\n throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');\n };\n\n var middlewareAPI = {\n getState: store.getState,\n dispatch: function dispatch() {\n return _dispatch.apply(void 0, arguments);\n }\n };\n var chain = middlewares.map(function (middleware) {\n return middleware(middlewareAPI);\n });\n _dispatch = compose.apply(void 0, chain)(store.dispatch);\n return _objectSpread2({}, store, {\n dispatch: _dispatch\n });\n };\n };\n}\n\n/*\n * This is a dummy function to check if the function name has been altered by minification.\n * If the function has been minified and NODE_ENV !== 'production', warn the user.\n */\n\nfunction isCrushed() {}\n\nif (process.env.NODE_ENV !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {\n warning('You are currently using minified code outside of NODE_ENV === \"production\". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');\n}\n\nexport { ActionTypes as __DO_NOT_USE__ActionTypes, applyMiddleware, bindActionCreators, combineReducers, compose, createStore };\n","import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\n// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves\n// to learn the context in which each easing should be used.\nexport var easing = {\n // This is the most common easing curve.\n easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',\n // Objects enter the screen at full velocity from off-screen and\n // slowly decelerate to a resting point.\n easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',\n // Objects leave the screen at full velocity. They do not decelerate when off-screen.\n easeIn: 'cubic-bezier(0.4, 0, 1, 1)',\n // The sharp curve is used by objects that may return to the screen at any time.\n sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'\n}; // Follow https://material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations\n// to learn when use what timing\n\nexport var duration = {\n shortest: 150,\n shorter: 200,\n short: 250,\n // most basic recommended timing\n standard: 300,\n // this is to be used in complex animations\n complex: 375,\n // recommended when something is entering screen\n enteringScreen: 225,\n // recommended when something is leaving screen\n leavingScreen: 195\n};\n\nfunction formatMs(milliseconds) {\n return \"\".concat(Math.round(milliseconds), \"ms\");\n}\n/**\n * @param {string|Array} props\n * @param {object} param\n * @param {string} param.prop\n * @param {number} param.duration\n * @param {string} param.easing\n * @param {number} param.delay\n */\n\n\nexport default {\n easing: easing,\n duration: duration,\n create: function create() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['all'];\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var _options$duration = options.duration,\n durationOption = _options$duration === void 0 ? duration.standard : _options$duration,\n _options$easing = options.easing,\n easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing,\n _options$delay = options.delay,\n delay = _options$delay === void 0 ? 0 : _options$delay,\n other = _objectWithoutProperties(options, [\"duration\", \"easing\", \"delay\"]);\n\n if (process.env.NODE_ENV !== 'production') {\n var isString = function isString(value) {\n return typeof value === 'string';\n };\n\n var isNumber = function isNumber(value) {\n return !isNaN(parseFloat(value));\n };\n\n if (!isString(props) && !Array.isArray(props)) {\n console.error('Material-UI: Argument \"props\" must be a string or Array.');\n }\n\n if (!isNumber(durationOption) && !isString(durationOption)) {\n console.error(\"Material-UI: Argument \\\"duration\\\" must be a number or a string but found \".concat(durationOption, \".\"));\n }\n\n if (!isString(easingOption)) {\n console.error('Material-UI: Argument \"easing\" must be a string.');\n }\n\n if (!isNumber(delay) && !isString(delay)) {\n console.error('Material-UI: Argument \"delay\" must be a number or a string.');\n }\n\n if (Object.keys(other).length !== 0) {\n console.error(\"Material-UI: Unrecognized argument(s) [\".concat(Object.keys(other).join(','), \"].\"));\n }\n }\n\n return (Array.isArray(props) ? props : [props]).map(function (animatedProp) {\n return \"\".concat(animatedProp, \" \").concat(typeof durationOption === 'string' ? durationOption : formatMs(durationOption), \" \").concat(easingOption, \" \").concat(typeof delay === 'string' ? delay : formatMs(delay));\n }).join(',');\n },\n getAutoHeightDuration: function getAutoHeightDuration(height) {\n if (!height) {\n return 0;\n }\n\n var constant = height / 36; // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10\n\n return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10);\n }\n};","'use strict';\n\nvar assert = require('minimalistic-assert');\nvar inherits = require('inherits');\n\nexports.inherits = inherits;\n\nfunction isSurrogatePair(msg, i) {\n if ((msg.charCodeAt(i) & 0xFC00) !== 0xD800) {\n return false;\n }\n if (i < 0 || i + 1 >= msg.length) {\n return false;\n }\n return (msg.charCodeAt(i + 1) & 0xFC00) === 0xDC00;\n}\n\nfunction toArray(msg, enc) {\n if (Array.isArray(msg))\n return msg.slice();\n if (!msg)\n return [];\n var res = [];\n if (typeof msg === 'string') {\n if (!enc) {\n // Inspired by stringToUtf8ByteArray() in closure-library by Google\n // https://github.com/google/closure-library/blob/8598d87242af59aac233270742c8984e2b2bdbe0/closure/goog/crypt/crypt.js#L117-L143\n // Apache License 2.0\n // https://github.com/google/closure-library/blob/master/LICENSE\n var p = 0;\n for (var i = 0; i < msg.length; i++) {\n var c = msg.charCodeAt(i);\n if (c < 128) {\n res[p++] = c;\n } else if (c < 2048) {\n res[p++] = (c >> 6) | 192;\n res[p++] = (c & 63) | 128;\n } else if (isSurrogatePair(msg, i)) {\n c = 0x10000 + ((c & 0x03FF) << 10) + (msg.charCodeAt(++i) & 0x03FF);\n res[p++] = (c >> 18) | 240;\n res[p++] = ((c >> 12) & 63) | 128;\n res[p++] = ((c >> 6) & 63) | 128;\n res[p++] = (c & 63) | 128;\n } else {\n res[p++] = (c >> 12) | 224;\n res[p++] = ((c >> 6) & 63) | 128;\n res[p++] = (c & 63) | 128;\n }\n }\n } else if (enc === 'hex') {\n msg = msg.replace(/[^a-z0-9]+/ig, '');\n if (msg.length % 2 !== 0)\n msg = '0' + msg;\n for (i = 0; i < msg.length; i += 2)\n res.push(parseInt(msg[i] + msg[i + 1], 16));\n }\n } else {\n for (i = 0; i < msg.length; i++)\n res[i] = msg[i] | 0;\n }\n return res;\n}\nexports.toArray = toArray;\n\nfunction toHex(msg) {\n var res = '';\n for (var i = 0; i < msg.length; i++)\n res += zero2(msg[i].toString(16));\n return res;\n}\nexports.toHex = toHex;\n\nfunction htonl(w) {\n var res = (w >>> 24) |\n ((w >>> 8) & 0xff00) |\n ((w << 8) & 0xff0000) |\n ((w & 0xff) << 24);\n return res >>> 0;\n}\nexports.htonl = htonl;\n\nfunction toHex32(msg, endian) {\n var res = '';\n for (var i = 0; i < msg.length; i++) {\n var w = msg[i];\n if (endian === 'little')\n w = htonl(w);\n res += zero8(w.toString(16));\n }\n return res;\n}\nexports.toHex32 = toHex32;\n\nfunction zero2(word) {\n if (word.length === 1)\n return '0' + word;\n else\n return word;\n}\nexports.zero2 = zero2;\n\nfunction zero8(word) {\n if (word.length === 7)\n return '0' + word;\n else if (word.length === 6)\n return '00' + word;\n else if (word.length === 5)\n return '000' + word;\n else if (word.length === 4)\n return '0000' + word;\n else if (word.length === 3)\n return '00000' + word;\n else if (word.length === 2)\n return '000000' + word;\n else if (word.length === 1)\n return '0000000' + word;\n else\n return word;\n}\nexports.zero8 = zero8;\n\nfunction join32(msg, start, end, endian) {\n var len = end - start;\n assert(len % 4 === 0);\n var res = new Array(len / 4);\n for (var i = 0, k = start; i < res.length; i++, k += 4) {\n var w;\n if (endian === 'big')\n w = (msg[k] << 24) | (msg[k + 1] << 16) | (msg[k + 2] << 8) | msg[k + 3];\n else\n w = (msg[k + 3] << 24) | (msg[k + 2] << 16) | (msg[k + 1] << 8) | msg[k];\n res[i] = w >>> 0;\n }\n return res;\n}\nexports.join32 = join32;\n\nfunction split32(msg, endian) {\n var res = new Array(msg.length * 4);\n for (var i = 0, k = 0; i < msg.length; i++, k += 4) {\n var m = msg[i];\n if (endian === 'big') {\n res[k] = m >>> 24;\n res[k + 1] = (m >>> 16) & 0xff;\n res[k + 2] = (m >>> 8) & 0xff;\n res[k + 3] = m & 0xff;\n } else {\n res[k + 3] = m >>> 24;\n res[k + 2] = (m >>> 16) & 0xff;\n res[k + 1] = (m >>> 8) & 0xff;\n res[k] = m & 0xff;\n }\n }\n return res;\n}\nexports.split32 = split32;\n\nfunction rotr32(w, b) {\n return (w >>> b) | (w << (32 - b));\n}\nexports.rotr32 = rotr32;\n\nfunction rotl32(w, b) {\n return (w << b) | (w >>> (32 - b));\n}\nexports.rotl32 = rotl32;\n\nfunction sum32(a, b) {\n return (a + b) >>> 0;\n}\nexports.sum32 = sum32;\n\nfunction sum32_3(a, b, c) {\n return (a + b + c) >>> 0;\n}\nexports.sum32_3 = sum32_3;\n\nfunction sum32_4(a, b, c, d) {\n return (a + b + c + d) >>> 0;\n}\nexports.sum32_4 = sum32_4;\n\nfunction sum32_5(a, b, c, d, e) {\n return (a + b + c + d + e) >>> 0;\n}\nexports.sum32_5 = sum32_5;\n\nfunction sum64(buf, pos, ah, al) {\n var bh = buf[pos];\n var bl = buf[pos + 1];\n\n var lo = (al + bl) >>> 0;\n var hi = (lo < al ? 1 : 0) + ah + bh;\n buf[pos] = hi >>> 0;\n buf[pos + 1] = lo;\n}\nexports.sum64 = sum64;\n\nfunction sum64_hi(ah, al, bh, bl) {\n var lo = (al + bl) >>> 0;\n var hi = (lo < al ? 1 : 0) + ah + bh;\n return hi >>> 0;\n}\nexports.sum64_hi = sum64_hi;\n\nfunction sum64_lo(ah, al, bh, bl) {\n var lo = al + bl;\n return lo >>> 0;\n}\nexports.sum64_lo = sum64_lo;\n\nfunction sum64_4_hi(ah, al, bh, bl, ch, cl, dh, dl) {\n var carry = 0;\n var lo = al;\n lo = (lo + bl) >>> 0;\n carry += lo < al ? 1 : 0;\n lo = (lo + cl) >>> 0;\n carry += lo < cl ? 1 : 0;\n lo = (lo + dl) >>> 0;\n carry += lo < dl ? 1 : 0;\n\n var hi = ah + bh + ch + dh + carry;\n return hi >>> 0;\n}\nexports.sum64_4_hi = sum64_4_hi;\n\nfunction sum64_4_lo(ah, al, bh, bl, ch, cl, dh, dl) {\n var lo = al + bl + cl + dl;\n return lo >>> 0;\n}\nexports.sum64_4_lo = sum64_4_lo;\n\nfunction sum64_5_hi(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {\n var carry = 0;\n var lo = al;\n lo = (lo + bl) >>> 0;\n carry += lo < al ? 1 : 0;\n lo = (lo + cl) >>> 0;\n carry += lo < cl ? 1 : 0;\n lo = (lo + dl) >>> 0;\n carry += lo < dl ? 1 : 0;\n lo = (lo + el) >>> 0;\n carry += lo < el ? 1 : 0;\n\n var hi = ah + bh + ch + dh + eh + carry;\n return hi >>> 0;\n}\nexports.sum64_5_hi = sum64_5_hi;\n\nfunction sum64_5_lo(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {\n var lo = al + bl + cl + dl + el;\n\n return lo >>> 0;\n}\nexports.sum64_5_lo = sum64_5_lo;\n\nfunction rotr64_hi(ah, al, num) {\n var r = (al << (32 - num)) | (ah >>> num);\n return r >>> 0;\n}\nexports.rotr64_hi = rotr64_hi;\n\nfunction rotr64_lo(ah, al, num) {\n var r = (ah << (32 - num)) | (al >>> num);\n return r >>> 0;\n}\nexports.rotr64_lo = rotr64_lo;\n\nfunction shr64_hi(ah, al, num) {\n return ah >>> num;\n}\nexports.shr64_hi = shr64_hi;\n\nfunction shr64_lo(ah, al, num) {\n var r = (ah << (32 - num)) | (al >>> num);\n return r >>> 0;\n}\nexports.shr64_lo = shr64_lo;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport withStyles from '../styles/withStyles';\nimport capitalize from '../utils/capitalize';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: {\n userSelect: 'none',\n width: '1em',\n height: '1em',\n display: 'inline-block',\n fill: 'currentColor',\n flexShrink: 0,\n fontSize: theme.typography.pxToRem(24),\n transition: theme.transitions.create('fill', {\n duration: theme.transitions.duration.shorter\n })\n },\n\n /* Styles applied to the root element if `color=\"primary\"`. */\n colorPrimary: {\n color: theme.palette.primary.main\n },\n\n /* Styles applied to the root element if `color=\"secondary\"`. */\n colorSecondary: {\n color: theme.palette.secondary.main\n },\n\n /* Styles applied to the root element if `color=\"action\"`. */\n colorAction: {\n color: theme.palette.action.active\n },\n\n /* Styles applied to the root element if `color=\"error\"`. */\n colorError: {\n color: theme.palette.error.main\n },\n\n /* Styles applied to the root element if `color=\"disabled\"`. */\n colorDisabled: {\n color: theme.palette.action.disabled\n },\n\n /* Styles applied to the root element if `fontSize=\"inherit\"`. */\n fontSizeInherit: {\n fontSize: 'inherit'\n },\n\n /* Styles applied to the root element if `fontSize=\"small\"`. */\n fontSizeSmall: {\n fontSize: theme.typography.pxToRem(20)\n },\n\n /* Styles applied to the root element if `fontSize=\"large\"`. */\n fontSizeLarge: {\n fontSize: theme.typography.pxToRem(35)\n }\n };\n};\nvar SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(props, ref) {\n var children = props.children,\n classes = props.classes,\n className = props.className,\n _props$color = props.color,\n color = _props$color === void 0 ? 'inherit' : _props$color,\n _props$component = props.component,\n Component = _props$component === void 0 ? 'svg' : _props$component,\n _props$fontSize = props.fontSize,\n fontSize = _props$fontSize === void 0 ? 'default' : _props$fontSize,\n htmlColor = props.htmlColor,\n titleAccess = props.titleAccess,\n _props$viewBox = props.viewBox,\n viewBox = _props$viewBox === void 0 ? '0 0 24 24' : _props$viewBox,\n other = _objectWithoutProperties(props, [\"children\", \"classes\", \"className\", \"color\", \"component\", \"fontSize\", \"htmlColor\", \"titleAccess\", \"viewBox\"]);\n\n return /*#__PURE__*/React.createElement(Component, _extends({\n className: clsx(classes.root, className, color !== 'inherit' && classes[\"color\".concat(capitalize(color))], fontSize !== 'default' && classes[\"fontSize\".concat(capitalize(fontSize))]),\n focusable: \"false\",\n viewBox: viewBox,\n color: htmlColor,\n \"aria-hidden\": titleAccess ? undefined : true,\n role: titleAccess ? 'img' : undefined,\n ref: ref\n }, other), children, titleAccess ? /*#__PURE__*/React.createElement(\"title\", null, titleAccess) : null);\n});\nprocess.env.NODE_ENV !== \"production\" ? SvgIcon.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * Node passed into the SVG element.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n * You can use the `htmlColor` prop to apply a color attribute to the SVG element.\n */\n color: PropTypes.oneOf(['action', 'disabled', 'error', 'inherit', 'primary', 'secondary']),\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType,\n\n /**\n * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.\n */\n fontSize: PropTypes.oneOf(['default', 'inherit', 'large', 'small']),\n\n /**\n * Applies a color attribute to the SVG element.\n */\n htmlColor: PropTypes.string,\n\n /**\n * The shape-rendering attribute. The behavior of the different options is described on the\n * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).\n * If you are having issues with blurry icons you should investigate this property.\n */\n shapeRendering: PropTypes.string,\n\n /**\n * Provides a human-readable title for the element that contains it.\n * https://www.w3.org/TR/SVG-access/#Equivalent\n */\n titleAccess: PropTypes.string,\n\n /**\n * Allows you to redefine what the coordinates without units mean inside an SVG element.\n * For example, if the SVG element is 500 (width) by 200 (height),\n * and you pass viewBox=\"0 0 50 20\",\n * this means that the coordinates inside the SVG will go from the top left corner (0,0)\n * to bottom right (50,20) and each unit will be worth 10px.\n */\n viewBox: PropTypes.string\n} : void 0;\nSvgIcon.muiName = 'SvgIcon';\nexport default withStyles(styles, {\n name: 'MuiSvgIcon'\n})(SvgIcon);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport React from 'react';\nimport SvgIcon from '../SvgIcon';\n/**\n * Private module reserved for @material-ui/x packages.\n */\n\nexport default function createSvgIcon(path, displayName) {\n var Component = function Component(props, ref) {\n return /*#__PURE__*/React.createElement(SvgIcon, _extends({\n ref: ref\n }, props), path);\n };\n\n if (process.env.NODE_ENV !== 'production') {\n // Need to set `displayName` on the inner component for React.memo.\n // React prior to 16.14 ignores `displayName` on the wrapper.\n Component.displayName = \"\".concat(displayName, \"Icon\");\n }\n\n Component.muiName = SvgIcon.muiName;\n return /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(Component));\n}","/**\n * Safe chained function\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n *\n * @param {function} functions to chain\n * @returns {function|null}\n */\nexport default function createChainedFunction() {\n for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n return funcs.reduce(function (acc, func) {\n if (func == null) {\n return acc;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof func !== 'function') {\n console.error('Material-UI: Invalid Argument Type, must only provide functions, undefined, or null.');\n }\n }\n\n return function chainedFunction() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n acc.apply(this, args);\n func.apply(this, args);\n };\n }, function () {});\n}","import arrayWithoutHoles from \"./arrayWithoutHoles\";\nimport iterableToArray from \"./iterableToArray\";\nimport nonIterableSpread from \"./nonIterableSpread\";\nexport default function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || nonIterableSpread();\n}","export default function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n }\n}","export default function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}","import * as React from 'react';\n/**\n * @ignore - internal component.\n */\n\nvar ListContext = React.createContext({});\n\nif (process.env.NODE_ENV !== 'production') {\n ListContext.displayName = 'ListContext';\n}\n\nexport default ListContext;","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.fromBuffer = exports.fromStream = exports.EndOfStreamError = void 0;\nconst ReadStreamTokenizer_1 = require(\"./ReadStreamTokenizer\");\nconst BufferTokenizer_1 = require(\"./BufferTokenizer\");\nvar peek_readable_1 = require(\"peek-readable\");\nObject.defineProperty(exports, \"EndOfStreamError\", { enumerable: true, get: function () { return peek_readable_1.EndOfStreamError; } });\n/**\n * Construct ReadStreamTokenizer from given Stream.\n * Will set fileSize, if provided given Stream has set the .path property/\n * @param stream - Read from Node.js Stream.Readable\n * @param fileInfo - Pass the file information, like size and MIME-type of the correspnding stream.\n * @returns ReadStreamTokenizer\n */\nfunction fromStream(stream, fileInfo) {\n fileInfo = fileInfo ? fileInfo : {};\n return new ReadStreamTokenizer_1.ReadStreamTokenizer(stream, fileInfo);\n}\nexports.fromStream = fromStream;\n/**\n * Construct ReadStreamTokenizer from given Buffer.\n * @param buffer - Buffer to tokenize\n * @param fileInfo - Pass additional file information to the tokenizer\n * @returns BufferTokenizer\n */\nfunction fromBuffer(buffer, fileInfo) {\n return new BufferTokenizer_1.BufferTokenizer(buffer, fileInfo);\n}\nexports.fromBuffer = fromBuffer;\n","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}","'use strict';\n\nvar reactIs = require('react-is');\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n '$$typeof': true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n '$$typeof': true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\n\nfunction getStatics(component) {\n // React v16.11 and below\n if (reactIs.isMemo(component)) {\n return MEMO_STATICS;\n } // React v16.12 and above\n\n\n return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n\n if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","var Buffer = require('safe-buffer').Buffer\nvar Transform = require('stream').Transform\nvar StringDecoder = require('string_decoder').StringDecoder\nvar inherits = require('inherits')\n\nfunction CipherBase (hashMode) {\n Transform.call(this)\n this.hashMode = typeof hashMode === 'string'\n if (this.hashMode) {\n this[hashMode] = this._finalOrDigest\n } else {\n this.final = this._finalOrDigest\n }\n if (this._final) {\n this.__final = this._final\n this._final = null\n }\n this._decoder = null\n this._encoding = null\n}\ninherits(CipherBase, Transform)\n\nCipherBase.prototype.update = function (data, inputEnc, outputEnc) {\n if (typeof data === 'string') {\n data = Buffer.from(data, inputEnc)\n }\n\n var outData = this._update(data)\n if (this.hashMode) return this\n\n if (outputEnc) {\n outData = this._toString(outData, outputEnc)\n }\n\n return outData\n}\n\nCipherBase.prototype.setAutoPadding = function () {}\nCipherBase.prototype.getAuthTag = function () {\n throw new Error('trying to get auth tag in unsupported state')\n}\n\nCipherBase.prototype.setAuthTag = function () {\n throw new Error('trying to set auth tag in unsupported state')\n}\n\nCipherBase.prototype.setAAD = function () {\n throw new Error('trying to set aad in unsupported state')\n}\n\nCipherBase.prototype._transform = function (data, _, next) {\n var err\n try {\n if (this.hashMode) {\n this._update(data)\n } else {\n this.push(this._update(data))\n }\n } catch (e) {\n err = e\n } finally {\n next(err)\n }\n}\nCipherBase.prototype._flush = function (done) {\n var err\n try {\n this.push(this.__final())\n } catch (e) {\n err = e\n }\n\n done(err)\n}\nCipherBase.prototype._finalOrDigest = function (outputEnc) {\n var outData = this.__final() || Buffer.alloc(0)\n if (outputEnc) {\n outData = this._toString(outData, outputEnc, true)\n }\n return outData\n}\n\nCipherBase.prototype._toString = function (value, enc, fin) {\n if (!this._decoder) {\n this._decoder = new StringDecoder(enc)\n this._encoding = enc\n }\n\n if (this._encoding !== enc) throw new Error('can\\'t switch encodings')\n\n var out = this._decoder.write(value)\n if (fin) {\n out += this._decoder.end()\n }\n\n return out\n}\n\nmodule.exports = CipherBase\n","export default function createStyles(styles) {\n return styles;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport React from 'react';\nimport { SheetsRegistry } from 'jss';\nimport StylesProvider from '../StylesProvider';\nimport createGenerateClassName from '../createGenerateClassName';\n\nvar ServerStyleSheets = /*#__PURE__*/function () {\n function ServerStyleSheets() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _classCallCheck(this, ServerStyleSheets);\n\n this.options = options;\n }\n\n _createClass(ServerStyleSheets, [{\n key: \"collect\",\n value: function collect(children) {\n // This is needed in order to deduplicate the injection of CSS in the page.\n var sheetsManager = new Map(); // This is needed in order to inject the critical CSS.\n\n this.sheetsRegistry = new SheetsRegistry(); // A new class name generator\n\n var generateClassName = createGenerateClassName();\n return /*#__PURE__*/React.createElement(StylesProvider, _extends({\n sheetsManager: sheetsManager,\n serverGenerateClassName: generateClassName,\n sheetsRegistry: this.sheetsRegistry\n }, this.options), children);\n }\n }, {\n key: \"toString\",\n value: function toString() {\n return this.sheetsRegistry ? this.sheetsRegistry.toString() : '';\n }\n }, {\n key: \"getStyleElement\",\n value: function getStyleElement(props) {\n return /*#__PURE__*/React.createElement('style', _extends({\n id: 'jss-server-side',\n key: 'jss-server-side',\n dangerouslySetInnerHTML: {\n __html: this.toString()\n }\n }, props));\n }\n }]);\n\n return ServerStyleSheets;\n}();\n\nexport { ServerStyleSheets as default };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\nimport { chainPropTypes, getDisplayName } from '@material-ui/utils';\nimport useTheme from '../useTheme';\nexport function withThemeCreator() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var defaultTheme = options.defaultTheme;\n\n var withTheme = function withTheme(Component) {\n if (process.env.NODE_ENV !== 'production') {\n if (Component === undefined) {\n throw new Error(['You are calling withTheme(Component) with an undefined component.', 'You may have forgotten to import it.'].join('\\n'));\n }\n }\n\n var WithTheme = /*#__PURE__*/React.forwardRef(function WithTheme(props, ref) {\n var innerRef = props.innerRef,\n other = _objectWithoutProperties(props, [\"innerRef\"]);\n\n var theme = useTheme() || defaultTheme;\n return /*#__PURE__*/React.createElement(Component, _extends({\n theme: theme,\n ref: innerRef || ref\n }, other));\n });\n process.env.NODE_ENV !== \"production\" ? WithTheme.propTypes = {\n /**\n * Use that prop to pass a ref to the decorated component.\n * @deprecated\n */\n innerRef: chainPropTypes(PropTypes.oneOfType([PropTypes.func, PropTypes.object]), function (props) {\n if (props.innerRef == null) {\n return null;\n }\n\n return new Error('Material-UI: The `innerRef` prop is deprecated and will be removed in v5. ' + 'Refs are now automatically forwarded to the inner component.');\n })\n } : void 0;\n\n if (process.env.NODE_ENV !== 'production') {\n WithTheme.displayName = \"WithTheme(\".concat(getDisplayName(Component), \")\");\n }\n\n hoistNonReactStatics(WithTheme, Component);\n\n if (process.env.NODE_ENV !== 'production') {\n // Exposed for test purposes.\n WithTheme.Naked = Component;\n }\n\n return WithTheme;\n };\n\n return withTheme;\n} // Provide the theme object as a prop to the input component.\n// It's an alternative API to useTheme().\n// We encourage the usage of useTheme() where possible.\n\nvar withTheme = withThemeCreator();\nexport default withTheme;","/** @license Material-UI v4.11.2\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/* eslint-disable import/export */\nimport { ponyfillGlobal } from '@material-ui/utils';\n/* Warning if there are several instances of @material-ui/styles */\n\nif (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test' && typeof window !== 'undefined') {\n ponyfillGlobal['__@material-ui/styles-init__'] = ponyfillGlobal['__@material-ui/styles-init__'] || 0;\n\n if (ponyfillGlobal['__@material-ui/styles-init__'] === 1) {\n console.warn(['It looks like there are several instances of `@material-ui/styles` initialized in this application.', 'This may cause theme propagation issues, broken class names, ' + 'specificity issues, and makes your application bigger without a good reason.', '', 'See https://material-ui.com/r/styles-instance-warning for more info.'].join('\\n'));\n }\n\n ponyfillGlobal['__@material-ui/styles-init__'] += 1;\n}\n\nexport { default as createGenerateClassName } from './createGenerateClassName';\nexport * from './createGenerateClassName';\nexport { default as createStyles } from './createStyles';\nexport * from './createStyles';\nexport { default as getThemeProps } from './getThemeProps';\nexport * from './getThemeProps';\nexport { default as jssPreset } from './jssPreset';\nexport * from './jssPreset';\nexport { default as makeStyles } from './makeStyles';\nexport * from './makeStyles';\nexport { default as mergeClasses } from './mergeClasses';\nexport * from './mergeClasses';\nexport { default as ServerStyleSheets } from './ServerStyleSheets';\nexport * from './ServerStyleSheets';\nexport { default as styled } from './styled';\nexport * from './styled';\nexport { default as StylesProvider } from './StylesProvider';\nexport * from './StylesProvider';\nexport { default as ThemeProvider } from './ThemeProvider';\nexport * from './ThemeProvider';\nexport { default as useTheme } from './useTheme';\nexport * from './useTheme';\nexport { default as withStyles } from './withStyles';\nexport * from './withStyles';\nexport { default as withTheme } from './withTheme';\nexport * from './withTheme';","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","// Corresponds to 10 frames at 60 Hz.\n// A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.\nexport default function debounce(func) {\n var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 166;\n var timeout;\n\n function debounced() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n // eslint-disable-next-line consistent-this\n var that = this;\n\n var later = function later() {\n func.apply(that, args);\n };\n\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n }\n\n debounced.clear = function () {\n clearTimeout(timeout);\n };\n\n return debounced;\n}","// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nvar hadKeyboardEvent = true;\nvar hadFocusVisibleRecently = false;\nvar hadFocusVisibleRecentlyTimeout = null;\nvar inputTypesWhitelist = {\n text: true,\n search: true,\n url: true,\n tel: true,\n email: true,\n password: true,\n number: true,\n date: true,\n month: true,\n week: true,\n time: true,\n datetime: true,\n 'datetime-local': true\n};\n/**\n * Computes whether the given element should automatically trigger the\n * `focus-visible` class being added, i.e. whether it should always match\n * `:focus-visible` when focused.\n * @param {Element} node\n * @return {boolean}\n */\n\nfunction focusTriggersKeyboardModality(node) {\n var type = node.type,\n tagName = node.tagName;\n\n if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {\n return true;\n }\n\n if (tagName === 'TEXTAREA' && !node.readOnly) {\n return true;\n }\n\n if (node.isContentEditable) {\n return true;\n }\n\n return false;\n}\n/**\n * Keep track of our keyboard modality state with `hadKeyboardEvent`.\n * If the most recent user interaction was via the keyboard;\n * and the key press did not include a meta, alt/option, or control key;\n * then the modality is keyboard. Otherwise, the modality is not keyboard.\n * @param {KeyboardEvent} event\n */\n\n\nfunction handleKeyDown(event) {\n if (event.metaKey || event.altKey || event.ctrlKey) {\n return;\n }\n\n hadKeyboardEvent = true;\n}\n/**\n * If at any point a user clicks with a pointing device, ensure that we change\n * the modality away from keyboard.\n * This avoids the situation where a user presses a key on an already focused\n * element, and then clicks on a different element, focusing it with a\n * pointing device, while we still think we're in keyboard modality.\n */\n\n\nfunction handlePointerDown() {\n hadKeyboardEvent = false;\n}\n\nfunction handleVisibilityChange() {\n if (this.visibilityState === 'hidden') {\n // If the tab becomes active again, the browser will handle calling focus\n // on the element (Safari actually calls it twice).\n // If this tab change caused a blur on an element with focus-visible,\n // re-apply the class when the user switches back to the tab.\n if (hadFocusVisibleRecently) {\n hadKeyboardEvent = true;\n }\n }\n}\n\nfunction prepare(doc) {\n doc.addEventListener('keydown', handleKeyDown, true);\n doc.addEventListener('mousedown', handlePointerDown, true);\n doc.addEventListener('pointerdown', handlePointerDown, true);\n doc.addEventListener('touchstart', handlePointerDown, true);\n doc.addEventListener('visibilitychange', handleVisibilityChange, true);\n}\n\nexport function teardown(doc) {\n doc.removeEventListener('keydown', handleKeyDown, true);\n doc.removeEventListener('mousedown', handlePointerDown, true);\n doc.removeEventListener('pointerdown', handlePointerDown, true);\n doc.removeEventListener('touchstart', handlePointerDown, true);\n doc.removeEventListener('visibilitychange', handleVisibilityChange, true);\n}\n\nfunction isFocusVisible(event) {\n var target = event.target;\n\n try {\n return target.matches(':focus-visible');\n } catch (error) {} // browsers not implementing :focus-visible will throw a SyntaxError\n // we use our own heuristic for those browsers\n // rethrow might be better if it's not the expected error but do we really\n // want to crash if focus-visible malfunctioned?\n // no need for validFocusTarget check. the user does that by attaching it to\n // focusable events only\n\n\n return hadKeyboardEvent || focusTriggersKeyboardModality(target);\n}\n/**\n * Should be called if a blur event is fired on a focus-visible element\n */\n\n\nfunction handleBlurVisible() {\n // To detect a tab/window switch, we look for a blur event followed\n // rapidly by a visibility change.\n // If we don't see a visibility change within 100ms, it's probably a\n // regular focus change.\n hadFocusVisibleRecently = true;\n window.clearTimeout(hadFocusVisibleRecentlyTimeout);\n hadFocusVisibleRecentlyTimeout = window.setTimeout(function () {\n hadFocusVisibleRecently = false;\n }, 100);\n}\n\nexport default function useIsFocusVisible() {\n var ref = React.useCallback(function (instance) {\n var node = ReactDOM.findDOMNode(instance);\n\n if (node != null) {\n prepare(node.ownerDocument);\n }\n }, []);\n\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useDebugValue(isFocusVisible);\n }\n\n return {\n isFocusVisible: isFocusVisible,\n onBlurVisible: handleBlurVisible,\n ref: ref\n };\n}","/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\nimport * as React from 'react';\nexport default function useControlled(_ref) {\n var controlled = _ref.controlled,\n defaultProp = _ref.default,\n name = _ref.name,\n _ref$state = _ref.state,\n state = _ref$state === void 0 ? 'value' : _ref$state;\n\n var _React$useRef = React.useRef(controlled !== undefined),\n isControlled = _React$useRef.current;\n\n var _React$useState = React.useState(defaultProp),\n valueState = _React$useState[0],\n setValue = _React$useState[1];\n\n var value = isControlled ? controlled : valueState;\n\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(function () {\n if (isControlled !== (controlled !== undefined)) {\n console.error([\"Material-UI: A component is changing the \".concat(isControlled ? '' : 'un', \"controlled \").concat(state, \" state of \").concat(name, \" to be \").concat(isControlled ? 'un' : '', \"controlled.\"), 'Elements should not switch from uncontrolled to controlled (or vice versa).', \"Decide between using a controlled or uncontrolled \".concat(name, \" \") + 'element for the lifetime of the component.', \"The nature of the state is determined during the first render, it's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n }\n }, [controlled]);\n\n var _React$useRef2 = React.useRef(defaultProp),\n defaultValue = _React$useRef2.current;\n\n React.useEffect(function () {\n if (!isControlled && defaultValue !== defaultProp) {\n console.error([\"Material-UI: A component is changing the default \".concat(state, \" state of an uncontrolled \").concat(name, \" after being initialized. \") + \"To suppress this warning opt to use a controlled \".concat(name, \".\")].join('\\n'));\n }\n }, [JSON.stringify(defaultProp)]);\n }\n\n var setValueIfUncontrolled = React.useCallback(function (newValue) {\n if (!isControlled) {\n setValue(newValue);\n }\n }, []);\n return [value, setValueIfUncontrolled];\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}","import createMuiTheme from './createMuiTheme';\nvar defaultTheme = createMuiTheme();\nexport default defaultTheme;","import { deepmerge } from '@material-ui/utils';\n\nfunction merge(acc, item) {\n if (!item) {\n return acc;\n }\n\n return deepmerge(acc, item, {\n clone: false // No need to clone deep, it's way faster.\n\n });\n}\n\nexport default merge;","import * as React from 'react';\nexport default function isMuiElement(element, muiNames) {\n return /*#__PURE__*/React.isValidElement(element) && muiNames.indexOf(element.type.muiName) !== -1;\n}","import * as React from 'react';\n/**\n * @ignore - internal component.\n */\n\nvar Tablelvl2Context = React.createContext();\n\nif (process.env.NODE_ENV !== 'production') {\n Tablelvl2Context.displayName = 'Tablelvl2Context';\n}\n\nexport default Tablelvl2Context;","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n\n'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\n/**/\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) {\n keys.push(key);\n }return keys;\n};\n/**/\n\nmodule.exports = Duplex;\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\nvar Readable = require('./_stream_readable');\nvar Writable = require('./_stream_writable');\n\nutil.inherits(Duplex, Readable);\n\n{\n // avoid scope creep, the keys array can then be collected\n var keys = objectKeys(Writable.prototype);\n for (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];\n }\n}\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex)) return new Duplex(options);\n\n Readable.call(this, options);\n Writable.call(this, options);\n\n if (options && options.readable === false) this.readable = false;\n\n if (options && options.writable === false) this.writable = false;\n\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false) this.allowHalfOpen = false;\n\n this.once('end', onend);\n}\n\nObject.defineProperty(Duplex.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._writableState.highWaterMark;\n }\n});\n\n// the no-half-open enforcer\nfunction onend() {\n // if we allow half-open state, or if the writable side ended,\n // then we're ok.\n if (this.allowHalfOpen || this._writableState.ended) return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n pna.nextTick(onEndNT, this);\n}\n\nfunction onEndNT(self) {\n self.end();\n}\n\nObject.defineProperty(Duplex.prototype, 'destroyed', {\n get: function () {\n if (this._readableState === undefined || this._writableState === undefined) {\n return false;\n }\n return this._readableState.destroyed && this._writableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (this._readableState === undefined || this._writableState === undefined) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._readableState.destroyed = value;\n this._writableState.destroyed = value;\n }\n});\n\nDuplex.prototype._destroy = function (err, cb) {\n this.push(null);\n this.end();\n\n pna.nextTick(cb, err);\n};",";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./sha1\"), require(\"./hmac\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./sha1\", \"./hmac\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var Base = C_lib.Base;\n\t var WordArray = C_lib.WordArray;\n\t var C_algo = C.algo;\n\t var MD5 = C_algo.MD5;\n\n\t /**\n\t * This key derivation function is meant to conform with EVP_BytesToKey.\n\t * www.openssl.org/docs/crypto/EVP_BytesToKey.html\n\t */\n\t var EvpKDF = C_algo.EvpKDF = Base.extend({\n\t /**\n\t * Configuration options.\n\t *\n\t * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)\n\t * @property {Hasher} hasher The hash algorithm to use. Default: MD5\n\t * @property {number} iterations The number of iterations to perform. Default: 1\n\t */\n\t cfg: Base.extend({\n\t keySize: 128/32,\n\t hasher: MD5,\n\t iterations: 1\n\t }),\n\n\t /**\n\t * Initializes a newly created key derivation function.\n\t *\n\t * @param {Object} cfg (Optional) The configuration options to use for the derivation.\n\t *\n\t * @example\n\t *\n\t * var kdf = CryptoJS.algo.EvpKDF.create();\n\t * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });\n\t * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });\n\t */\n\t init: function (cfg) {\n\t this.cfg = this.cfg.extend(cfg);\n\t },\n\n\t /**\n\t * Derives a key from a password.\n\t *\n\t * @param {WordArray|string} password The password.\n\t * @param {WordArray|string} salt A salt.\n\t *\n\t * @return {WordArray} The derived key.\n\t *\n\t * @example\n\t *\n\t * var key = kdf.compute(password, salt);\n\t */\n\t compute: function (password, salt) {\n\t var block;\n\n\t // Shortcut\n\t var cfg = this.cfg;\n\n\t // Init hasher\n\t var hasher = cfg.hasher.create();\n\n\t // Initial values\n\t var derivedKey = WordArray.create();\n\n\t // Shortcuts\n\t var derivedKeyWords = derivedKey.words;\n\t var keySize = cfg.keySize;\n\t var iterations = cfg.iterations;\n\n\t // Generate key\n\t while (derivedKeyWords.length < keySize) {\n\t if (block) {\n\t hasher.update(block);\n\t }\n\t block = hasher.update(password).finalize(salt);\n\t hasher.reset();\n\n\t // Iterations\n\t for (var i = 1; i < iterations; i++) {\n\t block = hasher.finalize(block);\n\t hasher.reset();\n\t }\n\n\t derivedKey.concat(block);\n\t }\n\t derivedKey.sigBytes = keySize * 4;\n\n\t return derivedKey;\n\t }\n\t });\n\n\t /**\n\t * Derives a key from a password.\n\t *\n\t * @param {WordArray|string} password The password.\n\t * @param {WordArray|string} salt A salt.\n\t * @param {Object} cfg (Optional) The configuration options to use for this computation.\n\t *\n\t * @return {WordArray} The derived key.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var key = CryptoJS.EvpKDF(password, salt);\n\t * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8 });\n\t * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8, iterations: 1000 });\n\t */\n\t C.EvpKDF = function (password, salt, cfg) {\n\t return EvpKDF.create(cfg).compute(password, salt);\n\t };\n\t}());\n\n\n\treturn CryptoJS.EvpKDF;\n\n}));","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CommonTagMapper = void 0;\nconst ID3v1Parser_1 = require(\"../id3v1/ID3v1Parser\");\nclass CommonTagMapper {\n constructor(tagTypes, tagMap) {\n this.tagTypes = tagTypes;\n this.tagMap = tagMap;\n }\n static parseGenre(origVal) {\n // match everything inside parentheses\n const split = origVal.trim().split(/\\((.*?)\\)/g).filter(val => {\n return val !== '';\n });\n const array = [];\n for (let cur of split) {\n if (/^\\d+$/.test(cur) && !isNaN(parseInt(cur, 10))) {\n cur = ID3v1Parser_1.Genres[cur];\n }\n array.push(cur);\n }\n return array\n .filter(val => {\n return val !== undefined;\n }).join('/');\n }\n static toIntOrNull(str) {\n const cleaned = parseInt(str, 10);\n return isNaN(cleaned) ? null : cleaned;\n }\n // TODO: a string of 1of1 would fail to be converted\n // converts 1/10 to no : 1, of : 10\n // or 1 to no : 1, of : 0\n static normalizeTrack(origVal) {\n const split = origVal.toString().split('/');\n return {\n no: parseInt(split[0], 10) || null,\n of: parseInt(split[1], 10) || null\n };\n }\n /**\n * Process and set common tags\n * write common tags to\n * @param tag Native tag\n * @param warnings Register warnings\n * @return common name\n */\n mapGenericTag(tag, warnings) {\n tag = { id: tag.id, value: tag.value }; // clone object\n this.postMap(tag, warnings);\n // Convert native tag event to generic 'alias' tag\n const id = this.getCommonName(tag.id);\n return id ? { id, value: tag.value } : null;\n }\n /**\n * Convert native tag key to common tag key\n * @tag Native header tag\n * @return common tag name (alias)\n */\n getCommonName(tag) {\n return this.tagMap[tag];\n }\n /**\n * Handle post mapping exceptions / correction\n * @param {string} tag Tag e.g. {\"©alb\", \"Buena Vista Social Club\")\n * @param {warnings} Used to register warnings\n */\n postMap(tag, warnings) {\n return;\n }\n}\nexports.CommonTagMapper = CommonTagMapper;\nCommonTagMapper.maxRatingScore = 1;\n","export default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}","// Supports determination of isControlled().\n// Controlled input accepts its current value as a prop.\n//\n// @see https://facebook.github.io/react/docs/forms.html#controlled-components\n// @param value\n// @returns {boolean} true if string (including '') or number (including zero)\nexport function hasValue(value) {\n return value != null && !(Array.isArray(value) && value.length === 0);\n} // Determine if field is empty or filled.\n// Response determines if label is presented above field or as placeholder.\n//\n// @param obj\n// @param SSR\n// @returns {boolean} False when not present or empty string.\n// True when any number or string with length.\n\nexport function isFilled(obj) {\n var SSR = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n return obj && (hasValue(obj.value) && obj.value !== '' || SSR && hasValue(obj.defaultValue) && obj.defaultValue !== '');\n} // Determine if an Input is adorned on start.\n// It's corresponding to the left with LTR.\n//\n// @param obj\n// @returns {boolean} False when no adornments.\n// True when adorned at the start.\n\nexport function isAdornedStart(obj) {\n return obj.startAdornment;\n}","import * as React from 'react';\n/**\n * @ignore - internal component.\n */\n\nvar FormControlContext = React.createContext();\n\nif (process.env.NODE_ENV !== 'production') {\n FormControlContext.displayName = 'FormControlContext';\n}\n\nexport function useFormControl() {\n return React.useContext(FormControlContext);\n}\nexport default FormControlContext;","var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nexport var isBrowser = (typeof window === \"undefined\" ? \"undefined\" : _typeof(window)) === \"object\" && (typeof document === \"undefined\" ? \"undefined\" : _typeof(document)) === 'object' && document.nodeType === 9;\n\nexport default isBrowser;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport withStyles from '../styles/withStyles';\nimport capitalize from '../utils/capitalize';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: {\n margin: 0\n },\n\n /* Styles applied to the root element if `variant=\"body2\"`. */\n body2: theme.typography.body2,\n\n /* Styles applied to the root element if `variant=\"body1\"`. */\n body1: theme.typography.body1,\n\n /* Styles applied to the root element if `variant=\"caption\"`. */\n caption: theme.typography.caption,\n\n /* Styles applied to the root element if `variant=\"button\"`. */\n button: theme.typography.button,\n\n /* Styles applied to the root element if `variant=\"h1\"`. */\n h1: theme.typography.h1,\n\n /* Styles applied to the root element if `variant=\"h2\"`. */\n h2: theme.typography.h2,\n\n /* Styles applied to the root element if `variant=\"h3\"`. */\n h3: theme.typography.h3,\n\n /* Styles applied to the root element if `variant=\"h4\"`. */\n h4: theme.typography.h4,\n\n /* Styles applied to the root element if `variant=\"h5\"`. */\n h5: theme.typography.h5,\n\n /* Styles applied to the root element if `variant=\"h6\"`. */\n h6: theme.typography.h6,\n\n /* Styles applied to the root element if `variant=\"subtitle1\"`. */\n subtitle1: theme.typography.subtitle1,\n\n /* Styles applied to the root element if `variant=\"subtitle2\"`. */\n subtitle2: theme.typography.subtitle2,\n\n /* Styles applied to the root element if `variant=\"overline\"`. */\n overline: theme.typography.overline,\n\n /* Styles applied to the root element if `variant=\"srOnly\"`. Only accessible to screen readers. */\n srOnly: {\n position: 'absolute',\n height: 1,\n width: 1,\n overflow: 'hidden'\n },\n\n /* Styles applied to the root element if `align=\"left\"`. */\n alignLeft: {\n textAlign: 'left'\n },\n\n /* Styles applied to the root element if `align=\"center\"`. */\n alignCenter: {\n textAlign: 'center'\n },\n\n /* Styles applied to the root element if `align=\"right\"`. */\n alignRight: {\n textAlign: 'right'\n },\n\n /* Styles applied to the root element if `align=\"justify\"`. */\n alignJustify: {\n textAlign: 'justify'\n },\n\n /* Styles applied to the root element if `nowrap={true}`. */\n noWrap: {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap'\n },\n\n /* Styles applied to the root element if `gutterBottom={true}`. */\n gutterBottom: {\n marginBottom: '0.35em'\n },\n\n /* Styles applied to the root element if `paragraph={true}`. */\n paragraph: {\n marginBottom: 16\n },\n\n /* Styles applied to the root element if `color=\"inherit\"`. */\n colorInherit: {\n color: 'inherit'\n },\n\n /* Styles applied to the root element if `color=\"primary\"`. */\n colorPrimary: {\n color: theme.palette.primary.main\n },\n\n /* Styles applied to the root element if `color=\"secondary\"`. */\n colorSecondary: {\n color: theme.palette.secondary.main\n },\n\n /* Styles applied to the root element if `color=\"textPrimary\"`. */\n colorTextPrimary: {\n color: theme.palette.text.primary\n },\n\n /* Styles applied to the root element if `color=\"textSecondary\"`. */\n colorTextSecondary: {\n color: theme.palette.text.secondary\n },\n\n /* Styles applied to the root element if `color=\"error\"`. */\n colorError: {\n color: theme.palette.error.main\n },\n\n /* Styles applied to the root element if `display=\"inline\"`. */\n displayInline: {\n display: 'inline'\n },\n\n /* Styles applied to the root element if `display=\"block\"`. */\n displayBlock: {\n display: 'block'\n }\n };\n};\nvar defaultVariantMapping = {\n h1: 'h1',\n h2: 'h2',\n h3: 'h3',\n h4: 'h4',\n h5: 'h5',\n h6: 'h6',\n subtitle1: 'h6',\n subtitle2: 'h6',\n body1: 'p',\n body2: 'p'\n};\nvar Typography = /*#__PURE__*/React.forwardRef(function Typography(props, ref) {\n var _props$align = props.align,\n align = _props$align === void 0 ? 'inherit' : _props$align,\n classes = props.classes,\n className = props.className,\n _props$color = props.color,\n color = _props$color === void 0 ? 'initial' : _props$color,\n component = props.component,\n _props$display = props.display,\n display = _props$display === void 0 ? 'initial' : _props$display,\n _props$gutterBottom = props.gutterBottom,\n gutterBottom = _props$gutterBottom === void 0 ? false : _props$gutterBottom,\n _props$noWrap = props.noWrap,\n noWrap = _props$noWrap === void 0 ? false : _props$noWrap,\n _props$paragraph = props.paragraph,\n paragraph = _props$paragraph === void 0 ? false : _props$paragraph,\n _props$variant = props.variant,\n variant = _props$variant === void 0 ? 'body1' : _props$variant,\n _props$variantMapping = props.variantMapping,\n variantMapping = _props$variantMapping === void 0 ? defaultVariantMapping : _props$variantMapping,\n other = _objectWithoutProperties(props, [\"align\", \"classes\", \"className\", \"color\", \"component\", \"display\", \"gutterBottom\", \"noWrap\", \"paragraph\", \"variant\", \"variantMapping\"]);\n\n var Component = component || (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) || 'span';\n return /*#__PURE__*/React.createElement(Component, _extends({\n className: clsx(classes.root, className, variant !== 'inherit' && classes[variant], color !== 'initial' && classes[\"color\".concat(capitalize(color))], noWrap && classes.noWrap, gutterBottom && classes.gutterBottom, paragraph && classes.paragraph, align !== 'inherit' && classes[\"align\".concat(capitalize(align))], display !== 'initial' && classes[\"display\".concat(capitalize(display))]),\n ref: ref\n }, other));\n});\nprocess.env.NODE_ENV !== \"production\" ? Typography.propTypes = {\n /**\n * Set the text-align on the component.\n */\n align: PropTypes.oneOf(['inherit', 'left', 'center', 'right', 'justify']),\n\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object.isRequired,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n */\n color: PropTypes.oneOf(['initial', 'inherit', 'primary', 'secondary', 'textPrimary', 'textSecondary', 'error']),\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n * Overrides the behavior of the `variantMapping` prop.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType,\n\n /**\n * Controls the display type\n */\n display: PropTypes.oneOf(['initial', 'block', 'inline']),\n\n /**\n * If `true`, the text will have a bottom margin.\n */\n gutterBottom: PropTypes.bool,\n\n /**\n * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.\n *\n * Note that text overflow can only happen with block or inline-block level elements\n * (the element needs to have a width in order to overflow).\n */\n noWrap: PropTypes.bool,\n\n /**\n * If `true`, the text will have a bottom margin.\n */\n paragraph: PropTypes.bool,\n\n /**\n * Applies the theme typography styles.\n */\n variant: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'caption', 'button', 'overline', 'srOnly', 'inherit']),\n\n /**\n * The component maps the variant prop to a range of different HTML element types.\n * For instance, subtitle1 to `

`.\n * If you wish to change that mapping, you can provide your own.\n * Alternatively, you can use the `component` prop.\n */\n variantMapping: PropTypes.object\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiTypography'\n})(Typography);","'use strict'\n\n// limit of Crypto.getRandomValues()\n// https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues\nvar MAX_BYTES = 65536\n\n// Node supports requesting up to this number of bytes\n// https://github.com/nodejs/node/blob/master/lib/internal/crypto/random.js#L48\nvar MAX_UINT32 = 4294967295\n\nfunction oldBrowser () {\n throw new Error('Secure random number generation is not supported by this browser.\\nUse Chrome, Firefox or Internet Explorer 11')\n}\n\nvar Buffer = require('safe-buffer').Buffer\nvar crypto = global.crypto || global.msCrypto\n\nif (crypto && crypto.getRandomValues) {\n module.exports = randomBytes\n} else {\n module.exports = oldBrowser\n}\n\nfunction randomBytes (size, cb) {\n // phantomjs needs to throw\n if (size > MAX_UINT32) throw new RangeError('requested too many random bytes')\n\n var bytes = Buffer.allocUnsafe(size)\n\n if (size > 0) { // getRandomValues fails on IE if size == 0\n if (size > MAX_BYTES) { // this is the max bytes crypto.getRandomValues\n // can do at once see https://developer.mozilla.org/en-US/docs/Web/API/window.crypto.getRandomValues\n for (var generated = 0; generated < size; generated += MAX_BYTES) {\n // buffer.slice automatically checks if the end is past the end of\n // the buffer so we don't have to here\n crypto.getRandomValues(bytes.slice(generated, generated + MAX_BYTES))\n }\n } else {\n crypto.getRandomValues(bytes)\n }\n }\n\n if (typeof cb === 'function') {\n return process.nextTick(function () {\n cb(null, bytes)\n })\n }\n\n return bytes\n}\n","var Buffer = require('safe-buffer').Buffer\n\n// prototype class for hash functions\nfunction Hash (blockSize, finalSize) {\n this._block = Buffer.alloc(blockSize)\n this._finalSize = finalSize\n this._blockSize = blockSize\n this._len = 0\n}\n\nHash.prototype.update = function (data, enc) {\n if (typeof data === 'string') {\n enc = enc || 'utf8'\n data = Buffer.from(data, enc)\n }\n\n var block = this._block\n var blockSize = this._blockSize\n var length = data.length\n var accum = this._len\n\n for (var offset = 0; offset < length;) {\n var assigned = accum % blockSize\n var remainder = Math.min(length - offset, blockSize - assigned)\n\n for (var i = 0; i < remainder; i++) {\n block[assigned + i] = data[offset + i]\n }\n\n accum += remainder\n offset += remainder\n\n if ((accum % blockSize) === 0) {\n this._update(block)\n }\n }\n\n this._len += length\n return this\n}\n\nHash.prototype.digest = function (enc) {\n var rem = this._len % this._blockSize\n\n this._block[rem] = 0x80\n\n // zero (rem + 1) trailing bits, where (rem + 1) is the smallest\n // non-negative solution to the equation (length + 1 + (rem + 1)) === finalSize mod blockSize\n this._block.fill(0, rem + 1)\n\n if (rem >= this._finalSize) {\n this._update(this._block)\n this._block.fill(0)\n }\n\n var bits = this._len * 8\n\n // uint32\n if (bits <= 0xffffffff) {\n this._block.writeUInt32BE(bits, this._blockSize - 4)\n\n // uint64\n } else {\n var lowBits = (bits & 0xffffffff) >>> 0\n var highBits = (bits - lowBits) / 0x100000000\n\n this._block.writeUInt32BE(highBits, this._blockSize - 8)\n this._block.writeUInt32BE(lowBits, this._blockSize - 4)\n }\n\n this._update(this._block)\n var hash = this._hash()\n\n return enc ? hash.toString(enc) : hash\n}\n\nHash.prototype._update = function () {\n throw new Error('_update must be implemented by subclass')\n}\n\nmodule.exports = Hash\n",";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var C_enc = C.enc;\n\n\t /**\n\t * Base64 encoding strategy.\n\t */\n\t var Base64 = C_enc.Base64 = {\n\t /**\n\t * Converts a word array to a Base64 string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The Base64 string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var base64String = CryptoJS.enc.Base64.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\t var map = this._map;\n\n\t // Clamp excess bits\n\t wordArray.clamp();\n\n\t // Convert\n\t var base64Chars = [];\n\t for (var i = 0; i < sigBytes; i += 3) {\n\t var byte1 = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t var byte2 = (words[(i + 1) >>> 2] >>> (24 - ((i + 1) % 4) * 8)) & 0xff;\n\t var byte3 = (words[(i + 2) >>> 2] >>> (24 - ((i + 2) % 4) * 8)) & 0xff;\n\n\t var triplet = (byte1 << 16) | (byte2 << 8) | byte3;\n\n\t for (var j = 0; (j < 4) && (i + j * 0.75 < sigBytes); j++) {\n\t base64Chars.push(map.charAt((triplet >>> (6 * (3 - j))) & 0x3f));\n\t }\n\t }\n\n\t // Add padding\n\t var paddingChar = map.charAt(64);\n\t if (paddingChar) {\n\t while (base64Chars.length % 4) {\n\t base64Chars.push(paddingChar);\n\t }\n\t }\n\n\t return base64Chars.join('');\n\t },\n\n\t /**\n\t * Converts a Base64 string to a word array.\n\t *\n\t * @param {string} base64Str The Base64 string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Base64.parse(base64String);\n\t */\n\t parse: function (base64Str) {\n\t // Shortcuts\n\t var base64StrLength = base64Str.length;\n\t var map = this._map;\n\t var reverseMap = this._reverseMap;\n\n\t if (!reverseMap) {\n\t reverseMap = this._reverseMap = [];\n\t for (var j = 0; j < map.length; j++) {\n\t reverseMap[map.charCodeAt(j)] = j;\n\t }\n\t }\n\n\t // Ignore padding\n\t var paddingChar = map.charAt(64);\n\t if (paddingChar) {\n\t var paddingIndex = base64Str.indexOf(paddingChar);\n\t if (paddingIndex !== -1) {\n\t base64StrLength = paddingIndex;\n\t }\n\t }\n\n\t // Convert\n\t return parseLoop(base64Str, base64StrLength, reverseMap);\n\n\t },\n\n\t _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='\n\t };\n\n\t function parseLoop(base64Str, base64StrLength, reverseMap) {\n\t var words = [];\n\t var nBytes = 0;\n\t for (var i = 0; i < base64StrLength; i++) {\n\t if (i % 4) {\n\t var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << ((i % 4) * 2);\n\t var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> (6 - (i % 4) * 2);\n\t var bitsCombined = bits1 | bits2;\n\t words[nBytes >>> 2] |= bitsCombined << (24 - (nBytes % 4) * 8);\n\t nBytes++;\n\t }\n\t }\n\t return WordArray.create(words, nBytes);\n\t }\n\t}());\n\n\n\treturn CryptoJS.enc.Base64;\n\n}));",";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function (Math) {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var Hasher = C_lib.Hasher;\n\t var C_algo = C.algo;\n\n\t // Constants table\n\t var T = [];\n\n\t // Compute constants\n\t (function () {\n\t for (var i = 0; i < 64; i++) {\n\t T[i] = (Math.abs(Math.sin(i + 1)) * 0x100000000) | 0;\n\t }\n\t }());\n\n\t /**\n\t * MD5 hash algorithm.\n\t */\n\t var MD5 = C_algo.MD5 = Hasher.extend({\n\t _doReset: function () {\n\t this._hash = new WordArray.init([\n\t 0x67452301, 0xefcdab89,\n\t 0x98badcfe, 0x10325476\n\t ]);\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\t // Swap endian\n\t for (var i = 0; i < 16; i++) {\n\t // Shortcuts\n\t var offset_i = offset + i;\n\t var M_offset_i = M[offset_i];\n\n\t M[offset_i] = (\n\t (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |\n\t (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)\n\t );\n\t }\n\n\t // Shortcuts\n\t var H = this._hash.words;\n\n\t var M_offset_0 = M[offset + 0];\n\t var M_offset_1 = M[offset + 1];\n\t var M_offset_2 = M[offset + 2];\n\t var M_offset_3 = M[offset + 3];\n\t var M_offset_4 = M[offset + 4];\n\t var M_offset_5 = M[offset + 5];\n\t var M_offset_6 = M[offset + 6];\n\t var M_offset_7 = M[offset + 7];\n\t var M_offset_8 = M[offset + 8];\n\t var M_offset_9 = M[offset + 9];\n\t var M_offset_10 = M[offset + 10];\n\t var M_offset_11 = M[offset + 11];\n\t var M_offset_12 = M[offset + 12];\n\t var M_offset_13 = M[offset + 13];\n\t var M_offset_14 = M[offset + 14];\n\t var M_offset_15 = M[offset + 15];\n\n\t // Working varialbes\n\t var a = H[0];\n\t var b = H[1];\n\t var c = H[2];\n\t var d = H[3];\n\n\t // Computation\n\t a = FF(a, b, c, d, M_offset_0, 7, T[0]);\n\t d = FF(d, a, b, c, M_offset_1, 12, T[1]);\n\t c = FF(c, d, a, b, M_offset_2, 17, T[2]);\n\t b = FF(b, c, d, a, M_offset_3, 22, T[3]);\n\t a = FF(a, b, c, d, M_offset_4, 7, T[4]);\n\t d = FF(d, a, b, c, M_offset_5, 12, T[5]);\n\t c = FF(c, d, a, b, M_offset_6, 17, T[6]);\n\t b = FF(b, c, d, a, M_offset_7, 22, T[7]);\n\t a = FF(a, b, c, d, M_offset_8, 7, T[8]);\n\t d = FF(d, a, b, c, M_offset_9, 12, T[9]);\n\t c = FF(c, d, a, b, M_offset_10, 17, T[10]);\n\t b = FF(b, c, d, a, M_offset_11, 22, T[11]);\n\t a = FF(a, b, c, d, M_offset_12, 7, T[12]);\n\t d = FF(d, a, b, c, M_offset_13, 12, T[13]);\n\t c = FF(c, d, a, b, M_offset_14, 17, T[14]);\n\t b = FF(b, c, d, a, M_offset_15, 22, T[15]);\n\n\t a = GG(a, b, c, d, M_offset_1, 5, T[16]);\n\t d = GG(d, a, b, c, M_offset_6, 9, T[17]);\n\t c = GG(c, d, a, b, M_offset_11, 14, T[18]);\n\t b = GG(b, c, d, a, M_offset_0, 20, T[19]);\n\t a = GG(a, b, c, d, M_offset_5, 5, T[20]);\n\t d = GG(d, a, b, c, M_offset_10, 9, T[21]);\n\t c = GG(c, d, a, b, M_offset_15, 14, T[22]);\n\t b = GG(b, c, d, a, M_offset_4, 20, T[23]);\n\t a = GG(a, b, c, d, M_offset_9, 5, T[24]);\n\t d = GG(d, a, b, c, M_offset_14, 9, T[25]);\n\t c = GG(c, d, a, b, M_offset_3, 14, T[26]);\n\t b = GG(b, c, d, a, M_offset_8, 20, T[27]);\n\t a = GG(a, b, c, d, M_offset_13, 5, T[28]);\n\t d = GG(d, a, b, c, M_offset_2, 9, T[29]);\n\t c = GG(c, d, a, b, M_offset_7, 14, T[30]);\n\t b = GG(b, c, d, a, M_offset_12, 20, T[31]);\n\n\t a = HH(a, b, c, d, M_offset_5, 4, T[32]);\n\t d = HH(d, a, b, c, M_offset_8, 11, T[33]);\n\t c = HH(c, d, a, b, M_offset_11, 16, T[34]);\n\t b = HH(b, c, d, a, M_offset_14, 23, T[35]);\n\t a = HH(a, b, c, d, M_offset_1, 4, T[36]);\n\t d = HH(d, a, b, c, M_offset_4, 11, T[37]);\n\t c = HH(c, d, a, b, M_offset_7, 16, T[38]);\n\t b = HH(b, c, d, a, M_offset_10, 23, T[39]);\n\t a = HH(a, b, c, d, M_offset_13, 4, T[40]);\n\t d = HH(d, a, b, c, M_offset_0, 11, T[41]);\n\t c = HH(c, d, a, b, M_offset_3, 16, T[42]);\n\t b = HH(b, c, d, a, M_offset_6, 23, T[43]);\n\t a = HH(a, b, c, d, M_offset_9, 4, T[44]);\n\t d = HH(d, a, b, c, M_offset_12, 11, T[45]);\n\t c = HH(c, d, a, b, M_offset_15, 16, T[46]);\n\t b = HH(b, c, d, a, M_offset_2, 23, T[47]);\n\n\t a = II(a, b, c, d, M_offset_0, 6, T[48]);\n\t d = II(d, a, b, c, M_offset_7, 10, T[49]);\n\t c = II(c, d, a, b, M_offset_14, 15, T[50]);\n\t b = II(b, c, d, a, M_offset_5, 21, T[51]);\n\t a = II(a, b, c, d, M_offset_12, 6, T[52]);\n\t d = II(d, a, b, c, M_offset_3, 10, T[53]);\n\t c = II(c, d, a, b, M_offset_10, 15, T[54]);\n\t b = II(b, c, d, a, M_offset_1, 21, T[55]);\n\t a = II(a, b, c, d, M_offset_8, 6, T[56]);\n\t d = II(d, a, b, c, M_offset_15, 10, T[57]);\n\t c = II(c, d, a, b, M_offset_6, 15, T[58]);\n\t b = II(b, c, d, a, M_offset_13, 21, T[59]);\n\t a = II(a, b, c, d, M_offset_4, 6, T[60]);\n\t d = II(d, a, b, c, M_offset_11, 10, T[61]);\n\t c = II(c, d, a, b, M_offset_2, 15, T[62]);\n\t b = II(b, c, d, a, M_offset_9, 21, T[63]);\n\n\t // Intermediate hash value\n\t H[0] = (H[0] + a) | 0;\n\t H[1] = (H[1] + b) | 0;\n\t H[2] = (H[2] + c) | 0;\n\t H[3] = (H[3] + d) | 0;\n\t },\n\n\t _doFinalize: function () {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\n\t var nBitsTotal = this._nDataBytes * 8;\n\t var nBitsLeft = data.sigBytes * 8;\n\n\t // Add padding\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\n\t var nBitsTotalH = Math.floor(nBitsTotal / 0x100000000);\n\t var nBitsTotalL = nBitsTotal;\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = (\n\t (((nBitsTotalH << 8) | (nBitsTotalH >>> 24)) & 0x00ff00ff) |\n\t (((nBitsTotalH << 24) | (nBitsTotalH >>> 8)) & 0xff00ff00)\n\t );\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = (\n\t (((nBitsTotalL << 8) | (nBitsTotalL >>> 24)) & 0x00ff00ff) |\n\t (((nBitsTotalL << 24) | (nBitsTotalL >>> 8)) & 0xff00ff00)\n\t );\n\n\t data.sigBytes = (dataWords.length + 1) * 4;\n\n\t // Hash final blocks\n\t this._process();\n\n\t // Shortcuts\n\t var hash = this._hash;\n\t var H = hash.words;\n\n\t // Swap endian\n\t for (var i = 0; i < 4; i++) {\n\t // Shortcut\n\t var H_i = H[i];\n\n\t H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) |\n\t (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);\n\t }\n\n\t // Return final computed hash\n\t return hash;\n\t },\n\n\t clone: function () {\n\t var clone = Hasher.clone.call(this);\n\t clone._hash = this._hash.clone();\n\n\t return clone;\n\t }\n\t });\n\n\t function FF(a, b, c, d, x, s, t) {\n\t var n = a + ((b & c) | (~b & d)) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t function GG(a, b, c, d, x, s, t) {\n\t var n = a + ((b & d) | (c & ~d)) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t function HH(a, b, c, d, x, s, t) {\n\t var n = a + (b ^ c ^ d) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t function II(a, b, c, d, x, s, t) {\n\t var n = a + (c ^ (b | ~d)) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.MD5('message');\n\t * var hash = CryptoJS.MD5(wordArray);\n\t */\n\t C.MD5 = Hasher._createHelper(MD5);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacMD5(message, key);\n\t */\n\t C.HmacMD5 = Hasher._createHmacHelper(MD5);\n\t}(Math));\n\n\n\treturn CryptoJS.MD5;\n\n}));","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.APEv2Parser = void 0;\nconst initDebug = require(\"debug\");\nconst strtok3 = require(\"strtok3/lib/core\");\nconst Util_1 = require(\"../common/Util\");\nconst BasicParser_1 = require(\"../common/BasicParser\");\nconst APEv2Token_1 = require(\"./APEv2Token\");\nconst token_types_1 = require(\"token-types\");\nconst debug = initDebug('music-metadata:parser:APEv2');\nconst tagFormat = 'APEv2';\nconst preamble = 'APETAGEX';\nclass APEv2Parser extends BasicParser_1.BasicParser {\n constructor() {\n super(...arguments);\n this.ape = {};\n }\n static tryParseApeHeader(metadata, tokenizer, options) {\n const apeParser = new APEv2Parser();\n apeParser.init(metadata, tokenizer, options);\n return apeParser.tryParseApeHeader();\n }\n /**\n * Calculate the media file duration\n * @param ah ApeHeader\n * @return {number} duration in seconds\n */\n static calculateDuration(ah) {\n let duration = ah.totalFrames > 1 ? ah.blocksPerFrame * (ah.totalFrames - 1) : 0;\n duration += ah.finalFrameBlocks;\n return duration / ah.sampleRate;\n }\n /**\n * Calculates the APEv1 / APEv2 first field offset\n * @param reader\n * @param offset\n */\n static async findApeFooterOffset(reader, offset) {\n // Search for APE footer header at the end of the file\n const apeBuf = Buffer.alloc(APEv2Token_1.TagFooter.len);\n await reader.randomRead(apeBuf, 0, APEv2Token_1.TagFooter.len, offset - APEv2Token_1.TagFooter.len);\n const tagFooter = APEv2Token_1.TagFooter.get(apeBuf, 0);\n if (tagFooter.ID === 'APETAGEX') {\n debug(`APE footer header at offset=${offset}`);\n return { footer: tagFooter, offset: offset - tagFooter.size };\n }\n }\n static parseTagFooter(metadata, buffer, options) {\n const footer = APEv2Token_1.TagFooter.get(buffer, buffer.length - APEv2Token_1.TagFooter.len);\n if (footer.ID !== preamble)\n throw new Error('Unexpected APEv2 Footer ID preamble value.');\n strtok3.fromBuffer(buffer);\n const apeParser = new APEv2Parser();\n apeParser.init(metadata, strtok3.fromBuffer(buffer), options);\n return apeParser.parseTags(footer);\n }\n /**\n * Parse APEv1 / APEv2 header if header signature found\n */\n async tryParseApeHeader() {\n if (this.tokenizer.fileInfo.size && this.tokenizer.fileInfo.size - this.tokenizer.position < APEv2Token_1.TagFooter.len) {\n debug(`No APEv2 header found, end-of-file reached`);\n return;\n }\n const footer = await this.tokenizer.peekToken(APEv2Token_1.TagFooter);\n if (footer.ID === preamble) {\n await this.tokenizer.ignore(APEv2Token_1.TagFooter.len);\n return this.parseTags(footer);\n }\n else {\n debug(`APEv2 header not found at offset=${this.tokenizer.position}`);\n if (this.tokenizer.fileInfo.size) {\n // Try to read the APEv2 header using just the footer-header\n const remaining = this.tokenizer.fileInfo.size - this.tokenizer.position; // ToDo: take ID3v1 into account\n const buffer = Buffer.alloc(remaining);\n await this.tokenizer.readBuffer(buffer);\n return APEv2Parser.parseTagFooter(this.metadata, buffer, this.options);\n }\n }\n }\n async parse() {\n const descriptor = await this.tokenizer.readToken(APEv2Token_1.DescriptorParser);\n if (descriptor.ID !== 'MAC ')\n throw new Error('Unexpected descriptor ID');\n this.ape.descriptor = descriptor;\n const lenExp = descriptor.descriptorBytes - APEv2Token_1.DescriptorParser.len;\n const header = await (lenExp > 0 ? this.parseDescriptorExpansion(lenExp) : this.parseHeader());\n await this.tokenizer.ignore(header.forwardBytes);\n return this.tryParseApeHeader();\n }\n async parseTags(footer) {\n const keyBuffer = Buffer.alloc(256); // maximum tag key length\n let bytesRemaining = footer.size - APEv2Token_1.TagFooter.len;\n debug(`Parse APE tags at offset=${this.tokenizer.position}, size=${bytesRemaining}`);\n for (let i = 0; i < footer.fields; i++) {\n if (bytesRemaining < APEv2Token_1.TagItemHeader.len) {\n this.metadata.addWarning(`APEv2 Tag-header: ${footer.fields - i} items remaining, but no more tag data to read.`);\n break;\n }\n // Only APEv2 tag has tag item headers\n const tagItemHeader = await this.tokenizer.readToken(APEv2Token_1.TagItemHeader);\n bytesRemaining -= APEv2Token_1.TagItemHeader.len + tagItemHeader.size;\n await this.tokenizer.peekBuffer(keyBuffer, { length: Math.min(keyBuffer.length, bytesRemaining) });\n let zero = Util_1.default.findZero(keyBuffer, 0, keyBuffer.length);\n const key = await this.tokenizer.readToken(new token_types_1.StringType(zero, 'ascii'));\n await this.tokenizer.ignore(1);\n bytesRemaining -= key.length + 1;\n switch (tagItemHeader.flags.dataType) {\n case APEv2Token_1.DataType.text_utf8: { // utf-8 textstring\n const value = await this.tokenizer.readToken(new token_types_1.StringType(tagItemHeader.size, 'utf8'));\n const values = value.split(/\\x00/g);\n /*jshint loopfunc:true */\n for (const val of values) {\n this.metadata.addTag(tagFormat, key, val);\n }\n break;\n }\n case APEv2Token_1.DataType.binary: // binary (probably artwork)\n if (this.options.skipCovers) {\n await this.tokenizer.ignore(tagItemHeader.size);\n }\n else {\n const picData = Buffer.alloc(tagItemHeader.size);\n await this.tokenizer.readBuffer(picData);\n zero = Util_1.default.findZero(picData, 0, picData.length);\n const description = picData.toString('utf8', 0, zero);\n const data = Buffer.from(picData.slice(zero + 1));\n this.metadata.addTag(tagFormat, key, {\n description,\n data\n });\n }\n break;\n case APEv2Token_1.DataType.external_info:\n debug(`Ignore external info ${key}`);\n await this.tokenizer.ignore(tagItemHeader.size);\n break;\n default:\n throw new Error(`Unexpected data-type: ${tagItemHeader.flags.dataType}`);\n }\n }\n }\n async parseDescriptorExpansion(lenExp) {\n await this.tokenizer.ignore(lenExp);\n return this.parseHeader();\n }\n async parseHeader() {\n const header = await this.tokenizer.readToken(APEv2Token_1.Header);\n // ToDo before\n this.metadata.setFormat('lossless', true);\n this.metadata.setFormat('container', 'Monkey\\'s Audio');\n this.metadata.setFormat('bitsPerSample', header.bitsPerSample);\n this.metadata.setFormat('sampleRate', header.sampleRate);\n this.metadata.setFormat('numberOfChannels', header.channel);\n this.metadata.setFormat('duration', APEv2Parser.calculateDuration(header));\n return {\n forwardBytes: this.ape.descriptor.seekTableBytes + this.ape.descriptor.headerDataBytes +\n this.ape.descriptor.apeFrameDataBytes + this.ape.descriptor.terminatingDataBytes\n };\n }\n}\nexports.APEv2Parser = APEv2Parser;\n","'use strict';\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nvar codes = {};\n\nfunction createErrorType(code, message, Base) {\n if (!Base) {\n Base = Error;\n }\n\n function getMessage(arg1, arg2, arg3) {\n if (typeof message === 'string') {\n return message;\n } else {\n return message(arg1, arg2, arg3);\n }\n }\n\n var NodeError =\n /*#__PURE__*/\n function (_Base) {\n _inheritsLoose(NodeError, _Base);\n\n function NodeError(arg1, arg2, arg3) {\n return _Base.call(this, getMessage(arg1, arg2, arg3)) || this;\n }\n\n return NodeError;\n }(Base);\n\n NodeError.prototype.name = Base.name;\n NodeError.prototype.code = code;\n codes[code] = NodeError;\n} // https://github.com/nodejs/node/blob/v10.8.0/lib/internal/errors.js\n\n\nfunction oneOf(expected, thing) {\n if (Array.isArray(expected)) {\n var len = expected.length;\n expected = expected.map(function (i) {\n return String(i);\n });\n\n if (len > 2) {\n return \"one of \".concat(thing, \" \").concat(expected.slice(0, len - 1).join(', '), \", or \") + expected[len - 1];\n } else if (len === 2) {\n return \"one of \".concat(thing, \" \").concat(expected[0], \" or \").concat(expected[1]);\n } else {\n return \"of \".concat(thing, \" \").concat(expected[0]);\n }\n } else {\n return \"of \".concat(thing, \" \").concat(String(expected));\n }\n} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith\n\n\nfunction startsWith(str, search, pos) {\n return str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search;\n} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith\n\n\nfunction endsWith(str, search, this_len) {\n if (this_len === undefined || this_len > str.length) {\n this_len = str.length;\n }\n\n return str.substring(this_len - search.length, this_len) === search;\n} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes\n\n\nfunction includes(str, search, start) {\n if (typeof start !== 'number') {\n start = 0;\n }\n\n if (start + search.length > str.length) {\n return false;\n } else {\n return str.indexOf(search, start) !== -1;\n }\n}\n\ncreateErrorType('ERR_INVALID_OPT_VALUE', function (name, value) {\n return 'The value \"' + value + '\" is invalid for option \"' + name + '\"';\n}, TypeError);\ncreateErrorType('ERR_INVALID_ARG_TYPE', function (name, expected, actual) {\n // determiner: 'must be' or 'must not be'\n var determiner;\n\n if (typeof expected === 'string' && startsWith(expected, 'not ')) {\n determiner = 'must not be';\n expected = expected.replace(/^not /, '');\n } else {\n determiner = 'must be';\n }\n\n var msg;\n\n if (endsWith(name, ' argument')) {\n // For cases like 'first argument'\n msg = \"The \".concat(name, \" \").concat(determiner, \" \").concat(oneOf(expected, 'type'));\n } else {\n var type = includes(name, '.') ? 'property' : 'argument';\n msg = \"The \\\"\".concat(name, \"\\\" \").concat(type, \" \").concat(determiner, \" \").concat(oneOf(expected, 'type'));\n }\n\n msg += \". Received type \".concat(typeof actual);\n return msg;\n}, TypeError);\ncreateErrorType('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF');\ncreateErrorType('ERR_METHOD_NOT_IMPLEMENTED', function (name) {\n return 'The ' + name + ' method is not implemented';\n});\ncreateErrorType('ERR_STREAM_PREMATURE_CLOSE', 'Premature close');\ncreateErrorType('ERR_STREAM_DESTROYED', function (name) {\n return 'Cannot call ' + name + ' after a stream was destroyed';\n});\ncreateErrorType('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times');\ncreateErrorType('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable');\ncreateErrorType('ERR_STREAM_WRITE_AFTER_END', 'write after end');\ncreateErrorType('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError);\ncreateErrorType('ERR_UNKNOWN_ENCODING', function (arg) {\n return 'Unknown encoding: ' + arg;\n}, TypeError);\ncreateErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event');\nmodule.exports.codes = codes;\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n'use strict';\n/**/\n\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n\n for (var key in obj) {\n keys.push(key);\n }\n\n return keys;\n};\n/**/\n\n\nmodule.exports = Duplex;\n\nvar Readable = require('./_stream_readable');\n\nvar Writable = require('./_stream_writable');\n\nrequire('inherits')(Duplex, Readable);\n\n{\n // Allow the keys array to be GC'ed.\n var keys = objectKeys(Writable.prototype);\n\n for (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];\n }\n}\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex)) return new Duplex(options);\n Readable.call(this, options);\n Writable.call(this, options);\n this.allowHalfOpen = true;\n\n if (options) {\n if (options.readable === false) this.readable = false;\n if (options.writable === false) this.writable = false;\n\n if (options.allowHalfOpen === false) {\n this.allowHalfOpen = false;\n this.once('end', onend);\n }\n }\n}\n\nObject.defineProperty(Duplex.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.highWaterMark;\n }\n});\nObject.defineProperty(Duplex.prototype, 'writableBuffer', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState && this._writableState.getBuffer();\n }\n});\nObject.defineProperty(Duplex.prototype, 'writableLength', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.length;\n }\n}); // the no-half-open enforcer\n\nfunction onend() {\n // If the writable side ended, then we're ok.\n if (this._writableState.ended) return; // no more data can be written.\n // But allow more writes to happen in this tick.\n\n process.nextTick(onEndNT, this);\n}\n\nfunction onEndNT(self) {\n self.end();\n}\n\nObject.defineProperty(Duplex.prototype, 'destroyed', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n if (this._readableState === undefined || this._writableState === undefined) {\n return false;\n }\n\n return this._readableState.destroyed && this._writableState.destroyed;\n },\n set: function set(value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (this._readableState === undefined || this._writableState === undefined) {\n return;\n } // backward compatibility, the user is explicitly\n // managing destroyed\n\n\n this._readableState.destroyed = value;\n this._writableState.destroyed = value;\n }\n});","function _extends() {\n module.exports = _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nmodule.exports = _extends;","var objectWithoutPropertiesLoose = require(\"./objectWithoutPropertiesLoose\");\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutProperties;","import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport PropTypes from 'prop-types';\nimport merge from './merge'; // The breakpoint **start** at this value.\n// For instance with the first breakpoint xs: [xs, sm[.\n\nvar values = {\n xs: 0,\n sm: 600,\n md: 960,\n lg: 1280,\n xl: 1920\n};\nvar defaultBreakpoints = {\n // Sorted ASC by size. That's important.\n // It can't be configured as it's used statically for propTypes.\n keys: ['xs', 'sm', 'md', 'lg', 'xl'],\n up: function up(key) {\n return \"@media (min-width:\".concat(values[key], \"px)\");\n }\n};\nexport function handleBreakpoints(props, propValue, styleFromPropValue) {\n if (process.env.NODE_ENV !== 'production') {\n if (!props.theme) {\n console.error('Material-UI: You are calling a style function without a theme value.');\n }\n }\n\n if (Array.isArray(propValue)) {\n var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;\n return propValue.reduce(function (acc, item, index) {\n acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);\n return acc;\n }, {});\n }\n\n if (_typeof(propValue) === 'object') {\n var _themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;\n\n return Object.keys(propValue).reduce(function (acc, breakpoint) {\n acc[_themeBreakpoints.up(breakpoint)] = styleFromPropValue(propValue[breakpoint]);\n return acc;\n }, {});\n }\n\n var output = styleFromPropValue(propValue);\n return output;\n}\n\nfunction breakpoints(styleFunction) {\n var newStyleFunction = function newStyleFunction(props) {\n var base = styleFunction(props);\n var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;\n var extended = themeBreakpoints.keys.reduce(function (acc, key) {\n if (props[key]) {\n acc = acc || {};\n acc[themeBreakpoints.up(key)] = styleFunction(_extends({\n theme: props.theme\n }, props[key]));\n }\n\n return acc;\n }, null);\n return merge(base, extended);\n };\n\n newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? _extends({}, styleFunction.propTypes, {\n xs: PropTypes.object,\n sm: PropTypes.object,\n md: PropTypes.object,\n lg: PropTypes.object,\n xl: PropTypes.object\n }) : {};\n newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl'].concat(_toConsumableArray(styleFunction.filterProps));\n return newStyleFunction;\n}\n\nexport default breakpoints;","import ownerDocument from './ownerDocument';\nexport default function ownerWindow(node) {\n var doc = ownerDocument(node);\n return doc.defaultView || window;\n}","import React from 'react';\nexport default React.createContext(null);","'use strict'\nvar inherits = require('inherits')\nvar MD5 = require('md5.js')\nvar RIPEMD160 = require('ripemd160')\nvar sha = require('sha.js')\nvar Base = require('cipher-base')\n\nfunction Hash (hash) {\n Base.call(this, 'digest')\n\n this._hash = hash\n}\n\ninherits(Hash, Base)\n\nHash.prototype._update = function (data) {\n this._hash.update(data)\n}\n\nHash.prototype._final = function () {\n return this._hash.digest()\n}\n\nmodule.exports = function createHash (alg) {\n alg = alg.toLowerCase()\n if (alg === 'md5') return new MD5()\n if (alg === 'rmd160' || alg === 'ripemd160') return new RIPEMD160()\n\n return new Hash(sha(alg))\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n checkListener(listener);\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\n\nfunction isArray(arg) {\n if (Array.isArray) {\n return Array.isArray(arg);\n }\n return objectToString(arg) === '[object Array]';\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = Buffer.isBuffer;\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n/**/\n\nvar Buffer = require('safe-buffer').Buffer;\n/**/\n\nvar isEncoding = Buffer.isEncoding || function (encoding) {\n encoding = '' + encoding;\n switch (encoding && encoding.toLowerCase()) {\n case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':\n return true;\n default:\n return false;\n }\n};\n\nfunction _normalizeEncoding(enc) {\n if (!enc) return 'utf8';\n var retried;\n while (true) {\n switch (enc) {\n case 'utf8':\n case 'utf-8':\n return 'utf8';\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return 'utf16le';\n case 'latin1':\n case 'binary':\n return 'latin1';\n case 'base64':\n case 'ascii':\n case 'hex':\n return enc;\n default:\n if (retried) return; // undefined\n enc = ('' + enc).toLowerCase();\n retried = true;\n }\n }\n};\n\n// Do not cache `Buffer.isEncoding` when checking encoding names as some\n// modules monkey-patch it to support additional encodings\nfunction normalizeEncoding(enc) {\n var nenc = _normalizeEncoding(enc);\n if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);\n return nenc || enc;\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters.\nexports.StringDecoder = StringDecoder;\nfunction StringDecoder(encoding) {\n this.encoding = normalizeEncoding(encoding);\n var nb;\n switch (this.encoding) {\n case 'utf16le':\n this.text = utf16Text;\n this.end = utf16End;\n nb = 4;\n break;\n case 'utf8':\n this.fillLast = utf8FillLast;\n nb = 4;\n break;\n case 'base64':\n this.text = base64Text;\n this.end = base64End;\n nb = 3;\n break;\n default:\n this.write = simpleWrite;\n this.end = simpleEnd;\n return;\n }\n this.lastNeed = 0;\n this.lastTotal = 0;\n this.lastChar = Buffer.allocUnsafe(nb);\n}\n\nStringDecoder.prototype.write = function (buf) {\n if (buf.length === 0) return '';\n var r;\n var i;\n if (this.lastNeed) {\n r = this.fillLast(buf);\n if (r === undefined) return '';\n i = this.lastNeed;\n this.lastNeed = 0;\n } else {\n i = 0;\n }\n if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);\n return r || '';\n};\n\nStringDecoder.prototype.end = utf8End;\n\n// Returns only complete characters in a Buffer\nStringDecoder.prototype.text = utf8Text;\n\n// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer\nStringDecoder.prototype.fillLast = function (buf) {\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);\n this.lastNeed -= buf.length;\n};\n\n// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a\n// continuation byte. If an invalid byte is detected, -2 is returned.\nfunction utf8CheckByte(byte) {\n if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;\n return byte >> 6 === 0x02 ? -1 : -2;\n}\n\n// Checks at most 3 bytes at the end of a Buffer in order to detect an\n// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)\n// needed to complete the UTF-8 character (if applicable) are returned.\nfunction utf8CheckIncomplete(self, buf, i) {\n var j = buf.length - 1;\n if (j < i) return 0;\n var nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 1;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 2;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) {\n if (nb === 2) nb = 0;else self.lastNeed = nb - 3;\n }\n return nb;\n }\n return 0;\n}\n\n// Validates as many continuation bytes for a multi-byte UTF-8 character as\n// needed or are available. If we see a non-continuation byte where we expect\n// one, we \"replace\" the validated continuation bytes we've seen so far with\n// a single UTF-8 replacement character ('\\ufffd'), to match v8's UTF-8 decoding\n// behavior. The continuation byte check is included three times in the case\n// where all of the continuation bytes for a character exist in the same buffer.\n// It is also done this way as a slight performance increase instead of using a\n// loop.\nfunction utf8CheckExtraBytes(self, buf, p) {\n if ((buf[0] & 0xC0) !== 0x80) {\n self.lastNeed = 0;\n return '\\ufffd';\n }\n if (self.lastNeed > 1 && buf.length > 1) {\n if ((buf[1] & 0xC0) !== 0x80) {\n self.lastNeed = 1;\n return '\\ufffd';\n }\n if (self.lastNeed > 2 && buf.length > 2) {\n if ((buf[2] & 0xC0) !== 0x80) {\n self.lastNeed = 2;\n return '\\ufffd';\n }\n }\n }\n}\n\n// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.\nfunction utf8FillLast(buf) {\n var p = this.lastTotal - this.lastNeed;\n var r = utf8CheckExtraBytes(this, buf, p);\n if (r !== undefined) return r;\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, p, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, p, 0, buf.length);\n this.lastNeed -= buf.length;\n}\n\n// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a\n// partial character, the character's bytes are buffered until the required\n// number of bytes are available.\nfunction utf8Text(buf, i) {\n var total = utf8CheckIncomplete(this, buf, i);\n if (!this.lastNeed) return buf.toString('utf8', i);\n this.lastTotal = total;\n var end = buf.length - (total - this.lastNeed);\n buf.copy(this.lastChar, 0, end);\n return buf.toString('utf8', i, end);\n}\n\n// For UTF-8, a replacement character is added when ending on a partial\n// character.\nfunction utf8End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + '\\ufffd';\n return r;\n}\n\n// UTF-16LE typically needs two bytes per character, but even if we have an even\n// number of bytes available, we need to check if we end on a leading/high\n// surrogate. In that case, we need to wait for the next two bytes in order to\n// decode the last character properly.\nfunction utf16Text(buf, i) {\n if ((buf.length - i) % 2 === 0) {\n var r = buf.toString('utf16le', i);\n if (r) {\n var c = r.charCodeAt(r.length - 1);\n if (c >= 0xD800 && c <= 0xDBFF) {\n this.lastNeed = 2;\n this.lastTotal = 4;\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n return r.slice(0, -1);\n }\n }\n return r;\n }\n this.lastNeed = 1;\n this.lastTotal = 2;\n this.lastChar[0] = buf[buf.length - 1];\n return buf.toString('utf16le', i, buf.length - 1);\n}\n\n// For UTF-16LE we do not explicitly append special replacement characters if we\n// end on a partial character, we simply let v8 handle that.\nfunction utf16End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) {\n var end = this.lastTotal - this.lastNeed;\n return r + this.lastChar.toString('utf16le', 0, end);\n }\n return r;\n}\n\nfunction base64Text(buf, i) {\n var n = (buf.length - i) % 3;\n if (n === 0) return buf.toString('base64', i);\n this.lastNeed = 3 - n;\n this.lastTotal = 3;\n if (n === 1) {\n this.lastChar[0] = buf[buf.length - 1];\n } else {\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n }\n return buf.toString('base64', i, buf.length - n);\n}\n\nfunction base64End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);\n return r;\n}\n\n// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)\nfunction simpleWrite(buf) {\n return buf.toString(this.encoding);\n}\n\nfunction simpleEnd(buf) {\n return buf && buf.length ? this.write(buf) : '';\n}","module.exports = function xor (a, b) {\n var length = Math.min(a.length, b.length)\n var buffer = new Buffer(length)\n\n for (var i = 0; i < length; ++i) {\n buffer[i] = a[i] ^ b[i]\n }\n\n return buffer\n}\n","'use strict';\n\nvar utils = require('./utils');\nvar assert = require('minimalistic-assert');\n\nfunction BlockHash() {\n this.pending = null;\n this.pendingTotal = 0;\n this.blockSize = this.constructor.blockSize;\n this.outSize = this.constructor.outSize;\n this.hmacStrength = this.constructor.hmacStrength;\n this.padLength = this.constructor.padLength / 8;\n this.endian = 'big';\n\n this._delta8 = this.blockSize / 8;\n this._delta32 = this.blockSize / 32;\n}\nexports.BlockHash = BlockHash;\n\nBlockHash.prototype.update = function update(msg, enc) {\n // Convert message to array, pad it, and join into 32bit blocks\n msg = utils.toArray(msg, enc);\n if (!this.pending)\n this.pending = msg;\n else\n this.pending = this.pending.concat(msg);\n this.pendingTotal += msg.length;\n\n // Enough data, try updating\n if (this.pending.length >= this._delta8) {\n msg = this.pending;\n\n // Process pending data in blocks\n var r = msg.length % this._delta8;\n this.pending = msg.slice(msg.length - r, msg.length);\n if (this.pending.length === 0)\n this.pending = null;\n\n msg = utils.join32(msg, 0, msg.length - r, this.endian);\n for (var i = 0; i < msg.length; i += this._delta32)\n this._update(msg, i, i + this._delta32);\n }\n\n return this;\n};\n\nBlockHash.prototype.digest = function digest(enc) {\n this.update(this._pad());\n assert(this.pending === null);\n\n return this._digest(enc);\n};\n\nBlockHash.prototype._pad = function pad() {\n var len = this.pendingTotal;\n var bytes = this._delta8;\n var k = bytes - ((len + this.padLength) % bytes);\n var res = new Array(k + this.padLength);\n res[0] = 0x80;\n for (var i = 1; i < k; i++)\n res[i] = 0;\n\n // Append length\n len <<= 3;\n if (this.endian === 'big') {\n for (var t = 8; t < this.padLength; t++)\n res[i++] = 0;\n\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = (len >>> 24) & 0xff;\n res[i++] = (len >>> 16) & 0xff;\n res[i++] = (len >>> 8) & 0xff;\n res[i++] = len & 0xff;\n } else {\n res[i++] = len & 0xff;\n res[i++] = (len >>> 8) & 0xff;\n res[i++] = (len >>> 16) & 0xff;\n res[i++] = (len >>> 24) & 0xff;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n\n for (t = 8; t < this.padLength; t++)\n res[i++] = 0;\n }\n\n return res;\n};\n","var asn1 = exports;\n\nasn1.bignum = require('bn.js');\n\nasn1.define = require('./asn1/api').define;\nasn1.base = require('./asn1/base');\nasn1.constants = require('./asn1/constants');\nasn1.decoders = require('./asn1/decoders');\nasn1.encoders = require('./asn1/encoders');\n","var base = exports;\n\nbase.Reporter = require('./reporter').Reporter;\nbase.DecoderBuffer = require('./buffer').DecoderBuffer;\nbase.EncoderBuffer = require('./buffer').EncoderBuffer;\nbase.Node = require('./node');\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CaseInsensitiveTagMap = void 0;\nconst GenericTagMapper_1 = require(\"./GenericTagMapper\");\nclass CaseInsensitiveTagMap extends GenericTagMapper_1.CommonTagMapper {\n constructor(tagTypes, tagMap) {\n const upperCaseMap = {};\n for (const tag of Object.keys(tagMap)) {\n upperCaseMap[tag.toUpperCase()] = tagMap[tag];\n }\n super(tagTypes, upperCaseMap);\n }\n /**\n * @tag Native header tag\n * @return common tag name (alias)\n */\n getCommonName(tag) {\n return this.tagMap[tag.toUpperCase()];\n }\n}\nexports.CaseInsensitiveTagMap = CaseInsensitiveTagMap;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ID3v2Parser = void 0;\nconst Token = require(\"token-types\");\nconst Util_1 = require(\"../common/Util\");\nconst FrameParser_1 = require(\"./FrameParser\");\nconst ID3v2Token_1 = require(\"./ID3v2Token\");\nclass ID3v2Parser {\n static removeUnsyncBytes(buffer) {\n let readI = 0;\n let writeI = 0;\n while (readI < buffer.length - 1) {\n if (readI !== writeI) {\n buffer[writeI] = buffer[readI];\n }\n readI += (buffer[readI] === 0xFF && buffer[readI + 1] === 0) ? 2 : 1;\n writeI++;\n }\n if (readI < buffer.length) {\n buffer[writeI++] = buffer[readI];\n }\n return buffer.slice(0, writeI);\n }\n static readFrameHeader(v, majorVer) {\n let header;\n switch (majorVer) {\n case 2:\n header = {\n id: v.toString('ascii', 0, 3),\n length: Token.UINT24_BE.get(v, 3)\n };\n break;\n case 3:\n header = {\n id: v.toString('ascii', 0, 4),\n length: Token.UINT32_BE.get(v, 4),\n flags: ID3v2Parser.readFrameFlags(v.slice(8, 10))\n };\n break;\n case 4:\n header = {\n id: v.toString('ascii', 0, 4),\n length: ID3v2Token_1.UINT32SYNCSAFE.get(v, 4),\n flags: ID3v2Parser.readFrameFlags(v.slice(8, 10))\n };\n break;\n default:\n throw new Error('Unexpected majorVer: ' + majorVer);\n }\n return header;\n }\n static getFrameHeaderLength(majorVer) {\n switch (majorVer) {\n case 2:\n return 6;\n case 3:\n case 4:\n return 10;\n default:\n throw new Error('header versionIndex is incorrect');\n }\n }\n static readFrameFlags(b) {\n return {\n status: {\n tag_alter_preservation: Util_1.default.strtokBITSET.get(b, 0, 6),\n file_alter_preservation: Util_1.default.strtokBITSET.get(b, 0, 5),\n read_only: Util_1.default.strtokBITSET.get(b, 0, 4)\n },\n format: {\n grouping_identity: Util_1.default.strtokBITSET.get(b, 1, 7),\n compression: Util_1.default.strtokBITSET.get(b, 1, 3),\n encryption: Util_1.default.strtokBITSET.get(b, 1, 2),\n unsynchronisation: Util_1.default.strtokBITSET.get(b, 1, 1),\n data_length_indicator: Util_1.default.strtokBITSET.get(b, 1, 0)\n }\n };\n }\n static readFrameData(buf, frameHeader, majorVer, includeCovers, warningCollector) {\n const frameParser = new FrameParser_1.FrameParser(majorVer, warningCollector);\n switch (majorVer) {\n case 2:\n return frameParser.readData(buf, frameHeader.id, includeCovers);\n case 3:\n case 4:\n if (frameHeader.flags.format.unsynchronisation) {\n buf = ID3v2Parser.removeUnsyncBytes(buf);\n }\n if (frameHeader.flags.format.data_length_indicator) {\n buf = buf.slice(4, buf.length);\n }\n return frameParser.readData(buf, frameHeader.id, includeCovers);\n default:\n throw new Error('Unexpected majorVer: ' + majorVer);\n }\n }\n /**\n * Create a combined tag key, of tag & description\n * @param {string} tag e.g.: COM\n * @param {string} description e.g. iTunPGAP\n * @returns {string} e.g. COM:iTunPGAP\n */\n static makeDescriptionTagName(tag, description) {\n return tag + (description ? ':' + description : '');\n }\n async parse(metadata, tokenizer, options) {\n this.tokenizer = tokenizer;\n this.metadata = metadata;\n this.options = options;\n const id3Header = await this.tokenizer.readToken(ID3v2Token_1.ID3v2Header);\n if (id3Header.fileIdentifier !== 'ID3') {\n throw new Error('expected ID3-header file-identifier \\'ID3\\' was not found');\n }\n this.id3Header = id3Header;\n this.headerType = ('ID3v2.' + id3Header.version.major);\n if (id3Header.flags.isExtendedHeader) {\n return this.parseExtendedHeader();\n }\n else {\n return this.parseId3Data(id3Header.size);\n }\n }\n async parseExtendedHeader() {\n const extendedHeader = await this.tokenizer.readToken(ID3v2Token_1.ExtendedHeader);\n const dataRemaining = extendedHeader.size - ID3v2Token_1.ExtendedHeader.len;\n if (dataRemaining > 0) {\n return this.parseExtendedHeaderData(dataRemaining, extendedHeader.size);\n }\n else {\n return this.parseId3Data(this.id3Header.size - extendedHeader.size);\n }\n }\n async parseExtendedHeaderData(dataRemaining, extendedHeaderSize) {\n const buffer = Buffer.alloc(dataRemaining);\n await this.tokenizer.readBuffer(buffer, { length: dataRemaining });\n return this.parseId3Data(this.id3Header.size - extendedHeaderSize);\n }\n async parseId3Data(dataLen) {\n const buffer = Buffer.alloc(dataLen);\n await this.tokenizer.readBuffer(buffer, { length: dataLen });\n for (const tag of this.parseMetadata(buffer)) {\n if (tag.id === 'TXXX') {\n if (tag.value) {\n for (const text of tag.value.text) {\n this.addTag(ID3v2Parser.makeDescriptionTagName(tag.id, tag.value.description), text);\n }\n }\n }\n else if (tag.id === 'COM') {\n for (const value of tag.value) {\n this.addTag(ID3v2Parser.makeDescriptionTagName(tag.id, value.description), value.text);\n }\n }\n else if (tag.id === 'COMM') {\n for (const value of tag.value) {\n this.addTag(ID3v2Parser.makeDescriptionTagName(tag.id, value.description), value);\n }\n }\n else if (Array.isArray(tag.value)) {\n for (const value of tag.value) {\n this.addTag(tag.id, value);\n }\n }\n else {\n this.addTag(tag.id, tag.value);\n }\n }\n }\n addTag(id, value) {\n this.metadata.addTag(this.headerType, id, value);\n }\n parseMetadata(data) {\n let offset = 0;\n const tags = [];\n while (true) {\n if (offset === data.length)\n break;\n const frameHeaderLength = ID3v2Parser.getFrameHeaderLength(this.id3Header.version.major);\n if (offset + frameHeaderLength > data.length) {\n this.metadata.addWarning('Illegal ID3v2 tag length');\n break;\n }\n const frameHeaderBytes = data.slice(offset, offset += frameHeaderLength);\n const frameHeader = ID3v2Parser.readFrameHeader(frameHeaderBytes, this.id3Header.version.major);\n if (!frameHeader.id.match(/[A-Z]/g)) {\n this.metadata.addWarning(`Invalid ID3v2.${this.id3Header.version.major} frame-header-ID`);\n break;\n }\n const frameDataBytes = data.slice(offset, offset += frameHeader.length);\n const values = ID3v2Parser.readFrameData(frameDataBytes, frameHeader, this.id3Header.version.major, !this.options.skipCovers, this.metadata);\n if (values) {\n tags.push({ id: frameHeader.id, value: values });\n }\n }\n return tags;\n }\n}\nexports.ID3v2Parser = ID3v2Parser;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TextEncodingToken = exports.ExtendedHeader = exports.ID3v2Header = exports.UINT32SYNCSAFE = exports.AttachedPictureType = void 0;\nconst Token = require(\"token-types\");\nconst Util_1 = require(\"../common/Util\");\n/**\n * The picture type according to the ID3v2 APIC frame\n * Ref: http://id3.org/id3v2.3.0#Attached_picture\n */\nvar AttachedPictureType;\n(function (AttachedPictureType) {\n AttachedPictureType[AttachedPictureType[\"Other\"] = 0] = \"Other\";\n AttachedPictureType[AttachedPictureType[\"32x32 pixels 'file icon' (PNG only)\"] = 1] = \"32x32 pixels 'file icon' (PNG only)\";\n AttachedPictureType[AttachedPictureType[\"Other file icon\"] = 2] = \"Other file icon\";\n AttachedPictureType[AttachedPictureType[\"Cover (front)\"] = 3] = \"Cover (front)\";\n AttachedPictureType[AttachedPictureType[\"Cover (back)\"] = 4] = \"Cover (back)\";\n AttachedPictureType[AttachedPictureType[\"Leaflet page\"] = 5] = \"Leaflet page\";\n AttachedPictureType[AttachedPictureType[\"Media (e.g. label side of CD)\"] = 6] = \"Media (e.g. label side of CD)\";\n AttachedPictureType[AttachedPictureType[\"Lead artist/lead performer/soloist\"] = 7] = \"Lead artist/lead performer/soloist\";\n AttachedPictureType[AttachedPictureType[\"Artist/performer\"] = 8] = \"Artist/performer\";\n AttachedPictureType[AttachedPictureType[\"Conductor\"] = 9] = \"Conductor\";\n AttachedPictureType[AttachedPictureType[\"Band/Orchestra\"] = 10] = \"Band/Orchestra\";\n AttachedPictureType[AttachedPictureType[\"Composer\"] = 11] = \"Composer\";\n AttachedPictureType[AttachedPictureType[\"Lyricist/text writer\"] = 12] = \"Lyricist/text writer\";\n AttachedPictureType[AttachedPictureType[\"Recording Location\"] = 13] = \"Recording Location\";\n AttachedPictureType[AttachedPictureType[\"During recording\"] = 14] = \"During recording\";\n AttachedPictureType[AttachedPictureType[\"During performance\"] = 15] = \"During performance\";\n AttachedPictureType[AttachedPictureType[\"Movie/video screen capture\"] = 16] = \"Movie/video screen capture\";\n AttachedPictureType[AttachedPictureType[\"A bright coloured fish\"] = 17] = \"A bright coloured fish\";\n AttachedPictureType[AttachedPictureType[\"Illustration\"] = 18] = \"Illustration\";\n AttachedPictureType[AttachedPictureType[\"Band/artist logotype\"] = 19] = \"Band/artist logotype\";\n AttachedPictureType[AttachedPictureType[\"Publisher/Studio logotype\"] = 20] = \"Publisher/Studio logotype\";\n})(AttachedPictureType = exports.AttachedPictureType || (exports.AttachedPictureType = {}));\n/**\n * 28 bits (representing up to 256MB) integer, the msb is 0 to avoid 'false syncsignals'.\n * 4 * %0xxxxxxx\n */\nexports.UINT32SYNCSAFE = {\n get: (buf, off) => {\n return buf[off + 3] & 0x7f | ((buf[off + 2]) << 7) |\n ((buf[off + 1]) << 14) | ((buf[off]) << 21);\n },\n len: 4\n};\n/**\n * ID3v2 header\n * Ref: http://id3.org/id3v2.3.0#ID3v2_header\n * ToDo\n */\nexports.ID3v2Header = {\n len: 10,\n get: (buf, off) => {\n return {\n // ID3v2/file identifier \"ID3\"\n fileIdentifier: new Token.StringType(3, 'ascii').get(buf, off),\n // ID3v2 versionIndex\n version: {\n major: Token.INT8.get(buf, off + 3),\n revision: Token.INT8.get(buf, off + 4)\n },\n // ID3v2 flags\n flags: {\n // Unsynchronisation\n unsynchronisation: Util_1.default.strtokBITSET.get(buf, off + 5, 7),\n // Extended header\n isExtendedHeader: Util_1.default.strtokBITSET.get(buf, off + 5, 6),\n // Experimental indicator\n expIndicator: Util_1.default.strtokBITSET.get(buf, off + 5, 5),\n footer: Util_1.default.strtokBITSET.get(buf, off + 5, 4)\n },\n size: exports.UINT32SYNCSAFE.get(buf, off + 6)\n };\n }\n};\nexports.ExtendedHeader = {\n len: 10,\n get: (buf, off) => {\n return {\n // Extended header size\n size: Token.UINT32_BE.get(buf, off),\n // Extended Flags\n extendedFlags: Token.UINT16_BE.get(buf, off + 4),\n // Size of padding\n sizeOfPadding: Token.UINT32_BE.get(buf, off + 6),\n // CRC data present\n crcDataPresent: Util_1.default.strtokBITSET.get(buf, off + 4, 31)\n };\n }\n};\nexports.TextEncodingToken = {\n len: 1,\n get: (buf, off) => {\n switch (buf.readUInt8(off)) {\n case 0x00:\n return { encoding: 'iso-8859-1' }; // binary\n case 0x01:\n return { encoding: 'utf16', bom: true };\n case 0x02:\n return { encoding: 'utf16', bom: false };\n case 0x03:\n return { encoding: 'utf8', bom: false };\n default:\n return { encoding: 'utf8', bom: false };\n }\n }\n};\n","export { default } from './StylesProvider';\nexport * from './StylesProvider';","var isProduction = process.env.NODE_ENV === 'production';\nfunction warning(condition, message) {\n if (!isProduction) {\n if (condition) {\n return;\n }\n\n var text = \"Warning: \" + message;\n\n if (typeof console !== 'undefined') {\n console.warn(text);\n }\n\n try {\n throw Error(text);\n } catch (x) {}\n }\n}\n\nexport default warning;\n","export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}","'use strict';\n\nif (typeof process === 'undefined' ||\n !process.version ||\n process.version.indexOf('v0.') === 0 ||\n process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {\n module.exports = { nextTick: nextTick };\n} else {\n module.exports = process\n}\n\nfunction nextTick(fn, arg1, arg2, arg3) {\n if (typeof fn !== 'function') {\n throw new TypeError('\"callback\" argument must be a function');\n }\n var len = arguments.length;\n var args, i;\n switch (len) {\n case 0:\n case 1:\n return process.nextTick(fn);\n case 2:\n return process.nextTick(function afterTickOne() {\n fn.call(null, arg1);\n });\n case 3:\n return process.nextTick(function afterTickTwo() {\n fn.call(null, arg1, arg2);\n });\n case 4:\n return process.nextTick(function afterTickThree() {\n fn.call(null, arg1, arg2, arg3);\n });\n default:\n args = new Array(len - 1);\n i = 0;\n while (i < args.length) {\n args[i++] = arguments[i];\n }\n return process.nextTick(function afterTick() {\n fn.apply(null, args);\n });\n }\n}\n\n","// based on the aes implimentation in triple sec\n// https://github.com/keybase/triplesec\n// which is in turn based on the one from crypto-js\n// https://code.google.com/p/crypto-js/\n\nvar Buffer = require('safe-buffer').Buffer\n\nfunction asUInt32Array (buf) {\n if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)\n\n var len = (buf.length / 4) | 0\n var out = new Array(len)\n\n for (var i = 0; i < len; i++) {\n out[i] = buf.readUInt32BE(i * 4)\n }\n\n return out\n}\n\nfunction scrubVec (v) {\n for (var i = 0; i < v.length; v++) {\n v[i] = 0\n }\n}\n\nfunction cryptBlock (M, keySchedule, SUB_MIX, SBOX, nRounds) {\n var SUB_MIX0 = SUB_MIX[0]\n var SUB_MIX1 = SUB_MIX[1]\n var SUB_MIX2 = SUB_MIX[2]\n var SUB_MIX3 = SUB_MIX[3]\n\n var s0 = M[0] ^ keySchedule[0]\n var s1 = M[1] ^ keySchedule[1]\n var s2 = M[2] ^ keySchedule[2]\n var s3 = M[3] ^ keySchedule[3]\n var t0, t1, t2, t3\n var ksRow = 4\n\n for (var round = 1; round < nRounds; round++) {\n t0 = SUB_MIX0[s0 >>> 24] ^ SUB_MIX1[(s1 >>> 16) & 0xff] ^ SUB_MIX2[(s2 >>> 8) & 0xff] ^ SUB_MIX3[s3 & 0xff] ^ keySchedule[ksRow++]\n t1 = SUB_MIX0[s1 >>> 24] ^ SUB_MIX1[(s2 >>> 16) & 0xff] ^ SUB_MIX2[(s3 >>> 8) & 0xff] ^ SUB_MIX3[s0 & 0xff] ^ keySchedule[ksRow++]\n t2 = SUB_MIX0[s2 >>> 24] ^ SUB_MIX1[(s3 >>> 16) & 0xff] ^ SUB_MIX2[(s0 >>> 8) & 0xff] ^ SUB_MIX3[s1 & 0xff] ^ keySchedule[ksRow++]\n t3 = SUB_MIX0[s3 >>> 24] ^ SUB_MIX1[(s0 >>> 16) & 0xff] ^ SUB_MIX2[(s1 >>> 8) & 0xff] ^ SUB_MIX3[s2 & 0xff] ^ keySchedule[ksRow++]\n s0 = t0\n s1 = t1\n s2 = t2\n s3 = t3\n }\n\n t0 = ((SBOX[s0 >>> 24] << 24) | (SBOX[(s1 >>> 16) & 0xff] << 16) | (SBOX[(s2 >>> 8) & 0xff] << 8) | SBOX[s3 & 0xff]) ^ keySchedule[ksRow++]\n t1 = ((SBOX[s1 >>> 24] << 24) | (SBOX[(s2 >>> 16) & 0xff] << 16) | (SBOX[(s3 >>> 8) & 0xff] << 8) | SBOX[s0 & 0xff]) ^ keySchedule[ksRow++]\n t2 = ((SBOX[s2 >>> 24] << 24) | (SBOX[(s3 >>> 16) & 0xff] << 16) | (SBOX[(s0 >>> 8) & 0xff] << 8) | SBOX[s1 & 0xff]) ^ keySchedule[ksRow++]\n t3 = ((SBOX[s3 >>> 24] << 24) | (SBOX[(s0 >>> 16) & 0xff] << 16) | (SBOX[(s1 >>> 8) & 0xff] << 8) | SBOX[s2 & 0xff]) ^ keySchedule[ksRow++]\n t0 = t0 >>> 0\n t1 = t1 >>> 0\n t2 = t2 >>> 0\n t3 = t3 >>> 0\n\n return [t0, t1, t2, t3]\n}\n\n// AES constants\nvar RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36]\nvar G = (function () {\n // Compute double table\n var d = new Array(256)\n for (var j = 0; j < 256; j++) {\n if (j < 128) {\n d[j] = j << 1\n } else {\n d[j] = (j << 1) ^ 0x11b\n }\n }\n\n var SBOX = []\n var INV_SBOX = []\n var SUB_MIX = [[], [], [], []]\n var INV_SUB_MIX = [[], [], [], []]\n\n // Walk GF(2^8)\n var x = 0\n var xi = 0\n for (var i = 0; i < 256; ++i) {\n // Compute sbox\n var sx = xi ^ (xi << 1) ^ (xi << 2) ^ (xi << 3) ^ (xi << 4)\n sx = (sx >>> 8) ^ (sx & 0xff) ^ 0x63\n SBOX[x] = sx\n INV_SBOX[sx] = x\n\n // Compute multiplication\n var x2 = d[x]\n var x4 = d[x2]\n var x8 = d[x4]\n\n // Compute sub bytes, mix columns tables\n var t = (d[sx] * 0x101) ^ (sx * 0x1010100)\n SUB_MIX[0][x] = (t << 24) | (t >>> 8)\n SUB_MIX[1][x] = (t << 16) | (t >>> 16)\n SUB_MIX[2][x] = (t << 8) | (t >>> 24)\n SUB_MIX[3][x] = t\n\n // Compute inv sub bytes, inv mix columns tables\n t = (x8 * 0x1010101) ^ (x4 * 0x10001) ^ (x2 * 0x101) ^ (x * 0x1010100)\n INV_SUB_MIX[0][sx] = (t << 24) | (t >>> 8)\n INV_SUB_MIX[1][sx] = (t << 16) | (t >>> 16)\n INV_SUB_MIX[2][sx] = (t << 8) | (t >>> 24)\n INV_SUB_MIX[3][sx] = t\n\n if (x === 0) {\n x = xi = 1\n } else {\n x = x2 ^ d[d[d[x8 ^ x2]]]\n xi ^= d[d[xi]]\n }\n }\n\n return {\n SBOX: SBOX,\n INV_SBOX: INV_SBOX,\n SUB_MIX: SUB_MIX,\n INV_SUB_MIX: INV_SUB_MIX\n }\n})()\n\nfunction AES (key) {\n this._key = asUInt32Array(key)\n this._reset()\n}\n\nAES.blockSize = 4 * 4\nAES.keySize = 256 / 8\nAES.prototype.blockSize = AES.blockSize\nAES.prototype.keySize = AES.keySize\nAES.prototype._reset = function () {\n var keyWords = this._key\n var keySize = keyWords.length\n var nRounds = keySize + 6\n var ksRows = (nRounds + 1) * 4\n\n var keySchedule = []\n for (var k = 0; k < keySize; k++) {\n keySchedule[k] = keyWords[k]\n }\n\n for (k = keySize; k < ksRows; k++) {\n var t = keySchedule[k - 1]\n\n if (k % keySize === 0) {\n t = (t << 8) | (t >>> 24)\n t =\n (G.SBOX[t >>> 24] << 24) |\n (G.SBOX[(t >>> 16) & 0xff] << 16) |\n (G.SBOX[(t >>> 8) & 0xff] << 8) |\n (G.SBOX[t & 0xff])\n\n t ^= RCON[(k / keySize) | 0] << 24\n } else if (keySize > 6 && k % keySize === 4) {\n t =\n (G.SBOX[t >>> 24] << 24) |\n (G.SBOX[(t >>> 16) & 0xff] << 16) |\n (G.SBOX[(t >>> 8) & 0xff] << 8) |\n (G.SBOX[t & 0xff])\n }\n\n keySchedule[k] = keySchedule[k - keySize] ^ t\n }\n\n var invKeySchedule = []\n for (var ik = 0; ik < ksRows; ik++) {\n var ksR = ksRows - ik\n var tt = keySchedule[ksR - (ik % 4 ? 0 : 4)]\n\n if (ik < 4 || ksR <= 4) {\n invKeySchedule[ik] = tt\n } else {\n invKeySchedule[ik] =\n G.INV_SUB_MIX[0][G.SBOX[tt >>> 24]] ^\n G.INV_SUB_MIX[1][G.SBOX[(tt >>> 16) & 0xff]] ^\n G.INV_SUB_MIX[2][G.SBOX[(tt >>> 8) & 0xff]] ^\n G.INV_SUB_MIX[3][G.SBOX[tt & 0xff]]\n }\n }\n\n this._nRounds = nRounds\n this._keySchedule = keySchedule\n this._invKeySchedule = invKeySchedule\n}\n\nAES.prototype.encryptBlockRaw = function (M) {\n M = asUInt32Array(M)\n return cryptBlock(M, this._keySchedule, G.SUB_MIX, G.SBOX, this._nRounds)\n}\n\nAES.prototype.encryptBlock = function (M) {\n var out = this.encryptBlockRaw(M)\n var buf = Buffer.allocUnsafe(16)\n buf.writeUInt32BE(out[0], 0)\n buf.writeUInt32BE(out[1], 4)\n buf.writeUInt32BE(out[2], 8)\n buf.writeUInt32BE(out[3], 12)\n return buf\n}\n\nAES.prototype.decryptBlock = function (M) {\n M = asUInt32Array(M)\n\n // swap\n var m1 = M[1]\n M[1] = M[3]\n M[3] = m1\n\n var out = cryptBlock(M, this._invKeySchedule, G.INV_SUB_MIX, G.INV_SBOX, this._nRounds)\n var buf = Buffer.allocUnsafe(16)\n buf.writeUInt32BE(out[0], 0)\n buf.writeUInt32BE(out[3], 4)\n buf.writeUInt32BE(out[2], 8)\n buf.writeUInt32BE(out[1], 12)\n return buf\n}\n\nAES.prototype.scrub = function () {\n scrubVec(this._keySchedule)\n scrubVec(this._invKeySchedule)\n scrubVec(this._key)\n}\n\nmodule.exports.AES = AES\n","var Buffer = require('safe-buffer').Buffer\nvar MD5 = require('md5.js')\n\n/* eslint-disable camelcase */\nfunction EVP_BytesToKey (password, salt, keyBits, ivLen) {\n if (!Buffer.isBuffer(password)) password = Buffer.from(password, 'binary')\n if (salt) {\n if (!Buffer.isBuffer(salt)) salt = Buffer.from(salt, 'binary')\n if (salt.length !== 8) throw new RangeError('salt should be Buffer with 8 byte length')\n }\n\n var keyLen = keyBits / 8\n var key = Buffer.alloc(keyLen)\n var iv = Buffer.alloc(ivLen || 0)\n var tmp = Buffer.alloc(0)\n\n while (keyLen > 0 || ivLen > 0) {\n var hash = new MD5()\n hash.update(tmp)\n hash.update(password)\n if (salt) hash.update(salt)\n tmp = hash.digest()\n\n var used = 0\n\n if (keyLen > 0) {\n var keyStart = key.length - keyLen\n used = Math.min(keyLen, tmp.length)\n tmp.copy(key, keyStart, 0, used)\n keyLen -= used\n }\n\n if (used < tmp.length && ivLen > 0) {\n var ivStart = iv.length - ivLen\n var length = Math.min(ivLen, tmp.length - used)\n tmp.copy(iv, ivStart, used, used + length)\n ivLen -= length\n }\n }\n\n tmp.fill(0)\n return { key: key, iv: iv }\n}\n\nmodule.exports = EVP_BytesToKey\n","'use strict';\n\nvar BN = require('bn.js');\nvar utils = require('../utils');\nvar getNAF = utils.getNAF;\nvar getJSF = utils.getJSF;\nvar assert = utils.assert;\n\nfunction BaseCurve(type, conf) {\n this.type = type;\n this.p = new BN(conf.p, 16);\n\n // Use Montgomery, when there is no fast reduction for the prime\n this.red = conf.prime ? BN.red(conf.prime) : BN.mont(this.p);\n\n // Useful for many curves\n this.zero = new BN(0).toRed(this.red);\n this.one = new BN(1).toRed(this.red);\n this.two = new BN(2).toRed(this.red);\n\n // Curve configuration, optional\n this.n = conf.n && new BN(conf.n, 16);\n this.g = conf.g && this.pointFromJSON(conf.g, conf.gRed);\n\n // Temporary arrays\n this._wnafT1 = new Array(4);\n this._wnafT2 = new Array(4);\n this._wnafT3 = new Array(4);\n this._wnafT4 = new Array(4);\n\n this._bitLength = this.n ? this.n.bitLength() : 0;\n\n // Generalized Greg Maxwell's trick\n var adjustCount = this.n && this.p.div(this.n);\n if (!adjustCount || adjustCount.cmpn(100) > 0) {\n this.redN = null;\n } else {\n this._maxwellTrick = true;\n this.redN = this.n.toRed(this.red);\n }\n}\nmodule.exports = BaseCurve;\n\nBaseCurve.prototype.point = function point() {\n throw new Error('Not implemented');\n};\n\nBaseCurve.prototype.validate = function validate() {\n throw new Error('Not implemented');\n};\n\nBaseCurve.prototype._fixedNafMul = function _fixedNafMul(p, k) {\n assert(p.precomputed);\n var doubles = p._getDoubles();\n\n var naf = getNAF(k, 1, this._bitLength);\n var I = (1 << (doubles.step + 1)) - (doubles.step % 2 === 0 ? 2 : 1);\n I /= 3;\n\n // Translate into more windowed form\n var repr = [];\n for (var j = 0; j < naf.length; j += doubles.step) {\n var nafW = 0;\n for (var k = j + doubles.step - 1; k >= j; k--)\n nafW = (nafW << 1) + naf[k];\n repr.push(nafW);\n }\n\n var a = this.jpoint(null, null, null);\n var b = this.jpoint(null, null, null);\n for (var i = I; i > 0; i--) {\n for (var j = 0; j < repr.length; j++) {\n var nafW = repr[j];\n if (nafW === i)\n b = b.mixedAdd(doubles.points[j]);\n else if (nafW === -i)\n b = b.mixedAdd(doubles.points[j].neg());\n }\n a = a.add(b);\n }\n return a.toP();\n};\n\nBaseCurve.prototype._wnafMul = function _wnafMul(p, k) {\n var w = 4;\n\n // Precompute window\n var nafPoints = p._getNAFPoints(w);\n w = nafPoints.wnd;\n var wnd = nafPoints.points;\n\n // Get NAF form\n var naf = getNAF(k, w, this._bitLength);\n\n // Add `this`*(N+1) for every w-NAF index\n var acc = this.jpoint(null, null, null);\n for (var i = naf.length - 1; i >= 0; i--) {\n // Count zeroes\n for (var k = 0; i >= 0 && naf[i] === 0; i--)\n k++;\n if (i >= 0)\n k++;\n acc = acc.dblp(k);\n\n if (i < 0)\n break;\n var z = naf[i];\n assert(z !== 0);\n if (p.type === 'affine') {\n // J +- P\n if (z > 0)\n acc = acc.mixedAdd(wnd[(z - 1) >> 1]);\n else\n acc = acc.mixedAdd(wnd[(-z - 1) >> 1].neg());\n } else {\n // J +- J\n if (z > 0)\n acc = acc.add(wnd[(z - 1) >> 1]);\n else\n acc = acc.add(wnd[(-z - 1) >> 1].neg());\n }\n }\n return p.type === 'affine' ? acc.toP() : acc;\n};\n\nBaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW,\n points,\n coeffs,\n len,\n jacobianResult) {\n var wndWidth = this._wnafT1;\n var wnd = this._wnafT2;\n var naf = this._wnafT3;\n\n // Fill all arrays\n var max = 0;\n for (var i = 0; i < len; i++) {\n var p = points[i];\n var nafPoints = p._getNAFPoints(defW);\n wndWidth[i] = nafPoints.wnd;\n wnd[i] = nafPoints.points;\n }\n\n // Comb small window NAFs\n for (var i = len - 1; i >= 1; i -= 2) {\n var a = i - 1;\n var b = i;\n if (wndWidth[a] !== 1 || wndWidth[b] !== 1) {\n naf[a] = getNAF(coeffs[a], wndWidth[a], this._bitLength);\n naf[b] = getNAF(coeffs[b], wndWidth[b], this._bitLength);\n max = Math.max(naf[a].length, max);\n max = Math.max(naf[b].length, max);\n continue;\n }\n\n var comb = [\n points[a], /* 1 */\n null, /* 3 */\n null, /* 5 */\n points[b] /* 7 */\n ];\n\n // Try to avoid Projective points, if possible\n if (points[a].y.cmp(points[b].y) === 0) {\n comb[1] = points[a].add(points[b]);\n comb[2] = points[a].toJ().mixedAdd(points[b].neg());\n } else if (points[a].y.cmp(points[b].y.redNeg()) === 0) {\n comb[1] = points[a].toJ().mixedAdd(points[b]);\n comb[2] = points[a].add(points[b].neg());\n } else {\n comb[1] = points[a].toJ().mixedAdd(points[b]);\n comb[2] = points[a].toJ().mixedAdd(points[b].neg());\n }\n\n var index = [\n -3, /* -1 -1 */\n -1, /* -1 0 */\n -5, /* -1 1 */\n -7, /* 0 -1 */\n 0, /* 0 0 */\n 7, /* 0 1 */\n 5, /* 1 -1 */\n 1, /* 1 0 */\n 3 /* 1 1 */\n ];\n\n var jsf = getJSF(coeffs[a], coeffs[b]);\n max = Math.max(jsf[0].length, max);\n naf[a] = new Array(max);\n naf[b] = new Array(max);\n for (var j = 0; j < max; j++) {\n var ja = jsf[0][j] | 0;\n var jb = jsf[1][j] | 0;\n\n naf[a][j] = index[(ja + 1) * 3 + (jb + 1)];\n naf[b][j] = 0;\n wnd[a] = comb;\n }\n }\n\n var acc = this.jpoint(null, null, null);\n var tmp = this._wnafT4;\n for (var i = max; i >= 0; i--) {\n var k = 0;\n\n while (i >= 0) {\n var zero = true;\n for (var j = 0; j < len; j++) {\n tmp[j] = naf[j][i] | 0;\n if (tmp[j] !== 0)\n zero = false;\n }\n if (!zero)\n break;\n k++;\n i--;\n }\n if (i >= 0)\n k++;\n acc = acc.dblp(k);\n if (i < 0)\n break;\n\n for (var j = 0; j < len; j++) {\n var z = tmp[j];\n var p;\n if (z === 0)\n continue;\n else if (z > 0)\n p = wnd[j][(z - 1) >> 1];\n else if (z < 0)\n p = wnd[j][(-z - 1) >> 1].neg();\n\n if (p.type === 'affine')\n acc = acc.mixedAdd(p);\n else\n acc = acc.add(p);\n }\n }\n // Zeroify references\n for (var i = 0; i < len; i++)\n wnd[i] = null;\n\n if (jacobianResult)\n return acc;\n else\n return acc.toP();\n};\n\nfunction BasePoint(curve, type) {\n this.curve = curve;\n this.type = type;\n this.precomputed = null;\n}\nBaseCurve.BasePoint = BasePoint;\n\nBasePoint.prototype.eq = function eq(/*other*/) {\n throw new Error('Not implemented');\n};\n\nBasePoint.prototype.validate = function validate() {\n return this.curve.validate(this);\n};\n\nBaseCurve.prototype.decodePoint = function decodePoint(bytes, enc) {\n bytes = utils.toArray(bytes, enc);\n\n var len = this.p.byteLength();\n\n // uncompressed, hybrid-odd, hybrid-even\n if ((bytes[0] === 0x04 || bytes[0] === 0x06 || bytes[0] === 0x07) &&\n bytes.length - 1 === 2 * len) {\n if (bytes[0] === 0x06)\n assert(bytes[bytes.length - 1] % 2 === 0);\n else if (bytes[0] === 0x07)\n assert(bytes[bytes.length - 1] % 2 === 1);\n\n var res = this.point(bytes.slice(1, 1 + len),\n bytes.slice(1 + len, 1 + 2 * len));\n\n return res;\n } else if ((bytes[0] === 0x02 || bytes[0] === 0x03) &&\n bytes.length - 1 === len) {\n return this.pointFromX(bytes.slice(1, 1 + len), bytes[0] === 0x03);\n }\n throw new Error('Unknown point format');\n};\n\nBasePoint.prototype.encodeCompressed = function encodeCompressed(enc) {\n return this.encode(enc, true);\n};\n\nBasePoint.prototype._encode = function _encode(compact) {\n var len = this.curve.p.byteLength();\n var x = this.getX().toArray('be', len);\n\n if (compact)\n return [ this.getY().isEven() ? 0x02 : 0x03 ].concat(x);\n\n return [ 0x04 ].concat(x, this.getY().toArray('be', len)) ;\n};\n\nBasePoint.prototype.encode = function encode(enc, compact) {\n return utils.encode(this._encode(compact), enc);\n};\n\nBasePoint.prototype.precompute = function precompute(power) {\n if (this.precomputed)\n return this;\n\n var precomputed = {\n doubles: null,\n naf: null,\n beta: null\n };\n precomputed.naf = this._getNAFPoints(8);\n precomputed.doubles = this._getDoubles(4, power);\n precomputed.beta = this._getBeta();\n this.precomputed = precomputed;\n\n return this;\n};\n\nBasePoint.prototype._hasDoubles = function _hasDoubles(k) {\n if (!this.precomputed)\n return false;\n\n var doubles = this.precomputed.doubles;\n if (!doubles)\n return false;\n\n return doubles.points.length >= Math.ceil((k.bitLength() + 1) / doubles.step);\n};\n\nBasePoint.prototype._getDoubles = function _getDoubles(step, power) {\n if (this.precomputed && this.precomputed.doubles)\n return this.precomputed.doubles;\n\n var doubles = [ this ];\n var acc = this;\n for (var i = 0; i < power; i += step) {\n for (var j = 0; j < step; j++)\n acc = acc.dbl();\n doubles.push(acc);\n }\n return {\n step: step,\n points: doubles\n };\n};\n\nBasePoint.prototype._getNAFPoints = function _getNAFPoints(wnd) {\n if (this.precomputed && this.precomputed.naf)\n return this.precomputed.naf;\n\n var res = [ this ];\n var max = (1 << wnd) - 1;\n var dbl = max === 1 ? null : this.dbl();\n for (var i = 1; i < max; i++)\n res[i] = res[i - 1].add(dbl);\n return {\n wnd: wnd,\n points: res\n };\n};\n\nBasePoint.prototype._getBeta = function _getBeta() {\n return null;\n};\n\nBasePoint.prototype.dblp = function dblp(k) {\n var r = this;\n for (var i = 0; i < k; i++)\n r = r.dbl();\n return r;\n};\n","var asn1 = require('./asn1')\nvar aesid = require('./aesid.json')\nvar fixProc = require('./fixProc')\nvar ciphers = require('browserify-aes')\nvar compat = require('pbkdf2')\nvar Buffer = require('safe-buffer').Buffer\nmodule.exports = parseKeys\n\nfunction parseKeys (buffer) {\n var password\n if (typeof buffer === 'object' && !Buffer.isBuffer(buffer)) {\n password = buffer.passphrase\n buffer = buffer.key\n }\n if (typeof buffer === 'string') {\n buffer = Buffer.from(buffer)\n }\n\n var stripped = fixProc(buffer, password)\n\n var type = stripped.tag\n var data = stripped.data\n var subtype, ndata\n switch (type) {\n case 'CERTIFICATE':\n ndata = asn1.certificate.decode(data, 'der').tbsCertificate.subjectPublicKeyInfo\n // falls through\n case 'PUBLIC KEY':\n if (!ndata) {\n ndata = asn1.PublicKey.decode(data, 'der')\n }\n subtype = ndata.algorithm.algorithm.join('.')\n switch (subtype) {\n case '1.2.840.113549.1.1.1':\n return asn1.RSAPublicKey.decode(ndata.subjectPublicKey.data, 'der')\n case '1.2.840.10045.2.1':\n ndata.subjectPrivateKey = ndata.subjectPublicKey\n return {\n type: 'ec',\n data: ndata\n }\n case '1.2.840.10040.4.1':\n ndata.algorithm.params.pub_key = asn1.DSAparam.decode(ndata.subjectPublicKey.data, 'der')\n return {\n type: 'dsa',\n data: ndata.algorithm.params\n }\n default: throw new Error('unknown key id ' + subtype)\n }\n throw new Error('unknown key type ' + type)\n case 'ENCRYPTED PRIVATE KEY':\n data = asn1.EncryptedPrivateKey.decode(data, 'der')\n data = decrypt(data, password)\n // falls through\n case 'PRIVATE KEY':\n ndata = asn1.PrivateKey.decode(data, 'der')\n subtype = ndata.algorithm.algorithm.join('.')\n switch (subtype) {\n case '1.2.840.113549.1.1.1':\n return asn1.RSAPrivateKey.decode(ndata.subjectPrivateKey, 'der')\n case '1.2.840.10045.2.1':\n return {\n curve: ndata.algorithm.curve,\n privateKey: asn1.ECPrivateKey.decode(ndata.subjectPrivateKey, 'der').privateKey\n }\n case '1.2.840.10040.4.1':\n ndata.algorithm.params.priv_key = asn1.DSAparam.decode(ndata.subjectPrivateKey, 'der')\n return {\n type: 'dsa',\n params: ndata.algorithm.params\n }\n default: throw new Error('unknown key id ' + subtype)\n }\n throw new Error('unknown key type ' + type)\n case 'RSA PUBLIC KEY':\n return asn1.RSAPublicKey.decode(data, 'der')\n case 'RSA PRIVATE KEY':\n return asn1.RSAPrivateKey.decode(data, 'der')\n case 'DSA PRIVATE KEY':\n return {\n type: 'dsa',\n params: asn1.DSAPrivateKey.decode(data, 'der')\n }\n case 'EC PRIVATE KEY':\n data = asn1.ECPrivateKey.decode(data, 'der')\n return {\n curve: data.parameters.value,\n privateKey: data.privateKey\n }\n default: throw new Error('unknown key type ' + type)\n }\n}\nparseKeys.signature = asn1.signature\nfunction decrypt (data, password) {\n var salt = data.algorithm.decrypt.kde.kdeparams.salt\n var iters = parseInt(data.algorithm.decrypt.kde.kdeparams.iters.toString(), 10)\n var algo = aesid[data.algorithm.decrypt.cipher.algo.join('.')]\n var iv = data.algorithm.decrypt.cipher.iv\n var cipherText = data.subjectPrivateKey\n var keylen = parseInt(algo.split('-')[1], 10) / 8\n var key = compat.pbkdf2Sync(password, salt, iters, keylen, 'sha1')\n var cipher = ciphers.createDecipheriv(algo, key, iv)\n var out = []\n out.push(cipher.update(cipherText))\n out.push(cipher.final())\n return Buffer.concat(out)\n}\n",";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function (undefined) {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var Base = C_lib.Base;\n\t var X32WordArray = C_lib.WordArray;\n\n\t /**\n\t * x64 namespace.\n\t */\n\t var C_x64 = C.x64 = {};\n\n\t /**\n\t * A 64-bit word.\n\t */\n\t var X64Word = C_x64.Word = Base.extend({\n\t /**\n\t * Initializes a newly created 64-bit word.\n\t *\n\t * @param {number} high The high 32 bits.\n\t * @param {number} low The low 32 bits.\n\t *\n\t * @example\n\t *\n\t * var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);\n\t */\n\t init: function (high, low) {\n\t this.high = high;\n\t this.low = low;\n\t }\n\n\t /**\n\t * Bitwise NOTs this word.\n\t *\n\t * @return {X64Word} A new x64-Word object after negating.\n\t *\n\t * @example\n\t *\n\t * var negated = x64Word.not();\n\t */\n\t // not: function () {\n\t // var high = ~this.high;\n\t // var low = ~this.low;\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Bitwise ANDs this word with the passed word.\n\t *\n\t * @param {X64Word} word The x64-Word to AND with this word.\n\t *\n\t * @return {X64Word} A new x64-Word object after ANDing.\n\t *\n\t * @example\n\t *\n\t * var anded = x64Word.and(anotherX64Word);\n\t */\n\t // and: function (word) {\n\t // var high = this.high & word.high;\n\t // var low = this.low & word.low;\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Bitwise ORs this word with the passed word.\n\t *\n\t * @param {X64Word} word The x64-Word to OR with this word.\n\t *\n\t * @return {X64Word} A new x64-Word object after ORing.\n\t *\n\t * @example\n\t *\n\t * var ored = x64Word.or(anotherX64Word);\n\t */\n\t // or: function (word) {\n\t // var high = this.high | word.high;\n\t // var low = this.low | word.low;\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Bitwise XORs this word with the passed word.\n\t *\n\t * @param {X64Word} word The x64-Word to XOR with this word.\n\t *\n\t * @return {X64Word} A new x64-Word object after XORing.\n\t *\n\t * @example\n\t *\n\t * var xored = x64Word.xor(anotherX64Word);\n\t */\n\t // xor: function (word) {\n\t // var high = this.high ^ word.high;\n\t // var low = this.low ^ word.low;\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Shifts this word n bits to the left.\n\t *\n\t * @param {number} n The number of bits to shift.\n\t *\n\t * @return {X64Word} A new x64-Word object after shifting.\n\t *\n\t * @example\n\t *\n\t * var shifted = x64Word.shiftL(25);\n\t */\n\t // shiftL: function (n) {\n\t // if (n < 32) {\n\t // var high = (this.high << n) | (this.low >>> (32 - n));\n\t // var low = this.low << n;\n\t // } else {\n\t // var high = this.low << (n - 32);\n\t // var low = 0;\n\t // }\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Shifts this word n bits to the right.\n\t *\n\t * @param {number} n The number of bits to shift.\n\t *\n\t * @return {X64Word} A new x64-Word object after shifting.\n\t *\n\t * @example\n\t *\n\t * var shifted = x64Word.shiftR(7);\n\t */\n\t // shiftR: function (n) {\n\t // if (n < 32) {\n\t // var low = (this.low >>> n) | (this.high << (32 - n));\n\t // var high = this.high >>> n;\n\t // } else {\n\t // var low = this.high >>> (n - 32);\n\t // var high = 0;\n\t // }\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Rotates this word n bits to the left.\n\t *\n\t * @param {number} n The number of bits to rotate.\n\t *\n\t * @return {X64Word} A new x64-Word object after rotating.\n\t *\n\t * @example\n\t *\n\t * var rotated = x64Word.rotL(25);\n\t */\n\t // rotL: function (n) {\n\t // return this.shiftL(n).or(this.shiftR(64 - n));\n\t // },\n\n\t /**\n\t * Rotates this word n bits to the right.\n\t *\n\t * @param {number} n The number of bits to rotate.\n\t *\n\t * @return {X64Word} A new x64-Word object after rotating.\n\t *\n\t * @example\n\t *\n\t * var rotated = x64Word.rotR(7);\n\t */\n\t // rotR: function (n) {\n\t // return this.shiftR(n).or(this.shiftL(64 - n));\n\t // },\n\n\t /**\n\t * Adds this word with the passed word.\n\t *\n\t * @param {X64Word} word The x64-Word to add with this word.\n\t *\n\t * @return {X64Word} A new x64-Word object after adding.\n\t *\n\t * @example\n\t *\n\t * var added = x64Word.add(anotherX64Word);\n\t */\n\t // add: function (word) {\n\t // var low = (this.low + word.low) | 0;\n\t // var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0;\n\t // var high = (this.high + word.high + carry) | 0;\n\n\t // return X64Word.create(high, low);\n\t // }\n\t });\n\n\t /**\n\t * An array of 64-bit words.\n\t *\n\t * @property {Array} words The array of CryptoJS.x64.Word objects.\n\t * @property {number} sigBytes The number of significant bytes in this word array.\n\t */\n\t var X64WordArray = C_x64.WordArray = Base.extend({\n\t /**\n\t * Initializes a newly created word array.\n\t *\n\t * @param {Array} words (Optional) An array of CryptoJS.x64.Word objects.\n\t * @param {number} sigBytes (Optional) The number of significant bytes in the words.\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.x64.WordArray.create();\n\t *\n\t * var wordArray = CryptoJS.x64.WordArray.create([\n\t * CryptoJS.x64.Word.create(0x00010203, 0x04050607),\n\t * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)\n\t * ]);\n\t *\n\t * var wordArray = CryptoJS.x64.WordArray.create([\n\t * CryptoJS.x64.Word.create(0x00010203, 0x04050607),\n\t * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)\n\t * ], 10);\n\t */\n\t init: function (words, sigBytes) {\n\t words = this.words = words || [];\n\n\t if (sigBytes != undefined) {\n\t this.sigBytes = sigBytes;\n\t } else {\n\t this.sigBytes = words.length * 8;\n\t }\n\t },\n\n\t /**\n\t * Converts this 64-bit word array to a 32-bit word array.\n\t *\n\t * @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array.\n\t *\n\t * @example\n\t *\n\t * var x32WordArray = x64WordArray.toX32();\n\t */\n\t toX32: function () {\n\t // Shortcuts\n\t var x64Words = this.words;\n\t var x64WordsLength = x64Words.length;\n\n\t // Convert\n\t var x32Words = [];\n\t for (var i = 0; i < x64WordsLength; i++) {\n\t var x64Word = x64Words[i];\n\t x32Words.push(x64Word.high);\n\t x32Words.push(x64Word.low);\n\t }\n\n\t return X32WordArray.create(x32Words, this.sigBytes);\n\t },\n\n\t /**\n\t * Creates a copy of this word array.\n\t *\n\t * @return {X64WordArray} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = x64WordArray.clone();\n\t */\n\t clone: function () {\n\t var clone = Base.clone.call(this);\n\n\t // Clone \"words\" array\n\t var words = clone.words = this.words.slice(0);\n\n\t // Clone each X64Word object\n\t var wordsLength = words.length;\n\t for (var i = 0; i < wordsLength; i++) {\n\t words[i] = words[i].clone();\n\t }\n\n\t return clone;\n\t }\n\t });\n\t}());\n\n\n\treturn CryptoJS;\n\n}));","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.StreamReader = exports.EndOfStreamError = void 0;\nconst EndOfFileStream_1 = require(\"./EndOfFileStream\");\nvar EndOfFileStream_2 = require(\"./EndOfFileStream\");\nObject.defineProperty(exports, \"EndOfStreamError\", { enumerable: true, get: function () { return EndOfFileStream_2.EndOfStreamError; } });\nclass Deferred {\n constructor() {\n this.promise = new Promise((resolve, reject) => {\n this.reject = reject;\n this.resolve = resolve;\n });\n }\n}\nconst maxStreamReadSize = 1 * 1024 * 1024; // Maximum request length on read-stream operation\nclass StreamReader {\n constructor(s) {\n this.s = s;\n this.endOfStream = false;\n /**\n * Store peeked data\n * @type {Array}\n */\n this.peekQueue = [];\n if (!s.read || !s.once) {\n throw new Error('Expected an instance of stream.Readable');\n }\n this.s.once('end', () => this.reject(new EndOfFileStream_1.EndOfStreamError()));\n this.s.once('error', err => this.reject(err));\n this.s.once('close', () => this.reject(new Error('Stream closed')));\n }\n /**\n * Read ahead (peek) from stream. Subsequent read or peeks will return the same data\n * @param buffer - Buffer to store data read from stream in\n * @param offset - Offset buffer\n * @param length - Number of bytes to read\n * @returns Number of bytes peeked\n */\n async peek(buffer, offset, length) {\n const bytesRead = await this.read(buffer, offset, length);\n this.peekQueue.push(buffer.slice(offset, offset + bytesRead)); // Put read data back to peek buffer\n return bytesRead;\n }\n /**\n * Read chunk from stream\n * @param buffer - Target buffer to store data read from stream in\n * @param offset - Offset of target buffer\n * @param length - Number of bytes to read\n * @returns Number of bytes read\n */\n async read(buffer, offset, length) {\n if (length === 0) {\n return 0;\n }\n if (this.peekQueue.length === 0 && this.endOfStream) {\n throw new EndOfFileStream_1.EndOfStreamError();\n }\n let remaining = length;\n let bytesRead = 0;\n // consume peeked data first\n while (this.peekQueue.length > 0 && remaining > 0) {\n const peekData = this.peekQueue.pop(); // Front of queue\n const lenCopy = Math.min(peekData.length, remaining);\n peekData.copy(buffer, offset + bytesRead, 0, lenCopy);\n bytesRead += lenCopy;\n remaining -= lenCopy;\n if (lenCopy < peekData.length) {\n // remainder back to queue\n this.peekQueue.push(peekData.slice(lenCopy));\n }\n }\n // continue reading from stream if required\n while (remaining > 0 && !this.endOfStream) {\n const reqLen = Math.min(remaining, maxStreamReadSize);\n const chunkLen = await this._read(buffer, offset + bytesRead, reqLen);\n bytesRead += chunkLen;\n if (chunkLen < reqLen)\n break;\n remaining -= chunkLen;\n }\n return bytesRead;\n }\n /**\n * Read chunk from stream\n * @param buffer Buffer to store data read from stream in\n * @param offset Offset buffer\n * @param length Number of bytes to read\n * @returns Number of bytes read\n */\n async _read(buffer, offset, length) {\n if (this.request)\n throw new Error('Concurrent read operation?');\n const readBuffer = this.s.read(length);\n if (readBuffer) {\n readBuffer.copy(buffer, offset);\n return readBuffer.length;\n }\n else {\n this.request = {\n buffer,\n offset,\n length,\n deferred: new Deferred()\n };\n this.s.once('readable', () => {\n this.tryRead();\n });\n return this.request.deferred.promise.then(n => {\n this.request = null;\n return n;\n }, err => {\n this.request = null;\n throw err;\n });\n }\n }\n tryRead() {\n const readBuffer = this.s.read(this.request.length);\n if (readBuffer) {\n readBuffer.copy(this.request.buffer, this.request.offset);\n this.request.deferred.resolve(readBuffer.length);\n }\n else {\n this.s.once('readable', () => {\n this.tryRead();\n });\n }\n }\n reject(err) {\n this.endOfStream = true;\n if (this.request) {\n this.request.deferred.reject(err);\n this.request = null;\n }\n }\n}\nexports.StreamReader = StreamReader;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.hasID3v1Header = exports.ID3v1Parser = exports.Genres = void 0;\nconst initDebug = require(\"debug\");\nconst Util_1 = require(\"../common/Util\");\nconst Token = require(\"token-types\");\nconst BasicParser_1 = require(\"../common/BasicParser\");\nconst APEv2Parser_1 = require(\"../apev2/APEv2Parser\");\nconst debug = initDebug('music-metadata:parser:ID3v1');\n/**\n * ID3v1 Genre mappings\n * Ref: https://de.wikipedia.org/wiki/Liste_der_ID3v1-Genres\n */\nexports.Genres = [\n \"Blues\", \"Classic Rock\", \"Country\", \"Dance\", \"Disco\", \"Funk\", \"Grunge\", \"Hip-Hop\",\n \"Jazz\", \"Metal\", \"New Age\", \"Oldies\", \"Other\", \"Pop\", \"R&B\", \"Rap\", \"Reggae\", \"Rock\",\n \"Techno\", \"Industrial\", \"Alternative\", \"Ska\", \"Death Metal\", \"Pranks\", \"Soundtrack\",\n \"Euro-Techno\", \"Ambient\", \"Trip-Hop\", \"Vocal\", \"Jazz+Funk\", \"Fusion\", \"Trance\",\n \"Classical\", \"Instrumental\", \"Acid\", \"House\", \"Game\", \"Sound Clip\", \"Gospel\", \"Noise\",\n \"Alt. Rock\", \"Bass\", \"Soul\", \"Punk\", \"Space\", \"Meditative\", \"Instrumental Pop\",\n \"Instrumental Rock\", \"Ethnic\", \"Gothic\", \"Darkwave\", \"Techno-Industrial\",\n \"Electronic\", \"Pop-Folk\", \"Eurodance\", \"Dream\", \"Southern Rock\", \"Comedy\", \"Cult\",\n \"Gangsta Rap\", \"Top 40\", \"Christian Rap\", \"Pop/Funk\", \"Jungle\", \"Native American\",\n \"Cabaret\", \"New Wave\", \"Psychedelic\", \"Rave\", \"Showtunes\", \"Trailer\", \"Lo-Fi\", \"Tribal\",\n \"Acid Punk\", \"Acid Jazz\", \"Polka\", \"Retro\", \"Musical\", \"Rock & Roll\", \"Hard Rock\",\n \"Folk\", \"Folk/Rock\", \"National Folk\", \"Swing\", \"Fast-Fusion\", \"Bebob\", \"Latin\", \"Revival\",\n \"Celtic\", \"Bluegrass\", \"Avantgarde\", \"Gothic Rock\", \"Progressive Rock\", \"Psychedelic Rock\",\n \"Symphonic Rock\", \"Slow Rock\", \"Big Band\", \"Chorus\", \"Easy Listening\", \"Acoustic\", \"Humour\",\n \"Speech\", \"Chanson\", \"Opera\", \"Chamber Music\", \"Sonata\", \"Symphony\", \"Booty Bass\", \"Primus\",\n \"Porn Groove\", \"Satire\", \"Slow Jam\", \"Club\", \"Tango\", \"Samba\", \"Folklore\",\n \"Ballad\", \"Power Ballad\", \"Rhythmic Soul\", \"Freestyle\", \"Duet\", \"Punk Rock\", \"Drum Solo\",\n \"A Cappella\", \"Euro-House\", \"Dance Hall\", \"Goa\", \"Drum & Bass\", \"Club-House\",\n \"Hardcore\", \"Terror\", \"Indie\", \"BritPop\", \"Negerpunk\", \"Polsk Punk\", \"Beat\",\n \"Christian Gangsta Rap\", \"Heavy Metal\", \"Black Metal\", \"Crossover\", \"Contemporary Christian\",\n \"Christian Rock\", \"Merengue\", \"Salsa\", \"Thrash Metal\", \"Anime\", \"JPop\", \"Synthpop\",\n \"Abstract\", \"Art Rock\", \"Baroque\", \"Bhangra\", \"Big Beat\", \"Breakbeat\", \"Chillout\",\n \"Downtempo\", \"Dub\", \"EBM\", \"Eclectic\", \"Electro\", \"Electroclash\", \"Emo\", \"Experimental\",\n \"Garage\", \"Global\", \"IDM\", \"Illbient\", \"Industro-Goth\", \"Jam Band\", \"Krautrock\",\n \"Leftfield\", \"Lounge\", \"Math Rock\", \"New Romantic\", \"Nu-Breakz\", \"Post-Punk\", \"Post-Rock\",\n \"Psytrance\", \"Shoegaze\", \"Space Rock\", \"Trop Rock\", \"World Music\", \"Neoclassical\", \"Audiobook\",\n \"Audio Theatre\", \"Neue Deutsche Welle\", \"Podcast\", \"Indie Rock\", \"G-Funk\", \"Dubstep\",\n \"Garage Rock\", \"Psybient\"\n];\n/**\n * Spec: http://id3.org/ID3v1\n * Wiki: https://en.wikipedia.org/wiki/ID3\n */\nconst Iid3v1Token = {\n len: 128,\n /**\n * @param buf Buffer possibly holding the 128 bytes ID3v1.1 metadata header\n * @param off Offset in buffer in bytes\n * @returns ID3v1.1 header if first 3 bytes equals 'TAG', otherwise null is returned\n */\n get: (buf, off) => {\n const header = new Id3v1StringType(3).get(buf, off);\n return header === \"TAG\" ? {\n header,\n title: new Id3v1StringType(30).get(buf, off + 3),\n artist: new Id3v1StringType(30).get(buf, off + 33),\n album: new Id3v1StringType(30).get(buf, off + 63),\n year: new Id3v1StringType(4).get(buf, off + 93),\n comment: new Id3v1StringType(28).get(buf, off + 97),\n // ID3v1.1 separator for track\n zeroByte: Token.UINT8.get(buf, off + 127),\n // track: ID3v1.1 field added by Michael Mutschler\n track: Token.UINT8.get(buf, off + 126),\n genre: Token.UINT8.get(buf, off + 127)\n } : null;\n }\n};\nclass Id3v1StringType extends Token.StringType {\n constructor(len) {\n super(len, \"binary\");\n }\n get(buf, off) {\n let value = super.get(buf, off);\n value = Util_1.default.trimRightNull(value);\n value = value.trim();\n return value.length > 0 ? value : undefined;\n }\n}\nclass ID3v1Parser extends BasicParser_1.BasicParser {\n static getGenre(genreIndex) {\n if (genreIndex < exports.Genres.length) {\n return exports.Genres[genreIndex];\n }\n return undefined; // ToDO: generate warning\n }\n async parse() {\n if (!this.tokenizer.fileInfo.size) {\n debug('Skip checking for ID3v1 because the file-size is unknown');\n return;\n }\n if (this.options.apeHeader) {\n this.tokenizer.ignore(this.options.apeHeader.offset - this.tokenizer.position);\n const apeParser = new APEv2Parser_1.APEv2Parser();\n apeParser.init(this.metadata, this.tokenizer, this.options);\n await apeParser.parseTags(this.options.apeHeader.footer);\n }\n const offset = this.tokenizer.fileInfo.size - Iid3v1Token.len;\n if (this.tokenizer.position > offset) {\n debug('Already consumed the last 128 bytes');\n return;\n }\n const header = await this.tokenizer.readToken(Iid3v1Token, offset);\n if (header) {\n debug(\"ID3v1 header found at: pos=%s\", this.tokenizer.fileInfo.size - Iid3v1Token.len);\n for (const id of [\"title\", \"artist\", \"album\", \"comment\", \"track\", \"year\"]) {\n if (header[id] && header[id] !== \"\")\n this.addTag(id, header[id]);\n }\n const genre = ID3v1Parser.getGenre(header.genre);\n if (genre)\n this.addTag('genre', genre);\n }\n else {\n debug(\"ID3v1 header not found at: pos=%s\", this.tokenizer.fileInfo.size - Iid3v1Token.len);\n }\n }\n addTag(id, value) {\n this.metadata.addTag('ID3v1', id, value);\n }\n}\nexports.ID3v1Parser = ID3v1Parser;\nasync function hasID3v1Header(reader) {\n if (reader.fileSize >= 128) {\n const tag = Buffer.alloc(3);\n await reader.randomRead(tag, 0, tag.length, reader.fileSize - 128);\n return tag.toString('binary') === 'TAG';\n }\n return false;\n}\nexports.hasID3v1Header = hasID3v1Header;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.AbstractID3Parser = void 0;\nconst core_1 = require(\"strtok3/lib/core\");\nconst ID3v2Token_1 = require(\"./ID3v2Token\");\nconst ID3v2Parser_1 = require(\"./ID3v2Parser\");\nconst ID3v1Parser_1 = require(\"../id3v1/ID3v1Parser\");\nconst _debug = require(\"debug\");\nconst BasicParser_1 = require(\"../common/BasicParser\");\nconst debug = _debug('music-metadata:parser:ID3');\n/**\n * Abstract parser which tries take ID3v2 and ID3v1 headers.\n */\nclass AbstractID3Parser extends BasicParser_1.BasicParser {\n constructor() {\n super(...arguments);\n this.id3parser = new ID3v2Parser_1.ID3v2Parser();\n }\n static async startsWithID3v2Header(tokenizer) {\n return (await tokenizer.peekToken(ID3v2Token_1.ID3v2Header)).fileIdentifier === 'ID3';\n }\n async parse() {\n try {\n await this.parseID3v2();\n }\n catch (err) {\n if (err instanceof core_1.EndOfStreamError) {\n debug(`End-of-stream`);\n }\n else {\n throw err;\n }\n }\n }\n finalize() {\n return;\n }\n async parseID3v2() {\n await this.tryReadId3v2Headers();\n debug(\"End of ID3v2 header, go to MPEG-parser: pos=%s\", this.tokenizer.position);\n await this._parse();\n if (this.options.skipPostHeaders && this.metadata.hasAny()) {\n this.finalize();\n }\n else {\n const id3v1parser = new ID3v1Parser_1.ID3v1Parser();\n await id3v1parser.init(this.metadata, this.tokenizer, this.options).parse();\n this.finalize();\n }\n }\n async tryReadId3v2Headers() {\n const id3Header = await this.tokenizer.peekToken(ID3v2Token_1.ID3v2Header);\n if (id3Header.fileIdentifier === \"ID3\") {\n debug(\"Found ID3v2 header, pos=%s\", this.tokenizer.position);\n await this.id3parser.parse(this.metadata, this.tokenizer, this.options);\n return this.tryReadId3v2Headers();\n }\n }\n}\nexports.AbstractID3Parser = AbstractID3Parser;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.VorbisParser = void 0;\nconst Token = require(\"token-types\");\nconst _debug = require(\"debug\");\nconst VorbisDecoder_1 = require(\"./VorbisDecoder\");\nconst Vorbis_1 = require(\"./Vorbis\");\nconst debug = _debug('music-metadata:parser:ogg:vorbis1');\n/**\n * Vorbis 1 Parser.\n * Used by OggParser\n */\nclass VorbisParser {\n constructor(metadata, options) {\n this.metadata = metadata;\n this.options = options;\n this.pageSegments = [];\n }\n /**\n * Vorbis 1 parser\n * @param header Ogg Page Header\n * @param pageData Page data\n */\n parsePage(header, pageData) {\n if (header.headerType.firstPage) {\n this.parseFirstPage(header, pageData);\n }\n else {\n if (header.headerType.continued) {\n if (this.pageSegments.length === 0) {\n throw new Error(\"Cannot continue on previous page\");\n }\n this.pageSegments.push(pageData);\n }\n if (header.headerType.lastPage || !header.headerType.continued) {\n // Flush page segments\n if (this.pageSegments.length > 0) {\n const fullPage = Buffer.concat(this.pageSegments);\n this.parseFullPage(fullPage);\n }\n // Reset page segments\n this.pageSegments = header.headerType.lastPage ? [] : [pageData];\n }\n }\n if (header.headerType.lastPage) {\n this.calculateDuration(header);\n }\n }\n flush() {\n this.parseFullPage(Buffer.concat(this.pageSegments));\n }\n parseUserComment(pageData, offset) {\n const decoder = new VorbisDecoder_1.VorbisDecoder(pageData, offset);\n const tag = decoder.parseUserComment();\n this.addTag(tag.key, tag.value);\n return tag.len;\n }\n addTag(id, value) {\n if (id === 'METADATA_BLOCK_PICTURE' && (typeof value === 'string')) {\n if (this.options.skipCovers) {\n debug(`Ignore picture`);\n return;\n }\n value = Vorbis_1.VorbisPictureToken.fromBase64(value);\n debug(`Push picture: id=${id}, format=${value.format}`);\n }\n else {\n debug(`Push tag: id=${id}, value=${value}`);\n }\n this.metadata.addTag('vorbis', id, value);\n }\n calculateDuration(header) {\n if (this.metadata.format.sampleRate && header.absoluteGranulePosition >= 0) {\n // Calculate duration\n this.metadata.setFormat('numberOfSamples', header.absoluteGranulePosition);\n this.metadata.setFormat('duration', this.metadata.format.numberOfSamples / this.metadata.format.sampleRate);\n }\n }\n /**\n * Parse first Ogg/Vorbis page\n * @param {IPageHeader} header\n * @param {Buffer} pageData\n */\n parseFirstPage(header, pageData) {\n this.metadata.setFormat('codec', 'Vorbis I');\n debug(\"Parse first page\");\n // Parse Vorbis common header\n const commonHeader = Vorbis_1.CommonHeader.get(pageData, 0);\n if (commonHeader.vorbis !== 'vorbis')\n throw new Error('Metadata does not look like Vorbis');\n if (commonHeader.packetType === 1) {\n const idHeader = Vorbis_1.IdentificationHeader.get(pageData, Vorbis_1.CommonHeader.len);\n this.metadata.setFormat('sampleRate', idHeader.sampleRate);\n this.metadata.setFormat('bitrate', idHeader.bitrateNominal);\n this.metadata.setFormat('numberOfChannels', idHeader.channelMode);\n debug(\"sample-rate=%s[hz], bitrate=%s[b/s], channel-mode=%s\", idHeader.sampleRate, idHeader.bitrateNominal, idHeader.channelMode);\n }\n else\n throw new Error('First Ogg page should be type 1: the identification header');\n }\n parseFullPage(pageData) {\n // New page\n const commonHeader = Vorbis_1.CommonHeader.get(pageData, 0);\n debug(\"Parse full page: type=%s, byteLength=%s\", commonHeader.packetType, pageData.byteLength);\n switch (commonHeader.packetType) {\n case 3: // type 3: comment header\n return this.parseUserCommentList(pageData, Vorbis_1.CommonHeader.len);\n case 1: // type 1: the identification header\n case 5: // type 5: setup header type\n break; // ignore\n }\n }\n /**\n * Ref: https://xiph.org/vorbis/doc/Vorbis_I_spec.html#x1-840005.2\n */\n parseUserCommentList(pageData, offset) {\n const strLen = Token.UINT32_LE.get(pageData, offset);\n offset += 4;\n // const vendorString = new Token.StringType(strLen, 'utf-8').get(pageData, offset);\n offset += strLen;\n let userCommentListLength = Token.UINT32_LE.get(pageData, offset);\n offset += 4;\n while (userCommentListLength-- > 0) {\n offset += this.parseUserComment(pageData, offset);\n }\n }\n}\nexports.VorbisParser = VorbisParser;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { exactProp } from '@material-ui/utils';\nimport createGenerateClassName from '../createGenerateClassName';\nimport { create } from 'jss';\nimport jssPreset from '../jssPreset'; // Default JSS instance.\n\nvar jss = create(jssPreset()); // Use a singleton or the provided one by the context.\n//\n// The counter-based approach doesn't tolerate any mistake.\n// It's much safer to use the same counter everywhere.\n\nvar generateClassName = createGenerateClassName(); // Exported for test purposes\n\nexport var sheetsManager = new Map();\nvar defaultOptions = {\n disableGeneration: false,\n generateClassName: generateClassName,\n jss: jss,\n sheetsCache: null,\n sheetsManager: sheetsManager,\n sheetsRegistry: null\n};\nexport var StylesContext = React.createContext(defaultOptions);\n\nif (process.env.NODE_ENV !== 'production') {\n StylesContext.displayName = 'StylesContext';\n}\n\nvar injectFirstNode;\nexport default function StylesProvider(props) {\n var children = props.children,\n _props$injectFirst = props.injectFirst,\n injectFirst = _props$injectFirst === void 0 ? false : _props$injectFirst,\n _props$disableGenerat = props.disableGeneration,\n disableGeneration = _props$disableGenerat === void 0 ? false : _props$disableGenerat,\n localOptions = _objectWithoutProperties(props, [\"children\", \"injectFirst\", \"disableGeneration\"]);\n\n var outerOptions = React.useContext(StylesContext);\n\n var context = _extends({}, outerOptions, {\n disableGeneration: disableGeneration\n }, localOptions);\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof window === 'undefined' && !context.sheetsManager) {\n console.error('Material-UI: You need to use the ServerStyleSheets API when rendering on the server.');\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (context.jss.options.insertionPoint && injectFirst) {\n console.error('Material-UI: You cannot use a custom insertionPoint and at the same time.');\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (injectFirst && localOptions.jss) {\n console.error('Material-UI: You cannot use the jss and injectFirst props at the same time.');\n }\n }\n\n if (!context.jss.options.insertionPoint && injectFirst && typeof window !== 'undefined') {\n if (!injectFirstNode) {\n var head = document.head;\n injectFirstNode = document.createComment('mui-inject-first');\n head.insertBefore(injectFirstNode, head.firstChild);\n }\n\n context.jss = create({\n plugins: jssPreset().plugins,\n insertionPoint: injectFirstNode\n });\n }\n\n return /*#__PURE__*/React.createElement(StylesContext.Provider, {\n value: context\n }, children);\n}\nprocess.env.NODE_ENV !== \"production\" ? StylesProvider.propTypes = {\n /**\n * Your component tree.\n */\n children: PropTypes.node.isRequired,\n\n /**\n * You can disable the generation of the styles with this option.\n * It can be useful when traversing the React tree outside of the HTML\n * rendering step on the server.\n * Let's say you are using react-apollo to extract all\n * the queries made by the interface server-side - you can significantly speed up the traversal with this prop.\n */\n disableGeneration: PropTypes.bool,\n\n /**\n * JSS's class name generator.\n */\n generateClassName: PropTypes.func,\n\n /**\n * By default, the styles are injected last in the element of the page.\n * As a result, they gain more specificity than any other style sheet.\n * If you want to override Material-UI's styles, set this prop.\n */\n injectFirst: PropTypes.bool,\n\n /**\n * JSS's instance.\n */\n jss: PropTypes.object,\n\n /**\n * @ignore\n */\n serverGenerateClassName: PropTypes.func,\n\n /**\n * @ignore\n *\n * Beta feature.\n *\n * Cache for the sheets.\n */\n sheetsCache: PropTypes.object,\n\n /**\n * @ignore\n *\n * The sheetsManager is used to deduplicate style sheet injection in the page.\n * It's deduplicating using the (theme, styles) couple.\n * On the server, you should provide a new instance for each request.\n */\n sheetsManager: PropTypes.object,\n\n /**\n * @ignore\n *\n * Collect the sheets.\n */\n sheetsRegistry: PropTypes.object\n} : void 0;\n\nif (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== \"production\" ? StylesProvider.propTypes = exactProp(StylesProvider.propTypes) : void 0;\n}","import style from './style';\nimport compose from './compose';\n\nfunction getBorder(value) {\n if (typeof value !== 'number') {\n return value;\n }\n\n return \"\".concat(value, \"px solid\");\n}\n\nexport var border = style({\n prop: 'border',\n themeKey: 'borders',\n transform: getBorder\n});\nexport var borderTop = style({\n prop: 'borderTop',\n themeKey: 'borders',\n transform: getBorder\n});\nexport var borderRight = style({\n prop: 'borderRight',\n themeKey: 'borders',\n transform: getBorder\n});\nexport var borderBottom = style({\n prop: 'borderBottom',\n themeKey: 'borders',\n transform: getBorder\n});\nexport var borderLeft = style({\n prop: 'borderLeft',\n themeKey: 'borders',\n transform: getBorder\n});\nexport var borderColor = style({\n prop: 'borderColor',\n themeKey: 'palette'\n});\nexport var borderRadius = style({\n prop: 'borderRadius',\n themeKey: 'shape'\n});\nvar borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderRadius);\nexport default borders;","import style from './style';\nimport compose from './compose';\nexport var flexBasis = style({\n prop: 'flexBasis'\n});\nexport var flexDirection = style({\n prop: 'flexDirection'\n});\nexport var flexWrap = style({\n prop: 'flexWrap'\n});\nexport var justifyContent = style({\n prop: 'justifyContent'\n});\nexport var alignItems = style({\n prop: 'alignItems'\n});\nexport var alignContent = style({\n prop: 'alignContent'\n});\nexport var order = style({\n prop: 'order'\n});\nexport var flex = style({\n prop: 'flex'\n});\nexport var flexGrow = style({\n prop: 'flexGrow'\n});\nexport var flexShrink = style({\n prop: 'flexShrink'\n});\nexport var alignSelf = style({\n prop: 'alignSelf'\n});\nexport var justifyItems = style({\n prop: 'justifyItems'\n});\nexport var justifySelf = style({\n prop: 'justifySelf'\n});\nvar flexbox = compose(flexBasis, flexDirection, flexWrap, justifyContent, alignItems, alignContent, order, flex, flexGrow, flexShrink, alignSelf, justifyItems, justifySelf);\nexport default flexbox;","import style from './style';\nimport compose from './compose';\nexport var gridGap = style({\n prop: 'gridGap'\n});\nexport var gridColumnGap = style({\n prop: 'gridColumnGap'\n});\nexport var gridRowGap = style({\n prop: 'gridRowGap'\n});\nexport var gridColumn = style({\n prop: 'gridColumn'\n});\nexport var gridRow = style({\n prop: 'gridRow'\n});\nexport var gridAutoFlow = style({\n prop: 'gridAutoFlow'\n});\nexport var gridAutoColumns = style({\n prop: 'gridAutoColumns'\n});\nexport var gridAutoRows = style({\n prop: 'gridAutoRows'\n});\nexport var gridTemplateColumns = style({\n prop: 'gridTemplateColumns'\n});\nexport var gridTemplateRows = style({\n prop: 'gridTemplateRows'\n});\nexport var gridTemplateAreas = style({\n prop: 'gridTemplateAreas'\n});\nexport var gridArea = style({\n prop: 'gridArea'\n});\nvar grid = compose(gridGap, gridColumnGap, gridRowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);\nexport default grid;","import style from './style';\nimport compose from './compose';\nexport var position = style({\n prop: 'position'\n});\nexport var zIndex = style({\n prop: 'zIndex',\n themeKey: 'zIndex'\n});\nexport var top = style({\n prop: 'top'\n});\nexport var right = style({\n prop: 'right'\n});\nexport var bottom = style({\n prop: 'bottom'\n});\nexport var left = style({\n prop: 'left'\n});\nexport default compose(position, zIndex, top, right, bottom, left);","import style from './style';\nimport compose from './compose';\nexport var color = style({\n prop: 'color',\n themeKey: 'palette'\n});\nexport var bgcolor = style({\n prop: 'bgcolor',\n cssProperty: 'backgroundColor',\n themeKey: 'palette'\n});\nvar palette = compose(color, bgcolor);\nexport default palette;","import style from './style';\nimport compose from './compose';\n\nfunction transform(value) {\n return value <= 1 ? \"\".concat(value * 100, \"%\") : value;\n}\n\nexport var width = style({\n prop: 'width',\n transform: transform\n});\nexport var maxWidth = style({\n prop: 'maxWidth',\n transform: transform\n});\nexport var minWidth = style({\n prop: 'minWidth',\n transform: transform\n});\nexport var height = style({\n prop: 'height',\n transform: transform\n});\nexport var maxHeight = style({\n prop: 'maxHeight',\n transform: transform\n});\nexport var minHeight = style({\n prop: 'minHeight',\n transform: transform\n});\nexport var sizeWidth = style({\n prop: 'size',\n cssProperty: 'width',\n transform: transform\n});\nexport var sizeHeight = style({\n prop: 'size',\n cssProperty: 'height',\n transform: transform\n});\nexport var boxSizing = style({\n prop: 'boxSizing'\n});\nvar sizing = compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);\nexport default sizing;","import style from './style';\nimport compose from './compose';\nexport var fontFamily = style({\n prop: 'fontFamily',\n themeKey: 'typography'\n});\nexport var fontSize = style({\n prop: 'fontSize',\n themeKey: 'typography'\n});\nexport var fontStyle = style({\n prop: 'fontStyle',\n themeKey: 'typography'\n});\nexport var fontWeight = style({\n prop: 'fontWeight',\n themeKey: 'typography'\n});\nexport var letterSpacing = style({\n prop: 'letterSpacing'\n});\nexport var lineHeight = style({\n prop: 'lineHeight'\n});\nexport var textAlign = style({\n prop: 'textAlign'\n});\nvar typography = compose(fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, textAlign);\nexport default typography;","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport responsivePropType from './responsivePropType';\nimport { handleBreakpoints } from './breakpoints';\nimport merge from './merge';\nimport memoize from './memoize';\nvar properties = {\n m: 'margin',\n p: 'padding'\n};\nvar directions = {\n t: 'Top',\n r: 'Right',\n b: 'Bottom',\n l: 'Left',\n x: ['Left', 'Right'],\n y: ['Top', 'Bottom']\n};\nvar aliases = {\n marginX: 'mx',\n marginY: 'my',\n paddingX: 'px',\n paddingY: 'py'\n}; // memoize() impact:\n// From 300,000 ops/sec\n// To 350,000 ops/sec\n\nvar getCssProperties = memoize(function (prop) {\n // It's not a shorthand notation.\n if (prop.length > 2) {\n if (aliases[prop]) {\n prop = aliases[prop];\n } else {\n return [prop];\n }\n }\n\n var _prop$split = prop.split(''),\n _prop$split2 = _slicedToArray(_prop$split, 2),\n a = _prop$split2[0],\n b = _prop$split2[1];\n\n var property = properties[a];\n var direction = directions[b] || '';\n return Array.isArray(direction) ? direction.map(function (dir) {\n return property + dir;\n }) : [property + direction];\n});\nvar spacingKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY'];\nexport function createUnarySpacing(theme) {\n var themeSpacing = theme.spacing || 8;\n\n if (typeof themeSpacing === 'number') {\n return function (abs) {\n if (process.env.NODE_ENV !== 'production') {\n if (typeof abs !== 'number') {\n console.error(\"Material-UI: Expected spacing argument to be a number, got \".concat(abs, \".\"));\n }\n }\n\n return themeSpacing * abs;\n };\n }\n\n if (Array.isArray(themeSpacing)) {\n return function (abs) {\n if (process.env.NODE_ENV !== 'production') {\n if (abs > themeSpacing.length - 1) {\n console.error([\"Material-UI: The value provided (\".concat(abs, \") overflows.\"), \"The supported values are: \".concat(JSON.stringify(themeSpacing), \".\"), \"\".concat(abs, \" > \").concat(themeSpacing.length - 1, \", you need to add the missing values.\")].join('\\n'));\n }\n }\n\n return themeSpacing[abs];\n };\n }\n\n if (typeof themeSpacing === 'function') {\n return themeSpacing;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n console.error([\"Material-UI: The `theme.spacing` value (\".concat(themeSpacing, \") is invalid.\"), 'It should be a number, an array or a function.'].join('\\n'));\n }\n\n return function () {\n return undefined;\n };\n}\n\nfunction getValue(transformer, propValue) {\n if (typeof propValue === 'string') {\n return propValue;\n }\n\n var abs = Math.abs(propValue);\n var transformed = transformer(abs);\n\n if (propValue >= 0) {\n return transformed;\n }\n\n if (typeof transformed === 'number') {\n return -transformed;\n }\n\n return \"-\".concat(transformed);\n}\n\nfunction getStyleFromPropValue(cssProperties, transformer) {\n return function (propValue) {\n return cssProperties.reduce(function (acc, cssProperty) {\n acc[cssProperty] = getValue(transformer, propValue);\n return acc;\n }, {});\n };\n}\n\nfunction spacing(props) {\n var theme = props.theme;\n var transformer = createUnarySpacing(theme);\n return Object.keys(props).map(function (prop) {\n // Using a hash computation over an array iteration could be faster, but with only 28 items,\n // it's doesn't worth the bundle size.\n if (spacingKeys.indexOf(prop) === -1) {\n return null;\n }\n\n var cssProperties = getCssProperties(prop);\n var styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);\n var propValue = props[prop];\n return handleBreakpoints(props, propValue, styleFromPropValue);\n }).reduce(merge, {});\n}\n\nspacing.propTypes = process.env.NODE_ENV !== 'production' ? spacingKeys.reduce(function (obj, key) {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nspacing.filterProps = spacingKeys;\nexport default spacing;","export default function memoize(fn) {\n var cache = {};\n return function (arg) {\n if (cache[arg] === undefined) {\n cache[arg] = fn(arg);\n }\n\n return cache[arg];\n };\n}","import * as React from 'react';\n/**\n * Private module reserved for @material-ui/x packages.\n */\n\nexport default function useId(idOverride) {\n var _React$useState = React.useState(idOverride),\n defaultId = _React$useState[0],\n setDefaultId = _React$useState[1];\n\n var id = idOverride || defaultId;\n React.useEffect(function () {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the random value for client-side rendering only.\n // We can't use it server-side.\n setDefaultId(\"mui-\".concat(Math.round(Math.random() * 1e5)));\n }\n }, [defaultId]);\n return id;\n}","import React from 'react';\nvar ThemeContext = React.createContext(null);\n\nif (process.env.NODE_ENV !== 'production') {\n ThemeContext.displayName = 'ThemeContext';\n}\n\nexport default ThemeContext;","/**\n * WARNING: Don't import this directly.\n * Use `MuiError` from `@material-ui/utils/macros/MuiError.macro` instead.\n * @param {number} code\n */\nexport default function formatMuiErrorMessage(code) {\n // Apply babel-plugin-transform-template-literals in loose mode\n // loose mode is safe iff we're concatenating primitives\n // see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose\n\n /* eslint-disable prefer-template */\n var url = 'https://material-ui.com/production-error/?code=' + code;\n\n for (var i = 1; i < arguments.length; i += 1) {\n // rest params over-transpile for this case\n // eslint-disable-next-line prefer-rest-params\n url += '&args[]=' + encodeURIComponent(arguments[i]);\n }\n\n return 'Minified Material-UI error #' + code + '; visit ' + url + ' for the full message.';\n /* eslint-enable prefer-template */\n}","// We need to centralize the zIndex definitions as they work\n// like global values in the browser.\nvar zIndex = {\n mobileStepper: 1000,\n speedDial: 1050,\n appBar: 1100,\n drawer: 1200,\n modal: 1300,\n snackbar: 1400,\n tooltip: 1500\n};\nexport default zIndex;","var hasSymbol = typeof Symbol === 'function' && Symbol.for;\nexport default hasSymbol ? Symbol.for('mui.nested') : '__THEME_NESTED__';","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","// A change of the browser zoom change the scrollbar size.\n// Credit https://github.com/twbs/bootstrap/blob/3ffe3a5d82f6f561b82ff78d82b32a7d14aed558/js/src/modal.js#L512-L519\nexport default function getScrollbarSize() {\n var scrollDiv = document.createElement('div');\n scrollDiv.style.width = '99px';\n scrollDiv.style.height = '99px';\n scrollDiv.style.position = 'absolute';\n scrollDiv.style.top = '-9999px';\n scrollDiv.style.overflow = 'scroll';\n document.body.appendChild(scrollDiv);\n var scrollbarSize = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n document.body.removeChild(scrollDiv);\n return scrollbarSize;\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z\"\n}), 'Edit');\n\nexports.default = _default;","import * as React from 'react';\n/**\n * @ignore - internal component.\n */\n\nvar TableContext = React.createContext();\n\nif (process.env.NODE_ENV !== 'production') {\n TableContext.displayName = 'TableContext';\n}\n\nexport default TableContext;","import { Children, cloneElement, isValidElement } from 'react';\n/**\n * Given `this.props.children`, return an object mapping key to child.\n *\n * @param {*} children `this.props.children`\n * @return {object} Mapping of key to child\n */\n\nexport function getChildMapping(children, mapFn) {\n var mapper = function mapper(child) {\n return mapFn && isValidElement(child) ? mapFn(child) : child;\n };\n\n var result = Object.create(null);\n if (children) Children.map(children, function (c) {\n return c;\n }).forEach(function (child) {\n // run the map function here instead so that the key is the computed one\n result[child.key] = mapper(child);\n });\n return result;\n}\n/**\n * When you're adding or removing children some may be added or removed in the\n * same render pass. We want to show *both* since we want to simultaneously\n * animate elements in and out. This function takes a previous set of keys\n * and a new set of keys and merges them with its best guess of the correct\n * ordering. In the future we may expose some of the utilities in\n * ReactMultiChild to make this easy, but for now React itself does not\n * directly have this concept of the union of prevChildren and nextChildren\n * so we implement it here.\n *\n * @param {object} prev prev children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @param {object} next next children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @return {object} a key set that contains all keys in `prev` and all keys\n * in `next` in a reasonable order.\n */\n\nexport function mergeChildMappings(prev, next) {\n prev = prev || {};\n next = next || {};\n\n function getValueForKey(key) {\n return key in next ? next[key] : prev[key];\n } // For each key of `next`, the list of keys to insert before that key in\n // the combined list\n\n\n var nextKeysPending = Object.create(null);\n var pendingKeys = [];\n\n for (var prevKey in prev) {\n if (prevKey in next) {\n if (pendingKeys.length) {\n nextKeysPending[prevKey] = pendingKeys;\n pendingKeys = [];\n }\n } else {\n pendingKeys.push(prevKey);\n }\n }\n\n var i;\n var childMapping = {};\n\n for (var nextKey in next) {\n if (nextKeysPending[nextKey]) {\n for (i = 0; i < nextKeysPending[nextKey].length; i++) {\n var pendingNextKey = nextKeysPending[nextKey][i];\n childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);\n }\n }\n\n childMapping[nextKey] = getValueForKey(nextKey);\n } // Finally, add the keys which didn't appear before any key in `next`\n\n\n for (i = 0; i < pendingKeys.length; i++) {\n childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);\n }\n\n return childMapping;\n}\n\nfunction getProp(child, prop, props) {\n return props[prop] != null ? props[prop] : child.props[prop];\n}\n\nexport function getInitialChildMapping(props, onExited) {\n return getChildMapping(props.children, function (child) {\n return cloneElement(child, {\n onExited: onExited.bind(null, child),\n in: true,\n appear: getProp(child, 'appear', props),\n enter: getProp(child, 'enter', props),\n exit: getProp(child, 'exit', props)\n });\n });\n}\nexport function getNextChildMapping(nextProps, prevChildMapping, onExited) {\n var nextChildMapping = getChildMapping(nextProps.children);\n var children = mergeChildMappings(prevChildMapping, nextChildMapping);\n Object.keys(children).forEach(function (key) {\n var child = children[key];\n if (!isValidElement(child)) return;\n var hasPrev = (key in prevChildMapping);\n var hasNext = (key in nextChildMapping);\n var prevChild = prevChildMapping[key];\n var isLeaving = isValidElement(prevChild) && !prevChild.props.in; // item is new (entering)\n\n if (hasNext && (!hasPrev || isLeaving)) {\n // console.log('entering', key)\n children[key] = cloneElement(child, {\n onExited: onExited.bind(null, child),\n in: true,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n } else if (!hasNext && hasPrev && !isLeaving) {\n // item is old (exiting)\n // console.log('leaving', key)\n children[key] = cloneElement(child, {\n in: false\n });\n } else if (hasNext && hasPrev && isValidElement(prevChild)) {\n // item hasn't changed transition states\n // copy over the last transition props;\n // console.log('unchanged', key)\n children[key] = cloneElement(child, {\n onExited: onExited.bind(null, child),\n in: prevChild.props.in,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n }\n });\n return children;\n}","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport TransitionGroupContext from './TransitionGroupContext';\nimport { getChildMapping, getInitialChildMapping, getNextChildMapping } from './utils/ChildMapping';\n\nvar values = Object.values || function (obj) {\n return Object.keys(obj).map(function (k) {\n return obj[k];\n });\n};\n\nvar defaultProps = {\n component: 'div',\n childFactory: function childFactory(child) {\n return child;\n }\n};\n/**\n * The `` component manages a set of transition components\n * (`` and ``) in a list. Like with the transition\n * components, `` is a state machine for managing the mounting\n * and unmounting of components over time.\n *\n * Consider the example below. As items are removed or added to the TodoList the\n * `in` prop is toggled automatically by the ``.\n *\n * Note that `` does not define any animation behavior!\n * Exactly _how_ a list item animates is up to the individual transition\n * component. This means you can mix and match animations across different list\n * items.\n */\n\nvar TransitionGroup = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(TransitionGroup, _React$Component);\n\n function TransitionGroup(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n\n var handleExited = _this.handleExited.bind(_assertThisInitialized(_this)); // Initial children should all be entering, dependent on appear\n\n\n _this.state = {\n contextValue: {\n isMounting: true\n },\n handleExited: handleExited,\n firstRender: true\n };\n return _this;\n }\n\n var _proto = TransitionGroup.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.mounted = true;\n this.setState({\n contextValue: {\n isMounting: false\n }\n });\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.mounted = false;\n };\n\n TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {\n var prevChildMapping = _ref.children,\n handleExited = _ref.handleExited,\n firstRender = _ref.firstRender;\n return {\n children: firstRender ? getInitialChildMapping(nextProps, handleExited) : getNextChildMapping(nextProps, prevChildMapping, handleExited),\n firstRender: false\n };\n } // node is `undefined` when user provided `nodeRef` prop\n ;\n\n _proto.handleExited = function handleExited(child, node) {\n var currentChildMapping = getChildMapping(this.props.children);\n if (child.key in currentChildMapping) return;\n\n if (child.props.onExited) {\n child.props.onExited(node);\n }\n\n if (this.mounted) {\n this.setState(function (state) {\n var children = _extends({}, state.children);\n\n delete children[child.key];\n return {\n children: children\n };\n });\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n Component = _this$props.component,\n childFactory = _this$props.childFactory,\n props = _objectWithoutPropertiesLoose(_this$props, [\"component\", \"childFactory\"]);\n\n var contextValue = this.state.contextValue;\n var children = values(this.state.children).map(childFactory);\n delete props.appear;\n delete props.enter;\n delete props.exit;\n\n if (Component === null) {\n return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {\n value: contextValue\n }, children);\n }\n\n return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {\n value: contextValue\n }, /*#__PURE__*/React.createElement(Component, props, children));\n };\n\n return TransitionGroup;\n}(React.Component);\n\nTransitionGroup.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * `` renders a `
` by default. You can change this\n * behavior by providing a `component` prop.\n * If you use React v16+ and would like to avoid a wrapping `
` element\n * you can pass in `component={null}`. This is useful if the wrapping div\n * borks your css styles.\n */\n component: PropTypes.any,\n\n /**\n * A set of `` components, that are toggled `in` and out as they\n * leave. the `` will inject specific transition props, so\n * remember to spread them through if you are wrapping the `` as\n * with our `` example.\n *\n * While this component is meant for multiple `Transition` or `CSSTransition`\n * children, sometimes you may want to have a single transition child with\n * content that you want to be transitioned out and in when you change it\n * (e.g. routes, images etc.) In that case you can change the `key` prop of\n * the transition child as you change its content, this will cause\n * `TransitionGroup` to transition the child out and back in.\n */\n children: PropTypes.node,\n\n /**\n * A convenience prop that enables or disables appear animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n appear: PropTypes.bool,\n\n /**\n * A convenience prop that enables or disables enter animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n enter: PropTypes.bool,\n\n /**\n * A convenience prop that enables or disables exit animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n exit: PropTypes.bool,\n\n /**\n * You may need to apply reactive updates to a child as it is exiting.\n * This is generally done by using `cloneElement` however in the case of an exiting\n * child the element has already been removed and not accessible to the consumer.\n *\n * If you do need to update a child as it leaves you can provide a `childFactory`\n * to wrap every child, even the ones that are leaving.\n *\n * @type Function(child: ReactElement) -> ReactElement\n */\n childFactory: PropTypes.func\n} : {};\nTransitionGroup.defaultProps = defaultProps;\nexport default TransitionGroup;","import * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport useEventCallback from '../utils/useEventCallback';\nvar useEnhancedEffect = typeof window === 'undefined' ? React.useEffect : React.useLayoutEffect;\n/**\n * @ignore - internal component.\n */\n\nfunction Ripple(props) {\n var classes = props.classes,\n _props$pulsate = props.pulsate,\n pulsate = _props$pulsate === void 0 ? false : _props$pulsate,\n rippleX = props.rippleX,\n rippleY = props.rippleY,\n rippleSize = props.rippleSize,\n inProp = props.in,\n _props$onExited = props.onExited,\n onExited = _props$onExited === void 0 ? function () {} : _props$onExited,\n timeout = props.timeout;\n\n var _React$useState = React.useState(false),\n leaving = _React$useState[0],\n setLeaving = _React$useState[1];\n\n var rippleClassName = clsx(classes.ripple, classes.rippleVisible, pulsate && classes.ripplePulsate);\n var rippleStyles = {\n width: rippleSize,\n height: rippleSize,\n top: -(rippleSize / 2) + rippleY,\n left: -(rippleSize / 2) + rippleX\n };\n var childClassName = clsx(classes.child, leaving && classes.childLeaving, pulsate && classes.childPulsate);\n var handleExited = useEventCallback(onExited); // Ripple is used for user feedback (e.g. click or press) so we want to apply styles with the highest priority\n\n useEnhancedEffect(function () {\n if (!inProp) {\n // react-transition-group#onExit\n setLeaving(true); // react-transition-group#onExited\n\n var timeoutId = setTimeout(handleExited, timeout);\n return function () {\n clearTimeout(timeoutId);\n };\n }\n\n return undefined;\n }, [handleExited, inProp, timeout]);\n return /*#__PURE__*/React.createElement(\"span\", {\n className: rippleClassName,\n style: rippleStyles\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: childClassName\n }));\n}\n\nprocess.env.NODE_ENV !== \"production\" ? Ripple.propTypes = {\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object.isRequired,\n\n /**\n * @ignore - injected from TransitionGroup\n */\n in: PropTypes.bool,\n\n /**\n * @ignore - injected from TransitionGroup\n */\n onExited: PropTypes.func,\n\n /**\n * If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.\n */\n pulsate: PropTypes.bool,\n\n /**\n * Diameter of the ripple.\n */\n rippleSize: PropTypes.number,\n\n /**\n * Horizontal position of the ripple center.\n */\n rippleX: PropTypes.number,\n\n /**\n * Vertical position of the ripple center.\n */\n rippleY: PropTypes.number,\n\n /**\n * exit delay\n */\n timeout: PropTypes.number.isRequired\n} : void 0;\nexport default Ripple;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { TransitionGroup } from 'react-transition-group';\nimport clsx from 'clsx';\nimport withStyles from '../styles/withStyles';\nimport Ripple from './Ripple';\nvar DURATION = 550;\nexport var DELAY_RIPPLE = 80;\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: {\n overflow: 'hidden',\n pointerEvents: 'none',\n position: 'absolute',\n zIndex: 0,\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: 'inherit'\n },\n\n /* Styles applied to the internal `Ripple` components `ripple` class. */\n ripple: {\n opacity: 0,\n position: 'absolute'\n },\n\n /* Styles applied to the internal `Ripple` components `rippleVisible` class. */\n rippleVisible: {\n opacity: 0.3,\n transform: 'scale(1)',\n animation: \"$enter \".concat(DURATION, \"ms \").concat(theme.transitions.easing.easeInOut)\n },\n\n /* Styles applied to the internal `Ripple` components `ripplePulsate` class. */\n ripplePulsate: {\n animationDuration: \"\".concat(theme.transitions.duration.shorter, \"ms\")\n },\n\n /* Styles applied to the internal `Ripple` components `child` class. */\n child: {\n opacity: 1,\n display: 'block',\n width: '100%',\n height: '100%',\n borderRadius: '50%',\n backgroundColor: 'currentColor'\n },\n\n /* Styles applied to the internal `Ripple` components `childLeaving` class. */\n childLeaving: {\n opacity: 0,\n animation: \"$exit \".concat(DURATION, \"ms \").concat(theme.transitions.easing.easeInOut)\n },\n\n /* Styles applied to the internal `Ripple` components `childPulsate` class. */\n childPulsate: {\n position: 'absolute',\n left: 0,\n top: 0,\n animation: \"$pulsate 2500ms \".concat(theme.transitions.easing.easeInOut, \" 200ms infinite\")\n },\n '@keyframes enter': {\n '0%': {\n transform: 'scale(0)',\n opacity: 0.1\n },\n '100%': {\n transform: 'scale(1)',\n opacity: 0.3\n }\n },\n '@keyframes exit': {\n '0%': {\n opacity: 1\n },\n '100%': {\n opacity: 0\n }\n },\n '@keyframes pulsate': {\n '0%': {\n transform: 'scale(1)'\n },\n '50%': {\n transform: 'scale(0.92)'\n },\n '100%': {\n transform: 'scale(1)'\n }\n }\n };\n};\n/**\n * @ignore - internal component.\n *\n * TODO v5: Make private\n */\n\nvar TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(props, ref) {\n var _props$center = props.center,\n centerProp = _props$center === void 0 ? false : _props$center,\n classes = props.classes,\n className = props.className,\n other = _objectWithoutProperties(props, [\"center\", \"classes\", \"className\"]);\n\n var _React$useState = React.useState([]),\n ripples = _React$useState[0],\n setRipples = _React$useState[1];\n\n var nextKey = React.useRef(0);\n var rippleCallback = React.useRef(null);\n React.useEffect(function () {\n if (rippleCallback.current) {\n rippleCallback.current();\n rippleCallback.current = null;\n }\n }, [ripples]); // Used to filter out mouse emulated events on mobile.\n\n var ignoringMouseDown = React.useRef(false); // We use a timer in order to only show the ripples for touch \"click\" like events.\n // We don't want to display the ripple for touch scroll events.\n\n var startTimer = React.useRef(null); // This is the hook called once the previous timeout is ready.\n\n var startTimerCommit = React.useRef(null);\n var container = React.useRef(null);\n React.useEffect(function () {\n return function () {\n clearTimeout(startTimer.current);\n };\n }, []);\n var startCommit = React.useCallback(function (params) {\n var pulsate = params.pulsate,\n rippleX = params.rippleX,\n rippleY = params.rippleY,\n rippleSize = params.rippleSize,\n cb = params.cb;\n setRipples(function (oldRipples) {\n return [].concat(_toConsumableArray(oldRipples), [/*#__PURE__*/React.createElement(Ripple, {\n key: nextKey.current,\n classes: classes,\n timeout: DURATION,\n pulsate: pulsate,\n rippleX: rippleX,\n rippleY: rippleY,\n rippleSize: rippleSize\n })]);\n });\n nextKey.current += 1;\n rippleCallback.current = cb;\n }, [classes]);\n var start = React.useCallback(function () {\n var event = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var cb = arguments.length > 2 ? arguments[2] : undefined;\n var _options$pulsate = options.pulsate,\n pulsate = _options$pulsate === void 0 ? false : _options$pulsate,\n _options$center = options.center,\n center = _options$center === void 0 ? centerProp || options.pulsate : _options$center,\n _options$fakeElement = options.fakeElement,\n fakeElement = _options$fakeElement === void 0 ? false : _options$fakeElement;\n\n if (event.type === 'mousedown' && ignoringMouseDown.current) {\n ignoringMouseDown.current = false;\n return;\n }\n\n if (event.type === 'touchstart') {\n ignoringMouseDown.current = true;\n }\n\n var element = fakeElement ? null : container.current;\n var rect = element ? element.getBoundingClientRect() : {\n width: 0,\n height: 0,\n left: 0,\n top: 0\n }; // Get the size of the ripple\n\n var rippleX;\n var rippleY;\n var rippleSize;\n\n if (center || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {\n rippleX = Math.round(rect.width / 2);\n rippleY = Math.round(rect.height / 2);\n } else {\n var _ref = event.touches ? event.touches[0] : event,\n clientX = _ref.clientX,\n clientY = _ref.clientY;\n\n rippleX = Math.round(clientX - rect.left);\n rippleY = Math.round(clientY - rect.top);\n }\n\n if (center) {\n rippleSize = Math.sqrt((2 * Math.pow(rect.width, 2) + Math.pow(rect.height, 2)) / 3); // For some reason the animation is broken on Mobile Chrome if the size if even.\n\n if (rippleSize % 2 === 0) {\n rippleSize += 1;\n }\n } else {\n var sizeX = Math.max(Math.abs((element ? element.clientWidth : 0) - rippleX), rippleX) * 2 + 2;\n var sizeY = Math.max(Math.abs((element ? element.clientHeight : 0) - rippleY), rippleY) * 2 + 2;\n rippleSize = Math.sqrt(Math.pow(sizeX, 2) + Math.pow(sizeY, 2));\n } // Touche devices\n\n\n if (event.touches) {\n // check that this isn't another touchstart due to multitouch\n // otherwise we will only clear a single timer when unmounting while two\n // are running\n if (startTimerCommit.current === null) {\n // Prepare the ripple effect.\n startTimerCommit.current = function () {\n startCommit({\n pulsate: pulsate,\n rippleX: rippleX,\n rippleY: rippleY,\n rippleSize: rippleSize,\n cb: cb\n });\n }; // Delay the execution of the ripple effect.\n\n\n startTimer.current = setTimeout(function () {\n if (startTimerCommit.current) {\n startTimerCommit.current();\n startTimerCommit.current = null;\n }\n }, DELAY_RIPPLE); // We have to make a tradeoff with this value.\n }\n } else {\n startCommit({\n pulsate: pulsate,\n rippleX: rippleX,\n rippleY: rippleY,\n rippleSize: rippleSize,\n cb: cb\n });\n }\n }, [centerProp, startCommit]);\n var pulsate = React.useCallback(function () {\n start({}, {\n pulsate: true\n });\n }, [start]);\n var stop = React.useCallback(function (event, cb) {\n clearTimeout(startTimer.current); // The touch interaction occurs too quickly.\n // We still want to show ripple effect.\n\n if (event.type === 'touchend' && startTimerCommit.current) {\n event.persist();\n startTimerCommit.current();\n startTimerCommit.current = null;\n startTimer.current = setTimeout(function () {\n stop(event, cb);\n });\n return;\n }\n\n startTimerCommit.current = null;\n setRipples(function (oldRipples) {\n if (oldRipples.length > 0) {\n return oldRipples.slice(1);\n }\n\n return oldRipples;\n });\n rippleCallback.current = cb;\n }, []);\n React.useImperativeHandle(ref, function () {\n return {\n pulsate: pulsate,\n start: start,\n stop: stop\n };\n }, [pulsate, start, stop]);\n return /*#__PURE__*/React.createElement(\"span\", _extends({\n className: clsx(classes.root, className),\n ref: container\n }, other), /*#__PURE__*/React.createElement(TransitionGroup, {\n component: null,\n exit: true\n }, ripples));\n});\nprocess.env.NODE_ENV !== \"production\" ? TouchRipple.propTypes = {\n /**\n * If `true`, the ripple starts at the center of the component\n * rather than at the point of interaction.\n */\n center: PropTypes.bool,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object.isRequired,\n\n /**\n * @ignore\n */\n className: PropTypes.string\n} : void 0;\nexport default withStyles(styles, {\n flip: false,\n name: 'MuiTouchRipple'\n})( /*#__PURE__*/React.memo(TouchRipple));","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport * as ReactDOM from 'react-dom';\nimport clsx from 'clsx';\nimport { elementTypeAcceptingRef, refType } from '@material-ui/utils';\nimport useForkRef from '../utils/useForkRef';\nimport useEventCallback from '../utils/useEventCallback';\nimport withStyles from '../styles/withStyles';\nimport useIsFocusVisible from '../utils/useIsFocusVisible';\nimport TouchRipple from './TouchRipple';\nexport var styles = {\n /* Styles applied to the root element. */\n root: {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n position: 'relative',\n WebkitTapHighlightColor: 'transparent',\n backgroundColor: 'transparent',\n // Reset default value\n // We disable the focus ring for mouse, touch and keyboard users.\n outline: 0,\n border: 0,\n margin: 0,\n // Remove the margin in Safari\n borderRadius: 0,\n padding: 0,\n // Remove the padding in Firefox\n cursor: 'pointer',\n userSelect: 'none',\n verticalAlign: 'middle',\n '-moz-appearance': 'none',\n // Reset\n '-webkit-appearance': 'none',\n // Reset\n textDecoration: 'none',\n // So we take precedent over the style of a native element.\n color: 'inherit',\n '&::-moz-focus-inner': {\n borderStyle: 'none' // Remove Firefox dotted outline.\n\n },\n '&$disabled': {\n pointerEvents: 'none',\n // Disable link interactions\n cursor: 'default'\n },\n '@media print': {\n colorAdjust: 'exact'\n }\n },\n\n /* Pseudo-class applied to the root element if `disabled={true}`. */\n disabled: {},\n\n /* Pseudo-class applied to the root element if keyboard focused. */\n focusVisible: {}\n};\n/**\n * `ButtonBase` contains as few styles as possible.\n * It aims to be a simple building block for creating a button.\n * It contains a load of style reset and some focus/ripple logic.\n */\n\nvar ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {\n var action = props.action,\n buttonRefProp = props.buttonRef,\n _props$centerRipple = props.centerRipple,\n centerRipple = _props$centerRipple === void 0 ? false : _props$centerRipple,\n children = props.children,\n classes = props.classes,\n className = props.className,\n _props$component = props.component,\n component = _props$component === void 0 ? 'button' : _props$component,\n _props$disabled = props.disabled,\n disabled = _props$disabled === void 0 ? false : _props$disabled,\n _props$disableRipple = props.disableRipple,\n disableRipple = _props$disableRipple === void 0 ? false : _props$disableRipple,\n _props$disableTouchRi = props.disableTouchRipple,\n disableTouchRipple = _props$disableTouchRi === void 0 ? false : _props$disableTouchRi,\n _props$focusRipple = props.focusRipple,\n focusRipple = _props$focusRipple === void 0 ? false : _props$focusRipple,\n focusVisibleClassName = props.focusVisibleClassName,\n onBlur = props.onBlur,\n onClick = props.onClick,\n onFocus = props.onFocus,\n onFocusVisible = props.onFocusVisible,\n onKeyDown = props.onKeyDown,\n onKeyUp = props.onKeyUp,\n onMouseDown = props.onMouseDown,\n onMouseLeave = props.onMouseLeave,\n onMouseUp = props.onMouseUp,\n onTouchEnd = props.onTouchEnd,\n onTouchMove = props.onTouchMove,\n onTouchStart = props.onTouchStart,\n onDragLeave = props.onDragLeave,\n _props$tabIndex = props.tabIndex,\n tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex,\n TouchRippleProps = props.TouchRippleProps,\n _props$type = props.type,\n type = _props$type === void 0 ? 'button' : _props$type,\n other = _objectWithoutProperties(props, [\"action\", \"buttonRef\", \"centerRipple\", \"children\", \"classes\", \"className\", \"component\", \"disabled\", \"disableRipple\", \"disableTouchRipple\", \"focusRipple\", \"focusVisibleClassName\", \"onBlur\", \"onClick\", \"onFocus\", \"onFocusVisible\", \"onKeyDown\", \"onKeyUp\", \"onMouseDown\", \"onMouseLeave\", \"onMouseUp\", \"onTouchEnd\", \"onTouchMove\", \"onTouchStart\", \"onDragLeave\", \"tabIndex\", \"TouchRippleProps\", \"type\"]);\n\n var buttonRef = React.useRef(null);\n\n function getButtonNode() {\n // #StrictMode ready\n return ReactDOM.findDOMNode(buttonRef.current);\n }\n\n var rippleRef = React.useRef(null);\n\n var _React$useState = React.useState(false),\n focusVisible = _React$useState[0],\n setFocusVisible = _React$useState[1];\n\n if (disabled && focusVisible) {\n setFocusVisible(false);\n }\n\n var _useIsFocusVisible = useIsFocusVisible(),\n isFocusVisible = _useIsFocusVisible.isFocusVisible,\n onBlurVisible = _useIsFocusVisible.onBlurVisible,\n focusVisibleRef = _useIsFocusVisible.ref;\n\n React.useImperativeHandle(action, function () {\n return {\n focusVisible: function focusVisible() {\n setFocusVisible(true);\n buttonRef.current.focus();\n }\n };\n }, []);\n React.useEffect(function () {\n if (focusVisible && focusRipple && !disableRipple) {\n rippleRef.current.pulsate();\n }\n }, [disableRipple, focusRipple, focusVisible]);\n\n function useRippleHandler(rippleAction, eventCallback) {\n var skipRippleAction = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : disableTouchRipple;\n return useEventCallback(function (event) {\n if (eventCallback) {\n eventCallback(event);\n }\n\n var ignore = skipRippleAction;\n\n if (!ignore && rippleRef.current) {\n rippleRef.current[rippleAction](event);\n }\n\n return true;\n });\n }\n\n var handleMouseDown = useRippleHandler('start', onMouseDown);\n var handleDragLeave = useRippleHandler('stop', onDragLeave);\n var handleMouseUp = useRippleHandler('stop', onMouseUp);\n var handleMouseLeave = useRippleHandler('stop', function (event) {\n if (focusVisible) {\n event.preventDefault();\n }\n\n if (onMouseLeave) {\n onMouseLeave(event);\n }\n });\n var handleTouchStart = useRippleHandler('start', onTouchStart);\n var handleTouchEnd = useRippleHandler('stop', onTouchEnd);\n var handleTouchMove = useRippleHandler('stop', onTouchMove);\n var handleBlur = useRippleHandler('stop', function (event) {\n if (focusVisible) {\n onBlurVisible(event);\n setFocusVisible(false);\n }\n\n if (onBlur) {\n onBlur(event);\n }\n }, false);\n var handleFocus = useEventCallback(function (event) {\n // Fix for https://github.com/facebook/react/issues/7769\n if (!buttonRef.current) {\n buttonRef.current = event.currentTarget;\n }\n\n if (isFocusVisible(event)) {\n setFocusVisible(true);\n\n if (onFocusVisible) {\n onFocusVisible(event);\n }\n }\n\n if (onFocus) {\n onFocus(event);\n }\n });\n\n var isNonNativeButton = function isNonNativeButton() {\n var button = getButtonNode();\n return component && component !== 'button' && !(button.tagName === 'A' && button.href);\n };\n /**\n * IE 11 shim for https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/repeat\n */\n\n\n var keydownRef = React.useRef(false);\n var handleKeyDown = useEventCallback(function (event) {\n // Check if key is already down to avoid repeats being counted as multiple activations\n if (focusRipple && !keydownRef.current && focusVisible && rippleRef.current && event.key === ' ') {\n keydownRef.current = true;\n event.persist();\n rippleRef.current.stop(event, function () {\n rippleRef.current.start(event);\n });\n }\n\n if (event.target === event.currentTarget && isNonNativeButton() && event.key === ' ') {\n event.preventDefault();\n }\n\n if (onKeyDown) {\n onKeyDown(event);\n } // Keyboard accessibility for non interactive elements\n\n\n if (event.target === event.currentTarget && isNonNativeButton() && event.key === 'Enter' && !disabled) {\n event.preventDefault();\n\n if (onClick) {\n onClick(event);\n }\n }\n });\n var handleKeyUp = useEventCallback(function (event) {\n // calling preventDefault in keyUp on a \n *
\n * );\n * }\n * ```\n *\n * When the button is clicked the component will shift to the `'entering'` state\n * and stay there for 500ms (the value of `timeout`) before it finally switches\n * to `'entered'`.\n *\n * When `in` is `false` the same thing happens except the state moves from\n * `'exiting'` to `'exited'`.\n */\n\nvar Transition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(Transition, _React$Component);\n\n function Transition(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n var parentGroup = context; // In the context of a TransitionGroup all enters are really appears\n\n var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;\n var initialStatus;\n _this.appearStatus = null;\n\n if (props.in) {\n if (appear) {\n initialStatus = EXITED;\n _this.appearStatus = ENTERING;\n } else {\n initialStatus = ENTERED;\n }\n } else {\n if (props.unmountOnExit || props.mountOnEnter) {\n initialStatus = UNMOUNTED;\n } else {\n initialStatus = EXITED;\n }\n }\n\n _this.state = {\n status: initialStatus\n };\n _this.nextCallback = null;\n return _this;\n }\n\n Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n var nextIn = _ref.in;\n\n if (nextIn && prevState.status === UNMOUNTED) {\n return {\n status: EXITED\n };\n }\n\n return null;\n } // getSnapshotBeforeUpdate(prevProps) {\n // let nextStatus = null\n // if (prevProps !== this.props) {\n // const { status } = this.state\n // if (this.props.in) {\n // if (status !== ENTERING && status !== ENTERED) {\n // nextStatus = ENTERING\n // }\n // } else {\n // if (status === ENTERING || status === ENTERED) {\n // nextStatus = EXITING\n // }\n // }\n // }\n // return { nextStatus }\n // }\n ;\n\n var _proto = Transition.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.updateStatus(true, this.appearStatus);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var nextStatus = null;\n\n if (prevProps !== this.props) {\n var status = this.state.status;\n\n if (this.props.in) {\n if (status !== ENTERING && status !== ENTERED) {\n nextStatus = ENTERING;\n }\n } else {\n if (status === ENTERING || status === ENTERED) {\n nextStatus = EXITING;\n }\n }\n }\n\n this.updateStatus(false, nextStatus);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n _proto.getTimeouts = function getTimeouts() {\n var timeout = this.props.timeout;\n var exit, enter, appear;\n exit = enter = appear = timeout;\n\n if (timeout != null && typeof timeout !== 'number') {\n exit = timeout.exit;\n enter = timeout.enter; // TODO: remove fallback for next major\n\n appear = timeout.appear !== undefined ? timeout.appear : enter;\n }\n\n return {\n exit: exit,\n enter: enter,\n appear: appear\n };\n };\n\n _proto.updateStatus = function updateStatus(mounting, nextStatus) {\n if (mounting === void 0) {\n mounting = false;\n }\n\n if (nextStatus !== null) {\n // nextStatus will always be ENTERING or EXITING.\n this.cancelNextCallback();\n\n if (nextStatus === ENTERING) {\n this.performEnter(mounting);\n } else {\n this.performExit();\n }\n } else if (this.props.unmountOnExit && this.state.status === EXITED) {\n this.setState({\n status: UNMOUNTED\n });\n }\n };\n\n _proto.performEnter = function performEnter(mounting) {\n var _this2 = this;\n\n var enter = this.props.enter;\n var appearing = this.context ? this.context.isMounting : mounting;\n\n var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],\n maybeNode = _ref2[0],\n maybeAppearing = _ref2[1];\n\n var timeouts = this.getTimeouts();\n var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED\n // if we are mounting and running this it means appear _must_ be set\n\n if (!mounting && !enter || config.disabled) {\n this.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode);\n });\n return;\n }\n\n this.props.onEnter(maybeNode, maybeAppearing);\n this.safeSetState({\n status: ENTERING\n }, function () {\n _this2.props.onEntering(maybeNode, maybeAppearing);\n\n _this2.onTransitionEnd(enterTimeout, function () {\n _this2.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode, maybeAppearing);\n });\n });\n });\n };\n\n _proto.performExit = function performExit() {\n var _this3 = this;\n\n var exit = this.props.exit;\n var timeouts = this.getTimeouts();\n var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED\n\n if (!exit || config.disabled) {\n this.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n return;\n }\n\n this.props.onExit(maybeNode);\n this.safeSetState({\n status: EXITING\n }, function () {\n _this3.props.onExiting(maybeNode);\n\n _this3.onTransitionEnd(timeouts.exit, function () {\n _this3.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n });\n });\n };\n\n _proto.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n _proto.safeSetState = function safeSetState(nextState, callback) {\n // This shouldn't be necessary, but there are weird race conditions with\n // setState callbacks and unmounting in testing, so always make sure that\n // we can cancel any pending setState callbacks after we unmount.\n callback = this.setNextCallback(callback);\n this.setState(nextState, callback);\n };\n\n _proto.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {\n this.setNextCallback(handler);\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);\n var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;\n\n if (!node || doesNotHaveTimeoutOrListener) {\n setTimeout(this.nextCallback, 0);\n return;\n }\n\n if (this.props.addEndListener) {\n var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],\n maybeNode = _ref3[0],\n maybeNextCallback = _ref3[1];\n\n this.props.addEndListener(maybeNode, maybeNextCallback);\n }\n\n if (timeout != null) {\n setTimeout(this.nextCallback, timeout);\n }\n };\n\n _proto.render = function render() {\n var status = this.state.status;\n\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _this$props = this.props,\n children = _this$props.children,\n _in = _this$props.in,\n _mountOnEnter = _this$props.mountOnEnter,\n _unmountOnExit = _this$props.unmountOnExit,\n _appear = _this$props.appear,\n _enter = _this$props.enter,\n _exit = _this$props.exit,\n _timeout = _this$props.timeout,\n _addEndListener = _this$props.addEndListener,\n _onEnter = _this$props.onEnter,\n _onEntering = _this$props.onEntering,\n _onEntered = _this$props.onEntered,\n _onExit = _this$props.onExit,\n _onExiting = _this$props.onExiting,\n _onExited = _this$props.onExited,\n _nodeRef = _this$props.nodeRef,\n childProps = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\", \"mountOnEnter\", \"unmountOnExit\", \"appear\", \"enter\", \"exit\", \"timeout\", \"addEndListener\", \"onEnter\", \"onEntering\", \"onEntered\", \"onExit\", \"onExiting\", \"onExited\", \"nodeRef\"]);\n\n return (\n /*#__PURE__*/\n // allows for nested Transitions\n React.createElement(TransitionGroupContext.Provider, {\n value: null\n }, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))\n );\n };\n\n return Transition;\n}(React.Component);\n\nTransition.contextType = TransitionGroupContext;\nTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * A React reference to DOM element that need to transition:\n * https://stackoverflow.com/a/51127130/4671932\n *\n * - When `nodeRef` prop is used, `node` is not passed to callback functions\n * (e.g. `onEnter`) because user already has direct access to the node.\n * - When changing `key` prop of `Transition` in a `TransitionGroup` a new\n * `nodeRef` need to be provided to `Transition` with changed `key` prop\n * (see\n * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).\n */\n nodeRef: PropTypes.shape({\n current: typeof Element === 'undefined' ? PropTypes.any : PropTypes.instanceOf(Element)\n }),\n\n /**\n * A `function` child can be used instead of a React element. This function is\n * called with the current transition status (`'entering'`, `'entered'`,\n * `'exiting'`, `'exited'`), which can be used to apply context\n * specific props to a component.\n *\n * ```jsx\n * \n * {state => (\n * \n * )}\n * \n * ```\n */\n children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,\n\n /**\n * Show the component; triggers the enter or exit states\n */\n in: PropTypes.bool,\n\n /**\n * By default the child component is mounted immediately along with\n * the parent `Transition` component. If you want to \"lazy mount\" the component on the\n * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay\n * mounted, even on \"exited\", unless you also specify `unmountOnExit`.\n */\n mountOnEnter: PropTypes.bool,\n\n /**\n * By default the child component stays mounted after it reaches the `'exited'` state.\n * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.\n */\n unmountOnExit: PropTypes.bool,\n\n /**\n * By default the child component does not perform the enter transition when\n * it first mounts, regardless of the value of `in`. If you want this\n * behavior, set both `appear` and `in` to `true`.\n *\n * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop\n * > only adds an additional enter transition. However, in the\n * > `` component that first enter transition does result in\n * > additional `.appear-*` classes, that way you can choose to style it\n * > differently.\n */\n appear: PropTypes.bool,\n\n /**\n * Enable or disable enter transitions.\n */\n enter: PropTypes.bool,\n\n /**\n * Enable or disable exit transitions.\n */\n exit: PropTypes.bool,\n\n /**\n * The duration of the transition, in milliseconds.\n * Required unless `addEndListener` is provided.\n *\n * You may specify a single timeout for all transitions:\n *\n * ```jsx\n * timeout={500}\n * ```\n *\n * or individually:\n *\n * ```jsx\n * timeout={{\n * appear: 500,\n * enter: 300,\n * exit: 500,\n * }}\n * ```\n *\n * - `appear` defaults to the value of `enter`\n * - `enter` defaults to `0`\n * - `exit` defaults to `0`\n *\n * @type {number | { enter?: number, exit?: number, appear?: number }}\n */\n timeout: function timeout(props) {\n var pt = timeoutsShape;\n if (!props.addEndListener) pt = pt.isRequired;\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return pt.apply(void 0, [props].concat(args));\n },\n\n /**\n * Add a custom transition end trigger. Called with the transitioning\n * DOM node and a `done` callback. Allows for more fine grained transition end\n * logic. Timeouts are still used as a fallback if provided.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * ```jsx\n * addEndListener={(node, done) => {\n * // use the css transitionend event to mark the finish of a transition\n * node.addEventListener('transitionend', done, false);\n * }}\n * ```\n */\n addEndListener: PropTypes.func,\n\n /**\n * Callback fired before the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEnter: PropTypes.func,\n\n /**\n * Callback fired after the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * Callback fired after the \"entered\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired before the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExit: PropTypes.func,\n\n /**\n * Callback fired after the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExiting: PropTypes.func,\n\n /**\n * Callback fired after the \"exited\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExited: PropTypes.func\n} : {}; // Name the function so it is clearer in the documentation\n\nfunction noop() {}\n\nTransition.defaultProps = {\n in: false,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false,\n enter: true,\n exit: true,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\nTransition.UNMOUNTED = UNMOUNTED;\nTransition.EXITED = EXITED;\nTransition.ENTERING = ENTERING;\nTransition.ENTERED = ENTERED;\nTransition.EXITING = EXITING;\nexport default Transition;","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar util_1 = require(\"util\");\nvar utils_1 = require(\"./utils\");\nvar BULK_WRITE_ENDPOINT = 0x02;\nvar BULK_READ_ENDPOINT = 0x81;\nexports.DevicesIds = [\n { vendorId: 0x04dd, deviceId: 0x7202, name: 'Sharp IM-MT899H' },\n { vendorId: 0x04dd, deviceId: 0x9013, name: 'Sharp IM-DR400' },\n { vendorId: 0x04dd, deviceId: 0x9014, name: 'Sharp IM-DR80' },\n { vendorId: 0x054c, deviceId: 0x0034, name: 'Sony PCLK-XX' },\n { vendorId: 0x054c, deviceId: 0x0036, name: 'Sony' },\n { vendorId: 0x054c, deviceId: 0x0075, name: 'Sony MZ-N1' },\n { vendorId: 0x054c, deviceId: 0x007c, name: 'Sony' },\n { vendorId: 0x054c, deviceId: 0x0080, name: 'Sony LAM-1' },\n { vendorId: 0x054c, deviceId: 0x0081, name: 'Sony MDS-JB980' },\n { vendorId: 0x054c, deviceId: 0x0084, name: 'Sony MZ-N505' },\n { vendorId: 0x054c, deviceId: 0x0085, name: 'Sony MZ-S1' },\n { vendorId: 0x054c, deviceId: 0x0086, name: 'Sony MZ-N707' },\n { vendorId: 0x054c, deviceId: 0x008e, name: 'Sony CMT-C7NT' },\n { vendorId: 0x054c, deviceId: 0x0097, name: 'Sony PCGA-MDN1' },\n { vendorId: 0x054c, deviceId: 0x00ad, name: 'Sony CMT-L7HD' },\n { vendorId: 0x054c, deviceId: 0x00c6, name: 'Sony MZ-N10' },\n { vendorId: 0x054c, deviceId: 0x00c7, name: 'Sony MZ-N910' },\n { vendorId: 0x054c, deviceId: 0x00c8, name: 'Sony MZ-N710/NF810' },\n { vendorId: 0x054c, deviceId: 0x00c9, name: 'Sony MZ-N510/N610' },\n { vendorId: 0x054c, deviceId: 0x00ca, name: 'Sony MZ-NE410/NF520D' },\n { vendorId: 0x054c, deviceId: 0x00eb, name: 'Sony MZ-NE810/NE910' },\n { vendorId: 0x054c, deviceId: 0x0101, name: 'Sony LAM-10' },\n { vendorId: 0x054c, deviceId: 0x0113, name: 'Aiwa AM-NX1' },\n { vendorId: 0x054c, deviceId: 0x013f, name: 'Sony MDS-S500' },\n { vendorId: 0x054c, deviceId: 0x014c, name: 'Aiwa AM-NX9' },\n { vendorId: 0x054c, deviceId: 0x017e, name: 'Sony MZ-NH1' },\n { vendorId: 0x054c, deviceId: 0x0180, name: 'Sony MZ-NH3D' },\n { vendorId: 0x054c, deviceId: 0x0182, name: 'Sony MZ-NH900' },\n { vendorId: 0x054c, deviceId: 0x0184, name: 'Sony MZ-NH700/NH800' },\n { vendorId: 0x054c, deviceId: 0x0186, name: 'Sony MZ-NH600' },\n { vendorId: 0x054c, deviceId: 0x0187, name: 'Sony MZ-NH600D' },\n { vendorId: 0x054c, deviceId: 0x0188, name: 'Sony MZ-N920' },\n { vendorId: 0x054c, deviceId: 0x018a, name: 'Sony LAM-3' },\n { vendorId: 0x054c, deviceId: 0x01e9, name: 'Sony MZ-DH10P' },\n { vendorId: 0x054c, deviceId: 0x0219, name: 'Sony MZ-RH10' },\n { vendorId: 0x054c, deviceId: 0x021b, name: 'Sony MZ-RH710/MZ-RH910' },\n { vendorId: 0x054c, deviceId: 0x021d, name: 'Sony CMT-AH10' },\n { vendorId: 0x054c, deviceId: 0x022c, name: 'Sony CMT-AH10' },\n { vendorId: 0x054c, deviceId: 0x023c, name: 'Sony DS-HMD1' },\n { vendorId: 0x054c, deviceId: 0x0286, name: 'Sony MZ-RH1' },\n];\nvar NetMD = /** @class */ (function () {\n function NetMD(device, iface, logger) {\n if (iface === void 0) { iface = 0; }\n var _a;\n this.device = device;\n this.iface = iface;\n this.logger = logger;\n this.logger = (_a = logger) === null || _a === void 0 ? void 0 : _a.child({ class: 'NetMD' });\n }\n NetMD.prototype.init = function () {\n var _a, _b;\n return __awaiter(this, void 0, void 0, function () {\n var len;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0:\n (_a = this.logger) === null || _a === void 0 ? void 0 : _a.debug('Init');\n if (!!this.device.opened) return [3 /*break*/, 2];\n (_b = this.logger) === null || _b === void 0 ? void 0 : _b.debug('Opening device');\n return [4 /*yield*/, this.device.open()];\n case 1:\n _c.sent();\n _c.label = 2;\n case 2: return [4 /*yield*/, this.device.selectConfiguration(1)];\n case 3:\n _c.sent();\n return [4 /*yield*/, this.device.claimInterface(this.iface)];\n case 4:\n _c.sent();\n return [4 /*yield*/, this.getReplyLength()];\n case 5:\n len = _c.sent();\n if (!(len > 0)) return [3 /*break*/, 7];\n return [4 /*yield*/, this.readReply()];\n case 6:\n _c.sent();\n _c.label = 7;\n case 7: return [2 /*return*/];\n }\n });\n });\n };\n NetMD.prototype.getDeviceName = function () {\n var _a, _b;\n var _c = this.device, vendorId = _c.vendorId, productId = _c.productId;\n var deviceId = exports.DevicesIds.find(function (device) { return device.deviceId === productId && device.vendorId === vendorId; });\n return _b = (_a = deviceId) === null || _a === void 0 ? void 0 : _a.name, (_b !== null && _b !== void 0 ? _b : 'Unknown Device');\n };\n NetMD.prototype.finalize = function () {\n var _a, _b;\n return __awaiter(this, void 0, void 0, function () {\n var err_1;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0:\n (_a = this.logger) === null || _a === void 0 ? void 0 : _a.debug('Finalize');\n _c.label = 1;\n case 1:\n _c.trys.push([1, 5, , 6]);\n return [4 /*yield*/, this.device.reset()];\n case 2:\n _c.sent();\n return [4 /*yield*/, this.device.releaseInterface(this.iface)];\n case 3:\n _c.sent();\n return [4 /*yield*/, this.device.close()];\n case 4:\n _c.sent();\n return [3 /*break*/, 6];\n case 5:\n err_1 = _c.sent();\n (_b = this.logger) === null || _b === void 0 ? void 0 : _b.error({ err: err_1 });\n return [3 /*break*/, 6];\n case 6: return [2 /*return*/];\n }\n });\n });\n };\n NetMD.prototype.getReplyLength = function () {\n var _a, _b, _c;\n return __awaiter(this, void 0, void 0, function () {\n var result, len;\n return __generator(this, function (_d) {\n switch (_d.label) {\n case 0: return [4 /*yield*/, this.device.controlTransferIn({\n requestType: 'vendor',\n recipient: 'interface',\n request: 0x01,\n value: 0,\n index: 0,\n }, 4)];\n case 1:\n result = _d.sent();\n len = (_b = (_a = result.data) === null || _a === void 0 ? void 0 : _a.getUint8(2), (_b !== null && _b !== void 0 ? _b : 0));\n (_c = this.logger) === null || _c === void 0 ? void 0 : _c.debug({ action: 'getReplyLength', result: util_1.inspect(result), len: len });\n return [2 /*return*/, len];\n }\n });\n });\n };\n NetMD.prototype.sendCommand = function (command) {\n var _a;\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n (_a = this.logger) === null || _a === void 0 ? void 0 : _a.debug({ action: 'sendCommand', command: util_1.inspect(command) });\n return [4 /*yield*/, this.device.controlTransferOut({\n requestType: 'vendor',\n recipient: 'interface',\n request: 0x80,\n value: 0,\n index: 0,\n }, command)];\n case 1:\n _b.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n NetMD.prototype.readReply = function () {\n var _a;\n return __awaiter(this, void 0, void 0, function () {\n var len, i, result;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, this.getReplyLength()];\n case 1:\n len = _b.sent();\n i = 0;\n _b.label = 2;\n case 2:\n if (!(len === 0)) return [3 /*break*/, 5];\n return [4 /*yield*/, utils_1.sleep(NetMD.readReplyRetryIntervalInMsec * Math.pow(2, ~~(i / 10)))];\n case 3:\n _b.sent(); // Double wait time every 10 attempts\n return [4 /*yield*/, this.getReplyLength()];\n case 4:\n len = _b.sent();\n i++;\n return [3 /*break*/, 2];\n case 5: return [4 /*yield*/, this.device.controlTransferIn({\n requestType: 'vendor',\n recipient: 'interface',\n request: 0x81,\n value: 0,\n index: 0,\n }, len)];\n case 6:\n result = _b.sent();\n (_a = this.logger) === null || _a === void 0 ? void 0 : _a.debug({ action: 'readReply', result: util_1.inspect(result) });\n return [2 /*return*/, result];\n }\n });\n });\n };\n NetMD.prototype.readBulk = function (length) {\n return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.readBulkToArray(length)];\n case 1:\n result = _a.sent();\n return [2 /*return*/, new Uint8Array(result)];\n }\n });\n });\n };\n NetMD.prototype.readBulkToArray = function (length, chunksize) {\n if (chunksize === void 0) { chunksize = 0x10000; }\n return __awaiter(this, void 0, void 0, function () {\n var done, buffer, res;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n done = 0;\n buffer = new ArrayBuffer(0);\n _a.label = 1;\n case 1:\n if (!(done < length)) return [3 /*break*/, 3];\n return [4 /*yield*/, this.device.transferIn(this.iface, Math.min(length - done, length))];\n case 2:\n res = _a.sent();\n if (!res.data) {\n throw new Error('expected data');\n }\n done += res.data.byteLength; // TODO: handle this case\n buffer = utils_1.concatArrayBuffers(buffer, res.data.buffer);\n return [3 /*break*/, 1];\n case 3: return [2 /*return*/, buffer];\n }\n });\n });\n };\n NetMD.prototype.writeBulk = function (data) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.device.transferOut(BULK_WRITE_ENDPOINT, data)];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n NetMD.readReplyRetryIntervalInMsec = 10;\n return NetMD;\n}());\nexports.NetMD = NetMD;\n//# sourceMappingURL=netmd.js.map","var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n};\nvar __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }\nvar __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n};\nvar __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nvar _a, _b;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar query_utils_1 = require(\"./query-utils\");\nvar utils_1 = require(\"./utils\");\nvar jsbi_1 = __importDefault(require(\"jsbi\"));\nvar crypto_js_1 = __importDefault(require(\"crypto-js\"));\nvar Status;\n(function (Status) {\n // NetMD Protocol return status (first byte of request)\n Status[Status[\"control\"] = 0] = \"control\";\n Status[Status[\"status\"] = 1] = \"status\";\n Status[Status[\"specificInquiry\"] = 2] = \"specificInquiry\";\n Status[Status[\"notify\"] = 3] = \"notify\";\n Status[Status[\"generalInquiry\"] = 4] = \"generalInquiry\";\n // ... (first byte of response)\n Status[Status[\"notImplemented\"] = 8] = \"notImplemented\";\n Status[Status[\"accepted\"] = 9] = \"accepted\";\n Status[Status[\"rejected\"] = 10] = \"rejected\";\n Status[Status[\"inTransition\"] = 11] = \"inTransition\";\n Status[Status[\"implemented\"] = 12] = \"implemented\";\n Status[Status[\"changed\"] = 13] = \"changed\";\n Status[Status[\"interim\"] = 15] = \"interim\";\n})(Status || (Status = {}));\nvar Action;\n(function (Action) {\n Action[Action[\"play\"] = 117] = \"play\";\n Action[Action[\"pause\"] = 125] = \"pause\";\n Action[Action[\"fastForward\"] = 57] = \"fastForward\";\n Action[Action[\"rewind\"] = 73] = \"rewind\";\n})(Action || (Action = {}));\nvar Track;\n(function (Track) {\n Track[Track[\"previous\"] = 2] = \"previous\";\n Track[Track[\"next\"] = 32769] = \"next\";\n Track[Track[\"restart\"] = 1] = \"restart\";\n})(Track || (Track = {}));\nvar DiscFormat;\n(function (DiscFormat) {\n DiscFormat[DiscFormat[\"lp4\"] = 0] = \"lp4\";\n DiscFormat[DiscFormat[\"lp2\"] = 2] = \"lp2\";\n DiscFormat[DiscFormat[\"spMono\"] = 4] = \"spMono\";\n DiscFormat[DiscFormat[\"spStereo\"] = 6] = \"spStereo\";\n})(DiscFormat = exports.DiscFormat || (exports.DiscFormat = {}));\nvar Wireformat;\n(function (Wireformat) {\n Wireformat[Wireformat[\"pcm\"] = 0] = \"pcm\";\n Wireformat[Wireformat[\"l105kbps\"] = 144] = \"l105kbps\";\n Wireformat[Wireformat[\"lp2\"] = 148] = \"lp2\";\n Wireformat[Wireformat[\"lp4\"] = 168] = \"lp4\";\n})(Wireformat = exports.Wireformat || (exports.Wireformat = {}));\nvar Encoding;\n(function (Encoding) {\n Encoding[Encoding[\"sp\"] = 144] = \"sp\";\n Encoding[Encoding[\"lp2\"] = 146] = \"lp2\";\n Encoding[Encoding[\"lp4\"] = 147] = \"lp4\";\n})(Encoding = exports.Encoding || (exports.Encoding = {}));\nvar Channels;\n(function (Channels) {\n Channels[Channels[\"mono\"] = 1] = \"mono\";\n Channels[Channels[\"stereo\"] = 0] = \"stereo\";\n})(Channels = exports.Channels || (exports.Channels = {}));\nvar ChannelCount;\n(function (ChannelCount) {\n ChannelCount[ChannelCount[\"mono\"] = 1] = \"mono\";\n ChannelCount[ChannelCount[\"stereo\"] = 2] = \"stereo\";\n})(ChannelCount = exports.ChannelCount || (exports.ChannelCount = {}));\nvar TrackFlag;\n(function (TrackFlag) {\n TrackFlag[TrackFlag[\"protected\"] = 3] = \"protected\";\n TrackFlag[TrackFlag[\"unprotected\"] = 0] = \"unprotected\";\n})(TrackFlag = exports.TrackFlag || (exports.TrackFlag = {}));\nvar DiscFlag;\n(function (DiscFlag) {\n DiscFlag[DiscFlag[\"writable\"] = 16] = \"writable\";\n DiscFlag[DiscFlag[\"writeProtected\"] = 64] = \"writeProtected\";\n})(DiscFlag = exports.DiscFlag || (exports.DiscFlag = {}));\nexports.FrameSize = (_a = {},\n _a[Wireformat.pcm] = 2048,\n _a[Wireformat.lp2] = 192,\n _a[Wireformat.l105kbps] = 152,\n _a[Wireformat.lp4] = 96,\n _a);\n// https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work\n// I could have used the make-error library\nvar NetMDError = /** @class */ (function (_super) {\n __extends(NetMDError, _super);\n function NetMDError(m) {\n var _this = _super.call(this, m) || this;\n Object.setPrototypeOf(_this, NetMDError.prototype);\n return _this;\n }\n return NetMDError;\n}(Error));\nvar NetMDNotImplemented = /** @class */ (function (_super) {\n __extends(NetMDNotImplemented, _super);\n function NetMDNotImplemented(m) {\n var _this = _super.call(this, m) || this;\n Object.setPrototypeOf(_this, NetMDNotImplemented.prototype);\n return _this;\n }\n return NetMDNotImplemented;\n}(NetMDError));\nvar NetMDRejected = /** @class */ (function (_super) {\n __extends(NetMDRejected, _super);\n function NetMDRejected(m) {\n var _this = _super.call(this, m) || this;\n Object.setPrototypeOf(_this, NetMDRejected.prototype);\n return _this;\n }\n return NetMDRejected;\n}(NetMDError));\nvar NetMDInterface = /** @class */ (function () {\n function NetMDInterface(netMd, logger) {\n var _a;\n this.netMd = netMd;\n this.logger = logger;\n this.logger = (_a = logger) === null || _a === void 0 ? void 0 : _a.child({ class: 'NetMDInterface' });\n }\n NetMDInterface.prototype.sendQuery = function (query, test, acceptInterim) {\n if (test === void 0) { test = false; }\n if (acceptInterim === void 0) { acceptInterim = false; }\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.sendCommand(query, test)];\n case 1:\n _a.sent();\n return [2 /*return*/, this.readReply(acceptInterim)];\n }\n });\n });\n };\n NetMDInterface.prototype.sendCommand = function (query, test) {\n if (test === void 0) { test = false; }\n return __awaiter(this, void 0, void 0, function () {\n var statusByte;\n return __generator(this, function (_a) {\n if (test) {\n statusByte = new Uint8Array([Status.specificInquiry]).buffer;\n }\n else {\n statusByte = new Uint8Array([Status.control]).buffer;\n }\n this.netMd.sendCommand(utils_1.concatArrayBuffers(statusByte, query));\n return [2 /*return*/];\n });\n });\n };\n NetMDInterface.prototype.sendHandshake = function (handshake) {\n return __awaiter(this, void 0, void 0, function () {\n var hs;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n hs = query_utils_1.formatQuery(handshake);\n return [4 /*yield*/, this.sendQuery(hs)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n NetMDInterface.prototype.readReply = function (acceptInterim) {\n if (acceptInterim === void 0) { acceptInterim = false; }\n return __awaiter(this, void 0, void 0, function () {\n var currentAttempt, data, status;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n currentAttempt = 0;\n _a.label = 1;\n case 1:\n if (!(currentAttempt < NetMDInterface.maxInterimReadAttempts)) return [3 /*break*/, 8];\n return [4 /*yield*/, this.netMd.readReply()];\n case 2:\n (data = (_a.sent()).data);\n if (data === undefined) {\n throw new Error('unexpected undefined value in readReply');\n }\n status = data.getUint8(0);\n if (!(status === Status.notImplemented)) return [3 /*break*/, 3];\n throw new NetMDNotImplemented('Not implemented');\n case 3:\n if (!(status === Status.rejected)) return [3 /*break*/, 4];\n throw new NetMDRejected('Rejected');\n case 4:\n if (!(status === Status.interim && !acceptInterim)) return [3 /*break*/, 6];\n return [4 /*yield*/, utils_1.sleep(NetMDInterface.interimResponseRetryIntervalInMs * (Math.pow(2, currentAttempt) - 1))];\n case 5:\n _a.sent();\n currentAttempt += 1;\n return [3 /*break*/, 1]; // Retry\n case 6:\n if ([Status.accepted, Status.implemented, Status.interim].indexOf(status) < -1) {\n throw new NetMDNotImplemented(\"Unknown return status: \" + status);\n }\n else {\n return [3 /*break*/, 8]; // Success!\n }\n _a.label = 7;\n case 7: return [3 /*break*/, 1];\n case 8:\n if (currentAttempt >= NetMDInterface.maxInterimReadAttempts) {\n throw new NetMDRejected('Max attempts read attempts for interim status reached');\n }\n return [2 /*return*/, data.buffer.slice(1)];\n }\n });\n });\n };\n NetMDInterface.prototype.acquire = function () {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n query = query_utils_1.formatQuery('ff 010c ffff ffff ffff ffff ffff ffff');\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n query_utils_1.scanQuery(reply, 'ff 010c ffff ffff ffff ffff ffff ffff');\n return [2 /*return*/];\n }\n });\n });\n };\n NetMDInterface.prototype.release = function () {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n query = query_utils_1.formatQuery('ff 0100 ffff ffff ffff ffff ffff ffff');\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n query_utils_1.scanQuery(reply, 'ff 0100 ffff ffff ffff ffff ffff ffff');\n return [2 /*return*/];\n }\n });\n });\n };\n NetMDInterface.prototype.getStatus = function () {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply, res;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.sendHandshake('1808 8000 0100')];\n case 1:\n _a.sent();\n query = query_utils_1.formatQuery('1809 8001 0230 8800 0030 8804 00 ff00 00000000');\n return [4 /*yield*/, this.sendQuery(query)];\n case 2:\n reply = _a.sent();\n res = query_utils_1.scanQuery(reply, '1809 8001 0230 8800 0030 8804 00 1000 00090000 %x');\n return [2 /*return*/, res[0]];\n }\n });\n });\n };\n NetMDInterface.prototype.isDiscPresent = function () {\n return __awaiter(this, void 0, void 0, function () {\n var status;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.getStatus()];\n case 1:\n status = _a.sent();\n return [2 /*return*/, status[4] === 0x40];\n }\n });\n });\n };\n NetMDInterface.prototype.getOperatingStatus = function () {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply, res;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: \n // WARNING: Does not work for all devices. See https://github.com/cybercase/webminidisc/issues/21\n return [4 /*yield*/, this.sendHandshake('1808 8000 0100')];\n case 1:\n // WARNING: Does not work for all devices. See https://github.com/cybercase/webminidisc/issues/21\n _a.sent();\n query = query_utils_1.formatQuery('1809 8001 0330 8802 0030 8805 0030 8806 00 ff00 00000000');\n return [4 /*yield*/, this.sendQuery(query)];\n case 2:\n reply = _a.sent();\n res = query_utils_1.scanQuery(reply, '1809 8001 0330 8802 0030 8805 0030 8806 00 1000 00%?0000 0006 8806 0002 %w')[0];\n return [2 /*return*/, jsbi_1.default.toNumber(res)];\n }\n });\n });\n };\n NetMDInterface.prototype._getPlaybackStatus = function (p1, p2) {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply, res;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n query = query_utils_1.formatQuery('1809 8001 0330 %w 0030 8805 0030 %w 00 ff00 00000000', p1, p2);\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n res = query_utils_1.scanQuery(reply, '1809 8001 0330 %?%? %?%? %?%? %?%? %?%? %? 1000 00%?0000 %x');\n return [2 /*return*/, res[0]];\n }\n });\n });\n };\n NetMDInterface.prototype.getPlaybackStatus1 = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this._getPlaybackStatus(0x8801, 0x8807)];\n });\n });\n };\n NetMDInterface.prototype.getPlaybackStatus2 = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this._getPlaybackStatus(0x8802, 0x8806)];\n });\n });\n };\n NetMDInterface.prototype.getPosition = function () {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply, err_1, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n query = query_utils_1.formatQuery('1809 8001 0430 8802 0030 8805 0030 0003 0030 0002 00 ff00 00000000');\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, this.sendQuery(query)];\n case 2:\n reply = _a.sent();\n return [3 /*break*/, 4];\n case 3:\n err_1 = _a.sent();\n if (err_1 instanceof NetMDRejected) {\n return [2 /*return*/, null];\n }\n else {\n throw err_1;\n }\n return [3 /*break*/, 4];\n case 4:\n result = query_utils_1.scanQuery(reply, \"1809 8001 0430 %?%? %?%? %?%? \" + \"%?%? %?%? %?%? %?%? %? %?00 00%?0000 \" + \"000b 0002 0007 00 %w %b %b %b %b\");\n result[0] = jsbi_1.default.toNumber(result[0]);\n result[1] = query_utils_1.BCD2int(jsbi_1.default.toNumber(result[1]));\n result[2] = query_utils_1.BCD2int(jsbi_1.default.toNumber(result[2]));\n result[3] = query_utils_1.BCD2int(jsbi_1.default.toNumber(result[3]));\n result[4] = query_utils_1.BCD2int(jsbi_1.default.toNumber(result[4]));\n return [2 /*return*/, result];\n }\n });\n });\n };\n NetMDInterface.prototype._play = function (action) {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n query = query_utils_1.formatQuery('18c3 ff %b 000000', action);\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n query_utils_1.scanQuery(reply, '18c3 00 %b 000000');\n return [2 /*return*/];\n }\n });\n });\n };\n NetMDInterface.prototype.play = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._play(Action.play)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n NetMDInterface.prototype.fast_forward = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._play(Action.fastForward)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n NetMDInterface.prototype.rewind = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._play(Action.rewind)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n NetMDInterface.prototype.pause = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._play(Action.pause)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n NetMDInterface.prototype.stop = function () {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n query = query_utils_1.formatQuery('18c5 ff 00000000');\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n query_utils_1.scanQuery(reply, '18c5 00 00000000');\n return [2 /*return*/];\n }\n });\n });\n };\n NetMDInterface.prototype.gotoTrack = function (track) {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply, res;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n query = query_utils_1.formatQuery('1850 ff010000 0000 %w', track);\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n res = query_utils_1.scanQuery(reply, '1850 00010000 0000 %w')[0];\n return [2 /*return*/, jsbi_1.default.toNumber(res)];\n }\n });\n });\n };\n NetMDInterface.prototype.gotoTime = function (track, hour, minute, second, frame) {\n if (hour === void 0) { hour = 0; }\n if (minute === void 0) { minute = 0; }\n if (second === void 0) { second = 0; }\n if (frame === void 0) { frame = 0; }\n return __awaiter(this, void 0, void 0, function () {\n var query, reply, res;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n query = query_utils_1.formatQuery('1850 ff000000 0000 %w %b%b%b%b', track, query_utils_1.int2BCD(hour), query_utils_1.int2BCD(minute), query_utils_1.int2BCD(second), query_utils_1.int2BCD(frame));\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n res = query_utils_1.scanQuery(reply, '1850 00000000 %?%? %w %b%b%b%b');\n return [2 /*return*/, res.map(function (j) { return jsbi_1.default.toNumber(j); })];\n }\n });\n });\n };\n NetMDInterface.prototype._trackChange = function (direction) {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n query = query_utils_1.formatQuery('1850 ff10 00000000 %w', direction);\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n return [2 /*return*/, query_utils_1.scanQuery(reply, '1850 0010 00000000 %?%?')];\n }\n });\n });\n };\n NetMDInterface.prototype.nextTrack = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._trackChange(Track.next)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n NetMDInterface.prototype.previousTrack = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._trackChange(Track.previous)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n NetMDInterface.prototype.restartTrack = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._trackChange(Track.restart)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n NetMDInterface.prototype.eraseDisc = function () {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n query = query_utils_1.formatQuery('1840 ff 0000');\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n query_utils_1.scanQuery(reply, '1840 00 0000');\n return [2 /*return*/];\n }\n });\n });\n };\n NetMDInterface.prototype.syncTOC = function () {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n query = query_utils_1.formatQuery('1808 10180200 00');\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n query_utils_1.scanQuery(reply, '1808 10180200 00');\n return [2 /*return*/];\n }\n });\n });\n };\n NetMDInterface.prototype.cacheTOC = function () {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n query = query_utils_1.formatQuery('1808 10180203 00');\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n query_utils_1.scanQuery(reply, '1808 10180203 00');\n return [2 /*return*/];\n }\n });\n });\n };\n NetMDInterface.prototype.getDiscFlags = function () {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply, res;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n query = query_utils_1.formatQuery('1806 01101000 ff00 0001000b');\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n res = query_utils_1.scanQuery(reply, '1806 01101000 1000 0001000b %b');\n return [2 /*return*/, jsbi_1.default.toNumber(res[0])];\n }\n });\n });\n };\n NetMDInterface.prototype.getTrackCount = function () {\n var _a;\n return __awaiter(this, void 0, void 0, function () {\n var query, reply, res1, data, res2;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, this.sendHandshake('180810 1001 0100')];\n case 1:\n _b.sent();\n query = query_utils_1.formatQuery('1806 02101001 3000 1000 ff00 00000000');\n return [4 /*yield*/, this.sendQuery(query)];\n case 2:\n reply = _b.sent();\n res1 = query_utils_1.scanQuery(reply, '1806 02101001 %?%? %?%? 1000 00%?0000 %x');\n data = String.fromCharCode.apply(String, __spread(res1[0]));\n utils_1.assert(data.length === 6, \"Expected length === 6 for data\");\n utils_1.assert(data.substring(0, 5) === \"\\0\\u0010\\0\\u0002\\0\", \"Wrong header in data response\");\n res2 = data.charCodeAt(5);\n (_a = this.logger) === null || _a === void 0 ? void 0 : _a.debug({ method: \"getTrackCount\", result: res2 });\n return [2 /*return*/, res2];\n }\n });\n });\n };\n NetMDInterface.prototype._getDiscTitle = function (wchar) {\n if (wchar === void 0) { wchar = false; }\n var _a;\n return __awaiter(this, void 0, void 0, function () {\n var wcharValue, done, remaining, total, result, chunkSize, chunk, query, reply, res_1, res_2, res;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (wchar) {\n wcharValue = 1;\n }\n else {\n wcharValue = 0;\n }\n done = 0;\n remaining = 0;\n total = 1;\n result = [];\n _b.label = 1;\n case 1:\n if (!(done < total)) return [3 /*break*/, 3];\n query = query_utils_1.formatQuery('1806 02201801 00%b 3000 0a00 ff00 %w%w', wcharValue, remaining, done);\n return [4 /*yield*/, this.sendQuery(query)];\n case 2:\n reply = _b.sent();\n if (remaining === 0) {\n res_1 = query_utils_1.scanQuery(reply, '1806 02201801 00%? 3000 0a00 1000 %w0000 %?%?000a %w %*');\n chunkSize = jsbi_1.default.toNumber(res_1[0]);\n total = jsbi_1.default.toNumber(res_1[1]);\n chunk = utils_1.decodeFromSJIS(res_1[2]);\n chunkSize -= 6;\n }\n else {\n res_2 = query_utils_1.scanQuery(reply, '1806 02201801 00%? 3000 0a00 1000 %w%?%? %*');\n chunkSize = jsbi_1.default.toNumber(res_2[0]);\n chunk = utils_1.decodeFromSJIS(res_2[1]);\n }\n result.push(chunk);\n done += chunkSize;\n remaining = total - done;\n return [3 /*break*/, 1];\n case 3:\n res = result.join('');\n (_a = this.logger) === null || _a === void 0 ? void 0 : _a.debug({ method: \"_getDiscTitle\", result: res });\n return [2 /*return*/, res];\n }\n });\n });\n };\n NetMDInterface.prototype.getDiscTitle = function (wchar) {\n if (wchar === void 0) { wchar = false; }\n return __awaiter(this, void 0, void 0, function () {\n var title, firstEntry;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._getDiscTitle(wchar)];\n case 1:\n title = _a.sent();\n if (title.endsWith('//')) {\n firstEntry = title.split('//')[0];\n if (firstEntry.startsWith('0;')) {\n title = firstEntry.substring(2);\n }\n else {\n title = '';\n }\n }\n return [2 /*return*/, title];\n }\n });\n });\n };\n NetMDInterface.prototype.getTrackGroupList = function () {\n return __awaiter(this, void 0, void 0, function () {\n var rawTitle, groupList, trackDict, trackCount, result, _a, _b, _c, groupIndex, group, _d, trackRange, groupName, trackMinStr, trackMaxStr, _e, trackMin, trackMax, trackList_1, track, trackList;\n var e_1, _f, _g;\n return __generator(this, function (_h) {\n switch (_h.label) {\n case 0: return [4 /*yield*/, this._getDiscTitle()];\n case 1:\n rawTitle = _h.sent();\n groupList = rawTitle.split('//');\n trackDict = {};\n return [4 /*yield*/, this.getTrackCount()];\n case 2:\n trackCount = _h.sent();\n result = [];\n try {\n for (_a = __values(groupList.entries()), _b = _a.next(); !_b.done; _b = _a.next()) {\n _c = __read(_b.value, 2), groupIndex = _c[0], group = _c[1];\n if (group === '') {\n continue;\n }\n if (group.startsWith('0;') || group.indexOf(';') === -1 || rawTitle.indexOf('//') === -1) {\n continue;\n }\n _d = __read(group.split(';', 1), 1), trackRange = _d[0];\n groupName = group.substring(trackRange.length + 1);\n trackMinStr = void 0, trackMaxStr = void 0;\n if (trackRange.indexOf('-') >= 0) {\n _g = __read(trackRange.split('-'), 2), trackMinStr = _g[0], trackMaxStr = _g[1];\n }\n else {\n trackMinStr = trackMaxStr = trackRange;\n }\n _e = __read([Number.parseInt(trackMinStr, 10), Number.parseInt(trackMaxStr, 10)], 2), trackMin = _e[0], trackMax = _e[1];\n trackMax = Math.min(trackMax, trackCount); // Groups might not updated when a song is deleted\n utils_1.assert(0 <= trackMin);\n utils_1.assert(trackMin <= trackMax);\n trackList_1 = [];\n for (track = trackMin - 1; track < trackMax; track++) {\n if (track in trackDict) {\n throw new Error(\"Track \" + track + \" is in 2 groups: \" + trackDict[track][0]);\n }\n trackDict[track] = [groupName, groupIndex];\n trackList_1.push(track);\n }\n result.push([groupName, trackList_1]);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_b && !_b.done && (_f = _a.return)) _f.call(_a);\n }\n finally { if (e_1) throw e_1.error; }\n }\n trackList = __spread(Array(trackCount).keys()).filter(function (x) { return !(x in trackDict); });\n if (trackList.length > 0) {\n result.unshift([null, trackList]);\n }\n return [2 /*return*/, result];\n }\n });\n });\n };\n NetMDInterface.prototype.getTrackTitle = function (track, wchar) {\n if (wchar === void 0) { wchar = false; }\n return __awaiter(this, void 0, void 0, function () {\n var wcharValue, query, reply, res;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (wchar) {\n wcharValue = 3;\n }\n else {\n wcharValue = 2;\n }\n query = query_utils_1.formatQuery('1806 022018%b %w 3000 0a00 ff00 00000000', wcharValue, track);\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n res = query_utils_1.scanQuery(reply, '1806 022018%? %?%? %?%? %?%? 1000 00%?0000 00%?000a %x');\n return [2 /*return*/, utils_1.decodeFromSJIS(res[0])];\n }\n });\n });\n };\n NetMDInterface.prototype.setDiscTitle = function (title, wchar) {\n if (wchar === void 0) { wchar = false; }\n return __awaiter(this, void 0, void 0, function () {\n var wcharValue, oldLen, _a, newLength, query, reply;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = utils_1.getLengthAfterEncodingToSJIS;\n return [4 /*yield*/, this.getDiscTitle()];\n case 1:\n oldLen = _a.apply(void 0, [_b.sent()]);\n newLength = utils_1.getLengthAfterEncodingToSJIS(title);\n if (wchar) {\n wcharValue = 1;\n }\n else {\n wcharValue = 0;\n }\n return [4 /*yield*/, this.sendHandshake('180810 1801 0100')];\n case 2:\n _b.sent();\n return [4 /*yield*/, this.sendHandshake('180810 1801 0000')];\n case 3:\n _b.sent();\n return [4 /*yield*/, this.sendHandshake('180810 1801 0300')];\n case 4:\n _b.sent();\n query = query_utils_1.formatQuery('1807 02201801 00%b 3000 0a00 5000 %w 0000 %w %*', wcharValue, newLength, oldLen, utils_1.encodeToSJIS(title));\n return [4 /*yield*/, this.sendQuery(query)];\n case 5:\n reply = _b.sent();\n query_utils_1.scanQuery(reply, '1807 02201801 00%? 3000 0a00 5000 %?%? 0000 %?%?');\n return [4 /*yield*/, this.sendHandshake('180810 1801 0000')];\n case 6:\n _b.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n NetMDInterface.prototype.setTrackTitle = function (track, title, wchar) {\n if (wchar === void 0) { wchar = false; }\n return __awaiter(this, void 0, void 0, function () {\n var wcharValue, oldLen, newLen, _a, err_2, query, reply;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (wchar) {\n wcharValue = 3;\n }\n else {\n wcharValue = 2;\n }\n newLen = utils_1.getLengthAfterEncodingToSJIS(title);\n _b.label = 1;\n case 1:\n _b.trys.push([1, 3, , 4]);\n _a = utils_1.getLengthAfterEncodingToSJIS;\n return [4 /*yield*/, this.getTrackTitle(track)];\n case 2:\n oldLen = _a.apply(void 0, [_b.sent()]);\n return [3 /*break*/, 4];\n case 3:\n err_2 = _b.sent();\n if (err_2 instanceof NetMDRejected) {\n oldLen = 0;\n }\n else {\n throw err_2;\n }\n return [3 /*break*/, 4];\n case 4: return [4 /*yield*/, this.sendHandshake('180810 1802 0000')];\n case 5:\n _b.sent();\n return [4 /*yield*/, this.sendHandshake('180810 1802 0300')];\n case 6:\n _b.sent();\n query = query_utils_1.formatQuery('1807 022018%b %w 3000 0a00 5000 %w 0000 %w %*', wcharValue, track, newLen, oldLen, utils_1.encodeToSJIS(title));\n return [4 /*yield*/, this.sendQuery(query)];\n case 7:\n reply = _b.sent();\n query_utils_1.scanQuery(reply, '1807 022018%? %?%? 3000 0a00 5000 %?%? 0000 %?%?');\n return [2 /*return*/];\n }\n });\n });\n };\n NetMDInterface.prototype.eraseTrack = function (track) {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n query = query_utils_1.formatQuery('1840 ff01 00 201001 %w', track);\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n NetMDInterface.prototype.moveTrack = function (source, dest) {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.sendHandshake('180810 1001 0000')];\n case 1:\n _a.sent();\n query = query_utils_1.formatQuery('1843 ff00 00 201001 %w 201001 %w', source, dest);\n return [4 /*yield*/, this.sendQuery(query)];\n case 2:\n reply = _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n NetMDInterface.prototype._getTrackInfo = function (track, p1, p2) {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply, res;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.sendHandshake('180810 1001 0100')];\n case 1:\n _a.sent();\n query = query_utils_1.formatQuery('1806 02201001 %w %w %w ff00 00000000', track, p1, p2);\n return [4 /*yield*/, this.sendQuery(query)];\n case 2:\n reply = _a.sent();\n res = query_utils_1.scanQuery(reply, '1806 02201001 %?%? %?%? %?%? 1000 00%?0000 %x');\n return [2 /*return*/, String.fromCharCode.apply(String, __spread(res[0]))];\n }\n });\n });\n };\n NetMDInterface.prototype.getTrackLength = function (track) {\n return __awaiter(this, void 0, void 0, function () {\n var rawValue, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._getTrackInfo(track, 0x3000, 0x0100)];\n case 1:\n rawValue = _a.sent();\n result = query_utils_1.scanQuery(utils_1.stringToCharCodeArray(rawValue), '0001 0006 0000 %b %b %b %b');\n result[0] = query_utils_1.BCD2int(jsbi_1.default.toNumber(result[0]));\n result[1] = query_utils_1.BCD2int(jsbi_1.default.toNumber(result[1]));\n result[2] = query_utils_1.BCD2int(jsbi_1.default.toNumber(result[2]));\n result[3] = query_utils_1.BCD2int(jsbi_1.default.toNumber(result[3]));\n return [2 /*return*/, result];\n }\n });\n });\n };\n NetMDInterface.prototype.getTrackEncoding = function (track) {\n return __awaiter(this, void 0, void 0, function () {\n var rawValue, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._getTrackInfo(track, 0x3080, 0x0700)];\n case 1:\n rawValue = _a.sent();\n result = query_utils_1.scanQuery(utils_1.stringToCharCodeArray(rawValue), '8007 0004 0110 %b %b');\n return [2 /*return*/, result.map(function (i) { return jsbi_1.default.toNumber(i); })];\n }\n });\n });\n };\n NetMDInterface.prototype.getTrackFlags = function (track) {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply, res;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n query = query_utils_1.formatQuery('1806 01201001 %w ff00 00010008', track);\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n res = query_utils_1.scanQuery(reply, '1806 01201001 %?%? 10 00 00010008 %b')[0];\n return [2 /*return*/, jsbi_1.default.toNumber(res)];\n }\n });\n });\n };\n NetMDInterface.prototype.getDiscCapacity = function () {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply, result, res, i, offset, tmp;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.sendHandshake('180810 1000 0100')];\n case 1:\n _a.sent();\n query = query_utils_1.formatQuery('1806 02101000 3080 0300 ff00 00000000');\n return [4 /*yield*/, this.sendQuery(query)];\n case 2:\n reply = _a.sent();\n result = [];\n res = query_utils_1.scanQuery(reply, '1806 02101000 3080 0300 1000 001d0000 001b 8003 0017 8000 0005 %w %b %b %b 0005 %w %b %b %b 0005 %w %b %b %b');\n for (i = 0; i < 3; i++) {\n offset = i * 4;\n tmp = [\n query_utils_1.BCD2int(jsbi_1.default.toNumber(res[offset + 0])),\n query_utils_1.BCD2int(jsbi_1.default.toNumber(res[offset + 1])),\n query_utils_1.BCD2int(jsbi_1.default.toNumber(res[offset + 2])),\n query_utils_1.BCD2int(jsbi_1.default.toNumber(res[offset + 3])),\n ];\n result.push(tmp);\n }\n return [2 /*return*/, result];\n }\n });\n });\n };\n NetMDInterface.prototype.getRecordingParameters = function () {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply, res;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n query = query_utils_1.formatQuery('1809 8001 0330 8801 0030 8805 0030 8807 00 ff00 00000000');\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n res = query_utils_1.scanQuery(reply, '1809 8001 0330 8801 0030 8805 0030 8807 00 1000 000e0000 000c 8805 0008 80e0 0110 %b %b 4000');\n return [2 /*return*/, res.map(function (i) { return jsbi_1.default.toNumber(i); })];\n }\n });\n });\n };\n // TODO: saveTrackToStream\n NetMDInterface.prototype.disableNewTrackProtection = function (val) {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n query = query_utils_1.formatQuery('1800 080046 f0030103 2b ff %w', val);\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n query_utils_1.scanQuery(reply, '1800 080046 f0030103 2b 00 %?%?');\n return [2 /*return*/];\n }\n });\n });\n };\n NetMDInterface.prototype.enterSecureSession = function () {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n query = query_utils_1.formatQuery('1800 080046 f0030103 80 ff');\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n return [2 /*return*/, query_utils_1.scanQuery(reply, '1800 080046 f0030103 80 00')];\n }\n });\n });\n };\n NetMDInterface.prototype.leaveSecureSession = function () {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n query = query_utils_1.formatQuery('1800 080046 f0030103 81 ff');\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n return [2 /*return*/, query_utils_1.scanQuery(reply, '1800 080046 f0030103 81 00')];\n }\n });\n });\n };\n NetMDInterface.prototype.getLeafID = function () {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply, res;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n query = query_utils_1.formatQuery('1800 080046 f0030103 11 ff');\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n res = query_utils_1.scanQuery(reply, '1800 080046 f0030103 11 00 %*');\n return [2 /*return*/, String.fromCharCode.apply(String, __spread(res[0]))];\n }\n });\n });\n };\n NetMDInterface.prototype.sendKeyData = function (ekbid, keychain, depth, ekbsignature) {\n return __awaiter(this, void 0, void 0, function () {\n var chainlen, databytes, keychain_1, keychain_1_1, key, keychains, query, reply;\n var e_2, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n chainlen = keychain.length;\n databytes = 16 + 16 * chainlen + 24;\n try {\n for (keychain_1 = __values(keychain), keychain_1_1 = keychain_1.next(); !keychain_1_1.done; keychain_1_1 = keychain_1.next()) {\n key = keychain_1_1.value;\n if (key.length !== 16) {\n throw new Error(\"Each key in the chain needs to have 16 bytes; this one has \" + key.length);\n }\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (keychain_1_1 && !keychain_1_1.done && (_a = keychain_1.return)) _a.call(keychain_1);\n }\n finally { if (e_2) throw e_2.error; }\n }\n if (depth < 1 || depth > 63) {\n throw new Error('Supplied depth is invalid');\n }\n if (ekbsignature.length !== 24) {\n throw new Error('Supplied EKB signature length wrong');\n }\n keychains = utils_1.concatUint8Arrays.apply(void 0, __spread(keychain));\n query = query_utils_1.formatQuery('1800 080046 f0030103 12 ff %w %d %d %d %d 00000000 %* %*', databytes, databytes, chainlen, depth, ekbid, keychains, ekbsignature);\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _b.sent();\n return [2 /*return*/, query_utils_1.scanQuery(reply, '1800 080046 f0030103 12 01 %?%? %?%?%?%?')];\n }\n });\n });\n };\n NetMDInterface.prototype.sessionKeyExchange = function (hostnonce) {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (hostnonce.length !== 8) {\n throw new Error('Supplied host nonce length wrong');\n }\n query = query_utils_1.formatQuery('1800 080046 f0030103 20 ff 000000 %*', hostnonce);\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n return [2 /*return*/, query_utils_1.scanQuery(reply, '1800 080046 f0030103 20 00 000000 %#')[0]];\n }\n });\n });\n };\n NetMDInterface.prototype.sessionKeyForget = function () {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n query = query_utils_1.formatQuery('1800 080046 f0030103 21 ff 000000');\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n return [2 /*return*/, query_utils_1.scanQuery(reply, '1800 080046 f0030103 21 00 000000')];\n }\n });\n });\n };\n NetMDInterface.prototype.setupDownload = function (contentid, keyenckey, hexSessionKey) {\n return __awaiter(this, void 0, void 0, function () {\n var message, encryptedarg, query, reply;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (contentid.length !== 20) {\n throw new Error('Supplied Content ID length wrong');\n }\n if (keyenckey.length !== 8) {\n throw new Error('Supplied Key Encryption Key length wrong');\n }\n if (hexSessionKey.length !== 16) {\n throw new Error('Supplied Session Key length wrong');\n }\n message = utils_1.concatUint8Arrays(new Uint8Array([1, 1, 1, 1]), contentid, keyenckey);\n encryptedarg = crypto_js_1.default.DES.encrypt(crypto_js_1.default.lib.WordArray.create(message), crypto_js_1.default.enc.Hex.parse(hexSessionKey), {\n mode: crypto_js_1.default.mode.CBC,\n padding: crypto_js_1.default.pad.NoPadding,\n iv: crypto_js_1.default.enc.Hex.parse('0000000000000000'),\n });\n query = query_utils_1.formatQuery('1800 080046 f0030103 22 ff 0000 %*', utils_1.wordArrayToByteArray(encryptedarg.ciphertext));\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n return [2 /*return*/, query_utils_1.scanQuery(reply, '1800 080046 f0030103 22 00 0000')];\n }\n });\n });\n };\n NetMDInterface.prototype.commitTrack = function (tracknum, hexSessionKey) {\n return __awaiter(this, void 0, void 0, function () {\n var authentication, query, reply;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (hexSessionKey.length !== 16) {\n throw new Error('Supplied Session Key length wrong');\n }\n authentication = crypto_js_1.default.DES.encrypt(crypto_js_1.default.enc.Hex.parse('0000000000000000'), crypto_js_1.default.enc.Hex.parse(hexSessionKey), {\n mode: crypto_js_1.default.mode.ECB,\n padding: crypto_js_1.default.pad.NoPadding,\n });\n query = query_utils_1.formatQuery('1800 080046 f0030103 48 ff 00 1001 %w %*', tracknum, utils_1.wordArrayToByteArray(authentication.ciphertext));\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n return [2 /*return*/, query_utils_1.scanQuery(reply, '1800 080046 f0030103 48 00 00 1001 %?%?')];\n }\n });\n });\n };\n NetMDInterface.prototype.sendTrack = function (wireformat, discformat, frames, pktSize, packets, hexSessionKey, progressCallback) {\n var packets_1, packets_1_1;\n var e_3, _a;\n return __awaiter(this, void 0, void 0, function () {\n var totalBytes, query, reply, swapNeeded, packetCount, writtenBytes, _b, key, iv, data, binpack, packedLength, e_3_1, res, replydata;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0:\n if (hexSessionKey.length !== 16) {\n throw new Error('Supplied Session Key length wrong');\n }\n totalBytes = pktSize + 24;\n query = query_utils_1.formatQuery('1800 080046 f0030103 28 ff 000100 1001 ffff 00 %b %b %d %d', wireformat, discformat, frames, totalBytes);\n return [4 /*yield*/, this.sendQuery(query, false, true)];\n case 1:\n reply = _c.sent();\n query_utils_1.scanQuery(reply, '1800 080046 f0030103 28 00 000100 1001 %?%? 00 %*');\n swapNeeded = !utils_1.isBigEndian();\n packetCount = 0;\n writtenBytes = 0;\n _c.label = 2;\n case 2:\n _c.trys.push([2, 8, 9, 14]);\n packets_1 = __asyncValues(packets);\n _c.label = 3;\n case 3: return [4 /*yield*/, packets_1.next()];\n case 4:\n if (!(packets_1_1 = _c.sent(), !packets_1_1.done)) return [3 /*break*/, 7];\n _b = packets_1_1.value, key = _b.key, iv = _b.iv, data = _b.data;\n progressCallback && progressCallback({ totalBytes: totalBytes, writtenBytes: writtenBytes });\n binpack = void 0;\n if (packetCount === 0) {\n packedLength = new Uint8Array(new Uint32Array([pktSize]).buffer);\n if (swapNeeded) {\n packedLength.reverse();\n }\n binpack = utils_1.concatUint8Arrays(new Uint8Array([0, 0, 0, 0]), packedLength, key, iv, data);\n }\n else {\n binpack = data;\n }\n return [4 /*yield*/, this.netMd.writeBulk(binpack)];\n case 5:\n _c.sent();\n packetCount += 1;\n writtenBytes += data.length;\n _c.label = 6;\n case 6: return [3 /*break*/, 3];\n case 7: return [3 /*break*/, 14];\n case 8:\n e_3_1 = _c.sent();\n e_3 = { error: e_3_1 };\n return [3 /*break*/, 14];\n case 9:\n _c.trys.push([9, , 12, 13]);\n if (!(packets_1_1 && !packets_1_1.done && (_a = packets_1.return))) return [3 /*break*/, 11];\n return [4 /*yield*/, _a.call(packets_1)];\n case 10:\n _c.sent();\n _c.label = 11;\n case 11: return [3 /*break*/, 13];\n case 12:\n if (e_3) throw e_3.error;\n return [7 /*endfinally*/];\n case 13: return [7 /*endfinally*/];\n case 14:\n progressCallback && progressCallback({ totalBytes: totalBytes, writtenBytes: writtenBytes });\n return [4 /*yield*/, this.readReply()];\n case 15:\n reply = _c.sent();\n return [4 /*yield*/, this.netMd.getReplyLength()];\n case 16:\n _c.sent();\n res = query_utils_1.scanQuery(reply, '1800 080046 f0030103 28 00 000100 1001 %w 00 %?%? %?%?%?%? %?%?%?%? %*');\n replydata = crypto_js_1.default.DES.decrypt(crypto_js_1.default.lib.WordArray.create(res[1]), crypto_js_1.default.enc.Hex.parse(hexSessionKey), {\n mode: crypto_js_1.default.mode.CBC,\n iv: crypto_js_1.default.enc.Hex.parse('0000000000000000'),\n }).toString(crypto_js_1.default.enc.Utf8);\n return [2 /*return*/, [jsbi_1.default.toNumber(res[0]), replydata.substring(0, 8), replydata.substring(12, 32)]];\n }\n });\n });\n };\n NetMDInterface.prototype.getTrackUUID = function (track) {\n return __awaiter(this, void 0, void 0, function () {\n var query, reply, res;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n query = query_utils_1.formatQuery('1800 080046 f0030103 23 ff 1001 %w', track);\n return [4 /*yield*/, this.sendQuery(query)];\n case 1:\n reply = _a.sent();\n res = query_utils_1.scanQuery(reply, '1800 080046 f0030103 23 00 1001 %?%? %*');\n return [2 /*return*/, String.fromCharCode.apply(String, __spread(res[0]))];\n }\n });\n });\n };\n NetMDInterface.maxInterimReadAttempts = 3;\n NetMDInterface.interimResponseRetryIntervalInMs = 100;\n return NetMDInterface;\n}());\nexports.NetMDInterface = NetMDInterface;\nfunction retailmac(key, value, iv) {\n if (iv === void 0) { iv = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0]); }\n var subkeyA = key.subarray(0, 8);\n var beginning = value.subarray(0, value.length - 8);\n var end = value.subarray(value.length - 8, value.length);\n var step1 = crypto_js_1.default.DES.encrypt(crypto_js_1.default.lib.WordArray.create(beginning), crypto_js_1.default.lib.WordArray.create(subkeyA), {\n mode: crypto_js_1.default.mode.CBC,\n iv: crypto_js_1.default.lib.WordArray.create(iv),\n });\n var iv2 = crypto_js_1.default.enc.Hex.stringify(step1.ciphertext);\n iv2 = iv2.substring(0, iv2.length - 16); // last 8 byte\n var step2 = crypto_js_1.default.TripleDES.encrypt(crypto_js_1.default.lib.WordArray.create(end), crypto_js_1.default.lib.WordArray.create(key), {\n mode: crypto_js_1.default.mode.CBC,\n iv: crypto_js_1.default.enc.Hex.parse(iv2),\n });\n return crypto_js_1.default.enc.Hex.stringify(step2.ciphertext).substring(0, 16);\n}\nexports.retailmac = retailmac;\nvar discforwire = (_b = {},\n _b[Wireformat.pcm] = DiscFormat.spStereo,\n _b[Wireformat.lp2] = DiscFormat.lp2,\n _b[Wireformat.l105kbps] = DiscFormat.lp2,\n _b[Wireformat.lp4] = DiscFormat.lp4,\n _b);\nvar EKBOpenSource = /** @class */ (function () {\n function EKBOpenSource() {\n }\n EKBOpenSource.prototype.getRootKey = function () {\n // prettier-ignore\n return new Uint8Array([\n 0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xf0,\n 0x0f, 0xed, 0xcb, 0xa9, 0x87, 0x65, 0x43, 0x21\n ]);\n };\n EKBOpenSource.prototype.getEKBID = function () {\n return 0x26422642;\n };\n EKBOpenSource.prototype.getEKBDataForLeafId = function () {\n // prettier-ignore\n return [\n [\n new Uint8Array([0x25, 0x45, 0x06, 0x4d, 0xea, 0xca, 0x14, 0xf9, 0x96, 0xbd, 0xc8, 0xa4, 0x06, 0xc2, 0x2b, 0x81]),\n new Uint8Array([0xfb, 0x60, 0xbd, 0xdd, 0x0d, 0xbc, 0xab, 0x84, 0x8a, 0x00, 0x5e, 0x03, 0x19, 0x4d, 0x3e, 0xda]),\n ],\n 9,\n new Uint8Array([\n 0x8f, 0x2b, 0xc3, 0x52, 0xe8, 0x6c, 0x5e, 0xd3, 0x06, 0xdc, 0xae, 0x18,\n 0xd2, 0xf3, 0x8c, 0x7f, 0x89, 0xb5, 0xe1, 0x85, 0x55, 0xa1, 0x05, 0xea\n ])\n ];\n };\n return EKBOpenSource;\n}());\nexports.EKBOpenSource = EKBOpenSource;\nvar MDTrack = /** @class */ (function () {\n function MDTrack(title, format, data, chunkSize, encryptPacketsIterator) {\n this.title = title;\n this.format = format;\n this.data = data;\n this.chunkSize = chunkSize;\n this.encryptPacketsIterator = encryptPacketsIterator;\n }\n MDTrack.prototype.getTitle = function () {\n return this.title;\n };\n MDTrack.prototype.getDataFormat = function () {\n return this.format;\n };\n MDTrack.prototype.getFrameCount = function () {\n return this.getTotalSize() / this.getFrameSize();\n };\n MDTrack.prototype.getFrameSize = function () {\n return exports.FrameSize[this.format];\n };\n MDTrack.prototype.getChunkSize = function () {\n return this.chunkSize;\n };\n MDTrack.prototype.getTotalSize = function () {\n var frameSize = this.getFrameSize();\n var len = this.data.byteLength;\n if (len % frameSize !== 0) {\n len = len + (frameSize - (len % frameSize));\n }\n return len;\n };\n MDTrack.prototype.getContentID = function () {\n // prettier-ignore\n return new Uint8Array([\n 0x01, 0x0f, 0x50, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x48,\n 0xa2, 0x8d, 0x3e, 0x1a, 0x3b, 0x0c, 0x44, 0xaf, 0x2f, 0xa0,\n ]);\n };\n MDTrack.prototype.getKEK = function () {\n return new Uint8Array([0x14, 0xe3, 0x83, 0x4e, 0xe2, 0xd3, 0xcc, 0xa5]);\n };\n MDTrack.prototype.getPackets = function () {\n // Deprecated. Use getPacketIterator\n var datakey = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0]);\n var firstiv = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0]);\n var datakeyWA = crypto_js_1.default.lib.WordArray.create(datakey);\n var kekWA = crypto_js_1.default.lib.WordArray.create(this.getKEK());\n var key = crypto_js_1.default.DES.encrypt(datakeyWA, kekWA, { mode: crypto_js_1.default.mode.ECB });\n var firstivWA = crypto_js_1.default.lib.WordArray.create(firstiv);\n var dataWA = crypto_js_1.default.lib.WordArray.create(this.data);\n var encrypted = crypto_js_1.default.DES.encrypt(dataWA, key.ciphertext, {\n mode: crypto_js_1.default.mode.CBC,\n iv: firstivWA,\n });\n var encryptedData = utils_1.wordArrayToByteArray(encrypted.ciphertext);\n encryptedData = encryptedData.subarray(0, this.data.byteLength); // CAVEAT: don't know why, but python Crypto returns 8 bytes less that js Crypto\n return [[datakey, firstiv, encryptedData]];\n };\n MDTrack.prototype.getPacketWorkerIterator = function () {\n return this.encryptPacketsIterator({\n kek: this.getKEK(),\n data: this.data,\n frameSize: this.getFrameSize(),\n chunkSize: this.chunkSize,\n });\n };\n MDTrack.prototype.getPacketIterator = function () {\n return __asyncGenerator(this, arguments, function getPacketIterator_1() {\n var iv, ivWA, kekWA, rawKeyWA, keyDec, key, defaultChunkSize, packetCount, chunkSize, uint8DataArray, frameSize, padding, offset, dataChunk, dataChunkWA, encryptedChunk, encryptedDataChunk;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n iv = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0]);\n ivWA = crypto_js_1.default.lib.WordArray.create(iv);\n kekWA = crypto_js_1.default.lib.WordArray.create(this.getKEK());\n rawKeyWA = crypto_js_1.default.lib.WordArray.random(8);\n keyDec = crypto_js_1.default.DES.decrypt({\n ciphertext: rawKeyWA,\n }, kekWA, { mode: crypto_js_1.default.mode.ECB, padding: crypto_js_1.default.pad.Pkcs7 });\n keyDec.sigBytes = 8;\n key = utils_1.wordArrayToByteArray(keyDec);\n defaultChunkSize = 0x00100000;\n packetCount = 0;\n chunkSize = 0;\n uint8DataArray = new Uint8Array(this.data);\n frameSize = this.getFrameSize();\n if (uint8DataArray.length % frameSize !== 0) {\n padding = frameSize - (uint8DataArray.length % frameSize);\n uint8DataArray = utils_1.concatUint8Arrays(uint8DataArray, new Uint8Array(Array(padding).fill(0)));\n }\n offset = 0;\n _a.label = 1;\n case 1:\n if (!(offset < uint8DataArray.length)) return [3 /*break*/, 4];\n if (packetCount > 0) {\n chunkSize = defaultChunkSize;\n }\n else {\n chunkSize = defaultChunkSize - 24;\n }\n chunkSize = Math.min(chunkSize, uint8DataArray.length - offset);\n dataChunk = uint8DataArray.subarray(offset, offset + chunkSize);\n dataChunkWA = crypto_js_1.default.lib.WordArray.create(dataChunk);\n encryptedChunk = crypto_js_1.default.DES.encrypt(dataChunkWA, rawKeyWA, {\n mode: crypto_js_1.default.mode.CBC,\n iv: ivWA,\n });\n encryptedDataChunk = utils_1.wordArrayToByteArray(encryptedChunk.ciphertext);\n encryptedDataChunk = encryptedDataChunk.subarray(0, chunkSize); //encryptedDataChunk.length - 8\n return [4 /*yield*/, __await([key, iv, encryptedDataChunk])];\n case 2: //encryptedDataChunk.length - 8\n return [4 /*yield*/, _a.sent()];\n case 3:\n _a.sent();\n // Next iv\n ivWA = crypto_js_1.default.lib.WordArray.create(encryptedDataChunk.subarray(encryptedDataChunk.length - 8, encryptedDataChunk.length));\n iv = utils_1.wordArrayToByteArray(ivWA);\n offset = offset + chunkSize;\n packetCount += 1;\n return [3 /*break*/, 1];\n case 4: return [2 /*return*/];\n }\n });\n });\n };\n return MDTrack;\n}());\nexports.MDTrack = MDTrack;\nvar MDSession = /** @class */ (function () {\n function MDSession(md, ekbobject, hexSessionKey) {\n this.md = md;\n this.ekbobject = ekbobject;\n this.hexSessionKey = hexSessionKey;\n }\n MDSession.prototype.init = function () {\n return __awaiter(this, void 0, void 0, function () {\n var _a, chain, depth, sig, hostnonce, devnonce, nonce;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, this.md.enterSecureSession()];\n case 1:\n _b.sent();\n _a = __read(this.ekbobject.getEKBDataForLeafId(), 3), chain = _a[0], depth = _a[1], sig = _a[2];\n return [4 /*yield*/, this.md.sendKeyData(jsbi_1.default.BigInt(this.ekbobject.getEKBID()), chain, depth, sig)];\n case 2:\n _b.sent();\n hostnonce = new Uint8Array(Array(8)\n .fill(0)\n .map(function (_) { return Math.round(Math.random() * 255); }));\n return [4 /*yield*/, this.md.sessionKeyExchange(hostnonce)];\n case 3:\n devnonce = _b.sent();\n nonce = utils_1.concatUint8Arrays(hostnonce, devnonce);\n this.hexSessionKey = retailmac(this.ekbobject.getRootKey(), nonce);\n return [2 /*return*/];\n }\n });\n });\n };\n MDSession.prototype.downloadTrack = function (trk, progressCallback) {\n return __awaiter(this, void 0, void 0, function () {\n var dataFormat, _a, track, uuid, ccid;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!this.hexSessionKey) {\n throw new Error(\"Call init first!\");\n }\n return [4 /*yield*/, this.md.setupDownload(trk.getContentID(), trk.getKEK(), this.hexSessionKey)];\n case 1:\n _b.sent();\n dataFormat = trk.getDataFormat();\n return [4 /*yield*/, this.md.sendTrack(dataFormat, discforwire[dataFormat], trk.getFrameCount(), trk.getTotalSize(), trk.getPacketWorkerIterator(), this.hexSessionKey, progressCallback)];\n case 2:\n _a = __read.apply(void 0, [_b.sent(), 3]), track = _a[0], uuid = _a[1], ccid = _a[2];\n return [4 /*yield*/, this.md.cacheTOC()];\n case 3:\n _b.sent();\n return [4 /*yield*/, this.md.setTrackTitle(track, trk.title)];\n case 4:\n _b.sent();\n return [4 /*yield*/, this.md.syncTOC()];\n case 5:\n _b.sent();\n return [4 /*yield*/, this.md.commitTrack(track, this.hexSessionKey)];\n case 6:\n _b.sent();\n return [2 /*return*/, [track, uuid, ccid]];\n }\n });\n });\n };\n MDSession.prototype.close = function () {\n return __awaiter(this, void 0, void 0, function () {\n var err_3;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!(this.hexSessionKey !== undefined)) return [3 /*break*/, 5];\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, this.md.sessionKeyForget()];\n case 2:\n _a.sent();\n return [3 /*break*/, 4];\n case 3:\n err_3 = _a.sent();\n return [3 /*break*/, 4];\n case 4:\n this.hexSessionKey = undefined;\n _a.label = 5;\n case 5: return [4 /*yield*/, this.md.leaveSecureSession()];\n case 6:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n return MDSession;\n}());\nexports.MDSession = MDSession;\n//# sourceMappingURL=netmd-interface.js.map","(function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=e||self,e.JSBI=t())})(this,function(){'use strict';var v=Math.imul,f=Math.clz32;function e(t){\"@babel/helpers - typeof\";return e=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},e(t)}function t(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function i(e,t){for(var _,n=0;ne.length)&&(t=e.length);for(var _=0,n=Array(t);_=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(t){throw t},f:l}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var g,a=!0,s=!1;return{s:function(){_=e[Symbol.iterator]()},n:function(){var e=_.next();return a=e.done,e},e:function(t){s=!0,g=t},f:function(){try{a||null==_.return||_.return()}finally{if(s)throw g}}}}var y=function(i){var g=Math.abs,o=Math.max;function l(e,i){var _;if(t(this,l),e>l.__kMaxLength)throw new RangeError(\"Maximum BigInt size exceeded\");return _=a.call(this,e),_.sign=i,_}n(l,i);var a=h(l);return _(l,[{key:\"toDebugString\",value:function(){var e,t=[\"BigInt[\"],i=c(this);try{for(i.s();!(e=i.n()).done;){var _=e.value;t.push((_?(_>>>0).toString(16):_)+\", \")}}catch(e){i.e(e)}finally{i.f()}return t.push(\"]\"),t.join(\"\")}},{key:\"toString\",value:function(){var e=0e||36this.length&&(_=this.length);for(var n=65535&e,g=e>>>16,o=0,a=65535&t,s=t>>>16,u=0;u<_;u++){var r=this.__digit(u),d=65535&r,h=r>>>16,b=l.__imul(d,n),m=l.__imul(d,g),c=l.__imul(h,n),v=l.__imul(h,g),f=a+(65535&b),y=s+o+(f>>>16)+(b>>>16)+(65535&m)+(65535&c);a=(m>>>16)+(c>>>16)+(65535&v)+(y>>>16),o=a>>>16,a&=65535,s=v>>>16;this.__setDigit(u,65535&f|y<<16)}if(0!==o||0!==a||0!==s)throw new Error(\"implementation bug\")}},{key:\"__inplaceAdd\",value:function(e,t,_){for(var n,l=0,g=0;g<_;g++)n=this.__halfDigit(t+g)+e.__halfDigit(g)+l,l=n>>>16,this.__setHalfDigit(t+g,n);return l}},{key:\"__inplaceSub\",value:function(e,t,_){var n=0;if(1&t){t>>=1;for(var l=this.__digit(t),g=65535&l,o=0;o<_-1>>>1;o++){var a=e.__digit(o),s=(l>>>16)-(65535&a)-n;n=1&s>>>16,this.__setDigit(t+o,s<<16|65535&g),l=this.__digit(t+o+1),g=(65535&l)-(a>>>16)-n,n=1&g>>>16}var u=e.__digit(o),r=(l>>>16)-(65535&u)-n;n=1&r>>>16,this.__setDigit(t+o,r<<16|65535&g);if(t+o+1>=this.length)throw new RangeError(\"out of bounds\");0==(1&_)&&(l=this.__digit(t+o+1),g=(65535&l)-(u>>>16)-n,n=1&g>>>16,this.__setDigit(t+e.length,4294901760&l|65535&g))}else{t>>=1;for(var d=0;d>>16;var c=(h>>>16)-(b>>>16)-n;n=1&c>>>16,this.__setDigit(t+d,c<<16|65535&m)}var v=this.__digit(t+d),f=e.__digit(d),y=(65535&v)-(65535&f)-n;n=1&y>>>16;var k=0;0==(1&_)&&(k=(v>>>16)-(f>>>16)-n,n=1&k>>>16),this.__setDigit(t+d,k<<16|65535&y)}return n}},{key:\"__inplaceRightShift\",value:function(e){if(0!==e){for(var t,_=this.__digit(0)>>>e,n=this.length-1,l=0;l>>e;this.__setDigit(n,_)}}},{key:\"__digit\",value:function(e){return this[e]}},{key:\"__unsignedDigit\",value:function(e){return this[e]>>>0}},{key:\"__setDigit\",value:function(e,t){this[e]=0|t}},{key:\"__setDigitGrow\",value:function(e,t){this[e]=0|t}},{key:\"__halfDigitLength\",value:function(){var e=this.length;return 65535>=this.__unsignedDigit(e-1)?2*e-1:2*e}},{key:\"__halfDigit\",value:function(e){return 65535&this[e>>>1]>>>((1&e)<<4)}},{key:\"__setHalfDigit\",value:function(e,t){var i=e>>>1,_=this.__digit(i),n=1&e?65535&_|t<<16:4294901760&_|65535&t;this.__setDigit(i,n)}}],[{key:\"BigInt\",value:function(t){var i=Math.floor,_=Number.isFinite;if(\"number\"==typeof t){if(0===t)return l.__zero();if((0|t)===t)return 0>t?l.__oneDigit(-t,!0):l.__oneDigit(t,!1);if(!_(t)||i(t)!==t)throw new RangeError(\"The number \"+t+\" cannot be converted to BigInt because it is not an integer\");return l.__fromDouble(t)}if(\"string\"==typeof t){var n=l.__fromString(t);if(null===n)throw new SyntaxError(\"Cannot convert \"+t+\" to a BigInt\");return n}if(\"boolean\"==typeof t)return!0===t?l.__oneDigit(1,!1):l.__zero();if(\"object\"===e(t)){if(t.constructor===l)return t;var g=l.__toPrimitive(t);return l.BigInt(g)}throw new TypeError(\"Cannot convert \"+t+\" to a BigInt\")}},{key:\"toNumber\",value:function(e){var t=e.length;if(0===t)return 0;if(1===t){var i=e.__unsignedDigit(0);return e.sign?-i:i}var _=e.__digit(t-1),n=l.__clz32(_),g=32*t-n;if(1024>>=12;var d=u-12,h=12<=u?0:a<<20+u,b=20+u;0>>32-d,h=a<>>32-b,b-=32);var m=l.__decideRounding(e,b,s,a);if((1===m||0===m&&1==(1&h))&&(h=h+1>>>0,0===h&&(r++,0!=r>>>20&&(r=0,o++,1023=l.__kMaxLengthBits)throw new RangeError(\"BigInt too big\");if(1===e.length&&2===e.__digit(0)){var _=1+(i>>>5),n=e.sign&&0!=(1&i),g=new l(_,n);g.__initializeDigits();var o=1<<(31&i);return g.__setDigit(_-1,o),g}var a=null,s=e;for(0!=(1&i)&&(a=e),i>>=1;0!==i;i>>=1)s=l.multiply(s,s),0!=(1&i)&&(null===a?a=s:a=l.multiply(a,s));return a}},{key:\"multiply\",value:function(e,t){if(0===e.length)return e;if(0===t.length)return t;var _=e.length+t.length;32<=e.__clzmsd()+t.__clzmsd()&&_--;var n=new l(_,e.sign!==t.sign);n.__initializeDigits();for(var g=0;gl.__absoluteCompare(e,t))return l.__zero();var i,_=e.sign!==t.sign,n=t.__unsignedDigit(0);if(1===t.length&&65535>=n){if(1===n)return _===e.sign?e:l.unaryMinus(e);i=l.__absoluteDivSmall(e,n,null)}else i=l.__absoluteDivLarge(e,t,!0,!1);return i.sign=_,i.__trim()}},{key:\"remainder\",value:function e(t,i){if(0===i.length)throw new RangeError(\"Division by zero\");if(0>l.__absoluteCompare(t,i))return t;var _=i.__unsignedDigit(0);if(1===i.length&&65535>=_){if(1===_)return l.__zero();var n=l.__absoluteModSmall(t,_);return 0===n?l.__zero():l.__oneDigit(n,t.sign)}var e=l.__absoluteDivLarge(t,i,!1,!0);return e.sign=t.sign,e.__trim()}},{key:\"add\",value:function(e,t){var i=e.sign;return i===t.sign?l.__absoluteAdd(e,t,i):0<=l.__absoluteCompare(e,t)?l.__absoluteSub(e,t,i):l.__absoluteSub(t,e,!i)}},{key:\"subtract\",value:function(e,t){var i=e.sign;return i===t.sign?0<=l.__absoluteCompare(e,t)?l.__absoluteSub(e,t,i):l.__absoluteSub(t,e,!i):l.__absoluteAdd(e,t,i)}},{key:\"leftShift\",value:function(e,t){return 0===t.length||0===e.length?e:t.sign?l.__rightShiftByAbsolute(e,t):l.__leftShiftByAbsolute(e,t)}},{key:\"signedRightShift\",value:function(e,t){return 0===t.length||0===e.length?e:t.sign?l.__leftShiftByAbsolute(e,t):l.__rightShiftByAbsolute(e,t)}},{key:\"unsignedRightShift\",value:function(){throw new TypeError(\"BigInts have no unsigned right shift; use >> instead\")}},{key:\"lessThan\",value:function(e,t){return 0>l.__compareToBigInt(e,t)}},{key:\"lessThanOrEqual\",value:function(e,t){return 0>=l.__compareToBigInt(e,t)}},{key:\"greaterThan\",value:function(e,t){return 0=l.__kMaxLengthBits)return t;var _=e+31>>>5;if(t.length<_)return t;var n=t.__unsignedDigit(_-1),g=1<<(31&e-1);if(t.length===_&&nl.__kMaxLengthBits)throw new RangeError(\"BigInt too big\");return l.__truncateAndSubFromPowerOfTwo(e,t,!1)}if(e>=l.__kMaxLengthBits)return t;var i=e+31>>>5;if(t.length>>_)return t}return l.__truncateToNBits(e,t)}},{key:\"ADD\",value:function(e,t){if(e=l.__toPrimitive(e),t=l.__toPrimitive(t),\"string\"==typeof e)return\"string\"!=typeof t&&(t=t.toString()),e+t;if(\"string\"==typeof t)return e.toString()+t;if(e=l.__toNumeric(e),t=l.__toNumeric(t),l.__isBigInt(e)&&l.__isBigInt(t))return l.add(e,t);if(\"number\"==typeof e&&\"number\"==typeof t)return e+t;throw new TypeError(\"Cannot mix BigInt and other types, use explicit conversions\")}},{key:\"LT\",value:function(e,t){return l.__compare(e,t,0)}},{key:\"LE\",value:function(e,t){return l.__compare(e,t,1)}},{key:\"GT\",value:function(e,t){return l.__compare(e,t,2)}},{key:\"GE\",value:function(e,t){return l.__compare(e,t,3)}},{key:\"EQ\",value:function(t,i){for(;;){if(l.__isBigInt(t))return l.__isBigInt(i)?l.equal(t,i):l.EQ(i,t);if(\"number\"==typeof t){if(l.__isBigInt(i))return l.__equalToNumber(i,t);if(\"object\"!==e(i))return t==i;i=l.__toPrimitive(i)}else if(\"string\"==typeof t){if(l.__isBigInt(i))return t=l.__fromString(t),null!==t&&l.equal(t,i);if(\"object\"!==e(i))return t==i;i=l.__toPrimitive(i)}else if(\"boolean\"==typeof t){if(l.__isBigInt(i))return l.__equalToNumber(i,+t);if(\"object\"!==e(i))return t==i;i=l.__toPrimitive(i)}else if(\"symbol\"===e(t)){if(l.__isBigInt(i))return!1;if(\"object\"!==e(i))return t==i;i=l.__toPrimitive(i)}else if(\"object\"===e(t)){if(\"object\"===e(i)&&i.constructor!==l)return t==i;t=l.__toPrimitive(t)}else return t==i}}},{key:\"NE\",value:function(e,t){return!l.EQ(e,t)}},{key:\"__zero\",value:function(){return new l(0,!1)}},{key:\"__oneDigit\",value:function(e,t){var i=new l(1,t);return i.__setDigit(0,e),i}},{key:\"__decideRounding\",value:function(e,t,i,_){if(0t)n=-t-1;else{if(0===i)return-1;i--,_=e.__digit(i),n=31}var l=1<>>20,_=i-1023,n=(_>>>5)+1,g=new l(n,0>e),o=1048575&l.__kBitConversionInts[1]|1048576,a=l.__kBitConversionInts[0],s=20,u=31&_,r=0;if(u>>d,o=o<<32-d|a>>>d,a<<=32-d}else if(u===s)r=32,t=o,o=a;else{var h=u-s;r=32-h,t=o<>>32-h,o=a<=e&&9<=e)||(159>=e?32==e:131071>=e?160==e||5760==e:196607>=e?(e&=131071,10>=e||40==e||41==e||47==e||95==e||4096==e):65279==e)}},{key:\"__fromString\",value:function(e){var t=11073741824/a)return null;var u=a*o+s>>>l.__kBitsPerCharTableShift,r=new l(u+31>>>5,!1),h=10>t?t:10,b=10>=l.__kBitsPerCharTableShift;var c=[],v=[],f=!1;do{for(var y,k=0,D=0;;){if(y=void 0,g-48>>>0>>0>>0>>0>>l.__kBitsPerCharTableShift+5;r.__inplaceMultiplyAdd(A,C,m)}while(!p)}if(n!==_){if(!l.__isWhitespace(g))return null;for(n++;n<_;n++)if(g=e.charCodeAt(n),!l.__isWhitespace(g))return null}return 0!==i&&10!==t?null:(r.sign=-1===i,r.__trim())}},{key:\"__fillFromParts\",value:function(e,t,_){for(var n=0,l=0,g=0,o=t.length-1;0<=o;o--){var a=t[o],s=_[o];l|=a<>>s-g)}if(0!==l){if(n>=e.length)throw new Error(\"implementation bug\");e.__setDigit(n++,l)}for(;n>>1)+(85&n),n=(51&n>>>2)+(51&n),n=(15&n>>>4)+(15&n);var g=n,o=t-1,a=e.__digit(_-1),s=l.__clz32(a),u=0|(32*_-s+g-1)/g;if(e.sign&&u++,268435456>>f,b=32-f;b>=g;)r[d--]=l.__kConversionChars[h&o],h>>>=g,b-=g}var y=(h|a<>>g-b;0!==h;)r[d--]=l.__kConversionChars[h&o],h>>>=g;if(e.sign&&(r[d--]=\"-\"),-1!==d)throw new Error(\"implementation bug\");return r.join(\"\")}},{key:\"__toStringGeneric\",value:function(e,t,_){var n=e.length;if(0===n)return\"\";if(1===n){var g=e.__unsignedDigit(0).toString(t);return!1===_&&e.sign&&(g=\"-\"+g),g}var o=32*n-l.__clz32(e.__digit(n-1)),a=l.__kMaxBitsPerChar[t],s=a-1,u=o*l.__kBitsPerCharTableMultiplier;u+=s-1,u=0|u/s;var r,d,h=u+1>>1,b=l.exponentiate(l.__oneDigit(t,!1),l.__oneDigit(h,!1)),m=b.__unsignedDigit(0);if(1===b.length&&65535>=m){r=new l(e.length,!1),r.__initializeDigits();for(var c,v=0,f=2*e.length-1;0<=f;f--)c=v<<16|e.__halfDigit(f),r.__setHalfDigit(f,0|c/m),v=0|c%m;d=v.toString(t)}else{var y=l.__absoluteDivLarge(e,b,!0,!0);r=y.quotient;var k=y.remainder.__trim();d=l.__toStringGeneric(k,t,!0)}r.__trim();for(var D=l.__toStringGeneric(r,t,!0);d.length_?l.__absoluteLess(i):0}},{key:\"__compareToNumber\",value:function(e,t){if(!0|t){var i=e.sign,_=0>t;if(i!==_)return l.__unequalSign(i);if(0===e.length){if(_)throw new Error(\"implementation bug\");return 0===t?0:-1}if(1n?l.__absoluteGreater(i):ot)return l.__unequalSign(i);if(0===t)throw new Error(\"implementation bug: should be handled elsewhere\");if(0===e.length)return-1;l.__kBitConversionDouble[0]=t;var _=2047&l.__kBitConversionInts[1]>>>20;if(2047==_)throw new Error(\"implementation bug: handled elsewhere\");var n=_-1023;if(0>n)return l.__absoluteGreater(i);var g=e.length,o=e.__digit(g-1),a=l.__clz32(o),s=32*g-a,u=n+1;if(su)return l.__absoluteGreater(i);var r=1048576|1048575&l.__kBitConversionInts[1],d=l.__kBitConversionInts[0],h=20,b=31-a;if(b!==(s-1)%31)throw new Error(\"implementation bug\");var m,c=0;if(b>>v,r=r<<32-v|d>>>v,d<<=32-v}else if(b===h)c=32,m=r,r=d;else{var f=b-h;c=32-f,m=r<>>32-f,r=d<>>=0,m>>>=0,o>m)return l.__absoluteGreater(i);if(o>>0,r=d,d=0):m=0;var k=e.__unsignedDigit(y);if(k>m)return l.__absoluteGreater(i);if(kt&&e.__unsignedDigit(0)===g(t):0===l.__compareToDouble(e,t)}},{key:\"__comparisonResultToBool\",value:function(e,t){switch(t){case 0:return 0>e;case 1:return 0>=e;case 2:return 0t;case 3:return e>=t;}if(l.__isBigInt(e)&&\"string\"==typeof t)return t=l.__fromString(t),null!==t&&l.__comparisonResultToBool(l.__compareToBigInt(e,t),i);if(\"string\"==typeof e&&l.__isBigInt(t))return e=l.__fromString(e),null!==e&&l.__comparisonResultToBool(l.__compareToBigInt(e,t),i);if(e=l.__toNumeric(e),t=l.__toNumeric(t),l.__isBigInt(e)){if(l.__isBigInt(t))return l.__comparisonResultToBool(l.__compareToBigInt(e,t),i);if(\"number\"!=typeof t)throw new Error(\"implementation bug\");return l.__comparisonResultToBool(l.__compareToNumber(e,t),i)}if(\"number\"!=typeof e)throw new Error(\"implementation bug\");if(l.__isBigInt(t))return l.__comparisonResultToBool(l.__compareToNumber(t,e),2^i);if(\"number\"!=typeof t)throw new Error(\"implementation bug\");return 0===i?et:3===i?e>=t:void 0}},{key:\"__absoluteAdd\",value:function(e,t,_){if(e.length>>16)+(s>>>16)+(r>>>16);o=d>>>16,g.__setDigit(a,65535&r|d<<16)}for(;a>>16)+(b>>>16);o=m>>>16,g.__setDigit(a,65535&b|m<<16)}return a>>16;var r=(a>>>16)-(s>>>16)-g;g=1&r>>>16,n.__setDigit(o,65535&u|r<<16)}for(;o>>16;var b=(d>>>16)-g;g=1&b>>>16,n.__setDigit(o,65535&h|b<<16)}return n.__trim()}},{key:\"__absoluteAddOne\",value:function(e,t){var _=2n?0:e.__unsignedDigit(n)>t.__unsignedDigit(n)?1:-1}},{key:\"__multiplyAccumulate\",value:function(e,t,_,n){if(0!==t){for(var g=65535&t,o=t>>>16,a=0,s=0,u=0,r=0;r>>16,m=e.__digit(r),c=65535&m,v=m>>>16,f=l.__imul(c,g),y=l.__imul(c,o),k=l.__imul(v,g),D=l.__imul(v,o);h+=s+(65535&f),b+=u+a+(h>>>16)+(f>>>16)+(65535&y)+(65535&k),a=b>>>16,s=(y>>>16)+(k>>>16)+(65535&D)+a,a=s>>>16,s&=65535,u=D>>>16,d=65535&h|b<<16,_.__setDigit(n,d)}for(;0!==a||0!==s||0!==u;n++){var p=_.__digit(n),B=(65535&p)+s,S=(p>>>16)+(B>>>16)+u+a;s=0,u=0,a=S>>>16,p=65535&B|S<<16,_.__setDigit(n,p)}}}},{key:\"__internalMultiplyAdd\",value:function(e,t,_,g,o){for(var a=_,s=0,u=0;u>>16;var b=l.__imul(r>>>16,t),m=(65535&b)+(d>>>16)+a;a=m>>>16,s=b>>>16,o.__setDigit(u,m<<16|65535&h)}if(o.length>g)for(o.__setDigit(g++,a+s);g>>0,a=0|o/t;n=0|o%t,o=(n<<16|e.__halfDigit(g-1))>>>0;var s=0|o/t;n=0|o%t,_.__setDigit(g>>>1,a<<16|s)}return _}},{key:\"__absoluteModSmall\",value:function(e,t){for(var _,n=0,l=2*e.length-1;0<=l;l--)_=(n<<16|e.__halfDigit(l))>>>0,n=0|_%t;return n}},{key:\"__absoluteDivLarge\",value:function(e,t,i,_){var g=t.__halfDigitLength(),n=t.length,o=e.__halfDigitLength()-g,a=null;i&&(a=new l(o+2>>>1,!1),a.__initializeDigits());var s=new l(g+2>>>1,!1);s.__initializeDigits();var r=l.__clz16(t.__halfDigit(g-1));0>>0;m=0|f/u;for(var y=0|f%u,k=t.__halfDigit(g-2),D=d.__halfDigit(b+g-2);l.__imul(m,k)>>>0>(y<<16|D)>>>0&&(m--,y+=u,!(65535>>1,h|m))}return _?(d.__inplaceRightShift(r),i?{quotient:a,remainder:d}:d):i?a:void 0}},{key:\"__clz16\",value:function(e){return l.__clz32(e)-16}},{key:\"__specialLeftShift\",value:function(e,t,_){var g=e.length,n=new l(g+_,!1);if(0===t){for(var o=0;o>>32-t;return 0<_&&n.__setDigit(g,s),n}},{key:\"__leftShiftByAbsolute\",value:function(e,t){var _=l.__toShiftAmount(t);if(0>_)throw new RangeError(\"BigInt too big\");var n=_>>>5,g=31&_,o=e.length,a=0!==g&&0!=e.__digit(o-1)>>>32-g,s=o+n+(a?1:0),u=new l(s,e.sign);if(0===g){for(var r=0;r>>32-g;if(a)u.__setDigit(o+n,h);else if(0!==h)throw new Error(\"implementation bug\")}return u.__trim()}},{key:\"__rightShiftByAbsolute\",value:function(e,t){var _=e.length,n=e.sign,g=l.__toShiftAmount(t);if(0>g)return l.__rightShiftByMaximum(n);var o=g>>>5,a=31&g,s=_-o;if(0>=s)return l.__rightShiftByMaximum(n);var u=!1;if(n){if(0!=(e.__digit(o)&(1<>>a,f=_-o-1,y=0;y>>a;b.__setDigit(f,v)}return u&&(b=l.__absoluteAddOne(b,!0,b)),b.__trim()}},{key:\"__rightShiftByMaximum\",value:function(e){return e?l.__oneDigit(1,!0):l.__zero()}},{key:\"__toShiftAmount\",value:function(e){if(1l.__kMaxLengthBits?-1:t}},{key:\"__toPrimitive\",value:function(t){var i=1>>5,n=new l(_,t.sign),g=_-1,o=0;o>>s}return n.__setDigit(g,a),n.__trim()}},{key:\"__truncateAndSubFromPowerOfTwo\",value:function(e,t,_){for(var n=Math.min,g=e+31>>>5,o=new l(g,_),a=0,s=g-1,u=0,r=n(s,t.length);a>>16;var b=0-(d>>>16)-u;u=1&b>>>16,o.__setDigit(a,65535&h|b<<16)}for(;a>>16;var y=0-(c>>>16)-u;m=65535&f|y<<16}else{var k=32-v;c=c<>>k;var D=1<<32-k,p=(65535&D)-(65535&c)-u;u=1&p>>>16;var B=(D>>>16)-(c>>>16)-u;m=65535&p|B<<16,m&=D-1}return o.__setDigit(s,m),o.__trim()}},{key:\"__digitPow\",value:function(e,t){for(var i=1;0>>=1,e*=e;return i}}]),l}(u(Array));return y.__kMaxLength=33554432,y.__kMaxLengthBits=y.__kMaxLength<<5,y.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],y.__kBitsPerCharTableShift=5,y.__kBitsPerCharTableMultiplier=1<>>0)/t)},y.__imul=v||function(e,t){return 0|e*t},y});\n",";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./x64-core\"), require(\"./lib-typedarrays\"), require(\"./enc-utf16\"), require(\"./enc-base64\"), require(\"./md5\"), require(\"./sha1\"), require(\"./sha256\"), require(\"./sha224\"), require(\"./sha512\"), require(\"./sha384\"), require(\"./sha3\"), require(\"./ripemd160\"), require(\"./hmac\"), require(\"./pbkdf2\"), require(\"./evpkdf\"), require(\"./cipher-core\"), require(\"./mode-cfb\"), require(\"./mode-ctr\"), require(\"./mode-ctr-gladman\"), require(\"./mode-ofb\"), require(\"./mode-ecb\"), require(\"./pad-ansix923\"), require(\"./pad-iso10126\"), require(\"./pad-iso97971\"), require(\"./pad-zeropadding\"), require(\"./pad-nopadding\"), require(\"./format-hex\"), require(\"./aes\"), require(\"./tripledes\"), require(\"./rc4\"), require(\"./rabbit\"), require(\"./rabbit-legacy\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./x64-core\", \"./lib-typedarrays\", \"./enc-utf16\", \"./enc-base64\", \"./md5\", \"./sha1\", \"./sha256\", \"./sha224\", \"./sha512\", \"./sha384\", \"./sha3\", \"./ripemd160\", \"./hmac\", \"./pbkdf2\", \"./evpkdf\", \"./cipher-core\", \"./mode-cfb\", \"./mode-ctr\", \"./mode-ctr-gladman\", \"./mode-ofb\", \"./mode-ecb\", \"./pad-ansix923\", \"./pad-iso10126\", \"./pad-iso97971\", \"./pad-zeropadding\", \"./pad-nopadding\", \"./format-hex\", \"./aes\", \"./tripledes\", \"./rc4\", \"./rabbit\", \"./rabbit-legacy\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\troot.CryptoJS = factory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\treturn CryptoJS;\n\n}));","'use strict'\nvar Buffer = require('safe-buffer').Buffer\nvar Transform = require('stream').Transform\nvar inherits = require('inherits')\n\nfunction throwIfNotStringOrBuffer (val, prefix) {\n if (!Buffer.isBuffer(val) && typeof val !== 'string') {\n throw new TypeError(prefix + ' must be a string or a buffer')\n }\n}\n\nfunction HashBase (blockSize) {\n Transform.call(this)\n\n this._block = Buffer.allocUnsafe(blockSize)\n this._blockSize = blockSize\n this._blockOffset = 0\n this._length = [0, 0, 0, 0]\n\n this._finalized = false\n}\n\ninherits(HashBase, Transform)\n\nHashBase.prototype._transform = function (chunk, encoding, callback) {\n var error = null\n try {\n this.update(chunk, encoding)\n } catch (err) {\n error = err\n }\n\n callback(error)\n}\n\nHashBase.prototype._flush = function (callback) {\n var error = null\n try {\n this.push(this.digest())\n } catch (err) {\n error = err\n }\n\n callback(error)\n}\n\nHashBase.prototype.update = function (data, encoding) {\n throwIfNotStringOrBuffer(data, 'Data')\n if (this._finalized) throw new Error('Digest already called')\n if (!Buffer.isBuffer(data)) data = Buffer.from(data, encoding)\n\n // consume data\n var block = this._block\n var offset = 0\n while (this._blockOffset + data.length - offset >= this._blockSize) {\n for (var i = this._blockOffset; i < this._blockSize;) block[i++] = data[offset++]\n this._update()\n this._blockOffset = 0\n }\n while (offset < data.length) block[this._blockOffset++] = data[offset++]\n\n // update length\n for (var j = 0, carry = data.length * 8; carry > 0; ++j) {\n this._length[j] += carry\n carry = (this._length[j] / 0x0100000000) | 0\n if (carry > 0) this._length[j] -= 0x0100000000 * carry\n }\n\n return this\n}\n\nHashBase.prototype._update = function () {\n throw new Error('_update is not implemented')\n}\n\nHashBase.prototype.digest = function (encoding) {\n if (this._finalized) throw new Error('Digest already called')\n this._finalized = true\n\n var digest = this._digest()\n if (encoding !== undefined) digest = digest.toString(encoding)\n\n // reset state\n this._block.fill(0)\n this._blockOffset = 0\n for (var i = 0; i < 4; ++i) this._length[i] = 0\n\n return digest\n}\n\nHashBase.prototype._digest = function () {\n throw new Error('_digest is not implemented')\n}\n\nmodule.exports = HashBase\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\nmodule.exports = Readable;\n\n/**/\nvar isArray = require('isarray');\n/**/\n\n/**/\nvar Duplex;\n/**/\n\nReadable.ReadableState = ReadableState;\n\n/**/\nvar EE = require('events').EventEmitter;\n\nvar EElistenerCount = function (emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\n/**/\nvar Stream = require('./internal/streams/stream');\n/**/\n\n/**/\n\nvar Buffer = require('safe-buffer').Buffer;\nvar OurUint8Array = global.Uint8Array || function () {};\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n\n/**/\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\n/**/\nvar debugUtil = require('util');\nvar debug = void 0;\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function () {};\n}\n/**/\n\nvar BufferList = require('./internal/streams/BufferList');\nvar destroyImpl = require('./internal/streams/destroy');\nvar StringDecoder;\n\nutil.inherits(Readable, Stream);\n\nvar kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];\n\nfunction prependListener(emitter, event, fn) {\n // Sadly this is not cacheable as some libraries bundle their own\n // event emitter implementation with them.\n if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn);\n\n // This is a hack to make sure that our error handler is attached before any\n // userland ones. NEVER DO THIS. This is here only because this code needs\n // to continue to work with older versions of Node.js that do not include\n // the prependListener() method. The goal is to eventually remove this hack.\n if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];\n}\n\nfunction ReadableState(options, stream) {\n Duplex = Duplex || require('./_stream_duplex');\n\n options = options || {};\n\n // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n var isDuplex = stream instanceof Duplex;\n\n // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n this.objectMode = !!options.objectMode;\n\n if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode;\n\n // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n var hwm = options.highWaterMark;\n var readableHwm = options.readableHighWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n\n if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (readableHwm || readableHwm === 0)) this.highWaterMark = readableHwm;else this.highWaterMark = defaultHwm;\n\n // cast to ints.\n this.highWaterMark = Math.floor(this.highWaterMark);\n\n // A linked list is used to store data chunks instead of an array because the\n // linked list can remove elements from the beginning faster than\n // array.shift()\n this.buffer = new BufferList();\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // a flag to be able to tell if the event 'readable'/'data' is emitted\n // immediately, or on a later tick. We set this to true at first, because\n // any actions that shouldn't happen until \"later\" should generally also\n // not happen before the first read call.\n this.sync = true;\n\n // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n this.resumeScheduled = false;\n\n // has it been destroyed\n this.destroyed = false;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // the number of writers that are awaiting a drain event in .pipe()s\n this.awaitDrain = 0;\n\n // if true, a maybeReadMore has been scheduled\n this.readingMore = false;\n\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nfunction Readable(options) {\n Duplex = Duplex || require('./_stream_duplex');\n\n if (!(this instanceof Readable)) return new Readable(options);\n\n this._readableState = new ReadableState(options, this);\n\n // legacy\n this.readable = true;\n\n if (options) {\n if (typeof options.read === 'function') this._read = options.read;\n\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n }\n\n Stream.call(this);\n}\n\nObject.defineProperty(Readable.prototype, 'destroyed', {\n get: function () {\n if (this._readableState === undefined) {\n return false;\n }\n return this._readableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._readableState) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._readableState.destroyed = value;\n }\n});\n\nReadable.prototype.destroy = destroyImpl.destroy;\nReadable.prototype._undestroy = destroyImpl.undestroy;\nReadable.prototype._destroy = function (err, cb) {\n this.push(null);\n cb(err);\n};\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function (chunk, encoding) {\n var state = this._readableState;\n var skipChunkCheck;\n\n if (!state.objectMode) {\n if (typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = Buffer.from(chunk, encoding);\n encoding = '';\n }\n skipChunkCheck = true;\n }\n } else {\n skipChunkCheck = true;\n }\n\n return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);\n};\n\n// Unshift should *always* be something directly out of read()\nReadable.prototype.unshift = function (chunk) {\n return readableAddChunk(this, chunk, null, true, false);\n};\n\nfunction readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {\n var state = stream._readableState;\n if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else {\n var er;\n if (!skipChunkCheck) er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (addToFront) {\n if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));else addChunk(stream, state, chunk, true);\n } else if (state.ended) {\n stream.emit('error', new Error('stream.push() after EOF'));\n } else {\n state.reading = false;\n if (state.decoder && !encoding) {\n chunk = state.decoder.write(chunk);\n if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);\n } else {\n addChunk(stream, state, chunk, false);\n }\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n }\n\n return needMoreData(state);\n}\n\nfunction addChunk(stream, state, chunk, addToFront) {\n if (state.flowing && state.length === 0 && !state.sync) {\n stream.emit('data', chunk);\n stream.read(0);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);\n\n if (state.needReadable) emitReadable(stream);\n }\n maybeReadMore(stream, state);\n}\n\nfunction chunkInvalid(state, chunk) {\n var er;\n if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n}\n\n// if it's past the high water mark, we can push in some more.\n// Also, if we have no data yet, we can stand some\n// more bytes. This is to work around cases where hwm=0,\n// such as the repl. Also, if the push() triggered a\n// readable event, and the user called read(largeNumber) such that\n// needReadable was set, then we ought to push more, so that another\n// 'readable' event will be triggered.\nfunction needMoreData(state) {\n return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);\n}\n\nReadable.prototype.isPaused = function () {\n return this._readableState.flowing === false;\n};\n\n// backwards compatibility.\nReadable.prototype.setEncoding = function (enc) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n return this;\n};\n\n// Don't raise the hwm > 8MB\nvar MAX_HWM = 0x800000;\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2 to prevent increasing hwm excessively in\n // tiny amounts\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n return n;\n}\n\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction howMuchToRead(n, state) {\n if (n <= 0 || state.length === 0 && state.ended) return 0;\n if (state.objectMode) return 1;\n if (n !== n) {\n // Only flow one buffer at a time\n if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;\n }\n // If we're asking for more than the current hwm, then raise the hwm.\n if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);\n if (n <= state.length) return n;\n // Don't have enough\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n }\n return state.length;\n}\n\n// you can override either this method, or the async _read(n) below.\nReadable.prototype.read = function (n) {\n debug('read', n);\n n = parseInt(n, 10);\n var state = this._readableState;\n var nOrig = n;\n\n if (n !== 0) state.emittedReadable = false;\n\n // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state);\n\n // if we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n if (state.length === 0) endReadable(this);\n return null;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n var doRead = state.needReadable;\n debug('need readable', doRead);\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n }\n\n // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n } else if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n // if the length is currently zero, then we *need* a readable event.\n if (state.length === 0) state.needReadable = true;\n // call internal read method\n this._read(state.highWaterMark);\n state.sync = false;\n // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n if (!state.reading) n = howMuchToRead(nOrig, state);\n }\n\n var ret;\n if (n > 0) ret = fromList(n, state);else ret = null;\n\n if (ret === null) {\n state.needReadable = true;\n n = 0;\n } else {\n state.length -= n;\n }\n\n if (state.length === 0) {\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (!state.ended) state.needReadable = true;\n\n // If we tried to read() past the EOF, then emit end on the next tick.\n if (nOrig !== n && state.ended) endReadable(this);\n }\n\n if (ret !== null) this.emit('data', ret);\n\n return ret;\n};\n\nfunction onEofChunk(stream, state) {\n if (state.ended) return;\n if (state.decoder) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n\n // emit 'readable' now to make sure it gets picked up.\n emitReadable(stream);\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n if (state.sync) pna.nextTick(emitReadable_, stream);else emitReadable_(stream);\n }\n}\n\nfunction emitReadable_(stream) {\n debug('emit readable');\n stream.emit('readable');\n flow(stream);\n}\n\n// at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n pna.nextTick(maybeReadMore_, stream, state);\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n // didn't get any data, stop spinning.\n break;else len = state.length;\n }\n state.readingMore = false;\n}\n\n// abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function (n) {\n this.emit('error', new Error('_read() is not implemented'));\n};\n\nReadable.prototype.pipe = function (dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n\n var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\n\n var endFn = doEnd ? onend : unpipe;\n if (state.endEmitted) pna.nextTick(endFn);else src.once('end', endFn);\n\n dest.on('unpipe', onunpipe);\n function onunpipe(readable, unpipeInfo) {\n debug('onunpipe');\n if (readable === src) {\n if (unpipeInfo && unpipeInfo.hasUnpiped === false) {\n unpipeInfo.hasUnpiped = true;\n cleanup();\n }\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n }\n\n // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n\n var cleanedUp = false;\n function cleanup() {\n debug('cleanup');\n // cleanup event handlers once the pipe is broken\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', unpipe);\n src.removeListener('data', ondata);\n\n cleanedUp = true;\n\n // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();\n }\n\n // If the user pushes more data while we're writing to dest then we'll end up\n // in ondata again. However, we only want to increase awaitDrain once because\n // dest will only emit one 'drain' event for the multiple writes.\n // => Introduce a guard on increasing awaitDrain.\n var increasedAwaitDrain = false;\n src.on('data', ondata);\n function ondata(chunk) {\n debug('ondata');\n increasedAwaitDrain = false;\n var ret = dest.write(chunk);\n if (false === ret && !increasedAwaitDrain) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n // => Check whether `dest` is still a piping destination.\n if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {\n debug('false write response, pause', src._readableState.awaitDrain);\n src._readableState.awaitDrain++;\n increasedAwaitDrain = true;\n }\n src.pause();\n }\n }\n\n // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er);\n }\n\n // Make sure our error handler is attached before userland ones.\n prependListener(dest, 'error', onerror);\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n\n // tell the dest that it's being piped to\n dest.emit('pipe', src);\n\n // start the flow if it hasn't been started already.\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function () {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain) state.awaitDrain--;\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\nReadable.prototype.unpipe = function (dest) {\n var state = this._readableState;\n var unpipeInfo = { hasUnpiped: false };\n\n // if we're not piping anywhere, then do nothing.\n if (state.pipesCount === 0) return this;\n\n // just one destination. most common case.\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes) return this;\n\n if (!dest) dest = state.pipes;\n\n // got a match.\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest) dest.emit('unpipe', this, unpipeInfo);\n return this;\n }\n\n // slow case. multiple pipe destinations.\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++) {\n dests[i].emit('unpipe', this, unpipeInfo);\n }return this;\n }\n\n // try to find the right one.\n var index = indexOf(state.pipes, dest);\n if (index === -1) return this;\n\n state.pipes.splice(index, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1) state.pipes = state.pipes[0];\n\n dest.emit('unpipe', this, unpipeInfo);\n\n return this;\n};\n\n// set up data events if they are asked for\n// Ensure readable listeners eventually get something\nReadable.prototype.on = function (ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n\n if (ev === 'data') {\n // Start flowing on next tick if stream isn't explicitly paused\n if (this._readableState.flowing !== false) this.resume();\n } else if (ev === 'readable') {\n var state = this._readableState;\n if (!state.endEmitted && !state.readableListening) {\n state.readableListening = state.needReadable = true;\n state.emittedReadable = false;\n if (!state.reading) {\n pna.nextTick(nReadingNextTick, this);\n } else if (state.length) {\n emitReadable(this);\n }\n }\n }\n\n return res;\n};\nReadable.prototype.addListener = Readable.prototype.on;\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n}\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function () {\n var state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n state.flowing = true;\n resume(this, state);\n }\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n pna.nextTick(resume_, stream, state);\n }\n}\n\nfunction resume_(stream, state) {\n if (!state.reading) {\n debug('resume read 0');\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n state.awaitDrain = 0;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading) stream.read(0);\n}\n\nReadable.prototype.pause = function () {\n debug('call pause flowing=%j', this._readableState.flowing);\n if (false !== this._readableState.flowing) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n while (state.flowing && stream.read() !== null) {}\n}\n\n// wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function (stream) {\n var _this = this;\n\n var state = this._readableState;\n var paused = false;\n\n stream.on('end', function () {\n debug('wrapped end');\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) _this.push(chunk);\n }\n\n _this.push(null);\n });\n\n stream.on('data', function (chunk) {\n debug('wrapped data');\n if (state.decoder) chunk = state.decoder.write(chunk);\n\n // don't skip over falsy values in objectMode\n if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;\n\n var ret = _this.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n\n // proxy all the other methods.\n // important when wrapping filters and duplexes.\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function (method) {\n return function () {\n return stream[method].apply(stream, arguments);\n };\n }(i);\n }\n }\n\n // proxy certain important events.\n for (var n = 0; n < kProxyEvents.length; n++) {\n stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));\n }\n\n // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n this._read = function (n) {\n debug('wrapped _read', n);\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return this;\n};\n\nObject.defineProperty(Readable.prototype, 'readableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._readableState.highWaterMark;\n }\n});\n\n// exposed for testing purposes only.\nReadable._fromList = fromList;\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction fromList(n, state) {\n // nothing buffered\n if (state.length === 0) return null;\n\n var ret;\n if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {\n // read it all, truncate the list\n if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length);\n state.buffer.clear();\n } else {\n // read part of list\n ret = fromListPartial(n, state.buffer, state.decoder);\n }\n\n return ret;\n}\n\n// Extracts only enough buffered data to satisfy the amount requested.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction fromListPartial(n, list, hasStrings) {\n var ret;\n if (n < list.head.data.length) {\n // slice is the same for buffers and strings\n ret = list.head.data.slice(0, n);\n list.head.data = list.head.data.slice(n);\n } else if (n === list.head.data.length) {\n // first chunk is a perfect match\n ret = list.shift();\n } else {\n // result spans more than one buffer\n ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list);\n }\n return ret;\n}\n\n// Copies a specified amount of characters from the list of buffered data\n// chunks.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction copyFromBufferString(n, list) {\n var p = list.head;\n var c = 1;\n var ret = p.data;\n n -= ret.length;\n while (p = p.next) {\n var str = p.data;\n var nb = n > str.length ? str.length : n;\n if (nb === str.length) ret += str;else ret += str.slice(0, n);\n n -= nb;\n if (n === 0) {\n if (nb === str.length) {\n ++c;\n if (p.next) list.head = p.next;else list.head = list.tail = null;\n } else {\n list.head = p;\n p.data = str.slice(nb);\n }\n break;\n }\n ++c;\n }\n list.length -= c;\n return ret;\n}\n\n// Copies a specified amount of bytes from the list of buffered data chunks.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction copyFromBuffer(n, list) {\n var ret = Buffer.allocUnsafe(n);\n var p = list.head;\n var c = 1;\n p.data.copy(ret);\n n -= p.data.length;\n while (p = p.next) {\n var buf = p.data;\n var nb = n > buf.length ? buf.length : n;\n buf.copy(ret, ret.length - n, 0, nb);\n n -= nb;\n if (n === 0) {\n if (nb === buf.length) {\n ++c;\n if (p.next) list.head = p.next;else list.head = list.tail = null;\n } else {\n list.head = p;\n p.data = buf.slice(nb);\n }\n break;\n }\n ++c;\n }\n list.length -= c;\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n\n // If we get here before consuming all the bytes, then that is a\n // bug in node. Should never happen.\n if (state.length > 0) throw new Error('\"endReadable()\" called on non-empty stream');\n\n if (!state.endEmitted) {\n state.ended = true;\n pna.nextTick(endReadableNT, state, stream);\n }\n}\n\nfunction endReadableNT(state, stream) {\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n}\n\nfunction indexOf(xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n return -1;\n}","module.exports = require('events').EventEmitter;\n","'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\n// undocumented cb() API, needed for core, not for public API\nfunction destroy(err, cb) {\n var _this = this;\n\n var readableDestroyed = this._readableState && this._readableState.destroyed;\n var writableDestroyed = this._writableState && this._writableState.destroyed;\n\n if (readableDestroyed || writableDestroyed) {\n if (cb) {\n cb(err);\n } else if (err && (!this._writableState || !this._writableState.errorEmitted)) {\n pna.nextTick(emitErrorNT, this, err);\n }\n return this;\n }\n\n // we set destroyed to true before firing error callbacks in order\n // to make it re-entrance safe in case destroy() is called within callbacks\n\n if (this._readableState) {\n this._readableState.destroyed = true;\n }\n\n // if this is a duplex stream mark the writable part as destroyed as well\n if (this._writableState) {\n this._writableState.destroyed = true;\n }\n\n this._destroy(err || null, function (err) {\n if (!cb && err) {\n pna.nextTick(emitErrorNT, _this, err);\n if (_this._writableState) {\n _this._writableState.errorEmitted = true;\n }\n } else if (cb) {\n cb(err);\n }\n });\n\n return this;\n}\n\nfunction undestroy() {\n if (this._readableState) {\n this._readableState.destroyed = false;\n this._readableState.reading = false;\n this._readableState.ended = false;\n this._readableState.endEmitted = false;\n }\n\n if (this._writableState) {\n this._writableState.destroyed = false;\n this._writableState.ended = false;\n this._writableState.ending = false;\n this._writableState.finished = false;\n this._writableState.errorEmitted = false;\n }\n}\n\nfunction emitErrorNT(self, err) {\n self.emit('error', err);\n}\n\nmodule.exports = {\n destroy: destroy,\n undestroy: undestroy\n};","\n/**\n * Module exports.\n */\n\nmodule.exports = deprecate;\n\n/**\n * Mark that a method should not be used.\n * Returns a modified function which warns once by default.\n *\n * If `localStorage.noDeprecation = true` is set, then it is a no-op.\n *\n * If `localStorage.throwDeprecation = true` is set, then deprecated functions\n * will throw an Error when invoked.\n *\n * If `localStorage.traceDeprecation = true` is set, then deprecated functions\n * will invoke `console.trace()` instead of `console.error()`.\n *\n * @param {Function} fn - the function to deprecate\n * @param {String} msg - the string to print to the console when `fn` is invoked\n * @returns {Function} a new \"deprecated\" version of `fn`\n * @api public\n */\n\nfunction deprecate (fn, msg) {\n if (config('noDeprecation')) {\n return fn;\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (config('throwDeprecation')) {\n throw new Error(msg);\n } else if (config('traceDeprecation')) {\n console.trace(msg);\n } else {\n console.warn(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n}\n\n/**\n * Checks `localStorage` for boolean values for the given `name`.\n *\n * @param {String} name\n * @returns {Boolean}\n * @api private\n */\n\nfunction config (name) {\n // accessing global.localStorage can trigger a DOMException in sandboxed iframes\n try {\n if (!global.localStorage) return false;\n } catch (_) {\n return false;\n }\n var val = global.localStorage[name];\n if (null == val) return false;\n return String(val).toLowerCase() === 'true';\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\n'use strict';\n\nmodule.exports = Transform;\n\nvar Duplex = require('./_stream_duplex');\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\nutil.inherits(Transform, Duplex);\n\nfunction afterTransform(er, data) {\n var ts = this._transformState;\n ts.transforming = false;\n\n var cb = ts.writecb;\n\n if (!cb) {\n return this.emit('error', new Error('write callback called multiple times'));\n }\n\n ts.writechunk = null;\n ts.writecb = null;\n\n if (data != null) // single equals check for both `null` and `undefined`\n this.push(data);\n\n cb(er);\n\n var rs = this._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n this._read(rs.highWaterMark);\n }\n}\n\nfunction Transform(options) {\n if (!(this instanceof Transform)) return new Transform(options);\n\n Duplex.call(this, options);\n\n this._transformState = {\n afterTransform: afterTransform.bind(this),\n needTransform: false,\n transforming: false,\n writecb: null,\n writechunk: null,\n writeencoding: null\n };\n\n // start out asking for a readable event once data is transformed.\n this._readableState.needReadable = true;\n\n // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false;\n\n if (options) {\n if (typeof options.transform === 'function') this._transform = options.transform;\n\n if (typeof options.flush === 'function') this._flush = options.flush;\n }\n\n // When the writable side finishes, then flush out anything remaining.\n this.on('prefinish', prefinish);\n}\n\nfunction prefinish() {\n var _this = this;\n\n if (typeof this._flush === 'function') {\n this._flush(function (er, data) {\n done(_this, er, data);\n });\n } else {\n done(this, null, null);\n }\n}\n\nTransform.prototype.push = function (chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n};\n\n// This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\nTransform.prototype._transform = function (chunk, encoding, cb) {\n throw new Error('_transform() is not implemented');\n};\n\nTransform.prototype._write = function (chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);\n }\n};\n\n// Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\nTransform.prototype._read = function (n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\nTransform.prototype._destroy = function (err, cb) {\n var _this2 = this;\n\n Duplex.prototype._destroy.call(this, err, function (err2) {\n cb(err2);\n _this2.emit('close');\n });\n};\n\nfunction done(stream, er, data) {\n if (er) return stream.emit('error', er);\n\n if (data != null) // single equals check for both `null` and `undefined`\n stream.push(data);\n\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n if (stream._writableState.length) throw new Error('Calling transform done when ws.length != 0');\n\n if (stream._transformState.transforming) throw new Error('Calling transform done when still transforming');\n\n return stream.push(null);\n}","/**\n * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined\n * in FIPS 180-2\n * Version 2.2-beta Copyright Angel Marin, Paul Johnston 2000 - 2009.\n * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet\n *\n */\n\nvar inherits = require('inherits')\nvar Hash = require('./hash')\nvar Buffer = require('safe-buffer').Buffer\n\nvar K = [\n 0x428A2F98, 0x71374491, 0xB5C0FBCF, 0xE9B5DBA5,\n 0x3956C25B, 0x59F111F1, 0x923F82A4, 0xAB1C5ED5,\n 0xD807AA98, 0x12835B01, 0x243185BE, 0x550C7DC3,\n 0x72BE5D74, 0x80DEB1FE, 0x9BDC06A7, 0xC19BF174,\n 0xE49B69C1, 0xEFBE4786, 0x0FC19DC6, 0x240CA1CC,\n 0x2DE92C6F, 0x4A7484AA, 0x5CB0A9DC, 0x76F988DA,\n 0x983E5152, 0xA831C66D, 0xB00327C8, 0xBF597FC7,\n 0xC6E00BF3, 0xD5A79147, 0x06CA6351, 0x14292967,\n 0x27B70A85, 0x2E1B2138, 0x4D2C6DFC, 0x53380D13,\n 0x650A7354, 0x766A0ABB, 0x81C2C92E, 0x92722C85,\n 0xA2BFE8A1, 0xA81A664B, 0xC24B8B70, 0xC76C51A3,\n 0xD192E819, 0xD6990624, 0xF40E3585, 0x106AA070,\n 0x19A4C116, 0x1E376C08, 0x2748774C, 0x34B0BCB5,\n 0x391C0CB3, 0x4ED8AA4A, 0x5B9CCA4F, 0x682E6FF3,\n 0x748F82EE, 0x78A5636F, 0x84C87814, 0x8CC70208,\n 0x90BEFFFA, 0xA4506CEB, 0xBEF9A3F7, 0xC67178F2\n]\n\nvar W = new Array(64)\n\nfunction Sha256 () {\n this.init()\n\n this._w = W // new Array(64)\n\n Hash.call(this, 64, 56)\n}\n\ninherits(Sha256, Hash)\n\nSha256.prototype.init = function () {\n this._a = 0x6a09e667\n this._b = 0xbb67ae85\n this._c = 0x3c6ef372\n this._d = 0xa54ff53a\n this._e = 0x510e527f\n this._f = 0x9b05688c\n this._g = 0x1f83d9ab\n this._h = 0x5be0cd19\n\n return this\n}\n\nfunction ch (x, y, z) {\n return z ^ (x & (y ^ z))\n}\n\nfunction maj (x, y, z) {\n return (x & y) | (z & (x | y))\n}\n\nfunction sigma0 (x) {\n return (x >>> 2 | x << 30) ^ (x >>> 13 | x << 19) ^ (x >>> 22 | x << 10)\n}\n\nfunction sigma1 (x) {\n return (x >>> 6 | x << 26) ^ (x >>> 11 | x << 21) ^ (x >>> 25 | x << 7)\n}\n\nfunction gamma0 (x) {\n return (x >>> 7 | x << 25) ^ (x >>> 18 | x << 14) ^ (x >>> 3)\n}\n\nfunction gamma1 (x) {\n return (x >>> 17 | x << 15) ^ (x >>> 19 | x << 13) ^ (x >>> 10)\n}\n\nSha256.prototype._update = function (M) {\n var W = this._w\n\n var a = this._a | 0\n var b = this._b | 0\n var c = this._c | 0\n var d = this._d | 0\n var e = this._e | 0\n var f = this._f | 0\n var g = this._g | 0\n var h = this._h | 0\n\n for (var i = 0; i < 16; ++i) W[i] = M.readInt32BE(i * 4)\n for (; i < 64; ++i) W[i] = (gamma1(W[i - 2]) + W[i - 7] + gamma0(W[i - 15]) + W[i - 16]) | 0\n\n for (var j = 0; j < 64; ++j) {\n var T1 = (h + sigma1(e) + ch(e, f, g) + K[j] + W[j]) | 0\n var T2 = (sigma0(a) + maj(a, b, c)) | 0\n\n h = g\n g = f\n f = e\n e = (d + T1) | 0\n d = c\n c = b\n b = a\n a = (T1 + T2) | 0\n }\n\n this._a = (a + this._a) | 0\n this._b = (b + this._b) | 0\n this._c = (c + this._c) | 0\n this._d = (d + this._d) | 0\n this._e = (e + this._e) | 0\n this._f = (f + this._f) | 0\n this._g = (g + this._g) | 0\n this._h = (h + this._h) | 0\n}\n\nSha256.prototype._hash = function () {\n var H = Buffer.allocUnsafe(32)\n\n H.writeInt32BE(this._a, 0)\n H.writeInt32BE(this._b, 4)\n H.writeInt32BE(this._c, 8)\n H.writeInt32BE(this._d, 12)\n H.writeInt32BE(this._e, 16)\n H.writeInt32BE(this._f, 20)\n H.writeInt32BE(this._g, 24)\n H.writeInt32BE(this._h, 28)\n\n return H\n}\n\nmodule.exports = Sha256\n","var inherits = require('inherits')\nvar Hash = require('./hash')\nvar Buffer = require('safe-buffer').Buffer\n\nvar K = [\n 0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd,\n 0xb5c0fbcf, 0xec4d3b2f, 0xe9b5dba5, 0x8189dbbc,\n 0x3956c25b, 0xf348b538, 0x59f111f1, 0xb605d019,\n 0x923f82a4, 0xaf194f9b, 0xab1c5ed5, 0xda6d8118,\n 0xd807aa98, 0xa3030242, 0x12835b01, 0x45706fbe,\n 0x243185be, 0x4ee4b28c, 0x550c7dc3, 0xd5ffb4e2,\n 0x72be5d74, 0xf27b896f, 0x80deb1fe, 0x3b1696b1,\n 0x9bdc06a7, 0x25c71235, 0xc19bf174, 0xcf692694,\n 0xe49b69c1, 0x9ef14ad2, 0xefbe4786, 0x384f25e3,\n 0x0fc19dc6, 0x8b8cd5b5, 0x240ca1cc, 0x77ac9c65,\n 0x2de92c6f, 0x592b0275, 0x4a7484aa, 0x6ea6e483,\n 0x5cb0a9dc, 0xbd41fbd4, 0x76f988da, 0x831153b5,\n 0x983e5152, 0xee66dfab, 0xa831c66d, 0x2db43210,\n 0xb00327c8, 0x98fb213f, 0xbf597fc7, 0xbeef0ee4,\n 0xc6e00bf3, 0x3da88fc2, 0xd5a79147, 0x930aa725,\n 0x06ca6351, 0xe003826f, 0x14292967, 0x0a0e6e70,\n 0x27b70a85, 0x46d22ffc, 0x2e1b2138, 0x5c26c926,\n 0x4d2c6dfc, 0x5ac42aed, 0x53380d13, 0x9d95b3df,\n 0x650a7354, 0x8baf63de, 0x766a0abb, 0x3c77b2a8,\n 0x81c2c92e, 0x47edaee6, 0x92722c85, 0x1482353b,\n 0xa2bfe8a1, 0x4cf10364, 0xa81a664b, 0xbc423001,\n 0xc24b8b70, 0xd0f89791, 0xc76c51a3, 0x0654be30,\n 0xd192e819, 0xd6ef5218, 0xd6990624, 0x5565a910,\n 0xf40e3585, 0x5771202a, 0x106aa070, 0x32bbd1b8,\n 0x19a4c116, 0xb8d2d0c8, 0x1e376c08, 0x5141ab53,\n 0x2748774c, 0xdf8eeb99, 0x34b0bcb5, 0xe19b48a8,\n 0x391c0cb3, 0xc5c95a63, 0x4ed8aa4a, 0xe3418acb,\n 0x5b9cca4f, 0x7763e373, 0x682e6ff3, 0xd6b2b8a3,\n 0x748f82ee, 0x5defb2fc, 0x78a5636f, 0x43172f60,\n 0x84c87814, 0xa1f0ab72, 0x8cc70208, 0x1a6439ec,\n 0x90befffa, 0x23631e28, 0xa4506ceb, 0xde82bde9,\n 0xbef9a3f7, 0xb2c67915, 0xc67178f2, 0xe372532b,\n 0xca273ece, 0xea26619c, 0xd186b8c7, 0x21c0c207,\n 0xeada7dd6, 0xcde0eb1e, 0xf57d4f7f, 0xee6ed178,\n 0x06f067aa, 0x72176fba, 0x0a637dc5, 0xa2c898a6,\n 0x113f9804, 0xbef90dae, 0x1b710b35, 0x131c471b,\n 0x28db77f5, 0x23047d84, 0x32caab7b, 0x40c72493,\n 0x3c9ebe0a, 0x15c9bebc, 0x431d67c4, 0x9c100d4c,\n 0x4cc5d4be, 0xcb3e42b6, 0x597f299c, 0xfc657e2a,\n 0x5fcb6fab, 0x3ad6faec, 0x6c44198c, 0x4a475817\n]\n\nvar W = new Array(160)\n\nfunction Sha512 () {\n this.init()\n this._w = W\n\n Hash.call(this, 128, 112)\n}\n\ninherits(Sha512, Hash)\n\nSha512.prototype.init = function () {\n this._ah = 0x6a09e667\n this._bh = 0xbb67ae85\n this._ch = 0x3c6ef372\n this._dh = 0xa54ff53a\n this._eh = 0x510e527f\n this._fh = 0x9b05688c\n this._gh = 0x1f83d9ab\n this._hh = 0x5be0cd19\n\n this._al = 0xf3bcc908\n this._bl = 0x84caa73b\n this._cl = 0xfe94f82b\n this._dl = 0x5f1d36f1\n this._el = 0xade682d1\n this._fl = 0x2b3e6c1f\n this._gl = 0xfb41bd6b\n this._hl = 0x137e2179\n\n return this\n}\n\nfunction Ch (x, y, z) {\n return z ^ (x & (y ^ z))\n}\n\nfunction maj (x, y, z) {\n return (x & y) | (z & (x | y))\n}\n\nfunction sigma0 (x, xl) {\n return (x >>> 28 | xl << 4) ^ (xl >>> 2 | x << 30) ^ (xl >>> 7 | x << 25)\n}\n\nfunction sigma1 (x, xl) {\n return (x >>> 14 | xl << 18) ^ (x >>> 18 | xl << 14) ^ (xl >>> 9 | x << 23)\n}\n\nfunction Gamma0 (x, xl) {\n return (x >>> 1 | xl << 31) ^ (x >>> 8 | xl << 24) ^ (x >>> 7)\n}\n\nfunction Gamma0l (x, xl) {\n return (x >>> 1 | xl << 31) ^ (x >>> 8 | xl << 24) ^ (x >>> 7 | xl << 25)\n}\n\nfunction Gamma1 (x, xl) {\n return (x >>> 19 | xl << 13) ^ (xl >>> 29 | x << 3) ^ (x >>> 6)\n}\n\nfunction Gamma1l (x, xl) {\n return (x >>> 19 | xl << 13) ^ (xl >>> 29 | x << 3) ^ (x >>> 6 | xl << 26)\n}\n\nfunction getCarry (a, b) {\n return (a >>> 0) < (b >>> 0) ? 1 : 0\n}\n\nSha512.prototype._update = function (M) {\n var W = this._w\n\n var ah = this._ah | 0\n var bh = this._bh | 0\n var ch = this._ch | 0\n var dh = this._dh | 0\n var eh = this._eh | 0\n var fh = this._fh | 0\n var gh = this._gh | 0\n var hh = this._hh | 0\n\n var al = this._al | 0\n var bl = this._bl | 0\n var cl = this._cl | 0\n var dl = this._dl | 0\n var el = this._el | 0\n var fl = this._fl | 0\n var gl = this._gl | 0\n var hl = this._hl | 0\n\n for (var i = 0; i < 32; i += 2) {\n W[i] = M.readInt32BE(i * 4)\n W[i + 1] = M.readInt32BE(i * 4 + 4)\n }\n for (; i < 160; i += 2) {\n var xh = W[i - 15 * 2]\n var xl = W[i - 15 * 2 + 1]\n var gamma0 = Gamma0(xh, xl)\n var gamma0l = Gamma0l(xl, xh)\n\n xh = W[i - 2 * 2]\n xl = W[i - 2 * 2 + 1]\n var gamma1 = Gamma1(xh, xl)\n var gamma1l = Gamma1l(xl, xh)\n\n // W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]\n var Wi7h = W[i - 7 * 2]\n var Wi7l = W[i - 7 * 2 + 1]\n\n var Wi16h = W[i - 16 * 2]\n var Wi16l = W[i - 16 * 2 + 1]\n\n var Wil = (gamma0l + Wi7l) | 0\n var Wih = (gamma0 + Wi7h + getCarry(Wil, gamma0l)) | 0\n Wil = (Wil + gamma1l) | 0\n Wih = (Wih + gamma1 + getCarry(Wil, gamma1l)) | 0\n Wil = (Wil + Wi16l) | 0\n Wih = (Wih + Wi16h + getCarry(Wil, Wi16l)) | 0\n\n W[i] = Wih\n W[i + 1] = Wil\n }\n\n for (var j = 0; j < 160; j += 2) {\n Wih = W[j]\n Wil = W[j + 1]\n\n var majh = maj(ah, bh, ch)\n var majl = maj(al, bl, cl)\n\n var sigma0h = sigma0(ah, al)\n var sigma0l = sigma0(al, ah)\n var sigma1h = sigma1(eh, el)\n var sigma1l = sigma1(el, eh)\n\n // t1 = h + sigma1 + ch + K[j] + W[j]\n var Kih = K[j]\n var Kil = K[j + 1]\n\n var chh = Ch(eh, fh, gh)\n var chl = Ch(el, fl, gl)\n\n var t1l = (hl + sigma1l) | 0\n var t1h = (hh + sigma1h + getCarry(t1l, hl)) | 0\n t1l = (t1l + chl) | 0\n t1h = (t1h + chh + getCarry(t1l, chl)) | 0\n t1l = (t1l + Kil) | 0\n t1h = (t1h + Kih + getCarry(t1l, Kil)) | 0\n t1l = (t1l + Wil) | 0\n t1h = (t1h + Wih + getCarry(t1l, Wil)) | 0\n\n // t2 = sigma0 + maj\n var t2l = (sigma0l + majl) | 0\n var t2h = (sigma0h + majh + getCarry(t2l, sigma0l)) | 0\n\n hh = gh\n hl = gl\n gh = fh\n gl = fl\n fh = eh\n fl = el\n el = (dl + t1l) | 0\n eh = (dh + t1h + getCarry(el, dl)) | 0\n dh = ch\n dl = cl\n ch = bh\n cl = bl\n bh = ah\n bl = al\n al = (t1l + t2l) | 0\n ah = (t1h + t2h + getCarry(al, t1l)) | 0\n }\n\n this._al = (this._al + al) | 0\n this._bl = (this._bl + bl) | 0\n this._cl = (this._cl + cl) | 0\n this._dl = (this._dl + dl) | 0\n this._el = (this._el + el) | 0\n this._fl = (this._fl + fl) | 0\n this._gl = (this._gl + gl) | 0\n this._hl = (this._hl + hl) | 0\n\n this._ah = (this._ah + ah + getCarry(this._al, al)) | 0\n this._bh = (this._bh + bh + getCarry(this._bl, bl)) | 0\n this._ch = (this._ch + ch + getCarry(this._cl, cl)) | 0\n this._dh = (this._dh + dh + getCarry(this._dl, dl)) | 0\n this._eh = (this._eh + eh + getCarry(this._el, el)) | 0\n this._fh = (this._fh + fh + getCarry(this._fl, fl)) | 0\n this._gh = (this._gh + gh + getCarry(this._gl, gl)) | 0\n this._hh = (this._hh + hh + getCarry(this._hl, hl)) | 0\n}\n\nSha512.prototype._hash = function () {\n var H = Buffer.allocUnsafe(64)\n\n function writeInt64BE (h, l, offset) {\n H.writeInt32BE(h, offset)\n H.writeInt32BE(l, offset + 4)\n }\n\n writeInt64BE(this._ah, this._al, 0)\n writeInt64BE(this._bh, this._bl, 8)\n writeInt64BE(this._ch, this._cl, 16)\n writeInt64BE(this._dh, this._dl, 24)\n writeInt64BE(this._eh, this._el, 32)\n writeInt64BE(this._fh, this._fl, 40)\n writeInt64BE(this._gh, this._gl, 48)\n writeInt64BE(this._hh, this._hl, 56)\n\n return H\n}\n\nmodule.exports = Sha512\n","'use strict'\nvar inherits = require('inherits')\nvar Legacy = require('./legacy')\nvar Base = require('cipher-base')\nvar Buffer = require('safe-buffer').Buffer\nvar md5 = require('create-hash/md5')\nvar RIPEMD160 = require('ripemd160')\n\nvar sha = require('sha.js')\n\nvar ZEROS = Buffer.alloc(128)\n\nfunction Hmac (alg, key) {\n Base.call(this, 'digest')\n if (typeof key === 'string') {\n key = Buffer.from(key)\n }\n\n var blocksize = (alg === 'sha512' || alg === 'sha384') ? 128 : 64\n\n this._alg = alg\n this._key = key\n if (key.length > blocksize) {\n var hash = alg === 'rmd160' ? new RIPEMD160() : sha(alg)\n key = hash.update(key).digest()\n } else if (key.length < blocksize) {\n key = Buffer.concat([key, ZEROS], blocksize)\n }\n\n var ipad = this._ipad = Buffer.allocUnsafe(blocksize)\n var opad = this._opad = Buffer.allocUnsafe(blocksize)\n\n for (var i = 0; i < blocksize; i++) {\n ipad[i] = key[i] ^ 0x36\n opad[i] = key[i] ^ 0x5C\n }\n this._hash = alg === 'rmd160' ? new RIPEMD160() : sha(alg)\n this._hash.update(ipad)\n}\n\ninherits(Hmac, Base)\n\nHmac.prototype._update = function (data) {\n this._hash.update(data)\n}\n\nHmac.prototype._final = function () {\n var h = this._hash.digest()\n var hash = this._alg === 'rmd160' ? new RIPEMD160() : sha(this._alg)\n return hash.update(this._opad).update(h).digest()\n}\n\nmodule.exports = function createHmac (alg, key) {\n alg = alg.toLowerCase()\n if (alg === 'rmd160' || alg === 'ripemd160') {\n return new Hmac('rmd160', key)\n }\n if (alg === 'md5') {\n return new Legacy(md5, key)\n }\n return new Hmac(alg, key)\n}\n","var MD5 = require('md5.js')\n\nmodule.exports = function (buffer) {\n return new MD5().update(buffer).digest()\n}\n","exports.pbkdf2 = require('./lib/async')\nexports.pbkdf2Sync = require('./lib/sync')\n","var MAX_ALLOC = Math.pow(2, 30) - 1 // default in iojs\n\nfunction checkBuffer (buf, name) {\n if (typeof buf !== 'string' && !Buffer.isBuffer(buf)) {\n throw new TypeError(name + ' must be a buffer or string')\n }\n}\n\nmodule.exports = function (password, salt, iterations, keylen) {\n checkBuffer(password, 'Password')\n checkBuffer(salt, 'Salt')\n\n if (typeof iterations !== 'number') {\n throw new TypeError('Iterations not a number')\n }\n\n if (iterations < 0) {\n throw new TypeError('Bad iterations')\n }\n\n if (typeof keylen !== 'number') {\n throw new TypeError('Key length not a number')\n }\n\n if (keylen < 0 || keylen > MAX_ALLOC || keylen !== keylen) { /* eslint no-self-compare: 0 */\n throw new TypeError('Bad key length')\n }\n}\n","var defaultEncoding\n/* istanbul ignore next */\nif (process.browser) {\n defaultEncoding = 'utf-8'\n} else {\n var pVersionMajor = parseInt(process.version.split('.')[0].slice(1), 10)\n\n defaultEncoding = pVersionMajor >= 6 ? 'utf-8' : 'binary'\n}\nmodule.exports = defaultEncoding\n","var md5 = require('create-hash/md5')\nvar RIPEMD160 = require('ripemd160')\nvar sha = require('sha.js')\n\nvar checkParameters = require('./precondition')\nvar defaultEncoding = require('./default-encoding')\nvar Buffer = require('safe-buffer').Buffer\nvar ZEROS = Buffer.alloc(128)\nvar sizes = {\n md5: 16,\n sha1: 20,\n sha224: 28,\n sha256: 32,\n sha384: 48,\n sha512: 64,\n rmd160: 20,\n ripemd160: 20\n}\n\nfunction Hmac (alg, key, saltLen) {\n var hash = getDigest(alg)\n var blocksize = (alg === 'sha512' || alg === 'sha384') ? 128 : 64\n\n if (key.length > blocksize) {\n key = hash(key)\n } else if (key.length < blocksize) {\n key = Buffer.concat([key, ZEROS], blocksize)\n }\n\n var ipad = Buffer.allocUnsafe(blocksize + sizes[alg])\n var opad = Buffer.allocUnsafe(blocksize + sizes[alg])\n for (var i = 0; i < blocksize; i++) {\n ipad[i] = key[i] ^ 0x36\n opad[i] = key[i] ^ 0x5C\n }\n\n var ipad1 = Buffer.allocUnsafe(blocksize + saltLen + 4)\n ipad.copy(ipad1, 0, 0, blocksize)\n this.ipad1 = ipad1\n this.ipad2 = ipad\n this.opad = opad\n this.alg = alg\n this.blocksize = blocksize\n this.hash = hash\n this.size = sizes[alg]\n}\n\nHmac.prototype.run = function (data, ipad) {\n data.copy(ipad, this.blocksize)\n var h = this.hash(ipad)\n h.copy(this.opad, this.blocksize)\n return this.hash(this.opad)\n}\n\nfunction getDigest (alg) {\n function shaFunc (data) {\n return sha(alg).update(data).digest()\n }\n function rmd160Func (data) {\n return new RIPEMD160().update(data).digest()\n }\n\n if (alg === 'rmd160' || alg === 'ripemd160') return rmd160Func\n if (alg === 'md5') return md5\n return shaFunc\n}\n\nfunction pbkdf2 (password, salt, iterations, keylen, digest) {\n checkParameters(password, salt, iterations, keylen)\n\n if (!Buffer.isBuffer(password)) password = Buffer.from(password, defaultEncoding)\n if (!Buffer.isBuffer(salt)) salt = Buffer.from(salt, defaultEncoding)\n\n digest = digest || 'sha1'\n\n var hmac = new Hmac(digest, password, salt.length)\n\n var DK = Buffer.allocUnsafe(keylen)\n var block1 = Buffer.allocUnsafe(salt.length + 4)\n salt.copy(block1, 0, 0, salt.length)\n\n var destPos = 0\n var hLen = sizes[digest]\n var l = Math.ceil(keylen / hLen)\n\n for (var i = 1; i <= l; i++) {\n block1.writeUInt32BE(i, salt.length)\n\n var T = hmac.run(block1, hmac.ipad1)\n var U = T\n\n for (var j = 1; j < iterations; j++) {\n U = hmac.run(U, hmac.ipad2)\n for (var k = 0; k < hLen; k++) T[k] ^= U[k]\n }\n\n T.copy(DK, destPos)\n destPos += hLen\n }\n\n return DK\n}\n\nmodule.exports = pbkdf2\n","'use strict';\n\nexports.readUInt32BE = function readUInt32BE(bytes, off) {\n var res = (bytes[0 + off] << 24) |\n (bytes[1 + off] << 16) |\n (bytes[2 + off] << 8) |\n bytes[3 + off];\n return res >>> 0;\n};\n\nexports.writeUInt32BE = function writeUInt32BE(bytes, value, off) {\n bytes[0 + off] = value >>> 24;\n bytes[1 + off] = (value >>> 16) & 0xff;\n bytes[2 + off] = (value >>> 8) & 0xff;\n bytes[3 + off] = value & 0xff;\n};\n\nexports.ip = function ip(inL, inR, out, off) {\n var outL = 0;\n var outR = 0;\n\n for (var i = 6; i >= 0; i -= 2) {\n for (var j = 0; j <= 24; j += 8) {\n outL <<= 1;\n outL |= (inR >>> (j + i)) & 1;\n }\n for (var j = 0; j <= 24; j += 8) {\n outL <<= 1;\n outL |= (inL >>> (j + i)) & 1;\n }\n }\n\n for (var i = 6; i >= 0; i -= 2) {\n for (var j = 1; j <= 25; j += 8) {\n outR <<= 1;\n outR |= (inR >>> (j + i)) & 1;\n }\n for (var j = 1; j <= 25; j += 8) {\n outR <<= 1;\n outR |= (inL >>> (j + i)) & 1;\n }\n }\n\n out[off + 0] = outL >>> 0;\n out[off + 1] = outR >>> 0;\n};\n\nexports.rip = function rip(inL, inR, out, off) {\n var outL = 0;\n var outR = 0;\n\n for (var i = 0; i < 4; i++) {\n for (var j = 24; j >= 0; j -= 8) {\n outL <<= 1;\n outL |= (inR >>> (j + i)) & 1;\n outL <<= 1;\n outL |= (inL >>> (j + i)) & 1;\n }\n }\n for (var i = 4; i < 8; i++) {\n for (var j = 24; j >= 0; j -= 8) {\n outR <<= 1;\n outR |= (inR >>> (j + i)) & 1;\n outR <<= 1;\n outR |= (inL >>> (j + i)) & 1;\n }\n }\n\n out[off + 0] = outL >>> 0;\n out[off + 1] = outR >>> 0;\n};\n\nexports.pc1 = function pc1(inL, inR, out, off) {\n var outL = 0;\n var outR = 0;\n\n // 7, 15, 23, 31, 39, 47, 55, 63\n // 6, 14, 22, 30, 39, 47, 55, 63\n // 5, 13, 21, 29, 39, 47, 55, 63\n // 4, 12, 20, 28\n for (var i = 7; i >= 5; i--) {\n for (var j = 0; j <= 24; j += 8) {\n outL <<= 1;\n outL |= (inR >> (j + i)) & 1;\n }\n for (var j = 0; j <= 24; j += 8) {\n outL <<= 1;\n outL |= (inL >> (j + i)) & 1;\n }\n }\n for (var j = 0; j <= 24; j += 8) {\n outL <<= 1;\n outL |= (inR >> (j + i)) & 1;\n }\n\n // 1, 9, 17, 25, 33, 41, 49, 57\n // 2, 10, 18, 26, 34, 42, 50, 58\n // 3, 11, 19, 27, 35, 43, 51, 59\n // 36, 44, 52, 60\n for (var i = 1; i <= 3; i++) {\n for (var j = 0; j <= 24; j += 8) {\n outR <<= 1;\n outR |= (inR >> (j + i)) & 1;\n }\n for (var j = 0; j <= 24; j += 8) {\n outR <<= 1;\n outR |= (inL >> (j + i)) & 1;\n }\n }\n for (var j = 0; j <= 24; j += 8) {\n outR <<= 1;\n outR |= (inL >> (j + i)) & 1;\n }\n\n out[off + 0] = outL >>> 0;\n out[off + 1] = outR >>> 0;\n};\n\nexports.r28shl = function r28shl(num, shift) {\n return ((num << shift) & 0xfffffff) | (num >>> (28 - shift));\n};\n\nvar pc2table = [\n // inL => outL\n 14, 11, 17, 4, 27, 23, 25, 0,\n 13, 22, 7, 18, 5, 9, 16, 24,\n 2, 20, 12, 21, 1, 8, 15, 26,\n\n // inR => outR\n 15, 4, 25, 19, 9, 1, 26, 16,\n 5, 11, 23, 8, 12, 7, 17, 0,\n 22, 3, 10, 14, 6, 20, 27, 24\n];\n\nexports.pc2 = function pc2(inL, inR, out, off) {\n var outL = 0;\n var outR = 0;\n\n var len = pc2table.length >>> 1;\n for (var i = 0; i < len; i++) {\n outL <<= 1;\n outL |= (inL >>> pc2table[i]) & 0x1;\n }\n for (var i = len; i < pc2table.length; i++) {\n outR <<= 1;\n outR |= (inR >>> pc2table[i]) & 0x1;\n }\n\n out[off + 0] = outL >>> 0;\n out[off + 1] = outR >>> 0;\n};\n\nexports.expand = function expand(r, out, off) {\n var outL = 0;\n var outR = 0;\n\n outL = ((r & 1) << 5) | (r >>> 27);\n for (var i = 23; i >= 15; i -= 4) {\n outL <<= 6;\n outL |= (r >>> i) & 0x3f;\n }\n for (var i = 11; i >= 3; i -= 4) {\n outR |= (r >>> i) & 0x3f;\n outR <<= 6;\n }\n outR |= ((r & 0x1f) << 1) | (r >>> 31);\n\n out[off + 0] = outL >>> 0;\n out[off + 1] = outR >>> 0;\n};\n\nvar sTable = [\n 14, 0, 4, 15, 13, 7, 1, 4, 2, 14, 15, 2, 11, 13, 8, 1,\n 3, 10, 10, 6, 6, 12, 12, 11, 5, 9, 9, 5, 0, 3, 7, 8,\n 4, 15, 1, 12, 14, 8, 8, 2, 13, 4, 6, 9, 2, 1, 11, 7,\n 15, 5, 12, 11, 9, 3, 7, 14, 3, 10, 10, 0, 5, 6, 0, 13,\n\n 15, 3, 1, 13, 8, 4, 14, 7, 6, 15, 11, 2, 3, 8, 4, 14,\n 9, 12, 7, 0, 2, 1, 13, 10, 12, 6, 0, 9, 5, 11, 10, 5,\n 0, 13, 14, 8, 7, 10, 11, 1, 10, 3, 4, 15, 13, 4, 1, 2,\n 5, 11, 8, 6, 12, 7, 6, 12, 9, 0, 3, 5, 2, 14, 15, 9,\n\n 10, 13, 0, 7, 9, 0, 14, 9, 6, 3, 3, 4, 15, 6, 5, 10,\n 1, 2, 13, 8, 12, 5, 7, 14, 11, 12, 4, 11, 2, 15, 8, 1,\n 13, 1, 6, 10, 4, 13, 9, 0, 8, 6, 15, 9, 3, 8, 0, 7,\n 11, 4, 1, 15, 2, 14, 12, 3, 5, 11, 10, 5, 14, 2, 7, 12,\n\n 7, 13, 13, 8, 14, 11, 3, 5, 0, 6, 6, 15, 9, 0, 10, 3,\n 1, 4, 2, 7, 8, 2, 5, 12, 11, 1, 12, 10, 4, 14, 15, 9,\n 10, 3, 6, 15, 9, 0, 0, 6, 12, 10, 11, 1, 7, 13, 13, 8,\n 15, 9, 1, 4, 3, 5, 14, 11, 5, 12, 2, 7, 8, 2, 4, 14,\n\n 2, 14, 12, 11, 4, 2, 1, 12, 7, 4, 10, 7, 11, 13, 6, 1,\n 8, 5, 5, 0, 3, 15, 15, 10, 13, 3, 0, 9, 14, 8, 9, 6,\n 4, 11, 2, 8, 1, 12, 11, 7, 10, 1, 13, 14, 7, 2, 8, 13,\n 15, 6, 9, 15, 12, 0, 5, 9, 6, 10, 3, 4, 0, 5, 14, 3,\n\n 12, 10, 1, 15, 10, 4, 15, 2, 9, 7, 2, 12, 6, 9, 8, 5,\n 0, 6, 13, 1, 3, 13, 4, 14, 14, 0, 7, 11, 5, 3, 11, 8,\n 9, 4, 14, 3, 15, 2, 5, 12, 2, 9, 8, 5, 12, 15, 3, 10,\n 7, 11, 0, 14, 4, 1, 10, 7, 1, 6, 13, 0, 11, 8, 6, 13,\n\n 4, 13, 11, 0, 2, 11, 14, 7, 15, 4, 0, 9, 8, 1, 13, 10,\n 3, 14, 12, 3, 9, 5, 7, 12, 5, 2, 10, 15, 6, 8, 1, 6,\n 1, 6, 4, 11, 11, 13, 13, 8, 12, 1, 3, 4, 7, 10, 14, 7,\n 10, 9, 15, 5, 6, 0, 8, 15, 0, 14, 5, 2, 9, 3, 2, 12,\n\n 13, 1, 2, 15, 8, 13, 4, 8, 6, 10, 15, 3, 11, 7, 1, 4,\n 10, 12, 9, 5, 3, 6, 14, 11, 5, 0, 0, 14, 12, 9, 7, 2,\n 7, 2, 11, 1, 4, 14, 1, 7, 9, 4, 12, 10, 14, 8, 2, 13,\n 0, 15, 6, 12, 10, 9, 13, 0, 15, 3, 3, 5, 5, 6, 8, 11\n];\n\nexports.substitute = function substitute(inL, inR) {\n var out = 0;\n for (var i = 0; i < 4; i++) {\n var b = (inL >>> (18 - i * 6)) & 0x3f;\n var sb = sTable[i * 0x40 + b];\n\n out <<= 4;\n out |= sb;\n }\n for (var i = 0; i < 4; i++) {\n var b = (inR >>> (18 - i * 6)) & 0x3f;\n var sb = sTable[4 * 0x40 + i * 0x40 + b];\n\n out <<= 4;\n out |= sb;\n }\n return out >>> 0;\n};\n\nvar permuteTable = [\n 16, 25, 12, 11, 3, 20, 4, 15, 31, 17, 9, 6, 27, 14, 1, 22,\n 30, 24, 8, 18, 0, 5, 29, 23, 13, 19, 2, 26, 10, 21, 28, 7\n];\n\nexports.permute = function permute(num) {\n var out = 0;\n for (var i = 0; i < permuteTable.length; i++) {\n out <<= 1;\n out |= (num >>> permuteTable[i]) & 0x1;\n }\n return out >>> 0;\n};\n\nexports.padSplit = function padSplit(num, size, group) {\n var str = num.toString(2);\n while (str.length < size)\n str = '0' + str;\n\n var out = [];\n for (var i = 0; i < size; i += group)\n out.push(str.slice(i, i + group));\n return out.join(' ');\n};\n","'use strict';\n\nvar assert = require('minimalistic-assert');\nvar inherits = require('inherits');\n\nvar utils = require('./utils');\nvar Cipher = require('./cipher');\n\nfunction DESState() {\n this.tmp = new Array(2);\n this.keys = null;\n}\n\nfunction DES(options) {\n Cipher.call(this, options);\n\n var state = new DESState();\n this._desState = state;\n\n this.deriveKeys(state, options.key);\n}\ninherits(DES, Cipher);\nmodule.exports = DES;\n\nDES.create = function create(options) {\n return new DES(options);\n};\n\nvar shiftTable = [\n 1, 1, 2, 2, 2, 2, 2, 2,\n 1, 2, 2, 2, 2, 2, 2, 1\n];\n\nDES.prototype.deriveKeys = function deriveKeys(state, key) {\n state.keys = new Array(16 * 2);\n\n assert.equal(key.length, this.blockSize, 'Invalid key length');\n\n var kL = utils.readUInt32BE(key, 0);\n var kR = utils.readUInt32BE(key, 4);\n\n utils.pc1(kL, kR, state.tmp, 0);\n kL = state.tmp[0];\n kR = state.tmp[1];\n for (var i = 0; i < state.keys.length; i += 2) {\n var shift = shiftTable[i >>> 1];\n kL = utils.r28shl(kL, shift);\n kR = utils.r28shl(kR, shift);\n utils.pc2(kL, kR, state.keys, i);\n }\n};\n\nDES.prototype._update = function _update(inp, inOff, out, outOff) {\n var state = this._desState;\n\n var l = utils.readUInt32BE(inp, inOff);\n var r = utils.readUInt32BE(inp, inOff + 4);\n\n // Initial Permutation\n utils.ip(l, r, state.tmp, 0);\n l = state.tmp[0];\n r = state.tmp[1];\n\n if (this.type === 'encrypt')\n this._encrypt(state, l, r, state.tmp, 0);\n else\n this._decrypt(state, l, r, state.tmp, 0);\n\n l = state.tmp[0];\n r = state.tmp[1];\n\n utils.writeUInt32BE(out, l, outOff);\n utils.writeUInt32BE(out, r, outOff + 4);\n};\n\nDES.prototype._pad = function _pad(buffer, off) {\n var value = buffer.length - off;\n for (var i = off; i < buffer.length; i++)\n buffer[i] = value;\n\n return true;\n};\n\nDES.prototype._unpad = function _unpad(buffer) {\n var pad = buffer[buffer.length - 1];\n for (var i = buffer.length - pad; i < buffer.length; i++)\n assert.equal(buffer[i], pad);\n\n return buffer.slice(0, buffer.length - pad);\n};\n\nDES.prototype._encrypt = function _encrypt(state, lStart, rStart, out, off) {\n var l = lStart;\n var r = rStart;\n\n // Apply f() x16 times\n for (var i = 0; i < state.keys.length; i += 2) {\n var keyL = state.keys[i];\n var keyR = state.keys[i + 1];\n\n // f(r, k)\n utils.expand(r, state.tmp, 0);\n\n keyL ^= state.tmp[0];\n keyR ^= state.tmp[1];\n var s = utils.substitute(keyL, keyR);\n var f = utils.permute(s);\n\n var t = r;\n r = (l ^ f) >>> 0;\n l = t;\n }\n\n // Reverse Initial Permutation\n utils.rip(r, l, out, off);\n};\n\nDES.prototype._decrypt = function _decrypt(state, lStart, rStart, out, off) {\n var l = rStart;\n var r = lStart;\n\n // Apply f() x16 times\n for (var i = state.keys.length - 2; i >= 0; i -= 2) {\n var keyL = state.keys[i];\n var keyR = state.keys[i + 1];\n\n // f(r, k)\n utils.expand(l, state.tmp, 0);\n\n keyL ^= state.tmp[0];\n keyR ^= state.tmp[1];\n var s = utils.substitute(keyL, keyR);\n var f = utils.permute(s);\n\n var t = l;\n l = (r ^ f) >>> 0;\n r = t;\n }\n\n // Reverse Initial Permutation\n utils.rip(l, r, out, off);\n};\n","var xor = require('buffer-xor')\nvar Buffer = require('safe-buffer').Buffer\nvar incr32 = require('../incr32')\n\nfunction getBlock (self) {\n var out = self._cipher.encryptBlockRaw(self._prev)\n incr32(self._prev)\n return out\n}\n\nvar blockSize = 16\nexports.encrypt = function (self, chunk) {\n var chunkNum = Math.ceil(chunk.length / blockSize)\n var start = self._cache.length\n self._cache = Buffer.concat([\n self._cache,\n Buffer.allocUnsafe(chunkNum * blockSize)\n ])\n for (var i = 0; i < chunkNum; i++) {\n var out = getBlock(self)\n var offset = start + i * blockSize\n self._cache.writeUInt32BE(out[0], offset + 0)\n self._cache.writeUInt32BE(out[1], offset + 4)\n self._cache.writeUInt32BE(out[2], offset + 8)\n self._cache.writeUInt32BE(out[3], offset + 12)\n }\n var pad = self._cache.slice(0, chunk.length)\n self._cache = self._cache.slice(chunk.length)\n return xor(chunk, pad)\n}\n","function incr32 (iv) {\n var len = iv.length\n var item\n while (len--) {\n item = iv.readUInt8(len)\n if (item === 255) {\n iv.writeUInt8(0, len)\n } else {\n item++\n iv.writeUInt8(item, len)\n break\n }\n }\n}\nmodule.exports = incr32\n","var aes = require('./aes')\nvar Buffer = require('safe-buffer').Buffer\nvar Transform = require('cipher-base')\nvar inherits = require('inherits')\nvar GHASH = require('./ghash')\nvar xor = require('buffer-xor')\nvar incr32 = require('./incr32')\n\nfunction xorTest (a, b) {\n var out = 0\n if (a.length !== b.length) out++\n\n var len = Math.min(a.length, b.length)\n for (var i = 0; i < len; ++i) {\n out += (a[i] ^ b[i])\n }\n\n return out\n}\n\nfunction calcIv (self, iv, ck) {\n if (iv.length === 12) {\n self._finID = Buffer.concat([iv, Buffer.from([0, 0, 0, 1])])\n return Buffer.concat([iv, Buffer.from([0, 0, 0, 2])])\n }\n var ghash = new GHASH(ck)\n var len = iv.length\n var toPad = len % 16\n ghash.update(iv)\n if (toPad) {\n toPad = 16 - toPad\n ghash.update(Buffer.alloc(toPad, 0))\n }\n ghash.update(Buffer.alloc(8, 0))\n var ivBits = len * 8\n var tail = Buffer.alloc(8)\n tail.writeUIntBE(ivBits, 0, 8)\n ghash.update(tail)\n self._finID = ghash.state\n var out = Buffer.from(self._finID)\n incr32(out)\n return out\n}\nfunction StreamCipher (mode, key, iv, decrypt) {\n Transform.call(this)\n\n var h = Buffer.alloc(4, 0)\n\n this._cipher = new aes.AES(key)\n var ck = this._cipher.encryptBlock(h)\n this._ghash = new GHASH(ck)\n iv = calcIv(this, iv, ck)\n\n this._prev = Buffer.from(iv)\n this._cache = Buffer.allocUnsafe(0)\n this._secCache = Buffer.allocUnsafe(0)\n this._decrypt = decrypt\n this._alen = 0\n this._len = 0\n this._mode = mode\n\n this._authTag = null\n this._called = false\n}\n\ninherits(StreamCipher, Transform)\n\nStreamCipher.prototype._update = function (chunk) {\n if (!this._called && this._alen) {\n var rump = 16 - (this._alen % 16)\n if (rump < 16) {\n rump = Buffer.alloc(rump, 0)\n this._ghash.update(rump)\n }\n }\n\n this._called = true\n var out = this._mode.encrypt(this, chunk)\n if (this._decrypt) {\n this._ghash.update(chunk)\n } else {\n this._ghash.update(out)\n }\n this._len += chunk.length\n return out\n}\n\nStreamCipher.prototype._final = function () {\n if (this._decrypt && !this._authTag) throw new Error('Unsupported state or unable to authenticate data')\n\n var tag = xor(this._ghash.final(this._alen * 8, this._len * 8), this._cipher.encryptBlock(this._finID))\n if (this._decrypt && xorTest(tag, this._authTag)) throw new Error('Unsupported state or unable to authenticate data')\n\n this._authTag = tag\n this._cipher.scrub()\n}\n\nStreamCipher.prototype.getAuthTag = function getAuthTag () {\n if (this._decrypt || !Buffer.isBuffer(this._authTag)) throw new Error('Attempting to get auth tag in unsupported state')\n\n return this._authTag\n}\n\nStreamCipher.prototype.setAuthTag = function setAuthTag (tag) {\n if (!this._decrypt) throw new Error('Attempting to set auth tag in unsupported state')\n\n this._authTag = tag\n}\n\nStreamCipher.prototype.setAAD = function setAAD (buf) {\n if (this._called) throw new Error('Attempting to set AAD in unsupported state')\n\n this._ghash.update(buf)\n this._alen += buf.length\n}\n\nmodule.exports = StreamCipher\n","var aes = require('./aes')\nvar Buffer = require('safe-buffer').Buffer\nvar Transform = require('cipher-base')\nvar inherits = require('inherits')\n\nfunction StreamCipher (mode, key, iv, decrypt) {\n Transform.call(this)\n\n this._cipher = new aes.AES(key)\n this._prev = Buffer.from(iv)\n this._cache = Buffer.allocUnsafe(0)\n this._secCache = Buffer.allocUnsafe(0)\n this._decrypt = decrypt\n this._mode = mode\n}\n\ninherits(StreamCipher, Transform)\n\nStreamCipher.prototype._update = function (chunk) {\n return this._mode.encrypt(this, chunk, this._decrypt)\n}\n\nStreamCipher.prototype._final = function () {\n this._cipher.scrub()\n}\n\nmodule.exports = StreamCipher\n","var randomBytes = require('randombytes');\nmodule.exports = findPrime;\nfindPrime.simpleSieve = simpleSieve;\nfindPrime.fermatTest = fermatTest;\nvar BN = require('bn.js');\nvar TWENTYFOUR = new BN(24);\nvar MillerRabin = require('miller-rabin');\nvar millerRabin = new MillerRabin();\nvar ONE = new BN(1);\nvar TWO = new BN(2);\nvar FIVE = new BN(5);\nvar SIXTEEN = new BN(16);\nvar EIGHT = new BN(8);\nvar TEN = new BN(10);\nvar THREE = new BN(3);\nvar SEVEN = new BN(7);\nvar ELEVEN = new BN(11);\nvar FOUR = new BN(4);\nvar TWELVE = new BN(12);\nvar primes = null;\n\nfunction _getPrimes() {\n if (primes !== null)\n return primes;\n\n var limit = 0x100000;\n var res = [];\n res[0] = 2;\n for (var i = 1, k = 3; k < limit; k += 2) {\n var sqrt = Math.ceil(Math.sqrt(k));\n for (var j = 0; j < i && res[j] <= sqrt; j++)\n if (k % res[j] === 0)\n break;\n\n if (i !== j && res[j] <= sqrt)\n continue;\n\n res[i++] = k;\n }\n primes = res;\n return res;\n}\n\nfunction simpleSieve(p) {\n var primes = _getPrimes();\n\n for (var i = 0; i < primes.length; i++)\n if (p.modn(primes[i]) === 0) {\n if (p.cmpn(primes[i]) === 0) {\n return true;\n } else {\n return false;\n }\n }\n\n return true;\n}\n\nfunction fermatTest(p) {\n var red = BN.mont(p);\n return TWO.toRed(red).redPow(p.subn(1)).fromRed().cmpn(1) === 0;\n}\n\nfunction findPrime(bits, gen) {\n if (bits < 16) {\n // this is what openssl does\n if (gen === 2 || gen === 5) {\n return new BN([0x8c, 0x7b]);\n } else {\n return new BN([0x8c, 0x27]);\n }\n }\n gen = new BN(gen);\n\n var num, n2;\n\n while (true) {\n num = new BN(randomBytes(Math.ceil(bits / 8)));\n while (num.bitLength() > bits) {\n num.ishrn(1);\n }\n if (num.isEven()) {\n num.iadd(ONE);\n }\n if (!num.testn(1)) {\n num.iadd(TWO);\n }\n if (!gen.cmp(TWO)) {\n while (num.mod(TWENTYFOUR).cmp(ELEVEN)) {\n num.iadd(FOUR);\n }\n } else if (!gen.cmp(FIVE)) {\n while (num.mod(TEN).cmp(THREE)) {\n num.iadd(FOUR);\n }\n }\n n2 = num.shrn(1);\n if (simpleSieve(n2) && simpleSieve(num) &&\n fermatTest(n2) && fermatTest(num) &&\n millerRabin.test(n2) && millerRabin.test(num)) {\n return num;\n }\n }\n\n}\n","var bn = require('bn.js');\nvar brorand = require('brorand');\n\nfunction MillerRabin(rand) {\n this.rand = rand || new brorand.Rand();\n}\nmodule.exports = MillerRabin;\n\nMillerRabin.create = function create(rand) {\n return new MillerRabin(rand);\n};\n\nMillerRabin.prototype._randbelow = function _randbelow(n) {\n var len = n.bitLength();\n var min_bytes = Math.ceil(len / 8);\n\n // Generage random bytes until a number less than n is found.\n // This ensures that 0..n-1 have an equal probability of being selected.\n do\n var a = new bn(this.rand.generate(min_bytes));\n while (a.cmp(n) >= 0);\n\n return a;\n};\n\nMillerRabin.prototype._randrange = function _randrange(start, stop) {\n // Generate a random number greater than or equal to start and less than stop.\n var size = stop.sub(start);\n return start.add(this._randbelow(size));\n};\n\nMillerRabin.prototype.test = function test(n, k, cb) {\n var len = n.bitLength();\n var red = bn.mont(n);\n var rone = new bn(1).toRed(red);\n\n if (!k)\n k = Math.max(1, (len / 48) | 0);\n\n // Find d and s, (n - 1) = (2 ^ s) * d;\n var n1 = n.subn(1);\n for (var s = 0; !n1.testn(s); s++) {}\n var d = n.shrn(s);\n\n var rn1 = n1.toRed(red);\n\n var prime = true;\n for (; k > 0; k--) {\n var a = this._randrange(new bn(2), n1);\n if (cb)\n cb(a);\n\n var x = a.toRed(red).redPow(d);\n if (x.cmp(rone) === 0 || x.cmp(rn1) === 0)\n continue;\n\n for (var i = 1; i < s; i++) {\n x = x.redSqr();\n\n if (x.cmp(rone) === 0)\n return false;\n if (x.cmp(rn1) === 0)\n break;\n }\n\n if (i === s)\n return false;\n }\n\n return prime;\n};\n\nMillerRabin.prototype.getDivisor = function getDivisor(n, k) {\n var len = n.bitLength();\n var red = bn.mont(n);\n var rone = new bn(1).toRed(red);\n\n if (!k)\n k = Math.max(1, (len / 48) | 0);\n\n // Find d and s, (n - 1) = (2 ^ s) * d;\n var n1 = n.subn(1);\n for (var s = 0; !n1.testn(s); s++) {}\n var d = n.shrn(s);\n\n var rn1 = n1.toRed(red);\n\n for (; k > 0; k--) {\n var a = this._randrange(new bn(2), n1);\n\n var g = n.gcd(a);\n if (g.cmpn(1) !== 0)\n return g;\n\n var x = a.toRed(red).redPow(d);\n if (x.cmp(rone) === 0 || x.cmp(rn1) === 0)\n continue;\n\n for (var i = 1; i < s; i++) {\n x = x.redSqr();\n\n if (x.cmp(rone) === 0)\n return x.fromRed().subn(1).gcd(n);\n if (x.cmp(rn1) === 0)\n break;\n }\n\n if (i === s) {\n x = x.redSqr();\n return x.fromRed().subn(1).gcd(n);\n }\n }\n\n return false;\n};\n","'use strict';\n\nvar utils = exports;\n\nfunction toArray(msg, enc) {\n if (Array.isArray(msg))\n return msg.slice();\n if (!msg)\n return [];\n var res = [];\n if (typeof msg !== 'string') {\n for (var i = 0; i < msg.length; i++)\n res[i] = msg[i] | 0;\n return res;\n }\n if (enc === 'hex') {\n msg = msg.replace(/[^a-z0-9]+/ig, '');\n if (msg.length % 2 !== 0)\n msg = '0' + msg;\n for (var i = 0; i < msg.length; i += 2)\n res.push(parseInt(msg[i] + msg[i + 1], 16));\n } else {\n for (var i = 0; i < msg.length; i++) {\n var c = msg.charCodeAt(i);\n var hi = c >> 8;\n var lo = c & 0xff;\n if (hi)\n res.push(hi, lo);\n else\n res.push(lo);\n }\n }\n return res;\n}\nutils.toArray = toArray;\n\nfunction zero2(word) {\n if (word.length === 1)\n return '0' + word;\n else\n return word;\n}\nutils.zero2 = zero2;\n\nfunction toHex(msg) {\n var res = '';\n for (var i = 0; i < msg.length; i++)\n res += zero2(msg[i].toString(16));\n return res;\n}\nutils.toHex = toHex;\n\nutils.encode = function encode(arr, enc) {\n if (enc === 'hex')\n return toHex(arr);\n else\n return arr;\n};\n","'use strict';\n\nvar curve = exports;\n\ncurve.base = require('./base');\ncurve.short = require('./short');\ncurve.mont = require('./mont');\ncurve.edwards = require('./edwards');\n","'use strict';\n\nvar utils = require('../utils');\nvar rotr32 = utils.rotr32;\n\nfunction ft_1(s, x, y, z) {\n if (s === 0)\n return ch32(x, y, z);\n if (s === 1 || s === 3)\n return p32(x, y, z);\n if (s === 2)\n return maj32(x, y, z);\n}\nexports.ft_1 = ft_1;\n\nfunction ch32(x, y, z) {\n return (x & y) ^ ((~x) & z);\n}\nexports.ch32 = ch32;\n\nfunction maj32(x, y, z) {\n return (x & y) ^ (x & z) ^ (y & z);\n}\nexports.maj32 = maj32;\n\nfunction p32(x, y, z) {\n return x ^ y ^ z;\n}\nexports.p32 = p32;\n\nfunction s0_256(x) {\n return rotr32(x, 2) ^ rotr32(x, 13) ^ rotr32(x, 22);\n}\nexports.s0_256 = s0_256;\n\nfunction s1_256(x) {\n return rotr32(x, 6) ^ rotr32(x, 11) ^ rotr32(x, 25);\n}\nexports.s1_256 = s1_256;\n\nfunction g0_256(x) {\n return rotr32(x, 7) ^ rotr32(x, 18) ^ (x >>> 3);\n}\nexports.g0_256 = g0_256;\n\nfunction g1_256(x) {\n return rotr32(x, 17) ^ rotr32(x, 19) ^ (x >>> 10);\n}\nexports.g1_256 = g1_256;\n","'use strict';\n\nvar utils = require('../utils');\nvar common = require('../common');\nvar shaCommon = require('./common');\nvar assert = require('minimalistic-assert');\n\nvar sum32 = utils.sum32;\nvar sum32_4 = utils.sum32_4;\nvar sum32_5 = utils.sum32_5;\nvar ch32 = shaCommon.ch32;\nvar maj32 = shaCommon.maj32;\nvar s0_256 = shaCommon.s0_256;\nvar s1_256 = shaCommon.s1_256;\nvar g0_256 = shaCommon.g0_256;\nvar g1_256 = shaCommon.g1_256;\n\nvar BlockHash = common.BlockHash;\n\nvar sha256_K = [\n 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,\n 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,\n 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3,\n 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,\n 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc,\n 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,\n 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7,\n 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,\n 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13,\n 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,\n 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3,\n 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,\n 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5,\n 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,\n 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208,\n 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2\n];\n\nfunction SHA256() {\n if (!(this instanceof SHA256))\n return new SHA256();\n\n BlockHash.call(this);\n this.h = [\n 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a,\n 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19\n ];\n this.k = sha256_K;\n this.W = new Array(64);\n}\nutils.inherits(SHA256, BlockHash);\nmodule.exports = SHA256;\n\nSHA256.blockSize = 512;\nSHA256.outSize = 256;\nSHA256.hmacStrength = 192;\nSHA256.padLength = 64;\n\nSHA256.prototype._update = function _update(msg, start) {\n var W = this.W;\n\n for (var i = 0; i < 16; i++)\n W[i] = msg[start + i];\n for (; i < W.length; i++)\n W[i] = sum32_4(g1_256(W[i - 2]), W[i - 7], g0_256(W[i - 15]), W[i - 16]);\n\n var a = this.h[0];\n var b = this.h[1];\n var c = this.h[2];\n var d = this.h[3];\n var e = this.h[4];\n var f = this.h[5];\n var g = this.h[6];\n var h = this.h[7];\n\n assert(this.k.length === W.length);\n for (i = 0; i < W.length; i++) {\n var T1 = sum32_5(h, s1_256(e), ch32(e, f, g), this.k[i], W[i]);\n var T2 = sum32(s0_256(a), maj32(a, b, c));\n h = g;\n g = f;\n f = e;\n e = sum32(d, T1);\n d = c;\n c = b;\n b = a;\n a = sum32(T1, T2);\n }\n\n this.h[0] = sum32(this.h[0], a);\n this.h[1] = sum32(this.h[1], b);\n this.h[2] = sum32(this.h[2], c);\n this.h[3] = sum32(this.h[3], d);\n this.h[4] = sum32(this.h[4], e);\n this.h[5] = sum32(this.h[5], f);\n this.h[6] = sum32(this.h[6], g);\n this.h[7] = sum32(this.h[7], h);\n};\n\nSHA256.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h, 'big');\n else\n return utils.split32(this.h, 'big');\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar common = require('../common');\nvar assert = require('minimalistic-assert');\n\nvar rotr64_hi = utils.rotr64_hi;\nvar rotr64_lo = utils.rotr64_lo;\nvar shr64_hi = utils.shr64_hi;\nvar shr64_lo = utils.shr64_lo;\nvar sum64 = utils.sum64;\nvar sum64_hi = utils.sum64_hi;\nvar sum64_lo = utils.sum64_lo;\nvar sum64_4_hi = utils.sum64_4_hi;\nvar sum64_4_lo = utils.sum64_4_lo;\nvar sum64_5_hi = utils.sum64_5_hi;\nvar sum64_5_lo = utils.sum64_5_lo;\n\nvar BlockHash = common.BlockHash;\n\nvar sha512_K = [\n 0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd,\n 0xb5c0fbcf, 0xec4d3b2f, 0xe9b5dba5, 0x8189dbbc,\n 0x3956c25b, 0xf348b538, 0x59f111f1, 0xb605d019,\n 0x923f82a4, 0xaf194f9b, 0xab1c5ed5, 0xda6d8118,\n 0xd807aa98, 0xa3030242, 0x12835b01, 0x45706fbe,\n 0x243185be, 0x4ee4b28c, 0x550c7dc3, 0xd5ffb4e2,\n 0x72be5d74, 0xf27b896f, 0x80deb1fe, 0x3b1696b1,\n 0x9bdc06a7, 0x25c71235, 0xc19bf174, 0xcf692694,\n 0xe49b69c1, 0x9ef14ad2, 0xefbe4786, 0x384f25e3,\n 0x0fc19dc6, 0x8b8cd5b5, 0x240ca1cc, 0x77ac9c65,\n 0x2de92c6f, 0x592b0275, 0x4a7484aa, 0x6ea6e483,\n 0x5cb0a9dc, 0xbd41fbd4, 0x76f988da, 0x831153b5,\n 0x983e5152, 0xee66dfab, 0xa831c66d, 0x2db43210,\n 0xb00327c8, 0x98fb213f, 0xbf597fc7, 0xbeef0ee4,\n 0xc6e00bf3, 0x3da88fc2, 0xd5a79147, 0x930aa725,\n 0x06ca6351, 0xe003826f, 0x14292967, 0x0a0e6e70,\n 0x27b70a85, 0x46d22ffc, 0x2e1b2138, 0x5c26c926,\n 0x4d2c6dfc, 0x5ac42aed, 0x53380d13, 0x9d95b3df,\n 0x650a7354, 0x8baf63de, 0x766a0abb, 0x3c77b2a8,\n 0x81c2c92e, 0x47edaee6, 0x92722c85, 0x1482353b,\n 0xa2bfe8a1, 0x4cf10364, 0xa81a664b, 0xbc423001,\n 0xc24b8b70, 0xd0f89791, 0xc76c51a3, 0x0654be30,\n 0xd192e819, 0xd6ef5218, 0xd6990624, 0x5565a910,\n 0xf40e3585, 0x5771202a, 0x106aa070, 0x32bbd1b8,\n 0x19a4c116, 0xb8d2d0c8, 0x1e376c08, 0x5141ab53,\n 0x2748774c, 0xdf8eeb99, 0x34b0bcb5, 0xe19b48a8,\n 0x391c0cb3, 0xc5c95a63, 0x4ed8aa4a, 0xe3418acb,\n 0x5b9cca4f, 0x7763e373, 0x682e6ff3, 0xd6b2b8a3,\n 0x748f82ee, 0x5defb2fc, 0x78a5636f, 0x43172f60,\n 0x84c87814, 0xa1f0ab72, 0x8cc70208, 0x1a6439ec,\n 0x90befffa, 0x23631e28, 0xa4506ceb, 0xde82bde9,\n 0xbef9a3f7, 0xb2c67915, 0xc67178f2, 0xe372532b,\n 0xca273ece, 0xea26619c, 0xd186b8c7, 0x21c0c207,\n 0xeada7dd6, 0xcde0eb1e, 0xf57d4f7f, 0xee6ed178,\n 0x06f067aa, 0x72176fba, 0x0a637dc5, 0xa2c898a6,\n 0x113f9804, 0xbef90dae, 0x1b710b35, 0x131c471b,\n 0x28db77f5, 0x23047d84, 0x32caab7b, 0x40c72493,\n 0x3c9ebe0a, 0x15c9bebc, 0x431d67c4, 0x9c100d4c,\n 0x4cc5d4be, 0xcb3e42b6, 0x597f299c, 0xfc657e2a,\n 0x5fcb6fab, 0x3ad6faec, 0x6c44198c, 0x4a475817\n];\n\nfunction SHA512() {\n if (!(this instanceof SHA512))\n return new SHA512();\n\n BlockHash.call(this);\n this.h = [\n 0x6a09e667, 0xf3bcc908,\n 0xbb67ae85, 0x84caa73b,\n 0x3c6ef372, 0xfe94f82b,\n 0xa54ff53a, 0x5f1d36f1,\n 0x510e527f, 0xade682d1,\n 0x9b05688c, 0x2b3e6c1f,\n 0x1f83d9ab, 0xfb41bd6b,\n 0x5be0cd19, 0x137e2179 ];\n this.k = sha512_K;\n this.W = new Array(160);\n}\nutils.inherits(SHA512, BlockHash);\nmodule.exports = SHA512;\n\nSHA512.blockSize = 1024;\nSHA512.outSize = 512;\nSHA512.hmacStrength = 192;\nSHA512.padLength = 128;\n\nSHA512.prototype._prepareBlock = function _prepareBlock(msg, start) {\n var W = this.W;\n\n // 32 x 32bit words\n for (var i = 0; i < 32; i++)\n W[i] = msg[start + i];\n for (; i < W.length; i += 2) {\n var c0_hi = g1_512_hi(W[i - 4], W[i - 3]); // i - 2\n var c0_lo = g1_512_lo(W[i - 4], W[i - 3]);\n var c1_hi = W[i - 14]; // i - 7\n var c1_lo = W[i - 13];\n var c2_hi = g0_512_hi(W[i - 30], W[i - 29]); // i - 15\n var c2_lo = g0_512_lo(W[i - 30], W[i - 29]);\n var c3_hi = W[i - 32]; // i - 16\n var c3_lo = W[i - 31];\n\n W[i] = sum64_4_hi(\n c0_hi, c0_lo,\n c1_hi, c1_lo,\n c2_hi, c2_lo,\n c3_hi, c3_lo);\n W[i + 1] = sum64_4_lo(\n c0_hi, c0_lo,\n c1_hi, c1_lo,\n c2_hi, c2_lo,\n c3_hi, c3_lo);\n }\n};\n\nSHA512.prototype._update = function _update(msg, start) {\n this._prepareBlock(msg, start);\n\n var W = this.W;\n\n var ah = this.h[0];\n var al = this.h[1];\n var bh = this.h[2];\n var bl = this.h[3];\n var ch = this.h[4];\n var cl = this.h[5];\n var dh = this.h[6];\n var dl = this.h[7];\n var eh = this.h[8];\n var el = this.h[9];\n var fh = this.h[10];\n var fl = this.h[11];\n var gh = this.h[12];\n var gl = this.h[13];\n var hh = this.h[14];\n var hl = this.h[15];\n\n assert(this.k.length === W.length);\n for (var i = 0; i < W.length; i += 2) {\n var c0_hi = hh;\n var c0_lo = hl;\n var c1_hi = s1_512_hi(eh, el);\n var c1_lo = s1_512_lo(eh, el);\n var c2_hi = ch64_hi(eh, el, fh, fl, gh, gl);\n var c2_lo = ch64_lo(eh, el, fh, fl, gh, gl);\n var c3_hi = this.k[i];\n var c3_lo = this.k[i + 1];\n var c4_hi = W[i];\n var c4_lo = W[i + 1];\n\n var T1_hi = sum64_5_hi(\n c0_hi, c0_lo,\n c1_hi, c1_lo,\n c2_hi, c2_lo,\n c3_hi, c3_lo,\n c4_hi, c4_lo);\n var T1_lo = sum64_5_lo(\n c0_hi, c0_lo,\n c1_hi, c1_lo,\n c2_hi, c2_lo,\n c3_hi, c3_lo,\n c4_hi, c4_lo);\n\n c0_hi = s0_512_hi(ah, al);\n c0_lo = s0_512_lo(ah, al);\n c1_hi = maj64_hi(ah, al, bh, bl, ch, cl);\n c1_lo = maj64_lo(ah, al, bh, bl, ch, cl);\n\n var T2_hi = sum64_hi(c0_hi, c0_lo, c1_hi, c1_lo);\n var T2_lo = sum64_lo(c0_hi, c0_lo, c1_hi, c1_lo);\n\n hh = gh;\n hl = gl;\n\n gh = fh;\n gl = fl;\n\n fh = eh;\n fl = el;\n\n eh = sum64_hi(dh, dl, T1_hi, T1_lo);\n el = sum64_lo(dl, dl, T1_hi, T1_lo);\n\n dh = ch;\n dl = cl;\n\n ch = bh;\n cl = bl;\n\n bh = ah;\n bl = al;\n\n ah = sum64_hi(T1_hi, T1_lo, T2_hi, T2_lo);\n al = sum64_lo(T1_hi, T1_lo, T2_hi, T2_lo);\n }\n\n sum64(this.h, 0, ah, al);\n sum64(this.h, 2, bh, bl);\n sum64(this.h, 4, ch, cl);\n sum64(this.h, 6, dh, dl);\n sum64(this.h, 8, eh, el);\n sum64(this.h, 10, fh, fl);\n sum64(this.h, 12, gh, gl);\n sum64(this.h, 14, hh, hl);\n};\n\nSHA512.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h, 'big');\n else\n return utils.split32(this.h, 'big');\n};\n\nfunction ch64_hi(xh, xl, yh, yl, zh) {\n var r = (xh & yh) ^ ((~xh) & zh);\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction ch64_lo(xh, xl, yh, yl, zh, zl) {\n var r = (xl & yl) ^ ((~xl) & zl);\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction maj64_hi(xh, xl, yh, yl, zh) {\n var r = (xh & yh) ^ (xh & zh) ^ (yh & zh);\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction maj64_lo(xh, xl, yh, yl, zh, zl) {\n var r = (xl & yl) ^ (xl & zl) ^ (yl & zl);\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction s0_512_hi(xh, xl) {\n var c0_hi = rotr64_hi(xh, xl, 28);\n var c1_hi = rotr64_hi(xl, xh, 2); // 34\n var c2_hi = rotr64_hi(xl, xh, 7); // 39\n\n var r = c0_hi ^ c1_hi ^ c2_hi;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction s0_512_lo(xh, xl) {\n var c0_lo = rotr64_lo(xh, xl, 28);\n var c1_lo = rotr64_lo(xl, xh, 2); // 34\n var c2_lo = rotr64_lo(xl, xh, 7); // 39\n\n var r = c0_lo ^ c1_lo ^ c2_lo;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction s1_512_hi(xh, xl) {\n var c0_hi = rotr64_hi(xh, xl, 14);\n var c1_hi = rotr64_hi(xh, xl, 18);\n var c2_hi = rotr64_hi(xl, xh, 9); // 41\n\n var r = c0_hi ^ c1_hi ^ c2_hi;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction s1_512_lo(xh, xl) {\n var c0_lo = rotr64_lo(xh, xl, 14);\n var c1_lo = rotr64_lo(xh, xl, 18);\n var c2_lo = rotr64_lo(xl, xh, 9); // 41\n\n var r = c0_lo ^ c1_lo ^ c2_lo;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction g0_512_hi(xh, xl) {\n var c0_hi = rotr64_hi(xh, xl, 1);\n var c1_hi = rotr64_hi(xh, xl, 8);\n var c2_hi = shr64_hi(xh, xl, 7);\n\n var r = c0_hi ^ c1_hi ^ c2_hi;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction g0_512_lo(xh, xl) {\n var c0_lo = rotr64_lo(xh, xl, 1);\n var c1_lo = rotr64_lo(xh, xl, 8);\n var c2_lo = shr64_lo(xh, xl, 7);\n\n var r = c0_lo ^ c1_lo ^ c2_lo;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction g1_512_hi(xh, xl) {\n var c0_hi = rotr64_hi(xh, xl, 19);\n var c1_hi = rotr64_hi(xl, xh, 29); // 61\n var c2_hi = shr64_hi(xh, xl, 6);\n\n var r = c0_hi ^ c1_hi ^ c2_hi;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction g1_512_lo(xh, xl) {\n var c0_lo = rotr64_lo(xh, xl, 19);\n var c1_lo = rotr64_lo(xl, xh, 29); // 61\n var c2_lo = shr64_lo(xh, xl, 6);\n\n var r = c0_lo ^ c1_lo ^ c2_lo;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n","var inherits = require('inherits');\nvar Reporter = require('../base').Reporter;\nvar Buffer = require('buffer').Buffer;\n\nfunction DecoderBuffer(base, options) {\n Reporter.call(this, options);\n if (!Buffer.isBuffer(base)) {\n this.error('Input not Buffer');\n return;\n }\n\n this.base = base;\n this.offset = 0;\n this.length = base.length;\n}\ninherits(DecoderBuffer, Reporter);\nexports.DecoderBuffer = DecoderBuffer;\n\nDecoderBuffer.prototype.save = function save() {\n return { offset: this.offset, reporter: Reporter.prototype.save.call(this) };\n};\n\nDecoderBuffer.prototype.restore = function restore(save) {\n // Return skipped data\n var res = new DecoderBuffer(this.base);\n res.offset = save.offset;\n res.length = this.offset;\n\n this.offset = save.offset;\n Reporter.prototype.restore.call(this, save.reporter);\n\n return res;\n};\n\nDecoderBuffer.prototype.isEmpty = function isEmpty() {\n return this.offset === this.length;\n};\n\nDecoderBuffer.prototype.readUInt8 = function readUInt8(fail) {\n if (this.offset + 1 <= this.length)\n return this.base.readUInt8(this.offset++, true);\n else\n return this.error(fail || 'DecoderBuffer overrun');\n}\n\nDecoderBuffer.prototype.skip = function skip(bytes, fail) {\n if (!(this.offset + bytes <= this.length))\n return this.error(fail || 'DecoderBuffer overrun');\n\n var res = new DecoderBuffer(this.base);\n\n // Share reporter state\n res._reporterState = this._reporterState;\n\n res.offset = this.offset;\n res.length = this.offset + bytes;\n this.offset += bytes;\n return res;\n}\n\nDecoderBuffer.prototype.raw = function raw(save) {\n return this.base.slice(save ? save.offset : this.offset, this.length);\n}\n\nfunction EncoderBuffer(value, reporter) {\n if (Array.isArray(value)) {\n this.length = 0;\n this.value = value.map(function(item) {\n if (!(item instanceof EncoderBuffer))\n item = new EncoderBuffer(item, reporter);\n this.length += item.length;\n return item;\n }, this);\n } else if (typeof value === 'number') {\n if (!(0 <= value && value <= 0xff))\n return reporter.error('non-byte EncoderBuffer value');\n this.value = value;\n this.length = 1;\n } else if (typeof value === 'string') {\n this.value = value;\n this.length = Buffer.byteLength(value);\n } else if (Buffer.isBuffer(value)) {\n this.value = value;\n this.length = value.length;\n } else {\n return reporter.error('Unsupported type: ' + typeof value);\n }\n}\nexports.EncoderBuffer = EncoderBuffer;\n\nEncoderBuffer.prototype.join = function join(out, offset) {\n if (!out)\n out = new Buffer(this.length);\n if (!offset)\n offset = 0;\n\n if (this.length === 0)\n return out;\n\n if (Array.isArray(this.value)) {\n this.value.forEach(function(item) {\n item.join(out, offset);\n offset += item.length;\n });\n } else {\n if (typeof this.value === 'number')\n out[offset] = this.value;\n else if (typeof this.value === 'string')\n out.write(this.value, offset);\n else if (Buffer.isBuffer(this.value))\n this.value.copy(out, offset);\n offset += this.length;\n }\n\n return out;\n};\n","var constants = exports;\n\n// Helper\nconstants._reverse = function reverse(map) {\n var res = {};\n\n Object.keys(map).forEach(function(key) {\n // Convert key to integer if it is stringified\n if ((key | 0) == key)\n key = key | 0;\n\n var value = map[key];\n res[value] = key;\n });\n\n return res;\n};\n\nconstants.der = require('./der');\n","var inherits = require('inherits');\n\nvar asn1 = require('../../asn1');\nvar base = asn1.base;\nvar bignum = asn1.bignum;\n\n// Import DER constants\nvar der = asn1.constants.der;\n\nfunction DERDecoder(entity) {\n this.enc = 'der';\n this.name = entity.name;\n this.entity = entity;\n\n // Construct base tree\n this.tree = new DERNode();\n this.tree._init(entity.body);\n};\nmodule.exports = DERDecoder;\n\nDERDecoder.prototype.decode = function decode(data, options) {\n if (!(data instanceof base.DecoderBuffer))\n data = new base.DecoderBuffer(data, options);\n\n return this.tree._decode(data, options);\n};\n\n// Tree methods\n\nfunction DERNode(parent) {\n base.Node.call(this, 'der', parent);\n}\ninherits(DERNode, base.Node);\n\nDERNode.prototype._peekTag = function peekTag(buffer, tag, any) {\n if (buffer.isEmpty())\n return false;\n\n var state = buffer.save();\n var decodedTag = derDecodeTag(buffer, 'Failed to peek tag: \"' + tag + '\"');\n if (buffer.isError(decodedTag))\n return decodedTag;\n\n buffer.restore(state);\n\n return decodedTag.tag === tag || decodedTag.tagStr === tag ||\n (decodedTag.tagStr + 'of') === tag || any;\n};\n\nDERNode.prototype._decodeTag = function decodeTag(buffer, tag, any) {\n var decodedTag = derDecodeTag(buffer,\n 'Failed to decode tag of \"' + tag + '\"');\n if (buffer.isError(decodedTag))\n return decodedTag;\n\n var len = derDecodeLen(buffer,\n decodedTag.primitive,\n 'Failed to get length of \"' + tag + '\"');\n\n // Failure\n if (buffer.isError(len))\n return len;\n\n if (!any &&\n decodedTag.tag !== tag &&\n decodedTag.tagStr !== tag &&\n decodedTag.tagStr + 'of' !== tag) {\n return buffer.error('Failed to match tag: \"' + tag + '\"');\n }\n\n if (decodedTag.primitive || len !== null)\n return buffer.skip(len, 'Failed to match body of: \"' + tag + '\"');\n\n // Indefinite length... find END tag\n var state = buffer.save();\n var res = this._skipUntilEnd(\n buffer,\n 'Failed to skip indefinite length body: \"' + this.tag + '\"');\n if (buffer.isError(res))\n return res;\n\n len = buffer.offset - state.offset;\n buffer.restore(state);\n return buffer.skip(len, 'Failed to match body of: \"' + tag + '\"');\n};\n\nDERNode.prototype._skipUntilEnd = function skipUntilEnd(buffer, fail) {\n while (true) {\n var tag = derDecodeTag(buffer, fail);\n if (buffer.isError(tag))\n return tag;\n var len = derDecodeLen(buffer, tag.primitive, fail);\n if (buffer.isError(len))\n return len;\n\n var res;\n if (tag.primitive || len !== null)\n res = buffer.skip(len)\n else\n res = this._skipUntilEnd(buffer, fail);\n\n // Failure\n if (buffer.isError(res))\n return res;\n\n if (tag.tagStr === 'end')\n break;\n }\n};\n\nDERNode.prototype._decodeList = function decodeList(buffer, tag, decoder,\n options) {\n var result = [];\n while (!buffer.isEmpty()) {\n var possibleEnd = this._peekTag(buffer, 'end');\n if (buffer.isError(possibleEnd))\n return possibleEnd;\n\n var res = decoder.decode(buffer, 'der', options);\n if (buffer.isError(res) && possibleEnd)\n break;\n result.push(res);\n }\n return result;\n};\n\nDERNode.prototype._decodeStr = function decodeStr(buffer, tag) {\n if (tag === 'bitstr') {\n var unused = buffer.readUInt8();\n if (buffer.isError(unused))\n return unused;\n return { unused: unused, data: buffer.raw() };\n } else if (tag === 'bmpstr') {\n var raw = buffer.raw();\n if (raw.length % 2 === 1)\n return buffer.error('Decoding of string type: bmpstr length mismatch');\n\n var str = '';\n for (var i = 0; i < raw.length / 2; i++) {\n str += String.fromCharCode(raw.readUInt16BE(i * 2));\n }\n return str;\n } else if (tag === 'numstr') {\n var numstr = buffer.raw().toString('ascii');\n if (!this._isNumstr(numstr)) {\n return buffer.error('Decoding of string type: ' +\n 'numstr unsupported characters');\n }\n return numstr;\n } else if (tag === 'octstr') {\n return buffer.raw();\n } else if (tag === 'objDesc') {\n return buffer.raw();\n } else if (tag === 'printstr') {\n var printstr = buffer.raw().toString('ascii');\n if (!this._isPrintstr(printstr)) {\n return buffer.error('Decoding of string type: ' +\n 'printstr unsupported characters');\n }\n return printstr;\n } else if (/str$/.test(tag)) {\n return buffer.raw().toString();\n } else {\n return buffer.error('Decoding of string type: ' + tag + ' unsupported');\n }\n};\n\nDERNode.prototype._decodeObjid = function decodeObjid(buffer, values, relative) {\n var result;\n var identifiers = [];\n var ident = 0;\n while (!buffer.isEmpty()) {\n var subident = buffer.readUInt8();\n ident <<= 7;\n ident |= subident & 0x7f;\n if ((subident & 0x80) === 0) {\n identifiers.push(ident);\n ident = 0;\n }\n }\n if (subident & 0x80)\n identifiers.push(ident);\n\n var first = (identifiers[0] / 40) | 0;\n var second = identifiers[0] % 40;\n\n if (relative)\n result = identifiers;\n else\n result = [first, second].concat(identifiers.slice(1));\n\n if (values) {\n var tmp = values[result.join(' ')];\n if (tmp === undefined)\n tmp = values[result.join('.')];\n if (tmp !== undefined)\n result = tmp;\n }\n\n return result;\n};\n\nDERNode.prototype._decodeTime = function decodeTime(buffer, tag) {\n var str = buffer.raw().toString();\n if (tag === 'gentime') {\n var year = str.slice(0, 4) | 0;\n var mon = str.slice(4, 6) | 0;\n var day = str.slice(6, 8) | 0;\n var hour = str.slice(8, 10) | 0;\n var min = str.slice(10, 12) | 0;\n var sec = str.slice(12, 14) | 0;\n } else if (tag === 'utctime') {\n var year = str.slice(0, 2) | 0;\n var mon = str.slice(2, 4) | 0;\n var day = str.slice(4, 6) | 0;\n var hour = str.slice(6, 8) | 0;\n var min = str.slice(8, 10) | 0;\n var sec = str.slice(10, 12) | 0;\n if (year < 70)\n year = 2000 + year;\n else\n year = 1900 + year;\n } else {\n return buffer.error('Decoding ' + tag + ' time is not supported yet');\n }\n\n return Date.UTC(year, mon - 1, day, hour, min, sec, 0);\n};\n\nDERNode.prototype._decodeNull = function decodeNull(buffer) {\n return null;\n};\n\nDERNode.prototype._decodeBool = function decodeBool(buffer) {\n var res = buffer.readUInt8();\n if (buffer.isError(res))\n return res;\n else\n return res !== 0;\n};\n\nDERNode.prototype._decodeInt = function decodeInt(buffer, values) {\n // Bigint, return as it is (assume big endian)\n var raw = buffer.raw();\n var res = new bignum(raw);\n\n if (values)\n res = values[res.toString(10)] || res;\n\n return res;\n};\n\nDERNode.prototype._use = function use(entity, obj) {\n if (typeof entity === 'function')\n entity = entity(obj);\n return entity._getDecoder('der').tree;\n};\n\n// Utility methods\n\nfunction derDecodeTag(buf, fail) {\n var tag = buf.readUInt8(fail);\n if (buf.isError(tag))\n return tag;\n\n var cls = der.tagClass[tag >> 6];\n var primitive = (tag & 0x20) === 0;\n\n // Multi-octet tag - load\n if ((tag & 0x1f) === 0x1f) {\n var oct = tag;\n tag = 0;\n while ((oct & 0x80) === 0x80) {\n oct = buf.readUInt8(fail);\n if (buf.isError(oct))\n return oct;\n\n tag <<= 7;\n tag |= oct & 0x7f;\n }\n } else {\n tag &= 0x1f;\n }\n var tagStr = der.tag[tag];\n\n return {\n cls: cls,\n primitive: primitive,\n tag: tag,\n tagStr: tagStr\n };\n}\n\nfunction derDecodeLen(buf, primitive, fail) {\n var len = buf.readUInt8(fail);\n if (buf.isError(len))\n return len;\n\n // Indefinite form\n if (!primitive && len === 0x80)\n return null;\n\n // Definite form\n if ((len & 0x80) === 0) {\n // Short form\n return len;\n }\n\n // Long form\n var num = len & 0x7f;\n if (num > 4)\n return buf.error('length octect is too long');\n\n len = 0;\n for (var i = 0; i < num; i++) {\n len <<= 8;\n var j = buf.readUInt8(fail);\n if (buf.isError(j))\n return j;\n len |= j;\n }\n\n return len;\n}\n","var inherits = require('inherits');\nvar Buffer = require('buffer').Buffer;\n\nvar asn1 = require('../../asn1');\nvar base = asn1.base;\n\n// Import DER constants\nvar der = asn1.constants.der;\n\nfunction DEREncoder(entity) {\n this.enc = 'der';\n this.name = entity.name;\n this.entity = entity;\n\n // Construct base tree\n this.tree = new DERNode();\n this.tree._init(entity.body);\n};\nmodule.exports = DEREncoder;\n\nDEREncoder.prototype.encode = function encode(data, reporter) {\n return this.tree._encode(data, reporter).join();\n};\n\n// Tree methods\n\nfunction DERNode(parent) {\n base.Node.call(this, 'der', parent);\n}\ninherits(DERNode, base.Node);\n\nDERNode.prototype._encodeComposite = function encodeComposite(tag,\n primitive,\n cls,\n content) {\n var encodedTag = encodeTag(tag, primitive, cls, this.reporter);\n\n // Short form\n if (content.length < 0x80) {\n var header = new Buffer(2);\n header[0] = encodedTag;\n header[1] = content.length;\n return this._createEncoderBuffer([ header, content ]);\n }\n\n // Long form\n // Count octets required to store length\n var lenOctets = 1;\n for (var i = content.length; i >= 0x100; i >>= 8)\n lenOctets++;\n\n var header = new Buffer(1 + 1 + lenOctets);\n header[0] = encodedTag;\n header[1] = 0x80 | lenOctets;\n\n for (var i = 1 + lenOctets, j = content.length; j > 0; i--, j >>= 8)\n header[i] = j & 0xff;\n\n return this._createEncoderBuffer([ header, content ]);\n};\n\nDERNode.prototype._encodeStr = function encodeStr(str, tag) {\n if (tag === 'bitstr') {\n return this._createEncoderBuffer([ str.unused | 0, str.data ]);\n } else if (tag === 'bmpstr') {\n var buf = new Buffer(str.length * 2);\n for (var i = 0; i < str.length; i++) {\n buf.writeUInt16BE(str.charCodeAt(i), i * 2);\n }\n return this._createEncoderBuffer(buf);\n } else if (tag === 'numstr') {\n if (!this._isNumstr(str)) {\n return this.reporter.error('Encoding of string type: numstr supports ' +\n 'only digits and space');\n }\n return this._createEncoderBuffer(str);\n } else if (tag === 'printstr') {\n if (!this._isPrintstr(str)) {\n return this.reporter.error('Encoding of string type: printstr supports ' +\n 'only latin upper and lower case letters, ' +\n 'digits, space, apostrophe, left and rigth ' +\n 'parenthesis, plus sign, comma, hyphen, ' +\n 'dot, slash, colon, equal sign, ' +\n 'question mark');\n }\n return this._createEncoderBuffer(str);\n } else if (/str$/.test(tag)) {\n return this._createEncoderBuffer(str);\n } else if (tag === 'objDesc') {\n return this._createEncoderBuffer(str);\n } else {\n return this.reporter.error('Encoding of string type: ' + tag +\n ' unsupported');\n }\n};\n\nDERNode.prototype._encodeObjid = function encodeObjid(id, values, relative) {\n if (typeof id === 'string') {\n if (!values)\n return this.reporter.error('string objid given, but no values map found');\n if (!values.hasOwnProperty(id))\n return this.reporter.error('objid not found in values map');\n id = values[id].split(/[\\s\\.]+/g);\n for (var i = 0; i < id.length; i++)\n id[i] |= 0;\n } else if (Array.isArray(id)) {\n id = id.slice();\n for (var i = 0; i < id.length; i++)\n id[i] |= 0;\n }\n\n if (!Array.isArray(id)) {\n return this.reporter.error('objid() should be either array or string, ' +\n 'got: ' + JSON.stringify(id));\n }\n\n if (!relative) {\n if (id[1] >= 40)\n return this.reporter.error('Second objid identifier OOB');\n id.splice(0, 2, id[0] * 40 + id[1]);\n }\n\n // Count number of octets\n var size = 0;\n for (var i = 0; i < id.length; i++) {\n var ident = id[i];\n for (size++; ident >= 0x80; ident >>= 7)\n size++;\n }\n\n var objid = new Buffer(size);\n var offset = objid.length - 1;\n for (var i = id.length - 1; i >= 0; i--) {\n var ident = id[i];\n objid[offset--] = ident & 0x7f;\n while ((ident >>= 7) > 0)\n objid[offset--] = 0x80 | (ident & 0x7f);\n }\n\n return this._createEncoderBuffer(objid);\n};\n\nfunction two(num) {\n if (num < 10)\n return '0' + num;\n else\n return num;\n}\n\nDERNode.prototype._encodeTime = function encodeTime(time, tag) {\n var str;\n var date = new Date(time);\n\n if (tag === 'gentime') {\n str = [\n two(date.getFullYear()),\n two(date.getUTCMonth() + 1),\n two(date.getUTCDate()),\n two(date.getUTCHours()),\n two(date.getUTCMinutes()),\n two(date.getUTCSeconds()),\n 'Z'\n ].join('');\n } else if (tag === 'utctime') {\n str = [\n two(date.getFullYear() % 100),\n two(date.getUTCMonth() + 1),\n two(date.getUTCDate()),\n two(date.getUTCHours()),\n two(date.getUTCMinutes()),\n two(date.getUTCSeconds()),\n 'Z'\n ].join('');\n } else {\n this.reporter.error('Encoding ' + tag + ' time is not supported yet');\n }\n\n return this._encodeStr(str, 'octstr');\n};\n\nDERNode.prototype._encodeNull = function encodeNull() {\n return this._createEncoderBuffer('');\n};\n\nDERNode.prototype._encodeInt = function encodeInt(num, values) {\n if (typeof num === 'string') {\n if (!values)\n return this.reporter.error('String int or enum given, but no values map');\n if (!values.hasOwnProperty(num)) {\n return this.reporter.error('Values map doesn\\'t contain: ' +\n JSON.stringify(num));\n }\n num = values[num];\n }\n\n // Bignum, assume big endian\n if (typeof num !== 'number' && !Buffer.isBuffer(num)) {\n var numArray = num.toArray();\n if (!num.sign && numArray[0] & 0x80) {\n numArray.unshift(0);\n }\n num = new Buffer(numArray);\n }\n\n if (Buffer.isBuffer(num)) {\n var size = num.length;\n if (num.length === 0)\n size++;\n\n var out = new Buffer(size);\n num.copy(out);\n if (num.length === 0)\n out[0] = 0\n return this._createEncoderBuffer(out);\n }\n\n if (num < 0x80)\n return this._createEncoderBuffer(num);\n\n if (num < 0x100)\n return this._createEncoderBuffer([0, num]);\n\n var size = 1;\n for (var i = num; i >= 0x100; i >>= 8)\n size++;\n\n var out = new Array(size);\n for (var i = out.length - 1; i >= 0; i--) {\n out[i] = num & 0xff;\n num >>= 8;\n }\n if(out[0] & 0x80) {\n out.unshift(0);\n }\n\n return this._createEncoderBuffer(new Buffer(out));\n};\n\nDERNode.prototype._encodeBool = function encodeBool(value) {\n return this._createEncoderBuffer(value ? 0xff : 0);\n};\n\nDERNode.prototype._use = function use(entity, obj) {\n if (typeof entity === 'function')\n entity = entity(obj);\n return entity._getEncoder('der').tree;\n};\n\nDERNode.prototype._skipDefault = function skipDefault(dataBuffer, reporter, parent) {\n var state = this._baseState;\n var i;\n if (state['default'] === null)\n return false;\n\n var data = dataBuffer.join();\n if (state.defaultBuffer === undefined)\n state.defaultBuffer = this._encodeValue(state['default'], reporter, parent).join();\n\n if (data.length !== state.defaultBuffer.length)\n return false;\n\n for (i=0; i < data.length; i++)\n if (data[i] !== state.defaultBuffer[i])\n return false;\n\n return true;\n};\n\n// Utility methods\n\nfunction encodeTag(tag, primitive, cls, reporter) {\n var res;\n\n if (tag === 'seqof')\n tag = 'seq';\n else if (tag === 'setof')\n tag = 'set';\n\n if (der.tagByName.hasOwnProperty(tag))\n res = der.tagByName[tag];\n else if (typeof tag === 'number' && (tag | 0) === tag)\n res = tag;\n else\n return reporter.error('Unknown tag: ' + tag);\n\n if (res >= 0x1f)\n return reporter.error('Multi-octet tag encoding unsupported');\n\n if (!primitive)\n res |= 0x20;\n\n res |= (der.tagClassByName[cls || 'universal'] << 6);\n\n return res;\n}\n","var createHash = require('create-hash')\nvar Buffer = require('safe-buffer').Buffer\n\nmodule.exports = function (seed, len) {\n var t = Buffer.alloc(0)\n var i = 0\n var c\n while (t.length < len) {\n c = i2ops(i++)\n t = Buffer.concat([t, createHash('sha1').update(seed).update(c).digest()])\n }\n return t.slice(0, len)\n}\n\nfunction i2ops (c) {\n var out = Buffer.allocUnsafe(4)\n out.writeUInt32BE(c, 0)\n return out\n}\n","module.exports = function xor (a, b) {\n var len = a.length\n var i = -1\n while (++i < len) {\n a[i] ^= b[i]\n }\n return a\n}\n","var BN = require('bn.js')\nvar Buffer = require('safe-buffer').Buffer\n\nfunction withPublic (paddedMsg, key) {\n return Buffer.from(paddedMsg\n .toRed(BN.mont(key.modulus))\n .redPow(new BN(key.publicExponent))\n .fromRed()\n .toArray())\n}\n\nmodule.exports = withPublic\n",";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function (Math) {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var Hasher = C_lib.Hasher;\n\t var C_algo = C.algo;\n\n\t // Initialization and round constants tables\n\t var H = [];\n\t var K = [];\n\n\t // Compute constants\n\t (function () {\n\t function isPrime(n) {\n\t var sqrtN = Math.sqrt(n);\n\t for (var factor = 2; factor <= sqrtN; factor++) {\n\t if (!(n % factor)) {\n\t return false;\n\t }\n\t }\n\n\t return true;\n\t }\n\n\t function getFractionalBits(n) {\n\t return ((n - (n | 0)) * 0x100000000) | 0;\n\t }\n\n\t var n = 2;\n\t var nPrime = 0;\n\t while (nPrime < 64) {\n\t if (isPrime(n)) {\n\t if (nPrime < 8) {\n\t H[nPrime] = getFractionalBits(Math.pow(n, 1 / 2));\n\t }\n\t K[nPrime] = getFractionalBits(Math.pow(n, 1 / 3));\n\n\t nPrime++;\n\t }\n\n\t n++;\n\t }\n\t }());\n\n\t // Reusable object\n\t var W = [];\n\n\t /**\n\t * SHA-256 hash algorithm.\n\t */\n\t var SHA256 = C_algo.SHA256 = Hasher.extend({\n\t _doReset: function () {\n\t this._hash = new WordArray.init(H.slice(0));\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\t // Shortcut\n\t var H = this._hash.words;\n\n\t // Working variables\n\t var a = H[0];\n\t var b = H[1];\n\t var c = H[2];\n\t var d = H[3];\n\t var e = H[4];\n\t var f = H[5];\n\t var g = H[6];\n\t var h = H[7];\n\n\t // Computation\n\t for (var i = 0; i < 64; i++) {\n\t if (i < 16) {\n\t W[i] = M[offset + i] | 0;\n\t } else {\n\t var gamma0x = W[i - 15];\n\t var gamma0 = ((gamma0x << 25) | (gamma0x >>> 7)) ^\n\t ((gamma0x << 14) | (gamma0x >>> 18)) ^\n\t (gamma0x >>> 3);\n\n\t var gamma1x = W[i - 2];\n\t var gamma1 = ((gamma1x << 15) | (gamma1x >>> 17)) ^\n\t ((gamma1x << 13) | (gamma1x >>> 19)) ^\n\t (gamma1x >>> 10);\n\n\t W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16];\n\t }\n\n\t var ch = (e & f) ^ (~e & g);\n\t var maj = (a & b) ^ (a & c) ^ (b & c);\n\n\t var sigma0 = ((a << 30) | (a >>> 2)) ^ ((a << 19) | (a >>> 13)) ^ ((a << 10) | (a >>> 22));\n\t var sigma1 = ((e << 26) | (e >>> 6)) ^ ((e << 21) | (e >>> 11)) ^ ((e << 7) | (e >>> 25));\n\n\t var t1 = h + sigma1 + ch + K[i] + W[i];\n\t var t2 = sigma0 + maj;\n\n\t h = g;\n\t g = f;\n\t f = e;\n\t e = (d + t1) | 0;\n\t d = c;\n\t c = b;\n\t b = a;\n\t a = (t1 + t2) | 0;\n\t }\n\n\t // Intermediate hash value\n\t H[0] = (H[0] + a) | 0;\n\t H[1] = (H[1] + b) | 0;\n\t H[2] = (H[2] + c) | 0;\n\t H[3] = (H[3] + d) | 0;\n\t H[4] = (H[4] + e) | 0;\n\t H[5] = (H[5] + f) | 0;\n\t H[6] = (H[6] + g) | 0;\n\t H[7] = (H[7] + h) | 0;\n\t },\n\n\t _doFinalize: function () {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\n\t var nBitsTotal = this._nDataBytes * 8;\n\t var nBitsLeft = data.sigBytes * 8;\n\n\t // Add padding\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = nBitsTotal;\n\t data.sigBytes = dataWords.length * 4;\n\n\t // Hash final blocks\n\t this._process();\n\n\t // Return final computed hash\n\t return this._hash;\n\t },\n\n\t clone: function () {\n\t var clone = Hasher.clone.call(this);\n\t clone._hash = this._hash.clone();\n\n\t return clone;\n\t }\n\t });\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.SHA256('message');\n\t * var hash = CryptoJS.SHA256(wordArray);\n\t */\n\t C.SHA256 = Hasher._createHelper(SHA256);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacSHA256(message, key);\n\t */\n\t C.HmacSHA256 = Hasher._createHmacHelper(SHA256);\n\t}(Math));\n\n\n\treturn CryptoJS.SHA256;\n\n}));",";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./x64-core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./x64-core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var Hasher = C_lib.Hasher;\n\t var C_x64 = C.x64;\n\t var X64Word = C_x64.Word;\n\t var X64WordArray = C_x64.WordArray;\n\t var C_algo = C.algo;\n\n\t function X64Word_create() {\n\t return X64Word.create.apply(X64Word, arguments);\n\t }\n\n\t // Constants\n\t var K = [\n\t X64Word_create(0x428a2f98, 0xd728ae22), X64Word_create(0x71374491, 0x23ef65cd),\n\t X64Word_create(0xb5c0fbcf, 0xec4d3b2f), X64Word_create(0xe9b5dba5, 0x8189dbbc),\n\t X64Word_create(0x3956c25b, 0xf348b538), X64Word_create(0x59f111f1, 0xb605d019),\n\t X64Word_create(0x923f82a4, 0xaf194f9b), X64Word_create(0xab1c5ed5, 0xda6d8118),\n\t X64Word_create(0xd807aa98, 0xa3030242), X64Word_create(0x12835b01, 0x45706fbe),\n\t X64Word_create(0x243185be, 0x4ee4b28c), X64Word_create(0x550c7dc3, 0xd5ffb4e2),\n\t X64Word_create(0x72be5d74, 0xf27b896f), X64Word_create(0x80deb1fe, 0x3b1696b1),\n\t X64Word_create(0x9bdc06a7, 0x25c71235), X64Word_create(0xc19bf174, 0xcf692694),\n\t X64Word_create(0xe49b69c1, 0x9ef14ad2), X64Word_create(0xefbe4786, 0x384f25e3),\n\t X64Word_create(0x0fc19dc6, 0x8b8cd5b5), X64Word_create(0x240ca1cc, 0x77ac9c65),\n\t X64Word_create(0x2de92c6f, 0x592b0275), X64Word_create(0x4a7484aa, 0x6ea6e483),\n\t X64Word_create(0x5cb0a9dc, 0xbd41fbd4), X64Word_create(0x76f988da, 0x831153b5),\n\t X64Word_create(0x983e5152, 0xee66dfab), X64Word_create(0xa831c66d, 0x2db43210),\n\t X64Word_create(0xb00327c8, 0x98fb213f), X64Word_create(0xbf597fc7, 0xbeef0ee4),\n\t X64Word_create(0xc6e00bf3, 0x3da88fc2), X64Word_create(0xd5a79147, 0x930aa725),\n\t X64Word_create(0x06ca6351, 0xe003826f), X64Word_create(0x14292967, 0x0a0e6e70),\n\t X64Word_create(0x27b70a85, 0x46d22ffc), X64Word_create(0x2e1b2138, 0x5c26c926),\n\t X64Word_create(0x4d2c6dfc, 0x5ac42aed), X64Word_create(0x53380d13, 0x9d95b3df),\n\t X64Word_create(0x650a7354, 0x8baf63de), X64Word_create(0x766a0abb, 0x3c77b2a8),\n\t X64Word_create(0x81c2c92e, 0x47edaee6), X64Word_create(0x92722c85, 0x1482353b),\n\t X64Word_create(0xa2bfe8a1, 0x4cf10364), X64Word_create(0xa81a664b, 0xbc423001),\n\t X64Word_create(0xc24b8b70, 0xd0f89791), X64Word_create(0xc76c51a3, 0x0654be30),\n\t X64Word_create(0xd192e819, 0xd6ef5218), X64Word_create(0xd6990624, 0x5565a910),\n\t X64Word_create(0xf40e3585, 0x5771202a), X64Word_create(0x106aa070, 0x32bbd1b8),\n\t X64Word_create(0x19a4c116, 0xb8d2d0c8), X64Word_create(0x1e376c08, 0x5141ab53),\n\t X64Word_create(0x2748774c, 0xdf8eeb99), X64Word_create(0x34b0bcb5, 0xe19b48a8),\n\t X64Word_create(0x391c0cb3, 0xc5c95a63), X64Word_create(0x4ed8aa4a, 0xe3418acb),\n\t X64Word_create(0x5b9cca4f, 0x7763e373), X64Word_create(0x682e6ff3, 0xd6b2b8a3),\n\t X64Word_create(0x748f82ee, 0x5defb2fc), X64Word_create(0x78a5636f, 0x43172f60),\n\t X64Word_create(0x84c87814, 0xa1f0ab72), X64Word_create(0x8cc70208, 0x1a6439ec),\n\t X64Word_create(0x90befffa, 0x23631e28), X64Word_create(0xa4506ceb, 0xde82bde9),\n\t X64Word_create(0xbef9a3f7, 0xb2c67915), X64Word_create(0xc67178f2, 0xe372532b),\n\t X64Word_create(0xca273ece, 0xea26619c), X64Word_create(0xd186b8c7, 0x21c0c207),\n\t X64Word_create(0xeada7dd6, 0xcde0eb1e), X64Word_create(0xf57d4f7f, 0xee6ed178),\n\t X64Word_create(0x06f067aa, 0x72176fba), X64Word_create(0x0a637dc5, 0xa2c898a6),\n\t X64Word_create(0x113f9804, 0xbef90dae), X64Word_create(0x1b710b35, 0x131c471b),\n\t X64Word_create(0x28db77f5, 0x23047d84), X64Word_create(0x32caab7b, 0x40c72493),\n\t X64Word_create(0x3c9ebe0a, 0x15c9bebc), X64Word_create(0x431d67c4, 0x9c100d4c),\n\t X64Word_create(0x4cc5d4be, 0xcb3e42b6), X64Word_create(0x597f299c, 0xfc657e2a),\n\t X64Word_create(0x5fcb6fab, 0x3ad6faec), X64Word_create(0x6c44198c, 0x4a475817)\n\t ];\n\n\t // Reusable objects\n\t var W = [];\n\t (function () {\n\t for (var i = 0; i < 80; i++) {\n\t W[i] = X64Word_create();\n\t }\n\t }());\n\n\t /**\n\t * SHA-512 hash algorithm.\n\t */\n\t var SHA512 = C_algo.SHA512 = Hasher.extend({\n\t _doReset: function () {\n\t this._hash = new X64WordArray.init([\n\t new X64Word.init(0x6a09e667, 0xf3bcc908), new X64Word.init(0xbb67ae85, 0x84caa73b),\n\t new X64Word.init(0x3c6ef372, 0xfe94f82b), new X64Word.init(0xa54ff53a, 0x5f1d36f1),\n\t new X64Word.init(0x510e527f, 0xade682d1), new X64Word.init(0x9b05688c, 0x2b3e6c1f),\n\t new X64Word.init(0x1f83d9ab, 0xfb41bd6b), new X64Word.init(0x5be0cd19, 0x137e2179)\n\t ]);\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\t // Shortcuts\n\t var H = this._hash.words;\n\n\t var H0 = H[0];\n\t var H1 = H[1];\n\t var H2 = H[2];\n\t var H3 = H[3];\n\t var H4 = H[4];\n\t var H5 = H[5];\n\t var H6 = H[6];\n\t var H7 = H[7];\n\n\t var H0h = H0.high;\n\t var H0l = H0.low;\n\t var H1h = H1.high;\n\t var H1l = H1.low;\n\t var H2h = H2.high;\n\t var H2l = H2.low;\n\t var H3h = H3.high;\n\t var H3l = H3.low;\n\t var H4h = H4.high;\n\t var H4l = H4.low;\n\t var H5h = H5.high;\n\t var H5l = H5.low;\n\t var H6h = H6.high;\n\t var H6l = H6.low;\n\t var H7h = H7.high;\n\t var H7l = H7.low;\n\n\t // Working variables\n\t var ah = H0h;\n\t var al = H0l;\n\t var bh = H1h;\n\t var bl = H1l;\n\t var ch = H2h;\n\t var cl = H2l;\n\t var dh = H3h;\n\t var dl = H3l;\n\t var eh = H4h;\n\t var el = H4l;\n\t var fh = H5h;\n\t var fl = H5l;\n\t var gh = H6h;\n\t var gl = H6l;\n\t var hh = H7h;\n\t var hl = H7l;\n\n\t // Rounds\n\t for (var i = 0; i < 80; i++) {\n\t var Wil;\n\t var Wih;\n\n\t // Shortcut\n\t var Wi = W[i];\n\n\t // Extend message\n\t if (i < 16) {\n\t Wih = Wi.high = M[offset + i * 2] | 0;\n\t Wil = Wi.low = M[offset + i * 2 + 1] | 0;\n\t } else {\n\t // Gamma0\n\t var gamma0x = W[i - 15];\n\t var gamma0xh = gamma0x.high;\n\t var gamma0xl = gamma0x.low;\n\t var gamma0h = ((gamma0xh >>> 1) | (gamma0xl << 31)) ^ ((gamma0xh >>> 8) | (gamma0xl << 24)) ^ (gamma0xh >>> 7);\n\t var gamma0l = ((gamma0xl >>> 1) | (gamma0xh << 31)) ^ ((gamma0xl >>> 8) | (gamma0xh << 24)) ^ ((gamma0xl >>> 7) | (gamma0xh << 25));\n\n\t // Gamma1\n\t var gamma1x = W[i - 2];\n\t var gamma1xh = gamma1x.high;\n\t var gamma1xl = gamma1x.low;\n\t var gamma1h = ((gamma1xh >>> 19) | (gamma1xl << 13)) ^ ((gamma1xh << 3) | (gamma1xl >>> 29)) ^ (gamma1xh >>> 6);\n\t var gamma1l = ((gamma1xl >>> 19) | (gamma1xh << 13)) ^ ((gamma1xl << 3) | (gamma1xh >>> 29)) ^ ((gamma1xl >>> 6) | (gamma1xh << 26));\n\n\t // W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]\n\t var Wi7 = W[i - 7];\n\t var Wi7h = Wi7.high;\n\t var Wi7l = Wi7.low;\n\n\t var Wi16 = W[i - 16];\n\t var Wi16h = Wi16.high;\n\t var Wi16l = Wi16.low;\n\n\t Wil = gamma0l + Wi7l;\n\t Wih = gamma0h + Wi7h + ((Wil >>> 0) < (gamma0l >>> 0) ? 1 : 0);\n\t Wil = Wil + gamma1l;\n\t Wih = Wih + gamma1h + ((Wil >>> 0) < (gamma1l >>> 0) ? 1 : 0);\n\t Wil = Wil + Wi16l;\n\t Wih = Wih + Wi16h + ((Wil >>> 0) < (Wi16l >>> 0) ? 1 : 0);\n\n\t Wi.high = Wih;\n\t Wi.low = Wil;\n\t }\n\n\t var chh = (eh & fh) ^ (~eh & gh);\n\t var chl = (el & fl) ^ (~el & gl);\n\t var majh = (ah & bh) ^ (ah & ch) ^ (bh & ch);\n\t var majl = (al & bl) ^ (al & cl) ^ (bl & cl);\n\n\t var sigma0h = ((ah >>> 28) | (al << 4)) ^ ((ah << 30) | (al >>> 2)) ^ ((ah << 25) | (al >>> 7));\n\t var sigma0l = ((al >>> 28) | (ah << 4)) ^ ((al << 30) | (ah >>> 2)) ^ ((al << 25) | (ah >>> 7));\n\t var sigma1h = ((eh >>> 14) | (el << 18)) ^ ((eh >>> 18) | (el << 14)) ^ ((eh << 23) | (el >>> 9));\n\t var sigma1l = ((el >>> 14) | (eh << 18)) ^ ((el >>> 18) | (eh << 14)) ^ ((el << 23) | (eh >>> 9));\n\n\t // t1 = h + sigma1 + ch + K[i] + W[i]\n\t var Ki = K[i];\n\t var Kih = Ki.high;\n\t var Kil = Ki.low;\n\n\t var t1l = hl + sigma1l;\n\t var t1h = hh + sigma1h + ((t1l >>> 0) < (hl >>> 0) ? 1 : 0);\n\t var t1l = t1l + chl;\n\t var t1h = t1h + chh + ((t1l >>> 0) < (chl >>> 0) ? 1 : 0);\n\t var t1l = t1l + Kil;\n\t var t1h = t1h + Kih + ((t1l >>> 0) < (Kil >>> 0) ? 1 : 0);\n\t var t1l = t1l + Wil;\n\t var t1h = t1h + Wih + ((t1l >>> 0) < (Wil >>> 0) ? 1 : 0);\n\n\t // t2 = sigma0 + maj\n\t var t2l = sigma0l + majl;\n\t var t2h = sigma0h + majh + ((t2l >>> 0) < (sigma0l >>> 0) ? 1 : 0);\n\n\t // Update working variables\n\t hh = gh;\n\t hl = gl;\n\t gh = fh;\n\t gl = fl;\n\t fh = eh;\n\t fl = el;\n\t el = (dl + t1l) | 0;\n\t eh = (dh + t1h + ((el >>> 0) < (dl >>> 0) ? 1 : 0)) | 0;\n\t dh = ch;\n\t dl = cl;\n\t ch = bh;\n\t cl = bl;\n\t bh = ah;\n\t bl = al;\n\t al = (t1l + t2l) | 0;\n\t ah = (t1h + t2h + ((al >>> 0) < (t1l >>> 0) ? 1 : 0)) | 0;\n\t }\n\n\t // Intermediate hash value\n\t H0l = H0.low = (H0l + al);\n\t H0.high = (H0h + ah + ((H0l >>> 0) < (al >>> 0) ? 1 : 0));\n\t H1l = H1.low = (H1l + bl);\n\t H1.high = (H1h + bh + ((H1l >>> 0) < (bl >>> 0) ? 1 : 0));\n\t H2l = H2.low = (H2l + cl);\n\t H2.high = (H2h + ch + ((H2l >>> 0) < (cl >>> 0) ? 1 : 0));\n\t H3l = H3.low = (H3l + dl);\n\t H3.high = (H3h + dh + ((H3l >>> 0) < (dl >>> 0) ? 1 : 0));\n\t H4l = H4.low = (H4l + el);\n\t H4.high = (H4h + eh + ((H4l >>> 0) < (el >>> 0) ? 1 : 0));\n\t H5l = H5.low = (H5l + fl);\n\t H5.high = (H5h + fh + ((H5l >>> 0) < (fl >>> 0) ? 1 : 0));\n\t H6l = H6.low = (H6l + gl);\n\t H6.high = (H6h + gh + ((H6l >>> 0) < (gl >>> 0) ? 1 : 0));\n\t H7l = H7.low = (H7l + hl);\n\t H7.high = (H7h + hh + ((H7l >>> 0) < (hl >>> 0) ? 1 : 0));\n\t },\n\n\t _doFinalize: function () {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\n\t var nBitsTotal = this._nDataBytes * 8;\n\t var nBitsLeft = data.sigBytes * 8;\n\n\t // Add padding\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\t dataWords[(((nBitsLeft + 128) >>> 10) << 5) + 30] = Math.floor(nBitsTotal / 0x100000000);\n\t dataWords[(((nBitsLeft + 128) >>> 10) << 5) + 31] = nBitsTotal;\n\t data.sigBytes = dataWords.length * 4;\n\n\t // Hash final blocks\n\t this._process();\n\n\t // Convert hash to 32-bit word array before returning\n\t var hash = this._hash.toX32();\n\n\t // Return final computed hash\n\t return hash;\n\t },\n\n\t clone: function () {\n\t var clone = Hasher.clone.call(this);\n\t clone._hash = this._hash.clone();\n\n\t return clone;\n\t },\n\n\t blockSize: 1024/32\n\t });\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.SHA512('message');\n\t * var hash = CryptoJS.SHA512(wordArray);\n\t */\n\t C.SHA512 = Hasher._createHelper(SHA512);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacSHA512(message, key);\n\t */\n\t C.HmacSHA512 = Hasher._createHmacHelper(SHA512);\n\t}());\n\n\n\treturn CryptoJS.SHA512;\n\n}));","\"use strict\";\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }\nvar __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar crypto_js_1 = __importDefault(require(\"crypto-js\"));\nvar utils_1 = require(\"./utils\");\nfunction getAsyncPacketIterator(_a) {\n var data = _a.data, frameSize = _a.frameSize, kek = _a.kek, chunkSize = _a.chunkSize;\n return __asyncGenerator(this, arguments, function getAsyncPacketIterator_1() {\n var iv, ivWA, kekWA, rawKeyWA, keyDec, key, defaultChunkSize, packetCount, currentChunkSize, uint8DataArray, padding, offset, dataChunk, dataChunkWA, encryptedChunk, encryptedDataChunk, nextIvWA, nextiv;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n iv = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0]);\n ivWA = crypto_js_1.default.lib.WordArray.create(iv);\n kekWA = crypto_js_1.default.lib.WordArray.create(kek);\n rawKeyWA = crypto_js_1.default.lib.WordArray.random(8);\n keyDec = crypto_js_1.default.DES.decrypt({\n ciphertext: rawKeyWA,\n }, kekWA, { mode: crypto_js_1.default.mode.ECB, padding: crypto_js_1.default.pad.Pkcs7 });\n keyDec.sigBytes = 8;\n key = utils_1.wordArrayToByteArray(keyDec);\n defaultChunkSize = chunkSize ? chunkSize : 0x00100000;\n packetCount = 0;\n currentChunkSize = 0;\n uint8DataArray = new Uint8Array(data);\n if (uint8DataArray.length % frameSize !== 0) {\n padding = frameSize - (uint8DataArray.length % frameSize);\n uint8DataArray = utils_1.concatUint8Arrays(uint8DataArray, new Uint8Array(Array(padding).fill(0)));\n }\n offset = 0;\n _a.label = 1;\n case 1:\n if (!(offset < uint8DataArray.length)) return [3 /*break*/, 4];\n if (packetCount > 0) {\n currentChunkSize = defaultChunkSize;\n }\n else {\n currentChunkSize = defaultChunkSize - 24;\n }\n currentChunkSize = Math.min(currentChunkSize, uint8DataArray.length - offset);\n dataChunk = uint8DataArray.subarray(offset, offset + currentChunkSize);\n dataChunkWA = crypto_js_1.default.lib.WordArray.create(dataChunk);\n encryptedChunk = crypto_js_1.default.DES.encrypt(dataChunkWA, rawKeyWA, {\n mode: crypto_js_1.default.mode.CBC,\n iv: ivWA,\n });\n encryptedDataChunk = utils_1.wordArrayToByteArray(encryptedChunk.ciphertext);\n encryptedDataChunk = encryptedDataChunk.subarray(0, currentChunkSize); //encryptedDataChunk.length - 8\n nextIvWA = crypto_js_1.default.lib.WordArray.create(encryptedDataChunk.subarray(encryptedDataChunk.length - 8, encryptedDataChunk.length));\n nextiv = utils_1.wordArrayToByteArray(ivWA);\n return [4 /*yield*/, __await({ key: key, iv: iv, data: encryptedDataChunk })];\n case 2: return [4 /*yield*/, _a.sent()];\n case 3:\n _a.sent();\n ivWA = nextIvWA;\n iv = nextiv;\n offset = offset + currentChunkSize;\n packetCount += 1;\n return [3 /*break*/, 1];\n case 4: return [2 /*return*/];\n }\n });\n });\n}\nexports.getAsyncPacketIterator = getAsyncPacketIterator;\n//# sourceMappingURL=encrypt-generator.js.map","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.scanAppendingHeaders = exports.selectCover = exports.ratingToStars = exports.orderTags = exports.parseFromTokenizer = exports.parseBuffer = exports.parseStream = void 0;\nconst strtok3 = require(\"strtok3/lib/core\");\nconst ParserFactory_1 = require(\"./ParserFactory\");\nconst RandomBufferReader_1 = require(\"./common/RandomBufferReader\");\nconst APEv2Parser_1 = require(\"./apev2/APEv2Parser\");\nconst ID3v1Parser_1 = require(\"./id3v1/ID3v1Parser\");\nconst Lyrics3_1 = require(\"./lyrics3/Lyrics3\");\n/**\n * Parse audio from Node Stream.Readable\n * @param stream - Stream to read the audio track from\n * @param options - Parsing options\n * @param fileInfo - File information object or MIME-type string\n * @returns Metadata\n */\nfunction parseStream(stream, fileInfo, options = {}) {\n return parseFromTokenizer(strtok3.fromStream(stream, typeof fileInfo === 'string' ? { mimeType: fileInfo } : fileInfo), options);\n}\nexports.parseStream = parseStream;\n/**\n * Parse audio from Node Buffer\n * @param buf - Buffer holding audio data\n * @param fileInfo - File information object or MIME-type string\n * @param options - Parsing options\n * @returns Metadata\n * Ref: https://github.com/Borewit/strtok3/blob/e6938c81ff685074d5eb3064a11c0b03ca934c1d/src/index.ts#L15\n */\nasync function parseBuffer(buf, fileInfo, options = {}) {\n const bufferReader = new RandomBufferReader_1.RandomBufferReader(buf);\n await scanAppendingHeaders(bufferReader, options);\n const tokenizer = strtok3.fromBuffer(buf, typeof fileInfo === 'string' ? { mimeType: fileInfo } : fileInfo);\n return parseFromTokenizer(tokenizer, options);\n}\nexports.parseBuffer = parseBuffer;\n/**\n * Parse audio from ITokenizer source\n * @param tokenizer - Audio source implementing the tokenizer interface\n * @param options - Parsing options\n * @returns Metadata\n */\nfunction parseFromTokenizer(tokenizer, options) {\n return ParserFactory_1.ParserFactory.parseOnContentType(tokenizer, options);\n}\nexports.parseFromTokenizer = parseFromTokenizer;\n/**\n * Create a dictionary ordered by their tag id (key)\n * @param nativeTags list of tags\n * @returns tags indexed by id\n */\nfunction orderTags(nativeTags) {\n const tags = {};\n for (const tag of nativeTags) {\n (tags[tag.id] = (tags[tag.id] || [])).push(tag.value);\n }\n return tags;\n}\nexports.orderTags = orderTags;\n/**\n * Convert rating to 1-5 star rating\n * @param rating: Normalized rating [0..1] (common.rating[n].rating)\n * @returns Number of stars: 1, 2, 3, 4 or 5 stars\n */\nfunction ratingToStars(rating) {\n return rating === undefined ? 0 : 1 + Math.round(rating * 4);\n}\nexports.ratingToStars = ratingToStars;\n/**\n * Select most likely cover image.\n * @param pictures Usually metadata.common.picture\n * @return Cover image, if any, otherwise null\n */\nfunction selectCover(pictures) {\n return pictures ? pictures.reduce((acc, cur) => {\n if (cur.name && cur.name.toLowerCase() in ['front', 'cover', 'cover (front)'])\n return cur;\n return acc;\n }) : null;\n}\nexports.selectCover = selectCover;\nasync function scanAppendingHeaders(randomReader, options = {}) {\n let apeOffset = randomReader.fileSize;\n if (await ID3v1Parser_1.hasID3v1Header(randomReader)) {\n apeOffset -= 128;\n const lyricsLen = await Lyrics3_1.getLyricsHeaderLength(randomReader);\n apeOffset -= lyricsLen;\n }\n options.apeHeader = await APEv2Parser_1.APEv2Parser.findApeFooterOffset(randomReader, apeOffset);\n}\nexports.scanAppendingHeaders = scanAppendingHeaders;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.EndOfStreamError = exports.defaultMessages = void 0;\nexports.defaultMessages = 'End-Of-Stream';\n/**\n * Thrown on read operation of the end of file or stream has been reached\n */\nclass EndOfStreamError extends Error {\n constructor() {\n super(exports.defaultMessages);\n }\n}\nexports.EndOfStreamError = EndOfStreamError;\n","'use strict';\nconst Token = require('token-types');\nconst strtok3 = require('strtok3/lib/core');\nconst {\n\tstringToBytes,\n\ttarHeaderChecksumMatches,\n\tuint32SyncSafeToken\n} = require('./util');\nconst supported = require('./supported');\n\nconst minimumBytes = 4100; // A fair amount of file-types are detectable within this range\n\nasync function fromStream(stream) {\n\tconst tokenizer = await strtok3.fromStream(stream);\n\ttry {\n\t\treturn await fromTokenizer(tokenizer);\n\t} finally {\n\t\tawait tokenizer.close();\n\t}\n}\n\nasync function fromBuffer(input) {\n\tif (!(input instanceof Uint8Array || input instanceof ArrayBuffer || Buffer.isBuffer(input))) {\n\t\tthrow new TypeError(`Expected the \\`input\\` argument to be of type \\`Uint8Array\\` or \\`Buffer\\` or \\`ArrayBuffer\\`, got \\`${typeof input}\\``);\n\t}\n\n\tconst buffer = input instanceof Buffer ? input : Buffer.from(input);\n\n\tif (!(buffer && buffer.length > 1)) {\n\t\treturn;\n\t}\n\n\tconst tokenizer = strtok3.fromBuffer(buffer);\n\treturn fromTokenizer(tokenizer);\n}\n\nfunction _check(buffer, headers, options) {\n\toptions = {\n\t\toffset: 0,\n\t\t...options\n\t};\n\n\tfor (const [index, header] of headers.entries()) {\n\t\t// If a bitmask is set\n\t\tif (options.mask) {\n\t\t\t// If header doesn't equal `buf` with bits masked off\n\t\t\tif (header !== (options.mask[index] & buffer[index + options.offset])) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else if (header !== buffer[index + options.offset]) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}\n\nasync function fromTokenizer(tokenizer) {\n\ttry {\n\t\treturn _fromTokenizer(tokenizer);\n\t} catch (error) {\n\t\tif (!(error instanceof strtok3.EndOfStreamError)) {\n\t\t\tthrow error;\n\t\t}\n\t}\n}\n\nasync function _fromTokenizer(tokenizer) {\n\tlet buffer = Buffer.alloc(minimumBytes);\n\tconst bytesRead = 12;\n\tconst check = (header, options) => _check(buffer, header, options);\n\tconst checkString = (header, options) => check(stringToBytes(header), options);\n\n\t// Keep reading until EOF if the file size is unknown.\n\tif (!tokenizer.fileInfo.size) {\n\t\ttokenizer.fileInfo.size = Number.MAX_SAFE_INTEGER;\n\t}\n\n\tawait tokenizer.peekBuffer(buffer, {length: bytesRead, mayBeLess: true});\n\n\t// -- 2-byte signatures --\n\n\tif (check([0x42, 0x4D])) {\n\t\treturn {\n\t\t\text: 'bmp',\n\t\t\tmime: 'image/bmp'\n\t\t};\n\t}\n\n\tif (check([0x0B, 0x77])) {\n\t\treturn {\n\t\t\text: 'ac3',\n\t\t\tmime: 'audio/vnd.dolby.dd-raw'\n\t\t};\n\t}\n\n\tif (check([0x78, 0x01])) {\n\t\treturn {\n\t\t\text: 'dmg',\n\t\t\tmime: 'application/x-apple-diskimage'\n\t\t};\n\t}\n\n\tif (check([0x4D, 0x5A])) {\n\t\treturn {\n\t\t\text: 'exe',\n\t\t\tmime: 'application/x-msdownload'\n\t\t};\n\t}\n\n\tif (check([0x25, 0x21])) {\n\t\tawait tokenizer.peekBuffer(buffer, {length: 24, mayBeLess: true});\n\n\t\tif (checkString('PS-Adobe-', {offset: 2}) &&\n\t\t\tcheckString(' EPSF-', {offset: 14})) {\n\t\t\treturn {\n\t\t\t\text: 'eps',\n\t\t\t\tmime: 'application/eps'\n\t\t\t};\n\t\t}\n\n\t\treturn {\n\t\t\text: 'ps',\n\t\t\tmime: 'application/postscript'\n\t\t};\n\t}\n\n\tif (\n\t\tcheck([0x1F, 0xA0]) ||\n\t\tcheck([0x1F, 0x9D])\n\t) {\n\t\treturn {\n\t\t\text: 'Z',\n\t\t\tmime: 'application/x-compress'\n\t\t};\n\t}\n\n\t// -- 3-byte signatures --\n\n\tif (check([0xFF, 0xD8, 0xFF])) {\n\t\treturn {\n\t\t\text: 'jpg',\n\t\t\tmime: 'image/jpeg'\n\t\t};\n\t}\n\n\tif (check([0x49, 0x49, 0xBC])) {\n\t\treturn {\n\t\t\text: 'jxr',\n\t\t\tmime: 'image/vnd.ms-photo'\n\t\t};\n\t}\n\n\tif (check([0x1F, 0x8B, 0x8])) {\n\t\treturn {\n\t\t\text: 'gz',\n\t\t\tmime: 'application/gzip'\n\t\t};\n\t}\n\n\tif (check([0x42, 0x5A, 0x68])) {\n\t\treturn {\n\t\t\text: 'bz2',\n\t\t\tmime: 'application/x-bzip2'\n\t\t};\n\t}\n\n\tif (checkString('ID3')) {\n\t\tawait tokenizer.ignore(6); // Skip ID3 header until the header size\n\t\tconst id3HeaderLen = await tokenizer.readToken(uint32SyncSafeToken);\n\t\tif (tokenizer.position + id3HeaderLen > tokenizer.fileInfo.size) {\n\t\t\t// Guess file type based on ID3 header for backward compatibility\n\t\t\treturn {\n\t\t\t\text: 'mp3',\n\t\t\t\tmime: 'audio/mpeg'\n\t\t\t};\n\t\t}\n\n\t\tawait tokenizer.ignore(id3HeaderLen);\n\t\treturn fromTokenizer(tokenizer); // Skip ID3 header, recursion\n\t}\n\n\t// Musepack, SV7\n\tif (checkString('MP+')) {\n\t\treturn {\n\t\t\text: 'mpc',\n\t\t\tmime: 'audio/x-musepack'\n\t\t};\n\t}\n\n\tif (\n\t\t(buffer[0] === 0x43 || buffer[0] === 0x46) &&\n\t\tcheck([0x57, 0x53], {offset: 1})\n\t) {\n\t\treturn {\n\t\t\text: 'swf',\n\t\t\tmime: 'application/x-shockwave-flash'\n\t\t};\n\t}\n\n\t// -- 4-byte signatures --\n\n\tif (check([0x47, 0x49, 0x46])) {\n\t\treturn {\n\t\t\text: 'gif',\n\t\t\tmime: 'image/gif'\n\t\t};\n\t}\n\n\tif (checkString('FLIF')) {\n\t\treturn {\n\t\t\text: 'flif',\n\t\t\tmime: 'image/flif'\n\t\t};\n\t}\n\n\tif (checkString('8BPS')) {\n\t\treturn {\n\t\t\text: 'psd',\n\t\t\tmime: 'image/vnd.adobe.photoshop'\n\t\t};\n\t}\n\n\tif (checkString('WEBP', {offset: 8})) {\n\t\treturn {\n\t\t\text: 'webp',\n\t\t\tmime: 'image/webp'\n\t\t};\n\t}\n\n\t// Musepack, SV8\n\tif (checkString('MPCK')) {\n\t\treturn {\n\t\t\text: 'mpc',\n\t\t\tmime: 'audio/x-musepack'\n\t\t};\n\t}\n\n\tif (checkString('FORM')) {\n\t\treturn {\n\t\t\text: 'aif',\n\t\t\tmime: 'audio/aiff'\n\t\t};\n\t}\n\n\tif (checkString('icns', {offset: 0})) {\n\t\treturn {\n\t\t\text: 'icns',\n\t\t\tmime: 'image/icns'\n\t\t};\n\t}\n\n\t// Zip-based file formats\n\t// Need to be before the `zip` check\n\tif (check([0x50, 0x4B, 0x3, 0x4])) { // Local file header signature\n\t\ttry {\n\t\t\twhile (tokenizer.position + 30 < tokenizer.fileInfo.size) {\n\t\t\t\tawait tokenizer.readBuffer(buffer, {length: 30});\n\n\t\t\t\t// https://en.wikipedia.org/wiki/Zip_(file_format)#File_headers\n\t\t\t\tconst zipHeader = {\n\t\t\t\t\tcompressedSize: buffer.readUInt32LE(18),\n\t\t\t\t\tuncompressedSize: buffer.readUInt32LE(22),\n\t\t\t\t\tfilenameLength: buffer.readUInt16LE(26),\n\t\t\t\t\textraFieldLength: buffer.readUInt16LE(28)\n\t\t\t\t};\n\n\t\t\t\tzipHeader.filename = await tokenizer.readToken(new Token.StringType(zipHeader.filenameLength, 'utf-8'));\n\t\t\t\tawait tokenizer.ignore(zipHeader.extraFieldLength);\n\n\t\t\t\t// Assumes signed `.xpi` from addons.mozilla.org\n\t\t\t\tif (zipHeader.filename === 'META-INF/mozilla.rsa') {\n\t\t\t\t\treturn {\n\t\t\t\t\t\text: 'xpi',\n\t\t\t\t\t\tmime: 'application/x-xpinstall'\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\tif (zipHeader.filename.endsWith('.rels') || zipHeader.filename.endsWith('.xml')) {\n\t\t\t\t\tconst type = zipHeader.filename.split('/')[0];\n\t\t\t\t\tswitch (type) {\n\t\t\t\t\t\tcase '_rels':\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'word':\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\text: 'docx',\n\t\t\t\t\t\t\t\tmime: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\tcase 'ppt':\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\text: 'pptx',\n\t\t\t\t\t\t\t\tmime: 'application/vnd.openxmlformats-officedocument.presentationml.presentation'\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\tcase 'xl':\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\text: 'xlsx',\n\t\t\t\t\t\t\t\tmime: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (zipHeader.filename.startsWith('xl/')) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\text: 'xlsx',\n\t\t\t\t\t\tmime: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\tif (zipHeader.filename.startsWith('3D/') && zipHeader.filename.endsWith('.model')) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\text: '3mf',\n\t\t\t\t\t\tmime: 'model/3mf'\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\t// The docx, xlsx and pptx file types extend the Office Open XML file format:\n\t\t\t\t// https://en.wikipedia.org/wiki/Office_Open_XML_file_formats\n\t\t\t\t// We look for:\n\t\t\t\t// - one entry named '[Content_Types].xml' or '_rels/.rels',\n\t\t\t\t// - one entry indicating specific type of file.\n\t\t\t\t// MS Office, OpenOffice and LibreOffice may put the parts in different order, so the check should not rely on it.\n\t\t\t\tif (zipHeader.filename === 'mimetype' && zipHeader.compressedSize === zipHeader.uncompressedSize) {\n\t\t\t\t\tconst mimeType = await tokenizer.readToken(new Token.StringType(zipHeader.compressedSize, 'utf-8'));\n\n\t\t\t\t\tswitch (mimeType) {\n\t\t\t\t\t\tcase 'application/epub+zip':\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\text: 'epub',\n\t\t\t\t\t\t\t\tmime: 'application/epub+zip'\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\tcase 'application/vnd.oasis.opendocument.text':\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\text: 'odt',\n\t\t\t\t\t\t\t\tmime: 'application/vnd.oasis.opendocument.text'\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\tcase 'application/vnd.oasis.opendocument.spreadsheet':\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\text: 'ods',\n\t\t\t\t\t\t\t\tmime: 'application/vnd.oasis.opendocument.spreadsheet'\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\tcase 'application/vnd.oasis.opendocument.presentation':\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\text: 'odp',\n\t\t\t\t\t\t\t\tmime: 'application/vnd.oasis.opendocument.presentation'\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Try to find next header manually when current one is corrupted\n\t\t\t\tif (zipHeader.compressedSize === 0) {\n\t\t\t\t\tlet nextHeaderIndex = -1;\n\n\t\t\t\t\twhile (nextHeaderIndex < 0 && (tokenizer.position < tokenizer.fileInfo.size)) {\n\t\t\t\t\t\tawait tokenizer.peekBuffer(buffer, {mayBeLess: true});\n\n\t\t\t\t\t\tnextHeaderIndex = buffer.indexOf('504B0304', 0, 'hex');\n\t\t\t\t\t\t// Move position to the next header if found, skip the whole buffer otherwise\n\t\t\t\t\t\tawait tokenizer.ignore(nextHeaderIndex >= 0 ? nextHeaderIndex : buffer.length);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tawait tokenizer.ignore(zipHeader.compressedSize);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tif (!(error instanceof strtok3.EndOfStreamError)) {\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t}\n\n\t\treturn {\n\t\t\text: 'zip',\n\t\t\tmime: 'application/zip'\n\t\t};\n\t}\n\n\tif (checkString('OggS')) {\n\t\t// This is an OGG container\n\t\tawait tokenizer.ignore(28);\n\t\tconst type = Buffer.alloc(8);\n\t\tawait tokenizer.readBuffer(type);\n\n\t\t// Needs to be before `ogg` check\n\t\tif (_check(type, [0x4F, 0x70, 0x75, 0x73, 0x48, 0x65, 0x61, 0x64])) {\n\t\t\treturn {\n\t\t\t\text: 'opus',\n\t\t\t\tmime: 'audio/opus'\n\t\t\t};\n\t\t}\n\n\t\t// If ' theora' in header.\n\t\tif (_check(type, [0x80, 0x74, 0x68, 0x65, 0x6F, 0x72, 0x61])) {\n\t\t\treturn {\n\t\t\t\text: 'ogv',\n\t\t\t\tmime: 'video/ogg'\n\t\t\t};\n\t\t}\n\n\t\t// If '\\x01video' in header.\n\t\tif (_check(type, [0x01, 0x76, 0x69, 0x64, 0x65, 0x6F, 0x00])) {\n\t\t\treturn {\n\t\t\t\text: 'ogm',\n\t\t\t\tmime: 'video/ogg'\n\t\t\t};\n\t\t}\n\n\t\t// If ' FLAC' in header https://xiph.org/flac/faq.html\n\t\tif (_check(type, [0x7F, 0x46, 0x4C, 0x41, 0x43])) {\n\t\t\treturn {\n\t\t\t\text: 'oga',\n\t\t\t\tmime: 'audio/ogg'\n\t\t\t};\n\t\t}\n\n\t\t// 'Speex ' in header https://en.wikipedia.org/wiki/Speex\n\t\tif (_check(type, [0x53, 0x70, 0x65, 0x65, 0x78, 0x20, 0x20])) {\n\t\t\treturn {\n\t\t\t\text: 'spx',\n\t\t\t\tmime: 'audio/ogg'\n\t\t\t};\n\t\t}\n\n\t\t// If '\\x01vorbis' in header\n\t\tif (_check(type, [0x01, 0x76, 0x6F, 0x72, 0x62, 0x69, 0x73])) {\n\t\t\treturn {\n\t\t\t\text: 'ogg',\n\t\t\t\tmime: 'audio/ogg'\n\t\t\t};\n\t\t}\n\n\t\t// Default OGG container https://www.iana.org/assignments/media-types/application/ogg\n\t\treturn {\n\t\t\text: 'ogx',\n\t\t\tmime: 'application/ogg'\n\t\t};\n\t}\n\n\tif (\n\t\tcheck([0x50, 0x4B]) &&\n\t\t(buffer[2] === 0x3 || buffer[2] === 0x5 || buffer[2] === 0x7) &&\n\t\t(buffer[3] === 0x4 || buffer[3] === 0x6 || buffer[3] === 0x8)\n\t) {\n\t\treturn {\n\t\t\text: 'zip',\n\t\t\tmime: 'application/zip'\n\t\t};\n\t}\n\n\t//\n\n\t// File Type Box (https://en.wikipedia.org/wiki/ISO_base_media_file_format)\n\t// It's not required to be first, but it's recommended to be. Almost all ISO base media files start with `ftyp` box.\n\t// `ftyp` box must contain a brand major identifier, which must consist of ISO 8859-1 printable characters.\n\t// Here we check for 8859-1 printable characters (for simplicity, it's a mask which also catches one non-printable character).\n\tif (\n\t\tcheckString('ftyp', {offset: 4}) &&\n\t\t(buffer[8] & 0x60) !== 0x00 // Brand major, first character ASCII?\n\t) {\n\t\t// They all can have MIME `video/mp4` except `application/mp4` special-case which is hard to detect.\n\t\t// For some cases, we're specific, everything else falls to `video/mp4` with `mp4` extension.\n\t\tconst brandMajor = buffer.toString('binary', 8, 12).replace('\\0', ' ').trim();\n\t\tswitch (brandMajor) {\n\t\t\tcase 'avif':\n\t\t\t\treturn {ext: 'avif', mime: 'image/avif'};\n\t\t\tcase 'mif1':\n\t\t\t\treturn {ext: 'heic', mime: 'image/heif'};\n\t\t\tcase 'msf1':\n\t\t\t\treturn {ext: 'heic', mime: 'image/heif-sequence'};\n\t\t\tcase 'heic':\n\t\t\tcase 'heix':\n\t\t\t\treturn {ext: 'heic', mime: 'image/heic'};\n\t\t\tcase 'hevc':\n\t\t\tcase 'hevx':\n\t\t\t\treturn {ext: 'heic', mime: 'image/heic-sequence'};\n\t\t\tcase 'qt':\n\t\t\t\treturn {ext: 'mov', mime: 'video/quicktime'};\n\t\t\tcase 'M4V':\n\t\t\tcase 'M4VH':\n\t\t\tcase 'M4VP':\n\t\t\t\treturn {ext: 'm4v', mime: 'video/x-m4v'};\n\t\t\tcase 'M4P':\n\t\t\t\treturn {ext: 'm4p', mime: 'video/mp4'};\n\t\t\tcase 'M4B':\n\t\t\t\treturn {ext: 'm4b', mime: 'audio/mp4'};\n\t\t\tcase 'M4A':\n\t\t\t\treturn {ext: 'm4a', mime: 'audio/x-m4a'};\n\t\t\tcase 'F4V':\n\t\t\t\treturn {ext: 'f4v', mime: 'video/mp4'};\n\t\t\tcase 'F4P':\n\t\t\t\treturn {ext: 'f4p', mime: 'video/mp4'};\n\t\t\tcase 'F4A':\n\t\t\t\treturn {ext: 'f4a', mime: 'audio/mp4'};\n\t\t\tcase 'F4B':\n\t\t\t\treturn {ext: 'f4b', mime: 'audio/mp4'};\n\t\t\tcase 'crx':\n\t\t\t\treturn {ext: 'cr3', mime: 'image/x-canon-cr3'};\n\t\t\tdefault:\n\t\t\t\tif (brandMajor.startsWith('3g')) {\n\t\t\t\t\tif (brandMajor.startsWith('3g2')) {\n\t\t\t\t\t\treturn {ext: '3g2', mime: 'video/3gpp2'};\n\t\t\t\t\t}\n\n\t\t\t\t\treturn {ext: '3gp', mime: 'video/3gpp'};\n\t\t\t\t}\n\n\t\t\t\treturn {ext: 'mp4', mime: 'video/mp4'};\n\t\t}\n\t}\n\n\tif (checkString('MThd')) {\n\t\treturn {\n\t\t\text: 'mid',\n\t\t\tmime: 'audio/midi'\n\t\t};\n\t}\n\n\tif (\n\t\tcheckString('wOFF') &&\n\t\t(\n\t\t\tcheck([0x00, 0x01, 0x00, 0x00], {offset: 4}) ||\n\t\t\tcheckString('OTTO', {offset: 4})\n\t\t)\n\t) {\n\t\treturn {\n\t\t\text: 'woff',\n\t\t\tmime: 'font/woff'\n\t\t};\n\t}\n\n\tif (\n\t\tcheckString('wOF2') &&\n\t\t(\n\t\t\tcheck([0x00, 0x01, 0x00, 0x00], {offset: 4}) ||\n\t\t\tcheckString('OTTO', {offset: 4})\n\t\t)\n\t) {\n\t\treturn {\n\t\t\text: 'woff2',\n\t\t\tmime: 'font/woff2'\n\t\t};\n\t}\n\n\tif (check([0xD4, 0xC3, 0xB2, 0xA1]) || check([0xA1, 0xB2, 0xC3, 0xD4])) {\n\t\treturn {\n\t\t\text: 'pcap',\n\t\t\tmime: 'application/vnd.tcpdump.pcap'\n\t\t};\n\t}\n\n\t// Sony DSD Stream File (DSF)\n\tif (checkString('DSD ')) {\n\t\treturn {\n\t\t\text: 'dsf',\n\t\t\tmime: 'audio/x-dsf' // Non-standard\n\t\t};\n\t}\n\n\tif (checkString('LZIP')) {\n\t\treturn {\n\t\t\text: 'lz',\n\t\t\tmime: 'application/x-lzip'\n\t\t};\n\t}\n\n\tif (checkString('fLaC')) {\n\t\treturn {\n\t\t\text: 'flac',\n\t\t\tmime: 'audio/x-flac'\n\t\t};\n\t}\n\n\tif (check([0x42, 0x50, 0x47, 0xFB])) {\n\t\treturn {\n\t\t\text: 'bpg',\n\t\t\tmime: 'image/bpg'\n\t\t};\n\t}\n\n\tif (checkString('wvpk')) {\n\t\treturn {\n\t\t\text: 'wv',\n\t\t\tmime: 'audio/wavpack'\n\t\t};\n\t}\n\n\tif (checkString('%PDF')) {\n\t\tawait tokenizer.ignore(1350);\n\t\tconst maxBufferSize = 10 * 1024 * 1024;\n\t\tconst buffer = Buffer.alloc(Math.min(maxBufferSize, tokenizer.fileInfo.size));\n\t\tawait tokenizer.readBuffer(buffer, {mayBeLess: true});\n\n\t\t// Check if this is an Adobe Illustrator file\n\t\tif (buffer.includes(Buffer.from('AIPrivateData'))) {\n\t\t\treturn {\n\t\t\t\text: 'ai',\n\t\t\t\tmime: 'application/postscript'\n\t\t\t};\n\t\t}\n\n\t\t// Assume this is just a normal PDF\n\t\treturn {\n\t\t\text: 'pdf',\n\t\t\tmime: 'application/pdf'\n\t\t};\n\t}\n\n\tif (check([0x00, 0x61, 0x73, 0x6D])) {\n\t\treturn {\n\t\t\text: 'wasm',\n\t\t\tmime: 'application/wasm'\n\t\t};\n\t}\n\n\t// TIFF, little-endian type\n\tif (check([0x49, 0x49, 0x2A, 0x0])) {\n\t\tif (checkString('CR', {offset: 8})) {\n\t\t\treturn {\n\t\t\t\text: 'cr2',\n\t\t\t\tmime: 'image/x-canon-cr2'\n\t\t\t};\n\t\t}\n\n\t\tif (check([0x1C, 0x00, 0xFE, 0x00], {offset: 8}) || check([0x1F, 0x00, 0x0B, 0x00], {offset: 8})) {\n\t\t\treturn {\n\t\t\t\text: 'nef',\n\t\t\t\tmime: 'image/x-nikon-nef'\n\t\t\t};\n\t\t}\n\n\t\tif (\n\t\t\tcheck([0x08, 0x00, 0x00, 0x00], {offset: 4}) &&\n\t\t\t(check([0x2D, 0x00, 0xFE, 0x00], {offset: 8}) ||\n\t\t\t\tcheck([0x27, 0x00, 0xFE, 0x00], {offset: 8}))\n\t\t) {\n\t\t\treturn {\n\t\t\t\text: 'dng',\n\t\t\t\tmime: 'image/x-adobe-dng'\n\t\t\t};\n\t\t}\n\n\t\tbuffer = Buffer.alloc(24);\n\t\tawait tokenizer.peekBuffer(buffer);\n\t\tif (\n\t\t\t(check([0x10, 0xFB, 0x86, 0x01], {offset: 4}) || check([0x08, 0x00, 0x00, 0x00], {offset: 4})) &&\n\t\t\t// This pattern differentiates ARW from other TIFF-ish file types:\n\t\t\tcheck([0x00, 0xFE, 0x00, 0x04, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x03, 0x01], {offset: 9})\n\t\t) {\n\t\t\treturn {\n\t\t\t\text: 'arw',\n\t\t\t\tmime: 'image/x-sony-arw'\n\t\t\t};\n\t\t}\n\n\t\treturn {\n\t\t\text: 'tif',\n\t\t\tmime: 'image/tiff'\n\t\t};\n\t}\n\n\t// TIFF, big-endian type\n\tif (check([0x4D, 0x4D, 0x0, 0x2A])) {\n\t\treturn {\n\t\t\text: 'tif',\n\t\t\tmime: 'image/tiff'\n\t\t};\n\t}\n\n\tif (checkString('MAC ')) {\n\t\treturn {\n\t\t\text: 'ape',\n\t\t\tmime: 'audio/ape'\n\t\t};\n\t}\n\n\t// https://github.com/threatstack/libmagic/blob/master/magic/Magdir/matroska\n\tif (check([0x1A, 0x45, 0xDF, 0xA3])) { // Root element: EBML\n\t\tasync function readField() {\n\t\t\tconst msb = await tokenizer.peekNumber(Token.UINT8);\n\t\t\tlet mask = 0x80;\n\t\t\tlet ic = 0; // 0 = A, 1 = B, 2 = C, 3 = D\n\n\t\t\twhile ((msb & mask) === 0) {\n\t\t\t\t++ic;\n\t\t\t\tmask >>= 1;\n\t\t\t}\n\n\t\t\tconst id = Buffer.alloc(ic + 1);\n\t\t\tawait tokenizer.readBuffer(id);\n\t\t\treturn id;\n\t\t}\n\n\t\tasync function readElement() {\n\t\t\tconst id = await readField();\n\t\t\tconst lenField = await readField();\n\t\t\tlenField[0] ^= 0x80 >> (lenField.length - 1);\n\t\t\tconst nrLen = Math.min(6, lenField.length); // JavaScript can max read 6 bytes integer\n\t\t\treturn {\n\t\t\t\tid: id.readUIntBE(0, id.length),\n\t\t\t\tlen: lenField.readUIntBE(lenField.length - nrLen, nrLen)\n\t\t\t};\n\t\t}\n\n\t\tasync function readChildren(level, children) {\n\t\t\twhile (children > 0) {\n\t\t\t\tconst e = await readElement();\n\t\t\t\tif (e.id === 0x4282) {\n\t\t\t\t\treturn tokenizer.readToken(new Token.StringType(e.len, 'utf-8')); // Return DocType\n\t\t\t\t}\n\n\t\t\t\tawait tokenizer.ignore(e.len); // ignore payload\n\t\t\t\t--children;\n\t\t\t}\n\t\t}\n\n\t\tconst re = await readElement();\n\t\tconst docType = await readChildren(1, re.len);\n\n\t\tswitch (docType) {\n\t\t\tcase 'webm':\n\t\t\t\treturn {\n\t\t\t\t\text: 'webm',\n\t\t\t\t\tmime: 'video/webm'\n\t\t\t\t};\n\n\t\t\tcase 'matroska':\n\t\t\t\treturn {\n\t\t\t\t\text: 'mkv',\n\t\t\t\t\tmime: 'video/x-matroska'\n\t\t\t\t};\n\n\t\t\tdefault:\n\t\t\t\treturn;\n\t\t}\n\t}\n\n\t// RIFF file format which might be AVI, WAV, QCP, etc\n\tif (check([0x52, 0x49, 0x46, 0x46])) {\n\t\tif (check([0x41, 0x56, 0x49], {offset: 8})) {\n\t\t\treturn {\n\t\t\t\text: 'avi',\n\t\t\t\tmime: 'video/vnd.avi'\n\t\t\t};\n\t\t}\n\n\t\tif (check([0x57, 0x41, 0x56, 0x45], {offset: 8})) {\n\t\t\treturn {\n\t\t\t\text: 'wav',\n\t\t\t\tmime: 'audio/vnd.wave'\n\t\t\t};\n\t\t}\n\n\t\t// QLCM, QCP file\n\t\tif (check([0x51, 0x4C, 0x43, 0x4D], {offset: 8})) {\n\t\t\treturn {\n\t\t\t\text: 'qcp',\n\t\t\t\tmime: 'audio/qcelp'\n\t\t\t};\n\t\t}\n\t}\n\n\tif (checkString('SQLi')) {\n\t\treturn {\n\t\t\text: 'sqlite',\n\t\t\tmime: 'application/x-sqlite3'\n\t\t};\n\t}\n\n\tif (check([0x4E, 0x45, 0x53, 0x1A])) {\n\t\treturn {\n\t\t\text: 'nes',\n\t\t\tmime: 'application/x-nintendo-nes-rom'\n\t\t};\n\t}\n\n\tif (checkString('Cr24')) {\n\t\treturn {\n\t\t\text: 'crx',\n\t\t\tmime: 'application/x-google-chrome-extension'\n\t\t};\n\t}\n\n\tif (\n\t\tcheckString('MSCF') ||\n\t\tcheckString('ISc(')\n\t) {\n\t\treturn {\n\t\t\text: 'cab',\n\t\t\tmime: 'application/vnd.ms-cab-compressed'\n\t\t};\n\t}\n\n\tif (check([0xED, 0xAB, 0xEE, 0xDB])) {\n\t\treturn {\n\t\t\text: 'rpm',\n\t\t\tmime: 'application/x-rpm'\n\t\t};\n\t}\n\n\tif (check([0xC5, 0xD0, 0xD3, 0xC6])) {\n\t\treturn {\n\t\t\text: 'eps',\n\t\t\tmime: 'application/eps'\n\t\t};\n\t}\n\n\t// -- 5-byte signatures --\n\n\tif (check([0x4F, 0x54, 0x54, 0x4F, 0x00])) {\n\t\treturn {\n\t\t\text: 'otf',\n\t\t\tmime: 'font/otf'\n\t\t};\n\t}\n\n\tif (checkString('#!AMR')) {\n\t\treturn {\n\t\t\text: 'amr',\n\t\t\tmime: 'audio/amr'\n\t\t};\n\t}\n\n\tif (checkString('{\\\\rtf')) {\n\t\treturn {\n\t\t\text: 'rtf',\n\t\t\tmime: 'application/rtf'\n\t\t};\n\t}\n\n\tif (check([0x46, 0x4C, 0x56, 0x01])) {\n\t\treturn {\n\t\t\text: 'flv',\n\t\t\tmime: 'video/x-flv'\n\t\t};\n\t}\n\n\tif (checkString('IMPM')) {\n\t\treturn {\n\t\t\text: 'it',\n\t\t\tmime: 'audio/x-it'\n\t\t};\n\t}\n\n\tif (\n\t\tcheckString('-lh0-', {offset: 2}) ||\n\t\tcheckString('-lh1-', {offset: 2}) ||\n\t\tcheckString('-lh2-', {offset: 2}) ||\n\t\tcheckString('-lh3-', {offset: 2}) ||\n\t\tcheckString('-lh4-', {offset: 2}) ||\n\t\tcheckString('-lh5-', {offset: 2}) ||\n\t\tcheckString('-lh6-', {offset: 2}) ||\n\t\tcheckString('-lh7-', {offset: 2}) ||\n\t\tcheckString('-lzs-', {offset: 2}) ||\n\t\tcheckString('-lz4-', {offset: 2}) ||\n\t\tcheckString('-lz5-', {offset: 2}) ||\n\t\tcheckString('-lhd-', {offset: 2})\n\t) {\n\t\treturn {\n\t\t\text: 'lzh',\n\t\t\tmime: 'application/x-lzh-compressed'\n\t\t};\n\t}\n\n\t// MPEG program stream (PS or MPEG-PS)\n\tif (check([0x00, 0x00, 0x01, 0xBA])) {\n\t\t// MPEG-PS, MPEG-1 Part 1\n\t\tif (check([0x21], {offset: 4, mask: [0xF1]})) {\n\t\t\treturn {\n\t\t\t\text: 'mpg', // May also be .ps, .mpeg\n\t\t\t\tmime: 'video/MP1S'\n\t\t\t};\n\t\t}\n\n\t\t// MPEG-PS, MPEG-2 Part 1\n\t\tif (check([0x44], {offset: 4, mask: [0xC4]})) {\n\t\t\treturn {\n\t\t\t\text: 'mpg', // May also be .mpg, .m2p, .vob or .sub\n\t\t\t\tmime: 'video/MP2P'\n\t\t\t};\n\t\t}\n\t}\n\n\tif (checkString('ITSF')) {\n\t\treturn {\n\t\t\text: 'chm',\n\t\t\tmime: 'application/vnd.ms-htmlhelp'\n\t\t};\n\t}\n\n\t// -- 6-byte signatures --\n\n\tif (check([0xFD, 0x37, 0x7A, 0x58, 0x5A, 0x00])) {\n\t\treturn {\n\t\t\text: 'xz',\n\t\t\tmime: 'application/x-xz'\n\t\t};\n\t}\n\n\tif (checkString('')) {\n\t\tawait tokenizer.ignore(8);\n\t\tconst str = await tokenizer.readToken(new Token.StringType(13, 'ascii'));\n\t\tif (str === 'debian-binary') {\n\t\t\treturn {\n\t\t\t\text: 'deb',\n\t\t\t\tmime: 'application/x-deb'\n\t\t\t};\n\t\t}\n\n\t\treturn {\n\t\t\text: 'ar',\n\t\t\tmime: 'application/x-unix-archive'\n\t\t};\n\t}\n\n\t// -- 8-byte signatures --\n\n\tif (check([0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A])) {\n\t\t// APNG format (https://wiki.mozilla.org/APNG_Specification)\n\t\t// 1. Find the first IDAT (image data) chunk (49 44 41 54)\n\t\t// 2. Check if there is an \"acTL\" chunk before the IDAT one (61 63 54 4C)\n\n\t\t// Offset calculated as follows:\n\t\t// - 8 bytes: PNG signature\n\t\t// - 4 (length) + 4 (chunk type) + 13 (chunk data) + 4 (CRC): IHDR chunk\n\n\t\tawait tokenizer.ignore(8); // ignore PNG signature\n\n\t\tasync function readChunkHeader() {\n\t\t\treturn {\n\t\t\t\tlength: await tokenizer.readToken(Token.INT32_BE),\n\t\t\t\ttype: await tokenizer.readToken(new Token.StringType(4, 'binary'))\n\t\t\t};\n\t\t}\n\n\t\tdo {\n\t\t\tconst chunk = await readChunkHeader();\n\t\t\tif (chunk.length < 0) {\n\t\t\t\treturn; // Invalid chunk length\n\t\t\t}\n\n\t\t\tswitch (chunk.type) {\n\t\t\t\tcase 'IDAT':\n\t\t\t\t\treturn {\n\t\t\t\t\t\text: 'png',\n\t\t\t\t\t\tmime: 'image/png'\n\t\t\t\t\t};\n\t\t\t\tcase 'acTL':\n\t\t\t\t\treturn {\n\t\t\t\t\t\text: 'apng',\n\t\t\t\t\t\tmime: 'image/apng'\n\t\t\t\t\t};\n\t\t\t\tdefault:\n\t\t\t\t\tawait tokenizer.ignore(chunk.length + 4); // Ignore chunk-data + CRC\n\t\t\t}\n\t\t} while (tokenizer.position + 8 < tokenizer.fileInfo.size);\n\n\t\treturn {\n\t\t\text: 'png',\n\t\t\tmime: 'image/png'\n\t\t};\n\t}\n\n\tif (check([0x41, 0x52, 0x52, 0x4F, 0x57, 0x31, 0x00, 0x00])) {\n\t\treturn {\n\t\t\text: 'arrow',\n\t\t\tmime: 'application/x-apache-arrow'\n\t\t};\n\t}\n\n\tif (check([0x67, 0x6C, 0x54, 0x46, 0x02, 0x00, 0x00, 0x00])) {\n\t\treturn {\n\t\t\text: 'glb',\n\t\t\tmime: 'model/gltf-binary'\n\t\t};\n\t}\n\n\t// `mov` format variants\n\tif (\n\t\tcheck([0x66, 0x72, 0x65, 0x65], {offset: 4}) || // `free`\n\t\tcheck([0x6D, 0x64, 0x61, 0x74], {offset: 4}) || // `mdat` MJPEG\n\t\tcheck([0x6D, 0x6F, 0x6F, 0x76], {offset: 4}) || // `moov`\n\t\tcheck([0x77, 0x69, 0x64, 0x65], {offset: 4}) // `wide`\n\t) {\n\t\treturn {\n\t\t\text: 'mov',\n\t\t\tmime: 'video/quicktime'\n\t\t};\n\t}\n\n\t// -- 9-byte signatures --\n\n\tif (check([0x49, 0x49, 0x52, 0x4F, 0x08, 0x00, 0x00, 0x00, 0x18])) {\n\t\treturn {\n\t\t\text: 'orf',\n\t\t\tmime: 'image/x-olympus-orf'\n\t\t};\n\t}\n\n\t// -- 12-byte signatures --\n\n\tif (check([0x49, 0x49, 0x55, 0x00, 0x18, 0x00, 0x00, 0x00, 0x88, 0xE7, 0x74, 0xD8])) {\n\t\treturn {\n\t\t\text: 'rw2',\n\t\t\tmime: 'image/x-panasonic-rw2'\n\t\t};\n\t}\n\n\t// ASF_Header_Object first 80 bytes\n\tif (check([0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xA6, 0xD9])) {\n\t\tasync function readHeader() {\n\t\t\tconst guid = Buffer.alloc(16);\n\t\t\tawait tokenizer.readBuffer(guid);\n\t\t\treturn {\n\t\t\t\tid: guid,\n\t\t\t\tsize: await tokenizer.readToken(Token.UINT64_LE)\n\t\t\t};\n\t\t}\n\n\t\tawait tokenizer.ignore(30);\n\t\t// Search for header should be in first 1KB of file.\n\t\twhile (tokenizer.position + 24 < tokenizer.fileInfo.size) {\n\t\t\tconst header = await readHeader();\n\t\t\tlet payload = header.size - 24;\n\t\t\tif (_check(header.id, [0x91, 0x07, 0xDC, 0xB7, 0xB7, 0xA9, 0xCF, 0x11, 0x8E, 0xE6, 0x00, 0xC0, 0x0C, 0x20, 0x53, 0x65])) {\n\t\t\t\t// Sync on Stream-Properties-Object (B7DC0791-A9B7-11CF-8EE6-00C00C205365)\n\t\t\t\tconst typeId = Buffer.alloc(16);\n\t\t\t\tpayload -= await tokenizer.readBuffer(typeId);\n\n\t\t\t\tif (_check(typeId, [0x40, 0x9E, 0x69, 0xF8, 0x4D, 0x5B, 0xCF, 0x11, 0xA8, 0xFD, 0x00, 0x80, 0x5F, 0x5C, 0x44, 0x2B])) {\n\t\t\t\t\t// Found audio:\n\t\t\t\t\treturn {\n\t\t\t\t\t\text: 'asf',\n\t\t\t\t\t\tmime: 'audio/x-ms-asf'\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\tif (_check(typeId, [0xC0, 0xEF, 0x19, 0xBC, 0x4D, 0x5B, 0xCF, 0x11, 0xA8, 0xFD, 0x00, 0x80, 0x5F, 0x5C, 0x44, 0x2B])) {\n\t\t\t\t\t// Found video:\n\t\t\t\t\treturn {\n\t\t\t\t\t\text: 'asf',\n\t\t\t\t\t\tmime: 'video/x-ms-asf'\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tawait tokenizer.ignore(payload);\n\t\t}\n\n\t\t// Default to ASF generic extension\n\t\treturn {\n\t\t\text: 'asf',\n\t\t\tmime: 'application/vnd.ms-asf'\n\t\t};\n\t}\n\n\tif (check([0xAB, 0x4B, 0x54, 0x58, 0x20, 0x31, 0x31, 0xBB, 0x0D, 0x0A, 0x1A, 0x0A])) {\n\t\treturn {\n\t\t\text: 'ktx',\n\t\t\tmime: 'image/ktx'\n\t\t};\n\t}\n\n\tif ((check([0x7E, 0x10, 0x04]) || check([0x7E, 0x18, 0x04])) && check([0x30, 0x4D, 0x49, 0x45], {offset: 4})) {\n\t\treturn {\n\t\t\text: 'mie',\n\t\t\tmime: 'application/x-mie'\n\t\t};\n\t}\n\n\tif (check([0x27, 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00], {offset: 2})) {\n\t\treturn {\n\t\t\text: 'shp',\n\t\t\tmime: 'application/x-esri-shape'\n\t\t};\n\t}\n\n\tif (check([0x00, 0x00, 0x00, 0x0C, 0x6A, 0x50, 0x20, 0x20, 0x0D, 0x0A, 0x87, 0x0A])) {\n\t\t// JPEG-2000 family\n\n\t\tawait tokenizer.ignore(20);\n\t\tconst type = await tokenizer.readToken(new Token.StringType(4, 'ascii'));\n\t\tswitch (type) {\n\t\t\tcase 'jp2 ':\n\t\t\t\treturn {\n\t\t\t\t\text: 'jp2',\n\t\t\t\t\tmime: 'image/jp2'\n\t\t\t\t};\n\t\t\tcase 'jpx ':\n\t\t\t\treturn {\n\t\t\t\t\text: 'jpx',\n\t\t\t\t\tmime: 'image/jpx'\n\t\t\t\t};\n\t\t\tcase 'jpm ':\n\t\t\t\treturn {\n\t\t\t\t\text: 'jpm',\n\t\t\t\t\tmime: 'image/jpm'\n\t\t\t\t};\n\t\t\tcase 'mjp2':\n\t\t\t\treturn {\n\t\t\t\t\text: 'mj2',\n\t\t\t\t\tmime: 'image/mj2'\n\t\t\t\t};\n\t\t\tdefault:\n\t\t\t\treturn;\n\t\t}\n\t}\n\n\t// -- Unsafe signatures --\n\n\tif (\n\t\tcheck([0x0, 0x0, 0x1, 0xBA]) ||\n\t\tcheck([0x0, 0x0, 0x1, 0xB3])\n\t) {\n\t\treturn {\n\t\t\text: 'mpg',\n\t\t\tmime: 'video/mpeg'\n\t\t};\n\t}\n\n\tif (check([0x00, 0x01, 0x00, 0x00, 0x00])) {\n\t\treturn {\n\t\t\text: 'ttf',\n\t\t\tmime: 'font/ttf'\n\t\t};\n\t}\n\n\tif (check([0x00, 0x00, 0x01, 0x00])) {\n\t\treturn {\n\t\t\text: 'ico',\n\t\t\tmime: 'image/x-icon'\n\t\t};\n\t}\n\n\tif (check([0x00, 0x00, 0x02, 0x00])) {\n\t\treturn {\n\t\t\text: 'cur',\n\t\t\tmime: 'image/x-icon'\n\t\t};\n\t}\n\n\tif (check([0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1, 0x1A, 0xE1])) {\n\t\t// Detected Microsoft Compound File Binary File (MS-CFB) Format.\n\t\treturn {\n\t\t\text: 'cfb',\n\t\t\tmime: 'application/x-cfb'\n\t\t};\n\t}\n\n\t// Increase sample size from 12 to 256.\n\tawait tokenizer.peekBuffer(buffer, {length: Math.min(256, tokenizer.fileInfo.size), mayBeLess: true});\n\n\t// `raf` is here just to keep all the raw image detectors together.\n\tif (checkString('FUJIFILMCCD-RAW')) {\n\t\treturn {\n\t\t\text: 'raf',\n\t\t\tmime: 'image/x-fujifilm-raf'\n\t\t};\n\t}\n\n\tif (checkString('Extended Module:')) {\n\t\treturn {\n\t\t\text: 'xm',\n\t\t\tmime: 'audio/x-xm'\n\t\t};\n\t}\n\n\tif (checkString('Creative Voice File')) {\n\t\treturn {\n\t\t\text: 'voc',\n\t\t\tmime: 'audio/x-voc'\n\t\t};\n\t}\n\n\tif (check([0x04, 0x00, 0x00, 0x00]) && buffer.length >= 16) { // Rough & quick check Pickle/ASAR\n\t\tconst jsonSize = buffer.readUInt32LE(12);\n\t\tif (jsonSize > 12 && jsonSize < 240 && buffer.length >= jsonSize + 16) {\n\t\t\ttry {\n\t\t\t\tconst header = buffer.slice(16, jsonSize + 16).toString();\n\t\t\t\tconst json = JSON.parse(header);\n\t\t\t\t// Check if Pickle is ASAR\n\t\t\t\tif (json.files) { // Final check, assuring Pickle/ASAR format\n\t\t\t\t\treturn {\n\t\t\t\t\t\text: 'asar',\n\t\t\t\t\t\tmime: 'application/x-asar'\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t} catch (_) {\n\t\t\t}\n\t\t}\n\t}\n\n\tif (check([0x06, 0x0E, 0x2B, 0x34, 0x02, 0x05, 0x01, 0x01, 0x0D, 0x01, 0x02, 0x01, 0x01, 0x02])) {\n\t\treturn {\n\t\t\text: 'mxf',\n\t\t\tmime: 'application/mxf'\n\t\t};\n\t}\n\n\tif (checkString('SCRM', {offset: 44})) {\n\t\treturn {\n\t\t\text: 's3m',\n\t\t\tmime: 'audio/x-s3m'\n\t\t};\n\t}\n\n\tif (check([0x47], {offset: 4}) && (check([0x47], {offset: 192}) || check([0x47], {offset: 196}))) {\n\t\treturn {\n\t\t\text: 'mts',\n\t\t\tmime: 'video/mp2t'\n\t\t};\n\t}\n\n\tif (check([0x42, 0x4F, 0x4F, 0x4B, 0x4D, 0x4F, 0x42, 0x49], {offset: 60})) {\n\t\treturn {\n\t\t\text: 'mobi',\n\t\t\tmime: 'application/x-mobipocket-ebook'\n\t\t};\n\t}\n\n\tif (check([0x44, 0x49, 0x43, 0x4D], {offset: 128})) {\n\t\treturn {\n\t\t\text: 'dcm',\n\t\t\tmime: 'application/dicom'\n\t\t};\n\t}\n\n\tif (check([0x4C, 0x00, 0x00, 0x00, 0x01, 0x14, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46])) {\n\t\treturn {\n\t\t\text: 'lnk',\n\t\t\tmime: 'application/x.ms.shortcut' // Invented by us\n\t\t};\n\t}\n\n\tif (check([0x62, 0x6F, 0x6F, 0x6B, 0x00, 0x00, 0x00, 0x00, 0x6D, 0x61, 0x72, 0x6B, 0x00, 0x00, 0x00, 0x00])) {\n\t\treturn {\n\t\t\text: 'alias',\n\t\t\tmime: 'application/x.apple.alias' // Invented by us\n\t\t};\n\t}\n\n\tif (\n\t\tcheck([0x4C, 0x50], {offset: 34}) &&\n\t\t(\n\t\t\tcheck([0x00, 0x00, 0x01], {offset: 8}) ||\n\t\t\tcheck([0x01, 0x00, 0x02], {offset: 8}) ||\n\t\t\tcheck([0x02, 0x00, 0x02], {offset: 8})\n\t\t)\n\t) {\n\t\treturn {\n\t\t\text: 'eot',\n\t\t\tmime: 'application/vnd.ms-fontobject'\n\t\t};\n\t}\n\n\tif (check([0x06, 0x06, 0xED, 0xF5, 0xD8, 0x1D, 0x46, 0xE5, 0xBD, 0x31, 0xEF, 0xE7, 0xFE, 0x74, 0xB7, 0x1D])) {\n\t\treturn {\n\t\t\text: 'indd',\n\t\t\tmime: 'application/x-indesign'\n\t\t};\n\t}\n\n\t// Increase sample size from 256 to 512\n\tawait tokenizer.peekBuffer(buffer, {length: Math.min(512, tokenizer.fileInfo.size), mayBeLess: true});\n\n\t// Requires a buffer size of 512 bytes\n\tif (tarHeaderChecksumMatches(buffer)) {\n\t\treturn {\n\t\t\text: 'tar',\n\t\t\tmime: 'application/x-tar'\n\t\t};\n\t}\n\n\tif (check([0xFF, 0xFE, 0xFF, 0x0E, 0x53, 0x00, 0x6B, 0x00, 0x65, 0x00, 0x74, 0x00, 0x63, 0x00, 0x68, 0x00, 0x55, 0x00, 0x70, 0x00, 0x20, 0x00, 0x4D, 0x00, 0x6F, 0x00, 0x64, 0x00, 0x65, 0x00, 0x6C, 0x00])) {\n\t\treturn {\n\t\t\text: 'skp',\n\t\t\tmime: 'application/vnd.sketchup.skp'\n\t\t};\n\t}\n\n\tif (checkString('-----BEGIN PGP MESSAGE-----')) {\n\t\treturn {\n\t\t\text: 'pgp',\n\t\t\tmime: 'application/pgp-encrypted'\n\t\t};\n\t}\n\n\t// Check for MPEG header at different starting offsets\n\tfor (let start = 0; start < 2 && start < (buffer.length - 16); start++) {\n\t\t// Check MPEG 1 or 2 Layer 3 header, or 'layer 0' for ADTS (MPEG sync-word 0xFFE)\n\t\tif (buffer.length >= start + 2 && check([0xFF, 0xE0], {offset: start, mask: [0xFF, 0xE0]})) {\n\t\t\tif (check([0x10], {offset: start + 1, mask: [0x16]})) {\n\t\t\t\t// Check for (ADTS) MPEG-2\n\t\t\t\tif (check([0x08], {offset: start + 1, mask: [0x08]})) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\text: 'aac',\n\t\t\t\t\t\tmime: 'audio/aac'\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\t// Must be (ADTS) MPEG-4\n\t\t\t\treturn {\n\t\t\t\t\text: 'aac',\n\t\t\t\t\tmime: 'audio/aac'\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// MPEG 1 or 2 Layer 3 header\n\t\t\t// Check for MPEG layer 3\n\t\t\tif (check([0x02], {offset: start + 1, mask: [0x06]})) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'mp3',\n\t\t\t\t\tmime: 'audio/mpeg'\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// Check for MPEG layer 2\n\t\t\tif (check([0x04], {offset: start + 1, mask: [0x06]})) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'mp2',\n\t\t\t\t\tmime: 'audio/mpeg'\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// Check for MPEG layer 1\n\t\t\tif (check([0x06], {offset: start + 1, mask: [0x06]})) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'mp1',\n\t\t\t\t\tmime: 'audio/mpeg'\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t}\n}\n\nconst stream = readableStream => new Promise((resolve, reject) => {\n\t// Using `eval` to work around issues when bundling with Webpack\n\tconst stream = eval('require')('stream'); // eslint-disable-line no-eval\n\n\treadableStream.on('error', reject);\n\treadableStream.once('readable', async () => {\n\t\t// Set up output stream\n\t\tconst pass = new stream.PassThrough();\n\t\tlet outputStream;\n\t\tif (stream.pipeline) {\n\t\t\toutputStream = stream.pipeline(readableStream, pass, () => {\n\t\t\t});\n\t\t} else {\n\t\t\toutputStream = readableStream.pipe(pass);\n\t\t}\n\n\t\t// Read the input stream and detect the filetype\n\t\tconst chunk = readableStream.read(minimumBytes) || readableStream.read() || Buffer.alloc(0);\n\t\ttry {\n\t\t\tconst fileType = await fromBuffer(chunk);\n\t\t\tpass.fileType = fileType;\n\t\t} catch (error) {\n\t\t\treject(error);\n\t\t}\n\n\t\tresolve(outputStream);\n\t});\n});\n\nconst fileType = {\n\tfromStream,\n\tfromTokenizer,\n\tfromBuffer,\n\tstream\n};\n\nObject.defineProperty(fileType, 'extensions', {\n\tget() {\n\t\treturn new Set(supported.extensions);\n\t}\n});\n\nObject.defineProperty(fileType, 'mimeTypes', {\n\tget() {\n\t\treturn new Set(supported.mimeTypes);\n\t}\n});\n\nmodule.exports = fileType;\n","\"use strict\";\n// Implementation of the Advanced Systems Format (ASF)\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Ref:\n * https://tools.ietf.org/html/draft-fleischman-asf-01, Appendix A: ASF GUIDs\n * http://drang.s4.xrea.com/program/tips/id3tag/wmp/10_asf_guids.html\n * http://drang.s4.xrea.com/program/tips/id3tag/wmp/index.html\n *\n * http://drang.s4.xrea.com/program/tips/id3tag/wmp/10_asf_guids.html\n *\n * ASF File Structure:\n * https://msdn.microsoft.com/en-us/library/windows/desktop/ee663575(v=vs.85).aspx\n *\n * ASF GUIDs:\n * http://drang.s4.xrea.com/program/tips/id3tag/wmp/10_asf_guids.html\n *\n * https://github.com/dji-sdk/FFmpeg/blob/master/libavformat/asf.c\n */\nclass GUID {\n constructor(str) {\n this.str = str;\n }\n static fromBin(bin, offset = 0) {\n return new GUID(this.decode(bin, offset));\n }\n /**\n * Decode GUID in format like \"B503BF5F-2EA9-CF11-8EE3-00C00C205365\"\n * @param objectId Binary GUID\n * @param offset Read offset in bytes, default 0\n * @returns {string} GUID as dashed hexadecimal representation\n */\n static decode(objectId, offset = 0) {\n const guid = objectId.readUInt32LE(offset).toString(16) + \"-\" +\n objectId.readUInt16LE(offset + 4).toString(16) + \"-\" +\n objectId.readUInt16LE(offset + 6).toString(16) + \"-\" +\n objectId.readUInt16BE(offset + 8).toString(16) + \"-\" +\n objectId.slice(offset + 10, offset + 16).toString('hex');\n return guid.toUpperCase();\n }\n /**\n * Decode stream type\n * @param {string} mediaType\n * @returns {string}\n */\n static decodeMediaType(mediaType) {\n switch (mediaType.str) {\n case GUID.AudioMedia.str: return 'audio';\n case GUID.VideoMedia.str: return 'video';\n case GUID.CommandMedia.str: return 'command';\n case GUID.Degradable_JPEG_Media.str: return 'degradable-jpeg';\n case GUID.FileTransferMedia.str: return 'file-transfer';\n case GUID.BinaryMedia.str: return 'binary';\n }\n }\n /**\n * Encode GUID\n * @param guid GUID like: \"B503BF5F-2EA9-CF11-8EE3-00C00C205365\"\n * @returns {Buffer} Encoded Bnary GUID\n */\n static encode(str) {\n const bin = Buffer.alloc(16);\n bin.writeUInt32LE(parseInt(str.slice(0, 8), 16), 0);\n bin.writeUInt16LE(parseInt(str.slice(9, 13), 16), 4);\n bin.writeUInt16LE(parseInt(str.slice(14, 18), 16), 6);\n Buffer.from(str.slice(19, 23), \"hex\").copy(bin, 8);\n Buffer.from(str.slice(24), \"hex\").copy(bin, 10);\n return bin;\n }\n equals(guid) {\n return this.str === guid.str;\n }\n toBin() {\n return GUID.encode(this.str);\n }\n}\nexports.default = GUID;\n// 10.1 Top-level ASF object GUIDs\nGUID.HeaderObject = new GUID(\"75B22630-668E-11CF-A6D9-00AA0062CE6C\");\nGUID.DataObject = new GUID(\"75B22636-668E-11CF-A6D9-00AA0062CE6C\");\nGUID.SimpleIndexObject = new GUID(\"33000890-E5B1-11CF-89F4-00A0C90349CB\");\nGUID.IndexObject = new GUID(\"D6E229D3-35DA-11D1-9034-00A0C90349BE\");\nGUID.MediaObjectIndexObject = new GUID(\"FEB103F8-12AD-4C64-840F-2A1D2F7AD48C\");\nGUID.TimecodeIndexObject = new GUID(\"3CB73FD0-0C4A-4803-953D-EDF7B6228F0C\");\n// 10.2 Header Object GUIDs\nGUID.FilePropertiesObject = new GUID(\"8CABDCA1-A947-11CF-8EE4-00C00C205365\");\nGUID.StreamPropertiesObject = new GUID(\"B7DC0791-A9B7-11CF-8EE6-00C00C205365\");\nGUID.HeaderExtensionObject = new GUID(\"5FBF03B5-A92E-11CF-8EE3-00C00C205365\");\nGUID.CodecListObject = new GUID(\"86D15240-311D-11D0-A3A4-00A0C90348F6\");\nGUID.ScriptCommandObject = new GUID(\"1EFB1A30-0B62-11D0-A39B-00A0C90348F6\");\nGUID.MarkerObject = new GUID(\"F487CD01-A951-11CF-8EE6-00C00C205365\");\nGUID.BitrateMutualExclusionObject = new GUID(\"D6E229DC-35DA-11D1-9034-00A0C90349BE\");\nGUID.ErrorCorrectionObject = new GUID(\"75B22635-668E-11CF-A6D9-00AA0062CE6C\");\nGUID.ContentDescriptionObject = new GUID(\"75B22633-668E-11CF-A6D9-00AA0062CE6C\");\nGUID.ExtendedContentDescriptionObject = new GUID(\"D2D0A440-E307-11D2-97F0-00A0C95EA850\");\nGUID.ContentBrandingObject = new GUID(\"2211B3FA-BD23-11D2-B4B7-00A0C955FC6E\");\nGUID.StreamBitratePropertiesObject = new GUID(\"7BF875CE-468D-11D1-8D82-006097C9A2B2\");\nGUID.ContentEncryptionObject = new GUID(\"2211B3FB-BD23-11D2-B4B7-00A0C955FC6E\");\nGUID.ExtendedContentEncryptionObject = new GUID(\"298AE614-2622-4C17-B935-DAE07EE9289C\");\nGUID.DigitalSignatureObject = new GUID(\"2211B3FC-BD23-11D2-B4B7-00A0C955FC6E\");\nGUID.PaddingObject = new GUID(\"1806D474-CADF-4509-A4BA-9AABCB96AAE8\");\n// 10.3 Header Extension Object GUIDs\nGUID.ExtendedStreamPropertiesObject = new GUID(\"14E6A5CB-C672-4332-8399-A96952065B5A\");\nGUID.AdvancedMutualExclusionObject = new GUID(\"A08649CF-4775-4670-8A16-6E35357566CD\");\nGUID.GroupMutualExclusionObject = new GUID(\"D1465A40-5A79-4338-B71B-E36B8FD6C249\");\nGUID.StreamPrioritizationObject = new GUID(\"D4FED15B-88D3-454F-81F0-ED5C45999E24\");\nGUID.BandwidthSharingObject = new GUID(\"A69609E6-517B-11D2-B6AF-00C04FD908E9\");\nGUID.LanguageListObject = new GUID(\"7C4346A9-EFE0-4BFC-B229-393EDE415C85\");\nGUID.MetadataObject = new GUID(\"C5F8CBEA-5BAF-4877-8467-AA8C44FA4CCA\");\nGUID.MetadataLibraryObject = new GUID(\"44231C94-9498-49D1-A141-1D134E457054\");\nGUID.IndexParametersObject = new GUID(\"D6E229DF-35DA-11D1-9034-00A0C90349BE\");\nGUID.MediaObjectIndexParametersObject = new GUID(\"6B203BAD-3F11-48E4-ACA8-D7613DE2CFA7\");\nGUID.TimecodeIndexParametersObject = new GUID(\"F55E496D-9797-4B5D-8C8B-604DFE9BFB24\");\nGUID.CompatibilityObject = new GUID(\"26F18B5D-4584-47EC-9F5F-0E651F0452C9\");\nGUID.AdvancedContentEncryptionObject = new GUID(\"43058533-6981-49E6-9B74-AD12CB86D58C\");\n// 10.4 Stream Properties Object Stream Type GUIDs\nGUID.AudioMedia = new GUID(\"F8699E40-5B4D-11CF-A8FD-00805F5C442B\");\nGUID.VideoMedia = new GUID(\"BC19EFC0-5B4D-11CF-A8FD-00805F5C442B\");\nGUID.CommandMedia = new GUID(\"59DACFC0-59E6-11D0-A3AC-00A0C90348F6\");\nGUID.JFIF_Media = new GUID(\"B61BE100-5B4E-11CF-A8FD-00805F5C442B\");\nGUID.Degradable_JPEG_Media = new GUID(\"35907DE0-E415-11CF-A917-00805F5C442B\");\nGUID.FileTransferMedia = new GUID(\"91BD222C-F21C-497A-8B6D-5AA86BFC0185\");\nGUID.BinaryMedia = new GUID(\"3AFB65E2-47EF-40F2-AC2C-70A90D71D343\");\nGUID.ASF_Index_Placeholder_Object = new GUID(\"D9AADE20-7C17-4F9C-BC28-8555DD98E2A2\");\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.IdentificationHeader = exports.CommonHeader = exports.VorbisPictureToken = void 0;\nconst Token = require(\"token-types\");\nconst ID3v2Token_1 = require(\"../../id3v2/ID3v2Token\");\n/**\n * Parse the METADATA_BLOCK_PICTURE\n * Ref: https://wiki.xiph.org/VorbisComment#METADATA_BLOCK_PICTURE\n * Ref: https://xiph.org/flac/format.html#metadata_block_picture\n * // ToDo: move to ID3 / APIC?\n */\nclass VorbisPictureToken {\n constructor(len) {\n this.len = len;\n }\n static fromBase64(base64str) {\n return this.fromBuffer(Buffer.from(base64str, 'base64'));\n }\n static fromBuffer(buffer) {\n const pic = new VorbisPictureToken(buffer.length);\n return pic.get(buffer, 0);\n }\n get(buffer, offset) {\n const type = ID3v2Token_1.AttachedPictureType[Token.UINT32_BE.get(buffer, offset)];\n const mimeLen = Token.UINT32_BE.get(buffer, offset += 4);\n const format = buffer.toString('utf-8', offset += 4, offset + mimeLen);\n const descLen = Token.UINT32_BE.get(buffer, offset += mimeLen);\n const description = buffer.toString('utf-8', offset += 4, offset + descLen);\n const width = Token.UINT32_BE.get(buffer, offset += descLen);\n const height = Token.UINT32_BE.get(buffer, offset += 4);\n const colour_depth = Token.UINT32_BE.get(buffer, offset += 4);\n const indexed_color = Token.UINT32_BE.get(buffer, offset += 4);\n const picDataLen = Token.UINT32_BE.get(buffer, offset += 4);\n const data = Buffer.from(buffer.slice(offset += 4, offset + picDataLen));\n return {\n type,\n format,\n description,\n width,\n height,\n colour_depth,\n indexed_color,\n data\n };\n }\n}\nexports.VorbisPictureToken = VorbisPictureToken;\n/**\n * Comment header decoder\n * Ref: https://xiph.org/vorbis/doc/Vorbis_I_spec.html#x1-620004.2.1\n */\nexports.CommonHeader = {\n len: 7,\n get: (buf, off) => {\n return {\n packetType: buf.readUInt8(off),\n vorbis: new Token.StringType(6, 'ascii').get(buf, off + 1)\n };\n }\n};\n/**\n * Identification header decoder\n * Ref: https://xiph.org/vorbis/doc/Vorbis_I_spec.html#x1-630004.2.2\n */\nexports.IdentificationHeader = {\n len: 23,\n get: (buf, off) => {\n return {\n version: buf.readUInt32LE(off + 0),\n channelMode: buf.readUInt8(off + 4),\n sampleRate: buf.readUInt32LE(off + 5),\n bitrateMax: buf.readUInt32LE(off + 9),\n bitrateNominal: buf.readUInt32LE(off + 13),\n bitrateMin: buf.readUInt32LE(off + 17)\n };\n }\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.VorbisDecoder = void 0;\nconst Token = require(\"token-types\");\nclass VorbisDecoder {\n constructor(data, offset) {\n this.data = data;\n this.offset = offset;\n }\n readInt32() {\n const value = Token.UINT32_LE.get(this.data, this.offset);\n this.offset += 4;\n return value;\n }\n readStringUtf8() {\n const len = this.readInt32();\n const value = this.data.toString('utf8', this.offset, this.offset + len);\n this.offset += len;\n return value;\n }\n parseUserComment() {\n const offset0 = this.offset;\n const v = this.readStringUtf8();\n const idx = v.indexOf('=');\n return {\n key: v.slice(0, idx).toUpperCase(),\n value: v.slice(idx + 1),\n len: this.offset - offset0\n };\n }\n}\nexports.VorbisDecoder = VorbisDecoder;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ChapterText = exports.StcoAtom = exports.StszAtom = exports.StscAtom = exports.SampleToChunkToken = exports.SttsAtom = exports.TimeToSampleToken = exports.SoundSampleDescriptionV0 = exports.SoundSampleDescriptionVersion = exports.StsdAtom = exports.TrackHeaderAtom = exports.NameAtom = exports.DataAtom = exports.MvhdAtom = exports.MdhdAtom = exports.FixedLengthAtom = exports.mhdr = exports.tkhd = exports.ftyp = exports.ExtendedSize = exports.Header = void 0;\nconst Token = require(\"token-types\");\nconst FourCC_1 = require(\"../common/FourCC\");\nconst initDebug = require(\"debug\");\nconst debug = initDebug('music-metadata:parser:MP4:atom');\nexports.Header = {\n len: 8,\n get: (buf, off) => {\n const length = Token.UINT32_BE.get(buf, off);\n if (length < 0)\n throw new Error('Invalid atom header length');\n return {\n length,\n name: new Token.StringType(4, 'binary').get(buf, off + 4)\n };\n },\n put: (buf, off, hdr) => {\n Token.UINT32_BE.put(buf, off, hdr.length);\n return FourCC_1.FourCcToken.put(buf, off + 4, hdr.name);\n }\n};\n/**\n * Ref: https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap1/qtff1.html#//apple_ref/doc/uid/TP40000939-CH203-38190\n */\nexports.ExtendedSize = Token.UINT64_BE;\nexports.ftyp = {\n len: 4,\n get: (buf, off) => {\n return {\n type: new Token.StringType(4, 'ascii').get(buf, off)\n };\n }\n};\nexports.tkhd = {\n len: 4,\n get: (buf, off) => {\n return {\n type: new Token.StringType(4, 'ascii').get(buf, off)\n };\n }\n};\n/**\n * Token: Movie Header Atom\n */\nexports.mhdr = {\n len: 8,\n get: (buf, off) => {\n return {\n version: Token.UINT8.get(buf, off + 0),\n flags: Token.UINT24_BE.get(buf, off + 1),\n nextItemID: Token.UINT32_BE.get(buf, off + 4)\n };\n }\n};\n/**\n * Base class for 'fixed' length atoms.\n * In some cases these atoms are longer then the sum of the described fields.\n * Issue: https://github.com/Borewit/music-metadata/issues/120\n */\nclass FixedLengthAtom {\n /**\n *\n * @param {number} len Length as specified in the size field\n * @param {number} expLen Total length of sum of specified fields in the standard\n */\n constructor(len, expLen, atomId) {\n this.len = len;\n if (len < expLen) {\n throw new Error(`Atom ${atomId} expected to be ${expLen}, but specifies ${len} bytes long.`);\n }\n else if (len > expLen) {\n debug(`Warning: atom ${atomId} expected to be ${expLen}, but was actually ${len} bytes long.`);\n }\n }\n}\nexports.FixedLengthAtom = FixedLengthAtom;\n/**\n * Timestamp stored in seconds since Mac Epoch (1 January 1904)\n */\nconst SecondsSinceMacEpoch = {\n len: 4,\n get: (buf, off) => {\n const secondsSinceUnixEpoch = Token.UINT32_BE.get(buf, off) - 2082844800;\n return new Date(secondsSinceUnixEpoch * 1000);\n }\n};\n/**\n * Token: Media Header Atom\n * Ref:\n * https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap2/qtff2.html#//apple_ref/doc/uid/TP40000939-CH204-SW34\n * https://wiki.multimedia.cx/index.php/QuickTime_container#mdhd\n */\nclass MdhdAtom extends FixedLengthAtom {\n constructor(len) {\n super(len, 24, 'mdhd');\n this.len = len;\n }\n get(buf, off) {\n return {\n version: Token.UINT8.get(buf, off + 0),\n flags: Token.UINT24_BE.get(buf, off + 1),\n creationTime: SecondsSinceMacEpoch.get(buf, off + 4),\n modificationTime: SecondsSinceMacEpoch.get(buf, off + 8),\n timeScale: Token.UINT32_BE.get(buf, off + 12),\n duration: Token.UINT32_BE.get(buf, off + 16),\n language: Token.UINT16_BE.get(buf, off + 20),\n quality: Token.UINT16_BE.get(buf, off + 22)\n };\n }\n}\nexports.MdhdAtom = MdhdAtom;\n/**\n * Token: Movie Header Atom\n */\nclass MvhdAtom extends FixedLengthAtom {\n constructor(len) {\n super(len, 100, 'mvhd');\n this.len = len;\n }\n get(buf, off) {\n return {\n version: Token.UINT8.get(buf, off),\n flags: Token.UINT24_BE.get(buf, off + 1),\n creationTime: SecondsSinceMacEpoch.get(buf, off + 4),\n modificationTime: SecondsSinceMacEpoch.get(buf, off + 8),\n timeScale: Token.UINT32_BE.get(buf, off + 12),\n duration: Token.UINT32_BE.get(buf, off + 16),\n preferredRate: Token.UINT32_BE.get(buf, off + 20),\n preferredVolume: Token.UINT16_BE.get(buf, off + 24),\n // ignore reserver: 10 bytes\n // ignore matrix structure: 36 bytes\n previewTime: Token.UINT32_BE.get(buf, off + 72),\n previewDuration: Token.UINT32_BE.get(buf, off + 76),\n posterTime: Token.UINT32_BE.get(buf, off + 80),\n selectionTime: Token.UINT32_BE.get(buf, off + 84),\n selectionDuration: Token.UINT32_BE.get(buf, off + 88),\n currentTime: Token.UINT32_BE.get(buf, off + 92),\n nextTrackID: Token.UINT32_BE.get(buf, off + 96)\n };\n }\n}\nexports.MvhdAtom = MvhdAtom;\n/**\n * Data Atom Structure\n */\nclass DataAtom {\n constructor(len) {\n this.len = len;\n }\n get(buf, off) {\n return {\n type: {\n set: Token.UINT8.get(buf, off + 0),\n type: Token.UINT24_BE.get(buf, off + 1)\n },\n locale: Token.UINT24_BE.get(buf, off + 4),\n value: new Token.BufferType(this.len - 8).get(buf, off + 8)\n };\n }\n}\nexports.DataAtom = DataAtom;\n/**\n * Data Atom Structure\n * Ref: https://developer.apple.com/library/content/documentation/QuickTime/QTFF/Metadata/Metadata.html#//apple_ref/doc/uid/TP40000939-CH1-SW31\n */\nclass NameAtom {\n constructor(len) {\n this.len = len;\n }\n get(buf, off) {\n return {\n version: Token.UINT8.get(buf, off),\n flags: Token.UINT24_BE.get(buf, off + 1),\n name: new Token.StringType(this.len - 4, 'utf-8').get(buf, off + 4)\n };\n }\n}\nexports.NameAtom = NameAtom;\n/**\n * Track Header Atoms structure\n * Ref: https://developer.apple.com/library/content/documentation/QuickTime/QTFF/QTFFChap2/qtff2.html#//apple_ref/doc/uid/TP40000939-CH204-25550\n */\nclass TrackHeaderAtom {\n constructor(len) {\n this.len = len;\n }\n get(buf, off) {\n return {\n version: Token.UINT8.get(buf, off),\n flags: Token.UINT24_BE.get(buf, off + 1),\n creationTime: SecondsSinceMacEpoch.get(buf, off + 4),\n modificationTime: SecondsSinceMacEpoch.get(buf, off + 8),\n trackId: Token.UINT32_BE.get(buf, off + 12),\n // reserved 4 bytes\n duration: Token.UINT32_BE.get(buf, off + 20),\n layer: Token.UINT16_BE.get(buf, off + 24),\n alternateGroup: Token.UINT16_BE.get(buf, off + 26),\n volume: Token.UINT16_BE.get(buf, off + 28) // ToDo: fixed point\n // ToDo: add remaining fields\n };\n }\n}\nexports.TrackHeaderAtom = TrackHeaderAtom;\n/**\n * Atom: Sample Description Atom ('stsd')\n * Ref: https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap2/qtff2.html#//apple_ref/doc/uid/TP40000939-CH204-25691\n */\nconst stsdHeader = {\n len: 8,\n get: (buf, off) => {\n return {\n version: Token.UINT8.get(buf, off),\n flags: Token.UINT24_BE.get(buf, off + 1),\n numberOfEntries: Token.UINT32_BE.get(buf, off + 4)\n };\n }\n};\n/**\n * Atom: Sample Description Atom ('stsd')\n * Ref: https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap2/qtff2.html#//apple_ref/doc/uid/TP40000939-CH204-25691\n */\nclass SampleDescriptionTable {\n constructor(len) {\n this.len = len;\n }\n get(buf, off) {\n return {\n dataFormat: FourCC_1.FourCcToken.get(buf, off),\n dataReferenceIndex: Token.UINT16_BE.get(buf, off + 10),\n description: new Token.BufferType(this.len - 12).get(buf, off + 12)\n };\n }\n}\n/**\n * Atom: Sample-description Atom ('stsd')\n * Ref: https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap2/qtff2.html#//apple_ref/doc/uid/TP40000939-CH204-25691\n */\nclass StsdAtom {\n constructor(len) {\n this.len = len;\n }\n get(buf, off) {\n const header = stsdHeader.get(buf, off);\n off += stsdHeader.len;\n const table = [];\n for (let n = 0; n < header.numberOfEntries; ++n) {\n const size = Token.UINT32_BE.get(buf, off); // Sample description size\n off += Token.UINT32_BE.len;\n table.push(new SampleDescriptionTable(size).get(buf, off));\n off += size;\n }\n return {\n header,\n table\n };\n }\n}\nexports.StsdAtom = StsdAtom;\n/**\n * Common Sound Sample Description (version & revision)\n * Ref: https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap3/qtff3.html#//apple_ref/doc/uid/TP40000939-CH205-57317\n */\nexports.SoundSampleDescriptionVersion = {\n len: 8,\n get(buf, off) {\n return {\n version: Token.INT16_BE.get(buf, off),\n revision: Token.INT16_BE.get(buf, off + 2),\n vendor: Token.INT32_BE.get(buf, off + 4)\n };\n }\n};\n/**\n * Sound Sample Description (Version 0)\n * Ref: https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap3/qtff3.html#//apple_ref/doc/uid/TP40000939-CH205-130736\n */\nexports.SoundSampleDescriptionV0 = {\n len: 12,\n get(buf, off) {\n return {\n numAudioChannels: Token.INT16_BE.get(buf, off + 0),\n sampleSize: Token.INT16_BE.get(buf, off + 2),\n compressionId: Token.INT16_BE.get(buf, off + 4),\n packetSize: Token.INT16_BE.get(buf, off + 6),\n sampleRate: Token.UINT16_BE.get(buf, off + 8) + Token.UINT16_BE.get(buf, off + 10) / 10000\n };\n }\n};\nclass SimpleTableAtom {\n constructor(len, token) {\n this.len = len;\n this.token = token;\n }\n get(buf, off) {\n const nrOfEntries = Token.INT32_BE.get(buf, off + 4);\n return {\n version: Token.INT8.get(buf, off + 0),\n flags: Token.INT24_BE.get(buf, off + 1),\n numberOfEntries: nrOfEntries,\n entries: readTokenTable(buf, this.token, off + 8, this.len - 8, nrOfEntries)\n };\n }\n}\nexports.TimeToSampleToken = {\n len: 8,\n get(buf, off) {\n return {\n count: Token.INT32_BE.get(buf, off + 0),\n duration: Token.INT32_BE.get(buf, off + 4)\n };\n }\n};\n/**\n * Time-to-sample('stts') atom.\n * Store duration information for a media’s samples.\n * Ref: https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap2/qtff2.html#//apple_ref/doc/uid/TP40000939-CH204-25696\n */\nclass SttsAtom extends SimpleTableAtom {\n constructor(len) {\n super(len, exports.TimeToSampleToken);\n this.len = len;\n }\n}\nexports.SttsAtom = SttsAtom;\nexports.SampleToChunkToken = {\n len: 12,\n get(buf, off) {\n return {\n firstChunk: Token.INT32_BE.get(buf, off),\n samplesPerChunk: Token.INT32_BE.get(buf, off + 4),\n sampleDescriptionId: Token.INT32_BE.get(buf, off + 8)\n };\n }\n};\n/**\n * Sample-to-Chunk ('stsc') atom interface\n * Ref: https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap2/qtff2.html#//apple_ref/doc/uid/TP40000939-CH204-25706\n */\nclass StscAtom extends SimpleTableAtom {\n constructor(len) {\n super(len, exports.SampleToChunkToken);\n this.len = len;\n }\n}\nexports.StscAtom = StscAtom;\n/**\n * Sample-size ('stsz') atom\n * Ref: https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap2/qtff2.html#//apple_ref/doc/uid/TP40000939-CH204-25710\n */\nclass StszAtom {\n constructor(len) {\n this.len = len;\n }\n get(buf, off) {\n const nrOfEntries = Token.INT32_BE.get(buf, off + 8);\n return {\n version: Token.INT8.get(buf, off),\n flags: Token.INT24_BE.get(buf, off + 1),\n sampleSize: Token.INT32_BE.get(buf, off + 4),\n numberOfEntries: nrOfEntries,\n entries: readTokenTable(buf, Token.INT32_BE, off + 12, this.len - 12, nrOfEntries)\n };\n }\n}\nexports.StszAtom = StszAtom;\n/**\n * Chunk offset atom, 'stco'\n * Ref: https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap2/qtff2.html#//apple_ref/doc/uid/TP40000939-CH204-25715\n */\nclass StcoAtom extends SimpleTableAtom {\n constructor(len) {\n super(len, Token.INT32_BE);\n this.len = len;\n }\n}\nexports.StcoAtom = StcoAtom;\n/**\n * Token used to decode text-track from 'mdat' atom (raw data stream)\n */\nclass ChapterText {\n constructor(len) {\n this.len = len;\n }\n get(buf, off) {\n const titleLen = Token.INT16_BE.get(buf, off + 0);\n const str = new Token.StringType(titleLen, 'utf-8');\n return str.get(buf, off + 2);\n }\n}\nexports.ChapterText = ChapterText;\nfunction readTokenTable(buf, token, off, remainingLen, numberOfEntries) {\n debug(`remainingLen=${remainingLen}, numberOfEntries=${numberOfEntries} * token-len=${token.len}`);\n if (remainingLen === 0)\n return [];\n if (remainingLen !== numberOfEntries * token.len)\n throw new Error('mismatch number-of-entries with remaining atom-length');\n const entries = [];\n // parse offset-table\n for (let n = 0; n < numberOfEntries; ++n) {\n entries.push(token.get(buf, off));\n off += token.len;\n }\n return entries;\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TrackType = exports.TargetType = exports.DataType = void 0;\nvar DataType;\n(function (DataType) {\n DataType[DataType[\"string\"] = 0] = \"string\";\n DataType[DataType[\"uint\"] = 1] = \"uint\";\n DataType[DataType[\"uid\"] = 2] = \"uid\";\n DataType[DataType[\"bool\"] = 3] = \"bool\";\n DataType[DataType[\"binary\"] = 4] = \"binary\";\n DataType[DataType[\"float\"] = 5] = \"float\";\n})(DataType = exports.DataType || (exports.DataType = {}));\nvar TargetType;\n(function (TargetType) {\n TargetType[TargetType[\"shot\"] = 10] = \"shot\";\n TargetType[TargetType[\"scene\"] = 20] = \"scene\";\n TargetType[TargetType[\"track\"] = 30] = \"track\";\n TargetType[TargetType[\"part\"] = 40] = \"part\";\n TargetType[TargetType[\"album\"] = 50] = \"album\";\n TargetType[TargetType[\"edition\"] = 60] = \"edition\";\n TargetType[TargetType[\"collection\"] = 70] = \"collection\";\n})(TargetType = exports.TargetType || (exports.TargetType = {}));\nvar TrackType;\n(function (TrackType) {\n TrackType[TrackType[\"video\"] = 1] = \"video\";\n TrackType[TrackType[\"audio\"] = 2] = \"audio\";\n TrackType[TrackType[\"complex\"] = 3] = \"complex\";\n TrackType[TrackType[\"logo\"] = 4] = \"logo\";\n TrackType[TrackType[\"subtitle\"] = 17] = \"subtitle\";\n TrackType[TrackType[\"button\"] = 18] = \"button\";\n TrackType[TrackType[\"control\"] = 32] = \"control\";\n})(TrackType = exports.TrackType || (exports.TrackType = {}));\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n'use strict';\n\nmodule.exports = Readable;\n/**/\n\nvar Duplex;\n/**/\n\nReadable.ReadableState = ReadableState;\n/**/\n\nvar EE = require('events').EventEmitter;\n\nvar EElistenerCount = function EElistenerCount(emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\n/**/\n\n\nvar Stream = require('./internal/streams/stream');\n/**/\n\n\nvar Buffer = require('buffer').Buffer;\n\nvar OurUint8Array = global.Uint8Array || function () {};\n\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\n\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n/**/\n\n\nvar debugUtil = require('util');\n\nvar debug;\n\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function debug() {};\n}\n/**/\n\n\nvar BufferList = require('./internal/streams/buffer_list');\n\nvar destroyImpl = require('./internal/streams/destroy');\n\nvar _require = require('./internal/streams/state'),\n getHighWaterMark = _require.getHighWaterMark;\n\nvar _require$codes = require('../errors').codes,\n ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,\n ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF,\n ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,\n ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT; // Lazy loaded to improve the startup performance.\n\n\nvar StringDecoder;\nvar createReadableStreamAsyncIterator;\nvar from;\n\nrequire('inherits')(Readable, Stream);\n\nvar errorOrDestroy = destroyImpl.errorOrDestroy;\nvar kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];\n\nfunction prependListener(emitter, event, fn) {\n // Sadly this is not cacheable as some libraries bundle their own\n // event emitter implementation with them.\n if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn); // This is a hack to make sure that our error handler is attached before any\n // userland ones. NEVER DO THIS. This is here only because this code needs\n // to continue to work with older versions of Node.js that do not include\n // the prependListener() method. The goal is to eventually remove this hack.\n\n if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (Array.isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];\n}\n\nfunction ReadableState(options, stream, isDuplex) {\n Duplex = Duplex || require('./_stream_duplex');\n options = options || {}; // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n\n if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n\n this.objectMode = !!options.objectMode;\n if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode; // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n\n this.highWaterMark = getHighWaterMark(this, options, 'readableHighWaterMark', isDuplex); // A linked list is used to store data chunks instead of an array because the\n // linked list can remove elements from the beginning faster than\n // array.shift()\n\n this.buffer = new BufferList();\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false; // a flag to be able to tell if the event 'readable'/'data' is emitted\n // immediately, or on a later tick. We set this to true at first, because\n // any actions that shouldn't happen until \"later\" should generally also\n // not happen before the first read call.\n\n this.sync = true; // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n this.resumeScheduled = false;\n this.paused = true; // Should close be emitted on destroy. Defaults to true.\n\n this.emitClose = options.emitClose !== false; // Should .destroy() be called after 'end' (and potentially 'finish')\n\n this.autoDestroy = !!options.autoDestroy; // has it been destroyed\n\n this.destroyed = false; // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n\n this.defaultEncoding = options.defaultEncoding || 'utf8'; // the number of writers that are awaiting a drain event in .pipe()s\n\n this.awaitDrain = 0; // if true, a maybeReadMore has been scheduled\n\n this.readingMore = false;\n this.decoder = null;\n this.encoding = null;\n\n if (options.encoding) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nfunction Readable(options) {\n Duplex = Duplex || require('./_stream_duplex');\n if (!(this instanceof Readable)) return new Readable(options); // Checking for a Stream.Duplex instance is faster here instead of inside\n // the ReadableState constructor, at least with V8 6.5\n\n var isDuplex = this instanceof Duplex;\n this._readableState = new ReadableState(options, this, isDuplex); // legacy\n\n this.readable = true;\n\n if (options) {\n if (typeof options.read === 'function') this._read = options.read;\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n }\n\n Stream.call(this);\n}\n\nObject.defineProperty(Readable.prototype, 'destroyed', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n if (this._readableState === undefined) {\n return false;\n }\n\n return this._readableState.destroyed;\n },\n set: function set(value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._readableState) {\n return;\n } // backward compatibility, the user is explicitly\n // managing destroyed\n\n\n this._readableState.destroyed = value;\n }\n});\nReadable.prototype.destroy = destroyImpl.destroy;\nReadable.prototype._undestroy = destroyImpl.undestroy;\n\nReadable.prototype._destroy = function (err, cb) {\n cb(err);\n}; // Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\n\n\nReadable.prototype.push = function (chunk, encoding) {\n var state = this._readableState;\n var skipChunkCheck;\n\n if (!state.objectMode) {\n if (typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n\n if (encoding !== state.encoding) {\n chunk = Buffer.from(chunk, encoding);\n encoding = '';\n }\n\n skipChunkCheck = true;\n }\n } else {\n skipChunkCheck = true;\n }\n\n return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);\n}; // Unshift should *always* be something directly out of read()\n\n\nReadable.prototype.unshift = function (chunk) {\n return readableAddChunk(this, chunk, null, true, false);\n};\n\nfunction readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {\n debug('readableAddChunk', chunk);\n var state = stream._readableState;\n\n if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else {\n var er;\n if (!skipChunkCheck) er = chunkInvalid(state, chunk);\n\n if (er) {\n errorOrDestroy(stream, er);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (addToFront) {\n if (state.endEmitted) errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());else addChunk(stream, state, chunk, true);\n } else if (state.ended) {\n errorOrDestroy(stream, new ERR_STREAM_PUSH_AFTER_EOF());\n } else if (state.destroyed) {\n return false;\n } else {\n state.reading = false;\n\n if (state.decoder && !encoding) {\n chunk = state.decoder.write(chunk);\n if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);\n } else {\n addChunk(stream, state, chunk, false);\n }\n }\n } else if (!addToFront) {\n state.reading = false;\n maybeReadMore(stream, state);\n }\n } // We can push more data if we are below the highWaterMark.\n // Also, if we have no data yet, we can stand some more bytes.\n // This is to work around cases where hwm=0, such as the repl.\n\n\n return !state.ended && (state.length < state.highWaterMark || state.length === 0);\n}\n\nfunction addChunk(stream, state, chunk, addToFront) {\n if (state.flowing && state.length === 0 && !state.sync) {\n state.awaitDrain = 0;\n stream.emit('data', chunk);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);\n if (state.needReadable) emitReadable(stream);\n }\n\n maybeReadMore(stream, state);\n}\n\nfunction chunkInvalid(state, chunk) {\n var er;\n\n if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer', 'Uint8Array'], chunk);\n }\n\n return er;\n}\n\nReadable.prototype.isPaused = function () {\n return this._readableState.flowing === false;\n}; // backwards compatibility.\n\n\nReadable.prototype.setEncoding = function (enc) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n var decoder = new StringDecoder(enc);\n this._readableState.decoder = decoder; // If setEncoding(null), decoder.encoding equals utf8\n\n this._readableState.encoding = this._readableState.decoder.encoding; // Iterate over current buffer to convert already stored Buffers:\n\n var p = this._readableState.buffer.head;\n var content = '';\n\n while (p !== null) {\n content += decoder.write(p.data);\n p = p.next;\n }\n\n this._readableState.buffer.clear();\n\n if (content !== '') this._readableState.buffer.push(content);\n this._readableState.length = content.length;\n return this;\n}; // Don't raise the hwm > 1GB\n\n\nvar MAX_HWM = 0x40000000;\n\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n // TODO(ronag): Throw ERR_VALUE_OUT_OF_RANGE.\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2 to prevent increasing hwm excessively in\n // tiny amounts\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n\n return n;\n} // This function is designed to be inlinable, so please take care when making\n// changes to the function body.\n\n\nfunction howMuchToRead(n, state) {\n if (n <= 0 || state.length === 0 && state.ended) return 0;\n if (state.objectMode) return 1;\n\n if (n !== n) {\n // Only flow one buffer at a time\n if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;\n } // If we're asking for more than the current hwm, then raise the hwm.\n\n\n if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);\n if (n <= state.length) return n; // Don't have enough\n\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n }\n\n return state.length;\n} // you can override either this method, or the async _read(n) below.\n\n\nReadable.prototype.read = function (n) {\n debug('read', n);\n n = parseInt(n, 10);\n var state = this._readableState;\n var nOrig = n;\n if (n !== 0) state.emittedReadable = false; // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n\n if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state); // if we've ended, and we're now clear, then finish it up.\n\n if (n === 0 && state.ended) {\n if (state.length === 0) endReadable(this);\n return null;\n } // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n // if we need a readable event, then we need to do some reading.\n\n\n var doRead = state.needReadable;\n debug('need readable', doRead); // if we currently have less than the highWaterMark, then also read some\n\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n } // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n\n\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n } else if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true; // if the length is currently zero, then we *need* a readable event.\n\n if (state.length === 0) state.needReadable = true; // call internal read method\n\n this._read(state.highWaterMark);\n\n state.sync = false; // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n\n if (!state.reading) n = howMuchToRead(nOrig, state);\n }\n\n var ret;\n if (n > 0) ret = fromList(n, state);else ret = null;\n\n if (ret === null) {\n state.needReadable = state.length <= state.highWaterMark;\n n = 0;\n } else {\n state.length -= n;\n state.awaitDrain = 0;\n }\n\n if (state.length === 0) {\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (!state.ended) state.needReadable = true; // If we tried to read() past the EOF, then emit end on the next tick.\n\n if (nOrig !== n && state.ended) endReadable(this);\n }\n\n if (ret !== null) this.emit('data', ret);\n return ret;\n};\n\nfunction onEofChunk(stream, state) {\n debug('onEofChunk');\n if (state.ended) return;\n\n if (state.decoder) {\n var chunk = state.decoder.end();\n\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n\n state.ended = true;\n\n if (state.sync) {\n // if we are sync, wait until next tick to emit the data.\n // Otherwise we risk emitting data in the flow()\n // the readable code triggers during a read() call\n emitReadable(stream);\n } else {\n // emit 'readable' now to make sure it gets picked up.\n state.needReadable = false;\n\n if (!state.emittedReadable) {\n state.emittedReadable = true;\n emitReadable_(stream);\n }\n }\n} // Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\n\n\nfunction emitReadable(stream) {\n var state = stream._readableState;\n debug('emitReadable', state.needReadable, state.emittedReadable);\n state.needReadable = false;\n\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n process.nextTick(emitReadable_, stream);\n }\n}\n\nfunction emitReadable_(stream) {\n var state = stream._readableState;\n debug('emitReadable_', state.destroyed, state.length, state.ended);\n\n if (!state.destroyed && (state.length || state.ended)) {\n stream.emit('readable');\n state.emittedReadable = false;\n } // The stream needs another readable event if\n // 1. It is not flowing, as the flow mechanism will take\n // care of it.\n // 2. It is not ended.\n // 3. It is below the highWaterMark, so we can schedule\n // another readable later.\n\n\n state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark;\n flow(stream);\n} // at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\n\n\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n process.nextTick(maybeReadMore_, stream, state);\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n // Attempt to read more data if we should.\n //\n // The conditions for reading more data are (one of):\n // - Not enough data buffered (state.length < state.highWaterMark). The loop\n // is responsible for filling the buffer with enough data if such data\n // is available. If highWaterMark is 0 and we are not in the flowing mode\n // we should _not_ attempt to buffer any extra data. We'll get more data\n // when the stream consumer calls read() instead.\n // - No data in the buffer, and the stream is in flowing mode. In this mode\n // the loop below is responsible for ensuring read() is called. Failing to\n // call read here would abort the flow and there's no other mechanism for\n // continuing the flow if the stream consumer has just subscribed to the\n // 'data' event.\n //\n // In addition to the above conditions to keep reading data, the following\n // conditions prevent the data from being read:\n // - The stream has ended (state.ended).\n // - There is already a pending 'read' operation (state.reading). This is a\n // case where the the stream has called the implementation defined _read()\n // method, but they are processing the call asynchronously and have _not_\n // called push() with new data. In this case we skip performing more\n // read()s. The execution ends in this method again after the _read() ends\n // up calling push() with more data.\n while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) {\n var len = state.length;\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length) // didn't get any data, stop spinning.\n break;\n }\n\n state.readingMore = false;\n} // abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\n\n\nReadable.prototype._read = function (n) {\n errorOrDestroy(this, new ERR_METHOD_NOT_IMPLEMENTED('_read()'));\n};\n\nReadable.prototype.pipe = function (dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n\n default:\n state.pipes.push(dest);\n break;\n }\n\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\n var endFn = doEnd ? onend : unpipe;\n if (state.endEmitted) process.nextTick(endFn);else src.once('end', endFn);\n dest.on('unpipe', onunpipe);\n\n function onunpipe(readable, unpipeInfo) {\n debug('onunpipe');\n\n if (readable === src) {\n if (unpipeInfo && unpipeInfo.hasUnpiped === false) {\n unpipeInfo.hasUnpiped = true;\n cleanup();\n }\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n } // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n\n\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n var cleanedUp = false;\n\n function cleanup() {\n debug('cleanup'); // cleanup event handlers once the pipe is broken\n\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', unpipe);\n src.removeListener('data', ondata);\n cleanedUp = true; // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n\n if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();\n }\n\n src.on('data', ondata);\n\n function ondata(chunk) {\n debug('ondata');\n var ret = dest.write(chunk);\n debug('dest.write', ret);\n\n if (ret === false) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n // => Check whether `dest` is still a piping destination.\n if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {\n debug('false write response, pause', state.awaitDrain);\n state.awaitDrain++;\n }\n\n src.pause();\n }\n } // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n\n\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0) errorOrDestroy(dest, er);\n } // Make sure our error handler is attached before userland ones.\n\n\n prependListener(dest, 'error', onerror); // Both close and finish should trigger unpipe, but only once.\n\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n\n dest.once('close', onclose);\n\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n } // tell the dest that it's being piped to\n\n\n dest.emit('pipe', src); // start the flow if it hasn't been started already.\n\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function pipeOnDrainFunctionResult() {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain) state.awaitDrain--;\n\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\nReadable.prototype.unpipe = function (dest) {\n var state = this._readableState;\n var unpipeInfo = {\n hasUnpiped: false\n }; // if we're not piping anywhere, then do nothing.\n\n if (state.pipesCount === 0) return this; // just one destination. most common case.\n\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes) return this;\n if (!dest) dest = state.pipes; // got a match.\n\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest) dest.emit('unpipe', this, unpipeInfo);\n return this;\n } // slow case. multiple pipe destinations.\n\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++) {\n dests[i].emit('unpipe', this, {\n hasUnpiped: false\n });\n }\n\n return this;\n } // try to find the right one.\n\n\n var index = indexOf(state.pipes, dest);\n if (index === -1) return this;\n state.pipes.splice(index, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1) state.pipes = state.pipes[0];\n dest.emit('unpipe', this, unpipeInfo);\n return this;\n}; // set up data events if they are asked for\n// Ensure readable listeners eventually get something\n\n\nReadable.prototype.on = function (ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n var state = this._readableState;\n\n if (ev === 'data') {\n // update readableListening so that resume() may be a no-op\n // a few lines down. This is needed to support once('readable').\n state.readableListening = this.listenerCount('readable') > 0; // Try start flowing on next tick if stream isn't explicitly paused\n\n if (state.flowing !== false) this.resume();\n } else if (ev === 'readable') {\n if (!state.endEmitted && !state.readableListening) {\n state.readableListening = state.needReadable = true;\n state.flowing = false;\n state.emittedReadable = false;\n debug('on readable', state.length, state.reading);\n\n if (state.length) {\n emitReadable(this);\n } else if (!state.reading) {\n process.nextTick(nReadingNextTick, this);\n }\n }\n }\n\n return res;\n};\n\nReadable.prototype.addListener = Readable.prototype.on;\n\nReadable.prototype.removeListener = function (ev, fn) {\n var res = Stream.prototype.removeListener.call(this, ev, fn);\n\n if (ev === 'readable') {\n // We need to check if there is someone still listening to\n // readable and reset the state. However this needs to happen\n // after readable has been emitted but before I/O (nextTick) to\n // support once('readable', fn) cycles. This means that calling\n // resume within the same tick will have no\n // effect.\n process.nextTick(updateReadableListening, this);\n }\n\n return res;\n};\n\nReadable.prototype.removeAllListeners = function (ev) {\n var res = Stream.prototype.removeAllListeners.apply(this, arguments);\n\n if (ev === 'readable' || ev === undefined) {\n // We need to check if there is someone still listening to\n // readable and reset the state. However this needs to happen\n // after readable has been emitted but before I/O (nextTick) to\n // support once('readable', fn) cycles. This means that calling\n // resume within the same tick will have no\n // effect.\n process.nextTick(updateReadableListening, this);\n }\n\n return res;\n};\n\nfunction updateReadableListening(self) {\n var state = self._readableState;\n state.readableListening = self.listenerCount('readable') > 0;\n\n if (state.resumeScheduled && !state.paused) {\n // flowing needs to be set to true now, otherwise\n // the upcoming resume will not flow.\n state.flowing = true; // crude way to check if we should resume\n } else if (self.listenerCount('data') > 0) {\n self.resume();\n }\n}\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n} // pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\n\n\nReadable.prototype.resume = function () {\n var state = this._readableState;\n\n if (!state.flowing) {\n debug('resume'); // we flow only if there is no one listening\n // for readable, but we still have to call\n // resume()\n\n state.flowing = !state.readableListening;\n resume(this, state);\n }\n\n state.paused = false;\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n process.nextTick(resume_, stream, state);\n }\n}\n\nfunction resume_(stream, state) {\n debug('resume', state.reading);\n\n if (!state.reading) {\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading) stream.read(0);\n}\n\nReadable.prototype.pause = function () {\n debug('call pause flowing=%j', this._readableState.flowing);\n\n if (this._readableState.flowing !== false) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n\n this._readableState.paused = true;\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n\n while (state.flowing && stream.read() !== null) {\n ;\n }\n} // wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\n\n\nReadable.prototype.wrap = function (stream) {\n var _this = this;\n\n var state = this._readableState;\n var paused = false;\n stream.on('end', function () {\n debug('wrapped end');\n\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) _this.push(chunk);\n }\n\n _this.push(null);\n });\n stream.on('data', function (chunk) {\n debug('wrapped data');\n if (state.decoder) chunk = state.decoder.write(chunk); // don't skip over falsy values in objectMode\n\n if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;\n\n var ret = _this.push(chunk);\n\n if (!ret) {\n paused = true;\n stream.pause();\n }\n }); // proxy all the other methods.\n // important when wrapping filters and duplexes.\n\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function methodWrap(method) {\n return function methodWrapReturnFunction() {\n return stream[method].apply(stream, arguments);\n };\n }(i);\n }\n } // proxy certain important events.\n\n\n for (var n = 0; n < kProxyEvents.length; n++) {\n stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));\n } // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n\n\n this._read = function (n) {\n debug('wrapped _read', n);\n\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return this;\n};\n\nif (typeof Symbol === 'function') {\n Readable.prototype[Symbol.asyncIterator] = function () {\n if (createReadableStreamAsyncIterator === undefined) {\n createReadableStreamAsyncIterator = require('./internal/streams/async_iterator');\n }\n\n return createReadableStreamAsyncIterator(this);\n };\n}\n\nObject.defineProperty(Readable.prototype, 'readableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState.highWaterMark;\n }\n});\nObject.defineProperty(Readable.prototype, 'readableBuffer', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState && this._readableState.buffer;\n }\n});\nObject.defineProperty(Readable.prototype, 'readableFlowing', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState.flowing;\n },\n set: function set(state) {\n if (this._readableState) {\n this._readableState.flowing = state;\n }\n }\n}); // exposed for testing purposes only.\n\nReadable._fromList = fromList;\nObject.defineProperty(Readable.prototype, 'readableLength', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState.length;\n }\n}); // Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\n\nfunction fromList(n, state) {\n // nothing buffered\n if (state.length === 0) return null;\n var ret;\n if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {\n // read it all, truncate the list\n if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.first();else ret = state.buffer.concat(state.length);\n state.buffer.clear();\n } else {\n // read part of list\n ret = state.buffer.consume(n, state.decoder);\n }\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n debug('endReadable', state.endEmitted);\n\n if (!state.endEmitted) {\n state.ended = true;\n process.nextTick(endReadableNT, state, stream);\n }\n}\n\nfunction endReadableNT(state, stream) {\n debug('endReadableNT', state.endEmitted, state.length); // Check that we didn't get one last unshift.\n\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n\n if (state.autoDestroy) {\n // In case of duplex streams we need a way to detect\n // if the writable side is ready for autoDestroy as well\n var wState = stream._writableState;\n\n if (!wState || wState.autoDestroy && wState.finished) {\n stream.destroy();\n }\n }\n }\n}\n\nif (typeof Symbol === 'function') {\n Readable.from = function (iterable, opts) {\n if (from === undefined) {\n from = require('./internal/streams/from');\n }\n\n return from(Readable, iterable, opts);\n };\n}\n\nfunction indexOf(xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n\n return -1;\n}","module.exports = require('events').EventEmitter;\n","'use strict'; // undocumented cb() API, needed for core, not for public API\n\nfunction destroy(err, cb) {\n var _this = this;\n\n var readableDestroyed = this._readableState && this._readableState.destroyed;\n var writableDestroyed = this._writableState && this._writableState.destroyed;\n\n if (readableDestroyed || writableDestroyed) {\n if (cb) {\n cb(err);\n } else if (err) {\n if (!this._writableState) {\n process.nextTick(emitErrorNT, this, err);\n } else if (!this._writableState.errorEmitted) {\n this._writableState.errorEmitted = true;\n process.nextTick(emitErrorNT, this, err);\n }\n }\n\n return this;\n } // we set destroyed to true before firing error callbacks in order\n // to make it re-entrance safe in case destroy() is called within callbacks\n\n\n if (this._readableState) {\n this._readableState.destroyed = true;\n } // if this is a duplex stream mark the writable part as destroyed as well\n\n\n if (this._writableState) {\n this._writableState.destroyed = true;\n }\n\n this._destroy(err || null, function (err) {\n if (!cb && err) {\n if (!_this._writableState) {\n process.nextTick(emitErrorAndCloseNT, _this, err);\n } else if (!_this._writableState.errorEmitted) {\n _this._writableState.errorEmitted = true;\n process.nextTick(emitErrorAndCloseNT, _this, err);\n } else {\n process.nextTick(emitCloseNT, _this);\n }\n } else if (cb) {\n process.nextTick(emitCloseNT, _this);\n cb(err);\n } else {\n process.nextTick(emitCloseNT, _this);\n }\n });\n\n return this;\n}\n\nfunction emitErrorAndCloseNT(self, err) {\n emitErrorNT(self, err);\n emitCloseNT(self);\n}\n\nfunction emitCloseNT(self) {\n if (self._writableState && !self._writableState.emitClose) return;\n if (self._readableState && !self._readableState.emitClose) return;\n self.emit('close');\n}\n\nfunction undestroy() {\n if (this._readableState) {\n this._readableState.destroyed = false;\n this._readableState.reading = false;\n this._readableState.ended = false;\n this._readableState.endEmitted = false;\n }\n\n if (this._writableState) {\n this._writableState.destroyed = false;\n this._writableState.ended = false;\n this._writableState.ending = false;\n this._writableState.finalCalled = false;\n this._writableState.prefinished = false;\n this._writableState.finished = false;\n this._writableState.errorEmitted = false;\n }\n}\n\nfunction emitErrorNT(self, err) {\n self.emit('error', err);\n}\n\nfunction errorOrDestroy(stream, err) {\n // We have tests that rely on errors being emitted\n // in the same tick, so changing this is semver major.\n // For now when you opt-in to autoDestroy we allow\n // the error to be emitted nextTick. In a future\n // semver major update we should change the default to this.\n var rState = stream._readableState;\n var wState = stream._writableState;\n if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);else stream.emit('error', err);\n}\n\nmodule.exports = {\n destroy: destroy,\n undestroy: undestroy,\n errorOrDestroy: errorOrDestroy\n};","'use strict';\n\nvar ERR_INVALID_OPT_VALUE = require('../../../errors').codes.ERR_INVALID_OPT_VALUE;\n\nfunction highWaterMarkFrom(options, isDuplex, duplexKey) {\n return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;\n}\n\nfunction getHighWaterMark(state, options, duplexKey, isDuplex) {\n var hwm = highWaterMarkFrom(options, isDuplex, duplexKey);\n\n if (hwm != null) {\n if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {\n var name = isDuplex ? duplexKey : 'highWaterMark';\n throw new ERR_INVALID_OPT_VALUE(name, hwm);\n }\n\n return Math.floor(hwm);\n } // Default value\n\n\n return state.objectMode ? 16 : 16 * 1024;\n}\n\nmodule.exports = {\n getHighWaterMark: getHighWaterMark\n};","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n'use strict';\n\nmodule.exports = Writable;\n/* */\n\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n} // It seems a linked list but it is not\n// there will be only 2 of these for each stream\n\n\nfunction CorkedRequest(state) {\n var _this = this;\n\n this.next = null;\n this.entry = null;\n\n this.finish = function () {\n onCorkedFinish(_this, state);\n };\n}\n/* */\n\n/**/\n\n\nvar Duplex;\n/**/\n\nWritable.WritableState = WritableState;\n/**/\n\nvar internalUtil = {\n deprecate: require('util-deprecate')\n};\n/**/\n\n/**/\n\nvar Stream = require('./internal/streams/stream');\n/**/\n\n\nvar Buffer = require('buffer').Buffer;\n\nvar OurUint8Array = global.Uint8Array || function () {};\n\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\n\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n\nvar destroyImpl = require('./internal/streams/destroy');\n\nvar _require = require('./internal/streams/state'),\n getHighWaterMark = _require.getHighWaterMark;\n\nvar _require$codes = require('../errors').codes,\n ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,\n ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,\n ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,\n ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE,\n ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED,\n ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES,\n ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END,\n ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;\n\nvar errorOrDestroy = destroyImpl.errorOrDestroy;\n\nrequire('inherits')(Writable, Stream);\n\nfunction nop() {}\n\nfunction WritableState(options, stream, isDuplex) {\n Duplex = Duplex || require('./_stream_duplex');\n options = options || {}; // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream,\n // e.g. options.readableObjectMode vs. options.writableObjectMode, etc.\n\n if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n\n this.objectMode = !!options.objectMode;\n if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode; // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n\n this.highWaterMark = getHighWaterMark(this, options, 'writableHighWaterMark', isDuplex); // if _final has been called\n\n this.finalCalled = false; // drain event flag.\n\n this.needDrain = false; // at the start of calling end()\n\n this.ending = false; // when end() has been called, and returned\n\n this.ended = false; // when 'finish' is emitted\n\n this.finished = false; // has it been destroyed\n\n this.destroyed = false; // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode; // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n\n this.defaultEncoding = options.defaultEncoding || 'utf8'; // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n\n this.length = 0; // a flag to see when we're in the middle of a write.\n\n this.writing = false; // when true all writes will be buffered until .uncork() call\n\n this.corked = 0; // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n\n this.sync = true; // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n\n this.bufferProcessing = false; // the callback that's passed to _write(chunk,cb)\n\n this.onwrite = function (er) {\n onwrite(stream, er);\n }; // the callback that the user supplies to write(chunk,encoding,cb)\n\n\n this.writecb = null; // the amount that is being written when _write is called.\n\n this.writelen = 0;\n this.bufferedRequest = null;\n this.lastBufferedRequest = null; // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n\n this.pendingcb = 0; // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n\n this.prefinished = false; // True if the error was already emitted and should not be thrown again\n\n this.errorEmitted = false; // Should close be emitted on destroy. Defaults to true.\n\n this.emitClose = options.emitClose !== false; // Should .destroy() be called after 'finish' (and potentially 'end')\n\n this.autoDestroy = !!options.autoDestroy; // count buffered requests\n\n this.bufferedRequestCount = 0; // allocate the first CorkedRequest, there is always\n // one allocated and free to use, and we maintain at most two\n\n this.corkedRequestsFree = new CorkedRequest(this);\n}\n\nWritableState.prototype.getBuffer = function getBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n\n while (current) {\n out.push(current);\n current = current.next;\n }\n\n return out;\n};\n\n(function () {\n try {\n Object.defineProperty(WritableState.prototype, 'buffer', {\n get: internalUtil.deprecate(function writableStateBufferGetter() {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')\n });\n } catch (_) {}\n})(); // Test _writableState for inheritance to account for Duplex streams,\n// whose prototype chain only points to Readable.\n\n\nvar realHasInstance;\n\nif (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {\n realHasInstance = Function.prototype[Symbol.hasInstance];\n Object.defineProperty(Writable, Symbol.hasInstance, {\n value: function value(object) {\n if (realHasInstance.call(this, object)) return true;\n if (this !== Writable) return false;\n return object && object._writableState instanceof WritableState;\n }\n });\n} else {\n realHasInstance = function realHasInstance(object) {\n return object instanceof this;\n };\n}\n\nfunction Writable(options) {\n Duplex = Duplex || require('./_stream_duplex'); // Writable ctor is applied to Duplexes, too.\n // `realHasInstance` is necessary because using plain `instanceof`\n // would return false, as no `_writableState` property is attached.\n // Trying to use the custom `instanceof` for Writable here will also break the\n // Node.js LazyTransform implementation, which has a non-trivial getter for\n // `_writableState` that would lead to infinite recursion.\n // Checking for a Stream.Duplex instance is faster here instead of inside\n // the WritableState constructor, at least with V8 6.5\n\n var isDuplex = this instanceof Duplex;\n if (!isDuplex && !realHasInstance.call(Writable, this)) return new Writable(options);\n this._writableState = new WritableState(options, this, isDuplex); // legacy.\n\n this.writable = true;\n\n if (options) {\n if (typeof options.write === 'function') this._write = options.write;\n if (typeof options.writev === 'function') this._writev = options.writev;\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n if (typeof options.final === 'function') this._final = options.final;\n }\n\n Stream.call(this);\n} // Otherwise people can pipe Writable streams, which is just wrong.\n\n\nWritable.prototype.pipe = function () {\n errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE());\n};\n\nfunction writeAfterEnd(stream, cb) {\n var er = new ERR_STREAM_WRITE_AFTER_END(); // TODO: defer error events consistently everywhere, not just the cb\n\n errorOrDestroy(stream, er);\n process.nextTick(cb, er);\n} // Checks that a user-supplied chunk is valid, especially for the particular\n// mode the stream is in. Currently this means that `null` is never accepted\n// and undefined/non-string values are only allowed in object mode.\n\n\nfunction validChunk(stream, state, chunk, cb) {\n var er;\n\n if (chunk === null) {\n er = new ERR_STREAM_NULL_VALUES();\n } else if (typeof chunk !== 'string' && !state.objectMode) {\n er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer'], chunk);\n }\n\n if (er) {\n errorOrDestroy(stream, er);\n process.nextTick(cb, er);\n return false;\n }\n\n return true;\n}\n\nWritable.prototype.write = function (chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n\n var isBuf = !state.objectMode && _isUint8Array(chunk);\n\n if (isBuf && !Buffer.isBuffer(chunk)) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;\n if (typeof cb !== 'function') cb = nop;\n if (state.ending) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);\n }\n return ret;\n};\n\nWritable.prototype.cork = function () {\n this._writableState.corked++;\n};\n\nWritable.prototype.uncork = function () {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);\n }\n};\n\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string') encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new ERR_UNKNOWN_ENCODING(encoding);\n this._writableState.defaultEncoding = encoding;\n return this;\n};\n\nObject.defineProperty(Writable.prototype, 'writableBuffer', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState && this._writableState.getBuffer();\n }\n});\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {\n chunk = Buffer.from(chunk, encoding);\n }\n\n return chunk;\n}\n\nObject.defineProperty(Writable.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.highWaterMark;\n }\n}); // if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\n\nfunction writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {\n if (!isBuf) {\n var newChunk = decodeChunk(state, chunk, encoding);\n\n if (chunk !== newChunk) {\n isBuf = true;\n encoding = 'buffer';\n chunk = newChunk;\n }\n }\n\n var len = state.objectMode ? 1 : chunk.length;\n state.length += len;\n var ret = state.length < state.highWaterMark; // we must ensure that previous needDrain will not be reset to false.\n\n if (!ret) state.needDrain = true;\n\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = {\n chunk: chunk,\n encoding: encoding,\n isBuf: isBuf,\n callback: cb,\n next: null\n };\n\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n\n state.bufferedRequestCount += 1;\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (state.destroyed) state.onwrite(new ERR_STREAM_DESTROYED('write'));else if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n\n if (sync) {\n // defer the callback if we are being called synchronously\n // to avoid piling up things on the stack\n process.nextTick(cb, er); // this can emit finish, and it will always happen\n // after error\n\n process.nextTick(finishMaybe, stream, state);\n stream._writableState.errorEmitted = true;\n errorOrDestroy(stream, er);\n } else {\n // the caller expect this to happen before if\n // it is async\n cb(er);\n stream._writableState.errorEmitted = true;\n errorOrDestroy(stream, er); // this can emit finish, but finish must\n // always follow error\n\n finishMaybe(stream, state);\n }\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n if (typeof cb !== 'function') throw new ERR_MULTIPLE_CALLBACK();\n onwriteStateUpdate(state);\n if (er) onwriteError(stream, state, sync, er, cb);else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state) || stream.destroyed;\n\n if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n process.nextTick(afterWrite, stream, state, finished, cb);\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished) onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n} // Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\n\n\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n} // if there's something in the buffer waiting, then process it\n\n\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var l = state.bufferedRequestCount;\n var buffer = new Array(l);\n var holder = state.corkedRequestsFree;\n holder.entry = entry;\n var count = 0;\n var allBuffers = true;\n\n while (entry) {\n buffer[count] = entry;\n if (!entry.isBuf) allBuffers = false;\n entry = entry.next;\n count += 1;\n }\n\n buffer.allBuffers = allBuffers;\n doWrite(stream, state, true, state.length, buffer, '', holder.finish); // doWrite is almost always async, defer these to save a bit of time\n // as the hot path ends with doWrite\n\n state.pendingcb++;\n state.lastBufferedRequest = null;\n\n if (holder.next) {\n state.corkedRequestsFree = holder.next;\n holder.next = null;\n } else {\n state.corkedRequestsFree = new CorkedRequest(state);\n }\n\n state.bufferedRequestCount = 0;\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n state.bufferedRequestCount--; // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n\n if (state.writing) {\n break;\n }\n }\n\n if (entry === null) state.lastBufferedRequest = null;\n }\n\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function (chunk, encoding, cb) {\n cb(new ERR_METHOD_NOT_IMPLEMENTED('_write()'));\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function (chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); // .end() fully uncorks\n\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n } // ignore unnecessary end() calls.\n\n\n if (!state.ending) endWritable(this, state, cb);\n return this;\n};\n\nObject.defineProperty(Writable.prototype, 'writableLength', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.length;\n }\n});\n\nfunction needFinish(state) {\n return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;\n}\n\nfunction callFinal(stream, state) {\n stream._final(function (err) {\n state.pendingcb--;\n\n if (err) {\n errorOrDestroy(stream, err);\n }\n\n state.prefinished = true;\n stream.emit('prefinish');\n finishMaybe(stream, state);\n });\n}\n\nfunction prefinish(stream, state) {\n if (!state.prefinished && !state.finalCalled) {\n if (typeof stream._final === 'function' && !state.destroyed) {\n state.pendingcb++;\n state.finalCalled = true;\n process.nextTick(callFinal, stream, state);\n } else {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(state);\n\n if (need) {\n prefinish(stream, state);\n\n if (state.pendingcb === 0) {\n state.finished = true;\n stream.emit('finish');\n\n if (state.autoDestroy) {\n // In case of duplex streams we need a way to detect\n // if the readable side is ready for autoDestroy as well\n var rState = stream._readableState;\n\n if (!rState || rState.autoDestroy && rState.endEmitted) {\n stream.destroy();\n }\n }\n }\n }\n\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n\n if (cb) {\n if (state.finished) process.nextTick(cb);else stream.once('finish', cb);\n }\n\n state.ended = true;\n stream.writable = false;\n}\n\nfunction onCorkedFinish(corkReq, state, err) {\n var entry = corkReq.entry;\n corkReq.entry = null;\n\n while (entry) {\n var cb = entry.callback;\n state.pendingcb--;\n cb(err);\n entry = entry.next;\n } // reuse the free corkReq.\n\n\n state.corkedRequestsFree.next = corkReq;\n}\n\nObject.defineProperty(Writable.prototype, 'destroyed', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n if (this._writableState === undefined) {\n return false;\n }\n\n return this._writableState.destroyed;\n },\n set: function set(value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._writableState) {\n return;\n } // backward compatibility, the user is explicitly\n // managing destroyed\n\n\n this._writableState.destroyed = value;\n }\n});\nWritable.prototype.destroy = destroyImpl.destroy;\nWritable.prototype._undestroy = destroyImpl.undestroy;\n\nWritable.prototype._destroy = function (err, cb) {\n cb(err);\n};","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n'use strict';\n\nmodule.exports = Transform;\n\nvar _require$codes = require('../errors').codes,\n ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,\n ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,\n ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING,\n ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;\n\nvar Duplex = require('./_stream_duplex');\n\nrequire('inherits')(Transform, Duplex);\n\nfunction afterTransform(er, data) {\n var ts = this._transformState;\n ts.transforming = false;\n var cb = ts.writecb;\n\n if (cb === null) {\n return this.emit('error', new ERR_MULTIPLE_CALLBACK());\n }\n\n ts.writechunk = null;\n ts.writecb = null;\n if (data != null) // single equals check for both `null` and `undefined`\n this.push(data);\n cb(er);\n var rs = this._readableState;\n rs.reading = false;\n\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n this._read(rs.highWaterMark);\n }\n}\n\nfunction Transform(options) {\n if (!(this instanceof Transform)) return new Transform(options);\n Duplex.call(this, options);\n this._transformState = {\n afterTransform: afterTransform.bind(this),\n needTransform: false,\n transforming: false,\n writecb: null,\n writechunk: null,\n writeencoding: null\n }; // start out asking for a readable event once data is transformed.\n\n this._readableState.needReadable = true; // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n\n this._readableState.sync = false;\n\n if (options) {\n if (typeof options.transform === 'function') this._transform = options.transform;\n if (typeof options.flush === 'function') this._flush = options.flush;\n } // When the writable side finishes, then flush out anything remaining.\n\n\n this.on('prefinish', prefinish);\n}\n\nfunction prefinish() {\n var _this = this;\n\n if (typeof this._flush === 'function' && !this._readableState.destroyed) {\n this._flush(function (er, data) {\n done(_this, er, data);\n });\n } else {\n done(this, null, null);\n }\n}\n\nTransform.prototype.push = function (chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n}; // This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\n\n\nTransform.prototype._transform = function (chunk, encoding, cb) {\n cb(new ERR_METHOD_NOT_IMPLEMENTED('_transform()'));\n};\n\nTransform.prototype._write = function (chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);\n }\n}; // Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\n\n\nTransform.prototype._read = function (n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && !ts.transforming) {\n ts.transforming = true;\n\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\nTransform.prototype._destroy = function (err, cb) {\n Duplex.prototype._destroy.call(this, err, function (err2) {\n cb(err2);\n });\n};\n\nfunction done(stream, er, data) {\n if (er) return stream.emit('error', er);\n if (data != null) // single equals check for both `null` and `undefined`\n stream.push(data); // TODO(BridgeAR): Write a test for these two error cases\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n\n if (stream._writableState.length) throw new ERR_TRANSFORM_WITH_LENGTH_0();\n if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING();\n return stream.push(null);\n}","import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport PropTypes from 'prop-types';\nimport merge from './merge';\n\nfunction omit(input, fields) {\n var output = {};\n Object.keys(input).forEach(function (prop) {\n if (fields.indexOf(prop) === -1) {\n output[prop] = input[prop];\n }\n });\n return output;\n}\n\nfunction css(styleFunction) {\n var newStyleFunction = function newStyleFunction(props) {\n var output = styleFunction(props);\n\n if (props.css) {\n return _extends({}, merge(output, styleFunction(_extends({\n theme: props.theme\n }, props.css))), omit(props.css, [styleFunction.filterProps]));\n }\n\n return output;\n };\n\n newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? _extends({}, styleFunction.propTypes, {\n css: PropTypes.object\n }) : {};\n newStyleFunction.filterProps = ['css'].concat(_toConsumableArray(styleFunction.filterProps));\n return newStyleFunction;\n}\n\nexport default css;","import style from './style';\nimport compose from './compose';\nexport var displayPrint = style({\n prop: 'displayPrint',\n cssProperty: false,\n transform: function transform(value) {\n return {\n '@media print': {\n display: value\n }\n };\n }\n});\nexport var displayRaw = style({\n prop: 'display'\n});\nexport var overflow = style({\n prop: 'overflow'\n});\nexport var textOverflow = style({\n prop: 'textOverflow'\n});\nexport var visibility = style({\n prop: 'visibility'\n});\nexport var whiteSpace = style({\n prop: 'whiteSpace'\n});\nexport default compose(displayPrint, displayRaw, overflow, textOverflow, visibility, whiteSpace);","import style from './style';\nvar boxShadow = style({\n prop: 'boxShadow',\n themeKey: 'shadows'\n});\nexport default boxShadow;","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;","let logging = false;\n\nexports.logging = logging;\n\nexports.setLogging = (_logging) => {\n logging = _logging;\n};\n\nexports.log = (...args) => (logging ? console.log.apply(this, args) : null);\n","module.exports = (prefix, cnt) => (\n `${prefix}-${cnt}-${Math.random().toString(16).slice(3, 8)}`\n);\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","export default function symbolObservablePonyfill(root) {\n\tvar result;\n\tvar Symbol = root.Symbol;\n\n\tif (typeof Symbol === 'function') {\n\t\tif (Symbol.observable) {\n\t\t\tresult = Symbol.observable;\n\t\t} else {\n\t\t\tresult = Symbol('observable');\n\t\t\tSymbol.observable = result;\n\t\t}\n\t} else {\n\t\tresult = '@@observable';\n\t}\n\n\treturn result;\n};\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }\nvar __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar encrypt_generator_1 = require(\"./encrypt-generator\");\n// This generator uses a worker thread to encrypt the nextChunk\n// while yielding the current one.\nfunction makeGetAsyncPacketIteratorOnWorkerThread(worker, progressCallback) {\n return function getAsyncPacketIteratorOnWorkerThread(_a) {\n var data = _a.data, frameSize = _a.frameSize, kek = _a.kek, chunkSize = _a.chunkSize;\n return __asyncGenerator(this, arguments, function getAsyncPacketIteratorOnWorkerThread_1() {\n var w, initWorker, askNextChunk, resolver, encryptedBytes, totalBytes, chunks, queueNextChunk, i, r;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n w = worker;\n initWorker = function () {\n w.postMessage({\n action: 'init',\n data: data,\n frameSize: frameSize,\n kek: kek,\n chunkSize: chunkSize,\n }, [data]);\n };\n askNextChunk = function () {\n w.postMessage({ action: 'getChunk' });\n };\n w.onmessage = function (ev) {\n resolver(ev.data);\n };\n encryptedBytes = 0;\n totalBytes = data.byteLength;\n chunks = [];\n queueNextChunk = function () {\n var chunkPromise = new Promise(function (resolve) {\n resolver = function (data) {\n if (data !== null) {\n encryptedBytes += data.data.byteLength;\n progressCallback && progressCallback({ totalBytes: totalBytes, encryptedBytes: encryptedBytes });\n queueNextChunk();\n }\n resolve(data);\n };\n });\n chunks.push(chunkPromise);\n askNextChunk();\n };\n initWorker();\n queueNextChunk();\n i = 0;\n _a.label = 1;\n case 1:\n if (!1) return [3 /*break*/, 5];\n return [4 /*yield*/, __await(chunks[i])];\n case 2:\n r = _a.sent();\n if (r === null) {\n return [3 /*break*/, 5];\n }\n return [4 /*yield*/, __await(r)];\n case 3: return [4 /*yield*/, _a.sent()];\n case 4:\n _a.sent();\n delete chunks[i];\n i++;\n return [3 /*break*/, 1];\n case 5: return [2 /*return*/];\n }\n });\n });\n };\n}\nexports.makeGetAsyncPacketIteratorOnWorkerThread = makeGetAsyncPacketIteratorOnWorkerThread;\nif (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) {\n // Worker\n var iterator_1;\n onmessage = function (ev) { return __awaiter(void 0, void 0, void 0, function () {\n var _a, action, others, data, frameSize, kek, chunkSize, _b, value, done, key, iv, data;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0:\n _a = ev.data, action = _a.action, others = __rest(_a, [\"action\"]);\n if (!(action === 'init')) return [3 /*break*/, 1];\n data = others.data, frameSize = others.frameSize, kek = others.kek, chunkSize = others.chunkSize;\n iterator_1 = encrypt_generator_1.getAsyncPacketIterator({ data: data, frameSize: frameSize, kek: kek, chunkSize: chunkSize });\n return [3 /*break*/, 3];\n case 1:\n if (!(action === 'getChunk')) return [3 /*break*/, 3];\n return [4 /*yield*/, iterator_1.next()];\n case 2:\n _b = _c.sent(), value = _b.value, done = _b.done;\n if (done) {\n postMessage(null);\n self.close();\n }\n else {\n key = value.key, iv = value.iv, data = value.data;\n postMessage({ key: key, iv: iv, data: data }, [data.buffer]);\n }\n _c.label = 3;\n case 3: return [2 /*return*/];\n }\n });\n }); };\n}\nelse {\n // Main\n}\n//# sourceMappingURL=web-encrypt-worker.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.fetchFromUrl = exports.parseBlob = exports.parseReadableStream = exports.parseNodeStream = exports.selectCover = exports.ratingToStars = exports.orderTags = exports.parseFromTokenizer = exports.parseBuffer = void 0;\nconst initDebug = require(\"debug\");\nconst mm = require(\"music-metadata/lib/core\");\nconst readable_web_to_node_stream_1 = require(\"readable-web-to-node-stream\");\nconst toBuffer = require(\"typedarray-to-buffer\");\nconst debug = initDebug('music-metadata-browser:main');\nvar core_1 = require(\"music-metadata/lib/core\");\nObject.defineProperty(exports, \"parseBuffer\", { enumerable: true, get: function () { return core_1.parseBuffer; } });\nObject.defineProperty(exports, \"parseFromTokenizer\", { enumerable: true, get: function () { return core_1.parseFromTokenizer; } });\nObject.defineProperty(exports, \"orderTags\", { enumerable: true, get: function () { return core_1.orderTags; } });\nObject.defineProperty(exports, \"ratingToStars\", { enumerable: true, get: function () { return core_1.ratingToStars; } });\nObject.defineProperty(exports, \"selectCover\", { enumerable: true, get: function () { return core_1.selectCover; } });\n/**\n * Parse audio Stream\n * @param stream - ReadableStream\n * @param contentType - MIME-Type\n * @param options - Parsing options\n * @returns Metadata\n */\nexports.parseNodeStream = mm.parseStream;\n/**\n * Parse Web API ReadableStream: https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream\n * @param stream - ReadableStream\n * @param fileInfo FileInfo object or MIME-Type\n * @param options - Parsing options\n * @returns Metadata\n */\nasync function parseReadableStream(stream, fileInfo, options) {\n const ns = new readable_web_to_node_stream_1.ReadableWebToNodeStream(stream);\n const res = await exports.parseNodeStream(ns, typeof fileInfo === 'string' ? { mimeType: fileInfo } : fileInfo, options);\n await ns.close();\n return res;\n}\nexports.parseReadableStream = parseReadableStream;\n/**\n * Parse Web API File\n * @param blob - Blob to parse\n * @param options - Parsing options\n * @returns Metadata\n */\nasync function parseBlob(blob, options) {\n const buf = await convertBlobToBuffer(blob);\n const fileInfo = { mimeType: blob.type, size: blob.size };\n if (blob.name) {\n fileInfo.path = blob.name;\n }\n return mm.parseBuffer(buf, { mimeType: blob.type, size: blob.size }, options);\n}\nexports.parseBlob = parseBlob;\n/**\n * Parse fetched file, using the Web Fetch API\n * @param audioTrackUrl - URL to download the audio track from\n * @param options - Parsing options\n * @returns Metadata\n */\nasync function fetchFromUrl(audioTrackUrl, options) {\n const response = await fetch(audioTrackUrl);\n const fileInfo = {\n size: parseInt(response.headers.get('Content-Length'), 10),\n mimeType: response.headers.get('Content-Type')\n };\n if (response.ok) {\n if (response.body) {\n const res = await this.parseReadableStream(response.body, fileInfo, options);\n debug('Closing HTTP-readable-stream...');\n if (!response.body.locked) { // Prevent error in Firefox\n await response.body.cancel();\n }\n debug('HTTP-readable-stream closed.');\n return res;\n }\n else {\n // Fall back on Blob\n return this.parseBlob(await response.blob(), options);\n }\n }\n else {\n throw new Error(`HTTP error status=${response.status}: ${response.statusText}`);\n }\n}\nexports.fetchFromUrl = fetchFromUrl;\n/**\n * Convert Web API File to Node Buffer\n * @param blob - Web API Blob\n * @returns Metadata\n */\nfunction convertBlobToBuffer(blob) {\n return new Promise((resolve, reject) => {\n const fileReader = new FileReader();\n fileReader.onloadend = event => {\n let data = event.target.result;\n if (data instanceof ArrayBuffer) {\n data = toBuffer(new Uint8Array(event.target.result));\n }\n resolve(data);\n };\n fileReader.onerror = error => {\n reject(new Error(error.type));\n };\n fileReader.onabort = error => {\n reject(new Error(error.type));\n };\n fileReader.readAsArrayBuffer(blob);\n });\n}\n","export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}","export default function _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z\"\n}), 'Refresh');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z\"\n}), 'DeleteForever');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z\"\n}), 'ExitToApp');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h10c2.76 0 5-2.24 5-5s-2.24-5-5-5zm0 8c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z\"\n}), 'ToggleOn');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h10c2.76 0 5-2.24 5-5s-2.24-5-5-5zM7 15c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z\"\n}), 'ToggleOff');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z\"\n}), 'Info');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 .3a12 12 0 0 0-3.8 23.4c.6.1.8-.3.8-.6v-2c-3.3.7-4-1.6-4-1.6-.6-1.4-1.4-1.8-1.4-1.8-1-.7.1-.7.1-.7 1.2 0 1.9 1.2 1.9 1.2 1 1.8 2.8 1.3 3.5 1 0-.8.4-1.3.7-1.6-2.7-.3-5.5-1.3-5.5-6 0-1.2.5-2.3 1.3-3.1-.2-.4-.6-1.6 0-3.2 0 0 1-.3 3.4 1.2a11.5 11.5 0 0 1 6 0c2.3-1.5 3.3-1.2 3.3-1.2.6 1.6.2 2.8 0 3.2.9.8 1.3 1.9 1.3 3.2 0 4.6-2.8 5.6-5.5 5.9.5.4.9 1 .9 2.2v3.3c0 .3.1.7.8.6A12 12 0 0 0 12 .3\"\n}), 'GitHub');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z\"\n}), 'MoreVert');\n\nexports.default = _default;","\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (file, acceptedFiles) {\n if (file && acceptedFiles) {\n var acceptedFilesArray = Array.isArray(acceptedFiles) ? acceptedFiles : acceptedFiles.split(',');\n var fileName = file.name || '';\n var mimeType = file.type || '';\n var baseMimeType = mimeType.replace(/\\/.*$/, '');\n return acceptedFilesArray.some(function (type) {\n var validType = type.trim();\n\n if (validType.charAt(0) === '.') {\n return fileName.toLowerCase().endsWith(validType.toLowerCase());\n } else if (validType.endsWith('/*')) {\n // This is something like a image/* mime type\n return baseMimeType === validType.replace(/\\/.*$/, '');\n }\n\n return mimeType === validType;\n });\n }\n\n return true;\n};","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6 6h2v12H6zm3.5 6l8.5 6V6z\"\n}), 'SkipPrevious');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 5v14l11-7z\"\n}), 'PlayArrow');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6 6h12v12H6z\"\n}), 'Stop');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z\"\n}), 'SkipNext');\n\nexports.default = _default;","export default typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined';\n","import isBrowser from './isBrowser';\n\nconst timeoutDuration = (function(){\n const longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];\n for (let i = 0; i < longerTimeoutBrowsers.length; i += 1) {\n if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {\n return 1;\n }\n }\n return 0;\n}());\n\nexport function microtaskDebounce(fn) {\n let called = false\n return () => {\n if (called) {\n return\n }\n called = true\n window.Promise.resolve().then(() => {\n called = false\n fn()\n })\n }\n}\n\nexport function taskDebounce(fn) {\n let scheduled = false;\n return () => {\n if (!scheduled) {\n scheduled = true;\n setTimeout(() => {\n scheduled = false;\n fn();\n }, timeoutDuration);\n }\n };\n}\n\nconst supportsMicroTasks = isBrowser && window.Promise\n\n\n/**\n* Create a debounced version of a method, that's asynchronously deferred\n* but called in the minimum time possible.\n*\n* @method\n* @memberof Popper.Utils\n* @argument {Function} fn\n* @returns {Function}\n*/\nexport default (supportsMicroTasks\n ? microtaskDebounce\n : taskDebounce);\n","/**\n * Check if the given variable is a function\n * @method\n * @memberof Popper.Utils\n * @argument {Any} functionToCheck - variable to check\n * @returns {Boolean} answer to: is a function?\n */\nexport default function isFunction(functionToCheck) {\n const getType = {};\n return (\n functionToCheck &&\n getType.toString.call(functionToCheck) === '[object Function]'\n );\n}\n","/**\n * Get CSS computed property of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Eement} element\n * @argument {String} property\n */\nexport default function getStyleComputedProperty(element, property) {\n if (element.nodeType !== 1) {\n return [];\n }\n // NOTE: 1 DOM access here\n const window = element.ownerDocument.defaultView;\n const css = window.getComputedStyle(element, null);\n return property ? css[property] : css;\n}\n","/**\n * Returns the parentNode or the host of the element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} parent\n */\nexport default function getParentNode(element) {\n if (element.nodeName === 'HTML') {\n return element;\n }\n return element.parentNode || element.host;\n}\n","import getStyleComputedProperty from './getStyleComputedProperty';\nimport getParentNode from './getParentNode';\n\n/**\n * Returns the scrolling parent of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} scroll parent\n */\nexport default function getScrollParent(element) {\n // Return body, `getScroll` will take care to get the correct `scrollTop` from it\n if (!element) {\n return document.body\n }\n\n switch (element.nodeName) {\n case 'HTML':\n case 'BODY':\n return element.ownerDocument.body\n case '#document':\n return element.body\n }\n\n // Firefox want us to check `-x` and `-y` variations as well\n const { overflow, overflowX, overflowY } = getStyleComputedProperty(element);\n if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) {\n return element;\n }\n\n return getScrollParent(getParentNode(element));\n}\n","/**\n * Returns the reference node of the reference object, or the reference object itself.\n * @method\n * @memberof Popper.Utils\n * @param {Element|Object} reference - the reference element (the popper will be relative to this)\n * @returns {Element} parent\n */\nexport default function getReferenceNode(reference) {\n return reference && reference.referenceNode ? reference.referenceNode : reference;\n}\n","import isBrowser from './isBrowser';\n\nconst isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode);\nconst isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent);\n\n/**\n * Determines if the browser is Internet Explorer\n * @method\n * @memberof Popper.Utils\n * @param {Number} version to check\n * @returns {Boolean} isIE\n */\nexport default function isIE(version) {\n if (version === 11) {\n return isIE11;\n }\n if (version === 10) {\n return isIE10;\n }\n return isIE11 || isIE10;\n}\n","import getStyleComputedProperty from './getStyleComputedProperty';\nimport isIE from './isIE';\n/**\n * Returns the offset parent of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} offset parent\n */\nexport default function getOffsetParent(element) {\n if (!element) {\n return document.documentElement;\n }\n\n const noOffsetParent = isIE(10) ? document.body : null;\n\n // NOTE: 1 DOM access here\n let offsetParent = element.offsetParent || null;\n // Skip hidden elements which don't have an offsetParent\n while (offsetParent === noOffsetParent && element.nextElementSibling) {\n offsetParent = (element = element.nextElementSibling).offsetParent;\n }\n\n const nodeName = offsetParent && offsetParent.nodeName;\n\n if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') {\n return element ? element.ownerDocument.documentElement : document.documentElement;\n }\n\n // .offsetParent will return the closest TH, TD or TABLE in case\n // no offsetParent is present, I hate this job...\n if (\n ['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 &&\n getStyleComputedProperty(offsetParent, 'position') === 'static'\n ) {\n return getOffsetParent(offsetParent);\n }\n\n return offsetParent;\n}\n","/**\n * Finds the root node (document, shadowDOM root) of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} node\n * @returns {Element} root node\n */\nexport default function getRoot(node) {\n if (node.parentNode !== null) {\n return getRoot(node.parentNode);\n }\n\n return node;\n}\n","import isOffsetContainer from './isOffsetContainer';\nimport getRoot from './getRoot';\nimport getOffsetParent from './getOffsetParent';\n\n/**\n * Finds the offset parent common to the two provided nodes\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element1\n * @argument {Element} element2\n * @returns {Element} common offset parent\n */\nexport default function findCommonOffsetParent(element1, element2) {\n // This check is needed to avoid errors in case one of the elements isn't defined for any reason\n if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) {\n return document.documentElement;\n }\n\n // Here we make sure to give as \"start\" the element that comes first in the DOM\n const order =\n element1.compareDocumentPosition(element2) &\n Node.DOCUMENT_POSITION_FOLLOWING;\n const start = order ? element1 : element2;\n const end = order ? element2 : element1;\n\n // Get common ancestor container\n const range = document.createRange();\n range.setStart(start, 0);\n range.setEnd(end, 0);\n const { commonAncestorContainer } = range;\n\n // Both nodes are inside #document\n if (\n (element1 !== commonAncestorContainer &&\n element2 !== commonAncestorContainer) ||\n start.contains(end)\n ) {\n if (isOffsetContainer(commonAncestorContainer)) {\n return commonAncestorContainer;\n }\n\n return getOffsetParent(commonAncestorContainer);\n }\n\n // one of the nodes is inside shadowDOM, find which one\n const element1root = getRoot(element1);\n if (element1root.host) {\n return findCommonOffsetParent(element1root.host, element2);\n } else {\n return findCommonOffsetParent(element1, getRoot(element2).host);\n }\n}\n","import getOffsetParent from './getOffsetParent';\n\nexport default function isOffsetContainer(element) {\n const { nodeName } = element;\n if (nodeName === 'BODY') {\n return false;\n }\n return (\n nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element\n );\n}\n","/**\n * Gets the scroll value of the given element in the given side (top and left)\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @argument {String} side `top` or `left`\n * @returns {number} amount of scrolled pixels\n */\nexport default function getScroll(element, side = 'top') {\n const upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft';\n const nodeName = element.nodeName;\n\n if (nodeName === 'BODY' || nodeName === 'HTML') {\n const html = element.ownerDocument.documentElement;\n const scrollingElement = element.ownerDocument.scrollingElement || html;\n return scrollingElement[upperSide];\n }\n\n return element[upperSide];\n}\n","import getScroll from './getScroll';\n\n/*\n * Sum or subtract the element scroll values (left and top) from a given rect object\n * @method\n * @memberof Popper.Utils\n * @param {Object} rect - Rect object you want to change\n * @param {HTMLElement} element - The element from the function reads the scroll values\n * @param {Boolean} subtract - set to true if you want to subtract the scroll values\n * @return {Object} rect - The modifier rect object\n */\nexport default function includeScroll(rect, element, subtract = false) {\n const scrollTop = getScroll(element, 'top');\n const scrollLeft = getScroll(element, 'left');\n const modifier = subtract ? -1 : 1;\n rect.top += scrollTop * modifier;\n rect.bottom += scrollTop * modifier;\n rect.left += scrollLeft * modifier;\n rect.right += scrollLeft * modifier;\n return rect;\n}\n","/*\n * Helper to detect borders of a given element\n * @method\n * @memberof Popper.Utils\n * @param {CSSStyleDeclaration} styles\n * Result of `getStyleComputedProperty` on the given element\n * @param {String} axis - `x` or `y`\n * @return {number} borders - The borders size of the given axis\n */\n\nexport default function getBordersSize(styles, axis) {\n const sideA = axis === 'x' ? 'Left' : 'Top';\n const sideB = sideA === 'Left' ? 'Right' : 'Bottom';\n\n return (\n parseFloat(styles[`border${sideA}Width`]) +\n parseFloat(styles[`border${sideB}Width`])\n );\n}\n","import isIE from './isIE';\n\nfunction getSize(axis, body, html, computedStyle) {\n return Math.max(\n body[`offset${axis}`],\n body[`scroll${axis}`],\n html[`client${axis}`],\n html[`offset${axis}`],\n html[`scroll${axis}`],\n isIE(10)\n ? (parseInt(html[`offset${axis}`]) + \n parseInt(computedStyle[`margin${axis === 'Height' ? 'Top' : 'Left'}`]) + \n parseInt(computedStyle[`margin${axis === 'Height' ? 'Bottom' : 'Right'}`]))\n : 0 \n );\n}\n\nexport default function getWindowSizes(document) {\n const body = document.body;\n const html = document.documentElement;\n const computedStyle = isIE(10) && getComputedStyle(html);\n\n return {\n height: getSize('Height', body, html, computedStyle),\n width: getSize('Width', body, html, computedStyle),\n };\n}\n","/**\n * Given element offsets, generate an output similar to getBoundingClientRect\n * @method\n * @memberof Popper.Utils\n * @argument {Object} offsets\n * @returns {Object} ClientRect like output\n */\nexport default function getClientRect(offsets) {\n return {\n ...offsets,\n right: offsets.left + offsets.width,\n bottom: offsets.top + offsets.height,\n };\n}\n","import getStyleComputedProperty from './getStyleComputedProperty';\nimport getBordersSize from './getBordersSize';\nimport getWindowSizes from './getWindowSizes';\nimport getScroll from './getScroll';\nimport getClientRect from './getClientRect';\nimport isIE from './isIE';\n\n/**\n * Get bounding client rect of given element\n * @method\n * @memberof Popper.Utils\n * @param {HTMLElement} element\n * @return {Object} client rect\n */\nexport default function getBoundingClientRect(element) {\n let rect = {};\n\n // IE10 10 FIX: Please, don't ask, the element isn't\n // considered in DOM in some circumstances...\n // This isn't reproducible in IE10 compatibility mode of IE11\n try {\n if (isIE(10)) {\n rect = element.getBoundingClientRect();\n const scrollTop = getScroll(element, 'top');\n const scrollLeft = getScroll(element, 'left');\n rect.top += scrollTop;\n rect.left += scrollLeft;\n rect.bottom += scrollTop;\n rect.right += scrollLeft;\n }\n else {\n rect = element.getBoundingClientRect();\n }\n }\n catch(e){}\n\n const result = {\n left: rect.left,\n top: rect.top,\n width: rect.right - rect.left,\n height: rect.bottom - rect.top,\n };\n\n // subtract scrollbar size from sizes\n const sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {};\n const width =\n sizes.width || element.clientWidth || result.width;\n const height =\n sizes.height || element.clientHeight || result.height;\n\n let horizScrollbar = element.offsetWidth - width;\n let vertScrollbar = element.offsetHeight - height;\n\n // if an hypothetical scrollbar is detected, we must be sure it's not a `border`\n // we make this check conditional for performance reasons\n if (horizScrollbar || vertScrollbar) {\n const styles = getStyleComputedProperty(element);\n horizScrollbar -= getBordersSize(styles, 'x');\n vertScrollbar -= getBordersSize(styles, 'y');\n\n result.width -= horizScrollbar;\n result.height -= vertScrollbar;\n }\n\n return getClientRect(result);\n}\n","import getStyleComputedProperty from './getStyleComputedProperty';\nimport includeScroll from './includeScroll';\nimport getScrollParent from './getScrollParent';\nimport getBoundingClientRect from './getBoundingClientRect';\nimport runIsIE from './isIE';\nimport getClientRect from './getClientRect';\n\nexport default function getOffsetRectRelativeToArbitraryNode(children, parent, fixedPosition = false) {\n const isIE10 = runIsIE(10);\n const isHTML = parent.nodeName === 'HTML';\n const childrenRect = getBoundingClientRect(children);\n const parentRect = getBoundingClientRect(parent);\n const scrollParent = getScrollParent(children);\n\n const styles = getStyleComputedProperty(parent);\n const borderTopWidth = parseFloat(styles.borderTopWidth);\n const borderLeftWidth = parseFloat(styles.borderLeftWidth);\n\n // In cases where the parent is fixed, we must ignore negative scroll in offset calc\n if(fixedPosition && isHTML) {\n parentRect.top = Math.max(parentRect.top, 0);\n parentRect.left = Math.max(parentRect.left, 0);\n }\n let offsets = getClientRect({\n top: childrenRect.top - parentRect.top - borderTopWidth,\n left: childrenRect.left - parentRect.left - borderLeftWidth,\n width: childrenRect.width,\n height: childrenRect.height,\n });\n offsets.marginTop = 0;\n offsets.marginLeft = 0;\n\n // Subtract margins of documentElement in case it's being used as parent\n // we do this only on HTML because it's the only element that behaves\n // differently when margins are applied to it. The margins are included in\n // the box of the documentElement, in the other cases not.\n if (!isIE10 && isHTML) {\n const marginTop = parseFloat(styles.marginTop);\n const marginLeft = parseFloat(styles.marginLeft);\n\n offsets.top -= borderTopWidth - marginTop;\n offsets.bottom -= borderTopWidth - marginTop;\n offsets.left -= borderLeftWidth - marginLeft;\n offsets.right -= borderLeftWidth - marginLeft;\n\n // Attach marginTop and marginLeft because in some circumstances we may need them\n offsets.marginTop = marginTop;\n offsets.marginLeft = marginLeft;\n }\n\n if (\n isIE10 && !fixedPosition\n ? parent.contains(scrollParent)\n : parent === scrollParent && scrollParent.nodeName !== 'BODY'\n ) {\n offsets = includeScroll(offsets, parent);\n }\n\n return offsets;\n}\n","import getOffsetRectRelativeToArbitraryNode from './getOffsetRectRelativeToArbitraryNode';\nimport getScroll from './getScroll';\nimport getClientRect from './getClientRect';\n\nexport default function getViewportOffsetRectRelativeToArtbitraryNode(element, excludeScroll = false) {\n const html = element.ownerDocument.documentElement;\n const relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html);\n const width = Math.max(html.clientWidth, window.innerWidth || 0);\n const height = Math.max(html.clientHeight, window.innerHeight || 0);\n\n const scrollTop = !excludeScroll ? getScroll(html) : 0;\n const scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0;\n\n const offset = {\n top: scrollTop - relativeOffset.top + relativeOffset.marginTop,\n left: scrollLeft - relativeOffset.left + relativeOffset.marginLeft,\n width,\n height,\n };\n\n return getClientRect(offset);\n}\n","import getStyleComputedProperty from './getStyleComputedProperty';\nimport getParentNode from './getParentNode';\n\n/**\n * Check if the given element is fixed or is inside a fixed parent\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @argument {Element} customContainer\n * @returns {Boolean} answer to \"isFixed?\"\n */\nexport default function isFixed(element) {\n const nodeName = element.nodeName;\n if (nodeName === 'BODY' || nodeName === 'HTML') {\n return false;\n }\n if (getStyleComputedProperty(element, 'position') === 'fixed') {\n return true;\n }\n const parentNode = getParentNode(element);\n if (!parentNode) {\n return false;\n }\n return isFixed(parentNode);\n}\n","import getStyleComputedProperty from './getStyleComputedProperty';\nimport isIE from './isIE';\n/**\n * Finds the first parent of an element that has a transformed property defined\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} first transformed parent or documentElement\n */\n\nexport default function getFixedPositionOffsetParent(element) {\n // This check is needed to avoid errors in case one of the elements isn't defined for any reason\n if (!element || !element.parentElement || isIE()) {\n return document.documentElement;\n }\n let el = element.parentElement;\n while (el && getStyleComputedProperty(el, 'transform') === 'none') {\n el = el.parentElement;\n }\n return el || document.documentElement;\n\n}\n","import getScrollParent from './getScrollParent';\nimport getParentNode from './getParentNode';\nimport getReferenceNode from './getReferenceNode';\nimport findCommonOffsetParent from './findCommonOffsetParent';\nimport getOffsetRectRelativeToArbitraryNode from './getOffsetRectRelativeToArbitraryNode';\nimport getViewportOffsetRectRelativeToArtbitraryNode from './getViewportOffsetRectRelativeToArtbitraryNode';\nimport getWindowSizes from './getWindowSizes';\nimport isFixed from './isFixed';\nimport getFixedPositionOffsetParent from './getFixedPositionOffsetParent';\n\n/**\n * Computed the boundaries limits and return them\n * @method\n * @memberof Popper.Utils\n * @param {HTMLElement} popper\n * @param {HTMLElement} reference\n * @param {number} padding\n * @param {HTMLElement} boundariesElement - Element used to define the boundaries\n * @param {Boolean} fixedPosition - Is in fixed position mode\n * @returns {Object} Coordinates of the boundaries\n */\nexport default function getBoundaries(\n popper,\n reference,\n padding,\n boundariesElement,\n fixedPosition = false\n) {\n // NOTE: 1 DOM access here\n\n let boundaries = { top: 0, left: 0 };\n const offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));\n\n // Handle viewport case\n if (boundariesElement === 'viewport' ) {\n boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent, fixedPosition);\n }\n\n else {\n // Handle other cases based on DOM element used as boundaries\n let boundariesNode;\n if (boundariesElement === 'scrollParent') {\n boundariesNode = getScrollParent(getParentNode(reference));\n if (boundariesNode.nodeName === 'BODY') {\n boundariesNode = popper.ownerDocument.documentElement;\n }\n } else if (boundariesElement === 'window') {\n boundariesNode = popper.ownerDocument.documentElement;\n } else {\n boundariesNode = boundariesElement;\n }\n\n const offsets = getOffsetRectRelativeToArbitraryNode(\n boundariesNode,\n offsetParent,\n fixedPosition\n );\n\n // In case of HTML, we need a different computation\n if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) {\n const { height, width } = getWindowSizes(popper.ownerDocument);\n boundaries.top += offsets.top - offsets.marginTop;\n boundaries.bottom = height + offsets.top;\n boundaries.left += offsets.left - offsets.marginLeft;\n boundaries.right = width + offsets.left;\n } else {\n // for all the other DOM elements, this one is good\n boundaries = offsets;\n }\n }\n\n // Add paddings\n padding = padding || 0;\n const isPaddingNumber = typeof padding === 'number';\n boundaries.left += isPaddingNumber ? padding : padding.left || 0; \n boundaries.top += isPaddingNumber ? padding : padding.top || 0; \n boundaries.right -= isPaddingNumber ? padding : padding.right || 0; \n boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0; \n\n return boundaries;\n}\n","import getBoundaries from '../utils/getBoundaries';\n\nfunction getArea({ width, height }) {\n return width * height;\n}\n\n/**\n * Utility used to transform the `auto` placement to the placement with more\n * available space.\n * @method\n * @memberof Popper.Utils\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nexport default function computeAutoPlacement(\n placement,\n refRect,\n popper,\n reference,\n boundariesElement,\n padding = 0\n) {\n if (placement.indexOf('auto') === -1) {\n return placement;\n }\n\n const boundaries = getBoundaries(\n popper,\n reference,\n padding,\n boundariesElement\n );\n\n const rects = {\n top: {\n width: boundaries.width,\n height: refRect.top - boundaries.top,\n },\n right: {\n width: boundaries.right - refRect.right,\n height: boundaries.height,\n },\n bottom: {\n width: boundaries.width,\n height: boundaries.bottom - refRect.bottom,\n },\n left: {\n width: refRect.left - boundaries.left,\n height: boundaries.height,\n },\n };\n\n const sortedAreas = Object.keys(rects)\n .map(key => ({\n key,\n ...rects[key],\n area: getArea(rects[key]),\n }))\n .sort((a, b) => b.area - a.area);\n\n const filteredAreas = sortedAreas.filter(\n ({ width, height }) =>\n width >= popper.clientWidth && height >= popper.clientHeight\n );\n\n const computedPlacement = filteredAreas.length > 0\n ? filteredAreas[0].key\n : sortedAreas[0].key;\n\n const variation = placement.split('-')[1];\n\n return computedPlacement + (variation ? `-${variation}` : '');\n}\n","import findCommonOffsetParent from './findCommonOffsetParent';\nimport getOffsetRectRelativeToArbitraryNode from './getOffsetRectRelativeToArbitraryNode';\nimport getFixedPositionOffsetParent from './getFixedPositionOffsetParent';\nimport getReferenceNode from './getReferenceNode';\n\n/**\n * Get offsets to the reference element\n * @method\n * @memberof Popper.Utils\n * @param {Object} state\n * @param {Element} popper - the popper element\n * @param {Element} reference - the reference element (the popper will be relative to this)\n * @param {Element} fixedPosition - is in fixed position mode\n * @returns {Object} An object containing the offsets which will be applied to the popper\n */\nexport default function getReferenceOffsets(state, popper, reference, fixedPosition = null) {\n const commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));\n return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition);\n}\n","/**\n * Get the outer sizes of the given element (offset size + margins)\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Object} object containing width and height properties\n */\nexport default function getOuterSizes(element) {\n const window = element.ownerDocument.defaultView;\n const styles = window.getComputedStyle(element);\n const x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0);\n const y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0);\n const result = {\n width: element.offsetWidth + y,\n height: element.offsetHeight + x,\n };\n return result;\n}\n","/**\n * Get the opposite placement of the given one\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement\n * @returns {String} flipped placement\n */\nexport default function getOppositePlacement(placement) {\n const hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' };\n return placement.replace(/left|right|bottom|top/g, matched => hash[matched]);\n}\n","import getOuterSizes from './getOuterSizes';\nimport getOppositePlacement from './getOppositePlacement';\n\n/**\n * Get offsets to the popper\n * @method\n * @memberof Popper.Utils\n * @param {Object} position - CSS position the Popper will get applied\n * @param {HTMLElement} popper - the popper element\n * @param {Object} referenceOffsets - the reference offsets (the popper will be relative to this)\n * @param {String} placement - one of the valid placement options\n * @returns {Object} popperOffsets - An object containing the offsets which will be applied to the popper\n */\nexport default function getPopperOffsets(popper, referenceOffsets, placement) {\n placement = placement.split('-')[0];\n\n // Get popper node sizes\n const popperRect = getOuterSizes(popper);\n\n // Add position, width and height to our offsets object\n const popperOffsets = {\n width: popperRect.width,\n height: popperRect.height,\n };\n\n // depending by the popper placement we have to compute its offsets slightly differently\n const isHoriz = ['right', 'left'].indexOf(placement) !== -1;\n const mainSide = isHoriz ? 'top' : 'left';\n const secondarySide = isHoriz ? 'left' : 'top';\n const measurement = isHoriz ? 'height' : 'width';\n const secondaryMeasurement = !isHoriz ? 'height' : 'width';\n\n popperOffsets[mainSide] =\n referenceOffsets[mainSide] +\n referenceOffsets[measurement] / 2 -\n popperRect[measurement] / 2;\n if (placement === secondarySide) {\n popperOffsets[secondarySide] =\n referenceOffsets[secondarySide] - popperRect[secondaryMeasurement];\n } else {\n popperOffsets[secondarySide] =\n referenceOffsets[getOppositePlacement(secondarySide)];\n }\n\n return popperOffsets;\n}\n","/**\n * Mimics the `find` method of Array\n * @method\n * @memberof Popper.Utils\n * @argument {Array} arr\n * @argument prop\n * @argument value\n * @returns index or -1\n */\nexport default function find(arr, check) {\n // use native find if supported\n if (Array.prototype.find) {\n return arr.find(check);\n }\n\n // use `filter` to obtain the same behavior of `find`\n return arr.filter(check)[0];\n}\n","import isFunction from './isFunction';\nimport findIndex from './findIndex';\nimport getClientRect from '../utils/getClientRect';\n\n/**\n * Loop trough the list of modifiers and run them in order,\n * each of them will then edit the data object.\n * @method\n * @memberof Popper.Utils\n * @param {dataObject} data\n * @param {Array} modifiers\n * @param {String} ends - Optional modifier name used as stopper\n * @returns {dataObject}\n */\nexport default function runModifiers(modifiers, data, ends) {\n const modifiersToRun = ends === undefined\n ? modifiers\n : modifiers.slice(0, findIndex(modifiers, 'name', ends));\n\n modifiersToRun.forEach(modifier => {\n if (modifier['function']) { // eslint-disable-line dot-notation\n console.warn('`modifier.function` is deprecated, use `modifier.fn`!');\n }\n const fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation\n if (modifier.enabled && isFunction(fn)) {\n // Add properties to offsets to make them a complete clientRect object\n // we do this before each modifier to make sure the previous one doesn't\n // mess with these values\n data.offsets.popper = getClientRect(data.offsets.popper);\n data.offsets.reference = getClientRect(data.offsets.reference);\n\n data = fn(data, modifier);\n }\n });\n\n return data;\n}\n","import find from './find';\n\n/**\n * Return the index of the matching object\n * @method\n * @memberof Popper.Utils\n * @argument {Array} arr\n * @argument prop\n * @argument value\n * @returns index or -1\n */\nexport default function findIndex(arr, prop, value) {\n // use native findIndex if supported\n if (Array.prototype.findIndex) {\n return arr.findIndex(cur => cur[prop] === value);\n }\n\n // use `find` + `indexOf` if `findIndex` isn't supported\n const match = find(arr, obj => obj[prop] === value);\n return arr.indexOf(match);\n}\n","import computeAutoPlacement from '../utils/computeAutoPlacement';\nimport getReferenceOffsets from '../utils/getReferenceOffsets';\nimport getPopperOffsets from '../utils/getPopperOffsets';\nimport runModifiers from '../utils/runModifiers';\n\n/**\n * Updates the position of the popper, computing the new offsets and applying\n * the new style.
\n * Prefer `scheduleUpdate` over `update` because of performance reasons.\n * @method\n * @memberof Popper\n */\nexport default function update() {\n // if popper is destroyed, don't perform any further update\n if (this.state.isDestroyed) {\n return;\n }\n\n let data = {\n instance: this,\n styles: {},\n arrowStyles: {},\n attributes: {},\n flipped: false,\n offsets: {},\n };\n\n // compute reference element offsets\n data.offsets.reference = getReferenceOffsets(\n this.state,\n this.popper,\n this.reference,\n this.options.positionFixed\n );\n\n // compute auto placement, store placement inside the data object,\n // modifiers will be able to edit `placement` if needed\n // and refer to originalPlacement to know the original value\n data.placement = computeAutoPlacement(\n this.options.placement,\n data.offsets.reference,\n this.popper,\n this.reference,\n this.options.modifiers.flip.boundariesElement,\n this.options.modifiers.flip.padding\n );\n\n // store the computed placement inside `originalPlacement`\n data.originalPlacement = data.placement;\n\n data.positionFixed = this.options.positionFixed;\n\n // compute the popper offsets\n data.offsets.popper = getPopperOffsets(\n this.popper,\n data.offsets.reference,\n data.placement\n );\n\n data.offsets.popper.position = this.options.positionFixed\n ? 'fixed'\n : 'absolute';\n\n // run the modifiers\n data = runModifiers(this.modifiers, data);\n\n // the first `update` will call `onCreate` callback\n // the other ones will call `onUpdate` callback\n if (!this.state.isCreated) {\n this.state.isCreated = true;\n this.options.onCreate(data);\n } else {\n this.options.onUpdate(data);\n }\n}\n","/**\n * Helper used to know if the given modifier is enabled.\n * @method\n * @memberof Popper.Utils\n * @returns {Boolean}\n */\nexport default function isModifierEnabled(modifiers, modifierName) {\n return modifiers.some(\n ({ name, enabled }) => enabled && name === modifierName\n );\n}\n","/**\n * Get the prefixed supported property name\n * @method\n * @memberof Popper.Utils\n * @argument {String} property (camelCase)\n * @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix)\n */\nexport default function getSupportedPropertyName(property) {\n const prefixes = [false, 'ms', 'Webkit', 'Moz', 'O'];\n const upperProp = property.charAt(0).toUpperCase() + property.slice(1);\n\n for (let i = 0; i < prefixes.length; i++) {\n const prefix = prefixes[i];\n const toCheck = prefix ? `${prefix}${upperProp}` : property;\n if (typeof document.body.style[toCheck] !== 'undefined') {\n return toCheck;\n }\n }\n return null;\n}\n","import isModifierEnabled from '../utils/isModifierEnabled';\nimport getSupportedPropertyName from '../utils/getSupportedPropertyName';\n\n/**\n * Destroys the popper.\n * @method\n * @memberof Popper\n */\nexport default function destroy() {\n this.state.isDestroyed = true;\n\n // touch DOM only if `applyStyle` modifier is enabled\n if (isModifierEnabled(this.modifiers, 'applyStyle')) {\n this.popper.removeAttribute('x-placement');\n this.popper.style.position = '';\n this.popper.style.top = '';\n this.popper.style.left = '';\n this.popper.style.right = '';\n this.popper.style.bottom = '';\n this.popper.style.willChange = '';\n this.popper.style[getSupportedPropertyName('transform')] = '';\n }\n\n this.disableEventListeners();\n\n // remove the popper if user explicitly asked for the deletion on destroy\n // do not use `remove` because IE11 doesn't support it\n if (this.options.removeOnDestroy) {\n this.popper.parentNode.removeChild(this.popper);\n }\n return this;\n}\n","/**\n * Get the window associated with the element\n * @argument {Element} element\n * @returns {Window}\n */\nexport default function getWindow(element) {\n const ownerDocument = element.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView : window;\n}\n","import getScrollParent from './getScrollParent';\nimport getWindow from './getWindow';\n\nfunction attachToScrollParents(scrollParent, event, callback, scrollParents) {\n const isBody = scrollParent.nodeName === 'BODY';\n const target = isBody ? scrollParent.ownerDocument.defaultView : scrollParent;\n target.addEventListener(event, callback, { passive: true });\n\n if (!isBody) {\n attachToScrollParents(\n getScrollParent(target.parentNode),\n event,\n callback,\n scrollParents\n );\n }\n scrollParents.push(target);\n}\n\n/**\n * Setup needed event listeners used to update the popper position\n * @method\n * @memberof Popper.Utils\n * @private\n */\nexport default function setupEventListeners(\n reference,\n options,\n state,\n updateBound\n) {\n // Resize event listener on window\n state.updateBound = updateBound;\n getWindow(reference).addEventListener('resize', state.updateBound, { passive: true });\n\n // Scroll event listener on scroll parents\n const scrollElement = getScrollParent(reference);\n attachToScrollParents(\n scrollElement,\n 'scroll',\n state.updateBound,\n state.scrollParents\n );\n state.scrollElement = scrollElement;\n state.eventsEnabled = true;\n\n return state;\n}\n","import setupEventListeners from '../utils/setupEventListeners';\n\n/**\n * It will add resize/scroll events and start recalculating\n * position of the popper element when they are triggered.\n * @method\n * @memberof Popper\n */\nexport default function enableEventListeners() {\n if (!this.state.eventsEnabled) {\n this.state = setupEventListeners(\n this.reference,\n this.options,\n this.state,\n this.scheduleUpdate\n );\n }\n}\n","import removeEventListeners from '../utils/removeEventListeners';\n\n/**\n * It will remove resize/scroll events and won't recalculate popper position\n * when they are triggered. It also won't trigger `onUpdate` callback anymore,\n * unless you call `update` method manually.\n * @method\n * @memberof Popper\n */\nexport default function disableEventListeners() {\n if (this.state.eventsEnabled) {\n cancelAnimationFrame(this.scheduleUpdate);\n this.state = removeEventListeners(this.reference, this.state);\n }\n}\n","import getWindow from './getWindow';\n\n/**\n * Remove event listeners used to update the popper position\n * @method\n * @memberof Popper.Utils\n * @private\n */\nexport default function removeEventListeners(reference, state) {\n // Remove resize event listener on window\n getWindow(reference).removeEventListener('resize', state.updateBound);\n\n // Remove scroll event listener on scroll parents\n state.scrollParents.forEach(target => {\n target.removeEventListener('scroll', state.updateBound);\n });\n\n // Reset state\n state.updateBound = null;\n state.scrollParents = [];\n state.scrollElement = null;\n state.eventsEnabled = false;\n return state;\n}\n","/**\n * Tells if a given input is a number\n * @method\n * @memberof Popper.Utils\n * @param {*} input to check\n * @return {Boolean}\n */\nexport default function isNumeric(n) {\n return n !== '' && !isNaN(parseFloat(n)) && isFinite(n);\n}\n","import isNumeric from './isNumeric';\n\n/**\n * Set the style to the given popper\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element - Element to apply the style to\n * @argument {Object} styles\n * Object with a list of properties and values which will be applied to the element\n */\nexport default function setStyles(element, styles) {\n Object.keys(styles).forEach(prop => {\n let unit = '';\n // add unit if the value is numeric and is one of the following\n if (\n ['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !==\n -1 &&\n isNumeric(styles[prop])\n ) {\n unit = 'px';\n }\n element.style[prop] = styles[prop] + unit;\n });\n}\n","import getSupportedPropertyName from '../utils/getSupportedPropertyName';\nimport find from '../utils/find';\nimport getOffsetParent from '../utils/getOffsetParent';\nimport getBoundingClientRect from '../utils/getBoundingClientRect';\nimport getRoundedOffsets from '../utils/getRoundedOffsets';\nimport isBrowser from '../utils/isBrowser';\n\nconst isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent);\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nexport default function computeStyle(data, options) {\n const { x, y } = options;\n const { popper } = data.offsets;\n\n // Remove this legacy support in Popper.js v2\n const legacyGpuAccelerationOption = find(\n data.instance.modifiers,\n modifier => modifier.name === 'applyStyle'\n ).gpuAcceleration;\n if (legacyGpuAccelerationOption !== undefined) {\n console.warn(\n 'WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!'\n );\n }\n const gpuAcceleration =\n legacyGpuAccelerationOption !== undefined\n ? legacyGpuAccelerationOption\n : options.gpuAcceleration;\n\n const offsetParent = getOffsetParent(data.instance.popper);\n const offsetParentRect = getBoundingClientRect(offsetParent);\n\n // Styles\n const styles = {\n position: popper.position,\n };\n\n const offsets = getRoundedOffsets(\n data,\n window.devicePixelRatio < 2 || !isFirefox\n );\n\n const sideA = x === 'bottom' ? 'top' : 'bottom';\n const sideB = y === 'right' ? 'left' : 'right';\n\n // if gpuAcceleration is set to `true` and transform is supported,\n // we use `translate3d` to apply the position to the popper we\n // automatically use the supported prefixed version if needed\n const prefixedProperty = getSupportedPropertyName('transform');\n\n // now, let's make a step back and look at this code closely (wtf?)\n // If the content of the popper grows once it's been positioned, it\n // may happen that the popper gets misplaced because of the new content\n // overflowing its reference element\n // To avoid this problem, we provide two options (x and y), which allow\n // the consumer to define the offset origin.\n // If we position a popper on top of a reference element, we can set\n // `x` to `top` to make the popper grow towards its top instead of\n // its bottom.\n let left, top;\n if (sideA === 'bottom') {\n // when offsetParent is the positioning is relative to the bottom of the screen (excluding the scrollbar)\n // and not the bottom of the html element\n if (offsetParent.nodeName === 'HTML') {\n top = -offsetParent.clientHeight + offsets.bottom;\n } else {\n top = -offsetParentRect.height + offsets.bottom;\n }\n } else {\n top = offsets.top;\n }\n if (sideB === 'right') {\n if (offsetParent.nodeName === 'HTML') {\n left = -offsetParent.clientWidth + offsets.right;\n } else {\n left = -offsetParentRect.width + offsets.right;\n }\n } else {\n left = offsets.left;\n }\n if (gpuAcceleration && prefixedProperty) {\n styles[prefixedProperty] = `translate3d(${left}px, ${top}px, 0)`;\n styles[sideA] = 0;\n styles[sideB] = 0;\n styles.willChange = 'transform';\n } else {\n // othwerise, we use the standard `top`, `left`, `bottom` and `right` properties\n const invertTop = sideA === 'bottom' ? -1 : 1;\n const invertLeft = sideB === 'right' ? -1 : 1;\n styles[sideA] = top * invertTop;\n styles[sideB] = left * invertLeft;\n styles.willChange = `${sideA}, ${sideB}`;\n }\n\n // Attributes\n const attributes = {\n 'x-placement': data.placement,\n };\n\n // Update `data` attributes, styles and arrowStyles\n data.attributes = { ...attributes, ...data.attributes };\n data.styles = { ...styles, ...data.styles };\n data.arrowStyles = { ...data.offsets.arrow, ...data.arrowStyles };\n\n return data;\n}\n","import find from './find';\n\n/**\n * Helper used to know if the given modifier depends from another one.
\n * It checks if the needed modifier is listed and enabled.\n * @method\n * @memberof Popper.Utils\n * @param {Array} modifiers - list of modifiers\n * @param {String} requestingName - name of requesting modifier\n * @param {String} requestedName - name of requested modifier\n * @returns {Boolean}\n */\nexport default function isModifierRequired(\n modifiers,\n requestingName,\n requestedName\n) {\n const requesting = find(modifiers, ({ name }) => name === requestingName);\n\n const isRequired =\n !!requesting &&\n modifiers.some(modifier => {\n return (\n modifier.name === requestedName &&\n modifier.enabled &&\n modifier.order < requesting.order\n );\n });\n\n if (!isRequired) {\n const requesting = `\\`${requestingName}\\``;\n const requested = `\\`${requestedName}\\``;\n console.warn(\n `${requested} modifier is required by ${requesting} modifier in order to work, be sure to include it before ${requesting}!`\n );\n }\n return isRequired;\n}\n","/**\n * List of accepted placements to use as values of the `placement` option.
\n * Valid placements are:\n * - `auto`\n * - `top`\n * - `right`\n * - `bottom`\n * - `left`\n *\n * Each placement can have a variation from this list:\n * - `-start`\n * - `-end`\n *\n * Variations are interpreted easily if you think of them as the left to right\n * written languages. Horizontally (`top` and `bottom`), `start` is left and `end`\n * is right.
\n * Vertically (`left` and `right`), `start` is top and `end` is bottom.\n *\n * Some valid examples are:\n * - `top-end` (on top of reference, right aligned)\n * - `right-start` (on right of reference, top aligned)\n * - `bottom` (on bottom, centered)\n * - `auto-end` (on the side with more space available, alignment depends by placement)\n *\n * @static\n * @type {Array}\n * @enum {String}\n * @readonly\n * @method placements\n * @memberof Popper\n */\nexport default [\n 'auto-start',\n 'auto',\n 'auto-end',\n 'top-start',\n 'top',\n 'top-end',\n 'right-start',\n 'right',\n 'right-end',\n 'bottom-end',\n 'bottom',\n 'bottom-start',\n 'left-end',\n 'left',\n 'left-start',\n];\n","import placements from '../methods/placements';\n\n// Get rid of `auto` `auto-start` and `auto-end`\nconst validPlacements = placements.slice(3);\n\n/**\n * Given an initial placement, returns all the subsequent placements\n * clockwise (or counter-clockwise).\n *\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement - A valid placement (it accepts variations)\n * @argument {Boolean} counter - Set to true to walk the placements counterclockwise\n * @returns {Array} placements including their variations\n */\nexport default function clockwise(placement, counter = false) {\n const index = validPlacements.indexOf(placement);\n const arr = validPlacements\n .slice(index + 1)\n .concat(validPlacements.slice(0, index));\n return counter ? arr.reverse() : arr;\n}\n","import getOppositePlacement from '../utils/getOppositePlacement';\nimport getOppositeVariation from '../utils/getOppositeVariation';\nimport getPopperOffsets from '../utils/getPopperOffsets';\nimport runModifiers from '../utils/runModifiers';\nimport getBoundaries from '../utils/getBoundaries';\nimport isModifierEnabled from '../utils/isModifierEnabled';\nimport clockwise from '../utils/clockwise';\n\nconst BEHAVIORS = {\n FLIP: 'flip',\n CLOCKWISE: 'clockwise',\n COUNTERCLOCKWISE: 'counterclockwise',\n};\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nexport default function flip(data, options) {\n // if `inner` modifier is enabled, we can't use the `flip` modifier\n if (isModifierEnabled(data.instance.modifiers, 'inner')) {\n return data;\n }\n\n if (data.flipped && data.placement === data.originalPlacement) {\n // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides\n return data;\n }\n\n const boundaries = getBoundaries(\n data.instance.popper,\n data.instance.reference,\n options.padding,\n options.boundariesElement,\n data.positionFixed\n );\n\n let placement = data.placement.split('-')[0];\n let placementOpposite = getOppositePlacement(placement);\n let variation = data.placement.split('-')[1] || '';\n\n let flipOrder = [];\n\n switch (options.behavior) {\n case BEHAVIORS.FLIP:\n flipOrder = [placement, placementOpposite];\n break;\n case BEHAVIORS.CLOCKWISE:\n flipOrder = clockwise(placement);\n break;\n case BEHAVIORS.COUNTERCLOCKWISE:\n flipOrder = clockwise(placement, true);\n break;\n default:\n flipOrder = options.behavior;\n }\n\n flipOrder.forEach((step, index) => {\n if (placement !== step || flipOrder.length === index + 1) {\n return data;\n }\n\n placement = data.placement.split('-')[0];\n placementOpposite = getOppositePlacement(placement);\n\n const popperOffsets = data.offsets.popper;\n const refOffsets = data.offsets.reference;\n\n // using floor because the reference offsets may contain decimals we are not going to consider here\n const floor = Math.floor;\n const overlapsRef =\n (placement === 'left' &&\n floor(popperOffsets.right) > floor(refOffsets.left)) ||\n (placement === 'right' &&\n floor(popperOffsets.left) < floor(refOffsets.right)) ||\n (placement === 'top' &&\n floor(popperOffsets.bottom) > floor(refOffsets.top)) ||\n (placement === 'bottom' &&\n floor(popperOffsets.top) < floor(refOffsets.bottom));\n\n const overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left);\n const overflowsRight = floor(popperOffsets.right) > floor(boundaries.right);\n const overflowsTop = floor(popperOffsets.top) < floor(boundaries.top);\n const overflowsBottom =\n floor(popperOffsets.bottom) > floor(boundaries.bottom);\n\n const overflowsBoundaries =\n (placement === 'left' && overflowsLeft) ||\n (placement === 'right' && overflowsRight) ||\n (placement === 'top' && overflowsTop) ||\n (placement === 'bottom' && overflowsBottom);\n\n // flip the variation if required\n const isVertical = ['top', 'bottom'].indexOf(placement) !== -1;\n\n // flips variation if reference element overflows boundaries\n const flippedVariationByRef =\n !!options.flipVariations &&\n ((isVertical && variation === 'start' && overflowsLeft) ||\n (isVertical && variation === 'end' && overflowsRight) ||\n (!isVertical && variation === 'start' && overflowsTop) ||\n (!isVertical && variation === 'end' && overflowsBottom));\n\n // flips variation if popper content overflows boundaries\n const flippedVariationByContent =\n !!options.flipVariationsByContent &&\n ((isVertical && variation === 'start' && overflowsRight) ||\n (isVertical && variation === 'end' && overflowsLeft) ||\n (!isVertical && variation === 'start' && overflowsBottom) ||\n (!isVertical && variation === 'end' && overflowsTop));\n\n const flippedVariation = flippedVariationByRef || flippedVariationByContent;\n\n if (overlapsRef || overflowsBoundaries || flippedVariation) {\n // this boolean to detect any flip loop\n data.flipped = true;\n\n if (overlapsRef || overflowsBoundaries) {\n placement = flipOrder[index + 1];\n }\n\n if (flippedVariation) {\n variation = getOppositeVariation(variation);\n }\n\n data.placement = placement + (variation ? '-' + variation : '');\n\n // this object contains `position`, we want to preserve it along with\n // any additional property we may add in the future\n data.offsets.popper = {\n ...data.offsets.popper,\n ...getPopperOffsets(\n data.instance.popper,\n data.offsets.reference,\n data.placement\n ),\n };\n\n data = runModifiers(data.instance.modifiers, data, 'flip');\n }\n });\n return data;\n}\n","import isNumeric from '../utils/isNumeric';\nimport getClientRect from '../utils/getClientRect';\nimport find from '../utils/find';\n\n/**\n * Converts a string containing value + unit into a px value number\n * @function\n * @memberof {modifiers~offset}\n * @private\n * @argument {String} str - Value + unit string\n * @argument {String} measurement - `height` or `width`\n * @argument {Object} popperOffsets\n * @argument {Object} referenceOffsets\n * @returns {Number|String}\n * Value in pixels, or original string if no values were extracted\n */\nexport function toValue(str, measurement, popperOffsets, referenceOffsets) {\n // separate value from unit\n const split = str.match(/((?:\\-|\\+)?\\d*\\.?\\d*)(.*)/);\n const value = +split[1];\n const unit = split[2];\n\n // If it's not a number it's an operator, I guess\n if (!value) {\n return str;\n }\n\n if (unit.indexOf('%') === 0) {\n let element;\n switch (unit) {\n case '%p':\n element = popperOffsets;\n break;\n case '%':\n case '%r':\n default:\n element = referenceOffsets;\n }\n\n const rect = getClientRect(element);\n return rect[measurement] / 100 * value;\n } else if (unit === 'vh' || unit === 'vw') {\n // if is a vh or vw, we calculate the size based on the viewport\n let size;\n if (unit === 'vh') {\n size = Math.max(\n document.documentElement.clientHeight,\n window.innerHeight || 0\n );\n } else {\n size = Math.max(\n document.documentElement.clientWidth,\n window.innerWidth || 0\n );\n }\n return size / 100 * value;\n } else {\n // if is an explicit pixel unit, we get rid of the unit and keep the value\n // if is an implicit unit, it's px, and we return just the value\n return value;\n }\n}\n\n/**\n * Parse an `offset` string to extrapolate `x` and `y` numeric offsets.\n * @function\n * @memberof {modifiers~offset}\n * @private\n * @argument {String} offset\n * @argument {Object} popperOffsets\n * @argument {Object} referenceOffsets\n * @argument {String} basePlacement\n * @returns {Array} a two cells array with x and y offsets in numbers\n */\nexport function parseOffset(\n offset,\n popperOffsets,\n referenceOffsets,\n basePlacement\n) {\n const offsets = [0, 0];\n\n // Use height if placement is left or right and index is 0 otherwise use width\n // in this way the first offset will use an axis and the second one\n // will use the other one\n const useHeight = ['right', 'left'].indexOf(basePlacement) !== -1;\n\n // Split the offset string to obtain a list of values and operands\n // The regex addresses values with the plus or minus sign in front (+10, -20, etc)\n const fragments = offset.split(/(\\+|\\-)/).map(frag => frag.trim());\n\n // Detect if the offset string contains a pair of values or a single one\n // they could be separated by comma or space\n const divider = fragments.indexOf(\n find(fragments, frag => frag.search(/,|\\s/) !== -1)\n );\n\n if (fragments[divider] && fragments[divider].indexOf(',') === -1) {\n console.warn(\n 'Offsets separated by white space(s) are deprecated, use a comma (,) instead.'\n );\n }\n\n // If divider is found, we divide the list of values and operands to divide\n // them by ofset X and Y.\n const splitRegex = /\\s*,\\s*|\\s+/;\n let ops = divider !== -1\n ? [\n fragments\n .slice(0, divider)\n .concat([fragments[divider].split(splitRegex)[0]]),\n [fragments[divider].split(splitRegex)[1]].concat(\n fragments.slice(divider + 1)\n ),\n ]\n : [fragments];\n\n // Convert the values with units to absolute pixels to allow our computations\n ops = ops.map((op, index) => {\n // Most of the units rely on the orientation of the popper\n const measurement = (index === 1 ? !useHeight : useHeight)\n ? 'height'\n : 'width';\n let mergeWithPrevious = false;\n return (\n op\n // This aggregates any `+` or `-` sign that aren't considered operators\n // e.g.: 10 + +5 => [10, +, +5]\n .reduce((a, b) => {\n if (a[a.length - 1] === '' && ['+', '-'].indexOf(b) !== -1) {\n a[a.length - 1] = b;\n mergeWithPrevious = true;\n return a;\n } else if (mergeWithPrevious) {\n a[a.length - 1] += b;\n mergeWithPrevious = false;\n return a;\n } else {\n return a.concat(b);\n }\n }, [])\n // Here we convert the string values into number values (in px)\n .map(str => toValue(str, measurement, popperOffsets, referenceOffsets))\n );\n });\n\n // Loop trough the offsets arrays and execute the operations\n ops.forEach((op, index) => {\n op.forEach((frag, index2) => {\n if (isNumeric(frag)) {\n offsets[index] += frag * (op[index2 - 1] === '-' ? -1 : 1);\n }\n });\n });\n return offsets;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @argument {Number|String} options.offset=0\n * The offset value as described in the modifier description\n * @returns {Object} The data object, properly modified\n */\nexport default function offset(data, { offset }) {\n const { placement, offsets: { popper, reference } } = data;\n const basePlacement = placement.split('-')[0];\n\n let offsets;\n if (isNumeric(+offset)) {\n offsets = [+offset, 0];\n } else {\n offsets = parseOffset(offset, popper, reference, basePlacement);\n }\n\n if (basePlacement === 'left') {\n popper.top += offsets[0];\n popper.left -= offsets[1];\n } else if (basePlacement === 'right') {\n popper.top += offsets[0];\n popper.left += offsets[1];\n } else if (basePlacement === 'top') {\n popper.left += offsets[0];\n popper.top -= offsets[1];\n } else if (basePlacement === 'bottom') {\n popper.left += offsets[0];\n popper.top += offsets[1];\n }\n\n data.popper = popper;\n return data;\n}\n","import applyStyle, { applyStyleOnLoad } from './applyStyle';\nimport computeStyle from './computeStyle';\nimport arrow from './arrow';\nimport flip from './flip';\nimport keepTogether from './keepTogether';\nimport offset from './offset';\nimport preventOverflow from './preventOverflow';\nimport shift from './shift';\nimport hide from './hide';\nimport inner from './inner';\n\n/**\n * Modifier function, each modifier can have a function of this type assigned\n * to its `fn` property.
\n * These functions will be called on each update, this means that you must\n * make sure they are performant enough to avoid performance bottlenecks.\n *\n * @function ModifierFn\n * @argument {dataObject} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {dataObject} The data object, properly modified\n */\n\n/**\n * Modifiers are plugins used to alter the behavior of your poppers.
\n * Popper.js uses a set of 9 modifiers to provide all the basic functionalities\n * needed by the library.\n *\n * Usually you don't want to override the `order`, `fn` and `onLoad` props.\n * All the other properties are configurations that could be tweaked.\n * @namespace modifiers\n */\nexport default {\n /**\n * Modifier used to shift the popper on the start or end of its reference\n * element.
\n * It will read the variation of the `placement` property.
\n * It can be one either `-end` or `-start`.\n * @memberof modifiers\n * @inner\n */\n shift: {\n /** @prop {number} order=100 - Index used to define the order of execution */\n order: 100,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: shift,\n },\n\n /**\n * The `offset` modifier can shift your popper on both its axis.\n *\n * It accepts the following units:\n * - `px` or unit-less, interpreted as pixels\n * - `%` or `%r`, percentage relative to the length of the reference element\n * - `%p`, percentage relative to the length of the popper element\n * - `vw`, CSS viewport width unit\n * - `vh`, CSS viewport height unit\n *\n * For length is intended the main axis relative to the placement of the popper.
\n * This means that if the placement is `top` or `bottom`, the length will be the\n * `width`. In case of `left` or `right`, it will be the `height`.\n *\n * You can provide a single value (as `Number` or `String`), or a pair of values\n * as `String` divided by a comma or one (or more) white spaces.
\n * The latter is a deprecated method because it leads to confusion and will be\n * removed in v2.
\n * Additionally, it accepts additions and subtractions between different units.\n * Note that multiplications and divisions aren't supported.\n *\n * Valid examples are:\n * ```\n * 10\n * '10%'\n * '10, 10'\n * '10%, 10'\n * '10 + 10%'\n * '10 - 5vh + 3%'\n * '-10px + 5vh, 5px - 6%'\n * ```\n * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap\n * > with their reference element, unfortunately, you will have to disable the `flip` modifier.\n * > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373).\n *\n * @memberof modifiers\n * @inner\n */\n offset: {\n /** @prop {number} order=200 - Index used to define the order of execution */\n order: 200,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: offset,\n /** @prop {Number|String} offset=0\n * The offset value as described in the modifier description\n */\n offset: 0,\n },\n\n /**\n * Modifier used to prevent the popper from being positioned outside the boundary.\n *\n * A scenario exists where the reference itself is not within the boundaries.
\n * We can say it has \"escaped the boundaries\" — or just \"escaped\".
\n * In this case we need to decide whether the popper should either:\n *\n * - detach from the reference and remain \"trapped\" in the boundaries, or\n * - if it should ignore the boundary and \"escape with its reference\"\n *\n * When `escapeWithReference` is set to`true` and reference is completely\n * outside its boundaries, the popper will overflow (or completely leave)\n * the boundaries in order to remain attached to the edge of the reference.\n *\n * @memberof modifiers\n * @inner\n */\n preventOverflow: {\n /** @prop {number} order=300 - Index used to define the order of execution */\n order: 300,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: preventOverflow,\n /**\n * @prop {Array} [priority=['left','right','top','bottom']]\n * Popper will try to prevent overflow following these priorities by default,\n * then, it could overflow on the left and on top of the `boundariesElement`\n */\n priority: ['left', 'right', 'top', 'bottom'],\n /**\n * @prop {number} padding=5\n * Amount of pixel used to define a minimum distance between the boundaries\n * and the popper. This makes sure the popper always has a little padding\n * between the edges of its container\n */\n padding: 5,\n /**\n * @prop {String|HTMLElement} boundariesElement='scrollParent'\n * Boundaries used by the modifier. Can be `scrollParent`, `window`,\n * `viewport` or any DOM element.\n */\n boundariesElement: 'scrollParent',\n },\n\n /**\n * Modifier used to make sure the reference and its popper stay near each other\n * without leaving any gap between the two. Especially useful when the arrow is\n * enabled and you want to ensure that it points to its reference element.\n * It cares only about the first axis. You can still have poppers with margin\n * between the popper and its reference element.\n * @memberof modifiers\n * @inner\n */\n keepTogether: {\n /** @prop {number} order=400 - Index used to define the order of execution */\n order: 400,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: keepTogether,\n },\n\n /**\n * This modifier is used to move the `arrowElement` of the popper to make\n * sure it is positioned between the reference element and its popper element.\n * It will read the outer size of the `arrowElement` node to detect how many\n * pixels of conjunction are needed.\n *\n * It has no effect if no `arrowElement` is provided.\n * @memberof modifiers\n * @inner\n */\n arrow: {\n /** @prop {number} order=500 - Index used to define the order of execution */\n order: 500,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: arrow,\n /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */\n element: '[x-arrow]',\n },\n\n /**\n * Modifier used to flip the popper's placement when it starts to overlap its\n * reference element.\n *\n * Requires the `preventOverflow` modifier before it in order to work.\n *\n * **NOTE:** this modifier will interrupt the current update cycle and will\n * restart it if it detects the need to flip the placement.\n * @memberof modifiers\n * @inner\n */\n flip: {\n /** @prop {number} order=600 - Index used to define the order of execution */\n order: 600,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: flip,\n /**\n * @prop {String|Array} behavior='flip'\n * The behavior used to change the popper's placement. It can be one of\n * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid\n * placements (with optional variations)\n */\n behavior: 'flip',\n /**\n * @prop {number} padding=5\n * The popper will flip if it hits the edges of the `boundariesElement`\n */\n padding: 5,\n /**\n * @prop {String|HTMLElement} boundariesElement='viewport'\n * The element which will define the boundaries of the popper position.\n * The popper will never be placed outside of the defined boundaries\n * (except if `keepTogether` is enabled)\n */\n boundariesElement: 'viewport',\n /**\n * @prop {Boolean} flipVariations=false\n * The popper will switch placement variation between `-start` and `-end` when\n * the reference element overlaps its boundaries.\n *\n * The original placement should have a set variation.\n */\n flipVariations: false,\n /**\n * @prop {Boolean} flipVariationsByContent=false\n * The popper will switch placement variation between `-start` and `-end` when\n * the popper element overlaps its reference boundaries.\n *\n * The original placement should have a set variation.\n */\n flipVariationsByContent: false,\n },\n\n /**\n * Modifier used to make the popper flow toward the inner of the reference element.\n * By default, when this modifier is disabled, the popper will be placed outside\n * the reference element.\n * @memberof modifiers\n * @inner\n */\n inner: {\n /** @prop {number} order=700 - Index used to define the order of execution */\n order: 700,\n /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */\n enabled: false,\n /** @prop {ModifierFn} */\n fn: inner,\n },\n\n /**\n * Modifier used to hide the popper when its reference element is outside of the\n * popper boundaries. It will set a `x-out-of-boundaries` attribute which can\n * be used to hide with a CSS selector the popper when its reference is\n * out of boundaries.\n *\n * Requires the `preventOverflow` modifier before it in order to work.\n * @memberof modifiers\n * @inner\n */\n hide: {\n /** @prop {number} order=800 - Index used to define the order of execution */\n order: 800,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: hide,\n },\n\n /**\n * Computes the style that will be applied to the popper element to gets\n * properly positioned.\n *\n * Note that this modifier will not touch the DOM, it just prepares the styles\n * so that `applyStyle` modifier can apply it. This separation is useful\n * in case you need to replace `applyStyle` with a custom implementation.\n *\n * This modifier has `850` as `order` value to maintain backward compatibility\n * with previous versions of Popper.js. Expect the modifiers ordering method\n * to change in future major versions of the library.\n *\n * @memberof modifiers\n * @inner\n */\n computeStyle: {\n /** @prop {number} order=850 - Index used to define the order of execution */\n order: 850,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: computeStyle,\n /**\n * @prop {Boolean} gpuAcceleration=true\n * If true, it uses the CSS 3D transformation to position the popper.\n * Otherwise, it will use the `top` and `left` properties\n */\n gpuAcceleration: true,\n /**\n * @prop {string} [x='bottom']\n * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin.\n * Change this if your popper should grow in a direction different from `bottom`\n */\n x: 'bottom',\n /**\n * @prop {string} [x='left']\n * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin.\n * Change this if your popper should grow in a direction different from `right`\n */\n y: 'right',\n },\n\n /**\n * Applies the computed styles to the popper element.\n *\n * All the DOM manipulations are limited to this modifier. This is useful in case\n * you want to integrate Popper.js inside a framework or view library and you\n * want to delegate all the DOM manipulations to it.\n *\n * Note that if you disable this modifier, you must make sure the popper element\n * has its position set to `absolute` before Popper.js can do its work!\n *\n * Just disable this modifier and define your own to achieve the desired effect.\n *\n * @memberof modifiers\n * @inner\n */\n applyStyle: {\n /** @prop {number} order=900 - Index used to define the order of execution */\n order: 900,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: applyStyle,\n /** @prop {Function} */\n onLoad: applyStyleOnLoad,\n /**\n * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier\n * @prop {Boolean} gpuAcceleration=true\n * If true, it uses the CSS 3D transformation to position the popper.\n * Otherwise, it will use the `top` and `left` properties\n */\n gpuAcceleration: undefined,\n },\n};\n\n/**\n * The `dataObject` is an object containing all the information used by Popper.js.\n * This object is passed to modifiers and to the `onCreate` and `onUpdate` callbacks.\n * @name dataObject\n * @property {Object} data.instance The Popper.js instance\n * @property {String} data.placement Placement applied to popper\n * @property {String} data.originalPlacement Placement originally defined on init\n * @property {Boolean} data.flipped True if popper has been flipped by flip modifier\n * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper\n * @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier\n * @property {Object} data.styles Any CSS property defined here will be applied to the popper. It expects the JavaScript nomenclature (eg. `marginBottom`)\n * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow. It expects the JavaScript nomenclature (eg. `marginBottom`)\n * @property {Object} data.boundaries Offsets of the popper boundaries\n * @property {Object} data.offsets The measurements of popper, reference and arrow elements\n * @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values\n * @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values\n * @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0\n */\n","import modifiers from '../modifiers/index';\n\n/**\n * Default options provided to Popper.js constructor.
\n * These can be overridden using the `options` argument of Popper.js.
\n * To override an option, simply pass an object with the same\n * structure of the `options` object, as the 3rd argument. For example:\n * ```\n * new Popper(ref, pop, {\n * modifiers: {\n * preventOverflow: { enabled: false }\n * }\n * })\n * ```\n * @type {Object}\n * @static\n * @memberof Popper\n */\nexport default {\n /**\n * Popper's placement.\n * @prop {Popper.placements} placement='bottom'\n */\n placement: 'bottom',\n\n /**\n * Set this to true if you want popper to position it self in 'fixed' mode\n * @prop {Boolean} positionFixed=false\n */\n positionFixed: false,\n\n /**\n * Whether events (resize, scroll) are initially enabled.\n * @prop {Boolean} eventsEnabled=true\n */\n eventsEnabled: true,\n\n /**\n * Set to true if you want to automatically remove the popper when\n * you call the `destroy` method.\n * @prop {Boolean} removeOnDestroy=false\n */\n removeOnDestroy: false,\n\n /**\n * Callback called when the popper is created.
\n * By default, it is set to no-op.
\n * Access Popper.js instance with `data.instance`.\n * @prop {onCreate}\n */\n onCreate: () => {},\n\n /**\n * Callback called when the popper is updated. This callback is not called\n * on the initialization/creation of the popper, but only on subsequent\n * updates.
\n * By default, it is set to no-op.
\n * Access Popper.js instance with `data.instance`.\n * @prop {onUpdate}\n */\n onUpdate: () => {},\n\n /**\n * List of modifiers used to modify the offsets before they are applied to the popper.\n * They provide most of the functionalities of Popper.js.\n * @prop {modifiers}\n */\n modifiers,\n};\n\n/**\n * @callback onCreate\n * @param {dataObject} data\n */\n\n/**\n * @callback onUpdate\n * @param {dataObject} data\n */\n","/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nexport default function shift(data) {\n const placement = data.placement;\n const basePlacement = placement.split('-')[0];\n const shiftvariation = placement.split('-')[1];\n\n // if shift shiftvariation is specified, run the modifier\n if (shiftvariation) {\n const { reference, popper } = data.offsets;\n const isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1;\n const side = isVertical ? 'left' : 'top';\n const measurement = isVertical ? 'width' : 'height';\n\n const shiftOffsets = {\n start: { [side]: reference[side] },\n end: {\n [side]: reference[side] + reference[measurement] - popper[measurement],\n },\n };\n\n data.offsets.popper = { ...popper, ...shiftOffsets[shiftvariation] };\n }\n\n return data;\n}\n","import getOffsetParent from '../utils/getOffsetParent';\nimport getBoundaries from '../utils/getBoundaries';\nimport getSupportedPropertyName from '../utils/getSupportedPropertyName';\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nexport default function preventOverflow(data, options) {\n let boundariesElement =\n options.boundariesElement || getOffsetParent(data.instance.popper);\n\n // If offsetParent is the reference element, we really want to\n // go one step up and use the next offsetParent as reference to\n // avoid to make this modifier completely useless and look like broken\n if (data.instance.reference === boundariesElement) {\n boundariesElement = getOffsetParent(boundariesElement);\n }\n\n // NOTE: DOM access here\n // resets the popper's position so that the document size can be calculated excluding\n // the size of the popper element itself\n const transformProp = getSupportedPropertyName('transform');\n const popperStyles = data.instance.popper.style; // assignment to help minification\n const { top, left, [transformProp]: transform } = popperStyles;\n popperStyles.top = '';\n popperStyles.left = '';\n popperStyles[transformProp] = '';\n\n const boundaries = getBoundaries(\n data.instance.popper,\n data.instance.reference,\n options.padding,\n boundariesElement,\n data.positionFixed\n );\n\n // NOTE: DOM access here\n // restores the original style properties after the offsets have been computed\n popperStyles.top = top;\n popperStyles.left = left;\n popperStyles[transformProp] = transform;\n\n options.boundaries = boundaries;\n\n const order = options.priority;\n let popper = data.offsets.popper;\n\n const check = {\n primary(placement) {\n let value = popper[placement];\n if (\n popper[placement] < boundaries[placement] &&\n !options.escapeWithReference\n ) {\n value = Math.max(popper[placement], boundaries[placement]);\n }\n return { [placement]: value };\n },\n secondary(placement) {\n const mainSide = placement === 'right' ? 'left' : 'top';\n let value = popper[mainSide];\n if (\n popper[placement] > boundaries[placement] &&\n !options.escapeWithReference\n ) {\n value = Math.min(\n popper[mainSide],\n boundaries[placement] -\n (placement === 'right' ? popper.width : popper.height)\n );\n }\n return { [mainSide]: value };\n },\n };\n\n order.forEach(placement => {\n const side =\n ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary';\n popper = { ...popper, ...check[side](placement) };\n });\n\n data.offsets.popper = popper;\n\n return data;\n}\n","/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nexport default function keepTogether(data) {\n const { popper, reference } = data.offsets;\n const placement = data.placement.split('-')[0];\n const floor = Math.floor;\n const isVertical = ['top', 'bottom'].indexOf(placement) !== -1;\n const side = isVertical ? 'right' : 'bottom';\n const opSide = isVertical ? 'left' : 'top';\n const measurement = isVertical ? 'width' : 'height';\n\n if (popper[side] < floor(reference[opSide])) {\n data.offsets.popper[opSide] =\n floor(reference[opSide]) - popper[measurement];\n }\n if (popper[opSide] > floor(reference[side])) {\n data.offsets.popper[opSide] = floor(reference[side]);\n }\n\n return data;\n}\n","import getClientRect from '../utils/getClientRect';\nimport getOuterSizes from '../utils/getOuterSizes';\nimport isModifierRequired from '../utils/isModifierRequired';\nimport getStyleComputedProperty from '../utils/getStyleComputedProperty';\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nexport default function arrow(data, options) {\n // arrow depends on keepTogether in order to work\n if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) {\n return data;\n }\n\n let arrowElement = options.element;\n\n // if arrowElement is a string, suppose it's a CSS selector\n if (typeof arrowElement === 'string') {\n arrowElement = data.instance.popper.querySelector(arrowElement);\n\n // if arrowElement is not found, don't run the modifier\n if (!arrowElement) {\n return data;\n }\n } else {\n // if the arrowElement isn't a query selector we must check that the\n // provided DOM node is child of its popper node\n if (!data.instance.popper.contains(arrowElement)) {\n console.warn(\n 'WARNING: `arrow.element` must be child of its popper element!'\n );\n return data;\n }\n }\n\n const placement = data.placement.split('-')[0];\n const { popper, reference } = data.offsets;\n const isVertical = ['left', 'right'].indexOf(placement) !== -1;\n\n const len = isVertical ? 'height' : 'width';\n const sideCapitalized = isVertical ? 'Top' : 'Left';\n const side = sideCapitalized.toLowerCase();\n const altSide = isVertical ? 'left' : 'top';\n const opSide = isVertical ? 'bottom' : 'right';\n const arrowElementSize = getOuterSizes(arrowElement)[len];\n\n //\n // extends keepTogether behavior making sure the popper and its\n // reference have enough pixels in conjunction\n //\n\n // top/left side\n if (reference[opSide] - arrowElementSize < popper[side]) {\n data.offsets.popper[side] -=\n popper[side] - (reference[opSide] - arrowElementSize);\n }\n // bottom/right side\n if (reference[side] + arrowElementSize > popper[opSide]) {\n data.offsets.popper[side] +=\n reference[side] + arrowElementSize - popper[opSide];\n }\n data.offsets.popper = getClientRect(data.offsets.popper);\n\n // compute center of the popper\n const center = reference[side] + reference[len] / 2 - arrowElementSize / 2;\n\n // Compute the sideValue using the updated popper offsets\n // take popper margin in account because we don't have this info available\n const css = getStyleComputedProperty(data.instance.popper);\n const popperMarginSide = parseFloat(css[`margin${sideCapitalized}`]);\n const popperBorderSide = parseFloat(css[`border${sideCapitalized}Width`]);\n let sideValue =\n center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;\n\n // prevent arrowElement from being placed not contiguously to its popper\n sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0);\n\n data.arrowElement = arrowElement;\n data.offsets.arrow = {\n [side]: Math.round(sideValue),\n [altSide]: '', // make sure to unset any eventual altSide value from the DOM node\n };\n\n return data;\n}\n","/**\n * Get the opposite placement variation of the given one\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement variation\n * @returns {String} flipped placement variation\n */\nexport default function getOppositeVariation(variation) {\n if (variation === 'end') {\n return 'start';\n } else if (variation === 'start') {\n return 'end';\n }\n return variation;\n}\n","import getClientRect from '../utils/getClientRect';\nimport getOppositePlacement from '../utils/getOppositePlacement';\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nexport default function inner(data) {\n const placement = data.placement;\n const basePlacement = placement.split('-')[0];\n const { popper, reference } = data.offsets;\n const isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1;\n\n const subtractLength = ['top', 'left'].indexOf(basePlacement) === -1;\n\n popper[isHoriz ? 'left' : 'top'] =\n reference[basePlacement] -\n (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0);\n\n data.placement = getOppositePlacement(placement);\n data.offsets.popper = getClientRect(popper);\n\n return data;\n}\n","import isModifierRequired from '../utils/isModifierRequired';\nimport find from '../utils/find';\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nexport default function hide(data) {\n if (!isModifierRequired(data.instance.modifiers, 'hide', 'preventOverflow')) {\n return data;\n }\n\n const refRect = data.offsets.reference;\n const bound = find(\n data.instance.modifiers,\n modifier => modifier.name === 'preventOverflow'\n ).boundaries;\n\n if (\n refRect.bottom < bound.top ||\n refRect.left > bound.right ||\n refRect.top > bound.bottom ||\n refRect.right < bound.left\n ) {\n // Avoid unnecessary DOM access if visibility hasn't changed\n if (data.hide === true) {\n return data;\n }\n\n data.hide = true;\n data.attributes['x-out-of-boundaries'] = '';\n } else {\n // Avoid unnecessary DOM access if visibility hasn't changed\n if (data.hide === false) {\n return data;\n }\n\n data.hide = false;\n data.attributes['x-out-of-boundaries'] = false;\n }\n\n return data;\n}\n","/**\n * @function\n * @memberof Popper.Utils\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Boolean} shouldRound - If the offsets should be rounded at all\n * @returns {Object} The popper's position offsets rounded\n *\n * The tale of pixel-perfect positioning. It's still not 100% perfect, but as\n * good as it can be within reason.\n * Discussion here: https://github.com/FezVrasta/popper.js/pull/715\n *\n * Low DPI screens cause a popper to be blurry if not using full pixels (Safari\n * as well on High DPI screens).\n *\n * Firefox prefers no rounding for positioning and does not have blurriness on\n * high DPI screens.\n *\n * Only horizontal placement and left/right values need to be considered.\n */\nexport default function getRoundedOffsets(data, shouldRound) {\n const { popper, reference } = data.offsets;\n const { round, floor } = Math;\n const noRound = v => v;\n \n const referenceWidth = round(reference.width);\n const popperWidth = round(popper.width);\n \n const isVertical = ['left', 'right'].indexOf(data.placement) !== -1;\n const isVariation = data.placement.indexOf('-') !== -1;\n const sameWidthParity = referenceWidth % 2 === popperWidth % 2;\n const bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1;\n\n const horizontalToInteger = !shouldRound\n ? noRound\n : isVertical || isVariation || sameWidthParity\n ? round\n : floor;\n const verticalToInteger = !shouldRound ? noRound : round;\n\n return {\n left: horizontalToInteger(\n bothOddWidth && !isVariation && shouldRound\n ? popper.left - 1\n : popper.left\n ),\n top: verticalToInteger(popper.top),\n bottom: verticalToInteger(popper.bottom),\n right: horizontalToInteger(popper.right),\n };\n}\n","import setStyles from '../utils/setStyles';\nimport setAttributes from '../utils/setAttributes';\nimport getReferenceOffsets from '../utils/getReferenceOffsets';\nimport computeAutoPlacement from '../utils/computeAutoPlacement';\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} data.styles - List of style properties - values to apply to popper element\n * @argument {Object} data.attributes - List of attribute properties - values to apply to popper element\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The same data object\n */\nexport default function applyStyle(data) {\n // any property present in `data.styles` will be applied to the popper,\n // in this way we can make the 3rd party modifiers add custom styles to it\n // Be aware, modifiers could override the properties defined in the previous\n // lines of this modifier!\n setStyles(data.instance.popper, data.styles);\n\n // any property present in `data.attributes` will be applied to the popper,\n // they will be set as HTML attributes of the element\n setAttributes(data.instance.popper, data.attributes);\n\n // if arrowElement is defined and arrowStyles has some properties\n if (data.arrowElement && Object.keys(data.arrowStyles).length) {\n setStyles(data.arrowElement, data.arrowStyles);\n }\n\n return data;\n}\n\n/**\n * Set the x-placement attribute before everything else because it could be used\n * to add margins to the popper margins needs to be calculated to get the\n * correct popper offsets.\n * @method\n * @memberof Popper.modifiers\n * @param {HTMLElement} reference - The reference element used to position the popper\n * @param {HTMLElement} popper - The HTML element used as popper\n * @param {Object} options - Popper.js options\n */\nexport function applyStyleOnLoad(\n reference,\n popper,\n options,\n modifierOptions,\n state\n) {\n // compute reference element offsets\n const referenceOffsets = getReferenceOffsets(state, popper, reference, options.positionFixed);\n\n // compute auto placement, store placement inside the data object,\n // modifiers will be able to edit `placement` if needed\n // and refer to originalPlacement to know the original value\n const placement = computeAutoPlacement(\n options.placement,\n referenceOffsets,\n popper,\n reference,\n options.modifiers.flip.boundariesElement,\n options.modifiers.flip.padding\n );\n\n popper.setAttribute('x-placement', placement);\n\n // Apply `position` to popper before anything else because\n // without the position applied we can't guarantee correct computations\n setStyles(popper, { position: options.positionFixed ? 'fixed' : 'absolute' });\n\n return options;\n}\n","/**\n * Set the attributes to the given popper\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element - Element to apply the attributes to\n * @argument {Object} styles\n * Object with a list of properties and values which will be applied to the element\n */\nexport default function setAttributes(element, attributes) {\n Object.keys(attributes).forEach(function(prop) {\n const value = attributes[prop];\n if (value !== false) {\n element.setAttribute(prop, attributes[prop]);\n } else {\n element.removeAttribute(prop);\n }\n });\n}\n","// Utils\nimport debounce from './utils/debounce';\nimport isFunction from './utils/isFunction';\n\n// Methods\nimport update from './methods/update';\nimport destroy from './methods/destroy';\nimport enableEventListeners from './methods/enableEventListeners';\nimport disableEventListeners from './methods/disableEventListeners';\nimport Defaults from './methods/defaults';\nimport placements from './methods/placements';\n\nexport default class Popper {\n /**\n * Creates a new Popper.js instance.\n * @class Popper\n * @param {Element|referenceObject} reference - The reference element used to position the popper\n * @param {Element} popper - The HTML / XML element used as the popper\n * @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults)\n * @return {Object} instance - The generated Popper.js instance\n */\n constructor(reference, popper, options = {}) {\n // make update() debounced, so that it only runs at most once-per-tick\n this.update = debounce(this.update.bind(this));\n\n // with {} we create a new object with the options inside it\n this.options = { ...Popper.Defaults, ...options };\n\n // init state\n this.state = {\n isDestroyed: false,\n isCreated: false,\n scrollParents: [],\n };\n\n // get reference and popper elements (allow jQuery wrappers)\n this.reference = reference && reference.jquery ? reference[0] : reference;\n this.popper = popper && popper.jquery ? popper[0] : popper;\n\n // Deep merge modifiers options\n this.options.modifiers = {};\n Object.keys({\n ...Popper.Defaults.modifiers,\n ...options.modifiers,\n }).forEach(name => {\n this.options.modifiers[name] = {\n // If it's a built-in modifier, use it as base\n ...(Popper.Defaults.modifiers[name] || {}),\n // If there are custom options, override and merge with default ones\n ...(options.modifiers ? options.modifiers[name] : {}),\n };\n });\n\n // Refactoring modifiers' list (Object => Array)\n this.modifiers = Object.keys(this.options.modifiers)\n .map(name => ({\n name,\n ...this.options.modifiers[name],\n }))\n // sort the modifiers by order\n .sort((a, b) => a.order - b.order);\n\n // modifiers have the ability to execute arbitrary code when Popper.js get inited\n // such code is executed in the same order of its modifier\n // they could add new properties to their options configuration\n // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`!\n this.modifiers.forEach(modifierOptions => {\n if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) {\n modifierOptions.onLoad(\n this.reference,\n this.popper,\n this.options,\n modifierOptions,\n this.state\n );\n }\n });\n\n // fire the first update to position the popper in the right place\n this.update();\n\n const eventsEnabled = this.options.eventsEnabled;\n if (eventsEnabled) {\n // setup event listeners, they will take care of update the position in specific situations\n this.enableEventListeners();\n }\n\n this.state.eventsEnabled = eventsEnabled;\n }\n\n // We can't use class properties because they don't get listed in the\n // class prototype and break stuff like Sinon stubs\n update() {\n return update.call(this);\n }\n destroy() {\n return destroy.call(this);\n }\n enableEventListeners() {\n return enableEventListeners.call(this);\n }\n disableEventListeners() {\n return disableEventListeners.call(this);\n }\n\n /**\n * Schedules an update. It will run on the next UI update available.\n * @method scheduleUpdate\n * @memberof Popper\n */\n scheduleUpdate = () => requestAnimationFrame(this.update);\n\n /**\n * Collection of utilities useful when writing custom modifiers.\n * Starting from version 1.7, this method is available only if you\n * include `popper-utils.js` before `popper.js`.\n *\n * **DEPRECATION**: This way to access PopperUtils is deprecated\n * and will be removed in v2! Use the PopperUtils module directly instead.\n * Due to the high instability of the methods contained in Utils, we can't\n * guarantee them to follow semver. Use them at your own risk!\n * @static\n * @private\n * @type {Object}\n * @deprecated since version 1.8\n * @member Utils\n * @memberof Popper\n */\n static Utils = (typeof window !== 'undefined' ? window : global).PopperUtils;\n\n static placements = placements;\n\n static Defaults = Defaults;\n}\n\n/**\n * The `referenceObject` is an object that provides an interface compatible with Popper.js\n * and lets you use it as replacement of a real DOM node.
\n * You can use this method to position a popper relatively to a set of coordinates\n * in case you don't have a DOM node to use as reference.\n *\n * ```\n * new Popper(referenceObject, popperNode);\n * ```\n *\n * NB: This feature isn't supported in Internet Explorer 10.\n * @name referenceObject\n * @property {Function} data.getBoundingClientRect\n * A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method.\n * @property {number} data.clientWidth\n * An ES6 getter that will return the width of the virtual reference element.\n * @property {number} data.clientHeight\n * An ES6 getter that will return the height of the virtual reference element.\n */\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z\"\n}), 'Delete');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z\"\n}), 'Add');\n\nexports.default = _default;","var WORKER_PATH = './recorderWorker.js';\n\nvar Recorder = function(source, cfg){\n var config = cfg || {};\n var bufferLen = config.bufferLen || 4096;\n this.context = source.context;\n this.node = (this.context.createScriptProcessor ||\n this.context.createJavaScriptNode).call(this.context,\n bufferLen, 2, 2);\n var worker = new Worker(WORKER_PATH);\n worker.onmessage = function(e){\n var blob = e.data;\n currCallback(blob);\n }\n\n worker.postMessage({\n command: 'init',\n config: {\n sampleRate: this.context.sampleRate\n }\n });\n var recording = false,\n currCallback;\n\n this.node.onaudioprocess = function(e){\n if (!recording) return;\n worker.postMessage({\n command: 'record',\n buffer: [\n e.inputBuffer.getChannelData(0),\n e.inputBuffer.getChannelData(1)\n ]\n });\n }\n\n this.configure = function(cfg){\n for (var prop in cfg){\n if (cfg.hasOwnProperty(prop)){\n config[prop] = cfg[prop];\n }\n }\n }\n\n this.record = function(){\n recording = true;\n }\n\n this.stop = function(){\n recording = false;\n }\n\n this.clear = function(){\n worker.postMessage({ command: 'clear' });\n }\n\n this.getBuffer = function(cb) {\n currCallback = cb || config.callback;\n worker.postMessage({ command: 'getBuffer' })\n }\n\n this.exportWAV = function(cb, type){\n currCallback = cb || config.callback;\n type = type || config.type || 'audio/wav';\n if (!currCallback) throw new Error('Callback not set');\n worker.postMessage({\n command: 'exportWAV',\n type: type\n });\n }\n\n source.connect(this.node);\n this.node.connect(this.context.destination); //this should not be necessary\n};\n\nRecorder.forceDownload = function(blob, filename){\n var url = (window.URL || window.webkitURL).createObjectURL(blob);\n var link = window.document.createElement('a');\n link.href = url;\n link.download = filename || 'output.wav';\n var click = document.createEvent(\"Event\");\n click.initEvent(\"click\", true, true);\n link.dispatchEvent(click);\n}\n\nmodule.exports = Recorder;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\n// Sorted ASC by size. That's important.\n// It can't be configured as it's used statically for propTypes.\nexport var keys = ['xs', 'sm', 'md', 'lg', 'xl']; // Keep in mind that @media is inclusive by the CSS specification.\n\nexport default function createBreakpoints(breakpoints) {\n var _breakpoints$values = breakpoints.values,\n values = _breakpoints$values === void 0 ? {\n xs: 0,\n sm: 600,\n md: 960,\n lg: 1280,\n xl: 1920\n } : _breakpoints$values,\n _breakpoints$unit = breakpoints.unit,\n unit = _breakpoints$unit === void 0 ? 'px' : _breakpoints$unit,\n _breakpoints$step = breakpoints.step,\n step = _breakpoints$step === void 0 ? 5 : _breakpoints$step,\n other = _objectWithoutProperties(breakpoints, [\"values\", \"unit\", \"step\"]);\n\n function up(key) {\n var value = typeof values[key] === 'number' ? values[key] : key;\n return \"@media (min-width:\".concat(value).concat(unit, \")\");\n }\n\n function down(key) {\n var endIndex = keys.indexOf(key) + 1;\n var upperbound = values[keys[endIndex]];\n\n if (endIndex === keys.length) {\n // xl down applies to all sizes\n return up('xs');\n }\n\n var value = typeof upperbound === 'number' && endIndex > 0 ? upperbound : key;\n return \"@media (max-width:\".concat(value - step / 100).concat(unit, \")\");\n }\n\n function between(start, end) {\n var endIndex = keys.indexOf(end);\n\n if (endIndex === keys.length - 1) {\n return up(start);\n }\n\n return \"@media (min-width:\".concat(typeof values[start] === 'number' ? values[start] : start).concat(unit, \") and \") + \"(max-width:\".concat((endIndex !== -1 && typeof values[keys[endIndex + 1]] === 'number' ? values[keys[endIndex + 1]] : end) - step / 100).concat(unit, \")\");\n }\n\n function only(key) {\n return between(key, key);\n }\n\n function width(key) {\n return values[key];\n }\n\n return _extends({\n keys: keys,\n values: values,\n up: up,\n down: down,\n between: between,\n only: only,\n width: width\n }, other);\n}","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nexport default function createMixins(breakpoints, spacing, mixins) {\n var _toolbar;\n\n return _extends({\n gutters: function gutters() {\n var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n // To deprecate in v4.1\n // warning(\n // false,\n // [\n // 'Material-UI: Theme.mixins.gutters() is deprecated.',\n // 'You can use the source of the mixin directly:',\n // `\n // paddingLeft: theme.spacing(2),\n // paddingRight: theme.spacing(2),\n // [theme.breakpoints.up('sm')]: {\n // paddingLeft: theme.spacing(3),\n // paddingRight: theme.spacing(3),\n // },\n // `,\n // ].join('\\n'),\n // );\n return _extends({\n paddingLeft: spacing(2),\n paddingRight: spacing(2)\n }, styles, _defineProperty({}, breakpoints.up('sm'), _extends({\n paddingLeft: spacing(3),\n paddingRight: spacing(3)\n }, styles[breakpoints.up('sm')])));\n },\n toolbar: (_toolbar = {\n minHeight: 56\n }, _defineProperty(_toolbar, \"\".concat(breakpoints.up('xs'), \" and (orientation: landscape)\"), {\n minHeight: 48\n }), _defineProperty(_toolbar, breakpoints.up('sm'), {\n minHeight: 64\n }), _toolbar)\n }, mixins);\n}","var common = {\n black: '#000',\n white: '#fff'\n};\nexport default common;","var grey = {\n 50: '#fafafa',\n 100: '#f5f5f5',\n 200: '#eeeeee',\n 300: '#e0e0e0',\n 400: '#bdbdbd',\n 500: '#9e9e9e',\n 600: '#757575',\n 700: '#616161',\n 800: '#424242',\n 900: '#212121',\n A100: '#d5d5d5',\n A200: '#aaaaaa',\n A400: '#303030',\n A700: '#616161'\n};\nexport default grey;","var indigo = {\n 50: '#e8eaf6',\n 100: '#c5cae9',\n 200: '#9fa8da',\n 300: '#7986cb',\n 400: '#5c6bc0',\n 500: '#3f51b5',\n 600: '#3949ab',\n 700: '#303f9f',\n 800: '#283593',\n 900: '#1a237e',\n A100: '#8c9eff',\n A200: '#536dfe',\n A400: '#3d5afe',\n A700: '#304ffe'\n};\nexport default indigo;","var pink = {\n 50: '#fce4ec',\n 100: '#f8bbd0',\n 200: '#f48fb1',\n 300: '#f06292',\n 400: '#ec407a',\n 500: '#e91e63',\n 600: '#d81b60',\n 700: '#c2185b',\n 800: '#ad1457',\n 900: '#880e4f',\n A100: '#ff80ab',\n A200: '#ff4081',\n A400: '#f50057',\n A700: '#c51162'\n};\nexport default pink;","var red = {\n 50: '#ffebee',\n 100: '#ffcdd2',\n 200: '#ef9a9a',\n 300: '#e57373',\n 400: '#ef5350',\n 500: '#f44336',\n 600: '#e53935',\n 700: '#d32f2f',\n 800: '#c62828',\n 900: '#b71c1c',\n A100: '#ff8a80',\n A200: '#ff5252',\n A400: '#ff1744',\n A700: '#d50000'\n};\nexport default red;","var orange = {\n 50: '#fff3e0',\n 100: '#ffe0b2',\n 200: '#ffcc80',\n 300: '#ffb74d',\n 400: '#ffa726',\n 500: '#ff9800',\n 600: '#fb8c00',\n 700: '#f57c00',\n 800: '#ef6c00',\n 900: '#e65100',\n A100: '#ffd180',\n A200: '#ffab40',\n A400: '#ff9100',\n A700: '#ff6d00'\n};\nexport default orange;","var blue = {\n 50: '#e3f2fd',\n 100: '#bbdefb',\n 200: '#90caf9',\n 300: '#64b5f6',\n 400: '#42a5f5',\n 500: '#2196f3',\n 600: '#1e88e5',\n 700: '#1976d2',\n 800: '#1565c0',\n 900: '#0d47a1',\n A100: '#82b1ff',\n A200: '#448aff',\n A400: '#2979ff',\n A700: '#2962ff'\n};\nexport default blue;","var green = {\n 50: '#e8f5e9',\n 100: '#c8e6c9',\n 200: '#a5d6a7',\n 300: '#81c784',\n 400: '#66bb6a',\n 500: '#4caf50',\n 600: '#43a047',\n 700: '#388e3c',\n 800: '#2e7d32',\n 900: '#1b5e20',\n A100: '#b9f6ca',\n A200: '#69f0ae',\n A400: '#00e676',\n A700: '#00c853'\n};\nexport default green;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport { formatMuiErrorMessage as _formatMuiErrorMessage } from \"@material-ui/utils\";\nimport { deepmerge } from '@material-ui/utils';\nimport common from '../colors/common';\nimport grey from '../colors/grey';\nimport indigo from '../colors/indigo';\nimport pink from '../colors/pink';\nimport red from '../colors/red';\nimport orange from '../colors/orange';\nimport blue from '../colors/blue';\nimport green from '../colors/green';\nimport { darken, getContrastRatio, lighten } from './colorManipulator';\nexport var light = {\n // The colors used to style the text.\n text: {\n // The most important text.\n primary: 'rgba(0, 0, 0, 0.87)',\n // Secondary text.\n secondary: 'rgba(0, 0, 0, 0.54)',\n // Disabled text have even lower visual prominence.\n disabled: 'rgba(0, 0, 0, 0.38)',\n // Text hints.\n hint: 'rgba(0, 0, 0, 0.38)'\n },\n // The color used to divide different elements.\n divider: 'rgba(0, 0, 0, 0.12)',\n // The background colors used to style the surfaces.\n // Consistency between these values is important.\n background: {\n paper: common.white,\n default: grey[50]\n },\n // The colors used to style the action elements.\n action: {\n // The color of an active action like an icon button.\n active: 'rgba(0, 0, 0, 0.54)',\n // The color of an hovered action.\n hover: 'rgba(0, 0, 0, 0.04)',\n hoverOpacity: 0.04,\n // The color of a selected action.\n selected: 'rgba(0, 0, 0, 0.08)',\n selectedOpacity: 0.08,\n // The color of a disabled action.\n disabled: 'rgba(0, 0, 0, 0.26)',\n // The background color of a disabled action.\n disabledBackground: 'rgba(0, 0, 0, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(0, 0, 0, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.12\n }\n};\nexport var dark = {\n text: {\n primary: common.white,\n secondary: 'rgba(255, 255, 255, 0.7)',\n disabled: 'rgba(255, 255, 255, 0.5)',\n hint: 'rgba(255, 255, 255, 0.5)',\n icon: 'rgba(255, 255, 255, 0.5)'\n },\n divider: 'rgba(255, 255, 255, 0.12)',\n background: {\n paper: grey[800],\n default: '#303030'\n },\n action: {\n active: common.white,\n hover: 'rgba(255, 255, 255, 0.08)',\n hoverOpacity: 0.08,\n selected: 'rgba(255, 255, 255, 0.16)',\n selectedOpacity: 0.16,\n disabled: 'rgba(255, 255, 255, 0.3)',\n disabledBackground: 'rgba(255, 255, 255, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(255, 255, 255, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.24\n }\n};\n\nfunction addLightOrDark(intent, direction, shade, tonalOffset) {\n var tonalOffsetLight = tonalOffset.light || tonalOffset;\n var tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;\n\n if (!intent[direction]) {\n if (intent.hasOwnProperty(shade)) {\n intent[direction] = intent[shade];\n } else if (direction === 'light') {\n intent.light = lighten(intent.main, tonalOffsetLight);\n } else if (direction === 'dark') {\n intent.dark = darken(intent.main, tonalOffsetDark);\n }\n }\n}\n\nexport default function createPalette(palette) {\n var _palette$primary = palette.primary,\n primary = _palette$primary === void 0 ? {\n light: indigo[300],\n main: indigo[500],\n dark: indigo[700]\n } : _palette$primary,\n _palette$secondary = palette.secondary,\n secondary = _palette$secondary === void 0 ? {\n light: pink.A200,\n main: pink.A400,\n dark: pink.A700\n } : _palette$secondary,\n _palette$error = palette.error,\n error = _palette$error === void 0 ? {\n light: red[300],\n main: red[500],\n dark: red[700]\n } : _palette$error,\n _palette$warning = palette.warning,\n warning = _palette$warning === void 0 ? {\n light: orange[300],\n main: orange[500],\n dark: orange[700]\n } : _palette$warning,\n _palette$info = palette.info,\n info = _palette$info === void 0 ? {\n light: blue[300],\n main: blue[500],\n dark: blue[700]\n } : _palette$info,\n _palette$success = palette.success,\n success = _palette$success === void 0 ? {\n light: green[300],\n main: green[500],\n dark: green[700]\n } : _palette$success,\n _palette$type = palette.type,\n type = _palette$type === void 0 ? 'light' : _palette$type,\n _palette$contrastThre = palette.contrastThreshold,\n contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre,\n _palette$tonalOffset = palette.tonalOffset,\n tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset,\n other = _objectWithoutProperties(palette, [\"primary\", \"secondary\", \"error\", \"warning\", \"info\", \"success\", \"type\", \"contrastThreshold\", \"tonalOffset\"]); // Use the same logic as\n // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59\n // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54\n\n\n function getContrastText(background) {\n var contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;\n\n if (process.env.NODE_ENV !== 'production') {\n var contrast = getContrastRatio(background, contrastText);\n\n if (contrast < 3) {\n console.error([\"Material-UI: The contrast ratio of \".concat(contrast, \":1 for \").concat(contrastText, \" on \").concat(background), 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\\n'));\n }\n }\n\n return contrastText;\n }\n\n var augmentColor = function augmentColor(color) {\n var mainShade = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;\n var lightShade = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 300;\n var darkShade = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 700;\n color = _extends({}, color);\n\n if (!color.main && color[mainShade]) {\n color.main = color[mainShade];\n }\n\n if (!color.main) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? \"Material-UI: The color provided to augmentColor(color) is invalid.\\nThe color object needs to have a `main` property or a `\".concat(mainShade, \"` property.\") : _formatMuiErrorMessage(4, mainShade));\n }\n\n if (typeof color.main !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? \"Material-UI: The color provided to augmentColor(color) is invalid.\\n`color.main` should be a string, but `\".concat(JSON.stringify(color.main), \"` was provided instead.\\n\\nDid you intend to use one of the following approaches?\\n\\nimport {\\xA0green } from \\\"@material-ui/core/colors\\\";\\n\\nconst theme1 = createMuiTheme({ palette: {\\n primary: green,\\n} });\\n\\nconst theme2 = createMuiTheme({ palette: {\\n primary: { main: green[500] },\\n} });\") : _formatMuiErrorMessage(5, JSON.stringify(color.main)));\n }\n\n addLightOrDark(color, 'light', lightShade, tonalOffset);\n addLightOrDark(color, 'dark', darkShade, tonalOffset);\n\n if (!color.contrastText) {\n color.contrastText = getContrastText(color.main);\n }\n\n return color;\n };\n\n var types = {\n dark: dark,\n light: light\n };\n\n if (process.env.NODE_ENV !== 'production') {\n if (!types[type]) {\n console.error(\"Material-UI: The palette type `\".concat(type, \"` is not supported.\"));\n }\n }\n\n var paletteOutput = deepmerge(_extends({\n // A collection of common colors.\n common: common,\n // The palette type, can be light or dark.\n type: type,\n // The colors used to represent primary interface elements for a user.\n primary: augmentColor(primary),\n // The colors used to represent secondary interface elements for a user.\n secondary: augmentColor(secondary, 'A400', 'A200', 'A700'),\n // The colors used to represent interface elements that the user should be made aware of.\n error: augmentColor(error),\n // The colors used to represent potentially dangerous actions or important messages.\n warning: augmentColor(warning),\n // The colors used to present information to the user that is neutral and not necessarily important.\n info: augmentColor(info),\n // The colors used to indicate the successful completion of an action that user triggered.\n success: augmentColor(success),\n // The grey colors.\n grey: grey,\n // Used by `getContrastText()` to maximize the contrast between\n // the background and the text.\n contrastThreshold: contrastThreshold,\n // Takes a background color and returns the text color that maximizes the contrast.\n getContrastText: getContrastText,\n // Generate a rich color object.\n augmentColor: augmentColor,\n // Used by the functions below to shift a color's luminance by approximately\n // two indexes within its tonal palette.\n // E.g., shift from Red 500 to Red 300 or Red 700.\n tonalOffset: tonalOffset\n }, types[type]), other);\n return paletteOutput;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport { deepmerge } from '@material-ui/utils';\n\nfunction round(value) {\n return Math.round(value * 1e5) / 1e5;\n}\n\nvar caseAllCaps = {\n textTransform: 'uppercase'\n};\nvar defaultFontFamily = '\"Roboto\", \"Helvetica\", \"Arial\", sans-serif';\n/**\n * @see @link{https://material.io/design/typography/the-type-system.html}\n * @see @link{https://material.io/design/typography/understanding-typography.html}\n */\n\nexport default function createTypography(palette, typography) {\n var _ref = typeof typography === 'function' ? typography(palette) : typography,\n _ref$fontFamily = _ref.fontFamily,\n fontFamily = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily,\n _ref$fontSize = _ref.fontSize,\n fontSize = _ref$fontSize === void 0 ? 14 : _ref$fontSize,\n _ref$fontWeightLight = _ref.fontWeightLight,\n fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight,\n _ref$fontWeightRegula = _ref.fontWeightRegular,\n fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula,\n _ref$fontWeightMedium = _ref.fontWeightMedium,\n fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium,\n _ref$fontWeightBold = _ref.fontWeightBold,\n fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold,\n _ref$htmlFontSize = _ref.htmlFontSize,\n htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize,\n allVariants = _ref.allVariants,\n pxToRem2 = _ref.pxToRem,\n other = _objectWithoutProperties(_ref, [\"fontFamily\", \"fontSize\", \"fontWeightLight\", \"fontWeightRegular\", \"fontWeightMedium\", \"fontWeightBold\", \"htmlFontSize\", \"allVariants\", \"pxToRem\"]);\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof fontSize !== 'number') {\n console.error('Material-UI: `fontSize` is required to be a number.');\n }\n\n if (typeof htmlFontSize !== 'number') {\n console.error('Material-UI: `htmlFontSize` is required to be a number.');\n }\n }\n\n var coef = fontSize / 14;\n\n var pxToRem = pxToRem2 || function (size) {\n return \"\".concat(size / htmlFontSize * coef, \"rem\");\n };\n\n var buildVariant = function buildVariant(fontWeight, size, lineHeight, letterSpacing, casing) {\n return _extends({\n fontFamily: fontFamily,\n fontWeight: fontWeight,\n fontSize: pxToRem(size),\n // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/\n lineHeight: lineHeight\n }, fontFamily === defaultFontFamily ? {\n letterSpacing: \"\".concat(round(letterSpacing / size), \"em\")\n } : {}, casing, allVariants);\n };\n\n var variants = {\n h1: buildVariant(fontWeightLight, 96, 1.167, -1.5),\n h2: buildVariant(fontWeightLight, 60, 1.2, -0.5),\n h3: buildVariant(fontWeightRegular, 48, 1.167, 0),\n h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25),\n h5: buildVariant(fontWeightRegular, 24, 1.334, 0),\n h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15),\n subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15),\n subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1),\n body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15),\n body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15),\n button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps),\n caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),\n overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps)\n };\n return deepmerge(_extends({\n htmlFontSize: htmlFontSize,\n pxToRem: pxToRem,\n round: round,\n // TODO v5: remove\n fontFamily: fontFamily,\n fontSize: fontSize,\n fontWeightLight: fontWeightLight,\n fontWeightRegular: fontWeightRegular,\n fontWeightMedium: fontWeightMedium,\n fontWeightBold: fontWeightBold\n }, variants), other, {\n clone: false // No need to clone deep\n\n });\n}","var shadowKeyUmbraOpacity = 0.2;\nvar shadowKeyPenumbraOpacity = 0.14;\nvar shadowAmbientShadowOpacity = 0.12;\n\nfunction createShadow() {\n return [\"\".concat(arguments.length <= 0 ? undefined : arguments[0], \"px \").concat(arguments.length <= 1 ? undefined : arguments[1], \"px \").concat(arguments.length <= 2 ? undefined : arguments[2], \"px \").concat(arguments.length <= 3 ? undefined : arguments[3], \"px rgba(0,0,0,\").concat(shadowKeyUmbraOpacity, \")\"), \"\".concat(arguments.length <= 4 ? undefined : arguments[4], \"px \").concat(arguments.length <= 5 ? undefined : arguments[5], \"px \").concat(arguments.length <= 6 ? undefined : arguments[6], \"px \").concat(arguments.length <= 7 ? undefined : arguments[7], \"px rgba(0,0,0,\").concat(shadowKeyPenumbraOpacity, \")\"), \"\".concat(arguments.length <= 8 ? undefined : arguments[8], \"px \").concat(arguments.length <= 9 ? undefined : arguments[9], \"px \").concat(arguments.length <= 10 ? undefined : arguments[10], \"px \").concat(arguments.length <= 11 ? undefined : arguments[11], \"px rgba(0,0,0,\").concat(shadowAmbientShadowOpacity, \")\")].join(',');\n} // Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss\n\n\nvar shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];\nexport default shadows;","var shape = {\n borderRadius: 4\n};\nexport default shape;","import { createUnarySpacing } from '@material-ui/system';\nvar warnOnce;\nexport default function createSpacing() {\n var spacingInput = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 8;\n\n // Already transformed.\n if (spacingInput.mui) {\n return spacingInput;\n } // Material Design layouts are visually balanced. Most measurements align to an 8dp grid applied, which aligns both spacing and the overall layout.\n // Smaller components, such as icons and type, can align to a 4dp grid.\n // https://material.io/design/layout/understanding-layout.html#usage\n\n\n var transform = createUnarySpacing({\n spacing: spacingInput\n });\n\n var spacing = function spacing() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (!(args.length <= 4)) {\n console.error(\"Material-UI: Too many arguments provided, expected between 0 and 4, got \".concat(args.length));\n }\n }\n\n if (args.length === 0) {\n return transform(1);\n }\n\n if (args.length === 1) {\n return transform(args[0]);\n }\n\n return args.map(function (argument) {\n if (typeof argument === 'string') {\n return argument;\n }\n\n var output = transform(argument);\n return typeof output === 'number' ? \"\".concat(output, \"px\") : output;\n }).join(' ');\n }; // Backward compatibility, to remove in v5.\n\n\n Object.defineProperty(spacing, 'unit', {\n get: function get() {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnOnce || process.env.NODE_ENV === 'test') {\n console.error(['Material-UI: theme.spacing.unit usage has been deprecated.', 'It will be removed in v5.', 'You can replace `theme.spacing.unit * y` with `theme.spacing(y)`.', '', 'You can use the `https://github.com/mui-org/material-ui/tree/master/packages/material-ui-codemod/README.md#theme-spacing-api` migration helper to make the process smoother.'].join('\\n'));\n }\n\n warnOnce = true;\n }\n\n return spacingInput;\n }\n });\n spacing.mui = true;\n return spacing;\n}","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport { deepmerge } from '@material-ui/utils';\nimport createBreakpoints from './createBreakpoints';\nimport createMixins from './createMixins';\nimport createPalette from './createPalette';\nimport createTypography from './createTypography';\nimport shadows from './shadows';\nimport shape from './shape';\nimport createSpacing from './createSpacing';\nimport transitions from './transitions';\nimport zIndex from './zIndex';\n\nfunction createMuiTheme() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var _options$breakpoints = options.breakpoints,\n breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints,\n _options$mixins = options.mixins,\n mixinsInput = _options$mixins === void 0 ? {} : _options$mixins,\n _options$palette = options.palette,\n paletteInput = _options$palette === void 0 ? {} : _options$palette,\n spacingInput = options.spacing,\n _options$typography = options.typography,\n typographyInput = _options$typography === void 0 ? {} : _options$typography,\n other = _objectWithoutProperties(options, [\"breakpoints\", \"mixins\", \"palette\", \"spacing\", \"typography\"]);\n\n var palette = createPalette(paletteInput);\n var breakpoints = createBreakpoints(breakpointsInput);\n var spacing = createSpacing(spacingInput);\n var muiTheme = deepmerge({\n breakpoints: breakpoints,\n direction: 'ltr',\n mixins: createMixins(breakpoints, spacing, mixinsInput),\n overrides: {},\n // Inject custom styles\n palette: palette,\n props: {},\n // Provide default props\n shadows: shadows,\n typography: createTypography(palette, typographyInput),\n spacing: spacing,\n shape: shape,\n transitions: transitions,\n zIndex: zIndex\n }, other);\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n muiTheme = args.reduce(function (acc, argument) {\n return deepmerge(acc, argument);\n }, muiTheme);\n\n if (process.env.NODE_ENV !== 'production') {\n var pseudoClasses = ['checked', 'disabled', 'error', 'focused', 'focusVisible', 'required', 'expanded', 'selected'];\n\n var traverse = function traverse(node, parentKey) {\n var depth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n var key; // eslint-disable-next-line guard-for-in, no-restricted-syntax\n\n for (key in node) {\n var child = node[key];\n\n if (depth === 1) {\n if (key.indexOf('Mui') === 0 && child) {\n traverse(child, key, depth + 1);\n }\n } else if (pseudoClasses.indexOf(key) !== -1 && Object.keys(child).length > 0) {\n if (process.env.NODE_ENV !== 'production') {\n console.error([\"Material-UI: The `\".concat(parentKey, \"` component increases \") + \"the CSS specificity of the `\".concat(key, \"` internal state.\"), 'You can not override it like this: ', JSON.stringify(node, null, 2), '', 'Instead, you need to use the $ruleName syntax:', JSON.stringify({\n root: _defineProperty({}, \"&$\".concat(key), child)\n }, null, 2), '', 'https://material-ui.com/r/pseudo-classes-guide'].join('\\n'));\n } // Remove the style to prevent global conflicts.\n\n\n node[key] = {};\n }\n }\n };\n\n traverse(muiTheme.overrides);\n }\n\n return muiTheme;\n}\n\nexport default createMuiTheme;","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n","export var COMMON_MIME_TYPES = new Map([\n ['avi', 'video/avi'],\n ['gif', 'image/gif'],\n ['ico', 'image/x-icon'],\n ['jpeg', 'image/jpeg'],\n ['jpg', 'image/jpeg'],\n ['mkv', 'video/x-matroska'],\n ['mov', 'video/quicktime'],\n ['mp4', 'video/mp4'],\n ['pdf', 'application/pdf'],\n ['png', 'image/png'],\n ['zip', 'application/zip'],\n ['doc', 'application/msword'],\n ['docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document']\n]);\nexport function toFileWithPath(file, path) {\n var f = withMimeType(file);\n if (typeof f.path !== 'string') { // on electron, path is already set to the absolute path\n var webkitRelativePath = file.webkitRelativePath;\n Object.defineProperty(f, 'path', {\n value: typeof path === 'string'\n ? path\n // If is set,\n // the File will have a {webkitRelativePath} property\n // https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory\n : typeof webkitRelativePath === 'string' && webkitRelativePath.length > 0\n ? webkitRelativePath\n : file.name,\n writable: false,\n configurable: false,\n enumerable: true\n });\n }\n return f;\n}\nfunction withMimeType(file) {\n var name = file.name;\n var hasExtension = name && name.lastIndexOf('.') !== -1;\n if (hasExtension && !file.type) {\n var ext = name.split('.')\n .pop().toLowerCase();\n var type = COMMON_MIME_TYPES.get(ext);\n if (type) {\n Object.defineProperty(file, 'type', {\n value: type,\n writable: false,\n configurable: false,\n enumerable: true\n });\n }\n }\n return file;\n}\n//# sourceMappingURL=file.js.map","import * as tslib_1 from \"tslib\";\nimport { toFileWithPath } from './file';\nvar FILES_TO_IGNORE = [\n // Thumbnail cache files for macOS and Windows\n '.DS_Store',\n 'Thumbs.db' // Windows\n];\n/**\n * Convert a DragEvent's DataTrasfer object to a list of File objects\n * NOTE: If some of the items are folders,\n * everything will be flattened and placed in the same list but the paths will be kept as a {path} property.\n * @param evt\n */\nexport function fromEvent(evt) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n return tslib_1.__generator(this, function (_a) {\n return [2 /*return*/, isDragEvt(evt) && evt.dataTransfer\n ? getDataTransferFiles(evt.dataTransfer, evt.type)\n : getInputFiles(evt)];\n });\n });\n}\nfunction isDragEvt(value) {\n return !!value.dataTransfer;\n}\nfunction getInputFiles(evt) {\n var files = isInput(evt.target)\n ? evt.target.files\n ? fromList(evt.target.files)\n : []\n : [];\n return files.map(function (file) { return toFileWithPath(file); });\n}\nfunction isInput(value) {\n return value !== null;\n}\nfunction getDataTransferFiles(dt, type) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var items, files;\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!dt.items) return [3 /*break*/, 2];\n items = fromList(dt.items)\n .filter(function (item) { return item.kind === 'file'; });\n // According to https://html.spec.whatwg.org/multipage/dnd.html#dndevents,\n // only 'dragstart' and 'drop' has access to the data (source node)\n if (type !== 'drop') {\n return [2 /*return*/, items];\n }\n return [4 /*yield*/, Promise.all(items.map(toFilePromises))];\n case 1:\n files = _a.sent();\n return [2 /*return*/, noIgnoredFiles(flatten(files))];\n case 2: return [2 /*return*/, noIgnoredFiles(fromList(dt.files)\n .map(function (file) { return toFileWithPath(file); }))];\n }\n });\n });\n}\nfunction noIgnoredFiles(files) {\n return files.filter(function (file) { return FILES_TO_IGNORE.indexOf(file.name) === -1; });\n}\n// IE11 does not support Array.from()\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from#Browser_compatibility\n// https://developer.mozilla.org/en-US/docs/Web/API/FileList\n// https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList\nfunction fromList(items) {\n var files = [];\n // tslint:disable: prefer-for-of\n for (var i = 0; i < items.length; i++) {\n var file = items[i];\n files.push(file);\n }\n return files;\n}\n// https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem\nfunction toFilePromises(item) {\n if (typeof item.webkitGetAsEntry !== 'function') {\n return fromDataTransferItem(item);\n }\n var entry = item.webkitGetAsEntry();\n // Safari supports dropping an image node from a different window and can be retrieved using\n // the DataTransferItem.getAsFile() API\n // NOTE: FileSystemEntry.file() throws if trying to get the file\n if (entry && entry.isDirectory) {\n return fromDirEntry(entry);\n }\n return fromDataTransferItem(item);\n}\nfunction flatten(items) {\n return items.reduce(function (acc, files) { return tslib_1.__spread(acc, (Array.isArray(files) ? flatten(files) : [files])); }, []);\n}\nfunction fromDataTransferItem(item) {\n var file = item.getAsFile();\n if (!file) {\n return Promise.reject(item + \" is not a File\");\n }\n var fwp = toFileWithPath(file);\n return Promise.resolve(fwp);\n}\n// https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry\nfunction fromEntry(entry) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n return tslib_1.__generator(this, function (_a) {\n return [2 /*return*/, entry.isDirectory ? fromDirEntry(entry) : fromFileEntry(entry)];\n });\n });\n}\n// https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry\nfunction fromDirEntry(entry) {\n var reader = entry.createReader();\n return new Promise(function (resolve, reject) {\n var entries = [];\n function readEntries() {\n var _this = this;\n // https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/createReader\n // https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries\n reader.readEntries(function (batch) { return tslib_1.__awaiter(_this, void 0, void 0, function () {\n var files, err_1, items;\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!!batch.length) return [3 /*break*/, 5];\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, Promise.all(entries)];\n case 2:\n files = _a.sent();\n resolve(files);\n return [3 /*break*/, 4];\n case 3:\n err_1 = _a.sent();\n reject(err_1);\n return [3 /*break*/, 4];\n case 4: return [3 /*break*/, 6];\n case 5:\n items = Promise.all(batch.map(fromEntry));\n entries.push(items);\n // Continue reading\n readEntries();\n _a.label = 6;\n case 6: return [2 /*return*/];\n }\n });\n }); }, function (err) {\n reject(err);\n });\n }\n readEntries();\n });\n}\n// https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry\nfunction fromFileEntry(entry) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n return tslib_1.__generator(this, function (_a) {\n return [2 /*return*/, new Promise(function (resolve, reject) {\n entry.file(function (file) {\n var fwp = toFileWithPath(file, entry.fullPath);\n resolve(fwp);\n }, function (err) {\n reject(err);\n });\n })];\n });\n });\n}\n//# sourceMappingURL=file-selector.js.map","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport accepts from 'attr-accept'; // Firefox versions prior to 53 return a bogus MIME type for every file drag, so dragovers with\n// that MIME type will always be accepted\n\nexport function fileAccepted(file, accept) {\n return file.type === 'application/x-moz-file' || accepts(file, accept);\n}\nexport function fileMatchSize(file, minSize, maxSize) {\n if (isDefined(file.size)) {\n if (isDefined(minSize) && isDefined(maxSize)) return file.size >= minSize && file.size <= maxSize;else if (isDefined(minSize)) return file.size >= minSize;else if (isDefined(maxSize)) return file.size <= maxSize;\n }\n\n return true;\n}\n\nfunction isDefined(value) {\n return value !== undefined && value !== null;\n}\n\nexport function allFilesAccepted(_ref) {\n var files = _ref.files,\n accept = _ref.accept,\n minSize = _ref.minSize,\n maxSize = _ref.maxSize,\n multiple = _ref.multiple;\n\n if (!multiple && files.length > 1) {\n return false;\n }\n\n return files.every(function (file) {\n return fileAccepted(file, accept) && fileMatchSize(file, minSize, maxSize);\n });\n} // React's synthetic events has event.isPropagationStopped,\n// but to remain compatibility with other libs (Preact) fall back\n// to check event.cancelBubble\n\nexport function isPropagationStopped(event) {\n if (typeof event.isPropagationStopped === 'function') {\n return event.isPropagationStopped();\n } else if (typeof event.cancelBubble !== 'undefined') {\n return event.cancelBubble;\n }\n\n return false;\n}\nexport function isEvtWithFiles(event) {\n if (!event.dataTransfer) {\n return !!event.target && !!event.target.files;\n } // https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/types\n // https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API/Recommended_drag_types#file\n\n\n return Array.prototype.some.call(event.dataTransfer.types, function (type) {\n return type === 'Files' || type === 'application/x-moz-file';\n });\n}\nexport function isKindFile(item) {\n return _typeof(item) === 'object' && item !== null && item.kind === 'file';\n} // allow the entire document to be a drag target\n\nexport function onDocumentDragOver(event) {\n event.preventDefault();\n}\n\nfunction isIe(userAgent) {\n return userAgent.indexOf('MSIE') !== -1 || userAgent.indexOf('Trident/') !== -1;\n}\n\nfunction isEdge(userAgent) {\n return userAgent.indexOf('Edge/') !== -1;\n}\n\nexport function isIeOrEdge() {\n var userAgent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.navigator.userAgent;\n return isIe(userAgent) || isEdge(userAgent);\n}\n/**\n * This is intended to be used to compose event handlers\n * They are executed in order until one of them calls `event.isPropagationStopped()`.\n * Note that the check is done on the first invoke too,\n * meaning that if propagation was stopped before invoking the fns,\n * no handlers will be executed.\n *\n * @param {Function} fns the event hanlder functions\n * @return {Function} the event handler to add to an element\n */\n\nexport function composeEventHandlers() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function (event) {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n return fns.some(function (fn) {\n if (!isPropagationStopped(event) && fn) {\n fn.apply(void 0, [event].concat(args));\n }\n\n return isPropagationStopped(event);\n });\n };\n}","function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* eslint prefer-template: 0 */\nimport React, { forwardRef, Fragment, useCallback, useEffect, useImperativeHandle, useMemo, useReducer, useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport { fromEvent } from 'file-selector';\nimport { allFilesAccepted, composeEventHandlers, fileAccepted, fileMatchSize, isEvtWithFiles, isIeOrEdge, isPropagationStopped, onDocumentDragOver } from './utils/index';\n/**\n * Convenience wrapper component for the `useDropzone` hook\n *\n * ```jsx\n * \n * {({getRootProps, getInputProps}) => (\n *
\n * \n *

Drag 'n' drop some files here, or click to select files

\n *
\n * )}\n *
\n * ```\n */\n\nvar Dropzone = forwardRef(function (_ref, ref) {\n var children = _ref.children,\n params = _objectWithoutProperties(_ref, [\"children\"]);\n\n var _useDropzone = useDropzone(params),\n open = _useDropzone.open,\n props = _objectWithoutProperties(_useDropzone, [\"open\"]);\n\n useImperativeHandle(ref, function () {\n return {\n open: open\n };\n }, [open]); // TODO: Figure out why react-styleguidist cannot create docs if we don't return a jsx element\n\n return React.createElement(Fragment, null, children(_objectSpread({}, props, {\n open: open\n })));\n});\nDropzone.displayName = 'Dropzone';\nDropzone.propTypes = {\n /**\n * Render function that exposes the dropzone state and prop getter fns\n *\n * @param {object} params\n * @param {Function} params.getRootProps Returns the props you should apply to the root drop container you render\n * @param {Function} params.getInputProps Returns the props you should apply to hidden file input you render\n * @param {Function} params.open Open the native file selection dialog\n * @param {boolean} params.isFocused Dropzone area is in focus\n * @param {boolean} params.isFileDialogActive File dialog is opened\n * @param {boolean} params.isDragActive Active drag is in progress\n * @param {boolean} params.isDragAccept Dragged files are accepted\n * @param {boolean} params.isDragReject Some dragged files are rejected\n * @param {File[]} params.draggedFiles Files in active drag\n * @param {File[]} params.acceptedFiles Accepted files\n * @param {File[]} params.rejectedFiles Rejected files\n */\n children: PropTypes.func,\n\n /**\n * Set accepted file types.\n * See https://github.com/okonet/attr-accept for more information.\n * Keep in mind that mime type determination is not reliable across platforms. CSV files,\n * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under\n * Windows. In some cases there might not be a mime type set at all.\n * See: https://github.com/react-dropzone/react-dropzone/issues/276\n */\n accept: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),\n\n /**\n * Allow drag 'n' drop (or selection from the file dialog) of multiple files\n */\n multiple: PropTypes.bool,\n\n /**\n * If false, allow dropped items to take over the current browser window\n */\n preventDropOnDocument: PropTypes.bool,\n\n /**\n * If true, disables click to open the native file selection dialog\n */\n noClick: PropTypes.bool,\n\n /**\n * If true, disables SPACE/ENTER to open the native file selection dialog.\n * Note that it also stops tracking the focus state.\n */\n noKeyboard: PropTypes.bool,\n\n /**\n * If true, disables drag 'n' drop\n */\n noDrag: PropTypes.bool,\n\n /**\n * If true, stops drag event propagation to parents\n */\n noDragEventsBubbling: PropTypes.bool,\n\n /**\n * Minimum file size (in bytes)\n */\n minSize: PropTypes.number,\n\n /**\n * Maximum file size (in bytes)\n */\n maxSize: PropTypes.number,\n\n /**\n * Enable/disable the dropzone\n */\n disabled: PropTypes.bool,\n\n /**\n * Use this to provide a custom file aggregator\n *\n * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)\n */\n getFilesFromEvent: PropTypes.func,\n\n /**\n * Cb for when closing the file dialog with no selection\n */\n onFileDialogCancel: PropTypes.func,\n\n /**\n * Cb for when the `dragenter` event occurs.\n *\n * @param {DragEvent} event\n */\n onDragEnter: PropTypes.func,\n\n /**\n * Cb for when the `dragleave` event occurs\n *\n * @param {DragEvent} event\n */\n onDragLeave: PropTypes.func,\n\n /**\n * Cb for when the `dragover` event occurs\n *\n * @param {DragEvent} event\n */\n onDragOver: PropTypes.func,\n\n /**\n * Cb for when the `drop` event occurs.\n * Note that this callback is invoked after the `getFilesFromEvent` callback is done.\n *\n * Files are accepted or rejected based on the `accept`, `multiple`, `minSize` and `maxSize` props.\n * `accept` must be a valid [MIME type](http://www.iana.org/assignments/media-types/media-types.xhtml) according to [input element specification](https://www.w3.org/wiki/HTML/Elements/input/file) or a valid file extension.\n * If `multiple` is set to false and additional files are droppped,\n * all files besides the first will be rejected.\n * Any file which does not have a size in the [`minSize`, `maxSize`] range, will be rejected as well.\n *\n * Note that the `onDrop` callback will always be invoked regardless if the dropped files were accepted or rejected.\n * If you'd like to react to a specific scenario, use the `onDropAccepted`/`onDropRejected` props.\n *\n * `onDrop` will provide you with an array of [File](https://developer.mozilla.org/en-US/docs/Web/API/File) objects which you can then process and send to a server.\n * For example, with [SuperAgent](https://github.com/visionmedia/superagent) as a http/ajax library:\n *\n * ```js\n * function onDrop(acceptedFiles) {\n * const req = request.post('/upload')\n * acceptedFiles.forEach(file => {\n * req.attach(file.name, file)\n * })\n * req.end(callback)\n * }\n * ```\n *\n * @param {File[]} acceptedFiles\n * @param {File[]} rejectedFiles\n * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)\n */\n onDrop: PropTypes.func,\n\n /**\n * Cb for when the `drop` event occurs.\n * Note that if no files are accepted, this callback is not invoked.\n *\n * @param {File[]} files\n * @param {(DragEvent|Event)} event\n */\n onDropAccepted: PropTypes.func,\n\n /**\n * Cb for when the `drop` event occurs.\n * Note that if no files are rejected, this callback is not invoked.\n *\n * @param {object[]} files\n * @param {(DragEvent|Event)} event\n */\n onDropRejected: PropTypes.func\n};\nexport default Dropzone;\n/**\n * A function that is invoked for the `dragenter`,\n * `dragover` and `dragleave` events.\n * It is not invoked if the items are not files (such as link, text, etc.).\n *\n * @callback dragCb\n * @param {DragEvent} event\n */\n\n/**\n * A function that is invoked for the `drop` or input change event.\n * It is not invoked if the items are not files (such as link, text, etc.).\n *\n * @callback dropCb\n * @param {File[]} acceptedFiles List of accepted files\n * @param {File[]} rejectedFiles List of rejected files\n * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)\n */\n\n/**\n * A function that is invoked for the `drop` or input change event.\n * It is not invoked if the items are files (such as link, text, etc.).\n *\n * @callback dropAcceptedCb\n * @param {File[]} files List of accepted files that meet the given criteria\n * (`accept`, `multiple`, `minSize`, `maxSize`)\n * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)\n */\n\n/**\n * A function that is invoked for the `drop` or input change event.\n *\n * @callback dropRejectedCb\n * @param {File[]} files List of rejected files that do not meet the given criteria\n * (`accept`, `multiple`, `minSize`, `maxSize`)\n * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)\n */\n\n/**\n * A function that is used aggregate files,\n * in a asynchronous fashion, from drag or input change events.\n *\n * @callback getFilesFromEvent\n * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)\n * @returns {(File[]|Promise)}\n */\n\n/**\n * An object with the current dropzone state and some helper functions.\n *\n * @typedef {object} DropzoneState\n * @property {Function} getRootProps Returns the props you should apply to the root drop container you render\n * @property {Function} getInputProps Returns the props you should apply to hidden file input you render\n * @property {Function} open Open the native file selection dialog\n * @property {boolean} isFocused Dropzone area is in focus\n * @property {boolean} isFileDialogActive File dialog is opened\n * @property {boolean} isDragActive Active drag is in progress\n * @property {boolean} isDragAccept Dragged files are accepted\n * @property {boolean} isDragReject Some dragged files are rejected\n * @property {File[]} draggedFiles Files in active drag\n * @property {File[]} acceptedFiles Accepted files\n * @property {File[]} rejectedFiles Rejected files\n */\n\nvar initialState = {\n isFocused: false,\n isFileDialogActive: false,\n isDragActive: false,\n isDragAccept: false,\n isDragReject: false,\n draggedFiles: [],\n acceptedFiles: [],\n rejectedFiles: []\n};\n/**\n * A React hook that creates a drag 'n' drop area.\n *\n * ```jsx\n * function MyDropzone(props) {\n * const {getRootProps, getInputProps} = useDropzone({\n * onDrop: acceptedFiles => {\n * // do something with the File objects, e.g. upload to some server\n * }\n * });\n * return (\n *
\n * \n *

Drag and drop some files here, or click to select files

\n *
\n * )\n * }\n * ```\n *\n * @function useDropzone\n *\n * @param {object} props\n * @param {string|string[]} [props.accept] Set accepted file types.\n * See https://github.com/okonet/attr-accept for more information.\n * Keep in mind that mime type determination is not reliable across platforms. CSV files,\n * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under\n * Windows. In some cases there might not be a mime type set at all.\n * See: https://github.com/react-dropzone/react-dropzone/issues/276\n * @param {boolean} [props.multiple=true] Allow drag 'n' drop (or selection from the file dialog) of multiple files\n * @param {boolean} [props.preventDropOnDocument=true] If false, allow dropped items to take over the current browser window\n * @param {boolean} [props.noClick=false] If true, disables click to open the native file selection dialog\n * @param {boolean} [props.noKeyboard=false] If true, disables SPACE/ENTER to open the native file selection dialog.\n * Note that it also stops tracking the focus state.\n * @param {boolean} [props.noDrag=false] If true, disables drag 'n' drop\n * @param {boolean} [props.noDragEventsBubbling=false] If true, stops drag event propagation to parents\n * @param {number} [props.minSize=0] Minimum file size (in bytes)\n * @param {number} [props.maxSize=Infinity] Maximum file size (in bytes)\n * @param {boolean} [props.disabled=false] Enable/disable the dropzone\n * @param {getFilesFromEvent} [props.getFilesFromEvent] Use this to provide a custom file aggregator\n * @param {Function} [props.onFileDialogCancel] Cb for when closing the file dialog with no selection\n * @param {dragCb} [props.onDragEnter] Cb for when the `dragenter` event occurs.\n * @param {dragCb} [props.onDragLeave] Cb for when the `dragleave` event occurs\n * @param {dragCb} [props.onDragOver] Cb for when the `dragover` event occurs\n * @param {dropCb} [props.onDrop] Cb for when the `drop` event occurs.\n * Note that this callback is invoked after the `getFilesFromEvent` callback is done.\n *\n * Files are accepted or rejected based on the `accept`, `multiple`, `minSize` and `maxSize` props.\n * `accept` must be a valid [MIME type](http://www.iana.org/assignments/media-types/media-types.xhtml) according to [input element specification](https://www.w3.org/wiki/HTML/Elements/input/file) or a valid file extension.\n * If `multiple` is set to false and additional files are droppped,\n * all files besides the first will be rejected.\n * Any file which does not have a size in the [`minSize`, `maxSize`] range, will be rejected as well.\n *\n * Note that the `onDrop` callback will always be invoked regardless if the dropped files were accepted or rejected.\n * If you'd like to react to a specific scenario, use the `onDropAccepted`/`onDropRejected` props.\n *\n * `onDrop` will provide you with an array of [File](https://developer.mozilla.org/en-US/docs/Web/API/File) objects which you can then process and send to a server.\n * For example, with [SuperAgent](https://github.com/visionmedia/superagent) as a http/ajax library:\n *\n * ```js\n * function onDrop(acceptedFiles) {\n * const req = request.post('/upload')\n * acceptedFiles.forEach(file => {\n * req.attach(file.name, file)\n * })\n * req.end(callback)\n * }\n * ```\n * @param {dropAcceptedCb} [props.onDropAccepted]\n * @param {dropRejectedCb} [props.onDropRejected]\n *\n * @returns {DropzoneState}\n */\n\nexport function useDropzone() {\n var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n accept = _ref2.accept,\n _ref2$disabled = _ref2.disabled,\n disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,\n _ref2$getFilesFromEve = _ref2.getFilesFromEvent,\n getFilesFromEvent = _ref2$getFilesFromEve === void 0 ? fromEvent : _ref2$getFilesFromEve,\n _ref2$maxSize = _ref2.maxSize,\n maxSize = _ref2$maxSize === void 0 ? Infinity : _ref2$maxSize,\n _ref2$minSize = _ref2.minSize,\n minSize = _ref2$minSize === void 0 ? 0 : _ref2$minSize,\n _ref2$multiple = _ref2.multiple,\n multiple = _ref2$multiple === void 0 ? true : _ref2$multiple,\n onDragEnter = _ref2.onDragEnter,\n onDragLeave = _ref2.onDragLeave,\n onDragOver = _ref2.onDragOver,\n onDrop = _ref2.onDrop,\n onDropAccepted = _ref2.onDropAccepted,\n onDropRejected = _ref2.onDropRejected,\n onFileDialogCancel = _ref2.onFileDialogCancel,\n _ref2$preventDropOnDo = _ref2.preventDropOnDocument,\n preventDropOnDocument = _ref2$preventDropOnDo === void 0 ? true : _ref2$preventDropOnDo,\n _ref2$noClick = _ref2.noClick,\n noClick = _ref2$noClick === void 0 ? false : _ref2$noClick,\n _ref2$noKeyboard = _ref2.noKeyboard,\n noKeyboard = _ref2$noKeyboard === void 0 ? false : _ref2$noKeyboard,\n _ref2$noDrag = _ref2.noDrag,\n noDrag = _ref2$noDrag === void 0 ? false : _ref2$noDrag,\n _ref2$noDragEventsBub = _ref2.noDragEventsBubbling,\n noDragEventsBubbling = _ref2$noDragEventsBub === void 0 ? false : _ref2$noDragEventsBub;\n\n var rootRef = useRef(null);\n var inputRef = useRef(null);\n\n var _useReducer = useReducer(reducer, initialState),\n _useReducer2 = _slicedToArray(_useReducer, 2),\n state = _useReducer2[0],\n dispatch = _useReducer2[1];\n\n var isFocused = state.isFocused,\n isFileDialogActive = state.isFileDialogActive,\n draggedFiles = state.draggedFiles; // Fn for opening the file dialog programmatically\n\n var openFileDialog = useCallback(function () {\n if (inputRef.current) {\n dispatch({\n type: 'openDialog'\n });\n inputRef.current.value = null;\n inputRef.current.click();\n }\n }, [dispatch]); // Update file dialog active state when the window is focused on\n\n var onWindowFocus = function onWindowFocus() {\n // Execute the timeout only if the file dialog is opened in the browser\n if (isFileDialogActive) {\n setTimeout(function () {\n if (inputRef.current) {\n var files = inputRef.current.files;\n\n if (!files.length) {\n dispatch({\n type: 'closeDialog'\n });\n\n if (typeof onFileDialogCancel === 'function') {\n onFileDialogCancel();\n }\n }\n }\n }, 300);\n }\n };\n\n useEffect(function () {\n window.addEventListener('focus', onWindowFocus, false);\n return function () {\n window.removeEventListener('focus', onWindowFocus, false);\n };\n }, [inputRef, isFileDialogActive, onFileDialogCancel]); // Cb to open the file dialog when SPACE/ENTER occurs on the dropzone\n\n var onKeyDownCb = useCallback(function (event) {\n // Ignore keyboard events bubbling up the DOM tree\n if (!rootRef.current || !rootRef.current.isEqualNode(event.target)) {\n return;\n }\n\n if (event.keyCode === 32 || event.keyCode === 13) {\n event.preventDefault();\n openFileDialog();\n }\n }, [rootRef, inputRef]); // Update focus state for the dropzone\n\n var onFocusCb = useCallback(function () {\n dispatch({\n type: 'focus'\n });\n }, []);\n var onBlurCb = useCallback(function () {\n dispatch({\n type: 'blur'\n });\n }, []); // Cb to open the file dialog when click occurs on the dropzone\n\n var onClickCb = useCallback(function () {\n if (noClick) {\n return;\n } // In IE11/Edge the file-browser dialog is blocking, therefore, use setTimeout()\n // to ensure React can handle state changes\n // See: https://github.com/react-dropzone/react-dropzone/issues/450\n\n\n if (isIeOrEdge()) {\n setTimeout(openFileDialog, 0);\n } else {\n openFileDialog();\n }\n }, [inputRef, noClick]);\n var dragTargetsRef = useRef([]);\n\n var onDocumentDrop = function onDocumentDrop(event) {\n if (rootRef.current && rootRef.current.contains(event.target)) {\n // If we intercepted an event for our instance, let it propagate down to the instance's onDrop handler\n return;\n }\n\n event.preventDefault();\n dragTargetsRef.current = [];\n };\n\n useEffect(function () {\n if (preventDropOnDocument) {\n document.addEventListener('dragover', onDocumentDragOver, false);\n document.addEventListener('drop', onDocumentDrop, false);\n }\n\n return function () {\n if (preventDropOnDocument) {\n document.removeEventListener('dragover', onDocumentDragOver);\n document.removeEventListener('drop', onDocumentDrop);\n }\n };\n }, [rootRef, preventDropOnDocument]);\n var onDragEnterCb = useCallback(function (event) {\n event.preventDefault(); // Persist here because we need the event later after getFilesFromEvent() is done\n\n event.persist();\n stopPropagation(event); // Count the dropzone and any children that are entered.\n\n if (dragTargetsRef.current.indexOf(event.target) === -1) {\n dragTargetsRef.current = [].concat(_toConsumableArray(dragTargetsRef.current), [event.target]);\n }\n\n if (isEvtWithFiles(event)) {\n Promise.resolve(getFilesFromEvent(event)).then(function (draggedFiles) {\n if (isPropagationStopped(event) && !noDragEventsBubbling) {\n return;\n }\n\n dispatch({\n draggedFiles: draggedFiles,\n isDragActive: true,\n type: 'setDraggedFiles'\n });\n\n if (onDragEnter) {\n onDragEnter(event);\n }\n });\n }\n }, [getFilesFromEvent, onDragEnter, noDragEventsBubbling]);\n var onDragOverCb = useCallback(function (event) {\n event.preventDefault();\n event.persist();\n stopPropagation(event);\n\n if (event.dataTransfer) {\n try {\n event.dataTransfer.dropEffect = 'copy';\n } catch (_unused) {}\n /* eslint-disable-line no-empty */\n\n }\n\n if (isEvtWithFiles(event) && onDragOver) {\n onDragOver(event);\n }\n\n return false;\n }, [onDragOver, noDragEventsBubbling]);\n var onDragLeaveCb = useCallback(function (event) {\n event.preventDefault();\n event.persist();\n stopPropagation(event); // Only deactivate once the dropzone and all children have been left\n\n var targets = dragTargetsRef.current.filter(function (target) {\n return target !== event.target && rootRef.current && rootRef.current.contains(target);\n });\n dragTargetsRef.current = targets;\n\n if (targets.length > 0) {\n return;\n }\n\n dispatch({\n isDragActive: false,\n type: 'setDraggedFiles',\n draggedFiles: []\n });\n\n if (isEvtWithFiles(event) && onDragLeave) {\n onDragLeave(event);\n }\n }, [rootRef, onDragLeave, noDragEventsBubbling]);\n var onDropCb = useCallback(function (event) {\n event.preventDefault(); // Persist here because we need the event later after getFilesFromEvent() is done\n\n event.persist();\n stopPropagation(event);\n dragTargetsRef.current = [];\n\n if (isEvtWithFiles(event)) {\n Promise.resolve(getFilesFromEvent(event)).then(function (files) {\n if (isPropagationStopped(event) && !noDragEventsBubbling) {\n return;\n }\n\n var acceptedFiles = [];\n var rejectedFiles = [];\n files.forEach(function (file) {\n if (fileAccepted(file, accept) && fileMatchSize(file, minSize, maxSize)) {\n acceptedFiles.push(file);\n } else {\n rejectedFiles.push(file);\n }\n });\n\n if (!multiple && acceptedFiles.length > 1) {\n rejectedFiles.push.apply(rejectedFiles, _toConsumableArray(acceptedFiles.splice(0))); // Reject everything and empty accepted files\n }\n\n dispatch({\n acceptedFiles: acceptedFiles,\n rejectedFiles: rejectedFiles,\n type: 'setFiles'\n });\n\n if (onDrop) {\n onDrop(acceptedFiles, rejectedFiles, event);\n }\n\n if (rejectedFiles.length > 0 && onDropRejected) {\n onDropRejected(rejectedFiles, event);\n }\n\n if (acceptedFiles.length > 0 && onDropAccepted) {\n onDropAccepted(acceptedFiles, event);\n }\n });\n }\n\n dispatch({\n type: 'reset'\n });\n }, [multiple, accept, minSize, maxSize, getFilesFromEvent, onDrop, onDropAccepted, onDropRejected, noDragEventsBubbling]);\n\n var composeHandler = function composeHandler(fn) {\n return disabled ? null : fn;\n };\n\n var composeKeyboardHandler = function composeKeyboardHandler(fn) {\n return noKeyboard ? null : composeHandler(fn);\n };\n\n var composeDragHandler = function composeDragHandler(fn) {\n return noDrag ? null : composeHandler(fn);\n };\n\n var stopPropagation = function stopPropagation(event) {\n if (noDragEventsBubbling) {\n event.stopPropagation();\n }\n };\n\n var getRootProps = useMemo(function () {\n return function () {\n var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref3$refKey = _ref3.refKey,\n refKey = _ref3$refKey === void 0 ? 'ref' : _ref3$refKey,\n onKeyDown = _ref3.onKeyDown,\n onFocus = _ref3.onFocus,\n onBlur = _ref3.onBlur,\n onClick = _ref3.onClick,\n onDragEnter = _ref3.onDragEnter,\n onDragOver = _ref3.onDragOver,\n onDragLeave = _ref3.onDragLeave,\n onDrop = _ref3.onDrop,\n rest = _objectWithoutProperties(_ref3, [\"refKey\", \"onKeyDown\", \"onFocus\", \"onBlur\", \"onClick\", \"onDragEnter\", \"onDragOver\", \"onDragLeave\", \"onDrop\"]);\n\n return _objectSpread(_defineProperty({\n onKeyDown: composeKeyboardHandler(composeEventHandlers(onKeyDown, onKeyDownCb)),\n onFocus: composeKeyboardHandler(composeEventHandlers(onFocus, onFocusCb)),\n onBlur: composeKeyboardHandler(composeEventHandlers(onBlur, onBlurCb)),\n onClick: composeHandler(composeEventHandlers(onClick, onClickCb)),\n onDragEnter: composeDragHandler(composeEventHandlers(onDragEnter, onDragEnterCb)),\n onDragOver: composeDragHandler(composeEventHandlers(onDragOver, onDragOverCb)),\n onDragLeave: composeDragHandler(composeEventHandlers(onDragLeave, onDragLeaveCb)),\n onDrop: composeDragHandler(composeEventHandlers(onDrop, onDropCb))\n }, refKey, rootRef), !disabled && !noKeyboard ? {\n tabIndex: 0\n } : {}, {}, rest);\n };\n }, [rootRef, onKeyDownCb, onFocusCb, onBlurCb, onClickCb, onDragEnterCb, onDragOverCb, onDragLeaveCb, onDropCb, noKeyboard, noDrag, disabled]);\n var onInputElementClick = useCallback(function (event) {\n event.stopPropagation();\n }, []);\n var getInputProps = useMemo(function () {\n return function () {\n var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref4$refKey = _ref4.refKey,\n refKey = _ref4$refKey === void 0 ? 'ref' : _ref4$refKey,\n onChange = _ref4.onChange,\n onClick = _ref4.onClick,\n rest = _objectWithoutProperties(_ref4, [\"refKey\", \"onChange\", \"onClick\"]);\n\n var inputProps = _defineProperty({\n accept: accept,\n multiple: multiple,\n type: 'file',\n style: {\n display: 'none'\n },\n onChange: composeHandler(composeEventHandlers(onChange, onDropCb)),\n onClick: composeHandler(composeEventHandlers(onClick, onInputElementClick)),\n autoComplete: 'off',\n tabIndex: -1\n }, refKey, inputRef);\n\n return _objectSpread({}, inputProps, {}, rest);\n };\n }, [inputRef, accept, multiple, onDropCb, disabled]);\n var fileCount = draggedFiles.length;\n var isDragAccept = fileCount > 0 && allFilesAccepted({\n files: draggedFiles,\n accept: accept,\n minSize: minSize,\n maxSize: maxSize,\n multiple: multiple\n });\n var isDragReject = fileCount > 0 && !isDragAccept;\n return _objectSpread({}, state, {\n isDragAccept: isDragAccept,\n isDragReject: isDragReject,\n isFocused: isFocused && !disabled,\n getRootProps: getRootProps,\n getInputProps: getInputProps,\n rootRef: rootRef,\n inputRef: inputRef,\n open: composeHandler(openFileDialog)\n });\n}\n\nfunction reducer(state, action) {\n /* istanbul ignore next */\n switch (action.type) {\n case 'focus':\n return _objectSpread({}, state, {\n isFocused: true\n });\n\n case 'blur':\n return _objectSpread({}, state, {\n isFocused: false\n });\n\n case 'openDialog':\n return _objectSpread({}, state, {\n isFileDialogActive: true\n });\n\n case 'closeDialog':\n return _objectSpread({}, state, {\n isFileDialogActive: false\n });\n\n case 'setDraggedFiles':\n /* eslint no-case-declarations: 0 */\n var isDragActive = action.isDragActive,\n draggedFiles = action.draggedFiles;\n return _objectSpread({}, state, {\n draggedFiles: draggedFiles,\n isDragActive: isDragActive\n });\n\n case 'setFiles':\n return _objectSpread({}, state, {\n acceptedFiles: action.acceptedFiles,\n rejectedFiles: action.rejectedFiles\n });\n\n case 'reset':\n return _objectSpread({}, state, {\n isFileDialogActive: false,\n isDragActive: false,\n draggedFiles: [],\n acceptedFiles: [],\n rejectedFiles: []\n });\n\n default:\n return state;\n }\n}","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from) {\r\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\r\n to[j] = from[i];\r\n return to;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import { __awaiter, __generator } from \"tslib\";\nvar Semaphore = /** @class */ (function () {\n function Semaphore(_maxConcurrency) {\n this._maxConcurrency = _maxConcurrency;\n this._queue = [];\n if (_maxConcurrency <= 0) {\n throw new Error('semaphore must be initialized to a positive value');\n }\n this._value = _maxConcurrency;\n }\n Semaphore.prototype.acquire = function () {\n var _this = this;\n var locked = this.isLocked();\n var ticket = new Promise(function (r) { return _this._queue.push(r); });\n if (!locked)\n this._dispatch();\n return ticket;\n };\n Semaphore.prototype.runExclusive = function (callback) {\n return __awaiter(this, void 0, void 0, function () {\n var _a, value, release;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, this.acquire()];\n case 1:\n _a = _b.sent(), value = _a[0], release = _a[1];\n _b.label = 2;\n case 2:\n _b.trys.push([2, , 4, 5]);\n return [4 /*yield*/, callback(value)];\n case 3: return [2 /*return*/, _b.sent()];\n case 4:\n release();\n return [7 /*endfinally*/];\n case 5: return [2 /*return*/];\n }\n });\n });\n };\n Semaphore.prototype.isLocked = function () {\n return this._value <= 0;\n };\n Semaphore.prototype.release = function () {\n if (this._maxConcurrency > 1) {\n throw new Error('this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead');\n }\n if (this._currentReleaser) {\n var releaser = this._currentReleaser;\n this._currentReleaser = undefined;\n releaser();\n }\n };\n Semaphore.prototype._dispatch = function () {\n var _this = this;\n var nextConsumer = this._queue.shift();\n if (!nextConsumer)\n return;\n var released = false;\n this._currentReleaser = function () {\n if (released)\n return;\n released = true;\n _this._value++;\n _this._dispatch();\n };\n nextConsumer([this._value--, this._currentReleaser]);\n };\n return Semaphore;\n}());\nexport default Semaphore;\n","import { __awaiter, __generator } from \"tslib\";\nimport Semaphore from './Semaphore';\nvar Mutex = /** @class */ (function () {\n function Mutex() {\n this._semaphore = new Semaphore(1);\n }\n Mutex.prototype.acquire = function () {\n return __awaiter(this, void 0, void 0, function () {\n var _a, releaser;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, this._semaphore.acquire()];\n case 1:\n _a = _b.sent(), releaser = _a[1];\n return [2 /*return*/, releaser];\n }\n });\n });\n };\n Mutex.prototype.runExclusive = function (callback) {\n return this._semaphore.runExclusive(function () { return callback(); });\n };\n Mutex.prototype.isLocked = function () {\n return this._semaphore.isLocked();\n };\n Mutex.prototype.release = function () {\n this._semaphore.release();\n };\n return Mutex;\n}());\nexport default Mutex;\n","export { default as Mutex } from './Mutex';\nexport { default as Semaphore } from './Semaphore';\nexport { withTimeout } from './withTimeout';\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport * as ReactDOM from 'react-dom';\nimport { chainPropTypes, elementTypeAcceptingRef, refType, HTMLElementType } from '@material-ui/utils';\nimport debounce from '../utils/debounce';\nimport clsx from 'clsx';\nimport ownerDocument from '../utils/ownerDocument';\nimport ownerWindow from '../utils/ownerWindow';\nimport createChainedFunction from '../utils/createChainedFunction';\nimport withStyles from '../styles/withStyles';\nimport Modal from '../Modal';\nimport Grow from '../Grow';\nimport Paper from '../Paper';\nexport function getOffsetTop(rect, vertical) {\n var offset = 0;\n\n if (typeof vertical === 'number') {\n offset = vertical;\n } else if (vertical === 'center') {\n offset = rect.height / 2;\n } else if (vertical === 'bottom') {\n offset = rect.height;\n }\n\n return offset;\n}\nexport function getOffsetLeft(rect, horizontal) {\n var offset = 0;\n\n if (typeof horizontal === 'number') {\n offset = horizontal;\n } else if (horizontal === 'center') {\n offset = rect.width / 2;\n } else if (horizontal === 'right') {\n offset = rect.width;\n }\n\n return offset;\n}\n\nfunction getTransformOriginValue(transformOrigin) {\n return [transformOrigin.horizontal, transformOrigin.vertical].map(function (n) {\n return typeof n === 'number' ? \"\".concat(n, \"px\") : n;\n }).join(' ');\n} // Sum the scrollTop between two elements.\n\n\nfunction getScrollParent(parent, child) {\n var element = child;\n var scrollTop = 0;\n\n while (element && element !== parent) {\n element = element.parentElement;\n scrollTop += element.scrollTop;\n }\n\n return scrollTop;\n}\n\nfunction getAnchorEl(anchorEl) {\n return typeof anchorEl === 'function' ? anchorEl() : anchorEl;\n}\n\nexport var styles = {\n /* Styles applied to the root element. */\n root: {},\n\n /* Styles applied to the `Paper` component. */\n paper: {\n position: 'absolute',\n overflowY: 'auto',\n overflowX: 'hidden',\n // So we see the popover when it's empty.\n // It's most likely on issue on userland.\n minWidth: 16,\n minHeight: 16,\n maxWidth: 'calc(100% - 32px)',\n maxHeight: 'calc(100% - 32px)',\n // We disable the focus ring for mouse, touch and keyboard users.\n outline: 0\n }\n};\nvar Popover = /*#__PURE__*/React.forwardRef(function Popover(props, ref) {\n var action = props.action,\n anchorEl = props.anchorEl,\n _props$anchorOrigin = props.anchorOrigin,\n anchorOrigin = _props$anchorOrigin === void 0 ? {\n vertical: 'top',\n horizontal: 'left'\n } : _props$anchorOrigin,\n anchorPosition = props.anchorPosition,\n _props$anchorReferenc = props.anchorReference,\n anchorReference = _props$anchorReferenc === void 0 ? 'anchorEl' : _props$anchorReferenc,\n children = props.children,\n classes = props.classes,\n className = props.className,\n containerProp = props.container,\n _props$elevation = props.elevation,\n elevation = _props$elevation === void 0 ? 8 : _props$elevation,\n getContentAnchorEl = props.getContentAnchorEl,\n _props$marginThreshol = props.marginThreshold,\n marginThreshold = _props$marginThreshol === void 0 ? 16 : _props$marginThreshol,\n onEnter = props.onEnter,\n onEntered = props.onEntered,\n onEntering = props.onEntering,\n onExit = props.onExit,\n onExited = props.onExited,\n onExiting = props.onExiting,\n open = props.open,\n _props$PaperProps = props.PaperProps,\n PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps,\n _props$transformOrigi = props.transformOrigin,\n transformOrigin = _props$transformOrigi === void 0 ? {\n vertical: 'top',\n horizontal: 'left'\n } : _props$transformOrigi,\n _props$TransitionComp = props.TransitionComponent,\n TransitionComponent = _props$TransitionComp === void 0 ? Grow : _props$TransitionComp,\n _props$transitionDura = props.transitionDuration,\n transitionDurationProp = _props$transitionDura === void 0 ? 'auto' : _props$transitionDura,\n _props$TransitionProp = props.TransitionProps,\n TransitionProps = _props$TransitionProp === void 0 ? {} : _props$TransitionProp,\n other = _objectWithoutProperties(props, [\"action\", \"anchorEl\", \"anchorOrigin\", \"anchorPosition\", \"anchorReference\", \"children\", \"classes\", \"className\", \"container\", \"elevation\", \"getContentAnchorEl\", \"marginThreshold\", \"onEnter\", \"onEntered\", \"onEntering\", \"onExit\", \"onExited\", \"onExiting\", \"open\", \"PaperProps\", \"transformOrigin\", \"TransitionComponent\", \"transitionDuration\", \"TransitionProps\"]);\n\n var paperRef = React.useRef(); // Returns the top/left offset of the position\n // to attach to on the anchor element (or body if none is provided)\n\n var getAnchorOffset = React.useCallback(function (contentAnchorOffset) {\n if (anchorReference === 'anchorPosition') {\n if (process.env.NODE_ENV !== 'production') {\n if (!anchorPosition) {\n console.error('Material-UI: You need to provide a `anchorPosition` prop when using ' + '.');\n }\n }\n\n return anchorPosition;\n }\n\n var resolvedAnchorEl = getAnchorEl(anchorEl); // If an anchor element wasn't provided, just use the parent body element of this Popover\n\n var anchorElement = resolvedAnchorEl && resolvedAnchorEl.nodeType === 1 ? resolvedAnchorEl : ownerDocument(paperRef.current).body;\n var anchorRect = anchorElement.getBoundingClientRect();\n\n if (process.env.NODE_ENV !== 'production') {\n var box = anchorElement.getBoundingClientRect();\n\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n console.warn(['Material-UI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n }\n\n var anchorVertical = contentAnchorOffset === 0 ? anchorOrigin.vertical : 'center';\n return {\n top: anchorRect.top + getOffsetTop(anchorRect, anchorVertical),\n left: anchorRect.left + getOffsetLeft(anchorRect, anchorOrigin.horizontal)\n };\n }, [anchorEl, anchorOrigin.horizontal, anchorOrigin.vertical, anchorPosition, anchorReference]); // Returns the vertical offset of inner content to anchor the transform on if provided\n\n var getContentAnchorOffset = React.useCallback(function (element) {\n var contentAnchorOffset = 0;\n\n if (getContentAnchorEl && anchorReference === 'anchorEl') {\n var contentAnchorEl = getContentAnchorEl(element);\n\n if (contentAnchorEl && element.contains(contentAnchorEl)) {\n var scrollTop = getScrollParent(element, contentAnchorEl);\n contentAnchorOffset = contentAnchorEl.offsetTop + contentAnchorEl.clientHeight / 2 - scrollTop || 0;\n } // != the default value\n\n\n if (process.env.NODE_ENV !== 'production') {\n if (anchorOrigin.vertical !== 'top') {\n console.error(['Material-UI: You can not change the default `anchorOrigin.vertical` value ', 'when also providing the `getContentAnchorEl` prop to the popover component.', 'Only use one of the two props.', 'Set `getContentAnchorEl` to `null | undefined`' + ' or leave `anchorOrigin.vertical` unchanged.'].join('\\n'));\n }\n }\n }\n\n return contentAnchorOffset;\n }, [anchorOrigin.vertical, anchorReference, getContentAnchorEl]); // Return the base transform origin using the element\n // and taking the content anchor offset into account if in use\n\n var getTransformOrigin = React.useCallback(function (elemRect) {\n var contentAnchorOffset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n return {\n vertical: getOffsetTop(elemRect, transformOrigin.vertical) + contentAnchorOffset,\n horizontal: getOffsetLeft(elemRect, transformOrigin.horizontal)\n };\n }, [transformOrigin.horizontal, transformOrigin.vertical]);\n var getPositioningStyle = React.useCallback(function (element) {\n // Check if the parent has requested anchoring on an inner content node\n var contentAnchorOffset = getContentAnchorOffset(element);\n var elemRect = {\n width: element.offsetWidth,\n height: element.offsetHeight\n }; // Get the transform origin point on the element itself\n\n var elemTransformOrigin = getTransformOrigin(elemRect, contentAnchorOffset);\n\n if (anchorReference === 'none') {\n return {\n top: null,\n left: null,\n transformOrigin: getTransformOriginValue(elemTransformOrigin)\n };\n } // Get the offset of of the anchoring element\n\n\n var anchorOffset = getAnchorOffset(contentAnchorOffset); // Calculate element positioning\n\n var top = anchorOffset.top - elemTransformOrigin.vertical;\n var left = anchorOffset.left - elemTransformOrigin.horizontal;\n var bottom = top + elemRect.height;\n var right = left + elemRect.width; // Use the parent window of the anchorEl if provided\n\n var containerWindow = ownerWindow(getAnchorEl(anchorEl)); // Window thresholds taking required margin into account\n\n var heightThreshold = containerWindow.innerHeight - marginThreshold;\n var widthThreshold = containerWindow.innerWidth - marginThreshold; // Check if the vertical axis needs shifting\n\n if (top < marginThreshold) {\n var diff = top - marginThreshold;\n top -= diff;\n elemTransformOrigin.vertical += diff;\n } else if (bottom > heightThreshold) {\n var _diff = bottom - heightThreshold;\n\n top -= _diff;\n elemTransformOrigin.vertical += _diff;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (elemRect.height > heightThreshold && elemRect.height && heightThreshold) {\n console.error(['Material-UI: The popover component is too tall.', \"Some part of it can not be seen on the screen (\".concat(elemRect.height - heightThreshold, \"px).\"), 'Please consider adding a `max-height` to improve the user-experience.'].join('\\n'));\n }\n } // Check if the horizontal axis needs shifting\n\n\n if (left < marginThreshold) {\n var _diff2 = left - marginThreshold;\n\n left -= _diff2;\n elemTransformOrigin.horizontal += _diff2;\n } else if (right > widthThreshold) {\n var _diff3 = right - widthThreshold;\n\n left -= _diff3;\n elemTransformOrigin.horizontal += _diff3;\n }\n\n return {\n top: \"\".concat(Math.round(top), \"px\"),\n left: \"\".concat(Math.round(left), \"px\"),\n transformOrigin: getTransformOriginValue(elemTransformOrigin)\n };\n }, [anchorEl, anchorReference, getAnchorOffset, getContentAnchorOffset, getTransformOrigin, marginThreshold]);\n var setPositioningStyles = React.useCallback(function () {\n var element = paperRef.current;\n\n if (!element) {\n return;\n }\n\n var positioning = getPositioningStyle(element);\n\n if (positioning.top !== null) {\n element.style.top = positioning.top;\n }\n\n if (positioning.left !== null) {\n element.style.left = positioning.left;\n }\n\n element.style.transformOrigin = positioning.transformOrigin;\n }, [getPositioningStyle]);\n\n var handleEntering = function handleEntering(element, isAppearing) {\n if (onEntering) {\n onEntering(element, isAppearing);\n }\n\n setPositioningStyles();\n };\n\n var handlePaperRef = React.useCallback(function (instance) {\n // #StrictMode ready\n paperRef.current = ReactDOM.findDOMNode(instance);\n }, []);\n React.useEffect(function () {\n if (open) {\n setPositioningStyles();\n }\n });\n React.useImperativeHandle(action, function () {\n return open ? {\n updatePosition: function updatePosition() {\n setPositioningStyles();\n }\n } : null;\n }, [open, setPositioningStyles]);\n React.useEffect(function () {\n if (!open) {\n return undefined;\n }\n\n var handleResize = debounce(function () {\n setPositioningStyles();\n });\n window.addEventListener('resize', handleResize);\n return function () {\n handleResize.clear();\n window.removeEventListener('resize', handleResize);\n };\n }, [open, setPositioningStyles]);\n var transitionDuration = transitionDurationProp;\n\n if (transitionDurationProp === 'auto' && !TransitionComponent.muiSupportAuto) {\n transitionDuration = undefined;\n } // If the container prop is provided, use that\n // If the anchorEl prop is provided, use its parent body element as the container\n // If neither are provided let the Modal take care of choosing the container\n\n\n var container = containerProp || (anchorEl ? ownerDocument(getAnchorEl(anchorEl)).body : undefined);\n return /*#__PURE__*/React.createElement(Modal, _extends({\n container: container,\n open: open,\n ref: ref,\n BackdropProps: {\n invisible: true\n },\n className: clsx(classes.root, className)\n }, other), /*#__PURE__*/React.createElement(TransitionComponent, _extends({\n appear: true,\n in: open,\n onEnter: onEnter,\n onEntered: onEntered,\n onExit: onExit,\n onExited: onExited,\n onExiting: onExiting,\n timeout: transitionDuration\n }, TransitionProps, {\n onEntering: createChainedFunction(handleEntering, TransitionProps.onEntering)\n }), /*#__PURE__*/React.createElement(Paper, _extends({\n elevation: elevation,\n ref: handlePaperRef\n }, PaperProps, {\n className: clsx(classes.paper, PaperProps.className)\n }), children)));\n});\nprocess.env.NODE_ENV !== \"production\" ? Popover.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * A ref for imperative actions.\n * It currently only supports updatePosition() action.\n */\n action: refType,\n\n /**\n * A HTML element, or a function that returns it.\n * It's used to set the position of the popover.\n */\n anchorEl: chainPropTypes(PropTypes.oneOfType([HTMLElementType, PropTypes.func]), function (props) {\n if (props.open && (!props.anchorReference || props.anchorReference === 'anchorEl')) {\n var resolvedAnchorEl = getAnchorEl(props.anchorEl);\n\n if (resolvedAnchorEl && resolvedAnchorEl.nodeType === 1) {\n var box = resolvedAnchorEl.getBoundingClientRect();\n\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n return new Error(['Material-UI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n } else {\n return new Error(['Material-UI: The `anchorEl` prop provided to the component is invalid.', \"It should be an Element instance but it's `\".concat(resolvedAnchorEl, \"` instead.\")].join('\\n'));\n }\n }\n\n return null;\n }),\n\n /**\n * This is the point on the anchor where the popover's\n * `anchorEl` will attach to. This is not used when the\n * anchorReference is 'anchorPosition'.\n *\n * Options:\n * vertical: [top, center, bottom];\n * horizontal: [left, center, right].\n */\n anchorOrigin: PropTypes.shape({\n horizontal: PropTypes.oneOfType([PropTypes.oneOf(['center', 'left', 'right']), PropTypes.number]).isRequired,\n vertical: PropTypes.oneOfType([PropTypes.oneOf(['bottom', 'center', 'top']), PropTypes.number]).isRequired\n }),\n\n /**\n * This is the position that may be used\n * to set the position of the popover.\n * The coordinates are relative to\n * the application's client area.\n */\n anchorPosition: PropTypes.shape({\n left: PropTypes.number.isRequired,\n top: PropTypes.number.isRequired\n }),\n\n /**\n * This determines which anchor prop to refer to to set\n * the position of the popover.\n */\n anchorReference: PropTypes.oneOf(['anchorEl', 'anchorPosition', 'none']),\n\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * A HTML element, component instance, or function that returns either.\n * The `container` will passed to the Modal component.\n *\n * By default, it uses the body of the anchorEl's top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes\n /* @typescript-to-proptypes-ignore */\n .oneOfType([HTMLElementType, PropTypes.instanceOf(React.Component), PropTypes.func]),\n\n /**\n * The elevation of the popover.\n */\n elevation: PropTypes.number,\n\n /**\n * This function is called in order to retrieve the content anchor element.\n * It's the opposite of the `anchorEl` prop.\n * The content anchor element should be an element inside the popover.\n * It's used to correctly scroll and set the position of the popover.\n * The positioning strategy tries to make the content anchor element just above the\n * anchor element.\n */\n getContentAnchorEl: PropTypes.func,\n\n /**\n * Specifies how close to the edge of the window the popover can appear.\n */\n marginThreshold: PropTypes.number,\n\n /**\n * Callback fired when the component requests to be closed.\n */\n onClose: PropTypes.func,\n\n /**\n * Callback fired before the component is entering.\n */\n onEnter: PropTypes.func,\n\n /**\n * Callback fired when the component has entered.\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired when the component is entering.\n */\n onEntering: PropTypes.func,\n\n /**\n * Callback fired before the component is exiting.\n */\n onExit: PropTypes.func,\n\n /**\n * Callback fired when the component has exited.\n */\n onExited: PropTypes.func,\n\n /**\n * Callback fired when the component is exiting.\n */\n onExiting: PropTypes.func,\n\n /**\n * If `true`, the popover is visible.\n */\n open: PropTypes.bool.isRequired,\n\n /**\n * Props applied to the [`Paper`](/api/paper/) element.\n */\n PaperProps: PropTypes\n /* @typescript-to-proptypes-ignore */\n .shape({\n component: elementTypeAcceptingRef\n }),\n\n /**\n * This is the point on the popover which\n * will attach to the anchor's origin.\n *\n * Options:\n * vertical: [top, center, bottom, x(px)];\n * horizontal: [left, center, right, x(px)].\n */\n transformOrigin: PropTypes.shape({\n horizontal: PropTypes.oneOfType([PropTypes.oneOf(['center', 'left', 'right']), PropTypes.number]).isRequired,\n vertical: PropTypes.oneOfType([PropTypes.oneOf(['bottom', 'center', 'top']), PropTypes.number]).isRequired\n }),\n\n /**\n * The component used for the transition.\n * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n */\n TransitionComponent: PropTypes.elementType,\n\n /**\n * Set to 'auto' to automatically calculate transition time based on height.\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })]),\n\n /**\n * Props applied to the [`Transition`](http://reactcommunity.org/react-transition-group/transition#Transition-props) element.\n */\n TransitionProps: PropTypes.object\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiPopover'\n})(Popover);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport withStyles from '../styles/withStyles';\nimport ListContext from './ListContext';\nexport var styles = {\n /* Styles applied to the root element. */\n root: {\n listStyle: 'none',\n margin: 0,\n padding: 0,\n position: 'relative'\n },\n\n /* Styles applied to the root element if `disablePadding={false}`. */\n padding: {\n paddingTop: 8,\n paddingBottom: 8\n },\n\n /* Styles applied to the root element if dense. */\n dense: {},\n\n /* Styles applied to the root element if a `subheader` is provided. */\n subheader: {\n paddingTop: 0\n }\n};\nvar List = /*#__PURE__*/React.forwardRef(function List(props, ref) {\n var children = props.children,\n classes = props.classes,\n className = props.className,\n _props$component = props.component,\n Component = _props$component === void 0 ? 'ul' : _props$component,\n _props$dense = props.dense,\n dense = _props$dense === void 0 ? false : _props$dense,\n _props$disablePadding = props.disablePadding,\n disablePadding = _props$disablePadding === void 0 ? false : _props$disablePadding,\n subheader = props.subheader,\n other = _objectWithoutProperties(props, [\"children\", \"classes\", \"className\", \"component\", \"dense\", \"disablePadding\", \"subheader\"]);\n\n var context = React.useMemo(function () {\n return {\n dense: dense\n };\n }, [dense]);\n return /*#__PURE__*/React.createElement(ListContext.Provider, {\n value: context\n }, /*#__PURE__*/React.createElement(Component, _extends({\n className: clsx(classes.root, className, dense && classes.dense, !disablePadding && classes.padding, subheader && classes.subheader),\n ref: ref\n }, other), subheader, children));\n});\nprocess.env.NODE_ENV !== \"production\" ? List.propTypes = {\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object.isRequired,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType,\n\n /**\n * If `true`, compact vertical padding designed for keyboard and mouse input will be used for\n * the list and list items.\n * The prop is available to descendant components as the `dense` context.\n */\n dense: PropTypes.bool,\n\n /**\n * If `true`, vertical padding will be removed from the list.\n */\n disablePadding: PropTypes.bool,\n\n /**\n * The content of the subheader, normally `ListSubheader`.\n */\n subheader: PropTypes.node\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiList'\n})(List);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport * as ReactDOM from 'react-dom';\nimport ownerDocument from '../utils/ownerDocument';\nimport List from '../List';\nimport getScrollbarSize from '../utils/getScrollbarSize';\nimport useForkRef from '../utils/useForkRef';\n\nfunction nextItem(list, item, disableListWrap) {\n if (list === item) {\n return list.firstChild;\n }\n\n if (item && item.nextElementSibling) {\n return item.nextElementSibling;\n }\n\n return disableListWrap ? null : list.firstChild;\n}\n\nfunction previousItem(list, item, disableListWrap) {\n if (list === item) {\n return disableListWrap ? list.firstChild : list.lastChild;\n }\n\n if (item && item.previousElementSibling) {\n return item.previousElementSibling;\n }\n\n return disableListWrap ? null : list.lastChild;\n}\n\nfunction textCriteriaMatches(nextFocus, textCriteria) {\n if (textCriteria === undefined) {\n return true;\n }\n\n var text = nextFocus.innerText;\n\n if (text === undefined) {\n // jsdom doesn't support innerText\n text = nextFocus.textContent;\n }\n\n text = text.trim().toLowerCase();\n\n if (text.length === 0) {\n return false;\n }\n\n if (textCriteria.repeating) {\n return text[0] === textCriteria.keys[0];\n }\n\n return text.indexOf(textCriteria.keys.join('')) === 0;\n}\n\nfunction moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable, traversalFunction, textCriteria) {\n var wrappedOnce = false;\n var nextFocus = traversalFunction(list, currentFocus, currentFocus ? disableListWrap : false);\n\n while (nextFocus) {\n // Prevent infinite loop.\n if (nextFocus === list.firstChild) {\n if (wrappedOnce) {\n return;\n }\n\n wrappedOnce = true;\n } // Same logic as useAutocomplete.js\n\n\n var nextFocusDisabled = disabledItemsFocusable ? false : nextFocus.disabled || nextFocus.getAttribute('aria-disabled') === 'true';\n\n if (!nextFocus.hasAttribute('tabindex') || !textCriteriaMatches(nextFocus, textCriteria) || nextFocusDisabled) {\n // Move to the next element.\n nextFocus = traversalFunction(list, nextFocus, disableListWrap);\n } else {\n nextFocus.focus();\n return;\n }\n }\n}\n\nvar useEnhancedEffect = typeof window === 'undefined' ? React.useEffect : React.useLayoutEffect;\n/**\n * A permanently displayed menu following https://www.w3.org/TR/wai-aria-practices/#menubutton.\n * It's exposed to help customization of the [`Menu`](/api/menu/) component. If you\n * use it separately you need to move focus into the component manually. Once\n * the focus is placed inside the component it is fully keyboard accessible.\n */\n\nvar MenuList = /*#__PURE__*/React.forwardRef(function MenuList(props, ref) {\n var actions = props.actions,\n _props$autoFocus = props.autoFocus,\n autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus,\n _props$autoFocusItem = props.autoFocusItem,\n autoFocusItem = _props$autoFocusItem === void 0 ? false : _props$autoFocusItem,\n children = props.children,\n className = props.className,\n _props$disabledItemsF = props.disabledItemsFocusable,\n disabledItemsFocusable = _props$disabledItemsF === void 0 ? false : _props$disabledItemsF,\n _props$disableListWra = props.disableListWrap,\n disableListWrap = _props$disableListWra === void 0 ? false : _props$disableListWra,\n onKeyDown = props.onKeyDown,\n _props$variant = props.variant,\n variant = _props$variant === void 0 ? 'selectedMenu' : _props$variant,\n other = _objectWithoutProperties(props, [\"actions\", \"autoFocus\", \"autoFocusItem\", \"children\", \"className\", \"disabledItemsFocusable\", \"disableListWrap\", \"onKeyDown\", \"variant\"]);\n\n var listRef = React.useRef(null);\n var textCriteriaRef = React.useRef({\n keys: [],\n repeating: true,\n previousKeyMatched: true,\n lastTime: null\n });\n useEnhancedEffect(function () {\n if (autoFocus) {\n listRef.current.focus();\n }\n }, [autoFocus]);\n React.useImperativeHandle(actions, function () {\n return {\n adjustStyleForScrollbar: function adjustStyleForScrollbar(containerElement, theme) {\n // Let's ignore that piece of logic if users are already overriding the width\n // of the menu.\n var noExplicitWidth = !listRef.current.style.width;\n\n if (containerElement.clientHeight < listRef.current.clientHeight && noExplicitWidth) {\n var scrollbarSize = \"\".concat(getScrollbarSize(true), \"px\");\n listRef.current.style[theme.direction === 'rtl' ? 'paddingLeft' : 'paddingRight'] = scrollbarSize;\n listRef.current.style.width = \"calc(100% + \".concat(scrollbarSize, \")\");\n }\n\n return listRef.current;\n }\n };\n }, []);\n\n var handleKeyDown = function handleKeyDown(event) {\n var list = listRef.current;\n var key = event.key;\n /**\n * @type {Element} - will always be defined since we are in a keydown handler\n * attached to an element. A keydown event is either dispatched to the activeElement\n * or document.body or document.documentElement. Only the first case will\n * trigger this specific handler.\n */\n\n var currentFocus = ownerDocument(list).activeElement;\n\n if (key === 'ArrowDown') {\n // Prevent scroll of the page\n event.preventDefault();\n moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable, nextItem);\n } else if (key === 'ArrowUp') {\n event.preventDefault();\n moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable, previousItem);\n } else if (key === 'Home') {\n event.preventDefault();\n moveFocus(list, null, disableListWrap, disabledItemsFocusable, nextItem);\n } else if (key === 'End') {\n event.preventDefault();\n moveFocus(list, null, disableListWrap, disabledItemsFocusable, previousItem);\n } else if (key.length === 1) {\n var criteria = textCriteriaRef.current;\n var lowerKey = key.toLowerCase();\n var currTime = performance.now();\n\n if (criteria.keys.length > 0) {\n // Reset\n if (currTime - criteria.lastTime > 500) {\n criteria.keys = [];\n criteria.repeating = true;\n criteria.previousKeyMatched = true;\n } else if (criteria.repeating && lowerKey !== criteria.keys[0]) {\n criteria.repeating = false;\n }\n }\n\n criteria.lastTime = currTime;\n criteria.keys.push(lowerKey);\n var keepFocusOnCurrent = currentFocus && !criteria.repeating && textCriteriaMatches(currentFocus, criteria);\n\n if (criteria.previousKeyMatched && (keepFocusOnCurrent || moveFocus(list, currentFocus, false, disabledItemsFocusable, nextItem, criteria))) {\n event.preventDefault();\n } else {\n criteria.previousKeyMatched = false;\n }\n }\n\n if (onKeyDown) {\n onKeyDown(event);\n }\n };\n\n var handleOwnRef = React.useCallback(function (instance) {\n // #StrictMode ready\n listRef.current = ReactDOM.findDOMNode(instance);\n }, []);\n var handleRef = useForkRef(handleOwnRef, ref);\n /**\n * the index of the item should receive focus\n * in a `variant=\"selectedMenu\"` it's the first `selected` item\n * otherwise it's the very first item.\n */\n\n var activeItemIndex = -1; // since we inject focus related props into children we have to do a lookahead\n // to check if there is a `selected` item. We're looking for the last `selected`\n // item and use the first valid item as a fallback\n\n React.Children.forEach(children, function (child, index) {\n if (! /*#__PURE__*/React.isValidElement(child)) {\n return;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (isFragment(child)) {\n console.error([\"Material-UI: The Menu component doesn't accept a Fragment as a child.\", 'Consider providing an array instead.'].join('\\n'));\n }\n }\n\n if (!child.props.disabled) {\n if (variant === 'selectedMenu' && child.props.selected) {\n activeItemIndex = index;\n } else if (activeItemIndex === -1) {\n activeItemIndex = index;\n }\n }\n });\n var items = React.Children.map(children, function (child, index) {\n if (index === activeItemIndex) {\n var newChildProps = {};\n\n if (autoFocusItem) {\n newChildProps.autoFocus = true;\n }\n\n if (child.props.tabIndex === undefined && variant === 'selectedMenu') {\n newChildProps.tabIndex = 0;\n }\n\n return /*#__PURE__*/React.cloneElement(child, newChildProps);\n }\n\n return child;\n });\n return /*#__PURE__*/React.createElement(List, _extends({\n role: \"menu\",\n ref: handleRef,\n className: className,\n onKeyDown: handleKeyDown,\n tabIndex: autoFocus ? 0 : -1\n }, other), items);\n});\nprocess.env.NODE_ENV !== \"production\" ? MenuList.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * If `true`, will focus the `[role=\"menu\"]` container and move into tab order.\n */\n autoFocus: PropTypes.bool,\n\n /**\n * If `true`, will focus the first menuitem if `variant=\"menu\"` or selected item\n * if `variant=\"selectedMenu\"`.\n */\n autoFocusItem: PropTypes.bool,\n\n /**\n * MenuList contents, normally `MenuItem`s.\n */\n children: PropTypes.node,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * If `true`, will allow focus on disabled items.\n */\n disabledItemsFocusable: PropTypes.bool,\n\n /**\n * If `true`, the menu items will not wrap focus.\n */\n disableListWrap: PropTypes.bool,\n\n /**\n * @ignore\n */\n onKeyDown: PropTypes.func,\n\n /**\n * The variant to use. Use `menu` to prevent selected items from impacting the initial focus\n * and the vertical alignment relative to the anchor element.\n */\n variant: PropTypes.oneOf(['menu', 'selectedMenu'])\n} : void 0;\nexport default MenuList;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { HTMLElementType } from '@material-ui/utils';\nimport withStyles from '../styles/withStyles';\nimport Popover from '../Popover';\nimport MenuList from '../MenuList';\nimport * as ReactDOM from 'react-dom';\nimport setRef from '../utils/setRef';\nimport useTheme from '../styles/useTheme';\nvar RTL_ORIGIN = {\n vertical: 'top',\n horizontal: 'right'\n};\nvar LTR_ORIGIN = {\n vertical: 'top',\n horizontal: 'left'\n};\nexport var styles = {\n /* Styles applied to the `Paper` component. */\n paper: {\n // specZ: The maximum height of a simple menu should be one or more rows less than the view\n // height. This ensures a tapable area outside of the simple menu with which to dismiss\n // the menu.\n maxHeight: 'calc(100% - 96px)',\n // Add iOS momentum scrolling.\n WebkitOverflowScrolling: 'touch'\n },\n\n /* Styles applied to the `List` component via `MenuList`. */\n list: {\n // We disable the focus ring for mouse, touch and keyboard users.\n outline: 0\n }\n};\nvar Menu = /*#__PURE__*/React.forwardRef(function Menu(props, ref) {\n var _props$autoFocus = props.autoFocus,\n autoFocus = _props$autoFocus === void 0 ? true : _props$autoFocus,\n children = props.children,\n classes = props.classes,\n _props$disableAutoFoc = props.disableAutoFocusItem,\n disableAutoFocusItem = _props$disableAutoFoc === void 0 ? false : _props$disableAutoFoc,\n _props$MenuListProps = props.MenuListProps,\n MenuListProps = _props$MenuListProps === void 0 ? {} : _props$MenuListProps,\n onClose = props.onClose,\n onEntering = props.onEntering,\n open = props.open,\n _props$PaperProps = props.PaperProps,\n PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps,\n PopoverClasses = props.PopoverClasses,\n _props$transitionDura = props.transitionDuration,\n transitionDuration = _props$transitionDura === void 0 ? 'auto' : _props$transitionDura,\n _props$variant = props.variant,\n variant = _props$variant === void 0 ? 'selectedMenu' : _props$variant,\n other = _objectWithoutProperties(props, [\"autoFocus\", \"children\", \"classes\", \"disableAutoFocusItem\", \"MenuListProps\", \"onClose\", \"onEntering\", \"open\", \"PaperProps\", \"PopoverClasses\", \"transitionDuration\", \"variant\"]);\n\n var theme = useTheme();\n var autoFocusItem = autoFocus && !disableAutoFocusItem && open;\n var menuListActionsRef = React.useRef(null);\n var contentAnchorRef = React.useRef(null);\n\n var getContentAnchorEl = function getContentAnchorEl() {\n return contentAnchorRef.current;\n };\n\n var handleEntering = function handleEntering(element, isAppearing) {\n if (menuListActionsRef.current) {\n menuListActionsRef.current.adjustStyleForScrollbar(element, theme);\n }\n\n if (onEntering) {\n onEntering(element, isAppearing);\n }\n };\n\n var handleListKeyDown = function handleListKeyDown(event) {\n if (event.key === 'Tab') {\n event.preventDefault();\n\n if (onClose) {\n onClose(event, 'tabKeyDown');\n }\n }\n };\n /**\n * the index of the item should receive focus\n * in a `variant=\"selectedMenu\"` it's the first `selected` item\n * otherwise it's the very first item.\n */\n\n\n var activeItemIndex = -1; // since we inject focus related props into children we have to do a lookahead\n // to check if there is a `selected` item. We're looking for the last `selected`\n // item and use the first valid item as a fallback\n\n React.Children.map(children, function (child, index) {\n if (! /*#__PURE__*/React.isValidElement(child)) {\n return;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (isFragment(child)) {\n console.error([\"Material-UI: The Menu component doesn't accept a Fragment as a child.\", 'Consider providing an array instead.'].join('\\n'));\n }\n }\n\n if (!child.props.disabled) {\n if (variant !== \"menu\" && child.props.selected) {\n activeItemIndex = index;\n } else if (activeItemIndex === -1) {\n activeItemIndex = index;\n }\n }\n });\n var items = React.Children.map(children, function (child, index) {\n if (index === activeItemIndex) {\n return /*#__PURE__*/React.cloneElement(child, {\n ref: function ref(instance) {\n // #StrictMode ready\n contentAnchorRef.current = ReactDOM.findDOMNode(instance);\n setRef(child.ref, instance);\n }\n });\n }\n\n return child;\n });\n return /*#__PURE__*/React.createElement(Popover, _extends({\n getContentAnchorEl: getContentAnchorEl,\n classes: PopoverClasses,\n onClose: onClose,\n onEntering: handleEntering,\n anchorOrigin: theme.direction === 'rtl' ? RTL_ORIGIN : LTR_ORIGIN,\n transformOrigin: theme.direction === 'rtl' ? RTL_ORIGIN : LTR_ORIGIN,\n PaperProps: _extends({}, PaperProps, {\n classes: _extends({}, PaperProps.classes, {\n root: classes.paper\n })\n }),\n open: open,\n ref: ref,\n transitionDuration: transitionDuration\n }, other), /*#__PURE__*/React.createElement(MenuList, _extends({\n onKeyDown: handleListKeyDown,\n actions: menuListActionsRef,\n autoFocus: autoFocus && (activeItemIndex === -1 || disableAutoFocusItem),\n autoFocusItem: autoFocusItem,\n variant: variant\n }, MenuListProps, {\n className: clsx(classes.list, MenuListProps.className)\n }), items));\n});\nprocess.env.NODE_ENV !== \"production\" ? Menu.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * A HTML element, or a function that returns it.\n * It's used to set the position of the menu.\n */\n anchorEl: PropTypes\n /* @typescript-to-proptypes-ignore */\n .oneOfType([HTMLElementType, PropTypes.func]),\n\n /**\n * If `true` (Default) will focus the `[role=\"menu\"]` if no focusable child is found. Disabled\n * children are not focusable. If you set this prop to `false` focus will be placed\n * on the parent modal container. This has severe accessibility implications\n * and should only be considered if you manage focus otherwise.\n */\n autoFocus: PropTypes.bool,\n\n /**\n * Menu contents, normally `MenuItem`s.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * When opening the menu will not focus the active item but the `[role=\"menu\"]`\n * unless `autoFocus` is also set to `false`. Not using the default means not\n * following WAI-ARIA authoring practices. Please be considerate about possible\n * accessibility implications.\n */\n disableAutoFocusItem: PropTypes.bool,\n\n /**\n * Props applied to the [`MenuList`](/api/menu-list/) element.\n */\n MenuListProps: PropTypes.object,\n\n /**\n * Callback fired when the component requests to be closed.\n *\n * @param {object} event The event source of the callback.\n * @param {string} reason Can be: `\"escapeKeyDown\"`, `\"backdropClick\"`, `\"tabKeyDown\"`.\n */\n onClose: PropTypes.func,\n\n /**\n * Callback fired before the Menu enters.\n */\n onEnter: PropTypes.func,\n\n /**\n * Callback fired when the Menu has entered.\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired when the Menu is entering.\n */\n onEntering: PropTypes.func,\n\n /**\n * Callback fired before the Menu exits.\n */\n onExit: PropTypes.func,\n\n /**\n * Callback fired when the Menu has exited.\n */\n onExited: PropTypes.func,\n\n /**\n * Callback fired when the Menu is exiting.\n */\n onExiting: PropTypes.func,\n\n /**\n * If `true`, the menu is visible.\n */\n open: PropTypes.bool.isRequired,\n\n /**\n * @ignore\n */\n PaperProps: PropTypes.object,\n\n /**\n * `classes` prop applied to the [`Popover`](/api/popover/) element.\n */\n PopoverClasses: PropTypes.object,\n\n /**\n * The length of the transition in `ms`, or 'auto'\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })]),\n\n /**\n * The variant to use. Use `menu` to prevent selected items from impacting the initial focus\n * and the vertical alignment relative to the anchor element.\n */\n variant: PropTypes.oneOf(['menu', 'selectedMenu'])\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiMenu'\n})(Menu);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { Transition } from 'react-transition-group';\nimport { duration } from '../styles/transitions';\nimport useTheme from '../styles/useTheme';\nimport { reflow, getTransitionProps } from '../transitions/utils';\nimport useForkRef from '../utils/useForkRef';\nvar styles = {\n entering: {\n opacity: 1\n },\n entered: {\n opacity: 1\n }\n};\nvar defaultTimeout = {\n enter: duration.enteringScreen,\n exit: duration.leavingScreen\n};\n/**\n * The Fade transition is used by the [Modal](/components/modal/) component.\n * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.\n */\n\nvar Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {\n var children = props.children,\n _props$disableStrictM = props.disableStrictModeCompat,\n disableStrictModeCompat = _props$disableStrictM === void 0 ? false : _props$disableStrictM,\n inProp = props.in,\n onEnter = props.onEnter,\n onEntered = props.onEntered,\n onEntering = props.onEntering,\n onExit = props.onExit,\n onExited = props.onExited,\n onExiting = props.onExiting,\n style = props.style,\n _props$TransitionComp = props.TransitionComponent,\n TransitionComponent = _props$TransitionComp === void 0 ? Transition : _props$TransitionComp,\n _props$timeout = props.timeout,\n timeout = _props$timeout === void 0 ? defaultTimeout : _props$timeout,\n other = _objectWithoutProperties(props, [\"children\", \"disableStrictModeCompat\", \"in\", \"onEnter\", \"onEntered\", \"onEntering\", \"onExit\", \"onExited\", \"onExiting\", \"style\", \"TransitionComponent\", \"timeout\"]);\n\n var theme = useTheme();\n var enableStrictModeCompat = theme.unstable_strictMode && !disableStrictModeCompat;\n var nodeRef = React.useRef(null);\n var foreignRef = useForkRef(children.ref, ref);\n var handleRef = useForkRef(enableStrictModeCompat ? nodeRef : undefined, foreignRef);\n\n var normalizedTransitionCallback = function normalizedTransitionCallback(callback) {\n return function (nodeOrAppearing, maybeAppearing) {\n if (callback) {\n var _ref = enableStrictModeCompat ? [nodeRef.current, nodeOrAppearing] : [nodeOrAppearing, maybeAppearing],\n _ref2 = _slicedToArray(_ref, 2),\n node = _ref2[0],\n isAppearing = _ref2[1]; // onEnterXxx and onExitXxx callbacks have a different arguments.length value.\n\n\n if (isAppearing === undefined) {\n callback(node);\n } else {\n callback(node, isAppearing);\n }\n }\n };\n };\n\n var handleEntering = normalizedTransitionCallback(onEntering);\n var handleEnter = normalizedTransitionCallback(function (node, isAppearing) {\n reflow(node); // So the animation always start from the start.\n\n var transitionProps = getTransitionProps({\n style: style,\n timeout: timeout\n }, {\n mode: 'enter'\n });\n node.style.webkitTransition = theme.transitions.create('opacity', transitionProps);\n node.style.transition = theme.transitions.create('opacity', transitionProps);\n\n if (onEnter) {\n onEnter(node, isAppearing);\n }\n });\n var handleEntered = normalizedTransitionCallback(onEntered);\n var handleExiting = normalizedTransitionCallback(onExiting);\n var handleExit = normalizedTransitionCallback(function (node) {\n var transitionProps = getTransitionProps({\n style: style,\n timeout: timeout\n }, {\n mode: 'exit'\n });\n node.style.webkitTransition = theme.transitions.create('opacity', transitionProps);\n node.style.transition = theme.transitions.create('opacity', transitionProps);\n\n if (onExit) {\n onExit(node);\n }\n });\n var handleExited = normalizedTransitionCallback(onExited);\n return /*#__PURE__*/React.createElement(TransitionComponent, _extends({\n appear: true,\n in: inProp,\n nodeRef: enableStrictModeCompat ? nodeRef : undefined,\n onEnter: handleEnter,\n onEntered: handleEntered,\n onEntering: handleEntering,\n onExit: handleExit,\n onExited: handleExited,\n onExiting: handleExiting,\n timeout: timeout\n }, other), function (state, childProps) {\n return /*#__PURE__*/React.cloneElement(children, _extends({\n style: _extends({\n opacity: 0,\n visibility: state === 'exited' && !inProp ? 'hidden' : undefined\n }, styles[state], style, children.props.style),\n ref: handleRef\n }, childProps));\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Fade.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * A single child content element.\n */\n children: PropTypes.element,\n\n /**\n * Enable this prop if you encounter 'Function components cannot be given refs',\n * use `unstable_createStrictModeTheme`,\n * and can't forward the ref in the child component.\n */\n disableStrictModeCompat: PropTypes.bool,\n\n /**\n * If `true`, the component will transition in.\n */\n in: PropTypes.bool,\n\n /**\n * @ignore\n */\n onEnter: PropTypes.func,\n\n /**\n * @ignore\n */\n onEntered: PropTypes.func,\n\n /**\n * @ignore\n */\n onEntering: PropTypes.func,\n\n /**\n * @ignore\n */\n onExit: PropTypes.func,\n\n /**\n * @ignore\n */\n onExited: PropTypes.func,\n\n /**\n * @ignore\n */\n onExiting: PropTypes.func,\n\n /**\n * @ignore\n */\n style: PropTypes.object,\n\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n */\n timeout: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nexport default Fade;","import warning from 'tiny-warning';\nimport { createRule } from 'jss';\n\nvar now = Date.now();\nvar fnValuesNs = \"fnValues\" + now;\nvar fnRuleNs = \"fnStyle\" + ++now;\n\nvar functionPlugin = function functionPlugin() {\n return {\n onCreateRule: function onCreateRule(name, decl, options) {\n if (typeof decl !== 'function') return null;\n var rule = createRule(name, {}, options);\n rule[fnRuleNs] = decl;\n return rule;\n },\n onProcessStyle: function onProcessStyle(style, rule) {\n // We need to extract function values from the declaration, so that we can keep core unaware of them.\n // We need to do that only once.\n // We don't need to extract functions on each style update, since this can happen only once.\n // We don't support function values inside of function rules.\n if (fnValuesNs in rule || fnRuleNs in rule) return style;\n var fnValues = {};\n\n for (var prop in style) {\n var value = style[prop];\n if (typeof value !== 'function') continue;\n delete style[prop];\n fnValues[prop] = value;\n } // $FlowFixMe[prop-missing]\n\n\n rule[fnValuesNs] = fnValues;\n return style;\n },\n onUpdate: function onUpdate(data, rule, sheet, options) {\n var styleRule = rule; // $FlowFixMe[prop-missing]\n\n var fnRule = styleRule[fnRuleNs]; // If we have a style function, the entire rule is dynamic and style object\n // will be returned from that function.\n\n if (fnRule) {\n // Empty object will remove all currently defined props\n // in case function rule returns a falsy value.\n styleRule.style = fnRule(data) || {};\n\n if (process.env.NODE_ENV === 'development') {\n for (var prop in styleRule.style) {\n if (typeof styleRule.style[prop] === 'function') {\n process.env.NODE_ENV !== \"production\" ? warning(false, '[JSS] Function values inside function rules are not supported.') : void 0;\n break;\n }\n }\n }\n } // $FlowFixMe[prop-missing]\n\n\n var fnValues = styleRule[fnValuesNs]; // If we have a fn values map, it is a rule with function values.\n\n if (fnValues) {\n for (var _prop in fnValues) {\n styleRule.prop(_prop, fnValues[_prop](data), options);\n }\n }\n }\n };\n};\n\nexport default functionPlugin;\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport { RuleList } from 'jss';\n\nvar at = '@global';\nvar atPrefix = '@global ';\n\nvar GlobalContainerRule =\n/*#__PURE__*/\nfunction () {\n function GlobalContainerRule(key, styles, options) {\n this.type = 'global';\n this.at = at;\n this.rules = void 0;\n this.options = void 0;\n this.key = void 0;\n this.isProcessed = false;\n this.key = key;\n this.options = options;\n this.rules = new RuleList(_extends({}, options, {\n parent: this\n }));\n\n for (var selector in styles) {\n this.rules.add(selector, styles[selector]);\n }\n\n this.rules.process();\n }\n /**\n * Get a rule.\n */\n\n\n var _proto = GlobalContainerRule.prototype;\n\n _proto.getRule = function getRule(name) {\n return this.rules.get(name);\n }\n /**\n * Create and register rule, run plugins.\n */\n ;\n\n _proto.addRule = function addRule(name, style, options) {\n var rule = this.rules.add(name, style, options);\n if (rule) this.options.jss.plugins.onProcessRule(rule);\n return rule;\n }\n /**\n * Get index of a rule.\n */\n ;\n\n _proto.indexOf = function indexOf(rule) {\n return this.rules.indexOf(rule);\n }\n /**\n * Generates a CSS string.\n */\n ;\n\n _proto.toString = function toString() {\n return this.rules.toString();\n };\n\n return GlobalContainerRule;\n}();\n\nvar GlobalPrefixedRule =\n/*#__PURE__*/\nfunction () {\n function GlobalPrefixedRule(key, style, options) {\n this.type = 'global';\n this.at = at;\n this.options = void 0;\n this.rule = void 0;\n this.isProcessed = false;\n this.key = void 0;\n this.key = key;\n this.options = options;\n var selector = key.substr(atPrefix.length);\n this.rule = options.jss.createRule(selector, style, _extends({}, options, {\n parent: this\n }));\n }\n\n var _proto2 = GlobalPrefixedRule.prototype;\n\n _proto2.toString = function toString(options) {\n return this.rule ? this.rule.toString(options) : '';\n };\n\n return GlobalPrefixedRule;\n}();\n\nvar separatorRegExp = /\\s*,\\s*/g;\n\nfunction addScope(selector, scope) {\n var parts = selector.split(separatorRegExp);\n var scoped = '';\n\n for (var i = 0; i < parts.length; i++) {\n scoped += scope + \" \" + parts[i].trim();\n if (parts[i + 1]) scoped += ', ';\n }\n\n return scoped;\n}\n\nfunction handleNestedGlobalContainerRule(rule, sheet) {\n var options = rule.options,\n style = rule.style;\n var rules = style ? style[at] : null;\n if (!rules) return;\n\n for (var name in rules) {\n sheet.addRule(name, rules[name], _extends({}, options, {\n selector: addScope(name, rule.selector)\n }));\n }\n\n delete style[at];\n}\n\nfunction handlePrefixedGlobalRule(rule, sheet) {\n var options = rule.options,\n style = rule.style;\n\n for (var prop in style) {\n if (prop[0] !== '@' || prop.substr(0, at.length) !== at) continue;\n var selector = addScope(prop.substr(at.length), rule.selector);\n sheet.addRule(selector, style[prop], _extends({}, options, {\n selector: selector\n }));\n delete style[prop];\n }\n}\n/**\n * Convert nested rules to separate, remove them from original styles.\n *\n * @param {Rule} rule\n * @api public\n */\n\n\nfunction jssGlobal() {\n function onCreateRule(name, styles, options) {\n if (!name) return null;\n\n if (name === at) {\n return new GlobalContainerRule(name, styles, options);\n }\n\n if (name[0] === '@' && name.substr(0, atPrefix.length) === atPrefix) {\n return new GlobalPrefixedRule(name, styles, options);\n }\n\n var parent = options.parent;\n\n if (parent) {\n if (parent.type === 'global' || parent.options.parent && parent.options.parent.type === 'global') {\n options.scoped = false;\n }\n }\n\n if (options.scoped === false) {\n options.selector = name;\n }\n\n return null;\n }\n\n function onProcessRule(rule, sheet) {\n if (rule.type !== 'style' || !sheet) return;\n handleNestedGlobalContainerRule(rule, sheet);\n handlePrefixedGlobalRule(rule, sheet);\n }\n\n return {\n onCreateRule: onCreateRule,\n onProcessRule: onProcessRule\n };\n}\n\nexport default jssGlobal;\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport warning from 'tiny-warning';\n\nvar separatorRegExp = /\\s*,\\s*/g;\nvar parentRegExp = /&/g;\nvar refRegExp = /\\$([\\w-]+)/g;\n/**\n * Convert nested rules to separate, remove them from original styles.\n *\n * @param {Rule} rule\n * @api public\n */\n\nfunction jssNested() {\n // Get a function to be used for $ref replacement.\n function getReplaceRef(container, sheet) {\n return function (match, key) {\n var rule = container.getRule(key) || sheet && sheet.getRule(key);\n\n if (rule) {\n rule = rule;\n return rule.selector;\n }\n\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Could not find the referenced rule \\\"\" + key + \"\\\" in \\\"\" + (container.options.meta || container.toString()) + \"\\\".\") : void 0;\n return key;\n };\n }\n\n function replaceParentRefs(nestedProp, parentProp) {\n var parentSelectors = parentProp.split(separatorRegExp);\n var nestedSelectors = nestedProp.split(separatorRegExp);\n var result = '';\n\n for (var i = 0; i < parentSelectors.length; i++) {\n var parent = parentSelectors[i];\n\n for (var j = 0; j < nestedSelectors.length; j++) {\n var nested = nestedSelectors[j];\n if (result) result += ', '; // Replace all & by the parent or prefix & with the parent.\n\n result += nested.indexOf('&') !== -1 ? nested.replace(parentRegExp, parent) : parent + \" \" + nested;\n }\n }\n\n return result;\n }\n\n function getOptions(rule, container, prevOptions) {\n // Options has been already created, now we only increase index.\n if (prevOptions) return _extends({}, prevOptions, {\n index: prevOptions.index + 1 // $FlowFixMe[prop-missing]\n\n });\n var nestingLevel = rule.options.nestingLevel;\n nestingLevel = nestingLevel === undefined ? 1 : nestingLevel + 1;\n\n var options = _extends({}, rule.options, {\n nestingLevel: nestingLevel,\n index: container.indexOf(rule) + 1 // We don't need the parent name to be set options for chlid.\n\n });\n\n delete options.name;\n return options;\n }\n\n function onProcessStyle(style, rule, sheet) {\n if (rule.type !== 'style') return style;\n var styleRule = rule;\n var container = styleRule.options.parent;\n var options;\n var replaceRef;\n\n for (var prop in style) {\n var isNested = prop.indexOf('&') !== -1;\n var isNestedConditional = prop[0] === '@';\n if (!isNested && !isNestedConditional) continue;\n options = getOptions(styleRule, container, options);\n\n if (isNested) {\n var selector = replaceParentRefs(prop, styleRule.selector); // Lazily create the ref replacer function just once for\n // all nested rules within the sheet.\n\n if (!replaceRef) replaceRef = getReplaceRef(container, sheet); // Replace all $refs.\n\n selector = selector.replace(refRegExp, replaceRef);\n container.addRule(selector, style[prop], _extends({}, options, {\n selector: selector\n }));\n } else if (isNestedConditional) {\n // Place conditional right after the parent rule to ensure right ordering.\n container.addRule(prop, {}, options) // Flow expects more options but they aren't required\n // And flow doesn't know this will always be a StyleRule which has the addRule method\n // $FlowFixMe[incompatible-use]\n // $FlowFixMe[prop-missing]\n .addRule(styleRule.key, style[prop], {\n selector: styleRule.selector\n });\n }\n\n delete style[prop];\n }\n\n return style;\n }\n\n return {\n onProcessStyle: onProcessStyle\n };\n}\n\nexport default jssNested;\n","/* eslint-disable no-var, prefer-template */\nvar uppercasePattern = /[A-Z]/g\nvar msPattern = /^ms-/\nvar cache = {}\n\nfunction toHyphenLower(match) {\n return '-' + match.toLowerCase()\n}\n\nfunction hyphenateStyleName(name) {\n if (cache.hasOwnProperty(name)) {\n return cache[name]\n }\n\n var hName = name.replace(uppercasePattern, toHyphenLower)\n return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)\n}\n\nexport default hyphenateStyleName\n","import hyphenate from 'hyphenate-style-name';\n\n/**\n * Convert camel cased property names to dash separated.\n *\n * @param {Object} style\n * @return {Object}\n */\n\nfunction convertCase(style) {\n var converted = {};\n\n for (var prop in style) {\n var key = prop.indexOf('--') === 0 ? prop : hyphenate(prop);\n converted[key] = style[prop];\n }\n\n if (style.fallbacks) {\n if (Array.isArray(style.fallbacks)) converted.fallbacks = style.fallbacks.map(convertCase);else converted.fallbacks = convertCase(style.fallbacks);\n }\n\n return converted;\n}\n/**\n * Allow camel cased property names by converting them back to dasherized.\n *\n * @param {Rule} rule\n */\n\n\nfunction camelCase() {\n function onProcessStyle(style) {\n if (Array.isArray(style)) {\n // Handle rules like @font-face, which can have multiple styles in an array\n for (var index = 0; index < style.length; index++) {\n style[index] = convertCase(style[index]);\n }\n\n return style;\n }\n\n return convertCase(style);\n }\n\n function onChangeValue(value, prop, rule) {\n if (prop.indexOf('--') === 0) {\n return value;\n }\n\n var hyphenatedProp = hyphenate(prop); // There was no camel case in place\n\n if (prop === hyphenatedProp) return value;\n rule.prop(hyphenatedProp, value); // Core will ignore that property value we set the proper one above.\n\n return null;\n }\n\n return {\n onProcessStyle: onProcessStyle,\n onChangeValue: onChangeValue\n };\n}\n\nexport default camelCase;\n","import { hasCSSTOMSupport } from 'jss';\n\nvar px = hasCSSTOMSupport && CSS ? CSS.px : 'px';\nvar ms = hasCSSTOMSupport && CSS ? CSS.ms : 'ms';\nvar percent = hasCSSTOMSupport && CSS ? CSS.percent : '%';\n/**\n * Generated jss-plugin-default-unit CSS property units\n *\n * @type object\n */\n\nvar defaultUnits = {\n // Animation properties\n 'animation-delay': ms,\n 'animation-duration': ms,\n // Background properties\n 'background-position': px,\n 'background-position-x': px,\n 'background-position-y': px,\n 'background-size': px,\n // Border Properties\n border: px,\n 'border-bottom': px,\n 'border-bottom-left-radius': px,\n 'border-bottom-right-radius': px,\n 'border-bottom-width': px,\n 'border-left': px,\n 'border-left-width': px,\n 'border-radius': px,\n 'border-right': px,\n 'border-right-width': px,\n 'border-top': px,\n 'border-top-left-radius': px,\n 'border-top-right-radius': px,\n 'border-top-width': px,\n 'border-width': px,\n 'border-block': px,\n 'border-block-end': px,\n 'border-block-end-width': px,\n 'border-block-start': px,\n 'border-block-start-width': px,\n 'border-block-width': px,\n 'border-inline': px,\n 'border-inline-end': px,\n 'border-inline-end-width': px,\n 'border-inline-start': px,\n 'border-inline-start-width': px,\n 'border-inline-width': px,\n 'border-start-start-radius': px,\n 'border-start-end-radius': px,\n 'border-end-start-radius': px,\n 'border-end-end-radius': px,\n // Margin properties\n margin: px,\n 'margin-bottom': px,\n 'margin-left': px,\n 'margin-right': px,\n 'margin-top': px,\n 'margin-block': px,\n 'margin-block-end': px,\n 'margin-block-start': px,\n 'margin-inline': px,\n 'margin-inline-end': px,\n 'margin-inline-start': px,\n // Padding properties\n padding: px,\n 'padding-bottom': px,\n 'padding-left': px,\n 'padding-right': px,\n 'padding-top': px,\n 'padding-block': px,\n 'padding-block-end': px,\n 'padding-block-start': px,\n 'padding-inline': px,\n 'padding-inline-end': px,\n 'padding-inline-start': px,\n // Mask properties\n 'mask-position-x': px,\n 'mask-position-y': px,\n 'mask-size': px,\n // Width and height properties\n height: px,\n width: px,\n 'min-height': px,\n 'max-height': px,\n 'min-width': px,\n 'max-width': px,\n // Position properties\n bottom: px,\n left: px,\n top: px,\n right: px,\n inset: px,\n 'inset-block': px,\n 'inset-block-end': px,\n 'inset-block-start': px,\n 'inset-inline': px,\n 'inset-inline-end': px,\n 'inset-inline-start': px,\n // Shadow properties\n 'box-shadow': px,\n 'text-shadow': px,\n // Column properties\n 'column-gap': px,\n 'column-rule': px,\n 'column-rule-width': px,\n 'column-width': px,\n // Font and text properties\n 'font-size': px,\n 'font-size-delta': px,\n 'letter-spacing': px,\n 'text-indent': px,\n 'text-stroke': px,\n 'text-stroke-width': px,\n 'word-spacing': px,\n // Motion properties\n motion: px,\n 'motion-offset': px,\n // Outline properties\n outline: px,\n 'outline-offset': px,\n 'outline-width': px,\n // Perspective properties\n perspective: px,\n 'perspective-origin-x': percent,\n 'perspective-origin-y': percent,\n // Transform properties\n 'transform-origin': percent,\n 'transform-origin-x': percent,\n 'transform-origin-y': percent,\n 'transform-origin-z': percent,\n // Transition properties\n 'transition-delay': ms,\n 'transition-duration': ms,\n // Alignment properties\n 'vertical-align': px,\n 'flex-basis': px,\n // Some random properties\n 'shape-margin': px,\n size: px,\n gap: px,\n // Grid properties\n grid: px,\n 'grid-gap': px,\n 'grid-row-gap': px,\n 'grid-column-gap': px,\n 'grid-template-rows': px,\n 'grid-template-columns': px,\n 'grid-auto-rows': px,\n 'grid-auto-columns': px,\n // Not existing properties.\n // Used to avoid issues with jss-plugin-expand integration.\n 'box-shadow-x': px,\n 'box-shadow-y': px,\n 'box-shadow-blur': px,\n 'box-shadow-spread': px,\n 'font-line-height': px,\n 'text-shadow-x': px,\n 'text-shadow-y': px,\n 'text-shadow-blur': px\n};\n\n/**\n * Clones the object and adds a camel cased property version.\n */\nfunction addCamelCasedVersion(obj) {\n var regExp = /(-[a-z])/g;\n\n var replace = function replace(str) {\n return str[1].toUpperCase();\n };\n\n var newObj = {};\n\n for (var _key in obj) {\n newObj[_key] = obj[_key];\n newObj[_key.replace(regExp, replace)] = obj[_key];\n }\n\n return newObj;\n}\n\nvar units = addCamelCasedVersion(defaultUnits);\n/**\n * Recursive deep style passing function\n */\n\nfunction iterate(prop, value, options) {\n if (value == null) return value;\n\n if (Array.isArray(value)) {\n for (var i = 0; i < value.length; i++) {\n value[i] = iterate(prop, value[i], options);\n }\n } else if (typeof value === 'object') {\n if (prop === 'fallbacks') {\n for (var innerProp in value) {\n value[innerProp] = iterate(innerProp, value[innerProp], options);\n }\n } else {\n for (var _innerProp in value) {\n value[_innerProp] = iterate(prop + \"-\" + _innerProp, value[_innerProp], options);\n }\n }\n } else if (typeof value === 'number') {\n var unit = options[prop] || units[prop]; // Add the unit if available, except for the special case of 0px.\n\n if (unit && !(value === 0 && unit === px)) {\n return typeof unit === 'function' ? unit(value).toString() : \"\" + value + unit;\n }\n\n return value.toString();\n }\n\n return value;\n}\n/**\n * Add unit to numeric values.\n */\n\n\nfunction defaultUnit(options) {\n if (options === void 0) {\n options = {};\n }\n\n var camelCasedOptions = addCamelCasedVersion(options);\n\n function onProcessStyle(style, rule) {\n if (rule.type !== 'style') return style;\n\n for (var prop in style) {\n style[prop] = iterate(prop, style[prop], camelCasedOptions);\n }\n\n return style;\n }\n\n function onChangeValue(value, prop) {\n return iterate(prop, value, camelCasedOptions);\n }\n\n return {\n onProcessStyle: onProcessStyle,\n onChangeValue: onChangeValue\n };\n}\n\nexport default defaultUnit;\n","import isInBrowser from 'is-in-browser';\nimport _toConsumableArray from '@babel/runtime/helpers/esm/toConsumableArray';\n\n// Export javascript style and css style vendor prefixes.\nvar js = '';\nvar css = '';\nvar vendor = '';\nvar browser = '';\nvar isTouch = isInBrowser && 'ontouchstart' in document.documentElement; // We should not do anything if required serverside.\n\nif (isInBrowser) {\n // Order matters. We need to check Webkit the last one because\n // other vendors use to add Webkit prefixes to some properties\n var jsCssMap = {\n Moz: '-moz-',\n ms: '-ms-',\n O: '-o-',\n Webkit: '-webkit-'\n };\n\n var _document$createEleme = document.createElement('p'),\n style = _document$createEleme.style;\n\n var testProp = 'Transform';\n\n for (var key in jsCssMap) {\n if (key + testProp in style) {\n js = key;\n css = jsCssMap[key];\n break;\n }\n } // Correctly detect the Edge browser.\n\n\n if (js === 'Webkit' && 'msHyphens' in style) {\n js = 'ms';\n css = jsCssMap.ms;\n browser = 'edge';\n } // Correctly detect the Safari browser.\n\n\n if (js === 'Webkit' && '-apple-trailing-word' in style) {\n vendor = 'apple';\n }\n}\n/**\n * Vendor prefix string for the current browser.\n *\n * @type {{js: String, css: String, vendor: String, browser: String}}\n * @api public\n */\n\n\nvar prefix = {\n js: js,\n css: css,\n vendor: vendor,\n browser: browser,\n isTouch: isTouch\n};\n\n/**\n * Test if a keyframe at-rule should be prefixed or not\n *\n * @param {String} vendor prefix string for the current browser.\n * @return {String}\n * @api public\n */\n\nfunction supportedKeyframes(key) {\n // Keyframes is already prefixed. e.g. key = '@-webkit-keyframes a'\n if (key[1] === '-') return key; // No need to prefix IE/Edge. Older browsers will ignore unsupported rules.\n // https://caniuse.com/#search=keyframes\n\n if (prefix.js === 'ms') return key;\n return \"@\" + prefix.css + \"keyframes\" + key.substr(10);\n}\n\n// https://caniuse.com/#search=appearance\n\nvar appearence = {\n noPrefill: ['appearance'],\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'appearance') return false;\n if (prefix.js === 'ms') return \"-webkit-\" + prop;\n return prefix.css + prop;\n }\n};\n\n// https://caniuse.com/#search=color-adjust\n\nvar colorAdjust = {\n noPrefill: ['color-adjust'],\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'color-adjust') return false;\n if (prefix.js === 'Webkit') return prefix.css + \"print-\" + prop;\n return prop;\n }\n};\n\nvar regExp = /[-\\s]+(.)?/g;\n/**\n * Replaces the letter with the capital letter\n *\n * @param {String} match\n * @param {String} c\n * @return {String}\n * @api private\n */\n\nfunction toUpper(match, c) {\n return c ? c.toUpperCase() : '';\n}\n/**\n * Convert dash separated strings to camel-cased.\n *\n * @param {String} str\n * @return {String}\n * @api private\n */\n\n\nfunction camelize(str) {\n return str.replace(regExp, toUpper);\n}\n\n/**\n * Convert dash separated strings to pascal cased.\n *\n * @param {String} str\n * @return {String}\n * @api private\n */\n\nfunction pascalize(str) {\n return camelize(\"-\" + str);\n}\n\n// but we can use a longhand property instead.\n// https://caniuse.com/#search=mask\n\nvar mask = {\n noPrefill: ['mask'],\n supportedProperty: function supportedProperty(prop, style) {\n if (!/^mask/.test(prop)) return false;\n\n if (prefix.js === 'Webkit') {\n var longhand = 'mask-image';\n\n if (camelize(longhand) in style) {\n return prop;\n }\n\n if (prefix.js + pascalize(longhand) in style) {\n return prefix.css + prop;\n }\n }\n\n return prop;\n }\n};\n\n// https://caniuse.com/#search=text-orientation\n\nvar textOrientation = {\n noPrefill: ['text-orientation'],\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'text-orientation') return false;\n\n if (prefix.vendor === 'apple' && !prefix.isTouch) {\n return prefix.css + prop;\n }\n\n return prop;\n }\n};\n\n// https://caniuse.com/#search=transform\n\nvar transform = {\n noPrefill: ['transform'],\n supportedProperty: function supportedProperty(prop, style, options) {\n if (prop !== 'transform') return false;\n\n if (options.transform) {\n return prop;\n }\n\n return prefix.css + prop;\n }\n};\n\n// https://caniuse.com/#search=transition\n\nvar transition = {\n noPrefill: ['transition'],\n supportedProperty: function supportedProperty(prop, style, options) {\n if (prop !== 'transition') return false;\n\n if (options.transition) {\n return prop;\n }\n\n return prefix.css + prop;\n }\n};\n\n// https://caniuse.com/#search=writing-mode\n\nvar writingMode = {\n noPrefill: ['writing-mode'],\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'writing-mode') return false;\n\n if (prefix.js === 'Webkit' || prefix.js === 'ms' && prefix.browser !== 'edge') {\n return prefix.css + prop;\n }\n\n return prop;\n }\n};\n\n// https://caniuse.com/#search=user-select\n\nvar userSelect = {\n noPrefill: ['user-select'],\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'user-select') return false;\n\n if (prefix.js === 'Moz' || prefix.js === 'ms' || prefix.vendor === 'apple') {\n return prefix.css + prop;\n }\n\n return prop;\n }\n};\n\n// https://caniuse.com/#search=multicolumn\n// https://github.com/postcss/autoprefixer/issues/491\n// https://github.com/postcss/autoprefixer/issues/177\n\nvar breakPropsOld = {\n supportedProperty: function supportedProperty(prop, style) {\n if (!/^break-/.test(prop)) return false;\n\n if (prefix.js === 'Webkit') {\n var jsProp = \"WebkitColumn\" + pascalize(prop);\n return jsProp in style ? prefix.css + \"column-\" + prop : false;\n }\n\n if (prefix.js === 'Moz') {\n var _jsProp = \"page\" + pascalize(prop);\n\n return _jsProp in style ? \"page-\" + prop : false;\n }\n\n return false;\n }\n};\n\n// See https://github.com/postcss/autoprefixer/issues/324.\n\nvar inlineLogicalOld = {\n supportedProperty: function supportedProperty(prop, style) {\n if (!/^(border|margin|padding)-inline/.test(prop)) return false;\n if (prefix.js === 'Moz') return prop;\n var newProp = prop.replace('-inline', '');\n return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;\n }\n};\n\n// Camelization is required because we can't test using.\n// CSS syntax for e.g. in FF.\n\nvar unprefixed = {\n supportedProperty: function supportedProperty(prop, style) {\n return camelize(prop) in style ? prop : false;\n }\n};\n\nvar prefixed = {\n supportedProperty: function supportedProperty(prop, style) {\n var pascalized = pascalize(prop); // Return custom CSS variable without prefixing.\n\n if (prop[0] === '-') return prop; // Return already prefixed value without prefixing.\n\n if (prop[0] === '-' && prop[1] === '-') return prop;\n if (prefix.js + pascalized in style) return prefix.css + prop; // Try webkit fallback.\n\n if (prefix.js !== 'Webkit' && \"Webkit\" + pascalized in style) return \"-webkit-\" + prop;\n return false;\n }\n};\n\n// https://caniuse.com/#search=scroll-snap\n\nvar scrollSnap = {\n supportedProperty: function supportedProperty(prop) {\n if (prop.substring(0, 11) !== 'scroll-snap') return false;\n\n if (prefix.js === 'ms') {\n return \"\" + prefix.css + prop;\n }\n\n return prop;\n }\n};\n\n// https://caniuse.com/#search=overscroll-behavior\n\nvar overscrollBehavior = {\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'overscroll-behavior') return false;\n\n if (prefix.js === 'ms') {\n return prefix.css + \"scroll-chaining\";\n }\n\n return prop;\n }\n};\n\nvar propMap = {\n 'flex-grow': 'flex-positive',\n 'flex-shrink': 'flex-negative',\n 'flex-basis': 'flex-preferred-size',\n 'justify-content': 'flex-pack',\n order: 'flex-order',\n 'align-items': 'flex-align',\n 'align-content': 'flex-line-pack' // 'align-self' is handled by 'align-self' plugin.\n\n}; // Support old flex spec from 2012.\n\nvar flex2012 = {\n supportedProperty: function supportedProperty(prop, style) {\n var newProp = propMap[prop];\n if (!newProp) return false;\n return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;\n }\n};\n\nvar propMap$1 = {\n flex: 'box-flex',\n 'flex-grow': 'box-flex',\n 'flex-direction': ['box-orient', 'box-direction'],\n order: 'box-ordinal-group',\n 'align-items': 'box-align',\n 'flex-flow': ['box-orient', 'box-direction'],\n 'justify-content': 'box-pack'\n};\nvar propKeys = Object.keys(propMap$1);\n\nvar prefixCss = function prefixCss(p) {\n return prefix.css + p;\n}; // Support old flex spec from 2009.\n\n\nvar flex2009 = {\n supportedProperty: function supportedProperty(prop, style, _ref) {\n var multiple = _ref.multiple;\n\n if (propKeys.indexOf(prop) > -1) {\n var newProp = propMap$1[prop];\n\n if (!Array.isArray(newProp)) {\n return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;\n }\n\n if (!multiple) return false;\n\n for (var i = 0; i < newProp.length; i++) {\n if (!(prefix.js + pascalize(newProp[0]) in style)) {\n return false;\n }\n }\n\n return newProp.map(prefixCss);\n }\n\n return false;\n }\n};\n\n// plugins = [\n// ...plugins,\n// breakPropsOld,\n// inlineLogicalOld,\n// unprefixed,\n// prefixed,\n// scrollSnap,\n// flex2012,\n// flex2009\n// ]\n// Plugins without 'noPrefill' value, going last.\n// 'flex-*' plugins should be at the bottom.\n// 'flex2009' going after 'flex2012'.\n// 'prefixed' going after 'unprefixed'\n\nvar plugins = [appearence, colorAdjust, mask, textOrientation, transform, transition, writingMode, userSelect, breakPropsOld, inlineLogicalOld, unprefixed, prefixed, scrollSnap, overscrollBehavior, flex2012, flex2009];\nvar propertyDetectors = plugins.filter(function (p) {\n return p.supportedProperty;\n}).map(function (p) {\n return p.supportedProperty;\n});\nvar noPrefill = plugins.filter(function (p) {\n return p.noPrefill;\n}).reduce(function (a, p) {\n a.push.apply(a, _toConsumableArray(p.noPrefill));\n return a;\n}, []);\n\nvar el;\nvar cache = {};\n\nif (isInBrowser) {\n el = document.createElement('p'); // We test every property on vendor prefix requirement.\n // Once tested, result is cached. It gives us up to 70% perf boost.\n // http://jsperf.com/element-style-object-access-vs-plain-object\n //\n // Prefill cache with known css properties to reduce amount of\n // properties we need to feature test at runtime.\n // http://davidwalsh.name/vendor-prefix\n\n var computed = window.getComputedStyle(document.documentElement, '');\n\n for (var key$1 in computed) {\n // eslint-disable-next-line no-restricted-globals\n if (!isNaN(key$1)) cache[computed[key$1]] = computed[key$1];\n } // Properties that cannot be correctly detected using the\n // cache prefill method.\n\n\n noPrefill.forEach(function (x) {\n return delete cache[x];\n });\n}\n/**\n * Test if a property is supported, returns supported property with vendor\n * prefix if required. Returns `false` if not supported.\n *\n * @param {String} prop dash separated\n * @param {Object} [options]\n * @return {String|Boolean}\n * @api public\n */\n\n\nfunction supportedProperty(prop, options) {\n if (options === void 0) {\n options = {};\n }\n\n // For server-side rendering.\n if (!el) return prop; // Remove cache for benchmark tests or return property from the cache.\n\n if (process.env.NODE_ENV !== 'benchmark' && cache[prop] != null) {\n return cache[prop];\n } // Check if 'transition' or 'transform' natively supported in browser.\n\n\n if (prop === 'transition' || prop === 'transform') {\n options[prop] = prop in el.style;\n } // Find a plugin for current prefix property.\n\n\n for (var i = 0; i < propertyDetectors.length; i++) {\n cache[prop] = propertyDetectors[i](prop, el.style, options); // Break loop, if value found.\n\n if (cache[prop]) break;\n } // Reset styles for current property.\n // Firefox can even throw an error for invalid properties, e.g., \"0\".\n\n\n try {\n el.style[prop] = '';\n } catch (err) {\n return false;\n }\n\n return cache[prop];\n}\n\nvar cache$1 = {};\nvar transitionProperties = {\n transition: 1,\n 'transition-property': 1,\n '-webkit-transition': 1,\n '-webkit-transition-property': 1\n};\nvar transPropsRegExp = /(^\\s*[\\w-]+)|, (\\s*[\\w-]+)(?![^()]*\\))/g;\nvar el$1;\n/**\n * Returns prefixed value transition/transform if needed.\n *\n * @param {String} match\n * @param {String} p1\n * @param {String} p2\n * @return {String}\n * @api private\n */\n\nfunction prefixTransitionCallback(match, p1, p2) {\n if (p1 === 'var') return 'var';\n if (p1 === 'all') return 'all';\n if (p2 === 'all') return ', all';\n var prefixedValue = p1 ? supportedProperty(p1) : \", \" + supportedProperty(p2);\n if (!prefixedValue) return p1 || p2;\n return prefixedValue;\n}\n\nif (isInBrowser) el$1 = document.createElement('p');\n/**\n * Returns prefixed value if needed. Returns `false` if value is not supported.\n *\n * @param {String} property\n * @param {String} value\n * @return {String|Boolean}\n * @api public\n */\n\nfunction supportedValue(property, value) {\n // For server-side rendering.\n var prefixedValue = value;\n if (!el$1 || property === 'content') return value; // It is a string or a number as a string like '1'.\n // We want only prefixable values here.\n // eslint-disable-next-line no-restricted-globals\n\n if (typeof prefixedValue !== 'string' || !isNaN(parseInt(prefixedValue, 10))) {\n return prefixedValue;\n } // Create cache key for current value.\n\n\n var cacheKey = property + prefixedValue; // Remove cache for benchmark tests or return value from cache.\n\n if (process.env.NODE_ENV !== 'benchmark' && cache$1[cacheKey] != null) {\n return cache$1[cacheKey];\n } // IE can even throw an error in some cases, for e.g. style.content = 'bar'.\n\n\n try {\n // Test value as it is.\n el$1.style[property] = prefixedValue;\n } catch (err) {\n // Return false if value not supported.\n cache$1[cacheKey] = false;\n return false;\n } // If 'transition' or 'transition-property' property.\n\n\n if (transitionProperties[property]) {\n prefixedValue = prefixedValue.replace(transPropsRegExp, prefixTransitionCallback);\n } else if (el$1.style[property] === '') {\n // Value with a vendor prefix.\n prefixedValue = prefix.css + prefixedValue; // Hardcode test to convert \"flex\" to \"-ms-flexbox\" for IE10.\n\n if (prefixedValue === '-ms-flex') el$1.style[property] = '-ms-flexbox'; // Test prefixed value.\n\n el$1.style[property] = prefixedValue; // Return false if value not supported.\n\n if (el$1.style[property] === '') {\n cache$1[cacheKey] = false;\n return false;\n }\n } // Reset styles for current property.\n\n\n el$1.style[property] = ''; // Write current value to cache.\n\n cache$1[cacheKey] = prefixedValue;\n return cache$1[cacheKey];\n}\n\nexport { prefix, supportedKeyframes, supportedProperty, supportedValue };\n","import { supportedKeyframes, supportedValue, supportedProperty } from 'css-vendor';\nimport { toCssValue } from 'jss';\n\n/**\n * Add vendor prefix to a property name when needed.\n *\n * @api public\n */\n\nfunction jssVendorPrefixer() {\n function onProcessRule(rule) {\n if (rule.type === 'keyframes') {\n var atRule = rule;\n atRule.at = supportedKeyframes(atRule.at);\n }\n }\n\n function prefixStyle(style) {\n for (var prop in style) {\n var value = style[prop];\n\n if (prop === 'fallbacks' && Array.isArray(value)) {\n style[prop] = value.map(prefixStyle);\n continue;\n }\n\n var changeProp = false;\n var supportedProp = supportedProperty(prop);\n if (supportedProp && supportedProp !== prop) changeProp = true;\n var changeValue = false;\n var supportedValue$1 = supportedValue(supportedProp, toCssValue(value));\n if (supportedValue$1 && supportedValue$1 !== value) changeValue = true;\n\n if (changeProp || changeValue) {\n if (changeProp) delete style[prop];\n style[supportedProp || prop] = supportedValue$1 || value;\n }\n }\n\n return style;\n }\n\n function onProcessStyle(style, rule) {\n if (rule.type !== 'style') return style;\n return prefixStyle(style);\n }\n\n function onChangeValue(value, prop) {\n return supportedValue(prop, toCssValue(value)) || value;\n }\n\n return {\n onProcessRule: onProcessRule,\n onProcessStyle: onProcessStyle,\n onChangeValue: onChangeValue\n };\n}\n\nexport default jssVendorPrefixer;\n","/**\n * Sort props by length.\n */\nfunction jssPropsSort() {\n var sort = function sort(prop0, prop1) {\n if (prop0.length === prop1.length) {\n return prop0 > prop1 ? 1 : -1;\n }\n\n return prop0.length - prop1.length;\n };\n\n return {\n onProcessStyle: function onProcessStyle(style, rule) {\n if (rule.type !== 'style') return style;\n var newStyle = {};\n var props = Object.keys(style).sort(sort);\n\n for (var i = 0; i < props.length; i++) {\n newStyle[props[i]] = style[props[i]];\n }\n\n return newStyle;\n }\n };\n}\n\nexport default jssPropsSort;\n","import functions from 'jss-plugin-rule-value-function';\nimport global from 'jss-plugin-global';\nimport nested from 'jss-plugin-nested';\nimport camelCase from 'jss-plugin-camel-case';\nimport defaultUnit from 'jss-plugin-default-unit';\nimport vendorPrefixer from 'jss-plugin-vendor-prefixer';\nimport propsSort from 'jss-plugin-props-sort'; // Subset of jss-preset-default with only the plugins the Material-UI components are using.\n\nexport default function jssPreset() {\n return {\n plugins: [functions(), global(), nested(), camelCase(), defaultUnit(), // Disable the vendor prefixer server-side, it does nothing.\n // This way, we can get a performance boost.\n // In the documentation, we are using `autoprefixer` to solve this problem.\n typeof window === 'undefined' ? null : vendorPrefixer(), propsSort()]\n };\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport debounce from '../utils/debounce';\nimport useForkRef from '../utils/useForkRef';\n\nfunction getStyleValue(computedStyle, property) {\n return parseInt(computedStyle[property], 10) || 0;\n}\n\nvar useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nvar styles = {\n /* Styles applied to the shadow textarea element. */\n shadow: {\n // Visibility needed to hide the extra text area on iPads\n visibility: 'hidden',\n // Remove from the content flow\n position: 'absolute',\n // Ignore the scrollbar width\n overflow: 'hidden',\n height: 0,\n top: 0,\n left: 0,\n // Create a new layer, increase the isolation of the computed values\n transform: 'translateZ(0)'\n }\n};\nvar TextareaAutosize = /*#__PURE__*/React.forwardRef(function TextareaAutosize(props, ref) {\n var onChange = props.onChange,\n rows = props.rows,\n rowsMax = props.rowsMax,\n _props$rowsMin = props.rowsMin,\n rowsMinProp = _props$rowsMin === void 0 ? 1 : _props$rowsMin,\n style = props.style,\n value = props.value,\n other = _objectWithoutProperties(props, [\"onChange\", \"rows\", \"rowsMax\", \"rowsMin\", \"style\", \"value\"]);\n\n var rowsMin = rows || rowsMinProp;\n\n var _React$useRef = React.useRef(value != null),\n isControlled = _React$useRef.current;\n\n var inputRef = React.useRef(null);\n var handleRef = useForkRef(ref, inputRef);\n var shadowRef = React.useRef(null);\n var renders = React.useRef(0);\n\n var _React$useState = React.useState({}),\n state = _React$useState[0],\n setState = _React$useState[1];\n\n var syncHeight = React.useCallback(function () {\n var input = inputRef.current;\n var computedStyle = window.getComputedStyle(input);\n var inputShallow = shadowRef.current;\n inputShallow.style.width = computedStyle.width;\n inputShallow.value = input.value || props.placeholder || 'x';\n\n if (inputShallow.value.slice(-1) === '\\n') {\n // Certain fonts which overflow the line height will cause the textarea\n // to report a different scrollHeight depending on whether the last line\n // is empty. Make it non-empty to avoid this issue.\n inputShallow.value += ' ';\n }\n\n var boxSizing = computedStyle['box-sizing'];\n var padding = getStyleValue(computedStyle, 'padding-bottom') + getStyleValue(computedStyle, 'padding-top');\n var border = getStyleValue(computedStyle, 'border-bottom-width') + getStyleValue(computedStyle, 'border-top-width'); // The height of the inner content\n\n var innerHeight = inputShallow.scrollHeight - padding; // Measure height of a textarea with a single row\n\n inputShallow.value = 'x';\n var singleRowHeight = inputShallow.scrollHeight - padding; // The height of the outer content\n\n var outerHeight = innerHeight;\n\n if (rowsMin) {\n outerHeight = Math.max(Number(rowsMin) * singleRowHeight, outerHeight);\n }\n\n if (rowsMax) {\n outerHeight = Math.min(Number(rowsMax) * singleRowHeight, outerHeight);\n }\n\n outerHeight = Math.max(outerHeight, singleRowHeight); // Take the box sizing into account for applying this value as a style.\n\n var outerHeightStyle = outerHeight + (boxSizing === 'border-box' ? padding + border : 0);\n var overflow = Math.abs(outerHeight - innerHeight) <= 1;\n setState(function (prevState) {\n // Need a large enough difference to update the height.\n // This prevents infinite rendering loop.\n if (renders.current < 20 && (outerHeightStyle > 0 && Math.abs((prevState.outerHeightStyle || 0) - outerHeightStyle) > 1 || prevState.overflow !== overflow)) {\n renders.current += 1;\n return {\n overflow: overflow,\n outerHeightStyle: outerHeightStyle\n };\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (renders.current === 20) {\n console.error(['Material-UI: Too many re-renders. The layout is unstable.', 'TextareaAutosize limits the number of renders to prevent an infinite loop.'].join('\\n'));\n }\n }\n\n return prevState;\n });\n }, [rowsMax, rowsMin, props.placeholder]);\n React.useEffect(function () {\n var handleResize = debounce(function () {\n renders.current = 0;\n syncHeight();\n });\n window.addEventListener('resize', handleResize);\n return function () {\n handleResize.clear();\n window.removeEventListener('resize', handleResize);\n };\n }, [syncHeight]);\n useEnhancedEffect(function () {\n syncHeight();\n });\n React.useEffect(function () {\n renders.current = 0;\n }, [value]);\n\n var handleChange = function handleChange(event) {\n renders.current = 0;\n\n if (!isControlled) {\n syncHeight();\n }\n\n if (onChange) {\n onChange(event);\n }\n };\n\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"textarea\", _extends({\n value: value,\n onChange: handleChange,\n ref: handleRef // Apply the rows prop to get a \"correct\" first SSR paint\n ,\n rows: rowsMin,\n style: _extends({\n height: state.outerHeightStyle,\n // Need a large enough difference to allow scrolling.\n // This prevents infinite rendering loop.\n overflow: state.overflow ? 'hidden' : null\n }, style)\n }, other)), /*#__PURE__*/React.createElement(\"textarea\", {\n \"aria-hidden\": true,\n className: props.className,\n readOnly: true,\n ref: shadowRef,\n tabIndex: -1,\n style: _extends({}, styles.shadow, style)\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? TextareaAutosize.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * @ignore\n */\n onChange: PropTypes.func,\n\n /**\n * @ignore\n */\n placeholder: PropTypes.string,\n\n /**\n * Use `rowsMin` instead. The prop will be removed in v5.\n *\n * @deprecated\n */\n rows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n\n /**\n * Maximum number of rows to display.\n */\n rowsMax: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n\n /**\n * Minimum number of rows to display.\n */\n rowsMin: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n\n /**\n * @ignore\n */\n style: PropTypes.object,\n\n /**\n * @ignore\n */\n value: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.number, PropTypes.string])\n} : void 0;\nexport default TextareaAutosize;","import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { formatMuiErrorMessage as _formatMuiErrorMessage } from \"@material-ui/utils\";\n\n/* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { refType } from '@material-ui/utils';\nimport formControlState from '../FormControl/formControlState';\nimport FormControlContext, { useFormControl } from '../FormControl/FormControlContext';\nimport withStyles from '../styles/withStyles';\nimport capitalize from '../utils/capitalize';\nimport useForkRef from '../utils/useForkRef';\nimport TextareaAutosize from '../TextareaAutosize';\nimport { isFilled } from './utils';\nexport var styles = function styles(theme) {\n var light = theme.palette.type === 'light';\n var placeholder = {\n color: 'currentColor',\n opacity: light ? 0.42 : 0.5,\n transition: theme.transitions.create('opacity', {\n duration: theme.transitions.duration.shorter\n })\n };\n var placeholderHidden = {\n opacity: '0 !important'\n };\n var placeholderVisible = {\n opacity: light ? 0.42 : 0.5\n };\n return {\n '@global': {\n '@keyframes mui-auto-fill': {},\n '@keyframes mui-auto-fill-cancel': {}\n },\n\n /* Styles applied to the root element. */\n root: _extends({}, theme.typography.body1, {\n color: theme.palette.text.primary,\n lineHeight: '1.1876em',\n // Reset (19px), match the native input line-height\n boxSizing: 'border-box',\n // Prevent padding issue with fullWidth.\n position: 'relative',\n cursor: 'text',\n display: 'inline-flex',\n alignItems: 'center',\n '&$disabled': {\n color: theme.palette.text.disabled,\n cursor: 'default'\n }\n }),\n\n /* Styles applied to the root element if the component is a descendant of `FormControl`. */\n formControl: {},\n\n /* Styles applied to the root element if the component is focused. */\n focused: {},\n\n /* Styles applied to the root element if `disabled={true}`. */\n disabled: {},\n\n /* Styles applied to the root element if `startAdornment` is provided. */\n adornedStart: {},\n\n /* Styles applied to the root element if `endAdornment` is provided. */\n adornedEnd: {},\n\n /* Pseudo-class applied to the root element if `error={true}`. */\n error: {},\n\n /* Styles applied to the `input` element if `margin=\"dense\"`. */\n marginDense: {},\n\n /* Styles applied to the root element if `multiline={true}`. */\n multiline: {\n padding: \"\".concat(8 - 2, \"px 0 \").concat(8 - 1, \"px\"),\n '&$marginDense': {\n paddingTop: 4 - 1\n }\n },\n\n /* Styles applied to the root element if the color is secondary. */\n colorSecondary: {},\n\n /* Styles applied to the root element if `fullWidth={true}`. */\n fullWidth: {\n width: '100%'\n },\n\n /* Styles applied to the `input` element. */\n input: {\n font: 'inherit',\n letterSpacing: 'inherit',\n color: 'currentColor',\n padding: \"\".concat(8 - 2, \"px 0 \").concat(8 - 1, \"px\"),\n border: 0,\n boxSizing: 'content-box',\n background: 'none',\n height: '1.1876em',\n // Reset (19px), match the native input line-height\n margin: 0,\n // Reset for Safari\n WebkitTapHighlightColor: 'transparent',\n display: 'block',\n // Make the flex item shrink with Firefox\n minWidth: 0,\n width: '100%',\n // Fix IE 11 width issue\n animationName: 'mui-auto-fill-cancel',\n animationDuration: '10ms',\n '&::-webkit-input-placeholder': placeholder,\n '&::-moz-placeholder': placeholder,\n // Firefox 19+\n '&:-ms-input-placeholder': placeholder,\n // IE 11\n '&::-ms-input-placeholder': placeholder,\n // Edge\n '&:focus': {\n outline: 0\n },\n // Reset Firefox invalid required input style\n '&:invalid': {\n boxShadow: 'none'\n },\n '&::-webkit-search-decoration': {\n // Remove the padding when type=search.\n '-webkit-appearance': 'none'\n },\n // Show and hide the placeholder logic\n 'label[data-shrink=false] + $formControl &': {\n '&::-webkit-input-placeholder': placeholderHidden,\n '&::-moz-placeholder': placeholderHidden,\n // Firefox 19+\n '&:-ms-input-placeholder': placeholderHidden,\n // IE 11\n '&::-ms-input-placeholder': placeholderHidden,\n // Edge\n '&:focus::-webkit-input-placeholder': placeholderVisible,\n '&:focus::-moz-placeholder': placeholderVisible,\n // Firefox 19+\n '&:focus:-ms-input-placeholder': placeholderVisible,\n // IE 11\n '&:focus::-ms-input-placeholder': placeholderVisible // Edge\n\n },\n '&$disabled': {\n opacity: 1 // Reset iOS opacity\n\n },\n '&:-webkit-autofill': {\n animationDuration: '5000s',\n animationName: 'mui-auto-fill'\n }\n },\n\n /* Styles applied to the `input` element if `margin=\"dense\"`. */\n inputMarginDense: {\n paddingTop: 4 - 1\n },\n\n /* Styles applied to the `input` element if `multiline={true}`. */\n inputMultiline: {\n height: 'auto',\n resize: 'none',\n padding: 0\n },\n\n /* Styles applied to the `input` element if `type=\"search\"`. */\n inputTypeSearch: {\n // Improve type search style.\n '-moz-appearance': 'textfield',\n '-webkit-appearance': 'textfield'\n },\n\n /* Styles applied to the `input` element if `startAdornment` is provided. */\n inputAdornedStart: {},\n\n /* Styles applied to the `input` element if `endAdornment` is provided. */\n inputAdornedEnd: {},\n\n /* Styles applied to the `input` element if `hiddenLabel={true}`. */\n inputHiddenLabel: {}\n };\n};\nvar useEnhancedEffect = typeof window === 'undefined' ? React.useEffect : React.useLayoutEffect;\n/**\n * `InputBase` contains as few styles as possible.\n * It aims to be a simple building block for creating an input.\n * It contains a load of style reset and some state logic.\n */\n\nvar InputBase = /*#__PURE__*/React.forwardRef(function InputBase(props, ref) {\n var ariaDescribedby = props['aria-describedby'],\n autoComplete = props.autoComplete,\n autoFocus = props.autoFocus,\n classes = props.classes,\n className = props.className,\n color = props.color,\n defaultValue = props.defaultValue,\n disabled = props.disabled,\n endAdornment = props.endAdornment,\n error = props.error,\n _props$fullWidth = props.fullWidth,\n fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth,\n id = props.id,\n _props$inputComponent = props.inputComponent,\n inputComponent = _props$inputComponent === void 0 ? 'input' : _props$inputComponent,\n _props$inputProps = props.inputProps,\n inputPropsProp = _props$inputProps === void 0 ? {} : _props$inputProps,\n inputRefProp = props.inputRef,\n margin = props.margin,\n _props$multiline = props.multiline,\n multiline = _props$multiline === void 0 ? false : _props$multiline,\n name = props.name,\n onBlur = props.onBlur,\n onChange = props.onChange,\n onClick = props.onClick,\n onFocus = props.onFocus,\n onKeyDown = props.onKeyDown,\n onKeyUp = props.onKeyUp,\n placeholder = props.placeholder,\n readOnly = props.readOnly,\n renderSuffix = props.renderSuffix,\n rows = props.rows,\n rowsMax = props.rowsMax,\n rowsMin = props.rowsMin,\n startAdornment = props.startAdornment,\n _props$type = props.type,\n type = _props$type === void 0 ? 'text' : _props$type,\n valueProp = props.value,\n other = _objectWithoutProperties(props, [\"aria-describedby\", \"autoComplete\", \"autoFocus\", \"classes\", \"className\", \"color\", \"defaultValue\", \"disabled\", \"endAdornment\", \"error\", \"fullWidth\", \"id\", \"inputComponent\", \"inputProps\", \"inputRef\", \"margin\", \"multiline\", \"name\", \"onBlur\", \"onChange\", \"onClick\", \"onFocus\", \"onKeyDown\", \"onKeyUp\", \"placeholder\", \"readOnly\", \"renderSuffix\", \"rows\", \"rowsMax\", \"rowsMin\", \"startAdornment\", \"type\", \"value\"]);\n\n var value = inputPropsProp.value != null ? inputPropsProp.value : valueProp;\n\n var _React$useRef = React.useRef(value != null),\n isControlled = _React$useRef.current;\n\n var inputRef = React.useRef();\n var handleInputRefWarning = React.useCallback(function (instance) {\n if (process.env.NODE_ENV !== 'production') {\n if (instance && instance.nodeName !== 'INPUT' && !instance.focus) {\n console.error(['Material-UI: You have provided a `inputComponent` to the input component', 'that does not correctly handle the `inputRef` prop.', 'Make sure the `inputRef` prop is called with a HTMLInputElement.'].join('\\n'));\n }\n }\n }, []);\n var handleInputPropsRefProp = useForkRef(inputPropsProp.ref, handleInputRefWarning);\n var handleInputRefProp = useForkRef(inputRefProp, handleInputPropsRefProp);\n var handleInputRef = useForkRef(inputRef, handleInputRefProp);\n\n var _React$useState = React.useState(false),\n focused = _React$useState[0],\n setFocused = _React$useState[1];\n\n var muiFormControl = useFormControl();\n\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(function () {\n if (muiFormControl) {\n return muiFormControl.registerEffect();\n }\n\n return undefined;\n }, [muiFormControl]);\n }\n\n var fcs = formControlState({\n props: props,\n muiFormControl: muiFormControl,\n states: ['color', 'disabled', 'error', 'hiddenLabel', 'margin', 'required', 'filled']\n });\n fcs.focused = muiFormControl ? muiFormControl.focused : focused; // The blur won't fire when the disabled state is set on a focused input.\n // We need to book keep the focused state manually.\n\n React.useEffect(function () {\n if (!muiFormControl && disabled && focused) {\n setFocused(false);\n\n if (onBlur) {\n onBlur();\n }\n }\n }, [muiFormControl, disabled, focused, onBlur]);\n var onFilled = muiFormControl && muiFormControl.onFilled;\n var onEmpty = muiFormControl && muiFormControl.onEmpty;\n var checkDirty = React.useCallback(function (obj) {\n if (isFilled(obj)) {\n if (onFilled) {\n onFilled();\n }\n } else if (onEmpty) {\n onEmpty();\n }\n }, [onFilled, onEmpty]);\n useEnhancedEffect(function () {\n if (isControlled) {\n checkDirty({\n value: value\n });\n }\n }, [value, checkDirty, isControlled]);\n\n var handleFocus = function handleFocus(event) {\n // Fix a bug with IE 11 where the focus/blur events are triggered\n // while the input is disabled.\n if (fcs.disabled) {\n event.stopPropagation();\n return;\n }\n\n if (onFocus) {\n onFocus(event);\n }\n\n if (inputPropsProp.onFocus) {\n inputPropsProp.onFocus(event);\n }\n\n if (muiFormControl && muiFormControl.onFocus) {\n muiFormControl.onFocus(event);\n } else {\n setFocused(true);\n }\n };\n\n var handleBlur = function handleBlur(event) {\n if (onBlur) {\n onBlur(event);\n }\n\n if (inputPropsProp.onBlur) {\n inputPropsProp.onBlur(event);\n }\n\n if (muiFormControl && muiFormControl.onBlur) {\n muiFormControl.onBlur(event);\n } else {\n setFocused(false);\n }\n };\n\n var handleChange = function handleChange(event) {\n if (!isControlled) {\n var element = event.target || inputRef.current;\n\n if (element == null) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? \"Material-UI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://material-ui.com/r/input-component-ref-interface for more info.\" : _formatMuiErrorMessage(1));\n }\n\n checkDirty({\n value: element.value\n });\n }\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n if (inputPropsProp.onChange) {\n inputPropsProp.onChange.apply(inputPropsProp, [event].concat(args));\n } // Perform in the willUpdate\n\n\n if (onChange) {\n onChange.apply(void 0, [event].concat(args));\n }\n }; // Check the input state on mount, in case it was filled by the user\n // or auto filled by the browser before the hydration (for SSR).\n\n\n React.useEffect(function () {\n checkDirty(inputRef.current);\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n var handleClick = function handleClick(event) {\n if (inputRef.current && event.currentTarget === event.target) {\n inputRef.current.focus();\n }\n\n if (onClick) {\n onClick(event);\n }\n };\n\n var InputComponent = inputComponent;\n\n var inputProps = _extends({}, inputPropsProp, {\n ref: handleInputRef\n });\n\n if (typeof InputComponent !== 'string') {\n inputProps = _extends({\n // Rename ref to inputRef as we don't know the\n // provided `inputComponent` structure.\n inputRef: handleInputRef,\n type: type\n }, inputProps, {\n ref: null\n });\n } else if (multiline) {\n if (rows && !rowsMax && !rowsMin) {\n InputComponent = 'textarea';\n } else {\n inputProps = _extends({\n rows: rows,\n rowsMax: rowsMax\n }, inputProps);\n InputComponent = TextareaAutosize;\n }\n } else {\n inputProps = _extends({\n type: type\n }, inputProps);\n }\n\n var handleAutoFill = function handleAutoFill(event) {\n // Provide a fake value as Chrome might not let you access it for security reasons.\n checkDirty(event.animationName === 'mui-auto-fill-cancel' ? inputRef.current : {\n value: 'x'\n });\n };\n\n React.useEffect(function () {\n if (muiFormControl) {\n muiFormControl.setAdornedStart(Boolean(startAdornment));\n }\n }, [muiFormControl, startAdornment]);\n return /*#__PURE__*/React.createElement(\"div\", _extends({\n className: clsx(classes.root, classes[\"color\".concat(capitalize(fcs.color || 'primary'))], className, fcs.disabled && classes.disabled, fcs.error && classes.error, fullWidth && classes.fullWidth, fcs.focused && classes.focused, muiFormControl && classes.formControl, multiline && classes.multiline, startAdornment && classes.adornedStart, endAdornment && classes.adornedEnd, fcs.margin === 'dense' && classes.marginDense),\n onClick: handleClick,\n ref: ref\n }, other), startAdornment, /*#__PURE__*/React.createElement(FormControlContext.Provider, {\n value: null\n }, /*#__PURE__*/React.createElement(InputComponent, _extends({\n \"aria-invalid\": fcs.error,\n \"aria-describedby\": ariaDescribedby,\n autoComplete: autoComplete,\n autoFocus: autoFocus,\n defaultValue: defaultValue,\n disabled: fcs.disabled,\n id: id,\n onAnimationStart: handleAutoFill,\n name: name,\n placeholder: placeholder,\n readOnly: readOnly,\n required: fcs.required,\n rows: rows,\n value: value,\n onKeyDown: onKeyDown,\n onKeyUp: onKeyUp\n }, inputProps, {\n className: clsx(classes.input, inputPropsProp.className, fcs.disabled && classes.disabled, multiline && classes.inputMultiline, fcs.hiddenLabel && classes.inputHiddenLabel, startAdornment && classes.inputAdornedStart, endAdornment && classes.inputAdornedEnd, type === 'search' && classes.inputTypeSearch, fcs.margin === 'dense' && classes.inputMarginDense),\n onBlur: handleBlur,\n onChange: handleChange,\n onFocus: handleFocus\n }))), endAdornment, renderSuffix ? renderSuffix(_extends({}, fcs, {\n startAdornment: startAdornment\n })) : null);\n});\nprocess.env.NODE_ENV !== \"production\" ? InputBase.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * @ignore\n */\n 'aria-describedby': PropTypes.string,\n\n /**\n * This prop helps users to fill forms faster, especially on mobile devices.\n * The name can be confusing, as it's more like an autofill.\n * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).\n */\n autoComplete: PropTypes.string,\n\n /**\n * If `true`, the `input` element will be focused during the first mount.\n */\n autoFocus: PropTypes.bool,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n */\n color: PropTypes.oneOf(['primary', 'secondary']),\n\n /**\n * The default `input` element value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.any,\n\n /**\n * If `true`, the `input` element will be disabled.\n */\n disabled: PropTypes.bool,\n\n /**\n * End `InputAdornment` for this component.\n */\n endAdornment: PropTypes.node,\n\n /**\n * If `true`, the input will indicate an error. This is normally obtained via context from\n * FormControl.\n */\n error: PropTypes.bool,\n\n /**\n * If `true`, the input will take up the full width of its container.\n */\n fullWidth: PropTypes.bool,\n\n /**\n * The id of the `input` element.\n */\n id: PropTypes.string,\n\n /**\n * The component used for the `input` element.\n * Either a string to use a HTML element or a component.\n */\n inputComponent: PropTypes.elementType,\n\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n */\n inputProps: PropTypes.object,\n\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n\n /**\n * If `dense`, will adjust vertical spacing. This is normally obtained via context from\n * FormControl.\n */\n margin: PropTypes.oneOf(['dense', 'none']),\n\n /**\n * If `true`, a textarea element will be rendered.\n */\n multiline: PropTypes.bool,\n\n /**\n * Name attribute of the `input` element.\n */\n name: PropTypes.string,\n\n /**\n * Callback fired when the input is blurred.\n *\n * Notice that the first argument (event) might be undefined.\n */\n onBlur: PropTypes.func,\n\n /**\n * Callback fired when the value is changed.\n *\n * @param {object} event The event source of the callback.\n * You can pull out the new value by accessing `event.target.value` (string).\n */\n onChange: PropTypes.func,\n\n /**\n * @ignore\n */\n onClick: PropTypes.func,\n\n /**\n * @ignore\n */\n onFocus: PropTypes.func,\n\n /**\n * @ignore\n */\n onKeyDown: PropTypes.func,\n\n /**\n * @ignore\n */\n onKeyUp: PropTypes.func,\n\n /**\n * The short hint displayed in the input before the user enters a value.\n */\n placeholder: PropTypes.string,\n\n /**\n * It prevents the user from changing the value of the field\n * (not from interacting with the field).\n */\n readOnly: PropTypes.bool,\n\n /**\n * @ignore\n */\n renderSuffix: PropTypes.func,\n\n /**\n * If `true`, the `input` element will be required.\n */\n required: PropTypes.bool,\n\n /**\n * Number of rows to display when multiline option is set to true.\n */\n rows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n\n /**\n * Maximum number of rows to display when multiline option is set to true.\n */\n rowsMax: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n\n /**\n * Minimum number of rows to display when multiline option is set to true.\n */\n rowsMin: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n\n /**\n * Start `InputAdornment` for this component.\n */\n startAdornment: PropTypes.node,\n\n /**\n * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).\n */\n type: PropTypes.string,\n\n /**\n * The value of the `input` element, required for a controlled component.\n */\n value: PropTypes.any\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiInputBase'\n})(InputBase);","/** @license React v16.14.0\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var l=require(\"object-assign\"),n=\"function\"===typeof Symbol&&Symbol.for,p=n?Symbol.for(\"react.element\"):60103,q=n?Symbol.for(\"react.portal\"):60106,r=n?Symbol.for(\"react.fragment\"):60107,t=n?Symbol.for(\"react.strict_mode\"):60108,u=n?Symbol.for(\"react.profiler\"):60114,v=n?Symbol.for(\"react.provider\"):60109,w=n?Symbol.for(\"react.context\"):60110,x=n?Symbol.for(\"react.forward_ref\"):60112,y=n?Symbol.for(\"react.suspense\"):60113,z=n?Symbol.for(\"react.memo\"):60115,A=n?Symbol.for(\"react.lazy\"):\n60116,B=\"function\"===typeof Symbol&&Symbol.iterator;function C(a){for(var b=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=1;cQ.length&&Q.push(a)}\nfunction T(a,b,c,e){var d=typeof a;if(\"undefined\"===d||\"boolean\"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case \"string\":case \"number\":g=!0;break;case \"object\":switch(a.$$typeof){case p:case q:g=!0}}if(g)return c(e,a,\"\"===b?\".\"+U(a,0):b),1;g=0;b=\"\"===b?\".\":b+\":\";if(Array.isArray(a))for(var k=0;kb}return!1}function v(a,b,c,d,e,f){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f}var C={};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(a){C[a]=new v(a,0,!1,a,null,!1)});[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(a){var b=a[0];C[b]=new v(b,1,!1,a[1],null,!1)});[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(a){C[a]=new v(a,2,!1,a.toLowerCase(),null,!1)});\n[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(a){C[a]=new v(a,2,!1,a,null,!1)});\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(a){C[a]=new v(a,3,!1,a.toLowerCase(),null,!1)});\n[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(a){C[a]=new v(a,3,!0,a,null,!1)});[\"capture\",\"download\"].forEach(function(a){C[a]=new v(a,4,!1,a,null,!1)});[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(a){C[a]=new v(a,6,!1,a,null,!1)});[\"rowSpan\",\"start\"].forEach(function(a){C[a]=new v(a,5,!1,a.toLowerCase(),null,!1)});var Ua=/[\\-:]([a-z])/g;function Va(a){return a[1].toUpperCase()}\n\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(a){var b=a.replace(Ua,\nVa);C[b]=new v(b,1,!1,a,null,!1)});\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(a){var b=a.replace(Ua,Va);C[b]=new v(b,1,!1,a,\"http://www.w3.org/1999/xlink\",!1)});[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(a){var b=a.replace(Ua,Va);C[b]=new v(b,1,!1,a,\"http://www.w3.org/XML/1998/namespace\",!1)});[\"tabIndex\",\"crossOrigin\"].forEach(function(a){C[a]=new v(a,1,!1,a.toLowerCase(),null,!1)});\nC.xlinkHref=new v(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0);[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(a){C[a]=new v(a,1,!1,a.toLowerCase(),null,!0)});var Wa=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Wa.hasOwnProperty(\"ReactCurrentDispatcher\")||(Wa.ReactCurrentDispatcher={current:null});Wa.hasOwnProperty(\"ReactCurrentBatchConfig\")||(Wa.ReactCurrentBatchConfig={suspense:null});\nfunction Xa(a,b,c,d){var e=C.hasOwnProperty(b)?C[b]:null;var f=null!==e?0===e.type:d?!1:!(2=c.length))throw Error(u(93));c=c[0]}b=c}null==b&&(b=\"\");c=b}a._wrapperState={initialValue:rb(c)}}\nfunction Kb(a,b){var c=rb(b.value),d=rb(b.defaultValue);null!=c&&(c=\"\"+c,c!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c));null!=d&&(a.defaultValue=\"\"+d)}function Lb(a){var b=a.textContent;b===a._wrapperState.initialValue&&\"\"!==b&&null!==b&&(a.value=b)}var Mb={html:\"http://www.w3.org/1999/xhtml\",mathml:\"http://www.w3.org/1998/Math/MathML\",svg:\"http://www.w3.org/2000/svg\"};\nfunction Nb(a){switch(a){case \"svg\":return\"http://www.w3.org/2000/svg\";case \"math\":return\"http://www.w3.org/1998/Math/MathML\";default:return\"http://www.w3.org/1999/xhtml\"}}function Ob(a,b){return null==a||\"http://www.w3.org/1999/xhtml\"===a?Nb(b):\"http://www.w3.org/2000/svg\"===a&&\"foreignObject\"===b?\"http://www.w3.org/1999/xhtml\":a}\nvar Pb,Qb=function(a){return\"undefined\"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction(function(){return a(b,c,d,e)})}:a}(function(a,b){if(a.namespaceURI!==Mb.svg||\"innerHTML\"in a)a.innerHTML=b;else{Pb=Pb||document.createElement(\"div\");Pb.innerHTML=\"\"+b.valueOf().toString()+\"\";for(b=Pb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});\nfunction Rb(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}function Sb(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c[\"Webkit\"+a]=\"webkit\"+b;c[\"Moz\"+a]=\"moz\"+b;return c}var Tb={animationend:Sb(\"Animation\",\"AnimationEnd\"),animationiteration:Sb(\"Animation\",\"AnimationIteration\"),animationstart:Sb(\"Animation\",\"AnimationStart\"),transitionend:Sb(\"Transition\",\"TransitionEnd\")},Ub={},Vb={};\nya&&(Vb=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete Tb.animationend.animation,delete Tb.animationiteration.animation,delete Tb.animationstart.animation),\"TransitionEvent\"in window||delete Tb.transitionend.transition);function Wb(a){if(Ub[a])return Ub[a];if(!Tb[a])return a;var b=Tb[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in Vb)return Ub[a]=b[c];return a}\nvar Xb=Wb(\"animationend\"),Yb=Wb(\"animationiteration\"),Zb=Wb(\"animationstart\"),$b=Wb(\"transitionend\"),ac=\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting\".split(\" \"),bc=new (\"function\"===typeof WeakMap?WeakMap:Map);function cc(a){var b=bc.get(a);void 0===b&&(b=new Map,bc.set(a,b));return b}\nfunction dc(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else{a=b;do b=a,0!==(b.effectTag&1026)&&(c=b.return),a=b.return;while(a)}return 3===b.tag?c:null}function ec(a){if(13===a.tag){var b=a.memoizedState;null===b&&(a=a.alternate,null!==a&&(b=a.memoizedState));if(null!==b)return b.dehydrated}return null}function fc(a){if(dc(a)!==a)throw Error(u(188));}\nfunction gc(a){var b=a.alternate;if(!b){b=dc(a);if(null===b)throw Error(u(188));return b!==a?null:a}for(var c=a,d=b;;){var e=c.return;if(null===e)break;var f=e.alternate;if(null===f){d=e.return;if(null!==d){c=d;continue}break}if(e.child===f.child){for(f=e.child;f;){if(f===c)return fc(e),a;if(f===d)return fc(e),b;f=f.sibling}throw Error(u(188));}if(c.return!==d.return)c=e,d=f;else{for(var g=!1,h=e.child;h;){if(h===c){g=!0;c=e;d=f;break}if(h===d){g=!0;d=e;c=f;break}h=h.sibling}if(!g){for(h=f.child;h;){if(h===\nc){g=!0;c=f;d=e;break}if(h===d){g=!0;d=f;c=e;break}h=h.sibling}if(!g)throw Error(u(189));}}if(c.alternate!==d)throw Error(u(190));}if(3!==c.tag)throw Error(u(188));return c.stateNode.current===c?a:b}function hc(a){a=gc(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child)b.child.return=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}}return null}\nfunction ic(a,b){if(null==b)throw Error(u(30));if(null==a)return b;if(Array.isArray(a)){if(Array.isArray(b))return a.push.apply(a,b),a;a.push(b);return a}return Array.isArray(b)?[a].concat(b):[a,b]}function jc(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}var kc=null;\nfunction lc(a){if(a){var b=a._dispatchListeners,c=a._dispatchInstances;if(Array.isArray(b))for(var d=0;dpc.length&&pc.push(a)}\nfunction rc(a,b,c,d){if(pc.length){var e=pc.pop();e.topLevelType=a;e.eventSystemFlags=d;e.nativeEvent=b;e.targetInst=c;return e}return{topLevelType:a,eventSystemFlags:d,nativeEvent:b,targetInst:c,ancestors:[]}}\nfunction sc(a){var b=a.targetInst,c=b;do{if(!c){a.ancestors.push(c);break}var d=c;if(3===d.tag)d=d.stateNode.containerInfo;else{for(;d.return;)d=d.return;d=3!==d.tag?null:d.stateNode.containerInfo}if(!d)break;b=c.tag;5!==b&&6!==b||a.ancestors.push(c);c=tc(d)}while(c);for(c=0;c=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=ud(c)}}\nfunction wd(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?wd(a,b.parentNode):\"contains\"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}function xd(){for(var a=window,b=td();b instanceof a.HTMLIFrameElement;){try{var c=\"string\"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=td(a.document)}return b}\nfunction yd(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&(\"input\"===b&&(\"text\"===a.type||\"search\"===a.type||\"tel\"===a.type||\"url\"===a.type||\"password\"===a.type)||\"textarea\"===b||\"true\"===a.contentEditable)}var zd=\"$\",Ad=\"/$\",Bd=\"$?\",Cd=\"$!\",Dd=null,Ed=null;function Fd(a,b){switch(a){case \"button\":case \"input\":case \"select\":case \"textarea\":return!!b.autoFocus}return!1}\nfunction Gd(a,b){return\"textarea\"===a||\"option\"===a||\"noscript\"===a||\"string\"===typeof b.children||\"number\"===typeof b.children||\"object\"===typeof b.dangerouslySetInnerHTML&&null!==b.dangerouslySetInnerHTML&&null!=b.dangerouslySetInnerHTML.__html}var Hd=\"function\"===typeof setTimeout?setTimeout:void 0,Id=\"function\"===typeof clearTimeout?clearTimeout:void 0;function Jd(a){for(;null!=a;a=a.nextSibling){var b=a.nodeType;if(1===b||3===b)break}return a}\nfunction Kd(a){a=a.previousSibling;for(var b=0;a;){if(8===a.nodeType){var c=a.data;if(c===zd||c===Cd||c===Bd){if(0===b)return a;b--}else c===Ad&&b++}a=a.previousSibling}return null}var Ld=Math.random().toString(36).slice(2),Md=\"__reactInternalInstance$\"+Ld,Nd=\"__reactEventHandlers$\"+Ld,Od=\"__reactContainere$\"+Ld;\nfunction tc(a){var b=a[Md];if(b)return b;for(var c=a.parentNode;c;){if(b=c[Od]||c[Md]){c=b.alternate;if(null!==b.child||null!==c&&null!==c.child)for(a=Kd(a);null!==a;){if(c=a[Md])return c;a=Kd(a)}return b}a=c;c=a.parentNode}return null}function Nc(a){a=a[Md]||a[Od];return!a||5!==a.tag&&6!==a.tag&&13!==a.tag&&3!==a.tag?null:a}function Pd(a){if(5===a.tag||6===a.tag)return a.stateNode;throw Error(u(33));}function Qd(a){return a[Nd]||null}\nfunction Rd(a){do a=a.return;while(a&&5!==a.tag);return a?a:null}\nfunction Sd(a,b){var c=a.stateNode;if(!c)return null;var d=la(c);if(!d)return null;c=d[b];a:switch(b){case \"onClick\":case \"onClickCapture\":case \"onDoubleClick\":case \"onDoubleClickCapture\":case \"onMouseDown\":case \"onMouseDownCapture\":case \"onMouseMove\":case \"onMouseMoveCapture\":case \"onMouseUp\":case \"onMouseUpCapture\":case \"onMouseEnter\":(d=!d.disabled)||(a=a.type,d=!(\"button\"===a||\"input\"===a||\"select\"===a||\"textarea\"===a));a=!d;break a;default:a=!1}if(a)return null;if(c&&\"function\"!==typeof c)throw Error(u(231,\nb,typeof c));return c}function Td(a,b,c){if(b=Sd(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=ic(c._dispatchListeners,b),c._dispatchInstances=ic(c._dispatchInstances,a)}function Ud(a){if(a&&a.dispatchConfig.phasedRegistrationNames){for(var b=a._targetInst,c=[];b;)c.push(b),b=Rd(b);for(b=c.length;0this.eventPool.length&&this.eventPool.push(a)}function de(a){a.eventPool=[];a.getPooled=ee;a.release=fe}var ge=G.extend({data:null}),he=G.extend({data:null}),ie=[9,13,27,32],je=ya&&\"CompositionEvent\"in window,ke=null;ya&&\"documentMode\"in document&&(ke=document.documentMode);\nvar le=ya&&\"TextEvent\"in window&&!ke,me=ya&&(!je||ke&&8=ke),ne=String.fromCharCode(32),oe={beforeInput:{phasedRegistrationNames:{bubbled:\"onBeforeInput\",captured:\"onBeforeInputCapture\"},dependencies:[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]},compositionEnd:{phasedRegistrationNames:{bubbled:\"onCompositionEnd\",captured:\"onCompositionEndCapture\"},dependencies:\"blur compositionend keydown keypress keyup mousedown\".split(\" \")},compositionStart:{phasedRegistrationNames:{bubbled:\"onCompositionStart\",\ncaptured:\"onCompositionStartCapture\"},dependencies:\"blur compositionstart keydown keypress keyup mousedown\".split(\" \")},compositionUpdate:{phasedRegistrationNames:{bubbled:\"onCompositionUpdate\",captured:\"onCompositionUpdateCapture\"},dependencies:\"blur compositionupdate keydown keypress keyup mousedown\".split(\" \")}},pe=!1;\nfunction qe(a,b){switch(a){case \"keyup\":return-1!==ie.indexOf(b.keyCode);case \"keydown\":return 229!==b.keyCode;case \"keypress\":case \"mousedown\":case \"blur\":return!0;default:return!1}}function re(a){a=a.detail;return\"object\"===typeof a&&\"data\"in a?a.data:null}var se=!1;function te(a,b){switch(a){case \"compositionend\":return re(b);case \"keypress\":if(32!==b.which)return null;pe=!0;return ne;case \"textInput\":return a=b.data,a===ne&&pe?null:a;default:return null}}\nfunction ue(a,b){if(se)return\"compositionend\"===a||!je&&qe(a,b)?(a=ae(),$d=Zd=Yd=null,se=!1,a):null;switch(a){case \"paste\":return null;case \"keypress\":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1=document.documentMode,df={select:{phasedRegistrationNames:{bubbled:\"onSelect\",captured:\"onSelectCapture\"},dependencies:\"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange\".split(\" \")}},ef=null,ff=null,gf=null,hf=!1;\nfunction jf(a,b){var c=b.window===b?b.document:9===b.nodeType?b:b.ownerDocument;if(hf||null==ef||ef!==td(c))return null;c=ef;\"selectionStart\"in c&&yd(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset});return gf&&bf(gf,c)?null:(gf=c,a=G.getPooled(df.select,ff,a,b),a.type=\"select\",a.target=ef,Xd(a),a)}\nvar kf={eventTypes:df,extractEvents:function(a,b,c,d,e,f){e=f||(d.window===d?d.document:9===d.nodeType?d:d.ownerDocument);if(!(f=!e)){a:{e=cc(e);f=wa.onSelect;for(var g=0;gzf||(a.current=yf[zf],yf[zf]=null,zf--)}\nfunction I(a,b){zf++;yf[zf]=a.current;a.current=b}var Af={},J={current:Af},K={current:!1},Bf=Af;function Cf(a,b){var c=a.type.contextTypes;if(!c)return Af;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function L(a){a=a.childContextTypes;return null!==a&&void 0!==a}\nfunction Df(){H(K);H(J)}function Ef(a,b,c){if(J.current!==Af)throw Error(u(168));I(J,b);I(K,c)}function Ff(a,b,c){var d=a.stateNode;a=b.childContextTypes;if(\"function\"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in a))throw Error(u(108,pb(b)||\"Unknown\",e));return n({},c,{},d)}function Gf(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Af;Bf=J.current;I(J,a);I(K,K.current);return!0}\nfunction Hf(a,b,c){var d=a.stateNode;if(!d)throw Error(u(169));c?(a=Ff(a,b,Bf),d.__reactInternalMemoizedMergedChildContext=a,H(K),H(J),I(J,a)):H(K);I(K,c)}\nvar If=r.unstable_runWithPriority,Jf=r.unstable_scheduleCallback,Kf=r.unstable_cancelCallback,Lf=r.unstable_requestPaint,Mf=r.unstable_now,Nf=r.unstable_getCurrentPriorityLevel,Of=r.unstable_ImmediatePriority,Pf=r.unstable_UserBlockingPriority,Qf=r.unstable_NormalPriority,Rf=r.unstable_LowPriority,Sf=r.unstable_IdlePriority,Tf={},Uf=r.unstable_shouldYield,Vf=void 0!==Lf?Lf:function(){},Wf=null,Xf=null,Yf=!1,Zf=Mf(),$f=1E4>Zf?Mf:function(){return Mf()-Zf};\nfunction ag(){switch(Nf()){case Of:return 99;case Pf:return 98;case Qf:return 97;case Rf:return 96;case Sf:return 95;default:throw Error(u(332));}}function bg(a){switch(a){case 99:return Of;case 98:return Pf;case 97:return Qf;case 96:return Rf;case 95:return Sf;default:throw Error(u(332));}}function cg(a,b){a=bg(a);return If(a,b)}function dg(a,b,c){a=bg(a);return Jf(a,b,c)}function eg(a){null===Wf?(Wf=[a],Xf=Jf(Of,fg)):Wf.push(a);return Tf}function gg(){if(null!==Xf){var a=Xf;Xf=null;Kf(a)}fg()}\nfunction fg(){if(!Yf&&null!==Wf){Yf=!0;var a=0;try{var b=Wf;cg(99,function(){for(;a=b&&(rg=!0),a.firstContext=null)}\nfunction sg(a,b){if(mg!==a&&!1!==b&&0!==b){if(\"number\"!==typeof b||1073741823===b)mg=a,b=1073741823;b={context:a,observedBits:b,next:null};if(null===lg){if(null===kg)throw Error(u(308));lg=b;kg.dependencies={expirationTime:0,firstContext:b,responders:null}}else lg=lg.next=b}return a._currentValue}var tg=!1;function ug(a){a.updateQueue={baseState:a.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}\nfunction vg(a,b){a=a.updateQueue;b.updateQueue===a&&(b.updateQueue={baseState:a.baseState,baseQueue:a.baseQueue,shared:a.shared,effects:a.effects})}function wg(a,b){a={expirationTime:a,suspenseConfig:b,tag:0,payload:null,callback:null,next:null};return a.next=a}function xg(a,b){a=a.updateQueue;if(null!==a){a=a.shared;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}}\nfunction yg(a,b){var c=a.alternate;null!==c&&vg(c,a);a=a.updateQueue;c=a.baseQueue;null===c?(a.baseQueue=b.next=b,b.next=b):(b.next=c.next,c.next=b)}\nfunction zg(a,b,c,d){var e=a.updateQueue;tg=!1;var f=e.baseQueue,g=e.shared.pending;if(null!==g){if(null!==f){var h=f.next;f.next=g.next;g.next=h}f=g;e.shared.pending=null;h=a.alternate;null!==h&&(h=h.updateQueue,null!==h&&(h.baseQueue=g))}if(null!==f){h=f.next;var k=e.baseState,l=0,m=null,p=null,x=null;if(null!==h){var z=h;do{g=z.expirationTime;if(gl&&(l=g)}else{null!==x&&(x=x.next={expirationTime:1073741823,suspenseConfig:z.suspenseConfig,tag:z.tag,payload:z.payload,callback:z.callback,next:null});Ag(g,z.suspenseConfig);a:{var D=a,t=z;g=b;ca=c;switch(t.tag){case 1:D=t.payload;if(\"function\"===typeof D){k=D.call(ca,k,g);break a}k=D;break a;case 3:D.effectTag=D.effectTag&-4097|64;case 0:D=t.payload;g=\"function\"===typeof D?D.call(ca,k,g):D;if(null===g||void 0===g)break a;k=n({},k,g);break a;case 2:tg=!0}}null!==z.callback&&\n(a.effectTag|=32,g=e.effects,null===g?e.effects=[z]:g.push(z))}z=z.next;if(null===z||z===h)if(g=e.shared.pending,null===g)break;else z=f.next=g.next,g.next=h,e.baseQueue=f=g,e.shared.pending=null}while(1)}null===x?m=k:x.next=p;e.baseState=m;e.baseQueue=x;Bg(l);a.expirationTime=l;a.memoizedState=k}}\nfunction Cg(a,b,c){a=b.effects;b.effects=null;if(null!==a)for(b=0;by?(A=m,m=null):A=m.sibling;var q=x(e,m,h[y],k);if(null===q){null===m&&(m=A);break}a&&\nm&&null===q.alternate&&b(e,m);g=f(q,g,y);null===t?l=q:t.sibling=q;t=q;m=A}if(y===h.length)return c(e,m),l;if(null===m){for(;yy?(A=t,t=null):A=t.sibling;var D=x(e,t,q.value,l);if(null===D){null===t&&(t=A);break}a&&t&&null===D.alternate&&b(e,t);g=f(D,g,y);null===m?k=D:m.sibling=D;m=D;t=A}if(q.done)return c(e,t),k;if(null===t){for(;!q.done;y++,q=h.next())q=p(e,q.value,l),null!==q&&(g=f(q,g,y),null===m?k=q:m.sibling=q,m=q);return k}for(t=d(e,t);!q.done;y++,q=h.next())q=z(t,e,y,q.value,l),null!==q&&(a&&null!==\nq.alternate&&t.delete(null===q.key?y:q.key),g=f(q,g,y),null===m?k=q:m.sibling=q,m=q);a&&t.forEach(function(a){return b(e,a)});return k}return function(a,d,f,h){var k=\"object\"===typeof f&&null!==f&&f.type===ab&&null===f.key;k&&(f=f.props.children);var l=\"object\"===typeof f&&null!==f;if(l)switch(f.$$typeof){case Za:a:{l=f.key;for(k=d;null!==k;){if(k.key===l){switch(k.tag){case 7:if(f.type===ab){c(a,k.sibling);d=e(k,f.props.children);d.return=a;a=d;break a}break;default:if(k.elementType===f.type){c(a,\nk.sibling);d=e(k,f.props);d.ref=Pg(a,k,f);d.return=a;a=d;break a}}c(a,k);break}else b(a,k);k=k.sibling}f.type===ab?(d=Wg(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=Ug(f.type,f.key,f.props,null,a.mode,h),h.ref=Pg(a,d,f),h.return=a,a=h)}return g(a);case $a:a:{for(k=f.key;null!==d;){if(d.key===k)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=\nd.sibling}d=Vg(f,a.mode,h);d.return=a;a=d}return g(a)}if(\"string\"===typeof f||\"number\"===typeof f)return f=\"\"+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):(c(a,d),d=Tg(f,a.mode,h),d.return=a,a=d),g(a);if(Og(f))return ca(a,d,f,h);if(nb(f))return D(a,d,f,h);l&&Qg(a,f);if(\"undefined\"===typeof f&&!k)switch(a.tag){case 1:case 0:throw a=a.type,Error(u(152,a.displayName||a.name||\"Component\"));}return c(a,d)}}var Xg=Rg(!0),Yg=Rg(!1),Zg={},$g={current:Zg},ah={current:Zg},bh={current:Zg};\nfunction ch(a){if(a===Zg)throw Error(u(174));return a}function dh(a,b){I(bh,b);I(ah,a);I($g,Zg);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:Ob(null,\"\");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=Ob(b,a)}H($g);I($g,b)}function eh(){H($g);H(ah);H(bh)}function fh(a){ch(bh.current);var b=ch($g.current);var c=Ob(b,a.type);b!==c&&(I(ah,a),I($g,c))}function gh(a){ah.current===a&&(H($g),H(ah))}var M={current:0};\nfunction hh(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||c.data===Bd||c.data===Cd))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.effectTag&64))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}function ih(a,b){return{responder:a,props:b}}\nvar jh=Wa.ReactCurrentDispatcher,kh=Wa.ReactCurrentBatchConfig,lh=0,N=null,O=null,P=null,mh=!1;function Q(){throw Error(u(321));}function nh(a,b){if(null===b)return!1;for(var c=0;cf))throw Error(u(301));f+=1;P=O=null;b.updateQueue=null;jh.current=rh;a=c(d,e)}while(b.expirationTime===lh)}jh.current=sh;b=null!==O&&null!==O.next;lh=0;P=O=N=null;mh=!1;if(b)throw Error(u(300));return a}\nfunction th(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};null===P?N.memoizedState=P=a:P=P.next=a;return P}function uh(){if(null===O){var a=N.alternate;a=null!==a?a.memoizedState:null}else a=O.next;var b=null===P?N.memoizedState:P.next;if(null!==b)P=b,O=a;else{if(null===a)throw Error(u(310));O=a;a={memoizedState:O.memoizedState,baseState:O.baseState,baseQueue:O.baseQueue,queue:O.queue,next:null};null===P?N.memoizedState=P=a:P=P.next=a}return P}\nfunction vh(a,b){return\"function\"===typeof b?b(a):b}\nfunction wh(a){var b=uh(),c=b.queue;if(null===c)throw Error(u(311));c.lastRenderedReducer=a;var d=O,e=d.baseQueue,f=c.pending;if(null!==f){if(null!==e){var g=e.next;e.next=f.next;f.next=g}d.baseQueue=e=f;c.pending=null}if(null!==e){e=e.next;d=d.baseState;var h=g=f=null,k=e;do{var l=k.expirationTime;if(lN.expirationTime&&\n(N.expirationTime=l,Bg(l))}else null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:k.suspenseConfig,action:k.action,eagerReducer:k.eagerReducer,eagerState:k.eagerState,next:null}),Ag(l,k.suspenseConfig),d=k.eagerReducer===a?k.eagerState:a(d,k.action);k=k.next}while(null!==k&&k!==e);null===h?f=d:h.next=g;$e(d,b.memoizedState)||(rg=!0);b.memoizedState=d;b.baseState=f;b.baseQueue=h;c.lastRenderedState=d}return[b.memoizedState,c.dispatch]}\nfunction xh(a){var b=uh(),c=b.queue;if(null===c)throw Error(u(311));c.lastRenderedReducer=a;var d=c.dispatch,e=c.pending,f=b.memoizedState;if(null!==e){c.pending=null;var g=e=e.next;do f=a(f,g.action),g=g.next;while(g!==e);$e(f,b.memoizedState)||(rg=!0);b.memoizedState=f;null===b.baseQueue&&(b.baseState=f);c.lastRenderedState=f}return[f,d]}\nfunction yh(a){var b=th();\"function\"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a=b.queue={pending:null,dispatch:null,lastRenderedReducer:vh,lastRenderedState:a};a=a.dispatch=zh.bind(null,N,a);return[b.memoizedState,a]}function Ah(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};b=N.updateQueue;null===b?(b={lastEffect:null},N.updateQueue=b,b.lastEffect=a.next=a):(c=b.lastEffect,null===c?b.lastEffect=a.next=a:(d=c.next,c.next=a,a.next=d,b.lastEffect=a));return a}\nfunction Bh(){return uh().memoizedState}function Ch(a,b,c,d){var e=th();N.effectTag|=a;e.memoizedState=Ah(1|b,c,void 0,void 0===d?null:d)}function Dh(a,b,c,d){var e=uh();d=void 0===d?null:d;var f=void 0;if(null!==O){var g=O.memoizedState;f=g.destroy;if(null!==d&&nh(d,g.deps)){Ah(b,c,f,d);return}}N.effectTag|=a;e.memoizedState=Ah(1|b,c,f,d)}function Eh(a,b){return Ch(516,4,a,b)}function Fh(a,b){return Dh(516,4,a,b)}function Gh(a,b){return Dh(4,2,a,b)}\nfunction Hh(a,b){if(\"function\"===typeof b)return a=a(),b(a),function(){b(null)};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null}}function Ih(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return Dh(4,2,Hh.bind(null,b,a),c)}function Jh(){}function Kh(a,b){th().memoizedState=[a,void 0===b?null:b];return a}function Lh(a,b){var c=uh();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&nh(b,d[1]))return d[0];c.memoizedState=[a,b];return a}\nfunction Mh(a,b){var c=uh();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&nh(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a}function Nh(a,b,c){var d=ag();cg(98>d?98:d,function(){a(!0)});cg(97\\x3c/script>\",a=a.removeChild(a.firstChild)):\"string\"===typeof d.is?a=g.createElement(e,{is:d.is}):(a=g.createElement(e),\"select\"===e&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,e);a[Md]=b;a[Nd]=d;ni(a,b,!1,!1);b.stateNode=a;g=pd(e,d);switch(e){case \"iframe\":case \"object\":case \"embed\":F(\"load\",\na);h=d;break;case \"video\":case \"audio\":for(h=0;hd.tailExpiration&&1b)&&tj.set(a,b)))}}\nfunction xj(a,b){a.expirationTimea?c:a;return 2>=a&&b!==a?0:a}\nfunction Z(a){if(0!==a.lastExpiredTime)a.callbackExpirationTime=1073741823,a.callbackPriority=99,a.callbackNode=eg(yj.bind(null,a));else{var b=zj(a),c=a.callbackNode;if(0===b)null!==c&&(a.callbackNode=null,a.callbackExpirationTime=0,a.callbackPriority=90);else{var d=Gg();1073741823===b?d=99:1===b||2===b?d=95:(d=10*(1073741821-b)-10*(1073741821-d),d=0>=d?99:250>=d?98:5250>=d?97:95);if(null!==c){var e=a.callbackPriority;if(a.callbackExpirationTime===b&&e>=d)return;c!==Tf&&Kf(c)}a.callbackExpirationTime=\nb;a.callbackPriority=d;b=1073741823===b?eg(yj.bind(null,a)):dg(d,Bj.bind(null,a),{timeout:10*(1073741821-b)-$f()});a.callbackNode=b}}}\nfunction Bj(a,b){wj=0;if(b)return b=Gg(),Cj(a,b),Z(a),null;var c=zj(a);if(0!==c){b=a.callbackNode;if((W&(fj|gj))!==V)throw Error(u(327));Dj();a===T&&c===U||Ej(a,c);if(null!==X){var d=W;W|=fj;var e=Fj();do try{Gj();break}catch(h){Hj(a,h)}while(1);ng();W=d;cj.current=e;if(S===hj)throw b=kj,Ej(a,c),xi(a,c),Z(a),b;if(null===X)switch(e=a.finishedWork=a.current.alternate,a.finishedExpirationTime=c,d=S,T=null,d){case ti:case hj:throw Error(u(345));case ij:Cj(a,2=c){a.lastPingedTime=c;Ej(a,c);break}}f=zj(a);if(0!==f&&f!==c)break;if(0!==d&&d!==c){a.lastPingedTime=d;break}a.timeoutHandle=Hd(Jj.bind(null,a),e);break}Jj(a);break;case vi:xi(a,c);d=a.lastSuspendedTime;c===d&&(a.nextKnownPendingLevel=Ij(e));if(oj&&(e=a.lastPingedTime,0===e||e>=c)){a.lastPingedTime=c;Ej(a,c);break}e=zj(a);if(0!==e&&e!==c)break;if(0!==d&&d!==c){a.lastPingedTime=\nd;break}1073741823!==mj?d=10*(1073741821-mj)-$f():1073741823===lj?d=0:(d=10*(1073741821-lj)-5E3,e=$f(),c=10*(1073741821-c)-e,d=e-d,0>d&&(d=0),d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*bj(d/1960))-d,c=d?d=0:(e=g.busyDelayMs|0,f=$f()-(10*(1073741821-f)-(g.timeoutMs|0||5E3)),d=f<=e?0:e+d-f);if(10 component higher in the tree to provide a loading indicator or placeholder to display.\"+qb(g))}S!==\njj&&(S=ij);h=Ai(h,g);p=f;do{switch(p.tag){case 3:k=h;p.effectTag|=4096;p.expirationTime=b;var B=Xi(p,k,b);yg(p,B);break a;case 1:k=h;var w=p.type,ub=p.stateNode;if(0===(p.effectTag&64)&&(\"function\"===typeof w.getDerivedStateFromError||null!==ub&&\"function\"===typeof ub.componentDidCatch&&(null===aj||!aj.has(ub)))){p.effectTag|=4096;p.expirationTime=b;var vb=$i(p,k,b);yg(p,vb);break a}}p=p.return}while(null!==p)}X=Pj(X)}catch(Xc){b=Xc;continue}break}while(1)}\nfunction Fj(){var a=cj.current;cj.current=sh;return null===a?sh:a}function Ag(a,b){awi&&(wi=a)}function Kj(){for(;null!==X;)X=Qj(X)}function Gj(){for(;null!==X&&!Uf();)X=Qj(X)}function Qj(a){var b=Rj(a.alternate,a,U);a.memoizedProps=a.pendingProps;null===b&&(b=Pj(a));dj.current=null;return b}\nfunction Pj(a){X=a;do{var b=X.alternate;a=X.return;if(0===(X.effectTag&2048)){b=si(b,X,U);if(1===U||1!==X.childExpirationTime){for(var c=0,d=X.child;null!==d;){var e=d.expirationTime,f=d.childExpirationTime;e>c&&(c=e);f>c&&(c=f);d=d.sibling}X.childExpirationTime=c}if(null!==b)return b;null!==a&&0===(a.effectTag&2048)&&(null===a.firstEffect&&(a.firstEffect=X.firstEffect),null!==X.lastEffect&&(null!==a.lastEffect&&(a.lastEffect.nextEffect=X.firstEffect),a.lastEffect=X.lastEffect),1a?b:a}function Jj(a){var b=ag();cg(99,Sj.bind(null,a,b));return null}\nfunction Sj(a,b){do Dj();while(null!==rj);if((W&(fj|gj))!==V)throw Error(u(327));var c=a.finishedWork,d=a.finishedExpirationTime;if(null===c)return null;a.finishedWork=null;a.finishedExpirationTime=0;if(c===a.current)throw Error(u(177));a.callbackNode=null;a.callbackExpirationTime=0;a.callbackPriority=90;a.nextKnownPendingLevel=0;var e=Ij(c);a.firstPendingTime=e;d<=a.lastSuspendedTime?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:d<=a.firstSuspendedTime&&(a.firstSuspendedTime=\nd-1);d<=a.lastPingedTime&&(a.lastPingedTime=0);d<=a.lastExpiredTime&&(a.lastExpiredTime=0);a===T&&(X=T=null,U=0);1h&&(l=h,h=g,g=l),l=vd(q,g),m=vd(q,h),l&&m&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==m.node||w.focusOffset!==m.offset)&&(B=B.createRange(),B.setStart(l.node,l.offset),w.removeAllRanges(),g>h?(w.addRange(B),w.extend(m.node,m.offset)):(B.setEnd(m.node,m.offset),w.addRange(B))))));B=[];for(w=q;w=w.parentNode;)1===w.nodeType&&B.push({element:w,left:w.scrollLeft,\ntop:w.scrollTop});\"function\"===typeof q.focus&&q.focus();for(q=0;q=c)return ji(a,b,c);I(M,M.current&1);b=$h(a,b,c);return null!==b?b.sibling:null}I(M,M.current&1);break;case 19:d=b.childExpirationTime>=c;if(0!==(a.effectTag&64)){if(d)return mi(a,b,c);b.effectTag|=64}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null);I(M,M.current);if(!d)return null}return $h(a,b,c)}rg=!1}}else rg=!1;b.expirationTime=0;switch(b.tag){case 2:d=b.type;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;e=Cf(b,J.current);qg(b,c);e=oh(null,\nb,d,a,e,c);b.effectTag|=1;if(\"object\"===typeof e&&null!==e&&\"function\"===typeof e.render&&void 0===e.$$typeof){b.tag=1;b.memoizedState=null;b.updateQueue=null;if(L(d)){var f=!0;Gf(b)}else f=!1;b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null;ug(b);var g=d.getDerivedStateFromProps;\"function\"===typeof g&&Fg(b,d,g,a);e.updater=Jg;b.stateNode=e;e._reactInternalFiber=b;Ng(b,d,a,c);b=gi(null,b,d,!0,f,c)}else b.tag=0,R(null,b,e,c),b=b.child;return b;case 16:a:{e=b.elementType;null!==a&&(a.alternate=\nnull,b.alternate=null,b.effectTag|=2);a=b.pendingProps;ob(e);if(1!==e._status)throw e._result;e=e._result;b.type=e;f=b.tag=Xj(e);a=ig(e,a);switch(f){case 0:b=di(null,b,e,a,c);break a;case 1:b=fi(null,b,e,a,c);break a;case 11:b=Zh(null,b,e,a,c);break a;case 14:b=ai(null,b,e,ig(e.type,a),d,c);break a}throw Error(u(306,e,\"\"));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:ig(d,e),di(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:ig(d,e),fi(a,b,d,e,c);\ncase 3:hi(b);d=b.updateQueue;if(null===a||null===d)throw Error(u(282));d=b.pendingProps;e=b.memoizedState;e=null!==e?e.element:null;vg(a,b);zg(b,d,null,c);d=b.memoizedState.element;if(d===e)Xh(),b=$h(a,b,c);else{if(e=b.stateNode.hydrate)Ph=Jd(b.stateNode.containerInfo.firstChild),Oh=b,e=Qh=!0;if(e)for(c=Yg(b,null,d,c),b.child=c;c;)c.effectTag=c.effectTag&-3|1024,c=c.sibling;else R(a,b,d,c),Xh();b=b.child}return b;case 5:return fh(b),null===a&&Uh(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:\nnull,g=e.children,Gd(d,e)?g=null:null!==f&&Gd(d,f)&&(b.effectTag|=16),ei(a,b),b.mode&4&&1!==c&&e.hidden?(b.expirationTime=b.childExpirationTime=1,b=null):(R(a,b,g,c),b=b.child),b;case 6:return null===a&&Uh(b),null;case 13:return ji(a,b,c);case 4:return dh(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Xg(b,null,d,c):R(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:ig(d,e),Zh(a,b,d,e,c);case 7:return R(a,b,b.pendingProps,c),b.child;case 8:return R(a,\nb,b.pendingProps.children,c),b.child;case 12:return R(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;g=b.memoizedProps;f=e.value;var h=b.type._context;I(jg,h._currentValue);h._currentValue=f;if(null!==g)if(h=g.value,f=$e(h,f)?0:(\"function\"===typeof d._calculateChangedBits?d._calculateChangedBits(h,f):1073741823)|0,0===f){if(g.children===e.children&&!K.current){b=$h(a,b,c);break a}}else for(h=b.child,null!==h&&(h.return=b);null!==h;){var k=h.dependencies;if(null!==\nk){g=h.child;for(var l=k.firstContext;null!==l;){if(l.context===d&&0!==(l.observedBits&f)){1===h.tag&&(l=wg(c,null),l.tag=2,xg(h,l));h.expirationTime=b&&a<=b}function xi(a,b){var c=a.firstSuspendedTime,d=a.lastSuspendedTime;cb||0===c)a.lastSuspendedTime=b;b<=a.lastPingedTime&&(a.lastPingedTime=0);b<=a.lastExpiredTime&&(a.lastExpiredTime=0)}\nfunction yi(a,b){b>a.firstPendingTime&&(a.firstPendingTime=b);var c=a.firstSuspendedTime;0!==c&&(b>=c?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:b>=a.lastSuspendedTime&&(a.lastSuspendedTime=b+1),b>a.nextKnownPendingLevel&&(a.nextKnownPendingLevel=b))}function Cj(a,b){var c=a.lastExpiredTime;if(0===c||c>b)a.lastExpiredTime=b}\nfunction bk(a,b,c,d){var e=b.current,f=Gg(),g=Dg.suspense;f=Hg(f,e,g);a:if(c){c=c._reactInternalFiber;b:{if(dc(c)!==c||1!==c.tag)throw Error(u(170));var h=c;do{switch(h.tag){case 3:h=h.stateNode.context;break b;case 1:if(L(h.type)){h=h.stateNode.__reactInternalMemoizedMergedChildContext;break b}}h=h.return}while(null!==h);throw Error(u(171));}if(1===c.tag){var k=c.type;if(L(k)){c=Ff(c,k,h);break a}}c=h}else c=Af;null===b.context?b.context=c:b.pendingContext=c;b=wg(f,g);b.payload={element:a};d=void 0===\nd?null:d;null!==d&&(b.callback=d);xg(e,b);Ig(e,f);return f}function ck(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function dk(a,b){a=a.memoizedState;null!==a&&null!==a.dehydrated&&a.retryTime=G};l=function(){};exports.unstable_forceFrameRate=function(a){0>a||125>>1,e=a[d];if(void 0!==e&&0K(n,c))void 0!==r&&0>K(r,n)?(a[d]=r,a[v]=c,d=v):(a[d]=n,a[m]=c,d=m);else if(void 0!==r&&0>K(r,c))a[d]=r,a[v]=c,d=v;else break a}}return b}return null}function K(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}var N=[],O=[],P=1,Q=null,R=3,S=!1,T=!1,U=!1;\nfunction V(a){for(var b=L(O);null!==b;){if(null===b.callback)M(O);else if(b.startTime<=a)M(O),b.sortIndex=b.expirationTime,J(N,b);else break;b=L(O)}}function W(a){U=!1;V(a);if(!T)if(null!==L(N))T=!0,f(X);else{var b=L(O);null!==b&&g(W,b.startTime-a)}}\nfunction X(a,b){T=!1;U&&(U=!1,h());S=!0;var c=R;try{V(b);for(Q=L(N);null!==Q&&(!(Q.expirationTime>b)||a&&!k());){var d=Q.callback;if(null!==d){Q.callback=null;R=Q.priorityLevel;var e=d(Q.expirationTime<=b);b=exports.unstable_now();\"function\"===typeof e?Q.callback=e:Q===L(N)&&M(N);V(b)}else M(N);Q=L(N)}if(null!==Q)var m=!0;else{var n=L(O);null!==n&&g(W,n.startTime-b);m=!1}return m}finally{Q=null,R=c,S=!1}}\nfunction Y(a){switch(a){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1E4;default:return 5E3}}var Z=l;exports.unstable_IdlePriority=5;exports.unstable_ImmediatePriority=1;exports.unstable_LowPriority=4;exports.unstable_NormalPriority=3;exports.unstable_Profiling=null;exports.unstable_UserBlockingPriority=2;exports.unstable_cancelCallback=function(a){a.callback=null};exports.unstable_continueExecution=function(){T||S||(T=!0,f(X))};\nexports.unstable_getCurrentPriorityLevel=function(){return R};exports.unstable_getFirstCallbackNode=function(){return L(N)};exports.unstable_next=function(a){switch(R){case 1:case 2:case 3:var b=3;break;default:b=R}var c=R;R=b;try{return a()}finally{R=c}};exports.unstable_pauseExecution=function(){};exports.unstable_requestPaint=Z;exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=R;R=a;try{return b()}finally{R=c}};\nexports.unstable_scheduleCallback=function(a,b,c){var d=exports.unstable_now();if(\"object\"===typeof c&&null!==c){var e=c.delay;e=\"number\"===typeof e&&0d?(a.sortIndex=e,J(O,a),null===L(N)&&a===L(O)&&(U?h():U=!0,g(W,e-d))):(a.sortIndex=c,J(N,a),T||S||(T=!0,f(X)));return a};\nexports.unstable_shouldYield=function(){var a=exports.unstable_now();V(a);var b=L(N);return b!==Q&&null!==Q&&null!==b&&null!==b.callback&&b.startTime<=a&&b.expirationTime= len) return x;\n switch (x) {\n case '%s': return String(args[i++]);\n case '%d': return Number(args[i++]);\n case '%j':\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return '[Circular]';\n }\n default:\n return x;\n }\n });\n for (var x = args[i]; i < len; x = args[++i]) {\n if (isNull(x) || !isObject(x)) {\n str += ' ' + x;\n } else {\n str += ' ' + inspect(x);\n }\n }\n return str;\n};\n\n\n// Mark that a method should not be used.\n// Returns a modified function which warns once by default.\n// If --no-deprecation is set, then it is a no-op.\nexports.deprecate = function(fn, msg) {\n if (typeof process !== 'undefined' && process.noDeprecation === true) {\n return fn;\n }\n\n // Allow for deprecating things in the process of starting up.\n if (typeof process === 'undefined') {\n return function() {\n return exports.deprecate(fn, msg).apply(this, arguments);\n };\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (process.throwDeprecation) {\n throw new Error(msg);\n } else if (process.traceDeprecation) {\n console.trace(msg);\n } else {\n console.error(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n};\n\n\nvar debugs = {};\nvar debugEnviron;\nexports.debuglog = function(set) {\n if (isUndefined(debugEnviron))\n debugEnviron = process.env.NODE_DEBUG || '';\n set = set.toUpperCase();\n if (!debugs[set]) {\n if (new RegExp('\\\\b' + set + '\\\\b', 'i').test(debugEnviron)) {\n var pid = process.pid;\n debugs[set] = function() {\n var msg = exports.format.apply(exports, arguments);\n console.error('%s %d: %s', set, pid, msg);\n };\n } else {\n debugs[set] = function() {};\n }\n }\n return debugs[set];\n};\n\n\n/**\n * Echos the value of a value. Trys to print the value out\n * in the best way possible given the different types.\n *\n * @param {Object} obj The object to print out.\n * @param {Object} opts Optional options object that alters the output.\n */\n/* legacy: obj, showHidden, depth, colors*/\nfunction inspect(obj, opts) {\n // default options\n var ctx = {\n seen: [],\n stylize: stylizeNoColor\n };\n // legacy...\n if (arguments.length >= 3) ctx.depth = arguments[2];\n if (arguments.length >= 4) ctx.colors = arguments[3];\n if (isBoolean(opts)) {\n // legacy...\n ctx.showHidden = opts;\n } else if (opts) {\n // got an \"options\" object\n exports._extend(ctx, opts);\n }\n // set default options\n if (isUndefined(ctx.showHidden)) ctx.showHidden = false;\n if (isUndefined(ctx.depth)) ctx.depth = 2;\n if (isUndefined(ctx.colors)) ctx.colors = false;\n if (isUndefined(ctx.customInspect)) ctx.customInspect = true;\n if (ctx.colors) ctx.stylize = stylizeWithColor;\n return formatValue(ctx, obj, ctx.depth);\n}\nexports.inspect = inspect;\n\n\n// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics\ninspect.colors = {\n 'bold' : [1, 22],\n 'italic' : [3, 23],\n 'underline' : [4, 24],\n 'inverse' : [7, 27],\n 'white' : [37, 39],\n 'grey' : [90, 39],\n 'black' : [30, 39],\n 'blue' : [34, 39],\n 'cyan' : [36, 39],\n 'green' : [32, 39],\n 'magenta' : [35, 39],\n 'red' : [31, 39],\n 'yellow' : [33, 39]\n};\n\n// Don't use 'blue' not visible on cmd.exe\ninspect.styles = {\n 'special': 'cyan',\n 'number': 'yellow',\n 'boolean': 'yellow',\n 'undefined': 'grey',\n 'null': 'bold',\n 'string': 'green',\n 'date': 'magenta',\n // \"name\": intentionally not styling\n 'regexp': 'red'\n};\n\n\nfunction stylizeWithColor(str, styleType) {\n var style = inspect.styles[styleType];\n\n if (style) {\n return '\\u001b[' + inspect.colors[style][0] + 'm' + str +\n '\\u001b[' + inspect.colors[style][1] + 'm';\n } else {\n return str;\n }\n}\n\n\nfunction stylizeNoColor(str, styleType) {\n return str;\n}\n\n\nfunction arrayToHash(array) {\n var hash = {};\n\n array.forEach(function(val, idx) {\n hash[val] = true;\n });\n\n return hash;\n}\n\n\nfunction formatValue(ctx, value, recurseTimes) {\n // Provide a hook for user-specified inspect functions.\n // Check that value is an object with an inspect function on it\n if (ctx.customInspect &&\n value &&\n isFunction(value.inspect) &&\n // Filter out the util module, it's inspect function is special\n value.inspect !== exports.inspect &&\n // Also filter out any prototype objects using the circular check.\n !(value.constructor && value.constructor.prototype === value)) {\n var ret = value.inspect(recurseTimes, ctx);\n if (!isString(ret)) {\n ret = formatValue(ctx, ret, recurseTimes);\n }\n return ret;\n }\n\n // Primitive types cannot have properties\n var primitive = formatPrimitive(ctx, value);\n if (primitive) {\n return primitive;\n }\n\n // Look up the keys of the object.\n var keys = Object.keys(value);\n var visibleKeys = arrayToHash(keys);\n\n if (ctx.showHidden) {\n keys = Object.getOwnPropertyNames(value);\n }\n\n // IE doesn't make error fields non-enumerable\n // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx\n if (isError(value)\n && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {\n return formatError(value);\n }\n\n // Some type of object without properties can be shortcutted.\n if (keys.length === 0) {\n if (isFunction(value)) {\n var name = value.name ? ': ' + value.name : '';\n return ctx.stylize('[Function' + name + ']', 'special');\n }\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n }\n if (isDate(value)) {\n return ctx.stylize(Date.prototype.toString.call(value), 'date');\n }\n if (isError(value)) {\n return formatError(value);\n }\n }\n\n var base = '', array = false, braces = ['{', '}'];\n\n // Make Array say that they are Array\n if (isArray(value)) {\n array = true;\n braces = ['[', ']'];\n }\n\n // Make functions say that they are functions\n if (isFunction(value)) {\n var n = value.name ? ': ' + value.name : '';\n base = ' [Function' + n + ']';\n }\n\n // Make RegExps say that they are RegExps\n if (isRegExp(value)) {\n base = ' ' + RegExp.prototype.toString.call(value);\n }\n\n // Make dates with properties first say the date\n if (isDate(value)) {\n base = ' ' + Date.prototype.toUTCString.call(value);\n }\n\n // Make error with message first say the error\n if (isError(value)) {\n base = ' ' + formatError(value);\n }\n\n if (keys.length === 0 && (!array || value.length == 0)) {\n return braces[0] + base + braces[1];\n }\n\n if (recurseTimes < 0) {\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n } else {\n return ctx.stylize('[Object]', 'special');\n }\n }\n\n ctx.seen.push(value);\n\n var output;\n if (array) {\n output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n } else {\n output = keys.map(function(key) {\n return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);\n });\n }\n\n ctx.seen.pop();\n\n return reduceToSingleString(output, base, braces);\n}\n\n\nfunction formatPrimitive(ctx, value) {\n if (isUndefined(value))\n return ctx.stylize('undefined', 'undefined');\n if (isString(value)) {\n var simple = '\\'' + JSON.stringify(value).replace(/^\"|\"$/g, '')\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"') + '\\'';\n return ctx.stylize(simple, 'string');\n }\n if (isNumber(value))\n return ctx.stylize('' + value, 'number');\n if (isBoolean(value))\n return ctx.stylize('' + value, 'boolean');\n // For some reason typeof null is \"object\", so special case here.\n if (isNull(value))\n return ctx.stylize('null', 'null');\n}\n\n\nfunction formatError(value) {\n return '[' + Error.prototype.toString.call(value) + ']';\n}\n\n\nfunction formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n var output = [];\n for (var i = 0, l = value.length; i < l; ++i) {\n if (hasOwnProperty(value, String(i))) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n String(i), true));\n } else {\n output.push('');\n }\n }\n keys.forEach(function(key) {\n if (!key.match(/^\\d+$/)) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n key, true));\n }\n });\n return output;\n}\n\n\nfunction formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n var name, str, desc;\n desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };\n if (desc.get) {\n if (desc.set) {\n str = ctx.stylize('[Getter/Setter]', 'special');\n } else {\n str = ctx.stylize('[Getter]', 'special');\n }\n } else {\n if (desc.set) {\n str = ctx.stylize('[Setter]', 'special');\n }\n }\n if (!hasOwnProperty(visibleKeys, key)) {\n name = '[' + key + ']';\n }\n if (!str) {\n if (ctx.seen.indexOf(desc.value) < 0) {\n if (isNull(recurseTimes)) {\n str = formatValue(ctx, desc.value, null);\n } else {\n str = formatValue(ctx, desc.value, recurseTimes - 1);\n }\n if (str.indexOf('\\n') > -1) {\n if (array) {\n str = str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n').substr(2);\n } else {\n str = '\\n' + str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n');\n }\n }\n } else {\n str = ctx.stylize('[Circular]', 'special');\n }\n }\n if (isUndefined(name)) {\n if (array && key.match(/^\\d+$/)) {\n return str;\n }\n name = JSON.stringify('' + key);\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.substr(1, name.length - 2);\n name = ctx.stylize(name, 'name');\n } else {\n name = name.replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\");\n name = ctx.stylize(name, 'string');\n }\n }\n\n return name + ': ' + str;\n}\n\n\nfunction reduceToSingleString(output, base, braces) {\n var numLinesEst = 0;\n var length = output.reduce(function(prev, cur) {\n numLinesEst++;\n if (cur.indexOf('\\n') >= 0) numLinesEst++;\n return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\n }, 0);\n\n if (length > 60) {\n return braces[0] +\n (base === '' ? '' : base + '\\n ') +\n ' ' +\n output.join(',\\n ') +\n ' ' +\n braces[1];\n }\n\n return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\n}\n\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\nfunction isArray(ar) {\n return Array.isArray(ar);\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return isObject(re) && objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return isObject(d) && objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return isObject(e) &&\n (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = require('./support/isBuffer');\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n\nfunction pad(n) {\n return n < 10 ? '0' + n.toString(10) : n.toString(10);\n}\n\n\nvar months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',\n 'Oct', 'Nov', 'Dec'];\n\n// 26 Feb 16:19:34\nfunction timestamp() {\n var d = new Date();\n var time = [pad(d.getHours()),\n pad(d.getMinutes()),\n pad(d.getSeconds())].join(':');\n return [d.getDate(), months[d.getMonth()], time].join(' ');\n}\n\n\n// log is just a thin wrapper to console.log that prepends a timestamp\nexports.log = function() {\n console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));\n};\n\n\n/**\n * Inherit the prototype methods from one constructor into another.\n *\n * The Function.prototype.inherits from lang.js rewritten as a standalone\n * function (not on Function.prototype). NOTE: If this file is to be loaded\n * during bootstrapping this function needs to be rewritten using some native\n * functions as prototype setup using normal JavaScript does not work as\n * expected during bootstrapping (see mirror.js in r114903).\n *\n * @param {function} ctor Constructor function which needs to inherit the\n * prototype.\n * @param {function} superCtor Constructor function to inherit prototype from.\n */\nexports.inherits = require('inherits');\n\nexports._extend = function(origin, add) {\n // Don't do anything if add isn't an object\n if (!add || !isObject(add)) return origin;\n\n var keys = Object.keys(add);\n var i = keys.length;\n while (i--) {\n origin[keys[i]] = add[keys[i]];\n }\n return origin;\n};\n\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nvar kCustomPromisifiedSymbol = typeof Symbol !== 'undefined' ? Symbol('util.promisify.custom') : undefined;\n\nexports.promisify = function promisify(original) {\n if (typeof original !== 'function')\n throw new TypeError('The \"original\" argument must be of type Function');\n\n if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) {\n var fn = original[kCustomPromisifiedSymbol];\n if (typeof fn !== 'function') {\n throw new TypeError('The \"util.promisify.custom\" argument must be of type Function');\n }\n Object.defineProperty(fn, kCustomPromisifiedSymbol, {\n value: fn, enumerable: false, writable: false, configurable: true\n });\n return fn;\n }\n\n function fn() {\n var promiseResolve, promiseReject;\n var promise = new Promise(function (resolve, reject) {\n promiseResolve = resolve;\n promiseReject = reject;\n });\n\n var args = [];\n for (var i = 0; i < arguments.length; i++) {\n args.push(arguments[i]);\n }\n args.push(function (err, value) {\n if (err) {\n promiseReject(err);\n } else {\n promiseResolve(value);\n }\n });\n\n try {\n original.apply(this, args);\n } catch (err) {\n promiseReject(err);\n }\n\n return promise;\n }\n\n Object.setPrototypeOf(fn, Object.getPrototypeOf(original));\n\n if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, {\n value: fn, enumerable: false, writable: false, configurable: true\n });\n return Object.defineProperties(\n fn,\n getOwnPropertyDescriptors(original)\n );\n}\n\nexports.promisify.custom = kCustomPromisifiedSymbol\n\nfunction callbackifyOnRejected(reason, cb) {\n // `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M).\n // Because `null` is a special error value in callbacks which means \"no error\n // occurred\", we error-wrap so the callback consumer can distinguish between\n // \"the promise rejected with null\" or \"the promise fulfilled with undefined\".\n if (!reason) {\n var newReason = new Error('Promise was rejected with a falsy value');\n newReason.reason = reason;\n reason = newReason;\n }\n return cb(reason);\n}\n\nfunction callbackify(original) {\n if (typeof original !== 'function') {\n throw new TypeError('The \"original\" argument must be of type Function');\n }\n\n // We DO NOT return the promise as it gives the user a false sense that\n // the promise is actually somehow related to the callback's execution\n // and that the callback throwing will reject the promise.\n function callbackified() {\n var args = [];\n for (var i = 0; i < arguments.length; i++) {\n args.push(arguments[i]);\n }\n\n var maybeCb = args.pop();\n if (typeof maybeCb !== 'function') {\n throw new TypeError('The last argument must be of type Function');\n }\n var self = this;\n var cb = function() {\n return maybeCb.apply(self, arguments);\n };\n // In true node style we process the callback on `nextTick` with all the\n // implications (stack, `uncaughtException`, `async_hooks`)\n original.apply(this, args)\n .then(function(ret) { process.nextTick(cb, null, ret) },\n function(rej) { process.nextTick(callbackifyOnRejected, rej, cb) });\n }\n\n Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original));\n Object.defineProperties(callbackified,\n getOwnPropertyDescriptors(original));\n return callbackified;\n}\nexports.callbackify = callbackify;\n","module.exports = function isBuffer(arg) {\n return arg && typeof arg === 'object'\n && typeof arg.copy === 'function'\n && typeof arg.fill === 'function'\n && typeof arg.readUInt8 === 'function';\n}","if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n","'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(\n uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)\n ))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","exports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","/*! ------------------------------------------------------\n\n\tJconv\n\n\tCopyright (c) 2013 narirou\n\tMIT Licensed\n\n------------------------------------------------------- */\n\n( function() {\n\n\t'use strict';\n\n\tvar unknown = '・'.charCodeAt( 0 );\n\n\tvar tables = {\n\t\t'SJIS': require( './tables/SJIS' ),\n\t\t'JIS': require( './tables/JIS' ),\n\t\t'JISEXT': require( './tables/JISEXT' ),\n\t\t'SJISInverted': require( './tables/SJISInverted' ),\n\t\t'JISInverted': require( './tables/JISInverted' ),\n\t\t'JISEXTInverted': require( './tables/JISEXTInverted' )\n\t};\n\n\tvar encodings = {};\n\n\tvar jconv = module.exports = function( buf, from, to ) {\n\t\treturn jconv.convert( buf, from, to );\n\t};\n\n\tjconv.defineEncoding = function( obj ) {\n\t\tvar Encoding = function( obj ) {\n\t\t\tthis.name = obj.name;\n\t\t\tthis.convert = obj.convert;\n\t\t};\n\t\tencodings[ obj.name ] = new Encoding( obj );\n\t};\n\n\tjconv.convert = function( buf, from, to ) {\n\t\tfrom = getName( from );\n\t\tto = getName( to );\n\n\t\tif( ! from || ! to ) {\n\t\t\tthrow new Error( 'Encoding not recognized.' );\n\t\t}\n\n\t\tbuf = ensureBuffer( buf );\n\n\t\tif( from === to ) {\n\t\t\treturn buf;\n\t\t}\n\n\t\t// Directly convert if possible.\n\t\tvar encoder = encodings[ from + 'to' + to ];\n\t\tif( encoder ) {\n\t\t\treturn encoder.convert( buf );\n\t\t}\n\n\t\tvar uniDecoder = encodings[ from + 'toUCS2' ],\n\t\t\tuniEncoder = encodings[ 'UCS2to' + to ];\n\t\tif( uniDecoder && uniEncoder ) {\n\t\t\treturn uniEncoder.convert( uniDecoder.convert( buf ) );\n\t\t}\n\t\telse {\n\t\t\tthrow new Error( 'Encoding not recognized.' );\n\t\t}\n\t};\n\n\tjconv.decode = function( buf, from ) {\n\t\tswitch( from.toUpperCase() ) {\n\t\t\t// Internal Encoding\n\t\t\tcase 'BINARY':\n\t\t\tcase 'BASE64':\n\t\t\tcase 'ASCII':\n\t\t\tcase 'HEX':\n\t\t\tcase 'UTF8':\n\t\t\tcase 'UTF-8':\n\t\t\tcase 'UNICODE':\n\t\t\tcase 'UCS2':\n\t\t\tcase 'UCS-2':\n\t\t\tcase 'UTF16LE':\n\t\t\tcase 'UTF-16LE':\n\t\t\t\treturn buf.toString( from );\n\t\t\tdefault:\n\t\t\t\treturn jconv.convert( buf, from, 'UCS2' ).toString( 'UCS2' );\n\t\t}\n\t};\n\n\tjconv.encode = function( str, to ) {\n\t\tswitch( to.toUpperCase() ) {\n\t\t\t// Internal Encoding\n\t\t\tcase 'BASE64':\n\t\t\tcase 'ASCII':\n\t\t\tcase 'HEX':\n\t\t\tcase 'UTF8':\n\t\t\tcase 'UTF-8':\n\t\t\t\treturn new Buffer( str, to );\n\t\t\tdefault:\n\t\t\t\treturn jconv.convert( str, 'UTF8', to );\n\t\t}\n\t};\n\n\tjconv.encodingExists = function( encoding ) {\n\t\treturn getName( encoding ) ? true : false;\n\t};\n\n\tfunction getName( name ) {\n\t\tswitch( name.toUpperCase() ) {\n\t\t\tcase 'WINDOWS-31J':\n\t\t\tcase 'CP932':\n\t\t\tcase 'SJIS':\n\t\t\tcase 'SHIFTJIS':\n\t\t\tcase 'SHIFT_JIS':\n\t\t\t\treturn 'SJIS';\n\t\t\tcase 'EUCJP':\n\t\t\tcase 'EUC-JP':\n\t\t\t\treturn 'EUCJP';\n\t\t\tcase 'JIS':\n\t\t\tcase 'ISO2022JP':\n\t\t\tcase 'ISO-2022-JP':\n\t\t\tcase 'ISO-2022-JP-1':\n\t\t\t\treturn 'JIS';\n\t\t\tcase 'UTF8':\n\t\t\tcase 'UTF-8':\n\t\t\t\treturn 'UTF8';\n\t\t\tcase 'UNICODE':\n\t\t\tcase 'UCS2':\n\t\t\tcase 'UCS-2':\n\t\t\tcase 'UTF16LE':\n\t\t\tcase 'UTF-16LE':\n\t\t\t\treturn 'UCS2';\n\t\t\tdefault:\n\t\t\t\treturn '';\n\t\t}\n\t}\n\n\tfunction ensureBuffer( buf ) {\n\t\tbuf = buf || new Buffer( 0 );\n\t\treturn ( buf instanceof Buffer ) ? buf : new Buffer( buf.toString(), 'UTF8' );\n\t}\n\n\t// Unicode CharCode -> UTF8 Buffer\n\tfunction setUtf8Buffer( unicode, utf8Buffer, offset ) {\n\t\tif( unicode < 0x80 ) {\n\t\t\tutf8Buffer[ offset++ ] = unicode;\n\t\t}\n\t\telse if( unicode < 0x800 ) {\n\t\t\tutf8Buffer[ offset++ ] = 0xC0 | unicode >>> 6 ;\n\t\t\tutf8Buffer[ offset++ ] = 0x80 | unicode & 0x3F;\n\t\t}\n\t\telse if( unicode < 0x10000 ) {\n\t\t\tutf8Buffer[ offset++ ] = 0xE0 | unicode >>> 12 ;\n\t\t\tutf8Buffer[ offset++ ] = 0x80 | unicode >>> 6 & 0x3F;\n\t\t\tutf8Buffer[ offset++ ] = 0x80 | unicode & 0x3F;\n\t\t}\n\t\telse if( unicode < 0x200000 ) {\n\t\t\tutf8Buffer[ offset++ ] = 0xF0 | unicode >>> 18 ;\n\t\t\tutf8Buffer[ offset++ ] = 0x80 | unicode >>> 12 & 0x3F;\n\t\t\tutf8Buffer[ offset++ ] = 0x80 | unicode >>> 6 & 0x3F;\n\t\t\tutf8Buffer[ offset++ ] = 0x80 | unicode & 0x3F;\n\t\t}\n\t\telse if( unicode < 0x4000000 ) {\n\t\t\tutf8Buffer[ offset++ ] = 0xF8 | unicode >>> 24 ;\n\t\t\tutf8Buffer[ offset++ ] = 0x80 | unicode >>> 18 & 0x3F;\n\t\t\tutf8Buffer[ offset++ ] = 0x80 | unicode >>> 12 & 0x3F;\n\t\t\tutf8Buffer[ offset++ ] = 0x80 | unicode >>> 6 & 0x3F;\n\t\t\tutf8Buffer[ offset++ ] = 0x80 | unicode & 0x3F;\n\t\t}\n\t\telse {\n\t\t\t// ( >>>32 ) is not possible in ECMAScript. So use ( /0x40000000 ).\n\t\t\tutf8Buffer[ offset++ ] = 0xFC | unicode / 0x40000000;\n\t\t\tutf8Buffer[ offset++ ] = 0x80 | unicode >>> 24 & 0x3F;\n\t\t\tutf8Buffer[ offset++ ] = 0x80 | unicode >>> 18 & 0x3F;\n\t\t\tutf8Buffer[ offset++ ] = 0x80 | unicode >>> 12 & 0x3F;\n\t\t\tutf8Buffer[ offset++ ] = 0x80 | unicode >>> 6 & 0x3F;\n\t\t\tutf8Buffer[ offset++ ] = 0x80 | unicode & 0x3F;\n\t\t}\n\t\treturn offset;\n\t}\n\n\tfunction setUnicodeBuffer( unicode, unicodeBuffer, offset ) {\n\t\tunicodeBuffer[ offset++ ] = unicode & 0xFF;\n\t\tunicodeBuffer[ offset++ ] = unicode >> 8;\n\t\treturn offset;\n\t}\n\n\t// UCS2 = UTF16LE(no-BOM)\n\t// UCS2 -> UTF8\n\tjconv.defineEncoding({\n\t\tname: 'UCS2toUTF8',\n\n\t\tconvert: function( buf ) {\n\t\t\tvar setUtf8Buf = setUtf8Buffer;\n\n\t\t\tvar len = buf.length,\n\t\t\t\tutf8Buf = new Buffer( len * 3 ),\n\t\t\t\toffset = 0,\n\t\t\t\tunicode;\n\n\t\t\tfor( var i = 0; i < len; ) {\n\t\t\t\tvar buf1 = buf[ i++ ],\n\t\t\t\t\tbuf2 = buf[ i++ ];\n\n\t\t\t\tunicode = ( buf2 << 8 ) + buf1;\n\n\t\t\t\toffset = setUtf8Buf( unicode, utf8Buf, offset );\n\t\t\t}\n\t\t\treturn utf8Buf.slice( 0, offset );\n\t\t}\n\t});\n\n\t// UCS2 -> SJIS\n\tjconv.defineEncoding({\n\t\tname: 'UCS2toSJIS',\n\n\t\tconvert: function( buf ) {\n\t\t\tvar tableSjisInv = tables[ 'SJISInverted' ],\n\t\t\t\tunknownSjis = tableSjisInv[ unknown ];\n\n\t\t\tvar len = buf.length,\n\t\t\t\tsjisBuf = new Buffer( len ),\n\t\t\t\toffset = 0,\n\t\t\t\tunicode;\n\n\t\t\tfor( var i = 0; i > 8;\n\t\t\t\t\tsjisBuf[ offset++ ] = code & 0xFF;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn sjisBuf.slice( 0, offset );\n\t\t}\n\t});\n\n\t// UCS2 -> JIS\n\tjconv.defineEncoding({\n\t\tname: 'UCS2toJIS',\n\n\t\tconvert: function( buf ) {\n\t\t\tvar tableJisInv = tables[ 'JISInverted' ],\n\t\t\t\ttableJisExtInv = tables[ 'JISEXTInverted' ],\n\t\t\t\tunknownJis = tableJisInv[ unknown ];\n\n\t\t\tvar len = buf.length,\n\t\t\t\tjisBuf = new Buffer( len * 3 + 4 ),\n\t\t\t\toffset = 0,\n\t\t\t\tunicode,\n\t\t\t\tsequence = 0;\n\n\t\t\tfor( var i = 0; i < len; ) {\n\t\t\t\tvar buf1 = buf[ i++ ],\n\t\t\t\t\tbuf2 = buf[ i++ ];\n\n\t\t\t\tunicode = ( buf2 << 8 ) + buf1;\n\n\t\t\t\t// ASCII\n\t\t\t\tif( unicode < 0x80 ) {\n\t\t\t\t\tif( sequence !== 0 ) {\n\t\t\t\t\t\tsequence = 0;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x1B;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x28;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x42;\n\t\t\t\t\t}\n\t\t\t\t\tjisBuf[ offset++ ] = unicode;\n\t\t\t\t}\n\t\t\t\t// HALFWIDTH_KATAKANA\n\t\t\t\telse if( 0xFF61 <= unicode && unicode <= 0xFF9F ) {\n\t\t\t\t\tif( sequence !== 1 ) {\n\t\t\t\t\t\tsequence = 1;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x1B;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x28;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x49;\n\t\t\t\t\t}\n\t\t\t\t\tjisBuf[ offset++ ] = unicode - 0xFF40;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tvar code = tableJisInv[ unicode ];\n\t\t\t\t\tif( code ) {\n\t\t\t\t\t\t// KANJI\n\t\t\t\t\t\tif( sequence !== 2 ) {\n\t\t\t\t\t\t\tsequence = 2;\n\t\t\t\t\t\t\tjisBuf[ offset++ ] = 0x1B;\n\t\t\t\t\t\t\tjisBuf[ offset++ ] = 0x24;\n\t\t\t\t\t\t\tjisBuf[ offset++ ] = 0x42;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tjisBuf[ offset++ ] = code >> 8;\n\t\t\t\t\t\tjisBuf[ offset++ ] = code & 0xFF;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tvar ext = tableJisExtInv[ unicode ];\n\t\t\t\t\t\tif( ext ) {\n\t\t\t\t\t\t\t// EXTENSION\n\t\t\t\t\t\t\tif( sequence !== 3 ) {\n\t\t\t\t\t\t\t\tsequence = 3;\n\t\t\t\t\t\t\t\tjisBuf[ offset++ ] = 0x1B;\n\t\t\t\t\t\t\t\tjisBuf[ offset++ ] = 0x24;\n\t\t\t\t\t\t\t\tjisBuf[ offset++ ] = 0x28;\n\t\t\t\t\t\t\t\tjisBuf[ offset++ ] = 0x44;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tjisBuf[ offset++ ] = ext >> 8;\n\t\t\t\t\t\t\tjisBuf[ offset++ ] = ext & 0xFF;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t// UNKNOWN\n\t\t\t\t\t\t\tif( sequence !== 2 ) {\n\t\t\t\t\t\t\t\tsequence = 2;\n\t\t\t\t\t\t\t\tjisBuf[ offset++ ] = 0x1B;\n\t\t\t\t\t\t\t\tjisBuf[ offset++ ] = 0x24;\n\t\t\t\t\t\t\t\tjisBuf[ offset++ ] = 0x42;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tjisBuf[ offset++ ] = unknownJis >> 8;\n\t\t\t\t\t\t\tjisBuf[ offset++ ] = unknownJis & 0xFF;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Add ASCII ESC\n\t\t\tif( sequence !== 0 ) {\n\t\t\t\tsequence = 0;\n\t\t\t\tjisBuf[ offset++ ] = 0x1B;\n\t\t\t\tjisBuf[ offset++ ] = 0x28;\n\t\t\t\tjisBuf[ offset++ ] = 0x42;\n\t\t\t}\n\t\t\treturn\tjisBuf.slice( 0, offset );\n\t\t}\n\t});\n\n\t// UCS2 -> EUCJP\n\tjconv.defineEncoding({\n\t\tname: 'UCS2toEUCJP',\n\n\t\tconvert: function( buf ) {\n\t\t\tvar tableJisInv = tables[ 'JISInverted' ],\n\t\t\t\ttableJisExtInv = tables[ 'JISEXTInverted' ],\n\t\t\t\tunknownJis = tableJisInv[ unknown ];\n\n\t\t\tvar len = buf.length,\n\t\t\t\teucBuf = new Buffer( len * 2 ),\n\t\t\t\toffset = 0,\n\t\t\t\tunicode;\n\n\t\t\tfor( var i = 0; i < len; ) {\n\t\t\t\tvar buf1 = buf[ i++ ],\n\t\t\t\t\tbuf2 = buf[ i++ ];\n\n\t\t\t\tunicode = ( buf2 << 8 ) + buf1;\n\n\t\t\t\t// ASCII\n\t\t\t\tif( unicode < 0x80 ) {\n\t\t\t\t\teucBuf[ offset++ ] = unicode;\n\t\t\t\t}\n\t\t\t\t// HALFWIDTH_KATAKANA\n\t\t\t\telse if( 0xFF61 <= unicode && unicode <= 0xFF9F ) {\n\t\t\t\t\teucBuf[ offset++ ] = 0x8E;\n\t\t\t\t\teucBuf[ offset++ ] = unicode - 0xFFC0;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// KANJI\n\t\t\t\t\tvar jis = tableJisInv[ unicode ];\n\t\t\t\t\tif( jis ) {\n\t\t\t\t\t\teucBuf[ offset++ ] = ( jis >> 8 ) - 0x80;\n\t\t\t\t\t\teucBuf[ offset++ ] = ( jis & 0xFF ) - 0x80;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// EXTENSION\n\t\t\t\t\t\tvar ext = tableJisExtInv[ unicode ];\n\t\t\t\t\t\tif( ext ) {\n\t\t\t\t\t\t\teucBuf[ offset++ ] = 0x8F;\n\t\t\t\t\t\t\teucBuf[ offset++ ] = ( ext >> 8 ) - 0x80;\n\t\t\t\t\t\t\teucBuf[ offset++ ] = ( ext & 0xFF ) - 0x80;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// UNKNOWN\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\teucBuf[ offset++ ] = ( unknownJis >> 8 ) - 0x80;\n\t\t\t\t\t\t\teucBuf[ offset++ ] = ( unknownJis & 0xFF ) - 0x80;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn eucBuf.slice( 0, offset );\n\t\t}\n\t});\n\n\t// UTF8 -> UCS2\n\tjconv.defineEncoding({\n\t\tname: 'UTF8toUCS2',\n\n\t\tconvert: function( buf ) {\n\t\t\tvar setUnicodeBuf = setUnicodeBuffer;\n\n\t\t\tvar len = buf.length,\n\t\t\t\tunicodeBuf = new Buffer( len * 2 ),\n\t\t\t\toffset = 0,\n\t\t\t\tunicode;\n\n\t\t\tfor( var i = 0; i < len; ) {\n\t\t\t\tvar buf1 = buf[ i++ ];\n\n\t\t\t\tswitch( buf1 >> 4 ) {\n\t\t\t\t\tcase 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7:\n\t\t\t\t\t\tunicode = buf1;\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 12: case 13:\n\t\t\t\t\t\tunicode = (buf1 & 0x1F) << 6 | buf[ i++ ] & 0x3F;\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 14:\n\t\t\t\t\t\tunicode = (buf1 & 0x0F) << 12 | (buf[ i++ ] & 0x3F) << 6 | buf[ i++ ] & 0x3F;\n\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tunicode = (buf1 & 0x07) << 18 | (buf[ i++ ] & 0x3F) << 12 | (buf[ i++ ] & 0x3F) << 6 | buf[ i++ ] & 0x3F;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\toffset = setUnicodeBuf( unicode, unicodeBuf, offset );\n\t\t\t}\n\t\t\treturn unicodeBuf.slice( 0, offset );\n\t\t}\n\t});\n\n\t// UTF8 -> SJIS\n\tjconv.defineEncoding({\n\t\tname: 'UTF8toSJIS',\n\n\t\tconvert: function( buf ) {\n\t\t\tvar tableSjisInv = tables[ 'SJISInverted' ],\n\t\t\t\tunknownSjis = tableSjisInv[ unknown ];\n\n\t\t\tvar len = buf.length,\n\t\t\t\tsjisBuf = new Buffer( len * 2 ),\n\t\t\t\toffset = 0,\n\t\t\t\tunicode;\n\n\t\t\tfor( var i = 0; i > 4 ) {\n\t\t\t\t\tcase 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7:\n\t\t\t\t\t\tunicode = buf1;\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 12: case 13:\n\t\t\t\t\t\tunicode = (buf1 & 0x1F) << 6 | buf[ i++ ] & 0x3F;\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 14:\n\t\t\t\t\t\tunicode = (buf1 & 0x0F) << 12 | (buf[ i++ ] & 0x3F) << 6 | buf[ i++ ] & 0x3F;\n\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tunicode = (buf1 & 0x07) << 18 | (buf[ i++ ] & 0x3F) << 12 | (buf[ i++ ] & 0x3F) << 6 | buf[ i++ ] & 0x3F;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// ASCII\n\t\t\t\tif( unicode < 0x80 ) {\n\t\t\t\t\tsjisBuf[ offset++ ] = unicode;\n\t\t\t\t}\n\t\t\t\t// HALFWIDTH_KATAKANA\n\t\t\t\telse if( 0xFF61 <= unicode && unicode <= 0xFF9F ) {\n\t\t\t\t\tsjisBuf[ offset++ ] = unicode - 0xFEC0;\n\t\t\t\t}\n\t\t\t\t// KANJI\n\t\t\t\telse {\n\t\t\t\t\tvar code = tableSjisInv[ unicode ] || unknownSjis;\n\t\t\t\t\tsjisBuf[ offset++ ] = code >> 8;\n\t\t\t\t\tsjisBuf[ offset++ ] = code & 0xFF;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn sjisBuf.slice( 0, offset );\n\t\t}\n\t});\n\n\t// UTF8 -> JIS\n\tjconv.defineEncoding({\n\t\tname: 'UTF8toJIS',\n\n\t\tconvert: function( buf ) {\n\t\t\tvar tableJisInv = tables[ 'JISInverted' ],\n\t\t\t\ttableJisExtInv = tables[ 'JISEXTInverted' ],\n\t\t\t\tunknownJis = tableJisInv[ unknown ];\n\n\t\t\tvar len = buf.length,\n\t\t\t\tjisBuf = new Buffer( len * 3 + 4 ),\n\t\t\t\toffset = 0,\n\t\t\t\tunicode,\n\t\t\t\tsequence = 0;\n\n\t\t\tfor( var i = 0; i < len; ) {\n\t\t\t\tvar buf1 = buf[ i++ ];\n\n\t\t\t\tswitch( buf1 >> 4 ) {\n\t\t\t\t\tcase 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7:\n\t\t\t\t\t\tunicode = buf1;\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 12: case 13:\n\t\t\t\t\t\tunicode = (buf1 & 0x1F) << 6 | buf[ i++ ] & 0x3F;\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 14:\n\t\t\t\t\t\tunicode = (buf1 & 0x0F) << 12 | (buf[ i++ ] & 0x3F) << 6 | buf[ i++ ] & 0x3F;\n\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tunicode = (buf1 & 0x07) << 18 | (buf[ i++ ] & 0x3F) << 12 | (buf[ i++ ] & 0x3F) << 6 | buf[ i++ ] & 0x3F;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// ASCII\n\t\t\t\tif( unicode < 0x80 ) {\n\t\t\t\t\tif( sequence !== 0 ) {\n\t\t\t\t\t\tsequence = 0;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x1B;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x28;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x42;\n\t\t\t\t\t}\n\t\t\t\t\tjisBuf[ offset++ ] = unicode;\n\t\t\t\t}\n\t\t\t\t// HALFWIDTH_KATAKANA\n\t\t\t\telse if( 0xFF61 <= unicode && unicode <= 0xFF9F ) {\n\t\t\t\t\tif( sequence !== 1 ) {\n\t\t\t\t\t\tsequence = 1;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x1B;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x28;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x49;\n\t\t\t\t\t}\n\t\t\t\t\tjisBuf[ offset++ ] = unicode - 0xFF40;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tvar code = tableJisInv[ unicode ];\n\t\t\t\t\tif( code ) {\n\t\t\t\t\t\t// KANJI\n\t\t\t\t\t\tif( sequence !== 2 ) {\n\t\t\t\t\t\t\tsequence = 2;\n\t\t\t\t\t\t\tjisBuf[ offset++ ] = 0x1B;\n\t\t\t\t\t\t\tjisBuf[ offset++ ] = 0x24;\n\t\t\t\t\t\t\tjisBuf[ offset++ ] = 0x42;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tjisBuf[ offset++ ] = code >> 8;\n\t\t\t\t\t\tjisBuf[ offset++ ] = code & 0xFF;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tvar ext = tableJisExtInv[ unicode ];\n\t\t\t\t\t\tif( ext ) {\n\t\t\t\t\t\t\t// EXTENSION\n\t\t\t\t\t\t\tif( sequence !== 3 ) {\n\t\t\t\t\t\t\t\tsequence = 3;\n\t\t\t\t\t\t\t\tjisBuf[ offset++ ] = 0x1B;\n\t\t\t\t\t\t\t\tjisBuf[ offset++ ] = 0x24;\n\t\t\t\t\t\t\t\tjisBuf[ offset++ ] = 0x28;\n\t\t\t\t\t\t\t\tjisBuf[ offset++ ] = 0x44;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tjisBuf[ offset++ ] = ext >> 8;\n\t\t\t\t\t\t\tjisBuf[ offset++ ] = ext & 0xFF;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t// UNKNOWN\n\t\t\t\t\t\t\tif( sequence !== 2 ) {\n\t\t\t\t\t\t\t\tsequence = 2;\n\t\t\t\t\t\t\t\tjisBuf[ offset++ ] = 0x1B;\n\t\t\t\t\t\t\t\tjisBuf[ offset++ ] = 0x24;\n\t\t\t\t\t\t\t\tjisBuf[ offset++ ] = 0x42;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tjisBuf[ offset++ ] = unknownJis >> 8;\n\t\t\t\t\t\t\tjisBuf[ offset++ ] = unknownJis & 0xFF;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Add ASCII ESC\n\t\t\tif( sequence !== 0 ) {\n\t\t\t\tsequence = 0;\n\t\t\t\tjisBuf[ offset++ ] = 0x1B;\n\t\t\t\tjisBuf[ offset++ ] = 0x28;\n\t\t\t\tjisBuf[ offset++ ] = 0x42;\n\t\t\t}\n\t\t\treturn jisBuf.slice( 0, offset );\n\t\t}\n\t});\n\n\t// UTF8 -> EUCJP\n\tjconv.defineEncoding({\n\t\tname: 'UTF8toEUCJP',\n\n\t\tconvert: function( buf ) {\n\t\t\tvar tableJisInv = tables[ 'JISInverted' ],\n\t\t\t\ttableJisExtInv = tables[ 'JISEXTInverted' ],\n\t\t\t\tunknownJis = tableJisInv[ unknown ];\n\n\t\t\tvar len = buf.length,\n\t\t\t\teucBuf = new Buffer( len * 2 ),\n\t\t\t\toffset = 0,\n\t\t\t\tunicode;\n\n\t\t\tfor( var i = 0; i < len; ) {\n\t\t\t\tvar buf1 = buf[ i++ ];\n\n\t\t\t\tswitch( buf1 >> 4 ) {\n\t\t\t\t\tcase 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7:\n\t\t\t\t\t\tunicode = buf1;\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 12: case 13:\n\t\t\t\t\t\tunicode = (buf1 & 0x1F) << 6 | buf[ i++ ] & 0x3F;\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 14:\n\t\t\t\t\t\tunicode = (buf1 & 0x0F) << 12 | (buf[ i++ ] & 0x3F) << 6 | buf[ i++ ] & 0x3F;\n\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tunicode = (buf1 & 0x07) << 18 | (buf[ i++ ] & 0x3F) << 12 | (buf[ i++ ] & 0x3F) << 6 | buf[ i++ ] & 0x3F;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// ASCII\n\t\t\t\tif( unicode < 0x80 ) {\n\t\t\t\t\teucBuf[ offset++ ] = unicode;\n\t\t\t\t}\n\t\t\t\t// HALFWIDTH_KATAKANA\n\t\t\t\telse if( 0xFF61 <= unicode && unicode <= 0xFF9F ) {\n\t\t\t\t\teucBuf[ offset++ ] = 0x8E;\n\t\t\t\t\teucBuf[ offset++ ] = unicode - 0xFFC0;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// KANJI\n\t\t\t\t\tvar jis = tableJisInv[ unicode ];\n\t\t\t\t\tif( jis ) {\n\t\t\t\t\t\teucBuf[ offset++ ] = ( jis >> 8 ) - 0x80;\n\t\t\t\t\t\teucBuf[ offset++ ] = ( jis & 0xFF ) - 0x80;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// EXTENSION\n\t\t\t\t\t\tvar ext = tableJisExtInv[ unicode ];\n\t\t\t\t\t\tif( ext ) {\n\t\t\t\t\t\t\teucBuf[ offset++ ] = 0x8F;\n\t\t\t\t\t\t\teucBuf[ offset++ ] = ( ext >> 8 ) - 0x80;\n\t\t\t\t\t\t\teucBuf[ offset++ ] = ( ext & 0xFF ) - 0x80;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// UNKNOWN\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\teucBuf[ offset++ ] = ( unknownJis >> 8 ) - 0x80;\n\t\t\t\t\t\t\teucBuf[ offset++ ] = ( unknownJis & 0xFF ) - 0x80;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn eucBuf.slice( 0, offset );\n\t\t}\n\t});\n\n\t// SJIS -> UCS2\n\tjconv.defineEncoding({\n\t\tname: 'SJIStoUCS2',\n\n\t\tconvert: function( buf ) {\n\t\t\tvar tableSjis = tables[ 'SJIS' ],\n\t\t\t\tsetUnicodeBuf = setUnicodeBuffer;\n\n\t\t\tvar len = buf.length,\n\t\t\t\tunicodeBuf = new Buffer( len * 3 ),\n\t\t\t\toffset = 0,\n\t\t\t\tunicode;\n\n\t\t\tfor( var i = 0; i < len; ) {\n\t\t\t\tvar buf1 = buf[ i++ ];\n\n\t\t\t\t// ASCII\n\t\t\t\tif( buf1 < 0x80 ) {\n\t\t\t\t\tunicode = buf1;\n\t\t\t\t}\n\t\t\t\t// HALFWIDTH_KATAKANA\n\t\t\t\telse if( 0xA0 <= buf1 && buf1 <= 0xDF ) {\n\t\t\t\t\tunicode = buf1 + 0xFEC0;\n\t\t\t\t}\n\t\t\t\t// KANJI\n\t\t\t\telse {\n\t\t\t\t\tvar code = ( buf1 << 8 ) + buf[ i++ ];\n\t\t\t\t\tunicode = tableSjis[ code ] || unknown;\n\t\t\t\t}\n\t\t\t\toffset = setUnicodeBuf( unicode, unicodeBuf, offset );\n\t\t\t}\n\t\t\treturn unicodeBuf.slice( 0, offset );\n\t\t}\n\t});\n\n\t// SJIS -> UTF8\n\tjconv.defineEncoding({\n\t\tname: 'SJIStoUTF8',\n\n\t\tconvert: function( buf ) {\n\t\t\tvar tableSjis = tables[ 'SJIS' ],\n\t\t\t\tsetUtf8Buf = setUtf8Buffer;\n\n\t\t\tvar len = buf.length,\n\t\t\t\tutf8Buf = new Buffer( len * 3 ),\n\t\t\t\toffset = 0,\n\t\t\t\tunicode;\n\n\t\t\tfor( var i = 0; i < len; ) {\n\t\t\t\tvar buf1 = buf[ i++ ];\n\n\t\t\t\t// ASCII\n\t\t\t\tif( buf1 < 0x80 ) {\n\t\t\t\t\tunicode = buf1;\n\t\t\t\t}\n\t\t\t\t// HALFWIDTH_KATAKANA\n\t\t\t\telse if( 0xA0 <= buf1 && buf1 <= 0xDF ) {\n\t\t\t\t\tunicode = buf1 + 0xFEC0;\n\t\t\t\t}\n\t\t\t\t// KANJI\n\t\t\t\telse {\n\t\t\t\t\tvar code = ( buf1 << 8 ) + buf[ i++ ];\n\t\t\t\t\tunicode = tableSjis[ code ] || unknown;\n\t\t\t\t}\n\t\t\t\toffset = setUtf8Buf( unicode, utf8Buf, offset );\n\t\t\t}\n\t\t\treturn utf8Buf.slice( 0, offset );\n\t\t}\n\t});\n\n\t// SJIS -> JIS\n\tjconv.defineEncoding({\n\t\tname: 'SJIStoJIS',\n\n\t\tconvert: function( buf ) {\n\t\t\tvar tableSjis = tables[ 'SJIS' ],\n\t\t\t\ttableJisInv = tables[ 'JISInverted' ];\n\n\t\t\tvar len = buf.length,\n\t\t\t\tjisBuf = new Buffer( len * 3 + 4 ),\n\t\t\t\toffset = 0,\n\t\t\t\tsequence = 0;\n\n\t\t\tfor( var i = 0; i < len; ) {\n\t\t\t\tvar buf1 = buf[ i++ ];\n\n\t\t\t\t// ASCII\n\t\t\t\tif( buf1 < 0x80 ) {\n\t\t\t\t\tif( sequence !== 0 ) {\n\t\t\t\t\t\tsequence = 0;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x1B;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x28;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x42;\n\t\t\t\t\t}\n\t\t\t\t\tjisBuf[ offset++ ] = buf1;\n\t\t\t\t}\n\t\t\t\t// HALFWIDTH_KATAKANA\n\t\t\t\telse if( 0xA1 <= buf1 && buf1 <= 0xDF ) {\n\t\t\t\t\tif( sequence !== 1 ) {\n\t\t\t\t\t\tsequence = 1;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x1B;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x28;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x49;\n\t\t\t\t\t}\n\t\t\t\t\tjisBuf[ offset++ ] = buf1 - 0x80;\n\t\t\t\t}\n\t\t\t\t// KANJI\n\t\t\t\telse if( buf1 <= 0xEE ) {\n\t\t\t\t\tif( sequence !== 2 ) {\n\t\t\t\t\t\tsequence = 2;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x1B;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x24;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x42;\n\t\t\t\t\t}\n\t\t\t\t\tvar buf2 = buf[ i++ ];\n\t\t\t\t\tbuf1 <<= 1;\n\t\t\t\t\tif( buf2 < 0x9F ) {\n\t\t\t\t\t\tif( buf1 < 0x13F ) {\n\t\t\t\t\t\t\tbuf1 -= 0xE1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbuf1 -= 0x61;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif( buf2 > 0x7E ) {\n\t\t\t\t\t\t\tbuf2 -= 0x20;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbuf2 -= 0x1F;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif( buf1 < 0x13F ) {\n\t\t\t\t\t\t\tbuf1 -= 0xE0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbuf1 -= 0x60;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbuf2 -= 0x7E;\n\t\t\t\t\t}\n\t\t\t\t\tjisBuf[ offset++ ] = buf1;\n\t\t\t\t\tjisBuf[ offset++ ] = buf2;\n\t\t\t\t}\n\t\t\t\t// IBM EXTENSION -> the other\n\t\t\t\telse if( buf1 >= 0xFA ) {\n\t\t\t\t\tif( sequence !== 2 ) {\n\t\t\t\t\t\tsequence = 2;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x1B;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x24;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x42;\n\t\t\t\t\t}\n\t\t\t\t\tvar sjis = ( buf1 << 8 ) + buf[ i++ ],\n\t\t\t\t\t\tunicode = tableSjis[ sjis ] || unknown,\n\t\t\t\t\t\tcode = tableJisInv[ unicode ];\n\n\t\t\t\t\tjisBuf[ offset++ ] = code >> 8;\n\t\t\t\t\tjisBuf[ offset++ ] = code & 0xFF;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Add ASCII ESC\n\t\t\tif( sequence !== 0 ) {\n\t\t\t\tsequence = 0;\n\t\t\t\tjisBuf[ offset++ ] = 0x1B;\n\t\t\t\tjisBuf[ offset++ ] = 0x28;\n\t\t\t\tjisBuf[ offset++ ] = 0x42;\n\t\t\t}\n\t\t\treturn jisBuf.slice( 0, offset );\n\t\t}\n\t});\n\n\t// SJIS -> EUCJP\n\tjconv.defineEncoding({\n\t\tname: 'SJIStoEUCJP',\n\n\t\tconvert: function( buf ) {\n\t\t\tvar tableSjis = tables[ 'SJIS' ],\n\t\t\t\ttableJisInv = tables[ 'JISInverted' ];\n\n\t\t\tvar len = buf.length,\n\t\t\t\teucBuf = new Buffer( len * 2 ),\n\t\t\t\toffset = 0;\n\n\t\t\tfor( var i = 0; i < len; ) {\n\t\t\t\tvar buf1 = buf[ i++ ];\n\n\t\t\t\t// ASCII\n\t\t\t\tif( buf1 < 0x80 ) {\n\t\t\t\t\teucBuf[ offset++ ] = buf1;\n\t\t\t\t}\n\t\t\t\t// HALFWIDTH_KATAKANA\n\t\t\t\telse if( 0xA1 <= buf1 && buf1 <= 0xDF ) {\n\t\t\t\t\teucBuf[ offset++ ] = 0x8E;\n\t\t\t\t\teucBuf[ offset++ ] = buf1;\n\t\t\t\t}\n\t\t\t\t// KANJI\n\t\t\t\telse if( buf1 <= 0xEE ) {\n\t\t\t\t\tvar buf2 = buf[ i++ ];\n\t\t\t\t\tbuf1 <<= 1;\n\t\t\t\t\tif( buf2 < 0x9F ) {\n\t\t\t\t\t\tif( buf1 < 0x13F ) {\n\t\t\t\t\t\t\tbuf1 -= 0x61;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbuf1 -= 0xE1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif( buf2 > 0x7E ) {\n\t\t\t\t\t\t\tbuf2 += 0x60;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbuf2 += 0x61;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif( buf1 < 0x13F ) {\n\t\t\t\t\t\t\tbuf1 -= 0x60;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbuf1 -= 0xE0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbuf2 += 0x02;\n\t\t\t\t\t}\n\t\t\t\t\teucBuf[ offset++ ] = buf1;\n\t\t\t\t\teucBuf[ offset++ ] = buf2;\n\t\t\t\t}\n\t\t\t\t// IBM EXTENSION -> the other\n\t\t\t\telse if( buf1 >= 0xFA ) {\n\t\t\t\t\tvar sjis = ( buf1 << 8 ) + buf[ i++ ],\n\t\t\t\t\t\tunicode = tableSjis[ sjis ] || unknown,\n\t\t\t\t\t\tjis = tableJisInv[ unicode ];\n\n\t\t\t\t\teucBuf[ offset++ ] = ( jis >> 8 ) - 0x80;\n\t\t\t\t\teucBuf[ offset++ ] = ( jis & 0xFF ) - 0x80;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn eucBuf.slice( 0, offset );\n\t\t}\n\t});\n\n\t// JIS -> UCS2\n\tjconv.defineEncoding({\n\t\tname: 'JIStoUCS2',\n\n\t\tconvert: function( buf ) {\n\t\t\tvar tableJis = tables[ 'JIS' ],\n\t\t\t\ttableJisExt = tables[ 'JISEXT' ],\n\t\t\t\tsetUnicodeBuf = setUnicodeBuffer;\n\n\t\t\tvar len = buf.length,\n\t\t\t\tunicodeBuf = new Buffer( len * 2 ),\n\t\t\t\toffset = 0,\n\t\t\t\tunicode,\n\t\t\t\tsequence = 0;\n\n\t\t\tfor( var i = 0; i < len; ) {\n\t\t\t\tvar buf1 = buf[ i++ ];\n\n\t\t\t\t// ESC Sequence\n\t\t\t\tif( buf1 === 0x1b ) {\n\t\t\t\t\tvar buf2 = buf[ i++ ],\n\t\t\t\t\t\tbuf3 = buf[ i++ ];\n\t\t\t\t\tswitch( buf2 ) {\n\t\t\t\t\t\tcase 0x28:\n\t\t\t\t\t\t\tif( buf3 === 0x42 || buf === 0xA1 ) {\n\t\t\t\t\t\t\t\tsequence = 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if( buf3 === 0x49 ) {\n\t\t\t\t\t\t\t\tsequence = 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x26:\n\t\t\t\t\t\t\tsequence = 2;\n\t\t\t\t\t\t\ti += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x24:\n\t\t\t\t\t\t\tif( buf3 === 0x40 || buf3 === 0x42 ) {\n\t\t\t\t\t\t\t\tsequence = 2;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if( buf3 === 0x28 ) {\n\t\t\t\t\t\t\t\tsequence = 3;\n\t\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tswitch( sequence ) {\n\t\t\t\t\t// ASCII\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tunicode = buf1;\n\t\t\t\t\tbreak;\n\t\t\t\t\t// HALFWIDTH_KATAKANA\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tunicode = buf1 + 0xFF40;\n\t\t\t\t\tbreak;\n\t\t\t\t\t// KANJI\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tvar code = ( buf1 << 8 ) + buf[ i++ ];\n\t\t\t\t\t\tunicode = tableJis[ code ] || unknown;\n\t\t\t\t\tbreak;\n\t\t\t\t\t// EXTENSION\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tvar code = ( buf1 << 8 ) + buf[ i++ ];\n\t\t\t\t\t\tunicode = tableJisExt[ code ] || unknown;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\toffset = setUnicodeBuf( unicode, unicodeBuf, offset );\n\t\t\t}\n\t\t\treturn unicodeBuf.slice( 0, offset );\n\t\t}\n\t});\n\n\t// JIS -> UTF8\n\tjconv.defineEncoding({\n\t\tname: 'JIStoUTF8',\n\n\t\tconvert: function( buf ) {\n\t\t\tvar tableJis = tables[ 'JIS' ],\n\t\t\t\ttableJisExt = tables[ 'JISEXT' ],\n\t\t\t\tsetUtf8Buf = setUtf8Buffer;\n\n\t\t\tvar len = buf.length,\n\t\t\t\tutf8Buf = new Buffer( len * 2 ),\n\t\t\t\toffset = 0,\n\t\t\t\tunicode,\n\t\t\t\tsequence = 0;\n\n\t\t\tfor( var i = 0; i < len; ) {\n\t\t\t\tvar buf1 = buf[ i++ ];\n\n\t\t\t\t// ESC Sequence\n\t\t\t\tif( buf1 === 0x1b ) {\n\t\t\t\t\tvar buf2 = buf[ i++ ],\n\t\t\t\t\t\tbuf3 = buf[ i++ ];\n\t\t\t\t\tswitch( buf2 ) {\n\t\t\t\t\t\tcase 0x28:\n\t\t\t\t\t\t\tif( buf3 === 0x42 || buf === 0xA1 ) {\n\t\t\t\t\t\t\t\tsequence = 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if( buf3 === 0x49 ) {\n\t\t\t\t\t\t\t\tsequence = 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x26:\n\t\t\t\t\t\t\tsequence = 2;\n\t\t\t\t\t\t\ti += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x24:\n\t\t\t\t\t\t\tif( buf3 === 0x40 || buf3 === 0x42 ) {\n\t\t\t\t\t\t\t\tsequence = 2;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if( buf3 === 0x28 ) {\n\t\t\t\t\t\t\t\tsequence = 3;\n\t\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tswitch( sequence ) {\n\t\t\t\t\t// ASCII\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tunicode = buf1;\n\t\t\t\t\tbreak;\n\t\t\t\t\t// HALFWIDTH_KATAKANA\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tunicode = buf1 + 0xFF40;\n\t\t\t\t\tbreak;\n\t\t\t\t\t// KANJI\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tvar code = ( buf1 << 8 ) + buf[ i++ ];\n\t\t\t\t\t\tunicode = tableJis[ code ] || unknown;\n\t\t\t\t\tbreak;\n\t\t\t\t\t// EXTENSION\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tvar code = ( buf1 << 8 ) + buf[ i++ ];\n\t\t\t\t\t\tunicode = tableJisExt[ code ] || unknown;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\toffset = setUtf8Buf( unicode, utf8Buf, offset );\n\t\t\t}\n\t\t\treturn utf8Buf.slice( 0, offset );\n\t\t}\n\t});\n\n\t// JIS -> SJIS\n\tjconv.defineEncoding({\n\t\tname: 'JIStoSJIS',\n\n\t\tconvert: function( buf ) {\n\t\t\tvar tableSjis = tables[ 'SJIS' ],\n\t\t\t\ttableSjisInv = tables[ 'SJISInverted' ],\n\t\t\t\tunknownSjis = tableSjisInv[ unknown ];\n\n\t\t\tvar len = buf.length,\n\t\t\t\tsjisBuf = new Buffer( len * 2 ),\n\t\t\t\toffset = 0,\n\t\t\t\tsequence = 0;\n\n\t\t\tfor( var i = 0; i < len; ) {\n\t\t\t\tvar buf1 = buf[ i++ ];\n\n\t\t\t\t// ESC Sequence\n\t\t\t\tif( buf1 === 0x1b ) {\n\t\t\t\t\tvar buf2 = buf[ i++ ],\n\t\t\t\t\t\tbuf3 = buf[ i++ ];\n\t\t\t\t\tswitch( buf2 ) {\n\t\t\t\t\t\tcase 0x28:\n\t\t\t\t\t\t\tif( buf3 === 0x42 || buf === 0xA1 ) {\n\t\t\t\t\t\t\t\tsequence = 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if( buf3 === 0x49 ) {\n\t\t\t\t\t\t\t\tsequence = 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x26:\n\t\t\t\t\t\t\tsequence = 2;\n\t\t\t\t\t\t\ti += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x24:\n\t\t\t\t\t\t\tif( buf3 === 0x40 || buf3 === 0x42 ) {\n\t\t\t\t\t\t\t\tsequence = 2;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if( buf3 === 0x28 ) {\n\t\t\t\t\t\t\t\tsequence = 3;\n\t\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tswitch( sequence ) {\n\t\t\t\t\t// ASCII\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tsjisBuf[ offset++ ] = buf1;\n\t\t\t\t\tbreak;\n\t\t\t\t\t// HALFWIDTH_KATAKANA\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tsjisBuf[ offset++ ] = buf1 + 0x80;\n\t\t\t\t\tbreak;\n\t\t\t\t\t// KANJI\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tvar buf2 = buf[ i++ ];\n\t\t\t\t\t\tif( buf1 & 0x01 ) {\n\t\t\t\t\t\t\tbuf1 >>= 1;\n\t\t\t\t\t\t\tif( buf1 < 0x2F ) {\n\t\t\t\t\t\t\t\tbuf1 += 0x71;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tbuf1 -= 0x4F;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif( buf2 > 0x5F ) {\n\t\t\t\t\t\t\t\tbuf2 += 0x20;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tbuf2 += 0x1F;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbuf1 >>= 1;\n\t\t\t\t\t\t\tif( buf1 <= 0x2F ) {\n\t\t\t\t\t\t\t\tbuf1 += 0x70;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tbuf1 -= 0x50;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbuf2 += 0x7E;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// NEC SELECT IBM EXTENSION -> IBM EXTENSION.\n\t\t\t\t\t\tvar sjis = ( (buf1 & 0xFF) << 8 ) + buf2;\n\t\t\t\t\t\tif( 0xED40 <= sjis && sjis <= 0xEEFC ) {\n\t\t\t\t\t\t\tvar unicode = tableSjis[ sjis ],\n\t\t\t\t\t\t\t\tsjisFixed = tableSjisInv[ unicode ] || unknownSjis;\n\n\t\t\t\t\t\t\tbuf1 = sjisFixed >> 8;\n\t\t\t\t\t\t\tbuf2 = sjisFixed & 0xFF;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsjisBuf[ offset++ ] = buf1;\n\t\t\t\t\t\tsjisBuf[ offset++ ] = buf2;\n\t\t\t\t\tbreak;\n\t\t\t\t\t// EXTENSION\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tsjisBuf[ offset++ ] = unknownSjis >> 8;\n\t\t\t\t\t\tsjisBuf[ offset++ ] = unknownSjis & 0xFF;\n\t\t\t\t\t\ti++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn sjisBuf.slice( 0, offset );\n\t\t}\n\t});\n\n\t// JIS -> EUCJP\n\tjconv.defineEncoding({\n\t\tname: 'JIStoEUCJP',\n\n\t\tconvert: function( buf ) {\n\t\t\tvar len = buf.length,\n\t\t\t\teucBuf = new Buffer( len * 2 ),\n\t\t\t\toffset = 0,\n\t\t\t\tsequence = 0;\n\n\t\t\tfor( var i = 0; i < len; ) {\n\t\t\t\tvar buf1 = buf[ i++ ];\n\n\t\t\t\t// ESC Sequence\n\t\t\t\tif( buf1 === 0x1b ) {\n\t\t\t\t\tvar buf2 = buf[ i++ ],\n\t\t\t\t\t\tbuf3 = buf[ i++ ];\n\t\t\t\t\tswitch( buf2 ) {\n\t\t\t\t\t\tcase 0x28:\n\t\t\t\t\t\t\tif( buf3 === 0x42 || buf === 0xA1 ) {\n\t\t\t\t\t\t\t\tsequence = 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if( buf3 === 0x49 ) {\n\t\t\t\t\t\t\t\tsequence = 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x26:\n\t\t\t\t\t\t\tsequence = 2;\n\t\t\t\t\t\t\ti += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x24:\n\t\t\t\t\t\t\tif( buf3 === 0x40 || buf3 === 0x42 ) {\n\t\t\t\t\t\t\t\tsequence = 2;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if( buf3 === 0x28 ) {\n\t\t\t\t\t\t\t\tsequence = 3;\n\t\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tswitch( sequence ) {\n\t\t\t\t\t// ASCII\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\teucBuf[ offset++ ] = buf1;\n\t\t\t\t\tbreak;\n\t\t\t\t\t// HALFWIDTH_KATAKANA\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\teucBuf[ offset++ ] = 0x8E;\n\t\t\t\t\t\teucBuf[ offset++ ] = buf1 + 0x80;\n\t\t\t\t\tbreak;\n\t\t\t\t\t// KANJI\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\teucBuf[ offset++ ] = buf1 + 0x80;\n\t\t\t\t\t\teucBuf[ offset++ ] = buf[ i++ ] + 0x80;\n\t\t\t\t\tbreak;\n\t\t\t\t\t// EXTENSION\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\teucBuf[ offset++ ] = 0x8F;\n\t\t\t\t\t\teucBuf[ offset++ ] = buf1 + 0x80;\n\t\t\t\t\t\teucBuf[ offset++ ] = buf[ i++ ] + 0x80;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn eucBuf.slice( 0, offset );\n\t\t}\n\t});\n\n\t// EUCJP -> UCS2\n\tjconv.defineEncoding({\n\t\tname: 'EUCJPtoUCS2',\n\n\t\tconvert: function( buf ) {\n\t\t\tvar tableJis = tables[ 'JIS' ],\n\t\t\t\ttableJisExt = tables[ 'JISEXT' ],\n\t\t\t\tsetUnicodeBuf = setUnicodeBuffer;\n\n\t\t\tvar len = buf.length,\n\t\t\t\tunicodeBuf = new Buffer( len * 2 ),\n\t\t\t\toffset = 0,\n\t\t\t\tunicode;\n\n\t\t\tfor( var i = 0; i < len; ) {\n\t\t\t\tvar buf1 = buf[ i++ ];\n\n\t\t\t\t// ASCII\n\t\t\t\tif( buf1 < 0x80 ) {\n\t\t\t\t\tunicode = buf1;\n\t\t\t\t}\n\t\t\t\t// HALFWIDTH_KATAKANA\n\t\t\t\telse if( buf1 === 0x8E ) {\n\t\t\t\t\tunicode = buf[ i++ ] + 0xFEC0;\n\t\t\t\t}\n\t\t\t\t// EXTENSION\n\t\t\t\telse if( buf1 === 0x8F ) {\n\t\t\t\t\tvar jisbuf2 = buf[ i++ ] - 0x80,\n\t\t\t\t\t\tjisbuf3 = buf[ i++ ] - 0x80,\n\t\t\t\t\t\tjis = ( jisbuf2 << 8 ) + jisbuf3;\n\t\t\t\t\tunicode = tableJisExt[ jis ] || unknown;\n\t\t\t\t}\n\t\t\t\t// KANJI\n\t\t\t\telse {\n\t\t\t\t\tvar jisbuf1 = buf1 - 0x80,\n\t\t\t\t\t\tjisbuf2 = buf[ i++ ] - 0x80,\n\t\t\t\t\t\tjis = ( jisbuf1 << 8 ) + jisbuf2;\n\t\t\t\t\tunicode = tableJis[ jis ] || unknown;\n\t\t\t\t}\n\t\t\t\toffset = setUnicodeBuf( unicode, unicodeBuf, offset );\n\t\t\t}\n\t\t\treturn unicodeBuf.slice( 0, offset );\n\t\t}\n\t});\n\n\t// EUCJP -> UTF8\n\tjconv.defineEncoding({\n\t\tname: 'EUCJPtoUTF8',\n\n\t\tconvert: function( buf ) {\n\t\t\tvar tableJis = tables[ 'JIS' ],\n\t\t\t\ttableJisExt = tables[ 'JISEXT' ],\n\t\t\t\tsetUtf8Buf = setUtf8Buffer;\n\n\t\t\tvar len = buf.length,\n\t\t\t\tutf8Buf = new Buffer( len * 2 ),\n\t\t\t\toffset = 0,\n\t\t\t\tunicode;\n\n\t\t\tfor( var i = 0; i < len; ) {\n\t\t\t\tvar buf1 = buf[ i++ ];\n\n\t\t\t\t// ASCII\n\t\t\t\tif( buf1 < 0x80 ) {\n\t\t\t\t\tunicode = buf1;\n\t\t\t\t}\n\t\t\t\t// HALFWIDTH_KATAKANA\n\t\t\t\telse if( buf1 === 0x8E ) {\n\t\t\t\t\tunicode = buf[ i++ ] + 0xFEC0;\n\t\t\t\t}\n\t\t\t\t// EXTENSION\n\t\t\t\telse if( buf1 === 0x8F ) {\n\t\t\t\t\tvar jisbuf2 = buf[ i++ ] - 0x80,\n\t\t\t\t\t\tjisbuf3 = buf[ i++ ] - 0x80,\n\t\t\t\t\t\tjis = ( jisbuf2 << 8 ) + jisbuf3;\n\t\t\t\t\tunicode = tableJisExt[ jis ] || unknown;\n\t\t\t\t}\n\t\t\t\t// KANJI\n\t\t\t\telse {\n\t\t\t\t\tvar jisbuf1 = buf1 - 0x80,\n\t\t\t\t\t\tjisbuf2 = buf[ i++ ] - 0x80,\n\t\t\t\t\t\tjis = ( jisbuf1 << 8 ) + jisbuf2;\n\t\t\t\t\tunicode = tableJis[ jis ] || unknown;\n\t\t\t\t}\n\t\t\t\toffset = setUtf8Buf( unicode, utf8Buf, offset );\n\t\t\t}\n\t\t\treturn utf8Buf.slice( 0, offset );\n\t\t}\n\t});\n\n\t// EUCJP -> SJIS\n\tjconv.defineEncoding({\n\t\tname: 'EUCJPtoSJIS',\n\n\t\tconvert: function( buf ) {\n\t\t\tvar tableSjis = tables[ 'SJIS' ],\n\t\t\t\ttableSjisInv = tables[ 'SJISInverted' ],\n\t\t\t\tunknownSjis = tableSjisInv[ unknown ];\n\n\t\t\tvar len = buf.length,\n\t\t\t\tsjisBuf = new Buffer( len * 2 ),\n\t\t\t\toffset = 0;\n\n\t\t\tfor( var i = 0; i < len; ) {\n\t\t\t\tvar buf1 = buf[ i++ ];\n\n\t\t\t\t// ASCII\n\t\t\t\tif( buf1 < 0x80 ) {\n\t\t\t\t\tsjisBuf[ offset++ ] = buf1;\n\t\t\t\t}\n\t\t\t\t// HALFWIDTH_KATAKANA\n\t\t\t\telse if( buf1 === 0x8E ) {\n\t\t\t\t\tsjisBuf[ offset++ ] = buf[ i++ ];\n\t\t\t\t}\n\t\t\t\t// EXTENSION\n\t\t\t\telse if( buf1 === 0x8F ) {\n\t\t\t\t\tsjisBuf[ offset++ ] = unknownSjis >> 8;\n\t\t\t\t\tsjisBuf[ offset++ ] = unknownSjis & 0xFF;\n\t\t\t\t\ti += 2;\n\t\t\t\t}\n\t\t\t\t// KANJI\n\t\t\t\telse {\n\t\t\t\t\tvar buf2 = buf[ i++ ];\n\t\t\t\t\tif( buf1 & 0x01 ) {\n\t\t\t\t\t\tbuf1 >>= 1;\n\t\t\t\t\t\tif( buf1 < 0x6F ) {\n\t\t\t\t\t\t\tbuf1 += 0x31;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbuf1 += 0x71;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif( buf2 > 0xDF ) {\n\t\t\t\t\t\t\tbuf2 -= 0x60;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbuf2 -= 0x61;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tbuf1 >>= 1;\n\t\t\t\t\t\tif( buf1 <= 0x6F ) {\n\t\t\t\t\t\t\tbuf1 += 0x30;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbuf1 += 0x70;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbuf2 -= 0x02;\n\t\t\t\t\t}\n\t\t\t\t\t// NEC SELECT IBM EXTENSION -> IBM EXTENSION.\n\t\t\t\t\tvar sjis = ( (buf1 & 0xFF) << 8 ) + buf2;\n\t\t\t\t\tif( 0xED40 <= sjis && sjis <= 0xEEFC ) {\n\t\t\t\t\t\tvar unicode = tableSjis[ sjis ],\n\t\t\t\t\t\t\tsjisFixed = tableSjisInv[ unicode ] || unknownSjis;\n\n\t\t\t\t\t\tbuf1 = sjisFixed >> 8;\n\t\t\t\t\t\tbuf2 = sjisFixed & 0xFF;\n\t\t\t\t\t}\n\t\t\t\t\tsjisBuf[ offset++ ] = buf1;\n\t\t\t\t\tsjisBuf[ offset++ ] = buf2;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn sjisBuf.slice( 0, offset );\n\t\t}\n\t});\n\n\t// EUCJP -> JIS\n\tjconv.defineEncoding({\n\t\tname: 'EUCJPtoJIS',\n\n\t\tconvert: function( buf ) {\n\t\t\tvar len = buf.length,\n\t\t\t\tjisBuf = new Buffer( len * 3 + 4 ),\n\t\t\t\toffset = 0,\n\t\t\t\tsequence = 0;\n\n\t\t\tfor( var i = 0; i < len; ) {\n\t\t\t\tvar buf1 = buf[ i++ ];\n\n\t\t\t\t// ASCII\n\t\t\t\tif( buf1 < 0x80 ) {\n\t\t\t\t\tif( sequence !== 0 ) {\n\t\t\t\t\t\tsequence = 0;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x1B;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x28;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x42;\n\t\t\t\t\t}\n\t\t\t\t\tjisBuf[ offset++ ] = buf1;\n\t\t\t\t}\n\t\t\t\t// HALFWIDTH_KATAKANA\n\t\t\t\telse if( buf1 === 0x8E ) {\n\t\t\t\t\tif( sequence !== 1 ) {\n\t\t\t\t\t\tsequence = 1;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x1B;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x28;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x49;\n\t\t\t\t\t}\n\t\t\t\t\tjisBuf[ offset++ ] = buf[ i++ ] - 0x80;\n\t\t\t\t}\n\t\t\t\t// EXTENSION\n\t\t\t\telse if( buf1 === 0x8F ) {\n\t\t\t\t\tif( sequence !== 3 ) {\n\t\t\t\t\t\tsequence = 3;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x1B;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x24;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x28;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x44;\n\t\t\t\t\t}\n\t\t\t\t\tjisBuf[ offset++ ] = buf[ i++ ] - 0x80;\n\t\t\t\t\tjisBuf[ offset++ ] = buf[ i++ ] - 0x80;\n\t\t\t\t}\n\t\t\t\t// KANJI\n\t\t\t\telse {\n\t\t\t\t\tif( sequence !== 2 ) {\n\t\t\t\t\t\tsequence = 2;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x1B;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x24;\n\t\t\t\t\t\tjisBuf[ offset++ ] = 0x42;\n\t\t\t\t\t}\n\t\t\t\t\tjisBuf[ offset++ ] = buf1 - 0x80;\n\t\t\t\t\tjisBuf[ offset++ ] = buf[ i++ ] - 0x80;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Add ASCII ESC\n\t\t\tif( sequence !== 0 ) {\n\t\t\t\tsequence = 0;\n\t\t\t\tjisBuf[ offset++ ] = 0x1B;\n\t\t\t\tjisBuf[ offset++ ] = 0x28;\n\t\t\t\tjisBuf[ offset++ ] = 0x42;\n\t\t\t}\n\t\t\treturn jisBuf.slice( 0, offset );\n\t\t}\n\t});\n\n})();\n","module.exports={33088:12288,33089:12289,33090:12290,33091:65292,33092:65294,33093:12539,33094:65306,33095:65307,33096:65311,33097:65281,33098:12443,33099:12444,33100:180,33101:65344,33102:168,33103:65342,33104:65507,33105:65343,33106:12541,33107:12542,33108:12445,33109:12446,33110:12291,33111:20189,33112:12293,33113:12294,33114:12295,33115:12540,33116:8213,33117:8208,33118:65295,33119:65340,33120:65374,33121:8741,33122:65372,33123:8230,33124:8229,33125:8216,33126:8217,33127:8220,33128:8221,33129:65288,33130:65289,33131:12308,33132:12309,33133:65339,33134:65341,33135:65371,33136:65373,33137:12296,33138:12297,33139:12298,33140:12299,33141:12300,33142:12301,33143:12302,33144:12303,33145:12304,33146:12305,33147:65291,33148:65293,33149:177,33150:215,33152:247,33153:65309,33154:8800,33155:65308,33156:65310,33157:8806,33158:8807,33159:8734,33160:8756,33161:9794,33162:9792,33163:176,33164:8242,33165:8243,33166:8451,33167:65509,33168:65284,33169:65504,33170:65505,33171:65285,33172:65283,33173:65286,33174:65290,33175:65312,33176:167,33177:9734,33178:9733,33179:9675,33180:9679,33181:9678,33182:9671,33183:9670,33184:9633,33185:9632,33186:9651,33187:9650,33188:9661,33189:9660,33190:8251,33191:12306,33192:8594,33193:8592,33194:8593,33195:8595,33196:12307,33208:8712,33209:8715,33210:8838,33211:8839,33212:8834,33213:8835,33214:8746,33215:8745,33224:8743,33225:8744,33226:65506,33227:8658,33228:8660,33229:8704,33230:8707,33242:8736,33243:8869,33244:8978,33245:8706,33246:8711,33247:8801,33248:8786,33249:8810,33250:8811,33251:8730,33252:8765,33253:8733,33254:8757,33255:8747,33256:8748,33264:8491,33265:8240,33266:9839,33267:9837,33268:9834,33269:8224,33270:8225,33271:182,33276:9711,33359:65296,33360:65297,33361:65298,33362:65299,33363:65300,33364:65301,33365:65302,33366:65303,33367:65304,33368:65305,33376:65313,33377:65314,33378:65315,33379:65316,33380:65317,33381:65318,33382:65319,33383:65320,33384:65321,33385:65322,33386:65323,33387:65324,33388:65325,33389:65326,33390:65327,33391:65328,33392:65329,33393:65330,33394:65331,33395:65332,33396:65333,33397:65334,33398:65335,33399:65336,33400:65337,33401:65338,33409:65345,33410:65346,33411:65347,33412:65348,33413:65349,33414:65350,33415:65351,33416:65352,33417:65353,33418:65354,33419:65355,33420:65356,33421:65357,33422:65358,33423:65359,33424:65360,33425:65361,33426:65362,33427:65363,33428:65364,33429:65365,33430:65366,33431:65367,33432:65368,33433:65369,33434:65370,33439:12353,33440:12354,33441:12355,33442:12356,33443:12357,33444:12358,33445:12359,33446:12360,33447:12361,33448:12362,33449:12363,33450:12364,33451:12365,33452:12366,33453:12367,33454:12368,33455:12369,33456:12370,33457:12371,33458:12372,33459:12373,33460:12374,33461:12375,33462:12376,33463:12377,33464:12378,33465:12379,33466:12380,33467:12381,33468:12382,33469:12383,33470:12384,33471:12385,33472:12386,33473:12387,33474:12388,33475:12389,33476:12390,33477:12391,33478:12392,33479:12393,33480:12394,33481:12395,33482:12396,33483:12397,33484:12398,33485:12399,33486:12400,33487:12401,33488:12402,33489:12403,33490:12404,33491:12405,33492:12406,33493:12407,33494:12408,33495:12409,33496:12410,33497:12411,33498:12412,33499:12413,33500:12414,33501:12415,33502:12416,33503:12417,33504:12418,33505:12419,33506:12420,33507:12421,33508:12422,33509:12423,33510:12424,33511:12425,33512:12426,33513:12427,33514:12428,33515:12429,33516:12430,33517:12431,33518:12432,33519:12433,33520:12434,33521:12435,33600:12449,33601:12450,33602:12451,33603:12452,33604:12453,33605:12454,33606:12455,33607:12456,33608:12457,33609:12458,33610:12459,33611:12460,33612:12461,33613:12462,33614:12463,33615:12464,33616:12465,33617:12466,33618:12467,33619:12468,33620:12469,33621:12470,33622:12471,33623:12472,33624:12473,33625:12474,33626:12475,33627:12476,33628:12477,33629:12478,33630:12479,33631:12480,33632:12481,33633:12482,33634:12483,33635:12484,33636:12485,33637:12486,33638:12487,33639:12488,33640:12489,33641:12490,33642:12491,33643:12492,33644:12493,33645:12494,33646:12495,33647:12496,33648:12497,33649:12498,33650:12499,33651:12500,33652:12501,33653:12502,33654:12503,33655:12504,33656:12505,33657:12506,33658:12507,33659:12508,33660:12509,33661:12510,33662:12511,33664:12512,33665:12513,33666:12514,33667:12515,33668:12516,33669:12517,33670:12518,33671:12519,33672:12520,33673:12521,33674:12522,33675:12523,33676:12524,33677:12525,33678:12526,33679:12527,33680:12528,33681:12529,33682:12530,33683:12531,33684:12532,33685:12533,33686:12534,33695:913,33696:914,33697:915,33698:916,33699:917,33700:918,33701:919,33702:920,33703:921,33704:922,33705:923,33706:924,33707:925,33708:926,33709:927,33710:928,33711:929,33712:931,33713:932,33714:933,33715:934,33716:935,33717:936,33718:937,33727:945,33728:946,33729:947,33730:948,33731:949,33732:950,33733:951,33734:952,33735:953,33736:954,33737:955,33738:956,33739:957,33740:958,33741:959,33742:960,33743:961,33744:963,33745:964,33746:965,33747:966,33748:967,33749:968,33750:969,33856:1040,33857:1041,33858:1042,33859:1043,33860:1044,33861:1045,33862:1025,33863:1046,33864:1047,33865:1048,33866:1049,33867:1050,33868:1051,33869:1052,33870:1053,33871:1054,33872:1055,33873:1056,33874:1057,33875:1058,33876:1059,33877:1060,33878:1061,33879:1062,33880:1063,33881:1064,33882:1065,33883:1066,33884:1067,33885:1068,33886:1069,33887:1070,33888:1071,33904:1072,33905:1073,33906:1074,33907:1075,33908:1076,33909:1077,33910:1105,33911:1078,33912:1079,33913:1080,33914:1081,33915:1082,33916:1083,33917:1084,33918:1085,33920:1086,33921:1087,33922:1088,33923:1089,33924:1090,33925:1091,33926:1092,33927:1093,33928:1094,33929:1095,33930:1096,33931:1097,33932:1098,33933:1099,33934:1100,33935:1101,33936:1102,33937:1103,33951:9472,33952:9474,33953:9484,33954:9488,33955:9496,33956:9492,33957:9500,33958:9516,33959:9508,33960:9524,33961:9532,33962:9473,33963:9475,33964:9487,33965:9491,33966:9499,33967:9495,33968:9507,33969:9523,33970:9515,33971:9531,33972:9547,33973:9504,33974:9519,33975:9512,33976:9527,33977:9535,33978:9501,33979:9520,33980:9509,33981:9528,33982:9538,34624:9312,34625:9313,34626:9314,34627:9315,34628:9316,34629:9317,34630:9318,34631:9319,34632:9320,34633:9321,34634:9322,34635:9323,34636:9324,34637:9325,34638:9326,34639:9327,34640:9328,34641:9329,34642:9330,34643:9331,34644:8544,34645:8545,34646:8546,34647:8547,34648:8548,34649:8549,34650:8550,34651:8551,34652:8552,34653:8553,34655:13129,34656:13076,34657:13090,34658:13133,34659:13080,34660:13095,34661:13059,34662:13110,34663:13137,34664:13143,34665:13069,34666:13094,34667:13091,34668:13099,34669:13130,34670:13115,34671:13212,34672:13213,34673:13214,34674:13198,34675:13199,34676:13252,34677:13217,34686:13179,34688:12317,34689:12319,34690:8470,34691:13261,34692:8481,34693:12964,34694:12965,34695:12966,34696:12967,34697:12968,34698:12849,34699:12850,34700:12857,34701:13182,34702:13181,34703:13180,34704:8786,34705:8801,34706:8747,34707:8750,34708:8721,34709:8730,34710:8869,34711:8736,34712:8735,34713:8895,34714:8757,34715:8745,34716:8746,34975:20124,34976:21782,34977:23043,34978:38463,34979:21696,34980:24859,34981:25384,34982:23030,34983:36898,34984:33909,34985:33564,34986:31312,34987:24746,34988:25569,34989:28197,34990:26093,34991:33894,34992:33446,34993:39925,34994:26771,34995:22311,34996:26017,34997:25201,34998:23451,34999:22992,35000:34427,35001:39156,35002:32098,35003:32190,35004:39822,35005:25110,35006:31903,35007:34999,35008:23433,35009:24245,35010:25353,35011:26263,35012:26696,35013:38343,35014:38797,35015:26447,35016:20197,35017:20234,35018:20301,35019:20381,35020:20553,35021:22258,35022:22839,35023:22996,35024:23041,35025:23561,35026:24799,35027:24847,35028:24944,35029:26131,35030:26885,35031:28858,35032:30031,35033:30064,35034:31227,35035:32173,35036:32239,35037:32963,35038:33806,35039:34915,35040:35586,35041:36949,35042:36986,35043:21307,35044:20117,35045:20133,35046:22495,35047:32946,35048:37057,35049:30959,35050:19968,35051:22769,35052:28322,35053:36920,35054:31282,35055:33576,35056:33419,35057:39983,35058:20801,35059:21360,35060:21693,35061:21729,35062:22240,35063:23035,35064:24341,35065:39154,35066:28139,35067:32996,35068:34093,35136:38498,35137:38512,35138:38560,35139:38907,35140:21515,35141:21491,35142:23431,35143:28879,35144:32701,35145:36802,35146:38632,35147:21359,35148:40284,35149:31418,35150:19985,35151:30867,35152:33276,35153:28198,35154:22040,35155:21764,35156:27421,35157:34074,35158:39995,35159:23013,35160:21417,35161:28006,35162:29916,35163:38287,35164:22082,35165:20113,35166:36939,35167:38642,35168:33615,35169:39180,35170:21473,35171:21942,35172:23344,35173:24433,35174:26144,35175:26355,35176:26628,35177:27704,35178:27891,35179:27945,35180:29787,35181:30408,35182:31310,35183:38964,35184:33521,35185:34907,35186:35424,35187:37613,35188:28082,35189:30123,35190:30410,35191:39365,35192:24742,35193:35585,35194:36234,35195:38322,35196:27022,35197:21421,35198:20870,35200:22290,35201:22576,35202:22852,35203:23476,35204:24310,35205:24616,35206:25513,35207:25588,35208:27839,35209:28436,35210:28814,35211:28948,35212:29017,35213:29141,35214:29503,35215:32257,35216:33398,35217:33489,35218:34199,35219:36960,35220:37467,35221:40219,35222:22633,35223:26044,35224:27738,35225:29989,35226:20985,35227:22830,35228:22885,35229:24448,35230:24540,35231:25276,35232:26106,35233:27178,35234:27431,35235:27572,35236:29579,35237:32705,35238:35158,35239:40236,35240:40206,35241:40644,35242:23713,35243:27798,35244:33659,35245:20740,35246:23627,35247:25014,35248:33222,35249:26742,35250:29281,35251:20057,35252:20474,35253:21368,35254:24681,35255:28201,35256:31311,35257:38899,35258:19979,35259:21270,35260:20206,35261:20309,35262:20285,35263:20385,35264:20339,35265:21152,35266:21487,35267:22025,35268:22799,35269:23233,35270:23478,35271:23521,35272:31185,35273:26247,35274:26524,35275:26550,35276:27468,35277:27827,35278:28779,35279:29634,35280:31117,35281:31166,35282:31292,35283:31623,35284:33457,35285:33499,35286:33540,35287:33655,35288:33775,35289:33747,35290:34662,35291:35506,35292:22057,35293:36008,35294:36838,35295:36942,35296:38686,35297:34442,35298:20420,35299:23784,35300:25105,35301:29273,35302:30011,35303:33253,35304:33469,35305:34558,35306:36032,35307:38597,35308:39187,35309:39381,35310:20171,35311:20250,35312:35299,35313:22238,35314:22602,35315:22730,35316:24315,35317:24555,35318:24618,35319:24724,35320:24674,35321:25040,35322:25106,35323:25296,35324:25913,35392:39745,35393:26214,35394:26800,35395:28023,35396:28784,35397:30028,35398:30342,35399:32117,35400:33445,35401:34809,35402:38283,35403:38542,35404:35997,35405:20977,35406:21182,35407:22806,35408:21683,35409:23475,35410:23830,35411:24936,35412:27010,35413:28079,35414:30861,35415:33995,35416:34903,35417:35442,35418:37799,35419:39608,35420:28012,35421:39336,35422:34521,35423:22435,35424:26623,35425:34510,35426:37390,35427:21123,35428:22151,35429:21508,35430:24275,35431:25313,35432:25785,35433:26684,35434:26680,35435:27579,35436:29554,35437:30906,35438:31339,35439:35226,35440:35282,35441:36203,35442:36611,35443:37101,35444:38307,35445:38548,35446:38761,35447:23398,35448:23731,35449:27005,35450:38989,35451:38990,35452:25499,35453:31520,35454:27179,35456:27263,35457:26806,35458:39949,35459:28511,35460:21106,35461:21917,35462:24688,35463:25324,35464:27963,35465:28167,35466:28369,35467:33883,35468:35088,35469:36676,35470:19988,35471:39993,35472:21494,35473:26907,35474:27194,35475:38788,35476:26666,35477:20828,35478:31427,35479:33970,35480:37340,35481:37772,35482:22107,35483:40232,35484:26658,35485:33541,35486:33841,35487:31909,35488:21000,35489:33477,35490:29926,35491:20094,35492:20355,35493:20896,35494:23506,35495:21002,35496:21208,35497:21223,35498:24059,35499:21914,35500:22570,35501:23014,35502:23436,35503:23448,35504:23515,35505:24178,35506:24185,35507:24739,35508:24863,35509:24931,35510:25022,35511:25563,35512:25954,35513:26577,35514:26707,35515:26874,35516:27454,35517:27475,35518:27735,35519:28450,35520:28567,35521:28485,35522:29872,35523:29976,35524:30435,35525:30475,35526:31487,35527:31649,35528:31777,35529:32233,35530:32566,35531:32752,35532:32925,35533:33382,35534:33694,35535:35251,35536:35532,35537:36011,35538:36996,35539:37969,35540:38291,35541:38289,35542:38306,35543:38501,35544:38867,35545:39208,35546:33304,35547:20024,35548:21547,35549:23736,35550:24012,35551:29609,35552:30284,35553:30524,35554:23721,35555:32747,35556:36107,35557:38593,35558:38929,35559:38996,35560:39000,35561:20225,35562:20238,35563:21361,35564:21916,35565:22120,35566:22522,35567:22855,35568:23305,35569:23492,35570:23696,35571:24076,35572:24190,35573:24524,35574:25582,35575:26426,35576:26071,35577:26082,35578:26399,35579:26827,35580:26820,35648:27231,35649:24112,35650:27589,35651:27671,35652:27773,35653:30079,35654:31048,35655:23395,35656:31232,35657:32000,35658:24509,35659:35215,35660:35352,35661:36020,35662:36215,35663:36556,35664:36637,35665:39138,35666:39438,35667:39740,35668:20096,35669:20605,35670:20736,35671:22931,35672:23452,35673:25135,35674:25216,35675:25836,35676:27450,35677:29344,35678:30097,35679:31047,35680:32681,35681:34811,35682:35516,35683:35696,35684:25516,35685:33738,35686:38816,35687:21513,35688:21507,35689:21931,35690:26708,35691:27224,35692:35440,35693:30759,35694:26485,35695:40653,35696:21364,35697:23458,35698:33050,35699:34384,35700:36870,35701:19992,35702:20037,35703:20167,35704:20241,35705:21450,35706:21560,35707:23470,35708:24339,35709:24613,35710:25937,35712:26429,35713:27714,35714:27762,35715:27875,35716:28792,35717:29699,35718:31350,35719:31406,35720:31496,35721:32026,35722:31998,35723:32102,35724:26087,35725:29275,35726:21435,35727:23621,35728:24040,35729:25298,35730:25312,35731:25369,35732:28192,35733:34394,35734:35377,35735:36317,35736:37624,35737:28417,35738:31142,35739:39770,35740:20136,35741:20139,35742:20140,35743:20379,35744:20384,35745:20689,35746:20807,35747:31478,35748:20849,35749:20982,35750:21332,35751:21281,35752:21375,35753:21483,35754:21932,35755:22659,35756:23777,35757:24375,35758:24394,35759:24623,35760:24656,35761:24685,35762:25375,35763:25945,35764:27211,35765:27841,35766:29378,35767:29421,35768:30703,35769:33016,35770:33029,35771:33288,35772:34126,35773:37111,35774:37857,35775:38911,35776:39255,35777:39514,35778:20208,35779:20957,35780:23597,35781:26241,35782:26989,35783:23616,35784:26354,35785:26997,35786:29577,35787:26704,35788:31873,35789:20677,35790:21220,35791:22343,35792:24062,35793:37670,35794:26020,35795:27427,35796:27453,35797:29748,35798:31105,35799:31165,35800:31563,35801:32202,35802:33465,35803:33740,35804:34943,35805:35167,35806:35641,35807:36817,35808:37329,35809:21535,35810:37504,35811:20061,35812:20534,35813:21477,35814:21306,35815:29399,35816:29590,35817:30697,35818:33510,35819:36527,35820:39366,35821:39368,35822:39378,35823:20855,35824:24858,35825:34398,35826:21936,35827:31354,35828:20598,35829:23507,35830:36935,35831:38533,35832:20018,35833:27355,35834:37351,35835:23633,35836:23624,35904:25496,35905:31391,35906:27795,35907:38772,35908:36705,35909:31402,35910:29066,35911:38536,35912:31874,35913:26647,35914:32368,35915:26705,35916:37740,35917:21234,35918:21531,35919:34219,35920:35347,35921:32676,35922:36557,35923:37089,35924:21350,35925:34952,35926:31041,35927:20418,35928:20670,35929:21009,35930:20804,35931:21843,35932:22317,35933:29674,35934:22411,35935:22865,35936:24418,35937:24452,35938:24693,35939:24950,35940:24935,35941:25001,35942:25522,35943:25658,35944:25964,35945:26223,35946:26690,35947:28179,35948:30054,35949:31293,35950:31995,35951:32076,35952:32153,35953:32331,35954:32619,35955:33550,35956:33610,35957:34509,35958:35336,35959:35427,35960:35686,35961:36605,35962:38938,35963:40335,35964:33464,35965:36814,35966:39912,35968:21127,35969:25119,35970:25731,35971:28608,35972:38553,35973:26689,35974:20625,35975:27424,35976:27770,35977:28500,35978:31348,35979:32080,35980:34880,35981:35363,35982:26376,35983:20214,35984:20537,35985:20518,35986:20581,35987:20860,35988:21048,35989:21091,35990:21927,35991:22287,35992:22533,35993:23244,35994:24314,35995:25010,35996:25080,35997:25331,35998:25458,35999:26908,36000:27177,36001:29309,36002:29356,36003:29486,36004:30740,36005:30831,36006:32121,36007:30476,36008:32937,36009:35211,36010:35609,36011:36066,36012:36562,36013:36963,36014:37749,36015:38522,36016:38997,36017:39443,36018:40568,36019:20803,36020:21407,36021:21427,36022:24187,36023:24358,36024:28187,36025:28304,36026:29572,36027:29694,36028:32067,36029:33335,36030:35328,36031:35578,36032:38480,36033:20046,36034:20491,36035:21476,36036:21628,36037:22266,36038:22993,36039:23396,36040:24049,36041:24235,36042:24359,36043:25144,36044:25925,36045:26543,36046:28246,36047:29392,36048:31946,36049:34996,36050:32929,36051:32993,36052:33776,36053:34382,36054:35463,36055:36328,36056:37431,36057:38599,36058:39015,36059:40723,36060:20116,36061:20114,36062:20237,36063:21320,36064:21577,36065:21566,36066:23087,36067:24460,36068:24481,36069:24735,36070:26791,36071:27278,36072:29786,36073:30849,36074:35486,36075:35492,36076:35703,36077:37264,36078:20062,36079:39881,36080:20132,36081:20348,36082:20399,36083:20505,36084:20502,36085:20809,36086:20844,36087:21151,36088:21177,36089:21246,36090:21402,36091:21475,36092:21521,36160:21518,36161:21897,36162:22353,36163:22434,36164:22909,36165:23380,36166:23389,36167:23439,36168:24037,36169:24039,36170:24055,36171:24184,36172:24195,36173:24218,36174:24247,36175:24344,36176:24658,36177:24908,36178:25239,36179:25304,36180:25511,36181:25915,36182:26114,36183:26179,36184:26356,36185:26477,36186:26657,36187:26775,36188:27083,36189:27743,36190:27946,36191:28009,36192:28207,36193:28317,36194:30002,36195:30343,36196:30828,36197:31295,36198:31968,36199:32005,36200:32024,36201:32094,36202:32177,36203:32789,36204:32771,36205:32943,36206:32945,36207:33108,36208:33167,36209:33322,36210:33618,36211:34892,36212:34913,36213:35611,36214:36002,36215:36092,36216:37066,36217:37237,36218:37489,36219:30783,36220:37628,36221:38308,36222:38477,36224:38917,36225:39321,36226:39640,36227:40251,36228:21083,36229:21163,36230:21495,36231:21512,36232:22741,36233:25335,36234:28640,36235:35946,36236:36703,36237:40633,36238:20811,36239:21051,36240:21578,36241:22269,36242:31296,36243:37239,36244:40288,36245:40658,36246:29508,36247:28425,36248:33136,36249:29969,36250:24573,36251:24794,36252:39592,36253:29403,36254:36796,36255:27492,36256:38915,36257:20170,36258:22256,36259:22372,36260:22718,36261:23130,36262:24680,36263:25031,36264:26127,36265:26118,36266:26681,36267:26801,36268:28151,36269:30165,36270:32058,36271:33390,36272:39746,36273:20123,36274:20304,36275:21449,36276:21766,36277:23919,36278:24038,36279:24046,36280:26619,36281:27801,36282:29811,36283:30722,36284:35408,36285:37782,36286:35039,36287:22352,36288:24231,36289:25387,36290:20661,36291:20652,36292:20877,36293:26368,36294:21705,36295:22622,36296:22971,36297:23472,36298:24425,36299:25165,36300:25505,36301:26685,36302:27507,36303:28168,36304:28797,36305:37319,36306:29312,36307:30741,36308:30758,36309:31085,36310:25998,36311:32048,36312:33756,36313:35009,36314:36617,36315:38555,36316:21092,36317:22312,36318:26448,36319:32618,36320:36001,36321:20916,36322:22338,36323:38442,36324:22586,36325:27018,36326:32948,36327:21682,36328:23822,36329:22524,36330:30869,36331:40442,36332:20316,36333:21066,36334:21643,36335:25662,36336:26152,36337:26388,36338:26613,36339:31364,36340:31574,36341:32034,36342:37679,36343:26716,36344:39853,36345:31545,36346:21273,36347:20874,36348:21047,36416:23519,36417:25334,36418:25774,36419:25830,36420:26413,36421:27578,36422:34217,36423:38609,36424:30352,36425:39894,36426:25420,36427:37638,36428:39851,36429:30399,36430:26194,36431:19977,36432:20632,36433:21442,36434:23665,36435:24808,36436:25746,36437:25955,36438:26719,36439:29158,36440:29642,36441:29987,36442:31639,36443:32386,36444:34453,36445:35715,36446:36059,36447:37240,36448:39184,36449:26028,36450:26283,36451:27531,36452:20181,36453:20180,36454:20282,36455:20351,36456:21050,36457:21496,36458:21490,36459:21987,36460:22235,36461:22763,36462:22987,36463:22985,36464:23039,36465:23376,36466:23629,36467:24066,36468:24107,36469:24535,36470:24605,36471:25351,36472:25903,36473:23388,36474:26031,36475:26045,36476:26088,36477:26525,36478:27490,36480:27515,36481:27663,36482:29509,36483:31049,36484:31169,36485:31992,36486:32025,36487:32043,36488:32930,36489:33026,36490:33267,36491:35222,36492:35422,36493:35433,36494:35430,36495:35468,36496:35566,36497:36039,36498:36060,36499:38604,36500:39164,36501:27503,36502:20107,36503:20284,36504:20365,36505:20816,36506:23383,36507:23546,36508:24904,36509:25345,36510:26178,36511:27425,36512:28363,36513:27835,36514:29246,36515:29885,36516:30164,36517:30913,36518:31034,36519:32780,36520:32819,36521:33258,36522:33940,36523:36766,36524:27728,36525:40575,36526:24335,36527:35672,36528:40235,36529:31482,36530:36600,36531:23437,36532:38635,36533:19971,36534:21489,36535:22519,36536:22833,36537:23241,36538:23460,36539:24713,36540:28287,36541:28422,36542:30142,36543:36074,36544:23455,36545:34048,36546:31712,36547:20594,36548:26612,36549:33437,36550:23649,36551:34122,36552:32286,36553:33294,36554:20889,36555:23556,36556:25448,36557:36198,36558:26012,36559:29038,36560:31038,36561:32023,36562:32773,36563:35613,36564:36554,36565:36974,36566:34503,36567:37034,36568:20511,36569:21242,36570:23610,36571:26451,36572:28796,36573:29237,36574:37196,36575:37320,36576:37675,36577:33509,36578:23490,36579:24369,36580:24825,36581:20027,36582:21462,36583:23432,36584:25163,36585:26417,36586:27530,36587:29417,36588:29664,36589:31278,36590:33131,36591:36259,36592:37202,36593:39318,36594:20754,36595:21463,36596:21610,36597:23551,36598:25480,36599:27193,36600:32172,36601:38656,36602:22234,36603:21454,36604:21608,36672:23447,36673:23601,36674:24030,36675:20462,36676:24833,36677:25342,36678:27954,36679:31168,36680:31179,36681:32066,36682:32333,36683:32722,36684:33261,36685:33311,36686:33936,36687:34886,36688:35186,36689:35728,36690:36468,36691:36655,36692:36913,36693:37195,36694:37228,36695:38598,36696:37276,36697:20160,36698:20303,36699:20805,36700:21313,36701:24467,36702:25102,36703:26580,36704:27713,36705:28171,36706:29539,36707:32294,36708:37325,36709:37507,36710:21460,36711:22809,36712:23487,36713:28113,36714:31069,36715:32302,36716:31899,36717:22654,36718:29087,36719:20986,36720:34899,36721:36848,36722:20426,36723:23803,36724:26149,36725:30636,36726:31459,36727:33308,36728:39423,36729:20934,36730:24490,36731:26092,36732:26991,36733:27529,36734:28147,36736:28310,36737:28516,36738:30462,36739:32020,36740:24033,36741:36981,36742:37255,36743:38918,36744:20966,36745:21021,36746:25152,36747:26257,36748:26329,36749:28186,36750:24246,36751:32210,36752:32626,36753:26360,36754:34223,36755:34295,36756:35576,36757:21161,36758:21465,36759:22899,36760:24207,36761:24464,36762:24661,36763:37604,36764:38500,36765:20663,36766:20767,36767:21213,36768:21280,36769:21319,36770:21484,36771:21736,36772:21830,36773:21809,36774:22039,36775:22888,36776:22974,36777:23100,36778:23477,36779:23558,36780:23567,36781:23569,36782:23578,36783:24196,36784:24202,36785:24288,36786:24432,36787:25215,36788:25220,36789:25307,36790:25484,36791:25463,36792:26119,36793:26124,36794:26157,36795:26230,36796:26494,36797:26786,36798:27167,36799:27189,36800:27836,36801:28040,36802:28169,36803:28248,36804:28988,36805:28966,36806:29031,36807:30151,36808:30465,36809:30813,36810:30977,36811:31077,36812:31216,36813:31456,36814:31505,36815:31911,36816:32057,36817:32918,36818:33750,36819:33931,36820:34121,36821:34909,36822:35059,36823:35359,36824:35388,36825:35412,36826:35443,36827:35937,36828:36062,36829:37284,36830:37478,36831:37758,36832:37912,36833:38556,36834:38808,36835:19978,36836:19976,36837:19998,36838:20055,36839:20887,36840:21104,36841:22478,36842:22580,36843:22732,36844:23330,36845:24120,36846:24773,36847:25854,36848:26465,36849:26454,36850:27972,36851:29366,36852:30067,36853:31331,36854:33976,36855:35698,36856:37304,36857:37664,36858:22065,36859:22516,36860:39166,36928:25325,36929:26893,36930:27542,36931:29165,36932:32340,36933:32887,36934:33394,36935:35302,36936:39135,36937:34645,36938:36785,36939:23611,36940:20280,36941:20449,36942:20405,36943:21767,36944:23072,36945:23517,36946:23529,36947:24515,36948:24910,36949:25391,36950:26032,36951:26187,36952:26862,36953:27035,36954:28024,36955:28145,36956:30003,36957:30137,36958:30495,36959:31070,36960:31206,36961:32051,36962:33251,36963:33455,36964:34218,36965:35242,36966:35386,36967:36523,36968:36763,36969:36914,36970:37341,36971:38663,36972:20154,36973:20161,36974:20995,36975:22645,36976:22764,36977:23563,36978:29978,36979:23613,36980:33102,36981:35338,36982:36805,36983:38499,36984:38765,36985:31525,36986:35535,36987:38920,36988:37218,36989:22259,36990:21416,36992:36887,36993:21561,36994:22402,36995:24101,36996:25512,36997:27700,36998:28810,36999:30561,37000:31883,37001:32736,37002:34928,37003:36930,37004:37204,37005:37648,37006:37656,37007:38543,37008:29790,37009:39620,37010:23815,37011:23913,37012:25968,37013:26530,37014:36264,37015:38619,37016:25454,37017:26441,37018:26905,37019:33733,37020:38935,37021:38592,37022:35070,37023:28548,37024:25722,37025:23544,37026:19990,37027:28716,37028:30045,37029:26159,37030:20932,37031:21046,37032:21218,37033:22995,37034:24449,37035:24615,37036:25104,37037:25919,37038:25972,37039:26143,37040:26228,37041:26866,37042:26646,37043:27491,37044:28165,37045:29298,37046:29983,37047:30427,37048:31934,37049:32854,37050:22768,37051:35069,37052:35199,37053:35488,37054:35475,37055:35531,37056:36893,37057:37266,37058:38738,37059:38745,37060:25993,37061:31246,37062:33030,37063:38587,37064:24109,37065:24796,37066:25114,37067:26021,37068:26132,37069:26512,37070:30707,37071:31309,37072:31821,37073:32318,37074:33034,37075:36012,37076:36196,37077:36321,37078:36447,37079:30889,37080:20999,37081:25305,37082:25509,37083:25666,37084:25240,37085:35373,37086:31363,37087:31680,37088:35500,37089:38634,37090:32118,37091:33292,37092:34633,37093:20185,37094:20808,37095:21315,37096:21344,37097:23459,37098:23554,37099:23574,37100:24029,37101:25126,37102:25159,37103:25776,37104:26643,37105:26676,37106:27849,37107:27973,37108:27927,37109:26579,37110:28508,37111:29006,37112:29053,37113:26059,37114:31359,37115:31661,37116:32218,37184:32330,37185:32680,37186:33146,37187:33307,37188:33337,37189:34214,37190:35438,37191:36046,37192:36341,37193:36984,37194:36983,37195:37549,37196:37521,37197:38275,37198:39854,37199:21069,37200:21892,37201:28472,37202:28982,37203:20840,37204:31109,37205:32341,37206:33203,37207:31950,37208:22092,37209:22609,37210:23720,37211:25514,37212:26366,37213:26365,37214:26970,37215:29401,37216:30095,37217:30094,37218:30990,37219:31062,37220:31199,37221:31895,37222:32032,37223:32068,37224:34311,37225:35380,37226:38459,37227:36961,37228:40736,37229:20711,37230:21109,37231:21452,37232:21474,37233:20489,37234:21930,37235:22766,37236:22863,37237:29245,37238:23435,37239:23652,37240:21277,37241:24803,37242:24819,37243:25436,37244:25475,37245:25407,37246:25531,37248:25805,37249:26089,37250:26361,37251:24035,37252:27085,37253:27133,37254:28437,37255:29157,37256:20105,37257:30185,37258:30456,37259:31379,37260:31967,37261:32207,37262:32156,37263:32865,37264:33609,37265:33624,37266:33900,37267:33980,37268:34299,37269:35013,37270:36208,37271:36865,37272:36973,37273:37783,37274:38684,37275:39442,37276:20687,37277:22679,37278:24974,37279:33235,37280:34101,37281:36104,37282:36896,37283:20419,37284:20596,37285:21063,37286:21363,37287:24687,37288:25417,37289:26463,37290:28204,37291:36275,37292:36895,37293:20439,37294:23646,37295:36042,37296:26063,37297:32154,37298:21330,37299:34966,37300:20854,37301:25539,37302:23384,37303:23403,37304:23562,37305:25613,37306:26449,37307:36956,37308:20182,37309:22810,37310:22826,37311:27760,37312:35409,37313:21822,37314:22549,37315:22949,37316:24816,37317:25171,37318:26561,37319:33333,37320:26965,37321:38464,37322:39364,37323:39464,37324:20307,37325:22534,37326:23550,37327:32784,37328:23729,37329:24111,37330:24453,37331:24608,37332:24907,37333:25140,37334:26367,37335:27888,37336:28382,37337:32974,37338:33151,37339:33492,37340:34955,37341:36024,37342:36864,37343:36910,37344:38538,37345:40667,37346:39899,37347:20195,37348:21488,37349:22823,37350:31532,37351:37261,37352:38988,37353:40441,37354:28381,37355:28711,37356:21331,37357:21828,37358:23429,37359:25176,37360:25246,37361:25299,37362:27810,37363:28655,37364:29730,37365:35351,37366:37944,37367:28609,37368:35582,37369:33592,37370:20967,37371:34552,37372:21482,37440:21481,37441:20294,37442:36948,37443:36784,37444:22890,37445:33073,37446:24061,37447:31466,37448:36799,37449:26842,37450:35895,37451:29432,37452:40008,37453:27197,37454:35504,37455:20025,37456:21336,37457:22022,37458:22374,37459:25285,37460:25506,37461:26086,37462:27470,37463:28129,37464:28251,37465:28845,37466:30701,37467:31471,37468:31658,37469:32187,37470:32829,37471:32966,37472:34507,37473:35477,37474:37723,37475:22243,37476:22727,37477:24382,37478:26029,37479:26262,37480:27264,37481:27573,37482:30007,37483:35527,37484:20516,37485:30693,37486:22320,37487:24347,37488:24677,37489:26234,37490:27744,37491:30196,37492:31258,37493:32622,37494:33268,37495:34584,37496:36933,37497:39347,37498:31689,37499:30044,37500:31481,37501:31569,37502:33988,37504:36880,37505:31209,37506:31378,37507:33590,37508:23265,37509:30528,37510:20013,37511:20210,37512:23449,37513:24544,37514:25277,37515:26172,37516:26609,37517:27880,37518:34411,37519:34935,37520:35387,37521:37198,37522:37619,37523:39376,37524:27159,37525:28710,37526:29482,37527:33511,37528:33879,37529:36015,37530:19969,37531:20806,37532:20939,37533:21899,37534:23541,37535:24086,37536:24115,37537:24193,37538:24340,37539:24373,37540:24427,37541:24500,37542:25074,37543:25361,37544:26274,37545:26397,37546:28526,37547:29266,37548:30010,37549:30522,37550:32884,37551:33081,37552:33144,37553:34678,37554:35519,37555:35548,37556:36229,37557:36339,37558:37530,37559:38263,37560:38914,37561:40165,37562:21189,37563:25431,37564:30452,37565:26389,37566:27784,37567:29645,37568:36035,37569:37806,37570:38515,37571:27941,37572:22684,37573:26894,37574:27084,37575:36861,37576:37786,37577:30171,37578:36890,37579:22618,37580:26626,37581:25524,37582:27131,37583:20291,37584:28460,37585:26584,37586:36795,37587:34086,37588:32180,37589:37716,37590:26943,37591:28528,37592:22378,37593:22775,37594:23340,37595:32044,37596:29226,37597:21514,37598:37347,37599:40372,37600:20141,37601:20302,37602:20572,37603:20597,37604:21059,37605:35998,37606:21576,37607:22564,37608:23450,37609:24093,37610:24213,37611:24237,37612:24311,37613:24351,37614:24716,37615:25269,37616:25402,37617:25552,37618:26799,37619:27712,37620:30855,37621:31118,37622:31243,37623:32224,37624:33351,37625:35330,37626:35558,37627:36420,37628:36883,37696:37048,37697:37165,37698:37336,37699:40718,37700:27877,37701:25688,37702:25826,37703:25973,37704:28404,37705:30340,37706:31515,37707:36969,37708:37841,37709:28346,37710:21746,37711:24505,37712:25764,37713:36685,37714:36845,37715:37444,37716:20856,37717:22635,37718:22825,37719:23637,37720:24215,37721:28155,37722:32399,37723:29980,37724:36028,37725:36578,37726:39003,37727:28857,37728:20253,37729:27583,37730:28593,37731:30000,37732:38651,37733:20814,37734:21520,37735:22581,37736:22615,37737:22956,37738:23648,37739:24466,37740:26007,37741:26460,37742:28193,37743:30331,37744:33759,37745:36077,37746:36884,37747:37117,37748:37709,37749:30757,37750:30778,37751:21162,37752:24230,37753:22303,37754:22900,37755:24594,37756:20498,37757:20826,37758:20908,37760:20941,37761:20992,37762:21776,37763:22612,37764:22616,37765:22871,37766:23445,37767:23798,37768:23947,37769:24764,37770:25237,37771:25645,37772:26481,37773:26691,37774:26812,37775:26847,37776:30423,37777:28120,37778:28271,37779:28059,37780:28783,37781:29128,37782:24403,37783:30168,37784:31095,37785:31561,37786:31572,37787:31570,37788:31958,37789:32113,37790:21040,37791:33891,37792:34153,37793:34276,37794:35342,37795:35588,37796:35910,37797:36367,37798:36867,37799:36879,37800:37913,37801:38518,37802:38957,37803:39472,37804:38360,37805:20685,37806:21205,37807:21516,37808:22530,37809:23566,37810:24999,37811:25758,37812:27934,37813:30643,37814:31461,37815:33012,37816:33796,37817:36947,37818:37509,37819:23776,37820:40199,37821:21311,37822:24471,37823:24499,37824:28060,37825:29305,37826:30563,37827:31167,37828:31716,37829:27602,37830:29420,37831:35501,37832:26627,37833:27233,37834:20984,37835:31361,37836:26932,37837:23626,37838:40182,37839:33515,37840:23493,37841:37193,37842:28702,37843:22136,37844:23663,37845:24775,37846:25958,37847:27788,37848:35930,37849:36929,37850:38931,37851:21585,37852:26311,37853:37389,37854:22856,37855:37027,37856:20869,37857:20045,37858:20970,37859:34201,37860:35598,37861:28760,37862:25466,37863:37707,37864:26978,37865:39348,37866:32260,37867:30071,37868:21335,37869:26976,37870:36575,37871:38627,37872:27741,37873:20108,37874:23612,37875:24336,37876:36841,37877:21250,37878:36049,37879:32905,37880:34425,37881:24319,37882:26085,37883:20083,37884:20837,37952:22914,37953:23615,37954:38894,37955:20219,37956:22922,37957:24525,37958:35469,37959:28641,37960:31152,37961:31074,37962:23527,37963:33905,37964:29483,37965:29105,37966:24180,37967:24565,37968:25467,37969:25754,37970:29123,37971:31896,37972:20035,37973:24316,37974:20043,37975:22492,37976:22178,37977:24745,37978:28611,37979:32013,37980:33021,37981:33075,37982:33215,37983:36786,37984:35223,37985:34468,37986:24052,37987:25226,37988:25773,37989:35207,37990:26487,37991:27874,37992:27966,37993:29750,37994:30772,37995:23110,37996:32629,37997:33453,37998:39340,37999:20467,38000:24259,38001:25309,38002:25490,38003:25943,38004:26479,38005:30403,38006:29260,38007:32972,38008:32954,38009:36649,38010:37197,38011:20493,38012:22521,38013:23186,38014:26757,38016:26995,38017:29028,38018:29437,38019:36023,38020:22770,38021:36064,38022:38506,38023:36889,38024:34687,38025:31204,38026:30695,38027:33833,38028:20271,38029:21093,38030:21338,38031:25293,38032:26575,38033:27850,38034:30333,38035:31636,38036:31893,38037:33334,38038:34180,38039:36843,38040:26333,38041:28448,38042:29190,38043:32283,38044:33707,38045:39361,38046:40614,38047:20989,38048:31665,38049:30834,38050:31672,38051:32903,38052:31560,38053:27368,38054:24161,38055:32908,38056:30033,38057:30048,38058:20843,38059:37474,38060:28300,38061:30330,38062:37271,38063:39658,38064:20240,38065:32624,38066:25244,38067:31567,38068:38309,38069:40169,38070:22138,38071:22617,38072:34532,38073:38588,38074:20276,38075:21028,38076:21322,38077:21453,38078:21467,38079:24070,38080:25644,38081:26001,38082:26495,38083:27710,38084:27726,38085:29256,38086:29359,38087:29677,38088:30036,38089:32321,38090:33324,38091:34281,38092:36009,38093:31684,38094:37318,38095:29033,38096:38930,38097:39151,38098:25405,38099:26217,38100:30058,38101:30436,38102:30928,38103:34115,38104:34542,38105:21290,38106:21329,38107:21542,38108:22915,38109:24199,38110:24444,38111:24754,38112:25161,38113:25209,38114:25259,38115:26000,38116:27604,38117:27852,38118:30130,38119:30382,38120:30865,38121:31192,38122:32203,38123:32631,38124:32933,38125:34987,38126:35513,38127:36027,38128:36991,38129:38750,38130:39131,38131:27147,38132:31800,38133:20633,38134:23614,38135:24494,38136:26503,38137:27608,38138:29749,38139:30473,38140:32654,38208:40763,38209:26570,38210:31255,38211:21305,38212:30091,38213:39661,38214:24422,38215:33181,38216:33777,38217:32920,38218:24380,38219:24517,38220:30050,38221:31558,38222:36924,38223:26727,38224:23019,38225:23195,38226:32016,38227:30334,38228:35628,38229:20469,38230:24426,38231:27161,38232:27703,38233:28418,38234:29922,38235:31080,38236:34920,38237:35413,38238:35961,38239:24287,38240:25551,38241:30149,38242:31186,38243:33495,38244:37672,38245:37618,38246:33948,38247:34541,38248:39981,38249:21697,38250:24428,38251:25996,38252:27996,38253:28693,38254:36007,38255:36051,38256:38971,38257:25935,38258:29942,38259:19981,38260:20184,38261:22496,38262:22827,38263:23142,38264:23500,38265:20904,38266:24067,38267:24220,38268:24598,38269:25206,38270:25975,38272:26023,38273:26222,38274:28014,38275:29238,38276:31526,38277:33104,38278:33178,38279:33433,38280:35676,38281:36000,38282:36070,38283:36212,38284:38428,38285:38468,38286:20398,38287:25771,38288:27494,38289:33310,38290:33889,38291:34154,38292:37096,38293:23553,38294:26963,38295:39080,38296:33914,38297:34135,38298:20239,38299:21103,38300:24489,38301:24133,38302:26381,38303:31119,38304:33145,38305:35079,38306:35206,38307:28149,38308:24343,38309:25173,38310:27832,38311:20175,38312:29289,38313:39826,38314:20998,38315:21563,38316:22132,38317:22707,38318:24996,38319:25198,38320:28954,38321:22894,38322:31881,38323:31966,38324:32027,38325:38640,38326:25991,38327:32862,38328:19993,38329:20341,38330:20853,38331:22592,38332:24163,38333:24179,38334:24330,38335:26564,38336:20006,38337:34109,38338:38281,38339:38491,38340:31859,38341:38913,38342:20731,38343:22721,38344:30294,38345:30887,38346:21029,38347:30629,38348:34065,38349:31622,38350:20559,38351:22793,38352:29255,38353:31687,38354:32232,38355:36794,38356:36820,38357:36941,38358:20415,38359:21193,38360:23081,38361:24321,38362:38829,38363:20445,38364:33303,38365:37610,38366:22275,38367:25429,38368:27497,38369:29995,38370:35036,38371:36628,38372:31298,38373:21215,38374:22675,38375:24917,38376:25098,38377:26286,38378:27597,38379:31807,38380:33769,38381:20515,38382:20472,38383:21253,38384:21574,38385:22577,38386:22857,38387:23453,38388:23792,38389:23791,38390:23849,38391:24214,38392:25265,38393:25447,38394:25918,38395:26041,38396:26379,38464:27861,38465:27873,38466:28921,38467:30770,38468:32299,38469:32990,38470:33459,38471:33804,38472:34028,38473:34562,38474:35090,38475:35370,38476:35914,38477:37030,38478:37586,38479:39165,38480:40179,38481:40300,38482:20047,38483:20129,38484:20621,38485:21078,38486:22346,38487:22952,38488:24125,38489:24536,38490:24537,38491:25151,38492:26292,38493:26395,38494:26576,38495:26834,38496:20882,38497:32033,38498:32938,38499:33192,38500:35584,38501:35980,38502:36031,38503:37502,38504:38450,38505:21536,38506:38956,38507:21271,38508:20693,38509:21340,38510:22696,38511:25778,38512:26420,38513:29287,38514:30566,38515:31302,38516:37350,38517:21187,38518:27809,38519:27526,38520:22528,38521:24140,38522:22868,38523:26412,38524:32763,38525:20961,38526:30406,38528:25705,38529:30952,38530:39764,38531:40635,38532:22475,38533:22969,38534:26151,38535:26522,38536:27598,38537:21737,38538:27097,38539:24149,38540:33180,38541:26517,38542:39850,38543:26622,38544:40018,38545:26717,38546:20134,38547:20451,38548:21448,38549:25273,38550:26411,38551:27819,38552:36804,38553:20397,38554:32365,38555:40639,38556:19975,38557:24930,38558:28288,38559:28459,38560:34067,38561:21619,38562:26410,38563:39749,38564:24051,38565:31637,38566:23724,38567:23494,38568:34588,38569:28234,38570:34001,38571:31252,38572:33032,38573:22937,38574:31885,38575:27665,38576:30496,38577:21209,38578:22818,38579:28961,38580:29279,38581:30683,38582:38695,38583:40289,38584:26891,38585:23167,38586:23064,38587:20901,38588:21517,38589:21629,38590:26126,38591:30431,38592:36855,38593:37528,38594:40180,38595:23018,38596:29277,38597:28357,38598:20813,38599:26825,38600:32191,38601:32236,38602:38754,38603:40634,38604:25720,38605:27169,38606:33538,38607:22916,38608:23391,38609:27611,38610:29467,38611:30450,38612:32178,38613:32791,38614:33945,38615:20786,38616:26408,38617:40665,38618:30446,38619:26466,38620:21247,38621:39173,38622:23588,38623:25147,38624:31870,38625:36016,38626:21839,38627:24758,38628:32011,38629:38272,38630:21249,38631:20063,38632:20918,38633:22812,38634:29242,38635:32822,38636:37326,38637:24357,38638:30690,38639:21380,38640:24441,38641:32004,38642:34220,38643:35379,38644:36493,38645:38742,38646:26611,38647:34222,38648:37971,38649:24841,38650:24840,38651:27833,38652:30290,38720:35565,38721:36664,38722:21807,38723:20305,38724:20778,38725:21191,38726:21451,38727:23461,38728:24189,38729:24736,38730:24962,38731:25558,38732:26377,38733:26586,38734:28263,38735:28044,38736:29494,38737:29495,38738:30001,38739:31056,38740:35029,38741:35480,38742:36938,38743:37009,38744:37109,38745:38596,38746:34701,38747:22805,38748:20104,38749:20313,38750:19982,38751:35465,38752:36671,38753:38928,38754:20653,38755:24188,38756:22934,38757:23481,38758:24248,38759:25562,38760:25594,38761:25793,38762:26332,38763:26954,38764:27096,38765:27915,38766:28342,38767:29076,38768:29992,38769:31407,38770:32650,38771:32768,38772:33865,38773:33993,38774:35201,38775:35617,38776:36362,38777:36965,38778:38525,38779:39178,38780:24958,38781:25233,38782:27442,38784:27779,38785:28020,38786:32716,38787:32764,38788:28096,38789:32645,38790:34746,38791:35064,38792:26469,38793:33713,38794:38972,38795:38647,38796:27931,38797:32097,38798:33853,38799:37226,38800:20081,38801:21365,38802:23888,38803:27396,38804:28651,38805:34253,38806:34349,38807:35239,38808:21033,38809:21519,38810:23653,38811:26446,38812:26792,38813:29702,38814:29827,38815:30178,38816:35023,38817:35041,38818:37324,38819:38626,38820:38520,38821:24459,38822:29575,38823:31435,38824:33870,38825:25504,38826:30053,38827:21129,38828:27969,38829:28316,38830:29705,38831:30041,38832:30827,38833:31890,38834:38534,38835:31452,38836:40845,38837:20406,38838:24942,38839:26053,38840:34396,38841:20102,38842:20142,38843:20698,38844:20001,38845:20940,38846:23534,38847:26009,38848:26753,38849:28092,38850:29471,38851:30274,38852:30637,38853:31260,38854:31975,38855:33391,38856:35538,38857:36988,38858:37327,38859:38517,38860:38936,38861:21147,38862:32209,38863:20523,38864:21400,38865:26519,38866:28107,38867:29136,38868:29747,38869:33256,38870:36650,38871:38563,38872:40023,38873:40607,38874:29792,38875:22593,38876:28057,38877:32047,38878:39006,38879:20196,38880:20278,38881:20363,38882:20919,38883:21169,38884:23994,38885:24604,38886:29618,38887:31036,38888:33491,38889:37428,38890:38583,38891:38646,38892:38666,38893:40599,38894:40802,38895:26278,38896:27508,38897:21015,38898:21155,38899:28872,38900:35010,38901:24265,38902:24651,38903:24976,38904:28451,38905:29001,38906:31806,38907:32244,38908:32879,38976:34030,38977:36899,38978:37676,38979:21570,38980:39791,38981:27347,38982:28809,38983:36034,38984:36335,38985:38706,38986:21172,38987:23105,38988:24266,38989:24324,38990:26391,38991:27004,38992:27028,38993:28010,38994:28431,38995:29282,38996:29436,38997:31725,38998:32769,38999:32894,39000:34635,39001:37070,39002:20845,39003:40595,39004:31108,39005:32907,39006:37682,39007:35542,39008:20525,39009:21644,39010:35441,39011:27498,39012:36036,39013:33031,39014:24785,39015:26528,39016:40434,39017:20121,39018:20120,39019:39952,39020:35435,39021:34241,39022:34152,39023:26880,39024:28286,39025:30871,39026:33109,39071:24332,39072:19984,39073:19989,39074:20010,39075:20017,39076:20022,39077:20028,39078:20031,39079:20034,39080:20054,39081:20056,39082:20098,39083:20101,39084:35947,39085:20106,39086:33298,39087:24333,39088:20110,39089:20126,39090:20127,39091:20128,39092:20130,39093:20144,39094:20147,39095:20150,39096:20174,39097:20173,39098:20164,39099:20166,39100:20162,39101:20183,39102:20190,39103:20205,39104:20191,39105:20215,39106:20233,39107:20314,39108:20272,39109:20315,39110:20317,39111:20311,39112:20295,39113:20342,39114:20360,39115:20367,39116:20376,39117:20347,39118:20329,39119:20336,39120:20369,39121:20335,39122:20358,39123:20374,39124:20760,39125:20436,39126:20447,39127:20430,39128:20440,39129:20443,39130:20433,39131:20442,39132:20432,39133:20452,39134:20453,39135:20506,39136:20520,39137:20500,39138:20522,39139:20517,39140:20485,39141:20252,39142:20470,39143:20513,39144:20521,39145:20524,39146:20478,39147:20463,39148:20497,39149:20486,39150:20547,39151:20551,39152:26371,39153:20565,39154:20560,39155:20552,39156:20570,39157:20566,39158:20588,39159:20600,39160:20608,39161:20634,39162:20613,39163:20660,39164:20658,39232:20681,39233:20682,39234:20659,39235:20674,39236:20694,39237:20702,39238:20709,39239:20717,39240:20707,39241:20718,39242:20729,39243:20725,39244:20745,39245:20737,39246:20738,39247:20758,39248:20757,39249:20756,39250:20762,39251:20769,39252:20794,39253:20791,39254:20796,39255:20795,39256:20799,39257:20800,39258:20818,39259:20812,39260:20820,39261:20834,39262:31480,39263:20841,39264:20842,39265:20846,39266:20864,39267:20866,39268:22232,39269:20876,39270:20873,39271:20879,39272:20881,39273:20883,39274:20885,39275:20886,39276:20900,39277:20902,39278:20898,39279:20905,39280:20906,39281:20907,39282:20915,39283:20913,39284:20914,39285:20912,39286:20917,39287:20925,39288:20933,39289:20937,39290:20955,39291:20960,39292:34389,39293:20969,39294:20973,39296:20976,39297:20981,39298:20990,39299:20996,39300:21003,39301:21012,39302:21006,39303:21031,39304:21034,39305:21038,39306:21043,39307:21049,39308:21071,39309:21060,39310:21067,39311:21068,39312:21086,39313:21076,39314:21098,39315:21108,39316:21097,39317:21107,39318:21119,39319:21117,39320:21133,39321:21140,39322:21138,39323:21105,39324:21128,39325:21137,39326:36776,39327:36775,39328:21164,39329:21165,39330:21180,39331:21173,39332:21185,39333:21197,39334:21207,39335:21214,39336:21219,39337:21222,39338:39149,39339:21216,39340:21235,39341:21237,39342:21240,39343:21241,39344:21254,39345:21256,39346:30008,39347:21261,39348:21264,39349:21263,39350:21269,39351:21274,39352:21283,39353:21295,39354:21297,39355:21299,39356:21304,39357:21312,39358:21318,39359:21317,39360:19991,39361:21321,39362:21325,39363:20950,39364:21342,39365:21353,39366:21358,39367:22808,39368:21371,39369:21367,39370:21378,39371:21398,39372:21408,39373:21414,39374:21413,39375:21422,39376:21424,39377:21430,39378:21443,39379:31762,39380:38617,39381:21471,39382:26364,39383:29166,39384:21486,39385:21480,39386:21485,39387:21498,39388:21505,39389:21565,39390:21568,39391:21548,39392:21549,39393:21564,39394:21550,39395:21558,39396:21545,39397:21533,39398:21582,39399:21647,39400:21621,39401:21646,39402:21599,39403:21617,39404:21623,39405:21616,39406:21650,39407:21627,39408:21632,39409:21622,39410:21636,39411:21648,39412:21638,39413:21703,39414:21666,39415:21688,39416:21669,39417:21676,39418:21700,39419:21704,39420:21672,39488:21675,39489:21698,39490:21668,39491:21694,39492:21692,39493:21720,39494:21733,39495:21734,39496:21775,39497:21780,39498:21757,39499:21742,39500:21741,39501:21754,39502:21730,39503:21817,39504:21824,39505:21859,39506:21836,39507:21806,39508:21852,39509:21829,39510:21846,39511:21847,39512:21816,39513:21811,39514:21853,39515:21913,39516:21888,39517:21679,39518:21898,39519:21919,39520:21883,39521:21886,39522:21912,39523:21918,39524:21934,39525:21884,39526:21891,39527:21929,39528:21895,39529:21928,39530:21978,39531:21957,39532:21983,39533:21956,39534:21980,39535:21988,39536:21972,39537:22036,39538:22007,39539:22038,39540:22014,39541:22013,39542:22043,39543:22009,39544:22094,39545:22096,39546:29151,39547:22068,39548:22070,39549:22066,39550:22072,39552:22123,39553:22116,39554:22063,39555:22124,39556:22122,39557:22150,39558:22144,39559:22154,39560:22176,39561:22164,39562:22159,39563:22181,39564:22190,39565:22198,39566:22196,39567:22210,39568:22204,39569:22209,39570:22211,39571:22208,39572:22216,39573:22222,39574:22225,39575:22227,39576:22231,39577:22254,39578:22265,39579:22272,39580:22271,39581:22276,39582:22281,39583:22280,39584:22283,39585:22285,39586:22291,39587:22296,39588:22294,39589:21959,39590:22300,39591:22310,39592:22327,39593:22328,39594:22350,39595:22331,39596:22336,39597:22351,39598:22377,39599:22464,39600:22408,39601:22369,39602:22399,39603:22409,39604:22419,39605:22432,39606:22451,39607:22436,39608:22442,39609:22448,39610:22467,39611:22470,39612:22484,39613:22482,39614:22483,39615:22538,39616:22486,39617:22499,39618:22539,39619:22553,39620:22557,39621:22642,39622:22561,39623:22626,39624:22603,39625:22640,39626:27584,39627:22610,39628:22589,39629:22649,39630:22661,39631:22713,39632:22687,39633:22699,39634:22714,39635:22750,39636:22715,39637:22712,39638:22702,39639:22725,39640:22739,39641:22737,39642:22743,39643:22745,39644:22744,39645:22757,39646:22748,39647:22756,39648:22751,39649:22767,39650:22778,39651:22777,39652:22779,39653:22780,39654:22781,39655:22786,39656:22794,39657:22800,39658:22811,39659:26790,39660:22821,39661:22828,39662:22829,39663:22834,39664:22840,39665:22846,39666:31442,39667:22869,39668:22864,39669:22862,39670:22874,39671:22872,39672:22882,39673:22880,39674:22887,39675:22892,39676:22889,39744:22904,39745:22913,39746:22941,39747:20318,39748:20395,39749:22947,39750:22962,39751:22982,39752:23016,39753:23004,39754:22925,39755:23001,39756:23002,39757:23077,39758:23071,39759:23057,39760:23068,39761:23049,39762:23066,39763:23104,39764:23148,39765:23113,39766:23093,39767:23094,39768:23138,39769:23146,39770:23194,39771:23228,39772:23230,39773:23243,39774:23234,39775:23229,39776:23267,39777:23255,39778:23270,39779:23273,39780:23254,39781:23290,39782:23291,39783:23308,39784:23307,39785:23318,39786:23346,39787:23248,39788:23338,39789:23350,39790:23358,39791:23363,39792:23365,39793:23360,39794:23377,39795:23381,39796:23386,39797:23387,39798:23397,39799:23401,39800:23408,39801:23411,39802:23413,39803:23416,39804:25992,39805:23418,39806:23424,39808:23427,39809:23462,39810:23480,39811:23491,39812:23495,39813:23497,39814:23508,39815:23504,39816:23524,39817:23526,39818:23522,39819:23518,39820:23525,39821:23531,39822:23536,39823:23542,39824:23539,39825:23557,39826:23559,39827:23560,39828:23565,39829:23571,39830:23584,39831:23586,39832:23592,39833:23608,39834:23609,39835:23617,39836:23622,39837:23630,39838:23635,39839:23632,39840:23631,39841:23409,39842:23660,39843:23662,39844:20066,39845:23670,39846:23673,39847:23692,39848:23697,39849:23700,39850:22939,39851:23723,39852:23739,39853:23734,39854:23740,39855:23735,39856:23749,39857:23742,39858:23751,39859:23769,39860:23785,39861:23805,39862:23802,39863:23789,39864:23948,39865:23786,39866:23819,39867:23829,39868:23831,39869:23900,39870:23839,39871:23835,39872:23825,39873:23828,39874:23842,39875:23834,39876:23833,39877:23832,39878:23884,39879:23890,39880:23886,39881:23883,39882:23916,39883:23923,39884:23926,39885:23943,39886:23940,39887:23938,39888:23970,39889:23965,39890:23980,39891:23982,39892:23997,39893:23952,39894:23991,39895:23996,39896:24009,39897:24013,39898:24019,39899:24018,39900:24022,39901:24027,39902:24043,39903:24050,39904:24053,39905:24075,39906:24090,39907:24089,39908:24081,39909:24091,39910:24118,39911:24119,39912:24132,39913:24131,39914:24128,39915:24142,39916:24151,39917:24148,39918:24159,39919:24162,39920:24164,39921:24135,39922:24181,39923:24182,39924:24186,39925:40636,39926:24191,39927:24224,39928:24257,39929:24258,39930:24264,39931:24272,39932:24271,40000:24278,40001:24291,40002:24285,40003:24282,40004:24283,40005:24290,40006:24289,40007:24296,40008:24297,40009:24300,40010:24305,40011:24307,40012:24304,40013:24308,40014:24312,40015:24318,40016:24323,40017:24329,40018:24413,40019:24412,40020:24331,40021:24337,40022:24342,40023:24361,40024:24365,40025:24376,40026:24385,40027:24392,40028:24396,40029:24398,40030:24367,40031:24401,40032:24406,40033:24407,40034:24409,40035:24417,40036:24429,40037:24435,40038:24439,40039:24451,40040:24450,40041:24447,40042:24458,40043:24456,40044:24465,40045:24455,40046:24478,40047:24473,40048:24472,40049:24480,40050:24488,40051:24493,40052:24508,40053:24534,40054:24571,40055:24548,40056:24568,40057:24561,40058:24541,40059:24755,40060:24575,40061:24609,40062:24672,40064:24601,40065:24592,40066:24617,40067:24590,40068:24625,40069:24603,40070:24597,40071:24619,40072:24614,40073:24591,40074:24634,40075:24666,40076:24641,40077:24682,40078:24695,40079:24671,40080:24650,40081:24646,40082:24653,40083:24675,40084:24643,40085:24676,40086:24642,40087:24684,40088:24683,40089:24665,40090:24705,40091:24717,40092:24807,40093:24707,40094:24730,40095:24708,40096:24731,40097:24726,40098:24727,40099:24722,40100:24743,40101:24715,40102:24801,40103:24760,40104:24800,40105:24787,40106:24756,40107:24560,40108:24765,40109:24774,40110:24757,40111:24792,40112:24909,40113:24853,40114:24838,40115:24822,40116:24823,40117:24832,40118:24820,40119:24826,40120:24835,40121:24865,40122:24827,40123:24817,40124:24845,40125:24846,40126:24903,40127:24894,40128:24872,40129:24871,40130:24906,40131:24895,40132:24892,40133:24876,40134:24884,40135:24893,40136:24898,40137:24900,40138:24947,40139:24951,40140:24920,40141:24921,40142:24922,40143:24939,40144:24948,40145:24943,40146:24933,40147:24945,40148:24927,40149:24925,40150:24915,40151:24949,40152:24985,40153:24982,40154:24967,40155:25004,40156:24980,40157:24986,40158:24970,40159:24977,40160:25003,40161:25006,40162:25036,40163:25034,40164:25033,40165:25079,40166:25032,40167:25027,40168:25030,40169:25018,40170:25035,40171:32633,40172:25037,40173:25062,40174:25059,40175:25078,40176:25082,40177:25076,40178:25087,40179:25085,40180:25084,40181:25086,40182:25088,40183:25096,40184:25097,40185:25101,40186:25100,40187:25108,40188:25115,40256:25118,40257:25121,40258:25130,40259:25134,40260:25136,40261:25138,40262:25139,40263:25153,40264:25166,40265:25182,40266:25187,40267:25179,40268:25184,40269:25192,40270:25212,40271:25218,40272:25225,40273:25214,40274:25234,40275:25235,40276:25238,40277:25300,40278:25219,40279:25236,40280:25303,40281:25297,40282:25275,40283:25295,40284:25343,40285:25286,40286:25812,40287:25288,40288:25308,40289:25292,40290:25290,40291:25282,40292:25287,40293:25243,40294:25289,40295:25356,40296:25326,40297:25329,40298:25383,40299:25346,40300:25352,40301:25327,40302:25333,40303:25424,40304:25406,40305:25421,40306:25628,40307:25423,40308:25494,40309:25486,40310:25472,40311:25515,40312:25462,40313:25507,40314:25487,40315:25481,40316:25503,40317:25525,40318:25451,40320:25449,40321:25534,40322:25577,40323:25536,40324:25542,40325:25571,40326:25545,40327:25554,40328:25590,40329:25540,40330:25622,40331:25652,40332:25606,40333:25619,40334:25638,40335:25654,40336:25885,40337:25623,40338:25640,40339:25615,40340:25703,40341:25711,40342:25718,40343:25678,40344:25898,40345:25749,40346:25747,40347:25765,40348:25769,40349:25736,40350:25788,40351:25818,40352:25810,40353:25797,40354:25799,40355:25787,40356:25816,40357:25794,40358:25841,40359:25831,40360:33289,40361:25824,40362:25825,40363:25260,40364:25827,40365:25839,40366:25900,40367:25846,40368:25844,40369:25842,40370:25850,40371:25856,40372:25853,40373:25880,40374:25884,40375:25861,40376:25892,40377:25891,40378:25899,40379:25908,40380:25909,40381:25911,40382:25910,40383:25912,40384:30027,40385:25928,40386:25942,40387:25941,40388:25933,40389:25944,40390:25950,40391:25949,40392:25970,40393:25976,40394:25986,40395:25987,40396:35722,40397:26011,40398:26015,40399:26027,40400:26039,40401:26051,40402:26054,40403:26049,40404:26052,40405:26060,40406:26066,40407:26075,40408:26073,40409:26080,40410:26081,40411:26097,40412:26482,40413:26122,40414:26115,40415:26107,40416:26483,40417:26165,40418:26166,40419:26164,40420:26140,40421:26191,40422:26180,40423:26185,40424:26177,40425:26206,40426:26205,40427:26212,40428:26215,40429:26216,40430:26207,40431:26210,40432:26224,40433:26243,40434:26248,40435:26254,40436:26249,40437:26244,40438:26264,40439:26269,40440:26305,40441:26297,40442:26313,40443:26302,40444:26300,40512:26308,40513:26296,40514:26326,40515:26330,40516:26336,40517:26175,40518:26342,40519:26345,40520:26352,40521:26357,40522:26359,40523:26383,40524:26390,40525:26398,40526:26406,40527:26407,40528:38712,40529:26414,40530:26431,40531:26422,40532:26433,40533:26424,40534:26423,40535:26438,40536:26462,40537:26464,40538:26457,40539:26467,40540:26468,40541:26505,40542:26480,40543:26537,40544:26492,40545:26474,40546:26508,40547:26507,40548:26534,40549:26529,40550:26501,40551:26551,40552:26607,40553:26548,40554:26604,40555:26547,40556:26601,40557:26552,40558:26596,40559:26590,40560:26589,40561:26594,40562:26606,40563:26553,40564:26574,40565:26566,40566:26599,40567:27292,40568:26654,40569:26694,40570:26665,40571:26688,40572:26701,40573:26674,40574:26702,40576:26803,40577:26667,40578:26713,40579:26723,40580:26743,40581:26751,40582:26783,40583:26767,40584:26797,40585:26772,40586:26781,40587:26779,40588:26755,40589:27310,40590:26809,40591:26740,40592:26805,40593:26784,40594:26810,40595:26895,40596:26765,40597:26750,40598:26881,40599:26826,40600:26888,40601:26840,40602:26914,40603:26918,40604:26849,40605:26892,40606:26829,40607:26836,40608:26855,40609:26837,40610:26934,40611:26898,40612:26884,40613:26839,40614:26851,40615:26917,40616:26873,40617:26848,40618:26863,40619:26920,40620:26922,40621:26906,40622:26915,40623:26913,40624:26822,40625:27001,40626:26999,40627:26972,40628:27000,40629:26987,40630:26964,40631:27006,40632:26990,40633:26937,40634:26996,40635:26941,40636:26969,40637:26928,40638:26977,40639:26974,40640:26973,40641:27009,40642:26986,40643:27058,40644:27054,40645:27088,40646:27071,40647:27073,40648:27091,40649:27070,40650:27086,40651:23528,40652:27082,40653:27101,40654:27067,40655:27075,40656:27047,40657:27182,40658:27025,40659:27040,40660:27036,40661:27029,40662:27060,40663:27102,40664:27112,40665:27138,40666:27163,40667:27135,40668:27402,40669:27129,40670:27122,40671:27111,40672:27141,40673:27057,40674:27166,40675:27117,40676:27156,40677:27115,40678:27146,40679:27154,40680:27329,40681:27171,40682:27155,40683:27204,40684:27148,40685:27250,40686:27190,40687:27256,40688:27207,40689:27234,40690:27225,40691:27238,40692:27208,40693:27192,40694:27170,40695:27280,40696:27277,40697:27296,40698:27268,40699:27298,40700:27299,40768:27287,40769:34327,40770:27323,40771:27331,40772:27330,40773:27320,40774:27315,40775:27308,40776:27358,40777:27345,40778:27359,40779:27306,40780:27354,40781:27370,40782:27387,40783:27397,40784:34326,40785:27386,40786:27410,40787:27414,40788:39729,40789:27423,40790:27448,40791:27447,40792:30428,40793:27449,40794:39150,40795:27463,40796:27459,40797:27465,40798:27472,40799:27481,40800:27476,40801:27483,40802:27487,40803:27489,40804:27512,40805:27513,40806:27519,40807:27520,40808:27524,40809:27523,40810:27533,40811:27544,40812:27541,40813:27550,40814:27556,40815:27562,40816:27563,40817:27567,40818:27570,40819:27569,40820:27571,40821:27575,40822:27580,40823:27590,40824:27595,40825:27603,40826:27615,40827:27628,40828:27627,40829:27635,40830:27631,40832:40638,40833:27656,40834:27667,40835:27668,40836:27675,40837:27684,40838:27683,40839:27742,40840:27733,40841:27746,40842:27754,40843:27778,40844:27789,40845:27802,40846:27777,40847:27803,40848:27774,40849:27752,40850:27763,40851:27794,40852:27792,40853:27844,40854:27889,40855:27859,40856:27837,40857:27863,40858:27845,40859:27869,40860:27822,40861:27825,40862:27838,40863:27834,40864:27867,40865:27887,40866:27865,40867:27882,40868:27935,40869:34893,40870:27958,40871:27947,40872:27965,40873:27960,40874:27929,40875:27957,40876:27955,40877:27922,40878:27916,40879:28003,40880:28051,40881:28004,40882:27994,40883:28025,40884:27993,40885:28046,40886:28053,40887:28644,40888:28037,40889:28153,40890:28181,40891:28170,40892:28085,40893:28103,40894:28134,40895:28088,40896:28102,40897:28140,40898:28126,40899:28108,40900:28136,40901:28114,40902:28101,40903:28154,40904:28121,40905:28132,40906:28117,40907:28138,40908:28142,40909:28205,40910:28270,40911:28206,40912:28185,40913:28274,40914:28255,40915:28222,40916:28195,40917:28267,40918:28203,40919:28278,40920:28237,40921:28191,40922:28227,40923:28218,40924:28238,40925:28196,40926:28415,40927:28189,40928:28216,40929:28290,40930:28330,40931:28312,40932:28361,40933:28343,40934:28371,40935:28349,40936:28335,40937:28356,40938:28338,40939:28372,40940:28373,40941:28303,40942:28325,40943:28354,40944:28319,40945:28481,40946:28433,40947:28748,40948:28396,40949:28408,40950:28414,40951:28479,40952:28402,40953:28465,40954:28399,40955:28466,40956:28364,57408:28478,57409:28435,57410:28407,57411:28550,57412:28538,57413:28536,57414:28545,57415:28544,57416:28527,57417:28507,57418:28659,57419:28525,57420:28546,57421:28540,57422:28504,57423:28558,57424:28561,57425:28610,57426:28518,57427:28595,57428:28579,57429:28577,57430:28580,57431:28601,57432:28614,57433:28586,57434:28639,57435:28629,57436:28652,57437:28628,57438:28632,57439:28657,57440:28654,57441:28635,57442:28681,57443:28683,57444:28666,57445:28689,57446:28673,57447:28687,57448:28670,57449:28699,57450:28698,57451:28532,57452:28701,57453:28696,57454:28703,57455:28720,57456:28734,57457:28722,57458:28753,57459:28771,57460:28825,57461:28818,57462:28847,57463:28913,57464:28844,57465:28856,57466:28851,57467:28846,57468:28895,57469:28875,57470:28893,57472:28889,57473:28937,57474:28925,57475:28956,57476:28953,57477:29029,57478:29013,57479:29064,57480:29030,57481:29026,57482:29004,57483:29014,57484:29036,57485:29071,57486:29179,57487:29060,57488:29077,57489:29096,57490:29100,57491:29143,57492:29113,57493:29118,57494:29138,57495:29129,57496:29140,57497:29134,57498:29152,57499:29164,57500:29159,57501:29173,57502:29180,57503:29177,57504:29183,57505:29197,57506:29200,57507:29211,57508:29224,57509:29229,57510:29228,57511:29232,57512:29234,57513:29243,57514:29244,57515:29247,57516:29248,57517:29254,57518:29259,57519:29272,57520:29300,57521:29310,57522:29314,57523:29313,57524:29319,57525:29330,57526:29334,57527:29346,57528:29351,57529:29369,57530:29362,57531:29379,57532:29382,57533:29380,57534:29390,57535:29394,57536:29410,57537:29408,57538:29409,57539:29433,57540:29431,57541:20495,57542:29463,57543:29450,57544:29468,57545:29462,57546:29469,57547:29492,57548:29487,57549:29481,57550:29477,57551:29502,57552:29518,57553:29519,57554:40664,57555:29527,57556:29546,57557:29544,57558:29552,57559:29560,57560:29557,57561:29563,57562:29562,57563:29640,57564:29619,57565:29646,57566:29627,57567:29632,57568:29669,57569:29678,57570:29662,57571:29858,57572:29701,57573:29807,57574:29733,57575:29688,57576:29746,57577:29754,57578:29781,57579:29759,57580:29791,57581:29785,57582:29761,57583:29788,57584:29801,57585:29808,57586:29795,57587:29802,57588:29814,57589:29822,57590:29835,57591:29854,57592:29863,57593:29898,57594:29903,57595:29908,57596:29681,57664:29920,57665:29923,57666:29927,57667:29929,57668:29934,57669:29938,57670:29936,57671:29937,57672:29944,57673:29943,57674:29956,57675:29955,57676:29957,57677:29964,57678:29966,57679:29965,57680:29973,57681:29971,57682:29982,57683:29990,57684:29996,57685:30012,57686:30020,57687:30029,57688:30026,57689:30025,57690:30043,57691:30022,57692:30042,57693:30057,57694:30052,57695:30055,57696:30059,57697:30061,57698:30072,57699:30070,57700:30086,57701:30087,57702:30068,57703:30090,57704:30089,57705:30082,57706:30100,57707:30106,57708:30109,57709:30117,57710:30115,57711:30146,57712:30131,57713:30147,57714:30133,57715:30141,57716:30136,57717:30140,57718:30129,57719:30157,57720:30154,57721:30162,57722:30169,57723:30179,57724:30174,57725:30206,57726:30207,57728:30204,57729:30209,57730:30192,57731:30202,57732:30194,57733:30195,57734:30219,57735:30221,57736:30217,57737:30239,57738:30247,57739:30240,57740:30241,57741:30242,57742:30244,57743:30260,57744:30256,57745:30267,57746:30279,57747:30280,57748:30278,57749:30300,57750:30296,57751:30305,57752:30306,57753:30312,57754:30313,57755:30314,57756:30311,57757:30316,57758:30320,57759:30322,57760:30326,57761:30328,57762:30332,57763:30336,57764:30339,57765:30344,57766:30347,57767:30350,57768:30358,57769:30355,57770:30361,57771:30362,57772:30384,57773:30388,57774:30392,57775:30393,57776:30394,57777:30402,57778:30413,57779:30422,57780:30418,57781:30430,57782:30433,57783:30437,57784:30439,57785:30442,57786:34351,57787:30459,57788:30472,57789:30471,57790:30468,57791:30505,57792:30500,57793:30494,57794:30501,57795:30502,57796:30491,57797:30519,57798:30520,57799:30535,57800:30554,57801:30568,57802:30571,57803:30555,57804:30565,57805:30591,57806:30590,57807:30585,57808:30606,57809:30603,57810:30609,57811:30624,57812:30622,57813:30640,57814:30646,57815:30649,57816:30655,57817:30652,57818:30653,57819:30651,57820:30663,57821:30669,57822:30679,57823:30682,57824:30684,57825:30691,57826:30702,57827:30716,57828:30732,57829:30738,57830:31014,57831:30752,57832:31018,57833:30789,57834:30862,57835:30836,57836:30854,57837:30844,57838:30874,57839:30860,57840:30883,57841:30901,57842:30890,57843:30895,57844:30929,57845:30918,57846:30923,57847:30932,57848:30910,57849:30908,57850:30917,57851:30922,57852:30956,57920:30951,57921:30938,57922:30973,57923:30964,57924:30983,57925:30994,57926:30993,57927:31001,57928:31020,57929:31019,57930:31040,57931:31072,57932:31063,57933:31071,57934:31066,57935:31061,57936:31059,57937:31098,57938:31103,57939:31114,57940:31133,57941:31143,57942:40779,57943:31146,57944:31150,57945:31155,57946:31161,57947:31162,57948:31177,57949:31189,57950:31207,57951:31212,57952:31201,57953:31203,57954:31240,57955:31245,57956:31256,57957:31257,57958:31264,57959:31263,57960:31104,57961:31281,57962:31291,57963:31294,57964:31287,57965:31299,57966:31319,57967:31305,57968:31329,57969:31330,57970:31337,57971:40861,57972:31344,57973:31353,57974:31357,57975:31368,57976:31383,57977:31381,57978:31384,57979:31382,57980:31401,57981:31432,57982:31408,57984:31414,57985:31429,57986:31428,57987:31423,57988:36995,57989:31431,57990:31434,57991:31437,57992:31439,57993:31445,57994:31443,57995:31449,57996:31450,57997:31453,57998:31457,57999:31458,58000:31462,58001:31469,58002:31472,58003:31490,58004:31503,58005:31498,58006:31494,58007:31539,58008:31512,58009:31513,58010:31518,58011:31541,58012:31528,58013:31542,58014:31568,58015:31610,58016:31492,58017:31565,58018:31499,58019:31564,58020:31557,58021:31605,58022:31589,58023:31604,58024:31591,58025:31600,58026:31601,58027:31596,58028:31598,58029:31645,58030:31640,58031:31647,58032:31629,58033:31644,58034:31642,58035:31627,58036:31634,58037:31631,58038:31581,58039:31641,58040:31691,58041:31681,58042:31692,58043:31695,58044:31668,58045:31686,58046:31709,58047:31721,58048:31761,58049:31764,58050:31718,58051:31717,58052:31840,58053:31744,58054:31751,58055:31763,58056:31731,58057:31735,58058:31767,58059:31757,58060:31734,58061:31779,58062:31783,58063:31786,58064:31775,58065:31799,58066:31787,58067:31805,58068:31820,58069:31811,58070:31828,58071:31823,58072:31808,58073:31824,58074:31832,58075:31839,58076:31844,58077:31830,58078:31845,58079:31852,58080:31861,58081:31875,58082:31888,58083:31908,58084:31917,58085:31906,58086:31915,58087:31905,58088:31912,58089:31923,58090:31922,58091:31921,58092:31918,58093:31929,58094:31933,58095:31936,58096:31941,58097:31938,58098:31960,58099:31954,58100:31964,58101:31970,58102:39739,58103:31983,58104:31986,58105:31988,58106:31990,58107:31994,58108:32006,58176:32002,58177:32028,58178:32021,58179:32010,58180:32069,58181:32075,58182:32046,58183:32050,58184:32063,58185:32053,58186:32070,58187:32115,58188:32086,58189:32078,58190:32114,58191:32104,58192:32110,58193:32079,58194:32099,58195:32147,58196:32137,58197:32091,58198:32143,58199:32125,58200:32155,58201:32186,58202:32174,58203:32163,58204:32181,58205:32199,58206:32189,58207:32171,58208:32317,58209:32162,58210:32175,58211:32220,58212:32184,58213:32159,58214:32176,58215:32216,58216:32221,58217:32228,58218:32222,58219:32251,58220:32242,58221:32225,58222:32261,58223:32266,58224:32291,58225:32289,58226:32274,58227:32305,58228:32287,58229:32265,58230:32267,58231:32290,58232:32326,58233:32358,58234:32315,58235:32309,58236:32313,58237:32323,58238:32311,58240:32306,58241:32314,58242:32359,58243:32349,58244:32342,58245:32350,58246:32345,58247:32346,58248:32377,58249:32362,58250:32361,58251:32380,58252:32379,58253:32387,58254:32213,58255:32381,58256:36782,58257:32383,58258:32392,58259:32393,58260:32396,58261:32402,58262:32400,58263:32403,58264:32404,58265:32406,58266:32398,58267:32411,58268:32412,58269:32568,58270:32570,58271:32581,58272:32588,58273:32589,58274:32590,58275:32592,58276:32593,58277:32597,58278:32596,58279:32600,58280:32607,58281:32608,58282:32616,58283:32617,58284:32615,58285:32632,58286:32642,58287:32646,58288:32643,58289:32648,58290:32647,58291:32652,58292:32660,58293:32670,58294:32669,58295:32666,58296:32675,58297:32687,58298:32690,58299:32697,58300:32686,58301:32694,58302:32696,58303:35697,58304:32709,58305:32710,58306:32714,58307:32725,58308:32724,58309:32737,58310:32742,58311:32745,58312:32755,58313:32761,58314:39132,58315:32774,58316:32772,58317:32779,58318:32786,58319:32792,58320:32793,58321:32796,58322:32801,58323:32808,58324:32831,58325:32827,58326:32842,58327:32838,58328:32850,58329:32856,58330:32858,58331:32863,58332:32866,58333:32872,58334:32883,58335:32882,58336:32880,58337:32886,58338:32889,58339:32893,58340:32895,58341:32900,58342:32902,58343:32901,58344:32923,58345:32915,58346:32922,58347:32941,58348:20880,58349:32940,58350:32987,58351:32997,58352:32985,58353:32989,58354:32964,58355:32986,58356:32982,58357:33033,58358:33007,58359:33009,58360:33051,58361:33065,58362:33059,58363:33071,58364:33099,58432:38539,58433:33094,58434:33086,58435:33107,58436:33105,58437:33020,58438:33137,58439:33134,58440:33125,58441:33126,58442:33140,58443:33155,58444:33160,58445:33162,58446:33152,58447:33154,58448:33184,58449:33173,58450:33188,58451:33187,58452:33119,58453:33171,58454:33193,58455:33200,58456:33205,58457:33214,58458:33208,58459:33213,58460:33216,58461:33218,58462:33210,58463:33225,58464:33229,58465:33233,58466:33241,58467:33240,58468:33224,58469:33242,58470:33247,58471:33248,58472:33255,58473:33274,58474:33275,58475:33278,58476:33281,58477:33282,58478:33285,58479:33287,58480:33290,58481:33293,58482:33296,58483:33302,58484:33321,58485:33323,58486:33336,58487:33331,58488:33344,58489:33369,58490:33368,58491:33373,58492:33370,58493:33375,58494:33380,58496:33378,58497:33384,58498:33386,58499:33387,58500:33326,58501:33393,58502:33399,58503:33400,58504:33406,58505:33421,58506:33426,58507:33451,58508:33439,58509:33467,58510:33452,58511:33505,58512:33507,58513:33503,58514:33490,58515:33524,58516:33523,58517:33530,58518:33683,58519:33539,58520:33531,58521:33529,58522:33502,58523:33542,58524:33500,58525:33545,58526:33497,58527:33589,58528:33588,58529:33558,58530:33586,58531:33585,58532:33600,58533:33593,58534:33616,58535:33605,58536:33583,58537:33579,58538:33559,58539:33560,58540:33669,58541:33690,58542:33706,58543:33695,58544:33698,58545:33686,58546:33571,58547:33678,58548:33671,58549:33674,58550:33660,58551:33717,58552:33651,58553:33653,58554:33696,58555:33673,58556:33704,58557:33780,58558:33811,58559:33771,58560:33742,58561:33789,58562:33795,58563:33752,58564:33803,58565:33729,58566:33783,58567:33799,58568:33760,58569:33778,58570:33805,58571:33826,58572:33824,58573:33725,58574:33848,58575:34054,58576:33787,58577:33901,58578:33834,58579:33852,58580:34138,58581:33924,58582:33911,58583:33899,58584:33965,58585:33902,58586:33922,58587:33897,58588:33862,58589:33836,58590:33903,58591:33913,58592:33845,58593:33994,58594:33890,58595:33977,58596:33983,58597:33951,58598:34009,58599:33997,58600:33979,58601:34010,58602:34000,58603:33985,58604:33990,58605:34006,58606:33953,58607:34081,58608:34047,58609:34036,58610:34071,58611:34072,58612:34092,58613:34079,58614:34069,58615:34068,58616:34044,58617:34112,58618:34147,58619:34136,58620:34120,58688:34113,58689:34306,58690:34123,58691:34133,58692:34176,58693:34212,58694:34184,58695:34193,58696:34186,58697:34216,58698:34157,58699:34196,58700:34203,58701:34282,58702:34183,58703:34204,58704:34167,58705:34174,58706:34192,58707:34249,58708:34234,58709:34255,58710:34233,58711:34256,58712:34261,58713:34269,58714:34277,58715:34268,58716:34297,58717:34314,58718:34323,58719:34315,58720:34302,58721:34298,58722:34310,58723:34338,58724:34330,58725:34352,58726:34367,58727:34381,58728:20053,58729:34388,58730:34399,58731:34407,58732:34417,58733:34451,58734:34467,58735:34473,58736:34474,58737:34443,58738:34444,58739:34486,58740:34479,58741:34500,58742:34502,58743:34480,58744:34505,58745:34851,58746:34475,58747:34516,58748:34526,58749:34537,58750:34540,58752:34527,58753:34523,58754:34543,58755:34578,58756:34566,58757:34568,58758:34560,58759:34563,58760:34555,58761:34577,58762:34569,58763:34573,58764:34553,58765:34570,58766:34612,58767:34623,58768:34615,58769:34619,58770:34597,58771:34601,58772:34586,58773:34656,58774:34655,58775:34680,58776:34636,58777:34638,58778:34676,58779:34647,58780:34664,58781:34670,58782:34649,58783:34643,58784:34659,58785:34666,58786:34821,58787:34722,58788:34719,58789:34690,58790:34735,58791:34763,58792:34749,58793:34752,58794:34768,58795:38614,58796:34731,58797:34756,58798:34739,58799:34759,58800:34758,58801:34747,58802:34799,58803:34802,58804:34784,58805:34831,58806:34829,58807:34814,58808:34806,58809:34807,58810:34830,58811:34770,58812:34833,58813:34838,58814:34837,58815:34850,58816:34849,58817:34865,58818:34870,58819:34873,58820:34855,58821:34875,58822:34884,58823:34882,58824:34898,58825:34905,58826:34910,58827:34914,58828:34923,58829:34945,58830:34942,58831:34974,58832:34933,58833:34941,58834:34997,58835:34930,58836:34946,58837:34967,58838:34962,58839:34990,58840:34969,58841:34978,58842:34957,58843:34980,58844:34992,58845:35007,58846:34993,58847:35011,58848:35012,58849:35028,58850:35032,58851:35033,58852:35037,58853:35065,58854:35074,58855:35068,58856:35060,58857:35048,58858:35058,58859:35076,58860:35084,58861:35082,58862:35091,58863:35139,58864:35102,58865:35109,58866:35114,58867:35115,58868:35137,58869:35140,58870:35131,58871:35126,58872:35128,58873:35148,58874:35101,58875:35168,58876:35166,58944:35174,58945:35172,58946:35181,58947:35178,58948:35183,58949:35188,58950:35191,58951:35198,58952:35203,58953:35208,58954:35210,58955:35219,58956:35224,58957:35233,58958:35241,58959:35238,58960:35244,58961:35247,58962:35250,58963:35258,58964:35261,58965:35263,58966:35264,58967:35290,58968:35292,58969:35293,58970:35303,58971:35316,58972:35320,58973:35331,58974:35350,58975:35344,58976:35340,58977:35355,58978:35357,58979:35365,58980:35382,58981:35393,58982:35419,58983:35410,58984:35398,58985:35400,58986:35452,58987:35437,58988:35436,58989:35426,58990:35461,58991:35458,58992:35460,58993:35496,58994:35489,58995:35473,58996:35493,58997:35494,58998:35482,58999:35491,59000:35524,59001:35533,59002:35522,59003:35546,59004:35563,59005:35571,59006:35559,59008:35556,59009:35569,59010:35604,59011:35552,59012:35554,59013:35575,59014:35550,59015:35547,59016:35596,59017:35591,59018:35610,59019:35553,59020:35606,59021:35600,59022:35607,59023:35616,59024:35635,59025:38827,59026:35622,59027:35627,59028:35646,59029:35624,59030:35649,59031:35660,59032:35663,59033:35662,59034:35657,59035:35670,59036:35675,59037:35674,59038:35691,59039:35679,59040:35692,59041:35695,59042:35700,59043:35709,59044:35712,59045:35724,59046:35726,59047:35730,59048:35731,59049:35734,59050:35737,59051:35738,59052:35898,59053:35905,59054:35903,59055:35912,59056:35916,59057:35918,59058:35920,59059:35925,59060:35938,59061:35948,59062:35960,59063:35962,59064:35970,59065:35977,59066:35973,59067:35978,59068:35981,59069:35982,59070:35988,59071:35964,59072:35992,59073:25117,59074:36013,59075:36010,59076:36029,59077:36018,59078:36019,59079:36014,59080:36022,59081:36040,59082:36033,59083:36068,59084:36067,59085:36058,59086:36093,59087:36090,59088:36091,59089:36100,59090:36101,59091:36106,59092:36103,59093:36111,59094:36109,59095:36112,59096:40782,59097:36115,59098:36045,59099:36116,59100:36118,59101:36199,59102:36205,59103:36209,59104:36211,59105:36225,59106:36249,59107:36290,59108:36286,59109:36282,59110:36303,59111:36314,59112:36310,59113:36300,59114:36315,59115:36299,59116:36330,59117:36331,59118:36319,59119:36323,59120:36348,59121:36360,59122:36361,59123:36351,59124:36381,59125:36382,59126:36368,59127:36383,59128:36418,59129:36405,59130:36400,59131:36404,59132:36426,59200:36423,59201:36425,59202:36428,59203:36432,59204:36424,59205:36441,59206:36452,59207:36448,59208:36394,59209:36451,59210:36437,59211:36470,59212:36466,59213:36476,59214:36481,59215:36487,59216:36485,59217:36484,59218:36491,59219:36490,59220:36499,59221:36497,59222:36500,59223:36505,59224:36522,59225:36513,59226:36524,59227:36528,59228:36550,59229:36529,59230:36542,59231:36549,59232:36552,59233:36555,59234:36571,59235:36579,59236:36604,59237:36603,59238:36587,59239:36606,59240:36618,59241:36613,59242:36629,59243:36626,59244:36633,59245:36627,59246:36636,59247:36639,59248:36635,59249:36620,59250:36646,59251:36659,59252:36667,59253:36665,59254:36677,59255:36674,59256:36670,59257:36684,59258:36681,59259:36678,59260:36686,59261:36695,59262:36700,59264:36706,59265:36707,59266:36708,59267:36764,59268:36767,59269:36771,59270:36781,59271:36783,59272:36791,59273:36826,59274:36837,59275:36834,59276:36842,59277:36847,59278:36999,59279:36852,59280:36869,59281:36857,59282:36858,59283:36881,59284:36885,59285:36897,59286:36877,59287:36894,59288:36886,59289:36875,59290:36903,59291:36918,59292:36917,59293:36921,59294:36856,59295:36943,59296:36944,59297:36945,59298:36946,59299:36878,59300:36937,59301:36926,59302:36950,59303:36952,59304:36958,59305:36968,59306:36975,59307:36982,59308:38568,59309:36978,59310:36994,59311:36989,59312:36993,59313:36992,59314:37002,59315:37001,59316:37007,59317:37032,59318:37039,59319:37041,59320:37045,59321:37090,59322:37092,59323:25160,59324:37083,59325:37122,59326:37138,59327:37145,59328:37170,59329:37168,59330:37194,59331:37206,59332:37208,59333:37219,59334:37221,59335:37225,59336:37235,59337:37234,59338:37259,59339:37257,59340:37250,59341:37282,59342:37291,59343:37295,59344:37290,59345:37301,59346:37300,59347:37306,59348:37312,59349:37313,59350:37321,59351:37323,59352:37328,59353:37334,59354:37343,59355:37345,59356:37339,59357:37372,59358:37365,59359:37366,59360:37406,59361:37375,59362:37396,59363:37420,59364:37397,59365:37393,59366:37470,59367:37463,59368:37445,59369:37449,59370:37476,59371:37448,59372:37525,59373:37439,59374:37451,59375:37456,59376:37532,59377:37526,59378:37523,59379:37531,59380:37466,59381:37583,59382:37561,59383:37559,59384:37609,59385:37647,59386:37626,59387:37700,59388:37678,59456:37657,59457:37666,59458:37658,59459:37667,59460:37690,59461:37685,59462:37691,59463:37724,59464:37728,59465:37756,59466:37742,59467:37718,59468:37808,59469:37804,59470:37805,59471:37780,59472:37817,59473:37846,59474:37847,59475:37864,59476:37861,59477:37848,59478:37827,59479:37853,59480:37840,59481:37832,59482:37860,59483:37914,59484:37908,59485:37907,59486:37891,59487:37895,59488:37904,59489:37942,59490:37931,59491:37941,59492:37921,59493:37946,59494:37953,59495:37970,59496:37956,59497:37979,59498:37984,59499:37986,59500:37982,59501:37994,59502:37417,59503:38000,59504:38005,59505:38007,59506:38013,59507:37978,59508:38012,59509:38014,59510:38017,59511:38015,59512:38274,59513:38279,59514:38282,59515:38292,59516:38294,59517:38296,59518:38297,59520:38304,59521:38312,59522:38311,59523:38317,59524:38332,59525:38331,59526:38329,59527:38334,59528:38346,59529:28662,59530:38339,59531:38349,59532:38348,59533:38357,59534:38356,59535:38358,59536:38364,59537:38369,59538:38373,59539:38370,59540:38433,59541:38440,59542:38446,59543:38447,59544:38466,59545:38476,59546:38479,59547:38475,59548:38519,59549:38492,59550:38494,59551:38493,59552:38495,59553:38502,59554:38514,59555:38508,59556:38541,59557:38552,59558:38549,59559:38551,59560:38570,59561:38567,59562:38577,59563:38578,59564:38576,59565:38580,59566:38582,59567:38584,59568:38585,59569:38606,59570:38603,59571:38601,59572:38605,59573:35149,59574:38620,59575:38669,59576:38613,59577:38649,59578:38660,59579:38662,59580:38664,59581:38675,59582:38670,59583:38673,59584:38671,59585:38678,59586:38681,59587:38692,59588:38698,59589:38704,59590:38713,59591:38717,59592:38718,59593:38724,59594:38726,59595:38728,59596:38722,59597:38729,59598:38748,59599:38752,59600:38756,59601:38758,59602:38760,59603:21202,59604:38763,59605:38769,59606:38777,59607:38789,59608:38780,59609:38785,59610:38778,59611:38790,59612:38795,59613:38799,59614:38800,59615:38812,59616:38824,59617:38822,59618:38819,59619:38835,59620:38836,59621:38851,59622:38854,59623:38856,59624:38859,59625:38876,59626:38893,59627:40783,59628:38898,59629:31455,59630:38902,59631:38901,59632:38927,59633:38924,59634:38968,59635:38948,59636:38945,59637:38967,59638:38973,59639:38982,59640:38991,59641:38987,59642:39019,59643:39023,59644:39024,59712:39025,59713:39028,59714:39027,59715:39082,59716:39087,59717:39089,59718:39094,59719:39108,59720:39107,59721:39110,59722:39145,59723:39147,59724:39171,59725:39177,59726:39186,59727:39188,59728:39192,59729:39201,59730:39197,59731:39198,59732:39204,59733:39200,59734:39212,59735:39214,59736:39229,59737:39230,59738:39234,59739:39241,59740:39237,59741:39248,59742:39243,59743:39249,59744:39250,59745:39244,59746:39253,59747:39319,59748:39320,59749:39333,59750:39341,59751:39342,59752:39356,59753:39391,59754:39387,59755:39389,59756:39384,59757:39377,59758:39405,59759:39406,59760:39409,59761:39410,59762:39419,59763:39416,59764:39425,59765:39439,59766:39429,59767:39394,59768:39449,59769:39467,59770:39479,59771:39493,59772:39490,59773:39488,59774:39491,59776:39486,59777:39509,59778:39501,59779:39515,59780:39511,59781:39519,59782:39522,59783:39525,59784:39524,59785:39529,59786:39531,59787:39530,59788:39597,59789:39600,59790:39612,59791:39616,59792:39631,59793:39633,59794:39635,59795:39636,59796:39646,59797:39647,59798:39650,59799:39651,59800:39654,59801:39663,59802:39659,59803:39662,59804:39668,59805:39665,59806:39671,59807:39675,59808:39686,59809:39704,59810:39706,59811:39711,59812:39714,59813:39715,59814:39717,59815:39719,59816:39720,59817:39721,59818:39722,59819:39726,59820:39727,59821:39730,59822:39748,59823:39747,59824:39759,59825:39757,59826:39758,59827:39761,59828:39768,59829:39796,59830:39827,59831:39811,59832:39825,59833:39830,59834:39831,59835:39839,59836:39840,59837:39848,59838:39860,59839:39872,59840:39882,59841:39865,59842:39878,59843:39887,59844:39889,59845:39890,59846:39907,59847:39906,59848:39908,59849:39892,59850:39905,59851:39994,59852:39922,59853:39921,59854:39920,59855:39957,59856:39956,59857:39945,59858:39955,59859:39948,59860:39942,59861:39944,59862:39954,59863:39946,59864:39940,59865:39982,59866:39963,59867:39973,59868:39972,59869:39969,59870:39984,59871:40007,59872:39986,59873:40006,59874:39998,59875:40026,59876:40032,59877:40039,59878:40054,59879:40056,59880:40167,59881:40172,59882:40176,59883:40201,59884:40200,59885:40171,59886:40195,59887:40198,59888:40234,59889:40230,59890:40367,59891:40227,59892:40223,59893:40260,59894:40213,59895:40210,59896:40257,59897:40255,59898:40254,59899:40262,59900:40264,59968:40285,59969:40286,59970:40292,59971:40273,59972:40272,59973:40281,59974:40306,59975:40329,59976:40327,59977:40363,59978:40303,59979:40314,59980:40346,59981:40356,59982:40361,59983:40370,59984:40388,59985:40385,59986:40379,59987:40376,59988:40378,59989:40390,59990:40399,59991:40386,59992:40409,59993:40403,59994:40440,59995:40422,59996:40429,59997:40431,59998:40445,59999:40474,60000:40475,60001:40478,60002:40565,60003:40569,60004:40573,60005:40577,60006:40584,60007:40587,60008:40588,60009:40594,60010:40597,60011:40593,60012:40605,60013:40613,60014:40617,60015:40632,60016:40618,60017:40621,60018:38753,60019:40652,60020:40654,60021:40655,60022:40656,60023:40660,60024:40668,60025:40670,60026:40669,60027:40672,60028:40677,60029:40680,60030:40687,60032:40692,60033:40694,60034:40695,60035:40697,60036:40699,60037:40700,60038:40701,60039:40711,60040:40712,60041:30391,60042:40725,60043:40737,60044:40748,60045:40766,60046:40778,60047:40786,60048:40788,60049:40803,60050:40799,60051:40800,60052:40801,60053:40806,60054:40807,60055:40812,60056:40810,60057:40823,60058:40818,60059:40822,60060:40853,60061:40860,60062:40864,60063:22575,60064:27079,60065:36953,60066:29796,60067:20956,60068:29081,60736:32394,60737:35100,60738:37704,60739:37512,60740:34012,60741:20425,60742:28859,60743:26161,60744:26824,60745:37625,60746:26363,60747:24389,60748:20008,60749:20193,60750:20220,60751:20224,60752:20227,60753:20281,60754:20310,60755:20370,60756:20362,60757:20378,60758:20372,60759:20429,60760:20544,60761:20514,60762:20479,60763:20510,60764:20550,60765:20592,60766:20546,60767:20628,60768:20724,60769:20696,60770:20810,60771:20836,60772:20893,60773:20926,60774:20972,60775:21013,60776:21148,60777:21158,60778:21184,60779:21211,60780:21248,60781:21255,60782:21284,60783:21362,60784:21395,60785:21426,60786:21469,60787:64014,60788:21660,60789:21642,60790:21673,60791:21759,60792:21894,60793:22361,60794:22373,60795:22444,60796:22472,60797:22471,60798:64015,60800:64016,60801:22686,60802:22706,60803:22795,60804:22867,60805:22875,60806:22877,60807:22883,60808:22948,60809:22970,60810:23382,60811:23488,60812:29999,60813:23512,60814:23532,60815:23582,60816:23718,60817:23738,60818:23797,60819:23847,60820:23891,60821:64017,60822:23874,60823:23917,60824:23992,60825:23993,60826:24016,60827:24353,60828:24372,60829:24423,60830:24503,60831:24542,60832:24669,60833:24709,60834:24714,60835:24798,60836:24789,60837:24864,60838:24818,60839:24849,60840:24887,60841:24880,60842:24984,60843:25107,60844:25254,60845:25589,60846:25696,60847:25757,60848:25806,60849:25934,60850:26112,60851:26133,60852:26171,60853:26121,60854:26158,60855:26142,60856:26148,60857:26213,60858:26199,60859:26201,60860:64018,60861:26227,60862:26265,60863:26272,60864:26290,60865:26303,60866:26362,60867:26382,60868:63785,60869:26470,60870:26555,60871:26706,60872:26560,60873:26625,60874:26692,60875:26831,60876:64019,60877:26984,60878:64020,60879:27032,60880:27106,60881:27184,60882:27243,60883:27206,60884:27251,60885:27262,60886:27362,60887:27364,60888:27606,60889:27711,60890:27740,60891:27782,60892:27759,60893:27866,60894:27908,60895:28039,60896:28015,60897:28054,60898:28076,60899:28111,60900:28152,60901:28146,60902:28156,60903:28217,60904:28252,60905:28199,60906:28220,60907:28351,60908:28552,60909:28597,60910:28661,60911:28677,60912:28679,60913:28712,60914:28805,60915:28843,60916:28943,60917:28932,60918:29020,60919:28998,60920:28999,60921:64021,60922:29121,60923:29182,60924:29361,60992:29374,60993:29476,60994:64022,60995:29559,60996:29629,60997:29641,60998:29654,60999:29667,61000:29650,61001:29703,61002:29685,61003:29734,61004:29738,61005:29737,61006:29742,61007:29794,61008:29833,61009:29855,61010:29953,61011:30063,61012:30338,61013:30364,61014:30366,61015:30363,61016:30374,61017:64023,61018:30534,61019:21167,61020:30753,61021:30798,61022:30820,61023:30842,61024:31024,61025:64024,61026:64025,61027:64026,61028:31124,61029:64027,61030:31131,61031:31441,61032:31463,61033:64028,61034:31467,61035:31646,61036:64029,61037:32072,61038:32092,61039:32183,61040:32160,61041:32214,61042:32338,61043:32583,61044:32673,61045:64030,61046:33537,61047:33634,61048:33663,61049:33735,61050:33782,61051:33864,61052:33972,61053:34131,61054:34137,61056:34155,61057:64031,61058:34224,61059:64032,61060:64033,61061:34823,61062:35061,61063:35346,61064:35383,61065:35449,61066:35495,61067:35518,61068:35551,61069:64034,61070:35574,61071:35667,61072:35711,61073:36080,61074:36084,61075:36114,61076:36214,61077:64035,61078:36559,61079:64036,61080:64037,61081:36967,61082:37086,61083:64038,61084:37141,61085:37159,61086:37338,61087:37335,61088:37342,61089:37357,61090:37358,61091:37348,61092:37349,61093:37382,61094:37392,61095:37386,61096:37434,61097:37440,61098:37436,61099:37454,61100:37465,61101:37457,61102:37433,61103:37479,61104:37543,61105:37495,61106:37496,61107:37607,61108:37591,61109:37593,61110:37584,61111:64039,61112:37589,61113:37600,61114:37587,61115:37669,61116:37665,61117:37627,61118:64040,61119:37662,61120:37631,61121:37661,61122:37634,61123:37744,61124:37719,61125:37796,61126:37830,61127:37854,61128:37880,61129:37937,61130:37957,61131:37960,61132:38290,61133:63964,61134:64041,61135:38557,61136:38575,61137:38707,61138:38715,61139:38723,61140:38733,61141:38735,61142:38737,61143:38741,61144:38999,61145:39013,61146:64042,61147:64043,61148:39207,61149:64044,61150:39326,61151:39502,61152:39641,61153:39644,61154:39797,61155:39794,61156:39823,61157:39857,61158:39867,61159:39936,61160:40304,61161:40299,61162:64045,61163:40473,61164:40657,61167:8560,61168:8561,61169:8562,61170:8563,61171:8564,61172:8565,61173:8566,61174:8567,61175:8568,61176:8569,61177:65506,61178:65508,61179:65287,61180:65282,64064:8560,64065:8561,64066:8562,64067:8563,64068:8564,64069:8565,64070:8566,64071:8567,64072:8568,64073:8569,64074:8544,64075:8545,64076:8546,64077:8547,64078:8548,64079:8549,64080:8550,64081:8551,64082:8552,64083:8553,64084:65506,64085:65508,64086:65287,64087:65282,64088:12849,64089:8470,64090:8481,64091:8757,64092:32394,64093:35100,64094:37704,64095:37512,64096:34012,64097:20425,64098:28859,64099:26161,64100:26824,64101:37625,64102:26363,64103:24389,64104:20008,64105:20193,64106:20220,64107:20224,64108:20227,64109:20281,64110:20310,64111:20370,64112:20362,64113:20378,64114:20372,64115:20429,64116:20544,64117:20514,64118:20479,64119:20510,64120:20550,64121:20592,64122:20546,64123:20628,64124:20724,64125:20696,64126:20810,64128:20836,64129:20893,64130:20926,64131:20972,64132:21013,64133:21148,64134:21158,64135:21184,64136:21211,64137:21248,64138:21255,64139:21284,64140:21362,64141:21395,64142:21426,64143:21469,64144:64014,64145:21660,64146:21642,64147:21673,64148:21759,64149:21894,64150:22361,64151:22373,64152:22444,64153:22472,64154:22471,64155:64015,64156:64016,64157:22686,64158:22706,64159:22795,64160:22867,64161:22875,64162:22877,64163:22883,64164:22948,64165:22970,64166:23382,64167:23488,64168:29999,64169:23512,64170:23532,64171:23582,64172:23718,64173:23738,64174:23797,64175:23847,64176:23891,64177:64017,64178:23874,64179:23917,64180:23992,64181:23993,64182:24016,64183:24353,64184:24372,64185:24423,64186:24503,64187:24542,64188:24669,64189:24709,64190:24714,64191:24798,64192:24789,64193:24864,64194:24818,64195:24849,64196:24887,64197:24880,64198:24984,64199:25107,64200:25254,64201:25589,64202:25696,64203:25757,64204:25806,64205:25934,64206:26112,64207:26133,64208:26171,64209:26121,64210:26158,64211:26142,64212:26148,64213:26213,64214:26199,64215:26201,64216:64018,64217:26227,64218:26265,64219:26272,64220:26290,64221:26303,64222:26362,64223:26382,64224:63785,64225:26470,64226:26555,64227:26706,64228:26560,64229:26625,64230:26692,64231:26831,64232:64019,64233:26984,64234:64020,64235:27032,64236:27106,64237:27184,64238:27243,64239:27206,64240:27251,64241:27262,64242:27362,64243:27364,64244:27606,64245:27711,64246:27740,64247:27782,64248:27759,64249:27866,64250:27908,64251:28039,64252:28015,64320:28054,64321:28076,64322:28111,64323:28152,64324:28146,64325:28156,64326:28217,64327:28252,64328:28199,64329:28220,64330:28351,64331:28552,64332:28597,64333:28661,64334:28677,64335:28679,64336:28712,64337:28805,64338:28843,64339:28943,64340:28932,64341:29020,64342:28998,64343:28999,64344:64021,64345:29121,64346:29182,64347:29361,64348:29374,64349:29476,64350:64022,64351:29559,64352:29629,64353:29641,64354:29654,64355:29667,64356:29650,64357:29703,64358:29685,64359:29734,64360:29738,64361:29737,64362:29742,64363:29794,64364:29833,64365:29855,64366:29953,64367:30063,64368:30338,64369:30364,64370:30366,64371:30363,64372:30374,64373:64023,64374:30534,64375:21167,64376:30753,64377:30798,64378:30820,64379:30842,64380:31024,64381:64024,64382:64025,64384:64026,64385:31124,64386:64027,64387:31131,64388:31441,64389:31463,64390:64028,64391:31467,64392:31646,64393:64029,64394:32072,64395:32092,64396:32183,64397:32160,64398:32214,64399:32338,64400:32583,64401:32673,64402:64030,64403:33537,64404:33634,64405:33663,64406:33735,64407:33782,64408:33864,64409:33972,64410:34131,64411:34137,64412:34155,64413:64031,64414:34224,64415:64032,64416:64033,64417:34823,64418:35061,64419:35346,64420:35383,64421:35449,64422:35495,64423:35518,64424:35551,64425:64034,64426:35574,64427:35667,64428:35711,64429:36080,64430:36084,64431:36114,64432:36214,64433:64035,64434:36559,64435:64036,64436:64037,64437:36967,64438:37086,64439:64038,64440:37141,64441:37159,64442:37338,64443:37335,64444:37342,64445:37357,64446:37358,64447:37348,64448:37349,64449:37382,64450:37392,64451:37386,64452:37434,64453:37440,64454:37436,64455:37454,64456:37465,64457:37457,64458:37433,64459:37479,64460:37543,64461:37495,64462:37496,64463:37607,64464:37591,64465:37593,64466:37584,64467:64039,64468:37589,64469:37600,64470:37587,64471:37669,64472:37665,64473:37627,64474:64040,64475:37662,64476:37631,64477:37661,64478:37634,64479:37744,64480:37719,64481:37796,64482:37830,64483:37854,64484:37880,64485:37937,64486:37957,64487:37960,64488:38290,64489:63964,64490:64041,64491:38557,64492:38575,64493:38707,64494:38715,64495:38723,64496:38733,64497:38735,64498:38737,64499:38741,64500:38999,64501:39013,64502:64042,64503:64043,64504:39207,64505:64044,64506:39326,64507:39502,64508:39641,64576:39644,64577:39797,64578:39794,64579:39823,64580:39857,64581:39867,64582:39936,64583:40304,64584:40299,64585:64045,64586:40473,64587:40657}","module.exports={8481:12288,8482:12289,8483:12290,8484:65292,8485:65294,8486:12539,8487:65306,8488:65307,8489:65311,8490:65281,8491:12443,8492:12444,8493:180,8494:65344,8495:168,8496:65342,8497:65507,8498:65343,8499:12541,8500:12542,8501:12445,8502:12446,8503:12291,8504:20189,8505:12293,8506:12294,8507:12295,8508:12540,8509:8213,8510:8208,8511:65295,8512:65340,8513:65374,8514:8741,8515:65372,8516:8230,8517:8229,8518:8216,8519:8217,8520:8220,8521:8221,8522:65288,8523:65289,8524:12308,8525:12309,8526:65339,8527:65341,8528:65371,8529:65373,8530:12296,8531:12297,8532:12298,8533:12299,8534:12300,8535:12301,8536:12302,8537:12303,8538:12304,8539:12305,8540:65291,8541:65293,8542:177,8543:215,8544:247,8545:65309,8546:8800,8547:65308,8548:65310,8549:8806,8550:8807,8551:8734,8552:8756,8553:9794,8554:9792,8555:176,8556:8242,8557:8243,8558:8451,8559:65509,8560:65284,8561:65504,8562:65505,8563:65285,8564:65283,8565:65286,8566:65290,8567:65312,8568:167,8569:9734,8570:9733,8571:9675,8572:9679,8573:9678,8574:9671,8737:9670,8738:9633,8739:9632,8740:9651,8741:9650,8742:9661,8743:9660,8744:8251,8745:12306,8746:8594,8747:8592,8748:8593,8749:8595,8750:12307,8762:8712,8763:8715,8764:8838,8765:8839,8766:8834,8767:8835,8768:8746,8769:8745,8778:8743,8779:8744,8780:65506,8781:8658,8782:8660,8783:8704,8784:8707,8796:8736,8797:8869,8798:8978,8799:8706,8800:8711,8801:8801,8802:8786,8803:8810,8804:8811,8805:8730,8806:8765,8807:8733,8808:8757,8809:8747,8810:8748,8818:8491,8819:8240,8820:9839,8821:9837,8822:9834,8823:8224,8824:8225,8825:182,8830:9711,9008:65296,9009:65297,9010:65298,9011:65299,9012:65300,9013:65301,9014:65302,9015:65303,9016:65304,9017:65305,9025:65313,9026:65314,9027:65315,9028:65316,9029:65317,9030:65318,9031:65319,9032:65320,9033:65321,9034:65322,9035:65323,9036:65324,9037:65325,9038:65326,9039:65327,9040:65328,9041:65329,9042:65330,9043:65331,9044:65332,9045:65333,9046:65334,9047:65335,9048:65336,9049:65337,9050:65338,9057:65345,9058:65346,9059:65347,9060:65348,9061:65349,9062:65350,9063:65351,9064:65352,9065:65353,9066:65354,9067:65355,9068:65356,9069:65357,9070:65358,9071:65359,9072:65360,9073:65361,9074:65362,9075:65363,9076:65364,9077:65365,9078:65366,9079:65367,9080:65368,9081:65369,9082:65370,9249:12353,9250:12354,9251:12355,9252:12356,9253:12357,9254:12358,9255:12359,9256:12360,9257:12361,9258:12362,9259:12363,9260:12364,9261:12365,9262:12366,9263:12367,9264:12368,9265:12369,9266:12370,9267:12371,9268:12372,9269:12373,9270:12374,9271:12375,9272:12376,9273:12377,9274:12378,9275:12379,9276:12380,9277:12381,9278:12382,9279:12383,9280:12384,9281:12385,9282:12386,9283:12387,9284:12388,9285:12389,9286:12390,9287:12391,9288:12392,9289:12393,9290:12394,9291:12395,9292:12396,9293:12397,9294:12398,9295:12399,9296:12400,9297:12401,9298:12402,9299:12403,9300:12404,9301:12405,9302:12406,9303:12407,9304:12408,9305:12409,9306:12410,9307:12411,9308:12412,9309:12413,9310:12414,9311:12415,9312:12416,9313:12417,9314:12418,9315:12419,9316:12420,9317:12421,9318:12422,9319:12423,9320:12424,9321:12425,9322:12426,9323:12427,9324:12428,9325:12429,9326:12430,9327:12431,9328:12432,9329:12433,9330:12434,9331:12435,9505:12449,9506:12450,9507:12451,9508:12452,9509:12453,9510:12454,9511:12455,9512:12456,9513:12457,9514:12458,9515:12459,9516:12460,9517:12461,9518:12462,9519:12463,9520:12464,9521:12465,9522:12466,9523:12467,9524:12468,9525:12469,9526:12470,9527:12471,9528:12472,9529:12473,9530:12474,9531:12475,9532:12476,9533:12477,9534:12478,9535:12479,9536:12480,9537:12481,9538:12482,9539:12483,9540:12484,9541:12485,9542:12486,9543:12487,9544:12488,9545:12489,9546:12490,9547:12491,9548:12492,9549:12493,9550:12494,9551:12495,9552:12496,9553:12497,9554:12498,9555:12499,9556:12500,9557:12501,9558:12502,9559:12503,9560:12504,9561:12505,9562:12506,9563:12507,9564:12508,9565:12509,9566:12510,9567:12511,9568:12512,9569:12513,9570:12514,9571:12515,9572:12516,9573:12517,9574:12518,9575:12519,9576:12520,9577:12521,9578:12522,9579:12523,9580:12524,9581:12525,9582:12526,9583:12527,9584:12528,9585:12529,9586:12530,9587:12531,9588:12532,9589:12533,9590:12534,9761:913,9762:914,9763:915,9764:916,9765:917,9766:918,9767:919,9768:920,9769:921,9770:922,9771:923,9772:924,9773:925,9774:926,9775:927,9776:928,9777:929,9778:931,9779:932,9780:933,9781:934,9782:935,9783:936,9784:937,9793:945,9794:946,9795:947,9796:948,9797:949,9798:950,9799:951,9800:952,9801:953,9802:954,9803:955,9804:956,9805:957,9806:958,9807:959,9808:960,9809:961,9810:963,9811:964,9812:965,9813:966,9814:967,9815:968,9816:969,10017:1040,10018:1041,10019:1042,10020:1043,10021:1044,10022:1045,10023:1025,10024:1046,10025:1047,10026:1048,10027:1049,10028:1050,10029:1051,10030:1052,10031:1053,10032:1054,10033:1055,10034:1056,10035:1057,10036:1058,10037:1059,10038:1060,10039:1061,10040:1062,10041:1063,10042:1064,10043:1065,10044:1066,10045:1067,10046:1068,10047:1069,10048:1070,10049:1071,10065:1072,10066:1073,10067:1074,10068:1075,10069:1076,10070:1077,10071:1105,10072:1078,10073:1079,10074:1080,10075:1081,10076:1082,10077:1083,10078:1084,10079:1085,10080:1086,10081:1087,10082:1088,10083:1089,10084:1090,10085:1091,10086:1092,10087:1093,10088:1094,10089:1095,10090:1096,10091:1097,10092:1098,10093:1099,10094:1100,10095:1101,10096:1102,10097:1103,10273:9472,10274:9474,10275:9484,10276:9488,10277:9496,10278:9492,10279:9500,10280:9516,10281:9508,10282:9524,10283:9532,10284:9473,10285:9475,10286:9487,10287:9491,10288:9499,10289:9495,10290:9507,10291:9523,10292:9515,10293:9531,10294:9547,10295:9504,10296:9519,10297:9512,10298:9527,10299:9535,10300:9501,10301:9520,10302:9509,10303:9528,10304:9538,11553:9312,11554:9313,11555:9314,11556:9315,11557:9316,11558:9317,11559:9318,11560:9319,11561:9320,11562:9321,11563:9322,11564:9323,11565:9324,11566:9325,11567:9326,11568:9327,11569:9328,11570:9329,11571:9330,11572:9331,11573:8544,11574:8545,11575:8546,11576:8547,11577:8548,11578:8549,11579:8550,11580:8551,11581:8552,11582:8553,11584:13129,11585:13076,11586:13090,11587:13133,11588:13080,11589:13095,11590:13059,11591:13110,11592:13137,11593:13143,11594:13069,11595:13094,11596:13091,11597:13099,11598:13130,11599:13115,11600:13212,11601:13213,11602:13214,11603:13198,11604:13199,11605:13252,11606:13217,11615:13179,11616:12317,11617:12319,11618:8470,11619:13261,11620:8481,11621:12964,11622:12965,11623:12966,11624:12967,11625:12968,11626:12849,11627:12850,11628:12857,11629:13182,11630:13181,11631:13180,11632:8786,11633:8801,11634:8747,11635:8750,11636:8721,11637:8730,11638:8869,11639:8736,11640:8735,11641:8895,11642:8757,11643:8745,11644:8746,12321:20124,12322:21782,12323:23043,12324:38463,12325:21696,12326:24859,12327:25384,12328:23030,12329:36898,12330:33909,12331:33564,12332:31312,12333:24746,12334:25569,12335:28197,12336:26093,12337:33894,12338:33446,12339:39925,12340:26771,12341:22311,12342:26017,12343:25201,12344:23451,12345:22992,12346:34427,12347:39156,12348:32098,12349:32190,12350:39822,12351:25110,12352:31903,12353:34999,12354:23433,12355:24245,12356:25353,12357:26263,12358:26696,12359:38343,12360:38797,12361:26447,12362:20197,12363:20234,12364:20301,12365:20381,12366:20553,12367:22258,12368:22839,12369:22996,12370:23041,12371:23561,12372:24799,12373:24847,12374:24944,12375:26131,12376:26885,12377:28858,12378:30031,12379:30064,12380:31227,12381:32173,12382:32239,12383:32963,12384:33806,12385:34915,12386:35586,12387:36949,12388:36986,12389:21307,12390:20117,12391:20133,12392:22495,12393:32946,12394:37057,12395:30959,12396:19968,12397:22769,12398:28322,12399:36920,12400:31282,12401:33576,12402:33419,12403:39983,12404:20801,12405:21360,12406:21693,12407:21729,12408:22240,12409:23035,12410:24341,12411:39154,12412:28139,12413:32996,12414:34093,12577:38498,12578:38512,12579:38560,12580:38907,12581:21515,12582:21491,12583:23431,12584:28879,12585:32701,12586:36802,12587:38632,12588:21359,12589:40284,12590:31418,12591:19985,12592:30867,12593:33276,12594:28198,12595:22040,12596:21764,12597:27421,12598:34074,12599:39995,12600:23013,12601:21417,12602:28006,12603:29916,12604:38287,12605:22082,12606:20113,12607:36939,12608:38642,12609:33615,12610:39180,12611:21473,12612:21942,12613:23344,12614:24433,12615:26144,12616:26355,12617:26628,12618:27704,12619:27891,12620:27945,12621:29787,12622:30408,12623:31310,12624:38964,12625:33521,12626:34907,12627:35424,12628:37613,12629:28082,12630:30123,12631:30410,12632:39365,12633:24742,12634:35585,12635:36234,12636:38322,12637:27022,12638:21421,12639:20870,12640:22290,12641:22576,12642:22852,12643:23476,12644:24310,12645:24616,12646:25513,12647:25588,12648:27839,12649:28436,12650:28814,12651:28948,12652:29017,12653:29141,12654:29503,12655:32257,12656:33398,12657:33489,12658:34199,12659:36960,12660:37467,12661:40219,12662:22633,12663:26044,12664:27738,12665:29989,12666:20985,12667:22830,12668:22885,12669:24448,12670:24540,12833:25276,12834:26106,12835:27178,12836:27431,12837:27572,12838:29579,12839:32705,12840:35158,12841:40236,12842:40206,12843:40644,12844:23713,12845:27798,12846:33659,12847:20740,12848:23627,12849:25014,12850:33222,12851:26742,12852:29281,12853:20057,12854:20474,12855:21368,12856:24681,12857:28201,12858:31311,12859:38899,12860:19979,12861:21270,12862:20206,12863:20309,12864:20285,12865:20385,12866:20339,12867:21152,12868:21487,12869:22025,12870:22799,12871:23233,12872:23478,12873:23521,12874:31185,12875:26247,12876:26524,12877:26550,12878:27468,12879:27827,12880:28779,12881:29634,12882:31117,12883:31166,12884:31292,12885:31623,12886:33457,12887:33499,12888:33540,12889:33655,12890:33775,12891:33747,12892:34662,12893:35506,12894:22057,12895:36008,12896:36838,12897:36942,12898:38686,12899:34442,12900:20420,12901:23784,12902:25105,12903:29273,12904:30011,12905:33253,12906:33469,12907:34558,12908:36032,12909:38597,12910:39187,12911:39381,12912:20171,12913:20250,12914:35299,12915:22238,12916:22602,12917:22730,12918:24315,12919:24555,12920:24618,12921:24724,12922:24674,12923:25040,12924:25106,12925:25296,12926:25913,13089:39745,13090:26214,13091:26800,13092:28023,13093:28784,13094:30028,13095:30342,13096:32117,13097:33445,13098:34809,13099:38283,13100:38542,13101:35997,13102:20977,13103:21182,13104:22806,13105:21683,13106:23475,13107:23830,13108:24936,13109:27010,13110:28079,13111:30861,13112:33995,13113:34903,13114:35442,13115:37799,13116:39608,13117:28012,13118:39336,13119:34521,13120:22435,13121:26623,13122:34510,13123:37390,13124:21123,13125:22151,13126:21508,13127:24275,13128:25313,13129:25785,13130:26684,13131:26680,13132:27579,13133:29554,13134:30906,13135:31339,13136:35226,13137:35282,13138:36203,13139:36611,13140:37101,13141:38307,13142:38548,13143:38761,13144:23398,13145:23731,13146:27005,13147:38989,13148:38990,13149:25499,13150:31520,13151:27179,13152:27263,13153:26806,13154:39949,13155:28511,13156:21106,13157:21917,13158:24688,13159:25324,13160:27963,13161:28167,13162:28369,13163:33883,13164:35088,13165:36676,13166:19988,13167:39993,13168:21494,13169:26907,13170:27194,13171:38788,13172:26666,13173:20828,13174:31427,13175:33970,13176:37340,13177:37772,13178:22107,13179:40232,13180:26658,13181:33541,13182:33841,13345:31909,13346:21000,13347:33477,13348:29926,13349:20094,13350:20355,13351:20896,13352:23506,13353:21002,13354:21208,13355:21223,13356:24059,13357:21914,13358:22570,13359:23014,13360:23436,13361:23448,13362:23515,13363:24178,13364:24185,13365:24739,13366:24863,13367:24931,13368:25022,13369:25563,13370:25954,13371:26577,13372:26707,13373:26874,13374:27454,13375:27475,13376:27735,13377:28450,13378:28567,13379:28485,13380:29872,13381:29976,13382:30435,13383:30475,13384:31487,13385:31649,13386:31777,13387:32233,13388:32566,13389:32752,13390:32925,13391:33382,13392:33694,13393:35251,13394:35532,13395:36011,13396:36996,13397:37969,13398:38291,13399:38289,13400:38306,13401:38501,13402:38867,13403:39208,13404:33304,13405:20024,13406:21547,13407:23736,13408:24012,13409:29609,13410:30284,13411:30524,13412:23721,13413:32747,13414:36107,13415:38593,13416:38929,13417:38996,13418:39000,13419:20225,13420:20238,13421:21361,13422:21916,13423:22120,13424:22522,13425:22855,13426:23305,13427:23492,13428:23696,13429:24076,13430:24190,13431:24524,13432:25582,13433:26426,13434:26071,13435:26082,13436:26399,13437:26827,13438:26820,13601:27231,13602:24112,13603:27589,13604:27671,13605:27773,13606:30079,13607:31048,13608:23395,13609:31232,13610:32000,13611:24509,13612:35215,13613:35352,13614:36020,13615:36215,13616:36556,13617:36637,13618:39138,13619:39438,13620:39740,13621:20096,13622:20605,13623:20736,13624:22931,13625:23452,13626:25135,13627:25216,13628:25836,13629:27450,13630:29344,13631:30097,13632:31047,13633:32681,13634:34811,13635:35516,13636:35696,13637:25516,13638:33738,13639:38816,13640:21513,13641:21507,13642:21931,13643:26708,13644:27224,13645:35440,13646:30759,13647:26485,13648:40653,13649:21364,13650:23458,13651:33050,13652:34384,13653:36870,13654:19992,13655:20037,13656:20167,13657:20241,13658:21450,13659:21560,13660:23470,13661:24339,13662:24613,13663:25937,13664:26429,13665:27714,13666:27762,13667:27875,13668:28792,13669:29699,13670:31350,13671:31406,13672:31496,13673:32026,13674:31998,13675:32102,13676:26087,13677:29275,13678:21435,13679:23621,13680:24040,13681:25298,13682:25312,13683:25369,13684:28192,13685:34394,13686:35377,13687:36317,13688:37624,13689:28417,13690:31142,13691:39770,13692:20136,13693:20139,13694:20140,13857:20379,13858:20384,13859:20689,13860:20807,13861:31478,13862:20849,13863:20982,13864:21332,13865:21281,13866:21375,13867:21483,13868:21932,13869:22659,13870:23777,13871:24375,13872:24394,13873:24623,13874:24656,13875:24685,13876:25375,13877:25945,13878:27211,13879:27841,13880:29378,13881:29421,13882:30703,13883:33016,13884:33029,13885:33288,13886:34126,13887:37111,13888:37857,13889:38911,13890:39255,13891:39514,13892:20208,13893:20957,13894:23597,13895:26241,13896:26989,13897:23616,13898:26354,13899:26997,13900:29577,13901:26704,13902:31873,13903:20677,13904:21220,13905:22343,13906:24062,13907:37670,13908:26020,13909:27427,13910:27453,13911:29748,13912:31105,13913:31165,13914:31563,13915:32202,13916:33465,13917:33740,13918:34943,13919:35167,13920:35641,13921:36817,13922:37329,13923:21535,13924:37504,13925:20061,13926:20534,13927:21477,13928:21306,13929:29399,13930:29590,13931:30697,13932:33510,13933:36527,13934:39366,13935:39368,13936:39378,13937:20855,13938:24858,13939:34398,13940:21936,13941:31354,13942:20598,13943:23507,13944:36935,13945:38533,13946:20018,13947:27355,13948:37351,13949:23633,13950:23624,14113:25496,14114:31391,14115:27795,14116:38772,14117:36705,14118:31402,14119:29066,14120:38536,14121:31874,14122:26647,14123:32368,14124:26705,14125:37740,14126:21234,14127:21531,14128:34219,14129:35347,14130:32676,14131:36557,14132:37089,14133:21350,14134:34952,14135:31041,14136:20418,14137:20670,14138:21009,14139:20804,14140:21843,14141:22317,14142:29674,14143:22411,14144:22865,14145:24418,14146:24452,14147:24693,14148:24950,14149:24935,14150:25001,14151:25522,14152:25658,14153:25964,14154:26223,14155:26690,14156:28179,14157:30054,14158:31293,14159:31995,14160:32076,14161:32153,14162:32331,14163:32619,14164:33550,14165:33610,14166:34509,14167:35336,14168:35427,14169:35686,14170:36605,14171:38938,14172:40335,14173:33464,14174:36814,14175:39912,14176:21127,14177:25119,14178:25731,14179:28608,14180:38553,14181:26689,14182:20625,14183:27424,14184:27770,14185:28500,14186:31348,14187:32080,14188:34880,14189:35363,14190:26376,14191:20214,14192:20537,14193:20518,14194:20581,14195:20860,14196:21048,14197:21091,14198:21927,14199:22287,14200:22533,14201:23244,14202:24314,14203:25010,14204:25080,14205:25331,14206:25458,14369:26908,14370:27177,14371:29309,14372:29356,14373:29486,14374:30740,14375:30831,14376:32121,14377:30476,14378:32937,14379:35211,14380:35609,14381:36066,14382:36562,14383:36963,14384:37749,14385:38522,14386:38997,14387:39443,14388:40568,14389:20803,14390:21407,14391:21427,14392:24187,14393:24358,14394:28187,14395:28304,14396:29572,14397:29694,14398:32067,14399:33335,14400:35328,14401:35578,14402:38480,14403:20046,14404:20491,14405:21476,14406:21628,14407:22266,14408:22993,14409:23396,14410:24049,14411:24235,14412:24359,14413:25144,14414:25925,14415:26543,14416:28246,14417:29392,14418:31946,14419:34996,14420:32929,14421:32993,14422:33776,14423:34382,14424:35463,14425:36328,14426:37431,14427:38599,14428:39015,14429:40723,14430:20116,14431:20114,14432:20237,14433:21320,14434:21577,14435:21566,14436:23087,14437:24460,14438:24481,14439:24735,14440:26791,14441:27278,14442:29786,14443:30849,14444:35486,14445:35492,14446:35703,14447:37264,14448:20062,14449:39881,14450:20132,14451:20348,14452:20399,14453:20505,14454:20502,14455:20809,14456:20844,14457:21151,14458:21177,14459:21246,14460:21402,14461:21475,14462:21521,14625:21518,14626:21897,14627:22353,14628:22434,14629:22909,14630:23380,14631:23389,14632:23439,14633:24037,14634:24039,14635:24055,14636:24184,14637:24195,14638:24218,14639:24247,14640:24344,14641:24658,14642:24908,14643:25239,14644:25304,14645:25511,14646:25915,14647:26114,14648:26179,14649:26356,14650:26477,14651:26657,14652:26775,14653:27083,14654:27743,14655:27946,14656:28009,14657:28207,14658:28317,14659:30002,14660:30343,14661:30828,14662:31295,14663:31968,14664:32005,14665:32024,14666:32094,14667:32177,14668:32789,14669:32771,14670:32943,14671:32945,14672:33108,14673:33167,14674:33322,14675:33618,14676:34892,14677:34913,14678:35611,14679:36002,14680:36092,14681:37066,14682:37237,14683:37489,14684:30783,14685:37628,14686:38308,14687:38477,14688:38917,14689:39321,14690:39640,14691:40251,14692:21083,14693:21163,14694:21495,14695:21512,14696:22741,14697:25335,14698:28640,14699:35946,14700:36703,14701:40633,14702:20811,14703:21051,14704:21578,14705:22269,14706:31296,14707:37239,14708:40288,14709:40658,14710:29508,14711:28425,14712:33136,14713:29969,14714:24573,14715:24794,14716:39592,14717:29403,14718:36796,14881:27492,14882:38915,14883:20170,14884:22256,14885:22372,14886:22718,14887:23130,14888:24680,14889:25031,14890:26127,14891:26118,14892:26681,14893:26801,14894:28151,14895:30165,14896:32058,14897:33390,14898:39746,14899:20123,14900:20304,14901:21449,14902:21766,14903:23919,14904:24038,14905:24046,14906:26619,14907:27801,14908:29811,14909:30722,14910:35408,14911:37782,14912:35039,14913:22352,14914:24231,14915:25387,14916:20661,14917:20652,14918:20877,14919:26368,14920:21705,14921:22622,14922:22971,14923:23472,14924:24425,14925:25165,14926:25505,14927:26685,14928:27507,14929:28168,14930:28797,14931:37319,14932:29312,14933:30741,14934:30758,14935:31085,14936:25998,14937:32048,14938:33756,14939:35009,14940:36617,14941:38555,14942:21092,14943:22312,14944:26448,14945:32618,14946:36001,14947:20916,14948:22338,14949:38442,14950:22586,14951:27018,14952:32948,14953:21682,14954:23822,14955:22524,14956:30869,14957:40442,14958:20316,14959:21066,14960:21643,14961:25662,14962:26152,14963:26388,14964:26613,14965:31364,14966:31574,14967:32034,14968:37679,14969:26716,14970:39853,14971:31545,14972:21273,14973:20874,14974:21047,15137:23519,15138:25334,15139:25774,15140:25830,15141:26413,15142:27578,15143:34217,15144:38609,15145:30352,15146:39894,15147:25420,15148:37638,15149:39851,15150:30399,15151:26194,15152:19977,15153:20632,15154:21442,15155:23665,15156:24808,15157:25746,15158:25955,15159:26719,15160:29158,15161:29642,15162:29987,15163:31639,15164:32386,15165:34453,15166:35715,15167:36059,15168:37240,15169:39184,15170:26028,15171:26283,15172:27531,15173:20181,15174:20180,15175:20282,15176:20351,15177:21050,15178:21496,15179:21490,15180:21987,15181:22235,15182:22763,15183:22987,15184:22985,15185:23039,15186:23376,15187:23629,15188:24066,15189:24107,15190:24535,15191:24605,15192:25351,15193:25903,15194:23388,15195:26031,15196:26045,15197:26088,15198:26525,15199:27490,15200:27515,15201:27663,15202:29509,15203:31049,15204:31169,15205:31992,15206:32025,15207:32043,15208:32930,15209:33026,15210:33267,15211:35222,15212:35422,15213:35433,15214:35430,15215:35468,15216:35566,15217:36039,15218:36060,15219:38604,15220:39164,15221:27503,15222:20107,15223:20284,15224:20365,15225:20816,15226:23383,15227:23546,15228:24904,15229:25345,15230:26178,15393:27425,15394:28363,15395:27835,15396:29246,15397:29885,15398:30164,15399:30913,15400:31034,15401:32780,15402:32819,15403:33258,15404:33940,15405:36766,15406:27728,15407:40575,15408:24335,15409:35672,15410:40235,15411:31482,15412:36600,15413:23437,15414:38635,15415:19971,15416:21489,15417:22519,15418:22833,15419:23241,15420:23460,15421:24713,15422:28287,15423:28422,15424:30142,15425:36074,15426:23455,15427:34048,15428:31712,15429:20594,15430:26612,15431:33437,15432:23649,15433:34122,15434:32286,15435:33294,15436:20889,15437:23556,15438:25448,15439:36198,15440:26012,15441:29038,15442:31038,15443:32023,15444:32773,15445:35613,15446:36554,15447:36974,15448:34503,15449:37034,15450:20511,15451:21242,15452:23610,15453:26451,15454:28796,15455:29237,15456:37196,15457:37320,15458:37675,15459:33509,15460:23490,15461:24369,15462:24825,15463:20027,15464:21462,15465:23432,15466:25163,15467:26417,15468:27530,15469:29417,15470:29664,15471:31278,15472:33131,15473:36259,15474:37202,15475:39318,15476:20754,15477:21463,15478:21610,15479:23551,15480:25480,15481:27193,15482:32172,15483:38656,15484:22234,15485:21454,15486:21608,15649:23447,15650:23601,15651:24030,15652:20462,15653:24833,15654:25342,15655:27954,15656:31168,15657:31179,15658:32066,15659:32333,15660:32722,15661:33261,15662:33311,15663:33936,15664:34886,15665:35186,15666:35728,15667:36468,15668:36655,15669:36913,15670:37195,15671:37228,15672:38598,15673:37276,15674:20160,15675:20303,15676:20805,15677:21313,15678:24467,15679:25102,15680:26580,15681:27713,15682:28171,15683:29539,15684:32294,15685:37325,15686:37507,15687:21460,15688:22809,15689:23487,15690:28113,15691:31069,15692:32302,15693:31899,15694:22654,15695:29087,15696:20986,15697:34899,15698:36848,15699:20426,15700:23803,15701:26149,15702:30636,15703:31459,15704:33308,15705:39423,15706:20934,15707:24490,15708:26092,15709:26991,15710:27529,15711:28147,15712:28310,15713:28516,15714:30462,15715:32020,15716:24033,15717:36981,15718:37255,15719:38918,15720:20966,15721:21021,15722:25152,15723:26257,15724:26329,15725:28186,15726:24246,15727:32210,15728:32626,15729:26360,15730:34223,15731:34295,15732:35576,15733:21161,15734:21465,15735:22899,15736:24207,15737:24464,15738:24661,15739:37604,15740:38500,15741:20663,15742:20767,15905:21213,15906:21280,15907:21319,15908:21484,15909:21736,15910:21830,15911:21809,15912:22039,15913:22888,15914:22974,15915:23100,15916:23477,15917:23558,15918:23567,15919:23569,15920:23578,15921:24196,15922:24202,15923:24288,15924:24432,15925:25215,15926:25220,15927:25307,15928:25484,15929:25463,15930:26119,15931:26124,15932:26157,15933:26230,15934:26494,15935:26786,15936:27167,15937:27189,15938:27836,15939:28040,15940:28169,15941:28248,15942:28988,15943:28966,15944:29031,15945:30151,15946:30465,15947:30813,15948:30977,15949:31077,15950:31216,15951:31456,15952:31505,15953:31911,15954:32057,15955:32918,15956:33750,15957:33931,15958:34121,15959:34909,15960:35059,15961:35359,15962:35388,15963:35412,15964:35443,15965:35937,15966:36062,15967:37284,15968:37478,15969:37758,15970:37912,15971:38556,15972:38808,15973:19978,15974:19976,15975:19998,15976:20055,15977:20887,15978:21104,15979:22478,15980:22580,15981:22732,15982:23330,15983:24120,15984:24773,15985:25854,15986:26465,15987:26454,15988:27972,15989:29366,15990:30067,15991:31331,15992:33976,15993:35698,15994:37304,15995:37664,15996:22065,15997:22516,15998:39166,16161:25325,16162:26893,16163:27542,16164:29165,16165:32340,16166:32887,16167:33394,16168:35302,16169:39135,16170:34645,16171:36785,16172:23611,16173:20280,16174:20449,16175:20405,16176:21767,16177:23072,16178:23517,16179:23529,16180:24515,16181:24910,16182:25391,16183:26032,16184:26187,16185:26862,16186:27035,16187:28024,16188:28145,16189:30003,16190:30137,16191:30495,16192:31070,16193:31206,16194:32051,16195:33251,16196:33455,16197:34218,16198:35242,16199:35386,16200:36523,16201:36763,16202:36914,16203:37341,16204:38663,16205:20154,16206:20161,16207:20995,16208:22645,16209:22764,16210:23563,16211:29978,16212:23613,16213:33102,16214:35338,16215:36805,16216:38499,16217:38765,16218:31525,16219:35535,16220:38920,16221:37218,16222:22259,16223:21416,16224:36887,16225:21561,16226:22402,16227:24101,16228:25512,16229:27700,16230:28810,16231:30561,16232:31883,16233:32736,16234:34928,16235:36930,16236:37204,16237:37648,16238:37656,16239:38543,16240:29790,16241:39620,16242:23815,16243:23913,16244:25968,16245:26530,16246:36264,16247:38619,16248:25454,16249:26441,16250:26905,16251:33733,16252:38935,16253:38592,16254:35070,16417:28548,16418:25722,16419:23544,16420:19990,16421:28716,16422:30045,16423:26159,16424:20932,16425:21046,16426:21218,16427:22995,16428:24449,16429:24615,16430:25104,16431:25919,16432:25972,16433:26143,16434:26228,16435:26866,16436:26646,16437:27491,16438:28165,16439:29298,16440:29983,16441:30427,16442:31934,16443:32854,16444:22768,16445:35069,16446:35199,16447:35488,16448:35475,16449:35531,16450:36893,16451:37266,16452:38738,16453:38745,16454:25993,16455:31246,16456:33030,16457:38587,16458:24109,16459:24796,16460:25114,16461:26021,16462:26132,16463:26512,16464:30707,16465:31309,16466:31821,16467:32318,16468:33034,16469:36012,16470:36196,16471:36321,16472:36447,16473:30889,16474:20999,16475:25305,16476:25509,16477:25666,16478:25240,16479:35373,16480:31363,16481:31680,16482:35500,16483:38634,16484:32118,16485:33292,16486:34633,16487:20185,16488:20808,16489:21315,16490:21344,16491:23459,16492:23554,16493:23574,16494:24029,16495:25126,16496:25159,16497:25776,16498:26643,16499:26676,16500:27849,16501:27973,16502:27927,16503:26579,16504:28508,16505:29006,16506:29053,16507:26059,16508:31359,16509:31661,16510:32218,16673:32330,16674:32680,16675:33146,16676:33307,16677:33337,16678:34214,16679:35438,16680:36046,16681:36341,16682:36984,16683:36983,16684:37549,16685:37521,16686:38275,16687:39854,16688:21069,16689:21892,16690:28472,16691:28982,16692:20840,16693:31109,16694:32341,16695:33203,16696:31950,16697:22092,16698:22609,16699:23720,16700:25514,16701:26366,16702:26365,16703:26970,16704:29401,16705:30095,16706:30094,16707:30990,16708:31062,16709:31199,16710:31895,16711:32032,16712:32068,16713:34311,16714:35380,16715:38459,16716:36961,16717:40736,16718:20711,16719:21109,16720:21452,16721:21474,16722:20489,16723:21930,16724:22766,16725:22863,16726:29245,16727:23435,16728:23652,16729:21277,16730:24803,16731:24819,16732:25436,16733:25475,16734:25407,16735:25531,16736:25805,16737:26089,16738:26361,16739:24035,16740:27085,16741:27133,16742:28437,16743:29157,16744:20105,16745:30185,16746:30456,16747:31379,16748:31967,16749:32207,16750:32156,16751:32865,16752:33609,16753:33624,16754:33900,16755:33980,16756:34299,16757:35013,16758:36208,16759:36865,16760:36973,16761:37783,16762:38684,16763:39442,16764:20687,16765:22679,16766:24974,16929:33235,16930:34101,16931:36104,16932:36896,16933:20419,16934:20596,16935:21063,16936:21363,16937:24687,16938:25417,16939:26463,16940:28204,16941:36275,16942:36895,16943:20439,16944:23646,16945:36042,16946:26063,16947:32154,16948:21330,16949:34966,16950:20854,16951:25539,16952:23384,16953:23403,16954:23562,16955:25613,16956:26449,16957:36956,16958:20182,16959:22810,16960:22826,16961:27760,16962:35409,16963:21822,16964:22549,16965:22949,16966:24816,16967:25171,16968:26561,16969:33333,16970:26965,16971:38464,16972:39364,16973:39464,16974:20307,16975:22534,16976:23550,16977:32784,16978:23729,16979:24111,16980:24453,16981:24608,16982:24907,16983:25140,16984:26367,16985:27888,16986:28382,16987:32974,16988:33151,16989:33492,16990:34955,16991:36024,16992:36864,16993:36910,16994:38538,16995:40667,16996:39899,16997:20195,16998:21488,16999:22823,17000:31532,17001:37261,17002:38988,17003:40441,17004:28381,17005:28711,17006:21331,17007:21828,17008:23429,17009:25176,17010:25246,17011:25299,17012:27810,17013:28655,17014:29730,17015:35351,17016:37944,17017:28609,17018:35582,17019:33592,17020:20967,17021:34552,17022:21482,17185:21481,17186:20294,17187:36948,17188:36784,17189:22890,17190:33073,17191:24061,17192:31466,17193:36799,17194:26842,17195:35895,17196:29432,17197:40008,17198:27197,17199:35504,17200:20025,17201:21336,17202:22022,17203:22374,17204:25285,17205:25506,17206:26086,17207:27470,17208:28129,17209:28251,17210:28845,17211:30701,17212:31471,17213:31658,17214:32187,17215:32829,17216:32966,17217:34507,17218:35477,17219:37723,17220:22243,17221:22727,17222:24382,17223:26029,17224:26262,17225:27264,17226:27573,17227:30007,17228:35527,17229:20516,17230:30693,17231:22320,17232:24347,17233:24677,17234:26234,17235:27744,17236:30196,17237:31258,17238:32622,17239:33268,17240:34584,17241:36933,17242:39347,17243:31689,17244:30044,17245:31481,17246:31569,17247:33988,17248:36880,17249:31209,17250:31378,17251:33590,17252:23265,17253:30528,17254:20013,17255:20210,17256:23449,17257:24544,17258:25277,17259:26172,17260:26609,17261:27880,17262:34411,17263:34935,17264:35387,17265:37198,17266:37619,17267:39376,17268:27159,17269:28710,17270:29482,17271:33511,17272:33879,17273:36015,17274:19969,17275:20806,17276:20939,17277:21899,17278:23541,17441:24086,17442:24115,17443:24193,17444:24340,17445:24373,17446:24427,17447:24500,17448:25074,17449:25361,17450:26274,17451:26397,17452:28526,17453:29266,17454:30010,17455:30522,17456:32884,17457:33081,17458:33144,17459:34678,17460:35519,17461:35548,17462:36229,17463:36339,17464:37530,17465:38263,17466:38914,17467:40165,17468:21189,17469:25431,17470:30452,17471:26389,17472:27784,17473:29645,17474:36035,17475:37806,17476:38515,17477:27941,17478:22684,17479:26894,17480:27084,17481:36861,17482:37786,17483:30171,17484:36890,17485:22618,17486:26626,17487:25524,17488:27131,17489:20291,17490:28460,17491:26584,17492:36795,17493:34086,17494:32180,17495:37716,17496:26943,17497:28528,17498:22378,17499:22775,17500:23340,17501:32044,17502:29226,17503:21514,17504:37347,17505:40372,17506:20141,17507:20302,17508:20572,17509:20597,17510:21059,17511:35998,17512:21576,17513:22564,17514:23450,17515:24093,17516:24213,17517:24237,17518:24311,17519:24351,17520:24716,17521:25269,17522:25402,17523:25552,17524:26799,17525:27712,17526:30855,17527:31118,17528:31243,17529:32224,17530:33351,17531:35330,17532:35558,17533:36420,17534:36883,17697:37048,17698:37165,17699:37336,17700:40718,17701:27877,17702:25688,17703:25826,17704:25973,17705:28404,17706:30340,17707:31515,17708:36969,17709:37841,17710:28346,17711:21746,17712:24505,17713:25764,17714:36685,17715:36845,17716:37444,17717:20856,17718:22635,17719:22825,17720:23637,17721:24215,17722:28155,17723:32399,17724:29980,17725:36028,17726:36578,17727:39003,17728:28857,17729:20253,17730:27583,17731:28593,17732:30000,17733:38651,17734:20814,17735:21520,17736:22581,17737:22615,17738:22956,17739:23648,17740:24466,17741:26007,17742:26460,17743:28193,17744:30331,17745:33759,17746:36077,17747:36884,17748:37117,17749:37709,17750:30757,17751:30778,17752:21162,17753:24230,17754:22303,17755:22900,17756:24594,17757:20498,17758:20826,17759:20908,17760:20941,17761:20992,17762:21776,17763:22612,17764:22616,17765:22871,17766:23445,17767:23798,17768:23947,17769:24764,17770:25237,17771:25645,17772:26481,17773:26691,17774:26812,17775:26847,17776:30423,17777:28120,17778:28271,17779:28059,17780:28783,17781:29128,17782:24403,17783:30168,17784:31095,17785:31561,17786:31572,17787:31570,17788:31958,17789:32113,17790:21040,17953:33891,17954:34153,17955:34276,17956:35342,17957:35588,17958:35910,17959:36367,17960:36867,17961:36879,17962:37913,17963:38518,17964:38957,17965:39472,17966:38360,17967:20685,17968:21205,17969:21516,17970:22530,17971:23566,17972:24999,17973:25758,17974:27934,17975:30643,17976:31461,17977:33012,17978:33796,17979:36947,17980:37509,17981:23776,17982:40199,17983:21311,17984:24471,17985:24499,17986:28060,17987:29305,17988:30563,17989:31167,17990:31716,17991:27602,17992:29420,17993:35501,17994:26627,17995:27233,17996:20984,17997:31361,17998:26932,17999:23626,18000:40182,18001:33515,18002:23493,18003:37193,18004:28702,18005:22136,18006:23663,18007:24775,18008:25958,18009:27788,18010:35930,18011:36929,18012:38931,18013:21585,18014:26311,18015:37389,18016:22856,18017:37027,18018:20869,18019:20045,18020:20970,18021:34201,18022:35598,18023:28760,18024:25466,18025:37707,18026:26978,18027:39348,18028:32260,18029:30071,18030:21335,18031:26976,18032:36575,18033:38627,18034:27741,18035:20108,18036:23612,18037:24336,18038:36841,18039:21250,18040:36049,18041:32905,18042:34425,18043:24319,18044:26085,18045:20083,18046:20837,18209:22914,18210:23615,18211:38894,18212:20219,18213:22922,18214:24525,18215:35469,18216:28641,18217:31152,18218:31074,18219:23527,18220:33905,18221:29483,18222:29105,18223:24180,18224:24565,18225:25467,18226:25754,18227:29123,18228:31896,18229:20035,18230:24316,18231:20043,18232:22492,18233:22178,18234:24745,18235:28611,18236:32013,18237:33021,18238:33075,18239:33215,18240:36786,18241:35223,18242:34468,18243:24052,18244:25226,18245:25773,18246:35207,18247:26487,18248:27874,18249:27966,18250:29750,18251:30772,18252:23110,18253:32629,18254:33453,18255:39340,18256:20467,18257:24259,18258:25309,18259:25490,18260:25943,18261:26479,18262:30403,18263:29260,18264:32972,18265:32954,18266:36649,18267:37197,18268:20493,18269:22521,18270:23186,18271:26757,18272:26995,18273:29028,18274:29437,18275:36023,18276:22770,18277:36064,18278:38506,18279:36889,18280:34687,18281:31204,18282:30695,18283:33833,18284:20271,18285:21093,18286:21338,18287:25293,18288:26575,18289:27850,18290:30333,18291:31636,18292:31893,18293:33334,18294:34180,18295:36843,18296:26333,18297:28448,18298:29190,18299:32283,18300:33707,18301:39361,18302:40614,18465:20989,18466:31665,18467:30834,18468:31672,18469:32903,18470:31560,18471:27368,18472:24161,18473:32908,18474:30033,18475:30048,18476:20843,18477:37474,18478:28300,18479:30330,18480:37271,18481:39658,18482:20240,18483:32624,18484:25244,18485:31567,18486:38309,18487:40169,18488:22138,18489:22617,18490:34532,18491:38588,18492:20276,18493:21028,18494:21322,18495:21453,18496:21467,18497:24070,18498:25644,18499:26001,18500:26495,18501:27710,18502:27726,18503:29256,18504:29359,18505:29677,18506:30036,18507:32321,18508:33324,18509:34281,18510:36009,18511:31684,18512:37318,18513:29033,18514:38930,18515:39151,18516:25405,18517:26217,18518:30058,18519:30436,18520:30928,18521:34115,18522:34542,18523:21290,18524:21329,18525:21542,18526:22915,18527:24199,18528:24444,18529:24754,18530:25161,18531:25209,18532:25259,18533:26000,18534:27604,18535:27852,18536:30130,18537:30382,18538:30865,18539:31192,18540:32203,18541:32631,18542:32933,18543:34987,18544:35513,18545:36027,18546:36991,18547:38750,18548:39131,18549:27147,18550:31800,18551:20633,18552:23614,18553:24494,18554:26503,18555:27608,18556:29749,18557:30473,18558:32654,18721:40763,18722:26570,18723:31255,18724:21305,18725:30091,18726:39661,18727:24422,18728:33181,18729:33777,18730:32920,18731:24380,18732:24517,18733:30050,18734:31558,18735:36924,18736:26727,18737:23019,18738:23195,18739:32016,18740:30334,18741:35628,18742:20469,18743:24426,18744:27161,18745:27703,18746:28418,18747:29922,18748:31080,18749:34920,18750:35413,18751:35961,18752:24287,18753:25551,18754:30149,18755:31186,18756:33495,18757:37672,18758:37618,18759:33948,18760:34541,18761:39981,18762:21697,18763:24428,18764:25996,18765:27996,18766:28693,18767:36007,18768:36051,18769:38971,18770:25935,18771:29942,18772:19981,18773:20184,18774:22496,18775:22827,18776:23142,18777:23500,18778:20904,18779:24067,18780:24220,18781:24598,18782:25206,18783:25975,18784:26023,18785:26222,18786:28014,18787:29238,18788:31526,18789:33104,18790:33178,18791:33433,18792:35676,18793:36000,18794:36070,18795:36212,18796:38428,18797:38468,18798:20398,18799:25771,18800:27494,18801:33310,18802:33889,18803:34154,18804:37096,18805:23553,18806:26963,18807:39080,18808:33914,18809:34135,18810:20239,18811:21103,18812:24489,18813:24133,18814:26381,18977:31119,18978:33145,18979:35079,18980:35206,18981:28149,18982:24343,18983:25173,18984:27832,18985:20175,18986:29289,18987:39826,18988:20998,18989:21563,18990:22132,18991:22707,18992:24996,18993:25198,18994:28954,18995:22894,18996:31881,18997:31966,18998:32027,18999:38640,19000:25991,19001:32862,19002:19993,19003:20341,19004:20853,19005:22592,19006:24163,19007:24179,19008:24330,19009:26564,19010:20006,19011:34109,19012:38281,19013:38491,19014:31859,19015:38913,19016:20731,19017:22721,19018:30294,19019:30887,19020:21029,19021:30629,19022:34065,19023:31622,19024:20559,19025:22793,19026:29255,19027:31687,19028:32232,19029:36794,19030:36820,19031:36941,19032:20415,19033:21193,19034:23081,19035:24321,19036:38829,19037:20445,19038:33303,19039:37610,19040:22275,19041:25429,19042:27497,19043:29995,19044:35036,19045:36628,19046:31298,19047:21215,19048:22675,19049:24917,19050:25098,19051:26286,19052:27597,19053:31807,19054:33769,19055:20515,19056:20472,19057:21253,19058:21574,19059:22577,19060:22857,19061:23453,19062:23792,19063:23791,19064:23849,19065:24214,19066:25265,19067:25447,19068:25918,19069:26041,19070:26379,19233:27861,19234:27873,19235:28921,19236:30770,19237:32299,19238:32990,19239:33459,19240:33804,19241:34028,19242:34562,19243:35090,19244:35370,19245:35914,19246:37030,19247:37586,19248:39165,19249:40179,19250:40300,19251:20047,19252:20129,19253:20621,19254:21078,19255:22346,19256:22952,19257:24125,19258:24536,19259:24537,19260:25151,19261:26292,19262:26395,19263:26576,19264:26834,19265:20882,19266:32033,19267:32938,19268:33192,19269:35584,19270:35980,19271:36031,19272:37502,19273:38450,19274:21536,19275:38956,19276:21271,19277:20693,19278:21340,19279:22696,19280:25778,19281:26420,19282:29287,19283:30566,19284:31302,19285:37350,19286:21187,19287:27809,19288:27526,19289:22528,19290:24140,19291:22868,19292:26412,19293:32763,19294:20961,19295:30406,19296:25705,19297:30952,19298:39764,19299:40635,19300:22475,19301:22969,19302:26151,19303:26522,19304:27598,19305:21737,19306:27097,19307:24149,19308:33180,19309:26517,19310:39850,19311:26622,19312:40018,19313:26717,19314:20134,19315:20451,19316:21448,19317:25273,19318:26411,19319:27819,19320:36804,19321:20397,19322:32365,19323:40639,19324:19975,19325:24930,19326:28288,19489:28459,19490:34067,19491:21619,19492:26410,19493:39749,19494:24051,19495:31637,19496:23724,19497:23494,19498:34588,19499:28234,19500:34001,19501:31252,19502:33032,19503:22937,19504:31885,19505:27665,19506:30496,19507:21209,19508:22818,19509:28961,19510:29279,19511:30683,19512:38695,19513:40289,19514:26891,19515:23167,19516:23064,19517:20901,19518:21517,19519:21629,19520:26126,19521:30431,19522:36855,19523:37528,19524:40180,19525:23018,19526:29277,19527:28357,19528:20813,19529:26825,19530:32191,19531:32236,19532:38754,19533:40634,19534:25720,19535:27169,19536:33538,19537:22916,19538:23391,19539:27611,19540:29467,19541:30450,19542:32178,19543:32791,19544:33945,19545:20786,19546:26408,19547:40665,19548:30446,19549:26466,19550:21247,19551:39173,19552:23588,19553:25147,19554:31870,19555:36016,19556:21839,19557:24758,19558:32011,19559:38272,19560:21249,19561:20063,19562:20918,19563:22812,19564:29242,19565:32822,19566:37326,19567:24357,19568:30690,19569:21380,19570:24441,19571:32004,19572:34220,19573:35379,19574:36493,19575:38742,19576:26611,19577:34222,19578:37971,19579:24841,19580:24840,19581:27833,19582:30290,19745:35565,19746:36664,19747:21807,19748:20305,19749:20778,19750:21191,19751:21451,19752:23461,19753:24189,19754:24736,19755:24962,19756:25558,19757:26377,19758:26586,19759:28263,19760:28044,19761:29494,19762:29495,19763:30001,19764:31056,19765:35029,19766:35480,19767:36938,19768:37009,19769:37109,19770:38596,19771:34701,19772:22805,19773:20104,19774:20313,19775:19982,19776:35465,19777:36671,19778:38928,19779:20653,19780:24188,19781:22934,19782:23481,19783:24248,19784:25562,19785:25594,19786:25793,19787:26332,19788:26954,19789:27096,19790:27915,19791:28342,19792:29076,19793:29992,19794:31407,19795:32650,19796:32768,19797:33865,19798:33993,19799:35201,19800:35617,19801:36362,19802:36965,19803:38525,19804:39178,19805:24958,19806:25233,19807:27442,19808:27779,19809:28020,19810:32716,19811:32764,19812:28096,19813:32645,19814:34746,19815:35064,19816:26469,19817:33713,19818:38972,19819:38647,19820:27931,19821:32097,19822:33853,19823:37226,19824:20081,19825:21365,19826:23888,19827:27396,19828:28651,19829:34253,19830:34349,19831:35239,19832:21033,19833:21519,19834:23653,19835:26446,19836:26792,19837:29702,19838:29827,20001:30178,20002:35023,20003:35041,20004:37324,20005:38626,20006:38520,20007:24459,20008:29575,20009:31435,20010:33870,20011:25504,20012:30053,20013:21129,20014:27969,20015:28316,20016:29705,20017:30041,20018:30827,20019:31890,20020:38534,20021:31452,20022:40845,20023:20406,20024:24942,20025:26053,20026:34396,20027:20102,20028:20142,20029:20698,20030:20001,20031:20940,20032:23534,20033:26009,20034:26753,20035:28092,20036:29471,20037:30274,20038:30637,20039:31260,20040:31975,20041:33391,20042:35538,20043:36988,20044:37327,20045:38517,20046:38936,20047:21147,20048:32209,20049:20523,20050:21400,20051:26519,20052:28107,20053:29136,20054:29747,20055:33256,20056:36650,20057:38563,20058:40023,20059:40607,20060:29792,20061:22593,20062:28057,20063:32047,20064:39006,20065:20196,20066:20278,20067:20363,20068:20919,20069:21169,20070:23994,20071:24604,20072:29618,20073:31036,20074:33491,20075:37428,20076:38583,20077:38646,20078:38666,20079:40599,20080:40802,20081:26278,20082:27508,20083:21015,20084:21155,20085:28872,20086:35010,20087:24265,20088:24651,20089:24976,20090:28451,20091:29001,20092:31806,20093:32244,20094:32879,20257:34030,20258:36899,20259:37676,20260:21570,20261:39791,20262:27347,20263:28809,20264:36034,20265:36335,20266:38706,20267:21172,20268:23105,20269:24266,20270:24324,20271:26391,20272:27004,20273:27028,20274:28010,20275:28431,20276:29282,20277:29436,20278:31725,20279:32769,20280:32894,20281:34635,20282:37070,20283:20845,20284:40595,20285:31108,20286:32907,20287:37682,20288:35542,20289:20525,20290:21644,20291:35441,20292:27498,20293:36036,20294:33031,20295:24785,20296:26528,20297:40434,20298:20121,20299:20120,20300:39952,20301:35435,20302:34241,20303:34152,20304:26880,20305:28286,20306:30871,20307:33109,20513:24332,20514:19984,20515:19989,20516:20010,20517:20017,20518:20022,20519:20028,20520:20031,20521:20034,20522:20054,20523:20056,20524:20098,20525:20101,20526:35947,20527:20106,20528:33298,20529:24333,20530:20110,20531:20126,20532:20127,20533:20128,20534:20130,20535:20144,20536:20147,20537:20150,20538:20174,20539:20173,20540:20164,20541:20166,20542:20162,20543:20183,20544:20190,20545:20205,20546:20191,20547:20215,20548:20233,20549:20314,20550:20272,20551:20315,20552:20317,20553:20311,20554:20295,20555:20342,20556:20360,20557:20367,20558:20376,20559:20347,20560:20329,20561:20336,20562:20369,20563:20335,20564:20358,20565:20374,20566:20760,20567:20436,20568:20447,20569:20430,20570:20440,20571:20443,20572:20433,20573:20442,20574:20432,20575:20452,20576:20453,20577:20506,20578:20520,20579:20500,20580:20522,20581:20517,20582:20485,20583:20252,20584:20470,20585:20513,20586:20521,20587:20524,20588:20478,20589:20463,20590:20497,20591:20486,20592:20547,20593:20551,20594:26371,20595:20565,20596:20560,20597:20552,20598:20570,20599:20566,20600:20588,20601:20600,20602:20608,20603:20634,20604:20613,20605:20660,20606:20658,20769:20681,20770:20682,20771:20659,20772:20674,20773:20694,20774:20702,20775:20709,20776:20717,20777:20707,20778:20718,20779:20729,20780:20725,20781:20745,20782:20737,20783:20738,20784:20758,20785:20757,20786:20756,20787:20762,20788:20769,20789:20794,20790:20791,20791:20796,20792:20795,20793:20799,20794:20800,20795:20818,20796:20812,20797:20820,20798:20834,20799:31480,20800:20841,20801:20842,20802:20846,20803:20864,20804:20866,20805:22232,20806:20876,20807:20873,20808:20879,20809:20881,20810:20883,20811:20885,20812:20886,20813:20900,20814:20902,20815:20898,20816:20905,20817:20906,20818:20907,20819:20915,20820:20913,20821:20914,20822:20912,20823:20917,20824:20925,20825:20933,20826:20937,20827:20955,20828:20960,20829:34389,20830:20969,20831:20973,20832:20976,20833:20981,20834:20990,20835:20996,20836:21003,20837:21012,20838:21006,20839:21031,20840:21034,20841:21038,20842:21043,20843:21049,20844:21071,20845:21060,20846:21067,20847:21068,20848:21086,20849:21076,20850:21098,20851:21108,20852:21097,20853:21107,20854:21119,20855:21117,20856:21133,20857:21140,20858:21138,20859:21105,20860:21128,20861:21137,20862:36776,21025:36775,21026:21164,21027:21165,21028:21180,21029:21173,21030:21185,21031:21197,21032:21207,21033:21214,21034:21219,21035:21222,21036:39149,21037:21216,21038:21235,21039:21237,21040:21240,21041:21241,21042:21254,21043:21256,21044:30008,21045:21261,21046:21264,21047:21263,21048:21269,21049:21274,21050:21283,21051:21295,21052:21297,21053:21299,21054:21304,21055:21312,21056:21318,21057:21317,21058:19991,21059:21321,21060:21325,21061:20950,21062:21342,21063:21353,21064:21358,21065:22808,21066:21371,21067:21367,21068:21378,21069:21398,21070:21408,21071:21414,21072:21413,21073:21422,21074:21424,21075:21430,21076:21443,21077:31762,21078:38617,21079:21471,21080:26364,21081:29166,21082:21486,21083:21480,21084:21485,21085:21498,21086:21505,21087:21565,21088:21568,21089:21548,21090:21549,21091:21564,21092:21550,21093:21558,21094:21545,21095:21533,21096:21582,21097:21647,21098:21621,21099:21646,21100:21599,21101:21617,21102:21623,21103:21616,21104:21650,21105:21627,21106:21632,21107:21622,21108:21636,21109:21648,21110:21638,21111:21703,21112:21666,21113:21688,21114:21669,21115:21676,21116:21700,21117:21704,21118:21672,21281:21675,21282:21698,21283:21668,21284:21694,21285:21692,21286:21720,21287:21733,21288:21734,21289:21775,21290:21780,21291:21757,21292:21742,21293:21741,21294:21754,21295:21730,21296:21817,21297:21824,21298:21859,21299:21836,21300:21806,21301:21852,21302:21829,21303:21846,21304:21847,21305:21816,21306:21811,21307:21853,21308:21913,21309:21888,21310:21679,21311:21898,21312:21919,21313:21883,21314:21886,21315:21912,21316:21918,21317:21934,21318:21884,21319:21891,21320:21929,21321:21895,21322:21928,21323:21978,21324:21957,21325:21983,21326:21956,21327:21980,21328:21988,21329:21972,21330:22036,21331:22007,21332:22038,21333:22014,21334:22013,21335:22043,21336:22009,21337:22094,21338:22096,21339:29151,21340:22068,21341:22070,21342:22066,21343:22072,21344:22123,21345:22116,21346:22063,21347:22124,21348:22122,21349:22150,21350:22144,21351:22154,21352:22176,21353:22164,21354:22159,21355:22181,21356:22190,21357:22198,21358:22196,21359:22210,21360:22204,21361:22209,21362:22211,21363:22208,21364:22216,21365:22222,21366:22225,21367:22227,21368:22231,21369:22254,21370:22265,21371:22272,21372:22271,21373:22276,21374:22281,21537:22280,21538:22283,21539:22285,21540:22291,21541:22296,21542:22294,21543:21959,21544:22300,21545:22310,21546:22327,21547:22328,21548:22350,21549:22331,21550:22336,21551:22351,21552:22377,21553:22464,21554:22408,21555:22369,21556:22399,21557:22409,21558:22419,21559:22432,21560:22451,21561:22436,21562:22442,21563:22448,21564:22467,21565:22470,21566:22484,21567:22482,21568:22483,21569:22538,21570:22486,21571:22499,21572:22539,21573:22553,21574:22557,21575:22642,21576:22561,21577:22626,21578:22603,21579:22640,21580:27584,21581:22610,21582:22589,21583:22649,21584:22661,21585:22713,21586:22687,21587:22699,21588:22714,21589:22750,21590:22715,21591:22712,21592:22702,21593:22725,21594:22739,21595:22737,21596:22743,21597:22745,21598:22744,21599:22757,21600:22748,21601:22756,21602:22751,21603:22767,21604:22778,21605:22777,21606:22779,21607:22780,21608:22781,21609:22786,21610:22794,21611:22800,21612:22811,21613:26790,21614:22821,21615:22828,21616:22829,21617:22834,21618:22840,21619:22846,21620:31442,21621:22869,21622:22864,21623:22862,21624:22874,21625:22872,21626:22882,21627:22880,21628:22887,21629:22892,21630:22889,21793:22904,21794:22913,21795:22941,21796:20318,21797:20395,21798:22947,21799:22962,21800:22982,21801:23016,21802:23004,21803:22925,21804:23001,21805:23002,21806:23077,21807:23071,21808:23057,21809:23068,21810:23049,21811:23066,21812:23104,21813:23148,21814:23113,21815:23093,21816:23094,21817:23138,21818:23146,21819:23194,21820:23228,21821:23230,21822:23243,21823:23234,21824:23229,21825:23267,21826:23255,21827:23270,21828:23273,21829:23254,21830:23290,21831:23291,21832:23308,21833:23307,21834:23318,21835:23346,21836:23248,21837:23338,21838:23350,21839:23358,21840:23363,21841:23365,21842:23360,21843:23377,21844:23381,21845:23386,21846:23387,21847:23397,21848:23401,21849:23408,21850:23411,21851:23413,21852:23416,21853:25992,21854:23418,21855:23424,21856:23427,21857:23462,21858:23480,21859:23491,21860:23495,21861:23497,21862:23508,21863:23504,21864:23524,21865:23526,21866:23522,21867:23518,21868:23525,21869:23531,21870:23536,21871:23542,21872:23539,21873:23557,21874:23559,21875:23560,21876:23565,21877:23571,21878:23584,21879:23586,21880:23592,21881:23608,21882:23609,21883:23617,21884:23622,21885:23630,21886:23635,22049:23632,22050:23631,22051:23409,22052:23660,22053:23662,22054:20066,22055:23670,22056:23673,22057:23692,22058:23697,22059:23700,22060:22939,22061:23723,22062:23739,22063:23734,22064:23740,22065:23735,22066:23749,22067:23742,22068:23751,22069:23769,22070:23785,22071:23805,22072:23802,22073:23789,22074:23948,22075:23786,22076:23819,22077:23829,22078:23831,22079:23900,22080:23839,22081:23835,22082:23825,22083:23828,22084:23842,22085:23834,22086:23833,22087:23832,22088:23884,22089:23890,22090:23886,22091:23883,22092:23916,22093:23923,22094:23926,22095:23943,22096:23940,22097:23938,22098:23970,22099:23965,22100:23980,22101:23982,22102:23997,22103:23952,22104:23991,22105:23996,22106:24009,22107:24013,22108:24019,22109:24018,22110:24022,22111:24027,22112:24043,22113:24050,22114:24053,22115:24075,22116:24090,22117:24089,22118:24081,22119:24091,22120:24118,22121:24119,22122:24132,22123:24131,22124:24128,22125:24142,22126:24151,22127:24148,22128:24159,22129:24162,22130:24164,22131:24135,22132:24181,22133:24182,22134:24186,22135:40636,22136:24191,22137:24224,22138:24257,22139:24258,22140:24264,22141:24272,22142:24271,22305:24278,22306:24291,22307:24285,22308:24282,22309:24283,22310:24290,22311:24289,22312:24296,22313:24297,22314:24300,22315:24305,22316:24307,22317:24304,22318:24308,22319:24312,22320:24318,22321:24323,22322:24329,22323:24413,22324:24412,22325:24331,22326:24337,22327:24342,22328:24361,22329:24365,22330:24376,22331:24385,22332:24392,22333:24396,22334:24398,22335:24367,22336:24401,22337:24406,22338:24407,22339:24409,22340:24417,22341:24429,22342:24435,22343:24439,22344:24451,22345:24450,22346:24447,22347:24458,22348:24456,22349:24465,22350:24455,22351:24478,22352:24473,22353:24472,22354:24480,22355:24488,22356:24493,22357:24508,22358:24534,22359:24571,22360:24548,22361:24568,22362:24561,22363:24541,22364:24755,22365:24575,22366:24609,22367:24672,22368:24601,22369:24592,22370:24617,22371:24590,22372:24625,22373:24603,22374:24597,22375:24619,22376:24614,22377:24591,22378:24634,22379:24666,22380:24641,22381:24682,22382:24695,22383:24671,22384:24650,22385:24646,22386:24653,22387:24675,22388:24643,22389:24676,22390:24642,22391:24684,22392:24683,22393:24665,22394:24705,22395:24717,22396:24807,22397:24707,22398:24730,22561:24708,22562:24731,22563:24726,22564:24727,22565:24722,22566:24743,22567:24715,22568:24801,22569:24760,22570:24800,22571:24787,22572:24756,22573:24560,22574:24765,22575:24774,22576:24757,22577:24792,22578:24909,22579:24853,22580:24838,22581:24822,22582:24823,22583:24832,22584:24820,22585:24826,22586:24835,22587:24865,22588:24827,22589:24817,22590:24845,22591:24846,22592:24903,22593:24894,22594:24872,22595:24871,22596:24906,22597:24895,22598:24892,22599:24876,22600:24884,22601:24893,22602:24898,22603:24900,22604:24947,22605:24951,22606:24920,22607:24921,22608:24922,22609:24939,22610:24948,22611:24943,22612:24933,22613:24945,22614:24927,22615:24925,22616:24915,22617:24949,22618:24985,22619:24982,22620:24967,22621:25004,22622:24980,22623:24986,22624:24970,22625:24977,22626:25003,22627:25006,22628:25036,22629:25034,22630:25033,22631:25079,22632:25032,22633:25027,22634:25030,22635:25018,22636:25035,22637:32633,22638:25037,22639:25062,22640:25059,22641:25078,22642:25082,22643:25076,22644:25087,22645:25085,22646:25084,22647:25086,22648:25088,22649:25096,22650:25097,22651:25101,22652:25100,22653:25108,22654:25115,22817:25118,22818:25121,22819:25130,22820:25134,22821:25136,22822:25138,22823:25139,22824:25153,22825:25166,22826:25182,22827:25187,22828:25179,22829:25184,22830:25192,22831:25212,22832:25218,22833:25225,22834:25214,22835:25234,22836:25235,22837:25238,22838:25300,22839:25219,22840:25236,22841:25303,22842:25297,22843:25275,22844:25295,22845:25343,22846:25286,22847:25812,22848:25288,22849:25308,22850:25292,22851:25290,22852:25282,22853:25287,22854:25243,22855:25289,22856:25356,22857:25326,22858:25329,22859:25383,22860:25346,22861:25352,22862:25327,22863:25333,22864:25424,22865:25406,22866:25421,22867:25628,22868:25423,22869:25494,22870:25486,22871:25472,22872:25515,22873:25462,22874:25507,22875:25487,22876:25481,22877:25503,22878:25525,22879:25451,22880:25449,22881:25534,22882:25577,22883:25536,22884:25542,22885:25571,22886:25545,22887:25554,22888:25590,22889:25540,22890:25622,22891:25652,22892:25606,22893:25619,22894:25638,22895:25654,22896:25885,22897:25623,22898:25640,22899:25615,22900:25703,22901:25711,22902:25718,22903:25678,22904:25898,22905:25749,22906:25747,22907:25765,22908:25769,22909:25736,22910:25788,23073:25818,23074:25810,23075:25797,23076:25799,23077:25787,23078:25816,23079:25794,23080:25841,23081:25831,23082:33289,23083:25824,23084:25825,23085:25260,23086:25827,23087:25839,23088:25900,23089:25846,23090:25844,23091:25842,23092:25850,23093:25856,23094:25853,23095:25880,23096:25884,23097:25861,23098:25892,23099:25891,23100:25899,23101:25908,23102:25909,23103:25911,23104:25910,23105:25912,23106:30027,23107:25928,23108:25942,23109:25941,23110:25933,23111:25944,23112:25950,23113:25949,23114:25970,23115:25976,23116:25986,23117:25987,23118:35722,23119:26011,23120:26015,23121:26027,23122:26039,23123:26051,23124:26054,23125:26049,23126:26052,23127:26060,23128:26066,23129:26075,23130:26073,23131:26080,23132:26081,23133:26097,23134:26482,23135:26122,23136:26115,23137:26107,23138:26483,23139:26165,23140:26166,23141:26164,23142:26140,23143:26191,23144:26180,23145:26185,23146:26177,23147:26206,23148:26205,23149:26212,23150:26215,23151:26216,23152:26207,23153:26210,23154:26224,23155:26243,23156:26248,23157:26254,23158:26249,23159:26244,23160:26264,23161:26269,23162:26305,23163:26297,23164:26313,23165:26302,23166:26300,23329:26308,23330:26296,23331:26326,23332:26330,23333:26336,23334:26175,23335:26342,23336:26345,23337:26352,23338:26357,23339:26359,23340:26383,23341:26390,23342:26398,23343:26406,23344:26407,23345:38712,23346:26414,23347:26431,23348:26422,23349:26433,23350:26424,23351:26423,23352:26438,23353:26462,23354:26464,23355:26457,23356:26467,23357:26468,23358:26505,23359:26480,23360:26537,23361:26492,23362:26474,23363:26508,23364:26507,23365:26534,23366:26529,23367:26501,23368:26551,23369:26607,23370:26548,23371:26604,23372:26547,23373:26601,23374:26552,23375:26596,23376:26590,23377:26589,23378:26594,23379:26606,23380:26553,23381:26574,23382:26566,23383:26599,23384:27292,23385:26654,23386:26694,23387:26665,23388:26688,23389:26701,23390:26674,23391:26702,23392:26803,23393:26667,23394:26713,23395:26723,23396:26743,23397:26751,23398:26783,23399:26767,23400:26797,23401:26772,23402:26781,23403:26779,23404:26755,23405:27310,23406:26809,23407:26740,23408:26805,23409:26784,23410:26810,23411:26895,23412:26765,23413:26750,23414:26881,23415:26826,23416:26888,23417:26840,23418:26914,23419:26918,23420:26849,23421:26892,23422:26829,23585:26836,23586:26855,23587:26837,23588:26934,23589:26898,23590:26884,23591:26839,23592:26851,23593:26917,23594:26873,23595:26848,23596:26863,23597:26920,23598:26922,23599:26906,23600:26915,23601:26913,23602:26822,23603:27001,23604:26999,23605:26972,23606:27000,23607:26987,23608:26964,23609:27006,23610:26990,23611:26937,23612:26996,23613:26941,23614:26969,23615:26928,23616:26977,23617:26974,23618:26973,23619:27009,23620:26986,23621:27058,23622:27054,23623:27088,23624:27071,23625:27073,23626:27091,23627:27070,23628:27086,23629:23528,23630:27082,23631:27101,23632:27067,23633:27075,23634:27047,23635:27182,23636:27025,23637:27040,23638:27036,23639:27029,23640:27060,23641:27102,23642:27112,23643:27138,23644:27163,23645:27135,23646:27402,23647:27129,23648:27122,23649:27111,23650:27141,23651:27057,23652:27166,23653:27117,23654:27156,23655:27115,23656:27146,23657:27154,23658:27329,23659:27171,23660:27155,23661:27204,23662:27148,23663:27250,23664:27190,23665:27256,23666:27207,23667:27234,23668:27225,23669:27238,23670:27208,23671:27192,23672:27170,23673:27280,23674:27277,23675:27296,23676:27268,23677:27298,23678:27299,23841:27287,23842:34327,23843:27323,23844:27331,23845:27330,23846:27320,23847:27315,23848:27308,23849:27358,23850:27345,23851:27359,23852:27306,23853:27354,23854:27370,23855:27387,23856:27397,23857:34326,23858:27386,23859:27410,23860:27414,23861:39729,23862:27423,23863:27448,23864:27447,23865:30428,23866:27449,23867:39150,23868:27463,23869:27459,23870:27465,23871:27472,23872:27481,23873:27476,23874:27483,23875:27487,23876:27489,23877:27512,23878:27513,23879:27519,23880:27520,23881:27524,23882:27523,23883:27533,23884:27544,23885:27541,23886:27550,23887:27556,23888:27562,23889:27563,23890:27567,23891:27570,23892:27569,23893:27571,23894:27575,23895:27580,23896:27590,23897:27595,23898:27603,23899:27615,23900:27628,23901:27627,23902:27635,23903:27631,23904:40638,23905:27656,23906:27667,23907:27668,23908:27675,23909:27684,23910:27683,23911:27742,23912:27733,23913:27746,23914:27754,23915:27778,23916:27789,23917:27802,23918:27777,23919:27803,23920:27774,23921:27752,23922:27763,23923:27794,23924:27792,23925:27844,23926:27889,23927:27859,23928:27837,23929:27863,23930:27845,23931:27869,23932:27822,23933:27825,23934:27838,24097:27834,24098:27867,24099:27887,24100:27865,24101:27882,24102:27935,24103:34893,24104:27958,24105:27947,24106:27965,24107:27960,24108:27929,24109:27957,24110:27955,24111:27922,24112:27916,24113:28003,24114:28051,24115:28004,24116:27994,24117:28025,24118:27993,24119:28046,24120:28053,24121:28644,24122:28037,24123:28153,24124:28181,24125:28170,24126:28085,24127:28103,24128:28134,24129:28088,24130:28102,24131:28140,24132:28126,24133:28108,24134:28136,24135:28114,24136:28101,24137:28154,24138:28121,24139:28132,24140:28117,24141:28138,24142:28142,24143:28205,24144:28270,24145:28206,24146:28185,24147:28274,24148:28255,24149:28222,24150:28195,24151:28267,24152:28203,24153:28278,24154:28237,24155:28191,24156:28227,24157:28218,24158:28238,24159:28196,24160:28415,24161:28189,24162:28216,24163:28290,24164:28330,24165:28312,24166:28361,24167:28343,24168:28371,24169:28349,24170:28335,24171:28356,24172:28338,24173:28372,24174:28373,24175:28303,24176:28325,24177:28354,24178:28319,24179:28481,24180:28433,24181:28748,24182:28396,24183:28408,24184:28414,24185:28479,24186:28402,24187:28465,24188:28399,24189:28466,24190:28364,24353:28478,24354:28435,24355:28407,24356:28550,24357:28538,24358:28536,24359:28545,24360:28544,24361:28527,24362:28507,24363:28659,24364:28525,24365:28546,24366:28540,24367:28504,24368:28558,24369:28561,24370:28610,24371:28518,24372:28595,24373:28579,24374:28577,24375:28580,24376:28601,24377:28614,24378:28586,24379:28639,24380:28629,24381:28652,24382:28628,24383:28632,24384:28657,24385:28654,24386:28635,24387:28681,24388:28683,24389:28666,24390:28689,24391:28673,24392:28687,24393:28670,24394:28699,24395:28698,24396:28532,24397:28701,24398:28696,24399:28703,24400:28720,24401:28734,24402:28722,24403:28753,24404:28771,24405:28825,24406:28818,24407:28847,24408:28913,24409:28844,24410:28856,24411:28851,24412:28846,24413:28895,24414:28875,24415:28893,24416:28889,24417:28937,24418:28925,24419:28956,24420:28953,24421:29029,24422:29013,24423:29064,24424:29030,24425:29026,24426:29004,24427:29014,24428:29036,24429:29071,24430:29179,24431:29060,24432:29077,24433:29096,24434:29100,24435:29143,24436:29113,24437:29118,24438:29138,24439:29129,24440:29140,24441:29134,24442:29152,24443:29164,24444:29159,24445:29173,24446:29180,24609:29177,24610:29183,24611:29197,24612:29200,24613:29211,24614:29224,24615:29229,24616:29228,24617:29232,24618:29234,24619:29243,24620:29244,24621:29247,24622:29248,24623:29254,24624:29259,24625:29272,24626:29300,24627:29310,24628:29314,24629:29313,24630:29319,24631:29330,24632:29334,24633:29346,24634:29351,24635:29369,24636:29362,24637:29379,24638:29382,24639:29380,24640:29390,24641:29394,24642:29410,24643:29408,24644:29409,24645:29433,24646:29431,24647:20495,24648:29463,24649:29450,24650:29468,24651:29462,24652:29469,24653:29492,24654:29487,24655:29481,24656:29477,24657:29502,24658:29518,24659:29519,24660:40664,24661:29527,24662:29546,24663:29544,24664:29552,24665:29560,24666:29557,24667:29563,24668:29562,24669:29640,24670:29619,24671:29646,24672:29627,24673:29632,24674:29669,24675:29678,24676:29662,24677:29858,24678:29701,24679:29807,24680:29733,24681:29688,24682:29746,24683:29754,24684:29781,24685:29759,24686:29791,24687:29785,24688:29761,24689:29788,24690:29801,24691:29808,24692:29795,24693:29802,24694:29814,24695:29822,24696:29835,24697:29854,24698:29863,24699:29898,24700:29903,24701:29908,24702:29681,24865:29920,24866:29923,24867:29927,24868:29929,24869:29934,24870:29938,24871:29936,24872:29937,24873:29944,24874:29943,24875:29956,24876:29955,24877:29957,24878:29964,24879:29966,24880:29965,24881:29973,24882:29971,24883:29982,24884:29990,24885:29996,24886:30012,24887:30020,24888:30029,24889:30026,24890:30025,24891:30043,24892:30022,24893:30042,24894:30057,24895:30052,24896:30055,24897:30059,24898:30061,24899:30072,24900:30070,24901:30086,24902:30087,24903:30068,24904:30090,24905:30089,24906:30082,24907:30100,24908:30106,24909:30109,24910:30117,24911:30115,24912:30146,24913:30131,24914:30147,24915:30133,24916:30141,24917:30136,24918:30140,24919:30129,24920:30157,24921:30154,24922:30162,24923:30169,24924:30179,24925:30174,24926:30206,24927:30207,24928:30204,24929:30209,24930:30192,24931:30202,24932:30194,24933:30195,24934:30219,24935:30221,24936:30217,24937:30239,24938:30247,24939:30240,24940:30241,24941:30242,24942:30244,24943:30260,24944:30256,24945:30267,24946:30279,24947:30280,24948:30278,24949:30300,24950:30296,24951:30305,24952:30306,24953:30312,24954:30313,24955:30314,24956:30311,24957:30316,24958:30320,25121:30322,25122:30326,25123:30328,25124:30332,25125:30336,25126:30339,25127:30344,25128:30347,25129:30350,25130:30358,25131:30355,25132:30361,25133:30362,25134:30384,25135:30388,25136:30392,25137:30393,25138:30394,25139:30402,25140:30413,25141:30422,25142:30418,25143:30430,25144:30433,25145:30437,25146:30439,25147:30442,25148:34351,25149:30459,25150:30472,25151:30471,25152:30468,25153:30505,25154:30500,25155:30494,25156:30501,25157:30502,25158:30491,25159:30519,25160:30520,25161:30535,25162:30554,25163:30568,25164:30571,25165:30555,25166:30565,25167:30591,25168:30590,25169:30585,25170:30606,25171:30603,25172:30609,25173:30624,25174:30622,25175:30640,25176:30646,25177:30649,25178:30655,25179:30652,25180:30653,25181:30651,25182:30663,25183:30669,25184:30679,25185:30682,25186:30684,25187:30691,25188:30702,25189:30716,25190:30732,25191:30738,25192:31014,25193:30752,25194:31018,25195:30789,25196:30862,25197:30836,25198:30854,25199:30844,25200:30874,25201:30860,25202:30883,25203:30901,25204:30890,25205:30895,25206:30929,25207:30918,25208:30923,25209:30932,25210:30910,25211:30908,25212:30917,25213:30922,25214:30956,25377:30951,25378:30938,25379:30973,25380:30964,25381:30983,25382:30994,25383:30993,25384:31001,25385:31020,25386:31019,25387:31040,25388:31072,25389:31063,25390:31071,25391:31066,25392:31061,25393:31059,25394:31098,25395:31103,25396:31114,25397:31133,25398:31143,25399:40779,25400:31146,25401:31150,25402:31155,25403:31161,25404:31162,25405:31177,25406:31189,25407:31207,25408:31212,25409:31201,25410:31203,25411:31240,25412:31245,25413:31256,25414:31257,25415:31264,25416:31263,25417:31104,25418:31281,25419:31291,25420:31294,25421:31287,25422:31299,25423:31319,25424:31305,25425:31329,25426:31330,25427:31337,25428:40861,25429:31344,25430:31353,25431:31357,25432:31368,25433:31383,25434:31381,25435:31384,25436:31382,25437:31401,25438:31432,25439:31408,25440:31414,25441:31429,25442:31428,25443:31423,25444:36995,25445:31431,25446:31434,25447:31437,25448:31439,25449:31445,25450:31443,25451:31449,25452:31450,25453:31453,25454:31457,25455:31458,25456:31462,25457:31469,25458:31472,25459:31490,25460:31503,25461:31498,25462:31494,25463:31539,25464:31512,25465:31513,25466:31518,25467:31541,25468:31528,25469:31542,25470:31568,25633:31610,25634:31492,25635:31565,25636:31499,25637:31564,25638:31557,25639:31605,25640:31589,25641:31604,25642:31591,25643:31600,25644:31601,25645:31596,25646:31598,25647:31645,25648:31640,25649:31647,25650:31629,25651:31644,25652:31642,25653:31627,25654:31634,25655:31631,25656:31581,25657:31641,25658:31691,25659:31681,25660:31692,25661:31695,25662:31668,25663:31686,25664:31709,25665:31721,25666:31761,25667:31764,25668:31718,25669:31717,25670:31840,25671:31744,25672:31751,25673:31763,25674:31731,25675:31735,25676:31767,25677:31757,25678:31734,25679:31779,25680:31783,25681:31786,25682:31775,25683:31799,25684:31787,25685:31805,25686:31820,25687:31811,25688:31828,25689:31823,25690:31808,25691:31824,25692:31832,25693:31839,25694:31844,25695:31830,25696:31845,25697:31852,25698:31861,25699:31875,25700:31888,25701:31908,25702:31917,25703:31906,25704:31915,25705:31905,25706:31912,25707:31923,25708:31922,25709:31921,25710:31918,25711:31929,25712:31933,25713:31936,25714:31941,25715:31938,25716:31960,25717:31954,25718:31964,25719:31970,25720:39739,25721:31983,25722:31986,25723:31988,25724:31990,25725:31994,25726:32006,25889:32002,25890:32028,25891:32021,25892:32010,25893:32069,25894:32075,25895:32046,25896:32050,25897:32063,25898:32053,25899:32070,25900:32115,25901:32086,25902:32078,25903:32114,25904:32104,25905:32110,25906:32079,25907:32099,25908:32147,25909:32137,25910:32091,25911:32143,25912:32125,25913:32155,25914:32186,25915:32174,25916:32163,25917:32181,25918:32199,25919:32189,25920:32171,25921:32317,25922:32162,25923:32175,25924:32220,25925:32184,25926:32159,25927:32176,25928:32216,25929:32221,25930:32228,25931:32222,25932:32251,25933:32242,25934:32225,25935:32261,25936:32266,25937:32291,25938:32289,25939:32274,25940:32305,25941:32287,25942:32265,25943:32267,25944:32290,25945:32326,25946:32358,25947:32315,25948:32309,25949:32313,25950:32323,25951:32311,25952:32306,25953:32314,25954:32359,25955:32349,25956:32342,25957:32350,25958:32345,25959:32346,25960:32377,25961:32362,25962:32361,25963:32380,25964:32379,25965:32387,25966:32213,25967:32381,25968:36782,25969:32383,25970:32392,25971:32393,25972:32396,25973:32402,25974:32400,25975:32403,25976:32404,25977:32406,25978:32398,25979:32411,25980:32412,25981:32568,25982:32570,26145:32581,26146:32588,26147:32589,26148:32590,26149:32592,26150:32593,26151:32597,26152:32596,26153:32600,26154:32607,26155:32608,26156:32616,26157:32617,26158:32615,26159:32632,26160:32642,26161:32646,26162:32643,26163:32648,26164:32647,26165:32652,26166:32660,26167:32670,26168:32669,26169:32666,26170:32675,26171:32687,26172:32690,26173:32697,26174:32686,26175:32694,26176:32696,26177:35697,26178:32709,26179:32710,26180:32714,26181:32725,26182:32724,26183:32737,26184:32742,26185:32745,26186:32755,26187:32761,26188:39132,26189:32774,26190:32772,26191:32779,26192:32786,26193:32792,26194:32793,26195:32796,26196:32801,26197:32808,26198:32831,26199:32827,26200:32842,26201:32838,26202:32850,26203:32856,26204:32858,26205:32863,26206:32866,26207:32872,26208:32883,26209:32882,26210:32880,26211:32886,26212:32889,26213:32893,26214:32895,26215:32900,26216:32902,26217:32901,26218:32923,26219:32915,26220:32922,26221:32941,26222:20880,26223:32940,26224:32987,26225:32997,26226:32985,26227:32989,26228:32964,26229:32986,26230:32982,26231:33033,26232:33007,26233:33009,26234:33051,26235:33065,26236:33059,26237:33071,26238:33099,26401:38539,26402:33094,26403:33086,26404:33107,26405:33105,26406:33020,26407:33137,26408:33134,26409:33125,26410:33126,26411:33140,26412:33155,26413:33160,26414:33162,26415:33152,26416:33154,26417:33184,26418:33173,26419:33188,26420:33187,26421:33119,26422:33171,26423:33193,26424:33200,26425:33205,26426:33214,26427:33208,26428:33213,26429:33216,26430:33218,26431:33210,26432:33225,26433:33229,26434:33233,26435:33241,26436:33240,26437:33224,26438:33242,26439:33247,26440:33248,26441:33255,26442:33274,26443:33275,26444:33278,26445:33281,26446:33282,26447:33285,26448:33287,26449:33290,26450:33293,26451:33296,26452:33302,26453:33321,26454:33323,26455:33336,26456:33331,26457:33344,26458:33369,26459:33368,26460:33373,26461:33370,26462:33375,26463:33380,26464:33378,26465:33384,26466:33386,26467:33387,26468:33326,26469:33393,26470:33399,26471:33400,26472:33406,26473:33421,26474:33426,26475:33451,26476:33439,26477:33467,26478:33452,26479:33505,26480:33507,26481:33503,26482:33490,26483:33524,26484:33523,26485:33530,26486:33683,26487:33539,26488:33531,26489:33529,26490:33502,26491:33542,26492:33500,26493:33545,26494:33497,26657:33589,26658:33588,26659:33558,26660:33586,26661:33585,26662:33600,26663:33593,26664:33616,26665:33605,26666:33583,26667:33579,26668:33559,26669:33560,26670:33669,26671:33690,26672:33706,26673:33695,26674:33698,26675:33686,26676:33571,26677:33678,26678:33671,26679:33674,26680:33660,26681:33717,26682:33651,26683:33653,26684:33696,26685:33673,26686:33704,26687:33780,26688:33811,26689:33771,26690:33742,26691:33789,26692:33795,26693:33752,26694:33803,26695:33729,26696:33783,26697:33799,26698:33760,26699:33778,26700:33805,26701:33826,26702:33824,26703:33725,26704:33848,26705:34054,26706:33787,26707:33901,26708:33834,26709:33852,26710:34138,26711:33924,26712:33911,26713:33899,26714:33965,26715:33902,26716:33922,26717:33897,26718:33862,26719:33836,26720:33903,26721:33913,26722:33845,26723:33994,26724:33890,26725:33977,26726:33983,26727:33951,26728:34009,26729:33997,26730:33979,26731:34010,26732:34000,26733:33985,26734:33990,26735:34006,26736:33953,26737:34081,26738:34047,26739:34036,26740:34071,26741:34072,26742:34092,26743:34079,26744:34069,26745:34068,26746:34044,26747:34112,26748:34147,26749:34136,26750:34120,26913:34113,26914:34306,26915:34123,26916:34133,26917:34176,26918:34212,26919:34184,26920:34193,26921:34186,26922:34216,26923:34157,26924:34196,26925:34203,26926:34282,26927:34183,26928:34204,26929:34167,26930:34174,26931:34192,26932:34249,26933:34234,26934:34255,26935:34233,26936:34256,26937:34261,26938:34269,26939:34277,26940:34268,26941:34297,26942:34314,26943:34323,26944:34315,26945:34302,26946:34298,26947:34310,26948:34338,26949:34330,26950:34352,26951:34367,26952:34381,26953:20053,26954:34388,26955:34399,26956:34407,26957:34417,26958:34451,26959:34467,26960:34473,26961:34474,26962:34443,26963:34444,26964:34486,26965:34479,26966:34500,26967:34502,26968:34480,26969:34505,26970:34851,26971:34475,26972:34516,26973:34526,26974:34537,26975:34540,26976:34527,26977:34523,26978:34543,26979:34578,26980:34566,26981:34568,26982:34560,26983:34563,26984:34555,26985:34577,26986:34569,26987:34573,26988:34553,26989:34570,26990:34612,26991:34623,26992:34615,26993:34619,26994:34597,26995:34601,26996:34586,26997:34656,26998:34655,26999:34680,27000:34636,27001:34638,27002:34676,27003:34647,27004:34664,27005:34670,27006:34649,27169:34643,27170:34659,27171:34666,27172:34821,27173:34722,27174:34719,27175:34690,27176:34735,27177:34763,27178:34749,27179:34752,27180:34768,27181:38614,27182:34731,27183:34756,27184:34739,27185:34759,27186:34758,27187:34747,27188:34799,27189:34802,27190:34784,27191:34831,27192:34829,27193:34814,27194:34806,27195:34807,27196:34830,27197:34770,27198:34833,27199:34838,27200:34837,27201:34850,27202:34849,27203:34865,27204:34870,27205:34873,27206:34855,27207:34875,27208:34884,27209:34882,27210:34898,27211:34905,27212:34910,27213:34914,27214:34923,27215:34945,27216:34942,27217:34974,27218:34933,27219:34941,27220:34997,27221:34930,27222:34946,27223:34967,27224:34962,27225:34990,27226:34969,27227:34978,27228:34957,27229:34980,27230:34992,27231:35007,27232:34993,27233:35011,27234:35012,27235:35028,27236:35032,27237:35033,27238:35037,27239:35065,27240:35074,27241:35068,27242:35060,27243:35048,27244:35058,27245:35076,27246:35084,27247:35082,27248:35091,27249:35139,27250:35102,27251:35109,27252:35114,27253:35115,27254:35137,27255:35140,27256:35131,27257:35126,27258:35128,27259:35148,27260:35101,27261:35168,27262:35166,27425:35174,27426:35172,27427:35181,27428:35178,27429:35183,27430:35188,27431:35191,27432:35198,27433:35203,27434:35208,27435:35210,27436:35219,27437:35224,27438:35233,27439:35241,27440:35238,27441:35244,27442:35247,27443:35250,27444:35258,27445:35261,27446:35263,27447:35264,27448:35290,27449:35292,27450:35293,27451:35303,27452:35316,27453:35320,27454:35331,27455:35350,27456:35344,27457:35340,27458:35355,27459:35357,27460:35365,27461:35382,27462:35393,27463:35419,27464:35410,27465:35398,27466:35400,27467:35452,27468:35437,27469:35436,27470:35426,27471:35461,27472:35458,27473:35460,27474:35496,27475:35489,27476:35473,27477:35493,27478:35494,27479:35482,27480:35491,27481:35524,27482:35533,27483:35522,27484:35546,27485:35563,27486:35571,27487:35559,27488:35556,27489:35569,27490:35604,27491:35552,27492:35554,27493:35575,27494:35550,27495:35547,27496:35596,27497:35591,27498:35610,27499:35553,27500:35606,27501:35600,27502:35607,27503:35616,27504:35635,27505:38827,27506:35622,27507:35627,27508:35646,27509:35624,27510:35649,27511:35660,27512:35663,27513:35662,27514:35657,27515:35670,27516:35675,27517:35674,27518:35691,27681:35679,27682:35692,27683:35695,27684:35700,27685:35709,27686:35712,27687:35724,27688:35726,27689:35730,27690:35731,27691:35734,27692:35737,27693:35738,27694:35898,27695:35905,27696:35903,27697:35912,27698:35916,27699:35918,27700:35920,27701:35925,27702:35938,27703:35948,27704:35960,27705:35962,27706:35970,27707:35977,27708:35973,27709:35978,27710:35981,27711:35982,27712:35988,27713:35964,27714:35992,27715:25117,27716:36013,27717:36010,27718:36029,27719:36018,27720:36019,27721:36014,27722:36022,27723:36040,27724:36033,27725:36068,27726:36067,27727:36058,27728:36093,27729:36090,27730:36091,27731:36100,27732:36101,27733:36106,27734:36103,27735:36111,27736:36109,27737:36112,27738:40782,27739:36115,27740:36045,27741:36116,27742:36118,27743:36199,27744:36205,27745:36209,27746:36211,27747:36225,27748:36249,27749:36290,27750:36286,27751:36282,27752:36303,27753:36314,27754:36310,27755:36300,27756:36315,27757:36299,27758:36330,27759:36331,27760:36319,27761:36323,27762:36348,27763:36360,27764:36361,27765:36351,27766:36381,27767:36382,27768:36368,27769:36383,27770:36418,27771:36405,27772:36400,27773:36404,27774:36426,27937:36423,27938:36425,27939:36428,27940:36432,27941:36424,27942:36441,27943:36452,27944:36448,27945:36394,27946:36451,27947:36437,27948:36470,27949:36466,27950:36476,27951:36481,27952:36487,27953:36485,27954:36484,27955:36491,27956:36490,27957:36499,27958:36497,27959:36500,27960:36505,27961:36522,27962:36513,27963:36524,27964:36528,27965:36550,27966:36529,27967:36542,27968:36549,27969:36552,27970:36555,27971:36571,27972:36579,27973:36604,27974:36603,27975:36587,27976:36606,27977:36618,27978:36613,27979:36629,27980:36626,27981:36633,27982:36627,27983:36636,27984:36639,27985:36635,27986:36620,27987:36646,27988:36659,27989:36667,27990:36665,27991:36677,27992:36674,27993:36670,27994:36684,27995:36681,27996:36678,27997:36686,27998:36695,27999:36700,28000:36706,28001:36707,28002:36708,28003:36764,28004:36767,28005:36771,28006:36781,28007:36783,28008:36791,28009:36826,28010:36837,28011:36834,28012:36842,28013:36847,28014:36999,28015:36852,28016:36869,28017:36857,28018:36858,28019:36881,28020:36885,28021:36897,28022:36877,28023:36894,28024:36886,28025:36875,28026:36903,28027:36918,28028:36917,28029:36921,28030:36856,28193:36943,28194:36944,28195:36945,28196:36946,28197:36878,28198:36937,28199:36926,28200:36950,28201:36952,28202:36958,28203:36968,28204:36975,28205:36982,28206:38568,28207:36978,28208:36994,28209:36989,28210:36993,28211:36992,28212:37002,28213:37001,28214:37007,28215:37032,28216:37039,28217:37041,28218:37045,28219:37090,28220:37092,28221:25160,28222:37083,28223:37122,28224:37138,28225:37145,28226:37170,28227:37168,28228:37194,28229:37206,28230:37208,28231:37219,28232:37221,28233:37225,28234:37235,28235:37234,28236:37259,28237:37257,28238:37250,28239:37282,28240:37291,28241:37295,28242:37290,28243:37301,28244:37300,28245:37306,28246:37312,28247:37313,28248:37321,28249:37323,28250:37328,28251:37334,28252:37343,28253:37345,28254:37339,28255:37372,28256:37365,28257:37366,28258:37406,28259:37375,28260:37396,28261:37420,28262:37397,28263:37393,28264:37470,28265:37463,28266:37445,28267:37449,28268:37476,28269:37448,28270:37525,28271:37439,28272:37451,28273:37456,28274:37532,28275:37526,28276:37523,28277:37531,28278:37466,28279:37583,28280:37561,28281:37559,28282:37609,28283:37647,28284:37626,28285:37700,28286:37678,28449:37657,28450:37666,28451:37658,28452:37667,28453:37690,28454:37685,28455:37691,28456:37724,28457:37728,28458:37756,28459:37742,28460:37718,28461:37808,28462:37804,28463:37805,28464:37780,28465:37817,28466:37846,28467:37847,28468:37864,28469:37861,28470:37848,28471:37827,28472:37853,28473:37840,28474:37832,28475:37860,28476:37914,28477:37908,28478:37907,28479:37891,28480:37895,28481:37904,28482:37942,28483:37931,28484:37941,28485:37921,28486:37946,28487:37953,28488:37970,28489:37956,28490:37979,28491:37984,28492:37986,28493:37982,28494:37994,28495:37417,28496:38000,28497:38005,28498:38007,28499:38013,28500:37978,28501:38012,28502:38014,28503:38017,28504:38015,28505:38274,28506:38279,28507:38282,28508:38292,28509:38294,28510:38296,28511:38297,28512:38304,28513:38312,28514:38311,28515:38317,28516:38332,28517:38331,28518:38329,28519:38334,28520:38346,28521:28662,28522:38339,28523:38349,28524:38348,28525:38357,28526:38356,28527:38358,28528:38364,28529:38369,28530:38373,28531:38370,28532:38433,28533:38440,28534:38446,28535:38447,28536:38466,28537:38476,28538:38479,28539:38475,28540:38519,28541:38492,28542:38494,28705:38493,28706:38495,28707:38502,28708:38514,28709:38508,28710:38541,28711:38552,28712:38549,28713:38551,28714:38570,28715:38567,28716:38577,28717:38578,28718:38576,28719:38580,28720:38582,28721:38584,28722:38585,28723:38606,28724:38603,28725:38601,28726:38605,28727:35149,28728:38620,28729:38669,28730:38613,28731:38649,28732:38660,28733:38662,28734:38664,28735:38675,28736:38670,28737:38673,28738:38671,28739:38678,28740:38681,28741:38692,28742:38698,28743:38704,28744:38713,28745:38717,28746:38718,28747:38724,28748:38726,28749:38728,28750:38722,28751:38729,28752:38748,28753:38752,28754:38756,28755:38758,28756:38760,28757:21202,28758:38763,28759:38769,28760:38777,28761:38789,28762:38780,28763:38785,28764:38778,28765:38790,28766:38795,28767:38799,28768:38800,28769:38812,28770:38824,28771:38822,28772:38819,28773:38835,28774:38836,28775:38851,28776:38854,28777:38856,28778:38859,28779:38876,28780:38893,28781:40783,28782:38898,28783:31455,28784:38902,28785:38901,28786:38927,28787:38924,28788:38968,28789:38948,28790:38945,28791:38967,28792:38973,28793:38982,28794:38991,28795:38987,28796:39019,28797:39023,28798:39024,28961:39025,28962:39028,28963:39027,28964:39082,28965:39087,28966:39089,28967:39094,28968:39108,28969:39107,28970:39110,28971:39145,28972:39147,28973:39171,28974:39177,28975:39186,28976:39188,28977:39192,28978:39201,28979:39197,28980:39198,28981:39204,28982:39200,28983:39212,28984:39214,28985:39229,28986:39230,28987:39234,28988:39241,28989:39237,28990:39248,28991:39243,28992:39249,28993:39250,28994:39244,28995:39253,28996:39319,28997:39320,28998:39333,28999:39341,29000:39342,29001:39356,29002:39391,29003:39387,29004:39389,29005:39384,29006:39377,29007:39405,29008:39406,29009:39409,29010:39410,29011:39419,29012:39416,29013:39425,29014:39439,29015:39429,29016:39394,29017:39449,29018:39467,29019:39479,29020:39493,29021:39490,29022:39488,29023:39491,29024:39486,29025:39509,29026:39501,29027:39515,29028:39511,29029:39519,29030:39522,29031:39525,29032:39524,29033:39529,29034:39531,29035:39530,29036:39597,29037:39600,29038:39612,29039:39616,29040:39631,29041:39633,29042:39635,29043:39636,29044:39646,29045:39647,29046:39650,29047:39651,29048:39654,29049:39663,29050:39659,29051:39662,29052:39668,29053:39665,29054:39671,29217:39675,29218:39686,29219:39704,29220:39706,29221:39711,29222:39714,29223:39715,29224:39717,29225:39719,29226:39720,29227:39721,29228:39722,29229:39726,29230:39727,29231:39730,29232:39748,29233:39747,29234:39759,29235:39757,29236:39758,29237:39761,29238:39768,29239:39796,29240:39827,29241:39811,29242:39825,29243:39830,29244:39831,29245:39839,29246:39840,29247:39848,29248:39860,29249:39872,29250:39882,29251:39865,29252:39878,29253:39887,29254:39889,29255:39890,29256:39907,29257:39906,29258:39908,29259:39892,29260:39905,29261:39994,29262:39922,29263:39921,29264:39920,29265:39957,29266:39956,29267:39945,29268:39955,29269:39948,29270:39942,29271:39944,29272:39954,29273:39946,29274:39940,29275:39982,29276:39963,29277:39973,29278:39972,29279:39969,29280:39984,29281:40007,29282:39986,29283:40006,29284:39998,29285:40026,29286:40032,29287:40039,29288:40054,29289:40056,29290:40167,29291:40172,29292:40176,29293:40201,29294:40200,29295:40171,29296:40195,29297:40198,29298:40234,29299:40230,29300:40367,29301:40227,29302:40223,29303:40260,29304:40213,29305:40210,29306:40257,29307:40255,29308:40254,29309:40262,29310:40264,29473:40285,29474:40286,29475:40292,29476:40273,29477:40272,29478:40281,29479:40306,29480:40329,29481:40327,29482:40363,29483:40303,29484:40314,29485:40346,29486:40356,29487:40361,29488:40370,29489:40388,29490:40385,29491:40379,29492:40376,29493:40378,29494:40390,29495:40399,29496:40386,29497:40409,29498:40403,29499:40440,29500:40422,29501:40429,29502:40431,29503:40445,29504:40474,29505:40475,29506:40478,29507:40565,29508:40569,29509:40573,29510:40577,29511:40584,29512:40587,29513:40588,29514:40594,29515:40597,29516:40593,29517:40605,29518:40613,29519:40617,29520:40632,29521:40618,29522:40621,29523:38753,29524:40652,29525:40654,29526:40655,29527:40656,29528:40660,29529:40668,29530:40670,29531:40669,29532:40672,29533:40677,29534:40680,29535:40687,29536:40692,29537:40694,29538:40695,29539:40697,29540:40699,29541:40700,29542:40701,29543:40711,29544:40712,29545:30391,29546:40725,29547:40737,29548:40748,29549:40766,29550:40778,29551:40786,29552:40788,29553:40803,29554:40799,29555:40800,29556:40801,29557:40806,29558:40807,29559:40812,29560:40810,29561:40823,29562:40818,29563:40822,29564:40853,29565:40860,29566:40864,29729:22575,29730:27079,29731:36953,29732:29796,29733:20956,29734:29081,31009:32394,31010:35100,31011:37704,31012:37512,31013:34012,31014:20425,31015:28859,31016:26161,31017:26824,31018:37625,31019:26363,31020:24389,31021:20008,31022:20193,31023:20220,31024:20224,31025:20227,31026:20281,31027:20310,31028:20370,31029:20362,31030:20378,31031:20372,31032:20429,31033:20544,31034:20514,31035:20479,31036:20510,31037:20550,31038:20592,31039:20546,31040:20628,31041:20724,31042:20696,31043:20810,31044:20836,31045:20893,31046:20926,31047:20972,31048:21013,31049:21148,31050:21158,31051:21184,31052:21211,31053:21248,31054:21255,31055:21284,31056:21362,31057:21395,31058:21426,31059:21469,31060:64014,31061:21660,31062:21642,31063:21673,31064:21759,31065:21894,31066:22361,31067:22373,31068:22444,31069:22472,31070:22471,31071:64015,31072:64016,31073:22686,31074:22706,31075:22795,31076:22867,31077:22875,31078:22877,31079:22883,31080:22948,31081:22970,31082:23382,31083:23488,31084:29999,31085:23512,31086:23532,31087:23582,31088:23718,31089:23738,31090:23797,31091:23847,31092:23891,31093:64017,31094:23874,31095:23917,31096:23992,31097:23993,31098:24016,31099:24353,31100:24372,31101:24423,31102:24503,31265:24542,31266:24669,31267:24709,31268:24714,31269:24798,31270:24789,31271:24864,31272:24818,31273:24849,31274:24887,31275:24880,31276:24984,31277:25107,31278:25254,31279:25589,31280:25696,31281:25757,31282:25806,31283:25934,31284:26112,31285:26133,31286:26171,31287:26121,31288:26158,31289:26142,31290:26148,31291:26213,31292:26199,31293:26201,31294:64018,31295:26227,31296:26265,31297:26272,31298:26290,31299:26303,31300:26362,31301:26382,31302:63785,31303:26470,31304:26555,31305:26706,31306:26560,31307:26625,31308:26692,31309:26831,31310:64019,31311:26984,31312:64020,31313:27032,31314:27106,31315:27184,31316:27243,31317:27206,31318:27251,31319:27262,31320:27362,31321:27364,31322:27606,31323:27711,31324:27740,31325:27782,31326:27759,31327:27866,31328:27908,31329:28039,31330:28015,31331:28054,31332:28076,31333:28111,31334:28152,31335:28146,31336:28156,31337:28217,31338:28252,31339:28199,31340:28220,31341:28351,31342:28552,31343:28597,31344:28661,31345:28677,31346:28679,31347:28712,31348:28805,31349:28843,31350:28943,31351:28932,31352:29020,31353:28998,31354:28999,31355:64021,31356:29121,31357:29182,31358:29361,31521:29374,31522:29476,31523:64022,31524:29559,31525:29629,31526:29641,31527:29654,31528:29667,31529:29650,31530:29703,31531:29685,31532:29734,31533:29738,31534:29737,31535:29742,31536:29794,31537:29833,31538:29855,31539:29953,31540:30063,31541:30338,31542:30364,31543:30366,31544:30363,31545:30374,31546:64023,31547:30534,31548:21167,31549:30753,31550:30798,31551:30820,31552:30842,31553:31024,31554:64024,31555:64025,31556:64026,31557:31124,31558:64027,31559:31131,31560:31441,31561:31463,31562:64028,31563:31467,31564:31646,31565:64029,31566:32072,31567:32092,31568:32183,31569:32160,31570:32214,31571:32338,31572:32583,31573:32673,31574:64030,31575:33537,31576:33634,31577:33663,31578:33735,31579:33782,31580:33864,31581:33972,31582:34131,31583:34137,31584:34155,31585:64031,31586:34224,31587:64032,31588:64033,31589:34823,31590:35061,31591:35346,31592:35383,31593:35449,31594:35495,31595:35518,31596:35551,31597:64034,31598:35574,31599:35667,31600:35711,31601:36080,31602:36084,31603:36114,31604:36214,31605:64035,31606:36559,31607:64036,31608:64037,31609:36967,31610:37086,31611:64038,31612:37141,31613:37159,31614:37338,31777:37335,31778:37342,31779:37357,31780:37358,31781:37348,31782:37349,31783:37382,31784:37392,31785:37386,31786:37434,31787:37440,31788:37436,31789:37454,31790:37465,31791:37457,31792:37433,31793:37479,31794:37543,31795:37495,31796:37496,31797:37607,31798:37591,31799:37593,31800:37584,31801:64039,31802:37589,31803:37600,31804:37587,31805:37669,31806:37665,31807:37627,31808:64040,31809:37662,31810:37631,31811:37661,31812:37634,31813:37744,31814:37719,31815:37796,31816:37830,31817:37854,31818:37880,31819:37937,31820:37957,31821:37960,31822:38290,31823:63964,31824:64041,31825:38557,31826:38575,31827:38707,31828:38715,31829:38723,31830:38733,31831:38735,31832:38737,31833:38741,31834:38999,31835:39013,31836:64042,31837:64043,31838:39207,31839:64044,31840:39326,31841:39502,31842:39641,31843:39644,31844:39797,31845:39794,31846:39823,31847:39857,31848:39867,31849:39936,31850:40304,31851:40299,31852:64045,31853:40473,31854:40657,31857:8560,31858:8561,31859:8562,31860:8563,31861:8564,31862:8565,31863:8566,31864:8567,31865:8568,31866:8569,31867:65506,31868:65508,31869:65287,31870:65282}","module.exports={8514:8214,8541:8722,8751:728,8752:711,8753:184,8754:729,8755:733,8756:175,8757:731,8758:730,8759:126,8760:900,8761:901,8770:161,8771:166,8772:191,8811:186,8812:170,8813:169,8814:174,8815:8482,8816:164,8817:8470,9825:902,9826:904,9827:905,9828:906,9829:938,9831:908,9833:910,9834:939,9836:911,9841:940,9842:941,9843:942,9844:943,9845:970,9846:912,9847:972,9848:962,9849:973,9850:971,9851:944,9852:974,10050:1026,10051:1027,10052:1028,10053:1029,10054:1030,10055:1031,10056:1032,10057:1033,10058:1034,10059:1035,10060:1036,10061:1038,10062:1039,10098:1106,10099:1107,10100:1108,10101:1109,10102:1110,10103:1111,10104:1112,10105:1113,10106:1114,10107:1115,10108:1116,10109:1118,10110:1119,10529:198,10530:272,10532:294,10534:306,10536:321,10537:319,10539:330,10540:216,10541:338,10543:358,10544:222,10561:230,10562:273,10563:240,10564:295,10565:305,10566:307,10567:312,10568:322,10569:320,10570:329,10571:331,10572:248,10573:339,10574:223,10575:359,10576:254,10785:193,10786:192,10787:196,10788:194,10789:258,10790:461,10791:256,10792:260,10793:197,10794:195,10795:262,10796:264,10797:268,10798:199,10799:266,10800:270,10801:201,10802:200,10803:203,10804:202,10805:282,10806:278,10807:274,10808:280,10810:284,10811:286,10812:290,10813:288,10814:292,10815:205,10816:204,10817:207,10818:206,10819:463,10820:304,10821:298,10822:302,10823:296,10824:308,10825:310,10826:313,10827:317,10828:315,10829:323,10830:327,10831:325,10832:209,10833:211,10834:210,10835:214,10836:212,10837:465,10838:336,10839:332,10840:213,10841:340,10842:344,10843:342,10844:346,10845:348,10846:352,10847:350,10848:356,10849:354,10850:218,10851:217,10852:220,10853:219,10854:364,10855:467,10856:368,10857:362,10858:370,10859:366,10860:360,10861:471,10862:475,10863:473,10864:469,10865:372,10866:221,10867:376,10868:374,10869:377,10870:381,10871:379,11041:225,11042:224,11043:228,11044:226,11045:259,11046:462,11047:257,11048:261,11049:229,11050:227,11051:263,11052:265,11053:269,11054:231,11055:267,11056:271,11057:233,11058:232,11059:235,11060:234,11061:283,11062:279,11063:275,11064:281,11065:501,11066:285,11067:287,11069:289,11070:293,11071:237,11072:236,11073:239,11074:238,11075:464,11077:299,11078:303,11079:297,11080:309,11081:311,11082:314,11083:318,11084:316,11085:324,11086:328,11087:326,11088:241,11089:243,11090:242,11091:246,11092:244,11093:466,11094:337,11095:333,11096:245,11097:341,11098:345,11099:343,11100:347,11101:349,11102:353,11103:351,11104:357,11105:355,11106:250,11107:249,11108:252,11109:251,11110:365,11111:468,11112:369,11113:363,11114:371,11115:367,11116:361,11117:472,11118:476,11119:474,11120:470,11121:373,11122:253,11123:255,11124:375,11125:378,11126:382,11127:380,12321:19970,12322:19972,12323:19973,12324:19980,12325:19986,12326:19999,12327:20003,12328:20004,12329:20008,12330:20011,12331:20014,12332:20015,12333:20016,12334:20021,12335:20032,12336:20033,12337:20036,12338:20039,12339:20049,12340:20058,12341:20060,12342:20067,12343:20072,12344:20073,12345:20084,12346:20085,12347:20089,12348:20095,12349:20109,12350:20118,12351:20119,12352:20125,12353:20143,12354:20153,12355:20163,12356:20176,12357:20186,12358:20187,12359:20192,12360:20193,12361:20194,12362:20200,12363:20207,12364:20209,12365:20211,12366:20213,12367:20221,12368:20222,12369:20223,12370:20224,12371:20226,12372:20227,12373:20232,12374:20235,12375:20236,12376:20242,12377:20245,12378:20246,12379:20247,12380:20249,12381:20270,12382:20273,12383:20320,12384:20275,12385:20277,12386:20279,12387:20281,12388:20283,12389:20286,12390:20288,12391:20290,12392:20296,12393:20297,12394:20299,12395:20300,12396:20306,12397:20308,12398:20310,12399:20312,12400:20319,12401:20323,12402:20330,12403:20332,12404:20334,12405:20337,12406:20343,12407:20344,12408:20345,12409:20346,12410:20349,12411:20350,12412:20353,12413:20354,12414:20356,12577:20357,12578:20361,12579:20362,12580:20364,12581:20366,12582:20368,12583:20370,12584:20371,12585:20372,12586:20375,12587:20377,12588:20378,12589:20382,12590:20383,12591:20402,12592:20407,12593:20409,12594:20411,12595:20412,12596:20413,12597:20414,12598:20416,12599:20417,12600:20421,12601:20422,12602:20424,12603:20425,12604:20427,12605:20428,12606:20429,12607:20431,12608:20434,12609:20444,12610:20448,12611:20450,12612:20464,12613:20466,12614:20476,12615:20477,12616:20479,12617:20480,12618:20481,12619:20484,12620:20487,12621:20490,12622:20492,12623:20494,12624:20496,12625:20499,12626:20503,12627:20504,12628:20507,12629:20508,12630:20509,12631:20510,12632:20514,12633:20519,12634:20526,12635:20528,12636:20530,12637:20531,12638:20533,12639:20544,12640:20545,12641:20546,12642:20549,12643:20550,12644:20554,12645:20556,12646:20558,12647:20561,12648:20562,12649:20563,12650:20567,12651:20569,12652:20575,12653:20576,12654:20578,12655:20579,12656:20582,12657:20583,12658:20586,12659:20589,12660:20592,12661:20593,12662:20539,12663:20609,12664:20611,12665:20612,12666:20614,12667:20618,12668:20622,12669:20623,12670:20624,12833:20626,12834:20627,12835:20628,12836:20630,12837:20635,12838:20636,12839:20638,12840:20639,12841:20640,12842:20641,12843:20642,12844:20650,12845:20655,12846:20656,12847:20665,12848:20666,12849:20669,12850:20672,12851:20675,12852:20676,12853:20679,12854:20684,12855:20686,12856:20688,12857:20691,12858:20692,12859:20696,12860:20700,12861:20701,12862:20703,12863:20706,12864:20708,12865:20710,12866:20712,12867:20713,12868:20719,12869:20721,12870:20726,12871:20730,12872:20734,12873:20739,12874:20742,12875:20743,12876:20744,12877:20747,12878:20748,12879:20749,12880:20750,12881:20722,12882:20752,12883:20759,12884:20761,12885:20763,12886:20764,12887:20765,12888:20766,12889:20771,12890:20775,12891:20776,12892:20780,12893:20781,12894:20783,12895:20785,12896:20787,12897:20788,12898:20789,12899:20792,12900:20793,12901:20802,12902:20810,12903:20815,12904:20819,12905:20821,12906:20823,12907:20824,12908:20831,12909:20836,12910:20838,12911:20862,12912:20867,12913:20868,12914:20875,12915:20878,12916:20888,12917:20893,12918:20897,12919:20899,12920:20909,12921:20920,12922:20922,12923:20924,12924:20926,12925:20927,12926:20930,13089:20936,13090:20943,13091:20945,13092:20946,13093:20947,13094:20949,13095:20952,13096:20958,13097:20962,13098:20965,13099:20974,13100:20978,13101:20979,13102:20980,13103:20983,13104:20993,13105:20994,13106:20997,13107:21010,13108:21011,13109:21013,13110:21014,13111:21016,13112:21026,13113:21032,13114:21041,13115:21042,13116:21045,13117:21052,13118:21061,13119:21065,13120:21077,13121:21079,13122:21080,13123:21082,13124:21084,13125:21087,13126:21088,13127:21089,13128:21094,13129:21102,13130:21111,13131:21112,13132:21113,13133:21120,13134:21122,13135:21125,13136:21130,13137:21132,13138:21139,13139:21141,13140:21142,13141:21143,13142:21144,13143:21146,13144:21148,13145:21156,13146:21157,13147:21158,13148:21159,13149:21167,13150:21168,13151:21174,13152:21175,13153:21176,13154:21178,13155:21179,13156:21181,13157:21184,13158:21188,13159:21190,13160:21192,13161:21196,13162:21199,13163:21201,13164:21204,13165:21206,13166:21211,13167:21212,13168:21217,13169:21221,13170:21224,13171:21225,13172:21226,13173:21228,13174:21232,13175:21233,13176:21236,13177:21238,13178:21239,13179:21248,13180:21251,13181:21258,13182:21259,13345:21260,13346:21265,13347:21267,13348:21272,13349:21275,13350:21276,13351:21278,13352:21279,13353:21285,13354:21287,13355:21288,13356:21289,13357:21291,13358:21292,13359:21293,13360:21296,13361:21298,13362:21301,13363:21308,13364:21309,13365:21310,13366:21314,13367:21324,13368:21323,13369:21337,13370:21339,13371:21345,13372:21347,13373:21349,13374:21356,13375:21357,13376:21362,13377:21369,13378:21374,13379:21379,13380:21383,13381:21384,13382:21390,13383:21395,13384:21396,13385:21401,13386:21405,13387:21409,13388:21412,13389:21418,13390:21419,13391:21423,13392:21426,13393:21428,13394:21429,13395:21431,13396:21432,13397:21434,13398:21437,13399:21440,13400:21445,13401:21455,13402:21458,13403:21459,13404:21461,13405:21466,13406:21469,13407:21470,13408:21472,13409:21478,13410:21479,13411:21493,13412:21506,13413:21523,13414:21530,13415:21537,13416:21543,13417:21544,13418:21546,13419:21551,13420:21553,13421:21556,13422:21557,13423:21571,13424:21572,13425:21575,13426:21581,13427:21583,13428:21598,13429:21602,13430:21604,13431:21606,13432:21607,13433:21609,13434:21611,13435:21613,13436:21614,13437:21620,13438:21631,13601:21633,13602:21635,13603:21637,13604:21640,13605:21641,13606:21645,13607:21649,13608:21653,13609:21654,13610:21660,13611:21663,13612:21665,13613:21670,13614:21671,13615:21673,13616:21674,13617:21677,13618:21678,13619:21681,13620:21687,13621:21689,13622:21690,13623:21691,13624:21695,13625:21702,13626:21706,13627:21709,13628:21710,13629:21728,13630:21738,13631:21740,13632:21743,13633:21750,13634:21756,13635:21758,13636:21759,13637:21760,13638:21761,13639:21765,13640:21768,13641:21769,13642:21772,13643:21773,13644:21774,13645:21781,13646:21802,13647:21803,13648:21810,13649:21813,13650:21814,13651:21819,13652:21820,13653:21821,13654:21825,13655:21831,13656:21833,13657:21834,13658:21837,13659:21840,13660:21841,13661:21848,13662:21850,13663:21851,13664:21854,13665:21856,13666:21857,13667:21860,13668:21862,13669:21887,13670:21889,13671:21890,13672:21894,13673:21896,13674:21902,13675:21903,13676:21905,13677:21906,13678:21907,13679:21908,13680:21911,13681:21923,13682:21924,13683:21933,13684:21938,13685:21951,13686:21953,13687:21955,13688:21958,13689:21961,13690:21963,13691:21964,13692:21966,13693:21969,13694:21970,13857:21971,13858:21975,13859:21976,13860:21979,13861:21982,13862:21986,13863:21993,13864:22006,13865:22015,13866:22021,13867:22024,13868:22026,13869:22029,13870:22030,13871:22031,13872:22032,13873:22033,13874:22034,13875:22041,13876:22060,13877:22064,13878:22067,13879:22069,13880:22071,13881:22073,13882:22075,13883:22076,13884:22077,13885:22079,13886:22080,13887:22081,13888:22083,13889:22084,13890:22086,13891:22089,13892:22091,13893:22093,13894:22095,13895:22100,13896:22110,13897:22112,13898:22113,13899:22114,13900:22115,13901:22118,13902:22121,13903:22125,13904:22127,13905:22129,13906:22130,13907:22133,13908:22148,13909:22149,13910:22152,13911:22155,13912:22156,13913:22165,13914:22169,13915:22170,13916:22173,13917:22174,13918:22175,13919:22182,13920:22183,13921:22184,13922:22185,13923:22187,13924:22188,13925:22189,13926:22193,13927:22195,13928:22199,13929:22206,13930:22213,13931:22217,13932:22218,13933:22219,13934:22223,13935:22224,13936:22220,13937:22221,13938:22233,13939:22236,13940:22237,13941:22239,13942:22241,13943:22244,13944:22245,13945:22246,13946:22247,13947:22248,13948:22257,13949:22251,13950:22253,14113:22262,14114:22263,14115:22273,14116:22274,14117:22279,14118:22282,14119:22284,14120:22289,14121:22293,14122:22298,14123:22299,14124:22301,14125:22304,14126:22306,14127:22307,14128:22308,14129:22309,14130:22313,14131:22314,14132:22316,14133:22318,14134:22319,14135:22323,14136:22324,14137:22333,14138:22334,14139:22335,14140:22341,14141:22342,14142:22348,14143:22349,14144:22354,14145:22370,14146:22373,14147:22375,14148:22376,14149:22379,14150:22381,14151:22382,14152:22383,14153:22384,14154:22385,14155:22387,14156:22388,14157:22389,14158:22391,14159:22393,14160:22394,14161:22395,14162:22396,14163:22398,14164:22401,14165:22403,14166:22412,14167:22420,14168:22423,14169:22425,14170:22426,14171:22428,14172:22429,14173:22430,14174:22431,14175:22433,14176:22421,14177:22439,14178:22440,14179:22441,14180:22444,14181:22456,14182:22461,14183:22471,14184:22472,14185:22476,14186:22479,14187:22485,14188:22493,14189:22494,14190:22500,14191:22502,14192:22503,14193:22505,14194:22509,14195:22512,14196:22517,14197:22518,14198:22520,14199:22525,14200:22526,14201:22527,14202:22531,14203:22532,14204:22536,14205:22537,14206:22497,14369:22540,14370:22541,14371:22555,14372:22558,14373:22559,14374:22560,14375:22566,14376:22567,14377:22573,14378:22578,14379:22585,14380:22591,14381:22601,14382:22604,14383:22605,14384:22607,14385:22608,14386:22613,14387:22623,14388:22625,14389:22628,14390:22631,14391:22632,14392:22648,14393:22652,14394:22655,14395:22656,14396:22657,14397:22663,14398:22664,14399:22665,14400:22666,14401:22668,14402:22669,14403:22671,14404:22672,14405:22676,14406:22678,14407:22685,14408:22688,14409:22689,14410:22690,14411:22694,14412:22697,14413:22705,14414:22706,14415:22724,14416:22716,14417:22722,14418:22728,14419:22733,14420:22734,14421:22736,14422:22738,14423:22740,14424:22742,14425:22746,14426:22749,14427:22753,14428:22754,14429:22761,14430:22771,14431:22789,14432:22790,14433:22795,14434:22796,14435:22802,14436:22803,14437:22804,14438:34369,14439:22813,14440:22817,14441:22819,14442:22820,14443:22824,14444:22831,14445:22832,14446:22835,14447:22837,14448:22838,14449:22847,14450:22851,14451:22854,14452:22866,14453:22867,14454:22873,14455:22875,14456:22877,14457:22878,14458:22879,14459:22881,14460:22883,14461:22891,14462:22893,14625:22895,14626:22898,14627:22901,14628:22902,14629:22905,14630:22907,14631:22908,14632:22923,14633:22924,14634:22926,14635:22930,14636:22933,14637:22935,14638:22943,14639:22948,14640:22951,14641:22957,14642:22958,14643:22959,14644:22960,14645:22963,14646:22967,14647:22970,14648:22972,14649:22977,14650:22979,14651:22980,14652:22984,14653:22986,14654:22989,14655:22994,14656:23005,14657:23006,14658:23007,14659:23011,14660:23012,14661:23015,14662:23022,14663:23023,14664:23025,14665:23026,14666:23028,14667:23031,14668:23040,14669:23044,14670:23052,14671:23053,14672:23054,14673:23058,14674:23059,14675:23070,14676:23075,14677:23076,14678:23079,14679:23080,14680:23082,14681:23085,14682:23088,14683:23108,14684:23109,14685:23111,14686:23112,14687:23116,14688:23120,14689:23125,14690:23134,14691:23139,14692:23141,14693:23143,14694:23149,14695:23159,14696:23162,14697:23163,14698:23166,14699:23179,14700:23184,14701:23187,14702:23190,14703:23193,14704:23196,14705:23198,14706:23199,14707:23200,14708:23202,14709:23207,14710:23212,14711:23217,14712:23218,14713:23219,14714:23221,14715:23224,14716:23226,14717:23227,14718:23231,14881:23236,14882:23238,14883:23240,14884:23247,14885:23258,14886:23260,14887:23264,14888:23269,14889:23274,14890:23278,14891:23285,14892:23286,14893:23293,14894:23296,14895:23297,14896:23304,14897:23319,14898:23348,14899:23321,14900:23323,14901:23325,14902:23329,14903:23333,14904:23341,14905:23352,14906:23361,14907:23371,14908:23372,14909:23378,14910:23382,14911:23390,14912:23400,14913:23406,14914:23407,14915:23420,14916:23421,14917:23422,14918:23423,14919:23425,14920:23428,14921:23430,14922:23434,14923:23438,14924:23440,14925:23441,14926:23443,14927:23444,14928:23446,14929:23464,14930:23465,14931:23468,14932:23469,14933:23471,14934:23473,14935:23474,14936:23479,14937:23482,14938:23484,14939:23488,14940:23489,14941:23501,14942:23503,14943:23510,14944:23511,14945:23512,14946:23513,14947:23514,14948:23520,14949:23535,14950:23537,14951:23540,14952:23549,14953:23564,14954:23575,14955:23582,14956:23583,14957:23587,14958:23590,14959:23593,14960:23595,14961:23596,14962:23598,14963:23600,14964:23602,14965:23605,14966:23606,14967:23641,14968:23642,14969:23644,14970:23650,14971:23651,14972:23655,14973:23656,14974:23657,15137:23661,15138:23664,15139:23668,15140:23669,15141:23674,15142:23675,15143:23676,15144:23677,15145:23687,15146:23688,15147:23690,15148:23695,15149:23698,15150:23709,15151:23711,15152:23712,15153:23714,15154:23715,15155:23718,15156:23722,15157:23730,15158:23732,15159:23733,15160:23738,15161:23753,15162:23755,15163:23762,15164:23773,15165:23767,15166:23790,15167:23793,15168:23794,15169:23796,15170:23809,15171:23814,15172:23821,15173:23826,15174:23851,15175:23843,15176:23844,15177:23846,15178:23847,15179:23857,15180:23860,15181:23865,15182:23869,15183:23871,15184:23874,15185:23875,15186:23878,15187:23880,15188:23893,15189:23889,15190:23897,15191:23882,15192:23903,15193:23904,15194:23905,15195:23906,15196:23908,15197:23914,15198:23917,15199:23920,15200:23929,15201:23930,15202:23934,15203:23935,15204:23937,15205:23939,15206:23944,15207:23946,15208:23954,15209:23955,15210:23956,15211:23957,15212:23961,15213:23963,15214:23967,15215:23968,15216:23975,15217:23979,15218:23984,15219:23988,15220:23992,15221:23993,15222:24003,15223:24007,15224:24011,15225:24016,15226:24014,15227:24024,15228:24025,15229:24032,15230:24036,15393:24041,15394:24056,15395:24057,15396:24064,15397:24071,15398:24077,15399:24082,15400:24084,15401:24085,15402:24088,15403:24095,15404:24096,15405:24110,15406:24104,15407:24114,15408:24117,15409:24126,15410:24139,15411:24144,15412:24137,15413:24145,15414:24150,15415:24152,15416:24155,15417:24156,15418:24158,15419:24168,15420:24170,15421:24171,15422:24172,15423:24173,15424:24174,15425:24176,15426:24192,15427:24203,15428:24206,15429:24226,15430:24228,15431:24229,15432:24232,15433:24234,15434:24236,15435:24241,15436:24243,15437:24253,15438:24254,15439:24255,15440:24262,15441:24268,15442:24267,15443:24270,15444:24273,15445:24274,15446:24276,15447:24277,15448:24284,15449:24286,15450:24293,15451:24299,15452:24322,15453:24326,15454:24327,15455:24328,15456:24334,15457:24345,15458:24348,15459:24349,15460:24353,15461:24354,15462:24355,15463:24356,15464:24360,15465:24363,15466:24364,15467:24366,15468:24368,15469:24372,15470:24374,15471:24379,15472:24381,15473:24383,15474:24384,15475:24388,15476:24389,15477:24391,15478:24397,15479:24400,15480:24404,15481:24408,15482:24411,15483:24416,15484:24419,15485:24420,15486:24423,15649:24431,15650:24434,15651:24436,15652:24437,15653:24440,15654:24442,15655:24445,15656:24446,15657:24457,15658:24461,15659:24463,15660:24470,15661:24476,15662:24477,15663:24482,15664:24487,15665:24491,15666:24484,15667:24492,15668:24495,15669:24496,15670:24497,15671:24504,15672:24516,15673:24519,15674:24520,15675:24521,15676:24523,15677:24528,15678:24529,15679:24530,15680:24531,15681:24532,15682:24542,15683:24545,15684:24546,15685:24552,15686:24553,15687:24554,15688:24556,15689:24557,15690:24558,15691:24559,15692:24562,15693:24563,15694:24566,15695:24570,15696:24572,15697:24583,15698:24586,15699:24589,15700:24595,15701:24596,15702:24599,15703:24600,15704:24602,15705:24607,15706:24612,15707:24621,15708:24627,15709:24629,15710:24640,15711:24647,15712:24648,15713:24649,15714:24652,15715:24657,15716:24660,15717:24662,15718:24663,15719:24669,15720:24673,15721:24679,15722:24689,15723:24702,15724:24703,15725:24706,15726:24710,15727:24712,15728:24714,15729:24718,15730:24721,15731:24723,15732:24725,15733:24728,15734:24733,15735:24734,15736:24738,15737:24740,15738:24741,15739:24744,15740:24752,15741:24753,15742:24759,15905:24763,15906:24766,15907:24770,15908:24772,15909:24776,15910:24777,15911:24778,15912:24779,15913:24782,15914:24783,15915:24788,15916:24789,15917:24793,15918:24795,15919:24797,15920:24798,15921:24802,15922:24805,15923:24818,15924:24821,15925:24824,15926:24828,15927:24829,15928:24834,15929:24839,15930:24842,15931:24844,15932:24848,15933:24849,15934:24850,15935:24851,15936:24852,15937:24854,15938:24855,15939:24857,15940:24860,15941:24862,15942:24866,15943:24874,15944:24875,15945:24880,15946:24881,15947:24885,15948:24886,15949:24887,15950:24889,15951:24897,15952:24901,15953:24902,15954:24905,15955:24926,15956:24928,15957:24940,15958:24946,15959:24952,15960:24955,15961:24956,15962:24959,15963:24960,15964:24961,15965:24963,15966:24964,15967:24971,15968:24973,15969:24978,15970:24979,15971:24983,15972:24984,15973:24988,15974:24989,15975:24991,15976:24992,15977:24997,15978:25000,15979:25002,15980:25005,15981:25016,15982:25017,15983:25020,15984:25024,15985:25025,15986:25026,15987:25038,15988:25039,15989:25045,15990:25052,15991:25053,15992:25054,15993:25055,15994:25057,15995:25058,15996:25063,15997:25065,15998:25061,16161:25068,16162:25069,16163:25071,16164:25089,16165:25091,16166:25092,16167:25095,16168:25107,16169:25109,16170:25116,16171:25120,16172:25122,16173:25123,16174:25127,16175:25129,16176:25131,16177:25145,16178:25149,16179:25154,16180:25155,16181:25156,16182:25158,16183:25164,16184:25168,16185:25169,16186:25170,16187:25172,16188:25174,16189:25178,16190:25180,16191:25188,16192:25197,16193:25199,16194:25203,16195:25210,16196:25213,16197:25229,16198:25230,16199:25231,16200:25232,16201:25254,16202:25256,16203:25267,16204:25270,16205:25271,16206:25274,16207:25278,16208:25279,16209:25284,16210:25294,16211:25301,16212:25302,16213:25306,16214:25322,16215:25330,16216:25332,16217:25340,16218:25341,16219:25347,16220:25348,16221:25354,16222:25355,16223:25357,16224:25360,16225:25363,16226:25366,16227:25368,16228:25385,16229:25386,16230:25389,16231:25397,16232:25398,16233:25401,16234:25404,16235:25409,16236:25410,16237:25411,16238:25412,16239:25414,16240:25418,16241:25419,16242:25422,16243:25426,16244:25427,16245:25428,16246:25432,16247:25435,16248:25445,16249:25446,16250:25452,16251:25453,16252:25457,16253:25460,16254:25461,16417:25464,16418:25468,16419:25469,16420:25471,16421:25474,16422:25476,16423:25479,16424:25482,16425:25488,16426:25492,16427:25493,16428:25497,16429:25498,16430:25502,16431:25508,16432:25510,16433:25517,16434:25518,16435:25519,16436:25533,16437:25537,16438:25541,16439:25544,16440:25550,16441:25553,16442:25555,16443:25556,16444:25557,16445:25564,16446:25568,16447:25573,16448:25578,16449:25580,16450:25586,16451:25587,16452:25589,16453:25592,16454:25593,16455:25609,16456:25610,16457:25616,16458:25618,16459:25620,16460:25624,16461:25630,16462:25632,16463:25634,16464:25636,16465:25637,16466:25641,16467:25642,16468:25647,16469:25648,16470:25653,16471:25661,16472:25663,16473:25675,16474:25679,16475:25681,16476:25682,16477:25683,16478:25684,16479:25690,16480:25691,16481:25692,16482:25693,16483:25695,16484:25696,16485:25697,16486:25699,16487:25709,16488:25715,16489:25716,16490:25723,16491:25725,16492:25733,16493:25735,16494:25743,16495:25744,16496:25745,16497:25752,16498:25753,16499:25755,16500:25757,16501:25759,16502:25761,16503:25763,16504:25766,16505:25768,16506:25772,16507:25779,16508:25789,16509:25790,16510:25791,16673:25796,16674:25801,16675:25802,16676:25803,16677:25804,16678:25806,16679:25808,16680:25809,16681:25813,16682:25815,16683:25828,16684:25829,16685:25833,16686:25834,16687:25837,16688:25840,16689:25845,16690:25847,16691:25851,16692:25855,16693:25857,16694:25860,16695:25864,16696:25865,16697:25866,16698:25871,16699:25875,16700:25876,16701:25878,16702:25881,16703:25883,16704:25886,16705:25887,16706:25890,16707:25894,16708:25897,16709:25902,16710:25905,16711:25914,16712:25916,16713:25917,16714:25923,16715:25927,16716:25929,16717:25936,16718:25938,16719:25940,16720:25951,16721:25952,16722:25959,16723:25963,16724:25978,16725:25981,16726:25985,16727:25989,16728:25994,16729:26002,16730:26005,16731:26008,16732:26013,16733:26016,16734:26019,16735:26022,16736:26030,16737:26034,16738:26035,16739:26036,16740:26047,16741:26050,16742:26056,16743:26057,16744:26062,16745:26064,16746:26068,16747:26070,16748:26072,16749:26079,16750:26096,16751:26098,16752:26100,16753:26101,16754:26105,16755:26110,16756:26111,16757:26112,16758:26116,16759:26120,16760:26121,16761:26125,16762:26129,16763:26130,16764:26133,16765:26134,16766:26141,16929:26142,16930:26145,16931:26146,16932:26147,16933:26148,16934:26150,16935:26153,16936:26154,16937:26155,16938:26156,16939:26158,16940:26160,16941:26161,16942:26163,16943:26169,16944:26167,16945:26176,16946:26181,16947:26182,16948:26186,16949:26188,16950:26193,16951:26190,16952:26199,16953:26200,16954:26201,16955:26203,16956:26204,16957:26208,16958:26209,16959:26363,16960:26218,16961:26219,16962:26220,16963:26238,16964:26227,16965:26229,16966:26239,16967:26231,16968:26232,16969:26233,16970:26235,16971:26240,16972:26236,16973:26251,16974:26252,16975:26253,16976:26256,16977:26258,16978:26265,16979:26266,16980:26267,16981:26268,16982:26271,16983:26272,16984:26276,16985:26285,16986:26289,16987:26290,16988:26293,16989:26299,16990:26303,16991:26304,16992:26306,16993:26307,16994:26312,16995:26316,16996:26318,16997:26319,16998:26324,16999:26331,17000:26335,17001:26344,17002:26347,17003:26348,17004:26350,17005:26362,17006:26373,17007:26375,17008:26382,17009:26387,17010:26393,17011:26396,17012:26400,17013:26402,17014:26419,17015:26430,17016:26437,17017:26439,17018:26440,17019:26444,17020:26452,17021:26453,17022:26461,17185:26470,17186:26476,17187:26478,17188:26484,17189:26486,17190:26491,17191:26497,17192:26500,17193:26510,17194:26511,17195:26513,17196:26515,17197:26518,17198:26520,17199:26521,17200:26523,17201:26544,17202:26545,17203:26546,17204:26549,17205:26555,17206:26556,17207:26557,17208:26617,17209:26560,17210:26562,17211:26563,17212:26565,17213:26568,17214:26569,17215:26578,17216:26583,17217:26585,17218:26588,17219:26593,17220:26598,17221:26608,17222:26610,17223:26614,17224:26615,17225:26706,17226:26644,17227:26649,17228:26653,17229:26655,17230:26664,17231:26663,17232:26668,17233:26669,17234:26671,17235:26672,17236:26673,17237:26675,17238:26683,17239:26687,17240:26692,17241:26693,17242:26698,17243:26700,17244:26709,17245:26711,17246:26712,17247:26715,17248:26731,17249:26734,17250:26735,17251:26736,17252:26737,17253:26738,17254:26741,17255:26745,17256:26746,17257:26747,17258:26748,17259:26754,17260:26756,17261:26758,17262:26760,17263:26774,17264:26776,17265:26778,17266:26780,17267:26785,17268:26787,17269:26789,17270:26793,17271:26794,17272:26798,17273:26802,17274:26811,17275:26821,17276:26824,17277:26828,17278:26831,17441:26832,17442:26833,17443:26835,17444:26838,17445:26841,17446:26844,17447:26845,17448:26853,17449:26856,17450:26858,17451:26859,17452:26860,17453:26861,17454:26864,17455:26865,17456:26869,17457:26870,17458:26875,17459:26876,17460:26877,17461:26886,17462:26889,17463:26890,17464:26896,17465:26897,17466:26899,17467:26902,17468:26903,17469:26929,17470:26931,17471:26933,17472:26936,17473:26939,17474:26946,17475:26949,17476:26953,17477:26958,17478:26967,17479:26971,17480:26979,17481:26980,17482:26981,17483:26982,17484:26984,17485:26985,17486:26988,17487:26992,17488:26993,17489:26994,17490:27002,17491:27003,17492:27007,17493:27008,17494:27021,17495:27026,17496:27030,17497:27032,17498:27041,17499:27045,17500:27046,17501:27048,17502:27051,17503:27053,17504:27055,17505:27063,17506:27064,17507:27066,17508:27068,17509:27077,17510:27080,17511:27089,17512:27094,17513:27095,17514:27106,17515:27109,17516:27118,17517:27119,17518:27121,17519:27123,17520:27125,17521:27134,17522:27136,17523:27137,17524:27139,17525:27151,17526:27153,17527:27157,17528:27162,17529:27165,17530:27168,17531:27172,17532:27176,17533:27184,17534:27186,17697:27188,17698:27191,17699:27195,17700:27198,17701:27199,17702:27205,17703:27206,17704:27209,17705:27210,17706:27214,17707:27216,17708:27217,17709:27218,17710:27221,17711:27222,17712:27227,17713:27236,17714:27239,17715:27242,17716:27249,17717:27251,17718:27262,17719:27265,17720:27267,17721:27270,17722:27271,17723:27273,17724:27275,17725:27281,17726:27291,17727:27293,17728:27294,17729:27295,17730:27301,17731:27307,17732:27311,17733:27312,17734:27313,17735:27316,17736:27325,17737:27326,17738:27327,17739:27334,17740:27337,17741:27336,17742:27340,17743:27344,17744:27348,17745:27349,17746:27350,17747:27356,17748:27357,17749:27364,17750:27367,17751:27372,17752:27376,17753:27377,17754:27378,17755:27388,17756:27389,17757:27394,17758:27395,17759:27398,17760:27399,17761:27401,17762:27407,17763:27408,17764:27409,17765:27415,17766:27419,17767:27422,17768:27428,17769:27432,17770:27435,17771:27436,17772:27439,17773:27445,17774:27446,17775:27451,17776:27455,17777:27462,17778:27466,17779:27469,17780:27474,17781:27478,17782:27480,17783:27485,17784:27488,17785:27495,17786:27499,17787:27502,17788:27504,17789:27509,17790:27517,17953:27518,17954:27522,17955:27525,17956:27543,17957:27547,17958:27551,17959:27552,17960:27554,17961:27555,17962:27560,17963:27561,17964:27564,17965:27565,17966:27566,17967:27568,17968:27576,17969:27577,17970:27581,17971:27582,17972:27587,17973:27588,17974:27593,17975:27596,17976:27606,17977:27610,17978:27617,17979:27619,17980:27622,17981:27623,17982:27630,17983:27633,17984:27639,17985:27641,17986:27647,17987:27650,17988:27652,17989:27653,17990:27657,17991:27661,17992:27662,17993:27664,17994:27666,17995:27673,17996:27679,17997:27686,17998:27687,17999:27688,18000:27692,18001:27694,18002:27699,18003:27701,18004:27702,18005:27706,18006:27707,18007:27711,18008:27722,18009:27723,18010:27725,18011:27727,18012:27730,18013:27732,18014:27737,18015:27739,18016:27740,18017:27755,18018:27757,18019:27759,18020:27764,18021:27766,18022:27768,18023:27769,18024:27771,18025:27781,18026:27782,18027:27783,18028:27785,18029:27796,18030:27797,18031:27799,18032:27800,18033:27804,18034:27807,18035:27824,18036:27826,18037:27828,18038:27842,18039:27846,18040:27853,18041:27855,18042:27856,18043:27857,18044:27858,18045:27860,18046:27862,18209:27866,18210:27868,18211:27872,18212:27879,18213:27881,18214:27883,18215:27884,18216:27886,18217:27890,18218:27892,18219:27908,18220:27911,18221:27914,18222:27918,18223:27919,18224:27921,18225:27923,18226:27930,18227:27942,18228:27943,18229:27944,18230:27751,18231:27950,18232:27951,18233:27953,18234:27961,18235:27964,18236:27967,18237:27991,18238:27998,18239:27999,18240:28001,18241:28005,18242:28007,18243:28015,18244:28016,18245:28028,18246:28034,18247:28039,18248:28049,18249:28050,18250:28052,18251:28054,18252:28055,18253:28056,18254:28074,18255:28076,18256:28084,18257:28087,18258:28089,18259:28093,18260:28095,18261:28100,18262:28104,18263:28106,18264:28110,18265:28111,18266:28118,18267:28123,18268:28125,18269:28127,18270:28128,18271:28130,18272:28133,18273:28137,18274:28143,18275:28144,18276:28148,18277:28150,18278:28156,18279:28160,18280:28164,18281:28190,18282:28194,18283:28199,18284:28210,18285:28214,18286:28217,18287:28219,18288:28220,18289:28228,18290:28229,18291:28232,18292:28233,18293:28235,18294:28239,18295:28241,18296:28242,18297:28243,18298:28244,18299:28247,18300:28252,18301:28253,18302:28254,18465:28258,18466:28259,18467:28264,18468:28275,18469:28283,18470:28285,18471:28301,18472:28307,18473:28313,18474:28320,18475:28327,18476:28333,18477:28334,18478:28337,18479:28339,18480:28347,18481:28351,18482:28352,18483:28353,18484:28355,18485:28359,18486:28360,18487:28362,18488:28365,18489:28366,18490:28367,18491:28395,18492:28397,18493:28398,18494:28409,18495:28411,18496:28413,18497:28420,18498:28424,18499:28426,18500:28428,18501:28429,18502:28438,18503:28440,18504:28442,18505:28443,18506:28454,18507:28457,18508:28458,18509:28463,18510:28464,18511:28467,18512:28470,18513:28475,18514:28476,18515:28461,18516:28495,18517:28497,18518:28498,18519:28499,18520:28503,18521:28505,18522:28506,18523:28509,18524:28510,18525:28513,18526:28514,18527:28520,18528:28524,18529:28541,18530:28542,18531:28547,18532:28551,18533:28552,18534:28555,18535:28556,18536:28557,18537:28560,18538:28562,18539:28563,18540:28564,18541:28566,18542:28570,18543:28575,18544:28576,18545:28581,18546:28582,18547:28583,18548:28584,18549:28590,18550:28591,18551:28592,18552:28597,18553:28598,18554:28604,18555:28613,18556:28615,18557:28616,18558:28618,18721:28634,18722:28638,18723:28648,18724:28649,18725:28656,18726:28661,18727:28665,18728:28668,18729:28669,18730:28672,18731:28677,18732:28678,18733:28679,18734:28685,18735:28695,18736:28704,18737:28707,18738:28719,18739:28724,18740:28727,18741:28729,18742:28732,18743:28739,18744:28740,18745:28744,18746:28745,18747:28746,18748:28747,18749:28756,18750:28757,18751:28765,18752:28766,18753:28750,18754:28772,18755:28773,18756:28780,18757:28782,18758:28789,18759:28790,18760:28798,18761:28801,18762:28805,18763:28806,18764:28820,18765:28821,18766:28822,18767:28823,18768:28824,18769:28827,18770:28836,18771:28843,18772:28848,18773:28849,18774:28852,18775:28855,18776:28874,18777:28881,18778:28883,18779:28884,18780:28885,18781:28886,18782:28888,18783:28892,18784:28900,18785:28922,18786:28931,18787:28932,18788:28933,18789:28934,18790:28935,18791:28939,18792:28940,18793:28943,18794:28958,18795:28960,18796:28971,18797:28973,18798:28975,18799:28976,18800:28977,18801:28984,18802:28993,18803:28997,18804:28998,18805:28999,18806:29002,18807:29003,18808:29008,18809:29010,18810:29015,18811:29018,18812:29020,18813:29022,18814:29024,18977:29032,18978:29049,18979:29056,18980:29061,18981:29063,18982:29068,18983:29074,18984:29082,18985:29083,18986:29088,18987:29090,18988:29103,18989:29104,18990:29106,18991:29107,18992:29114,18993:29119,18994:29120,18995:29121,18996:29124,18997:29131,18998:29132,18999:29139,19000:29142,19001:29145,19002:29146,19003:29148,19004:29176,19005:29182,19006:29184,19007:29191,19008:29192,19009:29193,19010:29203,19011:29207,19012:29210,19013:29213,19014:29215,19015:29220,19016:29227,19017:29231,19018:29236,19019:29240,19020:29241,19021:29249,19022:29250,19023:29251,19024:29253,19025:29262,19026:29263,19027:29264,19028:29267,19029:29269,19030:29270,19031:29274,19032:29276,19033:29278,19034:29280,19035:29283,19036:29288,19037:29291,19038:29294,19039:29295,19040:29297,19041:29303,19042:29304,19043:29307,19044:29308,19045:29311,19046:29316,19047:29321,19048:29325,19049:29326,19050:29331,19051:29339,19052:29352,19053:29357,19054:29358,19055:29361,19056:29364,19057:29374,19058:29377,19059:29383,19060:29385,19061:29388,19062:29397,19063:29398,19064:29400,19065:29407,19066:29413,19067:29427,19068:29428,19069:29434,19070:29435,19233:29438,19234:29442,19235:29444,19236:29445,19237:29447,19238:29451,19239:29453,19240:29458,19241:29459,19242:29464,19243:29465,19244:29470,19245:29474,19246:29476,19247:29479,19248:29480,19249:29484,19250:29489,19251:29490,19252:29493,19253:29498,19254:29499,19255:29501,19256:29507,19257:29517,19258:29520,19259:29522,19260:29526,19261:29528,19262:29533,19263:29534,19264:29535,19265:29536,19266:29542,19267:29543,19268:29545,19269:29547,19270:29548,19271:29550,19272:29551,19273:29553,19274:29559,19275:29561,19276:29564,19277:29568,19278:29569,19279:29571,19280:29573,19281:29574,19282:29582,19283:29584,19284:29587,19285:29589,19286:29591,19287:29592,19288:29596,19289:29598,19290:29599,19291:29600,19292:29602,19293:29605,19294:29606,19295:29610,19296:29611,19297:29613,19298:29621,19299:29623,19300:29625,19301:29628,19302:29629,19303:29631,19304:29637,19305:29638,19306:29641,19307:29643,19308:29644,19309:29647,19310:29650,19311:29651,19312:29654,19313:29657,19314:29661,19315:29665,19316:29667,19317:29670,19318:29671,19319:29673,19320:29684,19321:29685,19322:29687,19323:29689,19324:29690,19325:29691,19326:29693,19489:29695,19490:29696,19491:29697,19492:29700,19493:29703,19494:29706,19495:29713,19496:29722,19497:29723,19498:29732,19499:29734,19500:29736,19501:29737,19502:29738,19503:29739,19504:29740,19505:29741,19506:29742,19507:29743,19508:29744,19509:29745,19510:29753,19511:29760,19512:29763,19513:29764,19514:29766,19515:29767,19516:29771,19517:29773,19518:29777,19519:29778,19520:29783,19521:29789,19522:29794,19523:29798,19524:29799,19525:29800,19526:29803,19527:29805,19528:29806,19529:29809,19530:29810,19531:29824,19532:29825,19533:29829,19534:29830,19535:29831,19536:29833,19537:29839,19538:29840,19539:29841,19540:29842,19541:29848,19542:29849,19543:29850,19544:29852,19545:29855,19546:29856,19547:29857,19548:29859,19549:29862,19550:29864,19551:29865,19552:29866,19553:29867,19554:29870,19555:29871,19556:29873,19557:29874,19558:29877,19559:29881,19560:29883,19561:29887,19562:29896,19563:29897,19564:29900,19565:29904,19566:29907,19567:29912,19568:29914,19569:29915,19570:29918,19571:29919,19572:29924,19573:29928,19574:29930,19575:29931,19576:29935,19577:29940,19578:29946,19579:29947,19580:29948,19581:29951,19582:29958,19745:29970,19746:29974,19747:29975,19748:29984,19749:29985,19750:29988,19751:29991,19752:29993,19753:29994,19754:29999,19755:30006,19756:30009,19757:30013,19758:30014,19759:30015,19760:30016,19761:30019,19762:30023,19763:30024,19764:30030,19765:30032,19766:30034,19767:30039,19768:30046,19769:30047,19770:30049,19771:30063,19772:30065,19773:30073,19774:30074,19775:30075,19776:30076,19777:30077,19778:30078,19779:30081,19780:30085,19781:30096,19782:30098,19783:30099,19784:30101,19785:30105,19786:30108,19787:30114,19788:30116,19789:30132,19790:30138,19791:30143,19792:30144,19793:30145,19794:30148,19795:30150,19796:30156,19797:30158,19798:30159,19799:30167,19800:30172,19801:30175,19802:30176,19803:30177,19804:30180,19805:30183,19806:30188,19807:30190,19808:30191,19809:30193,19810:30201,19811:30208,19812:30210,19813:30211,19814:30212,19815:30215,19816:30216,19817:30218,19818:30220,19819:30223,19820:30226,19821:30227,19822:30229,19823:30230,19824:30233,19825:30235,19826:30236,19827:30237,19828:30238,19829:30243,19830:30245,19831:30246,19832:30249,19833:30253,19834:30258,19835:30259,19836:30261,19837:30264,19838:30265,20001:30266,20002:30268,20003:30282,20004:30272,20005:30273,20006:30275,20007:30276,20008:30277,20009:30281,20010:30283,20011:30293,20012:30297,20013:30303,20014:30308,20015:30309,20016:30317,20017:30318,20018:30319,20019:30321,20020:30324,20021:30337,20022:30341,20023:30348,20024:30349,20025:30357,20026:30363,20027:30364,20028:30365,20029:30367,20030:30368,20031:30370,20032:30371,20033:30372,20034:30373,20035:30374,20036:30375,20037:30376,20038:30378,20039:30381,20040:30397,20041:30401,20042:30405,20043:30409,20044:30411,20045:30412,20046:30414,20047:30420,20048:30425,20049:30432,20050:30438,20051:30440,20052:30444,20053:30448,20054:30449,20055:30454,20056:30457,20057:30460,20058:30464,20059:30470,20060:30474,20061:30478,20062:30482,20063:30484,20064:30485,20065:30487,20066:30489,20067:30490,20068:30492,20069:30498,20070:30504,20071:30509,20072:30510,20073:30511,20074:30516,20075:30517,20076:30518,20077:30521,20078:30525,20079:30526,20080:30530,20081:30533,20082:30534,20083:30538,20084:30541,20085:30542,20086:30543,20087:30546,20088:30550,20089:30551,20090:30556,20091:30558,20092:30559,20093:30560,20094:30562,20257:30564,20258:30567,20259:30570,20260:30572,20261:30576,20262:30578,20263:30579,20264:30580,20265:30586,20266:30589,20267:30592,20268:30596,20269:30604,20270:30605,20271:30612,20272:30613,20273:30614,20274:30618,20275:30623,20276:30626,20277:30631,20278:30634,20279:30638,20280:30639,20281:30641,20282:30645,20283:30654,20284:30659,20285:30665,20286:30673,20287:30674,20288:30677,20289:30681,20290:30686,20291:30687,20292:30688,20293:30692,20294:30694,20295:30698,20296:30700,20297:30704,20298:30705,20299:30708,20300:30712,20301:30715,20302:30725,20303:30726,20304:30729,20305:30733,20306:30734,20307:30737,20308:30749,20309:30753,20310:30754,20311:30755,20312:30765,20313:30766,20314:30768,20315:30773,20316:30775,20317:30787,20318:30788,20319:30791,20320:30792,20321:30796,20322:30798,20323:30802,20324:30812,20325:30814,20326:30816,20327:30817,20328:30819,20329:30820,20330:30824,20331:30826,20332:30830,20333:30842,20334:30846,20335:30858,20336:30863,20337:30868,20338:30872,20339:30881,20340:30877,20341:30878,20342:30879,20343:30884,20344:30888,20345:30892,20346:30893,20347:30896,20348:30897,20349:30898,20350:30899,20513:30907,20514:30909,20515:30911,20516:30919,20517:30920,20518:30921,20519:30924,20520:30926,20521:30930,20522:30931,20523:30933,20524:30934,20525:30948,20526:30939,20527:30943,20528:30944,20529:30945,20530:30950,20531:30954,20532:30962,20533:30963,20534:30976,20535:30966,20536:30967,20537:30970,20538:30971,20539:30975,20540:30982,20541:30988,20542:30992,20543:31002,20544:31004,20545:31006,20546:31007,20547:31008,20548:31013,20549:31015,20550:31017,20551:31021,20552:31025,20553:31028,20554:31029,20555:31035,20556:31037,20557:31039,20558:31044,20559:31045,20560:31046,20561:31050,20562:31051,20563:31055,20564:31057,20565:31060,20566:31064,20567:31067,20568:31068,20569:31079,20570:31081,20571:31083,20572:31090,20573:31097,20574:31099,20575:31100,20576:31102,20577:31115,20578:31116,20579:31121,20580:31123,20581:31124,20582:31125,20583:31126,20584:31128,20585:31131,20586:31132,20587:31137,20588:31144,20589:31145,20590:31147,20591:31151,20592:31153,20593:31156,20594:31160,20595:31163,20596:31170,20597:31172,20598:31175,20599:31176,20600:31178,20601:31183,20602:31188,20603:31190,20604:31194,20605:31197,20606:31198,20769:31200,20770:31202,20771:31205,20772:31210,20773:31211,20774:31213,20775:31217,20776:31224,20777:31228,20778:31234,20779:31235,20780:31239,20781:31241,20782:31242,20783:31244,20784:31249,20785:31253,20786:31259,20787:31262,20788:31265,20789:31271,20790:31275,20791:31277,20792:31279,20793:31280,20794:31284,20795:31285,20796:31288,20797:31289,20798:31290,20799:31300,20800:31301,20801:31303,20802:31304,20803:31308,20804:31317,20805:31318,20806:31321,20807:31324,20808:31325,20809:31327,20810:31328,20811:31333,20812:31335,20813:31338,20814:31341,20815:31349,20816:31352,20817:31358,20818:31360,20819:31362,20820:31365,20821:31366,20822:31370,20823:31371,20824:31376,20825:31377,20826:31380,20827:31390,20828:31392,20829:31395,20830:31404,20831:31411,20832:31413,20833:31417,20834:31419,20835:31420,20836:31430,20837:31433,20838:31436,20839:31438,20840:31441,20841:31451,20842:31464,20843:31465,20844:31467,20845:31468,20846:31473,20847:31476,20848:31483,20849:31485,20850:31486,20851:31495,20852:31508,20853:31519,20854:31523,20855:31527,20856:31529,20857:31530,20858:31531,20859:31533,20860:31534,20861:31535,20862:31536,21025:31537,21026:31540,21027:31549,21028:31551,21029:31552,21030:31553,21031:31559,21032:31566,21033:31573,21034:31584,21035:31588,21036:31590,21037:31593,21038:31594,21039:31597,21040:31599,21041:31602,21042:31603,21043:31607,21044:31620,21045:31625,21046:31630,21047:31632,21048:31633,21049:31638,21050:31643,21051:31646,21052:31648,21053:31653,21054:31660,21055:31663,21056:31664,21057:31666,21058:31669,21059:31670,21060:31674,21061:31675,21062:31676,21063:31677,21064:31682,21065:31685,21066:31688,21067:31690,21068:31700,21069:31702,21070:31703,21071:31705,21072:31706,21073:31707,21074:31720,21075:31722,21076:31730,21077:31732,21078:31733,21079:31736,21080:31737,21081:31738,21082:31740,21083:31742,21084:31745,21085:31746,21086:31747,21087:31748,21088:31750,21089:31753,21090:31755,21091:31756,21092:31758,21093:31759,21094:31769,21095:31771,21096:31776,21097:31781,21098:31782,21099:31784,21100:31788,21101:31793,21102:31795,21103:31796,21104:31798,21105:31801,21106:31802,21107:31814,21108:31818,21109:31829,21110:31825,21111:31826,21112:31827,21113:31833,21114:31834,21115:31835,21116:31836,21117:31837,21118:31838,21281:31841,21282:31843,21283:31847,21284:31849,21285:31853,21286:31854,21287:31856,21288:31858,21289:31865,21290:31868,21291:31869,21292:31878,21293:31879,21294:31887,21295:31892,21296:31902,21297:31904,21298:31910,21299:31920,21300:31926,21301:31927,21302:31930,21303:31931,21304:31932,21305:31935,21306:31940,21307:31943,21308:31944,21309:31945,21310:31949,21311:31951,21312:31955,21313:31956,21314:31957,21315:31959,21316:31961,21317:31962,21318:31965,21319:31974,21320:31977,21321:31979,21322:31989,21323:32003,21324:32007,21325:32008,21326:32009,21327:32015,21328:32017,21329:32018,21330:32019,21331:32022,21332:32029,21333:32030,21334:32035,21335:32038,21336:32042,21337:32045,21338:32049,21339:32060,21340:32061,21341:32062,21342:32064,21343:32065,21344:32071,21345:32072,21346:32077,21347:32081,21348:32083,21349:32087,21350:32089,21351:32090,21352:32092,21353:32093,21354:32101,21355:32103,21356:32106,21357:32112,21358:32120,21359:32122,21360:32123,21361:32127,21362:32129,21363:32130,21364:32131,21365:32133,21366:32134,21367:32136,21368:32139,21369:32140,21370:32141,21371:32145,21372:32150,21373:32151,21374:32157,21537:32158,21538:32166,21539:32167,21540:32170,21541:32179,21542:32182,21543:32183,21544:32185,21545:32194,21546:32195,21547:32196,21548:32197,21549:32198,21550:32204,21551:32205,21552:32206,21553:32215,21554:32217,21555:32256,21556:32226,21557:32229,21558:32230,21559:32234,21560:32235,21561:32237,21562:32241,21563:32245,21564:32246,21565:32249,21566:32250,21567:32264,21568:32272,21569:32273,21570:32277,21571:32279,21572:32284,21573:32285,21574:32288,21575:32295,21576:32296,21577:32300,21578:32301,21579:32303,21580:32307,21581:32310,21582:32319,21583:32324,21584:32325,21585:32327,21586:32334,21587:32336,21588:32338,21589:32344,21590:32351,21591:32353,21592:32354,21593:32357,21594:32363,21595:32366,21596:32367,21597:32371,21598:32376,21599:32382,21600:32385,21601:32390,21602:32391,21603:32394,21604:32397,21605:32401,21606:32405,21607:32408,21608:32410,21609:32413,21610:32414,21611:32572,21612:32571,21613:32573,21614:32574,21615:32575,21616:32579,21617:32580,21618:32583,21619:32591,21620:32594,21621:32595,21622:32603,21623:32604,21624:32605,21625:32609,21626:32611,21627:32612,21628:32613,21629:32614,21630:32621,21793:32625,21794:32637,21795:32638,21796:32639,21797:32640,21798:32651,21799:32653,21800:32655,21801:32656,21802:32657,21803:32662,21804:32663,21805:32668,21806:32673,21807:32674,21808:32678,21809:32682,21810:32685,21811:32692,21812:32700,21813:32703,21814:32704,21815:32707,21816:32712,21817:32718,21818:32719,21819:32731,21820:32735,21821:32739,21822:32741,21823:32744,21824:32748,21825:32750,21826:32751,21827:32754,21828:32762,21829:32765,21830:32766,21831:32767,21832:32775,21833:32776,21834:32778,21835:32781,21836:32782,21837:32783,21838:32785,21839:32787,21840:32788,21841:32790,21842:32797,21843:32798,21844:32799,21845:32800,21846:32804,21847:32806,21848:32812,21849:32814,21850:32816,21851:32820,21852:32821,21853:32823,21854:32825,21855:32826,21856:32828,21857:32830,21858:32832,21859:32836,21860:32864,21861:32868,21862:32870,21863:32877,21864:32881,21865:32885,21866:32897,21867:32904,21868:32910,21869:32924,21870:32926,21871:32934,21872:32935,21873:32939,21874:32952,21875:32953,21876:32968,21877:32973,21878:32975,21879:32978,21880:32980,21881:32981,21882:32983,21883:32984,21884:32992,21885:33005,21886:33006,22049:33008,22050:33010,22051:33011,22052:33014,22053:33017,22054:33018,22055:33022,22056:33027,22057:33035,22058:33046,22059:33047,22060:33048,22061:33052,22062:33054,22063:33056,22064:33060,22065:33063,22066:33068,22067:33072,22068:33077,22069:33082,22070:33084,22071:33093,22072:33095,22073:33098,22074:33100,22075:33106,22076:33111,22077:33120,22078:33121,22079:33127,22080:33128,22081:33129,22082:33133,22083:33135,22084:33143,22085:33153,22086:33168,22087:33156,22088:33157,22089:33158,22090:33163,22091:33166,22092:33174,22093:33176,22094:33179,22095:33182,22096:33186,22097:33198,22098:33202,22099:33204,22100:33211,22101:33227,22102:33219,22103:33221,22104:33226,22105:33230,22106:33231,22107:33237,22108:33239,22109:33243,22110:33245,22111:33246,22112:33249,22113:33252,22114:33259,22115:33260,22116:33264,22117:33265,22118:33266,22119:33269,22120:33270,22121:33272,22122:33273,22123:33277,22124:33279,22125:33280,22126:33283,22127:33295,22128:33299,22129:33300,22130:33305,22131:33306,22132:33309,22133:33313,22134:33314,22135:33320,22136:33330,22137:33332,22138:33338,22139:33347,22140:33348,22141:33349,22142:33350,22305:33355,22306:33358,22307:33359,22308:33361,22309:33366,22310:33372,22311:33376,22312:33379,22313:33383,22314:33389,22315:33396,22316:33403,22317:33405,22318:33407,22319:33408,22320:33409,22321:33411,22322:33412,22323:33415,22324:33417,22325:33418,22326:33422,22327:33425,22328:33428,22329:33430,22330:33432,22331:33434,22332:33435,22333:33440,22334:33441,22335:33443,22336:33444,22337:33447,22338:33448,22339:33449,22340:33450,22341:33454,22342:33456,22343:33458,22344:33460,22345:33463,22346:33466,22347:33468,22348:33470,22349:33471,22350:33478,22351:33488,22352:33493,22353:33498,22354:33504,22355:33506,22356:33508,22357:33512,22358:33514,22359:33517,22360:33519,22361:33526,22362:33527,22363:33533,22364:33534,22365:33536,22366:33537,22367:33543,22368:33544,22369:33546,22370:33547,22371:33620,22372:33563,22373:33565,22374:33566,22375:33567,22376:33569,22377:33570,22378:33580,22379:33581,22380:33582,22381:33584,22382:33587,22383:33591,22384:33594,22385:33596,22386:33597,22387:33602,22388:33603,22389:33604,22390:33607,22391:33613,22392:33614,22393:33617,22394:33621,22395:33622,22396:33623,22397:33648,22398:33656,22561:33661,22562:33663,22563:33664,22564:33666,22565:33668,22566:33670,22567:33677,22568:33682,22569:33684,22570:33685,22571:33688,22572:33689,22573:33691,22574:33692,22575:33693,22576:33702,22577:33703,22578:33705,22579:33708,22580:33726,22581:33727,22582:33728,22583:33735,22584:33737,22585:33743,22586:33744,22587:33745,22588:33748,22589:33757,22590:33619,22591:33768,22592:33770,22593:33782,22594:33784,22595:33785,22596:33788,22597:33793,22598:33798,22599:33802,22600:33807,22601:33809,22602:33813,22603:33817,22604:33709,22605:33839,22606:33849,22607:33861,22608:33863,22609:33864,22610:33866,22611:33869,22612:33871,22613:33873,22614:33874,22615:33878,22616:33880,22617:33881,22618:33882,22619:33884,22620:33888,22621:33892,22622:33893,22623:33895,22624:33898,22625:33904,22626:33907,22627:33908,22628:33910,22629:33912,22630:33916,22631:33917,22632:33921,22633:33925,22634:33938,22635:33939,22636:33941,22637:33950,22638:33958,22639:33960,22640:33961,22641:33962,22642:33967,22643:33969,22644:33972,22645:33978,22646:33981,22647:33982,22648:33984,22649:33986,22650:33991,22651:33992,22652:33996,22653:33999,22654:34003,22817:34012,22818:34023,22819:34026,22820:34031,22821:34032,22822:34033,22823:34034,22824:34039,22825:34098,22826:34042,22827:34043,22828:34045,22829:34050,22830:34051,22831:34055,22832:34060,22833:34062,22834:34064,22835:34076,22836:34078,22837:34082,22838:34083,22839:34084,22840:34085,22841:34087,22842:34090,22843:34091,22844:34095,22845:34099,22846:34100,22847:34102,22848:34111,22849:34118,22850:34127,22851:34128,22852:34129,22853:34130,22854:34131,22855:34134,22856:34137,22857:34140,22858:34141,22859:34142,22860:34143,22861:34144,22862:34145,22863:34146,22864:34148,22865:34155,22866:34159,22867:34169,22868:34170,22869:34171,22870:34173,22871:34175,22872:34177,22873:34181,22874:34182,22875:34185,22876:34187,22877:34188,22878:34191,22879:34195,22880:34200,22881:34205,22882:34207,22883:34208,22884:34210,22885:34213,22886:34215,22887:34228,22888:34230,22889:34231,22890:34232,22891:34236,22892:34237,22893:34238,22894:34239,22895:34242,22896:34247,22897:34250,22898:34251,22899:34254,22900:34221,22901:34264,22902:34266,22903:34271,22904:34272,22905:34278,22906:34280,22907:34285,22908:34291,22909:34294,22910:34300,23073:34303,23074:34304,23075:34308,23076:34309,23077:34317,23078:34318,23079:34320,23080:34321,23081:34322,23082:34328,23083:34329,23084:34331,23085:34334,23086:34337,23087:34343,23088:34345,23089:34358,23090:34360,23091:34362,23092:34364,23093:34365,23094:34368,23095:34370,23096:34374,23097:34386,23098:34387,23099:34390,23100:34391,23101:34392,23102:34393,23103:34397,23104:34400,23105:34401,23106:34402,23107:34403,23108:34404,23109:34409,23110:34412,23111:34415,23112:34421,23113:34422,23114:34423,23115:34426,23116:34445,23117:34449,23118:34454,23119:34456,23120:34458,23121:34460,23122:34465,23123:34470,23124:34471,23125:34472,23126:34477,23127:34481,23128:34483,23129:34484,23130:34485,23131:34487,23132:34488,23133:34489,23134:34495,23135:34496,23136:34497,23137:34499,23138:34501,23139:34513,23140:34514,23141:34517,23142:34519,23143:34522,23144:34524,23145:34528,23146:34531,23147:34533,23148:34535,23149:34440,23150:34554,23151:34556,23152:34557,23153:34564,23154:34565,23155:34567,23156:34571,23157:34574,23158:34575,23159:34576,23160:34579,23161:34580,23162:34585,23163:34590,23164:34591,23165:34593,23166:34595,23329:34600,23330:34606,23331:34607,23332:34609,23333:34610,23334:34617,23335:34618,23336:34620,23337:34621,23338:34622,23339:34624,23340:34627,23341:34629,23342:34637,23343:34648,23344:34653,23345:34657,23346:34660,23347:34661,23348:34671,23349:34673,23350:34674,23351:34683,23352:34691,23353:34692,23354:34693,23355:34694,23356:34695,23357:34696,23358:34697,23359:34699,23360:34700,23361:34704,23362:34707,23363:34709,23364:34711,23365:34712,23366:34713,23367:34718,23368:34720,23369:34723,23370:34727,23371:34732,23372:34733,23373:34734,23374:34737,23375:34741,23376:34750,23377:34751,23378:34753,23379:34760,23380:34761,23381:34762,23382:34766,23383:34773,23384:34774,23385:34777,23386:34778,23387:34780,23388:34783,23389:34786,23390:34787,23391:34788,23392:34794,23393:34795,23394:34797,23395:34801,23396:34803,23397:34808,23398:34810,23399:34815,23400:34817,23401:34819,23402:34822,23403:34825,23404:34826,23405:34827,23406:34832,23407:34841,23408:34834,23409:34835,23410:34836,23411:34840,23412:34842,23413:34843,23414:34844,23415:34846,23416:34847,23417:34856,23418:34861,23419:34862,23420:34864,23421:34866,23422:34869,23585:34874,23586:34876,23587:34881,23588:34883,23589:34885,23590:34888,23591:34889,23592:34890,23593:34891,23594:34894,23595:34897,23596:34901,23597:34902,23598:34904,23599:34906,23600:34908,23601:34911,23602:34912,23603:34916,23604:34921,23605:34929,23606:34937,23607:34939,23608:34944,23609:34968,23610:34970,23611:34971,23612:34972,23613:34975,23614:34976,23615:34984,23616:34986,23617:35002,23618:35005,23619:35006,23620:35008,23621:35018,23622:35019,23623:35020,23624:35021,23625:35022,23626:35025,23627:35026,23628:35027,23629:35035,23630:35038,23631:35047,23632:35055,23633:35056,23634:35057,23635:35061,23636:35063,23637:35073,23638:35078,23639:35085,23640:35086,23641:35087,23642:35093,23643:35094,23644:35096,23645:35097,23646:35098,23647:35100,23648:35104,23649:35110,23650:35111,23651:35112,23652:35120,23653:35121,23654:35122,23655:35125,23656:35129,23657:35130,23658:35134,23659:35136,23660:35138,23661:35141,23662:35142,23663:35145,23664:35151,23665:35154,23666:35159,23667:35162,23668:35163,23669:35164,23670:35169,23671:35170,23672:35171,23673:35179,23674:35182,23675:35184,23676:35187,23677:35189,23678:35194,23841:35195,23842:35196,23843:35197,23844:35209,23845:35213,23846:35216,23847:35220,23848:35221,23849:35227,23850:35228,23851:35231,23852:35232,23853:35237,23854:35248,23855:35252,23856:35253,23857:35254,23858:35255,23859:35260,23860:35284,23861:35285,23862:35286,23863:35287,23864:35288,23865:35301,23866:35305,23867:35307,23868:35309,23869:35313,23870:35315,23871:35318,23872:35321,23873:35325,23874:35327,23875:35332,23876:35333,23877:35335,23878:35343,23879:35345,23880:35346,23881:35348,23882:35349,23883:35358,23884:35360,23885:35362,23886:35364,23887:35366,23888:35371,23889:35372,23890:35375,23891:35381,23892:35383,23893:35389,23894:35390,23895:35392,23896:35395,23897:35397,23898:35399,23899:35401,23900:35405,23901:35406,23902:35411,23903:35414,23904:35415,23905:35416,23906:35420,23907:35421,23908:35425,23909:35429,23910:35431,23911:35445,23912:35446,23913:35447,23914:35449,23915:35450,23916:35451,23917:35454,23918:35455,23919:35456,23920:35459,23921:35462,23922:35467,23923:35471,23924:35472,23925:35474,23926:35478,23927:35479,23928:35481,23929:35487,23930:35495,23931:35497,23932:35502,23933:35503,23934:35507,24097:35510,24098:35511,24099:35515,24100:35518,24101:35523,24102:35526,24103:35528,24104:35529,24105:35530,24106:35537,24107:35539,24108:35540,24109:35541,24110:35543,24111:35549,24112:35551,24113:35564,24114:35568,24115:35572,24116:35573,24117:35574,24118:35580,24119:35583,24120:35589,24121:35590,24122:35595,24123:35601,24124:35612,24125:35614,24126:35615,24127:35594,24128:35629,24129:35632,24130:35639,24131:35644,24132:35650,24133:35651,24134:35652,24135:35653,24136:35654,24137:35656,24138:35666,24139:35667,24140:35668,24141:35673,24142:35661,24143:35678,24144:35683,24145:35693,24146:35702,24147:35704,24148:35705,24149:35708,24150:35710,24151:35713,24152:35716,24153:35717,24154:35723,24155:35725,24156:35727,24157:35732,24158:35733,24159:35740,24160:35742,24161:35743,24162:35896,24163:35897,24164:35901,24165:35902,24166:35909,24167:35911,24168:35913,24169:35915,24170:35919,24171:35921,24172:35923,24173:35924,24174:35927,24175:35928,24176:35931,24177:35933,24178:35929,24179:35939,24180:35940,24181:35942,24182:35944,24183:35945,24184:35949,24185:35955,24186:35957,24187:35958,24188:35963,24189:35966,24190:35974,24353:35975,24354:35979,24355:35984,24356:35986,24357:35987,24358:35993,24359:35995,24360:35996,24361:36004,24362:36025,24363:36026,24364:36037,24365:36038,24366:36041,24367:36043,24368:36047,24369:36054,24370:36053,24371:36057,24372:36061,24373:36065,24374:36072,24375:36076,24376:36079,24377:36080,24378:36082,24379:36085,24380:36087,24381:36088,24382:36094,24383:36095,24384:36097,24385:36099,24386:36105,24387:36114,24388:36119,24389:36123,24390:36197,24391:36201,24392:36204,24393:36206,24394:36223,24395:36226,24396:36228,24397:36232,24398:36237,24399:36240,24400:36241,24401:36245,24402:36254,24403:36255,24404:36256,24405:36262,24406:36267,24407:36268,24408:36271,24409:36274,24410:36277,24411:36279,24412:36281,24413:36283,24414:36288,24415:36293,24416:36294,24417:36295,24418:36296,24419:36298,24420:36302,24421:36305,24422:36308,24423:36309,24424:36311,24425:36313,24426:36324,24427:36325,24428:36327,24429:36332,24430:36336,24431:36284,24432:36337,24433:36338,24434:36340,24435:36349,24436:36353,24437:36356,24438:36357,24439:36358,24440:36363,24441:36369,24442:36372,24443:36374,24444:36384,24445:36385,24446:36386,24609:36387,24610:36390,24611:36391,24612:36401,24613:36403,24614:36406,24615:36407,24616:36408,24617:36409,24618:36413,24619:36416,24620:36417,24621:36427,24622:36429,24623:36430,24624:36431,24625:36436,24626:36443,24627:36444,24628:36445,24629:36446,24630:36449,24631:36450,24632:36457,24633:36460,24634:36461,24635:36463,24636:36464,24637:36465,24638:36473,24639:36474,24640:36475,24641:36482,24642:36483,24643:36489,24644:36496,24645:36498,24646:36501,24647:36506,24648:36507,24649:36509,24650:36510,24651:36514,24652:36519,24653:36521,24654:36525,24655:36526,24656:36531,24657:36533,24658:36538,24659:36539,24660:36544,24661:36545,24662:36547,24663:36548,24664:36551,24665:36559,24666:36561,24667:36564,24668:36572,24669:36584,24670:36590,24671:36592,24672:36593,24673:36599,24674:36601,24675:36602,24676:36589,24677:36608,24678:36610,24679:36615,24680:36616,24681:36623,24682:36624,24683:36630,24684:36631,24685:36632,24686:36638,24687:36640,24688:36641,24689:36643,24690:36645,24691:36647,24692:36648,24693:36652,24694:36653,24695:36654,24696:36660,24697:36661,24698:36662,24699:36663,24700:36666,24701:36672,24702:36673,24865:36675,24866:36679,24867:36687,24868:36689,24869:36690,24870:36691,24871:36692,24872:36693,24873:36696,24874:36701,24875:36702,24876:36709,24877:36765,24878:36768,24879:36769,24880:36772,24881:36773,24882:36774,24883:36789,24884:36790,24885:36792,24886:36798,24887:36800,24888:36801,24889:36806,24890:36810,24891:36811,24892:36813,24893:36816,24894:36818,24895:36819,24896:36821,24897:36832,24898:36835,24899:36836,24900:36840,24901:36846,24902:36849,24903:36853,24904:36854,24905:36859,24906:36862,24907:36866,24908:36868,24909:36872,24910:36876,24911:36888,24912:36891,24913:36904,24914:36905,24915:36911,24916:36906,24917:36908,24918:36909,24919:36915,24920:36916,24921:36919,24922:36927,24923:36931,24924:36932,24925:36940,24926:36955,24927:36957,24928:36962,24929:36966,24930:36967,24931:36972,24932:36976,24933:36980,24934:36985,24935:36997,24936:37000,24937:37003,24938:37004,24939:37006,24940:37008,24941:37013,24942:37015,24943:37016,24944:37017,24945:37019,24946:37024,24947:37025,24948:37026,24949:37029,24950:37040,24951:37042,24952:37043,24953:37044,24954:37046,24955:37053,24956:37068,24957:37054,24958:37059,25121:37060,25122:37061,25123:37063,25124:37064,25125:37077,25126:37079,25127:37080,25128:37081,25129:37084,25130:37085,25131:37087,25132:37093,25133:37074,25134:37110,25135:37099,25136:37103,25137:37104,25138:37108,25139:37118,25140:37119,25141:37120,25142:37124,25143:37125,25144:37126,25145:37128,25146:37133,25147:37136,25148:37140,25149:37142,25150:37143,25151:37144,25152:37146,25153:37148,25154:37150,25155:37152,25156:37157,25157:37154,25158:37155,25159:37159,25160:37161,25161:37166,25162:37167,25163:37169,25164:37172,25165:37174,25166:37175,25167:37177,25168:37178,25169:37180,25170:37181,25171:37187,25172:37191,25173:37192,25174:37199,25175:37203,25176:37207,25177:37209,25178:37210,25179:37211,25180:37217,25181:37220,25182:37223,25183:37229,25184:37236,25185:37241,25186:37242,25187:37243,25188:37249,25189:37251,25190:37253,25191:37254,25192:37258,25193:37262,25194:37265,25195:37267,25196:37268,25197:37269,25198:37272,25199:37278,25200:37281,25201:37286,25202:37288,25203:37292,25204:37293,25205:37294,25206:37296,25207:37297,25208:37298,25209:37299,25210:37302,25211:37307,25212:37308,25213:37309,25214:37311,25377:37314,25378:37315,25379:37317,25380:37331,25381:37332,25382:37335,25383:37337,25384:37338,25385:37342,25386:37348,25387:37349,25388:37353,25389:37354,25390:37356,25391:37357,25392:37358,25393:37359,25394:37360,25395:37361,25396:37367,25397:37369,25398:37371,25399:37373,25400:37376,25401:37377,25402:37380,25403:37381,25404:37382,25405:37383,25406:37385,25407:37386,25408:37388,25409:37392,25410:37394,25411:37395,25412:37398,25413:37400,25414:37404,25415:37405,25416:37411,25417:37412,25418:37413,25419:37414,25420:37416,25421:37422,25422:37423,25423:37424,25424:37427,25425:37429,25426:37430,25427:37432,25428:37433,25429:37434,25430:37436,25431:37438,25432:37440,25433:37442,25434:37443,25435:37446,25436:37447,25437:37450,25438:37453,25439:37454,25440:37455,25441:37457,25442:37464,25443:37465,25444:37468,25445:37469,25446:37472,25447:37473,25448:37477,25449:37479,25450:37480,25451:37481,25452:37486,25453:37487,25454:37488,25455:37493,25456:37494,25457:37495,25458:37496,25459:37497,25460:37499,25461:37500,25462:37501,25463:37503,25464:37512,25465:37513,25466:37514,25467:37517,25468:37518,25469:37522,25470:37527,25633:37529,25634:37535,25635:37536,25636:37540,25637:37541,25638:37543,25639:37544,25640:37547,25641:37551,25642:37554,25643:37558,25644:37560,25645:37562,25646:37563,25647:37564,25648:37565,25649:37567,25650:37568,25651:37569,25652:37570,25653:37571,25654:37573,25655:37574,25656:37575,25657:37576,25658:37579,25659:37580,25660:37581,25661:37582,25662:37584,25663:37587,25664:37589,25665:37591,25666:37592,25667:37593,25668:37596,25669:37597,25670:37599,25671:37600,25672:37601,25673:37603,25674:37605,25675:37607,25676:37608,25677:37612,25678:37614,25679:37616,25680:37625,25681:37627,25682:37631,25683:37632,25684:37634,25685:37640,25686:37645,25687:37649,25688:37652,25689:37653,25690:37660,25691:37661,25692:37662,25693:37663,25694:37665,25695:37668,25696:37669,25697:37671,25698:37673,25699:37674,25700:37683,25701:37684,25702:37686,25703:37687,25704:37703,25705:37704,25706:37705,25707:37712,25708:37713,25709:37714,25710:37717,25711:37719,25712:37720,25713:37722,25714:37726,25715:37732,25716:37733,25717:37735,25718:37737,25719:37738,25720:37741,25721:37743,25722:37744,25723:37745,25724:37747,25725:37748,25726:37750,25889:37754,25890:37757,25891:37759,25892:37760,25893:37761,25894:37762,25895:37768,25896:37770,25897:37771,25898:37773,25899:37775,25900:37778,25901:37781,25902:37784,25903:37787,25904:37790,25905:37793,25906:37795,25907:37796,25908:37798,25909:37800,25910:37803,25911:37812,25912:37813,25913:37814,25914:37818,25915:37801,25916:37825,25917:37828,25918:37829,25919:37830,25920:37831,25921:37833,25922:37834,25923:37835,25924:37836,25925:37837,25926:37843,25927:37849,25928:37852,25929:37854,25930:37855,25931:37858,25932:37862,25933:37863,25934:37881,25935:37879,25936:37880,25937:37882,25938:37883,25939:37885,25940:37889,25941:37890,25942:37892,25943:37896,25944:37897,25945:37901,25946:37902,25947:37903,25948:37909,25949:37910,25950:37911,25951:37919,25952:37934,25953:37935,25954:37937,25955:37938,25956:37939,25957:37940,25958:37947,25959:37951,25960:37949,25961:37955,25962:37957,25963:37960,25964:37962,25965:37964,25966:37973,25967:37977,25968:37980,25969:37983,25970:37985,25971:37987,25972:37992,25973:37995,25974:37997,25975:37998,25976:37999,25977:38001,25978:38002,25979:38020,25980:38019,25981:38264,25982:38265,26145:38270,26146:38276,26147:38280,26148:38284,26149:38285,26150:38286,26151:38301,26152:38302,26153:38303,26154:38305,26155:38310,26156:38313,26157:38315,26158:38316,26159:38324,26160:38326,26161:38330,26162:38333,26163:38335,26164:38342,26165:38344,26166:38345,26167:38347,26168:38352,26169:38353,26170:38354,26171:38355,26172:38361,26173:38362,26174:38365,26175:38366,26176:38367,26177:38368,26178:38372,26179:38374,26180:38429,26181:38430,26182:38434,26183:38436,26184:38437,26185:38438,26186:38444,26187:38449,26188:38451,26189:38455,26190:38456,26191:38457,26192:38458,26193:38460,26194:38461,26195:38465,26196:38482,26197:38484,26198:38486,26199:38487,26200:38488,26201:38497,26202:38510,26203:38516,26204:38523,26205:38524,26206:38526,26207:38527,26208:38529,26209:38530,26210:38531,26211:38532,26212:38537,26213:38545,26214:38550,26215:38554,26216:38557,26217:38559,26218:38564,26219:38565,26220:38566,26221:38569,26222:38574,26223:38575,26224:38579,26225:38586,26226:38602,26227:38610,26228:23986,26229:38616,26230:38618,26231:38621,26232:38622,26233:38623,26234:38633,26235:38639,26236:38641,26237:38650,26238:38658,26401:38659,26402:38661,26403:38665,26404:38682,26405:38683,26406:38685,26407:38689,26408:38690,26409:38691,26410:38696,26411:38705,26412:38707,26413:38721,26414:38723,26415:38730,26416:38734,26417:38735,26418:38741,26419:38743,26420:38744,26421:38746,26422:38747,26423:38755,26424:38759,26425:38762,26426:38766,26427:38771,26428:38774,26429:38775,26430:38776,26431:38779,26432:38781,26433:38783,26434:38784,26435:38793,26436:38805,26437:38806,26438:38807,26439:38809,26440:38810,26441:38814,26442:38815,26443:38818,26444:38828,26445:38830,26446:38833,26447:38834,26448:38837,26449:38838,26450:38840,26451:38841,26452:38842,26453:38844,26454:38846,26455:38847,26456:38849,26457:38852,26458:38853,26459:38855,26460:38857,26461:38858,26462:38860,26463:38861,26464:38862,26465:38864,26466:38865,26467:38868,26468:38871,26469:38872,26470:38873,26471:38877,26472:38878,26473:38880,26474:38875,26475:38881,26476:38884,26477:38895,26478:38897,26479:38900,26480:38903,26481:38904,26482:38906,26483:38919,26484:38922,26485:38937,26486:38925,26487:38926,26488:38932,26489:38934,26490:38940,26491:38942,26492:38944,26493:38947,26494:38950,26657:38955,26658:38958,26659:38959,26660:38960,26661:38962,26662:38963,26663:38965,26664:38949,26665:38974,26666:38980,26667:38983,26668:38986,26669:38993,26670:38994,26671:38995,26672:38998,26673:38999,26674:39001,26675:39002,26676:39010,26677:39011,26678:39013,26679:39014,26680:39018,26681:39020,26682:39083,26683:39085,26684:39086,26685:39088,26686:39092,26687:39095,26688:39096,26689:39098,26690:39099,26691:39103,26692:39106,26693:39109,26694:39112,26695:39116,26696:39137,26697:39139,26698:39141,26699:39142,26700:39143,26701:39146,26702:39155,26703:39158,26704:39170,26705:39175,26706:39176,26707:39185,26708:39189,26709:39190,26710:39191,26711:39194,26712:39195,26713:39196,26714:39199,26715:39202,26716:39206,26717:39207,26718:39211,26719:39217,26720:39218,26721:39219,26722:39220,26723:39221,26724:39225,26725:39226,26726:39227,26727:39228,26728:39232,26729:39233,26730:39238,26731:39239,26732:39240,26733:39245,26734:39246,26735:39252,26736:39256,26737:39257,26738:39259,26739:39260,26740:39262,26741:39263,26742:39264,26743:39323,26744:39325,26745:39327,26746:39334,26747:39344,26748:39345,26749:39346,26750:39349,26913:39353,26914:39354,26915:39357,26916:39359,26917:39363,26918:39369,26919:39379,26920:39380,26921:39385,26922:39386,26923:39388,26924:39390,26925:39399,26926:39402,26927:39403,26928:39404,26929:39408,26930:39412,26931:39413,26932:39417,26933:39421,26934:39422,26935:39426,26936:39427,26937:39428,26938:39435,26939:39436,26940:39440,26941:39441,26942:39446,26943:39454,26944:39456,26945:39458,26946:39459,26947:39460,26948:39463,26949:39469,26950:39470,26951:39475,26952:39477,26953:39478,26954:39480,26955:39495,26956:39489,26957:39492,26958:39498,26959:39499,26960:39500,26961:39502,26962:39505,26963:39508,26964:39510,26965:39517,26966:39594,26967:39596,26968:39598,26969:39599,26970:39602,26971:39604,26972:39605,26973:39606,26974:39609,26975:39611,26976:39614,26977:39615,26978:39617,26979:39619,26980:39622,26981:39624,26982:39630,26983:39632,26984:39634,26985:39637,26986:39638,26987:39639,26988:39643,26989:39644,26990:39648,26991:39652,26992:39653,26993:39655,26994:39657,26995:39660,26996:39666,26997:39667,26998:39669,26999:39673,27000:39674,27001:39677,27002:39679,27003:39680,27004:39681,27005:39682,27006:39683,27169:39684,27170:39685,27171:39688,27172:39689,27173:39691,27174:39692,27175:39693,27176:39694,27177:39696,27178:39698,27179:39702,27180:39705,27181:39707,27182:39708,27183:39712,27184:39718,27185:39723,27186:39725,27187:39731,27188:39732,27189:39733,27190:39735,27191:39737,27192:39738,27193:39741,27194:39752,27195:39755,27196:39756,27197:39765,27198:39766,27199:39767,27200:39771,27201:39774,27202:39777,27203:39779,27204:39781,27205:39782,27206:39784,27207:39786,27208:39787,27209:39788,27210:39789,27211:39790,27212:39795,27213:39797,27214:39799,27215:39800,27216:39801,27217:39807,27218:39808,27219:39812,27220:39813,27221:39814,27222:39815,27223:39817,27224:39818,27225:39819,27226:39821,27227:39823,27228:39824,27229:39828,27230:39834,27231:39837,27232:39838,27233:39846,27234:39847,27235:39849,27236:39852,27237:39856,27238:39857,27239:39858,27240:39863,27241:39864,27242:39867,27243:39868,27244:39870,27245:39871,27246:39873,27247:39879,27248:39880,27249:39886,27250:39888,27251:39895,27252:39896,27253:39901,27254:39903,27255:39909,27256:39911,27257:39914,27258:39915,27259:39919,27260:39923,27261:39927,27262:39928,27425:39929,27426:39930,27427:39933,27428:39935,27429:39936,27430:39938,27431:39947,27432:39951,27433:39953,27434:39958,27435:39960,27436:39961,27437:39962,27438:39964,27439:39966,27440:39970,27441:39971,27442:39974,27443:39975,27444:39976,27445:39977,27446:39978,27447:39985,27448:39989,27449:39990,27450:39991,27451:39997,27452:40001,27453:40003,27454:40004,27455:40005,27456:40009,27457:40010,27458:40014,27459:40015,27460:40016,27461:40019,27462:40020,27463:40022,27464:40024,27465:40027,27466:40029,27467:40030,27468:40031,27469:40035,27470:40041,27471:40042,27472:40028,27473:40043,27474:40040,27475:40046,27476:40048,27477:40050,27478:40053,27479:40055,27480:40059,27481:40166,27482:40178,27483:40183,27484:40185,27485:40203,27486:40194,27487:40209,27488:40215,27489:40216,27490:40220,27491:40221,27492:40222,27493:40239,27494:40240,27495:40242,27496:40243,27497:40244,27498:40250,27499:40252,27500:40261,27501:40253,27502:40258,27503:40259,27504:40263,27505:40266,27506:40275,27507:40276,27508:40287,27509:40291,27510:40290,27511:40293,27512:40297,27513:40298,27514:40299,27515:40304,27516:40310,27517:40311,27518:40315,27681:40316,27682:40318,27683:40323,27684:40324,27685:40326,27686:40330,27687:40333,27688:40334,27689:40338,27690:40339,27691:40341,27692:40342,27693:40343,27694:40344,27695:40353,27696:40362,27697:40364,27698:40366,27699:40369,27700:40373,27701:40377,27702:40380,27703:40383,27704:40387,27705:40391,27706:40393,27707:40394,27708:40404,27709:40405,27710:40406,27711:40407,27712:40410,27713:40414,27714:40415,27715:40416,27716:40421,27717:40423,27718:40425,27719:40427,27720:40430,27721:40432,27722:40435,27723:40436,27724:40446,27725:40458,27726:40450,27727:40455,27728:40462,27729:40464,27730:40465,27731:40466,27732:40469,27733:40470,27734:40473,27735:40476,27736:40477,27737:40570,27738:40571,27739:40572,27740:40576,27741:40578,27742:40579,27743:40580,27744:40581,27745:40583,27746:40590,27747:40591,27748:40598,27749:40600,27750:40603,27751:40606,27752:40612,27753:40616,27754:40620,27755:40622,27756:40623,27757:40624,27758:40627,27759:40628,27760:40629,27761:40646,27762:40648,27763:40651,27764:40661,27765:40671,27766:40676,27767:40679,27768:40684,27769:40685,27770:40686,27771:40688,27772:40689,27773:40690,27774:40693,27937:40696,27938:40703,27939:40706,27940:40707,27941:40713,27942:40719,27943:40720,27944:40721,27945:40722,27946:40724,27947:40726,27948:40727,27949:40729,27950:40730,27951:40731,27952:40735,27953:40738,27954:40742,27955:40746,27956:40747,27957:40751,27958:40753,27959:40754,27960:40756,27961:40759,27962:40761,27963:40762,27964:40764,27965:40765,27966:40767,27967:40769,27968:40771,27969:40772,27970:40773,27971:40774,27972:40775,27973:40787,27974:40789,27975:40790,27976:40791,27977:40792,27978:40794,27979:40797,27980:40798,27981:40808,27982:40809,27983:40813,27984:40814,27985:40815,27986:40816,27987:40817,27988:40819,27989:40821,27990:40826,27991:40829,27992:40847,27993:40848,27994:40849,27995:40850,27996:40852,27997:40854,27998:40855,27999:40862,28000:40865,28001:40866,28002:40867,28003:40869}","module.exports={162:33169,163:33170,166:61178,167:33176,168:33102,172:33226,176:33163,177:33149,180:33100,182:33271,215:33150,247:33152,913:33695,914:33696,915:33697,916:33698,917:33699,918:33700,919:33701,920:33702,921:33703,922:33704,923:33705,924:33706,925:33707,926:33708,927:33709,928:33710,929:33711,931:33712,932:33713,933:33714,934:33715,935:33716,936:33717,937:33718,945:33727,946:33728,947:33729,948:33730,949:33731,950:33732,951:33733,952:33734,953:33735,954:33736,955:33737,956:33738,957:33739,958:33740,959:33741,960:33742,961:33743,963:33744,964:33745,965:33746,966:33747,967:33748,968:33749,969:33750,1025:33862,1040:33856,1041:33857,1042:33858,1043:33859,1044:33860,1045:33861,1046:33863,1047:33864,1048:33865,1049:33866,1050:33867,1051:33868,1052:33869,1053:33870,1054:33871,1055:33872,1056:33873,1057:33874,1058:33875,1059:33876,1060:33877,1061:33878,1062:33879,1063:33880,1064:33881,1065:33882,1066:33883,1067:33884,1068:33885,1069:33886,1070:33887,1071:33888,1072:33904,1073:33905,1074:33906,1075:33907,1076:33908,1077:33909,1078:33911,1079:33912,1080:33913,1081:33914,1082:33915,1083:33916,1084:33917,1085:33918,1086:33920,1087:33921,1088:33922,1089:33923,1090:33924,1091:33925,1092:33926,1093:33927,1094:33928,1095:33929,1096:33930,1097:33931,1098:33932,1099:33933,1100:33934,1101:33935,1102:33936,1103:33937,1105:33910,8208:33117,8212:33116,8213:33116,8216:33125,8217:33126,8220:33127,8221:33128,8224:33269,8225:33270,8229:33124,8230:33123,8240:33265,8242:33164,8243:33165,8251:33190,8451:33166,8470:34690,8481:34692,8491:33264,8544:34644,8545:34645,8546:34646,8547:34647,8548:34648,8549:34649,8550:34650,8551:34651,8552:34652,8553:34653,8560:64064,8561:64065,8562:64066,8563:64067,8564:64068,8565:64069,8566:64070,8567:64071,8568:64072,8569:64073,8592:33193,8593:33194,8594:33192,8595:33195,8658:33227,8660:33228,8704:33229,8706:33245,8707:33230,8711:33246,8712:33208,8715:33209,8721:34708,8730:33251,8733:33253,8734:33159,8735:34712,8736:33242,8741:33121,8743:33224,8744:33225,8745:33215,8746:33214,8747:33255,8748:33256,8750:34707,8756:33160,8757:33254,8765:33252,8786:33248,8800:33154,8801:33247,8806:33157,8807:33158,8810:33249,8811:33250,8834:33212,8835:33213,8838:33210,8839:33211,8869:33243,8895:34713,8978:33244,9312:34624,9313:34625,9314:34626,9315:34627,9316:34628,9317:34629,9318:34630,9319:34631,9320:34632,9321:34633,9322:34634,9323:34635,9324:34636,9325:34637,9326:34638,9327:34639,9328:34640,9329:34641,9330:34642,9331:34643,9472:33951,9473:33962,9474:33952,9475:33963,9484:33953,9487:33964,9488:33954,9491:33965,9492:33956,9495:33967,9496:33955,9499:33966,9500:33957,9501:33978,9504:33973,9507:33968,9508:33959,9509:33980,9512:33975,9515:33970,9516:33958,9519:33974,9520:33979,9523:33969,9524:33960,9527:33976,9528:33981,9531:33971,9532:33961,9535:33977,9538:33982,9547:33972,9632:33185,9633:33184,9650:33187,9651:33186,9660:33189,9661:33188,9670:33183,9671:33182,9675:33179,9678:33181,9679:33180,9711:33276,9733:33178,9734:33177,9792:33162,9794:33161,9834:33268,9837:33267,9839:33266,12288:33088,12289:33089,12290:33090,12291:33110,12293:33112,12294:33113,12295:33114,12296:33137,12297:33138,12298:33139,12299:33140,12300:33141,12301:33142,12302:33143,12303:33144,12304:33145,12305:33146,12306:33191,12307:33196,12308:33131,12309:33132,12316:33120,12317:34688,12319:34689,12353:33439,12354:33440,12355:33441,12356:33442,12357:33443,12358:33444,12359:33445,12360:33446,12361:33447,12362:33448,12363:33449,12364:33450,12365:33451,12366:33452,12367:33453,12368:33454,12369:33455,12370:33456,12371:33457,12372:33458,12373:33459,12374:33460,12375:33461,12376:33462,12377:33463,12378:33464,12379:33465,12380:33466,12381:33467,12382:33468,12383:33469,12384:33470,12385:33471,12386:33472,12387:33473,12388:33474,12389:33475,12390:33476,12391:33477,12392:33478,12393:33479,12394:33480,12395:33481,12396:33482,12397:33483,12398:33484,12399:33485,12400:33486,12401:33487,12402:33488,12403:33489,12404:33490,12405:33491,12406:33492,12407:33493,12408:33494,12409:33495,12410:33496,12411:33497,12412:33498,12413:33499,12414:33500,12415:33501,12416:33502,12417:33503,12418:33504,12419:33505,12420:33506,12421:33507,12422:33508,12423:33509,12424:33510,12425:33511,12426:33512,12427:33513,12428:33514,12429:33515,12430:33516,12431:33517,12432:33518,12433:33519,12434:33520,12435:33521,12443:33098,12444:33099,12445:33108,12446:33109,12449:33600,12450:33601,12451:33602,12452:33603,12453:33604,12454:33605,12455:33606,12456:33607,12457:33608,12458:33609,12459:33610,12460:33611,12461:33612,12462:33613,12463:33614,12464:33615,12465:33616,12466:33617,12467:33618,12468:33619,12469:33620,12470:33621,12471:33622,12472:33623,12473:33624,12474:33625,12475:33626,12476:33627,12477:33628,12478:33629,12479:33630,12480:33631,12481:33632,12482:33633,12483:33634,12484:33635,12485:33636,12486:33637,12487:33638,12488:33639,12489:33640,12490:33641,12491:33642,12492:33643,12493:33644,12494:33645,12495:33646,12496:33647,12497:33648,12498:33649,12499:33650,12500:33651,12501:33652,12502:33653,12503:33654,12504:33655,12505:33656,12506:33657,12507:33658,12508:33659,12509:33660,12510:33661,12511:33662,12512:33664,12513:33665,12514:33666,12515:33667,12516:33668,12517:33669,12518:33670,12519:33671,12520:33672,12521:33673,12522:33674,12523:33675,12524:33676,12525:33677,12526:33678,12527:33679,12528:33680,12529:33681,12530:33682,12531:33683,12532:33684,12533:33685,12534:33686,12539:33093,12540:33115,12541:33106,12542:33107,12849:34698,12850:34699,12857:34700,12964:34693,12965:34694,12966:34695,12967:34696,12968:34697,13059:34661,13069:34665,13076:34656,13080:34659,13090:34657,13091:34667,13094:34666,13095:34660,13099:34668,13110:34662,13115:34670,13129:34655,13130:34669,13133:34658,13137:34663,13143:34664,13179:34686,13180:34703,13181:34702,13182:34701,13198:34674,13199:34675,13212:34671,13213:34672,13214:34673,13217:34677,13252:34676,13261:34691,19968:35050,19969:37530,19971:36533,19975:38556,19976:36836,19977:36431,19978:36835,19979:35258,19981:38259,19982:38750,19984:39072,19985:35150,19988:35470,19989:39073,19990:37026,19991:39360,19992:35701,19993:38328,19998:36837,20001:38844,20006:38336,20008:64104,20010:39074,20013:37510,20017:39075,20018:35832,20022:39076,20024:35547,20025:37455,20027:36581,20028:39077,20031:39078,20034:39079,20035:37972,20037:35702,20043:37974,20045:37857,20046:36033,20047:38482,20053:58728,20054:39080,20055:36838,20056:39081,20057:35251,20061:35811,20062:36078,20063:38631,20066:39844,20081:38800,20083:37883,20094:35491,20096:35668,20098:39082,20101:39083,20102:38841,20104:38748,20105:37256,20106:39085,20107:36502,20108:37873,20110:39088,20113:35165,20114:36061,20116:36060,20117:35044,20120:39018,20121:39017,20123:36273,20124:34975,20126:39089,20127:39090,20128:39091,20129:38483,20130:39092,20132:36080,20133:35045,20134:38546,20136:35740,20139:35741,20140:35742,20141:37600,20142:38842,20144:39093,20147:39094,20150:39095,20154:36972,20160:36697,20161:36973,20162:39100,20164:39098,20166:39099,20167:35703,20170:36257,20171:35310,20173:39097,20174:39096,20175:38311,20180:36453,20181:36452,20182:37308,20183:39101,20184:38260,20185:37093,20189:33111,20190:39102,20191:39104,20193:64105,20195:37347,20196:38879,20197:35016,20205:39103,20206:35260,20208:35778,20210:37511,20214:35983,20215:39105,20219:37955,20220:64106,20224:64107,20225:35561,20227:64108,20233:39106,20234:35017,20237:36062,20238:35562,20239:38298,20240:38064,20241:35704,20250:35311,20252:39141,20253:37728,20271:38028,20272:39108,20276:38074,20278:38880,20280:36940,20281:64109,20282:36454,20284:36503,20285:35262,20291:37583,20294:37441,20295:39112,20301:35018,20302:37601,20303:36698,20304:36274,20305:38723,20307:37324,20309:35261,20310:64110,20311:39111,20313:38749,20314:39107,20315:39109,20316:36332,20317:39110,20318:39747,20329:39118,20335:39121,20336:39119,20339:35264,20341:38329,20342:39113,20347:39117,20348:36081,20351:36455,20355:35492,20358:39122,20360:39114,20362:64112,20363:38881,20365:36504,20367:39115,20369:39120,20370:64111,20372:64114,20374:39123,20376:39116,20378:64113,20379:35743,20381:35019,20384:35744,20385:35263,20395:39748,20397:38553,20398:38286,20399:36082,20405:36942,20406:38837,20415:38358,20418:35927,20419:37283,20420:35298,20425:64097,20426:36722,20429:64115,20430:39127,20432:39132,20433:39130,20436:39125,20439:37293,20440:39128,20442:39131,20443:39129,20445:38363,20447:39126,20449:36941,20451:38547,20452:39133,20453:39134,20462:36675,20463:39147,20467:37999,20469:38229,20470:39142,20472:38382,20474:35252,20478:39146,20479:64118,20485:39140,20486:39149,20489:37233,20491:36034,20493:38011,20495:57541,20497:39148,20498:37756,20500:39137,20502:36084,20505:36083,20506:39135,20510:64119,20511:36568,20513:39143,20514:64117,20515:38381,20516:37484,20517:39139,20518:35985,20520:39136,20521:39144,20522:39138,20523:38863,20524:39145,20525:39008,20534:35812,20537:35984,20544:64116,20546:64122,20547:39150,20550:64120,20551:39151,20552:39155,20553:35020,20559:38350,20560:39154,20565:39153,20566:39157,20570:39156,20572:37602,20581:35986,20588:39158,20592:64121,20594:36547,20596:37284,20597:37603,20598:35828,20600:39159,20605:35669,20608:39160,20613:39162,20621:38484,20625:35974,20628:64123,20632:36432,20633:38133,20634:39161,20652:36291,20653:38754,20658:39164,20659:39234,20660:39163,20661:36290,20663:36765,20670:35928,20674:39235,20677:35789,20681:39232,20682:39233,20685:37805,20687:37276,20689:35745,20693:38508,20694:39236,20696:64125,20698:38843,20702:39237,20707:39240,20709:39238,20711:37229,20717:39239,20718:39241,20724:64124,20725:39243,20729:39242,20731:38342,20736:35670,20737:39245,20738:39246,20740:35245,20745:39244,20754:36594,20756:39249,20757:39248,20758:39247,20760:39124,20762:39250,20767:36766,20769:39251,20778:38724,20786:38615,20791:39253,20794:39252,20795:39255,20796:39254,20799:39256,20800:39257,20801:35058,20803:36019,20804:35930,20805:36699,20806:37531,20807:35746,20808:37094,20809:36085,20810:64126,20811:36238,20812:39259,20813:38598,20814:37733,20816:36505,20818:39258,20820:39260,20826:37757,20828:35477,20834:39261,20836:64128,20837:37884,20840:37203,20841:39263,20842:39264,20843:38058,20844:36086,20845:39002,20846:39265,20849:35748,20853:38330,20854:37300,20855:35823,20856:37716,20860:35987,20864:39266,20866:39267,20869:37856,20870:35198,20873:39270,20874:36347,20876:39269,20877:36292,20879:39271,20880:58348,20881:39272,20882:38496,20883:39273,20885:39274,20886:39275,20887:36839,20889:36554,20893:64129,20896:35493,20898:39278,20900:39276,20901:38587,20902:39277,20904:38265,20905:39279,20906:39280,20907:39281,20908:37758,20912:39285,20913:39283,20914:39284,20915:39282,20916:36321,20917:39286,20918:38632,20919:38882,20925:39287,20926:64130,20932:37030,20933:39288,20934:36729,20937:39289,20939:37532,20940:38845,20941:37760,20950:39363,20955:39290,20956:60067,20957:35779,20960:39291,20961:38525,20966:36744,20967:37370,20969:39293,20970:37858,20972:64131,20973:39294,20976:39296,20977:35405,20981:39297,20982:35749,20984:37834,20985:35226,20986:36719,20989:38047,20990:39298,20992:37761,20995:36974,20996:39299,20998:38314,20999:37080,21000:35488,21002:35495,21003:39300,21006:39302,21009:35929,21012:39301,21013:64132,21015:38897,21021:36745,21028:38075,21029:38346,21031:39303,21033:38808,21034:39304,21038:39305,21040:37790,21043:39306,21046:37031,21047:36348,21048:35988,21049:39307,21050:36456,21051:36239,21059:37604,21060:39309,21063:37285,21066:36333,21067:39310,21068:39311,21069:37199,21071:39308,21076:39313,21078:38485,21083:36228,21086:39312,21091:35989,21092:36316,21093:38029,21097:39316,21098:39314,21103:38299,21104:36840,21105:39323,21106:35460,21107:39317,21108:39315,21109:37230,21117:39319,21119:39318,21123:35427,21127:35968,21128:39324,21129:38827,21133:39320,21137:39325,21138:39322,21140:39321,21147:38861,21148:64133,21151:36087,21152:35265,21155:38898,21158:64134,21161:36757,21162:37751,21163:36229,21164:39328,21165:39329,21167:64375,21169:38883,21172:38986,21173:39331,21177:36088,21180:39330,21182:35406,21184:64135,21185:39332,21187:38517,21189:37562,21191:38725,21193:38359,21197:39333,21202:59603,21205:37806,21207:39334,21208:35496,21209:38577,21211:64136,21213:36767,21214:39335,21215:38373,21216:39339,21218:37032,21219:39336,21220:35790,21222:39337,21223:35497,21234:35917,21235:39340,21237:39341,21240:39342,21241:39343,21242:36569,21246:36089,21247:38620,21248:64137,21249:38630,21250:37877,21253:38383,21254:39344,21255:64138,21256:39345,21261:39347,21263:39349,21264:39348,21269:39350,21270:35259,21271:38507,21273:36346,21274:39351,21277:37240,21280:36768,21281:35751,21283:39352,21284:64139,21290:38105,21295:39353,21297:39354,21299:39355,21304:39356,21305:38211,21306:35814,21307:35043,21311:37821,21312:39357,21313:36700,21315:37095,21317:39359,21318:39358,21319:36769,21320:36063,21321:39361,21322:38076,21325:39362,21329:38106,21330:37298,21331:37356,21332:35750,21335:37868,21336:37456,21338:38030,21340:38509,21342:39364,21344:37096,21350:35924,21353:39365,21358:39366,21359:35147,21360:35059,21361:35563,21362:64140,21363:37286,21364:35696,21365:38801,21367:39369,21368:35253,21371:39368,21375:35752,21378:39370,21380:38639,21395:64141,21398:39371,21400:38864,21402:36090,21407:36020,21408:39372,21413:39374,21414:39373,21416:36990,21417:35160,21421:35197,21422:39375,21424:39376,21426:64142,21427:36021,21430:39377,21435:35726,21442:36433,21443:39378,21448:38548,21449:36275,21450:35705,21451:38726,21452:37231,21453:38077,21454:36603,21460:36710,21462:36582,21463:36595,21465:36758,21467:38078,21469:64143,21471:39381,21473:35170,21474:37232,21475:36091,21476:36035,21477:35813,21480:39385,21481:37440,21482:37372,21483:35753,21484:36770,21485:39386,21486:39384,21487:35266,21488:37348,21489:36534,21490:36458,21491:35141,21494:35472,21495:36230,21496:36457,21498:39387,21505:39388,21507:35688,21508:35429,21512:36231,21513:35687,21514:37597,21515:35140,21516:37807,21517:38588,21518:36160,21519:38809,21520:37734,21521:36092,21531:35918,21533:39397,21535:35809,21536:38505,21542:38107,21545:39396,21547:35548,21548:39391,21549:39392,21550:39394,21558:39395,21560:35706,21561:36993,21563:38315,21564:39393,21565:39389,21566:36065,21568:39390,21570:38979,21574:38384,21576:37606,21577:36064,21578:36240,21582:39398,21585:37851,21599:39402,21608:36604,21610:36596,21616:39405,21617:39403,21619:38561,21621:39400,21622:39409,21623:39404,21627:39407,21628:36036,21629:38589,21632:39408,21636:39410,21638:39412,21642:64146,21643:36334,21644:39009,21646:39401,21647:39399,21648:39411,21650:39406,21660:64145,21666:39414,21668:39490,21669:39416,21672:39420,21673:64147,21675:39488,21676:39417,21679:39517,21682:36327,21683:35408,21688:39415,21692:39492,21693:35060,21694:39491,21696:34979,21697:38249,21698:39489,21700:39418,21703:39413,21704:39419,21705:36294,21720:39493,21729:35061,21730:39502,21733:39494,21734:39495,21736:36771,21737:38537,21741:39500,21742:39499,21746:37710,21754:39501,21757:39498,21759:64148,21764:35155,21766:36276,21767:36943,21775:39496,21776:37762,21780:39497,21782:34976,21806:39507,21807:38722,21809:36773,21811:39513,21816:39512,21817:39503,21822:37313,21824:39504,21828:37357,21829:39509,21830:36772,21836:39506,21839:38626,21843:35931,21846:39510,21847:39511,21852:39508,21853:39514,21859:39505,21883:39520,21884:39525,21886:39521,21888:39516,21891:39526,21892:37200,21894:64149,21895:39528,21897:36161,21898:39518,21899:37533,21912:39522,21913:39515,21914:35499,21916:35564,21917:35461,21918:39523,21919:39519,21927:35990,21928:39529,21929:39527,21930:37234,21931:35689,21932:35754,21934:39524,21936:35826,21942:35171,21956:39533,21957:39531,21959:39589,21972:39536,21978:39530,21980:39534,21983:39532,21987:36459,21988:39535,22007:39538,22009:39543,22013:39541,22014:39540,22022:37457,22025:35267,22036:39537,22038:39539,22039:36774,22040:35154,22043:39542,22057:35292,22063:39554,22065:36858,22066:39549,22068:39547,22070:39548,22072:39550,22082:35164,22092:37208,22094:39544,22096:39545,22107:35482,22116:39553,22120:35565,22122:39556,22123:39552,22124:39555,22132:38316,22136:37843,22138:38070,22144:39558,22150:39557,22151:35428,22154:39559,22159:39562,22164:39561,22176:39560,22178:37976,22181:39563,22190:39564,22196:39566,22198:39565,22204:39568,22208:39571,22209:39569,22210:39567,22211:39570,22216:39572,22222:39573,22225:39574,22227:39575,22231:39576,22232:39268,22234:36602,22235:36460,22238:35313,22240:35062,22243:37475,22254:39577,22256:36258,22258:35021,22259:36989,22265:39578,22266:36037,22269:36241,22271:39580,22272:39579,22275:38366,22276:39581,22280:39583,22281:39582,22283:39584,22285:39585,22287:35991,22290:35200,22291:39586,22294:39588,22296:39587,22300:39590,22303:37753,22310:39591,22311:34995,22312:36317,22317:35932,22320:37486,22327:39592,22328:39593,22331:39595,22336:39596,22338:36322,22343:35791,22346:38486,22350:39594,22351:39597,22352:36287,22353:36162,22361:64150,22369:39601,22372:36259,22373:64151,22374:37458,22377:39598,22378:37592,22399:39602,22402:36994,22408:39600,22409:39603,22411:35934,22419:39604,22432:39605,22434:36163,22435:35423,22436:39607,22442:39608,22444:64152,22448:39609,22451:39606,22464:39599,22467:39610,22470:39611,22471:64154,22472:64153,22475:38532,22478:36841,22482:39613,22483:39614,22484:39612,22486:39616,22492:37975,22495:35046,22496:38261,22499:39617,22516:36859,22519:36535,22521:38012,22522:35566,22524:36329,22528:38520,22530:37808,22533:35992,22534:37325,22538:39615,22539:39618,22549:37314,22553:39619,22557:39620,22561:39622,22564:37607,22570:35500,22575:60063,22576:35201,22577:38385,22580:36842,22581:37735,22586:36324,22589:39628,22592:38331,22593:38875,22602:35314,22603:39624,22609:37209,22610:39627,22612:37763,22615:37736,22616:37764,22617:38071,22618:37579,22622:36295,22626:39623,22633:35222,22635:37717,22640:39625,22642:39621,22645:36975,22649:39629,22654:36717,22659:35755,22661:39630,22675:38374,22679:37277,22684:37572,22686:64157,22687:39632,22696:38510,22699:39633,22702:39638,22706:64158,22707:38317,22712:39637,22713:39631,22714:39634,22715:39636,22718:36260,22721:38343,22725:39639,22727:37476,22730:35315,22732:36843,22737:39641,22739:39640,22741:36232,22743:39642,22744:39644,22745:39643,22748:39646,22750:39635,22751:39648,22756:39647,22757:39645,22763:36461,22764:36976,22766:37235,22767:39649,22768:37050,22769:35051,22770:38020,22775:37593,22777:39651,22778:39650,22779:39652,22780:39653,22781:39654,22786:39655,22793:38351,22794:39656,22795:64159,22799:35268,22800:39657,22805:38747,22806:35407,22808:39367,22809:36711,22810:37309,22811:39658,22812:38633,22818:38578,22821:39660,22823:37349,22825:37718,22826:37310,22827:38262,22828:39661,22829:39662,22830:35227,22833:36536,22834:39663,22839:35022,22840:39664,22846:39665,22852:35202,22855:35567,22856:37854,22857:38386,22862:39669,22863:37236,22864:39668,22865:35935,22867:64160,22868:38522,22869:39667,22871:37765,22872:39671,22874:39670,22875:64161,22877:64162,22880:39673,22882:39672,22883:64163,22885:35228,22887:39674,22888:36775,22889:39676,22890:37444,22892:39675,22894:38321,22899:36759,22900:37754,22904:39744,22909:36164,22913:39745,22914:37952,22915:38108,22916:38607,22922:37956,22925:39754,22931:35671,22934:38756,22937:38573,22939:39850,22941:39746,22947:39749,22948:64164,22949:37315,22952:38487,22956:37737,22962:39750,22969:38533,22970:64165,22971:36296,22974:36776,22982:39751,22985:36463,22987:36462,22992:34999,22993:36038,22995:37033,22996:35023,23001:39755,23002:39756,23004:39753,23013:35159,23014:35501,23016:39752,23018:38595,23019:38224,23030:34982,23035:35063,23039:36464,23041:35024,23043:34977,23049:39761,23057:39759,23064:38586,23066:39762,23068:39760,23071:39758,23072:36944,23077:39757,23081:38360,23087:36066,23093:39766,23094:39767,23100:36777,23104:39763,23105:38987,23110:37995,23113:39765,23130:36261,23138:39768,23142:38263,23146:39769,23148:39764,23167:38585,23186:38013,23194:39770,23195:38225,23228:39771,23229:39775,23230:39772,23233:35269,23234:39774,23241:36537,23243:39773,23244:35993,23248:39787,23254:39780,23255:39777,23265:37508,23267:39776,23270:39778,23273:39779,23290:39781,23291:39782,23305:35568,23307:39784,23308:39783,23318:39785,23330:36844,23338:39788,23340:37594,23344:35172,23346:39786,23350:39789,23358:39790,23360:39793,23363:39791,23365:39792,23376:36465,23377:39794,23380:36165,23381:39795,23382:64166,23383:36506,23384:37302,23386:39796,23387:39797,23388:36473,23389:36166,23391:38608,23395:35655,23396:36039,23397:39798,23398:35447,23401:39799,23403:37303,23408:39800,23409:39841,23411:39801,23413:39802,23416:39803,23418:39805,23424:39806,23427:39808,23429:37358,23431:35142,23432:36583,23433:35008,23435:37238,23436:35502,23437:36531,23439:36167,23445:37766,23447:36672,23448:35503,23449:37512,23450:37608,23451:34998,23452:35672,23453:38387,23455:36544,23458:35697,23459:37097,23460:36538,23461:38727,23462:39809,23470:35707,23472:36297,23475:35409,23476:35203,23477:36778,23478:35270,23480:39810,23481:38757,23487:36712,23488:64167,23490:36578,23491:39811,23492:35569,23493:37840,23494:38567,23495:39812,23497:39813,23500:38264,23504:39815,23506:35494,23507:35829,23508:39814,23512:64169,23515:35504,23517:36945,23518:39819,23519:36416,23521:35271,23522:39818,23524:39816,23525:39820,23526:39817,23527:37962,23528:40651,23529:36946,23531:39821,23532:64170,23534:38846,23536:39822,23539:39824,23541:37534,23542:39823,23544:37025,23546:36507,23550:37326,23551:36597,23553:38293,23554:37098,23556:36555,23557:39825,23558:36779,23559:39826,23560:39827,23561:35025,23562:37304,23563:36977,23565:39828,23566:37809,23567:36780,23569:36781,23571:39829,23574:37099,23578:36782,23582:64171,23584:39830,23586:39831,23588:38622,23592:39832,23597:35780,23601:36673,23608:39833,23609:39834,23610:36570,23611:36939,23612:37874,23613:36979,23614:38134,23615:37953,23616:35783,23617:39835,23621:35727,23622:39836,23624:35836,23626:37837,23627:35246,23629:36466,23630:39837,23631:39840,23632:39839,23633:35835,23635:39838,23637:37719,23646:37294,23648:37738,23649:36550,23652:37239,23653:38810,23660:39842,23662:39843,23663:37844,23665:36434,23670:39845,23673:39846,23692:39847,23696:35570,23697:39848,23700:39849,23713:35242,23718:64172,23720:37210,23721:35554,23723:39851,23724:38566,23729:37328,23731:35448,23734:39853,23735:39855,23736:35549,23738:64173,23739:39852,23740:39854,23742:39857,23749:39856,23751:39858,23769:39859,23776:37819,23777:35756,23784:35299,23785:39860,23786:39865,23789:39863,23791:38389,23792:38388,23797:64174,23798:37767,23802:39862,23803:36723,23805:39861,23815:37010,23819:39866,23822:36328,23825:39872,23828:39873,23829:39867,23830:35410,23831:39868,23832:39877,23833:39876,23834:39875,23835:39871,23839:39870,23842:39874,23847:64175,23849:38390,23874:64178,23883:39881,23884:39878,23886:39880,23888:38802,23890:39879,23891:64176,23900:39869,23913:37011,23916:39882,23917:64179,23919:36277,23923:39883,23926:39884,23938:39887,23940:39886,23943:39885,23947:37768,23948:39864,23952:39893,23965:39889,23970:39888,23980:39890,23982:39891,23991:39894,23992:64180,23993:64181,23994:38884,23996:39895,23997:39892,24009:39896,24012:35550,24013:39897,24016:64182,24018:39899,24019:39898,24022:39900,24027:39901,24029:37100,24030:36674,24033:36740,24035:37251,24037:36168,24038:36278,24039:36169,24040:35728,24043:39902,24046:36279,24049:36040,24050:39903,24051:38564,24052:37986,24053:39904,24055:36170,24059:35498,24061:37446,24062:35792,24066:36467,24067:38266,24070:38079,24075:39905,24076:35571,24081:39908,24086:37535,24089:39907,24090:39906,24091:39909,24093:37609,24101:36995,24107:36468,24109:37064,24111:37329,24112:35649,24115:37536,24118:39910,24119:39911,24120:36845,24125:38488,24128:39914,24131:39913,24132:39912,24133:38301,24135:39921,24140:38521,24142:39915,24148:39917,24149:38539,24151:39916,24159:39918,24161:38054,24162:39919,24163:38332,24164:39920,24178:35505,24179:38333,24180:37966,24181:39922,24182:39923,24184:36171,24185:35506,24186:39924,24187:36022,24188:38755,24189:38728,24190:35572,24191:39926,24193:37537,24195:36172,24196:36783,24199:38109,24202:36784,24207:36760,24213:37610,24214:38391,24215:37720,24218:36173,24220:38267,24224:39927,24230:37752,24231:36288,24235:36041,24237:37611,24245:35009,24246:36750,24247:36174,24248:38758,24257:39928,24258:39929,24259:38000,24264:39930,24265:38901,24266:38988,24271:39932,24272:39931,24275:35430,24278:40000,24282:40003,24283:40004,24285:40002,24287:38239,24288:36785,24289:40006,24290:40005,24291:40001,24296:40007,24297:40008,24300:40009,24304:40012,24305:40010,24307:40011,24308:40013,24310:35204,24311:37612,24312:40014,24314:35994,24315:35316,24316:37973,24318:40015,24319:37881,24321:38361,24323:40016,24324:38989,24329:40017,24330:38334,24331:40020,24332:39071,24333:39087,24335:36526,24336:37875,24337:40021,24339:35708,24340:37538,24341:35064,24342:40022,24343:38308,24344:36175,24347:37487,24351:37613,24353:64183,24357:38637,24358:36023,24359:36042,24361:40023,24365:40024,24367:40030,24369:36579,24372:64184,24373:37539,24375:35757,24376:40025,24380:38218,24382:37477,24385:40026,24389:64103,24392:40027,24394:35758,24396:40028,24398:40029,24401:40031,24403:37782,24406:40032,24407:40033,24409:40034,24412:40019,24413:40018,24417:40035,24418:35936,24422:38214,24423:64185,24425:36298,24426:38230,24427:37540,24428:38250,24429:40036,24432:36786,24433:35173,24435:40037,24439:40038,24441:38640,24444:38110,24447:40041,24448:35229,24449:37034,24450:40040,24451:40039,24452:35937,24453:37330,24455:40045,24456:40043,24458:40042,24459:38821,24460:36067,24464:36761,24465:40044,24466:37739,24467:36701,24471:37822,24472:40048,24473:40047,24478:40046,24480:40049,24481:36068,24488:40050,24489:38300,24490:36730,24493:40051,24494:38135,24499:37823,24500:37541,24503:64186,24505:37711,24508:40052,24509:35658,24515:36947,24517:38219,24524:35573,24525:37957,24534:40053,24535:36469,24536:38489,24537:38490,24540:35230,24541:40058,24542:64187,24544:37513,24548:40055,24555:35317,24560:40107,24561:40057,24565:37967,24568:40056,24571:40054,24573:36250,24575:40060,24590:40067,24591:40073,24592:40065,24594:37755,24597:40070,24598:38268,24601:40064,24603:40069,24604:38885,24605:36470,24608:37331,24609:40061,24613:35709,24614:40072,24615:37035,24616:35205,24617:40066,24618:35318,24619:40071,24623:35759,24625:40068,24634:40074,24641:40076,24642:40086,24643:40084,24646:40081,24650:40080,24651:38902,24653:40082,24656:35760,24658:36176,24661:36762,24665:40089,24666:40075,24669:64188,24671:40079,24672:40062,24674:35320,24675:40083,24676:40085,24677:37488,24680:36262,24681:35254,24682:40077,24683:40088,24684:40087,24685:35761,24687:37287,24688:35462,24693:35938,24695:40078,24705:40090,24707:40093,24708:40095,24709:64189,24713:36539,24714:64190,24715:40101,24716:37614,24717:40091,24722:40099,24724:35319,24726:40097,24727:40098,24730:40094,24731:40096,24735:36069,24736:38729,24739:35507,24742:35192,24743:40100,24745:37977,24746:34987,24754:38111,24755:40059,24756:40106,24757:40110,24758:38627,24760:40103,24764:37769,24765:40108,24773:36846,24774:40109,24775:37845,24785:39014,24787:40105,24789:64192,24792:40111,24794:36251,24796:37065,24798:64191,24799:35026,24800:40104,24801:40102,24803:37241,24807:40092,24808:36435,24816:37316,24817:40123,24818:64194,24819:37242,24820:40118,24822:40115,24823:40116,24825:36580,24826:40119,24827:40122,24832:40117,24833:36676,24835:40120,24838:40114,24840:38650,24841:38649,24845:40124,24846:40125,24847:35027,24849:64195,24853:40113,24858:35824,24859:34980,24863:35508,24864:64193,24865:40121,24871:40129,24872:40128,24876:40133,24880:64197,24884:40134,24887:64196,24892:40132,24893:40135,24894:40127,24895:40131,24898:40136,24900:40137,24903:40126,24904:36508,24906:40130,24907:37332,24908:36177,24909:40112,24910:36948,24915:40150,24917:38375,24920:40140,24921:40141,24922:40142,24925:40149,24927:40148,24930:38557,24931:35509,24933:40146,24935:35940,24936:35411,24939:40143,24942:38838,24943:40145,24944:35028,24945:40147,24947:40138,24948:40144,24949:40151,24950:35939,24951:40139,24958:38780,24962:38730,24967:40154,24970:40158,24974:37278,24976:38903,24977:40159,24980:40156,24982:40153,24984:64198,24985:40152,24986:40157,24996:38318,24999:37810,25001:35941,25003:40160,25004:40155,25006:40161,25010:35995,25014:35247,25018:40169,25022:35510,25027:40167,25030:40168,25031:36263,25032:40166,25033:40164,25034:40163,25035:40170,25036:40162,25037:40172,25040:35321,25059:40174,25062:40173,25074:37542,25076:40177,25078:40175,25079:40165,25080:35996,25082:40176,25084:40180,25085:40179,25086:40181,25087:40178,25088:40182,25096:40183,25097:40184,25098:38376,25100:40186,25101:40185,25102:36702,25104:37036,25105:35300,25106:35322,25107:64199,25108:40187,25110:35005,25114:37066,25115:40188,25117:59073,25118:40256,25119:35969,25121:40257,25126:37101,25130:40258,25134:40259,25135:35673,25136:40260,25138:40261,25139:40262,25140:37333,25144:36043,25147:38623,25151:38491,25152:36746,25153:40263,25159:37102,25160:59323,25161:38112,25163:36584,25165:36299,25166:40264,25171:37317,25173:38309,25176:37359,25179:40267,25182:40265,25184:40268,25187:40266,25192:40269,25198:38319,25201:34997,25206:38269,25209:38113,25212:40270,25214:40273,25215:36787,25216:35674,25218:40271,25219:40278,25220:36788,25225:40272,25226:37987,25233:38781,25234:40274,25235:40275,25236:40279,25237:37770,25238:40276,25239:36178,25240:37084,25243:40293,25244:38066,25246:37360,25254:64200,25259:38114,25260:40363,25265:38392,25269:37615,25273:38549,25275:40282,25276:35231,25277:37514,25282:40291,25285:37459,25286:40285,25287:40292,25288:40287,25289:40294,25290:40290,25292:40289,25293:38031,25295:40283,25296:35323,25297:40281,25298:35729,25299:37361,25300:40277,25303:40280,25304:36179,25305:37081,25307:36789,25308:40288,25309:38001,25312:35730,25313:35431,25324:35463,25325:36928,25326:40296,25327:40301,25329:40297,25331:35997,25333:40302,25334:36417,25335:36233,25342:36677,25343:40284,25345:36509,25346:40299,25351:36471,25352:40300,25353:35010,25356:40295,25361:37543,25369:35731,25375:35762,25383:40298,25384:34981,25387:36289,25391:36949,25402:37616,25405:38098,25406:40304,25407:37245,25417:37288,25420:36426,25421:40305,25423:40307,25424:40303,25429:38367,25431:37563,25436:37243,25447:38393,25448:36556,25449:40320,25451:40318,25454:37016,25458:35998,25462:40312,25463:36791,25466:37862,25467:37968,25472:40310,25475:37244,25480:36598,25481:40315,25484:36790,25486:40309,25487:40314,25490:38002,25494:40308,25496:35904,25499:35452,25503:40316,25504:38825,25505:36300,25506:37460,25507:40313,25509:37082,25511:36180,25512:36996,25513:35206,25514:37211,25515:40311,25516:35684,25522:35942,25524:37581,25525:40317,25531:37246,25534:40321,25536:40323,25539:37301,25540:40329,25542:40324,25545:40326,25551:38240,25552:37617,25554:40327,25558:38731,25562:38759,25563:35511,25569:34988,25571:40325,25577:40322,25582:35574,25588:35207,25589:64201,25590:40328,25594:38760,25606:40332,25613:37305,25615:40339,25619:40333,25622:40330,25623:40337,25628:40306,25638:40334,25640:40338,25644:38080,25645:37771,25652:40331,25654:40335,25658:35943,25662:36335,25666:37083,25678:40343,25688:37701,25696:64202,25703:40340,25705:38528,25711:40341,25718:40342,25720:38604,25722:37024,25731:35970,25736:40349,25746:36436,25747:40346,25749:40345,25754:37969,25757:64203,25758:37811,25764:37712,25765:40347,25769:40348,25771:38287,25773:37988,25774:36418,25776:37103,25778:38511,25785:35432,25787:40355,25788:40350,25793:38761,25794:40357,25797:40353,25799:40354,25805:37248,25806:64204,25810:40352,25812:40286,25816:40356,25818:40351,25824:40361,25825:40362,25826:37702,25827:40364,25830:36419,25831:40359,25836:35675,25839:40365,25841:40358,25842:40369,25844:40368,25846:40367,25850:40370,25853:40372,25854:36847,25856:40371,25861:40375,25880:40373,25884:40374,25885:40336,25891:40377,25892:40376,25898:40344,25899:40378,25900:40366,25903:36472,25908:40379,25909:40380,25910:40382,25911:40381,25912:40383,25913:35324,25915:36181,25918:38394,25919:37037,25925:36044,25928:40385,25933:40388,25934:64205,25935:38257,25937:35710,25941:40387,25942:40386,25943:38003,25944:40389,25945:35763,25949:40391,25950:40390,25954:35512,25955:36437,25958:37846,25964:35944,25968:37012,25970:40392,25972:37038,25973:37703,25975:38270,25976:40393,25986:40394,25987:40395,25991:38326,25992:39804,25993:37060,25996:38251,25998:36310,26000:38115,26001:38081,26007:37740,26009:38847,26011:40397,26012:36558,26015:40398,26017:34996,26020:35794,26021:37067,26023:38272,26027:40399,26028:36449,26029:37478,26031:36474,26032:36950,26039:40400,26041:38395,26044:35223,26045:36475,26049:40403,26051:40401,26052:40404,26053:38839,26054:40402,26059:37113,26060:40405,26063:37296,26066:40406,26071:35576,26073:40408,26075:40407,26080:40409,26081:40410,26082:35577,26085:37882,26086:37461,26087:35724,26088:36476,26089:37249,26092:36731,26093:34990,26097:40411,26106:35232,26107:40415,26112:64206,26114:36182,26115:40414,26118:36265,26119:36792,26121:64209,26122:40413,26124:36793,26126:38590,26127:36264,26131:35029,26132:37068,26133:64207,26140:40420,26142:64211,26143:37039,26144:35174,26148:64212,26149:36724,26151:38534,26152:36336,26157:36794,26158:64210,26159:37029,26161:64099,26164:40419,26165:40417,26166:40418,26171:64208,26172:37515,26175:40517,26177:40424,26178:36510,26179:36183,26180:40422,26185:40423,26187:36951,26191:40421,26194:36430,26199:64214,26201:64215,26205:40426,26206:40425,26207:40430,26210:40431,26212:40427,26213:64213,26214:35393,26215:40428,26216:40429,26217:38099,26222:38273,26223:35945,26224:40432,26227:64217,26228:37040,26230:36795,26234:37489,26241:35781,26243:40433,26244:40437,26247:35273,26248:40434,26249:40436,26254:40435,26257:36747,26262:37479,26263:35011,26264:40438,26265:64218,26269:40439,26272:64219,26274:37544,26278:38895,26283:36450,26286:38377,26290:64220,26292:38492,26296:40513,26297:40441,26300:40444,26302:40443,26303:64221,26305:40440,26308:40512,26311:37852,26313:40442,26326:40514,26329:36748,26330:40515,26332:38762,26333:38040,26336:40516,26342:40518,26345:40519,26352:40520,26354:35784,26355:35175,26356:36184,26357:40521,26359:40522,26360:36753,26361:37250,26362:64222,26363:64102,26364:39382,26365:37213,26366:37212,26367:37334,26368:36293,26371:39152,26376:35982,26377:38732,26379:38396,26381:38302,26382:64223,26383:40523,26388:36337,26389:37565,26390:40524,26391:38990,26395:38493,26397:37545,26398:40525,26399:35578,26406:40526,26407:40527,26408:38616,26410:38562,26411:38550,26412:38523,26413:36420,26414:40529,26417:36585,26420:38512,26422:40531,26423:40534,26424:40533,26426:35575,26429:35712,26431:40530,26433:40532,26438:40535,26441:37017,26446:38811,26447:35015,26448:36318,26449:37306,26451:36571,26454:36849,26457:40538,26460:37741,26462:40536,26463:37289,26464:40537,26465:36848,26466:38619,26467:40539,26468:40540,26469:38792,26470:64225,26474:40545,26477:36185,26479:38004,26480:40542,26481:37772,26482:40412,26483:40416,26485:35694,26487:37990,26492:40544,26494:36796,26495:38082,26501:40550,26503:38136,26505:40541,26507:40547,26508:40546,26512:37069,26517:38541,26519:38865,26522:38535,26524:35274,26525:36477,26528:39015,26529:40549,26530:37013,26534:40548,26537:40543,26543:36045,26547:40555,26548:40553,26550:35275,26551:40551,26552:40557,26553:40563,26555:64226,26560:64228,26561:37318,26564:38335,26566:40565,26570:38209,26574:40564,26575:38032,26576:38494,26577:35513,26579:37109,26580:36703,26584:37585,26586:38733,26589:40560,26590:40559,26594:40561,26596:40558,26599:40566,26601:40556,26604:40554,26606:40562,26607:40552,26609:37516,26611:38646,26612:36548,26613:36338,26619:36280,26622:38543,26623:35424,26625:64229,26626:37580,26627:37832,26628:35176,26643:37104,26646:37042,26647:35913,26654:40568,26657:36186,26658:35484,26665:40570,26666:35476,26667:40577,26674:40573,26676:37105,26680:35434,26681:36266,26684:35433,26685:36301,26688:40571,26689:35973,26690:35946,26691:37773,26692:64230,26694:40569,26696:35012,26701:40572,26702:40574,26704:35787,26705:35915,26706:64227,26707:35514,26708:35690,26713:40578,26716:36343,26717:38545,26719:36438,26723:40579,26727:38223,26740:40591,26742:35249,26743:40580,26750:40597,26751:40581,26753:38848,26755:40588,26757:38014,26765:40596,26767:40583,26771:34994,26772:40585,26775:36187,26779:40587,26781:40586,26783:40582,26784:40593,26786:36797,26790:39659,26791:36070,26792:38812,26797:40584,26799:37618,26800:35394,26801:36267,26803:40576,26805:40592,26806:35457,26809:40590,26810:40594,26812:37774,26820:35580,26822:40624,26824:64100,26825:38599,26826:40599,26827:35579,26829:40606,26831:64231,26834:38495,26836:40607,26837:40609,26839:40613,26840:40601,26842:37449,26847:37775,26848:40617,26849:40604,26851:40614,26855:40608,26862:36952,26863:40618,26866:37041,26873:40616,26874:35515,26880:39023,26881:40598,26884:40612,26885:35030,26888:40600,26891:38584,26892:40605,26893:36929,26894:37573,26895:40595,26898:40611,26905:37018,26906:40621,26907:35473,26908:35999,26913:40623,26914:40602,26915:40622,26917:40615,26918:40603,26920:40619,26922:40620,26928:40637,26932:37836,26934:40610,26937:40633,26941:40635,26943:37590,26954:38763,26963:38294,26964:40630,26965:37320,26969:40636,26970:37214,26972:40627,26973:40640,26974:40639,26976:37869,26977:40638,26978:37864,26984:64233,26986:40642,26987:40629,26989:35782,26990:40632,26991:36732,26995:38016,26996:40634,26997:35785,26999:40626,27000:40628,27001:40625,27004:38991,27005:35449,27006:40631,27009:40641,27010:35412,27018:36325,27022:35196,27025:40658,27028:38992,27029:40661,27032:64235,27035:36953,27036:40660,27040:40659,27047:40656,27054:40644,27057:40673,27058:40643,27060:40662,27067:40654,27070:40649,27071:40646,27073:40647,27075:40655,27079:60064,27082:40652,27083:36188,27084:37574,27085:37252,27086:40650,27088:40645,27091:40648,27096:38764,27097:38538,27101:40653,27102:40663,27106:64236,27111:40671,27112:40664,27115:40677,27117:40675,27122:40670,27129:40669,27131:37582,27133:37253,27135:40667,27138:40665,27141:40672,27146:40678,27147:38131,27148:40684,27154:40679,27155:40682,27156:40676,27159:37524,27161:38231,27163:40666,27166:40674,27167:36798,27169:38605,27170:40694,27171:40681,27177:36000,27178:35233,27179:35454,27182:40657,27184:64237,27189:36799,27190:40686,27192:40693,27193:36599,27194:35474,27197:37453,27204:40683,27206:64239,27207:40688,27208:40692,27211:35764,27224:35691,27225:40690,27231:35648,27233:37833,27234:40689,27238:40691,27243:64238,27250:40685,27251:64240,27256:40687,27262:64241,27263:35456,27264:37480,27268:40698,27277:40696,27278:36071,27280:40695,27287:40768,27292:40567,27296:40697,27298:40699,27299:40700,27306:40779,27308:40775,27310:40589,27315:40774,27320:40773,27323:40770,27329:40680,27330:40772,27331:40771,27345:40777,27347:38981,27354:40780,27355:35833,27358:40776,27359:40778,27362:64242,27364:64243,27368:38053,27370:40781,27386:40785,27387:40782,27396:38803,27397:40783,27402:40668,27410:40786,27414:40787,27421:35156,27423:40789,27424:35975,27425:36511,27427:35795,27431:35234,27442:38782,27447:40791,27448:40790,27449:40793,27450:35676,27453:35796,27454:35516,27459:40796,27463:40795,27465:40797,27468:35276,27470:37462,27472:40798,27475:35517,27476:40800,27481:40799,27483:40801,27487:40802,27489:40803,27490:36478,27491:37043,27492:36255,27494:38288,27497:38368,27498:39011,27503:36501,27507:36302,27508:38896,27512:40804,27513:40805,27515:36480,27519:40806,27520:40807,27523:40809,27524:40808,27526:38519,27529:36733,27530:36586,27531:36451,27533:40810,27541:40812,27542:36930,27544:40811,27550:40813,27556:40814,27562:40815,27563:40816,27567:40817,27569:40819,27570:40818,27571:40820,27572:35235,27573:37481,27575:40821,27578:36421,27579:35435,27580:40822,27583:37729,27584:39626,27589:35650,27590:40823,27595:40824,27597:38378,27598:38536,27602:37829,27603:40825,27604:38116,27606:64244,27608:38137,27611:38609,27615:40826,27627:40828,27628:40827,27631:40830,27635:40829,27656:40833,27663:36481,27665:38575,27667:40834,27668:40835,27671:35651,27675:40836,27683:40838,27684:40837,27700:36997,27703:38232,27704:35177,27710:38083,27711:64245,27712:37619,27713:36704,27714:35713,27726:38084,27728:36524,27733:40840,27735:35518,27738:35224,27740:64246,27741:37872,27742:40839,27743:36189,27744:37490,27746:40841,27752:40849,27754:40842,27759:64248,27760:37311,27762:35714,27763:40850,27770:35976,27773:35652,27774:40848,27777:40846,27778:40843,27779:38784,27782:64247,27784:37566,27788:37847,27789:40844,27792:40852,27794:40851,27795:35906,27798:35243,27801:36281,27802:40845,27803:40847,27809:38518,27810:37362,27819:38551,27822:40860,27825:40861,27827:35277,27832:38310,27833:38651,27834:40863,27835:36513,27836:36800,27837:40856,27838:40862,27839:35208,27841:35765,27844:40853,27845:40858,27849:37106,27850:38033,27852:38117,27859:40855,27861:38464,27863:40857,27865:40866,27866:64249,27867:40864,27869:40859,27873:38465,27874:37991,27875:35715,27877:37700,27880:37517,27882:40867,27887:40865,27888:37335,27889:40854,27891:35178,27908:64250,27915:38765,27916:40878,27922:40877,27927:37108,27929:40874,27931:38796,27934:37812,27935:40868,27941:37571,27945:35179,27946:36190,27947:40871,27954:36678,27955:40876,27957:40875,27958:40870,27960:40873,27963:35464,27965:40872,27966:37992,27969:38828,27972:36850,27973:37107,27993:40884,27994:40882,27996:38252,28003:40879,28004:40881,28006:35161,28009:36191,28010:38993,28012:35420,28014:38274,28015:64252,28020:38785,28023:35395,28024:36954,28025:40883,28037:40888,28039:64251,28040:36801,28044:38735,28046:40885,28051:40880,28053:40886,28054:64320,28057:38876,28059:37779,28060:37824,28076:64321,28079:35413,28082:35188,28085:40892,28088:40895,28092:38849,28096:38788,28101:40902,28102:40896,28103:40893,28107:38866,28108:40899,28111:64322,28113:36713,28114:40901,28117:40906,28120:37777,28121:40904,28126:40898,28129:37463,28132:40905,28134:40894,28136:40900,28138:40907,28139:35066,28140:40897,28142:40908,28145:36955,28146:64324,28147:36734,28149:38307,28151:36268,28152:64323,28153:40889,28154:40903,28155:37721,28156:64325,28165:37044,28167:35465,28168:36303,28169:36802,28170:40891,28171:36705,28179:35947,28181:40890,28185:40912,28186:36749,28187:36024,28189:40927,28191:40921,28192:35732,28193:37742,28195:40916,28196:40925,28197:34989,28198:35153,28199:64328,28201:35255,28203:40918,28204:37290,28205:40909,28206:40911,28207:36192,28216:40928,28217:64326,28218:40923,28220:64329,28222:40915,28227:40922,28234:38569,28237:40920,28238:40924,28246:36046,28248:36803,28251:37464,28252:64327,28255:40914,28263:38734,28267:40917,28270:40910,28271:37778,28274:40913,28278:40919,28286:39024,28287:36540,28288:38558,28290:40929,28300:38060,28303:40941,28304:36025,28310:36736,28312:40931,28316:38829,28317:36193,28319:40944,28322:35052,28325:40942,28330:40930,28335:40936,28338:40938,28342:38766,28343:40933,28346:37709,28349:40935,28351:64330,28354:40943,28356:40937,28357:38597,28361:40932,28363:36512,28364:40956,28369:35466,28371:40934,28372:40939,28373:40940,28381:37354,28382:37336,28396:40948,28399:40954,28402:40952,28404:37704,28407:57410,28408:40949,28414:40950,28415:40926,28417:35737,28418:38233,28422:36541,28425:36247,28431:38994,28433:40946,28435:57409,28436:35209,28437:37254,28448:38041,28450:35519,28451:38904,28459:38559,28460:37584,28465:40953,28466:40955,28472:37201,28478:57408,28479:40951,28481:40945,28485:35521,28500:35977,28504:57422,28507:57417,28508:37110,28511:35459,28516:36737,28518:57426,28525:57419,28526:37546,28527:57416,28528:37591,28532:57451,28536:57413,28538:57412,28540:57421,28544:57415,28545:57414,28546:57420,28548:37023,28550:57411,28552:64331,28558:57423,28561:57424,28567:35520,28577:57429,28579:57428,28580:57430,28586:57433,28593:37730,28595:57427,28597:64332,28601:57431,28608:35971,28609:37367,28610:57425,28611:37978,28614:57432,28628:57437,28629:57435,28632:57438,28635:57441,28639:57434,28640:36234,28641:37959,28644:40887,28651:38804,28652:57436,28654:57440,28655:37363,28657:57439,28659:57418,28661:64333,28662:59529,28666:57444,28670:57448,28673:57446,28677:64334,28679:64335,28681:57442,28683:57443,28687:57447,28689:57445,28693:38253,28696:57453,28698:57450,28699:57449,28701:57452,28702:37842,28703:57454,28710:37525,28711:37355,28712:64336,28716:37027,28720:57455,28722:57457,28734:57456,28748:40947,28753:57458,28760:37861,28771:57459,28779:35278,28783:37780,28784:35396,28792:35716,28796:36572,28797:36304,28805:64337,28809:38982,28810:36998,28814:35210,28818:57461,28825:57460,28843:64338,28844:57464,28845:37465,28846:57467,28847:57462,28851:57466,28856:57465,28857:37727,28858:35031,28859:64098,28872:38899,28875:57469,28879:35143,28889:57472,28893:57470,28895:57468,28913:57463,28921:38466,28925:57474,28932:64340,28937:57473,28943:64339,28948:35211,28953:57476,28954:38320,28956:57475,28961:38579,28966:36805,28982:37202,28988:36804,28998:64342,28999:64343,29001:38905,29004:57482,29006:37111,29013:57478,29014:57483,29017:35212,29020:64341,29026:57481,29028:38017,29029:57477,29030:57480,29031:36806,29033:38095,29036:57484,29038:36559,29053:37112,29060:57487,29064:57479,29066:35910,29071:57485,29076:38767,29077:57488,29081:60068,29087:36718,29096:57489,29100:57490,29105:37965,29113:57492,29118:57493,29121:64345,29123:37970,29128:37781,29129:57495,29134:57497,29136:38867,29138:57494,29140:57496,29141:35213,29143:57491,29151:39546,29152:57498,29157:37255,29158:36439,29159:57500,29164:57499,29165:36931,29166:39383,29173:57501,29177:57503,29179:57486,29180:57502,29182:64346,29183:57504,29190:38042,29197:57505,29200:57506,29211:57507,29224:57508,29226:37596,29228:57510,29229:57509,29232:57511,29234:57512,29237:36573,29238:38275,29242:38634,29243:57513,29244:57514,29245:37237,29246:36514,29247:57515,29248:57516,29254:57517,29255:38352,29256:38085,29259:57518,29260:38006,29266:37547,29272:57519,29273:35301,29275:35725,29277:38596,29279:38580,29281:35250,29282:38995,29287:38513,29289:38312,29298:37045,29300:57520,29305:37825,29309:36001,29310:57521,29312:36306,29313:57523,29314:57522,29319:57524,29330:57525,29334:57526,29344:35677,29346:57527,29351:57528,29356:36002,29359:38086,29361:64347,29362:57530,29366:36851,29369:57529,29374:64348,29378:35766,29379:57531,29380:57533,29382:57532,29390:57534,29392:36047,29394:57535,29399:35815,29401:37215,29403:36253,29408:57537,29409:57538,29410:57536,29417:36587,29420:37830,29421:35767,29431:57540,29432:37451,29433:57539,29436:38996,29437:38018,29450:57543,29462:57545,29463:57542,29467:38610,29468:57544,29469:57546,29471:38850,29476:64349,29477:57550,29481:57549,29482:37526,29483:37964,29486:36003,29487:57548,29492:57547,29494:38736,29495:38737,29502:57551,29503:35214,29508:36246,29509:36482,29518:57552,29519:57553,29527:57555,29539:36706,29544:57557,29546:57556,29552:57558,29554:35436,29557:57560,29559:64351,29560:57559,29562:57562,29563:57561,29572:36026,29575:38822,29577:35786,29579:35236,29590:35816,29609:35551,29618:38886,29619:57564,29627:57566,29629:64352,29632:57567,29634:35279,29640:57563,29641:64353,29642:36440,29645:37567,29646:57565,29650:64356,29654:64354,29662:57570,29664:36588,29667:64355,29669:57568,29674:35933,29677:38087,29678:57569,29681:57596,29685:64358,29688:57575,29694:36027,29699:35717,29701:57572,29702:38813,29703:64357,29705:38830,29730:37364,29733:57574,29734:64359,29737:64361,29738:64360,29742:64362,29746:57576,29747:38868,29748:35797,29749:38138,29750:37993,29754:57577,29759:57579,29761:57582,29781:57578,29785:57581,29786:36072,29787:35180,29788:57583,29790:37008,29791:57580,29792:38874,29794:64363,29795:57586,29796:60066,29801:57584,29802:57587,29807:57573,29808:57585,29811:36282,29814:57588,29822:57589,29827:38814,29833:64364,29835:57590,29854:57591,29855:64365,29858:57571,29863:57592,29872:35522,29885:36515,29898:57593,29903:57594,29908:57595,29916:35162,29920:57664,29922:38234,29923:57665,29926:35490,29927:57666,29929:57667,29934:57668,29936:57670,29937:57671,29938:57669,29942:38258,29943:57673,29944:57672,29953:64366,29955:57675,29956:57674,29957:57676,29964:57677,29965:57679,29966:57678,29969:36249,29971:57681,29973:57680,29976:35523,29978:36978,29980:37723,29982:57682,29983:37046,29987:36441,29989:35225,29990:57683,29992:38768,29995:38369,29996:57684,29999:64168,30000:37731,30001:38738,30002:36194,30003:36956,30007:37482,30008:39346,30010:37548,30011:35302,30012:57685,30020:57686,30022:57691,30025:57689,30026:57688,30027:40384,30028:35397,30029:57687,30031:35032,30033:38056,30036:38088,30041:38831,30042:57692,30043:57690,30044:37499,30045:37028,30048:38057,30050:38220,30052:57694,30053:38826,30054:35948,30055:57695,30057:57693,30058:38100,30059:57696,30061:57697,30063:64367,30064:35033,30067:36852,30068:57702,30070:57699,30071:37867,30072:57698,30079:35653,30082:57705,30086:57700,30087:57701,30089:57704,30090:57703,30091:38212,30094:37217,30095:37216,30097:35678,30100:57706,30106:57707,30109:57708,30115:57710,30117:57709,30123:35189,30129:57718,30130:38118,30131:57712,30133:57714,30136:57716,30137:36957,30140:57717,30141:57715,30142:36542,30146:57711,30147:57713,30149:38241,30151:36807,30154:57720,30157:57719,30162:57721,30164:36516,30165:36269,30168:37783,30169:57722,30171:37577,30174:57724,30178:38815,30179:57723,30185:37257,30192:57730,30194:57732,30195:57733,30196:37491,30202:57731,30204:57728,30206:57725,30207:57726,30209:57729,30217:57736,30219:57734,30221:57735,30239:57737,30240:57739,30241:57740,30242:57741,30244:57742,30247:57738,30256:57744,30260:57743,30267:57745,30274:38851,30278:57748,30279:57746,30280:57747,30284:35552,30290:38652,30294:38344,30296:57750,30300:57749,30305:57751,30306:57752,30311:57756,30312:57753,30313:57754,30314:57755,30316:57757,30320:57758,30322:57759,30326:57760,30328:57761,30330:38061,30331:37743,30332:57762,30333:38034,30334:38227,30336:57763,30338:64368,30339:57764,30340:37705,30342:35398,30343:36195,30344:57765,30347:57766,30350:57767,30352:36424,30355:57769,30358:57768,30361:57770,30362:57771,30363:64371,30364:64369,30366:64370,30374:64372,30382:38119,30384:57772,30388:57773,30391:60041,30392:57774,30393:57775,30394:57776,30399:36429,30402:57777,30403:38005,30406:38526,30408:35181,30410:35190,30413:57778,30418:57780,30422:57779,30423:37776,30427:37047,30428:40792,30430:57781,30431:38591,30433:57782,30435:35524,30436:38101,30437:57783,30439:57784,30442:57785,30446:38618,30450:38611,30452:37564,30456:37258,30459:57787,30462:36738,30465:36808,30468:57790,30471:57789,30472:57788,30473:38139,30475:35525,30476:36007,30491:57796,30494:57793,30495:36958,30496:38576,30500:57792,30501:57794,30502:57795,30505:57791,30519:57797,30520:57798,30522:37549,30524:35553,30528:37509,30534:64374,30535:57799,30554:57800,30555:57803,30561:36999,30563:37826,30565:57804,30566:38514,30568:57801,30571:57802,30585:57807,30590:57806,30591:57805,30603:57809,30606:57808,30609:57810,30622:57812,30624:57811,30629:38347,30636:36725,30637:38852,30640:57813,30643:37813,30646:57814,30649:57815,30651:57819,30652:57817,30653:57818,30655:57816,30663:57820,30669:57821,30679:57822,30682:57823,30683:38581,30684:57824,30690:38638,30691:57825,30693:37485,30695:38026,30697:35817,30701:37466,30702:57826,30703:35768,30707:37070,30716:57827,30722:36283,30732:57828,30738:57829,30740:36004,30741:36307,30752:57831,30753:64376,30757:37749,30758:36308,30759:35693,30770:38467,30772:37994,30778:37750,30783:36219,30789:57833,30798:64377,30813:36809,30820:64378,30827:38832,30828:36196,30831:36005,30834:38049,30836:57835,30842:64379,30844:57837,30849:36073,30854:57836,30855:37620,30860:57839,30861:35414,30862:57834,30865:38120,30867:35151,30869:36330,30871:39025,30874:57838,30883:57840,30887:38345,30889:37079,30890:57842,30895:57843,30901:57841,30906:35437,30908:57849,30910:57848,30913:36517,30917:57850,30918:57845,30922:57851,30923:57846,30928:38102,30929:57844,30932:57847,30938:57921,30951:57920,30952:38529,30956:57852,30959:35049,30964:57923,30973:57922,30977:36810,30983:57924,30990:37218,30993:57926,30994:57925,31001:57927,31014:57830,31018:57832,31019:57929,31020:57928,31024:64380,31034:36518,31036:38887,31038:36560,31040:57930,31041:35926,31047:35679,31048:35654,31049:36483,31056:38739,31059:57936,31061:57935,31062:37219,31063:57932,31066:57934,31069:36714,31070:36959,31071:57933,31072:57931,31074:37961,31077:36811,31080:38235,31085:36309,31095:37784,31098:57937,31103:57938,31104:57960,31105:35798,31108:39004,31109:37204,31114:57939,31117:35280,31118:37621,31119:38303,31124:64385,31131:64387,31133:57940,31142:35738,31143:57941,31146:57943,31150:57944,31152:37960,31155:57945,31161:57946,31162:57947,31165:35799,31166:35281,31167:37827,31168:36679,31169:36484,31177:57948,31179:36680,31185:35272,31186:38242,31189:57949,31192:38121,31199:37220,31201:57952,31203:57953,31204:38025,31206:36960,31207:57950,31209:37505,31212:57951,31216:36812,31227:35034,31232:35656,31240:57954,31243:37622,31245:57955,31246:37061,31252:38571,31255:38210,31256:57956,31257:57957,31258:37492,31260:38853,31263:57959,31264:57958,31278:36589,31281:57961,31282:35054,31287:57964,31291:57962,31292:35282,31293:35949,31294:57963,31295:36197,31296:36242,31298:38372,31299:57965,31302:38515,31305:57967,31309:37071,31310:35182,31311:35256,31312:34986,31319:57966,31329:57968,31330:57969,31331:36853,31337:57970,31339:35438,31344:57972,31348:35978,31350:35718,31353:57973,31354:35827,31357:57974,31359:37114,31361:37835,31363:37086,31364:36339,31368:57975,31378:37506,31379:37259,31381:57977,31382:57979,31383:57976,31384:57978,31391:35905,31401:57980,31402:35909,31406:35719,31407:38769,31408:57982,31414:57984,31418:35149,31423:57987,31427:35478,31428:57986,31429:57985,31431:57989,31432:57981,31434:57990,31435:38823,31437:57991,31439:57992,31441:64388,31442:39666,31443:57994,31445:57993,31449:57995,31450:57996,31452:38835,31453:57997,31455:59629,31456:36813,31457:57998,31458:57999,31459:36726,31461:37814,31462:58000,31463:64389,31466:37447,31467:64391,31469:58001,31471:37467,31472:58002,31478:35747,31480:39262,31481:37500,31482:36529,31487:35526,31490:58003,31492:58016,31494:58006,31496:35720,31498:58005,31499:58018,31503:58004,31505:36814,31512:58008,31513:58009,31515:37706,31518:58010,31520:35453,31525:36985,31526:38276,31528:58012,31532:37350,31539:58007,31541:58011,31542:58013,31545:36345,31557:58020,31558:38221,31560:38052,31561:37785,31563:35800,31564:58019,31565:58017,31567:38067,31568:58014,31569:37501,31570:37787,31572:37786,31574:36340,31581:58038,31589:58022,31591:58024,31596:58027,31598:58028,31600:58025,31601:58026,31604:58023,31605:58021,31610:58015,31622:38349,31623:35283,31627:58035,31629:58032,31631:58037,31634:58036,31636:38035,31637:38565,31639:36442,31640:58030,31641:58039,31642:58034,31644:58033,31645:58029,31646:64392,31647:58031,31649:35527,31658:37468,31661:37115,31665:38048,31668:58044,31672:38050,31680:37087,31681:58041,31684:38093,31686:58045,31687:38353,31689:37498,31691:58040,31692:58042,31695:58043,31709:58046,31712:36546,31716:37828,31717:58051,31718:58050,31721:58047,31725:38997,31731:58056,31734:58060,31735:58057,31744:58053,31751:58054,31757:58059,31761:58048,31762:39379,31763:58055,31764:58049,31767:58058,31775:58064,31777:35528,31779:58061,31783:58062,31786:58063,31787:58066,31799:58065,31800:38132,31805:58067,31806:38906,31807:38379,31808:58072,31811:58069,31820:58068,31821:37072,31823:58071,31824:58073,31828:58070,31830:58077,31832:58074,31839:58075,31840:58052,31844:58076,31845:58078,31852:58079,31859:38340,31861:58080,31870:38624,31873:35788,31874:35912,31875:58081,31881:38322,31883:37000,31885:38574,31888:58082,31890:38833,31893:38036,31895:37221,31896:37971,31899:36716,31903:35006,31905:58087,31906:58085,31908:58083,31909:35487,31911:36815,31912:58088,31915:58086,31917:58084,31918:58092,31921:58091,31922:58090,31923:58089,31929:58093,31933:58094,31934:37048,31936:58095,31938:58097,31941:58096,31946:36048,31950:37207,31954:58099,31958:37788,31960:58098,31964:58100,31966:38323,31967:37260,31968:36198,31970:58101,31975:38854,31983:58103,31986:58104,31988:58105,31990:58106,31992:36485,31994:58107,31995:35950,31998:35722,32000:35657,32002:58176,32004:38641,32005:36199,32006:58108,32010:58179,32011:38628,32013:37979,32016:38226,32020:36739,32021:58178,32023:36561,32024:36200,32025:36486,32026:35721,32027:38324,32028:58177,32032:37222,32033:38497,32034:36341,32043:36487,32044:37595,32046:58182,32047:38877,32048:36311,32050:58183,32051:36961,32053:58185,32057:36816,32058:36270,32063:58184,32066:36681,32067:36028,32068:37223,32069:58180,32070:58186,32072:64394,32075:58181,32076:35951,32078:58189,32079:58193,32080:35979,32086:58188,32091:58197,32092:64395,32094:36201,32097:38797,32098:35002,32099:58194,32102:35723,32104:58191,32110:58192,32113:37789,32114:58190,32115:58187,32117:35399,32118:37090,32121:36006,32125:58199,32137:58196,32143:58198,32147:58195,32153:35952,32154:37297,32155:58200,32156:37262,32159:58213,32160:64397,32162:58209,32163:58203,32171:58207,32172:36600,32173:35035,32174:58202,32175:58210,32176:58214,32177:36202,32178:38612,32180:37588,32181:58204,32183:64396,32184:58212,32186:58201,32187:37469,32189:58206,32190:35003,32191:38600,32199:58205,32202:35801,32203:38122,32207:37261,32209:38862,32210:36751,32213:58254,32214:64398,32216:58215,32218:37116,32220:58211,32221:58216,32222:58218,32224:37623,32225:58221,32228:58217,32232:38354,32233:35529,32236:38601,32239:35036,32242:58220,32244:38907,32251:58219,32257:35215,32260:37866,32261:58222,32265:58229,32266:58223,32267:58230,32274:58226,32283:38043,32286:36552,32287:58228,32289:58225,32290:58231,32291:58224,32294:36707,32299:38468,32302:36715,32305:58227,32306:58240,32309:58235,32311:58238,32313:58236,32314:58241,32315:58234,32317:58208,32318:37073,32321:38089,32323:58237,32326:58232,32330:37184,32331:35953,32333:36682,32338:64399,32340:36932,32341:37205,32342:58244,32345:58246,32346:58247,32349:58243,32350:58245,32358:58233,32359:58242,32361:58250,32362:58249,32365:38554,32368:35914,32377:58248,32379:58252,32380:58251,32381:58255,32383:58257,32386:36443,32387:58253,32392:58258,32393:58259,32394:64092,32396:58260,32398:58266,32399:37722,32400:58262,32402:58261,32403:58263,32404:58264,32406:58265,32411:58267,32412:58268,32566:35530,32568:58269,32570:58270,32581:58271,32583:64400,32588:58272,32589:58273,32590:58274,32592:58275,32593:58276,32596:58278,32597:58277,32600:58279,32607:58280,32608:58281,32615:58284,32616:58282,32617:58283,32618:36319,32619:35954,32622:37493,32624:38065,32626:36752,32629:37996,32631:38123,32632:58285,32633:40171,32642:58286,32643:58288,32645:38789,32646:58287,32647:58290,32648:58289,32650:38770,32652:58291,32654:38140,32660:58292,32666:58295,32669:58294,32670:58293,32673:64401,32675:58296,32676:35921,32680:37185,32681:35680,32686:58300,32687:58297,32690:58298,32694:58301,32696:58302,32697:58299,32701:35144,32705:35237,32709:58304,32710:58305,32714:58306,32716:38786,32722:36683,32724:58308,32725:58307,32736:37001,32737:58309,32742:58310,32745:58311,32747:35555,32752:35531,32755:58312,32761:58313,32763:38524,32764:38787,32768:38771,32769:38998,32771:36204,32772:58316,32773:36562,32774:58315,32779:58317,32780:36519,32784:37327,32786:58318,32789:36203,32791:38613,32792:58319,32793:58320,32796:58321,32801:58322,32808:58323,32819:36520,32822:38635,32827:58325,32829:37470,32831:58324,32838:58327,32842:58326,32850:58328,32854:37049,32856:58329,32858:58330,32862:38327,32863:58331,32865:37263,32866:58332,32872:58333,32879:38908,32880:58336,32882:58335,32883:58334,32884:37550,32886:58337,32887:36933,32889:58338,32893:58339,32894:38999,32895:58340,32900:58341,32901:58343,32902:58342,32903:38051,32905:37879,32907:39005,32908:38055,32915:58345,32918:36817,32920:38217,32922:58346,32923:58344,32925:35532,32929:36050,32930:36488,32933:38124,32937:36008,32938:38498,32940:58349,32941:58347,32943:36205,32945:36206,32946:35047,32948:36326,32954:38008,32963:35037,32964:58354,32966:37471,32972:38007,32974:37337,32982:58356,32985:58352,32986:58355,32987:58350,32989:58353,32990:38469,32993:36051,32996:35067,32997:58351,33007:58358,33009:58359,33012:37815,33016:35769,33020:58437,33021:37980,33026:36489,33029:35770,33030:37062,33031:39013,33032:38572,33033:58357,33034:37074,33050:35698,33051:58360,33059:58362,33065:58361,33071:58363,33073:37445,33075:37981,33081:37551,33086:58434,33094:58433,33099:58364,33102:36980,33104:38277,33105:58436,33107:58435,33108:36207,33109:39026,33119:58452,33125:58440,33126:58441,33131:36590,33134:58439,33136:36248,33137:58438,33140:58442,33144:37552,33145:38304,33146:37186,33151:37338,33152:58446,33154:58447,33155:58443,33160:58444,33162:58445,33167:36208,33171:58453,33173:58449,33178:38278,33180:38540,33181:38215,33184:58448,33187:58451,33188:58450,33192:38499,33193:58454,33200:58455,33203:37206,33205:58456,33208:58458,33210:58462,33213:58459,33214:58457,33215:37982,33216:58460,33218:58461,33222:35248,33224:58468,33225:58463,33229:58464,33233:58465,33235:37279,33240:58467,33241:58466,33242:58469,33247:58470,33248:58471,33251:36962,33253:35303,33255:58472,33256:38869,33258:36521,33261:36684,33267:36490,33268:37494,33274:58473,33275:58474,33276:35152,33278:58475,33281:58476,33282:58477,33285:58478,33287:58479,33288:35771,33289:40360,33290:58480,33292:37091,33293:58481,33294:36553,33296:58482,33298:39086,33302:58483,33303:38364,33304:35546,33307:37187,33308:36727,33310:38289,33311:36685,33321:58484,33322:36209,33323:58485,33324:38090,33326:58500,33331:58487,33333:37319,33334:38037,33335:36029,33336:58486,33337:37188,33344:58488,33351:37624,33368:58490,33369:58489,33370:58492,33373:58491,33375:58493,33378:58496,33380:58494,33382:35533,33384:58497,33386:58498,33387:58499,33390:36271,33391:38855,33393:58501,33394:36934,33398:35216,33399:58502,33400:58503,33406:58504,33419:35056,33421:58505,33426:58506,33433:38279,33437:36549,33439:58508,33445:35400,33446:34992,33451:58507,33452:58510,33453:37997,33455:36963,33457:35284,33459:38470,33464:35964,33465:35802,33467:58509,33469:35304,33477:35489,33489:35217,33490:58514,33491:38888,33492:37339,33495:38243,33497:58526,33499:35285,33500:58524,33502:58522,33503:58513,33505:58511,33507:58512,33509:36577,33510:35818,33511:37527,33515:37839,33521:35184,33523:58516,33524:58515,33529:58521,33530:58517,33531:58520,33537:64403,33538:38606,33539:58519,33540:35286,33541:35485,33542:58523,33545:58525,33550:35955,33558:58529,33559:58538,33560:58539,33564:34985,33571:58546,33576:35055,33579:58537,33583:58536,33585:58531,33586:58530,33588:58528,33589:58527,33590:37507,33592:37369,33593:58533,33600:58532,33605:58535,33609:37264,33610:35956,33615:35168,33616:58534,33618:36210,33624:37265,33634:64404,33651:58552,33653:58553,33655:35287,33659:35244,33660:58550,33663:64405,33669:58540,33671:58548,33673:58555,33674:58549,33678:58547,33683:58518,33686:58545,33690:58541,33694:35534,33695:58543,33696:58554,33698:58544,33704:58556,33706:58542,33707:38044,33713:38793,33717:58551,33725:58573,33729:58565,33733:37019,33735:64406,33738:35685,33740:35803,33742:58560,33747:35289,33750:36818,33752:58563,33756:36312,33759:37744,33760:58568,33769:38380,33771:58559,33775:35288,33776:36052,33777:38216,33778:58569,33780:58557,33782:64407,33783:58566,33787:58576,33789:58561,33795:58562,33796:37816,33799:58567,33803:58564,33804:38471,33805:58570,33806:35038,33811:58558,33824:58572,33826:58571,33833:38027,33834:58578,33836:58589,33841:35486,33845:58592,33848:58574,33852:58579,33853:38798,33862:58588,33864:64408,33865:38772,33870:38824,33879:37528,33883:35467,33889:38290,33890:58594,33891:37791,33894:34991,33897:58587,33899:58583,33900:37266,33901:58577,33902:58585,33903:58590,33905:37963,33909:34984,33911:58582,33913:58591,33914:38296,33922:58586,33924:58581,33931:36819,33936:36686,33940:36522,33945:38614,33948:38246,33951:58597,33953:58606,33965:58584,33970:35479,33972:64409,33976:36854,33977:58595,33979:58600,33980:37267,33983:58596,33985:58603,33988:37502,33990:58604,33993:38773,33994:58593,33995:35415,33997:58599,34000:58602,34001:38570,34006:58605,34009:58598,34010:58601,34012:64096,34028:38472,34030:38976,34036:58609,34044:58616,34047:58608,34048:36545,34054:58575,34065:38348,34067:38560,34068:58615,34069:58614,34071:58610,34072:58611,34074:35157,34079:58613,34081:58607,34086:37587,34092:58612,34093:35068,34101:37280,34109:38337,34112:58617,34113:58688,34115:38103,34120:58620,34121:36820,34122:36551,34123:58690,34126:35772,34131:64410,34133:58691,34135:38297,34136:58619,34137:64411,34138:58580,34147:58618,34152:39022,34153:37792,34154:38291,34155:64412,34157:58698,34167:58704,34174:58705,34176:58692,34180:38038,34183:58702,34184:58694,34186:58696,34192:58706,34193:58695,34196:58699,34199:35218,34201:37859,34203:58700,34204:58703,34212:58693,34214:37189,34216:58697,34217:36422,34218:36964,34219:35919,34220:38642,34222:38647,34223:36754,34224:64414,34233:58710,34234:58708,34241:39021,34249:58707,34253:38805,34255:58709,34256:58711,34261:58712,34268:58715,34269:58713,34276:37793,34277:58714,34281:38091,34282:58701,34295:36755,34297:58716,34298:58721,34299:37268,34302:58720,34306:58689,34310:58722,34311:37224,34314:58717,34315:58719,34323:58718,34326:40784,34327:40769,34330:58724,34338:58723,34349:38806,34351:57786,34352:58725,34367:58726,34381:58727,34382:36053,34384:35699,34388:58729,34389:39292,34394:35733,34396:38840,34398:35825,34399:58730,34407:58731,34411:37518,34417:58732,34425:37880,34427:35000,34442:35297,34443:58737,34444:58738,34451:58733,34453:36444,34467:58734,34468:37985,34473:58735,34474:58736,34475:58746,34479:58740,34480:58743,34486:58739,34500:58741,34502:58742,34503:36566,34505:58744,34507:37472,34509:35957,34510:35425,34516:58747,34521:35422,34523:58753,34526:58748,34527:58752,34532:38072,34537:58749,34540:58750,34541:38247,34542:38104,34543:58754,34552:37371,34553:58764,34555:58760,34558:35305,34560:58758,34562:38473,34563:58759,34566:58756,34568:58757,34569:58762,34570:58765,34573:58763,34577:58761,34578:58755,34584:37495,34586:58772,34588:38568,34597:58770,34601:58771,34612:58766,34615:58768,34619:58769,34623:58767,34633:37092,34635:39000,34636:58776,34638:58777,34643:58783,34645:36937,34647:58779,34649:58782,34655:58774,34656:58773,34659:58784,34662:35290,34664:58780,34666:58785,34670:58781,34676:58778,34678:37553,34680:58775,34687:38024,34690:58789,34701:38746,34719:58788,34722:58787,34731:58796,34735:58790,34739:58798,34746:38790,34747:58801,34749:58792,34752:58793,34756:58797,34758:58800,34759:58799,34763:58791,34768:58794,34770:58811,34784:58804,34799:58802,34802:58803,34806:58808,34807:58809,34809:35401,34811:35681,34814:58807,34821:58786,34823:64417,34829:58806,34830:58810,34831:58805,34833:58812,34837:58814,34838:58813,34849:58816,34850:58815,34851:58745,34855:58820,34865:58817,34870:58818,34873:58819,34875:58821,34880:35980,34882:58823,34884:58822,34886:36687,34892:36211,34893:40869,34898:58824,34899:36720,34903:35416,34905:58825,34907:35185,34909:36821,34910:58826,34913:36212,34914:58827,34915:35039,34920:38236,34923:58828,34928:37002,34930:58835,34933:58832,34935:37519,34941:58833,34942:58830,34943:35804,34945:58829,34946:58836,34952:35925,34955:37340,34957:58842,34962:58838,34966:37299,34967:58837,34969:58840,34974:58831,34978:58841,34980:58843,34987:38125,34990:58839,34992:58844,34993:58846,34996:36049,34997:58834,34999:35007,35007:58845,35009:36313,35010:38900,35011:58847,35012:58848,35013:37269,35023:38816,35028:58849,35029:38740,35032:58850,35033:58851,35036:38370,35037:58852,35039:36286,35041:38817,35048:58857,35058:58858,35059:36822,35060:58856,35061:64418,35064:38791,35065:58853,35068:58855,35069:37051,35070:37022,35074:58854,35076:58859,35079:38305,35082:58861,35084:58860,35088:35468,35090:38474,35091:58862,35100:64093,35101:58874,35102:58864,35109:58865,35114:58866,35115:58867,35126:58871,35128:58872,35131:58870,35137:58868,35139:58863,35140:58869,35148:58873,35149:59573,35158:35238,35166:58876,35167:35805,35168:58875,35172:58945,35174:58944,35178:58947,35181:58946,35183:58948,35186:36688,35188:58949,35191:58950,35198:58951,35199:37052,35201:38774,35203:58952,35206:38306,35207:37989,35208:58953,35210:58954,35211:36009,35215:35659,35219:58955,35222:36491,35223:37984,35224:58956,35226:35439,35233:58957,35238:58959,35239:38807,35241:58958,35242:36965,35244:58960,35247:58961,35250:58962,35251:35535,35258:58963,35261:58964,35263:58965,35264:58966,35282:35440,35290:58967,35292:58968,35293:58969,35299:35312,35302:36935,35303:58970,35316:58971,35320:58972,35328:36030,35330:37625,35331:58973,35336:35958,35338:36981,35340:58976,35342:37794,35344:58975,35346:64419,35347:35920,35350:58974,35351:37365,35352:35660,35355:58977,35357:58978,35359:36823,35363:35981,35365:58979,35370:38475,35373:37085,35377:35734,35379:38643,35380:37225,35382:58980,35383:64420,35386:36966,35387:37520,35388:36824,35393:58981,35398:58984,35400:58985,35408:36284,35409:37312,35410:58983,35412:36825,35413:38237,35419:58982,35422:36492,35424:35186,35426:58989,35427:35959,35430:36494,35433:36493,35435:39020,35436:58988,35437:58987,35438:37190,35440:35692,35441:39010,35442:35417,35443:36826,35449:64421,35452:58986,35458:58991,35460:58992,35461:58990,35463:36054,35465:38751,35468:36495,35469:37958,35473:58995,35475:37054,35477:37473,35480:38741,35482:58998,35486:36074,35488:37053,35489:58994,35491:58999,35492:36075,35493:58996,35494:58997,35495:64422,35496:58993,35500:37088,35501:37831,35504:37454,35506:35291,35513:38126,35516:35682,35518:64423,35519:37554,35522:59002,35524:59000,35527:37483,35531:37055,35532:35536,35533:59001,35535:36986,35538:38856,35542:39007,35546:59003,35547:59015,35548:37555,35550:59014,35551:64424,35552:59011,35553:59019,35554:59012,35556:59008,35558:37626,35559:59006,35563:59004,35565:38720,35566:36496,35569:59009,35571:59005,35574:64426,35575:59013,35576:36756,35578:36031,35582:37368,35584:38500,35585:35193,35586:35040,35588:37795,35591:59017,35596:59016,35598:37860,35600:59021,35604:59010,35606:59020,35607:59022,35609:36010,35610:59018,35611:36213,35613:36563,35616:59023,35617:38775,35622:59026,35624:59029,35627:59027,35628:38228,35635:59024,35641:35806,35646:59028,35649:59030,35657:59034,35660:59031,35662:59033,35663:59032,35667:64427,35670:59035,35672:36527,35674:59037,35675:59036,35676:38280,35679:59039,35686:35960,35691:59038,35692:59040,35695:59041,35696:35683,35697:58303,35698:36855,35700:59042,35703:36076,35709:59043,35711:64428,35712:59044,35715:36445,35722:40396,35724:59045,35726:59046,35728:36689,35730:59047,35731:59048,35734:59049,35737:59050,35738:59051,35895:37450,35898:59052,35903:59054,35905:59053,35910:37796,35912:59055,35914:38476,35916:59056,35918:59057,35920:59058,35925:59059,35930:37848,35937:36827,35938:59060,35946:36235,35947:39084,35948:59061,35960:59062,35961:38238,35962:59063,35964:59071,35970:59064,35973:59066,35977:59065,35978:59067,35980:38501,35981:59068,35982:59069,35988:59070,35992:59072,35997:35404,35998:37605,36000:38281,36001:36320,36002:36214,36007:38254,36008:35293,36009:38092,36010:59075,36011:35537,36012:37075,36013:59074,36014:59079,36015:37529,36016:38625,36018:59077,36019:59078,36020:35661,36022:59080,36023:38019,36024:37341,36027:38127,36028:37724,36029:59076,36031:38502,36032:35306,36033:59082,36034:38983,36035:37568,36036:39012,36039:36497,36040:59081,36042:37295,36045:59098,36046:37191,36049:37878,36051:38255,36058:59085,36059:36446,36060:36498,36062:36828,36064:38021,36066:36011,36067:59084,36068:59083,36070:38282,36074:36543,36077:37745,36080:64429,36084:64430,36090:59087,36091:59088,36092:36215,36093:59086,36100:59089,36101:59090,36103:59092,36104:37281,36106:59091,36107:35556,36109:59094,36111:59093,36112:59095,36114:64431,36115:59097,36116:59099,36118:59100,36196:37076,36198:36557,36199:59101,36203:35441,36205:59102,36208:37270,36209:59103,36211:59104,36212:38283,36214:64432,36215:35662,36225:59105,36229:37556,36234:35194,36249:59106,36259:36591,36264:37014,36275:37291,36282:59109,36286:59108,36290:59107,36299:59115,36300:59113,36303:59110,36310:59112,36314:59111,36315:59114,36317:35735,36319:59118,36321:37077,36323:59119,36328:36055,36330:59116,36331:59117,36335:38984,36339:37557,36341:37192,36348:59120,36351:59123,36360:59121,36361:59122,36362:38776,36367:37797,36368:59126,36381:59124,36382:59125,36383:59127,36394:59208,36400:59130,36404:59131,36405:59129,36418:59128,36420:37627,36423:59200,36424:59204,36425:59201,36426:59132,36428:59202,36432:59203,36437:59210,36441:59205,36447:37078,36448:59207,36451:59209,36452:59206,36466:59212,36468:36690,36470:59211,36476:59213,36481:59214,36484:59217,36485:59216,36487:59215,36490:59219,36491:59218,36493:38644,36497:59221,36499:59220,36500:59222,36505:59223,36513:59225,36522:59224,36523:36967,36524:59226,36527:35819,36528:59227,36529:59229,36542:59230,36549:59231,36550:59228,36552:59232,36554:36564,36555:59233,36556:35663,36557:35922,36559:64434,36562:36012,36571:59234,36575:37870,36578:37725,36579:59235,36587:59238,36600:36530,36603:59237,36604:59236,36605:35961,36606:59239,36611:35442,36613:59241,36617:36314,36618:59240,36620:59249,36626:59243,36627:59245,36628:38371,36629:59242,36633:59244,36635:59248,36636:59246,36637:35664,36639:59247,36646:59250,36649:38009,36650:38870,36655:36691,36659:59251,36664:38721,36665:59253,36667:59252,36670:59256,36671:38752,36674:59255,36676:35469,36677:59254,36678:59259,36681:59258,36684:59257,36685:37713,36686:59260,36695:59261,36700:59262,36703:36236,36705:35908,36706:59264,36707:59265,36708:59266,36763:36968,36764:59267,36766:36523,36767:59268,36771:59269,36775:39327,36776:39326,36781:59270,36782:58256,36783:59271,36784:37443,36785:36938,36786:37983,36791:59272,36794:38355,36795:37586,36796:36254,36799:37448,36802:35145,36804:38552,36805:36982,36814:35965,36817:35807,36820:38356,36826:59273,36834:59275,36837:59274,36838:35294,36841:37876,36842:59276,36843:38039,36845:37714,36847:59277,36848:36721,36852:59279,36855:38592,36856:59294,36857:59281,36858:59282,36861:37575,36864:37342,36865:37271,36867:37798,36869:59280,36870:35700,36875:59289,36877:59286,36878:59299,36879:37799,36880:37504,36881:59283,36883:37628,36884:37746,36885:59284,36886:59288,36887:36992,36889:38023,36890:37578,36893:37056,36894:59287,36895:37292,36896:37282,36897:59285,36898:34983,36899:38977,36903:59290,36910:37343,36913:36692,36914:36969,36917:59292,36918:59291,36920:35053,36921:59293,36924:38222,36926:59301,36929:37849,36930:37003,36933:37496,36935:35830,36937:59300,36938:38742,36939:35166,36941:38357,36942:35295,36943:59295,36944:59296,36945:59297,36946:59298,36947:37817,36948:37442,36949:35041,36950:59302,36952:59303,36953:60065,36956:37307,36958:59304,36960:35219,36961:37227,36963:36013,36965:38777,36967:64437,36968:59305,36969:37707,36973:37272,36974:36565,36975:59306,36978:59309,36981:36741,36982:59307,36983:37194,36984:37193,36986:35042,36988:38857,36989:59311,36991:38128,36992:59313,36993:59312,36994:59310,36995:57988,36996:35538,36999:59278,37001:59315,37002:59314,37007:59316,37009:38743,37027:37855,37030:38477,37032:59317,37034:36567,37039:59318,37041:59319,37045:59320,37048:37696,37057:35048,37066:36216,37070:39001,37083:59324,37086:64438,37089:35923,37090:59321,37092:59322,37096:38292,37101:35443,37109:38744,37111:35773,37117:37747,37122:59325,37138:59326,37141:64440,37145:59327,37159:64441,37165:37697,37168:59329,37170:59328,37193:37841,37194:59330,37195:36693,37196:36574,37197:38010,37198:37521,37202:36592,37204:37004,37206:59331,37208:59332,37218:36988,37219:59333,37221:59334,37225:59335,37226:38799,37228:36694,37234:59337,37235:59336,37237:36217,37239:36243,37240:36447,37250:59340,37255:36742,37257:59339,37259:59338,37261:37351,37264:36077,37266:37057,37271:38062,37276:36696,37282:59341,37284:36829,37290:59344,37291:59342,37295:59343,37300:59346,37301:59345,37304:36856,37306:59347,37312:59348,37313:59349,37318:38094,37319:36305,37320:36575,37321:59350,37323:59351,37324:38818,37325:36708,37326:38636,37327:38858,37328:59352,37329:35808,37334:59353,37335:64443,37336:37698,37338:64442,37339:59356,37340:35480,37341:36970,37342:64444,37343:59354,37345:59355,37347:37598,37348:64447,37349:64448,37350:38516,37351:35834,37357:64445,37358:64446,37365:59358,37366:59359,37372:59357,37375:59361,37382:64449,37386:64451,37389:37853,37390:35426,37392:64450,37393:59365,37396:59362,37397:59364,37406:59360,37417:59502,37420:59363,37428:38889,37431:36056,37433:64458,37434:64452,37436:64454,37439:59373,37440:64453,37444:37715,37445:59368,37448:59371,37449:59369,37451:59374,37454:64455,37456:59375,37457:64457,37463:59367,37465:64456,37466:59380,37467:35220,37470:59366,37474:38059,37476:59370,37478:36830,37479:64459,37489:36218,37495:64461,37496:64462,37502:38503,37504:35810,37507:36709,37509:37818,37512:64095,37521:37196,37523:59378,37525:59372,37526:59377,37528:38593,37530:37558,37531:59379,37532:59376,37543:64460,37549:37195,37559:59383,37561:59382,37583:59381,37584:64466,37586:38478,37587:64470,37589:64468,37591:64464,37593:64465,37600:64469,37604:36763,37607:64463,37609:59384,37610:38365,37613:35187,37618:38245,37619:37522,37624:35736,37625:64101,37626:59386,37627:64473,37628:36220,37631:64476,37634:64478,37638:36427,37647:59385,37648:37005,37656:37006,37657:59456,37658:59458,37661:64477,37662:64475,37664:36857,37665:64472,37666:59457,37667:59459,37669:64471,37670:35793,37672:38244,37675:36576,37676:38978,37678:59388,37679:36342,37682:39006,37685:59461,37690:59460,37691:59462,37700:59387,37704:64094,37707:37863,37709:37748,37716:37589,37718:59467,37719:64480,37723:37474,37724:59463,37728:59464,37740:35916,37742:59466,37744:64479,37749:36014,37756:59465,37758:36831,37772:35481,37780:59471,37782:36285,37783:37273,37786:37576,37796:64481,37799:35418,37804:59469,37805:59470,37806:37569,37808:59468,37817:59472,37827:59478,37830:64482,37832:59481,37840:59480,37841:37708,37846:59473,37847:59474,37848:59477,37853:59479,37854:64483,37857:35774,37860:59482,37861:59476,37864:59475,37880:64484,37891:59486,37895:59487,37904:59488,37907:59485,37908:59484,37912:36832,37913:37800,37914:59483,37921:59492,37931:59490,37937:64485,37941:59491,37942:59489,37944:37366,37946:59493,37953:59494,37956:59496,37957:64486,37960:64487,37969:35539,37970:59495,37971:38648,37978:59507,37979:59497,37982:59500,37984:59498,37986:59499,37994:59501,38000:59503,38005:59504,38007:59505,38012:59508,38013:59506,38014:59509,38015:59511,38017:59510,38263:37559,38272:38629,38274:59512,38275:37197,38279:59513,38281:38338,38282:59514,38283:35402,38287:35163,38289:35541,38290:64488,38291:35540,38292:59515,38294:59516,38296:59517,38297:59518,38304:59520,38306:35542,38307:35444,38308:36221,38309:38068,38311:59522,38312:59521,38317:59523,38322:35195,38329:59526,38331:59525,38332:59524,38334:59527,38339:59530,38343:35013,38346:59528,38348:59532,38349:59531,38356:59534,38357:59533,38358:59535,38360:37804,38364:59536,38369:59537,38370:59539,38373:59538,38428:38284,38433:59540,38440:59541,38442:36323,38446:59542,38447:59543,38450:38504,38459:37226,38463:34978,38464:37321,38466:59544,38468:38285,38475:59547,38476:59545,38477:36222,38479:59546,38480:36032,38491:38339,38492:59549,38493:59551,38494:59550,38495:59552,38498:35136,38499:36983,38500:36764,38501:35543,38502:59553,38506:38022,38508:59555,38512:35137,38514:59554,38515:37570,38517:38859,38518:37801,38519:59548,38520:38820,38522:36015,38525:38778,38533:35831,38534:38834,38536:35911,38538:37344,38539:58432,38541:59556,38542:35403,38543:37007,38548:35445,38549:59558,38551:59559,38552:59557,38553:35972,38555:36315,38556:36833,38557:64491,38560:35138,38563:38871,38567:59561,38568:59308,38570:59560,38575:64492,38576:59564,38577:59562,38578:59563,38580:59565,38582:59566,38583:38890,38584:59567,38585:59568,38587:37063,38588:38073,38592:37021,38593:35557,38596:38745,38597:35307,38598:36695,38599:36057,38601:59571,38603:59570,38604:36499,38605:59572,38606:59569,38609:36423,38613:59576,38614:58795,38617:39380,38619:37015,38620:59574,38626:38819,38627:37871,38632:35146,38634:37089,38635:36532,38640:38325,38642:35167,38646:38891,38647:38795,38649:59577,38651:37732,38656:36601,38660:59578,38662:59579,38663:36971,38664:59580,38666:38892,38669:59575,38670:59582,38671:59584,38673:59583,38675:59581,38678:59585,38681:59586,38684:37274,38686:35296,38692:59587,38695:38582,38698:59588,38704:59589,38706:38985,38707:64493,38712:40528,38713:59590,38715:64494,38717:59591,38718:59592,38722:59596,38723:64495,38724:59593,38726:59594,38728:59595,38729:59597,38733:64496,38735:64497,38737:64498,38738:37058,38741:64499,38742:38645,38745:37059,38748:59598,38750:38129,38752:59599,38753:60018,38754:38602,38756:59600,38758:59601,38760:59602,38761:35446,38763:59604,38765:36984,38769:59605,38772:35907,38777:59606,38778:59610,38780:59608,38785:59609,38788:35475,38789:59607,38790:59611,38795:59612,38797:35014,38799:59613,38800:59614,38808:36834,38812:59615,38816:35686,38819:59618,38822:59617,38824:59616,38827:59025,38829:38362,38835:59619,38836:59620,38851:59621,38854:59622,38856:59623,38859:59624,38867:35544,38876:59625,38893:59626,38894:37954,38898:59628,38899:35257,38901:59631,38902:59630,38907:35139,38911:35775,38913:38341,38914:37560,38915:36256,38917:36224,38918:36743,38920:36987,38924:59633,38927:59632,38928:38753,38929:35558,38930:38096,38931:37850,38935:37020,38936:38860,38938:35962,38945:59636,38948:59635,38956:38506,38957:37802,38964:35183,38967:59637,38968:59634,38971:38256,38972:38794,38973:59638,38982:59639,38987:59641,38988:37352,38989:35450,38990:35451,38991:59640,38996:35559,38997:36016,38999:64500,39000:35560,39003:37726,39006:38878,39013:64501,39015:36058,39019:59642,39023:59643,39024:59644,39025:59712,39027:59714,39028:59713,39080:38295,39082:59715,39087:59716,39089:59717,39094:59718,39107:59720,39108:59719,39110:59721,39131:38130,39132:58314,39135:36936,39138:35665,39145:59722,39147:59723,39149:39338,39150:40794,39151:38097,39154:35065,39156:35001,39164:36500,39165:38479,39166:36860,39171:59724,39173:38621,39177:59725,39178:38779,39180:35169,39184:36448,39186:59726,39187:35308,39188:59727,39192:59728,39197:59730,39198:59731,39200:59733,39201:59729,39204:59732,39207:64504,39208:35545,39212:59734,39214:59735,39229:59736,39230:59737,39234:59738,39237:59740,39241:59739,39243:59742,39244:59745,39248:59741,39249:59743,39250:59744,39253:59746,39255:35776,39318:36593,39319:59747,39320:59748,39321:36225,39326:64506,39333:59749,39336:35421,39340:37998,39341:59750,39342:59751,39347:37497,39348:37865,39356:59752,39361:38045,39364:37322,39365:35191,39366:35820,39368:35821,39376:37523,39377:59757,39378:35822,39381:35309,39384:59756,39387:59754,39389:59755,39391:59753,39394:59767,39405:59758,39406:59759,39409:59760,39410:59761,39416:59763,39419:59762,39423:36728,39425:59764,39429:59766,39438:35666,39439:59765,39442:37275,39443:36017,39449:59768,39464:37323,39467:59769,39472:37803,39479:59770,39486:59776,39488:59773,39490:59772,39491:59774,39493:59771,39501:59778,39502:64507,39509:59777,39511:59780,39514:35777,39515:59779,39519:59781,39522:59782,39524:59784,39525:59783,39529:59785,39530:59787,39531:59786,39592:36252,39597:59788,39600:59789,39608:35419,39612:59790,39616:59791,39620:37009,39631:59792,39633:59793,39635:59794,39636:59795,39640:36226,39641:64508,39644:64576,39646:59796,39647:59797,39650:59798,39651:59799,39654:59800,39658:38063,39659:59802,39661:38213,39662:59803,39663:59801,39665:59805,39668:59804,39671:59806,39675:59807,39686:59808,39704:59809,39706:59810,39711:59811,39714:59812,39715:59813,39717:59814,39719:59815,39720:59816,39721:59817,39722:59818,39726:59819,39727:59820,39729:40788,39730:59821,39739:58102,39740:35667,39745:35392,39746:36272,39747:59823,39748:59822,39749:38563,39757:59825,39758:59826,39759:59824,39761:59827,39764:38530,39768:59828,39770:35739,39791:38980,39794:64578,39796:59829,39797:64577,39811:59831,39822:35004,39823:64579,39825:59832,39826:38313,39827:59830,39830:59833,39831:59834,39839:59835,39840:59836,39848:59837,39850:38542,39851:36428,39853:36344,39854:37198,39857:64580,39860:59838,39865:59841,39867:64581,39872:59839,39878:59842,39881:36079,39882:59840,39887:59843,39889:59844,39890:59845,39892:59849,39894:36425,39899:37346,39905:59850,39906:59847,39907:59846,39908:59848,39912:35966,39920:59854,39921:59853,39922:59852,39925:34993,39936:64582,39940:59864,39942:59860,39944:59861,39945:59857,39946:59863,39948:59859,39949:35458,39952:39019,39954:59862,39955:59858,39956:59856,39957:59855,39963:59866,39969:59869,39972:59868,39973:59867,39981:38248,39982:59865,39983:35057,39984:59870,39986:59872,39993:35471,39994:59851,39995:35158,39998:59874,40006:59873,40007:59871,40008:37452,40018:38544,40023:38872,40026:59875,40032:59876,40039:59877,40054:59878,40056:59879,40165:37561,40167:59880,40169:38069,40171:59885,40172:59881,40176:59882,40179:38480,40180:38594,40182:37838,40195:59886,40198:59887,40199:37820,40200:59884,40201:59883,40206:35240,40210:59895,40213:59894,40219:35221,40223:59892,40227:59891,40230:59889,40232:35483,40234:59888,40235:36528,40236:35239,40251:36227,40254:59898,40255:59897,40257:59896,40260:59893,40262:59899,40264:59900,40272:59972,40273:59971,40281:59973,40284:35148,40285:59968,40286:59969,40288:36244,40289:38583,40292:59970,40299:64584,40300:38481,40303:59978,40304:64583,40306:59974,40314:59979,40327:59976,40329:59975,40335:35963,40346:59980,40356:59981,40361:59982,40363:59977,40367:59890,40370:59983,40372:37599,40376:59987,40378:59988,40379:59986,40385:59985,40386:59991,40388:59984,40390:59989,40399:59990,40403:59993,40409:59992,40422:59995,40429:59996,40431:59997,40434:39016,40440:59994,40441:37353,40442:36331,40445:59998,40473:64586,40474:59999,40475:60000,40478:60001,40565:60002,40568:36018,40569:60003,40573:60004,40575:36525,40577:60005,40584:60006,40587:60007,40588:60008,40593:60011,40594:60009,40595:39003,40597:60010,40599:38893,40605:60012,40607:38873,40613:60013,40614:38046,40617:60014,40618:60016,40621:60017,40632:60015,40633:36237,40634:38603,40635:38531,40636:39925,40638:40832,40639:38555,40644:35241,40652:60019,40653:35695,40654:60020,40655:60021,40656:60022,40657:64587,40658:36245,40660:60023,40664:57554,40665:38617,40667:37345,40668:60024,40669:60026,40670:60025,40672:60027,40677:60028,40680:60029,40687:60030,40692:60032,40694:60033,40695:60034,40697:60035,40699:60036,40700:60037,40701:60038,40711:60039,40712:60040,40718:37699,40723:36059,40725:60042,40736:37228,40737:60043,40748:60044,40763:38208,40766:60045,40778:60046,40779:57942,40782:59096,40783:59627,40786:60047,40788:60048,40799:60050,40800:60051,40801:60052,40802:38894,40803:60049,40806:60053,40807:60054,40810:60056,40812:60055,40818:60058,40822:60059,40823:60057,40845:38836,40853:60060,40860:60061,40861:57971,40864:60062,63785:64224,63964:64489,64014:64144,64015:64155,64016:64156,64017:64177,64018:64216,64019:64232,64020:64234,64021:64344,64022:64350,64023:64373,64024:64381,64025:64382,64026:64384,64027:64386,64028:64390,64029:64393,64030:64402,64031:64413,64032:64415,64033:64416,64034:64425,64035:64433,64036:64435,64037:64436,64038:64439,64039:64467,64040:64474,64041:64490,64042:64502,64043:64503,64044:64505,64045:64585,65281:33097,65282:64087,65283:33172,65284:33168,65285:33171,65286:33173,65287:64086,65288:33129,65289:33130,65290:33174,65291:33147,65292:33091,65293:33148,65294:33092,65295:33118,65296:33359,65297:33360,65298:33361,65299:33362,65300:33363,65301:33364,65302:33365,65303:33366,65304:33367,65305:33368,65306:33094,65307:33095,65308:33155,65309:33153,65310:33156,65311:33096,65312:33175,65313:33376,65314:33377,65315:33378,65316:33379,65317:33380,65318:33381,65319:33382,65320:33383,65321:33384,65322:33385,65323:33386,65324:33387,65325:33388,65326:33389,65327:33390,65328:33391,65329:33392,65330:33393,65331:33394,65332:33395,65333:33396,65334:33397,65335:33398,65336:33399,65337:33400,65338:33401,65339:33133,65340:33119,65341:33134,65342:33103,65343:33105,65344:33101,65345:33409,65346:33410,65347:33411,65348:33412,65349:33413,65350:33414,65351:33415,65352:33416,65353:33417,65354:33418,65355:33419,65356:33420,65357:33421,65358:33422,65359:33423,65360:33424,65361:33425,65362:33426,65363:33427,65364:33428,65365:33429,65366:33430,65367:33431,65368:33432,65369:33433,65370:33434,65371:33135,65372:33122,65373:33136,65374:33120,65504:33169,65505:33170,65506:33226,65507:33104,65508:64085,65509:33167,null:128}","module.exports={92:8512,162:8561,163:8562,167:8568,168:8495,172:8780,176:8555,177:8542,180:8493,182:8825,215:8543,247:8544,913:9761,914:9762,915:9763,916:9764,917:9765,918:9766,919:9767,920:9768,921:9769,922:9770,923:9771,924:9772,925:9773,926:9774,927:9775,928:9776,929:9777,931:9778,932:9779,933:9780,934:9781,935:9782,936:9783,937:9784,945:9793,946:9794,947:9795,948:9796,949:9797,950:9798,951:9799,952:9800,953:9801,954:9802,955:9803,956:9804,957:9805,958:9806,959:9807,960:9808,961:9809,963:9810,964:9811,965:9812,966:9813,967:9814,968:9815,969:9816,1025:10023,1040:10017,1041:10018,1042:10019,1043:10020,1044:10021,1045:10022,1046:10024,1047:10025,1048:10026,1049:10027,1050:10028,1051:10029,1052:10030,1053:10031,1054:10032,1055:10033,1056:10034,1057:10035,1058:10036,1059:10037,1060:10038,1061:10039,1062:10040,1063:10041,1064:10042,1065:10043,1066:10044,1067:10045,1068:10046,1069:10047,1070:10048,1071:10049,1072:10065,1073:10066,1074:10067,1075:10068,1076:10069,1077:10070,1078:10072,1079:10073,1080:10074,1081:10075,1082:10076,1083:10077,1084:10078,1085:10079,1086:10080,1087:10081,1088:10082,1089:10083,1090:10084,1091:10085,1092:10086,1093:10087,1094:10088,1095:10089,1096:10090,1097:10091,1098:10092,1099:10093,1100:10094,1101:10095,1102:10096,1103:10097,1105:10071,8208:8510,8213:8509,8216:8518,8217:8519,8220:8520,8221:8521,8224:8823,8225:8824,8229:8517,8230:8516,8240:8819,8242:8556,8243:8557,8251:8744,8451:8558,8470:11618,8481:11620,8491:8818,8544:11573,8545:11574,8546:11575,8547:11576,8548:11577,8549:11578,8550:11579,8551:11580,8552:11581,8553:11582,8560:31857,8561:31858,8562:31859,8563:31860,8564:31861,8565:31862,8566:31863,8567:31864,8568:31865,8569:31866,8592:8747,8593:8748,8594:8746,8595:8749,8658:8781,8660:8782,8704:8783,8706:8799,8707:8784,8711:8800,8712:8762,8715:8763,8721:11636,8730:8805,8733:8807,8734:8551,8735:11640,8736:8796,8741:8514,8743:8778,8744:8779,8745:8769,8746:8768,8747:8809,8748:8810,8750:11635,8756:8552,8757:8808,8765:8806,8786:8802,8800:8546,8801:8801,8806:8549,8807:8550,8810:8803,8811:8804,8834:8766,8835:8767,8838:8764,8839:8765,8869:8797,8895:11641,8978:8798,9312:11553,9313:11554,9314:11555,9315:11556,9316:11557,9317:11558,9318:11559,9319:11560,9320:11561,9321:11562,9322:11563,9323:11564,9324:11565,9325:11566,9326:11567,9327:11568,9328:11569,9329:11570,9330:11571,9331:11572,9472:10273,9473:10284,9474:10274,9475:10285,9484:10275,9487:10286,9488:10276,9491:10287,9492:10278,9495:10289,9496:10277,9499:10288,9500:10279,9501:10300,9504:10295,9507:10290,9508:10281,9509:10302,9512:10297,9515:10292,9516:10280,9519:10296,9520:10301,9523:10291,9524:10282,9527:10298,9528:10303,9531:10293,9532:10283,9535:10299,9538:10304,9547:10294,9632:8739,9633:8738,9650:8741,9651:8740,9660:8743,9661:8742,9670:8737,9671:8574,9675:8571,9678:8573,9679:8572,9711:8830,9733:8570,9734:8569,9792:8554,9794:8553,9834:8822,9837:8821,9839:8820,12288:8481,12289:8482,12290:8483,12291:8503,12293:8505,12294:8506,12295:8507,12296:8530,12297:8531,12298:8532,12299:8533,12300:8534,12301:8535,12302:8536,12303:8537,12304:8538,12305:8539,12306:8745,12307:8750,12308:8524,12309:8525,12316:8513,12317:11616,12319:11617,12353:9249,12354:9250,12355:9251,12356:9252,12357:9253,12358:9254,12359:9255,12360:9256,12361:9257,12362:9258,12363:9259,12364:9260,12365:9261,12366:9262,12367:9263,12368:9264,12369:9265,12370:9266,12371:9267,12372:9268,12373:9269,12374:9270,12375:9271,12376:9272,12377:9273,12378:9274,12379:9275,12380:9276,12381:9277,12382:9278,12383:9279,12384:9280,12385:9281,12386:9282,12387:9283,12388:9284,12389:9285,12390:9286,12391:9287,12392:9288,12393:9289,12394:9290,12395:9291,12396:9292,12397:9293,12398:9294,12399:9295,12400:9296,12401:9297,12402:9298,12403:9299,12404:9300,12405:9301,12406:9302,12407:9303,12408:9304,12409:9305,12410:9306,12411:9307,12412:9308,12413:9309,12414:9310,12415:9311,12416:9312,12417:9313,12418:9314,12419:9315,12420:9316,12421:9317,12422:9318,12423:9319,12424:9320,12425:9321,12426:9322,12427:9323,12428:9324,12429:9325,12430:9326,12431:9327,12432:9328,12433:9329,12434:9330,12435:9331,12443:8491,12444:8492,12445:8501,12446:8502,12449:9505,12450:9506,12451:9507,12452:9508,12453:9509,12454:9510,12455:9511,12456:9512,12457:9513,12458:9514,12459:9515,12460:9516,12461:9517,12462:9518,12463:9519,12464:9520,12465:9521,12466:9522,12467:9523,12468:9524,12469:9525,12470:9526,12471:9527,12472:9528,12473:9529,12474:9530,12475:9531,12476:9532,12477:9533,12478:9534,12479:9535,12480:9536,12481:9537,12482:9538,12483:9539,12484:9540,12485:9541,12486:9542,12487:9543,12488:9544,12489:9545,12490:9546,12491:9547,12492:9548,12493:9549,12494:9550,12495:9551,12496:9552,12497:9553,12498:9554,12499:9555,12500:9556,12501:9557,12502:9558,12503:9559,12504:9560,12505:9561,12506:9562,12507:9563,12508:9564,12509:9565,12510:9566,12511:9567,12512:9568,12513:9569,12514:9570,12515:9571,12516:9572,12517:9573,12518:9574,12519:9575,12520:9576,12521:9577,12522:9578,12523:9579,12524:9580,12525:9581,12526:9582,12527:9583,12528:9584,12529:9585,12530:9586,12531:9587,12532:9588,12533:9589,12534:9590,12539:8486,12540:8508,12541:8499,12542:8500,12849:11626,12850:11627,12857:11628,12964:11621,12965:11622,12966:11623,12967:11624,12968:11625,13059:11590,13069:11594,13076:11585,13080:11588,13090:11586,13091:11596,13094:11595,13095:11589,13099:11597,13110:11591,13115:11599,13129:11584,13130:11598,13133:11587,13137:11592,13143:11593,13179:11615,13180:11631,13181:11630,13182:11629,13198:11603,13199:11604,13212:11600,13213:11601,13214:11602,13217:11606,13252:11605,13261:11619,19968:12396,19969:17274,19971:15415,19975:19324,19976:15974,19977:15152,19978:15973,19979:12860,19981:18772,19982:19775,19984:20514,19985:12591,19988:13166,19989:20515,19990:16420,19991:21058,19992:13654,19993:19002,19998:15975,20001:20030,20006:19010,20008:31021,20010:20516,20013:17254,20017:20517,20018:13946,20022:20518,20024:13405,20025:17200,20027:15463,20028:20519,20031:20520,20034:20521,20035:18229,20037:13655,20043:18231,20045:18019,20046:14403,20047:19251,20053:26953,20054:20522,20055:15976,20056:20523,20057:12853,20061:13925,20062:14448,20063:19561,20066:22054,20081:19824,20083:18045,20094:13349,20096:13621,20098:20524,20101:20525,20102:20027,20104:19773,20105:16744,20106:20527,20107:15222,20108:18035,20110:20530,20113:12606,20114:14431,20116:14430,20117:12390,20120:20299,20121:20298,20123:14899,20124:12321,20126:20531,20127:20532,20128:20533,20129:19252,20130:20534,20132:14450,20133:12391,20134:19314,20136:13692,20139:13693,20140:13694,20141:17506,20142:20028,20144:20535,20147:20536,20150:20537,20154:16205,20160:15674,20161:16206,20162:20542,20164:20540,20166:20541,20167:13656,20170:14883,20171:12912,20173:20539,20174:20538,20175:18985,20180:15174,20181:15173,20182:16958,20183:20543,20184:18773,20185:16487,20189:8504,20190:20544,20191:20546,20193:31022,20195:16997,20196:20065,20197:12362,20205:20545,20206:12862,20208:13892,20210:17255,20214:14191,20215:20547,20219:18212,20220:31023,20224:31024,20225:13419,20227:31025,20233:20548,20234:12363,20237:14432,20238:13420,20239:18810,20240:18482,20241:13657,20250:12913,20252:20583,20253:17729,20271:18284,20272:20550,20276:18492,20278:20066,20280:16173,20281:31026,20282:15175,20284:15223,20285:12864,20291:17489,20294:17186,20295:20554,20301:12364,20302:17507,20303:15675,20304:14900,20305:19748,20307:16974,20309:12863,20310:31027,20311:20553,20313:19774,20314:20549,20315:20551,20316:14958,20317:20552,20318:21796,20329:20560,20335:20563,20336:20561,20339:12866,20341:19003,20342:20555,20347:20559,20348:14451,20351:15176,20355:13350,20358:20564,20360:20556,20362:31029,20363:20067,20365:15224,20367:20557,20369:20562,20370:31028,20372:31031,20374:20565,20376:20558,20378:31030,20379:13857,20381:12365,20384:13858,20385:12865,20395:21797,20397:19321,20398:18798,20399:14452,20405:16175,20406:20023,20415:19032,20418:14136,20419:16933,20420:12900,20425:31014,20426:15699,20429:31032,20430:20569,20432:20574,20433:20572,20436:20567,20439:16943,20440:20570,20442:20573,20443:20571,20445:19037,20447:20568,20449:16174,20451:19315,20452:20575,20453:20576,20462:15652,20463:20589,20467:18256,20469:18742,20470:20584,20472:19056,20474:12854,20478:20588,20479:31035,20485:20582,20486:20591,20489:16722,20491:14404,20493:18268,20495:24647,20497:20590,20498:17757,20500:20579,20502:14454,20505:14453,20506:20577,20510:31036,20511:15450,20513:20585,20514:31034,20515:19055,20516:17229,20517:20581,20518:14193,20520:20578,20521:20586,20522:20580,20523:20049,20524:20587,20525:20289,20534:13926,20537:14192,20544:31033,20546:31039,20547:20592,20550:31037,20551:20593,20552:20597,20553:12366,20559:19024,20560:20596,20565:20595,20566:20599,20570:20598,20572:17508,20581:14194,20588:20600,20592:31038,20594:15429,20596:16934,20597:17509,20598:13942,20600:20601,20605:13622,20608:20602,20613:20604,20621:19253,20625:14182,20628:31040,20632:15153,20633:18551,20634:20603,20652:14917,20653:19779,20658:20606,20659:20771,20660:20605,20661:14916,20663:15741,20670:14137,20674:20772,20677:13903,20681:20769,20682:20770,20685:17967,20687:16764,20689:13859,20693:19277,20694:20773,20696:31042,20698:20029,20702:20774,20707:20777,20709:20775,20711:16718,20717:20776,20718:20778,20724:31041,20725:20780,20729:20779,20731:19016,20736:13623,20737:20782,20738:20783,20740:12847,20745:20781,20754:15476,20756:20786,20757:20785,20758:20784,20760:20566,20762:20787,20767:15742,20769:20788,20778:19749,20786:19545,20791:20790,20794:20789,20795:20792,20796:20791,20799:20793,20800:20794,20801:12404,20803:14389,20804:14139,20805:15676,20806:17275,20807:13860,20808:16488,20809:14455,20810:31043,20811:14702,20812:20796,20813:19528,20814:17734,20816:15225,20818:20795,20820:20797,20826:17758,20828:13173,20834:20798,20836:31044,20837:18046,20840:16692,20841:20800,20842:20801,20843:18476,20844:14456,20845:20283,20846:20802,20849:13862,20853:19004,20854:16950,20855:13937,20856:17717,20860:14195,20864:20803,20866:20804,20869:18018,20870:12639,20873:20807,20874:14973,20876:20806,20877:14918,20879:20808,20880:26222,20881:20809,20882:19265,20883:20810,20885:20811,20886:20812,20887:15977,20889:15436,20893:31045,20896:13351,20898:20815,20900:20813,20901:19517,20902:20814,20904:18778,20905:20816,20906:20817,20907:20818,20908:17759,20912:20822,20913:20820,20914:20821,20915:20819,20916:14947,20917:20823,20918:19562,20919:20068,20925:20824,20926:31046,20932:16424,20933:20825,20934:15706,20937:20826,20939:17276,20940:20031,20941:17760,20950:21061,20955:20827,20956:29733,20957:13893,20960:20828,20961:19294,20966:15720,20967:17020,20969:20830,20970:18020,20972:31047,20973:20831,20976:20832,20977:13102,20981:20833,20982:13863,20984:17996,20985:12666,20986:15696,20989:18465,20990:20834,20992:17761,20995:16207,20996:20835,20998:18988,20999:16474,21000:13346,21002:13353,21003:20836,21006:20838,21009:14138,21012:20837,21013:31048,21015:20083,21021:15721,21028:18493,21029:19020,21031:20839,21033:19832,21034:20840,21038:20841,21040:17790,21043:20842,21046:16425,21047:14974,21048:14196,21049:20843,21050:15177,21051:14703,21059:17510,21060:20845,21063:16935,21066:14959,21067:20846,21068:20847,21069:16688,21071:20844,21076:20849,21078:19254,21083:14692,21086:20848,21091:14197,21092:14942,21093:18285,21097:20852,21098:20850,21103:18811,21104:15978,21105:20859,21106:13156,21107:20853,21108:20851,21109:16719,21117:20855,21119:20854,21123:13124,21127:14176,21128:20860,21129:20013,21133:20856,21137:20861,21138:20858,21140:20857,21147:20047,21148:31049,21151:14457,21152:12867,21155:20084,21158:31050,21161:15733,21162:17752,21163:14693,21164:21026,21165:21027,21167:31548,21169:20069,21172:20267,21173:21029,21177:14458,21180:21028,21182:13103,21184:31051,21185:21030,21187:19286,21189:17468,21191:19750,21193:19033,21197:21031,21202:28757,21205:17968,21207:21032,21208:13354,21209:19507,21211:31052,21213:15905,21214:21033,21215:19047,21216:21037,21218:16426,21219:21034,21220:13904,21222:21035,21223:13355,21234:14126,21235:21038,21237:21039,21240:21040,21241:21041,21242:15451,21246:14459,21247:19550,21248:31053,21249:19560,21250:18039,21253:19057,21254:21042,21255:31054,21256:21043,21261:21045,21263:21047,21264:21046,21269:21048,21270:12861,21271:19276,21273:14972,21274:21049,21277:16729,21280:15906,21281:13865,21283:21050,21284:31055,21290:18523,21295:21051,21297:21052,21299:21053,21304:21054,21305:18724,21306:13928,21307:12389,21311:17983,21312:21055,21313:15677,21315:16489,21317:21057,21318:21056,21319:15907,21320:14433,21321:21059,21322:18494,21325:21060,21329:18524,21330:16948,21331:17006,21332:13864,21335:18030,21336:17201,21338:18286,21340:19278,21342:21062,21344:16490,21350:14133,21353:21063,21358:21064,21359:12588,21360:12405,21361:13421,21362:31056,21363:16936,21364:13649,21365:19825,21367:21067,21368:12855,21371:21066,21375:13866,21378:21068,21380:19569,21395:31057,21398:21069,21400:20050,21402:14460,21407:14390,21408:21070,21413:21072,21414:21071,21416:16223,21417:12601,21421:12638,21422:21073,21424:21074,21426:31058,21427:14391,21430:21075,21435:13678,21442:15154,21443:21076,21448:19316,21449:14901,21450:13658,21451:19751,21452:16720,21453:18495,21454:15485,21460:15687,21462:15464,21463:15477,21465:15734,21467:18496,21469:31059,21471:21079,21473:12611,21474:16721,21475:14461,21476:14405,21477:13927,21480:21083,21481:17185,21482:17022,21483:13867,21484:15908,21485:21084,21486:21082,21487:12868,21488:16998,21489:15416,21490:15179,21491:12582,21494:13168,21495:14694,21496:15178,21498:21085,21505:21086,21507:13641,21508:13126,21512:14695,21513:13640,21514:17503,21515:12581,21516:17969,21517:19518,21518:14625,21519:19833,21520:17735,21521:14462,21531:14127,21533:21095,21535:13923,21536:19274,21542:18525,21545:21094,21547:13406,21548:21089,21549:21090,21550:21092,21558:21093,21560:13659,21561:16225,21563:18989,21564:21091,21565:21087,21566:14435,21568:21088,21570:20260,21574:19058,21576:17512,21577:14434,21578:14704,21582:21096,21585:18013,21599:21100,21608:15486,21610:15478,21616:21103,21617:21101,21619:19491,21621:21098,21622:21107,21623:21102,21627:21105,21628:14406,21629:19519,21632:21106,21636:21108,21638:21110,21642:31062,21643:14960,21644:20290,21646:21099,21647:21097,21648:21109,21650:21104,21660:31061,21666:21112,21668:21283,21669:21114,21672:21118,21673:31063,21675:21281,21676:21115,21679:21310,21682:14953,21683:13105,21688:21113,21692:21285,21693:12406,21694:21284,21696:12325,21697:18762,21698:21282,21700:21116,21703:21111,21704:21117,21705:14920,21720:21286,21729:12407,21730:21295,21733:21287,21734:21288,21736:15909,21737:19305,21741:21293,21742:21292,21746:17711,21754:21294,21757:21291,21759:31064,21764:12596,21766:14902,21767:16176,21775:21289,21776:17762,21780:21290,21782:12322,21806:21300,21807:19747,21809:15911,21811:21306,21816:21305,21817:21296,21822:16963,21824:21297,21828:17007,21829:21302,21830:15910,21836:21299,21839:19556,21843:14140,21846:21303,21847:21304,21852:21301,21853:21307,21859:21298,21883:21313,21884:21318,21886:21314,21888:21309,21891:21319,21892:16689,21894:31065,21895:21321,21897:14626,21898:21311,21899:17277,21912:21315,21913:21308,21914:13357,21916:13422,21917:13157,21918:21316,21919:21312,21927:14198,21928:21322,21929:21320,21930:16723,21931:13642,21932:13868,21934:21317,21936:13940,21942:12612,21956:21326,21957:21324,21959:21543,21972:21329,21978:21323,21980:21327,21983:21325,21987:15180,21988:21328,22007:21331,22009:21336,22013:21334,22014:21333,22022:17202,22025:12869,22036:21330,22038:21332,22039:15912,22040:12595,22043:21335,22057:12894,22063:21346,22065:15996,22066:21342,22068:21340,22070:21341,22072:21343,22082:12605,22092:16697,22094:21337,22096:21338,22107:13178,22116:21345,22120:13423,22122:21348,22123:21344,22124:21347,22132:18990,22136:18005,22138:18488,22144:21350,22150:21349,22151:13125,22154:21351,22159:21354,22164:21353,22176:21352,22178:18233,22181:21355,22190:21356,22196:21358,22198:21357,22204:21360,22208:21363,22209:21361,22210:21359,22211:21362,22216:21364,22222:21365,22225:21366,22227:21367,22231:21368,22232:20805,22234:15484,22235:15181,22238:12915,22240:12408,22243:17220,22254:21369,22256:14884,22258:12367,22259:16222,22265:21370,22266:14407,22269:14705,22271:21372,22272:21371,22275:19040,22276:21373,22280:21537,22281:21374,22283:21538,22285:21539,22287:14199,22290:12640,22291:21540,22294:21542,22296:21541,22300:21544,22303:17754,22310:21545,22311:12341,22312:14943,22317:14141,22320:17231,22327:21546,22328:21547,22331:21549,22336:21550,22338:14948,22343:13905,22346:19255,22350:21548,22351:21551,22352:14913,22353:14627,22361:31066,22369:21555,22372:14885,22373:31067,22374:17203,22377:21552,22378:17498,22399:21556,22402:16226,22408:21554,22409:21557,22411:14143,22419:21558,22432:21559,22434:14628,22435:13120,22436:21561,22442:21562,22444:31068,22448:21563,22451:21560,22464:21553,22467:21564,22470:21565,22471:31070,22472:31069,22475:19300,22478:15979,22482:21567,22483:21568,22484:21566,22486:21570,22492:18232,22495:12392,22496:18774,22499:21571,22516:15997,22519:15417,22521:18269,22522:13424,22524:14955,22528:19289,22530:17970,22533:14200,22534:16975,22538:21569,22539:21572,22549:16964,22553:21573,22557:21574,22561:21576,22564:17513,22570:13358,22575:29729,22576:12641,22577:19059,22580:15980,22581:17736,22586:14950,22589:21582,22592:19005,22593:20061,22602:12916,22603:21578,22609:16698,22610:21581,22612:17763,22615:17737,22616:17764,22617:18489,22618:17485,22622:14921,22626:21577,22633:12662,22635:17718,22640:21579,22642:21575,22645:16208,22649:21583,22654:15694,22659:13869,22661:21584,22675:19048,22679:16765,22684:17478,22686:31073,22687:21586,22696:19279,22699:21587,22702:21592,22706:31074,22707:18991,22712:21591,22713:21585,22714:21588,22715:21590,22718:14886,22721:19017,22725:21593,22727:17221,22730:12917,22732:15981,22737:21595,22739:21594,22741:14696,22743:21596,22744:21598,22745:21597,22748:21600,22750:21589,22751:21602,22756:21601,22757:21599,22763:15182,22764:16209,22766:16724,22767:21603,22768:16444,22769:12397,22770:18276,22775:17499,22777:21605,22778:21604,22779:21606,22780:21607,22781:21608,22786:21609,22793:19025,22794:21610,22795:31075,22799:12870,22800:21611,22805:19772,22806:13104,22808:21065,22809:15688,22810:16959,22811:21612,22812:19563,22818:19508,22821:21614,22823:16999,22825:17719,22826:16960,22827:18775,22828:21615,22829:21616,22830:12667,22833:15418,22834:21617,22839:12368,22840:21618,22846:21619,22852:12642,22855:13425,22856:18016,22857:19060,22862:21623,22863:16725,22864:21622,22865:14144,22867:31076,22868:19291,22869:21621,22871:17765,22872:21625,22874:21624,22875:31077,22877:31078,22880:21627,22882:21626,22883:31079,22885:12668,22887:21628,22888:15913,22889:21630,22890:17189,22892:21629,22894:18995,22899:15735,22900:17755,22904:21793,22909:14629,22913:21794,22914:18209,22915:18526,22916:19537,22922:18213,22925:21803,22931:13624,22934:19781,22937:19503,22939:22060,22941:21795,22947:21798,22948:31080,22949:16965,22952:19256,22956:17738,22962:21799,22969:19301,22970:31081,22971:14922,22974:15914,22982:21800,22985:15184,22987:15183,22992:12345,22993:14408,22995:16427,22996:12369,23001:21804,23002:21805,23004:21802,23013:12600,23014:13359,23016:21801,23018:19525,23019:18737,23030:12328,23035:12409,23039:15185,23041:12370,23043:12323,23049:21810,23057:21808,23064:19516,23066:21811,23068:21809,23071:21807,23072:16177,23077:21806,23081:19034,23087:14436,23093:21815,23094:21816,23100:15915,23104:21812,23105:20268,23110:18252,23113:21814,23130:14887,23138:21817,23142:18776,23146:21818,23148:21813,23167:19515,23186:18270,23194:21819,23195:18738,23228:21820,23229:21824,23230:21821,23233:12871,23234:21823,23241:15419,23243:21822,23244:14201,23248:21836,23254:21829,23255:21826,23265:17252,23267:21825,23270:21827,23273:21828,23290:21830,23291:21831,23305:13426,23307:21833,23308:21832,23318:21834,23330:15982,23338:21837,23340:17500,23344:12613,23346:21835,23350:21838,23358:21839,23360:21842,23363:21840,23365:21841,23376:15186,23377:21843,23380:14630,23381:21844,23382:31082,23383:15226,23384:16952,23386:21845,23387:21846,23388:15194,23389:14631,23391:19538,23395:13608,23396:14409,23397:21847,23398:13144,23401:21848,23403:16953,23408:21849,23409:22051,23411:21850,23413:21851,23416:21852,23418:21854,23424:21855,23427:21856,23429:17008,23431:12583,23432:15465,23433:12354,23435:16727,23436:13360,23437:15413,23439:14632,23445:17766,23447:15649,23448:13361,23449:17256,23450:17514,23451:12344,23452:13625,23453:19061,23455:15426,23458:13650,23459:16491,23460:15420,23461:19752,23462:21857,23470:13660,23472:14923,23475:13106,23476:12643,23477:15916,23478:12872,23480:21858,23481:19782,23487:15689,23488:31083,23490:15460,23491:21859,23492:13427,23493:18002,23494:19497,23495:21860,23497:21861,23500:18777,23504:21863,23506:13352,23507:13943,23508:21862,23512:31085,23515:13362,23517:16178,23518:21867,23519:15137,23521:12873,23522:21866,23524:21864,23525:21868,23526:21865,23527:18219,23528:23629,23529:16179,23531:21869,23532:31086,23534:20032,23536:21870,23539:21872,23541:17278,23542:21871,23544:16419,23546:15227,23550:16976,23551:15479,23553:18805,23554:16492,23556:15437,23557:21873,23558:15917,23559:21874,23560:21875,23561:12371,23562:16954,23563:16210,23565:21876,23566:17971,23567:15918,23569:15919,23571:21877,23574:16493,23578:15920,23582:31087,23584:21878,23586:21879,23588:19552,23592:21880,23597:13894,23601:15650,23608:21881,23609:21882,23610:15452,23611:16172,23612:18036,23613:16212,23614:18552,23615:18210,23616:13897,23617:21883,23621:13679,23622:21884,23624:13950,23626:17999,23627:12848,23629:15187,23630:21885,23631:22050,23632:22049,23633:13949,23635:21886,23637:17720,23646:16944,23648:17739,23649:15432,23652:16728,23653:19834,23660:22052,23662:22053,23663:18006,23665:15155,23670:22055,23673:22056,23692:22057,23696:13428,23697:22058,23700:22059,23713:12844,23718:31088,23720:16699,23721:13412,23723:22061,23724:19496,23729:16978,23731:13145,23734:22063,23735:22065,23736:13407,23738:31089,23739:22062,23740:22064,23742:22067,23749:22066,23751:22068,23769:22069,23776:17981,23777:13870,23784:12901,23785:22070,23786:22075,23789:22073,23791:19063,23792:19062,23797:31090,23798:17767,23802:22072,23803:15700,23805:22071,23815:16242,23819:22076,23822:14954,23825:22082,23828:22083,23829:22077,23830:13107,23831:22078,23832:22087,23833:22086,23834:22085,23835:22081,23839:22080,23842:22084,23847:31091,23849:19064,23874:31094,23883:22091,23884:22088,23886:22090,23888:19826,23890:22089,23891:31092,23900:22079,23913:16243,23916:22092,23917:31095,23919:14903,23923:22093,23926:22094,23938:22097,23940:22096,23943:22095,23947:17768,23948:22074,23952:22103,23965:22099,23970:22098,23980:22100,23982:22101,23991:22104,23992:31096,23993:31097,23994:20070,23996:22105,23997:22102,24009:22106,24012:13408,24013:22107,24016:31098,24018:22109,24019:22108,24022:22110,24027:22111,24029:16494,24030:15651,24033:15716,24035:16739,24037:14633,24038:14904,24039:14634,24040:13680,24043:22112,24046:14905,24049:14410,24050:22113,24051:19494,24052:18243,24053:22114,24055:14635,24059:13356,24061:17191,24062:13906,24066:15188,24067:18779,24070:18497,24075:22115,24076:13429,24081:22118,24086:17441,24089:22117,24090:22116,24091:22119,24093:17515,24101:16227,24107:15189,24109:16458,24111:16979,24112:13602,24115:17442,24118:22120,24119:22121,24120:15983,24125:19257,24128:22124,24131:22123,24132:22122,24133:18813,24135:22131,24140:19290,24142:22125,24148:22127,24149:19307,24151:22126,24159:22128,24161:18472,24162:22129,24163:19006,24164:22130,24178:13363,24179:19007,24180:18223,24181:22132,24182:22133,24184:14636,24185:13364,24186:22134,24187:14392,24188:19780,24189:19753,24190:13430,24191:22136,24193:17443,24195:14637,24196:15921,24199:18527,24202:15922,24207:15736,24213:17516,24214:19065,24215:17721,24218:14638,24220:18780,24224:22137,24230:17753,24231:14914,24235:14411,24237:17517,24245:12355,24246:15726,24247:14639,24248:19783,24257:22138,24258:22139,24259:18257,24264:22140,24265:20087,24266:20269,24271:22142,24272:22141,24275:13127,24278:22305,24282:22308,24283:22309,24285:22307,24287:18752,24288:15923,24289:22311,24290:22310,24291:22306,24296:22312,24297:22313,24300:22314,24304:22317,24305:22315,24307:22316,24308:22318,24310:12644,24311:17518,24312:22319,24314:14202,24315:12918,24316:18230,24318:22320,24319:18043,24321:19035,24323:22321,24324:20270,24329:22322,24330:19008,24331:22325,24332:20513,24333:20529,24335:15408,24336:18037,24337:22326,24339:13661,24340:17444,24341:12410,24342:22327,24343:18982,24344:14640,24347:17232,24351:17519,24353:31099,24357:19567,24358:14393,24359:14412,24361:22328,24365:22329,24367:22335,24369:15461,24372:31100,24373:17445,24375:13871,24376:22330,24380:18731,24382:17222,24385:22331,24389:31020,24392:22332,24394:13872,24396:22333,24398:22334,24401:22336,24403:17782,24406:22337,24407:22338,24409:22339,24412:22324,24413:22323,24417:22340,24418:14145,24422:18727,24423:31101,24425:14924,24426:18743,24427:17446,24428:18763,24429:22341,24432:15924,24433:12614,24435:22342,24439:22343,24441:19570,24444:18528,24447:22346,24448:12669,24449:16428,24450:22345,24451:22344,24452:14146,24453:16980,24455:22350,24456:22348,24458:22347,24459:20007,24460:14437,24464:15737,24465:22349,24466:17740,24467:15678,24471:17984,24472:22353,24473:22352,24478:22351,24480:22354,24481:14438,24488:22355,24489:18812,24490:15707,24493:22356,24494:18553,24499:17985,24500:17447,24503:31102,24505:17712,24508:22357,24509:13611,24515:16180,24517:18732,24524:13431,24525:18214,24534:22358,24535:15190,24536:19258,24537:19259,24540:12670,24541:22363,24542:31265,24544:17257,24548:22360,24555:12919,24560:22573,24561:22362,24565:18224,24568:22361,24571:22359,24573:14714,24575:22365,24590:22371,24591:22377,24592:22369,24594:17756,24597:22374,24598:18781,24601:22368,24603:22373,24604:20071,24605:15191,24608:16981,24609:22366,24613:13662,24614:22376,24615:16429,24616:12645,24617:22370,24618:12920,24619:22375,24623:13873,24625:22372,24634:22378,24641:22380,24642:22390,24643:22388,24646:22385,24650:22384,24651:20088,24653:22386,24656:13874,24658:14641,24661:15738,24665:22393,24666:22379,24669:31266,24671:22383,24672:22367,24674:12922,24675:22387,24676:22389,24677:17233,24680:14888,24681:12856,24682:22381,24683:22392,24684:22391,24685:13875,24687:16937,24688:13158,24693:14147,24695:22382,24705:22394,24707:22397,24708:22561,24709:31267,24713:15421,24714:31268,24715:22567,24716:17520,24717:22395,24722:22565,24724:12921,24726:22563,24727:22564,24730:22398,24731:22562,24735:14439,24736:19754,24739:13365,24742:12633,24743:22566,24745:18234,24746:12333,24754:18529,24755:22364,24756:22572,24757:22576,24758:19557,24760:22569,24764:17769,24765:22574,24773:15984,24774:22575,24775:18007,24785:20295,24787:22571,24789:31270,24792:22577,24794:14715,24796:16459,24798:31269,24799:12372,24800:22570,24801:22568,24803:16730,24807:22396,24808:15156,24816:16966,24817:22589,24818:31272,24819:16731,24820:22584,24822:22581,24823:22582,24825:15462,24826:22585,24827:22588,24832:22583,24833:15653,24835:22586,24838:22580,24840:19580,24841:19579,24845:22590,24846:22591,24847:12373,24849:31273,24853:22579,24858:13938,24859:12326,24863:13366,24864:31271,24865:22587,24871:22595,24872:22594,24876:22599,24880:31275,24884:22600,24887:31274,24892:22598,24893:22601,24894:22593,24895:22597,24898:22602,24900:22603,24903:22592,24904:15228,24906:22596,24907:16982,24908:14642,24909:22578,24910:16181,24915:22616,24917:19049,24920:22606,24921:22607,24922:22608,24925:22615,24927:22614,24930:19325,24931:13367,24933:22612,24935:14149,24936:13108,24939:22609,24942:20024,24943:22611,24944:12374,24945:22613,24947:22604,24948:22610,24949:22617,24950:14148,24951:22605,24958:19805,24962:19755,24967:22620,24970:22624,24974:16766,24976:20089,24977:22625,24980:22622,24982:22619,24984:31276,24985:22618,24986:22623,24996:18992,24999:17972,25001:14150,25003:22626,25004:22621,25006:22627,25010:14203,25014:12849,25018:22635,25022:13368,25027:22633,25030:22634,25031:14889,25032:22632,25033:22630,25034:22629,25035:22636,25036:22628,25037:22638,25040:12923,25059:22640,25062:22639,25074:17448,25076:22643,25078:22641,25079:22631,25080:14204,25082:22642,25084:22646,25085:22645,25086:22647,25087:22644,25088:22648,25096:22649,25097:22650,25098:19050,25100:22652,25101:22651,25102:15679,25104:16430,25105:12902,25106:12924,25107:31277,25108:22653,25110:12351,25114:16460,25115:22654,25117:27715,25118:22817,25119:14177,25121:22818,25126:16495,25130:22819,25134:22820,25135:13626,25136:22821,25138:22822,25139:22823,25140:16983,25144:14413,25147:19553,25151:19260,25152:15722,25153:22824,25159:16496,25160:28221,25161:18530,25163:15466,25165:14925,25166:22825,25171:16967,25173:18983,25176:17009,25179:22828,25182:22826,25184:22829,25187:22827,25192:22830,25198:18993,25201:12343,25206:18782,25209:18531,25212:22831,25214:22834,25215:15925,25216:13627,25218:22832,25219:22839,25220:15926,25225:22833,25226:18244,25233:19806,25234:22835,25235:22836,25236:22840,25237:17770,25238:22837,25239:14643,25240:16478,25243:22854,25244:18484,25246:17010,25254:31278,25259:18532,25260:23085,25265:19066,25269:17521,25273:19317,25275:22843,25276:12833,25277:17258,25282:22852,25285:17204,25286:22846,25287:22853,25288:22848,25289:22855,25290:22851,25292:22850,25293:18287,25295:22844,25296:12925,25297:22842,25298:13681,25299:17011,25300:22838,25303:22841,25304:14644,25305:16475,25307:15927,25308:22849,25309:18258,25312:13682,25313:13128,25324:13159,25325:16161,25326:22857,25327:22862,25329:22858,25331:14205,25333:22863,25334:15138,25335:14697,25342:15654,25343:22845,25345:15229,25346:22860,25351:15192,25352:22861,25353:12356,25356:22856,25361:17449,25369:13683,25375:13876,25383:22859,25384:12327,25387:14915,25391:16182,25402:17522,25405:18516,25406:22865,25407:16734,25417:16938,25420:15147,25421:22866,25423:22868,25424:22864,25429:19041,25431:17469,25436:16732,25447:19067,25448:15438,25449:22880,25451:22879,25454:16248,25458:14206,25462:22873,25463:15929,25466:18024,25467:18225,25472:22871,25475:16733,25480:15480,25481:22876,25484:15928,25486:22870,25487:22875,25490:18259,25494:22869,25496:14113,25499:13149,25503:22877,25504:20011,25505:14926,25506:17205,25507:22874,25509:16476,25511:14645,25512:16228,25513:12646,25514:16700,25515:22872,25516:13637,25522:14151,25524:17487,25525:22878,25531:16735,25534:22881,25536:22883,25539:16951,25540:22889,25542:22884,25545:22886,25551:18753,25552:17523,25554:22887,25558:19756,25562:19784,25563:13369,25569:12334,25571:22885,25577:22882,25582:13432,25588:12647,25589:31279,25590:22888,25594:19785,25606:22892,25613:16955,25615:22899,25619:22893,25622:22890,25623:22897,25628:22867,25638:22894,25640:22898,25644:18498,25645:17771,25652:22891,25654:22895,25658:14152,25662:14961,25666:16477,25678:22903,25688:17702,25696:31280,25703:22900,25705:19296,25711:22901,25718:22902,25720:19534,25722:16418,25731:14178,25736:22909,25746:15157,25747:22906,25749:22905,25754:18226,25757:31281,25758:17973,25764:17713,25765:22907,25769:22908,25771:18799,25773:18245,25774:15139,25776:16497,25778:19280,25785:13129,25787:23077,25788:22910,25793:19786,25794:23079,25797:23075,25799:23076,25805:16736,25806:31282,25810:23074,25812:22847,25816:23078,25818:23073,25824:23083,25825:23084,25826:17703,25827:23086,25830:15140,25831:23081,25836:13628,25839:23087,25841:23080,25842:23091,25844:23090,25846:23089,25850:23092,25853:23094,25854:15985,25856:23093,25861:23097,25880:23095,25884:23096,25885:22896,25891:23099,25892:23098,25898:22904,25899:23100,25900:23088,25903:15193,25908:23101,25909:23102,25910:23104,25911:23103,25912:23105,25913:12926,25915:14646,25918:19068,25919:16431,25925:14414,25928:23107,25933:23110,25934:31283,25935:18770,25937:13663,25941:23109,25942:23108,25943:18260,25944:23111,25945:13877,25949:23113,25950:23112,25954:13370,25955:15158,25958:18008,25964:14153,25968:16244,25970:23114,25972:16432,25973:17704,25975:18783,25976:23115,25986:23116,25987:23117,25991:19000,25992:21853,25993:16454,25996:18764,25998:14936,26000:18533,26001:18499,26007:17741,26009:20033,26011:23119,26012:15440,26015:23120,26017:12342,26020:13908,26021:16461,26023:18784,26027:23121,26028:15170,26029:17223,26031:15195,26032:16183,26039:23122,26041:19069,26044:12663,26045:15196,26049:23125,26051:23123,26052:23126,26053:20025,26054:23124,26059:16507,26060:23127,26063:16946,26066:23128,26071:13434,26073:23130,26075:23129,26080:23131,26081:23132,26082:13435,26085:18044,26086:17206,26087:13676,26088:15197,26089:16737,26092:15708,26093:12336,26097:23133,26106:12834,26107:23137,26112:31284,26114:14647,26115:23136,26118:14891,26119:15930,26121:31287,26122:23135,26124:15931,26126:19520,26127:14890,26131:12375,26132:16462,26133:31285,26140:23142,26142:31289,26143:16433,26144:12615,26148:31290,26149:15701,26151:19302,26152:14962,26157:15932,26158:31288,26159:16423,26161:31016,26164:23141,26165:23139,26166:23140,26171:31286,26172:17259,26175:23334,26177:23146,26178:15230,26179:14648,26180:23144,26185:23145,26187:16184,26191:23143,26194:15151,26199:31292,26201:31293,26205:23148,26206:23147,26207:23152,26210:23153,26212:23149,26213:31291,26214:13090,26215:23150,26216:23151,26217:18517,26222:18785,26223:14154,26224:23154,26227:31295,26228:16434,26230:15933,26234:17234,26241:13895,26243:23155,26244:23159,26247:12875,26248:23156,26249:23158,26254:23157,26257:15723,26262:17224,26263:12357,26264:23160,26265:31296,26269:23161,26272:31297,26274:17450,26278:20081,26283:15171,26286:19051,26290:31298,26292:19261,26296:23330,26297:23163,26300:23166,26302:23165,26303:31299,26305:23162,26308:23329,26311:18014,26313:23164,26326:23331,26329:15724,26330:23332,26332:19787,26333:18296,26336:23333,26342:23335,26345:23336,26352:23337,26354:13898,26355:12616,26356:14649,26357:23338,26359:23339,26360:15729,26361:16738,26362:31300,26363:31019,26364:21080,26365:16702,26366:16701,26367:16984,26368:14919,26371:20594,26376:14190,26377:19757,26379:19070,26381:18814,26382:31301,26383:23340,26388:14963,26389:17471,26390:23341,26391:20271,26395:19262,26397:17451,26398:23342,26399:13436,26406:23343,26407:23344,26408:19546,26410:19492,26411:19318,26412:19292,26413:15141,26414:23346,26417:15467,26420:19281,26422:23348,26423:23351,26424:23350,26426:13433,26429:13664,26431:23347,26433:23349,26438:23352,26441:16249,26446:19835,26447:12361,26448:14944,26449:16956,26451:15453,26454:15987,26457:23355,26460:17742,26462:23353,26463:16939,26464:23354,26465:15986,26466:19549,26467:23356,26468:23357,26469:19816,26470:31303,26474:23362,26477:14650,26479:18261,26480:23359,26481:17772,26482:23134,26483:23138,26485:13647,26487:18247,26492:23361,26494:15934,26495:18500,26501:23367,26503:18554,26505:23358,26507:23364,26508:23363,26512:16463,26517:19309,26519:20051,26522:19303,26524:12876,26525:15198,26528:20296,26529:23366,26530:16245,26534:23365,26537:23360,26543:14415,26547:23372,26548:23370,26550:12877,26551:23368,26552:23374,26553:23380,26555:31304,26560:31306,26561:16968,26564:19009,26566:23382,26570:18722,26574:23381,26575:18288,26576:19263,26577:13371,26579:16503,26580:15680,26584:17491,26586:19758,26589:23377,26590:23376,26594:23378,26596:23375,26599:23383,26601:23373,26604:23371,26606:23379,26607:23369,26609:17260,26611:19576,26612:15430,26613:14964,26619:14906,26622:19311,26623:13121,26625:31307,26626:17486,26627:17994,26628:12617,26643:16498,26646:16436,26647:14122,26654:23385,26657:14651,26658:13180,26665:23387,26666:13172,26667:23393,26674:23390,26676:16499,26680:13131,26681:14892,26684:13130,26685:14927,26688:23388,26689:14181,26690:14155,26691:17773,26692:31308,26694:23386,26696:12358,26701:23389,26702:23391,26704:13901,26705:14124,26706:31305,26707:13372,26708:13643,26713:23394,26716:14969,26717:19313,26719:15159,26723:23395,26727:18736,26740:23407,26742:12851,26743:23396,26750:23413,26751:23397,26753:20034,26755:23404,26757:18271,26765:23412,26767:23399,26771:12340,26772:23401,26775:14652,26779:23403,26781:23402,26783:23398,26784:23409,26786:15935,26790:21613,26791:14440,26792:19836,26797:23400,26799:17524,26800:13091,26801:14893,26803:23392,26805:23408,26806:13153,26809:23406,26810:23410,26812:17774,26820:13438,26822:23602,26824:31017,26825:19529,26826:23415,26827:13437,26829:23422,26831:31309,26834:19264,26836:23585,26837:23587,26839:23591,26840:23417,26842:17194,26847:17775,26848:23595,26849:23420,26851:23592,26855:23586,26862:16185,26863:23596,26866:16435,26873:23594,26874:13373,26880:20304,26881:23414,26884:23590,26885:12376,26888:23416,26891:19514,26892:23421,26893:16162,26894:17479,26895:23411,26898:23589,26905:16250,26906:23599,26907:13169,26908:14369,26913:23601,26914:23418,26915:23600,26917:23593,26918:23419,26920:23597,26922:23598,26928:23615,26932:17998,26934:23588,26937:23611,26941:23613,26943:17496,26954:19788,26963:18806,26964:23608,26965:16970,26969:23614,26970:16703,26972:23605,26973:23618,26974:23617,26976:18031,26977:23616,26978:18026,26984:31311,26986:23620,26987:23607,26989:13896,26990:23610,26991:15709,26995:18272,26996:23612,26997:13899,26999:23604,27000:23606,27001:23603,27004:20272,27005:13146,27006:23609,27009:23619,27010:13109,27018:14951,27022:12637,27025:23636,27028:20273,27029:23639,27032:31313,27035:16186,27036:23638,27040:23637,27047:23634,27054:23622,27057:23651,27058:23621,27060:23640,27067:23632,27070:23627,27071:23624,27073:23625,27075:23633,27079:29730,27082:23630,27083:14653,27084:17480,27085:16740,27086:23628,27088:23623,27091:23626,27096:19789,27097:19306,27101:23631,27102:23641,27106:31314,27111:23649,27112:23642,27115:23655,27117:23653,27122:23648,27129:23647,27131:17488,27133:16741,27135:23645,27138:23643,27141:23650,27146:23656,27147:18549,27148:23662,27154:23657,27155:23660,27156:23654,27159:17268,27161:18744,27163:23644,27166:23652,27167:15936,27169:19535,27170:23672,27171:23659,27177:14370,27178:12835,27179:13151,27182:23635,27184:31315,27189:15937,27190:23664,27192:23671,27193:15481,27194:13170,27197:17198,27204:23661,27206:31317,27207:23666,27208:23670,27211:13878,27224:13644,27225:23668,27231:13601,27233:17995,27234:23667,27238:23669,27243:31316,27250:23663,27251:31318,27256:23665,27262:31319,27263:13152,27264:17225,27268:23676,27277:23674,27278:14441,27280:23673,27287:23841,27292:23384,27296:23675,27298:23677,27299:23678,27306:23852,27308:23848,27310:23405,27315:23847,27320:23846,27323:23843,27329:23658,27330:23845,27331:23844,27345:23850,27347:20262,27354:23853,27355:13947,27358:23849,27359:23851,27362:31320,27364:31321,27368:18471,27370:23854,27386:23858,27387:23855,27396:19827,27397:23856,27402:23646,27410:23859,27414:23860,27421:12597,27423:23862,27424:14183,27425:15393,27427:13909,27431:12836,27442:19807,27447:23864,27448:23863,27449:23866,27450:13629,27453:13910,27454:13374,27459:23869,27463:23868,27465:23870,27468:12878,27470:17207,27472:23871,27475:13375,27476:23873,27481:23872,27483:23874,27487:23875,27489:23876,27490:15199,27491:16437,27492:14881,27494:18800,27497:19042,27498:20292,27503:15221,27507:14928,27508:20082,27512:23877,27513:23878,27515:15200,27519:23879,27520:23880,27523:23882,27524:23881,27526:19288,27529:15710,27530:15468,27531:15172,27533:23883,27541:23885,27542:16163,27544:23884,27550:23886,27556:23887,27562:23888,27563:23889,27567:23890,27569:23892,27570:23891,27571:23893,27572:12837,27573:17226,27575:23894,27578:15142,27579:13132,27580:23895,27583:17730,27584:21580,27589:13603,27590:23896,27595:23897,27597:19052,27598:19304,27602:17991,27603:23898,27604:18534,27606:31322,27608:18555,27611:19539,27615:23899,27627:23901,27628:23900,27631:23903,27635:23902,27656:23905,27663:15201,27665:19505,27667:23906,27668:23907,27671:13604,27675:23908,27683:23910,27684:23909,27700:16229,27703:18745,27704:12618,27710:18501,27711:31323,27712:17525,27713:15681,27714:13665,27726:18502,27728:15406,27733:23912,27735:13376,27738:12664,27740:31324,27741:18034,27742:23911,27743:14654,27744:17235,27746:23913,27752:23921,27754:23914,27759:31326,27760:16961,27762:13666,27763:23922,27770:14184,27773:13605,27774:23920,27777:23918,27778:23915,27779:19808,27782:31325,27784:17472,27788:18009,27789:23916,27792:23924,27794:23923,27795:14115,27798:12845,27801:14907,27802:23917,27803:23919,27809:19287,27810:17012,27819:19319,27822:23932,27825:23933,27827:12879,27832:18984,27833:19581,27834:24097,27835:15395,27836:15938,27837:23928,27838:23934,27839:12648,27841:13879,27844:23925,27845:23930,27849:16500,27850:18289,27852:18535,27859:23927,27861:19233,27863:23929,27865:24100,27866:31327,27867:24098,27869:23931,27873:19234,27874:18248,27875:13667,27877:17701,27880:17261,27882:24101,27887:24099,27888:16985,27889:23926,27891:12619,27908:31328,27915:19790,27916:24112,27922:24111,27927:16502,27929:24108,27931:19820,27934:17974,27935:24102,27941:17477,27945:12620,27946:14655,27947:24105,27954:15655,27955:24110,27957:24109,27958:24104,27960:24107,27963:13160,27965:24106,27966:18249,27969:20014,27972:15988,27973:16501,27993:24118,27994:24116,27996:18765,28003:24113,28004:24115,28006:12602,28009:14656,28010:20274,28012:13117,28014:18786,28015:31330,28020:19809,28023:13092,28024:16187,28025:24117,28037:24122,28039:31329,28040:15939,28044:19760,28046:24119,28051:24114,28053:24120,28054:31331,28057:20062,28059:17779,28060:17986,28076:31332,28079:13110,28082:12629,28085:24126,28088:24129,28092:20035,28096:19812,28101:24136,28102:24130,28103:24127,28107:20052,28108:24133,28111:31333,28113:15690,28114:24135,28117:24140,28120:17777,28121:24138,28126:24132,28129:17208,28132:24139,28134:24128,28136:24134,28138:24141,28139:12412,28140:24131,28142:24142,28145:16188,28146:31335,28147:15711,28149:18981,28151:14894,28152:31334,28153:24123,28154:24137,28155:17722,28156:31336,28165:16438,28167:13161,28168:14929,28169:15940,28170:24125,28171:15682,28179:14156,28181:24124,28185:24146,28186:15725,28187:14394,28189:24161,28191:24155,28192:13684,28193:17743,28195:24150,28196:24159,28197:12335,28198:12594,28199:31339,28201:12857,28203:24152,28204:16940,28205:24143,28206:24145,28207:14657,28216:24162,28217:31337,28218:24157,28220:31340,28222:24149,28227:24156,28234:19499,28237:24154,28238:24158,28246:14416,28248:15941,28251:17209,28252:31338,28255:24148,28263:19759,28267:24151,28270:24144,28271:17778,28274:24147,28278:24153,28286:20305,28287:15422,28288:19326,28290:24163,28300:18478,28303:24175,28304:14395,28310:15712,28312:24165,28316:20015,28317:14658,28319:24178,28322:12398,28325:24176,28330:24164,28335:24170,28338:24172,28342:19791,28343:24167,28346:17710,28349:24169,28351:31341,28354:24177,28356:24171,28357:19527,28361:24166,28363:15394,28364:24190,28369:13162,28371:24168,28372:24173,28373:24174,28381:17004,28382:16986,28396:24182,28399:24188,28402:24186,28404:17705,28407:24355,28408:24183,28414:24184,28415:24160,28417:13689,28418:18746,28422:15423,28425:14711,28431:20275,28433:24180,28435:24354,28436:12649,28437:16742,28448:18297,28450:13377,28451:20090,28459:19489,28460:17490,28465:24187,28466:24189,28472:16690,28478:24353,28479:24185,28481:24179,28485:13379,28500:14185,28504:24367,28507:24362,28508:16504,28511:13155,28516:15713,28518:24371,28525:24364,28526:17452,28527:24361,28528:17497,28532:24396,28536:24358,28538:24357,28540:24366,28544:24360,28545:24359,28546:24365,28548:16417,28550:24356,28552:31342,28558:24368,28561:24369,28567:13378,28577:24374,28579:24373,28580:24375,28586:24378,28593:17731,28595:24372,28597:31343,28601:24376,28608:14179,28609:17017,28610:24370,28611:18235,28614:24377,28628:24382,28629:24380,28632:24383,28635:24386,28639:24379,28640:14698,28641:18216,28644:24121,28651:19828,28652:24381,28654:24385,28655:17013,28657:24384,28659:24363,28661:31344,28662:28521,28666:24389,28670:24393,28673:24391,28677:31345,28679:31346,28681:24387,28683:24388,28687:24392,28689:24390,28693:18766,28696:24398,28698:24395,28699:24394,28701:24397,28702:18004,28703:24399,28710:17269,28711:17005,28712:31347,28716:16421,28720:24400,28722:24402,28734:24401,28748:24181,28753:24403,28760:18023,28771:24404,28779:12880,28783:17780,28784:13093,28792:13668,28796:15454,28797:14930,28805:31348,28809:20263,28810:16230,28814:12650,28818:24406,28825:24405,28843:31349,28844:24409,28845:17210,28846:24412,28847:24407,28851:24411,28856:24410,28857:17728,28858:12377,28859:31015,28872:20085,28875:24414,28879:12584,28889:24416,28893:24415,28895:24413,28913:24408,28921:19235,28925:24418,28932:31351,28937:24417,28943:31350,28948:12651,28953:24420,28954:18994,28956:24419,28961:19509,28966:15943,28982:16691,28988:15942,28998:31353,28999:31354,29001:20091,29004:24426,29006:16505,29013:24422,29014:24427,29017:12652,29020:31352,29026:24425,29028:18273,29029:24421,29030:24424,29031:15944,29033:18513,29036:24428,29038:15441,29053:16506,29060:24431,29064:24423,29066:14119,29071:24429,29076:19792,29077:24432,29081:29734,29087:15695,29096:24433,29100:24434,29105:18222,29113:24436,29118:24437,29121:31356,29123:18227,29128:17781,29129:24439,29134:24441,29136:20053,29138:24438,29140:24440,29141:12653,29143:24435,29151:21339,29152:24442,29157:16743,29158:15160,29159:24444,29164:24443,29165:16164,29166:21081,29173:24445,29177:24609,29179:24430,29180:24446,29182:31357,29183:24610,29190:18298,29197:24611,29200:24612,29211:24613,29224:24614,29226:17502,29228:24616,29229:24615,29232:24617,29234:24618,29237:15455,29238:18787,29242:19564,29243:24619,29244:24620,29245:16726,29246:15396,29247:24621,29248:24622,29254:24623,29255:19026,29256:18503,29259:24624,29260:18263,29266:17453,29272:24625,29273:12903,29275:13677,29277:19526,29279:19510,29281:12852,29282:20276,29287:19282,29289:18986,29298:16439,29300:24626,29305:17987,29309:14371,29310:24627,29312:14932,29313:24629,29314:24628,29319:24630,29330:24631,29334:24632,29344:13630,29346:24633,29351:24634,29356:14372,29359:18504,29361:31358,29362:24636,29366:15989,29369:24635,29374:31521,29378:13880,29379:24637,29380:24639,29382:24638,29390:24640,29392:14417,29394:24641,29399:13929,29401:16704,29403:14717,29408:24643,29409:24644,29410:24642,29417:15469,29420:17992,29421:13881,29431:24646,29432:17196,29433:24645,29436:20277,29437:18274,29450:24649,29462:24651,29463:24648,29467:19540,29468:24650,29469:24652,29471:20036,29476:31522,29477:24656,29481:24655,29482:17270,29483:18221,29486:14373,29487:24654,29492:24653,29494:19761,29495:19762,29502:24657,29503:12654,29508:14710,29509:15202,29518:24658,29519:24659,29527:24661,29539:15683,29544:24663,29546:24662,29552:24664,29554:13133,29557:24666,29559:31524,29560:24665,29562:24668,29563:24667,29572:14396,29575:20008,29577:13900,29579:12838,29590:13930,29609:13409,29618:20072,29619:24670,29627:24672,29629:31525,29632:24673,29634:12881,29640:24669,29641:31526,29642:15161,29645:17473,29646:24671,29650:31529,29654:31527,29662:24676,29664:15470,29667:31528,29669:24674,29674:14142,29677:18505,29678:24675,29681:24702,29685:31531,29688:24681,29694:14397,29699:13669,29701:24678,29702:19837,29703:31530,29705:20016,29730:17014,29733:24680,29734:31532,29737:31534,29738:31533,29742:31535,29746:24682,29747:20054,29748:13911,29749:18556,29750:18250,29754:24683,29759:24685,29761:24688,29781:24684,29785:24687,29786:14442,29787:12621,29788:24689,29790:16240,29791:24686,29792:20060,29794:31536,29795:24692,29796:29732,29801:24690,29802:24693,29807:24679,29808:24691,29811:14908,29814:24694,29822:24695,29827:19838,29833:31537,29835:24696,29854:24697,29855:31538,29858:24677,29863:24698,29872:13380,29885:15397,29898:24699,29903:24700,29908:24701,29916:12603,29920:24865,29922:18747,29923:24866,29926:13348,29927:24867,29929:24868,29934:24869,29936:24871,29937:24872,29938:24870,29942:18771,29943:24874,29944:24873,29953:31539,29955:24876,29956:24875,29957:24877,29964:24878,29965:24880,29966:24879,29969:14713,29971:24882,29973:24881,29976:13381,29978:16211,29980:17724,29982:24883,29983:16440,29987:15162,29989:12665,29990:24884,29992:19793,29995:19043,29996:24885,29999:31084,30000:17732,30001:19763,30002:14659,30003:16189,30007:17227,30008:21044,30010:17454,30011:12904,30012:24886,30020:24887,30022:24892,30025:24890,30026:24889,30027:23106,30028:13094,30029:24888,30031:12378,30033:18474,30036:18506,30041:20017,30042:24893,30043:24891,30044:17244,30045:16422,30048:18475,30050:18733,30052:24895,30053:20012,30054:14157,30055:24896,30057:24894,30058:18518,30059:24897,30061:24898,30063:31540,30064:12379,30067:15990,30068:24903,30070:24900,30071:18029,30072:24899,30079:13606,30082:24906,30086:24901,30087:24902,30089:24905,30090:24904,30091:18725,30094:16706,30095:16705,30097:13631,30100:24907,30106:24908,30109:24909,30115:24911,30117:24910,30123:12630,30129:24919,30130:18536,30131:24913,30133:24915,30136:24917,30137:16190,30140:24918,30141:24916,30142:15424,30146:24912,30147:24914,30149:18754,30151:15945,30154:24921,30157:24920,30162:24922,30164:15398,30165:14895,30168:17783,30169:24923,30171:17483,30174:24925,30178:20001,30179:24924,30185:16745,30192:24930,30194:24932,30195:24933,30196:17236,30202:24931,30204:24928,30206:24926,30207:24927,30209:24929,30217:24936,30219:24934,30221:24935,30239:24937,30240:24939,30241:24940,30242:24941,30244:24942,30247:24938,30256:24944,30260:24943,30267:24945,30274:20037,30278:24948,30279:24946,30280:24947,30284:13410,30290:19582,30294:19018,30296:24950,30300:24949,30305:24951,30306:24952,30311:24956,30312:24953,30313:24954,30314:24955,30316:24957,30320:24958,30322:25121,30326:25122,30328:25123,30330:18479,30331:17744,30332:25124,30333:18290,30334:18740,30336:25125,30338:31541,30339:25126,30340:17706,30342:13095,30343:14660,30344:25127,30347:25128,30350:25129,30352:15145,30355:25131,30358:25130,30361:25132,30362:25133,30363:31544,30364:31542,30366:31543,30374:31545,30382:18537,30384:25134,30388:25135,30391:29545,30392:25136,30393:25137,30394:25138,30399:15150,30402:25139,30403:18262,30406:19295,30408:12622,30410:12631,30413:25140,30418:25142,30422:25141,30423:17776,30427:16441,30428:23865,30430:25143,30431:19521,30433:25144,30435:13382,30436:18519,30437:25145,30439:25146,30442:25147,30446:19548,30450:19541,30452:17470,30456:16746,30459:25149,30462:15714,30465:15946,30468:25152,30471:25151,30472:25150,30473:18557,30475:13383,30476:14377,30491:25158,30494:25155,30495:16191,30496:19506,30500:25154,30501:25156,30502:25157,30505:25153,30519:25159,30520:25160,30522:17455,30524:13411,30528:17253,30534:31547,30535:25161,30554:25162,30555:25165,30561:16231,30563:17988,30565:25166,30566:19283,30568:25163,30571:25164,30585:25169,30590:25168,30591:25167,30603:25171,30606:25170,30609:25172,30622:25174,30624:25173,30629:19021,30636:15702,30637:20038,30640:25175,30643:17975,30646:25176,30649:25177,30651:25181,30652:25179,30653:25180,30655:25178,30663:25182,30669:25183,30679:25184,30682:25185,30683:19511,30684:25186,30690:19568,30691:25187,30693:17230,30695:18282,30697:13931,30701:17211,30702:25188,30703:13882,30707:16464,30716:25189,30722:14909,30732:25190,30738:25191,30740:14374,30741:14933,30752:25193,30753:31549,30757:17750,30758:14934,30759:13646,30770:19236,30772:18251,30778:17751,30783:14684,30789:25195,30798:31550,30813:15947,30820:31551,30827:20018,30828:14661,30831:14375,30834:18467,30836:25197,30842:31552,30844:25199,30849:14443,30854:25198,30855:17526,30860:25201,30861:13111,30862:25196,30865:18538,30867:12592,30869:14956,30871:20306,30874:25200,30883:25202,30887:19019,30889:16473,30890:25204,30895:25205,30901:25203,30906:13134,30908:25211,30910:25210,30913:15399,30917:25212,30918:25207,30922:25213,30923:25208,30928:18520,30929:25206,30932:25209,30938:25378,30951:25377,30952:19297,30956:25214,30959:12395,30964:25380,30973:25379,30977:15948,30983:25381,30990:16707,30993:25383,30994:25382,31001:25384,31014:25192,31018:25194,31019:25386,31020:25385,31024:31553,31034:15400,31036:20073,31038:15442,31040:25387,31041:14135,31047:13632,31048:13607,31049:15203,31056:19764,31059:25393,31061:25392,31062:16708,31063:25389,31066:25391,31069:15691,31070:16192,31071:25390,31072:25388,31074:18218,31077:15949,31080:18748,31085:14935,31095:17784,31098:25394,31103:25395,31104:25417,31105:13912,31108:20285,31109:16693,31114:25396,31117:12882,31118:17527,31119:18977,31124:31557,31131:31559,31133:25397,31142:13690,31143:25398,31146:25400,31150:25401,31152:18217,31155:25402,31161:25403,31162:25404,31165:13913,31166:12883,31167:17989,31168:15656,31169:15204,31177:25405,31179:15657,31185:12874,31186:18755,31189:25406,31192:18539,31199:16709,31201:25409,31203:25410,31204:18281,31206:16193,31207:25407,31209:17249,31212:25408,31216:15950,31227:12380,31232:13609,31240:25411,31243:17528,31245:25412,31246:16455,31252:19501,31255:18723,31256:25413,31257:25414,31258:17237,31260:20039,31263:25416,31264:25415,31278:15471,31281:25418,31282:12400,31287:25421,31291:25419,31292:12884,31293:14158,31294:25420,31295:14662,31296:14706,31298:19046,31299:25422,31302:19284,31305:25424,31309:16465,31310:12623,31311:12858,31312:12332,31319:25423,31329:25425,31330:25426,31331:15991,31337:25427,31339:13135,31344:25429,31348:14186,31350:13670,31353:25430,31354:13941,31357:25431,31359:16508,31361:17997,31363:16480,31364:14965,31368:25432,31378:17250,31379:16747,31381:25434,31382:25436,31383:25433,31384:25435,31391:14114,31401:25437,31402:14118,31406:13671,31407:19794,31408:25439,31414:25440,31418:12590,31423:25443,31427:13174,31428:25442,31429:25441,31431:25445,31432:25438,31434:25446,31435:20009,31437:25447,31439:25448,31441:31560,31442:21620,31443:25450,31445:25449,31449:25451,31450:25452,31452:20021,31453:25453,31455:28783,31456:15951,31457:25454,31458:25455,31459:15703,31461:17976,31462:25456,31463:31561,31466:17192,31467:31563,31469:25457,31471:17212,31472:25458,31478:13861,31480:20799,31481:17245,31482:15411,31487:13384,31490:25459,31492:25634,31494:25462,31496:13672,31498:25461,31499:25636,31503:25460,31505:15952,31512:25464,31513:25465,31515:17707,31518:25466,31520:13150,31525:16218,31526:18788,31528:25468,31532:17000,31539:25463,31541:25467,31542:25469,31545:14971,31557:25638,31558:18734,31560:18470,31561:17785,31563:13914,31564:25637,31565:25635,31567:18485,31568:25470,31569:17246,31570:17787,31572:17786,31574:14966,31581:25656,31589:25640,31591:25642,31596:25645,31598:25646,31600:25643,31601:25644,31604:25641,31605:25639,31610:25633,31622:19023,31623:12885,31627:25653,31629:25650,31631:25655,31634:25654,31636:18291,31637:19495,31639:15163,31640:25648,31641:25657,31642:25652,31644:25651,31645:25647,31646:31564,31647:25649,31649:13385,31658:17213,31661:16509,31665:18466,31668:25662,31672:18468,31680:16481,31681:25659,31684:18511,31686:25663,31687:19027,31689:17243,31691:25658,31692:25660,31695:25661,31709:25664,31712:15428,31716:17990,31717:25669,31718:25668,31721:25665,31725:20278,31731:25674,31734:25678,31735:25675,31744:25671,31751:25672,31757:25677,31761:25666,31762:21077,31763:25673,31764:25667,31767:25676,31775:25682,31777:13386,31779:25679,31783:25680,31786:25681,31787:25684,31799:25683,31800:18550,31805:25685,31806:20092,31807:19053,31808:25690,31811:25687,31820:25686,31821:16466,31823:25689,31824:25691,31828:25688,31830:25695,31832:25692,31839:25693,31840:25670,31844:25694,31845:25696,31852:25697,31859:19014,31861:25698,31870:19554,31873:13902,31874:14121,31875:25699,31881:18996,31883:16232,31885:19504,31888:25700,31890:20019,31893:18292,31895:16710,31896:18228,31899:15693,31903:12352,31905:25705,31906:25703,31908:25701,31909:13345,31911:15953,31912:25706,31915:25704,31917:25702,31918:25710,31921:25709,31922:25708,31923:25707,31929:25711,31933:25712,31934:16442,31936:25713,31938:25715,31941:25714,31946:14418,31950:16696,31954:25717,31958:17788,31960:25716,31964:25718,31966:18997,31967:16748,31968:14663,31970:25719,31975:20040,31983:25721,31986:25722,31988:25723,31990:25724,31992:15205,31994:25725,31995:14159,31998:13674,32000:13610,32002:25889,32004:19571,32005:14664,32006:25726,32010:25892,32011:19558,32013:18236,32016:18739,32020:15715,32021:25891,32023:15443,32024:14665,32025:15206,32026:13673,32027:18998,32028:25890,32032:16711,32033:19266,32034:14967,32043:15207,32044:17501,32046:25895,32047:20063,32048:14937,32050:25896,32051:16194,32053:25898,32057:15954,32058:14896,32063:25897,32066:15658,32067:14398,32068:16712,32069:25893,32070:25899,32072:31566,32075:25894,32076:14160,32078:25902,32079:25906,32080:14187,32086:25901,32091:25910,32092:31567,32094:14666,32097:19821,32098:12348,32099:25907,32102:13675,32104:25904,32110:25905,32113:17789,32114:25903,32115:25900,32117:13096,32118:16484,32121:14376,32125:25912,32137:25909,32143:25911,32147:25908,32153:14161,32154:16947,32155:25913,32156:16750,32159:25926,32160:31569,32162:25922,32163:25916,32171:25920,32172:15482,32173:12381,32174:25915,32175:25923,32176:25927,32177:14667,32178:19542,32180:17494,32181:25917,32183:31568,32184:25925,32186:25914,32187:17214,32189:25919,32190:12349,32191:19530,32199:25918,32202:13915,32203:18540,32207:16749,32209:20048,32210:15727,32213:25966,32214:31570,32216:25928,32218:16510,32220:25924,32221:25929,32222:25931,32224:17529,32225:25934,32228:25930,32232:19028,32233:13387,32236:19531,32239:12382,32242:25933,32244:20093,32251:25932,32257:12655,32260:18028,32261:25935,32265:25942,32266:25936,32267:25943,32274:25939,32283:18299,32286:15434,32287:25941,32289:25938,32290:25944,32291:25937,32294:15684,32299:19237,32302:15692,32305:25940,32306:25952,32309:25948,32311:25951,32313:25949,32314:25953,32315:25947,32317:25921,32318:16467,32321:18507,32323:25950,32326:25945,32330:16673,32331:14162,32333:15659,32338:31571,32340:16165,32341:16694,32342:25956,32345:25958,32346:25959,32349:25955,32350:25957,32358:25946,32359:25954,32361:25962,32362:25961,32365:19322,32368:14123,32377:25960,32379:25964,32380:25963,32381:25967,32383:25969,32386:15164,32387:25965,32392:25970,32393:25971,32394:31009,32396:25972,32398:25978,32399:17723,32400:25974,32402:25973,32403:25975,32404:25976,32406:25977,32411:25979,32412:25980,32566:13388,32568:25981,32570:25982,32581:26145,32583:31572,32588:26146,32589:26147,32590:26148,32592:26149,32593:26150,32596:26152,32597:26151,32600:26153,32607:26154,32608:26155,32615:26158,32616:26156,32617:26157,32618:14945,32619:14163,32622:17238,32624:18483,32626:15728,32629:18253,32631:18541,32632:26159,32633:22637,32642:26160,32643:26162,32645:19813,32646:26161,32647:26164,32648:26163,32650:19795,32652:26165,32654:18558,32660:26166,32666:26169,32669:26168,32670:26167,32673:31573,32675:26170,32676:14130,32680:16674,32681:13633,32686:26174,32687:26171,32690:26172,32694:26175,32696:26176,32697:26173,32701:12585,32705:12839,32709:26178,32710:26179,32714:26180,32716:19810,32722:15660,32724:26182,32725:26181,32736:16233,32737:26183,32742:26184,32745:26185,32747:13413,32752:13389,32755:26186,32761:26187,32763:19293,32764:19811,32768:19796,32769:20279,32771:14669,32772:26190,32773:15444,32774:26189,32779:26191,32780:15401,32784:16977,32786:26192,32789:14668,32791:19543,32792:26193,32793:26194,32796:26195,32801:26196,32808:26197,32819:15402,32822:19565,32827:26199,32829:17215,32831:26198,32838:26201,32842:26200,32850:26202,32854:16443,32856:26203,32858:26204,32862:19001,32863:26205,32865:16751,32866:26206,32872:26207,32879:20094,32880:26210,32882:26209,32883:26208,32884:17456,32886:26211,32887:16166,32889:26212,32893:26213,32894:20280,32895:26214,32900:26215,32901:26217,32902:26216,32903:18469,32905:18041,32907:20286,32908:18473,32915:26219,32918:15955,32920:18730,32922:26220,32923:26218,32925:13390,32929:14420,32930:15208,32933:18542,32937:14378,32938:19267,32940:26223,32941:26221,32943:14670,32945:14671,32946:12393,32948:14952,32954:18265,32963:12383,32964:26228,32966:17216,32972:18264,32974:16987,32982:26230,32985:26226,32986:26229,32987:26224,32989:26227,32990:19238,32993:14421,32996:12413,32997:26225,33007:26232,33009:26233,33012:17977,33016:13883,33020:26406,33021:18237,33026:15209,33029:13884,33030:16456,33031:20294,33032:19502,33033:26231,33034:16468,33050:13651,33051:26234,33059:26236,33065:26235,33071:26237,33073:17190,33075:18238,33081:17457,33086:26403,33094:26402,33099:26238,33102:16213,33104:18789,33105:26405,33107:26404,33108:14672,33109:20307,33119:26421,33125:26409,33126:26410,33131:15472,33134:26408,33136:14712,33137:26407,33140:26411,33144:17458,33145:18978,33146:16675,33151:16988,33152:26415,33154:26416,33155:26412,33160:26413,33162:26414,33167:14673,33171:26422,33173:26418,33178:18790,33180:19308,33181:18728,33184:26417,33187:26420,33188:26419,33192:19268,33193:26423,33200:26424,33203:16695,33205:26425,33208:26427,33210:26431,33213:26428,33214:26426,33215:18239,33216:26429,33218:26430,33222:12850,33224:26437,33225:26432,33229:26433,33233:26434,33235:16929,33240:26436,33241:26435,33242:26438,33247:26439,33248:26440,33251:16195,33253:12905,33255:26441,33256:20055,33258:15403,33261:15661,33267:15210,33268:17239,33274:26442,33275:26443,33276:12593,33278:26444,33281:26445,33282:26446,33285:26447,33287:26448,33288:13885,33289:23082,33290:26449,33292:16485,33293:26450,33294:15435,33296:26451,33298:20528,33302:26452,33303:19038,33304:13404,33307:16676,33308:15704,33310:18801,33311:15662,33321:26453,33322:14674,33323:26454,33324:18508,33326:26468,33331:26456,33333:16969,33334:18293,33335:14399,33336:26455,33337:16677,33344:26457,33351:17530,33368:26459,33369:26458,33370:26461,33373:26460,33375:26462,33378:26464,33380:26463,33382:13391,33384:26465,33386:26466,33387:26467,33390:14897,33391:20041,33393:26469,33394:16167,33398:12656,33399:26470,33400:26471,33406:26472,33419:12402,33421:26473,33426:26474,33433:18791,33437:15431,33439:26476,33445:13097,33446:12338,33451:26475,33452:26478,33453:18254,33455:16196,33457:12886,33459:19239,33464:14173,33465:13916,33467:26477,33469:12906,33477:13347,33489:12657,33490:26482,33491:20074,33492:16989,33495:18756,33497:26494,33499:12887,33500:26492,33502:26490,33503:26481,33505:26479,33507:26480,33509:15459,33510:13932,33511:17271,33515:18001,33521:12625,33523:26484,33524:26483,33529:26489,33530:26485,33531:26488,33537:31575,33538:19536,33539:26487,33540:12888,33541:13181,33542:26491,33545:26493,33550:14164,33558:26659,33559:26668,33560:26669,33564:12331,33571:26676,33576:12401,33579:26667,33583:26666,33585:26661,33586:26660,33588:26658,33589:26657,33590:17251,33592:17019,33593:26663,33600:26662,33605:26665,33609:16752,33610:14165,33615:12609,33616:26664,33618:14675,33624:16753,33634:31576,33651:26682,33653:26683,33655:12889,33659:12846,33660:26680,33663:31577,33669:26670,33671:26678,33673:26685,33674:26679,33678:26677,33683:26486,33686:26675,33690:26671,33694:13392,33695:26673,33696:26684,33698:26674,33704:26686,33706:26672,33707:18300,33713:19817,33717:26681,33725:26703,33729:26695,33733:16251,33735:31578,33738:13638,33740:13917,33742:26690,33747:12891,33750:15956,33752:26693,33756:14938,33759:17745,33760:26698,33769:19054,33771:26689,33775:12890,33776:14422,33777:18729,33778:26699,33780:26687,33782:31579,33783:26696,33787:26706,33789:26691,33795:26692,33796:17978,33799:26697,33803:26694,33804:19240,33805:26700,33806:12384,33811:26688,33824:26702,33826:26701,33833:18283,33834:26708,33836:26719,33841:13182,33845:26722,33848:26704,33852:26709,33853:19822,33862:26718,33864:31580,33865:19797,33870:20010,33879:17272,33883:13163,33889:18802,33890:26724,33891:17953,33894:12337,33897:26717,33899:26713,33900:16754,33901:26707,33902:26715,33903:26720,33905:18220,33909:12330,33911:26712,33913:26721,33914:18808,33922:26716,33924:26711,33931:15957,33936:15663,33940:15404,33945:19544,33948:18759,33951:26727,33953:26736,33965:26714,33970:13175,33972:31581,33976:15992,33977:26725,33979:26730,33980:16755,33983:26726,33985:26733,33988:17247,33990:26734,33993:19798,33994:26723,33995:13112,33997:26729,34000:26732,34001:19500,34006:26735,34009:26728,34010:26731,34012:31013,34028:19241,34030:20257,34036:26739,34044:26746,34047:26738,34048:15427,34054:26705,34065:19022,34067:19490,34068:26745,34069:26744,34071:26740,34072:26741,34074:12598,34079:26743,34081:26737,34086:17493,34092:26742,34093:12414,34101:16930,34109:19011,34112:26747,34113:26913,34115:18521,34120:26750,34121:15958,34122:15433,34123:26915,34126:13886,34131:31582,34133:26916,34135:18809,34136:26749,34137:31583,34138:26710,34147:26748,34152:20303,34153:17954,34154:18803,34155:31584,34157:26923,34167:26929,34174:26930,34176:26917,34180:18294,34183:26927,34184:26919,34186:26921,34192:26931,34193:26920,34196:26924,34199:12658,34201:18021,34203:26925,34204:26928,34212:26918,34214:16678,34216:26922,34217:15143,34218:16197,34219:14128,34220:19572,34222:19577,34223:15730,34224:31586,34233:26935,34234:26933,34241:20302,34249:26932,34253:19829,34255:26934,34256:26936,34261:26937,34268:26940,34269:26938,34276:17955,34277:26939,34281:18509,34282:26926,34295:15731,34297:26941,34298:26946,34299:16756,34302:26945,34306:26914,34310:26947,34311:16713,34314:26942,34315:26944,34323:26943,34326:23857,34327:23842,34330:26949,34338:26948,34349:19830,34351:25148,34352:26950,34367:26951,34381:26952,34382:14423,34384:13652,34388:26954,34389:20829,34394:13685,34396:20026,34398:13939,34399:26955,34407:26956,34411:17262,34417:26957,34425:18042,34427:12346,34442:12899,34443:26962,34444:26963,34451:26958,34453:15165,34467:26959,34468:18242,34473:26960,34474:26961,34475:26971,34479:26965,34480:26968,34486:26964,34500:26966,34502:26967,34503:15448,34505:26969,34507:17217,34509:14166,34510:13122,34516:26972,34521:13119,34523:26977,34526:26973,34527:26976,34532:18490,34537:26974,34540:26975,34541:18760,34542:18522,34543:26978,34552:17021,34553:26988,34555:26984,34558:12907,34560:26982,34562:19242,34563:26983,34566:26980,34568:26981,34569:26986,34570:26989,34573:26987,34577:26985,34578:26979,34584:17240,34586:26996,34588:19498,34597:26994,34601:26995,34612:26990,34615:26992,34619:26993,34623:26991,34633:16486,34635:20281,34636:27000,34638:27001,34643:27169,34645:16170,34647:27003,34649:27006,34655:26998,34656:26997,34659:27170,34662:12892,34664:27004,34666:27171,34670:27005,34676:27002,34678:17459,34680:26999,34687:18280,34690:27175,34701:19771,34719:27174,34722:27173,34731:27182,34735:27176,34739:27184,34746:19814,34747:27187,34749:27178,34752:27179,34756:27183,34758:27186,34759:27185,34763:27177,34768:27180,34770:27197,34784:27190,34799:27188,34802:27189,34806:27194,34807:27195,34809:13098,34811:13634,34814:27193,34821:27172,34823:31589,34829:27192,34830:27196,34831:27191,34833:27198,34837:27200,34838:27199,34849:27202,34850:27201,34851:26970,34855:27206,34865:27203,34870:27204,34873:27205,34875:27207,34880:14188,34882:27209,34884:27208,34886:15664,34892:14676,34893:24103,34898:27210,34899:15697,34903:13113,34905:27211,34907:12626,34909:15959,34910:27212,34913:14677,34914:27213,34915:12385,34920:18749,34923:27214,34928:16234,34930:27221,34933:27218,34935:17263,34941:27219,34942:27216,34943:13918,34945:27215,34946:27222,34952:14134,34955:16990,34957:27228,34962:27224,34966:16949,34967:27223,34969:27226,34974:27217,34978:27227,34980:27229,34987:18543,34990:27225,34992:27230,34993:27232,34996:14419,34997:27220,34999:12353,35007:27231,35009:14939,35010:20086,35011:27233,35012:27234,35013:16757,35023:20002,35028:27235,35029:19765,35032:27236,35033:27237,35036:19044,35037:27238,35039:14912,35041:20003,35048:27243,35058:27244,35059:15960,35060:27242,35061:31590,35064:19815,35065:27239,35068:27241,35069:16445,35070:16254,35074:27240,35076:27245,35079:18979,35082:27247,35084:27246,35088:13164,35090:19243,35091:27248,35100:31010,35101:27260,35102:27250,35109:27251,35114:27252,35115:27253,35126:27257,35128:27258,35131:27256,35137:27254,35139:27249,35140:27255,35148:27259,35149:28727,35158:12840,35166:27262,35167:13919,35168:27261,35172:27426,35174:27425,35178:27428,35181:27427,35183:27429,35186:15665,35188:27430,35191:27431,35198:27432,35199:16446,35201:19799,35203:27433,35206:18980,35207:18246,35208:27434,35210:27435,35211:14379,35215:13612,35219:27436,35222:15211,35223:18241,35224:27437,35226:13136,35233:27438,35238:27440,35239:19831,35241:27439,35242:16198,35244:27441,35247:27442,35250:27443,35251:13393,35258:27444,35261:27445,35263:27446,35264:27447,35282:13137,35290:27448,35292:27449,35293:27450,35299:12914,35302:16168,35303:27451,35316:27452,35320:27453,35328:14400,35330:17531,35331:27454,35336:14167,35338:16214,35340:27457,35342:17956,35344:27456,35346:31591,35347:14129,35350:27455,35351:17015,35352:13613,35355:27458,35357:27459,35359:15961,35363:14189,35365:27460,35370:19244,35373:16479,35377:13686,35379:19573,35380:16714,35382:27461,35383:31592,35386:16199,35387:17264,35388:15962,35393:27462,35398:27465,35400:27466,35408:14910,35409:16962,35410:27464,35412:15963,35413:18750,35419:27463,35422:15212,35424:12627,35426:27470,35427:14168,35430:15214,35433:15213,35435:20301,35436:27469,35437:27468,35438:16679,35440:13645,35441:20291,35442:13114,35443:15964,35449:31593,35452:27467,35458:27472,35460:27473,35461:27471,35463:14424,35465:19776,35468:15215,35469:18215,35473:27476,35475:16448,35477:17218,35480:19766,35482:27479,35486:14444,35488:16447,35489:27475,35491:27480,35492:14445,35493:27477,35494:27478,35495:31594,35496:27474,35500:16482,35501:17993,35504:17199,35506:12893,35513:18544,35516:13635,35518:31595,35519:17460,35522:27483,35524:27481,35527:17228,35531:16449,35532:13394,35533:27482,35535:16219,35538:20042,35542:20288,35546:27484,35547:27495,35548:17461,35550:27494,35551:31596,35552:27491,35553:27499,35554:27492,35556:27488,35558:17532,35559:27487,35563:27485,35565:19745,35566:15216,35569:27489,35571:27486,35574:31598,35575:27493,35576:15732,35578:14401,35582:17018,35584:19269,35585:12634,35586:12386,35588:17957,35591:27497,35596:27496,35598:18022,35600:27501,35604:27490,35606:27500,35607:27502,35609:14380,35610:27498,35611:14678,35613:15445,35616:27503,35617:19800,35622:27506,35624:27509,35627:27507,35628:18741,35635:27504,35641:13920,35646:27508,35649:27510,35657:27514,35660:27511,35662:27513,35663:27512,35667:31599,35670:27515,35672:15409,35674:27517,35675:27516,35676:18792,35679:27681,35686:14169,35691:27518,35692:27682,35695:27683,35696:13636,35697:26177,35698:15993,35700:27684,35703:14446,35709:27685,35711:31600,35712:27686,35715:15166,35722:23118,35724:27687,35726:27688,35728:15666,35730:27689,35731:27690,35734:27691,35737:27692,35738:27693,35895:17195,35898:27694,35903:27696,35905:27695,35910:17958,35912:27697,35914:19245,35916:27698,35918:27699,35920:27700,35925:27701,35930:18010,35937:15965,35938:27702,35946:14699,35947:20526,35948:27703,35960:27704,35961:18751,35962:27705,35964:27713,35970:27706,35973:27708,35977:27707,35978:27709,35980:19270,35981:27710,35982:27711,35988:27712,35992:27714,35997:13101,35998:17511,36000:18793,36001:14946,36002:14679,36007:18767,36008:12895,36009:18510,36010:27717,36011:13395,36012:16469,36013:27716,36014:27721,36015:17273,36016:19555,36018:27719,36019:27720,36020:13614,36022:27722,36023:18275,36024:16991,36027:18545,36028:17725,36029:27718,36031:19271,36032:12908,36033:27724,36034:20264,36035:17474,36036:20293,36039:15217,36040:27723,36042:16945,36045:27740,36046:16680,36049:18040,36051:18768,36058:27727,36059:15167,36060:15218,36062:15966,36064:18277,36066:14381,36067:27726,36068:27725,36070:18794,36074:15425,36077:17746,36080:31601,36084:31602,36090:27729,36091:27730,36092:14680,36093:27728,36100:27731,36101:27732,36103:27734,36104:16931,36106:27733,36107:13414,36109:27736,36111:27735,36112:27737,36114:31603,36115:27739,36116:27741,36118:27742,36196:16470,36198:15439,36199:27743,36203:13138,36205:27744,36208:16758,36209:27745,36211:27746,36212:18795,36214:31604,36215:13615,36225:27747,36229:17462,36234:12635,36249:27748,36259:15473,36264:16246,36275:16941,36282:27751,36286:27750,36290:27749,36299:27757,36300:27755,36303:27752,36310:27754,36314:27753,36315:27756,36317:13687,36319:27760,36321:16471,36323:27761,36328:14425,36330:27758,36331:27759,36335:20265,36339:17463,36341:16681,36348:27762,36351:27765,36360:27763,36361:27764,36362:19801,36367:17959,36368:27768,36381:27766,36382:27767,36383:27769,36394:27945,36400:27772,36404:27773,36405:27771,36418:27770,36420:17533,36423:27937,36424:27941,36425:27938,36426:27774,36428:27939,36432:27940,36437:27947,36441:27942,36447:16472,36448:27944,36451:27946,36452:27943,36466:27949,36468:15667,36470:27948,36476:27950,36481:27951,36484:27954,36485:27953,36487:27952,36490:27956,36491:27955,36493:19574,36497:27958,36499:27957,36500:27959,36505:27960,36513:27962,36522:27961,36523:16200,36524:27963,36527:13933,36528:27964,36529:27966,36542:27967,36549:27968,36550:27965,36552:27969,36554:15446,36555:27970,36556:13616,36557:14131,36559:31606,36562:14382,36571:27971,36575:18032,36578:17726,36579:27972,36587:27975,36600:15412,36603:27974,36604:27973,36605:14170,36606:27976,36611:13139,36613:27978,36617:14940,36618:27977,36620:27986,36626:27980,36627:27982,36628:19045,36629:27979,36633:27981,36635:27985,36636:27983,36637:13617,36639:27984,36646:27987,36649:18266,36650:20056,36655:15668,36659:27988,36664:19746,36665:27990,36667:27989,36670:27993,36671:19777,36674:27992,36676:13165,36677:27991,36678:27996,36681:27995,36684:27994,36685:17714,36686:27997,36695:27998,36700:27999,36703:14700,36705:14117,36706:28000,36707:28001,36708:28002,36763:16201,36764:28003,36766:15405,36767:28004,36771:28005,36775:21025,36776:20862,36781:28006,36782:25968,36783:28007,36784:17188,36785:16171,36786:18240,36791:28008,36794:19029,36795:17492,36796:14718,36799:17193,36802:12586,36804:19320,36805:16215,36814:14174,36817:13921,36820:19030,36826:28009,36834:28011,36837:28010,36838:12896,36841:18038,36842:28012,36843:18295,36845:17715,36847:28013,36848:15698,36852:28015,36855:19522,36856:28030,36857:28017,36858:28018,36861:17481,36864:16992,36865:16759,36867:17960,36869:28016,36870:13653,36875:28025,36877:28022,36878:28197,36879:17961,36880:17248,36881:28019,36883:17534,36884:17747,36885:28020,36886:28024,36887:16224,36889:18279,36890:17484,36893:16450,36894:28023,36895:16942,36896:16932,36897:28021,36898:12329,36899:20258,36903:28026,36910:16993,36913:15669,36914:16202,36917:28028,36918:28027,36920:12399,36921:28029,36924:18735,36926:28199,36929:18011,36930:16235,36933:17241,36935:13944,36937:28198,36938:19767,36939:12607,36941:19031,36942:12897,36943:28193,36944:28194,36945:28195,36946:28196,36947:17979,36948:17187,36949:12387,36950:28200,36952:28201,36953:29731,36956:16957,36958:28202,36960:12659,36961:16716,36963:14383,36965:19802,36967:31609,36968:28203,36969:17708,36973:16760,36974:15447,36975:28204,36978:28207,36981:15717,36982:28205,36983:16683,36984:16682,36986:12388,36988:20043,36989:28209,36991:18546,36992:28211,36993:28210,36994:28208,36995:25444,36996:13396,36999:28014,37001:28213,37002:28212,37007:28214,37009:19768,37027:18017,37030:19246,37032:28215,37034:15449,37039:28216,37041:28217,37045:28218,37048:17697,37057:12394,37066:14681,37070:20282,37083:28222,37086:31610,37089:14132,37090:28219,37092:28220,37096:18804,37101:13140,37109:19769,37111:13887,37117:17748,37122:28223,37138:28224,37141:31612,37145:28225,37159:31613,37165:17698,37168:28227,37170:28226,37193:18003,37194:28228,37195:15670,37196:15456,37197:18267,37198:17265,37202:15474,37204:16236,37206:28229,37208:28230,37218:16221,37219:28231,37221:28232,37225:28233,37226:19823,37228:15671,37234:28235,37235:28234,37237:14682,37239:14707,37240:15168,37250:28238,37255:15718,37257:28237,37259:28236,37261:17001,37264:14447,37266:16451,37271:18480,37276:15673,37282:28239,37284:15967,37290:28242,37291:28240,37295:28241,37300:28244,37301:28243,37304:15994,37306:28245,37312:28246,37313:28247,37318:18512,37319:14931,37320:15457,37321:28248,37323:28249,37324:20004,37325:15685,37326:19566,37327:20044,37328:28250,37329:13922,37334:28251,37335:31777,37336:17699,37338:31614,37339:28254,37340:13176,37341:16203,37342:31778,37343:28252,37345:28253,37347:17504,37348:31781,37349:31782,37350:19285,37351:13948,37357:31779,37358:31780,37365:28256,37366:28257,37372:28255,37375:28259,37382:31783,37386:31785,37389:18015,37390:13123,37392:31784,37393:28263,37396:28260,37397:28262,37406:28258,37417:28495,37420:28261,37428:20075,37431:14426,37433:31792,37434:31786,37436:31788,37439:28271,37440:31787,37444:17716,37445:28266,37448:28269,37449:28267,37451:28272,37454:31789,37456:28273,37457:31791,37463:28265,37465:31790,37466:28278,37467:12660,37470:28264,37474:18477,37476:28268,37478:15968,37479:31793,37489:14683,37495:31795,37496:31796,37502:19272,37504:13924,37507:15686,37509:17980,37512:31012,37521:16685,37523:28276,37525:28270,37526:28275,37528:19523,37530:17464,37531:28277,37532:28274,37543:31794,37549:16684,37559:28281,37561:28280,37583:28279,37584:31800,37586:19247,37587:31804,37589:31802,37591:31798,37593:31799,37600:31803,37604:15739,37607:31797,37609:28282,37610:19039,37613:12628,37618:18758,37619:17266,37624:13688,37625:31018,37626:28284,37627:31807,37628:14685,37631:31810,37634:31812,37638:15148,37647:28283,37648:16237,37656:16238,37657:28449,37658:28451,37661:31811,37662:31809,37664:15995,37665:31806,37666:28450,37667:28452,37669:31805,37670:13907,37672:18757,37675:15458,37676:20259,37678:28286,37679:14968,37682:20287,37685:28454,37690:28453,37691:28455,37700:28285,37704:31011,37707:18025,37709:17749,37716:17495,37718:28460,37719:31814,37723:17219,37724:28456,37728:28457,37740:14125,37742:28459,37744:31813,37749:14384,37756:28458,37758:15969,37772:13177,37780:28464,37782:14911,37783:16761,37786:17482,37796:31815,37799:13115,37804:28462,37805:28463,37806:17475,37808:28461,37817:28465,37827:28471,37830:31816,37832:28474,37840:28473,37841:17709,37846:28466,37847:28467,37848:28470,37853:28472,37854:31817,37857:13888,37860:28475,37861:28469,37864:28468,37880:31818,37891:28479,37895:28480,37904:28481,37907:28478,37908:28477,37912:15970,37913:17962,37914:28476,37921:28485,37931:28483,37937:31819,37941:28484,37942:28482,37944:17016,37946:28486,37953:28487,37956:28489,37957:31820,37960:31821,37969:13397,37970:28488,37971:19578,37978:28500,37979:28490,37982:28493,37984:28491,37986:28492,37994:28494,38000:28496,38005:28497,38007:28498,38012:28501,38013:28499,38014:28502,38015:28504,38017:28503,38263:17465,38272:19559,38274:28505,38275:16686,38279:28506,38281:19012,38282:28507,38283:13099,38287:12604,38289:13399,38290:31822,38291:13398,38292:28508,38294:28509,38296:28510,38297:28511,38304:28512,38306:13400,38307:13141,38308:14686,38309:18486,38311:28514,38312:28513,38317:28515,38322:12636,38329:28518,38331:28517,38332:28516,38334:28519,38339:28522,38343:12359,38346:28520,38348:28524,38349:28523,38356:28526,38357:28525,38358:28527,38360:17966,38364:28528,38369:28529,38370:28531,38373:28530,38428:18796,38433:28532,38440:28533,38442:14949,38446:28534,38447:28535,38450:19273,38459:16715,38463:12324,38464:16971,38466:28536,38468:18797,38475:28539,38476:28537,38477:14687,38479:28538,38480:14402,38491:19013,38492:28541,38493:28705,38494:28542,38495:28706,38498:12577,38499:16216,38500:15740,38501:13401,38502:28707,38506:18278,38508:28709,38512:12578,38514:28708,38515:17476,38517:20045,38518:17963,38519:28540,38520:20006,38522:14385,38525:19803,38533:13945,38534:20020,38536:14120,38538:16994,38539:26401,38541:28710,38542:13100,38543:16239,38548:13142,38549:28712,38551:28713,38552:28711,38553:14180,38555:14941,38556:15971,38557:31825,38560:12579,38563:20057,38567:28715,38568:28206,38570:28714,38575:31826,38576:28718,38577:28716,38578:28717,38580:28719,38582:28720,38583:20076,38584:28721,38585:28722,38587:16457,38588:18491,38592:16253,38593:13415,38596:19770,38597:12909,38598:15672,38599:14427,38601:28725,38603:28724,38604:15219,38605:28726,38606:28723,38609:15144,38613:28730,38614:27181,38617:21078,38619:16247,38620:28728,38626:20005,38627:18033,38632:12587,38634:16483,38635:15414,38640:18999,38642:12608,38646:20077,38647:19819,38649:28731,38651:17733,38656:15483,38660:28732,38662:28733,38663:16204,38664:28734,38666:20078,38669:28729,38670:28736,38671:28738,38673:28737,38675:28735,38678:28739,38681:28740,38684:16762,38686:12898,38692:28741,38695:19512,38698:28742,38704:28743,38706:20266,38707:31827,38712:23345,38713:28744,38715:31828,38717:28745,38718:28746,38722:28750,38723:31829,38724:28747,38726:28748,38728:28749,38729:28751,38733:31830,38735:31831,38737:31832,38738:16452,38741:31833,38742:19575,38745:16453,38748:28752,38750:18547,38752:28753,38753:29523,38754:19532,38756:28754,38758:28755,38760:28756,38761:13143,38763:28758,38765:16217,38769:28759,38772:14116,38777:28760,38778:28764,38780:28762,38785:28763,38788:13171,38789:28761,38790:28765,38795:28766,38797:12360,38799:28767,38800:28768,38808:15972,38812:28769,38816:13639,38819:28772,38822:28771,38824:28770,38827:27505,38829:19036,38835:28773,38836:28774,38851:28775,38854:28776,38856:28777,38859:28778,38867:13402,38876:28779,38893:28780,38894:18211,38898:28782,38899:12859,38901:28785,38902:28784,38907:12580,38911:13889,38913:19015,38914:17466,38915:14882,38917:14688,38918:15719,38920:16220,38924:28787,38927:28786,38928:19778,38929:13416,38930:18514,38931:18012,38935:16252,38936:20046,38938:14171,38945:28790,38948:28789,38956:19275,38957:17964,38964:12624,38967:28791,38968:28788,38971:18769,38972:19818,38973:28792,38982:28793,38987:28795,38988:17002,38989:13147,38990:13148,38991:28794,38996:13417,38997:14386,38999:31834,39000:13418,39003:17727,39006:20064,39013:31835,39015:14428,39019:28796,39023:28797,39024:28798,39025:28961,39027:28963,39028:28962,39080:18807,39082:28964,39087:28965,39089:28966,39094:28967,39107:28969,39108:28968,39110:28970,39131:18548,39132:26188,39135:16169,39138:13618,39145:28971,39147:28972,39149:21036,39150:23867,39151:18515,39154:12411,39156:12347,39164:15220,39165:19248,39166:15998,39171:28973,39173:19551,39177:28974,39178:19804,39180:12610,39184:15169,39186:28975,39187:12910,39188:28976,39192:28977,39197:28979,39198:28980,39200:28982,39201:28978,39204:28981,39207:31838,39208:13403,39212:28983,39214:28984,39229:28985,39230:28986,39234:28987,39237:28989,39241:28988,39243:28991,39244:28994,39248:28990,39249:28992,39250:28993,39253:28995,39255:13890,39318:15475,39319:28996,39320:28997,39321:14689,39326:31840,39333:28998,39336:13118,39340:18255,39341:28999,39342:29000,39347:17242,39348:18027,39356:29001,39361:18301,39364:16972,39365:12632,39366:13934,39368:13935,39376:17267,39377:29006,39378:13936,39381:12911,39384:29005,39387:29003,39389:29004,39391:29002,39394:29016,39405:29007,39406:29008,39409:29009,39410:29010,39416:29012,39419:29011,39423:15705,39425:29013,39429:29015,39438:13619,39439:29014,39442:16763,39443:14387,39449:29017,39464:16973,39467:29018,39472:17965,39479:29019,39486:29024,39488:29022,39490:29021,39491:29023,39493:29020,39501:29026,39502:31841,39509:29025,39511:29028,39514:13891,39515:29027,39519:29029,39522:29030,39524:29032,39525:29031,39529:29033,39530:29035,39531:29034,39592:14716,39597:29036,39600:29037,39608:13116,39612:29038,39616:29039,39620:16241,39631:29040,39633:29041,39635:29042,39636:29043,39640:14690,39641:31842,39644:31843,39646:29044,39647:29045,39650:29046,39651:29047,39654:29048,39658:18481,39659:29050,39661:18726,39662:29051,39663:29049,39665:29053,39668:29052,39671:29054,39675:29217,39686:29218,39704:29219,39706:29220,39711:29221,39714:29222,39715:29223,39717:29224,39719:29225,39720:29226,39721:29227,39722:29228,39726:29229,39727:29230,39729:23861,39730:29231,39739:25720,39740:13620,39745:13089,39746:14898,39747:29233,39748:29232,39749:19493,39757:29235,39758:29236,39759:29234,39761:29237,39764:19298,39768:29238,39770:13691,39791:20261,39794:31845,39796:29239,39797:31844,39811:29241,39822:12350,39823:31846,39825:29242,39826:18987,39827:29240,39830:29243,39831:29244,39839:29245,39840:29246,39848:29247,39850:19310,39851:15149,39853:14970,39854:16687,39857:31847,39860:29248,39865:29251,39867:31848,39872:29249,39878:29252,39881:14449,39882:29250,39887:29253,39889:29254,39890:29255,39892:29259,39894:15146,39899:16996,39905:29260,39906:29257,39907:29256,39908:29258,39912:14175,39920:29264,39921:29263,39922:29262,39925:12339,39936:31849,39940:29274,39942:29270,39944:29271,39945:29267,39946:29273,39948:29269,39949:13154,39952:20300,39954:29272,39955:29268,39956:29266,39957:29265,39963:29276,39969:29279,39972:29278,39973:29277,39981:18761,39982:29275,39983:12403,39984:29280,39986:29282,39993:13167,39994:29261,39995:12599,39998:29284,40006:29283,40007:29281,40008:17197,40018:19312,40023:20058,40026:29285,40032:29286,40039:29287,40054:29288,40056:29289,40165:17467,40167:29290,40169:18487,40171:29295,40172:29291,40176:29292,40179:19249,40180:19524,40182:18000,40195:29296,40198:29297,40199:17982,40200:29294,40201:29293,40206:12842,40210:29305,40213:29304,40219:12661,40223:29302,40227:29301,40230:29299,40232:13179,40234:29298,40235:15410,40236:12841,40251:14691,40254:29308,40255:29307,40257:29306,40260:29303,40262:29309,40264:29310,40272:29477,40273:29476,40281:29478,40284:12589,40285:29473,40286:29474,40288:14708,40289:19513,40292:29475,40299:31851,40300:19250,40303:29483,40304:31850,40306:29479,40314:29484,40327:29481,40329:29480,40335:14172,40346:29485,40356:29486,40361:29487,40363:29482,40367:29300,40370:29488,40372:17505,40376:29492,40378:29493,40379:29491,40385:29490,40386:29496,40388:29489,40390:29494,40399:29495,40403:29498,40409:29497,40422:29500,40429:29501,40431:29502,40434:20297,40440:29499,40441:17003,40442:14957,40445:29503,40473:31853,40474:29504,40475:29505,40478:29506,40565:29507,40568:14388,40569:29508,40573:29509,40575:15407,40577:29510,40584:29511,40587:29512,40588:29513,40593:29516,40594:29514,40595:20284,40597:29515,40599:20079,40605:29517,40607:20059,40613:29518,40614:18302,40617:29519,40618:29521,40621:29522,40632:29520,40633:14701,40634:19533,40635:19299,40636:22135,40638:23904,40639:19323,40644:12843,40652:29524,40653:13648,40654:29525,40655:29526,40656:29527,40657:31854,40658:14709,40660:29528,40664:24660,40665:19547,40667:16995,40668:29529,40669:29531,40670:29530,40672:29532,40677:29533,40680:29534,40687:29535,40692:29536,40694:29537,40695:29538,40697:29539,40699:29540,40700:29541,40701:29542,40711:29543,40712:29544,40718:17700,40723:14429,40725:29546,40736:16717,40737:29547,40748:29548,40763:18721,40766:29549,40778:29550,40779:25399,40782:27738,40783:28781,40786:29551,40788:29552,40799:29554,40800:29555,40801:29556,40802:20080,40803:29553,40806:29557,40807:29558,40810:29560,40812:29559,40818:29562,40822:29563,40823:29561,40845:20022,40853:29564,40860:29565,40861:25428,40864:29566,63785:31302,63964:31823,64014:31060,64015:31071,64016:31072,64017:31093,64018:31294,64019:31310,64020:31312,64021:31355,64022:31523,64023:31546,64024:31554,64025:31555,64026:31556,64027:31558,64028:31562,64029:31565,64030:31574,64031:31585,64032:31587,64033:31588,64034:31597,64035:31605,64036:31607,64037:31608,64038:31611,64039:31801,64040:31808,64041:31824,64042:31836,64043:31837,64044:31839,64045:31852,65281:8490,65282:31870,65283:8564,65284:8560,65285:8563,65286:8565,65287:31869,65288:8522,65289:8523,65290:8566,65291:8540,65292:8484,65293:8541,65294:8485,65295:8511,65296:9008,65297:9009,65298:9010,65299:9011,65300:9012,65301:9013,65302:9014,65303:9015,65304:9016,65305:9017,65306:8487,65307:8488,65308:8547,65309:8545,65310:8548,65311:8489,65312:8567,65313:9025,65314:9026,65315:9027,65316:9028,65317:9029,65318:9030,65319:9031,65320:9032,65321:9033,65322:9034,65323:9035,65324:9036,65325:9037,65326:9038,65327:9039,65328:9040,65329:9041,65330:9042,65331:9043,65332:9044,65333:9045,65334:9046,65335:9047,65336:9048,65337:9049,65338:9050,65339:8526,65340:8512,65341:8527,65342:8496,65343:8498,65344:8494,65345:9057,65346:9058,65347:9059,65348:9060,65349:9061,65350:9062,65351:9063,65352:9064,65353:9065,65354:9066,65355:9067,65356:9068,65357:9069,65358:9070,65359:9071,65360:9072,65361:9073,65362:9074,65363:9075,65364:9076,65365:9077,65366:9078,65367:9079,65368:9080,65369:9081,65370:9082,65371:8528,65372:8515,65373:8529,65374:8513,65504:8561,65505:8562,65506:8780,65507:8497,65508:31868,65509:8559}","module.exports={126:8759,161:8770,164:8816,166:8771,169:8813,170:8812,174:8814,175:8756,184:8753,186:8811,191:8772,192:10786,193:10785,194:10788,195:10794,196:10787,197:10793,198:10529,199:10798,200:10802,201:10801,202:10804,203:10803,204:10816,205:10815,206:10818,207:10817,209:10832,210:10834,211:10833,212:10836,213:10840,214:10835,216:10540,217:10851,218:10850,219:10853,220:10852,221:10866,222:10544,223:10574,224:11042,225:11041,226:11044,227:11050,228:11043,229:11049,230:10561,231:11054,232:11058,233:11057,234:11060,235:11059,236:11072,237:11071,238:11074,239:11073,240:10563,241:11088,242:11090,243:11089,244:11092,245:11096,246:11091,248:10572,249:11107,250:11106,251:11109,252:11108,253:11122,254:10576,255:11123,256:10791,257:11047,258:10789,259:11045,260:10792,261:11048,262:10795,263:11051,264:10796,265:11052,266:10799,267:11055,268:10797,269:11053,270:10800,271:11056,272:10530,273:10562,274:10807,275:11063,278:10806,279:11062,280:10808,281:11064,282:10805,283:11061,284:10810,285:11066,286:10811,287:11067,288:10813,289:11069,290:10812,292:10814,293:11070,294:10532,295:10564,296:10823,297:11079,298:10821,299:11077,302:10822,303:11078,304:10820,305:10565,306:10534,307:10566,308:10824,309:11080,310:10825,311:11081,312:10567,313:10826,314:11082,315:10828,316:11084,317:10827,318:11083,319:10537,320:10569,321:10536,322:10568,323:10829,324:11085,325:10831,326:11087,327:10830,328:11086,329:10570,330:10539,331:10571,332:10839,333:11095,336:10838,337:11094,338:10541,339:10573,340:10841,341:11097,342:10843,343:11099,344:10842,345:11098,346:10844,347:11100,348:10845,349:11101,350:10847,351:11103,352:10846,353:11102,354:10849,355:11105,356:10848,357:11104,358:10543,359:10575,360:10860,361:11116,362:10857,363:11113,364:10854,365:11110,366:10859,367:11115,368:10856,369:11112,370:10858,371:11114,372:10865,373:11121,374:10868,375:11124,376:10867,377:10869,378:11125,379:10871,380:11127,381:10870,382:11126,461:10790,462:11046,463:10819,464:11075,465:10837,466:11093,467:10855,468:11111,469:10864,470:11120,471:10861,472:11117,473:10863,474:11119,475:10862,476:11118,501:11065,711:8752,728:8751,729:8754,730:8758,731:8757,733:8755,900:8760,901:8761,902:9825,904:9826,905:9827,906:9828,908:9831,910:9833,911:9836,912:9846,938:9829,939:9834,940:9841,941:9842,942:9843,943:9844,944:9851,962:9848,970:9845,971:9850,972:9847,973:9849,974:9852,1026:10050,1027:10051,1028:10052,1029:10053,1030:10054,1031:10055,1032:10056,1033:10057,1034:10058,1035:10059,1036:10060,1038:10061,1039:10062,1106:10098,1107:10099,1108:10100,1109:10101,1110:10102,1111:10103,1112:10104,1113:10105,1114:10106,1115:10107,1116:10108,1118:10109,1119:10110,8214:8514,8470:8817,8482:8815,8722:8541,19970:12321,19972:12322,19973:12323,19980:12324,19986:12325,19999:12326,20003:12327,20004:12328,20008:12329,20011:12330,20014:12331,20015:12332,20016:12333,20021:12334,20032:12335,20033:12336,20036:12337,20039:12338,20049:12339,20058:12340,20060:12341,20067:12342,20072:12343,20073:12344,20084:12345,20085:12346,20089:12347,20095:12348,20109:12349,20118:12350,20119:12351,20125:12352,20143:12353,20153:12354,20163:12355,20176:12356,20186:12357,20187:12358,20192:12359,20193:12360,20194:12361,20200:12362,20207:12363,20209:12364,20211:12365,20213:12366,20221:12367,20222:12368,20223:12369,20224:12370,20226:12371,20227:12372,20232:12373,20235:12374,20236:12375,20242:12376,20245:12377,20246:12378,20247:12379,20249:12380,20270:12381,20273:12382,20275:12384,20277:12385,20279:12386,20281:12387,20283:12388,20286:12389,20288:12390,20290:12391,20296:12392,20297:12393,20299:12394,20300:12395,20306:12396,20308:12397,20310:12398,20312:12399,20319:12400,20320:12383,20323:12401,20330:12402,20332:12403,20334:12404,20337:12405,20343:12406,20344:12407,20345:12408,20346:12409,20349:12410,20350:12411,20353:12412,20354:12413,20356:12414,20357:12577,20361:12578,20362:12579,20364:12580,20366:12581,20368:12582,20370:12583,20371:12584,20372:12585,20375:12586,20377:12587,20378:12588,20382:12589,20383:12590,20402:12591,20407:12592,20409:12593,20411:12594,20412:12595,20413:12596,20414:12597,20416:12598,20417:12599,20421:12600,20422:12601,20424:12602,20425:12603,20427:12604,20428:12605,20429:12606,20431:12607,20434:12608,20444:12609,20448:12610,20450:12611,20464:12612,20466:12613,20476:12614,20477:12615,20479:12616,20480:12617,20481:12618,20484:12619,20487:12620,20490:12621,20492:12622,20494:12623,20496:12624,20499:12625,20503:12626,20504:12627,20507:12628,20508:12629,20509:12630,20510:12631,20514:12632,20519:12633,20526:12634,20528:12635,20530:12636,20531:12637,20533:12638,20539:12662,20544:12639,20545:12640,20546:12641,20549:12642,20550:12643,20554:12644,20556:12645,20558:12646,20561:12647,20562:12648,20563:12649,20567:12650,20569:12651,20575:12652,20576:12653,20578:12654,20579:12655,20582:12656,20583:12657,20586:12658,20589:12659,20592:12660,20593:12661,20609:12663,20611:12664,20612:12665,20614:12666,20618:12667,20622:12668,20623:12669,20624:12670,20626:12833,20627:12834,20628:12835,20630:12836,20635:12837,20636:12838,20638:12839,20639:12840,20640:12841,20641:12842,20642:12843,20650:12844,20655:12845,20656:12846,20665:12847,20666:12848,20669:12849,20672:12850,20675:12851,20676:12852,20679:12853,20684:12854,20686:12855,20688:12856,20691:12857,20692:12858,20696:12859,20700:12860,20701:12861,20703:12862,20706:12863,20708:12864,20710:12865,20712:12866,20713:12867,20719:12868,20721:12869,20722:12881,20726:12870,20730:12871,20734:12872,20739:12873,20742:12874,20743:12875,20744:12876,20747:12877,20748:12878,20749:12879,20750:12880,20752:12882,20759:12883,20761:12884,20763:12885,20764:12886,20765:12887,20766:12888,20771:12889,20775:12890,20776:12891,20780:12892,20781:12893,20783:12894,20785:12895,20787:12896,20788:12897,20789:12898,20792:12899,20793:12900,20802:12901,20810:12902,20815:12903,20819:12904,20821:12905,20823:12906,20824:12907,20831:12908,20836:12909,20838:12910,20862:12911,20867:12912,20868:12913,20875:12914,20878:12915,20888:12916,20893:12917,20897:12918,20899:12919,20909:12920,20920:12921,20922:12922,20924:12923,20926:12924,20927:12925,20930:12926,20936:13089,20943:13090,20945:13091,20946:13092,20947:13093,20949:13094,20952:13095,20958:13096,20962:13097,20965:13098,20974:13099,20978:13100,20979:13101,20980:13102,20983:13103,20993:13104,20994:13105,20997:13106,21010:13107,21011:13108,21013:13109,21014:13110,21016:13111,21026:13112,21032:13113,21041:13114,21042:13115,21045:13116,21052:13117,21061:13118,21065:13119,21077:13120,21079:13121,21080:13122,21082:13123,21084:13124,21087:13125,21088:13126,21089:13127,21094:13128,21102:13129,21111:13130,21112:13131,21113:13132,21120:13133,21122:13134,21125:13135,21130:13136,21132:13137,21139:13138,21141:13139,21142:13140,21143:13141,21144:13142,21146:13143,21148:13144,21156:13145,21157:13146,21158:13147,21159:13148,21167:13149,21168:13150,21174:13151,21175:13152,21176:13153,21178:13154,21179:13155,21181:13156,21184:13157,21188:13158,21190:13159,21192:13160,21196:13161,21199:13162,21201:13163,21204:13164,21206:13165,21211:13166,21212:13167,21217:13168,21221:13169,21224:13170,21225:13171,21226:13172,21228:13173,21232:13174,21233:13175,21236:13176,21238:13177,21239:13178,21248:13179,21251:13180,21258:13181,21259:13182,21260:13345,21265:13346,21267:13347,21272:13348,21275:13349,21276:13350,21278:13351,21279:13352,21285:13353,21287:13354,21288:13355,21289:13356,21291:13357,21292:13358,21293:13359,21296:13360,21298:13361,21301:13362,21308:13363,21309:13364,21310:13365,21314:13366,21323:13368,21324:13367,21337:13369,21339:13370,21345:13371,21347:13372,21349:13373,21356:13374,21357:13375,21362:13376,21369:13377,21374:13378,21379:13379,21383:13380,21384:13381,21390:13382,21395:13383,21396:13384,21401:13385,21405:13386,21409:13387,21412:13388,21418:13389,21419:13390,21423:13391,21426:13392,21428:13393,21429:13394,21431:13395,21432:13396,21434:13397,21437:13398,21440:13399,21445:13400,21455:13401,21458:13402,21459:13403,21461:13404,21466:13405,21469:13406,21470:13407,21472:13408,21478:13409,21479:13410,21493:13411,21506:13412,21523:13413,21530:13414,21537:13415,21543:13416,21544:13417,21546:13418,21551:13419,21553:13420,21556:13421,21557:13422,21571:13423,21572:13424,21575:13425,21581:13426,21583:13427,21598:13428,21602:13429,21604:13430,21606:13431,21607:13432,21609:13433,21611:13434,21613:13435,21614:13436,21620:13437,21631:13438,21633:13601,21635:13602,21637:13603,21640:13604,21641:13605,21645:13606,21649:13607,21653:13608,21654:13609,21660:13610,21663:13611,21665:13612,21670:13613,21671:13614,21673:13615,21674:13616,21677:13617,21678:13618,21681:13619,21687:13620,21689:13621,21690:13622,21691:13623,21695:13624,21702:13625,21706:13626,21709:13627,21710:13628,21728:13629,21738:13630,21740:13631,21743:13632,21750:13633,21756:13634,21758:13635,21759:13636,21760:13637,21761:13638,21765:13639,21768:13640,21769:13641,21772:13642,21773:13643,21774:13644,21781:13645,21802:13646,21803:13647,21810:13648,21813:13649,21814:13650,21819:13651,21820:13652,21821:13653,21825:13654,21831:13655,21833:13656,21834:13657,21837:13658,21840:13659,21841:13660,21848:13661,21850:13662,21851:13663,21854:13664,21856:13665,21857:13666,21860:13667,21862:13668,21887:13669,21889:13670,21890:13671,21894:13672,21896:13673,21902:13674,21903:13675,21905:13676,21906:13677,21907:13678,21908:13679,21911:13680,21923:13681,21924:13682,21933:13683,21938:13684,21951:13685,21953:13686,21955:13687,21958:13688,21961:13689,21963:13690,21964:13691,21966:13692,21969:13693,21970:13694,21971:13857,21975:13858,21976:13859,21979:13860,21982:13861,21986:13862,21993:13863,22006:13864,22015:13865,22021:13866,22024:13867,22026:13868,22029:13869,22030:13870,22031:13871,22032:13872,22033:13873,22034:13874,22041:13875,22060:13876,22064:13877,22067:13878,22069:13879,22071:13880,22073:13881,22075:13882,22076:13883,22077:13884,22079:13885,22080:13886,22081:13887,22083:13888,22084:13889,22086:13890,22089:13891,22091:13892,22093:13893,22095:13894,22100:13895,22110:13896,22112:13897,22113:13898,22114:13899,22115:13900,22118:13901,22121:13902,22125:13903,22127:13904,22129:13905,22130:13906,22133:13907,22148:13908,22149:13909,22152:13910,22155:13911,22156:13912,22165:13913,22169:13914,22170:13915,22173:13916,22174:13917,22175:13918,22182:13919,22183:13920,22184:13921,22185:13922,22187:13923,22188:13924,22189:13925,22193:13926,22195:13927,22199:13928,22206:13929,22213:13930,22217:13931,22218:13932,22219:13933,22220:13936,22221:13937,22223:13934,22224:13935,22233:13938,22236:13939,22237:13940,22239:13941,22241:13942,22244:13943,22245:13944,22246:13945,22247:13946,22248:13947,22251:13949,22253:13950,22257:13948,22262:14113,22263:14114,22273:14115,22274:14116,22279:14117,22282:14118,22284:14119,22289:14120,22293:14121,22298:14122,22299:14123,22301:14124,22304:14125,22306:14126,22307:14127,22308:14128,22309:14129,22313:14130,22314:14131,22316:14132,22318:14133,22319:14134,22323:14135,22324:14136,22333:14137,22334:14138,22335:14139,22341:14140,22342:14141,22348:14142,22349:14143,22354:14144,22370:14145,22373:14146,22375:14147,22376:14148,22379:14149,22381:14150,22382:14151,22383:14152,22384:14153,22385:14154,22387:14155,22388:14156,22389:14157,22391:14158,22393:14159,22394:14160,22395:14161,22396:14162,22398:14163,22401:14164,22403:14165,22412:14166,22420:14167,22421:14176,22423:14168,22425:14169,22426:14170,22428:14171,22429:14172,22430:14173,22431:14174,22433:14175,22439:14177,22440:14178,22441:14179,22444:14180,22456:14181,22461:14182,22471:14183,22472:14184,22476:14185,22479:14186,22485:14187,22493:14188,22494:14189,22497:14206,22500:14190,22502:14191,22503:14192,22505:14193,22509:14194,22512:14195,22517:14196,22518:14197,22520:14198,22525:14199,22526:14200,22527:14201,22531:14202,22532:14203,22536:14204,22537:14205,22540:14369,22541:14370,22555:14371,22558:14372,22559:14373,22560:14374,22566:14375,22567:14376,22573:14377,22578:14378,22585:14379,22591:14380,22601:14381,22604:14382,22605:14383,22607:14384,22608:14385,22613:14386,22623:14387,22625:14388,22628:14389,22631:14390,22632:14391,22648:14392,22652:14393,22655:14394,22656:14395,22657:14396,22663:14397,22664:14398,22665:14399,22666:14400,22668:14401,22669:14402,22671:14403,22672:14404,22676:14405,22678:14406,22685:14407,22688:14408,22689:14409,22690:14410,22694:14411,22697:14412,22705:14413,22706:14414,22716:14416,22722:14417,22724:14415,22728:14418,22733:14419,22734:14420,22736:14421,22738:14422,22740:14423,22742:14424,22746:14425,22749:14426,22753:14427,22754:14428,22761:14429,22771:14430,22789:14431,22790:14432,22795:14433,22796:14434,22802:14435,22803:14436,22804:14437,22813:14439,22817:14440,22819:14441,22820:14442,22824:14443,22831:14444,22832:14445,22835:14446,22837:14447,22838:14448,22847:14449,22851:14450,22854:14451,22866:14452,22867:14453,22873:14454,22875:14455,22877:14456,22878:14457,22879:14458,22881:14459,22883:14460,22891:14461,22893:14462,22895:14625,22898:14626,22901:14627,22902:14628,22905:14629,22907:14630,22908:14631,22923:14632,22924:14633,22926:14634,22930:14635,22933:14636,22935:14637,22943:14638,22948:14639,22951:14640,22957:14641,22958:14642,22959:14643,22960:14644,22963:14645,22967:14646,22970:14647,22972:14648,22977:14649,22979:14650,22980:14651,22984:14652,22986:14653,22989:14654,22994:14655,23005:14656,23006:14657,23007:14658,23011:14659,23012:14660,23015:14661,23022:14662,23023:14663,23025:14664,23026:14665,23028:14666,23031:14667,23040:14668,23044:14669,23052:14670,23053:14671,23054:14672,23058:14673,23059:14674,23070:14675,23075:14676,23076:14677,23079:14678,23080:14679,23082:14680,23085:14681,23088:14682,23108:14683,23109:14684,23111:14685,23112:14686,23116:14687,23120:14688,23125:14689,23134:14690,23139:14691,23141:14692,23143:14693,23149:14694,23159:14695,23162:14696,23163:14697,23166:14698,23179:14699,23184:14700,23187:14701,23190:14702,23193:14703,23196:14704,23198:14705,23199:14706,23200:14707,23202:14708,23207:14709,23212:14710,23217:14711,23218:14712,23219:14713,23221:14714,23224:14715,23226:14716,23227:14717,23231:14718,23236:14881,23238:14882,23240:14883,23247:14884,23258:14885,23260:14886,23264:14887,23269:14888,23274:14889,23278:14890,23285:14891,23286:14892,23293:14893,23296:14894,23297:14895,23304:14896,23319:14897,23321:14899,23323:14900,23325:14901,23329:14902,23333:14903,23341:14904,23348:14898,23352:14905,23361:14906,23371:14907,23372:14908,23378:14909,23382:14910,23390:14911,23400:14912,23406:14913,23407:14914,23420:14915,23421:14916,23422:14917,23423:14918,23425:14919,23428:14920,23430:14921,23434:14922,23438:14923,23440:14924,23441:14925,23443:14926,23444:14927,23446:14928,23464:14929,23465:14930,23468:14931,23469:14932,23471:14933,23473:14934,23474:14935,23479:14936,23482:14937,23484:14938,23488:14939,23489:14940,23501:14941,23503:14942,23510:14943,23511:14944,23512:14945,23513:14946,23514:14947,23520:14948,23535:14949,23537:14950,23540:14951,23549:14952,23564:14953,23575:14954,23582:14955,23583:14956,23587:14957,23590:14958,23593:14959,23595:14960,23596:14961,23598:14962,23600:14963,23602:14964,23605:14965,23606:14966,23641:14967,23642:14968,23644:14969,23650:14970,23651:14971,23655:14972,23656:14973,23657:14974,23661:15137,23664:15138,23668:15139,23669:15140,23674:15141,23675:15142,23676:15143,23677:15144,23687:15145,23688:15146,23690:15147,23695:15148,23698:15149,23709:15150,23711:15151,23712:15152,23714:15153,23715:15154,23718:15155,23722:15156,23730:15157,23732:15158,23733:15159,23738:15160,23753:15161,23755:15162,23762:15163,23767:15165,23773:15164,23790:15166,23793:15167,23794:15168,23796:15169,23809:15170,23814:15171,23821:15172,23826:15173,23843:15175,23844:15176,23846:15177,23847:15178,23851:15174,23857:15179,23860:15180,23865:15181,23869:15182,23871:15183,23874:15184,23875:15185,23878:15186,23880:15187,23882:15191,23889:15189,23893:15188,23897:15190,23903:15192,23904:15193,23905:15194,23906:15195,23908:15196,23914:15197,23917:15198,23920:15199,23929:15200,23930:15201,23934:15202,23935:15203,23937:15204,23939:15205,23944:15206,23946:15207,23954:15208,23955:15209,23956:15210,23957:15211,23961:15212,23963:15213,23967:15214,23968:15215,23975:15216,23979:15217,23984:15218,23986:26228,23988:15219,23992:15220,23993:15221,24003:15222,24007:15223,24011:15224,24014:15226,24016:15225,24024:15227,24025:15228,24032:15229,24036:15230,24041:15393,24056:15394,24057:15395,24064:15396,24071:15397,24077:15398,24082:15399,24084:15400,24085:15401,24088:15402,24095:15403,24096:15404,24104:15406,24110:15405,24114:15407,24117:15408,24126:15409,24137:15412,24139:15410,24144:15411,24145:15413,24150:15414,24152:15415,24155:15416,24156:15417,24158:15418,24168:15419,24170:15420,24171:15421,24172:15422,24173:15423,24174:15424,24176:15425,24192:15426,24203:15427,24206:15428,24226:15429,24228:15430,24229:15431,24232:15432,24234:15433,24236:15434,24241:15435,24243:15436,24253:15437,24254:15438,24255:15439,24262:15440,24267:15442,24268:15441,24270:15443,24273:15444,24274:15445,24276:15446,24277:15447,24284:15448,24286:15449,24293:15450,24299:15451,24322:15452,24326:15453,24327:15454,24328:15455,24334:15456,24345:15457,24348:15458,24349:15459,24353:15460,24354:15461,24355:15462,24356:15463,24360:15464,24363:15465,24364:15466,24366:15467,24368:15468,24372:15469,24374:15470,24379:15471,24381:15472,24383:15473,24384:15474,24388:15475,24389:15476,24391:15477,24397:15478,24400:15479,24404:15480,24408:15481,24411:15482,24416:15483,24419:15484,24420:15485,24423:15486,24431:15649,24434:15650,24436:15651,24437:15652,24440:15653,24442:15654,24445:15655,24446:15656,24457:15657,24461:15658,24463:15659,24470:15660,24476:15661,24477:15662,24482:15663,24484:15666,24487:15664,24491:15665,24492:15667,24495:15668,24496:15669,24497:15670,24504:15671,24516:15672,24519:15673,24520:15674,24521:15675,24523:15676,24528:15677,24529:15678,24530:15679,24531:15680,24532:15681,24542:15682,24545:15683,24546:15684,24552:15685,24553:15686,24554:15687,24556:15688,24557:15689,24558:15690,24559:15691,24562:15692,24563:15693,24566:15694,24570:15695,24572:15696,24583:15697,24586:15698,24589:15699,24595:15700,24596:15701,24599:15702,24600:15703,24602:15704,24607:15705,24612:15706,24621:15707,24627:15708,24629:15709,24640:15710,24647:15711,24648:15712,24649:15713,24652:15714,24657:15715,24660:15716,24662:15717,24663:15718,24669:15719,24673:15720,24679:15721,24689:15722,24702:15723,24703:15724,24706:15725,24710:15726,24712:15727,24714:15728,24718:15729,24721:15730,24723:15731,24725:15732,24728:15733,24733:15734,24734:15735,24738:15736,24740:15737,24741:15738,24744:15739,24752:15740,24753:15741,24759:15742,24763:15905,24766:15906,24770:15907,24772:15908,24776:15909,24777:15910,24778:15911,24779:15912,24782:15913,24783:15914,24788:15915,24789:15916,24793:15917,24795:15918,24797:15919,24798:15920,24802:15921,24805:15922,24818:15923,24821:15924,24824:15925,24828:15926,24829:15927,24834:15928,24839:15929,24842:15930,24844:15931,24848:15932,24849:15933,24850:15934,24851:15935,24852:15936,24854:15937,24855:15938,24857:15939,24860:15940,24862:15941,24866:15942,24874:15943,24875:15944,24880:15945,24881:15946,24885:15947,24886:15948,24887:15949,24889:15950,24897:15951,24901:15952,24902:15953,24905:15954,24926:15955,24928:15956,24940:15957,24946:15958,24952:15959,24955:15960,24956:15961,24959:15962,24960:15963,24961:15964,24963:15965,24964:15966,24971:15967,24973:15968,24978:15969,24979:15970,24983:15971,24984:15972,24988:15973,24989:15974,24991:15975,24992:15976,24997:15977,25000:15978,25002:15979,25005:15980,25016:15981,25017:15982,25020:15983,25024:15984,25025:15985,25026:15986,25038:15987,25039:15988,25045:15989,25052:15990,25053:15991,25054:15992,25055:15993,25057:15994,25058:15995,25061:15998,25063:15996,25065:15997,25068:16161,25069:16162,25071:16163,25089:16164,25091:16165,25092:16166,25095:16167,25107:16168,25109:16169,25116:16170,25120:16171,25122:16172,25123:16173,25127:16174,25129:16175,25131:16176,25145:16177,25149:16178,25154:16179,25155:16180,25156:16181,25158:16182,25164:16183,25168:16184,25169:16185,25170:16186,25172:16187,25174:16188,25178:16189,25180:16190,25188:16191,25197:16192,25199:16193,25203:16194,25210:16195,25213:16196,25229:16197,25230:16198,25231:16199,25232:16200,25254:16201,25256:16202,25267:16203,25270:16204,25271:16205,25274:16206,25278:16207,25279:16208,25284:16209,25294:16210,25301:16211,25302:16212,25306:16213,25322:16214,25330:16215,25332:16216,25340:16217,25341:16218,25347:16219,25348:16220,25354:16221,25355:16222,25357:16223,25360:16224,25363:16225,25366:16226,25368:16227,25385:16228,25386:16229,25389:16230,25397:16231,25398:16232,25401:16233,25404:16234,25409:16235,25410:16236,25411:16237,25412:16238,25414:16239,25418:16240,25419:16241,25422:16242,25426:16243,25427:16244,25428:16245,25432:16246,25435:16247,25445:16248,25446:16249,25452:16250,25453:16251,25457:16252,25460:16253,25461:16254,25464:16417,25468:16418,25469:16419,25471:16420,25474:16421,25476:16422,25479:16423,25482:16424,25488:16425,25492:16426,25493:16427,25497:16428,25498:16429,25502:16430,25508:16431,25510:16432,25517:16433,25518:16434,25519:16435,25533:16436,25537:16437,25541:16438,25544:16439,25550:16440,25553:16441,25555:16442,25556:16443,25557:16444,25564:16445,25568:16446,25573:16447,25578:16448,25580:16449,25586:16450,25587:16451,25589:16452,25592:16453,25593:16454,25609:16455,25610:16456,25616:16457,25618:16458,25620:16459,25624:16460,25630:16461,25632:16462,25634:16463,25636:16464,25637:16465,25641:16466,25642:16467,25647:16468,25648:16469,25653:16470,25661:16471,25663:16472,25675:16473,25679:16474,25681:16475,25682:16476,25683:16477,25684:16478,25690:16479,25691:16480,25692:16481,25693:16482,25695:16483,25696:16484,25697:16485,25699:16486,25709:16487,25715:16488,25716:16489,25723:16490,25725:16491,25733:16492,25735:16493,25743:16494,25744:16495,25745:16496,25752:16497,25753:16498,25755:16499,25757:16500,25759:16501,25761:16502,25763:16503,25766:16504,25768:16505,25772:16506,25779:16507,25789:16508,25790:16509,25791:16510,25796:16673,25801:16674,25802:16675,25803:16676,25804:16677,25806:16678,25808:16679,25809:16680,25813:16681,25815:16682,25828:16683,25829:16684,25833:16685,25834:16686,25837:16687,25840:16688,25845:16689,25847:16690,25851:16691,25855:16692,25857:16693,25860:16694,25864:16695,25865:16696,25866:16697,25871:16698,25875:16699,25876:16700,25878:16701,25881:16702,25883:16703,25886:16704,25887:16705,25890:16706,25894:16707,25897:16708,25902:16709,25905:16710,25914:16711,25916:16712,25917:16713,25923:16714,25927:16715,25929:16716,25936:16717,25938:16718,25940:16719,25951:16720,25952:16721,25959:16722,25963:16723,25978:16724,25981:16725,25985:16726,25989:16727,25994:16728,26002:16729,26005:16730,26008:16731,26013:16732,26016:16733,26019:16734,26022:16735,26030:16736,26034:16737,26035:16738,26036:16739,26047:16740,26050:16741,26056:16742,26057:16743,26062:16744,26064:16745,26068:16746,26070:16747,26072:16748,26079:16749,26096:16750,26098:16751,26100:16752,26101:16753,26105:16754,26110:16755,26111:16756,26112:16757,26116:16758,26120:16759,26121:16760,26125:16761,26129:16762,26130:16763,26133:16764,26134:16765,26141:16766,26142:16929,26145:16930,26146:16931,26147:16932,26148:16933,26150:16934,26153:16935,26154:16936,26155:16937,26156:16938,26158:16939,26160:16940,26161:16941,26163:16942,26167:16944,26169:16943,26176:16945,26181:16946,26182:16947,26186:16948,26188:16949,26190:16951,26193:16950,26199:16952,26200:16953,26201:16954,26203:16955,26204:16956,26208:16957,26209:16958,26218:16960,26219:16961,26220:16962,26227:16964,26229:16965,26231:16967,26232:16968,26233:16969,26235:16970,26236:16972,26238:16963,26239:16966,26240:16971,26251:16973,26252:16974,26253:16975,26256:16976,26258:16977,26265:16978,26266:16979,26267:16980,26268:16981,26271:16982,26272:16983,26276:16984,26285:16985,26289:16986,26290:16987,26293:16988,26299:16989,26303:16990,26304:16991,26306:16992,26307:16993,26312:16994,26316:16995,26318:16996,26319:16997,26324:16998,26331:16999,26335:17000,26344:17001,26347:17002,26348:17003,26350:17004,26362:17005,26363:16959,26373:17006,26375:17007,26382:17008,26387:17009,26393:17010,26396:17011,26400:17012,26402:17013,26419:17014,26430:17015,26437:17016,26439:17017,26440:17018,26444:17019,26452:17020,26453:17021,26461:17022,26470:17185,26476:17186,26478:17187,26484:17188,26486:17189,26491:17190,26497:17191,26500:17192,26510:17193,26511:17194,26513:17195,26515:17196,26518:17197,26520:17198,26521:17199,26523:17200,26544:17201,26545:17202,26546:17203,26549:17204,26555:17205,26556:17206,26557:17207,26560:17209,26562:17210,26563:17211,26565:17212,26568:17213,26569:17214,26578:17215,26583:17216,26585:17217,26588:17218,26593:17219,26598:17220,26608:17221,26610:17222,26614:17223,26615:17224,26617:17208,26644:17226,26649:17227,26653:17228,26655:17229,26663:17231,26664:17230,26668:17232,26669:17233,26671:17234,26672:17235,26673:17236,26675:17237,26683:17238,26687:17239,26692:17240,26693:17241,26698:17242,26700:17243,26706:17225,26709:17244,26711:17245,26712:17246,26715:17247,26731:17248,26734:17249,26735:17250,26736:17251,26737:17252,26738:17253,26741:17254,26745:17255,26746:17256,26747:17257,26748:17258,26754:17259,26756:17260,26758:17261,26760:17262,26774:17263,26776:17264,26778:17265,26780:17266,26785:17267,26787:17268,26789:17269,26793:17270,26794:17271,26798:17272,26802:17273,26811:17274,26821:17275,26824:17276,26828:17277,26831:17278,26832:17441,26833:17442,26835:17443,26838:17444,26841:17445,26844:17446,26845:17447,26853:17448,26856:17449,26858:17450,26859:17451,26860:17452,26861:17453,26864:17454,26865:17455,26869:17456,26870:17457,26875:17458,26876:17459,26877:17460,26886:17461,26889:17462,26890:17463,26896:17464,26897:17465,26899:17466,26902:17467,26903:17468,26929:17469,26931:17470,26933:17471,26936:17472,26939:17473,26946:17474,26949:17475,26953:17476,26958:17477,26967:17478,26971:17479,26979:17480,26980:17481,26981:17482,26982:17483,26984:17484,26985:17485,26988:17486,26992:17487,26993:17488,26994:17489,27002:17490,27003:17491,27007:17492,27008:17493,27021:17494,27026:17495,27030:17496,27032:17497,27041:17498,27045:17499,27046:17500,27048:17501,27051:17502,27053:17503,27055:17504,27063:17505,27064:17506,27066:17507,27068:17508,27077:17509,27080:17510,27089:17511,27094:17512,27095:17513,27106:17514,27109:17515,27118:17516,27119:17517,27121:17518,27123:17519,27125:17520,27134:17521,27136:17522,27137:17523,27139:17524,27151:17525,27153:17526,27157:17527,27162:17528,27165:17529,27168:17530,27172:17531,27176:17532,27184:17533,27186:17534,27188:17697,27191:17698,27195:17699,27198:17700,27199:17701,27205:17702,27206:17703,27209:17704,27210:17705,27214:17706,27216:17707,27217:17708,27218:17709,27221:17710,27222:17711,27227:17712,27236:17713,27239:17714,27242:17715,27249:17716,27251:17717,27262:17718,27265:17719,27267:17720,27270:17721,27271:17722,27273:17723,27275:17724,27281:17725,27291:17726,27293:17727,27294:17728,27295:17729,27301:17730,27307:17731,27311:17732,27312:17733,27313:17734,27316:17735,27325:17736,27326:17737,27327:17738,27334:17739,27336:17741,27337:17740,27340:17742,27344:17743,27348:17744,27349:17745,27350:17746,27356:17747,27357:17748,27364:17749,27367:17750,27372:17751,27376:17752,27377:17753,27378:17754,27388:17755,27389:17756,27394:17757,27395:17758,27398:17759,27399:17760,27401:17761,27407:17762,27408:17763,27409:17764,27415:17765,27419:17766,27422:17767,27428:17768,27432:17769,27435:17770,27436:17771,27439:17772,27445:17773,27446:17774,27451:17775,27455:17776,27462:17777,27466:17778,27469:17779,27474:17780,27478:17781,27480:17782,27485:17783,27488:17784,27495:17785,27499:17786,27502:17787,27504:17788,27509:17789,27517:17790,27518:17953,27522:17954,27525:17955,27543:17956,27547:17957,27551:17958,27552:17959,27554:17960,27555:17961,27560:17962,27561:17963,27564:17964,27565:17965,27566:17966,27568:17967,27576:17968,27577:17969,27581:17970,27582:17971,27587:17972,27588:17973,27593:17974,27596:17975,27606:17976,27610:17977,27617:17978,27619:17979,27622:17980,27623:17981,27630:17982,27633:17983,27639:17984,27641:17985,27647:17986,27650:17987,27652:17988,27653:17989,27657:17990,27661:17991,27662:17992,27664:17993,27666:17994,27673:17995,27679:17996,27686:17997,27687:17998,27688:17999,27692:18000,27694:18001,27699:18002,27701:18003,27702:18004,27706:18005,27707:18006,27711:18007,27722:18008,27723:18009,27725:18010,27727:18011,27730:18012,27732:18013,27737:18014,27739:18015,27740:18016,27751:18230,27755:18017,27757:18018,27759:18019,27764:18020,27766:18021,27768:18022,27769:18023,27771:18024,27781:18025,27782:18026,27783:18027,27785:18028,27796:18029,27797:18030,27799:18031,27800:18032,27804:18033,27807:18034,27824:18035,27826:18036,27828:18037,27842:18038,27846:18039,27853:18040,27855:18041,27856:18042,27857:18043,27858:18044,27860:18045,27862:18046,27866:18209,27868:18210,27872:18211,27879:18212,27881:18213,27883:18214,27884:18215,27886:18216,27890:18217,27892:18218,27908:18219,27911:18220,27914:18221,27918:18222,27919:18223,27921:18224,27923:18225,27930:18226,27942:18227,27943:18228,27944:18229,27950:18231,27951:18232,27953:18233,27961:18234,27964:18235,27967:18236,27991:18237,27998:18238,27999:18239,28001:18240,28005:18241,28007:18242,28015:18243,28016:18244,28028:18245,28034:18246,28039:18247,28049:18248,28050:18249,28052:18250,28054:18251,28055:18252,28056:18253,28074:18254,28076:18255,28084:18256,28087:18257,28089:18258,28093:18259,28095:18260,28100:18261,28104:18262,28106:18263,28110:18264,28111:18265,28118:18266,28123:18267,28125:18268,28127:18269,28128:18270,28130:18271,28133:18272,28137:18273,28143:18274,28144:18275,28148:18276,28150:18277,28156:18278,28160:18279,28164:18280,28190:18281,28194:18282,28199:18283,28210:18284,28214:18285,28217:18286,28219:18287,28220:18288,28228:18289,28229:18290,28232:18291,28233:18292,28235:18293,28239:18294,28241:18295,28242:18296,28243:18297,28244:18298,28247:18299,28252:18300,28253:18301,28254:18302,28258:18465,28259:18466,28264:18467,28275:18468,28283:18469,28285:18470,28301:18471,28307:18472,28313:18473,28320:18474,28327:18475,28333:18476,28334:18477,28337:18478,28339:18479,28347:18480,28351:18481,28352:18482,28353:18483,28355:18484,28359:18485,28360:18486,28362:18487,28365:18488,28366:18489,28367:18490,28395:18491,28397:18492,28398:18493,28409:18494,28411:18495,28413:18496,28420:18497,28424:18498,28426:18499,28428:18500,28429:18501,28438:18502,28440:18503,28442:18504,28443:18505,28454:18506,28457:18507,28458:18508,28461:18515,28463:18509,28464:18510,28467:18511,28470:18512,28475:18513,28476:18514,28495:18516,28497:18517,28498:18518,28499:18519,28503:18520,28505:18521,28506:18522,28509:18523,28510:18524,28513:18525,28514:18526,28520:18527,28524:18528,28541:18529,28542:18530,28547:18531,28551:18532,28552:18533,28555:18534,28556:18535,28557:18536,28560:18537,28562:18538,28563:18539,28564:18540,28566:18541,28570:18542,28575:18543,28576:18544,28581:18545,28582:18546,28583:18547,28584:18548,28590:18549,28591:18550,28592:18551,28597:18552,28598:18553,28604:18554,28613:18555,28615:18556,28616:18557,28618:18558,28634:18721,28638:18722,28648:18723,28649:18724,28656:18725,28661:18726,28665:18727,28668:18728,28669:18729,28672:18730,28677:18731,28678:18732,28679:18733,28685:18734,28695:18735,28704:18736,28707:18737,28719:18738,28724:18739,28727:18740,28729:18741,28732:18742,28739:18743,28740:18744,28744:18745,28745:18746,28746:18747,28747:18748,28750:18753,28756:18749,28757:18750,28765:18751,28766:18752,28772:18754,28773:18755,28780:18756,28782:18757,28789:18758,28790:18759,28798:18760,28801:18761,28805:18762,28806:18763,28820:18764,28821:18765,28822:18766,28823:18767,28824:18768,28827:18769,28836:18770,28843:18771,28848:18772,28849:18773,28852:18774,28855:18775,28874:18776,28881:18777,28883:18778,28884:18779,28885:18780,28886:18781,28888:18782,28892:18783,28900:18784,28922:18785,28931:18786,28932:18787,28933:18788,28934:18789,28935:18790,28939:18791,28940:18792,28943:18793,28958:18794,28960:18795,28971:18796,28973:18797,28975:18798,28976:18799,28977:18800,28984:18801,28993:18802,28997:18803,28998:18804,28999:18805,29002:18806,29003:18807,29008:18808,29010:18809,29015:18810,29018:18811,29020:18812,29022:18813,29024:18814,29032:18977,29049:18978,29056:18979,29061:18980,29063:18981,29068:18982,29074:18983,29082:18984,29083:18985,29088:18986,29090:18987,29103:18988,29104:18989,29106:18990,29107:18991,29114:18992,29119:18993,29120:18994,29121:18995,29124:18996,29131:18997,29132:18998,29139:18999,29142:19000,29145:19001,29146:19002,29148:19003,29176:19004,29182:19005,29184:19006,29191:19007,29192:19008,29193:19009,29203:19010,29207:19011,29210:19012,29213:19013,29215:19014,29220:19015,29227:19016,29231:19017,29236:19018,29240:19019,29241:19020,29249:19021,29250:19022,29251:19023,29253:19024,29262:19025,29263:19026,29264:19027,29267:19028,29269:19029,29270:19030,29274:19031,29276:19032,29278:19033,29280:19034,29283:19035,29288:19036,29291:19037,29294:19038,29295:19039,29297:19040,29303:19041,29304:19042,29307:19043,29308:19044,29311:19045,29316:19046,29321:19047,29325:19048,29326:19049,29331:19050,29339:19051,29352:19052,29357:19053,29358:19054,29361:19055,29364:19056,29374:19057,29377:19058,29383:19059,29385:19060,29388:19061,29397:19062,29398:19063,29400:19064,29407:19065,29413:19066,29427:19067,29428:19068,29434:19069,29435:19070,29438:19233,29442:19234,29444:19235,29445:19236,29447:19237,29451:19238,29453:19239,29458:19240,29459:19241,29464:19242,29465:19243,29470:19244,29474:19245,29476:19246,29479:19247,29480:19248,29484:19249,29489:19250,29490:19251,29493:19252,29498:19253,29499:19254,29501:19255,29507:19256,29517:19257,29520:19258,29522:19259,29526:19260,29528:19261,29533:19262,29534:19263,29535:19264,29536:19265,29542:19266,29543:19267,29545:19268,29547:19269,29548:19270,29550:19271,29551:19272,29553:19273,29559:19274,29561:19275,29564:19276,29568:19277,29569:19278,29571:19279,29573:19280,29574:19281,29582:19282,29584:19283,29587:19284,29589:19285,29591:19286,29592:19287,29596:19288,29598:19289,29599:19290,29600:19291,29602:19292,29605:19293,29606:19294,29610:19295,29611:19296,29613:19297,29621:19298,29623:19299,29625:19300,29628:19301,29629:19302,29631:19303,29637:19304,29638:19305,29641:19306,29643:19307,29644:19308,29647:19309,29650:19310,29651:19311,29654:19312,29657:19313,29661:19314,29665:19315,29667:19316,29670:19317,29671:19318,29673:19319,29684:19320,29685:19321,29687:19322,29689:19323,29690:19324,29691:19325,29693:19326,29695:19489,29696:19490,29697:19491,29700:19492,29703:19493,29706:19494,29713:19495,29722:19496,29723:19497,29732:19498,29734:19499,29736:19500,29737:19501,29738:19502,29739:19503,29740:19504,29741:19505,29742:19506,29743:19507,29744:19508,29745:19509,29753:19510,29760:19511,29763:19512,29764:19513,29766:19514,29767:19515,29771:19516,29773:19517,29777:19518,29778:19519,29783:19520,29789:19521,29794:19522,29798:19523,29799:19524,29800:19525,29803:19526,29805:19527,29806:19528,29809:19529,29810:19530,29824:19531,29825:19532,29829:19533,29830:19534,29831:19535,29833:19536,29839:19537,29840:19538,29841:19539,29842:19540,29848:19541,29849:19542,29850:19543,29852:19544,29855:19545,29856:19546,29857:19547,29859:19548,29862:19549,29864:19550,29865:19551,29866:19552,29867:19553,29870:19554,29871:19555,29873:19556,29874:19557,29877:19558,29881:19559,29883:19560,29887:19561,29896:19562,29897:19563,29900:19564,29904:19565,29907:19566,29912:19567,29914:19568,29915:19569,29918:19570,29919:19571,29924:19572,29928:19573,29930:19574,29931:19575,29935:19576,29940:19577,29946:19578,29947:19579,29948:19580,29951:19581,29958:19582,29970:19745,29974:19746,29975:19747,29984:19748,29985:19749,29988:19750,29991:19751,29993:19752,29994:19753,29999:19754,30006:19755,30009:19756,30013:19757,30014:19758,30015:19759,30016:19760,30019:19761,30023:19762,30024:19763,30030:19764,30032:19765,30034:19766,30039:19767,30046:19768,30047:19769,30049:19770,30063:19771,30065:19772,30073:19773,30074:19774,30075:19775,30076:19776,30077:19777,30078:19778,30081:19779,30085:19780,30096:19781,30098:19782,30099:19783,30101:19784,30105:19785,30108:19786,30114:19787,30116:19788,30132:19789,30138:19790,30143:19791,30144:19792,30145:19793,30148:19794,30150:19795,30156:19796,30158:19797,30159:19798,30167:19799,30172:19800,30175:19801,30176:19802,30177:19803,30180:19804,30183:19805,30188:19806,30190:19807,30191:19808,30193:19809,30201:19810,30208:19811,30210:19812,30211:19813,30212:19814,30215:19815,30216:19816,30218:19817,30220:19818,30223:19819,30226:19820,30227:19821,30229:19822,30230:19823,30233:19824,30235:19825,30236:19826,30237:19827,30238:19828,30243:19829,30245:19830,30246:19831,30249:19832,30253:19833,30258:19834,30259:19835,30261:19836,30264:19837,30265:19838,30266:20001,30268:20002,30272:20004,30273:20005,30275:20006,30276:20007,30277:20008,30281:20009,30282:20003,30283:20010,30293:20011,30297:20012,30303:20013,30308:20014,30309:20015,30317:20016,30318:20017,30319:20018,30321:20019,30324:20020,30337:20021,30341:20022,30348:20023,30349:20024,30357:20025,30363:20026,30364:20027,30365:20028,30367:20029,30368:20030,30370:20031,30371:20032,30372:20033,30373:20034,30374:20035,30375:20036,30376:20037,30378:20038,30381:20039,30397:20040,30401:20041,30405:20042,30409:20043,30411:20044,30412:20045,30414:20046,30420:20047,30425:20048,30432:20049,30438:20050,30440:20051,30444:20052,30448:20053,30449:20054,30454:20055,30457:20056,30460:20057,30464:20058,30470:20059,30474:20060,30478:20061,30482:20062,30484:20063,30485:20064,30487:20065,30489:20066,30490:20067,30492:20068,30498:20069,30504:20070,30509:20071,30510:20072,30511:20073,30516:20074,30517:20075,30518:20076,30521:20077,30525:20078,30526:20079,30530:20080,30533:20081,30534:20082,30538:20083,30541:20084,30542:20085,30543:20086,30546:20087,30550:20088,30551:20089,30556:20090,30558:20091,30559:20092,30560:20093,30562:20094,30564:20257,30567:20258,30570:20259,30572:20260,30576:20261,30578:20262,30579:20263,30580:20264,30586:20265,30589:20266,30592:20267,30596:20268,30604:20269,30605:20270,30612:20271,30613:20272,30614:20273,30618:20274,30623:20275,30626:20276,30631:20277,30634:20278,30638:20279,30639:20280,30641:20281,30645:20282,30654:20283,30659:20284,30665:20285,30673:20286,30674:20287,30677:20288,30681:20289,30686:20290,30687:20291,30688:20292,30692:20293,30694:20294,30698:20295,30700:20296,30704:20297,30705:20298,30708:20299,30712:20300,30715:20301,30725:20302,30726:20303,30729:20304,30733:20305,30734:20306,30737:20307,30749:20308,30753:20309,30754:20310,30755:20311,30765:20312,30766:20313,30768:20314,30773:20315,30775:20316,30787:20317,30788:20318,30791:20319,30792:20320,30796:20321,30798:20322,30802:20323,30812:20324,30814:20325,30816:20326,30817:20327,30819:20328,30820:20329,30824:20330,30826:20331,30830:20332,30842:20333,30846:20334,30858:20335,30863:20336,30868:20337,30872:20338,30877:20340,30878:20341,30879:20342,30881:20339,30884:20343,30888:20344,30892:20345,30893:20346,30896:20347,30897:20348,30898:20349,30899:20350,30907:20513,30909:20514,30911:20515,30919:20516,30920:20517,30921:20518,30924:20519,30926:20520,30930:20521,30931:20522,30933:20523,30934:20524,30939:20526,30943:20527,30944:20528,30945:20529,30948:20525,30950:20530,30954:20531,30962:20532,30963:20533,30966:20535,30967:20536,30970:20537,30971:20538,30975:20539,30976:20534,30982:20540,30988:20541,30992:20542,31002:20543,31004:20544,31006:20545,31007:20546,31008:20547,31013:20548,31015:20549,31017:20550,31021:20551,31025:20552,31028:20553,31029:20554,31035:20555,31037:20556,31039:20557,31044:20558,31045:20559,31046:20560,31050:20561,31051:20562,31055:20563,31057:20564,31060:20565,31064:20566,31067:20567,31068:20568,31079:20569,31081:20570,31083:20571,31090:20572,31097:20573,31099:20574,31100:20575,31102:20576,31115:20577,31116:20578,31121:20579,31123:20580,31124:20581,31125:20582,31126:20583,31128:20584,31131:20585,31132:20586,31137:20587,31144:20588,31145:20589,31147:20590,31151:20591,31153:20592,31156:20593,31160:20594,31163:20595,31170:20596,31172:20597,31175:20598,31176:20599,31178:20600,31183:20601,31188:20602,31190:20603,31194:20604,31197:20605,31198:20606,31200:20769,31202:20770,31205:20771,31210:20772,31211:20773,31213:20774,31217:20775,31224:20776,31228:20777,31234:20778,31235:20779,31239:20780,31241:20781,31242:20782,31244:20783,31249:20784,31253:20785,31259:20786,31262:20787,31265:20788,31271:20789,31275:20790,31277:20791,31279:20792,31280:20793,31284:20794,31285:20795,31288:20796,31289:20797,31290:20798,31300:20799,31301:20800,31303:20801,31304:20802,31308:20803,31317:20804,31318:20805,31321:20806,31324:20807,31325:20808,31327:20809,31328:20810,31333:20811,31335:20812,31338:20813,31341:20814,31349:20815,31352:20816,31358:20817,31360:20818,31362:20819,31365:20820,31366:20821,31370:20822,31371:20823,31376:20824,31377:20825,31380:20826,31390:20827,31392:20828,31395:20829,31404:20830,31411:20831,31413:20832,31417:20833,31419:20834,31420:20835,31430:20836,31433:20837,31436:20838,31438:20839,31441:20840,31451:20841,31464:20842,31465:20843,31467:20844,31468:20845,31473:20846,31476:20847,31483:20848,31485:20849,31486:20850,31495:20851,31508:20852,31519:20853,31523:20854,31527:20855,31529:20856,31530:20857,31531:20858,31533:20859,31534:20860,31535:20861,31536:20862,31537:21025,31540:21026,31549:21027,31551:21028,31552:21029,31553:21030,31559:21031,31566:21032,31573:21033,31584:21034,31588:21035,31590:21036,31593:21037,31594:21038,31597:21039,31599:21040,31602:21041,31603:21042,31607:21043,31620:21044,31625:21045,31630:21046,31632:21047,31633:21048,31638:21049,31643:21050,31646:21051,31648:21052,31653:21053,31660:21054,31663:21055,31664:21056,31666:21057,31669:21058,31670:21059,31674:21060,31675:21061,31676:21062,31677:21063,31682:21064,31685:21065,31688:21066,31690:21067,31700:21068,31702:21069,31703:21070,31705:21071,31706:21072,31707:21073,31720:21074,31722:21075,31730:21076,31732:21077,31733:21078,31736:21079,31737:21080,31738:21081,31740:21082,31742:21083,31745:21084,31746:21085,31747:21086,31748:21087,31750:21088,31753:21089,31755:21090,31756:21091,31758:21092,31759:21093,31769:21094,31771:21095,31776:21096,31781:21097,31782:21098,31784:21099,31788:21100,31793:21101,31795:21102,31796:21103,31798:21104,31801:21105,31802:21106,31814:21107,31818:21108,31825:21110,31826:21111,31827:21112,31829:21109,31833:21113,31834:21114,31835:21115,31836:21116,31837:21117,31838:21118,31841:21281,31843:21282,31847:21283,31849:21284,31853:21285,31854:21286,31856:21287,31858:21288,31865:21289,31868:21290,31869:21291,31878:21292,31879:21293,31887:21294,31892:21295,31902:21296,31904:21297,31910:21298,31920:21299,31926:21300,31927:21301,31930:21302,31931:21303,31932:21304,31935:21305,31940:21306,31943:21307,31944:21308,31945:21309,31949:21310,31951:21311,31955:21312,31956:21313,31957:21314,31959:21315,31961:21316,31962:21317,31965:21318,31974:21319,31977:21320,31979:21321,31989:21322,32003:21323,32007:21324,32008:21325,32009:21326,32015:21327,32017:21328,32018:21329,32019:21330,32022:21331,32029:21332,32030:21333,32035:21334,32038:21335,32042:21336,32045:21337,32049:21338,32060:21339,32061:21340,32062:21341,32064:21342,32065:21343,32071:21344,32072:21345,32077:21346,32081:21347,32083:21348,32087:21349,32089:21350,32090:21351,32092:21352,32093:21353,32101:21354,32103:21355,32106:21356,32112:21357,32120:21358,32122:21359,32123:21360,32127:21361,32129:21362,32130:21363,32131:21364,32133:21365,32134:21366,32136:21367,32139:21368,32140:21369,32141:21370,32145:21371,32150:21372,32151:21373,32157:21374,32158:21537,32166:21538,32167:21539,32170:21540,32179:21541,32182:21542,32183:21543,32185:21544,32194:21545,32195:21546,32196:21547,32197:21548,32198:21549,32204:21550,32205:21551,32206:21552,32215:21553,32217:21554,32226:21556,32229:21557,32230:21558,32234:21559,32235:21560,32237:21561,32241:21562,32245:21563,32246:21564,32249:21565,32250:21566,32256:21555,32264:21567,32272:21568,32273:21569,32277:21570,32279:21571,32284:21572,32285:21573,32288:21574,32295:21575,32296:21576,32300:21577,32301:21578,32303:21579,32307:21580,32310:21581,32319:21582,32324:21583,32325:21584,32327:21585,32334:21586,32336:21587,32338:21588,32344:21589,32351:21590,32353:21591,32354:21592,32357:21593,32363:21594,32366:21595,32367:21596,32371:21597,32376:21598,32382:21599,32385:21600,32390:21601,32391:21602,32394:21603,32397:21604,32401:21605,32405:21606,32408:21607,32410:21608,32413:21609,32414:21610,32571:21612,32572:21611,32573:21613,32574:21614,32575:21615,32579:21616,32580:21617,32583:21618,32591:21619,32594:21620,32595:21621,32603:21622,32604:21623,32605:21624,32609:21625,32611:21626,32612:21627,32613:21628,32614:21629,32621:21630,32625:21793,32637:21794,32638:21795,32639:21796,32640:21797,32651:21798,32653:21799,32655:21800,32656:21801,32657:21802,32662:21803,32663:21804,32668:21805,32673:21806,32674:21807,32678:21808,32682:21809,32685:21810,32692:21811,32700:21812,32703:21813,32704:21814,32707:21815,32712:21816,32718:21817,32719:21818,32731:21819,32735:21820,32739:21821,32741:21822,32744:21823,32748:21824,32750:21825,32751:21826,32754:21827,32762:21828,32765:21829,32766:21830,32767:21831,32775:21832,32776:21833,32778:21834,32781:21835,32782:21836,32783:21837,32785:21838,32787:21839,32788:21840,32790:21841,32797:21842,32798:21843,32799:21844,32800:21845,32804:21846,32806:21847,32812:21848,32814:21849,32816:21850,32820:21851,32821:21852,32823:21853,32825:21854,32826:21855,32828:21856,32830:21857,32832:21858,32836:21859,32864:21860,32868:21861,32870:21862,32877:21863,32881:21864,32885:21865,32897:21866,32904:21867,32910:21868,32924:21869,32926:21870,32934:21871,32935:21872,32939:21873,32952:21874,32953:21875,32968:21876,32973:21877,32975:21878,32978:21879,32980:21880,32981:21881,32983:21882,32984:21883,32992:21884,33005:21885,33006:21886,33008:22049,33010:22050,33011:22051,33014:22052,33017:22053,33018:22054,33022:22055,33027:22056,33035:22057,33046:22058,33047:22059,33048:22060,33052:22061,33054:22062,33056:22063,33060:22064,33063:22065,33068:22066,33072:22067,33077:22068,33082:22069,33084:22070,33093:22071,33095:22072,33098:22073,33100:22074,33106:22075,33111:22076,33120:22077,33121:22078,33127:22079,33128:22080,33129:22081,33133:22082,33135:22083,33143:22084,33153:22085,33156:22087,33157:22088,33158:22089,33163:22090,33166:22091,33168:22086,33174:22092,33176:22093,33179:22094,33182:22095,33186:22096,33198:22097,33202:22098,33204:22099,33211:22100,33219:22102,33221:22103,33226:22104,33227:22101,33230:22105,33231:22106,33237:22107,33239:22108,33243:22109,33245:22110,33246:22111,33249:22112,33252:22113,33259:22114,33260:22115,33264:22116,33265:22117,33266:22118,33269:22119,33270:22120,33272:22121,33273:22122,33277:22123,33279:22124,33280:22125,33283:22126,33295:22127,33299:22128,33300:22129,33305:22130,33306:22131,33309:22132,33313:22133,33314:22134,33320:22135,33330:22136,33332:22137,33338:22138,33347:22139,33348:22140,33349:22141,33350:22142,33355:22305,33358:22306,33359:22307,33361:22308,33366:22309,33372:22310,33376:22311,33379:22312,33383:22313,33389:22314,33396:22315,33403:22316,33405:22317,33407:22318,33408:22319,33409:22320,33411:22321,33412:22322,33415:22323,33417:22324,33418:22325,33422:22326,33425:22327,33428:22328,33430:22329,33432:22330,33434:22331,33435:22332,33440:22333,33441:22334,33443:22335,33444:22336,33447:22337,33448:22338,33449:22339,33450:22340,33454:22341,33456:22342,33458:22343,33460:22344,33463:22345,33466:22346,33468:22347,33470:22348,33471:22349,33478:22350,33488:22351,33493:22352,33498:22353,33504:22354,33506:22355,33508:22356,33512:22357,33514:22358,33517:22359,33519:22360,33526:22361,33527:22362,33533:22363,33534:22364,33536:22365,33537:22366,33543:22367,33544:22368,33546:22369,33547:22370,33563:22372,33565:22373,33566:22374,33567:22375,33569:22376,33570:22377,33580:22378,33581:22379,33582:22380,33584:22381,33587:22382,33591:22383,33594:22384,33596:22385,33597:22386,33602:22387,33603:22388,33604:22389,33607:22390,33613:22391,33614:22392,33617:22393,33619:22590,33620:22371,33621:22394,33622:22395,33623:22396,33648:22397,33656:22398,33661:22561,33663:22562,33664:22563,33666:22564,33668:22565,33670:22566,33677:22567,33682:22568,33684:22569,33685:22570,33688:22571,33689:22572,33691:22573,33692:22574,33693:22575,33702:22576,33703:22577,33705:22578,33708:22579,33709:22604,33726:22580,33727:22581,33728:22582,33735:22583,33737:22584,33743:22585,33744:22586,33745:22587,33748:22588,33757:22589,33768:22591,33770:22592,33782:22593,33784:22594,33785:22595,33788:22596,33793:22597,33798:22598,33802:22599,33807:22600,33809:22601,33813:22602,33817:22603,33839:22605,33849:22606,33861:22607,33863:22608,33864:22609,33866:22610,33869:22611,33871:22612,33873:22613,33874:22614,33878:22615,33880:22616,33881:22617,33882:22618,33884:22619,33888:22620,33892:22621,33893:22622,33895:22623,33898:22624,33904:22625,33907:22626,33908:22627,33910:22628,33912:22629,33916:22630,33917:22631,33921:22632,33925:22633,33938:22634,33939:22635,33941:22636,33950:22637,33958:22638,33960:22639,33961:22640,33962:22641,33967:22642,33969:22643,33972:22644,33978:22645,33981:22646,33982:22647,33984:22648,33986:22649,33991:22650,33992:22651,33996:22652,33999:22653,34003:22654,34012:22817,34023:22818,34026:22819,34031:22820,34032:22821,34033:22822,34034:22823,34039:22824,34042:22826,34043:22827,34045:22828,34050:22829,34051:22830,34055:22831,34060:22832,34062:22833,34064:22834,34076:22835,34078:22836,34082:22837,34083:22838,34084:22839,34085:22840,34087:22841,34090:22842,34091:22843,34095:22844,34098:22825,34099:22845,34100:22846,34102:22847,34111:22848,34118:22849,34127:22850,34128:22851,34129:22852,34130:22853,34131:22854,34134:22855,34137:22856,34140:22857,34141:22858,34142:22859,34143:22860,34144:22861,34145:22862,34146:22863,34148:22864,34155:22865,34159:22866,34169:22867,34170:22868,34171:22869,34173:22870,34175:22871,34177:22872,34181:22873,34182:22874,34185:22875,34187:22876,34188:22877,34191:22878,34195:22879,34200:22880,34205:22881,34207:22882,34208:22883,34210:22884,34213:22885,34215:22886,34221:22900,34228:22887,34230:22888,34231:22889,34232:22890,34236:22891,34237:22892,34238:22893,34239:22894,34242:22895,34247:22896,34250:22897,34251:22898,34254:22899,34264:22901,34266:22902,34271:22903,34272:22904,34278:22905,34280:22906,34285:22907,34291:22908,34294:22909,34300:22910,34303:23073,34304:23074,34308:23075,34309:23076,34317:23077,34318:23078,34320:23079,34321:23080,34322:23081,34328:23082,34329:23083,34331:23084,34334:23085,34337:23086,34343:23087,34345:23088,34358:23089,34360:23090,34362:23091,34364:23092,34365:23093,34368:23094,34369:14438,34370:23095,34374:23096,34386:23097,34387:23098,34390:23099,34391:23100,34392:23101,34393:23102,34397:23103,34400:23104,34401:23105,34402:23106,34403:23107,34404:23108,34409:23109,34412:23110,34415:23111,34421:23112,34422:23113,34423:23114,34426:23115,34440:23149,34445:23116,34449:23117,34454:23118,34456:23119,34458:23120,34460:23121,34465:23122,34470:23123,34471:23124,34472:23125,34477:23126,34481:23127,34483:23128,34484:23129,34485:23130,34487:23131,34488:23132,34489:23133,34495:23134,34496:23135,34497:23136,34499:23137,34501:23138,34513:23139,34514:23140,34517:23141,34519:23142,34522:23143,34524:23144,34528:23145,34531:23146,34533:23147,34535:23148,34554:23150,34556:23151,34557:23152,34564:23153,34565:23154,34567:23155,34571:23156,34574:23157,34575:23158,34576:23159,34579:23160,34580:23161,34585:23162,34590:23163,34591:23164,34593:23165,34595:23166,34600:23329,34606:23330,34607:23331,34609:23332,34610:23333,34617:23334,34618:23335,34620:23336,34621:23337,34622:23338,34624:23339,34627:23340,34629:23341,34637:23342,34648:23343,34653:23344,34657:23345,34660:23346,34661:23347,34671:23348,34673:23349,34674:23350,34683:23351,34691:23352,34692:23353,34693:23354,34694:23355,34695:23356,34696:23357,34697:23358,34699:23359,34700:23360,34704:23361,34707:23362,34709:23363,34711:23364,34712:23365,34713:23366,34718:23367,34720:23368,34723:23369,34727:23370,34732:23371,34733:23372,34734:23373,34737:23374,34741:23375,34750:23376,34751:23377,34753:23378,34760:23379,34761:23380,34762:23381,34766:23382,34773:23383,34774:23384,34777:23385,34778:23386,34780:23387,34783:23388,34786:23389,34787:23390,34788:23391,34794:23392,34795:23393,34797:23394,34801:23395,34803:23396,34808:23397,34810:23398,34815:23399,34817:23400,34819:23401,34822:23402,34825:23403,34826:23404,34827:23405,34832:23406,34834:23408,34835:23409,34836:23410,34840:23411,34841:23407,34842:23412,34843:23413,34844:23414,34846:23415,34847:23416,34856:23417,34861:23418,34862:23419,34864:23420,34866:23421,34869:23422,34874:23585,34876:23586,34881:23587,34883:23588,34885:23589,34888:23590,34889:23591,34890:23592,34891:23593,34894:23594,34897:23595,34901:23596,34902:23597,34904:23598,34906:23599,34908:23600,34911:23601,34912:23602,34916:23603,34921:23604,34929:23605,34937:23606,34939:23607,34944:23608,34968:23609,34970:23610,34971:23611,34972:23612,34975:23613,34976:23614,34984:23615,34986:23616,35002:23617,35005:23618,35006:23619,35008:23620,35018:23621,35019:23622,35020:23623,35021:23624,35022:23625,35025:23626,35026:23627,35027:23628,35035:23629,35038:23630,35047:23631,35055:23632,35056:23633,35057:23634,35061:23635,35063:23636,35073:23637,35078:23638,35085:23639,35086:23640,35087:23641,35093:23642,35094:23643,35096:23644,35097:23645,35098:23646,35100:23647,35104:23648,35110:23649,35111:23650,35112:23651,35120:23652,35121:23653,35122:23654,35125:23655,35129:23656,35130:23657,35134:23658,35136:23659,35138:23660,35141:23661,35142:23662,35145:23663,35151:23664,35154:23665,35159:23666,35162:23667,35163:23668,35164:23669,35169:23670,35170:23671,35171:23672,35179:23673,35182:23674,35184:23675,35187:23676,35189:23677,35194:23678,35195:23841,35196:23842,35197:23843,35209:23844,35213:23845,35216:23846,35220:23847,35221:23848,35227:23849,35228:23850,35231:23851,35232:23852,35237:23853,35248:23854,35252:23855,35253:23856,35254:23857,35255:23858,35260:23859,35284:23860,35285:23861,35286:23862,35287:23863,35288:23864,35301:23865,35305:23866,35307:23867,35309:23868,35313:23869,35315:23870,35318:23871,35321:23872,35325:23873,35327:23874,35332:23875,35333:23876,35335:23877,35343:23878,35345:23879,35346:23880,35348:23881,35349:23882,35358:23883,35360:23884,35362:23885,35364:23886,35366:23887,35371:23888,35372:23889,35375:23890,35381:23891,35383:23892,35389:23893,35390:23894,35392:23895,35395:23896,35397:23897,35399:23898,35401:23899,35405:23900,35406:23901,35411:23902,35414:23903,35415:23904,35416:23905,35420:23906,35421:23907,35425:23908,35429:23909,35431:23910,35445:23911,35446:23912,35447:23913,35449:23914,35450:23915,35451:23916,35454:23917,35455:23918,35456:23919,35459:23920,35462:23921,35467:23922,35471:23923,35472:23924,35474:23925,35478:23926,35479:23927,35481:23928,35487:23929,35495:23930,35497:23931,35502:23932,35503:23933,35507:23934,35510:24097,35511:24098,35515:24099,35518:24100,35523:24101,35526:24102,35528:24103,35529:24104,35530:24105,35537:24106,35539:24107,35540:24108,35541:24109,35543:24110,35549:24111,35551:24112,35564:24113,35568:24114,35572:24115,35573:24116,35574:24117,35580:24118,35583:24119,35589:24120,35590:24121,35594:24127,35595:24122,35601:24123,35612:24124,35614:24125,35615:24126,35629:24128,35632:24129,35639:24130,35644:24131,35650:24132,35651:24133,35652:24134,35653:24135,35654:24136,35656:24137,35661:24142,35666:24138,35667:24139,35668:24140,35673:24141,35678:24143,35683:24144,35693:24145,35702:24146,35704:24147,35705:24148,35708:24149,35710:24150,35713:24151,35716:24152,35717:24153,35723:24154,35725:24155,35727:24156,35732:24157,35733:24158,35740:24159,35742:24160,35743:24161,35896:24162,35897:24163,35901:24164,35902:24165,35909:24166,35911:24167,35913:24168,35915:24169,35919:24170,35921:24171,35923:24172,35924:24173,35927:24174,35928:24175,35929:24178,35931:24176,35933:24177,35939:24179,35940:24180,35942:24181,35944:24182,35945:24183,35949:24184,35955:24185,35957:24186,35958:24187,35963:24188,35966:24189,35974:24190,35975:24353,35979:24354,35984:24355,35986:24356,35987:24357,35993:24358,35995:24359,35996:24360,36004:24361,36025:24362,36026:24363,36037:24364,36038:24365,36041:24366,36043:24367,36047:24368,36053:24370,36054:24369,36057:24371,36061:24372,36065:24373,36072:24374,36076:24375,36079:24376,36080:24377,36082:24378,36085:24379,36087:24380,36088:24381,36094:24382,36095:24383,36097:24384,36099:24385,36105:24386,36114:24387,36119:24388,36123:24389,36197:24390,36201:24391,36204:24392,36206:24393,36223:24394,36226:24395,36228:24396,36232:24397,36237:24398,36240:24399,36241:24400,36245:24401,36254:24402,36255:24403,36256:24404,36262:24405,36267:24406,36268:24407,36271:24408,36274:24409,36277:24410,36279:24411,36281:24412,36283:24413,36284:24431,36288:24414,36293:24415,36294:24416,36295:24417,36296:24418,36298:24419,36302:24420,36305:24421,36308:24422,36309:24423,36311:24424,36313:24425,36324:24426,36325:24427,36327:24428,36332:24429,36336:24430,36337:24432,36338:24433,36340:24434,36349:24435,36353:24436,36356:24437,36357:24438,36358:24439,36363:24440,36369:24441,36372:24442,36374:24443,36384:24444,36385:24445,36386:24446,36387:24609,36390:24610,36391:24611,36401:24612,36403:24613,36406:24614,36407:24615,36408:24616,36409:24617,36413:24618,36416:24619,36417:24620,36427:24621,36429:24622,36430:24623,36431:24624,36436:24625,36443:24626,36444:24627,36445:24628,36446:24629,36449:24630,36450:24631,36457:24632,36460:24633,36461:24634,36463:24635,36464:24636,36465:24637,36473:24638,36474:24639,36475:24640,36482:24641,36483:24642,36489:24643,36496:24644,36498:24645,36501:24646,36506:24647,36507:24648,36509:24649,36510:24650,36514:24651,36519:24652,36521:24653,36525:24654,36526:24655,36531:24656,36533:24657,36538:24658,36539:24659,36544:24660,36545:24661,36547:24662,36548:24663,36551:24664,36559:24665,36561:24666,36564:24667,36572:24668,36584:24669,36589:24676,36590:24670,36592:24671,36593:24672,36599:24673,36601:24674,36602:24675,36608:24677,36610:24678,36615:24679,36616:24680,36623:24681,36624:24682,36630:24683,36631:24684,36632:24685,36638:24686,36640:24687,36641:24688,36643:24689,36645:24690,36647:24691,36648:24692,36652:24693,36653:24694,36654:24695,36660:24696,36661:24697,36662:24698,36663:24699,36666:24700,36672:24701,36673:24702,36675:24865,36679:24866,36687:24867,36689:24868,36690:24869,36691:24870,36692:24871,36693:24872,36696:24873,36701:24874,36702:24875,36709:24876,36765:24877,36768:24878,36769:24879,36772:24880,36773:24881,36774:24882,36789:24883,36790:24884,36792:24885,36798:24886,36800:24887,36801:24888,36806:24889,36810:24890,36811:24891,36813:24892,36816:24893,36818:24894,36819:24895,36821:24896,36832:24897,36835:24898,36836:24899,36840:24900,36846:24901,36849:24902,36853:24903,36854:24904,36859:24905,36862:24906,36866:24907,36868:24908,36872:24909,36876:24910,36888:24911,36891:24912,36904:24913,36905:24914,36906:24916,36908:24917,36909:24918,36911:24915,36915:24919,36916:24920,36919:24921,36927:24922,36931:24923,36932:24924,36940:24925,36955:24926,36957:24927,36962:24928,36966:24929,36967:24930,36972:24931,36976:24932,36980:24933,36985:24934,36997:24935,37000:24936,37003:24937,37004:24938,37006:24939,37008:24940,37013:24941,37015:24942,37016:24943,37017:24944,37019:24945,37024:24946,37025:24947,37026:24948,37029:24949,37040:24950,37042:24951,37043:24952,37044:24953,37046:24954,37053:24955,37054:24957,37059:24958,37060:25121,37061:25122,37063:25123,37064:25124,37068:24956,37074:25133,37077:25125,37079:25126,37080:25127,37081:25128,37084:25129,37085:25130,37087:25131,37093:25132,37099:25135,37103:25136,37104:25137,37108:25138,37110:25134,37118:25139,37119:25140,37120:25141,37124:25142,37125:25143,37126:25144,37128:25145,37133:25146,37136:25147,37140:25148,37142:25149,37143:25150,37144:25151,37146:25152,37148:25153,37150:25154,37152:25155,37154:25157,37155:25158,37157:25156,37159:25159,37161:25160,37166:25161,37167:25162,37169:25163,37172:25164,37174:25165,37175:25166,37177:25167,37178:25168,37180:25169,37181:25170,37187:25171,37191:25172,37192:25173,37199:25174,37203:25175,37207:25176,37209:25177,37210:25178,37211:25179,37217:25180,37220:25181,37223:25182,37229:25183,37236:25184,37241:25185,37242:25186,37243:25187,37249:25188,37251:25189,37253:25190,37254:25191,37258:25192,37262:25193,37265:25194,37267:25195,37268:25196,37269:25197,37272:25198,37278:25199,37281:25200,37286:25201,37288:25202,37292:25203,37293:25204,37294:25205,37296:25206,37297:25207,37298:25208,37299:25209,37302:25210,37307:25211,37308:25212,37309:25213,37311:25214,37314:25377,37315:25378,37317:25379,37331:25380,37332:25381,37335:25382,37337:25383,37338:25384,37342:25385,37348:25386,37349:25387,37353:25388,37354:25389,37356:25390,37357:25391,37358:25392,37359:25393,37360:25394,37361:25395,37367:25396,37369:25397,37371:25398,37373:25399,37376:25400,37377:25401,37380:25402,37381:25403,37382:25404,37383:25405,37385:25406,37386:25407,37388:25408,37392:25409,37394:25410,37395:25411,37398:25412,37400:25413,37404:25414,37405:25415,37411:25416,37412:25417,37413:25418,37414:25419,37416:25420,37422:25421,37423:25422,37424:25423,37427:25424,37429:25425,37430:25426,37432:25427,37433:25428,37434:25429,37436:25430,37438:25431,37440:25432,37442:25433,37443:25434,37446:25435,37447:25436,37450:25437,37453:25438,37454:25439,37455:25440,37457:25441,37464:25442,37465:25443,37468:25444,37469:25445,37472:25446,37473:25447,37477:25448,37479:25449,37480:25450,37481:25451,37486:25452,37487:25453,37488:25454,37493:25455,37494:25456,37495:25457,37496:25458,37497:25459,37499:25460,37500:25461,37501:25462,37503:25463,37512:25464,37513:25465,37514:25466,37517:25467,37518:25468,37522:25469,37527:25470,37529:25633,37535:25634,37536:25635,37540:25636,37541:25637,37543:25638,37544:25639,37547:25640,37551:25641,37554:25642,37558:25643,37560:25644,37562:25645,37563:25646,37564:25647,37565:25648,37567:25649,37568:25650,37569:25651,37570:25652,37571:25653,37573:25654,37574:25655,37575:25656,37576:25657,37579:25658,37580:25659,37581:25660,37582:25661,37584:25662,37587:25663,37589:25664,37591:25665,37592:25666,37593:25667,37596:25668,37597:25669,37599:25670,37600:25671,37601:25672,37603:25673,37605:25674,37607:25675,37608:25676,37612:25677,37614:25678,37616:25679,37625:25680,37627:25681,37631:25682,37632:25683,37634:25684,37640:25685,37645:25686,37649:25687,37652:25688,37653:25689,37660:25690,37661:25691,37662:25692,37663:25693,37665:25694,37668:25695,37669:25696,37671:25697,37673:25698,37674:25699,37683:25700,37684:25701,37686:25702,37687:25703,37703:25704,37704:25705,37705:25706,37712:25707,37713:25708,37714:25709,37717:25710,37719:25711,37720:25712,37722:25713,37726:25714,37732:25715,37733:25716,37735:25717,37737:25718,37738:25719,37741:25720,37743:25721,37744:25722,37745:25723,37747:25724,37748:25725,37750:25726,37754:25889,37757:25890,37759:25891,37760:25892,37761:25893,37762:25894,37768:25895,37770:25896,37771:25897,37773:25898,37775:25899,37778:25900,37781:25901,37784:25902,37787:25903,37790:25904,37793:25905,37795:25906,37796:25907,37798:25908,37800:25909,37801:25915,37803:25910,37812:25911,37813:25912,37814:25913,37818:25914,37825:25916,37828:25917,37829:25918,37830:25919,37831:25920,37833:25921,37834:25922,37835:25923,37836:25924,37837:25925,37843:25926,37849:25927,37852:25928,37854:25929,37855:25930,37858:25931,37862:25932,37863:25933,37879:25935,37880:25936,37881:25934,37882:25937,37883:25938,37885:25939,37889:25940,37890:25941,37892:25942,37896:25943,37897:25944,37901:25945,37902:25946,37903:25947,37909:25948,37910:25949,37911:25950,37919:25951,37934:25952,37935:25953,37937:25954,37938:25955,37939:25956,37940:25957,37947:25958,37949:25960,37951:25959,37955:25961,37957:25962,37960:25963,37962:25964,37964:25965,37973:25966,37977:25967,37980:25968,37983:25969,37985:25970,37987:25971,37992:25972,37995:25973,37997:25974,37998:25975,37999:25976,38001:25977,38002:25978,38019:25980,38020:25979,38264:25981,38265:25982,38270:26145,38276:26146,38280:26147,38284:26148,38285:26149,38286:26150,38301:26151,38302:26152,38303:26153,38305:26154,38310:26155,38313:26156,38315:26157,38316:26158,38324:26159,38326:26160,38330:26161,38333:26162,38335:26163,38342:26164,38344:26165,38345:26166,38347:26167,38352:26168,38353:26169,38354:26170,38355:26171,38361:26172,38362:26173,38365:26174,38366:26175,38367:26176,38368:26177,38372:26178,38374:26179,38429:26180,38430:26181,38434:26182,38436:26183,38437:26184,38438:26185,38444:26186,38449:26187,38451:26188,38455:26189,38456:26190,38457:26191,38458:26192,38460:26193,38461:26194,38465:26195,38482:26196,38484:26197,38486:26198,38487:26199,38488:26200,38497:26201,38510:26202,38516:26203,38523:26204,38524:26205,38526:26206,38527:26207,38529:26208,38530:26209,38531:26210,38532:26211,38537:26212,38545:26213,38550:26214,38554:26215,38557:26216,38559:26217,38564:26218,38565:26219,38566:26220,38569:26221,38574:26222,38575:26223,38579:26224,38586:26225,38602:26226,38610:26227,38616:26229,38618:26230,38621:26231,38622:26232,38623:26233,38633:26234,38639:26235,38641:26236,38650:26237,38658:26238,38659:26401,38661:26402,38665:26403,38682:26404,38683:26405,38685:26406,38689:26407,38690:26408,38691:26409,38696:26410,38705:26411,38707:26412,38721:26413,38723:26414,38730:26415,38734:26416,38735:26417,38741:26418,38743:26419,38744:26420,38746:26421,38747:26422,38755:26423,38759:26424,38762:26425,38766:26426,38771:26427,38774:26428,38775:26429,38776:26430,38779:26431,38781:26432,38783:26433,38784:26434,38793:26435,38805:26436,38806:26437,38807:26438,38809:26439,38810:26440,38814:26441,38815:26442,38818:26443,38828:26444,38830:26445,38833:26446,38834:26447,38837:26448,38838:26449,38840:26450,38841:26451,38842:26452,38844:26453,38846:26454,38847:26455,38849:26456,38852:26457,38853:26458,38855:26459,38857:26460,38858:26461,38860:26462,38861:26463,38862:26464,38864:26465,38865:26466,38868:26467,38871:26468,38872:26469,38873:26470,38875:26474,38877:26471,38878:26472,38880:26473,38881:26475,38884:26476,38895:26477,38897:26478,38900:26479,38903:26480,38904:26481,38906:26482,38919:26483,38922:26484,38925:26486,38926:26487,38932:26488,38934:26489,38937:26485,38940:26490,38942:26491,38944:26492,38947:26493,38949:26664,38950:26494,38955:26657,38958:26658,38959:26659,38960:26660,38962:26661,38963:26662,38965:26663,38974:26665,38980:26666,38983:26667,38986:26668,38993:26669,38994:26670,38995:26671,38998:26672,38999:26673,39001:26674,39002:26675,39010:26676,39011:26677,39013:26678,39014:26679,39018:26680,39020:26681,39083:26682,39085:26683,39086:26684,39088:26685,39092:26686,39095:26687,39096:26688,39098:26689,39099:26690,39103:26691,39106:26692,39109:26693,39112:26694,39116:26695,39137:26696,39139:26697,39141:26698,39142:26699,39143:26700,39146:26701,39155:26702,39158:26703,39170:26704,39175:26705,39176:26706,39185:26707,39189:26708,39190:26709,39191:26710,39194:26711,39195:26712,39196:26713,39199:26714,39202:26715,39206:26716,39207:26717,39211:26718,39217:26719,39218:26720,39219:26721,39220:26722,39221:26723,39225:26724,39226:26725,39227:26726,39228:26727,39232:26728,39233:26729,39238:26730,39239:26731,39240:26732,39245:26733,39246:26734,39252:26735,39256:26736,39257:26737,39259:26738,39260:26739,39262:26740,39263:26741,39264:26742,39323:26743,39325:26744,39327:26745,39334:26746,39344:26747,39345:26748,39346:26749,39349:26750,39353:26913,39354:26914,39357:26915,39359:26916,39363:26917,39369:26918,39379:26919,39380:26920,39385:26921,39386:26922,39388:26923,39390:26924,39399:26925,39402:26926,39403:26927,39404:26928,39408:26929,39412:26930,39413:26931,39417:26932,39421:26933,39422:26934,39426:26935,39427:26936,39428:26937,39435:26938,39436:26939,39440:26940,39441:26941,39446:26942,39454:26943,39456:26944,39458:26945,39459:26946,39460:26947,39463:26948,39469:26949,39470:26950,39475:26951,39477:26952,39478:26953,39480:26954,39489:26956,39492:26957,39495:26955,39498:26958,39499:26959,39500:26960,39502:26961,39505:26962,39508:26963,39510:26964,39517:26965,39594:26966,39596:26967,39598:26968,39599:26969,39602:26970,39604:26971,39605:26972,39606:26973,39609:26974,39611:26975,39614:26976,39615:26977,39617:26978,39619:26979,39622:26980,39624:26981,39630:26982,39632:26983,39634:26984,39637:26985,39638:26986,39639:26987,39643:26988,39644:26989,39648:26990,39652:26991,39653:26992,39655:26993,39657:26994,39660:26995,39666:26996,39667:26997,39669:26998,39673:26999,39674:27000,39677:27001,39679:27002,39680:27003,39681:27004,39682:27005,39683:27006,39684:27169,39685:27170,39688:27171,39689:27172,39691:27173,39692:27174,39693:27175,39694:27176,39696:27177,39698:27178,39702:27179,39705:27180,39707:27181,39708:27182,39712:27183,39718:27184,39723:27185,39725:27186,39731:27187,39732:27188,39733:27189,39735:27190,39737:27191,39738:27192,39741:27193,39752:27194,39755:27195,39756:27196,39765:27197,39766:27198,39767:27199,39771:27200,39774:27201,39777:27202,39779:27203,39781:27204,39782:27205,39784:27206,39786:27207,39787:27208,39788:27209,39789:27210,39790:27211,39795:27212,39797:27213,39799:27214,39800:27215,39801:27216,39807:27217,39808:27218,39812:27219,39813:27220,39814:27221,39815:27222,39817:27223,39818:27224,39819:27225,39821:27226,39823:27227,39824:27228,39828:27229,39834:27230,39837:27231,39838:27232,39846:27233,39847:27234,39849:27235,39852:27236,39856:27237,39857:27238,39858:27239,39863:27240,39864:27241,39867:27242,39868:27243,39870:27244,39871:27245,39873:27246,39879:27247,39880:27248,39886:27249,39888:27250,39895:27251,39896:27252,39901:27253,39903:27254,39909:27255,39911:27256,39914:27257,39915:27258,39919:27259,39923:27260,39927:27261,39928:27262,39929:27425,39930:27426,39933:27427,39935:27428,39936:27429,39938:27430,39947:27431,39951:27432,39953:27433,39958:27434,39960:27435,39961:27436,39962:27437,39964:27438,39966:27439,39970:27440,39971:27441,39974:27442,39975:27443,39976:27444,39977:27445,39978:27446,39985:27447,39989:27448,39990:27449,39991:27450,39997:27451,40001:27452,40003:27453,40004:27454,40005:27455,40009:27456,40010:27457,40014:27458,40015:27459,40016:27460,40019:27461,40020:27462,40022:27463,40024:27464,40027:27465,40028:27472,40029:27466,40030:27467,40031:27468,40035:27469,40040:27474,40041:27470,40042:27471,40043:27473,40046:27475,40048:27476,40050:27477,40053:27478,40055:27479,40059:27480,40166:27481,40178:27482,40183:27483,40185:27484,40194:27486,40203:27485,40209:27487,40215:27488,40216:27489,40220:27490,40221:27491,40222:27492,40239:27493,40240:27494,40242:27495,40243:27496,40244:27497,40250:27498,40252:27499,40253:27501,40258:27502,40259:27503,40261:27500,40263:27504,40266:27505,40275:27506,40276:27507,40287:27508,40290:27510,40291:27509,40293:27511,40297:27512,40298:27513,40299:27514,40304:27515,40310:27516,40311:27517,40315:27518,40316:27681,40318:27682,40323:27683,40324:27684,40326:27685,40330:27686,40333:27687,40334:27688,40338:27689,40339:27690,40341:27691,40342:27692,40343:27693,40344:27694,40353:27695,40362:27696,40364:27697,40366:27698,40369:27699,40373:27700,40377:27701,40380:27702,40383:27703,40387:27704,40391:27705,40393:27706,40394:27707,40404:27708,40405:27709,40406:27710,40407:27711,40410:27712,40414:27713,40415:27714,40416:27715,40421:27716,40423:27717,40425:27718,40427:27719,40430:27720,40432:27721,40435:27722,40436:27723,40446:27724,40450:27726,40455:27727,40458:27725,40462:27728,40464:27729,40465:27730,40466:27731,40469:27732,40470:27733,40473:27734,40476:27735,40477:27736,40570:27737,40571:27738,40572:27739,40576:27740,40578:27741,40579:27742,40580:27743,40581:27744,40583:27745,40590:27746,40591:27747,40598:27748,40600:27749,40603:27750,40606:27751,40612:27752,40616:27753,40620:27754,40622:27755,40623:27756,40624:27757,40627:27758,40628:27759,40629:27760,40646:27761,40648:27762,40651:27763,40661:27764,40671:27765,40676:27766,40679:27767,40684:27768,40685:27769,40686:27770,40688:27771,40689:27772,40690:27773,40693:27774,40696:27937,40703:27938,40706:27939,40707:27940,40713:27941,40719:27942,40720:27943,40721:27944,40722:27945,40724:27946,40726:27947,40727:27948,40729:27949,40730:27950,40731:27951,40735:27952,40738:27953,40742:27954,40746:27955,40747:27956,40751:27957,40753:27958,40754:27959,40756:27960,40759:27961,40761:27962,40762:27963,40764:27964,40765:27965,40767:27966,40769:27967,40771:27968,40772:27969,40773:27970,40774:27971,40775:27972,40787:27973,40789:27974,40790:27975,40791:27976,40792:27977,40794:27978,40797:27979,40798:27980,40808:27981,40809:27982,40813:27983,40814:27984,40815:27985,40816:27986,40817:27987,40819:27988,40821:27989,40826:27990,40829:27991,40847:27992,40848:27993,40849:27994,40850:27995,40852:27996,40854:27997,40855:27998,40862:27999,40865:28000,40866:28001,40867:28002,40869:28003}","\"use strict\";\nvar __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"./utils\");\nvar jsbi_1 = __importDefault(require(\"jsbi\"));\n// prettier-ignore\nvar FORMAT_TYPE_LEN_DICT = {\n 'b': 1,\n 'w': 2,\n 'd': 4,\n 'q': 8,\n};\nfunction formatQuery(format) {\n var e_1, _a;\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n var result = [];\n var half = null;\n var argStack = Array.from(args);\n var escaped = false;\n try {\n for (var format_1 = __values(format), format_1_1 = format_1.next(); !format_1_1.done; format_1_1 = format_1.next()) {\n var char = format_1_1.value;\n if (escaped) {\n escaped = false;\n var value = argStack.shift();\n if (char in FORMAT_TYPE_LEN_DICT) {\n var numberValue = jsbi_1.default.BigInt(value);\n for (var byte = FORMAT_TYPE_LEN_DICT[char] - 1; byte >= 0; byte--) {\n var v = jsbi_1.default.signedRightShift(numberValue, jsbi_1.default.BigInt(byte * 8));\n v = jsbi_1.default.bitwiseAnd(v, jsbi_1.default.BigInt(0xff));\n result.push(jsbi_1.default.toNumber(v));\n }\n }\n else if (char === 'x' || char === 's') {\n var uint8ArrayValue = utils_1.assertUint8Array(value);\n var bufferLength = uint8ArrayValue.byteLength;\n if (char === 's') {\n bufferLength += 1;\n }\n result.push((bufferLength >> 8) & 0xff);\n result.push(bufferLength & 0xff);\n result.push.apply(result, __spread(uint8ArrayValue));\n if (char === 's') {\n result.push(0);\n }\n }\n else if (char === '*') {\n if (value instanceof Uint8Array) {\n result.push.apply(result, __spread(value));\n }\n else {\n utils_1.assert(false, \"Unexpected type for value\");\n }\n }\n else {\n utils_1.assert(false, \"Unrecognized format char \" + char);\n }\n continue;\n }\n if (char === '%') {\n utils_1.assert(half === null, \"Expected \\\"half\\\" to be null\");\n escaped = true;\n continue;\n }\n if (char === ' ') {\n continue;\n }\n if (half === null) {\n half = char;\n }\n else {\n result.push(Number.parseInt(half + char, 16));\n half = null;\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (format_1_1 && !format_1_1.done && (_a = format_1.return)) _a.call(format_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n return new Uint8Array(result).buffer;\n}\nexports.formatQuery = formatQuery;\nfunction scanQuery(query, format) {\n var e_2, _a;\n var result = [];\n var inputStack;\n if (query instanceof ArrayBuffer) {\n inputStack = Array.from(new Uint8Array(query));\n }\n else {\n inputStack = query;\n }\n var initialLength = inputStack.length;\n var half = null;\n var escaped = false;\n try {\n for (var format_2 = __values(format), format_2_1 = format_2.next(); !format_2_1.done; format_2_1 = format_2.next()) {\n var char = format_2_1.value;\n if (escaped) {\n escaped = false;\n if (char === '?') {\n inputStack.shift();\n continue;\n }\n if (char in FORMAT_TYPE_LEN_DICT) {\n var value = jsbi_1.default.BigInt(0);\n for (var byte = FORMAT_TYPE_LEN_DICT[char] - 1; byte >= 0; byte--) {\n var v = jsbi_1.default.BigInt(inputStack.shift());\n v = jsbi_1.default.leftShift(v, jsbi_1.default.BigInt(byte * 8));\n value = jsbi_1.default.bitwiseOr(value, v);\n }\n result.push(value);\n }\n else if (char === 's' || char === 'x') {\n var length = (inputStack.shift() << 8) | inputStack.shift();\n var newInputStack = inputStack.splice(length);\n var buffer = new Uint8Array(inputStack);\n inputStack = newInputStack;\n if (char === 's') {\n result.push(buffer);\n // result.push(value.substring(0, value.length - 1));\n }\n else {\n result.push(buffer);\n }\n }\n else if (char === '*') {\n var buffer = new Uint8Array(inputStack.splice(0));\n result.push(buffer);\n }\n else if (char === '#') {\n var value = new Uint8Array(inputStack.splice(0));\n result.push(value);\n }\n else {\n throw new Error(\"Unrecognized format char \" + char);\n }\n continue;\n }\n if (char === '%') {\n utils_1.assert(half === null);\n escaped = true;\n continue;\n }\n if (char === ' ') {\n continue;\n }\n if (half === null) {\n half = char;\n }\n else {\n var inputValue = inputStack.shift();\n var formatValue = Number.parseInt(half + char, 16);\n if (formatValue != inputValue) {\n var i = initialLength - inputStack.length - 1;\n throw new Error(\"Format and input mismatch at \" + i + \": expected \" + formatValue + \", got \" + inputValue);\n }\n half = null;\n }\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (format_2_1 && !format_2_1.done && (_a = format_2.return)) _a.call(format_2);\n }\n finally { if (e_2) throw e_2.error; }\n }\n utils_1.assert(inputStack.length === 0, inputStack.length + \" Bytes remaining to parse\");\n return result;\n}\nexports.scanQuery = scanQuery;\nfunction BCD2int(bcd /* max 32 bits */) {\n var value = 0;\n var nibble = 0;\n while (bcd !== 0) {\n var nibbleValue = bcd & 0xf;\n bcd = bcd >>> 4;\n value += nibbleValue * Math.pow(10, nibble);\n nibble += 1;\n }\n return value;\n}\nexports.BCD2int = BCD2int;\nfunction int2BCD(value, length) {\n var _a;\n if (length === void 0) { length = 1; }\n if (length > 4) {\n throw new Error(\"Unsupported length. Max allowed is 4\");\n }\n if (value > Math.pow(10, length * 2) - 1) {\n throw new Error(\"Value \" + value + \" cannot fit in \" + length + \" bytes in BCD\");\n }\n var bcd = 0;\n var nibble = 0;\n var nibbleValue;\n while (value) {\n _a = __read([Math.floor(value / 10), value % 10], 2), value = _a[0], nibbleValue = _a[1];\n bcd |= nibbleValue << (4 * nibble);\n nibble += 1;\n }\n return bcd;\n}\nexports.int2BCD = int2BCD;\n//# sourceMappingURL=query-utils.js.map","'use strict'\n\nexports.randomBytes = exports.rng = exports.pseudoRandomBytes = exports.prng = require('randombytes')\nexports.createHash = exports.Hash = require('create-hash')\nexports.createHmac = exports.Hmac = require('create-hmac')\n\nvar algos = require('browserify-sign/algos')\nvar algoKeys = Object.keys(algos)\nvar hashes = ['sha1', 'sha224', 'sha256', 'sha384', 'sha512', 'md5', 'rmd160'].concat(algoKeys)\nexports.getHashes = function () {\n return hashes\n}\n\nvar p = require('pbkdf2')\nexports.pbkdf2 = p.pbkdf2\nexports.pbkdf2Sync = p.pbkdf2Sync\n\nvar aes = require('browserify-cipher')\n\nexports.Cipher = aes.Cipher\nexports.createCipher = aes.createCipher\nexports.Cipheriv = aes.Cipheriv\nexports.createCipheriv = aes.createCipheriv\nexports.Decipher = aes.Decipher\nexports.createDecipher = aes.createDecipher\nexports.Decipheriv = aes.Decipheriv\nexports.createDecipheriv = aes.createDecipheriv\nexports.getCiphers = aes.getCiphers\nexports.listCiphers = aes.listCiphers\n\nvar dh = require('diffie-hellman')\n\nexports.DiffieHellmanGroup = dh.DiffieHellmanGroup\nexports.createDiffieHellmanGroup = dh.createDiffieHellmanGroup\nexports.getDiffieHellman = dh.getDiffieHellman\nexports.createDiffieHellman = dh.createDiffieHellman\nexports.DiffieHellman = dh.DiffieHellman\n\nvar sign = require('browserify-sign')\n\nexports.createSign = sign.createSign\nexports.Sign = sign.Sign\nexports.createVerify = sign.createVerify\nexports.Verify = sign.Verify\n\nexports.createECDH = require('create-ecdh')\n\nvar publicEncrypt = require('public-encrypt')\n\nexports.publicEncrypt = publicEncrypt.publicEncrypt\nexports.privateEncrypt = publicEncrypt.privateEncrypt\nexports.publicDecrypt = publicEncrypt.publicDecrypt\nexports.privateDecrypt = publicEncrypt.privateDecrypt\n\n// the least I can do is make error messages for the rest of the node.js/crypto api.\n// ;[\n// 'createCredentials'\n// ].forEach(function (name) {\n// exports[name] = function () {\n// throw new Error([\n// 'sorry, ' + name + ' is not implemented yet',\n// 'we accept pull requests',\n// 'https://github.com/crypto-browserify/crypto-browserify'\n// ].join('\\n'))\n// }\n// })\n\nvar rf = require('randomfill')\n\nexports.randomFill = rf.randomFill\nexports.randomFillSync = rf.randomFillSync\n\nexports.createCredentials = function () {\n throw new Error([\n 'sorry, createCredentials is not implemented yet',\n 'we accept pull requests',\n 'https://github.com/crypto-browserify/crypto-browserify'\n ].join('\\n'))\n}\n\nexports.constants = {\n 'DH_CHECK_P_NOT_SAFE_PRIME': 2,\n 'DH_CHECK_P_NOT_PRIME': 1,\n 'DH_UNABLE_TO_CHECK_GENERATOR': 4,\n 'DH_NOT_SUITABLE_GENERATOR': 8,\n 'NPN_ENABLED': 1,\n 'ALPN_ENABLED': 1,\n 'RSA_PKCS1_PADDING': 1,\n 'RSA_SSLV23_PADDING': 2,\n 'RSA_NO_PADDING': 3,\n 'RSA_PKCS1_OAEP_PADDING': 4,\n 'RSA_X931_PADDING': 5,\n 'RSA_PKCS1_PSS_PADDING': 6,\n 'POINT_CONVERSION_COMPRESSED': 2,\n 'POINT_CONVERSION_UNCOMPRESSED': 4,\n 'POINT_CONVERSION_HYBRID': 6\n}\n","'use strict';\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar Buffer = require('safe-buffer').Buffer;\nvar util = require('util');\n\nfunction copyBuffer(src, target, offset) {\n src.copy(target, offset);\n}\n\nmodule.exports = function () {\n function BufferList() {\n _classCallCheck(this, BufferList);\n\n this.head = null;\n this.tail = null;\n this.length = 0;\n }\n\n BufferList.prototype.push = function push(v) {\n var entry = { data: v, next: null };\n if (this.length > 0) this.tail.next = entry;else this.head = entry;\n this.tail = entry;\n ++this.length;\n };\n\n BufferList.prototype.unshift = function unshift(v) {\n var entry = { data: v, next: this.head };\n if (this.length === 0) this.tail = entry;\n this.head = entry;\n ++this.length;\n };\n\n BufferList.prototype.shift = function shift() {\n if (this.length === 0) return;\n var ret = this.head.data;\n if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;\n --this.length;\n return ret;\n };\n\n BufferList.prototype.clear = function clear() {\n this.head = this.tail = null;\n this.length = 0;\n };\n\n BufferList.prototype.join = function join(s) {\n if (this.length === 0) return '';\n var p = this.head;\n var ret = '' + p.data;\n while (p = p.next) {\n ret += s + p.data;\n }return ret;\n };\n\n BufferList.prototype.concat = function concat(n) {\n if (this.length === 0) return Buffer.alloc(0);\n if (this.length === 1) return this.head.data;\n var ret = Buffer.allocUnsafe(n >>> 0);\n var p = this.head;\n var i = 0;\n while (p) {\n copyBuffer(p.data, ret, i);\n i += p.data.length;\n p = p.next;\n }\n return ret;\n };\n\n return BufferList;\n}();\n\nif (util && util.inspect && util.inspect.custom) {\n module.exports.prototype[util.inspect.custom] = function () {\n var obj = util.inspect({ length: this.length });\n return this.constructor.name + ' ' + obj;\n };\n}","var scope = (typeof global !== \"undefined\" && global) ||\n (typeof self !== \"undefined\" && self) ||\n window;\nvar apply = Function.prototype.apply;\n\n// DOM APIs, for completeness\n\nexports.setTimeout = function() {\n return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);\n};\nexports.setInterval = function() {\n return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);\n};\nexports.clearTimeout =\nexports.clearInterval = function(timeout) {\n if (timeout) {\n timeout.close();\n }\n};\n\nfunction Timeout(id, clearFn) {\n this._id = id;\n this._clearFn = clearFn;\n}\nTimeout.prototype.unref = Timeout.prototype.ref = function() {};\nTimeout.prototype.close = function() {\n this._clearFn.call(scope, this._id);\n};\n\n// Does not start the time, just sets up the members needed.\nexports.enroll = function(item, msecs) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = msecs;\n};\n\nexports.unenroll = function(item) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = -1;\n};\n\nexports._unrefActive = exports.active = function(item) {\n clearTimeout(item._idleTimeoutId);\n\n var msecs = item._idleTimeout;\n if (msecs >= 0) {\n item._idleTimeoutId = setTimeout(function onTimeout() {\n if (item._onTimeout)\n item._onTimeout();\n }, msecs);\n }\n};\n\n// setimmediate attaches itself to the global object\nrequire(\"setimmediate\");\n// On some exotic environments, it's not clear which object `setimmediate` was\n// able to install onto. Search each possibility in the same order as the\n// `setimmediate` library.\nexports.setImmediate = (typeof self !== \"undefined\" && self.setImmediate) ||\n (typeof global !== \"undefined\" && global.setImmediate) ||\n (this && this.setImmediate);\nexports.clearImmediate = (typeof self !== \"undefined\" && self.clearImmediate) ||\n (typeof global !== \"undefined\" && global.clearImmediate) ||\n (this && this.clearImmediate);\n","(function (global, undefined) {\n \"use strict\";\n\n if (global.setImmediate) {\n return;\n }\n\n var nextHandle = 1; // Spec says greater than zero\n var tasksByHandle = {};\n var currentlyRunningATask = false;\n var doc = global.document;\n var registerImmediate;\n\n function setImmediate(callback) {\n // Callback can either be a function or a string\n if (typeof callback !== \"function\") {\n callback = new Function(\"\" + callback);\n }\n // Copy function arguments\n var args = new Array(arguments.length - 1);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i + 1];\n }\n // Store and register the task\n var task = { callback: callback, args: args };\n tasksByHandle[nextHandle] = task;\n registerImmediate(nextHandle);\n return nextHandle++;\n }\n\n function clearImmediate(handle) {\n delete tasksByHandle[handle];\n }\n\n function run(task) {\n var callback = task.callback;\n var args = task.args;\n switch (args.length) {\n case 0:\n callback();\n break;\n case 1:\n callback(args[0]);\n break;\n case 2:\n callback(args[0], args[1]);\n break;\n case 3:\n callback(args[0], args[1], args[2]);\n break;\n default:\n callback.apply(undefined, args);\n break;\n }\n }\n\n function runIfPresent(handle) {\n // From the spec: \"Wait until any invocations of this algorithm started before this one have completed.\"\n // So if we're currently running a task, we'll need to delay this invocation.\n if (currentlyRunningATask) {\n // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a\n // \"too much recursion\" error.\n setTimeout(runIfPresent, 0, handle);\n } else {\n var task = tasksByHandle[handle];\n if (task) {\n currentlyRunningATask = true;\n try {\n run(task);\n } finally {\n clearImmediate(handle);\n currentlyRunningATask = false;\n }\n }\n }\n }\n\n function installNextTickImplementation() {\n registerImmediate = function(handle) {\n process.nextTick(function () { runIfPresent(handle); });\n };\n }\n\n function canUsePostMessage() {\n // The test against `importScripts` prevents this implementation from being installed inside a web worker,\n // where `global.postMessage` means something completely different and can't be used for this purpose.\n if (global.postMessage && !global.importScripts) {\n var postMessageIsAsynchronous = true;\n var oldOnMessage = global.onmessage;\n global.onmessage = function() {\n postMessageIsAsynchronous = false;\n };\n global.postMessage(\"\", \"*\");\n global.onmessage = oldOnMessage;\n return postMessageIsAsynchronous;\n }\n }\n\n function installPostMessageImplementation() {\n // Installs an event handler on `global` for the `message` event: see\n // * https://developer.mozilla.org/en/DOM/window.postMessage\n // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages\n\n var messagePrefix = \"setImmediate$\" + Math.random() + \"$\";\n var onGlobalMessage = function(event) {\n if (event.source === global &&\n typeof event.data === \"string\" &&\n event.data.indexOf(messagePrefix) === 0) {\n runIfPresent(+event.data.slice(messagePrefix.length));\n }\n };\n\n if (global.addEventListener) {\n global.addEventListener(\"message\", onGlobalMessage, false);\n } else {\n global.attachEvent(\"onmessage\", onGlobalMessage);\n }\n\n registerImmediate = function(handle) {\n global.postMessage(messagePrefix + handle, \"*\");\n };\n }\n\n function installMessageChannelImplementation() {\n var channel = new MessageChannel();\n channel.port1.onmessage = function(event) {\n var handle = event.data;\n runIfPresent(handle);\n };\n\n registerImmediate = function(handle) {\n channel.port2.postMessage(handle);\n };\n }\n\n function installReadyStateChangeImplementation() {\n var html = doc.documentElement;\n registerImmediate = function(handle) {\n // Create a