import{o as W,k as U,g as M,s as q,b as X,U as h,a as p,S as Z,c as z}from"./_Uint8Array-BbDZod1N.mjs";import{aH as B,aI as V,aJ as P,aK as j,aL as k,aM as ee,aN as $,aO as te,aP as N,aQ as y,aR as _,aS as re,aT as ne}from"./D6ipka4G.js";var w=Object.create,ae=function(){function e(){}return function(t){if(!B(t))return{};if(w)return w(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function oe(e,t){var r=-1,o=e.length;for(t||(t=Array(o));++r<o;)t[r]=e[r];return t}function ce(e,t){for(var r=-1,o=e==null?0:e.length;++r<o&&t(e[r],r,e)!==!1;);return e}function T(e,t,r,o){var b=!r;r||(r={});for(var c=-1,a=t.length;++c<a;){var i=t[c],s=void 0;s===void 0&&(s=e[i]),b?V(r,i,s):P(r,i,s)}return r}var G=W(Object.getPrototypeOf,Object);function se(e,t){return e&&T(t,U(t),e)}function ie(e,t){return e&&T(t,j(t),e)}var D=typeof exports=="object"&&exports&&!exports.nodeType&&exports,v=D&&typeof module=="object"&&module&&!module.nodeType&&module,fe=v&&v.exports===D,x=fe?k.Buffer:void 0,I=x?x.allocUnsafe:void 0;function ue(e,t){if(t)return e.slice();var r=e.length,o=I?I(r):new e.constructor(r);return e.copy(o),o}function ge(e,t){return T(e,M(e),t)}var be=Object.getOwnPropertySymbols,K=be?function(e){for(var t=[];e;)ee(t,M(e)),e=G(e);return t}:q;function le(e,t){return T(e,K(e),t)}function ye(e){return X(e,j,K)}var Te=Object.prototype,pe=Te.hasOwnProperty;function je(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&pe.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function d(e){var t=new e.constructor(e.byteLength);return new h(t).set(new h(e)),t}function de(e,t){var r=t?d(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Ae=/\w*$/;function me(e){var t=new e.constructor(e.source,Ae.exec(e));return t.lastIndex=e.lastIndex,t}var C=$?$.prototype:void 0,E=C?C.valueOf:void 0;function Oe(e){return E?Object(E.call(e)):{}}function Se(e,t){var r=t?d(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var he="[object Boolean]",$e="[object Date]",we="[object Map]",ve="[object Number]",xe="[object RegExp]",Ie="[object Set]",Ce="[object String]",Ee="[object Symbol]",Le="[object ArrayBuffer]",Fe="[object DataView]",Ue="[object Float32Array]",Me="[object Float64Array]",Be="[object Int8Array]",Pe="[object Int16Array]",Ne="[object Int32Array]",_e="[object Uint8Array]",Ge="[object Uint8ClampedArray]",De="[object Uint16Array]",Ke="[object Uint32Array]";function Re(e,t,r){var o=e.constructor;switch(t){case Le:return d(e);case he:case $e:return new o(+e);case Fe:return de(e,r);case Ue:case Me:case Be:case Pe:case Ne:case _e:case Ge:case De:case Ke:return Se(e,r);case we:return new o;case ve:case Ce:return new o(e);case xe:return me(e);case Ie:return new o;case Ee:return Oe(e)}}function Ye(e){return typeof e.constructor=="function"&&!te(e)?ae(G(e)):{}}var He="[object Map]";function Je(e){return N(e)&&p(e)==He}var L=y&&y.isMap,Qe=L?_(L):Je,We="[object Set]";function qe(e){return N(e)&&p(e)==We}var F=y&&y.isSet,Xe=F?_(F):qe,Ze=1,ze=2,Ve=4,R="[object Arguments]",ke="[object Array]",et="[object Boolean]",tt="[object Date]",rt="[object Error]",Y="[object Function]",nt="[object GeneratorFunction]",at="[object Map]",ot="[object Number]",H="[object Object]",ct="[object RegExp]",st="[object Set]",it="[object String]",ft="[object Symbol]",ut="[object WeakMap]",gt="[object ArrayBuffer]",bt="[object DataView]",lt="[object Float32Array]",yt="[object Float64Array]",Tt="[object Int8Array]",pt="[object Int16Array]",jt="[object Int32Array]",dt="[object Uint8Array]",At="[object Uint8ClampedArray]",mt="[object Uint16Array]",Ot="[object Uint32Array]",n={};n[R]=n[ke]=n[gt]=n[bt]=n[et]=n[tt]=n[lt]=n[yt]=n[Tt]=n[pt]=n[jt]=n[at]=n[ot]=n[H]=n[ct]=n[st]=n[it]=n[ft]=n[dt]=n[At]=n[mt]=n[Ot]=!0;n[rt]=n[Y]=n[ut]=!1;function l(e,t,r,o,b,c){var a,i=t&Ze,s=t&ze,J=t&Ve;if(a!==void 0)return a;if(!B(e))return e;var A=ne(e);if(A){if(a=je(e),!i)return oe(e,a)}else{var g=p(e),m=g==Y||g==nt;if(re(e))return ue(e,i);if(g==H||g==R||m&&!b){if(a=s||m?{}:Ye(e),!i)return s?le(e,ie(a,e)):ge(e,se(a,e))}else{if(!n[g])return b?e:{};a=Re(e,g,i)}}c||(c=new Z);var O=c.get(e);if(O)return O;c.set(e,a),Xe(e)?e.forEach(function(f){a.add(l(f,t,r,f,e,c))}):Qe(e)&&e.forEach(function(f,u){a.set(u,l(f,t,r,u,e,c))});var Q=J?s?ye:z:s?j:U,S=A?void 0:Q(e);return ce(S||e,function(f,u){S&&(u=f,f=e[u]),P(a,u,l(f,t,r,u,e,c))}),a}var St=4;function wt(e){return l(e,St)}export{l as b,wt as c};