ocearo-ui 0.1.18 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/404.html +1 -1
  2. package/README.fr.md +11 -13
  3. package/README.md +11 -13
  4. package/__next.__PAGE__.txt +4 -4
  5. package/__next._full.txt +12 -12
  6. package/__next._head.txt +4 -4
  7. package/__next._index.txt +4 -4
  8. package/__next._tree.txt +2 -2
  9. package/_next/static/chunks/009rlietvsaq2.js +1 -0
  10. package/_next/static/chunks/070stlm97b9a2.js +1 -0
  11. package/_next/static/chunks/08gn5_gd6amkq.js +1 -0
  12. package/_next/static/chunks/{1a24eba0d892e1dc.js → 0jzbiie0nzar2.js} +1 -1
  13. package/_next/static/chunks/0ri_um14-5x7u.js +1 -0
  14. package/_next/static/chunks/0utifqhyv2cuc.js +1 -0
  15. package/_next/static/chunks/0uvr7xkt_5uno.js +1 -0
  16. package/_next/static/chunks/0wzr1__so6xme.js +1 -0
  17. package/_next/static/chunks/0zjxnzbxh76mt.js +1 -0
  18. package/_next/static/chunks/11ln9lzzbo35q.js +1 -0
  19. package/_next/static/chunks/1bz0tcmhjmjgh.js +1 -0
  20. package/_next/static/chunks/1gizigk3w6q7j.js +31 -0
  21. package/_next/static/chunks/1porlo35ga4zu.js +1 -0
  22. package/_next/static/chunks/1ptwltjb3h6jf.js +4 -0
  23. package/_next/static/chunks/{c2ca71308a46ad5c.js → 1sq_733weprvs.js} +1 -1
  24. package/_next/static/chunks/1w1ua0-p5lk1e.js +38 -0
  25. package/_next/static/chunks/1wv5e5qomv-7g.css +3 -0
  26. package/_next/static/chunks/27hn45pv56pv7.js +393 -0
  27. package/_next/static/chunks/28y-j215vt42m.js +1 -0
  28. package/_next/static/chunks/29-ag86gvlc40.js +9 -0
  29. package/_next/static/chunks/2a0yjir_3mk1m.js +1 -0
  30. package/_next/static/chunks/2atijj_pkc4uc.js +2 -0
  31. package/_next/static/chunks/2baz6j1q913qw.js +1 -0
  32. package/_next/static/chunks/2ccpehidlaq88.js +1 -0
  33. package/_next/static/chunks/2lez3uww9j4t0.js +135 -0
  34. package/_next/static/chunks/2lvvt2f1l5sfu.js +1 -0
  35. package/_next/static/chunks/2nd5amcst4lhp.js +1 -0
  36. package/_next/static/chunks/2nxsyowmuwpjy.js +1 -0
  37. package/_next/static/chunks/2pwmb4pkqygy_.js +1 -0
  38. package/_next/static/chunks/2uao1hfsz-oy8.js +1 -0
  39. package/_next/static/chunks/2yghvponatk1x.js +135 -0
  40. package/_next/static/chunks/31i14-jemhnic.js +863 -0
  41. package/_next/static/chunks/{ef44382534be9f84.js → 32cbrrsp-x35l.js} +1 -1
  42. package/_next/static/chunks/36ra6xjie0dsv.js +9 -0
  43. package/_next/static/chunks/3dt63tw_9r0jt.js +38 -0
  44. package/_next/static/chunks/3jh1u-s3k0bkk.js +1 -0
  45. package/_next/static/chunks/3jupxlga7r_do.js +1 -0
  46. package/_next/static/chunks/{607b77f84fd065f0.js → 3m57lnggu30tr.js} +2 -2
  47. package/_next/static/chunks/3rhgquok36e79.js +1 -0
  48. package/_next/static/chunks/3sgrkzk20mxs6.js +54 -0
  49. package/_next/static/chunks/{149eaabf92bb073c.js → 42dfiu6iby3fq.js} +1 -1
  50. package/_next/static/chunks/43ps2cu5ahf8n.js +3 -0
  51. package/_next/static/chunks/turbopack-0pirmko-w-775.js +1 -0
  52. package/_next/static/hlKDicTyNGfd7dmHqo5m5/_clientMiddlewareManifest.js +1 -0
  53. package/_not-found/__next._full.txt +13 -11
  54. package/_not-found/__next._head.txt +4 -4
  55. package/_not-found/__next._index.txt +4 -4
  56. package/_not-found/__next._not-found.__PAGE__.txt +2 -2
  57. package/_not-found/__next._not-found.txt +4 -3
  58. package/_not-found/__next._tree.txt +2 -2
  59. package/_not-found.html +1 -1
  60. package/_not-found.txt +13 -11
  61. package/ais-preview/index.html +263 -0
  62. package/ais-preview/meshy/README.md +23 -0
  63. package/ais-preview/vessels.js +316 -0
  64. package/ais-preview/web/ATTRIBUTION.md +25 -0
  65. package/ais-preview/web/ais-30.glb +0 -0
  66. package/ais-preview/web/ais-31.glb +0 -0
  67. package/ais-preview/web/ais-35.glb +0 -0
  68. package/ais-preview/web/ais-36.glb +0 -0
  69. package/ais-preview/web/ais-37.glb +0 -0
  70. package/ais-preview/web/ais-40.glb +0 -0
  71. package/ais-preview/web/ais-50.glb +0 -0
  72. package/ais-preview/web/ais-60.glb +0 -0
  73. package/ais-preview/web/ais-70.glb +0 -0
  74. package/ais-preview/web/ais-80.glb +0 -0
  75. package/boats/ais/ais-30.glb +0 -0
  76. package/boats/ais/ais-31.glb +0 -0
  77. package/boats/ais/ais-35.glb +0 -0
  78. package/boats/ais/ais-36.glb +0 -0
  79. package/boats/ais/ais-37.glb +0 -0
  80. package/boats/ais/ais-40.glb +0 -0
  81. package/boats/ais/ais-50.glb +0 -0
  82. package/boats/ais/ais-60.glb +0 -0
  83. package/boats/ais/ais-70.glb +0 -0
  84. package/boats/ais/ais-80.glb +0 -0
  85. package/index.html +1 -1
  86. package/index.txt +12 -12
  87. package/package.json +18 -19
  88. package/settings/__next._full.txt +15 -13
  89. package/settings/__next._head.txt +4 -4
  90. package/settings/__next._index.txt +4 -4
  91. package/settings/__next._tree.txt +2 -2
  92. package/settings/__next.settings.__PAGE__.txt +4 -4
  93. package/settings/__next.settings.txt +4 -3
  94. package/settings.html +1 -1
  95. package/settings.txt +15 -13
  96. package/_next/static/chunks/045c83caa4d15373.js +0 -1
  97. package/_next/static/chunks/04cc0e5e9b2549b5.js +0 -2
  98. package/_next/static/chunks/05498d2aba8ad072.js +0 -1
  99. package/_next/static/chunks/056bb58d7d0223f4.js +0 -1
  100. package/_next/static/chunks/06e0cd4a5af05adb.js +0 -1
  101. package/_next/static/chunks/0df9a48159a5de95.js +0 -135
  102. package/_next/static/chunks/19d7af5c164315cb.js +0 -1
  103. package/_next/static/chunks/2296899bc46a0855.js +0 -1
  104. package/_next/static/chunks/2474c03b842c10ab.js +0 -38
  105. package/_next/static/chunks/290728133a3e7513.js +0 -9
  106. package/_next/static/chunks/33a3c72f455c2711.js +0 -1
  107. package/_next/static/chunks/3abe6b32c7676e49.js +0 -1
  108. package/_next/static/chunks/3b9428693f2cc0d6.js +0 -1
  109. package/_next/static/chunks/4573d1a032e56240.js +0 -1
  110. package/_next/static/chunks/46da3d80b0234973.js +0 -1
  111. package/_next/static/chunks/4974092397cafa41.js +0 -1
  112. package/_next/static/chunks/4a440e0aa6a0e7f7.js +0 -135
  113. package/_next/static/chunks/55be29098903fc19.js +0 -1
  114. package/_next/static/chunks/611f819ef2b8cd4e.js +0 -38
  115. package/_next/static/chunks/727710e55f003daf.js +0 -36
  116. package/_next/static/chunks/72c822cfe5b6f4f2.js +0 -4
  117. package/_next/static/chunks/72d89c358c0d5483.js +0 -1
  118. package/_next/static/chunks/7c60d9d425c20d52.js +0 -1
  119. package/_next/static/chunks/7d74814a0cc0f1a8.js +0 -1
  120. package/_next/static/chunks/8610c545018747f6.css +0 -3
  121. package/_next/static/chunks/8bf2a6eefe03fbc9.js +0 -1
  122. package/_next/static/chunks/a2dfb6fc5208ab9b.js +0 -1
  123. package/_next/static/chunks/a5243176ef1c1147.js +0 -3
  124. package/_next/static/chunks/a59b67714973a59e.js +0 -1
  125. package/_next/static/chunks/a6dad97d9634a72d.js.map +0 -1
  126. package/_next/static/chunks/b08b2ebeb951051c.js +0 -1
  127. package/_next/static/chunks/b9d9a7e1cf2f6019.js +0 -1
  128. package/_next/static/chunks/b9fde64db49c8fdf.js +0 -1
  129. package/_next/static/chunks/ba6e6b346e330c1c.js +0 -1
  130. package/_next/static/chunks/c4793aebac6a4506.js +0 -54
  131. package/_next/static/chunks/c5ca29b672fb8724.js +0 -1
  132. package/_next/static/chunks/ca5d1b461892da4b.js +0 -1
  133. package/_next/static/chunks/dc7a868e9a2740f1.js +0 -9
  134. package/_next/static/chunks/e63b192414a38d4f.js +0 -783
  135. package/_next/static/chunks/eae6a84b628658b8.js +0 -362
  136. package/_next/static/chunks/ed1a1adcf94d3203.js +0 -1
  137. package/_next/static/chunks/f0df051aa5b9aee8.js +0 -1
  138. package/_next/static/chunks/fe9ff98ffedd5a18.js +0 -1
  139. package/_next/static/chunks/ff5e78db2e2b69dd.js +0 -1
  140. package/_next/static/chunks/turbopack-eb3e32db84948efc.js +0 -4
  141. package/_next/static/fEaz-HJDfJbXQ22pI4nGl/_clientMiddlewareManifest.json +0 -1
  142. /package/_next/static/chunks/{c8017b80fde2edc8.js → 0abo2oxxw3hpi.js} +0 -0
  143. /package/_next/static/chunks/{a6dad97d9634a72d.js → 0cz1d0mv5g_q7.js} +0 -0
  144. /package/_next/static/chunks/{4701c1fd00af0aba.js → 0l9s4rhr00adq.js} +0 -0
  145. /package/_next/static/chunks/{ff1a16fafef87110.js → 1d4h-sglyo8ft.js} +0 -0
  146. /package/_next/static/chunks/{026b02dd01b65e37.js → 2rsdqsatgq9ta.js} +0 -0
  147. /package/_next/static/chunks/{9395de7f841f8cc6.js → 2urimbxg5bqv3.js} +0 -0
  148. /package/_next/static/chunks/{fba1dfce801bc8b9.js → 3iuz3f0429awx.js} +0 -0
  149. /package/_next/static/{fEaz-HJDfJbXQ22pI4nGl → hlKDicTyNGfd7dmHqo5m5}/_buildManifest.js +0 -0
  150. /package/_next/static/{fEaz-HJDfJbXQ22pI4nGl → hlKDicTyNGfd7dmHqo5m5}/_ssgManifest.js +0 -0
  151. /package/_next/static/media/{GeistMonoVF-s.2cee7d16.woff → GeistMonoVF-s.1lv5tp2fpjxdz.woff} +0 -0
  152. /package/_next/static/media/{GeistVF-s.4c3c0b96.woff → GeistVF-s.0e569l9b0bre8.woff} +0 -0
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,78492,(e,t,r)=>{"use strict";var n=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function s(e,t,r,n,o){if("function"!=typeof r)throw TypeError("The listener must be a function");var s=new a(r,n||e,o),u=i?i+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function u(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function l(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),new o().__proto__||(i=!1)),l.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},l.prototype.listeners=function(e){var t=i?i+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,o=r.length,a=Array(o);n<o;n++)a[n]=r[n].fn;return a},l.prototype.listenerCount=function(e){var t=i?i+e:e,r=this._events[t];return r?r.fn?1:r.length:0},l.prototype.emit=function(e,t,r,n,o,a){var s=i?i+e:e;if(!this._events[s])return!1;var u,l,f=this._events[s],c=arguments.length;if(f.fn){switch(f.once&&this.removeListener(e,f.fn,void 0,!0),c){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,t),!0;case 3:return f.fn.call(f.context,t,r),!0;case 4:return f.fn.call(f.context,t,r,n),!0;case 5:return f.fn.call(f.context,t,r,n,o),!0;case 6:return f.fn.call(f.context,t,r,n,o,a),!0}for(l=1,u=Array(c-1);l<c;l++)u[l-1]=arguments[l];f.fn.apply(f.context,u)}else{var h,p=f.length;for(l=0;l<p;l++)switch(f[l].once&&this.removeListener(e,f[l].fn,void 0,!0),c){case 1:f[l].fn.call(f[l].context);break;case 2:f[l].fn.call(f[l].context,t);break;case 3:f[l].fn.call(f[l].context,t,r);break;case 4:f[l].fn.call(f[l].context,t,r,n);break;default:if(!u)for(h=1,u=Array(c-1);h<c;h++)u[h-1]=arguments[h];f[l].fn.apply(f[l].context,u)}}return!0},l.prototype.on=function(e,t,r){return s(this,e,t,r,!1)},l.prototype.once=function(e,t,r){return s(this,e,t,r,!0)},l.prototype.removeListener=function(e,t,r,n){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return u(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||n&&!a.once||r&&a.context!==r||u(this,o);else{for(var s=0,l=[],f=a.length;s<f;s++)(a[s].fn!==t||n&&!a[s].once||r&&a[s].context!==r)&&l.push(a[s]);l.length?this._events[o]=1===l.length?l[0]:l:u(this,o)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&u(this,t)):(this._events=new o,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=i,l.EventEmitter=l,t.exports=l},58033,(e,t,r)=>{var n=null;t.exports=n="u">typeof WebSocket?WebSocket:"u">typeof MozWebSocket?MozWebSocket:e.g.WebSocket||e.g.MozWebSocket},20502,(e,t,r)=>{var n="u">typeof globalThis&&globalThis||"u">typeof self&&self||e.g,i=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();(function(t){var r=void 0!==i&&i||"u">typeof self&&self||e.g||{},n={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(n.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(e){return e&&o.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n.iterable&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function c(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}}function h(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function p(e){var t=new FileReader,r=h(t);return t.readAsArrayBuffer(e),r}function d(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(n.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(n.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var t;n.arrayBuffer&&n.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=d(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=d(e):this._bodyText=e=Object.prototype.toString.call(e)}else this._noBody=!0,this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var e=c(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=c(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(n.blob)return this.blob().then(p);throw Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n,i,o=c(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,r=h(t=new FileReader),i=(n=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?n[1]:"utf-8",t.readAsText(e,i),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},n.formData&&(this.formData=function(){return this.text().then(m)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=s(e),t=u(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},f.prototype.delete=function(e){delete this.map[s(e)]},f.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},f.prototype.set=function(e,t){this.map[s(e)]=u(t)},f.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},f.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),l(e)},f.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),l(e)},f.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),l(e)},n.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);var g=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function b(e,t){if(!(this instanceof b))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,i,o=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new f(t.headers)),this.method=(i=(n=t.method||this.method||"GET").toUpperCase(),g.indexOf(i)>-1?i:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return new AbortController().signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function m(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function v(e,t){if(!(this instanceof v))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var w=[301,302,303,307,308];v.redirect=function(e,t){if(-1===w.indexOf(t))throw RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,i){return new Promise(function(o,a){var l=new b(e,i);if(l.signal&&l.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function h(){c.abort()}if(c.onload=function(){var e,t,r={statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();try{t.append(n,i)}catch(e){console.warn("Response "+e.message)}}}),t)};0===l.url.indexOf("file://")&&(c.status<200||c.status>599)?r.status=200:r.status=c.status,r.url="responseURL"in c?c.responseURL:r.headers.get("X-Request-URL");var n="response"in c?c.response:c.responseText;setTimeout(function(){o(new v(n,r))},0)},c.onerror=function(){setTimeout(function(){a(TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){a(TypeError("Network request timed out"))},0)},c.onabort=function(){setTimeout(function(){a(new t.DOMException("Aborted","AbortError"))},0)},c.open(l.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(l.url),!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&(n.blob?c.responseType="blob":n.arrayBuffer&&(c.responseType="arraybuffer")),i&&"object"==typeof i.headers&&!(i.headers instanceof f||r.Headers&&i.headers instanceof r.Headers)){var p=[];Object.getOwnPropertyNames(i.headers).forEach(function(e){p.push(s(e)),c.setRequestHeader(e,u(i.headers[e]))}),l.headers.forEach(function(e,t){-1===p.indexOf(t)&&c.setRequestHeader(t,e)})}else l.headers.forEach(function(e,t){c.setRequestHeader(t,e)});l.signal&&(l.signal.addEventListener("abort",h),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",h)}),c.send(void 0===l._bodyInit?null:l._bodyInit)})}S.polyfill=!0,r.fetch||(r.fetch=S,r.Headers=f,r.Request=b,r.Response=v),t.Headers=f,t.Request=b,t.Response=v,t.fetch=S,Object.defineProperty(t,"__esModule",{value:!0})})({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=n.fetch?n:i;(r=o.fetch).default=o.fetch,r.fetch=o.fetch,r.Headers=o.Headers,r.Request=o.Request,r.Response=o.Response,t.exports=r},76775,(e,t,r)=>{function n(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}t.exports=function(e,t){t=t||{};var r,i,o,a,s=typeof e;if("string"===s&&e.length>0){var u=e;if(!((u=String(u)).length>100)){var l=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(l){var f=parseFloat(l[1]);switch((l[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*f;case"weeks":case"week":case"w":return 6048e5*f;case"days":case"day":case"d":return 864e5*f;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*f;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*f;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*f;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:break}}}return}if("number"===s&&isFinite(e)){return t.long?(i=Math.abs(r=e))>=864e5?n(r,i,864e5,"day"):i>=36e5?n(r,i,36e5,"hour"):i>=6e4?n(r,i,6e4,"minute"):i>=1e3?n(r,i,1e3,"second"):r+" ms":(a=Math.abs(o=e))>=864e5?Math.round(o/864e5)+"d":a>=36e5?Math.round(o/36e5)+"h":a>=6e4?Math.round(o/6e4)+"m":a>=1e3?Math.round(o/1e3)+"s":o+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},7003,(e,t,r)=>{t.exports=function(t){function r(e){let t,i,o,a=null;function s(...e){if(!s.enabled)return;let n=Number(new Date);s.diff=n-(t||n),s.prev=t,s.curr=n,t=n,e[0]=r.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,n)=>{if("%%"===t)return"%";i++;let o=r.formatters[n];if("function"==typeof o){let r=e[i];t=o.call(s,r),e.splice(i,1),i--}return t}),r.formatArgs.call(s,e),(s.log||r.log).apply(s,e)}return s.namespace=e,s.useColors=r.useColors(),s.color=r.selectColor(e),s.extend=n,s.destroy=r.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==r.namespaces&&(i=r.namespaces,o=r.enabled(e)),o),set:e=>{a=e}}),"function"==typeof r.init&&r.init(s),s}function n(e,t){let n=r(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function i(e,t){let r=0,n=0,i=-1,o=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(i=n,o=r):r++,n++;else{if(-1===i)return!1;n=i+1,r=++o}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return r.debug=r,r.default=r,r.coerce=function(e){return e instanceof Error?e.stack||e.message:e},r.disable=function(){let e=[...r.names,...r.skips.map(e=>"-"+e)].join(",");return r.enable(""),e},r.enable=function(e){for(let t of(r.save(e),r.namespaces=e,r.names=[],r.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===t[0]?r.skips.push(t.slice(1)):r.names.push(t)},r.enabled=function(e){for(let t of r.skips)if(i(e,t))return!1;for(let t of r.names)if(i(e,t))return!0;return!1},r.humanize=e.r(76775),r.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach(e=>{r[e]=t[e]}),r.names=[],r.skips=[],r.formatters={},r.selectColor=function(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r)|0;return r.colors[Math.abs(t)%r.colors.length]},r.enable(r.load()),r}},48450,(e,t,r)=>{let n;var i=e.i(47167);r.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;e.splice(1,0,r,"color: inherit");let n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),e.splice(i,0,r)},r.save=function(e){try{e?r.storage.setItem("debug",e):r.storage.removeItem("debug")}catch(e){}},r.load=function(){let e;try{e=r.storage.getItem("debug")||r.storage.getItem("DEBUG")}catch(e){}return!e&&void 0!==i.default&&"env"in i.default&&(e=i.default.env.DEBUG),e},r.useColors=function(){let e;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},r.storage=function(){try{return localStorage}catch(e){}}(),n=!1,r.destroy=()=>{n||(n=!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`."))},r.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"],r.log=console.debug||console.log||(()=>{}),t.exports=e.r(7003)(r);let{formatters:o}=t.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},67034,(e,t,r)=>{var n={675:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=u(e),a=o[0],s=o[1],l=new i((a+s)*3/4-s),f=0,c=s>0?a-4:a;for(r=0;r<c;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],l[f++]=t>>16&255,l[f++]=t>>8&255,l[f++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[f++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[f++]=t>>8&255,l[f++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(function(e,t,n){for(var i,o=[],a=t;a<n;a+=3)i=(e[a]<<16&0xff0000)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},72:function(e,t,r){"use strict";var n=r(675),i=r(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return f(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|p(n,i),u=a(o),l=u.write(n,i);return l!==o&&(u=u.slice(0,l)),u}if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(C(e,ArrayBuffer)||e&&C(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(C(e,SharedArrayBuffer)||e&&C(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var f=e.valueOf&&e.valueOf();if(null!=f&&f!==e)return s.from(f,t,r);var d=function(e){if(s.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?a(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(d)return d;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return l(e),a(e<0?0:0|h(e))}function c(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!s.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(l(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return f(e)},s.allocUnsafeSlow=function(e){return f(e)};function h(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||C(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return R(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return x(e).length;default:if(i)return n?-1:R(e).length;t=(""+t).toLowerCase(),i=!0}}function d(e,t,r){var i,o,a,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=k[e[o]];return i}(this,t,r);case"utf8":case"utf-8":return m(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=this,o=t,a=r,0===o&&a===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(o,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,t,r);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){var o;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return b(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){var o,a=1,s=e.length,u=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;a=2,s/=2,u/=2,r/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var f=-1;for(o=r;o<s;o++)if(l(e,o)===l(t,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===u)return f*a}else -1!==f&&(o-=o-f),f=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var c=!0,h=0;h<u;h++)if(l(e,o+h)!==l(t,h)){c=!1;break}if(c)return o}return -1}s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(C(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),C(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=s.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(C(o,Uint8Array)&&(o=s.from(o)),!s.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?m(this,0,e):d.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(C(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);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 RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,u=Math.min(o,a),l=this.slice(n,i),f=e.slice(t,r),c=0;c<u;++c)if(l[c]!==f[c]){o=l[c],a=f[c];break}return o<a?-1:+(a<o)},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)};function m(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,u,l=e[i],f=null,c=l>239?4:l>223?3:l>191?2:1;if(i+c<=r)switch(c){case 1:l<128&&(f=l);break;case 2:(192&(o=e[i+1]))==128&&(u=(31&l)<<6|63&o)>127&&(f=u);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,c=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=c}var h=n,p=h.length;if(p<=4096)return String.fromCharCode.apply(String,h);for(var d="",y=0;y<p;)d+=String.fromCharCode.apply(String,h.slice(y,y+=4096));return d}function v(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function S(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function _(e,t,r,n,o){return t*=1,r>>>=0,o||S(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function E(e,t,r,n,o){return t*=1,r>>>=0,o||S(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,u,l,f,c,h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s,u=parseInt(t.substr(2*a,2),16);if((s=u)!=s)break;e[r+a]=u}return a}(this,e,t,r);case"utf8":case"utf-8":return i=t,o=r,T(R(e,this.length-i),this,i,o);case"ascii":return a=t,s=r,T(O(e),this,a,s);case"latin1":case"binary":return function(e,t,r,n){return T(O(t),e,r,n)}(this,e,t,r);case"base64":return u=t,l=r,T(x(e),this,u,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f=t,c=r,T(function(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(e,this.length-f),this,f,c);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUInt8=function(e,t){return e>>>=0,t||v(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||v(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||v(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||v(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||v(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||v(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a<r&&(o*=256);)this[t+a]=e/o&255;return t+r},s.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return _(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return _(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return E(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return E(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var o=i-1;o>=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=s.isBuffer(e)?e:s.from(e,n),u=a.length;if(0===u)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%u]}return this};var A=/[^+/0-9A-Za-z-_]/g;function R(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function O(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function x(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(A,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function T(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function C(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var k=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},783:function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,l=u>>1,f=-7,c=r?i-1:0,h=r?-1:1,p=e[t+c];for(c+=h,o=p&(1<<-f)-1,p>>=-f,f+=s;f>0;o=256*o+e[t+c],c+=h,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+e[t+c],c+=h,f-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=l}return(p?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,l=8*o-i-1,f=(1<<l)-1,c=f>>1,h=5960464477539062e-23*(23===i),p=n?0:o-1,d=n?1:-1,y=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+c>=1?t+=h/u:t+=h*Math.pow(2,1-c),t*u>=2&&(a++,u/=2),a+c>=f?(s=0,a=f):a+c>=1?(s=(t*u-1)*Math.pow(2,i),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[r+p]=255&a,p+=d,a/=256,l-=8);e[r+p-d]|=128*y}}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}},a=!0;try{n[e](r,r.exports,o),a=!1}finally{a&&delete i[e]}return r.exports}o.ab="/ROOT/node_modules/next/dist/compiled/buffer/",t.exports=o(72)},34582,(e,t,r)=>{"use strict";r.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},r.toByteArray=function(e){var t,r,n=l(e),a=n[0],s=n[1],u=new o((a+s)*3/4-s),f=0,c=s>0?a-4:a;for(r=0;r<c;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],u[f++]=t>>16&255,u[f++]=t>>8&255,u[f++]=255&t;return 2===s&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,u[f++]=255&t),1===s&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,u[f++]=t>>8&255,u[f++]=255&t),u},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a<s;a+=16383)o.push(function(e,t,r){for(var i,o=[],a=t;a<r;a+=3)i=(e[a]<<16&0xff0000)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(n[i>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],i=[],o="u">typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}i[45]=62,i[95]=63},38492,(e,t,r)=>{r.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,l=u>>1,f=-7,c=r?i-1:0,h=r?-1:1,p=e[t+c];for(c+=h,o=p&(1<<-f)-1,p>>=-f,f+=s;f>0;o=256*o+e[t+c],c+=h,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+e[t+c],c+=h,f-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=l}return(p?-1:1)*a*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var a,s,u,l=8*o-i-1,f=(1<<l)-1,c=f>>1,h=5960464477539062e-23*(23===i),p=n?0:o-1,d=n?1:-1,y=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+c>=1?t+=h/u:t+=h*Math.pow(2,1-c),t*u>=2&&(a++,u/=2),a+c>=f?(s=0,a=f):a+c>=1?(s=(t*u-1)*Math.pow(2,i),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[r+p]=255&a,p+=d,a/=256,l-=8);e[r+p-d]|=128*y}},43943,(e,t,r)=>{"use strict";let n=e.r(34582),i=e.r(38492),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return f(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);let r=0|d(n,i),o=a(r),u=o.write(n,i);return u!==r&&(o=o.slice(0,u)),o}if(ArrayBuffer.isView(e)){var o=e;if(B(o,Uint8Array)){let e=new Uint8Array(o);return h(e.buffer,e.byteOffset,e.byteLength)}return c(o)}if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let u=e.valueOf&&e.valueOf();if(null!=u&&u!==e)return s.from(u,t,r);let l=function(e){if(s.isBuffer(e)){let t=0|p(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?a(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(l)return l;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return l(e),a(e<0?0:0|p(e))}function c(e){let t=e.length<0?0:0|p(e.length),r=a(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function h(e,t,r){let n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),n}function p(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function d(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":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 I(e).length;default:if(i)return n?-1:L(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=N[e[n]];return i}(this,t,r);case"utf8":case"utf-8":return v(this,t,r);case"ascii":return function(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":var o,a,s;return o=this,a=t,s=r,0===a&&s===o.length?n.fromByteArray(o):n.fromByteArray(o.slice(a,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){let n=e.slice(t,r),i="";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}(this,t,r);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function g(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,i){var o;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return m(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){let o,a=1,s=e.length,u=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;a=2,s/=2,u/=2,r/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;o<s;o++)if(l(e,o)===l(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===u)return n*a}else -1!==n&&(o-=o-n),n=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){let r=!0;for(let n=0;n<u;n++)if(l(e,o+n)!==l(t,n)){r=!1;break}if(r)return o}return -1}function v(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i<r;){let t=e[i],o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,u;switch(a){case 1:t<128&&(o=t);break;case 2:(192&(r=e[i+1]))==128&&(u=(31&t)<<6|63&r)>127&&(o=u);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(u=(15&t)<<12|(63&r)<<6|63&n)>2047&&(u<55296||u>57343)&&(o=u);break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],(192&r)==128&&(192&n)==128&&(192&s)==128&&(u=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s)>65535&&u<1114112&&(o=u)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}var o=n;let a=o.length;if(a<=4096)return String.fromCharCode.apply(String,o);let s="",u=0;for(;u<a;)s+=String.fromCharCode.apply(String,o.slice(u,u+=4096));return s}function w(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function S(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function _(e,t,r,n,i){k(t,n,i,e,r,7);let o=Number(t&BigInt(0xffffffff));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function E(e,t,r,n,i){k(t,n,i,e,r,7);let o=Number(t&BigInt(0xffffffff));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function A(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function R(e,t,r,n,o){return t*=1,r>>>=0,o||A(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function O(e,t,r,n,o){return t*=1,r>>>=0,o||A(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}r.Buffer=s,r.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},r.INSPECT_MAX_BYTES=50,r.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!s.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(l(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return f(e)},s.allocUnsafeSlow=function(e){return f(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(B(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),B(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){let r;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;let n=s.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){let t=e[r];if(B(t,Uint8Array))i+t.length>n.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(s.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},s.byteLength=d,s.prototype._isBuffer=!0,s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?v(this,0,e):y.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let e="",t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(B(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);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 RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,a=r-t,u=Math.min(o,a),l=this.slice(n,i),f=e.slice(t,r);for(let e=0;e<u;++e)if(l[e]!==f[e]){o=l[e],a=f[e];break}return o<a?-1:+(a<o)},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return b(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return b(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){var i,o,a,s,u,l,f,c;if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let p=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let i;r=Number(r)||0;let o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;let a=t.length;for(n>a/2&&(n=a/2),i=0;i<n;++i){var s;let n=parseInt(t.substr(2*i,2),16);if((s=n)!=s)break;e[r+i]=n}return i}(this,e,t,r);case"utf8":case"utf-8":return i=t,o=r,U(L(e,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return a=t,s=r,U(function(e){let t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,a,s);case"base64":return u=t,l=r,U(I(e),this,u,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f=t,c=r,U(function(e,t){let r,n,i=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(e,this.length-f),this,f,c);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);let n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=D(function(e){M(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+0x1000000*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+0x1000000*r;return BigInt(n)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=D(function(e){M(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let n=0x1000000*t+65536*this[++e]+256*this[++e]+this[++e],i=0x1000000*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=D(function(e){M(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&P(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+0x1000000*this[++e])}),s.prototype.readBigInt64BE=D(function(e){M(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&P(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(0x1000000*this[++e]+65536*this[++e]+256*this[++e]+r)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;S(this,e,t,r,n,0)}let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;S(this,e,t,r,n,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=D(function(e,t=0){return _(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=D(function(e,t=0){return E(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){let n=Math.pow(2,8*r-1);S(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){let n=Math.pow(2,8*r-1);S(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=D(function(e,t=0){return _(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=D(function(e,t=0){return E(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,r){return R(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return R(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return O(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return O(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);let i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},s.prototype.fill=function(e,t,r,n){let i;if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){let t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{let o=s.isBuffer(e)?e:s.from(e,n),a=o.length;if(0===a)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%a]}return this};let x={};function T(e,t,r){x[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function C(e){let t="",r=e.length,n=+("-"===e[0]);for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function k(e,t,r,n,i,o){if(e>r||e<t){let n,i="bigint"==typeof t?"n":"";throw n=o>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new x.ERR_OUT_OF_RANGE("value",n,e)}M(i,"offset"),(void 0===n[i]||void 0===n[i+o])&&P(i,n.length-(o+1))}function M(e,t){if("number"!=typeof e)throw new x.ERR_INVALID_ARG_TYPE(t,"number",e)}function P(e,t,r){if(Math.floor(e)!==e)throw M(e,r),new x.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new x.ERR_BUFFER_OUT_OF_BOUNDS;throw new x.ERR_OUT_OF_RANGE(r||"offset",`>= ${+!!r} and <= ${t}`,e)}T("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),T("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),T("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>0x100000000?i=C(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=C(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let j=/[^+/0-9A-Za-z-_]/g;function L(e,t){let r;t=t||1/0;let n=e.length,i=null,o=[];for(let a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function I(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function B(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let N=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function D(e){return"u"<typeof BigInt?F:e}function F(){throw Error("BigInt not supported")}},30662,(e,t,r)=>{!function(){"use strict";var e={864:function(e){var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(r,n){var i,o,a;function s(r){e.removeListener(t,u),n(r)}function u(){"function"==typeof e.removeListener&&e.removeListener("error",s),r([].slice.call(arguments))}y(e,t,u,{once:!0}),"error"!==t&&(i=e,o=s,a={once:!0},"function"==typeof i.on&&y(i,"error",o,a))})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var i,o,a,l=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,console&&console.warn&&console.warn(l)}return e}function f(){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 c(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=f.bind(n);return i.listener=r,n.wrapFn=i,i}function h(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=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):d(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function d(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function y(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)n(u,this,t);else for(var l=u.length,f=d(u,l),r=0;r<l;++r)n(f[r],this,t);return!0},o.prototype.addListener=function(e,t){return l(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return l(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,c(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,c(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,i,o,a;if(s(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}}},r={};function n(t){var i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}},a=!0;try{e[t](o,o.exports,n),a=!1}finally{a&&delete r[t]}return o.exports}n.ab="/ROOT/node_modules/next/dist/compiled/events/",t.exports=n(864)}()},77398,(e,t,r)=>{var n=e.i(67034),i=e.i(47167),o={8992:function(e){e.exports=function(e,r,n){if(e.filter)return e.filter(r,n);if(null==e||"function"!=typeof r)throw TypeError();for(var i=[],o=0;o<e.length;o++)if(t.call(e,o)){var a=e[o];r.call(n,a,o,e)&&i.push(a)}return i};var t=Object.prototype.hasOwnProperty},5555:function(e,t,r){"use strict";var n=r(1212),i=r(1909),o=r(8737);e.exports=r(8772)||n.call(o,i)},9905:function(e,t,r){"use strict";var n=r(1212),i=r(1909),o=r(5555);e.exports=function(){return o(n,i,arguments)}},1909:function(e){"use strict";e.exports=Function.prototype.apply},8737:function(e){"use strict";e.exports=Function.prototype.call},7152:function(e,t,r){"use strict";var n=r(1212),i=r(8202),o=r(8737),a=r(5555);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(n,o,e)}},8772:function(e){"use strict";e.exports="u">typeof Reflect&&Reflect&&Reflect.apply},516:function(e,t,r){"use strict";var n=r(3197),i=r(9042),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},9042:function(e,t,r){"use strict";var n=r(3143),i=r(446),o=r(7152),a=r(9905);e.exports=function(e){var t=o(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},819:function(e,t,r){"use strict";var n=r(446),i=r(5182),o=r(8202),a=r(3990);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,f=arguments.length>6&&arguments[6],c=!!a&&a(e,t);if(n)n(e,t,{configurable:null===l&&c?c.configurable:!l,enumerable:null===s&&c?c.enumerable:!s,value:r,writable:null===u&&c?c.writable:!u});else if(!f&&(s||u||l))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},6211:function(e,t,r){"use strict";var n,i=r(7152),o=r(3990);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof u&&function(e){return u(null==e?e:s(e))}},446:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},7181:function(e){"use strict";e.exports=EvalError},1545:function(e){"use strict";e.exports=Error},22:function(e){"use strict";e.exports=RangeError},2803:function(e){"use strict";e.exports=ReferenceError},5182:function(e){"use strict";e.exports=SyntaxError},8202:function(e){"use strict";e.exports=TypeError},3284:function(e){"use strict";e.exports=URIError},2811:function(e){"use strict";e.exports=Object},6144:function(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,i){if("[object Function]"!==r.call(n))throw TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a<o;a++)n.call(i,e[a],a,e);else for(var s in e)t.call(e,s)&&n.call(i,e[s],s,e)}},3136:function(e){"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r},i=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},o=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var a,s=this;if("function"!=typeof s||"[object Function]"!==t.apply(s))throw TypeError("Function.prototype.bind called on incompatible "+s);for(var u=i(arguments,1),l=r(0,s.length-u.length),f=[],c=0;c<l;c++)f[c]="$"+c;if(a=Function("binder","return function ("+o(f,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var t=s.apply(this,n(u,arguments));return Object(t)===t?t:this}return s.apply(e,n(u,arguments))}),s.prototype){var h=function(){};h.prototype=s.prototype,a.prototype=new h,h.prototype=null}return a}},1212:function(e,t,r){"use strict";var n=r(3136);e.exports=Function.prototype.bind||n},3197:function(e,t,r){"use strict";var n,i=r(2811),o=r(1545),a=r(7181),s=r(22),u=r(2803),l=r(5182),f=r(8202),c=r(3284),h=r(7173),p=r(847),d=r(2916),y=r(9882),g=r(3291),b=r(553),m=r(8629),v=Function,w=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},S=r(3990),_=r(446),E=function(){throw new f},A=S?function(){try{return arguments.callee,E}catch(e){try{return S(arguments,"callee").get}catch(e){return E}}}():E,R=r(4871)(),O=r(699),x=r(7823),T=r(7904),C=r(1909),k=r(8737),M={},P="u">typeof Uint8Array&&O?O(Uint8Array):n,j={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":R&&O?O([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":M,"%AsyncGenerator%":M,"%AsyncGeneratorFunction%":M,"%AsyncIteratorPrototype%":M,"%Atomics%":"u"<typeof Atomics?n:Atomics,"%BigInt%":"u"<typeof BigInt?n:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"u"<typeof Float16Array?n:Float16Array,"%Float32Array%":"u"<typeof Float32Array?n:Float32Array,"%Float64Array%":"u"<typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":M,"%Int8Array%":"u"<typeof Int8Array?n:Int8Array,"%Int16Array%":"u"<typeof Int16Array?n:Int16Array,"%Int32Array%":"u"<typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":R&&O?O(O([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"u"<typeof Map?n:Map,"%MapIteratorPrototype%":"u">typeof Map&&R&&O?O((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?n:Promise,"%Proxy%":"u"<typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":"u"<typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?n:Set,"%SetIteratorPrototype%":"u">typeof Set&&R&&O?O((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":R&&O?O(""[Symbol.iterator]()):n,"%Symbol%":R?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":A,"%TypedArray%":P,"%TypeError%":f,"%Uint8Array%":"u"<typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?n:Uint32Array,"%URIError%":c,"%WeakMap%":"u"<typeof WeakMap?n:WeakMap,"%WeakRef%":"u"<typeof WeakRef?n:WeakRef,"%WeakSet%":"u"<typeof WeakSet?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":C,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":x,"%Math.abs%":h,"%Math.floor%":p,"%Math.max%":d,"%Math.min%":y,"%Math.pow%":g,"%Math.round%":b,"%Math.sign%":m,"%Reflect.getPrototypeOf%":T};if(O)try{null.error}catch(e){var L=O(O(e));j["%Error.prototype%"]=L}var I=function e(t){var r;if("%AsyncFunction%"===t)r=w("async function () {}");else if("%GeneratorFunction%"===t)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=w("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&O&&(r=O(i.prototype))}return j[t]=r,r},U={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},B=r(1212),N=r(3270),D=B.call(k,Array.prototype.concat),F=B.call(C,Array.prototype.splice),$=B.call(k,String.prototype.replace),W=B.call(k,String.prototype.slice),q=B.call(k,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,z=function(e){var t=W(e,0,1),r=W(e,-1);if("%"===t&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return $(e,H,function(e,t,r,i){n[n.length]=r?$(i,G,"$1"):t||e}),n},V=function(e,t){var r,n=e;if(N(U,n)&&(n="%"+(r=U[n])[0]+"%"),N(j,n)){var i=j[n];if(i===M&&(i=I(n)),void 0===i&&!t)throw new f("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new f("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new f('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=z(e),n=r.length>0?r[0]:"",i=V("%"+n+"%",t),o=i.name,a=i.value,s=!1,u=i.alias;u&&(n=u[0],F(r,D([0,1],u)));for(var c=1,h=!0;c<r.length;c+=1){var p=r[c],d=W(p,0,1),y=W(p,-1);if(('"'===d||"'"===d||"`"===d||'"'===y||"'"===y||"`"===y)&&d!==y)throw new l("property names with quotes must have matching quotes");if("constructor"!==p&&h||(s=!0),n+="."+p,N(j,o="%"+n+"%"))a=j[o];else if(null!=a){if(!(p in a)){if(!t)throw new f("base intrinsic for "+e+" exists, but the property is not available.");return}if(S&&c+1>=r.length){var g=S(a,p);a=(h=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[p]}else h=N(a,p),a=a[p];h&&!s&&(j[o]=a)}}return a}},7823:function(e,t,r){"use strict";e.exports=r(2811).getPrototypeOf||null},7904:function(e){"use strict";e.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},699:function(e,t,r){"use strict";var n=r(7904),i=r(7823),o=r(6211);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},4596:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},3990:function(e,t,r){"use strict";var n=r(4596);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},7122:function(e,t,r){"use strict";var n=r(446),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},9942:function(e,t,r){"use strict";var n="u">typeof Symbol&&Symbol,i=r(3773);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},3773:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},4871:function(e,t,r){"use strict";var n="u">typeof Symbol&&Symbol,i=r(5960);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},5960:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},3270:function(e,t,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty;e.exports=r(1212).call(n,i)},3782:function(e){"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}}},5157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,n=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===r.call(e)},i=function(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},o=function(){return n(arguments)}();n.isLegacyArguments=i,e.exports=o?n:i},3391:function(e){"use strict";var t=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.getPrototypeOf,a=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=a?o(a):{};e.exports=function(e){return"function"==typeof e&&(!!n.test(r.call(e))||(i?o(e)===s:"[object GeneratorFunction]"===t.call(e)))}},994:function(t,r,n){"use strict";var i=n(6144),o=n(1349),a=n(516),s=a("Object.prototype.toString"),u=n(9942)()&&"symbol"==typeof Symbol.toStringTag,l=o(),f=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},c=a("String.prototype.slice"),h={},p=n(2154),d=Object.getPrototypeOf;u&&p&&d&&i(l,function(t){var r=new e.g[t];if(!(Symbol.toStringTag in r))throw EvalError("this engine has support for Symbol.toStringTag, but "+t+" does not have the property! Please report this.");var n=d(r),i=p(n,Symbol.toStringTag);i||(i=p(d(n),Symbol.toStringTag)),h[t]=i.get});var y=function(e){var t=!1;return i(h,function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}}),t};t.exports=function(e){return!!e&&"object"==typeof e&&(u?!!p&&y(e):f(l,c(s(e),8,-1))>-1)}},7173:function(e){"use strict";e.exports=Math.abs},847:function(e){"use strict";e.exports=Math.floor},219:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},2916:function(e){"use strict";e.exports=Math.max},9882:function(e){"use strict";e.exports=Math.min},3291:function(e){"use strict";e.exports=Math.pow},553:function(e){"use strict";e.exports=Math.round},8629:function(e,t,r){"use strict";var n=r(219);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},3143:function(e,t,r){"use strict";var n=r(3197),i=r(819),o=r(7122)(),a=r(3990),s=r(8202),u=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||u(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,l=!0;if("length"in e&&a){var f=a(e,"length");f&&!f.configurable&&(n=!1),f&&!f.writable&&(l=!1)}return(n||l||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},2369:function(e){e.exports=function(e){return e instanceof n.Buffer}},5584:function(e,t,r){"use strict";var n=r(5157),i=r(3391),o=r(1490),a=r(994);function s(e){return e.call.bind(e)}var u="u">typeof BigInt,l="u">typeof Symbol,f=s(Object.prototype.toString),c=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(u)var d=s(BigInt.prototype.valueOf);if(l)var y=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function b(e){return"[object Map]"===f(e)}function m(e){return"[object Set]"===f(e)}function v(e){return"[object WeakMap]"===f(e)}function w(e){return"[object WeakSet]"===f(e)}function S(e){return"[object ArrayBuffer]"===f(e)}function _(e){return!("u"<typeof ArrayBuffer)&&(S.working?S(e):e instanceof ArrayBuffer)}function E(e){return"[object DataView]"===f(e)}function A(e){return!("u"<typeof DataView)&&(E.working?E(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"u">typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||A(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},b.working="u">typeof Map&&b(new Map),t.isMap=function(e){return!("u"<typeof Map)&&(b.working?b(e):e instanceof Map)},m.working="u">typeof Set&&m(new Set),t.isSet=function(e){return!("u"<typeof Set)&&(m.working?m(e):e instanceof Set)},v.working="u">typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return!("u"<typeof WeakMap)&&(v.working?v(e):e instanceof WeakMap)},w.working="u">typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},S.working="u">typeof ArrayBuffer&&S(new ArrayBuffer),t.isArrayBuffer=_,E.working="u">typeof ArrayBuffer&&"u">typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=A;var R="u">typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function O(e){return"[object SharedArrayBuffer]"===f(e)}function x(e){return void 0!==R&&(void 0===O.working&&(O.working=O(new R)),O.working?O(e):e instanceof R)}function T(e){return g(e,c)}function C(e){return g(e,h)}function k(e){return g(e,p)}function M(e){return u&&g(e,d)}function P(e){return l&&g(e,y)}t.isSharedArrayBuffer=x,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===f(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===f(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===f(e)},t.isGeneratorObject=function(e){return"[object Generator]"===f(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===f(e)},t.isNumberObject=T,t.isStringObject=C,t.isBooleanObject=k,t.isBigIntObject=M,t.isSymbolObject=P,t.isBoxedPrimitive=function(e){return T(e)||C(e)||k(e)||M(e)||P(e)},t.isAnyArrayBuffer=function(e){return"u">typeof Uint8Array&&(_(e)||x(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},8177:function(e,t,r){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(l(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r<i;s=n[++r])b(s)||!_(s)?a+=" "+s:a+=" "+l(s);return a},t.deprecate=function(e,r){if(void 0!==i.default&&!0===i.default.noDeprecation)return e;if(void 0===i.default)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;return function(){if(!n){if(i.default.throwDeprecation)throw Error(r);i.default.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(i.default.env.NODE_DEBUG){var u=i.default.env.NODE_DEBUG;s=RegExp("^"+(u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function l(e,r){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&t._extend(n,r),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=f),h(n,e,n.depth)}function f(e,t){var r=l.styles[t];return r?"\x1b["+l.colors[r][0]+"m"+e+"\x1b["+l.colors[r][1]+"m":e}function c(e,t){return e}function h(e,r,n){if(e.customInspect&&r&&R(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o,a,s,u,l,f=r.inspect(n,e);return v(f)||(f=h(e,f,n)),f}var c=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(v(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return m(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):b(t)?e.stylize("null","null"):void 0}(e,r);if(c)return c;var _=Object.keys(r),O=(u={},_.forEach(function(e,t){u[e]=!0}),u);if(e.showHidden&&(_=Object.getOwnPropertyNames(r)),A(r)&&(_.indexOf("message")>=0||_.indexOf("description")>=0))return p(r);if(0===_.length){if(R(r)){var x=r.name?": "+r.name:"";return e.stylize("[Function"+x+"]","special")}if(S(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(E(r))return e.stylize(Date.prototype.toString.call(r),"date");if(A(r))return p(r)}var T="",k=!1,M=["{","}"];if(y(r)&&(k=!0,M=["[","]"]),R(r)&&(T=" [Function"+(r.name?": "+r.name:"")+"]"),S(r)&&(T=" "+RegExp.prototype.toString.call(r)),E(r)&&(T=" "+Date.prototype.toUTCString.call(r)),A(r)&&(T=" "+p(r)),0===_.length&&(!k||0==r.length))return M[0]+T+M[1];if(n<0)if(S(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");else return e.stylize("[Object]","special");return e.seen.push(r),l=k?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)C(t,String(a))?o.push(d(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(d(e,t,r,n,i,!0))}),o}(e,r,n,O,_):_.map(function(t){return d(e,r,n,O,t,k)}),e.seen.pop(),i=l,o=T,a=M,s=0,i.reduce(function(e,t){return s++,t.indexOf("\n")>=0&&s++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?a[0]+(""===o?"":o+"\n ")+" "+i.join(",\n ")+" "+a[1]:a[0]+o+" "+i.join(", ")+" "+a[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),C(n,i)||(a="["+i+"]"),!s&&(0>e.seen.indexOf(u.value)?(s=b(r)?h(e,u.value,null):h(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),w(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function y(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function b(e){return null===e}function m(e){return"number"==typeof e}function v(e){return"string"==typeof e}function w(e){return void 0===e}function S(e){return _(e)&&"[object RegExp]"===O(e)}function _(e){return"object"==typeof e&&null!==e}function E(e){return _(e)&&"[object Date]"===O(e)}function A(e){return _(e)&&("[object Error]"===O(e)||e instanceof Error)}function R(e){return"function"==typeof e}function O(e){return Object.prototype.toString.call(e)}function x(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()])if(s.test(e)){var r=i.default.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(5584),t.isArray=y,t.isBoolean=g,t.isNull=b,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=w,t.isRegExp=S,t.types.isRegExp=S,t.isObject=_,t.isDate=E,t.types.isDate=E,t.isError=A,t.types.isNativeError=A,t.isFunction=R,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(2369);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(r=[x((e=new Date).getHours()),x(e.getMinutes()),x(e.getSeconds())].join(":"),[e.getDate(),T[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(3782),t._extend=function(e,t){if(!t||!_(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var k="u">typeof Symbol?Symbol("util.promisify.custom"):void 0;function M(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(k&&e[k]){var t=e[k];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,k,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),k&&Object.defineProperty(t,k,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=k,t.callbackify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw TypeError("The last argument must be of type Function");var o=this,a=function(){return n.apply(o,arguments)};e.apply(this,t).then(function(e){i.default.nextTick(a.bind(null,null,e))},function(e){i.default.nextTick(M.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}},1490:function(t,r,n){"use strict";var i=n(6144),o=n(1349),a=n(516),s=a("Object.prototype.toString"),u=n(9942)()&&"symbol"==typeof Symbol.toStringTag,l=o(),f=a("String.prototype.slice"),c={},h=n(2154),p=Object.getPrototypeOf;u&&h&&p&&i(l,function(t){if("function"==typeof e.g[t]){var r=new e.g[t];if(!(Symbol.toStringTag in r))throw EvalError("this engine has support for Symbol.toStringTag, but "+t+" does not have the property! Please report this.");var n=p(r),i=h(n,Symbol.toStringTag);i||(i=h(p(n),Symbol.toStringTag)),c[t]=i.get}});var d=function(e){var t=!1;return i(c,function(r,n){if(!t)try{var i=r.call(e);i===n&&(t=i)}catch(e){}}),t},y=n(994);t.exports=function(e){return!!y(e)&&(u?d(e):f(s(e),8,-1))}},1349:function(t,r,n){"use strict";var i=n(8992);t.exports=function(){return i(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(t){return"function"==typeof e.g[t]})}},2154:function(e,t,r){"use strict";e.exports=r(3990)}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}},n=!0;try{o[e](r,r.exports,s),n=!1}finally{n&&delete a[e]}return r.exports}s.ab="/ROOT/node_modules/next/dist/compiled/util/",t.exports=s(8177)},12569,(e,t,r)=>{var n=e.i(47167),i={782:function(e){"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}}},646:function(e){"use strict";let t={};function r(e,r,n){n||(n=Error);class i extends n{constructor(e,t,n){super(function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(e,t,n))}}i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){var i,o,a,s;let u,l;if("string"==typeof t&&(i="not ",t.substr(0,i.length)===i)?(u="must not be",t=t.replace(/^not /,"")):u="must be",o=" argument",(void 0===a||a>e.length)&&(a=e.length),e.substring(a-o.length,a)===o)l=`The ${e} ${u} ${n(t,"type")}`;else{let r=("number"!=typeof s&&(s=0),s+1>e.length||-1===e.indexOf(".",s))?"argument":"property";l=`The "${e}" ${r} ${u} ${n(t,"type")}`}return l+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=f;var o=r(709),a=r(337);r(782)(f,o);for(var s=i(a.prototype),u=0;u<s.length;u++){var l=s[u];f.prototype[l]||(f.prototype[l]=a.prototype[l])}function f(e){if(!(this instanceof f))return new f(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||n.default.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=i;var n=r(170);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(782)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},709:function(t,r,i){"use strict";t.exports=O,O.ReadableState=R,i(361).EventEmitter;var o,a,s,u,l,f=function(e,t){return e.listeners(t).length},c=i(678),h=i(300).Buffer,p=e.g.Uint8Array||function(){},d=i(837);a=d&&d.debuglog?d.debuglog("stream"):function(){};var y=i(379),g=i(25),b=i(776).getHighWaterMark,m=i(646).q,v=m.ERR_INVALID_ARG_TYPE,w=m.ERR_STREAM_PUSH_AFTER_EOF,S=m.ERR_METHOD_NOT_IMPLEMENTED,_=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(782)(O,c);var E=g.errorOrDestroy,A=["error","close","destroy","pause","resume"];function R(e,t,r){o=o||i(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=b(this,e,"readableHighWaterMark",r),this.buffer=new y,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.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=i(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function O(e){if(o=o||i(403),!(this instanceof O))return new O(e);var t=this instanceof o;this._readableState=new R(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function x(e,t,r,n,i){a("readableAddChunk",t);var o,s,u=e._readableState;if(null===t)u.reading=!1,function(e,t){if(a("onEofChunk"),!t.ended){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,t.sync?k(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,M(e)))}}(e,u);else if(i||(s=function(e,t){var r;return h.isBuffer(t)||t instanceof p||"string"==typeof t||void 0===t||e.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],t)),r}(u,t)),s)E(e,s);else if(u.objectMode||t&&t.length>0)if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===h.prototype||(o=t,t=h.from(o)),n)u.endEmitted?E(e,new _):T(e,u,t,!0);else if(u.ended)E(e,new w);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||0!==t.length?T(e,u,t,!1):P(e,u)):T(e,u,t,!1)}else n||(u.reading=!1,P(e,u));return!u.ended&&(u.length<u.highWaterMark||0===u.length)}function T(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&k(e)),P(e,t)}function C(e,t){var r;if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&((r=e)>=0x40000000?r=0x40000000:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),t.highWaterMark=r),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function k(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,n.default.nextTick(M,e))}function M(e){var t=e._readableState;a("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,B(e)}function P(e,t){t.readingMore||(t.readingMore=!0,n.default.nextTick(j,e,t))}function j(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function L(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function I(e){a("readable nexttick read 0"),e.read(0)}function U(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),B(e),t.flowing&&!t.reading&&e.read(0)}function B(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){var r;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)}function D(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.default.nextTick(F,t,e))}function F(e,t){if(a("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 $(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),O.prototype.destroy=g.destroy,O.prototype._undestroy=g.undestroy,O.prototype._destroy=function(e,t){t(e)},O.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=h.from(e,t),t=""),r=!0),x(this,e,t,!1,r)},O.prototype.unshift=function(e){return x(this,e,null,!0,!1)},O.prototype.isPaused=function(){return!1===this._readableState.flowing},O.prototype.setEncoding=function(e){s||(s=i(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";null!==r;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this},O.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?D(this):k(this),null;if(0===(e=C(e,r))&&r.ended)return 0===r.length&&D(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",i=!0),r.ended||r.reading?a("reading or ended",i=!1):i&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=C(n,r))),null===(t=e>0?N(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&D(this)),null!==t&&this.emit("data",t),t},O.prototype._read=function(e){E(this,new S("_read()"))},O.prototype.pipe=function(e,t){var r,i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,a("pipe count=%d opts=%j",o.pipesCount,t);var s=t&&!1===t.end||e===n.default.stdout||e===n.default.stderr?g:u;function u(){a("onend"),e.end()}o.endEmitted?n.default.nextTick(s):i.once("end",s),e.on("unpipe",function t(r,n){a("onunpipe"),r===i&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,a("cleanup"),e.removeListener("close",d),e.removeListener("finish",y),e.removeListener("drain",l),e.removeListener("error",p),e.removeListener("unpipe",t),i.removeListener("end",u),i.removeListener("end",g),i.removeListener("data",h),c=!0,o.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l())});var l=(r=i,function(){var e=r._readableState;a("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&f(r,"data")&&(e.flowing=!0,B(r))});e.on("drain",l);var c=!1;function h(t){a("ondata");var r=e.write(t);a("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==$(o.pipes,e))&&!c&&(a("false write response, pause",o.awaitDrain),o.awaitDrain++),i.pause())}function p(t){a("onerror",t),g(),e.removeListener("error",p),0===f(e,"error")&&E(e,t)}function d(){e.removeListener("finish",y),g()}function y(){a("onfinish"),e.removeListener("close",d),g()}function g(){a("unpipe"),i.unpipe(e)}return i.on("data",h),!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",p),e.once("close",d),e.once("finish",y),e.emit("pipe",i),o.flowing||(a("pipe resume"),i.resume()),e},O.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||(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 o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=$(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},O.prototype.on=function(e,t){var r=c.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,a("on readable",i.length,i.reading),i.length?k(this):i.reading||n.default.nextTick(I,this)),r},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var r=c.prototype.removeListener.call(this,e,t);return"readable"===e&&n.default.nextTick(L,this),r},O.prototype.removeAllListeners=function(e){var t=c.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&n.default.nextTick(L,this),t},O.prototype.resume=function(){var e,t,r=this._readableState;return r.flowing||(a("resume"),r.flowing=!r.readableListening,e=this,(t=r).resumeScheduled||(t.resumeScheduled=!0,n.default.nextTick(U,e,t))),r.paused=!1,this},O.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("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){a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==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 o=0;o<A.length;o++)e.on(A[o],this.emit.bind(this,A[o]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(O.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=i(871)),u(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),O._fromList=N,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(O.from=function(e,t){return void 0===l&&(l=i(727)),l(O,e,t)})},170:function(e,t,r){"use strict";e.exports=f;var n=r(646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(403);function l(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function f(e){if(!(this instanceof f))return new f(e);u.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",c)}function c(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(t,r){h(e,t,r)})}function h(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(782)(f,u),f.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},f.prototype._transform=function(e,t,r){r(new i("_transform()"))},f.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},f.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},f.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(t,r,i){"use strict";function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){var r=t,n=e,i=r.entry;for(r.entry=null;i;){var o=i.callback;n.pendingcb--,o(void 0),i=i.next}n.corkedRequestsFree.next=r}}t.exports=O,O.WritableState=R;var a,s,u={deprecate:i(769)},l=i(678),f=i(300).Buffer,c=e.g.Uint8Array||function(){},h=i(25),p=i(776).getHighWaterMark,d=i(646).q,y=d.ERR_INVALID_ARG_TYPE,g=d.ERR_METHOD_NOT_IMPLEMENTED,b=d.ERR_MULTIPLE_CALLBACK,m=d.ERR_STREAM_CANNOT_PIPE,v=d.ERR_STREAM_DESTROYED,w=d.ERR_STREAM_NULL_VALUES,S=d.ERR_STREAM_WRITE_AFTER_END,_=d.ERR_UNKNOWN_ENCODING,E=h.errorOrDestroy;function A(){}function R(e,t,r){a=a||i(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=p(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,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,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new b;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)--r.pendingcb,i?(n.default.nextTick(o,t),n.default.nextTick(P,e,r),e._writableState.errorEmitted=!0,E(e,t)):(o(t),e._writableState.errorEmitted=!0,E(e,t),P(e,r));else{var a=k(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||C(e,r),i?n.default.nextTick(T,e,r,a,o):T(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}i(782)(O,l),R.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};try{Object.defineProperty(R.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}function O(e){var t=this instanceof(a=a||i(403));if(!t&&!s.call(O,this))return new O(e);this._writableState=new R(e,this,t),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)),l.call(this)}function x(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function T(e,t,r,n){var i,o;r||(i=e,0===(o=t).length&&o.needDrain&&(o.needDrain=!1,i.emit("drain"))),t.pendingcb--,n(),P(e,t)}function C(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,x(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,f=r.callback,c=t.objectMode?1:u.length;if(x(e,t,!1,c,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 M(e,t){e._final(function(r){t.pendingcb--,r&&E(e,r),t.prefinished=!0,e.emit("prefinish"),P(e,t)})}function P(e,t){var r=k(t);if(r&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.default.nextTick(M,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===O&&e&&e._writableState instanceof R}})):s=function(e){return e instanceof this},O.prototype.pipe=function(){E(this,new m)},O.prototype.write=function(e,t,r){var i,o,a,s,u,l,h,p=this._writableState,d=!1,g=!p.objectMode&&(i=e,f.isBuffer(i)||i instanceof c);return(g&&!f.isBuffer(e)&&(o=e,e=f.from(o)),"function"==typeof t&&(r=t,t=null),g?t="buffer":t||(t=p.defaultEncoding),"function"!=typeof r&&(r=A),p.ending)?(a=r,E(this,s=new S),n.default.nextTick(a,s)):(g||(u=e,l=r,null===u?h=new w:"string"==typeof u||p.objectMode||(h=new y("chunk",["string","Buffer"],u)),!h||(E(this,h),n.default.nextTick(l,h),0)))&&(p.pendingcb++,d=function(e,t,r,n,i,o){if(!r){var a,s,u=(a=n,s=i,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=f.from(a,s)),a);n!==u&&(r=!0,i="buffer",n=u)}var l=t.objectMode?1:n.length;t.length+=l;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var h=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},h?h.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else x(e,t,!1,l,n,i,o);return c}(this,p,g,e,t,r)),d},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||C(this,e))},O.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,r){r(new g("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,r){var i,o,a,s=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),s.corked&&(s.corked=1,this.uncork()),s.ending||(i=this,o=s,a=r,o.ending=!0,P(i,o),a&&(o.finished?n.default.nextTick(a):i.once("finish",a)),o.ended=!0,i.writable=!1),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=h.destroy,O.prototype._undestroy=h.undestroy,O.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,a=r(698),s=Symbol("lastResolve"),u=Symbol("lastReject"),l=Symbol("error"),f=Symbol("ended"),c=Symbol("lastPromise"),h=Symbol("handlePromise"),p=Symbol("stream");function d(e,t){return{value:e,done:t}}function y(e){var t=e[s];if(null!==t){var r=e[p].read();null!==r&&(e[c]=null,e[s]=null,e[u]=null,t(d(r,!1)))}}function g(e){n.default.nextTick(y,e)}var b=Object.getPrototypeOf(function(){}),m=Object.setPrototypeOf((i(o={get stream(){return this[p]},next:function(){var e,t,r=this,i=this[l];if(null!==i)return Promise.reject(i);if(this[f])return Promise.resolve(d(void 0,!0));if(this[p].destroyed)return new Promise(function(e,t){n.default.nextTick(function(){r[l]?t(r[l]):e(d(void 0,!0))})});var o=this[c];if(o)t=new Promise((e=this,function(t,r){o.then(function(){e[f]?t(d(void 0,!0)):e[h](t,r)},r)}));else{var a=this[p].read();if(null!==a)return Promise.resolve(d(a,!1));t=new Promise(this[h])}return this[c]=t,t}},Symbol.asyncIterator,function(){return this}),i(o,"return",function(){var e=this;return new Promise(function(t,r){e[p].destroy(null,function(e){e?r(e):t(d(void 0,!0))})})}),o),b);e.exports=function(e){var t,r=Object.create(m,(i(t={},p,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,l,{value:null,writable:!0}),i(t,f,{value:e._readableState.endEmitted,writable:!0}),i(t,h,{value:function(e,t){var n=r[p].read();n?(r[c]=null,r[s]=null,r[u]=null,e(d(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[c]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[c]=null,r[s]=null,r[u]=null,t(e)),r[l]=e;return}var n=r[s];null!==n&&(r[c]=null,r[s]=null,r[u]=null,n(d(void 0,!0))),r[f]=!0}),e.on("readable",g.bind(null,r)),r}},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var i=r(300).Buffer,o=r(837).inspect,a=o&&o.custom||"inspect";e.exports=function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}return e=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return i.alloc(0);for(var t,r,n=i.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=a,i.prototype.copy.call(t,n,r),a+=o.data.length,o=o.next;return n}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=i.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,a),0==(e-=a)){a===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(a));break}++n}return this.length-=n,t}},{key:a,value:function(e,t){return o(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t,{depth:0,customInspect:!1}))}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}()},25:function(e){"use strict";function t(e,t){i(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.default.nextTick(i,this,e)):n.default.nextTick(i,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?a._writableState?a._writableState.errorEmitted?n.default.nextTick(r,a):(a._writableState.errorEmitted=!0,n.default.nextTick(t,a,e)):n.default.nextTick(t,a,e):o?(n.default.nextTick(r,a),o(e)):n.default.nextTick(r,a)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},698:function(e,t,r){"use strict";var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),a=o||i,s=!1,o=function(){if(!s){s=!0;for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];a.apply(this,t)}};var a,s,u=r.readable||!1!==r.readable&&t.readable,l=r.writable||!1!==r.writable&&t.writable,f=function(){t.writable||h()},c=t._writableState&&t._writableState.finished,h=function(){l=!1,c=!0,u||o.call(t)},p=t._readableState&&t._readableState.endEmitted,d=function(){u=!1,p=!0,l||o.call(t)},y=function(e){o.call(t,e)},g=function(){var e;return u&&!p?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):l&&!c?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},b=function(){t.req.on("finish",h)};return t.setHeader&&"function"==typeof t.abort?(t.on("complete",h),t.on("abort",g),t.req?b():t.on("request",b)):l&&!t._writableState&&(t.on("end",f),t.on("close",f)),t.on("end",d),t.on("finish",h),!1!==r.error&&t.on("error",y),t.on("close",g),function(){t.removeListener("complete",h),t.removeListener("abort",g),t.removeListener("request",b),t.req&&t.req.removeListener("finish",h),t.removeListener("end",f),t.removeListener("close",f),t.removeListener("finish",h),t.removeListener("end",d),t.removeListener("error",y),t.removeListener("close",g)}}},727:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var o=r(646).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)a=t;else if(t&&t[Symbol.asyncIterator])a=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])a=t[Symbol.iterator]();else throw new o("iterable",["Iterable"],t);var a,s=new e(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({objectMode:!0},r)),u=!1;function l(){return f.apply(this,arguments)}function f(){var e;return e=function*(){try{var e=yield a.next(),t=e.value;e.done?s.push(null):s.push((yield t))?l():u=!1}catch(e){s.destroy(e)}},(f=function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)})}).apply(this,arguments)}return s._read=function(){u||(u=!0,l())},s}},442:function(e,t,r){"use strict";var n,i=r(646).q,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,i=arguments.length,f=Array(i),c=0;c<i;c++)f[c]=arguments[c];var h=(e=f).length&&"function"==typeof e[e.length-1]?e.pop():s;if(Array.isArray(f[0])&&(f=f[0]),f.length<2)throw new o("streams");var p=f.map(function(e,i){var o,s,l,c,d,y,g=i<f.length-1;return o=i>0,l=s=function(e){t||(t=e),e&&p.forEach(u),g||(p.forEach(u),h(t))},c=!1,s=function(){c||(c=!0,l.apply(void 0,arguments))},d=!1,e.on("close",function(){d=!0}),void 0===n&&(n=r(698)),n(e,{readable:g,writable:o},function(e){if(e)return s(e);d=!0,s()}),y=!1,function(t){if(!d&&!y){if(y=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();s(t||new a("pipe"))}}});return f.reduce(l)}},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=null!=t.highWaterMark?t.highWaterMark:i?t[r]:null;if(null!=o){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},678:function(e,t,r){e.exports=r(781)},55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw 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},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},173:function(e,t,r){e.exports=i;var n=r(361).EventEmitter;function i(){n.call(this)}r(782)(i,n),i.Readable=r(709),i.Writable=r(337),i.Duplex=r(403),i.Transform=r(170),i.PassThrough=r(889),i.finished=r(698),i.pipeline=r(442),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 o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(f(),0===n.listenerCount(this,"error"))throw e}function f(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",f),r.removeListener("close",f),e.removeListener("close",f)}return r.on("error",l),e.on("error",l),r.on("end",f),r.on("close",f),e.on("close",f),e.emit("pipe",r),e}},704:function(e,t,r){"use strict";var n=r(55).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 o(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)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 Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=f,this.end=c,t=3;break;default:this.write=h,this.end=p;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(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((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);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)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function u(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 l(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 f(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 c(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):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)},o.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}},769:function(t){t.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}};function r(t){try{if(!e.g.localStorage)return!1}catch(e){return!1}var r=e.g.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}},300:function(t){"use strict";t.exports=e.r(43943)},361:function(t){"use strict";t.exports=e.r(30662)},781:function(t){"use strict";t.exports=e.r(30662).EventEmitter},837:function(t){"use strict";t.exports=e.r(77398)}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}},n=!0;try{i[e](r,r.exports,a),n=!1}finally{n&&delete o[e]}return r.exports}a.ab="/ROOT/node_modules/next/dist/compiled/stream-browserify/",t.exports=a(173)},43954,(e,t,r)=>{!function(){"use strict";var e={815:function(e){e.exports=function(e,r,n,i){r=r||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(r);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var u=e.length;s>0&&u>s&&(u=s);for(var l=0;l<u;++l){var f,c,h,p,d=e[l].replace(a,"%20"),y=d.indexOf(n);(y>=0?(f=d.substr(0,y),c=d.substr(y+1)):(f=d,c=""),h=decodeURIComponent(f),p=decodeURIComponent(c),Object.prototype.hasOwnProperty.call(o,h))?t(o[h])?o[h].push(p):o[h]=[o[h],p]:o[h]=p}return o};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,a,s){return(o=o||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?n(i(e),function(i){var s=encodeURIComponent(t(i))+a;return r(e[i])?n(e[i],function(e){return s+encodeURIComponent(t(e))}).join(o):s+encodeURIComponent(t(e[i]))}).join(o):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var i=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}}},r={};function n(t){var i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}},a=!0;try{e[t](o,o.exports,n),a=!1}finally{a&&delete r[t]}return o.exports}n.ab="/ROOT/node_modules/next/dist/compiled/querystring-es3/";var i={};i.decode=i.parse=n(815),i.encode=i.stringify=n(577),t.exports=i}()},21342,(e,t,r)=>{var n={452:function(t){"use strict";t.exports=e.r(43954)}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}},a=!0;try{n[e](r,r.exports,o),a=!1}finally{a&&delete i[e]}return r.exports}o.ab="/ROOT/node_modules/next/dist/compiled/native-url/";var a={};!function(){var e,t=(e=o(452))&&"object"==typeof e&&"default"in e?e.default:e,r=/https?|ftp|gopher|file/;function n(e){"string"==typeof e&&(e=b(e));var n,i,o,a,s,u,l,f,c,h=(i=(n=e).auth,o=n.hostname,a=n.protocol||"",s=n.pathname||"",u=n.hash||"",l=n.query||"",f=!1,i=i?encodeURIComponent(i).replace(/%3A/i,":")+"@":"",n.host?f=i+n.host:o&&(f=i+(~o.indexOf(":")?"["+o+"]":o),n.port&&(f+=":"+n.port)),l&&"object"==typeof l&&(l=t.encode(l)),c=n.search||l&&"?"+l||"",a&&":"!==a.substr(-1)&&(a+=":"),n.slashes||(!a||r.test(a))&&!1!==f?(f="//"+(f||""),s&&"/"!==s[0]&&(s="/"+s)):f||(f=""),u&&"#"!==u[0]&&(u="#"+u),c&&"?"!==c[0]&&(c="?"+c),{protocol:a,host:f,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:c=c.replace("#","%23"),hash:u});return""+h.protocol+h.host+h.pathname+h.search+h.hash}var i="http://",s=i+"w.w",u=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,l=/https?|ftp|gopher|file/;function f(e,t){var r="string"==typeof e?b(e):e;e="object"==typeof e?n(e):e;var o=b(t),a="";r.protocol&&!r.slashes&&(a=r.protocol,e=e.replace(r.protocol,""),a+="/"===t[0]||"/"===e[0]?"/":""),a&&o.protocol&&(a="",o.slashes||(a=o.protocol,t=t.replace(o.protocol,"")));var f=e.match(u);f&&!o.protocol&&(e=e.substr((a=f[1]+(f[2]||"")).length),/^\/\/[^/]/.test(t)&&(a=a.slice(0,-1)));var c=new URL(e,s+"/"),h=new URL(t,c).toString().replace(s,""),p=o.protocol||r.protocol;return p+=r.slashes||o.slashes?"//":"",!a&&p?h=h.replace(i,p):a&&(h=h.replace(i,"")),l.test(h)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==h.slice(-1)||(h=h.slice(0,-1)),a&&(h=a+("/"===h[0]?h.substr(1):h)),h}function c(){}c.prototype.parse=b,c.prototype.format=n,c.prototype.resolve=f,c.prototype.resolveObject=f;var h=/^https?|ftp|gopher|file/,p=/^(.*?)([#?].*)/,d=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,y=/^([a-z0-9.+-]*:)?\/\/\/*/i,g=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function b(e,r,i){if(void 0===r&&(r=!1),void 0===i&&(i=!1),e&&"object"==typeof e&&e instanceof c)return e;var o=(e=e.trim()).match(p);e=o?o[1].replace(/\\/g,"/")+o[2]:e.replace(/\\/g,"/"),g.test(e)&&"/"!==e.slice(-1)&&(e+="/");var a=!/(^javascript)/.test(e)&&e.match(d),u=y.test(e),l="";a&&(h.test(a[1])||(l=a[1].toLowerCase(),e=""+a[2]+a[3]),a[2]||(u=!1,h.test(a[1])?(l=a[1],e=""+a[3]):e="//"+a[3]),3!==a[2].length&&1!==a[2].length||(l=a[1],e="/"+a[3]));var f,b=(o?o[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),m=b&&b[1],v=new c,w="",S="";try{f=new URL(e)}catch(t){w=t,l||i||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(S="/",e=e.substr(1));try{f=new URL(e,s)}catch(e){return v.protocol=l,v.href=l,v}}v.slashes=u&&!S,v.host="w.w"===f.host?"":f.host,v.hostname="w.w"===f.hostname?"":f.hostname.replace(/(\[|\])/g,""),v.protocol=w?l||null:f.protocol,v.search=f.search.replace(/\\/g,"%5C"),v.hash=f.hash.replace(/\\/g,"%5C");var _=e.split("#");!v.search&&~_[0].indexOf("?")&&(v.search="?"),v.hash||""!==_[1]||(v.hash="#"),v.query=r?t.decode(f.search.substr(1)):v.search.substr(1),v.pathname=S+(a?f.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):f.pathname),"about:"===v.protocol&&"blank"===v.pathname&&(v.protocol="",v.pathname=""),w&&"/"!==e[0]&&(v.pathname=v.pathname.substr(1)),l&&!h.test(l)&&"/"!==e.slice(-1)&&"/"===v.pathname&&(v.pathname=""),v.path=v.pathname+v.search,v.auth=[f.username,f.password].map(decodeURIComponent).filter(Boolean).join(":"),v.port=f.port,m&&!v.host.endsWith(m)&&(v.host+=m,v.port=m.slice(1)),v.href=S?""+v.pathname+v.search+v.hash:n(v);var E=/^(file)/.test(v.href)?["host","hostname"]:[];return Object.keys(v).forEach(function(e){~E.indexOf(e)||(v[e]=v[e]||null)}),v}a.parse=b,a.format=n,a.resolve=f,a.resolveObject=function(e,t){return b(f(e,t))},a.Url=c}(),t.exports=a},22184,(e,t,r)=>{var n=e.i(47167),i=e.i(67034),o={523:function(e){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},782:function(e){"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}}},646:function(e){"use strict";let t={};function r(e,r,n){n||(n=Error);class i extends n{constructor(e,t,n){super(function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(e,t,n))}}i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){var i,o,a,s;let u,l;if("string"==typeof t&&(i="not ",t.substr(0,i.length)===i)?(u="must not be",t=t.replace(/^not /,"")):u="must be",o=" argument",(void 0===a||a>e.length)&&(a=e.length),e.substring(a-o.length,a)===o)l=`The ${e} ${u} ${n(t,"type")}`;else{let r=("number"!=typeof s&&(s=0),s+1>e.length||-1===e.indexOf(".",s))?"argument":"property";l=`The "${e}" ${r} ${u} ${n(t,"type")}`}return l+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=f;var o=r(709),a=r(337);r(782)(f,o);for(var s=i(a.prototype),u=0;u<s.length;u++){var l=s[u];f.prototype[l]||(f.prototype[l]=a.prototype[l])}function f(e){if(!(this instanceof f))return new f(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||n.default.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=i;var n=r(170);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(782)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},709:function(t,r,i){"use strict";t.exports=O,O.ReadableState=R,i(361).EventEmitter;var o,a,s,u,l,f=function(e,t){return e.listeners(t).length},c=i(678),h=i(300).Buffer,p=e.g.Uint8Array||function(){},d=i(837);a=d&&d.debuglog?d.debuglog("stream"):function(){};var y=i(379),g=i(25),b=i(776).getHighWaterMark,m=i(646).q,v=m.ERR_INVALID_ARG_TYPE,w=m.ERR_STREAM_PUSH_AFTER_EOF,S=m.ERR_METHOD_NOT_IMPLEMENTED,_=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(782)(O,c);var E=g.errorOrDestroy,A=["error","close","destroy","pause","resume"];function R(e,t,r){o=o||i(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=b(this,e,"readableHighWaterMark",r),this.buffer=new y,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.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=i(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function O(e){if(o=o||i(403),!(this instanceof O))return new O(e);var t=this instanceof o;this._readableState=new R(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function x(e,t,r,n,i){a("readableAddChunk",t);var o,s,u=e._readableState;if(null===t)u.reading=!1,function(e,t){if(a("onEofChunk"),!t.ended){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,t.sync?k(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,M(e)))}}(e,u);else if(i||(s=function(e,t){var r;return h.isBuffer(t)||t instanceof p||"string"==typeof t||void 0===t||e.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],t)),r}(u,t)),s)E(e,s);else if(u.objectMode||t&&t.length>0)if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===h.prototype||(o=t,t=h.from(o)),n)u.endEmitted?E(e,new _):T(e,u,t,!0);else if(u.ended)E(e,new w);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||0!==t.length?T(e,u,t,!1):P(e,u)):T(e,u,t,!1)}else n||(u.reading=!1,P(e,u));return!u.ended&&(u.length<u.highWaterMark||0===u.length)}function T(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&k(e)),P(e,t)}function C(e,t){var r;if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&((r=e)>=0x40000000?r=0x40000000:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),t.highWaterMark=r),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function k(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,n.default.nextTick(M,e))}function M(e){var t=e._readableState;a("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,B(e)}function P(e,t){t.readingMore||(t.readingMore=!0,n.default.nextTick(j,e,t))}function j(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function L(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function I(e){a("readable nexttick read 0"),e.read(0)}function U(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),B(e),t.flowing&&!t.reading&&e.read(0)}function B(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){var r;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)}function D(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.default.nextTick(F,t,e))}function F(e,t){if(a("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 $(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),O.prototype.destroy=g.destroy,O.prototype._undestroy=g.undestroy,O.prototype._destroy=function(e,t){t(e)},O.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=h.from(e,t),t=""),r=!0),x(this,e,t,!1,r)},O.prototype.unshift=function(e){return x(this,e,null,!0,!1)},O.prototype.isPaused=function(){return!1===this._readableState.flowing},O.prototype.setEncoding=function(e){s||(s=i(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";null!==r;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this},O.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?D(this):k(this),null;if(0===(e=C(e,r))&&r.ended)return 0===r.length&&D(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",i=!0),r.ended||r.reading?a("reading or ended",i=!1):i&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=C(n,r))),null===(t=e>0?N(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&D(this)),null!==t&&this.emit("data",t),t},O.prototype._read=function(e){E(this,new S("_read()"))},O.prototype.pipe=function(e,t){var r,i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,a("pipe count=%d opts=%j",o.pipesCount,t);var s=t&&!1===t.end||e===n.default.stdout||e===n.default.stderr?g:u;function u(){a("onend"),e.end()}o.endEmitted?n.default.nextTick(s):i.once("end",s),e.on("unpipe",function t(r,n){a("onunpipe"),r===i&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,a("cleanup"),e.removeListener("close",d),e.removeListener("finish",y),e.removeListener("drain",l),e.removeListener("error",p),e.removeListener("unpipe",t),i.removeListener("end",u),i.removeListener("end",g),i.removeListener("data",h),c=!0,o.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l())});var l=(r=i,function(){var e=r._readableState;a("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&f(r,"data")&&(e.flowing=!0,B(r))});e.on("drain",l);var c=!1;function h(t){a("ondata");var r=e.write(t);a("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==$(o.pipes,e))&&!c&&(a("false write response, pause",o.awaitDrain),o.awaitDrain++),i.pause())}function p(t){a("onerror",t),g(),e.removeListener("error",p),0===f(e,"error")&&E(e,t)}function d(){e.removeListener("finish",y),g()}function y(){a("onfinish"),e.removeListener("close",d),g()}function g(){a("unpipe"),i.unpipe(e)}return i.on("data",h),!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",p),e.once("close",d),e.once("finish",y),e.emit("pipe",i),o.flowing||(a("pipe resume"),i.resume()),e},O.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||(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 o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=$(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},O.prototype.on=function(e,t){var r=c.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,a("on readable",i.length,i.reading),i.length?k(this):i.reading||n.default.nextTick(I,this)),r},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var r=c.prototype.removeListener.call(this,e,t);return"readable"===e&&n.default.nextTick(L,this),r},O.prototype.removeAllListeners=function(e){var t=c.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&n.default.nextTick(L,this),t},O.prototype.resume=function(){var e,t,r=this._readableState;return r.flowing||(a("resume"),r.flowing=!r.readableListening,e=this,(t=r).resumeScheduled||(t.resumeScheduled=!0,n.default.nextTick(U,e,t))),r.paused=!1,this},O.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("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){a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==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 o=0;o<A.length;o++)e.on(A[o],this.emit.bind(this,A[o]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(O.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=i(871)),u(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),O._fromList=N,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(O.from=function(e,t){return void 0===l&&(l=i(727)),l(O,e,t)})},170:function(e,t,r){"use strict";e.exports=f;var n=r(646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(403);function l(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function f(e){if(!(this instanceof f))return new f(e);u.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",c)}function c(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(t,r){h(e,t,r)})}function h(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(782)(f,u),f.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},f.prototype._transform=function(e,t,r){r(new i("_transform()"))},f.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},f.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},f.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(t,r,i){"use strict";function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){var r=t,n=e,i=r.entry;for(r.entry=null;i;){var o=i.callback;n.pendingcb--,o(void 0),i=i.next}n.corkedRequestsFree.next=r}}t.exports=O,O.WritableState=R;var a,s,u={deprecate:i(769)},l=i(678),f=i(300).Buffer,c=e.g.Uint8Array||function(){},h=i(25),p=i(776).getHighWaterMark,d=i(646).q,y=d.ERR_INVALID_ARG_TYPE,g=d.ERR_METHOD_NOT_IMPLEMENTED,b=d.ERR_MULTIPLE_CALLBACK,m=d.ERR_STREAM_CANNOT_PIPE,v=d.ERR_STREAM_DESTROYED,w=d.ERR_STREAM_NULL_VALUES,S=d.ERR_STREAM_WRITE_AFTER_END,_=d.ERR_UNKNOWN_ENCODING,E=h.errorOrDestroy;function A(){}function R(e,t,r){a=a||i(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=p(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,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,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new b;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)--r.pendingcb,i?(n.default.nextTick(o,t),n.default.nextTick(P,e,r),e._writableState.errorEmitted=!0,E(e,t)):(o(t),e._writableState.errorEmitted=!0,E(e,t),P(e,r));else{var a=k(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||C(e,r),i?n.default.nextTick(T,e,r,a,o):T(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}i(782)(O,l),R.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};try{Object.defineProperty(R.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}function O(e){var t=this instanceof(a=a||i(403));if(!t&&!s.call(O,this))return new O(e);this._writableState=new R(e,this,t),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)),l.call(this)}function x(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function T(e,t,r,n){var i,o;r||(i=e,0===(o=t).length&&o.needDrain&&(o.needDrain=!1,i.emit("drain"))),t.pendingcb--,n(),P(e,t)}function C(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,x(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,f=r.callback,c=t.objectMode?1:u.length;if(x(e,t,!1,c,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 M(e,t){e._final(function(r){t.pendingcb--,r&&E(e,r),t.prefinished=!0,e.emit("prefinish"),P(e,t)})}function P(e,t){var r=k(t);if(r&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.default.nextTick(M,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===O&&e&&e._writableState instanceof R}})):s=function(e){return e instanceof this},O.prototype.pipe=function(){E(this,new m)},O.prototype.write=function(e,t,r){var i,o,a,s,u,l,h,p=this._writableState,d=!1,g=!p.objectMode&&(i=e,f.isBuffer(i)||i instanceof c);return(g&&!f.isBuffer(e)&&(o=e,e=f.from(o)),"function"==typeof t&&(r=t,t=null),g?t="buffer":t||(t=p.defaultEncoding),"function"!=typeof r&&(r=A),p.ending)?(a=r,E(this,s=new S),n.default.nextTick(a,s)):(g||(u=e,l=r,null===u?h=new w:"string"==typeof u||p.objectMode||(h=new y("chunk",["string","Buffer"],u)),!h||(E(this,h),n.default.nextTick(l,h),0)))&&(p.pendingcb++,d=function(e,t,r,n,i,o){if(!r){var a,s,u=(a=n,s=i,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=f.from(a,s)),a);n!==u&&(r=!0,i="buffer",n=u)}var l=t.objectMode?1:n.length;t.length+=l;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var h=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},h?h.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else x(e,t,!1,l,n,i,o);return c}(this,p,g,e,t,r)),d},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||C(this,e))},O.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,r){r(new g("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,r){var i,o,a,s=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),s.corked&&(s.corked=1,this.uncork()),s.ending||(i=this,o=s,a=r,o.ending=!0,P(i,o),a&&(o.finished?n.default.nextTick(a):i.once("finish",a)),o.ended=!0,i.writable=!1),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=h.destroy,O.prototype._undestroy=h.undestroy,O.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,a=r(698),s=Symbol("lastResolve"),u=Symbol("lastReject"),l=Symbol("error"),f=Symbol("ended"),c=Symbol("lastPromise"),h=Symbol("handlePromise"),p=Symbol("stream");function d(e,t){return{value:e,done:t}}function y(e){var t=e[s];if(null!==t){var r=e[p].read();null!==r&&(e[c]=null,e[s]=null,e[u]=null,t(d(r,!1)))}}function g(e){n.default.nextTick(y,e)}var b=Object.getPrototypeOf(function(){}),m=Object.setPrototypeOf((i(o={get stream(){return this[p]},next:function(){var e,t,r=this,i=this[l];if(null!==i)return Promise.reject(i);if(this[f])return Promise.resolve(d(void 0,!0));if(this[p].destroyed)return new Promise(function(e,t){n.default.nextTick(function(){r[l]?t(r[l]):e(d(void 0,!0))})});var o=this[c];if(o)t=new Promise((e=this,function(t,r){o.then(function(){e[f]?t(d(void 0,!0)):e[h](t,r)},r)}));else{var a=this[p].read();if(null!==a)return Promise.resolve(d(a,!1));t=new Promise(this[h])}return this[c]=t,t}},Symbol.asyncIterator,function(){return this}),i(o,"return",function(){var e=this;return new Promise(function(t,r){e[p].destroy(null,function(e){e?r(e):t(d(void 0,!0))})})}),o),b);e.exports=function(e){var t,r=Object.create(m,(i(t={},p,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,l,{value:null,writable:!0}),i(t,f,{value:e._readableState.endEmitted,writable:!0}),i(t,h,{value:function(e,t){var n=r[p].read();n?(r[c]=null,r[s]=null,r[u]=null,e(d(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[c]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[c]=null,r[s]=null,r[u]=null,t(e)),r[l]=e;return}var n=r[s];null!==n&&(r[c]=null,r[s]=null,r[u]=null,n(d(void 0,!0))),r[f]=!0}),e.on("readable",g.bind(null,r)),r}},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var i=r(300).Buffer,o=r(837).inspect,a=o&&o.custom||"inspect";e.exports=function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}return e=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return i.alloc(0);for(var t,r,n=i.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=a,i.prototype.copy.call(t,n,r),a+=o.data.length,o=o.next;return n}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=i.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,a),0==(e-=a)){a===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(a));break}++n}return this.length-=n,t}},{key:a,value:function(e,t){return o(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t,{depth:0,customInspect:!1}))}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}()},25:function(e){"use strict";function t(e,t){i(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.default.nextTick(i,this,e)):n.default.nextTick(i,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?a._writableState?a._writableState.errorEmitted?n.default.nextTick(r,a):(a._writableState.errorEmitted=!0,n.default.nextTick(t,a,e)):n.default.nextTick(t,a,e):o?(n.default.nextTick(r,a),o(e)):n.default.nextTick(r,a)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},698:function(e,t,r){"use strict";var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),a=o||i,s=!1,o=function(){if(!s){s=!0;for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];a.apply(this,t)}};var a,s,u=r.readable||!1!==r.readable&&t.readable,l=r.writable||!1!==r.writable&&t.writable,f=function(){t.writable||h()},c=t._writableState&&t._writableState.finished,h=function(){l=!1,c=!0,u||o.call(t)},p=t._readableState&&t._readableState.endEmitted,d=function(){u=!1,p=!0,l||o.call(t)},y=function(e){o.call(t,e)},g=function(){var e;return u&&!p?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):l&&!c?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},b=function(){t.req.on("finish",h)};return t.setHeader&&"function"==typeof t.abort?(t.on("complete",h),t.on("abort",g),t.req?b():t.on("request",b)):l&&!t._writableState&&(t.on("end",f),t.on("close",f)),t.on("end",d),t.on("finish",h),!1!==r.error&&t.on("error",y),t.on("close",g),function(){t.removeListener("complete",h),t.removeListener("abort",g),t.removeListener("request",b),t.req&&t.req.removeListener("finish",h),t.removeListener("end",f),t.removeListener("close",f),t.removeListener("finish",h),t.removeListener("end",d),t.removeListener("error",y),t.removeListener("close",g)}}},727:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var o=r(646).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)a=t;else if(t&&t[Symbol.asyncIterator])a=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])a=t[Symbol.iterator]();else throw new o("iterable",["Iterable"],t);var a,s=new e(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({objectMode:!0},r)),u=!1;function l(){return f.apply(this,arguments)}function f(){var e;return e=function*(){try{var e=yield a.next(),t=e.value;e.done?s.push(null):s.push((yield t))?l():u=!1}catch(e){s.destroy(e)}},(f=function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)})}).apply(this,arguments)}return s._read=function(){u||(u=!0,l())},s}},442:function(e,t,r){"use strict";var n,i=r(646).q,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,i=arguments.length,f=Array(i),c=0;c<i;c++)f[c]=arguments[c];var h=(e=f).length&&"function"==typeof e[e.length-1]?e.pop():s;if(Array.isArray(f[0])&&(f=f[0]),f.length<2)throw new o("streams");var p=f.map(function(e,i){var o,s,l,c,d,y,g=i<f.length-1;return o=i>0,l=s=function(e){t||(t=e),e&&p.forEach(u),g||(p.forEach(u),h(t))},c=!1,s=function(){c||(c=!0,l.apply(void 0,arguments))},d=!1,e.on("close",function(){d=!0}),void 0===n&&(n=r(698)),n(e,{readable:g,writable:o},function(e){if(e)return s(e);d=!0,s()}),y=!1,function(t){if(!d&&!y){if(y=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();s(t||new a("pipe"))}}});return f.reduce(l)}},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=null!=t.highWaterMark?t.highWaterMark:i?t[r]:null;if(null!=o){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},678:function(e,t,r){e.exports=r(781)},726:function(e,t,r){var i=r(781);"disable"===n.default.env.READABLE_STREAM&&i?(e.exports=i.Readable,Object.assign(e.exports,i),e.exports.Stream=i):((t=e.exports=r(709)).Stream=i||t,t.Readable=t,t.Writable=r(337),t.Duplex=r(403),t.Transform=r(170),t.PassThrough=r(889),t.finished=r(698),t.pipeline=r(442))},55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw 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},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},813:function(t,r,n){var i=n(450),o=n(254),a=n(911),s=n(523),u=n(310);r.request=function(t,r){t="string"==typeof t?u.parse(t):a(t);var n=-1===e.g.location.protocol.search(/^https?:$/)?"http:":"",o=t.protocol||n,s=t.hostname||t.host,l=t.port,f=t.path||"/";s&&-1!==s.indexOf(":")&&(s="["+s+"]"),t.url=(s?o+"//"+s:"")+(l?":"+l:"")+f,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var c=new i(t);return r&&c.on("response",r),c},r.get=function(e,t){var n=r.request(e,t);return n.end(),n},r.ClientRequest=i,r.IncomingMessage=o.IncomingMessage,r.Agent=function(){},r.Agent.defaultMaxSockets=4,r.globalAgent=new r.Agent,r.STATUS_CODES=s,r.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},301:function(t,r){var n;function i(){if(void 0!==n)return n;if(e.g.XMLHttpRequest){n=new e.g.XMLHttpRequest;try{n.open("GET",e.g.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function o(e){var t=i();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function a(e){return"function"==typeof e}r.fetch=a(e.g.fetch)&&a(e.g.ReadableStream),r.writableStream=a(e.g.WritableStream),r.abortController=a(e.g.AbortController),r.arraybuffer=r.fetch||o("arraybuffer"),r.msstream=!r.fetch&&o("ms-stream"),r.mozchunkedarraybuffer=!r.fetch&&o("moz-chunked-arraybuffer"),r.overrideMimeType=r.fetch||!!i()&&a(i().overrideMimeType),n=null},450:function(t,r,o){var a=o(301),s=o(782),u=o(254),l=o(726),f=u.IncomingMessage,c=u.readyStates,h=t.exports=function(e){var t,r,n,o=this;l.Writable.call(o),o._opts=e,o._body=[],o._headers={},e.auth&&o.setHeader("Authorization","Basic "+i.Buffer.from(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){o.setHeader(t,e.headers[t])});var s=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!a.abortController)s=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!a.overrideMimeType;else if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw Error("Invalid value for opts.mode");else n=!0;t=n,r=s,o._mode=a.fetch&&r?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&t?"arraybuffer":"text",o._fetchTimer=null,o.on("finish",function(){o._onFinish()})};s(h,l.Writable),h.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===p.indexOf(r)&&(this._headers[r]={name:e,value:t})},h.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},h.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},h.prototype._onFinish=function(){var t=this;if(!t._destroyed){var r=t._opts,i=t._headers,o=null;"GET"!==r.method&&"HEAD"!==r.method&&(o=new Blob(t._body,{type:(i["content-type"]||{}).value||""}));var s=[];if(Object.keys(i).forEach(function(e){var t=i[e].name,r=i[e].value;Array.isArray(r)?r.forEach(function(e){s.push([t,e])}):s.push([t,r])}),"fetch"===t._mode){var u=null;if(a.abortController){var l=new AbortController;u=l.signal,t._fetchAbortController=l,"requestTimeout"in r&&0!==r.requestTimeout&&(t._fetchTimer=e.g.setTimeout(function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()},r.requestTimeout))}e.g.fetch(t._opts.url,{method:t._opts.method,headers:s,body:o||void 0,mode:"cors",credentials:r.withCredentials?"include":"same-origin",signal:u}).then(function(e){t._fetchResponse=e,t._connect()},function(r){e.g.clearTimeout(t._fetchTimer),t._destroyed||t.emit("error",r)})}else{var f=t._xhr=new e.g.XMLHttpRequest;try{f.open(t._opts.method,t._opts.url,!0)}catch(e){n.default.nextTick(function(){t.emit("error",e)});return}"responseType"in f&&(f.responseType=t._mode),"withCredentials"in f&&(f.withCredentials=!!r.withCredentials),"text"===t._mode&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in r&&(f.timeout=r.requestTimeout,f.ontimeout=function(){t.emit("requestTimeout")}),s.forEach(function(e){f.setRequestHeader(e[0],e[1])}),t._response=null,f.onreadystatechange=function(){switch(f.readyState){case c.LOADING:case c.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(f.onprogress=function(){t._onXHRProgress()}),f.onerror=function(){t._destroyed||t.emit("error",Error("XHR error"))};try{f.send(o)}catch(e){n.default.nextTick(function(){t.emit("error",e)});return}}}},h.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},h.prototype._connect=function(){var e=this;e._destroyed||(e._response=new f(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},h.prototype._write=function(e,t,r){this._body.push(e),r()},h.prototype.abort=h.prototype.destroy=function(){this._destroyed=!0,e.g.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},h.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),l.Writable.prototype.end.call(this,e,t,r)},h.prototype.flushHeaders=function(){},h.prototype.setTimeout=function(){},h.prototype.setNoDelay=function(){},h.prototype.setSocketKeepAlive=function(){};var p=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},254:function(t,r,o){var a=o(301),s=o(782),u=o(726),l=r.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},f=r.IncomingMessage=function(t,r,o,s){var l=this;if(u.Readable.call(l),l._mode=o,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",function(){n.default.nextTick(function(){l.emit("close")})}),"fetch"===o){if(l._fetchResponse=r,l.url=r.url,l.statusCode=r.status,l.statusMessage=r.statusText,r.headers.forEach(function(e,t){l.headers[t.toLowerCase()]=e,l.rawHeaders.push(t,e)}),a.writableStream){var f=new WritableStream({write:function(e){return new Promise(function(t,r){l._destroyed?r():l.push(i.Buffer.from(e))?t():l._resumeFetch=t})},close:function(){e.g.clearTimeout(s),l._destroyed||l.push(null)},abort:function(e){l._destroyed||l.emit("error",e)}});try{r.body.pipeTo(f).catch(function(t){e.g.clearTimeout(s),l._destroyed||l.emit("error",t)});return}catch(e){}}var c=r.body.getReader();!function t(){c.read().then(function(r){if(!l._destroyed){if(r.done){e.g.clearTimeout(s),l.push(null);return}l.push(i.Buffer.from(r.value)),t()}}).catch(function(t){e.g.clearTimeout(s),l._destroyed||l.emit("error",t)})}()}else if(l._xhr=t,l._pos=0,l.url=t.responseURL,l.statusCode=t.status,l.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===l.headers[r]&&(l.headers[r]=[]),l.headers[r].push(t[2])):void 0!==l.headers[r]?l.headers[r]+=", "+t[2]:l.headers[r]=t[2],l.rawHeaders.push(t[1],t[2])}}),l._charset="x-user-defined",!a.overrideMimeType){var h=l.rawHeaders["mime-type"];if(h){var p=h.match(/;\s*charset=([^;])(;|$)/);p&&(l._charset=p[1].toLowerCase())}l._charset||(l._charset="utf-8")}};s(f,u.Readable),f.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},f.prototype._onXHRProgress=function(){var t=this,r=t._xhr,n=null;switch(t._mode){case"text":if((n=r.responseText).length>t._pos){var o=n.substr(t._pos);if("x-user-defined"===t._charset){for(var a=i.Buffer.alloc(o.length),s=0;s<o.length;s++)a[s]=255&o.charCodeAt(s);t.push(a)}else t.push(o,t._charset);t._pos=n.length}break;case"arraybuffer":if(r.readyState!==l.DONE||!r.response)break;n=r.response,t.push(i.Buffer.from(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=r.response,r.readyState!==l.LOADING||!n)break;t.push(i.Buffer.from(new Uint8Array(n)));break;case"ms-stream":if(n=r.response,r.readyState!==l.LOADING)break;var u=new e.g.MSStreamReader;u.onprogress=function(){u.result.byteLength>t._pos&&(t.push(i.Buffer.from(new Uint8Array(u.result.slice(t._pos)))),t._pos=u.result.byteLength)},u.onload=function(){t.push(null)},u.readAsArrayBuffer(n)}t._xhr.readyState===l.DONE&&"ms-stream"!==t._mode&&t.push(null)}},704:function(e,t,r){"use strict";var n=r(55).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 o(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)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 Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=f,this.end=c,t=3;break;default:this.write=h,this.end=p;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(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((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);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)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function u(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 l(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 f(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 c(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):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)},o.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}},769:function(t){t.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}};function r(t){try{if(!e.g.localStorage)return!1}catch(e){return!1}var r=e.g.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}},911:function(e){e.exports=function(){for(var e={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)t.call(n,i)&&(e[i]=n[i])}return e};var t=Object.prototype.hasOwnProperty},300:function(t){"use strict";t.exports=e.r(43943)},361:function(t){"use strict";t.exports=e.r(30662)},781:function(t){"use strict";t.exports=e.r(12569)},310:function(t){"use strict";t.exports=e.r(21342)},837:function(t){"use strict";t.exports=e.r(77398)}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}},n=!0;try{o[e](r,r.exports,s),n=!1}finally{n&&delete a[e]}return r.exports}s.ab="/ROOT/node_modules/next/dist/compiled/stream-http/",t.exports=s(813)},92542,(e,t,r)=>{var n={528:function(e,t,r){var n=r(685),i=r(310),o=e.exports;for(var a in n)n.hasOwnProperty(a)&&(o[a]=n[a]);function s(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),n.request.call(this,e,t)},o.get=function(e,t){return e=s(e),n.get.call(this,e,t)}},685:function(t){"use strict";t.exports=e.r(22184)},310:function(t){"use strict";t.exports=e.r(21342)}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}},a=!0;try{n[e](r,r.exports,o),a=!1}finally{a&&delete i[e]}return r.exports}o.ab="/ROOT/node_modules/next/dist/compiled/https-browserify/",t.exports=o(528)},8153,(e,t,r)=>{"use strict";var n=e.i(47167);Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.SUPPORTED_STREAM_BEHAVIOUR=r.SUPPORTED_SEND_META=void 0;var i=l(e.r(78492)),o=l(e.r(58033)),a=l(e.r(20502)),s=l(e.r(48450)),u=l(e.r(92542));function l(e){return e&&e.__esModule?e:{default:e}}let f=(0,s.default)("signalk-js-sdk/Connection"),c=void 0!==n.default&&null!=n.default.versions&&null!=n.default.versions.node,h=r.SUPPORTED_STREAM_BEHAVIOUR={self:"self",all:"all",none:"none"},p=r.SUPPORTED_SEND_META={all:"all"};class d extends i.default{constructor(e,t=[]){super(),this.options=e,this.httpURI=this.buildURI("http"),this.wsURI=this.buildURI("ws"),this.shouldDisconnect=!1,this.connected=!1,this.socket=null,this.lastMessage=-1,this.isConnecting=!1,this.wsKeepaliveIntervalMs=1e3*this.options.wsKeepaliveInterval,this._fetchReady=!1,this._bearerTokenPrefix=this.options.bearerTokenPrefix||"Bearer",this._authenticated=!1,this._retries=0,this._connection=null,this._self="",this._subscriptions=t,this.sendKeepaliveWithReschedule=this.sendKeepaliveWithReschedule.bind(this),this.onWSMessage=this._onWSMessage.bind(this),this.onWSOpen=this._onWSOpen.bind(this),this.onWSClose=this._onWSClose.bind(this),this.onWSError=this._onWSError.bind(this),this._token={kind:"",token:""},this.reconnect(!0)}get retries(){return this._retries}set self(e){null!==e&&this.emit("self",e),this._self=e}get self(){return this._self}set connectionInfo(e){null!==e&&this.emit("connectionInfo",e),this._connection=e,this.self=e.self}get connectionInfo(){return this._connection}buildURI(e){let{useTLS:t,hostname:r,port:n,version:i,deltaStreamBehaviour:o,sendMeta:a}=this.options,s=!0===t?`${e}s://`:`${e}://`;if(s+=r,s+=80===n?"":`:${n}`,s+="/signalk/",s+=i,"ws"===e){s+="/stream";let e=[];o&&h.hasOwnProperty(o)&&""!==h[o]&&e.push(`subscribe=${h[o]}`),a&&p.hasOwnProperty(a)&&""!==p[a]&&e.push(`sendMeta=${p[a]}`),s+="?"+e.join("&")}return"http"===e&&(s+="/api"),s}state(){return{connecting:this.isConnecting,connected:this.connected,ready:this.fetchReady}}disconnect(){f("[disconnect] called"),this.shouldDisconnect=!0,this.reconnect()}backOffAndReconnect(){if(!0===this.isConnecting)return;let{maxTimeBetweenRetries:e}=this.options,t=this._retries<Math.round(e/250)?250*this._retries:e;if(0===t)return this.reconnect();this.emit("backOffBeforeReconnect",t),f(`[backOffAndReconnect] waiting ${t} ms before reconnecting`),setTimeout(()=>this.reconnect(),t)}reconnect(e=!1){if(!0===this.isConnecting)return;if(null!==this.socket){f("[reconnect] closing socket"),this.socket.close();return}if(!1===e&&(this._retries+=1),!0!==e&&this._retries===this.options.maxRetries){this.emit("hitMaxRetries"),this.cleanupListeners();return}if(!0!==e&&!1===this.options.reconnect){f("[reconnect] Not reconnecting, for reconnect is false"),this.cleanupListeners();return}if(!0!==e&&!0===this.shouldDisconnect){f("[reconnect] not reconnecting, shouldDisconnect is true"),this.cleanupListeners();return}if(f(`[reconnect] socket is ${null===this.socket?"":"not "}NULL`),this._fetchReady=!1,this.shouldDisconnect=!1,this.isConnecting=!0,!1===this.options.useAuthentication){this._fetchReady=!0,this.emit("fetchReady"),this.initiateSocket();return}let t={method:"POST",mode:"cors",credentials:"same-origin",body:JSON.stringify({username:String(this.options.username||""),password:String(this.options.password||"")})};return this.fetch("/auth/login",t).then(e=>{if(!e||"object"!=typeof e||!e.hasOwnProperty("token"))throw Error(`Unexpected response from auth endpoint: ${JSON.stringify(e)}`);f(`[reconnect] successful auth request: ${JSON.stringify(e,null,2)}`),this._authenticated=!0,this._token={kind:"string"==typeof e.type&&""!==e.type.trim()?e.type:this._bearerTokenPrefix,token:e.token},this._fetchReady=!0,this.emit("fetchReady"),this.initiateSocket()}).catch(e=>(f(`[reconnect] error logging in: ${e.message}, reconnecting`),this.emit("error",e),this._retries+=1,this.isConnecting=!1,this.backOffAndReconnect()))}setAuthenticated(e,t="JWT"){this.emit("fetchReady"),this._authenticated=!0,this._token={kind:t,token:e}}initiateSocket(){c&&this.options.useTLS&&!1===this.options.rejectUnauthorized?this.socket=new o.default(this.wsURI,{rejectUnauthorized:!1}):this.socket=new o.default(this.wsURI),this.socket.addEventListener("message",this.onWSMessage),this.socket.addEventListener("open",this.onWSOpen),this.socket.addEventListener("error",this.onWSError),this.socket.addEventListener("close",this.onWSClose)}cleanupListeners(){f("[cleanupListeners] resetting auth and removing listeners"),this._authenticated=!1,this._token={kind:"",token:""},this.removeAllListeners()}sendKeepaliveWithReschedule(){!0===this.connected&&(this.lastMessage<Date.now()-this.wsKeepaliveIntervalMs&&this.socket.send("{}"),setTimeout(this.sendKeepaliveWithReschedule,this.wsKeepaliveIntervalMs))}_onWSMessage(e){this.lastMessage=Date.now();let t=e.data;try{"string"==typeof t&&(t=JSON.parse(t))}catch(e){console.error(`[Connection: ${this.options.hostname}] Error parsing data: ${e.message}`)}t&&"object"==typeof t&&t.hasOwnProperty("name")&&t.hasOwnProperty("version")&&t.hasOwnProperty("roles")&&(this.connectionInfo=t),this.emit("message",t)}_onWSOpen(){if(this.connected=!0,this.isConnecting=!1,this._subscriptions.length>0){let e=y(this._subscriptions);this.subscribe(e)}this._retries=0,this.options.wsKeepaliveInterval>0&&this.sendKeepaliveWithReschedule(),this.emit("connect")}_onWSError(e){f("[_onWSError] WS error",e.message||""),this.emit("error",e),this.backOffAndReconnect()}_onWSClose(e){f("[_onWSClose] called with wsURI:",this.wsURI),this.socket.removeEventListener("message",this.onWSMessage),this.socket.removeEventListener("open",this.onWSOpen),this.socket.removeEventListener("error",this.onWSError),this.socket.removeEventListener("close",this.onWSClose),this.connected=!1,this.isConnecting=!1,this.socket=null,this.emit("disconnect",e),this.backOffAndReconnect()}unsubscribe(){!0!==this.connected||null===this.socket?f("Not connected to socket"):this.send(JSON.stringify({context:"*",unsubscribe:[{path:"*"}]}))}subscribe(e=[]){!Array.isArray(e)&&e&&"object"==typeof e&&e.hasOwnProperty("subscribe")&&(e=[e]),e.forEach(e=>{this.send(JSON.stringify(e))})}send(e){if(!0!==this.connected||null===this.socket)return Promise.reject(Error("Not connected to WebSocket"));if("string"==typeof e)try{e=JSON.parse(e)}catch(e){f(`[send] data is string but not valid JSON: ${e.message}`)}let t=e&&"object"==typeof e;try{t&&(e=JSON.stringify(e))}catch(e){return Promise.reject(e)}return f(`Sending data to socket: ${e}`),Promise.resolve(this.socket.send(e))}fetch(e,t){"/"!==e.charAt(0)&&(e=`/${e}`),t&&"object"==typeof t||(t={method:"GET"}),t.headers&&"object"==typeof t.headers||(t.headers={Accept:"application/json","Content-Type":"application/json"}),!0!==this._authenticated||e.includes("auth/login")||(t.headers={...t.headers,Authorization:`${this._token.kind} ${this._token.token}`},t.credentials="same-origin",t.mode="cors",f("[fetch] enriching fetch options with in-memory token")),c&&this.options.useTLS&&!1===this.options.rejectUnauthorized&&(t.agent=new u.default.Agent({rejectUnauthorized:!1}));let r=`${this.httpURI}${e}`;return r.includes("/api/auth/login")&&(r=r.replace("/api/auth/login","/auth/login")),r.includes("/api/access/requests")&&(r=r.replace("/api/access/requests","/access/requests")),r.includes("/signalk/v1/api/security")&&(r=r.replace("/signalk/v1/api/security","/security")),f(`[fetch] ${t.method||"GET"} ${r} ${JSON.stringify(t,null,2)}`),(0,a.default)(r,t).then(e=>{if(!e.ok)throw Error(`Error fetching ${r}: ${e.status} ${e.statusText}`);return e.headers.get("content-type").includes("application/json")?e.json():e.text()})}}r.default=d;let y=e=>{let t={};return e.forEach(e=>{Array.isArray(t[e.context])||(t[e.context]=[]),t[e.context]=t[e.context].concat(e.subscribe)}),Object.keys(t).map(e=>{let r={context:e,subscribe:t[e]};if(r.subscribe.length>0){let e=[];r.subscribe=r.subscribe.reduce((t,r)=>{if(e.includes(r.path)){let e=t.findIndex(e=>e.path===r.path);-1!==e&&t.splice(e,1)}else e.push(r.path);return t.push(r),t},[])}return r})}},37342,e=>{"use strict";e.s([],48636),e.i(48636);var t,r,n,i=new Uint8Array(16);function o(){if(!t&&!(t="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"u">typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(i)}let a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=function(e){return"string"==typeof e&&a.test(e)};for(var u=[],l=0;l<256;++l)u.push((l+256).toString(16).substr(1));let f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!s(r))throw TypeError("Stringified UUID is invalid");return r};var c=0,h=0;let p=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/0x10000000000&255,r[11]=t/0x100000000&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function d(e,t,r){function n(e,n,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=p(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(n),a.set(e,n.length),(a=r(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,i){o=o||0;for(var s=0;s<16;++s)i[o+s]=a[s];return i}return f(a)}try{n.name=e}catch(e){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}function y(e){return(e+64>>>9<<4)+14+1}function g(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function b(e,t,r,n,i,o){var a;return g((a=g(g(t,e),g(n,o)))<<i|a>>>32-i,r)}function m(e,t,r,n,i,o,a){return b(t&r|~t&n,e,t,i,o,a)}function v(e,t,r,n,i,o,a){return b(t&n|r&~n,e,t,i,o,a)}function w(e,t,r,n,i,o,a){return b(t^r^n,e,t,i,o,a)}function S(e,t,r,n,i,o,a){return b(r^(t|~n),e,t,i,o,a)}var _=d("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){for(var t=[],r=32*e.length,n="0123456789abcdef",i=0;i<r;i+=8){var o=e[i>>5]>>>i%32&255,a=parseInt(n.charAt(o>>>4&15)+n.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[y(t)-1]=t;for(var r=0x67452301,n=-0x10325477,i=-0x67452302,o=0x10325476,a=0;a<e.length;a+=16){var s=r,u=n,l=i,f=o;r=m(r,n,i,o,e[a],7,-0x28955b88),o=m(o,r,n,i,e[a+1],12,-0x173848aa),i=m(i,o,r,n,e[a+2],17,0x242070db),n=m(n,i,o,r,e[a+3],22,-0x3e423112),r=m(r,n,i,o,e[a+4],7,-0xa83f051),o=m(o,r,n,i,e[a+5],12,0x4787c62a),i=m(i,o,r,n,e[a+6],17,-0x57cfb9ed),n=m(n,i,o,r,e[a+7],22,-0x2b96aff),r=m(r,n,i,o,e[a+8],7,0x698098d8),o=m(o,r,n,i,e[a+9],12,-0x74bb0851),i=m(i,o,r,n,e[a+10],17,-42063),n=m(n,i,o,r,e[a+11],22,-0x76a32842),r=m(r,n,i,o,e[a+12],7,0x6b901122),o=m(o,r,n,i,e[a+13],12,-0x2678e6d),i=m(i,o,r,n,e[a+14],17,-0x5986bc72),n=m(n,i,o,r,e[a+15],22,0x49b40821),r=v(r,n,i,o,e[a+1],5,-0x9e1da9e),o=v(o,r,n,i,e[a+6],9,-0x3fbf4cc0),i=v(i,o,r,n,e[a+11],14,0x265e5a51),n=v(n,i,o,r,e[a],20,-0x16493856),r=v(r,n,i,o,e[a+5],5,-0x29d0efa3),o=v(o,r,n,i,e[a+10],9,0x2441453),i=v(i,o,r,n,e[a+15],14,-0x275e197f),n=v(n,i,o,r,e[a+4],20,-0x182c0438),r=v(r,n,i,o,e[a+9],5,0x21e1cde6),o=v(o,r,n,i,e[a+14],9,-0x3cc8f82a),i=v(i,o,r,n,e[a+3],14,-0xb2af279),n=v(n,i,o,r,e[a+8],20,0x455a14ed),r=v(r,n,i,o,e[a+13],5,-0x561c16fb),o=v(o,r,n,i,e[a+2],9,-0x3105c08),i=v(i,o,r,n,e[a+7],14,0x676f02d9),n=v(n,i,o,r,e[a+12],20,-0x72d5b376),r=w(r,n,i,o,e[a+5],4,-378558),o=w(o,r,n,i,e[a+8],11,-0x788e097f),i=w(i,o,r,n,e[a+11],16,0x6d9d6122),n=w(n,i,o,r,e[a+14],23,-0x21ac7f4),r=w(r,n,i,o,e[a+1],4,-0x5b4115bc),o=w(o,r,n,i,e[a+4],11,0x4bdecfa9),i=w(i,o,r,n,e[a+7],16,-0x944b4a0),n=w(n,i,o,r,e[a+10],23,-0x41404390),r=w(r,n,i,o,e[a+13],4,0x289b7ec6),o=w(o,r,n,i,e[a],11,-0x155ed806),i=w(i,o,r,n,e[a+3],16,-0x2b10cf7b),n=w(n,i,o,r,e[a+6],23,0x4881d05),r=w(r,n,i,o,e[a+9],4,-0x262b2fc7),o=w(o,r,n,i,e[a+12],11,-0x1924661b),i=w(i,o,r,n,e[a+15],16,0x1fa27cf8),n=w(n,i,o,r,e[a+2],23,-0x3b53a99b),r=S(r,n,i,o,e[a],6,-0xbd6ddbc),o=S(o,r,n,i,e[a+7],10,0x432aff97),i=S(i,o,r,n,e[a+14],15,-0x546bdc59),n=S(n,i,o,r,e[a+5],21,-0x36c5fc7),r=S(r,n,i,o,e[a+12],6,0x655b59c3),o=S(o,r,n,i,e[a+3],10,-0x70f3336e),i=S(i,o,r,n,e[a+10],15,-1051523),n=S(n,i,o,r,e[a+1],21,-0x7a7ba22f),r=S(r,n,i,o,e[a+8],6,0x6fa87e4f),o=S(o,r,n,i,e[a+15],10,-0x1d31920),i=S(i,o,r,n,e[a+6],15,-0x5cfebcec),n=S(n,i,o,r,e[a+13],21,0x4e0811a1),r=S(r,n,i,o,e[a+4],6,-0x8ac817e),o=S(o,r,n,i,e[a+11],10,-0x42c50dcb),i=S(i,o,r,n,e[a+2],15,0x2ad7d2bb),n=S(n,i,o,r,e[a+9],21,-0x14792c6f),r=g(r,s),n=g(n,u),i=g(i,l),o=g(o,f)}return[r,n,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(y(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))});function E(e,t){return e<<t|e>>>32-t}var A=d("v5",80,function(e){var t=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6],r=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var i=0;i<n.length;++i)e.push(n.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=Math.ceil((e.length/4+2)/16),a=Array(o),s=0;s<o;++s){for(var u=new Uint32Array(16),l=0;l<16;++l)u[l]=e[64*s+4*l]<<24|e[64*s+4*l+1]<<16|e[64*s+4*l+2]<<8|e[64*s+4*l+3];a[s]=u}a[o-1][14]=(e.length-1)*8/0x100000000,a[o-1][14]=Math.floor(a[o-1][14]),a[o-1][15]=(e.length-1)*8|0;for(var f=0;f<o;++f){for(var c=new Uint32Array(80),h=0;h<16;++h)c[h]=a[f][h];for(var p=16;p<80;++p)c[p]=E(c[p-3]^c[p-8]^c[p-14]^c[p-16],1);for(var d=r[0],y=r[1],g=r[2],b=r[3],m=r[4],v=0;v<80;++v){var w=Math.floor(v/20),S=E(d,5)+function(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}(w,y,g,b)+m+t[w]+c[v]>>>0;m=b,b=g,g=E(y,30)>>>0,y=d,d=S}r[0]=r[0]+d>>>0,r[1]=r[1]+y>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+b>>>0,r[4]=r[4]+m>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]});e.s(["NIL",0,"00000000-0000-0000-0000-000000000000","parse",0,p,"stringify",0,f,"v1",0,function(e,t,i){var a=t&&i||0,s=t||Array(16),u=(e=e||{}).node||r,l=void 0!==e.clockseq?e.clockseq:n;if(null==u||null==l){var p=e.random||(e.rng||o)();null==u&&(u=r=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==l&&(l=n=(p[6]<<8|p[7])&16383)}var d=void 0!==e.msecs?e.msecs:Date.now(),y=void 0!==e.nsecs?e.nsecs:h+1,g=d-c+(y-h)/1e4;if(g<0&&void 0===e.clockseq&&(l=l+1&16383),(g<0||d>c)&&void 0===e.nsecs&&(y=0),y>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");c=d,h=y,n=l;var b=((0xfffffff&(d+=122192928e5))*1e4+y)%0x100000000;s[a++]=b>>>24&255,s[a++]=b>>>16&255,s[a++]=b>>>8&255,s[a++]=255&b;var m=d/0x100000000*1e4&0xfffffff;s[a++]=m>>>8&255,s[a++]=255&m,s[a++]=m>>>24&15|16,s[a++]=m>>>16&255,s[a++]=l>>>8|128,s[a++]=255&l;for(var v=0;v<6;++v)s[a+v]=u[v];return t||f(s)},"v3",0,_,"v4",0,function(e,t,r){var n=(e=e||{}).random||(e.rng||o)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return f(n)},"v5",0,A,"validate",0,s,"version",0,function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}],37342)},30980,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=a(e.r(78492)),i=a(e.r(48450)),o=e.r(37342);function a(e){return e&&e.__esModule?e:{default:e}}let s=(0,i.default)("signalk-js-sdk/Request");class u extends n.default{constructor(e,t,r){super(),this.connection=e,this.requestId=(0,o.v4)(),this.name=t,this.body=r,this.responses=[],this.sent=!1,this.connection.on("message",e=>{e&&"object"==typeof e&&e.hasOwnProperty("requestId")&&e.requestId===this.requestId&&this.addResponse(e)})}query(){let e={requestId:this.requestId,query:!0};s(`Sending query: ${JSON.stringify(e,null,2)}`),this.connection.send(e)}send(){if(!0===this.sent)return;let e={requestId:this.requestId,...this.body};s(`Sending request: ${JSON.stringify(e,null,2)}`),this.connection.send(e)}addResponse(e){s(`Got response for request "${this.name}": ${JSON.stringify(e,null,2)}`);let t=new Date().toISOString();this.responses.push({response:e,receivedAt:t}),this.emit("response",{...e,request:{receivedAt:t,name:this.name,requestId:this.requestId}})}getRequestId(){return this.requestId}}r.default=u},5526,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=class{constructor(e){this.connection=e,this.selfMRN=this.connection.self}get(e){return e.includes(".")&&(e=e.replace(/\./g,"/")),("string"!=typeof e||""===e.trim())&&(e="/"),"/"!==e.charAt(0)&&(e=`/${e}`),this.connection.fetch(e)}put(e,t){return e.includes(".")&&(e=e.replace(/\./g,"/")),("string"!=typeof e||""===e.trim())&&(e="/"),"/"!==e.charAt(0)&&(e=`/${e}`),this.connection.fetch(e,{method:"PUT",mode:"cors",body:t&&"object"==typeof t?JSON.stringify(t):t})}getMeta(e){return this.get(e).then(e=>e&&"object"==typeof e&&e.hasOwnProperty("meta")?e.meta:null)}sources(){return this.get("/sources")}resources(){return this.get("/resources")}mrn(){return this.get("/self")}vessels(){return this.get("/vessels")}aircraft(){return this.get("/aircraft")}aton(){return this.get("/aton")}sar(){return this.get("/sar")}version(){return this.get("/version")}self(e){return("string"!=typeof e||"/"!==e.charAt(0))&&(e=""),this.connection.fetch(`/vessels/self${e}`)}vessel(e,t){return("string"!=typeof t||"/"!==t.charAt(0))&&(t=""),this.connection.fetch(`/vessels/${e}${t}`)}name(){return this.self("/name")}getGroup(e,t,r="self"){return(("string"!=typeof t||"/"!==t.charAt(0))&&(t=""),"self"===r)?this.self(`/${e}${t}`):this.vessel(r,`/${e}${t}`)}communication(e="",t="self"){return this.getGroup("communication",e,t)}design(e="",t="self"){return this.getGroup("design",e,t)}electrical(e="",t="self"){return this.getGroup("electrical",e,t)}environment(e="",t="self"){return this.getGroup("environment",e,t)}navigation(e="",t="self"){return this.getGroup("navigation",e,t)}notifications(e="",t="self"){return this.getGroup("notifications",e,t)}performance(e="",t="self"){return this.getGroup("performance",e,t)}propulsion(e="",t="self"){return this.getGroup("propulsion",e,t)}sails(e="",t="self"){return this.getGroup("sails",e,t)}sensors(e="",t="self"){return this.getGroup("sensors",e,t)}steering(e="",t="self"){return this.getGroup("steering",e,t)}tanks(e="",t="self"){return this.getGroup("tanks",e,t)}}},74392,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.PERMISSIONS_READWRITE=r.PERMISSIONS_READONLY=r.PERMISSIONS_DENY=r.AUTHENTICATION_REQUEST=void 0;var n=l(e.r(78492)),i=l(e.r(8153)),o=l(e.r(30980)),a=l(e.r(5526)),s=l(e.r(48450)),u=e.r(37342);function l(e){return e&&e.__esModule?e:{default:e}}let f=(0,s.default)("signalk-js-sdk/Client"),c=r.AUTHENTICATION_REQUEST="__AUTHENTICATION_REQUEST__";r.PERMISSIONS_READWRITE="readwrite",r.PERMISSIONS_READONLY="readonly",r.PERMISSIONS_DENY="denied";class h extends n.default{constructor(e={}){super(),this.options={hostname:"localhost",port:3e3,useTLS:!0,useAuthentication:!1,notifications:!0,version:"v1",autoConnect:!1,reconnect:!0,maxRetries:1/0,maxTimeBetweenRetries:2500,mdns:null,username:null,password:null,deltaStreamBehaviour:"none",subscriptions:[],wsKeepaliveInterval:0,...e},this.api=null,this.connection=null,this.services=[],this.notifications={},this.requests={},this.fetchReady=null,Array.isArray(this.options.subscriptions)&&(this.subscribeCommands=this.options.subscriptions.filter(e=>d(e))),!0===this.options.notifications&&this.subscribeCommands.push({context:"vessels.self",subscribe:[{path:"notifications.*",policy:"instant"}]}),!0===this.options.autoConnect&&this.connect().catch(e=>this.emit("error",e))}get self(){return null===this.connection?null:this.connection.self}set(e,t){return this.options[e]=t,this}get(e){return this.options[e]||null}get retries(){return null===this.connection?0:this.connection.retries}requestDeviceAccess(e,t){let r="string"==typeof t?t:(0,u.v4)();return this.connection.fetch("/access/requests",{method:"POST",mode:"cors",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify({clientId:r,description:e})}).then(e=>({clientId:r,response:e}))}respondToAccessRequest(e,t,r="1y"){return this.connection.fetch(`/security/access/requests/${e}/${"denied"===t?"denied":"approved"}`,{method:"PUT",mode:"cors",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify({expiration:r,permissions:t})})}authenticate(e,t){let r=this.request(c,{login:{username:e,password:t}});r.on("response",e=>{if(200===e.statusCode&&e.hasOwnProperty("login")&&"object"==typeof e.login&&e.login.hasOwnProperty("token"))return this.connection.setAuthenticated(e.login.token),this.emit("authenticated",{token:e.login.token});this.emit("error",Error(`Error authenticating: status ${e.statusCode}`))}),r.send()}request(e,t={}){return this.requests.hasOwnProperty(e)||(this.requests[e]=new o.default(this.connection,e,t),f(`Registered request "${e}" with ID ${this.requests[e].getRequestId()}`)),this.requests[e]}subscribe(e=[]){if(null===this.connection)throw Error("Not connected");e&&!Array.isArray(e)&&"object"==typeof e&&e.hasOwnProperty("subscribe")&&(e=[e]),(e=e.filter(e=>d(e))).forEach(e=>{this.subscribeCommands.push(e)}),this.connection.subscribe(e)}unsubscribe(){if(null===this.connection)throw Error("Not connected");let{notifications:e}=this.options;this.subscribeCommands=!0===e?[{context:"vessels.self",subscribe:[{path:"notifications.*",policy:"instant"}]}]:[],this.connection.unsubscribe(),this.subscribeCommands.length>0&&this.connection.subscribe(this.subscribeCommands)}connect(){return null!==this.connection?(this.connection.reconnect(!0),Promise.resolve(this.connection)):new Promise((e,t)=>{this.connection=new i.default(this.options,this.subscribeCommands),this.connection.on("disconnect",e=>this.emit("disconnect",e)),this.connection.on("message",e=>this.processWSMessage(e)),this.connection.on("connectionInfo",e=>this.emit("connectionInfo",e)),this.connection.on("self",e=>this.emit("self",e)),this.connection.on("hitMaxRetries",()=>this.emit("hitMaxRetries")),this.connection.on("backOffBeforeReconnect",e=>this.emit("backOffBeforeReconnect",e)),this.connection.on("connect",()=>{this.getInitialNotifications(),this.emit("connect"),e(this.connection)}),this.connection.on("fetchReady",()=>{this.fetchReady=!0}),this.connection.on("error",e=>{this.emit("error",e),t(e)})})}disconnect(e=!1){return(null!==this.connection?(this.connection.on("disconnect",()=>{this.cleanupListeners(),this.connection=null}),this.connection.unsubscribe(),this.connection.disconnect()):this.cleanupListeners(),null!==this.api&&(this.api=null),!0===e)?Promise.resolve(this):this}cleanupListeners(){this.removeAllListeners("self"),this.removeAllListeners("connectionInfo"),this.removeAllListeners("message"),this.removeAllListeners("delta"),this.removeAllListeners("connect"),this.removeAllListeners("error"),this.removeAllListeners("hitMaxRetries"),this.removeAllListeners("backOffBeforeReconnect"),this.removeAllListeners("disconnect"),this.removeAllListeners("unsubscribe"),this.removeAllListeners("subscribe")}API(){return null===this.connection?Promise.reject(Error("There are no available connections. Please connect before you use the REST API.")):null!==this.api?Promise.resolve(this.api):new Promise(e=>{if(this.api=new a.default(this.connection),!0===this.fetchReady||!1===this.options.useAuthentication)return e(this.api);this.connection.on("fetchReady",()=>{e(this.api)})})}processWSMessage(e){this.emit("message",e),e&&"object"==typeof e&&e.hasOwnProperty("updates")&&(this.checkAndEmitNotificationsInDelta(e),this.emit("delta",e))}checkAndEmitNotificationsInDelta(e){if(!1===this.options.notifications||!e||"object"!=typeof e||!Array.isArray(e.updates))return;let t={};e.updates.forEach(e=>{(e.values||[]).forEach(e=>{"string"==typeof e.path&&e.path.includes("notifications.")&&(t[e.path.replace("notifications.","")]={...e.value})})}),Object.keys(t).forEach(e=>{if(!this.notifications.hasOwnProperty(e)||this.notifications[e].timestamp!==t[e].timestamp){this.notifications[e]={...t[e]};let r={path:e,...this.notifications[e]};f(`[checkAndEmitNotificationsInDelta] emitting notification: ${JSON.stringify(r,null,2)}`),this.emit("notification",r)}})}getInitialNotifications(){!1===this.options.notifications||null!==this.connection&&(null===this.api&&(this.api=new a.default(this.connection)),this.api.notifications().then(e=>(this.notifications={...this.notifications,...p(e)},Object.keys(this.notifications).forEach(e=>{let t={path:e,...this.notifications[e]};f(`[getInitialNotifications] emitting notification: ${JSON.stringify(t,null,2)}`),this.emit("notification",t)}),this.notifications)).catch(e=>{console.error(`[getInitialNotifications] error getting notifications: ${e.message}`)}))}}r.default=h;let p=e=>{let t={},r=e,n="",i=e=>{n+=`${""===n?"":"."}${e}`,(r=r[e])&&"object"==typeof r&&(r&&"object"==typeof r&&r.hasOwnProperty("value")?t[n]=Object.assign({},r.value):Object.keys(r).forEach(i))};return Object.keys(r).forEach(e=>i(e)),t},d=e=>!!e&&"object"==typeof e&&!!e.hasOwnProperty("context")&&!!Array.isArray(e.subscribe)},33079,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.SKServer=void 0;var n=o(e.r(78492)),i=o(e.r(74392));function o(e){return e&&e.__esModule?e:{default:e}}class a{constructor(e){this._roles=e.roles||["master","main"],this._self=e.self||"",this._version=e.version||"0.0.0",this._hostname=e.hostname,this._port=e.port}get roles(){return this._roles}get self(){return this._self}get version(){return this._version}get hostname(){return this._hostname}get port(){return this._port}isMain(){return this._roles.includes("main")}isMaster(){return this._roles.includes("master")}createClient(e={}){return new i.default({...e,hostname:this._hostname,port:this._port})}}r.SKServer=a;class s extends n.default{constructor(e,t=6e4){if(super(),this.found=[],!e||"object"!=typeof e)throw Error("No mDNS provider given");if(Object.keys(e).join(",").startsWith("_server,_registry"))return this.discoverWithBonjour(e,t);if(Object.keys(e).join(",").startsWith("dns_sd,Advertisement,createAdvertisement,Browser"))return this.discoverWithMdns(e,t);throw Error("Unrecognized mDNS provider given")}discoverWithBonjour(e,t){let r=e.find({type:"signalk-http"});r.on("up",e=>this.handleDiscoveredService(e,{...e.txt,name:e.name||"",hostname:e.host||"",port:parseInt(e.port,10),provider:"bonjour"})),setTimeout(()=>{0===this.found.length&&this.emit("timeout"),r.stop()},t),r.start()}discoverWithMdns(e,t){let r=e.createBrowser(e.tcp("_signalk-http"));r.on("serviceUp",e=>this.handleDiscoveredService(e,{...e.txtRecord,hostname:e.host||"",port:parseInt(e.port,10),provider:"mdns"})),r.on("error",e=>this.handleDiscoveryError(e)),setTimeout(()=>{0===this.found.length&&this.emit("timeout"),r.stop()},t),r.start()}handleDiscoveryError(e){console.error(`Error during discovery: ${e.message}`)}handleDiscoveredService(e,t){"string"==typeof t.roles&&(t.roles=t.roles.split(",").map(e=>e.trim().toLowerCase())),t.roles=Array.isArray(t.roles)?t.roles:[];let r=t.hostname;Array.isArray(e.addresses)&&(r=e.addresses.reduce((e,t)=>(t&&"string"==typeof t&&t.includes(".")&&(e=t),e),t.hostname)),""!==r.trim()&&(t.hostname=r);let n=new a(t);this.found.push(n),this.emit("found",n)}}r.default=s},28020,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Discovery=r.Client=void 0;var n=o(e.r(74392)),i=o(e.r(33079));function o(e){return e&&e.__esModule?e:{default:e}}r.Client=n.default,r.Discovery=i.default,r.default=n.default},49018,(e,t,r)=>{t.exports=e.r(28020)},66799,46991,48390,78037,e=>{"use strict";var t=e.i(67034),r=e.i(49018),n=e.i(83402);let i=e=>null==e?null:Math.round(180*e/Math.PI*10)/10,o=e=>null==e?null:Math.round(1.94384*e*10)/10,a=e=>null==e?null:Math.round((e-273.15)*10)/10,s=e=>e+273.15,u=null,l=()=>(u||(u=e.r(83402).default),u);e.s(["KNOTS_TO_MPS",0,.51444,"MS_TO_KNOTS",0,1.94384,"convertDepthUnit",0,e=>{if(null==e)return null;switch(l().get("depthUnits")||"m"){case"ft":return Math.round(3.28084*e*10)/10;case"fa":return Math.round(.546807*e*10)/10;default:return Math.round(10*e)/10}},"convertDistanceUnit",0,e=>{if(null==e)return null;switch(l().get("distanceUnits")||"nm"){case"km":return Math.round(e/1e3*100)/100;case"mi":return Math.round(e/1609.344*100)/100;default:return Math.round(e/1852*100)/100}},"convertPressure",0,e=>null==e?null:Math.round(e/100*10)/10,"convertSpeedUnit",0,e=>{if(null==e)return null;switch(l().get("speedUnits")||"kn"){case"km/h":return Math.round(3.6*e*10)/10;case"mph":return Math.round(2.23694*e*10)/10;case"m/s":return Math.round(10*e)/10;default:return Math.round(1.94384*e*10)/10}},"convertTemperature",0,a,"convertTemperatureUnit",0,e=>null==e?null:"F"===(l().get("temperatureUnits")||"C")?Math.round(((e-273.15)*9/5+32)*10)/10:Math.round((e-273.15)*10)/10,"convertWindSpeed",0,e=>null==e?null:Math.round(1.94384*e*10)/10,"getDepthUnitLabel",0,()=>l().get("depthUnits")||"m","getDistanceUnitLabel",0,()=>l().get("distanceUnits")||"nm","getSpeedUnitLabel",0,()=>l().get("speedUnits")||"kn","getTemperatureUnitLabel",0,()=>"F"===(l().get("temperatureUnits")||"C")?"°F":"°C","kelvinToCelsius",0,a,"msToKnots",0,o,"radiansToDegrees",0,i,"toDegrees",0,e=>null==e?null:Math.round((180*e/Math.PI+360)%360),"toKelvin",0,s,"toKnots",0,e=>null==e?null:(1.94384*e).toFixed(1)],46991);class f{constructor(){this.client=null,this.authToken=null,this.weatherApiAvailable=null,this.connectionListeners=[],this.isConnected=!1}getClientConfig(){let e=n.default.getAll(),t=e.signalkUrl||n.default.getComputedSignalKUrl(),[r,i]=t.replace(/https?:\/\//,"").split(":");return{hostname:r||"localhost",port:parseInt(i)||3e3,useTLS:t.startsWith("https"),useAuthentication:e.useAuthentication||!1,username:e.username||null,password:e.password||null,reconnect:!0,autoConnect:!1,notifications:!1,deltaStreamBehaviour:"self",sendMeta:"all",wsKeepaliveInterval:10}}createClient(e={}){let t={...this.getClientConfig(),...e};return new r.default(t)}async connect(e={}){try{return this.client=this.createClient(e),await this.client.connect(),this.isConnected=!0,await this.checkWeatherApiAvailability(),this.connectionListeners.forEach(e=>e(!0,this.client)),this.client}catch(e){throw console.error("SignalKService: Failed to connect:",e),this.isConnected=!1,this.connectionListeners.forEach(t=>t(!1,null,e)),e}}disconnect(){this.client&&(this.client.disconnect(),this.client=null,this.isConnected=!1,this.connectionListeners.forEach(e=>e(!1,null)))}addConnectionListener(e){this.connectionListeners.push(e)}removeConnectionListener(e){this.connectionListeners=this.connectionListeners.filter(t=>t!==e)}getBaseUrl(){return n.default.getAll().signalkUrl||n.default.getComputedSignalKUrl()}getAuthHeaders(){let e=n.default.getAll(),r={"Content-Type":"application/json"};if(e.useAuthentication&&e.username){let n="function"==typeof btoa?btoa(`${e.username}:${e.password||""}`):t.Buffer.from(`${e.username}:${e.password||""}`).toString("base64");r.Authorization=`Basic ${n}`}return this.authToken&&(r.Authorization=`Bearer ${this.authToken}`),r}async apiCall(e,t={}){let r=this.getBaseUrl(),i=`${r}${e}`,o=this.getAuthHeaders(),a=n.default.getAll(),s=a.useAuthentication&&a.username?"include":"omit";try{let e=await fetch(i,{headers:{...o,...t.headers},credentials:s,...t});if(!e.ok)throw Error(`SignalK API error (${e.status}): ${e.statusText}`);return await e.json()}catch(t){if("TypeError"===t.name&&("Failed to fetch"===t.message||t.message.includes("NetworkError"))){let n=Error(`SignalK server unreachable at ${r}`);throw n.name="NetworkError",console.warn(`SignalKService: Server unreachable for ${e}:`,t.message),n}throw t.message&&(t.message.includes("(400)")||t.message.includes("(404)"))?console.warn(`SignalKService: API call returned error for ${e}:`,t.message):console.warn(`SignalKService: API call failed for ${e}:`,t),t}}async checkWeatherApiAvailability(){try{let e=await fetch(`${this.getBaseUrl()}/signalk/v2/api/weather`,{method:"GET",headers:this.getAuthHeaders()});return this.weatherApiAvailable=e.ok,this.weatherApiAvailable}catch(e){return"TypeError"===e.name&&("Failed to fetch"===e.message||e.message.includes("NetworkError"))||console.warn("SignalKService: Weather API check failed:",e.message),this.weatherApiAvailable=!1,!1}}isWeatherApiAvailable(){return this.weatherApiAvailable}async getWeatherForecast(e,t,r=48){if(!1===this.weatherApiAvailable)throw Error("Weather API is not available");if(null==e||null==t)throw Error("Position is required for weather forecast");let n=`/signalk/v2/api/weather/forecasts/point?lat=${e}&lon=${t}&count=${r}`;return await this.apiCall(n)}async getDailyWeatherForecast(e,t,r=7){if(!1===this.weatherApiAvailable)throw Error("Weather API is not available");if(null==e||null==t)throw Error("Position is required for weather forecast");let n=`/signalk/v2/api/weather/forecasts/daily?lat=${e}&lon=${t}&count=${r}`;return await this.apiCall(n)}async getCurrentWeather(){if(!1===this.weatherApiAvailable)throw Error("Weather API is not available");return await this.apiCall("/signalk/v2/api/weather/observations")}parseWeatherForecast(e){let t=[],r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];return Object.values(e).forEach(e=>{let n={description:e.description||"",date:e.date||null,time:"",temperature:null,temperatureMin:null,temperatureMax:null,dewPoint:null,humidity:null,pressure:null,rain:null,uvIndex:null,clouds:null,visibility:null,wind:{speed:null,direction:null,gust:null}};if(e.date){let t=new Date(e.date);n.time=`${r[t.getDay()]} ${t.getHours()}:${("00"+t.getMinutes()).slice(-2)}`}void 0!==e.outside?.temperature&&(n.temperature=this.kelvinToCelsius(e.outside.temperature)),void 0!==e.outside?.minTemperature&&(n.temperatureMin=this.kelvinToCelsius(e.outside.minTemperature)),void 0!==e.outside?.maxTemperature&&(n.temperatureMax=this.kelvinToCelsius(e.outside.maxTemperature)),void 0!==e.outside?.dewPointTemperature&&(n.dewPoint=this.kelvinToCelsius(e.outside.dewPointTemperature)),void 0!==e.outside?.relativeHumidity?n.humidity=e.outside.relativeHumidity:void 0!==e.outside?.absoluteHumidity&&(n.humidity=e.outside.absoluteHumidity),void 0!==e.outside?.pressure&&(n.pressure=Math.round(e.outside.pressure)),void 0!==e.outside?.uvIndex&&(n.uvIndex=e.outside.uvIndex),void 0!==e.outside?.cloudCover?n.clouds=e.outside.cloudCover:void 0!==e.outside?.clouds&&(n.clouds=e.outside.clouds),void 0!==e.outside?.horizontalVisibility?n.visibility=e.outside.horizontalVisibility:void 0!==e.outside?.visibility&&(n.visibility=e.outside.visibility),void 0!==e.outside?.precipitationVolume&&(n.rain=1e3*e.outside.precipitationVolume),void 0!==e.wind&&(void 0!==e.wind.speedTrue&&(n.wind.speed=this.msToKnots(e.wind.speedTrue)),void 0!==e.wind.gust&&(n.wind.gust=this.msToKnots(e.wind.gust)),void 0!==e.wind.directionTrue&&(n.wind.direction=this.radiansToDegrees(e.wind.directionTrue))),t.push(n)}),t}kelvinToCelsius(e){return a(e)}msToKnots(e){return o(e)}radiansToDegrees(e){return i(e)}async login(e,t){let r=this.getBaseUrl();try{let n=await fetch(`${r}/signalk/v1/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:e,password:t})});if(!n.ok)throw Error(`Login failed: ${n.statusText}`);let i=await n.json();return this.authToken=i.token,this.authToken}catch(e){if("TypeError"===e.name&&("Failed to fetch"===e.message||e.message.includes("NetworkError"))){let e=Error(`SignalK server unreachable at ${r}`);throw e.name="NetworkError",e}throw console.error("SignalKService: Login failed:",e),e}}async isLoggedIn(){try{return(await fetch(`${this.getBaseUrl()}/signalk/v1/auth/user`,{headers:this.getAuthHeaders()})).ok}catch(e){return"TypeError"===e.name&&("Failed to fetch"===e.message||e.message.includes("NetworkError")),!1}}static RESOURCE_TYPES=["routes","waypoints","notes","regions","charts"];async listResources(e,t={}){if(!f.RESOURCE_TYPES.includes(e))throw Error(`Invalid resource type: ${e}`);let r=`/signalk/v2/api/resources/${e}`,n=new URLSearchParams;t.bbox&&n.append("bbox",t.bbox),t.distance&&n.append("distance",t.distance),t.position&&n.append("position",t.position);let i=n.toString();return i&&(r+=`?${i}`),await this.apiCall(r)}async getResource(e,t){if(!f.RESOURCE_TYPES.includes(e))throw Error(`Invalid resource type: ${e}`);let r=`/signalk/v2/api/resources/${e}/${t}`;return await this.apiCall(r)}async setResource(e,t,r){if(!f.RESOURCE_TYPES.includes(e))throw Error(`Invalid resource type: ${e}`);let n=`/signalk/v2/api/resources/${e}/${t}`;return await this.apiCall(n,{method:"PUT",body:JSON.stringify(r)})}async deleteResource(e,t){if(!f.RESOURCE_TYPES.includes(e))throw Error(`Invalid resource type: ${e}`);let r=`/signalk/v2/api/resources/${e}/${t}`,n=this.getBaseUrl(),i=`${n}${r}`,o=await fetch(i,{method:"DELETE",headers:this.getAuthHeaders()});if(!o.ok)throw Error(`Failed to delete resource: ${o.statusText}`)}async getRoutes(e={}){return await this.listResources("routes",e)}async getRoute(e){return await this.getResource("routes",e)}async saveRoute(e,t){return await this.setResource("routes",e,t)}async deleteRoute(e){return await this.deleteResource("routes",e)}async getWaypoints(e={}){return await this.listResources("waypoints",e)}async getWaypoint(e){return await this.getResource("waypoints",e)}async saveWaypoint(e,t){return await this.setResource("waypoints",e,t)}async deleteWaypoint(e){return await this.deleteResource("waypoints",e)}async getCharts(){return await this.listResources("charts")}async getChart(e){return await this.getResource("charts",e)}async getNotes(e={}){return await this.listResources("notes",e)}async getNote(e){return await this.getResource("notes",e)}async saveNote(e,t){return await this.setResource("notes",e,t)}async deleteNote(e){return await this.deleteResource("notes",e)}async getRegions(e={}){return await this.listResources("regions",e)}async getRegion(e){return await this.getResource("regions",e)}async getCourse(){return await this.apiCall("/signalk/v2/api/vessels/self/navigation/course")}async getCourseCalculations(){return await this.apiCall("/signalk/v2/api/vessels/self/navigation/course/calcValues")}async setDestinationWaypoint(e){return await this.apiCall("/signalk/v2/api/vessels/self/navigation/course/destination",{method:"PUT",body:JSON.stringify({href:`/resources/waypoints/${e}`})})}async setDestinationPosition(e,t){return await this.apiCall("/signalk/v2/api/vessels/self/navigation/course/destination",{method:"PUT",body:JSON.stringify({position:{latitude:e,longitude:t}})})}async activateRoute(e,t=0,r=!1){return await this.apiCall("/signalk/v2/api/vessels/self/navigation/course/activeRoute",{method:"PUT",body:JSON.stringify({href:`/resources/routes/${e}`,pointIndex:t,reverse:r})})}async clearCourse(){await this.apiCall("/signalk/v2/api/vessels/self/navigation/course",{method:"DELETE"})}async nextWaypoint(){return await this.apiCall("/signalk/v2/api/vessels/self/navigation/course/activeRoute/nextPoint",{method:"PUT"})}async previousWaypoint(){return await this.apiCall("/signalk/v2/api/vessels/self/navigation/course/activeRoute/previousPoint",{method:"PUT"})}async setArrivalCircle(e){return await this.apiCall("/signalk/v2/api/vessels/self/navigation/course/arrivalCircle",{method:"PUT",body:JSON.stringify({value:e})})}generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}createWaypointFeature(e,t,r,n=""){return{name:r,description:n,feature:{type:"Feature",geometry:{type:"Point",coordinates:[e,t]},properties:{}}}}createRouteFeature(e,t,r=""){return{name:t,description:r,feature:{type:"Feature",geometry:{type:"LineString",coordinates:e},properties:{}}}}parseRouteCoordinates(e){return e?.feature?.geometry?.coordinates?e.feature.geometry.coordinates.map(e=>({longitude:e[0],latitude:e[1]})):[]}parseWaypointPosition(e){if(!e?.feature?.geometry?.coordinates)return null;let t=e.feature.geometry.coordinates;return{longitude:t[0],latitude:t[1]}}static AUTOPILOT_STATES=["enabled","disabled","standby","off-line"];static AUTOPILOT_MODES=["compass","gps","wind","route","dodge"];async getAutopilotDevices(){try{let e=await this.apiCall("/signalk/v2/api/vessels/self/steering/autopilot");return Object.keys(e||{})}catch(e){return console.warn("SignalKService: Could not fetch autopilot devices:",e.message),[]}}async getAutopilotData(e="default"){let t=`/signalk/v2/api/vessels/self/steering/autopilot/${e}`;return await this.apiCall(t)}async getAutopilotState(e="default"){let t=`/signalk/v2/api/vessels/self/steering/autopilot/${e}/state`;return await this.apiCall(t)}async setAutopilotState(e,t="default"){if(!f.AUTOPILOT_STATES.includes(e))throw Error(`Invalid autopilot state: ${e}`);let r=`/signalk/v2/api/vessels/self/steering/autopilot/${t}/state`;return await this.apiCall(r,{method:"PUT",body:JSON.stringify({value:e})})}async getAutopilotMode(e="default"){let t=`/signalk/v2/api/vessels/self/steering/autopilot/${e}/mode`;return await this.apiCall(t)}async setAutopilotMode(e,t="default"){if(!f.AUTOPILOT_MODES.includes(e))throw Error(`Invalid autopilot mode: ${e}`);let r=`/signalk/v2/api/vessels/self/steering/autopilot/${t}/mode`;return await this.apiCall(r,{method:"PUT",body:JSON.stringify({value:e})})}async getAutopilotTarget(e="default"){let t=`/signalk/v2/api/vessels/self/steering/autopilot/${e}/target`;return await this.apiCall(t)}async setAutopilotTarget(e,t="default"){let r=`/signalk/v2/api/vessels/self/steering/autopilot/${t}/target`;return await this.apiCall(r,{method:"PUT",body:JSON.stringify({value:e})})}async adjustAutopilotTarget(e,t="default"){let r=`/signalk/v2/api/vessels/self/steering/autopilot/${t}/target/adjust`;return await this.apiCall(r,{method:"PUT",body:JSON.stringify({value:e})})}async engageAutopilot(e="default"){let t=`/signalk/v2/api/vessels/self/steering/autopilot/${e}/engage`;return await this.apiCall(t,{method:"POST"})}async disengageAutopilot(e="default"){let t=`/signalk/v2/api/vessels/self/steering/autopilot/${e}/disengage`;return await this.apiCall(t,{method:"POST"})}async autopilotTack(e,t="default"){if("port"!==e&&"starboard"!==e)throw Error(`Invalid tack direction: ${e}`);let r=`/signalk/v2/api/vessels/self/steering/autopilot/${t}/tack/${e}`;return await this.apiCall(r,{method:"POST"})}async autopilotGybe(e,t="default"){if("port"!==e&&"starboard"!==e)throw Error(`Invalid gybe direction: ${e}`);let r=`/signalk/v2/api/vessels/self/steering/autopilot/${t}/gybe/${e}`;return await this.apiCall(r,{method:"POST"})}async autopilotDodge(e,t="default"){let r=`/signalk/v2/api/vessels/self/steering/autopilot/${t}/dodge`;return await this.apiCall(r,{method:"PUT",body:JSON.stringify({value:e})})}async isAutopilotAvailable(){try{return(await this.getAutopilotDevices()).length>0}catch(e){return!1}}async checkTideApiAvailability(){try{let e=await fetch(`${this.getBaseUrl()}/signalk/v1/api/vessels/self/environment/tide`,{method:"GET",headers:this.getAuthHeaders()});if(e.ok){let t=await e.json();return null!==t&&"object"==typeof t&&Object.keys(t).length>0}return!1}catch(e){return"TypeError"===e.name&&("Failed to fetch"===e.message||e.message.includes("NetworkError"))||console.warn("SignalKService: Tide API check failed:",e.message),!1}}async getTideData(){try{return await this.apiCall("/signalk/v1/api/vessels/self/environment/tide")}catch(e){return console.warn("SignalKService: Could not fetch tide data:",e.message),null}}}let c=new f;e.s(["default",0,c],66799);let h=()=>{let e,t=n.default.getAll();return e=t.signalKUrlSet&&t.signalkUrl?t.signalkUrl:"function"==typeof n.default.getComputedSignalKUrl?n.default.getComputedSignalKUrl():t.signalkUrl||"http://localhost:3000",{enabled:!1!==t.ocearoCoreEnabled,baseUrl:e,timeout:6e4,useAuthentication:t.useAuthentication||!1,username:t.username||"",password:t.password||""}},p=async(e,r={})=>{let n=h();if(!n.enabled)throw Error("OcearoCore is not enabled");let i=new AbortController,o=setTimeout(()=>i.abort(),n.timeout);try{let a=`${n.baseUrl}/plugins/ocearo-core${e}`,s={"Content-Type":"application/json",...r.headers},u="include";if(n.useAuthentication&&n.username)try{let e="function"==typeof btoa?btoa(`${n.username}:${n.password||""}`):t.Buffer.from(`${n.username}:${n.password||""}`).toString("base64");s.Authorization=`Basic ${e}`,u="omit"}catch(e){}let l=await fetch(a,{signal:i.signal,headers:s,credentials:u,...r});if(clearTimeout(o),!l.ok){let e=l.headers.get("content-type")||"";if(404===l.status||e.includes("text/html")){let e=Error(`OcearoCore plugin not available at ${a}`);throw e.name="NetworkError",e}let t=await l.text().catch(()=>l.statusText);throw Error(`OcearoCore API error (${l.status}): ${t}`)}return await l.json()}catch(e){if(clearTimeout(o),"AbortError"===e.name){let e=Error("OcearoCore API request timed out");throw e.name="TimeoutError",e}if("TypeError"===e.name&&("Failed to fetch"===e.message||e.message.includes("NetworkError"))){let e=Error(`OcearoCore server unreachable at ${n.baseUrl}`);throw e.name="NetworkError",e}throw e}},d=async(e,t={})=>{let r=["weather","sail","alerts","ais","status","logbook"];if(!r.includes(e))throw Error(`Invalid analysis type. Valid types: ${r.join(", ")}`);return await p("/analyze",{method:"POST",body:JSON.stringify({type:e,...t})})},y=async e=>{let t=["sailing","anchored","motoring","moored","racing"];if(!t.includes(e))throw Error(`Invalid mode. Valid modes: ${t.join(", ")}`);return await p("/mode",{method:"POST",body:JSON.stringify({mode:e})})},g=async(e=[])=>await p("/logbook/analyze",{method:"POST",body:JSON.stringify({entries:e})}),b=async e=>{if(!e||"object"!=typeof e)throw Error("Current data is required and must be an object");return await p("/logbook/entry",{method:"POST",body:JSON.stringify({currentData:e})})},m=async(e,t=null)=>{if(!e||"object"!=typeof e)throw Error("Fuel data is required and must be an object");try{let r={datetime:new Date().toISOString(),type:"fuel_refill",position:t||{latitude:null,longitude:null},fuel:{liters:e.liters,cost:e.cost,additive:e.additive||!1,engineHoursAtRefill:e.engineHours,previousEngineHours:e.previousEngineHours||null,hoursSinceLastRefill:e.hoursSinceLastRefill||null},liters:e.liters,author:"fuel_log",text:`Fuel refill: ${e.liters}L - ${e.cost}€${e.additive?" (with additive)":""} - Engine hours: ${e.engineHours}h`};return await p("/logbook/fuel",{method:"POST",body:JSON.stringify(r)})}catch(n){let r={datetime:new Date().toISOString(),type:"fuel_refill",position:t||{latitude:null,longitude:null},fuel:{liters:e.liters,cost:e.cost,additive:e.additive||!1,engineHoursAtRefill:e.engineHours,previousEngineHours:e.previousEngineHours||null,hoursSinceLastRefill:e.hoursSinceLastRefill||null},author:"fuel_log",text:`Fuel refill: ${e.liters}L - ${e.cost}€${e.additive?" (with additive)":""} - Engine hours: ${e.engineHours}h`};return await _(r)}},v=async()=>{try{let e=await p("/logbook/fuel");if(Array.isArray(e)&&e.length>=0)return e}catch(e){}return(await S()).filter(e=>"fuel_refill"===e.type||"fuel_log"===e.author)},w=(e,t=null)=>{if(!e||0===e.length)return{averageConsumption:null,totalLiters:0,totalCost:0,refillCount:0,estimatedTankLevel:null,lastRefill:null};let r=[...e].sort((e,t)=>new Date(e.datetime)-new Date(t.datetime)),n=0,i=0,o=0,a=[];for(let e=0;e<r.length;e++){let t=r[e].fuel||{};if(n+=t.liters||0,i+=t.cost||0,t.hoursSinceLastRefill&&t.hoursSinceLastRefill>0){let e=t.liters||0,r=t.hoursSinceLastRefill;e>0&&r>0&&(a.push(e/r),o+=r)}}let s=a.length>0?a.reduce((e,t)=>e+t,0)/a.length:null,u=r[r.length-1],l=u?.fuel||{};return{averageConsumption:s?Math.round(10*s)/10:null,totalLiters:Math.round(10*n)/10,totalCost:Math.round(100*i)/100,refillCount:r.length,totalHours:Math.round(10*o)/10,lastRefill:u?{date:new Date(u.datetime),liters:l.liters,engineHours:l.engineHoursAtRefill}:null}},S=async(e,t)=>{let r=new URLSearchParams;e&&r.append("startDate",e),t&&r.append("endDate",t);let n=r.toString(),i=`/logbook/all-entries${n?`?${n}`:""}`;return await p(i)},_=async e=>{if(!e||"object"!=typeof e)throw Error("Entry data is required and must be an object");return await p("/logbook/add-entry",{method:"POST",body:JSON.stringify(e)})};e.s(["addFuelLogEntry",0,m,"addLogbookEntry",0,_,"analyzeLogbookWithOcearoCore",0,g,"calculateFuelStats",0,w,"estimateTankLevel",0,(e,t,r,n=null)=>{let i,o=w(e,r);if(!o.lastRefill||!o.averageConsumption||!t)return{estimatedLiters:null,estimatedPercent:null,hoursRemaining:null,basedOnSensor:null!==n,sensorLevel:null!==n?Math.round(100*n):null};let a=t-o.lastRefill.engineHours,s=a*o.averageConsumption,u=null!==(i=null!==n&&r?n*r-s:r&&o.lastRefill.liters?o.lastRefill.liters-s:null)&&r?Math.max(0,Math.min(100,i/r*100)):null,l=null!==i&&o.averageConsumption>0?Math.max(0,i/o.averageConsumption):null;return{estimatedLiters:null!==i?Math.round(10*i)/10:null,estimatedPercent:null!==u?Math.round(u):null,hoursRemaining:null!==l?Math.round(10*l)/10:null,hoursSinceLastRefill:Math.round(10*a)/10,estimatedUsed:Math.round(10*s)/10,basedOnSensor:null!==n,sensorLevel:null!==n?Math.round(100*n):null}},"fetchFuelLogEntries",0,v,"fetchLogbookEntries",0,S,"generateOcearoCoreLogbookEntry",0,b,"handleOcearoCoreError",0,(e,t="OcearoCore operation")=>"NetworkError"===e.name?(console.warn(`${t} failed: OcearoCore server unreachable.`,e.message),"OcearoCore server unreachable. Please check if the service is running."):"TimeoutError"===e.name||e.message.includes("timed out")?(console.warn(`${t} failed: OcearoCore request timed out.`),"OcearoCore service is not responding (timeout)"):(console.warn(`${t} failed:`,e.message),e.message.includes("not enabled"))?"OcearoCore is not enabled in the configuration":e.message.includes("Logbook write failed")||e.message.includes("Logbook manager not initialized")?"Logbook service error. Please check the ocearo-core plugin status.":e.message.includes("503")?"Service temporarily unavailable. Please try again later.":e.message.includes("404")?"Feature not found or not installed":e.message.includes("500")?"Internal server error. Check server logs for details.":e.message||"Unknown error occurred","isOcearoCoreEnabled",0,()=>h().enabled,"makeOcearoCoreApiCall",0,p,"requestAnalysis",0,d,"updateOcearoCoreMode",0,y],48390);var E=e.i(90072);let A={wind:{"environment.wind.angleTrueWater":E.MathUtils.degToRad(0),"environment.wind.speedTrue":10.288,"environment.wind.angleApparent":E.MathUtils.degToRad(0),"environment.wind.speedApparent":10.288},temperature:{"environment.water.temperature":s(17),"environment.outside.temperature":s(21),"propulsion.main.exhaustTemperature":s(95),"environment.inside.fridge.temperature":s(4)},environment:{"environment.outside.pressure":102300,"environment.inside.relativeHumidity":.74,"environment.inside.voc":.03},performance:{"performance.beatAngle":E.MathUtils.degToRad(45),"performance.gybeAngle":E.MathUtils.degToRad(135),"performance.beatAngleVelocityMadeGood":6,"performance.gybeAngleVelocityMadeGood":5,"performance.targetAngle":E.MathUtils.degToRad(45),"performance.polarSpeed":8,"performance.polarSpeedRatio":.95,"performance.velocityMadeGood":5,"performance.polarVelocityMadeGood":6,"performance.polarVelocityMadeGoodRatio":.9},navigation:{"navigation.speedThroughWater":7,"navigation.headingTrue":E.MathUtils.degToRad(0),"navigation.courseOverGround":E.MathUtils.degToRad(20),"navigation.courseGreatCircle.nextPoint.bearingTrue":E.MathUtils.degToRad(30),"navigation.attitude":{roll:E.MathUtils.degToRad(5),pitch:E.MathUtils.degToRad(2),yaw:E.MathUtils.degToRad(2)}},racing:{"navigation.racing.layline":E.MathUtils.degToRad(10),"navigation.racing.layline.distance":100,"navigation.racing.layline.time":180,"navigation.racing.oppositeLayline":E.MathUtils.degToRad(45),"navigation.racing.oppositeLayline.distance":80,"navigation.racing.oppositeLayline.time":180,"navigation.racing.startLineStb":{latitude:0,longitude:0,altitude:0},"navigation.racing.startLinePort":{latitude:0,longitude:0,altitude:0},"navigation.racing.distanceStartline":50,"navigation.racing.timeToStart":120,"navigation.racing.timePortDown":60,"navigation.racing.timePortUp":70,"navigation.racing.timeStbdDown":65,"navigation.racing.timeStbdUp":75},electrical:{"electrical.batteries.1.name":"House Battery","electrical.batteries.1.location":"Under Starboard Bed","electrical.batteries.1.capacity.nominal":768,"electrical.batteries.1.capacity.actual":707,"electrical.batteries.1.capacity.remaining":601,"electrical.batteries.1.capacity.dischargeLimit":.2,"electrical.batteries.1.capacity.timeRemaining":9860,"electrical.batteries.1.lifetimeDischarge":54e4,"electrical.batteries.1.lifetimeRecharge":545e3,"electrical.batteries.1.voltage.ripple":.05,"electrical.batteries.1.chemistry":"LeadAcid","electrical.batteries.1.manufacturer.name":"VARTA","electrical.batteries.1.manufacturer.model":"Professional Dual Purpose RA 595 985","electrical.batteries.1.manufacturer.URL":"https://www.varta-automotive.com","electrical.batteries.1.dateInstalled":"2020-06-15T00:00:00Z","electrical.batteries.1.associatedBus":"House Bus","electrical.batteries.1.voltage":12.6,"electrical.batteries.1.current":-2.3,"electrical.batteries.0.name":"Engine Start Battery","electrical.batteries.0.location":"Engine Compartment","electrical.batteries.0.capacity.nominal":888,"electrical.batteries.0.capacity.actual":861,"electrical.batteries.0.chemistry":"LeadAcid","electrical.batteries.0.manufacturer.name":"VARTA","electrical.batteries.0.manufacturer.model":"Blue Dynamic E11","electrical.batteries.0.manufacturer.URL":"https://www.varta-automotive.com","electrical.batteries.0.dateInstalled":"2022-04-10T00:00:00Z","electrical.batteries.0.associatedBus":"Start Bus","electrical.batteries.0.voltage":12.4,"electrical.batteries.0.current":.1,"electrical.alternators.0.voltage":14.2,"electrical.alternators.0.current":35.5,"navigation.lights":!1,"steering.autopilot.state":"auto"},propulsion:{"propulsion.0.revolutions":25,"propulsion.0.runTime":125e3,"propulsion.0.coolantTemperature":353.15,"propulsion.0.coolantPressure":18e4,"propulsion.0.oilPressure":35e4,"propulsion.0.oilTemperature":363.15,"propulsion.0.exhaustTemperature":623.15,"propulsion.0.intakeManifoldTemperature":313.15,"propulsion.0.boostPressure":15e4,"propulsion.0.load":.45,"propulsion.0.torque":.52,"propulsion.0.state":"started","propulsion.0.fuel.rate":2778e-9,"propulsion.0.fuel.pressure":28e4,"propulsion.0.fuel.economyRate":.45,"propulsion.0.transmission.gear":1,"propulsion.0.transmission.oilPressure":32e4,"propulsion.0.transmission.oilTemperature":343.15,"propulsion.0.tilt":0,"propulsion.1.revolutions":26,"propulsion.1.runTime":128e3,"propulsion.1.coolantTemperature":355.15,"propulsion.1.coolantPressure":185e3,"propulsion.1.oilPressure":36e4,"propulsion.1.oilTemperature":365.15,"propulsion.1.exhaustTemperature":633.15,"propulsion.1.intakeManifoldTemperature":315.15,"propulsion.1.boostPressure":155e3,"propulsion.1.load":.48,"propulsion.1.torque":.54,"propulsion.1.state":"started","propulsion.1.fuel.rate":2917e-9,"propulsion.1.fuel.pressure":285e3,"propulsion.1.transmission.gear":1,"propulsion.1.transmission.oilPressure":325e3,"propulsion.1.transmission.oilTemperature":345.15,"propulsion.1.tilt":0},tanks:{"tanks.fuel.0.currentLevel":.75,"tanks.fuel.0.capacity":200,"tanks.fuel.0.currentVolume":150,"tanks.fuel.0.type":"fuel","tanks.freshWater.0.currentLevel":.45,"tanks.freshWater.0.capacity":200,"tanks.freshWater.0.type":"freshWater","tanks.wasteWater.0.currentLevel":.25,"tanks.wasteWater.0.capacity":200,"tanks.wasteWater.0.type":"wasteWater","tanks.blackWater.0.currentLevel":.25,"tanks.blackWater.0.capacity":200,"tanks.blackWater.0.type":"blackWater","tanks.oil.0.currentLevel":.9,"tanks.oil.0.capacity":5,"tanks.oil.0.type":"oil"}};e.s(["SAMPLE_DATA",0,A,"SAMPLE_DATA_INTERVAL",0,5e3],78037)},85709,e=>{"use strict";e.s(["useSignalKPath",()=>n,"useSignalKPaths",()=>i]);var t=e.i(71645),r=e.i(67561);let n=(e,n=null)=>{let{getSignalKValue:i,subscribe:o,unsubscribe:a}=(0,r.useOcearoContext)(),[s,u]=(0,t.useState)(()=>i(e)??n),l=(0,t.useRef)(n),f=(0,t.useRef)(s);l.current=n;let c=(0,t.useCallback)(e=>{let t=e??l.current;f.current=t,u(t)},[]);return(0,t.useEffect)(()=>{o&&o(e,c);let t=i(e);return null!=t&&(f.current=t,u(t)),()=>{a&&a(e,c)}},[e,o,a,i,c]),s},i=e=>{let{getSignalKValue:n,subscribe:i,unsubscribe:o}=(0,r.useOcearoContext)(),a=JSON.stringify(e),s=(0,t.useRef)(e);JSON.stringify(s.current)!==a&&(s.current=e);let[u,l]=(0,t.useState)(()=>{let e={};return s.current.forEach(t=>{e[t]=n(t)}),e});return(0,t.useEffect)(()=>{let e=s.current,t={};e.forEach(e=>{t[e]=t=>{l(r=>r[e]===t?r:{...r,[e]:t})}}),i&&e.forEach(e=>i(e,t[e]));let r={},a=!1;return e.forEach(e=>{let t=n(e);null!=t&&(r[e]=t,a=!0)}),a&&l(e=>({...e,...r})),()=>{o&&e.forEach(e=>{t[e]&&o(e,t[e])})}},[a,i,o,n]),u}},67561,11426,e=>{"use strict";e.s(["OcearoContextProvider",()=>_,"oBlue",()=>d,"oGray",()=>v,"oGray2",()=>w,"oGreen",()=>b,"oNight",()=>m,"oRed",()=>y,"oYellow",()=>g,"useOcearoContext",()=>E],67561);var t=e.i(43476),r=e.i(71645);e.i(49018);var n=e.i(83402),i=e.i(66799),o=e.i(48390),a=e.i(90072);e.i(46991);var s=e.i(78037);e.s(["TideContextProvider",()=>h],11426);var u=e.i(85709);let l=(0,r.createContext)(),f=["environment.tide.heightNow","environment.tide.heightHigh","environment.tide.heightLow","environment.tide.timeLow","environment.tide.timeHigh","environment.tide.coeffNow"],c=async e=>{try{let t,r,n=new Date,i=n.getFullYear(),o=(n.getMonth()+1).toString().padStart(2,"0"),a=`/tides/larochelle/${o}_${i}.json`,s=await fetch(a);if(!s.ok)return void console.warn("TideContext: No local tide data found");let u=await s.json(),l=n.toISOString().split("T")[0];if(!u[l])return;let f=new Date,c=60*f.getHours()+f.getMinutes(),h=null,p=null;for(let e of u[l].map(([e,t,r,n])=>{let[i,o]=t.split(":").map(Number);return{type:e,height:parseFloat(r),time:t,timeInMinutes:60*i+o,coef:n}}).sort((e,t)=>e.timeInMinutes-t.timeInMinutes))if(e.timeInMinutes<=c)h=e;else{p=e;break}if(!h||!p)return void console.warn("TideContext: Cannot determine tide trend from local data");if("tide.low"===h.type&&"tide.high"===p.type?(t="tide.high"===p.type?p:null,r="tide.low"===h.type?h:null):(t="tide.high"===h.type?h:null,r="tide.low"===p.type?p:null),t&&r){let n=`${f.getHours().toString().padStart(2,"0")}:${f.getMinutes().toString().padStart(2,"0")}`,i=((e,t,r,n,i)=>{let o,a,s,u;if(!r||!n||!i||!/^\d{1,2}:\d{2}$/.test(r)||!/^\d{1,2}:\d{2}$/.test(n)||!/^\d{1,2}:\d{2}$/.test(i))return console.error("Invalid time format provided to calculateTideHeightUsingTwelfths"),(e+t)/2;let l=e=>{let[t,r]=e.split(":").map(Number);return 60*t+r},f=l(n),c=l(i),h=l(r),p=!1;c<=h&&h<=f?(p=!0,o=t,a=e,s=c,u=f):(o=e,a=t,s=f,u=c+1440*(c<f));let d=Math.abs(u-s),y=Math.abs(a-o),g=h-s;g<0&&(g+=1440);let b=y/12,m=0;return m=g<=d/6?b*Math.ceil(g/(d/12)):g<=2*d/6?2*b+b*Math.ceil((g-d/6)/(d/12)):g<=3*d/6?5*b:g<=4*d/6?8*b:g<=5*d/6?10*b:y,p?o+m:o-m})(t.height,r.height,n,t.time,r.time);e({"environment.tide.heightNow":i,"environment.tide.heightHigh":t.height,"environment.tide.heightLow":r.height,"environment.tide.timeLow":r.time,"environment.tide.timeHigh":t.time,"environment.tide.coeffNow":t.coef})}else console.warn("TideContext: Tide data for today is incomplete")}catch(e){console.warn("TideContext: Failed to fetch local tide data:",e.message)}},h=({children:e})=>{let{updateSignalKData:n}=E(),o=(0,u.useSignalKPaths)(f),[a,s]=(0,r.useState)(null),[h,p]=(0,r.useState)(!1),[d,y]=(0,r.useState)(null),[g,b]=(0,r.useState)(null),[m,v]=(0,r.useState)(null),w=(0,r.useRef)(null),S=(0,r.useRef)(null),_=(0,r.useRef)(n);_.current=n;let A=(0,r.useCallback)(async()=>{p(!0),y(null);try{let e=await i.default.checkTideApiAvailability();s(e),e?v("signalk"):(v("local"),await c(_.current)),b(new Date)}catch(e){console.warn("TideContext: Failed to fetch tide data:",e.message),y(e.message);try{v("local"),await c(_.current),b(new Date)}catch(e){console.warn("TideContext: Local fallback also failed:",e.message)}}finally{p(!1)}},[]);(0,r.useEffect)(()=>(S.current=setTimeout(()=>{A()},3e3),w.current=setInterval(()=>{A()},6e5),()=>{S.current&&clearTimeout(S.current),w.current&&clearInterval(w.current)}),[A]);let R=(0,r.useMemo)(()=>({level:o["environment.tide.heightNow"],high:o["environment.tide.heightHigh"],low:o["environment.tide.heightLow"],timeLow:o["environment.tide.timeLow"],timeHigh:o["environment.tide.timeHigh"],coefficient:o["environment.tide.coeffNow"]}),[o]),O=(0,r.useMemo)(()=>({tideData:R,tideApiAvailable:a,source:m,isLoading:h,error:d,lastFetchTime:g,fetchTideData:A}),[R,a,m,h,d,g,A]);return(0,t.jsx)(l.Provider,{value:O,children:e})},p=(0,r.createContext)(),d="#09bfff",y="#cc000c",g="#ffbe00",b="#0fcd4f",m="#ef4444",v="#989898",w="#424242",S={autopilot:!0,anchorWatch:!1,parkingMode:!1,mob:!1,oceanMode:"black",ais:!1,showPolar:!0,showLaylines3D:!1},_=({children:e})=>{let[u,l]=(0,r.useState)(()=>n.default.get("theme")||"dark"),[f,c]=(0,r.useState)(!1),[h,d]=(0,r.useState)(S);(0,r.useEffect)(()=>{"u">typeof document&&document.documentElement.setAttribute("data-theme",u)},[u]),(0,r.useEffect)(()=>{"u">typeof document&&document.documentElement.setAttribute("data-night",f?"true":"false")},[f]),(0,r.useEffect)(()=>{},[u]);let y=(0,r.useRef)({}),g=(0,r.useRef)({}),b=(0,r.useCallback)((e,t)=>{y.current[e]||(y.current[e]=new Set),y.current[e].add(t)},[]),m=(0,r.useCallback)((e,t)=>{y.current[e]&&(y.current[e].delete(t),0===y.current[e].size&&delete y.current[e])},[]),v=(0,r.useCallback)((e,t)=>{y.current[e]&&y.current[e].forEach(e=>e(t))},[]),w=(0,r.useCallback)(e=>{let t=g.current,r=!1;for(let[n,i]of Object.entries(e)){let e=t[n];e!==i&&("object"!=typeof e||"object"!=typeof i||null===e||null===i||JSON.stringify(e)!==JSON.stringify(i))&&(t[n]=i,r=!0,v(n,i))}r&&(g.current=t)},[v]),_=(0,r.useCallback)(e=>Object.prototype.hasOwnProperty.call(g.current,e)?g.current[e]:null,[]),E=(0,r.useCallback)(()=>{let e=g.current,t=n.default.get("preferredHeadingPath")||"courseOverGroundTrue",r=e[`navigation.${t}`];if(null!=r)return r;let i=e["navigation.headingTrue"]||e["navigation.headingMagnetic"];return e["navigation.courseOverGroundTrue"]||e["navigation.courseOverGroundMagnetic"]||i||0},[]);(0,r.useCallback)(()=>"motoring"!==g.current["navigation.state"],[]);let A=["black","water","chart","meteo"],R=async(e,t)=>{let r=void 0!==t?t:!h[e];if(d(t=>({...t,[e]:r})),"anchorWatch"===e)try{if(r)(0,o.isOcearoCoreEnabled)()&&await (0,o.updateOcearoCoreMode)("anchored");else{let e=g.current,t=e["propulsion.main.state"]||e["propulsion.main.revolutions"];(0,o.isOcearoCoreEnabled)()&&await (0,o.updateOcearoCoreMode)("running"===t||"number"==typeof t&&t>0?"motoring":"sailing")}}catch(e){"NetworkError"===e.name?console.warn("OcearoCore unreachable for anchorWatch update"):console.warn("Failed to update OcearoCore mode for anchorWatch:",(0,o.handleOcearoCoreError)(e))}if("parkingMode"===e)try{r&&(0,o.isOcearoCoreEnabled)()&&await (0,o.updateOcearoCoreMode)("moored")}catch(e){"NetworkError"===e.name?console.warn("OcearoCore unreachable for parkingMode update"):console.warn("Failed to update OcearoCore mode for parkingMode:",(0,o.handleOcearoCoreError)(e))}if("racing"===e)try{r?(0,o.isOcearoCoreEnabled)()&&await (0,o.updateOcearoCoreMode)("racing"):(0,o.isOcearoCoreEnabled)()&&await (0,o.updateOcearoCoreMode)("sailing")}catch(e){"NetworkError"===e.name?console.warn("OcearoCore unreachable for racing update"):console.error("Failed to update OcearoCore mode for racing:",(0,o.handleOcearoCoreError)(e))}},O=async e=>{let t=["autopilot","anchorWatch","parkingMode"];if(!t.includes(e))return R(e);if(h[e])return R(e,!1);d(r=>{let n={...r};return t.forEach(t=>{n[t]=t===e}),n});try{if((0,o.isOcearoCoreEnabled)()){if("anchorWatch"===e)await (0,o.updateOcearoCoreMode)("anchored");else if("parkingMode"===e)await (0,o.updateOcearoCoreMode)("moored");else if("autopilot"===e){let e=g.current,t=e["propulsion.main.state"]||e["propulsion.main.revolutions"];await (0,o.updateOcearoCoreMode)("running"===t||"number"==typeof t&&t>0?"motoring":"sailing")}}}catch(t){"NetworkError"===t.name?console.warn(`OcearoCore unreachable for exclusive mode update: ${e}`):console.warn(`Failed to update OcearoCore mode for ${e}:`,(0,o.handleOcearoCoreError)(t))}},x=(0,r.useRef)(null),T=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=!0;return(async()=>{let{signalkUrl:t,debugMode:r}=n.default.getAll(),o=()=>{T.current&&clearInterval(T.current);let e=0,t=0,r=1,i={"steering.rudderAngle":a.MathUtils.degToRad(t),...s.SAMPLE_DATA.temperature,...s.SAMPLE_DATA.environment,...s.SAMPLE_DATA.performance,...s.SAMPLE_DATA.navigation,...s.SAMPLE_DATA.racing,...s.SAMPLE_DATA.electrical,...s.SAMPLE_DATA.propulsion,...s.SAMPLE_DATA.tanks};n.default.get("debugWindOverride")||Object.assign(i,s.SAMPLE_DATA.wind),w(i),T.current=setInterval(()=>{((t+=2*r)>=15||t<=-15)&&(r*=-1);let i={"steering.rudderAngle":a.MathUtils.degToRad(t)};n.default.get("debugWindOverride")||(e=(e+5)%360,i["environment.wind.angleTrueWater"]=a.MathUtils.degToRad(e),i["environment.wind.angleApparent"]=a.MathUtils.degToRad(e)),w(i)},s.SAMPLE_DATA_INTERVAL)};if(!t||0===t.trim().length){r&&o();return}try{let t=i.default.createClient({deltaStreamBehaviour:"self",sendMeta:"all"});x.current=t,await t.connect();let a=["environment.wind.speedTrue","environment.wind.speedApparent","environment.wind.angleTrueWater","environment.wind.angleApparent","environment.wind.directionTrue","environment.wind.speedOverGround","environment.wind.angleTrueGround"];t.on("delta",t=>{e&&t.updates.forEach(e=>{e.values&&e.values.forEach(e=>{n.default.get("debugWindOverride")&&a.includes(e.path)||w({[e.path]:e.value})})})}),r&&o()}catch(n){let e;if(n instanceof Error)e=n.message;else if(n&&"object"==typeof n&&"isTrusted"in n)e="Network error (Event). Check SignalK URL, server availability, and CORS settings.";else try{e=JSON.stringify(n)}catch(t){e=String(n)}console.warn(`Failed to connect to SignalK (${t}): ${e}`),r&&o()}})(),()=>{e=!1,x.current&&x.current.disconnect(),T.current&&clearInterval(T.current)}},[]),(0,t.jsx)(p.Provider,{value:{getSignalKValue:_,subscribe:b,unsubscribe:m,updateSignalKData:w,getBoatRotationAngle:E,convertLatLonToXY:(e,t)=>{if(!e?.lat||!e?.lon||!t?.lat||!t?.lon)return console.warn("Invalid input to convertLatLonToXY",e,t),{x:0,y:0};let r=t.lat*Math.PI/180,n=t.lon*Math.PI/180,i=e.lat*Math.PI/180,o=e.lon*Math.PI/180-n,a=i-r,s=Math.atan2(Math.sin(o)*Math.cos(i),Math.cos(r)*Math.sin(i)-Math.sin(r)*Math.cos(i)*Math.cos(o)),u=Math.sin(a/2)*Math.sin(a/2)+Math.cos(r)*Math.cos(i)*Math.sin(o/2)*Math.sin(o/2),l=2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u))*6371e3;return{x:l*Math.sin(s),y:l*Math.cos(s)}},theme:u,setTheme:l,nightMode:f,setNightMode:c,states:h,toggleState:R,toggleExclusiveMode:O,cycleOceanMode:()=>{d(e=>{let t=(A.indexOf(e.oceanMode)+1)%A.length;return{...e,oceanMode:A[t]}})}},children:e})},E=()=>(0,r.useContext)(p)}]);