varr=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(t,e){t.__proto__=e}||function(t,e){for(varnine)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};functioni(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Class extends value "+String(e)+" is not a constructor or null");functionn(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,newn)}varo=function(){return(o=Object.assign||function(t){for(vare,n=1,r=arguments.length;n<r;n++)for(variine=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);returnt}).apply(this,arguments)};functiona(t,e){varn={};for(varrint)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeofObject.getOwnPropertySymbols){vari=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}returnn}functions(t,e,n,r){vari,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeofReflect&&"function"==typeofReflect.decorate)a=Reflect.decorate(t,e,n,r);elsefor(vars=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);returno>3&&a&&Object.defineProperty(e,n,a),a}functionu(t,e){returnfunction(n,r){e(n,r,t)}}functionl(t,e){if("object"==typeofReflect&&"function"==typeofReflect.metadata)returnReflect.metadata(t,e)}functionc(t,e,n,r){returnnew(n||(n=Promise))((function(i,o){functiona(t){try{u(r.next(t))}catch(t){o(t)}}functions(t){try{u(r.throw(t))}catch(t){o(t)}}functionu(t){vare;t.done?i(t.value):(e=t.value,einstanceofn?e:newn((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}functionh(t,e){varn,r,i,o,a={label:0,sent:function(){if(1&i[0])throwi[1];returni[1]},trys:[],ops:[]};returno={next:s(0),throw:s(1),return:s(2)},"function"==typeofSymbol&&(o[Symbol.iterator]=function(){returnthis}),o;functions(o){returnfunction(s){returnfunction(o){if(n)thrownewTypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)returni;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case0:case1:i=o;break;case4:returna.label++,{value:o[1],done:!1};case5:a.label++,r=o[1],o=[0];continue;case7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throwo[1];return{value:o[0]?o[1]:void0,done:!0}}([o,s])}}}varf=Object.create?function(t,e,n,r){void0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){returne[n]}})}:function(t,e,n,r){void0===r&&(r=n),t[r]=e[n]};functiond(t,e){for(varnint)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||f(e,t,n)}functionp(t){vare="function"==typeofSymbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)returnn.call(t);if(t&&"number"==typeoft.length)return{next:function(){returnt&&r>=t.length&&(t=void0),{value:t&&t[r++],done:!t}}};thrownewTypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}functiong(t,e){varn="function"==typeofSymbol&&t[Symbol.iterator];if(!n)returnt;varr,i,o=n.call(t),a=[];try{for(;(void0===e||e-->0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throwi.error}}returna}functionv(){for(vart=[],e=0;e<arguments.length;e++)t=t.concat(g(arguments[e]));returnt}functionm(){for(vart=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;varr=Array(t),i=0;for(e=0;e<n;e++)for(varo=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];returnr}functiony(t,e,n){if(n||2===arguments.length)for(varr,i=0,o=e.length;i<o;i++)!r&&iine||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[
varr=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(t,e){t.__proto__=e}||function(t,e){for(varnine)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};functioni(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Class extends value "+String(e)+" is not a constructor or null");functionn(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,newn)}varo=function(){return(o=Object.assign||function(t){for(vare,n=1,r=arguments.length;n<r;n++)for(variine=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);returnt}).apply(this,arguments)};functiona(t,e){varn={};for(varrint)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeofObject.getOwnPropertySymbols){vari=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}returnn}functions(t,e,n,r){vari,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeofReflect&&"function"==typeofReflect.decorate)a=Reflect.decorate(t,e,n,r);elsefor(vars=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);returno>3&&a&&Object.defineProperty(e,n,a),a}functionu(t,e){returnfunction(n,r){e(n,r,t)}}functionl(t,e){if("object"==typeofReflect&&"function"==typeofReflect.metadata)returnReflect.metadata(t,e)}functionc(t,e,n,r){returnnew(n||(n=Promise))((function(i,o){functiona(t){try{u(r.next(t))}catch(t){o(t)}}functions(t){try{u(r.throw(t))}catch(t){o(t)}}functionu(t){vare;t.done?i(t.value):(e=t.value,einstanceofn?e:newn((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}functionh(t,e){varn,r,i,o,a={label:0,sent:function(){if(1&i[0])throwi[1];returni[1]},trys:[],ops:[]};returno={next:s(0),throw:s(1),return:s(2)},"function"==typeofSymbol&&(o[Symbol.iterator]=function(){returnthis}),o;functions(o){returnfunction(s){returnfunction(o){if(n)thrownewTypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)returni;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case0:case1:i=o;break;case4:returna.label++,{value:o[1],done:!1};case5:a.label++,r=o[1],o=[0];continue;case7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throwo[1];return{value:o[0]?o[1]:void0,done:!0}}([o,s])}}}varf=Object.create?function(t,e,n,r){void0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){returne[n]}})}:function(t,e,n,r){void0===r&&(r=n),t[r]=e[n]};functiond(t,e){for(varnint)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||f(e,t,n)}functionp(t){vare="function"==typeofSymbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)returnn.call(t);if(t&&"number"==typeoft.length)return{next:function(){returnt&&r>=t.length&&(t=void0),{value:t&&t[r++],done:!t}}};thrownewTypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}functiong(t,e){varn="function"==typeofSymbol&&t[Symbol.iterator];if(!n)returnt;varr,i,o=n.call(t),a=[];try{for(;(void0===e||e-->0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throwi.error}}returna}functionv(){for(vart=[],e=0;e<arguments.length;e++)t=t.concat(g(arguments[e]));returnt}functionm(){for(vart=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;varr=Array(t),i=0;for(e=0;e<n;e++)for(varo=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];returnr}functiony(t,e,n){if(n||2===arguments.length)for(varr,i=0,o=e.length;i<o;i++)!r&&iine||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[
varr=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(t,e){t.__proto__=e}||function(t,e){for(varnine)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};functioni(t,e){functionn(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,newn)}varo=function(){return(o=Object.assign||function(t){for(vare,n=1,r=arguments.length;n<r;n++)for(variine=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);returnt}).apply(this,arguments)};functiona(t,e){varn={};for(varrint)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeofObject.getOwnPropertySymbols){vari=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}returnn}functions(t,e,n,r){vari,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeofReflect&&"function"==typeofReflect.decorate)a=Reflect.decorate(t,e,n,r);elsefor(vars=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);returno>3&&a&&Object.defineProperty(e,n,a),a}functionu(t,e){returnfunction(n,r){e(n,r,t)}}functionl(t,e){if("object"==typeofReflect&&"function"==typeofReflect.metadata)returnReflect.metadata(t,e)}functionc(t,e,n,r){returnnew(n||(n=Promise))((function(i,o){functiona(t){try{u(r.next(t))}catch(t){o(t)}}functions(t){try{u(r.throw(t))}catch(t){o(t)}}functionu(t){vare;t.done?i(t.value):(e=t.value,einstanceofn?e:newn((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}functionh(t,e){varn,r,i,o,a={label:0,sent:function(){if(1&i[0])throwi[1];returni[1]},trys:[],ops:[]};returno={next:s(0),throw:s(1),return:s(2)},"function"==typeofSymbol&&(o[Symbol.iterator]=function(){returnthis}),o;functions(o){returnfunction(s){returnfunction(o){if(n)thrownewTypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)returni;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case0:case1:i=o;break;case4:returna.label++,{value:o[1],done:!1};case5:a.label++,r=o[1],o=[0];continue;case7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throwo[1];return{value:o[0]?o[1]:void0,done:!0}}([o,s])}}}functionf(t,e,n,r){void0===r&&(r=n),t[r]=e[n]}functiond(t,e){for(varnint)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}functionp(t){vare="function"==typeofSymbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)returnn.call(t);if(t&&"number"==typeoft.length)return{next:function(){returnt&&r>=t.length&&(t=void0),{value:t&&t[r++],done:!t}}};thrownewTypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}functiong(t,e){varn="function"==typeofSymbol&&t[Symbol.iterator];if(!n)returnt;varr,i,o=n.call(t),a=[];try{for(;(void0===e||e-->0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throwi.error}}returna}functionv(){for(vart=[],e=0;e<arguments.length;e++)t=t.concat(g(arguments[e]));returnt}functionm(){for(vart=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;varr=Array(t),i=0;for(e=0;e<n;e++)for(varo=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];returnr}functiony(t){returnthisinstanceofy?(this.v=t,this):newy(t)}functionb(t,e,n){if(!Symbol.asyncIterator)thrownewTypeError("Symbol.asyncIterator is not defined.");varr,i=n.apply(t,e||[]),o=[];returnr={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){returnthis},r;functiona(t){i[t]&&(r[t]=function(e){returnnewPromise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))})}functions(t,e){try{(n=i[t](e)
varr=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(t,e){t.__proto__=e}||function(t,e){for(varnine)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};functioni(t,e){functionn(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,newn)}varo=function(){return(o=Object.assign||function(t){for(vare,n=1,r=arguments.length;n<r;n++)for(variine=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);returnt}).apply(this,arguments)};functiona(t,e){varn={};for(varrint)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeofObject.getOwnPropertySymbols){vari=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}returnn}functions(t,e,n,r){vari,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeofReflect&&"function"==typeofReflect.decorate)a=Reflect.decorate(t,e,n,r);elsefor(vars=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);returno>3&&a&&Object.defineProperty(e,n,a),a}functionu(t,e){returnfunction(n,r){e(n,r,t)}}functionl(t,e){if("object"==typeofReflect&&"function"==typeofReflect.metadata)returnReflect.metadata(t,e)}functionc(t,e,n,r){returnnew(n||(n=Promise))((function(i,o){functiona(t){try{u(r.next(t))}catch(t){o(t)}}functions(t){try{u(r.throw(t))}catch(t){o(t)}}functionu(t){vare;t.done?i(t.value):(e=t.value,einstanceofn?e:newn((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}functionh(t,e){varn,r,i,o,a={label:0,sent:function(){if(1&i[0])throwi[1];returni[1]},trys:[],ops:[]};returno={next:s(0),throw:s(1),return:s(2)},"function"==typeofSymbol&&(o[Symbol.iterator]=function(){returnthis}),o;functions(o){returnfunction(s){returnfunction(o){if(n)thrownewTypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)returni;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case0:case1:i=o;break;case4:returna.label++,{value:o[1],done:!1};case5:a.label++,r=o[1],o=[0];continue;case7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throwo[1];return{value:o[0]?o[1]:void0,done:!0}}([o,s])}}}functionf(t,e,n,r){void0===r&&(r=n),t[r]=e[n]}functiond(t,e){for(varnint)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}functionp(t){vare="function"==typeofSymbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)returnn.call(t);if(t&&"number"==typeoft.length)return{next:function(){returnt&&r>=t.length&&(t=void0),{value:t&&t[r++],done:!t}}};thrownewTypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}functiong(t,e){varn="function"==typeofSymbol&&t[Symbol.iterator];if(!n)returnt;varr,i,o=n.call(t),a=[];try{for(;(void0===e||e-->0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throwi.error}}returna}functionv(){for(vart=[],e=0;e<arguments.length;e++)t=t.concat(g(arguments[e]));returnt}functionm(){for(vart=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;varr=Array(t),i=0;for(e=0;e<n;e++)for(varo=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];returnr}functiony(t){returnthisinstanceofy?(this.v=t,this):newy(t)}functionb(t,e,n){if(!Symbol.asyncIterator)thrownewTypeError("Symbol.asyncIterator is not defined.");varr,i=n.apply(t,e||[]),o=[];returnr={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){returnthis},r;functiona(t){i[t]&&(r[t]=function(e){returnnewPromise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))})}functions(t,e){try{(n=i[t](e)
varr=n(1963),i=n(1964),o=n(1965);functiona(){returnu.TYPED_ARRAY_SUPPORT?2147483647:1073741823}functions(t,e){if(a()<e)thrownewRangeError("Invalid typed array length");returnu.TYPED_ARRAY_SUPPORT?(t=newUint8Array(e)).__proto__=u.prototype:(null===t&&(t=newu(e)),t.length=e),t}functionu(t,e,n){if(!(u.TYPED_ARRAY_SUPPORT||thisinstanceofu))returnnewu(t,e,n);if("number"==typeoft){if("string"==typeofe)thrownewError("If encoding is specified then the first argument must be a string");returnh(this,t)}returnl(this,t,e,n)}functionl(t,e,n,r){if("number"==typeofe)thrownewTypeError('"value" argument must not be a number');return"undefined"!=typeofArrayBuffer&&einstanceofArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)thrownewRangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))thrownewRangeError("'length' is out of bounds");e=void0===n&&void0===r?newUint8Array(e):void0===r?newUint8Array(e,n):newUint8Array(e,n,r);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=f(t,e);returnt}(t,e,n,r):"string"==typeofe?function(t,e,n){"string"==typeofn&&""!==n||(n="utf8");if(!u.isEncoding(n))thrownewTypeError('"encoding" must be a valid string encoding');varr=0|p(e,n),i=(t=s(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));returnt}(t,e,n):function(t,e){if(u.isBuffer(e)){varn=0|d(e.length);return0===(t=s(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeofArrayBuffer&&e.bufferinstanceofArrayBuffer||"length"ine)return"number"!=typeofe.length||(r=e.length)!=r?s(t,0):f(t,e);if("Buffer"===e.type&&o(e.data))returnf(t,e.data)}varr;thrownewTypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}functionc(t){if("number"!=typeoft)thrownewTypeError('"size" argument must be a number');if(t<0)thrownewRangeError('"size" argument must not be negative')}functionh(t,e){if(c(e),t=s(t,e<0?0:0|d(e)),!u.TYPED_ARRAY_SUPPORT)for(varn=0;n<e;++n)t[n]=0;returnt}functionf(t,e){varn=e.length<0?0:0|d(e.length);t=s(t,n);for(varr=0;r<n;r+=1)t[r]=255&e[r];returnt}functiond(t){if(t>=a())thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return0|t}functionp(t,e){if(u.isBuffer(t))returnt.length;if("undefined"!=typeofArrayBuffer&&"function"==typeofArrayBuffer.isView&&(ArrayBuffer.isView(t)||tinstanceofArrayBuffer))returnt.byteLength;"string"!=typeoft&&(t=""+t);varn=t.length;if(0===n)return0;for(varr=!1;;)switch(e){case"ascii":case"latin1":case"binary":returnn;case"utf8":case"utf-8":casevoid0:returnz(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return2*n;case"hex":returnn>>>1;case"base64":returnV(t).length;default:if(r)returnz(t).length;e=(""+e).toLowerCase(),r=!0}}functiong(t,e,n){varr=!1;if((void0===e||e<0)&&(e=0),e>this.length)return"";if((void0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":returnM(this,e,n);case"utf8":case"utf-8":returnE(this,e,n);case"ascii":returnT(this,e,n);case"latin1":case"binary":returnA(this,e,n);case"base64":returnC(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":returnI(this,e,n);default:if(r)thrownewTypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}functionv(t,e,n){varr=t[e];t[e]=t[n],t[n]=r}functionm(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeofn?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}elseif(n<0){if(!i)return-1;n=0}if("string"==typeofe&&(e=u.from(e,r)),u.isBuffer(e))return0===e.length?-1:y(t,e,n,r,i);if("number"==typeofe)returne&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeofUint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,r,i);thrownewTypeError("val must be string, number or Buffer")}functiony(t,e,n,r,i){varo,a=1,s=t.length,u=e.length;if(void0!==r&&("ucs2"===(r=String(r).toLowerCase())