@baseline-ui/mcp 0.48.6 → 0.49.0
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/CHANGELOG.md +2 -0
- package/dist/index.cjs +891 -57
- package/dist/index.js +891 -57
- package/package.json +1 -1
- package/sbom.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* This notice may not be removed from this file.
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
|
-
var fg=Object.create;var ds=Object.defineProperty;var yg=Object.getOwnPropertyDescriptor;var vg=Object.getOwnPropertyNames;var xg=Object.getPrototypeOf,Ig=Object.prototype.hasOwnProperty;var Tg=(s,N)=>()=>(N||s((N={exports:{}}).exports,N),N.exports);var wg=(s,N,D,at)=>{if(N&&typeof N=="object"||typeof N=="function")for(let K of vg(N))!Ig.call(s,K)&&K!==D&&ds(s,K,{get:()=>N[K],enumerable:!(at=yg(N,K))||at.enumerable});return s};var Pg=(s,N,D)=>(D=s!=null?fg(xg(s)):{},wg(ds(D,"default",{value:s,enumerable:true}),s));var ps=Tg((Ln,it)=>{(function(){var s,N="4.17.21",D=200,at="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",K="Expected a function",xs="Invalid `variable` option passed into `_.template`",no="__lodash_hash_undefined__",Is=500,rt="__lodash_placeholder__",He=1,Bi=2,mn=4,hn=1,st=2,pe=1,nn=2,Ri=4,Se=8,gn=16,ke=32,bn=64,Le=128,On=256,to=512,Ts=30,ws="...",Ps=800,Cs=16,Li=1,Ss=2,ks=3,tn=1/0,Ue=9007199254740991,As=17976931348623157e292,lt=NaN,Ae=4294967295,Ds=Ae-1,Bs=Ae>>>1,Rs=[["ary",Le],["bind",pe],["bindKey",nn],["curry",Se],["curryRight",gn],["flip",to],["partial",ke],["partialRight",bn],["rearg",On]],fn="[object Arguments]",ct="[object Array]",Ls="[object AsyncFunction]",Wn="[object Boolean]",Fn="[object Date]",Es="[object DOMException]",dt="[object Error]",pt="[object Function]",Ei="[object GeneratorFunction]",xe="[object Map]",Vn="[object Number]",Ms="[object Null]",Ee="[object Object]",Mi="[object Promise]",Os="[object Proxy]",zn="[object RegExp]",Ie="[object Set]",_n="[object String]",ut="[object Symbol]",Ws="[object Undefined]",Nn="[object WeakMap]",Fs="[object WeakSet]",Gn="[object ArrayBuffer]",yn="[object DataView]",oo="[object Float32Array]",io="[object Float64Array]",ao="[object Int8Array]",ro="[object Int16Array]",so="[object Int32Array]",lo="[object Uint8Array]",co="[object Uint8ClampedArray]",po="[object Uint16Array]",uo="[object Uint32Array]",Vs=/\b__p \+= '';/g,zs=/\b(__p \+=) '' \+/g,_s=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Oi=/&(?:amp|lt|gt|quot|#39);/g,Wi=/[&<>"']/g,Ns=RegExp(Oi.source),Gs=RegExp(Wi.source),Hs=/<%-([\s\S]+?)%>/g,Us=/<%([\s\S]+?)%>/g,Fi=/<%=([\s\S]+?)%>/g,js=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ks=/^\w*$/,Ys=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mo=/[\\^$.*+?()[\]{}|]/g,qs=RegExp(mo.source),ho=/^\s+/,$s=/\s/,Zs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Xs=/\{\n\/\* \[wrapped with (.+)\] \*/,Js=/,? & /,Qs=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,el=/[()=,{}\[\]\/\s]/,nl=/\\(\\)?/g,tl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vi=/\w*$/,ol=/^[-+]0x[0-9a-f]+$/i,il=/^0b[01]+$/i,al=/^\[object .+?Constructor\]$/,rl=/^0o[0-7]+$/i,sl=/^(?:0|[1-9]\d*)$/,ll=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mt=/($^)/,cl=/['\n\r\u2028\u2029\\]/g,ht="\\ud800-\\udfff",dl="\\u0300-\\u036f",pl="\\ufe20-\\ufe2f",ul="\\u20d0-\\u20ff",zi=dl+pl+ul,_i="\\u2700-\\u27bf",Ni="a-z\\xdf-\\xf6\\xf8-\\xff",ml="\\xac\\xb1\\xd7\\xf7",hl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",gl="\\u2000-\\u206f",bl=" \\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",Gi="A-Z\\xc0-\\xd6\\xd8-\\xde",Hi="\\ufe0e\\ufe0f",Ui=ml+hl+gl+bl,go="['\u2019]",fl="["+ht+"]",ji="["+Ui+"]",gt="["+zi+"]",Ki="\\d+",yl="["+_i+"]",Yi="["+Ni+"]",qi="[^"+ht+Ui+Ki+_i+Ni+Gi+"]",bo="\\ud83c[\\udffb-\\udfff]",vl="(?:"+gt+"|"+bo+")",$i="[^"+ht+"]",fo="(?:\\ud83c[\\udde6-\\uddff]){2}",yo="[\\ud800-\\udbff][\\udc00-\\udfff]",vn="["+Gi+"]",Zi="\\u200d",Xi="(?:"+Yi+"|"+qi+")",xl="(?:"+vn+"|"+qi+")",Ji="(?:"+go+"(?:d|ll|m|re|s|t|ve))?",Qi="(?:"+go+"(?:D|LL|M|RE|S|T|VE))?",ea=vl+"?",na="["+Hi+"]?",Il="(?:"+Zi+"(?:"+[$i,fo,yo].join("|")+")"+na+ea+")*",Tl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ta=na+ea+Il,Pl="(?:"+[yl,fo,yo].join("|")+")"+ta,Cl="(?:"+[$i+gt+"?",gt,fo,yo,fl].join("|")+")",Sl=RegExp(go,"g"),kl=RegExp(gt,"g"),vo=RegExp(bo+"(?="+bo+")|"+Cl+ta,"g"),Al=RegExp([vn+"?"+Yi+"+"+Ji+"(?="+[ji,vn,"$"].join("|")+")",xl+"+"+Qi+"(?="+[ji,vn+Xi,"$"].join("|")+")",vn+"?"+Xi+"+"+Ji,vn+"+"+Qi,wl,Tl,Ki,Pl].join("|"),"g"),Dl=RegExp("["+Zi+ht+zi+Hi+"]"),Bl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Rl=["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"],Ll=-1,F={};F[oo]=F[io]=F[ao]=F[ro]=F[so]=F[lo]=F[co]=F[po]=F[uo]=true,F[fn]=F[ct]=F[Gn]=F[Wn]=F[yn]=F[Fn]=F[dt]=F[pt]=F[xe]=F[Vn]=F[Ee]=F[zn]=F[Ie]=F[_n]=F[Nn]=false;var W={};W[fn]=W[ct]=W[Gn]=W[yn]=W[Wn]=W[Fn]=W[oo]=W[io]=W[ao]=W[ro]=W[so]=W[xe]=W[Vn]=W[Ee]=W[zn]=W[Ie]=W[_n]=W[ut]=W[lo]=W[co]=W[po]=W[uo]=true,W[dt]=W[pt]=W[Nn]=false;var El={\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"},Ml={"&":"&","<":"<",">":">",'"':""","'":"'"},Ol={"&":"&","<":"<",">":">",""":'"',"'":"'"},Wl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Fl=parseFloat,Vl=parseInt,oa=typeof global=="object"&&global&&global.Object===Object&&global,zl=typeof self=="object"&&self&&self.Object===Object&&self,Y=oa||zl||Function("return this")(),xo=typeof Ln=="object"&&Ln&&!Ln.nodeType&&Ln,on=xo&&typeof it=="object"&&it&&!it.nodeType&&it,ia=on&&on.exports===xo,Io=ia&&oa.process,ue=function(){try{var d=on&&on.require&&on.require("util").types;return d||Io&&Io.binding&&Io.binding("util")}catch{}}(),aa=ue&&ue.isArrayBuffer,ra=ue&&ue.isDate,sa=ue&&ue.isMap,la=ue&&ue.isRegExp,ca=ue&&ue.isSet,da=ue&&ue.isTypedArray;function ae(d,m,u){switch(u.length){case 0:return d.call(m);case 1:return d.call(m,u[0]);case 2:return d.call(m,u[0],u[1]);case 3:return d.call(m,u[0],u[1],u[2])}return d.apply(m,u)}function _l(d,m,u,y){for(var w=-1,L=d==null?0:d.length;++w<L;){var U=d[w];m(y,U,u(U),d);}return y}function me(d,m){for(var u=-1,y=d==null?0:d.length;++u<y&&m(d[u],u,d)!==false;);return d}function Nl(d,m){for(var u=d==null?0:d.length;u--&&m(d[u],u,d)!==false;);return d}function pa(d,m){for(var u=-1,y=d==null?0:d.length;++u<y;)if(!m(d[u],u,d))return false;return true}function je(d,m){for(var u=-1,y=d==null?0:d.length,w=0,L=[];++u<y;){var U=d[u];m(U,u,d)&&(L[w++]=U);}return L}function bt(d,m){var u=d==null?0:d.length;return !!u&&xn(d,m,0)>-1}function To(d,m,u){for(var y=-1,w=d==null?0:d.length;++y<w;)if(u(m,d[y]))return true;return false}function V(d,m){for(var u=-1,y=d==null?0:d.length,w=Array(y);++u<y;)w[u]=m(d[u],u,d);return w}function Ke(d,m){for(var u=-1,y=m.length,w=d.length;++u<y;)d[w+u]=m[u];return d}function wo(d,m,u,y){var w=-1,L=d==null?0:d.length;for(y&&L&&(u=d[++w]);++w<L;)u=m(u,d[w],w,d);return u}function Gl(d,m,u,y){var w=d==null?0:d.length;for(y&&w&&(u=d[--w]);w--;)u=m(u,d[w],w,d);return u}function Po(d,m){for(var u=-1,y=d==null?0:d.length;++u<y;)if(m(d[u],u,d))return true;return false}var Hl=Co("length");function Ul(d){return d.split("")}function jl(d){return d.match(Qs)||[]}function ua(d,m,u){var y;return u(d,function(w,L,U){if(m(w,L,U))return y=L,false}),y}function ft(d,m,u,y){for(var w=d.length,L=u+(y?1:-1);y?L--:++L<w;)if(m(d[L],L,d))return L;return -1}function xn(d,m,u){return m===m?oc(d,m,u):ft(d,ma,u)}function Kl(d,m,u,y){for(var w=u-1,L=d.length;++w<L;)if(y(d[w],m))return w;return -1}function ma(d){return d!==d}function ha(d,m){var u=d==null?0:d.length;return u?ko(d,m)/u:lt}function Co(d){return function(m){return m==null?s:m[d]}}function So(d){return function(m){return d==null?s:d[m]}}function ga(d,m,u,y,w){return w(d,function(L,U,O){u=y?(y=false,L):m(u,L,U,O);}),u}function Yl(d,m){var u=d.length;for(d.sort(m);u--;)d[u]=d[u].value;return d}function ko(d,m){for(var u,y=-1,w=d.length;++y<w;){var L=m(d[y]);L!==s&&(u=u===s?L:u+L);}return u}function Ao(d,m){for(var u=-1,y=Array(d);++u<d;)y[u]=m(u);return y}function ql(d,m){return V(m,function(u){return [u,d[u]]})}function ba(d){return d&&d.slice(0,xa(d)+1).replace(ho,"")}function re(d){return function(m){return d(m)}}function Do(d,m){return V(m,function(u){return d[u]})}function Hn(d,m){return d.has(m)}function fa(d,m){for(var u=-1,y=d.length;++u<y&&xn(m,d[u],0)>-1;);return u}function ya(d,m){for(var u=d.length;u--&&xn(m,d[u],0)>-1;);return u}function $l(d,m){for(var u=d.length,y=0;u--;)d[u]===m&&++y;return y}var Zl=So(El),Xl=So(Ml);function Jl(d){return "\\"+Wl[d]}function Ql(d,m){return d==null?s:d[m]}function In(d){return Dl.test(d)}function ec(d){return Bl.test(d)}function nc(d){for(var m,u=[];!(m=d.next()).done;)u.push(m.value);return u}function Bo(d){var m=-1,u=Array(d.size);return d.forEach(function(y,w){u[++m]=[w,y];}),u}function va(d,m){return function(u){return d(m(u))}}function Ye(d,m){for(var u=-1,y=d.length,w=0,L=[];++u<y;){var U=d[u];(U===m||U===rt)&&(d[u]=rt,L[w++]=u);}return L}function yt(d){var m=-1,u=Array(d.size);return d.forEach(function(y){u[++m]=y;}),u}function tc(d){var m=-1,u=Array(d.size);return d.forEach(function(y){u[++m]=[y,y];}),u}function oc(d,m,u){for(var y=u-1,w=d.length;++y<w;)if(d[y]===m)return y;return -1}function ic(d,m,u){for(var y=u+1;y--;)if(d[y]===m)return y;return y}function Tn(d){return In(d)?rc(d):Hl(d)}function Te(d){return In(d)?sc(d):Ul(d)}function xa(d){for(var m=d.length;m--&&$s.test(d.charAt(m)););return m}var ac=So(Ol);function rc(d){for(var m=vo.lastIndex=0;vo.test(d);)++m;return m}function sc(d){return d.match(vo)||[]}function lc(d){return d.match(Al)||[]}var cc=function d(m){m=m==null?Y:qe.defaults(Y.Object(),m,qe.pick(Y,Rl));var u=m.Array,y=m.Date,w=m.Error,L=m.Function,U=m.Math,O=m.Object,Ro=m.RegExp,dc=m.String,he=m.TypeError,vt=u.prototype,pc=L.prototype,wn=O.prototype,xt=m["__core-js_shared__"],It=pc.toString,M=wn.hasOwnProperty,uc=0,Ia=function(){var e=/[^.]+$/.exec(xt&&xt.keys&&xt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Tt=wn.toString,mc=It.call(O),hc=Y._,gc=Ro("^"+It.call(M).replace(mo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wt=ia?m.Buffer:s,$e=m.Symbol,Pt=m.Uint8Array,Ta=wt?wt.allocUnsafe:s,Ct=va(O.getPrototypeOf,O),wa=O.create,Pa=wn.propertyIsEnumerable,St=vt.splice,Ca=$e?$e.isConcatSpreadable:s,Un=$e?$e.iterator:s,an=$e?$e.toStringTag:s,kt=function(){try{var e=dn(O,"defineProperty");return e({},"",{}),e}catch{}}(),bc=m.clearTimeout!==Y.clearTimeout&&m.clearTimeout,fc=y&&y.now!==Y.Date.now&&y.now,yc=m.setTimeout!==Y.setTimeout&&m.setTimeout,At=U.ceil,Dt=U.floor,Lo=O.getOwnPropertySymbols,vc=wt?wt.isBuffer:s,Sa=m.isFinite,xc=vt.join,Ic=va(O.keys,O),j=U.max,Z=U.min,Tc=y.now,wc=m.parseInt,ka=U.random,Pc=vt.reverse,Eo=dn(m,"DataView"),jn=dn(m,"Map"),Mo=dn(m,"Promise"),Pn=dn(m,"Set"),Kn=dn(m,"WeakMap"),Yn=dn(O,"create"),Bt=Kn&&new Kn,Cn={},Cc=pn(Eo),Sc=pn(jn),kc=pn(Mo),Ac=pn(Pn),Dc=pn(Kn),Rt=$e?$e.prototype:s,qn=Rt?Rt.valueOf:s,Aa=Rt?Rt.toString:s;function a(e){if(_(e)&&!P(e)&&!(e instanceof B)){if(e instanceof ge)return e;if(M.call(e,"__wrapped__"))return Dr(e)}return new ge(e)}var Sn=function(){function e(){}return function(n){if(!z(n))return {};if(wa)return wa(n);e.prototype=n;var t=new e;return e.prototype=s,t}}();function Lt(){}function ge(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=s;}a.templateSettings={escape:Hs,evaluate:Us,interpolate:Fi,variable:"",imports:{_:a}},a.prototype=Lt.prototype,a.prototype.constructor=a,ge.prototype=Sn(Lt.prototype),ge.prototype.constructor=ge;function B(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=false,this.__iteratees__=[],this.__takeCount__=Ae,this.__views__=[];}function Bc(){var e=new B(this.__wrapped__);return e.__actions__=ne(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ne(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ne(this.__views__),e}function Rc(){if(this.__filtered__){var e=new B(this);e.__dir__=-1,e.__filtered__=true;}else e=this.clone(),e.__dir__*=-1;return e}function Lc(){var e=this.__wrapped__.value(),n=this.__dir__,t=P(e),o=n<0,i=t?e.length:0,r=Ud(0,i,this.__views__),l=r.start,c=r.end,p=c-l,h=o?c:l-1,g=this.__iteratees__,b=g.length,f=0,v=Z(p,this.__takeCount__);if(!t||!o&&i==p&&v==p)return Ja(e,this.__actions__);var I=[];e:for(;p--&&f<v;){h+=n;for(var S=-1,T=e[h];++S<b;){var A=g[S],R=A.iteratee,ce=A.type,ee=R(T);if(ce==Ss)T=ee;else if(!ee){if(ce==Li)continue e;break e}}I[f++]=T;}return I}B.prototype=Sn(Lt.prototype),B.prototype.constructor=B;function rn(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var o=e[n];this.set(o[0],o[1]);}}function Ec(){this.__data__=Yn?Yn(null):{},this.size=0;}function Mc(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function Oc(e){var n=this.__data__;if(Yn){var t=n[e];return t===no?s:t}return M.call(n,e)?n[e]:s}function Wc(e){var n=this.__data__;return Yn?n[e]!==s:M.call(n,e)}function Fc(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=Yn&&n===s?no:n,this}rn.prototype.clear=Ec,rn.prototype.delete=Mc,rn.prototype.get=Oc,rn.prototype.has=Wc,rn.prototype.set=Fc;function Me(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var o=e[n];this.set(o[0],o[1]);}}function Vc(){this.__data__=[],this.size=0;}function zc(e){var n=this.__data__,t=Et(n,e);if(t<0)return false;var o=n.length-1;return t==o?n.pop():St.call(n,t,1),--this.size,true}function _c(e){var n=this.__data__,t=Et(n,e);return t<0?s:n[t][1]}function Nc(e){return Et(this.__data__,e)>-1}function Gc(e,n){var t=this.__data__,o=Et(t,e);return o<0?(++this.size,t.push([e,n])):t[o][1]=n,this}Me.prototype.clear=Vc,Me.prototype.delete=zc,Me.prototype.get=_c,Me.prototype.has=Nc,Me.prototype.set=Gc;function Oe(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var o=e[n];this.set(o[0],o[1]);}}function Hc(){this.size=0,this.__data__={hash:new rn,map:new(jn||Me),string:new rn};}function Uc(e){var n=jt(this,e).delete(e);return this.size-=n?1:0,n}function jc(e){return jt(this,e).get(e)}function Kc(e){return jt(this,e).has(e)}function Yc(e,n){var t=jt(this,e),o=t.size;return t.set(e,n),this.size+=t.size==o?0:1,this}Oe.prototype.clear=Hc,Oe.prototype.delete=Uc,Oe.prototype.get=jc,Oe.prototype.has=Kc,Oe.prototype.set=Yc;function sn(e){var n=-1,t=e==null?0:e.length;for(this.__data__=new Oe;++n<t;)this.add(e[n]);}function qc(e){return this.__data__.set(e,no),this}function $c(e){return this.__data__.has(e)}sn.prototype.add=sn.prototype.push=qc,sn.prototype.has=$c;function we(e){var n=this.__data__=new Me(e);this.size=n.size;}function Zc(){this.__data__=new Me,this.size=0;}function Xc(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t}function Jc(e){return this.__data__.get(e)}function Qc(e){return this.__data__.has(e)}function ed(e,n){var t=this.__data__;if(t instanceof Me){var o=t.__data__;if(!jn||o.length<D-1)return o.push([e,n]),this.size=++t.size,this;t=this.__data__=new Oe(o);}return t.set(e,n),this.size=t.size,this}we.prototype.clear=Zc,we.prototype.delete=Xc,we.prototype.get=Jc,we.prototype.has=Qc,we.prototype.set=ed;function Da(e,n){var t=P(e),o=!t&&un(e),i=!t&&!o&&en(e),r=!t&&!o&&!i&&Bn(e),l=t||o||i||r,c=l?Ao(e.length,dc):[],p=c.length;for(var h in e)(n||M.call(e,h))&&!(l&&(h=="length"||i&&(h=="offset"||h=="parent")||r&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||ze(h,p)))&&c.push(h);return c}function Ba(e){var n=e.length;return n?e[jo(0,n-1)]:s}function nd(e,n){return Kt(ne(e),ln(n,0,e.length))}function td(e){return Kt(ne(e))}function Oo(e,n,t){(t!==s&&!Pe(e[n],t)||t===s&&!(n in e))&&We(e,n,t);}function $n(e,n,t){var o=e[n];(!(M.call(e,n)&&Pe(o,t))||t===s&&!(n in e))&&We(e,n,t);}function Et(e,n){for(var t=e.length;t--;)if(Pe(e[t][0],n))return t;return -1}function od(e,n,t,o){return Ze(e,function(i,r,l){n(o,i,t(i),l);}),o}function Ra(e,n){return e&&Be(n,q(n),e)}function id(e,n){return e&&Be(n,oe(n),e)}function We(e,n,t){n=="__proto__"&&kt?kt(e,n,{configurable:true,enumerable:true,value:t,writable:true}):e[n]=t;}function Wo(e,n){for(var t=-1,o=n.length,i=u(o),r=e==null;++t<o;)i[t]=r?s:bi(e,n[t]);return i}function ln(e,n,t){return e===e&&(t!==s&&(e=e<=t?e:t),n!==s&&(e=e>=n?e:n)),e}function be(e,n,t,o,i,r){var l,c=n&He,p=n&Bi,h=n&mn;if(t&&(l=i?t(e,o,i,r):t(e)),l!==s)return l;if(!z(e))return e;var g=P(e);if(g){if(l=Kd(e),!c)return ne(e,l)}else {var b=X(e),f=b==pt||b==Ei;if(en(e))return nr(e,c);if(b==Ee||b==fn||f&&!i){if(l=p||f?{}:xr(e),!c)return p?Od(e,id(l,e)):Md(e,Ra(l,e))}else {if(!W[b])return i?e:{};l=Yd(e,b,c);}}r||(r=new we);var v=r.get(e);if(v)return v;r.set(e,l),$r(e)?e.forEach(function(T){l.add(be(T,n,t,T,e,r));}):Yr(e)&&e.forEach(function(T,A){l.set(A,be(T,n,t,A,e,r));});var I=h?p?ti:ni:p?oe:q,S=g?s:I(e);return me(S||e,function(T,A){S&&(A=T,T=e[A]),$n(l,A,be(T,n,t,A,e,r));}),l}function ad(e){var n=q(e);return function(t){return La(t,e,n)}}function La(e,n,t){var o=t.length;if(e==null)return !o;for(e=O(e);o--;){var i=t[o],r=n[i],l=e[i];if(l===s&&!(i in e)||!r(l))return false}return true}function Ea(e,n,t){if(typeof e!="function")throw new he(K);return tt(function(){e.apply(s,t);},n)}function Zn(e,n,t,o){var i=-1,r=bt,l=true,c=e.length,p=[],h=n.length;if(!c)return p;t&&(n=V(n,re(t))),o?(r=To,l=false):n.length>=D&&(r=Hn,l=false,n=new sn(n));e:for(;++i<c;){var g=e[i],b=t==null?g:t(g);if(g=o||g!==0?g:0,l&&b===b){for(var f=h;f--;)if(n[f]===b)continue e;p.push(g);}else r(n,b,o)||p.push(g);}return p}var Ze=rr(De),Ma=rr(Vo,true);function rd(e,n){var t=true;return Ze(e,function(o,i,r){return t=!!n(o,i,r),t}),t}function Mt(e,n,t){for(var o=-1,i=e.length;++o<i;){var r=e[o],l=n(r);if(l!=null&&(c===s?l===l&&!le(l):t(l,c)))var c=l,p=r;}return p}function sd(e,n,t,o){var i=e.length;for(t=C(t),t<0&&(t=-t>i?0:i+t),o=o===s||o>i?i:C(o),o<0&&(o+=i),o=t>o?0:Xr(o);t<o;)e[t++]=n;return e}function Oa(e,n){var t=[];return Ze(e,function(o,i,r){n(o,i,r)&&t.push(o);}),t}function $(e,n,t,o,i){var r=-1,l=e.length;for(t||(t=$d),i||(i=[]);++r<l;){var c=e[r];n>0&&t(c)?n>1?$(c,n-1,t,o,i):Ke(i,c):o||(i[i.length]=c);}return i}var Fo=sr(),Wa=sr(true);function De(e,n){return e&&Fo(e,n,q)}function Vo(e,n){return e&&Wa(e,n,q)}function Ot(e,n){return je(n,function(t){return _e(e[t])})}function cn(e,n){n=Je(n,e);for(var t=0,o=n.length;e!=null&&t<o;)e=e[Re(n[t++])];return t&&t==o?e:s}function Fa(e,n,t){var o=n(e);return P(e)?o:Ke(o,t(e))}function J(e){return e==null?e===s?Ws:Ms:an&&an in O(e)?Hd(e):tp(e)}function zo(e,n){return e>n}function ld(e,n){return e!=null&&M.call(e,n)}function cd(e,n){return e!=null&&n in O(e)}function dd(e,n,t){return e>=Z(n,t)&&e<j(n,t)}function _o(e,n,t){for(var o=t?To:bt,i=e[0].length,r=e.length,l=r,c=u(r),p=1/0,h=[];l--;){var g=e[l];l&&n&&(g=V(g,re(n))),p=Z(g.length,p),c[l]=!t&&(n||i>=120&&g.length>=120)?new sn(l&&g):s;}g=e[0];var b=-1,f=c[0];e:for(;++b<i&&h.length<p;){var v=g[b],I=n?n(v):v;if(v=t||v!==0?v:0,!(f?Hn(f,I):o(h,I,t))){for(l=r;--l;){var S=c[l];if(!(S?Hn(S,I):o(e[l],I,t)))continue e}f&&f.push(I),h.push(v);}}return h}function pd(e,n,t,o){return De(e,function(i,r,l){n(o,t(i),r,l);}),o}function Xn(e,n,t){n=Je(n,e),e=Pr(e,n);var o=e==null?e:e[Re(ye(n))];return o==null?s:ae(o,e,t)}function Va(e){return _(e)&&J(e)==fn}function ud(e){return _(e)&&J(e)==Gn}function md(e){return _(e)&&J(e)==Fn}function Jn(e,n,t,o,i){return e===n?true:e==null||n==null||!_(e)&&!_(n)?e!==e&&n!==n:hd(e,n,t,o,Jn,i)}function hd(e,n,t,o,i,r){var l=P(e),c=P(n),p=l?ct:X(e),h=c?ct:X(n);p=p==fn?Ee:p,h=h==fn?Ee:h;var g=p==Ee,b=h==Ee,f=p==h;if(f&&en(e)){if(!en(n))return false;l=true,g=false;}if(f&&!g)return r||(r=new we),l||Bn(e)?fr(e,n,t,o,i,r):Nd(e,n,p,t,o,i,r);if(!(t&hn)){var v=g&&M.call(e,"__wrapped__"),I=b&&M.call(n,"__wrapped__");if(v||I){var S=v?e.value():e,T=I?n.value():n;return r||(r=new we),i(S,T,t,o,r)}}return f?(r||(r=new we),Gd(e,n,t,o,i,r)):false}function gd(e){return _(e)&&X(e)==xe}function No(e,n,t,o){var i=t.length,r=i,l=!o;if(e==null)return !r;for(e=O(e);i--;){var c=t[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return false}for(;++i<r;){c=t[i];var p=c[0],h=e[p],g=c[1];if(l&&c[2]){if(h===s&&!(p in e))return false}else {var b=new we;if(o)var f=o(h,g,p,e,n,b);if(!(f===s?Jn(g,h,hn|st,o,b):f))return false}}return true}function za(e){if(!z(e)||Xd(e))return false;var n=_e(e)?gc:al;return n.test(pn(e))}function bd(e){return _(e)&&J(e)==zn}function fd(e){return _(e)&&X(e)==Ie}function yd(e){return _(e)&&Jt(e.length)&&!!F[J(e)]}function _a(e){return typeof e=="function"?e:e==null?ie:typeof e=="object"?P(e)?Ha(e[0],e[1]):Ga(e):ls(e)}function Go(e){if(!nt(e))return Ic(e);var n=[];for(var t in O(e))M.call(e,t)&&t!="constructor"&&n.push(t);return n}function vd(e){if(!z(e))return np(e);var n=nt(e),t=[];for(var o in e)o=="constructor"&&(n||!M.call(e,o))||t.push(o);return t}function Ho(e,n){return e<n}function Na(e,n){var t=-1,o=te(e)?u(e.length):[];return Ze(e,function(i,r,l){o[++t]=n(i,r,l);}),o}function Ga(e){var n=ii(e);return n.length==1&&n[0][2]?Tr(n[0][0],n[0][1]):function(t){return t===e||No(t,e,n)}}function Ha(e,n){return ri(e)&&Ir(n)?Tr(Re(e),n):function(t){var o=bi(t,e);return o===s&&o===n?fi(t,e):Jn(n,o,hn|st)}}function Wt(e,n,t,o,i){e!==n&&Fo(n,function(r,l){if(i||(i=new we),z(r))xd(e,n,l,t,Wt,o,i);else {var c=o?o(li(e,l),r,l+"",e,n,i):s;c===s&&(c=r),Oo(e,l,c);}},oe);}function xd(e,n,t,o,i,r,l){var c=li(e,t),p=li(n,t),h=l.get(p);if(h){Oo(e,t,h);return}var g=r?r(c,p,t+"",e,n,l):s,b=g===s;if(b){var f=P(p),v=!f&&en(p),I=!f&&!v&&Bn(p);g=p,f||v||I?P(c)?g=c:G(c)?g=ne(c):v?(b=false,g=nr(p,true)):I?(b=false,g=tr(p,true)):g=[]:ot(p)||un(p)?(g=c,un(c)?g=Jr(c):(!z(c)||_e(c))&&(g=xr(p))):b=false;}b&&(l.set(p,g),i(g,p,o,r,l),l.delete(p)),Oo(e,t,g);}function Ua(e,n){var t=e.length;if(t)return n+=n<0?t:0,ze(n,t)?e[n]:s}function ja(e,n,t){n.length?n=V(n,function(r){return P(r)?function(l){return cn(l,r.length===1?r[0]:r)}:r}):n=[ie];var o=-1;n=V(n,re(x()));var i=Na(e,function(r,l,c){var p=V(n,function(h){return h(r)});return {criteria:p,index:++o,value:r}});return Yl(i,function(r,l){return Ed(r,l,t)})}function Id(e,n){return Ka(e,n,function(t,o){return fi(e,o)})}function Ka(e,n,t){for(var o=-1,i=n.length,r={};++o<i;){var l=n[o],c=cn(e,l);t(c,l)&&Qn(r,Je(l,e),c);}return r}function Td(e){return function(n){return cn(n,e)}}function Uo(e,n,t,o){var i=o?Kl:xn,r=-1,l=n.length,c=e;for(e===n&&(n=ne(n)),t&&(c=V(e,re(t)));++r<l;)for(var p=0,h=n[r],g=t?t(h):h;(p=i(c,g,p,o))>-1;)c!==e&&St.call(c,p,1),St.call(e,p,1);return e}function Ya(e,n){for(var t=e?n.length:0,o=t-1;t--;){var i=n[t];if(t==o||i!==r){var r=i;ze(i)?St.call(e,i,1):qo(e,i);}}return e}function jo(e,n){return e+Dt(ka()*(n-e+1))}function wd(e,n,t,o){for(var i=-1,r=j(At((n-e)/(t||1)),0),l=u(r);r--;)l[o?r:++i]=e,e+=t;return l}function Ko(e,n){var t="";if(!e||n<1||n>Ue)return t;do n%2&&(t+=e),n=Dt(n/2),n&&(e+=e);while(n);return t}function k(e,n){return ci(wr(e,n,ie),e+"")}function Pd(e){return Ba(Rn(e))}function Cd(e,n){var t=Rn(e);return Kt(t,ln(n,0,t.length))}function Qn(e,n,t,o){if(!z(e))return e;n=Je(n,e);for(var i=-1,r=n.length,l=r-1,c=e;c!=null&&++i<r;){var p=Re(n[i]),h=t;if(p==="__proto__"||p==="constructor"||p==="prototype")return e;if(i!=l){var g=c[p];h=o?o(g,p,c):s,h===s&&(h=z(g)?g:ze(n[i+1])?[]:{});}$n(c,p,h),c=c[p];}return e}var qa=Bt?function(e,n){return Bt.set(e,n),e}:ie,Sd=kt?function(e,n){return kt(e,"toString",{configurable:true,enumerable:false,value:vi(n),writable:true})}:ie;function kd(e){return Kt(Rn(e))}function fe(e,n,t){var o=-1,i=e.length;n<0&&(n=-n>i?0:i+n),t=t>i?i:t,t<0&&(t+=i),i=n>t?0:t-n>>>0,n>>>=0;for(var r=u(i);++o<i;)r[o]=e[o+n];return r}function Ad(e,n){var t;return Ze(e,function(o,i,r){return t=n(o,i,r),!t}),!!t}function Ft(e,n,t){var o=0,i=e==null?o:e.length;if(typeof n=="number"&&n===n&&i<=Bs){for(;o<i;){var r=o+i>>>1,l=e[r];l!==null&&!le(l)&&(t?l<=n:l<n)?o=r+1:i=r;}return i}return Yo(e,n,ie,t)}function Yo(e,n,t,o){var i=0,r=e==null?0:e.length;if(r===0)return 0;n=t(n);for(var l=n!==n,c=n===null,p=le(n),h=n===s;i<r;){var g=Dt((i+r)/2),b=t(e[g]),f=b!==s,v=b===null,I=b===b,S=le(b);if(l)var T=o||I;else h?T=I&&(o||f):c?T=I&&f&&(o||!v):p?T=I&&f&&!v&&(o||!S):v||S?T=false:T=o?b<=n:b<n;T?i=g+1:r=g;}return Z(r,Ds)}function $a(e,n){for(var t=-1,o=e.length,i=0,r=[];++t<o;){var l=e[t],c=n?n(l):l;if(!t||!Pe(c,p)){var p=c;r[i++]=l===0?0:l;}}return r}function Za(e){return typeof e=="number"?e:le(e)?lt:+e}function se(e){if(typeof e=="string")return e;if(P(e))return V(e,se)+"";if(le(e))return Aa?Aa.call(e):"";var n=e+"";return n=="0"&&1/e==-tn?"-0":n}function Xe(e,n,t){var o=-1,i=bt,r=e.length,l=true,c=[],p=c;if(t)l=false,i=To;else if(r>=D){var h=n?null:zd(e);if(h)return yt(h);l=false,i=Hn,p=new sn;}else p=n?[]:c;e:for(;++o<r;){var g=e[o],b=n?n(g):g;if(g=t||g!==0?g:0,l&&b===b){for(var f=p.length;f--;)if(p[f]===b)continue e;n&&p.push(b),c.push(g);}else i(p,b,t)||(p!==c&&p.push(b),c.push(g));}return c}function qo(e,n){return n=Je(n,e),e=Pr(e,n),e==null||delete e[Re(ye(n))]}function Xa(e,n,t,o){return Qn(e,n,t(cn(e,n)),o)}function Vt(e,n,t,o){for(var i=e.length,r=o?i:-1;(o?r--:++r<i)&&n(e[r],r,e););return t?fe(e,o?0:r,o?r+1:i):fe(e,o?r+1:0,o?i:r)}function Ja(e,n){var t=e;return t instanceof B&&(t=t.value()),wo(n,function(o,i){return i.func.apply(i.thisArg,Ke([o],i.args))},t)}function $o(e,n,t){var o=e.length;if(o<2)return o?Xe(e[0]):[];for(var i=-1,r=u(o);++i<o;)for(var l=e[i],c=-1;++c<o;)c!=i&&(r[i]=Zn(r[i]||l,e[c],n,t));return Xe($(r,1),n,t)}function Qa(e,n,t){for(var o=-1,i=e.length,r=n.length,l={};++o<i;){var c=o<r?n[o]:s;t(l,e[o],c);}return l}function Zo(e){return G(e)?e:[]}function Xo(e){return typeof e=="function"?e:ie}function Je(e,n){return P(e)?e:ri(e,n)?[e]:Ar(E(e))}var Dd=k;function Qe(e,n,t){var o=e.length;return t=t===s?o:t,!n&&t>=o?e:fe(e,n,t)}var er=bc||function(e){return Y.clearTimeout(e)};function nr(e,n){if(n)return e.slice();var t=e.length,o=Ta?Ta(t):new e.constructor(t);return e.copy(o),o}function Jo(e){var n=new e.constructor(e.byteLength);return new Pt(n).set(new Pt(e)),n}function Bd(e,n){var t=n?Jo(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}function Rd(e){var n=new e.constructor(e.source,Vi.exec(e));return n.lastIndex=e.lastIndex,n}function Ld(e){return qn?O(qn.call(e)):{}}function tr(e,n){var t=n?Jo(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}function or(e,n){if(e!==n){var t=e!==s,o=e===null,i=e===e,r=le(e),l=n!==s,c=n===null,p=n===n,h=le(n);if(!c&&!h&&!r&&e>n||r&&l&&p&&!c&&!h||o&&l&&p||!t&&p||!i)return 1;if(!o&&!r&&!h&&e<n||h&&t&&i&&!o&&!r||c&&t&&i||!l&&i||!p)return -1}return 0}function Ed(e,n,t){for(var o=-1,i=e.criteria,r=n.criteria,l=i.length,c=t.length;++o<l;){var p=or(i[o],r[o]);if(p){if(o>=c)return p;var h=t[o];return p*(h=="desc"?-1:1)}}return e.index-n.index}function ir(e,n,t,o){for(var i=-1,r=e.length,l=t.length,c=-1,p=n.length,h=j(r-l,0),g=u(p+h),b=!o;++c<p;)g[c]=n[c];for(;++i<l;)(b||i<r)&&(g[t[i]]=e[i]);for(;h--;)g[c++]=e[i++];return g}function ar(e,n,t,o){for(var i=-1,r=e.length,l=-1,c=t.length,p=-1,h=n.length,g=j(r-c,0),b=u(g+h),f=!o;++i<g;)b[i]=e[i];for(var v=i;++p<h;)b[v+p]=n[p];for(;++l<c;)(f||i<r)&&(b[v+t[l]]=e[i++]);return b}function ne(e,n){var t=-1,o=e.length;for(n||(n=u(o));++t<o;)n[t]=e[t];return n}function Be(e,n,t,o){var i=!t;t||(t={});for(var r=-1,l=n.length;++r<l;){var c=n[r],p=o?o(t[c],e[c],c,t,e):s;p===s&&(p=e[c]),i?We(t,c,p):$n(t,c,p);}return t}function Md(e,n){return Be(e,ai(e),n)}function Od(e,n){return Be(e,yr(e),n)}function zt(e,n){return function(t,o){var i=P(t)?_l:od,r=n?n():{};return i(t,e,x(o,2),r)}}function kn(e){return k(function(n,t){var o=-1,i=t.length,r=i>1?t[i-1]:s,l=i>2?t[2]:s;for(r=e.length>3&&typeof r=="function"?(i--,r):s,l&&Q(t[0],t[1],l)&&(r=i<3?s:r,i=1),n=O(n);++o<i;){var c=t[o];c&&e(n,c,o,r);}return n})}function rr(e,n){return function(t,o){if(t==null)return t;if(!te(t))return e(t,o);for(var i=t.length,r=n?i:-1,l=O(t);(n?r--:++r<i)&&o(l[r],r,l)!==false;);return t}}function sr(e){return function(n,t,o){for(var i=-1,r=O(n),l=o(n),c=l.length;c--;){var p=l[e?c:++i];if(t(r[p],p,r)===false)break}return n}}function Wd(e,n,t){var o=n&pe,i=et(e);function r(){var l=this&&this!==Y&&this instanceof r?i:e;return l.apply(o?t:this,arguments)}return r}function lr(e){return function(n){n=E(n);var t=In(n)?Te(n):s,o=t?t[0]:n.charAt(0),i=t?Qe(t,1).join(""):n.slice(1);return o[e]()+i}}function An(e){return function(n){return wo(rs(as(n).replace(Sl,"")),e,"")}}function et(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 t=Sn(e.prototype),o=e.apply(t,n);return z(o)?o:t}}function Fd(e,n,t){var o=et(e);function i(){for(var r=arguments.length,l=u(r),c=r,p=Dn(i);c--;)l[c]=arguments[c];var h=r<3&&l[0]!==p&&l[r-1]!==p?[]:Ye(l,p);if(r-=h.length,r<t)return mr(e,n,_t,i.placeholder,s,l,h,s,s,t-r);var g=this&&this!==Y&&this instanceof i?o:e;return ae(g,this,l)}return i}function cr(e){return function(n,t,o){var i=O(n);if(!te(n)){var r=x(t,3);n=q(n),t=function(c){return r(i[c],c,i)};}var l=e(n,t,o);return l>-1?i[r?n[l]:l]:s}}function dr(e){return Ve(function(n){var t=n.length,o=t,i=ge.prototype.thru;for(e&&n.reverse();o--;){var r=n[o];if(typeof r!="function")throw new he(K);if(i&&!l&&Ut(r)=="wrapper")var l=new ge([],true);}for(o=l?o:t;++o<t;){r=n[o];var c=Ut(r),p=c=="wrapper"?oi(r):s;p&&si(p[0])&&p[1]==(Le|Se|ke|On)&&!p[4].length&&p[9]==1?l=l[Ut(p[0])].apply(l,p[3]):l=r.length==1&&si(r)?l[c]():l.thru(r);}return function(){var h=arguments,g=h[0];if(l&&h.length==1&&P(g))return l.plant(g).value();for(var b=0,f=t?n[b].apply(this,h):g;++b<t;)f=n[b].call(this,f);return f}})}function _t(e,n,t,o,i,r,l,c,p,h){var g=n&Le,b=n&pe,f=n&nn,v=n&(Se|gn),I=n&to,S=f?s:et(e);function T(){for(var A=arguments.length,R=u(A),ce=A;ce--;)R[ce]=arguments[ce];if(v)var ee=Dn(T),de=$l(R,ee);if(o&&(R=ir(R,o,i,v)),r&&(R=ar(R,r,l,v)),A-=de,v&&A<h){var H=Ye(R,ee);return mr(e,n,_t,T.placeholder,t,R,H,c,p,h-A)}var Ce=b?t:this,Ge=f?Ce[e]:e;return A=R.length,c?R=op(R,c):I&&A>1&&R.reverse(),g&&p<A&&(R.length=p),this&&this!==Y&&this instanceof T&&(Ge=S||et(Ge)),Ge.apply(Ce,R)}return T}function pr(e,n){return function(t,o){return pd(t,e,n(o),{})}}function Nt(e,n){return function(t,o){var i;if(t===s&&o===s)return n;if(t!==s&&(i=t),o!==s){if(i===s)return o;typeof t=="string"||typeof o=="string"?(t=se(t),o=se(o)):(t=Za(t),o=Za(o)),i=e(t,o);}return i}}function Qo(e){return Ve(function(n){return n=V(n,re(x())),k(function(t){var o=this;return e(n,function(i){return ae(i,o,t)})})})}function Gt(e,n){n=n===s?" ":se(n);var t=n.length;if(t<2)return t?Ko(n,e):n;var o=Ko(n,At(e/Tn(n)));return In(n)?Qe(Te(o),0,e).join(""):o.slice(0,e)}function Vd(e,n,t,o){var i=n&pe,r=et(e);function l(){for(var c=-1,p=arguments.length,h=-1,g=o.length,b=u(g+p),f=this&&this!==Y&&this instanceof l?r:e;++h<g;)b[h]=o[h];for(;p--;)b[h++]=arguments[++c];return ae(f,i?t:this,b)}return l}function ur(e){return function(n,t,o){return o&&typeof o!="number"&&Q(n,t,o)&&(t=o=s),n=Ne(n),t===s?(t=n,n=0):t=Ne(t),o=o===s?n<t?1:-1:Ne(o),wd(n,t,o,e)}}function Ht(e){return function(n,t){return typeof n=="string"&&typeof t=="string"||(n=ve(n),t=ve(t)),e(n,t)}}function mr(e,n,t,o,i,r,l,c,p,h){var g=n&Se,b=g?l:s,f=g?s:l,v=g?r:s,I=g?s:r;n|=g?ke:bn,n&=~(g?bn:ke),n&Ri||(n&=-4);var S=[e,n,i,v,b,I,f,c,p,h],T=t.apply(s,S);return si(e)&&Cr(T,S),T.placeholder=o,Sr(T,e,n)}function ei(e){var n=U[e];return function(t,o){if(t=ve(t),o=o==null?0:Z(C(o),292),o&&Sa(t)){var i=(E(t)+"e").split("e"),r=n(i[0]+"e"+(+i[1]+o));return i=(E(r)+"e").split("e"),+(i[0]+"e"+(+i[1]-o))}return n(t)}}var zd=Pn&&1/yt(new Pn([,-0]))[1]==tn?function(e){return new Pn(e)}:Ti;function hr(e){return function(n){var t=X(n);return t==xe?Bo(n):t==Ie?tc(n):ql(n,e(n))}}function Fe(e,n,t,o,i,r,l,c){var p=n&nn;if(!p&&typeof e!="function")throw new he(K);var h=o?o.length:0;if(h||(n&=-97,o=i=s),l=l===s?l:j(C(l),0),c=c===s?c:C(c),h-=i?i.length:0,n&bn){var g=o,b=i;o=i=s;}var f=p?s:oi(e),v=[e,n,t,o,i,g,b,r,l,c];if(f&&ep(v,f),e=v[0],n=v[1],t=v[2],o=v[3],i=v[4],c=v[9]=v[9]===s?p?0:e.length:j(v[9]-h,0),!c&&n&(Se|gn)&&(n&=-25),!n||n==pe)var I=Wd(e,n,t);else n==Se||n==gn?I=Fd(e,n,c):(n==ke||n==(pe|ke))&&!i.length?I=Vd(e,n,t,o):I=_t.apply(s,v);var S=f?qa:Cr;return Sr(S(I,v),e,n)}function gr(e,n,t,o){return e===s||Pe(e,wn[t])&&!M.call(o,t)?n:e}function br(e,n,t,o,i,r){return z(e)&&z(n)&&(r.set(n,e),Wt(e,n,s,br,r),r.delete(n)),e}function _d(e){return ot(e)?s:e}function fr(e,n,t,o,i,r){var l=t&hn,c=e.length,p=n.length;if(c!=p&&!(l&&p>c))return false;var h=r.get(e),g=r.get(n);if(h&&g)return h==n&&g==e;var b=-1,f=true,v=t&st?new sn:s;for(r.set(e,n),r.set(n,e);++b<c;){var I=e[b],S=n[b];if(o)var T=l?o(S,I,b,n,e,r):o(I,S,b,e,n,r);if(T!==s){if(T)continue;f=false;break}if(v){if(!Po(n,function(A,R){if(!Hn(v,R)&&(I===A||i(I,A,t,o,r)))return v.push(R)})){f=false;break}}else if(!(I===S||i(I,S,t,o,r))){f=false;break}}return r.delete(e),r.delete(n),f}function Nd(e,n,t,o,i,r,l){switch(t){case yn:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return false;e=e.buffer,n=n.buffer;case Gn:return !(e.byteLength!=n.byteLength||!r(new Pt(e),new Pt(n)));case Wn:case Fn:case Vn:return Pe(+e,+n);case dt:return e.name==n.name&&e.message==n.message;case zn:case _n:return e==n+"";case xe:var c=Bo;case Ie:var p=o&hn;if(c||(c=yt),e.size!=n.size&&!p)return false;var h=l.get(e);if(h)return h==n;o|=st,l.set(e,n);var g=fr(c(e),c(n),o,i,r,l);return l.delete(e),g;case ut:if(qn)return qn.call(e)==qn.call(n)}return false}function Gd(e,n,t,o,i,r){var l=t&hn,c=ni(e),p=c.length,h=ni(n),g=h.length;if(p!=g&&!l)return false;for(var b=p;b--;){var f=c[b];if(!(l?f in n:M.call(n,f)))return false}var v=r.get(e),I=r.get(n);if(v&&I)return v==n&&I==e;var S=true;r.set(e,n),r.set(n,e);for(var T=l;++b<p;){f=c[b];var A=e[f],R=n[f];if(o)var ce=l?o(R,A,f,n,e,r):o(A,R,f,e,n,r);if(!(ce===s?A===R||i(A,R,t,o,r):ce)){S=false;break}T||(T=f=="constructor");}if(S&&!T){var ee=e.constructor,de=n.constructor;ee!=de&&"constructor"in e&&"constructor"in n&&!(typeof ee=="function"&&ee instanceof ee&&typeof de=="function"&&de instanceof de)&&(S=false);}return r.delete(e),r.delete(n),S}function Ve(e){return ci(wr(e,s,Lr),e+"")}function ni(e){return Fa(e,q,ai)}function ti(e){return Fa(e,oe,yr)}var oi=Bt?function(e){return Bt.get(e)}:Ti;function Ut(e){for(var n=e.name+"",t=Cn[n],o=M.call(Cn,n)?t.length:0;o--;){var i=t[o],r=i.func;if(r==null||r==e)return i.name}return n}function Dn(e){var n=M.call(a,"placeholder")?a:e;return n.placeholder}function x(){var e=a.iteratee||xi;return e=e===xi?_a:e,arguments.length?e(arguments[0],arguments[1]):e}function jt(e,n){var t=e.__data__;return Zd(n)?t[typeof n=="string"?"string":"hash"]:t.map}function ii(e){for(var n=q(e),t=n.length;t--;){var o=n[t],i=e[o];n[t]=[o,i,Ir(i)];}return n}function dn(e,n){var t=Ql(e,n);return za(t)?t:s}function Hd(e){var n=M.call(e,an),t=e[an];try{e[an]=s;var o=!0;}catch{}var i=Tt.call(e);return o&&(n?e[an]=t:delete e[an]),i}var ai=Lo?function(e){return e==null?[]:(e=O(e),je(Lo(e),function(n){return Pa.call(e,n)}))}:wi,yr=Lo?function(e){for(var n=[];e;)Ke(n,ai(e)),e=Ct(e);return n}:wi,X=J;(Eo&&X(new Eo(new ArrayBuffer(1)))!=yn||jn&&X(new jn)!=xe||Mo&&X(Mo.resolve())!=Mi||Pn&&X(new Pn)!=Ie||Kn&&X(new Kn)!=Nn)&&(X=function(e){var n=J(e),t=n==Ee?e.constructor:s,o=t?pn(t):"";if(o)switch(o){case Cc:return yn;case Sc:return xe;case kc:return Mi;case Ac:return Ie;case Dc:return Nn}return n});function Ud(e,n,t){for(var o=-1,i=t.length;++o<i;){var r=t[o],l=r.size;switch(r.type){case "drop":e+=l;break;case "dropRight":n-=l;break;case "take":n=Z(n,e+l);break;case "takeRight":e=j(e,n-l);break}}return {start:e,end:n}}function jd(e){var n=e.match(Xs);return n?n[1].split(Js):[]}function vr(e,n,t){n=Je(n,e);for(var o=-1,i=n.length,r=false;++o<i;){var l=Re(n[o]);if(!(r=e!=null&&t(e,l)))break;e=e[l];}return r||++o!=i?r:(i=e==null?0:e.length,!!i&&Jt(i)&&ze(l,i)&&(P(e)||un(e)))}function Kd(e){var n=e.length,t=new e.constructor(n);return n&&typeof e[0]=="string"&&M.call(e,"index")&&(t.index=e.index,t.input=e.input),t}function xr(e){return typeof e.constructor=="function"&&!nt(e)?Sn(Ct(e)):{}}function Yd(e,n,t){var o=e.constructor;switch(n){case Gn:return Jo(e);case Wn:case Fn:return new o(+e);case yn:return Bd(e,t);case oo:case io:case ao:case ro:case so:case lo:case co:case po:case uo:return tr(e,t);case xe:return new o;case Vn:case _n:return new o(e);case zn:return Rd(e);case Ie:return new o;case ut:return Ld(e)}}function qd(e,n){var t=n.length;if(!t)return e;var o=t-1;return n[o]=(t>1?"& ":"")+n[o],n=n.join(t>2?", ":" "),e.replace(Zs,`{
|
|
11
|
+
var fg=Object.create;var ds=Object.defineProperty;var yg=Object.getOwnPropertyDescriptor;var vg=Object.getOwnPropertyNames;var xg=Object.getPrototypeOf,Ig=Object.prototype.hasOwnProperty;var Tg=(s,N)=>()=>(N||s((N={exports:{}}).exports,N),N.exports);var Pg=(s,N,D,at)=>{if(N&&typeof N=="object"||typeof N=="function")for(let Y of vg(N))!Ig.call(s,Y)&&Y!==D&&ds(s,Y,{get:()=>N[Y],enumerable:!(at=yg(N,Y))||at.enumerable});return s};var wg=(s,N,D)=>(D=s!=null?fg(xg(s)):{},Pg(ds(D,"default",{value:s,enumerable:true}),s));var ps=Tg((En,it)=>{(function(){var s,N="4.17.21",D=200,at="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",Y="Expected a function",xs="Invalid `variable` option passed into `_.template`",no="__lodash_hash_undefined__",Is=500,rt="__lodash_placeholder__",Ge=1,Bi=2,mn=4,hn=1,st=2,pe=1,nn=2,Ri=4,Se=8,gn=16,ke=32,bn=64,Ee=128,On=256,to=512,Ts=30,Ps="...",ws=800,Cs=16,Ei=1,Ss=2,ks=3,tn=1/0,Ue=9007199254740991,As=17976931348623157e292,lt=NaN,Ae=4294967295,Ds=Ae-1,Bs=Ae>>>1,Rs=[["ary",Ee],["bind",pe],["bindKey",nn],["curry",Se],["curryRight",gn],["flip",to],["partial",ke],["partialRight",bn],["rearg",On]],fn="[object Arguments]",ct="[object Array]",Es="[object AsyncFunction]",Wn="[object Boolean]",Fn="[object Date]",Ls="[object DOMException]",dt="[object Error]",pt="[object Function]",Li="[object GeneratorFunction]",xe="[object Map]",Vn="[object Number]",Ms="[object Null]",Le="[object Object]",Mi="[object Promise]",Os="[object Proxy]",zn="[object RegExp]",Ie="[object Set]",_n="[object String]",ut="[object Symbol]",Ws="[object Undefined]",Nn="[object WeakMap]",Fs="[object WeakSet]",Hn="[object ArrayBuffer]",yn="[object DataView]",oo="[object Float32Array]",io="[object Float64Array]",ao="[object Int8Array]",ro="[object Int16Array]",so="[object Int32Array]",lo="[object Uint8Array]",co="[object Uint8ClampedArray]",po="[object Uint16Array]",uo="[object Uint32Array]",Vs=/\b__p \+= '';/g,zs=/\b(__p \+=) '' \+/g,_s=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Oi=/&(?:amp|lt|gt|quot|#39);/g,Wi=/[&<>"']/g,Ns=RegExp(Oi.source),Hs=RegExp(Wi.source),Gs=/<%-([\s\S]+?)%>/g,Us=/<%([\s\S]+?)%>/g,Fi=/<%=([\s\S]+?)%>/g,js=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ys=/^\w*$/,Ks=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mo=/[\\^$.*+?()[\]{}|]/g,qs=RegExp(mo.source),ho=/^\s+/,$s=/\s/,Zs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Xs=/\{\n\/\* \[wrapped with (.+)\] \*/,Js=/,? & /,Qs=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,el=/[()=,{}\[\]\/\s]/,nl=/\\(\\)?/g,tl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vi=/\w*$/,ol=/^[-+]0x[0-9a-f]+$/i,il=/^0b[01]+$/i,al=/^\[object .+?Constructor\]$/,rl=/^0o[0-7]+$/i,sl=/^(?:0|[1-9]\d*)$/,ll=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mt=/($^)/,cl=/['\n\r\u2028\u2029\\]/g,ht="\\ud800-\\udfff",dl="\\u0300-\\u036f",pl="\\ufe20-\\ufe2f",ul="\\u20d0-\\u20ff",zi=dl+pl+ul,_i="\\u2700-\\u27bf",Ni="a-z\\xdf-\\xf6\\xf8-\\xff",ml="\\xac\\xb1\\xd7\\xf7",hl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",gl="\\u2000-\\u206f",bl=" \\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",Hi="A-Z\\xc0-\\xd6\\xd8-\\xde",Gi="\\ufe0e\\ufe0f",Ui=ml+hl+gl+bl,go="['\u2019]",fl="["+ht+"]",ji="["+Ui+"]",gt="["+zi+"]",Yi="\\d+",yl="["+_i+"]",Ki="["+Ni+"]",qi="[^"+ht+Ui+Yi+_i+Ni+Hi+"]",bo="\\ud83c[\\udffb-\\udfff]",vl="(?:"+gt+"|"+bo+")",$i="[^"+ht+"]",fo="(?:\\ud83c[\\udde6-\\uddff]){2}",yo="[\\ud800-\\udbff][\\udc00-\\udfff]",vn="["+Hi+"]",Zi="\\u200d",Xi="(?:"+Ki+"|"+qi+")",xl="(?:"+vn+"|"+qi+")",Ji="(?:"+go+"(?:d|ll|m|re|s|t|ve))?",Qi="(?:"+go+"(?:D|LL|M|RE|S|T|VE))?",ea=vl+"?",na="["+Gi+"]?",Il="(?:"+Zi+"(?:"+[$i,fo,yo].join("|")+")"+na+ea+")*",Tl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ta=na+ea+Il,wl="(?:"+[yl,fo,yo].join("|")+")"+ta,Cl="(?:"+[$i+gt+"?",gt,fo,yo,fl].join("|")+")",Sl=RegExp(go,"g"),kl=RegExp(gt,"g"),vo=RegExp(bo+"(?="+bo+")|"+Cl+ta,"g"),Al=RegExp([vn+"?"+Ki+"+"+Ji+"(?="+[ji,vn,"$"].join("|")+")",xl+"+"+Qi+"(?="+[ji,vn+Xi,"$"].join("|")+")",vn+"?"+Xi+"+"+Ji,vn+"+"+Qi,Pl,Tl,Yi,wl].join("|"),"g"),Dl=RegExp("["+Zi+ht+zi+Gi+"]"),Bl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Rl=["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"],El=-1,F={};F[oo]=F[io]=F[ao]=F[ro]=F[so]=F[lo]=F[co]=F[po]=F[uo]=true,F[fn]=F[ct]=F[Hn]=F[Wn]=F[yn]=F[Fn]=F[dt]=F[pt]=F[xe]=F[Vn]=F[Le]=F[zn]=F[Ie]=F[_n]=F[Nn]=false;var W={};W[fn]=W[ct]=W[Hn]=W[yn]=W[Wn]=W[Fn]=W[oo]=W[io]=W[ao]=W[ro]=W[so]=W[xe]=W[Vn]=W[Le]=W[zn]=W[Ie]=W[_n]=W[ut]=W[lo]=W[co]=W[po]=W[uo]=true,W[dt]=W[pt]=W[Nn]=false;var Ll={\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"},Ml={"&":"&","<":"<",">":">",'"':""","'":"'"},Ol={"&":"&","<":"<",">":">",""":'"',"'":"'"},Wl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Fl=parseFloat,Vl=parseInt,oa=typeof global=="object"&&global&&global.Object===Object&&global,zl=typeof self=="object"&&self&&self.Object===Object&&self,K=oa||zl||Function("return this")(),xo=typeof En=="object"&&En&&!En.nodeType&&En,on=xo&&typeof it=="object"&&it&&!it.nodeType&&it,ia=on&&on.exports===xo,Io=ia&&oa.process,ue=function(){try{var d=on&&on.require&&on.require("util").types;return d||Io&&Io.binding&&Io.binding("util")}catch{}}(),aa=ue&&ue.isArrayBuffer,ra=ue&&ue.isDate,sa=ue&&ue.isMap,la=ue&&ue.isRegExp,ca=ue&&ue.isSet,da=ue&&ue.isTypedArray;function ae(d,m,u){switch(u.length){case 0:return d.call(m);case 1:return d.call(m,u[0]);case 2:return d.call(m,u[0],u[1]);case 3:return d.call(m,u[0],u[1],u[2])}return d.apply(m,u)}function _l(d,m,u,y){for(var P=-1,E=d==null?0:d.length;++P<E;){var U=d[P];m(y,U,u(U),d);}return y}function me(d,m){for(var u=-1,y=d==null?0:d.length;++u<y&&m(d[u],u,d)!==false;);return d}function Nl(d,m){for(var u=d==null?0:d.length;u--&&m(d[u],u,d)!==false;);return d}function pa(d,m){for(var u=-1,y=d==null?0:d.length;++u<y;)if(!m(d[u],u,d))return false;return true}function je(d,m){for(var u=-1,y=d==null?0:d.length,P=0,E=[];++u<y;){var U=d[u];m(U,u,d)&&(E[P++]=U);}return E}function bt(d,m){var u=d==null?0:d.length;return !!u&&xn(d,m,0)>-1}function To(d,m,u){for(var y=-1,P=d==null?0:d.length;++y<P;)if(u(m,d[y]))return true;return false}function V(d,m){for(var u=-1,y=d==null?0:d.length,P=Array(y);++u<y;)P[u]=m(d[u],u,d);return P}function Ye(d,m){for(var u=-1,y=m.length,P=d.length;++u<y;)d[P+u]=m[u];return d}function Po(d,m,u,y){var P=-1,E=d==null?0:d.length;for(y&&E&&(u=d[++P]);++P<E;)u=m(u,d[P],P,d);return u}function Hl(d,m,u,y){var P=d==null?0:d.length;for(y&&P&&(u=d[--P]);P--;)u=m(u,d[P],P,d);return u}function wo(d,m){for(var u=-1,y=d==null?0:d.length;++u<y;)if(m(d[u],u,d))return true;return false}var Gl=Co("length");function Ul(d){return d.split("")}function jl(d){return d.match(Qs)||[]}function ua(d,m,u){var y;return u(d,function(P,E,U){if(m(P,E,U))return y=E,false}),y}function ft(d,m,u,y){for(var P=d.length,E=u+(y?1:-1);y?E--:++E<P;)if(m(d[E],E,d))return E;return -1}function xn(d,m,u){return m===m?oc(d,m,u):ft(d,ma,u)}function Yl(d,m,u,y){for(var P=u-1,E=d.length;++P<E;)if(y(d[P],m))return P;return -1}function ma(d){return d!==d}function ha(d,m){var u=d==null?0:d.length;return u?ko(d,m)/u:lt}function Co(d){return function(m){return m==null?s:m[d]}}function So(d){return function(m){return d==null?s:d[m]}}function ga(d,m,u,y,P){return P(d,function(E,U,O){u=y?(y=false,E):m(u,E,U,O);}),u}function Kl(d,m){var u=d.length;for(d.sort(m);u--;)d[u]=d[u].value;return d}function ko(d,m){for(var u,y=-1,P=d.length;++y<P;){var E=m(d[y]);E!==s&&(u=u===s?E:u+E);}return u}function Ao(d,m){for(var u=-1,y=Array(d);++u<d;)y[u]=m(u);return y}function ql(d,m){return V(m,function(u){return [u,d[u]]})}function ba(d){return d&&d.slice(0,xa(d)+1).replace(ho,"")}function re(d){return function(m){return d(m)}}function Do(d,m){return V(m,function(u){return d[u]})}function Gn(d,m){return d.has(m)}function fa(d,m){for(var u=-1,y=d.length;++u<y&&xn(m,d[u],0)>-1;);return u}function ya(d,m){for(var u=d.length;u--&&xn(m,d[u],0)>-1;);return u}function $l(d,m){for(var u=d.length,y=0;u--;)d[u]===m&&++y;return y}var Zl=So(Ll),Xl=So(Ml);function Jl(d){return "\\"+Wl[d]}function Ql(d,m){return d==null?s:d[m]}function In(d){return Dl.test(d)}function ec(d){return Bl.test(d)}function nc(d){for(var m,u=[];!(m=d.next()).done;)u.push(m.value);return u}function Bo(d){var m=-1,u=Array(d.size);return d.forEach(function(y,P){u[++m]=[P,y];}),u}function va(d,m){return function(u){return d(m(u))}}function Ke(d,m){for(var u=-1,y=d.length,P=0,E=[];++u<y;){var U=d[u];(U===m||U===rt)&&(d[u]=rt,E[P++]=u);}return E}function yt(d){var m=-1,u=Array(d.size);return d.forEach(function(y){u[++m]=y;}),u}function tc(d){var m=-1,u=Array(d.size);return d.forEach(function(y){u[++m]=[y,y];}),u}function oc(d,m,u){for(var y=u-1,P=d.length;++y<P;)if(d[y]===m)return y;return -1}function ic(d,m,u){for(var y=u+1;y--;)if(d[y]===m)return y;return y}function Tn(d){return In(d)?rc(d):Gl(d)}function Te(d){return In(d)?sc(d):Ul(d)}function xa(d){for(var m=d.length;m--&&$s.test(d.charAt(m)););return m}var ac=So(Ol);function rc(d){for(var m=vo.lastIndex=0;vo.test(d);)++m;return m}function sc(d){return d.match(vo)||[]}function lc(d){return d.match(Al)||[]}var cc=function d(m){m=m==null?K:qe.defaults(K.Object(),m,qe.pick(K,Rl));var u=m.Array,y=m.Date,P=m.Error,E=m.Function,U=m.Math,O=m.Object,Ro=m.RegExp,dc=m.String,he=m.TypeError,vt=u.prototype,pc=E.prototype,Pn=O.prototype,xt=m["__core-js_shared__"],It=pc.toString,M=Pn.hasOwnProperty,uc=0,Ia=function(){var e=/[^.]+$/.exec(xt&&xt.keys&&xt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Tt=Pn.toString,mc=It.call(O),hc=K._,gc=Ro("^"+It.call(M).replace(mo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pt=ia?m.Buffer:s,$e=m.Symbol,wt=m.Uint8Array,Ta=Pt?Pt.allocUnsafe:s,Ct=va(O.getPrototypeOf,O),Pa=O.create,wa=Pn.propertyIsEnumerable,St=vt.splice,Ca=$e?$e.isConcatSpreadable:s,Un=$e?$e.iterator:s,an=$e?$e.toStringTag:s,kt=function(){try{var e=dn(O,"defineProperty");return e({},"",{}),e}catch{}}(),bc=m.clearTimeout!==K.clearTimeout&&m.clearTimeout,fc=y&&y.now!==K.Date.now&&y.now,yc=m.setTimeout!==K.setTimeout&&m.setTimeout,At=U.ceil,Dt=U.floor,Eo=O.getOwnPropertySymbols,vc=Pt?Pt.isBuffer:s,Sa=m.isFinite,xc=vt.join,Ic=va(O.keys,O),j=U.max,Z=U.min,Tc=y.now,Pc=m.parseInt,ka=U.random,wc=vt.reverse,Lo=dn(m,"DataView"),jn=dn(m,"Map"),Mo=dn(m,"Promise"),wn=dn(m,"Set"),Yn=dn(m,"WeakMap"),Kn=dn(O,"create"),Bt=Yn&&new Yn,Cn={},Cc=pn(Lo),Sc=pn(jn),kc=pn(Mo),Ac=pn(wn),Dc=pn(Yn),Rt=$e?$e.prototype:s,qn=Rt?Rt.valueOf:s,Aa=Rt?Rt.toString:s;function a(e){if(_(e)&&!w(e)&&!(e instanceof B)){if(e instanceof ge)return e;if(M.call(e,"__wrapped__"))return Dr(e)}return new ge(e)}var Sn=function(){function e(){}return function(n){if(!z(n))return {};if(Pa)return Pa(n);e.prototype=n;var t=new e;return e.prototype=s,t}}();function Et(){}function ge(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=s;}a.templateSettings={escape:Gs,evaluate:Us,interpolate:Fi,variable:"",imports:{_:a}},a.prototype=Et.prototype,a.prototype.constructor=a,ge.prototype=Sn(Et.prototype),ge.prototype.constructor=ge;function B(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=false,this.__iteratees__=[],this.__takeCount__=Ae,this.__views__=[];}function Bc(){var e=new B(this.__wrapped__);return e.__actions__=ne(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ne(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ne(this.__views__),e}function Rc(){if(this.__filtered__){var e=new B(this);e.__dir__=-1,e.__filtered__=true;}else e=this.clone(),e.__dir__*=-1;return e}function Ec(){var e=this.__wrapped__.value(),n=this.__dir__,t=w(e),o=n<0,i=t?e.length:0,r=Ud(0,i,this.__views__),l=r.start,c=r.end,p=c-l,h=o?c:l-1,g=this.__iteratees__,b=g.length,f=0,v=Z(p,this.__takeCount__);if(!t||!o&&i==p&&v==p)return Ja(e,this.__actions__);var I=[];e:for(;p--&&f<v;){h+=n;for(var S=-1,T=e[h];++S<b;){var A=g[S],R=A.iteratee,ce=A.type,ee=R(T);if(ce==Ss)T=ee;else if(!ee){if(ce==Ei)continue e;break e}}I[f++]=T;}return I}B.prototype=Sn(Et.prototype),B.prototype.constructor=B;function rn(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var o=e[n];this.set(o[0],o[1]);}}function Lc(){this.__data__=Kn?Kn(null):{},this.size=0;}function Mc(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function Oc(e){var n=this.__data__;if(Kn){var t=n[e];return t===no?s:t}return M.call(n,e)?n[e]:s}function Wc(e){var n=this.__data__;return Kn?n[e]!==s:M.call(n,e)}function Fc(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=Kn&&n===s?no:n,this}rn.prototype.clear=Lc,rn.prototype.delete=Mc,rn.prototype.get=Oc,rn.prototype.has=Wc,rn.prototype.set=Fc;function Me(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var o=e[n];this.set(o[0],o[1]);}}function Vc(){this.__data__=[],this.size=0;}function zc(e){var n=this.__data__,t=Lt(n,e);if(t<0)return false;var o=n.length-1;return t==o?n.pop():St.call(n,t,1),--this.size,true}function _c(e){var n=this.__data__,t=Lt(n,e);return t<0?s:n[t][1]}function Nc(e){return Lt(this.__data__,e)>-1}function Hc(e,n){var t=this.__data__,o=Lt(t,e);return o<0?(++this.size,t.push([e,n])):t[o][1]=n,this}Me.prototype.clear=Vc,Me.prototype.delete=zc,Me.prototype.get=_c,Me.prototype.has=Nc,Me.prototype.set=Hc;function Oe(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var o=e[n];this.set(o[0],o[1]);}}function Gc(){this.size=0,this.__data__={hash:new rn,map:new(jn||Me),string:new rn};}function Uc(e){var n=jt(this,e).delete(e);return this.size-=n?1:0,n}function jc(e){return jt(this,e).get(e)}function Yc(e){return jt(this,e).has(e)}function Kc(e,n){var t=jt(this,e),o=t.size;return t.set(e,n),this.size+=t.size==o?0:1,this}Oe.prototype.clear=Gc,Oe.prototype.delete=Uc,Oe.prototype.get=jc,Oe.prototype.has=Yc,Oe.prototype.set=Kc;function sn(e){var n=-1,t=e==null?0:e.length;for(this.__data__=new Oe;++n<t;)this.add(e[n]);}function qc(e){return this.__data__.set(e,no),this}function $c(e){return this.__data__.has(e)}sn.prototype.add=sn.prototype.push=qc,sn.prototype.has=$c;function Pe(e){var n=this.__data__=new Me(e);this.size=n.size;}function Zc(){this.__data__=new Me,this.size=0;}function Xc(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t}function Jc(e){return this.__data__.get(e)}function Qc(e){return this.__data__.has(e)}function ed(e,n){var t=this.__data__;if(t instanceof Me){var o=t.__data__;if(!jn||o.length<D-1)return o.push([e,n]),this.size=++t.size,this;t=this.__data__=new Oe(o);}return t.set(e,n),this.size=t.size,this}Pe.prototype.clear=Zc,Pe.prototype.delete=Xc,Pe.prototype.get=Jc,Pe.prototype.has=Qc,Pe.prototype.set=ed;function Da(e,n){var t=w(e),o=!t&&un(e),i=!t&&!o&&en(e),r=!t&&!o&&!i&&Bn(e),l=t||o||i||r,c=l?Ao(e.length,dc):[],p=c.length;for(var h in e)(n||M.call(e,h))&&!(l&&(h=="length"||i&&(h=="offset"||h=="parent")||r&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||ze(h,p)))&&c.push(h);return c}function Ba(e){var n=e.length;return n?e[jo(0,n-1)]:s}function nd(e,n){return Yt(ne(e),ln(n,0,e.length))}function td(e){return Yt(ne(e))}function Oo(e,n,t){(t!==s&&!we(e[n],t)||t===s&&!(n in e))&&We(e,n,t);}function $n(e,n,t){var o=e[n];(!(M.call(e,n)&&we(o,t))||t===s&&!(n in e))&&We(e,n,t);}function Lt(e,n){for(var t=e.length;t--;)if(we(e[t][0],n))return t;return -1}function od(e,n,t,o){return Ze(e,function(i,r,l){n(o,i,t(i),l);}),o}function Ra(e,n){return e&&Be(n,q(n),e)}function id(e,n){return e&&Be(n,oe(n),e)}function We(e,n,t){n=="__proto__"&&kt?kt(e,n,{configurable:true,enumerable:true,value:t,writable:true}):e[n]=t;}function Wo(e,n){for(var t=-1,o=n.length,i=u(o),r=e==null;++t<o;)i[t]=r?s:bi(e,n[t]);return i}function ln(e,n,t){return e===e&&(t!==s&&(e=e<=t?e:t),n!==s&&(e=e>=n?e:n)),e}function be(e,n,t,o,i,r){var l,c=n&Ge,p=n&Bi,h=n&mn;if(t&&(l=i?t(e,o,i,r):t(e)),l!==s)return l;if(!z(e))return e;var g=w(e);if(g){if(l=Yd(e),!c)return ne(e,l)}else {var b=X(e),f=b==pt||b==Li;if(en(e))return nr(e,c);if(b==Le||b==fn||f&&!i){if(l=p||f?{}:xr(e),!c)return p?Od(e,id(l,e)):Md(e,Ra(l,e))}else {if(!W[b])return i?e:{};l=Kd(e,b,c);}}r||(r=new Pe);var v=r.get(e);if(v)return v;r.set(e,l),$r(e)?e.forEach(function(T){l.add(be(T,n,t,T,e,r));}):Kr(e)&&e.forEach(function(T,A){l.set(A,be(T,n,t,A,e,r));});var I=h?p?ti:ni:p?oe:q,S=g?s:I(e);return me(S||e,function(T,A){S&&(A=T,T=e[A]),$n(l,A,be(T,n,t,A,e,r));}),l}function ad(e){var n=q(e);return function(t){return Ea(t,e,n)}}function Ea(e,n,t){var o=t.length;if(e==null)return !o;for(e=O(e);o--;){var i=t[o],r=n[i],l=e[i];if(l===s&&!(i in e)||!r(l))return false}return true}function La(e,n,t){if(typeof e!="function")throw new he(Y);return tt(function(){e.apply(s,t);},n)}function Zn(e,n,t,o){var i=-1,r=bt,l=true,c=e.length,p=[],h=n.length;if(!c)return p;t&&(n=V(n,re(t))),o?(r=To,l=false):n.length>=D&&(r=Gn,l=false,n=new sn(n));e:for(;++i<c;){var g=e[i],b=t==null?g:t(g);if(g=o||g!==0?g:0,l&&b===b){for(var f=h;f--;)if(n[f]===b)continue e;p.push(g);}else r(n,b,o)||p.push(g);}return p}var Ze=rr(De),Ma=rr(Vo,true);function rd(e,n){var t=true;return Ze(e,function(o,i,r){return t=!!n(o,i,r),t}),t}function Mt(e,n,t){for(var o=-1,i=e.length;++o<i;){var r=e[o],l=n(r);if(l!=null&&(c===s?l===l&&!le(l):t(l,c)))var c=l,p=r;}return p}function sd(e,n,t,o){var i=e.length;for(t=C(t),t<0&&(t=-t>i?0:i+t),o=o===s||o>i?i:C(o),o<0&&(o+=i),o=t>o?0:Xr(o);t<o;)e[t++]=n;return e}function Oa(e,n){var t=[];return Ze(e,function(o,i,r){n(o,i,r)&&t.push(o);}),t}function $(e,n,t,o,i){var r=-1,l=e.length;for(t||(t=$d),i||(i=[]);++r<l;){var c=e[r];n>0&&t(c)?n>1?$(c,n-1,t,o,i):Ye(i,c):o||(i[i.length]=c);}return i}var Fo=sr(),Wa=sr(true);function De(e,n){return e&&Fo(e,n,q)}function Vo(e,n){return e&&Wa(e,n,q)}function Ot(e,n){return je(n,function(t){return _e(e[t])})}function cn(e,n){n=Je(n,e);for(var t=0,o=n.length;e!=null&&t<o;)e=e[Re(n[t++])];return t&&t==o?e:s}function Fa(e,n,t){var o=n(e);return w(e)?o:Ye(o,t(e))}function J(e){return e==null?e===s?Ws:Ms:an&&an in O(e)?Gd(e):tp(e)}function zo(e,n){return e>n}function ld(e,n){return e!=null&&M.call(e,n)}function cd(e,n){return e!=null&&n in O(e)}function dd(e,n,t){return e>=Z(n,t)&&e<j(n,t)}function _o(e,n,t){for(var o=t?To:bt,i=e[0].length,r=e.length,l=r,c=u(r),p=1/0,h=[];l--;){var g=e[l];l&&n&&(g=V(g,re(n))),p=Z(g.length,p),c[l]=!t&&(n||i>=120&&g.length>=120)?new sn(l&&g):s;}g=e[0];var b=-1,f=c[0];e:for(;++b<i&&h.length<p;){var v=g[b],I=n?n(v):v;if(v=t||v!==0?v:0,!(f?Gn(f,I):o(h,I,t))){for(l=r;--l;){var S=c[l];if(!(S?Gn(S,I):o(e[l],I,t)))continue e}f&&f.push(I),h.push(v);}}return h}function pd(e,n,t,o){return De(e,function(i,r,l){n(o,t(i),r,l);}),o}function Xn(e,n,t){n=Je(n,e),e=wr(e,n);var o=e==null?e:e[Re(ye(n))];return o==null?s:ae(o,e,t)}function Va(e){return _(e)&&J(e)==fn}function ud(e){return _(e)&&J(e)==Hn}function md(e){return _(e)&&J(e)==Fn}function Jn(e,n,t,o,i){return e===n?true:e==null||n==null||!_(e)&&!_(n)?e!==e&&n!==n:hd(e,n,t,o,Jn,i)}function hd(e,n,t,o,i,r){var l=w(e),c=w(n),p=l?ct:X(e),h=c?ct:X(n);p=p==fn?Le:p,h=h==fn?Le:h;var g=p==Le,b=h==Le,f=p==h;if(f&&en(e)){if(!en(n))return false;l=true,g=false;}if(f&&!g)return r||(r=new Pe),l||Bn(e)?fr(e,n,t,o,i,r):Nd(e,n,p,t,o,i,r);if(!(t&hn)){var v=g&&M.call(e,"__wrapped__"),I=b&&M.call(n,"__wrapped__");if(v||I){var S=v?e.value():e,T=I?n.value():n;return r||(r=new Pe),i(S,T,t,o,r)}}return f?(r||(r=new Pe),Hd(e,n,t,o,i,r)):false}function gd(e){return _(e)&&X(e)==xe}function No(e,n,t,o){var i=t.length,r=i,l=!o;if(e==null)return !r;for(e=O(e);i--;){var c=t[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return false}for(;++i<r;){c=t[i];var p=c[0],h=e[p],g=c[1];if(l&&c[2]){if(h===s&&!(p in e))return false}else {var b=new Pe;if(o)var f=o(h,g,p,e,n,b);if(!(f===s?Jn(g,h,hn|st,o,b):f))return false}}return true}function za(e){if(!z(e)||Xd(e))return false;var n=_e(e)?gc:al;return n.test(pn(e))}function bd(e){return _(e)&&J(e)==zn}function fd(e){return _(e)&&X(e)==Ie}function yd(e){return _(e)&&Jt(e.length)&&!!F[J(e)]}function _a(e){return typeof e=="function"?e:e==null?ie:typeof e=="object"?w(e)?Ga(e[0],e[1]):Ha(e):ls(e)}function Ho(e){if(!nt(e))return Ic(e);var n=[];for(var t in O(e))M.call(e,t)&&t!="constructor"&&n.push(t);return n}function vd(e){if(!z(e))return np(e);var n=nt(e),t=[];for(var o in e)o=="constructor"&&(n||!M.call(e,o))||t.push(o);return t}function Go(e,n){return e<n}function Na(e,n){var t=-1,o=te(e)?u(e.length):[];return Ze(e,function(i,r,l){o[++t]=n(i,r,l);}),o}function Ha(e){var n=ii(e);return n.length==1&&n[0][2]?Tr(n[0][0],n[0][1]):function(t){return t===e||No(t,e,n)}}function Ga(e,n){return ri(e)&&Ir(n)?Tr(Re(e),n):function(t){var o=bi(t,e);return o===s&&o===n?fi(t,e):Jn(n,o,hn|st)}}function Wt(e,n,t,o,i){e!==n&&Fo(n,function(r,l){if(i||(i=new Pe),z(r))xd(e,n,l,t,Wt,o,i);else {var c=o?o(li(e,l),r,l+"",e,n,i):s;c===s&&(c=r),Oo(e,l,c);}},oe);}function xd(e,n,t,o,i,r,l){var c=li(e,t),p=li(n,t),h=l.get(p);if(h){Oo(e,t,h);return}var g=r?r(c,p,t+"",e,n,l):s,b=g===s;if(b){var f=w(p),v=!f&&en(p),I=!f&&!v&&Bn(p);g=p,f||v||I?w(c)?g=c:H(c)?g=ne(c):v?(b=false,g=nr(p,true)):I?(b=false,g=tr(p,true)):g=[]:ot(p)||un(p)?(g=c,un(c)?g=Jr(c):(!z(c)||_e(c))&&(g=xr(p))):b=false;}b&&(l.set(p,g),i(g,p,o,r,l),l.delete(p)),Oo(e,t,g);}function Ua(e,n){var t=e.length;if(t)return n+=n<0?t:0,ze(n,t)?e[n]:s}function ja(e,n,t){n.length?n=V(n,function(r){return w(r)?function(l){return cn(l,r.length===1?r[0]:r)}:r}):n=[ie];var o=-1;n=V(n,re(x()));var i=Na(e,function(r,l,c){var p=V(n,function(h){return h(r)});return {criteria:p,index:++o,value:r}});return Kl(i,function(r,l){return Ld(r,l,t)})}function Id(e,n){return Ya(e,n,function(t,o){return fi(e,o)})}function Ya(e,n,t){for(var o=-1,i=n.length,r={};++o<i;){var l=n[o],c=cn(e,l);t(c,l)&&Qn(r,Je(l,e),c);}return r}function Td(e){return function(n){return cn(n,e)}}function Uo(e,n,t,o){var i=o?Yl:xn,r=-1,l=n.length,c=e;for(e===n&&(n=ne(n)),t&&(c=V(e,re(t)));++r<l;)for(var p=0,h=n[r],g=t?t(h):h;(p=i(c,g,p,o))>-1;)c!==e&&St.call(c,p,1),St.call(e,p,1);return e}function Ka(e,n){for(var t=e?n.length:0,o=t-1;t--;){var i=n[t];if(t==o||i!==r){var r=i;ze(i)?St.call(e,i,1):qo(e,i);}}return e}function jo(e,n){return e+Dt(ka()*(n-e+1))}function Pd(e,n,t,o){for(var i=-1,r=j(At((n-e)/(t||1)),0),l=u(r);r--;)l[o?r:++i]=e,e+=t;return l}function Yo(e,n){var t="";if(!e||n<1||n>Ue)return t;do n%2&&(t+=e),n=Dt(n/2),n&&(e+=e);while(n);return t}function k(e,n){return ci(Pr(e,n,ie),e+"")}function wd(e){return Ba(Rn(e))}function Cd(e,n){var t=Rn(e);return Yt(t,ln(n,0,t.length))}function Qn(e,n,t,o){if(!z(e))return e;n=Je(n,e);for(var i=-1,r=n.length,l=r-1,c=e;c!=null&&++i<r;){var p=Re(n[i]),h=t;if(p==="__proto__"||p==="constructor"||p==="prototype")return e;if(i!=l){var g=c[p];h=o?o(g,p,c):s,h===s&&(h=z(g)?g:ze(n[i+1])?[]:{});}$n(c,p,h),c=c[p];}return e}var qa=Bt?function(e,n){return Bt.set(e,n),e}:ie,Sd=kt?function(e,n){return kt(e,"toString",{configurable:true,enumerable:false,value:vi(n),writable:true})}:ie;function kd(e){return Yt(Rn(e))}function fe(e,n,t){var o=-1,i=e.length;n<0&&(n=-n>i?0:i+n),t=t>i?i:t,t<0&&(t+=i),i=n>t?0:t-n>>>0,n>>>=0;for(var r=u(i);++o<i;)r[o]=e[o+n];return r}function Ad(e,n){var t;return Ze(e,function(o,i,r){return t=n(o,i,r),!t}),!!t}function Ft(e,n,t){var o=0,i=e==null?o:e.length;if(typeof n=="number"&&n===n&&i<=Bs){for(;o<i;){var r=o+i>>>1,l=e[r];l!==null&&!le(l)&&(t?l<=n:l<n)?o=r+1:i=r;}return i}return Ko(e,n,ie,t)}function Ko(e,n,t,o){var i=0,r=e==null?0:e.length;if(r===0)return 0;n=t(n);for(var l=n!==n,c=n===null,p=le(n),h=n===s;i<r;){var g=Dt((i+r)/2),b=t(e[g]),f=b!==s,v=b===null,I=b===b,S=le(b);if(l)var T=o||I;else h?T=I&&(o||f):c?T=I&&f&&(o||!v):p?T=I&&f&&!v&&(o||!S):v||S?T=false:T=o?b<=n:b<n;T?i=g+1:r=g;}return Z(r,Ds)}function $a(e,n){for(var t=-1,o=e.length,i=0,r=[];++t<o;){var l=e[t],c=n?n(l):l;if(!t||!we(c,p)){var p=c;r[i++]=l===0?0:l;}}return r}function Za(e){return typeof e=="number"?e:le(e)?lt:+e}function se(e){if(typeof e=="string")return e;if(w(e))return V(e,se)+"";if(le(e))return Aa?Aa.call(e):"";var n=e+"";return n=="0"&&1/e==-tn?"-0":n}function Xe(e,n,t){var o=-1,i=bt,r=e.length,l=true,c=[],p=c;if(t)l=false,i=To;else if(r>=D){var h=n?null:zd(e);if(h)return yt(h);l=false,i=Gn,p=new sn;}else p=n?[]:c;e:for(;++o<r;){var g=e[o],b=n?n(g):g;if(g=t||g!==0?g:0,l&&b===b){for(var f=p.length;f--;)if(p[f]===b)continue e;n&&p.push(b),c.push(g);}else i(p,b,t)||(p!==c&&p.push(b),c.push(g));}return c}function qo(e,n){return n=Je(n,e),e=wr(e,n),e==null||delete e[Re(ye(n))]}function Xa(e,n,t,o){return Qn(e,n,t(cn(e,n)),o)}function Vt(e,n,t,o){for(var i=e.length,r=o?i:-1;(o?r--:++r<i)&&n(e[r],r,e););return t?fe(e,o?0:r,o?r+1:i):fe(e,o?r+1:0,o?i:r)}function Ja(e,n){var t=e;return t instanceof B&&(t=t.value()),Po(n,function(o,i){return i.func.apply(i.thisArg,Ye([o],i.args))},t)}function $o(e,n,t){var o=e.length;if(o<2)return o?Xe(e[0]):[];for(var i=-1,r=u(o);++i<o;)for(var l=e[i],c=-1;++c<o;)c!=i&&(r[i]=Zn(r[i]||l,e[c],n,t));return Xe($(r,1),n,t)}function Qa(e,n,t){for(var o=-1,i=e.length,r=n.length,l={};++o<i;){var c=o<r?n[o]:s;t(l,e[o],c);}return l}function Zo(e){return H(e)?e:[]}function Xo(e){return typeof e=="function"?e:ie}function Je(e,n){return w(e)?e:ri(e,n)?[e]:Ar(L(e))}var Dd=k;function Qe(e,n,t){var o=e.length;return t=t===s?o:t,!n&&t>=o?e:fe(e,n,t)}var er=bc||function(e){return K.clearTimeout(e)};function nr(e,n){if(n)return e.slice();var t=e.length,o=Ta?Ta(t):new e.constructor(t);return e.copy(o),o}function Jo(e){var n=new e.constructor(e.byteLength);return new wt(n).set(new wt(e)),n}function Bd(e,n){var t=n?Jo(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}function Rd(e){var n=new e.constructor(e.source,Vi.exec(e));return n.lastIndex=e.lastIndex,n}function Ed(e){return qn?O(qn.call(e)):{}}function tr(e,n){var t=n?Jo(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}function or(e,n){if(e!==n){var t=e!==s,o=e===null,i=e===e,r=le(e),l=n!==s,c=n===null,p=n===n,h=le(n);if(!c&&!h&&!r&&e>n||r&&l&&p&&!c&&!h||o&&l&&p||!t&&p||!i)return 1;if(!o&&!r&&!h&&e<n||h&&t&&i&&!o&&!r||c&&t&&i||!l&&i||!p)return -1}return 0}function Ld(e,n,t){for(var o=-1,i=e.criteria,r=n.criteria,l=i.length,c=t.length;++o<l;){var p=or(i[o],r[o]);if(p){if(o>=c)return p;var h=t[o];return p*(h=="desc"?-1:1)}}return e.index-n.index}function ir(e,n,t,o){for(var i=-1,r=e.length,l=t.length,c=-1,p=n.length,h=j(r-l,0),g=u(p+h),b=!o;++c<p;)g[c]=n[c];for(;++i<l;)(b||i<r)&&(g[t[i]]=e[i]);for(;h--;)g[c++]=e[i++];return g}function ar(e,n,t,o){for(var i=-1,r=e.length,l=-1,c=t.length,p=-1,h=n.length,g=j(r-c,0),b=u(g+h),f=!o;++i<g;)b[i]=e[i];for(var v=i;++p<h;)b[v+p]=n[p];for(;++l<c;)(f||i<r)&&(b[v+t[l]]=e[i++]);return b}function ne(e,n){var t=-1,o=e.length;for(n||(n=u(o));++t<o;)n[t]=e[t];return n}function Be(e,n,t,o){var i=!t;t||(t={});for(var r=-1,l=n.length;++r<l;){var c=n[r],p=o?o(t[c],e[c],c,t,e):s;p===s&&(p=e[c]),i?We(t,c,p):$n(t,c,p);}return t}function Md(e,n){return Be(e,ai(e),n)}function Od(e,n){return Be(e,yr(e),n)}function zt(e,n){return function(t,o){var i=w(t)?_l:od,r=n?n():{};return i(t,e,x(o,2),r)}}function kn(e){return k(function(n,t){var o=-1,i=t.length,r=i>1?t[i-1]:s,l=i>2?t[2]:s;for(r=e.length>3&&typeof r=="function"?(i--,r):s,l&&Q(t[0],t[1],l)&&(r=i<3?s:r,i=1),n=O(n);++o<i;){var c=t[o];c&&e(n,c,o,r);}return n})}function rr(e,n){return function(t,o){if(t==null)return t;if(!te(t))return e(t,o);for(var i=t.length,r=n?i:-1,l=O(t);(n?r--:++r<i)&&o(l[r],r,l)!==false;);return t}}function sr(e){return function(n,t,o){for(var i=-1,r=O(n),l=o(n),c=l.length;c--;){var p=l[e?c:++i];if(t(r[p],p,r)===false)break}return n}}function Wd(e,n,t){var o=n&pe,i=et(e);function r(){var l=this&&this!==K&&this instanceof r?i:e;return l.apply(o?t:this,arguments)}return r}function lr(e){return function(n){n=L(n);var t=In(n)?Te(n):s,o=t?t[0]:n.charAt(0),i=t?Qe(t,1).join(""):n.slice(1);return o[e]()+i}}function An(e){return function(n){return Po(rs(as(n).replace(Sl,"")),e,"")}}function et(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 t=Sn(e.prototype),o=e.apply(t,n);return z(o)?o:t}}function Fd(e,n,t){var o=et(e);function i(){for(var r=arguments.length,l=u(r),c=r,p=Dn(i);c--;)l[c]=arguments[c];var h=r<3&&l[0]!==p&&l[r-1]!==p?[]:Ke(l,p);if(r-=h.length,r<t)return mr(e,n,_t,i.placeholder,s,l,h,s,s,t-r);var g=this&&this!==K&&this instanceof i?o:e;return ae(g,this,l)}return i}function cr(e){return function(n,t,o){var i=O(n);if(!te(n)){var r=x(t,3);n=q(n),t=function(c){return r(i[c],c,i)};}var l=e(n,t,o);return l>-1?i[r?n[l]:l]:s}}function dr(e){return Ve(function(n){var t=n.length,o=t,i=ge.prototype.thru;for(e&&n.reverse();o--;){var r=n[o];if(typeof r!="function")throw new he(Y);if(i&&!l&&Ut(r)=="wrapper")var l=new ge([],true);}for(o=l?o:t;++o<t;){r=n[o];var c=Ut(r),p=c=="wrapper"?oi(r):s;p&&si(p[0])&&p[1]==(Ee|Se|ke|On)&&!p[4].length&&p[9]==1?l=l[Ut(p[0])].apply(l,p[3]):l=r.length==1&&si(r)?l[c]():l.thru(r);}return function(){var h=arguments,g=h[0];if(l&&h.length==1&&w(g))return l.plant(g).value();for(var b=0,f=t?n[b].apply(this,h):g;++b<t;)f=n[b].call(this,f);return f}})}function _t(e,n,t,o,i,r,l,c,p,h){var g=n&Ee,b=n&pe,f=n&nn,v=n&(Se|gn),I=n&to,S=f?s:et(e);function T(){for(var A=arguments.length,R=u(A),ce=A;ce--;)R[ce]=arguments[ce];if(v)var ee=Dn(T),de=$l(R,ee);if(o&&(R=ir(R,o,i,v)),r&&(R=ar(R,r,l,v)),A-=de,v&&A<h){var G=Ke(R,ee);return mr(e,n,_t,T.placeholder,t,R,G,c,p,h-A)}var Ce=b?t:this,He=f?Ce[e]:e;return A=R.length,c?R=op(R,c):I&&A>1&&R.reverse(),g&&p<A&&(R.length=p),this&&this!==K&&this instanceof T&&(He=S||et(He)),He.apply(Ce,R)}return T}function pr(e,n){return function(t,o){return pd(t,e,n(o),{})}}function Nt(e,n){return function(t,o){var i;if(t===s&&o===s)return n;if(t!==s&&(i=t),o!==s){if(i===s)return o;typeof t=="string"||typeof o=="string"?(t=se(t),o=se(o)):(t=Za(t),o=Za(o)),i=e(t,o);}return i}}function Qo(e){return Ve(function(n){return n=V(n,re(x())),k(function(t){var o=this;return e(n,function(i){return ae(i,o,t)})})})}function Ht(e,n){n=n===s?" ":se(n);var t=n.length;if(t<2)return t?Yo(n,e):n;var o=Yo(n,At(e/Tn(n)));return In(n)?Qe(Te(o),0,e).join(""):o.slice(0,e)}function Vd(e,n,t,o){var i=n&pe,r=et(e);function l(){for(var c=-1,p=arguments.length,h=-1,g=o.length,b=u(g+p),f=this&&this!==K&&this instanceof l?r:e;++h<g;)b[h]=o[h];for(;p--;)b[h++]=arguments[++c];return ae(f,i?t:this,b)}return l}function ur(e){return function(n,t,o){return o&&typeof o!="number"&&Q(n,t,o)&&(t=o=s),n=Ne(n),t===s?(t=n,n=0):t=Ne(t),o=o===s?n<t?1:-1:Ne(o),Pd(n,t,o,e)}}function Gt(e){return function(n,t){return typeof n=="string"&&typeof t=="string"||(n=ve(n),t=ve(t)),e(n,t)}}function mr(e,n,t,o,i,r,l,c,p,h){var g=n&Se,b=g?l:s,f=g?s:l,v=g?r:s,I=g?s:r;n|=g?ke:bn,n&=~(g?bn:ke),n&Ri||(n&=-4);var S=[e,n,i,v,b,I,f,c,p,h],T=t.apply(s,S);return si(e)&&Cr(T,S),T.placeholder=o,Sr(T,e,n)}function ei(e){var n=U[e];return function(t,o){if(t=ve(t),o=o==null?0:Z(C(o),292),o&&Sa(t)){var i=(L(t)+"e").split("e"),r=n(i[0]+"e"+(+i[1]+o));return i=(L(r)+"e").split("e"),+(i[0]+"e"+(+i[1]-o))}return n(t)}}var zd=wn&&1/yt(new wn([,-0]))[1]==tn?function(e){return new wn(e)}:Ti;function hr(e){return function(n){var t=X(n);return t==xe?Bo(n):t==Ie?tc(n):ql(n,e(n))}}function Fe(e,n,t,o,i,r,l,c){var p=n&nn;if(!p&&typeof e!="function")throw new he(Y);var h=o?o.length:0;if(h||(n&=-97,o=i=s),l=l===s?l:j(C(l),0),c=c===s?c:C(c),h-=i?i.length:0,n&bn){var g=o,b=i;o=i=s;}var f=p?s:oi(e),v=[e,n,t,o,i,g,b,r,l,c];if(f&&ep(v,f),e=v[0],n=v[1],t=v[2],o=v[3],i=v[4],c=v[9]=v[9]===s?p?0:e.length:j(v[9]-h,0),!c&&n&(Se|gn)&&(n&=-25),!n||n==pe)var I=Wd(e,n,t);else n==Se||n==gn?I=Fd(e,n,c):(n==ke||n==(pe|ke))&&!i.length?I=Vd(e,n,t,o):I=_t.apply(s,v);var S=f?qa:Cr;return Sr(S(I,v),e,n)}function gr(e,n,t,o){return e===s||we(e,Pn[t])&&!M.call(o,t)?n:e}function br(e,n,t,o,i,r){return z(e)&&z(n)&&(r.set(n,e),Wt(e,n,s,br,r),r.delete(n)),e}function _d(e){return ot(e)?s:e}function fr(e,n,t,o,i,r){var l=t&hn,c=e.length,p=n.length;if(c!=p&&!(l&&p>c))return false;var h=r.get(e),g=r.get(n);if(h&&g)return h==n&&g==e;var b=-1,f=true,v=t&st?new sn:s;for(r.set(e,n),r.set(n,e);++b<c;){var I=e[b],S=n[b];if(o)var T=l?o(S,I,b,n,e,r):o(I,S,b,e,n,r);if(T!==s){if(T)continue;f=false;break}if(v){if(!wo(n,function(A,R){if(!Gn(v,R)&&(I===A||i(I,A,t,o,r)))return v.push(R)})){f=false;break}}else if(!(I===S||i(I,S,t,o,r))){f=false;break}}return r.delete(e),r.delete(n),f}function Nd(e,n,t,o,i,r,l){switch(t){case yn:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return false;e=e.buffer,n=n.buffer;case Hn:return !(e.byteLength!=n.byteLength||!r(new wt(e),new wt(n)));case Wn:case Fn:case Vn:return we(+e,+n);case dt:return e.name==n.name&&e.message==n.message;case zn:case _n:return e==n+"";case xe:var c=Bo;case Ie:var p=o&hn;if(c||(c=yt),e.size!=n.size&&!p)return false;var h=l.get(e);if(h)return h==n;o|=st,l.set(e,n);var g=fr(c(e),c(n),o,i,r,l);return l.delete(e),g;case ut:if(qn)return qn.call(e)==qn.call(n)}return false}function Hd(e,n,t,o,i,r){var l=t&hn,c=ni(e),p=c.length,h=ni(n),g=h.length;if(p!=g&&!l)return false;for(var b=p;b--;){var f=c[b];if(!(l?f in n:M.call(n,f)))return false}var v=r.get(e),I=r.get(n);if(v&&I)return v==n&&I==e;var S=true;r.set(e,n),r.set(n,e);for(var T=l;++b<p;){f=c[b];var A=e[f],R=n[f];if(o)var ce=l?o(R,A,f,n,e,r):o(A,R,f,e,n,r);if(!(ce===s?A===R||i(A,R,t,o,r):ce)){S=false;break}T||(T=f=="constructor");}if(S&&!T){var ee=e.constructor,de=n.constructor;ee!=de&&"constructor"in e&&"constructor"in n&&!(typeof ee=="function"&&ee instanceof ee&&typeof de=="function"&&de instanceof de)&&(S=false);}return r.delete(e),r.delete(n),S}function Ve(e){return ci(Pr(e,s,Er),e+"")}function ni(e){return Fa(e,q,ai)}function ti(e){return Fa(e,oe,yr)}var oi=Bt?function(e){return Bt.get(e)}:Ti;function Ut(e){for(var n=e.name+"",t=Cn[n],o=M.call(Cn,n)?t.length:0;o--;){var i=t[o],r=i.func;if(r==null||r==e)return i.name}return n}function Dn(e){var n=M.call(a,"placeholder")?a:e;return n.placeholder}function x(){var e=a.iteratee||xi;return e=e===xi?_a:e,arguments.length?e(arguments[0],arguments[1]):e}function jt(e,n){var t=e.__data__;return Zd(n)?t[typeof n=="string"?"string":"hash"]:t.map}function ii(e){for(var n=q(e),t=n.length;t--;){var o=n[t],i=e[o];n[t]=[o,i,Ir(i)];}return n}function dn(e,n){var t=Ql(e,n);return za(t)?t:s}function Gd(e){var n=M.call(e,an),t=e[an];try{e[an]=s;var o=!0;}catch{}var i=Tt.call(e);return o&&(n?e[an]=t:delete e[an]),i}var ai=Eo?function(e){return e==null?[]:(e=O(e),je(Eo(e),function(n){return wa.call(e,n)}))}:Pi,yr=Eo?function(e){for(var n=[];e;)Ye(n,ai(e)),e=Ct(e);return n}:Pi,X=J;(Lo&&X(new Lo(new ArrayBuffer(1)))!=yn||jn&&X(new jn)!=xe||Mo&&X(Mo.resolve())!=Mi||wn&&X(new wn)!=Ie||Yn&&X(new Yn)!=Nn)&&(X=function(e){var n=J(e),t=n==Le?e.constructor:s,o=t?pn(t):"";if(o)switch(o){case Cc:return yn;case Sc:return xe;case kc:return Mi;case Ac:return Ie;case Dc:return Nn}return n});function Ud(e,n,t){for(var o=-1,i=t.length;++o<i;){var r=t[o],l=r.size;switch(r.type){case "drop":e+=l;break;case "dropRight":n-=l;break;case "take":n=Z(n,e+l);break;case "takeRight":e=j(e,n-l);break}}return {start:e,end:n}}function jd(e){var n=e.match(Xs);return n?n[1].split(Js):[]}function vr(e,n,t){n=Je(n,e);for(var o=-1,i=n.length,r=false;++o<i;){var l=Re(n[o]);if(!(r=e!=null&&t(e,l)))break;e=e[l];}return r||++o!=i?r:(i=e==null?0:e.length,!!i&&Jt(i)&&ze(l,i)&&(w(e)||un(e)))}function Yd(e){var n=e.length,t=new e.constructor(n);return n&&typeof e[0]=="string"&&M.call(e,"index")&&(t.index=e.index,t.input=e.input),t}function xr(e){return typeof e.constructor=="function"&&!nt(e)?Sn(Ct(e)):{}}function Kd(e,n,t){var o=e.constructor;switch(n){case Hn:return Jo(e);case Wn:case Fn:return new o(+e);case yn:return Bd(e,t);case oo:case io:case ao:case ro:case so:case lo:case co:case po:case uo:return tr(e,t);case xe:return new o;case Vn:case _n:return new o(e);case zn:return Rd(e);case Ie:return new o;case ut:return Ed(e)}}function qd(e,n){var t=n.length;if(!t)return e;var o=t-1;return n[o]=(t>1?"& ":"")+n[o],n=n.join(t>2?", ":" "),e.replace(Zs,`{
|
|
12
12
|
/* [wrapped with `+n+`] */
|
|
13
|
-
`)}function $d(e){return P(e)||un(e)||!!(Ca&&e&&e[Ca])}function ze(e,n){var t=typeof e;return n=n??Ue,!!n&&(t=="number"||t!="symbol"&&sl.test(e))&&e>-1&&e%1==0&&e<n}function Q(e,n,t){if(!z(t))return false;var o=typeof n;return (o=="number"?te(t)&&ze(n,t.length):o=="string"&&n in t)?Pe(t[n],e):false}function ri(e,n){if(P(e))return false;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||le(e)?true:Ks.test(e)||!js.test(e)||n!=null&&e in O(n)}function Zd(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function si(e){var n=Ut(e),t=a[n];if(typeof t!="function"||!(n in B.prototype))return false;if(e===t)return true;var o=oi(t);return !!o&&e===o[0]}function Xd(e){return !!Ia&&Ia in e}var Jd=xt?_e:Pi;function nt(e){var n=e&&e.constructor,t=typeof n=="function"&&n.prototype||wn;return e===t}function Ir(e){return e===e&&!z(e)}function Tr(e,n){return function(t){return t==null?false:t[e]===n&&(n!==s||e in O(t))}}function Qd(e){var n=Zt(e,function(o){return t.size===Is&&t.clear(),o}),t=n.cache;return n}function ep(e,n){var t=e[1],o=n[1],i=t|o,r=i<(pe|nn|Le),l=o==Le&&t==Se||o==Le&&t==On&&e[7].length<=n[8]||o==(Le|On)&&n[7].length<=n[8]&&t==Se;if(!(r||l))return e;o&pe&&(e[2]=n[2],i|=t&pe?0:Ri);var c=n[3];if(c){var p=e[3];e[3]=p?ir(p,c,n[4]):c,e[4]=p?Ye(e[3],rt):n[4];}return c=n[5],c&&(p=e[5],e[5]=p?ar(p,c,n[6]):c,e[6]=p?Ye(e[5],rt):n[6]),c=n[7],c&&(e[7]=c),o&Le&&(e[8]=e[8]==null?n[8]:Z(e[8],n[8])),e[9]==null&&(e[9]=n[9]),e[0]=n[0],e[1]=i,e}function np(e){var n=[];if(e!=null)for(var t in O(e))n.push(t);return n}function tp(e){return Tt.call(e)}function wr(e,n,t){return n=j(n===s?e.length-1:n,0),function(){for(var o=arguments,i=-1,r=j(o.length-n,0),l=u(r);++i<r;)l[i]=o[n+i];i=-1;for(var c=u(n+1);++i<n;)c[i]=o[i];return c[n]=t(l),ae(e,this,c)}}function Pr(e,n){return n.length<2?e:cn(e,fe(n,0,-1))}function op(e,n){for(var t=e.length,o=Z(n.length,t),i=ne(e);o--;){var r=n[o];e[o]=ze(r,t)?i[r]:s;}return e}function li(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}var Cr=kr(qa),tt=yc||function(e,n){return Y.setTimeout(e,n)},ci=kr(Sd);function Sr(e,n,t){var o=n+"";return ci(e,qd(o,ip(jd(o),t)))}function kr(e){var n=0,t=0;return function(){var o=Tc(),i=Cs-(o-t);if(t=o,i>0){if(++n>=Ps)return arguments[0]}else n=0;return e.apply(s,arguments)}}function Kt(e,n){var t=-1,o=e.length,i=o-1;for(n=n===s?o:n;++t<n;){var r=jo(t,i),l=e[r];e[r]=e[t],e[t]=l;}return e.length=n,e}var Ar=Qd(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Ys,function(t,o,i,r){n.push(i?r.replace(nl,"$1"):o||t);}),n});function Re(e){if(typeof e=="string"||le(e))return e;var n=e+"";return n=="0"&&1/e==-tn?"-0":n}function pn(e){if(e!=null){try{return It.call(e)}catch{}try{return e+""}catch{}}return ""}function ip(e,n){return me(Rs,function(t){var o="_."+t[0];n&t[1]&&!bt(e,o)&&e.push(o);}),e.sort()}function Dr(e){if(e instanceof B)return e.clone();var n=new ge(e.__wrapped__,e.__chain__);return n.__actions__=ne(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}function ap(e,n,t){(t?Q(e,n,t):n===s)?n=1:n=j(C(n),0);var o=e==null?0:e.length;if(!o||n<1)return [];for(var i=0,r=0,l=u(At(o/n));i<o;)l[r++]=fe(e,i,i+=n);return l}function rp(e){for(var n=-1,t=e==null?0:e.length,o=0,i=[];++n<t;){var r=e[n];r&&(i[o++]=r);}return i}function sp(){var e=arguments.length;if(!e)return [];for(var n=u(e-1),t=arguments[0],o=e;o--;)n[o-1]=arguments[o];return Ke(P(t)?ne(t):[t],$(n,1))}var lp=k(function(e,n){return G(e)?Zn(e,$(n,1,G,true)):[]}),cp=k(function(e,n){var t=ye(n);return G(t)&&(t=s),G(e)?Zn(e,$(n,1,G,true),x(t,2)):[]}),dp=k(function(e,n){var t=ye(n);return G(t)&&(t=s),G(e)?Zn(e,$(n,1,G,true),s,t):[]});function pp(e,n,t){var o=e==null?0:e.length;return o?(n=t||n===s?1:C(n),fe(e,n<0?0:n,o)):[]}function up(e,n,t){var o=e==null?0:e.length;return o?(n=t||n===s?1:C(n),n=o-n,fe(e,0,n<0?0:n)):[]}function mp(e,n){return e&&e.length?Vt(e,x(n,3),true,true):[]}function hp(e,n){return e&&e.length?Vt(e,x(n,3),true):[]}function gp(e,n,t,o){var i=e==null?0:e.length;return i?(t&&typeof t!="number"&&Q(e,n,t)&&(t=0,o=i),sd(e,n,t,o)):[]}function Br(e,n,t){var o=e==null?0:e.length;if(!o)return -1;var i=t==null?0:C(t);return i<0&&(i=j(o+i,0)),ft(e,x(n,3),i)}function Rr(e,n,t){var o=e==null?0:e.length;if(!o)return -1;var i=o-1;return t!==s&&(i=C(t),i=t<0?j(o+i,0):Z(i,o-1)),ft(e,x(n,3),i,true)}function Lr(e){var n=e==null?0:e.length;return n?$(e,1):[]}function bp(e){var n=e==null?0:e.length;return n?$(e,tn):[]}function fp(e,n){var t=e==null?0:e.length;return t?(n=n===s?1:C(n),$(e,n)):[]}function yp(e){for(var n=-1,t=e==null?0:e.length,o={};++n<t;){var i=e[n];o[i[0]]=i[1];}return o}function Er(e){return e&&e.length?e[0]:s}function vp(e,n,t){var o=e==null?0:e.length;if(!o)return -1;var i=t==null?0:C(t);return i<0&&(i=j(o+i,0)),xn(e,n,i)}function xp(e){var n=e==null?0:e.length;return n?fe(e,0,-1):[]}var Ip=k(function(e){var n=V(e,Zo);return n.length&&n[0]===e[0]?_o(n):[]}),Tp=k(function(e){var n=ye(e),t=V(e,Zo);return n===ye(t)?n=s:t.pop(),t.length&&t[0]===e[0]?_o(t,x(n,2)):[]}),wp=k(function(e){var n=ye(e),t=V(e,Zo);return n=typeof n=="function"?n:s,n&&t.pop(),t.length&&t[0]===e[0]?_o(t,s,n):[]});function Pp(e,n){return e==null?"":xc.call(e,n)}function ye(e){var n=e==null?0:e.length;return n?e[n-1]:s}function Cp(e,n,t){var o=e==null?0:e.length;if(!o)return -1;var i=o;return t!==s&&(i=C(t),i=i<0?j(o+i,0):Z(i,o-1)),n===n?ic(e,n,i):ft(e,ma,i,true)}function Sp(e,n){return e&&e.length?Ua(e,C(n)):s}var kp=k(Mr);function Mr(e,n){return e&&e.length&&n&&n.length?Uo(e,n):e}function Ap(e,n,t){return e&&e.length&&n&&n.length?Uo(e,n,x(t,2)):e}function Dp(e,n,t){return e&&e.length&&n&&n.length?Uo(e,n,s,t):e}var Bp=Ve(function(e,n){var t=e==null?0:e.length,o=Wo(e,n);return Ya(e,V(n,function(i){return ze(i,t)?+i:i}).sort(or)),o});function Rp(e,n){var t=[];if(!(e&&e.length))return t;var o=-1,i=[],r=e.length;for(n=x(n,3);++o<r;){var l=e[o];n(l,o,e)&&(t.push(l),i.push(o));}return Ya(e,i),t}function di(e){return e==null?e:Pc.call(e)}function Lp(e,n,t){var o=e==null?0:e.length;return o?(t&&typeof t!="number"&&Q(e,n,t)?(n=0,t=o):(n=n==null?0:C(n),t=t===s?o:C(t)),fe(e,n,t)):[]}function Ep(e,n){return Ft(e,n)}function Mp(e,n,t){return Yo(e,n,x(t,2))}function Op(e,n){var t=e==null?0:e.length;if(t){var o=Ft(e,n);if(o<t&&Pe(e[o],n))return o}return -1}function Wp(e,n){return Ft(e,n,true)}function Fp(e,n,t){return Yo(e,n,x(t,2),true)}function Vp(e,n){var t=e==null?0:e.length;if(t){var o=Ft(e,n,true)-1;if(Pe(e[o],n))return o}return -1}function zp(e){return e&&e.length?$a(e):[]}function _p(e,n){return e&&e.length?$a(e,x(n,2)):[]}function Np(e){var n=e==null?0:e.length;return n?fe(e,1,n):[]}function Gp(e,n,t){return e&&e.length?(n=t||n===s?1:C(n),fe(e,0,n<0?0:n)):[]}function Hp(e,n,t){var o=e==null?0:e.length;return o?(n=t||n===s?1:C(n),n=o-n,fe(e,n<0?0:n,o)):[]}function Up(e,n){return e&&e.length?Vt(e,x(n,3),false,true):[]}function jp(e,n){return e&&e.length?Vt(e,x(n,3)):[]}var Kp=k(function(e){return Xe($(e,1,G,true))}),Yp=k(function(e){var n=ye(e);return G(n)&&(n=s),Xe($(e,1,G,true),x(n,2))}),qp=k(function(e){var n=ye(e);return n=typeof n=="function"?n:s,Xe($(e,1,G,true),s,n)});function $p(e){return e&&e.length?Xe(e):[]}function Zp(e,n){return e&&e.length?Xe(e,x(n,2)):[]}function Xp(e,n){return n=typeof n=="function"?n:s,e&&e.length?Xe(e,s,n):[]}function pi(e){if(!(e&&e.length))return [];var n=0;return e=je(e,function(t){if(G(t))return n=j(t.length,n),true}),Ao(n,function(t){return V(e,Co(t))})}function Or(e,n){if(!(e&&e.length))return [];var t=pi(e);return n==null?t:V(t,function(o){return ae(n,s,o)})}var Jp=k(function(e,n){return G(e)?Zn(e,n):[]}),Qp=k(function(e){return $o(je(e,G))}),eu=k(function(e){var n=ye(e);return G(n)&&(n=s),$o(je(e,G),x(n,2))}),nu=k(function(e){var n=ye(e);return n=typeof n=="function"?n:s,$o(je(e,G),s,n)}),tu=k(pi);function ou(e,n){return Qa(e||[],n||[],$n)}function iu(e,n){return Qa(e||[],n||[],Qn)}var au=k(function(e){var n=e.length,t=n>1?e[n-1]:s;return t=typeof t=="function"?(e.pop(),t):s,Or(e,t)});function Wr(e){var n=a(e);return n.__chain__=true,n}function ru(e,n){return n(e),e}function Yt(e,n){return n(e)}var su=Ve(function(e){var n=e.length,t=n?e[0]:0,o=this.__wrapped__,i=function(r){return Wo(r,e)};return n>1||this.__actions__.length||!(o instanceof B)||!ze(t)?this.thru(i):(o=o.slice(t,+t+(n?1:0)),o.__actions__.push({func:Yt,args:[i],thisArg:s}),new ge(o,this.__chain__).thru(function(r){return n&&!r.length&&r.push(s),r}))});function lu(){return Wr(this)}function cu(){return new ge(this.value(),this.__chain__)}function du(){this.__values__===s&&(this.__values__=Zr(this.value()));var e=this.__index__>=this.__values__.length,n=e?s:this.__values__[this.__index__++];return {done:e,value:n}}function pu(){return this}function uu(e){for(var n,t=this;t instanceof Lt;){var o=Dr(t);o.__index__=0,o.__values__=s,n?i.__wrapped__=o:n=o;var i=o;t=t.__wrapped__;}return i.__wrapped__=e,n}function mu(){var e=this.__wrapped__;if(e instanceof B){var n=e;return this.__actions__.length&&(n=new B(this)),n=n.reverse(),n.__actions__.push({func:Yt,args:[di],thisArg:s}),new ge(n,this.__chain__)}return this.thru(di)}function hu(){return Ja(this.__wrapped__,this.__actions__)}var gu=zt(function(e,n,t){M.call(e,t)?++e[t]:We(e,t,1);});function bu(e,n,t){var o=P(e)?pa:rd;return t&&Q(e,n,t)&&(n=s),o(e,x(n,3))}function fu(e,n){var t=P(e)?je:Oa;return t(e,x(n,3))}var yu=cr(Br),vu=cr(Rr);function xu(e,n){return $(qt(e,n),1)}function Iu(e,n){return $(qt(e,n),tn)}function Tu(e,n,t){return t=t===s?1:C(t),$(qt(e,n),t)}function Fr(e,n){var t=P(e)?me:Ze;return t(e,x(n,3))}function Vr(e,n){var t=P(e)?Nl:Ma;return t(e,x(n,3))}var wu=zt(function(e,n,t){M.call(e,t)?e[t].push(n):We(e,t,[n]);});function Pu(e,n,t,o){e=te(e)?e:Rn(e),t=t&&!o?C(t):0;var i=e.length;return t<0&&(t=j(i+t,0)),Qt(e)?t<=i&&e.indexOf(n,t)>-1:!!i&&xn(e,n,t)>-1}var Cu=k(function(e,n,t){var o=-1,i=typeof n=="function",r=te(e)?u(e.length):[];return Ze(e,function(l){r[++o]=i?ae(n,l,t):Xn(l,n,t);}),r}),Su=zt(function(e,n,t){We(e,t,n);});function qt(e,n){var t=P(e)?V:Na;return t(e,x(n,3))}function ku(e,n,t,o){return e==null?[]:(P(n)||(n=n==null?[]:[n]),t=o?s:t,P(t)||(t=t==null?[]:[t]),ja(e,n,t))}var Au=zt(function(e,n,t){e[t?0:1].push(n);},function(){return [[],[]]});function Du(e,n,t){var o=P(e)?wo:ga,i=arguments.length<3;return o(e,x(n,4),t,i,Ze)}function Bu(e,n,t){var o=P(e)?Gl:ga,i=arguments.length<3;return o(e,x(n,4),t,i,Ma)}function Ru(e,n){var t=P(e)?je:Oa;return t(e,Xt(x(n,3)))}function Lu(e){var n=P(e)?Ba:Pd;return n(e)}function Eu(e,n,t){(t?Q(e,n,t):n===s)?n=1:n=C(n);var o=P(e)?nd:Cd;return o(e,n)}function Mu(e){var n=P(e)?td:kd;return n(e)}function Ou(e){if(e==null)return 0;if(te(e))return Qt(e)?Tn(e):e.length;var n=X(e);return n==xe||n==Ie?e.size:Go(e).length}function Wu(e,n,t){var o=P(e)?Po:Ad;return t&&Q(e,n,t)&&(n=s),o(e,x(n,3))}var Fu=k(function(e,n){if(e==null)return [];var t=n.length;return t>1&&Q(e,n[0],n[1])?n=[]:t>2&&Q(n[0],n[1],n[2])&&(n=[n[0]]),ja(e,$(n,1),[])}),$t=fc||function(){return Y.Date.now()};function Vu(e,n){if(typeof n!="function")throw new he(K);return e=C(e),function(){if(--e<1)return n.apply(this,arguments)}}function zr(e,n,t){return n=t?s:n,n=e&&n==null?e.length:n,Fe(e,Le,s,s,s,s,n)}function _r(e,n){var t;if(typeof n!="function")throw new he(K);return e=C(e),function(){return --e>0&&(t=n.apply(this,arguments)),e<=1&&(n=s),t}}var ui=k(function(e,n,t){var o=pe;if(t.length){var i=Ye(t,Dn(ui));o|=ke;}return Fe(e,o,n,t,i)}),Nr=k(function(e,n,t){var o=pe|nn;if(t.length){var i=Ye(t,Dn(Nr));o|=ke;}return Fe(n,o,e,t,i)});function Gr(e,n,t){n=t?s:n;var o=Fe(e,Se,s,s,s,s,s,n);return o.placeholder=Gr.placeholder,o}function Hr(e,n,t){n=t?s:n;var o=Fe(e,gn,s,s,s,s,s,n);return o.placeholder=Hr.placeholder,o}function Ur(e,n,t){var o,i,r,l,c,p,h=0,g=false,b=false,f=true;if(typeof e!="function")throw new he(K);n=ve(n)||0,z(t)&&(g=!!t.leading,b="maxWait"in t,r=b?j(ve(t.maxWait)||0,n):r,f="trailing"in t?!!t.trailing:f);function v(H){var Ce=o,Ge=i;return o=i=s,h=H,l=e.apply(Ge,Ce),l}function I(H){return h=H,c=tt(A,n),g?v(H):l}function S(H){var Ce=H-p,Ge=H-h,cs=n-Ce;return b?Z(cs,r-Ge):cs}function T(H){var Ce=H-p,Ge=H-h;return p===s||Ce>=n||Ce<0||b&&Ge>=r}function A(){var H=$t();if(T(H))return R(H);c=tt(A,S(H));}function R(H){return c=s,f&&o?v(H):(o=i=s,l)}function ce(){c!==s&&er(c),h=0,o=p=i=c=s;}function ee(){return c===s?l:R($t())}function de(){var H=$t(),Ce=T(H);if(o=arguments,i=this,p=H,Ce){if(c===s)return I(p);if(b)return er(c),c=tt(A,n),v(p)}return c===s&&(c=tt(A,n)),l}return de.cancel=ce,de.flush=ee,de}var zu=k(function(e,n){return Ea(e,1,n)}),_u=k(function(e,n,t){return Ea(e,ve(n)||0,t)});function Nu(e){return Fe(e,to)}function Zt(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new he(K);var t=function(){var o=arguments,i=n?n.apply(this,o):o[0],r=t.cache;if(r.has(i))return r.get(i);var l=e.apply(this,o);return t.cache=r.set(i,l)||r,l};return t.cache=new(Zt.Cache||Oe),t}Zt.Cache=Oe;function Xt(e){if(typeof e!="function")throw new he(K);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 Gu(e){return _r(2,e)}var Hu=Dd(function(e,n){n=n.length==1&&P(n[0])?V(n[0],re(x())):V($(n,1),re(x()));var t=n.length;return k(function(o){for(var i=-1,r=Z(o.length,t);++i<r;)o[i]=n[i].call(this,o[i]);return ae(e,this,o)})}),mi=k(function(e,n){var t=Ye(n,Dn(mi));return Fe(e,ke,s,n,t)}),jr=k(function(e,n){var t=Ye(n,Dn(jr));return Fe(e,bn,s,n,t)}),Uu=Ve(function(e,n){return Fe(e,On,s,s,s,n)});function ju(e,n){if(typeof e!="function")throw new he(K);return n=n===s?n:C(n),k(e,n)}function Ku(e,n){if(typeof e!="function")throw new he(K);return n=n==null?0:j(C(n),0),k(function(t){var o=t[n],i=Qe(t,0,n);return o&&Ke(i,o),ae(e,this,i)})}function Yu(e,n,t){var o=true,i=true;if(typeof e!="function")throw new he(K);return z(t)&&(o="leading"in t?!!t.leading:o,i="trailing"in t?!!t.trailing:i),Ur(e,n,{leading:o,maxWait:n,trailing:i})}function qu(e){return zr(e,1)}function $u(e,n){return mi(Xo(n),e)}function Zu(){if(!arguments.length)return [];var e=arguments[0];return P(e)?e:[e]}function Xu(e){return be(e,mn)}function Ju(e,n){return n=typeof n=="function"?n:s,be(e,mn,n)}function Qu(e){return be(e,He|mn)}function em(e,n){return n=typeof n=="function"?n:s,be(e,He|mn,n)}function nm(e,n){return n==null||La(e,n,q(n))}function Pe(e,n){return e===n||e!==e&&n!==n}var tm=Ht(zo),om=Ht(function(e,n){return e>=n}),un=Va(function(){return arguments}())?Va:function(e){return _(e)&&M.call(e,"callee")&&!Pa.call(e,"callee")},P=u.isArray,im=aa?re(aa):ud;function te(e){return e!=null&&Jt(e.length)&&!_e(e)}function G(e){return _(e)&&te(e)}function am(e){return e===true||e===false||_(e)&&J(e)==Wn}var en=vc||Pi,rm=ra?re(ra):md;function sm(e){return _(e)&&e.nodeType===1&&!ot(e)}function lm(e){if(e==null)return true;if(te(e)&&(P(e)||typeof e=="string"||typeof e.splice=="function"||en(e)||Bn(e)||un(e)))return !e.length;var n=X(e);if(n==xe||n==Ie)return !e.size;if(nt(e))return !Go(e).length;for(var t in e)if(M.call(e,t))return false;return true}function cm(e,n){return Jn(e,n)}function dm(e,n,t){t=typeof t=="function"?t:s;var o=t?t(e,n):s;return o===s?Jn(e,n,s,t):!!o}function hi(e){if(!_(e))return false;var n=J(e);return n==dt||n==Es||typeof e.message=="string"&&typeof e.name=="string"&&!ot(e)}function pm(e){return typeof e=="number"&&Sa(e)}function _e(e){if(!z(e))return false;var n=J(e);return n==pt||n==Ei||n==Ls||n==Os}function Kr(e){return typeof e=="number"&&e==C(e)}function Jt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ue}function z(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function _(e){return e!=null&&typeof e=="object"}var Yr=sa?re(sa):gd;function um(e,n){return e===n||No(e,n,ii(n))}function mm(e,n,t){return t=typeof t=="function"?t:s,No(e,n,ii(n),t)}function hm(e){return qr(e)&&e!=+e}function gm(e){if(Jd(e))throw new w(at);return za(e)}function bm(e){return e===null}function fm(e){return e==null}function qr(e){return typeof e=="number"||_(e)&&J(e)==Vn}function ot(e){if(!_(e)||J(e)!=Ee)return false;var n=Ct(e);if(n===null)return true;var t=M.call(n,"constructor")&&n.constructor;return typeof t=="function"&&t instanceof t&&It.call(t)==mc}var gi=la?re(la):bd;function ym(e){return Kr(e)&&e>=-Ue&&e<=Ue}var $r=ca?re(ca):fd;function Qt(e){return typeof e=="string"||!P(e)&&_(e)&&J(e)==_n}function le(e){return typeof e=="symbol"||_(e)&&J(e)==ut}var Bn=da?re(da):yd;function vm(e){return e===s}function xm(e){return _(e)&&X(e)==Nn}function Im(e){return _(e)&&J(e)==Fs}var Tm=Ht(Ho),wm=Ht(function(e,n){return e<=n});function Zr(e){if(!e)return [];if(te(e))return Qt(e)?Te(e):ne(e);if(Un&&e[Un])return nc(e[Un]());var n=X(e),t=n==xe?Bo:n==Ie?yt:Rn;return t(e)}function Ne(e){if(!e)return e===0?e:0;if(e=ve(e),e===tn||e===-tn){var n=e<0?-1:1;return n*As}return e===e?e:0}function C(e){var n=Ne(e),t=n%1;return n===n?t?n-t:n:0}function Xr(e){return e?ln(C(e),0,Ae):0}function ve(e){if(typeof e=="number")return e;if(le(e))return lt;if(z(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=z(n)?n+"":n;}if(typeof e!="string")return e===0?e:+e;e=ba(e);var t=il.test(e);return t||rl.test(e)?Vl(e.slice(2),t?2:8):ol.test(e)?lt:+e}function Jr(e){return Be(e,oe(e))}function Pm(e){return e?ln(C(e),-Ue,Ue):e===0?e:0}function E(e){return e==null?"":se(e)}var Cm=kn(function(e,n){if(nt(n)||te(n)){Be(n,q(n),e);return}for(var t in n)M.call(n,t)&&$n(e,t,n[t]);}),Qr=kn(function(e,n){Be(n,oe(n),e);}),eo=kn(function(e,n,t,o){Be(n,oe(n),e,o);}),Sm=kn(function(e,n,t,o){Be(n,q(n),e,o);}),km=Ve(Wo);function Am(e,n){var t=Sn(e);return n==null?t:Ra(t,n)}var Dm=k(function(e,n){e=O(e);var t=-1,o=n.length,i=o>2?n[2]:s;for(i&&Q(n[0],n[1],i)&&(o=1);++t<o;)for(var r=n[t],l=oe(r),c=-1,p=l.length;++c<p;){var h=l[c],g=e[h];(g===s||Pe(g,wn[h])&&!M.call(e,h))&&(e[h]=r[h]);}return e}),Bm=k(function(e){return e.push(s,br),ae(es,s,e)});function Rm(e,n){return ua(e,x(n,3),De)}function Lm(e,n){return ua(e,x(n,3),Vo)}function Em(e,n){return e==null?e:Fo(e,x(n,3),oe)}function Mm(e,n){return e==null?e:Wa(e,x(n,3),oe)}function Om(e,n){return e&&De(e,x(n,3))}function Wm(e,n){return e&&Vo(e,x(n,3))}function Fm(e){return e==null?[]:Ot(e,q(e))}function Vm(e){return e==null?[]:Ot(e,oe(e))}function bi(e,n,t){var o=e==null?s:cn(e,n);return o===s?t:o}function zm(e,n){return e!=null&&vr(e,n,ld)}function fi(e,n){return e!=null&&vr(e,n,cd)}var _m=pr(function(e,n,t){n!=null&&typeof n.toString!="function"&&(n=Tt.call(n)),e[n]=t;},vi(ie)),Nm=pr(function(e,n,t){n!=null&&typeof n.toString!="function"&&(n=Tt.call(n)),M.call(e,n)?e[n].push(t):e[n]=[t];},x),Gm=k(Xn);function q(e){return te(e)?Da(e):Go(e)}function oe(e){return te(e)?Da(e,true):vd(e)}function Hm(e,n){var t={};return n=x(n,3),De(e,function(o,i,r){We(t,n(o,i,r),o);}),t}function Um(e,n){var t={};return n=x(n,3),De(e,function(o,i,r){We(t,i,n(o,i,r));}),t}var jm=kn(function(e,n,t){Wt(e,n,t);}),es=kn(function(e,n,t,o){Wt(e,n,t,o);}),Km=Ve(function(e,n){var t={};if(e==null)return t;var o=false;n=V(n,function(r){return r=Je(r,e),o||(o=r.length>1),r}),Be(e,ti(e),t),o&&(t=be(t,He|Bi|mn,_d));for(var i=n.length;i--;)qo(t,n[i]);return t});function Ym(e,n){return ns(e,Xt(x(n)))}var qm=Ve(function(e,n){return e==null?{}:Id(e,n)});function ns(e,n){if(e==null)return {};var t=V(ti(e),function(o){return [o]});return n=x(n),Ka(e,t,function(o,i){return n(o,i[0])})}function $m(e,n,t){n=Je(n,e);var o=-1,i=n.length;for(i||(i=1,e=s);++o<i;){var r=e==null?s:e[Re(n[o])];r===s&&(o=i,r=t),e=_e(r)?r.call(e):r;}return e}function Zm(e,n,t){return e==null?e:Qn(e,n,t)}function Xm(e,n,t,o){return o=typeof o=="function"?o:s,e==null?e:Qn(e,n,t,o)}var ts=hr(q),os=hr(oe);function Jm(e,n,t){var o=P(e),i=o||en(e)||Bn(e);if(n=x(n,4),t==null){var r=e&&e.constructor;i?t=o?new r:[]:z(e)?t=_e(r)?Sn(Ct(e)):{}:t={};}return (i?me:De)(e,function(l,c,p){return n(t,l,c,p)}),t}function Qm(e,n){return e==null?true:qo(e,n)}function eh(e,n,t){return e==null?e:Xa(e,n,Xo(t))}function nh(e,n,t,o){return o=typeof o=="function"?o:s,e==null?e:Xa(e,n,Xo(t),o)}function Rn(e){return e==null?[]:Do(e,q(e))}function th(e){return e==null?[]:Do(e,oe(e))}function oh(e,n,t){return t===s&&(t=n,n=s),t!==s&&(t=ve(t),t=t===t?t:0),n!==s&&(n=ve(n),n=n===n?n:0),ln(ve(e),n,t)}function ih(e,n,t){return n=Ne(n),t===s?(t=n,n=0):t=Ne(t),e=ve(e),dd(e,n,t)}function ah(e,n,t){if(t&&typeof t!="boolean"&&Q(e,n,t)&&(n=t=s),t===s&&(typeof n=="boolean"?(t=n,n=s):typeof e=="boolean"&&(t=e,e=s)),e===s&&n===s?(e=0,n=1):(e=Ne(e),n===s?(n=e,e=0):n=Ne(n)),e>n){var o=e;e=n,n=o;}if(t||e%1||n%1){var i=ka();return Z(e+i*(n-e+Fl("1e-"+((i+"").length-1))),n)}return jo(e,n)}var rh=An(function(e,n,t){return n=n.toLowerCase(),e+(t?is(n):n)});function is(e){return yi(E(e).toLowerCase())}function as(e){return e=E(e),e&&e.replace(ll,Zl).replace(kl,"")}function sh(e,n,t){e=E(e),n=se(n);var o=e.length;t=t===s?o:ln(C(t),0,o);var i=t;return t-=n.length,t>=0&&e.slice(t,i)==n}function lh(e){return e=E(e),e&&Gs.test(e)?e.replace(Wi,Xl):e}function ch(e){return e=E(e),e&&qs.test(e)?e.replace(mo,"\\$&"):e}var dh=An(function(e,n,t){return e+(t?"-":"")+n.toLowerCase()}),ph=An(function(e,n,t){return e+(t?" ":"")+n.toLowerCase()}),uh=lr("toLowerCase");function mh(e,n,t){e=E(e),n=C(n);var o=n?Tn(e):0;if(!n||o>=n)return e;var i=(n-o)/2;return Gt(Dt(i),t)+e+Gt(At(i),t)}function hh(e,n,t){e=E(e),n=C(n);var o=n?Tn(e):0;return n&&o<n?e+Gt(n-o,t):e}function gh(e,n,t){e=E(e),n=C(n);var o=n?Tn(e):0;return n&&o<n?Gt(n-o,t)+e:e}function bh(e,n,t){return t||n==null?n=0:n&&(n=+n),wc(E(e).replace(ho,""),n||0)}function fh(e,n,t){return (t?Q(e,n,t):n===s)?n=1:n=C(n),Ko(E(e),n)}function yh(){var e=arguments,n=E(e[0]);return e.length<3?n:n.replace(e[1],e[2])}var vh=An(function(e,n,t){return e+(t?"_":"")+n.toLowerCase()});function xh(e,n,t){return t&&typeof t!="number"&&Q(e,n,t)&&(n=t=s),t=t===s?Ae:t>>>0,t?(e=E(e),e&&(typeof n=="string"||n!=null&&!gi(n))&&(n=se(n),!n&&In(e))?Qe(Te(e),0,t):e.split(n,t)):[]}var Ih=An(function(e,n,t){return e+(t?" ":"")+yi(n)});function Th(e,n,t){return e=E(e),t=t==null?0:ln(C(t),0,e.length),n=se(n),e.slice(t,t+n.length)==n}function wh(e,n,t){var o=a.templateSettings;t&&Q(e,n,t)&&(n=s),e=E(e),n=eo({},n,o,gr);var i=eo({},n.imports,o.imports,gr),r=q(i),l=Do(i,r),c,p,h=0,g=n.interpolate||mt,b="__p += '",f=Ro((n.escape||mt).source+"|"+g.source+"|"+(g===Fi?tl:mt).source+"|"+(n.evaluate||mt).source+"|$","g"),v="//# sourceURL="+(M.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ll+"]")+`
|
|
13
|
+
`)}function $d(e){return w(e)||un(e)||!!(Ca&&e&&e[Ca])}function ze(e,n){var t=typeof e;return n=n??Ue,!!n&&(t=="number"||t!="symbol"&&sl.test(e))&&e>-1&&e%1==0&&e<n}function Q(e,n,t){if(!z(t))return false;var o=typeof n;return (o=="number"?te(t)&&ze(n,t.length):o=="string"&&n in t)?we(t[n],e):false}function ri(e,n){if(w(e))return false;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||le(e)?true:Ys.test(e)||!js.test(e)||n!=null&&e in O(n)}function Zd(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function si(e){var n=Ut(e),t=a[n];if(typeof t!="function"||!(n in B.prototype))return false;if(e===t)return true;var o=oi(t);return !!o&&e===o[0]}function Xd(e){return !!Ia&&Ia in e}var Jd=xt?_e:wi;function nt(e){var n=e&&e.constructor,t=typeof n=="function"&&n.prototype||Pn;return e===t}function Ir(e){return e===e&&!z(e)}function Tr(e,n){return function(t){return t==null?false:t[e]===n&&(n!==s||e in O(t))}}function Qd(e){var n=Zt(e,function(o){return t.size===Is&&t.clear(),o}),t=n.cache;return n}function ep(e,n){var t=e[1],o=n[1],i=t|o,r=i<(pe|nn|Ee),l=o==Ee&&t==Se||o==Ee&&t==On&&e[7].length<=n[8]||o==(Ee|On)&&n[7].length<=n[8]&&t==Se;if(!(r||l))return e;o&pe&&(e[2]=n[2],i|=t&pe?0:Ri);var c=n[3];if(c){var p=e[3];e[3]=p?ir(p,c,n[4]):c,e[4]=p?Ke(e[3],rt):n[4];}return c=n[5],c&&(p=e[5],e[5]=p?ar(p,c,n[6]):c,e[6]=p?Ke(e[5],rt):n[6]),c=n[7],c&&(e[7]=c),o&Ee&&(e[8]=e[8]==null?n[8]:Z(e[8],n[8])),e[9]==null&&(e[9]=n[9]),e[0]=n[0],e[1]=i,e}function np(e){var n=[];if(e!=null)for(var t in O(e))n.push(t);return n}function tp(e){return Tt.call(e)}function Pr(e,n,t){return n=j(n===s?e.length-1:n,0),function(){for(var o=arguments,i=-1,r=j(o.length-n,0),l=u(r);++i<r;)l[i]=o[n+i];i=-1;for(var c=u(n+1);++i<n;)c[i]=o[i];return c[n]=t(l),ae(e,this,c)}}function wr(e,n){return n.length<2?e:cn(e,fe(n,0,-1))}function op(e,n){for(var t=e.length,o=Z(n.length,t),i=ne(e);o--;){var r=n[o];e[o]=ze(r,t)?i[r]:s;}return e}function li(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}var Cr=kr(qa),tt=yc||function(e,n){return K.setTimeout(e,n)},ci=kr(Sd);function Sr(e,n,t){var o=n+"";return ci(e,qd(o,ip(jd(o),t)))}function kr(e){var n=0,t=0;return function(){var o=Tc(),i=Cs-(o-t);if(t=o,i>0){if(++n>=ws)return arguments[0]}else n=0;return e.apply(s,arguments)}}function Yt(e,n){var t=-1,o=e.length,i=o-1;for(n=n===s?o:n;++t<n;){var r=jo(t,i),l=e[r];e[r]=e[t],e[t]=l;}return e.length=n,e}var Ar=Qd(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Ks,function(t,o,i,r){n.push(i?r.replace(nl,"$1"):o||t);}),n});function Re(e){if(typeof e=="string"||le(e))return e;var n=e+"";return n=="0"&&1/e==-tn?"-0":n}function pn(e){if(e!=null){try{return It.call(e)}catch{}try{return e+""}catch{}}return ""}function ip(e,n){return me(Rs,function(t){var o="_."+t[0];n&t[1]&&!bt(e,o)&&e.push(o);}),e.sort()}function Dr(e){if(e instanceof B)return e.clone();var n=new ge(e.__wrapped__,e.__chain__);return n.__actions__=ne(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}function ap(e,n,t){(t?Q(e,n,t):n===s)?n=1:n=j(C(n),0);var o=e==null?0:e.length;if(!o||n<1)return [];for(var i=0,r=0,l=u(At(o/n));i<o;)l[r++]=fe(e,i,i+=n);return l}function rp(e){for(var n=-1,t=e==null?0:e.length,o=0,i=[];++n<t;){var r=e[n];r&&(i[o++]=r);}return i}function sp(){var e=arguments.length;if(!e)return [];for(var n=u(e-1),t=arguments[0],o=e;o--;)n[o-1]=arguments[o];return Ye(w(t)?ne(t):[t],$(n,1))}var lp=k(function(e,n){return H(e)?Zn(e,$(n,1,H,true)):[]}),cp=k(function(e,n){var t=ye(n);return H(t)&&(t=s),H(e)?Zn(e,$(n,1,H,true),x(t,2)):[]}),dp=k(function(e,n){var t=ye(n);return H(t)&&(t=s),H(e)?Zn(e,$(n,1,H,true),s,t):[]});function pp(e,n,t){var o=e==null?0:e.length;return o?(n=t||n===s?1:C(n),fe(e,n<0?0:n,o)):[]}function up(e,n,t){var o=e==null?0:e.length;return o?(n=t||n===s?1:C(n),n=o-n,fe(e,0,n<0?0:n)):[]}function mp(e,n){return e&&e.length?Vt(e,x(n,3),true,true):[]}function hp(e,n){return e&&e.length?Vt(e,x(n,3),true):[]}function gp(e,n,t,o){var i=e==null?0:e.length;return i?(t&&typeof t!="number"&&Q(e,n,t)&&(t=0,o=i),sd(e,n,t,o)):[]}function Br(e,n,t){var o=e==null?0:e.length;if(!o)return -1;var i=t==null?0:C(t);return i<0&&(i=j(o+i,0)),ft(e,x(n,3),i)}function Rr(e,n,t){var o=e==null?0:e.length;if(!o)return -1;var i=o-1;return t!==s&&(i=C(t),i=t<0?j(o+i,0):Z(i,o-1)),ft(e,x(n,3),i,true)}function Er(e){var n=e==null?0:e.length;return n?$(e,1):[]}function bp(e){var n=e==null?0:e.length;return n?$(e,tn):[]}function fp(e,n){var t=e==null?0:e.length;return t?(n=n===s?1:C(n),$(e,n)):[]}function yp(e){for(var n=-1,t=e==null?0:e.length,o={};++n<t;){var i=e[n];o[i[0]]=i[1];}return o}function Lr(e){return e&&e.length?e[0]:s}function vp(e,n,t){var o=e==null?0:e.length;if(!o)return -1;var i=t==null?0:C(t);return i<0&&(i=j(o+i,0)),xn(e,n,i)}function xp(e){var n=e==null?0:e.length;return n?fe(e,0,-1):[]}var Ip=k(function(e){var n=V(e,Zo);return n.length&&n[0]===e[0]?_o(n):[]}),Tp=k(function(e){var n=ye(e),t=V(e,Zo);return n===ye(t)?n=s:t.pop(),t.length&&t[0]===e[0]?_o(t,x(n,2)):[]}),Pp=k(function(e){var n=ye(e),t=V(e,Zo);return n=typeof n=="function"?n:s,n&&t.pop(),t.length&&t[0]===e[0]?_o(t,s,n):[]});function wp(e,n){return e==null?"":xc.call(e,n)}function ye(e){var n=e==null?0:e.length;return n?e[n-1]:s}function Cp(e,n,t){var o=e==null?0:e.length;if(!o)return -1;var i=o;return t!==s&&(i=C(t),i=i<0?j(o+i,0):Z(i,o-1)),n===n?ic(e,n,i):ft(e,ma,i,true)}function Sp(e,n){return e&&e.length?Ua(e,C(n)):s}var kp=k(Mr);function Mr(e,n){return e&&e.length&&n&&n.length?Uo(e,n):e}function Ap(e,n,t){return e&&e.length&&n&&n.length?Uo(e,n,x(t,2)):e}function Dp(e,n,t){return e&&e.length&&n&&n.length?Uo(e,n,s,t):e}var Bp=Ve(function(e,n){var t=e==null?0:e.length,o=Wo(e,n);return Ka(e,V(n,function(i){return ze(i,t)?+i:i}).sort(or)),o});function Rp(e,n){var t=[];if(!(e&&e.length))return t;var o=-1,i=[],r=e.length;for(n=x(n,3);++o<r;){var l=e[o];n(l,o,e)&&(t.push(l),i.push(o));}return Ka(e,i),t}function di(e){return e==null?e:wc.call(e)}function Ep(e,n,t){var o=e==null?0:e.length;return o?(t&&typeof t!="number"&&Q(e,n,t)?(n=0,t=o):(n=n==null?0:C(n),t=t===s?o:C(t)),fe(e,n,t)):[]}function Lp(e,n){return Ft(e,n)}function Mp(e,n,t){return Ko(e,n,x(t,2))}function Op(e,n){var t=e==null?0:e.length;if(t){var o=Ft(e,n);if(o<t&&we(e[o],n))return o}return -1}function Wp(e,n){return Ft(e,n,true)}function Fp(e,n,t){return Ko(e,n,x(t,2),true)}function Vp(e,n){var t=e==null?0:e.length;if(t){var o=Ft(e,n,true)-1;if(we(e[o],n))return o}return -1}function zp(e){return e&&e.length?$a(e):[]}function _p(e,n){return e&&e.length?$a(e,x(n,2)):[]}function Np(e){var n=e==null?0:e.length;return n?fe(e,1,n):[]}function Hp(e,n,t){return e&&e.length?(n=t||n===s?1:C(n),fe(e,0,n<0?0:n)):[]}function Gp(e,n,t){var o=e==null?0:e.length;return o?(n=t||n===s?1:C(n),n=o-n,fe(e,n<0?0:n,o)):[]}function Up(e,n){return e&&e.length?Vt(e,x(n,3),false,true):[]}function jp(e,n){return e&&e.length?Vt(e,x(n,3)):[]}var Yp=k(function(e){return Xe($(e,1,H,true))}),Kp=k(function(e){var n=ye(e);return H(n)&&(n=s),Xe($(e,1,H,true),x(n,2))}),qp=k(function(e){var n=ye(e);return n=typeof n=="function"?n:s,Xe($(e,1,H,true),s,n)});function $p(e){return e&&e.length?Xe(e):[]}function Zp(e,n){return e&&e.length?Xe(e,x(n,2)):[]}function Xp(e,n){return n=typeof n=="function"?n:s,e&&e.length?Xe(e,s,n):[]}function pi(e){if(!(e&&e.length))return [];var n=0;return e=je(e,function(t){if(H(t))return n=j(t.length,n),true}),Ao(n,function(t){return V(e,Co(t))})}function Or(e,n){if(!(e&&e.length))return [];var t=pi(e);return n==null?t:V(t,function(o){return ae(n,s,o)})}var Jp=k(function(e,n){return H(e)?Zn(e,n):[]}),Qp=k(function(e){return $o(je(e,H))}),eu=k(function(e){var n=ye(e);return H(n)&&(n=s),$o(je(e,H),x(n,2))}),nu=k(function(e){var n=ye(e);return n=typeof n=="function"?n:s,$o(je(e,H),s,n)}),tu=k(pi);function ou(e,n){return Qa(e||[],n||[],$n)}function iu(e,n){return Qa(e||[],n||[],Qn)}var au=k(function(e){var n=e.length,t=n>1?e[n-1]:s;return t=typeof t=="function"?(e.pop(),t):s,Or(e,t)});function Wr(e){var n=a(e);return n.__chain__=true,n}function ru(e,n){return n(e),e}function Kt(e,n){return n(e)}var su=Ve(function(e){var n=e.length,t=n?e[0]:0,o=this.__wrapped__,i=function(r){return Wo(r,e)};return n>1||this.__actions__.length||!(o instanceof B)||!ze(t)?this.thru(i):(o=o.slice(t,+t+(n?1:0)),o.__actions__.push({func:Kt,args:[i],thisArg:s}),new ge(o,this.__chain__).thru(function(r){return n&&!r.length&&r.push(s),r}))});function lu(){return Wr(this)}function cu(){return new ge(this.value(),this.__chain__)}function du(){this.__values__===s&&(this.__values__=Zr(this.value()));var e=this.__index__>=this.__values__.length,n=e?s:this.__values__[this.__index__++];return {done:e,value:n}}function pu(){return this}function uu(e){for(var n,t=this;t instanceof Et;){var o=Dr(t);o.__index__=0,o.__values__=s,n?i.__wrapped__=o:n=o;var i=o;t=t.__wrapped__;}return i.__wrapped__=e,n}function mu(){var e=this.__wrapped__;if(e instanceof B){var n=e;return this.__actions__.length&&(n=new B(this)),n=n.reverse(),n.__actions__.push({func:Kt,args:[di],thisArg:s}),new ge(n,this.__chain__)}return this.thru(di)}function hu(){return Ja(this.__wrapped__,this.__actions__)}var gu=zt(function(e,n,t){M.call(e,t)?++e[t]:We(e,t,1);});function bu(e,n,t){var o=w(e)?pa:rd;return t&&Q(e,n,t)&&(n=s),o(e,x(n,3))}function fu(e,n){var t=w(e)?je:Oa;return t(e,x(n,3))}var yu=cr(Br),vu=cr(Rr);function xu(e,n){return $(qt(e,n),1)}function Iu(e,n){return $(qt(e,n),tn)}function Tu(e,n,t){return t=t===s?1:C(t),$(qt(e,n),t)}function Fr(e,n){var t=w(e)?me:Ze;return t(e,x(n,3))}function Vr(e,n){var t=w(e)?Nl:Ma;return t(e,x(n,3))}var Pu=zt(function(e,n,t){M.call(e,t)?e[t].push(n):We(e,t,[n]);});function wu(e,n,t,o){e=te(e)?e:Rn(e),t=t&&!o?C(t):0;var i=e.length;return t<0&&(t=j(i+t,0)),Qt(e)?t<=i&&e.indexOf(n,t)>-1:!!i&&xn(e,n,t)>-1}var Cu=k(function(e,n,t){var o=-1,i=typeof n=="function",r=te(e)?u(e.length):[];return Ze(e,function(l){r[++o]=i?ae(n,l,t):Xn(l,n,t);}),r}),Su=zt(function(e,n,t){We(e,t,n);});function qt(e,n){var t=w(e)?V:Na;return t(e,x(n,3))}function ku(e,n,t,o){return e==null?[]:(w(n)||(n=n==null?[]:[n]),t=o?s:t,w(t)||(t=t==null?[]:[t]),ja(e,n,t))}var Au=zt(function(e,n,t){e[t?0:1].push(n);},function(){return [[],[]]});function Du(e,n,t){var o=w(e)?Po:ga,i=arguments.length<3;return o(e,x(n,4),t,i,Ze)}function Bu(e,n,t){var o=w(e)?Hl:ga,i=arguments.length<3;return o(e,x(n,4),t,i,Ma)}function Ru(e,n){var t=w(e)?je:Oa;return t(e,Xt(x(n,3)))}function Eu(e){var n=w(e)?Ba:wd;return n(e)}function Lu(e,n,t){(t?Q(e,n,t):n===s)?n=1:n=C(n);var o=w(e)?nd:Cd;return o(e,n)}function Mu(e){var n=w(e)?td:kd;return n(e)}function Ou(e){if(e==null)return 0;if(te(e))return Qt(e)?Tn(e):e.length;var n=X(e);return n==xe||n==Ie?e.size:Ho(e).length}function Wu(e,n,t){var o=w(e)?wo:Ad;return t&&Q(e,n,t)&&(n=s),o(e,x(n,3))}var Fu=k(function(e,n){if(e==null)return [];var t=n.length;return t>1&&Q(e,n[0],n[1])?n=[]:t>2&&Q(n[0],n[1],n[2])&&(n=[n[0]]),ja(e,$(n,1),[])}),$t=fc||function(){return K.Date.now()};function Vu(e,n){if(typeof n!="function")throw new he(Y);return e=C(e),function(){if(--e<1)return n.apply(this,arguments)}}function zr(e,n,t){return n=t?s:n,n=e&&n==null?e.length:n,Fe(e,Ee,s,s,s,s,n)}function _r(e,n){var t;if(typeof n!="function")throw new he(Y);return e=C(e),function(){return --e>0&&(t=n.apply(this,arguments)),e<=1&&(n=s),t}}var ui=k(function(e,n,t){var o=pe;if(t.length){var i=Ke(t,Dn(ui));o|=ke;}return Fe(e,o,n,t,i)}),Nr=k(function(e,n,t){var o=pe|nn;if(t.length){var i=Ke(t,Dn(Nr));o|=ke;}return Fe(n,o,e,t,i)});function Hr(e,n,t){n=t?s:n;var o=Fe(e,Se,s,s,s,s,s,n);return o.placeholder=Hr.placeholder,o}function Gr(e,n,t){n=t?s:n;var o=Fe(e,gn,s,s,s,s,s,n);return o.placeholder=Gr.placeholder,o}function Ur(e,n,t){var o,i,r,l,c,p,h=0,g=false,b=false,f=true;if(typeof e!="function")throw new he(Y);n=ve(n)||0,z(t)&&(g=!!t.leading,b="maxWait"in t,r=b?j(ve(t.maxWait)||0,n):r,f="trailing"in t?!!t.trailing:f);function v(G){var Ce=o,He=i;return o=i=s,h=G,l=e.apply(He,Ce),l}function I(G){return h=G,c=tt(A,n),g?v(G):l}function S(G){var Ce=G-p,He=G-h,cs=n-Ce;return b?Z(cs,r-He):cs}function T(G){var Ce=G-p,He=G-h;return p===s||Ce>=n||Ce<0||b&&He>=r}function A(){var G=$t();if(T(G))return R(G);c=tt(A,S(G));}function R(G){return c=s,f&&o?v(G):(o=i=s,l)}function ce(){c!==s&&er(c),h=0,o=p=i=c=s;}function ee(){return c===s?l:R($t())}function de(){var G=$t(),Ce=T(G);if(o=arguments,i=this,p=G,Ce){if(c===s)return I(p);if(b)return er(c),c=tt(A,n),v(p)}return c===s&&(c=tt(A,n)),l}return de.cancel=ce,de.flush=ee,de}var zu=k(function(e,n){return La(e,1,n)}),_u=k(function(e,n,t){return La(e,ve(n)||0,t)});function Nu(e){return Fe(e,to)}function Zt(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new he(Y);var t=function(){var o=arguments,i=n?n.apply(this,o):o[0],r=t.cache;if(r.has(i))return r.get(i);var l=e.apply(this,o);return t.cache=r.set(i,l)||r,l};return t.cache=new(Zt.Cache||Oe),t}Zt.Cache=Oe;function Xt(e){if(typeof e!="function")throw new he(Y);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 Hu(e){return _r(2,e)}var Gu=Dd(function(e,n){n=n.length==1&&w(n[0])?V(n[0],re(x())):V($(n,1),re(x()));var t=n.length;return k(function(o){for(var i=-1,r=Z(o.length,t);++i<r;)o[i]=n[i].call(this,o[i]);return ae(e,this,o)})}),mi=k(function(e,n){var t=Ke(n,Dn(mi));return Fe(e,ke,s,n,t)}),jr=k(function(e,n){var t=Ke(n,Dn(jr));return Fe(e,bn,s,n,t)}),Uu=Ve(function(e,n){return Fe(e,On,s,s,s,n)});function ju(e,n){if(typeof e!="function")throw new he(Y);return n=n===s?n:C(n),k(e,n)}function Yu(e,n){if(typeof e!="function")throw new he(Y);return n=n==null?0:j(C(n),0),k(function(t){var o=t[n],i=Qe(t,0,n);return o&&Ye(i,o),ae(e,this,i)})}function Ku(e,n,t){var o=true,i=true;if(typeof e!="function")throw new he(Y);return z(t)&&(o="leading"in t?!!t.leading:o,i="trailing"in t?!!t.trailing:i),Ur(e,n,{leading:o,maxWait:n,trailing:i})}function qu(e){return zr(e,1)}function $u(e,n){return mi(Xo(n),e)}function Zu(){if(!arguments.length)return [];var e=arguments[0];return w(e)?e:[e]}function Xu(e){return be(e,mn)}function Ju(e,n){return n=typeof n=="function"?n:s,be(e,mn,n)}function Qu(e){return be(e,Ge|mn)}function em(e,n){return n=typeof n=="function"?n:s,be(e,Ge|mn,n)}function nm(e,n){return n==null||Ea(e,n,q(n))}function we(e,n){return e===n||e!==e&&n!==n}var tm=Gt(zo),om=Gt(function(e,n){return e>=n}),un=Va(function(){return arguments}())?Va:function(e){return _(e)&&M.call(e,"callee")&&!wa.call(e,"callee")},w=u.isArray,im=aa?re(aa):ud;function te(e){return e!=null&&Jt(e.length)&&!_e(e)}function H(e){return _(e)&&te(e)}function am(e){return e===true||e===false||_(e)&&J(e)==Wn}var en=vc||wi,rm=ra?re(ra):md;function sm(e){return _(e)&&e.nodeType===1&&!ot(e)}function lm(e){if(e==null)return true;if(te(e)&&(w(e)||typeof e=="string"||typeof e.splice=="function"||en(e)||Bn(e)||un(e)))return !e.length;var n=X(e);if(n==xe||n==Ie)return !e.size;if(nt(e))return !Ho(e).length;for(var t in e)if(M.call(e,t))return false;return true}function cm(e,n){return Jn(e,n)}function dm(e,n,t){t=typeof t=="function"?t:s;var o=t?t(e,n):s;return o===s?Jn(e,n,s,t):!!o}function hi(e){if(!_(e))return false;var n=J(e);return n==dt||n==Ls||typeof e.message=="string"&&typeof e.name=="string"&&!ot(e)}function pm(e){return typeof e=="number"&&Sa(e)}function _e(e){if(!z(e))return false;var n=J(e);return n==pt||n==Li||n==Es||n==Os}function Yr(e){return typeof e=="number"&&e==C(e)}function Jt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ue}function z(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function _(e){return e!=null&&typeof e=="object"}var Kr=sa?re(sa):gd;function um(e,n){return e===n||No(e,n,ii(n))}function mm(e,n,t){return t=typeof t=="function"?t:s,No(e,n,ii(n),t)}function hm(e){return qr(e)&&e!=+e}function gm(e){if(Jd(e))throw new P(at);return za(e)}function bm(e){return e===null}function fm(e){return e==null}function qr(e){return typeof e=="number"||_(e)&&J(e)==Vn}function ot(e){if(!_(e)||J(e)!=Le)return false;var n=Ct(e);if(n===null)return true;var t=M.call(n,"constructor")&&n.constructor;return typeof t=="function"&&t instanceof t&&It.call(t)==mc}var gi=la?re(la):bd;function ym(e){return Yr(e)&&e>=-Ue&&e<=Ue}var $r=ca?re(ca):fd;function Qt(e){return typeof e=="string"||!w(e)&&_(e)&&J(e)==_n}function le(e){return typeof e=="symbol"||_(e)&&J(e)==ut}var Bn=da?re(da):yd;function vm(e){return e===s}function xm(e){return _(e)&&X(e)==Nn}function Im(e){return _(e)&&J(e)==Fs}var Tm=Gt(Go),Pm=Gt(function(e,n){return e<=n});function Zr(e){if(!e)return [];if(te(e))return Qt(e)?Te(e):ne(e);if(Un&&e[Un])return nc(e[Un]());var n=X(e),t=n==xe?Bo:n==Ie?yt:Rn;return t(e)}function Ne(e){if(!e)return e===0?e:0;if(e=ve(e),e===tn||e===-tn){var n=e<0?-1:1;return n*As}return e===e?e:0}function C(e){var n=Ne(e),t=n%1;return n===n?t?n-t:n:0}function Xr(e){return e?ln(C(e),0,Ae):0}function ve(e){if(typeof e=="number")return e;if(le(e))return lt;if(z(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=z(n)?n+"":n;}if(typeof e!="string")return e===0?e:+e;e=ba(e);var t=il.test(e);return t||rl.test(e)?Vl(e.slice(2),t?2:8):ol.test(e)?lt:+e}function Jr(e){return Be(e,oe(e))}function wm(e){return e?ln(C(e),-Ue,Ue):e===0?e:0}function L(e){return e==null?"":se(e)}var Cm=kn(function(e,n){if(nt(n)||te(n)){Be(n,q(n),e);return}for(var t in n)M.call(n,t)&&$n(e,t,n[t]);}),Qr=kn(function(e,n){Be(n,oe(n),e);}),eo=kn(function(e,n,t,o){Be(n,oe(n),e,o);}),Sm=kn(function(e,n,t,o){Be(n,q(n),e,o);}),km=Ve(Wo);function Am(e,n){var t=Sn(e);return n==null?t:Ra(t,n)}var Dm=k(function(e,n){e=O(e);var t=-1,o=n.length,i=o>2?n[2]:s;for(i&&Q(n[0],n[1],i)&&(o=1);++t<o;)for(var r=n[t],l=oe(r),c=-1,p=l.length;++c<p;){var h=l[c],g=e[h];(g===s||we(g,Pn[h])&&!M.call(e,h))&&(e[h]=r[h]);}return e}),Bm=k(function(e){return e.push(s,br),ae(es,s,e)});function Rm(e,n){return ua(e,x(n,3),De)}function Em(e,n){return ua(e,x(n,3),Vo)}function Lm(e,n){return e==null?e:Fo(e,x(n,3),oe)}function Mm(e,n){return e==null?e:Wa(e,x(n,3),oe)}function Om(e,n){return e&&De(e,x(n,3))}function Wm(e,n){return e&&Vo(e,x(n,3))}function Fm(e){return e==null?[]:Ot(e,q(e))}function Vm(e){return e==null?[]:Ot(e,oe(e))}function bi(e,n,t){var o=e==null?s:cn(e,n);return o===s?t:o}function zm(e,n){return e!=null&&vr(e,n,ld)}function fi(e,n){return e!=null&&vr(e,n,cd)}var _m=pr(function(e,n,t){n!=null&&typeof n.toString!="function"&&(n=Tt.call(n)),e[n]=t;},vi(ie)),Nm=pr(function(e,n,t){n!=null&&typeof n.toString!="function"&&(n=Tt.call(n)),M.call(e,n)?e[n].push(t):e[n]=[t];},x),Hm=k(Xn);function q(e){return te(e)?Da(e):Ho(e)}function oe(e){return te(e)?Da(e,true):vd(e)}function Gm(e,n){var t={};return n=x(n,3),De(e,function(o,i,r){We(t,n(o,i,r),o);}),t}function Um(e,n){var t={};return n=x(n,3),De(e,function(o,i,r){We(t,i,n(o,i,r));}),t}var jm=kn(function(e,n,t){Wt(e,n,t);}),es=kn(function(e,n,t,o){Wt(e,n,t,o);}),Ym=Ve(function(e,n){var t={};if(e==null)return t;var o=false;n=V(n,function(r){return r=Je(r,e),o||(o=r.length>1),r}),Be(e,ti(e),t),o&&(t=be(t,Ge|Bi|mn,_d));for(var i=n.length;i--;)qo(t,n[i]);return t});function Km(e,n){return ns(e,Xt(x(n)))}var qm=Ve(function(e,n){return e==null?{}:Id(e,n)});function ns(e,n){if(e==null)return {};var t=V(ti(e),function(o){return [o]});return n=x(n),Ya(e,t,function(o,i){return n(o,i[0])})}function $m(e,n,t){n=Je(n,e);var o=-1,i=n.length;for(i||(i=1,e=s);++o<i;){var r=e==null?s:e[Re(n[o])];r===s&&(o=i,r=t),e=_e(r)?r.call(e):r;}return e}function Zm(e,n,t){return e==null?e:Qn(e,n,t)}function Xm(e,n,t,o){return o=typeof o=="function"?o:s,e==null?e:Qn(e,n,t,o)}var ts=hr(q),os=hr(oe);function Jm(e,n,t){var o=w(e),i=o||en(e)||Bn(e);if(n=x(n,4),t==null){var r=e&&e.constructor;i?t=o?new r:[]:z(e)?t=_e(r)?Sn(Ct(e)):{}:t={};}return (i?me:De)(e,function(l,c,p){return n(t,l,c,p)}),t}function Qm(e,n){return e==null?true:qo(e,n)}function eh(e,n,t){return e==null?e:Xa(e,n,Xo(t))}function nh(e,n,t,o){return o=typeof o=="function"?o:s,e==null?e:Xa(e,n,Xo(t),o)}function Rn(e){return e==null?[]:Do(e,q(e))}function th(e){return e==null?[]:Do(e,oe(e))}function oh(e,n,t){return t===s&&(t=n,n=s),t!==s&&(t=ve(t),t=t===t?t:0),n!==s&&(n=ve(n),n=n===n?n:0),ln(ve(e),n,t)}function ih(e,n,t){return n=Ne(n),t===s?(t=n,n=0):t=Ne(t),e=ve(e),dd(e,n,t)}function ah(e,n,t){if(t&&typeof t!="boolean"&&Q(e,n,t)&&(n=t=s),t===s&&(typeof n=="boolean"?(t=n,n=s):typeof e=="boolean"&&(t=e,e=s)),e===s&&n===s?(e=0,n=1):(e=Ne(e),n===s?(n=e,e=0):n=Ne(n)),e>n){var o=e;e=n,n=o;}if(t||e%1||n%1){var i=ka();return Z(e+i*(n-e+Fl("1e-"+((i+"").length-1))),n)}return jo(e,n)}var rh=An(function(e,n,t){return n=n.toLowerCase(),e+(t?is(n):n)});function is(e){return yi(L(e).toLowerCase())}function as(e){return e=L(e),e&&e.replace(ll,Zl).replace(kl,"")}function sh(e,n,t){e=L(e),n=se(n);var o=e.length;t=t===s?o:ln(C(t),0,o);var i=t;return t-=n.length,t>=0&&e.slice(t,i)==n}function lh(e){return e=L(e),e&&Hs.test(e)?e.replace(Wi,Xl):e}function ch(e){return e=L(e),e&&qs.test(e)?e.replace(mo,"\\$&"):e}var dh=An(function(e,n,t){return e+(t?"-":"")+n.toLowerCase()}),ph=An(function(e,n,t){return e+(t?" ":"")+n.toLowerCase()}),uh=lr("toLowerCase");function mh(e,n,t){e=L(e),n=C(n);var o=n?Tn(e):0;if(!n||o>=n)return e;var i=(n-o)/2;return Ht(Dt(i),t)+e+Ht(At(i),t)}function hh(e,n,t){e=L(e),n=C(n);var o=n?Tn(e):0;return n&&o<n?e+Ht(n-o,t):e}function gh(e,n,t){e=L(e),n=C(n);var o=n?Tn(e):0;return n&&o<n?Ht(n-o,t)+e:e}function bh(e,n,t){return t||n==null?n=0:n&&(n=+n),Pc(L(e).replace(ho,""),n||0)}function fh(e,n,t){return (t?Q(e,n,t):n===s)?n=1:n=C(n),Yo(L(e),n)}function yh(){var e=arguments,n=L(e[0]);return e.length<3?n:n.replace(e[1],e[2])}var vh=An(function(e,n,t){return e+(t?"_":"")+n.toLowerCase()});function xh(e,n,t){return t&&typeof t!="number"&&Q(e,n,t)&&(n=t=s),t=t===s?Ae:t>>>0,t?(e=L(e),e&&(typeof n=="string"||n!=null&&!gi(n))&&(n=se(n),!n&&In(e))?Qe(Te(e),0,t):e.split(n,t)):[]}var Ih=An(function(e,n,t){return e+(t?" ":"")+yi(n)});function Th(e,n,t){return e=L(e),t=t==null?0:ln(C(t),0,e.length),n=se(n),e.slice(t,t+n.length)==n}function Ph(e,n,t){var o=a.templateSettings;t&&Q(e,n,t)&&(n=s),e=L(e),n=eo({},n,o,gr);var i=eo({},n.imports,o.imports,gr),r=q(i),l=Do(i,r),c,p,h=0,g=n.interpolate||mt,b="__p += '",f=Ro((n.escape||mt).source+"|"+g.source+"|"+(g===Fi?tl:mt).source+"|"+(n.evaluate||mt).source+"|$","g"),v="//# sourceURL="+(M.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++El+"]")+`
|
|
14
14
|
`;e.replace(f,function(T,A,R,ce,ee,de){return R||(R=ce),b+=e.slice(h,de).replace(cl,Jl),A&&(c=true,b+=`' +
|
|
15
15
|
__e(`+A+`) +
|
|
16
16
|
'`),ee&&(p=true,b+=`';
|
|
@@ -21,13 +21,13 @@ __p += '`),R&&(b+=`' +
|
|
|
21
21
|
`;var I=M.call(n,"variable")&&n.variable;if(!I)b=`with (obj) {
|
|
22
22
|
`+b+`
|
|
23
23
|
}
|
|
24
|
-
`;else if(el.test(I))throw new
|
|
24
|
+
`;else if(el.test(I))throw new P(xs);b=(p?b.replace(Vs,""):b).replace(zs,"$1").replace(_s,"$1;"),b="function("+(I||"obj")+`) {
|
|
25
25
|
`+(I?"":`obj || (obj = {});
|
|
26
26
|
`)+"var __t, __p = ''"+(c?", __e = _.escape":"")+(p?`, __j = Array.prototype.join;
|
|
27
27
|
function print() { __p += __j.call(arguments, '') }
|
|
28
28
|
`:`;
|
|
29
29
|
`)+b+`return __p
|
|
30
|
-
}`;var S=ss(function(){return L(r,v+"return "+b).apply(s,l)});if(S.source=b,hi(S))throw S;return S}function Ph(e){return E(e).toLowerCase()}function Ch(e){return E(e).toUpperCase()}function Sh(e,n,t){if(e=E(e),e&&(t||n===s))return ba(e);if(!e||!(n=se(n)))return e;var o=Te(e),i=Te(n),r=fa(o,i),l=ya(o,i)+1;return Qe(o,r,l).join("")}function kh(e,n,t){if(e=E(e),e&&(t||n===s))return e.slice(0,xa(e)+1);if(!e||!(n=se(n)))return e;var o=Te(e),i=ya(o,Te(n))+1;return Qe(o,0,i).join("")}function Ah(e,n,t){if(e=E(e),e&&(t||n===s))return e.replace(ho,"");if(!e||!(n=se(n)))return e;var o=Te(e),i=fa(o,Te(n));return Qe(o,i).join("")}function Dh(e,n){var t=Ts,o=ws;if(z(n)){var i="separator"in n?n.separator:i;t="length"in n?C(n.length):t,o="omission"in n?se(n.omission):o;}e=E(e);var r=e.length;if(In(e)){var l=Te(e);r=l.length;}if(t>=r)return e;var c=t-Tn(o);if(c<1)return o;var p=l?Qe(l,0,c).join(""):e.slice(0,c);if(i===s)return p+o;if(l&&(c+=p.length-c),gi(i)){if(e.slice(c).search(i)){var h,g=p;for(i.global||(i=Ro(i.source,E(Vi.exec(i))+"g")),i.lastIndex=0;h=i.exec(g);)var b=h.index;p=p.slice(0,b===s?c:b);}}else if(e.indexOf(se(i),c)!=c){var f=p.lastIndexOf(i);f>-1&&(p=p.slice(0,f));}return p+o}function Bh(e){return e=E(e),e&&Ns.test(e)?e.replace(Oi,ac):e}var Rh=An(function(e,n,t){return e+(t?" ":"")+n.toUpperCase()}),yi=lr("toUpperCase");function rs(e,n,t){return e=E(e),n=t?s:n,n===s?ec(e)?lc(e):jl(e):e.match(n)||[]}var ss=k(function(e,n){try{return ae(e,s,n)}catch(t){return hi(t)?t:new w(t)}}),Lh=Ve(function(e,n){return me(n,function(t){t=Re(t),We(e,t,ui(e[t],e));}),e});function Eh(e){var n=e==null?0:e.length,t=x();return e=n?V(e,function(o){if(typeof o[1]!="function")throw new he(K);return [t(o[0]),o[1]]}):[],k(function(o){for(var i=-1;++i<n;){var r=e[i];if(ae(r[0],this,o))return ae(r[1],this,o)}})}function Mh(e){return ad(be(e,He))}function vi(e){return function(){return e}}function Oh(e,n){return e==null||e!==e?n:e}var Wh=dr(),Fh=dr(true);function ie(e){return e}function xi(e){return _a(typeof e=="function"?e:be(e,He))}function Vh(e){return Ga(be(e,He))}function zh(e,n){return Ha(e,be(n,He))}var _h=k(function(e,n){return function(t){return Xn(t,e,n)}}),Nh=k(function(e,n){return function(t){return Xn(e,t,n)}});function Ii(e,n,t){var o=q(n),i=Ot(n,o);t==null&&!(z(n)&&(i.length||!o.length))&&(t=n,n=e,e=this,i=Ot(n,q(n)));var r=!(z(t)&&"chain"in t)||!!t.chain,l=_e(e);return me(i,function(c){var p=n[c];e[c]=p,l&&(e.prototype[c]=function(){var h=this.__chain__;if(r||h){var g=e(this.__wrapped__),b=g.__actions__=ne(this.__actions__);return b.push({func:p,args:arguments,thisArg:e}),g.__chain__=h,g}return p.apply(e,Ke([this.value()],arguments))});}),e}function Gh(){return Y._===this&&(Y._=hc),this}function Ti(){}function Hh(e){return e=C(e),k(function(n){return Ua(n,e)})}var Uh=Qo(V),jh=Qo(pa),Kh=Qo(Po);function ls(e){return ri(e)?Co(Re(e)):Td(e)}function Yh(e){return function(n){return e==null?s:cn(e,n)}}var qh=ur(),$h=ur(true);function wi(){return []}function Pi(){return false}function Zh(){return {}}function Xh(){return ""}function Jh(){return true}function Qh(e,n){if(e=C(e),e<1||e>Ue)return [];var t=Ae,o=Z(e,Ae);n=x(n),e-=Ae;for(var i=Ao(o,n);++t<e;)n(t);return i}function eg(e){return P(e)?V(e,Re):le(e)?[e]:ne(Ar(E(e)))}function ng(e){var n=++uc;return E(e)+n}var tg=Nt(function(e,n){return e+n},0),og=ei("ceil"),ig=Nt(function(e,n){return e/n},1),ag=ei("floor");function rg(e){return e&&e.length?Mt(e,ie,zo):s}function sg(e,n){return e&&e.length?Mt(e,x(n,2),zo):s}function lg(e){return ha(e,ie)}function cg(e,n){return ha(e,x(n,2))}function dg(e){return e&&e.length?Mt(e,ie,Ho):s}function pg(e,n){return e&&e.length?Mt(e,x(n,2),Ho):s}var ug=Nt(function(e,n){return e*n},1),mg=ei("round"),hg=Nt(function(e,n){return e-n},0);function gg(e){return e&&e.length?ko(e,ie):0}function bg(e,n){return e&&e.length?ko(e,x(n,2)):0}return a.after=Vu,a.ary=zr,a.assign=Cm,a.assignIn=Qr,a.assignInWith=eo,a.assignWith=Sm,a.at=km,a.before=_r,a.bind=ui,a.bindAll=Lh,a.bindKey=Nr,a.castArray=Zu,a.chain=Wr,a.chunk=ap,a.compact=rp,a.concat=sp,a.cond=Eh,a.conforms=Mh,a.constant=vi,a.countBy=gu,a.create=Am,a.curry=Gr,a.curryRight=Hr,a.debounce=Ur,a.defaults=Dm,a.defaultsDeep=Bm,a.defer=zu,a.delay=_u,a.difference=lp,a.differenceBy=cp,a.differenceWith=dp,a.drop=pp,a.dropRight=up,a.dropRightWhile=mp,a.dropWhile=hp,a.fill=gp,a.filter=fu,a.flatMap=xu,a.flatMapDeep=Iu,a.flatMapDepth=Tu,a.flatten=Lr,a.flattenDeep=bp,a.flattenDepth=fp,a.flip=Nu,a.flow=Wh,a.flowRight=Fh,a.fromPairs=yp,a.functions=Fm,a.functionsIn=Vm,a.groupBy=wu,a.initial=xp,a.intersection=Ip,a.intersectionBy=Tp,a.intersectionWith=wp,a.invert=_m,a.invertBy=Nm,a.invokeMap=Cu,a.iteratee=xi,a.keyBy=Su,a.keys=q,a.keysIn=oe,a.map=qt,a.mapKeys=Hm,a.mapValues=Um,a.matches=Vh,a.matchesProperty=zh,a.memoize=Zt,a.merge=jm,a.mergeWith=es,a.method=_h,a.methodOf=Nh,a.mixin=Ii,a.negate=Xt,a.nthArg=Hh,a.omit=Km,a.omitBy=Ym,a.once=Gu,a.orderBy=ku,a.over=Uh,a.overArgs=Hu,a.overEvery=jh,a.overSome=Kh,a.partial=mi,a.partialRight=jr,a.partition=Au,a.pick=qm,a.pickBy=ns,a.property=ls,a.propertyOf=Yh,a.pull=kp,a.pullAll=Mr,a.pullAllBy=Ap,a.pullAllWith=Dp,a.pullAt=Bp,a.range=qh,a.rangeRight=$h,a.rearg=Uu,a.reject=Ru,a.remove=Rp,a.rest=ju,a.reverse=di,a.sampleSize=Eu,a.set=Zm,a.setWith=Xm,a.shuffle=Mu,a.slice=Lp,a.sortBy=Fu,a.sortedUniq=zp,a.sortedUniqBy=_p,a.split=xh,a.spread=Ku,a.tail=Np,a.take=Gp,a.takeRight=Hp,a.takeRightWhile=Up,a.takeWhile=jp,a.tap=ru,a.throttle=Yu,a.thru=Yt,a.toArray=Zr,a.toPairs=ts,a.toPairsIn=os,a.toPath=eg,a.toPlainObject=Jr,a.transform=Jm,a.unary=qu,a.union=Kp,a.unionBy=Yp,a.unionWith=qp,a.uniq=$p,a.uniqBy=Zp,a.uniqWith=Xp,a.unset=Qm,a.unzip=pi,a.unzipWith=Or,a.update=eh,a.updateWith=nh,a.values=Rn,a.valuesIn=th,a.without=Jp,a.words=rs,a.wrap=$u,a.xor=Qp,a.xorBy=eu,a.xorWith=nu,a.zip=tu,a.zipObject=ou,a.zipObjectDeep=iu,a.zipWith=au,a.entries=ts,a.entriesIn=os,a.extend=Qr,a.extendWith=eo,Ii(a,a),a.add=tg,a.attempt=ss,a.camelCase=rh,a.capitalize=is,a.ceil=og,a.clamp=oh,a.clone=Xu,a.cloneDeep=Qu,a.cloneDeepWith=em,a.cloneWith=Ju,a.conformsTo=nm,a.deburr=as,a.defaultTo=Oh,a.divide=ig,a.endsWith=sh,a.eq=Pe,a.escape=lh,a.escapeRegExp=ch,a.every=bu,a.find=yu,a.findIndex=Br,a.findKey=Rm,a.findLast=vu,a.findLastIndex=Rr,a.findLastKey=Lm,a.floor=ag,a.forEach=Fr,a.forEachRight=Vr,a.forIn=Em,a.forInRight=Mm,a.forOwn=Om,a.forOwnRight=Wm,a.get=bi,a.gt=tm,a.gte=om,a.has=zm,a.hasIn=fi,a.head=Er,a.identity=ie,a.includes=Pu,a.indexOf=vp,a.inRange=ih,a.invoke=Gm,a.isArguments=un,a.isArray=P,a.isArrayBuffer=im,a.isArrayLike=te,a.isArrayLikeObject=G,a.isBoolean=am,a.isBuffer=en,a.isDate=rm,a.isElement=sm,a.isEmpty=lm,a.isEqual=cm,a.isEqualWith=dm,a.isError=hi,a.isFinite=pm,a.isFunction=_e,a.isInteger=Kr,a.isLength=Jt,a.isMap=Yr,a.isMatch=um,a.isMatchWith=mm,a.isNaN=hm,a.isNative=gm,a.isNil=fm,a.isNull=bm,a.isNumber=qr,a.isObject=z,a.isObjectLike=_,a.isPlainObject=ot,a.isRegExp=gi,a.isSafeInteger=ym,a.isSet=$r,a.isString=Qt,a.isSymbol=le,a.isTypedArray=Bn,a.isUndefined=vm,a.isWeakMap=xm,a.isWeakSet=Im,a.join=Pp,a.kebabCase=dh,a.last=ye,a.lastIndexOf=Cp,a.lowerCase=ph,a.lowerFirst=uh,a.lt=Tm,a.lte=wm,a.max=rg,a.maxBy=sg,a.mean=lg,a.meanBy=cg,a.min=dg,a.minBy=pg,a.stubArray=wi,a.stubFalse=Pi,a.stubObject=Zh,a.stubString=Xh,a.stubTrue=Jh,a.multiply=ug,a.nth=Sp,a.noConflict=Gh,a.noop=Ti,a.now=$t,a.pad=mh,a.padEnd=hh,a.padStart=gh,a.parseInt=bh,a.random=ah,a.reduce=Du,a.reduceRight=Bu,a.repeat=fh,a.replace=yh,a.result=$m,a.round=mg,a.runInContext=d,a.sample=Lu,a.size=Ou,a.snakeCase=vh,a.some=Wu,a.sortedIndex=Ep,a.sortedIndexBy=Mp,a.sortedIndexOf=Op,a.sortedLastIndex=Wp,a.sortedLastIndexBy=Fp,a.sortedLastIndexOf=Vp,a.startCase=Ih,a.startsWith=Th,a.subtract=hg,a.sum=gg,a.sumBy=bg,a.template=wh,a.times=Qh,a.toFinite=Ne,a.toInteger=C,a.toLength=Xr,a.toLower=Ph,a.toNumber=ve,a.toSafeInteger=Pm,a.toString=E,a.toUpper=Ch,a.trim=Sh,a.trimEnd=kh,a.trimStart=Ah,a.truncate=Dh,a.unescape=Bh,a.uniqueId=ng,a.upperCase=Rh,a.upperFirst=yi,a.each=Fr,a.eachRight=Vr,a.first=Er,Ii(a,function(){var e={};return De(a,function(n,t){M.call(a.prototype,t)||(e[t]=n);}),e}(),{chain:false}),a.VERSION=N,me(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){a[e].placeholder=a;}),me(["drop","take"],function(e,n){B.prototype[e]=function(t){t=t===s?1:j(C(t),0);var o=this.__filtered__&&!n?new B(this):this.clone();return o.__filtered__?o.__takeCount__=Z(t,o.__takeCount__):o.__views__.push({size:Z(t,Ae),type:e+(o.__dir__<0?"Right":"")}),o},B.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()};}),me(["filter","map","takeWhile"],function(e,n){var t=n+1,o=t==Li||t==ks;B.prototype[e]=function(i){var r=this.clone();return r.__iteratees__.push({iteratee:x(i,3),type:t}),r.__filtered__=r.__filtered__||o,r};}),me(["head","last"],function(e,n){var t="take"+(n?"Right":"");B.prototype[e]=function(){return this[t](1).value()[0]};}),me(["initial","tail"],function(e,n){var t="drop"+(n?"":"Right");B.prototype[e]=function(){return this.__filtered__?new B(this):this[t](1)};}),B.prototype.compact=function(){return this.filter(ie)},B.prototype.find=function(e){return this.filter(e).head()},B.prototype.findLast=function(e){return this.reverse().find(e)},B.prototype.invokeMap=k(function(e,n){return typeof e=="function"?new B(this):this.map(function(t){return Xn(t,e,n)})}),B.prototype.reject=function(e){return this.filter(Xt(x(e)))},B.prototype.slice=function(e,n){e=C(e);var t=this;return t.__filtered__&&(e>0||n<0)?new B(t):(e<0?t=t.takeRight(-e):e&&(t=t.drop(e)),n!==s&&(n=C(n),t=n<0?t.dropRight(-n):t.take(n-e)),t)},B.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},B.prototype.toArray=function(){return this.take(Ae)},De(B.prototype,function(e,n){var t=/^(?:filter|find|map|reject)|While$/.test(n),o=/^(?:head|last)$/.test(n),i=a[o?"take"+(n=="last"?"Right":""):n],r=o||/^find/.test(n);i&&(a.prototype[n]=function(){var l=this.__wrapped__,c=o?[1]:arguments,p=l instanceof B,h=c[0],g=p||P(l),b=function(A){var R=i.apply(a,Ke([A],c));return o&&f?R[0]:R};g&&t&&typeof h=="function"&&h.length!=1&&(p=g=false);var f=this.__chain__,v=!!this.__actions__.length,I=r&&!f,S=p&&!v;if(!r&&g){l=S?l:new B(this);var T=e.apply(l,c);return T.__actions__.push({func:Yt,args:[b],thisArg:s}),new ge(T,f)}return I&&S?e.apply(this,c):(T=this.thru(b),I?o?T.value()[0]:T.value():T)});}),me(["pop","push","shift","sort","splice","unshift"],function(e){var n=vt[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);a.prototype[e]=function(){var i=arguments;if(o&&!this.__chain__){var r=this.value();return n.apply(P(r)?r:[],i)}return this[t](function(l){return n.apply(P(l)?l:[],i)})};}),De(B.prototype,function(e,n){var t=a[n];if(t){var o=t.name+"";M.call(Cn,o)||(Cn[o]=[]),Cn[o].push({name:n,func:t});}}),Cn[_t(s,nn).name]=[{name:"wrapper",func:s}],B.prototype.clone=Bc,B.prototype.reverse=Rc,B.prototype.value=Lc,a.prototype.at=su,a.prototype.chain=lu,a.prototype.commit=cu,a.prototype.next=du,a.prototype.plant=uu,a.prototype.reverse=mu,a.prototype.toJSON=a.prototype.valueOf=a.prototype.value=hu,a.prototype.first=a.prototype.head,Un&&(a.prototype[Un]=pu),a},qe=cc();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Y._=qe,define(function(){return qe})):on?((on.exports=qe)._=qe,xo._=qe):Y._=qe;}).call(Ln);});var vs=Pg(ps());var En={gettingStarted:`# Getting started
|
|
30
|
+
}`;var S=ss(function(){return E(r,v+"return "+b).apply(s,l)});if(S.source=b,hi(S))throw S;return S}function wh(e){return L(e).toLowerCase()}function Ch(e){return L(e).toUpperCase()}function Sh(e,n,t){if(e=L(e),e&&(t||n===s))return ba(e);if(!e||!(n=se(n)))return e;var o=Te(e),i=Te(n),r=fa(o,i),l=ya(o,i)+1;return Qe(o,r,l).join("")}function kh(e,n,t){if(e=L(e),e&&(t||n===s))return e.slice(0,xa(e)+1);if(!e||!(n=se(n)))return e;var o=Te(e),i=ya(o,Te(n))+1;return Qe(o,0,i).join("")}function Ah(e,n,t){if(e=L(e),e&&(t||n===s))return e.replace(ho,"");if(!e||!(n=se(n)))return e;var o=Te(e),i=fa(o,Te(n));return Qe(o,i).join("")}function Dh(e,n){var t=Ts,o=Ps;if(z(n)){var i="separator"in n?n.separator:i;t="length"in n?C(n.length):t,o="omission"in n?se(n.omission):o;}e=L(e);var r=e.length;if(In(e)){var l=Te(e);r=l.length;}if(t>=r)return e;var c=t-Tn(o);if(c<1)return o;var p=l?Qe(l,0,c).join(""):e.slice(0,c);if(i===s)return p+o;if(l&&(c+=p.length-c),gi(i)){if(e.slice(c).search(i)){var h,g=p;for(i.global||(i=Ro(i.source,L(Vi.exec(i))+"g")),i.lastIndex=0;h=i.exec(g);)var b=h.index;p=p.slice(0,b===s?c:b);}}else if(e.indexOf(se(i),c)!=c){var f=p.lastIndexOf(i);f>-1&&(p=p.slice(0,f));}return p+o}function Bh(e){return e=L(e),e&&Ns.test(e)?e.replace(Oi,ac):e}var Rh=An(function(e,n,t){return e+(t?" ":"")+n.toUpperCase()}),yi=lr("toUpperCase");function rs(e,n,t){return e=L(e),n=t?s:n,n===s?ec(e)?lc(e):jl(e):e.match(n)||[]}var ss=k(function(e,n){try{return ae(e,s,n)}catch(t){return hi(t)?t:new P(t)}}),Eh=Ve(function(e,n){return me(n,function(t){t=Re(t),We(e,t,ui(e[t],e));}),e});function Lh(e){var n=e==null?0:e.length,t=x();return e=n?V(e,function(o){if(typeof o[1]!="function")throw new he(Y);return [t(o[0]),o[1]]}):[],k(function(o){for(var i=-1;++i<n;){var r=e[i];if(ae(r[0],this,o))return ae(r[1],this,o)}})}function Mh(e){return ad(be(e,Ge))}function vi(e){return function(){return e}}function Oh(e,n){return e==null||e!==e?n:e}var Wh=dr(),Fh=dr(true);function ie(e){return e}function xi(e){return _a(typeof e=="function"?e:be(e,Ge))}function Vh(e){return Ha(be(e,Ge))}function zh(e,n){return Ga(e,be(n,Ge))}var _h=k(function(e,n){return function(t){return Xn(t,e,n)}}),Nh=k(function(e,n){return function(t){return Xn(e,t,n)}});function Ii(e,n,t){var o=q(n),i=Ot(n,o);t==null&&!(z(n)&&(i.length||!o.length))&&(t=n,n=e,e=this,i=Ot(n,q(n)));var r=!(z(t)&&"chain"in t)||!!t.chain,l=_e(e);return me(i,function(c){var p=n[c];e[c]=p,l&&(e.prototype[c]=function(){var h=this.__chain__;if(r||h){var g=e(this.__wrapped__),b=g.__actions__=ne(this.__actions__);return b.push({func:p,args:arguments,thisArg:e}),g.__chain__=h,g}return p.apply(e,Ye([this.value()],arguments))});}),e}function Hh(){return K._===this&&(K._=hc),this}function Ti(){}function Gh(e){return e=C(e),k(function(n){return Ua(n,e)})}var Uh=Qo(V),jh=Qo(pa),Yh=Qo(wo);function ls(e){return ri(e)?Co(Re(e)):Td(e)}function Kh(e){return function(n){return e==null?s:cn(e,n)}}var qh=ur(),$h=ur(true);function Pi(){return []}function wi(){return false}function Zh(){return {}}function Xh(){return ""}function Jh(){return true}function Qh(e,n){if(e=C(e),e<1||e>Ue)return [];var t=Ae,o=Z(e,Ae);n=x(n),e-=Ae;for(var i=Ao(o,n);++t<e;)n(t);return i}function eg(e){return w(e)?V(e,Re):le(e)?[e]:ne(Ar(L(e)))}function ng(e){var n=++uc;return L(e)+n}var tg=Nt(function(e,n){return e+n},0),og=ei("ceil"),ig=Nt(function(e,n){return e/n},1),ag=ei("floor");function rg(e){return e&&e.length?Mt(e,ie,zo):s}function sg(e,n){return e&&e.length?Mt(e,x(n,2),zo):s}function lg(e){return ha(e,ie)}function cg(e,n){return ha(e,x(n,2))}function dg(e){return e&&e.length?Mt(e,ie,Go):s}function pg(e,n){return e&&e.length?Mt(e,x(n,2),Go):s}var ug=Nt(function(e,n){return e*n},1),mg=ei("round"),hg=Nt(function(e,n){return e-n},0);function gg(e){return e&&e.length?ko(e,ie):0}function bg(e,n){return e&&e.length?ko(e,x(n,2)):0}return a.after=Vu,a.ary=zr,a.assign=Cm,a.assignIn=Qr,a.assignInWith=eo,a.assignWith=Sm,a.at=km,a.before=_r,a.bind=ui,a.bindAll=Eh,a.bindKey=Nr,a.castArray=Zu,a.chain=Wr,a.chunk=ap,a.compact=rp,a.concat=sp,a.cond=Lh,a.conforms=Mh,a.constant=vi,a.countBy=gu,a.create=Am,a.curry=Hr,a.curryRight=Gr,a.debounce=Ur,a.defaults=Dm,a.defaultsDeep=Bm,a.defer=zu,a.delay=_u,a.difference=lp,a.differenceBy=cp,a.differenceWith=dp,a.drop=pp,a.dropRight=up,a.dropRightWhile=mp,a.dropWhile=hp,a.fill=gp,a.filter=fu,a.flatMap=xu,a.flatMapDeep=Iu,a.flatMapDepth=Tu,a.flatten=Er,a.flattenDeep=bp,a.flattenDepth=fp,a.flip=Nu,a.flow=Wh,a.flowRight=Fh,a.fromPairs=yp,a.functions=Fm,a.functionsIn=Vm,a.groupBy=Pu,a.initial=xp,a.intersection=Ip,a.intersectionBy=Tp,a.intersectionWith=Pp,a.invert=_m,a.invertBy=Nm,a.invokeMap=Cu,a.iteratee=xi,a.keyBy=Su,a.keys=q,a.keysIn=oe,a.map=qt,a.mapKeys=Gm,a.mapValues=Um,a.matches=Vh,a.matchesProperty=zh,a.memoize=Zt,a.merge=jm,a.mergeWith=es,a.method=_h,a.methodOf=Nh,a.mixin=Ii,a.negate=Xt,a.nthArg=Gh,a.omit=Ym,a.omitBy=Km,a.once=Hu,a.orderBy=ku,a.over=Uh,a.overArgs=Gu,a.overEvery=jh,a.overSome=Yh,a.partial=mi,a.partialRight=jr,a.partition=Au,a.pick=qm,a.pickBy=ns,a.property=ls,a.propertyOf=Kh,a.pull=kp,a.pullAll=Mr,a.pullAllBy=Ap,a.pullAllWith=Dp,a.pullAt=Bp,a.range=qh,a.rangeRight=$h,a.rearg=Uu,a.reject=Ru,a.remove=Rp,a.rest=ju,a.reverse=di,a.sampleSize=Lu,a.set=Zm,a.setWith=Xm,a.shuffle=Mu,a.slice=Ep,a.sortBy=Fu,a.sortedUniq=zp,a.sortedUniqBy=_p,a.split=xh,a.spread=Yu,a.tail=Np,a.take=Hp,a.takeRight=Gp,a.takeRightWhile=Up,a.takeWhile=jp,a.tap=ru,a.throttle=Ku,a.thru=Kt,a.toArray=Zr,a.toPairs=ts,a.toPairsIn=os,a.toPath=eg,a.toPlainObject=Jr,a.transform=Jm,a.unary=qu,a.union=Yp,a.unionBy=Kp,a.unionWith=qp,a.uniq=$p,a.uniqBy=Zp,a.uniqWith=Xp,a.unset=Qm,a.unzip=pi,a.unzipWith=Or,a.update=eh,a.updateWith=nh,a.values=Rn,a.valuesIn=th,a.without=Jp,a.words=rs,a.wrap=$u,a.xor=Qp,a.xorBy=eu,a.xorWith=nu,a.zip=tu,a.zipObject=ou,a.zipObjectDeep=iu,a.zipWith=au,a.entries=ts,a.entriesIn=os,a.extend=Qr,a.extendWith=eo,Ii(a,a),a.add=tg,a.attempt=ss,a.camelCase=rh,a.capitalize=is,a.ceil=og,a.clamp=oh,a.clone=Xu,a.cloneDeep=Qu,a.cloneDeepWith=em,a.cloneWith=Ju,a.conformsTo=nm,a.deburr=as,a.defaultTo=Oh,a.divide=ig,a.endsWith=sh,a.eq=we,a.escape=lh,a.escapeRegExp=ch,a.every=bu,a.find=yu,a.findIndex=Br,a.findKey=Rm,a.findLast=vu,a.findLastIndex=Rr,a.findLastKey=Em,a.floor=ag,a.forEach=Fr,a.forEachRight=Vr,a.forIn=Lm,a.forInRight=Mm,a.forOwn=Om,a.forOwnRight=Wm,a.get=bi,a.gt=tm,a.gte=om,a.has=zm,a.hasIn=fi,a.head=Lr,a.identity=ie,a.includes=wu,a.indexOf=vp,a.inRange=ih,a.invoke=Hm,a.isArguments=un,a.isArray=w,a.isArrayBuffer=im,a.isArrayLike=te,a.isArrayLikeObject=H,a.isBoolean=am,a.isBuffer=en,a.isDate=rm,a.isElement=sm,a.isEmpty=lm,a.isEqual=cm,a.isEqualWith=dm,a.isError=hi,a.isFinite=pm,a.isFunction=_e,a.isInteger=Yr,a.isLength=Jt,a.isMap=Kr,a.isMatch=um,a.isMatchWith=mm,a.isNaN=hm,a.isNative=gm,a.isNil=fm,a.isNull=bm,a.isNumber=qr,a.isObject=z,a.isObjectLike=_,a.isPlainObject=ot,a.isRegExp=gi,a.isSafeInteger=ym,a.isSet=$r,a.isString=Qt,a.isSymbol=le,a.isTypedArray=Bn,a.isUndefined=vm,a.isWeakMap=xm,a.isWeakSet=Im,a.join=wp,a.kebabCase=dh,a.last=ye,a.lastIndexOf=Cp,a.lowerCase=ph,a.lowerFirst=uh,a.lt=Tm,a.lte=Pm,a.max=rg,a.maxBy=sg,a.mean=lg,a.meanBy=cg,a.min=dg,a.minBy=pg,a.stubArray=Pi,a.stubFalse=wi,a.stubObject=Zh,a.stubString=Xh,a.stubTrue=Jh,a.multiply=ug,a.nth=Sp,a.noConflict=Hh,a.noop=Ti,a.now=$t,a.pad=mh,a.padEnd=hh,a.padStart=gh,a.parseInt=bh,a.random=ah,a.reduce=Du,a.reduceRight=Bu,a.repeat=fh,a.replace=yh,a.result=$m,a.round=mg,a.runInContext=d,a.sample=Eu,a.size=Ou,a.snakeCase=vh,a.some=Wu,a.sortedIndex=Lp,a.sortedIndexBy=Mp,a.sortedIndexOf=Op,a.sortedLastIndex=Wp,a.sortedLastIndexBy=Fp,a.sortedLastIndexOf=Vp,a.startCase=Ih,a.startsWith=Th,a.subtract=hg,a.sum=gg,a.sumBy=bg,a.template=Ph,a.times=Qh,a.toFinite=Ne,a.toInteger=C,a.toLength=Xr,a.toLower=wh,a.toNumber=ve,a.toSafeInteger=wm,a.toString=L,a.toUpper=Ch,a.trim=Sh,a.trimEnd=kh,a.trimStart=Ah,a.truncate=Dh,a.unescape=Bh,a.uniqueId=ng,a.upperCase=Rh,a.upperFirst=yi,a.each=Fr,a.eachRight=Vr,a.first=Lr,Ii(a,function(){var e={};return De(a,function(n,t){M.call(a.prototype,t)||(e[t]=n);}),e}(),{chain:false}),a.VERSION=N,me(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){a[e].placeholder=a;}),me(["drop","take"],function(e,n){B.prototype[e]=function(t){t=t===s?1:j(C(t),0);var o=this.__filtered__&&!n?new B(this):this.clone();return o.__filtered__?o.__takeCount__=Z(t,o.__takeCount__):o.__views__.push({size:Z(t,Ae),type:e+(o.__dir__<0?"Right":"")}),o},B.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()};}),me(["filter","map","takeWhile"],function(e,n){var t=n+1,o=t==Ei||t==ks;B.prototype[e]=function(i){var r=this.clone();return r.__iteratees__.push({iteratee:x(i,3),type:t}),r.__filtered__=r.__filtered__||o,r};}),me(["head","last"],function(e,n){var t="take"+(n?"Right":"");B.prototype[e]=function(){return this[t](1).value()[0]};}),me(["initial","tail"],function(e,n){var t="drop"+(n?"":"Right");B.prototype[e]=function(){return this.__filtered__?new B(this):this[t](1)};}),B.prototype.compact=function(){return this.filter(ie)},B.prototype.find=function(e){return this.filter(e).head()},B.prototype.findLast=function(e){return this.reverse().find(e)},B.prototype.invokeMap=k(function(e,n){return typeof e=="function"?new B(this):this.map(function(t){return Xn(t,e,n)})}),B.prototype.reject=function(e){return this.filter(Xt(x(e)))},B.prototype.slice=function(e,n){e=C(e);var t=this;return t.__filtered__&&(e>0||n<0)?new B(t):(e<0?t=t.takeRight(-e):e&&(t=t.drop(e)),n!==s&&(n=C(n),t=n<0?t.dropRight(-n):t.take(n-e)),t)},B.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},B.prototype.toArray=function(){return this.take(Ae)},De(B.prototype,function(e,n){var t=/^(?:filter|find|map|reject)|While$/.test(n),o=/^(?:head|last)$/.test(n),i=a[o?"take"+(n=="last"?"Right":""):n],r=o||/^find/.test(n);i&&(a.prototype[n]=function(){var l=this.__wrapped__,c=o?[1]:arguments,p=l instanceof B,h=c[0],g=p||w(l),b=function(A){var R=i.apply(a,Ye([A],c));return o&&f?R[0]:R};g&&t&&typeof h=="function"&&h.length!=1&&(p=g=false);var f=this.__chain__,v=!!this.__actions__.length,I=r&&!f,S=p&&!v;if(!r&&g){l=S?l:new B(this);var T=e.apply(l,c);return T.__actions__.push({func:Kt,args:[b],thisArg:s}),new ge(T,f)}return I&&S?e.apply(this,c):(T=this.thru(b),I?o?T.value()[0]:T.value():T)});}),me(["pop","push","shift","sort","splice","unshift"],function(e){var n=vt[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);a.prototype[e]=function(){var i=arguments;if(o&&!this.__chain__){var r=this.value();return n.apply(w(r)?r:[],i)}return this[t](function(l){return n.apply(w(l)?l:[],i)})};}),De(B.prototype,function(e,n){var t=a[n];if(t){var o=t.name+"";M.call(Cn,o)||(Cn[o]=[]),Cn[o].push({name:n,func:t});}}),Cn[_t(s,nn).name]=[{name:"wrapper",func:s}],B.prototype.clone=Bc,B.prototype.reverse=Rc,B.prototype.value=Ec,a.prototype.at=su,a.prototype.chain=lu,a.prototype.commit=cu,a.prototype.next=du,a.prototype.plant=uu,a.prototype.reverse=mu,a.prototype.toJSON=a.prototype.valueOf=a.prototype.value=hu,a.prototype.first=a.prototype.head,Un&&(a.prototype[Un]=pu),a},qe=cc();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(K._=qe,define(function(){return qe})):on?((on.exports=qe)._=qe,xo._=qe):K._=qe;}).call(En);});var vs=wg(ps());var Ln={gettingStarted:`# Getting started
|
|
31
31
|
Install the packages required for using Baseline UI with the following command:
|
|
32
32
|
\`\`\`bash
|
|
33
33
|
npm install @baseline-ui/core @baseline-ui/tokens
|
|
@@ -9933,7 +9933,12 @@ import { ModalContent } from "../ModalContent";
|
|
|
9933
9933
|
import { ModalTrigger } from "../ModalTrigger";
|
|
9934
9934
|
import { Box } from "../../Box";
|
|
9935
9935
|
import type { ModalContentProps, ModalProps } from "../Modal.types";
|
|
9936
|
-
|
|
9936
|
+
interface TestComponentProps {
|
|
9937
|
+
enableInert?: boolean;
|
|
9938
|
+
}
|
|
9939
|
+
export const ModalPortalExample: React.FC<TestComponentProps> = ({
|
|
9940
|
+
enableInert,
|
|
9941
|
+
}) => {
|
|
9937
9942
|
const [container, setContainer] = useState<HTMLDivElement | null>(null);
|
|
9938
9943
|
return (
|
|
9939
9944
|
<>
|
|
@@ -9944,6 +9949,7 @@ export const ModalPortalExample = () => {
|
|
|
9944
9949
|
<ModalContent
|
|
9945
9950
|
portalContainer={container || undefined}
|
|
9946
9951
|
data-block-id="modal-content"
|
|
9952
|
+
UNSAFE_enableInert={enableInert}
|
|
9947
9953
|
>
|
|
9948
9954
|
<div data-testid="modal-content">Content</div>
|
|
9949
9955
|
</ModalContent>
|
|
@@ -9958,15 +9964,15 @@ export const ModalPortalExample = () => {
|
|
|
9958
9964
|
);
|
|
9959
9965
|
};
|
|
9960
9966
|
export const ModalDrawerExample: React.FC<
|
|
9961
|
-
Omit<ModalProps & ModalContentProps, "children">
|
|
9962
|
-
> = (args) => {
|
|
9967
|
+
Omit<ModalProps & ModalContentProps, "children"> & TestComponentProps
|
|
9968
|
+
> = ({ enableInert, ...args }) => {
|
|
9963
9969
|
const id = useId();
|
|
9964
9970
|
return (
|
|
9965
9971
|
<Modal {...args}>
|
|
9966
9972
|
<ModalTrigger>
|
|
9967
9973
|
<ActionButton label="Open Drawer" />
|
|
9968
9974
|
</ModalTrigger>
|
|
9969
|
-
<ModalContent {...args}>
|
|
9975
|
+
<ModalContent {...args} UNSAFE_enableInert={enableInert}>
|
|
9970
9976
|
<Dialog
|
|
9971
9977
|
inheritDrawer={true}
|
|
9972
9978
|
size="lg"
|
|
@@ -10001,13 +10007,15 @@ const items = Array.from({ length: 3 }).map((_, i) => ({
|
|
|
10001
10007
|
id: \`outside-\${i}\`,
|
|
10002
10008
|
label: \`\${i}. Click on me\`,
|
|
10003
10009
|
}));
|
|
10004
|
-
export const SelectInsideModalExample = (
|
|
10010
|
+
export const SelectInsideModalExample: React.FC<TestComponentProps> = ({
|
|
10011
|
+
enableInert,
|
|
10012
|
+
}) => {
|
|
10005
10013
|
return (
|
|
10006
10014
|
<Modal>
|
|
10007
10015
|
<ModalTrigger>
|
|
10008
10016
|
<ActionButton label="click me to open dialog" />
|
|
10009
10017
|
</ModalTrigger>
|
|
10010
|
-
<ModalContent>
|
|
10018
|
+
<ModalContent UNSAFE_enableInert={enableInert}>
|
|
10011
10019
|
<Dialog>
|
|
10012
10020
|
<Select items={items} placeholder="Select me" />
|
|
10013
10021
|
</Dialog>
|
|
@@ -10015,7 +10023,9 @@ export const SelectInsideModalExample = () => {
|
|
|
10015
10023
|
</Modal>
|
|
10016
10024
|
);
|
|
10017
10025
|
};
|
|
10018
|
-
export const UncontrolledInteractionOutsideExample: React.FC
|
|
10026
|
+
export const UncontrolledInteractionOutsideExample: React.FC<
|
|
10027
|
+
TestComponentProps
|
|
10028
|
+
> = ({ enableInert }) => {
|
|
10019
10029
|
return (
|
|
10020
10030
|
<Box display="flex" flexDirection="row" gap="lg">
|
|
10021
10031
|
<ActionButton
|
|
@@ -10037,6 +10047,7 @@ export const UncontrolledInteractionOutsideExample: React.FC = () => {
|
|
|
10037
10047
|
"should-close-on-interact-outside",
|
|
10038
10048
|
);
|
|
10039
10049
|
}}
|
|
10050
|
+
UNSAFE_enableInert={enableInert}
|
|
10040
10051
|
>
|
|
10041
10052
|
<Dialog>
|
|
10042
10053
|
<Text>Modal</Text>
|
|
@@ -10055,18 +10066,16 @@ export const UncontrolledInteractionOutsideExample: React.FC = () => {
|
|
|
10055
10066
|
</Box>
|
|
10056
10067
|
);
|
|
10057
10068
|
};
|
|
10058
|
-
export const LongModalExample
|
|
10059
|
-
defaultOpen
|
|
10060
|
-
}
|
|
10061
|
-
defaultOpen?: boolean;
|
|
10062
|
-
}) => {
|
|
10069
|
+
export const LongModalExample: React.FC<
|
|
10070
|
+
TestComponentProps & { defaultOpen?: boolean }
|
|
10071
|
+
> = ({ defaultOpen = true, enableInert }) => {
|
|
10063
10072
|
const id = useId();
|
|
10064
10073
|
return (
|
|
10065
10074
|
<Modal defaultOpen={defaultOpen}>
|
|
10066
10075
|
<ModalTrigger>
|
|
10067
10076
|
<ActionButton label="Open Modal" />
|
|
10068
10077
|
</ModalTrigger>
|
|
10069
|
-
<ModalContent>
|
|
10078
|
+
<ModalContent UNSAFE_enableInert={enableInert}>
|
|
10070
10079
|
<Dialog aria-labelledby={id}>
|
|
10071
10080
|
<VisuallyHidden>
|
|
10072
10081
|
<Text id={id}>List of items</Text>
|
|
@@ -10088,10 +10097,30 @@ export const LongModalExample = ({
|
|
|
10088
10097
|
* Example with form controls inside a Modal. Used to verify pointer
|
|
10089
10098
|
* interactions work correctly with all input devices.
|
|
10090
10099
|
*/
|
|
10091
|
-
export const FormControlsInModalExample
|
|
10100
|
+
export const FormControlsInModalExample: React.FC<
|
|
10101
|
+
TestComponentProps & { defaultOpen?: boolean }
|
|
10102
|
+
> = ({ enableInert, defaultOpen = false }) => {
|
|
10092
10103
|
return (
|
|
10093
|
-
<
|
|
10094
|
-
<
|
|
10104
|
+
<Box display="flex" flexDirection="column" gap="lg" padding="lg">
|
|
10105
|
+
<Text>
|
|
10106
|
+
Background controls (non-interactive when modal is open with inert):
|
|
10107
|
+
</Text>
|
|
10108
|
+
<Box display="flex" flexDirection="column" gap="md">
|
|
10109
|
+
<TextInput label="Background input" placeholder="Try typing here..." />
|
|
10110
|
+
<Checkbox label="Background checkbox" />
|
|
10111
|
+
<ActionButton
|
|
10112
|
+
label="Background button"
|
|
10113
|
+
variant="secondary"
|
|
10114
|
+
onPress={() => {
|
|
10115
|
+
alert("Background button clicked!");
|
|
10116
|
+
}}
|
|
10117
|
+
/>
|
|
10118
|
+
</Box>
|
|
10119
|
+
<Modal defaultOpen={defaultOpen}>
|
|
10120
|
+
<ModalTrigger>
|
|
10121
|
+
<ActionButton label="Open Modal" variant="primary" />
|
|
10122
|
+
</ModalTrigger>
|
|
10123
|
+
<ModalContent UNSAFE_enableInert={enableInert}>
|
|
10095
10124
|
<Dialog
|
|
10096
10125
|
className={sprinkles({
|
|
10097
10126
|
padding: "lg",
|
|
@@ -10137,6 +10166,7 @@ export const FormControlsInModalExample = () => {
|
|
|
10137
10166
|
</Dialog>
|
|
10138
10167
|
</ModalContent>
|
|
10139
10168
|
</Modal>
|
|
10169
|
+
</Box>
|
|
10140
10170
|
);
|
|
10141
10171
|
};`},similarTo:[],figmaUrl:null},ModalContent:{id:"core-overlays-modal-modalcontent",breadcrumb:"Core/Overlays/Modal",importStatement:`import {
|
|
10142
10172
|
DialogExample,
|
|
@@ -10264,7 +10294,7 @@ isKeyboardDismissDisabled?: boolean | ((isDrawer: boolean) => boolean)
|
|
|
10264
10294
|
* @default false
|
|
10265
10295
|
*/
|
|
10266
10296
|
UNSAFE_enableInert?: boolean | ((isDrawer: boolean) => boolean)
|
|
10267
|
-
}`,stories:{usage:[{name:"NotDismissable",snippet:"const NotDismissable = (args) => <DialogExample modalProps={args} contentProps={args} />;",id:"core-overlays-modal-modalcontent--not-dismissable"},{name:"DisabledAnimation",snippet:"const DisabledAnimation = (args) => <DialogExample modalProps={args} contentProps={args} />;",id:"core-overlays-modal-modalcontent--disabled-animation"},{name:"DrawerMobile",snippet:'const DrawerMobile = () => <ModalDrawerExample isDismissable enableDrawer="auto" defaultOpen>{undefined}</ModalDrawerExample>;',id:"core-overlays-modal-modalcontent--drawer-mobile"},{name:"DrawerMobileWithNestedPopover",snippet:"const DrawerMobileWithNestedPopover = () => <SelectInsideModalExample />;",id:"core-overlays-modal-modalcontent--drawer-mobile-with-nested-popover"},{name:"UncontrolledInteractionOutside",snippet:"const UncontrolledInteractionOutside = () => <UncontrolledInteractionOutsideExample />;",id:"core-overlays-modal-modalcontent--uncontrolled-interaction-outside"},{name:"LongContent",snippet:"const LongContent = () => <LongModalExample />;",id:"core-overlays-modal-modalcontent--long-content"},{name:"FormControls",snippet:"const FormControls = () => <FormControlsInModalExample />;",id:"core-overlays-modal-modalcontent--form-controls"}],implementation:`import React, { useState } from "react";
|
|
10297
|
+
}`,stories:{usage:[{name:"NotDismissable",snippet:"const NotDismissable = (args) => <DialogExample modalProps={args} contentProps={args} />;",id:"core-overlays-modal-modalcontent--not-dismissable"},{name:"DisabledAnimation",snippet:"const DisabledAnimation = (args) => <DialogExample modalProps={args} contentProps={args} />;",id:"core-overlays-modal-modalcontent--disabled-animation"},{name:"DrawerMobile",snippet:'const DrawerMobile = () => <ModalDrawerExample isDismissable enableDrawer="auto" defaultOpen>{undefined}</ModalDrawerExample>;',id:"core-overlays-modal-modalcontent--drawer-mobile"},{name:"DrawerMobileWithNestedPopover",snippet:"const DrawerMobileWithNestedPopover = () => <SelectInsideModalExample />;",id:"core-overlays-modal-modalcontent--drawer-mobile-with-nested-popover"},{name:"UncontrolledInteractionOutside",snippet:"const UncontrolledInteractionOutside = () => <UncontrolledInteractionOutsideExample />;",id:"core-overlays-modal-modalcontent--uncontrolled-interaction-outside"},{name:"LongContent",snippet:"const LongContent = () => <LongModalExample />;",id:"core-overlays-modal-modalcontent--long-content"},{name:"FormControls",snippet:"const FormControls = () => <FormControlsInModalExample defaultOpen={true} />;",id:"core-overlays-modal-modalcontent--form-controls"},{name:"WithInert",snippet:"const WithInert = () => <FormControlsInModalExample enableInert={true} />;",description:"Experimental: Uses the HTML `inert` attribute instead of `aria-hidden` to hide elements outside the modal. This makes elements truly non-interactive (not just hidden from screen readers) which can improve performance and accessibility. Note: With inert enabled, elements outside the modal cannot be clicked or focused. Try interacting with the background elements when the modal is open vs closed.",id:"core-overlays-modal-modalcontent--with-inert"}],implementation:`import React, { useState } from "react";
|
|
10268
10298
|
import { VisuallyHidden, useId } from "react-aria";
|
|
10269
10299
|
import { sprinkles } from "@baseline-ui/tokens";
|
|
10270
10300
|
import { ActionButton } from "../../ActionButton";
|
|
@@ -10284,7 +10314,12 @@ import { ModalContent } from "../ModalContent";
|
|
|
10284
10314
|
import { ModalTrigger } from "../ModalTrigger";
|
|
10285
10315
|
import { Box } from "../../Box";
|
|
10286
10316
|
import type { ModalContentProps, ModalProps } from "../Modal.types";
|
|
10287
|
-
|
|
10317
|
+
interface TestComponentProps {
|
|
10318
|
+
enableInert?: boolean;
|
|
10319
|
+
}
|
|
10320
|
+
export const ModalPortalExample: React.FC<TestComponentProps> = ({
|
|
10321
|
+
enableInert,
|
|
10322
|
+
}) => {
|
|
10288
10323
|
const [container, setContainer] = useState<HTMLDivElement | null>(null);
|
|
10289
10324
|
return (
|
|
10290
10325
|
<>
|
|
@@ -10295,6 +10330,7 @@ export const ModalPortalExample = () => {
|
|
|
10295
10330
|
<ModalContent
|
|
10296
10331
|
portalContainer={container || undefined}
|
|
10297
10332
|
data-block-id="modal-content"
|
|
10333
|
+
UNSAFE_enableInert={enableInert}
|
|
10298
10334
|
>
|
|
10299
10335
|
<div data-testid="modal-content">Content</div>
|
|
10300
10336
|
</ModalContent>
|
|
@@ -10309,15 +10345,15 @@ export const ModalPortalExample = () => {
|
|
|
10309
10345
|
);
|
|
10310
10346
|
};
|
|
10311
10347
|
export const ModalDrawerExample: React.FC<
|
|
10312
|
-
Omit<ModalProps & ModalContentProps, "children">
|
|
10313
|
-
> = (args) => {
|
|
10348
|
+
Omit<ModalProps & ModalContentProps, "children"> & TestComponentProps
|
|
10349
|
+
> = ({ enableInert, ...args }) => {
|
|
10314
10350
|
const id = useId();
|
|
10315
10351
|
return (
|
|
10316
10352
|
<Modal {...args}>
|
|
10317
10353
|
<ModalTrigger>
|
|
10318
10354
|
<ActionButton label="Open Drawer" />
|
|
10319
10355
|
</ModalTrigger>
|
|
10320
|
-
<ModalContent {...args}>
|
|
10356
|
+
<ModalContent {...args} UNSAFE_enableInert={enableInert}>
|
|
10321
10357
|
<Dialog
|
|
10322
10358
|
inheritDrawer={true}
|
|
10323
10359
|
size="lg"
|
|
@@ -10352,13 +10388,15 @@ const items = Array.from({ length: 3 }).map((_, i) => ({
|
|
|
10352
10388
|
id: \`outside-\${i}\`,
|
|
10353
10389
|
label: \`\${i}. Click on me\`,
|
|
10354
10390
|
}));
|
|
10355
|
-
export const SelectInsideModalExample = (
|
|
10391
|
+
export const SelectInsideModalExample: React.FC<TestComponentProps> = ({
|
|
10392
|
+
enableInert,
|
|
10393
|
+
}) => {
|
|
10356
10394
|
return (
|
|
10357
10395
|
<Modal>
|
|
10358
10396
|
<ModalTrigger>
|
|
10359
10397
|
<ActionButton label="click me to open dialog" />
|
|
10360
10398
|
</ModalTrigger>
|
|
10361
|
-
<ModalContent>
|
|
10399
|
+
<ModalContent UNSAFE_enableInert={enableInert}>
|
|
10362
10400
|
<Dialog>
|
|
10363
10401
|
<Select items={items} placeholder="Select me" />
|
|
10364
10402
|
</Dialog>
|
|
@@ -10366,7 +10404,9 @@ export const SelectInsideModalExample = () => {
|
|
|
10366
10404
|
</Modal>
|
|
10367
10405
|
);
|
|
10368
10406
|
};
|
|
10369
|
-
export const UncontrolledInteractionOutsideExample: React.FC
|
|
10407
|
+
export const UncontrolledInteractionOutsideExample: React.FC<
|
|
10408
|
+
TestComponentProps
|
|
10409
|
+
> = ({ enableInert }) => {
|
|
10370
10410
|
return (
|
|
10371
10411
|
<Box display="flex" flexDirection="row" gap="lg">
|
|
10372
10412
|
<ActionButton
|
|
@@ -10388,6 +10428,7 @@ export const UncontrolledInteractionOutsideExample: React.FC = () => {
|
|
|
10388
10428
|
"should-close-on-interact-outside",
|
|
10389
10429
|
);
|
|
10390
10430
|
}}
|
|
10431
|
+
UNSAFE_enableInert={enableInert}
|
|
10391
10432
|
>
|
|
10392
10433
|
<Dialog>
|
|
10393
10434
|
<Text>Modal</Text>
|
|
@@ -10406,18 +10447,16 @@ export const UncontrolledInteractionOutsideExample: React.FC = () => {
|
|
|
10406
10447
|
</Box>
|
|
10407
10448
|
);
|
|
10408
10449
|
};
|
|
10409
|
-
export const LongModalExample
|
|
10410
|
-
defaultOpen
|
|
10411
|
-
}
|
|
10412
|
-
defaultOpen?: boolean;
|
|
10413
|
-
}) => {
|
|
10450
|
+
export const LongModalExample: React.FC<
|
|
10451
|
+
TestComponentProps & { defaultOpen?: boolean }
|
|
10452
|
+
> = ({ defaultOpen = true, enableInert }) => {
|
|
10414
10453
|
const id = useId();
|
|
10415
10454
|
return (
|
|
10416
10455
|
<Modal defaultOpen={defaultOpen}>
|
|
10417
10456
|
<ModalTrigger>
|
|
10418
10457
|
<ActionButton label="Open Modal" />
|
|
10419
10458
|
</ModalTrigger>
|
|
10420
|
-
<ModalContent>
|
|
10459
|
+
<ModalContent UNSAFE_enableInert={enableInert}>
|
|
10421
10460
|
<Dialog aria-labelledby={id}>
|
|
10422
10461
|
<VisuallyHidden>
|
|
10423
10462
|
<Text id={id}>List of items</Text>
|
|
@@ -10439,10 +10478,30 @@ export const LongModalExample = ({
|
|
|
10439
10478
|
* Example with form controls inside a Modal. Used to verify pointer
|
|
10440
10479
|
* interactions work correctly with all input devices.
|
|
10441
10480
|
*/
|
|
10442
|
-
export const FormControlsInModalExample
|
|
10481
|
+
export const FormControlsInModalExample: React.FC<
|
|
10482
|
+
TestComponentProps & { defaultOpen?: boolean }
|
|
10483
|
+
> = ({ enableInert, defaultOpen = false }) => {
|
|
10443
10484
|
return (
|
|
10444
|
-
<
|
|
10445
|
-
<
|
|
10485
|
+
<Box display="flex" flexDirection="column" gap="lg" padding="lg">
|
|
10486
|
+
<Text>
|
|
10487
|
+
Background controls (non-interactive when modal is open with inert):
|
|
10488
|
+
</Text>
|
|
10489
|
+
<Box display="flex" flexDirection="column" gap="md">
|
|
10490
|
+
<TextInput label="Background input" placeholder="Try typing here..." />
|
|
10491
|
+
<Checkbox label="Background checkbox" />
|
|
10492
|
+
<ActionButton
|
|
10493
|
+
label="Background button"
|
|
10494
|
+
variant="secondary"
|
|
10495
|
+
onPress={() => {
|
|
10496
|
+
alert("Background button clicked!");
|
|
10497
|
+
}}
|
|
10498
|
+
/>
|
|
10499
|
+
</Box>
|
|
10500
|
+
<Modal defaultOpen={defaultOpen}>
|
|
10501
|
+
<ModalTrigger>
|
|
10502
|
+
<ActionButton label="Open Modal" variant="primary" />
|
|
10503
|
+
</ModalTrigger>
|
|
10504
|
+
<ModalContent UNSAFE_enableInert={enableInert}>
|
|
10446
10505
|
<Dialog
|
|
10447
10506
|
className={sprinkles({
|
|
10448
10507
|
padding: "lg",
|
|
@@ -10488,6 +10547,7 @@ export const FormControlsInModalExample = () => {
|
|
|
10488
10547
|
</Dialog>
|
|
10489
10548
|
</ModalContent>
|
|
10490
10549
|
</Modal>
|
|
10550
|
+
</Box>
|
|
10491
10551
|
);
|
|
10492
10552
|
};`},similarTo:[],figmaUrl:null},NumberFormat:{id:"core-utilities-numberformat",breadcrumb:"Core/Utilities/NumberFormat",importStatement:'import { NumberFormat } from "@baseline-ui/core";',description:"`NumberFormat` provides localized number formatting for the current locale. It automatically updates when the locale changes, and handles caching of the number formatter for performance.\nIt is a wrapper around the [Intl.NumberFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat) API.",documentation:`\`NumberFormat\` provides localized number formatting for the current locale. It automatically updates when the locale changes, and handles caching of the number formatter for performance.
|
|
10493
10553
|
It is a wrapper around the [Intl.NumberFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat) API.
|
|
@@ -12922,7 +12982,80 @@ export const TrailingElementExample = () => {
|
|
|
12922
12982
|
PopoverWithScrollableViewportExample,
|
|
12923
12983
|
Tooltip,
|
|
12924
12984
|
VariantViewer,
|
|
12925
|
-
} from "@baseline-ui/core";`,description:"The `Popover` component is a versatile component that can be used to display additional content or actions in a floating overlay.",documentation
|
|
12985
|
+
} from "@baseline-ui/core";`,description:"The `Popover` component is a versatile component that can be used to display additional content or actions in a floating overlay.",documentation:`The \`Popover\` component is a versatile component that can be used to display additional content or actions in a floating overlay.
|
|
12986
|
+
* The component is accessible via keyboard. Users can open, close, and navigate through the popover using keyboard keys such as \`Tab\`, \`Enter\`, \`Escape\`, and arrow keys.
|
|
12987
|
+
* When the popover is opened, the focus is moved to the content within the popover. When it is closed, the focus returns to the trigger element.
|
|
12988
|
+
* The component is properly labeled to provide context to assistive technologies. This is done using ARIA labels or visible text.
|
|
12989
|
+
* The popover is dismissible by clicking outside of it, pressing the Escape key, or through a close button within the popover.
|
|
12990
|
+
* It supports mouse, keyboard, and touch interactions.
|
|
12991
|
+
\`\`\`jsx
|
|
12992
|
+
import { Popover, PopoverTrigger, PopoverContent } from "../../utils";
|
|
12993
|
+
<Popover type="listbox">
|
|
12994
|
+
<PopoverTrigger>{/* Trigger component goes here */}</PopoverTrigger>
|
|
12995
|
+
<PopoverContent>
|
|
12996
|
+
{/* Content to be shown when popover is open goes here */}
|
|
12997
|
+
</PopoverContent>
|
|
12998
|
+
</Popover>;
|
|
12999
|
+
\`\`\`
|
|
13000
|
+
The \`PopoverTrigger\` component is used to wrap the element that will trigger the popover to open. It can any one of the button components from \`../../utils\`.
|
|
13001
|
+
It can also be replaced with specific coordinates and dimensions using the \`anchorRect\` prop; those coordinates will be used as anchor reference for positioning the popover content.
|
|
13002
|
+
The \`PopoverContent\` component is used to wrap the content that will be shown when the popover is open. It can be any valid HTML element or component.
|
|
13003
|
+
By default, the popover doesn't have an arrow. If you want to add an arrow to the popover, you can pass \`includeArrow\` prop to the \`PopoverContent\` component. It will add an arrow to the popover pointing towards the trigger element.
|
|
13004
|
+
By default, non-modal popovers close when scrolling occurs in parent elements. If you want the popover to reposition instead of closing, you can use the \`shouldRepositionOnScroll\` prop.
|
|
13005
|
+
\`\`\`jsx
|
|
13006
|
+
<Popover type="listbox">
|
|
13007
|
+
<PopoverTrigger>
|
|
13008
|
+
<ActionButton label="Open" />
|
|
13009
|
+
</PopoverTrigger>
|
|
13010
|
+
<PopoverContent isNonModal={true}>
|
|
13011
|
+
{/* Content closes when scrolling */}
|
|
13012
|
+
</PopoverContent>
|
|
13013
|
+
</Popover>
|
|
13014
|
+
\`\`\`
|
|
13015
|
+
When \`shouldRepositionOnScroll\` is \`true\`, the popover will reposition itself to stay attached to its trigger during scrolling, instead of closing. This is useful for persistent popovers in scrollable containers.
|
|
13016
|
+
\`\`\`jsx
|
|
13017
|
+
<Popover type="listbox">
|
|
13018
|
+
<PopoverTrigger>
|
|
13019
|
+
<ActionButton label="Open" />
|
|
13020
|
+
</PopoverTrigger>
|
|
13021
|
+
<PopoverContent shouldRepositionOnScroll={true}>
|
|
13022
|
+
{/* Content repositions and stays visible when scrolling */}
|
|
13023
|
+
</PopoverContent>
|
|
13024
|
+
</Popover>
|
|
13025
|
+
\`\`\`
|
|
13026
|
+
The popover will listen to scroll events from:
|
|
13027
|
+
* The window (page-level scrolling)
|
|
13028
|
+
* The boundary element (if specified)
|
|
13029
|
+
* All scrollable ancestors of the trigger element (nested containers)
|
|
13030
|
+
Position updates are throttled using \`requestAnimationFrame\` for optimal performance, ensuring smooth 60fps updates without layout thrashing.
|
|
13031
|
+
For advanced use cases where the trigger element's position changes dynamically (e.g., via JavaScript animations or layout shifts), you can manually trigger popover position recalculation using the \`elementHandle\` prop.
|
|
13032
|
+
\`\`\`jsx
|
|
13033
|
+
import { useRef } from "react";
|
|
13034
|
+
import { Popover, PopoverTrigger, PopoverContent } from "../../utils";
|
|
13035
|
+
function MyComponent() {
|
|
13036
|
+
const popoverHandleRef = useRef(null);
|
|
13037
|
+
const moveTrigger = () => {
|
|
13038
|
+
// Trigger has moved, recalculate popover position
|
|
13039
|
+
popoverHandleRef.current?.updatePosition();
|
|
13040
|
+
};
|
|
13041
|
+
return (
|
|
13042
|
+
<Popover type="listbox">
|
|
13043
|
+
<PopoverTrigger>
|
|
13044
|
+
<ActionButton label="Open" onClick={moveTrigger} />
|
|
13045
|
+
</PopoverTrigger>
|
|
13046
|
+
<PopoverContent elementHandle={popoverHandleRef}>
|
|
13047
|
+
{/* Content */}
|
|
13048
|
+
</PopoverContent>
|
|
13049
|
+
</Popover>
|
|
13050
|
+
);
|
|
13051
|
+
}
|
|
13052
|
+
\`\`\`
|
|
13053
|
+
The \`elementHandle\` prop accepts a ref that provides access to the \`PopoverContentHandle\` interface, which exposes:
|
|
13054
|
+
* \`updatePosition()\`: Manually recalculates the popover's position relative to the trigger element
|
|
13055
|
+
This is particularly useful when:
|
|
13056
|
+
* The trigger element moves due to CSS transforms or animations
|
|
13057
|
+
* The layout changes dynamically via JavaScript
|
|
13058
|
+
* You need to keep the popover attached to a moving target`,props:`interface PopoverProps {
|
|
12926
13059
|
/**
|
|
12927
13060
|
* The unique identifier for the block. This is used to identify the block in
|
|
12928
13061
|
* the DOM and in the block map. It is added as a data attribute
|
|
@@ -13023,6 +13156,7 @@ import { TextInput } from "../../TextInput";
|
|
|
13023
13156
|
import { Switch } from "../../Switch";
|
|
13024
13157
|
import type { Rect } from "../../../utils/types/Shared";
|
|
13025
13158
|
import type {
|
|
13159
|
+
PopoverContentHandle,
|
|
13026
13160
|
PopoverContentProps,
|
|
13027
13161
|
PopoverProps,
|
|
13028
13162
|
PopoverTriggerProps,
|
|
@@ -13548,13 +13682,263 @@ export const PopoverFunctionChildrenExample: React.FC<{
|
|
|
13548
13682
|
</PopoverContent>
|
|
13549
13683
|
</Popover>
|
|
13550
13684
|
);
|
|
13685
|
+
};
|
|
13686
|
+
export const PopoverWithNestedScrollableContainersExample: React.FC<{
|
|
13687
|
+
popoverProps: Omit<PopoverProps, "children">;
|
|
13688
|
+
popoverContentProps?: Omit<PopoverContentProps, "children">;
|
|
13689
|
+
}> = ({ popoverProps, popoverContentProps }) => {
|
|
13690
|
+
return (
|
|
13691
|
+
<Box
|
|
13692
|
+
padding="lg"
|
|
13693
|
+
style={{ height: 500, overflow: "auto" }}
|
|
13694
|
+
borderWidth={1}
|
|
13695
|
+
borderStyle="solid"
|
|
13696
|
+
borderColor="border.medium"
|
|
13697
|
+
backgroundColor="background.primary.subtle"
|
|
13698
|
+
borderRadius="md"
|
|
13699
|
+
data-testid="outer-scroll-container"
|
|
13700
|
+
>
|
|
13701
|
+
<Box padding="lg" style={{ height: 1000 }}>
|
|
13702
|
+
<Text
|
|
13703
|
+
type="title"
|
|
13704
|
+
style={{
|
|
13705
|
+
display: "block",
|
|
13706
|
+
}}
|
|
13707
|
+
>
|
|
13708
|
+
Outer Scrollable Container
|
|
13709
|
+
</Text>
|
|
13710
|
+
<Text
|
|
13711
|
+
type="label"
|
|
13712
|
+
style={{
|
|
13713
|
+
marginBottom: 12,
|
|
13714
|
+
display: "block",
|
|
13715
|
+
}}
|
|
13716
|
+
>
|
|
13717
|
+
Try scrolling this outer container and watch the popover reposition as
|
|
13718
|
+
it scrolls
|
|
13719
|
+
</Text>
|
|
13720
|
+
<Box
|
|
13721
|
+
padding="lg"
|
|
13722
|
+
style={{
|
|
13723
|
+
height: 280,
|
|
13724
|
+
overflow: "auto",
|
|
13725
|
+
marginBottom: 24,
|
|
13726
|
+
}}
|
|
13727
|
+
borderWidth={1}
|
|
13728
|
+
borderStyle="solid"
|
|
13729
|
+
borderColor="border.subtle"
|
|
13730
|
+
backgroundColor="background.primary.strong"
|
|
13731
|
+
borderRadius="md"
|
|
13732
|
+
data-testid="inner-scroll-container"
|
|
13733
|
+
>
|
|
13734
|
+
<Box style={{ height: 500 }}>
|
|
13735
|
+
<Text
|
|
13736
|
+
type="title"
|
|
13737
|
+
style={{
|
|
13738
|
+
display: "block",
|
|
13739
|
+
}}
|
|
13740
|
+
>
|
|
13741
|
+
Inner Scrollable Container
|
|
13742
|
+
</Text>
|
|
13743
|
+
<Text
|
|
13744
|
+
type="label"
|
|
13745
|
+
style={{
|
|
13746
|
+
marginBottom: 12,
|
|
13747
|
+
display: "block",
|
|
13748
|
+
}}
|
|
13749
|
+
>
|
|
13750
|
+
And this inner container too. The popover detects all scrollable
|
|
13751
|
+
ancestors
|
|
13752
|
+
</Text>
|
|
13753
|
+
<PopoverExample
|
|
13754
|
+
popoverProps={popoverProps}
|
|
13755
|
+
popoverContentProps={popoverContentProps}
|
|
13756
|
+
/>
|
|
13757
|
+
</Box>
|
|
13758
|
+
</Box>
|
|
13759
|
+
</Box>
|
|
13760
|
+
</Box>
|
|
13761
|
+
);
|
|
13762
|
+
};
|
|
13763
|
+
export const PopoverManualRepositioningExample: React.FC<{
|
|
13764
|
+
popoverProps?: Omit<PopoverProps, "children">;
|
|
13765
|
+
popoverContentProps?: Omit<PopoverContentProps, "children">;
|
|
13766
|
+
}> = ({ popoverProps = { type: "dialog" }, popoverContentProps }) => {
|
|
13767
|
+
const popoverHandleRef = useRef<PopoverContentHandle>(null);
|
|
13768
|
+
const [boundaryElement, setBoundaryElement] = useState<HTMLDivElement | null>(
|
|
13769
|
+
null,
|
|
13770
|
+
);
|
|
13771
|
+
const [offset, setOffset] = useState({ x: 0, y: 0 });
|
|
13772
|
+
useEffect(() => {
|
|
13773
|
+
popoverHandleRef.current?.updatePosition();
|
|
13774
|
+
}, [offset, popoverHandleRef]);
|
|
13775
|
+
return (
|
|
13776
|
+
<>
|
|
13777
|
+
<Box display="flex" gap="sm">
|
|
13778
|
+
<ActionButton
|
|
13779
|
+
label="Move Left"
|
|
13780
|
+
onPress={() => {
|
|
13781
|
+
setOffset((prev) => ({ ...prev, x: prev.x - 50 }));
|
|
13782
|
+
}}
|
|
13783
|
+
/>
|
|
13784
|
+
<ActionButton
|
|
13785
|
+
label="Move Right"
|
|
13786
|
+
onPress={() => {
|
|
13787
|
+
setOffset((prev) => ({ ...prev, x: prev.x + 50 }));
|
|
13788
|
+
}}
|
|
13789
|
+
/>
|
|
13790
|
+
<ActionButton
|
|
13791
|
+
label="Move Down"
|
|
13792
|
+
onPress={() => {
|
|
13793
|
+
setOffset((prev) => ({ ...prev, y: prev.y + 50 }));
|
|
13794
|
+
}}
|
|
13795
|
+
/>
|
|
13796
|
+
<ActionButton
|
|
13797
|
+
label="Move Up"
|
|
13798
|
+
onPress={() => {
|
|
13799
|
+
setOffset((prev) => ({ ...prev, y: prev.y - 50 }));
|
|
13800
|
+
}}
|
|
13801
|
+
/>
|
|
13802
|
+
</Box>
|
|
13803
|
+
<Box
|
|
13804
|
+
ref={setBoundaryElement}
|
|
13805
|
+
display="flex"
|
|
13806
|
+
flexDirection="column"
|
|
13807
|
+
marginTop="3xl"
|
|
13808
|
+
backgroundColor="background.primary.medium"
|
|
13809
|
+
padding="3xl"
|
|
13810
|
+
gap="3xl"
|
|
13811
|
+
style={{
|
|
13812
|
+
width: 500,
|
|
13813
|
+
height: 400,
|
|
13814
|
+
}}
|
|
13815
|
+
justifyContent="center"
|
|
13816
|
+
alignItems="center"
|
|
13817
|
+
>
|
|
13818
|
+
<Box
|
|
13819
|
+
style={{
|
|
13820
|
+
transform: \`translate(\${offset.x}px, \${offset.y}px)\`,
|
|
13821
|
+
}}
|
|
13822
|
+
>
|
|
13823
|
+
<Popover defaultOpen={true} {...popoverProps}>
|
|
13824
|
+
<PopoverTrigger>
|
|
13825
|
+
<ActionButton label="Open Popover" variant="secondary" />
|
|
13826
|
+
</PopoverTrigger>
|
|
13827
|
+
<PopoverContent
|
|
13828
|
+
elementHandle={popoverHandleRef}
|
|
13829
|
+
placement="bottom start"
|
|
13830
|
+
isNonModal={true}
|
|
13831
|
+
shouldRepositionOnScroll={true}
|
|
13832
|
+
shouldCloseOnInteractOutside={() => {
|
|
13833
|
+
return false;
|
|
13834
|
+
}}
|
|
13835
|
+
boundaryElement={boundaryElement || undefined}
|
|
13836
|
+
{...popoverContentProps}
|
|
13837
|
+
>
|
|
13838
|
+
<Dialog
|
|
13839
|
+
size="content"
|
|
13840
|
+
aria-label="content"
|
|
13841
|
+
className={sprinkles({
|
|
13842
|
+
display: "flex",
|
|
13843
|
+
flexDirection: "column",
|
|
13844
|
+
padding: "md",
|
|
13845
|
+
})}
|
|
13846
|
+
style={{ width: 250 }}
|
|
13847
|
+
>
|
|
13848
|
+
<Text type="body" size="sm">
|
|
13849
|
+
The popover is positioned relative to the trigger. Move the
|
|
13850
|
+
trigger and update its position.
|
|
13851
|
+
</Text>
|
|
13852
|
+
</Dialog>
|
|
13853
|
+
</PopoverContent>
|
|
13854
|
+
</Popover>
|
|
13855
|
+
</Box>
|
|
13856
|
+
</Box>
|
|
13857
|
+
</>
|
|
13858
|
+
);
|
|
13551
13859
|
};`},similarTo:[],figmaUrl:null},PopoverContent:{id:"core-overlays-popover-popovercontent",breadcrumb:"Core/Overlays/Popover",importStatement:`import {
|
|
13552
13860
|
PopoverContainedFocusExample,
|
|
13553
13861
|
PopoverContent,
|
|
13554
13862
|
PopoverCustomTargetExample,
|
|
13555
13863
|
PopoverDefaultOpenWithArrowExample,
|
|
13556
13864
|
PopoverExample,
|
|
13557
|
-
|
|
13865
|
+
PopoverManualRepositioningExample,
|
|
13866
|
+
PopoverWithNestedScrollableContainersExample,
|
|
13867
|
+
PopoverWithScrollableContentExample,
|
|
13868
|
+
} from "@baseline-ui/core";`,description:"The `Popover` component is a versatile component that can be used to display additional content or actions in a floating overlay.",documentation:`The \`Popover\` component is a versatile component that can be used to display additional content or actions in a floating overlay.
|
|
13869
|
+
* The component is accessible via keyboard. Users can open, close, and navigate through the popover using keyboard keys such as \`Tab\`, \`Enter\`, \`Escape\`, and arrow keys.
|
|
13870
|
+
* When the popover is opened, the focus is moved to the content within the popover. When it is closed, the focus returns to the trigger element.
|
|
13871
|
+
* The component is properly labeled to provide context to assistive technologies. This is done using ARIA labels or visible text.
|
|
13872
|
+
* The popover is dismissible by clicking outside of it, pressing the Escape key, or through a close button within the popover.
|
|
13873
|
+
* It supports mouse, keyboard, and touch interactions.
|
|
13874
|
+
\`\`\`jsx
|
|
13875
|
+
import { Popover, PopoverTrigger, PopoverContent } from "../../utils";
|
|
13876
|
+
<Popover type="listbox">
|
|
13877
|
+
<PopoverTrigger>{/* Trigger component goes here */}</PopoverTrigger>
|
|
13878
|
+
<PopoverContent>
|
|
13879
|
+
{/* Content to be shown when popover is open goes here */}
|
|
13880
|
+
</PopoverContent>
|
|
13881
|
+
</Popover>;
|
|
13882
|
+
\`\`\`
|
|
13883
|
+
The \`PopoverTrigger\` component is used to wrap the element that will trigger the popover to open. It can any one of the button components from \`../../utils\`.
|
|
13884
|
+
It can also be replaced with specific coordinates and dimensions using the \`anchorRect\` prop; those coordinates will be used as anchor reference for positioning the popover content.
|
|
13885
|
+
The \`PopoverContent\` component is used to wrap the content that will be shown when the popover is open. It can be any valid HTML element or component.
|
|
13886
|
+
By default, the popover doesn't have an arrow. If you want to add an arrow to the popover, you can pass \`includeArrow\` prop to the \`PopoverContent\` component. It will add an arrow to the popover pointing towards the trigger element.
|
|
13887
|
+
By default, non-modal popovers close when scrolling occurs in parent elements. If you want the popover to reposition instead of closing, you can use the \`shouldRepositionOnScroll\` prop.
|
|
13888
|
+
\`\`\`jsx
|
|
13889
|
+
<Popover type="listbox">
|
|
13890
|
+
<PopoverTrigger>
|
|
13891
|
+
<ActionButton label="Open" />
|
|
13892
|
+
</PopoverTrigger>
|
|
13893
|
+
<PopoverContent isNonModal={true}>
|
|
13894
|
+
{/* Content closes when scrolling */}
|
|
13895
|
+
</PopoverContent>
|
|
13896
|
+
</Popover>
|
|
13897
|
+
\`\`\`
|
|
13898
|
+
When \`shouldRepositionOnScroll\` is \`true\`, the popover will reposition itself to stay attached to its trigger during scrolling, instead of closing. This is useful for persistent popovers in scrollable containers.
|
|
13899
|
+
\`\`\`jsx
|
|
13900
|
+
<Popover type="listbox">
|
|
13901
|
+
<PopoverTrigger>
|
|
13902
|
+
<ActionButton label="Open" />
|
|
13903
|
+
</PopoverTrigger>
|
|
13904
|
+
<PopoverContent shouldRepositionOnScroll={true}>
|
|
13905
|
+
{/* Content repositions and stays visible when scrolling */}
|
|
13906
|
+
</PopoverContent>
|
|
13907
|
+
</Popover>
|
|
13908
|
+
\`\`\`
|
|
13909
|
+
The popover will listen to scroll events from:
|
|
13910
|
+
* The window (page-level scrolling)
|
|
13911
|
+
* The boundary element (if specified)
|
|
13912
|
+
* All scrollable ancestors of the trigger element (nested containers)
|
|
13913
|
+
Position updates are throttled using \`requestAnimationFrame\` for optimal performance, ensuring smooth 60fps updates without layout thrashing.
|
|
13914
|
+
For advanced use cases where the trigger element's position changes dynamically (e.g., via JavaScript animations or layout shifts), you can manually trigger popover position recalculation using the \`elementHandle\` prop.
|
|
13915
|
+
\`\`\`jsx
|
|
13916
|
+
import { useRef } from "react";
|
|
13917
|
+
import { Popover, PopoverTrigger, PopoverContent } from "../../utils";
|
|
13918
|
+
function MyComponent() {
|
|
13919
|
+
const popoverHandleRef = useRef(null);
|
|
13920
|
+
const moveTrigger = () => {
|
|
13921
|
+
// Trigger has moved, recalculate popover position
|
|
13922
|
+
popoverHandleRef.current?.updatePosition();
|
|
13923
|
+
};
|
|
13924
|
+
return (
|
|
13925
|
+
<Popover type="listbox">
|
|
13926
|
+
<PopoverTrigger>
|
|
13927
|
+
<ActionButton label="Open" onClick={moveTrigger} />
|
|
13928
|
+
</PopoverTrigger>
|
|
13929
|
+
<PopoverContent elementHandle={popoverHandleRef}>
|
|
13930
|
+
{/* Content */}
|
|
13931
|
+
</PopoverContent>
|
|
13932
|
+
</Popover>
|
|
13933
|
+
);
|
|
13934
|
+
}
|
|
13935
|
+
\`\`\`
|
|
13936
|
+
The \`elementHandle\` prop accepts a ref that provides access to the \`PopoverContentHandle\` interface, which exposes:
|
|
13937
|
+
* \`updatePosition()\`: Manually recalculates the popover's position relative to the trigger element
|
|
13938
|
+
This is particularly useful when:
|
|
13939
|
+
* The trigger element moves due to CSS transforms or animations
|
|
13940
|
+
* The layout changes dynamically via JavaScript
|
|
13941
|
+
* You need to keep the popover attached to a moving target`,props:`interface PopoverContentProps {
|
|
13558
13942
|
/**
|
|
13559
13943
|
* The unique identifier for the block. This is used to identify the block in
|
|
13560
13944
|
* the DOM and in the block map. It is added as a data attribute
|
|
@@ -13640,12 +14024,39 @@ arrowClassName?: string | ((state: { isOpen: boolean }) => string | undefined)
|
|
|
13640
14024
|
*/
|
|
13641
14025
|
arrowStyle?: | React.CSSProperties
|
|
13642
14026
|
| ((state: { isOpen: boolean }) => React.CSSProperties | undefined)
|
|
14027
|
+
/**
|
|
14028
|
+
* Whether the popover should reposition to stay attached to its trigger
|
|
14029
|
+
* during scroll. When true, the popover repositions instead of closing when
|
|
14030
|
+
* scrolling occurs. When false (default), the popover will close on scroll
|
|
14031
|
+
* (current behavior).
|
|
14032
|
+
*
|
|
14033
|
+
* @default false
|
|
14034
|
+
*/
|
|
14035
|
+
shouldRepositionOnScroll?: boolean
|
|
14036
|
+
/**
|
|
14037
|
+
* Ref to access imperative methods like updatePosition. Use this to manually
|
|
14038
|
+
* trigger popover position recalculation.
|
|
14039
|
+
*/
|
|
14040
|
+
elementHandle?: React.Ref<PopoverContentHandle>
|
|
13643
14041
|
}`,stories:{usage:[{name:"Basic",snippet:"const Basic = (args) => <PopoverCustomTargetExample popoverContentProps={args} />;",id:"core-overlays-popover-popovercontent--basic"},{name:"DefaultOpenWithArrow",snippet:"const DefaultOpenWithArrow = () => <PopoverDefaultOpenWithArrowExample />;",id:"core-overlays-popover-popovercontent--default-open-with-arrow"},{name:"ContainedFocus",snippet:"const ContainedFocus = () => <PopoverContainedFocusExample />;",id:"core-overlays-popover-popovercontent--contained-focus"},{name:"DisableAnimation",snippet:`const DisableAnimation = () => (
|
|
13644
14042
|
<PopoverExample
|
|
13645
14043
|
popoverProps={{ type: "dialog" }}
|
|
13646
14044
|
popoverContentProps={{ disableAnimation: true }}
|
|
13647
14045
|
/>
|
|
13648
|
-
);`,id:"core-overlays-popover-popovercontent--disable-animation"}
|
|
14046
|
+
);`,id:"core-overlays-popover-popovercontent--disable-animation"},{name:"ScrollRepositioning",snippet:`const ScrollRepositioning = (args) => (
|
|
14047
|
+
<PopoverWithScrollableContentExample
|
|
14048
|
+
popoverProps={{ type: "listbox" }}
|
|
14049
|
+
popoverContentProps={args}
|
|
14050
|
+
description="Toggle the shouldRepositionOnScroll prop to see the difference in behavior"
|
|
14051
|
+
/>
|
|
14052
|
+
);`,id:"core-overlays-popover-popovercontent--scroll-repositioning"},{name:"NestedScrollableContainers",snippet:`const NestedScrollableContainers = (args) => (
|
|
14053
|
+
<PopoverWithNestedScrollableContainersExample
|
|
14054
|
+
popoverProps={{ type: "listbox" }}
|
|
14055
|
+
popoverContentProps={args}
|
|
14056
|
+
/>
|
|
14057
|
+
);`,id:"core-overlays-popover-popovercontent--nested-scrollable-containers"},{name:"ManualRepositioning",snippet:`const ManualRepositioning = (args) => (
|
|
14058
|
+
<PopoverManualRepositioningExample popoverContentProps={args} />
|
|
14059
|
+
);`,id:"core-overlays-popover-popovercontent--manual-repositioning"}],implementation:`import { sprinkles, themeVars } from "@baseline-ui/tokens";
|
|
13649
14060
|
import { mergeRefs } from "@react-aria/utils";
|
|
13650
14061
|
import React, { useEffect, useRef, useState } from "react";
|
|
13651
14062
|
import { flushSync } from "react-dom";
|
|
@@ -13665,6 +14076,7 @@ import { TextInput } from "../../TextInput";
|
|
|
13665
14076
|
import { Switch } from "../../Switch";
|
|
13666
14077
|
import type { Rect } from "../../../utils/types/Shared";
|
|
13667
14078
|
import type {
|
|
14079
|
+
PopoverContentHandle,
|
|
13668
14080
|
PopoverContentProps,
|
|
13669
14081
|
PopoverProps,
|
|
13670
14082
|
PopoverTriggerProps,
|
|
@@ -14190,20 +14602,267 @@ export const PopoverFunctionChildrenExample: React.FC<{
|
|
|
14190
14602
|
</PopoverContent>
|
|
14191
14603
|
</Popover>
|
|
14192
14604
|
);
|
|
14193
|
-
}
|
|
14194
|
-
|
|
14195
|
-
|
|
14196
|
-
|
|
14197
|
-
|
|
14198
|
-
|
|
14199
|
-
|
|
14200
|
-
|
|
14201
|
-
|
|
14202
|
-
|
|
14203
|
-
|
|
14204
|
-
|
|
14205
|
-
|
|
14206
|
-
|
|
14605
|
+
};
|
|
14606
|
+
export const PopoverWithNestedScrollableContainersExample: React.FC<{
|
|
14607
|
+
popoverProps: Omit<PopoverProps, "children">;
|
|
14608
|
+
popoverContentProps?: Omit<PopoverContentProps, "children">;
|
|
14609
|
+
}> = ({ popoverProps, popoverContentProps }) => {
|
|
14610
|
+
return (
|
|
14611
|
+
<Box
|
|
14612
|
+
padding="lg"
|
|
14613
|
+
style={{ height: 500, overflow: "auto" }}
|
|
14614
|
+
borderWidth={1}
|
|
14615
|
+
borderStyle="solid"
|
|
14616
|
+
borderColor="border.medium"
|
|
14617
|
+
backgroundColor="background.primary.subtle"
|
|
14618
|
+
borderRadius="md"
|
|
14619
|
+
data-testid="outer-scroll-container"
|
|
14620
|
+
>
|
|
14621
|
+
<Box padding="lg" style={{ height: 1000 }}>
|
|
14622
|
+
<Text
|
|
14623
|
+
type="title"
|
|
14624
|
+
style={{
|
|
14625
|
+
display: "block",
|
|
14626
|
+
}}
|
|
14627
|
+
>
|
|
14628
|
+
Outer Scrollable Container
|
|
14629
|
+
</Text>
|
|
14630
|
+
<Text
|
|
14631
|
+
type="label"
|
|
14632
|
+
style={{
|
|
14633
|
+
marginBottom: 12,
|
|
14634
|
+
display: "block",
|
|
14635
|
+
}}
|
|
14636
|
+
>
|
|
14637
|
+
Try scrolling this outer container and watch the popover reposition as
|
|
14638
|
+
it scrolls
|
|
14639
|
+
</Text>
|
|
14640
|
+
<Box
|
|
14641
|
+
padding="lg"
|
|
14642
|
+
style={{
|
|
14643
|
+
height: 280,
|
|
14644
|
+
overflow: "auto",
|
|
14645
|
+
marginBottom: 24,
|
|
14646
|
+
}}
|
|
14647
|
+
borderWidth={1}
|
|
14648
|
+
borderStyle="solid"
|
|
14649
|
+
borderColor="border.subtle"
|
|
14650
|
+
backgroundColor="background.primary.strong"
|
|
14651
|
+
borderRadius="md"
|
|
14652
|
+
data-testid="inner-scroll-container"
|
|
14653
|
+
>
|
|
14654
|
+
<Box style={{ height: 500 }}>
|
|
14655
|
+
<Text
|
|
14656
|
+
type="title"
|
|
14657
|
+
style={{
|
|
14658
|
+
display: "block",
|
|
14659
|
+
}}
|
|
14660
|
+
>
|
|
14661
|
+
Inner Scrollable Container
|
|
14662
|
+
</Text>
|
|
14663
|
+
<Text
|
|
14664
|
+
type="label"
|
|
14665
|
+
style={{
|
|
14666
|
+
marginBottom: 12,
|
|
14667
|
+
display: "block",
|
|
14668
|
+
}}
|
|
14669
|
+
>
|
|
14670
|
+
And this inner container too. The popover detects all scrollable
|
|
14671
|
+
ancestors
|
|
14672
|
+
</Text>
|
|
14673
|
+
<PopoverExample
|
|
14674
|
+
popoverProps={popoverProps}
|
|
14675
|
+
popoverContentProps={popoverContentProps}
|
|
14676
|
+
/>
|
|
14677
|
+
</Box>
|
|
14678
|
+
</Box>
|
|
14679
|
+
</Box>
|
|
14680
|
+
</Box>
|
|
14681
|
+
);
|
|
14682
|
+
};
|
|
14683
|
+
export const PopoverManualRepositioningExample: React.FC<{
|
|
14684
|
+
popoverProps?: Omit<PopoverProps, "children">;
|
|
14685
|
+
popoverContentProps?: Omit<PopoverContentProps, "children">;
|
|
14686
|
+
}> = ({ popoverProps = { type: "dialog" }, popoverContentProps }) => {
|
|
14687
|
+
const popoverHandleRef = useRef<PopoverContentHandle>(null);
|
|
14688
|
+
const [boundaryElement, setBoundaryElement] = useState<HTMLDivElement | null>(
|
|
14689
|
+
null,
|
|
14690
|
+
);
|
|
14691
|
+
const [offset, setOffset] = useState({ x: 0, y: 0 });
|
|
14692
|
+
useEffect(() => {
|
|
14693
|
+
popoverHandleRef.current?.updatePosition();
|
|
14694
|
+
}, [offset, popoverHandleRef]);
|
|
14695
|
+
return (
|
|
14696
|
+
<>
|
|
14697
|
+
<Box display="flex" gap="sm">
|
|
14698
|
+
<ActionButton
|
|
14699
|
+
label="Move Left"
|
|
14700
|
+
onPress={() => {
|
|
14701
|
+
setOffset((prev) => ({ ...prev, x: prev.x - 50 }));
|
|
14702
|
+
}}
|
|
14703
|
+
/>
|
|
14704
|
+
<ActionButton
|
|
14705
|
+
label="Move Right"
|
|
14706
|
+
onPress={() => {
|
|
14707
|
+
setOffset((prev) => ({ ...prev, x: prev.x + 50 }));
|
|
14708
|
+
}}
|
|
14709
|
+
/>
|
|
14710
|
+
<ActionButton
|
|
14711
|
+
label="Move Down"
|
|
14712
|
+
onPress={() => {
|
|
14713
|
+
setOffset((prev) => ({ ...prev, y: prev.y + 50 }));
|
|
14714
|
+
}}
|
|
14715
|
+
/>
|
|
14716
|
+
<ActionButton
|
|
14717
|
+
label="Move Up"
|
|
14718
|
+
onPress={() => {
|
|
14719
|
+
setOffset((prev) => ({ ...prev, y: prev.y - 50 }));
|
|
14720
|
+
}}
|
|
14721
|
+
/>
|
|
14722
|
+
</Box>
|
|
14723
|
+
<Box
|
|
14724
|
+
ref={setBoundaryElement}
|
|
14725
|
+
display="flex"
|
|
14726
|
+
flexDirection="column"
|
|
14727
|
+
marginTop="3xl"
|
|
14728
|
+
backgroundColor="background.primary.medium"
|
|
14729
|
+
padding="3xl"
|
|
14730
|
+
gap="3xl"
|
|
14731
|
+
style={{
|
|
14732
|
+
width: 500,
|
|
14733
|
+
height: 400,
|
|
14734
|
+
}}
|
|
14735
|
+
justifyContent="center"
|
|
14736
|
+
alignItems="center"
|
|
14737
|
+
>
|
|
14738
|
+
<Box
|
|
14739
|
+
style={{
|
|
14740
|
+
transform: \`translate(\${offset.x}px, \${offset.y}px)\`,
|
|
14741
|
+
}}
|
|
14742
|
+
>
|
|
14743
|
+
<Popover defaultOpen={true} {...popoverProps}>
|
|
14744
|
+
<PopoverTrigger>
|
|
14745
|
+
<ActionButton label="Open Popover" variant="secondary" />
|
|
14746
|
+
</PopoverTrigger>
|
|
14747
|
+
<PopoverContent
|
|
14748
|
+
elementHandle={popoverHandleRef}
|
|
14749
|
+
placement="bottom start"
|
|
14750
|
+
isNonModal={true}
|
|
14751
|
+
shouldRepositionOnScroll={true}
|
|
14752
|
+
shouldCloseOnInteractOutside={() => {
|
|
14753
|
+
return false;
|
|
14754
|
+
}}
|
|
14755
|
+
boundaryElement={boundaryElement || undefined}
|
|
14756
|
+
{...popoverContentProps}
|
|
14757
|
+
>
|
|
14758
|
+
<Dialog
|
|
14759
|
+
size="content"
|
|
14760
|
+
aria-label="content"
|
|
14761
|
+
className={sprinkles({
|
|
14762
|
+
display: "flex",
|
|
14763
|
+
flexDirection: "column",
|
|
14764
|
+
padding: "md",
|
|
14765
|
+
})}
|
|
14766
|
+
style={{ width: 250 }}
|
|
14767
|
+
>
|
|
14768
|
+
<Text type="body" size="sm">
|
|
14769
|
+
The popover is positioned relative to the trigger. Move the
|
|
14770
|
+
trigger and update its position.
|
|
14771
|
+
</Text>
|
|
14772
|
+
</Dialog>
|
|
14773
|
+
</PopoverContent>
|
|
14774
|
+
</Popover>
|
|
14775
|
+
</Box>
|
|
14776
|
+
</Box>
|
|
14777
|
+
</>
|
|
14778
|
+
);
|
|
14779
|
+
};`},similarTo:[],figmaUrl:null},PopoverTrigger:{id:"core-overlays-popover-popovertrigger",breadcrumb:"Core/Overlays/Popover",importStatement:`import {
|
|
14780
|
+
ActionButton,
|
|
14781
|
+
PopoverFunctionChildrenExample,
|
|
14782
|
+
PopoverTrigger,
|
|
14783
|
+
PopoverTriggerExample,
|
|
14784
|
+
PopoverWithCustomPositionExample,
|
|
14785
|
+
} from "@baseline-ui/core";`,description:"The `Popover` component is a versatile component that can be used to display additional content or actions in a floating overlay.",documentation:`The \`Popover\` component is a versatile component that can be used to display additional content or actions in a floating overlay.
|
|
14786
|
+
* The component is accessible via keyboard. Users can open, close, and navigate through the popover using keyboard keys such as \`Tab\`, \`Enter\`, \`Escape\`, and arrow keys.
|
|
14787
|
+
* When the popover is opened, the focus is moved to the content within the popover. When it is closed, the focus returns to the trigger element.
|
|
14788
|
+
* The component is properly labeled to provide context to assistive technologies. This is done using ARIA labels or visible text.
|
|
14789
|
+
* The popover is dismissible by clicking outside of it, pressing the Escape key, or through a close button within the popover.
|
|
14790
|
+
* It supports mouse, keyboard, and touch interactions.
|
|
14791
|
+
\`\`\`jsx
|
|
14792
|
+
import { Popover, PopoverTrigger, PopoverContent } from "../../utils";
|
|
14793
|
+
<Popover type="listbox">
|
|
14794
|
+
<PopoverTrigger>{/* Trigger component goes here */}</PopoverTrigger>
|
|
14795
|
+
<PopoverContent>
|
|
14796
|
+
{/* Content to be shown when popover is open goes here */}
|
|
14797
|
+
</PopoverContent>
|
|
14798
|
+
</Popover>;
|
|
14799
|
+
\`\`\`
|
|
14800
|
+
The \`PopoverTrigger\` component is used to wrap the element that will trigger the popover to open. It can any one of the button components from \`../../utils\`.
|
|
14801
|
+
It can also be replaced with specific coordinates and dimensions using the \`anchorRect\` prop; those coordinates will be used as anchor reference for positioning the popover content.
|
|
14802
|
+
The \`PopoverContent\` component is used to wrap the content that will be shown when the popover is open. It can be any valid HTML element or component.
|
|
14803
|
+
By default, the popover doesn't have an arrow. If you want to add an arrow to the popover, you can pass \`includeArrow\` prop to the \`PopoverContent\` component. It will add an arrow to the popover pointing towards the trigger element.
|
|
14804
|
+
By default, non-modal popovers close when scrolling occurs in parent elements. If you want the popover to reposition instead of closing, you can use the \`shouldRepositionOnScroll\` prop.
|
|
14805
|
+
\`\`\`jsx
|
|
14806
|
+
<Popover type="listbox">
|
|
14807
|
+
<PopoverTrigger>
|
|
14808
|
+
<ActionButton label="Open" />
|
|
14809
|
+
</PopoverTrigger>
|
|
14810
|
+
<PopoverContent isNonModal={true}>
|
|
14811
|
+
{/* Content closes when scrolling */}
|
|
14812
|
+
</PopoverContent>
|
|
14813
|
+
</Popover>
|
|
14814
|
+
\`\`\`
|
|
14815
|
+
When \`shouldRepositionOnScroll\` is \`true\`, the popover will reposition itself to stay attached to its trigger during scrolling, instead of closing. This is useful for persistent popovers in scrollable containers.
|
|
14816
|
+
\`\`\`jsx
|
|
14817
|
+
<Popover type="listbox">
|
|
14818
|
+
<PopoverTrigger>
|
|
14819
|
+
<ActionButton label="Open" />
|
|
14820
|
+
</PopoverTrigger>
|
|
14821
|
+
<PopoverContent shouldRepositionOnScroll={true}>
|
|
14822
|
+
{/* Content repositions and stays visible when scrolling */}
|
|
14823
|
+
</PopoverContent>
|
|
14824
|
+
</Popover>
|
|
14825
|
+
\`\`\`
|
|
14826
|
+
The popover will listen to scroll events from:
|
|
14827
|
+
* The window (page-level scrolling)
|
|
14828
|
+
* The boundary element (if specified)
|
|
14829
|
+
* All scrollable ancestors of the trigger element (nested containers)
|
|
14830
|
+
Position updates are throttled using \`requestAnimationFrame\` for optimal performance, ensuring smooth 60fps updates without layout thrashing.
|
|
14831
|
+
For advanced use cases where the trigger element's position changes dynamically (e.g., via JavaScript animations or layout shifts), you can manually trigger popover position recalculation using the \`elementHandle\` prop.
|
|
14832
|
+
\`\`\`jsx
|
|
14833
|
+
import { useRef } from "react";
|
|
14834
|
+
import { Popover, PopoverTrigger, PopoverContent } from "../../utils";
|
|
14835
|
+
function MyComponent() {
|
|
14836
|
+
const popoverHandleRef = useRef(null);
|
|
14837
|
+
const moveTrigger = () => {
|
|
14838
|
+
// Trigger has moved, recalculate popover position
|
|
14839
|
+
popoverHandleRef.current?.updatePosition();
|
|
14840
|
+
};
|
|
14841
|
+
return (
|
|
14842
|
+
<Popover type="listbox">
|
|
14843
|
+
<PopoverTrigger>
|
|
14844
|
+
<ActionButton label="Open" onClick={moveTrigger} />
|
|
14845
|
+
</PopoverTrigger>
|
|
14846
|
+
<PopoverContent elementHandle={popoverHandleRef}>
|
|
14847
|
+
{/* Content */}
|
|
14848
|
+
</PopoverContent>
|
|
14849
|
+
</Popover>
|
|
14850
|
+
);
|
|
14851
|
+
}
|
|
14852
|
+
\`\`\`
|
|
14853
|
+
The \`elementHandle\` prop accepts a ref that provides access to the \`PopoverContentHandle\` interface, which exposes:
|
|
14854
|
+
* \`updatePosition()\`: Manually recalculates the popover's position relative to the trigger element
|
|
14855
|
+
This is particularly useful when:
|
|
14856
|
+
* The trigger element moves due to CSS transforms or animations
|
|
14857
|
+
* The layout changes dynamically via JavaScript
|
|
14858
|
+
* You need to keep the popover attached to a moving target`,props:`interface PopoverTriggerProps {
|
|
14859
|
+
/**
|
|
14860
|
+
* The contents of the popover trigger.
|
|
14861
|
+
*/
|
|
14862
|
+
children?: | React.JSX.Element
|
|
14863
|
+
| (({
|
|
14864
|
+
isOpen,
|
|
14865
|
+
triggerProps,
|
|
14207
14866
|
triggerRef,
|
|
14208
14867
|
}: {
|
|
14209
14868
|
isOpen: boolean;
|
|
@@ -14239,6 +14898,7 @@ import { TextInput } from "../../TextInput";
|
|
|
14239
14898
|
import { Switch } from "../../Switch";
|
|
14240
14899
|
import type { Rect } from "../../../utils/types/Shared";
|
|
14241
14900
|
import type {
|
|
14901
|
+
PopoverContentHandle,
|
|
14242
14902
|
PopoverContentProps,
|
|
14243
14903
|
PopoverProps,
|
|
14244
14904
|
PopoverTriggerProps,
|
|
@@ -14764,6 +15424,180 @@ export const PopoverFunctionChildrenExample: React.FC<{
|
|
|
14764
15424
|
</PopoverContent>
|
|
14765
15425
|
</Popover>
|
|
14766
15426
|
);
|
|
15427
|
+
};
|
|
15428
|
+
export const PopoverWithNestedScrollableContainersExample: React.FC<{
|
|
15429
|
+
popoverProps: Omit<PopoverProps, "children">;
|
|
15430
|
+
popoverContentProps?: Omit<PopoverContentProps, "children">;
|
|
15431
|
+
}> = ({ popoverProps, popoverContentProps }) => {
|
|
15432
|
+
return (
|
|
15433
|
+
<Box
|
|
15434
|
+
padding="lg"
|
|
15435
|
+
style={{ height: 500, overflow: "auto" }}
|
|
15436
|
+
borderWidth={1}
|
|
15437
|
+
borderStyle="solid"
|
|
15438
|
+
borderColor="border.medium"
|
|
15439
|
+
backgroundColor="background.primary.subtle"
|
|
15440
|
+
borderRadius="md"
|
|
15441
|
+
data-testid="outer-scroll-container"
|
|
15442
|
+
>
|
|
15443
|
+
<Box padding="lg" style={{ height: 1000 }}>
|
|
15444
|
+
<Text
|
|
15445
|
+
type="title"
|
|
15446
|
+
style={{
|
|
15447
|
+
display: "block",
|
|
15448
|
+
}}
|
|
15449
|
+
>
|
|
15450
|
+
Outer Scrollable Container
|
|
15451
|
+
</Text>
|
|
15452
|
+
<Text
|
|
15453
|
+
type="label"
|
|
15454
|
+
style={{
|
|
15455
|
+
marginBottom: 12,
|
|
15456
|
+
display: "block",
|
|
15457
|
+
}}
|
|
15458
|
+
>
|
|
15459
|
+
Try scrolling this outer container and watch the popover reposition as
|
|
15460
|
+
it scrolls
|
|
15461
|
+
</Text>
|
|
15462
|
+
<Box
|
|
15463
|
+
padding="lg"
|
|
15464
|
+
style={{
|
|
15465
|
+
height: 280,
|
|
15466
|
+
overflow: "auto",
|
|
15467
|
+
marginBottom: 24,
|
|
15468
|
+
}}
|
|
15469
|
+
borderWidth={1}
|
|
15470
|
+
borderStyle="solid"
|
|
15471
|
+
borderColor="border.subtle"
|
|
15472
|
+
backgroundColor="background.primary.strong"
|
|
15473
|
+
borderRadius="md"
|
|
15474
|
+
data-testid="inner-scroll-container"
|
|
15475
|
+
>
|
|
15476
|
+
<Box style={{ height: 500 }}>
|
|
15477
|
+
<Text
|
|
15478
|
+
type="title"
|
|
15479
|
+
style={{
|
|
15480
|
+
display: "block",
|
|
15481
|
+
}}
|
|
15482
|
+
>
|
|
15483
|
+
Inner Scrollable Container
|
|
15484
|
+
</Text>
|
|
15485
|
+
<Text
|
|
15486
|
+
type="label"
|
|
15487
|
+
style={{
|
|
15488
|
+
marginBottom: 12,
|
|
15489
|
+
display: "block",
|
|
15490
|
+
}}
|
|
15491
|
+
>
|
|
15492
|
+
And this inner container too. The popover detects all scrollable
|
|
15493
|
+
ancestors
|
|
15494
|
+
</Text>
|
|
15495
|
+
<PopoverExample
|
|
15496
|
+
popoverProps={popoverProps}
|
|
15497
|
+
popoverContentProps={popoverContentProps}
|
|
15498
|
+
/>
|
|
15499
|
+
</Box>
|
|
15500
|
+
</Box>
|
|
15501
|
+
</Box>
|
|
15502
|
+
</Box>
|
|
15503
|
+
);
|
|
15504
|
+
};
|
|
15505
|
+
export const PopoverManualRepositioningExample: React.FC<{
|
|
15506
|
+
popoverProps?: Omit<PopoverProps, "children">;
|
|
15507
|
+
popoverContentProps?: Omit<PopoverContentProps, "children">;
|
|
15508
|
+
}> = ({ popoverProps = { type: "dialog" }, popoverContentProps }) => {
|
|
15509
|
+
const popoverHandleRef = useRef<PopoverContentHandle>(null);
|
|
15510
|
+
const [boundaryElement, setBoundaryElement] = useState<HTMLDivElement | null>(
|
|
15511
|
+
null,
|
|
15512
|
+
);
|
|
15513
|
+
const [offset, setOffset] = useState({ x: 0, y: 0 });
|
|
15514
|
+
useEffect(() => {
|
|
15515
|
+
popoverHandleRef.current?.updatePosition();
|
|
15516
|
+
}, [offset, popoverHandleRef]);
|
|
15517
|
+
return (
|
|
15518
|
+
<>
|
|
15519
|
+
<Box display="flex" gap="sm">
|
|
15520
|
+
<ActionButton
|
|
15521
|
+
label="Move Left"
|
|
15522
|
+
onPress={() => {
|
|
15523
|
+
setOffset((prev) => ({ ...prev, x: prev.x - 50 }));
|
|
15524
|
+
}}
|
|
15525
|
+
/>
|
|
15526
|
+
<ActionButton
|
|
15527
|
+
label="Move Right"
|
|
15528
|
+
onPress={() => {
|
|
15529
|
+
setOffset((prev) => ({ ...prev, x: prev.x + 50 }));
|
|
15530
|
+
}}
|
|
15531
|
+
/>
|
|
15532
|
+
<ActionButton
|
|
15533
|
+
label="Move Down"
|
|
15534
|
+
onPress={() => {
|
|
15535
|
+
setOffset((prev) => ({ ...prev, y: prev.y + 50 }));
|
|
15536
|
+
}}
|
|
15537
|
+
/>
|
|
15538
|
+
<ActionButton
|
|
15539
|
+
label="Move Up"
|
|
15540
|
+
onPress={() => {
|
|
15541
|
+
setOffset((prev) => ({ ...prev, y: prev.y - 50 }));
|
|
15542
|
+
}}
|
|
15543
|
+
/>
|
|
15544
|
+
</Box>
|
|
15545
|
+
<Box
|
|
15546
|
+
ref={setBoundaryElement}
|
|
15547
|
+
display="flex"
|
|
15548
|
+
flexDirection="column"
|
|
15549
|
+
marginTop="3xl"
|
|
15550
|
+
backgroundColor="background.primary.medium"
|
|
15551
|
+
padding="3xl"
|
|
15552
|
+
gap="3xl"
|
|
15553
|
+
style={{
|
|
15554
|
+
width: 500,
|
|
15555
|
+
height: 400,
|
|
15556
|
+
}}
|
|
15557
|
+
justifyContent="center"
|
|
15558
|
+
alignItems="center"
|
|
15559
|
+
>
|
|
15560
|
+
<Box
|
|
15561
|
+
style={{
|
|
15562
|
+
transform: \`translate(\${offset.x}px, \${offset.y}px)\`,
|
|
15563
|
+
}}
|
|
15564
|
+
>
|
|
15565
|
+
<Popover defaultOpen={true} {...popoverProps}>
|
|
15566
|
+
<PopoverTrigger>
|
|
15567
|
+
<ActionButton label="Open Popover" variant="secondary" />
|
|
15568
|
+
</PopoverTrigger>
|
|
15569
|
+
<PopoverContent
|
|
15570
|
+
elementHandle={popoverHandleRef}
|
|
15571
|
+
placement="bottom start"
|
|
15572
|
+
isNonModal={true}
|
|
15573
|
+
shouldRepositionOnScroll={true}
|
|
15574
|
+
shouldCloseOnInteractOutside={() => {
|
|
15575
|
+
return false;
|
|
15576
|
+
}}
|
|
15577
|
+
boundaryElement={boundaryElement || undefined}
|
|
15578
|
+
{...popoverContentProps}
|
|
15579
|
+
>
|
|
15580
|
+
<Dialog
|
|
15581
|
+
size="content"
|
|
15582
|
+
aria-label="content"
|
|
15583
|
+
className={sprinkles({
|
|
15584
|
+
display: "flex",
|
|
15585
|
+
flexDirection: "column",
|
|
15586
|
+
padding: "md",
|
|
15587
|
+
})}
|
|
15588
|
+
style={{ width: 250 }}
|
|
15589
|
+
>
|
|
15590
|
+
<Text type="body" size="sm">
|
|
15591
|
+
The popover is positioned relative to the trigger. Move the
|
|
15592
|
+
trigger and update its position.
|
|
15593
|
+
</Text>
|
|
15594
|
+
</Dialog>
|
|
15595
|
+
</PopoverContent>
|
|
15596
|
+
</Popover>
|
|
15597
|
+
</Box>
|
|
15598
|
+
</Box>
|
|
15599
|
+
</>
|
|
15600
|
+
);
|
|
14767
15601
|
};`},similarTo:[],figmaUrl:null},Portal:{id:"core-utilities-portal",breadcrumb:"Core/Utilities/PortalContainerProvider",importStatement:'import { Portal } from "@baseline-ui/core";',description:"`PortalContainerProvider` allows you to provide a custom overlay portal where all overlay components will be rendered. This is useful when you want to render overlays in a specific part of the DOM, for example when you encapsulate your application inside of a shadow DOM and wants to render all overlays inside of shadow root where they can access the defined styles without the need to redefine the CSS outside of the shadow root.\nProviding any overlay component with `portalContainer` will override the overlay portal value from the provider and render the component inside of the provided container.",documentation:'`PortalContainerProvider` allows you to provide a custom overlay portal where all overlay components will be rendered. This is useful when you want to render overlays in a specific part of the DOM, for example when you encapsulate your application inside of a shadow DOM and wants to render all overlays inside of shadow root where they can access the defined styles without the need to redefine the CSS outside of the shadow root.\nProviding any overlay component with `portalContainer` will override the overlay portal value from the provider and render the component inside of the provided container.\nThis example shows how to use `PortalContainerProvider`.\n```jsx\nimport { PortalContainerProvider } from "@storybook/core";\nconst shadowPortalContainer = shadowRoot.querySelector(\n `.shadow-portal-container`,\n);\nexport const App = () => (\n <PortalContainerProvider portalContainer={shadowPortalContainer}>\n <App />\n </PortalContainerProvider>\n);\n```\nAll overlay components will be rendered inside the `shadowPortalContainer` without the need to repeatedly provide `portalContainer` for all overlays in the application.',props:`interface PortalProps {
|
|
14768
15602
|
/**
|
|
14769
15603
|
* The container element in which the overlay portal will be placed.
|
|
@@ -20251,7 +21085,7 @@ layoutOptions?: O
|
|
|
20251
21085
|
12 | export { VirtualizedVertical as ListLayoutExample } from "../UNSAFE_ListBox/UNSAFE_ListBox.stories";
|
|
20252
21086
|
> 13 | export { WithVirtualization as GridLayoutExample } from "../ImageGallery/ImageGallery.stories";
|
|
20253
21087
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
20254
|
-
14 |`},id:"core-collections-virtualizer--grid-layout-example"}],implementation:""},similarTo:[],figmaUrl:null}};var ms={version:"0.
|
|
21088
|
+
14 |`},id:"core-collections-virtualizer--grid-layout-example"}],implementation:""},similarTo:[],figmaUrl:null}};var ms={version:"0.49.0"};var hs=`
|
|
20255
21089
|
# Baseline UI MCP Server Guidelines
|
|
20256
21090
|
|
|
20257
21091
|
This MCP server provides AI assistants with structured access to Baseline UI's comprehensive component documentation, icon library, theming resources, and design guidelines.
|
|
@@ -20411,8 +21245,8 @@ Use this tool to:
|
|
|
20411
21245
|
| --- | --- | --- |
|
|
20412
21246
|
${Object.entries(Mn).map(([s,{description:N,similarTo:D}])=>`|${s}|${N}|${D?.join(", ")||""}|`).join(`
|
|
20413
21247
|
`)}
|
|
20414
|
-
`,
|
|
21248
|
+
`,Eg=Object.entries(us).map(([s,N])=>`${s}
|
|
20415
21249
|
|
|
20416
21250
|
${N.map(D=>"- "+D).join(`
|
|
20417
21251
|
`)}`).join(`
|
|
20418
|
-
`);async function
|
|
21252
|
+
`);async function Lg(){let s=new mcp_js.McpServer({name:"baseline-ui",version:ms.version});s.registerResource("list_components","resource://baseline-ui/list_components.md",{description:Ci,mimeType:"text/markdown"},D=>({contents:[{uri:D.href,mimeType:"text/markdown",text:Rg}]})),s.registerResource("list_icons","resource://baseline-ui/list_icons.md",{description:Si,mimeType:"text/markdown"},D=>({contents:[{uri:D.href,mimeType:"text/markdown",text:Eg}]})),s.registerResource("getting_started","resource://baseline-ui/getting_started.md",{description:"Quick start guide for integrating Baseline UI into new projects",mimeType:"text/markdown"},D=>({contents:[{uri:D.href,mimeType:"text/markdown",text:Ln.gettingStarted}]})),s.registerResource("nutrient_web_viewer_theming","resource://baseline-ui/nutrient_web_viewer_theming.md",{description:"Specialized theming guide for customizing Baseline UI in Nutrient Web Viewer. This is not applicable if you are not theming the Nutrient Web Viewer SDK.",mimeType:"text/markdown"},D=>({contents:[{uri:D.href,mimeType:"text/markdown",text:Ln.nutrientWebViewerTheming}]})),s.registerResource("theming","resource://baseline-ui/theming.md",{description:"Comprehensive guide for implementing custom themes and color schemes in Baseline UI",mimeType:"text/markdown"},D=>({contents:[{uri:D.href,mimeType:"text/markdown",text:Ln.theming}]})),s.registerResource("internationalization","resource://baseline-ui/internationalization.md",{description:"Guide for implementing multi-language support and localization in Baseline UI",mimeType:"text/markdown"},D=>({contents:[{uri:D.href,mimeType:"text/markdown",text:Ln.internationalization}]})),s.registerResource("styling","resource://baseline-ui/styling.md",{description:Ai,mimeType:"text/markdown"},D=>({contents:[{uri:D.href,mimeType:"text/markdown",text:Ln.styling}]})),s.registerResource("guidelines","resource://baseline-ui/guidelines.md",{description:ki,mimeType:"text/markdown"},D=>({contents:[{uri:D.href,mimeType:"text/markdown",text:hs}]})),s.registerTool("get_component_info",{title:"Get component info",description:gs,inputSchema:{componentName:zod.z.enum(Object.keys(Mn))}},({componentName:D})=>({content:[{type:"text",text:JSON.stringify(vs.default.omit(Mn[D],"description","similarTo","figmaUrl"),null,2)}]})),s.registerTool("get_story_url",{title:"Get story demo URL",description:bs,inputSchema:{storyId:zod.z.string()}},({storyId:D})=>({content:[{type:"text",text:`https://nutrient.io/baseline-ui/iframe.html?id=${D}`}]})),s.registerTool("get_figma_url",{title:"Get Figma URL",description:fs,inputSchema:{componentName:zod.z.enum(Object.keys(Mn))}},({componentName:D})=>({content:[{type:"text",text:Mn[D].figmaUrl}]})),s.registerTool("list_available_resources",{title:"List Available Resources",description:ys,inputSchema:{}},()=>({content:[{type:"text",text:JSON.stringify([{name:"list_components",uri:"resource://baseline-ui/list_components.md",description:Ci,mimeType:"text/markdown"},{name:"list_icons",uri:"resource://baseline-ui/list_icons.md",description:Si,mimeType:"text/markdown"},{name:"getting_started",uri:"resource://baseline-ui/getting_started.md",description:"Quick start guide for integrating Baseline UI into new projects",mimeType:"text/markdown"},{name:"nutrient_web_viewer_theming",uri:"resource://baseline-ui/nutrient_web_viewer_theming.md",description:"Specialized theming guide for customizing Baseline UI in Nutrient Web Viewer. This is not applicable if you are not theming the Nutrient Web Viewer SDK.",mimeType:"text/markdown"},{name:"theming",uri:"resource://baseline-ui/theming.md",description:"Comprehensive guide for implementing custom themes and color schemes in Baseline UI",mimeType:"text/markdown"},{name:"internationalization",uri:"resource://baseline-ui/internationalization.md",description:"Guide for implementing multi-language support and localization in Baseline UI",mimeType:"text/markdown"},{name:"styling",uri:"resource://baseline-ui/styling.md",description:Ai,mimeType:"text/markdown"},{name:"guidelines",uri:"resource://baseline-ui/guidelines.md",description:ki,mimeType:"text/markdown"}],null,2)}]}));let N=new stdio_js.StdioServerTransport;await s.connect(N);}(async()=>await Lg())();
|