can-can-word-bug
Version:
can-can-word-bug 是一个 TS 编写的工具库
2 lines (1 loc) • 13 kB
JavaScript
"use strict";const O=require("./_commonjsHelpers-DwTZ_eVU.cjs");function Ce(){this.__data__=[],this.size=0}var Ae=Ce;function me(e,r){return e===r||e!==e&&r!==r}var m=me,Se=m;function Pe(e,r){for(var t=e.length;t--;)if(Se(e[t][0],r))return t;return-1}var S=Pe,we=S,xe=Array.prototype,Ie=xe.splice;function Me(e){var r=this.__data__,t=we(r,e);if(t<0)return!1;var a=r.length-1;return t==a?r.pop():Ie.call(r,t,1),--this.size,!0}var Ge=Me,De=S;function Ee(e){var r=this.__data__,t=De(r,e);return t<0?void 0:r[t][1]}var Le=Ee,Fe=S;function He(e){return Fe(this.__data__,e)>-1}var Ue=He,Be=S;function Ne(e,r){var t=this.__data__,a=Be(t,e);return a<0?(++this.size,t.push([e,r])):t[a][1]=r,this}var Re=Ne,ze=Ae,Ve=Ge,Ke=Le,qe=Ue,Je=Re;function h(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}h.prototype.clear=ze;h.prototype.delete=Ve;h.prototype.get=Ke;h.prototype.has=qe;h.prototype.set=Je;var P=h,Xe=P;function We(){this.__data__=new Xe,this.size=0}var Ye=We;function Ze(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var Qe=Ze;function ke(e){return this.__data__.get(e)}var er=ke;function rr(e){return this.__data__.has(e)}var tr=rr,ar=typeof O.commonjsGlobal=="object"&&O.commonjsGlobal&&O.commonjsGlobal.Object===Object&&O.commonjsGlobal,ae=ar,nr=ae,ir=typeof self=="object"&&self&&self.Object===Object&&self,or=nr||ir||Function("return this")(),g=or,sr=g,cr=sr.Symbol,ne=cr,U=ne,ie=Object.prototype,ur=ie.hasOwnProperty,fr=ie.toString,y=U?U.toStringTag:void 0;function vr(e){var r=ur.call(e,y),t=e[y];try{e[y]=void 0;var a=!0}catch{}var n=fr.call(e);return a&&(r?e[y]=t:delete e[y]),n}var lr=vr,pr=Object.prototype,_r=pr.toString;function hr(e){return _r.call(e)}var gr=hr,B=ne,$r=lr,br=gr,dr="[object Null]",yr="[object Undefined]",N=B?B.toStringTag:void 0;function Or(e){return e==null?e===void 0?yr:dr:N&&N in Object(e)?$r(e):br(e)}var w=Or;function jr(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var p=jr,Tr=w,Cr=p,Ar="[object AsyncFunction]",mr="[object Function]",Sr="[object GeneratorFunction]",Pr="[object Proxy]";function wr(e){if(!Cr(e))return!1;var r=Tr(e);return r==mr||r==Sr||r==Ar||r==Pr}var D=wr,xr=g,Ir=xr["__core-js_shared__"],Mr=Ir,G=Mr,R=function(){var e=/[^.]+$/.exec(G&&G.keys&&G.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Gr(e){return!!R&&R in e}var Dr=Gr,Er=Function.prototype,Lr=Er.toString;function Fr(e){if(e!=null){try{return Lr.call(e)}catch{}try{return e+""}catch{}}return""}var Hr=Fr,Ur=D,Br=Dr,Nr=p,Rr=Hr,zr=/[\\^$.*+?()[\]{}|]/g,Vr=/^\[object .+?Constructor\]$/,Kr=Function.prototype,qr=Object.prototype,Jr=Kr.toString,Xr=qr.hasOwnProperty,Wr=RegExp("^"+Jr.call(Xr).replace(zr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Yr(e){if(!Nr(e)||Br(e))return!1;var r=Ur(e)?Wr:Vr;return r.test(Rr(e))}var Zr=Yr;function Qr(e,r){return e==null?void 0:e[r]}var kr=Qr,et=Zr,rt=kr;function tt(e,r){var t=rt(e,r);return et(t)?t:void 0}var E=tt,at=E,nt=g,it=at(nt,"Map"),oe=it,ot=E,st=ot(Object,"create"),x=st,z=x;function ct(){this.__data__=z?z(null):{},this.size=0}var ut=ct;function ft(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var vt=ft,lt=x,pt="__lodash_hash_undefined__",_t=Object.prototype,ht=_t.hasOwnProperty;function gt(e){var r=this.__data__;if(lt){var t=r[e];return t===pt?void 0:t}return ht.call(r,e)?r[e]:void 0}var $t=gt,bt=x,dt=Object.prototype,yt=dt.hasOwnProperty;function Ot(e){var r=this.__data__;return bt?r[e]!==void 0:yt.call(r,e)}var jt=Ot,Tt=x,Ct="__lodash_hash_undefined__";function At(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=Tt&&r===void 0?Ct:r,this}var mt=At,St=ut,Pt=vt,wt=$t,xt=jt,It=mt;function $(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}$.prototype.clear=St;$.prototype.delete=Pt;$.prototype.get=wt;$.prototype.has=xt;$.prototype.set=It;var Mt=$,V=Mt,Gt=P,Dt=oe;function Et(){this.size=0,this.__data__={hash:new V,map:new(Dt||Gt),string:new V}}var Lt=Et;function Ft(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var Ht=Ft,Ut=Ht;function Bt(e,r){var t=e.__data__;return Ut(r)?t[typeof r=="string"?"string":"hash"]:t.map}var I=Bt,Nt=I;function Rt(e){var r=Nt(this,e).delete(e);return this.size-=r?1:0,r}var zt=Rt,Vt=I;function Kt(e){return Vt(this,e).get(e)}var qt=Kt,Jt=I;function Xt(e){return Jt(this,e).has(e)}var Wt=Xt,Yt=I;function Zt(e,r){var t=Yt(this,e),a=t.size;return t.set(e,r),this.size+=t.size==a?0:1,this}var Qt=Zt,kt=Lt,ea=zt,ra=qt,ta=Wt,aa=Qt;function b(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}b.prototype.clear=kt;b.prototype.delete=ea;b.prototype.get=ra;b.prototype.has=ta;b.prototype.set=aa;var na=b,ia=P,oa=oe,sa=na,ca=200;function ua(e,r){var t=this.__data__;if(t instanceof ia){var a=t.__data__;if(!oa||a.length<ca-1)return a.push([e,r]),this.size=++t.size,this;t=this.__data__=new sa(a)}return t.set(e,r),this.size=t.size,this}var fa=ua,va=P,la=Ye,pa=Qe,_a=er,ha=tr,ga=fa;function d(e){var r=this.__data__=new va(e);this.size=r.size}d.prototype.clear=la;d.prototype.delete=pa;d.prototype.get=_a;d.prototype.has=ha;d.prototype.set=ga;var $a=d,ba=E,da=function(){try{var e=ba(Object,"defineProperty");return e({},"",{}),e}catch{}}(),se=da,K=se;function ya(e,r,t){r=="__proto__"&&K?K(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t}var L=ya,Oa=L,ja=m;function Ta(e,r,t){(t!==void 0&&!ja(e[r],t)||t===void 0&&!(r in e))&&Oa(e,r,t)}var ce=Ta;function Ca(e){return function(r,t,a){for(var n=-1,o=Object(r),s=a(r),i=s.length;i--;){var c=s[e?i:++n];if(t(o[c],c,o)===!1)break}return r}}var Aa=Ca,ma=Aa,Sa=ma(),Pa=Sa,T={exports:{}};T.exports;(function(e,r){var t=g,a=r&&!r.nodeType&&r,n=a&&!0&&e&&!e.nodeType&&e,o=n&&n.exports===a,s=o?t.Buffer:void 0,i=s?s.allocUnsafe:void 0;function c(f,v){if(v)return f.slice();var l=f.length,_=i?i(l):new f.constructor(l);return f.copy(_),_}e.exports=c})(T,T.exports);var wa=T.exports,xa=g,Ia=xa.Uint8Array,Ma=Ia,q=Ma;function Ga(e){var r=new e.constructor(e.byteLength);return new q(r).set(new q(e)),r}var Da=Ga,Ea=Da;function La(e,r){var t=r?Ea(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}var Fa=La;function Ha(e,r){var t=-1,a=e.length;for(r||(r=Array(a));++t<a;)r[t]=e[t];return r}var Ua=Ha,Ba=p,J=Object.create,Na=function(){function e(){}return function(r){if(!Ba(r))return{};if(J)return J(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}}(),Ra=Na;function za(e,r){return function(t){return e(r(t))}}var Va=za,Ka=Va,qa=Ka(Object.getPrototypeOf,Object),ue=qa,Ja=Object.prototype;function Xa(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||Ja;return e===t}var fe=Xa,Wa=Ra,Ya=ue,Za=fe;function Qa(e){return typeof e.constructor=="function"&&!Za(e)?Wa(Ya(e)):{}}var ka=Qa;function en(e){return e!=null&&typeof e=="object"}var j=en,rn=w,tn=j,an="[object Arguments]";function nn(e){return tn(e)&&rn(e)==an}var on=nn,X=on,sn=j,ve=Object.prototype,cn=ve.hasOwnProperty,un=ve.propertyIsEnumerable,fn=X(function(){return arguments}())?X:function(e){return sn(e)&&cn.call(e,"callee")&&!un.call(e,"callee")},le=fn,vn=Array.isArray,pe=vn,ln=9007199254740991;function pn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ln}var _e=pn,_n=D,hn=_e;function gn(e){return e!=null&&hn(e.length)&&!_n(e)}var F=gn,$n=F,bn=j;function dn(e){return bn(e)&&$n(e)}var yn=dn,C={exports:{}};function On(){return!1}var jn=On;C.exports;(function(e,r){var t=g,a=jn,n=r&&!r.nodeType&&r,o=n&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===n,i=s?t.Buffer:void 0,c=i?i.isBuffer:void 0,f=c||a;e.exports=f})(C,C.exports);var he=C.exports,Tn=w,Cn=ue,An=j,mn="[object Object]",Sn=Function.prototype,Pn=Object.prototype,ge=Sn.toString,wn=Pn.hasOwnProperty,xn=ge.call(Object);function In(e){if(!An(e)||Tn(e)!=mn)return!1;var r=Cn(e);if(r===null)return!0;var t=wn.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&ge.call(t)==xn}var Mn=In,Gn=w,Dn=_e,En=j,Ln="[object Arguments]",Fn="[object Array]",Hn="[object Boolean]",Un="[object Date]",Bn="[object Error]",Nn="[object Function]",Rn="[object Map]",zn="[object Number]",Vn="[object Object]",Kn="[object RegExp]",qn="[object Set]",Jn="[object String]",Xn="[object WeakMap]",Wn="[object ArrayBuffer]",Yn="[object DataView]",Zn="[object Float32Array]",Qn="[object Float64Array]",kn="[object Int8Array]",ei="[object Int16Array]",ri="[object Int32Array]",ti="[object Uint8Array]",ai="[object Uint8ClampedArray]",ni="[object Uint16Array]",ii="[object Uint32Array]",u={};u[Zn]=u[Qn]=u[kn]=u[ei]=u[ri]=u[ti]=u[ai]=u[ni]=u[ii]=!0;u[Ln]=u[Fn]=u[Wn]=u[Hn]=u[Yn]=u[Un]=u[Bn]=u[Nn]=u[Rn]=u[zn]=u[Vn]=u[Kn]=u[qn]=u[Jn]=u[Xn]=!1;function oi(e){return En(e)&&Dn(e.length)&&!!u[Gn(e)]}var si=oi;function ci(e){return function(r){return e(r)}}var ui=ci,A={exports:{}};A.exports;(function(e,r){var t=ae,a=r&&!r.nodeType&&r,n=a&&!0&&e&&!e.nodeType&&e,o=n&&n.exports===a,s=o&&t.process,i=function(){try{var c=n&&n.require&&n.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();e.exports=i})(A,A.exports);var fi=A.exports,vi=si,li=ui,W=fi,Y=W&&W.isTypedArray,pi=Y?li(Y):vi,$e=pi;function _i(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}var be=_i,hi=L,gi=m,$i=Object.prototype,bi=$i.hasOwnProperty;function di(e,r,t){var a=e[r];(!(bi.call(e,r)&&gi(a,t))||t===void 0&&!(r in e))&&hi(e,r,t)}var yi=di,Oi=yi,ji=L;function Ti(e,r,t,a){var n=!t;t||(t={});for(var o=-1,s=r.length;++o<s;){var i=r[o],c=a?a(t[i],e[i],i,t,e):void 0;c===void 0&&(c=e[i]),n?ji(t,i,c):Oi(t,i,c)}return t}var Ci=Ti;function Ai(e,r){for(var t=-1,a=Array(e);++t<e;)a[t]=r(t);return a}var mi=Ai,Si=9007199254740991,Pi=/^(?:0|[1-9]\d*)$/;function wi(e,r){var t=typeof e;return r=r??Si,!!r&&(t=="number"||t!="symbol"&&Pi.test(e))&&e>-1&&e%1==0&&e<r}var de=wi,xi=mi,Ii=le,Mi=pe,Gi=he,Di=de,Ei=$e,Li=Object.prototype,Fi=Li.hasOwnProperty;function Hi(e,r){var t=Mi(e),a=!t&&Ii(e),n=!t&&!a&&Gi(e),o=!t&&!a&&!n&&Ei(e),s=t||a||n||o,i=s?xi(e.length,String):[],c=i.length;for(var f in e)(r||Fi.call(e,f))&&!(s&&(f=="length"||n&&(f=="offset"||f=="parent")||o&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Di(f,c)))&&i.push(f);return i}var Ui=Hi;function Bi(e){var r=[];if(e!=null)for(var t in Object(e))r.push(t);return r}var Ni=Bi,Ri=p,zi=fe,Vi=Ni,Ki=Object.prototype,qi=Ki.hasOwnProperty;function Ji(e){if(!Ri(e))return Vi(e);var r=zi(e),t=[];for(var a in e)a=="constructor"&&(r||!qi.call(e,a))||t.push(a);return t}var Xi=Ji,Wi=Ui,Yi=Xi,Zi=F;function Qi(e){return Zi(e)?Wi(e,!0):Yi(e)}var ye=Qi,ki=Ci,eo=ye;function ro(e){return ki(e,eo(e))}var to=ro,Z=ce,ao=wa,no=Fa,io=Ua,oo=ka,Q=le,k=pe,so=yn,co=he,uo=D,fo=p,vo=Mn,lo=$e,ee=be,po=to;function _o(e,r,t,a,n,o,s){var i=ee(e,t),c=ee(r,t),f=s.get(c);if(f){Z(e,t,f);return}var v=o?o(i,c,t+"",e,r,s):void 0,l=v===void 0;if(l){var _=k(c),M=!_&&co(c),H=!_&&!M&&lo(c);v=c,_||M||H?k(i)?v=i:so(i)?v=io(i):M?(l=!1,v=ao(c,!0)):H?(l=!1,v=no(c,!0)):v=[]:vo(c)||Q(c)?(v=i,Q(i)?v=po(i):(!fo(i)||uo(i))&&(v=oo(c))):l=!1}l&&(s.set(c,v),n(v,c,a,o,s),s.delete(c)),Z(e,t,v)}var ho=_o,go=$a,$o=ce,bo=Pa,yo=ho,Oo=p,jo=ye,To=be;function Oe(e,r,t,a,n){e!==r&&bo(r,function(o,s){if(n||(n=new go),Oo(o))yo(e,r,s,t,Oe,a,n);else{var i=a?a(To(e,s),o,s+"",e,r,n):void 0;i===void 0&&(i=o),$o(e,s,i)}},jo)}var Co=Oe;function Ao(e){return e}var je=Ao;function mo(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)}var So=mo,Po=So,re=Math.max;function wo(e,r,t){return r=re(r===void 0?e.length-1:r,0),function(){for(var a=arguments,n=-1,o=re(a.length-r,0),s=Array(o);++n<o;)s[n]=a[r+n];n=-1;for(var i=Array(r+1);++n<r;)i[n]=a[n];return i[r]=t(s),Po(e,this,i)}}var xo=wo;function Io(e){return function(){return e}}var Mo=Io,Go=Mo,te=se,Do=je,Eo=te?function(e,r){return te(e,"toString",{configurable:!0,enumerable:!1,value:Go(r),writable:!0})}:Do,Lo=Eo,Fo=800,Ho=16,Uo=Date.now;function Bo(e){var r=0,t=0;return function(){var a=Uo(),n=Ho-(a-t);if(t=a,n>0){if(++r>=Fo)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}var No=Bo,Ro=Lo,zo=No,Vo=zo(Ro),Ko=Vo,qo=je,Jo=xo,Xo=Ko;function Wo(e,r){return Xo(Jo(e,r,qo),e+"")}var Yo=Wo,Zo=m,Qo=F,ko=de,es=p;function rs(e,r,t){if(!es(t))return!1;var a=typeof r;return(a=="number"?Qo(t)&&ko(r,t.length):a=="string"&&r in t)?Zo(t[r],e):!1}var ts=rs,as=Yo,ns=ts;function is(e){return as(function(r,t){var a=-1,n=t.length,o=n>1?t[n-1]:void 0,s=n>2?t[2]:void 0;for(o=e.length>3&&typeof o=="function"?(n--,o):void 0,s&&ns(t[0],t[1],s)&&(o=n<3?void 0:o,n=1),r=Object(r);++a<n;){var i=t[a];i&&e(r,i,a,o)}return r})}var os=is,ss=Co,cs=os,us=cs(function(e,r,t){ss(e,r,t)}),fs=us;const Te=O.getDefaultExportFromCjs(fs),vs=(e,r={})=>{const t=document.createElement(e);return Te(t,r),t};exports.createEl=vs;exports.merge=Te;