import{b$ as _Set,c0 as _setToArray,c1 as _SetCache,c2 as _cacheHas}from"./js-core.esm4.js";import{aY as _baseFindIndex}from"./js-core.esm9.js";function baseIsNaN$1(e){return e!=e}var _baseIsNaN=baseIsNaN$1;function strictIndexOf$1(e,a,r){for(var n=r-1,s=e.length;++n<s;)if(e[n]===a)return n;return-1}var _strictIndexOf=strictIndexOf$1,baseFindIndex=_baseFindIndex,baseIsNaN=baseIsNaN$1,strictIndexOf=strictIndexOf$1;function baseIndexOf$1(e,a,r){return a==a?strictIndexOf(e,a,r):baseFindIndex(e,baseIsNaN,r)}var _baseIndexOf=baseIndexOf$1,baseIndexOf=_baseIndexOf;function arrayIncludes$1(e,a){return!!(null==e?0:e.length)&&-1<baseIndexOf(e,a,0)}var _arrayIncludes=arrayIncludes$1;function arrayIncludesWith$1(e,a,r){for(var n=-1,s=null==e?0:e.length;++n<s;)if(r(a,e[n]))return!0;return!1}var _arrayIncludesWith=arrayIncludesWith$1;function noop$1(){}var noop_1=noop$1,Set=_Set,noop=noop$1,setToArray$1=_setToArray,INFINITY=1/0,createSet$1=Set&&1/_setToArray(new Set([,-0]))[1]==INFINITY?function(e){return new Set(e)}:noop,_createSet=createSet$1,SetCache=_SetCache,arrayIncludes=_arrayIncludes,arrayIncludesWith=_arrayIncludesWith,cacheHas=_cacheHas,createSet=createSet$1,setToArray=_setToArray,LARGE_ARRAY_SIZE=200;function baseUniq(e,a,r){var n=-1,s=arrayIncludes,t=e.length,c=!0,I=[],u=I;if(r)c=!1,s=arrayIncludesWith;else if(LARGE_ARRAY_SIZE<=t){var i=a?null:createSet(e);if(i)return setToArray(i);c=!1,s=cacheHas,u=new SetCache}else u=a?[]:I;e:for(;++n<t;){var o=e[n],d=a?a(o):o,o=r||0!==o?o:0;if(c&&d==d){for(var f=u.length;f--;)if(u[f]===d)continue e;a&&u.push(d),I.push(o)}else s(u,d,r)||(u!==I&&u.push(d),I.push(o))}return I}var _baseUniq=baseUniq;export{_baseUniq as _,_baseIndexOf as a,_arrayIncludes as b,_arrayIncludesWith as c};
