import{o as e,t}from"./isObject-BNleAbAq.js";import{O as n,T as r,b as i,m as a,p as o,r as s,x as c}from"./isArrayLikeObject-CpNOZLZH.js";var l=Object.create,u=function(){function e(){}return function(n){if(!t(n))return{};if(l)return l(n);e.prototype=n;var r=new e;return e.prototype=void 0,r}}();function d(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}function f(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var p=Object.prototype.hasOwnProperty;function m(e,t,n){var i=e[t];(!(p.call(e,t)&&r(i,n))||n===void 0&&!(t in e))&&f(e,t,n)}function h(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?f(n,s,c):m(n,s,c)}return n}function g(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var _=Object.prototype.hasOwnProperty;function v(e){if(!t(e))return g(e);var n=i(e),r=[];for(var a in e)a==`constructor`&&(n||!_.call(e,a))||r.push(a);return r}function y(e){return c(e)?a(e,!0):v(e)}var b=o(Object.getPrototypeOf,Object),x=typeof exports==`object`&&exports&&!exports.nodeType&&exports,S=x&&typeof module==`object`&&module&&!module.nodeType&&module,C=S&&S.exports===x?e.Buffer:void 0,w=C?C.allocUnsafe:void 0;function T(e,t){if(t)return e.slice();var n=e.length,r=w?w(n):new e.constructor(n);return e.copy(r),r}function E(e){var t=new e.constructor(e.byteLength);return new s(t).set(new s(e)),t}function D(e,t){var n=t?E(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function O(e){return typeof e.constructor==`function`&&!i(e)?u(b(e)):{}}export{b as a,m as c,T as i,f as l,D as n,y as o,E as r,h as s,O as t,d as u};