import{g as t,r,d as n,i as e,b as u,f as o,a,L as c,h as i,M as s,t as f}from"./_MapCache.js";var b=t(r,"WeakMap"),v=/^(?:0|[1-9]\d*)$/;function l(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&v.test(t))&&t>-1&&t%1==0&&t<r}function j(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function p(t){return null!=t&&j(t.length)&&!n(t)}var h=Object.prototype;function m(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||h)}function d(t){return e(t)&&"[object Arguments]"==u(t)}var y=Object.prototype,O=y.hasOwnProperty,w=y.propertyIsEnumerable,x=d(function(){return arguments}())?d:function(t){return e(t)&&O.call(t,"callee")&&!w.call(t,"callee")},g="object"==typeof exports&&exports&&!exports.nodeType&&exports,M=g&&"object"==typeof module&&module&&!module.nodeType&&module,S=M&&M.exports===g?r.Buffer:void 0,k=(S?S.isBuffer:void 0)||function(){return!1},A={};function D(t){return function(r){return t(r)}}A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Arguments]"]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object Boolean]"]=A["[object DataView]"]=A["[object Date]"]=A["[object Error]"]=A["[object Function]"]=A["[object Map]"]=A["[object Number]"]=A["[object Object]"]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object WeakMap]"]=!1;var L="object"==typeof exports&&exports&&!exports.nodeType&&exports,P=L&&"object"==typeof module&&module&&!module.nodeType&&module,V=P&&P.exports===L&&o.process,W=function(){try{return P&&P.require&&P.require("util").types||V&&V.binding&&V.binding("util")}catch(t){}}(),B=W&&W.isTypedArray,C=B?D(B):function(t){return e(t)&&j(t.length)&&!!A[u(t)]},U=Object.prototype.hasOwnProperty;function $(t,r){return function(n){return t(r(n))}}var _=$(Object.keys,Object),q=Object.prototype.hasOwnProperty;function z(t){return p(t)?function(t){var r=a(t),n=!r&&x(t),e=!r&&!n&&k(t),u=!r&&!n&&!e&&C(t),o=r||n||e||u,c=o?function(t,r){for(var n=-1,e=Array(t);++n<t;)e[n]=r(n);return e}(t.length,String):[],i=c.length;for(var s in t)!U.call(t,s)||o&&("length"==s||e&&("offset"==s||"parent"==s)||u&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||l(s,i))||c.push(s);return c}(t):function(t){if(!m(t))return _(t);var r=[];for(var n in Object(t))q.call(t,n)&&"constructor"!=n&&r.push(n);return r}(t)}function E(t,r){for(var n=-1,e=r.length,u=t.length;++n<e;)t[u+n]=r[n];return t}function F(t){var r=this.__data__=new c(t);this.size=r.size}F.prototype.clear=function(){this.__data__=new c,this.size=0},F.prototype.delete=function(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n},F.prototype.get=function(t){return this.__data__.get(t)},F.prototype.has=function(t){return this.__data__.has(t)},F.prototype.set=function(t,r){var n=this.__data__;if(n instanceof c){var e=n.__data__;if(!i||e.length<199)return e.push([t,r]),this.size=++n.size,this;n=this.__data__=new s(e)}return n.set(t,r),this.size=n.size,this};var G=Object.prototype.propertyIsEnumerable,H=Object.getOwnPropertySymbols,I=H?function(t){return null==t?[]:(t=Object(t),function(r){for(var n=-1,e=null==r?0:r.length,u=0,o=[];++n<e;){var a=r[n];G.call(t,a)&&(o[u++]=a)}return o}(H(t)))}:function(){return[]};function J(t){return function(t,r,n){var e=z(t);return a(t)?e:E(e,n(t))}(t,0,I)}var K=t(r,"DataView"),N=t(r,"Promise"),Q=t(r,"Set"),R="[object Map]",T="[object Promise]",X="[object Set]",Y="[object WeakMap]",Z="[object DataView]",tt=f(K),rt=f(i),nt=f(N),et=f(Q),ut=f(b),ot=u;(K&&ot(new K(new ArrayBuffer(1)))!=Z||i&&ot(new i)!=R||N&&ot(N.resolve())!=T||Q&&ot(new Q)!=X||b&&ot(new b)!=Y)&&(ot=function(t){var r=u(t),n="[object Object]"==r?t.constructor:void 0,e=n?f(n):"";if(e)switch(e){case tt:return Z;case rt:return R;case nt:return T;case et:return X;case ut:return Y}return r});var at=r.Uint8Array;export{F as S,at as U,ot as a,C as b,m as c,D as d,p as e,l as f,J as g,x as h,k as i,E as j,z as k,j as l,W as n,$ as o}