react-hotkeys-hook 4.0.1 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -28
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
- package/src/useDeepEqualMemo.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -1,29 +1,2 @@
|
|
|
1
|
-
var zy=Object.create;var ua=Object.defineProperty;var $y=Object.getOwnPropertyDescriptor;var ky=Object.getOwnPropertyNames;var Zy=Object.getPrototypeOf,Yy=Object.prototype.hasOwnProperty;var w=(i,s)=>()=>(s||i((s={exports:{}}).exports,s),s.exports);var Xy=(i,s,p,x)=>{if(s&&typeof s=="object"||typeof s=="function")for(let b of ky(s))!Yy.call(i,b)&&b!==p&&ua(i,b,{get:()=>s[b],enumerable:!(x=$y(s,b))||x.enumerable});return i};var fa=(i,s,p)=>(p=i!=null?zy(Zy(i)):{},Xy(s||!i||!i.__esModule?ua(p,"default",{value:i,enumerable:!0}):p,i));var _a=w((kn,br)=>{(function(){var i,s="4.17.21",p=200,x="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",b="Expected a function",T="Invalid `variable` option passed into `_.template`",K="__lodash_hash_undefined__",Z=500,F="__lodash_placeholder__",E=1,te=2,$=4,q=1,j=2,N=1,L=2,le=4,X=8,ve=16,be=32,Fe=64,ye=128,er=256,Ht=512,Xc=30,Jc="...",Qc=800,Vc=16,Su=1,jc=2,eh=3,xn=1/0,on=9007199254740991,nh=17976931348623157e292,Hr=0/0,$e=4294967295,rh=$e-1,th=$e>>>1,ih=[["ary",ye],["bind",N],["bindKey",L],["curry",X],["curryRight",ve],["flip",Ht],["partial",be],["partialRight",Fe],["rearg",er]],Rn="[object Arguments]",Mr="[object Array]",uh="[object AsyncFunction]",nr="[object Boolean]",rr="[object Date]",fh="[object DOMException]",Dr="[object Error]",Br="[object Function]",Eu="[object GeneratorFunction]",We="[object Map]",tr="[object Number]",oh="[object Null]",Je="[object Object]",Cu="[object Promise]",ah="[object Proxy]",ir="[object RegExp]",Ue="[object Set]",ur="[object String]",Fr="[object Symbol]",sh="[object Undefined]",fr="[object WeakMap]",lh="[object WeakSet]",or="[object ArrayBuffer]",Pn="[object DataView]",Mt="[object Float32Array]",Dt="[object Float64Array]",Bt="[object Int8Array]",Ft="[object Int16Array]",Wt="[object Int32Array]",Ut="[object Uint8Array]",Kt="[object Uint8ClampedArray]",Nt="[object Uint16Array]",Gt="[object Uint32Array]",ch=/\b__p \+= '';/g,hh=/\b(__p \+=) '' \+/g,ph=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ou=/&(?:amp|lt|gt|quot|#39);/g,Iu=/[&<>"']/g,gh=RegExp(Ou.source),dh=RegExp(Iu.source),_h=/<%-([\s\S]+?)%>/g,vh=/<%([\s\S]+?)%>/g,Lu=/<%=([\s\S]+?)%>/g,yh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xh=/^\w*$/,wh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zt=/[\\^$.*+?()[\]{}|]/g,Ah=RegExp(zt.source),$t=/^\s+/,mh=/\s/,bh=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Th=/\{\n\/\* \[wrapped with (.+)\] \*/,Sh=/,? & /,Eh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ch=/[()=,{}\[\]\/\s]/,Oh=/\\(\\)?/g,Ih=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ru=/\w*$/,Lh=/^[-+]0x[0-9a-f]+$/i,Rh=/^0b[01]+$/i,Ph=/^\[object .+?Constructor\]$/,qh=/^0o[0-7]+$/i,Hh=/^(?:0|[1-9]\d*)$/,Mh=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wr=/($^)/,Dh=/['\n\r\u2028\u2029\\]/g,Ur="\\ud800-\\udfff",Bh="\\u0300-\\u036f",Fh="\\ufe20-\\ufe2f",Wh="\\u20d0-\\u20ff",Pu=Bh+Fh+Wh,qu="\\u2700-\\u27bf",Hu="a-z\\xdf-\\xf6\\xf8-\\xff",Uh="\\xac\\xb1\\xd7\\xf7",Kh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Nh="\\u2000-\\u206f",Gh=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Mu="A-Z\\xc0-\\xd6\\xd8-\\xde",Du="\\ufe0e\\ufe0f",Bu=Uh+Kh+Nh+Gh,kt="['\u2019]",zh="["+Ur+"]",Fu="["+Bu+"]",Kr="["+Pu+"]",Wu="\\d+",$h="["+qu+"]",Uu="["+Hu+"]",Ku="[^"+Ur+Bu+Wu+qu+Hu+Mu+"]",Zt="\\ud83c[\\udffb-\\udfff]",kh="(?:"+Kr+"|"+Zt+")",Nu="[^"+Ur+"]",Yt="(?:\\ud83c[\\udde6-\\uddff]){2}",Xt="[\\ud800-\\udbff][\\udc00-\\udfff]",qn="["+Mu+"]",Gu="\\u200d",zu="(?:"+Uu+"|"+Ku+")",Zh="(?:"+qn+"|"+Ku+")",$u="(?:"+kt+"(?:d|ll|m|re|s|t|ve))?",ku="(?:"+kt+"(?:D|LL|M|RE|S|T|VE))?",Zu=kh+"?",Yu="["+Du+"]?",Yh="(?:"+Gu+"(?:"+[Nu,Yt,Xt].join("|")+")"+Yu+Zu+")*",Xh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Jh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Xu=Yu+Zu+Yh,Qh="(?:"+[$h,Yt,Xt].join("|")+")"+Xu,Vh="(?:"+[Nu+Kr+"?",Kr,Yt,Xt,zh].join("|")+")",jh=RegExp(kt,"g"),ep=RegExp(Kr,"g"),Jt=RegExp(Zt+"(?="+Zt+")|"+Vh+Xu,"g"),np=RegExp([qn+"?"+Uu+"+"+$u+"(?="+[Fu,qn,"$"].join("|")+")",Zh+"+"+ku+"(?="+[Fu,qn+zu,"$"].join("|")+")",qn+"?"+zu+"+"+$u,qn+"+"+ku,Jh,Xh,Wu,Qh].join("|"),"g"),rp=RegExp("["+Gu+Ur+Pu+Du+"]"),tp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ip=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],up=-1,Q={};Q[Mt]=Q[Dt]=Q[Bt]=Q[Ft]=Q[Wt]=Q[Ut]=Q[Kt]=Q[Nt]=Q[Gt]=!0,Q[Rn]=Q[Mr]=Q[or]=Q[nr]=Q[Pn]=Q[rr]=Q[Dr]=Q[Br]=Q[We]=Q[tr]=Q[Je]=Q[ir]=Q[Ue]=Q[ur]=Q[fr]=!1;var J={};J[Rn]=J[Mr]=J[or]=J[Pn]=J[nr]=J[rr]=J[Mt]=J[Dt]=J[Bt]=J[Ft]=J[Wt]=J[We]=J[tr]=J[Je]=J[ir]=J[Ue]=J[ur]=J[Fr]=J[Ut]=J[Kt]=J[Nt]=J[Gt]=!0,J[Dr]=J[Br]=J[fr]=!1;var fp={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},op={"&":"&","<":"<",">":">",'"':""","'":"'"},ap={"&":"&","<":"<",">":">",""":'"',"'":"'"},sp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lp=parseFloat,cp=parseInt,Ju=typeof global=="object"&&global&&global.Object===Object&&global,hp=typeof self=="object"&&self&&self.Object===Object&&self,ae=Ju||hp||Function("return this")(),Qt=typeof kn=="object"&&kn&&!kn.nodeType&&kn,wn=Qt&&typeof br=="object"&&br&&!br.nodeType&&br,Qu=wn&&wn.exports===Qt,Vt=Qu&&Ju.process,Le=function(){try{var c=wn&&wn.require&&wn.require("util").types;return c||Vt&&Vt.binding&&Vt.binding("util")}catch{}}(),Vu=Le&&Le.isArrayBuffer,ju=Le&&Le.isDate,ef=Le&&Le.isMap,nf=Le&&Le.isRegExp,rf=Le&&Le.isSet,tf=Le&&Le.isTypedArray;function Te(c,d,g){switch(g.length){case 0:return c.call(d);case 1:return c.call(d,g[0]);case 2:return c.call(d,g[0],g[1]);case 3:return c.call(d,g[0],g[1],g[2])}return c.apply(d,g)}function pp(c,d,g,m){for(var R=-1,G=c==null?0:c.length;++R<G;){var fe=c[R];d(m,fe,g(fe),c)}return m}function Re(c,d){for(var g=-1,m=c==null?0:c.length;++g<m&&d(c[g],g,c)!==!1;);return c}function gp(c,d){for(var g=c==null?0:c.length;g--&&d(c[g],g,c)!==!1;);return c}function uf(c,d){for(var g=-1,m=c==null?0:c.length;++g<m;)if(!d(c[g],g,c))return!1;return!0}function an(c,d){for(var g=-1,m=c==null?0:c.length,R=0,G=[];++g<m;){var fe=c[g];d(fe,g,c)&&(G[R++]=fe)}return G}function Nr(c,d){var g=c==null?0:c.length;return!!g&&Hn(c,d,0)>-1}function jt(c,d,g){for(var m=-1,R=c==null?0:c.length;++m<R;)if(g(d,c[m]))return!0;return!1}function ee(c,d){for(var g=-1,m=c==null?0:c.length,R=Array(m);++g<m;)R[g]=d(c[g],g,c);return R}function sn(c,d){for(var g=-1,m=d.length,R=c.length;++g<m;)c[R+g]=d[g];return c}function ei(c,d,g,m){var R=-1,G=c==null?0:c.length;for(m&&G&&(g=c[++R]);++R<G;)g=d(g,c[R],R,c);return g}function dp(c,d,g,m){var R=c==null?0:c.length;for(m&&R&&(g=c[--R]);R--;)g=d(g,c[R],R,c);return g}function ni(c,d){for(var g=-1,m=c==null?0:c.length;++g<m;)if(d(c[g],g,c))return!0;return!1}var _p=ri("length");function vp(c){return c.split("")}function yp(c){return c.match(Eh)||[]}function ff(c,d,g){var m;return g(c,function(R,G,fe){if(d(R,G,fe))return m=G,!1}),m}function Gr(c,d,g,m){for(var R=c.length,G=g+(m?1:-1);m?G--:++G<R;)if(d(c[G],G,c))return G;return-1}function Hn(c,d,g){return d===d?Lp(c,d,g):Gr(c,of,g)}function xp(c,d,g,m){for(var R=g-1,G=c.length;++R<G;)if(m(c[R],d))return R;return-1}function of(c){return c!==c}function af(c,d){var g=c==null?0:c.length;return g?ii(c,d)/g:Hr}function ri(c){return function(d){return d==null?i:d[c]}}function ti(c){return function(d){return c==null?i:c[d]}}function sf(c,d,g,m,R){return R(c,function(G,fe,Y){g=m?(m=!1,G):d(g,G,fe,Y)}),g}function wp(c,d){var g=c.length;for(c.sort(d);g--;)c[g]=c[g].value;return c}function ii(c,d){for(var g,m=-1,R=c.length;++m<R;){var G=d(c[m]);G!==i&&(g=g===i?G:g+G)}return g}function ui(c,d){for(var g=-1,m=Array(c);++g<c;)m[g]=d(g);return m}function Ap(c,d){return ee(d,function(g){return[g,c[g]]})}function lf(c){return c&&c.slice(0,gf(c)+1).replace($t,"")}function Se(c){return function(d){return c(d)}}function fi(c,d){return ee(d,function(g){return c[g]})}function ar(c,d){return c.has(d)}function cf(c,d){for(var g=-1,m=c.length;++g<m&&Hn(d,c[g],0)>-1;);return g}function hf(c,d){for(var g=c.length;g--&&Hn(d,c[g],0)>-1;);return g}function mp(c,d){for(var g=c.length,m=0;g--;)c[g]===d&&++m;return m}var bp=ti(fp),Tp=ti(op);function Sp(c){return"\\"+sp[c]}function Ep(c,d){return c==null?i:c[d]}function Mn(c){return rp.test(c)}function Cp(c){return tp.test(c)}function Op(c){for(var d,g=[];!(d=c.next()).done;)g.push(d.value);return g}function oi(c){var d=-1,g=Array(c.size);return c.forEach(function(m,R){g[++d]=[R,m]}),g}function pf(c,d){return function(g){return c(d(g))}}function ln(c,d){for(var g=-1,m=c.length,R=0,G=[];++g<m;){var fe=c[g];(fe===d||fe===F)&&(c[g]=F,G[R++]=g)}return G}function zr(c){var d=-1,g=Array(c.size);return c.forEach(function(m){g[++d]=m}),g}function Ip(c){var d=-1,g=Array(c.size);return c.forEach(function(m){g[++d]=[m,m]}),g}function Lp(c,d,g){for(var m=g-1,R=c.length;++m<R;)if(c[m]===d)return m;return-1}function Rp(c,d,g){for(var m=g+1;m--;)if(c[m]===d)return m;return m}function Dn(c){return Mn(c)?qp(c):_p(c)}function Ke(c){return Mn(c)?Hp(c):vp(c)}function gf(c){for(var d=c.length;d--&&mh.test(c.charAt(d)););return d}var Pp=ti(ap);function qp(c){for(var d=Jt.lastIndex=0;Jt.test(c);)++d;return d}function Hp(c){return c.match(Jt)||[]}function Mp(c){return c.match(np)||[]}var Dp=function c(d){d=d==null?ae:cn.defaults(ae.Object(),d,cn.pick(ae,ip));var g=d.Array,m=d.Date,R=d.Error,G=d.Function,fe=d.Math,Y=d.Object,ai=d.RegExp,Bp=d.String,Pe=d.TypeError,$r=g.prototype,Fp=G.prototype,Bn=Y.prototype,kr=d["__core-js_shared__"],Zr=Fp.toString,k=Bn.hasOwnProperty,Wp=0,df=function(){var e=/[^.]+$/.exec(kr&&kr.keys&&kr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Yr=Bn.toString,Up=Zr.call(Y),Kp=ae._,Np=ai("^"+Zr.call(k).replace(zt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xr=Qu?d.Buffer:i,hn=d.Symbol,Jr=d.Uint8Array,_f=Xr?Xr.allocUnsafe:i,Qr=pf(Y.getPrototypeOf,Y),vf=Y.create,yf=Bn.propertyIsEnumerable,Vr=$r.splice,xf=hn?hn.isConcatSpreadable:i,sr=hn?hn.iterator:i,An=hn?hn.toStringTag:i,jr=function(){try{var e=En(Y,"defineProperty");return e({},"",{}),e}catch{}}(),Gp=d.clearTimeout!==ae.clearTimeout&&d.clearTimeout,zp=m&&m.now!==ae.Date.now&&m.now,$p=d.setTimeout!==ae.setTimeout&&d.setTimeout,et=fe.ceil,nt=fe.floor,si=Y.getOwnPropertySymbols,kp=Xr?Xr.isBuffer:i,wf=d.isFinite,Zp=$r.join,Yp=pf(Y.keys,Y),oe=fe.max,he=fe.min,Xp=m.now,Jp=d.parseInt,Af=fe.random,Qp=$r.reverse,li=En(d,"DataView"),lr=En(d,"Map"),ci=En(d,"Promise"),Fn=En(d,"Set"),cr=En(d,"WeakMap"),hr=En(Y,"create"),rt=cr&&new cr,Wn={},Vp=Cn(li),jp=Cn(lr),eg=Cn(ci),ng=Cn(Fn),rg=Cn(cr),tt=hn?hn.prototype:i,pr=tt?tt.valueOf:i,mf=tt?tt.toString:i;function f(e){if(re(e)&&!P(e)&&!(e instanceof W)){if(e instanceof qe)return e;if(k.call(e,"__wrapped__"))return To(e)}return new qe(e)}var Un=function(){function e(){}return function(n){if(!ne(n))return{};if(vf)return vf(n);e.prototype=n;var r=new e;return e.prototype=i,r}}();function it(){}function qe(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=i}f.templateSettings={escape:_h,evaluate:vh,interpolate:Lu,variable:"",imports:{_:f}},f.prototype=it.prototype,f.prototype.constructor=f,qe.prototype=Un(it.prototype),qe.prototype.constructor=qe;function W(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$e,this.__views__=[]}function tg(){var e=new W(this.__wrapped__);return e.__actions__=xe(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=xe(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=xe(this.__views__),e}function ig(){if(this.__filtered__){var e=new W(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function ug(){var e=this.__wrapped__.value(),n=this.__dir__,r=P(e),t=n<0,u=r?e.length:0,o=vd(0,u,this.__views__),a=o.start,l=o.end,h=l-a,_=t?l:a-1,v=this.__iteratees__,y=v.length,A=0,S=he(h,this.__takeCount__);if(!r||!t&&u==h&&S==h)return kf(e,this.__actions__);var O=[];e:for(;h--&&A<S;){_+=n;for(var M=-1,I=e[_];++M<y;){var B=v[M],U=B.iteratee,Oe=B.type,_e=U(I);if(Oe==jc)I=_e;else if(!_e){if(Oe==Su)continue e;break e}}O[A++]=I}return O}W.prototype=Un(it.prototype),W.prototype.constructor=W;function mn(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var t=e[n];this.set(t[0],t[1])}}function fg(){this.__data__=hr?hr(null):{},this.size=0}function og(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function ag(e){var n=this.__data__;if(hr){var r=n[e];return r===K?i:r}return k.call(n,e)?n[e]:i}function sg(e){var n=this.__data__;return hr?n[e]!==i:k.call(n,e)}function lg(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=hr&&n===i?K:n,this}mn.prototype.clear=fg,mn.prototype.delete=og,mn.prototype.get=ag,mn.prototype.has=sg,mn.prototype.set=lg;function Qe(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var t=e[n];this.set(t[0],t[1])}}function cg(){this.__data__=[],this.size=0}function hg(e){var n=this.__data__,r=ut(n,e);if(r<0)return!1;var t=n.length-1;return r==t?n.pop():Vr.call(n,r,1),--this.size,!0}function pg(e){var n=this.__data__,r=ut(n,e);return r<0?i:n[r][1]}function gg(e){return ut(this.__data__,e)>-1}function dg(e,n){var r=this.__data__,t=ut(r,e);return t<0?(++this.size,r.push([e,n])):r[t][1]=n,this}Qe.prototype.clear=cg,Qe.prototype.delete=hg,Qe.prototype.get=pg,Qe.prototype.has=gg,Qe.prototype.set=dg;function Ve(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var t=e[n];this.set(t[0],t[1])}}function _g(){this.size=0,this.__data__={hash:new mn,map:new(lr||Qe),string:new mn}}function vg(e){var n=vt(this,e).delete(e);return this.size-=n?1:0,n}function yg(e){return vt(this,e).get(e)}function xg(e){return vt(this,e).has(e)}function wg(e,n){var r=vt(this,e),t=r.size;return r.set(e,n),this.size+=r.size==t?0:1,this}Ve.prototype.clear=_g,Ve.prototype.delete=vg,Ve.prototype.get=yg,Ve.prototype.has=xg,Ve.prototype.set=wg;function bn(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new Ve;++n<r;)this.add(e[n])}function Ag(e){return this.__data__.set(e,K),this}function mg(e){return this.__data__.has(e)}bn.prototype.add=bn.prototype.push=Ag,bn.prototype.has=mg;function Ne(e){var n=this.__data__=new Qe(e);this.size=n.size}function bg(){this.__data__=new Qe,this.size=0}function Tg(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}function Sg(e){return this.__data__.get(e)}function Eg(e){return this.__data__.has(e)}function Cg(e,n){var r=this.__data__;if(r instanceof Qe){var t=r.__data__;if(!lr||t.length<p-1)return t.push([e,n]),this.size=++r.size,this;r=this.__data__=new Ve(t)}return r.set(e,n),this.size=r.size,this}Ne.prototype.clear=bg,Ne.prototype.delete=Tg,Ne.prototype.get=Sg,Ne.prototype.has=Eg,Ne.prototype.set=Cg;function bf(e,n){var r=P(e),t=!r&&On(e),u=!r&&!t&&vn(e),o=!r&&!t&&!u&&zn(e),a=r||t||u||o,l=a?ui(e.length,Bp):[],h=l.length;for(var _ in e)(n||k.call(e,_))&&!(a&&(_=="length"||u&&(_=="offset"||_=="parent")||o&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||rn(_,h)))&&l.push(_);return l}function Tf(e){var n=e.length;return n?e[mi(0,n-1)]:i}function Og(e,n){return yt(xe(e),Tn(n,0,e.length))}function Ig(e){return yt(xe(e))}function hi(e,n,r){(r!==i&&!Ge(e[n],r)||r===i&&!(n in e))&&je(e,n,r)}function gr(e,n,r){var t=e[n];(!(k.call(e,n)&&Ge(t,r))||r===i&&!(n in e))&&je(e,n,r)}function ut(e,n){for(var r=e.length;r--;)if(Ge(e[r][0],n))return r;return-1}function Lg(e,n,r,t){return pn(e,function(u,o,a){n(t,u,r(u),a)}),t}function Sf(e,n){return e&&Ze(n,se(n),e)}function Rg(e,n){return e&&Ze(n,Ae(n),e)}function je(e,n,r){n=="__proto__"&&jr?jr(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[n]=r}function pi(e,n){for(var r=-1,t=n.length,u=g(t),o=e==null;++r<t;)u[r]=o?i:Zi(e,n[r]);return u}function Tn(e,n,r){return e===e&&(r!==i&&(e=e<=r?e:r),n!==i&&(e=e>=n?e:n)),e}function He(e,n,r,t,u,o){var a,l=n&E,h=n&te,_=n&$;if(r&&(a=u?r(e,t,u,o):r(e)),a!==i)return a;if(!ne(e))return e;var v=P(e);if(v){if(a=xd(e),!l)return xe(e,a)}else{var y=pe(e),A=y==Br||y==Eu;if(vn(e))return Xf(e,l);if(y==Je||y==Rn||A&&!u){if(a=h||A?{}:go(e),!l)return h?ad(e,Rg(a,e)):od(e,Sf(a,e))}else{if(!J[y])return u?e:{};a=wd(e,y,l)}}o||(o=new Ne);var S=o.get(e);if(S)return S;o.set(e,a),zo(e)?e.forEach(function(I){a.add(He(I,n,r,I,e,o))}):No(e)&&e.forEach(function(I,B){a.set(B,He(I,n,r,B,e,o))});var O=_?h?qi:Pi:h?Ae:se,M=v?i:O(e);return Re(M||e,function(I,B){M&&(B=I,I=e[B]),gr(a,B,He(I,n,r,B,e,o))}),a}function Pg(e){var n=se(e);return function(r){return Ef(r,e,n)}}function Ef(e,n,r){var t=r.length;if(e==null)return!t;for(e=Y(e);t--;){var u=r[t],o=n[u],a=e[u];if(a===i&&!(u in e)||!o(a))return!1}return!0}function Cf(e,n,r){if(typeof e!="function")throw new Pe(b);return Ar(function(){e.apply(i,r)},n)}function dr(e,n,r,t){var u=-1,o=Nr,a=!0,l=e.length,h=[],_=n.length;if(!l)return h;r&&(n=ee(n,Se(r))),t?(o=jt,a=!1):n.length>=p&&(o=ar,a=!1,n=new bn(n));e:for(;++u<l;){var v=e[u],y=r==null?v:r(v);if(v=t||v!==0?v:0,a&&y===y){for(var A=_;A--;)if(n[A]===y)continue e;h.push(v)}else o(n,y,t)||h.push(v)}return h}var pn=eo(ke),Of=eo(di,!0);function qg(e,n){var r=!0;return pn(e,function(t,u,o){return r=!!n(t,u,o),r}),r}function ft(e,n,r){for(var t=-1,u=e.length;++t<u;){var o=e[t],a=n(o);if(a!=null&&(l===i?a===a&&!Ce(a):r(a,l)))var l=a,h=o}return h}function Hg(e,n,r,t){var u=e.length;for(r=H(r),r<0&&(r=-r>u?0:u+r),t=t===i||t>u?u:H(t),t<0&&(t+=u),t=r>t?0:ko(t);r<t;)e[r++]=n;return e}function If(e,n){var r=[];return pn(e,function(t,u,o){n(t,u,o)&&r.push(t)}),r}function ce(e,n,r,t,u){var o=-1,a=e.length;for(r||(r=md),u||(u=[]);++o<a;){var l=e[o];n>0&&r(l)?n>1?ce(l,n-1,r,t,u):sn(u,l):t||(u[u.length]=l)}return u}var gi=no(),Lf=no(!0);function ke(e,n){return e&&gi(e,n,se)}function di(e,n){return e&&Lf(e,n,se)}function ot(e,n){return an(n,function(r){return tn(e[r])})}function Sn(e,n){n=dn(n,e);for(var r=0,t=n.length;e!=null&&r<t;)e=e[Ye(n[r++])];return r&&r==t?e:i}function Rf(e,n,r){var t=n(e);return P(e)?t:sn(t,r(e))}function ge(e){return e==null?e===i?sh:oh:An&&An in Y(e)?_d(e):Id(e)}function _i(e,n){return e>n}function Mg(e,n){return e!=null&&k.call(e,n)}function Dg(e,n){return e!=null&&n in Y(e)}function Bg(e,n,r){return e>=he(n,r)&&e<oe(n,r)}function vi(e,n,r){for(var t=r?jt:Nr,u=e[0].length,o=e.length,a=o,l=g(o),h=1/0,_=[];a--;){var v=e[a];a&&n&&(v=ee(v,Se(n))),h=he(v.length,h),l[a]=!r&&(n||u>=120&&v.length>=120)?new bn(a&&v):i}v=e[0];var y=-1,A=l[0];e:for(;++y<u&&_.length<h;){var S=v[y],O=n?n(S):S;if(S=r||S!==0?S:0,!(A?ar(A,O):t(_,O,r))){for(a=o;--a;){var M=l[a];if(!(M?ar(M,O):t(e[a],O,r)))continue e}A&&A.push(O),_.push(S)}}return _}function Fg(e,n,r,t){return ke(e,function(u,o,a){n(t,r(u),o,a)}),t}function _r(e,n,r){n=dn(n,e),e=xo(e,n);var t=e==null?e:e[Ye(De(n))];return t==null?i:Te(t,e,r)}function Pf(e){return re(e)&&ge(e)==Rn}function Wg(e){return re(e)&&ge(e)==or}function Ug(e){return re(e)&&ge(e)==rr}function vr(e,n,r,t,u){return e===n?!0:e==null||n==null||!re(e)&&!re(n)?e!==e&&n!==n:Kg(e,n,r,t,vr,u)}function Kg(e,n,r,t,u,o){var a=P(e),l=P(n),h=a?Mr:pe(e),_=l?Mr:pe(n);h=h==Rn?Je:h,_=_==Rn?Je:_;var v=h==Je,y=_==Je,A=h==_;if(A&&vn(e)){if(!vn(n))return!1;a=!0,v=!1}if(A&&!v)return o||(o=new Ne),a||zn(e)?co(e,n,r,t,u,o):gd(e,n,h,r,t,u,o);if(!(r&q)){var S=v&&k.call(e,"__wrapped__"),O=y&&k.call(n,"__wrapped__");if(S||O){var M=S?e.value():e,I=O?n.value():n;return o||(o=new Ne),u(M,I,r,t,o)}}return A?(o||(o=new Ne),dd(e,n,r,t,u,o)):!1}function Ng(e){return re(e)&&pe(e)==We}function yi(e,n,r,t){var u=r.length,o=u,a=!t;if(e==null)return!o;for(e=Y(e);u--;){var l=r[u];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++u<o;){l=r[u];var h=l[0],_=e[h],v=l[1];if(a&&l[2]){if(_===i&&!(h in e))return!1}else{var y=new Ne;if(t)var A=t(_,v,h,e,n,y);if(!(A===i?vr(v,_,q|j,t,y):A))return!1}}return!0}function qf(e){if(!ne(e)||Td(e))return!1;var n=tn(e)?Np:Ph;return n.test(Cn(e))}function Gg(e){return re(e)&&ge(e)==ir}function zg(e){return re(e)&&pe(e)==Ue}function $g(e){return re(e)&&Tt(e.length)&&!!Q[ge(e)]}function Hf(e){return typeof e=="function"?e:e==null?me:typeof e=="object"?P(e)?Bf(e[0],e[1]):Df(e):ta(e)}function xi(e){if(!wr(e))return Yp(e);var n=[];for(var r in Y(e))k.call(e,r)&&r!="constructor"&&n.push(r);return n}function kg(e){if(!ne(e))return Od(e);var n=wr(e),r=[];for(var t in e)t=="constructor"&&(n||!k.call(e,t))||r.push(t);return r}function wi(e,n){return e<n}function Mf(e,n){var r=-1,t=we(e)?g(e.length):[];return pn(e,function(u,o,a){t[++r]=n(u,o,a)}),t}function Df(e){var n=Mi(e);return n.length==1&&n[0][2]?vo(n[0][0],n[0][1]):function(r){return r===e||yi(r,e,n)}}function Bf(e,n){return Bi(e)&&_o(n)?vo(Ye(e),n):function(r){var t=Zi(r,e);return t===i&&t===n?Yi(r,e):vr(n,t,q|j)}}function at(e,n,r,t,u){e!==n&&gi(n,function(o,a){if(u||(u=new Ne),ne(o))Zg(e,n,a,r,at,t,u);else{var l=t?t(Wi(e,a),o,a+"",e,n,u):i;l===i&&(l=o),hi(e,a,l)}},Ae)}function Zg(e,n,r,t,u,o,a){var l=Wi(e,r),h=Wi(n,r),_=a.get(h);if(_){hi(e,r,_);return}var v=o?o(l,h,r+"",e,n,a):i,y=v===i;if(y){var A=P(h),S=!A&&vn(h),O=!A&&!S&&zn(h);v=h,A||S||O?P(l)?v=l:ie(l)?v=xe(l):S?(y=!1,v=Xf(h,!0)):O?(y=!1,v=Jf(h,!0)):v=[]:mr(h)||On(h)?(v=l,On(l)?v=Zo(l):(!ne(l)||tn(l))&&(v=go(h))):y=!1}y&&(a.set(h,v),u(v,h,t,o,a),a.delete(h)),hi(e,r,v)}function Ff(e,n){var r=e.length;if(!!r)return n+=n<0?r:0,rn(n,r)?e[n]:i}function Wf(e,n,r){n.length?n=ee(n,function(o){return P(o)?function(a){return Sn(a,o.length===1?o[0]:o)}:o}):n=[me];var t=-1;n=ee(n,Se(C()));var u=Mf(e,function(o,a,l){var h=ee(n,function(_){return _(o)});return{criteria:h,index:++t,value:o}});return wp(u,function(o,a){return fd(o,a,r)})}function Yg(e,n){return Uf(e,n,function(r,t){return Yi(e,t)})}function Uf(e,n,r){for(var t=-1,u=n.length,o={};++t<u;){var a=n[t],l=Sn(e,a);r(l,a)&&yr(o,dn(a,e),l)}return o}function Xg(e){return function(n){return Sn(n,e)}}function Ai(e,n,r,t){var u=t?xp:Hn,o=-1,a=n.length,l=e;for(e===n&&(n=xe(n)),r&&(l=ee(e,Se(r)));++o<a;)for(var h=0,_=n[o],v=r?r(_):_;(h=u(l,v,h,t))>-1;)l!==e&&Vr.call(l,h,1),Vr.call(e,h,1);return e}function Kf(e,n){for(var r=e?n.length:0,t=r-1;r--;){var u=n[r];if(r==t||u!==o){var o=u;rn(u)?Vr.call(e,u,1):Si(e,u)}}return e}function mi(e,n){return e+nt(Af()*(n-e+1))}function Jg(e,n,r,t){for(var u=-1,o=oe(et((n-e)/(r||1)),0),a=g(o);o--;)a[t?o:++u]=e,e+=r;return a}function bi(e,n){var r="";if(!e||n<1||n>on)return r;do n%2&&(r+=e),n=nt(n/2),n&&(e+=e);while(n);return r}function D(e,n){return Ui(yo(e,n,me),e+"")}function Qg(e){return Tf($n(e))}function Vg(e,n){var r=$n(e);return yt(r,Tn(n,0,r.length))}function yr(e,n,r,t){if(!ne(e))return e;n=dn(n,e);for(var u=-1,o=n.length,a=o-1,l=e;l!=null&&++u<o;){var h=Ye(n[u]),_=r;if(h==="__proto__"||h==="constructor"||h==="prototype")return e;if(u!=a){var v=l[h];_=t?t(v,h,l):i,_===i&&(_=ne(v)?v:rn(n[u+1])?[]:{})}gr(l,h,_),l=l[h]}return e}var Nf=rt?function(e,n){return rt.set(e,n),e}:me,jg=jr?function(e,n){return jr(e,"toString",{configurable:!0,enumerable:!1,value:Ji(n),writable:!0})}:me;function ed(e){return yt($n(e))}function Me(e,n,r){var t=-1,u=e.length;n<0&&(n=-n>u?0:u+n),r=r>u?u:r,r<0&&(r+=u),u=n>r?0:r-n>>>0,n>>>=0;for(var o=g(u);++t<u;)o[t]=e[t+n];return o}function nd(e,n){var r;return pn(e,function(t,u,o){return r=n(t,u,o),!r}),!!r}function st(e,n,r){var t=0,u=e==null?t:e.length;if(typeof n=="number"&&n===n&&u<=th){for(;t<u;){var o=t+u>>>1,a=e[o];a!==null&&!Ce(a)&&(r?a<=n:a<n)?t=o+1:u=o}return u}return Ti(e,n,me,r)}function Ti(e,n,r,t){var u=0,o=e==null?0:e.length;if(o===0)return 0;n=r(n);for(var a=n!==n,l=n===null,h=Ce(n),_=n===i;u<o;){var v=nt((u+o)/2),y=r(e[v]),A=y!==i,S=y===null,O=y===y,M=Ce(y);if(a)var I=t||O;else _?I=O&&(t||A):l?I=O&&A&&(t||!S):h?I=O&&A&&!S&&(t||!M):S||M?I=!1:I=t?y<=n:y<n;I?u=v+1:o=v}return he(o,rh)}function Gf(e,n){for(var r=-1,t=e.length,u=0,o=[];++r<t;){var a=e[r],l=n?n(a):a;if(!r||!Ge(l,h)){var h=l;o[u++]=a===0?0:a}}return o}function zf(e){return typeof e=="number"?e:Ce(e)?Hr:+e}function Ee(e){if(typeof e=="string")return e;if(P(e))return ee(e,Ee)+"";if(Ce(e))return mf?mf.call(e):"";var n=e+"";return n=="0"&&1/e==-xn?"-0":n}function gn(e,n,r){var t=-1,u=Nr,o=e.length,a=!0,l=[],h=l;if(r)a=!1,u=jt;else if(o>=p){var _=n?null:hd(e);if(_)return zr(_);a=!1,u=ar,h=new bn}else h=n?[]:l;e:for(;++t<o;){var v=e[t],y=n?n(v):v;if(v=r||v!==0?v:0,a&&y===y){for(var A=h.length;A--;)if(h[A]===y)continue e;n&&h.push(y),l.push(v)}else u(h,y,r)||(h!==l&&h.push(y),l.push(v))}return l}function Si(e,n){return n=dn(n,e),e=xo(e,n),e==null||delete e[Ye(De(n))]}function $f(e,n,r,t){return yr(e,n,r(Sn(e,n)),t)}function lt(e,n,r,t){for(var u=e.length,o=t?u:-1;(t?o--:++o<u)&&n(e[o],o,e););return r?Me(e,t?0:o,t?o+1:u):Me(e,t?o+1:0,t?u:o)}function kf(e,n){var r=e;return r instanceof W&&(r=r.value()),ei(n,function(t,u){return u.func.apply(u.thisArg,sn([t],u.args))},r)}function Ei(e,n,r){var t=e.length;if(t<2)return t?gn(e[0]):[];for(var u=-1,o=g(t);++u<t;)for(var a=e[u],l=-1;++l<t;)l!=u&&(o[u]=dr(o[u]||a,e[l],n,r));return gn(ce(o,1),n,r)}function Zf(e,n,r){for(var t=-1,u=e.length,o=n.length,a={};++t<u;){var l=t<o?n[t]:i;r(a,e[t],l)}return a}function Ci(e){return ie(e)?e:[]}function Oi(e){return typeof e=="function"?e:me}function dn(e,n){return P(e)?e:Bi(e,n)?[e]:bo(z(e))}var rd=D;function _n(e,n,r){var t=e.length;return r=r===i?t:r,!n&&r>=t?e:Me(e,n,r)}var Yf=Gp||function(e){return ae.clearTimeout(e)};function Xf(e,n){if(n)return e.slice();var r=e.length,t=_f?_f(r):new e.constructor(r);return e.copy(t),t}function Ii(e){var n=new e.constructor(e.byteLength);return new Jr(n).set(new Jr(e)),n}function td(e,n){var r=n?Ii(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function id(e){var n=new e.constructor(e.source,Ru.exec(e));return n.lastIndex=e.lastIndex,n}function ud(e){return pr?Y(pr.call(e)):{}}function Jf(e,n){var r=n?Ii(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Qf(e,n){if(e!==n){var r=e!==i,t=e===null,u=e===e,o=Ce(e),a=n!==i,l=n===null,h=n===n,_=Ce(n);if(!l&&!_&&!o&&e>n||o&&a&&h&&!l&&!_||t&&a&&h||!r&&h||!u)return 1;if(!t&&!o&&!_&&e<n||_&&r&&u&&!t&&!o||l&&r&&u||!a&&u||!h)return-1}return 0}function fd(e,n,r){for(var t=-1,u=e.criteria,o=n.criteria,a=u.length,l=r.length;++t<a;){var h=Qf(u[t],o[t]);if(h){if(t>=l)return h;var _=r[t];return h*(_=="desc"?-1:1)}}return e.index-n.index}function Vf(e,n,r,t){for(var u=-1,o=e.length,a=r.length,l=-1,h=n.length,_=oe(o-a,0),v=g(h+_),y=!t;++l<h;)v[l]=n[l];for(;++u<a;)(y||u<o)&&(v[r[u]]=e[u]);for(;_--;)v[l++]=e[u++];return v}function jf(e,n,r,t){for(var u=-1,o=e.length,a=-1,l=r.length,h=-1,_=n.length,v=oe(o-l,0),y=g(v+_),A=!t;++u<v;)y[u]=e[u];for(var S=u;++h<_;)y[S+h]=n[h];for(;++a<l;)(A||u<o)&&(y[S+r[a]]=e[u++]);return y}function xe(e,n){var r=-1,t=e.length;for(n||(n=g(t));++r<t;)n[r]=e[r];return n}function Ze(e,n,r,t){var u=!r;r||(r={});for(var o=-1,a=n.length;++o<a;){var l=n[o],h=t?t(r[l],e[l],l,r,e):i;h===i&&(h=e[l]),u?je(r,l,h):gr(r,l,h)}return r}function od(e,n){return Ze(e,Di(e),n)}function ad(e,n){return Ze(e,ho(e),n)}function ct(e,n){return function(r,t){var u=P(r)?pp:Lg,o=n?n():{};return u(r,e,C(t,2),o)}}function Kn(e){return D(function(n,r){var t=-1,u=r.length,o=u>1?r[u-1]:i,a=u>2?r[2]:i;for(o=e.length>3&&typeof o=="function"?(u--,o):i,a&&de(r[0],r[1],a)&&(o=u<3?i:o,u=1),n=Y(n);++t<u;){var l=r[t];l&&e(n,l,t,o)}return n})}function eo(e,n){return function(r,t){if(r==null)return r;if(!we(r))return e(r,t);for(var u=r.length,o=n?u:-1,a=Y(r);(n?o--:++o<u)&&t(a[o],o,a)!==!1;);return r}}function no(e){return function(n,r,t){for(var u=-1,o=Y(n),a=t(n),l=a.length;l--;){var h=a[e?l:++u];if(r(o[h],h,o)===!1)break}return n}}function sd(e,n,r){var t=n&N,u=xr(e);function o(){var a=this&&this!==ae&&this instanceof o?u:e;return a.apply(t?r:this,arguments)}return o}function ro(e){return function(n){n=z(n);var r=Mn(n)?Ke(n):i,t=r?r[0]:n.charAt(0),u=r?_n(r,1).join(""):n.slice(1);return t[e]()+u}}function Nn(e){return function(n){return ei(na(ea(n).replace(jh,"")),e,"")}}function xr(e){return function(){var n=arguments;switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3]);case 5:return new e(n[0],n[1],n[2],n[3],n[4]);case 6:return new e(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new e(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var r=Un(e.prototype),t=e.apply(r,n);return ne(t)?t:r}}function ld(e,n,r){var t=xr(e);function u(){for(var o=arguments.length,a=g(o),l=o,h=Gn(u);l--;)a[l]=arguments[l];var _=o<3&&a[0]!==h&&a[o-1]!==h?[]:ln(a,h);if(o-=_.length,o<r)return oo(e,n,ht,u.placeholder,i,a,_,i,i,r-o);var v=this&&this!==ae&&this instanceof u?t:e;return Te(v,this,a)}return u}function to(e){return function(n,r,t){var u=Y(n);if(!we(n)){var o=C(r,3);n=se(n),r=function(l){return o(u[l],l,u)}}var a=e(n,r,t);return a>-1?u[o?n[a]:a]:i}}function io(e){return nn(function(n){var r=n.length,t=r,u=qe.prototype.thru;for(e&&n.reverse();t--;){var o=n[t];if(typeof o!="function")throw new Pe(b);if(u&&!a&&_t(o)=="wrapper")var a=new qe([],!0)}for(t=a?t:r;++t<r;){o=n[t];var l=_t(o),h=l=="wrapper"?Hi(o):i;h&&Fi(h[0])&&h[1]==(ye|X|be|er)&&!h[4].length&&h[9]==1?a=a[_t(h[0])].apply(a,h[3]):a=o.length==1&&Fi(o)?a[l]():a.thru(o)}return function(){var _=arguments,v=_[0];if(a&&_.length==1&&P(v))return a.plant(v).value();for(var y=0,A=r?n[y].apply(this,_):v;++y<r;)A=n[y].call(this,A);return A}})}function ht(e,n,r,t,u,o,a,l,h,_){var v=n&ye,y=n&N,A=n&L,S=n&(X|ve),O=n&Ht,M=A?i:xr(e);function I(){for(var B=arguments.length,U=g(B),Oe=B;Oe--;)U[Oe]=arguments[Oe];if(S)var _e=Gn(I),Ie=mp(U,_e);if(t&&(U=Vf(U,t,u,S)),o&&(U=jf(U,o,a,S)),B-=Ie,S&&B<_){var ue=ln(U,_e);return oo(e,n,ht,I.placeholder,r,U,ue,l,h,_-B)}var ze=y?r:this,fn=A?ze[e]:e;return B=U.length,l?U=Ld(U,l):O&&B>1&&U.reverse(),v&&h<B&&(U.length=h),this&&this!==ae&&this instanceof I&&(fn=M||xr(fn)),fn.apply(ze,U)}return I}function uo(e,n){return function(r,t){return Fg(r,e,n(t),{})}}function pt(e,n){return function(r,t){var u;if(r===i&&t===i)return n;if(r!==i&&(u=r),t!==i){if(u===i)return t;typeof r=="string"||typeof t=="string"?(r=Ee(r),t=Ee(t)):(r=zf(r),t=zf(t)),u=e(r,t)}return u}}function Li(e){return nn(function(n){return n=ee(n,Se(C())),D(function(r){var t=this;return e(n,function(u){return Te(u,t,r)})})})}function gt(e,n){n=n===i?" ":Ee(n);var r=n.length;if(r<2)return r?bi(n,e):n;var t=bi(n,et(e/Dn(n)));return Mn(n)?_n(Ke(t),0,e).join(""):t.slice(0,e)}function cd(e,n,r,t){var u=n&N,o=xr(e);function a(){for(var l=-1,h=arguments.length,_=-1,v=t.length,y=g(v+h),A=this&&this!==ae&&this instanceof a?o:e;++_<v;)y[_]=t[_];for(;h--;)y[_++]=arguments[++l];return Te(A,u?r:this,y)}return a}function fo(e){return function(n,r,t){return t&&typeof t!="number"&&de(n,r,t)&&(r=t=i),n=un(n),r===i?(r=n,n=0):r=un(r),t=t===i?n<r?1:-1:un(t),Jg(n,r,t,e)}}function dt(e){return function(n,r){return typeof n=="string"&&typeof r=="string"||(n=Be(n),r=Be(r)),e(n,r)}}function oo(e,n,r,t,u,o,a,l,h,_){var v=n&X,y=v?a:i,A=v?i:a,S=v?o:i,O=v?i:o;n|=v?be:Fe,n&=~(v?Fe:be),n&le||(n&=~(N|L));var M=[e,n,u,S,y,O,A,l,h,_],I=r.apply(i,M);return Fi(e)&&wo(I,M),I.placeholder=t,Ao(I,e,n)}function Ri(e){var n=fe[e];return function(r,t){if(r=Be(r),t=t==null?0:he(H(t),292),t&&wf(r)){var u=(z(r)+"e").split("e"),o=n(u[0]+"e"+(+u[1]+t));return u=(z(o)+"e").split("e"),+(u[0]+"e"+(+u[1]-t))}return n(r)}}var hd=Fn&&1/zr(new Fn([,-0]))[1]==xn?function(e){return new Fn(e)}:ji;function ao(e){return function(n){var r=pe(n);return r==We?oi(n):r==Ue?Ip(n):Ap(n,e(n))}}function en(e,n,r,t,u,o,a,l){var h=n&L;if(!h&&typeof e!="function")throw new Pe(b);var _=t?t.length:0;if(_||(n&=~(be|Fe),t=u=i),a=a===i?a:oe(H(a),0),l=l===i?l:H(l),_-=u?u.length:0,n&Fe){var v=t,y=u;t=u=i}var A=h?i:Hi(e),S=[e,n,r,t,u,v,y,o,a,l];if(A&&Cd(S,A),e=S[0],n=S[1],r=S[2],t=S[3],u=S[4],l=S[9]=S[9]===i?h?0:e.length:oe(S[9]-_,0),!l&&n&(X|ve)&&(n&=~(X|ve)),!n||n==N)var O=sd(e,n,r);else n==X||n==ve?O=ld(e,n,l):(n==be||n==(N|be))&&!u.length?O=cd(e,n,r,t):O=ht.apply(i,S);var M=A?Nf:wo;return Ao(M(O,S),e,n)}function so(e,n,r,t){return e===i||Ge(e,Bn[r])&&!k.call(t,r)?n:e}function lo(e,n,r,t,u,o){return ne(e)&&ne(n)&&(o.set(n,e),at(e,n,i,lo,o),o.delete(n)),e}function pd(e){return mr(e)?i:e}function co(e,n,r,t,u,o){var a=r&q,l=e.length,h=n.length;if(l!=h&&!(a&&h>l))return!1;var _=o.get(e),v=o.get(n);if(_&&v)return _==n&&v==e;var y=-1,A=!0,S=r&j?new bn:i;for(o.set(e,n),o.set(n,e);++y<l;){var O=e[y],M=n[y];if(t)var I=a?t(M,O,y,n,e,o):t(O,M,y,e,n,o);if(I!==i){if(I)continue;A=!1;break}if(S){if(!ni(n,function(B,U){if(!ar(S,U)&&(O===B||u(O,B,r,t,o)))return S.push(U)})){A=!1;break}}else if(!(O===M||u(O,M,r,t,o))){A=!1;break}}return o.delete(e),o.delete(n),A}function gd(e,n,r,t,u,o,a){switch(r){case Pn:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case or:return!(e.byteLength!=n.byteLength||!o(new Jr(e),new Jr(n)));case nr:case rr:case tr:return Ge(+e,+n);case Dr:return e.name==n.name&&e.message==n.message;case ir:case ur:return e==n+"";case We:var l=oi;case Ue:var h=t&q;if(l||(l=zr),e.size!=n.size&&!h)return!1;var _=a.get(e);if(_)return _==n;t|=j,a.set(e,n);var v=co(l(e),l(n),t,u,o,a);return a.delete(e),v;case Fr:if(pr)return pr.call(e)==pr.call(n)}return!1}function dd(e,n,r,t,u,o){var a=r&q,l=Pi(e),h=l.length,_=Pi(n),v=_.length;if(h!=v&&!a)return!1;for(var y=h;y--;){var A=l[y];if(!(a?A in n:k.call(n,A)))return!1}var S=o.get(e),O=o.get(n);if(S&&O)return S==n&&O==e;var M=!0;o.set(e,n),o.set(n,e);for(var I=a;++y<h;){A=l[y];var B=e[A],U=n[A];if(t)var Oe=a?t(U,B,A,n,e,o):t(B,U,A,e,n,o);if(!(Oe===i?B===U||u(B,U,r,t,o):Oe)){M=!1;break}I||(I=A=="constructor")}if(M&&!I){var _e=e.constructor,Ie=n.constructor;_e!=Ie&&"constructor"in e&&"constructor"in n&&!(typeof _e=="function"&&_e instanceof _e&&typeof Ie=="function"&&Ie instanceof Ie)&&(M=!1)}return o.delete(e),o.delete(n),M}function nn(e){return Ui(yo(e,i,Co),e+"")}function Pi(e){return Rf(e,se,Di)}function qi(e){return Rf(e,Ae,ho)}var Hi=rt?function(e){return rt.get(e)}:ji;function _t(e){for(var n=e.name+"",r=Wn[n],t=k.call(Wn,n)?r.length:0;t--;){var u=r[t],o=u.func;if(o==null||o==e)return u.name}return n}function Gn(e){var n=k.call(f,"placeholder")?f:e;return n.placeholder}function C(){var e=f.iteratee||Qi;return e=e===Qi?Hf:e,arguments.length?e(arguments[0],arguments[1]):e}function vt(e,n){var r=e.__data__;return bd(n)?r[typeof n=="string"?"string":"hash"]:r.map}function Mi(e){for(var n=se(e),r=n.length;r--;){var t=n[r],u=e[t];n[r]=[t,u,_o(u)]}return n}function En(e,n){var r=Ep(e,n);return qf(r)?r:i}function _d(e){var n=k.call(e,An),r=e[An];try{e[An]=i;var t=!0}catch{}var u=Yr.call(e);return t&&(n?e[An]=r:delete e[An]),u}var Di=si?function(e){return e==null?[]:(e=Y(e),an(si(e),function(n){return yf.call(e,n)}))}:eu,ho=si?function(e){for(var n=[];e;)sn(n,Di(e)),e=Qr(e);return n}:eu,pe=ge;(li&&pe(new li(new ArrayBuffer(1)))!=Pn||lr&&pe(new lr)!=We||ci&&pe(ci.resolve())!=Cu||Fn&&pe(new Fn)!=Ue||cr&&pe(new cr)!=fr)&&(pe=function(e){var n=ge(e),r=n==Je?e.constructor:i,t=r?Cn(r):"";if(t)switch(t){case Vp:return Pn;case jp:return We;case eg:return Cu;case ng:return Ue;case rg:return fr}return n});function vd(e,n,r){for(var t=-1,u=r.length;++t<u;){var o=r[t],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":n-=a;break;case"take":n=he(n,e+a);break;case"takeRight":e=oe(e,n-a);break}}return{start:e,end:n}}function yd(e){var n=e.match(Th);return n?n[1].split(Sh):[]}function po(e,n,r){n=dn(n,e);for(var t=-1,u=n.length,o=!1;++t<u;){var a=Ye(n[t]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++t!=u?o:(u=e==null?0:e.length,!!u&&Tt(u)&&rn(a,u)&&(P(e)||On(e)))}function xd(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&k.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function go(e){return typeof e.constructor=="function"&&!wr(e)?Un(Qr(e)):{}}function wd(e,n,r){var t=e.constructor;switch(n){case or:return Ii(e);case nr:case rr:return new t(+e);case Pn:return td(e,r);case Mt:case Dt:case Bt:case Ft:case Wt:case Ut:case Kt:case Nt:case Gt:return Jf(e,r);case We:return new t;case tr:case ur:return new t(e);case ir:return id(e);case Ue:return new t;case Fr:return ud(e)}}function Ad(e,n){var r=n.length;if(!r)return e;var t=r-1;return n[t]=(r>1?"& ":"")+n[t],n=n.join(r>2?", ":" "),e.replace(bh,`{
|
|
2
|
-
/* [wrapped with `+n+`] */
|
|
3
|
-
`)}function md(e){return P(e)||On(e)||!!(xf&&e&&e[xf])}function rn(e,n){var r=typeof e;return n=n??on,!!n&&(r=="number"||r!="symbol"&&Hh.test(e))&&e>-1&&e%1==0&&e<n}function de(e,n,r){if(!ne(r))return!1;var t=typeof n;return(t=="number"?we(r)&&rn(n,r.length):t=="string"&&n in r)?Ge(r[n],e):!1}function Bi(e,n){if(P(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ce(e)?!0:xh.test(e)||!yh.test(e)||n!=null&&e in Y(n)}function bd(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function Fi(e){var n=_t(e),r=f[n];if(typeof r!="function"||!(n in W.prototype))return!1;if(e===r)return!0;var t=Hi(r);return!!t&&e===t[0]}function Td(e){return!!df&&df in e}var Sd=kr?tn:nu;function wr(e){var n=e&&e.constructor,r=typeof n=="function"&&n.prototype||Bn;return e===r}function _o(e){return e===e&&!ne(e)}function vo(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==i||e in Y(r))}}function Ed(e){var n=mt(e,function(t){return r.size===Z&&r.clear(),t}),r=n.cache;return n}function Cd(e,n){var r=e[1],t=n[1],u=r|t,o=u<(N|L|ye),a=t==ye&&r==X||t==ye&&r==er&&e[7].length<=n[8]||t==(ye|er)&&n[7].length<=n[8]&&r==X;if(!(o||a))return e;t&N&&(e[2]=n[2],u|=r&N?0:le);var l=n[3];if(l){var h=e[3];e[3]=h?Vf(h,l,n[4]):l,e[4]=h?ln(e[3],F):n[4]}return l=n[5],l&&(h=e[5],e[5]=h?jf(h,l,n[6]):l,e[6]=h?ln(e[5],F):n[6]),l=n[7],l&&(e[7]=l),t&ye&&(e[8]=e[8]==null?n[8]:he(e[8],n[8])),e[9]==null&&(e[9]=n[9]),e[0]=n[0],e[1]=u,e}function Od(e){var n=[];if(e!=null)for(var r in Y(e))n.push(r);return n}function Id(e){return Yr.call(e)}function yo(e,n,r){return n=oe(n===i?e.length-1:n,0),function(){for(var t=arguments,u=-1,o=oe(t.length-n,0),a=g(o);++u<o;)a[u]=t[n+u];u=-1;for(var l=g(n+1);++u<n;)l[u]=t[u];return l[n]=r(a),Te(e,this,l)}}function xo(e,n){return n.length<2?e:Sn(e,Me(n,0,-1))}function Ld(e,n){for(var r=e.length,t=he(n.length,r),u=xe(e);t--;){var o=n[t];e[t]=rn(o,r)?u[o]:i}return e}function Wi(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}var wo=mo(Nf),Ar=$p||function(e,n){return ae.setTimeout(e,n)},Ui=mo(jg);function Ao(e,n,r){var t=n+"";return Ui(e,Ad(t,Rd(yd(t),r)))}function mo(e){var n=0,r=0;return function(){var t=Xp(),u=Vc-(t-r);if(r=t,u>0){if(++n>=Qc)return arguments[0]}else n=0;return e.apply(i,arguments)}}function yt(e,n){var r=-1,t=e.length,u=t-1;for(n=n===i?t:n;++r<n;){var o=mi(r,u),a=e[o];e[o]=e[r],e[r]=a}return e.length=n,e}var bo=Ed(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(wh,function(r,t,u,o){n.push(u?o.replace(Oh,"$1"):t||r)}),n});function Ye(e){if(typeof e=="string"||Ce(e))return e;var n=e+"";return n=="0"&&1/e==-xn?"-0":n}function Cn(e){if(e!=null){try{return Zr.call(e)}catch{}try{return e+""}catch{}}return""}function Rd(e,n){return Re(ih,function(r){var t="_."+r[0];n&r[1]&&!Nr(e,t)&&e.push(t)}),e.sort()}function To(e){if(e instanceof W)return e.clone();var n=new qe(e.__wrapped__,e.__chain__);return n.__actions__=xe(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}function Pd(e,n,r){(r?de(e,n,r):n===i)?n=1:n=oe(H(n),0);var t=e==null?0:e.length;if(!t||n<1)return[];for(var u=0,o=0,a=g(et(t/n));u<t;)a[o++]=Me(e,u,u+=n);return a}function qd(e){for(var n=-1,r=e==null?0:e.length,t=0,u=[];++n<r;){var o=e[n];o&&(u[t++]=o)}return u}function Hd(){var e=arguments.length;if(!e)return[];for(var n=g(e-1),r=arguments[0],t=e;t--;)n[t-1]=arguments[t];return sn(P(r)?xe(r):[r],ce(n,1))}var Md=D(function(e,n){return ie(e)?dr(e,ce(n,1,ie,!0)):[]}),Dd=D(function(e,n){var r=De(n);return ie(r)&&(r=i),ie(e)?dr(e,ce(n,1,ie,!0),C(r,2)):[]}),Bd=D(function(e,n){var r=De(n);return ie(r)&&(r=i),ie(e)?dr(e,ce(n,1,ie,!0),i,r):[]});function Fd(e,n,r){var t=e==null?0:e.length;return t?(n=r||n===i?1:H(n),Me(e,n<0?0:n,t)):[]}function Wd(e,n,r){var t=e==null?0:e.length;return t?(n=r||n===i?1:H(n),n=t-n,Me(e,0,n<0?0:n)):[]}function Ud(e,n){return e&&e.length?lt(e,C(n,3),!0,!0):[]}function Kd(e,n){return e&&e.length?lt(e,C(n,3),!0):[]}function Nd(e,n,r,t){var u=e==null?0:e.length;return u?(r&&typeof r!="number"&&de(e,n,r)&&(r=0,t=u),Hg(e,n,r,t)):[]}function So(e,n,r){var t=e==null?0:e.length;if(!t)return-1;var u=r==null?0:H(r);return u<0&&(u=oe(t+u,0)),Gr(e,C(n,3),u)}function Eo(e,n,r){var t=e==null?0:e.length;if(!t)return-1;var u=t-1;return r!==i&&(u=H(r),u=r<0?oe(t+u,0):he(u,t-1)),Gr(e,C(n,3),u,!0)}function Co(e){var n=e==null?0:e.length;return n?ce(e,1):[]}function Gd(e){var n=e==null?0:e.length;return n?ce(e,xn):[]}function zd(e,n){var r=e==null?0:e.length;return r?(n=n===i?1:H(n),ce(e,n)):[]}function $d(e){for(var n=-1,r=e==null?0:e.length,t={};++n<r;){var u=e[n];t[u[0]]=u[1]}return t}function Oo(e){return e&&e.length?e[0]:i}function kd(e,n,r){var t=e==null?0:e.length;if(!t)return-1;var u=r==null?0:H(r);return u<0&&(u=oe(t+u,0)),Hn(e,n,u)}function Zd(e){var n=e==null?0:e.length;return n?Me(e,0,-1):[]}var Yd=D(function(e){var n=ee(e,Ci);return n.length&&n[0]===e[0]?vi(n):[]}),Xd=D(function(e){var n=De(e),r=ee(e,Ci);return n===De(r)?n=i:r.pop(),r.length&&r[0]===e[0]?vi(r,C(n,2)):[]}),Jd=D(function(e){var n=De(e),r=ee(e,Ci);return n=typeof n=="function"?n:i,n&&r.pop(),r.length&&r[0]===e[0]?vi(r,i,n):[]});function Qd(e,n){return e==null?"":Zp.call(e,n)}function De(e){var n=e==null?0:e.length;return n?e[n-1]:i}function Vd(e,n,r){var t=e==null?0:e.length;if(!t)return-1;var u=t;return r!==i&&(u=H(r),u=u<0?oe(t+u,0):he(u,t-1)),n===n?Rp(e,n,u):Gr(e,of,u,!0)}function jd(e,n){return e&&e.length?Ff(e,H(n)):i}var e_=D(Io);function Io(e,n){return e&&e.length&&n&&n.length?Ai(e,n):e}function n_(e,n,r){return e&&e.length&&n&&n.length?Ai(e,n,C(r,2)):e}function r_(e,n,r){return e&&e.length&&n&&n.length?Ai(e,n,i,r):e}var t_=nn(function(e,n){var r=e==null?0:e.length,t=pi(e,n);return Kf(e,ee(n,function(u){return rn(u,r)?+u:u}).sort(Qf)),t});function i_(e,n){var r=[];if(!(e&&e.length))return r;var t=-1,u=[],o=e.length;for(n=C(n,3);++t<o;){var a=e[t];n(a,t,e)&&(r.push(a),u.push(t))}return Kf(e,u),r}function Ki(e){return e==null?e:Qp.call(e)}function u_(e,n,r){var t=e==null?0:e.length;return t?(r&&typeof r!="number"&&de(e,n,r)?(n=0,r=t):(n=n==null?0:H(n),r=r===i?t:H(r)),Me(e,n,r)):[]}function f_(e,n){return st(e,n)}function o_(e,n,r){return Ti(e,n,C(r,2))}function a_(e,n){var r=e==null?0:e.length;if(r){var t=st(e,n);if(t<r&&Ge(e[t],n))return t}return-1}function s_(e,n){return st(e,n,!0)}function l_(e,n,r){return Ti(e,n,C(r,2),!0)}function c_(e,n){var r=e==null?0:e.length;if(r){var t=st(e,n,!0)-1;if(Ge(e[t],n))return t}return-1}function h_(e){return e&&e.length?Gf(e):[]}function p_(e,n){return e&&e.length?Gf(e,C(n,2)):[]}function g_(e){var n=e==null?0:e.length;return n?Me(e,1,n):[]}function d_(e,n,r){return e&&e.length?(n=r||n===i?1:H(n),Me(e,0,n<0?0:n)):[]}function __(e,n,r){var t=e==null?0:e.length;return t?(n=r||n===i?1:H(n),n=t-n,Me(e,n<0?0:n,t)):[]}function v_(e,n){return e&&e.length?lt(e,C(n,3),!1,!0):[]}function y_(e,n){return e&&e.length?lt(e,C(n,3)):[]}var x_=D(function(e){return gn(ce(e,1,ie,!0))}),w_=D(function(e){var n=De(e);return ie(n)&&(n=i),gn(ce(e,1,ie,!0),C(n,2))}),A_=D(function(e){var n=De(e);return n=typeof n=="function"?n:i,gn(ce(e,1,ie,!0),i,n)});function m_(e){return e&&e.length?gn(e):[]}function b_(e,n){return e&&e.length?gn(e,C(n,2)):[]}function T_(e,n){return n=typeof n=="function"?n:i,e&&e.length?gn(e,i,n):[]}function Ni(e){if(!(e&&e.length))return[];var n=0;return e=an(e,function(r){if(ie(r))return n=oe(r.length,n),!0}),ui(n,function(r){return ee(e,ri(r))})}function Lo(e,n){if(!(e&&e.length))return[];var r=Ni(e);return n==null?r:ee(r,function(t){return Te(n,i,t)})}var S_=D(function(e,n){return ie(e)?dr(e,n):[]}),E_=D(function(e){return Ei(an(e,ie))}),C_=D(function(e){var n=De(e);return ie(n)&&(n=i),Ei(an(e,ie),C(n,2))}),O_=D(function(e){var n=De(e);return n=typeof n=="function"?n:i,Ei(an(e,ie),i,n)}),I_=D(Ni);function L_(e,n){return Zf(e||[],n||[],gr)}function R_(e,n){return Zf(e||[],n||[],yr)}var P_=D(function(e){var n=e.length,r=n>1?e[n-1]:i;return r=typeof r=="function"?(e.pop(),r):i,Lo(e,r)});function Ro(e){var n=f(e);return n.__chain__=!0,n}function q_(e,n){return n(e),e}function xt(e,n){return n(e)}var H_=nn(function(e){var n=e.length,r=n?e[0]:0,t=this.__wrapped__,u=function(o){return pi(o,e)};return n>1||this.__actions__.length||!(t instanceof W)||!rn(r)?this.thru(u):(t=t.slice(r,+r+(n?1:0)),t.__actions__.push({func:xt,args:[u],thisArg:i}),new qe(t,this.__chain__).thru(function(o){return n&&!o.length&&o.push(i),o}))});function M_(){return Ro(this)}function D_(){return new qe(this.value(),this.__chain__)}function B_(){this.__values__===i&&(this.__values__=$o(this.value()));var e=this.__index__>=this.__values__.length,n=e?i:this.__values__[this.__index__++];return{done:e,value:n}}function F_(){return this}function W_(e){for(var n,r=this;r instanceof it;){var t=To(r);t.__index__=0,t.__values__=i,n?u.__wrapped__=t:n=t;var u=t;r=r.__wrapped__}return u.__wrapped__=e,n}function U_(){var e=this.__wrapped__;if(e instanceof W){var n=e;return this.__actions__.length&&(n=new W(this)),n=n.reverse(),n.__actions__.push({func:xt,args:[Ki],thisArg:i}),new qe(n,this.__chain__)}return this.thru(Ki)}function K_(){return kf(this.__wrapped__,this.__actions__)}var N_=ct(function(e,n,r){k.call(e,r)?++e[r]:je(e,r,1)});function G_(e,n,r){var t=P(e)?uf:qg;return r&&de(e,n,r)&&(n=i),t(e,C(n,3))}function z_(e,n){var r=P(e)?an:If;return r(e,C(n,3))}var $_=to(So),k_=to(Eo);function Z_(e,n){return ce(wt(e,n),1)}function Y_(e,n){return ce(wt(e,n),xn)}function X_(e,n,r){return r=r===i?1:H(r),ce(wt(e,n),r)}function Po(e,n){var r=P(e)?Re:pn;return r(e,C(n,3))}function qo(e,n){var r=P(e)?gp:Of;return r(e,C(n,3))}var J_=ct(function(e,n,r){k.call(e,r)?e[r].push(n):je(e,r,[n])});function Q_(e,n,r,t){e=we(e)?e:$n(e),r=r&&!t?H(r):0;var u=e.length;return r<0&&(r=oe(u+r,0)),St(e)?r<=u&&e.indexOf(n,r)>-1:!!u&&Hn(e,n,r)>-1}var V_=D(function(e,n,r){var t=-1,u=typeof n=="function",o=we(e)?g(e.length):[];return pn(e,function(a){o[++t]=u?Te(n,a,r):_r(a,n,r)}),o}),j_=ct(function(e,n,r){je(e,r,n)});function wt(e,n){var r=P(e)?ee:Mf;return r(e,C(n,3))}function ev(e,n,r,t){return e==null?[]:(P(n)||(n=n==null?[]:[n]),r=t?i:r,P(r)||(r=r==null?[]:[r]),Wf(e,n,r))}var nv=ct(function(e,n,r){e[r?0:1].push(n)},function(){return[[],[]]});function rv(e,n,r){var t=P(e)?ei:sf,u=arguments.length<3;return t(e,C(n,4),r,u,pn)}function tv(e,n,r){var t=P(e)?dp:sf,u=arguments.length<3;return t(e,C(n,4),r,u,Of)}function iv(e,n){var r=P(e)?an:If;return r(e,bt(C(n,3)))}function uv(e){var n=P(e)?Tf:Qg;return n(e)}function fv(e,n,r){(r?de(e,n,r):n===i)?n=1:n=H(n);var t=P(e)?Og:Vg;return t(e,n)}function ov(e){var n=P(e)?Ig:ed;return n(e)}function av(e){if(e==null)return 0;if(we(e))return St(e)?Dn(e):e.length;var n=pe(e);return n==We||n==Ue?e.size:xi(e).length}function sv(e,n,r){var t=P(e)?ni:nd;return r&&de(e,n,r)&&(n=i),t(e,C(n,3))}var lv=D(function(e,n){if(e==null)return[];var r=n.length;return r>1&&de(e,n[0],n[1])?n=[]:r>2&&de(n[0],n[1],n[2])&&(n=[n[0]]),Wf(e,ce(n,1),[])}),At=zp||function(){return ae.Date.now()};function cv(e,n){if(typeof n!="function")throw new Pe(b);return e=H(e),function(){if(--e<1)return n.apply(this,arguments)}}function Ho(e,n,r){return n=r?i:n,n=e&&n==null?e.length:n,en(e,ye,i,i,i,i,n)}function Mo(e,n){var r;if(typeof n!="function")throw new Pe(b);return e=H(e),function(){return--e>0&&(r=n.apply(this,arguments)),e<=1&&(n=i),r}}var Gi=D(function(e,n,r){var t=N;if(r.length){var u=ln(r,Gn(Gi));t|=be}return en(e,t,n,r,u)}),Do=D(function(e,n,r){var t=N|L;if(r.length){var u=ln(r,Gn(Do));t|=be}return en(n,t,e,r,u)});function Bo(e,n,r){n=r?i:n;var t=en(e,X,i,i,i,i,i,n);return t.placeholder=Bo.placeholder,t}function Fo(e,n,r){n=r?i:n;var t=en(e,ve,i,i,i,i,i,n);return t.placeholder=Fo.placeholder,t}function Wo(e,n,r){var t,u,o,a,l,h,_=0,v=!1,y=!1,A=!0;if(typeof e!="function")throw new Pe(b);n=Be(n)||0,ne(r)&&(v=!!r.leading,y="maxWait"in r,o=y?oe(Be(r.maxWait)||0,n):o,A="trailing"in r?!!r.trailing:A);function S(ue){var ze=t,fn=u;return t=u=i,_=ue,a=e.apply(fn,ze),a}function O(ue){return _=ue,l=Ar(B,n),v?S(ue):a}function M(ue){var ze=ue-h,fn=ue-_,ia=n-ze;return y?he(ia,o-fn):ia}function I(ue){var ze=ue-h,fn=ue-_;return h===i||ze>=n||ze<0||y&&fn>=o}function B(){var ue=At();if(I(ue))return U(ue);l=Ar(B,M(ue))}function U(ue){return l=i,A&&t?S(ue):(t=u=i,a)}function Oe(){l!==i&&Yf(l),_=0,t=h=u=l=i}function _e(){return l===i?a:U(At())}function Ie(){var ue=At(),ze=I(ue);if(t=arguments,u=this,h=ue,ze){if(l===i)return O(h);if(y)return Yf(l),l=Ar(B,n),S(h)}return l===i&&(l=Ar(B,n)),a}return Ie.cancel=Oe,Ie.flush=_e,Ie}var hv=D(function(e,n){return Cf(e,1,n)}),pv=D(function(e,n,r){return Cf(e,Be(n)||0,r)});function gv(e){return en(e,Ht)}function mt(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new Pe(b);var r=function(){var t=arguments,u=n?n.apply(this,t):t[0],o=r.cache;if(o.has(u))return o.get(u);var a=e.apply(this,t);return r.cache=o.set(u,a)||o,a};return r.cache=new(mt.Cache||Ve),r}mt.Cache=Ve;function bt(e){if(typeof e!="function")throw new Pe(b);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function dv(e){return Mo(2,e)}var _v=rd(function(e,n){n=n.length==1&&P(n[0])?ee(n[0],Se(C())):ee(ce(n,1),Se(C()));var r=n.length;return D(function(t){for(var u=-1,o=he(t.length,r);++u<o;)t[u]=n[u].call(this,t[u]);return Te(e,this,t)})}),zi=D(function(e,n){var r=ln(n,Gn(zi));return en(e,be,i,n,r)}),Uo=D(function(e,n){var r=ln(n,Gn(Uo));return en(e,Fe,i,n,r)}),vv=nn(function(e,n){return en(e,er,i,i,i,n)});function yv(e,n){if(typeof e!="function")throw new Pe(b);return n=n===i?n:H(n),D(e,n)}function xv(e,n){if(typeof e!="function")throw new Pe(b);return n=n==null?0:oe(H(n),0),D(function(r){var t=r[n],u=_n(r,0,n);return t&&sn(u,t),Te(e,this,u)})}function wv(e,n,r){var t=!0,u=!0;if(typeof e!="function")throw new Pe(b);return ne(r)&&(t="leading"in r?!!r.leading:t,u="trailing"in r?!!r.trailing:u),Wo(e,n,{leading:t,maxWait:n,trailing:u})}function Av(e){return Ho(e,1)}function mv(e,n){return zi(Oi(n),e)}function bv(){if(!arguments.length)return[];var e=arguments[0];return P(e)?e:[e]}function Tv(e){return He(e,$)}function Sv(e,n){return n=typeof n=="function"?n:i,He(e,$,n)}function Ev(e){return He(e,E|$)}function Cv(e,n){return n=typeof n=="function"?n:i,He(e,E|$,n)}function Ov(e,n){return n==null||Ef(e,n,se(n))}function Ge(e,n){return e===n||e!==e&&n!==n}var Iv=dt(_i),Lv=dt(function(e,n){return e>=n}),On=Pf(function(){return arguments}())?Pf:function(e){return re(e)&&k.call(e,"callee")&&!yf.call(e,"callee")},P=g.isArray,Rv=Vu?Se(Vu):Wg;function we(e){return e!=null&&Tt(e.length)&&!tn(e)}function ie(e){return re(e)&&we(e)}function Pv(e){return e===!0||e===!1||re(e)&&ge(e)==nr}var vn=kp||nu,qv=ju?Se(ju):Ug;function Hv(e){return re(e)&&e.nodeType===1&&!mr(e)}function Mv(e){if(e==null)return!0;if(we(e)&&(P(e)||typeof e=="string"||typeof e.splice=="function"||vn(e)||zn(e)||On(e)))return!e.length;var n=pe(e);if(n==We||n==Ue)return!e.size;if(wr(e))return!xi(e).length;for(var r in e)if(k.call(e,r))return!1;return!0}function Dv(e,n){return vr(e,n)}function Bv(e,n,r){r=typeof r=="function"?r:i;var t=r?r(e,n):i;return t===i?vr(e,n,i,r):!!t}function $i(e){if(!re(e))return!1;var n=ge(e);return n==Dr||n==fh||typeof e.message=="string"&&typeof e.name=="string"&&!mr(e)}function Fv(e){return typeof e=="number"&&wf(e)}function tn(e){if(!ne(e))return!1;var n=ge(e);return n==Br||n==Eu||n==uh||n==ah}function Ko(e){return typeof e=="number"&&e==H(e)}function Tt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=on}function ne(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function re(e){return e!=null&&typeof e=="object"}var No=ef?Se(ef):Ng;function Wv(e,n){return e===n||yi(e,n,Mi(n))}function Uv(e,n,r){return r=typeof r=="function"?r:i,yi(e,n,Mi(n),r)}function Kv(e){return Go(e)&&e!=+e}function Nv(e){if(Sd(e))throw new R(x);return qf(e)}function Gv(e){return e===null}function zv(e){return e==null}function Go(e){return typeof e=="number"||re(e)&&ge(e)==tr}function mr(e){if(!re(e)||ge(e)!=Je)return!1;var n=Qr(e);if(n===null)return!0;var r=k.call(n,"constructor")&&n.constructor;return typeof r=="function"&&r instanceof r&&Zr.call(r)==Up}var ki=nf?Se(nf):Gg;function $v(e){return Ko(e)&&e>=-on&&e<=on}var zo=rf?Se(rf):zg;function St(e){return typeof e=="string"||!P(e)&&re(e)&&ge(e)==ur}function Ce(e){return typeof e=="symbol"||re(e)&&ge(e)==Fr}var zn=tf?Se(tf):$g;function kv(e){return e===i}function Zv(e){return re(e)&&pe(e)==fr}function Yv(e){return re(e)&&ge(e)==lh}var Xv=dt(wi),Jv=dt(function(e,n){return e<=n});function $o(e){if(!e)return[];if(we(e))return St(e)?Ke(e):xe(e);if(sr&&e[sr])return Op(e[sr]());var n=pe(e),r=n==We?oi:n==Ue?zr:$n;return r(e)}function un(e){if(!e)return e===0?e:0;if(e=Be(e),e===xn||e===-xn){var n=e<0?-1:1;return n*nh}return e===e?e:0}function H(e){var n=un(e),r=n%1;return n===n?r?n-r:n:0}function ko(e){return e?Tn(H(e),0,$e):0}function Be(e){if(typeof e=="number")return e;if(Ce(e))return Hr;if(ne(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=ne(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=lf(e);var r=Rh.test(e);return r||qh.test(e)?cp(e.slice(2),r?2:8):Lh.test(e)?Hr:+e}function Zo(e){return Ze(e,Ae(e))}function Qv(e){return e?Tn(H(e),-on,on):e===0?e:0}function z(e){return e==null?"":Ee(e)}var Vv=Kn(function(e,n){if(wr(n)||we(n)){Ze(n,se(n),e);return}for(var r in n)k.call(n,r)&&gr(e,r,n[r])}),Yo=Kn(function(e,n){Ze(n,Ae(n),e)}),Et=Kn(function(e,n,r,t){Ze(n,Ae(n),e,t)}),jv=Kn(function(e,n,r,t){Ze(n,se(n),e,t)}),e0=nn(pi);function n0(e,n){var r=Un(e);return n==null?r:Sf(r,n)}var r0=D(function(e,n){e=Y(e);var r=-1,t=n.length,u=t>2?n[2]:i;for(u&&de(n[0],n[1],u)&&(t=1);++r<t;)for(var o=n[r],a=Ae(o),l=-1,h=a.length;++l<h;){var _=a[l],v=e[_];(v===i||Ge(v,Bn[_])&&!k.call(e,_))&&(e[_]=o[_])}return e}),t0=D(function(e){return e.push(i,lo),Te(Xo,i,e)});function i0(e,n){return ff(e,C(n,3),ke)}function u0(e,n){return ff(e,C(n,3),di)}function f0(e,n){return e==null?e:gi(e,C(n,3),Ae)}function o0(e,n){return e==null?e:Lf(e,C(n,3),Ae)}function a0(e,n){return e&&ke(e,C(n,3))}function s0(e,n){return e&&di(e,C(n,3))}function l0(e){return e==null?[]:ot(e,se(e))}function c0(e){return e==null?[]:ot(e,Ae(e))}function Zi(e,n,r){var t=e==null?i:Sn(e,n);return t===i?r:t}function h0(e,n){return e!=null&&po(e,n,Mg)}function Yi(e,n){return e!=null&&po(e,n,Dg)}var p0=uo(function(e,n,r){n!=null&&typeof n.toString!="function"&&(n=Yr.call(n)),e[n]=r},Ji(me)),g0=uo(function(e,n,r){n!=null&&typeof n.toString!="function"&&(n=Yr.call(n)),k.call(e,n)?e[n].push(r):e[n]=[r]},C),d0=D(_r);function se(e){return we(e)?bf(e):xi(e)}function Ae(e){return we(e)?bf(e,!0):kg(e)}function _0(e,n){var r={};return n=C(n,3),ke(e,function(t,u,o){je(r,n(t,u,o),t)}),r}function v0(e,n){var r={};return n=C(n,3),ke(e,function(t,u,o){je(r,u,n(t,u,o))}),r}var y0=Kn(function(e,n,r){at(e,n,r)}),Xo=Kn(function(e,n,r,t){at(e,n,r,t)}),x0=nn(function(e,n){var r={};if(e==null)return r;var t=!1;n=ee(n,function(o){return o=dn(o,e),t||(t=o.length>1),o}),Ze(e,qi(e),r),t&&(r=He(r,E|te|$,pd));for(var u=n.length;u--;)Si(r,n[u]);return r});function w0(e,n){return Jo(e,bt(C(n)))}var A0=nn(function(e,n){return e==null?{}:Yg(e,n)});function Jo(e,n){if(e==null)return{};var r=ee(qi(e),function(t){return[t]});return n=C(n),Uf(e,r,function(t,u){return n(t,u[0])})}function m0(e,n,r){n=dn(n,e);var t=-1,u=n.length;for(u||(u=1,e=i);++t<u;){var o=e==null?i:e[Ye(n[t])];o===i&&(t=u,o=r),e=tn(o)?o.call(e):o}return e}function b0(e,n,r){return e==null?e:yr(e,n,r)}function T0(e,n,r,t){return t=typeof t=="function"?t:i,e==null?e:yr(e,n,r,t)}var Qo=ao(se),Vo=ao(Ae);function S0(e,n,r){var t=P(e),u=t||vn(e)||zn(e);if(n=C(n,4),r==null){var o=e&&e.constructor;u?r=t?new o:[]:ne(e)?r=tn(o)?Un(Qr(e)):{}:r={}}return(u?Re:ke)(e,function(a,l,h){return n(r,a,l,h)}),r}function E0(e,n){return e==null?!0:Si(e,n)}function C0(e,n,r){return e==null?e:$f(e,n,Oi(r))}function O0(e,n,r,t){return t=typeof t=="function"?t:i,e==null?e:$f(e,n,Oi(r),t)}function $n(e){return e==null?[]:fi(e,se(e))}function I0(e){return e==null?[]:fi(e,Ae(e))}function L0(e,n,r){return r===i&&(r=n,n=i),r!==i&&(r=Be(r),r=r===r?r:0),n!==i&&(n=Be(n),n=n===n?n:0),Tn(Be(e),n,r)}function R0(e,n,r){return n=un(n),r===i?(r=n,n=0):r=un(r),e=Be(e),Bg(e,n,r)}function P0(e,n,r){if(r&&typeof r!="boolean"&&de(e,n,r)&&(n=r=i),r===i&&(typeof n=="boolean"?(r=n,n=i):typeof e=="boolean"&&(r=e,e=i)),e===i&&n===i?(e=0,n=1):(e=un(e),n===i?(n=e,e=0):n=un(n)),e>n){var t=e;e=n,n=t}if(r||e%1||n%1){var u=Af();return he(e+u*(n-e+lp("1e-"+((u+"").length-1))),n)}return mi(e,n)}var q0=Nn(function(e,n,r){return n=n.toLowerCase(),e+(r?jo(n):n)});function jo(e){return Xi(z(e).toLowerCase())}function ea(e){return e=z(e),e&&e.replace(Mh,bp).replace(ep,"")}function H0(e,n,r){e=z(e),n=Ee(n);var t=e.length;r=r===i?t:Tn(H(r),0,t);var u=r;return r-=n.length,r>=0&&e.slice(r,u)==n}function M0(e){return e=z(e),e&&dh.test(e)?e.replace(Iu,Tp):e}function D0(e){return e=z(e),e&&Ah.test(e)?e.replace(zt,"\\$&"):e}var B0=Nn(function(e,n,r){return e+(r?"-":"")+n.toLowerCase()}),F0=Nn(function(e,n,r){return e+(r?" ":"")+n.toLowerCase()}),W0=ro("toLowerCase");function U0(e,n,r){e=z(e),n=H(n);var t=n?Dn(e):0;if(!n||t>=n)return e;var u=(n-t)/2;return gt(nt(u),r)+e+gt(et(u),r)}function K0(e,n,r){e=z(e),n=H(n);var t=n?Dn(e):0;return n&&t<n?e+gt(n-t,r):e}function N0(e,n,r){e=z(e),n=H(n);var t=n?Dn(e):0;return n&&t<n?gt(n-t,r)+e:e}function G0(e,n,r){return r||n==null?n=0:n&&(n=+n),Jp(z(e).replace($t,""),n||0)}function z0(e,n,r){return(r?de(e,n,r):n===i)?n=1:n=H(n),bi(z(e),n)}function $0(){var e=arguments,n=z(e[0]);return e.length<3?n:n.replace(e[1],e[2])}var k0=Nn(function(e,n,r){return e+(r?"_":"")+n.toLowerCase()});function Z0(e,n,r){return r&&typeof r!="number"&&de(e,n,r)&&(n=r=i),r=r===i?$e:r>>>0,r?(e=z(e),e&&(typeof n=="string"||n!=null&&!ki(n))&&(n=Ee(n),!n&&Mn(e))?_n(Ke(e),0,r):e.split(n,r)):[]}var Y0=Nn(function(e,n,r){return e+(r?" ":"")+Xi(n)});function X0(e,n,r){return e=z(e),r=r==null?0:Tn(H(r),0,e.length),n=Ee(n),e.slice(r,r+n.length)==n}function J0(e,n,r){var t=f.templateSettings;r&&de(e,n,r)&&(n=i),e=z(e),n=Et({},n,t,so);var u=Et({},n.imports,t.imports,so),o=se(u),a=fi(u,o),l,h,_=0,v=n.interpolate||Wr,y="__p += '",A=ai((n.escape||Wr).source+"|"+v.source+"|"+(v===Lu?Ih:Wr).source+"|"+(n.evaluate||Wr).source+"|$","g"),S="//# sourceURL="+(k.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++up+"]")+`
|
|
4
|
-
`;e.replace(A,function(I,B,U,Oe,_e,Ie){return U||(U=Oe),y+=e.slice(_,Ie).replace(Dh,Sp),B&&(l=!0,y+=`' +
|
|
5
|
-
__e(`+B+`) +
|
|
6
|
-
'`),_e&&(h=!0,y+=`';
|
|
7
|
-
`+_e+`;
|
|
8
|
-
__p += '`),U&&(y+=`' +
|
|
9
|
-
((__t = (`+U+`)) == null ? '' : __t) +
|
|
10
|
-
'`),_=Ie+I.length,I}),y+=`';
|
|
11
|
-
`;var O=k.call(n,"variable")&&n.variable;if(!O)y=`with (obj) {
|
|
12
|
-
`+y+`
|
|
13
|
-
}
|
|
14
|
-
`;else if(Ch.test(O))throw new R(T);y=(h?y.replace(ch,""):y).replace(hh,"$1").replace(ph,"$1;"),y="function("+(O||"obj")+`) {
|
|
15
|
-
`+(O?"":`obj || (obj = {});
|
|
16
|
-
`)+"var __t, __p = ''"+(l?", __e = _.escape":"")+(h?`, __j = Array.prototype.join;
|
|
17
|
-
function print() { __p += __j.call(arguments, '') }
|
|
18
|
-
`:`;
|
|
19
|
-
`)+y+`return __p
|
|
20
|
-
}`;var M=ra(function(){return G(o,S+"return "+y).apply(i,a)});if(M.source=y,$i(M))throw M;return M}function Q0(e){return z(e).toLowerCase()}function V0(e){return z(e).toUpperCase()}function j0(e,n,r){if(e=z(e),e&&(r||n===i))return lf(e);if(!e||!(n=Ee(n)))return e;var t=Ke(e),u=Ke(n),o=cf(t,u),a=hf(t,u)+1;return _n(t,o,a).join("")}function ey(e,n,r){if(e=z(e),e&&(r||n===i))return e.slice(0,gf(e)+1);if(!e||!(n=Ee(n)))return e;var t=Ke(e),u=hf(t,Ke(n))+1;return _n(t,0,u).join("")}function ny(e,n,r){if(e=z(e),e&&(r||n===i))return e.replace($t,"");if(!e||!(n=Ee(n)))return e;var t=Ke(e),u=cf(t,Ke(n));return _n(t,u).join("")}function ry(e,n){var r=Xc,t=Jc;if(ne(n)){var u="separator"in n?n.separator:u;r="length"in n?H(n.length):r,t="omission"in n?Ee(n.omission):t}e=z(e);var o=e.length;if(Mn(e)){var a=Ke(e);o=a.length}if(r>=o)return e;var l=r-Dn(t);if(l<1)return t;var h=a?_n(a,0,l).join(""):e.slice(0,l);if(u===i)return h+t;if(a&&(l+=h.length-l),ki(u)){if(e.slice(l).search(u)){var _,v=h;for(u.global||(u=ai(u.source,z(Ru.exec(u))+"g")),u.lastIndex=0;_=u.exec(v);)var y=_.index;h=h.slice(0,y===i?l:y)}}else if(e.indexOf(Ee(u),l)!=l){var A=h.lastIndexOf(u);A>-1&&(h=h.slice(0,A))}return h+t}function ty(e){return e=z(e),e&&gh.test(e)?e.replace(Ou,Pp):e}var iy=Nn(function(e,n,r){return e+(r?" ":"")+n.toUpperCase()}),Xi=ro("toUpperCase");function na(e,n,r){return e=z(e),n=r?i:n,n===i?Cp(e)?Mp(e):yp(e):e.match(n)||[]}var ra=D(function(e,n){try{return Te(e,i,n)}catch(r){return $i(r)?r:new R(r)}}),uy=nn(function(e,n){return Re(n,function(r){r=Ye(r),je(e,r,Gi(e[r],e))}),e});function fy(e){var n=e==null?0:e.length,r=C();return e=n?ee(e,function(t){if(typeof t[1]!="function")throw new Pe(b);return[r(t[0]),t[1]]}):[],D(function(t){for(var u=-1;++u<n;){var o=e[u];if(Te(o[0],this,t))return Te(o[1],this,t)}})}function oy(e){return Pg(He(e,E))}function Ji(e){return function(){return e}}function ay(e,n){return e==null||e!==e?n:e}var sy=io(),ly=io(!0);function me(e){return e}function Qi(e){return Hf(typeof e=="function"?e:He(e,E))}function cy(e){return Df(He(e,E))}function hy(e,n){return Bf(e,He(n,E))}var py=D(function(e,n){return function(r){return _r(r,e,n)}}),gy=D(function(e,n){return function(r){return _r(e,r,n)}});function Vi(e,n,r){var t=se(n),u=ot(n,t);r==null&&!(ne(n)&&(u.length||!t.length))&&(r=n,n=e,e=this,u=ot(n,se(n)));var o=!(ne(r)&&"chain"in r)||!!r.chain,a=tn(e);return Re(u,function(l){var h=n[l];e[l]=h,a&&(e.prototype[l]=function(){var _=this.__chain__;if(o||_){var v=e(this.__wrapped__),y=v.__actions__=xe(this.__actions__);return y.push({func:h,args:arguments,thisArg:e}),v.__chain__=_,v}return h.apply(e,sn([this.value()],arguments))})}),e}function dy(){return ae._===this&&(ae._=Kp),this}function ji(){}function _y(e){return e=H(e),D(function(n){return Ff(n,e)})}var vy=Li(ee),yy=Li(uf),xy=Li(ni);function ta(e){return Bi(e)?ri(Ye(e)):Xg(e)}function wy(e){return function(n){return e==null?i:Sn(e,n)}}var Ay=fo(),my=fo(!0);function eu(){return[]}function nu(){return!1}function by(){return{}}function Ty(){return""}function Sy(){return!0}function Ey(e,n){if(e=H(e),e<1||e>on)return[];var r=$e,t=he(e,$e);n=C(n),e-=$e;for(var u=ui(t,n);++r<e;)n(r);return u}function Cy(e){return P(e)?ee(e,Ye):Ce(e)?[e]:xe(bo(z(e)))}function Oy(e){var n=++Wp;return z(e)+n}var Iy=pt(function(e,n){return e+n},0),Ly=Ri("ceil"),Ry=pt(function(e,n){return e/n},1),Py=Ri("floor");function qy(e){return e&&e.length?ft(e,me,_i):i}function Hy(e,n){return e&&e.length?ft(e,C(n,2),_i):i}function My(e){return af(e,me)}function Dy(e,n){return af(e,C(n,2))}function By(e){return e&&e.length?ft(e,me,wi):i}function Fy(e,n){return e&&e.length?ft(e,C(n,2),wi):i}var Wy=pt(function(e,n){return e*n},1),Uy=Ri("round"),Ky=pt(function(e,n){return e-n},0);function Ny(e){return e&&e.length?ii(e,me):0}function Gy(e,n){return e&&e.length?ii(e,C(n,2)):0}return f.after=cv,f.ary=Ho,f.assign=Vv,f.assignIn=Yo,f.assignInWith=Et,f.assignWith=jv,f.at=e0,f.before=Mo,f.bind=Gi,f.bindAll=uy,f.bindKey=Do,f.castArray=bv,f.chain=Ro,f.chunk=Pd,f.compact=qd,f.concat=Hd,f.cond=fy,f.conforms=oy,f.constant=Ji,f.countBy=N_,f.create=n0,f.curry=Bo,f.curryRight=Fo,f.debounce=Wo,f.defaults=r0,f.defaultsDeep=t0,f.defer=hv,f.delay=pv,f.difference=Md,f.differenceBy=Dd,f.differenceWith=Bd,f.drop=Fd,f.dropRight=Wd,f.dropRightWhile=Ud,f.dropWhile=Kd,f.fill=Nd,f.filter=z_,f.flatMap=Z_,f.flatMapDeep=Y_,f.flatMapDepth=X_,f.flatten=Co,f.flattenDeep=Gd,f.flattenDepth=zd,f.flip=gv,f.flow=sy,f.flowRight=ly,f.fromPairs=$d,f.functions=l0,f.functionsIn=c0,f.groupBy=J_,f.initial=Zd,f.intersection=Yd,f.intersectionBy=Xd,f.intersectionWith=Jd,f.invert=p0,f.invertBy=g0,f.invokeMap=V_,f.iteratee=Qi,f.keyBy=j_,f.keys=se,f.keysIn=Ae,f.map=wt,f.mapKeys=_0,f.mapValues=v0,f.matches=cy,f.matchesProperty=hy,f.memoize=mt,f.merge=y0,f.mergeWith=Xo,f.method=py,f.methodOf=gy,f.mixin=Vi,f.negate=bt,f.nthArg=_y,f.omit=x0,f.omitBy=w0,f.once=dv,f.orderBy=ev,f.over=vy,f.overArgs=_v,f.overEvery=yy,f.overSome=xy,f.partial=zi,f.partialRight=Uo,f.partition=nv,f.pick=A0,f.pickBy=Jo,f.property=ta,f.propertyOf=wy,f.pull=e_,f.pullAll=Io,f.pullAllBy=n_,f.pullAllWith=r_,f.pullAt=t_,f.range=Ay,f.rangeRight=my,f.rearg=vv,f.reject=iv,f.remove=i_,f.rest=yv,f.reverse=Ki,f.sampleSize=fv,f.set=b0,f.setWith=T0,f.shuffle=ov,f.slice=u_,f.sortBy=lv,f.sortedUniq=h_,f.sortedUniqBy=p_,f.split=Z0,f.spread=xv,f.tail=g_,f.take=d_,f.takeRight=__,f.takeRightWhile=v_,f.takeWhile=y_,f.tap=q_,f.throttle=wv,f.thru=xt,f.toArray=$o,f.toPairs=Qo,f.toPairsIn=Vo,f.toPath=Cy,f.toPlainObject=Zo,f.transform=S0,f.unary=Av,f.union=x_,f.unionBy=w_,f.unionWith=A_,f.uniq=m_,f.uniqBy=b_,f.uniqWith=T_,f.unset=E0,f.unzip=Ni,f.unzipWith=Lo,f.update=C0,f.updateWith=O0,f.values=$n,f.valuesIn=I0,f.without=S_,f.words=na,f.wrap=mv,f.xor=E_,f.xorBy=C_,f.xorWith=O_,f.zip=I_,f.zipObject=L_,f.zipObjectDeep=R_,f.zipWith=P_,f.entries=Qo,f.entriesIn=Vo,f.extend=Yo,f.extendWith=Et,Vi(f,f),f.add=Iy,f.attempt=ra,f.camelCase=q0,f.capitalize=jo,f.ceil=Ly,f.clamp=L0,f.clone=Tv,f.cloneDeep=Ev,f.cloneDeepWith=Cv,f.cloneWith=Sv,f.conformsTo=Ov,f.deburr=ea,f.defaultTo=ay,f.divide=Ry,f.endsWith=H0,f.eq=Ge,f.escape=M0,f.escapeRegExp=D0,f.every=G_,f.find=$_,f.findIndex=So,f.findKey=i0,f.findLast=k_,f.findLastIndex=Eo,f.findLastKey=u0,f.floor=Py,f.forEach=Po,f.forEachRight=qo,f.forIn=f0,f.forInRight=o0,f.forOwn=a0,f.forOwnRight=s0,f.get=Zi,f.gt=Iv,f.gte=Lv,f.has=h0,f.hasIn=Yi,f.head=Oo,f.identity=me,f.includes=Q_,f.indexOf=kd,f.inRange=R0,f.invoke=d0,f.isArguments=On,f.isArray=P,f.isArrayBuffer=Rv,f.isArrayLike=we,f.isArrayLikeObject=ie,f.isBoolean=Pv,f.isBuffer=vn,f.isDate=qv,f.isElement=Hv,f.isEmpty=Mv,f.isEqual=Dv,f.isEqualWith=Bv,f.isError=$i,f.isFinite=Fv,f.isFunction=tn,f.isInteger=Ko,f.isLength=Tt,f.isMap=No,f.isMatch=Wv,f.isMatchWith=Uv,f.isNaN=Kv,f.isNative=Nv,f.isNil=zv,f.isNull=Gv,f.isNumber=Go,f.isObject=ne,f.isObjectLike=re,f.isPlainObject=mr,f.isRegExp=ki,f.isSafeInteger=$v,f.isSet=zo,f.isString=St,f.isSymbol=Ce,f.isTypedArray=zn,f.isUndefined=kv,f.isWeakMap=Zv,f.isWeakSet=Yv,f.join=Qd,f.kebabCase=B0,f.last=De,f.lastIndexOf=Vd,f.lowerCase=F0,f.lowerFirst=W0,f.lt=Xv,f.lte=Jv,f.max=qy,f.maxBy=Hy,f.mean=My,f.meanBy=Dy,f.min=By,f.minBy=Fy,f.stubArray=eu,f.stubFalse=nu,f.stubObject=by,f.stubString=Ty,f.stubTrue=Sy,f.multiply=Wy,f.nth=jd,f.noConflict=dy,f.noop=ji,f.now=At,f.pad=U0,f.padEnd=K0,f.padStart=N0,f.parseInt=G0,f.random=P0,f.reduce=rv,f.reduceRight=tv,f.repeat=z0,f.replace=$0,f.result=m0,f.round=Uy,f.runInContext=c,f.sample=uv,f.size=av,f.snakeCase=k0,f.some=sv,f.sortedIndex=f_,f.sortedIndexBy=o_,f.sortedIndexOf=a_,f.sortedLastIndex=s_,f.sortedLastIndexBy=l_,f.sortedLastIndexOf=c_,f.startCase=Y0,f.startsWith=X0,f.subtract=Ky,f.sum=Ny,f.sumBy=Gy,f.template=J0,f.times=Ey,f.toFinite=un,f.toInteger=H,f.toLength=ko,f.toLower=Q0,f.toNumber=Be,f.toSafeInteger=Qv,f.toString=z,f.toUpper=V0,f.trim=j0,f.trimEnd=ey,f.trimStart=ny,f.truncate=ry,f.unescape=ty,f.uniqueId=Oy,f.upperCase=iy,f.upperFirst=Xi,f.each=Po,f.eachRight=qo,f.first=Oo,Vi(f,function(){var e={};return ke(f,function(n,r){k.call(f.prototype,r)||(e[r]=n)}),e}(),{chain:!1}),f.VERSION=s,Re(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){f[e].placeholder=f}),Re(["drop","take"],function(e,n){W.prototype[e]=function(r){r=r===i?1:oe(H(r),0);var t=this.__filtered__&&!n?new W(this):this.clone();return t.__filtered__?t.__takeCount__=he(r,t.__takeCount__):t.__views__.push({size:he(r,$e),type:e+(t.__dir__<0?"Right":"")}),t},W.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Re(["filter","map","takeWhile"],function(e,n){var r=n+1,t=r==Su||r==eh;W.prototype[e]=function(u){var o=this.clone();return o.__iteratees__.push({iteratee:C(u,3),type:r}),o.__filtered__=o.__filtered__||t,o}}),Re(["head","last"],function(e,n){var r="take"+(n?"Right":"");W.prototype[e]=function(){return this[r](1).value()[0]}}),Re(["initial","tail"],function(e,n){var r="drop"+(n?"":"Right");W.prototype[e]=function(){return this.__filtered__?new W(this):this[r](1)}}),W.prototype.compact=function(){return this.filter(me)},W.prototype.find=function(e){return this.filter(e).head()},W.prototype.findLast=function(e){return this.reverse().find(e)},W.prototype.invokeMap=D(function(e,n){return typeof e=="function"?new W(this):this.map(function(r){return _r(r,e,n)})}),W.prototype.reject=function(e){return this.filter(bt(C(e)))},W.prototype.slice=function(e,n){e=H(e);var r=this;return r.__filtered__&&(e>0||n<0)?new W(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),n!==i&&(n=H(n),r=n<0?r.dropRight(-n):r.take(n-e)),r)},W.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},W.prototype.toArray=function(){return this.take($e)},ke(W.prototype,function(e,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),t=/^(?:head|last)$/.test(n),u=f[t?"take"+(n=="last"?"Right":""):n],o=t||/^find/.test(n);!u||(f.prototype[n]=function(){var a=this.__wrapped__,l=t?[1]:arguments,h=a instanceof W,_=l[0],v=h||P(a),y=function(B){var U=u.apply(f,sn([B],l));return t&&A?U[0]:U};v&&r&&typeof _=="function"&&_.length!=1&&(h=v=!1);var A=this.__chain__,S=!!this.__actions__.length,O=o&&!A,M=h&&!S;if(!o&&v){a=M?a:new W(this);var I=e.apply(a,l);return I.__actions__.push({func:xt,args:[y],thisArg:i}),new qe(I,A)}return O&&M?e.apply(this,l):(I=this.thru(y),O?t?I.value()[0]:I.value():I)})}),Re(["pop","push","shift","sort","splice","unshift"],function(e){var n=$r[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",t=/^(?:pop|shift)$/.test(e);f.prototype[e]=function(){var u=arguments;if(t&&!this.__chain__){var o=this.value();return n.apply(P(o)?o:[],u)}return this[r](function(a){return n.apply(P(a)?a:[],u)})}}),ke(W.prototype,function(e,n){var r=f[n];if(r){var t=r.name+"";k.call(Wn,t)||(Wn[t]=[]),Wn[t].push({name:n,func:r})}}),Wn[ht(i,L).name]=[{name:"wrapper",func:i}],W.prototype.clone=tg,W.prototype.reverse=ig,W.prototype.value=ug,f.prototype.at=H_,f.prototype.chain=M_,f.prototype.commit=D_,f.prototype.next=B_,f.prototype.plant=W_,f.prototype.reverse=U_,f.prototype.toJSON=f.prototype.valueOf=f.prototype.value=K_,f.prototype.first=f.prototype.head,sr&&(f.prototype[sr]=F_),f},cn=Dp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ae._=cn,define(function(){return cn})):wn?((wn.exports=cn)._=cn,Qt._=cn):ae._=cn}).call(kn)});var ma=w((Jb,Aa)=>{function o1(){this.__data__=[],this.size=0}Aa.exports=o1});var fu=w((Qb,ba)=>{function a1(i,s){return i===s||i!==i&&s!==s}ba.exports=a1});var Tr=w((Vb,Ta)=>{var s1=fu();function l1(i,s){for(var p=i.length;p--;)if(s1(i[p][0],s))return p;return-1}Ta.exports=l1});var Ea=w((jb,Sa)=>{var c1=Tr(),h1=Array.prototype,p1=h1.splice;function g1(i){var s=this.__data__,p=c1(s,i);if(p<0)return!1;var x=s.length-1;return p==x?s.pop():p1.call(s,p,1),--this.size,!0}Sa.exports=g1});var Oa=w((eT,Ca)=>{var d1=Tr();function _1(i){var s=this.__data__,p=d1(s,i);return p<0?void 0:s[p][1]}Ca.exports=_1});var La=w((nT,Ia)=>{var v1=Tr();function y1(i){return v1(this.__data__,i)>-1}Ia.exports=y1});var Pa=w((rT,Ra)=>{var x1=Tr();function w1(i,s){var p=this.__data__,x=x1(p,i);return x<0?(++this.size,p.push([i,s])):p[x][1]=s,this}Ra.exports=w1});var Sr=w((tT,qa)=>{var A1=ma(),m1=Ea(),b1=Oa(),T1=La(),S1=Pa();function Zn(i){var s=-1,p=i==null?0:i.length;for(this.clear();++s<p;){var x=i[s];this.set(x[0],x[1])}}Zn.prototype.clear=A1;Zn.prototype.delete=m1;Zn.prototype.get=b1;Zn.prototype.has=T1;Zn.prototype.set=S1;qa.exports=Zn});var Ma=w((iT,Ha)=>{var E1=Sr();function C1(){this.__data__=new E1,this.size=0}Ha.exports=C1});var Ba=w((uT,Da)=>{function O1(i){var s=this.__data__,p=s.delete(i);return this.size=s.size,p}Da.exports=O1});var Wa=w((fT,Fa)=>{function I1(i){return this.__data__.get(i)}Fa.exports=I1});var Ka=w((oT,Ua)=>{function L1(i){return this.__data__.has(i)}Ua.exports=L1});var ou=w((aT,Na)=>{var R1=typeof global=="object"&&global&&global.Object===Object&&global;Na.exports=R1});var Xe=w((sT,Ga)=>{var P1=ou(),q1=typeof self=="object"&&self&&self.Object===Object&&self,H1=P1||q1||Function("return this")();Ga.exports=H1});var Ot=w((lT,za)=>{var M1=Xe(),D1=M1.Symbol;za.exports=D1});var Ya=w((cT,Za)=>{var $a=Ot(),ka=Object.prototype,B1=ka.hasOwnProperty,F1=ka.toString,Er=$a?$a.toStringTag:void 0;function W1(i){var s=B1.call(i,Er),p=i[Er];try{i[Er]=void 0;var x=!0}catch{}var b=F1.call(i);return x&&(s?i[Er]=p:delete i[Er]),b}Za.exports=W1});var Ja=w((hT,Xa)=>{var U1=Object.prototype,K1=U1.toString;function N1(i){return K1.call(i)}Xa.exports=N1});var Cr=w((pT,ja)=>{var Qa=Ot(),G1=Ya(),z1=Ja(),$1="[object Null]",k1="[object Undefined]",Va=Qa?Qa.toStringTag:void 0;function Z1(i){return i==null?i===void 0?k1:$1:Va&&Va in Object(i)?G1(i):z1(i)}ja.exports=Z1});var au=w((gT,es)=>{function Y1(i){var s=typeof i;return i!=null&&(s=="object"||s=="function")}es.exports=Y1});var su=w((dT,ns)=>{var X1=Cr(),J1=au(),Q1="[object AsyncFunction]",V1="[object Function]",j1="[object GeneratorFunction]",ex="[object Proxy]";function nx(i){if(!J1(i))return!1;var s=X1(i);return s==V1||s==j1||s==Q1||s==ex}ns.exports=nx});var ts=w((_T,rs)=>{var rx=Xe(),tx=rx["__core-js_shared__"];rs.exports=tx});var fs=w((vT,us)=>{var lu=ts(),is=function(){var i=/[^.]+$/.exec(lu&&lu.keys&&lu.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function ix(i){return!!is&&is in i}us.exports=ix});var cu=w((yT,os)=>{var ux=Function.prototype,fx=ux.toString;function ox(i){if(i!=null){try{return fx.call(i)}catch{}try{return i+""}catch{}}return""}os.exports=ox});var ss=w((xT,as)=>{var ax=su(),sx=fs(),lx=au(),cx=cu(),hx=/[\\^$.*+?()[\]{}|]/g,px=/^\[object .+?Constructor\]$/,gx=Function.prototype,dx=Object.prototype,_x=gx.toString,vx=dx.hasOwnProperty,yx=RegExp("^"+_x.call(vx).replace(hx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xx(i){if(!lx(i)||sx(i))return!1;var s=ax(i)?yx:px;return s.test(cx(i))}as.exports=xx});var cs=w((wT,ls)=>{function wx(i,s){return i?.[s]}ls.exports=wx});var In=w((AT,hs)=>{var Ax=ss(),mx=cs();function bx(i,s){var p=mx(i,s);return Ax(p)?p:void 0}hs.exports=bx});var It=w((mT,ps)=>{var Tx=In(),Sx=Xe(),Ex=Tx(Sx,"Map");ps.exports=Ex});var Or=w((bT,gs)=>{var Cx=In(),Ox=Cx(Object,"create");gs.exports=Ox});var vs=w((TT,_s)=>{var ds=Or();function Ix(){this.__data__=ds?ds(null):{},this.size=0}_s.exports=Ix});var xs=w((ST,ys)=>{function Lx(i){var s=this.has(i)&&delete this.__data__[i];return this.size-=s?1:0,s}ys.exports=Lx});var As=w((ET,ws)=>{var Rx=Or(),Px="__lodash_hash_undefined__",qx=Object.prototype,Hx=qx.hasOwnProperty;function Mx(i){var s=this.__data__;if(Rx){var p=s[i];return p===Px?void 0:p}return Hx.call(s,i)?s[i]:void 0}ws.exports=Mx});var bs=w((CT,ms)=>{var Dx=Or(),Bx=Object.prototype,Fx=Bx.hasOwnProperty;function Wx(i){var s=this.__data__;return Dx?s[i]!==void 0:Fx.call(s,i)}ms.exports=Wx});var Ss=w((OT,Ts)=>{var Ux=Or(),Kx="__lodash_hash_undefined__";function Nx(i,s){var p=this.__data__;return this.size+=this.has(i)?0:1,p[i]=Ux&&s===void 0?Kx:s,this}Ts.exports=Nx});var Cs=w((IT,Es)=>{var Gx=vs(),zx=xs(),$x=As(),kx=bs(),Zx=Ss();function Yn(i){var s=-1,p=i==null?0:i.length;for(this.clear();++s<p;){var x=i[s];this.set(x[0],x[1])}}Yn.prototype.clear=Gx;Yn.prototype.delete=zx;Yn.prototype.get=$x;Yn.prototype.has=kx;Yn.prototype.set=Zx;Es.exports=Yn});var Ls=w((LT,Is)=>{var Os=Cs(),Yx=Sr(),Xx=It();function Jx(){this.size=0,this.__data__={hash:new Os,map:new(Xx||Yx),string:new Os}}Is.exports=Jx});var Ps=w((RT,Rs)=>{function Qx(i){var s=typeof i;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?i!=="__proto__":i===null}Rs.exports=Qx});var Ir=w((PT,qs)=>{var Vx=Ps();function jx(i,s){var p=i.__data__;return Vx(s)?p[typeof s=="string"?"string":"hash"]:p.map}qs.exports=jx});var Ms=w((qT,Hs)=>{var ew=Ir();function nw(i){var s=ew(this,i).delete(i);return this.size-=s?1:0,s}Hs.exports=nw});var Bs=w((HT,Ds)=>{var rw=Ir();function tw(i){return rw(this,i).get(i)}Ds.exports=tw});var Ws=w((MT,Fs)=>{var iw=Ir();function uw(i){return iw(this,i).has(i)}Fs.exports=uw});var Ks=w((DT,Us)=>{var fw=Ir();function ow(i,s){var p=fw(this,i),x=p.size;return p.set(i,s),this.size+=p.size==x?0:1,this}Us.exports=ow});var hu=w((BT,Ns)=>{var aw=Ls(),sw=Ms(),lw=Bs(),cw=Ws(),hw=Ks();function Xn(i){var s=-1,p=i==null?0:i.length;for(this.clear();++s<p;){var x=i[s];this.set(x[0],x[1])}}Xn.prototype.clear=aw;Xn.prototype.delete=sw;Xn.prototype.get=lw;Xn.prototype.has=cw;Xn.prototype.set=hw;Ns.exports=Xn});var zs=w((FT,Gs)=>{var pw=Sr(),gw=It(),dw=hu(),_w=200;function vw(i,s){var p=this.__data__;if(p instanceof pw){var x=p.__data__;if(!gw||x.length<_w-1)return x.push([i,s]),this.size=++p.size,this;p=this.__data__=new dw(x)}return p.set(i,s),this.size=p.size,this}Gs.exports=vw});var ks=w((WT,$s)=>{var yw=Sr(),xw=Ma(),ww=Ba(),Aw=Wa(),mw=Ka(),bw=zs();function Jn(i){var s=this.__data__=new yw(i);this.size=s.size}Jn.prototype.clear=xw;Jn.prototype.delete=ww;Jn.prototype.get=Aw;Jn.prototype.has=mw;Jn.prototype.set=bw;$s.exports=Jn});var Ys=w((UT,Zs)=>{var Tw="__lodash_hash_undefined__";function Sw(i){return this.__data__.set(i,Tw),this}Zs.exports=Sw});var Js=w((KT,Xs)=>{function Ew(i){return this.__data__.has(i)}Xs.exports=Ew});var Vs=w((NT,Qs)=>{var Cw=hu(),Ow=Ys(),Iw=Js();function Lt(i){var s=-1,p=i==null?0:i.length;for(this.__data__=new Cw;++s<p;)this.add(i[s])}Lt.prototype.add=Lt.prototype.push=Ow;Lt.prototype.has=Iw;Qs.exports=Lt});var el=w((GT,js)=>{function Lw(i,s){for(var p=-1,x=i==null?0:i.length;++p<x;)if(s(i[p],p,i))return!0;return!1}js.exports=Lw});var rl=w((zT,nl)=>{function Rw(i,s){return i.has(s)}nl.exports=Rw});var pu=w(($T,tl)=>{var Pw=Vs(),qw=el(),Hw=rl(),Mw=1,Dw=2;function Bw(i,s,p,x,b,T){var K=p&Mw,Z=i.length,F=s.length;if(Z!=F&&!(K&&F>Z))return!1;var E=T.get(i),te=T.get(s);if(E&&te)return E==s&&te==i;var $=-1,q=!0,j=p&Dw?new Pw:void 0;for(T.set(i,s),T.set(s,i);++$<Z;){var N=i[$],L=s[$];if(x)var le=K?x(L,N,$,s,i,T):x(N,L,$,i,s,T);if(le!==void 0){if(le)continue;q=!1;break}if(j){if(!qw(s,function(X,ve){if(!Hw(j,ve)&&(N===X||b(N,X,p,x,T)))return j.push(ve)})){q=!1;break}}else if(!(N===L||b(N,L,p,x,T))){q=!1;break}}return T.delete(i),T.delete(s),q}tl.exports=Bw});var ul=w((kT,il)=>{var Fw=Xe(),Ww=Fw.Uint8Array;il.exports=Ww});var ol=w((ZT,fl)=>{function Uw(i){var s=-1,p=Array(i.size);return i.forEach(function(x,b){p[++s]=[b,x]}),p}fl.exports=Uw});var sl=w((YT,al)=>{function Kw(i){var s=-1,p=Array(i.size);return i.forEach(function(x){p[++s]=x}),p}al.exports=Kw});var gl=w((XT,pl)=>{var ll=Ot(),cl=ul(),Nw=fu(),Gw=pu(),zw=ol(),$w=sl(),kw=1,Zw=2,Yw="[object Boolean]",Xw="[object Date]",Jw="[object Error]",Qw="[object Map]",Vw="[object Number]",jw="[object RegExp]",eA="[object Set]",nA="[object String]",rA="[object Symbol]",tA="[object ArrayBuffer]",iA="[object DataView]",hl=ll?ll.prototype:void 0,gu=hl?hl.valueOf:void 0;function uA(i,s,p,x,b,T,K){switch(p){case iA:if(i.byteLength!=s.byteLength||i.byteOffset!=s.byteOffset)return!1;i=i.buffer,s=s.buffer;case tA:return!(i.byteLength!=s.byteLength||!T(new cl(i),new cl(s)));case Yw:case Xw:case Vw:return Nw(+i,+s);case Jw:return i.name==s.name&&i.message==s.message;case jw:case nA:return i==s+"";case Qw:var Z=zw;case eA:var F=x&kw;if(Z||(Z=$w),i.size!=s.size&&!F)return!1;var E=K.get(i);if(E)return E==s;x|=Zw,K.set(i,s);var te=Gw(Z(i),Z(s),x,b,T,K);return K.delete(i),te;case rA:if(gu)return gu.call(i)==gu.call(s)}return!1}pl.exports=uA});var _l=w((JT,dl)=>{function fA(i,s){for(var p=-1,x=s.length,b=i.length;++p<x;)i[b+p]=s[p];return i}dl.exports=fA});var Rt=w((QT,vl)=>{var oA=Array.isArray;vl.exports=oA});var xl=w((VT,yl)=>{var aA=_l(),sA=Rt();function lA(i,s,p){var x=s(i);return sA(i)?x:aA(x,p(i))}yl.exports=lA});var Al=w((jT,wl)=>{function cA(i,s){for(var p=-1,x=i==null?0:i.length,b=0,T=[];++p<x;){var K=i[p];s(K,p,i)&&(T[b++]=K)}return T}wl.exports=cA});var bl=w((eS,ml)=>{function hA(){return[]}ml.exports=hA});var El=w((nS,Sl)=>{var pA=Al(),gA=bl(),dA=Object.prototype,_A=dA.propertyIsEnumerable,Tl=Object.getOwnPropertySymbols,vA=Tl?function(i){return i==null?[]:(i=Object(i),pA(Tl(i),function(s){return _A.call(i,s)}))}:gA;Sl.exports=vA});var Ol=w((rS,Cl)=>{function yA(i,s){for(var p=-1,x=Array(i);++p<i;)x[p]=s(p);return x}Cl.exports=yA});var Lr=w((tS,Il)=>{function xA(i){return i!=null&&typeof i=="object"}Il.exports=xA});var Rl=w((iS,Ll)=>{var wA=Cr(),AA=Lr(),mA="[object Arguments]";function bA(i){return AA(i)&&wA(i)==mA}Ll.exports=bA});var Ml=w((uS,Hl)=>{var Pl=Rl(),TA=Lr(),ql=Object.prototype,SA=ql.hasOwnProperty,EA=ql.propertyIsEnumerable,CA=Pl(function(){return arguments}())?Pl:function(i){return TA(i)&&SA.call(i,"callee")&&!EA.call(i,"callee")};Hl.exports=CA});var Bl=w((fS,Dl)=>{function OA(){return!1}Dl.exports=OA});var du=w((Rr,Qn)=>{var IA=Xe(),LA=Bl(),Ul=typeof Rr=="object"&&Rr&&!Rr.nodeType&&Rr,Fl=Ul&&typeof Qn=="object"&&Qn&&!Qn.nodeType&&Qn,RA=Fl&&Fl.exports===Ul,Wl=RA?IA.Buffer:void 0,PA=Wl?Wl.isBuffer:void 0,qA=PA||LA;Qn.exports=qA});var Nl=w((oS,Kl)=>{var HA=9007199254740991,MA=/^(?:0|[1-9]\d*)$/;function DA(i,s){var p=typeof i;return s=s??HA,!!s&&(p=="number"||p!="symbol"&&MA.test(i))&&i>-1&&i%1==0&&i<s}Kl.exports=DA});var _u=w((aS,Gl)=>{var BA=9007199254740991;function FA(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=BA}Gl.exports=FA});var $l=w((sS,zl)=>{var WA=Cr(),UA=_u(),KA=Lr(),NA="[object Arguments]",GA="[object Array]",zA="[object Boolean]",$A="[object Date]",kA="[object Error]",ZA="[object Function]",YA="[object Map]",XA="[object Number]",JA="[object Object]",QA="[object RegExp]",VA="[object Set]",jA="[object String]",em="[object WeakMap]",nm="[object ArrayBuffer]",rm="[object DataView]",tm="[object Float32Array]",im="[object Float64Array]",um="[object Int8Array]",fm="[object Int16Array]",om="[object Int32Array]",am="[object Uint8Array]",sm="[object Uint8ClampedArray]",lm="[object Uint16Array]",cm="[object Uint32Array]",V={};V[tm]=V[im]=V[um]=V[fm]=V[om]=V[am]=V[sm]=V[lm]=V[cm]=!0;V[NA]=V[GA]=V[nm]=V[zA]=V[rm]=V[$A]=V[kA]=V[ZA]=V[YA]=V[XA]=V[JA]=V[QA]=V[VA]=V[jA]=V[em]=!1;function hm(i){return KA(i)&&UA(i.length)&&!!V[WA(i)]}zl.exports=hm});var Zl=w((lS,kl)=>{function pm(i){return function(s){return i(s)}}kl.exports=pm});var Xl=w((Pr,Vn)=>{var gm=ou(),Yl=typeof Pr=="object"&&Pr&&!Pr.nodeType&&Pr,qr=Yl&&typeof Vn=="object"&&Vn&&!Vn.nodeType&&Vn,dm=qr&&qr.exports===Yl,vu=dm&&gm.process,_m=function(){try{var i=qr&&qr.require&&qr.require("util").types;return i||vu&&vu.binding&&vu.binding("util")}catch{}}();Vn.exports=_m});var yu=w((cS,Vl)=>{var vm=$l(),ym=Zl(),Jl=Xl(),Ql=Jl&&Jl.isTypedArray,xm=Ql?ym(Ql):vm;Vl.exports=xm});var ec=w((hS,jl)=>{var wm=Ol(),Am=Ml(),mm=Rt(),bm=du(),Tm=Nl(),Sm=yu(),Em=Object.prototype,Cm=Em.hasOwnProperty;function Om(i,s){var p=mm(i),x=!p&&Am(i),b=!p&&!x&&bm(i),T=!p&&!x&&!b&&Sm(i),K=p||x||b||T,Z=K?wm(i.length,String):[],F=Z.length;for(var E in i)(s||Cm.call(i,E))&&!(K&&(E=="length"||b&&(E=="offset"||E=="parent")||T&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||Tm(E,F)))&&Z.push(E);return Z}jl.exports=Om});var rc=w((pS,nc)=>{var Im=Object.prototype;function Lm(i){var s=i&&i.constructor,p=typeof s=="function"&&s.prototype||Im;return i===p}nc.exports=Lm});var ic=w((gS,tc)=>{function Rm(i,s){return function(p){return i(s(p))}}tc.exports=Rm});var fc=w((dS,uc)=>{var Pm=ic(),qm=Pm(Object.keys,Object);uc.exports=qm});var ac=w((_S,oc)=>{var Hm=rc(),Mm=fc(),Dm=Object.prototype,Bm=Dm.hasOwnProperty;function Fm(i){if(!Hm(i))return Mm(i);var s=[];for(var p in Object(i))Bm.call(i,p)&&p!="constructor"&&s.push(p);return s}oc.exports=Fm});var lc=w((vS,sc)=>{var Wm=su(),Um=_u();function Km(i){return i!=null&&Um(i.length)&&!Wm(i)}sc.exports=Km});var hc=w((yS,cc)=>{var Nm=ec(),Gm=ac(),zm=lc();function $m(i){return zm(i)?Nm(i):Gm(i)}cc.exports=$m});var gc=w((xS,pc)=>{var km=xl(),Zm=El(),Ym=hc();function Xm(i){return km(i,Ym,Zm)}pc.exports=Xm});var vc=w((wS,_c)=>{var dc=gc(),Jm=1,Qm=Object.prototype,Vm=Qm.hasOwnProperty;function jm(i,s,p,x,b,T){var K=p&Jm,Z=dc(i),F=Z.length,E=dc(s),te=E.length;if(F!=te&&!K)return!1;for(var $=F;$--;){var q=Z[$];if(!(K?q in s:Vm.call(s,q)))return!1}var j=T.get(i),N=T.get(s);if(j&&N)return j==s&&N==i;var L=!0;T.set(i,s),T.set(s,i);for(var le=K;++$<F;){q=Z[$];var X=i[q],ve=s[q];if(x)var be=K?x(ve,X,q,s,i,T):x(X,ve,q,i,s,T);if(!(be===void 0?X===ve||b(X,ve,p,x,T):be)){L=!1;break}le||(le=q=="constructor")}if(L&&!le){var Fe=i.constructor,ye=s.constructor;Fe!=ye&&"constructor"in i&&"constructor"in s&&!(typeof Fe=="function"&&Fe instanceof Fe&&typeof ye=="function"&&ye instanceof ye)&&(L=!1)}return T.delete(i),T.delete(s),L}_c.exports=jm});var xc=w((AS,yc)=>{var eb=In(),nb=Xe(),rb=eb(nb,"DataView");yc.exports=rb});var Ac=w((mS,wc)=>{var tb=In(),ib=Xe(),ub=tb(ib,"Promise");wc.exports=ub});var bc=w((bS,mc)=>{var fb=In(),ob=Xe(),ab=fb(ob,"Set");mc.exports=ab});var Sc=w((TS,Tc)=>{var sb=In(),lb=Xe(),cb=sb(lb,"WeakMap");Tc.exports=cb});var qc=w((SS,Pc)=>{var xu=xc(),wu=It(),Au=Ac(),mu=bc(),bu=Sc(),Rc=Cr(),jn=cu(),Ec="[object Map]",hb="[object Object]",Cc="[object Promise]",Oc="[object Set]",Ic="[object WeakMap]",Lc="[object DataView]",pb=jn(xu),gb=jn(wu),db=jn(Au),_b=jn(mu),vb=jn(bu),Ln=Rc;(xu&&Ln(new xu(new ArrayBuffer(1)))!=Lc||wu&&Ln(new wu)!=Ec||Au&&Ln(Au.resolve())!=Cc||mu&&Ln(new mu)!=Oc||bu&&Ln(new bu)!=Ic)&&(Ln=function(i){var s=Rc(i),p=s==hb?i.constructor:void 0,x=p?jn(p):"";if(x)switch(x){case pb:return Lc;case gb:return Ec;case db:return Cc;case _b:return Oc;case vb:return Ic}return s});Pc.exports=Ln});var Kc=w((ES,Uc)=>{var Tu=ks(),yb=pu(),xb=gl(),wb=vc(),Hc=qc(),Mc=Rt(),Dc=du(),Ab=yu(),mb=1,Bc="[object Arguments]",Fc="[object Array]",Pt="[object Object]",bb=Object.prototype,Wc=bb.hasOwnProperty;function Tb(i,s,p,x,b,T){var K=Mc(i),Z=Mc(s),F=K?Fc:Hc(i),E=Z?Fc:Hc(s);F=F==Bc?Pt:F,E=E==Bc?Pt:E;var te=F==Pt,$=E==Pt,q=F==E;if(q&&Dc(i)){if(!Dc(s))return!1;K=!0,te=!1}if(q&&!te)return T||(T=new Tu),K||Ab(i)?yb(i,s,p,x,b,T):xb(i,s,F,p,x,b,T);if(!(p&mb)){var j=te&&Wc.call(i,"__wrapped__"),N=$&&Wc.call(s,"__wrapped__");if(j||N){var L=j?i.value():i,le=N?s.value():s;return T||(T=new Tu),b(L,le,p,x,T)}}return q?(T||(T=new Tu),wb(i,s,p,x,b,T)):!1}Uc.exports=Tb});var $c=w((CS,zc)=>{var Sb=Kc(),Nc=Lr();function Gc(i,s,p,x,b){return i===s?!0:i==null||s==null||!Nc(i)&&!Nc(s)?i!==i&&s!==s:Sb(i,s,p,x,Gc,b)}zc.exports=Gc});var Zc=w((OS,kc)=>{var Eb=$c();function Cb(i,s){return Eb(i,s)}kc.exports=Cb});import{useCallback as u1,useLayoutEffect as f1,useRef as ya}from"react";var Jy=["ctrl","shift","alt","meta","mod"],Qy={esc:"escape",return:"enter",left:"arrowleft",up:"arrowup",right:"arrowright",down:"arrowdown"};function Ct(i,s=","){return typeof i=="string"?i.split(s):i}function yn(i,s="+"){let p=i.toLocaleLowerCase().split(s).map(T=>T.trim()).map(T=>Qy[T]||T),x={alt:p.includes("alt"),ctrl:p.includes("ctrl"),shift:p.includes("shift"),meta:p.includes("meta"),mod:p.includes("mod")},b=p.filter(T=>!Jy.includes(T));return{...x,keys:b}}function oa(i,s,p){(typeof p=="function"&&p(i,s)||p===!0)&&i.preventDefault()}function aa(i,s,p){return typeof p=="function"?p(i,s):p===!0||p===void 0}function sa(i){return ru(i,["input","textarea","select"])}function ru({target:i},s=!1){let p=i&&i.tagName;return s instanceof Array?Boolean(p&&s&&s.some(x=>x.toLowerCase()===p.toLowerCase())):Boolean(p&&s&&s===!0)}function la(i,s){return i.length===0&&s?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):s?i.some(p=>s.includes(p))||i.includes("*"):!0}var ca=(i,s,p)=>{let{alt:x,ctrl:b,meta:T,mod:K,shift:Z,keys:F}=s,{altKey:E,ctrlKey:te,metaKey:$,shiftKey:q,key:j,code:N}=i,L=N.toLowerCase().replace("key",""),le=j.toLowerCase();if(E!==x&&le!=="alt"||q!==Z&&le!=="shift")return!1;if(K){if(!$&&!te)return!1}else if($!==T&&L!=="meta"||te!==b&&L!=="ctrl")return!1;return F&&F.length===1&&(F.includes(le)||F.includes(L))?!0:F?F.every(X=>p.has(X)):!F};import{createContext as e1,useMemo as n1,useState as ga,useContext as r1}from"react";import{createContext as Vy,useContext as jy}from"react";var ha=Vy(void 0),pa=()=>jy(ha);function tu({addHotkey:i,removeHotkey:s,children:p}){return React.createElement(ha.Provider,{value:{addHotkey:i,removeHotkey:s}},p)}var da=e1({hotkeys:[],enabledScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),iu=()=>r1(da),t1=({initiallyActiveScopes:i=["*"],children:s})=>{let[p,x]=ga(i?.length>0?i:["*"]),[b,T]=ga([]),K=n1(()=>p.includes("*"),[p]),Z=q=>{x(K?[q]:Array.from(new Set([...p,q])))},F=q=>{let j=p.filter(N=>N!==q);j.length===0?x(["*"]):x(j)},E=q=>{p.includes(q)?F(q):Z(q)},te=q=>{T([...b,q])},$=q=>{T(b.filter(j=>j.keys!==q.keys))};return React.createElement(da.Provider,{value:{enabledScopes:p,hotkeys:b,enableScope:Z,disableScope:F,toggleScope:E}},React.createElement(tu,{addHotkey:te,removeHotkey:$},s))};var va=fa(_a());import{useRef as i1}from"react";function uu(i){let s=i1(void 0);return(0,va.isEqual)(s.current,i)||(s.current=i),s.current}var xa=i=>{i.stopPropagation(),i.preventDefault(),i.stopImmediatePropagation()};function wa(i,s,p,x){let b=ya(null),{current:T}=ya(new Set),K=p instanceof Array?x instanceof Array?void 0:x:p,Z=p instanceof Array?p:x instanceof Array?x:[],F=u1(s,[...Z]),E=uu(K),{enabledScopes:te}=iu(),$=pa();return f1(()=>{if(E?.enabled===!1||!la(te,E?.scopes))return;let q=L=>{if(!(sa(L)&&!ru(L,E?.enableOnFormTags))){if(b.current!==null&&document.activeElement!==b.current&&!b.current.contains(document.activeElement)){xa(L);return}L.target?.isContentEditable&&!E?.enableOnContentEditable||Ct(i,E?.splitKey).forEach(le=>{let X=yn(le,E?.combinationKey);if(ca(L,X,T)||X.keys?.includes("*")){if(oa(L,X,E?.preventDefault),!aa(L,X,E?.enabled)){xa(L);return}F(L,X)}})}},j=L=>{T.add(L.key.toLowerCase()),(E?.keydown===void 0&&E?.keyup!==!0||E?.keydown)&&q(L)},N=L=>{L.key.toLowerCase()!=="meta"?T.delete(L.key.toLowerCase()):T.clear(),E?.keyup&&q(L)};return(b.current||document).addEventListener("keyup",N),(b.current||document).addEventListener("keydown",j),$&&Ct(i,E?.splitKey).forEach(L=>$.addHotkey(yn(L,E?.combinationKey))),()=>{(b.current||document).removeEventListener("keyup",N),(b.current||document).removeEventListener("keydown",j),$&&Ct(i,E?.splitKey).forEach(L=>$.removeHotkey(yn(L,E?.combinationKey)))}},[i,F,E,te]),b}var Yc=fa(Zc()),qt=new Set;function Ob(i,s=","){return(Array.isArray(i)?i:i.split(s)).every(x=>{let b=yn(x);for(let T of qt)if((0,Yc.default)(b,T))return!0})}function Ib(i){(Array.isArray(i)?i:[i]).forEach(p=>qt.add(yn(p)))}function Lb(i){(Array.isArray(i)?i:[i]).forEach(p=>{let x=yn(p);for(let b of qt)b.keys?.every(T=>x.keys?.includes(T))&&qt.delete(b)})}window.addEventListener("DOMContentLoaded",()=>{document.addEventListener("keydown",i=>{Ib(i.key)}),document.addEventListener("keyup",i=>{Lb(i.key)})});export{t1 as HotkeysProvider,Ob as isHotkeyPressed,wa as useHotkeys,iu as useHotkeysContext};
|
|
21
|
-
/**
|
|
22
|
-
* @license
|
|
23
|
-
* Lodash <https://lodash.com/>
|
|
24
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
25
|
-
* Released under MIT license <https://lodash.com/license>
|
|
26
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
27
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
28
|
-
*/
|
|
1
|
+
var yn=Object.create;var qe=Object.defineProperty;var ln=Object.getOwnPropertyDescriptor;var dn=Object.getOwnPropertyNames;var vn=Object.getPrototypeOf,gn=Object.prototype.hasOwnProperty;var n=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var hn=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of dn(r))!gn.call(e,i)&&i!==t&&qe(e,i,{get:()=>r[i],enumerable:!(o=ln(r,i))||o.enumerable});return e};var Ae=(e,r,t)=>(t=e!=null?yn(vn(e)):{},hn(r||!e||!e.__esModule?qe(t,"default",{value:e,enumerable:!0}):t,e));var Le=n((pc,je)=>{function Pn(){this.__data__=[],this.size=0}je.exports=Pn});var ee=n((cc,Ke)=>{function Hn(e,r){return e===r||e!==e&&r!==r}Ke.exports=Hn});var k=n((fc,Ie)=>{var Sn=ee();function On(e,r){for(var t=e.length;t--;)if(Sn(e[t][0],r))return t;return-1}Ie.exports=On});var De=n((yc,Me)=>{var Cn=k(),En=Array.prototype,kn=En.splice;function jn(e){var r=this.__data__,t=Cn(r,e);if(t<0)return!1;var o=r.length-1;return t==o?r.pop():kn.call(r,t,1),--this.size,!0}Me.exports=jn});var Be=n((lc,Re)=>{var Ln=k();function Kn(e){var r=this.__data__,t=Ln(r,e);return t<0?void 0:r[t][1]}Re.exports=Kn});var Ne=n((dc,Ge)=>{var In=k();function Mn(e){return In(this.__data__,e)>-1}Ge.exports=Mn});var Ue=n((vc,Fe)=>{var Dn=k();function Rn(e,r){var t=this.__data__,o=Dn(t,e);return o<0?(++this.size,t.push([e,r])):t[o][1]=r,this}Fe.exports=Rn});var j=n((gc,ze)=>{var Bn=Le(),Gn=De(),Nn=Be(),Fn=Ne(),Un=Ue();function w(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var o=e[r];this.set(o[0],o[1])}}w.prototype.clear=Bn;w.prototype.delete=Gn;w.prototype.get=Nn;w.prototype.has=Fn;w.prototype.set=Un;ze.exports=w});var We=n((hc,$e)=>{var zn=j();function $n(){this.__data__=new zn,this.size=0}$e.exports=$n});var Xe=n((bc,Je)=>{function Wn(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}Je.exports=Wn});var Ze=n((xc,Ye)=>{function Jn(e){return this.__data__.get(e)}Ye.exports=Jn});var Ve=n((mc,Qe)=>{function Xn(e){return this.__data__.has(e)}Qe.exports=Xn});var re=n((_c,er)=>{var Yn=typeof global=="object"&&global&&global.Object===Object&&global;er.exports=Yn});var m=n((qc,rr)=>{var Zn=re(),Qn=typeof self=="object"&&self&&self.Object===Object&&self,Vn=Zn||Qn||Function("return this")();rr.exports=Vn});var z=n((Ac,tr)=>{var ea=m(),ra=ea.Symbol;tr.exports=ra});var ir=n((Tc,ar)=>{var or=z(),nr=Object.prototype,ta=nr.hasOwnProperty,oa=nr.toString,L=or?or.toStringTag:void 0;function na(e){var r=ta.call(e,L),t=e[L];try{e[L]=void 0;var o=!0}catch{}var i=oa.call(e);return o&&(r?e[L]=t:delete e[L]),i}ar.exports=na});var ur=n((wc,sr)=>{var aa=Object.prototype,ia=aa.toString;function sa(e){return ia.call(e)}sr.exports=sa});var K=n((Pc,fr)=>{var pr=z(),ua=ir(),pa=ur(),ca="[object Null]",fa="[object Undefined]",cr=pr?pr.toStringTag:void 0;function ya(e){return e==null?e===void 0?fa:ca:cr&&cr in Object(e)?ua(e):pa(e)}fr.exports=ya});var te=n((Hc,yr)=>{function la(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}yr.exports=la});var oe=n((Sc,lr)=>{var da=K(),va=te(),ga="[object AsyncFunction]",ha="[object Function]",ba="[object GeneratorFunction]",xa="[object Proxy]";function ma(e){if(!va(e))return!1;var r=da(e);return r==ha||r==ba||r==ga||r==xa}lr.exports=ma});var vr=n((Oc,dr)=>{var _a=m(),qa=_a["__core-js_shared__"];dr.exports=qa});var br=n((Cc,hr)=>{var ne=vr(),gr=function(){var e=/[^.]+$/.exec(ne&&ne.keys&&ne.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Aa(e){return!!gr&&gr in e}hr.exports=Aa});var ae=n((Ec,xr)=>{var Ta=Function.prototype,wa=Ta.toString;function Pa(e){if(e!=null){try{return wa.call(e)}catch{}try{return e+""}catch{}}return""}xr.exports=Pa});var _r=n((kc,mr)=>{var Ha=oe(),Sa=br(),Oa=te(),Ca=ae(),Ea=/[\\^$.*+?()[\]{}|]/g,ka=/^\[object .+?Constructor\]$/,ja=Function.prototype,La=Object.prototype,Ka=ja.toString,Ia=La.hasOwnProperty,Ma=RegExp("^"+Ka.call(Ia).replace(Ea,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Da(e){if(!Oa(e)||Sa(e))return!1;var r=Ha(e)?Ma:ka;return r.test(Ca(e))}mr.exports=Da});var Ar=n((jc,qr)=>{function Ra(e,r){return e?.[r]}qr.exports=Ra});var A=n((Lc,Tr)=>{var Ba=_r(),Ga=Ar();function Na(e,r){var t=Ga(e,r);return Ba(t)?t:void 0}Tr.exports=Na});var $=n((Kc,wr)=>{var Fa=A(),Ua=m(),za=Fa(Ua,"Map");wr.exports=za});var I=n((Ic,Pr)=>{var $a=A(),Wa=$a(Object,"create");Pr.exports=Wa});var Or=n((Mc,Sr)=>{var Hr=I();function Ja(){this.__data__=Hr?Hr(null):{},this.size=0}Sr.exports=Ja});var Er=n((Dc,Cr)=>{function Xa(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}Cr.exports=Xa});var jr=n((Rc,kr)=>{var Ya=I(),Za="__lodash_hash_undefined__",Qa=Object.prototype,Va=Qa.hasOwnProperty;function ei(e){var r=this.__data__;if(Ya){var t=r[e];return t===Za?void 0:t}return Va.call(r,e)?r[e]:void 0}kr.exports=ei});var Kr=n((Bc,Lr)=>{var ri=I(),ti=Object.prototype,oi=ti.hasOwnProperty;function ni(e){var r=this.__data__;return ri?r[e]!==void 0:oi.call(r,e)}Lr.exports=ni});var Mr=n((Gc,Ir)=>{var ai=I(),ii="__lodash_hash_undefined__";function si(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=ai&&r===void 0?ii:r,this}Ir.exports=si});var Rr=n((Nc,Dr)=>{var ui=Or(),pi=Er(),ci=jr(),fi=Kr(),yi=Mr();function P(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var o=e[r];this.set(o[0],o[1])}}P.prototype.clear=ui;P.prototype.delete=pi;P.prototype.get=ci;P.prototype.has=fi;P.prototype.set=yi;Dr.exports=P});var Nr=n((Fc,Gr)=>{var Br=Rr(),li=j(),di=$();function vi(){this.size=0,this.__data__={hash:new Br,map:new(di||li),string:new Br}}Gr.exports=vi});var Ur=n((Uc,Fr)=>{function gi(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}Fr.exports=gi});var M=n((zc,zr)=>{var hi=Ur();function bi(e,r){var t=e.__data__;return hi(r)?t[typeof r=="string"?"string":"hash"]:t.map}zr.exports=bi});var Wr=n(($c,$r)=>{var xi=M();function mi(e){var r=xi(this,e).delete(e);return this.size-=r?1:0,r}$r.exports=mi});var Xr=n((Wc,Jr)=>{var _i=M();function qi(e){return _i(this,e).get(e)}Jr.exports=qi});var Zr=n((Jc,Yr)=>{var Ai=M();function Ti(e){return Ai(this,e).has(e)}Yr.exports=Ti});var Vr=n((Xc,Qr)=>{var wi=M();function Pi(e,r){var t=wi(this,e),o=t.size;return t.set(e,r),this.size+=t.size==o?0:1,this}Qr.exports=Pi});var ie=n((Yc,et)=>{var Hi=Nr(),Si=Wr(),Oi=Xr(),Ci=Zr(),Ei=Vr();function H(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var o=e[r];this.set(o[0],o[1])}}H.prototype.clear=Hi;H.prototype.delete=Si;H.prototype.get=Oi;H.prototype.has=Ci;H.prototype.set=Ei;et.exports=H});var tt=n((Zc,rt)=>{var ki=j(),ji=$(),Li=ie(),Ki=200;function Ii(e,r){var t=this.__data__;if(t instanceof ki){var o=t.__data__;if(!ji||o.length<Ki-1)return o.push([e,r]),this.size=++t.size,this;t=this.__data__=new Li(o)}return t.set(e,r),this.size=t.size,this}rt.exports=Ii});var nt=n((Qc,ot)=>{var Mi=j(),Di=We(),Ri=Xe(),Bi=Ze(),Gi=Ve(),Ni=tt();function S(e){var r=this.__data__=new Mi(e);this.size=r.size}S.prototype.clear=Di;S.prototype.delete=Ri;S.prototype.get=Bi;S.prototype.has=Gi;S.prototype.set=Ni;ot.exports=S});var it=n((Vc,at)=>{var Fi="__lodash_hash_undefined__";function Ui(e){return this.__data__.set(e,Fi),this}at.exports=Ui});var ut=n((ef,st)=>{function zi(e){return this.__data__.has(e)}st.exports=zi});var ct=n((rf,pt)=>{var $i=ie(),Wi=it(),Ji=ut();function W(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new $i;++r<t;)this.add(e[r])}W.prototype.add=W.prototype.push=Wi;W.prototype.has=Ji;pt.exports=W});var yt=n((tf,ft)=>{function Xi(e,r){for(var t=-1,o=e==null?0:e.length;++t<o;)if(r(e[t],t,e))return!0;return!1}ft.exports=Xi});var dt=n((of,lt)=>{function Yi(e,r){return e.has(r)}lt.exports=Yi});var se=n((nf,vt)=>{var Zi=ct(),Qi=yt(),Vi=dt(),es=1,rs=2;function ts(e,r,t,o,i,a){var f=t&es,y=e.length,c=r.length;if(y!=c&&!(f&&c>y))return!1;var s=a.get(e),h=a.get(r);if(s&&h)return s==r&&h==e;var d=-1,p=!0,v=t&rs?new Zi:void 0;for(a.set(e,r),a.set(r,e);++d<y;){var g=e[d],u=r[d];if(o)var x=f?o(u,g,d,r,e,a):o(g,u,d,e,r,a);if(x!==void 0){if(x)continue;p=!1;break}if(v){if(!Qi(r,function(b,q){if(!Vi(v,q)&&(g===b||i(g,b,t,o,a)))return v.push(q)})){p=!1;break}}else if(!(g===u||i(g,u,t,o,a))){p=!1;break}}return a.delete(e),a.delete(r),p}vt.exports=ts});var ht=n((af,gt)=>{var os=m(),ns=os.Uint8Array;gt.exports=ns});var xt=n((sf,bt)=>{function as(e){var r=-1,t=Array(e.size);return e.forEach(function(o,i){t[++r]=[i,o]}),t}bt.exports=as});var _t=n((uf,mt)=>{function is(e){var r=-1,t=Array(e.size);return e.forEach(function(o){t[++r]=o}),t}mt.exports=is});var Pt=n((pf,wt)=>{var qt=z(),At=ht(),ss=ee(),us=se(),ps=xt(),cs=_t(),fs=1,ys=2,ls="[object Boolean]",ds="[object Date]",vs="[object Error]",gs="[object Map]",hs="[object Number]",bs="[object RegExp]",xs="[object Set]",ms="[object String]",_s="[object Symbol]",qs="[object ArrayBuffer]",As="[object DataView]",Tt=qt?qt.prototype:void 0,ue=Tt?Tt.valueOf:void 0;function Ts(e,r,t,o,i,a,f){switch(t){case As:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case qs:return!(e.byteLength!=r.byteLength||!a(new At(e),new At(r)));case ls:case ds:case hs:return ss(+e,+r);case vs:return e.name==r.name&&e.message==r.message;case bs:case ms:return e==r+"";case gs:var y=ps;case xs:var c=o&fs;if(y||(y=cs),e.size!=r.size&&!c)return!1;var s=f.get(e);if(s)return s==r;o|=ys,f.set(e,r);var h=us(y(e),y(r),o,i,a,f);return f.delete(e),h;case _s:if(ue)return ue.call(e)==ue.call(r)}return!1}wt.exports=Ts});var St=n((cf,Ht)=>{function ws(e,r){for(var t=-1,o=r.length,i=e.length;++t<o;)e[i+t]=r[t];return e}Ht.exports=ws});var J=n((ff,Ot)=>{var Ps=Array.isArray;Ot.exports=Ps});var Et=n((yf,Ct)=>{var Hs=St(),Ss=J();function Os(e,r,t){var o=r(e);return Ss(e)?o:Hs(o,t(e))}Ct.exports=Os});var jt=n((lf,kt)=>{function Cs(e,r){for(var t=-1,o=e==null?0:e.length,i=0,a=[];++t<o;){var f=e[t];r(f,t,e)&&(a[i++]=f)}return a}kt.exports=Cs});var Kt=n((df,Lt)=>{function Es(){return[]}Lt.exports=Es});var Dt=n((vf,Mt)=>{var ks=jt(),js=Kt(),Ls=Object.prototype,Ks=Ls.propertyIsEnumerable,It=Object.getOwnPropertySymbols,Is=It?function(e){return e==null?[]:(e=Object(e),ks(It(e),function(r){return Ks.call(e,r)}))}:js;Mt.exports=Is});var Bt=n((gf,Rt)=>{function Ms(e,r){for(var t=-1,o=Array(e);++t<e;)o[t]=r(t);return o}Rt.exports=Ms});var D=n((hf,Gt)=>{function Ds(e){return e!=null&&typeof e=="object"}Gt.exports=Ds});var Ft=n((bf,Nt)=>{var Rs=K(),Bs=D(),Gs="[object Arguments]";function Ns(e){return Bs(e)&&Rs(e)==Gs}Nt.exports=Ns});var Wt=n((xf,$t)=>{var Ut=Ft(),Fs=D(),zt=Object.prototype,Us=zt.hasOwnProperty,zs=zt.propertyIsEnumerable,$s=Ut(function(){return arguments}())?Ut:function(e){return Fs(e)&&Us.call(e,"callee")&&!zs.call(e,"callee")};$t.exports=$s});var Xt=n((mf,Jt)=>{function Ws(){return!1}Jt.exports=Ws});var pe=n((R,O)=>{var Js=m(),Xs=Xt(),Qt=typeof R=="object"&&R&&!R.nodeType&&R,Yt=Qt&&typeof O=="object"&&O&&!O.nodeType&&O,Ys=Yt&&Yt.exports===Qt,Zt=Ys?Js.Buffer:void 0,Zs=Zt?Zt.isBuffer:void 0,Qs=Zs||Xs;O.exports=Qs});var eo=n((_f,Vt)=>{var Vs=9007199254740991,eu=/^(?:0|[1-9]\d*)$/;function ru(e,r){var t=typeof e;return r=r??Vs,!!r&&(t=="number"||t!="symbol"&&eu.test(e))&&e>-1&&e%1==0&&e<r}Vt.exports=ru});var ce=n((qf,ro)=>{var tu=9007199254740991;function ou(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=tu}ro.exports=ou});var oo=n((Af,to)=>{var nu=K(),au=ce(),iu=D(),su="[object Arguments]",uu="[object Array]",pu="[object Boolean]",cu="[object Date]",fu="[object Error]",yu="[object Function]",lu="[object Map]",du="[object Number]",vu="[object Object]",gu="[object RegExp]",hu="[object Set]",bu="[object String]",xu="[object WeakMap]",mu="[object ArrayBuffer]",_u="[object DataView]",qu="[object Float32Array]",Au="[object Float64Array]",Tu="[object Int8Array]",wu="[object Int16Array]",Pu="[object Int32Array]",Hu="[object Uint8Array]",Su="[object Uint8ClampedArray]",Ou="[object Uint16Array]",Cu="[object Uint32Array]",l={};l[qu]=l[Au]=l[Tu]=l[wu]=l[Pu]=l[Hu]=l[Su]=l[Ou]=l[Cu]=!0;l[su]=l[uu]=l[mu]=l[pu]=l[_u]=l[cu]=l[fu]=l[yu]=l[lu]=l[du]=l[vu]=l[gu]=l[hu]=l[bu]=l[xu]=!1;function Eu(e){return iu(e)&&au(e.length)&&!!l[nu(e)]}to.exports=Eu});var ao=n((Tf,no)=>{function ku(e){return function(r){return e(r)}}no.exports=ku});var so=n((B,C)=>{var ju=re(),io=typeof B=="object"&&B&&!B.nodeType&&B,G=io&&typeof C=="object"&&C&&!C.nodeType&&C,Lu=G&&G.exports===io,fe=Lu&&ju.process,Ku=function(){try{var e=G&&G.require&&G.require("util").types;return e||fe&&fe.binding&&fe.binding("util")}catch{}}();C.exports=Ku});var ye=n((wf,co)=>{var Iu=oo(),Mu=ao(),uo=so(),po=uo&&uo.isTypedArray,Du=po?Mu(po):Iu;co.exports=Du});var yo=n((Pf,fo)=>{var Ru=Bt(),Bu=Wt(),Gu=J(),Nu=pe(),Fu=eo(),Uu=ye(),zu=Object.prototype,$u=zu.hasOwnProperty;function Wu(e,r){var t=Gu(e),o=!t&&Bu(e),i=!t&&!o&&Nu(e),a=!t&&!o&&!i&&Uu(e),f=t||o||i||a,y=f?Ru(e.length,String):[],c=y.length;for(var s in e)(r||$u.call(e,s))&&!(f&&(s=="length"||i&&(s=="offset"||s=="parent")||a&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||Fu(s,c)))&&y.push(s);return y}fo.exports=Wu});var vo=n((Hf,lo)=>{var Ju=Object.prototype;function Xu(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||Ju;return e===t}lo.exports=Xu});var ho=n((Sf,go)=>{function Yu(e,r){return function(t){return e(r(t))}}go.exports=Yu});var xo=n((Of,bo)=>{var Zu=ho(),Qu=Zu(Object.keys,Object);bo.exports=Qu});var _o=n((Cf,mo)=>{var Vu=vo(),ep=xo(),rp=Object.prototype,tp=rp.hasOwnProperty;function op(e){if(!Vu(e))return ep(e);var r=[];for(var t in Object(e))tp.call(e,t)&&t!="constructor"&&r.push(t);return r}mo.exports=op});var Ao=n((Ef,qo)=>{var np=oe(),ap=ce();function ip(e){return e!=null&&ap(e.length)&&!np(e)}qo.exports=ip});var wo=n((kf,To)=>{var sp=yo(),up=_o(),pp=Ao();function cp(e){return pp(e)?sp(e):up(e)}To.exports=cp});var Ho=n((jf,Po)=>{var fp=Et(),yp=Dt(),lp=wo();function dp(e){return fp(e,lp,yp)}Po.exports=dp});var Co=n((Lf,Oo)=>{var So=Ho(),vp=1,gp=Object.prototype,hp=gp.hasOwnProperty;function bp(e,r,t,o,i,a){var f=t&vp,y=So(e),c=y.length,s=So(r),h=s.length;if(c!=h&&!f)return!1;for(var d=c;d--;){var p=y[d];if(!(f?p in r:hp.call(r,p)))return!1}var v=a.get(e),g=a.get(r);if(v&&g)return v==r&&g==e;var u=!0;a.set(e,r),a.set(r,e);for(var x=f;++d<c;){p=y[d];var b=e[p],q=r[p];if(o)var _e=f?o(q,b,p,r,e,a):o(b,q,p,e,r,a);if(!(_e===void 0?b===q||i(b,q,t,o,a):_e)){u=!1;break}x||(x=p=="constructor")}if(u&&!x){var N=e.constructor,F=r.constructor;N!=F&&"constructor"in e&&"constructor"in r&&!(typeof N=="function"&&N instanceof N&&typeof F=="function"&&F instanceof F)&&(u=!1)}return a.delete(e),a.delete(r),u}Oo.exports=bp});var ko=n((Kf,Eo)=>{var xp=A(),mp=m(),_p=xp(mp,"DataView");Eo.exports=_p});var Lo=n((If,jo)=>{var qp=A(),Ap=m(),Tp=qp(Ap,"Promise");jo.exports=Tp});var Io=n((Mf,Ko)=>{var wp=A(),Pp=m(),Hp=wp(Pp,"Set");Ko.exports=Hp});var Do=n((Df,Mo)=>{var Sp=A(),Op=m(),Cp=Sp(Op,"WeakMap");Mo.exports=Cp});var $o=n((Rf,zo)=>{var le=ko(),de=$(),ve=Lo(),ge=Io(),he=Do(),Uo=K(),E=ae(),Ro="[object Map]",Ep="[object Object]",Bo="[object Promise]",Go="[object Set]",No="[object WeakMap]",Fo="[object DataView]",kp=E(le),jp=E(de),Lp=E(ve),Kp=E(ge),Ip=E(he),T=Uo;(le&&T(new le(new ArrayBuffer(1)))!=Fo||de&&T(new de)!=Ro||ve&&T(ve.resolve())!=Bo||ge&&T(new ge)!=Go||he&&T(new he)!=No)&&(T=function(e){var r=Uo(e),t=r==Ep?e.constructor:void 0,o=t?E(t):"";if(o)switch(o){case kp:return Fo;case jp:return Ro;case Lp:return Bo;case Kp:return Go;case Ip:return No}return r});zo.exports=T});var en=n((Bf,Vo)=>{var be=nt(),Mp=se(),Dp=Pt(),Rp=Co(),Wo=$o(),Jo=J(),Xo=pe(),Bp=ye(),Gp=1,Yo="[object Arguments]",Zo="[object Array]",X="[object Object]",Np=Object.prototype,Qo=Np.hasOwnProperty;function Fp(e,r,t,o,i,a){var f=Jo(e),y=Jo(r),c=f?Zo:Wo(e),s=y?Zo:Wo(r);c=c==Yo?X:c,s=s==Yo?X:s;var h=c==X,d=s==X,p=c==s;if(p&&Xo(e)){if(!Xo(r))return!1;f=!0,h=!1}if(p&&!h)return a||(a=new be),f||Bp(e)?Mp(e,r,t,o,i,a):Dp(e,r,c,t,o,i,a);if(!(t&Gp)){var v=h&&Qo.call(e,"__wrapped__"),g=d&&Qo.call(r,"__wrapped__");if(v||g){var u=v?e.value():e,x=g?r.value():r;return a||(a=new be),i(u,x,t,o,a)}}return p?(a||(a=new be),Rp(e,r,t,o,i,a)):!1}Vo.exports=Fp});var nn=n((Gf,on)=>{var Up=en(),rn=D();function tn(e,r,t,o,i){return e===r?!0:e==null||r==null||!rn(e)&&!rn(r)?e!==e&&r!==r:Up(e,r,t,o,tn,i)}on.exports=tn});var xe=n((Nf,an)=>{var zp=nn();function $p(e,r){return zp(e,r)}an.exports=$p});import{useCallback as Jp,useLayoutEffect as Xp,useRef as un}from"react";var bn=["ctrl","shift","alt","meta","mod"],xn={esc:"escape",return:"enter",left:"arrowleft",up:"arrowup",right:"arrowright",down:"arrowdown"};function U(e,r=","){return typeof e=="string"?e.split(r):e}function _(e,r="+"){let t=e.toLocaleLowerCase().split(r).map(a=>a.trim()).map(a=>xn[a]||a),o={alt:t.includes("alt"),ctrl:t.includes("ctrl"),shift:t.includes("shift"),meta:t.includes("meta"),mod:t.includes("mod")},i=t.filter(a=>!bn.includes(a));return{...o,keys:i}}function Te(e,r,t){(typeof t=="function"&&t(e,r)||t===!0)&&e.preventDefault()}function we(e,r,t){return typeof t=="function"?t(e,r):t===!0||t===void 0}function Pe(e){return Z(e,["input","textarea","select"])}function Z({target:e},r=!1){let t=e&&e.tagName;return r instanceof Array?Boolean(t&&r&&r.some(o=>o.toLowerCase()===t.toLowerCase())):Boolean(t&&r&&r===!0)}function He(e,r){return e.length===0&&r?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):r?e.some(t=>r.includes(t))||e.includes("*"):!0}var Se=(e,r,t)=>{let{alt:o,ctrl:i,meta:a,mod:f,shift:y,keys:c}=r,{altKey:s,ctrlKey:h,metaKey:d,shiftKey:p,key:v,code:g}=e,u=g.toLowerCase().replace("key",""),x=v.toLowerCase();if(s!==o&&x!=="alt"||p!==y&&x!=="shift")return!1;if(f){if(!d&&!h)return!1}else if(d!==a&&u!=="meta"||h!==i&&u!=="ctrl")return!1;return c&&c.length===1&&(c.includes(x)||c.includes(u))?!0:c?c.every(b=>t.has(b)):!c};import{createContext as qn,useMemo as An,useState as Ee,useContext as Tn}from"react";import{createContext as mn,useContext as _n}from"react";var Oe=mn(void 0),Ce=()=>_n(Oe);function Q({addHotkey:e,removeHotkey:r,children:t}){return React.createElement(Oe.Provider,{value:{addHotkey:e,removeHotkey:r}},t)}var ke=qn({hotkeys:[],enabledScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),V=()=>Tn(ke),wn=({initiallyActiveScopes:e=["*"],children:r})=>{let[t,o]=Ee(e?.length>0?e:["*"]),[i,a]=Ee([]),f=An(()=>t.includes("*"),[t]),y=p=>{o(f?[p]:Array.from(new Set([...t,p])))},c=p=>{let v=t.filter(g=>g!==p);v.length===0?o(["*"]):o(v)},s=p=>{t.includes(p)?c(p):y(p)},h=p=>{a([...i,p])},d=p=>{a(i.filter(v=>v.keys!==p.keys))};return React.createElement(ke.Provider,{value:{enabledScopes:t,hotkeys:i,enableScope:y,disableScope:c,toggleScope:s}},React.createElement(Q,{addHotkey:h,removeHotkey:d},r))};var sn=Ae(xe());import{useRef as Wp}from"react";function me(e){let r=Wp(void 0);return(0,sn.default)(r.current,e)||(r.current=e),r.current}var pn=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()};function cn(e,r,t,o){let i=un(null),{current:a}=un(new Set),f=t instanceof Array?o instanceof Array?void 0:o:t,y=t instanceof Array?t:o instanceof Array?o:[],c=Jp(r,[...y]),s=me(f),{enabledScopes:h}=V(),d=Ce();return Xp(()=>{if(s?.enabled===!1||!He(h,s?.scopes))return;let p=u=>{if(!(Pe(u)&&!Z(u,s?.enableOnFormTags))){if(i.current!==null&&document.activeElement!==i.current&&!i.current.contains(document.activeElement)){pn(u);return}u.target?.isContentEditable&&!s?.enableOnContentEditable||U(e,s?.splitKey).forEach(x=>{let b=_(x,s?.combinationKey);if(Se(u,b,a)||b.keys?.includes("*")){if(Te(u,b,s?.preventDefault),!we(u,b,s?.enabled)){pn(u);return}c(u,b)}})}},v=u=>{a.add(u.key.toLowerCase()),(s?.keydown===void 0&&s?.keyup!==!0||s?.keydown)&&p(u)},g=u=>{u.key.toLowerCase()!=="meta"?a.delete(u.key.toLowerCase()):a.clear(),s?.keyup&&p(u)};return(i.current||document).addEventListener("keyup",g),(i.current||document).addEventListener("keydown",v),d&&U(e,s?.splitKey).forEach(u=>d.addHotkey(_(u,s?.combinationKey))),()=>{(i.current||document).removeEventListener("keyup",g),(i.current||document).removeEventListener("keydown",v),d&&U(e,s?.splitKey).forEach(u=>d.removeHotkey(_(u,s?.combinationKey)))}},[e,c,s,h]),i}var fn=Ae(xe()),Y=new Set;function Yp(e,r=","){return(Array.isArray(e)?e:e.split(r)).every(o=>{let i=_(o);for(let a of Y)if((0,fn.default)(i,a))return!0})}function Zp(e){(Array.isArray(e)?e:[e]).forEach(t=>Y.add(_(t)))}function Qp(e){(Array.isArray(e)?e:[e]).forEach(t=>{let o=_(t);for(let i of Y)i.keys?.every(a=>o.keys?.includes(a))&&Y.delete(i)})}window.addEventListener("DOMContentLoaded",()=>{document.addEventListener("keydown",e=>{Zp(e.key)}),document.addEventListener("keyup",e=>{Qp(e.key)})});export{wn as HotkeysProvider,Yp as isHotkeyPressed,cn as useHotkeys,V as useHotkeysContext};
|
|
29
2
|
//# sourceMappingURL=index.js.map
|