var qt=typeof global=="object"&&global&&global.Object===Object&&global,$r=typeof self=="object"&&self&&self.Object===Object&&self,b=qt||$r||Function("return this")(),v=b.Symbol,Vt=Object.prototype,Or=Vt.hasOwnProperty,wr=Vt.toString,L=v?v.toStringTag:void 0;function Sr(t){var r=Or.call(t,L),e=t[L];try{t[L]=void 0;var n=!0}catch{}var a=wr.call(t);return n&&(r?t[L]=e:delete t[L]),a}var Ar=Object.prototype,jr=Ar.toString;function xr(t){return jr.call(t)}var Pr="[object Null]",Ir="[object Undefined]",mt=v?v.toStringTag:void 0;function A(t){return t==null?t===void 0?Ir:Pr:mt&&mt in Object(t)?Sr(t):xr(t)}function j(t){return t!=null&&typeof t=="object"}var Er="[object Symbol]";function K(t){return typeof t=="symbol"||j(t)&&A(t)==Er}function Zt(t,r){for(var e=-1,n=t==null?0:t.length,a=Array(n);++e0){if(++r>=oe)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}function fe(t){return function(){return t}}var H=function(){try{var t=P(Object,"defineProperty");return t({},"",{}),t}catch{}}(),le=H?function(t,r){return H(t,"toString",{configurable:!0,enumerable:!1,value:fe(r),writable:!0})}:Qt,pe=ce(le);function ge(t,r){for(var e=-1,n=t==null?0:t.length;++e-1&&t%1==0&&t-1&&t%1==0&&t<=ve}function ct(t){return t!=null&&st(t.length)&&!kt(t)}var _e=Object.prototype;function W(t){var r=t&&t.constructor,e=typeof r=="function"&&r.prototype||_e;return t===e}function me(t,r){for(var e=-1,n=Array(t);++e-1}function In(t,r){var e=this.__data__,n=q(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this}function m(t){var r=-1,e=t==null?0:t.length;for(this.clear();++ra?0:a+r),e=e>a?a:e,e<0&&(e+=a),a=r>e?0:e-r>>>0,r>>>=0;for(var i=Array(a);++n=r||O<0||g&&N>=i}function d(){var p=rt();if(h(p))return vt(p);u=setTimeout(d,G(p))}function vt(p){return u=void 0,I&&n?E(p):(n=a=void 0,o)}function _r(){u!==void 0&&clearTimeout(u),l=0,n=s=a=u=void 0}function mr(){return u===void 0?o:vt(rt())}function Q(){var p=rt(),O=h(p);if(n=arguments,a=this,s=p,O){if(u===void 0)return J(s);if(g)return clearTimeout(u),u=setTimeout(d,r),E(s)}return u===void 0&&(u=setTimeout(d,r)),o}return Q.cancel=_r,Q.flush=mr,Q}function Gi(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}function Hi(t){return typeof t=="function"?t:Qt}function io(t,r){return t==null?t:Di(t,Hi(r),Y)}function Ki(t,r){return r.length<2?t:dt(t,ta(r,0,-1))}var Wi="[object Map]",Xi="[object Set]",Yi=Object.prototype,qi=Yi.hasOwnProperty;function oo(t){if(t==null)return!0;if(ct(t)&&(_(t)||typeof t=="string"||typeof t.splice=="function"||ft(t)||ir(t)||X(t)))return!t.length;var r=T(t);if(r==Wi||r==Xi)return!t.size;if(W(t))return!sr(t).length;for(var e in t)if(qi.call(t,e))return!1;return!0}function Vi(t,r){return r=F(r,t),t=Ki(t,r),t==null||delete t[Z(Gi(r))]}function Zi(t){return kn(t)?void 0:t}var Ji=1,Qi=2,ki=4,uo=cr(function(t,r){var e={};if(t==null)return e;var n=!1;r=Zt(r,function(i){return i=F(i,t),n||(n=i.length>1),i}),z(t,hr(t),e),n&&(e=B(e,Ji|Qi|ki,Zi));for(var a=r.length;a--;)Vi(e,r[a]);return e});function vr(t,r,e,n){if(!y(t))return t;r=F(r,t);for(var a=-1,i=r.length,o=i-1,u=t;u!=null&&++a