diff --git a/docs/_static/images/icicle_flame_toggle.png b/docs/_static/images/icicle_flame_toggle.png new file mode 100755 index 0000000000..07a1769a9e Binary files /dev/null and b/docs/_static/images/icicle_flame_toggle.png differ diff --git a/docs/_static/images/invert_button.png b/docs/_static/images/invert_button.png deleted file mode 100644 index 688762c978..0000000000 Binary files a/docs/_static/images/invert_button.png and /dev/null differ diff --git a/docs/flamegraph.rst b/docs/flamegraph.rst index 601678438b..c1b987f425 100644 --- a/docs/flamegraph.rst +++ b/docs/flamegraph.rst @@ -196,19 +196,24 @@ checkbox: Note that allocations in these frames will still be accounted for in parent frames, even if they're hidden. -Inverted View ------------------ - -Although the flame graphs explained above show the calling functions below -and memory allocating functions above, flame graphs can be inverted -so that the calling functions are at the top, while memory allocating -functions are at the bottom. In this view, look for wide ceilings -instead of wide plateaus to find functions with the largest allocation -of memory. - -To invert the flame graph, press the *Invert* button: +Flames versus Icicles +--------------------- -.. image:: _static/images/invert_button.png +The flame graphs explained above show each function above its caller, +with the root at the bottom. This is what's traditionally called +a "flame graph", because the wide base with narrowing columns above it +looks sort of like a burning log with flames leaping into the air above +it. Memray also supports what's sometimes called an "icicle graph", +which has the root at the top. In an icicle graph, each function is +below its caller, and there is a wide ceiling that thinner columns +descend from, like icicles hanging from a roof. Whichever of these modes +you choose, the data shown in the table is the same, just mirrored +vertically. + +You can switch between showing a flame graph and an icicle graph with +this toggle button: + +.. image:: _static/images/icicle_flame_toggle.png :align: center .. _memory-leaks-view: diff --git a/src/memray/reporters/assets/flamegraph.js b/src/memray/reporters/assets/flamegraph.js index 5049eac33f..d251295041 100644 --- a/src/memray/reporters/assets/flamegraph.js +++ b/src/memray/reporters/assets/flamegraph.js @@ -77,7 +77,8 @@ function main() { } // Setup event handlers - document.getElementById("invertButton").onclick = onInvert; + document.getElementById("icicles").onchange = onInvert; + document.getElementById("flames").onchange = onInvert; document.getElementById("resetZoomButton").onclick = onResetZoom; document.getElementById("resetThreadFilterItem").onclick = onFilterThread; let hideUninterestingCheckBox = document.getElementById("hideUninteresting"); diff --git a/src/memray/reporters/assets/flamegraph_common.js b/src/memray/reporters/assets/flamegraph_common.js index 494b8513c4..10d5b04125 100644 --- a/src/memray/reporters/assets/flamegraph_common.js +++ b/src/memray/reporters/assets/flamegraph_common.js @@ -75,8 +75,11 @@ export function handleFragments() { // For the invert button export function onInvert() { - chart.inverted(!chart.inverted()); + chart.inverted(this === document.getElementById("icicles")); chart.resetZoom(); // calls onClick + + // Hide the tooltip for the radio button that was just clicked. + $('[data-toggle="tooltip"]').tooltip("hide"); } export function onResetZoom() { diff --git a/src/memray/reporters/assets/temporal_flamegraph.js b/src/memray/reporters/assets/temporal_flamegraph.js index 9fd131e08d..bce2880e33 100644 --- a/src/memray/reporters/assets/temporal_flamegraph.js +++ b/src/memray/reporters/assets/temporal_flamegraph.js @@ -415,7 +415,8 @@ function main() { } // Setup event handlers - document.getElementById("invertButton").onclick = onInvert; + document.getElementById("icicles").onchange = onInvert; + document.getElementById("flames").onchange = onInvert; document.getElementById("resetZoomButton").onclick = onResetZoom; document.getElementById("resetThreadFilterItem").onclick = onFilterThread; let hideUninterestingCheckBox = document.getElementById("hideUninteresting"); diff --git a/src/memray/reporters/templates/assets/flamegraph.css b/src/memray/reporters/templates/assets/flamegraph.css index 37f6ba590f..d804bddb0a 100644 --- a/src/memray/reporters/templates/assets/flamegraph.css +++ b/src/memray/reporters/templates/assets/flamegraph.css @@ -88,3 +88,11 @@ background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black */ z-index: 99; /* make sure it's on top of other elements */ } + +.flamegraph-icon { + display: flex; + align-items: center; + justify-content: center; +} + +.flipped svg { transform: scale(1,-1); } diff --git a/src/memray/reporters/templates/assets/flamegraph.js b/src/memray/reporters/templates/assets/flamegraph.js index c86c4304a4..1e90513122 100644 --- a/src/memray/reporters/templates/assets/flamegraph.js +++ b/src/memray/reporters/templates/assets/flamegraph.js @@ -6,4 +6,4 @@ * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */n=r.nmd(n),function(){var u,i="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",f=16,c=32,l=64,s=128,h=256,p=1/0,v=9007199254740991,_=NaN,g=4294967295,d=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",f],["flip",512],["partial",c],["partialRight",l],["rearg",h]],y="[object Arguments]",m="[object Array]",w="[object Boolean]",b="[object Date]",x="[object Error]",j="[object Function]",A="[object GeneratorFunction]",I="[object Map]",k="[object Number]",E="[object Object]",O="[object Promise]",B="[object RegExp]",z="[object Set]",R="[object String]",S="[object Symbol]",C="[object WeakMap]",F="[object ArrayBuffer]",L="[object DataView]",U="[object Float32Array]",W="[object Float64Array]",T="[object Int8Array]",D="[object Int16Array]",$="[object Int32Array]",M="[object Uint8Array]",P="[object Uint8ClampedArray]",N="[object Uint16Array]",q="[object Uint32Array]",Z=/\b__p \+= '';/g,G=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,H=RegExp(V.source),J=RegExp(Y.source),X=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,en=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,on=RegExp(un.source),an=/^\s+/,fn=/\s/,cn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ln=/\{\n\/\* \[wrapped with (.+)\] \*/,sn=/,? & /,hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,_n=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gn=/\w*$/,dn=/^[-+]0x[0-9a-f]+$/i,yn=/^0b[01]+$/i,mn=/^\[object .+?Constructor\]$/,wn=/^0o[0-7]+$/i,bn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jn=/($^)/,An=/['\n\r\u2028\u2029\\]/g,In="\\ud800-\\udfff",kn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",En="\\u2700-\\u27bf",On="a-z\\xdf-\\xf6\\xf8-\\xff",Bn="A-Z\\xc0-\\xd6\\xd8-\\xde",zn="\\ufe0e\\ufe0f",Rn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",Sn="['’]",Cn="["+In+"]",Fn="["+Rn+"]",Ln="["+kn+"]",Un="\\d+",Wn="["+En+"]",Tn="["+On+"]",Dn="[^"+In+Rn+Un+En+On+Bn+"]",$n="\\ud83c[\\udffb-\\udfff]",Mn="[^"+In+"]",Pn="(?:\\ud83c[\\udde6-\\uddff]){2}",Nn="[\\ud800-\\udbff][\\udc00-\\udfff]",qn="["+Bn+"]",Zn="\\u200d",Gn="(?:"+Tn+"|"+Dn+")",Kn="(?:"+qn+"|"+Dn+")",Vn="(?:['’](?:d|ll|m|re|s|t|ve))?",Yn="(?:['’](?:D|LL|M|RE|S|T|VE))?",Hn="(?:"+Ln+"|"+$n+")"+"?",Jn="["+zn+"]?",Xn=Jn+Hn+("(?:"+Zn+"(?:"+[Mn,Pn,Nn].join("|")+")"+Jn+Hn+")*"),Qn="(?:"+[Wn,Pn,Nn].join("|")+")"+Xn,nt="(?:"+[Mn+Ln+"?",Ln,Pn,Nn,Cn].join("|")+")",tt=RegExp(Sn,"g"),rt=RegExp(Ln,"g"),et=RegExp($n+"(?="+$n+")|"+nt+Xn,"g"),ut=RegExp([qn+"?"+Tn+"+"+Vn+"(?="+[Fn,qn,"$"].join("|")+")",Kn+"+"+Yn+"(?="+[Fn,qn+Gn,"$"].join("|")+")",qn+"?"+Gn+"+"+Vn,qn+"+"+Yn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Un,Qn].join("|"),"g"),it=RegExp("["+Zn+In+kn+zn+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["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"],ft=-1,ct={};ct[U]=ct[W]=ct[T]=ct[D]=ct[$]=ct[M]=ct[P]=ct[N]=ct[q]=!0,ct[y]=ct[m]=ct[F]=ct[w]=ct[L]=ct[b]=ct[x]=ct[j]=ct[I]=ct[k]=ct[E]=ct[B]=ct[z]=ct[R]=ct[C]=!1;var lt={};lt[y]=lt[m]=lt[F]=lt[L]=lt[w]=lt[b]=lt[U]=lt[W]=lt[T]=lt[D]=lt[$]=lt[I]=lt[k]=lt[E]=lt[B]=lt[z]=lt[R]=lt[S]=lt[M]=lt[P]=lt[N]=lt[q]=!0,lt[x]=lt[j]=lt[C]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ht=parseFloat,pt=parseInt,vt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,_t="object"==typeof self&&self&&self.Object===Object&&self,gt=vt||_t||Function("return this")(),dt=t&&!t.nodeType&&t,yt=dt&&n&&!n.nodeType&&n,mt=yt&&yt.exports===dt,wt=mt&&vt.process,bt=function(){try{var n=yt&&yt.require&&yt.require("util").types;return n||wt&&wt.binding&&wt.binding("util")}catch(n){}}(),xt=bt&&bt.isArrayBuffer,jt=bt&&bt.isDate,At=bt&&bt.isMap,It=bt&&bt.isRegExp,kt=bt&&bt.isSet,Et=bt&&bt.isTypedArray;function Ot(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function Bt(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function Lt(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function ur(n,t){for(var r=n.length;r--&&qt(t,n[r],0)>-1;);return r}var ir=Yt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),or=Yt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ar(n){return"\\"+st[n]}function fr(n){return it.test(n)}function cr(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function lr(n,t){return function(r){return n(t(r))}}function sr(n,t){for(var r=-1,e=n.length,u=0,i=[];++r",""":'"',"'":"'"});var yr=function n(t){var r,e=(t=null==t?gt:yr.defaults(gt.Object(),t,yr.pick(gt,at))).Array,fn=t.Date,In=t.Error,kn=t.Function,En=t.Math,On=t.Object,Bn=t.RegExp,zn=t.String,Rn=t.TypeError,Sn=e.prototype,Cn=kn.prototype,Fn=On.prototype,Ln=t["__core-js_shared__"],Un=Cn.toString,Wn=Fn.hasOwnProperty,Tn=0,Dn=(r=/[^.]+$/.exec(Ln&&Ln.keys&&Ln.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",$n=Fn.toString,Mn=Un.call(On),Pn=gt._,Nn=Bn("^"+Un.call(Wn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qn=mt?t.Buffer:u,Zn=t.Symbol,Gn=t.Uint8Array,Kn=qn?qn.allocUnsafe:u,Vn=lr(On.getPrototypeOf,On),Yn=On.create,Hn=Fn.propertyIsEnumerable,Jn=Sn.splice,Xn=Zn?Zn.isConcatSpreadable:u,Qn=Zn?Zn.iterator:u,nt=Zn?Zn.toStringTag:u,et=function(){try{var n=hi(On,"defineProperty");return n({},"",{}),n}catch(n){}}(),it=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,st=fn&&fn.now!==gt.Date.now&&fn.now,vt=t.setTimeout!==gt.setTimeout&&t.setTimeout,_t=En.ceil,dt=En.floor,yt=On.getOwnPropertySymbols,wt=qn?qn.isBuffer:u,bt=t.isFinite,Mt=Sn.join,Yt=lr(On.keys,On),mr=En.max,wr=En.min,br=fn.now,xr=t.parseInt,jr=En.random,Ar=Sn.reverse,Ir=hi(t,"DataView"),kr=hi(t,"Map"),Er=hi(t,"Promise"),Or=hi(t,"Set"),Br=hi(t,"WeakMap"),zr=hi(On,"create"),Rr=Br&&new Br,Sr={},Cr=Ti(Ir),Fr=Ti(kr),Lr=Ti(Er),Ur=Ti(Or),Wr=Ti(Br),Tr=Zn?Zn.prototype:u,Dr=Tr?Tr.valueOf:u,$r=Tr?Tr.toString:u;function Mr(n){if(ra(n)&&!Zo(n)&&!(n instanceof Zr)){if(n instanceof qr)return n;if(Wn.call(n,"__wrapped__"))return Di(n)}return new qr(n)}var Pr=function(){function n(){}return function(t){if(!ta(t))return{};if(Yn)return Yn(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function Nr(){}function qr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function Zr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Gr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function ce(n,t,r,e,i,o){var a,f=1&t,c=2&t,l=4&t;if(r&&(a=i?r(n,e,i,o):r(n)),a!==u)return a;if(!ta(n))return n;var s=Zo(n);if(s){if(a=function(n){var t=n.length,r=new n.constructor(t);t&&"string"==typeof n[0]&&Wn.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!f)return zu(n,a)}else{var h=_i(n),p=h==j||h==A;if(Yo(n))return Au(n,f);if(h==E||h==y||p&&!i){if(a=c||p?{}:di(n),!f)return c?function(n,t){return Ru(n,vi(n),t)}(n,function(n,t){return n&&Ru(t,Ca(t),n)}(a,n)):function(n,t){return Ru(n,pi(n),t)}(n,ie(a,n))}else{if(!lt[h])return i?n:{};a=function(n,t,r){var e=n.constructor;switch(t){case F:return Iu(n);case w:case b:return new e(+n);case L:return function(n,t){var r=t?Iu(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case U:case W:case T:case D:case $:case M:case P:case N:case q:return ku(n,r);case I:return new e;case k:case R:return new e(n);case B:return function(n){var t=new n.constructor(n.source,gn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case z:return new e;case S:return u=n,Dr?On(Dr.call(u)):{}}var u}(n,h,f)}}o||(o=new Hr);var v=o.get(n);if(v)return v;o.set(n,a),aa(n)?n.forEach((function(e){a.add(ce(e,t,r,e,n,o))})):ea(n)&&n.forEach((function(e,u){a.set(u,ce(e,t,r,u,n,o))}));var _=s?u:(l?c?ii:ui:c?Ca:Sa)(n);return zt(_||n,(function(e,u){_&&(e=n[u=e]),re(a,u,ce(e,t,r,u,n,o))})),a}function le(n,t,r){var e=r.length;if(null==n)return!e;for(n=On(n);e--;){var i=r[e],o=t[i],a=n[i];if(a===u&&!(i in n)||!o(a))return!1}return!0}function se(n,t,r){if("function"!=typeof n)throw new Rn(i);return Ri((function(){n.apply(u,r)}),t)}function he(n,t,r,e){var u=-1,i=Ft,o=!0,a=n.length,f=[],c=t.length;if(!a)return f;r&&(t=Ut(t,nr(r))),e?(i=Lt,o=!1):t.length>=200&&(i=rr,o=!1,t=new Yr(t));n:for(;++u-1},Kr.prototype.set=function(n,t){var r=this.__data__,e=ee(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Vr.prototype.clear=function(){this.size=0,this.__data__={hash:new Gr,map:new(kr||Kr),string:new Gr}},Vr.prototype.delete=function(n){var t=li(this,n).delete(n);return this.size-=t?1:0,t},Vr.prototype.get=function(n){return li(this,n).get(n)},Vr.prototype.has=function(n){return li(this,n).has(n)},Vr.prototype.set=function(n,t){var r=li(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Yr.prototype.add=Yr.prototype.push=function(n){return this.__data__.set(n,o),this},Yr.prototype.has=function(n){return this.__data__.has(n)},Hr.prototype.clear=function(){this.__data__=new Kr,this.size=0},Hr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Hr.prototype.get=function(n){return this.__data__.get(n)},Hr.prototype.has=function(n){return this.__data__.has(n)},Hr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Kr){var e=r.__data__;if(!kr||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Vr(e)}return r.set(n,t),this.size=r.size,this};var pe=Fu(be),ve=Fu(xe,!0);function _e(n,t){var r=!0;return pe(n,(function(n,e,u){return r=!!t(n,e,u)})),r}function ge(n,t,r){for(var e=-1,i=n.length;++e0&&r(a)?t>1?ye(a,t-1,r,e,u):Wt(u,a):e||(u[u.length]=a)}return u}var me=Lu(),we=Lu(!0);function be(n,t){return n&&me(n,t,Sa)}function xe(n,t){return n&&we(n,t,Sa)}function je(n,t){return Ct(t,(function(t){return Xo(n[t])}))}function Ae(n,t){for(var r=0,e=(t=wu(t,n)).length;null!=n&&rt}function Oe(n,t){return null!=n&&Wn.call(n,t)}function Be(n,t){return null!=n&&t in On(n)}function ze(n,t,r){for(var i=r?Lt:Ft,o=n[0].length,a=n.length,f=a,c=e(a),l=1/0,s=[];f--;){var h=n[f];f&&t&&(h=Ut(h,nr(t))),l=wr(h.length,l),c[f]=!r&&(t||o>=120&&h.length>=120)?new Yr(f&&h):u}h=n[0];var p=-1,v=c[0];n:for(;++p=a?f:f*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}))}function Ge(n,t,r){for(var e=-1,u=t.length,i={};++e-1;)a!==n&&Jn.call(a,f,1),Jn.call(n,f,1);return n}function Ve(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;mi(u)?Jn.call(n,u,1):hu(n,u)}}return n}function Ye(n,t){return n+dt(jr()*(t-n+1))}function He(n,t){var r="";if(!n||t<1||t>v)return r;do{t%2&&(r+=n),(t=dt(t/2))&&(n+=n)}while(t);return r}function Je(n,t){return Si(Ei(n,t,uf),n+"")}function Xe(n){return Xr(Ma(n))}function Qe(n,t){var r=Ma(n);return Li(r,fe(t,0,r.length))}function nu(n,t,r,e){if(!ta(n))return n;for(var i=-1,o=(t=wu(t,n)).length,a=o-1,f=n;null!=f&&++ii?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=e(i);++u>>1,o=n[i];null!==o&&!ca(o)&&(r?o<=t:o=200){var c=t?null:Hu(n);if(c)return hr(c);o=!1,u=rr,f=new Yr}else f=t?[]:a;n:for(;++e=e?n:uu(n,t,r)}var ju=it||function(n){return gt.clearTimeout(n)};function Au(n,t){if(t)return n.slice();var r=n.length,e=Kn?Kn(r):new n.constructor(r);return n.copy(e),e}function Iu(n){var t=new n.constructor(n.byteLength);return new Gn(t).set(new Gn(n)),t}function ku(n,t){var r=t?Iu(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function Eu(n,t){if(n!==t){var r=n!==u,e=null===n,i=n==n,o=ca(n),a=t!==u,f=null===t,c=t==t,l=ca(t);if(!f&&!l&&!o&&n>t||o&&a&&c&&!f&&!l||e&&a&&c||!r&&c||!i)return 1;if(!e&&!o&&!l&&n1?r[i-1]:u,a=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,a&&wi(r[0],r[1],a)&&(o=i<3?u:o,i=1),t=On(t);++e-1?i[o?t[a]:a]:u}}function $u(n){return ei((function(t){var r=t.length,e=r,o=qr.prototype.thru;for(n&&t.reverse();e--;){var a=t[e];if("function"!=typeof a)throw new Rn(i);if(o&&!f&&"wrapper"==ai(a))var f=new qr([],!0)}for(e=f?e:r;++e1&&w.reverse(),p&&lf))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new Yr:u;for(o.set(n,t),o.set(t,n);++h-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(cn,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return zt(d,(function(r){var e="_."+r[0];t&r[1]&&!Ft(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(ln);return t?t[1].split(sn):[]}(e),r)))}function Fi(n){var t=0,r=0;return function(){var e=br(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function Li(n,t){var r=-1,e=n.length,i=e-1;for(t=t===u?e:t;++r1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,io(n,r)}));function ho(n){var t=Mr(n);return t.__chain__=!0,t}function po(n,t){return t(n)}var vo=ei((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return ae(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Zr&&mi(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:po,args:[i],thisArg:u}),new qr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(u),n}))):this.thru(i)}));var _o=Su((function(n,t,r){Wn.call(n,r)?++n[r]:oe(n,r,1)}));var go=Du(Ni),yo=Du(qi);function mo(n,t){return(Zo(n)?zt:pe)(n,ci(t,3))}function wo(n,t){return(Zo(n)?Rt:ve)(n,ci(t,3))}var bo=Su((function(n,t,r){Wn.call(n,r)?n[r].push(t):oe(n,r,[t])}));var xo=Je((function(n,t,r){var u=-1,i="function"==typeof t,o=Ko(n)?e(n.length):[];return pe(n,(function(n){o[++u]=i?Ot(t,n,r):Re(n,t,r)})),o})),jo=Su((function(n,t,r){oe(n,r,t)}));function Ao(n,t){return(Zo(n)?Ut:$e)(n,ci(t,3))}var Io=Su((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var ko=Je((function(n,t){if(null==n)return[];var r=t.length;return r>1&&wi(n,t[0],t[1])?t=[]:r>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Ze(n,ye(t,1),[])})),Eo=st||function(){return gt.Date.now()};function Oo(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Xu(n,s,u,u,u,u,t)}function Bo(n,t){var r;if("function"!=typeof t)throw new Rn(i);return n=_a(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var zo=Je((function(n,t,r){var e=1;if(r.length){var u=sr(r,fi(zo));e|=c}return Xu(n,e,t,r,u)})),Ro=Je((function(n,t,r){var e=3;if(r.length){var u=sr(r,fi(Ro));e|=c}return Xu(t,e,n,r,u)}));function So(n,t,r){var e,o,a,f,c,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new Rn(i);function _(t){var r=e,i=o;return e=o=u,s=t,f=n.apply(i,r)}function g(n){var r=n-l;return l===u||r>=t||r<0||p&&n-s>=a}function d(){var n=Eo();if(g(n))return y(n);c=Ri(d,function(n){var r=t-(n-l);return p?wr(r,a-(n-s)):r}(n))}function y(n){return c=u,v&&e?_(n):(e=o=u,f)}function m(){var n=Eo(),r=g(n);if(e=arguments,o=this,l=n,r){if(c===u)return function(n){return s=n,c=Ri(d,t),h?_(n):f}(l);if(p)return ju(c),c=Ri(d,t),_(l)}return c===u&&(c=Ri(d,t)),f}return t=da(t)||0,ta(r)&&(h=!!r.leading,a=(p="maxWait"in r)?mr(da(r.maxWait)||0,t):a,v="trailing"in r?!!r.trailing:v),m.cancel=function(){c!==u&&ju(c),s=0,e=l=o=c=u},m.flush=function(){return c===u?f:y(Eo())},m}var Co=Je((function(n,t){return se(n,1,t)})),Fo=Je((function(n,t,r){return se(n,da(t)||0,r)}));function Lo(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new Rn(i);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Lo.Cache||Vr),r}function Uo(n){if("function"!=typeof n)throw new Rn(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Lo.Cache=Vr;var Wo=bu((function(n,t){var r=(t=1==t.length&&Zo(t[0])?Ut(t[0],nr(ci())):Ut(ye(t,1),nr(ci()))).length;return Je((function(e){for(var u=-1,i=wr(e.length,r);++u=t})),qo=Se(function(){return arguments}())?Se:function(n){return ra(n)&&Wn.call(n,"callee")&&!Hn.call(n,"callee")},Zo=e.isArray,Go=xt?nr(xt):function(n){return ra(n)&&ke(n)==F};function Ko(n){return null!=n&&na(n.length)&&!Xo(n)}function Vo(n){return ra(n)&&Ko(n)}var Yo=wt||yf,Ho=jt?nr(jt):function(n){return ra(n)&&ke(n)==b};function Jo(n){if(!ra(n))return!1;var t=ke(n);return t==x||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!ia(n)}function Xo(n){if(!ta(n))return!1;var t=ke(n);return t==j||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qo(n){return"number"==typeof n&&n==_a(n)}function na(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=v}function ta(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function ra(n){return null!=n&&"object"==typeof n}var ea=At?nr(At):function(n){return ra(n)&&_i(n)==I};function ua(n){return"number"==typeof n||ra(n)&&ke(n)==k}function ia(n){if(!ra(n)||ke(n)!=E)return!1;var t=Vn(n);if(null===t)return!0;var r=Wn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Un.call(r)==Mn}var oa=It?nr(It):function(n){return ra(n)&&ke(n)==B};var aa=kt?nr(kt):function(n){return ra(n)&&_i(n)==z};function fa(n){return"string"==typeof n||!Zo(n)&&ra(n)&&ke(n)==R}function ca(n){return"symbol"==typeof n||ra(n)&&ke(n)==S}var la=Et?nr(Et):function(n){return ra(n)&&na(n.length)&&!!ct[ke(n)]};var sa=Ku(De),ha=Ku((function(n,t){return n<=t}));function pa(n){if(!n)return[];if(Ko(n))return fa(n)?_r(n):zu(n);if(Qn&&n[Qn])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Qn]());var t=_i(n);return(t==I?cr:t==z?hr:Ma)(n)}function va(n){return n?(n=da(n))===p||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function _a(n){var t=va(n),r=t%1;return t==t?r?t-r:t:0}function ga(n){return n?fe(_a(n),0,g):0}function da(n){if("number"==typeof n)return n;if(ca(n))return _;if(ta(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=ta(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Qt(n);var r=yn.test(n);return r||wn.test(n)?pt(n.slice(2),r?2:8):dn.test(n)?_:+n}function ya(n){return Ru(n,Ca(n))}function ma(n){return null==n?"":lu(n)}var wa=Cu((function(n,t){if(Ai(t)||Ko(t))Ru(t,Sa(t),n);else for(var r in t)Wn.call(t,r)&&re(n,r,t[r])})),ba=Cu((function(n,t){Ru(t,Ca(t),n)})),xa=Cu((function(n,t,r,e){Ru(t,Ca(t),n,e)})),ja=Cu((function(n,t,r,e){Ru(t,Sa(t),n,e)})),Aa=ei(ae);var Ia=Je((function(n,t){n=On(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&wi(t[0],t[1],i)&&(e=1);++r1),t})),Ru(n,ii(n),r),e&&(r=ce(r,7,ti));for(var u=t.length;u--;)hu(r,t[u]);return r}));var Wa=ei((function(n,t){return null==n?{}:function(n,t){return Ge(n,t,(function(t,r){return Oa(n,r)}))}(n,t)}));function Ta(n,t){if(null==n)return{};var r=Ut(ii(n),(function(n){return[n]}));return t=ci(t),Ge(n,r,(function(n,r){return t(n,r[0])}))}var Da=Ju(Sa),$a=Ju(Ca);function Ma(n){return null==n?[]:tr(n,Sa(n))}var Pa=Wu((function(n,t,r){return t=t.toLowerCase(),n+(r?Na(t):t)}));function Na(n){return Ja(ma(n).toLowerCase())}function qa(n){return(n=ma(n))&&n.replace(xn,ir).replace(rt,"")}var Za=Wu((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Ga=Wu((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Ka=Uu("toLowerCase");var Va=Wu((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Ya=Wu((function(n,t,r){return n+(r?" ":"")+Ja(t)}));var Ha=Wu((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Ja=Uu("toUpperCase");function Xa(n,t,r){return n=ma(n),(t=r?u:t)===u?function(n){return ot.test(n)}(n)?function(n){return n.match(ut)||[]}(n):function(n){return n.match(hn)||[]}(n):n.match(t)||[]}var Qa=Je((function(n,t){try{return Ot(n,u,t)}catch(n){return Jo(n)?n:new In(n)}})),nf=ei((function(n,t){return zt(t,(function(t){t=Wi(t),oe(n,t,zo(n[t],n))})),n}));function tf(n){return function(){return n}}var rf=$u(),ef=$u(!0);function uf(n){return n}function of(n){return Ue("function"==typeof n?n:ce(n,1))}var af=Je((function(n,t){return function(r){return Re(r,n,t)}})),ff=Je((function(n,t){return function(r){return Re(n,r,t)}}));function cf(n,t,r){var e=Sa(t),u=je(t,e);null!=r||ta(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=je(t,Sa(t)));var i=!(ta(r)&&"chain"in r&&!r.chain),o=Xo(n);return zt(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=zu(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Wt([this.value()],arguments))})})),n}function lf(){}var sf=qu(Ut),hf=qu(St),pf=qu($t);function vf(n){return bi(n)?Vt(Wi(n)):function(n){return function(t){return Ae(t,n)}}(n)}var _f=Gu(),gf=Gu(!0);function df(){return[]}function yf(){return!1}var mf=Nu((function(n,t){return n+t}),0),wf=Yu("ceil"),bf=Nu((function(n,t){return n/t}),1),xf=Yu("floor");var jf,Af=Nu((function(n,t){return n*t}),1),If=Yu("round"),kf=Nu((function(n,t){return n-t}),0);return Mr.after=function(n,t){if("function"!=typeof t)throw new Rn(i);return n=_a(n),function(){if(--n<1)return t.apply(this,arguments)}},Mr.ary=Oo,Mr.assign=wa,Mr.assignIn=ba,Mr.assignInWith=xa,Mr.assignWith=ja,Mr.at=Aa,Mr.before=Bo,Mr.bind=zo,Mr.bindAll=nf,Mr.bindKey=Ro,Mr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Zo(n)?n:[n]},Mr.chain=ho,Mr.chunk=function(n,t,r){t=(r?wi(n,t,r):t===u)?1:mr(_a(t),0);var i=null==n?0:n.length;if(!i||t<1)return[];for(var o=0,a=0,f=e(_t(i/t));oi?0:i+r),(e=e===u||e>i?i:_a(e))<0&&(e+=i),e=r>e?0:ga(e);r>>0)?(n=ma(n))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=lu(t))&&fr(n)?xu(_r(n),0,r):n.split(t,r):[]},Mr.spread=function(n,t){if("function"!=typeof n)throw new Rn(i);return t=null==t?0:mr(_a(t),0),Je((function(r){var e=r[t],u=xu(r,0,t);return e&&Wt(u,e),Ot(n,this,u)}))},Mr.tail=function(n){var t=null==n?0:n.length;return t?uu(n,1,t):[]},Mr.take=function(n,t,r){return n&&n.length?uu(n,0,(t=r||t===u?1:_a(t))<0?0:t):[]},Mr.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?uu(n,(t=e-(t=r||t===u?1:_a(t)))<0?0:t,e):[]},Mr.takeRightWhile=function(n,t){return n&&n.length?vu(n,ci(t,3),!1,!0):[]},Mr.takeWhile=function(n,t){return n&&n.length?vu(n,ci(t,3)):[]},Mr.tap=function(n,t){return t(n),n},Mr.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new Rn(i);return ta(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),So(n,t,{leading:e,maxWait:t,trailing:u})},Mr.thru=po,Mr.toArray=pa,Mr.toPairs=Da,Mr.toPairsIn=$a,Mr.toPath=function(n){return Zo(n)?Ut(n,Wi):ca(n)?[n]:zu(Ui(ma(n)))},Mr.toPlainObject=ya,Mr.transform=function(n,t,r){var e=Zo(n),u=e||Yo(n)||la(n);if(t=ci(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:ta(n)&&Xo(i)?Pr(Vn(n)):{}}return(u?zt:be)(n,(function(n,e,u){return t(r,n,e,u)})),r},Mr.unary=function(n){return Oo(n,1)},Mr.union=to,Mr.unionBy=ro,Mr.unionWith=eo,Mr.uniq=function(n){return n&&n.length?su(n):[]},Mr.uniqBy=function(n,t){return n&&n.length?su(n,ci(t,2)):[]},Mr.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?su(n,u,t):[]},Mr.unset=function(n,t){return null==n||hu(n,t)},Mr.unzip=uo,Mr.unzipWith=io,Mr.update=function(n,t,r){return null==n?n:pu(n,t,mu(r))},Mr.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:pu(n,t,mu(r),e)},Mr.values=Ma,Mr.valuesIn=function(n){return null==n?[]:tr(n,Ca(n))},Mr.without=oo,Mr.words=Xa,Mr.wrap=function(n,t){return To(mu(t),n)},Mr.xor=ao,Mr.xorBy=fo,Mr.xorWith=co,Mr.zip=lo,Mr.zipObject=function(n,t){return du(n||[],t||[],re)},Mr.zipObjectDeep=function(n,t){return du(n||[],t||[],nu)},Mr.zipWith=so,Mr.entries=Da,Mr.entriesIn=$a,Mr.extend=ba,Mr.extendWith=xa,cf(Mr,Mr),Mr.add=mf,Mr.attempt=Qa,Mr.camelCase=Pa,Mr.capitalize=Na,Mr.ceil=wf,Mr.clamp=function(n,t,r){return r===u&&(r=t,t=u),r!==u&&(r=(r=da(r))==r?r:0),t!==u&&(t=(t=da(t))==t?t:0),fe(da(n),t,r)},Mr.clone=function(n){return ce(n,4)},Mr.cloneDeep=function(n){return ce(n,5)},Mr.cloneDeepWith=function(n,t){return ce(n,5,t="function"==typeof t?t:u)},Mr.cloneWith=function(n,t){return ce(n,4,t="function"==typeof t?t:u)},Mr.conformsTo=function(n,t){return null==t||le(n,t,Sa(t))},Mr.deburr=qa,Mr.defaultTo=function(n,t){return null==n||n!=n?t:n},Mr.divide=bf,Mr.endsWith=function(n,t,r){n=ma(n),t=lu(t);var e=n.length,i=r=r===u?e:fe(_a(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},Mr.eq=Mo,Mr.escape=function(n){return(n=ma(n))&&J.test(n)?n.replace(Y,or):n},Mr.escapeRegExp=function(n){return(n=ma(n))&&on.test(n)?n.replace(un,"\\$&"):n},Mr.every=function(n,t,r){var e=Zo(n)?St:_e;return r&&wi(n,t,r)&&(t=u),e(n,ci(t,3))},Mr.find=go,Mr.findIndex=Ni,Mr.findKey=function(n,t){return Pt(n,ci(t,3),be)},Mr.findLast=yo,Mr.findLastIndex=qi,Mr.findLastKey=function(n,t){return Pt(n,ci(t,3),xe)},Mr.floor=xf,Mr.forEach=mo,Mr.forEachRight=wo,Mr.forIn=function(n,t){return null==n?n:me(n,ci(t,3),Ca)},Mr.forInRight=function(n,t){return null==n?n:we(n,ci(t,3),Ca)},Mr.forOwn=function(n,t){return n&&be(n,ci(t,3))},Mr.forOwnRight=function(n,t){return n&&xe(n,ci(t,3))},Mr.get=Ea,Mr.gt=Po,Mr.gte=No,Mr.has=function(n,t){return null!=n&&gi(n,t,Oe)},Mr.hasIn=Oa,Mr.head=Gi,Mr.identity=uf,Mr.includes=function(n,t,r,e){n=Ko(n)?n:Ma(n),r=r&&!e?_a(r):0;var u=n.length;return r<0&&(r=mr(u+r,0)),fa(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&qt(n,t,r)>-1},Mr.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:_a(r);return u<0&&(u=mr(e+u,0)),qt(n,t,u)},Mr.inRange=function(n,t,r){return t=va(t),r===u?(r=t,t=0):r=va(r),function(n,t,r){return n>=wr(t,r)&&n=-9007199254740991&&n<=v},Mr.isSet=aa,Mr.isString=fa,Mr.isSymbol=ca,Mr.isTypedArray=la,Mr.isUndefined=function(n){return n===u},Mr.isWeakMap=function(n){return ra(n)&&_i(n)==C},Mr.isWeakSet=function(n){return ra(n)&&"[object WeakSet]"==ke(n)},Mr.join=function(n,t){return null==n?"":Mt.call(n,t)},Mr.kebabCase=Za,Mr.last=Hi,Mr.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e;return r!==u&&(i=(i=_a(r))<0?mr(e+i,0):wr(i,e-1)),t==t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,i):Nt(n,Gt,i,!0)},Mr.lowerCase=Ga,Mr.lowerFirst=Ka,Mr.lt=sa,Mr.lte=ha,Mr.max=function(n){return n&&n.length?ge(n,uf,Ee):u},Mr.maxBy=function(n,t){return n&&n.length?ge(n,ci(t,2),Ee):u},Mr.mean=function(n){return Kt(n,uf)},Mr.meanBy=function(n,t){return Kt(n,ci(t,2))},Mr.min=function(n){return n&&n.length?ge(n,uf,De):u},Mr.minBy=function(n,t){return n&&n.length?ge(n,ci(t,2),De):u},Mr.stubArray=df,Mr.stubFalse=yf,Mr.stubObject=function(){return{}},Mr.stubString=function(){return""},Mr.stubTrue=function(){return!0},Mr.multiply=Af,Mr.nth=function(n,t){return n&&n.length?qe(n,_a(t)):u},Mr.noConflict=function(){return gt._===this&&(gt._=Pn),this},Mr.noop=lf,Mr.now=Eo,Mr.pad=function(n,t,r){n=ma(n);var e=(t=_a(t))?vr(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return Zu(dt(u),r)+n+Zu(_t(u),r)},Mr.padEnd=function(n,t,r){n=ma(n);var e=(t=_a(t))?vr(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var i=jr();return wr(n+i*(t-n+ht("1e-"+((i+"").length-1))),t)}return Ye(n,t)},Mr.reduce=function(n,t,r){var e=Zo(n)?Tt:Ht,u=arguments.length<3;return e(n,ci(t,4),r,u,pe)},Mr.reduceRight=function(n,t,r){var e=Zo(n)?Dt:Ht,u=arguments.length<3;return e(n,ci(t,4),r,u,ve)},Mr.repeat=function(n,t,r){return t=(r?wi(n,t,r):t===u)?1:_a(t),He(ma(n),t)},Mr.replace=function(){var n=arguments,t=ma(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Mr.result=function(n,t,r){var e=-1,i=(t=wu(t,n)).length;for(i||(i=1,n=u);++ev)return[];var r=g,e=wr(n,g);t=ci(t),n-=g;for(var u=Xt(e,t);++r=o)return n;var f=r-vr(e);if(f<1)return e;var c=a?xu(a,0,f).join(""):n.slice(0,f);if(i===u)return c+e;if(a&&(f+=c.length-f),oa(i)){if(n.slice(f).search(i)){var l,s=c;for(i.global||(i=Bn(i.source,ma(gn.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,h===u?f:h)}}else if(n.indexOf(lu(i),f)!=f){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},Mr.unescape=function(n){return(n=ma(n))&&H.test(n)?n.replace(V,dr):n},Mr.uniqueId=function(n){var t=++Tn;return ma(n)+t},Mr.upperCase=Ha,Mr.upperFirst=Ja,Mr.each=mo,Mr.eachRight=wo,Mr.first=Gi,cf(Mr,(jf={},be(Mr,(function(n,t){Wn.call(Mr.prototype,t)||(jf[t]=n)})),jf),{chain:!1}),Mr.VERSION="4.17.21",zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Mr[n].placeholder=Mr})),zt(["drop","take"],(function(n,t){Zr.prototype[n]=function(r){r=r===u?1:mr(_a(r),0);var e=this.__filtered__&&!t?new Zr(this):this.clone();return e.__filtered__?e.__takeCount__=wr(r,e.__takeCount__):e.__views__.push({size:wr(r,g),type:n+(e.__dir__<0?"Right":"")}),e},Zr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),zt(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Zr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:ci(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),zt(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Zr.prototype[n]=function(){return this[r](1).value()[0]}})),zt(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Zr.prototype[n]=function(){return this.__filtered__?new Zr(this):this[r](1)}})),Zr.prototype.compact=function(){return this.filter(uf)},Zr.prototype.find=function(n){return this.filter(n).head()},Zr.prototype.findLast=function(n){return this.reverse().find(n)},Zr.prototype.invokeMap=Je((function(n,t){return"function"==typeof n?new Zr(this):this.map((function(r){return Re(r,n,t)}))})),Zr.prototype.reject=function(n){return this.filter(Uo(ci(n)))},Zr.prototype.slice=function(n,t){n=_a(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Zr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==u&&(r=(t=_a(t))<0?r.dropRight(-t):r.take(t-n)),r)},Zr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Zr.prototype.toArray=function(){return this.take(g)},be(Zr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=Mr[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(Mr.prototype[t]=function(){var t=this.__wrapped__,a=e?[1]:arguments,f=t instanceof Zr,c=a[0],l=f||Zo(t),s=function(n){var t=i.apply(Mr,Wt([n],a));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(f=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=f&&!p;if(!o&&l){t=_?t:new Zr(this);var g=n.apply(t,a);return g.__actions__.push({func:po,args:[s],thisArg:u}),new qr(g,h)}return v&&_?n.apply(this,a):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})})),zt(["pop","push","shift","sort","splice","unshift"],(function(n){var t=Sn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Mr.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Zo(u)?u:[],n)}return this[r]((function(r){return t.apply(Zo(r)?r:[],n)}))}})),be(Zr.prototype,(function(n,t){var r=Mr[t];if(r){var e=r.name+"";Wn.call(Sr,e)||(Sr[e]=[]),Sr[e].push({name:t,func:r})}})),Sr[Mu(u,2).name]=[{name:"wrapper",func:u}],Zr.prototype.clone=function(){var n=new Zr(this.__wrapped__);return n.__actions__=zu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=zu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=zu(this.__views__),n},Zr.prototype.reverse=function(){if(this.__filtered__){var n=new Zr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Zr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Zo(n),e=t<0,u=r?n.length:0,i=function(n,t,r){var e=-1,u=r.length;for(;++e=this.__values__.length;return{done:n,value:n?u:this.__values__[this.__index__++]}},Mr.prototype.plant=function(n){for(var t,r=this;r instanceof Nr;){var e=Di(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},Mr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Zr){var t=n;return this.__actions__.length&&(t=new Zr(this)),(t=t.reverse()).__actions__.push({func:po,args:[no],thisArg:u}),new qr(t,this.__chain__)}return this.thru(no)},Mr.prototype.toJSON=Mr.prototype.valueOf=Mr.prototype.value=function(){return _u(this.__wrapped__,this.__actions__)},Mr.prototype.first=Mr.prototype.head,Qn&&(Mr.prototype[Qn]=function(){return this}),Mr}();gt._=yr,(e=function(){return yr}.call(t,r,t,n))===u||(n.exports=e)}.call(this)},625:(n,t,r)=>{"use strict";r.d(t,{Fc:()=>h,NO:()=>l,O:()=>p,YD:()=>f,g5:()=>v,gB:()=>a,gf:()=>c,sB:()=>i,vU:()=>o});var e=r(486),u=r.n(e);function i(n){const t=n.map((n=>new Date(n[0]))),r=n.map((n=>n[1])),e=n.map((n=>n[2])),u=n.length>1?"lines":"markers";var i=[{x:t,y:r,mode:u,name:"Resident size"},{x:t,y:e,mode:u,name:"Heap size"}];Plotly.newPlot("memoryGraph",i,{xaxis:{title:{text:"Time"}},yaxis:{title:{text:"Memory Size"},tickformat:".4~s",exponentformat:"B",ticksuffix:"B"}},{responsive:!0}),Plotly.newPlot("smallMemoryGraph",i,{height:40,margin:{l:0,r:0,b:0,t:0,pad:4},plot_bgcolor:"#343a40",yaxis:{tickformat:".4~s",exponentformat:"B",ticksuffix:"B"},showlegend:!1},{responsive:!0,displayModeBar:!1}),document.getElementById("smallMemoryGraph").onclick((()=>{o()}))}function o(){setTimeout((()=>{Plotly.Plots.resize("memoryGraph"),Plotly.Plots.resize("smallMemoryGraph")}),100)}function a(n,t=1){if(Math.abs(n)<1024)return n+" B";const r=["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let e=-1;const u=10**t;do{n/=1024,++e}while(Math.round(Math.abs(n)*u)/u>=1024&&e1?"s":"";let i=`${e}
${t} total
${`${n.n_allocations} allocation${u}`}`;return!1===r&&(i=i.concat(`
Thread ID: ${n.thread_id}`)),i}function l(n,t){return function(n,t){let r=u().cloneDeep(n.children);const e=u().filter(r,(function n(r){return r.children&&r.children.length>0&&(r.children=u().filter(r.children,n)),t(r)}));return u().defaults({children:e},n)}(n,(n=>n.thread_id===t))}function s(n,t){function r(n){let e=[];if(t(n)){e=[];for(const t of n.children)e.push(...r(t));let t=u().clone(n);t.children=e,e=[t]}else for(const t of n.children)e.push(...r(t));return e}let e=[];for(let t of n.children)e.push(...r(t));return u().defaults({children:e},n)}function h(n){return s(n,(n=>n.interesting))}function p(n){return s(n,(n=>!n.import_system))}function v(n){return u().reduce(n,((n,t)=>(n.n_allocations+=t.n_allocations,n.value+=t.value,n)),{n_allocations:0,value:0})}},501:(n,t,r)=>{"use strict";r.d(t,{Cd:()=>c,Ji:()=>v,N4:()=>b,Vi:()=>A,Xx:()=>p,Z1:()=>w,bf:()=>g,cW:()=>j,ib:()=>y,sO:()=>m});var e=r(625);const u="filter_uninteresting",i="filter_import_system",o="filter_thread";var a=null;let f=new class{constructor(){this.filters={}}registerFilter(n,t){this.filters[n]=t}unRegisterFilter(n){delete this.filters[n]}drawChart(n){let t=n;_.forOwn(this.filters,(n=>{t=n(t)})),A(t),a.merge([])}};function c(){return a}function l(){return location.hash?parseInt(location.hash.substring(1),10):0}function s(){document.getElementById("resetZoomButton").disabled=0==l()}function h(n){n.id!=l()&&(history.pushState({id:n.id},n.data.name,`#${n.id}`),s())}function p(){const n=l(),t=a.findById(n);t&&(a.zoomTo(t),s())}function v(){a.inverted(!a.inverted()),a.resetZoom()}function g(){a.resetZoom()}function d(){return document.getElementById("chart").clientWidth}function y(){f.drawChart(data),location.hash&&p()}function m(){const n=this.dataset.thread;"-0x1"===n?f.unRegisterFilter(o):f.registerFilter(o,(t=>{let r=(0,e.NO)(t,n);const u=(0,e.g5)(r.children);return _.defaults(u,r),r.n_allocations=u.n_allocations,r.value=u.value,r})),f.drawChart(data)}function w(){void 0===this.hideUninterestingFrames&&(this.hideUninterestingFrames=!0),!0===this.hideUninterestingFrames?(this.hideUninterestingFrames=!0,f.registerFilter(u,(n=>(0,e.Fc)(n)))):f.unRegisterFilter(u),this.hideUninterestingFrames=!this.hideUninterestingFrames,f.drawChart(data)}function b(){void 0===this.hideImportSystemFrames&&(this.hideImportSystemFrames=!0),!0===this.hideImportSystemFrames?(this.hideImportSystemFrames=!0,inverted?data=invertedNoImportsData:f.registerFilter(i,(n=>(0,e.O)(n)))):(f.unRegisterFilter(i),inverted&&(data=flamegraphData)),this.hideImportSystemFrames=!this.hideImportSystemFrames,f.drawChart(data)}function x(n,t){return n.highlight?"orange":n.data.name&&n.data.location?(e=n.data.location[1],"py"==(r=void 0===e?e:e.substring(e.lastIndexOf(".")+1,e.length)||e)?d3.schemePastel1[2]:"c"==r||"cpp"==r||"h"==r?d3.schemePastel1[5]:d3.schemePastel1[8]):"#EEE";var r,e}function j(n,t){if(!0===t)return;const r=n.unique_threads;if(!r||r.length<=1)return;document.getElementById("threadsDropdown").removeAttribute("hidden");const e=document.getElementById("threadsDropdownList");for(const n of r){let t=document.createElement("a");t.className="dropdown-item",t.dataset.thread=n,t.text=n,t.onclick=m,e.appendChild(t)}}function A(n){a&&(a.destroy(),d3.selectAll(".d3-flame-graph-tip").remove()),a=flamegraph().width(d()).transitionDuration(250).transitionEase(d3.easeCubic).inverted(!0).cellHeight(20).minFrameSize(2).setColorMapper(x).onClick(h).tooltip(d3.tip().attr("class","d3-flame-graph-tip").html((n=>{const t=(0,e.gB)(n.data.value);return(0,e.gf)(n.data,t,merge_threads)})).direction((n=>{const t=(n.x1+n.x0)/2;return.25.25?"w":"n"}))),d3.select("#chart").datum(n).call(a),a.width(d())}}},t={};function r(e){var u=t[e];if(void 0!==u)return u.exports;var i=t[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return r.d(t,{a:t}),t},r.d=(n,t)=>{for(var e in t)r.o(t,e)&&!r.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),r.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),r.nmd=n=>(n.paths=[],n.children||(n.children=[]),n),(()=>{"use strict";var n=r(625),t=r(501);function e(n){const{strings:t,nodes:r,unique_threads:e}=n,u=r.name.map(((n,e)=>({name:t[r.name[e]],location:[t[r.function[e]],t[r.filename[e]],r.lineno[e]],value:r.value[e],children:r.children[e],n_allocations:r.n_allocations[e],thread_id:t[r.thread_id[e]],interesting:0!==r.interesting[e],import_system:0!==r.import_system[e]})));for(const n of u)n.children=n.children.map((n=>u[n]));const i=u[0];return i.unique_threads=e.map((n=>t[n])),i}window.resizeMemoryGraph=n.vU,document.addEventListener("DOMContentLoaded",(function(){!function(n){const{strings:t,nodes:r,inverted_no_imports_nodes:u,unique_threads:i}=n;flamegraphData=e({strings:t,nodes:r,unique_threads:i}),invertedNoImportsData=inverted?e({strings:t,nodes:u,unique_threads:i}):null,data=flamegraphData}(packed_data),(0,n.sB)(memory_records),(0,t.cW)(data,merge_threads),(0,t.Vi)(data),location.hash&&(0,t.Xx)(),document.getElementById("invertButton").onclick=t.Ji,document.getElementById("resetZoomButton").onclick=t.bf,document.getElementById("resetThreadFilterItem").onclick=t.sO,document.getElementById("hideUninteresting").onclick=t.Z1.bind(this),document.getElementById("hideImportSystem").onclick=t.N4.bind(this),t.Z1.bind(this)(),document.onkeyup=n=>{"Escape"==n.code&&(0,t.bf)()},document.getElementById("searchTerm").addEventListener("input",(()=>{const n=document.getElementById("searchTerm");(0,t.Cd)().search(n.value)})),window.addEventListener("popstate",t.Xx),window.addEventListener("resize",(0,n.YD)(t.ib)),$('[data-toggle-second="tooltip"]').tooltip(),$('[data-toggle="tooltip"]').tooltip()}))})()})(); \ No newline at end of file + */n=r.nmd(n),function(){var u,i="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",f=16,c=32,l=64,s=128,h=256,p=1/0,v=9007199254740991,_=NaN,g=4294967295,d=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",f],["flip",512],["partial",c],["partialRight",l],["rearg",h]],y="[object Arguments]",m="[object Array]",w="[object Boolean]",b="[object Date]",x="[object Error]",j="[object Function]",I="[object GeneratorFunction]",A="[object Map]",E="[object Number]",k="[object Object]",O="[object Promise]",B="[object RegExp]",z="[object Set]",R="[object String]",S="[object Symbol]",C="[object WeakMap]",F="[object ArrayBuffer]",L="[object DataView]",U="[object Float32Array]",W="[object Float64Array]",T="[object Int8Array]",D="[object Int16Array]",$="[object Int32Array]",M="[object Uint8Array]",P="[object Uint8ClampedArray]",N="[object Uint16Array]",q="[object Uint32Array]",Z=/\b__p \+= '';/g,G=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,J=/[&<>"']/g,Y=RegExp(V.source),H=RegExp(J.source),X=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,en=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,on=RegExp(un.source),an=/^\s+/,fn=/\s/,cn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ln=/\{\n\/\* \[wrapped with (.+)\] \*/,sn=/,? & /,hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,_n=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gn=/\w*$/,dn=/^[-+]0x[0-9a-f]+$/i,yn=/^0b[01]+$/i,mn=/^\[object .+?Constructor\]$/,wn=/^0o[0-7]+$/i,bn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jn=/($^)/,In=/['\n\r\u2028\u2029\\]/g,An="\\ud800-\\udfff",En="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",kn="\\u2700-\\u27bf",On="a-z\\xdf-\\xf6\\xf8-\\xff",Bn="A-Z\\xc0-\\xd6\\xd8-\\xde",zn="\\ufe0e\\ufe0f",Rn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",Sn="['’]",Cn="["+An+"]",Fn="["+Rn+"]",Ln="["+En+"]",Un="\\d+",Wn="["+kn+"]",Tn="["+On+"]",Dn="[^"+An+Rn+Un+kn+On+Bn+"]",$n="\\ud83c[\\udffb-\\udfff]",Mn="[^"+An+"]",Pn="(?:\\ud83c[\\udde6-\\uddff]){2}",Nn="[\\ud800-\\udbff][\\udc00-\\udfff]",qn="["+Bn+"]",Zn="\\u200d",Gn="(?:"+Tn+"|"+Dn+")",Kn="(?:"+qn+"|"+Dn+")",Vn="(?:['’](?:d|ll|m|re|s|t|ve))?",Jn="(?:['’](?:D|LL|M|RE|S|T|VE))?",Yn="(?:"+Ln+"|"+$n+")"+"?",Hn="["+zn+"]?",Xn=Hn+Yn+("(?:"+Zn+"(?:"+[Mn,Pn,Nn].join("|")+")"+Hn+Yn+")*"),Qn="(?:"+[Wn,Pn,Nn].join("|")+")"+Xn,nt="(?:"+[Mn+Ln+"?",Ln,Pn,Nn,Cn].join("|")+")",tt=RegExp(Sn,"g"),rt=RegExp(Ln,"g"),et=RegExp($n+"(?="+$n+")|"+nt+Xn,"g"),ut=RegExp([qn+"?"+Tn+"+"+Vn+"(?="+[Fn,qn,"$"].join("|")+")",Kn+"+"+Jn+"(?="+[Fn,qn+Gn,"$"].join("|")+")",qn+"?"+Gn+"+"+Vn,qn+"+"+Jn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Un,Qn].join("|"),"g"),it=RegExp("["+Zn+An+En+zn+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["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"],ft=-1,ct={};ct[U]=ct[W]=ct[T]=ct[D]=ct[$]=ct[M]=ct[P]=ct[N]=ct[q]=!0,ct[y]=ct[m]=ct[F]=ct[w]=ct[L]=ct[b]=ct[x]=ct[j]=ct[A]=ct[E]=ct[k]=ct[B]=ct[z]=ct[R]=ct[C]=!1;var lt={};lt[y]=lt[m]=lt[F]=lt[L]=lt[w]=lt[b]=lt[U]=lt[W]=lt[T]=lt[D]=lt[$]=lt[A]=lt[E]=lt[k]=lt[B]=lt[z]=lt[R]=lt[S]=lt[M]=lt[P]=lt[N]=lt[q]=!0,lt[x]=lt[j]=lt[C]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ht=parseFloat,pt=parseInt,vt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,_t="object"==typeof self&&self&&self.Object===Object&&self,gt=vt||_t||Function("return this")(),dt=t&&!t.nodeType&&t,yt=dt&&n&&!n.nodeType&&n,mt=yt&&yt.exports===dt,wt=mt&&vt.process,bt=function(){try{var n=yt&&yt.require&&yt.require("util").types;return n||wt&&wt.binding&&wt.binding("util")}catch(n){}}(),xt=bt&&bt.isArrayBuffer,jt=bt&&bt.isDate,It=bt&&bt.isMap,At=bt&&bt.isRegExp,Et=bt&&bt.isSet,kt=bt&&bt.isTypedArray;function Ot(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function Bt(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function Lt(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function ur(n,t){for(var r=n.length;r--&&qt(t,n[r],0)>-1;);return r}var ir=Jt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),or=Jt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ar(n){return"\\"+st[n]}function fr(n){return it.test(n)}function cr(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function lr(n,t){return function(r){return n(t(r))}}function sr(n,t){for(var r=-1,e=n.length,u=0,i=[];++r",""":'"',"'":"'"});var yr=function n(t){var r,e=(t=null==t?gt:yr.defaults(gt.Object(),t,yr.pick(gt,at))).Array,fn=t.Date,An=t.Error,En=t.Function,kn=t.Math,On=t.Object,Bn=t.RegExp,zn=t.String,Rn=t.TypeError,Sn=e.prototype,Cn=En.prototype,Fn=On.prototype,Ln=t["__core-js_shared__"],Un=Cn.toString,Wn=Fn.hasOwnProperty,Tn=0,Dn=(r=/[^.]+$/.exec(Ln&&Ln.keys&&Ln.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",$n=Fn.toString,Mn=Un.call(On),Pn=gt._,Nn=Bn("^"+Un.call(Wn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qn=mt?t.Buffer:u,Zn=t.Symbol,Gn=t.Uint8Array,Kn=qn?qn.allocUnsafe:u,Vn=lr(On.getPrototypeOf,On),Jn=On.create,Yn=Fn.propertyIsEnumerable,Hn=Sn.splice,Xn=Zn?Zn.isConcatSpreadable:u,Qn=Zn?Zn.iterator:u,nt=Zn?Zn.toStringTag:u,et=function(){try{var n=hi(On,"defineProperty");return n({},"",{}),n}catch(n){}}(),it=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,st=fn&&fn.now!==gt.Date.now&&fn.now,vt=t.setTimeout!==gt.setTimeout&&t.setTimeout,_t=kn.ceil,dt=kn.floor,yt=On.getOwnPropertySymbols,wt=qn?qn.isBuffer:u,bt=t.isFinite,Mt=Sn.join,Jt=lr(On.keys,On),mr=kn.max,wr=kn.min,br=fn.now,xr=t.parseInt,jr=kn.random,Ir=Sn.reverse,Ar=hi(t,"DataView"),Er=hi(t,"Map"),kr=hi(t,"Promise"),Or=hi(t,"Set"),Br=hi(t,"WeakMap"),zr=hi(On,"create"),Rr=Br&&new Br,Sr={},Cr=Ti(Ar),Fr=Ti(Er),Lr=Ti(kr),Ur=Ti(Or),Wr=Ti(Br),Tr=Zn?Zn.prototype:u,Dr=Tr?Tr.valueOf:u,$r=Tr?Tr.toString:u;function Mr(n){if(ra(n)&&!Zo(n)&&!(n instanceof Zr)){if(n instanceof qr)return n;if(Wn.call(n,"__wrapped__"))return Di(n)}return new qr(n)}var Pr=function(){function n(){}return function(t){if(!ta(t))return{};if(Jn)return Jn(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function Nr(){}function qr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function Zr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Gr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function ce(n,t,r,e,i,o){var a,f=1&t,c=2&t,l=4&t;if(r&&(a=i?r(n,e,i,o):r(n)),a!==u)return a;if(!ta(n))return n;var s=Zo(n);if(s){if(a=function(n){var t=n.length,r=new n.constructor(t);t&&"string"==typeof n[0]&&Wn.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!f)return zu(n,a)}else{var h=_i(n),p=h==j||h==I;if(Jo(n))return Iu(n,f);if(h==k||h==y||p&&!i){if(a=c||p?{}:di(n),!f)return c?function(n,t){return Ru(n,vi(n),t)}(n,function(n,t){return n&&Ru(t,Ca(t),n)}(a,n)):function(n,t){return Ru(n,pi(n),t)}(n,ie(a,n))}else{if(!lt[h])return i?n:{};a=function(n,t,r){var e=n.constructor;switch(t){case F:return Au(n);case w:case b:return new e(+n);case L:return function(n,t){var r=t?Au(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case U:case W:case T:case D:case $:case M:case P:case N:case q:return Eu(n,r);case A:return new e;case E:case R:return new e(n);case B:return function(n){var t=new n.constructor(n.source,gn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case z:return new e;case S:return u=n,Dr?On(Dr.call(u)):{}}var u}(n,h,f)}}o||(o=new Yr);var v=o.get(n);if(v)return v;o.set(n,a),aa(n)?n.forEach((function(e){a.add(ce(e,t,r,e,n,o))})):ea(n)&&n.forEach((function(e,u){a.set(u,ce(e,t,r,u,n,o))}));var _=s?u:(l?c?ii:ui:c?Ca:Sa)(n);return zt(_||n,(function(e,u){_&&(e=n[u=e]),re(a,u,ce(e,t,r,u,n,o))})),a}function le(n,t,r){var e=r.length;if(null==n)return!e;for(n=On(n);e--;){var i=r[e],o=t[i],a=n[i];if(a===u&&!(i in n)||!o(a))return!1}return!0}function se(n,t,r){if("function"!=typeof n)throw new Rn(i);return Ri((function(){n.apply(u,r)}),t)}function he(n,t,r,e){var u=-1,i=Ft,o=!0,a=n.length,f=[],c=t.length;if(!a)return f;r&&(t=Ut(t,nr(r))),e?(i=Lt,o=!1):t.length>=200&&(i=rr,o=!1,t=new Jr(t));n:for(;++u-1},Kr.prototype.set=function(n,t){var r=this.__data__,e=ee(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Vr.prototype.clear=function(){this.size=0,this.__data__={hash:new Gr,map:new(Er||Kr),string:new Gr}},Vr.prototype.delete=function(n){var t=li(this,n).delete(n);return this.size-=t?1:0,t},Vr.prototype.get=function(n){return li(this,n).get(n)},Vr.prototype.has=function(n){return li(this,n).has(n)},Vr.prototype.set=function(n,t){var r=li(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Jr.prototype.add=Jr.prototype.push=function(n){return this.__data__.set(n,o),this},Jr.prototype.has=function(n){return this.__data__.has(n)},Yr.prototype.clear=function(){this.__data__=new Kr,this.size=0},Yr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Yr.prototype.get=function(n){return this.__data__.get(n)},Yr.prototype.has=function(n){return this.__data__.has(n)},Yr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Kr){var e=r.__data__;if(!Er||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Vr(e)}return r.set(n,t),this.size=r.size,this};var pe=Fu(be),ve=Fu(xe,!0);function _e(n,t){var r=!0;return pe(n,(function(n,e,u){return r=!!t(n,e,u)})),r}function ge(n,t,r){for(var e=-1,i=n.length;++e0&&r(a)?t>1?ye(a,t-1,r,e,u):Wt(u,a):e||(u[u.length]=a)}return u}var me=Lu(),we=Lu(!0);function be(n,t){return n&&me(n,t,Sa)}function xe(n,t){return n&&we(n,t,Sa)}function je(n,t){return Ct(t,(function(t){return Xo(n[t])}))}function Ie(n,t){for(var r=0,e=(t=wu(t,n)).length;null!=n&&rt}function Oe(n,t){return null!=n&&Wn.call(n,t)}function Be(n,t){return null!=n&&t in On(n)}function ze(n,t,r){for(var i=r?Lt:Ft,o=n[0].length,a=n.length,f=a,c=e(a),l=1/0,s=[];f--;){var h=n[f];f&&t&&(h=Ut(h,nr(t))),l=wr(h.length,l),c[f]=!r&&(t||o>=120&&h.length>=120)?new Jr(f&&h):u}h=n[0];var p=-1,v=c[0];n:for(;++p=a?f:f*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}))}function Ge(n,t,r){for(var e=-1,u=t.length,i={};++e-1;)a!==n&&Hn.call(a,f,1),Hn.call(n,f,1);return n}function Ve(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;mi(u)?Hn.call(n,u,1):hu(n,u)}}return n}function Je(n,t){return n+dt(jr()*(t-n+1))}function Ye(n,t){var r="";if(!n||t<1||t>v)return r;do{t%2&&(r+=n),(t=dt(t/2))&&(n+=n)}while(t);return r}function He(n,t){return Si(ki(n,t,uf),n+"")}function Xe(n){return Xr(Ma(n))}function Qe(n,t){var r=Ma(n);return Li(r,fe(t,0,r.length))}function nu(n,t,r,e){if(!ta(n))return n;for(var i=-1,o=(t=wu(t,n)).length,a=o-1,f=n;null!=f&&++ii?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=e(i);++u>>1,o=n[i];null!==o&&!ca(o)&&(r?o<=t:o=200){var c=t?null:Yu(n);if(c)return hr(c);o=!1,u=rr,f=new Jr}else f=t?[]:a;n:for(;++e=e?n:uu(n,t,r)}var ju=it||function(n){return gt.clearTimeout(n)};function Iu(n,t){if(t)return n.slice();var r=n.length,e=Kn?Kn(r):new n.constructor(r);return n.copy(e),e}function Au(n){var t=new n.constructor(n.byteLength);return new Gn(t).set(new Gn(n)),t}function Eu(n,t){var r=t?Au(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function ku(n,t){if(n!==t){var r=n!==u,e=null===n,i=n==n,o=ca(n),a=t!==u,f=null===t,c=t==t,l=ca(t);if(!f&&!l&&!o&&n>t||o&&a&&c&&!f&&!l||e&&a&&c||!r&&c||!i)return 1;if(!e&&!o&&!l&&n1?r[i-1]:u,a=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,a&&wi(r[0],r[1],a)&&(o=i<3?u:o,i=1),t=On(t);++e-1?i[o?t[a]:a]:u}}function $u(n){return ei((function(t){var r=t.length,e=r,o=qr.prototype.thru;for(n&&t.reverse();e--;){var a=t[e];if("function"!=typeof a)throw new Rn(i);if(o&&!f&&"wrapper"==ai(a))var f=new qr([],!0)}for(e=f?e:r;++e1&&w.reverse(),p&&lf))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new Jr:u;for(o.set(n,t),o.set(t,n);++h-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(cn,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return zt(d,(function(r){var e="_."+r[0];t&r[1]&&!Ft(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(ln);return t?t[1].split(sn):[]}(e),r)))}function Fi(n){var t=0,r=0;return function(){var e=br(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function Li(n,t){var r=-1,e=n.length,i=e-1;for(t=t===u?e:t;++r1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,io(n,r)}));function ho(n){var t=Mr(n);return t.__chain__=!0,t}function po(n,t){return t(n)}var vo=ei((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return ae(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Zr&&mi(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:po,args:[i],thisArg:u}),new qr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(u),n}))):this.thru(i)}));var _o=Su((function(n,t,r){Wn.call(n,r)?++n[r]:oe(n,r,1)}));var go=Du(Ni),yo=Du(qi);function mo(n,t){return(Zo(n)?zt:pe)(n,ci(t,3))}function wo(n,t){return(Zo(n)?Rt:ve)(n,ci(t,3))}var bo=Su((function(n,t,r){Wn.call(n,r)?n[r].push(t):oe(n,r,[t])}));var xo=He((function(n,t,r){var u=-1,i="function"==typeof t,o=Ko(n)?e(n.length):[];return pe(n,(function(n){o[++u]=i?Ot(t,n,r):Re(n,t,r)})),o})),jo=Su((function(n,t,r){oe(n,r,t)}));function Io(n,t){return(Zo(n)?Ut:$e)(n,ci(t,3))}var Ao=Su((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var Eo=He((function(n,t){if(null==n)return[];var r=t.length;return r>1&&wi(n,t[0],t[1])?t=[]:r>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Ze(n,ye(t,1),[])})),ko=st||function(){return gt.Date.now()};function Oo(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Xu(n,s,u,u,u,u,t)}function Bo(n,t){var r;if("function"!=typeof t)throw new Rn(i);return n=_a(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var zo=He((function(n,t,r){var e=1;if(r.length){var u=sr(r,fi(zo));e|=c}return Xu(n,e,t,r,u)})),Ro=He((function(n,t,r){var e=3;if(r.length){var u=sr(r,fi(Ro));e|=c}return Xu(t,e,n,r,u)}));function So(n,t,r){var e,o,a,f,c,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new Rn(i);function _(t){var r=e,i=o;return e=o=u,s=t,f=n.apply(i,r)}function g(n){var r=n-l;return l===u||r>=t||r<0||p&&n-s>=a}function d(){var n=ko();if(g(n))return y(n);c=Ri(d,function(n){var r=t-(n-l);return p?wr(r,a-(n-s)):r}(n))}function y(n){return c=u,v&&e?_(n):(e=o=u,f)}function m(){var n=ko(),r=g(n);if(e=arguments,o=this,l=n,r){if(c===u)return function(n){return s=n,c=Ri(d,t),h?_(n):f}(l);if(p)return ju(c),c=Ri(d,t),_(l)}return c===u&&(c=Ri(d,t)),f}return t=da(t)||0,ta(r)&&(h=!!r.leading,a=(p="maxWait"in r)?mr(da(r.maxWait)||0,t):a,v="trailing"in r?!!r.trailing:v),m.cancel=function(){c!==u&&ju(c),s=0,e=l=o=c=u},m.flush=function(){return c===u?f:y(ko())},m}var Co=He((function(n,t){return se(n,1,t)})),Fo=He((function(n,t,r){return se(n,da(t)||0,r)}));function Lo(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new Rn(i);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Lo.Cache||Vr),r}function Uo(n){if("function"!=typeof n)throw new Rn(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Lo.Cache=Vr;var Wo=bu((function(n,t){var r=(t=1==t.length&&Zo(t[0])?Ut(t[0],nr(ci())):Ut(ye(t,1),nr(ci()))).length;return He((function(e){for(var u=-1,i=wr(e.length,r);++u=t})),qo=Se(function(){return arguments}())?Se:function(n){return ra(n)&&Wn.call(n,"callee")&&!Yn.call(n,"callee")},Zo=e.isArray,Go=xt?nr(xt):function(n){return ra(n)&&Ee(n)==F};function Ko(n){return null!=n&&na(n.length)&&!Xo(n)}function Vo(n){return ra(n)&&Ko(n)}var Jo=wt||yf,Yo=jt?nr(jt):function(n){return ra(n)&&Ee(n)==b};function Ho(n){if(!ra(n))return!1;var t=Ee(n);return t==x||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!ia(n)}function Xo(n){if(!ta(n))return!1;var t=Ee(n);return t==j||t==I||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qo(n){return"number"==typeof n&&n==_a(n)}function na(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=v}function ta(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function ra(n){return null!=n&&"object"==typeof n}var ea=It?nr(It):function(n){return ra(n)&&_i(n)==A};function ua(n){return"number"==typeof n||ra(n)&&Ee(n)==E}function ia(n){if(!ra(n)||Ee(n)!=k)return!1;var t=Vn(n);if(null===t)return!0;var r=Wn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Un.call(r)==Mn}var oa=At?nr(At):function(n){return ra(n)&&Ee(n)==B};var aa=Et?nr(Et):function(n){return ra(n)&&_i(n)==z};function fa(n){return"string"==typeof n||!Zo(n)&&ra(n)&&Ee(n)==R}function ca(n){return"symbol"==typeof n||ra(n)&&Ee(n)==S}var la=kt?nr(kt):function(n){return ra(n)&&na(n.length)&&!!ct[Ee(n)]};var sa=Ku(De),ha=Ku((function(n,t){return n<=t}));function pa(n){if(!n)return[];if(Ko(n))return fa(n)?_r(n):zu(n);if(Qn&&n[Qn])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Qn]());var t=_i(n);return(t==A?cr:t==z?hr:Ma)(n)}function va(n){return n?(n=da(n))===p||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function _a(n){var t=va(n),r=t%1;return t==t?r?t-r:t:0}function ga(n){return n?fe(_a(n),0,g):0}function da(n){if("number"==typeof n)return n;if(ca(n))return _;if(ta(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=ta(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Qt(n);var r=yn.test(n);return r||wn.test(n)?pt(n.slice(2),r?2:8):dn.test(n)?_:+n}function ya(n){return Ru(n,Ca(n))}function ma(n){return null==n?"":lu(n)}var wa=Cu((function(n,t){if(Ii(t)||Ko(t))Ru(t,Sa(t),n);else for(var r in t)Wn.call(t,r)&&re(n,r,t[r])})),ba=Cu((function(n,t){Ru(t,Ca(t),n)})),xa=Cu((function(n,t,r,e){Ru(t,Ca(t),n,e)})),ja=Cu((function(n,t,r,e){Ru(t,Sa(t),n,e)})),Ia=ei(ae);var Aa=He((function(n,t){n=On(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&wi(t[0],t[1],i)&&(e=1);++r1),t})),Ru(n,ii(n),r),e&&(r=ce(r,7,ti));for(var u=t.length;u--;)hu(r,t[u]);return r}));var Wa=ei((function(n,t){return null==n?{}:function(n,t){return Ge(n,t,(function(t,r){return Oa(n,r)}))}(n,t)}));function Ta(n,t){if(null==n)return{};var r=Ut(ii(n),(function(n){return[n]}));return t=ci(t),Ge(n,r,(function(n,r){return t(n,r[0])}))}var Da=Hu(Sa),$a=Hu(Ca);function Ma(n){return null==n?[]:tr(n,Sa(n))}var Pa=Wu((function(n,t,r){return t=t.toLowerCase(),n+(r?Na(t):t)}));function Na(n){return Ha(ma(n).toLowerCase())}function qa(n){return(n=ma(n))&&n.replace(xn,ir).replace(rt,"")}var Za=Wu((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Ga=Wu((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Ka=Uu("toLowerCase");var Va=Wu((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Ja=Wu((function(n,t,r){return n+(r?" ":"")+Ha(t)}));var Ya=Wu((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Ha=Uu("toUpperCase");function Xa(n,t,r){return n=ma(n),(t=r?u:t)===u?function(n){return ot.test(n)}(n)?function(n){return n.match(ut)||[]}(n):function(n){return n.match(hn)||[]}(n):n.match(t)||[]}var Qa=He((function(n,t){try{return Ot(n,u,t)}catch(n){return Ho(n)?n:new An(n)}})),nf=ei((function(n,t){return zt(t,(function(t){t=Wi(t),oe(n,t,zo(n[t],n))})),n}));function tf(n){return function(){return n}}var rf=$u(),ef=$u(!0);function uf(n){return n}function of(n){return Ue("function"==typeof n?n:ce(n,1))}var af=He((function(n,t){return function(r){return Re(r,n,t)}})),ff=He((function(n,t){return function(r){return Re(n,r,t)}}));function cf(n,t,r){var e=Sa(t),u=je(t,e);null!=r||ta(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=je(t,Sa(t)));var i=!(ta(r)&&"chain"in r&&!r.chain),o=Xo(n);return zt(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=zu(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Wt([this.value()],arguments))})})),n}function lf(){}var sf=qu(Ut),hf=qu(St),pf=qu($t);function vf(n){return bi(n)?Vt(Wi(n)):function(n){return function(t){return Ie(t,n)}}(n)}var _f=Gu(),gf=Gu(!0);function df(){return[]}function yf(){return!1}var mf=Nu((function(n,t){return n+t}),0),wf=Ju("ceil"),bf=Nu((function(n,t){return n/t}),1),xf=Ju("floor");var jf,If=Nu((function(n,t){return n*t}),1),Af=Ju("round"),Ef=Nu((function(n,t){return n-t}),0);return Mr.after=function(n,t){if("function"!=typeof t)throw new Rn(i);return n=_a(n),function(){if(--n<1)return t.apply(this,arguments)}},Mr.ary=Oo,Mr.assign=wa,Mr.assignIn=ba,Mr.assignInWith=xa,Mr.assignWith=ja,Mr.at=Ia,Mr.before=Bo,Mr.bind=zo,Mr.bindAll=nf,Mr.bindKey=Ro,Mr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Zo(n)?n:[n]},Mr.chain=ho,Mr.chunk=function(n,t,r){t=(r?wi(n,t,r):t===u)?1:mr(_a(t),0);var i=null==n?0:n.length;if(!i||t<1)return[];for(var o=0,a=0,f=e(_t(i/t));oi?0:i+r),(e=e===u||e>i?i:_a(e))<0&&(e+=i),e=r>e?0:ga(e);r>>0)?(n=ma(n))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=lu(t))&&fr(n)?xu(_r(n),0,r):n.split(t,r):[]},Mr.spread=function(n,t){if("function"!=typeof n)throw new Rn(i);return t=null==t?0:mr(_a(t),0),He((function(r){var e=r[t],u=xu(r,0,t);return e&&Wt(u,e),Ot(n,this,u)}))},Mr.tail=function(n){var t=null==n?0:n.length;return t?uu(n,1,t):[]},Mr.take=function(n,t,r){return n&&n.length?uu(n,0,(t=r||t===u?1:_a(t))<0?0:t):[]},Mr.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?uu(n,(t=e-(t=r||t===u?1:_a(t)))<0?0:t,e):[]},Mr.takeRightWhile=function(n,t){return n&&n.length?vu(n,ci(t,3),!1,!0):[]},Mr.takeWhile=function(n,t){return n&&n.length?vu(n,ci(t,3)):[]},Mr.tap=function(n,t){return t(n),n},Mr.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new Rn(i);return ta(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),So(n,t,{leading:e,maxWait:t,trailing:u})},Mr.thru=po,Mr.toArray=pa,Mr.toPairs=Da,Mr.toPairsIn=$a,Mr.toPath=function(n){return Zo(n)?Ut(n,Wi):ca(n)?[n]:zu(Ui(ma(n)))},Mr.toPlainObject=ya,Mr.transform=function(n,t,r){var e=Zo(n),u=e||Jo(n)||la(n);if(t=ci(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:ta(n)&&Xo(i)?Pr(Vn(n)):{}}return(u?zt:be)(n,(function(n,e,u){return t(r,n,e,u)})),r},Mr.unary=function(n){return Oo(n,1)},Mr.union=to,Mr.unionBy=ro,Mr.unionWith=eo,Mr.uniq=function(n){return n&&n.length?su(n):[]},Mr.uniqBy=function(n,t){return n&&n.length?su(n,ci(t,2)):[]},Mr.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?su(n,u,t):[]},Mr.unset=function(n,t){return null==n||hu(n,t)},Mr.unzip=uo,Mr.unzipWith=io,Mr.update=function(n,t,r){return null==n?n:pu(n,t,mu(r))},Mr.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:pu(n,t,mu(r),e)},Mr.values=Ma,Mr.valuesIn=function(n){return null==n?[]:tr(n,Ca(n))},Mr.without=oo,Mr.words=Xa,Mr.wrap=function(n,t){return To(mu(t),n)},Mr.xor=ao,Mr.xorBy=fo,Mr.xorWith=co,Mr.zip=lo,Mr.zipObject=function(n,t){return du(n||[],t||[],re)},Mr.zipObjectDeep=function(n,t){return du(n||[],t||[],nu)},Mr.zipWith=so,Mr.entries=Da,Mr.entriesIn=$a,Mr.extend=ba,Mr.extendWith=xa,cf(Mr,Mr),Mr.add=mf,Mr.attempt=Qa,Mr.camelCase=Pa,Mr.capitalize=Na,Mr.ceil=wf,Mr.clamp=function(n,t,r){return r===u&&(r=t,t=u),r!==u&&(r=(r=da(r))==r?r:0),t!==u&&(t=(t=da(t))==t?t:0),fe(da(n),t,r)},Mr.clone=function(n){return ce(n,4)},Mr.cloneDeep=function(n){return ce(n,5)},Mr.cloneDeepWith=function(n,t){return ce(n,5,t="function"==typeof t?t:u)},Mr.cloneWith=function(n,t){return ce(n,4,t="function"==typeof t?t:u)},Mr.conformsTo=function(n,t){return null==t||le(n,t,Sa(t))},Mr.deburr=qa,Mr.defaultTo=function(n,t){return null==n||n!=n?t:n},Mr.divide=bf,Mr.endsWith=function(n,t,r){n=ma(n),t=lu(t);var e=n.length,i=r=r===u?e:fe(_a(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},Mr.eq=Mo,Mr.escape=function(n){return(n=ma(n))&&H.test(n)?n.replace(J,or):n},Mr.escapeRegExp=function(n){return(n=ma(n))&&on.test(n)?n.replace(un,"\\$&"):n},Mr.every=function(n,t,r){var e=Zo(n)?St:_e;return r&&wi(n,t,r)&&(t=u),e(n,ci(t,3))},Mr.find=go,Mr.findIndex=Ni,Mr.findKey=function(n,t){return Pt(n,ci(t,3),be)},Mr.findLast=yo,Mr.findLastIndex=qi,Mr.findLastKey=function(n,t){return Pt(n,ci(t,3),xe)},Mr.floor=xf,Mr.forEach=mo,Mr.forEachRight=wo,Mr.forIn=function(n,t){return null==n?n:me(n,ci(t,3),Ca)},Mr.forInRight=function(n,t){return null==n?n:we(n,ci(t,3),Ca)},Mr.forOwn=function(n,t){return n&&be(n,ci(t,3))},Mr.forOwnRight=function(n,t){return n&&xe(n,ci(t,3))},Mr.get=ka,Mr.gt=Po,Mr.gte=No,Mr.has=function(n,t){return null!=n&&gi(n,t,Oe)},Mr.hasIn=Oa,Mr.head=Gi,Mr.identity=uf,Mr.includes=function(n,t,r,e){n=Ko(n)?n:Ma(n),r=r&&!e?_a(r):0;var u=n.length;return r<0&&(r=mr(u+r,0)),fa(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&qt(n,t,r)>-1},Mr.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:_a(r);return u<0&&(u=mr(e+u,0)),qt(n,t,u)},Mr.inRange=function(n,t,r){return t=va(t),r===u?(r=t,t=0):r=va(r),function(n,t,r){return n>=wr(t,r)&&n=-9007199254740991&&n<=v},Mr.isSet=aa,Mr.isString=fa,Mr.isSymbol=ca,Mr.isTypedArray=la,Mr.isUndefined=function(n){return n===u},Mr.isWeakMap=function(n){return ra(n)&&_i(n)==C},Mr.isWeakSet=function(n){return ra(n)&&"[object WeakSet]"==Ee(n)},Mr.join=function(n,t){return null==n?"":Mt.call(n,t)},Mr.kebabCase=Za,Mr.last=Yi,Mr.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e;return r!==u&&(i=(i=_a(r))<0?mr(e+i,0):wr(i,e-1)),t==t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,i):Nt(n,Gt,i,!0)},Mr.lowerCase=Ga,Mr.lowerFirst=Ka,Mr.lt=sa,Mr.lte=ha,Mr.max=function(n){return n&&n.length?ge(n,uf,ke):u},Mr.maxBy=function(n,t){return n&&n.length?ge(n,ci(t,2),ke):u},Mr.mean=function(n){return Kt(n,uf)},Mr.meanBy=function(n,t){return Kt(n,ci(t,2))},Mr.min=function(n){return n&&n.length?ge(n,uf,De):u},Mr.minBy=function(n,t){return n&&n.length?ge(n,ci(t,2),De):u},Mr.stubArray=df,Mr.stubFalse=yf,Mr.stubObject=function(){return{}},Mr.stubString=function(){return""},Mr.stubTrue=function(){return!0},Mr.multiply=If,Mr.nth=function(n,t){return n&&n.length?qe(n,_a(t)):u},Mr.noConflict=function(){return gt._===this&&(gt._=Pn),this},Mr.noop=lf,Mr.now=ko,Mr.pad=function(n,t,r){n=ma(n);var e=(t=_a(t))?vr(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return Zu(dt(u),r)+n+Zu(_t(u),r)},Mr.padEnd=function(n,t,r){n=ma(n);var e=(t=_a(t))?vr(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var i=jr();return wr(n+i*(t-n+ht("1e-"+((i+"").length-1))),t)}return Je(n,t)},Mr.reduce=function(n,t,r){var e=Zo(n)?Tt:Yt,u=arguments.length<3;return e(n,ci(t,4),r,u,pe)},Mr.reduceRight=function(n,t,r){var e=Zo(n)?Dt:Yt,u=arguments.length<3;return e(n,ci(t,4),r,u,ve)},Mr.repeat=function(n,t,r){return t=(r?wi(n,t,r):t===u)?1:_a(t),Ye(ma(n),t)},Mr.replace=function(){var n=arguments,t=ma(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Mr.result=function(n,t,r){var e=-1,i=(t=wu(t,n)).length;for(i||(i=1,n=u);++ev)return[];var r=g,e=wr(n,g);t=ci(t),n-=g;for(var u=Xt(e,t);++r=o)return n;var f=r-vr(e);if(f<1)return e;var c=a?xu(a,0,f).join(""):n.slice(0,f);if(i===u)return c+e;if(a&&(f+=c.length-f),oa(i)){if(n.slice(f).search(i)){var l,s=c;for(i.global||(i=Bn(i.source,ma(gn.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,h===u?f:h)}}else if(n.indexOf(lu(i),f)!=f){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},Mr.unescape=function(n){return(n=ma(n))&&Y.test(n)?n.replace(V,dr):n},Mr.uniqueId=function(n){var t=++Tn;return ma(n)+t},Mr.upperCase=Ya,Mr.upperFirst=Ha,Mr.each=mo,Mr.eachRight=wo,Mr.first=Gi,cf(Mr,(jf={},be(Mr,(function(n,t){Wn.call(Mr.prototype,t)||(jf[t]=n)})),jf),{chain:!1}),Mr.VERSION="4.17.21",zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Mr[n].placeholder=Mr})),zt(["drop","take"],(function(n,t){Zr.prototype[n]=function(r){r=r===u?1:mr(_a(r),0);var e=this.__filtered__&&!t?new Zr(this):this.clone();return e.__filtered__?e.__takeCount__=wr(r,e.__takeCount__):e.__views__.push({size:wr(r,g),type:n+(e.__dir__<0?"Right":"")}),e},Zr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),zt(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Zr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:ci(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),zt(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Zr.prototype[n]=function(){return this[r](1).value()[0]}})),zt(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Zr.prototype[n]=function(){return this.__filtered__?new Zr(this):this[r](1)}})),Zr.prototype.compact=function(){return this.filter(uf)},Zr.prototype.find=function(n){return this.filter(n).head()},Zr.prototype.findLast=function(n){return this.reverse().find(n)},Zr.prototype.invokeMap=He((function(n,t){return"function"==typeof n?new Zr(this):this.map((function(r){return Re(r,n,t)}))})),Zr.prototype.reject=function(n){return this.filter(Uo(ci(n)))},Zr.prototype.slice=function(n,t){n=_a(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Zr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==u&&(r=(t=_a(t))<0?r.dropRight(-t):r.take(t-n)),r)},Zr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Zr.prototype.toArray=function(){return this.take(g)},be(Zr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=Mr[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(Mr.prototype[t]=function(){var t=this.__wrapped__,a=e?[1]:arguments,f=t instanceof Zr,c=a[0],l=f||Zo(t),s=function(n){var t=i.apply(Mr,Wt([n],a));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(f=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=f&&!p;if(!o&&l){t=_?t:new Zr(this);var g=n.apply(t,a);return g.__actions__.push({func:po,args:[s],thisArg:u}),new qr(g,h)}return v&&_?n.apply(this,a):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})})),zt(["pop","push","shift","sort","splice","unshift"],(function(n){var t=Sn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Mr.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Zo(u)?u:[],n)}return this[r]((function(r){return t.apply(Zo(r)?r:[],n)}))}})),be(Zr.prototype,(function(n,t){var r=Mr[t];if(r){var e=r.name+"";Wn.call(Sr,e)||(Sr[e]=[]),Sr[e].push({name:t,func:r})}})),Sr[Mu(u,2).name]=[{name:"wrapper",func:u}],Zr.prototype.clone=function(){var n=new Zr(this.__wrapped__);return n.__actions__=zu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=zu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=zu(this.__views__),n},Zr.prototype.reverse=function(){if(this.__filtered__){var n=new Zr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Zr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Zo(n),e=t<0,u=r?n.length:0,i=function(n,t,r){var e=-1,u=r.length;for(;++e=this.__values__.length;return{done:n,value:n?u:this.__values__[this.__index__++]}},Mr.prototype.plant=function(n){for(var t,r=this;r instanceof Nr;){var e=Di(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},Mr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Zr){var t=n;return this.__actions__.length&&(t=new Zr(this)),(t=t.reverse()).__actions__.push({func:po,args:[no],thisArg:u}),new qr(t,this.__chain__)}return this.thru(no)},Mr.prototype.toJSON=Mr.prototype.valueOf=Mr.prototype.value=function(){return _u(this.__wrapped__,this.__actions__)},Mr.prototype.first=Mr.prototype.head,Qn&&(Mr.prototype[Qn]=function(){return this}),Mr}();gt._=yr,(e=function(){return yr}.call(t,r,t,n))===u||(n.exports=e)}.call(this)},625:(n,t,r)=>{"use strict";r.d(t,{Fc:()=>h,NO:()=>l,O:()=>p,YD:()=>f,g5:()=>v,gB:()=>a,gf:()=>c,sB:()=>i,vU:()=>o});var e=r(486),u=r.n(e);function i(n){const t=n.map((n=>new Date(n[0]))),r=n.map((n=>n[1])),e=n.map((n=>n[2])),u=n.length>1?"lines":"markers";var i=[{x:t,y:r,mode:u,name:"Resident size"},{x:t,y:e,mode:u,name:"Heap size"}];Plotly.newPlot("memoryGraph",i,{xaxis:{title:{text:"Time"}},yaxis:{title:{text:"Memory Size"},tickformat:".4~s",exponentformat:"B",ticksuffix:"B"}},{responsive:!0}),Plotly.newPlot("smallMemoryGraph",i,{height:40,margin:{l:0,r:0,b:0,t:0,pad:4},plot_bgcolor:"#343a40",yaxis:{tickformat:".4~s",exponentformat:"B",ticksuffix:"B"},showlegend:!1},{responsive:!0,displayModeBar:!1}),document.getElementById("smallMemoryGraph").onclick((()=>{o()}))}function o(){setTimeout((()=>{Plotly.Plots.resize("memoryGraph"),Plotly.Plots.resize("smallMemoryGraph")}),100)}function a(n,t=1){if(Math.abs(n)<1024)return n+" B";const r=["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let e=-1;const u=10**t;do{n/=1024,++e}while(Math.round(Math.abs(n)*u)/u>=1024&&e1?"s":"";let i=`${e}
${t} total
${`${n.n_allocations} allocation${u}`}`;return!1===r&&(i=i.concat(`
Thread ID: ${n.thread_id}`)),i}function l(n,t){return function(n,t){let r=u().cloneDeep(n.children);const e=u().filter(r,(function n(r){return r.children&&r.children.length>0&&(r.children=u().filter(r.children,n)),t(r)}));return u().defaults({children:e},n)}(n,(n=>n.thread_id===t))}function s(n,t){function r(n){let e=[];if(t(n)){e=[];for(const t of n.children)e.push(...r(t));let t=u().clone(n);t.children=e,e=[t]}else for(const t of n.children)e.push(...r(t));return e}let e=[];for(let t of n.children)e.push(...r(t));return u().defaults({children:e},n)}function h(n){return s(n,(n=>n.interesting))}function p(n){return s(n,(n=>!n.import_system))}function v(n){return u().reduce(n,((n,t)=>(n.n_allocations+=t.n_allocations,n.value+=t.value,n)),{n_allocations:0,value:0})}},501:(n,t,r)=>{"use strict";r.d(t,{Cd:()=>c,Ji:()=>v,N4:()=>b,Vi:()=>I,Xx:()=>p,Z1:()=>w,bf:()=>g,cW:()=>j,ib:()=>y,sO:()=>m});var e=r(625);const u="filter_uninteresting",i="filter_import_system",o="filter_thread";var a=null;let f=new class{constructor(){this.filters={}}registerFilter(n,t){this.filters[n]=t}unRegisterFilter(n){delete this.filters[n]}drawChart(n){let t=n;_.forOwn(this.filters,(n=>{t=n(t)})),I(t),a.merge([])}};function c(){return a}function l(){return location.hash?parseInt(location.hash.substring(1),10):0}function s(){document.getElementById("resetZoomButton").disabled=0==l()}function h(n){n.id!=l()&&(history.pushState({id:n.id},n.data.name,`#${n.id}`),s())}function p(){const n=l(),t=a.findById(n);t&&(a.zoomTo(t),s())}function v(){a.inverted(this===document.getElementById("icicles")),a.resetZoom(),$('[data-toggle="tooltip"]').tooltip("hide")}function g(){a.resetZoom()}function d(){return document.getElementById("chart").clientWidth}function y(){f.drawChart(data),location.hash&&p()}function m(){const n=this.dataset.thread;"-0x1"===n?f.unRegisterFilter(o):f.registerFilter(o,(t=>{let r=(0,e.NO)(t,n);const u=(0,e.g5)(r.children);return _.defaults(u,r),r.n_allocations=u.n_allocations,r.value=u.value,r})),f.drawChart(data)}function w(){void 0===this.hideUninterestingFrames&&(this.hideUninterestingFrames=!0),!0===this.hideUninterestingFrames?(this.hideUninterestingFrames=!0,f.registerFilter(u,(n=>(0,e.Fc)(n)))):f.unRegisterFilter(u),this.hideUninterestingFrames=!this.hideUninterestingFrames,f.drawChart(data)}function b(){void 0===this.hideImportSystemFrames&&(this.hideImportSystemFrames=!0),!0===this.hideImportSystemFrames?(this.hideImportSystemFrames=!0,inverted?(data=invertedNoImportsData,temporal&&(hideImports=!0,intervals=invertedNoImportsIntervals)):f.registerFilter(i,(n=>(0,e.O)(n)))):(f.unRegisterFilter(i),data=flamegraphData,temporal&&(hideImports=!1,intervals=flamegraphIntervals)),this.hideImportSystemFrames=!this.hideImportSystemFrames,f.drawChart(data)}function x(n,t){return n.highlight?"orange":n.data.name&&n.data.location?(e=n.data.location[1],"py"==(r=void 0===e?e:e.substring(e.lastIndexOf(".")+1,e.length)||e)?d3.schemePastel1[2]:"c"==r||"cpp"==r||"h"==r?d3.schemePastel1[5]:d3.schemePastel1[8]):"#EEE";var r,e}function j(n,t){if(!0===t)return;const r=n.unique_threads;if(!r||r.length<=1)return;document.getElementById("threadsDropdown").removeAttribute("hidden");const e=document.getElementById("threadsDropdownList");for(const n of r){let t=document.createElement("a");t.className="dropdown-item",t.dataset.thread=n,t.text=n,t.onclick=m,e.appendChild(t)}}function I(n){a&&(a.destroy(),d3.selectAll(".d3-flame-graph-tip").remove()),a=flamegraph().width(d()).transitionDuration(250).transitionEase(d3.easeCubic).inverted(!0).cellHeight(20).minFrameSize(2).setColorMapper(x).onClick(h).tooltip(d3.tip().attr("class","d3-flame-graph-tip").html((n=>{const t=(0,e.gB)(n.data.value);return(0,e.gf)(n.data,t,merge_threads)})).direction((n=>{const t=(n.x1+n.x0)/2;return.25.25?"w":"n"}))),d3.select("#chart").datum(n).call(a),a.width(d())}}},t={};function r(e){var u=t[e];if(void 0!==u)return u.exports;var i=t[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return r.d(t,{a:t}),t},r.d=(n,t)=>{for(var e in t)r.o(t,e)&&!r.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),r.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),r.nmd=n=>(n.paths=[],n.children||(n.children=[]),n),(()=>{"use strict";var n=r(625),t=r(501);function e(n){const{strings:t,nodes:r,unique_threads:e}=n,u=r.name.map(((n,e)=>({name:t[r.name[e]],location:[t[r.function[e]],t[r.filename[e]],r.lineno[e]],value:r.value[e],children:r.children[e],n_allocations:r.n_allocations[e],thread_id:t[r.thread_id[e]],interesting:0!==r.interesting[e],import_system:0!==r.import_system[e]})));for(const n of u)n.children=n.children.map((n=>u[n]));const i=u[0];return i.unique_threads=e.map((n=>t[n])),i}window.resizeMemoryGraph=n.vU,document.addEventListener("DOMContentLoaded",(function(){!function(n){const{strings:t,nodes:r,inverted_no_imports_nodes:u,unique_threads:i}=n;flamegraphData=e({strings:t,nodes:r,unique_threads:i}),invertedNoImportsData=inverted?e({strings:t,nodes:u,unique_threads:i}):null,data=flamegraphData}(packed_data),(0,n.sB)(memory_records),(0,t.cW)(data,merge_threads),(0,t.Vi)(data),location.hash&&(0,t.Xx)(),document.getElementById("icicles").onchange=t.Ji,document.getElementById("flames").onchange=t.Ji,document.getElementById("resetZoomButton").onclick=t.bf,document.getElementById("resetThreadFilterItem").onclick=t.sO,document.getElementById("hideUninteresting").onclick=t.Z1.bind(this),document.getElementById("hideImportSystem").onclick=t.N4.bind(this),t.Z1.bind(this)(),document.onkeyup=n=>{"Escape"==n.code&&(0,t.bf)()},document.getElementById("searchTerm").addEventListener("input",(()=>{const n=document.getElementById("searchTerm");(0,t.Cd)().search(n.value)})),window.addEventListener("popstate",t.Xx),window.addEventListener("resize",(0,n.YD)(t.ib)),$('[data-toggle-second="tooltip"]').tooltip(),$('[data-toggle="tooltip"]').tooltip()}))})()})(); \ No newline at end of file diff --git a/src/memray/reporters/templates/assets/temporal_flamegraph.js b/src/memray/reporters/templates/assets/temporal_flamegraph.js index e12df7e253..de4304d98d 100644 --- a/src/memray/reporters/templates/assets/temporal_flamegraph.js +++ b/src/memray/reporters/templates/assets/temporal_flamegraph.js @@ -6,4 +6,4 @@ * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */n=r.nmd(n),function(){var u,i="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",c=16,f=32,l=64,s=128,h=256,p=1/0,v=9007199254740991,_=NaN,g=4294967295,d=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",f],["partialRight",l],["rearg",h]],y="[object Arguments]",m="[object Array]",w="[object Boolean]",b="[object Date]",x="[object Error]",j="[object Function]",A="[object GeneratorFunction]",I="[object Map]",E="[object Number]",k="[object Object]",O="[object Promise]",B="[object RegExp]",S="[object Set]",R="[object String]",z="[object Symbol]",C="[object WeakMap]",F="[object ArrayBuffer]",D="[object DataView]",L="[object Float32Array]",T="[object Float64Array]",W="[object Int8Array]",U="[object Int16Array]",$="[object Int32Array]",M="[object Uint8Array]",N="[object Uint8ClampedArray]",P="[object Uint16Array]",q="[object Uint32Array]",Z=/\b__p \+= '';/g,J=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,V=RegExp(Y.source),H=RegExp(G.source),X=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,en=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,on=RegExp(un.source),an=/^\s+/,cn=/\s/,fn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ln=/\{\n\/\* \[wrapped with (.+)\] \*/,sn=/,? & /,hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,_n=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gn=/\w*$/,dn=/^[-+]0x[0-9a-f]+$/i,yn=/^0b[01]+$/i,mn=/^\[object .+?Constructor\]$/,wn=/^0o[0-7]+$/i,bn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jn=/($^)/,An=/['\n\r\u2028\u2029\\]/g,In="\\ud800-\\udfff",En="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",kn="\\u2700-\\u27bf",On="a-z\\xdf-\\xf6\\xf8-\\xff",Bn="A-Z\\xc0-\\xd6\\xd8-\\xde",Sn="\\ufe0e\\ufe0f",Rn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",zn="['’]",Cn="["+In+"]",Fn="["+Rn+"]",Dn="["+En+"]",Ln="\\d+",Tn="["+kn+"]",Wn="["+On+"]",Un="[^"+In+Rn+Ln+kn+On+Bn+"]",$n="\\ud83c[\\udffb-\\udfff]",Mn="[^"+In+"]",Nn="(?:\\ud83c[\\udde6-\\uddff]){2}",Pn="[\\ud800-\\udbff][\\udc00-\\udfff]",qn="["+Bn+"]",Zn="\\u200d",Jn="(?:"+Wn+"|"+Un+")",Kn="(?:"+qn+"|"+Un+")",Yn="(?:['’](?:d|ll|m|re|s|t|ve))?",Gn="(?:['’](?:D|LL|M|RE|S|T|VE))?",Vn="(?:"+Dn+"|"+$n+")"+"?",Hn="["+Sn+"]?",Xn=Hn+Vn+("(?:"+Zn+"(?:"+[Mn,Nn,Pn].join("|")+")"+Hn+Vn+")*"),Qn="(?:"+[Tn,Nn,Pn].join("|")+")"+Xn,nt="(?:"+[Mn+Dn+"?",Dn,Nn,Pn,Cn].join("|")+")",tt=RegExp(zn,"g"),rt=RegExp(Dn,"g"),et=RegExp($n+"(?="+$n+")|"+nt+Xn,"g"),ut=RegExp([qn+"?"+Wn+"+"+Yn+"(?="+[Fn,qn,"$"].join("|")+")",Kn+"+"+Gn+"(?="+[Fn,qn+Jn,"$"].join("|")+")",qn+"?"+Jn+"+"+Yn,qn+"+"+Gn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ln,Qn].join("|"),"g"),it=RegExp("["+Zn+In+En+Sn+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["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"],ct=-1,ft={};ft[L]=ft[T]=ft[W]=ft[U]=ft[$]=ft[M]=ft[N]=ft[P]=ft[q]=!0,ft[y]=ft[m]=ft[F]=ft[w]=ft[D]=ft[b]=ft[x]=ft[j]=ft[I]=ft[E]=ft[k]=ft[B]=ft[S]=ft[R]=ft[C]=!1;var lt={};lt[y]=lt[m]=lt[F]=lt[D]=lt[w]=lt[b]=lt[L]=lt[T]=lt[W]=lt[U]=lt[$]=lt[I]=lt[E]=lt[k]=lt[B]=lt[S]=lt[R]=lt[z]=lt[M]=lt[N]=lt[P]=lt[q]=!0,lt[x]=lt[j]=lt[C]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ht=parseFloat,pt=parseInt,vt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,_t="object"==typeof self&&self&&self.Object===Object&&self,gt=vt||_t||Function("return this")(),dt=t&&!t.nodeType&&t,yt=dt&&n&&!n.nodeType&&n,mt=yt&&yt.exports===dt,wt=mt&&vt.process,bt=function(){try{var n=yt&&yt.require&&yt.require("util").types;return n||wt&&wt.binding&&wt.binding("util")}catch(n){}}(),xt=bt&&bt.isArrayBuffer,jt=bt&&bt.isDate,At=bt&&bt.isMap,It=bt&&bt.isRegExp,Et=bt&&bt.isSet,kt=bt&&bt.isTypedArray;function Ot(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function Bt(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function Dt(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function ur(n,t){for(var r=n.length;r--&&qt(t,n[r],0)>-1;);return r}var ir=Gt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),or=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ar(n){return"\\"+st[n]}function cr(n){return it.test(n)}function fr(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function lr(n,t){return function(r){return n(t(r))}}function sr(n,t){for(var r=-1,e=n.length,u=0,i=[];++r",""":'"',"'":"'"});var yr=function n(t){var r,e=(t=null==t?gt:yr.defaults(gt.Object(),t,yr.pick(gt,at))).Array,cn=t.Date,In=t.Error,En=t.Function,kn=t.Math,On=t.Object,Bn=t.RegExp,Sn=t.String,Rn=t.TypeError,zn=e.prototype,Cn=En.prototype,Fn=On.prototype,Dn=t["__core-js_shared__"],Ln=Cn.toString,Tn=Fn.hasOwnProperty,Wn=0,Un=(r=/[^.]+$/.exec(Dn&&Dn.keys&&Dn.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",$n=Fn.toString,Mn=Ln.call(On),Nn=gt._,Pn=Bn("^"+Ln.call(Tn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qn=mt?t.Buffer:u,Zn=t.Symbol,Jn=t.Uint8Array,Kn=qn?qn.allocUnsafe:u,Yn=lr(On.getPrototypeOf,On),Gn=On.create,Vn=Fn.propertyIsEnumerable,Hn=zn.splice,Xn=Zn?Zn.isConcatSpreadable:u,Qn=Zn?Zn.iterator:u,nt=Zn?Zn.toStringTag:u,et=function(){try{var n=hi(On,"defineProperty");return n({},"",{}),n}catch(n){}}(),it=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,st=cn&&cn.now!==gt.Date.now&&cn.now,vt=t.setTimeout!==gt.setTimeout&&t.setTimeout,_t=kn.ceil,dt=kn.floor,yt=On.getOwnPropertySymbols,wt=qn?qn.isBuffer:u,bt=t.isFinite,Mt=zn.join,Gt=lr(On.keys,On),mr=kn.max,wr=kn.min,br=cn.now,xr=t.parseInt,jr=kn.random,Ar=zn.reverse,Ir=hi(t,"DataView"),Er=hi(t,"Map"),kr=hi(t,"Promise"),Or=hi(t,"Set"),Br=hi(t,"WeakMap"),Sr=hi(On,"create"),Rr=Br&&new Br,zr={},Cr=Wi(Ir),Fr=Wi(Er),Dr=Wi(kr),Lr=Wi(Or),Tr=Wi(Br),Wr=Zn?Zn.prototype:u,Ur=Wr?Wr.valueOf:u,$r=Wr?Wr.toString:u;function Mr(n){if(ra(n)&&!Zo(n)&&!(n instanceof Zr)){if(n instanceof qr)return n;if(Tn.call(n,"__wrapped__"))return Ui(n)}return new qr(n)}var Nr=function(){function n(){}return function(t){if(!ta(t))return{};if(Gn)return Gn(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function Pr(){}function qr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function Zr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Jr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function fe(n,t,r,e,i,o){var a,c=1&t,f=2&t,l=4&t;if(r&&(a=i?r(n,e,i,o):r(n)),a!==u)return a;if(!ta(n))return n;var s=Zo(n);if(s){if(a=function(n){var t=n.length,r=new n.constructor(t);t&&"string"==typeof n[0]&&Tn.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!c)return Su(n,a)}else{var h=_i(n),p=h==j||h==A;if(Go(n))return Au(n,c);if(h==k||h==y||p&&!i){if(a=f||p?{}:di(n),!c)return f?function(n,t){return Ru(n,vi(n),t)}(n,function(n,t){return n&&Ru(t,Ca(t),n)}(a,n)):function(n,t){return Ru(n,pi(n),t)}(n,ie(a,n))}else{if(!lt[h])return i?n:{};a=function(n,t,r){var e=n.constructor;switch(t){case F:return Iu(n);case w:case b:return new e(+n);case D:return function(n,t){var r=t?Iu(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case L:case T:case W:case U:case $:case M:case N:case P:case q:return Eu(n,r);case I:return new e;case E:case R:return new e(n);case B:return function(n){var t=new n.constructor(n.source,gn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case S:return new e;case z:return u=n,Ur?On(Ur.call(u)):{}}var u}(n,h,c)}}o||(o=new Vr);var v=o.get(n);if(v)return v;o.set(n,a),aa(n)?n.forEach((function(e){a.add(fe(e,t,r,e,n,o))})):ea(n)&&n.forEach((function(e,u){a.set(u,fe(e,t,r,u,n,o))}));var _=s?u:(l?f?ii:ui:f?Ca:za)(n);return St(_||n,(function(e,u){_&&(e=n[u=e]),re(a,u,fe(e,t,r,u,n,o))})),a}function le(n,t,r){var e=r.length;if(null==n)return!e;for(n=On(n);e--;){var i=r[e],o=t[i],a=n[i];if(a===u&&!(i in n)||!o(a))return!1}return!0}function se(n,t,r){if("function"!=typeof n)throw new Rn(i);return Ri((function(){n.apply(u,r)}),t)}function he(n,t,r,e){var u=-1,i=Ft,o=!0,a=n.length,c=[],f=t.length;if(!a)return c;r&&(t=Lt(t,nr(r))),e?(i=Dt,o=!1):t.length>=200&&(i=rr,o=!1,t=new Gr(t));n:for(;++u-1},Kr.prototype.set=function(n,t){var r=this.__data__,e=ee(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Yr.prototype.clear=function(){this.size=0,this.__data__={hash:new Jr,map:new(Er||Kr),string:new Jr}},Yr.prototype.delete=function(n){var t=li(this,n).delete(n);return this.size-=t?1:0,t},Yr.prototype.get=function(n){return li(this,n).get(n)},Yr.prototype.has=function(n){return li(this,n).has(n)},Yr.prototype.set=function(n,t){var r=li(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Gr.prototype.add=Gr.prototype.push=function(n){return this.__data__.set(n,o),this},Gr.prototype.has=function(n){return this.__data__.has(n)},Vr.prototype.clear=function(){this.__data__=new Kr,this.size=0},Vr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Vr.prototype.get=function(n){return this.__data__.get(n)},Vr.prototype.has=function(n){return this.__data__.has(n)},Vr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Kr){var e=r.__data__;if(!Er||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Yr(e)}return r.set(n,t),this.size=r.size,this};var pe=Fu(be),ve=Fu(xe,!0);function _e(n,t){var r=!0;return pe(n,(function(n,e,u){return r=!!t(n,e,u)})),r}function ge(n,t,r){for(var e=-1,i=n.length;++e0&&r(a)?t>1?ye(a,t-1,r,e,u):Tt(u,a):e||(u[u.length]=a)}return u}var me=Du(),we=Du(!0);function be(n,t){return n&&me(n,t,za)}function xe(n,t){return n&&we(n,t,za)}function je(n,t){return Ct(t,(function(t){return Xo(n[t])}))}function Ae(n,t){for(var r=0,e=(t=wu(t,n)).length;null!=n&&rt}function Oe(n,t){return null!=n&&Tn.call(n,t)}function Be(n,t){return null!=n&&t in On(n)}function Se(n,t,r){for(var i=r?Dt:Ft,o=n[0].length,a=n.length,c=a,f=e(a),l=1/0,s=[];c--;){var h=n[c];c&&t&&(h=Lt(h,nr(t))),l=wr(h.length,l),f[c]=!r&&(t||o>=120&&h.length>=120)?new Gr(c&&h):u}h=n[0];var p=-1,v=f[0];n:for(;++p=a?c:c*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}))}function Je(n,t,r){for(var e=-1,u=t.length,i={};++e-1;)a!==n&&Hn.call(a,c,1),Hn.call(n,c,1);return n}function Ye(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;mi(u)?Hn.call(n,u,1):hu(n,u)}}return n}function Ge(n,t){return n+dt(jr()*(t-n+1))}function Ve(n,t){var r="";if(!n||t<1||t>v)return r;do{t%2&&(r+=n),(t=dt(t/2))&&(n+=n)}while(t);return r}function He(n,t){return zi(ki(n,t,uc),n+"")}function Xe(n){return Xr(Ma(n))}function Qe(n,t){var r=Ma(n);return Di(r,ce(t,0,r.length))}function nu(n,t,r,e){if(!ta(n))return n;for(var i=-1,o=(t=wu(t,n)).length,a=o-1,c=n;null!=c&&++ii?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=e(i);++u>>1,o=n[i];null!==o&&!fa(o)&&(r?o<=t:o=200){var f=t?null:Vu(n);if(f)return hr(f);o=!1,u=rr,c=new Gr}else c=t?[]:a;n:for(;++e=e?n:uu(n,t,r)}var ju=it||function(n){return gt.clearTimeout(n)};function Au(n,t){if(t)return n.slice();var r=n.length,e=Kn?Kn(r):new n.constructor(r);return n.copy(e),e}function Iu(n){var t=new n.constructor(n.byteLength);return new Jn(t).set(new Jn(n)),t}function Eu(n,t){var r=t?Iu(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function ku(n,t){if(n!==t){var r=n!==u,e=null===n,i=n==n,o=fa(n),a=t!==u,c=null===t,f=t==t,l=fa(t);if(!c&&!l&&!o&&n>t||o&&a&&f&&!c&&!l||e&&a&&f||!r&&f||!i)return 1;if(!e&&!o&&!l&&n1?r[i-1]:u,a=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,a&&wi(r[0],r[1],a)&&(o=i<3?u:o,i=1),t=On(t);++e-1?i[o?t[a]:a]:u}}function $u(n){return ei((function(t){var r=t.length,e=r,o=qr.prototype.thru;for(n&&t.reverse();e--;){var a=t[e];if("function"!=typeof a)throw new Rn(i);if(o&&!c&&"wrapper"==ai(a))var c=new qr([],!0)}for(e=c?e:r;++e1&&w.reverse(),p&&lc))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new Gr:u;for(o.set(n,t),o.set(t,n);++h-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(fn,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return St(d,(function(r){var e="_."+r[0];t&r[1]&&!Ft(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(ln);return t?t[1].split(sn):[]}(e),r)))}function Fi(n){var t=0,r=0;return function(){var e=br(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function Di(n,t){var r=-1,e=n.length,i=e-1;for(t=t===u?e:t;++r1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,io(n,r)}));function ho(n){var t=Mr(n);return t.__chain__=!0,t}function po(n,t){return t(n)}var vo=ei((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return ae(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Zr&&mi(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:po,args:[i],thisArg:u}),new qr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(u),n}))):this.thru(i)}));var _o=zu((function(n,t,r){Tn.call(n,r)?++n[r]:oe(n,r,1)}));var go=Uu(Pi),yo=Uu(qi);function mo(n,t){return(Zo(n)?St:pe)(n,fi(t,3))}function wo(n,t){return(Zo(n)?Rt:ve)(n,fi(t,3))}var bo=zu((function(n,t,r){Tn.call(n,r)?n[r].push(t):oe(n,r,[t])}));var xo=He((function(n,t,r){var u=-1,i="function"==typeof t,o=Ko(n)?e(n.length):[];return pe(n,(function(n){o[++u]=i?Ot(t,n,r):Re(n,t,r)})),o})),jo=zu((function(n,t,r){oe(n,r,t)}));function Ao(n,t){return(Zo(n)?Lt:$e)(n,fi(t,3))}var Io=zu((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var Eo=He((function(n,t){if(null==n)return[];var r=t.length;return r>1&&wi(n,t[0],t[1])?t=[]:r>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Ze(n,ye(t,1),[])})),ko=st||function(){return gt.Date.now()};function Oo(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Xu(n,s,u,u,u,u,t)}function Bo(n,t){var r;if("function"!=typeof t)throw new Rn(i);return n=_a(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var So=He((function(n,t,r){var e=1;if(r.length){var u=sr(r,ci(So));e|=f}return Xu(n,e,t,r,u)})),Ro=He((function(n,t,r){var e=3;if(r.length){var u=sr(r,ci(Ro));e|=f}return Xu(t,e,n,r,u)}));function zo(n,t,r){var e,o,a,c,f,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new Rn(i);function _(t){var r=e,i=o;return e=o=u,s=t,c=n.apply(i,r)}function g(n){var r=n-l;return l===u||r>=t||r<0||p&&n-s>=a}function d(){var n=ko();if(g(n))return y(n);f=Ri(d,function(n){var r=t-(n-l);return p?wr(r,a-(n-s)):r}(n))}function y(n){return f=u,v&&e?_(n):(e=o=u,c)}function m(){var n=ko(),r=g(n);if(e=arguments,o=this,l=n,r){if(f===u)return function(n){return s=n,f=Ri(d,t),h?_(n):c}(l);if(p)return ju(f),f=Ri(d,t),_(l)}return f===u&&(f=Ri(d,t)),c}return t=da(t)||0,ta(r)&&(h=!!r.leading,a=(p="maxWait"in r)?mr(da(r.maxWait)||0,t):a,v="trailing"in r?!!r.trailing:v),m.cancel=function(){f!==u&&ju(f),s=0,e=l=o=f=u},m.flush=function(){return f===u?c:y(ko())},m}var Co=He((function(n,t){return se(n,1,t)})),Fo=He((function(n,t,r){return se(n,da(t)||0,r)}));function Do(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new Rn(i);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Do.Cache||Yr),r}function Lo(n){if("function"!=typeof n)throw new Rn(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Do.Cache=Yr;var To=bu((function(n,t){var r=(t=1==t.length&&Zo(t[0])?Lt(t[0],nr(fi())):Lt(ye(t,1),nr(fi()))).length;return He((function(e){for(var u=-1,i=wr(e.length,r);++u=t})),qo=ze(function(){return arguments}())?ze:function(n){return ra(n)&&Tn.call(n,"callee")&&!Vn.call(n,"callee")},Zo=e.isArray,Jo=xt?nr(xt):function(n){return ra(n)&&Ee(n)==F};function Ko(n){return null!=n&&na(n.length)&&!Xo(n)}function Yo(n){return ra(n)&&Ko(n)}var Go=wt||dc,Vo=jt?nr(jt):function(n){return ra(n)&&Ee(n)==b};function Ho(n){if(!ra(n))return!1;var t=Ee(n);return t==x||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!ia(n)}function Xo(n){if(!ta(n))return!1;var t=Ee(n);return t==j||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qo(n){return"number"==typeof n&&n==_a(n)}function na(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=v}function ta(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function ra(n){return null!=n&&"object"==typeof n}var ea=At?nr(At):function(n){return ra(n)&&_i(n)==I};function ua(n){return"number"==typeof n||ra(n)&&Ee(n)==E}function ia(n){if(!ra(n)||Ee(n)!=k)return!1;var t=Yn(n);if(null===t)return!0;var r=Tn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ln.call(r)==Mn}var oa=It?nr(It):function(n){return ra(n)&&Ee(n)==B};var aa=Et?nr(Et):function(n){return ra(n)&&_i(n)==S};function ca(n){return"string"==typeof n||!Zo(n)&&ra(n)&&Ee(n)==R}function fa(n){return"symbol"==typeof n||ra(n)&&Ee(n)==z}var la=kt?nr(kt):function(n){return ra(n)&&na(n.length)&&!!ft[Ee(n)]};var sa=Ku(Ue),ha=Ku((function(n,t){return n<=t}));function pa(n){if(!n)return[];if(Ko(n))return ca(n)?_r(n):Su(n);if(Qn&&n[Qn])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Qn]());var t=_i(n);return(t==I?fr:t==S?hr:Ma)(n)}function va(n){return n?(n=da(n))===p||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function _a(n){var t=va(n),r=t%1;return t==t?r?t-r:t:0}function ga(n){return n?ce(_a(n),0,g):0}function da(n){if("number"==typeof n)return n;if(fa(n))return _;if(ta(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=ta(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Qt(n);var r=yn.test(n);return r||wn.test(n)?pt(n.slice(2),r?2:8):dn.test(n)?_:+n}function ya(n){return Ru(n,Ca(n))}function ma(n){return null==n?"":lu(n)}var wa=Cu((function(n,t){if(Ai(t)||Ko(t))Ru(t,za(t),n);else for(var r in t)Tn.call(t,r)&&re(n,r,t[r])})),ba=Cu((function(n,t){Ru(t,Ca(t),n)})),xa=Cu((function(n,t,r,e){Ru(t,Ca(t),n,e)})),ja=Cu((function(n,t,r,e){Ru(t,za(t),n,e)})),Aa=ei(ae);var Ia=He((function(n,t){n=On(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&wi(t[0],t[1],i)&&(e=1);++r1),t})),Ru(n,ii(n),r),e&&(r=fe(r,7,ti));for(var u=t.length;u--;)hu(r,t[u]);return r}));var Ta=ei((function(n,t){return null==n?{}:function(n,t){return Je(n,t,(function(t,r){return Oa(n,r)}))}(n,t)}));function Wa(n,t){if(null==n)return{};var r=Lt(ii(n),(function(n){return[n]}));return t=fi(t),Je(n,r,(function(n,r){return t(n,r[0])}))}var Ua=Hu(za),$a=Hu(Ca);function Ma(n){return null==n?[]:tr(n,za(n))}var Na=Tu((function(n,t,r){return t=t.toLowerCase(),n+(r?Pa(t):t)}));function Pa(n){return Ha(ma(n).toLowerCase())}function qa(n){return(n=ma(n))&&n.replace(xn,ir).replace(rt,"")}var Za=Tu((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Ja=Tu((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Ka=Lu("toLowerCase");var Ya=Tu((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Ga=Tu((function(n,t,r){return n+(r?" ":"")+Ha(t)}));var Va=Tu((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Ha=Lu("toUpperCase");function Xa(n,t,r){return n=ma(n),(t=r?u:t)===u?function(n){return ot.test(n)}(n)?function(n){return n.match(ut)||[]}(n):function(n){return n.match(hn)||[]}(n):n.match(t)||[]}var Qa=He((function(n,t){try{return Ot(n,u,t)}catch(n){return Ho(n)?n:new In(n)}})),nc=ei((function(n,t){return St(t,(function(t){t=Ti(t),oe(n,t,So(n[t],n))})),n}));function tc(n){return function(){return n}}var rc=$u(),ec=$u(!0);function uc(n){return n}function ic(n){return Le("function"==typeof n?n:fe(n,1))}var oc=He((function(n,t){return function(r){return Re(r,n,t)}})),ac=He((function(n,t){return function(r){return Re(n,r,t)}}));function cc(n,t,r){var e=za(t),u=je(t,e);null!=r||ta(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=je(t,za(t)));var i=!(ta(r)&&"chain"in r&&!r.chain),o=Xo(n);return St(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=Su(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Tt([this.value()],arguments))})})),n}function fc(){}var lc=qu(Lt),sc=qu(zt),hc=qu($t);function pc(n){return bi(n)?Yt(Ti(n)):function(n){return function(t){return Ae(t,n)}}(n)}var vc=Ju(),_c=Ju(!0);function gc(){return[]}function dc(){return!1}var yc=Pu((function(n,t){return n+t}),0),mc=Gu("ceil"),wc=Pu((function(n,t){return n/t}),1),bc=Gu("floor");var xc,jc=Pu((function(n,t){return n*t}),1),Ac=Gu("round"),Ic=Pu((function(n,t){return n-t}),0);return Mr.after=function(n,t){if("function"!=typeof t)throw new Rn(i);return n=_a(n),function(){if(--n<1)return t.apply(this,arguments)}},Mr.ary=Oo,Mr.assign=wa,Mr.assignIn=ba,Mr.assignInWith=xa,Mr.assignWith=ja,Mr.at=Aa,Mr.before=Bo,Mr.bind=So,Mr.bindAll=nc,Mr.bindKey=Ro,Mr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Zo(n)?n:[n]},Mr.chain=ho,Mr.chunk=function(n,t,r){t=(r?wi(n,t,r):t===u)?1:mr(_a(t),0);var i=null==n?0:n.length;if(!i||t<1)return[];for(var o=0,a=0,c=e(_t(i/t));oi?0:i+r),(e=e===u||e>i?i:_a(e))<0&&(e+=i),e=r>e?0:ga(e);r>>0)?(n=ma(n))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=lu(t))&&cr(n)?xu(_r(n),0,r):n.split(t,r):[]},Mr.spread=function(n,t){if("function"!=typeof n)throw new Rn(i);return t=null==t?0:mr(_a(t),0),He((function(r){var e=r[t],u=xu(r,0,t);return e&&Tt(u,e),Ot(n,this,u)}))},Mr.tail=function(n){var t=null==n?0:n.length;return t?uu(n,1,t):[]},Mr.take=function(n,t,r){return n&&n.length?uu(n,0,(t=r||t===u?1:_a(t))<0?0:t):[]},Mr.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?uu(n,(t=e-(t=r||t===u?1:_a(t)))<0?0:t,e):[]},Mr.takeRightWhile=function(n,t){return n&&n.length?vu(n,fi(t,3),!1,!0):[]},Mr.takeWhile=function(n,t){return n&&n.length?vu(n,fi(t,3)):[]},Mr.tap=function(n,t){return t(n),n},Mr.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new Rn(i);return ta(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),zo(n,t,{leading:e,maxWait:t,trailing:u})},Mr.thru=po,Mr.toArray=pa,Mr.toPairs=Ua,Mr.toPairsIn=$a,Mr.toPath=function(n){return Zo(n)?Lt(n,Ti):fa(n)?[n]:Su(Li(ma(n)))},Mr.toPlainObject=ya,Mr.transform=function(n,t,r){var e=Zo(n),u=e||Go(n)||la(n);if(t=fi(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:ta(n)&&Xo(i)?Nr(Yn(n)):{}}return(u?St:be)(n,(function(n,e,u){return t(r,n,e,u)})),r},Mr.unary=function(n){return Oo(n,1)},Mr.union=to,Mr.unionBy=ro,Mr.unionWith=eo,Mr.uniq=function(n){return n&&n.length?su(n):[]},Mr.uniqBy=function(n,t){return n&&n.length?su(n,fi(t,2)):[]},Mr.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?su(n,u,t):[]},Mr.unset=function(n,t){return null==n||hu(n,t)},Mr.unzip=uo,Mr.unzipWith=io,Mr.update=function(n,t,r){return null==n?n:pu(n,t,mu(r))},Mr.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:pu(n,t,mu(r),e)},Mr.values=Ma,Mr.valuesIn=function(n){return null==n?[]:tr(n,Ca(n))},Mr.without=oo,Mr.words=Xa,Mr.wrap=function(n,t){return Wo(mu(t),n)},Mr.xor=ao,Mr.xorBy=co,Mr.xorWith=fo,Mr.zip=lo,Mr.zipObject=function(n,t){return du(n||[],t||[],re)},Mr.zipObjectDeep=function(n,t){return du(n||[],t||[],nu)},Mr.zipWith=so,Mr.entries=Ua,Mr.entriesIn=$a,Mr.extend=ba,Mr.extendWith=xa,cc(Mr,Mr),Mr.add=yc,Mr.attempt=Qa,Mr.camelCase=Na,Mr.capitalize=Pa,Mr.ceil=mc,Mr.clamp=function(n,t,r){return r===u&&(r=t,t=u),r!==u&&(r=(r=da(r))==r?r:0),t!==u&&(t=(t=da(t))==t?t:0),ce(da(n),t,r)},Mr.clone=function(n){return fe(n,4)},Mr.cloneDeep=function(n){return fe(n,5)},Mr.cloneDeepWith=function(n,t){return fe(n,5,t="function"==typeof t?t:u)},Mr.cloneWith=function(n,t){return fe(n,4,t="function"==typeof t?t:u)},Mr.conformsTo=function(n,t){return null==t||le(n,t,za(t))},Mr.deburr=qa,Mr.defaultTo=function(n,t){return null==n||n!=n?t:n},Mr.divide=wc,Mr.endsWith=function(n,t,r){n=ma(n),t=lu(t);var e=n.length,i=r=r===u?e:ce(_a(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},Mr.eq=Mo,Mr.escape=function(n){return(n=ma(n))&&H.test(n)?n.replace(G,or):n},Mr.escapeRegExp=function(n){return(n=ma(n))&&on.test(n)?n.replace(un,"\\$&"):n},Mr.every=function(n,t,r){var e=Zo(n)?zt:_e;return r&&wi(n,t,r)&&(t=u),e(n,fi(t,3))},Mr.find=go,Mr.findIndex=Pi,Mr.findKey=function(n,t){return Nt(n,fi(t,3),be)},Mr.findLast=yo,Mr.findLastIndex=qi,Mr.findLastKey=function(n,t){return Nt(n,fi(t,3),xe)},Mr.floor=bc,Mr.forEach=mo,Mr.forEachRight=wo,Mr.forIn=function(n,t){return null==n?n:me(n,fi(t,3),Ca)},Mr.forInRight=function(n,t){return null==n?n:we(n,fi(t,3),Ca)},Mr.forOwn=function(n,t){return n&&be(n,fi(t,3))},Mr.forOwnRight=function(n,t){return n&&xe(n,fi(t,3))},Mr.get=ka,Mr.gt=No,Mr.gte=Po,Mr.has=function(n,t){return null!=n&&gi(n,t,Oe)},Mr.hasIn=Oa,Mr.head=Ji,Mr.identity=uc,Mr.includes=function(n,t,r,e){n=Ko(n)?n:Ma(n),r=r&&!e?_a(r):0;var u=n.length;return r<0&&(r=mr(u+r,0)),ca(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&qt(n,t,r)>-1},Mr.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:_a(r);return u<0&&(u=mr(e+u,0)),qt(n,t,u)},Mr.inRange=function(n,t,r){return t=va(t),r===u?(r=t,t=0):r=va(r),function(n,t,r){return n>=wr(t,r)&&n=-9007199254740991&&n<=v},Mr.isSet=aa,Mr.isString=ca,Mr.isSymbol=fa,Mr.isTypedArray=la,Mr.isUndefined=function(n){return n===u},Mr.isWeakMap=function(n){return ra(n)&&_i(n)==C},Mr.isWeakSet=function(n){return ra(n)&&"[object WeakSet]"==Ee(n)},Mr.join=function(n,t){return null==n?"":Mt.call(n,t)},Mr.kebabCase=Za,Mr.last=Vi,Mr.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e;return r!==u&&(i=(i=_a(r))<0?mr(e+i,0):wr(i,e-1)),t==t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,i):Pt(n,Jt,i,!0)},Mr.lowerCase=Ja,Mr.lowerFirst=Ka,Mr.lt=sa,Mr.lte=ha,Mr.max=function(n){return n&&n.length?ge(n,uc,ke):u},Mr.maxBy=function(n,t){return n&&n.length?ge(n,fi(t,2),ke):u},Mr.mean=function(n){return Kt(n,uc)},Mr.meanBy=function(n,t){return Kt(n,fi(t,2))},Mr.min=function(n){return n&&n.length?ge(n,uc,Ue):u},Mr.minBy=function(n,t){return n&&n.length?ge(n,fi(t,2),Ue):u},Mr.stubArray=gc,Mr.stubFalse=dc,Mr.stubObject=function(){return{}},Mr.stubString=function(){return""},Mr.stubTrue=function(){return!0},Mr.multiply=jc,Mr.nth=function(n,t){return n&&n.length?qe(n,_a(t)):u},Mr.noConflict=function(){return gt._===this&&(gt._=Nn),this},Mr.noop=fc,Mr.now=ko,Mr.pad=function(n,t,r){n=ma(n);var e=(t=_a(t))?vr(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return Zu(dt(u),r)+n+Zu(_t(u),r)},Mr.padEnd=function(n,t,r){n=ma(n);var e=(t=_a(t))?vr(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var i=jr();return wr(n+i*(t-n+ht("1e-"+((i+"").length-1))),t)}return Ge(n,t)},Mr.reduce=function(n,t,r){var e=Zo(n)?Wt:Vt,u=arguments.length<3;return e(n,fi(t,4),r,u,pe)},Mr.reduceRight=function(n,t,r){var e=Zo(n)?Ut:Vt,u=arguments.length<3;return e(n,fi(t,4),r,u,ve)},Mr.repeat=function(n,t,r){return t=(r?wi(n,t,r):t===u)?1:_a(t),Ve(ma(n),t)},Mr.replace=function(){var n=arguments,t=ma(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Mr.result=function(n,t,r){var e=-1,i=(t=wu(t,n)).length;for(i||(i=1,n=u);++ev)return[];var r=g,e=wr(n,g);t=fi(t),n-=g;for(var u=Xt(e,t);++r=o)return n;var c=r-vr(e);if(c<1)return e;var f=a?xu(a,0,c).join(""):n.slice(0,c);if(i===u)return f+e;if(a&&(c+=f.length-c),oa(i)){if(n.slice(c).search(i)){var l,s=f;for(i.global||(i=Bn(i.source,ma(gn.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;f=f.slice(0,h===u?c:h)}}else if(n.indexOf(lu(i),c)!=c){var p=f.lastIndexOf(i);p>-1&&(f=f.slice(0,p))}return f+e},Mr.unescape=function(n){return(n=ma(n))&&V.test(n)?n.replace(Y,dr):n},Mr.uniqueId=function(n){var t=++Wn;return ma(n)+t},Mr.upperCase=Va,Mr.upperFirst=Ha,Mr.each=mo,Mr.eachRight=wo,Mr.first=Ji,cc(Mr,(xc={},be(Mr,(function(n,t){Tn.call(Mr.prototype,t)||(xc[t]=n)})),xc),{chain:!1}),Mr.VERSION="4.17.21",St(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Mr[n].placeholder=Mr})),St(["drop","take"],(function(n,t){Zr.prototype[n]=function(r){r=r===u?1:mr(_a(r),0);var e=this.__filtered__&&!t?new Zr(this):this.clone();return e.__filtered__?e.__takeCount__=wr(r,e.__takeCount__):e.__views__.push({size:wr(r,g),type:n+(e.__dir__<0?"Right":"")}),e},Zr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),St(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Zr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:fi(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),St(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Zr.prototype[n]=function(){return this[r](1).value()[0]}})),St(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Zr.prototype[n]=function(){return this.__filtered__?new Zr(this):this[r](1)}})),Zr.prototype.compact=function(){return this.filter(uc)},Zr.prototype.find=function(n){return this.filter(n).head()},Zr.prototype.findLast=function(n){return this.reverse().find(n)},Zr.prototype.invokeMap=He((function(n,t){return"function"==typeof n?new Zr(this):this.map((function(r){return Re(r,n,t)}))})),Zr.prototype.reject=function(n){return this.filter(Lo(fi(n)))},Zr.prototype.slice=function(n,t){n=_a(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Zr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==u&&(r=(t=_a(t))<0?r.dropRight(-t):r.take(t-n)),r)},Zr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Zr.prototype.toArray=function(){return this.take(g)},be(Zr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=Mr[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(Mr.prototype[t]=function(){var t=this.__wrapped__,a=e?[1]:arguments,c=t instanceof Zr,f=a[0],l=c||Zo(t),s=function(n){var t=i.apply(Mr,Tt([n],a));return e&&h?t[0]:t};l&&r&&"function"==typeof f&&1!=f.length&&(c=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=c&&!p;if(!o&&l){t=_?t:new Zr(this);var g=n.apply(t,a);return g.__actions__.push({func:po,args:[s],thisArg:u}),new qr(g,h)}return v&&_?n.apply(this,a):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})})),St(["pop","push","shift","sort","splice","unshift"],(function(n){var t=zn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Mr.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Zo(u)?u:[],n)}return this[r]((function(r){return t.apply(Zo(r)?r:[],n)}))}})),be(Zr.prototype,(function(n,t){var r=Mr[t];if(r){var e=r.name+"";Tn.call(zr,e)||(zr[e]=[]),zr[e].push({name:t,func:r})}})),zr[Mu(u,2).name]=[{name:"wrapper",func:u}],Zr.prototype.clone=function(){var n=new Zr(this.__wrapped__);return n.__actions__=Su(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Su(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Su(this.__views__),n},Zr.prototype.reverse=function(){if(this.__filtered__){var n=new Zr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Zr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Zo(n),e=t<0,u=r?n.length:0,i=function(n,t,r){var e=-1,u=r.length;for(;++e=this.__values__.length;return{done:n,value:n?u:this.__values__[this.__index__++]}},Mr.prototype.plant=function(n){for(var t,r=this;r instanceof Pr;){var e=Ui(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},Mr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Zr){var t=n;return this.__actions__.length&&(t=new Zr(this)),(t=t.reverse()).__actions__.push({func:po,args:[no],thisArg:u}),new qr(t,this.__chain__)}return this.thru(no)},Mr.prototype.toJSON=Mr.prototype.valueOf=Mr.prototype.value=function(){return _u(this.__wrapped__,this.__actions__)},Mr.prototype.first=Mr.prototype.head,Qn&&(Mr.prototype[Qn]=function(){return this}),Mr}();gt._=yr,(e=function(){return yr}.call(t,r,t,n))===u||(n.exports=e)}.call(this)},625:(n,t,r)=>{"use strict";r.d(t,{Fc:()=>l,NO:()=>c,O:()=>s,YD:()=>o,g5:()=>h,gB:()=>i,gf:()=>a});var e=r(486),u=r.n(e);function i(n,t=1){if(Math.abs(n)<1024)return n+" B";const r=["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let e=-1;const u=10**t;do{n/=1024,++e}while(Math.round(Math.abs(n)*u)/u>=1024&&e1?"s":"";let i=`${e}
${t} total
${`${n.n_allocations} allocation${u}`}`;return!1===r&&(i=i.concat(`
Thread ID: ${n.thread_id}`)),i}function c(n,t){return function(n,t){let r=u().cloneDeep(n.children);const e=u().filter(r,(function n(r){return r.children&&r.children.length>0&&(r.children=u().filter(r.children,n)),t(r)}));return u().defaults({children:e},n)}(n,(n=>n.thread_id===t))}function f(n,t){function r(n){let e=[];if(t(n)){e=[];for(const t of n.children)e.push(...r(t));let t=u().clone(n);t.children=e,e=[t]}else for(const t of n.children)e.push(...r(t));return e}let e=[];for(let t of n.children)e.push(...r(t));return u().defaults({children:e},n)}function l(n){return f(n,(n=>n.interesting))}function s(n){return f(n,(n=>!n.import_system))}function h(n){return u().reduce(n,((n,t)=>(n.n_allocations+=t.n_allocations,n.value+=t.value,n)),{n_allocations:0,value:0})}},501:(n,t,r)=>{"use strict";r.d(t,{Cd:()=>f,Ji:()=>g,N4:()=>x,Xx:()=>v,YX:()=>l,Z1:()=>b,bf:()=>d,cW:()=>A,ib:()=>m,sO:()=>w});var e=r(625);const u="filter_uninteresting",i="filter_import_system",o="filter_thread";var a=null;let c=new class{constructor(){this.filters={}}registerFilter(n,t){this.filters[n]=t}unRegisterFilter(n){delete this.filters[n]}drawChart(n){let t=n;_.forOwn(this.filters,(n=>{t=n(t)})),function(n){a&&(a.destroy(),d3.selectAll(".d3-flame-graph-tip").remove());a=flamegraph().width(y()).transitionDuration(250).transitionEase(d3.easeCubic).inverted(!0).cellHeight(20).minFrameSize(2).setColorMapper(j).onClick(p).tooltip(d3.tip().attr("class","d3-flame-graph-tip").html((n=>{const t=(0,e.gB)(n.data.value);return(0,e.gf)(n.data,t,merge_threads)})).direction((n=>{const t=(n.x1+n.x0)/2;return.25.25?"w":"n"}))),d3.select("#chart").datum(n).call(a),a.width(y())}(t),a.merge([])}};function f(){return a}function l(){return c}function s(){return location.hash?parseInt(location.hash.substring(1),10):0}function h(){document.getElementById("resetZoomButton").disabled=0==s()}function p(n){n.id!=s()&&(history.pushState({id:n.id},n.data.name,`#${n.id}`),h())}function v(){const n=s(),t=a.findById(n);t&&(a.zoomTo(t),h())}function g(){a.inverted(!a.inverted()),a.resetZoom()}function d(){a.resetZoom()}function y(){return document.getElementById("chart").clientWidth}function m(){c.drawChart(data),location.hash&&v()}function w(){const n=this.dataset.thread;"-0x1"===n?c.unRegisterFilter(o):c.registerFilter(o,(t=>{let r=(0,e.NO)(t,n);const u=(0,e.g5)(r.children);return _.defaults(u,r),r.n_allocations=u.n_allocations,r.value=u.value,r})),c.drawChart(data)}function b(){void 0===this.hideUninterestingFrames&&(this.hideUninterestingFrames=!0),!0===this.hideUninterestingFrames?(this.hideUninterestingFrames=!0,c.registerFilter(u,(n=>(0,e.Fc)(n)))):c.unRegisterFilter(u),this.hideUninterestingFrames=!this.hideUninterestingFrames,c.drawChart(data)}function x(){void 0===this.hideImportSystemFrames&&(this.hideImportSystemFrames=!0),!0===this.hideImportSystemFrames?(this.hideImportSystemFrames=!0,inverted?data=invertedNoImportsData:c.registerFilter(i,(n=>(0,e.O)(n)))):(c.unRegisterFilter(i),inverted&&(data=flamegraphData)),this.hideImportSystemFrames=!this.hideImportSystemFrames,c.drawChart(data)}function j(n,t){return n.highlight?"orange":n.data.name&&n.data.location?(e=n.data.location[1],"py"==(r=void 0===e?e:e.substring(e.lastIndexOf(".")+1,e.length)||e)?d3.schemePastel1[2]:"c"==r||"cpp"==r||"h"==r?d3.schemePastel1[5]:d3.schemePastel1[8]):"#EEE";var r,e}function A(n,t){if(!0===t)return;const r=n.unique_threads;if(!r||r.length<=1)return;document.getElementById("threadsDropdown").removeAttribute("hidden");const e=document.getElementById("threadsDropdownList");for(const n of r){let t=document.createElement("a");t.className="dropdown-item",t.dataset.thread=n,t.text=n,t.onclick=w,e.appendChild(t)}}}},t={};function r(e){var u=t[e];if(void 0!==u)return u.exports;var i=t[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return r.d(t,{a:t}),t},r.d=(n,t)=>{for(var e in t)r.o(t,e)&&!r.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),r.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),r.nmd=n=>(n.paths=[],n.children||(n.children=[]),n),(()=>{"use strict";var n=r(625),t=r(501),e=null,u=null,i=function(){let n=new Array(packed_data.nodes.children.length);console.log("finding parent index for each node");for(const[t,r]of packed_data.nodes.children.entries())r.forEach((r=>n[r]=t));return console.assert(void 0===n[0],"root node has a parent"),n}();function o(n){console.log("refreshing flame graph!");let r=function(n){console.log("getRangeData");let t={};if(n.hasOwnProperty("xaxis.range[0]"))t={string1:n["xaxis.range[0]"],string2:n["xaxis.range[1]"]};else if(n.hasOwnProperty("xaxis.range"))t={string1:n["xaxis.range"][0],string2:n["xaxis.range"][1]};else{if(null===e)return;{let n=e.layout.xaxis.range;t={string1:n[0],string2:n[1]}}}return t}(n);if(console.log("range data: "+JSON.stringify(r)),null!=u&&JSON.stringify(r)===JSON.stringify(u))return;console.log("showing loading animation"),console.log("showLoadingAnimation"),document.getElementById("loading").style.display="block",document.getElementById("overlay").style.display="block",u=r,console.log("finding range of relevant snapshot");let o=0,a=memory_records.length;if(r){const n=new Date(r.string1).getTime(),t=memory_records.findIndex((t=>t[0]>=n));-1!=t&&(o=t);const e=new Date(r.string2).getTime(),u=memory_records.findIndex((n=>n[0]>e));-1!=u&&(a=u)}console.log("start index is "+o),console.log("end index is "+a),console.log("first possible index is 0"),console.log("last possible index is "+memory_records.length),console.log("constructing tree"),data=function(n,t,r){const{strings:e,nodes:u,unique_threads:o}=n;console.log("constructing nodes");const a=u.name.map(((n,t)=>({name:e[u.name[t]],location:[e[u.function[t]],e[u.filename[t]],u.lineno[t]],value:0,children:u.children[t],n_allocations:0,thread_id:e[u.thread_id[t]],interesting:0!==u.interesting[t],import_system:0!==u.import_system[t]})));console.log("mapping child indices to child nodes");for(const[n,t]of a.entries())t.children=t.children.map((n=>a[n]));const c=n.high_water_mark_by_snapshot;if(c){console.log("finding highest high water mark in range");let e=t,u=c[t];for(let n=t;n<=r;++n)c[n]>u&&(u=c[n],e=n);console.log("highest water mark between "+t+" and "+r+" is "+u+" at "+e);let o,f,l={shapes:[]};e==memory_records.length?(l["xaxis.range[1]"]=new Date(memory_records.at(-1)[0]+10),o=new Date(memory_records.at(-1)[0]),f=new Date(memory_records.at(-1)[0]+10)):0==e?(l["xaxis.range[0]"]=new Date(memory_records[0][0]-10),o=new Date(memory_records[0][0]-10),f=new Date(memory_records[0][0])):(o=new Date(memory_records[e-1][0]),f=new Date(memory_records[e][0])),l.shapes=[{type:"rect",xref:"x",yref:"paper",x0:o,y0:0,x1:f,y1:1,fillcolor:"#fbff00",opacity:.2,line:{width:0}}],Plotly.relayout("plot",l),console.log("finding hwm allocations"),n.intervals.forEach((n=>{let[t,r,u,o,c]=n;if(t<=e&&(null===r||r>e))for(;void 0!==u;)a[u].n_allocations+=o,a[u].value+=c,u=i[u]}))}else console.log("finding leaked allocations"),n.intervals.forEach((n=>{let[e,u,o,c,f]=n;if(e>=t&&e<=r&&(null===u||u>r))for(;void 0!==o;)a[o].n_allocations+=c,a[o].value+=f,o=i[o]}));return console.log("total allocations in range: "+a[0].n_allocations),console.log("total bytes in range: "+a[0].value),a.forEach((n=>{n.children=n.children.filter((n=>n.n_allocations>0))})),a[0]}(packed_data,o,a),console.log("drawing chart"),(0,t.YX)().drawChart(data),console.log("hiding loading animation"),console.log("hideLoadingAnimation"),document.getElementById("loading").style.display="none",document.getElementById("overlay").style.display="none"}var a=null;function c(n){console.log("refreshFlamegraphDebounced"),a&&clearTimeout(a),a=setTimeout((function(){o(n)}),500)}document.addEventListener("DOMContentLoaded",(function(){console.log("main");const r=packed_data.unique_threads.map((n=>packed_data.strings[n]));(0,t.cW)({unique_threads:r},merge_threads),function(n){console.log("init memory graph");const t=n.map((n=>new Date(n[0]))),r=n.map((n=>n[1])),u=n.map((n=>n[2])),i=n.length>1?"lines":"markers";var o=[{x:t,y:r,mode:i,name:"Resident size"},{x:t,y:u,mode:i,name:"Heap size"}];Plotly.newPlot("plot",o,{xaxis:{title:{text:"Time"},rangeslider:{visible:!0}},yaxis:{title:{text:"Memory Size"},tickformat:".4~s",exponentformat:"B",ticksuffix:"B"}},{responsive:!0,displayModeBar:!1}).then((n=>{console.assert(null===e),e=n}))}(memory_records),o({}),location.hash&&(0,t.Xx)(),document.getElementById("invertButton").onclick=t.Ji,document.getElementById("resetZoomButton").onclick=t.bf,document.getElementById("resetThreadFilterItem").onclick=t.sO,document.getElementById("hideUninteresting").onclick=t.Z1.bind(this),document.getElementById("hideImportSystem").onclick=t.N4.bind(this),t.Z1.bind(this)(),document.onkeyup=n=>{"Escape"==n.code&&(0,t.bf)()},document.getElementById("searchTerm").addEventListener("input",(()=>{const n=document.getElementById("searchTerm");(0,t.Cd)().search(n.value)})),window.addEventListener("popstate",t.Xx),window.addEventListener("resize",(0,n.YD)(t.ib)),$('[data-toggle-second="tooltip"]').tooltip(),$('[data-toggle="tooltip"]').tooltip(),console.log("setup reload handler"),document.getElementById("plot").on("plotly_relayout",c),[].slice.call(document.querySelectorAll(".toast")).map((function(n){return new bootstrap.Toast(n,{delay:1e4})})).forEach((n=>n.show()))}))})()})(); \ No newline at end of file + */n=r.nmd(n),function(){var i,u="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",c=16,f=32,l=64,s=128,h=256,p=1/0,v=9007199254740991,d=NaN,_=4294967295,g=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",f],["partialRight",l],["rearg",h]],y="[object Arguments]",m="[object Array]",w="[object Boolean]",b="[object Date]",x="[object Error]",I="[object Function]",j="[object GeneratorFunction]",A="[object Map]",E="[object Number]",k="[object Object]",O="[object Promise]",B="[object RegExp]",S="[object Set]",R="[object String]",z="[object Symbol]",D="[object WeakMap]",C="[object ArrayBuffer]",F="[object DataView]",L="[object Float32Array]",T="[object Float64Array]",N="[object Int8Array]",W="[object Int16Array]",U="[object Int32Array]",$="[object Uint8Array]",M="[object Uint8ClampedArray]",P="[object Uint16Array]",q="[object Uint32Array]",Z=/\b__p \+= '';/g,J=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,V=RegExp(Y.source),H=RegExp(G.source),X=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,en=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,on=RegExp(un.source),an=/^\s+/,cn=/\s/,fn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ln=/\{\n\/\* \[wrapped with (.+)\] \*/,sn=/,? & /,hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,dn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_n=/\w*$/,gn=/^[-+]0x[0-9a-f]+$/i,yn=/^0b[01]+$/i,mn=/^\[object .+?Constructor\]$/,wn=/^0o[0-7]+$/i,bn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,In=/($^)/,jn=/['\n\r\u2028\u2029\\]/g,An="\\ud800-\\udfff",En="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",kn="\\u2700-\\u27bf",On="a-z\\xdf-\\xf6\\xf8-\\xff",Bn="A-Z\\xc0-\\xd6\\xd8-\\xde",Sn="\\ufe0e\\ufe0f",Rn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",zn="['’]",Dn="["+An+"]",Cn="["+Rn+"]",Fn="["+En+"]",Ln="\\d+",Tn="["+kn+"]",Nn="["+On+"]",Wn="[^"+An+Rn+Ln+kn+On+Bn+"]",Un="\\ud83c[\\udffb-\\udfff]",$n="[^"+An+"]",Mn="(?:\\ud83c[\\udde6-\\uddff]){2}",Pn="[\\ud800-\\udbff][\\udc00-\\udfff]",qn="["+Bn+"]",Zn="\\u200d",Jn="(?:"+Nn+"|"+Wn+")",Kn="(?:"+qn+"|"+Wn+")",Yn="(?:['’](?:d|ll|m|re|s|t|ve))?",Gn="(?:['’](?:D|LL|M|RE|S|T|VE))?",Vn="(?:"+Fn+"|"+Un+")"+"?",Hn="["+Sn+"]?",Xn=Hn+Vn+("(?:"+Zn+"(?:"+[$n,Mn,Pn].join("|")+")"+Hn+Vn+")*"),Qn="(?:"+[Tn,Mn,Pn].join("|")+")"+Xn,nt="(?:"+[$n+Fn+"?",Fn,Mn,Pn,Dn].join("|")+")",tt=RegExp(zn,"g"),rt=RegExp(Fn,"g"),et=RegExp(Un+"(?="+Un+")|"+nt+Xn,"g"),it=RegExp([qn+"?"+Nn+"+"+Yn+"(?="+[Cn,qn,"$"].join("|")+")",Kn+"+"+Gn+"(?="+[Cn,qn+Jn,"$"].join("|")+")",qn+"?"+Jn+"+"+Yn,qn+"+"+Gn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ln,Qn].join("|"),"g"),ut=RegExp("["+Zn+An+En+Sn+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["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"],ct=-1,ft={};ft[L]=ft[T]=ft[N]=ft[W]=ft[U]=ft[$]=ft[M]=ft[P]=ft[q]=!0,ft[y]=ft[m]=ft[C]=ft[w]=ft[F]=ft[b]=ft[x]=ft[I]=ft[A]=ft[E]=ft[k]=ft[B]=ft[S]=ft[R]=ft[D]=!1;var lt={};lt[y]=lt[m]=lt[C]=lt[F]=lt[w]=lt[b]=lt[L]=lt[T]=lt[N]=lt[W]=lt[U]=lt[A]=lt[E]=lt[k]=lt[B]=lt[S]=lt[R]=lt[z]=lt[$]=lt[M]=lt[P]=lt[q]=!0,lt[x]=lt[I]=lt[D]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ht=parseFloat,pt=parseInt,vt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,dt="object"==typeof self&&self&&self.Object===Object&&self,_t=vt||dt||Function("return this")(),gt=t&&!t.nodeType&&t,yt=gt&&n&&!n.nodeType&&n,mt=yt&&yt.exports===gt,wt=mt&&vt.process,bt=function(){try{var n=yt&&yt.require&&yt.require("util").types;return n||wt&&wt.binding&&wt.binding("util")}catch(n){}}(),xt=bt&&bt.isArrayBuffer,It=bt&&bt.isDate,jt=bt&&bt.isMap,At=bt&&bt.isRegExp,Et=bt&&bt.isSet,kt=bt&&bt.isTypedArray;function Ot(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function Bt(n,t,r,e){for(var i=-1,u=null==n?0:n.length;++i-1}function Ft(n,t,r){for(var e=-1,i=null==n?0:n.length;++e-1;);return r}function ir(n,t){for(var r=n.length;r--&&qt(t,n[r],0)>-1;);return r}var ur=Gt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),or=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ar(n){return"\\"+st[n]}function cr(n){return ut.test(n)}function fr(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function lr(n,t){return function(r){return n(t(r))}}function sr(n,t){for(var r=-1,e=n.length,i=0,u=[];++r",""":'"',"'":"'"});var yr=function n(t){var r,e=(t=null==t?_t:yr.defaults(_t.Object(),t,yr.pick(_t,at))).Array,cn=t.Date,An=t.Error,En=t.Function,kn=t.Math,On=t.Object,Bn=t.RegExp,Sn=t.String,Rn=t.TypeError,zn=e.prototype,Dn=En.prototype,Cn=On.prototype,Fn=t["__core-js_shared__"],Ln=Dn.toString,Tn=Cn.hasOwnProperty,Nn=0,Wn=(r=/[^.]+$/.exec(Fn&&Fn.keys&&Fn.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Un=Cn.toString,$n=Ln.call(On),Mn=_t._,Pn=Bn("^"+Ln.call(Tn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qn=mt?t.Buffer:i,Zn=t.Symbol,Jn=t.Uint8Array,Kn=qn?qn.allocUnsafe:i,Yn=lr(On.getPrototypeOf,On),Gn=On.create,Vn=Cn.propertyIsEnumerable,Hn=zn.splice,Xn=Zn?Zn.isConcatSpreadable:i,Qn=Zn?Zn.iterator:i,nt=Zn?Zn.toStringTag:i,et=function(){try{var n=hu(On,"defineProperty");return n({},"",{}),n}catch(n){}}(),ut=t.clearTimeout!==_t.clearTimeout&&t.clearTimeout,st=cn&&cn.now!==_t.Date.now&&cn.now,vt=t.setTimeout!==_t.setTimeout&&t.setTimeout,dt=kn.ceil,gt=kn.floor,yt=On.getOwnPropertySymbols,wt=qn?qn.isBuffer:i,bt=t.isFinite,$t=zn.join,Gt=lr(On.keys,On),mr=kn.max,wr=kn.min,br=cn.now,xr=t.parseInt,Ir=kn.random,jr=zn.reverse,Ar=hu(t,"DataView"),Er=hu(t,"Map"),kr=hu(t,"Promise"),Or=hu(t,"Set"),Br=hu(t,"WeakMap"),Sr=hu(On,"create"),Rr=Br&&new Br,zr={},Dr=Nu(Ar),Cr=Nu(Er),Fr=Nu(kr),Lr=Nu(Or),Tr=Nu(Br),Nr=Zn?Zn.prototype:i,Wr=Nr?Nr.valueOf:i,Ur=Nr?Nr.toString:i;function $r(n){if(ra(n)&&!Zo(n)&&!(n instanceof Zr)){if(n instanceof qr)return n;if(Tn.call(n,"__wrapped__"))return Wu(n)}return new qr(n)}var Mr=function(){function n(){}return function(t){if(!ta(t))return{};if(Gn)return Gn(t);n.prototype=t;var r=new n;return n.prototype=i,r}}();function Pr(){}function qr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Zr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=_,this.__views__=[]}function Jr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function fe(n,t,r,e,u,o){var a,c=1&t,f=2&t,l=4&t;if(r&&(a=u?r(n,e,u,o):r(n)),a!==i)return a;if(!ta(n))return n;var s=Zo(n);if(s){if(a=function(n){var t=n.length,r=new n.constructor(t);t&&"string"==typeof n[0]&&Tn.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!c)return Si(n,a)}else{var h=du(n),p=h==I||h==j;if(Go(n))return ji(n,c);if(h==k||h==y||p&&!u){if(a=f||p?{}:gu(n),!c)return f?function(n,t){return Ri(n,vu(n),t)}(n,function(n,t){return n&&Ri(t,Da(t),n)}(a,n)):function(n,t){return Ri(n,pu(n),t)}(n,ue(a,n))}else{if(!lt[h])return u?n:{};a=function(n,t,r){var e=n.constructor;switch(t){case C:return Ai(n);case w:case b:return new e(+n);case F:return function(n,t){var r=t?Ai(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case L:case T:case N:case W:case U:case $:case M:case P:case q:return Ei(n,r);case A:return new e;case E:case R:return new e(n);case B:return function(n){var t=new n.constructor(n.source,_n.exec(n));return t.lastIndex=n.lastIndex,t}(n);case S:return new e;case z:return i=n,Wr?On(Wr.call(i)):{}}var i}(n,h,c)}}o||(o=new Vr);var v=o.get(n);if(v)return v;o.set(n,a),aa(n)?n.forEach((function(e){a.add(fe(e,t,r,e,n,o))})):ea(n)&&n.forEach((function(e,i){a.set(i,fe(e,t,r,i,n,o))}));var d=s?i:(l?f?uu:iu:f?Da:za)(n);return St(d||n,(function(e,i){d&&(e=n[i=e]),re(a,i,fe(e,t,r,i,n,o))})),a}function le(n,t,r){var e=r.length;if(null==n)return!e;for(n=On(n);e--;){var u=r[e],o=t[u],a=n[u];if(a===i&&!(u in n)||!o(a))return!1}return!0}function se(n,t,r){if("function"!=typeof n)throw new Rn(u);return Ru((function(){n.apply(i,r)}),t)}function he(n,t,r,e){var i=-1,u=Ct,o=!0,a=n.length,c=[],f=t.length;if(!a)return c;r&&(t=Lt(t,nr(r))),e?(u=Ft,o=!1):t.length>=200&&(u=rr,o=!1,t=new Gr(t));n:for(;++i-1},Kr.prototype.set=function(n,t){var r=this.__data__,e=ee(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Yr.prototype.clear=function(){this.size=0,this.__data__={hash:new Jr,map:new(Er||Kr),string:new Jr}},Yr.prototype.delete=function(n){var t=lu(this,n).delete(n);return this.size-=t?1:0,t},Yr.prototype.get=function(n){return lu(this,n).get(n)},Yr.prototype.has=function(n){return lu(this,n).has(n)},Yr.prototype.set=function(n,t){var r=lu(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Gr.prototype.add=Gr.prototype.push=function(n){return this.__data__.set(n,o),this},Gr.prototype.has=function(n){return this.__data__.has(n)},Vr.prototype.clear=function(){this.__data__=new Kr,this.size=0},Vr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Vr.prototype.get=function(n){return this.__data__.get(n)},Vr.prototype.has=function(n){return this.__data__.has(n)},Vr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Kr){var e=r.__data__;if(!Er||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Yr(e)}return r.set(n,t),this.size=r.size,this};var pe=Ci(be),ve=Ci(xe,!0);function de(n,t){var r=!0;return pe(n,(function(n,e,i){return r=!!t(n,e,i)})),r}function _e(n,t,r){for(var e=-1,u=n.length;++e0&&r(a)?t>1?ye(a,t-1,r,e,i):Tt(i,a):e||(i[i.length]=a)}return i}var me=Fi(),we=Fi(!0);function be(n,t){return n&&me(n,t,za)}function xe(n,t){return n&&we(n,t,za)}function Ie(n,t){return Dt(t,(function(t){return Xo(n[t])}))}function je(n,t){for(var r=0,e=(t=wi(t,n)).length;null!=n&&rt}function Oe(n,t){return null!=n&&Tn.call(n,t)}function Be(n,t){return null!=n&&t in On(n)}function Se(n,t,r){for(var u=r?Ft:Ct,o=n[0].length,a=n.length,c=a,f=e(a),l=1/0,s=[];c--;){var h=n[c];c&&t&&(h=Lt(h,nr(t))),l=wr(h.length,l),f[c]=!r&&(t||o>=120&&h.length>=120)?new Gr(c&&h):i}h=n[0];var p=-1,v=f[0];n:for(;++p=a?c:c*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}))}function Je(n,t,r){for(var e=-1,i=t.length,u={};++e-1;)a!==n&&Hn.call(a,c,1),Hn.call(n,c,1);return n}function Ye(n,t){for(var r=n?t.length:0,e=r-1;r--;){var i=t[r];if(r==e||i!==u){var u=i;mu(i)?Hn.call(n,i,1):hi(n,i)}}return n}function Ge(n,t){return n+gt(Ir()*(t-n+1))}function Ve(n,t){var r="";if(!n||t<1||t>v)return r;do{t%2&&(r+=n),(t=gt(t/2))&&(n+=n)}while(t);return r}function He(n,t){return zu(ku(n,t,ic),n+"")}function Xe(n){return Xr($a(n))}function Qe(n,t){var r=$a(n);return Fu(r,ce(t,0,r.length))}function ni(n,t,r,e){if(!ta(n))return n;for(var u=-1,o=(t=wi(t,n)).length,a=o-1,c=n;null!=c&&++uu?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var o=e(u);++i>>1,o=n[u];null!==o&&!fa(o)&&(r?o<=t:o=200){var f=t?null:Vi(n);if(f)return hr(f);o=!1,i=rr,c=new Gr}else c=t?[]:a;n:for(;++e=e?n:ii(n,t,r)}var Ii=ut||function(n){return _t.clearTimeout(n)};function ji(n,t){if(t)return n.slice();var r=n.length,e=Kn?Kn(r):new n.constructor(r);return n.copy(e),e}function Ai(n){var t=new n.constructor(n.byteLength);return new Jn(t).set(new Jn(n)),t}function Ei(n,t){var r=t?Ai(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function ki(n,t){if(n!==t){var r=n!==i,e=null===n,u=n==n,o=fa(n),a=t!==i,c=null===t,f=t==t,l=fa(t);if(!c&&!l&&!o&&n>t||o&&a&&f&&!c&&!l||e&&a&&f||!r&&f||!u)return 1;if(!e&&!o&&!l&&n1?r[u-1]:i,a=u>2?r[2]:i;for(o=n.length>3&&"function"==typeof o?(u--,o):i,a&&wu(r[0],r[1],a)&&(o=u<3?i:o,u=1),t=On(t);++e-1?u[o?t[a]:a]:i}}function Ui(n){return eu((function(t){var r=t.length,e=r,o=qr.prototype.thru;for(n&&t.reverse();e--;){var a=t[e];if("function"!=typeof a)throw new Rn(u);if(o&&!c&&"wrapper"==au(a))var c=new qr([],!0)}for(e=c?e:r;++e1&&w.reverse(),p&&lc))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new Gr:i;for(o.set(n,t),o.set(t,n);++h-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(fn,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return St(g,(function(r){var e="_."+r[0];t&r[1]&&!Ct(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(ln);return t?t[1].split(sn):[]}(e),r)))}function Cu(n){var t=0,r=0;return function(){var e=br(),u=16-(e-r);if(r=e,u>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(i,arguments)}}function Fu(n,t){var r=-1,e=n.length,u=e-1;for(t=t===i?e:t;++r1?n[t-1]:i;return r="function"==typeof r?(n.pop(),r):i,uo(n,r)}));function ho(n){var t=$r(n);return t.__chain__=!0,t}function po(n,t){return t(n)}var vo=eu((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,u=function(t){return ae(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Zr&&mu(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:po,args:[u],thisArg:i}),new qr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(i),n}))):this.thru(u)}));var _o=zi((function(n,t,r){Tn.call(n,r)?++n[r]:oe(n,r,1)}));var go=Wi(Pu),yo=Wi(qu);function mo(n,t){return(Zo(n)?St:pe)(n,fu(t,3))}function wo(n,t){return(Zo(n)?Rt:ve)(n,fu(t,3))}var bo=zi((function(n,t,r){Tn.call(n,r)?n[r].push(t):oe(n,r,[t])}));var xo=He((function(n,t,r){var i=-1,u="function"==typeof t,o=Ko(n)?e(n.length):[];return pe(n,(function(n){o[++i]=u?Ot(t,n,r):Re(n,t,r)})),o})),Io=zi((function(n,t,r){oe(n,r,t)}));function jo(n,t){return(Zo(n)?Lt:Ue)(n,fu(t,3))}var Ao=zi((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var Eo=He((function(n,t){if(null==n)return[];var r=t.length;return r>1&&wu(n,t[0],t[1])?t=[]:r>2&&wu(t[0],t[1],t[2])&&(t=[t[0]]),Ze(n,ye(t,1),[])})),ko=st||function(){return _t.Date.now()};function Oo(n,t,r){return t=r?i:t,t=n&&null==t?n.length:t,Xi(n,s,i,i,i,i,t)}function Bo(n,t){var r;if("function"!=typeof t)throw new Rn(u);return n=da(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=i),r}}var So=He((function(n,t,r){var e=1;if(r.length){var i=sr(r,cu(So));e|=f}return Xi(n,e,t,r,i)})),Ro=He((function(n,t,r){var e=3;if(r.length){var i=sr(r,cu(Ro));e|=f}return Xi(t,e,n,r,i)}));function zo(n,t,r){var e,o,a,c,f,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new Rn(u);function d(t){var r=e,u=o;return e=o=i,s=t,c=n.apply(u,r)}function _(n){var r=n-l;return l===i||r>=t||r<0||p&&n-s>=a}function g(){var n=ko();if(_(n))return y(n);f=Ru(g,function(n){var r=t-(n-l);return p?wr(r,a-(n-s)):r}(n))}function y(n){return f=i,v&&e?d(n):(e=o=i,c)}function m(){var n=ko(),r=_(n);if(e=arguments,o=this,l=n,r){if(f===i)return function(n){return s=n,f=Ru(g,t),h?d(n):c}(l);if(p)return Ii(f),f=Ru(g,t),d(l)}return f===i&&(f=Ru(g,t)),c}return t=ga(t)||0,ta(r)&&(h=!!r.leading,a=(p="maxWait"in r)?mr(ga(r.maxWait)||0,t):a,v="trailing"in r?!!r.trailing:v),m.cancel=function(){f!==i&&Ii(f),s=0,e=l=o=f=i},m.flush=function(){return f===i?c:y(ko())},m}var Do=He((function(n,t){return se(n,1,t)})),Co=He((function(n,t,r){return se(n,ga(t)||0,r)}));function Fo(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new Rn(u);var r=function(){var e=arguments,i=t?t.apply(this,e):e[0],u=r.cache;if(u.has(i))return u.get(i);var o=n.apply(this,e);return r.cache=u.set(i,o)||u,o};return r.cache=new(Fo.Cache||Yr),r}function Lo(n){if("function"!=typeof n)throw new Rn(u);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Fo.Cache=Yr;var To=bi((function(n,t){var r=(t=1==t.length&&Zo(t[0])?Lt(t[0],nr(fu())):Lt(ye(t,1),nr(fu()))).length;return He((function(e){for(var i=-1,u=wr(e.length,r);++i=t})),qo=ze(function(){return arguments}())?ze:function(n){return ra(n)&&Tn.call(n,"callee")&&!Vn.call(n,"callee")},Zo=e.isArray,Jo=xt?nr(xt):function(n){return ra(n)&&Ee(n)==C};function Ko(n){return null!=n&&na(n.length)&&!Xo(n)}function Yo(n){return ra(n)&&Ko(n)}var Go=wt||gc,Vo=It?nr(It):function(n){return ra(n)&&Ee(n)==b};function Ho(n){if(!ra(n))return!1;var t=Ee(n);return t==x||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!ua(n)}function Xo(n){if(!ta(n))return!1;var t=Ee(n);return t==I||t==j||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qo(n){return"number"==typeof n&&n==da(n)}function na(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=v}function ta(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function ra(n){return null!=n&&"object"==typeof n}var ea=jt?nr(jt):function(n){return ra(n)&&du(n)==A};function ia(n){return"number"==typeof n||ra(n)&&Ee(n)==E}function ua(n){if(!ra(n)||Ee(n)!=k)return!1;var t=Yn(n);if(null===t)return!0;var r=Tn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ln.call(r)==$n}var oa=At?nr(At):function(n){return ra(n)&&Ee(n)==B};var aa=Et?nr(Et):function(n){return ra(n)&&du(n)==S};function ca(n){return"string"==typeof n||!Zo(n)&&ra(n)&&Ee(n)==R}function fa(n){return"symbol"==typeof n||ra(n)&&Ee(n)==z}var la=kt?nr(kt):function(n){return ra(n)&&na(n.length)&&!!ft[Ee(n)]};var sa=Ki(We),ha=Ki((function(n,t){return n<=t}));function pa(n){if(!n)return[];if(Ko(n))return ca(n)?dr(n):Si(n);if(Qn&&n[Qn])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Qn]());var t=du(n);return(t==A?fr:t==S?hr:$a)(n)}function va(n){return n?(n=ga(n))===p||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function da(n){var t=va(n),r=t%1;return t==t?r?t-r:t:0}function _a(n){return n?ce(da(n),0,_):0}function ga(n){if("number"==typeof n)return n;if(fa(n))return d;if(ta(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=ta(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Qt(n);var r=yn.test(n);return r||wn.test(n)?pt(n.slice(2),r?2:8):gn.test(n)?d:+n}function ya(n){return Ri(n,Da(n))}function ma(n){return null==n?"":li(n)}var wa=Di((function(n,t){if(ju(t)||Ko(t))Ri(t,za(t),n);else for(var r in t)Tn.call(t,r)&&re(n,r,t[r])})),ba=Di((function(n,t){Ri(t,Da(t),n)})),xa=Di((function(n,t,r,e){Ri(t,Da(t),n,e)})),Ia=Di((function(n,t,r,e){Ri(t,za(t),n,e)})),ja=eu(ae);var Aa=He((function(n,t){n=On(n);var r=-1,e=t.length,u=e>2?t[2]:i;for(u&&wu(t[0],t[1],u)&&(e=1);++r1),t})),Ri(n,uu(n),r),e&&(r=fe(r,7,tu));for(var i=t.length;i--;)hi(r,t[i]);return r}));var Ta=eu((function(n,t){return null==n?{}:function(n,t){return Je(n,t,(function(t,r){return Oa(n,r)}))}(n,t)}));function Na(n,t){if(null==n)return{};var r=Lt(uu(n),(function(n){return[n]}));return t=fu(t),Je(n,r,(function(n,r){return t(n,r[0])}))}var Wa=Hi(za),Ua=Hi(Da);function $a(n){return null==n?[]:tr(n,za(n))}var Ma=Ti((function(n,t,r){return t=t.toLowerCase(),n+(r?Pa(t):t)}));function Pa(n){return Ha(ma(n).toLowerCase())}function qa(n){return(n=ma(n))&&n.replace(xn,ur).replace(rt,"")}var Za=Ti((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Ja=Ti((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Ka=Li("toLowerCase");var Ya=Ti((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Ga=Ti((function(n,t,r){return n+(r?" ":"")+Ha(t)}));var Va=Ti((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Ha=Li("toUpperCase");function Xa(n,t,r){return n=ma(n),(t=r?i:t)===i?function(n){return ot.test(n)}(n)?function(n){return n.match(it)||[]}(n):function(n){return n.match(hn)||[]}(n):n.match(t)||[]}var Qa=He((function(n,t){try{return Ot(n,i,t)}catch(n){return Ho(n)?n:new An(n)}})),nc=eu((function(n,t){return St(t,(function(t){t=Tu(t),oe(n,t,So(n[t],n))})),n}));function tc(n){return function(){return n}}var rc=Ui(),ec=Ui(!0);function ic(n){return n}function uc(n){return Le("function"==typeof n?n:fe(n,1))}var oc=He((function(n,t){return function(r){return Re(r,n,t)}})),ac=He((function(n,t){return function(r){return Re(n,r,t)}}));function cc(n,t,r){var e=za(t),i=Ie(t,e);null!=r||ta(t)&&(i.length||!e.length)||(r=t,t=n,n=this,i=Ie(t,za(t)));var u=!(ta(r)&&"chain"in r&&!r.chain),o=Xo(n);return St(i,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(u||t){var r=n(this.__wrapped__);return(r.__actions__=Si(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Tt([this.value()],arguments))})})),n}function fc(){}var lc=qi(Lt),sc=qi(zt),hc=qi(Ut);function pc(n){return bu(n)?Yt(Tu(n)):function(n){return function(t){return je(t,n)}}(n)}var vc=Ji(),dc=Ji(!0);function _c(){return[]}function gc(){return!1}var yc=Pi((function(n,t){return n+t}),0),mc=Gi("ceil"),wc=Pi((function(n,t){return n/t}),1),bc=Gi("floor");var xc,Ic=Pi((function(n,t){return n*t}),1),jc=Gi("round"),Ac=Pi((function(n,t){return n-t}),0);return $r.after=function(n,t){if("function"!=typeof t)throw new Rn(u);return n=da(n),function(){if(--n<1)return t.apply(this,arguments)}},$r.ary=Oo,$r.assign=wa,$r.assignIn=ba,$r.assignInWith=xa,$r.assignWith=Ia,$r.at=ja,$r.before=Bo,$r.bind=So,$r.bindAll=nc,$r.bindKey=Ro,$r.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Zo(n)?n:[n]},$r.chain=ho,$r.chunk=function(n,t,r){t=(r?wu(n,t,r):t===i)?1:mr(da(t),0);var u=null==n?0:n.length;if(!u||t<1)return[];for(var o=0,a=0,c=e(dt(u/t));ou?0:u+r),(e=e===i||e>u?u:da(e))<0&&(e+=u),e=r>e?0:_a(e);r>>0)?(n=ma(n))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=li(t))&&cr(n)?xi(dr(n),0,r):n.split(t,r):[]},$r.spread=function(n,t){if("function"!=typeof n)throw new Rn(u);return t=null==t?0:mr(da(t),0),He((function(r){var e=r[t],i=xi(r,0,t);return e&&Tt(i,e),Ot(n,this,i)}))},$r.tail=function(n){var t=null==n?0:n.length;return t?ii(n,1,t):[]},$r.take=function(n,t,r){return n&&n.length?ii(n,0,(t=r||t===i?1:da(t))<0?0:t):[]},$r.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?ii(n,(t=e-(t=r||t===i?1:da(t)))<0?0:t,e):[]},$r.takeRightWhile=function(n,t){return n&&n.length?vi(n,fu(t,3),!1,!0):[]},$r.takeWhile=function(n,t){return n&&n.length?vi(n,fu(t,3)):[]},$r.tap=function(n,t){return t(n),n},$r.throttle=function(n,t,r){var e=!0,i=!0;if("function"!=typeof n)throw new Rn(u);return ta(r)&&(e="leading"in r?!!r.leading:e,i="trailing"in r?!!r.trailing:i),zo(n,t,{leading:e,maxWait:t,trailing:i})},$r.thru=po,$r.toArray=pa,$r.toPairs=Wa,$r.toPairsIn=Ua,$r.toPath=function(n){return Zo(n)?Lt(n,Tu):fa(n)?[n]:Si(Lu(ma(n)))},$r.toPlainObject=ya,$r.transform=function(n,t,r){var e=Zo(n),i=e||Go(n)||la(n);if(t=fu(t,4),null==r){var u=n&&n.constructor;r=i?e?new u:[]:ta(n)&&Xo(u)?Mr(Yn(n)):{}}return(i?St:be)(n,(function(n,e,i){return t(r,n,e,i)})),r},$r.unary=function(n){return Oo(n,1)},$r.union=to,$r.unionBy=ro,$r.unionWith=eo,$r.uniq=function(n){return n&&n.length?si(n):[]},$r.uniqBy=function(n,t){return n&&n.length?si(n,fu(t,2)):[]},$r.uniqWith=function(n,t){return t="function"==typeof t?t:i,n&&n.length?si(n,i,t):[]},$r.unset=function(n,t){return null==n||hi(n,t)},$r.unzip=io,$r.unzipWith=uo,$r.update=function(n,t,r){return null==n?n:pi(n,t,mi(r))},$r.updateWith=function(n,t,r,e){return e="function"==typeof e?e:i,null==n?n:pi(n,t,mi(r),e)},$r.values=$a,$r.valuesIn=function(n){return null==n?[]:tr(n,Da(n))},$r.without=oo,$r.words=Xa,$r.wrap=function(n,t){return No(mi(t),n)},$r.xor=ao,$r.xorBy=co,$r.xorWith=fo,$r.zip=lo,$r.zipObject=function(n,t){return gi(n||[],t||[],re)},$r.zipObjectDeep=function(n,t){return gi(n||[],t||[],ni)},$r.zipWith=so,$r.entries=Wa,$r.entriesIn=Ua,$r.extend=ba,$r.extendWith=xa,cc($r,$r),$r.add=yc,$r.attempt=Qa,$r.camelCase=Ma,$r.capitalize=Pa,$r.ceil=mc,$r.clamp=function(n,t,r){return r===i&&(r=t,t=i),r!==i&&(r=(r=ga(r))==r?r:0),t!==i&&(t=(t=ga(t))==t?t:0),ce(ga(n),t,r)},$r.clone=function(n){return fe(n,4)},$r.cloneDeep=function(n){return fe(n,5)},$r.cloneDeepWith=function(n,t){return fe(n,5,t="function"==typeof t?t:i)},$r.cloneWith=function(n,t){return fe(n,4,t="function"==typeof t?t:i)},$r.conformsTo=function(n,t){return null==t||le(n,t,za(t))},$r.deburr=qa,$r.defaultTo=function(n,t){return null==n||n!=n?t:n},$r.divide=wc,$r.endsWith=function(n,t,r){n=ma(n),t=li(t);var e=n.length,u=r=r===i?e:ce(da(r),0,e);return(r-=t.length)>=0&&n.slice(r,u)==t},$r.eq=$o,$r.escape=function(n){return(n=ma(n))&&H.test(n)?n.replace(G,or):n},$r.escapeRegExp=function(n){return(n=ma(n))&&on.test(n)?n.replace(un,"\\$&"):n},$r.every=function(n,t,r){var e=Zo(n)?zt:de;return r&&wu(n,t,r)&&(t=i),e(n,fu(t,3))},$r.find=go,$r.findIndex=Pu,$r.findKey=function(n,t){return Mt(n,fu(t,3),be)},$r.findLast=yo,$r.findLastIndex=qu,$r.findLastKey=function(n,t){return Mt(n,fu(t,3),xe)},$r.floor=bc,$r.forEach=mo,$r.forEachRight=wo,$r.forIn=function(n,t){return null==n?n:me(n,fu(t,3),Da)},$r.forInRight=function(n,t){return null==n?n:we(n,fu(t,3),Da)},$r.forOwn=function(n,t){return n&&be(n,fu(t,3))},$r.forOwnRight=function(n,t){return n&&xe(n,fu(t,3))},$r.get=ka,$r.gt=Mo,$r.gte=Po,$r.has=function(n,t){return null!=n&&_u(n,t,Oe)},$r.hasIn=Oa,$r.head=Ju,$r.identity=ic,$r.includes=function(n,t,r,e){n=Ko(n)?n:$a(n),r=r&&!e?da(r):0;var i=n.length;return r<0&&(r=mr(i+r,0)),ca(n)?r<=i&&n.indexOf(t,r)>-1:!!i&&qt(n,t,r)>-1},$r.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=null==r?0:da(r);return i<0&&(i=mr(e+i,0)),qt(n,t,i)},$r.inRange=function(n,t,r){return t=va(t),r===i?(r=t,t=0):r=va(r),function(n,t,r){return n>=wr(t,r)&&n=-9007199254740991&&n<=v},$r.isSet=aa,$r.isString=ca,$r.isSymbol=fa,$r.isTypedArray=la,$r.isUndefined=function(n){return n===i},$r.isWeakMap=function(n){return ra(n)&&du(n)==D},$r.isWeakSet=function(n){return ra(n)&&"[object WeakSet]"==Ee(n)},$r.join=function(n,t){return null==n?"":$t.call(n,t)},$r.kebabCase=Za,$r.last=Vu,$r.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=e;return r!==i&&(u=(u=da(r))<0?mr(e+u,0):wr(u,e-1)),t==t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,u):Pt(n,Jt,u,!0)},$r.lowerCase=Ja,$r.lowerFirst=Ka,$r.lt=sa,$r.lte=ha,$r.max=function(n){return n&&n.length?_e(n,ic,ke):i},$r.maxBy=function(n,t){return n&&n.length?_e(n,fu(t,2),ke):i},$r.mean=function(n){return Kt(n,ic)},$r.meanBy=function(n,t){return Kt(n,fu(t,2))},$r.min=function(n){return n&&n.length?_e(n,ic,We):i},$r.minBy=function(n,t){return n&&n.length?_e(n,fu(t,2),We):i},$r.stubArray=_c,$r.stubFalse=gc,$r.stubObject=function(){return{}},$r.stubString=function(){return""},$r.stubTrue=function(){return!0},$r.multiply=Ic,$r.nth=function(n,t){return n&&n.length?qe(n,da(t)):i},$r.noConflict=function(){return _t._===this&&(_t._=Mn),this},$r.noop=fc,$r.now=ko,$r.pad=function(n,t,r){n=ma(n);var e=(t=da(t))?vr(n):0;if(!t||e>=t)return n;var i=(t-e)/2;return Zi(gt(i),r)+n+Zi(dt(i),r)},$r.padEnd=function(n,t,r){n=ma(n);var e=(t=da(t))?vr(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var u=Ir();return wr(n+u*(t-n+ht("1e-"+((u+"").length-1))),t)}return Ge(n,t)},$r.reduce=function(n,t,r){var e=Zo(n)?Nt:Vt,i=arguments.length<3;return e(n,fu(t,4),r,i,pe)},$r.reduceRight=function(n,t,r){var e=Zo(n)?Wt:Vt,i=arguments.length<3;return e(n,fu(t,4),r,i,ve)},$r.repeat=function(n,t,r){return t=(r?wu(n,t,r):t===i)?1:da(t),Ve(ma(n),t)},$r.replace=function(){var n=arguments,t=ma(n[0]);return n.length<3?t:t.replace(n[1],n[2])},$r.result=function(n,t,r){var e=-1,u=(t=wi(t,n)).length;for(u||(u=1,n=i);++ev)return[];var r=_,e=wr(n,_);t=fu(t),n-=_;for(var i=Xt(e,t);++r=o)return n;var c=r-vr(e);if(c<1)return e;var f=a?xi(a,0,c).join(""):n.slice(0,c);if(u===i)return f+e;if(a&&(c+=f.length-c),oa(u)){if(n.slice(c).search(u)){var l,s=f;for(u.global||(u=Bn(u.source,ma(_n.exec(u))+"g")),u.lastIndex=0;l=u.exec(s);)var h=l.index;f=f.slice(0,h===i?c:h)}}else if(n.indexOf(li(u),c)!=c){var p=f.lastIndexOf(u);p>-1&&(f=f.slice(0,p))}return f+e},$r.unescape=function(n){return(n=ma(n))&&V.test(n)?n.replace(Y,gr):n},$r.uniqueId=function(n){var t=++Nn;return ma(n)+t},$r.upperCase=Va,$r.upperFirst=Ha,$r.each=mo,$r.eachRight=wo,$r.first=Ju,cc($r,(xc={},be($r,(function(n,t){Tn.call($r.prototype,t)||(xc[t]=n)})),xc),{chain:!1}),$r.VERSION="4.17.21",St(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){$r[n].placeholder=$r})),St(["drop","take"],(function(n,t){Zr.prototype[n]=function(r){r=r===i?1:mr(da(r),0);var e=this.__filtered__&&!t?new Zr(this):this.clone();return e.__filtered__?e.__takeCount__=wr(r,e.__takeCount__):e.__views__.push({size:wr(r,_),type:n+(e.__dir__<0?"Right":"")}),e},Zr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),St(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Zr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:fu(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),St(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Zr.prototype[n]=function(){return this[r](1).value()[0]}})),St(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Zr.prototype[n]=function(){return this.__filtered__?new Zr(this):this[r](1)}})),Zr.prototype.compact=function(){return this.filter(ic)},Zr.prototype.find=function(n){return this.filter(n).head()},Zr.prototype.findLast=function(n){return this.reverse().find(n)},Zr.prototype.invokeMap=He((function(n,t){return"function"==typeof n?new Zr(this):this.map((function(r){return Re(r,n,t)}))})),Zr.prototype.reject=function(n){return this.filter(Lo(fu(n)))},Zr.prototype.slice=function(n,t){n=da(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Zr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==i&&(r=(t=da(t))<0?r.dropRight(-t):r.take(t-n)),r)},Zr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Zr.prototype.toArray=function(){return this.take(_)},be(Zr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),u=$r[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);u&&($r.prototype[t]=function(){var t=this.__wrapped__,a=e?[1]:arguments,c=t instanceof Zr,f=a[0],l=c||Zo(t),s=function(n){var t=u.apply($r,Tt([n],a));return e&&h?t[0]:t};l&&r&&"function"==typeof f&&1!=f.length&&(c=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,d=c&&!p;if(!o&&l){t=d?t:new Zr(this);var _=n.apply(t,a);return _.__actions__.push({func:po,args:[s],thisArg:i}),new qr(_,h)}return v&&d?n.apply(this,a):(_=this.thru(s),v?e?_.value()[0]:_.value():_)})})),St(["pop","push","shift","sort","splice","unshift"],(function(n){var t=zn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);$r.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var i=this.value();return t.apply(Zo(i)?i:[],n)}return this[r]((function(r){return t.apply(Zo(r)?r:[],n)}))}})),be(Zr.prototype,(function(n,t){var r=$r[t];if(r){var e=r.name+"";Tn.call(zr,e)||(zr[e]=[]),zr[e].push({name:t,func:r})}})),zr[$i(i,2).name]=[{name:"wrapper",func:i}],Zr.prototype.clone=function(){var n=new Zr(this.__wrapped__);return n.__actions__=Si(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Si(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Si(this.__views__),n},Zr.prototype.reverse=function(){if(this.__filtered__){var n=new Zr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Zr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Zo(n),e=t<0,i=r?n.length:0,u=function(n,t,r){var e=-1,i=r.length;for(;++e=this.__values__.length;return{done:n,value:n?i:this.__values__[this.__index__++]}},$r.prototype.plant=function(n){for(var t,r=this;r instanceof Pr;){var e=Wu(r);e.__index__=0,e.__values__=i,t?u.__wrapped__=e:t=e;var u=e;r=r.__wrapped__}return u.__wrapped__=n,t},$r.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Zr){var t=n;return this.__actions__.length&&(t=new Zr(this)),(t=t.reverse()).__actions__.push({func:po,args:[no],thisArg:i}),new qr(t,this.__chain__)}return this.thru(no)},$r.prototype.toJSON=$r.prototype.valueOf=$r.prototype.value=function(){return di(this.__wrapped__,this.__actions__)},$r.prototype.first=$r.prototype.head,Qn&&($r.prototype[Qn]=function(){return this}),$r}();_t._=yr,(e=function(){return yr}.call(t,r,t,n))===i||(n.exports=e)}.call(this)},625:(n,t,r)=>{"use strict";r.d(t,{Fc:()=>l,NO:()=>c,O:()=>s,YD:()=>o,g5:()=>h,gB:()=>u,gf:()=>a});var e=r(486),i=r.n(e);function u(n,t=1){if(Math.abs(n)<1024)return n+" B";const r=["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let e=-1;const i=10**t;do{n/=1024,++e}while(Math.round(Math.abs(n)*i)/i>=1024&&e1?"s":"";let u=`${e}
${t} total
${`${n.n_allocations} allocation${i}`}`;return!1===r&&(u=u.concat(`
Thread ID: ${n.thread_id}`)),u}function c(n,t){return function(n,t){let r=i().cloneDeep(n.children);const e=i().filter(r,(function n(r){return r.children&&r.children.length>0&&(r.children=i().filter(r.children,n)),t(r)}));return i().defaults({children:e},n)}(n,(n=>n.thread_id===t))}function f(n,t){function r(n){let e=[];if(t(n)){e=[];for(const t of n.children)e.push(...r(t));let t=i().clone(n);t.children=e,e=[t]}else for(const t of n.children)e.push(...r(t));return e}let e=[];for(let t of n.children)e.push(...r(t));return i().defaults({children:e},n)}function l(n){return f(n,(n=>n.interesting))}function s(n){return f(n,(n=>!n.import_system))}function h(n){return i().reduce(n,((n,t)=>(n.n_allocations+=t.n_allocations,n.value+=t.value,n)),{n_allocations:0,value:0})}},501:(n,t,r)=>{"use strict";r.d(t,{Cd:()=>f,Ji:()=>d,N4:()=>x,Xx:()=>v,YX:()=>l,Z1:()=>b,bf:()=>g,cW:()=>j,ib:()=>m,sO:()=>w});var e=r(625);const i="filter_uninteresting",u="filter_import_system",o="filter_thread";var a=null;let c=new class{constructor(){this.filters={}}registerFilter(n,t){this.filters[n]=t}unRegisterFilter(n){delete this.filters[n]}drawChart(n){let t=n;_.forOwn(this.filters,(n=>{t=n(t)})),function(n){a&&(a.destroy(),d3.selectAll(".d3-flame-graph-tip").remove());a=flamegraph().width(y()).transitionDuration(250).transitionEase(d3.easeCubic).inverted(!0).cellHeight(20).minFrameSize(2).setColorMapper(I).onClick(p).tooltip(d3.tip().attr("class","d3-flame-graph-tip").html((n=>{const t=(0,e.gB)(n.data.value);return(0,e.gf)(n.data,t,merge_threads)})).direction((n=>{const t=(n.x1+n.x0)/2;return.25.25?"w":"n"}))),d3.select("#chart").datum(n).call(a),a.width(y())}(t),a.merge([])}};function f(){return a}function l(){return c}function s(){return location.hash?parseInt(location.hash.substring(1),10):0}function h(){document.getElementById("resetZoomButton").disabled=0==s()}function p(n){n.id!=s()&&(history.pushState({id:n.id},n.data.name,`#${n.id}`),h())}function v(){const n=s(),t=a.findById(n);t&&(a.zoomTo(t),h())}function d(){a.inverted(this===document.getElementById("icicles")),a.resetZoom(),$('[data-toggle="tooltip"]').tooltip("hide")}function g(){a.resetZoom()}function y(){return document.getElementById("chart").clientWidth}function m(){c.drawChart(data),location.hash&&v()}function w(){const n=this.dataset.thread;"-0x1"===n?c.unRegisterFilter(o):c.registerFilter(o,(t=>{let r=(0,e.NO)(t,n);const i=(0,e.g5)(r.children);return _.defaults(i,r),r.n_allocations=i.n_allocations,r.value=i.value,r})),c.drawChart(data)}function b(){void 0===this.hideUninterestingFrames&&(this.hideUninterestingFrames=!0),!0===this.hideUninterestingFrames?(this.hideUninterestingFrames=!0,c.registerFilter(i,(n=>(0,e.Fc)(n)))):c.unRegisterFilter(i),this.hideUninterestingFrames=!this.hideUninterestingFrames,c.drawChart(data)}function x(){void 0===this.hideImportSystemFrames&&(this.hideImportSystemFrames=!0),!0===this.hideImportSystemFrames?(this.hideImportSystemFrames=!0,inverted?(data=invertedNoImportsData,temporal&&(hideImports=!0,intervals=invertedNoImportsIntervals)):c.registerFilter(u,(n=>(0,e.O)(n)))):(c.unRegisterFilter(u),data=flamegraphData,temporal&&(hideImports=!1,intervals=flamegraphIntervals)),this.hideImportSystemFrames=!this.hideImportSystemFrames,c.drawChart(data)}function I(n,t){return n.highlight?"orange":n.data.name&&n.data.location?(e=n.data.location[1],"py"==(r=void 0===e?e:e.substring(e.lastIndexOf(".")+1,e.length)||e)?d3.schemePastel1[2]:"c"==r||"cpp"==r||"h"==r?d3.schemePastel1[5]:d3.schemePastel1[8]):"#EEE";var r,e}function j(n,t){if(!0===t)return;const r=n.unique_threads;if(!r||r.length<=1)return;document.getElementById("threadsDropdown").removeAttribute("hidden");const e=document.getElementById("threadsDropdownList");for(const n of r){let t=document.createElement("a");t.className="dropdown-item",t.dataset.thread=n,t.text=n,t.onclick=w,e.appendChild(t)}}}},t={};function r(e){var i=t[e];if(void 0!==i)return i.exports;var u=t[e]={id:e,loaded:!1,exports:{}};return n[e].call(u.exports,u,u.exports,r),u.loaded=!0,u.exports}r.n=n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return r.d(t,{a:t}),t},r.d=(n,t)=>{for(var e in t)r.o(t,e)&&!r.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),r.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),r.nmd=n=>(n.paths=[],n.children||(n.children=[]),n),(()=>{"use strict";var n=r(625),t=r(501),e=null,i=null,u=a(packed_data.nodes),o=inverted?a(packed_data.inverted_no_imports_nodes):null;function a(n){let t=new Array(n.children.length);console.log("finding parent index for each node");for(const[r,e]of n.children.entries())e.forEach((n=>t[n]=r));return console.assert(void 0===t[0],"root node has a parent"),t}function c(n,t){console.log("constructing nodes");const r=t.name.map(((r,e)=>({name:n[t.name[e]],location:[n[t.function[e]],n[t.filename[e]],t.lineno[e]],value:0,children:t.children[e],n_allocations:0,thread_id:n[t.thread_id[e]],interesting:0!==t.interesting[e],import_system:0!==t.import_system[e]})));console.log("mapping child indices to child nodes");for(const[n,t]of r.entries())t.children=t.children.map((n=>r[n]));return r}function f(n,t,r,e){n.forEach((n=>{let[i,u,o,a,c]=n;if(i<=r&&(null===u||u>r))for(;void 0!==o;)t[o].n_allocations+=a,t[o].value+=c,o=e[o]}))}function l(n,t,r,e,i){n.forEach((n=>{let[u,o,a,c,f]=n;if(u>=r&&u<=e&&(null===o||o>e))for(;void 0!==a;)t[a].n_allocations+=c,t[a].value+=f,a=i[a]}))}function s(n,t,r){const{flamegraphNodeObjects:e,invertedNoImportsNodeObjects:i}=function(n){const{strings:t,nodes:r,inverted_no_imports_nodes:e,unique_threads:i,intervals:u,no_imports_interval_list:o}=n,a=c(t,r),f=inverted?c(t,e):null;return flamegraphIntervals=u,invertedNoImportsIntervals=o,{flamegraphNodeObjects:a,invertedNoImportsNodeObjects:f}}(n),a=n.high_water_mark_by_snapshot;if(a){console.log("finding highest high water mark in range");let n=t,c=a[t];for(let e=t;e<=r;++e)a[e]>c&&(c=a[e],n=e);console.log("highest water mark between "+t+" and "+r+" is "+c+" at "+n);let l,s,h={shapes:[]};n==memory_records.length?(h["xaxis.range[1]"]=new Date(memory_records.at(-1)[0]+10),l=new Date(memory_records.at(-1)[0]),s=new Date(memory_records.at(-1)[0]+10)):0==n?(h["xaxis.range[0]"]=new Date(memory_records[0][0]-10),l=new Date(memory_records[0][0]-10),s=new Date(memory_records[0][0])):(l=new Date(memory_records[n-1][0]),s=new Date(memory_records[n][0])),h.shapes=[{type:"rect",xref:"x",yref:"paper",x0:l,y0:0,x1:s,y1:1,fillcolor:"#fbff00",opacity:.2,line:{width:0}}],Plotly.relayout("plot",h),console.log("finding hwm allocations"),f(flamegraphIntervals,e,n,u),inverted&&f(invertedNoImportsIntervals,i,n,o)}else console.log("finding leaked allocations"),l(flamegraphIntervals,e,t,r,u),inverted&&l(invertedNoImportsIntervals,i,t,r,o);e.forEach((n=>{n.children=n.children.filter((n=>n.n_allocations>0))})),inverted&&i.forEach((n=>{n.children=n.children.filter((n=>n.n_allocations>0))})),flamegraphData=e[0],invertedNoImportsData=inverted?i[0]:null}function h(n){console.log("refreshing flame graph!");let r=function(n){console.log("getRangeData");let t={};if(n.hasOwnProperty("xaxis.range[0]"))t={string1:n["xaxis.range[0]"],string2:n["xaxis.range[1]"]};else if(n.hasOwnProperty("xaxis.range"))t={string1:n["xaxis.range"][0],string2:n["xaxis.range"][1]};else{if(null===e)return;{let n=e.layout.xaxis.range;t={string1:n[0],string2:n[1]}}}return t}(n);if(console.log("range data: "+JSON.stringify(r)),null!=i&&JSON.stringify(r)===JSON.stringify(i))return;console.log("showing loading animation"),console.log("showLoadingAnimation"),document.getElementById("loading").style.display="block",document.getElementById("overlay").style.display="block",i=r,console.log("finding range of relevant snapshot");let u=0,o=memory_records.length;if(r){const n=new Date(r.string1).getTime(),t=memory_records.findIndex((t=>t[0]>=n));-1!=t&&(u=t);const e=new Date(r.string2).getTime(),i=memory_records.findIndex((n=>n[0]>e));-1!=i&&(o=i)}console.log("start index is "+u),console.log("end index is "+o),console.log("first possible index is 0"),console.log("last possible index is "+memory_records.length),console.log("constructing tree"),s(packed_data,u,o),data=inverted&&hideImports?invertedNoImportsData:flamegraphData,intervals=inverted&&hideImports?invertedNoImportsIntervals:flamegraphIntervals,console.log("total allocations in range: "+data.n_allocations),console.log("total bytes in range: "+data.value),console.log("drawing chart"),(0,t.YX)().drawChart(data),console.log("hiding loading animation"),console.log("hideLoadingAnimation"),document.getElementById("loading").style.display="none",document.getElementById("overlay").style.display="none"}var p=null;function v(n){console.log("refreshFlamegraphDebounced"),p&&clearTimeout(p),p=setTimeout((function(){h(n)}),500)}document.addEventListener("DOMContentLoaded",(function(){console.log("main");const r=packed_data.unique_threads.map((n=>packed_data.strings[n]));(0,t.cW)({unique_threads:r},merge_threads),function(n){console.log("init memory graph");const t=n.map((n=>new Date(n[0]))),r=n.map((n=>n[1])),i=n.map((n=>n[2])),u=n.length>1?"lines":"markers";var o=[{x:t,y:r,mode:u,name:"Resident size"},{x:t,y:i,mode:u,name:"Heap size"}];Plotly.newPlot("plot",o,{xaxis:{title:{text:"Time"},rangeslider:{visible:!0}},yaxis:{title:{text:"Memory Size"},tickformat:".4~s",exponentformat:"B",ticksuffix:"B"}},{responsive:!0,displayModeBar:!1}).then((n=>{console.assert(null===e),e=n}))}(memory_records),h({}),location.hash&&(0,t.Xx)(),document.getElementById("icicles").onchange=t.Ji,document.getElementById("flames").onchange=t.Ji,document.getElementById("resetZoomButton").onclick=t.bf,document.getElementById("resetThreadFilterItem").onclick=t.sO,document.getElementById("hideUninteresting").onclick=t.Z1.bind(this),document.getElementById("hideImportSystem").onclick=t.N4.bind(this),t.Z1.bind(this)(),document.onkeyup=n=>{"Escape"==n.code&&(0,t.bf)()},document.getElementById("searchTerm").addEventListener("input",(()=>{const n=document.getElementById("searchTerm");(0,t.Cd)().search(n.value)})),window.addEventListener("popstate",t.Xx),window.addEventListener("resize",(0,n.YD)(t.ib)),$('[data-toggle-second="tooltip"]').tooltip(),$('[data-toggle="tooltip"]').tooltip(),console.log("setup reload handler"),document.getElementById("plot").on("plotly_relayout",v),[].slice.call(document.querySelectorAll(".toast")).map((function(n){return new bootstrap.Toast(n,{delay:1e4})})).forEach((n=>n.show()))}))})()})(); \ No newline at end of file diff --git a/src/memray/reporters/templates/flamegraph.html b/src/memray/reporters/templates/flamegraph.html index d08d2520ce..1341f5badf 100644 --- a/src/memray/reporters/templates/flamegraph.html +++ b/src/memray/reporters/templates/flamegraph.html @@ -21,8 +21,29 @@ title="Hide frames related to the Python import system" > +
+ + +
- {% endblock %} {% block content %}