mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
2 lines
1.7 KiB
JavaScript
2 lines
1.7 KiB
JavaScript
import{aS as F,aX as I,aF as p,aQ as O,aW as R,aT as c,aY as x,aR as d,aZ as A,a_ as E,aU as S,a$ as g,b0 as v,b1 as y,b2 as N}from"./index-DmZQsxOK.js";function P(){}function k(n){return n!==n}function T(n,s,r){for(var e=r-1,a=n.length;++e<a;)if(n[e]===s)return e;return-1}function Y(n,s,r){return s===s?T(n,s,r):F(n,k,r)}function _(n,s){var r=n==null?0:n.length;return!!r&&Y(n,s,0)>-1}function C(n,s,r,e){var a=-1,t=n==null?0:n.length;for(e&&t&&(r=n[++a]);++a<t;)r=s(r,n[a],a,n);return r}function H(n,s){return n&&I(n,s,p)}function L(n,s){return function(r,e){if(r==null)return r;if(!O(r))return n(r,e);for(var a=r.length,t=-1,u=Object(r);++t<a&&e(u[t],t,u)!==!1;);return r}}var l=L(H);function U(n){return typeof n=="function"?n:R}function z(n,s){var r=c(n)?x:l;return r(n,U(s))}function Z(n,s){var r=[];return l(n,function(e,a,t){s(e,a,t)&&r.push(e)}),r}function D(n,s){var r=c(n)?A:Z;return r(n,d(s))}var q=Object.prototype,B=q.hasOwnProperty;function G(n,s){return n!=null&&B.call(n,s)}function J(n,s){return n!=null&&E(n,s,G)}function M(n,s){return S(s,function(r){return n[r]})}function K(n){return n==null?[]:M(n,p(n))}function Q(n,s,r,e,a){return a(n,function(t,u,i){r=e?(e=!1,t):s(r,t,u,i)}),r}function j(n,s,r){var e=c(n)?C:Q,a=arguments.length<3;return e(n,d(s),r,a,l)}var V=1/0,W=g&&1/v(new g([,-0]))[1]==V?function(n){return new g(n)}:P,X=200;function m(n,s,r){var e=-1,a=_,t=n.length,u=!0,i=[],f=i;if(t>=X){var o=s?null:W(n);if(o)return v(o);u=!1,a=N,f=new y}else f=s?[]:i;n:for(;++e<t;){var h=n[e],b=s?s(h):h;if(h=h!==0?h:0,u&&b===b){for(var w=f.length;w--;)if(f[w]===b)continue n;s&&f.push(b),i.push(h)}else a(f,b,r)||(f!==i&&f.push(b),i.push(h))}return i}export{z as a,m as b,l as c,U as d,H as e,D as f,_ as g,J as h,Y as i,Z as j,P as n,j as r,K as v};
|