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