import{l as g,w as l,b as s,M as h,a as c}from"./_Uint8Array-BxbSsmXd.js";var m="[object Symbol]";function f(n){return typeof n=="symbol"||g(n)&&l(n)==m}function b(n,r){for(var t=-1,e=n==null?0:n.length,i=Array(e);++t<e;)i[t]=r(n[t],t,n);return i}var E=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,S=/^\w*$/;function T(n,r){if(s(n))return!1;var t=typeof n;return t=="number"||t=="symbol"||t=="boolean"||n==null||f(n)?!0:S.test(n)||!E.test(n)||r!=null&&n in Object(r)}var w="Expected a function";function a(n,r){if(typeof n!="function"||r!=null&&typeof r!="function")throw new TypeError(w);var t=function(){var e=arguments,i=r?r.apply(this,e):e[0],o=t.cache;if(o.has(i))return o.get(i);var u=n.apply(this,e);return t.cache=o.set(i,u)||o,u};return t.cache=new(a.Cache||h),t}a.Cache=h;var C=500;function P(n){var r=a(n,function(e){return t.size===C&&t.clear(),e}),t=r.cache;return r}var I=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,M=/\\(\\)?/g,x=P(function(n){var r=[];return n.charCodeAt(0)===46&&r.push(""),n.replace(I,function(t,e,i,o){r.push(i?o.replace(M,"$1"):e||t)}),r}),p=c?c.prototype:void 0,y=p?p.toString:void 0;function d(n){if(typeof n=="string")return n;if(s(n))return b(n,d)+"";if(f(n))return y?y.call(n):"";var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function z(n){return n==null?"":d(n)}function A(n,r){return s(n)?n:T(n,r)?[n]:x(z(n))}function O(n){if(typeof n=="string"||f(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function _(n,r){r=A(r,n);for(var t=0,e=r.length;n!=null&&t<e;)n=n[O(r[t++])];return t&&t==e?n:void 0}function R(n,r,t){var e=n==null?void 0:_(n,r);return e===void 0?t:e}export{T as a,_ as b,A as c,b as d,R as g,f as i,O as t};
