@kylincloud/flamegraph 0.35.25 → 0.35.26
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 +8 -0
- package/dist/ProfilerTable.d.ts.map +1 -1
- package/dist/Tooltip/FlamegraphTooltip.d.ts.map +1 -1
- 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 +2 -2
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.esm.js +2 -2
- package/dist/index.node.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/ProfilerTable.tsx +28 -6
- package/src/Tooltip/FlamegraphTooltip.tsx +10 -5
- package/src/sass/flamegraph.scss +27 -6
- package/src/shims/Table.module.scss +30 -1
package/dist/index.node.esm.js
CHANGED
|
@@ -9,10 +9,10 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import a,{useId
|
|
|
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 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=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,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 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,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",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"],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=Q({},he);lt[pe]=Q(Q(Q(Q({},{"fa-duotone":"duotone"}),he[pe]),De),Oe);var st=it(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=it(ct),ut=Q({},Ue);ut[pe]=Q(Q({},ut[pe]),{fak:"fa-kit"});var dt=it(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"}),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(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=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: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}}),ie.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 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 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 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:At}}},hooks:function(){return{beforeDOMElementCreation:function(){At()},beforeI2svg:function(){At()}}}},Ot=ie||{};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,o=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(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 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],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},{})};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],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(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],o=e in Lt.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=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)})),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=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}}(o)),{},{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,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]=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,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 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,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:Q(Q({},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=Q(Q({},g),{},{prefix:r,iconName:o,main:n,mask:a,maskId:s,transform:i,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,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:Q(Q({},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=Rt(Q(Q({},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=Q(Q({},o.attributes),{},{class:o.classes.join(" ")});l&&(s[Ge]="");var c=Q({},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/Ct-a/2,"em, ").concat(t.y/Ct-o/2,"em) "):"translate(calc(-50% + ".concat(t.x/Ct,"em), calc(-50% + ").concat(t.y/Ct,"em)) "),i+="scale(".concat(t.size/Ct*(t.flipX?-1:1),", ").concat(t.size/Ct*(t.flipY?-1:1),") "),i+"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 o=fn(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&En[t]&&En[t][e])return a(An(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(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 o=n.map(function(e){return Vt(e)}).join("\n");t.setAttribute(Ge,""),t.innerHTML=o}};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=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 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,o=e.pseudoElementsCallback,i=void 0===o?Hn:o,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&&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(Pt(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(Pt(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 Q({iconName:a,prefix:r,transform:Tt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:s,attributes:i}},l)}var ra=Lt.styles;function oa(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 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(Ae),Y(Je)):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){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;oa(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,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 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: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: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=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([On(n,a),i.iconName?On(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=Rt(e.styles);return i.length>0&&(a.style=i),It(o)&&(t=Cn("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 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,o=void 0===r?{}:r,i=t.styles,l=void 0===i?{}:i;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 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?Tt: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 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(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=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 o,i,l,s=Mt(e.children).filter(function(e){return e.getAttribute(qe)===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: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 o=In(Q(Q({},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(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 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(),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,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: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,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: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(i||_t()),b="clip-".concat(i||_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;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: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"}),o={tag:"circle",attributes:Q(Q({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.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(o),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),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=Aa(n);t[e.startsWith("webkit")?Da(e):e]=a}}}n=o+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)),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=La(String(t));break;case e.startsWith("aria-"):case e.startsWith("data-"):i[e.toLowerCase()]=t;break;default:i[Aa(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",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",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(Ja),r&&x.push(Qa),o&&x.push(Xa),i&&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(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(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: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 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: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 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]||"",o=a[2],i=(a[3]||"").trim(),l=parseFloat(o);return Number.isFinite(l)?{value:l,unit:i,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 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 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 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,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,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 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 eo={collapsedLevelsSingular:"total (1 level collapsed)",collapsedLevelsPlural:"total ({n} levels collapsed)",isZh:!1};function to(e){const t=!1!==e.renderRects,n=!1!==e.renderText,{canvas:a,fitMode:r,units:o,tickToX:i,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||eo,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,o),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 o=Kr(t,e[r]||"")||"";a[r]=Gr(n,o)}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)),o=Xr({mode:r,charSize:M,rectWidth:e,fullText:a,shortText:a}),i=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(i,0));w.fillText(o.text,t+o.marginLeft,l+s/2+1),w.restore()}}for(let a=0;a<l.length-S;a+=1){const o=l[S+a];if(!o)throw new Error(`Could not find level: ${S+a}`);for(let l=0;l<o.length;l+=y.jStep){const c=y.getBarOffset(o,l),d=i(c),h=a*jr+C,p=Er,v=T&&E(o,l);let N=y.getBarTotal(o,l);const S=N*u<=5;if(S)for(;l<o.length-y.jStep&&c+N===y.getBarOffset(o,l+y.jStep)&&y.getBarTotal(o,l+y.jStep)*u<=5&&v===(T&&E(o,l+y.jStep));)l+=y.jStep,N+=y.getBarTotal(o,l);const _=N*u-(S?0:.5),{spyName:R}=e,A=()=>{const t={level:o,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 oo({...t});case"double":return io({...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=no(P,l,b,o),O=Xr({mode:r,charSize:M,rectWidth:_,fullText:ao(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 no(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 ao(e,t,n,a,r,o){let i=null==o?void 0:o.get(t);if(!i){const e=a.format(t,n);i=Or(e,!!r.isZh)||e,null==o||o.set(t,i)}return`${e} (${i})`}function ro({collapsed:e,highlightModeOn:t,isHighlighted:n}){return e||t&&!n?Zr(200,.66):null}function oo(e){const t=ro(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 o=e.names[r]||"",i=Kr(e.spyName,o)||"";return Gr(e.palette,i).alpha(a)}function io(e){const t=ro(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),o=Br(a),i=Br(r);return e.diffColorFn?e.diffColorFn(Yr(o,i)).alpha(n):function(e,t,n){const a=Yr(t,n);return qr(e)(a)}(e.palette,o,i).alpha(n)}class lo{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=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=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){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:o}=this.flamebearer;switch(o){case"single":to({...r,format:"single"});break;case"double":to({...r,leftTicks:this.flamebearer.leftTicks,rightTicks:this.flamebearer.rightTicks});break;default:throw new Error(`Invalid format: '${o}'`)}}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 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 so(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=so(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function co(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=so(e))&&(a&&(a+=" "),a+=t);return a}var fo="NoData-module_noData__WuuID";function uo(){return e("div",{"data-testid":"no-data",className:fo,children:e("span",{children:"No data available"})})}var ho,mo,po={},go={};function vo(){return ho||(ho=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}(go)),go}function bo(){return mo||(mo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=vo();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}(po)),po}var yo,wo=bo(),xo={};function ko(){return yo||(yo=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}(xo)),xo}var No,So=ko(),Co={};function To(){return No||(No=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}(Co)),Co}var _o,Mo,Po=To(),Fo={},Ro={};function Io(){return _o||(_o=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}(Ro)),Ro}function jo(){return Mo||(Mo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Io();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}(Fo)),Fo}var Eo=jo();const Ao=e=>!!e&&"o"===e[0],Do=P,Oo=(e,t)=>!0===e||!(!e||!e[t]),Lo=(e,t)=>"function"==typeof e?e(t):e,Bo="_szhsinMenu",zo=(e,t)=>Object.defineProperty(t,Bo,{value:e}),$o=(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),Vo=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 Ho(e,t){return{"aria-disabled":e||void 0,tabIndex:t?0:-1}}function Wo(e,t){for(let n=0;n<e.length;n++)if(e[n]===t)return n;return-1}const Uo=({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]),Jo="szh-menu",Qo=i(),Xo=i({}),Yo=i({}),Zo=i({}),Ko=i({}),Go=i({}),qo=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),ei=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),ti=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),ni=Object.freeze({FIRST:"first",LAST:"last"}),ai=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),ri="absolute",oi="none",ii={preventScroll:!0},li=zo("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:Uo({block:"szh-menu-button",modifiers:s,className:t}),children:r})})),si=({className:t,containerRef:n,containerProps:a,children:r,isOpen:i,theming:l,transition:s,onClose:c})=>{const f=Oo(s,"item");return e("div",{...$o({onKeyDown:({key:e})=>{if(e===qo.ESC)Lo(c,{key:e,reason:ti.CANCEL})},onBlur:e=>{i&&!e.currentTarget.contains(e.relatedTarget)&&Lo(c,{reason:ti.BLUR})}},a),className:Uo({block:"szh-menu-container",modifiers:o(()=>({theme:l,itemTransition:f}),[l,f]),className:t}),style:{position:"absolute",...a?.style},ref:n,children:r})},ci=()=>{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)}}},fi=(e,t)=>Math.round(e)===t?e:t,ui=(e,t,n,a)=>{const r=(e=>{const t=e.getBoundingClientRect();return t.width=fi(t.width,e.offsetWidth),t.height=fi(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}}},di=({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}},hi=({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}},mi="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?u:d;function pi(e,t){"function"==typeof e?e(t):e.current=t}const gi=(e,t)=>o(()=>e?t?n=>{pi(e,n),pi(t,n)}:e:t,[e,t]),vi=({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: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(ci),[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(Go),{submenuCtx:re,reposSubmenu:oe=C}=m(Yo),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(ii),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)=>Wo(t,e)-Wo(t,n)),a.sorted=!0};let c,f=-1;switch(t){case ei.RESET:break;case ei.SET:c=r;break;case ei.UNSET:c=e=>e===r?void 0:e;break;case ei.FIRST:s(),f=0,c=i[f];break;case ei.LAST:s(),f=i.length-1,c=i[f];break;case ei.SET_INDEX:s(),f=o,c=i[f];break;case ei.INCREASE:s(),f=l,f<0&&(f=i.indexOf(r)),f++,f>=i.length&&(f=0),c=i[f];break;case ei.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=Oo(Y,"open"),me=Oo(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=(Z?Z.current:Vo(G.current))||window);const r=ui(n,t,pe.menu,K);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 di(w);default:return hi(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}),B({x:s,y:c}),U(f)},[i,w,K,x,I,j,k,N,u,p,g,Z,G,pe]);mi(()=>{de&&(ge(),se.current&&X()),se.current=de},[de,ge,oe]),mi(()=>{V&&!S&&(ie.current.scrollTop=0)},[V,S]),mi(()=>ue,[ue]),d(()=>{let{menu:e}=pe;if(!de||!e)return;if(e=e.addEventListener?e:window,!pe.anchors){pe.anchors=[];let t=Vo(q&&q.current);for(;t&&t!==e;)pe.anchors.push(t),t=Vo(t)}let t=ne;if(pe.anchors.length&&"initial"===t&&(t="auto"),"initial"===t)return;const n=()=>{"auto"===t?Do(()=>ge(!0)):Lo(A,{reason:ti.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=()=>Do(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(ie.current,n);const a=p?.current;return a&&t.observe(a,n),()=>t.disconnect()},[de,te,p,ge]),d(()=>{if(!de)return fe(ei.RESET),void(me||H());const{position:e,alwaysUpdate:t}=R||{},n=()=>{e===ni.FIRST?fe(ei.FIRST):e===ni.LAST?fe(ei.LAST):e>=-1&&fe(ei.SET_INDEX,void 0,e)};if(t)n();else if(T){const e=setTimeout(()=>{const e=ie.current;e&&!e.contains(document.activeElement)&&(e.focus(ii),n())},he?170:100);return()=>clearTimeout(e)}},[de,he,me,T,R,fe]);const be=o(()=>({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=o(()=>({reposSubmenu:Q,submenuCtx:J,overflow:N,overflowAmt:we,parentMenuRef:ie,parentDir:W}),[Q,J,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]),Ce=Uo({block:Jo,element:"arrow",modifiers:Se,className:l.className}),Te=t("ul",{role:"menu","aria-label":n,...Ho(P),...$o({onPointerEnter:re?.off,onPointerMove:e=>{e.stopPropagation(),J.on(ae,()=>{fe(ei.RESET),ie.current.focus(ii)})},onPointerLeave:e=>{e.target===e.currentTarget&&J.off()},onKeyDown:e=>{switch(e.key){case qo.HOME:fe(ei.FIRST);break;case qo.END:fe(ei.LAST);break;case qo.UP:fe(ei.DECREASE,ce);break;case qo.DOWN:fe(ei.INCREASE,ce);break;case qo.SPACE:return void(e.target&&-1!==e.target.className.indexOf(Jo)&&e.preventDefault());default:return}e.preventDefault(),e.stopPropagation()},onAnimationEnd:()=>{"closing"===_&&H(),Lo(M)}},O),ref:gi(b,ie),className:Uo({block:Jo,modifiers:Ne,className:a}),style:{...r,...ke,margin:0,display:"closed"===_?"none":void 0,position:ri,left:L.x,top:L.y},children:[i&&e("li",{"aria-hidden":!0,...l,className:Ce,style:{display:"block",position:ri,left:z.x,top:z.y,...l.style},ref:le}),e(Yo.Provider,{value:xe,children:e(Xo.Provider,{value:be,children:e(Qo.Provider,{value:ce,children:Lo(E,Ne)})})})]});return v?e(si,{...v,isOpen:de,children:Te}):Te},bi=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:C}=y,T=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||Lo(b,e);let n=e.keepOpen;void 0===n&&(n=t&&e.key===qo.SPACE),n||Lo(C,{value:e.value,key:e.key,reason:ti.CLICK})},handleClose(e){Lo(C,{key:e,reason:ti.CLICK})}}),[b,C]);if(!S)return null;const M=e(Go.Provider,{value:T,children:e(Zo.Provider,{value:_,children:e(vi,{...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}),yi=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],wi=e=>({_s:e,status:yi[e],isEnter:e<3,isMounted:6!==e,isResolved:2===e||e>4}),xi=e=>e?6:5,ki=(e,t,n,a,r)=>{clearTimeout(a.current);const o=wi(e);t(o),n.current=o,r&&r({current:o})},Ni=({enter:e=!0,exit:t=!0,preEnter:n,preExit:a,timeout:r,initialEntered:o,mountOnEnter:i,unmountOnExit:l,onStateChange:u}={})=>{const[d,h]=s(()=>wi(o?2:xi(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 xi(t)}})(m.current._s,l);e&&ki(e,h,m,p,u)},[u,l]);return[d,f(r=>{const o=e=>{switch(ki(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:xi(l))},[b,u,e,t,n,a,g,v,l]),b]},Si=({initialOpen:e,initialMounted:t,unmountOnClose:n,transition:a,transitionTimeout:r=500,onMenuChange:o}={})=>{const i=Oo(a,"open"),l=Oo(a,"close"),[{status:s},c,u]=Ni({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:ai[s],endTransition:u},c]},Ci=parseInt(b)<19,Ti=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]=Si(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:ni.FIRST)),N=f(e=>{m(!1),e.key&&x.current.focus()},[m]),S=Lo(o,{open:w});if(!S||!S.type)throw new Error("Menu requires a menuButton prop.");const C={...$o({onKeyDown:e=>{switch(e.key){case qo.UP:b(ni.LAST);break;case qo.DOWN:b(ni.FIRST);break;default:return}e.preventDefault()},...k},S.props),ref:gi(Ci?S.ref:S.props.ref,x)};"MenuButton"===S.type[Bo]&&(C.isOpen=w);const T=v(S,C);return p(i,()=>({openMenu:b,closeMenu:()=>m(!1)})),t(g,{children:[T,e(bi,{...u,...h,"aria-label":n||("string"==typeof S.props.children?S.props.children:"Menu"),anchorRef:x,ref:d,onClose:N})]})}),_i=(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},Mi=(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(Go),{isParentOpen:c,submenuCtx:f,dispatch:u,updateItems:h}=m(Xo),p=()=>{!n&&!a&&u(ei.SET,e.current)},g=()=>{!a&&u(ei.UNSET,e.current)};return((e,t,n)=>{mi(()=>{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()}}},Pi=_i("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}=Mi(u,u,f,p),y=m(Zo),w=m(Ko),x="radio"===r,k="checkbox"===r,N=!(!a||p||x||k),S=x?w.value===n:!!k&&!!i,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),Lo(c,t),x&&Lo(w.onRadioChange,t),y.handleClick(t,k||x)},T=o(()=>({type:r,disabled:p,hover:g||f,checked:S,anchor:N}),[r,p,g,f,S,N]),_=$o({...b,onPointerDown:v,onKeyDown:e=>{if(f)switch(e.key){case qo.ENTER:e.preventDefault();case qo.SPACE:N?u.current.click():C(e)}},onClick:C},h),M={role:x?"menuitemradio":k?"menuitemcheckbox":"menuitem","aria-checked":x||k?S:void 0,...Ho(p,f),..._,ref:gi(d,u),className:Uo({block:Jo,element:"item",modifiers:T,className:t}),children:o(()=>Lo(s,T),[s,T])};return e("li",N?{role:oi,children:e("a",{href:a,...M})}:{...M})}),Fi=y(l(function({className:t,...n},a){return e("li",{role:oi,...n,ref:a,className:Uo({block:Jo,element:"header",className:t})})}));var Ri="canvas-module_canvas__Iiaz4",Ii="canvas-module_textCanvas__eFxM4",ji="Highlight-module_highlight__1VV-X";function Ei(t){const{canvasRef:n,barHeight:r,xyToHighlightData:o,zoom:i}=t,[l,s]=a.useState({height:"0px",visibility:"hidden"});a.useEffect(()=>{s({height:"0px",visibility:"hidden"})},[i]);const c=e=>{const t=o(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:ji,style:l,"data-testid":"flamegraph-highlight"})}var Ai="ContextMenuHighlight-module_highlightContextMenu__WI1nK";const Di={height:"0px",visibility:"hidden"};function Oi(t){const{node:n,barHeight:r}=t,[o,i]=a.useState(Di);return a.useEffect(()=>{n.match({Nothing:()=>i(Di),Just:e=>i({visibility:"visible",height:`${r}px`,...e})})},[n]),e("div",{className:Ai,style:o,"data-testid":"flamegraph-highlight-contextmenu"})}const Li={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)]},Bi={...Li,name:"Color Blind",goodColor:C.rgb(26,133,255),neutralColor:C.rgb(148,142,142),badColor:C.rgb(220,50,32)};function zi(){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 $i(){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 Vi={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 Hi={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"}]},Wi={...Hi,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:"千"}]},Ui=i(Hi),Ji=Ui,Qi=({messages:t,children:n})=>{const r=a.useMemo(()=>{var e;return{...Hi,...t,tooltipUnitTitles:{...Hi.tooltipUnitTitles,...null!==(e=null==t?void 0:t.tooltipUnitTitles)&&void 0!==e?e:{}}}},[t]);return e(Ui.Provider,{value:r,children:n})},Xi=()=>m(Ui);function Yi(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 Zi(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 Ki(e,t,n){return n<t?t:Math.max(t,Math.min(n,e))}function Gi(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=Ki(s,8,r-i-8),c=Ki(c,8,o-l-8),{left:s,top:c}}function qi({shouldShowFooter:r=!0,shouldShowTitle:o=!0,dataSourceRef:i,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}=Gi(e.clientX,e.clientY,t,n);w({top:r,left:a,visibility:"visible"})},[h]);return d(()=>{const e=i.current;return e?(e.addEventListener("mousemove",k),e.addEventListener("mouseout",x),()=>{e.removeEventListener("mousemove",k),e.removeEventListener("mouseout",x)}):()=>{}},[i.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}=Gi(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:co(Vi.tooltip,{[Vi.flamegraphDiffTooltip]:v.tooltipData.length>1}),style:{...y,textAlign:"center"},ref:p,children:v.tooltipData.length>0&&t(n,{children:[o&&e("div",{className:Vi.tooltipName,"data-testid":"tooltip-title",children:v.title.text}),e("div",{className:Vi.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:o}){const i=Xi(),[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=Or(a,c),u=s&&function(e,t){const n=Yi(e),a=Yi(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=Zi(a,o),g=Zi(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:co(Vi.tooltipTable,{[Vi[`${l.tooltipType}${s?"Diff":""}`]]:l.tooltipType}),style:{textAlign:"center",margin:"0 auto"},children:f()})}function tl({clickInfoSide:a}){const r=Xi();let o;switch(a){case"right":o=t(n,{children:[e(zi,{}),e("span",{children:r.rightClickForMoreNodeOptions})]});break;case"left":o=t(n,{children:[e($i,{}),e("span",{children:r.clickToHighlightNode})]});break;default:o=e(n,{})}return e("div",{"data-testid":"tooltip-footer",className:Vi.clickInfo,children:o})}function nl(t){const{format:n,canvasRef:a,xyToData:r,numTicks:o,sampleRate:i,units:l,leftTicks:s,rightTicks:c,palette:u}=t,d=Xi(),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,`${Br(p)}%`),samples:"trace_samples"===l?"":Ar(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=al({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(qi,{dataSourceRef:a,clickInfoSide:"right",setTooltipContent:h,palette:u})}function al({formatter:e,sampleRate:t,totalLeft:n,leftTicks:a,totalRight:r,rightTicks:o,title:i,units:l},s=Li,c){var f,u;const d=r/o,h=Br(n/a),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"},v=zr(h,m);let b="";v>0?b=s.badColor.rgb().string():v<0&&(b=s.goodColor.rgb().string());let y="";return n?r?v>0?y=`+${v.toFixed(2)}%`:v<0&&(y=`${v.toFixed(2)}%`):y=null!==(u=null==c?void 0:c.diffRemoved)&&void 0!==u?u:"移除":y=null!==(f=null==c?void 0:c.diffNew)&&void 0!==f?f:"新增",{title:{text:i,diff:{text:y,color:b}},tooltipData:[p,g]}}var rl="ContextMenu-module_dummy__5n2-N";function ol(t){const[n,r]=Si({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(bi,{...n,className:rl,anchorPoint:o,onClose:()=>{r(!1),u()},children:s})}var il="LogoLink-module_logoLink__oWRri";function ll(){return t("a",{className:il,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: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:`${pl} ${gl}`,role:"heading","aria-level":2,children:l[o]&&t(n,{children:["Frame width represents ",l[o]]})}):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: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:bl,"aria-live":"polite",children:[t("span",{className:yl,children:[e("span",{children:r}),e("span",{className:xl,children:"|"}),t("span",{children:[o," ",i]}),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),i=a.useRef(null),l=c(),s=c(),u=Xi(),d=c({lastWidth:0,lastHeight:0}),h=o(()=>({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(),o=Z().xyToBar(n,a),i=o.isJust?o.value.name:"";return[t(Pi,{disabled:!r,onClick:D,children:[e(gr,{icon:wo.faRedo}),u.resetView]},"reset"),(()=>{const n=o.mapOrElse(()=>!1,()=>!0),a=o.mapOrElse(()=>()=>{},e=>L.bind(null,e.i,e.j));return t(Pi,{disabled:!n,onClick:a,children:[e(gr,{icon:Eo.faCompressAlt}),u.collapseNodesAbove]},"focus")})(),t(Pi,{onClick:()=>{navigator.clipboard&&navigator.clipboard.writeText(i)},children:[e(gr,{icon:So.faCopy}),u.copyFunctionName]},"copy"),(()=>{const n=R.isJust&&R.value===i?u.clearHighlight:u.highlightSimilarNodes;return t(Pi,{onClick:()=>{F({name:i})},children:[e(gr,{icon:Po.faHighlighter}),n]},"highlight-similar-nodes")})(),(()=>{if(!I||!j)return null;return t(Pi,{className:Fl,onClick:()=>{I("sandwich"),F({name:i})},children:[e(ul,{fill:"black"}),u.openInSandwichView]},"open-in-sandwich-view")})(),(()=>{const n=b===Qr;return t(Pi,{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 lo(g,r.current,v,b,w,x,z,h);l.current=e}if(i.current){const e=new lo(g,i.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==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")},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:co(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:co("flamegraph-canvas",Ri),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:co("flamegraph-text-canvas",Ii),ref:i}),l&&r&&e(Ei,{barHeight:jr,canvasRef:r,zoom:x,xyToHighlightData:H}),l&&e(Oi,{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(ol,{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,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 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=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,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 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,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",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"],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=Q({},he);lt[pe]=Q(Q(Q(Q({},{"fa-duotone":"duotone"}),he[pe]),De),Oe);var st=it(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=it(ct),ut=Q({},Ue);ut[pe]=Q(Q({},ut[pe]),{fak:"fa-kit"});var dt=it(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"}),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(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=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: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}}),ie.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 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 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 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:At}}},hooks:function(){return{beforeDOMElementCreation:function(){At()},beforeI2svg:function(){At()}}}},Ot=ie||{};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,o=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(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 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],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},{})};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],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(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],o=e in Lt.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=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)})),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=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}}(o)),{},{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,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]=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,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 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,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:Q(Q({},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=Q(Q({},g),{},{prefix:r,iconName:o,main:n,mask:a,maskId:s,transform:i,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,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:Q(Q({},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=Rt(Q(Q({},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=Q(Q({},o.attributes),{},{class:o.classes.join(" ")});l&&(s[Ge]="");var c=Q({},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/Ct-a/2,"em, ").concat(t.y/Ct-o/2,"em) "):"translate(calc(-50% + ".concat(t.x/Ct,"em), calc(-50% + ").concat(t.y/Ct,"em)) "),i+="scale(".concat(t.size/Ct*(t.flipX?-1:1),", ").concat(t.size/Ct*(t.flipY?-1:1),") "),i+"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 o=fn(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&En[t]&&En[t][e])return a(An(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(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 o=n.map(function(e){return Vt(e)}).join("\n");t.setAttribute(Ge,""),t.innerHTML=o}};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=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 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,o=e.pseudoElementsCallback,i=void 0===o?Hn:o,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&&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(Pt(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(Pt(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 Q({iconName:a,prefix:r,transform:Tt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:s,attributes:i}},l)}var ra=Lt.styles;function oa(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 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(Ae),Y(Je)):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){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;oa(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,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 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: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: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=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([On(n,a),i.iconName?On(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=Rt(e.styles);return i.length>0&&(a.style=i),It(o)&&(t=Cn("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 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,o=void 0===r?{}:r,i=t.styles,l=void 0===i?{}:i;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 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?Tt: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 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(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=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 o,i,l,s=Mt(e.children).filter(function(e){return e.getAttribute(qe)===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: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 o=In(Q(Q({},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(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 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(),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,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: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,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: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(i||_t()),b="clip-".concat(i||_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;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: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"}),o={tag:"circle",attributes:Q(Q({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.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(o),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),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=Aa(n);t[e.startsWith("webkit")?Da(e):e]=a}}}n=o+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)),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=La(String(t));break;case e.startsWith("aria-"):case e.startsWith("data-"):i[e.toLowerCase()]=t;break;default:i[Aa(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",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",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(Ja),r&&x.push(Qa),o&&x.push(Xa),i&&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(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(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: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 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: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 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]||"",o=a[2],i=(a[3]||"").trim(),l=parseFloat(o);return Number.isFinite(l)?{value:l,unit:i,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 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 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 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,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,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 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 eo={collapsedLevelsSingular:"total (1 level collapsed)",collapsedLevelsPlural:"total ({n} levels collapsed)",isZh:!1};function to(e){const t=!1!==e.renderRects,n=!1!==e.renderText,{canvas:a,fitMode:r,units:o,tickToX:i,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||eo,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,o),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 o=Kr(t,e[r]||"")||"";a[r]=Gr(n,o)}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)),o=Xr({mode:r,charSize:M,rectWidth:e,fullText:a,shortText:a}),i=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(i,0));w.fillText(o.text,t+o.marginLeft,l+s/2+1),w.restore()}}for(let a=0;a<l.length-S;a+=1){const o=l[S+a];if(!o)throw new Error(`Could not find level: ${S+a}`);for(let l=0;l<o.length;l+=y.jStep){const c=y.getBarOffset(o,l),d=i(c),h=a*jr+C,p=Er,v=T&&E(o,l);let N=y.getBarTotal(o,l);const S=N*u<=5;if(S)for(;l<o.length-y.jStep&&c+N===y.getBarOffset(o,l+y.jStep)&&y.getBarTotal(o,l+y.jStep)*u<=5&&v===(T&&E(o,l+y.jStep));)l+=y.jStep,N+=y.getBarTotal(o,l);const _=N*u-(S?0:.5),{spyName:R}=e,A=()=>{const t={level:o,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 oo({...t});case"double":return io({...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=no(P,l,b,o),O=Xr({mode:r,charSize:M,rectWidth:_,fullText:ao(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 no(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 ao(e,t,n,a,r,o){let i=null==o?void 0:o.get(t);if(!i){const e=a.format(t,n);i=Or(e,!!r.isZh)||e,null==o||o.set(t,i)}return`${e} (${i})`}function ro({collapsed:e,highlightModeOn:t,isHighlighted:n}){return e||t&&!n?Zr(200,.66):null}function oo(e){const t=ro(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 o=e.names[r]||"",i=Kr(e.spyName,o)||"";return Gr(e.palette,i).alpha(a)}function io(e){const t=ro(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),o=Br(a),i=Br(r);return e.diffColorFn?e.diffColorFn(Yr(o,i)).alpha(n):function(e,t,n){const a=Yr(t,n);return qr(e)(a)}(e.palette,o,i).alpha(n)}class lo{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=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=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){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:o}=this.flamebearer;switch(o){case"single":to({...r,format:"single"});break;case"double":to({...r,leftTicks:this.flamebearer.leftTicks,rightTicks:this.flamebearer.rightTicks});break;default:throw new Error(`Invalid format: '${o}'`)}}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 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 so(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=so(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function co(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=so(e))&&(a&&(a+=" "),a+=t);return a}var fo="NoData-module_noData__WuuID";function uo(){return e("div",{"data-testid":"no-data",className:fo,children:e("span",{children:"No data available"})})}var ho,mo,po={},go={};function vo(){return ho||(ho=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}(go)),go}function bo(){return mo||(mo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=vo();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}(po)),po}var yo,wo=bo(),xo={};function ko(){return yo||(yo=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}(xo)),xo}var No,So=ko(),Co={};function To(){return No||(No=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}(Co)),Co}var _o,Mo,Po=To(),Fo={},Ro={};function Io(){return _o||(_o=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}(Ro)),Ro}function jo(){return Mo||(Mo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Io();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}(Fo)),Fo}var Eo=jo();const Ao=e=>!!e&&"o"===e[0],Do=P,Oo=(e,t)=>!0===e||!(!e||!e[t]),Lo=(e,t)=>"function"==typeof e?e(t):e,Bo="_szhsinMenu",zo=(e,t)=>Object.defineProperty(t,Bo,{value:e}),$o=(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),Vo=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 Ho(e,t){return{"aria-disabled":e||void 0,tabIndex:t?0:-1}}function Wo(e,t){for(let n=0;n<e.length;n++)if(e[n]===t)return n;return-1}const Uo=({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]),Jo="szh-menu",Qo=i(),Xo=i({}),Yo=i({}),Zo=i({}),Ko=i({}),Go=i({}),qo=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),ei=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),ti=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),ni=Object.freeze({FIRST:"first",LAST:"last"}),ai=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),ri="absolute",oi="none",ii={preventScroll:!0},li=zo("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:Uo({block:"szh-menu-button",modifiers:s,className:t}),children:r})})),si=({className:t,containerRef:n,containerProps:a,children:r,isOpen:i,theming:l,transition:s,onClose:c})=>{const f=Oo(s,"item");return e("div",{...$o({onKeyDown:({key:e})=>{if(e===qo.ESC)Lo(c,{key:e,reason:ti.CANCEL})},onBlur:e=>{i&&!e.currentTarget.contains(e.relatedTarget)&&Lo(c,{reason:ti.BLUR})}},a),className:Uo({block:"szh-menu-container",modifiers:o(()=>({theme:l,itemTransition:f}),[l,f]),className:t}),style:{position:"absolute",...a?.style},ref:n,children:r})},ci=()=>{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)}}},fi=(e,t)=>Math.round(e)===t?e:t,ui=(e,t,n,a)=>{const r=(e=>{const t=e.getBoundingClientRect();return t.width=fi(t.width,e.offsetWidth),t.height=fi(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}}},di=({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}},hi=({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}},mi="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?u:d;function pi(e,t){"function"==typeof e?e(t):e.current=t}const gi=(e,t)=>o(()=>e?t?n=>{pi(e,n),pi(t,n)}:e:t,[e,t]),vi=({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: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(ci),[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(Go),{submenuCtx:re,reposSubmenu:oe=C}=m(Yo),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(ii),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)=>Wo(t,e)-Wo(t,n)),a.sorted=!0};let c,f=-1;switch(t){case ei.RESET:break;case ei.SET:c=r;break;case ei.UNSET:c=e=>e===r?void 0:e;break;case ei.FIRST:s(),f=0,c=i[f];break;case ei.LAST:s(),f=i.length-1,c=i[f];break;case ei.SET_INDEX:s(),f=o,c=i[f];break;case ei.INCREASE:s(),f=l,f<0&&(f=i.indexOf(r)),f++,f>=i.length&&(f=0),c=i[f];break;case ei.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=Oo(Y,"open"),me=Oo(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=(Z?Z.current:Vo(G.current))||window);const r=ui(n,t,pe.menu,K);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 di(w);default:return hi(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}),B({x:s,y:c}),U(f)},[i,w,K,x,I,j,k,N,u,p,g,Z,G,pe]);mi(()=>{de&&(ge(),se.current&&X()),se.current=de},[de,ge,oe]),mi(()=>{V&&!S&&(ie.current.scrollTop=0)},[V,S]),mi(()=>ue,[ue]),d(()=>{let{menu:e}=pe;if(!de||!e)return;if(e=e.addEventListener?e:window,!pe.anchors){pe.anchors=[];let t=Vo(q&&q.current);for(;t&&t!==e;)pe.anchors.push(t),t=Vo(t)}let t=ne;if(pe.anchors.length&&"initial"===t&&(t="auto"),"initial"===t)return;const n=()=>{"auto"===t?Do(()=>ge(!0)):Lo(A,{reason:ti.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=()=>Do(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(ie.current,n);const a=p?.current;return a&&t.observe(a,n),()=>t.disconnect()},[de,te,p,ge]),d(()=>{if(!de)return fe(ei.RESET),void(me||H());const{position:e,alwaysUpdate:t}=R||{},n=()=>{e===ni.FIRST?fe(ei.FIRST):e===ni.LAST?fe(ei.LAST):e>=-1&&fe(ei.SET_INDEX,void 0,e)};if(t)n();else if(T){const e=setTimeout(()=>{const e=ie.current;e&&!e.contains(document.activeElement)&&(e.focus(ii),n())},he?170:100);return()=>clearTimeout(e)}},[de,he,me,T,R,fe]);const be=o(()=>({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=o(()=>({reposSubmenu:Q,submenuCtx:J,overflow:N,overflowAmt:we,parentMenuRef:ie,parentDir:W}),[Q,J,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]),Ce=Uo({block:Jo,element:"arrow",modifiers:Se,className:l.className}),Te=t("ul",{role:"menu","aria-label":n,...Ho(P),...$o({onPointerEnter:re?.off,onPointerMove:e=>{e.stopPropagation(),J.on(ae,()=>{fe(ei.RESET),ie.current.focus(ii)})},onPointerLeave:e=>{e.target===e.currentTarget&&J.off()},onKeyDown:e=>{switch(e.key){case qo.HOME:fe(ei.FIRST);break;case qo.END:fe(ei.LAST);break;case qo.UP:fe(ei.DECREASE,ce);break;case qo.DOWN:fe(ei.INCREASE,ce);break;case qo.SPACE:return void(e.target&&-1!==e.target.className.indexOf(Jo)&&e.preventDefault());default:return}e.preventDefault(),e.stopPropagation()},onAnimationEnd:()=>{"closing"===_&&H(),Lo(M)}},O),ref:gi(b,ie),className:Uo({block:Jo,modifiers:Ne,className:a}),style:{...r,...ke,margin:0,display:"closed"===_?"none":void 0,position:ri,left:L.x,top:L.y},children:[i&&e("li",{"aria-hidden":!0,...l,className:Ce,style:{display:"block",position:ri,left:z.x,top:z.y,...l.style},ref:le}),e(Yo.Provider,{value:xe,children:e(Xo.Provider,{value:be,children:e(Qo.Provider,{value:ce,children:Lo(E,Ne)})})})]});return v?e(si,{...v,isOpen:de,children:Te}):Te},bi=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:C}=y,T=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||Lo(b,e);let n=e.keepOpen;void 0===n&&(n=t&&e.key===qo.SPACE),n||Lo(C,{value:e.value,key:e.key,reason:ti.CLICK})},handleClose(e){Lo(C,{key:e,reason:ti.CLICK})}}),[b,C]);if(!S)return null;const M=e(Go.Provider,{value:T,children:e(Zo.Provider,{value:_,children:e(vi,{...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}),yi=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],wi=e=>({_s:e,status:yi[e],isEnter:e<3,isMounted:6!==e,isResolved:2===e||e>4}),xi=e=>e?6:5,ki=(e,t,n,a,r)=>{clearTimeout(a.current);const o=wi(e);t(o),n.current=o,r&&r({current:o})},Ni=({enter:e=!0,exit:t=!0,preEnter:n,preExit:a,timeout:r,initialEntered:o,mountOnEnter:i,unmountOnExit:l,onStateChange:u}={})=>{const[d,h]=s(()=>wi(o?2:xi(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 xi(t)}})(m.current._s,l);e&&ki(e,h,m,p,u)},[u,l]);return[d,f(r=>{const o=e=>{switch(ki(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:xi(l))},[b,u,e,t,n,a,g,v,l]),b]},Si=({initialOpen:e,initialMounted:t,unmountOnClose:n,transition:a,transitionTimeout:r=500,onMenuChange:o}={})=>{const i=Oo(a,"open"),l=Oo(a,"close"),[{status:s},c,u]=Ni({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:ai[s],endTransition:u},c]},Ci=parseInt(b)<19,Ti=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]=Si(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:ni.FIRST)),N=f(e=>{m(!1),e.key&&x.current.focus()},[m]),S=Lo(o,{open:w});if(!S||!S.type)throw new Error("Menu requires a menuButton prop.");const C={...$o({onKeyDown:e=>{switch(e.key){case qo.UP:b(ni.LAST);break;case qo.DOWN:b(ni.FIRST);break;default:return}e.preventDefault()},...k},S.props),ref:gi(Ci?S.ref:S.props.ref,x)};"MenuButton"===S.type[Bo]&&(C.isOpen=w);const T=v(S,C);return p(i,()=>({openMenu:b,closeMenu:()=>m(!1)})),t(g,{children:[T,e(bi,{...u,...h,"aria-label":n||("string"==typeof S.props.children?S.props.children:"Menu"),anchorRef:x,ref:d,onClose:N})]})}),_i=(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},Mi=(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(Go),{isParentOpen:c,submenuCtx:f,dispatch:u,updateItems:h}=m(Xo),p=()=>{!n&&!a&&u(ei.SET,e.current)},g=()=>{!a&&u(ei.UNSET,e.current)};return((e,t,n)=>{mi(()=>{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()}}},Pi=_i("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}=Mi(u,u,f,p),y=m(Zo),w=m(Ko),x="radio"===r,k="checkbox"===r,N=!(!a||p||x||k),S=x?w.value===n:!!k&&!!i,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),Lo(c,t),x&&Lo(w.onRadioChange,t),y.handleClick(t,k||x)},T=o(()=>({type:r,disabled:p,hover:g||f,checked:S,anchor:N}),[r,p,g,f,S,N]),_=$o({...b,onPointerDown:v,onKeyDown:e=>{if(f)switch(e.key){case qo.ENTER:e.preventDefault();case qo.SPACE:N?u.current.click():C(e)}},onClick:C},h),M={role:x?"menuitemradio":k?"menuitemcheckbox":"menuitem","aria-checked":x||k?S:void 0,...Ho(p,f),..._,ref:gi(d,u),className:Uo({block:Jo,element:"item",modifiers:T,className:t}),children:o(()=>Lo(s,T),[s,T])};return e("li",N?{role:oi,children:e("a",{href:a,...M})}:{...M})}),Fi=y(l(function({className:t,...n},a){return e("li",{role:oi,...n,ref:a,className:Uo({block:Jo,element:"header",className:t})})}));var Ri="canvas-module_canvas__Iiaz4",Ii="canvas-module_textCanvas__eFxM4",ji="Highlight-module_highlight__1VV-X";function Ei(t){const{canvasRef:n,barHeight:r,xyToHighlightData:o,zoom:i}=t,[l,s]=a.useState({height:"0px",visibility:"hidden"});a.useEffect(()=>{s({height:"0px",visibility:"hidden"})},[i]);const c=e=>{const t=o(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:ji,style:l,"data-testid":"flamegraph-highlight"})}var Ai="ContextMenuHighlight-module_highlightContextMenu__WI1nK";const Di={height:"0px",visibility:"hidden"};function Oi(t){const{node:n,barHeight:r}=t,[o,i]=a.useState(Di);return a.useEffect(()=>{n.match({Nothing:()=>i(Di),Just:e=>i({visibility:"visible",height:`${r}px`,...e})})},[n]),e("div",{className:Ai,style:o,"data-testid":"flamegraph-highlight-contextmenu"})}const Li={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)]},Bi={...Li,name:"Color Blind",goodColor:C.rgb(26,133,255),neutralColor:C.rgb(148,142,142),badColor:C.rgb(220,50,32)};function zi(){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 $i(){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 Vi={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 Hi={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"}]},Wi={...Hi,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:"千"}]},Ui=i(Hi),Ji=Ui,Qi=({messages:t,children:n})=>{const r=a.useMemo(()=>{var e;return{...Hi,...t,tooltipUnitTitles:{...Hi.tooltipUnitTitles,...null!==(e=null==t?void 0:t.tooltipUnitTitles)&&void 0!==e?e:{}}}},[t]);return e(Ui.Provider,{value:r,children:n})},Xi=()=>m(Ui);function Yi(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 Zi(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 Ki(e,t,n){return n<t?t:Math.max(t,Math.min(n,e))}function Gi(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=Ki(s,8,r-i-8),c=Ki(c,8,o-l-8),{left:s,top:c}}function qi({shouldShowFooter:r=!0,shouldShowTitle:o=!0,dataSourceRef:i,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}=Gi(e.clientX,e.clientY,t,n);w({top:r,left:a,visibility:"visible"})},[h]);return d(()=>{const e=i.current;return e?(e.addEventListener("mousemove",k),e.addEventListener("mouseout",x),()=>{e.removeEventListener("mousemove",k),e.removeEventListener("mouseout",x)}):()=>{}},[i.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}=Gi(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:co(Vi.tooltip,{[Vi.flamegraphDiffTooltip]:v.tooltipData.length>1}),style:{...y,textAlign:"center"},ref:p,children:v.tooltipData.length>0&&t(n,{children:[o&&e("div",{className:Vi.tooltipName,"data-testid":"tooltip-title",children:v.title.text}),e("div",{className:Vi.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:o}){const i=Xi(),[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=Or(a,c),u=s&&function(e,t){const n=Yi(e),a=Yi(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=Zi(a,o),g=Zi(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:co(Vi.tooltipTable,{[Vi[`${l.tooltipType}${s?"Diff":""}`]]:l.tooltipType}),style:{textAlign:"center",margin:"0 auto"},children:f()})}function tl({clickInfoSide:a}){const r=Xi();let o;switch(a){case"right":o=t(n,{children:[e(zi,{}),e("span",{children:r.rightClickForMoreNodeOptions})]});break;case"left":o=t(n,{children:[e($i,{}),e("span",{children:r.clickToHighlightNode})]});break;default:o=e(n,{})}return e("div",{"data-testid":"tooltip-footer",className:Vi.clickInfo,children:o})}function nl(t){const{format:n,canvasRef:a,xyToData:r,numTicks:o,sampleRate:i,units:l,leftTicks:s,rightTicks:c,palette:u}=t,d=Xi(),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,`${Br(p)}%`),samples:"trace_samples"===l?"":Ar(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=al({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(qi,{dataSourceRef:a,clickInfoSide:"right",setTooltipContent:h,palette:u})}function al({formatter:e,sampleRate:t,totalLeft:n,leftTicks:a,totalRight:r,rightTicks:o,title:i,units:l},s=Li,c){var f,u;const d=o>0?r/o: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:i,diff:{text:y,color:b}},tooltipData:[p,g]}}var rl="ContextMenu-module_dummy__5n2-N";function ol(t){const[n,r]=Si({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(bi,{...n,className:rl,anchorPoint:o,onClose:()=>{r(!1),u()},children:s})}var il="LogoLink-module_logoLink__oWRri";function ll(){return t("a",{className:il,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: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:`${pl} ${gl}`,role:"heading","aria-level":2,children:l[o]&&t(n,{children:["Frame width represents ",l[o]]})}):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: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:bl,"aria-live":"polite",children:[t("span",{className:yl,children:[e("span",{children:r}),e("span",{className:xl,children:"|"}),t("span",{children:[o," ",i]}),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),i=a.useRef(null),l=c(),s=c(),u=Xi(),d=c({lastWidth:0,lastHeight:0}),h=o(()=>({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(),o=Z().xyToBar(n,a),i=o.isJust?o.value.name:"";return[t(Pi,{disabled:!r,onClick:D,children:[e(gr,{icon:wo.faRedo}),u.resetView]},"reset"),(()=>{const n=o.mapOrElse(()=>!1,()=>!0),a=o.mapOrElse(()=>()=>{},e=>L.bind(null,e.i,e.j));return t(Pi,{disabled:!n,onClick:a,children:[e(gr,{icon:Eo.faCompressAlt}),u.collapseNodesAbove]},"focus")})(),t(Pi,{onClick:()=>{navigator.clipboard&&navigator.clipboard.writeText(i)},children:[e(gr,{icon:So.faCopy}),u.copyFunctionName]},"copy"),(()=>{const n=R.isJust&&R.value===i?u.clearHighlight:u.highlightSimilarNodes;return t(Pi,{onClick:()=>{F({name:i})},children:[e(gr,{icon:Po.faHighlighter}),n]},"highlight-similar-nodes")})(),(()=>{if(!I||!j)return null;return t(Pi,{className:Fl,onClick:()=>{I("sandwich"),F({name:i})},children:[e(ul,{fill:"black"}),u.openInSandwichView]},"open-in-sandwich-view")})(),(()=>{const n=b===Qr;return t(Pi,{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 lo(g,r.current,v,b,w,x,z,h);l.current=e}if(i.current){const e=new lo(g,i.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==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")},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:co(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:co("flamegraph-canvas",Ri),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:co("flamegraph-text-canvas",Ii),ref:i}),l&&r&&e(Ei,{barHeight:jr,canvasRef:r,zoom:x,xyToHighlightData:H}),l&&e(Oi,{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(ol,{canvasRef:r,xyToMenuItems:W,onClose:()=>{p(N.nothing())},onOpen:(e,t)=>{p(H(e,t))}})]})}var Il,jl={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 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}()}(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",os="Button-module_danger__5-vIq",is="Button-module_grouped__j8KwB";const ls=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:Dl(Yl,s?is:"",ss(a),u,h&&Kl,i&&Gl,!o&&!i&&Zl),children:[o?e(gr,{icon:o,className:l?ql:""}):null,i,l]})});function ss(e){switch(e){case"default":return es;case"primary":return as;case"secondary":return rs;case"danger":return os;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: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:co(o,{[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:o,table:i,tableBodyRef:l,className:c,isLoading:f,itemsPerPage:u}){const d=a&&r&&o,[h,m]=s(0);return f?e("div",{className:Xl.loadingSpinner}):t(n,{children:[t("table",{className:co(Xl.table,{[c||""]:c}),"data-testid":"table-ui",children:[e("thead",{children:e("tr",{children:i.headRow.map(({sortable:t,label:n,name:l,...s},c)=>t&&"not-filled"!==i.type&&d?w("th",{...s,key:c,className:Xl.sortable,onClick:()=>o(l)},n,e("span",{className:co(Xl.sortArrow,{[Xl[a]]:r===l})})):e("th",{...s,children:n},c))})}),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})}):us(i.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"===i.type?i.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:o}){if(!n)return null;const i=!!o&&us(o,a+1,n).length>0,l=!!o&&us(o,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:!i,"aria-label":"Next Page",kind:"float",icon:Ql.faChevronRight,onClick:()=>r(a+1)})]})}function hs({numTicks:t,sampleRate:n,units:a,tableBodyRef:r,palette:o}){const i=$r(t,n,a),l=i.format(t,n),s=Xi(),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=al({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(qi,{dataSourceRef:r,shouldShowTitle:!1,clickInfoSide:"left",setTooltipContent:c,palette:o})}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,o){const i=t;return i.type="double",i.self=gs(i.self)+e.getBarSelf(n,a),i.total=gs(i.total)+e.getBarTotal(n,a),i.selfLeft=gs(i.selfLeft)+e.getBarSelfLeft(n,a),i.selfRght=gs(i.selfRght)+e.getBarSelfRght(n,a),i.selfDiff=gs(i.selfDiff)+e.getBarSelfDiff(n,a),i.totalLeft=gs(i.totalLeft)+e.getBarTotalLeft(n,a),i.totalRght=gs(i.totalRght)+e.getBarTotalRght(n,a),i.totalDiff=gs(i.totalDiff)+e.getBarTotalDiff(n,a),i.leftTicks=r,i.rightTicks=o,i}function ys(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}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: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=function(e){if(!e)return[];const{names:t,levels:n,format:a}=e,r="double"!==a?Cr:Tr,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?vs(Cr,s,l,n):bs(Tr,s,l,n,e.leftTicks,e.rightTicks)}}return Array.from(o.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:t.name})});var n},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=Br(e.totalLeft/e.leftTicks),n=Br(e.totalRght/e.rightTicks),a=zr(t,n);let r="";a>0?r=l.badColor.rgb().string():a<0&&(r=l.goodColor.rgb().string());let i="";return e.totalLeft&&a!==1/0?e.totalRght?a>0?i=`+${a.toFixed(2)}%`:a<0&&(i=`${a.toFixed(2)}%`):i=c.diffRemoved:i=c.diffNew,{"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=Kr(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: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:o,isDoubles:i,fitMode:l,handleTableItemClick:c,highlightQuery:u,selectedItem:d,palette:h,onFocusOnNode:m,updateView:p,enableSandwichView:g=!0}){const v=Xi(),[b,y]=Si({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(o,e);t&&m(t.i,t.j)},[o,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(o,k);e&&m(e.i,e.j),T()},[k,o,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(()=>i?[{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,i]),I=(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)}}})(R),j={headRow:R,...xs({flamebearer:o,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":i})}),t(bi,{...b,anchorPoint:w,onClose:T,className:ms,children:[m&&t(Pi,{onClick:_,children:[e(gr,{icon:zl.faCrosshairs}),v.focusOnThisFunction]}),t(Pi,{onClick:M,children:[e(gr,{icon:So.faCopy}),v.copyFunctionName]}),t(Pi,{onClick:P,children:[e(gr,{icon:Po.faHighlighter}),E?v.clearHighlight:v.highlightSimilarNodes]}),p&&g&&t(Pi,{onClick:F,className:ps,children:[e(ul,{fill:"currentColor"}),v.openInSandwichView]})]})]})}const Ns=a.memo(function({flamebearer:n,fitMode:a,handleTableItemClick:r,highlightQuery:o,palette:i,selectedItem:l,onFocusOnNode:s,updateView:f,enableSandwichView:u}){const d=c(null),h="double"===n.format;return t("div",{"data-testid":"table-view",className:h?"flamegraph-table-wrapper flamegraph-table-wrapper--double":"flamegraph-table-wrapper",children:[e("div",{className:"flamegraph-table-scroll",children:e(ks,{tableBodyRef:d,flamebearer:n,isDoubles:h,fitMode:a,highlightQuery:o,handleTableItemClick:r,palette:i,selectedItem:l,onFocusOnNode:s,updateView:f,enableSandwichView:u})}),e(hs,{tableBodyRef:d,numTicks:n.numTicks,sampleRate:n.sampleRate,units:n.units,palette:i})]})});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:o})=>{const i=Us(null!=a?a:r);return i?e("span",{title:i,children:o}):e(n,{children:o})};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:o,minLength:i=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:o,minLength:i,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",oc="SharedQueryInput-module_sync__0IO2N",ic="SharedQueryInput-module_syncSelected__hstBI";const lc=({onHighlightChange:n,highlightQuery:a,sharedQuery:r,width:i})=>{const l=Xi(),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=o(()=>r&&r.syncEnabled?r.searchQuery||"":a,[r,a]),u=o(()=>`${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:i},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?ic:oc,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,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,-40,-20,0,20,40,100];default:throw new Error(`Unsupported ${e}`)}}(r),i=qr(a);return e("div",{"data-testid":"flamegraph-legend",className:`${sc} ${cc}`,children:o.map(e=>t("div",{className:fc,style:{backgroundColor:i(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: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(vc,{"aria-label":g,className:`${mc} ${p}`,disabled:o,type:"button",children:i||l});return t(Ti,{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(Fi,{children:l}),a]})}const gc=Pi,vc=li;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=[Li,Bi],Sc=n=>{const{palette:a=Li,onChange:r}=n,o=Xi(),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:bc,children:e(pc,{label:o.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:[i(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,o=0;return n.reverse().forEach(e=>{o+=e,a<=o&&(r+=1)}),r},Mc=()=>e("div",{className:Cc.divider}),Pc=y(({view:a,handleSearchChange:r,highlightQuery:o,isFlamegraphDirty:i,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=Xi(),C="double"===g&&w&&k,T=[{el:t(n,{children:[e(Ic,{fitMode:d,updateFitMode:f}),e(Mc,{})]}),width:93},{el:e(Rc,{isFlamegraphDirty:i,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,o]=s(0);return u(()=>{if(e.current){const{width:n}=e.current.getBoundingClientRect(),a=_c(n,r,t);o(a)}},[e.current,t]),_(e,e=>{const{width:n}=e.target.getBoundingClientRect(),i=_c(n,r,t);o(i),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:o,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=Xi(),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:Eo.faCompressAlt})})})})}function Rc({isFlamegraphDirty:t,reset:n}){const a=Xi();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 o=Xi(),i=e=>a===e;return t(n,{children:[e(Js,{placement:"top",title:o.headFirst,children:e(ls,{onClick:()=>r("HEAD"),className:Tc({[Cc.fitModeButton]:!0,[Cc.selected]:i("HEAD")}),children:e(dl,{})})}),e(Js,{placement:"top",title:o.tailFirst,children:e(ls,{onClick:()=>r("TAIL"),className:Tc({[Cc.fitModeButton]:!0,[Cc.selected]:i("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=Xi(),o=jc(a,r);return e("div",{className:Cc.viewType,children:o.map(({label:a,value:r,Icon:o})=>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(o,{})})},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 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 Dc=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 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:[]},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),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=[],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]))}),Oc(i);const s=Dc(i);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,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 Wc(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=Hc(o/a,!1),f=Hc(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} (${Vc(n,r)})`:o+="0";let l=i;a!==n&&(o+=0!==n?"\n":" ",l=e(a),o=`${o}of ${l} (${Vc(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} ${$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,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(Wc(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:Hc(o/n,!1),style:t.residual?"dotted":""};return`N${t.from.index} -> N${t.to.index} ${$c(s)}`}(f,d[e],o))}),`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,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(()=>Uc(r),[JSON.stringify(r)]);return e("div",{className:Jc,children:i?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,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){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: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:co(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(),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=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,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(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: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:zc.sandwichPane},"sandwich-pane");if(this.state.selectedItem.isNothing)return e("div",{className:zc.sandwichPane,children:t("div",{className:co(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),o=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"}),o({flamebearer:n})]}),t("div",{className:zc.sandwichBottom,children:[e("span",{className:zc.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(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} ${co("vertical"===this.state.panesOrientation?zc.vertical:zc.horizontal,zc[this.state.panesOrientation],zc.panesWrapper)}`,children:o?e(uo,{}):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:Li}}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=Ji,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)?Wi:Hi},tf=t=>{const{i18n:n,locale:r,colorMode:o="light",sandwich:i=!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"}})(o),[o]);return e("pyro-flamegraph",{className:c,children:e(Qi,{messages:s,children:e(Gc,{...qc,enableSandwichView:i,...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,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=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,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=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,Li as DefaultPalette,lo as Flamegraph,Qi as FlamegraphI18nProvider,tf as FlamegraphRenderer,nf as convertJaegerTraceToProfile,af as diffTwoProfiles,Hi as flamegraphDefaultMessages,Wi as flamegraphZhCNMessages};
|
|
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 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}()}(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",os="Button-module_danger__5-vIq",is="Button-module_grouped__j8KwB";const ls=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:Dl(Yl,s?is:"",ss(a),u,h&&Kl,i&&Gl,!o&&!i&&Zl),children:[o?e(gr,{icon:o,className:l?ql:""}):null,i,l]})});function ss(e){switch(e){case"default":return es;case"primary":return as;case"secondary":return rs;case"danger":return os;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: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:co(o,{[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:o,table:i,tableBodyRef:l,className:c,isLoading:f,itemsPerPage:u}){const d=a&&r&&o,[h,m]=s(0);return f?e("div",{className:Xl.loadingSpinner}):t(n,{children:[t("table",{className:co(Xl.table,{[c||""]:c}),"data-testid":"table-ui",children:[e("thead",{children:e("tr",{children:i.headRow.map(({sortable:t,label:n,name:l,...s},c)=>t&&"not-filled"!==i.type&&d?w("th",{...s,key:c,className:Xl.sortable,onClick:()=>o(l)},n,e("span",{className:co(Xl.sortArrow,{[Xl[a]]:r===l})})):e("th",{...s,children:n},c))})}),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})}):us(i.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"===i.type?i.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:o}){if(!n)return null;const i=!!o&&us(o,a+1,n).length>0,l=!!o&&us(o,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:!i,"aria-label":"Next Page",kind:"float",icon:Ql.faChevronRight,onClick:()=>r(a+1)})]})}function hs({numTicks:t,sampleRate:n,units:a,tableBodyRef:r,palette:o}){const i=$r(t,n,a),l=i.format(t,n),s=Xi(),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=al({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(qi,{dataSourceRef:r,shouldShowTitle:!1,clickInfoSide:"left",setTooltipContent:c,palette:o})}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,o){const i=t;return i.type="double",i.self=gs(i.self)+e.getBarSelf(n,a),i.total=gs(i.total)+e.getBarTotal(n,a),i.selfLeft=gs(i.selfLeft)+e.getBarSelfLeft(n,a),i.selfRght=gs(i.selfRght)+e.getBarSelfRght(n,a),i.selfDiff=gs(i.selfDiff)+e.getBarSelfDiff(n,a),i.totalLeft=gs(i.totalLeft)+e.getBarTotalLeft(n,a),i.totalRght=gs(i.totalRght)+e.getBarTotalRght(n,a),i.totalDiff=gs(i.totalDiff)+e.getBarTotalDiff(n,a),i.leftTicks=r,i.rightTicks=o,i}function ys(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}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: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=function(e){if(!e)return[];const{names:t,levels:n,format:a}=e,r="double"!==a?Cr:Tr,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?vs(Cr,s,l,n):bs(Tr,s,l,n,e.leftTicks,e.rightTicks)}}return Array.from(o.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:t.name})});var n},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=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 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=Kr(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: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:o,isDoubles:i,fitMode:l,handleTableItemClick:c,highlightQuery:u,selectedItem:d,palette:h,onFocusOnNode:m,updateView:p,enableSandwichView:g=!0}){const v=Xi(),[b,y]=Si({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(o,e);t&&m(t.i,t.j)},[o,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(o,k);e&&m(e.i,e.j),T()},[k,o,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(()=>i?[{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,i]),I=(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)}}})(R),j={headRow:R,...xs({flamebearer:o,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":i})}),t(bi,{...b,anchorPoint:w,onClose:T,className:ms,children:[m&&t(Pi,{onClick:_,children:[e(gr,{icon:zl.faCrosshairs}),v.focusOnThisFunction]}),t(Pi,{onClick:M,children:[e(gr,{icon:So.faCopy}),v.copyFunctionName]}),t(Pi,{onClick:P,children:[e(gr,{icon:Po.faHighlighter}),E?v.clearHighlight:v.highlightSimilarNodes]}),p&&g&&t(Pi,{onClick:F,className:ps,children:[e(ul,{fill:"currentColor"}),v.openInSandwichView]})]})]})}const Ns=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,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:o,handleTableItemClick:r,palette:i,selectedItem:l,onFocusOnNode:f,updateView:u,enableSandwichView:h})}),e(hs,{tableBodyRef:m,numTicks:n.numTicks,sampleRate:n.sampleRate,units:n.units,palette:i})]})});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:o})=>{const i=Us(null!=a?a:r);return i?e("span",{title:i,children:o}):e(n,{children:o})};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:o,minLength:i=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:o,minLength:i,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",oc="SharedQueryInput-module_sync__0IO2N",ic="SharedQueryInput-module_syncSelected__hstBI";const lc=({onHighlightChange:n,highlightQuery:a,sharedQuery:r,width:i})=>{const l=Xi(),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=o(()=>r&&r.syncEnabled?r.searchQuery||"":a,[r,a]),u=o(()=>`${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:i},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?ic:oc,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,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,-40,-20,0,20,40,100];default:throw new Error(`Unsupported ${e}`)}}(r),i=qr(a);return e("div",{"data-testid":"flamegraph-legend",className:`${sc} ${cc}`,children:o.map(e=>t("div",{className:fc,style:{backgroundColor:i(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: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(vc,{"aria-label":g,className:`${mc} ${p}`,disabled:o,type:"button",children:i||l});return t(Ti,{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(Fi,{children:l}),a]})}const gc=Pi,vc=li;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=[Li,Bi],Sc=n=>{const{palette:a=Li,onChange:r}=n,o=Xi(),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:bc,children:e(pc,{label:o.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:[i(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,o=0;return n.reverse().forEach(e=>{o+=e,a<=o&&(r+=1)}),r},Mc=()=>e("div",{className:Cc.divider}),Pc=y(({view:a,handleSearchChange:r,highlightQuery:o,isFlamegraphDirty:i,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=Xi(),C="double"===g&&w&&k,T=[{el:t(n,{children:[e(Ic,{fitMode:d,updateFitMode:f}),e(Mc,{})]}),width:93},{el:e(Rc,{isFlamegraphDirty:i,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,o]=s(0);return u(()=>{if(e.current){const{width:n}=e.current.getBoundingClientRect(),a=_c(n,r,t);o(a)}},[e.current,t]),_(e,e=>{const{width:n}=e.target.getBoundingClientRect(),i=_c(n,r,t);o(i),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:o,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=Xi(),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:Eo.faCompressAlt})})})})}function Rc({isFlamegraphDirty:t,reset:n}){const a=Xi();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 o=Xi(),i=e=>a===e;return t(n,{children:[e(Js,{placement:"top",title:o.headFirst,children:e(ls,{onClick:()=>r("HEAD"),className:Tc({[Cc.fitModeButton]:!0,[Cc.selected]:i("HEAD")}),children:e(dl,{})})}),e(Js,{placement:"top",title:o.tailFirst,children:e(ls,{onClick:()=>r("TAIL"),className:Tc({[Cc.fitModeButton]:!0,[Cc.selected]:i("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=Xi(),o=jc(a,r);return e("div",{className:Cc.viewType,children:o.map(({label:a,value:r,Icon:o})=>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(o,{})})},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 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 Dc=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 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:[]},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),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=[],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]))}),Oc(i);const s=Dc(i);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,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 Wc(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=Hc(o/a,!1),f=Hc(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} (${Vc(n,r)})`:o+="0";let l=i;a!==n&&(o+=0!==n?"\n":" ",l=e(a),o=`${o}of ${l} (${Vc(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} ${$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,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(Wc(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:Hc(o/n,!1),style:t.residual?"dotted":""};return`N${t.from.index} -> N${t.to.index} ${$c(s)}`}(f,d[e],o))}),`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,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(()=>Uc(r),[JSON.stringify(r)]);return e("div",{className:Jc,children:i?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,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){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: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:co(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(),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=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,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(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: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:zc.sandwichPane},"sandwich-pane");if(this.state.selectedItem.isNothing)return e("div",{className:zc.sandwichPane,children:t("div",{className:co(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),o=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"}),o({flamebearer:n})]}),t("div",{className:zc.sandwichBottom,children:[e("span",{className:zc.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(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} ${co("vertical"===this.state.panesOrientation?zc.vertical:zc.horizontal,zc[this.state.panesOrientation],zc.panesWrapper)}`,children:o?e(uo,{}):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:Li}}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=Ji,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)?Wi:Hi},tf=t=>{const{i18n:n,locale:r,colorMode:o="light",sandwich:i=!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"}})(o),[o]);return e("pyro-flamegraph",{className:c,children:e(Qi,{messages:s,children:e(Gc,{...qc,enableSandwichView:i,...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,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=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,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=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,Li as DefaultPalette,lo as Flamegraph,Qi as FlamegraphI18nProvider,tf as FlamegraphRenderer,nf as convertJaegerTraceToProfile,af as diffTwoProfiles,Hi as flamegraphDefaultMessages,Wi as flamegraphZhCNMessages};
|
|
18
18
|
//# sourceMappingURL=index.node.esm.js.map
|