@kylincloud/flamegraph 0.35.27 → 0.35.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist/FlameGraph/FlameGraphComponent/DiffLegend.d.ts.map +1 -1
- package/dist/FlameGraph/FlameGraphComponent/DiffLegendPaletteDropdown.d.ts.map +1 -1
- package/dist/FlameGraph/FlameGraphComponent/Flamegraph.d.ts +16 -2
- package/dist/FlameGraph/FlameGraphComponent/Flamegraph.d.ts.map +1 -1
- package/dist/FlameGraph/FlameGraphComponent/Flamegraph_render.d.ts +15 -2
- package/dist/FlameGraph/FlameGraphComponent/Flamegraph_render.d.ts.map +1 -1
- package/dist/FlameGraph/FlameGraphComponent/Highlight.d.ts.map +1 -1
- package/dist/FlameGraph/FlameGraphComponent/index.d.ts.map +1 -1
- package/dist/FlameGraph/normalize.d.ts.map +1 -1
- package/dist/FlameGraph/uniqueness.d.ts.map +1 -1
- package/dist/Icons.d.ts.map +1 -1
- package/dist/ProfilerTable.d.ts.map +1 -1
- package/dist/SharedQueryInput.d.ts.map +1 -1
- package/dist/Toolbar.d.ts.map +1 -1
- package/dist/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/flamegraphRenderWorker.js +2 -0
- package/dist/flamegraphRenderWorker.js.map +1 -0
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.node.cjs.js +4 -4
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.esm.js +4 -4
- package/dist/index.node.esm.js.map +1 -1
- package/dist/shims/Table.d.ts +15 -1
- package/dist/shims/Table.d.ts.map +1 -1
- package/dist/shims/Tooltip.d.ts.map +1 -1
- package/dist/workers/createFlamegraphRenderWorker.d.ts +2 -0
- package/dist/workers/createFlamegraphRenderWorker.d.ts.map +1 -0
- package/dist/workers/flamegraphRenderWorker.d.ts +2 -0
- package/dist/workers/flamegraphRenderWorker.d.ts.map +1 -0
- package/dist/workers/profilerTableWorker.d.ts +73 -0
- package/dist/workers/profilerTableWorker.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/FlameGraph/FlameGraphComponent/DiffLegend.module.css +8 -2
- package/src/FlameGraph/FlameGraphComponent/DiffLegend.tsx +12 -1
- package/src/FlameGraph/FlameGraphComponent/DiffLegendPaletteDropdown.module.css +93 -10
- package/src/FlameGraph/FlameGraphComponent/DiffLegendPaletteDropdown.tsx +9 -4
- package/src/FlameGraph/FlameGraphComponent/Flamegraph.ts +33 -8
- package/src/FlameGraph/FlameGraphComponent/Flamegraph_render.ts +289 -85
- package/src/FlameGraph/FlameGraphComponent/Highlight.tsx +43 -17
- package/src/FlameGraph/FlameGraphComponent/index.tsx +208 -57
- package/src/FlameGraph/FlameGraphComponent/styles.module.scss +8 -0
- package/src/FlameGraph/normalize.ts +9 -7
- package/src/FlameGraph/uniqueness.ts +69 -59
- package/src/Icons.tsx +18 -9
- package/src/ProfilerTable.tsx +463 -33
- package/src/SharedQueryInput.module.scss +50 -0
- package/src/SharedQueryInput.tsx +18 -3
- package/src/Toolbar.module.scss +90 -0
- package/src/Toolbar.tsx +30 -16
- package/src/Tooltip/Tooltip.tsx +49 -16
- package/src/i18n.tsx +1 -1
- package/src/sass/_common.scss +22 -3
- package/src/sass/_css-variables.scss +5 -1
- package/src/sass/flamegraph.scss +26 -23
- package/src/shims/Table.module.scss +91 -13
- package/src/shims/Table.tsx +202 -7
- package/src/shims/Tooltip.module.scss +40 -0
- package/src/shims/Tooltip.tsx +31 -3
- package/src/workers/createFlamegraphRenderWorker.ts +7 -0
- package/src/workers/flamegraphRenderWorker.ts +198 -0
- package/src/workers/profilerTableWorker.ts +368 -0
package/dist/index.node.esm.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import a,{useId as r,useMemo as
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import a,{useId as r,useMemo as o,createContext as i,forwardRef as l,useState as s,useRef as c,useCallback as f,useLayoutEffect as u,useEffect as d,useReducer as h,useContext as m,useImperativeHandle as p,Fragment as g,cloneElement as v,version as b,memo as y,createElement as w,isValidElement as x,Component as k}from"react";import{Maybe as N}from"true-myth";import{z as S}from"zod";import T from"color";import{scaleLinear as C}from"d3-scale";import _ from"@react-hook/resize-observer";import M from"lodash.debounce";import{unstable_batchedUpdates as R,flushSync as P,createPortal as F}from"react-dom";import{DebounceInput as I}from"react-debounce-input";import j from"./logo-v3-small.svg";import E from"lodash.groupby";import B from"lodash.map";function D(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var L,A={exports:{}};
|
|
2
2
|
/*!
|
|
3
3
|
Copyright (c) 2018 Jed Watson.
|
|
4
4
|
Licensed under the MIT License (MIT), see
|
|
5
5
|
http://jedwatson.github.io/classnames
|
|
6
|
-
*/var
|
|
6
|
+
*/var O,z=(L||(L=1,O=A,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,n.call(this,r)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return this&&this[n]||n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(this,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var r="";for(var o in n)e.call(n,o)&&n[o]&&(r=a(r,this&&this[o]||o));return r}function a(e,t){return t?e?e+" "+t:e+t:e}O.exports?(t.default=t,O.exports=t):window.classNames=t}()),A.exports),$=D(z);
|
|
7
7
|
/*!
|
|
8
8
|
* Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com
|
|
9
9
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
10
10
|
* Copyright 2025 Fonticons, Inc.
|
|
11
11
|
*/
|
|
12
|
-
function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function H(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,Z(a.key),a)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function W(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=G(e))||t){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function U(e,t,n){return(t=Z(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach(function(t){U(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function X(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return l}}(e,t)||G(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Y(e){return function(e){if(Array.isArray(e))return V(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||G(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t);if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function K(e){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}function G(e,t){if(e){if("string"==typeof e)return V(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}var q=function(){},ee={},te={},ne=null,ae={mark:q,measure:q};try{"undefined"!=typeof window&&(ee=window),"undefined"!=typeof document&&(te=document),"undefined"!=typeof MutationObserver&&(ne=MutationObserver),"undefined"!=typeof performance&&(ae=performance)}catch(Me){}var re=(ee.navigator||{}).userAgent,ie=void 0===re?"":re,oe=ee,le=te,se=ne,ce=ae;oe.document;var fe,ue=!!le.documentElement&&!!le.head&&"function"==typeof le.addEventListener&&"function"==typeof le.createElement,de=~ie.indexOf("MSIE")||~ie.indexOf("Trident/"),he={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},me=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],pe="classic",ge="duotone",ve="sharp",be="sharp-duotone",ye="chisel",we="etch",xe="jelly",ke="jelly-duo",Ne="jelly-fill",Se="notdog",Ce="notdog-duo",Te="slab",_e="slab-press",Me="thumbprint",Pe="utility",Fe="utility-duo",Re="utility-fill",Ie="whiteboard",je=[pe,ge,ve,be,ye,we,xe,ke,Ne,Se,Ce,Te,_e,Me,Pe,Fe,Re,Ie];U(U(U(U(U(U(U(U(U(U(fe={},pe,"Classic"),ge,"Duotone"),ve,"Sharp"),be,"Sharp Duotone"),ye,"Chisel"),we,"Etch"),xe,"Jelly"),ke,"Jelly Duo"),Ne,"Jelly Fill"),Se,"Notdog"),U(U(U(U(U(U(U(U(fe,Ce,"Notdog Duo"),Te,"Slab"),_e,"Slab Press"),Me,"Thumbprint"),Pe,"Utility"),Fe,"Utility Duo"),Re,"Utility Fill"),Ie,"Whiteboard");var Ee=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),Ae=["fak","fa-kit","fakd","fa-kit-duotone"],De={fak:"kit","fa-kit":"kit"},Oe={fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"};U(U({},"kit","Kit"),"kit-duotone","Kit Duotone");var Le,Be={kit:"fak"},ze={"kit-duotone":"fakd"},$e="duotone-group",Ve="swap-opacity",He="primary",We="secondary";U(U(U(U(U(U(U(U(U(U(Le={},"classic","Classic"),"duotone","Duotone"),"sharp","Sharp"),"sharp-duotone","Sharp Duotone"),"chisel","Chisel"),"etch","Etch"),"jelly","Jelly"),"jelly-duo","Jelly Duo"),"jelly-fill","Jelly Fill"),"notdog","Notdog"),U(U(U(U(U(U(U(U(Le,"notdog-duo","Notdog Duo"),"slab","Slab"),"slab-press","Slab Press"),"thumbprint","Thumbprint"),"utility","Utility"),"utility-duo","Utility Duo"),"utility-fill","Utility Fill"),"whiteboard","Whiteboard");U(U({},"kit","Kit"),"kit-duotone","Kit Duotone");var Ue={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},Je=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"]),Qe=[1,2,3,4,5,6,7,8,9,10],Xe=Qe.concat([11,12,13,14,15,16,17,18,19,20]),Ye=[].concat(Y(Object.keys({classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]})),["solid","regular","light","thin","duotone","brands","semibold"],["aw","fw","pull-left","pull-right"],["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",$e,Ve,He,We]).concat(Qe.map(function(e){return"".concat(e,"x")})).concat(Xe.map(function(e){return"w-".concat(e)})),Ze="___FONT_AWESOME___",Ke="svg-inline--fa",Ge="data-fa-i2svg",qe="data-fa-pseudo-element",et="data-prefix",tt="data-icon",nt="fontawesome-i2svg",at=["HTML","HEAD","STYLE","SCRIPT"],rt=["::before","::after",":before",":after"],it=function(){try{return"production"===process.env.NODE_ENV}catch(e){return!1}}();function ot(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[pe]}})}var lt=Q({},he);lt[pe]=Q(Q(Q(Q({},{"fa-duotone":"duotone"}),he[pe]),De),Oe);var st=ot(lt),ct=Q({},{chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}});ct[pe]=Q(Q(Q(Q({},{duotone:"fad"}),ct[pe]),Be),ze);var ft=ot(ct),ut=Q({},Ue);ut[pe]=Q(Q({},ut[pe]),{fak:"fa-kit"});var dt=ot(ut),ht=Q({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}});ht[pe]=Q(Q({},ht[pe]),{"fa-kit":"fak"}),ot(ht);var mt=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,pt="fa-layers-text",gt=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i;ot(Q({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}}));var vt=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],bt={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},yt=[].concat(Y(["kit"]),Y(Ye)),wt=oe.FontAwesomeConfig||{};if(le&&"function"==typeof le.querySelector){[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(e){var t=X(e,2),n=t[0],a=t[1],r=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=le.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=r&&(wt[a]=r)})}var xt={styleDefault:"solid",familyDefault:pe,cssPrefix:"fa",replacementClass:Ke,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};wt.familyPrefix&&(wt.cssPrefix=wt.familyPrefix);var kt=Q(Q({},xt),wt);kt.autoReplaceSvg||(kt.observeMutations=!1);var Nt={};Object.keys(xt).forEach(function(e){Object.defineProperty(Nt,e,{enumerable:!0,set:function(t){kt[e]=t,St.forEach(function(e){return e(Nt)})},get:function(){return kt[e]}})}),Object.defineProperty(Nt,"familyPrefix",{enumerable:!0,set:function(e){kt.cssPrefix=e,St.forEach(function(e){return e(Nt)})},get:function(){return kt.cssPrefix}}),oe.FontAwesomeConfig=Nt;var St=[];var Ct=16,Tt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function _t(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function Mt(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Pt(e){return e.classList?Mt(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(e){return e})}function Ft(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Rt(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function It(e){return e.size!==Tt.size||e.x!==Tt.x||e.y!==Tt.y||e.rotate!==Tt.rotate||e.flipX||e.flipY}function jt(){var e="fa",t=Ke,n=Nt.cssPrefix,a=Nt.replacementClass,r=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 7 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 7 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 7 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-slab-regular: normal 400 1em/1 "Font Awesome 7 Slab";\n --fa-font-slab-press-regular: normal 400 1em/1 "Font Awesome 7 Slab Press";\n --fa-font-whiteboard-semibold: normal 600 1em/1 "Font Awesome 7 Whiteboard";\n --fa-font-thumbprint-light: normal 300 1em/1 "Font Awesome 7 Thumbprint";\n --fa-font-notdog-solid: normal 900 1em/1 "Font Awesome 7 Notdog";\n --fa-font-notdog-duo-solid: normal 900 1em/1 "Font Awesome 7 Notdog Duo";\n --fa-font-etch-solid: normal 900 1em/1 "Font Awesome 7 Etch";\n --fa-font-jelly-regular: normal 400 1em/1 "Font Awesome 7 Jelly";\n --fa-font-jelly-fill-regular: normal 400 1em/1 "Font Awesome 7 Jelly Fill";\n --fa-font-jelly-duo-regular: normal 400 1em/1 "Font Awesome 7 Jelly Duo";\n --fa-font-chisel-regular: normal 400 1em/1 "Font Awesome 7 Chisel";\n --fa-font-utility-semibold: normal 600 1em/1 "Font Awesome 7 Utility";\n --fa-font-utility-duo-semibold: normal 600 1em/1 "Font Awesome 7 Utility Duo";\n --fa-font-utility-fill-semibold: normal 600 1em/1 "Font Awesome 7 Utility Fill";\n}\n\n.svg-inline--fa {\n box-sizing: content-box;\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n width: var(--fa-width, 1.25em);\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285714em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left,\n.svg-inline--fa .fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-pull-right,\n.svg-inline--fa .fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: var(--fa-width, 1.25em);\n}\n.fa-layers .svg-inline--fa {\n inset: 0;\n margin: auto;\n position: absolute;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-xs {\n font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-sm {\n font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-lg {\n font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-xl {\n font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-2xl {\n font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-width-auto {\n --fa-width: auto;\n}\n\n.fa-fw,\n.fa-width-fixed {\n --fa-width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-inline-start: var(--fa-li-margin, 2.5em);\n padding-inline-start: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n/* Heads Up: Bordered Icons will not be supported in the future!\n - This feature will be deprecated in the next major release of Font Awesome (v8)!\n - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.\n*/\n/* Notes:\n* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)\n* --@{v.$css-prefix}-border-padding =\n ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it\'s vertical alignment)\n ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)\n*/\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.0625em);\n box-sizing: var(--fa-border-box-sizing, content-box);\n padding: var(--fa-border-padding, 0.1875em 0.25em);\n}\n\n.fa-pull-left,\n.fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right,\n.fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n .fa-bounce,\n .fa-fade,\n .fa-beat-fade,\n .fa-flip,\n .fa-pulse,\n .fa-shake,\n .fa-spin,\n .fa-spin-pulse {\n animation: none !important;\n transition: none !important;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.svg-inline--fa.fa-inverse {\n fill: var(--fa-inverse, #fff);\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n line-height: 2em;\n position: relative;\n vertical-align: middle;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.svg-inline--fa.fa-stack-1x {\n --fa-width: 1.25em;\n height: 1em;\n width: var(--fa-width);\n}\n.svg-inline--fa.fa-stack-2x {\n --fa-width: 2.5em;\n height: 2em;\n width: var(--fa-width);\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n inset: 0;\n margin: auto;\n position: absolute;\n z-index: var(--fa-stack-z-index, auto);\n}';if(n!==e||a!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");r=r.replace(i,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(l,".".concat(a))}return r}var Et=!1;function At(){Nt.autoAddCss&&!Et&&(!function(e){if(e&&ue){var t=le.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=le.head.childNodes,a=null,r=n.length-1;r>-1;r--){var i=n[r],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(a=i)}le.head.insertBefore(t,a)}}(jt()),Et=!0)}var Dt={mixout:function(){return{dom:{css:jt,insertCss:At}}},hooks:function(){return{beforeDOMElementCreation:function(){At()},beforeI2svg:function(){At()}}}},Ot=oe||{};Ot[Ze]||(Ot[Ze]={}),Ot[Ze].styles||(Ot[Ze].styles={}),Ot[Ze].hooks||(Ot[Ze].hooks={}),Ot[Ze].shims||(Ot[Ze].shims=[]);var Lt=Ot[Ze],Bt=[],zt=function(){le.removeEventListener("DOMContentLoaded",zt),$t=1,Bt.map(function(e){return e()})},$t=!1;function Vt(e){var t=e.tag,n=e.attributes,a=void 0===n?{}:n,r=e.children,i=void 0===r?[]:r;return"string"==typeof e?Ft(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(Ft(e[n]),'" ')},"").trim()}(a),">").concat(i.map(Vt).join(""),"</").concat(t,">")}function Ht(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}ue&&(($t=(le.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(le.readyState))||le.addEventListener("DOMContentLoaded",zt));var Wt=function(e,t,n,a){var r,i,o,l=Object.keys(e),s=l.length,c=t;for(void 0===n?(r=1,o=e[l[0]]):(r=0,o=n);r<s;r++)o=c(o,e[i=l[r]],i,e);return o};function Ut(e){return 1!==Y(e).length?null:e.codePointAt(0).toString(16)}function Jt(e){return Object.keys(e).reduce(function(t,n){var a=e[n];return!!a.icon?t[a.iconName]=a.icon:t[n]=a,t},{})}function Qt(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,a=void 0!==n&&n,r=Jt(t);"function"!=typeof Lt.hooks.addPack||a?Lt.styles[e]=Q(Q({},Lt.styles[e]||{}),r):Lt.hooks.addPack(e,Jt(t)),"fas"===e&&Qt("fa",t)}var Xt=Lt.styles,Yt=Lt.shims,Zt=Object.keys(dt),Kt=Zt.reduce(function(e,t){return e[t]=Object.keys(dt[t]),e},{}),Gt=null,qt={},en={},tn={},nn={},an={};function rn(e,t){var n,a=t.split("-"),r=a[0],i=a.slice(1).join("-");return r!==e||""===i||(n=i,~yt.indexOf(n))?null:i}var on,ln=function(){var e=function(e){return Wt(Xt,function(t,n,a){return t[a]=Wt(n,e,{}),t},{})};qt=e(function(e,t,n){(t[3]&&(e[t[3]]=n),t[2])&&t[2].filter(function(e){return"number"==typeof e}).forEach(function(t){e[t.toString(16)]=n});return e}),en=e(function(e,t,n){(e[n]=n,t[2])&&t[2].filter(function(e){return"string"==typeof e}).forEach(function(t){e[t]=n});return e}),an=e(function(e,t,n){var a=t[2];return e[n]=n,a.forEach(function(t){e[t]=n}),e});var t="far"in Xt||Nt.autoFetchSvg,n=Wt(Yt,function(e,n){var a=n[0],r=n[1],i=n[2];return"far"!==r||t||(r="fas"),"string"==typeof a&&(e.names[a]={prefix:r,iconName:i}),"number"==typeof a&&(e.unicodes[a.toString(16)]={prefix:r,iconName:i}),e},{names:{},unicodes:{}});tn=n.names,nn=n.unicodes,Gt=dn(Nt.styleDefault,{family:Nt.familyDefault})};function sn(e,t){return(qt[e]||{})[t]}function cn(e,t){return(an[e]||{})[t]}function fn(e){return tn[e]||{prefix:null,iconName:null}}function un(){return Gt}on=function(e){Gt=dn(e.styleDefault,{family:Nt.familyDefault})},St.push(on),ln();function dn(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===t?pe:t,a=st[n][e];if(n===ge&&!e)return"fad";var r=ft[n][e]||ft[n][a],i=e in Lt.styles?e:null;return r||i||null}function hn(e){return e.sort().filter(function(e,t,n){return n.indexOf(e)===t})}var mn=Je.concat(Ae);function pn(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,n=void 0!==t&&t,a=null,r=hn(e.filter(function(e){return mn.includes(e)})),i=hn(e.filter(function(e){return!mn.includes(e)})),o=X(r.filter(function(e){return a=e,!me.includes(e)}),1)[0],l=void 0===o?null:o,s=function(e){var t=pe,n=Zt.reduce(function(e,t){return e[t]="".concat(Nt.cssPrefix,"-").concat(t),e},{});return je.forEach(function(a){(e.includes(n[a])||e.some(function(e){return Kt[a].includes(e)}))&&(t=a)}),t}(r),c=Q(Q({},function(e){var t=[],n=null;return e.forEach(function(e){var a=rn(Nt.cssPrefix,e);a?n=a:e&&t.push(e)}),{iconName:n,rest:t}}(i)),{},{prefix:dn(l,{family:s})});return Q(Q(Q({},c),function(e){var t=e.values,n=e.family,a=e.canonical,r=e.givenPrefix,i=void 0===r?"":r,o=e.styles,l=void 0===o?{}:o,s=e.config,c=void 0===s?{}:s,f=n===ge,u=t.includes("fa-duotone")||t.includes("fad"),d="duotone"===c.familyDefault,h="fad"===a.prefix||"fa-duotone"===a.prefix;!f&&(u||d||h)&&(a.prefix="fad");(t.includes("fa-brands")||t.includes("fab"))&&(a.prefix="fab");if(!a.prefix&&gn.includes(n)){if(Object.keys(l).find(function(e){return vn.includes(e)})||c.autoFetchSvg){var m=Ee.get(n).defaultShortPrefixId;a.prefix=m,a.iconName=cn(a.prefix,a.iconName)||a.iconName}}"fa"!==a.prefix&&"fa"!==i||(a.prefix=un()||"fas");return a}({values:e,family:s,styles:Xt,config:Nt,canonical:c,givenPrefix:a})),function(e,t,n){var a=n.prefix,r=n.iconName;if(e||!a||!r)return{prefix:a,iconName:r};var i="fa"===t?fn(r):{},o=cn(a,r);r=i.iconName||o||r,"far"!==(a=i.prefix||a)||Xt.far||!Xt.fas||Nt.autoFetchSvg||(a="fas");return{prefix:a,iconName:r}}(n,a,c))}var gn=je.filter(function(e){return e!==pe||e!==ge}),vn=Object.keys(Ue).filter(function(e){return e!==pe}).map(function(e){return Object.keys(Ue[e])}).flat();var bn=function(){return H(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}},[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];var r=n.reduce(this._pullDefinitions,{});Object.keys(r).forEach(function(t){e.definitions[t]=Q(Q({},e.definitions[t]||{}),r[t]),Qt(t,r[t]);var n=dt[pe][t];n&&Qt(n,r[t]),ln()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map(function(t){var a=n[t],r=a.prefix,i=a.iconName,o=a.icon,l=o[2];e[r]||(e[r]={}),l.length>0&&l.forEach(function(t){"string"==typeof t&&(e[r][t]=o)}),e[r][i]=o}),e}}])}(),yn=[],wn={},xn={},kn=Object.keys(xn);function Nn(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];return(wn[e]||[]).forEach(function(e){t=e.apply(null,[t].concat(a))}),t}function Sn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];(wn[e]||[]).forEach(function(e){e.apply(null,n)})}function Cn(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return xn[e]?xn[e].apply(null,t):void 0}function Tn(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||un();if(t)return t=cn(n,t)||t,Ht(_n.definitions,n,t)||Ht(Lt.styles,n,t)}var _n=new bn,Mn={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ue?(Sn("beforeI2svg",e),Cn("pseudoElements2svg",e),Cn("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.autoReplaceSvgRoot;!1===Nt.autoReplaceSvg&&(Nt.autoReplaceSvg=!0),Nt.observeMutations=!0,e=function(){Fn({autoReplaceSvgRoot:n}),Sn("watch",t)},ue&&($t?setTimeout(e,0):Bt.push(e))}},Pn={noAuto:function(){Nt.autoReplaceSvg=!1,Nt.observeMutations=!1,Sn("noAuto")},config:Nt,dom:Mn,parse:{icon:function(e){if(null===e)return null;if("object"===K(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:cn(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=dn(e[0]);return{prefix:n,iconName:cn(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(Nt.cssPrefix,"-"))>-1||e.match(mt))){var a=pn(e.split(" "),{skipLookups:!0});return{prefix:a.prefix||un(),iconName:cn(a.prefix,a.iconName)||a.iconName}}if("string"==typeof e){var r=un();return{prefix:r,iconName:cn(r,e)||e}}}},library:_n,findIconDefinition:Tn,toHtml:Vt},Fn=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?le:e;(Object.keys(Lt.styles).length>0||Nt.autoFetchSvg)&&ue&&Nt.autoReplaceSvg&&Pn.dom.i2svg({node:t})};function Rn(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(e){return Vt(e)})}}),Object.defineProperty(e,"node",{get:function(){if(ue){var t=le.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function In(e){var t=e.icons,n=t.main,a=t.mask,r=e.prefix,i=e.iconName,o=e.transform,l=e.symbol,s=e.maskId,c=e.extra,f=e.watchable,u=void 0!==f&&f,d=a.found?a:n,h=d.width,m=d.height,p=[Nt.replacementClass,i?"".concat(Nt.cssPrefix,"-").concat(i):""].filter(function(e){return-1===c.classes.indexOf(e)}).filter(function(e){return""!==e||!!e}).concat(c.classes).join(" "),g={children:[],attributes:Q(Q({},c.attributes),{},{"data-prefix":r,"data-icon":i,class:p,role:c.attributes.role||"img",viewBox:"0 0 ".concat(h," ").concat(m)})};(function(e){return["aria-label","aria-labelledby","title","role"].some(function(t){return t in e})})(c.attributes)||c.attributes["aria-hidden"]||(g.attributes["aria-hidden"]="true"),u&&(g.attributes[Ge]="");var v=Q(Q({},g),{},{prefix:r,iconName:i,main:n,mask:a,maskId:s,transform:o,symbol:l,styles:Q({},c.styles)}),b=a.found&&n.found?Cn("generateAbstractMask",v)||{children:[],attributes:{}}:Cn("generateAbstractIcon",v)||{children:[],attributes:{}},y=b.children,w=b.attributes;return v.children=y,v.attributes=w,l?function(e){var t=e.prefix,n=e.iconName,a=e.children,r=e.attributes,i=e.symbol,o=!0===i?"".concat(t,"-").concat(Nt.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Q(Q({},r),{},{id:o}),children:a}]}]}(v):function(e){var t=e.children,n=e.main,a=e.mask,r=e.attributes,i=e.styles,o=e.transform;if(It(o)&&n.found&&!a.found){var l={x:n.width/n.height/2,y:.5};r.style=Rt(Q(Q({},i),{},{"transform-origin":"".concat(l.x+o.x/16,"em ").concat(l.y+o.y/16,"em")}))}return[{tag:"svg",attributes:r,children:t}]}(v)}function jn(e){var t=e.content,n=e.width,a=e.height,r=e.transform,i=e.extra,o=e.watchable,l=void 0!==o&&o,s=Q(Q({},i.attributes),{},{class:i.classes.join(" ")});l&&(s[Ge]="");var c=Q({},i.styles);It(r)&&(c.transform=function(e){var t=e.transform,n=e.width,a=void 0===n?16:n,r=e.height,i=void 0===r?16:r,o="";return o+=de?"translate(".concat(t.x/Ct-a/2,"em, ").concat(t.y/Ct-i/2,"em) "):"translate(calc(-50% + ".concat(t.x/Ct,"em), calc(-50% + ").concat(t.y/Ct,"em)) "),o+="scale(".concat(t.size/Ct*(t.flipX?-1:1),", ").concat(t.size/Ct*(t.flipY?-1:1),") "),o+"rotate(".concat(t.rotate,"deg) ")}({transform:r,width:n,height:a}),c["-webkit-transform"]=c.transform);var f=Rt(c);f.length>0&&(s.style=f);var u=[];return u.push({tag:"span",attributes:s,children:[t]}),u}var En=Lt.styles;function An(e){var t=e[0],n=e[1],a=X(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(a)?{tag:"g",attributes:{class:"".concat(Nt.cssPrefix,"-").concat(bt.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Nt.cssPrefix,"-").concat(bt.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(Nt.cssPrefix,"-").concat(bt.PRIMARY),fill:"currentColor",d:a[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:a}}}}var Dn={found:!1,width:512,height:512};function On(e,t){var n=t;return"fa"===t&&null!==Nt.styleDefault&&(t=un()),new Promise(function(a,r){if("fa"===n){var i=fn(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&En[t]&&En[t][e])return a(An(En[t][e]));!function(e,t){it||Nt.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),a(Q(Q({},Dn),{},{icon:Nt.showMissingIcons&&e&&Cn("missingIconAbstract")||{}}))})}var Ln=function(){},Bn=Nt.measurePerformance&&ce&&ce.mark&&ce.measure?ce:{mark:Ln,measure:Ln},zn='FA "7.1.0"',$n=function(e){Bn.mark("".concat(zn," ").concat(e," ends")),Bn.measure("".concat(zn," ").concat(e),"".concat(zn," ").concat(e," begins"),"".concat(zn," ").concat(e," ends"))},Vn=function(e){return Bn.mark("".concat(zn," ").concat(e," begins")),function(){return $n(e)}},Hn=function(){};function Wn(e){return"string"==typeof(e.getAttribute?e.getAttribute(Ge):null)}function Un(e){return le.createElementNS("http://www.w3.org/2000/svg",e)}function Jn(e){return le.createElement(e)}function Qn(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===t?"svg"===e.tag?Un:Jn:t;if("string"==typeof e)return le.createTextNode(e);var a=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(t){a.setAttribute(t,e.attributes[t])}),(e.children||[]).forEach(function(e){a.appendChild(Qn(e,{ceFn:n}))}),a}var Xn={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(e){t.parentNode.insertBefore(Qn(e),t)}),null===t.getAttribute(Ge)&&Nt.keepOriginalSource){var n=le.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~Pt(t).indexOf(Nt.replacementClass))return Xn.replace(e);var a=new RegExp("".concat(Nt.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var r=n[0].attributes.class.split(" ").reduce(function(e,t){return t===Nt.replacementClass||t.match(a)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});n[0].attributes.class=r.toSvg.join(" "),0===r.toNode.length?t.removeAttribute("class"):t.setAttribute("class",r.toNode.join(" "))}var i=n.map(function(e){return Vt(e)}).join("\n");t.setAttribute(Ge,""),t.innerHTML=i}};function Yn(e){e()}function Zn(e,t){var n="function"==typeof t?t:Hn;if(0===e.length)n();else{var a=Yn;"async"===Nt.mutateApproach&&(a=oe.requestAnimationFrame||Yn),a(function(){var t=!0===Nt.autoReplaceSvg?Xn.replace:Xn[Nt.autoReplaceSvg]||Xn.replace,a=Vn("mutate");e.map(t),a(),n()})}}var Kn=!1;function Gn(){Kn=!0}function qn(){Kn=!1}var ea=null;function ta(e){if(se&&Nt.observeMutations){var t=e.treeCallback,n=void 0===t?Hn:t,a=e.nodeCallback,r=void 0===a?Hn:a,i=e.pseudoElementsCallback,o=void 0===i?Hn:i,l=e.observeMutationsRoot,s=void 0===l?le:l;ea=new se(function(e){if(!Kn){var t=un();Mt(e).forEach(function(e){if("childList"===e.type&&e.addedNodes.length>0&&!Wn(e.addedNodes[0])&&(Nt.searchPseudoElements&&o(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&Nt.searchPseudoElements&&o([e.target],!0),"attributes"===e.type&&Wn(e.target)&&~vt.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(et):null,n=e.getAttribute?e.getAttribute(tt):null;return t&&n}(e.target)){var a=pn(Pt(e.target)),i=a.prefix,l=a.iconName;e.target.setAttribute(et,i||t),l&&e.target.setAttribute(tt,l)}else(s=e.target)&&s.classList&&s.classList.contains&&s.classList.contains(Nt.replacementClass)&&r(e.target);var s})}}),ue&&ea.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function na(e){var t,n,a=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),i=void 0!==e.innerText?e.innerText.trim():"",o=pn(Pt(e));return o.prefix||(o.prefix=un()),a&&r&&(o.prefix=a,o.iconName=r),o.iconName&&o.prefix||(o.prefix&&i.length>0&&(o.iconName=(t=o.prefix,n=e.innerText,(en[t]||{})[n]||sn(o.prefix,Ut(e.innerText)))),!o.iconName&&Nt.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function aa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=na(e),a=n.iconName,r=n.prefix,i=n.rest,o=function(e){return Mt(e.attributes).reduce(function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e},{})}(e),l=Nn("parseNodeAttributes",{},e),s=t.styleParser?function(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(e,t){var n=t.split(":"),a=n[0],r=n.slice(1);return a&&r.length>0&&(e[a]=r.join(":").trim()),e},{})),n}(e):[];return Q({iconName:a,prefix:r,transform:Tt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:o}},l)}var ra=Lt.styles;function ia(e){var t="nest"===Nt.autoReplaceSvg?aa(e,{styleParser:!1}):aa(e);return~t.extra.classes.indexOf(pt)?Cn("generateLayersText",e,t):Cn("generateSvgReplacementMutation",e,t)}function oa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!ue)return Promise.resolve();var n=le.documentElement.classList,a=function(e){return n.add("".concat(nt,"-").concat(e))},r=function(e){return n.remove("".concat(nt,"-").concat(e))},i=Nt.autoFetchSvg?[].concat(Y(Ae),Y(Je)):me.concat(Object.keys(ra));i.includes("fa")||i.push("fa");var o=[".".concat(pt,":not([").concat(Ge,"])")].concat(i.map(function(e){return".".concat(e,":not([").concat(Ge,"])")})).join(", ");if(0===o.length)return Promise.resolve();var l=[];try{l=Mt(e.querySelectorAll(o))}catch(e){}if(!(l.length>0))return Promise.resolve();a("pending"),r("complete");var s=Vn("onTree"),c=l.reduce(function(e,t){try{var n=ia(t);n&&e.push(n)}catch(e){it||"MissingIcon"===e.name&&console.error(e)}return e},[]);return new Promise(function(e,n){Promise.all(c).then(function(n){Zn(n,function(){a("active"),a("complete"),r("pending"),"function"==typeof t&&t(),s(),e()})}).catch(function(e){s(),n(e)})})}function la(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ia(e).then(function(e){e&&Zn([e],t)})}var sa=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,a=void 0===n?Tt:n,r=t.symbol,i=void 0!==r&&r,o=t.mask,l=void 0===o?null:o,s=t.maskId,c=void 0===s?null:s,f=t.classes,u=void 0===f?[]:f,d=t.attributes,h=void 0===d?{}:d,m=t.styles,p=void 0===m?{}:m;if(e){var g=e.prefix,v=e.iconName,b=e.icon;return Rn(Q({type:"icon"},e),function(){return Sn("beforeDOMElementCreation",{iconDefinition:e,params:t}),In({icons:{main:An(b),mask:l?An(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g,iconName:v,transform:Q(Q({},Tt),a),symbol:i,maskId:c,extra:{attributes:h,styles:p,classes:u}})})}},ca={mixout:function(){return{icon:(e=sa,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(t||{}).icon?t:Tn(t||{}),r=n.mask;return r&&(r=(r||{}).icon?r:Tn(r||{})),e(a,Q(Q({},n),{},{mask:r}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=oa,e.nodeCallback=la,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?le:t,a=e.callback;return oa(n,void 0===a?function(){}:a)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,a=t.prefix,r=t.transform,i=t.symbol,o=t.mask,l=t.maskId,s=t.extra;return new Promise(function(t,c){Promise.all([On(n,a),o.iconName?On(o.iconName,o.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(o){var c=X(o,2),f=c[0],u=c[1];t([e,In({icons:{main:f,mask:u},prefix:a,iconName:n,transform:r,symbol:i,maskId:l,extra:s,watchable:!0})])}).catch(c)})},e.generateAbstractIcon=function(e){var t,n=e.children,a=e.attributes,r=e.main,i=e.transform,o=Rt(e.styles);return o.length>0&&(a.style=o),It(i)&&(t=Cn("generateAbstractTransformGrouping",{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),n.push(t||r.icon),{children:n,attributes:a}}}},fa={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,a=void 0===n?[]:n;return Rn({type:"layer"},function(){Sn("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e(function(e){Array.isArray(e)?e.map(function(e){n=n.concat(e.abstract)}):n=n.concat(e.abstract)}),[{tag:"span",attributes:{class:["".concat(Nt.cssPrefix,"-layers")].concat(Y(a)).join(" ")},children:n}]})}}}},ua={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.title;var n=t.classes,a=void 0===n?[]:n,r=t.attributes,i=void 0===r?{}:r,o=t.styles,l=void 0===o?{}:o;return Rn({type:"counter",content:e},function(){return Sn("beforeDOMElementCreation",{content:e,params:t}),function(e){var t=e.content,n=e.extra,a=Q(Q({},n.attributes),{},{class:n.classes.join(" ")}),r=Rt(n.styles);r.length>0&&(a.style=r);var i=[];return i.push({tag:"span",attributes:a,children:[t]}),i}({content:e.toString(),extra:{attributes:i,styles:l,classes:["".concat(Nt.cssPrefix,"-layers-counter")].concat(Y(a))}})})}}}},da={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,a=void 0===n?Tt:n,r=t.classes,i=void 0===r?[]:r,o=t.attributes,l=void 0===o?{}:o,s=t.styles,c=void 0===s?{}:s;return Rn({type:"text",content:e},function(){return Sn("beforeDOMElementCreation",{content:e,params:t}),jn({content:e,transform:Q(Q({},Tt),a),extra:{attributes:l,styles:c,classes:["".concat(Nt.cssPrefix,"-layers-text")].concat(Y(i))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.transform,a=t.extra,r=null,i=null;if(de){var o=parseInt(getComputedStyle(e).fontSize,10),l=e.getBoundingClientRect();r=l.width/o,i=l.height/o}return Promise.resolve([e,jn({content:e.innerHTML,width:r,height:i,transform:n,extra:a,watchable:!0})])}}},ha=new RegExp('"',"ug"),ma=[1105920,1112319],pa=Q(Q(Q(Q({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),ga=Object.keys(pa).reduce(function(e,t){return e[t.toLowerCase()]=pa[t],e},{}),va=Object.keys(ga).reduce(function(e,t){var n=ga[t];return e[t]=n[900]||Y(Object.entries(n))[0][1],e},{});function ba(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise(function(a,r){if(null!==e.getAttribute(n))return a();var i,o,l,s=Mt(e.children).filter(function(e){return e.getAttribute(qe)===t})[0],c=oe.getComputedStyle(e,t),f=c.getPropertyValue("font-family"),u=f.match(gt),d=c.getPropertyValue("font-weight"),h=c.getPropertyValue("content");if(s&&!u)return e.removeChild(s),a();if(u&&"none"!==h&&""!==h){var m=c.getPropertyValue("content"),p=function(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),a=parseInt(t),r=isNaN(a)?"normal":a;return(ga[n]||{})[r]||va[n]}(f,d),g=function(e){return Ut(Y(e.replace(ha,""))[0]||"")}(m),v=u[0].startsWith("FontAwesome"),b=function(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content").replace(ha,""),a=n.codePointAt(0),r=a>=ma[0]&&a<=ma[1],i=2===n.length&&n[0]===n[1];return r||i||t}(c),y=sn(p,g),w=y;if(v){var x=(o=nn[i=g],l=sn("fas",i),o||(l?{prefix:"fas",iconName:l}:null)||{prefix:null,iconName:null});x.iconName&&x.prefix&&(y=x.iconName,p=x.prefix)}if(!y||b||s&&s.getAttribute(et)===p&&s.getAttribute(tt)===w)a();else{e.setAttribute(n,w),s&&e.removeChild(s);var k={iconName:null,prefix:null,transform:Tt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},N=k.extra;N.attributes[qe]=t,On(y,p).then(function(r){var i=In(Q(Q({},k),{},{icons:{main:r,mask:{prefix:null,iconName:null,rest:[]}},prefix:p,iconName:w,extra:N,watchable:!0})),o=le.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(o,e.firstChild):e.appendChild(o),o.outerHTML=i.map(function(e){return Vt(e)}).join("\n"),e.removeAttribute(n),a()}).catch(r)}}else a()})}function ya(e){return Promise.all([ba(e,"::before"),ba(e,"::after")])}function wa(e){return!(e.parentNode===document.head||~at.indexOf(e.tagName.toUpperCase())||e.getAttribute(qe)||e.parentNode&&"svg"===e.parentNode.tagName)}var xa=function(e){return!!e&&rt.some(function(t){return e.includes(t)})},ka=function(e){if(!e)return[];var t=new Set,n=e.split(/,(?![^()]*\))/).map(function(e){return e.trim()});n=n.flatMap(function(e){return e.includes("(")?e:e.split(",").map(function(e){return e.trim()})});var a,r=W(n);try{for(r.s();!(a=r.n()).done;){var i=a.value;if(xa(i)){var o=rt.reduce(function(e,t){return e.replace(t,"")},i);""!==o&&"*"!==o&&t.add(o)}}}catch(e){r.e(e)}finally{r.f()}return t};function Na(e){if(ue){var t;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])t=e;else if(Nt.searchPseudoElementsFullScan)t=e.querySelectorAll("*");else{var n,a=new Set,r=W(document.styleSheets);try{for(r.s();!(n=r.n()).done;){var i=n.value;try{var o,l=W(i.cssRules);try{for(l.s();!(o=l.n()).done;){var s,c=o.value,f=W(ka(c.selectorText));try{for(f.s();!(s=f.n()).done;){var u=s.value;a.add(u)}}catch(e){f.e(e)}finally{f.f()}}}catch(e){l.e(e)}finally{l.f()}}catch(e){Nt.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(i.href," (").concat(e.message,')\nIf it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.'))}}}catch(e){r.e(e)}finally{r.f()}if(!a.size)return;var d=Array.from(a).join(", ");try{t=e.querySelectorAll(d)}catch(e){}}return new Promise(function(e,n){var a=Mt(t).filter(wa).map(ya),r=Vn("searchPseudoElements");Gn(),Promise.all(a).then(function(){r(),qn(),e()}).catch(function(){r(),qn(),n()})})}}var Sa={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=Na,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?le:t;Nt.searchPseudoElements&&Na(n)}}},Ca=!1,Ta=function(e){return e.toLowerCase().split(" ").reduce(function(e,t){var n=t.toLowerCase().split("-"),a=n[0],r=n.slice(1).join("-");if(a&&"h"===r)return e.flipX=!0,e;if(a&&"v"===r)return e.flipY=!0,e;if(r=parseFloat(r),isNaN(r))return e;switch(a){case"grow":e.size=e.size+r;break;case"shrink":e.size=e.size-r;break;case"left":e.x=e.x-r;break;case"right":e.x=e.x+r;break;case"up":e.y=e.y-r;break;case"down":e.y=e.y+r;break;case"rotate":e.rotate=e.rotate+r}return e},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},_a={mixout:function(){return{parse:{transform:function(e){return Ta(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=Ta(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,a=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(a/2," 256)")},o="translate(".concat(32*n.x,", ").concat(32*n.y,") "),l="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),s="rotate(".concat(n.rotate," 0 0)"),c={outer:i,inner:{transform:"".concat(o," ").concat(l," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}};return{tag:"g",attributes:Q({},c.outer),children:[{tag:"g",attributes:Q({},c.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Q(Q({},t.icon.attributes),c.path)}]}]}}}},Ma={x:0,y:0,width:"100%",height:"100%"};function Pa(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var Fa={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),a=n?pn(n.split(" ").map(function(e){return e.trim()})):{prefix:null,iconName:null,rest:[]};return a.prefix||(a.prefix=un()),e.mask=a,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,a=e.attributes,r=e.main,i=e.mask,o=e.maskId,l=e.transform,s=r.width,c=r.icon,f=i.width,u=i.icon,d=function(e){var t=e.transform,n=e.containerWidth,a=e.iconWidth,r={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(i," ").concat(o," ").concat(l)},path:{transform:"translate(".concat(a/2*-1," -256)")}}}({transform:l,containerWidth:f,iconWidth:s}),h={tag:"rect",attributes:Q(Q({},Ma),{},{fill:"white"})},m=c.children?{children:c.children.map(Pa)}:{},p={tag:"g",attributes:Q({},d.inner),children:[Pa(Q({tag:c.tag,attributes:Q(Q({},c.attributes),d.path)},m))]},g={tag:"g",attributes:Q({},d.outer),children:[p]},v="mask-".concat(o||_t()),b="clip-".concat(o||_t()),y={tag:"mask",attributes:Q(Q({},Ma),{},{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,g]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:(t=u,"g"===t.tag?t.children:[t])},y]};return n.push(w,{tag:"rect",attributes:Q({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(v,")")},Ma)}),{children:n,attributes:a}}}},Ra={provides:function(e){var t=!1;oe.matchMedia&&(t=oe.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:Q(Q({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var r=Q(Q({},a),{},{attributeName:"opacity"}),i={tag:"circle",attributes:Q(Q({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||i.children.push({tag:"animate",attributes:Q(Q({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Q(Q({},r),{},{values:"1;0;1;1;0;1;"})}),e.push(i),e.push({tag:"path",attributes:Q(Q({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Q(Q({},r),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:Q(Q({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Q(Q({},r),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){var n=t.mixoutsTo;yn=e,wn={},Object.keys(xn).forEach(function(e){-1===kn.indexOf(e)&&delete xn[e]}),yn.forEach(function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(function(e){"function"==typeof t[e]&&(n[e]=t[e]),"object"===K(t[e])&&Object.keys(t[e]).forEach(function(a){n[e]||(n[e]={}),n[e][a]=t[e][a]})}),e.hooks){var a=e.hooks();Object.keys(a).forEach(function(e){wn[e]||(wn[e]=[]),wn[e].push(a[e])})}e.provides&&e.provides(xn)})}([Dt,ca,fa,ua,da,Sa,{mixout:function(){return{dom:{unwatch:function(){Gn(),Ca=!0}}}},hooks:function(){return{bootstrap:function(){ta(Nn("mutationObserverCallbacks",{}))},noAuto:function(){ea&&ea.disconnect()},watch:function(e){var t=e.observeMutationsRoot;Ca?qn():ta(Nn("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},_a,Fa,Ra,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),a=null!==n&&(""===n||n);return e.symbol=a,e}}}}],{mixoutsTo:Pn});var Ia=Pn.config,ja=Pn.parse,Ea=Pn.icon;function Aa(e){return t=e,(t-=0)==t?e:(e=e.replace(/[_-]+(.)?/g,(e,t)=>t?t.toUpperCase():"")).charAt(0).toLowerCase()+e.slice(1);var t}function Da(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Oa=new Map;function La(e){if(Oa.has(e))return Oa.get(e);const t={};let n=0;const a=e.length;for(;n<a;){const r=e.indexOf(";",n),i=-1===r?a:r,o=e.slice(n,i).trim();if(o){const e=o.indexOf(":");if(e>0){const n=o.slice(0,e).trim(),a=o.slice(e+1).trim();if(n&&a){const e=Aa(n);t[e.startsWith("webkit")?Da(e):e]=a}}}n=i+1}if(1e3===Oa.size){const e=Oa.keys().next().value;e&&Oa.delete(e)}return Oa.set(e,t),t}var Ba=function e(t,n,a={}){if("string"==typeof n)return n;const r=(n.children||[]).map(n=>e(t,n)),i=n.attributes||{},o={};for(const[e,t]of Object.entries(i))switch(!0){case"class"===e:o.className=t;break;case"style"===e:o.style=La(String(t));break;case e.startsWith("aria-"):case e.startsWith("data-"):o[e.toLowerCase()]=t;break;default:o[Aa(e)]=t}const{style:l,role:s,"aria-label":c,...f}=a;return l&&(o.style=o.style?{...o.style,...l}:l),s&&(o.role=s),c&&(o["aria-label"]=c,o["aria-hidden"]="false"),t(n.tag,{...f,...o},...r)}.bind(null,a.createElement),za=(e,t)=>{const n=r();return e||(t?n:void 0)};"undefined"!=typeof process&&process.env.FA_VERSION;var $a="searchPseudoElementsFullScan"in Ia?"7.0.0":"6.0.0",Va=Number.parseInt($a)>=7,Ha="fa",Wa="fa-beat",Ua="fa-fade",Ja="fa-beat-fade",Qa="fa-bounce",Xa="fa-shake",Ya="fa-spin",Za="fa-spin-pulse",Ka="fa-spin-reverse",Ga="fa-pulse",qa={left:"fa-pull-left",right:"fa-pull-right"},er={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},tr={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},nr="fa-border",ar="fa-fw",rr="fa-flip",ir="fa-flip-horizontal",or="fa-flip-vertical",lr="fa-inverse",sr="fa-rotate-by",cr="fa-swap-opacity",fr="fa-width-auto";function ur(e){const t=Ia.cssPrefix||Ia.familyPrefix||Ha;return t===Ha?e:e.replace(new RegExp(String.raw`(?<=^|\s)${Ha}-`,"g"),`${t}-`)}function dr(e){if(e)return(e=>"object"==typeof e&&"icon"in e&&!!e.icon)(e)?e:ja.icon(e)}var hr=new class{constructor(e="react-fontawesome"){this.enabled=!1;let t=!1;try{t="undefined"!=typeof process&&"development"===process.env.NODE_ENV}catch{}this.scope=e,this.enabled=t}log(...e){this.enabled&&console.log(`[${this.scope}]`,...e)}warn(...e){this.enabled&&console.warn(`[${this.scope}]`,...e)}error(...e){this.enabled&&console.error(`[${this.scope}]`,...e)}}("FontAwesomeIcon"),mr={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},pr=new Set(Object.keys(mr)),gr=a.forwardRef((e,t)=>{const n={...mr,...e},{icon:a,mask:r,symbol:i,title:o,titleId:l,maskId:s,transform:c}=n,f=za(s,Boolean(r)),u=za(l,Boolean(o)),d=dr(a);if(!d)return hr.error("Icon lookup is undefined",a),null;const h=function(e){const{beat:t,fade:n,beatFade:a,bounce:r,shake:i,spin:o,spinPulse:l,spinReverse:s,pulse:c,fixedWidth:f,inverse:u,border:d,flip:h,size:m,rotation:p,pull:g,swapOpacity:v,rotateBy:b,widthAuto:y,className:w}=e,x=[];return w&&x.push(...w.split(" ")),t&&x.push(Wa),n&&x.push(Ua),a&&x.push(Ja),r&&x.push(Qa),i&&x.push(Xa),o&&x.push(Ya),s&&x.push(Ka),l&&x.push(Za),c&&x.push(Ga),f&&x.push(ar),u&&x.push(lr),d&&x.push(nr),!0===h&&x.push(rr),"horizontal"!==h&&"both"!==h||x.push(ir),"vertical"!==h&&"both"!==h||x.push(or),null!=m&&x.push(tr[m]),null!=p&&0!==p&&x.push(er[p]),null!=g&&x.push(qa[g]),v&&x.push(cr),Va?(b&&x.push(sr),y&&x.push(fr),(Ia.cssPrefix||Ia.familyPrefix||Ha)===Ha?x:x.map(ur)):x}(n),m="string"==typeof c?ja.transform(c):c,p=dr(r),g=Ea(d,{...h.length>0&&{classes:h},...m&&{transform:m},...p&&{mask:p},symbol:i,title:o,titleId:u,maskId:f});if(!g)return hr.error("Could not find icon",d),null;const{abstract:v}=g,b={ref:t};for(const e of(y=n,Object.keys(y)))pr.has(e)||(b[e]=n[e]);var y;return Ba(v[0],b)});gr.displayName="FontAwesomeIcon";var vr={box:"Box-module_box__SQLj3",collapseBox:"Box-module_collapseBox__5A5Fc",padding:"Box-module_padding__dIJ-L",collapsedContent:"Box-module_collapsedContent__yn-0g",collapseTitle:"Box-module_collapseTitle__-R0ge",collapseIcon:"Box-module_collapseIcon__OAiTO",collapsed:"Box-module_collapsed__nf76f"};function br(t){const{children:n,noPadding:a,className:r="",theme:i="dark"}=t;return e("div",{className:`${vr.box} ${a?"":vr.padding} ${r}`,"data-theme":i,children:n})}$.bind(vr);const yr=["dotnetspy","ebpfspy","gospy","phpspy","pyspy","rbspy","nodespy","javaspy","pyroscope-rs","scrape","tracing","unknown"],wr=S.preprocess(e=>e&&yr.includes(e)?e:"unknown",S.enum(yr).default("unknown")),xr=["samples","objects","goroutines","bytes","lock_samples","lock_nanoseconds","trace_samples","exceptions"],kr=S.preprocess(e=>"string"==typeof e&&xr.includes(e)?e:"unknown",S.enum(["samples","objects","goroutines","bytes","lock_samples","lock_nanoseconds","trace_samples","exceptions","unknown"])),Nr=S.object({names:S.array(S.preprocess(e=>e||"unknown",S.string().min(1))),levels:S.array(S.array(S.number())),numTicks:S.number(),maxSelf:S.number()}),Sr=S.object({appName:S.string().optional(),name:S.string().optional(),startTime:S.number().optional(),endTime:S.number().optional(),query:S.string().optional(),maxNodes:S.number().optional(),format:S.enum(["single","double"]),sampleRate:S.number(),spyName:wr,units:kr});S.object({version:S.number().min(1).max(1).default(1),flamebearer:Nr,metadata:Sr,leftTicks:S.number().optional(),rightTicks:S.number().optional()});const Cr={format:"single",jStep:4,jName:3,getBarOffset:(e,t)=>e[t],getBarTotal:(e,t)=>e[t+1],getBarTotalDiff:(e,t)=>0,getBarSelf:(e,t)=>e[t+2],getBarSelfDiff:(e,t)=>0,getBarName:(e,t)=>e[t+3]},Tr={format:"double",jStep:7,jName:6,getBarOffset:(e,t)=>e[t]+e[t+3],getBarTotal:(e,t)=>e[t+4]+e[t+1],getBarTotalLeft:(e,t)=>e[t+1],getBarTotalRght:(e,t)=>e[t+4],getBarTotalDiff:(e,t)=>e[t+4]-e[t+1],getBarSelf:(e,t)=>e[t+5]+e[t+2],getBarSelfLeft:(e,t)=>e[t+2],getBarSelfRght:(e,t)=>e[t+5],getBarSelfDiff:(e,t)=>e[t+5]-e[t+2],getBarName:(e,t)=>e[t+6]};function _r(e){switch(e){case"single":return Cr;case"double":return Tr;default:throw new Error(`Unsupported type: '${e}'`)}}const Mr=S.object({refType:S.string(),traceID:S.string(),spanID:S.string()}),Pr=S.object({key:S.string(),type:S.string(),value:S.union([S.boolean(),S.number(),S.string()])}),Fr=S.object({traceID:S.string(),spanID:S.string(),flags:S.string(),operationName:S.string(),references:S.array(Mr),startTime:S.number(),duration:S.number(),tags:S.array(Pr),logs:S.object({timestamp:S.number(),fields:S.array(Pr)}),processID:S.string(),warnings:S.any()}),Rr=S.object({serviceName:S.string(),tags:S.array(Pr)});S.object({traceID:S.string(),spans:S.array(Fr),processes:S.record(Rr),warnings:S.any()});const Ir=S.object({watermark:S.object({}).optional(),startTime:S.number(),samples:S.array(S.number()),durationDelta:S.number()});S.record(S.string(),Ir);const jr=22,Er=21.5;function Ar(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function Dr(e){if(null==e)return null;if("number"==typeof e)return{value:e,unit:"",hasLessThan:!1,sign:""};let t=String(e).trim().replace(/\u2212/g,"-");if(!t)return null;let n=!1;t.startsWith("<")&&(n=!0,t=t.slice(1).trim());const a=t.match(/^([+\-]?)(\d*\.?\d+)\s*(.*)$/);if(!a)return null;const r=a[1]||"",i=a[2],o=(a[3]||"").trim(),l=parseFloat(i);return Number.isFinite(l)?{value:l,unit:o,hasLessThan:n,sign:r}:null}function Or(e,t=!1){if(!e||!t)return e;const n=Dr(e);if(!n)return e;const{unit:a}=n;let r=a;const i=a.toLowerCase();"ms"===i?r="毫秒":"μs"===i||"µs"===i||"us"===i?r="微秒":"second"===i||"seconds"===i?r="秒":"minute"===i||"minutes"===i||"min"===i||"mins"===i?r="分钟":"hour"===i||"hours"===i?r="小时":"day"===i||"days"===i?r="天":"month"===i||"months"===i?r="月":"year"!==i&&"years"!==i||(r="年");const o=String(e).match(/^([<\s]*)([+\-]?\d*\.?\d+)(.*)$/);if(!o)return e;return`${o[1]||""}${o[2]||""} ${r}`.trim()}const Lr=[{value:1e15,label:"Quad"},{value:1e12,label:"Tri"},{value:1e9,label:"B"},{value:1e6,label:"M"},{value:1e3,label:"K"}];function Br(e){return Math.round(1e4*e)/100}function zr(e,t){return(t-e)/e*100}function $r(e,t,n){switch(n){case"samples":return new Vr(e/t);case"objects":case"goroutines":case"lock_samples":case"exceptions":return new Wr(e);case"bytes":return new Ur(e);case"lock_nanoseconds":return new Hr(e);case"trace_samples":return new Vr(e/t,"",!0);default:return console.warn(`Unsupported unit: '${n}'. Defaulting to ''`),new Vr(e/t," ")}}class Vr{constructor(e,t,n){this.divider=1,this.enableSubsecondPrecision=!1,this.suffix="second",this.durations=[[60,"minute"],[60,"hour"],[24,"day"],[30,"month"],[12,"year"]],this.units="",n&&(this.enableSubsecondPrecision=n,this.durations=[[1e3,"ms"],[1e3,"second"],...this.durations],this.suffix="μs",e*=1e6),this.units=t||"";for(let t=0;t<this.durations.length;t++){const n=this.durations[t];if(!n){console.warn("Could not calculate level");break}if(!(e>=n[0]))break;this.divider*=n[0],e/=n[0],this.suffix=n[1]}}format(e,t,n=!0){this.enableSubsecondPrecision&&(t/=1e6);const a=e/t/this.divider;let r=a.toFixed(2);return 0===a?r="0.00":(a>=0&&a<.01||a<=0&&a>-.01)&&(r="< 0.01"),n?`${r} ${this.units||`${this.suffix}${1===a||2===this.suffix.length?"":"s"}`}`:r}formatPrecise(e,t){this.enableSubsecondPrecision&&(t/=1e6);const n=e/t/this.divider;return`${parseFloat(n.toFixed(5))} ${this.units||`${this.suffix}${1===n||2===this.suffix.length?"":"s"}`}`}}class Hr{constructor(e){this.divider=1,this.multiplier=1,this.suffix="second",this.durations=[[60,"minute"],[60,"hour"],[24,"day"],[30,"month"],[12,"year"]],e/=1e9;for(let t=0;t<this.durations.length;t++){const n=this.durations[t];if(!n){console.warn("Could not calculate level");break}if(!(e>=n[0]))break;this.divider*=n[0],e/=n[0],this.suffix=n[1]}}format(e){const t=e/1e9/this.divider;let n=t.toFixed(2);return(t>=0&&t<.01||t<=0&&t>-.01)&&(n="< 0.01"),`${n} ${this.suffix}${1===t?"":"s"}`}formatPrecise(e){const t=e/1e9/this.divider;return`${parseFloat(t.toFixed(5))} ${this.suffix}${1===t?"":"s"}`}}class Wr{constructor(e){this.divider=1,this.suffix="",this.objects=[[1e3,"K"],[1e3,"M"],[1e3,"G"],[1e3,"T"],[1e3,"P"]];for(let t=0;t<this.objects.length;t++){const n=this.objects[t];if(!n){console.warn("Could not calculate level");break}if(!(e>=n[0]))break;this.divider*=n[0],e/=n[0],this.suffix=n[1]}}format(e){const t=e/this.divider;let n=t.toFixed(2);return(t>=0&&t<.01||t<=0&&t>-.01)&&(n="< 0.01"),`${n} ${this.suffix}`}formatPrecise(e){const t=e/this.divider;return`${parseFloat(t.toFixed(5))} ${this.suffix}`}}class Ur{constructor(e){this.divider=1,this.suffix="bytes",this.bytes=[[1024,"KB"],[1024,"MB"],[1024,"GB"],[1024,"TB"],[1024,"PB"]];for(let t=0;t<this.bytes.length;t++){const n=this.bytes[t];if(!n){console.warn("Could not calculate level");break}if(!(e>=n[0]))break;{this.divider*=n[0],e/=n[0];const t=n[1];t?this.suffix=t:(console.warn("Could not calculate suffix"),this.suffix="")}}}format(e){const t=e/this.divider;let n=t.toFixed(2);return(t>=0&&t<.01||t<=0&&t>-.01)&&(n="< 0.01"),`${n} ${this.suffix}`}formatPrecise(e){const t=e/this.divider;return`${parseFloat(t.toFixed(5))} ${this.suffix}`}}const Jr="TAIL",Qr="HEAD";function Xr({mode:e,charSize:t,rectWidth:n,fullText:a,shortText:r}){if(e===Jr){if(t*a.length<=n)return{mode:e,text:a,marginLeft:3};const i=t*r.length;return i<=n?{mode:e,text:r,marginLeft:3}:{mode:e,text:r,marginLeft:-(i-n+3)}}return{mode:e,text:a,marginLeft:3}}function Yr(e,t){if(e===t)return 0;if(0===e)return 100;const n=(t-e)/e*100;return n>100?100:n<-100?-100:n}function Zr(e,t){return C.rgb(e,e,e).alpha(t)}function Kr(e,t){if(0===t.length)return t;const n=function(e){switch(e){case"dotnetspy":return/^(?<packageName>.+)\.(.+)\.(.+)\(.*\)$/;case"ebpfspy":case"unknown":return/^(?<packageName>.+)$/;case"gospy":case"scrape":return/^(?<packageName>.*?\/.*?\.|.*?\.|.+)(?<functionName>.*)$/;case"phpspy":return/^(?<packageName>(.*\/)*)(?<filename>.*\.php+)(?<line_info>.*)$/;case"pyspy":return/^(?<packageName>(.*\/)*)(?<filename>.*\.py+)(?<line_info>.*)$/;case"rbspy":return/^(?<packageName>(.*\/)*)(?<filename>.*\.rb+)(?<line_info>.*)$/;case"nodespy":return/^(\.\/node_modules\/)?(?<packageName>[^/]*)(?<filename>.*\.?(jsx?|tsx?)?):(?<functionName>.*):(?<line_info>.*)$/;case"tracing":return/^(?<packageName>.+?):.*$/;case"javaspy":return/^(?<packageName>.+\/)(?<filename>.+\.)(?<functionName>.+)$/;case"pyroscope-rs":return/^(?<packageName>[^::]+)/}return/^(?<packageName>.+)$/}(e),a=t.match(n);return a&&a.groups?a.groups.packageName||"":t}function Gr(e,t){const n=function(e,t=0){let n,a,r,i,o,l,s,c;for(n=3&e.length,a=e.length-n,r=t,o=3432918353,l=461845907,c=0;c<a;)s=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24,++c,s=(65535&s)*o+(((s>>>16)*o&65535)<<16)&4294967295,s=s<<15|s>>>17,s=(65535&s)*l+(((s>>>16)*l&65535)<<16)&4294967295,r^=s,r=r<<13|r>>>19,i=5*(65535&r)+((5*(r>>>16)&65535)<<16)&4294967295,r=27492+(65535&i)+(((i>>>16)+58964&65535)<<16);switch(s=0,n){case 3:s^=(255&e.charCodeAt(c+2))<<16;case 2:s^=(255&e.charCodeAt(c+1))<<8;case 1:s^=255&e.charCodeAt(c);default:s=(65535&s)*o+(((s>>>16)*o&65535)<<16)&4294967295,s=s<<15|s>>>17,s=(65535&s)*l+(((s>>>16)*l&65535)<<16)&4294967295,r^=s}return r^=e.length,r^=r>>>16,r=2246822507*(65535&r)+((2246822507*(r>>>16)&65535)<<16)&4294967295,r^=r>>>13,r=3266489909*(65535&r)+((3266489909*(r>>>16)&65535)<<16)&4294967295,r^=r>>>16,r>>>0}(t,0),a=n%e.colors.length,r=e.colors[a];return r||(console.warn("Could not calculate color. Defaulting to the first one"),e.colors[0])}function qr(e){const{goodColor:t,neutralColor:n,badColor:a}=e,r=T().domain([-100,0,100]).range([t.rgb().toString(),n.rgb().toString(),a.rgb().toString()]);return e=>C(r(e).toString())}C.rgb(148,142,142),C.rgb(200,0,0),C.rgb(0,170,0),C("#48CE73");const ei={collapsedLevelsSingular:"total (1 level collapsed)",collapsedLevelsPlural:"total ({n} levels collapsed)",isZh:!1};function ti(e){const t=!1!==e.renderRects,n=!1!==e.renderText,{canvas:a,fitMode:r,units:i,tickToX:o,levels:l,palette:s}=e,{numTicks:c,sampleRate:f,pxPerTick:u}=e,{rangeMin:d,rangeMax:h}=e,{focusedNode:m,zoom:p}=e,g=e.messages||ei,v=function(e){return e.clientWidth||e.width}(a);if(a.width=v,d>=h)throw new Error("'rangeMin' should be strictly smaller than 'rangeMax'");const{format:b}=e,y=_r(b),w=a.getContext("2d");if(!w)throw new Error("Could not get ctx");const x=p.mapOrElse(()=>0,e=>e.i),k=$r(c,f,i),N=m.isJust,S=m.mapOrElse(()=>0,e=>e.i),C=N?Er:0,T=!!e.highlightQuery&&e.highlightQuery.length>0,_=jr*(l.length-S)+(N?Er:0);a.height=_,devicePixelRatio>1&&(a.width*=2,a.height*=2,w.scale(2,2)),w.textBaseline="middle",w.font="400 11.5px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace";const M=w.measureText("a").width,{names:P}=e,F=new Map,R=T?function(e,t){const n=t.toLowerCase(),a=new Uint8Array(e.length);for(let t=1;t<e.length;t+=1){const r=e[t];r&&(r.toLowerCase().includes(n)&&(a[t]=1))}return a}(P,e.highlightQuery):null,I="single"===e.format?function(e,t,n){const a=new Array(e.length);for(let r=0;r<e.length;r+=1){const i=Kr(t,e[r]||"")||"";a[r]=Gr(n,i)}return a}(P,e.spyName,s):null,j="double"===e.format?qr({name:s.name,goodColor:s.goodColor,neutralColor:s.neutralColor,badColor:s.badColor}):null,E=(e,t)=>{const n=e[t+y.jName];return!(!n||n<0||!R)&&1===R[n]};if(N){const e=c*u;t&&(w.beginPath(),w.rect(0,0,c*u,Er),w.fillStyle=Zr(200,1).rgb().string(),w.fill());const a=m.mapOrElse(()=>"total",e=>function(e,t){return 1===e?t.collapsedLevelsSingular:t.collapsedLevelsPlural.replace("{n}",String(e))}(e.i-1,g)),i=Xr({mode:r,charSize:M,rectWidth:e,fullText:a,shortText:a}),o=0,l=0,s=Er;if(n){w.beginPath(),w.rect(0,0,e,Er),w.save(),w.clip(),w.fillStyle="black";const t=Math.round(Math.max(o,0));w.fillText(i.text,t+i.marginLeft,l+s/2+1),w.restore()}}for(let a=0;a<l.length-S;a+=1){const i=l[S+a];if(!i)throw new Error(`Could not find level: ${S+a}`);for(let l=0;l<i.length;l+=y.jStep){const c=y.getBarOffset(i,l),d=o(c),h=a*jr+C,p=Er,v=T&&E(i,l);let N=y.getBarTotal(i,l);const S=N*u<=5;if(S)for(;l<i.length-y.jStep&&c+N===y.getBarOffset(i,l+y.jStep)&&y.getBarTotal(i,l+y.jStep)*u<=5&&v===(T&&E(i,l+y.jStep));)l+=y.jStep,N+=y.getBarTotal(i,l);const _=N*u-(S?0:.5),{spyName:R}=e,A=()=>{const t={level:i,j:l,i:a+m.mapOrElse(()=>0,e=>e.i),names:P,collapsed:S,selectedLevel:x,highlightModeOn:T,isHighlighted:v,spyName:R,palette:s,colorByNameIndex:I,diffColorFn:j};switch(b){case"single":return ii({...t});case"double":return oi({...t,leftTicks:e.leftTicks,rightTicks:e.rightTicks});default:throw new Error(`Unsupported format: ${b}`)}};if(w.beginPath(),w.rect(d,h,_,p),t){const e=A();w.fillStyle=e.string(),w.fill()}if(!n||S)continue;if(_<20)continue;const D=ni(P,l,b,i),O=Xr({mode:r,charSize:M,rectWidth:_,fullText:ai(D,N,f,k,g,F),shortText:D});w.save(),w.clip(),w.fillStyle="black";const L=Math.round(Math.max(d,0));w.fillText(O.text,L+O.marginLeft,h+p/2+1),w.restore()}}}function ni(e,t,n,a){let r=a[t+_r(n).jName];void 0===r&&(r=-1);const i=e[r];return i||(console.warn("Could not find function name for",{j:t,format:n,level:a,names:e}),"")}function ai(e,t,n,a,r,i){let o=null==i?void 0:i.get(t);if(!o){const e=a.format(t,n);o=Or(e,!!r.isZh)||e,null==i||i.set(t,o)}return`${e} (${o})`}function ri({collapsed:e,highlightModeOn:t,isHighlighted:n}){return e||t&&!n?Zr(200,.66):null}function ii(e){const t=ri(e);if(t)return t;const n=_r("single"),a=e.selectedLevel>e.i?.33:1;let r=e.level[e.j+n.jName];if(void 0===r&&(console.warn("Could nto find level",{l:e.j,jName:n.jName,level:e.level}),r=-1),e.colorByNameIndex&&r>=0&&e.colorByNameIndex[r])return e.colorByNameIndex[r].alpha(a);const i=e.names[r]||"",o=Kr(e.spyName,i)||"";return Gr(e.palette,o).alpha(a)}function oi(e){const t=ri(e);if(t)return t;const n=e.selectedLevel>e.i?.33:1,{leftRatio:a,rightRatio:r}=function(e,t,n,a){const r=Tr;return n&&a?{leftRatio:r.getBarTotalLeft(e,t)/n,rightRatio:r.getBarTotalRght(e,t)/a}:(console.error("Properties 'rightTicks' and 'leftTicks' are required. Can't calculate ratio."),{leftRatio:0,rightRatio:0})}(e.level,e.j,e.leftTicks,e.rightTicks),i=Br(a),o=Br(r);return e.diffColorFn?e.diffColorFn(Yr(i,o)).alpha(n):function(e,t,n){const a=Yr(t,n);return qr(e)(a)}(e.palette,i,o).alpha(n)}class li{constructor(e,t,n,a,r,i,o,l){if(this.flamebearer=e,this.canvas=t,this.focusedNode=n,this.fitMode=a,this.highlightQuery=r,this.zoom=i,this.palette=o,this.messages=l,this.cachedRange=null,this.cachedPxPerTick=null,this.tickToX=e=>{var t;const n=this.cachedRange?this.cachedRange.rangeMin:this.getRange().rangeMin,a=null!==(t=this.cachedPxPerTick)&&void 0!==t?t:this.pxPerTick();return(e-this.flamebearer.numTicks*n)*a},this.xyToBarPosition=e=>{const{ff:t}=this,{i:n,j:a}=this.xyToBarIndex(e.x,e.y),r=this.focusedNode.mapOrElse(()=>0,e=>e.i<0?0:e.i-1),i=this.flamebearer.levels[n];if(!i)throw new Error(`Could not find level: '${n}'`);const o=Math.max(this.tickToX(t.getBarOffset(i,a)),0);return{x:o,y:Math.max((n-r)*jr,0),width:Math.min(this.tickToX(t.getBarOffset(i,a)+t.getBarTotal(i,a))-o,this.getCanvasWidth())}},this.xyToBarData=e=>{const{i:t,j:n}=this.xyToBarIndex(e.x,e.y),a=this.flamebearer.levels[t];if(!a)throw new Error(`Could not find level: '${t}'`);switch(this.flamebearer.format){case"single":{const e=Cr;return{format:"single",name:this.flamebearer.names[e.getBarName(a,n)],self:e.getBarSelf(a,n),offset:e.getBarOffset(a,n),total:e.getBarTotal(a,n)}}case"double":{const e=Tr;return{format:"double",barTotal:e.getBarTotal(a,n),totalLeft:e.getBarTotalLeft(a,n),totalRight:e.getBarTotalRght(a,n),totalDiff:e.getBarTotalDiff(a,n),name:this.flamebearer.names[e.getBarName(a,n)]}}default:throw new Error("Unsupported type")}},this.isWithinBounds=(e,t)=>{if(e<0||e>this.getCanvasWidth())return!1;try{const{i:n,j:a}=this.xyToBarIndex(e,t);if(-1===a||-1===n)return!1}catch(e){return!1}return!0},this.zoom=i,this.focusedNode=n,this.flamebearer=e,this.canvas=t,this.highlightQuery=r,this.ff=_r(e.format),this.palette=o,this.messages=l,n.isJust&&i.isJust&&i.value.i<n.value.i)throw new Error("Zoom i level should be bigger than Focus")}render(e){const{rangeMin:t,rangeMax:n,pxPerTick:a}=this.updateCachedMetrics(),r={canvas:this.canvas,format:this.flamebearer.format,numTicks:this.flamebearer.numTicks,sampleRate:this.flamebearer.sampleRate,names:this.flamebearer.names,levels:this.flamebearer.levels,spyName:this.flamebearer.spyName,units:this.flamebearer.units,maxSelf:this.flamebearer.maxSelf,rangeMin:t,rangeMax:n,fitMode:this.fitMode,highlightQuery:this.highlightQuery,zoom:this.zoom,focusedNode:this.focusedNode,pxPerTick:a,tickToX:e=>(e-this.flamebearer.numTicks*t)*a,palette:this.palette,messages:this.messages,renderRects:null==e?void 0:e.renderRects,renderText:null==e?void 0:e.renderText},{format:i}=this.flamebearer;switch(i){case"single":ti({...r,format:"single"});break;case"double":ti({...r,leftTicks:this.flamebearer.leftTicks,rightTicks:this.flamebearer.rightTicks});break;default:throw new Error(`Invalid format: '${i}'`)}}pxPerTick(){if(null!==this.cachedPxPerTick)return this.cachedPxPerTick;const{rangeMin:e,rangeMax:t}=this.getRange(),n=this.getCanvasWidth()/this.flamebearer.numTicks/(t-e);return this.cachedRange={rangeMin:e,rangeMax:t},this.cachedPxPerTick=n,n}updateCachedMetrics(){const{rangeMin:e,rangeMax:t}=this.getRange(),n=this.getCanvasWidth()/this.flamebearer.numTicks/(t-e);return this.cachedRange={rangeMin:e,rangeMax:t},this.cachedPxPerTick=n,{rangeMin:e,rangeMax:t,pxPerTick:n}}getRange(){const{ff:e}=this,t=t=>{const n=this.flamebearer.levels[t.i];if(!n)throw new Error(`Could not find level: '${t.i}'`);return{rangeMin:e.getBarOffset(n,t.j)/this.flamebearer.numTicks,rangeMax:(e.getBarOffset(n,t.j)+e.getBarTotal(n,t.j))/this.flamebearer.numTicks}},n=t=>{const n=this.flamebearer.levels[t.i];if(!n)throw new Error(`Could not find level: '${t.i}'`);return{rangeMin:e.getBarOffset(n,t.j)/this.flamebearer.numTicks,rangeMax:(e.getBarOffset(n,t.j)+e.getBarTotal(n,t.j))/this.flamebearer.numTicks}},{zoom:a,focusedNode:r}=this;return a.match({Just:e=>r.match({Just:a=>{const r=n(a),i=t(e);return r.rangeMax-r.rangeMin<i.rangeMax-i.rangeMin?(console.warn("Focus is smaller than range, this shouldnt happen. Verify that the zoom is always bigger than the focus."),n(a)):t(e)},Nothing:()=>t(e)}),Nothing:()=>r.match({Just:e=>n(e),Nothing:()=>({rangeMin:0,rangeMax:1})})})}getCanvasWidth(){return this.canvas.clientWidth||this.canvas.width}isFocused(){return this.focusedNode.isJust}binarySearchLevel(e,t){const{ff:n}=this;let a=0,r=t.length-n.jStep;for(;a<=r;){const i=n.jStep*(a/n.jStep+r/n.jStep>>1),o=this.tickToX(n.getBarOffset(t,i)),l=this.tickToX(n.getBarOffset(t,i)+n.getBarTotal(t,i));if(o<=e&&l>=e)return l-o>5?i:-1;o>e?r=i-n.jStep:a=i+n.jStep}return-1}xyToBarIndex(e,t){if(e<0||t<0)throw new Error(`x and y must be bigger than 0. x = ${e}, y = ${t}`);if(this.isFocused()&&t<=Er)return{i:0,j:0};const n=this.isFocused()?t-Er:t,a=this.focusedNode.mapOrElse(()=>0,e=>e.i<=0?0:e.i),r=this.zoom.match({Just:()=>this.focusedNode.match({Just:()=>a,Nothing:()=>0}),Nothing:()=>this.focusedNode.match({Just:()=>a,Nothing:()=>0})}),i=Math.floor(n/jr)+r;if(i>=0&&i<this.flamebearer.levels.length){const t=this.flamebearer.levels[i];if(!t)throw new Error(`Could not find level: '${i}'`);return{i:i,j:this.binarySearchLevel(e,t)}}return{i:0,j:0}}parseXY(e,t){const n={x:e,y:t};return this.isWithinBounds(e,t)?N.of(n):N.nothing()}xyToBar(e,t){return this.parseXY(e,t).map(n=>{const{i:a,j:r}=this.xyToBarIndex(e,t);return{i:a,j:r,...this.xyToBarPosition(n),...this.xyToBarData(n)}})}}function si(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=si(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function ci(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=si(e))&&(a&&(a+=" "),a+=t);return a}var fi="NoData-module_noData__WuuID";function ui(){return e("div",{"data-testid":"no-data",className:fi,children:e("span",{children:"No data available"})})}var di,hi,mi={},pi={};function gi(){return di||(di=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="arrow-rotate-right",n=[8635,"arrow-right-rotate","arrow-rotate-forward","redo"],a="f01e",r="M436.7 74.7L448 85.4 448 32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 128c0 17.7-14.3 32-32 32l-128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l47.9 0-7.6-7.2c-.2-.2-.4-.4-.6-.6-75-75-196.5-75-271.5 0s-75 196.5 0 271.5 196.5 75 271.5 0c8.2-8.2 15.5-16.9 21.9-26.1 10.1-14.5 30.1-18 44.6-7.9s18 30.1 7.9 44.6c-8.5 12.2-18.2 23.8-29.1 34.7-100 100-262.1 100-362 0S-25 175 75 75c99.9-99.9 261.7-100 361.7-.3z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,a,r]},e.faArrowRotateRight=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(pi)),pi}function vi(){return hi||(hi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=gi();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faRedo=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(mi)),mi}var bi,yi=vi(),wi={};function xi(){return bi||(bi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="copy",n=[],a="f0c5",r="M192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-200.6c0-17.4-7.1-34.1-19.7-46.2L370.6 17.8C358.7 6.4 342.8 0 326.3 0L192 0zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-16-64 0 0 16-192 0 0-256 16 0 0-64-16 0z";e.definition={prefix:"fas",iconName:t,icon:[448,512,n,a,r]},e.faCopy=e.definition,e.prefix="fas",e.iconName=t,e.width=448,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(wi)),wi}var ki,Ni=xi(),Si={};function Ci(){return ki||(ki=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="highlighter",n=[],a="f591",r="M315 315L473.4 99.9 444.1 70.6 229 229 315 315zm-187 5l0 0 0-71.7c0-15.3 7.2-29.6 19.5-38.6L420.6 8.4C428 2.9 437 0 446.2 0 457.6 0 468.5 4.5 476.6 12.6l54.8 54.8c8.1 8.1 12.6 19 12.6 30.5 0 9.2-2.9 18.2-8.4 25.6L334.4 396.5c-9 12.3-23.4 19.5-38.6 19.5l-71.7 0-25.4 25.4c-12.5 12.5-32.8 12.5-45.3 0l-50.7-50.7c-12.5-12.5-12.5-32.8 0-45.3L128 320zM7 466.3l51.7-51.7 70.6 70.6-19.7 19.7c-4.5 4.5-10.6 7-17 7L24 512c-13.3 0-24-10.7-24-24l0-4.7c0-6.4 2.5-12.5 7-17z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,a,r]},e.faHighlighter=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(Si)),Si}var Ti,_i,Mi=Ci(),Pi={},Fi={};function Ri(){return Ti||(Ti=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="down-left-and-up-right-to-center",n=["compress-alt"],a="f422",r="M439.5 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2S450.2 240 440.5 240l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87zM72.5 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87-39-39c-6.9-6.9-8.9-17.2-5.2-26.2S62.8 272 72.5 272z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,a,r]},e.faDownLeftAndUpRightToCenter=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(Fi)),Fi}function Ii(){return _i||(_i=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Ri();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faCompressAlt=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(Pi)),Pi}var ji=Ii();const Ei=e=>!!e&&"o"===e[0],Ai=P,Di=(e,t)=>!0===e||!(!e||!e[t]),Oi=(e,t)=>"function"==typeof e?e(t):e,Li="_szhsinMenu",Bi=(e,t)=>Object.defineProperty(t,Li,{value:e}),zi=(e,t)=>(t&&Object.keys(t).forEach(n=>{const a=e[n],r=t[n];e[n]="function"==typeof r&&a?(...e)=>{r(...e),a(...e)}:r}),e),$i=e=>{for(;e;){if(!(e=e.parentNode)||e===document.body||!e.parentNode)return;const{overflow:t,overflowX:n,overflowY:a}=getComputedStyle(e);if(/auto|scroll|overlay|hidden/.test(t+a+n))return e}};function Vi(e,t){return{"aria-disabled":e||void 0,tabIndex:t?0:-1}}function Hi(e,t){for(let n=0;n<e.length;n++)if(e[n]===t)return n;return-1}const Wi=({block:e,element:t,modifiers:n,className:a})=>i(()=>{const r=t?`${e}__${t}`:e;let i=r;n&&Object.keys(n).forEach(e=>{const t=n[e];t&&(i+=` ${r}--${!0===t?e:`${e}-${t}`}`)});let o="function"==typeof a?a(n):a;return"string"==typeof o&&(o=o.trim(),o&&(i+=` ${o}`)),i},[e,t,n,a]),Ui="szh-menu",Ji=o(),Qi=o({}),Xi=o({}),Yi=o({}),Zi=o({}),Ki=o({}),Gi=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),qi=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),eo=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),to=Object.freeze({FIRST:"first",LAST:"last"}),no=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),ao="absolute",ro="none",io={preventScroll:!0},oo=Bi("MenuButton",l(function({className:t,isOpen:n,disabled:a,children:r,...o},l){const s=i(()=>({open:n}),[n]);return e("button",{"aria-haspopup":!0,"aria-expanded":n,"aria-disabled":a||void 0,type:"button",disabled:a,...o,ref:l,className:Wi({block:"szh-menu-button",modifiers:s,className:t}),children:r})})),lo=({className:t,containerRef:n,containerProps:a,children:r,isOpen:o,theming:l,transition:s,onClose:c})=>{const f=Di(s,"item");return e("div",{...zi({onKeyDown:({key:e})=>{if(e===Gi.ESC)Oi(c,{key:e,reason:eo.CANCEL})},onBlur:e=>{o&&!e.currentTarget.contains(e.relatedTarget)&&Oi(c,{reason:eo.BLUR})}},a),className:Wi({block:"szh-menu-container",modifiers:i(()=>({theme:l,itemTransition:f}),[l,f]),className:t}),style:{position:"absolute",...a?.style},ref:n,children:r})},so=()=>{let e,t=0;return{toggle:e=>{e?t++:t--,t=Math.max(t,0)},on:(n,a,r)=>{t?e||(e=setTimeout(()=>{e=0,a()},n)):r?.()},off:()=>{e&&(clearTimeout(e),e=0)}}},co=(e,t)=>Math.round(e)===t?e:t,fo=(e,t,n,a)=>{const r=(e=>{const t=e.getBoundingClientRect();return t.width=co(t.width,e.offsetWidth),t.height=co(t.height,e.offsetHeight),t})(t),i=e.getBoundingClientRect(),o=n===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:n.getBoundingClientRect(),l=(e=>{if("string"!=typeof e)return{top:0,right:0,bottom:0,left:0};const t=e.trim().split(/\s+/,4).map(parseFloat),n=isNaN(t[0])?0:t[0],a=isNaN(t[1])?n:t[1];return{top:n,right:a,bottom:isNaN(t[2])?n:t[2],left:isNaN(t[3])?a:t[3]}})(a),s=e=>e+i.left-o.left-l.left,c=e=>e+i.left+r.width-o.right+l.right,f=e=>e+i.top-o.top-l.top,u=e=>e+i.top+r.height-o.bottom+l.bottom;return{menuRect:r,containerRect:i,getLeftOverflow:s,getRightOverflow:c,getTopOverflow:f,getBottomOverflow:u,confineHorizontally:e=>{let t=s(e);if(t<0)e-=t;else{const n=c(e);n>0&&(t=s(e-=n),t<0&&(e-=t))}return e},confineVertically:e=>{let t=f(e);if(t<0)e-=t;else{const n=u(e);n>0&&(t=f(e-=n),t<0&&(e-=t))}return e}}},uo=({anchorRect:e,containerRect:t,menuRect:n,placeLeftorRightY:a,placeLeftX:r,placeRightX:i,getLeftOverflow:o,getRightOverflow:l,confineHorizontally:s,confineVertically:c,arrowRef:f,arrow:u,direction:d,position:h})=>{let m,p,g,v=d,b=a;"initial"!==h&&(b=c(b),"anchor"===h&&(b=Math.min(b,e.bottom-t.top),b=Math.max(b,e.top-t.top-n.height))),"left"===v?(m=r,"initial"!==h&&(p=o(m),p<0&&(g=l(i),(g<=0||-p>g)&&(m=i,v="right")))):(m=i,"initial"!==h&&(g=l(m),g>0&&(p=o(r),(p>=0||-p<g)&&(m=r,v="left")))),"auto"===h&&(m=s(m));const y=u?(({arrowRef:e,menuY:t,anchorRect:n,containerRect:a,menuRect:r})=>{let i=n.top-a.top-t+n.height/2;const o=1.25*e.current.offsetHeight;return i=Math.max(o,i),i=Math.min(i,r.height-o),i})({menuY:b,arrowRef:f,anchorRect:e,containerRect:t,menuRect:n}):void 0;return{arrowY:y,x:m,y:b,computedDirection:v}},ho=({anchorRect:e,containerRect:t,menuRect:n,placeToporBottomX:a,placeTopY:r,placeBottomY:i,getTopOverflow:o,getBottomOverflow:l,confineHorizontally:s,confineVertically:c,arrowRef:f,arrow:u,direction:d,position:h})=>{let m,p,g,v="top"===d?"top":"bottom",b=a;"initial"!==h&&(b=s(b),"anchor"===h&&(b=Math.min(b,e.right-t.left),b=Math.max(b,e.left-t.left-n.width))),"top"===v?(m=r,"initial"!==h&&(p=o(m),p<0&&(g=l(i),(g<=0||-p>g)&&(m=i,v="bottom")))):(m=i,"initial"!==h&&(g=l(m),g>0&&(p=o(r),(p>=0||-p<g)&&(m=r,v="top")))),"auto"===h&&(m=c(m));const y=u?(({arrowRef:e,menuX:t,anchorRect:n,containerRect:a,menuRect:r})=>{let i=n.left-a.left-t+n.width/2;const o=1.25*e.current.offsetWidth;return i=Math.max(o,i),i=Math.min(i,r.width-o),i})({menuX:b,arrowRef:f,anchorRect:e,containerRect:t,menuRect:n}):void 0;return{arrowX:y,x:b,y:m,computedDirection:v}},mo="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?u:d;function po(e,t){"function"==typeof e?e(t):e.current=t}const go=(e,t)=>i(()=>e?t?n=>{po(e,n),po(t,n)}:e:t,[e,t]),vo=({ariaLabel:n,menuClassName:a,menuStyle:r,arrow:o,arrowProps:l={},anchorPoint:u,anchorRef:p,containerRef:g,containerProps:v,externalRef:b,parentScrollingRef:y,align:w="start",direction:x="bottom",position:k="auto",overflow:N="visible",setDownOverflow:S,repositionFlag:C,captureFocus:T=!0,state:_,endTransition:M,isDisabled:P,menuItemFocus:R,gap:I=0,shift:j=0,children:E,onClose:A,focusProps:D,...O})=>{const[L,B]=s({x:-9999,y:-9999}),[z,$]=s({}),[V,H]=s(),[W,U]=s(x),[J]=s(so),[Q,X]=h(e=>e+1,1),{transition:Y,boundingBoxRef:Z,boundingBoxPadding:K,rootMenuRef:G,rootAnchorRef:q,scrollNodesRef:ee,reposition:te,viewScroll:ne,submenuCloseDelay:ae}=m(Ki),{submenuCtx:re,reposSubmenu:ie=C}=m(Xi),oe=c(),le=c(),se=c(!1),{hoverItem:ce,dispatch:fe,updateItems:ue}=(e=>{const[t,n]=s(),a=c({items:[],hoverIndex:-1,sorted:!1}).current,r=f((t,r)=>{const{items:i}=a;if(t)if(r)i.push(t);else{const a=i.indexOf(t);a>-1&&(i.splice(a,1),t.contains(document.activeElement)&&(e.current.focus(io),n()))}else a.items=[];a.hoverIndex=-1,a.sorted=!1},[a,e]),i=f((t,r,i)=>{const{items:o,hoverIndex:l}=a,s=()=>{if(a.sorted)return;const t=e.current.querySelectorAll(".szh-menu__item");o.sort((e,n)=>Hi(t,e)-Hi(t,n)),a.sorted=!0};let c,f=-1;switch(t){case qi.RESET:break;case qi.SET:c=r;break;case qi.UNSET:c=e=>e===r?void 0:e;break;case qi.FIRST:s(),f=0,c=o[f];break;case qi.LAST:s(),f=o.length-1,c=o[f];break;case qi.SET_INDEX:s(),f=i,c=o[f];break;case qi.INCREASE:s(),f=l,f<0&&(f=o.indexOf(r)),f++,f>=o.length&&(f=0),c=o[f];break;case qi.DECREASE:s(),f=l,f<0&&(f=o.indexOf(r)),f--,f<0&&(f=o.length-1),c=o[f];break;default:if("production"!==process.env.NODE_ENV)throw new Error(`[React-Menu] Unknown hover action type: ${t}`)}c||(f=-1),n(c),a.hoverIndex=f},[e,a]);return{hoverItem:t,dispatch:i,updateItems:r}})(oe),de=Ei(_),he=Di(Y,"open"),me=Di(Y,"close"),pe=ee.current,ge=f(e=>{const t=oe.current,n=g.current;if(!t||!n)return;const a=p?p.current?.getBoundingClientRect():u?{left:u.x,right:u.x,top:u.y,bottom:u.y,width:0,height:0}:null;if(!a)return void("production"!==process.env.NODE_ENV&&console.warn("[React-Menu] Menu might not be positioned properly as one of the anchorRef or anchorPoint prop should be provided. If `anchorRef` is provided, the anchor must be mounted before menu is open."));pe.menu||(pe.menu=(Z?Z.current:$i(G.current))||window);const r=fo(n,t,pe.menu,K);let{arrowX:i,arrowY:l,x:s,y:c,computedDirection:f}=(({arrow:e,align:t,direction:n,gap:a,shift:r,position:i,anchorRect:o,arrowRef:l,positionHelpers:s})=>{const{menuRect:c,containerRect:f}=s,u="left"===n||"right"===n;let d=u?a:r,h=u?r:a;if(e){const e=l.current;u?d+=e.offsetWidth:h+=e.offsetHeight}const m=o.left-f.left-c.width-d,p=o.right-f.left+d,g=o.top-f.top-c.height-h,v=o.bottom-f.top+h;let b,y;"end"===t?(b=o.right-f.left-c.width,y=o.bottom-f.top-c.height):"center"===t?(b=o.left-f.left-(c.width-o.width)/2,y=o.top-f.top-(c.height-o.height)/2):(b=o.left-f.left,y=o.top-f.top),b+=d,y+=h;const w={...s,anchorRect:o,placeLeftX:m,placeRightX:p,placeLeftorRightY:y,placeTopY:g,placeBottomY:v,placeToporBottomX:b,arrowRef:l,arrow:e,direction:n,position:i};switch(n){case"left":case"right":return uo(w);default:return ho(w)}})({arrow:o,align:w,direction:x,gap:I,shift:j,position:k,anchorRect:a,arrowRef:le,positionHelpers:r});const{menuRect:d}=r,h=d.height;if(!e&&"visible"!==N){const{getTopOverflow:e,getBottomOverflow:t}=r;let n,a;const i=t(c);if(i>0)n=h-i,a=i;else{const t=e(c);t<0&&(n=h+t,a=0-t,n>=0&&(c-=t))}n>=0&&H({height:n,overflowAmt:a})}o&&$({x:i,y:l}),B({x:s,y:c}),U(f)},[o,w,K,x,I,j,k,N,u,p,g,Z,G,pe]);mo(()=>{de&&(ge(),se.current&&X()),se.current=de},[de,ge,ie]),mo(()=>{V&&!S&&(oe.current.scrollTop=0)},[V,S]),mo(()=>ue,[ue]),d(()=>{let{menu:e}=pe;if(!de||!e)return;if(e=e.addEventListener?e:window,!pe.anchors){pe.anchors=[];let t=$i(q&&q.current);for(;t&&t!==e;)pe.anchors.push(t),t=$i(t)}let t=ne;if(pe.anchors.length&&"initial"===t&&(t="auto"),"initial"===t)return;const n=()=>{"auto"===t?Ai(()=>ge(!0)):Oi(A,{reason:eo.SCROLL})},a=pe.anchors.concat("initial"!==ne?e:[]);return a.forEach(e=>e.addEventListener("scroll",n)),()=>a.forEach(e=>e.removeEventListener("scroll",n))},[q,pe,de,A,ne,ge]);const ve=!!V&&V.overflowAmt>0;d(()=>{if(ve||!de||!y)return;const e=()=>Ai(ge),t=y.current;return t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)},[de,ve,y,ge]),d(()=>{if(!de||"function"!=typeof ResizeObserver||"initial"===te)return;const e=[],t=new ResizeObserver(t=>t.forEach(({target:t})=>{e.indexOf(t)<0?e.push(t):F(()=>{ge(),X()})})),n={box:"border-box"};t.observe(oe.current,n);const a=p?.current;return a&&t.observe(a,n),()=>t.disconnect()},[de,te,p,ge]),d(()=>{if(!de)return fe(qi.RESET),void(me||H());const{position:e,alwaysUpdate:t}=R||{},n=()=>{e===to.FIRST?fe(qi.FIRST):e===to.LAST?fe(qi.LAST):e>=-1&&fe(qi.SET_INDEX,void 0,e)};if(t)n();else if(T){const e=setTimeout(()=>{const e=oe.current;e&&!e.contains(document.activeElement)&&(e.focus(io),n())},he?170:100);return()=>clearTimeout(e)}},[de,he,me,T,R,fe]);const be=i(()=>({isParentOpen:de,submenuCtx:J,dispatch:fe,updateItems:ue}),[de,J,fe,ue]);let ye,we;V&&(S?we=V.overflowAmt:ye=V.height);const xe=i(()=>({reposSubmenu:Q,submenuCtx:J,overflow:N,overflowAmt:we,parentMenuRef:oe,parentDir:W}),[Q,J,N,we,W]),ke=ye>=0?{maxHeight:ye,overflow:N}:void 0,Ne=i(()=>({state:_,align:w,dir:W}),[_,w,W]),Se=i(()=>({dir:W}),[W]),Ce=Wi({block:Ui,element:"arrow",modifiers:Se,className:l.className}),Te=t("ul",{role:"menu","aria-label":n,...Vi(P),...zi({onPointerEnter:re?.off,onPointerMove:e=>{e.stopPropagation(),J.on(ae,()=>{fe(qi.RESET),oe.current.focus(io)})},onPointerLeave:e=>{e.target===e.currentTarget&&J.off()},onKeyDown:e=>{switch(e.key){case Gi.HOME:fe(qi.FIRST);break;case Gi.END:fe(qi.LAST);break;case Gi.UP:fe(qi.DECREASE,ce);break;case Gi.DOWN:fe(qi.INCREASE,ce);break;case Gi.SPACE:return void(e.target&&-1!==e.target.className.indexOf(Ui)&&e.preventDefault());default:return}e.preventDefault(),e.stopPropagation()},onAnimationEnd:()=>{"closing"===_&&H(),Oi(M)}},O),ref:go(b,oe),className:Wi({block:Ui,modifiers:Ne,className:a}),style:{...r,...ke,margin:0,display:"closed"===_?"none":void 0,position:ao,left:L.x,top:L.y},children:[o&&e("li",{"aria-hidden":!0,...l,className:Ce,style:{display:"block",position:ao,left:z.x,top:z.y,...l.style},ref:le}),e(Xi.Provider,{value:xe,children:e(Qi.Provider,{value:be,children:e(Ji.Provider,{value:ce,children:Oi(E,Ne)})})})]});return v?e(lo,{...v,isOpen:de,children:Te}):Te},bo=l(function({"aria-label":t,className:n,containerProps:a,initialMounted:r,unmountOnClose:o,transition:l,transitionTimeout:s,boundingBoxRef:f,boundingBoxPadding:u,reposition:d="auto",submenuOpenDelay:h=300,submenuCloseDelay:m=150,viewScroll:p="initial",portal:g,theming:v,onItemClick:b,...y},w){const x=c(null),k=c({}),{anchorRef:N,state:S,onClose:C}=y,T=i(()=>({initialMounted:r,unmountOnClose:o,transition:l,transitionTimeout:s,boundingBoxRef:f,boundingBoxPadding:u,rootMenuRef:x,rootAnchorRef:N,scrollNodesRef:k,reposition:d,viewScroll:p,submenuOpenDelay:h,submenuCloseDelay:m}),[r,o,l,s,N,f,u,d,p,h,m]),_=i(()=>({handleClick(e,t){e.stopPropagation||Oi(b,e);let n=e.keepOpen;void 0===n&&(n=t&&e.key===Gi.SPACE),n||Oi(C,{value:e.value,key:e.key,reason:eo.CLICK})},handleClose(e){Oi(C,{key:e,reason:eo.CLICK})}}),[b,C]);if(!S)return null;const M=e(Ki.Provider,{value:T,children:e(Yi.Provider,{value:_,children:e(vo,{...y,ariaLabel:t||"Menu",externalRef:w,containerRef:x,containerProps:{className:n,containerRef:x,containerProps:a,theming:v,transition:l,onClose:C}})})});return!0===g&&"undefined"!=typeof document?R(M,document.body):g?g.target?R(M,g.target):g.stablePosition?null:M:M}),yo=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],wo=e=>({_s:e,status:yo[e],isEnter:e<3,isMounted:6!==e,isResolved:2===e||e>4}),xo=e=>e?6:5,ko=(e,t,n,a,r)=>{clearTimeout(a.current);const i=wo(e);t(i),n.current=i,r&&r({current:i})},No=({enter:e=!0,exit:t=!0,preEnter:n,preExit:a,timeout:r,initialEntered:i,mountOnEnter:o,unmountOnExit:l,onStateChange:u}={})=>{const[d,h]=s(()=>wo(i?2:xo(o))),m=c(d),p=c(),[g,v]=(e=>"object"==typeof e?[e.enter,e.exit]:[e,e])(r),b=f(()=>{const e=((e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return xo(t)}})(m.current._s,l);e&&ko(e,h,m,p,u)},[u,l]);return[d,f(r=>{const i=e=>{switch(ko(e,h,m,p,u),e){case 1:g>=0&&(p.current=setTimeout(b,g));break;case 4:v>=0&&(p.current=setTimeout(b,v));break;case 0:case 3:p.current=((e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0))(i,e)}},o=m.current.isEnter;"boolean"!=typeof r&&(r=!o),r?!o&&i(e?n?0:1:2):o&&i(t?a?3:4:xo(l))},[b,u,e,t,n,a,g,v,l]),b]},So=({initialOpen:e,initialMounted:t,unmountOnClose:n,transition:a,transitionTimeout:r=500,onMenuChange:i}={})=>{const o=Di(a,"open"),l=Di(a,"close"),[{status:s},c,u]=No({initialEntered:e,mountOnEnter:!t,unmountOnExit:n,timeout:r,enter:o,exit:l,onStateChange:f(({current:{isEnter:e,isResolved:t}})=>{!i||e&&o&&t||!e&&l&&t||i({open:e})},[i,o,l])});return[{state:no[s],endTransition:u},c]},Co=parseInt(b)<19,To=l(function({"aria-label":n,captureFocus:a,initialOpen:r,menuButton:i,instanceRef:o,onMenuChange:l,...u},d){const[h,m,b]=(e=>{const[t,n]=So(e),[a,r]=s();return[{menuItemFocus:a,...t},n,(e,t)=>{r({position:e,alwaysUpdate:t}),n(!0)}]})({...u,onMenuChange:l}),{state:y}=h,w=Ei(y),x=c(null),k=((e,t)=>{if("production"!==process.env.NODE_ENV&&"function"!=typeof t)throw new Error("[React-Menu] useClick/useHover requires a function in the second parameter.");const[n]=s({});return{onMouseDown:()=>{n.v=e&&"closed"!==e},onClick:e=>n.v?n.v=!1:t(!0,e)}})(y,(e,t)=>b(t.detail?void 0:to.FIRST)),N=f(e=>{m(!1),e.key&&x.current.focus()},[m]),S=Oi(i,{open:w});if(!S||!S.type)throw new Error("Menu requires a menuButton prop.");const C={...zi({onKeyDown:e=>{switch(e.key){case Gi.UP:b(to.LAST);break;case Gi.DOWN:b(to.FIRST);break;default:return}e.preventDefault()},...k},S.props),ref:go(Co?S.ref:S.props.ref,x)};"MenuButton"===S.type[Li]&&(C.isOpen=w);const T=v(S,C);return p(o,()=>({openMenu:b,closeMenu:()=>m(!1)})),t(g,{children:[T,e(bo,{...u,...h,"aria-label":n||("string"==typeof S.props.children?S.props.children:"Menu"),anchorRef:x,ref:d,onClose:N})]})}),_o=(t,n)=>{const a=y(n),r=l((t,n)=>{const r=c(null);return e(a,{...t,itemRef:r,externalRef:n,isHovering:m(Ji)===r.current})});return r.displayName=`WithHovering(${t})`,r},Mo=(e,t,n,a)=>{const[r,i,o]=(e=>{const[t,n]=s(!1);return d(()=>{!e&&n(!1)},[e]),[t,()=>!t&&n(!0),()=>n(!1)]})(n),{submenuCloseDelay:l}=m(Ki),{isParentOpen:c,submenuCtx:f,dispatch:u,updateItems:h}=m(Qi),p=()=>{!n&&!a&&u(qi.SET,e.current)},g=()=>{!a&&u(qi.UNSET,e.current)};return((e,t,n)=>{mo(()=>{if("production"!==process.env.NODE_ENV&&!n)throw new Error(`[React-Menu] This menu item or submenu should be rendered under a menu: ${t.current.outerHTML}`);if(e)return;const a=t.current;return n(a,!0),()=>{n(a)}},[e,t,n])})(a,e,h),d(()=>{n&&c&&t.current&&t.current.focus()},[t,n,c]),{mouseOver:r,setHover:p,onBlur:e=>{n&&!e.currentTarget.contains(e.relatedTarget)&&g()},onPointerMove:e=>{a||(e.stopPropagation(),i(),f.on(l,p,p))},onPointerLeave:(e,t)=>{o(),f.off(),!t&&g()}}},Po=_o("MenuItem",function({className:t,value:n,href:a,type:r,checked:o,disabled:l,children:s,onClick:c,isHovering:f,itemRef:u,externalRef:d,...h}){const p=!!l,{mouseOver:g,setHover:v,...b}=Mo(u,u,f,p),y=m(Yi),w=m(Zi),x="radio"===r,k="checkbox"===r,N=!(!a||p||x||k),S=x?w.value===n:!!k&&!!o,C=e=>{if(p)return e.stopPropagation(),void e.preventDefault();const t={value:n,syntheticEvent:e};void 0!==e.key&&(t.key=e.key),k&&(t.checked=!S),x&&(t.name=w.name),Oi(c,t),x&&Oi(w.onRadioChange,t),y.handleClick(t,k||x)},T=i(()=>({type:r,disabled:p,hover:g||f,checked:S,anchor:N}),[r,p,g,f,S,N]),_=zi({...b,onPointerDown:v,onKeyDown:e=>{if(f)switch(e.key){case Gi.ENTER:e.preventDefault();case Gi.SPACE:N?u.current.click():C(e)}},onClick:C},h),M={role:x?"menuitemradio":k?"menuitemcheckbox":"menuitem","aria-checked":x||k?S:void 0,...Vi(p,f),..._,ref:go(d,u),className:Wi({block:Ui,element:"item",modifiers:T,className:t}),children:i(()=>Oi(s,T),[s,T])};return e("li",N?{role:ro,children:e("a",{href:a,...M})}:{...M})}),Fo=y(l(function({className:t,...n},a){return e("li",{role:ro,...n,ref:a,className:Wi({block:Ui,element:"header",className:t})})}));var Ro="canvas-module_canvas__Iiaz4",Io="canvas-module_textCanvas__eFxM4",jo="Highlight-module_highlight__1VV-X";function Eo(t){const{canvasRef:n,barHeight:r,xyToHighlightData:i,zoom:o}=t,[l,s]=a.useState({height:"0px",visibility:"hidden"});a.useEffect(()=>{s({height:"0px",visibility:"hidden"})},[o]);const c=e=>{const t=i(e.offsetX,e.offsetY);if(t.isJust){const e=t.value;s({visibility:"visible",height:`${r}px`,...e})}else f()},f=()=>{s({...l,visibility:"hidden"})};return a.useEffect(()=>{const e=n.current;return e?(e.addEventListener("mousemove",c),e.addEventListener("mouseout",f),()=>{e.removeEventListener("mousemove",c),e.removeEventListener("mouseout",f)}):()=>{}},[n.current,c,f]),e("div",{className:jo,style:l,"data-testid":"flamegraph-highlight"})}var Ao="ContextMenuHighlight-module_highlightContextMenu__WI1nK";const Do={height:"0px",visibility:"hidden"};function Oo(t){const{node:n,barHeight:r}=t,[i,o]=a.useState(Do);return a.useEffect(()=>{n.match({Nothing:()=>o(Do),Just:e=>o({visibility:"visible",height:`${r}px`,...e})})},[n]),e("div",{className:Ao,style:i,"data-testid":"flamegraph-highlight-contextmenu"})}const Lo={name:"Default",goodColor:C.rgb(0,170,0),neutralColor:C.rgb(148,142,142),badColor:C.rgb(200,0,0),colors:[C.hsl(24,69,60),C.hsl(34,65,65),C.hsl(194,52,61),C.hsl(163,45,55),C.hsl(211,48,60),C.hsl(246,40,65),C.hsl(305,63,79),C.hsl(47,100,73),C.rgb(183,219,171),C.rgb(244,213,152),C.rgb(78,146,249),C.rgb(249,186,143),C.rgb(242,145,145),C.rgb(130,181,216),C.rgb(229,168,226),C.rgb(174,162,224),C.rgb(154,196,138),C.rgb(242,201,109),C.rgb(101,197,219),C.rgb(249,147,78),C.rgb(234,100,96),C.rgb(81,149,206),C.rgb(214,131,206),C.rgb(128,110,183)]},Bo={...Lo,name:"Color Blind",goodColor:C.rgb(26,133,255),neutralColor:C.rgb(148,142,142),badColor:C.rgb(220,50,32)};function zo(){return t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",children:[e("defs",{}),e("path",{style:{fill:"#7d7d7f"},d:"M5,19.56c0,5.22,3.54,9.44,7.92,9.44h3.17c4.37,0,7.92-4.23,7.92-9.44v-7.56H5v7.56Z"}),e("path",{style:{fill:"#7d7d7f"},d:"M14,1h-.82c-4.52,0-8.18,3.73-8.18,8.33v1.67H14V1Z"}),e("path",{d:"M15.82,1h-.82V11h9v-1.67c0-4.6-3.66-8.33-8.18-8.33Z"})]})}function $o(){return t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",children:[e("defs",{}),e("path",{style:{fill:"#7d7d7f"},d:"M24,19.56c0,5.22-3.54,9.44-7.92,9.44h-3.17c-4.37,0-7.92-4.23-7.92-9.44v-7.56H24v7.56Z"}),e("path",{style:{fill:"#7d7d7f"},d:"M15,1h.82c4.52,0,8.18,3.73,8.18,8.33v1.67H15V1Z"}),e("path",{d:"M13.18,1h.82V11H5v-1.67c0-4.6,3.66-8.33,8.18-8.33Z"})]})}var Vo={tooltip:"Tooltip-module_tooltip__NMZ65",flamegraphDiffTooltip:"Tooltip-module_flamegraphDiffTooltip__Z983o",tooltipName:"Tooltip-module_tooltipName__y4Qs3",functionName:"Tooltip-module_functionName__z9LHO",tooltipTable:"Tooltip-module_tooltipTable__ct3pq",clickInfo:"Tooltip-module_clickInfo__Utux5"};const Ho={location:"Location",self:"Self",total:"Total",baseline:"Baseline",comparison:"Comparison",diff:"Diff",noItemsFound:"No items found",diffNew:"new",diffRemoved:"removed",tooltipSamples:"Samples:",tooltipUnitTitles:{objects:{percent:"% of objects in RAM",formattedValue:"Objects in RAM",total:"% of total RAM"},goroutines:{percent:"% of goroutines",formattedValue:"Goroutines",total:"% of total goroutines"},bytes:{percent:"% of RAM",formattedValue:"RAM",total:"% of total bytes"},samples:{percent:"Share of CPU",formattedValue:"CPU Time",total:"% of total CPU"},lock_nanoseconds:{percent:"% of Time spent",formattedValue:"Time",total:"% of total seconds"},lock_samples:{percent:"% of contended locks",formattedValue:"Contended locks",total:"% of total locks"},trace_samples:{percent:"% of time",formattedValue:"Samples",total:"% of total samples"},exceptions:{percent:"% of thrown exceptions",formattedValue:"Thrown exceptions",total:"% of total thrown exceptions"},unknown:{percent:"Percentage",formattedValue:"Units",total:"% of total units"}},resetView:"Reset View",collapseNodesAbove:"Collapse nodes above",copyFunctionName:"Copy function name",highlightSimilarNodes:"Highlight similar nodes",clearHighlight:"Clear highlight",openInSandwichView:"Open in sandwich view",showTextTailFirst:"Show text tail first",showTextHeadFirst:"Show text head first",headFirst:"Head first",tailFirst:"Tail first",clickToHighlightNode:"Click to highlight node in flamegraph",rightClickForMoreNodeOptions:"Right click for more node viewing options",viewTable:"Table",viewTableAndFlamegraph:"Table and Flamegraph",viewFlamegraph:"Flamegraph",viewSandwich:"Sandwich",viewGraphviz:"GraphViz",more:"More",diffLegendRemovedLabel:"(-) Removed",diffLegendAddedLabel:"Added (+)",diffLegendSelectPalette:"Select a palette",paletteDefaultName:"Default",paletteColorBlindName:"Color Blind",paletteDefaultDesc:"(green to red)",paletteColorBlindDesc:"(blue to red)",searchPlaceholder:"Search...",syncSearchBars:"Sync Search Bars",unsyncSearchBars:"Unsync Search Bars",focusOnThisFunction:"Focus on this function",tableDoubleClickToFocus:"Double-click to focus in flamegraph",tableRightClickForOptions:"Right-click for more options",collapsedLevelsSingular:"total (1 level collapsed)",collapsedLevelsPlural:"total ({n} levels collapsed)",ofTotal:"of total",clearFocus:"Clear focus",sampleCountFormat:[{value:1e15,label:"Quad"},{value:1e12,label:"Tri"},{value:1e9,label:"B"},{value:1e6,label:"M"},{value:1e3,label:"K"}]},Wo={...Ho,location:"位置",self:"自身",total:"总计",baseline:"基线",comparison:"对比",diff:"差异",noItemsFound:"没有找到任何条目",diffNew:"新增",diffRemoved:"移除",tooltipSamples:"样本数:",tooltipUnitTitles:{objects:{percent:"RAM 中对象占比",formattedValue:"RAM 中对象数",total:"占总 RAM 的百分比"},goroutines:{percent:"协程占比",formattedValue:"协程数量",total:"占协程总数的百分比"},bytes:{percent:"RAM 占比",formattedValue:"RAM",total:"占总字节数的百分比"},samples:{percent:"CPU 占比",formattedValue:"CPU 时间",total:"占总 CPU 的百分比"},lock_nanoseconds:{percent:"耗时占比",formattedValue:"时间",total:"占总秒数的百分比"},lock_samples:{percent:"锁竞争事件占比",formattedValue:"锁竞争事件数",total:"占锁竞争总数的百分比"},trace_samples:{percent:"时间占比",formattedValue:"样本数",total:"占样本总数的百分比"},exceptions:{percent:"异常抛出占比",formattedValue:"异常数",total:"占异常总数的百分比"},unknown:{percent:"百分比",formattedValue:"单位",total:"占单位总量的百分比"}},resetView:"重置视图",collapseNodesAbove:"收起上方节点",copyFunctionName:"复制函数名",highlightSimilarNodes:"高亮相似节点",clearHighlight:"清除高亮",openInSandwichView:"在 sandwich 视图中查看",showTextTailFirst:"显示文本尾部优先",showTextHeadFirst:"显示文本头部优先",headFirst:"从头部开始显示",tailFirst:"从尾部开始显示",clickToHighlightNode:"点击火焰图节点高亮",rightClickForMoreNodeOptions:"右键查看更多节点选项",viewTable:"表格",viewTableAndFlamegraph:"表格 + 火焰图",viewFlamegraph:"火焰图",viewSandwich:"三明治视图",viewGraphviz:"调用图 (GraphViz)",more:"更多",diffLegendRemovedLabel:"(-) 减少",diffLegendAddedLabel:"增加 (+)",diffLegendSelectPalette:"选择颜色方案",paletteDefaultName:"默认",paletteColorBlindName:"色盲模式",paletteDefaultDesc:"(绿色 → 红色)",paletteColorBlindDesc:"(蓝色 → 红色)",searchPlaceholder:"搜索...",syncSearchBars:"同步搜索栏",unsyncSearchBars:"取消同步搜索栏",focusOnThisFunction:"聚焦到此函数",tableDoubleClickToFocus:"双击可聚焦到火焰图",tableRightClickForOptions:"右键查看更多选项",collapsedLevelsSingular:"总计(已折叠 1 层)",collapsedLevelsPlural:"总计(已折叠 {n} 层)",ofTotal:"占总量",clearFocus:"清除聚焦",sampleCountFormat:[{value:1e12,label:"兆"},{value:1e8,label:"亿"},{value:1e4,label:"万"},{value:1e3,label:"千"}]},Uo=o(Ho),Jo=Uo,Qo=({messages:t,children:n})=>{const r=a.useMemo(()=>{var e;return{...Ho,...t,tooltipUnitTitles:{...Ho.tooltipUnitTitles,...null!==(e=null==t?void 0:t.tooltipUnitTitles)&&void 0!==e?e:{}}}},[t]);return e(Uo.Provider,{value:r,children:n})},Xo=()=>m(Uo);function Yo(e){if(!e)return null;const t=e.replace(/,/g,"").trim();if(!t)return null;const n=Number(t);return Number.isFinite(n)?n:null}function Zo(e,t){if(!e||!t)return;const n=e.trim().replace(/\u2212/g,"-");return n&&"0"!==n?n.startsWith("+")?t.badColor.rgb().string():n.startsWith("-")?t.goodColor.rgb().string():void 0:void 0}function Ko(e,t,n){return n<t?t:Math.max(t,Math.min(n,e))}function Go(e,t,n,a){const r=window.innerWidth,i=window.innerHeight,o=Math.max(0,n||0),l=Math.max(0,a||0);let s=e+12,c=t+20;return s+o+8>r&&(s=e-o-12),c+l+8>i&&(c=t-l-20),s=Ko(s,8,r-o-8),c=Ko(c,8,i-l-8),{left:s,top:c}}function qo({shouldShowFooter:r=!0,shouldShowTitle:i=!0,dataSourceRef:o,clickInfoSide:l,setTooltipContent:h,palette:m}){const p=c(null),g=c(null),[v,b]=a.useState({title:{text:"",diff:{text:"",color:""}},tooltipData:[]}),[y,w]=s(),x=()=>{w({visibility:"hidden"}),b({title:{text:"",diff:{text:"",color:""}},tooltipData:[]})},k=f(e=>{if(!p.current)throw new Error("Missing tooltipElement");g.current={x:e.clientX,y:e.clientY},h(b,x,e);const t=p.current.clientWidth||0,n=p.current.clientHeight||0,{left:a,top:r}=Go(e.clientX,e.clientY,t,n);w({top:r,left:a,visibility:"visible"})},[h]);return d(()=>{const e=o.current;return e?(e.addEventListener("mousemove",k),e.addEventListener("mouseout",x),()=>{e.removeEventListener("mousemove",k),e.removeEventListener("mouseout",x)}):()=>{}},[o.current,k]),u(()=>{if(!p.current)return;if(!g.current)return;if(0===v.tooltipData.length)return;const{x:e,y:t}=g.current,n=p.current.getBoundingClientRect(),{left:a,top:r}=Go(e,t,n.width,n.height);w(e=>e&&e.left===a&&e.top===r&&"visible"===e.visibility?e:{...e||{},left:a,top:r,visibility:"visible"})},[v.tooltipData.length,v.title.text]),e("div",{"data-testid":"tooltip",className:ci(Vo.tooltip,{[Vo.flamegraphDiffTooltip]:v.tooltipData.length>1}),style:{...y,textAlign:"center"},ref:p,children:v.tooltipData.length>0&&t(n,{children:[i&&e("div",{className:Vo.tooltipName,"data-testid":"tooltip-title",children:v.title.text}),e("div",{className:Vo.functionName,"data-testid":"tooltip-function-name",children:v.title.text}),v.title.diff.text.length>0?e(el,{data:v.tooltipData,diff:v.title.diff,palette:m}):e(el,{data:v.tooltipData,palette:m}),r&&e(tl,{clickInfoSide:l})]})})}function el({data:a,diff:r,palette:i}){const o=Xo(),[l,s]=a,c="Location"!==o.location;if(!l)return null;let f;switch(l.tooltipType){case"flamegraph":f=()=>{const a=s&&function(e,t){const n=Dr(e),a=Dr(t);if(!n||!a)return"";const r=a.value-n.value;if(0===r)return"0";const i=r>0?"+":"-",o=Math.abs(r);let l;l=o>=100?o.toFixed(0):o>=10?o.toFixed(1):o.toFixed(2);const s=n.unit||a.unit;return s?`${i}${l} ${s}`:`${i}${l}`}(l.formattedValue,s.formattedValue),f=Or(a,c),u=s&&function(e,t){const n=Yo(e),a=Yo(t);if(null==n||null==a)return"";const r=a-n;return 0===r?"0":`${r>0?"+":"-"}${Math.abs(r).toLocaleString()}`}(l.samples,s.samples),d=Or(l.formattedValue,c),h=Or(null==s?void 0:s.formattedValue,c),m=null==r?void 0:r.color,p=Zo(a,i),g=Zo(u,i);return t(n,{children:[s&&e("thead",{children:t("tr",{children:[e("th",{}),e("th",{children:o.baseline}),e("th",{children:o.comparison}),e("th",{children:o.diff})]})}),t("tbody",{children:[t("tr",{children:[t("td",{children:[o.tooltipUnitTitles[l.units].percent,":"]}),e("td",{children:l.percent}),s&&t(n,{children:[e("td",{children:s.percent}),e("td",{style:{textAlign:"center"},children:r&&e("span",{"data-testid":"tooltip-diff",style:{color:m},children:r.text})})]})]}),t("tr",{children:[t("td",{children:[o.tooltipUnitTitles[l.units].formattedValue,":"]}),e("td",{children:d}),s&&t(n,{children:[e("td",{children:h}),e("td",{style:{textAlign:"center"},children:f&&e("span",{"data-testid":"tooltip-time-diff",style:p?{color:p}:void 0,children:f})})]})]}),t("tr",{children:[e("td",{children:o.tooltipSamples}),e("td",{children:l.samples}),s&&t(n,{children:[e("td",{children:s.samples}),e("td",{style:{textAlign:"center"},children:u&&e("span",{"data-testid":"tooltip-samples-diff",style:g?{color:g}:void 0,children:u})})]})]})]})]})};break;case"table":f=()=>t(n,{children:[e("thead",{children:t("tr",{children:[e("td",{}),t("td",{children:[o.self," (",o.tooltipUnitTitles[l.units].total,")"]}),t("td",{children:[o.total," (",o.tooltipUnitTitles[l.units].total,")"]})]})}),e("tbody",{children:t("tr",{children:[t("td",{children:[o.tooltipUnitTitles[l.units].formattedValue,":"]}),e("td",{children:l.self}),e("td",{children:l.total})]})})]});break;default:f=()=>null}return e("table",{"data-testid":"tooltip-table",className:ci(Vo.tooltipTable,{[Vo[`${l.tooltipType}${s?"Diff":""}`]]:l.tooltipType}),style:{textAlign:"center",margin:"0 auto"},children:f()})}function tl({clickInfoSide:a}){const r=Xo();let i;switch(a){case"right":i=t(n,{children:[e(zo,{}),e("span",{children:r.rightClickForMoreNodeOptions})]});break;case"left":i=t(n,{children:[e($o,{}),e("span",{children:r.clickToHighlightNode})]});break;default:i=e(n,{})}return e("div",{"data-testid":"tooltip-footer",className:Vo.clickInfo,children:i})}function nl(t){const{format:n,canvasRef:a,xyToData:r,numTicks:i,sampleRate:o,units:l,leftTicks:s,rightTicks:c,palette:u}=t,d=Xo(),h=f((e,t,a)=>{const f=$r(i,o,l),h=r(a.offsetX,a.offsetY);let m;var p;if(h.isJust)switch(m=h.value,m.format){case"single":{const t={percent:(p=m.total/i,`${Br(p)}%`),samples:"trace_samples"===l?"":Ar(m.total),units:l,formattedValue:f.format(m.total,o),tooltipType:"flamegraph"};e({title:{text:m.name,diff:{text:"",color:""}},tooltipData:[t]});break}case"double":{if("single"===n)throw new Error("props format is 'single' but it has been mapped to 'double'");const t=al({formatter:f,sampleRate:o,totalLeft:m.totalLeft,leftTicks:s,totalRight:m.totalRight,rightTicks:c,title:m.name,units:l},u,d);e({title:t.title,tooltipData:t.tooltipData});break}default:throw new Error(`Unsupported format: '${m.format}'`)}else t()},[i,o,l,s,c,u,r,n,d]);return e(qo,{dataSourceRef:a,clickInfoSide:"right",setTooltipContent:h,palette:u})}function al({formatter:e,sampleRate:t,totalLeft:n,leftTicks:a,totalRight:r,rightTicks:i,title:o,units:l},s=Lo,c){var f,u;const d=i>0?r/i:0,h=Br(a>0?n/a:0),m=Br(d),p={percent:`${h}%`,samples:Ar(n),units:l,formattedValue:e.format(n,t),tooltipType:"flamegraph"},g={percent:`${m}%`,samples:Ar(r),units:l,formattedValue:e.format(r,t),tooltipType:"flamegraph"};let v=zr(h,m);Number.isFinite(v)||(v=0);let b="";v>0?b=s.badColor.rgb().string():v<0&&(b=s.goodColor.rgb().string());let y="";return 0===n&&r>0?y=null!==(f=null==c?void 0:c.diffNew)&&void 0!==f?f:"新增":0===r&&n>0?y=null!==(u=null==c?void 0:c.diffRemoved)&&void 0!==u?u:"移除":0===v?y="0%":v>0?y=`+${v.toFixed(2)}%`:v<0&&(y=`${v.toFixed(2)}%`),{title:{text:o,diff:{text:y,color:b}},tooltipData:[p,g]}}var rl="ContextMenu-module_dummy__5n2-N";function il(t){const[n,r]=So({transition:!0}),[i,o]=a.useState({x:0,y:0}),{canvasRef:l}=t,[s,c]=a.useState([]),{xyToMenuItems:f,onClose:u,onOpen:d}=t;return a.useEffect(()=>{r(!1);const e=l.current;if(!e)return()=>{};const t=e=>{e.preventDefault();const t=f(e.offsetX,e.offsetY);c(t);const n=e.clientX,a=e.clientY+20;o({x:n,y:a}),r(!0),d(e.offsetX,e.offsetY)};return e.addEventListener("contextmenu",t),()=>{e.removeEventListener("contextmenu",t)}},[f]),e(bo,{...n,className:rl,anchorPoint:i,onClose:()=>{r(!1),u()},children:s})}var ol="LogoLink-module_logoLink__oWRri";function ll(){return t("a",{className:ol,href:"https://github.com/pyroscope-io/pyroscope/",target:"_blank",rel:"noreferrer",children:[t("svg",{width:"22px",height:"22px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[e("defs",{children:t("radialGradient",{cx:"49.4236252%",cy:"92.6627823%",fx:"49.4236252%",fy:"92.6627823%",r:"195.066755%",gradientTransform:"translate(0.494236,0.926628),scale(1.000000,0.735610),rotate(-90.000000),translate(-0.494236,-0.926628)",id:"radialGradient-1",children:[e("stop",{stopColor:"#FFB90C",offset:"0%"}),e("stop",{stopColor:"#F9243A",offset:"38.390924%"}),e("stop",{stopColor:"#F9243A",offset:"50.5405%"}),e("stop",{stopColor:"#B51424",offset:"73.98091%"}),e("stop",{stopColor:"#B51424",offset:"100%"})]})}),e("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:e("g",{id:"fire-part",transform:"translate(148.516736, 0.000000)",fillRule:"nonzero",children:t("g",{id:"whole-thing",transform:"translate(363.983264, 495.000000) scale(-1, 1) rotate(-180.000000) translate(-363.983264, -495.000000) translate(0.483264, 0.000000)",children:[e("g",{id:"g70",transform:"translate(-0.000091, 0.685815)",fill:"url(#radialGradient-1)",children:e("path",{d:"M65.3646667,571.739321 L65.4492471,571.698868 C19.5139147,505.999969 -5.32464048,424.477859 1.04305801,336.877516 L1.04305801,336.877516 C14.0321963,158.179446 159.192462,13.7596653 338.059844,1.5917266 L338.059844,1.5917266 C419.418369,-3.93888015 495.500283,17.3823334 558.456522,57.4611191 L558.456522,57.4611191 L481.301947,162.097965 C437.516468,136.521928 399.367671,129.590556 363.486536,130.155994 L363.486536,130.155994 C234.497143,130.155994 129.556988,235.032238 129.556988,363.946998 L129.556988,363.946998 C129.556988,492.865683 234.497143,597.738003 363.486536,597.738003 L363.486536,597.738003 C492.483783,597.738003 597.427864,492.865683 597.427864,363.946998 L597.427864,363.946998 C597.41276,304.634864 581.39383,255.677522 530.630465,199.668053 L607.770843,95.1329436 C680.936847,161.576603 726.932594,257.364176 726.932594,363.946998 L726.932594,363.946998 C726.932594,458.031616 691.13483,543.75602 632.416071,608.271816 L632.416071,608.271816 L632.416071,608.275741 L533.597728,748.122808 L428.601388,617.203806 L434.703262,646.563419 C459.453008,765.59222 433.664131,889.543925 363.49439,988.853335 L363.49439,988.853335 L65.3646667,571.723019 L65.3646667,571.739321 Z",id:"path84"})}),e("g",{id:"blue",transform:"translate(191.447039, 191.331780)",children:t("g",{id:"g88",transform:"translate(-0.000063, 0.685930)",children:[e("g",{id:"g94",transform:"translate(0.177296, 0.699054)",fill:"#3EC1D3",children:e("path",{d:"M171.862466,343.697728 C77.0961324,343.697728 -0.00497405932,266.647602 -0.00497405932,171.934957 C-0.00497405932,77.2182874 77.0961324,0.168162396 171.862466,0.168162396 C266.632828,0.168162396 343.741988,77.2182874 343.741988,171.934957 C343.741988,266.647602 266.632828,343.697728 171.862466,343.697728",id:"path96"})}),e("g",{id:"g98",transform:"translate(29.362379, 172.629585)",fill:"#FFFFFF",children:e("path",{d:"M22.8397982,0 L0.671669409,0 C0.671669409,78.2496309 64.380874,141.920035 142.678189,141.920035 L142.678189,119.765407 C76.6007327,119.765407 22.8397982,66.0372141 22.8397982,0",id:"path100"})})]})})]})})})]}),e("span",{children:"Pyroscope"})]})}const sl=()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",children:e("g",{id:"z9nPJj.tif",children:e("path",{d:"M62,13.33V49.68c-.02,.05-.04,.11-.05,.16-.3,2.66-2.66,5.16-6.08,5.15-15.92,0-31.83,0-47.75-.01-.54,0-1.1-.06-1.62-.19-2.73-.69-4.52-3.09-4.52-5.88,0-12,.01-23.56,.01-34.9,0-.29,.01-.57,.05-.86,.35-2.3,1.62-3.91,3.84-4.75,.6-.23,1.27-.28,1.9-.41,16.13,0,32.27,0,48.4,0,.09,.01,.17,.04,.26,.04,2.66,.21,4.8,2.01,5.4,4.57,.06,.24,.1,.48,.14,.72ZM28.99,31.81c0-3.92-.01-7.91-.01-11.81H8c0,3.91,.01,7.9,.01,11.81H28.99Zm27,0c0-3.92-.01-7.92-.01-11.81h-20.97c0,3.92,.01,7.91,.01,11.81h20.97Zm-47.98,5.19c0,3.7,0,8,0,11.69v.31H29v-12m6.01,.04c0,3.93-.01,8.05-.01,11.96h20.99c0-.12,0-.22,0-.31,0-3.7,0-7.99,0-11.69"})})}),cl=()=>t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",children:[e("path",{d:"M31,8.04H7.62c-.61,.13-1.26,.18-1.84,.41-2.14,.84-3.37,2.45-3.71,4.75-.04,.28-.05,.57-.05,.86,0,11.32-.02,22.88-.01,34.87,0,2.79,1.73,5.18,4.37,5.88,.51,.13,1.04,.19,1.57,.19,7.69,0,15.38,0,23.07,0V8.04Zm-2.92,11.99c0,3.9,.01,7.89,.01,11.8H7.82c0-3.9-.01-7.89-.01-11.8H28.08ZM7.82,49.01v-.31c0-3.69,0-7.99,0-11.68H28.1v11.99H7.82Z"}),e("path",{d:"M58.67,7.9h-25.67V55h2.9c1.84,0,2.9-1.55,2.9-3.45V27.14h11.6v6.37c0,1.91,1.49,3.45,3.33,3.45h4.94c1.84,0,3.33-1.55,3.33-3.45V11.35c0-1.91-1.49-3.45-3.33-3.45Z"})]}),fl=()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",children:e("path",{d:"M5.44,8H58.56c1.9,0,3.44,1.54,3.44,3.44v6.16s0,9.6,0,9.6v6.36c0,1.9-1.54,3.44-3.44,3.44h-5.11c-1.9,0-3.44-1.54-3.44-3.44v-6.36h-12s0,9.8,0,9.8v9s0,5.56,0,5.56c0,1.9-1.1,3.44-3,3.44h-6c-1.9,0-3-1.54-3-3.44v-5.56h-9c-1.99,0-3-1.52-3-3.4v-5.6H5.44c-1.9,0-3.44-1.74-3.44-3.64v-6.16s0-9.6,0-9.6v-6.16c0-1.9,1.54-3.44,3.44-3.44Z"})}),ul=({fill:n})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",fill:n,children:[e("g",{id:"shape_squiggle",children:e("path",{d:"M60,38.42c-4.62,0-6.97-2.64-8.86-4.75-1.81-2.03-2.86-3.08-5.13-3.08s-3.32,1.06-5.13,3.08c-1.89,2.12-4.24,4.75-8.86,4.75s-6.97-2.64-8.87-4.75c-1.81-2.03-2.86-3.08-5.14-3.08s-3.33,1.06-5.14,3.08c-1.89,2.12-4.25,4.75-8.87,4.75-1.38,0-2.5-1.12-2.5-2.5s1.12-2.5,2.5-2.5c2.28,0,3.33-1.06,5.14-3.09,1.89-2.12,4.25-4.75,8.87-4.75s6.97,2.64,8.87,4.75c1.81,2.03,2.86,3.09,5.14,3.09s3.32-1.06,5.13-3.08c1.89-2.12,4.24-4.75,8.86-4.75s6.97,2.64,8.86,4.75c1.81,2.03,2.86,3.08,5.13,3.08,1.38,0,2.5,1.12,2.5,2.5s-1.12,2.5-2.5,2.5Z"})}),t("g",{id:"Layer_4",children:[e("rect",{x:"2",y:"8",width:"60",height:"14",rx:"3.94",ry:"3.94"}),e("path",{d:"M58.06,41h-18.64c-1.58,0-3.14,.42-4.5,1.22l-6.88,4.02c-1.87,1.09-4.19,1.09-6.06,0l-6.88-4.02c-1.37-.8-2.92-1.22-4.5-1.22H5.94c-2.18,0-3.94,1.76-3.94,3.94v7.12c0,2.18,1.76,3.94,3.94,3.94H58.06c2.18,0,3.94-1.76,3.94-3.94v-7.12c0-2.18-1.76-3.94-3.94-3.94Z"})]})]}),dl=()=>t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",children:[e("g",{id:"ab_shape",children:t("g",{children:[e("path",{d:"M16.71,41l-.42-2.45h-.16c-1.63,1.95-4.06,2.95-6.91,2.95-4.8,0-7.86-3.45-7.86-7.45,0-6.4,6.01-9.3,14.13-9.3v-.4c0-1.5-.84-3.2-4.38-3.2-2.48,0-4.9,.75-6.54,1.7l-1.42-4.75c1.69-.9,5.01-2.1,9.44-2.1,8.33,0,10.65,4.95,10.65,10.45v8.7c0,2.25,.11,4.4,.37,5.85h-6.91Zm-.95-11.7c-3.64,0-6.91,.9-6.91,4,0,2.1,1.37,3,3,3s3.22-1.05,3.74-2.6c.11-.35,.16-.8,.16-1.2v-3.2Z"}),e("path",{d:"M29.36,41c.11-1.79,.21-4.62,.21-7.25V6h7.7v13.46h.11c1.42-1.99,3.8-3.28,7.06-3.28,5.85,0,9.7,5.01,9.65,12.16,0,8.69-5.22,13.16-10.81,13.16-2.74,0-5.22-.99-6.91-3.72h-.11l-.37,3.23h-6.54Zm7.91-9.83c0,.55,.05,.99,.16,1.39,.58,1.94,2.16,3.18,4.01,3.18,3.11,0,4.9-2.53,4.9-7,0-3.92-1.58-6.8-4.9-6.8-1.85,0-3.53,1.39-3.95,3.28-.16,.4-.21,.94-.21,1.44v4.52Z"})]})}),e("g",{id:"arrows",children:e("polygon",{points:"62 54 52 45 52 51 35 51 35 57 52 57 52 63 62 54"})})]}),hl=()=>t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",children:[e("g",{id:"yz_shape",children:t("g",{children:[e("path",{d:"M22.75,13l3.43,12.39c.42,1.47,.84,3.2,1.16,4.52h.11c.32-1.32,.69-3.05,1-4.47l2.9-12.44h8.01l-5.8,17.16c-2.95,8.33-5.17,12.54-8.07,15.23-2.58,2.39-5.43,3.3-7.17,3.55l-1.85-6.3c1.11-.25,2.32-.76,3.48-1.52,1.16-.71,2.32-1.88,2.95-3.05,.26-.41,.42-.76,.42-1.12,0-.31-.05-.66-.26-1.17L14.32,13h8.43Z"}),e("path",{d:"M41.62,33.46l7.59-10.16c1.27-1.57,2.37-2.95,3.58-4.27v-.15h-10.33v-5.89h19.45l-.05,4.57-7.28,9.8c-1.21,1.57-2.48,3.15-3.69,4.42v.1h11.33v5.94h-20.61v-4.37Z"})]})}),e("g",{id:"arrows",children:e("polygon",{points:"12 51 12 45 2 54 12 63 12 57 29 57 29 51 12 51"})})]});var ml="Header-module_flamegraphHeader__nIrXP",pl="Header-module_row__P7-2L",gl="Header-module_flamegraphTitle__sjsvB";function vl(a){const{format:r,units:i,toolbarVisible:o}=a,l={objects:"number of objects in RAM per function",goroutines:"number of goroutines",bytes:"amount of RAM per function",samples:"CPU time per function",lock_nanoseconds:"time spent waiting on locks per function",lock_samples:"number of contended locks per function",trace_samples:"aggregated span duration",exceptions:"number of exceptions thrown",unknown:""},s=o&&"single"===r?e("div",{className:`${pl} ${gl}`,role:"heading","aria-level":2,children:l[i]&&t(n,{children:["Frame width represents ",l[i]]})}):null;return s?e("div",{className:ml,children:e("div",{children:s})}):null}var bl="FlamegraphBreadcrumb-module_bar__v8uhn",yl="FlamegraphBreadcrumb-module_chip__pdv1k",wl="FlamegraphBreadcrumb-module_focusTooltip__nX30y",xl="FlamegraphBreadcrumb-module_separator__Zj-rC",kl="FlamegraphBreadcrumb-module_chipSeparator__S-Gld",Nl="FlamegraphBreadcrumb-module_unitLabel__bjHEA",Sl="FlamegraphBreadcrumb-module_focusIcon__aJBb6",Cl="FlamegraphBreadcrumb-module_ofTotal__kk4dt",Tl="FlamegraphBreadcrumb-module_clearBtn__spimK";function _l(a){const{totalValueText:r,totalSamplesText:i,samplesLabel:o,unitLabel:l,hasFocus:s,focusPercent:c,focusLabel:f,ofTotalPlacement:u="after",ofTotalLabel:d,clearFocusLabel:h,onClearFocus:m}=a,p=f&&f.trim().length>0?f:void 0;return t("div",{className:bl,"aria-live":"polite",children:[t("span",{className:yl,children:[e("span",{children:r}),e("span",{className:xl,children:"|"}),t("span",{children:[i," ",o]}),t("span",{className:Nl,children:["(",l,")"]})]}),s&&void 0!==c&&t(n,{children:[e("span",{className:kl,children:">"}),t("span",{className:`${yl} ${wl}`,"data-tooltip":p,children:[e("span",{className:Sl,"aria-hidden":"true",children:t("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[e("path",{d:"M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6-10-6-10-6Z"}),e("circle",{cx:"12",cy:"12",r:"3.2"})]})}),t(n,"before"===u?{children:[e("span",{className:Cl,children:d}),t("span",{children:[c.toFixed(2),"%"]})]}:{children:[t("span",{children:[c.toFixed(2),"%"]}),e("span",{className:Cl,children:d})]}),e("button",{type:"button",className:Tl,"aria-label":h,onClick:e=>{e.preventDefault(),e.stopPropagation(),m()},children:"×"})]})]})]})}var Ml="styles-module_flamegraphPane__ejguD",Pl="styles-module_fitModeItem__0UBwN",Fl="styles-module_sandwichItem__WYvnd";function Rl(n){const r=a.useRef(null),o=a.useRef(null),l=c(),s=c(),u=Xo(),d=c({lastWidth:0,lastHeight:0}),h=i(()=>({collapsedLevelsSingular:u.collapsedLevelsSingular,collapsedLevelsPlural:u.collapsedLevelsPlural,isZh:"Location"!==u.location}),[u.collapsedLevelsSingular,u.collapsedLevelsPlural,u.location]),[m,p]=a.useState(N.nothing()),{flamebearer:g,focusedNode:v,fitMode:b,updateFitMode:y,highlightQuery:w,zoom:x,toolbarVisible:k,headerVisible:S=!0,disableClick:C=!1,showSingleLevel:T=!1,showCredit:P,setActiveItem:F,selectedItem:R,updateView:I,enableSandwichView:j=!0,breadcrumb:E}=n,{onZoom:A,onReset:D,isDirty:O,onFocusOnNode:L}=n,{"data-testid":B}=n,{palette:z,setPalette:$}=n,V=f(M(()=>{J(),Q()},50),[]);_(r,()=>{if(l){if(r.current){const e=r.current.clientWidth,t=r.current.clientHeight,n=d.current;if(!(Math.abs(e-n.lastWidth)>=2))return;n.lastWidth=e,n.lastHeight=t}V()}});const H=(e,t)=>Z().xyToBar(e,t).map(e=>({left:Y().offsetLeft+e.x,top:Y().offsetTop+e.y,width:e.width})),W=f((n,a)=>{const r=O(),i=Z().xyToBar(n,a),o=i.isJust?i.value.name:"";return[t(Po,{disabled:!r,onClick:D,children:[e(gr,{icon:yi.faRedo}),u.resetView]},"reset"),(()=>{const n=i.mapOrElse(()=>!1,()=>!0),a=i.mapOrElse(()=>()=>{},e=>L.bind(null,e.i,e.j));return t(Po,{disabled:!n,onClick:a,children:[e(gr,{icon:ji.faCompressAlt}),u.collapseNodesAbove]},"focus")})(),t(Po,{onClick:()=>{navigator.clipboard&&navigator.clipboard.writeText(o)},children:[e(gr,{icon:Ni.faCopy}),u.copyFunctionName]},"copy"),(()=>{const n=R.isJust&&R.value===o?u.clearHighlight:u.highlightSimilarNodes;return t(Po,{onClick:()=>{F({name:o})},children:[e(gr,{icon:Mi.faHighlighter}),n]},"highlight-similar-nodes")})(),(()=>{if(!I||!j)return null;return t(Po,{className:Fl,onClick:()=>{I("sandwich"),F({name:o})},children:[e(ul,{fill:"black"}),u.openInSandwichView]},"open-in-sandwich-view")})(),(()=>{const n=b===Qr;return t(Po,{className:Pl,onClick:()=>{y(n?Jr:Qr)},children:[e(n?hl:dl,{}),n?u.showTextTailFirst:u.showTextHeadFirst]},"fit-mode")})()].filter(Boolean)},[l,R,b,O,D,L,F,I,u,j]),U=()=>{if(r.current){const e=new li(g,r.current,v,b,w,x,z,h);l.current=e}if(o.current){const e=new li(g,o.current,v,b,w,x,z,h);s.current=e}};a.useEffect(()=>{U(),J(),Q()},[z,h]),a.useEffect(()=>{U(),J(),Q()},[r.current,g,v,b,x]),a.useEffect(()=>{U(),J(),Q()},[w]);const J=()=>{var e,t,n;null===(e=null==r?void 0:r.current)||void 0===e||e.setAttribute("data-state","rendering"),null===(t=null==l?void 0:l.current)||void 0===t||t.render({renderText:!1}),null===(n=null==r?void 0:r.current)||void 0===n||n.setAttribute("data-state","rendered")},Q=()=>{var e,t,n;null===(e=null==o?void 0:o.current)||void 0===e||e.setAttribute("data-state","rendering"),null===(t=null==s?void 0:s.current)||void 0===t||t.render({renderRects:!1}),null===(n=null==o?void 0:o.current)||void 0===n||n.setAttribute("data-state","rendered")},X=!g||g&&g.names.length<=1,Y=()=>{if(!r.current)throw new Error("Missing canvas");return r.current},Z=()=>{if(!l.current)throw new Error("Missing canvas");return l.current};return t("div",{"data-testid":"flamegraph-view",className:ci(Ml,{"vertical-orientation":"double"===g.format}),children:[E&&e(_l,{totalValueText:E.totalValueText,totalSamplesText:E.totalSamplesText,samplesLabel:E.samplesLabel,unitLabel:E.unitLabel,hasFocus:E.hasFocus,focusPercent:E.focusPercent,focusLabel:E.focusLabel,ofTotalPlacement:E.ofTotalPlacement,ofTotalLabel:E.ofTotalLabel,clearFocusLabel:E.clearFocusLabel,onClearFocus:E.onClearFocus}),S&&e(vl,{format:g.format,units:g.units,toolbarVisible:k}),t("div",{"data-testid":B,style:{position:"relative",opacity:X&&!T?0:1},children:[e("canvas",{height:"0","data-testid":"flamegraph-canvas","data-highlightquery":w,className:ci("flamegraph-canvas",Ro),ref:r,onClick:C?void 0:e=>{const t=Z().xyToBar(e.nativeEvent.offsetX,e.nativeEvent.offsetY);t.match({Nothing:()=>{},Just:e=>{x.match({Nothing:()=>{A(t)},Just:n=>{e.i===n.i&&e.j===n.j?A(N.nothing()):A(t)}})}})}}),e("canvas",{height:"0","data-testid":"flamegraph-text-canvas",className:ci("flamegraph-text-canvas",Io),ref:o}),l&&r&&e(Eo,{barHeight:jr,canvasRef:r,zoom:x,xyToHighlightData:H}),l&&e(Oo,{barHeight:jr,node:m})]}),P?e(ll,{}):"",l&&e(nl,{format:g.format,canvasRef:r,xyToData:(e,t)=>Z().xyToBar(e,t),numTicks:g.numTicks,sampleRate:g.sampleRate,leftTicks:"double"===g.format?g.leftTicks:0,rightTicks:"double"===g.format?g.rightTicks:0,units:g.units,palette:z}),!C&&l&&r&&e(il,{canvasRef:r,xyToMenuItems:W,onClose:()=>{p(N.nothing())},onOpen:(e,t)=>{p(H(e,t))}})]})}var Il,jl={exports:{}};
|
|
12
|
+
function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function H(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,q(a.key),a)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function W(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=G(e))||t){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}function U(e,t,n){return(t=q(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach(function(t){U(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function X(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return l}}(e,t)||G(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Y(e){return function(e){if(Array.isArray(e))return V(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||G(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t);if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function Z(e){return Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z(e)}function G(e,t){if(e){if("string"==typeof e)return V(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}var K=function(){},ee={},te={},ne=null,ae={mark:K,measure:K};try{"undefined"!=typeof window&&(ee=window),"undefined"!=typeof document&&(te=document),"undefined"!=typeof MutationObserver&&(ne=MutationObserver),"undefined"!=typeof performance&&(ae=performance)}catch(Me){}var re=(ee.navigator||{}).userAgent,oe=void 0===re?"":re,ie=ee,le=te,se=ne,ce=ae;ie.document;var fe,ue=!!le.documentElement&&!!le.head&&"function"==typeof le.addEventListener&&"function"==typeof le.createElement,de=~oe.indexOf("MSIE")||~oe.indexOf("Trident/"),he={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},me=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],pe="classic",ge="duotone",ve="sharp",be="sharp-duotone",ye="chisel",we="etch",xe="jelly",ke="jelly-duo",Ne="jelly-fill",Se="notdog",Te="notdog-duo",Ce="slab",_e="slab-press",Me="thumbprint",Re="utility",Pe="utility-duo",Fe="utility-fill",Ie="whiteboard",je=[pe,ge,ve,be,ye,we,xe,ke,Ne,Se,Te,Ce,_e,Me,Re,Pe,Fe,Ie];U(U(U(U(U(U(U(U(U(U(fe={},pe,"Classic"),ge,"Duotone"),ve,"Sharp"),be,"Sharp Duotone"),ye,"Chisel"),we,"Etch"),xe,"Jelly"),ke,"Jelly Duo"),Ne,"Jelly Fill"),Se,"Notdog"),U(U(U(U(U(U(U(U(fe,Te,"Notdog Duo"),Ce,"Slab"),_e,"Slab Press"),Me,"Thumbprint"),Re,"Utility"),Pe,"Utility Duo"),Fe,"Utility Fill"),Ie,"Whiteboard");var Ee=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),Be=["fak","fa-kit","fakd","fa-kit-duotone"],De={fak:"kit","fa-kit":"kit"},Le={fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"};U(U({},"kit","Kit"),"kit-duotone","Kit Duotone");var Ae,Oe={kit:"fak"},ze={"kit-duotone":"fakd"},$e="duotone-group",Ve="swap-opacity",He="primary",We="secondary";U(U(U(U(U(U(U(U(U(U(Ae={},"classic","Classic"),"duotone","Duotone"),"sharp","Sharp"),"sharp-duotone","Sharp Duotone"),"chisel","Chisel"),"etch","Etch"),"jelly","Jelly"),"jelly-duo","Jelly Duo"),"jelly-fill","Jelly Fill"),"notdog","Notdog"),U(U(U(U(U(U(U(U(Ae,"notdog-duo","Notdog Duo"),"slab","Slab"),"slab-press","Slab Press"),"thumbprint","Thumbprint"),"utility","Utility"),"utility-duo","Utility Duo"),"utility-fill","Utility Fill"),"whiteboard","Whiteboard");U(U({},"kit","Kit"),"kit-duotone","Kit Duotone");var Ue={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},Qe=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"]),Je=[1,2,3,4,5,6,7,8,9,10],Xe=Je.concat([11,12,13,14,15,16,17,18,19,20]),Ye=[].concat(Y(Object.keys({classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]})),["solid","regular","light","thin","duotone","brands","semibold"],["aw","fw","pull-left","pull-right"],["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",$e,Ve,He,We]).concat(Je.map(function(e){return"".concat(e,"x")})).concat(Xe.map(function(e){return"w-".concat(e)})),qe="___FONT_AWESOME___",Ze="svg-inline--fa",Ge="data-fa-i2svg",Ke="data-fa-pseudo-element",et="data-prefix",tt="data-icon",nt="fontawesome-i2svg",at=["HTML","HEAD","STYLE","SCRIPT"],rt=["::before","::after",":before",":after"],ot=function(){try{return"production"===process.env.NODE_ENV}catch(e){return!1}}();function it(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[pe]}})}var lt=J({},he);lt[pe]=J(J(J(J({},{"fa-duotone":"duotone"}),he[pe]),De),Le);var st=it(lt),ct=J({},{chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}});ct[pe]=J(J(J(J({},{duotone:"fad"}),ct[pe]),Oe),ze);var ft=it(ct),ut=J({},Ue);ut[pe]=J(J({},ut[pe]),{fak:"fa-kit"});var dt=it(ut),ht=J({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}});ht[pe]=J(J({},ht[pe]),{"fa-kit":"fak"}),it(ht);var mt=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,pt="fa-layers-text",gt=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i;it(J({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}}));var vt=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],bt={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},yt=[].concat(Y(["kit"]),Y(Ye)),wt=ie.FontAwesomeConfig||{};if(le&&"function"==typeof le.querySelector){[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(e){var t=X(e,2),n=t[0],a=t[1],r=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=le.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=r&&(wt[a]=r)})}var xt={styleDefault:"solid",familyDefault:pe,cssPrefix:"fa",replacementClass:Ze,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};wt.familyPrefix&&(wt.cssPrefix=wt.familyPrefix);var kt=J(J({},xt),wt);kt.autoReplaceSvg||(kt.observeMutations=!1);var Nt={};Object.keys(xt).forEach(function(e){Object.defineProperty(Nt,e,{enumerable:!0,set:function(t){kt[e]=t,St.forEach(function(e){return e(Nt)})},get:function(){return kt[e]}})}),Object.defineProperty(Nt,"familyPrefix",{enumerable:!0,set:function(e){kt.cssPrefix=e,St.forEach(function(e){return e(Nt)})},get:function(){return kt.cssPrefix}}),ie.FontAwesomeConfig=Nt;var St=[];var Tt=16,Ct={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function _t(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function Mt(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Rt(e){return e.classList?Mt(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(e){return e})}function Pt(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Ft(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function It(e){return e.size!==Ct.size||e.x!==Ct.x||e.y!==Ct.y||e.rotate!==Ct.rotate||e.flipX||e.flipY}function jt(){var e="fa",t=Ze,n=Nt.cssPrefix,a=Nt.replacementClass,r=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 7 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 7 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 7 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-slab-regular: normal 400 1em/1 "Font Awesome 7 Slab";\n --fa-font-slab-press-regular: normal 400 1em/1 "Font Awesome 7 Slab Press";\n --fa-font-whiteboard-semibold: normal 600 1em/1 "Font Awesome 7 Whiteboard";\n --fa-font-thumbprint-light: normal 300 1em/1 "Font Awesome 7 Thumbprint";\n --fa-font-notdog-solid: normal 900 1em/1 "Font Awesome 7 Notdog";\n --fa-font-notdog-duo-solid: normal 900 1em/1 "Font Awesome 7 Notdog Duo";\n --fa-font-etch-solid: normal 900 1em/1 "Font Awesome 7 Etch";\n --fa-font-jelly-regular: normal 400 1em/1 "Font Awesome 7 Jelly";\n --fa-font-jelly-fill-regular: normal 400 1em/1 "Font Awesome 7 Jelly Fill";\n --fa-font-jelly-duo-regular: normal 400 1em/1 "Font Awesome 7 Jelly Duo";\n --fa-font-chisel-regular: normal 400 1em/1 "Font Awesome 7 Chisel";\n --fa-font-utility-semibold: normal 600 1em/1 "Font Awesome 7 Utility";\n --fa-font-utility-duo-semibold: normal 600 1em/1 "Font Awesome 7 Utility Duo";\n --fa-font-utility-fill-semibold: normal 600 1em/1 "Font Awesome 7 Utility Fill";\n}\n\n.svg-inline--fa {\n box-sizing: content-box;\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n width: var(--fa-width, 1.25em);\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285714em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left,\n.svg-inline--fa .fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-pull-right,\n.svg-inline--fa .fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: var(--fa-width, 1.25em);\n}\n.fa-layers .svg-inline--fa {\n inset: 0;\n margin: auto;\n position: absolute;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-xs {\n font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-sm {\n font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-lg {\n font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-xl {\n font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-2xl {\n font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-width-auto {\n --fa-width: auto;\n}\n\n.fa-fw,\n.fa-width-fixed {\n --fa-width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-inline-start: var(--fa-li-margin, 2.5em);\n padding-inline-start: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n/* Heads Up: Bordered Icons will not be supported in the future!\n - This feature will be deprecated in the next major release of Font Awesome (v8)!\n - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.\n*/\n/* Notes:\n* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)\n* --@{v.$css-prefix}-border-padding =\n ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it\'s vertical alignment)\n ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)\n*/\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.0625em);\n box-sizing: var(--fa-border-box-sizing, content-box);\n padding: var(--fa-border-padding, 0.1875em 0.25em);\n}\n\n.fa-pull-left,\n.fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right,\n.fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n .fa-bounce,\n .fa-fade,\n .fa-beat-fade,\n .fa-flip,\n .fa-pulse,\n .fa-shake,\n .fa-spin,\n .fa-spin-pulse {\n animation: none !important;\n transition: none !important;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.svg-inline--fa.fa-inverse {\n fill: var(--fa-inverse, #fff);\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n line-height: 2em;\n position: relative;\n vertical-align: middle;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.svg-inline--fa.fa-stack-1x {\n --fa-width: 1.25em;\n height: 1em;\n width: var(--fa-width);\n}\n.svg-inline--fa.fa-stack-2x {\n --fa-width: 2.5em;\n height: 2em;\n width: var(--fa-width);\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n inset: 0;\n margin: auto;\n position: absolute;\n z-index: var(--fa-stack-z-index, auto);\n}';if(n!==e||a!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),i=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");r=r.replace(o,".".concat(n,"-")).replace(i,"--".concat(n,"-")).replace(l,".".concat(a))}return r}var Et=!1;function Bt(){Nt.autoAddCss&&!Et&&(!function(e){if(e&&ue){var t=le.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=le.head.childNodes,a=null,r=n.length-1;r>-1;r--){var o=n[r],i=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(a=o)}le.head.insertBefore(t,a)}}(jt()),Et=!0)}var Dt={mixout:function(){return{dom:{css:jt,insertCss:Bt}}},hooks:function(){return{beforeDOMElementCreation:function(){Bt()},beforeI2svg:function(){Bt()}}}},Lt=ie||{};Lt[qe]||(Lt[qe]={}),Lt[qe].styles||(Lt[qe].styles={}),Lt[qe].hooks||(Lt[qe].hooks={}),Lt[qe].shims||(Lt[qe].shims=[]);var At=Lt[qe],Ot=[],zt=function(){le.removeEventListener("DOMContentLoaded",zt),$t=1,Ot.map(function(e){return e()})},$t=!1;function Vt(e){var t=e.tag,n=e.attributes,a=void 0===n?{}:n,r=e.children,o=void 0===r?[]:r;return"string"==typeof e?Pt(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(Pt(e[n]),'" ')},"").trim()}(a),">").concat(o.map(Vt).join(""),"</").concat(t,">")}function Ht(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}ue&&(($t=(le.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(le.readyState))||le.addEventListener("DOMContentLoaded",zt));var Wt=function(e,t,n,a){var r,o,i,l=Object.keys(e),s=l.length,c=t;for(void 0===n?(r=1,i=e[l[0]]):(r=0,i=n);r<s;r++)i=c(i,e[o=l[r]],o,e);return i};function Ut(e){return 1!==Y(e).length?null:e.codePointAt(0).toString(16)}function Qt(e){return Object.keys(e).reduce(function(t,n){var a=e[n];return!!a.icon?t[a.iconName]=a.icon:t[n]=a,t},{})}function Jt(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,a=void 0!==n&&n,r=Qt(t);"function"!=typeof At.hooks.addPack||a?At.styles[e]=J(J({},At.styles[e]||{}),r):At.hooks.addPack(e,Qt(t)),"fas"===e&&Jt("fa",t)}var Xt=At.styles,Yt=At.shims,qt=Object.keys(dt),Zt=qt.reduce(function(e,t){return e[t]=Object.keys(dt[t]),e},{}),Gt=null,Kt={},en={},tn={},nn={},an={};function rn(e,t){var n,a=t.split("-"),r=a[0],o=a.slice(1).join("-");return r!==e||""===o||(n=o,~yt.indexOf(n))?null:o}var on,ln=function(){var e=function(e){return Wt(Xt,function(t,n,a){return t[a]=Wt(n,e,{}),t},{})};Kt=e(function(e,t,n){(t[3]&&(e[t[3]]=n),t[2])&&t[2].filter(function(e){return"number"==typeof e}).forEach(function(t){e[t.toString(16)]=n});return e}),en=e(function(e,t,n){(e[n]=n,t[2])&&t[2].filter(function(e){return"string"==typeof e}).forEach(function(t){e[t]=n});return e}),an=e(function(e,t,n){var a=t[2];return e[n]=n,a.forEach(function(t){e[t]=n}),e});var t="far"in Xt||Nt.autoFetchSvg,n=Wt(Yt,function(e,n){var a=n[0],r=n[1],o=n[2];return"far"!==r||t||(r="fas"),"string"==typeof a&&(e.names[a]={prefix:r,iconName:o}),"number"==typeof a&&(e.unicodes[a.toString(16)]={prefix:r,iconName:o}),e},{names:{},unicodes:{}});tn=n.names,nn=n.unicodes,Gt=dn(Nt.styleDefault,{family:Nt.familyDefault})};function sn(e,t){return(Kt[e]||{})[t]}function cn(e,t){return(an[e]||{})[t]}function fn(e){return tn[e]||{prefix:null,iconName:null}}function un(){return Gt}on=function(e){Gt=dn(e.styleDefault,{family:Nt.familyDefault})},St.push(on),ln();function dn(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===t?pe:t,a=st[n][e];if(n===ge&&!e)return"fad";var r=ft[n][e]||ft[n][a],o=e in At.styles?e:null;return r||o||null}function hn(e){return e.sort().filter(function(e,t,n){return n.indexOf(e)===t})}var mn=Qe.concat(Be);function pn(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,n=void 0!==t&&t,a=null,r=hn(e.filter(function(e){return mn.includes(e)})),o=hn(e.filter(function(e){return!mn.includes(e)})),i=X(r.filter(function(e){return a=e,!me.includes(e)}),1)[0],l=void 0===i?null:i,s=function(e){var t=pe,n=qt.reduce(function(e,t){return e[t]="".concat(Nt.cssPrefix,"-").concat(t),e},{});return je.forEach(function(a){(e.includes(n[a])||e.some(function(e){return Zt[a].includes(e)}))&&(t=a)}),t}(r),c=J(J({},function(e){var t=[],n=null;return e.forEach(function(e){var a=rn(Nt.cssPrefix,e);a?n=a:e&&t.push(e)}),{iconName:n,rest:t}}(o)),{},{prefix:dn(l,{family:s})});return J(J(J({},c),function(e){var t=e.values,n=e.family,a=e.canonical,r=e.givenPrefix,o=void 0===r?"":r,i=e.styles,l=void 0===i?{}:i,s=e.config,c=void 0===s?{}:s,f=n===ge,u=t.includes("fa-duotone")||t.includes("fad"),d="duotone"===c.familyDefault,h="fad"===a.prefix||"fa-duotone"===a.prefix;!f&&(u||d||h)&&(a.prefix="fad");(t.includes("fa-brands")||t.includes("fab"))&&(a.prefix="fab");if(!a.prefix&&gn.includes(n)){if(Object.keys(l).find(function(e){return vn.includes(e)})||c.autoFetchSvg){var m=Ee.get(n).defaultShortPrefixId;a.prefix=m,a.iconName=cn(a.prefix,a.iconName)||a.iconName}}"fa"!==a.prefix&&"fa"!==o||(a.prefix=un()||"fas");return a}({values:e,family:s,styles:Xt,config:Nt,canonical:c,givenPrefix:a})),function(e,t,n){var a=n.prefix,r=n.iconName;if(e||!a||!r)return{prefix:a,iconName:r};var o="fa"===t?fn(r):{},i=cn(a,r);r=o.iconName||i||r,"far"!==(a=o.prefix||a)||Xt.far||!Xt.fas||Nt.autoFetchSvg||(a="fas");return{prefix:a,iconName:r}}(n,a,c))}var gn=je.filter(function(e){return e!==pe||e!==ge}),vn=Object.keys(Ue).filter(function(e){return e!==pe}).map(function(e){return Object.keys(Ue[e])}).flat();var bn=function(){return H(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}},[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];var r=n.reduce(this._pullDefinitions,{});Object.keys(r).forEach(function(t){e.definitions[t]=J(J({},e.definitions[t]||{}),r[t]),Jt(t,r[t]);var n=dt[pe][t];n&&Jt(n,r[t]),ln()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map(function(t){var a=n[t],r=a.prefix,o=a.iconName,i=a.icon,l=i[2];e[r]||(e[r]={}),l.length>0&&l.forEach(function(t){"string"==typeof t&&(e[r][t]=i)}),e[r][o]=i}),e}}])}(),yn=[],wn={},xn={},kn=Object.keys(xn);function Nn(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];return(wn[e]||[]).forEach(function(e){t=e.apply(null,[t].concat(a))}),t}function Sn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];(wn[e]||[]).forEach(function(e){e.apply(null,n)})}function Tn(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return xn[e]?xn[e].apply(null,t):void 0}function Cn(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||un();if(t)return t=cn(n,t)||t,Ht(_n.definitions,n,t)||Ht(At.styles,n,t)}var _n=new bn,Mn={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ue?(Sn("beforeI2svg",e),Tn("pseudoElements2svg",e),Tn("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.autoReplaceSvgRoot;!1===Nt.autoReplaceSvg&&(Nt.autoReplaceSvg=!0),Nt.observeMutations=!0,e=function(){Pn({autoReplaceSvgRoot:n}),Sn("watch",t)},ue&&($t?setTimeout(e,0):Ot.push(e))}},Rn={noAuto:function(){Nt.autoReplaceSvg=!1,Nt.observeMutations=!1,Sn("noAuto")},config:Nt,dom:Mn,parse:{icon:function(e){if(null===e)return null;if("object"===Z(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:cn(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=dn(e[0]);return{prefix:n,iconName:cn(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(Nt.cssPrefix,"-"))>-1||e.match(mt))){var a=pn(e.split(" "),{skipLookups:!0});return{prefix:a.prefix||un(),iconName:cn(a.prefix,a.iconName)||a.iconName}}if("string"==typeof e){var r=un();return{prefix:r,iconName:cn(r,e)||e}}}},library:_n,findIconDefinition:Cn,toHtml:Vt},Pn=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?le:e;(Object.keys(At.styles).length>0||Nt.autoFetchSvg)&&ue&&Nt.autoReplaceSvg&&Rn.dom.i2svg({node:t})};function Fn(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(e){return Vt(e)})}}),Object.defineProperty(e,"node",{get:function(){if(ue){var t=le.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function In(e){var t=e.icons,n=t.main,a=t.mask,r=e.prefix,o=e.iconName,i=e.transform,l=e.symbol,s=e.maskId,c=e.extra,f=e.watchable,u=void 0!==f&&f,d=a.found?a:n,h=d.width,m=d.height,p=[Nt.replacementClass,o?"".concat(Nt.cssPrefix,"-").concat(o):""].filter(function(e){return-1===c.classes.indexOf(e)}).filter(function(e){return""!==e||!!e}).concat(c.classes).join(" "),g={children:[],attributes:J(J({},c.attributes),{},{"data-prefix":r,"data-icon":o,class:p,role:c.attributes.role||"img",viewBox:"0 0 ".concat(h," ").concat(m)})};(function(e){return["aria-label","aria-labelledby","title","role"].some(function(t){return t in e})})(c.attributes)||c.attributes["aria-hidden"]||(g.attributes["aria-hidden"]="true"),u&&(g.attributes[Ge]="");var v=J(J({},g),{},{prefix:r,iconName:o,main:n,mask:a,maskId:s,transform:i,symbol:l,styles:J({},c.styles)}),b=a.found&&n.found?Tn("generateAbstractMask",v)||{children:[],attributes:{}}:Tn("generateAbstractIcon",v)||{children:[],attributes:{}},y=b.children,w=b.attributes;return v.children=y,v.attributes=w,l?function(e){var t=e.prefix,n=e.iconName,a=e.children,r=e.attributes,o=e.symbol,i=!0===o?"".concat(t,"-").concat(Nt.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:J(J({},r),{},{id:i}),children:a}]}]}(v):function(e){var t=e.children,n=e.main,a=e.mask,r=e.attributes,o=e.styles,i=e.transform;if(It(i)&&n.found&&!a.found){var l={x:n.width/n.height/2,y:.5};r.style=Ft(J(J({},o),{},{"transform-origin":"".concat(l.x+i.x/16,"em ").concat(l.y+i.y/16,"em")}))}return[{tag:"svg",attributes:r,children:t}]}(v)}function jn(e){var t=e.content,n=e.width,a=e.height,r=e.transform,o=e.extra,i=e.watchable,l=void 0!==i&&i,s=J(J({},o.attributes),{},{class:o.classes.join(" ")});l&&(s[Ge]="");var c=J({},o.styles);It(r)&&(c.transform=function(e){var t=e.transform,n=e.width,a=void 0===n?16:n,r=e.height,o=void 0===r?16:r,i="";return i+=de?"translate(".concat(t.x/Tt-a/2,"em, ").concat(t.y/Tt-o/2,"em) "):"translate(calc(-50% + ".concat(t.x/Tt,"em), calc(-50% + ").concat(t.y/Tt,"em)) "),i+="scale(".concat(t.size/Tt*(t.flipX?-1:1),", ").concat(t.size/Tt*(t.flipY?-1:1),") "),i+"rotate(".concat(t.rotate,"deg) ")}({transform:r,width:n,height:a}),c["-webkit-transform"]=c.transform);var f=Ft(c);f.length>0&&(s.style=f);var u=[];return u.push({tag:"span",attributes:s,children:[t]}),u}var En=At.styles;function Bn(e){var t=e[0],n=e[1],a=X(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(a)?{tag:"g",attributes:{class:"".concat(Nt.cssPrefix,"-").concat(bt.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Nt.cssPrefix,"-").concat(bt.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(Nt.cssPrefix,"-").concat(bt.PRIMARY),fill:"currentColor",d:a[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:a}}}}var Dn={found:!1,width:512,height:512};function Ln(e,t){var n=t;return"fa"===t&&null!==Nt.styleDefault&&(t=un()),new Promise(function(a,r){if("fa"===n){var o=fn(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&En[t]&&En[t][e])return a(Bn(En[t][e]));!function(e,t){ot||Nt.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),a(J(J({},Dn),{},{icon:Nt.showMissingIcons&&e&&Tn("missingIconAbstract")||{}}))})}var An=function(){},On=Nt.measurePerformance&&ce&&ce.mark&&ce.measure?ce:{mark:An,measure:An},zn='FA "7.1.0"',$n=function(e){On.mark("".concat(zn," ").concat(e," ends")),On.measure("".concat(zn," ").concat(e),"".concat(zn," ").concat(e," begins"),"".concat(zn," ").concat(e," ends"))},Vn=function(e){return On.mark("".concat(zn," ").concat(e," begins")),function(){return $n(e)}},Hn=function(){};function Wn(e){return"string"==typeof(e.getAttribute?e.getAttribute(Ge):null)}function Un(e){return le.createElementNS("http://www.w3.org/2000/svg",e)}function Qn(e){return le.createElement(e)}function Jn(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===t?"svg"===e.tag?Un:Qn:t;if("string"==typeof e)return le.createTextNode(e);var a=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(t){a.setAttribute(t,e.attributes[t])}),(e.children||[]).forEach(function(e){a.appendChild(Jn(e,{ceFn:n}))}),a}var Xn={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(e){t.parentNode.insertBefore(Jn(e),t)}),null===t.getAttribute(Ge)&&Nt.keepOriginalSource){var n=le.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~Rt(t).indexOf(Nt.replacementClass))return Xn.replace(e);var a=new RegExp("".concat(Nt.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var r=n[0].attributes.class.split(" ").reduce(function(e,t){return t===Nt.replacementClass||t.match(a)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});n[0].attributes.class=r.toSvg.join(" "),0===r.toNode.length?t.removeAttribute("class"):t.setAttribute("class",r.toNode.join(" "))}var o=n.map(function(e){return Vt(e)}).join("\n");t.setAttribute(Ge,""),t.innerHTML=o}};function Yn(e){e()}function qn(e,t){var n="function"==typeof t?t:Hn;if(0===e.length)n();else{var a=Yn;"async"===Nt.mutateApproach&&(a=ie.requestAnimationFrame||Yn),a(function(){var t=!0===Nt.autoReplaceSvg?Xn.replace:Xn[Nt.autoReplaceSvg]||Xn.replace,a=Vn("mutate");e.map(t),a(),n()})}}var Zn=!1;function Gn(){Zn=!0}function Kn(){Zn=!1}var ea=null;function ta(e){if(se&&Nt.observeMutations){var t=e.treeCallback,n=void 0===t?Hn:t,a=e.nodeCallback,r=void 0===a?Hn:a,o=e.pseudoElementsCallback,i=void 0===o?Hn:o,l=e.observeMutationsRoot,s=void 0===l?le:l;ea=new se(function(e){if(!Zn){var t=un();Mt(e).forEach(function(e){if("childList"===e.type&&e.addedNodes.length>0&&!Wn(e.addedNodes[0])&&(Nt.searchPseudoElements&&i(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&Nt.searchPseudoElements&&i([e.target],!0),"attributes"===e.type&&Wn(e.target)&&~vt.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(et):null,n=e.getAttribute?e.getAttribute(tt):null;return t&&n}(e.target)){var a=pn(Rt(e.target)),o=a.prefix,l=a.iconName;e.target.setAttribute(et,o||t),l&&e.target.setAttribute(tt,l)}else(s=e.target)&&s.classList&&s.classList.contains&&s.classList.contains(Nt.replacementClass)&&r(e.target);var s})}}),ue&&ea.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function na(e){var t,n,a=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),o=void 0!==e.innerText?e.innerText.trim():"",i=pn(Rt(e));return i.prefix||(i.prefix=un()),a&&r&&(i.prefix=a,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&o.length>0&&(i.iconName=(t=i.prefix,n=e.innerText,(en[t]||{})[n]||sn(i.prefix,Ut(e.innerText)))),!i.iconName&&Nt.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function aa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=na(e),a=n.iconName,r=n.prefix,o=n.rest,i=function(e){return Mt(e.attributes).reduce(function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e},{})}(e),l=Nn("parseNodeAttributes",{},e),s=t.styleParser?function(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(e,t){var n=t.split(":"),a=n[0],r=n.slice(1);return a&&r.length>0&&(e[a]=r.join(":").trim()),e},{})),n}(e):[];return J({iconName:a,prefix:r,transform:Ct,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:s,attributes:i}},l)}var ra=At.styles;function oa(e){var t="nest"===Nt.autoReplaceSvg?aa(e,{styleParser:!1}):aa(e);return~t.extra.classes.indexOf(pt)?Tn("generateLayersText",e,t):Tn("generateSvgReplacementMutation",e,t)}function ia(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!ue)return Promise.resolve();var n=le.documentElement.classList,a=function(e){return n.add("".concat(nt,"-").concat(e))},r=function(e){return n.remove("".concat(nt,"-").concat(e))},o=Nt.autoFetchSvg?[].concat(Y(Be),Y(Qe)):me.concat(Object.keys(ra));o.includes("fa")||o.push("fa");var i=[".".concat(pt,":not([").concat(Ge,"])")].concat(o.map(function(e){return".".concat(e,":not([").concat(Ge,"])")})).join(", ");if(0===i.length)return Promise.resolve();var l=[];try{l=Mt(e.querySelectorAll(i))}catch(e){}if(!(l.length>0))return Promise.resolve();a("pending"),r("complete");var s=Vn("onTree"),c=l.reduce(function(e,t){try{var n=oa(t);n&&e.push(n)}catch(e){ot||"MissingIcon"===e.name&&console.error(e)}return e},[]);return new Promise(function(e,n){Promise.all(c).then(function(n){qn(n,function(){a("active"),a("complete"),r("pending"),"function"==typeof t&&t(),s(),e()})}).catch(function(e){s(),n(e)})})}function la(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;oa(e).then(function(e){e&&qn([e],t)})}var sa=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,a=void 0===n?Ct:n,r=t.symbol,o=void 0!==r&&r,i=t.mask,l=void 0===i?null:i,s=t.maskId,c=void 0===s?null:s,f=t.classes,u=void 0===f?[]:f,d=t.attributes,h=void 0===d?{}:d,m=t.styles,p=void 0===m?{}:m;if(e){var g=e.prefix,v=e.iconName,b=e.icon;return Fn(J({type:"icon"},e),function(){return Sn("beforeDOMElementCreation",{iconDefinition:e,params:t}),In({icons:{main:Bn(b),mask:l?Bn(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g,iconName:v,transform:J(J({},Ct),a),symbol:o,maskId:c,extra:{attributes:h,styles:p,classes:u}})})}},ca={mixout:function(){return{icon:(e=sa,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(t||{}).icon?t:Cn(t||{}),r=n.mask;return r&&(r=(r||{}).icon?r:Cn(r||{})),e(a,J(J({},n),{},{mask:r}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=ia,e.nodeCallback=la,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?le:t,a=e.callback;return ia(n,void 0===a?function(){}:a)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,a=t.prefix,r=t.transform,o=t.symbol,i=t.mask,l=t.maskId,s=t.extra;return new Promise(function(t,c){Promise.all([Ln(n,a),i.iconName?Ln(i.iconName,i.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(i){var c=X(i,2),f=c[0],u=c[1];t([e,In({icons:{main:f,mask:u},prefix:a,iconName:n,transform:r,symbol:o,maskId:l,extra:s,watchable:!0})])}).catch(c)})},e.generateAbstractIcon=function(e){var t,n=e.children,a=e.attributes,r=e.main,o=e.transform,i=Ft(e.styles);return i.length>0&&(a.style=i),It(o)&&(t=Tn("generateAbstractTransformGrouping",{main:r,transform:o,containerWidth:r.width,iconWidth:r.width})),n.push(t||r.icon),{children:n,attributes:a}}}},fa={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,a=void 0===n?[]:n;return Fn({type:"layer"},function(){Sn("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e(function(e){Array.isArray(e)?e.map(function(e){n=n.concat(e.abstract)}):n=n.concat(e.abstract)}),[{tag:"span",attributes:{class:["".concat(Nt.cssPrefix,"-layers")].concat(Y(a)).join(" ")},children:n}]})}}}},ua={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.title;var n=t.classes,a=void 0===n?[]:n,r=t.attributes,o=void 0===r?{}:r,i=t.styles,l=void 0===i?{}:i;return Fn({type:"counter",content:e},function(){return Sn("beforeDOMElementCreation",{content:e,params:t}),function(e){var t=e.content,n=e.extra,a=J(J({},n.attributes),{},{class:n.classes.join(" ")}),r=Ft(n.styles);r.length>0&&(a.style=r);var o=[];return o.push({tag:"span",attributes:a,children:[t]}),o}({content:e.toString(),extra:{attributes:o,styles:l,classes:["".concat(Nt.cssPrefix,"-layers-counter")].concat(Y(a))}})})}}}},da={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,a=void 0===n?Ct:n,r=t.classes,o=void 0===r?[]:r,i=t.attributes,l=void 0===i?{}:i,s=t.styles,c=void 0===s?{}:s;return Fn({type:"text",content:e},function(){return Sn("beforeDOMElementCreation",{content:e,params:t}),jn({content:e,transform:J(J({},Ct),a),extra:{attributes:l,styles:c,classes:["".concat(Nt.cssPrefix,"-layers-text")].concat(Y(o))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.transform,a=t.extra,r=null,o=null;if(de){var i=parseInt(getComputedStyle(e).fontSize,10),l=e.getBoundingClientRect();r=l.width/i,o=l.height/i}return Promise.resolve([e,jn({content:e.innerHTML,width:r,height:o,transform:n,extra:a,watchable:!0})])}}},ha=new RegExp('"',"ug"),ma=[1105920,1112319],pa=J(J(J(J({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),ga=Object.keys(pa).reduce(function(e,t){return e[t.toLowerCase()]=pa[t],e},{}),va=Object.keys(ga).reduce(function(e,t){var n=ga[t];return e[t]=n[900]||Y(Object.entries(n))[0][1],e},{});function ba(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise(function(a,r){if(null!==e.getAttribute(n))return a();var o,i,l,s=Mt(e.children).filter(function(e){return e.getAttribute(Ke)===t})[0],c=ie.getComputedStyle(e,t),f=c.getPropertyValue("font-family"),u=f.match(gt),d=c.getPropertyValue("font-weight"),h=c.getPropertyValue("content");if(s&&!u)return e.removeChild(s),a();if(u&&"none"!==h&&""!==h){var m=c.getPropertyValue("content"),p=function(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),a=parseInt(t),r=isNaN(a)?"normal":a;return(ga[n]||{})[r]||va[n]}(f,d),g=function(e){return Ut(Y(e.replace(ha,""))[0]||"")}(m),v=u[0].startsWith("FontAwesome"),b=function(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content").replace(ha,""),a=n.codePointAt(0),r=a>=ma[0]&&a<=ma[1],o=2===n.length&&n[0]===n[1];return r||o||t}(c),y=sn(p,g),w=y;if(v){var x=(i=nn[o=g],l=sn("fas",o),i||(l?{prefix:"fas",iconName:l}:null)||{prefix:null,iconName:null});x.iconName&&x.prefix&&(y=x.iconName,p=x.prefix)}if(!y||b||s&&s.getAttribute(et)===p&&s.getAttribute(tt)===w)a();else{e.setAttribute(n,w),s&&e.removeChild(s);var k={iconName:null,prefix:null,transform:Ct,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},N=k.extra;N.attributes[Ke]=t,Ln(y,p).then(function(r){var o=In(J(J({},k),{},{icons:{main:r,mask:{prefix:null,iconName:null,rest:[]}},prefix:p,iconName:w,extra:N,watchable:!0})),i=le.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(i,e.firstChild):e.appendChild(i),i.outerHTML=o.map(function(e){return Vt(e)}).join("\n"),e.removeAttribute(n),a()}).catch(r)}}else a()})}function ya(e){return Promise.all([ba(e,"::before"),ba(e,"::after")])}function wa(e){return!(e.parentNode===document.head||~at.indexOf(e.tagName.toUpperCase())||e.getAttribute(Ke)||e.parentNode&&"svg"===e.parentNode.tagName)}var xa=function(e){return!!e&&rt.some(function(t){return e.includes(t)})},ka=function(e){if(!e)return[];var t=new Set,n=e.split(/,(?![^()]*\))/).map(function(e){return e.trim()});n=n.flatMap(function(e){return e.includes("(")?e:e.split(",").map(function(e){return e.trim()})});var a,r=W(n);try{for(r.s();!(a=r.n()).done;){var o=a.value;if(xa(o)){var i=rt.reduce(function(e,t){return e.replace(t,"")},o);""!==i&&"*"!==i&&t.add(i)}}}catch(e){r.e(e)}finally{r.f()}return t};function Na(e){if(ue){var t;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])t=e;else if(Nt.searchPseudoElementsFullScan)t=e.querySelectorAll("*");else{var n,a=new Set,r=W(document.styleSheets);try{for(r.s();!(n=r.n()).done;){var o=n.value;try{var i,l=W(o.cssRules);try{for(l.s();!(i=l.n()).done;){var s,c=i.value,f=W(ka(c.selectorText));try{for(f.s();!(s=f.n()).done;){var u=s.value;a.add(u)}}catch(e){f.e(e)}finally{f.f()}}}catch(e){l.e(e)}finally{l.f()}}catch(e){Nt.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(o.href," (").concat(e.message,')\nIf it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.'))}}}catch(e){r.e(e)}finally{r.f()}if(!a.size)return;var d=Array.from(a).join(", ");try{t=e.querySelectorAll(d)}catch(e){}}return new Promise(function(e,n){var a=Mt(t).filter(wa).map(ya),r=Vn("searchPseudoElements");Gn(),Promise.all(a).then(function(){r(),Kn(),e()}).catch(function(){r(),Kn(),n()})})}}var Sa={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=Na,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?le:t;Nt.searchPseudoElements&&Na(n)}}},Ta=!1,Ca=function(e){return e.toLowerCase().split(" ").reduce(function(e,t){var n=t.toLowerCase().split("-"),a=n[0],r=n.slice(1).join("-");if(a&&"h"===r)return e.flipX=!0,e;if(a&&"v"===r)return e.flipY=!0,e;if(r=parseFloat(r),isNaN(r))return e;switch(a){case"grow":e.size=e.size+r;break;case"shrink":e.size=e.size-r;break;case"left":e.x=e.x-r;break;case"right":e.x=e.x+r;break;case"up":e.y=e.y-r;break;case"down":e.y=e.y+r;break;case"rotate":e.rotate=e.rotate+r}return e},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},_a={mixout:function(){return{parse:{transform:function(e){return Ca(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=Ca(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,a=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(a/2," 256)")},i="translate(".concat(32*n.x,", ").concat(32*n.y,") "),l="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),s="rotate(".concat(n.rotate," 0 0)"),c={outer:o,inner:{transform:"".concat(i," ").concat(l," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}};return{tag:"g",attributes:J({},c.outer),children:[{tag:"g",attributes:J({},c.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:J(J({},t.icon.attributes),c.path)}]}]}}}},Ma={x:0,y:0,width:"100%",height:"100%"};function Ra(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var Pa={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),a=n?pn(n.split(" ").map(function(e){return e.trim()})):{prefix:null,iconName:null,rest:[]};return a.prefix||(a.prefix=un()),e.mask=a,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,a=e.attributes,r=e.main,o=e.mask,i=e.maskId,l=e.transform,s=r.width,c=r.icon,f=o.width,u=o.icon,d=function(e){var t=e.transform,n=e.containerWidth,a=e.iconWidth,r={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),i="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(o," ").concat(i," ").concat(l)},path:{transform:"translate(".concat(a/2*-1," -256)")}}}({transform:l,containerWidth:f,iconWidth:s}),h={tag:"rect",attributes:J(J({},Ma),{},{fill:"white"})},m=c.children?{children:c.children.map(Ra)}:{},p={tag:"g",attributes:J({},d.inner),children:[Ra(J({tag:c.tag,attributes:J(J({},c.attributes),d.path)},m))]},g={tag:"g",attributes:J({},d.outer),children:[p]},v="mask-".concat(i||_t()),b="clip-".concat(i||_t()),y={tag:"mask",attributes:J(J({},Ma),{},{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,g]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:(t=u,"g"===t.tag?t.children:[t])},y]};return n.push(w,{tag:"rect",attributes:J({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(v,")")},Ma)}),{children:n,attributes:a}}}},Fa={provides:function(e){var t=!1;ie.matchMedia&&(t=ie.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:J(J({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var r=J(J({},a),{},{attributeName:"opacity"}),o={tag:"circle",attributes:J(J({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:J(J({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:J(J({},r),{},{values:"1;0;1;1;0;1;"})}),e.push(o),e.push({tag:"path",attributes:J(J({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:J(J({},r),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:J(J({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:J(J({},r),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){var n=t.mixoutsTo;yn=e,wn={},Object.keys(xn).forEach(function(e){-1===kn.indexOf(e)&&delete xn[e]}),yn.forEach(function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(function(e){"function"==typeof t[e]&&(n[e]=t[e]),"object"===Z(t[e])&&Object.keys(t[e]).forEach(function(a){n[e]||(n[e]={}),n[e][a]=t[e][a]})}),e.hooks){var a=e.hooks();Object.keys(a).forEach(function(e){wn[e]||(wn[e]=[]),wn[e].push(a[e])})}e.provides&&e.provides(xn)})}([Dt,ca,fa,ua,da,Sa,{mixout:function(){return{dom:{unwatch:function(){Gn(),Ta=!0}}}},hooks:function(){return{bootstrap:function(){ta(Nn("mutationObserverCallbacks",{}))},noAuto:function(){ea&&ea.disconnect()},watch:function(e){var t=e.observeMutationsRoot;Ta?Kn():ta(Nn("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},_a,Pa,Fa,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),a=null!==n&&(""===n||n);return e.symbol=a,e}}}}],{mixoutsTo:Rn});var Ia=Rn.config,ja=Rn.parse,Ea=Rn.icon;function Ba(e){return t=e,(t-=0)==t?e:(e=e.replace(/[_-]+(.)?/g,(e,t)=>t?t.toUpperCase():"")).charAt(0).toLowerCase()+e.slice(1);var t}function Da(e){return e.charAt(0).toUpperCase()+e.slice(1)}var La=new Map;function Aa(e){if(La.has(e))return La.get(e);const t={};let n=0;const a=e.length;for(;n<a;){const r=e.indexOf(";",n),o=-1===r?a:r,i=e.slice(n,o).trim();if(i){const e=i.indexOf(":");if(e>0){const n=i.slice(0,e).trim(),a=i.slice(e+1).trim();if(n&&a){const e=Ba(n);t[e.startsWith("webkit")?Da(e):e]=a}}}n=o+1}if(1e3===La.size){const e=La.keys().next().value;e&&La.delete(e)}return La.set(e,t),t}var Oa=function e(t,n,a={}){if("string"==typeof n)return n;const r=(n.children||[]).map(n=>e(t,n)),o=n.attributes||{},i={};for(const[e,t]of Object.entries(o))switch(!0){case"class"===e:i.className=t;break;case"style"===e:i.style=Aa(String(t));break;case e.startsWith("aria-"):case e.startsWith("data-"):i[e.toLowerCase()]=t;break;default:i[Ba(e)]=t}const{style:l,role:s,"aria-label":c,...f}=a;return l&&(i.style=i.style?{...i.style,...l}:l),s&&(i.role=s),c&&(i["aria-label"]=c,i["aria-hidden"]="false"),t(n.tag,{...f,...i},...r)}.bind(null,a.createElement),za=(e,t)=>{const n=r();return e||(t?n:void 0)};"undefined"!=typeof process&&process.env.FA_VERSION;var $a="searchPseudoElementsFullScan"in Ia?"7.0.0":"6.0.0",Va=Number.parseInt($a)>=7,Ha="fa",Wa="fa-beat",Ua="fa-fade",Qa="fa-beat-fade",Ja="fa-bounce",Xa="fa-shake",Ya="fa-spin",qa="fa-spin-pulse",Za="fa-spin-reverse",Ga="fa-pulse",Ka={left:"fa-pull-left",right:"fa-pull-right"},er={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},tr={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},nr="fa-border",ar="fa-fw",rr="fa-flip",or="fa-flip-horizontal",ir="fa-flip-vertical",lr="fa-inverse",sr="fa-rotate-by",cr="fa-swap-opacity",fr="fa-width-auto";function ur(e){const t=Ia.cssPrefix||Ia.familyPrefix||Ha;return t===Ha?e:e.replace(new RegExp(String.raw`(?<=^|\s)${Ha}-`,"g"),`${t}-`)}function dr(e){if(e)return(e=>"object"==typeof e&&"icon"in e&&!!e.icon)(e)?e:ja.icon(e)}var hr=new class{constructor(e="react-fontawesome"){this.enabled=!1;let t=!1;try{t="undefined"!=typeof process&&"development"===process.env.NODE_ENV}catch{}this.scope=e,this.enabled=t}log(...e){this.enabled&&console.log(`[${this.scope}]`,...e)}warn(...e){this.enabled&&console.warn(`[${this.scope}]`,...e)}error(...e){this.enabled&&console.error(`[${this.scope}]`,...e)}}("FontAwesomeIcon"),mr={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},pr=new Set(Object.keys(mr)),gr=a.forwardRef((e,t)=>{const n={...mr,...e},{icon:a,mask:r,symbol:o,title:i,titleId:l,maskId:s,transform:c}=n,f=za(s,Boolean(r)),u=za(l,Boolean(i)),d=dr(a);if(!d)return hr.error("Icon lookup is undefined",a),null;const h=function(e){const{beat:t,fade:n,beatFade:a,bounce:r,shake:o,spin:i,spinPulse:l,spinReverse:s,pulse:c,fixedWidth:f,inverse:u,border:d,flip:h,size:m,rotation:p,pull:g,swapOpacity:v,rotateBy:b,widthAuto:y,className:w}=e,x=[];return w&&x.push(...w.split(" ")),t&&x.push(Wa),n&&x.push(Ua),a&&x.push(Qa),r&&x.push(Ja),o&&x.push(Xa),i&&x.push(Ya),s&&x.push(Za),l&&x.push(qa),c&&x.push(Ga),f&&x.push(ar),u&&x.push(lr),d&&x.push(nr),!0===h&&x.push(rr),"horizontal"!==h&&"both"!==h||x.push(or),"vertical"!==h&&"both"!==h||x.push(ir),null!=m&&x.push(tr[m]),null!=p&&0!==p&&x.push(er[p]),null!=g&&x.push(Ka[g]),v&&x.push(cr),Va?(b&&x.push(sr),y&&x.push(fr),(Ia.cssPrefix||Ia.familyPrefix||Ha)===Ha?x:x.map(ur)):x}(n),m="string"==typeof c?ja.transform(c):c,p=dr(r),g=Ea(d,{...h.length>0&&{classes:h},...m&&{transform:m},...p&&{mask:p},symbol:o,title:i,titleId:u,maskId:f});if(!g)return hr.error("Could not find icon",d),null;const{abstract:v}=g,b={ref:t};for(const e of(y=n,Object.keys(y)))pr.has(e)||(b[e]=n[e]);var y;return Oa(v[0],b)});gr.displayName="FontAwesomeIcon";var vr={box:"Box-module_box__SQLj3",collapseBox:"Box-module_collapseBox__5A5Fc",padding:"Box-module_padding__dIJ-L",collapsedContent:"Box-module_collapsedContent__yn-0g",collapseTitle:"Box-module_collapseTitle__-R0ge",collapseIcon:"Box-module_collapseIcon__OAiTO",collapsed:"Box-module_collapsed__nf76f"};function br(t){const{children:n,noPadding:a,className:r="",theme:o="dark"}=t;return e("div",{className:`${vr.box} ${a?"":vr.padding} ${r}`,"data-theme":o,children:n})}$.bind(vr);const yr=["dotnetspy","ebpfspy","gospy","phpspy","pyspy","rbspy","nodespy","javaspy","pyroscope-rs","scrape","tracing","unknown"],wr=S.preprocess(e=>e&&yr.includes(e)?e:"unknown",S.enum(yr).default("unknown")),xr=["samples","objects","goroutines","bytes","lock_samples","lock_nanoseconds","trace_samples","exceptions"],kr=S.preprocess(e=>"string"==typeof e&&xr.includes(e)?e:"unknown",S.enum(["samples","objects","goroutines","bytes","lock_samples","lock_nanoseconds","trace_samples","exceptions","unknown"])),Nr=S.object({names:S.array(S.preprocess(e=>e||"unknown",S.string().min(1))),levels:S.array(S.array(S.number())),numTicks:S.number(),maxSelf:S.number()}),Sr=S.object({appName:S.string().optional(),name:S.string().optional(),startTime:S.number().optional(),endTime:S.number().optional(),query:S.string().optional(),maxNodes:S.number().optional(),format:S.enum(["single","double"]),sampleRate:S.number(),spyName:wr,units:kr});S.object({version:S.number().min(1).max(1).default(1),flamebearer:Nr,metadata:Sr,leftTicks:S.number().optional(),rightTicks:S.number().optional()});const Tr={format:"single",jStep:4,jName:3,getBarOffset:(e,t)=>e[t],getBarTotal:(e,t)=>e[t+1],getBarTotalDiff:(e,t)=>0,getBarSelf:(e,t)=>e[t+2],getBarSelfDiff:(e,t)=>0,getBarName:(e,t)=>e[t+3]},Cr={format:"double",jStep:7,jName:6,getBarOffset:(e,t)=>e[t]+e[t+3],getBarTotal:(e,t)=>e[t+4]+e[t+1],getBarTotalLeft:(e,t)=>e[t+1],getBarTotalRght:(e,t)=>e[t+4],getBarTotalDiff:(e,t)=>e[t+4]-e[t+1],getBarSelf:(e,t)=>e[t+5]+e[t+2],getBarSelfLeft:(e,t)=>e[t+2],getBarSelfRght:(e,t)=>e[t+5],getBarSelfDiff:(e,t)=>e[t+5]-e[t+2],getBarName:(e,t)=>e[t+6]};function _r(e){switch(e){case"single":return Tr;case"double":return Cr;default:throw new Error(`Unsupported type: '${e}'`)}}const Mr=S.object({refType:S.string(),traceID:S.string(),spanID:S.string()}),Rr=S.object({key:S.string(),type:S.string(),value:S.union([S.boolean(),S.number(),S.string()])}),Pr=S.object({traceID:S.string(),spanID:S.string(),flags:S.string(),operationName:S.string(),references:S.array(Mr),startTime:S.number(),duration:S.number(),tags:S.array(Rr),logs:S.object({timestamp:S.number(),fields:S.array(Rr)}),processID:S.string(),warnings:S.any()}),Fr=S.object({serviceName:S.string(),tags:S.array(Rr)});S.object({traceID:S.string(),spans:S.array(Pr),processes:S.record(Fr),warnings:S.any()});const Ir=S.object({watermark:S.object({}).optional(),startTime:S.number(),samples:S.array(S.number()),durationDelta:S.number()});S.record(S.string(),Ir);const jr=22,Er=21.5;function Br(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function Dr(e){if(null==e)return null;if("number"==typeof e)return{value:e,unit:"",hasLessThan:!1,sign:""};let t=String(e).trim().replace(/\u2212/g,"-");if(!t)return null;let n=!1;t.startsWith("<")&&(n=!0,t=t.slice(1).trim());const a=t.match(/^([+\-]?)(\d*\.?\d+)\s*(.*)$/);if(!a)return null;const r=a[1]||"",o=a[2],i=(a[3]||"").trim(),l=parseFloat(o);return Number.isFinite(l)?{value:l,unit:i,hasLessThan:n,sign:r}:null}function Lr(e,t=!1){if(!e||!t)return e;const n=Dr(e);if(!n)return e;const{unit:a}=n;let r=a;const o=a.toLowerCase();"ms"===o?r="毫秒":"μs"===o||"µs"===o||"us"===o?r="微秒":"second"===o||"seconds"===o?r="秒":"minute"===o||"minutes"===o||"min"===o||"mins"===o?r="分钟":"hour"===o||"hours"===o?r="小时":"day"===o||"days"===o?r="天":"month"===o||"months"===o?r="月":"year"!==o&&"years"!==o||(r="年");const i=String(e).match(/^([<\s]*)([+\-]?\d*\.?\d+)(.*)$/);if(!i)return e;return`${i[1]||""}${i[2]||""} ${r}`.trim()}const Ar=[{value:1e15,label:"Quad"},{value:1e12,label:"Tri"},{value:1e9,label:"B"},{value:1e6,label:"M"},{value:1e3,label:"K"}];function Or(e){return Math.round(1e4*e)/100}function zr(e,t){return(t-e)/e*100}function $r(e,t,n){switch(n){case"samples":return new Vr(e/t);case"objects":case"goroutines":case"lock_samples":case"exceptions":return new Wr(e);case"bytes":return new Ur(e);case"lock_nanoseconds":return new Hr(e);case"trace_samples":return new Vr(e/t,"",!0);default:return console.warn(`Unsupported unit: '${n}'. Defaulting to ''`),new Vr(e/t," ")}}class Vr{constructor(e,t,n){this.divider=1,this.enableSubsecondPrecision=!1,this.suffix="second",this.durations=[[60,"minute"],[60,"hour"],[24,"day"],[30,"month"],[12,"year"]],this.units="",n&&(this.enableSubsecondPrecision=n,this.durations=[[1e3,"ms"],[1e3,"second"],...this.durations],this.suffix="μs",e*=1e6),this.units=t||"";for(let t=0;t<this.durations.length;t++){const n=this.durations[t];if(!n){console.warn("Could not calculate level");break}if(!(e>=n[0]))break;this.divider*=n[0],e/=n[0],this.suffix=n[1]}}format(e,t,n=!0){this.enableSubsecondPrecision&&(t/=1e6);const a=e/t/this.divider;let r=a.toFixed(2);return 0===a?r="0.00":(a>=0&&a<.01||a<=0&&a>-.01)&&(r="< 0.01"),n?`${r} ${this.units||`${this.suffix}${1===a||2===this.suffix.length?"":"s"}`}`:r}formatPrecise(e,t){this.enableSubsecondPrecision&&(t/=1e6);const n=e/t/this.divider;return`${parseFloat(n.toFixed(5))} ${this.units||`${this.suffix}${1===n||2===this.suffix.length?"":"s"}`}`}}class Hr{constructor(e){this.divider=1,this.multiplier=1,this.suffix="second",this.durations=[[60,"minute"],[60,"hour"],[24,"day"],[30,"month"],[12,"year"]],e/=1e9;for(let t=0;t<this.durations.length;t++){const n=this.durations[t];if(!n){console.warn("Could not calculate level");break}if(!(e>=n[0]))break;this.divider*=n[0],e/=n[0],this.suffix=n[1]}}format(e){const t=e/1e9/this.divider;let n=t.toFixed(2);return(t>=0&&t<.01||t<=0&&t>-.01)&&(n="< 0.01"),`${n} ${this.suffix}${1===t?"":"s"}`}formatPrecise(e){const t=e/1e9/this.divider;return`${parseFloat(t.toFixed(5))} ${this.suffix}${1===t?"":"s"}`}}class Wr{constructor(e){this.divider=1,this.suffix="",this.objects=[[1e3,"K"],[1e3,"M"],[1e3,"G"],[1e3,"T"],[1e3,"P"]];for(let t=0;t<this.objects.length;t++){const n=this.objects[t];if(!n){console.warn("Could not calculate level");break}if(!(e>=n[0]))break;this.divider*=n[0],e/=n[0],this.suffix=n[1]}}format(e){const t=e/this.divider;let n=t.toFixed(2);return(t>=0&&t<.01||t<=0&&t>-.01)&&(n="< 0.01"),`${n} ${this.suffix}`}formatPrecise(e){const t=e/this.divider;return`${parseFloat(t.toFixed(5))} ${this.suffix}`}}class Ur{constructor(e){this.divider=1,this.suffix="bytes",this.bytes=[[1024,"KB"],[1024,"MB"],[1024,"GB"],[1024,"TB"],[1024,"PB"]];for(let t=0;t<this.bytes.length;t++){const n=this.bytes[t];if(!n){console.warn("Could not calculate level");break}if(!(e>=n[0]))break;{this.divider*=n[0],e/=n[0];const t=n[1];t?this.suffix=t:(console.warn("Could not calculate suffix"),this.suffix="")}}}format(e){const t=e/this.divider;let n=t.toFixed(2);return(t>=0&&t<.01||t<=0&&t>-.01)&&(n="< 0.01"),`${n} ${this.suffix}`}formatPrecise(e){const t=e/this.divider;return`${parseFloat(t.toFixed(5))} ${this.suffix}`}}const Qr="TAIL",Jr="HEAD";function Xr({mode:e,charSize:t,rectWidth:n,fullText:a,shortText:r}){if(e===Qr){if(t*a.length<=n)return{mode:e,text:a,marginLeft:3};const o=t*r.length;return o<=n?{mode:e,text:r,marginLeft:3}:{mode:e,text:r,marginLeft:-(o-n+3)}}return{mode:e,text:a,marginLeft:3}}function Yr(e){return e===Qr?{direction:"rtl",overflow:"hidden",textOverflow:"ellipsis"}:{overflow:"hidden",textOverflow:"ellipsis"}}function qr(e,t){if(e===t)return 0;if(0===e)return 100;const n=(t-e)/e*100;return n>100?100:n<-100?-100:n}function Zr(e,t){return T.rgb(e,e,e).alpha(t)}function Gr(e,t){if(0===t.length)return t;const n=function(e){switch(e){case"dotnetspy":return/^(?<packageName>.+)\.(.+)\.(.+)\(.*\)$/;case"ebpfspy":case"unknown":return/^(?<packageName>.+)$/;case"gospy":case"scrape":return/^(?<packageName>.*?\/.*?\.|.*?\.|.+)(?<functionName>.*)$/;case"phpspy":return/^(?<packageName>(.*\/)*)(?<filename>.*\.php+)(?<line_info>.*)$/;case"pyspy":return/^(?<packageName>(.*\/)*)(?<filename>.*\.py+)(?<line_info>.*)$/;case"rbspy":return/^(?<packageName>(.*\/)*)(?<filename>.*\.rb+)(?<line_info>.*)$/;case"nodespy":return/^(\.\/node_modules\/)?(?<packageName>[^/]*)(?<filename>.*\.?(jsx?|tsx?)?):(?<functionName>.*):(?<line_info>.*)$/;case"tracing":return/^(?<packageName>.+?):.*$/;case"javaspy":return/^(?<packageName>.+\/)(?<filename>.+\.)(?<functionName>.+)$/;case"pyroscope-rs":return/^(?<packageName>[^::]+)/}return/^(?<packageName>.+)$/}(e),a=t.match(n);return a&&a.groups?a.groups.packageName||"":t}function Kr(e,t){const n=function(e,t=0){let n,a,r,o,i,l,s,c;for(n=3&e.length,a=e.length-n,r=t,i=3432918353,l=461845907,c=0;c<a;)s=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24,++c,s=(65535&s)*i+(((s>>>16)*i&65535)<<16)&4294967295,s=s<<15|s>>>17,s=(65535&s)*l+(((s>>>16)*l&65535)<<16)&4294967295,r^=s,r=r<<13|r>>>19,o=5*(65535&r)+((5*(r>>>16)&65535)<<16)&4294967295,r=27492+(65535&o)+(((o>>>16)+58964&65535)<<16);switch(s=0,n){case 3:s^=(255&e.charCodeAt(c+2))<<16;case 2:s^=(255&e.charCodeAt(c+1))<<8;case 1:s^=255&e.charCodeAt(c);default:s=(65535&s)*i+(((s>>>16)*i&65535)<<16)&4294967295,s=s<<15|s>>>17,s=(65535&s)*l+(((s>>>16)*l&65535)<<16)&4294967295,r^=s}return r^=e.length,r^=r>>>16,r=2246822507*(65535&r)+((2246822507*(r>>>16)&65535)<<16)&4294967295,r^=r>>>13,r=3266489909*(65535&r)+((3266489909*(r>>>16)&65535)<<16)&4294967295,r^=r>>>16,r>>>0}(t,0),a=n%e.colors.length,r=e.colors[a];return r||(console.warn("Could not calculate color. Defaulting to the first one"),e.colors[0])}function eo(e){const{goodColor:t,neutralColor:n,badColor:a}=e,r=C().domain([-100,0,100]).range([t.rgb().toString(),n.rgb().toString(),a.rgb().toString()]);return e=>T(r(e).toString())}T.rgb(148,142,142),T.rgb(200,0,0),T.rgb(0,170,0),T("#48CE73");const to=new WeakMap,no=new WeakMap,ao=new WeakMap,ro=new WeakMap;const oo={collapsedLevelsSingular:"total (1 level collapsed)",collapsedLevelsPlural:"total ({n} levels collapsed)",isZh:!1};function io(e){var t,n,a,r,o,i,l,s;const c=performance.now(),f=!1!==e.renderRects,u=!1!==e.renderText,d=null!==(t=e.renderMode)&&void 0!==t?t:"normal",h=e.timeBudgetMs,{canvas:m,fitMode:p,units:g,tickToX:v,levels:b,palette:y}=e,{numTicks:w,sampleRate:x,pxPerTick:k}=e,{rangeMin:N,rangeMax:S}=e,{focusedNode:T,zoom:C}=e,_=e.messages||oo,M=e.skipCanvasResize?m.width:function(e){if("clientWidth"in e&&"number"==typeof e.clientWidth)return e.clientWidth;return e.width}(m);if(e.skipCanvasResize||(m.width=M),N>=S)throw new Error("'rangeMin' should be strictly smaller than 'rangeMax'");const{format:R}=e,P=_r(R),F=m.getContext("2d");if(!F)throw new Error("Could not get ctx");const I=C.mapOrElse(()=>0,e=>e.i),j=$r(w,x,g),E=T.isJust,B=T.mapOrElse(()=>0,e=>e.i),D=E?Er:0,L=!!e.highlightQuery&&e.highlightQuery.length>0,A=jr*(b.length-B)+(E?Er:0);e.skipCanvasResize||(m.height=A);const O="number"==typeof e.devicePixelRatio?e.devicePixelRatio:"undefined"!=typeof devicePixelRatio?devicePixelRatio:1;!e.skipDprScale&&O>1&&(m.width*=O,m.height*=O,F.scale(O,O)),F.textBaseline="middle",F.font="400 11.5px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace";const z=F.measureText("a").width,{names:$}=e,V=function(e){const t=to.get(e);if(t)return t;const n=new Map;return to.set(e,n),n}(m),H=L?function(e,t){const n=no.get(e);if(n){const e=n.get(t);if(e)return e}const a=t.toLowerCase(),r=new Uint8Array(e.length);for(let t=1;t<e.length;t+=1){const n=e[t];n&&n.toLowerCase().includes(a)&&(r[t]=1)}const o=null!=n?n:new Map;return o.set(t,r),no.set(e,o),r}($,e.highlightQuery):null,W="single"===e.format?function(e,t,n){const a=`${t}|${n.name}`,r=ao.get(e);if(r){const e=r.get(a);if(e)return e}const o=new Array(e.length);for(let a=0;a<e.length;a+=1){const r=Gr(t,e[a]||"")||"";o[a]=Kr(n,r)}const i=null!=r?r:new Map;return i.set(a,o),ao.set(e,i),o}($,e.spyName,y):null,U="double"===e.format?eo({name:y.name,goodColor:y.goodColor,neutralColor:y.neutralColor,badColor:y.badColor}):null,Q=(e,t)=>{const n=e[t+P.jName];return!(!n||n<0||!H)&&1===H[n]},J=null!==(n=e.startI)&&void 0!==n?n:0,X=null!==(a=e.startJ)&&void 0!==a?a:0;if(E&&"highlightOnly"!==d&&0===(null!==(r=e.levelStart)&&void 0!==r?r:0)&&0===J&&0===X){const e=w*k;f&&(F.beginPath(),F.rect(0,0,w*k,Er),F.fillStyle=Zr(200,1).rgb().string(),F.fill());const t=T.mapOrElse(()=>"total",e=>function(e,t){return 1===e?t.collapsedLevelsSingular:t.collapsedLevelsPlural.replace("{n}",String(e))}(e.i-1,_)),n=Xr({mode:p,charSize:z,rectWidth:e,fullText:t,shortText:t}),a=0,r=0,o=Er;if(u){F.beginPath(),F.rect(0,0,e,Er),F.save(),F.clip(),F.fillStyle="black";const t=Math.round(Math.max(a,0));F.fillText(n.text,t+n.marginLeft,r+o/2+1),F.restore()}}const Y=Math.max(0,null!==(o=e.levelStart)&&void 0!==o?o:0),q=b.length-B,Z=Math.min(q,null!==(i=e.levelEnd)&&void 0!==i?i:q),G=Math.max(Y,null!==(l=e.startI)&&void 0!==l?l:Y),K=Math.max(0,null!==(s=e.startJ)&&void 0!==s?s:0),{spyName:ee}=e,te=(t,n,a,r,o)=>{const i={level:t,j:n,i:a+T.mapOrElse(()=>0,e=>e.i),names:$,collapsed:r,selectedLevel:I,highlightModeOn:L,isHighlighted:o,spyName:ee,palette:y,colorByNameIndex:W,diffColorFn:U};switch(R){case"single":return function(e){const t=co(e);if(t)return t;const n=_r("single"),a=e.selectedLevel>e.i?.33:1;let r=e.level[e.j+n.jName];void 0===r&&(console.warn("Could nto find level",{l:e.j,jName:n.jName,level:e.level}),r=-1);if(e.colorByNameIndex&&r>=0&&e.colorByNameIndex[r])return e.colorByNameIndex[r].alpha(a);const o=e.names[r]||"",i=Gr(e.spyName,o)||"";return Kr(e.palette,i).alpha(a)}({...i});case"double":return function(e){const t=co(e);if(t)return t;const n=e.selectedLevel>e.i?.33:1,{leftRatio:a,rightRatio:r}=function(e,t,n,a){const r=Cr;return n&&a?{leftRatio:r.getBarTotalLeft(e,t)/n,rightRatio:r.getBarTotalRght(e,t)/a}:(console.error("Properties 'rightTicks' and 'leftTicks' are required. Can't calculate ratio."),{leftRatio:0,rightRatio:0})}(e.level,e.j,e.leftTicks,e.rightTicks),o=Or(a),i=Or(r);if(e.diffColorFn)return e.diffColorFn(qr(o,i)).alpha(n);return function(e,t,n){const a=qr(t,n);return eo(e)(a)}(e.palette,o,i).alpha(n)}({...i,leftTicks:e.leftTicks,rightTicks:e.rightTicks});default:throw new Error(`Unsupported format: ${R}`)}};if("highlightOnly"===d&&L&&f){const e=function(e,t){const n=ro.get(e);if(n)return n;const a=_r(t),r=new Map;for(let t=0;t<e.length;t+=1){const n=e[t];for(let e=0;e<n.length;e+=a.jStep){const o=a.getBarName(n,e);if(void 0===o||o<0)continue;const i=r.get(o);i?i.push({i:t,j:e}):r.set(o,[{i:t,j:e}])}}return ro.set(e,r),r}(b,R),t=[];for(let e=1;e<$.length;e+=1)H&&1===H[e]&&t.push(e);for(let n=0;n<t.length;n+=1){const a=t[n],r=e.get(a);if(r)for(let e=0;e<r.length;e+=1){const t=r[e],n=t.i-B;if(t.i<B||n<Y||n>=Z)continue;const a=b[t.i],o=v(P.getBarOffset(a,t.j)),i=n*jr+D,l=Er,s=P.getBarTotal(a,t.j),c=s*k<=5,f=s*k-(c?0:.5);if(f<=0)continue;F.beginPath(),F.rect(o,i,f,l);const u=te(a,t.j,n,c,!0);F.fillStyle=u.string(),F.fill()}}return{done:!0,nextI:Z,nextJ:0}}for(let e=G;e<Z;e+=1){const t=b[B+e];if(!t)throw new Error(`Could not find level: ${B+e}`);let n=e===G?K:0;for(;n<t.length;n+=P.jStep){const a=P.getBarOffset(t,n),r=v(a),o=e*jr+D,i=Er,l=L&&Q(t,n);let s=P.getBarTotal(t,n);const m=s*k<=5;if(m)for(;n<t.length-P.jStep&&a+s===P.getBarOffset(t,n+P.jStep)&&P.getBarTotal(t,n+P.jStep)*k<=5&&l===(L&&Q(t,n+P.jStep));)n+=P.jStep,s+=P.getBarTotal(t,n);const g=s*k-(m?0:.5);if(F.beginPath(),F.rect(r,o,g,i),f){if("forceGrey"===d)F.fillStyle=Zr(200,.66).rgb().string();else{const a=te(t,n,e,m,l);F.fillStyle=a.string()}F.fill()}if(!u||m||"forceGrey"===d){if(h&&performance.now()-c>h)return{done:!1,nextI:e,nextJ:n+P.jStep};continue}if(g<20)continue;const b=lo($,n,R,t),y=Xr({mode:p,charSize:z,rectWidth:g,fullText:so(b,s,x,j,_,V),shortText:b});F.save(),F.clip(),F.fillStyle="black";const w=Math.round(Math.max(r,0));if(F.fillText(y.text,w+y.marginLeft,o+i/2+1),F.restore(),h&&performance.now()-c>h)return{done:!1,nextI:e,nextJ:n+P.jStep}}if(h&&performance.now()-c>h)return{done:!1,nextI:e+1,nextJ:0}}return{done:!0,nextI:Z,nextJ:0}}function lo(e,t,n,a){let r=a[t+_r(n).jName];void 0===r&&(r=-1);const o=e[r];return o||(console.warn("Could not find function name for",{j:t,format:n,level:a,names:e}),"")}function so(e,t,n,a,r,o){let i=null==o?void 0:o.get(t);if(!i){const e=a.format(t,n);i=Lr(e,!!r.isZh)||e,null==o||o.set(t,i)}return`${e} (${i})`}function co({collapsed:e,highlightModeOn:t,isHighlighted:n}){return e||t&&!n?Zr(200,.66):null}class fo{constructor(e,t,n,a,r,o,i,l){if(this.flamebearer=e,this.canvas=t,this.focusedNode=n,this.fitMode=a,this.highlightQuery=r,this.zoom=o,this.palette=i,this.messages=l,this.cachedRange=null,this.cachedPxPerTick=null,this.tickToX=e=>{var t;const n=this.cachedRange?this.cachedRange.rangeMin:this.getRange().rangeMin,a=null!==(t=this.cachedPxPerTick)&&void 0!==t?t:this.pxPerTick();return(e-this.flamebearer.numTicks*n)*a},this.xyToBarPosition=e=>{const{ff:t}=this,{i:n,j:a}=this.xyToBarIndex(e.x,e.y),r=this.focusedNode.mapOrElse(()=>0,e=>e.i<0?0:e.i-1),o=this.flamebearer.levels[n];if(!o)throw new Error(`Could not find level: '${n}'`);const i=Math.max(this.tickToX(t.getBarOffset(o,a)),0);return{x:i,y:Math.max((n-r)*jr,0),width:Math.min(this.tickToX(t.getBarOffset(o,a)+t.getBarTotal(o,a))-i,this.getCanvasWidth())}},this.xyToBarData=e=>{const{i:t,j:n}=this.xyToBarIndex(e.x,e.y),a=this.flamebearer.levels[t];if(!a)throw new Error(`Could not find level: '${t}'`);switch(this.flamebearer.format){case"single":{const e=Tr;return{format:"single",name:this.flamebearer.names[e.getBarName(a,n)],self:e.getBarSelf(a,n),offset:e.getBarOffset(a,n),total:e.getBarTotal(a,n)}}case"double":{const e=Cr;return{format:"double",barTotal:e.getBarTotal(a,n),totalLeft:e.getBarTotalLeft(a,n),totalRight:e.getBarTotalRght(a,n),totalDiff:e.getBarTotalDiff(a,n),name:this.flamebearer.names[e.getBarName(a,n)]}}default:throw new Error("Unsupported type")}},this.isWithinBounds=(e,t)=>{if(e<0||e>this.getCanvasWidth())return!1;try{const{i:n,j:a}=this.xyToBarIndex(e,t);if(-1===a||-1===n)return!1}catch(e){return!1}return!0},this.zoom=o,this.focusedNode=n,this.flamebearer=e,this.canvas=t,this.highlightQuery=r,this.ff=_r(e.format),this.palette=i,this.messages=l,n.isJust&&o.isJust&&o.value.i<n.value.i)throw new Error("Zoom i level should be bigger than Focus")}render(e){var t;const{rangeMin:n,rangeMax:a,pxPerTick:r}=this.updateCachedMetrics(),o=null!==(t=null==e?void 0:e.highlightQueryOverride)&&void 0!==t?t:this.highlightQuery,i={canvas:this.canvas,format:this.flamebearer.format,numTicks:this.flamebearer.numTicks,sampleRate:this.flamebearer.sampleRate,names:this.flamebearer.names,levels:this.flamebearer.levels,spyName:this.flamebearer.spyName,units:this.flamebearer.units,maxSelf:this.flamebearer.maxSelf,rangeMin:n,rangeMax:a,fitMode:this.fitMode,highlightQuery:o,zoom:this.zoom,focusedNode:this.focusedNode,pxPerTick:r,tickToX:e=>(e-this.flamebearer.numTicks*n)*r,palette:this.palette,messages:this.messages,renderRects:null==e?void 0:e.renderRects,renderText:null==e?void 0:e.renderText,renderMode:null==e?void 0:e.renderMode,levelStart:null==e?void 0:e.levelStart,levelEnd:null==e?void 0:e.levelEnd,startI:null==e?void 0:e.startI,startJ:null==e?void 0:e.startJ,timeBudgetMs:null==e?void 0:e.timeBudgetMs,skipCanvasResize:null==e?void 0:e.skipCanvasResize,skipDprScale:null==e?void 0:e.skipDprScale,devicePixelRatio:null==e?void 0:e.devicePixelRatio},{format:l}=this.flamebearer;switch(l){case"single":return io({...i,format:"single"});case"double":return io({...i,leftTicks:this.flamebearer.leftTicks,rightTicks:this.flamebearer.rightTicks});default:throw new Error(`Invalid format: '${l}'`)}}pxPerTick(){if(null!==this.cachedPxPerTick)return this.cachedPxPerTick;const{rangeMin:e,rangeMax:t}=this.getRange(),n=this.getCanvasWidth()/this.flamebearer.numTicks/(t-e);return this.cachedRange={rangeMin:e,rangeMax:t},this.cachedPxPerTick=n,n}updateCachedMetrics(){const{rangeMin:e,rangeMax:t}=this.getRange(),n=this.getCanvasWidth()/this.flamebearer.numTicks/(t-e);return this.cachedRange={rangeMin:e,rangeMax:t},this.cachedPxPerTick=n,{rangeMin:e,rangeMax:t,pxPerTick:n}}getRange(){const{ff:e}=this,t=t=>{const n=this.flamebearer.levels[t.i];if(!n)throw new Error(`Could not find level: '${t.i}'`);return{rangeMin:e.getBarOffset(n,t.j)/this.flamebearer.numTicks,rangeMax:(e.getBarOffset(n,t.j)+e.getBarTotal(n,t.j))/this.flamebearer.numTicks}},n=t=>{const n=this.flamebearer.levels[t.i];if(!n)throw new Error(`Could not find level: '${t.i}'`);return{rangeMin:e.getBarOffset(n,t.j)/this.flamebearer.numTicks,rangeMax:(e.getBarOffset(n,t.j)+e.getBarTotal(n,t.j))/this.flamebearer.numTicks}},{zoom:a,focusedNode:r}=this;return a.match({Just:e=>r.match({Just:a=>{const r=n(a),o=t(e);return r.rangeMax-r.rangeMin<o.rangeMax-o.rangeMin?(console.warn("Focus is smaller than range, this shouldnt happen. Verify that the zoom is always bigger than the focus."),n(a)):t(e)},Nothing:()=>t(e)}),Nothing:()=>r.match({Just:e=>n(e),Nothing:()=>({rangeMin:0,rangeMax:1})})})}getCanvasWidth(){return"clientWidth"in this.canvas&&"number"==typeof this.canvas.clientWidth?this.canvas.clientWidth:this.canvas.width}isFocused(){return this.focusedNode.isJust}binarySearchLevel(e,t){const{ff:n}=this;let a=0,r=t.length-n.jStep;for(;a<=r;){const o=n.jStep*(a/n.jStep+r/n.jStep>>1),i=this.tickToX(n.getBarOffset(t,o)),l=this.tickToX(n.getBarOffset(t,o)+n.getBarTotal(t,o));if(i<=e&&l>=e)return l-i>5?o:-1;i>e?r=o-n.jStep:a=o+n.jStep}return-1}xyToBarIndex(e,t){if(e<0||t<0)throw new Error(`x and y must be bigger than 0. x = ${e}, y = ${t}`);if(this.isFocused()&&t<=Er)return{i:0,j:0};const n=this.isFocused()?t-Er:t,a=this.focusedNode.mapOrElse(()=>0,e=>e.i<=0?0:e.i),r=this.zoom.match({Just:()=>this.focusedNode.match({Just:()=>a,Nothing:()=>0}),Nothing:()=>this.focusedNode.match({Just:()=>a,Nothing:()=>0})}),o=Math.floor(n/jr)+r;if(o>=0&&o<this.flamebearer.levels.length){const t=this.flamebearer.levels[o];if(!t)throw new Error(`Could not find level: '${o}'`);return{i:o,j:this.binarySearchLevel(e,t)}}return{i:0,j:0}}parseXY(e,t){const n={x:e,y:t};return this.isWithinBounds(e,t)?N.of(n):N.nothing()}xyToBar(e,t){return this.parseXY(e,t).map(n=>{const{i:a,j:r}=this.xyToBarIndex(e,t);return{i:a,j:r,...this.xyToBarPosition(n),...this.xyToBarData(n)}})}}function uo(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=uo(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function ho(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=uo(e))&&(a&&(a+=" "),a+=t);return a}var mo="NoData-module_noData__WuuID";function po(){return e("div",{"data-testid":"no-data",className:mo,children:e("span",{children:"No data available"})})}var go,vo,bo={},yo={};function wo(){return go||(go=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="arrow-rotate-right",n=[8635,"arrow-right-rotate","arrow-rotate-forward","redo"],a="f01e",r="M436.7 74.7L448 85.4 448 32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 128c0 17.7-14.3 32-32 32l-128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l47.9 0-7.6-7.2c-.2-.2-.4-.4-.6-.6-75-75-196.5-75-271.5 0s-75 196.5 0 271.5 196.5 75 271.5 0c8.2-8.2 15.5-16.9 21.9-26.1 10.1-14.5 30.1-18 44.6-7.9s18 30.1 7.9 44.6c-8.5 12.2-18.2 23.8-29.1 34.7-100 100-262.1 100-362 0S-25 175 75 75c99.9-99.9 261.7-100 361.7-.3z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,a,r]},e.faArrowRotateRight=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(yo)),yo}function xo(){return vo||(vo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=wo();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faRedo=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(bo)),bo}var ko,No=xo(),So={};function To(){return ko||(ko=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="copy",n=[],a="f0c5",r="M192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-200.6c0-17.4-7.1-34.1-19.7-46.2L370.6 17.8C358.7 6.4 342.8 0 326.3 0L192 0zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-16-64 0 0 16-192 0 0-256 16 0 0-64-16 0z";e.definition={prefix:"fas",iconName:t,icon:[448,512,n,a,r]},e.faCopy=e.definition,e.prefix="fas",e.iconName=t,e.width=448,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(So)),So}var Co,_o=To(),Mo={};function Ro(){return Co||(Co=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="highlighter",n=[],a="f591",r="M315 315L473.4 99.9 444.1 70.6 229 229 315 315zm-187 5l0 0 0-71.7c0-15.3 7.2-29.6 19.5-38.6L420.6 8.4C428 2.9 437 0 446.2 0 457.6 0 468.5 4.5 476.6 12.6l54.8 54.8c8.1 8.1 12.6 19 12.6 30.5 0 9.2-2.9 18.2-8.4 25.6L334.4 396.5c-9 12.3-23.4 19.5-38.6 19.5l-71.7 0-25.4 25.4c-12.5 12.5-32.8 12.5-45.3 0l-50.7-50.7c-12.5-12.5-12.5-32.8 0-45.3L128 320zM7 466.3l51.7-51.7 70.6 70.6-19.7 19.7c-4.5 4.5-10.6 7-17 7L24 512c-13.3 0-24-10.7-24-24l0-4.7c0-6.4 2.5-12.5 7-17z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,a,r]},e.faHighlighter=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(Mo)),Mo}var Po,Fo,Io=Ro(),jo={},Eo={};function Bo(){return Po||(Po=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="down-left-and-up-right-to-center",n=["compress-alt"],a="f422",r="M439.5 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2S450.2 240 440.5 240l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87zM72.5 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87-39-39c-6.9-6.9-8.9-17.2-5.2-26.2S62.8 272 72.5 272z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,a,r]},e.faDownLeftAndUpRightToCenter=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(Eo)),Eo}function Do(){return Fo||(Fo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Bo();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faCompressAlt=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(jo)),jo}var Lo=Do();const Ao=e=>!!e&&"o"===e[0],Oo=R,zo=(e,t)=>!0===e||!(!e||!e[t]),$o=(e,t)=>"function"==typeof e?e(t):e,Vo="_szhsinMenu",Ho=(e,t)=>Object.defineProperty(t,Vo,{value:e}),Wo=(e,t)=>(t&&Object.keys(t).forEach(n=>{const a=e[n],r=t[n];e[n]="function"==typeof r&&a?(...e)=>{r(...e),a(...e)}:r}),e),Uo=e=>{for(;e;){if(!(e=e.parentNode)||e===document.body||!e.parentNode)return;const{overflow:t,overflowX:n,overflowY:a}=getComputedStyle(e);if(/auto|scroll|overlay|hidden/.test(t+a+n))return e}};function Qo(e,t){return{"aria-disabled":e||void 0,tabIndex:t?0:-1}}function Jo(e,t){for(let n=0;n<e.length;n++)if(e[n]===t)return n;return-1}const Xo=({block:e,element:t,modifiers:n,className:a})=>o(()=>{const r=t?`${e}__${t}`:e;let o=r;n&&Object.keys(n).forEach(e=>{const t=n[e];t&&(o+=` ${r}--${!0===t?e:`${e}-${t}`}`)});let i="function"==typeof a?a(n):a;return"string"==typeof i&&(i=i.trim(),i&&(o+=` ${i}`)),o},[e,t,n,a]),Yo="szh-menu",qo=i(),Zo=i({}),Go=i({}),Ko=i({}),ei=i({}),ti=i({}),ni=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),ai=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),ri=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),oi=Object.freeze({FIRST:"first",LAST:"last"}),ii=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),li="absolute",si="none",ci={preventScroll:!0},fi=Ho("MenuButton",l(function({className:t,isOpen:n,disabled:a,children:r,...i},l){const s=o(()=>({open:n}),[n]);return e("button",{"aria-haspopup":!0,"aria-expanded":n,"aria-disabled":a||void 0,type:"button",disabled:a,...i,ref:l,className:Xo({block:"szh-menu-button",modifiers:s,className:t}),children:r})})),ui=({className:t,containerRef:n,containerProps:a,children:r,isOpen:i,theming:l,transition:s,onClose:c})=>{const f=zo(s,"item");return e("div",{...Wo({onKeyDown:({key:e})=>{if(e===ni.ESC)$o(c,{key:e,reason:ri.CANCEL})},onBlur:e=>{i&&!e.currentTarget.contains(e.relatedTarget)&&$o(c,{reason:ri.BLUR})}},a),className:Xo({block:"szh-menu-container",modifiers:o(()=>({theme:l,itemTransition:f}),[l,f]),className:t}),style:{position:"absolute",...a?.style},ref:n,children:r})},di=()=>{let e,t=0;return{toggle:e=>{e?t++:t--,t=Math.max(t,0)},on:(n,a,r)=>{t?e||(e=setTimeout(()=>{e=0,a()},n)):r?.()},off:()=>{e&&(clearTimeout(e),e=0)}}},hi=(e,t)=>Math.round(e)===t?e:t,mi=(e,t,n,a)=>{const r=(e=>{const t=e.getBoundingClientRect();return t.width=hi(t.width,e.offsetWidth),t.height=hi(t.height,e.offsetHeight),t})(t),o=e.getBoundingClientRect(),i=n===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:n.getBoundingClientRect(),l=(e=>{if("string"!=typeof e)return{top:0,right:0,bottom:0,left:0};const t=e.trim().split(/\s+/,4).map(parseFloat),n=isNaN(t[0])?0:t[0],a=isNaN(t[1])?n:t[1];return{top:n,right:a,bottom:isNaN(t[2])?n:t[2],left:isNaN(t[3])?a:t[3]}})(a),s=e=>e+o.left-i.left-l.left,c=e=>e+o.left+r.width-i.right+l.right,f=e=>e+o.top-i.top-l.top,u=e=>e+o.top+r.height-i.bottom+l.bottom;return{menuRect:r,containerRect:o,getLeftOverflow:s,getRightOverflow:c,getTopOverflow:f,getBottomOverflow:u,confineHorizontally:e=>{let t=s(e);if(t<0)e-=t;else{const n=c(e);n>0&&(t=s(e-=n),t<0&&(e-=t))}return e},confineVertically:e=>{let t=f(e);if(t<0)e-=t;else{const n=u(e);n>0&&(t=f(e-=n),t<0&&(e-=t))}return e}}},pi=({anchorRect:e,containerRect:t,menuRect:n,placeLeftorRightY:a,placeLeftX:r,placeRightX:o,getLeftOverflow:i,getRightOverflow:l,confineHorizontally:s,confineVertically:c,arrowRef:f,arrow:u,direction:d,position:h})=>{let m,p,g,v=d,b=a;"initial"!==h&&(b=c(b),"anchor"===h&&(b=Math.min(b,e.bottom-t.top),b=Math.max(b,e.top-t.top-n.height))),"left"===v?(m=r,"initial"!==h&&(p=i(m),p<0&&(g=l(o),(g<=0||-p>g)&&(m=o,v="right")))):(m=o,"initial"!==h&&(g=l(m),g>0&&(p=i(r),(p>=0||-p<g)&&(m=r,v="left")))),"auto"===h&&(m=s(m));const y=u?(({arrowRef:e,menuY:t,anchorRect:n,containerRect:a,menuRect:r})=>{let o=n.top-a.top-t+n.height/2;const i=1.25*e.current.offsetHeight;return o=Math.max(i,o),o=Math.min(o,r.height-i),o})({menuY:b,arrowRef:f,anchorRect:e,containerRect:t,menuRect:n}):void 0;return{arrowY:y,x:m,y:b,computedDirection:v}},gi=({anchorRect:e,containerRect:t,menuRect:n,placeToporBottomX:a,placeTopY:r,placeBottomY:o,getTopOverflow:i,getBottomOverflow:l,confineHorizontally:s,confineVertically:c,arrowRef:f,arrow:u,direction:d,position:h})=>{let m,p,g,v="top"===d?"top":"bottom",b=a;"initial"!==h&&(b=s(b),"anchor"===h&&(b=Math.min(b,e.right-t.left),b=Math.max(b,e.left-t.left-n.width))),"top"===v?(m=r,"initial"!==h&&(p=i(m),p<0&&(g=l(o),(g<=0||-p>g)&&(m=o,v="bottom")))):(m=o,"initial"!==h&&(g=l(m),g>0&&(p=i(r),(p>=0||-p<g)&&(m=r,v="top")))),"auto"===h&&(m=c(m));const y=u?(({arrowRef:e,menuX:t,anchorRect:n,containerRect:a,menuRect:r})=>{let o=n.left-a.left-t+n.width/2;const i=1.25*e.current.offsetWidth;return o=Math.max(i,o),o=Math.min(o,r.width-i),o})({menuX:b,arrowRef:f,anchorRect:e,containerRect:t,menuRect:n}):void 0;return{arrowX:y,x:b,y:m,computedDirection:v}},vi="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?u:d;function bi(e,t){"function"==typeof e?e(t):e.current=t}const yi=(e,t)=>o(()=>e?t?n=>{bi(e,n),bi(t,n)}:e:t,[e,t]),wi=({ariaLabel:n,menuClassName:a,menuStyle:r,arrow:i,arrowProps:l={},anchorPoint:u,anchorRef:p,containerRef:g,containerProps:v,externalRef:b,parentScrollingRef:y,align:w="start",direction:x="bottom",position:k="auto",overflow:N="visible",setDownOverflow:S,repositionFlag:T,captureFocus:C=!0,state:_,endTransition:M,isDisabled:R,menuItemFocus:F,gap:I=0,shift:j=0,children:E,onClose:B,focusProps:D,...L})=>{const[A,O]=s({x:-9999,y:-9999}),[z,$]=s({}),[V,H]=s(),[W,U]=s(x),[Q]=s(di),[J,X]=h(e=>e+1,1),{transition:Y,boundingBoxRef:q,boundingBoxPadding:Z,rootMenuRef:G,rootAnchorRef:K,scrollNodesRef:ee,reposition:te,viewScroll:ne,submenuCloseDelay:ae}=m(ti),{submenuCtx:re,reposSubmenu:oe=T}=m(Go),ie=c(),le=c(),se=c(!1),{hoverItem:ce,dispatch:fe,updateItems:ue}=(e=>{const[t,n]=s(),a=c({items:[],hoverIndex:-1,sorted:!1}).current,r=f((t,r)=>{const{items:o}=a;if(t)if(r)o.push(t);else{const a=o.indexOf(t);a>-1&&(o.splice(a,1),t.contains(document.activeElement)&&(e.current.focus(ci),n()))}else a.items=[];a.hoverIndex=-1,a.sorted=!1},[a,e]),o=f((t,r,o)=>{const{items:i,hoverIndex:l}=a,s=()=>{if(a.sorted)return;const t=e.current.querySelectorAll(".szh-menu__item");i.sort((e,n)=>Jo(t,e)-Jo(t,n)),a.sorted=!0};let c,f=-1;switch(t){case ai.RESET:break;case ai.SET:c=r;break;case ai.UNSET:c=e=>e===r?void 0:e;break;case ai.FIRST:s(),f=0,c=i[f];break;case ai.LAST:s(),f=i.length-1,c=i[f];break;case ai.SET_INDEX:s(),f=o,c=i[f];break;case ai.INCREASE:s(),f=l,f<0&&(f=i.indexOf(r)),f++,f>=i.length&&(f=0),c=i[f];break;case ai.DECREASE:s(),f=l,f<0&&(f=i.indexOf(r)),f--,f<0&&(f=i.length-1),c=i[f];break;default:if("production"!==process.env.NODE_ENV)throw new Error(`[React-Menu] Unknown hover action type: ${t}`)}c||(f=-1),n(c),a.hoverIndex=f},[e,a]);return{hoverItem:t,dispatch:o,updateItems:r}})(ie),de=Ao(_),he=zo(Y,"open"),me=zo(Y,"close"),pe=ee.current,ge=f(e=>{const t=ie.current,n=g.current;if(!t||!n)return;const a=p?p.current?.getBoundingClientRect():u?{left:u.x,right:u.x,top:u.y,bottom:u.y,width:0,height:0}:null;if(!a)return void("production"!==process.env.NODE_ENV&&console.warn("[React-Menu] Menu might not be positioned properly as one of the anchorRef or anchorPoint prop should be provided. If `anchorRef` is provided, the anchor must be mounted before menu is open."));pe.menu||(pe.menu=(q?q.current:Uo(G.current))||window);const r=mi(n,t,pe.menu,Z);let{arrowX:o,arrowY:l,x:s,y:c,computedDirection:f}=(({arrow:e,align:t,direction:n,gap:a,shift:r,position:o,anchorRect:i,arrowRef:l,positionHelpers:s})=>{const{menuRect:c,containerRect:f}=s,u="left"===n||"right"===n;let d=u?a:r,h=u?r:a;if(e){const e=l.current;u?d+=e.offsetWidth:h+=e.offsetHeight}const m=i.left-f.left-c.width-d,p=i.right-f.left+d,g=i.top-f.top-c.height-h,v=i.bottom-f.top+h;let b,y;"end"===t?(b=i.right-f.left-c.width,y=i.bottom-f.top-c.height):"center"===t?(b=i.left-f.left-(c.width-i.width)/2,y=i.top-f.top-(c.height-i.height)/2):(b=i.left-f.left,y=i.top-f.top),b+=d,y+=h;const w={...s,anchorRect:i,placeLeftX:m,placeRightX:p,placeLeftorRightY:y,placeTopY:g,placeBottomY:v,placeToporBottomX:b,arrowRef:l,arrow:e,direction:n,position:o};switch(n){case"left":case"right":return pi(w);default:return gi(w)}})({arrow:i,align:w,direction:x,gap:I,shift:j,position:k,anchorRect:a,arrowRef:le,positionHelpers:r});const{menuRect:d}=r,h=d.height;if(!e&&"visible"!==N){const{getTopOverflow:e,getBottomOverflow:t}=r;let n,a;const o=t(c);if(o>0)n=h-o,a=o;else{const t=e(c);t<0&&(n=h+t,a=0-t,n>=0&&(c-=t))}n>=0&&H({height:n,overflowAmt:a})}i&&$({x:o,y:l}),O({x:s,y:c}),U(f)},[i,w,Z,x,I,j,k,N,u,p,g,q,G,pe]);vi(()=>{de&&(ge(),se.current&&X()),se.current=de},[de,ge,oe]),vi(()=>{V&&!S&&(ie.current.scrollTop=0)},[V,S]),vi(()=>ue,[ue]),d(()=>{let{menu:e}=pe;if(!de||!e)return;if(e=e.addEventListener?e:window,!pe.anchors){pe.anchors=[];let t=Uo(K&&K.current);for(;t&&t!==e;)pe.anchors.push(t),t=Uo(t)}let t=ne;if(pe.anchors.length&&"initial"===t&&(t="auto"),"initial"===t)return;const n=()=>{"auto"===t?Oo(()=>ge(!0)):$o(B,{reason:ri.SCROLL})},a=pe.anchors.concat("initial"!==ne?e:[]);return a.forEach(e=>e.addEventListener("scroll",n)),()=>a.forEach(e=>e.removeEventListener("scroll",n))},[K,pe,de,B,ne,ge]);const ve=!!V&&V.overflowAmt>0;d(()=>{if(ve||!de||!y)return;const e=()=>Oo(ge),t=y.current;return t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)},[de,ve,y,ge]),d(()=>{if(!de||"function"!=typeof ResizeObserver||"initial"===te)return;const e=[],t=new ResizeObserver(t=>t.forEach(({target:t})=>{e.indexOf(t)<0?e.push(t):P(()=>{ge(),X()})})),n={box:"border-box"};t.observe(ie.current,n);const a=p?.current;return a&&t.observe(a,n),()=>t.disconnect()},[de,te,p,ge]),d(()=>{if(!de)return fe(ai.RESET),void(me||H());const{position:e,alwaysUpdate:t}=F||{},n=()=>{e===oi.FIRST?fe(ai.FIRST):e===oi.LAST?fe(ai.LAST):e>=-1&&fe(ai.SET_INDEX,void 0,e)};if(t)n();else if(C){const e=setTimeout(()=>{const e=ie.current;e&&!e.contains(document.activeElement)&&(e.focus(ci),n())},he?170:100);return()=>clearTimeout(e)}},[de,he,me,C,F,fe]);const be=o(()=>({isParentOpen:de,submenuCtx:Q,dispatch:fe,updateItems:ue}),[de,Q,fe,ue]);let ye,we;V&&(S?we=V.overflowAmt:ye=V.height);const xe=o(()=>({reposSubmenu:J,submenuCtx:Q,overflow:N,overflowAmt:we,parentMenuRef:ie,parentDir:W}),[J,Q,N,we,W]),ke=ye>=0?{maxHeight:ye,overflow:N}:void 0,Ne=o(()=>({state:_,align:w,dir:W}),[_,w,W]),Se=o(()=>({dir:W}),[W]),Te=Xo({block:Yo,element:"arrow",modifiers:Se,className:l.className}),Ce=t("ul",{role:"menu","aria-label":n,...Qo(R),...Wo({onPointerEnter:re?.off,onPointerMove:e=>{e.stopPropagation(),Q.on(ae,()=>{fe(ai.RESET),ie.current.focus(ci)})},onPointerLeave:e=>{e.target===e.currentTarget&&Q.off()},onKeyDown:e=>{switch(e.key){case ni.HOME:fe(ai.FIRST);break;case ni.END:fe(ai.LAST);break;case ni.UP:fe(ai.DECREASE,ce);break;case ni.DOWN:fe(ai.INCREASE,ce);break;case ni.SPACE:return void(e.target&&-1!==e.target.className.indexOf(Yo)&&e.preventDefault());default:return}e.preventDefault(),e.stopPropagation()},onAnimationEnd:()=>{"closing"===_&&H(),$o(M)}},L),ref:yi(b,ie),className:Xo({block:Yo,modifiers:Ne,className:a}),style:{...r,...ke,margin:0,display:"closed"===_?"none":void 0,position:li,left:A.x,top:A.y},children:[i&&e("li",{"aria-hidden":!0,...l,className:Te,style:{display:"block",position:li,left:z.x,top:z.y,...l.style},ref:le}),e(Go.Provider,{value:xe,children:e(Zo.Provider,{value:be,children:e(qo.Provider,{value:ce,children:$o(E,Ne)})})})]});return v?e(ui,{...v,isOpen:de,children:Ce}):Ce},xi=l(function({"aria-label":t,className:n,containerProps:a,initialMounted:r,unmountOnClose:i,transition:l,transitionTimeout:s,boundingBoxRef:f,boundingBoxPadding:u,reposition:d="auto",submenuOpenDelay:h=300,submenuCloseDelay:m=150,viewScroll:p="initial",portal:g,theming:v,onItemClick:b,...y},w){const x=c(null),k=c({}),{anchorRef:N,state:S,onClose:T}=y,C=o(()=>({initialMounted:r,unmountOnClose:i,transition:l,transitionTimeout:s,boundingBoxRef:f,boundingBoxPadding:u,rootMenuRef:x,rootAnchorRef:N,scrollNodesRef:k,reposition:d,viewScroll:p,submenuOpenDelay:h,submenuCloseDelay:m}),[r,i,l,s,N,f,u,d,p,h,m]),_=o(()=>({handleClick(e,t){e.stopPropagation||$o(b,e);let n=e.keepOpen;void 0===n&&(n=t&&e.key===ni.SPACE),n||$o(T,{value:e.value,key:e.key,reason:ri.CLICK})},handleClose(e){$o(T,{key:e,reason:ri.CLICK})}}),[b,T]);if(!S)return null;const M=e(ti.Provider,{value:C,children:e(Ko.Provider,{value:_,children:e(wi,{...y,ariaLabel:t||"Menu",externalRef:w,containerRef:x,containerProps:{className:n,containerRef:x,containerProps:a,theming:v,transition:l,onClose:T}})})});return!0===g&&"undefined"!=typeof document?F(M,document.body):g?g.target?F(M,g.target):g.stablePosition?null:M:M}),ki=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],Ni=e=>({_s:e,status:ki[e],isEnter:e<3,isMounted:6!==e,isResolved:2===e||e>4}),Si=e=>e?6:5,Ti=(e,t,n,a,r)=>{clearTimeout(a.current);const o=Ni(e);t(o),n.current=o,r&&r({current:o})},Ci=({enter:e=!0,exit:t=!0,preEnter:n,preExit:a,timeout:r,initialEntered:o,mountOnEnter:i,unmountOnExit:l,onStateChange:u}={})=>{const[d,h]=s(()=>Ni(o?2:Si(i))),m=c(d),p=c(),[g,v]=(e=>"object"==typeof e?[e.enter,e.exit]:[e,e])(r),b=f(()=>{const e=((e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return Si(t)}})(m.current._s,l);e&&Ti(e,h,m,p,u)},[u,l]);return[d,f(r=>{const o=e=>{switch(Ti(e,h,m,p,u),e){case 1:g>=0&&(p.current=setTimeout(b,g));break;case 4:v>=0&&(p.current=setTimeout(b,v));break;case 0:case 3:p.current=((e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0))(o,e)}},i=m.current.isEnter;"boolean"!=typeof r&&(r=!i),r?!i&&o(e?n?0:1:2):i&&o(t?a?3:4:Si(l))},[b,u,e,t,n,a,g,v,l]),b]},_i=({initialOpen:e,initialMounted:t,unmountOnClose:n,transition:a,transitionTimeout:r=500,onMenuChange:o}={})=>{const i=zo(a,"open"),l=zo(a,"close"),[{status:s},c,u]=Ci({initialEntered:e,mountOnEnter:!t,unmountOnExit:n,timeout:r,enter:i,exit:l,onStateChange:f(({current:{isEnter:e,isResolved:t}})=>{!o||e&&i&&t||!e&&l&&t||o({open:e})},[o,i,l])});return[{state:ii[s],endTransition:u},c]},Mi=parseInt(b)<19,Ri=l(function({"aria-label":n,captureFocus:a,initialOpen:r,menuButton:o,instanceRef:i,onMenuChange:l,...u},d){const[h,m,b]=(e=>{const[t,n]=_i(e),[a,r]=s();return[{menuItemFocus:a,...t},n,(e,t)=>{r({position:e,alwaysUpdate:t}),n(!0)}]})({...u,onMenuChange:l}),{state:y}=h,w=Ao(y),x=c(null),k=((e,t)=>{if("production"!==process.env.NODE_ENV&&"function"!=typeof t)throw new Error("[React-Menu] useClick/useHover requires a function in the second parameter.");const[n]=s({});return{onMouseDown:()=>{n.v=e&&"closed"!==e},onClick:e=>n.v?n.v=!1:t(!0,e)}})(y,(e,t)=>b(t.detail?void 0:oi.FIRST)),N=f(e=>{m(!1),e.key&&x.current.focus()},[m]),S=$o(o,{open:w});if(!S||!S.type)throw new Error("Menu requires a menuButton prop.");const T={...Wo({onKeyDown:e=>{switch(e.key){case ni.UP:b(oi.LAST);break;case ni.DOWN:b(oi.FIRST);break;default:return}e.preventDefault()},...k},S.props),ref:yi(Mi?S.ref:S.props.ref,x)};"MenuButton"===S.type[Vo]&&(T.isOpen=w);const C=v(S,T);return p(i,()=>({openMenu:b,closeMenu:()=>m(!1)})),t(g,{children:[C,e(xi,{...u,...h,"aria-label":n||("string"==typeof S.props.children?S.props.children:"Menu"),anchorRef:x,ref:d,onClose:N})]})}),Pi=(t,n)=>{const a=y(n),r=l((t,n)=>{const r=c(null);return e(a,{...t,itemRef:r,externalRef:n,isHovering:m(qo)===r.current})});return r.displayName=`WithHovering(${t})`,r},Fi=(e,t,n,a)=>{const[r,o,i]=(e=>{const[t,n]=s(!1);return d(()=>{!e&&n(!1)},[e]),[t,()=>!t&&n(!0),()=>n(!1)]})(n),{submenuCloseDelay:l}=m(ti),{isParentOpen:c,submenuCtx:f,dispatch:u,updateItems:h}=m(Zo),p=()=>{!n&&!a&&u(ai.SET,e.current)},g=()=>{!a&&u(ai.UNSET,e.current)};return((e,t,n)=>{vi(()=>{if("production"!==process.env.NODE_ENV&&!n)throw new Error(`[React-Menu] This menu item or submenu should be rendered under a menu: ${t.current.outerHTML}`);if(e)return;const a=t.current;return n(a,!0),()=>{n(a)}},[e,t,n])})(a,e,h),d(()=>{n&&c&&t.current&&t.current.focus()},[t,n,c]),{mouseOver:r,setHover:p,onBlur:e=>{n&&!e.currentTarget.contains(e.relatedTarget)&&g()},onPointerMove:e=>{a||(e.stopPropagation(),o(),f.on(l,p,p))},onPointerLeave:(e,t)=>{i(),f.off(),!t&&g()}}},Ii=Pi("MenuItem",function({className:t,value:n,href:a,type:r,checked:i,disabled:l,children:s,onClick:c,isHovering:f,itemRef:u,externalRef:d,...h}){const p=!!l,{mouseOver:g,setHover:v,...b}=Fi(u,u,f,p),y=m(Ko),w=m(ei),x="radio"===r,k="checkbox"===r,N=!(!a||p||x||k),S=x?w.value===n:!!k&&!!i,T=e=>{if(p)return e.stopPropagation(),void e.preventDefault();const t={value:n,syntheticEvent:e};void 0!==e.key&&(t.key=e.key),k&&(t.checked=!S),x&&(t.name=w.name),$o(c,t),x&&$o(w.onRadioChange,t),y.handleClick(t,k||x)},C=o(()=>({type:r,disabled:p,hover:g||f,checked:S,anchor:N}),[r,p,g,f,S,N]),_=Wo({...b,onPointerDown:v,onKeyDown:e=>{if(f)switch(e.key){case ni.ENTER:e.preventDefault();case ni.SPACE:N?u.current.click():T(e)}},onClick:T},h),M={role:x?"menuitemradio":k?"menuitemcheckbox":"menuitem","aria-checked":x||k?S:void 0,...Qo(p,f),..._,ref:yi(d,u),className:Xo({block:Yo,element:"item",modifiers:C,className:t}),children:o(()=>$o(s,C),[s,C])};return e("li",N?{role:si,children:e("a",{href:a,...M})}:{...M})}),ji=y(l(function({className:t,...n},a){return e("li",{role:si,...n,ref:a,className:Xo({block:Yo,element:"header",className:t})})}));var Ei="canvas-module_canvas__Iiaz4",Bi="canvas-module_textCanvas__eFxM4",Di="Highlight-module_highlight__1VV-X";function Li(t){const{canvasRef:n,barHeight:r,xyToHighlightData:o,zoom:i}=t,[l,s]=a.useState({height:"0px",visibility:"hidden"}),c=a.useRef(null),f=a.useRef(null),u=a.useRef(null);a.useEffect(()=>{s({height:"0px",visibility:"hidden"})},[i]);const d=e=>{const t=c.current;if(!t)return void s(e);const n=u.current;n&&n.left===e.left&&n.top===e.top&&n.width===e.width&&n.visibility===e.visibility||(u.current=e,t.style.visibility=String(e.visibility||""),void 0!==e.left&&(t.style.left=String(e.left)),void 0!==e.top&&(t.style.top=String(e.top)),void 0!==e.width&&(t.style.width=String(e.width)),void 0!==e.height&&(t.style.height=String(e.height)))},h=e=>{f.current&&cancelAnimationFrame(f.current);const t=e.offsetX,n=e.offsetY;f.current=requestAnimationFrame(()=>{const e=o(t,n);if(e.isJust){const t=e.value;d({visibility:"visible",height:`${r}px`,...t})}else m()})},m=()=>{d({...u.current||{},visibility:"hidden"})};return a.useEffect(()=>{const e=n.current;return e?(e.addEventListener("mousemove",h),e.addEventListener("mouseout",m),()=>{e.removeEventListener("mousemove",h),e.removeEventListener("mouseout",m),f.current&&cancelAnimationFrame(f.current)}):()=>{}},[n.current,h,m]),e("div",{ref:c,className:Di,style:l,"data-testid":"flamegraph-highlight"})}var Ai="ContextMenuHighlight-module_highlightContextMenu__WI1nK";const Oi={height:"0px",visibility:"hidden"};function zi(t){const{node:n,barHeight:r}=t,[o,i]=a.useState(Oi);return a.useEffect(()=>{n.match({Nothing:()=>i(Oi),Just:e=>i({visibility:"visible",height:`${r}px`,...e})})},[n]),e("div",{className:Ai,style:o,"data-testid":"flamegraph-highlight-contextmenu"})}const $i={name:"Default",goodColor:T.rgb(0,170,0),neutralColor:T.rgb(148,142,142),badColor:T.rgb(200,0,0),colors:[T.hsl(24,69,60),T.hsl(34,65,65),T.hsl(194,52,61),T.hsl(163,45,55),T.hsl(211,48,60),T.hsl(246,40,65),T.hsl(305,63,79),T.hsl(47,100,73),T.rgb(183,219,171),T.rgb(244,213,152),T.rgb(78,146,249),T.rgb(249,186,143),T.rgb(242,145,145),T.rgb(130,181,216),T.rgb(229,168,226),T.rgb(174,162,224),T.rgb(154,196,138),T.rgb(242,201,109),T.rgb(101,197,219),T.rgb(249,147,78),T.rgb(234,100,96),T.rgb(81,149,206),T.rgb(214,131,206),T.rgb(128,110,183)]},Vi={...$i,name:"Color Blind",goodColor:T.rgb(26,133,255),neutralColor:T.rgb(148,142,142),badColor:T.rgb(220,50,32)};function Hi(){return t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",children:[e("defs",{}),e("path",{style:{fill:"#7d7d7f"},d:"M5,19.56c0,5.22,3.54,9.44,7.92,9.44h3.17c4.37,0,7.92-4.23,7.92-9.44v-7.56H5v7.56Z"}),e("path",{style:{fill:"#7d7d7f"},d:"M14,1h-.82c-4.52,0-8.18,3.73-8.18,8.33v1.67H14V1Z"}),e("path",{d:"M15.82,1h-.82V11h9v-1.67c0-4.6-3.66-8.33-8.18-8.33Z"})]})}function Wi(){return t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",children:[e("defs",{}),e("path",{style:{fill:"#7d7d7f"},d:"M24,19.56c0,5.22-3.54,9.44-7.92,9.44h-3.17c-4.37,0-7.92-4.23-7.92-9.44v-7.56H24v7.56Z"}),e("path",{style:{fill:"#7d7d7f"},d:"M15,1h.82c4.52,0,8.18,3.73,8.18,8.33v1.67H15V1Z"}),e("path",{d:"M13.18,1h.82V11H5v-1.67c0-4.6,3.66-8.33,8.18-8.33Z"})]})}var Ui={tooltip:"Tooltip-module_tooltip__NMZ65",flamegraphDiffTooltip:"Tooltip-module_flamegraphDiffTooltip__Z983o",tooltipName:"Tooltip-module_tooltipName__y4Qs3",functionName:"Tooltip-module_functionName__z9LHO",tooltipTable:"Tooltip-module_tooltipTable__ct3pq",clickInfo:"Tooltip-module_clickInfo__Utux5"};const Qi={location:"Location",self:"Self",total:"Total",baseline:"Baseline",comparison:"Comparison",diff:"Diff",noItemsFound:"No items found",diffNew:"new",diffRemoved:"removed",tooltipSamples:"Samples:",tooltipUnitTitles:{objects:{percent:"% of objects in RAM",formattedValue:"Objects in RAM",total:"% of total RAM"},goroutines:{percent:"% of goroutines",formattedValue:"Goroutines",total:"% of total goroutines"},bytes:{percent:"% of RAM",formattedValue:"RAM",total:"% of total bytes"},samples:{percent:"Share of CPU",formattedValue:"CPU Time",total:"% of total CPU"},lock_nanoseconds:{percent:"% of Time spent",formattedValue:"Time",total:"% of total seconds"},lock_samples:{percent:"% of contended locks",formattedValue:"Contended locks",total:"% of total locks"},trace_samples:{percent:"% of time",formattedValue:"Samples",total:"% of total samples"},exceptions:{percent:"% of thrown exceptions",formattedValue:"Thrown exceptions",total:"% of total thrown exceptions"},unknown:{percent:"Percentage",formattedValue:"Units",total:"% of total units"}},resetView:"Reset View",collapseNodesAbove:"Collapse nodes above",copyFunctionName:"Copy function name",highlightSimilarNodes:"Highlight similar nodes",clearHighlight:"Clear highlight",openInSandwichView:"Open in sandwich view",showTextTailFirst:"Show text tail first",showTextHeadFirst:"Show text head first",headFirst:"Head first",tailFirst:"Tail first",clickToHighlightNode:"Click to highlight node in flamegraph",rightClickForMoreNodeOptions:"Right click for more node viewing options",viewTable:"Table",viewTableAndFlamegraph:"Table and Flamegraph",viewFlamegraph:"Flamegraph",viewSandwich:"Sandwich",viewGraphviz:"GraphViz",more:"More",diffLegendRemovedLabel:"(-) Removed",diffLegendAddedLabel:"Added (+)",diffLegendSelectPalette:"Select a palette",paletteDefaultName:"Default",paletteColorBlindName:"Color Blind",paletteDefaultDesc:"(green to red)",paletteColorBlindDesc:"(blue to red)",searchPlaceholder:"Search...",syncSearchBars:"Sync Search Bars",unsyncSearchBars:"Unsync Search Bars",focusOnThisFunction:"Focus on this function",tableDoubleClickToFocus:"Double-click to focus in flamegraph",tableRightClickForOptions:"Right-click for more options",collapsedLevelsSingular:"total (1 level collapsed)",collapsedLevelsPlural:"total ({n} levels collapsed)",ofTotal:"of total",clearFocus:"Clear focus",sampleCountFormat:[{value:1e15,label:"Quad"},{value:1e12,label:"Tri"},{value:1e9,label:"B"},{value:1e6,label:"M"},{value:1e3,label:"K"}]},Ji={...Qi,location:"位置",self:"自身",total:"总计",baseline:"基线",comparison:"对比",diff:"差异",noItemsFound:"没有找到任何条目",diffNew:"新增",diffRemoved:"移除",tooltipSamples:"样本数:",tooltipUnitTitles:{objects:{percent:"RAM 中对象占比",formattedValue:"RAM 中对象数",total:"占总 RAM 的百分比"},goroutines:{percent:"协程占比",formattedValue:"协程数量",total:"占协程总数的百分比"},bytes:{percent:"RAM 占比",formattedValue:"RAM",total:"占总字节数的百分比"},samples:{percent:"CPU 占比",formattedValue:"CPU 时间",total:"占总 CPU 的百分比"},lock_nanoseconds:{percent:"耗时占比",formattedValue:"时间",total:"占总秒数的百分比"},lock_samples:{percent:"锁竞争事件占比",formattedValue:"锁竞争事件数",total:"占锁竞争总数的百分比"},trace_samples:{percent:"时间占比",formattedValue:"样本数",total:"占样本总数的百分比"},exceptions:{percent:"异常抛出占比",formattedValue:"异常数",total:"占异常总数的百分比"},unknown:{percent:"百分比",formattedValue:"单位",total:"占单位总量的百分比"}},resetView:"重置视图",collapseNodesAbove:"收起上方节点",copyFunctionName:"复制函数名",highlightSimilarNodes:"高亮相似节点",clearHighlight:"清除高亮",openInSandwichView:"在 sandwich 视图中查看",showTextTailFirst:"显示文本尾部优先",showTextHeadFirst:"显示文本头部优先",headFirst:"从头部开始显示",tailFirst:"从尾部开始显示",clickToHighlightNode:"点击火焰图节点高亮",rightClickForMoreNodeOptions:"右键查看更多节点选项",viewTable:"表格",viewTableAndFlamegraph:"表格 + 火焰图",viewFlamegraph:"火焰图",viewSandwich:"三明治视图",viewGraphviz:"调用图 (GraphViz)",more:"更多",diffLegendRemovedLabel:"(-) 减少",diffLegendAddedLabel:"增加 (+)",diffLegendSelectPalette:"选择颜色方案",paletteDefaultName:"默认",paletteColorBlindName:"色盲",paletteDefaultDesc:"(绿色 → 红色)",paletteColorBlindDesc:"(蓝色 → 红色)",searchPlaceholder:"搜索...",syncSearchBars:"同步搜索栏",unsyncSearchBars:"取消同步搜索栏",focusOnThisFunction:"聚焦到此函数",tableDoubleClickToFocus:"双击可聚焦到火焰图",tableRightClickForOptions:"右键查看更多选项",collapsedLevelsSingular:"总计(已折叠 1 层)",collapsedLevelsPlural:"总计(已折叠 {n} 层)",ofTotal:"占总量",clearFocus:"清除聚焦",sampleCountFormat:[{value:1e12,label:"兆"},{value:1e8,label:"亿"},{value:1e4,label:"万"},{value:1e3,label:"千"}]},Xi=i(Qi),Yi=Xi,qi=({messages:t,children:n})=>{const r=a.useMemo(()=>{var e;return{...Qi,...t,tooltipUnitTitles:{...Qi.tooltipUnitTitles,...null!==(e=null==t?void 0:t.tooltipUnitTitles)&&void 0!==e?e:{}}}},[t]);return e(Xi.Provider,{value:r,children:n})},Zi=()=>m(Xi);function Gi(e){if(!e)return null;const t=e.replace(/,/g,"").trim();if(!t)return null;const n=Number(t);return Number.isFinite(n)?n:null}function Ki(e,t){if(!e||!t)return;const n=e.trim().replace(/\u2212/g,"-");return n&&"0"!==n?n.startsWith("+")?t.badColor.rgb().string():n.startsWith("-")?t.goodColor.rgb().string():void 0:void 0}function el(e,t,n){return n<t?t:Math.max(t,Math.min(n,e))}function tl(e,t,n,a){const r=window.innerWidth,o=window.innerHeight,i=Math.max(0,n||0),l=Math.max(0,a||0);let s=e+12,c=t+20;return s+i+8>r&&(s=e-i-12),c+l+8>o&&(c=t-l-20),s=el(s,8,r-i-8),c=el(c,8,o-l-8),{left:s,top:c}}function nl({shouldShowFooter:r=!0,shouldShowTitle:o=!0,dataSourceRef:i,clickInfoSide:l,setTooltipContent:h,palette:m}){const p=c(null),g=c(null),v=c(null),b=c(null),[y,w]=a.useState({title:{text:"",diff:{text:"",color:""}},tooltipData:[]}),[x,k]=s(),N=()=>{k({visibility:"hidden"}),w({title:{text:"",diff:{text:"",color:""}},tooltipData:[]})},S=f(e=>{v.current&&cancelAnimationFrame(v.current);const t=e.clientX,n=e.clientY;v.current=requestAnimationFrame(()=>{if(!p.current)throw new Error("Missing tooltipElement");g.current={x:t,y:n},h(w,N,e);const a=p.current.clientWidth||0,r=p.current.clientHeight||0,{left:o,top:i}=tl(t,n,a,r);k({top:i,left:o,visibility:"visible"})})},[h]);return d(()=>{const e=i.current;if(!e)return()=>{};const t=()=>{N()},n=t=>{e.contains(t.target)||N()};return e.addEventListener("mousemove",S),e.addEventListener("mouseout",N),e.addEventListener("mouseleave",t),window.addEventListener("mousemove",n,{passive:!0}),window.addEventListener("blur",t),()=>{e.removeEventListener("mousemove",S),e.removeEventListener("mouseout",N),e.removeEventListener("mouseleave",t),window.removeEventListener("mousemove",n),window.removeEventListener("blur",t),v.current&&cancelAnimationFrame(v.current)}},[i.current,S]),u(()=>{if(!p.current)return;if(!g.current)return;if(0===y.tooltipData.length)return;const{x:e,y:t}=g.current,n=p.current.getBoundingClientRect(),a=n.width,r=n.height,o=b.current;if(o&&Math.abs(o.w-a)<1&&Math.abs(o.h-r)<1)return;b.current={w:a,h:r};const{left:i,top:l}=tl(e,t,a,r);k(e=>e&&e.left===i&&e.top===l&&"visible"===e.visibility?e:{...e||{},left:i,top:l,visibility:"visible"})},[y.tooltipData.length,y.title.text]),e("div",{"data-testid":"tooltip",className:ho(Ui.tooltip,{[Ui.flamegraphDiffTooltip]:y.tooltipData.length>1}),style:{...x,textAlign:"center"},ref:p,children:y.tooltipData.length>0&&t(n,{children:[o&&e("div",{className:Ui.tooltipName,"data-testid":"tooltip-title",children:y.title.text}),e("div",{className:Ui.functionName,"data-testid":"tooltip-function-name",children:y.title.text}),y.title.diff.text.length>0?e(al,{data:y.tooltipData,diff:y.title.diff,palette:m}):e(al,{data:y.tooltipData,palette:m}),r&&e(rl,{clickInfoSide:l})]})})}function al({data:a,diff:r,palette:o}){const i=Zi(),[l,s]=a,c="Location"!==i.location;if(!l)return null;let f;switch(l.tooltipType){case"flamegraph":f=()=>{const a=s&&function(e,t){const n=Dr(e),a=Dr(t);if(!n||!a)return"";const r=a.value-n.value;if(0===r)return"0";const o=r>0?"+":"-",i=Math.abs(r);let l;l=i>=100?i.toFixed(0):i>=10?i.toFixed(1):i.toFixed(2);const s=n.unit||a.unit;return s?`${o}${l} ${s}`:`${o}${l}`}(l.formattedValue,s.formattedValue),f=Lr(a,c),u=s&&function(e,t){const n=Gi(e),a=Gi(t);if(null==n||null==a)return"";const r=a-n;return 0===r?"0":`${r>0?"+":"-"}${Math.abs(r).toLocaleString()}`}(l.samples,s.samples),d=Lr(l.formattedValue,c),h=Lr(null==s?void 0:s.formattedValue,c),m=null==r?void 0:r.color,p=Ki(a,o),g=Ki(u,o);return t(n,{children:[s&&e("thead",{children:t("tr",{children:[e("th",{}),e("th",{children:i.baseline}),e("th",{children:i.comparison}),e("th",{children:i.diff})]})}),t("tbody",{children:[t("tr",{children:[t("td",{children:[i.tooltipUnitTitles[l.units].percent,":"]}),e("td",{children:l.percent}),s&&t(n,{children:[e("td",{children:s.percent}),e("td",{style:{textAlign:"center"},children:r&&e("span",{"data-testid":"tooltip-diff",style:{color:m},children:r.text})})]})]}),t("tr",{children:[t("td",{children:[i.tooltipUnitTitles[l.units].formattedValue,":"]}),e("td",{children:d}),s&&t(n,{children:[e("td",{children:h}),e("td",{style:{textAlign:"center"},children:f&&e("span",{"data-testid":"tooltip-time-diff",style:p?{color:p}:void 0,children:f})})]})]}),t("tr",{children:[e("td",{children:i.tooltipSamples}),e("td",{children:l.samples}),s&&t(n,{children:[e("td",{children:s.samples}),e("td",{style:{textAlign:"center"},children:u&&e("span",{"data-testid":"tooltip-samples-diff",style:g?{color:g}:void 0,children:u})})]})]})]})]})};break;case"table":f=()=>t(n,{children:[e("thead",{children:t("tr",{children:[e("td",{}),t("td",{children:[i.self," (",i.tooltipUnitTitles[l.units].total,")"]}),t("td",{children:[i.total," (",i.tooltipUnitTitles[l.units].total,")"]})]})}),e("tbody",{children:t("tr",{children:[t("td",{children:[i.tooltipUnitTitles[l.units].formattedValue,":"]}),e("td",{children:l.self}),e("td",{children:l.total})]})})]});break;default:f=()=>null}return e("table",{"data-testid":"tooltip-table",className:ho(Ui.tooltipTable,{[Ui[`${l.tooltipType}${s?"Diff":""}`]]:l.tooltipType}),style:{textAlign:"center",margin:"0 auto"},children:f()})}function rl({clickInfoSide:a}){const r=Zi();let o;switch(a){case"right":o=t(n,{children:[e(Hi,{}),e("span",{children:r.rightClickForMoreNodeOptions})]});break;case"left":o=t(n,{children:[e(Wi,{}),e("span",{children:r.clickToHighlightNode})]});break;default:o=e(n,{})}return e("div",{"data-testid":"tooltip-footer",className:Ui.clickInfo,children:o})}function ol(t){const{format:n,canvasRef:a,xyToData:r,numTicks:o,sampleRate:i,units:l,leftTicks:s,rightTicks:c,palette:u}=t,d=Zi(),h=f((e,t,a)=>{const f=$r(o,i,l),h=r(a.offsetX,a.offsetY);let m;var p;if(h.isJust)switch(m=h.value,m.format){case"single":{const t={percent:(p=m.total/o,`${Or(p)}%`),samples:"trace_samples"===l?"":Br(m.total),units:l,formattedValue:f.format(m.total,i),tooltipType:"flamegraph"};e({title:{text:m.name,diff:{text:"",color:""}},tooltipData:[t]});break}case"double":{if("single"===n)throw new Error("props format is 'single' but it has been mapped to 'double'");const t=il({formatter:f,sampleRate:i,totalLeft:m.totalLeft,leftTicks:s,totalRight:m.totalRight,rightTicks:c,title:m.name,units:l},u,d);e({title:t.title,tooltipData:t.tooltipData});break}default:throw new Error(`Unsupported format: '${m.format}'`)}else t()},[o,i,l,s,c,u,r,n,d]);return e(nl,{dataSourceRef:a,clickInfoSide:"right",setTooltipContent:h,palette:u})}function il({formatter:e,sampleRate:t,totalLeft:n,leftTicks:a,totalRight:r,rightTicks:o,title:i,units:l},s=$i,c){var f,u;const d=o>0?r/o:0,h=Or(a>0?n/a:0),m=Or(d),p={percent:`${h}%`,samples:Br(n),units:l,formattedValue:e.format(n,t),tooltipType:"flamegraph"},g={percent:`${m}%`,samples:Br(r),units:l,formattedValue:e.format(r,t),tooltipType:"flamegraph"};let v=zr(h,m);Number.isFinite(v)||(v=0);let b="";v>0?b=s.badColor.rgb().string():v<0&&(b=s.goodColor.rgb().string());let y="";return 0===n&&r>0?y=null!==(f=null==c?void 0:c.diffNew)&&void 0!==f?f:"新增":0===r&&n>0?y=null!==(u=null==c?void 0:c.diffRemoved)&&void 0!==u?u:"移除":0===v?y="0%":v>0?y=`+${v.toFixed(2)}%`:v<0&&(y=`${v.toFixed(2)}%`),{title:{text:i,diff:{text:y,color:b}},tooltipData:[p,g]}}var ll="ContextMenu-module_dummy__5n2-N";function sl(t){const[n,r]=_i({transition:!0}),[o,i]=a.useState({x:0,y:0}),{canvasRef:l}=t,[s,c]=a.useState([]),{xyToMenuItems:f,onClose:u,onOpen:d}=t;return a.useEffect(()=>{r(!1);const e=l.current;if(!e)return()=>{};const t=e=>{e.preventDefault();const t=f(e.offsetX,e.offsetY);c(t);const n=e.clientX,a=e.clientY+20;i({x:n,y:a}),r(!0),d(e.offsetX,e.offsetY)};return e.addEventListener("contextmenu",t),()=>{e.removeEventListener("contextmenu",t)}},[f]),e(xi,{...n,className:ll,anchorPoint:o,onClose:()=>{r(!1),u()},children:s})}var cl="LogoLink-module_logoLink__oWRri";function fl(){return t("a",{className:cl,href:"https://github.com/pyroscope-io/pyroscope/",target:"_blank",rel:"noreferrer",children:[t("svg",{width:"22px",height:"22px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[e("defs",{children:t("radialGradient",{cx:"49.4236252%",cy:"92.6627823%",fx:"49.4236252%",fy:"92.6627823%",r:"195.066755%",gradientTransform:"translate(0.494236,0.926628),scale(1.000000,0.735610),rotate(-90.000000),translate(-0.494236,-0.926628)",id:"radialGradient-1",children:[e("stop",{stopColor:"#FFB90C",offset:"0%"}),e("stop",{stopColor:"#F9243A",offset:"38.390924%"}),e("stop",{stopColor:"#F9243A",offset:"50.5405%"}),e("stop",{stopColor:"#B51424",offset:"73.98091%"}),e("stop",{stopColor:"#B51424",offset:"100%"})]})}),e("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:e("g",{id:"fire-part",transform:"translate(148.516736, 0.000000)",fillRule:"nonzero",children:t("g",{id:"whole-thing",transform:"translate(363.983264, 495.000000) scale(-1, 1) rotate(-180.000000) translate(-363.983264, -495.000000) translate(0.483264, 0.000000)",children:[e("g",{id:"g70",transform:"translate(-0.000091, 0.685815)",fill:"url(#radialGradient-1)",children:e("path",{d:"M65.3646667,571.739321 L65.4492471,571.698868 C19.5139147,505.999969 -5.32464048,424.477859 1.04305801,336.877516 L1.04305801,336.877516 C14.0321963,158.179446 159.192462,13.7596653 338.059844,1.5917266 L338.059844,1.5917266 C419.418369,-3.93888015 495.500283,17.3823334 558.456522,57.4611191 L558.456522,57.4611191 L481.301947,162.097965 C437.516468,136.521928 399.367671,129.590556 363.486536,130.155994 L363.486536,130.155994 C234.497143,130.155994 129.556988,235.032238 129.556988,363.946998 L129.556988,363.946998 C129.556988,492.865683 234.497143,597.738003 363.486536,597.738003 L363.486536,597.738003 C492.483783,597.738003 597.427864,492.865683 597.427864,363.946998 L597.427864,363.946998 C597.41276,304.634864 581.39383,255.677522 530.630465,199.668053 L607.770843,95.1329436 C680.936847,161.576603 726.932594,257.364176 726.932594,363.946998 L726.932594,363.946998 C726.932594,458.031616 691.13483,543.75602 632.416071,608.271816 L632.416071,608.271816 L632.416071,608.275741 L533.597728,748.122808 L428.601388,617.203806 L434.703262,646.563419 C459.453008,765.59222 433.664131,889.543925 363.49439,988.853335 L363.49439,988.853335 L65.3646667,571.723019 L65.3646667,571.739321 Z",id:"path84"})}),e("g",{id:"blue",transform:"translate(191.447039, 191.331780)",children:t("g",{id:"g88",transform:"translate(-0.000063, 0.685930)",children:[e("g",{id:"g94",transform:"translate(0.177296, 0.699054)",fill:"#3EC1D3",children:e("path",{d:"M171.862466,343.697728 C77.0961324,343.697728 -0.00497405932,266.647602 -0.00497405932,171.934957 C-0.00497405932,77.2182874 77.0961324,0.168162396 171.862466,0.168162396 C266.632828,0.168162396 343.741988,77.2182874 343.741988,171.934957 C343.741988,266.647602 266.632828,343.697728 171.862466,343.697728",id:"path96"})}),e("g",{id:"g98",transform:"translate(29.362379, 172.629585)",fill:"#FFFFFF",children:e("path",{d:"M22.8397982,0 L0.671669409,0 C0.671669409,78.2496309 64.380874,141.920035 142.678189,141.920035 L142.678189,119.765407 C76.6007327,119.765407 22.8397982,66.0372141 22.8397982,0",id:"path100"})})]})})]})})})]}),e("span",{children:"Pyroscope"})]})}const ul=()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"64 64 896 896",fill:"currentColor",children:e("path",{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z"})}),dl=()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"64 64 896 896",fill:"currentColor",children:e("path",{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"})}),hl=()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"64 64 896 896",fill:"currentColor",children:e("path",{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z"})}),ml=({fill:n})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",fill:n,children:[e("g",{id:"shape_squiggle",children:e("path",{d:"M60,38.42c-4.62,0-6.97-2.64-8.86-4.75-1.81-2.03-2.86-3.08-5.13-3.08s-3.32,1.06-5.13,3.08c-1.89,2.12-4.24,4.75-8.86,4.75s-6.97-2.64-8.87-4.75c-1.81-2.03-2.86-3.08-5.14-3.08s-3.33,1.06-5.14,3.08c-1.89,2.12-4.25,4.75-8.87,4.75-1.38,0-2.5-1.12-2.5-2.5s1.12-2.5,2.5-2.5c2.28,0,3.33-1.06,5.14-3.09,1.89-2.12,4.25-4.75,8.87-4.75s6.97,2.64,8.87,4.75c1.81,2.03,2.86,3.09,5.14,3.09s3.32-1.06,5.13-3.08c1.89-2.12,4.24-4.75,8.86-4.75s6.97,2.64,8.86,4.75c1.81,2.03,2.86,3.08,5.13,3.08,1.38,0,2.5,1.12,2.5,2.5s-1.12,2.5-2.5,2.5Z"})}),t("g",{id:"Layer_4",children:[e("rect",{x:"2",y:"8",width:"60",height:"14",rx:"3.94",ry:"3.94"}),e("path",{d:"M58.06,41h-18.64c-1.58,0-3.14,.42-4.5,1.22l-6.88,4.02c-1.87,1.09-4.19,1.09-6.06,0l-6.88-4.02c-1.37-.8-2.92-1.22-4.5-1.22H5.94c-2.18,0-3.94,1.76-3.94,3.94v7.12c0,2.18,1.76,3.94,3.94,3.94H58.06c2.18,0,3.94-1.76,3.94-3.94v-7.12c0-2.18-1.76-3.94-3.94-3.94Z"})]})]}),pl=()=>t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",children:[e("g",{id:"ab_shape",children:t("g",{children:[e("path",{d:"M16.71,41l-.42-2.45h-.16c-1.63,1.95-4.06,2.95-6.91,2.95-4.8,0-7.86-3.45-7.86-7.45,0-6.4,6.01-9.3,14.13-9.3v-.4c0-1.5-.84-3.2-4.38-3.2-2.48,0-4.9,.75-6.54,1.7l-1.42-4.75c1.69-.9,5.01-2.1,9.44-2.1,8.33,0,10.65,4.95,10.65,10.45v8.7c0,2.25,.11,4.4,.37,5.85h-6.91Zm-.95-11.7c-3.64,0-6.91,.9-6.91,4,0,2.1,1.37,3,3,3s3.22-1.05,3.74-2.6c.11-.35,.16-.8,.16-1.2v-3.2Z"}),e("path",{d:"M29.36,41c.11-1.79,.21-4.62,.21-7.25V6h7.7v13.46h.11c1.42-1.99,3.8-3.28,7.06-3.28,5.85,0,9.7,5.01,9.65,12.16,0,8.69-5.22,13.16-10.81,13.16-2.74,0-5.22-.99-6.91-3.72h-.11l-.37,3.23h-6.54Zm7.91-9.83c0,.55,.05,.99,.16,1.39,.58,1.94,2.16,3.18,4.01,3.18,3.11,0,4.9-2.53,4.9-7,0-3.92-1.58-6.8-4.9-6.8-1.85,0-3.53,1.39-3.95,3.28-.16,.4-.21,.94-.21,1.44v4.52Z"})]})}),e("g",{id:"arrows",children:e("polygon",{points:"62 54 52 45 52 51 35 51 35 57 52 57 52 63 62 54"})})]}),gl=()=>t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",children:[e("g",{id:"yz_shape",children:t("g",{children:[e("path",{d:"M22.75,13l3.43,12.39c.42,1.47,.84,3.2,1.16,4.52h.11c.32-1.32,.69-3.05,1-4.47l2.9-12.44h8.01l-5.8,17.16c-2.95,8.33-5.17,12.54-8.07,15.23-2.58,2.39-5.43,3.3-7.17,3.55l-1.85-6.3c1.11-.25,2.32-.76,3.48-1.52,1.16-.71,2.32-1.88,2.95-3.05,.26-.41,.42-.76,.42-1.12,0-.31-.05-.66-.26-1.17L14.32,13h8.43Z"}),e("path",{d:"M41.62,33.46l7.59-10.16c1.27-1.57,2.37-2.95,3.58-4.27v-.15h-10.33v-5.89h19.45l-.05,4.57-7.28,9.8c-1.21,1.57-2.48,3.15-3.69,4.42v.1h11.33v5.94h-20.61v-4.37Z"})]})}),e("g",{id:"arrows",children:e("polygon",{points:"12 51 12 45 2 54 12 63 12 57 29 57 29 51 12 51"})})]});var vl="Header-module_flamegraphHeader__nIrXP",bl="Header-module_row__P7-2L",yl="Header-module_flamegraphTitle__sjsvB";function wl(a){const{format:r,units:o,toolbarVisible:i}=a,l={objects:"number of objects in RAM per function",goroutines:"number of goroutines",bytes:"amount of RAM per function",samples:"CPU time per function",lock_nanoseconds:"time spent waiting on locks per function",lock_samples:"number of contended locks per function",trace_samples:"aggregated span duration",exceptions:"number of exceptions thrown",unknown:""},s=i&&"single"===r?e("div",{className:`${bl} ${yl}`,role:"heading","aria-level":2,children:l[o]&&t(n,{children:["Frame width represents ",l[o]]})}):null;return s?e("div",{className:vl,children:e("div",{children:s})}):null}var xl="FlamegraphBreadcrumb-module_bar__v8uhn",kl="FlamegraphBreadcrumb-module_chip__pdv1k",Nl="FlamegraphBreadcrumb-module_focusTooltip__nX30y",Sl="FlamegraphBreadcrumb-module_separator__Zj-rC",Tl="FlamegraphBreadcrumb-module_chipSeparator__S-Gld",Cl="FlamegraphBreadcrumb-module_unitLabel__bjHEA",_l="FlamegraphBreadcrumb-module_focusIcon__aJBb6",Ml="FlamegraphBreadcrumb-module_ofTotal__kk4dt",Rl="FlamegraphBreadcrumb-module_clearBtn__spimK";function Pl(a){const{totalValueText:r,totalSamplesText:o,samplesLabel:i,unitLabel:l,hasFocus:s,focusPercent:c,focusLabel:f,ofTotalPlacement:u="after",ofTotalLabel:d,clearFocusLabel:h,onClearFocus:m}=a,p=f&&f.trim().length>0?f:void 0;return t("div",{className:xl,"aria-live":"polite",children:[t("span",{className:kl,children:[e("span",{children:r}),e("span",{className:Sl,children:"|"}),t("span",{children:[o," ",i]}),t("span",{className:Cl,children:["(",l,")"]})]}),s&&void 0!==c&&t(n,{children:[e("span",{className:Tl,children:">"}),t("span",{className:`${kl} ${Nl}`,"data-tooltip":p,children:[e("span",{className:_l,"aria-hidden":"true",children:t("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[e("path",{d:"M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6-10-6-10-6Z"}),e("circle",{cx:"12",cy:"12",r:"3.2"})]})}),t(n,"before"===u?{children:[e("span",{className:Ml,children:d}),t("span",{children:[c.toFixed(2),"%"]})]}:{children:[t("span",{children:[c.toFixed(2),"%"]}),e("span",{className:Ml,children:d})]}),e("button",{type:"button",className:Rl,"aria-label":h,onClick:e=>{e.preventDefault(),e.stopPropagation(),m()},children:"×"})]})]})]})}var Fl="styles-module_flamegraphPane__ejguD",Il="styles-module_fitModeItem__0UBwN",jl="styles-module_sandwichItem__WYvnd",El="styles-module_flamegraphFrame__9ZW-z";function Bl(n){const r=a.useRef(null),i=a.useRef(null),l=c(),s=c(),u=c(0),h=c(null),m=c(null),p=c(null),g=c({rect:!1,text:!1}),v=Zi(),b=c({lastWidth:0,lastHeight:0}),y="undefined"!=typeof window&&"undefined"!=typeof OffscreenCanvas&&"transferControlToOffscreen"in HTMLCanvasElement.prototype,w=o(()=>({collapsedLevelsSingular:v.collapsedLevelsSingular,collapsedLevelsPlural:v.collapsedLevelsPlural,isZh:"Location"!==v.location}),[v.collapsedLevelsSingular,v.collapsedLevelsPlural,v.location]),x=f(e=>({name:e.name,goodColor:e.goodColor.rgb().array(),neutralColor:e.neutralColor.rgb().array(),badColor:e.badColor.rgb().array(),colors:e.colors.map(e=>e.rgb().array())}),[]),[k,S]=a.useState(N.nothing()),{flamebearer:T,focusedNode:C,fitMode:R,updateFitMode:P,highlightQuery:F,zoom:I,toolbarVisible:j,headerVisible:E=!0,disableClick:B=!1,showSingleLevel:D=!1,showCredit:L,setActiveItem:A,selectedItem:O,updateView:z,enableSandwichView:$=!0,breadcrumb:V}=n,{onZoom:H,onReset:W,isDirty:U,onFocusOnNode:Q}=n,{"data-testid":J}=n,{palette:X,setPalette:Y}=n,q=f(M(()=>{ne(),ae()},50),[]);d(()=>{if(!y)return()=>{};const e=function(){const e=import.meta.url.includes("/src/")?new URL("./flamegraphRenderWorker.ts",import.meta.url):new URL("./flamegraphRenderWorker.js",import.meta.url);return new Worker(e,{type:"module"})}();return h.current=e,console.debug("[flamegraph] render worker created"),setTimeout(()=>{ne(),ae()},0),()=>{e.terminate(),h.current=null,m.current=null,p.current=null,g.current={rect:!1,text:!1},console.debug("[flamegraph] render worker terminated")}},[y]),_(r,()=>{if(l){if(r.current){const e=r.current.clientWidth,t=r.current.clientHeight,n=b.current;if(!(Math.abs(e-n.lastWidth)>=2))return;n.lastWidth=e,n.lastHeight=t}q()}});const Z=(e,t)=>ie().xyToBar(e,t).map(e=>({left:oe().offsetLeft+e.x,top:oe().offsetTop+e.y,width:e.width})),G=f((n,a)=>{const r=U(),o=ie().xyToBar(n,a),i=o.isJust?o.value.name:"";return[t(Ii,{disabled:!r,onClick:W,children:[e(gr,{icon:No.faRedo}),v.resetView]},"reset"),(()=>{const n=o.mapOrElse(()=>!1,()=>!0),a=o.mapOrElse(()=>()=>{},e=>Q.bind(null,e.i,e.j));return t(Ii,{disabled:!n,onClick:a,children:[e(gr,{icon:Lo.faCompressAlt}),v.collapseNodesAbove]},"focus")})(),t(Ii,{onClick:()=>{navigator.clipboard&&navigator.clipboard.writeText(i)},children:[e(gr,{icon:_o.faCopy}),v.copyFunctionName]},"copy"),(()=>{const n=O.isJust&&O.value===i?v.clearHighlight:v.highlightSimilarNodes;return t(Ii,{onClick:()=>{A({name:i})},children:[e(gr,{icon:Io.faHighlighter}),n]},"highlight-similar-nodes")})(),(()=>{if(!z||!$)return null;return t(Ii,{className:jl,onClick:()=>{z("sandwich"),A({name:i})},children:[e(ml,{fill:"black"}),v.openInSandwichView]},"open-in-sandwich-view")})(),(()=>{const n=R===Jr;return t(Ii,{className:Il,onClick:()=>{P(n?Qr:Jr)},children:[e(n?gl:pl,{}),n?v.showTextTailFirst:v.showTextHeadFirst]},"fit-mode")})()].filter(Boolean)},[l,O,R,U,W,Q,A,z,v,$]),K=()=>{const e=u.current+1;if(u.current=e,console.time(`[flamegraph] constructCanvas #${e}`),r.current){const e=new fo(T,r.current,C,R,F,I,X,w);l.current=e}if(i.current){const e=new fo(T,i.current,C,R,F,I,X,w);s.current=e}console.timeEnd(`[flamegraph] constructCanvas #${e}`)},ee=f(()=>{if(!y||!h.current)return!1;const e=h.current;if(r.current&&!m.current)try{const t=r.current.transferControlToOffscreen();m.current=t,e.postMessage({type:"init",payload:{kind:"rect",canvas:t}},[t]),g.current.rect=!0}catch(e){console.debug("[flamegraph] rect transfer failed",e)}if(i.current&&!p.current)try{const t=i.current.transferControlToOffscreen();p.current=t,e.postMessage({type:"init",payload:{kind:"text",canvas:t}},[t]),g.current.text=!0}catch(e){console.debug("[flamegraph] text transfer failed",e)}return!0},[y]);a.useEffect(()=>{K(),ne(),ae()},[X,w]),a.useEffect(()=>{K(),ne(),ae()},[r.current,T,C,R,I]),a.useEffect(()=>{K(),ne(),ae()},[F]);const te=(e,t)=>{if(!y)return!1;if(!h.current)return console.debug("[flamegraph] worker not ready yet"),!0;if(!ee())return!0;const n="rect"===e?r.current:i.current,a=(null==n?void 0:n.clientWidth)||(null==n?void 0:n.width)||0,o={kind:e,flamebearer:T,focusedNode:C.isJust?C.value:null,fitMode:R,highlightQuery:F,zoom:I.isJust?I.value:null,palette:x(X),messages:w,renderRects:t.renderRects,renderText:t.renderText,width:a,devicePixelRatio:"undefined"!=typeof window&&window.devicePixelRatio||1};return h.current.postMessage({type:"render",payload:o}),!0},ne=()=>{var e,t,n;const a=u.current;te("rect",{renderText:!1})?console.debug(`[flamegraph] renderRects via worker #${a}`):(console.time(`[flamegraph] renderRects #${a}`),null===(e=null==r?void 0:r.current)||void 0===e||e.setAttribute("data-state","rendering"),null===(t=null==l?void 0:l.current)||void 0===t||t.render({renderText:!1}),null===(n=null==r?void 0:r.current)||void 0===n||n.setAttribute("data-state","rendered"),console.timeEnd(`[flamegraph] renderRects #${a}`))},ae=()=>{var e,t,n;const a=u.current;te("text",{renderRects:!1})?console.debug(`[flamegraph] renderText via worker #${a}`):(console.time(`[flamegraph] renderText #${a}`),null===(e=null==i?void 0:i.current)||void 0===e||e.setAttribute("data-state","rendering"),null===(t=null==s?void 0:s.current)||void 0===t||t.render({renderRects:!1}),null===(n=null==i?void 0:i.current)||void 0===n||n.setAttribute("data-state","rendered"),console.timeEnd(`[flamegraph] renderText #${a}`))},re=!T||T&&T.names.length<=1,oe=()=>{if(!r.current)throw new Error("Missing canvas");return r.current},ie=()=>{if(!l.current)throw new Error("Missing canvas");return l.current};return t("div",{"data-testid":"flamegraph-view",className:ho(Fl,{"vertical-orientation":"double"===T.format}),children:[t("div",{className:El,children:[V&&e(Pl,{totalValueText:V.totalValueText,totalSamplesText:V.totalSamplesText,samplesLabel:V.samplesLabel,unitLabel:V.unitLabel,hasFocus:V.hasFocus,focusPercent:V.focusPercent,focusLabel:V.focusLabel,ofTotalPlacement:V.ofTotalPlacement,ofTotalLabel:V.ofTotalLabel,clearFocusLabel:V.clearFocusLabel,onClearFocus:V.onClearFocus}),E&&e(wl,{format:T.format,units:T.units,toolbarVisible:j}),t("div",{"data-testid":J,style:{position:"relative",opacity:re&&!D?0:1},children:[e("canvas",{height:"0","data-testid":"flamegraph-canvas","data-highlightquery":F,className:ho("flamegraph-canvas",Ei),ref:r,onClick:B?void 0:e=>{const t=ie().xyToBar(e.nativeEvent.offsetX,e.nativeEvent.offsetY);t.match({Nothing:()=>{},Just:e=>{I.match({Nothing:()=>{H(t)},Just:n=>{e.i===n.i&&e.j===n.j?H(N.nothing()):H(t)}})}})}}),e("canvas",{height:"0","data-testid":"flamegraph-text-canvas",className:ho("flamegraph-text-canvas",Bi),ref:i}),l&&r&&e(Li,{barHeight:jr,canvasRef:r,zoom:I,xyToHighlightData:Z}),l&&e(zi,{barHeight:jr,node:k})]}),L?e(fl,{}):""]}),l&&e(ol,{format:T.format,canvasRef:r,xyToData:(e,t)=>ie().xyToBar(e,t),numTicks:T.numTicks,sampleRate:T.sampleRate,leftTicks:"double"===T.format?T.leftTicks:0,rightTicks:"double"===T.format?T.rightTicks:0,units:T.units,palette:X}),!B&&l&&r&&e(sl,{canvasRef:r,xyToMenuItems:G,onClose:()=>{S(N.nothing())},onOpen:(e,t)=>{S(Z(e,t))}})]})}var Dl,Ll={exports:{}};
|
|
13
13
|
/*!
|
|
14
14
|
Copyright (c) 2018 Jed Watson.
|
|
15
15
|
Licensed under the MIT License (MIT), see
|
|
16
16
|
http://jedwatson.github.io/classnames
|
|
17
|
-
*/var El,Al=(Il||(Il=1,function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=r(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var a="";for(var i in e)t.call(e,i)&&e[i]&&(a=r(a,i));return a}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(jl)),jl.exports),Dl=D(Al),Ol={};function Ll(){return El||(El=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="crosshairs",n=[],a="f05b",r="M288-16c17.7 0 32 14.3 32 32l0 18.3c98.1 14 175.7 91.6 189.7 189.7l18.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-18.3 0c-14 98.1-91.6 175.7-189.7 189.7l0 18.3c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-18.3C157.9 463.7 80.3 386.1 66.3 288L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l18.3 0C80.3 125.9 157.9 48.3 256 34.3L256 16c0-17.7 14.3-32 32-32zM131.2 288c12.7 62.7 62.1 112.1 124.8 124.8l0-12.8c0-17.7 14.3-32 32-32s32 14.3 32 32l0 12.8c62.7-12.7 112.1-62.1 124.8-124.8L432 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l12.8 0C432.1 161.3 382.7 111.9 320 99.2l0 12.8c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-12.8C193.3 111.9 143.9 161.3 131.2 224l12.8 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-12.8 0zM288 208a48 48 0 1 1 0 96 48 48 0 1 1 0-96z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,a,r]},e.faCrosshairs=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(Ol)),Ol}var Bl,zl=Ll(),$l={};function Vl(){return Bl||(Bl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="chevron-left",n=[9001],a="f053",r="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z";e.definition={prefix:"fas",iconName:t,icon:[320,512,n,a,r]},e.faChevronLeft=e.definition,e.prefix="fas",e.iconName=t,e.width=320,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}($l)),$l}var Hl,Wl=Vl(),Ul={};function Jl(){return Hl||(Hl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="chevron-right",n=[9002],a="f054",r="M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z";e.definition={prefix:"fas",iconName:t,icon:[320,512,n,a,r]},e.faChevronRight=e.definition,e.prefix="fas",e.iconName=t,e.width=320,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(Ul)),Ul}var Ql=Jl(),Xl={table:"Table-module_table__6A8SM",sortable:"Table-module_sortable__J6kyp",sortArrow:"Table-module_sortArrow__Nrncn",asc:"Table-module_asc__tJDI9",desc:"Table-module_desc__fjVRY",isRowSelected:"Table-module_isRowSelected__UhIAJ",isRowDisabled:"Table-module_isRowDisabled__sz3NJ",loadingSpinner:"Table-module_loadingSpinner__SSjMK",pagination:"Table-module_pagination__VXgcO"},Yl="Button-module_button__Ed1ge",Zl="Button-module_noIcon__Uzjvv",Kl="Button-module_noBox__mLreC",Gl="Button-module_customIcon__-slpC",ql="Button-module_iconWithText__DQRkr",es="Button-module_default__HhXlQ",ts="Button-module_outline__Flf4r",ns="Button-module_float__4marx",as="Button-module_primary__xByv0",rs="Button-module_secondary__D0K-F",is="Button-module_danger__5-vIq",os="Button-module_grouped__j8KwB";const ls=a.forwardRef(function({disabled:n=!1,kind:a="default",type:r="button",icon:i,iconNode:o,children:l,grouped:s,onClick:c,id:f,className:u,form:d,noBox:h,autoFocus:m,...p},g){return t("button",{...p,id:f,ref:g,type:r,"data-testid":p["data-testid"],disabled:n,onClick:c,form:d,autoFocus:m,"aria-label":p["aria-label"],className:Dl(Yl,s?os:"",ss(a),u,h&&Kl,o&&Gl,!i&&!o&&Zl),children:[i?e(gr,{icon:i,className:l?ql:""}):null,o,l]})});function ss(e){switch(e){case"default":return es;case"primary":return as;case"secondary":return rs;case"danger":return is;case"outline":return ts;case"float":return ns;default:throw Error(`Unsupported kind ${e}`)}}function cs({row:t}){const{cells:n,isRowSelected:a,isRowDisabled:r,className:i,onClick:o,onDoubleClick:l,onContextMenu:s,...f}=t,u=c(Math.random()).current;return e("tr",{...f,onClick:o,onDoubleClick:l,onContextMenu:s,className:ci(i,{[Xl.isRowSelected]:a,[Xl.isRowDisabled]:r}),children:n&&n.map(({style:t,value:n,...a},r)=>e("td",{style:t,...a,children:n},u+r))})}function fs({sortByDirection:a,sortBy:r,updateSortParams:i,table:o,tableBodyRef:l,className:c,isLoading:f,itemsPerPage:u}){const d=a&&r&&i,[h,m]=s(0);return f?e("div",{className:Xl.loadingSpinner}):t(n,{children:[t("table",{className:ci(Xl.table,{[c||""]:c}),"data-testid":"table-ui",children:[e("thead",{children:e("tr",{children:o.headRow.map(({sortable:t,label:n,name:l,...s},c)=>t&&"not-filled"!==o.type&&d?w("th",{...s,key:c,className:Xl.sortable,onClick:()=>i(l)},n,e("span",{className:ci(Xl.sortArrow,{[Xl[a]]:r===l})})):e("th",{...s,children:n},c))})}),e("tbody",{ref:l,children:"not-filled"===o.type?e("tr",{className:null==o?void 0:o.bodyClassName,children:e("td",{colSpan:o.headRow.length,children:o.value})}):us(o.bodyRows,h,u).map((t,n)=>{var a;return e(cs,{row:t},null!==(a=t["data-row"])&&void 0!==a?a:`row-${n}`)})})]}),e(ds,{bodyRows:"filled"===o.type?o.bodyRows:void 0,itemsPerPage:u,currPage:h,setCurrPage:m})]})}function us(e,t,n){return n?e.slice(t*n,n*(t+1)):e}function ds({itemsPerPage:n,currPage:a,setCurrPage:r,bodyRows:i}){if(!n)return null;const o=!!i&&us(i,a+1,n).length>0,l=!!i&&us(i,a-1,n).length>0;return t("nav",{className:Xl.pagination,children:[e(ls,{"aria-label":"Previous Page",disabled:!l,kind:"float",icon:Wl.faChevronLeft,onClick:()=>r(a-1)}),e(ls,{disabled:!o,"aria-label":"Next Page",kind:"float",icon:Ql.faChevronRight,onClick:()=>r(a+1)})]})}function hs({numTicks:t,sampleRate:n,units:a,tableBodyRef:r,palette:i}){const o=$r(t,n,a),l=o.format(t,n),s=Xo(),c=f((e,t,r)=>{var c;const f=null===(c=r.target.closest("tr"))||void 0===c?void 0:c.dataset.row;if(!f)return void t();const[u,d,...h]=f.split(";");switch(u){case"single":{const[t,r]=h,i=o.format(parseInt(t,10),n),s=o.format(parseInt(r,10),n),c=l.split(" "),f="<"===c[0]?c[1]:c[0],u=i.split(" "),m="<"===u[0]?u[1]:u[0],p=s.split(" "),g="<"===p[0]?p[1]:p[0];e({title:{text:d,diff:{text:"",color:""}},tooltipData:[{units:a,self:`${i}(${(parseFloat(m)/parseFloat(f)*100).toFixed(2)}%)`,total:`${s}(${(parseFloat(g)/parseFloat(f)*100).toFixed(2)}%)`,tooltipType:"table"}]});break}case"double":{const[t,r,l,c]=h,f=al({formatter:o,sampleRate:n,totalLeft:parseInt(t,10),leftTicks:parseInt(r,10),totalRight:parseInt(l,10),rightTicks:parseInt(c,10),title:d,units:a},i,s);e({title:f.title,tooltipData:f.tooltipData});break}}},[o,n,a,l,i,s]);return e(qo,{dataSourceRef:r,shouldShowTitle:!1,clickInfoSide:"left",setTooltipContent:c,palette:i})}var ms="ProfilerTable-module_tableContextMenu__7Svm8",ps="ProfilerTable-module_sandwichItem__b9Ipy";const gs=e=>e||0;function vs(e,t,n,a){const r=t;return r.type="single",r.self=gs(r.self)+e.getBarSelf(n,a),r.total=gs(r.total)+e.getBarTotal(n,a),r}function bs(e,t,n,a,r,i){const o=t;return o.type="double",o.self=gs(o.self)+e.getBarSelf(n,a),o.total=gs(o.total)+e.getBarTotal(n,a),o.selfLeft=gs(o.selfLeft)+e.getBarSelfLeft(n,a),o.selfRght=gs(o.selfRght)+e.getBarSelfRght(n,a),o.selfDiff=gs(o.selfDiff)+e.getBarSelfDiff(n,a),o.totalLeft=gs(o.totalLeft)+e.getBarTotalLeft(n,a),o.totalRght=gs(o.totalRght)+e.getBarTotalRght(n,a),o.totalDiff=gs(o.totalDiff)+e.getBarTotalDiff(n,a),o.leftTicks=r,o.rightTicks=i,o}function ys(e,t){if(!e||!e.levels)return null;const{names:n,levels:a,format:r}=e,i=_r(r);let o=null;for(let e=0;e<a.length;e++){const r=a[e];for(let a=0;a<r.length;a+=i.jStep){if(n[i.getBarName(r,a)]===t){const t=i.getBarTotal(r,a);(!o||t>o.total)&&(o={i:e,j:a,total:t})}}}return o?{i:o.i,j:o.j}:null}function ws(e,t,n){const a=148-e/t*148,r=n.alpha(1);return{backgroundImage:`linear-gradient(${r}, ${r})`,backgroundPosition:`-${a}px 0px`,backgroundRepeat:"no-repeat"}}const xs=({flamebearer:t,sortBy:n,sortByDirection:a,fitMode:r,handleTableItemClick:i,highlightQuery:o,palette:l,selectedItem:s,messages:c,onRowContextMenu:f,onRowDoubleClick:u})=>{const{numTicks:d,maxSelf:h,sampleRate:m,spyName:p,units:g}=t,v=function(e){if(!e)return[];const{names:t,levels:n,format:a}=e,r="double"!==a?Cr:Tr,i=new Map;for(let o=0;o<n.length;o++){const l=n[o];for(let n=0;n<l.length;n+=r.jStep){const o=t[r.getBarName(l,n)];i.has(o)||i.set(o,{name:o||"<empty>",self:0,total:0});const s=i.get(o);if(!s)break;"single"===a?vs(Cr,s,l,n):bs(Tr,s,l,n,e.leftTicks,e.rightTicks)}}return Array.from(i.values())}(t).sort((e,t)=>t.total-e.total),b="asc"===a?1:-1;let y;if("name"===n)y=v.sort((e,t)=>b*e[n].localeCompare(t[n]));else switch(n){case"total":case"self":y=v.sort((e,t)=>b*(e[n]-t[n]));break;case"baseline":y=v.sort((e,t)=>b*(e.totalLeft/e.leftTicks-t.totalLeft/t.leftTicks));break;case"comparison":y=v.sort((e,t)=>b*(e.totalRght/e.rightTicks-t.totalRght/t.rightTicks));break;case"diff":y=v.sort((e,t)=>{const n=zr(Br(e.totalLeft/e.leftTicks),Br(e.totalRght/e.rightTicks)),a=zr(Br(t.totalLeft/t.leftTicks),Br(t.totalRght/t.rightTicks));return b*(n-a)});break;default:y=v}const w=$r(d,m,g),x=e=>!!s.isJust&&e===s.value,k=t=>{return e("button",{className:"table-item-button",children:e("div",{className:"symbol-name",style:(n=r,n===Jr?{direction:"rtl",overflow:"hidden",textOverflow:"ellipsis"}:{overflow:"hidden",textOverflow:"ellipsis"}),children:e("bdi",{dir:"ltr",children:t.name})})});var n},N=y.filter(e=>{return!o||(t=o,e.name.toLowerCase().includes(t.toLowerCase()));var t}).map(e=>{if("double"===e.type)return(e=>{const t=Br(e.leftTicks>0?e.totalLeft/e.leftTicks:0),n=Br(e.rightTicks>0?e.totalRght/e.rightTicks:0);let a=zr(t,n);Number.isFinite(a)||(a=0);let r="";a>0?r=l.badColor.rgb().string():a<0&&(r=l.goodColor.rgb().string());let o="";return 0===e.totalLeft&&e.totalRght>0?o=c.diffNew:0===e.totalRght&&e.totalLeft>0?o=c.diffRemoved:0===a?o="0%":a>0?o=`+${a.toFixed(2)}%`:a<0&&(o=`${a.toFixed(2)}%`),{"data-row":`${e.type};${e.name};${e.totalLeft};${e.leftTicks};${e.totalRght};${e.rightTicks}`,isRowSelected:x(e.name),onClick:()=>i(e),onContextMenu:t=>f(t,e.name),onDoubleClick:()=>u(e.name),cells:[{value:k(e)},{value:`${t} %`},{value:`${n} %`},{value:o,style:{color:r}}]}})(e);const t=Kr(p,e.name);return((e,t)=>({"data-row":`${e.type};${e.name};${e.self};${e.total}`,isRowSelected:x(e.name),onClick:()=>i(e),onContextMenu:t=>f(t,e.name),onDoubleClick:()=>u(e.name),cells:[{value:k(e)},{value:w.format(e.self,m),style:ws(e.self,h,t)},{value:w.format(e.total,m),style:ws(e.total,d,t)}]}))(e,Gr(l,t))});return N.length>0?{bodyRows:N,type:"filled"}:{value:e("div",{className:"unsupported-format",children:c.noItemsFound}),type:"not-filled"}};function ks({tableBodyRef:r,flamebearer:i,isDoubles:o,fitMode:l,handleTableItemClick:c,highlightQuery:u,selectedItem:d,palette:h,onFocusOnNode:m,updateView:p,enableSandwichView:g=!0}){const v=Xo(),[b,y]=So({transition:!0}),[w,x]=s({x:0,y:0}),[k,N]=s(null),S=f(e=>{if(d.isJust&&d.value===e||c({name:e}),!m)return;const t=ys(i,e);t&&m(t.i,t.j)},[i,m,d,c]),C=f((e,t)=>{e.preventDefault(),x({x:e.clientX,y:e.clientY}),N(t),y(!0)},[y]),T=f(()=>{y(!1),N(null)},[y]),_=f(()=>{if(!k||!m)return;const e=ys(i,k);e&&m(e.i,e.j),T()},[k,i,m,T]),M=f(()=>{k&&navigator.clipboard&&(navigator.clipboard.writeText(k),T())},[k,T]),P=f(()=>{k&&(c({name:k}),T())},[k,c,T]),F=f(()=>{k&&p&&(p("sandwich"),c({name:k}),T())},[k,p,c,T]),R=a.useMemo(()=>o?[{sortable:1,name:"name",label:v.location},{sortable:1,name:"baseline",label:v.baseline,default:!0},{sortable:1,name:"comparison",label:v.comparison},{sortable:1,name:"diff",label:v.diff}]:[{sortable:1,name:"name",label:v.location},{sortable:1,name:"self",label:v.self,default:!0},{sortable:1,name:"total",label:v.total}],[v,o]),I=(e=>{const t=e.filter(e=>null==e?void 0:e.default)[0]||e[0],[n,a]=s(t.name),[r,i]=s("desc");return{sortBy:n,sortByDirection:r,updateSortParams:e=>{let t=r;t=n===e?"asc"===t?"desc":"asc":"desc",a(e),i(t)}}})(R),j={headRow:R,...xs({flamebearer:i,sortBy:I.sortBy,sortByDirection:I.sortByDirection,fitMode:l,handleTableItemClick:c,highlightQuery:u,palette:h,selectedItem:d,messages:v,onRowContextMenu:C,onRowDoubleClick:S})},E=d.isJust&&d.value===k;return t(n,{children:[e(fs,{...I,tableBodyRef:r,table:j,className:Dl("flamegraph-table",{"flamegraph-table-doubles":o})}),t(bo,{...b,anchorPoint:w,onClose:T,className:ms,children:[m&&t(Po,{onClick:_,children:[e(gr,{icon:zl.faCrosshairs}),v.focusOnThisFunction]}),t(Po,{onClick:M,children:[e(gr,{icon:Ni.faCopy}),v.copyFunctionName]}),t(Po,{onClick:P,children:[e(gr,{icon:Mi.faHighlighter}),E?v.clearHighlight:v.highlightSimilarNodes]}),p&&g&&t(Po,{onClick:F,className:ps,children:[e(ul,{fill:"currentColor"}),v.openInSandwichView]})]})]})}const Ns=a.memo(function({flamebearer:n,fitMode:a,handleTableItemClick:r,highlightQuery:i,palette:o,selectedItem:l,onFocusOnNode:f,updateView:u,enableSandwichView:h}){const m=c(null),p=c(null),[g,v]=s(0),b="double"===n.format;return d(()=>{const e=m.current;if(!e)return;const t=e.offsetWidth-e.clientWidth;Number.isFinite(t)&&t!==g&&v(t)},[m.current,b,g]),t("div",{"data-testid":"table-view",ref:p,style:{"--kylin-flamegraph-scrollbar-size":`${g}px`},className:b?"flamegraph-table-wrapper flamegraph-table-wrapper--double":"flamegraph-table-wrapper",children:[e("div",{className:"flamegraph-table-scroll",children:e(ks,{tableBodyRef:m,flamebearer:n,isDoubles:b,fitMode:a,highlightQuery:i,handleTableItemClick:r,palette:o,selectedItem:l,onFocusOnNode:f,updateView:u,enableSandwichView:h})}),e(hs,{tableBodyRef:m,numTicks:n.numTicks,sampleRate:n.sampleRate,units:n.units,palette:o})]})});var Ss,Cs,Ts={},_s={};function Ms(){return Ss||(Ss=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="arrow-rotate-left",n=[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],a="f0e2",r="M256 64c-56.8 0-107.9 24.7-143.1 64l47.1 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 192c-17.7 0-32-14.3-32-32L0 32C0 14.3 14.3 0 32 0S64 14.3 64 32l0 54.7C110.9 33.6 179.5 0 256 0 397.4 0 512 114.6 512 256S397.4 512 256 512c-87 0-163.9-43.4-210.1-109.7-10.1-14.5-6.6-34.4 7.9-44.6s34.4-6.6 44.6 7.9c34.8 49.8 92.4 82.3 157.6 82.3 106 0 192-86 192-192S362 64 256 64z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,a,r]},e.faArrowRotateLeft=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(_s)),_s}function Ps(){return Cs||(Cs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Ms();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faUndo=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(Ts)),Ts}var Fs,Rs,Is=Ps(),js={},Es={};function As(){return Fs||(Fs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="diagram-project",n=["project-diagram"],a="f542",r="M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 16 128 0 0-16c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-16-128 0 0 16c0 7.3-1.7 14.3-4.6 20.5l68.6 91.5 80 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-7.3 1.7-14.3 4.6-20.5L128 224 48 224c-26.5 0-48-21.5-48-48L0 80z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,a,r]},e.faDiagramProject=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(Es)),Es}function Ds(){return Rs||(Rs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=As();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faProjectDiagram=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(js)),js}var Os,Ls,Bs=Ds(),zs={},$s={};function Vs(){return Os||(Os=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="ellipsis-vertical",n=["ellipsis-v"],a="f142",r="M64 144a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0 224c30.9 0 56 25.1 56 56s-25.1 56-56 56-56-25.1-56-56 25.1-56 56-56zm56-112c0 30.9-25.1 56-56 56s-56-25.1-56-56 25.1-56 56-56 56 25.1 56 56z";e.definition={prefix:"fas",iconName:t,icon:[128,512,n,a,r]},e.faEllipsisVertical=e.definition,e.prefix="fas",e.iconName=t,e.width=128,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}($s)),$s}function Hs(){return Ls||(Ls=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Vs();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faEllipsisV=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(zs)),zs}var Ws=Hs();function Us(e){if(null!=e&&!1!==e){if("string"==typeof e||"number"==typeof e)return String(e);if(Array.isArray(e)){const t=e.map(e=>Us(e)).filter(e=>!!e);return t.length?t.join(" "):void 0}return a.isValidElement(e)?Us(e.props.children):void 0}}const Js=({placement:t,title:a,content:r,children:i})=>{const o=Us(null!=a?a:r);return o?e("span",{title:o,children:i}):e(n,{children:i})};var Qs,Xs={};function Ys(){return Qs||(Qs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="link",n=[128279,"chain"],a="f0c1",r="M419.5 96c-16.6 0-32.7 4.5-46.8 12.7-15.8-16-34.2-29.4-54.5-39.5 28.2-24 64.1-37.2 101.3-37.2 86.4 0 156.5 70 156.5 156.5 0 41.5-16.5 81.3-45.8 110.6l-71.1 71.1c-29.3 29.3-69.1 45.8-110.6 45.8-86.4 0-156.5-70-156.5-156.5 0-1.5 0-3 .1-4.5 .5-17.7 15.2-31.6 32.9-31.1s31.6 15.2 31.1 32.9c0 .9 0 1.8 0 2.6 0 51.1 41.4 92.5 92.5 92.5 24.5 0 48-9.7 65.4-27.1l71.1-71.1c17.3-17.3 27.1-40.9 27.1-65.4 0-51.1-41.4-92.5-92.5-92.5zM275.2 173.3c-1.9-.8-3.8-1.9-5.5-3.1-12.6-6.5-27-10.2-42.1-10.2-24.5 0-48 9.7-65.4 27.1L91.1 258.2c-17.3 17.3-27.1 40.9-27.1 65.4 0 51.1 41.4 92.5 92.5 92.5 16.5 0 32.6-4.4 46.7-12.6 15.8 16 34.2 29.4 54.6 39.5-28.2 23.9-64 37.2-101.3 37.2-86.4 0-156.5-70-156.5-156.5 0-41.5 16.5-81.3 45.8-110.6l71.1-71.1c29.3-29.3 69.1-45.8 110.6-45.8 86.6 0 156.5 70.6 156.5 156.9 0 1.3 0 2.6 0 3.9-.4 17.7-15.1 31.6-32.8 31.2s-31.6-15.1-31.2-32.8c0-.8 0-1.5 0-2.3 0-33.7-18-63.3-44.8-79.6z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,a,r]},e.faLink=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(Xs)),Xs}var Zs=Ys(),Ks="Input-module_input__ulQdV";const Gs=a.forwardRef(({testId:t,className:n,type:a,name:r,placeholder:i,minLength:o=0,debounceTimeout:l=100,onChange:s,value:c,htmlId:f},u)=>e(I,{inputRef:u,"data-testid":t,className:`${Ks} ${n||""}`,type:a,name:r,placeholder:i,minLength:o,debounceTimeout:l,onChange:s,value:c,id:f}));var qs="SharedQueryInput-module_wrapper__XRxrd",ec="SharedQueryInput-module_search__XlzRv",tc="SharedQueryInput-module_search-synced__J4T4b",nc="SharedQueryInput-module_searchWithSync__ryuQa",ac="SharedQueryInput-module_icon__Aq0Hv",rc="SharedQueryInput-module_checked__oRvod",ic="SharedQueryInput-module_sync__0IO2N",oc="SharedQueryInput-module_syncSelected__hstBI";const lc=({onHighlightChange:n,highlightQuery:a,sharedQuery:r,width:o})=>{const l=Xo(),s=(e=>{const t=c();return d(()=>{t.current=e},[e]),t.current})(null==r?void 0:r.syncEnabled);d(()=>{"string"==typeof(null==r?void 0:r.searchQuery)&&(r.syncEnabled&&n(r.searchQuery),!r.syncEnabled&&s&&s!==(null==r?void 0:r.id)&&n(""))},[null==r?void 0:r.searchQuery,null==r?void 0:r.syncEnabled]);const f=i(()=>r&&r.syncEnabled?r.searchQuery||"":a,[r,a]),u=i(()=>`${r?nc:ec} ${(null==r?void 0:r.syncEnabled)?tc:""}`,[r]),h=(null==r?void 0:r.syncEnabled)?l.unsyncSearchBars:l.syncSearchBars;return t("div",{className:qs,style:{width:o},children:[e(Gs,{testId:"flamegraph-search",className:u,type:"search",name:"flamegraph-search",placeholder:l.searchPlaceholder,minLength:1,debounceTimeout:100,onChange:e=>{n(e.target.value),r&&r.syncEnabled&&r.onQueryChange(e.target.value)},value:f}),r?e(Js,{placement:"top",title:h,children:e("button",{className:r.syncEnabled?oc:ic,onClick:()=>{const e=!(null==r?void 0:r.syncEnabled)&&(null==r?void 0:r.id);null==r||r.toggleSync(e),e?null==r||r.onQueryChange(a):(n(a),null==r||r.onQueryChange(""))},children:e(gr,{className:`${r.syncEnabled?rc:ac}`,icon:Zs.faLink})})}):null]})};var sc="DiffLegend-module_flamegraph-legend__Cywr1",cc="DiffLegend-module_flamegraph-legend-list__swdXj",fc="DiffLegend-module_flamegraph-legend-item__0P-6g";function uc(n){const{palette:a,showMode:r}=n,i=function(e){switch(e){case"large":return[-100,-80,-60,-40,-20,-10,0,10,20,40,60,80,100];case"small":return[-100,-40,-20,0,20,40,100];default:throw new Error(`Unsupported ${e}`)}}(r),o=qr(a);return e("div",{"data-testid":"flamegraph-legend",className:`${sc} ${cc}`,children:i.map(e=>t("div",{className:fc,style:{backgroundColor:o(e).rgb().toString()},children:[e>0?"+":"",e,"%"]},e))})}function dc(){return e("svg",{version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"12px",height:"12px",viewBox:"0 0 405.272 405.272",children:e("g",{children:e("path",{d:"M393.401,124.425L179.603,338.208c-15.832,15.835-41.514,15.835-57.361,0L11.878,227.836\n\n\t\tc-15.838-15.835-15.838-41.52,0-57.358c15.841-15.841,41.521-15.841,57.355-0.006l81.698,81.699L336.037,67.064\n\n\t\tc15.841-15.841,41.523-15.829,57.358,0C409.23,82.902,409.23,108.578,393.401,124.425z"})})})}var hc="Dropdown-module_dropdownMenu__tbN8r",mc="Dropdown-module_dropdownMenuButton__Xy8M4";function pc({id:n,children:a,className:r,disabled:i,value:o,label:l,onItemClick:s,overflow:c,position:f,direction:u,align:d,viewScroll:h,arrow:m,menuButtonClassName:p="",ariaLabel:g,portal:v,...b}){const y=b.menuButton||e(vc,{"aria-label":g,className:`${mc} ${p}`,disabled:i,type:"button",children:o||l});return t(To,{id:n,"aria-label":g,className:Dl(r,hc),"data-testid":b["data-testid"],onItemClick:s,overflow:c,position:f,direction:u,align:d,viewScroll:h,arrow:m,menuButton:y,portal:v,children:[e(Fo,{children:l}),a]})}const gc=Po,vc=oo;var bc="DiffLegendPaletteDropdown-module_container__h8Tts",yc="DiffLegendPaletteDropdown-module_triggerButton__oezA6",wc="DiffLegendPaletteDropdown-module_dropdownArrow__-Lu0w",xc="DiffLegendPaletteDropdown-module_menuItem__5iWry",kc="DiffLegendPaletteDropdown-module_menuItemText__a-tt0";const Nc=[Lo,Bo],Sc=n=>{const{palette:a=Lo,onChange:r}=n,i=Xo(),o=e=>"Default"===e.name?i.paletteDefaultName:"Color Blind"===e.name?i.paletteColorBlindName:e.name,l=e=>"Default"===e.name?i.paletteDefaultDesc:"Color Blind"===e.name?i.paletteColorBlindDesc:"";return e("div",{className:bc,children:e(pc,{label:i.diffLegendSelectPalette,align:"end",menuButton:t(vc,{className:Dl(mc,yc),children:[e(uc,{palette:a,showMode:"small"}),e("span",{className:wc})]}),onItemClick:e=>{e.value&&r(e.value)},children:Nc.map(n=>e(gc,{value:n,children:t("div",{className:xc,children:[t("span",{className:kc,children:[o(n)," ",l(n)]}),n.name===a.name&&e(dc,{})]})},n.name))})})};var Cc={navbar:"Toolbar-module_navbar__XN6xZ",searchWrapper:"Toolbar-module_searchWrapper__k--ua",rightSection:"Toolbar-module_rightSection__if7LO",viewType:"Toolbar-module_viewType__AKARg",toggleViewButton:"Toolbar-module_toggleViewButton__OQ9-U",fitModeButton:"Toolbar-module_fitModeButton__jOxve",selected:"Toolbar-module_selected__vwBQt",collapseNodeButton:"Toolbar-module_collapseNodeButton__bLdiw",resetViewButton:"Toolbar-module_resetViewButton__y2ebV",divider:"Toolbar-module_divider__dG6pE",itemsContainer:"Toolbar-module_itemsContainer__gSTMF",item:"Toolbar-module_item__o-hKc",moreButton:"Toolbar-module_moreButton__rhOdT",active:"Toolbar-module_active__36Kt-",navbarCollapsedItems:"Toolbar-module_navbarCollapsedItems__vojhw"};const Tc=$.bind(Cc),_c=(e,t,n)=>{const a=0===t?e-360-5:e-360-16-5;let r=0,i=0;return n.reverse().forEach(e=>{i+=e,a<=i&&(r+=1)}),r},Mc=()=>e("div",{className:Cc.divider}),Pc=y(({view:a,handleSearchChange:r,highlightQuery:i,isFlamegraphDirty:o,reset:l,updateFitMode:f,fitMode:d,updateView:h,selectedNode:m,onFocusOnSubtree:p,flamegraphType:g,enableChangingDisplay:v=!0,sharedQuery:b,ExportData:y,palette:w,setPalette:k})=>{const N=c(null),S=Xo(),C="double"===g&&w&&k,T=[{el:t(n,{children:[e(Ic,{fitMode:d,updateFitMode:f}),e(Mc,{})]}),width:93},{el:e(Rc,{isFlamegraphDirty:o,reset:l}),width:44},{el:t(n,{children:[e(Fc,{selectedNode:m,onFocusOnSubtree:p}),e(Mc,{})]}),width:49},v?{el:e(Ec,{flamegraphType:g,view:a,updateView:h}),width:44*("single"===g?5:3)}:null,x(y)?{el:t(n,{children:[e(Mc,{}),y]}),width:49}:null].filter(e=>null!==e),M=T.reduce((e,t)=>[...e,t.width],[]),{isCollapsed:P,collapsedItemsNumber:F,handleMoreClick:R}=((e,t)=>{const[n,a]=s(!0),[r,i]=s(0);return u(()=>{if(e.current){const{width:n}=e.current.getBoundingClientRect(),a=_c(n,r,t);i(a)}},[e.current,t]),_(e,e=>{const{width:n}=e.target.getBoundingClientRect(),o=_c(n,r,t);i(o),a(!0)}),{isCollapsed:n,handleMoreClick:()=>{a(e=>!e)},collapsedItemsNumber:r}})(N,M),I=T.reduce((e,t,n)=>(n<F?e.hidden.push(t):e.visible.push(t),e),{visible:[],hidden:[]});return e("div",{role:"toolbar",ref:N,children:t("div",{className:Cc.navbar,children:[e("div",{className:Cc.searchWrapper,children:e(lc,{width:360,onHighlightChange:r,highlightQuery:i,sharedQuery:b})}),t("div",{className:Cc.rightSection,children:[C&&t(n,{children:[e(Sc,{palette:w,onChange:k}),e(Mc,{})]}),t("div",{className:Cc.itemsContainer,children:[I.visible.map((t,n)=>e("div",{className:Cc.item,style:{width:t.width},children:t.el},n)),0!==F&&e(Js,{placement:"top",title:S.more,children:e("button",{onClick:R,className:Tc({[Cc.moreButton]:!0,[Cc.active]:!P}),children:e(gr,{icon:Ws.faEllipsisV})})})]})]}),!P&&e("div",{className:Cc.navbarCollapsedItems,children:I.hidden.map((t,n)=>e("div",{className:Cc.item,style:{width:t.width},children:t.el},n))})]})})});function Fc({onFocusOnSubtree:t,selectedNode:n}){const a=Xo(),r=n.mapOr(()=>{},e=>()=>t(e.i,e.j));return e(Js,{placement:"top",title:a.collapseNodesAbove,children:e("div",{children:e(ls,{disabled:!n.isJust,onClick:r,className:Cc.collapseNodeButton,"aria-label":a.collapseNodesAbove,children:e(gr,{icon:ji.faCompressAlt})})})})}function Rc({isFlamegraphDirty:t,reset:n}){const a=Xo();return e(Js,{placement:"top",title:a.resetView,children:e("span",{children:e(ls,{id:"reset",disabled:!t,onClick:n,className:Cc.resetViewButton,"aria-label":a.resetView,children:e(gr,{icon:Is.faUndo})})})})}function Ic({fitMode:a,updateFitMode:r}){const i=Xo(),o=e=>a===e;return t(n,{children:[e(Js,{placement:"top",title:i.headFirst,children:e(ls,{onClick:()=>r("HEAD"),className:Tc({[Cc.fitModeButton]:!0,[Cc.selected]:o("HEAD")}),children:e(dl,{})})}),e(Js,{placement:"top",title:i.tailFirst,children:e(ls,{onClick:()=>r("TAIL"),className:Tc({[Cc.fitModeButton]:!0,[Cc.selected]:o("TAIL")}),children:e(hl,{})})})]})}const jc=(t,n)=>"single"===t?[{label:n.viewTable,value:"table",Icon:sl},{label:n.viewTableAndFlamegraph,value:"both",Icon:cl},{label:n.viewFlamegraph,value:"flamegraph",Icon:fl},{label:n.viewSandwich,value:"sandwich",Icon:ul},{label:n.viewGraphviz,value:"graphviz",Icon:()=>e(gr,{icon:Bs.faProjectDiagram})}]:[{label:n.viewTable,value:"table",Icon:sl},{label:n.viewTableAndFlamegraph,value:"both",Icon:cl},{label:n.viewFlamegraph,value:"flamegraph",Icon:fl}];function Ec({view:t,updateView:n,flamegraphType:a}){const r=Xo(),i=jc(a,r);return e("div",{className:Cc.viewType,children:i.map(({label:a,value:r,Icon:i})=>e(Js,{placement:"top",title:a,children:e(ls,{"data-testid":r,onClick:()=>n(r),className:Tc({[Cc.toggleViewButton]:!0,selected:t===r}),children:e(i,{})})},r))})}function Ac(e,t){const n={},a={};let r={name:"total",children:[],self:[],total:[],key:"/total"};return(t?[e,t]:[e]).forEach((e,t)=>{var i,o;for(let l=0;l<e.levels.length;l+=1)for(let s=0;s<e.levels[l].length;s+=4){const c=[t,l,s].join("/"),f=e.names[e.levels[l][s+3]],u=e.levels[l][s+0],d=e.levels[l][s+1],h=e.levels[l][s+2];let m="";if(0!==l){const n=l-1,r=e.levels[n];for(let e=0;e<r.length;e+=4){const i=r[e+0],o=r[e+1];if(u>=i&&u<i+o){const r=[t,n,e].join("/");m=a[r].key;break}}}const p=[m||"",f].join("/"),g=!n[p];n[p]||(n[p]={name:f,children:[],self:[],total:[],key:p});const v=n[p];(i=v.total)[t]||(i[t]=0),v.total[t]+=d,(o=v.self)[t]||(o[t]=0),v.self[t]+=h,a[c]=v,m&&g&&n[m].children.push(v),0===l&&(r=v)}}),r}const Dc=e=>{const t={maxSelf:100,names:[],levels:[]},n=(e,a,r)=>{var i;const{name:o,children:l,self:s,total:c,offset:f}=e;t.names.push(o),(i=t.levels)[a]||(i[a]=[]),t.maxSelf=Math.max(t.maxSelf,s[0]||0),t.levels[a]=t.levels[a].concat([r,c[0]||0,s[0]||0,t.names.length-1]);for(let e=0;e<l.length;e+=1){r+=n(l[e],a+1,r)}return f||c[0]||0};return n(e,0,0),t};function Oc(e){const t=new Map;for(let n=0;n<e.children.length;n+=1)t.has(e.children[n].name)||t.set(e.children[n].name,e.children[n]);for(let n=0;n<e.children.length;n+=1){const a=e.children[n],r=t.get(e.children[n].name);r&&r!==a&&(r.total[0]+=a.total[0],r.self[0]+=a.self[0],r.children=r.children.concat(a.children))}e.children=Array.from(t.values());for(let t=0;t<e.children.length;t+=1)Oc(e.children[t])}function Lc(e,t){const n=function(e,t){const n=Ac(e),a={format:"single",numTicks:0,maxSelf:100,sampleRate:100,names:[],levels:[],units:e.units,spyName:e.spyName},r={name:t,total:[],self:[0],children:[]},i=e=>{e.name===t&&(a.numTicks+=e.total[0],r.total=[a.numTicks],r.children=r.children.concat(e.children));for(let t=0;t<e.children.length;t+=1)i(e.children[t])};return i(n),Oc(r),{...a,...Dc(r)}}(JSON.parse(JSON.stringify(e)),t);return n}function Bc(e,t){const n=function(e,t){const n=Ac(e),a={format:"single",maxSelf:100,sampleRate:100,numTicks:0,names:[],levels:[],units:e.units,spyName:e.spyName},r=[],i=[],o={name:t,total:[0],self:[0],children:[]},l=(e,n=[])=>{const o=n.concat([{...e,children:[]}]);e.name===t&&(i.push(o),r.push(e.total[0]),a.numTicks+=e.total[0]);for(let t=0;t<e.children.length;t+=1)l(e.children[t],o)};l(n),i.forEach((e,t)=>{o.children.push(((e,t)=>{const n={};let a=n;return e.forEach(({name:e,...n})=>{const r={name:e,...n,total:[t]};a.children=[r],a=r}),n.children[0]})(e.reverse(),r[t]))}),Oc(o);const s=Dc(o);return s.levels=s.levels.reverse().slice(0,-1),{...a,...s}}(JSON.parse(JSON.stringify(e)),t);return n}var zc={flamegraphContainer:"FlamegraphRenderer-module_flamegraphContainer__-7FRV",createdBy:"FlamegraphRenderer-module_createdBy__rHAOT",horizontal:"FlamegraphRenderer-module_horizontal__zs7--",vertical:"FlamegraphRenderer-module_vertical__fRcHg",panesWrapper:"FlamegraphRenderer-module_panesWrapper__L-mlA",tablePane:"FlamegraphRenderer-module_tablePane__Gin7Y",sandwichPane:"FlamegraphRenderer-module_sandwichPane__IEOyR",sandwichPaneInfo:"FlamegraphRenderer-module_sandwichPaneInfo__5hT4a",arrow:"FlamegraphRenderer-module_arrow__dPzpE",sandwichTop:"FlamegraphRenderer-module_sandwichTop__7N0ZY",sandwichBottom:"FlamegraphRenderer-module_sandwichBottom__Dc64g",name:"FlamegraphRenderer-module_name__XRbN9"};function $c(e){const t=[];return Object.keys(e).forEach(n=>{var a;t.push(`${n}="${a=String(e[n]||""),a.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`)}),`[${t.join(" ")}]`}function Vc(e,t){return`${(100*e/t).toFixed(2)}%`}function Hc(e,t){let n,a,r,i;t?(n=.1,a=.93):(n=1,a=.7),e=Math.max(-1,Math.min(1,e)),Math.abs(e)<.2&&(n*=Math.abs(e)/.2),e>0&&(e**=1-.7),e<0&&(e=-((-e)**(1-.7))),e<0?(i=a,r=a*(1+n*e)):(r=a,i=a*(1-n*e));const o=a*(1-n);return`#${Math.floor(255*r).toString(16).padStart(2,"0")}${Math.floor(255*i).toString(16).padStart(2,"0")}${Math.floor(255*o).toString(16).padStart(2,"0")}`}function Wc(e,t,n,a){const{self:r}=t,{total:i}=t,o=t.name.replace(/"/g,'\\"'),l=e(r),s=8+Math.ceil(16*Math.sqrt(r/n)),c=Hc(i/a,!1),f=Hc(i/a,!0),u=function(e,t,n,a,r){let i="";i=`${function(e){return e.replace(/.*\//,"")}(t)}\n`;const o=e(n);0!==n?i=`${i+o} (${Vc(n,r)})`:i+="0";let l=o;a!==n&&(i+=0!==n?"\n":" ",l=e(a),i=`${i}of ${l} (${Vc(a,r)})`);return i}(e,o,r,i,a),d={label:u,id:`node${t.index}`,fontsize:s,shape:"box",tooltip:`${o} (${l})`,color:c,fontcolor:"#000000",style:"filled",fontname:"",fillcolor:f};return`N${t.index} ${$c(d)}`}function Uc(e){if("double"===e.metadata.format)return"diff flamegraphs are not supported";const t=Ac(e.flamebearer),n=[],a=[];const[r,i,,o]=function e(t,n,a,r,i){return t.children.forEach(t=>{const[o,l]=e(t,n,a,r,i);n=Math.max(n,o),a=Math.max(a,l)}),n=Math.max(n,t.self[0]),a=Math.max(a,t.total[0]),r+=t.self[0],i+=t.total[0],[n,a,r,i]}(t,0,0,0,0),{sampleRate:l,units:s}=e.metadata,c=$r(i,l,s),f=e=>c.format(e,l,!0);let u={};const d={};let h=0;function m(e,t){return-1===t.indexOf(e.name)&&(u[e.name]?(u[e.name].self+=e.self[0],u[e.name].total+=e.total[0]):(h+=1,u[e.name]={index:h,name:e.name,self:e.self[0],total:e.total[0],parents:[],children:[]})),e.children.forEach(n=>{const a=m(n,t.concat([e.name])),r=`${e.name}/${n.name}`;n.name!==e.name&&(d[r]?d[r].weight+=n.total[0]:d[r]={from:u[e.name],to:a,weight:n.total[0],residual:!1},a.parents.push(d[r]),u[e.name].children.push(d[r]))}),u[e.name]}t.children.forEach(e=>{m(e,[])});const p=.005*o,g=.001*o;function v(e,t){let n=0,a=t;if(e.forEach(e=>{e.weight>0&&(a+=Math.abs(e.weight))}),0!==a&&(e.forEach(e=>{const t=Math.abs(e.weight)/a;n+=-t*Math.log2(t)}),t>0)){const e=Math.abs(t)/a;n+=-e*Math.log2(e)}return n}Object.keys(u).forEach(e=>{u[e].total<p&&delete u[e]});const b={};Object.keys(u).forEach(e=>{b[u[e].name]=function(e){let t=0;return 0===e.parents.length?t+=1:t+=v(e.parents,0),0===e.children.length?t+=1:t+=v(e.children,e.self),t*e.total+e.self}(u[e])});const y=Object.values(u).sort((e,t)=>{const n=b[e.name],a=b[t.name];return n!==a?a-n:e.name!==t.name?e.name<t.name?-1:1:e.self!==t.self?a-n:e.name<t.name?-1:1}),w={};function x(e){const[t,n]=[e.from,e.to],a={},r=[n];for(;r.length>0;){const n=r.shift();for(let i=0;i<n.parents.length;i+=1){const o=n.parents[i];if(e!==o&&!a[o.from.name]){if(o.from===t)return!0;a[o.from.name]=!0,r.push(o.from)}}}return!1}return y.forEach(e=>{w[e.name]=e}),y.slice(80).forEach(e=>{delete w[e.name]}),function e(t,n){const a=!w[t.name];t.children.forEach(r=>{const i=!w[r.name];if(e(r,a?n:t),!i&&n&&a){const e=`${n.name}/${r.name}`;d[e]||(d[e]={from:u[n.name],to:u[r.name],weight:0,residual:!0}),d[e].weight+=r.total[0],d[e].residual=!0}})}(t,null),u=w,y.reverse().forEach(e=>{const t=e.parents.sort((e,t)=>t.weight-e.weight),n=[];for(let e=0;e<t.length;e+=1){const a=t[e];if(!a.residual)break;x(a)&&(n.push(a),delete d[`${a.from.name}/${a.to.name}`])}n.forEach(e=>{e.from.children=e.from.children.filter(t=>t.to!==e.to),e.to.parents=e.to.parents.filter(t=>t.from!==e.from)})}),Object.keys(d).forEach(e=>{const t=d[e];u[t.from.name]||delete d[e],u[t.to.name]||delete d[e],t.weight<g&&delete d[e]}),Object.keys(u).forEach(e=>{n.push(Wc(f,u[e],r,i))}),Object.keys(d).forEach(e=>{a.push(function(e,t,n){const a=t.from.name.replace(/"/g,'\\"'),r=t.to.name.replace(/"/g,'\\"'),i=t.weight,o=e(t.weight),l=`${a} -> ${r} (${o})`,s={label:o,weight:1+100*i/n,penwidth:1+5*i/n,tooltip:l,labeltooltip:l,fontname:"",color:Hc(i/n,!1),style:t.residual?"dotted":""};return`N${t.from.index} -> N${t.to.index} ${$c(s)}`}(f,d[e],i))}),`digraph "unnamed" {\n fontname= ""\n ${n.join("\n")}\n ${a.join("\n")}\n }`}var Jc="GraphVizPanel-module_graphVizPane__B18cQ";const Qc=()=>null;function Xc({flamebearer:t}){var n,a;const r=t,o=(null===(n=r.metadata)||void 0===n?void 0:n.format)&&(null===(a=r.flamebearer)||void 0===a?void 0:a.levels),l=`graphviz-pane-${(null==r?void 0:r.appName)||String((new Date).valueOf())}`,s=i(()=>Uc(r),[JSON.stringify(r)]);return e("div",{className:Jc,children:o?e(Qc,{options:{zoom:!0,width:"150%",height:"100%",scale:1,useWorker:!1},dot:s}):e("div",{children:"NO DATA"})},l)}function Yc(e,t){const n=[...t];function a(e,t,n){for(const a of e){let e=0;for(let r=t;r<a.length;r+=n)a[r]-=e,e+=a[r]+a[r+1]}}return"double"===e?(a(n,0,7),a(n,3,7)):a(n,0,4),n}function Zc(e,t){const n=[...t];function a(e,t,n){for(const a of e){let e=0;for(let r=t;r<a.length;r+=n)a[r]+=e,e=a[r]+a[r+1]}}return"double"===e?(a(n,0,7),a(n,3,7)):a(n,0,4),n}function Kc(e){if(e.profile&&e.flamebearer&&console.warn("'profile' and 'flamebearer' properties are mutually exclusive. Please use profile if possible."),e.profile){const n={...e.profile,flamebearer:{...e.profile.flamebearer}};n.flamebearer.levels=JSON.parse(JSON.stringify(n.flamebearer.levels)),(t=n).flamebearer.levels=Zc(t.metadata.format,t.flamebearer.levels);const a={...n,...n.metadata,...n.flamebearer,flamebearer:void 0,metadata:void 0};return delete a.flamebearer,delete a.metadata,a}var t;if(e.flamebearer)return e.flamebearer;return{format:"single",names:[],units:"unknown",levels:[[]],spyName:"unknown",numTicks:0,sampleRate:0,maxSelf:0}}class Gc extends k{constructor(n){super(n),this.resetFlamegraphState={focusedNode:N.nothing(),zoom:N.nothing()},this.initialFlamegraphState=this.resetFlamegraphState,this.calcNewConfigs=(e,t)=>{const n=this.state.flamegraphConfigs,a=(e,t,n)=>{const a=(e,t,n)=>e.names[_r(e.format).getBarName(e.levels[t],n)];if(n.isNothing)return!0;try{const r=n,i=a(e,r.value.i,r.value.j);return i===a(t,r.value.i,r.value.j)}catch{return!1}};a(e,t,this.state.flamegraphConfigs.zoom)||(n.zoom=this.resetFlamegraphState.zoom);return a(e,t,this.state.flamegraphConfigs.focusedNode)||(n.focusedNode=this.resetFlamegraphState.focusedNode),n},this.onSearchChange=e=>{this.setState({searchQuery:e})},this.isSameFlamebearer=(e,t)=>function(e,t){var n;return e.format===t.format&&e.numTicks===t.numTicks&&e.sampleRate===t.sampleRate&&e.units===t.units&&(null===(n=e.names)||void 0===n?void 0:n.length)===(null==t?void 0:t.names.length)&&e.levels.length===t.levels.length&&!!e.names.every((e,n)=>e===t.names[n])&&!!function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){if(e[n].length!==t[n].length)return!1;for(let a=0;a<e[n].length;a++)if(e[n][a]!==t[n][a])return!1}return!0}(e.levels,t.levels)&&JSON.stringify({...e,levels:void 0,names:void 0})===JSON.stringify({...t,levels:void 0,names:void 0})}(e,t),this.onReset=()=>{this.setState({...this.state,flamegraphConfigs:{...this.state.flamegraphConfigs,...this.initialFlamegraphState},selectedItem:N.nothing()})},this.onFlamegraphZoom=e=>{e.isJust&&0===e.value.i&&0===e.value.j?this.onReset():this.setState({...this.state,flamegraphConfigs:{...this.state.flamegraphConfigs,zoom:e}})},this.onFocusOnNode=(e,t)=>{if(0===e&&0===t)return void this.onReset();let n={...this.state.flamegraphConfigs};const{zoom:a}=this.state.flamegraphConfigs;a.isJust&&a.value.i<=e&&(n={...n,zoom:this.initialFlamegraphState.zoom}),this.setState({...this.state,flamegraphConfigs:{...n,focusedNode:N.just({i:e,j:t})}})},this.isNameInFocusedSubtree=e=>{const{focusedNode:t}=this.state.flamegraphConfigs;if(t.isNothing)return!0;const{flamebearer:n}=this.state;if(!n||!n.levels)return!0;const{names:a,levels:r,format:i}=n,o=_r(i),l=t.value.i,s=t.value.j,c=r[l];if(!c)return!0;const f=o.getBarOffset(c,s),u=f+o.getBarTotal(c,s);for(let t=l;t<r.length;t++){const n=r[t];for(let t=0;t<n.length;t+=o.jStep){const r=o.getBarOffset(n,t),i=o.getBarTotal(n,t);if(r>=f&&r+i<=u){if(a[o.getBarName(n,t)]===e)return!0}}}return!1},this.setActiveItem=e=>{const{name:t}=e;if(this.state.selectedItem.isJust&&t===this.state.selectedItem.value)return void this.setState({selectedItem:N.nothing()});this.isNameInFocusedSubtree(t)?this.setState({selectedItem:N.just(t)}):this.setState({selectedItem:N.just(t),flamegraphConfigs:{...this.state.flamegraphConfigs,focusedNode:this.resetFlamegraphState.focusedNode}})},this.getHighlightQuery=()=>this.state.selectedItem.isJust?this.state.selectedItem.value:this.state.searchQuery,this.updateView=e=>{"sandwich"===e&&this.setState({searchQuery:"",flamegraphConfigs:this.resetFlamegraphState}),this.setState({view:e})},this.updateFlamegraphDirtiness=()=>{const e=this.isDirty();this.setState({isFlamegraphDirty:e})},this.updateFitMode=e=>{this.setState({fitMode:e})},this.clearFocus=()=>{this.setState(e=>({...e,flamegraphConfigs:{...e.flamegraphConfigs,...this.resetFlamegraphState}}))},this.getActiveRange=()=>{const{flamebearer:e}=this.state,{zoom:t,focusedNode:n}=this.state.flamegraphConfigs,a=e.numTicks;if(!a)return{rangeMin:0,rangeMax:1};const r=_r(e.format),i=t=>{const n=e.levels[t.i];if(!n)return{rangeMin:0,rangeMax:1};const i=r.getBarOffset(n,t.j),o=r.getBarTotal(n,t.j);return{rangeMin:i/a,rangeMax:(i+o)/a}};return t.match({Just:e=>n.match({Just:t=>{const n=i(t),a=i(e);return n.rangeMax-n.rangeMin<a.rangeMax-a.rangeMin?n:a},Nothing:()=>i(e)}),Nothing:()=>n.match({Just:e=>i(e),Nothing:()=>({rangeMin:0,rangeMax:1})})})},this.isDirty=()=>this.state.selectedItem.isJust||JSON.stringify(this.initialFlamegraphState)!==JSON.stringify(this.state.flamegraphConfigs),this.handleSetPalette=e=>{this.setState({palette:e})},this.render=()=>{var n;const a=e("div",{className:ci(zc.tablePane,"vertical"===this.state.panesOrientation?zc.vertical:zc.horizontal),children:e(Ns,{"data-testid":"table-view",flamebearer:this.state.flamebearer,fitMode:this.state.fitMode,highlightQuery:this.state.searchQuery,selectedItem:this.state.selectedItem,handleTableItemClick:this.setActiveItem,palette:this.state.palette,onFocusOnNode:this.onFocusOnNode,updateView:this.props.onlyDisplay?void 0:this.updateView,enableSandwichView:this.props.enableSandwichView})},"table-pane"),r=this.shouldShowToolbar(),i=!this.state.flamebearer||this.state.flamebearer.names.length<=1,o=this.context,l="Location"!==o.location,s=this.state.flamebearer.numTicks,c=$r(s,this.state.flamebearer.sampleRate,this.state.flamebearer.units).format(s,this.state.flamebearer.sampleRate),f=Or(c,l)||c,u=function(e,t=Lr){const n=Math.abs(e);for(const{value:a,label:r}of t)if(n>=a)return`${(e/a).toFixed(2).replace(/\.?0+$/,"")} ${r}`;return Ar(e)}(s,o.sampleCountFormat),d=o.tooltipSamples.replace(/[::]\s*$/,""),h=(null===(n=o.tooltipUnitTitles[this.state.flamebearer.units])||void 0===n?void 0:n.formattedValue)||o.tooltipUnitTitles.unknown.formattedValue,m=this.getActiveRange(),p=m.rangeMin>0||m.rangeMax<1,g=Math.max(0,Math.min(s,(m.rangeMax-m.rangeMin)*s)),v=s>0?g/s*100:0,b=(()=>{const e=_r(this.state.flamebearer.format),t=this.state.flamegraphConfigs.focusedNode.mapOrElse(()=>this.state.flamegraphConfigs.zoom.mapOrElse(()=>null,e=>e),e=>e);if(!t)return"";const n=this.state.flamebearer.levels[t.i];if(!n)return"";const a=e.getBarName(n,t.j);return this.state.flamebearer.names[a]||""})(),y=e(Rl,{showCredit:this.props.showCredit,flamebearer:this.state.flamebearer,highlightQuery:this.getHighlightQuery(),setActiveItem:this.setActiveItem,selectedItem:this.state.selectedItem,updateView:this.props.onlyDisplay?void 0:this.updateView,fitMode:this.state.fitMode,updateFitMode:this.updateFitMode,zoom:this.state.flamegraphConfigs.zoom,focusedNode:this.state.flamegraphConfigs.focusedNode,onZoom:this.onFlamegraphZoom,onFocusOnNode:this.onFocusOnNode,onReset:this.onReset,isDirty:this.isDirty,palette:this.state.palette,toolbarVisible:r,setPalette:this.handleSetPalette,enableSandwichView:this.props.enableSandwichView,breadcrumb:i?void 0:{totalValueText:f,totalSamplesText:u,samplesLabel:d,unitLabel:h,hasFocus:p,focusPercent:v,focusLabel:b,ofTotalPlacement:l?"before":"after",ofTotalLabel:o.ofTotal,clearFocusLabel:o.clearFocus,onClearFocus:this.clearFocus}},"flamegraph-pane"),w=(()=>{if("sandwich"!==this.state.view)return e("div",{className:zc.sandwichPane},"sandwich-pane");if(this.state.selectedItem.isNothing)return e("div",{className:zc.sandwichPane,children:t("div",{className:ci(zc.sandwichPaneInfo,"vertical"===this.state.panesOrientation?zc.vertical:zc.horizontal),children:[e("div",{className:zc.arrow}),"Select a function to view callers/callees sandwich view"]})},"sandwich-pane");const n=Bc(this.state.flamebearer,this.state.selectedItem.value),a=Lc(this.state.flamebearer,this.state.selectedItem.value),i=t=>e(Rl,{disableClick:!0,showCredit:this.props.showCredit,highlightQuery:"",setActiveItem:this.setActiveItem,selectedItem:this.state.selectedItem,fitMode:this.state.fitMode,updateFitMode:this.updateFitMode,zoom:this.state.flamegraphConfigs.zoom,focusedNode:this.state.flamegraphConfigs.focusedNode,onZoom:this.onFlamegraphZoom,onFocusOnNode:this.onFocusOnNode,onReset:this.onReset,isDirty:this.isDirty,palette:this.state.palette,toolbarVisible:r,setPalette:this.handleSetPalette,...t});return t("div",{className:zc.sandwichPane,children:[t("div",{className:zc.sandwichTop,children:[e("span",{className:zc.name,children:"Callers"}),i({flamebearer:n})]}),t("div",{className:zc.sandwichBottom,children:[e("span",{className:zc.name,children:"Callees"}),i({flamebearer:a,headerVisible:!1,showSingleLevel:!0})]})]},"sandwich-pane")})(),x=function(e,t,n,a,r){switch(e){case"table":return[n];case"flamegraph":return[t];case"sandwich":return[n,a];case"both":return[n,t];case"graphviz":return[r];default:throw new Error(`Invalid view '${e}'`)}}(this.state.view,y,a,w,e(Xc,{flamebearer:this.state.flamebearer}));return t("div",{children:[t("div",{children:[r&&e(Pc,{sharedQuery:this.props.sharedQuery,enableChangingDisplay:!this.props.onlyDisplay,flamegraphType:this.state.flamebearer.format,view:this.state.view,handleSearchChange:this.onSearchChange,reset:this.onReset,updateView:this.updateView,updateFitMode:this.updateFitMode,fitMode:this.state.fitMode,isFlamegraphDirty:this.isDirty(),selectedNode:this.state.flamegraphConfigs.zoom,highlightQuery:this.state.searchQuery,onFocusOnSubtree:this.onFocusOnNode,ExportData:this.props.ExportData,palette:this.state.palette,setPalette:this.handleSetPalette}),this.props.children,e("div",{className:`${zc.flamegraphContainer} ${ci("vertical"===this.state.panesOrientation?zc.vertical:zc.horizontal,zc[this.state.panesOrientation],zc.panesWrapper)}`,children:i?e(ui,{}):x.map(e=>e)})]}),this.props.showPyroscopeLogo&&t("div",{className:zc.createdBy,children:["Created by",t("a",{href:"https://twitter.com/PyroscopeIO",rel:"noreferrer",target:"_blank",children:[e(j,{width:"30",height:"30"}),"@PyroscopeIO"]})]})]})},this.state={isFlamegraphDirty:!1,view:this.props.onlyDisplay?this.props.onlyDisplay:"both",fitMode:"HEAD",flamebearer:Kc(n),panesOrientation:n.panesOrientation?n.panesOrientation:"horizontal",searchQuery:"",selectedItem:N.nothing(),flamegraphConfigs:this.initialFlamegraphState,palette:Lo}}componentDidUpdate(e,t){if(e.profile!==this.props.profile||e.flamebearer!==this.props.flamebearer){const e=t.flamebearer,n=Kc(this.props);if(!this.isSameFlamebearer(e,n)){const t=this.calcNewConfigs(e,n);return void this.setState({flamebearer:n,flamegraphConfigs:{...this.state.flamegraphConfigs,...t},selectedItem:N.nothing()})}}t.flamegraphConfigs!==this.state.flamegraphConfigs&&this.updateFlamegraphDirtiness()}shouldShowToolbar(){return void 0===this.props.showToolbar||this.props.showToolbar}}Gc.contextType=Jo,Gc.defaultProps={showCredit:!1};const qc={showPyroscopeLogo:!1},ef=(e,t)=>{if(t)return t;const n=null!=e?e:"auto";return"zh-CN"===("auto"===n?"undefined"!=typeof navigator&&navigator.language&&navigator.language.toLowerCase().startsWith("zh")?"zh-CN":"en":n)?Wo:Ho},tf=t=>{const{i18n:n,locale:r,colorMode:i="light",sandwich:o=!0,...l}=t,s=a.useMemo(()=>ef(r,n),[r,n]),c=a.useMemo(()=>(e=>{switch(e){case"dark":return"ps-theme-dark";case"kylin":return"ps-theme-kylin";default:return"ps-theme-light"}})(i),[i]);return e("pyro-flamegraph",{className:c,children:e(Qo,{messages:s,children:e(Gc,{...qc,enableSandwichView:o,...l})})})};function nf(e){const t={numTicks:0,maxSelf:0,names:[],levels:[]},n={},a={children:[]};return e.spans.forEach(e=>{e.children=[],n[e.spanID]=e}),e.spans.forEach(e=>{let t=a;e.references&&e.references.length>0&&(t=n[e.references[0].spanID]||a),t.children.push(e)}),function e(t,n){(t.children||[]).forEach(t=>e(t));let a=0;const r=E(t.children||[],e=>e.operationName);t.children=A(r,e=>{const t=e[0];for(let n=1;n<e.length;n+=1)t.duration+=e[n].duration;return a+=t.duration,t}),t.total=t.duration||a,t.self=Math.max(0,t.total-a)}(a),function n(a,r,i){var o;return t.numTicks||(t.numTicks=a.total),(o=t.levels)[r]||(o[r]=[]),t.levels[r].push(i),t.levels[r].push(a.total),t.levels[r].push(a.self),t.names.push((a.processID?`${e.processes[a.processID].serviceName}: `:"")+(a.operationName||"total")),t.levels[r].push(t.names.length-1),(a.children||[]).forEach(e=>{i+=n(e,r+1,i)}),a.total}(a,0,0),t.levels=Yc("single",t.levels),{version:1,flamebearer:t,metadata:{format:"single",units:"trace_samples",spyName:"tracing",sampleRate:1e6}}}function af(e,t){e.flamebearer.levels=Zc("single",e.flamebearer.levels),t.flamebearer.levels=Zc("single",t.flamebearer.levels);const n=function(e,t){const n={format:"double",numTicks:e.numTicks+t.numTicks,leftTicks:e.numTicks,rightTicks:t.numTicks,maxSelf:100,sampleRate:e.sampleRate,names:[],levels:[],units:e.units,spyName:e.spyName},a=Ac(e,t),r=(e,t,a,i)=>{var o;const{name:l,children:s,self:c,total:f}=e;n.names.push(l),(o=n.levels)[t]||(o[t]=[]),n.maxSelf=Math.max(n.maxSelf,c[0]||0,c[1]||0),n.levels[t]=n.levels[t].concat([a,f[0]||0,c[0]||0,i,f[1]||0,c[1]||0,n.names.length-1]);for(let e=0;e<s.length;e+=1){const[n,o]=r(s[e],t+1,a,i);a+=n,i+=o}return[f[0]||0,f[1]||0]};return r(a,0,0,0),n}(e.flamebearer,t.flamebearer);n.levels=Yc("double",n.levels);const a={...e.metadata};return a.format="double",{version:1,flamebearer:n,metadata:a,leftTicks:e.flamebearer.numTicks,rightTicks:t.flamebearer.numTicks}}export{br as Box,Lo as DefaultPalette,li as Flamegraph,Qo as FlamegraphI18nProvider,tf as FlamegraphRenderer,nf as convertJaegerTraceToProfile,af as diffTwoProfiles,Ho as flamegraphDefaultMessages,Wo as flamegraphZhCNMessages};
|
|
17
|
+
*/var Al,Ol=(Dl||(Dl=1,function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=r(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var a="";for(var o in e)t.call(e,o)&&e[o]&&(a=r(a,o));return a}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(Ll)),Ll.exports),zl=D(Ol),$l={};function Vl(){return Al||(Al=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="crosshairs",n=[],a="f05b",r="M288-16c17.7 0 32 14.3 32 32l0 18.3c98.1 14 175.7 91.6 189.7 189.7l18.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-18.3 0c-14 98.1-91.6 175.7-189.7 189.7l0 18.3c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-18.3C157.9 463.7 80.3 386.1 66.3 288L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l18.3 0C80.3 125.9 157.9 48.3 256 34.3L256 16c0-17.7 14.3-32 32-32zM131.2 288c12.7 62.7 62.1 112.1 124.8 124.8l0-12.8c0-17.7 14.3-32 32-32s32 14.3 32 32l0 12.8c62.7-12.7 112.1-62.1 124.8-124.8L432 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l12.8 0C432.1 161.3 382.7 111.9 320 99.2l0 12.8c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-12.8C193.3 111.9 143.9 161.3 131.2 224l12.8 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-12.8 0zM288 208a48 48 0 1 1 0 96 48 48 0 1 1 0-96z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,a,r]},e.faCrosshairs=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}($l)),$l}var Hl,Wl=Vl(),Ul={};function Ql(){return Hl||(Hl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="chevron-left",n=[9001],a="f053",r="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z";e.definition={prefix:"fas",iconName:t,icon:[320,512,n,a,r]},e.faChevronLeft=e.definition,e.prefix="fas",e.iconName=t,e.width=320,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(Ul)),Ul}var Jl,Xl=Ql(),Yl={};function ql(){return Jl||(Jl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="chevron-right",n=[9002],a="f054",r="M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z";e.definition={prefix:"fas",iconName:t,icon:[320,512,n,a,r]},e.faChevronRight=e.definition,e.prefix="fas",e.iconName=t,e.width=320,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(Yl)),Yl}var Zl=ql(),Gl="Table-module_table__6A8SM",Kl="Table-module_sortable__J6kyp",es="Table-module_sortArrow__Nrncn",ts="Table-module_sortArrowUp__WmbEG",ns="Table-module_sortArrowDown__Gyue1",as="Table-module_asc__tJDI9",rs="Table-module_desc__fjVRY",os="Table-module_isRowSelected__UhIAJ",is="Table-module_isRowDisabled__sz3NJ",ls="Table-module_virtualSpacer__C1hxH",ss="Table-module_active__EShS8",cs="Table-module_loadingSpinner__SSjMK",fs="Table-module_pagination__VXgcO",us="Button-module_button__Ed1ge",ds="Button-module_noIcon__Uzjvv",hs="Button-module_noBox__mLreC",ms="Button-module_customIcon__-slpC",ps="Button-module_iconWithText__DQRkr",gs="Button-module_default__HhXlQ",vs="Button-module_outline__Flf4r",bs="Button-module_float__4marx",ys="Button-module_primary__xByv0",ws="Button-module_secondary__D0K-F",xs="Button-module_danger__5-vIq",ks="Button-module_grouped__j8KwB";const Ns=a.forwardRef(function({disabled:n=!1,kind:a="default",type:r="button",icon:o,iconNode:i,children:l,grouped:s,onClick:c,id:f,className:u,form:d,noBox:h,autoFocus:m,...p},g){return t("button",{...p,id:f,ref:g,type:r,"data-testid":p["data-testid"],disabled:n,onClick:c,form:d,autoFocus:m,"aria-label":p["aria-label"],className:zl(us,s?ks:"",Ss(a),u,h&&hs,i&&ms,!o&&!i&&ds),children:[o?e(gr,{icon:o,className:l?ps:""}):null,i,l]})});function Ss(e){switch(e){case"default":return gs;case"primary":return ys;case"secondary":return ws;case"danger":return xs;case"outline":return vs;case"float":return bs;default:throw Error(`Unsupported kind ${e}`)}}function Ts({row:t}){const{cells:n,isRowSelected:a,isRowDisabled:r,className:o,onClick:i,onDoubleClick:l,onContextMenu:s,...f}=t,u=c(Math.random()).current;return e("tr",{...f,onClick:i,onDoubleClick:l,onContextMenu:s,className:ho(o,{[os]:a,[is]:r}),children:n&&n.map(({style:t,value:n,...a},r)=>e("td",{style:t,...a,children:n},u+r))})}function Cs({sortByDirection:a,sortBy:r,updateSortParams:o,table:i,tableBodyRef:l,className:f,isLoading:h,itemsPerPage:m,virtualize:p,virtualizeRowHeight:g,virtualizeOverscan:v=6,scrollRef:b,disableSort:y}){const x=!y&&a&&r&&o,[k,N]=s(0),[S,T]=s(0),[C,_]=s(null),[M,R]=s(null),P=c(null);u(()=>{(null==b?void 0:b.current)&&b.current!==M&&R(b.current)},[null==b?void 0:b.current,M]),d(()=>{if(!M||!p)return()=>{};const e=()=>{P.current&&cancelAnimationFrame(P.current),P.current=requestAnimationFrame(()=>{T(M.scrollTop||0)})};return M.addEventListener("scroll",e,{passive:!0}),()=>{M.removeEventListener("scroll",e),P.current&&cancelAnimationFrame(P.current)}},[M,p]),d(()=>{if(!p||C||!(null==l?void 0:l.current))return;const e=l.current.querySelectorAll("tr[data-row]");if(!e.length)return;const t=e[0].getBoundingClientRect();t.height&&_(t.height)},[p,C,null==l?void 0:l.current,i]);const F="filled"===i.type?_s(i.bodyRows,k,m):null,I="virtual"===i.type?i.rowCount:F?F.length:0,j=g||C||0,E=!!p&&!!M&&("filled"===i.type||"virtual"===i.type)&&j>0,B=E?(()=>{const e=M.clientHeight||0,t=Math.max(0,Math.floor(S/j)-v),n=Math.min(I,Math.ceil((S+e)/j)+v),a=t*j,r=Math.max(0,(I-n)*j),o="filled"===i.type&&F?F.slice(t,n):[];return{viewportHeight:e,totalRows:I,startIndex:t,endIndex:n,topSpacer:a,bottomSpacer:r,visibleRows:o}})():null,D=!!p&&!E&&"filled"===i.type,L=D?(F||[]).slice(0,Math.max(24,4*v)):null;d(()=>{var e;"virtual"===i.type&&B&&(null===(e=i.onRangeChange)||void 0===e||e.call(i,B.startIndex,B.endIndex))},[i,null==B?void 0:B.startIndex,null==B?void 0:B.endIndex]);const A="virtual"===i.type&&B?Math.max(0,B.endIndex-B.startIndex):0,O="virtual"===i.type&&A>0?Array.from({length:A},()=>({cells:Array.from({length:i.headRow.length},()=>({value:" "}))})):[],z="virtual"===i.type&&B&&i.range&&i.range.start===B.startIndex&&i.range.end===B.endIndex?i.rows:O;return h?e("div",{className:cs}):t(n,{children:[t("table",{className:ho(Gl,{[f||""]:f}),"data-testid":"table-ui",children:[e("thead",{children:e("tr",{children:i.headRow.map(({sortable:n,label:l,name:s,...c},f)=>n&&"not-filled"!==i.type&&x?w("th",{...c,key:f,className:Kl,onClick:()=>o(s)},l,t("span",{className:ho(es,{[ss]:r===s,[as]:r===s&&"asc"===a,[rs]:r===s&&"desc"===a}),children:[e("span",{className:ts}),e("span",{className:ns})]})):e("th",{...c,children:l},f))})}),e("tbody",{ref:l,children:"not-filled"===i.type?e("tr",{className:null==i?void 0:i.bodyClassName,children:e("td",{colSpan:i.headRow.length,children:i.value})}):B?t(n,{children:[B.topSpacer>0&&e("tr",{"aria-hidden":"true",className:ls,children:e("td",{colSpan:i.headRow.length,style:{height:B.topSpacer,padding:0,border:0}})}),("virtual"===i.type?z:B.visibleRows).map((t,n)=>{var a;return e(Ts,{row:t},null!==(a=t["data-row"])&&void 0!==a?a:`row-${B.startIndex+n}`)}),B.bottomSpacer>0&&e("tr",{"aria-hidden":"true",className:ls,children:e("td",{colSpan:i.headRow.length,style:{height:B.bottomSpacer,padding:0,border:0}})})]}):D?(L||[]).map((t,n)=>{var a;return e(Ts,{row:t},null!==(a=t["data-row"])&&void 0!==a?a:`row-${n}`)}):(F||[]).map((t,n)=>{var a;return e(Ts,{row:t},null!==(a=t["data-row"])&&void 0!==a?a:`row-${n}`)})})]}),e(Ms,{bodyRows:"filled"===i.type?i.bodyRows:void 0,itemsPerPage:m,currPage:k,setCurrPage:N})]})}function _s(e,t,n){return n?e.slice(t*n,n*(t+1)):e}function Ms({itemsPerPage:n,currPage:a,setCurrPage:r,bodyRows:o}){if(!n)return null;const i=!!o&&_s(o,a+1,n).length>0,l=!!o&&_s(o,a-1,n).length>0;return t("nav",{className:fs,children:[e(Ns,{"aria-label":"Previous Page",disabled:!l,kind:"float",icon:Xl.faChevronLeft,onClick:()=>r(a-1)}),e(Ns,{disabled:!i,"aria-label":"Next Page",kind:"float",icon:Zl.faChevronRight,onClick:()=>r(a+1)})]})}function Rs({numTicks:t,sampleRate:n,units:a,tableBodyRef:r,palette:o}){const i=$r(t,n,a),l=i.format(t,n),s=Zi(),c=f((e,t,r)=>{var c;const f=null===(c=r.target.closest("tr"))||void 0===c?void 0:c.dataset.row;if(!f)return void t();const[u,d,...h]=f.split(";");switch(u){case"single":{const[t,r]=h,o=i.format(parseInt(t,10),n),s=i.format(parseInt(r,10),n),c=l.split(" "),f="<"===c[0]?c[1]:c[0],u=o.split(" "),m="<"===u[0]?u[1]:u[0],p=s.split(" "),g="<"===p[0]?p[1]:p[0];e({title:{text:d,diff:{text:"",color:""}},tooltipData:[{units:a,self:`${o}(${(parseFloat(m)/parseFloat(f)*100).toFixed(2)}%)`,total:`${s}(${(parseFloat(g)/parseFloat(f)*100).toFixed(2)}%)`,tooltipType:"table"}]});break}case"double":{const[t,r,l,c]=h,f=il({formatter:i,sampleRate:n,totalLeft:parseInt(t,10),leftTicks:parseInt(r,10),totalRight:parseInt(l,10),rightTicks:parseInt(c,10),title:d,units:a},o,s);e({title:f.title,tooltipData:f.tooltipData});break}}},[i,n,a,l,o,s]);return e(nl,{dataSourceRef:r,shouldShowTitle:!1,clickInfoSide:"left",setTooltipContent:c,palette:o})}function Ps(){const e=new Blob([`(${(()=>{const e=e=>e||0,t={format:"single",jStep:4,jName:3,getBarTotal:(e,t)=>e[t+1],getBarSelf:(e,t)=>e[t+2],getBarName:(e,t)=>e[t+3]},n={format:"double",jStep:7,jName:6,getBarTotal:(e,t)=>e[t+4]+e[t+1],getBarTotalLeft:(e,t)=>e[t+1],getBarTotalRght:(e,t)=>e[t+4],getBarSelf:(e,t)=>e[t+5]+e[t+2],getBarSelfLeft:(e,t)=>e[t+2],getBarSelfRght:(e,t)=>e[t+5],getBarName:(e,t)=>e[t+6]},a=e=>Math.round(1e4*e)/100,r=(e,t)=>(t-e)/e*100,o={baseRows:[],rows:[],bestNodeByName:new Map,sortBy:"total",sortByDirection:"desc",highlightQuery:"",format:"single",leftTicks:0,rightTicks:0},i=()=>{const e=o.highlightQuery.trim().toLowerCase(),t=e?o.baseRows.filter(t=>t.name.toLowerCase().includes(e)):o.baseRows.slice(),n="asc"===o.sortByDirection?1:-1;t.sort((e,t)=>{if("name"===o.sortBy)return n*e.name.localeCompare(t.name);switch(o.sortBy){case"total":case"self":{const a=e[o.sortBy]||0,r=t[o.sortBy]||0;return n*(a-r)}case"baseline":{const a=e.leftTicks>0?e.totalLeft/e.leftTicks:0,r=t.leftTicks>0?t.totalLeft/t.leftTicks:0;return n*(a-r)}case"comparison":{const a=e.rightTicks>0?e.totalRght/e.rightTicks:0,r=t.rightTicks>0?t.totalRght/t.rightTicks:0;return n*(a-r)}case"diff":{const o=e.leftTicks>0?e.totalLeft/e.leftTicks:0,i=e.rightTicks>0?e.totalRght/e.rightTicks:0,l=t.leftTicks>0?t.totalLeft/t.leftTicks:0,s=t.rightTicks>0?t.totalRght/t.rightTicks:0,c=r(a(o),a(i)),f=r(a(l),a(s));return n*(c-f)}default:return 0}}),o.rows=t},l=a=>{const{rows:r,bestNodeByName:l,format:s,leftTicks:c,rightTicks:f}=(a=>{const{names:r,levels:o,format:i}=a,l=new Map,s=new Map,c=a.leftTicks||0,f=a.rightTicks||0;if("double"===i){const t=n;for(let n=0;n<o.length;n+=1){const a=o[n];for(let o=0;o<a.length;o+=t.jStep){const i=r[t.getBarName(a,o)]||"<empty>";l.has(i)||l.set(i,{type:"double",name:i,totalLeft:0,totalRght:0,leftTicks:c,rightTicks:f});const u=l.get(i);if(!u)continue;u.totalLeft=e(u.totalLeft)+t.getBarTotalLeft(a,o),u.totalRght=e(u.totalRght)+t.getBarTotalRght(a,o);const d=t.getBarTotal(a,o),h=s.get(i);(!h||d>h.total)&&s.set(i,{i:n,j:o,total:d})}}}else{const n=t;for(let t=0;t<o.length;t+=1){const a=o[t];for(let o=0;o<a.length;o+=n.jStep){const i=r[n.getBarName(a,o)]||"<empty>";l.has(i)||l.set(i,{type:"single",name:i,self:0,total:0});const c=l.get(i);if(!c)continue;c.self=e(c.self)+n.getBarSelf(a,o),c.total=e(c.total)+n.getBarTotal(a,o);const f=n.getBarTotal(a,o),u=s.get(i);(!u||f>u.total)&&s.set(i,{i:t,j:o,total:f})}}}return{rows:Array.from(l.values()),bestNodeByName:s,format:i,leftTicks:c,rightTicks:f}})(a.flamebearer);o.baseRows=r,o.bestNodeByName=l,o.format=s,o.leftTicks=c,o.rightTicks=f,o.sortBy=a.sortBy,o.sortByDirection=a.sortByDirection,o.highlightQuery=a.highlightQuery||"",i(),console.debug("[profiler-table-worker] init ready",{rowCount:o.rows.length,sortBy:o.sortBy,sortByDirection:o.sortByDirection,highlightQuery:o.highlightQuery}),self.postMessage({type:"ready",payload:{rowCount:o.rows.length}})};self.onmessage=e=>{const t=e.data;var n;if(t&&t.type)switch(t.type){case"init":l(t.payload);break;case"update":n=t.payload,o.sortBy=n.sortBy,o.sortByDirection=n.sortByDirection,o.highlightQuery=n.highlightQuery||"",i(),console.debug("[profiler-table-worker] update ready",{rowCount:o.rows.length,sortBy:o.sortBy,sortByDirection:o.sortByDirection,highlightQuery:o.highlightQuery}),self.postMessage({type:"ready",payload:{rowCount:o.rows.length}});break;case"range":(e=>{const{start:t,end:n,requestId:a}=e,r=Math.max(0,t),i=Math.min(o.rows.length,n),l=o.rows.slice(r,i);console.debug("[profiler-table-worker] range",{start:r,end:i,requestId:a}),self.postMessage({type:"range",payload:{rows:l,start:r,end:i,requestId:a}})})(t.payload);break;case"findNode":(e=>{const{name:t,requestId:n}=e,a=o.bestNodeByName.get(t);console.debug("[profiler-table-worker] findNode",{name:t,found:!!a,requestId:n}),self.postMessage({type:"findNode",payload:{node:a?{i:a.i,j:a.j}:null,requestId:n}})})(t.payload)}}}).toString()})()`],{type:"text/javascript"});return new Worker(URL.createObjectURL(e))}var Fs="ProfilerTable-module_tableContextMenu__7Svm8",Is="ProfilerTable-module_sandwichItem__b9Ipy";const js=e=>e||0,Es="undefined"!=typeof Worker&&"undefined"!=typeof Blob&&"undefined"!=typeof URL;function Bs(e,t,n,a){const r=t;return r.type="single",r.self=js(r.self)+e.getBarSelf(n,a),r.total=js(r.total)+e.getBarTotal(n,a),r}function Ds(e,t,n,a,r,o){const i=t;return i.type="double",i.self=js(i.self)+e.getBarSelf(n,a),i.total=js(i.total)+e.getBarTotal(n,a),i.selfLeft=js(i.selfLeft)+e.getBarSelfLeft(n,a),i.selfRght=js(i.selfRght)+e.getBarSelfRght(n,a),i.selfDiff=js(i.selfDiff)+e.getBarSelfDiff(n,a),i.totalLeft=js(i.totalLeft)+e.getBarTotalLeft(n,a),i.totalRght=js(i.totalRght)+e.getBarTotalRght(n,a),i.totalDiff=js(i.totalDiff)+e.getBarTotalDiff(n,a),i.leftTicks=r,i.rightTicks=o,i}const Ls=new WeakMap;function As(e){const t=Ls.get(e);if(t)return t;const n=function(e){if(!e)return[];const{names:t,levels:n,format:a}=e,r="double"!==a?Tr:Cr,o=new Map;for(let i=0;i<n.length;i++){const l=n[i];for(let n=0;n<l.length;n+=r.jStep){const i=t[r.getBarName(l,n)];o.has(i)||o.set(i,{name:i||"<empty>",self:0,total:0});const s=o.get(i);if(!s)break;"single"===a?Bs(Tr,s,l,n):Ds(Cr,s,l,n,e.leftTicks,e.rightTicks)}}return Array.from(o.values())}(e);return Ls.set(e,n),n}function Os(e,t,n){const a=148-e/t*148,r=n.alpha(1);return{backgroundImage:`linear-gradient(${r}, ${r})`,backgroundPosition:`-${a}px 0px`,backgroundRepeat:"no-repeat"}}const zs=({flamebearer:t,sortBy:n,sortByDirection:a,fitMode:r,handleTableItemClick:o,highlightQuery:i,palette:l,selectedItem:s,messages:c,onRowContextMenu:f,onRowDoubleClick:u})=>{const{numTicks:d,maxSelf:h,sampleRate:m,spyName:p,units:g}=t,v=[...As(t)].sort((e,t)=>t.total-e.total),b="asc"===a?1:-1;let y;if("name"===n)y=v.sort((e,t)=>b*e[n].localeCompare(t[n]));else switch(n){case"total":case"self":y=v.sort((e,t)=>b*(e[n]-t[n]));break;case"baseline":y=v.sort((e,t)=>b*(e.totalLeft/e.leftTicks-t.totalLeft/t.leftTicks));break;case"comparison":y=v.sort((e,t)=>b*(e.totalRght/e.rightTicks-t.totalRght/t.rightTicks));break;case"diff":y=v.sort((e,t)=>{const n=zr(Or(e.totalLeft/e.leftTicks),Or(e.totalRght/e.rightTicks)),a=zr(Or(t.totalLeft/t.leftTicks),Or(t.totalRght/t.rightTicks));return b*(n-a)});break;default:y=v}const w=$r(d,m,g),x=e=>!!s.isJust&&e===s.value,k=t=>e("button",{className:"table-item-button",children:e("div",{className:"symbol-name",style:Yr(r),children:e("bdi",{dir:"ltr",children:t.name})})}),N=y.filter(e=>{return!i||(t=i,e.name.toLowerCase().includes(t.toLowerCase()));var t}).map(e=>{if("double"===e.type)return(e=>{const t=Or(e.leftTicks>0?e.totalLeft/e.leftTicks:0),n=Or(e.rightTicks>0?e.totalRght/e.rightTicks:0);let a=zr(t,n);Number.isFinite(a)||(a=0);let r="";a>0?r=l.badColor.rgb().string():a<0&&(r=l.goodColor.rgb().string());let i="";return 0===e.totalLeft&&e.totalRght>0?i=c.diffNew:0===e.totalRght&&e.totalLeft>0?i=c.diffRemoved:0===a?i="0%":a>0?i=`+${a.toFixed(2)}%`:a<0&&(i=`${a.toFixed(2)}%`),{"data-row":`${e.type};${e.name};${e.totalLeft};${e.leftTicks};${e.totalRght};${e.rightTicks}`,isRowSelected:x(e.name),onClick:()=>o(e),onContextMenu:t=>f(t,e.name),onDoubleClick:()=>u(e.name),cells:[{value:k(e)},{value:`${t} %`},{value:`${n} %`},{value:i,style:{color:r}}]}})(e);const t=Gr(p,e.name);return((e,t)=>({"data-row":`${e.type};${e.name};${e.self};${e.total}`,isRowSelected:x(e.name),onClick:()=>o(e),onContextMenu:t=>f(t,e.name),onDoubleClick:()=>u(e.name),cells:[{value:k(e)},{value:w.format(e.self,m),style:Os(e.self,h,t)},{value:w.format(e.total,m),style:Os(e.total,d,t)}]}))(e,Kr(l,t))});return N.length>0?{bodyRows:N,type:"filled"}:{value:e("div",{className:"unsupported-format",children:c.noItemsFound}),type:"not-filled"}};function $s({tableBodyRef:r,flamebearer:i,isDoubles:l,fitMode:u,handleTableItemClick:h,highlightQuery:m,selectedItem:p,palette:g,onFocusOnNode:v,updateView:b,enableSandwichView:y=!0,virtualize:w,virtualizeRowHeight:x,virtualizeOverscan:k,scrollRef:N}){const S=Zi(),[T,C]=_i({transition:!0}),[_,M]=s({x:0,y:0}),[R,P]=s(null),F=Es,I=c(null),j=c(null),E=c(0),B=c(0),D=c(new Map),[L,A]=s(!1),[O,z]=s(0),[$,V]=s([]),[H,W]=s({start:0,end:0}),[U,Q]=s(null),[J,X]=s(0),[Y,q]=s(0);d(()=>{if(!F)return()=>{};const e=Ps();I.current=e,q(e=>e+1),console.debug("[profiler-table] worker created");const t=e=>{const t=e.data;if(t&&t.type)switch(t.type){case"ready":z(t.payload.rowCount),A(!0),X(e=>e+1),console.debug("[profiler-table] worker ready",{rowCount:t.payload.rowCount});break;case"range":if(t.payload.requestId!==E.current)return;V(t.payload.rows),W({start:t.payload.start,end:t.payload.end}),console.debug("[profiler-table] range received",{start:t.payload.start,end:t.payload.end,rows:t.payload.rows.length});break;case"findNode":{const e=D.current.get(t.payload.requestId);e&&(D.current.delete(t.payload.requestId),e(t.payload.node)),console.debug("[profiler-table] findNode response",{found:!!t.payload.node});break}}};return e.addEventListener("message",t),()=>{e.removeEventListener("message",t),e.terminate(),I.current=null,D.current.clear(),console.debug("[profiler-table] worker terminated")}},[F]);const Z=f(e=>{if(!F||!I.current)return Promise.resolve(function(e,t){if(!e||!e.levels)return null;const{names:n,levels:a,format:r}=e,o=_r(r);let i=null;for(let e=0;e<a.length;e++){const r=a[e];for(let a=0;a<r.length;a+=o.jStep)if(n[o.getBarName(r,a)]===t){const t=o.getBarTotal(r,a);(!i||t>i.total)&&(i={i:e,j:a,total:t})}}return i?{i:i.i,j:i.j}:null}(i,e));const t=++B.current;return console.debug("[profiler-table] findNode request",{name:e,requestId:t}),new Promise(n=>{var a;D.current.set(t,n),null===(a=I.current)||void 0===a||a.postMessage({type:"findNode",payload:{name:e,requestId:t}})})},[i,F]),G=f(e=>{v&&Z(e).then(e=>{e&&v(e.i,e.j)})},[v,Z]),K=f(e=>{p.isJust&&p.value===e||(console.time(`[profiler-table] dblclick highlight ${e}`),h({name:e}),console.timeEnd(`[profiler-table] dblclick highlight ${e}`)),console.time(`[profiler-table] dblclick focus ${e}`),G(e),console.timeEnd(`[profiler-table] dblclick focus ${e}`)},[G,p,h]),ee=f((e,t)=>{e.preventDefault(),M({x:e.clientX,y:e.clientY}),P(t),C(!0)},[C]),te=f(()=>{C(!1),P(null)},[C]),ne=f(()=>{R&&(console.time(`[profiler-table] menu focus ${R}`),G(R),console.timeEnd(`[profiler-table] menu focus ${R}`),te())},[R,G,te]),ae=f(()=>{R&&navigator.clipboard&&(navigator.clipboard.writeText(R),te())},[R,te]),re=f(()=>{R&&(h({name:R}),te())},[R,h,te]),oe=f(()=>{R&&b&&(b("sandwich"),h({name:R}),te())},[R,b,h,te]),ie=a.useMemo(()=>l?[{sortable:1,name:"name",label:S.location},{sortable:1,name:"baseline",label:S.baseline,default:!0},{sortable:1,name:"comparison",label:S.comparison},{sortable:1,name:"diff",label:S.diff}]:[{sortable:1,name:"name",label:S.location},{sortable:1,name:"self",label:S.self,default:!0},{sortable:1,name:"total",label:S.total}],[S,l]),le=(e=>{const t=e.filter(e=>null==e?void 0:e.default)[0]||e[0],[n,a]=s(t.name),[r,o]=s("desc");return{sortBy:n,sortByDirection:r,updateSortParams:e=>{let t=r;t=n===e?"asc"===t?"desc":"asc":"desc",a(e),o(t)}}})(ie);d(()=>{if(!F||!I.current)return;const e=I.current,t={sortBy:le.sortBy,sortByDirection:le.sortByDirection,highlightQuery:m};j.current!==i?(j.current=i,A(!1),z(0),V([]),e.postMessage({type:"init",payload:{flamebearer:i,...t}})):(A(!1),V([]),e.postMessage({type:"update",payload:t}))},[i,m,le.sortBy,le.sortByDirection,F,Y]);const se=f((e,t)=>{console.debug("[profiler-table] range requested",{start:e,end:t}),Q(n=>n&&n.start===e&&n.end===t?n:{start:e,end:t})},[]);d(()=>{if(!F||!I.current||!U)return;const e=++E.current;I.current.postMessage({type:"range",payload:{start:U.start,end:U.end,requestId:e}})},[U,J,F]);const{numTicks:ce,maxSelf:fe,sampleRate:ue,spyName:de,units:he}=i,me=o(()=>$r(ce,ue,he),[ce,ue,he]),pe=o(()=>Yr(u),[u]),ge=f(e=>p.isJust&&p.value===e,[p]),ve=f(t=>e("button",{className:"table-item-button",children:e("div",{className:"symbol-name",style:pe,children:e("bdi",{dir:"ltr",children:t})})}),[pe]),be=f(e=>{const t=Gr(de,e.name),n=Kr(g,t);return{"data-row":`single;${e.name};${e.self};${e.total}`,isRowSelected:ge(e.name),onClick:()=>{console.time(`[profiler-table] click ${e.name}`),h({name:e.name}),console.timeEnd(`[profiler-table] click ${e.name}`)},onContextMenu:t=>ee(t,e.name),onDoubleClick:()=>K(e.name),cells:[{value:ve(e.name)},{value:me.format(e.self,ue),style:Os(e.self,fe,n)},{value:me.format(e.total,ue),style:Os(e.total,ce,n)}]}},[me,ee,K,h,ge,fe,ve,ce,g,ue,de]),ye=f(e=>{const t=Or(e.leftTicks>0?e.totalLeft/e.leftTicks:0),n=Or(e.rightTicks>0?e.totalRght/e.rightTicks:0);let a=zr(t,n);Number.isFinite(a)||(a=0);let r="";a>0?r=g.badColor.rgb().string():a<0&&(r=g.goodColor.rgb().string());let o="";return 0===e.totalLeft&&e.totalRght>0?o=S.diffNew:0===e.totalRght&&e.totalLeft>0?o=S.diffRemoved:0===a?o="0%":a>0?o=`+${a.toFixed(2)}%`:a<0&&(o=`${a.toFixed(2)}%`),{"data-row":`double;${e.name};${e.totalLeft};${e.leftTicks};${e.totalRght};${e.rightTicks}`,isRowSelected:ge(e.name),onClick:()=>{console.time(`[profiler-table] click ${e.name}`),h({name:e.name}),console.timeEnd(`[profiler-table] click ${e.name}`)},onContextMenu:t=>ee(t,e.name),onDoubleClick:()=>K(e.name),cells:[{value:ve(e.name)},{value:`${t} %`},{value:`${n} %`},{value:o,style:{color:r}}]}},[ee,K,h,S,ge,ve,g]),we=o(()=>F?$.map(e=>"double"===e.type?ye(e):be(e)):[],[ye,be,F,$]),xe=o(()=>F?L&&0===O?{headRow:ie,type:"not-filled",value:e("div",{className:"unsupported-format",children:S.noItemsFound})}:{headRow:ie,type:"virtual",rowCount:O,rows:we,range:H,onRangeChange:se}:{headRow:ie,...zs({flamebearer:i,sortBy:le.sortBy,sortByDirection:le.sortByDirection,fitMode:u,handleTableItemClick:h,highlightQuery:m,palette:g,selectedItem:p,messages:S,onRowContextMenu:ee,onRowDoubleClick:K})},[ye,be,y,u,i,ee,K,se,h,m,S,v,g,O,p,ie,le.sortBy,le.sortByDirection,b,F,we,H,L]),ke=p.isJust&&p.value===R;return t(n,{children:[e(Cs,{...le,tableBodyRef:r,table:xe,isLoading:F&&!L,className:zl("flamegraph-table",{"flamegraph-table-doubles":l}),virtualize:w,virtualizeRowHeight:x,virtualizeOverscan:k,scrollRef:N}),t(xi,{...T,anchorPoint:_,onClose:te,className:Fs,children:[v&&t(Ii,{onClick:ne,children:[e(gr,{icon:Wl.faCrosshairs}),S.focusOnThisFunction]}),t(Ii,{onClick:ae,children:[e(gr,{icon:_o.faCopy}),S.copyFunctionName]}),t(Ii,{onClick:re,children:[e(gr,{icon:Io.faHighlighter}),ke?S.clearHighlight:S.highlightSimilarNodes]}),b&&y&&t(Ii,{onClick:oe,className:Is,children:[e(ml,{fill:"currentColor"}),S.openInSandwichView]})]})]})}const Vs=a.memo(function({flamebearer:n,fitMode:a,handleTableItemClick:r,highlightQuery:o,palette:i,selectedItem:l,onFocusOnNode:f,updateView:u,enableSandwichView:h}){const m=c(null),p=c(null),g=c(null),[v,b]=s(0),y="double"===n.format;return d(()=>{const e=m.current;if(!e)return;const t=e.offsetWidth-e.clientWidth;Number.isFinite(t)&&t!==v&&b(t)},[m.current,y,v]),t("div",{"data-testid":"table-view",ref:p,style:{"--kylin-flamegraph-scrollbar-size":`${v}px`},className:y?"flamegraph-table-wrapper flamegraph-table-wrapper--double":"flamegraph-table-wrapper",children:[e("div",{className:"flamegraph-table-scroll",ref:g,children:e($s,{tableBodyRef:m,flamebearer:n,isDoubles:y,fitMode:a,highlightQuery:o,handleTableItemClick:r,palette:i,selectedItem:l,onFocusOnNode:f,updateView:u,enableSandwichView:h,virtualize:!0,virtualizeRowHeight:26,virtualizeOverscan:8,scrollRef:g})}),e(Rs,{tableBodyRef:m,numTicks:n.numTicks,sampleRate:n.sampleRate,units:n.units,palette:i})]})});var Hs,Ws,Us={},Qs={};function Js(){return Hs||(Hs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="arrow-rotate-left",n=[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],a="f0e2",r="M256 64c-56.8 0-107.9 24.7-143.1 64l47.1 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 192c-17.7 0-32-14.3-32-32L0 32C0 14.3 14.3 0 32 0S64 14.3 64 32l0 54.7C110.9 33.6 179.5 0 256 0 397.4 0 512 114.6 512 256S397.4 512 256 512c-87 0-163.9-43.4-210.1-109.7-10.1-14.5-6.6-34.4 7.9-44.6s34.4-6.6 44.6 7.9c34.8 49.8 92.4 82.3 157.6 82.3 106 0 192-86 192-192S362 64 256 64z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,a,r]},e.faArrowRotateLeft=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(Qs)),Qs}function Xs(){return Ws||(Ws=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Js();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faUndo=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(Us)),Us}var Ys,qs,Zs=Xs(),Gs={},Ks={};function ec(){return Ys||(Ys=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="diagram-project",n=["project-diagram"],a="f542",r="M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 16 128 0 0-16c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-16-128 0 0 16c0 7.3-1.7 14.3-4.6 20.5l68.6 91.5 80 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-7.3 1.7-14.3 4.6-20.5L128 224 48 224c-26.5 0-48-21.5-48-48L0 80z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,a,r]},e.faDiagramProject=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(Ks)),Ks}function tc(){return qs||(qs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=ec();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faProjectDiagram=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(Gs)),Gs}var nc,ac,rc=tc(),oc={},ic={};function lc(){return nc||(nc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="ellipsis-vertical",n=["ellipsis-v"],a="f142",r="M64 144a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0 224c30.9 0 56 25.1 56 56s-25.1 56-56 56-56-25.1-56-56 25.1-56 56-56zm56-112c0 30.9-25.1 56-56 56s-56-25.1-56-56 25.1-56 56-56 56 25.1 56 56z";e.definition={prefix:"fas",iconName:t,icon:[128,512,n,a,r]},e.faEllipsisVertical=e.definition,e.prefix="fas",e.iconName=t,e.width=128,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(ic)),ic}function sc(){return ac||(ac=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=lc();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faEllipsisV=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(oc)),oc}var cc=sc(),fc="Tooltip-module_tooltipWrapper__leDK-",uc="Tooltip-module_tooltipBubble__8vweF",dc="Tooltip-module_tooltipArrow__7wGyN";function hc(e){if(null!=e&&!1!==e){if("string"==typeof e||"number"==typeof e)return String(e);if(Array.isArray(e)){const t=e.map(e=>hc(e)).filter(e=>!!e);return t.length?t.join(" "):void 0}return a.isValidElement(e)?hc(e.props.children):void 0}}const mc=({placement:a,title:r,content:o,children:i})=>{const l=hc(null!=r?r:o),f=c(null),[u,h]=s(!1);return d(()=>{const e=f.current;if(!e)return;const t=e.closest("[data-theme='kylin'], [data-flamegraph-color-mode='kylin']");h(!!t)},[]),l?t("span",{ref:f,className:fc,"data-placement":a||"top","data-tooltip":u?l:void 0,title:u?void 0:l,children:[i,u?t("span",{className:uc,role:"tooltip",children:[l,e("span",{className:dc})]}):null]}):e(n,{children:i})};var pc,gc={};function vc(){return pc||(pc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="link",n=[128279,"chain"],a="f0c1",r="M419.5 96c-16.6 0-32.7 4.5-46.8 12.7-15.8-16-34.2-29.4-54.5-39.5 28.2-24 64.1-37.2 101.3-37.2 86.4 0 156.5 70 156.5 156.5 0 41.5-16.5 81.3-45.8 110.6l-71.1 71.1c-29.3 29.3-69.1 45.8-110.6 45.8-86.4 0-156.5-70-156.5-156.5 0-1.5 0-3 .1-4.5 .5-17.7 15.2-31.6 32.9-31.1s31.6 15.2 31.1 32.9c0 .9 0 1.8 0 2.6 0 51.1 41.4 92.5 92.5 92.5 24.5 0 48-9.7 65.4-27.1l71.1-71.1c17.3-17.3 27.1-40.9 27.1-65.4 0-51.1-41.4-92.5-92.5-92.5zM275.2 173.3c-1.9-.8-3.8-1.9-5.5-3.1-12.6-6.5-27-10.2-42.1-10.2-24.5 0-48 9.7-65.4 27.1L91.1 258.2c-17.3 17.3-27.1 40.9-27.1 65.4 0 51.1 41.4 92.5 92.5 92.5 16.5 0 32.6-4.4 46.7-12.6 15.8 16 34.2 29.4 54.6 39.5-28.2 23.9-64 37.2-101.3 37.2-86.4 0-156.5-70-156.5-156.5 0-41.5 16.5-81.3 45.8-110.6l71.1-71.1c29.3-29.3 69.1-45.8 110.6-45.8 86.6 0 156.5 70.6 156.5 156.9 0 1.3 0 2.6 0 3.9-.4 17.7-15.1 31.6-32.8 31.2s-31.6-15.1-31.2-32.8c0-.8 0-1.5 0-2.3 0-33.7-18-63.3-44.8-79.6z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,a,r]},e.faLink=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(gc)),gc}var bc,yc,wc=vc(),xc={},kc={};function Nc(){return bc||(bc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="magnifying-glass",n=[128269,"search"],a="f002",r="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,a,r]},e.faMagnifyingGlass=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(kc)),kc}function Sc(){return yc||(yc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Nc();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faSearch=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(xc)),xc}var Tc=Sc(),Cc="Input-module_input__ulQdV";const _c=a.forwardRef(({testId:t,className:n,type:a,name:r,placeholder:o,minLength:i=0,debounceTimeout:l=100,onChange:s,value:c,htmlId:f},u)=>e(I,{inputRef:u,"data-testid":t,className:`${Cc} ${n||""}`,type:a,name:r,placeholder:o,minLength:i,debounceTimeout:l,onChange:s,value:c,id:f}));var Mc="SharedQueryInput-module_wrapper__XRxrd",Rc="SharedQueryInput-module_search__XlzRv",Pc="SharedQueryInput-module_search-synced__J4T4b",Fc="SharedQueryInput-module_searchWithSync__ryuQa",Ic="SharedQueryInput-module_icon__Aq0Hv",jc="SharedQueryInput-module_checked__oRvod",Ec="SharedQueryInput-module_sync__0IO2N",Bc="SharedQueryInput-module_syncSelected__hstBI",Dc="SharedQueryInput-module_searchIcon__kfJxO";const Lc=({onHighlightChange:n,highlightQuery:a,sharedQuery:r,width:i})=>{const l=Zi(),f=(e=>{const t=c();return d(()=>{t.current=e},[e]),t.current})(null==r?void 0:r.syncEnabled),u=c(null),[h,m]=s(!1);d(()=>{"string"==typeof(null==r?void 0:r.searchQuery)&&(r.syncEnabled&&n(r.searchQuery),!r.syncEnabled&&f&&f!==(null==r?void 0:r.id)&&n(""))},[null==r?void 0:r.searchQuery,null==r?void 0:r.syncEnabled]),d(()=>{const e=u.current;if(!e)return;const t=e.closest("[data-theme='kylin'], [data-flamegraph-color-mode='kylin']");m(!!t)},[]);const p=o(()=>r&&r.syncEnabled?r.searchQuery||"":a,[r,a]),g=o(()=>`${r?Fc:Rc} ${(null==r?void 0:r.syncEnabled)?Pc:""}`,[r]),v=(null==r?void 0:r.syncEnabled)?l.unsyncSearchBars:l.syncSearchBars;return t("div",{ref:u,className:Mc,style:{width:i},children:[e("span",{className:Dc,children:e(gr,{icon:Tc.faSearch})}),e(_c,{testId:"flamegraph-search",className:g,type:"search",name:"flamegraph-search",placeholder:h?"搜索函数 / 过滤":l.searchPlaceholder,minLength:1,debounceTimeout:100,onChange:e=>{n(e.target.value),r&&r.syncEnabled&&r.onQueryChange(e.target.value)},value:p}),r?e(mc,{placement:"top",title:v,children:e("button",{className:r.syncEnabled?Bc:Ec,onClick:()=>{const e=!(null==r?void 0:r.syncEnabled)&&(null==r?void 0:r.id);null==r||r.toggleSync(e),e?null==r||r.onQueryChange(a):(n(a),null==r||r.onQueryChange(""))},children:e(gr,{className:`${r.syncEnabled?jc:Ic}`,icon:wc.faLink})})}):null]})};var Ac="DiffLegend-module_flamegraph-legend__Cywr1",Oc="DiffLegend-module_flamegraph-legend-list__swdXj",zc="DiffLegend-module_flamegraph-legend-item__0P-6g";function $c(n){const{palette:a,showMode:r}=n,o=function(e){switch(e){case"large":return[-100,-80,-60,-40,-20,-10,0,10,20,40,60,80,100];case"small":return[-100,-50,0,50,100];default:throw new Error(`Unsupported ${e}`)}}(r),i=eo(a);return e("div",{"data-testid":"flamegraph-legend",className:`${Ac} ${Oc}`,style:"small"===r?{"--legend-item-width":"32px","--legend-item-padding":"2px 2px","--legend-font-size":"10px","--legend-line-height":"1.1","--legend-item-height":"16px"}:void 0,children:o.map(e=>t("div",{className:zc,style:{backgroundColor:i(e).rgb().toString()},children:[e>0?"+":"",e,"%"]},e))})}var Vc="Dropdown-module_dropdownMenu__tbN8r",Hc="Dropdown-module_dropdownMenuButton__Xy8M4";function Wc({id:n,children:a,className:r,disabled:o,value:i,label:l,onItemClick:s,overflow:c,position:f,direction:u,align:d,viewScroll:h,arrow:m,menuButtonClassName:p="",ariaLabel:g,portal:v,...b}){const y=b.menuButton||e(Qc,{"aria-label":g,className:`${Hc} ${p}`,disabled:o,type:"button",children:i||l});return t(Ri,{id:n,"aria-label":g,className:zl(r,Vc),"data-testid":b["data-testid"],onItemClick:s,overflow:c,position:f,direction:u,align:d,viewScroll:h,arrow:m,menuButton:y,portal:v,children:[e(ji,{children:l}),a]})}const Uc=Ii,Qc=fi;var Jc="DiffLegendPaletteDropdown-module_container__h8Tts",Xc="DiffLegendPaletteDropdown-module_triggerButton__oezA6",Yc="DiffLegendPaletteDropdown-module_dropdownArrow__-Lu0w",qc="DiffLegendPaletteDropdown-module_menuItem__5iWry",Zc="DiffLegendPaletteDropdown-module_menuItemText__a-tt0",Gc="DiffLegendPaletteDropdown-module_dropdownMenu__G0NkR",Kc="DiffLegendPaletteDropdown-module_menuItemWrapper__vAw-Q",ef="DiffLegendPaletteDropdown-module_menuItemSelected__1gu9m";const tf=[$i,Vi],nf=n=>{const{palette:a=$i,onChange:r}=n,o=Zi(),i=e=>"Default"===e.name?o.paletteDefaultName:"Color Blind"===e.name?o.paletteColorBlindName:e.name,l=e=>"Default"===e.name?o.paletteDefaultDesc:"Color Blind"===e.name?o.paletteColorBlindDesc:"";return e("div",{className:Jc,children:e(Wc,{label:o.diffLegendSelectPalette,align:"end",className:Gc,menuButton:t(Qc,{className:zl(Hc,Xc),children:[e($c,{palette:a,showMode:"small"}),e("span",{className:Yc})]}),onItemClick:e=>{e.value&&r(e.value)},children:tf.map(n=>e(Uc,{value:n,className:zl(Kc,n.name===a.name&&ef),children:e("div",{className:qc,children:t("span",{className:Zc,children:[i(n)," ",l(n)]})})},n.name))})})};var af={navbar:"Toolbar-module_navbar__XN6xZ",searchWrapper:"Toolbar-module_searchWrapper__k--ua",rightSection:"Toolbar-module_rightSection__if7LO",viewType:"Toolbar-module_viewType__AKARg",toggleViewButton:"Toolbar-module_toggleViewButton__OQ9-U",fitModeButton:"Toolbar-module_fitModeButton__jOxve",selected:"Toolbar-module_selected__vwBQt",collapseNodeButton:"Toolbar-module_collapseNodeButton__bLdiw",resetViewButton:"Toolbar-module_resetViewButton__y2ebV",divider:"Toolbar-module_divider__dG6pE",itemsContainer:"Toolbar-module_itemsContainer__gSTMF",item:"Toolbar-module_item__o-hKc",moreButton:"Toolbar-module_moreButton__rhOdT",active:"Toolbar-module_active__36Kt-",navbarCollapsedItems:"Toolbar-module_navbarCollapsedItems__vojhw"};const rf=$.bind(af),of=(e,t,n)=>{const a=0===t?e-360-5:e-360-16-5;let r=0,o=0;return n.reverse().forEach(e=>{o+=e,a<=o&&(r+=1)}),r},lf=()=>e("div",{className:af.divider}),sf=y(({view:a,handleSearchChange:r,highlightQuery:o,isFlamegraphDirty:i,reset:l,updateFitMode:f,fitMode:h,updateView:m,selectedNode:p,onFocusOnSubtree:g,flamegraphType:v,enableChangingDisplay:b=!0,sharedQuery:y,ExportData:w,palette:k,setPalette:N})=>{const S=c(null),[T,C]=s(!1),M=Zi();d(()=>{const e=S.current;if(!e)return;const t=e.closest("[data-theme='kylin'], [data-flamegraph-color-mode='kylin']");C(!!t)},[]);const R=T?32:44,P=T?220:360,F="double"===v&&k&&N,I=[{el:t(n,{children:[e(uf,{fitMode:h,updateFitMode:f}),e(lf,{})]}),width:2*R+5},{el:e(ff,{isFlamegraphDirty:i,reset:l}),width:R},{el:t(n,{children:[e(cf,{selectedNode:p,onFocusOnSubtree:g}),e(lf,{})]}),width:R+5},b?{el:e(hf,{flamegraphType:v,view:a,updateView:m}),width:R*("single"===v?5:3)}:null,x(w)?{el:t(n,{children:[e(lf,{}),w]}),width:R+5}:null].filter(e=>null!==e),j=I.reduce((e,t)=>[...e,t.width],[]),{isCollapsed:E,collapsedItemsNumber:B,handleMoreClick:D}=((e,t)=>{const[n,a]=s(!0),[r,o]=s(0);return u(()=>{if(e.current){const{width:n}=e.current.getBoundingClientRect(),a=of(n,r,t);o(a)}},[e.current,t]),_(e,e=>{const{width:n}=e.target.getBoundingClientRect(),i=of(n,r,t);o(i),a(!0)}),{isCollapsed:n,handleMoreClick:()=>{a(e=>!e)},collapsedItemsNumber:r}})(S,j),L=I.reduce((e,t,n)=>(n<B?e.hidden.push(t):e.visible.push(t),e),{visible:[],hidden:[]});return e("div",{role:"toolbar",ref:S,children:t("div",{className:af.navbar,children:[e("div",{className:af.searchWrapper,children:e(Lc,{width:P,onHighlightChange:r,highlightQuery:o,sharedQuery:y})}),t("div",{className:af.rightSection,children:[F&&t(n,{children:[e(nf,{palette:k,onChange:N}),e(lf,{})]}),t("div",{className:af.itemsContainer,children:[L.visible.map((t,n)=>e("div",{className:af.item,style:{width:t.width},children:t.el},n)),0!==B&&e(mc,{placement:"top",title:M.more,children:e("button",{onClick:D,className:rf({[af.moreButton]:!0,[af.active]:!E}),children:e(gr,{icon:cc.faEllipsisV})})})]})]}),!E&&e("div",{className:af.navbarCollapsedItems,children:L.hidden.map((t,n)=>e("div",{className:af.item,style:{width:t.width},children:t.el},n))})]})})});function cf({onFocusOnSubtree:t,selectedNode:n}){const a=Zi(),r=n.mapOr(()=>{},e=>()=>t(e.i,e.j));return e(mc,{placement:"top",title:a.collapseNodesAbove,children:e("div",{children:e(Ns,{disabled:!n.isJust,onClick:r,className:af.collapseNodeButton,"aria-label":a.collapseNodesAbove,children:e(gr,{icon:Lo.faCompressAlt})})})})}function ff({isFlamegraphDirty:t,reset:n}){const a=Zi();return e(mc,{placement:"top",title:a.resetView,children:e("span",{children:e(Ns,{id:"reset",disabled:!t,onClick:n,className:af.resetViewButton,"aria-label":a.resetView,children:e(gr,{icon:Zs.faUndo})})})})}function uf({fitMode:a,updateFitMode:r}){const o=Zi(),i=e=>a===e;return t(n,{children:[e(mc,{placement:"top",title:o.headFirst,children:e(Ns,{onClick:()=>r("HEAD"),className:rf({[af.fitModeButton]:!0,[af.selected]:i("HEAD")}),children:e(pl,{})})}),e(mc,{placement:"top",title:o.tailFirst,children:e(Ns,{onClick:()=>r("TAIL"),className:rf({[af.fitModeButton]:!0,[af.selected]:i("TAIL")}),children:e(gl,{})})})]})}const df=(t,n)=>"single"===t?[{label:n.viewFlamegraph,value:"flamegraph",Icon:hl},{label:n.viewTable,value:"table",Icon:ul},{label:n.viewTableAndFlamegraph,value:"both",Icon:dl},{label:n.viewSandwich,value:"sandwich",Icon:ml},{label:n.viewGraphviz,value:"graphviz",Icon:()=>e(gr,{icon:rc.faProjectDiagram})}]:[{label:n.viewFlamegraph,value:"flamegraph",Icon:hl},{label:n.viewTable,value:"table",Icon:ul},{label:n.viewTableAndFlamegraph,value:"both",Icon:dl}];function hf({view:t,updateView:n,flamegraphType:a}){const r=Zi(),o=df(a,r);return e("div",{className:af.viewType,children:o.map(({label:a,value:r,Icon:o})=>e(mc,{placement:"top",title:a,children:e(Ns,{"data-testid":r,onClick:()=>n(r),className:rf({[af.toggleViewButton]:!0,selected:t===r}),children:e(o,{})})},r))})}function mf(e,t){const n={},a={};let r={name:"total",children:[],self:[],total:[],key:"/total"};return(t?[e,t]:[e]).forEach((e,t)=>{var o,i;for(let l=0;l<e.levels.length;l+=1)for(let s=0;s<e.levels[l].length;s+=4){const c=[t,l,s].join("/"),f=e.names[e.levels[l][s+3]],u=e.levels[l][s+0],d=e.levels[l][s+1],h=e.levels[l][s+2];let m="";if(0!==l){const n=l-1,r=e.levels[n];for(let e=0;e<r.length;e+=4){const o=r[e+0],i=r[e+1];if(u>=o&&u<o+i){const r=[t,n,e].join("/");m=a[r].key;break}}}const p=[m||"",f].join("/"),g=!n[p];n[p]||(n[p]={name:f,children:[],self:[],total:[],key:p});const v=n[p];(o=v.total)[t]||(o[t]=0),v.total[t]+=d,(i=v.self)[t]||(i[t]=0),v.self[t]+=h,a[c]=v,m&&g&&n[m].children.push(v),0===l&&(r=v)}}),r}const pf=e=>{const t={maxSelf:100,names:[],levels:[]},n=(e,a,r)=>{var o;const{name:i,children:l,self:s,total:c,offset:f}=e;t.names.push(i),(o=t.levels)[a]||(o[a]=[]),t.maxSelf=Math.max(t.maxSelf,s[0]||0),t.levels[a]=t.levels[a].concat([r,c[0]||0,s[0]||0,t.names.length-1]);for(let e=0;e<l.length;e+=1){r+=n(l[e],a+1,r)}return f||c[0]||0};return n(e,0,0),t};function gf(e){const t=new Map;for(let n=0;n<e.children.length;n+=1)t.has(e.children[n].name)||t.set(e.children[n].name,e.children[n]);for(let n=0;n<e.children.length;n+=1){const a=e.children[n],r=t.get(e.children[n].name);r&&r!==a&&(r.total[0]+=a.total[0],r.self[0]+=a.self[0],r.children=r.children.concat(a.children))}e.children=Array.from(t.values());for(let t=0;t<e.children.length;t+=1)gf(e.children[t])}function vf(e,t){const n=function(e,t){const n=mf(e),a={format:"single",numTicks:0,maxSelf:100,sampleRate:100,names:[],levels:[],units:e.units,spyName:e.spyName},r={name:t,total:[],self:[0],children:[]},o=e=>{e.name===t&&(a.numTicks+=e.total[0],r.total=[a.numTicks],r.children=r.children.concat(e.children));for(let t=0;t<e.children.length;t+=1)o(e.children[t])};return o(n),gf(r),{...a,...pf(r)}}(JSON.parse(JSON.stringify(e)),t);return n}function bf(e,t){const n=function(e,t){const n=mf(e),a={format:"single",maxSelf:100,sampleRate:100,numTicks:0,names:[],levels:[],units:e.units,spyName:e.spyName},r=[],o=[],i={name:t,total:[0],self:[0],children:[]},l=(e,n=[])=>{const i=n.concat([{...e,children:[]}]);e.name===t&&(o.push(i),r.push(e.total[0]),a.numTicks+=e.total[0]);for(let t=0;t<e.children.length;t+=1)l(e.children[t],i)};l(n),o.forEach((e,t)=>{i.children.push(((e,t)=>{const n={};let a=n;return e.forEach(({name:e,...n})=>{const r={name:e,...n,total:[t]};a.children=[r],a=r}),n.children[0]})(e.reverse(),r[t]))}),gf(i);const s=pf(i);return s.levels=s.levels.reverse().slice(0,-1),{...a,...s}}(JSON.parse(JSON.stringify(e)),t);return n}var yf={flamegraphContainer:"FlamegraphRenderer-module_flamegraphContainer__-7FRV",createdBy:"FlamegraphRenderer-module_createdBy__rHAOT",horizontal:"FlamegraphRenderer-module_horizontal__zs7--",vertical:"FlamegraphRenderer-module_vertical__fRcHg",panesWrapper:"FlamegraphRenderer-module_panesWrapper__L-mlA",tablePane:"FlamegraphRenderer-module_tablePane__Gin7Y",sandwichPane:"FlamegraphRenderer-module_sandwichPane__IEOyR",sandwichPaneInfo:"FlamegraphRenderer-module_sandwichPaneInfo__5hT4a",arrow:"FlamegraphRenderer-module_arrow__dPzpE",sandwichTop:"FlamegraphRenderer-module_sandwichTop__7N0ZY",sandwichBottom:"FlamegraphRenderer-module_sandwichBottom__Dc64g",name:"FlamegraphRenderer-module_name__XRbN9"};function wf(e){const t=[];return Object.keys(e).forEach(n=>{var a;t.push(`${n}="${a=String(e[n]||""),a.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`)}),`[${t.join(" ")}]`}function xf(e,t){return`${(100*e/t).toFixed(2)}%`}function kf(e,t){let n,a,r,o;t?(n=.1,a=.93):(n=1,a=.7),e=Math.max(-1,Math.min(1,e)),Math.abs(e)<.2&&(n*=Math.abs(e)/.2),e>0&&(e**=1-.7),e<0&&(e=-((-e)**(1-.7))),e<0?(o=a,r=a*(1+n*e)):(r=a,o=a*(1-n*e));const i=a*(1-n);return`#${Math.floor(255*r).toString(16).padStart(2,"0")}${Math.floor(255*o).toString(16).padStart(2,"0")}${Math.floor(255*i).toString(16).padStart(2,"0")}`}function Nf(e,t,n,a){const{self:r}=t,{total:o}=t,i=t.name.replace(/"/g,'\\"'),l=e(r),s=8+Math.ceil(16*Math.sqrt(r/n)),c=kf(o/a,!1),f=kf(o/a,!0),u=function(e,t,n,a,r){let o="";o=`${function(e){return e.replace(/.*\//,"")}(t)}\n`;const i=e(n);0!==n?o=`${o+i} (${xf(n,r)})`:o+="0";let l=i;a!==n&&(o+=0!==n?"\n":" ",l=e(a),o=`${o}of ${l} (${xf(a,r)})`);return o}(e,i,r,o,a),d={label:u,id:`node${t.index}`,fontsize:s,shape:"box",tooltip:`${i} (${l})`,color:c,fontcolor:"#000000",style:"filled",fontname:"",fillcolor:f};return`N${t.index} ${wf(d)}`}function Sf(e){if("double"===e.metadata.format)return"diff flamegraphs are not supported";const t=mf(e.flamebearer),n=[],a=[];const[r,o,,i]=function e(t,n,a,r,o){return t.children.forEach(t=>{const[i,l]=e(t,n,a,r,o);n=Math.max(n,i),a=Math.max(a,l)}),n=Math.max(n,t.self[0]),a=Math.max(a,t.total[0]),r+=t.self[0],o+=t.total[0],[n,a,r,o]}(t,0,0,0,0),{sampleRate:l,units:s}=e.metadata,c=$r(o,l,s),f=e=>c.format(e,l,!0);let u={};const d={};let h=0;function m(e,t){return-1===t.indexOf(e.name)&&(u[e.name]?(u[e.name].self+=e.self[0],u[e.name].total+=e.total[0]):(h+=1,u[e.name]={index:h,name:e.name,self:e.self[0],total:e.total[0],parents:[],children:[]})),e.children.forEach(n=>{const a=m(n,t.concat([e.name])),r=`${e.name}/${n.name}`;n.name!==e.name&&(d[r]?d[r].weight+=n.total[0]:d[r]={from:u[e.name],to:a,weight:n.total[0],residual:!1},a.parents.push(d[r]),u[e.name].children.push(d[r]))}),u[e.name]}t.children.forEach(e=>{m(e,[])});const p=.005*i,g=.001*i;function v(e,t){let n=0,a=t;if(e.forEach(e=>{e.weight>0&&(a+=Math.abs(e.weight))}),0!==a&&(e.forEach(e=>{const t=Math.abs(e.weight)/a;n+=-t*Math.log2(t)}),t>0)){const e=Math.abs(t)/a;n+=-e*Math.log2(e)}return n}Object.keys(u).forEach(e=>{u[e].total<p&&delete u[e]});const b={};Object.keys(u).forEach(e=>{b[u[e].name]=function(e){let t=0;return 0===e.parents.length?t+=1:t+=v(e.parents,0),0===e.children.length?t+=1:t+=v(e.children,e.self),t*e.total+e.self}(u[e])});const y=Object.values(u).sort((e,t)=>{const n=b[e.name],a=b[t.name];return n!==a?a-n:e.name!==t.name?e.name<t.name?-1:1:e.self!==t.self?a-n:e.name<t.name?-1:1}),w={};function x(e){const[t,n]=[e.from,e.to],a={},r=[n];for(;r.length>0;){const n=r.shift();for(let o=0;o<n.parents.length;o+=1){const i=n.parents[o];if(e!==i&&!a[i.from.name]){if(i.from===t)return!0;a[i.from.name]=!0,r.push(i.from)}}}return!1}return y.forEach(e=>{w[e.name]=e}),y.slice(80).forEach(e=>{delete w[e.name]}),function e(t,n){const a=!w[t.name];t.children.forEach(r=>{const o=!w[r.name];if(e(r,a?n:t),!o&&n&&a){const e=`${n.name}/${r.name}`;d[e]||(d[e]={from:u[n.name],to:u[r.name],weight:0,residual:!0}),d[e].weight+=r.total[0],d[e].residual=!0}})}(t,null),u=w,y.reverse().forEach(e=>{const t=e.parents.sort((e,t)=>t.weight-e.weight),n=[];for(let e=0;e<t.length;e+=1){const a=t[e];if(!a.residual)break;x(a)&&(n.push(a),delete d[`${a.from.name}/${a.to.name}`])}n.forEach(e=>{e.from.children=e.from.children.filter(t=>t.to!==e.to),e.to.parents=e.to.parents.filter(t=>t.from!==e.from)})}),Object.keys(d).forEach(e=>{const t=d[e];u[t.from.name]||delete d[e],u[t.to.name]||delete d[e],t.weight<g&&delete d[e]}),Object.keys(u).forEach(e=>{n.push(Nf(f,u[e],r,o))}),Object.keys(d).forEach(e=>{a.push(function(e,t,n){const a=t.from.name.replace(/"/g,'\\"'),r=t.to.name.replace(/"/g,'\\"'),o=t.weight,i=e(t.weight),l=`${a} -> ${r} (${i})`,s={label:i,weight:1+100*o/n,penwidth:1+5*o/n,tooltip:l,labeltooltip:l,fontname:"",color:kf(o/n,!1),style:t.residual?"dotted":""};return`N${t.from.index} -> N${t.to.index} ${wf(s)}`}(f,d[e],o))}),`digraph "unnamed" {\n fontname= ""\n ${n.join("\n")}\n ${a.join("\n")}\n }`}var Tf="GraphVizPanel-module_graphVizPane__B18cQ";const Cf=()=>null;function _f({flamebearer:t}){var n,a;const r=t,i=(null===(n=r.metadata)||void 0===n?void 0:n.format)&&(null===(a=r.flamebearer)||void 0===a?void 0:a.levels),l=`graphviz-pane-${(null==r?void 0:r.appName)||String((new Date).valueOf())}`,s=o(()=>Sf(r),[JSON.stringify(r)]);return e("div",{className:Tf,children:i?e(Cf,{options:{zoom:!0,width:"150%",height:"100%",scale:1,useWorker:!1},dot:s}):e("div",{children:"NO DATA"})},l)}function Mf(e){let t=2166136261;const n=e.length;if(0===n)return t>>>0;const a=[0,Math.floor(n/2),n-1];for(let n=0;n<a.length;n+=1){const r=e[a[n]];if(!r||0===r.length)continue;const o=Math.min(8,r.length);for(let e=0;e<o;e+=1)t^=0|r[e],t=Math.imul(t,16777619);for(let e=Math.max(0,r.length-o);e<r.length;e+=1)t^=0|r[e],t=Math.imul(t,16777619)}return t>>>0}function Rf(e){let t=2166136261;const n=e.length;if(0===n)return t>>>0;const a=Math.min(32,n),r=[...Array.from({length:a},(e,t)=>t),...Array.from({length:a},(e,t)=>n-a+t)];for(let n=0;n<r.length;n+=1){const a=e[r[n]]||"";for(let e=0;e<a.length;e+=1)t^=a.charCodeAt(e),t=Math.imul(t,16777619)}return t>>>0}function Pf(e){var t,n,a,r,o,i;const l=e.__kylinSignature;if(l)return l;const s=e,c=[e.format,e.numTicks,e.sampleRate,e.units,e.maxSelf,null!==(n=null===(t=e.names)||void 0===t?void 0:t.length)&&void 0!==n?n:0,null!==(r=null===(a=e.levels)||void 0===a?void 0:a.length)&&void 0!==r?r:0,null!==(o=s.leftTicks)&&void 0!==o?o:"na",null!==(i=s.rightTicks)&&void 0!==i?i:"na",Mf(e.levels),Rf(e.names||[])].join("|");return e.__kylinSignature=c,c}function Ff(e,t){const n=[...t];function a(e,t,n){for(const a of e){let e=0;for(let r=t;r<a.length;r+=n)a[r]-=e,e+=a[r]+a[r+1]}}return"double"===e?(a(n,0,7),a(n,3,7)):a(n,0,4),n}function If(e,t){const n=[...t];function a(e,t,n){for(const a of e){let e=0;for(let r=t;r<a.length;r+=n)a[r]+=e,e=a[r]+a[r+1]}}return"double"===e?(a(n,0,7),a(n,3,7)):a(n,0,4),n}function jf(e){if(e.profile&&e.flamebearer&&console.warn("'profile' and 'flamebearer' properties are mutually exclusive. Please use profile if possible."),e.profile){const n=e.profile,a={...n,flamebearer:{...n.flamebearer}};n.__kylinDecoded||((t=a).flamebearer.levels=If(t.metadata.format,t.flamebearer.levels),n.__kylinDecoded=!0,a.__kylinDecoded=!0);const r={...a,...a.metadata,...a.flamebearer,flamebearer:void 0,metadata:void 0};return delete r.flamebearer,delete r.metadata,r}var t;if(e.flamebearer)return e.flamebearer;return{format:"single",names:[],units:"unknown",levels:[[]],spyName:"unknown",numTicks:0,sampleRate:0,maxSelf:0}}class Ef extends k{constructor(n){super(n),this.resetFlamegraphState={focusedNode:N.nothing(),zoom:N.nothing()},this.initialFlamegraphState=this.resetFlamegraphState,this.calcNewConfigs=(e,t)=>{const n=this.state.flamegraphConfigs,a=(e,t,n)=>{const a=(e,t,n)=>e.names[_r(e.format).getBarName(e.levels[t],n)];if(n.isNothing)return!0;try{const r=n,o=a(e,r.value.i,r.value.j);return o===a(t,r.value.i,r.value.j)}catch{return!1}};a(e,t,this.state.flamegraphConfigs.zoom)||(n.zoom=this.resetFlamegraphState.zoom);return a(e,t,this.state.flamegraphConfigs.focusedNode)||(n.focusedNode=this.resetFlamegraphState.focusedNode),n},this.onSearchChange=e=>{this.setState({searchQuery:e})},this.isSameFlamebearer=(e,t)=>function(e,t){return Pf(e)===Pf(t)}(e,t),this.onReset=()=>{this.setState({...this.state,flamegraphConfigs:{...this.state.flamegraphConfigs,...this.initialFlamegraphState},selectedItem:N.nothing()})},this.onFlamegraphZoom=e=>{e.isJust&&0===e.value.i&&0===e.value.j?this.onReset():this.setState({...this.state,flamegraphConfigs:{...this.state.flamegraphConfigs,zoom:e}})},this.onFocusOnNode=(e,t)=>{if(0===e&&0===t)return void this.onReset();let n={...this.state.flamegraphConfigs};const{zoom:a}=this.state.flamegraphConfigs;a.isJust&&a.value.i<=e&&(n={...n,zoom:this.initialFlamegraphState.zoom}),this.setState({...this.state,flamegraphConfigs:{...n,focusedNode:N.just({i:e,j:t})}})},this.isNameInFocusedSubtree=e=>{const{focusedNode:t}=this.state.flamegraphConfigs;if(t.isNothing)return!0;const{flamebearer:n}=this.state;if(!n||!n.levels)return!0;const{names:a,levels:r,format:o}=n,i=_r(o),l=t.value.i,s=t.value.j,c=r[l];if(!c)return!0;const f=i.getBarOffset(c,s),u=f+i.getBarTotal(c,s);for(let t=l;t<r.length;t++){const n=r[t];for(let t=0;t<n.length;t+=i.jStep){const r=i.getBarOffset(n,t),o=i.getBarTotal(n,t);if(r>=f&&r+o<=u){if(a[i.getBarName(n,t)]===e)return!0}}}return!1},this.setActiveItem=e=>{const{name:t}=e;if(this.state.selectedItem.isJust&&t===this.state.selectedItem.value)return void this.setState({selectedItem:N.nothing()});this.isNameInFocusedSubtree(t)?this.setState({selectedItem:N.just(t)}):this.setState({selectedItem:N.just(t),flamegraphConfigs:{...this.state.flamegraphConfigs,focusedNode:this.resetFlamegraphState.focusedNode}})},this.getHighlightQuery=()=>this.state.selectedItem.isJust?this.state.selectedItem.value:this.state.searchQuery,this.updateView=e=>{"sandwich"===e&&this.setState({searchQuery:"",flamegraphConfigs:this.resetFlamegraphState}),this.setState({view:e})},this.updateFlamegraphDirtiness=()=>{const e=this.isDirty();this.setState({isFlamegraphDirty:e})},this.updateFitMode=e=>{this.setState({fitMode:e})},this.clearFocus=()=>{this.setState(e=>({...e,flamegraphConfigs:{...e.flamegraphConfigs,...this.resetFlamegraphState}}))},this.getActiveRange=()=>{const{flamebearer:e}=this.state,{zoom:t,focusedNode:n}=this.state.flamegraphConfigs,a=e.numTicks;if(!a)return{rangeMin:0,rangeMax:1};const r=_r(e.format),o=t=>{const n=e.levels[t.i];if(!n)return{rangeMin:0,rangeMax:1};const o=r.getBarOffset(n,t.j),i=r.getBarTotal(n,t.j);return{rangeMin:o/a,rangeMax:(o+i)/a}};return t.match({Just:e=>n.match({Just:t=>{const n=o(t),a=o(e);return n.rangeMax-n.rangeMin<a.rangeMax-a.rangeMin?n:a},Nothing:()=>o(e)}),Nothing:()=>n.match({Just:e=>o(e),Nothing:()=>({rangeMin:0,rangeMax:1})})})},this.isDirty=()=>this.state.selectedItem.isJust||JSON.stringify(this.initialFlamegraphState)!==JSON.stringify(this.state.flamegraphConfigs),this.handleSetPalette=e=>{this.setState({palette:e})},this.render=()=>{var n;const a=e("div",{className:ho(yf.tablePane,"vertical"===this.state.panesOrientation?yf.vertical:yf.horizontal),children:e(Vs,{"data-testid":"table-view",flamebearer:this.state.flamebearer,fitMode:this.state.fitMode,highlightQuery:this.state.searchQuery,selectedItem:this.state.selectedItem,handleTableItemClick:this.setActiveItem,palette:this.state.palette,onFocusOnNode:this.onFocusOnNode,updateView:this.props.onlyDisplay?void 0:this.updateView,enableSandwichView:this.props.enableSandwichView})},"table-pane"),r=this.shouldShowToolbar(),o=!this.state.flamebearer||this.state.flamebearer.names.length<=1,i=this.context,l="Location"!==i.location,s=this.state.flamebearer.numTicks,c=$r(s,this.state.flamebearer.sampleRate,this.state.flamebearer.units).format(s,this.state.flamebearer.sampleRate),f=Lr(c,l)||c,u=function(e,t=Ar){const n=Math.abs(e);for(const{value:a,label:r}of t)if(n>=a)return`${(e/a).toFixed(2).replace(/\.?0+$/,"")} ${r}`;return Br(e)}(s,i.sampleCountFormat),d=i.tooltipSamples.replace(/[::]\s*$/,""),h=(null===(n=i.tooltipUnitTitles[this.state.flamebearer.units])||void 0===n?void 0:n.formattedValue)||i.tooltipUnitTitles.unknown.formattedValue,m=this.getActiveRange(),p=m.rangeMin>0||m.rangeMax<1,g=Math.max(0,Math.min(s,(m.rangeMax-m.rangeMin)*s)),v=s>0?g/s*100:0,b=(()=>{const e=_r(this.state.flamebearer.format),t=this.state.flamegraphConfigs.focusedNode.mapOrElse(()=>this.state.flamegraphConfigs.zoom.mapOrElse(()=>null,e=>e),e=>e);if(!t)return"";const n=this.state.flamebearer.levels[t.i];if(!n)return"";const a=e.getBarName(n,t.j);return this.state.flamebearer.names[a]||""})(),y=e(Bl,{showCredit:this.props.showCredit,flamebearer:this.state.flamebearer,highlightQuery:this.getHighlightQuery(),setActiveItem:this.setActiveItem,selectedItem:this.state.selectedItem,updateView:this.props.onlyDisplay?void 0:this.updateView,fitMode:this.state.fitMode,updateFitMode:this.updateFitMode,zoom:this.state.flamegraphConfigs.zoom,focusedNode:this.state.flamegraphConfigs.focusedNode,onZoom:this.onFlamegraphZoom,onFocusOnNode:this.onFocusOnNode,onReset:this.onReset,isDirty:this.isDirty,palette:this.state.palette,toolbarVisible:r,setPalette:this.handleSetPalette,enableSandwichView:this.props.enableSandwichView,breadcrumb:o?void 0:{totalValueText:f,totalSamplesText:u,samplesLabel:d,unitLabel:h,hasFocus:p,focusPercent:v,focusLabel:b,ofTotalPlacement:l?"before":"after",ofTotalLabel:i.ofTotal,clearFocusLabel:i.clearFocus,onClearFocus:this.clearFocus}},"flamegraph-pane"),w=(()=>{if("sandwich"!==this.state.view)return e("div",{className:yf.sandwichPane},"sandwich-pane");if(this.state.selectedItem.isNothing)return e("div",{className:yf.sandwichPane,children:t("div",{className:ho(yf.sandwichPaneInfo,"vertical"===this.state.panesOrientation?yf.vertical:yf.horizontal),children:[e("div",{className:yf.arrow}),"Select a function to view callers/callees sandwich view"]})},"sandwich-pane");const n=bf(this.state.flamebearer,this.state.selectedItem.value),a=vf(this.state.flamebearer,this.state.selectedItem.value),o=t=>e(Bl,{disableClick:!0,showCredit:this.props.showCredit,highlightQuery:"",setActiveItem:this.setActiveItem,selectedItem:this.state.selectedItem,fitMode:this.state.fitMode,updateFitMode:this.updateFitMode,zoom:this.state.flamegraphConfigs.zoom,focusedNode:this.state.flamegraphConfigs.focusedNode,onZoom:this.onFlamegraphZoom,onFocusOnNode:this.onFocusOnNode,onReset:this.onReset,isDirty:this.isDirty,palette:this.state.palette,toolbarVisible:r,setPalette:this.handleSetPalette,...t});return t("div",{className:yf.sandwichPane,children:[t("div",{className:yf.sandwichTop,children:[e("span",{className:yf.name,children:"Callers"}),o({flamebearer:n})]}),t("div",{className:yf.sandwichBottom,children:[e("span",{className:yf.name,children:"Callees"}),o({flamebearer:a,headerVisible:!1,showSingleLevel:!0})]})]},"sandwich-pane")})(),x=function(e,t,n,a,r){switch(e){case"table":return[n];case"flamegraph":return[t];case"sandwich":return[n,a];case"both":return[n,t];case"graphviz":return[r];default:throw new Error(`Invalid view '${e}'`)}}(this.state.view,y,a,w,e(_f,{flamebearer:this.state.flamebearer}));return t("div",{children:[t("div",{children:[r&&e(sf,{sharedQuery:this.props.sharedQuery,enableChangingDisplay:!this.props.onlyDisplay,flamegraphType:this.state.flamebearer.format,view:this.state.view,handleSearchChange:this.onSearchChange,reset:this.onReset,updateView:this.updateView,updateFitMode:this.updateFitMode,fitMode:this.state.fitMode,isFlamegraphDirty:this.isDirty(),selectedNode:this.state.flamegraphConfigs.zoom,highlightQuery:this.state.searchQuery,onFocusOnSubtree:this.onFocusOnNode,ExportData:this.props.ExportData,palette:this.state.palette,setPalette:this.handleSetPalette}),this.props.children,e("div",{className:`${yf.flamegraphContainer} ${ho("vertical"===this.state.panesOrientation?yf.vertical:yf.horizontal,yf[this.state.panesOrientation],yf.panesWrapper)}`,children:o?e(po,{}):x.map(e=>e)})]}),this.props.showPyroscopeLogo&&t("div",{className:yf.createdBy,children:["Created by",t("a",{href:"https://twitter.com/PyroscopeIO",rel:"noreferrer",target:"_blank",children:[e(j,{width:"30",height:"30"}),"@PyroscopeIO"]})]})]})},this.state={isFlamegraphDirty:!1,view:this.props.onlyDisplay?this.props.onlyDisplay:"both",fitMode:"HEAD",flamebearer:jf(n),panesOrientation:n.panesOrientation?n.panesOrientation:"horizontal",searchQuery:"",selectedItem:N.nothing(),flamegraphConfigs:this.initialFlamegraphState,palette:$i}}componentDidUpdate(e,t){if(e.profile!==this.props.profile||e.flamebearer!==this.props.flamebearer){const e=t.flamebearer,n=jf(this.props);if(!this.isSameFlamebearer(e,n)){const t=this.calcNewConfigs(e,n);return void this.setState({flamebearer:n,flamegraphConfigs:{...this.state.flamegraphConfigs,...t},selectedItem:N.nothing()})}}t.flamegraphConfigs!==this.state.flamegraphConfigs&&this.updateFlamegraphDirtiness()}shouldShowToolbar(){return void 0===this.props.showToolbar||this.props.showToolbar}}Ef.contextType=Yi,Ef.defaultProps={showCredit:!1};const Bf={showPyroscopeLogo:!1},Df=(e,t)=>{if(t)return t;const n=null!=e?e:"auto";return"zh-CN"===("auto"===n?"undefined"!=typeof navigator&&navigator.language&&navigator.language.toLowerCase().startsWith("zh")?"zh-CN":"en":n)?Ji:Qi},Lf=t=>{const{i18n:n,locale:r,colorMode:o="light",sandwich:i=!0,...l}=t,s=a.useMemo(()=>Df(r,n),[r,n]),c=a.useMemo(()=>(e=>{switch(e){case"dark":return"ps-theme-dark";case"kylin":return"ps-theme-kylin";default:return"ps-theme-light"}})(o),[o]);return e("pyro-flamegraph",{className:c,children:e(qi,{messages:s,children:e(Ef,{...Bf,enableSandwichView:i,...l})})})};function Af(e){const t={numTicks:0,maxSelf:0,names:[],levels:[]},n={},a={children:[]};return e.spans.forEach(e=>{e.children=[],n[e.spanID]=e}),e.spans.forEach(e=>{let t=a;e.references&&e.references.length>0&&(t=n[e.references[0].spanID]||a),t.children.push(e)}),function e(t,n){(t.children||[]).forEach(t=>e(t));let a=0;const r=E(t.children||[],e=>e.operationName);t.children=B(r,e=>{const t=e[0];for(let n=1;n<e.length;n+=1)t.duration+=e[n].duration;return a+=t.duration,t}),t.total=t.duration||a,t.self=Math.max(0,t.total-a)}(a),function n(a,r,o){var i;return t.numTicks||(t.numTicks=a.total),(i=t.levels)[r]||(i[r]=[]),t.levels[r].push(o),t.levels[r].push(a.total),t.levels[r].push(a.self),t.names.push((a.processID?`${e.processes[a.processID].serviceName}: `:"")+(a.operationName||"total")),t.levels[r].push(t.names.length-1),(a.children||[]).forEach(e=>{o+=n(e,r+1,o)}),a.total}(a,0,0),t.levels=Ff("single",t.levels),{version:1,flamebearer:t,metadata:{format:"single",units:"trace_samples",spyName:"tracing",sampleRate:1e6}}}function Of(e,t){e.flamebearer.levels=If("single",e.flamebearer.levels),t.flamebearer.levels=If("single",t.flamebearer.levels);const n=function(e,t){const n={format:"double",numTicks:e.numTicks+t.numTicks,leftTicks:e.numTicks,rightTicks:t.numTicks,maxSelf:100,sampleRate:e.sampleRate,names:[],levels:[],units:e.units,spyName:e.spyName},a=mf(e,t),r=(e,t,a,o)=>{var i;const{name:l,children:s,self:c,total:f}=e;n.names.push(l),(i=n.levels)[t]||(i[t]=[]),n.maxSelf=Math.max(n.maxSelf,c[0]||0,c[1]||0),n.levels[t]=n.levels[t].concat([a,f[0]||0,c[0]||0,o,f[1]||0,c[1]||0,n.names.length-1]);for(let e=0;e<s.length;e+=1){const[n,i]=r(s[e],t+1,a,o);a+=n,o+=i}return[f[0]||0,f[1]||0]};return r(a,0,0,0),n}(e.flamebearer,t.flamebearer);n.levels=Ff("double",n.levels);const a={...e.metadata};return a.format="double",{version:1,flamebearer:n,metadata:a,leftTicks:e.flamebearer.numTicks,rightTicks:t.flamebearer.numTicks}}export{br as Box,$i as DefaultPalette,fo as Flamegraph,qi as FlamegraphI18nProvider,Lf as FlamegraphRenderer,Af as convertJaegerTraceToProfile,Of as diffTwoProfiles,Qi as flamegraphDefaultMessages,Ji as flamegraphZhCNMessages};
|
|
18
18
|
//# sourceMappingURL=index.node.esm.js.map
|