import{D as e,T as t,a as n,f as r,h as i,o as a,p as o,t as s,w as c,x as l}from"./_Uint8Array.DjkcCK1N.js";import{r as u}from"./_overRest.Q80YzLxH.js";var d=Object.create,f=function(){function e(){}return function(t){if(!l(t))return{};if(d)return d(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function p(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}function m(e,t,n){t==`__proto__`&&u?u(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var h=Object.prototype.hasOwnProperty;function g(e,t,n){var r=e[t];(!(h.call(e,t)&&i(r,n))||n===void 0&&!(t in e))&&m(e,t,n)}function _(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?m(n,s,c):g(n,s,c)}return n}function v(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var y=Object.prototype.hasOwnProperty;function b(e){if(!l(e))return v(e);var t=r(e),n=[];for(var i in e)i==`constructor`&&(t||!y.call(e,i))||n.push(i);return n}function x(e){return o(e)?a(e,!0):b(e)}var S=n(Object.getPrototypeOf,Object),C=`[object Object]`,w=Function.prototype,T=Object.prototype,E=w.toString,D=T.hasOwnProperty,O=E.call(Object);function k(e){if(!c(e)||t(e)!=C)return!1;var n=S(e);if(n===null)return!0;var r=D.call(n,`constructor`)&&n.constructor;return typeof r==`function`&&r instanceof r&&E.call(r)==O}var A=typeof exports==`object`&&exports&&!exports.nodeType&&exports,j=A&&typeof module==`object`&&module&&!module.nodeType&&module,M=j&&j.exports===A?e.Buffer:void 0,N=M?M.allocUnsafe:void 0;function P(e,t){if(t)return e.slice();var n=e.length,r=N?N(n):new e.constructor(n);return e.copy(r),r}function F(e){var t=new e.constructor(e.byteLength);return new s(t).set(new s(e)),t}function I(e,t){var n=t?F(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function L(e){return typeof e.constructor==`function`&&!r(e)?f(S(e)):{}}export{k as a,_ as c,p as d,P as i,g as l,I as n,S as o,F as r,x as s,L as t,m as u};