import{i as f}from"./isObject-DvLSfCY5.js";import{t as a}from"./isSymbol-BT6B8Bon.js";import{S as i}from"./_baseFor-DKD1r8uL.js";import{t as e}from"./memoize-Tp7rARFe.js";function b(r,n){for(var t=-1,o=r==null?0:r.length,u=Array(o);++t<o;)u[t]=n(r[t],t,r);return u}var v=b,A=1/0,l=f?f.prototype:void 0,c=l?l.toString:void 0;function s(r){if(typeof r=="string")return r;if(i(r))return v(r,s)+"";if(a(r))return c?c.call(r):"";var n=r+"";return n=="0"&&1/r==-A?"-0":n}var S=s,$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,j=/^\w*$/;function w(r,n){if(i(r))return!1;var t=typeof r;return t=="number"||t=="symbol"||t=="boolean"||r==null||a(r)?!0:j.test(r)||!$.test(r)||n!=null&&r in Object(n)}var p=w,x=500;function C(r){var n=e(r,function(o){return t.size===x&&t.clear(),o}),t=n.cache;return n}var O=C,k=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,z=/\\(\\)?/g,D=O(function(r){var n=[];return r.charCodeAt(0)===46&&n.push(""),r.replace(k,function(t,o,u,y){n.push(u?y.replace(z,"$1"):o||t)}),n});function E(r){return r==null?"":S(r)}var m=E;function T(r,n){return i(r)?r:p(r,n)?[r]:D(m(r))}var d=T,_=1/0;function q(r){if(typeof r=="string"||a(r))return r;var n=r+"";return n=="0"&&1/r==-_?"-0":n}var g=q;function B(r,n){n=d(n,r);for(var t=0,o=n.length;r!=null&&t<o;)r=r[g(n[t++])];return t&&t==o?r:void 0}var h=B;function F(r,n,t){var o=r==null?void 0:h(r,n);return o===void 0?t:o}var G=F;export{m as a,d as i,h as n,p as o,g as r,v as s,G as t};
