md/assets/_baseUniq-H04t_fXT.js

2 lines
1.6 KiB
JavaScript
Raw Normal View History

import{aW as v,b0 as x,aH as l,aU as A,a$ as E,aX as c,b1 as R,aV as F,b2 as p,aY as N,b3 as g,b4 as o,b5 as O,b6 as S}from"./index-EOHikjcP.js";function k(){}function Y(n){return n!==n}function C(n,e,r){for(var s=r-1,t=n.length;++s<t;)if(n[s]===e)return s;return-1}function H(n,e,r){return e===e?C(n,e,r):v(n,Y,r)}function L(n,e){var r=n==null?0:n.length;return!!r&&H(n,e,0)>-1}function T(n,e,r,s){var t=-1,i=n==null?0:n.length;for(s&&i&&(r=n[++t]);++t<i;)r=e(r,n[t],t,n);return r}function U(n,e){return n&&x(n,e,l)}function V(n,e){return function(r,s){if(r==null)return r;if(!A(r))return n(r,s);for(var t=r.length,i=-1,u=Object(r);++i<t&&s(u[i],i,u)!==!1;);return r}}var w=V(U);function _(n){return typeof n=="function"?n:E}function Z(n,e){var r=c(n)?R:w;return r(n,_(e))}function q(n,e){var r=[];return w(n,function(s,t,i){e(s,t,i)&&r.push(s)}),r}function $(n,e){var r=c(n)?p:q;return r(n,F(e))}function y(n,e){return N(e,function(r){return n[r]})}function z(n){return n==null?[]:y(n,l(n))}function B(n,e,r,s,t){return t(n,function(i,u,a){r=s?(s=!1,i):e(r,i,u,a)}),r}function D(n,e,r){var s=c(n)?T:B,t=arguments.length<3;return s(n,F(e),r,t,w)}var G=1/0,M=g&&1/o(new g([,-0]))[1]==G?function(n){return new g(n)}:k,W=200;function J(n,e,r){var s=-1,t=L,i=n.length,u=!0,a=[],f=a;if(i>=W){var d=e?null:M(n);if(d)return o(d);u=!1,t=S,f=new O}else f=e?[]:a;n:for(;++s<i;){var h=n[s],b=e?e(h):h;if(h=h!==0?h:0,u&&b===b){for(var I=f.length;I--;)if(f[I]===b)continue n;e&&f.push(b),a.push(h)}else t(f,b,r)||(f!==a&&f.push(b),a.push(h))}return a}export{Z as a,J as b,w as c,_ as d,U as e,$ as f,L as g,H as h,q as i,k as n,D as r,z as v};