@kylincloud/flamegraph 0.36.2 → 0.36.3
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 +7 -0
- package/dist/FlameGraph/FlameGraphComponent/index.d.ts.map +1 -1
- package/dist/flamegraphRenderWorker.js +1 -1
- package/dist/flamegraphRenderWorker.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- 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 +1 -1
- package/dist/index.node.esm.js.map +1 -1
- package/dist/workers/createFlamegraphRenderWorker.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/FlameGraph/FlameGraphComponent/index.tsx +32 -6
- package/src/workers/createFlamegraphRenderWorker.ts +18 -2
- package/src/workers/flamegraphRenderWorker.ts +75 -45
package/dist/index.cjs.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
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 g(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 p(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,B(a.key),a)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function x(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Z(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 y(e,t,n){return(t=B(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(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 G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Q(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)||Z(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 I(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Z(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 B(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 F(e){return F="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},F(e)}function Z(e,t){if(e){if("string"==typeof e)return g(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)?g(e,t):void 0}}var w=function(){},N={},L={},W=null,C={mark:w,measure:w};try{"undefined"!=typeof window&&(N=window),"undefined"!=typeof document&&(L=document),"undefined"!=typeof MutationObserver&&(W=MutationObserver),"undefined"!=typeof performance&&(C=performance)}catch(ne){}var X=(N.navigator||{}).userAgent,R=void 0===X?"":X,k=N,U=L,D=W,_=C;k.document;var Y,j=!!U.documentElement&&!!U.head&&"function"==typeof U.addEventListener&&"function"==typeof U.createElement,V=~R.indexOf("MSIE")||~R.indexOf("Trident/"),S={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"}},M=["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"],J="classic",O="duotone",A="sharp",E="sharp-duotone",z="chisel",T="etch",H="jelly",P="jelly-duo",K="jelly-fill",$="notdog",q="notdog-duo",ee="slab",te="slab-press",ne="thumbprint",ae="utility",re="utility-duo",oe="utility-fill",ie="whiteboard",le=[J,O,A,E,z,T,H,P,K,$,q,ee,te,ne,ae,re,oe,ie];y(y(y(y(y(y(y(y(y(y(Y={},J,"Classic"),O,"Duotone"),A,"Sharp"),E,"Sharp Duotone"),z,"Chisel"),T,"Etch"),H,"Jelly"),P,"Jelly Duo"),K,"Jelly Fill"),$,"Notdog"),y(y(y(y(y(y(y(y(Y,q,"Notdog Duo"),ee,"Slab"),te,"Slab Press"),ne,"Thumbprint"),ae,"Utility"),re,"Utility Duo"),oe,"Utility Fill"),ie,"Whiteboard");var se=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}]]),ce=["fak","fa-kit","fakd","fa-kit-duotone"],ue={fak:"kit","fa-kit":"kit"},de={fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"};y(y({},"kit","Kit"),"kit-duotone","Kit Duotone");var be,me={kit:"fak"},he={"kit-duotone":"fakd"},fe="duotone-group",ge="swap-opacity",pe="primary",xe="secondary";y(y(y(y(y(y(y(y(y(y(be={},"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"),y(y(y(y(y(y(y(y(be,"notdog-duo","Notdog Duo"),"slab","Slab"),"slab-press","Slab Press"),"thumbprint","Thumbprint"),"utility","Utility"),"utility-duo","Utility Duo"),"utility-fill","Utility Fill"),"whiteboard","Whiteboard");y(y({},"kit","Kit"),"kit-duotone","Kit Duotone");var ye={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"}},ve=["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"]),Ge=[1,2,3,4,5,6,7,8,9,10],Qe=Ge.concat([11,12,13,14,15,16,17,18,19,20]),Ie=[].concat(I(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",fe,ge,pe,xe]).concat(Ge.map(function(e){return"".concat(e,"x")})).concat(Qe.map(function(e){return"w-".concat(e)})),Be="___FONT_AWESOME___",Fe="svg-inline--fa",Ze="data-fa-i2svg",we="data-fa-pseudo-element",Ne="data-prefix",Le="data-icon",We="fontawesome-i2svg",Ce=["HTML","HEAD","STYLE","SCRIPT"],Xe=["::before","::after",":before",":after"],Re=function(){try{return"production"===process.env.NODE_ENV}catch(e){return!1}}();function ke(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[J]}})}var Ue=G({},S);Ue[J]=G(G(G(G({},{"fa-duotone":"duotone"}),S[J]),ue),de);var De=ke(Ue),_e=G({},{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"}});_e[J]=G(G(G(G({},{duotone:"fad"}),_e[J]),me),he);var Ye=ke(_e),je=G({},ye);je[J]=G(G({},je[J]),{fak:"fa-kit"});var Ve=ke(je),Se=G({},{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"}});Se[J]=G(G({},Se[J]),{"fa-kit":"fak"}),ke(Se);var Me=/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)?[\-\ ]/,Je="fa-layers-text",Oe=/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;ke(G({},{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 Ae=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ee={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},ze=[].concat(I(["kit"]),I(Ie)),Te=k.FontAwesomeConfig||{};if(U&&"function"==typeof U.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=Q(e,2),n=t[0],a=t[1],r=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=U.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=r&&(Te[a]=r)})}var He={styleDefault:"solid",familyDefault:J,cssPrefix:"fa",replacementClass:Fe,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Te.familyPrefix&&(Te.cssPrefix=Te.familyPrefix);var Pe=G(G({},He),Te);Pe.autoReplaceSvg||(Pe.observeMutations=!1);var Ke={};Object.keys(He).forEach(function(e){Object.defineProperty(Ke,e,{enumerable:!0,set:function(t){Pe[e]=t,$e.forEach(function(e){return e(Ke)})},get:function(){return Pe[e]}})}),Object.defineProperty(Ke,"familyPrefix",{enumerable:!0,set:function(e){Pe.cssPrefix=e,$e.forEach(function(e){return e(Ke)})},get:function(){return Pe.cssPrefix}}),k.FontAwesomeConfig=Ke;var $e=[];var qe=16,et={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function tt(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function nt(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function at(e){return e.classList?nt(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(e){return e})}function rt(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function ot(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function it(e){return e.size!==et.size||e.x!==et.x||e.y!==et.y||e.rotate!==et.rotate||e.flipX||e.flipY}function lt(){var e="fa",t=Fe,n=Ke.cssPrefix,a=Ke.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 st=!1;function ct(){Ke.autoAddCss&&!st&&(!function(e){if(e&&j){var t=U.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=U.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)}U.head.insertBefore(t,a)}}(lt()),st=!0)}var ut={mixout:function(){return{dom:{css:lt,insertCss:ct}}},hooks:function(){return{beforeDOMElementCreation:function(){ct()},beforeI2svg:function(){ct()}}}},dt=k||{};dt[Be]||(dt[Be]={}),dt[Be].styles||(dt[Be].styles={}),dt[Be].hooks||(dt[Be].hooks={}),dt[Be].shims||(dt[Be].shims=[]);var bt=dt[Be],mt=[],ht=function(){U.removeEventListener("DOMContentLoaded",ht),ft=1,mt.map(function(e){return e()})},ft=!1;function gt(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?rt(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(rt(e[n]),'" ')},"").trim()}(a),">").concat(o.map(gt).join(""),"</").concat(t,">")}function pt(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}j&&((ft=(U.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(U.readyState))||U.addEventListener("DOMContentLoaded",ht));var xt=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 yt(e){return 1!==I(e).length?null:e.codePointAt(0).toString(16)}function vt(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 Gt(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,a=void 0!==n&&n,r=vt(t);"function"!=typeof bt.hooks.addPack||a?bt.styles[e]=G(G({},bt.styles[e]||{}),r):bt.hooks.addPack(e,vt(t)),"fas"===e&&Gt("fa",t)}var Qt=bt.styles,It=bt.shims,Bt=Object.keys(Ve),Ft=Bt.reduce(function(e,t){return e[t]=Object.keys(Ve[t]),e},{}),Zt=null,wt={},Nt={},Lt={},Wt={},Ct={};function Xt(e,t){var n,a=t.split("-"),r=a[0],o=a.slice(1).join("-");return r!==e||""===o||(n=o,~ze.indexOf(n))?null:o}var Rt,kt=function(){var e=function(e){return xt(Qt,function(t,n,a){return t[a]=xt(n,e,{}),t},{})};wt=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}),Nt=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}),Ct=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 Qt||Ke.autoFetchSvg,n=xt(It,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:{}});Lt=n.names,Wt=n.unicodes,Zt=jt(Ke.styleDefault,{family:Ke.familyDefault})};function Ut(e,t){return(wt[e]||{})[t]}function Dt(e,t){return(Ct[e]||{})[t]}function _t(e){return Lt[e]||{prefix:null,iconName:null}}function Yt(){return Zt}Rt=function(e){Zt=jt(e.styleDefault,{family:Ke.familyDefault})},$e.push(Rt),kt();function jt(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===t?J:t,a=De[n][e];if(n===O&&!e)return"fad";var r=Ye[n][e]||Ye[n][a],o=e in bt.styles?e:null;return r||o||null}function Vt(e){return e.sort().filter(function(e,t,n){return n.indexOf(e)===t})}var St=ve.concat(ce);function Mt(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,n=void 0!==t&&t,a=null,r=Vt(e.filter(function(e){return St.includes(e)})),o=Vt(e.filter(function(e){return!St.includes(e)})),i=Q(r.filter(function(e){return a=e,!M.includes(e)}),1)[0],l=void 0===i?null:i,s=function(e){var t=J,n=Bt.reduce(function(e,t){return e[t]="".concat(Ke.cssPrefix,"-").concat(t),e},{});return le.forEach(function(a){(e.includes(n[a])||e.some(function(e){return Ft[a].includes(e)}))&&(t=a)}),t}(r),c=G(G({},function(e){var t=[],n=null;return e.forEach(function(e){var a=Xt(Ke.cssPrefix,e);a?n=a:e&&t.push(e)}),{iconName:n,rest:t}}(o)),{},{prefix:jt(l,{family:s})});return G(G(G({},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,u=n===O,d=t.includes("fa-duotone")||t.includes("fad"),b="duotone"===c.familyDefault,m="fad"===a.prefix||"fa-duotone"===a.prefix;!u&&(d||b||m)&&(a.prefix="fad");(t.includes("fa-brands")||t.includes("fab"))&&(a.prefix="fab");if(!a.prefix&&Jt.includes(n)){if(Object.keys(l).find(function(e){return Ot.includes(e)})||c.autoFetchSvg){var h=se.get(n).defaultShortPrefixId;a.prefix=h,a.iconName=Dt(a.prefix,a.iconName)||a.iconName}}"fa"!==a.prefix&&"fa"!==o||(a.prefix=Yt()||"fas");return a}({values:e,family:s,styles:Qt,config:Ke,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?_t(r):{},i=Dt(a,r);r=o.iconName||i||r,"far"!==(a=o.prefix||a)||Qt.far||!Qt.fas||Ke.autoFetchSvg||(a="fas");return{prefix:a,iconName:r}}(n,a,c))}var Jt=le.filter(function(e){return e!==J||e!==O}),Ot=Object.keys(ye).filter(function(e){return e!==J}).map(function(e){return Object.keys(ye[e])}).flat();var At=function(){return p(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]=G(G({},e.definitions[t]||{}),r[t]),Gt(t,r[t]);var n=Ve[J][t];n&&Gt(n,r[t]),kt()})}},{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}}])}(),Et=[],zt={},Tt={},Ht=Object.keys(Tt);function Pt(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(zt[e]||[]).forEach(function(e){t=e.apply(null,[t].concat(a))}),t}function Kt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];(zt[e]||[]).forEach(function(e){e.apply(null,n)})}function $t(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Tt[e]?Tt[e].apply(null,t):void 0}function qt(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Yt();if(t)return t=Dt(n,t)||t,pt(en.definitions,n,t)||pt(bt.styles,n,t)}var en=new At,tn={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return j?(Kt("beforeI2svg",e),$t("pseudoElements2svg",e),$t("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===Ke.autoReplaceSvg&&(Ke.autoReplaceSvg=!0),Ke.observeMutations=!0,e=function(){an({autoReplaceSvgRoot:n}),Kt("watch",t)},j&&(ft?setTimeout(e,0):mt.push(e))}},nn={noAuto:function(){Ke.autoReplaceSvg=!1,Ke.observeMutations=!1,Kt("noAuto")},config:Ke,dom:tn,parse:{icon:function(e){if(null===e)return null;if("object"===F(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Dt(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=jt(e[0]);return{prefix:n,iconName:Dt(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(Ke.cssPrefix,"-"))>-1||e.match(Me))){var a=Mt(e.split(" "),{skipLookups:!0});return{prefix:a.prefix||Yt(),iconName:Dt(a.prefix,a.iconName)||a.iconName}}if("string"==typeof e){var r=Yt();return{prefix:r,iconName:Dt(r,e)||e}}}},library:en,findIconDefinition:qt,toHtml:gt},an=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?U:e;(Object.keys(bt.styles).length>0||Ke.autoFetchSvg)&&j&&Ke.autoReplaceSvg&&nn.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 gt(e)})}}),Object.defineProperty(e,"node",{get:function(){if(j){var t=U.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function on(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,u=e.watchable,d=void 0!==u&&u,b=a.found?a:n,m=b.width,h=b.height,f=[Ke.replacementClass,o?"".concat(Ke.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:G(G({},c.attributes),{},{"data-prefix":r,"data-icon":o,class:f,role:c.attributes.role||"img",viewBox:"0 0 ".concat(m," ").concat(h)})};(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"),d&&(g.attributes[Ze]="");var p=G(G({},g),{},{prefix:r,iconName:o,main:n,mask:a,maskId:s,transform:i,symbol:l,styles:G({},c.styles)}),x=a.found&&n.found?$t("generateAbstractMask",p)||{children:[],attributes:{}}:$t("generateAbstractIcon",p)||{children:[],attributes:{}},y=x.children,v=x.attributes;return p.children=y,p.attributes=v,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(Ke.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:G(G({},r),{},{id:i}),children:a}]}]}(p):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=ot(G(G({},o),{},{"transform-origin":"".concat(l.x+i.x/16,"em ").concat(l.y+i.y/16,"em")}))}return[{tag:"svg",attributes:r,children:t}]}(p)}function ln(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=G(G({},o.attributes),{},{class:o.classes.join(" ")});l&&(s[Ze]="");var c=G({},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+=V?"translate(".concat(t.x/qe-a/2,"em, ").concat(t.y/qe-o/2,"em) "):"translate(calc(-50% + ".concat(t.x/qe,"em), calc(-50% + ").concat(t.y/qe,"em)) "),i+="scale(".concat(t.size/qe*(t.flipX?-1:1),", ").concat(t.size/qe*(t.flipY?-1:1),") "),i+"rotate(".concat(t.rotate,"deg) ")}({transform:r,width:n,height:a}),c["-webkit-transform"]=c.transform);var u=ot(c);u.length>0&&(s.style=u);var d=[];return d.push({tag:"span",attributes:s,children:[t]}),d}var sn=bt.styles;function cn(e){var t=e[0],n=e[1],a=Q(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(a)?{tag:"g",attributes:{class:"".concat(Ke.cssPrefix,"-").concat(Ee.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ke.cssPrefix,"-").concat(Ee.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(Ke.cssPrefix,"-").concat(Ee.PRIMARY),fill:"currentColor",d:a[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:a}}}}var un={found:!1,width:512,height:512};function dn(e,t){var n=t;return"fa"===t&&null!==Ke.styleDefault&&(t=Yt()),new Promise(function(a,r){if("fa"===n){var o=_t(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&sn[t]&&sn[t][e])return a(cn(sn[t][e]));!function(e,t){Re||Ke.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),a(G(G({},un),{},{icon:Ke.showMissingIcons&&e&&$t("missingIconAbstract")||{}}))})}var bn=function(){},mn=Ke.measurePerformance&&_&&_.mark&&_.measure?_:{mark:bn,measure:bn},hn='FA "7.1.0"',fn=function(e){mn.mark("".concat(hn," ").concat(e," ends")),mn.measure("".concat(hn," ").concat(e),"".concat(hn," ").concat(e," begins"),"".concat(hn," ").concat(e," ends"))},gn=function(e){return mn.mark("".concat(hn," ").concat(e," begins")),function(){return fn(e)}},pn=function(){};function xn(e){return"string"==typeof(e.getAttribute?e.getAttribute(Ze):null)}function yn(e){return U.createElementNS("http://www.w3.org/2000/svg",e)}function vn(e){return U.createElement(e)}function Gn(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===t?"svg"===e.tag?yn:vn:t;if("string"==typeof e)return U.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(Gn(e,{ceFn:n}))}),a}var Qn={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(e){t.parentNode.insertBefore(Gn(e),t)}),null===t.getAttribute(Ze)&&Ke.keepOriginalSource){var n=U.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(~at(t).indexOf(Ke.replacementClass))return Qn.replace(e);var a=new RegExp("".concat(Ke.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var r=n[0].attributes.class.split(" ").reduce(function(e,t){return t===Ke.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 gt(e)}).join("\n");t.setAttribute(Ze,""),t.innerHTML=o}};function In(e){e()}function Bn(e,t){var n="function"==typeof t?t:pn;if(0===e.length)n();else{var a=In;"async"===Ke.mutateApproach&&(a=k.requestAnimationFrame||In),a(function(){var t=!0===Ke.autoReplaceSvg?Qn.replace:Qn[Ke.autoReplaceSvg]||Qn.replace,a=gn("mutate");e.map(t),a(),n()})}}var Fn=!1;function Zn(){Fn=!0}function wn(){Fn=!1}var Nn=null;function Ln(e){if(D&&Ke.observeMutations){var t=e.treeCallback,n=void 0===t?pn:t,a=e.nodeCallback,r=void 0===a?pn:a,o=e.pseudoElementsCallback,i=void 0===o?pn:o,l=e.observeMutationsRoot,s=void 0===l?U:l;Nn=new D(function(e){if(!Fn){var t=Yt();nt(e).forEach(function(e){if("childList"===e.type&&e.addedNodes.length>0&&!xn(e.addedNodes[0])&&(Ke.searchPseudoElements&&i(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&Ke.searchPseudoElements&&i([e.target],!0),"attributes"===e.type&&xn(e.target)&&~Ae.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(Ne):null,n=e.getAttribute?e.getAttribute(Le):null;return t&&n}(e.target)){var a=Mt(at(e.target)),o=a.prefix,l=a.iconName;e.target.setAttribute(Ne,o||t),l&&e.target.setAttribute(Le,l)}else(s=e.target)&&s.classList&&s.classList.contains&&s.classList.contains(Ke.replacementClass)&&r(e.target);var s})}}),j&&Nn.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Wn(e){var t,n,a=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),o=void 0!==e.innerText?e.innerText.trim():"",i=Mt(at(e));return i.prefix||(i.prefix=Yt()),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,(Nt[t]||{})[n]||Ut(i.prefix,yt(e.innerText)))),!i.iconName&&Ke.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function Cn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=Wn(e),a=n.iconName,r=n.prefix,o=n.rest,i=function(e){return nt(e.attributes).reduce(function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e},{})}(e),l=Pt("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 G({iconName:a,prefix:r,transform:et,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:s,attributes:i}},l)}var Xn=bt.styles;function Rn(e){var t="nest"===Ke.autoReplaceSvg?Cn(e,{styleParser:!1}):Cn(e);return~t.extra.classes.indexOf(Je)?$t("generateLayersText",e,t):$t("generateSvgReplacementMutation",e,t)}function kn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!j)return Promise.resolve();var n=U.documentElement.classList,a=function(e){return n.add("".concat(We,"-").concat(e))},r=function(e){return n.remove("".concat(We,"-").concat(e))},o=Ke.autoFetchSvg?[].concat(I(ce),I(ve)):M.concat(Object.keys(Xn));o.includes("fa")||o.push("fa");var i=[".".concat(Je,":not([").concat(Ze,"])")].concat(o.map(function(e){return".".concat(e,":not([").concat(Ze,"])")})).join(", ");if(0===i.length)return Promise.resolve();var l=[];try{l=nt(e.querySelectorAll(i))}catch(e){}if(!(l.length>0))return Promise.resolve();a("pending"),r("complete");var s=gn("onTree"),c=l.reduce(function(e,t){try{var n=Rn(t);n&&e.push(n)}catch(e){Re||"MissingIcon"===e.name&&console.error(e)}return e},[]);return new Promise(function(e,n){Promise.all(c).then(function(n){Bn(n,function(){a("active"),a("complete"),r("pending"),"function"==typeof t&&t(),s(),e()})}).catch(function(e){s(),n(e)})})}function Un(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Rn(e).then(function(e){e&&Bn([e],t)})}var Dn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,a=void 0===n?et: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,u=t.classes,d=void 0===u?[]:u,b=t.attributes,m=void 0===b?{}:b,h=t.styles,f=void 0===h?{}:h;if(e){var g=e.prefix,p=e.iconName,x=e.icon;return rn(G({type:"icon"},e),function(){return Kt("beforeDOMElementCreation",{iconDefinition:e,params:t}),on({icons:{main:cn(x),mask:l?cn(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g,iconName:p,transform:G(G({},et),a),symbol:o,maskId:c,extra:{attributes:m,styles:f,classes:d}})})}},_n={mixout:function(){return{icon:(e=Dn,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(t||{}).icon?t:qt(t||{}),r=n.mask;return r&&(r=(r||{}).icon?r:qt(r||{})),e(a,G(G({},n),{},{mask:r}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=kn,e.nodeCallback=Un,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?U:t,a=e.callback;return kn(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([dn(n,a),i.iconName?dn(i.iconName,i.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(i){var c=Q(i,2),u=c[0],d=c[1];t([e,on({icons:{main:u,mask:d},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=ot(e.styles);return i.length>0&&(a.style=i),it(o)&&(t=$t("generateAbstractTransformGrouping",{main:r,transform:o,containerWidth:r.width,iconWidth:r.width})),n.push(t||r.icon),{children:n,attributes:a}}}},Yn={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(){Kt("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(Ke.cssPrefix,"-layers")].concat(I(a)).join(" ")},children:n}]})}}}},jn={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 Kt("beforeDOMElementCreation",{content:e,params:t}),function(e){var t=e.content,n=e.extra,a=G(G({},n.attributes),{},{class:n.classes.join(" ")}),r=ot(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(Ke.cssPrefix,"-layers-counter")].concat(I(a))}})})}}}},Vn={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,a=void 0===n?et: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 Kt("beforeDOMElementCreation",{content:e,params:t}),ln({content:e,transform:G(G({},et),a),extra:{attributes:l,styles:c,classes:["".concat(Ke.cssPrefix,"-layers-text")].concat(I(o))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.transform,a=t.extra,r=null,o=null;if(V){var i=parseInt(getComputedStyle(e).fontSize,10),l=e.getBoundingClientRect();r=l.width/i,o=l.height/i}return Promise.resolve([e,ln({content:e.innerHTML,width:r,height:o,transform:n,extra:a,watchable:!0})])}}},Sn=new RegExp('"',"ug"),Mn=[1105920,1112319],Jn=G(G(G(G({},{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"}}),On=Object.keys(Jn).reduce(function(e,t){return e[t.toLowerCase()]=Jn[t],e},{}),An=Object.keys(On).reduce(function(e,t){var n=On[t];return e[t]=n[900]||I(Object.entries(n))[0][1],e},{});function En(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=nt(e.children).filter(function(e){return e.getAttribute(we)===t})[0],c=k.getComputedStyle(e,t),u=c.getPropertyValue("font-family"),d=u.match(Oe),b=c.getPropertyValue("font-weight"),m=c.getPropertyValue("content");if(s&&!d)return e.removeChild(s),a();if(d&&"none"!==m&&""!==m){var h=c.getPropertyValue("content"),f=function(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),a=parseInt(t),r=isNaN(a)?"normal":a;return(On[n]||{})[r]||An[n]}(u,b),g=function(e){return yt(I(e.replace(Sn,""))[0]||"")}(h),p=d[0].startsWith("FontAwesome"),x=function(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content").replace(Sn,""),a=n.codePointAt(0),r=a>=Mn[0]&&a<=Mn[1],o=2===n.length&&n[0]===n[1];return r||o||t}(c),y=Ut(f,g),v=y;if(p){var Q=(i=Wt[o=g],l=Ut("fas",o),i||(l?{prefix:"fas",iconName:l}:null)||{prefix:null,iconName:null});Q.iconName&&Q.prefix&&(y=Q.iconName,f=Q.prefix)}if(!y||x||s&&s.getAttribute(Ne)===f&&s.getAttribute(Le)===v)a();else{e.setAttribute(n,v),s&&e.removeChild(s);var B={iconName:null,prefix:null,transform:et,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},F=B.extra;F.attributes[we]=t,dn(y,f).then(function(r){var o=on(G(G({},B),{},{icons:{main:r,mask:{prefix:null,iconName:null,rest:[]}},prefix:f,iconName:v,extra:F,watchable:!0})),i=U.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 gt(e)}).join("\n"),e.removeAttribute(n),a()}).catch(r)}}else a()})}function zn(e){return Promise.all([En(e,"::before"),En(e,"::after")])}function Tn(e){return!(e.parentNode===document.head||~Ce.indexOf(e.tagName.toUpperCase())||e.getAttribute(we)||e.parentNode&&"svg"===e.parentNode.tagName)}var Hn=function(e){return!!e&&Xe.some(function(t){return e.includes(t)})},Pn=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=x(n);try{for(r.s();!(a=r.n()).done;){var o=a.value;if(Hn(o)){var i=Xe.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 Kn(e){if(j){var t;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])t=e;else if(Ke.searchPseudoElementsFullScan)t=e.querySelectorAll("*");else{var n,a=new Set,r=x(document.styleSheets);try{for(r.s();!(n=r.n()).done;){var o=n.value;try{var i,l=x(o.cssRules);try{for(l.s();!(i=l.n()).done;){var s,c=i.value,u=x(Pn(c.selectorText));try{for(u.s();!(s=u.n()).done;){var d=s.value;a.add(d)}}catch(e){u.e(e)}finally{u.f()}}}catch(e){l.e(e)}finally{l.f()}}catch(e){Ke.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 b=Array.from(a).join(", ");try{t=e.querySelectorAll(b)}catch(e){}}return new Promise(function(e,n){var a=nt(t).filter(Tn).map(zn),r=gn("searchPseudoElements");Zn(),Promise.all(a).then(function(){r(),wn(),e()}).catch(function(){r(),wn(),n()})})}}var $n={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=Kn,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?U:t;Ke.searchPseudoElements&&Kn(n)}}},qn=!1,ea=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})},ta={mixout:function(){return{parse:{transform:function(e){return ea(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=ea(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:G({},c.outer),children:[{tag:"g",attributes:G({},c.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:G(G({},t.icon.attributes),c.path)}]}]}}}},na={x:0,y:0,width:"100%",height:"100%"};function aa(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 ra={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),a=n?Mt(n.split(" ").map(function(e){return e.trim()})):{prefix:null,iconName:null,rest:[]};return a.prefix||(a.prefix=Yt()),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,u=o.width,d=o.icon,b=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:u,iconWidth:s}),m={tag:"rect",attributes:G(G({},na),{},{fill:"white"})},h=c.children?{children:c.children.map(aa)}:{},f={tag:"g",attributes:G({},b.inner),children:[aa(G({tag:c.tag,attributes:G(G({},c.attributes),b.path)},h))]},g={tag:"g",attributes:G({},b.outer),children:[f]},p="mask-".concat(i||tt()),x="clip-".concat(i||tt()),y={tag:"mask",attributes:G(G({},na),{},{id:p,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[m,g]},v={tag:"defs",children:[{tag:"clipPath",attributes:{id:x},children:(t=d,"g"===t.tag?t.children:[t])},y]};return n.push(v,{tag:"rect",attributes:G({fill:"currentColor","clip-path":"url(#".concat(x,")"),mask:"url(#".concat(p,")")},na)}),{children:n,attributes:a}}}},oa={provides:function(e){var t=!1;k.matchMedia&&(t=k.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:G(G({},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=G(G({},a),{},{attributeName:"opacity"}),o={tag:"circle",attributes:G(G({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:G(G({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:G(G({},r),{},{values:"1;0;1;1;0;1;"})}),e.push(o),e.push({tag:"path",attributes:G(G({},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:G(G({},r),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:G(G({},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:G(G({},r),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){var n=t.mixoutsTo;Et=e,zt={},Object.keys(Tt).forEach(function(e){-1===Ht.indexOf(e)&&delete Tt[e]}),Et.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"===F(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){zt[e]||(zt[e]=[]),zt[e].push(a[e])})}e.provides&&e.provides(Tt)})}([ut,_n,Yn,jn,Vn,$n,{mixout:function(){return{dom:{unwatch:function(){Zn(),qn=!0}}}},hooks:function(){return{bootstrap:function(){Ln(Pt("mutationObserverCallbacks",{}))},noAuto:function(){Nn&&Nn.disconnect()},watch:function(e){var t=e.observeMutationsRoot;qn?wn():Ln(Pt("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},ta,ra,oa,{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:nn});var ia=nn.config,la=nn.parse,sa=nn.icon;function ca(e){return function(e){return(e-=0)==e}(e)?e:(e=e.replace(/[_-]+(.)?/g,(e,t)=>t?t.toUpperCase():"")).charAt(0).toLowerCase()+e.slice(1)}function ua(e){return e.charAt(0).toUpperCase()+e.slice(1)}var da=new Map;function ba(e){if(da.has(e))return da.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=ca(n);t[e.startsWith("webkit")?ua(e):e]=a}}}n=o+1}if(1e3===da.size){const e=da.keys().next().value;e&&da.delete(e)}return da.set(e,t),t}var ma=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=ba(String(t));break;case e.startsWith("aria-"):case e.startsWith("data-"):i[e.toLowerCase()]=t;break;default:i[ca(e)]=t}const{style:l,role:s,"aria-label":c,...u}=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,{...u,...i},...r)}.bind(null,t.createElement),ha=(e,n)=>{const a=t.useId();return e||(n?a:void 0)};"undefined"!=typeof process&&process.env.FA_VERSION;var fa="searchPseudoElementsFullScan"in ia?"7.0.0":"6.0.0",ga=Number.parseInt(fa)>=7,pa="fa",xa="fa-beat",ya="fa-fade",va="fa-beat-fade",Ga="fa-bounce",Qa="fa-shake",Ia="fa-spin",Ba="fa-spin-pulse",Fa="fa-spin-reverse",Za="fa-pulse",wa={left:"fa-pull-left",right:"fa-pull-right"},Na={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},La={"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"},Wa="fa-border",Ca="fa-fw",Xa="fa-flip",Ra="fa-flip-horizontal",ka="fa-flip-vertical",Ua="fa-inverse",Da="fa-rotate-by",_a="fa-swap-opacity",Ya="fa-width-auto";function ja(e){const t=ia.cssPrefix||ia.familyPrefix||pa;return t===pa?e:e.replace(new RegExp(String.raw`(?<=^|\s)${pa}-`,"g"),`${t}-`)}function Va(e){if(e)return(e=>"object"==typeof e&&"icon"in e&&!!e.icon)(e)?e:la.icon(e)}var Sa=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"),Ma={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},Ja=new Set(Object.keys(Ma)),Oa=t.forwardRef((e,t)=>{const n={...Ma,...e},{icon:a,mask:r,symbol:o,title:i,titleId:l,maskId:s,transform:c}=n,u=ha(s,Boolean(r)),d=ha(l,Boolean(i)),b=Va(a);if(!b)return Sa.error("Icon lookup is undefined",a),null;const m=function(e){const{beat:t,fade:n,beatFade:a,bounce:r,shake:o,spin:i,spinPulse:l,spinReverse:s,pulse:c,fixedWidth:u,inverse:d,border:b,flip:m,size:h,rotation:f,pull:g,swapOpacity:p,rotateBy:x,widthAuto:y,className:v}=e,G=[];return v&&G.push(...v.split(" ")),t&&G.push(xa),n&&G.push(ya),a&&G.push(va),r&&G.push(Ga),o&&G.push(Qa),i&&G.push(Ia),s&&G.push(Fa),l&&G.push(Ba),c&&G.push(Za),u&&G.push(Ca),d&&G.push(Ua),b&&G.push(Wa),!0===m&&G.push(Xa),"horizontal"!==m&&"both"!==m||G.push(Ra),"vertical"!==m&&"both"!==m||G.push(ka),null!=h&&G.push(La[h]),null!=f&&0!==f&&G.push(Na[f]),null!=g&&G.push(wa[g]),p&&G.push(_a),ga?(x&&G.push(Da),y&&G.push(Ya),(ia.cssPrefix||ia.familyPrefix||pa)===pa?G:G.map(ja)):G}(n),h="string"==typeof c?la.transform(c):c,f=Va(r),g=sa(b,{...m.length>0&&{classes:m},...h&&{transform:h},...f&&{mask:f},symbol:o,title:i,titleId:d,maskId:u});if(!g)return Sa.error("Could not find icon",b),null;const{abstract:p}=g,x={ref:t};for(const e of(y=n,Object.keys(y)))Ja.has(e)||(x[e]=n[e]);var y;return ma(p[0],x)});Oa.displayName="FontAwesomeIcon";var Aa={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"};s(".Box-module_box__SQLj3,.Box-module_collapseBox__5A5Fc{background-color:var(--ps-ui-foreground);border:1px solid var(--ps-ui-border);border-radius:4px;position:relative}.Box-module_padding__dIJ-L{margin-bottom:10px;padding:10px}.Box-module_collapseBox__5A5Fc{margin-bottom:10px}.Box-module_collapseBox__5A5Fc .Box-module_box__SQLj3,.Box-module_collapseBox__5A5Fc .Box-module_collapseBox__5A5Fc{background-color:transparent;border:none;border-radius:0;height:auto;padding-bottom:0}.Box-module_collapseBox__5A5Fc .Box-module_box__SQLj3.Box-module_collapsedContent__yn-0g,.Box-module_collapseBox__5A5Fc .Box-module_collapsedContent__yn-0g.Box-module_collapseBox__5A5Fc{height:0;margin:0;overflow:hidden;padding:0}.Box-module_collapseTitle__-R0ge{align-items:center;cursor:pointer;display:flex;font-size:18px;font-weight:500;height:40px;justify-content:space-between;padding:5px 10px}.Box-module_collapseTitle__-R0ge:hover{background-color:var(--ps-ui-border)}.Box-module_collapseIcon__OAiTO{display:flex;transition:transform .1s}.Box-module_collapseIcon__OAiTO.Box-module_collapsed__nf76f{display:flex;transform:rotate(90deg)}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJveC5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxzREFDRSx3Q0FBeUMsQ0FDekMsb0NBQXFDLENBQ3JDLGlCQUFrQixDQUNsQixpQkFDRixDQUVBLDJCQUNFLGtCQUFtQixDQUNuQixZQUNGLENBRUEsK0JBQ0Usa0JBQ0YsQ0FDQSxvSEFDRSw0QkFBNkIsQ0FDN0IsV0FBWSxDQUNaLGVBQWdCLENBRWhCLFdBQVksQ0FEWixnQkFFRixDQUNBLDBMQUNFLFFBQVMsQ0FDVCxRQUFTLENBRVQsZUFBZ0IsQ0FEaEIsU0FFRixDQUVBLGlDQU9FLGtCQUFtQixDQUpuQixjQUFlLENBRWYsWUFBYSxDQUhiLGNBQWUsQ0FEZixlQUFnQixDQU9oQixXQUFZLENBRlosNkJBQThCLENBRjlCLGdCQUtGLENBQ0EsdUNBQ0Usb0NBQ0YsQ0FFQSxnQ0FDRSxZQUFhLENBQ2Isd0JBQ0YsQ0FDQSw0REFFRSxZQUFhLENBRGIsdUJBRUYiLCJmaWxlIjoiQm94Lm1vZHVsZS5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmJveCwgLmNvbGxhcHNlQm94IHtcbiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcHMtdWktZm9yZWdyb3VuZCk7XG4gIGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLXBzLXVpLWJvcmRlcik7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xufVxuXG4ucGFkZGluZyB7XG4gIG1hcmdpbi1ib3R0b206IDEwcHg7XG4gIHBhZGRpbmc6IDEwcHg7XG59XG5cbi5jb2xsYXBzZUJveCB7XG4gIG1hcmdpbi1ib3R0b206IDEwcHg7XG59XG4uY29sbGFwc2VCb3ggLmJveCwgLmNvbGxhcHNlQm94IC5jb2xsYXBzZUJveCB7XG4gIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50O1xuICBib3JkZXI6IG5vbmU7XG4gIGJvcmRlci1yYWRpdXM6IDA7XG4gIHBhZGRpbmctYm90dG9tOiAwO1xuICBoZWlnaHQ6IGF1dG87XG59XG4uY29sbGFwc2VCb3ggLmJveC5jb2xsYXBzZWRDb250ZW50LCAuY29sbGFwc2VCb3ggLmNvbGxhcHNlZENvbnRlbnQuY29sbGFwc2VCb3gge1xuICBoZWlnaHQ6IDA7XG4gIG1hcmdpbjogMDtcbiAgcGFkZGluZzogMDtcbiAgb3ZlcmZsb3c6IGhpZGRlbjtcbn1cblxuLmNvbGxhcHNlVGl0bGUge1xuICBmb250LXdlaWdodDogNTAwO1xuICBmb250LXNpemU6IDE4cHg7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgcGFkZGluZzogNXB4IDEwcHg7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgaGVpZ2h0OiA0MHB4O1xufVxuLmNvbGxhcHNlVGl0bGU6aG92ZXIge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wcy11aS1ib3JkZXIpO1xufVxuXG4uY29sbGFwc2VJY29uIHtcbiAgZGlzcGxheTogZmxleDtcbiAgdHJhbnNpdGlvbjogdHJhbnNmb3JtIDAuMXM7XG59XG4uY29sbGFwc2VJY29uLmNvbGxhcHNlZCB7XG4gIHRyYW5zZm9ybTogcm90YXRlKDkwZGVnKTtcbiAgZGlzcGxheTogZmxleDtcbn0iXX0= */"),f.bind(Aa);const Ea=Symbol("BrandTag");const za=new class{constructor(e){this[Ea]=e}}("unit"),Ta=e=>null==e;function Ha(e,t){return void 0!==t?e(t):e}function Pa(e){if(function(e,t){return"object"==typeof e&&null!==e&&t in e}(e,"toString")&&"function"==typeof e.toString){const t=e.toString();return"string"==typeof t?t:JSON.stringify(e)}return JSON.stringify(e)}const Ka="Ok",$a="Err";class qa{constructor(e){this.repr=e}static ok(e){return Ta(e)?new qa(["Ok",za]):new qa(["Ok",e])}static err(e){return Ta(e)?new qa(["Err",za]):new qa(["Err",e])}get variant(){return this.repr[0]}get value(){if(this.repr[0]===$a)throw new Error("Cannot get the value of Err");return this.repr[1]}get error(){if(this.repr[0]===Ka)throw new Error("Cannot get the error of Ok");return this.repr[1]}get isOk(){return this.repr[0]===Ka}get isErr(){return this.repr[0]===$a}map(e){return function(e,t){const n=t=>t.isOk?er(e(t.value)):t;return Ha(n,t)}(e,this)}mapOr(e,t){return function(e,t,n){function a(t,n){return n.isOk?t(n.value):e}function r(e,t){return void 0!==t?a(e,t):t=>a(e,t)}return void 0===t?r:void 0===n?r(t):r(t,n)}(e,t,this)}mapOrElse(e,t){return nr(e,t,this)}match(e){return function(e,t){const n=t=>nr(e.Err,e.Ok,t);return Ha(n,t)}(e,this)}mapErr(e){return function(e,t){const n=t=>t.isOk?t:tr(e(t.error));return Ha(n,t)}(e,this)}or(e){return function(e,t){const n=t=>t.isOk?er(t.value):e;return Ha(n,t)}(e,this)}orElse(e){return function(e,t){const n=t=>t.isOk?er(t.value):e(t.error);return Ha(n,t)}(e,this)}and(e){return function(e,t){const n=t=>t.isOk?e:tr(t.error);return Ha(n,t)}(e,this)}andThen(e){return function(e,t){const n=t=>t.isOk?e(t.value):tr(t.error);return Ha(n,t)}(e,this)}unwrapOr(e){return function(e,t){const n=t=>t.isOk?t.value:e;return Ha(n,t)}(e,this)}unwrapOrElse(e){return function(e,t){const n=t=>t.isOk?t.value:e(t.error);return Ha(n,t)}(e,this)}toMaybe(){return(e=this).isOk?fr.just(e.value):fr.nothing();var e}toString(){return ar(this)}toJSON(){return rr(this)}equals(e){return t=e,void 0!==(n=this)?n.match({Err:()=>t.isErr,Ok:e=>t.isOk&&t.value===e}):e=>e.match({Err:()=>t.isErr,Ok:e=>t.isOk&&t.value===e});var t,n}ap(e){return function(e,t){const n=t=>t.andThen(t=>e.map(e=>e(t)));return Ha(n,t)}(this,e)}}const er=qa.ok,tr=qa.err;function nr(e,t,n){function a(t,n){return n.isOk?t(n.value):e(n.error)}function r(e,t){return void 0!==t?a(e,t):t=>a(e,t)}return void 0===t?r:void 0===n?r(t):r(t,n)}const ar=e=>{const t=e.match({Ok:Pa,Err:Pa});return`${e.variant.toString()}(${t})`},rr=e=>e.isOk?{variant:e.variant,value:e.value}:{variant:e.variant,error:e.error};const or=qa,ir="Just",lr="Nothing";let sr;class cr{constructor(e){if(Ta(e))return this.repr=[lr],sr||(sr=this),sr;this.repr=[ir,e]}static of(e){return new cr(e)}static just(e){if(Ta(e))throw new Error(`attempted to call "just" with ${e}`);return new cr(e)}static nothing(e){return new cr}get variant(){return this.repr[0]}get value(){if(this.repr[0]===lr)throw new Error("Cannot get the value of `Nothing`");return this.repr[1]}get isJust(){return this.repr[0]===ir}get isNothing(){return this.repr[0]===lr}map(e){return function(e,t){const n=t=>t.isJust?ur(e(t.value)):dr();return Ha(n,t)}(e,this)}mapOr(e,t){return function(e,t,n){function a(t,n){return n.isJust?t(n.value):e}function r(e,t){return void 0!==t?a(e,t):t=>a(e,t)}return void 0===t?r:void 0===n?r(t):r(t,n)}(e,t,this)}mapOrElse(e,t){return br(e,t,this)}match(e){return function(e,t){const n=t=>br(e.Nothing,e.Just,t);return Ha(n,t)}(e,this)}or(e){return function(e,t){const n=t=>t.isJust?t:e;return void 0!==t?n(t):n}(e,this)}orElse(e){return function(e,t){const n=t=>t.isJust?t:e();return Ha(n,t)}(e,this)}and(e){return function(e,t){const n=t=>t.isJust?e:dr();return Ha(n,t)}(e,this)}andThen(e){return mr(e,this)}unwrapOr(e){return function(e,t){const n=t=>t.isJust?t.value:e;return Ha(n,t)}(e,this)}unwrapOrElse(e){return function(e,t){const n=t=>t.isJust?t.value:e();return Ha(n,t)}(e,this)}toOkOrErr(e){return function(e,t){const n=t=>t.isJust?or.ok(t.value):or.err(e);return void 0!==t?n(t):n}(e,this)}toOkOrElseErr(e){return function(e,t){return Ha(t=>t.isJust?or.ok(t.value):or.err(e()),t)}(e,this)}toString(){return function(e){const t=e.map(e=>`(${Pa(e)})`).unwrapOr("");return`${e.variant}${t}`}(this)}toJSON(){return(e=this).isJust?{variant:e.variant,value:hr(e.value)?e.value.toJSON():e.value}:{variant:e.variant};var e}equals(e){return t=e,Ha(e=>e.match({Just:e=>t.isJust&&t.value===e,Nothing:()=>t.isNothing}),this);var t}ap(e){return function(e,t){const n=t=>t.andThen(t=>e.map(e=>e(t)));return Ha(n,t)}(this,e)}get(e){return function(e,t){return Ha(mr(function(e,t){const n=t=>fr.of(t[e]);return Ha(n,t)}(e)),t)}(e,this)}}const ur=cr.just,dr=cr.nothing;function br(e,t,n){function a(t,n){return n.isJust?t(n.value):e()}function r(e,t){return void 0!==t?a(e,t):t=>a(e,t)}return void 0===t?r:void 0===n?r(t):r(t,n)}function mr(e,t){const n=t=>t.isJust?e(t.value):dr();return void 0!==t?n(t):n}function hr(e){return e instanceof fr}const fr=cr,gr=["dotnetspy","ebpfspy","gospy","phpspy","pyspy","rbspy","nodespy","javaspy","pyroscope-rs","scrape","tracing","unknown"],pr=n.z.preprocess(e=>e&&gr.includes(e)?e:"unknown",n.z.enum(gr).default("unknown")),xr=["samples","objects","goroutines","bytes","lock_samples","lock_nanoseconds","trace_samples","exceptions"],yr=n.z.preprocess(e=>"string"==typeof e&&xr.includes(e)?e:"unknown",n.z.enum(["samples","objects","goroutines","bytes","lock_samples","lock_nanoseconds","trace_samples","exceptions","unknown"])),vr=n.z.object({names:n.z.array(n.z.preprocess(e=>e||"unknown",n.z.string().min(1))),levels:n.z.array(n.z.array(n.z.number())),numTicks:n.z.number(),maxSelf:n.z.number()}),Gr=n.z.object({appName:n.z.string().optional(),name:n.z.string().optional(),startTime:n.z.number().optional(),endTime:n.z.number().optional(),query:n.z.string().optional(),maxNodes:n.z.number().optional(),format:n.z.enum(["single","double"]),sampleRate:n.z.number(),spyName:pr,units:yr});n.z.object({version:n.z.number().min(1).max(1).default(1),flamebearer:vr,metadata:Gr,leftTicks:n.z.number().optional(),rightTicks:n.z.number().optional()});const Qr={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]},Ir={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 Br(e){switch(e){case"single":return Qr;case"double":return Ir;default:throw new Error(`Unsupported type: '${e}'`)}}const Fr=n.z.object({refType:n.z.string(),traceID:n.z.string(),spanID:n.z.string()}),Zr=n.z.object({key:n.z.string(),type:n.z.string(),value:n.z.union([n.z.boolean(),n.z.number(),n.z.string()])}),wr=n.z.object({traceID:n.z.string(),spanID:n.z.string(),flags:n.z.string(),operationName:n.z.string(),references:n.z.array(Fr),startTime:n.z.number(),duration:n.z.number(),tags:n.z.array(Zr),logs:n.z.object({timestamp:n.z.number(),fields:n.z.array(Zr)}),processID:n.z.string(),warnings:n.z.any()}),Nr=n.z.object({serviceName:n.z.string(),tags:n.z.array(Zr)});n.z.object({traceID:n.z.string(),spans:n.z.array(wr),processes:n.z.record(Nr),warnings:n.z.any()});const Lr=n.z.object({watermark:n.z.object({}).optional(),startTime:n.z.number(),samples:n.z.array(n.z.number()),durationDelta:n.z.number()});n.z.record(n.z.string(),Lr);const Wr=22,Cr=21.5;function Xr(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function Rr(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 kr(e,t=!1){if(!e||!t)return e;const n=Rr(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 Ur=[{value:1e15,label:"Quad"},{value:1e12,label:"Tri"},{value:1e9,label:"B"},{value:1e6,label:"M"},{value:1e3,label:"K"}];function Dr(e){return Math.round(1e4*e)/100}function _r(e,t){return(t-e)/e*100}function Yr(e,t,n){switch(n){case"samples":return new jr(e/t);case"objects":case"goroutines":case"lock_samples":case"exceptions":return new Sr(e);case"bytes":return new Mr(e);case"lock_nanoseconds":return new Vr(e);case"trace_samples":return new jr(e/t,"",!0);default:return console.warn(`Unsupported unit: '${n}'. Defaulting to ''`),new jr(e/t," ")}}class jr{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 Vr{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 Sr{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 Mr{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",Or="HEAD";function Ar({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 Er(e){return e===Jr?{direction:"rtl",overflow:"hidden",textOverflow:"ellipsis"}:{overflow:"hidden",textOverflow:"ellipsis"}}const zr={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(const e in zr)Object.freeze(zr[e]);var Tr=Object.freeze(zr);const Hr=Object.create(null);for(const e in Tr)Object.hasOwn(Tr,e)&&(Hr[Tr[e]]=e);const Pr={to:{},get:{}};function Kr(e,t,n){return Math.min(Math.max(t,e),n)}function $r(e){const t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}Pr.get=function(e){let t,n;switch(e.slice(0,3).toLowerCase()){case"hsl":t=Pr.get.hsl(e),n="hsl";break;case"hwb":t=Pr.get.hwb(e),n="hwb";break;default:t=Pr.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},Pr.get.rgb=function(e){if(!e)return null;let t,n,a,r=[0,0,0,1];if(t=e.match(/^#([a-f\d]{6})([a-f\d]{2})?$/i)){for(a=t[2],t=t[1],n=0;n<3;n++){const e=2*n;r[n]=Number.parseInt(t.slice(e,e+2),16)}a&&(r[3]=Number.parseInt(a,16)/255)}else if(t=e.match(/^#([a-f\d]{3,4})$/i)){for(t=t[1],a=t[3],n=0;n<3;n++)r[n]=Number.parseInt(t[n]+t[n],16);a&&(r[3]=Number.parseInt(a+a,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)\s*(?:[\s,|/]\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(%?)\s*)?\)$/i)){for(n=0;n<3;n++)r[n]=Number.parseFloat(t[n+1]);t[4]&&(r[3]=t[5]?.01*Number.parseFloat(t[4]):Number.parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/i)))return(t=e.toLowerCase().match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:Object.hasOwn(Tr,t[1])?(r=Tr[t[1]].slice(),r[3]=1,r):null:null;for(n=0;n<3;n++)r[n]=Math.round(2.55*Number.parseFloat(t[n+1]));t[4]&&(r[3]=t[5]?.01*Number.parseFloat(t[4]):Number.parseFloat(t[4]))}for(n=0;n<3;n++)r[n]=Kr(r[n],0,255);return r[3]=Kr(r[3],0,1),r},Pr.get.hsl=function(e){if(!e)return null;const t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i);if(t){const e=Number.parseFloat(t[4]);return[(Number.parseFloat(t[1])%360+360)%360,Kr(Number.parseFloat(t[2]),0,100),Kr(Number.parseFloat(t[3]),0,100),Kr(Number.isNaN(e)?1:e,0,1)]}return null},Pr.get.hwb=function(e){if(!e)return null;const t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i);if(t){const e=Number.parseFloat(t[4]);return[(Number.parseFloat(t[1])%360+360)%360,Kr(Number.parseFloat(t[2]),0,100),Kr(Number.parseFloat(t[3]),0,100),Kr(Number.isNaN(e)?1:e,0,1)]}return null},Pr.to.hex=function(...e){return"#"+$r(e[0])+$r(e[1])+$r(e[2])+(e[3]<1?$r(Math.round(255*e[3])):"")},Pr.to.rgb=function(...e){return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},Pr.to.rgb.percent=function(...e){const t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+a+"%)":"rgba("+t+"%, "+n+"%, "+a+"%, "+e[3]+")"},Pr.to.hsl=function(...e){return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},Pr.to.hwb=function(...e){let t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},Pr.to.keyword=function(...e){return Hr[e.slice(0,3)]};const qr={};for(const e of Object.keys(Tr))qr[Tr[e]]=e;const eo={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},to=(6/29)**3;function no(e){const t=e>.0031308?1.055*e**(1/2.4)-.055:12.92*e;return Math.min(Math.max(0,t),1)}function ao(e){return e>.04045?((e+.055)/1.055)**2.4:e/12.92}for(const e of Object.keys(eo)){if(!("channels"in eo[e]))throw new Error("missing channels property: "+e);if(!("labels"in eo[e]))throw new Error("missing channel labels property: "+e);if(eo[e].labels.length!==eo[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=eo[e];delete eo[e].channels,delete eo[e].labels,Object.defineProperty(eo[e],"channels",{value:t}),Object.defineProperty(eo[e],"labels",{value:n})}function ro(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}function oo(e){const t=function(){const e={},t=Object.keys(eo);for(let{length:n}=t,a=0;a<n;a++)e[t[a]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length>0;){const e=n.pop(),a=Object.keys(eo[e]);for(let{length:r}=a,o=0;o<r;o++){const r=a[o],i=t[r];-1===i.distance&&(i.distance=t[e].distance+1,i.parent=e,n.unshift(r))}}return t}function io(e,t){return function(n){return t(e(n))}}function lo(e,t){const n=[t[e].parent,e];let a=eo[t[e].parent][e],r=t[e].parent;for(;t[r].parent;)n.unshift(t[r].parent),a=io(eo[t[r].parent][r],a),r=t[r].parent;return a.conversion=n,a}function so(e){const t=oo(e),n={},a=Object.keys(t);for(let{length:e}=a,r=0;r<e;r++){const e=a[r];null!==t[e].parent&&(n[e]=lo(e,t))}return n}eo.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.min(t,n,a),o=Math.max(t,n,a),i=o-r;let l,s;switch(o){case r:l=0;break;case t:l=(n-a)/i;break;case n:l=2+(a-t)/i;break;case a:l=4+(t-n)/i}l=Math.min(60*l,360),l<0&&(l+=360);const c=(r+o)/2;return s=o===r?0:c<=.5?i/(o+r):i/(2-o-r),[l,100*s,100*c]},eo.rgb.hsv=function(e){let t,n,a,r,o;const i=e[0]/255,l=e[1]/255,s=e[2]/255,c=Math.max(i,l,s),u=c-Math.min(i,l,s),d=function(e){return(c-e)/6/u+.5};if(0===u)r=0,o=0;else{switch(o=u/c,t=d(i),n=d(l),a=d(s),c){case i:r=a-n;break;case l:r=1/3+t-a;break;case s:r=2/3+n-t}r<0?r+=1:r>1&&(r-=1)}return[360*r,100*o,100*c]},eo.rgb.hwb=function(e){const t=e[0],n=e[1];let a=e[2];const r=eo.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,a));return a=1-1/255*Math.max(t,Math.max(n,a)),[r,100*o,100*a]},eo.rgb.oklab=function(e){const t=ao(e[0]/255),n=ao(e[1]/255),a=ao(e[2]/255),r=Math.cbrt(.4122214708*t+.5363325363*n+.0514459929*a),o=Math.cbrt(.2119034982*t+.6806995451*n+.1073969566*a),i=Math.cbrt(.0883024619*t+.2817188376*n+.6299787005*a);return[100*(.2104542553*r+.793617785*o-.0040720468*i),100*(1.9779984951*r-2.428592205*o+.4505937099*i),100*(.0259040371*r+.7827717662*o-.808675766*i)]},eo.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.min(1-t,1-n,1-a);return[100*((1-t-r)/(1-r)||0),100*((1-n-r)/(1-r)||0),100*((1-a-r)/(1-r)||0),100*r]},eo.rgb.keyword=function(e){const t=qr[e];if(t)return t;let n,a=Number.POSITIVE_INFINITY;for(const t of Object.keys(Tr)){const r=ro(e,Tr[t]);r<a&&(a=r,n=t)}return n},eo.keyword.rgb=function(e){return[...Tr[e]]},eo.rgb.xyz=function(e){const t=ao(e[0]/255),n=ao(e[1]/255),a=ao(e[2]/255);return[100*(.4124564*t+.3575761*n+.1804375*a),100*(.2126729*t+.7151522*n+.072175*a),100*(.0193339*t+.119192*n+.9503041*a)]},eo.rgb.lab=function(e){const t=eo.rgb.xyz(e);let n=t[0],a=t[1],r=t[2];n/=95.047,a/=100,r/=108.883,n=n>to?n**(1/3):7.787*n+16/116,a=a>to?a**(1/3):7.787*a+16/116,r=r>to?r**(1/3):7.787*r+16/116;return[116*a-16,500*(n-a),200*(a-r)]},eo.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,a=e[2]/100;let r,o;if(0===n)return o=255*a,[o,o,o];const i=a<.5?a*(1+n):a+n-a*n,l=2*a-i,s=[0,0,0];for(let e=0;e<3;e++)r=t+1/3*-(e-1),r<0&&r++,r>1&&r--,o=6*r<1?l+6*(i-l)*r:2*r<1?i:3*r<2?l+(i-l)*(2/3-r)*6:l,s[e]=255*o;return s},eo.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,a=e[2]/100,r=n;const o=Math.max(a,.01);a*=2,n*=a<=1?a:2-a,r*=o<=1?o:2-o;return[t,100*(0===a?2*r/(o+r):2*n/(a+n)),100*((a+n)/2)]},eo.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let a=e[2]/100;const r=Math.floor(t)%6,o=t-Math.floor(t),i=255*a*(1-n),l=255*a*(1-n*o),s=255*a*(1-n*(1-o));switch(a*=255,r){case 0:return[a,s,i];case 1:return[l,a,i];case 2:return[i,a,s];case 3:return[i,l,a];case 4:return[s,i,a];case 5:return[a,i,l]}},eo.hsv.hsl=function(e){const t=e[0],n=e[1]/100,a=e[2]/100,r=Math.max(a,.01);let o,i;i=(2-n)*a;const l=(2-n)*r;return o=n*r,o/=l<=1?l:2-l,o=o||0,i/=2,[t,100*o,100*i]},eo.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,a=e[2]/100;const r=n+a;let o;r>1&&(n/=r,a/=r);const i=Math.floor(6*t),l=1-a;o=6*t-i,1&i&&(o=1-o);const s=n+o*(l-n);let c,u,d;switch(i){default:case 6:case 0:c=l,u=s,d=n;break;case 1:c=s,u=l,d=n;break;case 2:c=n,u=l,d=s;break;case 3:c=n,u=s,d=l;break;case 4:c=s,u=n,d=l;break;case 5:c=l,u=n,d=s}return[255*c,255*u,255*d]},eo.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,a*(1-r)+r))]},eo.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100;let r,o,i;return r=3.2404542*t+-1.5371385*n+-.4985314*a,o=-.969266*t+1.8760108*n+.041556*a,i=.0556434*t+-.2040259*n+1.0572252*a,r=no(r),o=no(o),i=no(i),[255*r,255*o,255*i]},eo.xyz.lab=function(e){let t=e[0],n=e[1],a=e[2];t/=95.047,n/=100,a/=108.883,t=t>to?t**(1/3):7.787*t+16/116,n=n>to?n**(1/3):7.787*n+16/116,a=a>to?a**(1/3):7.787*a+16/116;return[116*n-16,500*(t-n),200*(n-a)]},eo.xyz.oklab=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100,r=Math.cbrt(.8189330101*t+.3618667424*n-.1288597137*a),o=Math.cbrt(.0329845436*t+.9293118715*n+.0361456387*a),i=Math.cbrt(.0482003018*t+.2643662691*n+.633851707*a);return[100*(.2104542553*r+.793617785*o-.0040720468*i),100*(1.9779984951*r-2.428592205*o+.4505937099*i),100*(.0259040371*r+.7827717662*o-.808675766*i)]},eo.oklab.oklch=function(e){return eo.lab.lch(e)},eo.oklab.xyz=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100,r=(.999999998*t+.396337792*n+.215803758*a)**3,o=(1.000000008*t-.105561342*n-.063854175*a)**3,i=(1.000000055*t-.089484182*n-1.291485538*a)**3;return[100*(1.227013851*r-.55779998*o+.281256149*i),100*(-.040580178*r+1.11225687*o-.071676679*i),100*(-.076381285*r-.421481978*o+1.58616322*i)]},eo.oklab.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100,r=(t+.3963377774*n+.2158037573*a)**3,o=(t-.1055613458*n-.0638541728*a)**3,i=(t-.0894841775*n-1.291485548*a)**3;return[255*no(4.0767416621*r-3.3077115913*o+.2309699292*i),255*no(-1.2684380046*r+2.6097574011*o-.3413193965*i),255*no(-.0041960863*r-.7034186147*o+1.707614701*i)]},eo.oklch.oklab=function(e){return eo.lch.lab(e)},eo.lab.xyz=function(e){let t,n,a;n=(e[0]+16)/116,t=e[1]/500+n,a=n-e[2]/200;const r=n**3,o=t**3,i=a**3;return n=r>to?r:(n-16/116)/7.787,t=o>to?o:(t-16/116)/7.787,a=i>to?i:(a-16/116)/7.787,t*=95.047,n*=100,a*=108.883,[t,n,a]},eo.lab.lch=function(e){const t=e[0],n=e[1],a=e[2];let r;r=360*Math.atan2(a,n)/2/Math.PI,r<0&&(r+=360);return[t,Math.sqrt(n*n+a*a),r]},eo.lch.lab=function(e){const t=e[0],n=e[1],a=e[2]/360*2*Math.PI;return[t,n*Math.cos(a),n*Math.sin(a)]},eo.rgb.ansi16=function(e,t=null){const[n,a,r]=e;let o=null===t?eo.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),0===o)return 30;let i=30+(Math.round(r/255)<<2|Math.round(a/255)<<1|Math.round(n/255));return 2===o&&(i+=60),i},eo.hsv.ansi16=function(e){return eo.rgb.ansi16(eo.hsv.rgb(e),e[2])},eo.rgb.ansi256=function(e){const t=e[0],n=e[1],a=e[2];if(t>>4==n>>4&&n>>4==a>>4)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(a/255*5)},eo.ansi16.rgb=function(e){let t=(e=e[0])%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(Math.trunc(e>50)+1);return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},eo.ansi256.rgb=function(e){if((e=e[0])>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},eo.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".slice(t.length)+t},eo.hex.rgb=function(e){const t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=[...n].map(e=>e+e).join(""));const a=Number.parseInt(n,16);return[a>>16&255,a>>8&255,255&a]},eo.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.max(Math.max(t,n),a),o=Math.min(Math.min(t,n),a),i=r-o;let l;return l=i<=0?0:r===t?(n-a)/i%6:r===n?2+(a-t)/i:4+(t-n)/i,l/=6,l%=1,[360*l,100*i,100*(i<1?o/(1-i):0)]},eo.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,a=n<.5?2*t*n:2*t*(1-n);let r=0;return a<1&&(r=(n-.5*a)/(1-a)),[e[0],100*a,100*r]},eo.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,a=t*n;let r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],100*a,100*r]},eo.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,a=e[2]/100;if(0===n)return[255*a,255*a,255*a];const r=[0,0,0],o=t%1*6,i=o%1,l=1-i;let s=0;switch(Math.floor(o)){case 0:r[0]=1,r[1]=i,r[2]=0;break;case 1:r[0]=l,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=i;break;case 3:r[0]=0,r[1]=l,r[2]=1;break;case 4:r[0]=i,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=l}return s=(1-n)*a,[255*(n*r[0]+s),255*(n*r[1]+s),255*(n*r[2]+s)]},eo.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let a=0;return n>0&&(a=t/n),[e[0],100*a,100*n]},eo.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let a=0;return n>0&&n<.5?a=t/(2*n):n>=.5&&n<1&&(a=t/(2*(1-n))),[e[0],100*a,100*n]},eo.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},eo.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,a=n-t;let r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],100*a,100*r]},eo.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},eo.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},eo.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},eo.gray.hsl=function(e){return[0,0,e[0]]},eo.gray.hsv=eo.gray.hsl,eo.gray.hwb=function(e){return[0,100,e[0]]},eo.gray.cmyk=function(e){return[0,0,0,e[0]]},eo.gray.lab=function(e){return[e[0],0,0]},eo.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(n.length)+n},eo.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const co={},uo=Object.keys(eo);function bo(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function mo(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const a=e(t);if("object"==typeof a)for(let{length:e}=a,t=0;t<e;t++)a[t]=Math.round(a[t]);return a};return"conversion"in e&&(t.conversion=e.conversion),t}for(const e of uo){co[e]={},Object.defineProperty(co[e],"channels",{value:eo[e].channels}),Object.defineProperty(co[e],"labels",{value:eo[e].labels});const t=so(e),n=Object.keys(t);for(const a of n){const n=t[a];co[e][a]=mo(n),co[e][a].raw=bo(n)}}const ho=["keyword","gray","hex"],fo={};for(const e of Object.keys(co))fo[[...co[e].labels].sort().join("")]=e;const go={};function po(e,t){if(!(this instanceof po))return new po(e,t);if(t&&t in ho&&(t=null),t&&!(t in co))throw new Error("Unknown model: "+t);let n,a;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof po)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=Pr.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,a=co[this.model].channels,this.color=t.value.slice(0,a),this.valpha="number"==typeof t.value[a]?t.value[a]:1}else if(e.length>0){this.model=t||"rgb",a=co[this.model].channels;const n=Array.prototype.slice.call(e,0,a);this.color=Go(n,a),this.valpha="number"==typeof e[a]?e[a]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const a=t.sort().join("");if(!(a in fo))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=fo[a];const{labels:r}=co[this.model],o=[];for(n=0;n<r.length;n++)o.push(e[r[n]]);this.color=Go(o)}if(go[this.model])for(a=co[this.model].channels,n=0;n<a;n++){const e=go[this.model][n];e&&(this.color[n]=e(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}po.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Pr.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const n=1===t.valpha?t.color:[...t.color,this.valpha];return Pr.to[t.model](...n)},percentString(e){const t=this.rgb().round("number"==typeof e?e:1),n=1===t.valpha?t.color:[...t.color,this.valpha];return Pr.to.rgb.percent(...n)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=co[this.model],{labels:n}=co[this.model];for(let a=0;a<t;a++)e[n[a]]=this.color[a];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new po([...this.color.map(xo(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new po([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:yo("rgb",0,vo(255)),green:yo("rgb",1,vo(255)),blue:yo("rgb",2,vo(255)),hue:yo(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:yo("hsl",1,vo(100)),lightness:yo("hsl",2,vo(100)),saturationv:yo("hsv",1,vo(100)),value:yo("hsv",2,vo(100)),chroma:yo("hcg",1,vo(100)),gray:yo("hcg",2,vo(100)),white:yo("hwb",1,vo(100)),wblack:yo("hwb",2,vo(100)),cyan:yo("cmyk",0,vo(100)),magenta:yo("cmyk",1,vo(100)),yellow:yo("cmyk",2,vo(100)),black:yo("cmyk",3,vo(100)),x:yo("xyz",0,vo(95.047)),y:yo("xyz",1,vo(100)),z:yo("xyz",2,vo(108.833)),l:yo("lab",0,vo(100)),a:yo("lab",1),b:yo("lab",2),keyword(e){return void 0!==e?new po(e):co[this.model].keyword(this.color)},hex(e){return void 0!==e?new po(e):Pr.to.hex(...this.rgb().round().color)},hexa(e){if(void 0!==e)return new po(e);const t=this.rgb().round().color;let n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),Pr.to.hex(...t)+n},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[n,a]of e.entries()){const e=a/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return po.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),a=this.rgb(),r=void 0===t?.5:t,o=2*r-1,i=n.alpha()-a.alpha(),l=((o*i===-1?o:(o+i)/(1+o*i))+1)/2,s=1-l;return po.rgb(l*n.red()+s*a.red(),l*n.green()+s*a.green(),l*n.blue()+s*a.blue(),n.alpha()*r+a.alpha()*(1-r))}};for(const e of Object.keys(co)){if(ho.includes(e))continue;const{channels:t}=co[e];po.prototype[e]=function(...t){return this.model===e?new po(this):t.length>0?new po(t,e):new po([...(n=co[this.model][e].raw(this.color),Array.isArray(n)?n:[n]),this.valpha],e);var n},po[e]=function(...n){let a=n[0];return"number"==typeof a&&(a=Go(n,t)),new po(a,e)}}function xo(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function yo(e,t,n){e=Array.isArray(e)?e:[e];for(const a of e)(go[a]||=[])[t]=n;return e=e[0],function(a){let r;return void 0!==a?(n&&(a=n(a)),r=this[e](),r.color[t]=a,r):(r=this[e]().color[t],n&&(r=n(r)),r)}}function vo(e){return function(t){return Math.max(0,Math.min(e,t))}}function Go(e,t){for(let n=0;n<t;n++)"number"!=typeof e[n]&&(e[n]=0);return e}function Qo(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Io(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Bo(e){let t,n,a;function r(e,a,r=0,o=e.length){if(r<o){if(0!==t(a,a))return o;do{const t=r+o>>>1;n(e[t],a)<0?r=t+1:o=t}while(r<o)}return r}return 2!==e.length?(t=Qo,n=(t,n)=>Qo(e(t),n),a=(t,n)=>e(t)-n):(t=e===Qo||e===Io?e:Fo,n=e,a=e),{left:r,center:function(e,t,n=0,o=e.length){const i=r(e,t,n,o-1);return i>n&&a(e[i-1],t)>-a(e[i],t)?i-1:i},right:function(e,a,r=0,o=e.length){if(r<o){if(0!==t(a,a))return o;do{const t=r+o>>>1;n(e[t],a)<=0?r=t+1:o=t}while(r<o)}return r}}}function Fo(){return 0}const Zo=Bo(Qo).right;Bo(function(e){return null===e?NaN:+e}).center;const wo=Math.sqrt(50),No=Math.sqrt(10),Lo=Math.sqrt(2);function Wo(e,t,n){const a=(t-e)/Math.max(0,n),r=Math.floor(Math.log10(a)),o=a/Math.pow(10,r),i=o>=wo?10:o>=No?5:o>=Lo?2:1;let l,s,c;return r<0?(c=Math.pow(10,-r)/i,l=Math.round(e*c),s=Math.round(t*c),l/c<e&&++l,s/c>t&&--s,c=-c):(c=Math.pow(10,r)*i,l=Math.round(e/c),s=Math.round(t/c),l*c<e&&++l,s*c>t&&--s),s<l&&.5<=n&&n<2?Wo(e,t,2*n):[l,s,c]}function Co(e,t,n){return Wo(e=+e,t=+t,n=+n)[2]}function Xo(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Ro(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ko(e,t){var n=Object.create(e.prototype);for(var a in t)n[a]=t[a];return n}function Uo(){}var Do=.7,_o=1/Do,Yo="\\s*([+-]?\\d+)\\s*",jo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",So=/^#([0-9a-f]{3,8})$/,Mo=new RegExp(`^rgb\\(${Yo},${Yo},${Yo}\\)$`),Jo=new RegExp(`^rgb\\(${Vo},${Vo},${Vo}\\)$`),Oo=new RegExp(`^rgba\\(${Yo},${Yo},${Yo},${jo}\\)$`),Ao=new RegExp(`^rgba\\(${Vo},${Vo},${Vo},${jo}\\)$`),Eo=new RegExp(`^hsl\\(${jo},${Vo},${Vo}\\)$`),zo=new RegExp(`^hsla\\(${jo},${Vo},${Vo},${jo}\\)$`),To={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ho(){return this.rgb().formatHex()}function Po(){return this.rgb().formatRgb()}function Ko(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=So.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?$o(t):3===n?new ti(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?qo(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?qo(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Mo.exec(e))?new ti(t[1],t[2],t[3],1):(t=Jo.exec(e))?new ti(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Oo.exec(e))?qo(t[1],t[2],t[3],t[4]):(t=Ao.exec(e))?qo(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Eo.exec(e))?li(t[1],t[2]/100,t[3]/100,1):(t=zo.exec(e))?li(t[1],t[2]/100,t[3]/100,t[4]):To.hasOwnProperty(e)?$o(To[e]):"transparent"===e?new ti(NaN,NaN,NaN,0):null}function $o(e){return new ti(e>>16&255,e>>8&255,255&e,1)}function qo(e,t,n,a){return a<=0&&(e=t=n=NaN),new ti(e,t,n,a)}function ei(e,t,n,a){return 1===arguments.length?function(e){return e instanceof Uo||(e=Ko(e)),e?new ti((e=e.rgb()).r,e.g,e.b,e.opacity):new ti}(e):new ti(e,t,n,null==a?1:a)}function ti(e,t,n,a){this.r=+e,this.g=+t,this.b=+n,this.opacity=+a}function ni(){return`#${ii(this.r)}${ii(this.g)}${ii(this.b)}`}function ai(){const e=ri(this.opacity);return`${1===e?"rgb(":"rgba("}${oi(this.r)}, ${oi(this.g)}, ${oi(this.b)}${1===e?")":`, ${e})`}`}function ri(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function oi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ii(e){return((e=oi(e))<16?"0":"")+e.toString(16)}function li(e,t,n,a){return a<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ci(e,t,n,a)}function si(e){if(e instanceof ci)return new ci(e.h,e.s,e.l,e.opacity);if(e instanceof Uo||(e=Ko(e)),!e)return new ci;if(e instanceof ci)return e;var t=(e=e.rgb()).r/255,n=e.g/255,a=e.b/255,r=Math.min(t,n,a),o=Math.max(t,n,a),i=NaN,l=o-r,s=(o+r)/2;return l?(i=t===o?(n-a)/l+6*(n<a):n===o?(a-t)/l+2:(t-n)/l+4,l/=s<.5?o+r:2-o-r,i*=60):l=s>0&&s<1?0:i,new ci(i,l,s,e.opacity)}function ci(e,t,n,a){this.h=+e,this.s=+t,this.l=+n,this.opacity=+a}function ui(e){return(e=(e||0)%360)<0?e+360:e}function di(e){return Math.max(0,Math.min(1,e||0))}function bi(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ro(Uo,Ko,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ho,formatHex:Ho,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return si(this).formatHsl()},formatRgb:Po,toString:Po}),Ro(ti,ei,ko(Uo,{brighter(e){return e=null==e?_o:Math.pow(_o,e),new ti(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Do:Math.pow(Do,e),new ti(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ti(oi(this.r),oi(this.g),oi(this.b),ri(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ni,formatHex:ni,formatHex8:function(){return`#${ii(this.r)}${ii(this.g)}${ii(this.b)}${ii(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ai,toString:ai})),Ro(ci,function(e,t,n,a){return 1===arguments.length?si(e):new ci(e,t,n,null==a?1:a)},ko(Uo,{brighter(e){return e=null==e?_o:Math.pow(_o,e),new ci(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Do:Math.pow(Do,e),new ci(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,a=n+(n<.5?n:1-n)*t,r=2*n-a;return new ti(bi(e>=240?e-240:e+120,r,a),bi(e,r,a),bi(e<120?e+240:e-120,r,a),this.opacity)},clamp(){return new ci(ui(this.h),di(this.s),di(this.l),ri(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ri(this.opacity);return`${1===e?"hsl(":"hsla("}${ui(this.h)}, ${100*di(this.s)}%, ${100*di(this.l)}%${1===e?")":`, ${e})`}`}}));var mi=e=>()=>e;function hi(e){return 1===(e=+e)?fi:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(a){return Math.pow(e+a*t,n)}}(t,n,e):mi(isNaN(t)?n:t)}}function fi(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):mi(isNaN(e)?t:e)}var gi=function e(t){var n=hi(t);function a(e,t){var a=n((e=ei(e)).r,(t=ei(t)).r),r=n(e.g,t.g),o=n(e.b,t.b),i=fi(e.opacity,t.opacity);return function(t){return e.r=a(t),e.g=r(t),e.b=o(t),e.opacity=i(t),e+""}}return a.gamma=e,a}(1);function pi(e,t){t||(t=[]);var n,a=e?Math.min(t.length,e.length):0,r=t.slice();return function(o){for(n=0;n<a;++n)r[n]=e[n]*(1-o)+t[n]*o;return r}}function xi(e,t){var n,a=t?t.length:0,r=e?Math.min(a,e.length):0,o=new Array(r),i=new Array(a);for(n=0;n<r;++n)o[n]=Fi(e[n],t[n]);for(;n<a;++n)i[n]=t[n];return function(e){for(n=0;n<r;++n)i[n]=o[n](e);return i}}function yi(e,t){var n=new Date;return e=+e,t=+t,function(a){return n.setTime(e*(1-a)+t*a),n}}function vi(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Gi(e,t){var n,a={},r={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?a[n]=Fi(e[n],t[n]):r[n]=t[n];return function(e){for(n in a)r[n]=a[n](e);return r}}var Qi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ii=new RegExp(Qi.source,"g");function Bi(e,t){var n,a,r,o=Qi.lastIndex=Ii.lastIndex=0,i=-1,l=[],s=[];for(e+="",t+="";(n=Qi.exec(e))&&(a=Ii.exec(t));)(r=a.index)>o&&(r=t.slice(o,r),l[i]?l[i]+=r:l[++i]=r),(n=n[0])===(a=a[0])?l[i]?l[i]+=a:l[++i]=a:(l[++i]=null,s.push({i:i,x:vi(n,a)})),o=Ii.lastIndex;return o<t.length&&(r=t.slice(o),l[i]?l[i]+=r:l[++i]=r),l.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var n,a=0;a<t;++a)l[(n=s[a]).i]=n.x(e);return l.join("")})}function Fi(e,t){var n,a=typeof t;return null==t||"boolean"===a?mi(t):("number"===a?vi:"string"===a?(n=Ko(t))?(t=n,gi):Bi:t instanceof Ko?gi:t instanceof Date?yi:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?pi:Array.isArray(t)?xi:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Gi:vi)(e,t)}function Zi(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function wi(e){return+e}var Ni=[0,1];function Li(e){return e}function Wi(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Ci(e,t,n){var a=e[0],r=e[1],o=t[0],i=t[1];return r<a?(a=Wi(r,a),o=n(i,o)):(a=Wi(a,r),o=n(o,i)),function(e){return o(a(e))}}function Xi(e,t,n){var a=Math.min(e.length,t.length)-1,r=new Array(a),o=new Array(a),i=-1;for(e[a]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<a;)r[i]=Wi(e[i],e[i+1]),o[i]=n(t[i],t[i+1]);return function(t){var n=Zo(e,t,1,a)-1;return o[n](r[n](t))}}function Ri(){var e,t,n,a,r,o,i=Ni,l=Ni,s=Fi,c=Li;function u(){var e=Math.min(i.length,l.length);return c!==Li&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(i[0],i[e-1])),a=e>2?Xi:Ci,r=o=null,d}function d(t){return null==t||isNaN(t=+t)?n:(r||(r=a(i.map(e),l,s)))(e(c(t)))}return d.invert=function(n){return c(t((o||(o=a(l,i.map(e),vi)))(n)))},d.domain=function(e){return arguments.length?(i=Array.from(e,wi),u()):i.slice()},d.range=function(e){return arguments.length?(l=Array.from(e),u()):l.slice()},d.rangeRound=function(e){return l=Array.from(e),s=Zi,u()},d.clamp=function(e){return arguments.length?(c=!!e||Li,u()):c!==Li},d.interpolate=function(e){return arguments.length?(s=e,u()):s},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,a){return e=n,t=a,u()}}function ki(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,a=e.slice(0,n);return[a.length>1?a[0]+a.slice(2):a,+e.slice(n+1)]}function Ui(e){return(e=ki(Math.abs(e)))?e[1]:NaN}var Di,_i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Yi(e){if(!(t=_i.exec(e)))throw new Error("invalid format: "+e);var t;return new ji({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function ji(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Vi(e,t){var n=ki(e,t);if(!n)return e+"";var a=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+a:a.length>r+1?a.slice(0,r+1)+"."+a.slice(r+1):a+new Array(r-a.length+2).join("0")}Yi.prototype=ji.prototype,ji.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Si={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Vi(100*e,t),r:Vi,s:function(e,t){var n=ki(e,t);if(!n)return e+"";var a=n[0],r=n[1],o=r-(Di=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,i=a.length;return o===i?a:o>i?a+new Array(o-i+1).join("0"):o>0?a.slice(0,o)+"."+a.slice(o):"0."+new Array(1-o).join("0")+ki(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Mi(e){return e}var Ji,Oi,Ai,Ei=Array.prototype.map,zi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ti(e){var t,n,a=void 0===e.grouping||void 0===e.thousands?Mi:(t=Ei.call(e.grouping,Number),n=e.thousands+"",function(e,a){for(var r=e.length,o=[],i=0,l=t[0],s=0;r>0&&l>0&&(s+l+1>a&&(l=Math.max(1,a-s)),o.push(e.substring(r-=l,r+l)),!((s+=l+1)>a));)l=t[i=(i+1)%t.length];return o.reverse().join(n)}),r=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",i=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?Mi:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(Ei.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=Yi(e)).fill,n=e.align,d=e.sign,b=e.symbol,m=e.zero,h=e.width,f=e.comma,g=e.precision,p=e.trim,x=e.type;"n"===x?(f=!0,x="g"):Si[x]||(void 0===g&&(g=12),p=!0,x="g"),(m||"0"===t&&"="===n)&&(m=!0,t="0",n="=");var y="$"===b?r:"#"===b&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",v="$"===b?o:/[%p]/.test(x)?s:"",G=Si[x],Q=/[defgprs%]/.test(x);function I(e){var r,o,s,b=y,I=v;if("c"===x)I=G(e)+I,e="";else{var B=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:G(Math.abs(e),g),p&&(e=function(e){e:for(var t,n=e.length,a=1,r=-1;a<n;++a)switch(e[a]){case".":r=t=a;break;case"0":0===r&&(r=a),t=a;break;default:if(!+e[a])break e;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(t+1):e}(e)),B&&0===+e&&"+"!==d&&(B=!1),b=(B?"("===d?d:c:"-"===d||"("===d?"":d)+b,I=("s"===x?zi[8+Di/3]:"")+I+(B&&"("===d?")":""),Q)for(r=-1,o=e.length;++r<o;)if(48>(s=e.charCodeAt(r))||s>57){I=(46===s?i+e.slice(r+1):e.slice(r))+I,e=e.slice(0,r);break}}f&&!m&&(e=a(e,1/0));var F=b.length+e.length+I.length,Z=F<h?new Array(h-F+1).join(t):"";switch(f&&m&&(e=a(Z+e,Z.length?h-I.length:1/0),Z=""),n){case"<":e=b+e+I+Z;break;case"=":e=b+Z+e+I;break;case"^":e=Z.slice(0,F=Z.length>>1)+b+e+I+Z.slice(F);break;default:e=Z+b+e+I}return l(e)}return g=void 0===g?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),I.toString=function(){return e+""},I}return{format:d,formatPrefix:function(e,t){var n=d(((e=Yi(e)).type="f",e)),a=3*Math.max(-8,Math.min(8,Math.floor(Ui(t)/3))),r=Math.pow(10,-a),o=zi[8+a/3];return function(e){return n(r*e)+o}}}}function Hi(e,t,n,a){var r,o=function(e,t,n){n=+n;const a=(t=+t)<(e=+e),r=a?Co(t,e,n):Co(e,t,n);return(a?-1:1)*(r<0?1/-r:r)}(e,t,n);switch((a=Yi(null==a?",f":a)).type){case"s":var i=Math.max(Math.abs(e),Math.abs(t));return null!=a.precision||isNaN(r=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ui(t)/3)))-Ui(Math.abs(e)))}(o,i))||(a.precision=r),Ai(a,i);case"":case"e":case"g":case"p":case"r":null!=a.precision||isNaN(r=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ui(t)-Ui(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(a.precision=r-("e"===a.type));break;case"f":case"%":null!=a.precision||isNaN(r=function(e){return Math.max(0,-Ui(Math.abs(e)))}(o))||(a.precision=r-2*("%"===a.type))}return Oi(a)}function Pi(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const a=t<e,[r,o,i]=a?Wo(t,e,n):Wo(e,t,n);if(!(o>=r))return[];const l=o-r+1,s=new Array(l);if(a)if(i<0)for(let e=0;e<l;++e)s[e]=(o-e)/-i;else for(let e=0;e<l;++e)s[e]=(o-e)*i;else if(i<0)for(let e=0;e<l;++e)s[e]=(r+e)/-i;else for(let e=0;e<l;++e)s[e]=(r+e)*i;return s}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var a=t();return Hi(a[0],a[a.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var a,r,o=t(),i=0,l=o.length-1,s=o[i],c=o[l],u=10;for(c<s&&(r=s,s=c,c=r,r=i,i=l,l=r);u-- >0;){if((r=Co(s,c,n))===a)return o[i]=s,o[l]=c,t(o);if(r>0)s=Math.floor(s/r)*r,c=Math.ceil(c/r)*r;else{if(!(r<0))break;s=Math.ceil(s*r)/r,c=Math.floor(c*r)/r}a=r}return e},e}function Ki(){var e=Ri()(Li,Li);return e.copy=function(){return t=e,Ki().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());var t},Xo.apply(e,arguments),Pi(e)}function $i(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 qi(e,t){return po.rgb(e,e,e).alpha(t)}function el(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 tl(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 nl(e){const{goodColor:t,neutralColor:n,badColor:a}=e,r=Ki().domain([-100,0,100]).range([t.rgb().toString(),n.rgb().toString(),a.rgb().toString()]);return e=>po(r(e).toString())}Ji=Ti({thousands:",",grouping:[3],currency:["$",""]}),Oi=Ji.format,Ai=Ji.formatPrefix,po.rgb(148,142,142),po.rgb(200,0,0),po.rgb(0,170,0),po("#48CE73");const al=new WeakMap,rl=new WeakMap,ol=new WeakMap,il=new WeakMap;const ll={collapsedLevelsSingular:"total (1 level collapsed)",collapsedLevelsPlural:"total ({n} levels collapsed)",isZh:!1};function sl(e){var t,n,a,r,o,i,l,s;const c=performance.now(),u=!1!==e.renderRects,d=!1!==e.renderText,b=null!==(t=e.renderMode)&&void 0!==t?t:"normal",m=e.timeBudgetMs,{canvas:h,fitMode:f,units:g,tickToX:p,levels:x,palette:y}=e,{numTicks:v,sampleRate:G,pxPerTick:Q}=e,{rangeMin:I,rangeMax:B}=e,{focusedNode:F,zoom:Z}=e,w=e.messages||ll,N=e.skipCanvasResize?h.width:function(e){if("clientWidth"in e&&"number"==typeof e.clientWidth)return e.clientWidth;return e.width}(h);if(e.skipCanvasResize||(h.width=N),I>=B)throw new Error("'rangeMin' should be strictly smaller than 'rangeMax'");const{format:L}=e,W=Br(L),C=h.getContext("2d");if(!C)throw new Error("Could not get ctx");const X=Z.mapOrElse(()=>0,e=>e.i),R=Yr(v,G,g),k=F.isJust,U=F.mapOrElse(()=>0,e=>e.i),D=k?Cr:0,_=!!e.highlightQuery&&e.highlightQuery.length>0,Y=Wr*(x.length-U)+(k?Cr:0);e.skipCanvasResize||(h.height=Y);const j="number"==typeof e.devicePixelRatio?e.devicePixelRatio:"undefined"!=typeof devicePixelRatio?devicePixelRatio:1;!e.skipDprScale&&j>1&&(h.width*=j,h.height*=j,C.scale(j,j)),C.textBaseline="middle",C.font="400 11.5px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace";const V=C.measureText("a").width,{names:S}=e,M=function(e){const t=al.get(e);if(t)return t;const n=new Map;return al.set(e,n),n}(h),J=_?function(e,t){const n=rl.get(e);if(n){const e=n.get(t);if(e)return e}const a=t.toLowerCase(),r=new Uint8Array(e.length);for(let t=1;t<e.length;t+=1){const n=e[t];n&&n.toLowerCase().includes(a)&&(r[t]=1)}const o=null!=n?n:new Map;return o.set(t,r),rl.set(e,o),r}(S,e.highlightQuery):null,O="single"===e.format?function(e,t,n){const a=`${t}|${n.name}`,r=ol.get(e);if(r){const e=r.get(a);if(e)return e}const o=new Array(e.length);for(let a=0;a<e.length;a+=1){const r=el(t,e[a]||"")||"";o[a]=tl(n,r)}const i=null!=r?r:new Map;return i.set(a,o),ol.set(e,i),o}(S,e.spyName,y):null,A="double"===e.format?nl({name:y.name,goodColor:y.goodColor,neutralColor:y.neutralColor,badColor:y.badColor}):null,E=(e,t)=>{const n=e[t+W.jName];return!(!n||n<0||!J)&&1===J[n]},z=null!==(n=e.startI)&&void 0!==n?n:0,T=null!==(a=e.startJ)&&void 0!==a?a:0;if(k&&"highlightOnly"!==b&&0===(null!==(r=e.levelStart)&&void 0!==r?r:0)&&0===z&&0===T){const e=v*Q;u&&(C.beginPath(),C.rect(0,0,v*Q,Cr),C.fillStyle=qi(200,1).rgb().string(),C.fill());const t=F.mapOrElse(()=>"total",e=>function(e,t){return 1===e?t.collapsedLevelsSingular:t.collapsedLevelsPlural.replace("{n}",String(e))}(e.i-1,w)),n=Ar({mode:f,charSize:V,rectWidth:e,fullText:t,shortText:t}),a=0,r=0,o=Cr;if(d){C.beginPath(),C.rect(0,0,e,Cr),C.save(),C.clip(),C.fillStyle="black";const t=Math.round(Math.max(a,0));C.fillText(n.text,t+n.marginLeft,r+o/2+1),C.restore()}}const H=Math.max(0,null!==(o=e.levelStart)&&void 0!==o?o:0),P=x.length-U,K=Math.min(P,null!==(i=e.levelEnd)&&void 0!==i?i:P),$=Math.max(H,null!==(l=e.startI)&&void 0!==l?l:H),q=Math.max(0,null!==(s=e.startJ)&&void 0!==s?s:0),{spyName:ee}=e,te=(t,n,a,r,o)=>{const i={level:t,j:n,i:a+F.mapOrElse(()=>0,e=>e.i),names:S,collapsed:r,selectedLevel:X,highlightModeOn:_,isHighlighted:o,spyName:ee,palette:y,colorByNameIndex:O,diffColorFn:A};switch(L){case"single":return function(e){const t=dl(e);if(t)return t;const n=Br("single"),a=e.selectedLevel>e.i?.33:1;let r=e.level[e.j+n.jName];void 0===r&&(console.warn("Could nto find level",{l:e.j,jName:n.jName,level:e.level}),r=-1);if(e.colorByNameIndex&&r>=0&&e.colorByNameIndex[r])return e.colorByNameIndex[r].alpha(a);const o=e.names[r]||"",i=el(e.spyName,o)||"";return tl(e.palette,i).alpha(a)}({...i});case"double":return function(e){const t=dl(e);if(t)return t;const n=e.selectedLevel>e.i?.33:1,{leftRatio:a,rightRatio:r}=function(e,t,n,a){const r=Ir;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=Dr(a),i=Dr(r);if(e.diffColorFn)return e.diffColorFn($i(o,i)).alpha(n);return function(e,t,n){const a=$i(t,n);return nl(e)(a)}(e.palette,o,i).alpha(n)}({...i,leftTicks:e.leftTicks,rightTicks:e.rightTicks});default:throw new Error(`Unsupported format: ${L}`)}};if("highlightOnly"===b&&_&&u){const e=function(e,t){const n=il.get(e);if(n)return n;const a=Br(t),r=new Map;for(let t=0;t<e.length;t+=1){const n=e[t];for(let e=0;e<n.length;e+=a.jStep){const o=a.getBarName(n,e);if(void 0===o||o<0)continue;const i=r.get(o);i?i.push({i:t,j:e}):r.set(o,[{i:t,j:e}])}}return il.set(e,r),r}(x,L),t=[];for(let e=1;e<S.length;e+=1)J&&1===J[e]&&t.push(e);for(let n=0;n<t.length;n+=1){const a=t[n],r=e.get(a);if(r)for(let e=0;e<r.length;e+=1){const t=r[e],n=t.i-U;if(t.i<U||n<H||n>=K)continue;const a=x[t.i],o=p(W.getBarOffset(a,t.j)),i=n*Wr+D,l=Cr,s=W.getBarTotal(a,t.j),c=s*Q<=5,u=s*Q-(c?0:.5);if(u<=0)continue;C.beginPath(),C.rect(o,i,u,l);const d=te(a,t.j,n,c,!0);C.fillStyle=d.string(),C.fill()}}return{done:!0,nextI:K,nextJ:0}}for(let e=$;e<K;e+=1){const t=x[U+e];if(!t)throw new Error(`Could not find level: ${U+e}`);let n=e===$?q:0;for(;n<t.length;n+=W.jStep){const a=W.getBarOffset(t,n),r=p(a),o=e*Wr+D,i=Cr,l=_&&E(t,n);let s=W.getBarTotal(t,n);const h=s*Q<=5;if(h)for(;n<t.length-W.jStep&&a+s===W.getBarOffset(t,n+W.jStep)&&W.getBarTotal(t,n+W.jStep)*Q<=5&&l===(_&&E(t,n+W.jStep));)n+=W.jStep,s+=W.getBarTotal(t,n);const g=s*Q-(h?0:.5);if(C.beginPath(),C.rect(r,o,g,i),u){if("forceGrey"===b)C.fillStyle=qi(200,.66).rgb().string();else{const a=te(t,n,e,h,l);C.fillStyle=a.string()}C.fill()}if(!d||h||"forceGrey"===b){if(m&&performance.now()-c>m)return{done:!1,nextI:e,nextJ:n+W.jStep};continue}if(g<20)continue;const x=cl(S,n,L,t),y=Ar({mode:f,charSize:V,rectWidth:g,fullText:ul(x,s,G,R,w,M),shortText:x});C.save(),C.clip(),C.fillStyle="black";const v=Math.round(Math.max(r,0));if(C.fillText(y.text,v+y.marginLeft,o+i/2+1),C.restore(),m&&performance.now()-c>m)return{done:!1,nextI:e,nextJ:n+W.jStep}}if(m&&performance.now()-c>m)return{done:!1,nextI:e+1,nextJ:0}}return{done:!0,nextI:K,nextJ:0}}function cl(e,t,n,a){let r=a[t+Br(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 ul(e,t,n,a,r,o){let i=null==o?void 0:o.get(t);if(!i){const e=a.format(t,n);i=kr(e,!!r.isZh)||e,null==o||o.set(t,i)}return`${e} (${i})`}function dl({collapsed:e,highlightModeOn:t,isHighlighted:n}){return e||t&&!n?qi(200,.66):null}class bl{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)*Wr,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=Qr;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=Ir;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=Br(e.format),this.palette=i,this.messages=l,n.isJust&&o.isJust&&o.value.i<n.value.i)throw new Error("Zoom i level should be bigger than Focus")}render(e){var t;const{rangeMin:n,rangeMax:a,pxPerTick:r}=this.updateCachedMetrics(),o=null!==(t=null==e?void 0:e.highlightQueryOverride)&&void 0!==t?t:this.highlightQuery,i={canvas:this.canvas,format:this.flamebearer.format,numTicks:this.flamebearer.numTicks,sampleRate:this.flamebearer.sampleRate,names:this.flamebearer.names,levels:this.flamebearer.levels,spyName:this.flamebearer.spyName,units:this.flamebearer.units,maxSelf:this.flamebearer.maxSelf,rangeMin:n,rangeMax:a,fitMode:this.fitMode,highlightQuery:o,zoom:this.zoom,focusedNode:this.focusedNode,pxPerTick:r,tickToX:e=>(e-this.flamebearer.numTicks*n)*r,palette:this.palette,messages:this.messages,renderRects:null==e?void 0:e.renderRects,renderText:null==e?void 0:e.renderText,renderMode:null==e?void 0:e.renderMode,levelStart:null==e?void 0:e.levelStart,levelEnd:null==e?void 0:e.levelEnd,startI:null==e?void 0:e.startI,startJ:null==e?void 0:e.startJ,timeBudgetMs:null==e?void 0:e.timeBudgetMs,skipCanvasResize:null==e?void 0:e.skipCanvasResize,skipDprScale:null==e?void 0:e.skipDprScale,devicePixelRatio:null==e?void 0:e.devicePixelRatio},{format:l}=this.flamebearer;switch(l){case"single":return sl({...i,format:"single"});case"double":return sl({...i,leftTicks:this.flamebearer.leftTicks,rightTicks:this.flamebearer.rightTicks});default:throw new Error(`Invalid format: '${l}'`)}}pxPerTick(){if(null!==this.cachedPxPerTick)return this.cachedPxPerTick;const{rangeMin:e,rangeMax:t}=this.getRange(),n=this.getCanvasWidth()/this.flamebearer.numTicks/(t-e);return this.cachedRange={rangeMin:e,rangeMax:t},this.cachedPxPerTick=n,n}updateCachedMetrics(){const{rangeMin:e,rangeMax:t}=this.getRange(),n=this.getCanvasWidth()/this.flamebearer.numTicks/(t-e);return this.cachedRange={rangeMin:e,rangeMax:t},this.cachedPxPerTick=n,{rangeMin:e,rangeMax:t,pxPerTick:n}}getRange(){const{ff:e}=this,t=t=>{const n=this.flamebearer.levels[t.i];if(!n)throw new Error(`Could not find level: '${t.i}'`);return{rangeMin:e.getBarOffset(n,t.j)/this.flamebearer.numTicks,rangeMax:(e.getBarOffset(n,t.j)+e.getBarTotal(n,t.j))/this.flamebearer.numTicks}},n=t=>{const n=this.flamebearer.levels[t.i];if(!n)throw new Error(`Could not find level: '${t.i}'`);return{rangeMin:e.getBarOffset(n,t.j)/this.flamebearer.numTicks,rangeMax:(e.getBarOffset(n,t.j)+e.getBarTotal(n,t.j))/this.flamebearer.numTicks}},{zoom:a,focusedNode:r}=this;return a.match({Just:e=>r.match({Just:a=>{const r=n(a),o=t(e);return r.rangeMax-r.rangeMin<o.rangeMax-o.rangeMin?(console.warn("Focus is smaller than range, this shouldnt happen. Verify that the zoom is always bigger than the focus."),n(a)):t(e)},Nothing:()=>t(e)}),Nothing:()=>r.match({Just:e=>n(e),Nothing:()=>({rangeMin:0,rangeMax:1})})})}getCanvasWidth(){return"clientWidth"in this.canvas&&"number"==typeof this.canvas.clientWidth?this.canvas.clientWidth:this.canvas.width}isFocused(){return this.focusedNode.isJust}binarySearchLevel(e,t){const{ff:n}=this;let a=0,r=t.length-n.jStep;for(;a<=r;){const o=n.jStep*(a/n.jStep+r/n.jStep>>1),i=this.tickToX(n.getBarOffset(t,o)),l=this.tickToX(n.getBarOffset(t,o)+n.getBarTotal(t,o));if(i<=e&&l>=e)return l-i>5?o:-1;i>e?r=o-n.jStep:a=o+n.jStep}return-1}xyToBarIndex(e,t){if(e<0||t<0)throw new Error(`x and y must be bigger than 0. x = ${e}, y = ${t}`);if(this.isFocused()&&t<=Cr)return{i:0,j:0};const n=this.isFocused()?t-Cr: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/Wr)+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)?fr.of(n):fr.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 ml(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=ml(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function hl(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=ml(e))&&(a&&(a+=" "),a+=t);return a}var fl="NoData-module_noData__WuuID";function gl(){return e.jsx("div",{"data-testid":"no-data",className:fl,children:e.jsx("span",{children:"No data available"})})}s(".NoData-module_noData__WuuID{height:100%;padding:60px 0;text-align:center;width:100%}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk5vRGF0YS5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw2QkFFRSxXQUFZLENBRVosY0FBZSxDQURmLGlCQUFrQixDQUZsQixVQUlGIiwiZmlsZSI6Ik5vRGF0YS5tb2R1bGUuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5ub0RhdGEge1xuICB3aWR0aDogMTAwJTtcbiAgaGVpZ2h0OiAxMDAlO1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIHBhZGRpbmc6IDYwcHggMDtcbn0iXX0= */");var pl,xl,yl={},vl={};function Gl(){return pl||(pl=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}(vl)),vl}function Ql(){return xl||(xl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Gl();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}(yl)),yl}var Il,Bl=Ql(),Fl={};function Zl(){return Il||(Il=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}(Fl)),Fl}var wl,Nl=Zl(),Ll={};function Wl(){return wl||(wl=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}(Ll)),Ll}var Cl,Xl,Rl=Wl(),kl={},Ul={};function Dl(){return Cl||(Cl=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}(Ul)),Ul}function _l(){return Xl||(Xl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Dl();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}(kl)),kl}var Yl=_l();const jl=e=>!!e&&"o"===e[0],Vl=a.unstable_batchedUpdates,Sl=(e,t)=>!0===e||!(!e||!e[t]),Ml=(e,t)=>"function"==typeof e?e(t):e,Jl="_szhsinMenu",Ol=(e,t)=>Object.defineProperty(t,Jl,{value:e}),Al=(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),El=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 zl(e,t){return{"aria-disabled":e||void 0,tabIndex:t?0:-1}}function Tl(e,t){for(let n=0;n<e.length;n++)if(e[n]===t)return n;return-1}const Hl=({block:e,element:n,modifiers:a,className:r})=>t.useMemo(()=>{const t=n?`${e}__${n}`:e;let o=t;a&&Object.keys(a).forEach(e=>{const n=a[e];n&&(o+=` ${t}--${!0===n?e:`${e}-${n}`}`)});let i="function"==typeof r?r(a):r;return"string"==typeof i&&(i=i.trim(),i&&(o+=` ${i}`)),o},[e,n,a,r]),Pl="szh-menu",Kl=t.createContext(),$l=t.createContext({}),ql=t.createContext({}),es=t.createContext({}),ts=t.createContext({}),ns=t.createContext({}),as=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),rs=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),os=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),is=Object.freeze({FIRST:"first",LAST:"last"}),ls=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),ss="absolute",cs="none",us={preventScroll:!0},ds=Ol("MenuButton",t.forwardRef(function({className:n,isOpen:a,disabled:r,children:o,...i},l){const s=t.useMemo(()=>({open:a}),[a]);return e.jsx("button",{"aria-haspopup":!0,"aria-expanded":a,"aria-disabled":r||void 0,type:"button",disabled:r,...i,ref:l,className:Hl({block:"szh-menu-button",modifiers:s,className:n}),children:o})})),bs=({className:n,containerRef:a,containerProps:r,children:o,isOpen:i,theming:l,transition:s,onClose:c})=>{const u=Sl(s,"item");return e.jsx("div",{...Al({onKeyDown:({key:e})=>{if(e===as.ESC)Ml(c,{key:e,reason:os.CANCEL})},onBlur:e=>{i&&!e.currentTarget.contains(e.relatedTarget)&&Ml(c,{reason:os.BLUR})}},r),className:Hl({block:"szh-menu-container",modifiers:t.useMemo(()=>({theme:l,itemTransition:u}),[l,u]),className:n}),style:{position:"absolute",...r?.style},ref:a,children:o})},ms=()=>{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)}}},hs=(e,t)=>Math.round(e)===t?e:t,fs=(e,t,n,a)=>{const r=(e=>{const t=e.getBoundingClientRect();return t.width=hs(t.width,e.offsetWidth),t.height=hs(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,u=e=>e+o.top-i.top-l.top,d=e=>e+o.top+r.height-i.bottom+l.bottom;return{menuRect:r,containerRect:o,getLeftOverflow:s,getRightOverflow:c,getTopOverflow:u,getBottomOverflow:d,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=u(e);if(t<0)e-=t;else{const n=d(e);n>0&&(t=u(e-=n),t<0&&(e-=t))}return e}}},gs=({anchorRect:e,containerRect:t,menuRect:n,placeLeftorRightY:a,placeLeftX:r,placeRightX:o,getLeftOverflow:i,getRightOverflow:l,confineHorizontally:s,confineVertically:c,arrowRef:u,arrow:d,direction:b,position:m})=>{let h,f,g,p=b,x=a;"initial"!==m&&(x=c(x),"anchor"===m&&(x=Math.min(x,e.bottom-t.top),x=Math.max(x,e.top-t.top-n.height))),"left"===p?(h=r,"initial"!==m&&(f=i(h),f<0&&(g=l(o),(g<=0||-f>g)&&(h=o,p="right")))):(h=o,"initial"!==m&&(g=l(h),g>0&&(f=i(r),(f>=0||-f<g)&&(h=r,p="left")))),"auto"===m&&(h=s(h));const y=d?(({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:x,arrowRef:u,anchorRect:e,containerRect:t,menuRect:n}):void 0;return{arrowY:y,x:h,y:x,computedDirection:p}},ps=({anchorRect:e,containerRect:t,menuRect:n,placeToporBottomX:a,placeTopY:r,placeBottomY:o,getTopOverflow:i,getBottomOverflow:l,confineHorizontally:s,confineVertically:c,arrowRef:u,arrow:d,direction:b,position:m})=>{let h,f,g,p="top"===b?"top":"bottom",x=a;"initial"!==m&&(x=s(x),"anchor"===m&&(x=Math.min(x,e.right-t.left),x=Math.max(x,e.left-t.left-n.width))),"top"===p?(h=r,"initial"!==m&&(f=i(h),f<0&&(g=l(o),(g<=0||-f>g)&&(h=o,p="bottom")))):(h=o,"initial"!==m&&(g=l(h),g>0&&(f=i(r),(f>=0||-f<g)&&(h=r,p="top")))),"auto"===m&&(h=c(h));const y=d?(({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:x,arrowRef:u,anchorRect:e,containerRect:t,menuRect:n}):void 0;return{arrowX:y,x:x,y:h,computedDirection:p}},xs="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function ys(e,t){"function"==typeof e?e(t):e.current=t}const vs=(e,n)=>t.useMemo(()=>e?n?t=>{ys(e,t),ys(n,t)}:e:n,[e,n]),Gs=({ariaLabel:n,menuClassName:r,menuStyle:o,arrow:i,arrowProps:l={},anchorPoint:s,anchorRef:c,containerRef:u,containerProps:d,externalRef:b,parentScrollingRef:m,align:h="start",direction:f="bottom",position:g="auto",overflow:p="visible",setDownOverflow:x,repositionFlag:y,captureFocus:v=!0,state:G,endTransition:Q,isDisabled:I,menuItemFocus:B,gap:F=0,shift:Z=0,children:w,onClose:N,focusProps:L,...W})=>{const[C,X]=t.useState({x:-9999,y:-9999}),[R,k]=t.useState({}),[U,D]=t.useState(),[_,Y]=t.useState(f),[j]=t.useState(ms),[V,S]=t.useReducer(e=>e+1,1),{transition:M,boundingBoxRef:J,boundingBoxPadding:O,rootMenuRef:A,rootAnchorRef:E,scrollNodesRef:z,reposition:T,viewScroll:H,submenuCloseDelay:P}=t.useContext(ns),{submenuCtx:K,reposSubmenu:$=y}=t.useContext(ql),q=t.useRef(),ee=t.useRef(),te=t.useRef(!1),{hoverItem:ne,dispatch:ae,updateItems:re}=(e=>{const[n,a]=t.useState(),r=t.useRef({items:[],hoverIndex:-1,sorted:!1}).current,o=t.useCallback((t,n)=>{const{items:o}=r;if(t)if(n)o.push(t);else{const n=o.indexOf(t);n>-1&&(o.splice(n,1),t.contains(document.activeElement)&&(e.current.focus(us),a()))}else r.items=[];r.hoverIndex=-1,r.sorted=!1},[r,e]),i=t.useCallback((t,n,o)=>{const{items:i,hoverIndex:l}=r,s=()=>{if(r.sorted)return;const t=e.current.querySelectorAll(".szh-menu__item");i.sort((e,n)=>Tl(t,e)-Tl(t,n)),r.sorted=!0};let c,u=-1;switch(t){case rs.RESET:break;case rs.SET:c=n;break;case rs.UNSET:c=e=>e===n?void 0:e;break;case rs.FIRST:s(),u=0,c=i[u];break;case rs.LAST:s(),u=i.length-1,c=i[u];break;case rs.SET_INDEX:s(),u=o,c=i[u];break;case rs.INCREASE:s(),u=l,u<0&&(u=i.indexOf(n)),u++,u>=i.length&&(u=0),c=i[u];break;case rs.DECREASE:s(),u=l,u<0&&(u=i.indexOf(n)),u--,u<0&&(u=i.length-1),c=i[u];break;default:if("production"!==process.env.NODE_ENV)throw new Error(`[React-Menu] Unknown hover action type: ${t}`)}c||(u=-1),a(c),r.hoverIndex=u},[e,r]);return{hoverItem:n,dispatch:i,updateItems:o}})(q),oe=jl(G),ie=Sl(M,"open"),le=Sl(M,"close"),se=z.current,ce=t.useCallback(e=>{const t=q.current,n=u.current;if(!t||!n)return;const a=c?c.current?.getBoundingClientRect():s?{left:s.x,right:s.x,top:s.y,bottom:s.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."));se.menu||(se.menu=(J?J.current:El(A.current))||window);const r=fs(n,t,se.menu,O);let{arrowX:o,arrowY:l,x:d,y:b,computedDirection:m}=(({arrow:e,align:t,direction:n,gap:a,shift:r,position:o,anchorRect:i,arrowRef:l,positionHelpers:s})=>{const{menuRect:c,containerRect:u}=s,d="left"===n||"right"===n;let b=d?a:r,m=d?r:a;if(e){const e=l.current;d?b+=e.offsetWidth:m+=e.offsetHeight}const h=i.left-u.left-c.width-b,f=i.right-u.left+b,g=i.top-u.top-c.height-m,p=i.bottom-u.top+m;let x,y;"end"===t?(x=i.right-u.left-c.width,y=i.bottom-u.top-c.height):"center"===t?(x=i.left-u.left-(c.width-i.width)/2,y=i.top-u.top-(c.height-i.height)/2):(x=i.left-u.left,y=i.top-u.top),x+=b,y+=m;const v={...s,anchorRect:i,placeLeftX:h,placeRightX:f,placeLeftorRightY:y,placeTopY:g,placeBottomY:p,placeToporBottomX:x,arrowRef:l,arrow:e,direction:n,position:o};switch(n){case"left":case"right":return gs(v);default:return ps(v)}})({arrow:i,align:h,direction:f,gap:F,shift:Z,position:g,anchorRect:a,arrowRef:ee,positionHelpers:r});const{menuRect:x}=r,y=x.height;if(!e&&"visible"!==p){const{getTopOverflow:e,getBottomOverflow:t}=r;let n,a;const o=t(b);if(o>0)n=y-o,a=o;else{const t=e(b);t<0&&(n=y+t,a=0-t,n>=0&&(b-=t))}n>=0&&D({height:n,overflowAmt:a})}i&&k({x:o,y:l}),X({x:d,y:b}),Y(m)},[i,h,O,f,F,Z,g,p,s,c,u,J,A,se]);xs(()=>{oe&&(ce(),te.current&&S()),te.current=oe},[oe,ce,$]),xs(()=>{U&&!x&&(q.current.scrollTop=0)},[U,x]),xs(()=>re,[re]),t.useEffect(()=>{let{menu:e}=se;if(!oe||!e)return;if(e=e.addEventListener?e:window,!se.anchors){se.anchors=[];let t=El(E&&E.current);for(;t&&t!==e;)se.anchors.push(t),t=El(t)}let t=H;if(se.anchors.length&&"initial"===t&&(t="auto"),"initial"===t)return;const n=()=>{"auto"===t?Vl(()=>ce(!0)):Ml(N,{reason:os.SCROLL})},a=se.anchors.concat("initial"!==H?e:[]);return a.forEach(e=>e.addEventListener("scroll",n)),()=>a.forEach(e=>e.removeEventListener("scroll",n))},[E,se,oe,N,H,ce]);const ue=!!U&&U.overflowAmt>0;t.useEffect(()=>{if(ue||!oe||!m)return;const e=()=>Vl(ce),t=m.current;return t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)},[oe,ue,m,ce]),t.useEffect(()=>{if(!oe||"function"!=typeof ResizeObserver||"initial"===T)return;const e=[],t=new ResizeObserver(t=>t.forEach(({target:t})=>{e.indexOf(t)<0?e.push(t):a.flushSync(()=>{ce(),S()})})),n={box:"border-box"};t.observe(q.current,n);const r=c?.current;return r&&t.observe(r,n),()=>t.disconnect()},[oe,T,c,ce]),t.useEffect(()=>{if(!oe)return ae(rs.RESET),void(le||D());const{position:e,alwaysUpdate:t}=B||{},n=()=>{e===is.FIRST?ae(rs.FIRST):e===is.LAST?ae(rs.LAST):e>=-1&&ae(rs.SET_INDEX,void 0,e)};if(t)n();else if(v){const e=setTimeout(()=>{const e=q.current;e&&!e.contains(document.activeElement)&&(e.focus(us),n())},ie?170:100);return()=>clearTimeout(e)}},[oe,ie,le,v,B,ae]);const de=t.useMemo(()=>({isParentOpen:oe,submenuCtx:j,dispatch:ae,updateItems:re}),[oe,j,ae,re]);let be,me;U&&(x?me=U.overflowAmt:be=U.height);const he=t.useMemo(()=>({reposSubmenu:V,submenuCtx:j,overflow:p,overflowAmt:me,parentMenuRef:q,parentDir:_}),[V,j,p,me,_]),fe=be>=0?{maxHeight:be,overflow:p}:void 0,ge=t.useMemo(()=>({state:G,align:h,dir:_}),[G,h,_]),pe=t.useMemo(()=>({dir:_}),[_]),xe=Hl({block:Pl,element:"arrow",modifiers:pe,className:l.className}),ye=e.jsxs("ul",{role:"menu","aria-label":n,...zl(I),...Al({onPointerEnter:K?.off,onPointerMove:e=>{e.stopPropagation(),j.on(P,()=>{ae(rs.RESET),q.current.focus(us)})},onPointerLeave:e=>{e.target===e.currentTarget&&j.off()},onKeyDown:e=>{switch(e.key){case as.HOME:ae(rs.FIRST);break;case as.END:ae(rs.LAST);break;case as.UP:ae(rs.DECREASE,ne);break;case as.DOWN:ae(rs.INCREASE,ne);break;case as.SPACE:return void(e.target&&-1!==e.target.className.indexOf(Pl)&&e.preventDefault());default:return}e.preventDefault(),e.stopPropagation()},onAnimationEnd:()=>{"closing"===G&&D(),Ml(Q)}},W),ref:vs(b,q),className:Hl({block:Pl,modifiers:ge,className:r}),style:{...o,...fe,margin:0,display:"closed"===G?"none":void 0,position:ss,left:C.x,top:C.y},children:[i&&e.jsx("li",{"aria-hidden":!0,...l,className:xe,style:{display:"block",position:ss,left:R.x,top:R.y,...l.style},ref:ee}),e.jsx(ql.Provider,{value:he,children:e.jsx($l.Provider,{value:de,children:e.jsx(Kl.Provider,{value:ne,children:Ml(w,ge)})})})]});return d?e.jsx(bs,{...d,isOpen:oe,children:ye}):ye},Qs=t.forwardRef(function({"aria-label":n,className:r,containerProps:o,initialMounted:i,unmountOnClose:l,transition:s,transitionTimeout:c,boundingBoxRef:u,boundingBoxPadding:d,reposition:b="auto",submenuOpenDelay:m=300,submenuCloseDelay:h=150,viewScroll:f="initial",portal:g,theming:p,onItemClick:x,...y},v){const G=t.useRef(null),Q=t.useRef({}),{anchorRef:I,state:B,onClose:F}=y,Z=t.useMemo(()=>({initialMounted:i,unmountOnClose:l,transition:s,transitionTimeout:c,boundingBoxRef:u,boundingBoxPadding:d,rootMenuRef:G,rootAnchorRef:I,scrollNodesRef:Q,reposition:b,viewScroll:f,submenuOpenDelay:m,submenuCloseDelay:h}),[i,l,s,c,I,u,d,b,f,m,h]),w=t.useMemo(()=>({handleClick(e,t){e.stopPropagation||Ml(x,e);let n=e.keepOpen;void 0===n&&(n=t&&e.key===as.SPACE),n||Ml(F,{value:e.value,key:e.key,reason:os.CLICK})},handleClose(e){Ml(F,{key:e,reason:os.CLICK})}}),[x,F]);if(!B)return null;const N=e.jsx(ns.Provider,{value:Z,children:e.jsx(es.Provider,{value:w,children:e.jsx(Gs,{...y,ariaLabel:n||"Menu",externalRef:v,containerRef:G,containerProps:{className:r,containerRef:G,containerProps:o,theming:p,transition:s,onClose:F}})})});return!0===g&&"undefined"!=typeof document?a.createPortal(N,document.body):g?g.target?a.createPortal(N,g.target):g.stablePosition?null:N:N}),Is=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],Bs=e=>({_s:e,status:Is[e],isEnter:e<3,isMounted:6!==e,isResolved:2===e||e>4}),Fs=e=>e?6:5,Zs=(e,t,n,a,r)=>{clearTimeout(a.current);const o=Bs(e);t(o),n.current=o,r&&r({current:o})},ws=({enter:e=!0,exit:n=!0,preEnter:a,preExit:r,timeout:o,initialEntered:i,mountOnEnter:l,unmountOnExit:s,onStateChange:c}={})=>{const[u,d]=t.useState(()=>Bs(i?2:Fs(l))),b=t.useRef(u),m=t.useRef(),[h,f]=(e=>"object"==typeof e?[e.enter,e.exit]:[e,e])(o),g=t.useCallback(()=>{const e=((e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return Fs(t)}})(b.current._s,s);e&&Zs(e,d,b,m,c)},[c,s]);return[u,t.useCallback(t=>{const o=e=>{switch(Zs(e,d,b,m,c),e){case 1:h>=0&&(m.current=setTimeout(g,h));break;case 4:f>=0&&(m.current=setTimeout(g,f));break;case 0:case 3:m.current=((e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0))(o,e)}},i=b.current.isEnter;"boolean"!=typeof t&&(t=!i),t?!i&&o(e?a?0:1:2):i&&o(n?r?3:4:Fs(s))},[g,c,e,n,a,r,h,f,s]),g]},Ns=({initialOpen:e,initialMounted:n,unmountOnClose:a,transition:r,transitionTimeout:o=500,onMenuChange:i}={})=>{const l=Sl(r,"open"),s=Sl(r,"close"),[{status:c},u,d]=ws({initialEntered:e,mountOnEnter:!n,unmountOnExit:a,timeout:o,enter:l,exit:s,onStateChange:t.useCallback(({current:{isEnter:e,isResolved:t}})=>{!i||e&&l&&t||!e&&s&&t||i({open:e})},[i,l,s])});return[{state:ls[c],endTransition:d},u]},Ls=parseInt(t.version)<19,Ws=t.forwardRef(function({"aria-label":n,captureFocus:a,initialOpen:r,menuButton:o,instanceRef:i,onMenuChange:l,...s},c){const[u,d,b]=(e=>{const[n,a]=Ns(e),[r,o]=t.useState();return[{menuItemFocus:r,...n},a,(e,t)=>{o({position:e,alwaysUpdate:t}),a(!0)}]})({...s,onMenuChange:l}),{state:m}=u,h=jl(m),f=t.useRef(null),g=((e,n)=>{if("production"!==process.env.NODE_ENV&&"function"!=typeof n)throw new Error("[React-Menu] useClick/useHover requires a function in the second parameter.");const[a]=t.useState({});return{onMouseDown:()=>{a.v=e&&"closed"!==e},onClick:e=>a.v?a.v=!1:n(!0,e)}})(m,(e,t)=>b(t.detail?void 0:is.FIRST)),p=t.useCallback(e=>{d(!1),e.key&&f.current.focus()},[d]),x=Ml(o,{open:h});if(!x||!x.type)throw new Error("Menu requires a menuButton prop.");const y={...Al({onKeyDown:e=>{switch(e.key){case as.UP:b(is.LAST);break;case as.DOWN:b(is.FIRST);break;default:return}e.preventDefault()},...g},x.props),ref:vs(Ls?x.ref:x.props.ref,f)};"MenuButton"===x.type[Jl]&&(y.isOpen=h);const v=t.cloneElement(x,y);return t.useImperativeHandle(i,()=>({openMenu:b,closeMenu:()=>d(!1)})),e.jsxs(t.Fragment,{children:[v,e.jsx(Qs,{...s,...u,"aria-label":n||("string"==typeof x.props.children?x.props.children:"Menu"),anchorRef:f,ref:c,onClose:p})]})}),Cs=(n,a)=>{const r=t.memo(a),o=t.forwardRef((n,a)=>{const o=t.useRef(null);return e.jsx(r,{...n,itemRef:o,externalRef:a,isHovering:t.useContext(Kl)===o.current})});return o.displayName=`WithHovering(${n})`,o},Xs=(e,n,a,r)=>{const[o,i,l]=(e=>{const[n,a]=t.useState(!1);return t.useEffect(()=>{!e&&a(!1)},[e]),[n,()=>!n&&a(!0),()=>a(!1)]})(a),{submenuCloseDelay:s}=t.useContext(ns),{isParentOpen:c,submenuCtx:u,dispatch:d,updateItems:b}=t.useContext($l),m=()=>{!a&&!r&&d(rs.SET,e.current)},h=()=>{!r&&d(rs.UNSET,e.current)};return((e,t,n)=>{xs(()=>{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])})(r,e,b),t.useEffect(()=>{a&&c&&n.current&&n.current.focus()},[n,a,c]),{mouseOver:o,setHover:m,onBlur:e=>{a&&!e.currentTarget.contains(e.relatedTarget)&&h()},onPointerMove:e=>{r||(e.stopPropagation(),i(),u.on(s,m,m))},onPointerLeave:(e,t)=>{l(),u.off(),!t&&h()}}},Rs=Cs("MenuItem",function({className:n,value:a,href:r,type:o,checked:i,disabled:l,children:s,onClick:c,isHovering:u,itemRef:d,externalRef:b,...m}){const h=!!l,{mouseOver:f,setHover:g,...p}=Xs(d,d,u,h),x=t.useContext(es),y=t.useContext(ts),v="radio"===o,G="checkbox"===o,Q=!(!r||h||v||G),I=v?y.value===a:!!G&&!!i,B=e=>{if(h)return e.stopPropagation(),void e.preventDefault();const t={value:a,syntheticEvent:e};void 0!==e.key&&(t.key=e.key),G&&(t.checked=!I),v&&(t.name=y.name),Ml(c,t),v&&Ml(y.onRadioChange,t),x.handleClick(t,G||v)},F=t.useMemo(()=>({type:o,disabled:h,hover:f||u,checked:I,anchor:Q}),[o,h,f,u,I,Q]),Z=Al({...p,onPointerDown:g,onKeyDown:e=>{if(u)switch(e.key){case as.ENTER:e.preventDefault();case as.SPACE:Q?d.current.click():B(e)}},onClick:B},m),w={role:v?"menuitemradio":G?"menuitemcheckbox":"menuitem","aria-checked":v||G?I:void 0,...zl(h,u),...Z,ref:vs(b,d),className:Hl({block:Pl,element:"item",modifiers:F,className:n}),children:t.useMemo(()=>Ml(s,F),[s,F])};return Q?e.jsx("li",{role:cs,children:e.jsx("a",{href:r,...w})}):e.jsx("li",{...w})}),ks=t.memo(t.forwardRef(function({className:t,...n},a){return e.jsx("li",{role:cs,...n,ref:a,className:Hl({block:Pl,element:"header",className:t})})})),Us=t["undefined"!=typeof document&&void 0!==document.createElement?"useLayoutEffect":"useEffect"];function Ds(){}function _s(e,t,n={}){const a=js(n.polyfill),r=(e=>{const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),t})(t);return Us(()=>{let t=!1;const n=e&&"current"in e?e.current:e;if(!n)return Ds;function o(e,n){t||r.current(e,n)}return a.subscribe(n,o),()=>{t=!0,a.unsubscribe(n,o)}},[e,a,r]),a.observer}let Ys;const js=e=>Ys||(Ys=function(e){let t=!1,n=[];const a=new Map,r=new(e||window.ResizeObserver)((e,r)=>{n=n.concat(e),t||window.requestAnimationFrame(function(){const e=new Set;for(let t=0;t<n.length;t++){if(e.has(n[t].target))continue;e.add(n[t].target);const o=a.get(n[t].target);null==o||o.forEach(e=>e(n[t],r))}n=[],t=!1}),t=!0});return{observer:r,subscribe(e,t){var n;r.observe(e);const o=null!==(n=a.get(e))&&void 0!==n?n:[];o.push(t),a.set(e,o)},unsubscribe(e,t){var n;const o=null!==(n=a.get(e))&&void 0!==n?n:[];if(1===o.length)return r.unobserve(e),void a.delete(e);const i=o.indexOf(t);-1!==i&&o.splice(i,1),a.set(e,o)}}}(e));var Vs,Ss;function Ms(){if(Ss)return Vs;Ss=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,a=/^0o[0-7]+$/i,r=parseInt,o="object"==typeof c&&c&&c.Object===Object&&c,i="object"==typeof self&&self&&self.Object===Object&&self,l=o||i||Function("return this")(),s=Object.prototype.toString,u=Math.max,d=Math.min,b=function(){return l.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(o){if("number"==typeof o)return o;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==s.call(e)}(o))return NaN;if(m(o)){var i="function"==typeof o.valueOf?o.valueOf():o;o=m(i)?i+"":i}if("string"!=typeof o)return 0===o?o:+o;o=o.replace(e,"");var l=n.test(o);return l||a.test(o)?r(o.slice(2),l?2:8):t.test(o)?NaN:+o}return Vs=function(e,t,n){var a,r,o,i,l,s,c=0,f=!1,g=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function x(t){var n=a,o=r;return a=r=void 0,c=t,i=e.apply(o,n)}function y(e){var n=e-s;return void 0===s||n>=t||n<0||g&&e-c>=o}function v(){var e=b();if(y(e))return G(e);l=setTimeout(v,function(e){var n=t-(e-s);return g?d(n,o-(e-c)):n}(e))}function G(e){return l=void 0,p&&a?x(e):(a=r=void 0,i)}function Q(){var e=b(),n=y(e);if(a=arguments,r=this,s=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(v,t),f?x(e):i}(s);if(g)return l=setTimeout(v,t),x(s)}return void 0===l&&(l=setTimeout(v,t)),i}return t=h(t)||0,m(n)&&(f=!!n.leading,o=(g="maxWait"in n)?u(h(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),Q.cancel=function(){void 0!==l&&clearTimeout(l),c=0,a=s=r=l=void 0},Q.flush=function(){return void 0===l?i:G(b())},Q},Vs}var Js=u(Ms()),Os="canvas-module_canvas__Iiaz4",As="canvas-module_textCanvas__eFxM4";s(".canvas-module_canvas__Iiaz4{cursor:pointer;position:relative;width:100%;z-index:1}.canvas-module_textCanvas__eFxM4{left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:2}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNhbnZhcy5tb2R1bGUuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDZCQUVFLGNBQWUsQ0FDZixpQkFBa0IsQ0FGbEIsVUFBVyxDQUdYLFNBQ0YsQ0FFQSxpQ0FFRSxNQUFPLENBR1AsbUJBQW9CLENBSnBCLGlCQUFrQixDQUVsQixLQUFNLENBQ04sVUFBVyxDQUVYLFNBQ0YiLCJmaWxlIjoiY2FudmFzLm1vZHVsZS5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuY2FudmFzIHtcbiAgd2lkdGg6IDEwMCU7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICB6LWluZGV4OiAxO1xufVxuXG4udGV4dENhbnZhcyB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgbGVmdDogMDtcbiAgdG9wOiAwO1xuICB3aWR0aDogMTAwJTtcbiAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG4gIHotaW5kZXg6IDI7XG59XG4iXX0= */");var Es="Highlight-module_highlight__1VV-X";function zs(n){const{canvasRef:a,barHeight:r,xyToHighlightData:o,zoom:i}=n,[l,s]=t.useState({height:"0px",visibility:"hidden"}),c=t.useRef(null),u=t.useRef(null),d=t.useRef(null);t.useEffect(()=>{s({height:"0px",visibility:"hidden"})},[i]);const b=e=>{const t=c.current;if(!t)return void s(e);const n=d.current;n&&n.left===e.left&&n.top===e.top&&n.width===e.width&&n.visibility===e.visibility||(d.current=e,t.style.visibility=String(e.visibility||""),void 0!==e.left&&(t.style.left=String(e.left)),void 0!==e.top&&(t.style.top=String(e.top)),void 0!==e.width&&(t.style.width=String(e.width)),void 0!==e.height&&(t.style.height=String(e.height)))},m=e=>{u.current&&cancelAnimationFrame(u.current);const t=e.offsetX,n=e.offsetY;u.current=requestAnimationFrame(()=>{const e=o(t,n);if(e.isJust){const t=e.value;b({visibility:"visible",height:`${r}px`,...t})}else h()})},h=()=>{b({...d.current||{},visibility:"hidden"})};return t.useEffect(()=>{const e=a.current;return e?(e.addEventListener("mousemove",m),e.addEventListener("mouseout",h),()=>{e.removeEventListener("mousemove",m),e.removeEventListener("mouseout",h),u.current&&cancelAnimationFrame(u.current)}):()=>{}},[a.current,m,h]),e.jsx("div",{ref:c,className:Es,style:l,"data-testid":"flamegraph-highlight"})}s(".Highlight-module_highlight__1VV-X{background:#ffffff40;mix-blend-mode:overlay;pointer-events:none;position:absolute;z-index:2}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkhpZ2hsaWdodC5tb2R1bGUuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLG1DQUdFLG9CQUFxQixDQUNyQixzQkFBdUIsQ0FGdkIsbUJBQW9CLENBRHBCLGlCQUFrQixDQUlsQixTQUNGIiwiZmlsZSI6IkhpZ2hsaWdodC5tb2R1bGUuY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmhpZ2hsaWdodCB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG4gIGJhY2tncm91bmQ6ICNmZmZmZmY0MDtcbiAgbWl4LWJsZW5kLW1vZGU6IG92ZXJsYXk7XG4gIHotaW5kZXg6IDI7XG59XG4iXX0= */");var Ts="ContextMenuHighlight-module_highlightContextMenu__WI1nK";s(".ContextMenuHighlight-module_highlightContextMenu__WI1nK{background:#ffffff8c;mix-blend-mode:overlay;pointer-events:none;position:absolute;z-index:2}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNvbnRleHRNZW51SGlnaGxpZ2h0Lm1vZHVsZS5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEseURBSUUsb0JBQXFCLENBQ3JCLHNCQUF1QixDQUh2QixtQkFBb0IsQ0FEcEIsaUJBQWtCLENBS2xCLFNBQ0YiLCJmaWxlIjoiQ29udGV4dE1lbnVIaWdobGlnaHQubW9kdWxlLmNzcyIsInNvdXJjZXNDb250ZW50IjpbIi5oaWdobGlnaHRDb250ZXh0TWVudSB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG4gIC8qIG1ha2UgaXQgYSBiaXQgbGlnaHRlciBzbyB0aGF0IGl0J3MgZWFzaWVyIHRvIGRpc3Rpbmd1aXNoIHdoZW4gYm90aCBoaWdobGlnaHRzIGFyZSBvbiAqL1xuICBiYWNrZ3JvdW5kOiAjZmZmZmZmOGM7XG4gIG1peC1ibGVuZC1tb2RlOiBvdmVybGF5O1xuICB6LWluZGV4OiAyO1xufVxuIl19 */");const Hs={height:"0px",visibility:"hidden"};function Ps(n){const{node:a,barHeight:r}=n,[o,i]=t.useState(Hs);return t.useEffect(()=>{a.match({Nothing:()=>i(Hs),Just:e=>i({visibility:"visible",height:`${r}px`,...e})})},[a]),e.jsx("div",{className:Ts,style:o,"data-testid":"flamegraph-highlight-contextmenu"})}const Ks={name:"Default",goodColor:po.rgb(0,170,0),neutralColor:po.rgb(148,142,142),badColor:po.rgb(200,0,0),colors:[po.hsl(24,69,60),po.hsl(34,65,65),po.hsl(194,52,61),po.hsl(163,45,55),po.hsl(211,48,60),po.hsl(246,40,65),po.hsl(305,63,79),po.hsl(47,100,73),po.rgb(183,219,171),po.rgb(244,213,152),po.rgb(78,146,249),po.rgb(249,186,143),po.rgb(242,145,145),po.rgb(130,181,216),po.rgb(229,168,226),po.rgb(174,162,224),po.rgb(154,196,138),po.rgb(242,201,109),po.rgb(101,197,219),po.rgb(249,147,78),po.rgb(234,100,96),po.rgb(81,149,206),po.rgb(214,131,206),po.rgb(128,110,183)]},$s={...Ks,name:"Color Blind",goodColor:po.rgb(26,133,255),neutralColor:po.rgb(148,142,142),badColor:po.rgb(220,50,32)};function qs(){return e.jsxs("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",children:[e.jsx("defs",{}),e.jsx("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.jsx("path",{style:{fill:"#7d7d7f"},d:"M14,1h-.82c-4.52,0-8.18,3.73-8.18,8.33v1.67H14V1Z"}),e.jsx("path",{d:"M15.82,1h-.82V11h9v-1.67c0-4.6-3.66-8.33-8.18-8.33Z"})]})}function ec(){return e.jsxs("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",children:[e.jsx("defs",{}),e.jsx("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.jsx("path",{style:{fill:"#7d7d7f"},d:"M15,1h.82c4.52,0,8.18,3.73,8.18,8.33v1.67H15V1Z"}),e.jsx("path",{d:"M13.18,1h.82V11H5v-1.67c0-4.6,3.66-8.33,8.18-8.33Z"})]})}var tc={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"};s(".Tooltip-module_tooltip__NMZ65{background:var(--ps-tooltip-bg);border-radius:4px;box-shadow:1px 2px 4px 0 rgba(0,0,0,.3);color:var(--ps-tooltip-text);font-size:12px;pointer-events:none;position:fixed;visibility:hidden;width:420px;z-index:5}.Tooltip-module_tooltip__NMZ65.Tooltip-module_flamegraphDiffTooltip__Z983o{width:450px}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_tooltipName__y4Qs3{background-color:var(--ps-tooltip-header-bg);border-top-left-radius:4px;border-top-right-radius:4px;color:var(--ps-tooltip-text);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-weight:700;overflow:hidden;padding:8px 10px;text-overflow:ellipsis;white-space:nowrap}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_functionName__z9LHO{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;padding:8px 10px 0;white-space:break-spaces;word-break:break-all}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_tooltipTable__ct3pq{display:table;margin:10px;width:calc(100% - 20px)}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_tooltipTable__ct3pq td,.Tooltip-module_tooltip__NMZ65 .Tooltip-module_tooltipTable__ct3pq th{background-color:var(--ps-tooltip-bg);border:1px solid var(--ps-tooltip-header-bg);font-weight:400;padding:5px}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_clickInfo__Utux5{color:var(--ps-right-click-info);display:flex;justify-content:center;margin-bottom:10px}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_clickInfo__Utux5 svg{align-self:center;color:initial;display:block;height:22px;margin-right:5px;width:22px}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_clickInfo__Utux5 span{font-size:14px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRvb2x0aXAubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsK0JBR0UsK0JBQWdDLENBRWhDLGlCQUFrQixDQURsQix1Q0FBOEMsQ0FFOUMsNEJBQTZCLENBQzdCLGNBQWUsQ0FHZixtQkFBb0IsQ0FScEIsY0FBZSxDQU1mLGlCQUFrQixDQVBsQixXQUFZLENBUVosU0FFRixDQUNBLDJFQUNFLFdBQ0YsQ0FDQSxrRUFFRSw0Q0FBNkMsQ0FFN0MsMEJBQTJCLENBRDNCLDJCQUE0QixDQUY1Qiw0QkFBNkIsQ0FTN0IsbUVBQXdFLENBTHhFLGVBQWlCLENBRWpCLGVBQWdCLENBRWhCLGdCQUFpQixDQURqQixzQkFBdUIsQ0FGdkIsa0JBS0YsQ0FDQSxtRUFFRSxtRUFBd0UsQ0FEeEUsa0JBQW1CLENBRW5CLHdCQUF5QixDQUN6QixvQkFDRixDQUNBLG1FQUdFLGFBQWMsQ0FEZCxXQUFZLENBRFosdUJBR0YsQ0FDQSw0SUFFRSxxQ0FBc0MsQ0FDdEMsNENBQTZDLENBRTdDLGVBQW1CLENBRG5CLFdBRUYsQ0FDQSxnRUFJRSxnQ0FBaUMsQ0FGakMsWUFBYSxDQUNiLHNCQUF1QixDQUZ2QixrQkFJRixDQUNBLG9FQUdFLGlCQUFrQixDQUZsQixhQUFjLENBQ2QsYUFBYyxDQUdkLFdBQVksQ0FDWixnQkFBaUIsQ0FGakIsVUFHRixDQUNBLHFFQUNFLGNBQ0YiLCJmaWxlIjoiVG9vbHRpcC5tb2R1bGUuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi50b29sdGlwIHtcbiAgd2lkdGg6IDQyMHB4O1xuICBwb3NpdGlvbjogZml4ZWQ7XG4gIGJhY2tncm91bmQ6IHZhcigtLXBzLXRvb2x0aXAtYmcpO1xuICBib3gtc2hhZG93OiAxcHggMnB4IDRweCAwcHggcmdiYSgwLCAwLCAwLCAwLjMpO1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG4gIGNvbG9yOiB2YXIoLS1wcy10b29sdGlwLXRleHQpO1xuICBmb250LXNpemU6IDEycHg7XG4gIHZpc2liaWxpdHk6IGhpZGRlbjtcbiAgei1pbmRleDogNTtcbiAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG59XG4udG9vbHRpcC5mbGFtZWdyYXBoRGlmZlRvb2x0aXAge1xuICB3aWR0aDogNDUwcHg7XG59XG4udG9vbHRpcCAudG9vbHRpcE5hbWUge1xuICBjb2xvcjogdmFyKC0tcHMtdG9vbHRpcC10ZXh0KTtcbiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcHMtdG9vbHRpcC1oZWFkZXItYmcpO1xuICBib3JkZXItdG9wLXJpZ2h0LXJhZGl1czogNHB4O1xuICBib3JkZXItdG9wLWxlZnQtcmFkaXVzOiA0cHg7XG4gIGZvbnQtd2VpZ2h0OiBib2xkO1xuICB3aGl0ZS1zcGFjZTogbm93cmFwO1xuICBvdmVyZmxvdzogaGlkZGVuO1xuICB0ZXh0LW92ZXJmbG93OiBlbGxpcHNpcztcbiAgcGFkZGluZzogOHB4IDEwcHg7XG4gIGZvbnQtZmFtaWx5OiBTRk1vbm8tUmVndWxhciwgQ29uc29sYXMsIExpYmVyYXRpb24gTW9ubywgTWVubG8sIG1vbm9zcGFjZTtcbn1cbi50b29sdGlwIC5mdW5jdGlvbk5hbWUge1xuICBwYWRkaW5nOiA4cHggMTBweCAwO1xuICBmb250LWZhbWlseTogU0ZNb25vLVJlZ3VsYXIsIENvbnNvbGFzLCBMaWJlcmF0aW9uIE1vbm8sIE1lbmxvLCBtb25vc3BhY2U7XG4gIHdoaXRlLXNwYWNlOiBicmVhay1zcGFjZXM7XG4gIHdvcmQtYnJlYWs6IGJyZWFrLWFsbDtcbn1cbi50b29sdGlwIC50b29sdGlwVGFibGUge1xuICB3aWR0aDogY2FsYygxMDAlIC0gMjBweCk7XG4gIG1hcmdpbjogMTBweDtcbiAgZGlzcGxheTogdGFibGU7IC8qIGFsdGhvdWdoIHRoaXMgaXMgdGhlIGRlZmF1bHQsIHVzZXJzIG1heSBoYXZlIGFuIG92ZXJ3cml0ZSAqL1xufVxuLnRvb2x0aXAgLnRvb2x0aXBUYWJsZSB0aCxcbi50b29sdGlwIC50b29sdGlwVGFibGUgdGQge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wcy10b29sdGlwLWJnKTtcbiAgYm9yZGVyOiAxcHggc29saWQgdmFyKC0tcHMtdG9vbHRpcC1oZWFkZXItYmcpO1xuICBwYWRkaW5nOiA1cHg7XG4gIGZvbnQtd2VpZ2h0OiBub3JtYWw7XG59XG4udG9vbHRpcCAuY2xpY2tJbmZvIHtcbiAgbWFyZ2luLWJvdHRvbTogMTBweDtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gIGNvbG9yOiB2YXIoLS1wcy1yaWdodC1jbGljay1pbmZvKTtcbn1cbi50b29sdGlwIC5jbGlja0luZm8gc3ZnIHtcbiAgY29sb3I6IGluaXRpYWw7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBhbGlnbi1zZWxmOiBjZW50ZXI7XG4gIHdpZHRoOiAyMnB4O1xuICBoZWlnaHQ6IDIycHg7XG4gIG1hcmdpbi1yaWdodDogNXB4O1xufVxuLnRvb2x0aXAgLmNsaWNrSW5mbyBzcGFuIHtcbiAgZm9udC1zaXplOiAxNHB4O1xufSJdfQ== */");const nc={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"}]},ac={...nc,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:"千"}]},rc=t.createContext(nc),oc=rc,ic=({messages:n,children:a})=>{const r=t.useMemo(()=>{var e;return{...nc,...n,tooltipUnitTitles:{...nc.tooltipUnitTitles,...null!==(e=null==n?void 0:n.tooltipUnitTitles)&&void 0!==e?e:{}}}},[n]);return e.jsx(rc.Provider,{value:r,children:a})},lc=()=>t.useContext(rc);function sc(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 cc(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 uc(e,t,n){return n<t?t:Math.max(t,Math.min(n,e))}function dc(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=uc(s,8,r-i-8),c=uc(c,8,o-l-8),{left:s,top:c}}function bc({shouldShowFooter:n=!0,shouldShowTitle:a=!0,dataSourceRef:r,clickInfoSide:o,setTooltipContent:i,palette:l}){const s=t.useRef(null),c=t.useRef(null),u=t.useRef(null),d=t.useRef(null),[b,m]=t.useState({title:{text:"",diff:{text:"",color:""}},tooltipData:[]}),[h,f]=t.useState(),g=()=>{f({visibility:"hidden"}),m({title:{text:"",diff:{text:"",color:""}},tooltipData:[]})},p=t.useCallback(e=>{u.current&&cancelAnimationFrame(u.current);const t=e.clientX,n=e.clientY;u.current=requestAnimationFrame(()=>{if(!s.current)throw new Error("Missing tooltipElement");c.current={x:t,y:n},i(m,g,e);const a=s.current.clientWidth||0,r=s.current.clientHeight||0,{left:o,top:l}=dc(t,n,a,r);f({top:l,left:o,visibility:"visible"})})},[i]);return t.useEffect(()=>{const e=r.current;if(!e)return()=>{};const t=()=>{g()},n=t=>{e.contains(t.target)||g()};return e.addEventListener("mousemove",p),e.addEventListener("mouseout",g),e.addEventListener("mouseleave",t),window.addEventListener("mousemove",n,{passive:!0}),window.addEventListener("blur",t),()=>{e.removeEventListener("mousemove",p),e.removeEventListener("mouseout",g),e.removeEventListener("mouseleave",t),window.removeEventListener("mousemove",n),window.removeEventListener("blur",t),u.current&&cancelAnimationFrame(u.current)}},[r.current,p]),t.useLayoutEffect(()=>{if(!s.current)return;if(!c.current)return;if(0===b.tooltipData.length)return;const{x:e,y:t}=c.current,n=s.current.getBoundingClientRect(),a=n.width,r=n.height,o=d.current;if(o&&Math.abs(o.w-a)<1&&Math.abs(o.h-r)<1)return;d.current={w:a,h:r};const{left:i,top:l}=dc(e,t,a,r);f(e=>e&&e.left===i&&e.top===l&&"visible"===e.visibility?e:{...e||{},left:i,top:l,visibility:"visible"})},[b.tooltipData.length,b.title.text]),e.jsx("div",{"data-testid":"tooltip",className:hl(tc.tooltip,{[tc.flamegraphDiffTooltip]:b.tooltipData.length>1}),style:{...h,textAlign:"center"},ref:s,children:b.tooltipData.length>0&&e.jsxs(e.Fragment,{children:[a&&e.jsx("div",{className:tc.tooltipName,"data-testid":"tooltip-title",children:b.title.text}),e.jsx("div",{className:tc.functionName,"data-testid":"tooltip-function-name",children:b.title.text}),b.title.diff.text.length>0?e.jsx(mc,{data:b.tooltipData,diff:b.title.diff,palette:l}):e.jsx(mc,{data:b.tooltipData,palette:l}),n&&e.jsx(hc,{clickInfoSide:o})]})})}function mc({data:t,diff:n,palette:a}){const r=lc(),[o,i]=t,l="Location"!==r.location;if(!o)return null;let s;switch(o.tooltipType){case"flamegraph":s=()=>{const t=i&&function(e,t){const n=Rr(e),a=Rr(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}`}(o.formattedValue,i.formattedValue),s=kr(t,l),c=i&&function(e,t){const n=sc(e),a=sc(t);if(null==n||null==a)return"";const r=a-n;return 0===r?"0":`${r>0?"+":"-"}${Math.abs(r).toLocaleString()}`}(o.samples,i.samples),u=kr(o.formattedValue,l),d=kr(null==i?void 0:i.formattedValue,l),b=null==n?void 0:n.color,m=cc(t,a),h=cc(c,a);return e.jsxs(e.Fragment,{children:[i&&e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("th",{children:r.baseline}),e.jsx("th",{children:r.comparison}),e.jsx("th",{children:r.diff})]})}),e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsxs("td",{children:[r.tooltipUnitTitles[o.units].percent,":"]}),e.jsx("td",{children:o.percent}),i&&e.jsxs(e.Fragment,{children:[e.jsx("td",{children:i.percent}),e.jsx("td",{style:{textAlign:"center"},children:n&&e.jsx("span",{"data-testid":"tooltip-diff",style:{color:b},children:n.text})})]})]}),e.jsxs("tr",{children:[e.jsxs("td",{children:[r.tooltipUnitTitles[o.units].formattedValue,":"]}),e.jsx("td",{children:u}),i&&e.jsxs(e.Fragment,{children:[e.jsx("td",{children:d}),e.jsx("td",{style:{textAlign:"center"},children:s&&e.jsx("span",{"data-testid":"tooltip-time-diff",style:m?{color:m}:void 0,children:s})})]})]}),e.jsxs("tr",{children:[e.jsx("td",{children:r.tooltipSamples}),e.jsx("td",{children:o.samples}),i&&e.jsxs(e.Fragment,{children:[e.jsx("td",{children:i.samples}),e.jsx("td",{style:{textAlign:"center"},children:c&&e.jsx("span",{"data-testid":"tooltip-samples-diff",style:h?{color:h}:void 0,children:c})})]})]})]})]})};break;case"table":s=()=>e.jsxs(e.Fragment,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("td",{}),e.jsxs("td",{children:[r.self," (",r.tooltipUnitTitles[o.units].total,")"]}),e.jsxs("td",{children:[r.total," (",r.tooltipUnitTitles[o.units].total,")"]})]})}),e.jsx("tbody",{children:e.jsxs("tr",{children:[e.jsxs("td",{children:[r.tooltipUnitTitles[o.units].formattedValue,":"]}),e.jsx("td",{children:o.self}),e.jsx("td",{children:o.total})]})})]});break;default:s=()=>null}return e.jsx("table",{"data-testid":"tooltip-table",className:hl(tc.tooltipTable,{[tc[`${o.tooltipType}${i?"Diff":""}`]]:o.tooltipType}),style:{textAlign:"center",margin:"0 auto"},children:s()})}function hc({clickInfoSide:t}){const n=lc();let a;switch(t){case"right":a=e.jsxs(e.Fragment,{children:[e.jsx(qs,{}),e.jsx("span",{children:n.rightClickForMoreNodeOptions})]});break;case"left":a=e.jsxs(e.Fragment,{children:[e.jsx(ec,{}),e.jsx("span",{children:n.clickToHighlightNode})]});break;default:a=e.jsx(e.Fragment,{})}return e.jsx("div",{"data-testid":"tooltip-footer",className:tc.clickInfo,children:a})}function fc(n){const{format:a,canvasRef:r,xyToData:o,numTicks:i,sampleRate:l,units:s,leftTicks:c,rightTicks:u,palette:d}=n,b=lc(),m=t.useCallback((e,t,n)=>{const r=Yr(i,l,s),m=o(n.offsetX,n.offsetY);let h;var f;if(m.isJust)switch(h=m.value,h.format){case"single":{const t={percent:(f=h.total/i,`${Dr(f)}%`),samples:"trace_samples"===s?"":Xr(h.total),units:s,formattedValue:r.format(h.total,l),tooltipType:"flamegraph"};e({title:{text:h.name,diff:{text:"",color:""}},tooltipData:[t]});break}case"double":{if("single"===a)throw new Error("props format is 'single' but it has been mapped to 'double'");const t=gc({formatter:r,sampleRate:l,totalLeft:h.totalLeft,leftTicks:c,totalRight:h.totalRight,rightTicks:u,title:h.name,units:s},d,b);e({title:t.title,tooltipData:t.tooltipData});break}default:throw new Error(`Unsupported format: '${h.format}'`)}else t()},[i,l,s,c,u,d,o,a,b]);return e.jsx(bc,{dataSourceRef:r,clickInfoSide:"right",setTooltipContent:m,palette:d})}function gc({formatter:e,sampleRate:t,totalLeft:n,leftTicks:a,totalRight:r,rightTicks:o,title:i,units:l},s=Ks,c){var u,d;const b=o>0?r/o:0,m=Dr(a>0?n/a:0),h=Dr(b),f={percent:`${m}%`,samples:Xr(n),units:l,formattedValue:e.format(n,t),tooltipType:"flamegraph"},g={percent:`${h}%`,samples:Xr(r),units:l,formattedValue:e.format(r,t),tooltipType:"flamegraph"};let p=_r(m,h);Number.isFinite(p)||(p=0);let x="";p>0?x=s.badColor.rgb().string():p<0&&(x=s.goodColor.rgb().string());let y="";return 0===n&&r>0?y=null!==(u=null==c?void 0:c.diffNew)&&void 0!==u?u:"新增":0===r&&n>0?y=null!==(d=null==c?void 0:c.diffRemoved)&&void 0!==d?d:"移除":0===p?y="0%":p>0?y=`+${p.toFixed(2)}%`:p<0&&(y=`${p.toFixed(2)}%`),{title:{text:i,diff:{text:y,color:x}},tooltipData:[f,g]}}s('@charset "UTF-8";.szh-menu{background-color:#fff;border:1px solid rgba(0,0,0,.1);box-sizing:border-box;list-style:none;margin:0;padding:0;width:max-content;z-index:100}.szh-menu:focus{outline:none}.szh-menu__arrow{background-color:#fff;border-color:rgba(0,0,0,.1) transparent transparent rgba(0,0,0,.1);border-style:solid;border-width:1px;box-sizing:border-box;height:.75rem;width:.75rem;z-index:-1}.szh-menu__arrow--dir-left{right:-.375rem;transform:translateY(-50%) rotate(135deg)}.szh-menu__arrow--dir-right{left:-.375rem;transform:translateY(-50%) rotate(-45deg)}.szh-menu__arrow--dir-top{bottom:-.375rem;transform:translateX(-50%) rotate(-135deg)}.szh-menu__arrow--dir-bottom{top:-.375rem;transform:translateX(-50%) rotate(45deg)}.szh-menu__item{cursor:pointer}.szh-menu__item:focus{outline:none}.szh-menu__item--hover{background-color:#ebebeb}.szh-menu__item--focusable{background-color:inherit;cursor:default}.szh-menu__item--disabled{color:#aaa;cursor:default}.szh-menu__group{box-sizing:border-box}.szh-menu__radio-group{list-style:none;margin:0;padding:0}.szh-menu__divider{background-color:rgba(0,0,0,.12);height:1px;margin:.5rem 0}.szh-menu-button{box-sizing:border-box}.szh-menu{border:none;border-radius:.25rem;box-shadow:0 3px 7px rgba(0,0,0,.133),0 .6px 2px rgba(0,0,0,.1);color:#212529;min-width:10rem;padding:.5rem 0;user-select:none}.szh-menu__item{align-items:center;display:flex;padding:.375rem 1.5rem;position:relative}.szh-menu-container--itemTransition .szh-menu__item{transition-duration:.15s;transition-property:background-color,color;transition-timing-function:ease-in-out}.szh-menu__item--type-radio{padding-left:2.2rem}.szh-menu__item--type-radio:before{content:"○";font-size:.8rem;left:.8rem;position:absolute;top:.55rem}.szh-menu__item--type-radio.szh-menu__item--checked:before{content:"●"}.szh-menu__item--type-checkbox{padding-left:2.2rem}.szh-menu__item--type-checkbox:before{left:.8rem;position:absolute}.szh-menu__item--type-checkbox.szh-menu__item--checked:before{content:"✔"}.szh-menu__submenu>.szh-menu__item{padding-right:2.5rem}.szh-menu__submenu>.szh-menu__item:after{content:"❯";position:absolute;right:1rem}.szh-menu__header{color:#888;font-size:.8rem;padding:.2rem 1.5rem;text-transform:uppercase}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFrR0EsZ0JBTUEsQ0F2R0EsVUFRRSxxQkFBc0IsQ0FEdEIsK0JBQW9DLENBSHBDLHFCQUFzQixDQUR0QixlQUFnQixDQUZoQixRQUFTLENBQ1QsU0FBVSxDQUdWLGlCQUFrQixDQUNsQixXQUdGLENBQ0EsZ0JBQ0UsWUFDRixDQUNBLGlCQUlFLHFCQUFzQixDQUd0QixrRUFBb0MsQ0FBcEMsa0JBQW9DLENBQXBDLGdCQUFvQyxDQU5wQyxxQkFBc0IsQ0FFdEIsYUFBZSxDQURmLFlBQWMsQ0FNZCxVQUNGLENBQ0EsMkJBQ0UsY0FBZ0IsQ0FDaEIseUNBQ0YsQ0FDQSw0QkFDRSxhQUFlLENBQ2YseUNBQ0YsQ0FDQSwwQkFDRSxlQUFpQixDQUNqQiwwQ0FDRixDQUNBLDZCQUNFLFlBQWMsQ0FDZCx3Q0FDRixDQUNBLGdCQUNFLGNBQ0YsQ0FDQSxzQkFDRSxZQUNGLENBQ0EsdUJBQ0Usd0JBQ0YsQ0FDQSwyQkFFRSx3QkFBeUIsQ0FEekIsY0FFRixDQUNBLDBCQUVFLFVBQVcsQ0FEWCxjQUVGLENBQ0EsaUJBQ0UscUJBQ0YsQ0FDQSx1QkFHRSxlQUFnQixDQUZoQixRQUFTLENBQ1QsU0FFRixDQUNBLG1CQUdFLGdDQUFxQyxDQUZyQyxVQUFXLENBQ1gsY0FFRixDQUVBLGlCQUNFLHFCQUNGLENBRUEsVUFHRSxXQUFZLENBQ1osb0JBQXNCLENBQ3RCLCtEQUEwRSxDQUgxRSxhQUFjLENBSWQsZUFBZ0IsQ0FDaEIsZUFBaUIsQ0FOakIsZ0JBT0YsQ0FDQSxnQkFFRSxrQkFBbUIsQ0FEbkIsWUFBYSxDQUdiLHNCQUF3QixDQUR4QixpQkFFRixDQUNBLG9EQUVFLHdCQUEwQixDQUQxQiwwQ0FBNEMsQ0FFNUMsc0NBQ0YsQ0FDQSw0QkFDRSxtQkFDRixDQUNBLG1DQUNFLFdBQVksQ0FJWixlQUFpQixDQUZqQixVQUFZLENBRFosaUJBQWtCLENBRWxCLFVBRUYsQ0FDQSwyREFDRSxXQUNGLENBQ0EsK0JBQ0UsbUJBQ0YsQ0FDQSxzQ0FFRSxVQUFZLENBRFosaUJBRUYsQ0FDQSw4REFDRSxXQUNGLENBQ0EsbUNBQ0Usb0JBQ0YsQ0FDQSx5Q0FDRSxXQUFZLENBQ1osaUJBQWtCLENBQ2xCLFVBQ0YsQ0FDQSxrQkFDRSxVQUFXLENBQ1gsZUFBaUIsQ0FDakIsb0JBQXNCLENBQ3RCLHdCQUNGIiwiZmlsZSI6ImluZGV4LmNzcyIsInNvdXJjZXNDb250ZW50IjpbIkBjaGFyc2V0IFwiVVRGLThcIjtcbi5zemgtbWVudSB7XG4gIG1hcmdpbjogMDtcbiAgcGFkZGluZzogMDtcbiAgbGlzdC1zdHlsZTogbm9uZTtcbiAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbiAgd2lkdGg6IG1heC1jb250ZW50O1xuICB6LWluZGV4OiAxMDA7XG4gIGJvcmRlcjogMXB4IHNvbGlkIHJnYmEoMCwgMCwgMCwgMC4xKTtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbn1cbi5zemgtbWVudTpmb2N1cyB7XG4gIG91dGxpbmU6IG5vbmU7XG59XG4uc3poLW1lbnVfX2Fycm93IHtcbiAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbiAgd2lkdGg6IDAuNzVyZW07XG4gIGhlaWdodDogMC43NXJlbTtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgYm9yZGVyOiAxcHggc29saWQgdHJhbnNwYXJlbnQ7XG4gIGJvcmRlci1sZWZ0LWNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuMSk7XG4gIGJvcmRlci10b3AtY29sb3I6IHJnYmEoMCwgMCwgMCwgMC4xKTtcbiAgei1pbmRleDogLTE7XG59XG4uc3poLW1lbnVfX2Fycm93LS1kaXItbGVmdCB7XG4gIHJpZ2h0OiAtMC4zNzVyZW07XG4gIHRyYW5zZm9ybTogdHJhbnNsYXRlWSgtNTAlKSByb3RhdGUoMTM1ZGVnKTtcbn1cbi5zemgtbWVudV9fYXJyb3ctLWRpci1yaWdodCB7XG4gIGxlZnQ6IC0wLjM3NXJlbTtcbiAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKC01MCUpIHJvdGF0ZSgtNDVkZWcpO1xufVxuLnN6aC1tZW51X19hcnJvdy0tZGlyLXRvcCB7XG4gIGJvdHRvbTogLTAuMzc1cmVtO1xuICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoLTUwJSkgcm90YXRlKC0xMzVkZWcpO1xufVxuLnN6aC1tZW51X19hcnJvdy0tZGlyLWJvdHRvbSB7XG4gIHRvcDogLTAuMzc1cmVtO1xuICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoLTUwJSkgcm90YXRlKDQ1ZGVnKTtcbn1cbi5zemgtbWVudV9faXRlbSB7XG4gIGN1cnNvcjogcG9pbnRlcjtcbn1cbi5zemgtbWVudV9faXRlbTpmb2N1cyB7XG4gIG91dGxpbmU6IG5vbmU7XG59XG4uc3poLW1lbnVfX2l0ZW0tLWhvdmVyIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ViZWJlYjtcbn1cbi5zemgtbWVudV9faXRlbS0tZm9jdXNhYmxlIHtcbiAgY3Vyc29yOiBkZWZhdWx0O1xuICBiYWNrZ3JvdW5kLWNvbG9yOiBpbmhlcml0O1xufVxuLnN6aC1tZW51X19pdGVtLS1kaXNhYmxlZCB7XG4gIGN1cnNvcjogZGVmYXVsdDtcbiAgY29sb3I6ICNhYWE7XG59XG4uc3poLW1lbnVfX2dyb3VwIHtcbiAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbn1cbi5zemgtbWVudV9fcmFkaW8tZ3JvdXAge1xuICBtYXJnaW46IDA7XG4gIHBhZGRpbmc6IDA7XG4gIGxpc3Qtc3R5bGU6IG5vbmU7XG59XG4uc3poLW1lbnVfX2RpdmlkZXIge1xuICBoZWlnaHQ6IDFweDtcbiAgbWFyZ2luOiAwLjVyZW0gMDtcbiAgYmFja2dyb3VuZC1jb2xvcjogcmdiYSgwLCAwLCAwLCAwLjEyKTtcbn1cblxuLnN6aC1tZW51LWJ1dHRvbiB7XG4gIGJveC1zaXppbmc6IGJvcmRlci1ib3g7XG59XG5cbi5zemgtbWVudSB7XG4gIHVzZXItc2VsZWN0OiBub25lO1xuICBjb2xvcjogIzIxMjUyOTtcbiAgYm9yZGVyOiBub25lO1xuICBib3JkZXItcmFkaXVzOiAwLjI1cmVtO1xuICBib3gtc2hhZG93OiAwIDNweCA3cHggcmdiYSgwLCAwLCAwLCAwLjEzMyksIDAgMC42cHggMnB4IHJnYmEoMCwgMCwgMCwgMC4xKTtcbiAgbWluLXdpZHRoOiAxMHJlbTtcbiAgcGFkZGluZzogMC41cmVtIDA7XG59XG4uc3poLW1lbnVfX2l0ZW0ge1xuICBkaXNwbGF5OiBmbGV4O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gIHBhZGRpbmc6IDAuMzc1cmVtIDEuNXJlbTtcbn1cbi5zemgtbWVudS1jb250YWluZXItLWl0ZW1UcmFuc2l0aW9uIC5zemgtbWVudV9faXRlbSB7XG4gIHRyYW5zaXRpb24tcHJvcGVydHk6IGJhY2tncm91bmQtY29sb3IsIGNvbG9yO1xuICB0cmFuc2l0aW9uLWR1cmF0aW9uOiAwLjE1cztcbiAgdHJhbnNpdGlvbi10aW1pbmctZnVuY3Rpb246IGVhc2UtaW4tb3V0O1xufVxuLnN6aC1tZW51X19pdGVtLS10eXBlLXJhZGlvIHtcbiAgcGFkZGluZy1sZWZ0OiAyLjJyZW07XG59XG4uc3poLW1lbnVfX2l0ZW0tLXR5cGUtcmFkaW86OmJlZm9yZSB7XG4gIGNvbnRlbnQ6IFwi4peLXCI7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgbGVmdDogMC44cmVtO1xuICB0b3A6IDAuNTVyZW07XG4gIGZvbnQtc2l6ZTogMC44cmVtO1xufVxuLnN6aC1tZW51X19pdGVtLS10eXBlLXJhZGlvLnN6aC1tZW51X19pdGVtLS1jaGVja2VkOjpiZWZvcmUge1xuICBjb250ZW50OiBcIuKXj1wiO1xufVxuLnN6aC1tZW51X19pdGVtLS10eXBlLWNoZWNrYm94IHtcbiAgcGFkZGluZy1sZWZ0OiAyLjJyZW07XG59XG4uc3poLW1lbnVfX2l0ZW0tLXR5cGUtY2hlY2tib3g6OmJlZm9yZSB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgbGVmdDogMC44cmVtO1xufVxuLnN6aC1tZW51X19pdGVtLS10eXBlLWNoZWNrYm94LnN6aC1tZW51X19pdGVtLS1jaGVja2VkOjpiZWZvcmUge1xuICBjb250ZW50OiBcIuKclFwiO1xufVxuLnN6aC1tZW51X19zdWJtZW51ID4gLnN6aC1tZW51X19pdGVtIHtcbiAgcGFkZGluZy1yaWdodDogMi41cmVtO1xufVxuLnN6aC1tZW51X19zdWJtZW51ID4gLnN6aC1tZW51X19pdGVtOjphZnRlciB7XG4gIGNvbnRlbnQ6IFwi4p2vXCI7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgcmlnaHQ6IDFyZW07XG59XG4uc3poLW1lbnVfX2hlYWRlciB7XG4gIGNvbG9yOiAjODg4O1xuICBmb250LXNpemU6IDAuOHJlbTtcbiAgcGFkZGluZzogMC4ycmVtIDEuNXJlbTtcbiAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcbn1cbiJdfQ== */');var pc="ContextMenu-module_menu__x-AtY";function xc(n){const[a,r]=Ns({transition:!0}),[o,i]=t.useState({x:0,y:0}),{canvasRef:l}=n,[s,c]=t.useState([]),{xyToMenuItems:u,onClose:d,onOpen:b}=n;return t.useEffect(()=>{r(!1);const e=l.current;if(!e)return()=>{};const t=e=>{e.preventDefault();const t=u(e.offsetX,e.offsetY);c(t);const n=e.clientX,a=e.clientY+20;i({x:n,y:a}),r(!0),b(e.offsetX,e.offsetY)};return e.addEventListener("contextmenu",t),()=>{e.removeEventListener("contextmenu",t)}},[u]),e.jsx(Qs,{...a,className:pc,anchorPoint:o,onClose:()=>{r(!1),d()},children:s})}s(".ContextMenu-module_menu__x-AtY{display:block}.ContextMenu-module_menu__x-AtY svg{margin-right:10px}.ContextMenu-module_menu__x-AtY .szh-menu{background-color:var(--ps-dropdown-background,#fff);border:1px solid var(--ps-ui-border,#d9d9d9);border-radius:6px;box-shadow:0 6px 16px 0 rgba(0,0,0,.08),0 3px 6px -4px rgba(0,0,0,.12),0 9px 28px 8px rgba(0,0,0,.05);color:var(--ps-ui-foreground-text,#000);font-size:13px;min-width:180px;padding:4px 0}.ContextMenu-module_menu__x-AtY .szh-menu__item{align-items:center;color:inherit;cursor:pointer;display:flex;gap:8px;height:32px;padding:6px 12px;transition:background-color .15s}.ContextMenu-module_menu__x-AtY .szh-menu__item:hover{background-color:var(--ps-ui-element-bg-highlight,#f5f5f5)}.ContextMenu-module_menu__x-AtY .szh-menu__item svg{flex-shrink:0;height:14px;margin-right:0;width:14px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNvbnRleHRNZW51Lm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGdDQUNFLGFBQ0YsQ0FDQSxvQ0FDRSxpQkFDRixDQUNBLDBDQUNFLG1EQUFxRCxDQUNyRCw0Q0FBOEMsQ0FDOUMsaUJBQWtCLENBQ2xCLHFHQUFvSCxDQUlwSCx1Q0FBeUMsQ0FEekMsY0FBZSxDQURmLGVBQWdCLENBRGhCLGFBSUYsQ0FDQSxnREFFRSxrQkFBbUIsQ0FLbkIsYUFBYyxDQURkLGNBQWUsQ0FMZixZQUFhLENBRWIsT0FBUSxDQUVSLFdBQVksQ0FEWixnQkFBaUIsQ0FJakIsZ0NBQ0YsQ0FDQSxzREFDRSwwREFDRixDQUNBLG9EQUdFLGFBQWMsQ0FEZCxXQUFZLENBRVosY0FBZSxDQUhmLFVBSUYiLCJmaWxlIjoiQ29udGV4dE1lbnUubW9kdWxlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubWVudSB7XG4gIGRpc3BsYXk6IGJsb2NrO1xufVxuLm1lbnUgc3ZnIHtcbiAgbWFyZ2luLXJpZ2h0OiAxMHB4O1xufVxuLm1lbnUgOmdsb2JhbCguc3poLW1lbnUpIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcHMtZHJvcGRvd24tYmFja2dyb3VuZCwgI2ZmZik7XG4gIGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLXBzLXVpLWJvcmRlciwgI2Q5ZDlkOSk7XG4gIGJvcmRlci1yYWRpdXM6IDZweDtcbiAgYm94LXNoYWRvdzogMCA2cHggMTZweCAwIHJnYmEoMCwgMCwgMCwgMC4wOCksIDAgM3B4IDZweCAtNHB4IHJnYmEoMCwgMCwgMCwgMC4xMiksIDAgOXB4IDI4cHggOHB4IHJnYmEoMCwgMCwgMCwgMC4wNSk7XG4gIHBhZGRpbmc6IDRweCAwO1xuICBtaW4td2lkdGg6IDE4MHB4O1xuICBmb250LXNpemU6IDEzcHg7XG4gIGNvbG9yOiB2YXIoLS1wcy11aS1mb3JlZ3JvdW5kLXRleHQsICMwMDApO1xufVxuLm1lbnUgOmdsb2JhbCguc3poLW1lbnVfX2l0ZW0pIHtcbiAgZGlzcGxheTogZmxleDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgZ2FwOiA4cHg7XG4gIHBhZGRpbmc6IDZweCAxMnB4O1xuICBoZWlnaHQ6IDMycHg7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgY29sb3I6IGluaGVyaXQ7XG4gIHRyYW5zaXRpb246IGJhY2tncm91bmQtY29sb3IgMC4xNXM7XG59XG4ubWVudSA6Z2xvYmFsKC5zemgtbWVudV9faXRlbSk6aG92ZXIge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wcy11aS1lbGVtZW50LWJnLWhpZ2hsaWdodCwgI2Y1ZjVmNSk7XG59XG4ubWVudSA6Z2xvYmFsKC5zemgtbWVudV9faXRlbSkgc3ZnIHtcbiAgd2lkdGg6IDE0cHg7XG4gIGhlaWdodDogMTRweDtcbiAgZmxleC1zaHJpbms6IDA7XG4gIG1hcmdpbi1yaWdodDogMDtcbn0iXX0= */");var yc="LogoLink-module_logoLink__oWRri";function vc(){return e.jsxs("a",{className:yc,href:"https://github.com/pyroscope-io/pyroscope/",target:"_blank",rel:"noreferrer",children:[e.jsxs("svg",{width:"22px",height:"22px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("defs",{children:e.jsxs("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.jsx("stop",{stopColor:"#FFB90C",offset:"0%"}),e.jsx("stop",{stopColor:"#F9243A",offset:"38.390924%"}),e.jsx("stop",{stopColor:"#F9243A",offset:"50.5405%"}),e.jsx("stop",{stopColor:"#B51424",offset:"73.98091%"}),e.jsx("stop",{stopColor:"#B51424",offset:"100%"})]})}),e.jsx("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:e.jsx("g",{id:"fire-part",transform:"translate(148.516736, 0.000000)",fillRule:"nonzero",children:e.jsxs("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.jsx("g",{id:"g70",transform:"translate(-0.000091, 0.685815)",fill:"url(#radialGradient-1)",children:e.jsx("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.jsx("g",{id:"blue",transform:"translate(191.447039, 191.331780)",children:e.jsxs("g",{id:"g88",transform:"translate(-0.000063, 0.685930)",children:[e.jsx("g",{id:"g94",transform:"translate(0.177296, 0.699054)",fill:"#3EC1D3",children:e.jsx("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.jsx("g",{id:"g98",transform:"translate(29.362379, 172.629585)",fill:"#FFFFFF",children:e.jsx("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.jsx("span",{children:"Pyroscope"})]})}s(".LogoLink-module_logoLink__oWRri{bottom:0;color:var(--ps-neutral-2);font-weight:500;opacity:.5;position:absolute;right:0;text-decoration:none;z-index:0}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkxvZ29MaW5rLm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGlDQU9FLFFBQVMsQ0FIVCx5QkFBMEIsQ0FGMUIsZUFBZ0IsQ0FDaEIsVUFBWSxDQUVaLGlCQUFrQixDQUNsQixPQUFRLENBTFIsb0JBQXFCLENBT3JCLFNBQ0YiLCJmaWxlIjoiTG9nb0xpbmsubW9kdWxlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubG9nb0xpbmsge1xuICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG4gIGZvbnQtd2VpZ2h0OiA1MDA7XG4gIG9wYWNpdHk6IDAuNTtcbiAgY29sb3I6IHZhcigtLXBzLW5ldXRyYWwtMik7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgcmlnaHQ6IDA7XG4gIGJvdHRvbTogMDtcbiAgei1pbmRleDogMDtcbn0iXX0= */");const Gc=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"64 64 896 896",fill:"currentColor",children:e.jsx("path",{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z"})}),Qc=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"64 64 896 896",fill:"currentColor",children:e.jsx("path",{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"})}),Ic=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"64 64 896 896",fill:"currentColor",children:e.jsx("path",{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z"})}),Bc=({fill:t})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",fill:t,children:[e.jsx("g",{id:"shape_squiggle",children:e.jsx("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"})}),e.jsxs("g",{id:"Layer_4",children:[e.jsx("rect",{x:"2",y:"8",width:"60",height:"14",rx:"3.94",ry:"3.94"}),e.jsx("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"})]})]}),Fc=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",children:[e.jsx("g",{id:"ab_shape",children:e.jsxs("g",{children:[e.jsx("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.jsx("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.jsx("g",{id:"arrows",children:e.jsx("polygon",{points:"62 54 52 45 52 51 35 51 35 57 52 57 52 63 62 54"})})]}),Zc=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",children:[e.jsx("g",{id:"yz_shape",children:e.jsxs("g",{children:[e.jsx("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.jsx("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.jsx("g",{id:"arrows",children:e.jsx("polygon",{points:"12 51 12 45 2 54 12 63 12 57 29 57 29 51 12 51"})})]});var wc="Header-module_flamegraphHeader__nIrXP",Nc="Header-module_row__P7-2L",Lc="Header-module_flamegraphTitle__sjsvB";function Wc(t){const{format:n,units:a,toolbarVisible:r}=t,o={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:""},i=r&&"single"===n?e.jsx("div",{className:`${Nc} ${Lc}`,role:"heading","aria-level":2,children:o[a]&&e.jsxs(e.Fragment,{children:["Frame width represents ",o[a]]})}):null;return i?e.jsx("div",{className:wc,children:e.jsx("div",{children:i})}):null}s(".Header-module_flamegraphHeader__nIrXP{align-items:flex-start;display:flex;justify-content:space-between;padding-bottom:5px}.Header-module_flamegraphHeader__nIrXP>div:first-child{width:100%}.Header-module_row__P7-2L{display:flex;justify-content:center}.Header-module_flamegraphTitle__sjsvB{display:block;text-align:center;width:100%}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkhlYWRlci5tb2R1bGUuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHVDQUtFLHNCQUF1QixDQUh2QixZQUFhLENBQ2IsNkJBQThCLENBRjlCLGtCQUtGLENBRUEsdURBQ0UsVUFDRixDQU9BLDBCQUNFLFlBQWEsQ0FDYixzQkFDRixDQUVBLHNDQUVFLGFBQWMsQ0FDZCxpQkFBa0IsQ0FGbEIsVUFHRiIsImZpbGUiOiJIZWFkZXIubW9kdWxlLmNzcyIsInNvdXJjZXNDb250ZW50IjpbIi5mbGFtZWdyYXBoSGVhZGVyIHtcbiAgcGFkZGluZy1ib3R0b206IDVweDtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuXG4gIGFsaWduLWl0ZW1zOiBmbGV4LXN0YXJ0O1xufVxuXG4uZmxhbWVncmFwaEhlYWRlciA+IGRpdjpmaXJzdC1jaGlsZCB7XG4gIHdpZHRoOiAxMDAlO1xufVxuXG4uZmxhbWVncmFwaEhlYWRlciBidXR0b24ge1xuICAvKiBtYXJnaW46IGF1dG87XG4gIGRpc3BsYXk6IGJsb2NrOyAqL1xufVxuXG4ucm93IHtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG59XG5cbi5mbGFtZWdyYXBoVGl0bGUge1xuICB3aWR0aDogMTAwJTtcbiAgZGlzcGxheTogYmxvY2s7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbn1cbiJdfQ== */");var Cc="FlamegraphBreadcrumb-module_bar__v8uhn",Xc="FlamegraphBreadcrumb-module_chip__pdv1k",Rc="FlamegraphBreadcrumb-module_focusTooltip__nX30y",kc="FlamegraphBreadcrumb-module_separator__Zj-rC",Uc="FlamegraphBreadcrumb-module_chipSeparator__S-Gld",Dc="FlamegraphBreadcrumb-module_unitLabel__bjHEA",_c="FlamegraphBreadcrumb-module_focusIcon__aJBb6",Yc="FlamegraphBreadcrumb-module_ofTotal__kk4dt",jc="FlamegraphBreadcrumb-module_clearBtn__spimK";function Vc(t){const{totalValueText:n,totalSamplesText:a,samplesLabel:r,unitLabel:o,hasFocus:i,focusPercent:l,focusLabel:s,ofTotalPlacement:c="after",ofTotalLabel:u,clearFocusLabel:d,onClearFocus:b}=t,m=s&&s.trim().length>0?s:void 0;return e.jsxs("div",{className:Cc,"aria-live":"polite",children:[e.jsxs("span",{className:Xc,children:[e.jsx("span",{children:n}),e.jsx("span",{className:kc,children:"|"}),e.jsxs("span",{children:[a," ",r]}),e.jsxs("span",{className:Dc,children:["(",o,")"]})]}),i&&void 0!==l&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:Uc,children:">"}),e.jsxs("span",{className:`${Xc} ${Rc}`,"data-tooltip":m,children:[e.jsx("span",{className:_c,"aria-hidden":"true",children:e.jsxs("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6-10-6-10-6Z"}),e.jsx("circle",{cx:"12",cy:"12",r:"3.2"})]})}),"before"===c?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:Yc,children:u}),e.jsxs("span",{children:[l.toFixed(2),"%"]})]}):e.jsxs(e.Fragment,{children:[e.jsxs("span",{children:[l.toFixed(2),"%"]}),e.jsx("span",{className:Yc,children:u})]}),e.jsx("button",{type:"button",className:jc,"aria-label":d,onClick:e=>{e.preventDefault(),e.stopPropagation(),b()},children:"×"})]})]})]})}s('.FlamegraphBreadcrumb-module_bar__v8uhn{align-items:center;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:6px 0;width:100%}.FlamegraphBreadcrumb-module_chip__pdv1k{align-items:center;background-color:var(--ps-ui-element-bg-primary);border:1px solid var(--ps-ui-border);border-radius:999px;color:var(--ps-ui-foreground-text);display:inline-flex;font-size:12px;gap:6px;line-height:1.2;padding:4px 10px}.FlamegraphBreadcrumb-module_focusTooltip__nX30y{position:relative}.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:hover:after,.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:hover:before{opacity:1;transform:translate(-50%,-6px)}.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:after{background:var(--ps-ui-foreground);border:1px solid var(--ps-ui-border);border-radius:6px;color:var(--ps-ui-foreground-text);content:attr(data-tooltip);font-size:12px;padding:6px 8px;white-space:nowrap;z-index:3}.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:after,.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:before{bottom:100%;left:50%;opacity:0;pointer-events:none;position:absolute;transform:translate(-50%,-2px);transition:opacity .12s ease,transform .12s ease}.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:before{border-color:var(--ps-ui-border) transparent transparent transparent;border-style:solid;border-width:6px 6px 0;content:"";z-index:2}.FlamegraphBreadcrumb-module_separator__Zj-rC{opacity:.6}.FlamegraphBreadcrumb-module_chipSeparator__S-Gld{color:var(--ps-ui-foreground-text);opacity:.6}.FlamegraphBreadcrumb-module_unitLabel__bjHEA{opacity:.8}.FlamegraphBreadcrumb-module_focusIcon__aJBb6{align-items:center;color:currentColor;display:inline-flex;font-size:12px}.FlamegraphBreadcrumb-module_ofTotal__kk4dt{opacity:.8}.FlamegraphBreadcrumb-module_clearBtn__spimK{background:transparent;border:none;color:var(--ps-toolbar-icon-color);cursor:pointer;font-size:14px;line-height:1;margin-left:4px;padding:0}.FlamegraphBreadcrumb-module_clearBtn__spimK:focus-visible{border-radius:4px;outline:1px solid var(--ps-ui-border)}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZsYW1lZ3JhcGhCcmVhZGNydW1iLm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHdDQUVFLGtCQUFtQixDQURuQixZQUFhLENBSWIsY0FBZSxDQUNmLE9BQVEsQ0FIUixzQkFBdUIsQ0FJdkIsWUFBYSxDQUhiLFVBSUYsQ0FFQSx5Q0FFRSxrQkFBbUIsQ0FNbkIsZ0RBQWlELENBQ2pELG9DQUFxQyxDQUpyQyxtQkFBb0IsQ0FLcEIsa0NBQW1DLENBVG5DLG1CQUFvQixDQUtwQixjQUFlLENBSGYsT0FBUSxDQUlSLGVBQWdCLENBSGhCLGdCQU9GLENBRUEsaURBQ0UsaUJBQ0YsQ0FFQSx1SkFFRSxTQUFVLENBQ1YsOEJBQ0YsQ0FFQSxxRUFRRSxrQ0FBbUMsQ0FFbkMsb0NBQXFDLENBSHJDLGlCQUFrQixDQUVsQixrQ0FBbUMsQ0FSbkMsMEJBQTJCLENBVTNCLGNBQWUsQ0FMZixlQUFnQixDQU1oQixrQkFBbUIsQ0FJbkIsU0FDRixDQUVBLDJJQWZFLFdBQVksQ0FEWixRQUFTLENBV1QsU0FBVSxDQURWLG1CQUFvQixDQVhwQixpQkFBa0IsQ0FHbEIsOEJBQWdDLENBVWhDLGdEQWlCRixDQWJBLHNFQVFFLG9FQUFxRSxDQURyRSxrQkFBbUIsQ0FEbkIsc0JBQTJCLENBTDNCLFVBQVcsQ0FXWCxTQUNGLENBRUEsOENBQ0UsVUFDRixDQUVBLGtEQUVFLGtDQUFtQyxDQURuQyxVQUVGLENBRUEsOENBQ0UsVUFDRixDQUVBLDhDQUdFLGtCQUFtQixDQUNuQixrQkFBbUIsQ0FGbkIsbUJBQW9CLENBRHBCLGNBSUYsQ0FFQSw0Q0FDRSxVQUNGLENBRUEsNkNBSUUsc0JBQXVCLENBRHZCLFdBQVksQ0FFWixrQ0FBbUMsQ0FDbkMsY0FBZSxDQUNmLGNBQWUsQ0FDZixhQUFjLENBUGQsZUFBZ0IsQ0FDaEIsU0FPRixDQUVBLDJEQUVFLGlCQUFrQixDQURsQixxQ0FFRiIsImZpbGUiOiJGbGFtZWdyYXBoQnJlYWRjcnVtYi5tb2R1bGUuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5iYXIge1xuICBkaXNwbGF5OiBmbGV4O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgd2lkdGg6IDEwMCU7XG4gIGZsZXgtd3JhcDogd3JhcDtcbiAgZ2FwOiA4cHg7XG4gIG1hcmdpbjogNnB4IDA7XG59XG5cbi5jaGlwIHtcbiAgZGlzcGxheTogaW5saW5lLWZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGdhcDogNnB4O1xuICBwYWRkaW5nOiA0cHggMTBweDtcbiAgYm9yZGVyLXJhZGl1czogOTk5cHg7XG4gIGZvbnQtc2l6ZTogMTJweDtcbiAgbGluZS1oZWlnaHQ6IDEuMjtcbiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcHMtdWktZWxlbWVudC1iZy1wcmltYXJ5KTtcbiAgYm9yZGVyOiAxcHggc29saWQgdmFyKC0tcHMtdWktYm9yZGVyKTtcbiAgY29sb3I6IHZhcigtLXBzLXVpLWZvcmVncm91bmQtdGV4dCk7XG59XG5cbi5mb2N1c1Rvb2x0aXAge1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG59XG5cbi5mb2N1c1Rvb2x0aXBbZGF0YS10b29sdGlwXTpob3Zlcjo6YWZ0ZXIsXG4uZm9jdXNUb29sdGlwW2RhdGEtdG9vbHRpcF06aG92ZXI6OmJlZm9yZSB7XG4gIG9wYWNpdHk6IDE7XG4gIHRyYW5zZm9ybTogdHJhbnNsYXRlKC01MCUsIC02cHgpO1xufVxuXG4uZm9jdXNUb29sdGlwW2RhdGEtdG9vbHRpcF06OmFmdGVyIHtcbiAgY29udGVudDogYXR0cihkYXRhLXRvb2x0aXApO1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIGxlZnQ6IDUwJTtcbiAgYm90dG9tOiAxMDAlO1xuICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgtNTAlLCAtMnB4KTtcbiAgcGFkZGluZzogNnB4IDhweDtcbiAgYm9yZGVyLXJhZGl1czogNnB4O1xuICBiYWNrZ3JvdW5kOiB2YXIoLS1wcy11aS1mb3JlZ3JvdW5kKTtcbiAgY29sb3I6IHZhcigtLXBzLXVpLWZvcmVncm91bmQtdGV4dCk7XG4gIGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLXBzLXVpLWJvcmRlcik7XG4gIGZvbnQtc2l6ZTogMTJweDtcbiAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcbiAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG4gIG9wYWNpdHk6IDA7XG4gIHRyYW5zaXRpb246IG9wYWNpdHkgMTIwbXMgZWFzZSwgdHJhbnNmb3JtIDEyMG1zIGVhc2U7XG4gIHotaW5kZXg6IDM7XG59XG5cbi5mb2N1c1Rvb2x0aXBbZGF0YS10b29sdGlwXTo6YmVmb3JlIHtcbiAgY29udGVudDogXCJcIjtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBsZWZ0OiA1MCU7XG4gIGJvdHRvbTogMTAwJTtcbiAgdHJhbnNmb3JtOiB0cmFuc2xhdGUoLTUwJSwgLTJweCk7XG4gIGJvcmRlci13aWR0aDogNnB4IDZweCAwIDZweDtcbiAgYm9yZGVyLXN0eWxlOiBzb2xpZDtcbiAgYm9yZGVyLWNvbG9yOiB2YXIoLS1wcy11aS1ib3JkZXIpIHRyYW5zcGFyZW50IHRyYW5zcGFyZW50IHRyYW5zcGFyZW50O1xuICBwb2ludGVyLWV2ZW50czogbm9uZTtcbiAgb3BhY2l0eTogMDtcbiAgdHJhbnNpdGlvbjogb3BhY2l0eSAxMjBtcyBlYXNlLCB0cmFuc2Zvcm0gMTIwbXMgZWFzZTtcbiAgei1pbmRleDogMjtcbn1cblxuLnNlcGFyYXRvciB7XG4gIG9wYWNpdHk6IDAuNjtcbn1cblxuLmNoaXBTZXBhcmF0b3Ige1xuICBvcGFjaXR5OiAwLjY7XG4gIGNvbG9yOiB2YXIoLS1wcy11aS1mb3JlZ3JvdW5kLXRleHQpO1xufVxuXG4udW5pdExhYmVsIHtcbiAgb3BhY2l0eTogMC44O1xufVxuXG4uZm9jdXNJY29uIHtcbiAgZm9udC1zaXplOiAxMnB4O1xuICBkaXNwbGF5OiBpbmxpbmUtZmxleDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgY29sb3I6IGN1cnJlbnRDb2xvcjtcbn1cblxuLm9mVG90YWwge1xuICBvcGFjaXR5OiAwLjg7XG59XG5cbi5jbGVhckJ0biB7XG4gIG1hcmdpbi1sZWZ0OiA0cHg7XG4gIHBhZGRpbmc6IDA7XG4gIGJvcmRlcjogbm9uZTtcbiAgYmFja2dyb3VuZDogdHJhbnNwYXJlbnQ7XG4gIGNvbG9yOiB2YXIoLS1wcy10b29sYmFyLWljb24tY29sb3IpO1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIGZvbnQtc2l6ZTogMTRweDtcbiAgbGluZS1oZWlnaHQ6IDE7XG59XG5cbi5jbGVhckJ0bjpmb2N1cy12aXNpYmxlIHtcbiAgb3V0bGluZTogMXB4IHNvbGlkIHZhcigtLXBzLXVpLWJvcmRlcik7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbn0iXX0= */');var Sc="styles-module_flamegraphPane__ejguD",Mc="styles-module_fitModeItem__0UBwN",Jc="styles-module_sandwichItem__WYvnd",Oc="styles-module_flamegraphFrame__9ZW-z";function Ac(n){const a=t.useRef(null),r=t.useRef(null),i=t.useRef(),l=t.useRef(),s=t.useRef(null),c=t.useRef(null),u=t.useRef(null),d=t.useRef({rect:!1,text:!1}),b=lc(),m=t.useRef({lastWidth:0,lastHeight:0}),h="undefined"!=typeof window&&"undefined"!=typeof OffscreenCanvas&&"transferControlToOffscreen"in HTMLCanvasElement.prototype,f=t.useMemo(()=>({collapsedLevelsSingular:b.collapsedLevelsSingular,collapsedLevelsPlural:b.collapsedLevelsPlural,isZh:"Location"!==b.location}),[b.collapsedLevelsSingular,b.collapsedLevelsPlural,b.location]),g=t.useCallback(e=>({name:e.name,goodColor:e.goodColor.rgb().array(),neutralColor:e.neutralColor.rgb().array(),badColor:e.badColor.rgb().array(),colors:e.colors.map(e=>e.rgb().array())}),[]),[p,x]=t.useState(fr.nothing()),{flamebearer:y,focusedNode:v,fitMode:G,updateFitMode:Q,highlightQuery:I,zoom:B,toolbarVisible:F,headerVisible:Z=!0,disableClick:w=!1,showSingleLevel:N=!1,showCredit:L,setActiveItem:W,selectedItem:C,updateView:X,enableSandwichView:R=!0,breadcrumb:k}=n,{onZoom:U,onReset:D,isDirty:_,onFocusOnNode:Y}=n,{"data-testid":j}=n,{palette:V,setPalette:S}=n,M=t.useCallback(Js(()=>{T(),H()},50),[]);t.useEffect(()=>{if(!h)return()=>{};const e=function(){const e=new URL("undefined"==typeof document?require("url").pathToFileURL(__filename).href:o&&"SCRIPT"===o.tagName.toUpperCase()&&o.src||new URL("index.cjs.js",document.baseURI).href),t=e.pathname,n=t.includes("/src/");if(t.includes("/dist/"),t.includes("/node_modules/.vite/deps/")){const t=new URL("../../@kylincloud/flamegraph/dist/flamegraphRenderWorker.js",e);return new Worker(t,{type:"module"})}const a=n?new URL("./flamegraphRenderWorker.ts",e):new URL("./flamegraphRenderWorker.js",e);return new Worker(a,{type:"module"})}();return s.current=e,setTimeout(()=>{T(),H()},0),()=>{e.terminate(),s.current=null,c.current=null,u.current=null,d.current={rect:!1,text:!1}}},[h]),_s(a,()=>{if(i){if(a.current){const e=a.current.clientWidth,t=a.current.clientHeight,n=m.current;if(!(Math.abs(e-n.lastWidth)>=2))return;n.lastWidth=e,n.lastHeight=t}M()}});const J=(e,t)=>$().xyToBar(e,t).map(e=>({left:K().offsetLeft+e.x,top:K().offsetTop+e.y,width:e.width})),O=t.useCallback((t,n)=>{const a=_(),r=$().xyToBar(t,n),o=r.isJust?r.value.name:"";return[e.jsxs(Rs,{disabled:!a,onClick:D,children:[e.jsx(Oa,{icon:Bl.faRedo}),b.resetView]},"reset"),(()=>{const t=r.mapOrElse(()=>!1,()=>!0),n=r.mapOrElse(()=>()=>{},e=>Y.bind(null,e.i,e.j));return e.jsxs(Rs,{disabled:!t,onClick:n,children:[e.jsx(Oa,{icon:Yl.faCompressAlt}),b.collapseNodesAbove]},"focus")})(),e.jsxs(Rs,{onClick:()=>{navigator.clipboard&&navigator.clipboard.writeText(o)},children:[e.jsx(Oa,{icon:Nl.faCopy}),b.copyFunctionName]},"copy"),(()=>{const t=C.isJust&&C.value===o?b.clearHighlight:b.highlightSimilarNodes;return e.jsxs(Rs,{onClick:()=>{W({name:o})},children:[e.jsx(Oa,{icon:Rl.faHighlighter}),t]},"highlight-similar-nodes")})(),(()=>{if(!X||!R)return null;return e.jsxs(Rs,{className:Jc,onClick:()=>{X("sandwich"),W({name:o})},children:[e.jsx(Bc,{fill:"black"}),b.openInSandwichView]},"open-in-sandwich-view")})(),(()=>{const t=G===Or;return e.jsxs(Rs,{className:Mc,onClick:()=>{Q(t?Jr:Or)},children:[t?e.jsx(Zc,{}):e.jsx(Fc,{}),t?b.showTextTailFirst:b.showTextHeadFirst]},"fit-mode")})()].filter(Boolean)},[i,C,G,_,D,Y,W,X,b,R]),A=()=>{if(a.current){const e=new bl(y,a.current,v,G,I,B,V,f);i.current=e}if(r.current){const e=new bl(y,r.current,v,G,I,B,V,f);l.current=e}},E=t.useCallback(()=>{if(!h||!s.current)return!1;const e=s.current;if(a.current&&!c.current)try{const t=a.current.transferControlToOffscreen();c.current=t,e.postMessage({type:"init",payload:{kind:"rect",canvas:t}},[t]),d.current.rect=!0}catch(e){}if(r.current&&!u.current)try{const t=r.current.transferControlToOffscreen();u.current=t,e.postMessage({type:"init",payload:{kind:"text",canvas:t}},[t]),d.current.text=!0}catch(e){}return!0},[h]);t.useEffect(()=>{A(),T(),H()},[V,f]),t.useEffect(()=>{A(),T(),H()},[a.current,y,v,G,B]),t.useEffect(()=>{A(),T(),H()},[I]);const z=(e,t)=>{if(!h)return!1;if(!s.current)return!0;if(!E())return!0;const n="rect"===e?a.current:r.current,o=(null==n?void 0:n.clientWidth)||(null==n?void 0:n.width)||0,i={kind:e,flamebearer:y,focusedNode:v.isJust?v.value:null,fitMode:G,highlightQuery:I,zoom:B.isJust?B.value:null,palette:g(V),messages:f,renderRects:t.renderRects,renderText:t.renderText,width:o,devicePixelRatio:"undefined"!=typeof window&&window.devicePixelRatio||1};return s.current.postMessage({type:"render",payload:i}),!0},T=()=>{var e,t,n;z("rect",{renderText:!1})||(null===(e=null==a?void 0:a.current)||void 0===e||e.setAttribute("data-state","rendering"),null===(t=null==i?void 0:i.current)||void 0===t||t.render({renderText:!1}),null===(n=null==a?void 0:a.current)||void 0===n||n.setAttribute("data-state","rendered"))},H=()=>{var e,t,n;z("text",{renderRects:!1})||(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({renderRects:!1}),null===(n=null==r?void 0:r.current)||void 0===n||n.setAttribute("data-state","rendered"))},P=!y||y&&y.names.length<=1,K=()=>{if(!a.current)throw new Error("Missing canvas");return a.current},$=()=>{if(!i.current)throw new Error("Missing canvas");return i.current};return e.jsxs("div",{"data-testid":"flamegraph-view",className:hl(Sc,{"vertical-orientation":"double"===y.format}),children:[e.jsxs("div",{className:Oc,children:[k&&e.jsx(Vc,{totalValueText:k.totalValueText,totalSamplesText:k.totalSamplesText,samplesLabel:k.samplesLabel,unitLabel:k.unitLabel,hasFocus:k.hasFocus,focusPercent:k.focusPercent,focusLabel:k.focusLabel,ofTotalPlacement:k.ofTotalPlacement,ofTotalLabel:k.ofTotalLabel,clearFocusLabel:k.clearFocusLabel,onClearFocus:k.onClearFocus}),Z&&e.jsx(Wc,{format:y.format,units:y.units,toolbarVisible:F}),e.jsxs("div",{"data-testid":j,style:{position:"relative",opacity:P&&!N?0:1},children:[e.jsx("canvas",{height:"0","data-testid":"flamegraph-canvas","data-highlightquery":I,className:hl("flamegraph-canvas",Os),ref:a,onClick:w?void 0:e=>{const t=$().xyToBar(e.nativeEvent.offsetX,e.nativeEvent.offsetY);t.match({Nothing:()=>{},Just:e=>{B.match({Nothing:()=>{U(t)},Just:n=>{e.i===n.i&&e.j===n.j?U(fr.nothing()):U(t)}})}})}}),e.jsx("canvas",{height:"0","data-testid":"flamegraph-text-canvas",className:hl("flamegraph-text-canvas",As),ref:r}),i&&a&&e.jsx(zs,{barHeight:Wr,canvasRef:a,zoom:B,xyToHighlightData:J}),i&&e.jsx(Ps,{barHeight:Wr,node:p})]}),L?e.jsx(vc,{}):""]}),i&&e.jsx(fc,{format:y.format,canvasRef:a,xyToData:(e,t)=>$().xyToBar(e,t),numTicks:y.numTicks,sampleRate:y.sampleRate,leftTicks:"double"===y.format?y.leftTicks:0,rightTicks:"double"===y.format?y.rightTicks:0,units:y.units,palette:V}),!w&&i&&a&&e.jsx(xc,{canvasRef:a,xyToMenuItems:O,onClose:()=>{x(fr.nothing())},onOpen:(e,t)=>{x(J(e,t))}})]})}s(".styles-module_flamegraphPane__ejguD{flex:1;position:relative}.styles-module_flamegraphPane__ejguD .styles-module_fitModeItem__0UBwN svg,.styles-module_flamegraphPane__ejguD .styles-module_sandwichItem__WYvnd svg{margin-right:0;width:1em}.styles-module_flamegraphFrame__9ZW-z{background-color:transparent;border:1px solid var(--ps-ui-border);border-radius:6px;min-height:var(--kylin-flamegraph-pane-min-height,320px);padding:6px 8px 8px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxxQ0FDRSxNQUFPLENBQ1AsaUJBQ0YsQ0FDQSx1SkFHRSxjQUFlLENBRGYsU0FFRixDQUVBLHNDQUlFLDRCQUE2QixDQUg3QixvQ0FBcUMsQ0FDckMsaUJBQWtCLENBR2xCLHdEQUEwRCxDQUYxRCxtQkFHRiIsImZpbGUiOiJzdHlsZXMubW9kdWxlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuZmxhbWVncmFwaFBhbmUge1xuICBmbGV4OiAxO1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG59XG4uZmxhbWVncmFwaFBhbmUgLmZpdE1vZGVJdGVtIHN2Zyxcbi5mbGFtZWdyYXBoUGFuZSAuc2FuZHdpY2hJdGVtIHN2ZyB7XG4gIHdpZHRoOiAxZW07XG4gIG1hcmdpbi1yaWdodDogMDtcbn1cblxuLmZsYW1lZ3JhcGhGcmFtZSB7XG4gIGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLXBzLXVpLWJvcmRlcik7XG4gIGJvcmRlci1yYWRpdXM6IDZweDtcbiAgcGFkZGluZzogNnB4IDhweCA4cHg7XG4gIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50O1xuICBtaW4taGVpZ2h0OiB2YXIoLS1reWxpbi1mbGFtZWdyYXBoLXBhbmUtbWluLWhlaWdodCwgMzIwcHgpO1xufSJdfQ== */");var Ec,zc={exports:{}};
|
|
12
|
+
function g(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 p(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,B(a.key),a)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function x(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Z(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 y(e,t,n){return(t=B(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(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 G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Q(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)||Z(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 I(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Z(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 B(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 F(e){return F="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},F(e)}function Z(e,t){if(e){if("string"==typeof e)return g(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)?g(e,t):void 0}}var w=function(){},N={},L={},W=null,C={mark:w,measure:w};try{"undefined"!=typeof window&&(N=window),"undefined"!=typeof document&&(L=document),"undefined"!=typeof MutationObserver&&(W=MutationObserver),"undefined"!=typeof performance&&(C=performance)}catch(ne){}var X=(N.navigator||{}).userAgent,R=void 0===X?"":X,k=N,U=L,D=W,_=C;k.document;var Y,j=!!U.documentElement&&!!U.head&&"function"==typeof U.addEventListener&&"function"==typeof U.createElement,V=~R.indexOf("MSIE")||~R.indexOf("Trident/"),S={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"}},M=["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"],J="classic",O="duotone",A="sharp",E="sharp-duotone",z="chisel",T="etch",H="jelly",P="jelly-duo",K="jelly-fill",$="notdog",q="notdog-duo",ee="slab",te="slab-press",ne="thumbprint",ae="utility",re="utility-duo",oe="utility-fill",ie="whiteboard",le=[J,O,A,E,z,T,H,P,K,$,q,ee,te,ne,ae,re,oe,ie];y(y(y(y(y(y(y(y(y(y(Y={},J,"Classic"),O,"Duotone"),A,"Sharp"),E,"Sharp Duotone"),z,"Chisel"),T,"Etch"),H,"Jelly"),P,"Jelly Duo"),K,"Jelly Fill"),$,"Notdog"),y(y(y(y(y(y(y(y(Y,q,"Notdog Duo"),ee,"Slab"),te,"Slab Press"),ne,"Thumbprint"),ae,"Utility"),re,"Utility Duo"),oe,"Utility Fill"),ie,"Whiteboard");var se=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}]]),ce=["fak","fa-kit","fakd","fa-kit-duotone"],ue={fak:"kit","fa-kit":"kit"},de={fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"};y(y({},"kit","Kit"),"kit-duotone","Kit Duotone");var be,me={kit:"fak"},he={"kit-duotone":"fakd"},fe="duotone-group",ge="swap-opacity",pe="primary",xe="secondary";y(y(y(y(y(y(y(y(y(y(be={},"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"),y(y(y(y(y(y(y(y(be,"notdog-duo","Notdog Duo"),"slab","Slab"),"slab-press","Slab Press"),"thumbprint","Thumbprint"),"utility","Utility"),"utility-duo","Utility Duo"),"utility-fill","Utility Fill"),"whiteboard","Whiteboard");y(y({},"kit","Kit"),"kit-duotone","Kit Duotone");var ye={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"}},ve=["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"]),Ge=[1,2,3,4,5,6,7,8,9,10],Qe=Ge.concat([11,12,13,14,15,16,17,18,19,20]),Ie=[].concat(I(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",fe,ge,pe,xe]).concat(Ge.map(function(e){return"".concat(e,"x")})).concat(Qe.map(function(e){return"w-".concat(e)})),Be="___FONT_AWESOME___",Fe="svg-inline--fa",Ze="data-fa-i2svg",we="data-fa-pseudo-element",Ne="data-prefix",Le="data-icon",We="fontawesome-i2svg",Ce=["HTML","HEAD","STYLE","SCRIPT"],Xe=["::before","::after",":before",":after"],Re=function(){try{return"production"===process.env.NODE_ENV}catch(e){return!1}}();function ke(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[J]}})}var Ue=G({},S);Ue[J]=G(G(G(G({},{"fa-duotone":"duotone"}),S[J]),ue),de);var De=ke(Ue),_e=G({},{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"}});_e[J]=G(G(G(G({},{duotone:"fad"}),_e[J]),me),he);var Ye=ke(_e),je=G({},ye);je[J]=G(G({},je[J]),{fak:"fa-kit"});var Ve=ke(je),Se=G({},{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"}});Se[J]=G(G({},Se[J]),{"fa-kit":"fak"}),ke(Se);var Me=/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)?[\-\ ]/,Je="fa-layers-text",Oe=/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;ke(G({},{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 Ae=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ee={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},ze=[].concat(I(["kit"]),I(Ie)),Te=k.FontAwesomeConfig||{};if(U&&"function"==typeof U.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=Q(e,2),n=t[0],a=t[1],r=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=U.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=r&&(Te[a]=r)})}var He={styleDefault:"solid",familyDefault:J,cssPrefix:"fa",replacementClass:Fe,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Te.familyPrefix&&(Te.cssPrefix=Te.familyPrefix);var Pe=G(G({},He),Te);Pe.autoReplaceSvg||(Pe.observeMutations=!1);var Ke={};Object.keys(He).forEach(function(e){Object.defineProperty(Ke,e,{enumerable:!0,set:function(t){Pe[e]=t,$e.forEach(function(e){return e(Ke)})},get:function(){return Pe[e]}})}),Object.defineProperty(Ke,"familyPrefix",{enumerable:!0,set:function(e){Pe.cssPrefix=e,$e.forEach(function(e){return e(Ke)})},get:function(){return Pe.cssPrefix}}),k.FontAwesomeConfig=Ke;var $e=[];var qe=16,et={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function tt(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function nt(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function at(e){return e.classList?nt(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(e){return e})}function rt(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function ot(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function it(e){return e.size!==et.size||e.x!==et.x||e.y!==et.y||e.rotate!==et.rotate||e.flipX||e.flipY}function lt(){var e="fa",t=Fe,n=Ke.cssPrefix,a=Ke.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 st=!1;function ct(){Ke.autoAddCss&&!st&&(!function(e){if(e&&j){var t=U.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=U.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)}U.head.insertBefore(t,a)}}(lt()),st=!0)}var ut={mixout:function(){return{dom:{css:lt,insertCss:ct}}},hooks:function(){return{beforeDOMElementCreation:function(){ct()},beforeI2svg:function(){ct()}}}},dt=k||{};dt[Be]||(dt[Be]={}),dt[Be].styles||(dt[Be].styles={}),dt[Be].hooks||(dt[Be].hooks={}),dt[Be].shims||(dt[Be].shims=[]);var bt=dt[Be],mt=[],ht=function(){U.removeEventListener("DOMContentLoaded",ht),ft=1,mt.map(function(e){return e()})},ft=!1;function gt(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?rt(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(rt(e[n]),'" ')},"").trim()}(a),">").concat(o.map(gt).join(""),"</").concat(t,">")}function pt(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}j&&((ft=(U.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(U.readyState))||U.addEventListener("DOMContentLoaded",ht));var xt=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 yt(e){return 1!==I(e).length?null:e.codePointAt(0).toString(16)}function vt(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 Gt(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,a=void 0!==n&&n,r=vt(t);"function"!=typeof bt.hooks.addPack||a?bt.styles[e]=G(G({},bt.styles[e]||{}),r):bt.hooks.addPack(e,vt(t)),"fas"===e&&Gt("fa",t)}var Qt=bt.styles,It=bt.shims,Bt=Object.keys(Ve),Ft=Bt.reduce(function(e,t){return e[t]=Object.keys(Ve[t]),e},{}),Zt=null,wt={},Nt={},Lt={},Wt={},Ct={};function Xt(e,t){var n,a=t.split("-"),r=a[0],o=a.slice(1).join("-");return r!==e||""===o||(n=o,~ze.indexOf(n))?null:o}var Rt,kt=function(){var e=function(e){return xt(Qt,function(t,n,a){return t[a]=xt(n,e,{}),t},{})};wt=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}),Nt=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}),Ct=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 Qt||Ke.autoFetchSvg,n=xt(It,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:{}});Lt=n.names,Wt=n.unicodes,Zt=jt(Ke.styleDefault,{family:Ke.familyDefault})};function Ut(e,t){return(wt[e]||{})[t]}function Dt(e,t){return(Ct[e]||{})[t]}function _t(e){return Lt[e]||{prefix:null,iconName:null}}function Yt(){return Zt}Rt=function(e){Zt=jt(e.styleDefault,{family:Ke.familyDefault})},$e.push(Rt),kt();function jt(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===t?J:t,a=De[n][e];if(n===O&&!e)return"fad";var r=Ye[n][e]||Ye[n][a],o=e in bt.styles?e:null;return r||o||null}function Vt(e){return e.sort().filter(function(e,t,n){return n.indexOf(e)===t})}var St=ve.concat(ce);function Mt(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,n=void 0!==t&&t,a=null,r=Vt(e.filter(function(e){return St.includes(e)})),o=Vt(e.filter(function(e){return!St.includes(e)})),i=Q(r.filter(function(e){return a=e,!M.includes(e)}),1)[0],l=void 0===i?null:i,s=function(e){var t=J,n=Bt.reduce(function(e,t){return e[t]="".concat(Ke.cssPrefix,"-").concat(t),e},{});return le.forEach(function(a){(e.includes(n[a])||e.some(function(e){return Ft[a].includes(e)}))&&(t=a)}),t}(r),c=G(G({},function(e){var t=[],n=null;return e.forEach(function(e){var a=Xt(Ke.cssPrefix,e);a?n=a:e&&t.push(e)}),{iconName:n,rest:t}}(o)),{},{prefix:jt(l,{family:s})});return G(G(G({},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,u=n===O,d=t.includes("fa-duotone")||t.includes("fad"),b="duotone"===c.familyDefault,m="fad"===a.prefix||"fa-duotone"===a.prefix;!u&&(d||b||m)&&(a.prefix="fad");(t.includes("fa-brands")||t.includes("fab"))&&(a.prefix="fab");if(!a.prefix&&Jt.includes(n)){if(Object.keys(l).find(function(e){return Ot.includes(e)})||c.autoFetchSvg){var h=se.get(n).defaultShortPrefixId;a.prefix=h,a.iconName=Dt(a.prefix,a.iconName)||a.iconName}}"fa"!==a.prefix&&"fa"!==o||(a.prefix=Yt()||"fas");return a}({values:e,family:s,styles:Qt,config:Ke,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?_t(r):{},i=Dt(a,r);r=o.iconName||i||r,"far"!==(a=o.prefix||a)||Qt.far||!Qt.fas||Ke.autoFetchSvg||(a="fas");return{prefix:a,iconName:r}}(n,a,c))}var Jt=le.filter(function(e){return e!==J||e!==O}),Ot=Object.keys(ye).filter(function(e){return e!==J}).map(function(e){return Object.keys(ye[e])}).flat();var At=function(){return p(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]=G(G({},e.definitions[t]||{}),r[t]),Gt(t,r[t]);var n=Ve[J][t];n&&Gt(n,r[t]),kt()})}},{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}}])}(),Et=[],zt={},Tt={},Ht=Object.keys(Tt);function Pt(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(zt[e]||[]).forEach(function(e){t=e.apply(null,[t].concat(a))}),t}function Kt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];(zt[e]||[]).forEach(function(e){e.apply(null,n)})}function $t(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Tt[e]?Tt[e].apply(null,t):void 0}function qt(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Yt();if(t)return t=Dt(n,t)||t,pt(en.definitions,n,t)||pt(bt.styles,n,t)}var en=new At,tn={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return j?(Kt("beforeI2svg",e),$t("pseudoElements2svg",e),$t("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===Ke.autoReplaceSvg&&(Ke.autoReplaceSvg=!0),Ke.observeMutations=!0,e=function(){an({autoReplaceSvgRoot:n}),Kt("watch",t)},j&&(ft?setTimeout(e,0):mt.push(e))}},nn={noAuto:function(){Ke.autoReplaceSvg=!1,Ke.observeMutations=!1,Kt("noAuto")},config:Ke,dom:tn,parse:{icon:function(e){if(null===e)return null;if("object"===F(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Dt(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=jt(e[0]);return{prefix:n,iconName:Dt(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(Ke.cssPrefix,"-"))>-1||e.match(Me))){var a=Mt(e.split(" "),{skipLookups:!0});return{prefix:a.prefix||Yt(),iconName:Dt(a.prefix,a.iconName)||a.iconName}}if("string"==typeof e){var r=Yt();return{prefix:r,iconName:Dt(r,e)||e}}}},library:en,findIconDefinition:qt,toHtml:gt},an=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?U:e;(Object.keys(bt.styles).length>0||Ke.autoFetchSvg)&&j&&Ke.autoReplaceSvg&&nn.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 gt(e)})}}),Object.defineProperty(e,"node",{get:function(){if(j){var t=U.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function on(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,u=e.watchable,d=void 0!==u&&u,b=a.found?a:n,m=b.width,h=b.height,f=[Ke.replacementClass,o?"".concat(Ke.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:G(G({},c.attributes),{},{"data-prefix":r,"data-icon":o,class:f,role:c.attributes.role||"img",viewBox:"0 0 ".concat(m," ").concat(h)})};(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"),d&&(g.attributes[Ze]="");var p=G(G({},g),{},{prefix:r,iconName:o,main:n,mask:a,maskId:s,transform:i,symbol:l,styles:G({},c.styles)}),x=a.found&&n.found?$t("generateAbstractMask",p)||{children:[],attributes:{}}:$t("generateAbstractIcon",p)||{children:[],attributes:{}},y=x.children,v=x.attributes;return p.children=y,p.attributes=v,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(Ke.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:G(G({},r),{},{id:i}),children:a}]}]}(p):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=ot(G(G({},o),{},{"transform-origin":"".concat(l.x+i.x/16,"em ").concat(l.y+i.y/16,"em")}))}return[{tag:"svg",attributes:r,children:t}]}(p)}function ln(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=G(G({},o.attributes),{},{class:o.classes.join(" ")});l&&(s[Ze]="");var c=G({},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+=V?"translate(".concat(t.x/qe-a/2,"em, ").concat(t.y/qe-o/2,"em) "):"translate(calc(-50% + ".concat(t.x/qe,"em), calc(-50% + ").concat(t.y/qe,"em)) "),i+="scale(".concat(t.size/qe*(t.flipX?-1:1),", ").concat(t.size/qe*(t.flipY?-1:1),") "),i+"rotate(".concat(t.rotate,"deg) ")}({transform:r,width:n,height:a}),c["-webkit-transform"]=c.transform);var u=ot(c);u.length>0&&(s.style=u);var d=[];return d.push({tag:"span",attributes:s,children:[t]}),d}var sn=bt.styles;function cn(e){var t=e[0],n=e[1],a=Q(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(a)?{tag:"g",attributes:{class:"".concat(Ke.cssPrefix,"-").concat(Ee.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ke.cssPrefix,"-").concat(Ee.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(Ke.cssPrefix,"-").concat(Ee.PRIMARY),fill:"currentColor",d:a[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:a}}}}var un={found:!1,width:512,height:512};function dn(e,t){var n=t;return"fa"===t&&null!==Ke.styleDefault&&(t=Yt()),new Promise(function(a,r){if("fa"===n){var o=_t(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&sn[t]&&sn[t][e])return a(cn(sn[t][e]));!function(e,t){Re||Ke.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),a(G(G({},un),{},{icon:Ke.showMissingIcons&&e&&$t("missingIconAbstract")||{}}))})}var bn=function(){},mn=Ke.measurePerformance&&_&&_.mark&&_.measure?_:{mark:bn,measure:bn},hn='FA "7.1.0"',fn=function(e){mn.mark("".concat(hn," ").concat(e," ends")),mn.measure("".concat(hn," ").concat(e),"".concat(hn," ").concat(e," begins"),"".concat(hn," ").concat(e," ends"))},gn=function(e){return mn.mark("".concat(hn," ").concat(e," begins")),function(){return fn(e)}},pn=function(){};function xn(e){return"string"==typeof(e.getAttribute?e.getAttribute(Ze):null)}function yn(e){return U.createElementNS("http://www.w3.org/2000/svg",e)}function vn(e){return U.createElement(e)}function Gn(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===t?"svg"===e.tag?yn:vn:t;if("string"==typeof e)return U.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(Gn(e,{ceFn:n}))}),a}var Qn={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(e){t.parentNode.insertBefore(Gn(e),t)}),null===t.getAttribute(Ze)&&Ke.keepOriginalSource){var n=U.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(~at(t).indexOf(Ke.replacementClass))return Qn.replace(e);var a=new RegExp("".concat(Ke.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var r=n[0].attributes.class.split(" ").reduce(function(e,t){return t===Ke.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 gt(e)}).join("\n");t.setAttribute(Ze,""),t.innerHTML=o}};function In(e){e()}function Bn(e,t){var n="function"==typeof t?t:pn;if(0===e.length)n();else{var a=In;"async"===Ke.mutateApproach&&(a=k.requestAnimationFrame||In),a(function(){var t=!0===Ke.autoReplaceSvg?Qn.replace:Qn[Ke.autoReplaceSvg]||Qn.replace,a=gn("mutate");e.map(t),a(),n()})}}var Fn=!1;function Zn(){Fn=!0}function wn(){Fn=!1}var Nn=null;function Ln(e){if(D&&Ke.observeMutations){var t=e.treeCallback,n=void 0===t?pn:t,a=e.nodeCallback,r=void 0===a?pn:a,o=e.pseudoElementsCallback,i=void 0===o?pn:o,l=e.observeMutationsRoot,s=void 0===l?U:l;Nn=new D(function(e){if(!Fn){var t=Yt();nt(e).forEach(function(e){if("childList"===e.type&&e.addedNodes.length>0&&!xn(e.addedNodes[0])&&(Ke.searchPseudoElements&&i(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&Ke.searchPseudoElements&&i([e.target],!0),"attributes"===e.type&&xn(e.target)&&~Ae.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(Ne):null,n=e.getAttribute?e.getAttribute(Le):null;return t&&n}(e.target)){var a=Mt(at(e.target)),o=a.prefix,l=a.iconName;e.target.setAttribute(Ne,o||t),l&&e.target.setAttribute(Le,l)}else(s=e.target)&&s.classList&&s.classList.contains&&s.classList.contains(Ke.replacementClass)&&r(e.target);var s})}}),j&&Nn.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Wn(e){var t,n,a=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),o=void 0!==e.innerText?e.innerText.trim():"",i=Mt(at(e));return i.prefix||(i.prefix=Yt()),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,(Nt[t]||{})[n]||Ut(i.prefix,yt(e.innerText)))),!i.iconName&&Ke.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function Cn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=Wn(e),a=n.iconName,r=n.prefix,o=n.rest,i=function(e){return nt(e.attributes).reduce(function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e},{})}(e),l=Pt("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 G({iconName:a,prefix:r,transform:et,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:s,attributes:i}},l)}var Xn=bt.styles;function Rn(e){var t="nest"===Ke.autoReplaceSvg?Cn(e,{styleParser:!1}):Cn(e);return~t.extra.classes.indexOf(Je)?$t("generateLayersText",e,t):$t("generateSvgReplacementMutation",e,t)}function kn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!j)return Promise.resolve();var n=U.documentElement.classList,a=function(e){return n.add("".concat(We,"-").concat(e))},r=function(e){return n.remove("".concat(We,"-").concat(e))},o=Ke.autoFetchSvg?[].concat(I(ce),I(ve)):M.concat(Object.keys(Xn));o.includes("fa")||o.push("fa");var i=[".".concat(Je,":not([").concat(Ze,"])")].concat(o.map(function(e){return".".concat(e,":not([").concat(Ze,"])")})).join(", ");if(0===i.length)return Promise.resolve();var l=[];try{l=nt(e.querySelectorAll(i))}catch(e){}if(!(l.length>0))return Promise.resolve();a("pending"),r("complete");var s=gn("onTree"),c=l.reduce(function(e,t){try{var n=Rn(t);n&&e.push(n)}catch(e){Re||"MissingIcon"===e.name&&console.error(e)}return e},[]);return new Promise(function(e,n){Promise.all(c).then(function(n){Bn(n,function(){a("active"),a("complete"),r("pending"),"function"==typeof t&&t(),s(),e()})}).catch(function(e){s(),n(e)})})}function Un(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Rn(e).then(function(e){e&&Bn([e],t)})}var Dn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,a=void 0===n?et: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,u=t.classes,d=void 0===u?[]:u,b=t.attributes,m=void 0===b?{}:b,h=t.styles,f=void 0===h?{}:h;if(e){var g=e.prefix,p=e.iconName,x=e.icon;return rn(G({type:"icon"},e),function(){return Kt("beforeDOMElementCreation",{iconDefinition:e,params:t}),on({icons:{main:cn(x),mask:l?cn(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g,iconName:p,transform:G(G({},et),a),symbol:o,maskId:c,extra:{attributes:m,styles:f,classes:d}})})}},_n={mixout:function(){return{icon:(e=Dn,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(t||{}).icon?t:qt(t||{}),r=n.mask;return r&&(r=(r||{}).icon?r:qt(r||{})),e(a,G(G({},n),{},{mask:r}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=kn,e.nodeCallback=Un,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?U:t,a=e.callback;return kn(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([dn(n,a),i.iconName?dn(i.iconName,i.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(i){var c=Q(i,2),u=c[0],d=c[1];t([e,on({icons:{main:u,mask:d},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=ot(e.styles);return i.length>0&&(a.style=i),it(o)&&(t=$t("generateAbstractTransformGrouping",{main:r,transform:o,containerWidth:r.width,iconWidth:r.width})),n.push(t||r.icon),{children:n,attributes:a}}}},Yn={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(){Kt("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(Ke.cssPrefix,"-layers")].concat(I(a)).join(" ")},children:n}]})}}}},jn={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 Kt("beforeDOMElementCreation",{content:e,params:t}),function(e){var t=e.content,n=e.extra,a=G(G({},n.attributes),{},{class:n.classes.join(" ")}),r=ot(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(Ke.cssPrefix,"-layers-counter")].concat(I(a))}})})}}}},Vn={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,a=void 0===n?et: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 Kt("beforeDOMElementCreation",{content:e,params:t}),ln({content:e,transform:G(G({},et),a),extra:{attributes:l,styles:c,classes:["".concat(Ke.cssPrefix,"-layers-text")].concat(I(o))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.transform,a=t.extra,r=null,o=null;if(V){var i=parseInt(getComputedStyle(e).fontSize,10),l=e.getBoundingClientRect();r=l.width/i,o=l.height/i}return Promise.resolve([e,ln({content:e.innerHTML,width:r,height:o,transform:n,extra:a,watchable:!0})])}}},Sn=new RegExp('"',"ug"),Mn=[1105920,1112319],Jn=G(G(G(G({},{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"}}),On=Object.keys(Jn).reduce(function(e,t){return e[t.toLowerCase()]=Jn[t],e},{}),An=Object.keys(On).reduce(function(e,t){var n=On[t];return e[t]=n[900]||I(Object.entries(n))[0][1],e},{});function En(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=nt(e.children).filter(function(e){return e.getAttribute(we)===t})[0],c=k.getComputedStyle(e,t),u=c.getPropertyValue("font-family"),d=u.match(Oe),b=c.getPropertyValue("font-weight"),m=c.getPropertyValue("content");if(s&&!d)return e.removeChild(s),a();if(d&&"none"!==m&&""!==m){var h=c.getPropertyValue("content"),f=function(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),a=parseInt(t),r=isNaN(a)?"normal":a;return(On[n]||{})[r]||An[n]}(u,b),g=function(e){return yt(I(e.replace(Sn,""))[0]||"")}(h),p=d[0].startsWith("FontAwesome"),x=function(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content").replace(Sn,""),a=n.codePointAt(0),r=a>=Mn[0]&&a<=Mn[1],o=2===n.length&&n[0]===n[1];return r||o||t}(c),y=Ut(f,g),v=y;if(p){var Q=(i=Wt[o=g],l=Ut("fas",o),i||(l?{prefix:"fas",iconName:l}:null)||{prefix:null,iconName:null});Q.iconName&&Q.prefix&&(y=Q.iconName,f=Q.prefix)}if(!y||x||s&&s.getAttribute(Ne)===f&&s.getAttribute(Le)===v)a();else{e.setAttribute(n,v),s&&e.removeChild(s);var B={iconName:null,prefix:null,transform:et,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},F=B.extra;F.attributes[we]=t,dn(y,f).then(function(r){var o=on(G(G({},B),{},{icons:{main:r,mask:{prefix:null,iconName:null,rest:[]}},prefix:f,iconName:v,extra:F,watchable:!0})),i=U.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 gt(e)}).join("\n"),e.removeAttribute(n),a()}).catch(r)}}else a()})}function zn(e){return Promise.all([En(e,"::before"),En(e,"::after")])}function Tn(e){return!(e.parentNode===document.head||~Ce.indexOf(e.tagName.toUpperCase())||e.getAttribute(we)||e.parentNode&&"svg"===e.parentNode.tagName)}var Hn=function(e){return!!e&&Xe.some(function(t){return e.includes(t)})},Pn=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=x(n);try{for(r.s();!(a=r.n()).done;){var o=a.value;if(Hn(o)){var i=Xe.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 Kn(e){if(j){var t;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])t=e;else if(Ke.searchPseudoElementsFullScan)t=e.querySelectorAll("*");else{var n,a=new Set,r=x(document.styleSheets);try{for(r.s();!(n=r.n()).done;){var o=n.value;try{var i,l=x(o.cssRules);try{for(l.s();!(i=l.n()).done;){var s,c=i.value,u=x(Pn(c.selectorText));try{for(u.s();!(s=u.n()).done;){var d=s.value;a.add(d)}}catch(e){u.e(e)}finally{u.f()}}}catch(e){l.e(e)}finally{l.f()}}catch(e){Ke.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 b=Array.from(a).join(", ");try{t=e.querySelectorAll(b)}catch(e){}}return new Promise(function(e,n){var a=nt(t).filter(Tn).map(zn),r=gn("searchPseudoElements");Zn(),Promise.all(a).then(function(){r(),wn(),e()}).catch(function(){r(),wn(),n()})})}}var $n={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=Kn,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?U:t;Ke.searchPseudoElements&&Kn(n)}}},qn=!1,ea=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})},ta={mixout:function(){return{parse:{transform:function(e){return ea(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=ea(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:G({},c.outer),children:[{tag:"g",attributes:G({},c.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:G(G({},t.icon.attributes),c.path)}]}]}}}},na={x:0,y:0,width:"100%",height:"100%"};function aa(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 ra={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),a=n?Mt(n.split(" ").map(function(e){return e.trim()})):{prefix:null,iconName:null,rest:[]};return a.prefix||(a.prefix=Yt()),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,u=o.width,d=o.icon,b=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:u,iconWidth:s}),m={tag:"rect",attributes:G(G({},na),{},{fill:"white"})},h=c.children?{children:c.children.map(aa)}:{},f={tag:"g",attributes:G({},b.inner),children:[aa(G({tag:c.tag,attributes:G(G({},c.attributes),b.path)},h))]},g={tag:"g",attributes:G({},b.outer),children:[f]},p="mask-".concat(i||tt()),x="clip-".concat(i||tt()),y={tag:"mask",attributes:G(G({},na),{},{id:p,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[m,g]},v={tag:"defs",children:[{tag:"clipPath",attributes:{id:x},children:(t=d,"g"===t.tag?t.children:[t])},y]};return n.push(v,{tag:"rect",attributes:G({fill:"currentColor","clip-path":"url(#".concat(x,")"),mask:"url(#".concat(p,")")},na)}),{children:n,attributes:a}}}},oa={provides:function(e){var t=!1;k.matchMedia&&(t=k.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:G(G({},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=G(G({},a),{},{attributeName:"opacity"}),o={tag:"circle",attributes:G(G({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:G(G({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:G(G({},r),{},{values:"1;0;1;1;0;1;"})}),e.push(o),e.push({tag:"path",attributes:G(G({},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:G(G({},r),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:G(G({},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:G(G({},r),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){var n=t.mixoutsTo;Et=e,zt={},Object.keys(Tt).forEach(function(e){-1===Ht.indexOf(e)&&delete Tt[e]}),Et.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"===F(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){zt[e]||(zt[e]=[]),zt[e].push(a[e])})}e.provides&&e.provides(Tt)})}([ut,_n,Yn,jn,Vn,$n,{mixout:function(){return{dom:{unwatch:function(){Zn(),qn=!0}}}},hooks:function(){return{bootstrap:function(){Ln(Pt("mutationObserverCallbacks",{}))},noAuto:function(){Nn&&Nn.disconnect()},watch:function(e){var t=e.observeMutationsRoot;qn?wn():Ln(Pt("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},ta,ra,oa,{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:nn});var ia=nn.config,la=nn.parse,sa=nn.icon;function ca(e){return function(e){return(e-=0)==e}(e)?e:(e=e.replace(/[_-]+(.)?/g,(e,t)=>t?t.toUpperCase():"")).charAt(0).toLowerCase()+e.slice(1)}function ua(e){return e.charAt(0).toUpperCase()+e.slice(1)}var da=new Map;function ba(e){if(da.has(e))return da.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=ca(n);t[e.startsWith("webkit")?ua(e):e]=a}}}n=o+1}if(1e3===da.size){const e=da.keys().next().value;e&&da.delete(e)}return da.set(e,t),t}var ma=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=ba(String(t));break;case e.startsWith("aria-"):case e.startsWith("data-"):i[e.toLowerCase()]=t;break;default:i[ca(e)]=t}const{style:l,role:s,"aria-label":c,...u}=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,{...u,...i},...r)}.bind(null,t.createElement),ha=(e,n)=>{const a=t.useId();return e||(n?a:void 0)};"undefined"!=typeof process&&process.env.FA_VERSION;var fa="searchPseudoElementsFullScan"in ia?"7.0.0":"6.0.0",ga=Number.parseInt(fa)>=7,pa="fa",xa="fa-beat",ya="fa-fade",va="fa-beat-fade",Ga="fa-bounce",Qa="fa-shake",Ia="fa-spin",Ba="fa-spin-pulse",Fa="fa-spin-reverse",Za="fa-pulse",wa={left:"fa-pull-left",right:"fa-pull-right"},Na={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},La={"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"},Wa="fa-border",Ca="fa-fw",Xa="fa-flip",Ra="fa-flip-horizontal",ka="fa-flip-vertical",Ua="fa-inverse",Da="fa-rotate-by",_a="fa-swap-opacity",Ya="fa-width-auto";function ja(e){const t=ia.cssPrefix||ia.familyPrefix||pa;return t===pa?e:e.replace(new RegExp(String.raw`(?<=^|\s)${pa}-`,"g"),`${t}-`)}function Va(e){if(e)return(e=>"object"==typeof e&&"icon"in e&&!!e.icon)(e)?e:la.icon(e)}var Sa=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"),Ma={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},Ja=new Set(Object.keys(Ma)),Oa=t.forwardRef((e,t)=>{const n={...Ma,...e},{icon:a,mask:r,symbol:o,title:i,titleId:l,maskId:s,transform:c}=n,u=ha(s,Boolean(r)),d=ha(l,Boolean(i)),b=Va(a);if(!b)return Sa.error("Icon lookup is undefined",a),null;const m=function(e){const{beat:t,fade:n,beatFade:a,bounce:r,shake:o,spin:i,spinPulse:l,spinReverse:s,pulse:c,fixedWidth:u,inverse:d,border:b,flip:m,size:h,rotation:f,pull:g,swapOpacity:p,rotateBy:x,widthAuto:y,className:v}=e,G=[];return v&&G.push(...v.split(" ")),t&&G.push(xa),n&&G.push(ya),a&&G.push(va),r&&G.push(Ga),o&&G.push(Qa),i&&G.push(Ia),s&&G.push(Fa),l&&G.push(Ba),c&&G.push(Za),u&&G.push(Ca),d&&G.push(Ua),b&&G.push(Wa),!0===m&&G.push(Xa),"horizontal"!==m&&"both"!==m||G.push(Ra),"vertical"!==m&&"both"!==m||G.push(ka),null!=h&&G.push(La[h]),null!=f&&0!==f&&G.push(Na[f]),null!=g&&G.push(wa[g]),p&&G.push(_a),ga?(x&&G.push(Da),y&&G.push(Ya),(ia.cssPrefix||ia.familyPrefix||pa)===pa?G:G.map(ja)):G}(n),h="string"==typeof c?la.transform(c):c,f=Va(r),g=sa(b,{...m.length>0&&{classes:m},...h&&{transform:h},...f&&{mask:f},symbol:o,title:i,titleId:d,maskId:u});if(!g)return Sa.error("Could not find icon",b),null;const{abstract:p}=g,x={ref:t};for(const e of(y=n,Object.keys(y)))Ja.has(e)||(x[e]=n[e]);var y;return ma(p[0],x)});Oa.displayName="FontAwesomeIcon";var Aa={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"};s(".Box-module_box__SQLj3,.Box-module_collapseBox__5A5Fc{background-color:var(--ps-ui-foreground);border:1px solid var(--ps-ui-border);border-radius:4px;position:relative}.Box-module_padding__dIJ-L{margin-bottom:10px;padding:10px}.Box-module_collapseBox__5A5Fc{margin-bottom:10px}.Box-module_collapseBox__5A5Fc .Box-module_box__SQLj3,.Box-module_collapseBox__5A5Fc .Box-module_collapseBox__5A5Fc{background-color:transparent;border:none;border-radius:0;height:auto;padding-bottom:0}.Box-module_collapseBox__5A5Fc .Box-module_box__SQLj3.Box-module_collapsedContent__yn-0g,.Box-module_collapseBox__5A5Fc .Box-module_collapsedContent__yn-0g.Box-module_collapseBox__5A5Fc{height:0;margin:0;overflow:hidden;padding:0}.Box-module_collapseTitle__-R0ge{align-items:center;cursor:pointer;display:flex;font-size:18px;font-weight:500;height:40px;justify-content:space-between;padding:5px 10px}.Box-module_collapseTitle__-R0ge:hover{background-color:var(--ps-ui-border)}.Box-module_collapseIcon__OAiTO{display:flex;transition:transform .1s}.Box-module_collapseIcon__OAiTO.Box-module_collapsed__nf76f{display:flex;transform:rotate(90deg)}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJveC5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxzREFDRSx3Q0FBeUMsQ0FDekMsb0NBQXFDLENBQ3JDLGlCQUFrQixDQUNsQixpQkFDRixDQUVBLDJCQUNFLGtCQUFtQixDQUNuQixZQUNGLENBRUEsK0JBQ0Usa0JBQ0YsQ0FDQSxvSEFDRSw0QkFBNkIsQ0FDN0IsV0FBWSxDQUNaLGVBQWdCLENBRWhCLFdBQVksQ0FEWixnQkFFRixDQUNBLDBMQUNFLFFBQVMsQ0FDVCxRQUFTLENBRVQsZUFBZ0IsQ0FEaEIsU0FFRixDQUVBLGlDQU9FLGtCQUFtQixDQUpuQixjQUFlLENBRWYsWUFBYSxDQUhiLGNBQWUsQ0FEZixlQUFnQixDQU9oQixXQUFZLENBRlosNkJBQThCLENBRjlCLGdCQUtGLENBQ0EsdUNBQ0Usb0NBQ0YsQ0FFQSxnQ0FDRSxZQUFhLENBQ2Isd0JBQ0YsQ0FDQSw0REFFRSxZQUFhLENBRGIsdUJBRUYiLCJmaWxlIjoiQm94Lm1vZHVsZS5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmJveCwgLmNvbGxhcHNlQm94IHtcbiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcHMtdWktZm9yZWdyb3VuZCk7XG4gIGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLXBzLXVpLWJvcmRlcik7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xufVxuXG4ucGFkZGluZyB7XG4gIG1hcmdpbi1ib3R0b206IDEwcHg7XG4gIHBhZGRpbmc6IDEwcHg7XG59XG5cbi5jb2xsYXBzZUJveCB7XG4gIG1hcmdpbi1ib3R0b206IDEwcHg7XG59XG4uY29sbGFwc2VCb3ggLmJveCwgLmNvbGxhcHNlQm94IC5jb2xsYXBzZUJveCB7XG4gIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50O1xuICBib3JkZXI6IG5vbmU7XG4gIGJvcmRlci1yYWRpdXM6IDA7XG4gIHBhZGRpbmctYm90dG9tOiAwO1xuICBoZWlnaHQ6IGF1dG87XG59XG4uY29sbGFwc2VCb3ggLmJveC5jb2xsYXBzZWRDb250ZW50LCAuY29sbGFwc2VCb3ggLmNvbGxhcHNlZENvbnRlbnQuY29sbGFwc2VCb3gge1xuICBoZWlnaHQ6IDA7XG4gIG1hcmdpbjogMDtcbiAgcGFkZGluZzogMDtcbiAgb3ZlcmZsb3c6IGhpZGRlbjtcbn1cblxuLmNvbGxhcHNlVGl0bGUge1xuICBmb250LXdlaWdodDogNTAwO1xuICBmb250LXNpemU6IDE4cHg7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgcGFkZGluZzogNXB4IDEwcHg7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgaGVpZ2h0OiA0MHB4O1xufVxuLmNvbGxhcHNlVGl0bGU6aG92ZXIge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wcy11aS1ib3JkZXIpO1xufVxuXG4uY29sbGFwc2VJY29uIHtcbiAgZGlzcGxheTogZmxleDtcbiAgdHJhbnNpdGlvbjogdHJhbnNmb3JtIDAuMXM7XG59XG4uY29sbGFwc2VJY29uLmNvbGxhcHNlZCB7XG4gIHRyYW5zZm9ybTogcm90YXRlKDkwZGVnKTtcbiAgZGlzcGxheTogZmxleDtcbn0iXX0= */"),f.bind(Aa);const Ea=Symbol("BrandTag");const za=new class{constructor(e){this[Ea]=e}}("unit"),Ta=e=>null==e;function Ha(e,t){return void 0!==t?e(t):e}function Pa(e){if(function(e,t){return"object"==typeof e&&null!==e&&t in e}(e,"toString")&&"function"==typeof e.toString){const t=e.toString();return"string"==typeof t?t:JSON.stringify(e)}return JSON.stringify(e)}const Ka="Ok",$a="Err";class qa{constructor(e){this.repr=e}static ok(e){return Ta(e)?new qa(["Ok",za]):new qa(["Ok",e])}static err(e){return Ta(e)?new qa(["Err",za]):new qa(["Err",e])}get variant(){return this.repr[0]}get value(){if(this.repr[0]===$a)throw new Error("Cannot get the value of Err");return this.repr[1]}get error(){if(this.repr[0]===Ka)throw new Error("Cannot get the error of Ok");return this.repr[1]}get isOk(){return this.repr[0]===Ka}get isErr(){return this.repr[0]===$a}map(e){return function(e,t){const n=t=>t.isOk?er(e(t.value)):t;return Ha(n,t)}(e,this)}mapOr(e,t){return function(e,t,n){function a(t,n){return n.isOk?t(n.value):e}function r(e,t){return void 0!==t?a(e,t):t=>a(e,t)}return void 0===t?r:void 0===n?r(t):r(t,n)}(e,t,this)}mapOrElse(e,t){return nr(e,t,this)}match(e){return function(e,t){const n=t=>nr(e.Err,e.Ok,t);return Ha(n,t)}(e,this)}mapErr(e){return function(e,t){const n=t=>t.isOk?t:tr(e(t.error));return Ha(n,t)}(e,this)}or(e){return function(e,t){const n=t=>t.isOk?er(t.value):e;return Ha(n,t)}(e,this)}orElse(e){return function(e,t){const n=t=>t.isOk?er(t.value):e(t.error);return Ha(n,t)}(e,this)}and(e){return function(e,t){const n=t=>t.isOk?e:tr(t.error);return Ha(n,t)}(e,this)}andThen(e){return function(e,t){const n=t=>t.isOk?e(t.value):tr(t.error);return Ha(n,t)}(e,this)}unwrapOr(e){return function(e,t){const n=t=>t.isOk?t.value:e;return Ha(n,t)}(e,this)}unwrapOrElse(e){return function(e,t){const n=t=>t.isOk?t.value:e(t.error);return Ha(n,t)}(e,this)}toMaybe(){return(e=this).isOk?fr.just(e.value):fr.nothing();var e}toString(){return ar(this)}toJSON(){return rr(this)}equals(e){return t=e,void 0!==(n=this)?n.match({Err:()=>t.isErr,Ok:e=>t.isOk&&t.value===e}):e=>e.match({Err:()=>t.isErr,Ok:e=>t.isOk&&t.value===e});var t,n}ap(e){return function(e,t){const n=t=>t.andThen(t=>e.map(e=>e(t)));return Ha(n,t)}(this,e)}}const er=qa.ok,tr=qa.err;function nr(e,t,n){function a(t,n){return n.isOk?t(n.value):e(n.error)}function r(e,t){return void 0!==t?a(e,t):t=>a(e,t)}return void 0===t?r:void 0===n?r(t):r(t,n)}const ar=e=>{const t=e.match({Ok:Pa,Err:Pa});return`${e.variant.toString()}(${t})`},rr=e=>e.isOk?{variant:e.variant,value:e.value}:{variant:e.variant,error:e.error};const or=qa,ir="Just",lr="Nothing";let sr;class cr{constructor(e){if(Ta(e))return this.repr=[lr],sr||(sr=this),sr;this.repr=[ir,e]}static of(e){return new cr(e)}static just(e){if(Ta(e))throw new Error(`attempted to call "just" with ${e}`);return new cr(e)}static nothing(e){return new cr}get variant(){return this.repr[0]}get value(){if(this.repr[0]===lr)throw new Error("Cannot get the value of `Nothing`");return this.repr[1]}get isJust(){return this.repr[0]===ir}get isNothing(){return this.repr[0]===lr}map(e){return function(e,t){const n=t=>t.isJust?ur(e(t.value)):dr();return Ha(n,t)}(e,this)}mapOr(e,t){return function(e,t,n){function a(t,n){return n.isJust?t(n.value):e}function r(e,t){return void 0!==t?a(e,t):t=>a(e,t)}return void 0===t?r:void 0===n?r(t):r(t,n)}(e,t,this)}mapOrElse(e,t){return br(e,t,this)}match(e){return function(e,t){const n=t=>br(e.Nothing,e.Just,t);return Ha(n,t)}(e,this)}or(e){return function(e,t){const n=t=>t.isJust?t:e;return void 0!==t?n(t):n}(e,this)}orElse(e){return function(e,t){const n=t=>t.isJust?t:e();return Ha(n,t)}(e,this)}and(e){return function(e,t){const n=t=>t.isJust?e:dr();return Ha(n,t)}(e,this)}andThen(e){return mr(e,this)}unwrapOr(e){return function(e,t){const n=t=>t.isJust?t.value:e;return Ha(n,t)}(e,this)}unwrapOrElse(e){return function(e,t){const n=t=>t.isJust?t.value:e();return Ha(n,t)}(e,this)}toOkOrErr(e){return function(e,t){const n=t=>t.isJust?or.ok(t.value):or.err(e);return void 0!==t?n(t):n}(e,this)}toOkOrElseErr(e){return function(e,t){return Ha(t=>t.isJust?or.ok(t.value):or.err(e()),t)}(e,this)}toString(){return function(e){const t=e.map(e=>`(${Pa(e)})`).unwrapOr("");return`${e.variant}${t}`}(this)}toJSON(){return(e=this).isJust?{variant:e.variant,value:hr(e.value)?e.value.toJSON():e.value}:{variant:e.variant};var e}equals(e){return t=e,Ha(e=>e.match({Just:e=>t.isJust&&t.value===e,Nothing:()=>t.isNothing}),this);var t}ap(e){return function(e,t){const n=t=>t.andThen(t=>e.map(e=>e(t)));return Ha(n,t)}(this,e)}get(e){return function(e,t){return Ha(mr(function(e,t){const n=t=>fr.of(t[e]);return Ha(n,t)}(e)),t)}(e,this)}}const ur=cr.just,dr=cr.nothing;function br(e,t,n){function a(t,n){return n.isJust?t(n.value):e()}function r(e,t){return void 0!==t?a(e,t):t=>a(e,t)}return void 0===t?r:void 0===n?r(t):r(t,n)}function mr(e,t){const n=t=>t.isJust?e(t.value):dr();return void 0!==t?n(t):n}function hr(e){return e instanceof fr}const fr=cr,gr=["dotnetspy","ebpfspy","gospy","phpspy","pyspy","rbspy","nodespy","javaspy","pyroscope-rs","scrape","tracing","unknown"],pr=n.z.preprocess(e=>e&&gr.includes(e)?e:"unknown",n.z.enum(gr).default("unknown")),xr=["samples","objects","goroutines","bytes","lock_samples","lock_nanoseconds","trace_samples","exceptions"],yr=n.z.preprocess(e=>"string"==typeof e&&xr.includes(e)?e:"unknown",n.z.enum(["samples","objects","goroutines","bytes","lock_samples","lock_nanoseconds","trace_samples","exceptions","unknown"])),vr=n.z.object({names:n.z.array(n.z.preprocess(e=>e||"unknown",n.z.string().min(1))),levels:n.z.array(n.z.array(n.z.number())),numTicks:n.z.number(),maxSelf:n.z.number()}),Gr=n.z.object({appName:n.z.string().optional(),name:n.z.string().optional(),startTime:n.z.number().optional(),endTime:n.z.number().optional(),query:n.z.string().optional(),maxNodes:n.z.number().optional(),format:n.z.enum(["single","double"]),sampleRate:n.z.number(),spyName:pr,units:yr});n.z.object({version:n.z.number().min(1).max(1).default(1),flamebearer:vr,metadata:Gr,leftTicks:n.z.number().optional(),rightTicks:n.z.number().optional()});const Qr={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]},Ir={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 Br(e){switch(e){case"single":return Qr;case"double":return Ir;default:throw new Error(`Unsupported type: '${e}'`)}}const Fr=n.z.object({refType:n.z.string(),traceID:n.z.string(),spanID:n.z.string()}),Zr=n.z.object({key:n.z.string(),type:n.z.string(),value:n.z.union([n.z.boolean(),n.z.number(),n.z.string()])}),wr=n.z.object({traceID:n.z.string(),spanID:n.z.string(),flags:n.z.string(),operationName:n.z.string(),references:n.z.array(Fr),startTime:n.z.number(),duration:n.z.number(),tags:n.z.array(Zr),logs:n.z.object({timestamp:n.z.number(),fields:n.z.array(Zr)}),processID:n.z.string(),warnings:n.z.any()}),Nr=n.z.object({serviceName:n.z.string(),tags:n.z.array(Zr)});n.z.object({traceID:n.z.string(),spans:n.z.array(wr),processes:n.z.record(Nr),warnings:n.z.any()});const Lr=n.z.object({watermark:n.z.object({}).optional(),startTime:n.z.number(),samples:n.z.array(n.z.number()),durationDelta:n.z.number()});n.z.record(n.z.string(),Lr);const Wr=22,Cr=21.5;function Xr(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function Rr(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 kr(e,t=!1){if(!e||!t)return e;const n=Rr(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 Ur=[{value:1e15,label:"Quad"},{value:1e12,label:"Tri"},{value:1e9,label:"B"},{value:1e6,label:"M"},{value:1e3,label:"K"}];function Dr(e){return Math.round(1e4*e)/100}function _r(e,t){return(t-e)/e*100}function Yr(e,t,n){switch(n){case"samples":return new jr(e/t);case"objects":case"goroutines":case"lock_samples":case"exceptions":return new Sr(e);case"bytes":return new Mr(e);case"lock_nanoseconds":return new Vr(e);case"trace_samples":return new jr(e/t,"",!0);default:return console.warn(`Unsupported unit: '${n}'. Defaulting to ''`),new jr(e/t," ")}}class jr{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 Vr{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 Sr{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 Mr{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",Or="HEAD";function Ar({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 Er(e){return e===Jr?{direction:"rtl",overflow:"hidden",textOverflow:"ellipsis"}:{overflow:"hidden",textOverflow:"ellipsis"}}const zr={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(const e in zr)Object.freeze(zr[e]);var Tr=Object.freeze(zr);const Hr=Object.create(null);for(const e in Tr)Object.hasOwn(Tr,e)&&(Hr[Tr[e]]=e);const Pr={to:{},get:{}};function Kr(e,t,n){return Math.min(Math.max(t,e),n)}function $r(e){const t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}Pr.get=function(e){let t,n;switch(e.slice(0,3).toLowerCase()){case"hsl":t=Pr.get.hsl(e),n="hsl";break;case"hwb":t=Pr.get.hwb(e),n="hwb";break;default:t=Pr.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},Pr.get.rgb=function(e){if(!e)return null;let t,n,a,r=[0,0,0,1];if(t=e.match(/^#([a-f\d]{6})([a-f\d]{2})?$/i)){for(a=t[2],t=t[1],n=0;n<3;n++){const e=2*n;r[n]=Number.parseInt(t.slice(e,e+2),16)}a&&(r[3]=Number.parseInt(a,16)/255)}else if(t=e.match(/^#([a-f\d]{3,4})$/i)){for(t=t[1],a=t[3],n=0;n<3;n++)r[n]=Number.parseInt(t[n]+t[n],16);a&&(r[3]=Number.parseInt(a+a,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)\s*(?:[\s,|/]\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(%?)\s*)?\)$/i)){for(n=0;n<3;n++)r[n]=Number.parseFloat(t[n+1]);t[4]&&(r[3]=t[5]?.01*Number.parseFloat(t[4]):Number.parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/i)))return(t=e.toLowerCase().match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:Object.hasOwn(Tr,t[1])?(r=Tr[t[1]].slice(),r[3]=1,r):null:null;for(n=0;n<3;n++)r[n]=Math.round(2.55*Number.parseFloat(t[n+1]));t[4]&&(r[3]=t[5]?.01*Number.parseFloat(t[4]):Number.parseFloat(t[4]))}for(n=0;n<3;n++)r[n]=Kr(r[n],0,255);return r[3]=Kr(r[3],0,1),r},Pr.get.hsl=function(e){if(!e)return null;const t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i);if(t){const e=Number.parseFloat(t[4]);return[(Number.parseFloat(t[1])%360+360)%360,Kr(Number.parseFloat(t[2]),0,100),Kr(Number.parseFloat(t[3]),0,100),Kr(Number.isNaN(e)?1:e,0,1)]}return null},Pr.get.hwb=function(e){if(!e)return null;const t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i);if(t){const e=Number.parseFloat(t[4]);return[(Number.parseFloat(t[1])%360+360)%360,Kr(Number.parseFloat(t[2]),0,100),Kr(Number.parseFloat(t[3]),0,100),Kr(Number.isNaN(e)?1:e,0,1)]}return null},Pr.to.hex=function(...e){return"#"+$r(e[0])+$r(e[1])+$r(e[2])+(e[3]<1?$r(Math.round(255*e[3])):"")},Pr.to.rgb=function(...e){return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},Pr.to.rgb.percent=function(...e){const t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+a+"%)":"rgba("+t+"%, "+n+"%, "+a+"%, "+e[3]+")"},Pr.to.hsl=function(...e){return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},Pr.to.hwb=function(...e){let t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},Pr.to.keyword=function(...e){return Hr[e.slice(0,3)]};const qr={};for(const e of Object.keys(Tr))qr[Tr[e]]=e;const eo={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},to=(6/29)**3;function no(e){const t=e>.0031308?1.055*e**(1/2.4)-.055:12.92*e;return Math.min(Math.max(0,t),1)}function ao(e){return e>.04045?((e+.055)/1.055)**2.4:e/12.92}for(const e of Object.keys(eo)){if(!("channels"in eo[e]))throw new Error("missing channels property: "+e);if(!("labels"in eo[e]))throw new Error("missing channel labels property: "+e);if(eo[e].labels.length!==eo[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=eo[e];delete eo[e].channels,delete eo[e].labels,Object.defineProperty(eo[e],"channels",{value:t}),Object.defineProperty(eo[e],"labels",{value:n})}function ro(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}function oo(e){const t=function(){const e={},t=Object.keys(eo);for(let{length:n}=t,a=0;a<n;a++)e[t[a]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length>0;){const e=n.pop(),a=Object.keys(eo[e]);for(let{length:r}=a,o=0;o<r;o++){const r=a[o],i=t[r];-1===i.distance&&(i.distance=t[e].distance+1,i.parent=e,n.unshift(r))}}return t}function io(e,t){return function(n){return t(e(n))}}function lo(e,t){const n=[t[e].parent,e];let a=eo[t[e].parent][e],r=t[e].parent;for(;t[r].parent;)n.unshift(t[r].parent),a=io(eo[t[r].parent][r],a),r=t[r].parent;return a.conversion=n,a}function so(e){const t=oo(e),n={},a=Object.keys(t);for(let{length:e}=a,r=0;r<e;r++){const e=a[r];null!==t[e].parent&&(n[e]=lo(e,t))}return n}eo.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.min(t,n,a),o=Math.max(t,n,a),i=o-r;let l,s;switch(o){case r:l=0;break;case t:l=(n-a)/i;break;case n:l=2+(a-t)/i;break;case a:l=4+(t-n)/i}l=Math.min(60*l,360),l<0&&(l+=360);const c=(r+o)/2;return s=o===r?0:c<=.5?i/(o+r):i/(2-o-r),[l,100*s,100*c]},eo.rgb.hsv=function(e){let t,n,a,r,o;const i=e[0]/255,l=e[1]/255,s=e[2]/255,c=Math.max(i,l,s),u=c-Math.min(i,l,s),d=function(e){return(c-e)/6/u+.5};if(0===u)r=0,o=0;else{switch(o=u/c,t=d(i),n=d(l),a=d(s),c){case i:r=a-n;break;case l:r=1/3+t-a;break;case s:r=2/3+n-t}r<0?r+=1:r>1&&(r-=1)}return[360*r,100*o,100*c]},eo.rgb.hwb=function(e){const t=e[0],n=e[1];let a=e[2];const r=eo.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,a));return a=1-1/255*Math.max(t,Math.max(n,a)),[r,100*o,100*a]},eo.rgb.oklab=function(e){const t=ao(e[0]/255),n=ao(e[1]/255),a=ao(e[2]/255),r=Math.cbrt(.4122214708*t+.5363325363*n+.0514459929*a),o=Math.cbrt(.2119034982*t+.6806995451*n+.1073969566*a),i=Math.cbrt(.0883024619*t+.2817188376*n+.6299787005*a);return[100*(.2104542553*r+.793617785*o-.0040720468*i),100*(1.9779984951*r-2.428592205*o+.4505937099*i),100*(.0259040371*r+.7827717662*o-.808675766*i)]},eo.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.min(1-t,1-n,1-a);return[100*((1-t-r)/(1-r)||0),100*((1-n-r)/(1-r)||0),100*((1-a-r)/(1-r)||0),100*r]},eo.rgb.keyword=function(e){const t=qr[e];if(t)return t;let n,a=Number.POSITIVE_INFINITY;for(const t of Object.keys(Tr)){const r=ro(e,Tr[t]);r<a&&(a=r,n=t)}return n},eo.keyword.rgb=function(e){return[...Tr[e]]},eo.rgb.xyz=function(e){const t=ao(e[0]/255),n=ao(e[1]/255),a=ao(e[2]/255);return[100*(.4124564*t+.3575761*n+.1804375*a),100*(.2126729*t+.7151522*n+.072175*a),100*(.0193339*t+.119192*n+.9503041*a)]},eo.rgb.lab=function(e){const t=eo.rgb.xyz(e);let n=t[0],a=t[1],r=t[2];n/=95.047,a/=100,r/=108.883,n=n>to?n**(1/3):7.787*n+16/116,a=a>to?a**(1/3):7.787*a+16/116,r=r>to?r**(1/3):7.787*r+16/116;return[116*a-16,500*(n-a),200*(a-r)]},eo.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,a=e[2]/100;let r,o;if(0===n)return o=255*a,[o,o,o];const i=a<.5?a*(1+n):a+n-a*n,l=2*a-i,s=[0,0,0];for(let e=0;e<3;e++)r=t+1/3*-(e-1),r<0&&r++,r>1&&r--,o=6*r<1?l+6*(i-l)*r:2*r<1?i:3*r<2?l+(i-l)*(2/3-r)*6:l,s[e]=255*o;return s},eo.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,a=e[2]/100,r=n;const o=Math.max(a,.01);a*=2,n*=a<=1?a:2-a,r*=o<=1?o:2-o;return[t,100*(0===a?2*r/(o+r):2*n/(a+n)),100*((a+n)/2)]},eo.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let a=e[2]/100;const r=Math.floor(t)%6,o=t-Math.floor(t),i=255*a*(1-n),l=255*a*(1-n*o),s=255*a*(1-n*(1-o));switch(a*=255,r){case 0:return[a,s,i];case 1:return[l,a,i];case 2:return[i,a,s];case 3:return[i,l,a];case 4:return[s,i,a];case 5:return[a,i,l]}},eo.hsv.hsl=function(e){const t=e[0],n=e[1]/100,a=e[2]/100,r=Math.max(a,.01);let o,i;i=(2-n)*a;const l=(2-n)*r;return o=n*r,o/=l<=1?l:2-l,o=o||0,i/=2,[t,100*o,100*i]},eo.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,a=e[2]/100;const r=n+a;let o;r>1&&(n/=r,a/=r);const i=Math.floor(6*t),l=1-a;o=6*t-i,1&i&&(o=1-o);const s=n+o*(l-n);let c,u,d;switch(i){default:case 6:case 0:c=l,u=s,d=n;break;case 1:c=s,u=l,d=n;break;case 2:c=n,u=l,d=s;break;case 3:c=n,u=s,d=l;break;case 4:c=s,u=n,d=l;break;case 5:c=l,u=n,d=s}return[255*c,255*u,255*d]},eo.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,a*(1-r)+r))]},eo.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100;let r,o,i;return r=3.2404542*t+-1.5371385*n+-.4985314*a,o=-.969266*t+1.8760108*n+.041556*a,i=.0556434*t+-.2040259*n+1.0572252*a,r=no(r),o=no(o),i=no(i),[255*r,255*o,255*i]},eo.xyz.lab=function(e){let t=e[0],n=e[1],a=e[2];t/=95.047,n/=100,a/=108.883,t=t>to?t**(1/3):7.787*t+16/116,n=n>to?n**(1/3):7.787*n+16/116,a=a>to?a**(1/3):7.787*a+16/116;return[116*n-16,500*(t-n),200*(n-a)]},eo.xyz.oklab=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100,r=Math.cbrt(.8189330101*t+.3618667424*n-.1288597137*a),o=Math.cbrt(.0329845436*t+.9293118715*n+.0361456387*a),i=Math.cbrt(.0482003018*t+.2643662691*n+.633851707*a);return[100*(.2104542553*r+.793617785*o-.0040720468*i),100*(1.9779984951*r-2.428592205*o+.4505937099*i),100*(.0259040371*r+.7827717662*o-.808675766*i)]},eo.oklab.oklch=function(e){return eo.lab.lch(e)},eo.oklab.xyz=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100,r=(.999999998*t+.396337792*n+.215803758*a)**3,o=(1.000000008*t-.105561342*n-.063854175*a)**3,i=(1.000000055*t-.089484182*n-1.291485538*a)**3;return[100*(1.227013851*r-.55779998*o+.281256149*i),100*(-.040580178*r+1.11225687*o-.071676679*i),100*(-.076381285*r-.421481978*o+1.58616322*i)]},eo.oklab.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100,r=(t+.3963377774*n+.2158037573*a)**3,o=(t-.1055613458*n-.0638541728*a)**3,i=(t-.0894841775*n-1.291485548*a)**3;return[255*no(4.0767416621*r-3.3077115913*o+.2309699292*i),255*no(-1.2684380046*r+2.6097574011*o-.3413193965*i),255*no(-.0041960863*r-.7034186147*o+1.707614701*i)]},eo.oklch.oklab=function(e){return eo.lch.lab(e)},eo.lab.xyz=function(e){let t,n,a;n=(e[0]+16)/116,t=e[1]/500+n,a=n-e[2]/200;const r=n**3,o=t**3,i=a**3;return n=r>to?r:(n-16/116)/7.787,t=o>to?o:(t-16/116)/7.787,a=i>to?i:(a-16/116)/7.787,t*=95.047,n*=100,a*=108.883,[t,n,a]},eo.lab.lch=function(e){const t=e[0],n=e[1],a=e[2];let r;r=360*Math.atan2(a,n)/2/Math.PI,r<0&&(r+=360);return[t,Math.sqrt(n*n+a*a),r]},eo.lch.lab=function(e){const t=e[0],n=e[1],a=e[2]/360*2*Math.PI;return[t,n*Math.cos(a),n*Math.sin(a)]},eo.rgb.ansi16=function(e,t=null){const[n,a,r]=e;let o=null===t?eo.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),0===o)return 30;let i=30+(Math.round(r/255)<<2|Math.round(a/255)<<1|Math.round(n/255));return 2===o&&(i+=60),i},eo.hsv.ansi16=function(e){return eo.rgb.ansi16(eo.hsv.rgb(e),e[2])},eo.rgb.ansi256=function(e){const t=e[0],n=e[1],a=e[2];if(t>>4==n>>4&&n>>4==a>>4)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(a/255*5)},eo.ansi16.rgb=function(e){let t=(e=e[0])%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(Math.trunc(e>50)+1);return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},eo.ansi256.rgb=function(e){if((e=e[0])>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},eo.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".slice(t.length)+t},eo.hex.rgb=function(e){const t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=[...n].map(e=>e+e).join(""));const a=Number.parseInt(n,16);return[a>>16&255,a>>8&255,255&a]},eo.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.max(Math.max(t,n),a),o=Math.min(Math.min(t,n),a),i=r-o;let l;return l=i<=0?0:r===t?(n-a)/i%6:r===n?2+(a-t)/i:4+(t-n)/i,l/=6,l%=1,[360*l,100*i,100*(i<1?o/(1-i):0)]},eo.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,a=n<.5?2*t*n:2*t*(1-n);let r=0;return a<1&&(r=(n-.5*a)/(1-a)),[e[0],100*a,100*r]},eo.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,a=t*n;let r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],100*a,100*r]},eo.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,a=e[2]/100;if(0===n)return[255*a,255*a,255*a];const r=[0,0,0],o=t%1*6,i=o%1,l=1-i;let s=0;switch(Math.floor(o)){case 0:r[0]=1,r[1]=i,r[2]=0;break;case 1:r[0]=l,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=i;break;case 3:r[0]=0,r[1]=l,r[2]=1;break;case 4:r[0]=i,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=l}return s=(1-n)*a,[255*(n*r[0]+s),255*(n*r[1]+s),255*(n*r[2]+s)]},eo.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let a=0;return n>0&&(a=t/n),[e[0],100*a,100*n]},eo.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let a=0;return n>0&&n<.5?a=t/(2*n):n>=.5&&n<1&&(a=t/(2*(1-n))),[e[0],100*a,100*n]},eo.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},eo.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,a=n-t;let r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],100*a,100*r]},eo.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},eo.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},eo.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},eo.gray.hsl=function(e){return[0,0,e[0]]},eo.gray.hsv=eo.gray.hsl,eo.gray.hwb=function(e){return[0,100,e[0]]},eo.gray.cmyk=function(e){return[0,0,0,e[0]]},eo.gray.lab=function(e){return[e[0],0,0]},eo.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(n.length)+n},eo.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const co={},uo=Object.keys(eo);function bo(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function mo(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const a=e(t);if("object"==typeof a)for(let{length:e}=a,t=0;t<e;t++)a[t]=Math.round(a[t]);return a};return"conversion"in e&&(t.conversion=e.conversion),t}for(const e of uo){co[e]={},Object.defineProperty(co[e],"channels",{value:eo[e].channels}),Object.defineProperty(co[e],"labels",{value:eo[e].labels});const t=so(e),n=Object.keys(t);for(const a of n){const n=t[a];co[e][a]=mo(n),co[e][a].raw=bo(n)}}const ho=["keyword","gray","hex"],fo={};for(const e of Object.keys(co))fo[[...co[e].labels].sort().join("")]=e;const go={};function po(e,t){if(!(this instanceof po))return new po(e,t);if(t&&t in ho&&(t=null),t&&!(t in co))throw new Error("Unknown model: "+t);let n,a;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof po)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=Pr.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,a=co[this.model].channels,this.color=t.value.slice(0,a),this.valpha="number"==typeof t.value[a]?t.value[a]:1}else if(e.length>0){this.model=t||"rgb",a=co[this.model].channels;const n=Array.prototype.slice.call(e,0,a);this.color=Go(n,a),this.valpha="number"==typeof e[a]?e[a]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const a=t.sort().join("");if(!(a in fo))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=fo[a];const{labels:r}=co[this.model],o=[];for(n=0;n<r.length;n++)o.push(e[r[n]]);this.color=Go(o)}if(go[this.model])for(a=co[this.model].channels,n=0;n<a;n++){const e=go[this.model][n];e&&(this.color[n]=e(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}po.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Pr.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const n=1===t.valpha?t.color:[...t.color,this.valpha];return Pr.to[t.model](...n)},percentString(e){const t=this.rgb().round("number"==typeof e?e:1),n=1===t.valpha?t.color:[...t.color,this.valpha];return Pr.to.rgb.percent(...n)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=co[this.model],{labels:n}=co[this.model];for(let a=0;a<t;a++)e[n[a]]=this.color[a];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new po([...this.color.map(xo(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new po([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:yo("rgb",0,vo(255)),green:yo("rgb",1,vo(255)),blue:yo("rgb",2,vo(255)),hue:yo(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:yo("hsl",1,vo(100)),lightness:yo("hsl",2,vo(100)),saturationv:yo("hsv",1,vo(100)),value:yo("hsv",2,vo(100)),chroma:yo("hcg",1,vo(100)),gray:yo("hcg",2,vo(100)),white:yo("hwb",1,vo(100)),wblack:yo("hwb",2,vo(100)),cyan:yo("cmyk",0,vo(100)),magenta:yo("cmyk",1,vo(100)),yellow:yo("cmyk",2,vo(100)),black:yo("cmyk",3,vo(100)),x:yo("xyz",0,vo(95.047)),y:yo("xyz",1,vo(100)),z:yo("xyz",2,vo(108.833)),l:yo("lab",0,vo(100)),a:yo("lab",1),b:yo("lab",2),keyword(e){return void 0!==e?new po(e):co[this.model].keyword(this.color)},hex(e){return void 0!==e?new po(e):Pr.to.hex(...this.rgb().round().color)},hexa(e){if(void 0!==e)return new po(e);const t=this.rgb().round().color;let n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),Pr.to.hex(...t)+n},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[n,a]of e.entries()){const e=a/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return po.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),a=this.rgb(),r=void 0===t?.5:t,o=2*r-1,i=n.alpha()-a.alpha(),l=((o*i===-1?o:(o+i)/(1+o*i))+1)/2,s=1-l;return po.rgb(l*n.red()+s*a.red(),l*n.green()+s*a.green(),l*n.blue()+s*a.blue(),n.alpha()*r+a.alpha()*(1-r))}};for(const e of Object.keys(co)){if(ho.includes(e))continue;const{channels:t}=co[e];po.prototype[e]=function(...t){return this.model===e?new po(this):t.length>0?new po(t,e):new po([...(n=co[this.model][e].raw(this.color),Array.isArray(n)?n:[n]),this.valpha],e);var n},po[e]=function(...n){let a=n[0];return"number"==typeof a&&(a=Go(n,t)),new po(a,e)}}function xo(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function yo(e,t,n){e=Array.isArray(e)?e:[e];for(const a of e)(go[a]||=[])[t]=n;return e=e[0],function(a){let r;return void 0!==a?(n&&(a=n(a)),r=this[e](),r.color[t]=a,r):(r=this[e]().color[t],n&&(r=n(r)),r)}}function vo(e){return function(t){return Math.max(0,Math.min(e,t))}}function Go(e,t){for(let n=0;n<t;n++)"number"!=typeof e[n]&&(e[n]=0);return e}function Qo(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Io(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Bo(e){let t,n,a;function r(e,a,r=0,o=e.length){if(r<o){if(0!==t(a,a))return o;do{const t=r+o>>>1;n(e[t],a)<0?r=t+1:o=t}while(r<o)}return r}return 2!==e.length?(t=Qo,n=(t,n)=>Qo(e(t),n),a=(t,n)=>e(t)-n):(t=e===Qo||e===Io?e:Fo,n=e,a=e),{left:r,center:function(e,t,n=0,o=e.length){const i=r(e,t,n,o-1);return i>n&&a(e[i-1],t)>-a(e[i],t)?i-1:i},right:function(e,a,r=0,o=e.length){if(r<o){if(0!==t(a,a))return o;do{const t=r+o>>>1;n(e[t],a)<=0?r=t+1:o=t}while(r<o)}return r}}}function Fo(){return 0}const Zo=Bo(Qo).right;Bo(function(e){return null===e?NaN:+e}).center;const wo=Math.sqrt(50),No=Math.sqrt(10),Lo=Math.sqrt(2);function Wo(e,t,n){const a=(t-e)/Math.max(0,n),r=Math.floor(Math.log10(a)),o=a/Math.pow(10,r),i=o>=wo?10:o>=No?5:o>=Lo?2:1;let l,s,c;return r<0?(c=Math.pow(10,-r)/i,l=Math.round(e*c),s=Math.round(t*c),l/c<e&&++l,s/c>t&&--s,c=-c):(c=Math.pow(10,r)*i,l=Math.round(e/c),s=Math.round(t/c),l*c<e&&++l,s*c>t&&--s),s<l&&.5<=n&&n<2?Wo(e,t,2*n):[l,s,c]}function Co(e,t,n){return Wo(e=+e,t=+t,n=+n)[2]}function Xo(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Ro(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ko(e,t){var n=Object.create(e.prototype);for(var a in t)n[a]=t[a];return n}function Uo(){}var Do=.7,_o=1/Do,Yo="\\s*([+-]?\\d+)\\s*",jo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",So=/^#([0-9a-f]{3,8})$/,Mo=new RegExp(`^rgb\\(${Yo},${Yo},${Yo}\\)$`),Jo=new RegExp(`^rgb\\(${Vo},${Vo},${Vo}\\)$`),Oo=new RegExp(`^rgba\\(${Yo},${Yo},${Yo},${jo}\\)$`),Ao=new RegExp(`^rgba\\(${Vo},${Vo},${Vo},${jo}\\)$`),Eo=new RegExp(`^hsl\\(${jo},${Vo},${Vo}\\)$`),zo=new RegExp(`^hsla\\(${jo},${Vo},${Vo},${jo}\\)$`),To={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ho(){return this.rgb().formatHex()}function Po(){return this.rgb().formatRgb()}function Ko(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=So.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?$o(t):3===n?new ti(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?qo(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?qo(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Mo.exec(e))?new ti(t[1],t[2],t[3],1):(t=Jo.exec(e))?new ti(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Oo.exec(e))?qo(t[1],t[2],t[3],t[4]):(t=Ao.exec(e))?qo(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Eo.exec(e))?li(t[1],t[2]/100,t[3]/100,1):(t=zo.exec(e))?li(t[1],t[2]/100,t[3]/100,t[4]):To.hasOwnProperty(e)?$o(To[e]):"transparent"===e?new ti(NaN,NaN,NaN,0):null}function $o(e){return new ti(e>>16&255,e>>8&255,255&e,1)}function qo(e,t,n,a){return a<=0&&(e=t=n=NaN),new ti(e,t,n,a)}function ei(e,t,n,a){return 1===arguments.length?function(e){return e instanceof Uo||(e=Ko(e)),e?new ti((e=e.rgb()).r,e.g,e.b,e.opacity):new ti}(e):new ti(e,t,n,null==a?1:a)}function ti(e,t,n,a){this.r=+e,this.g=+t,this.b=+n,this.opacity=+a}function ni(){return`#${ii(this.r)}${ii(this.g)}${ii(this.b)}`}function ai(){const e=ri(this.opacity);return`${1===e?"rgb(":"rgba("}${oi(this.r)}, ${oi(this.g)}, ${oi(this.b)}${1===e?")":`, ${e})`}`}function ri(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function oi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ii(e){return((e=oi(e))<16?"0":"")+e.toString(16)}function li(e,t,n,a){return a<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ci(e,t,n,a)}function si(e){if(e instanceof ci)return new ci(e.h,e.s,e.l,e.opacity);if(e instanceof Uo||(e=Ko(e)),!e)return new ci;if(e instanceof ci)return e;var t=(e=e.rgb()).r/255,n=e.g/255,a=e.b/255,r=Math.min(t,n,a),o=Math.max(t,n,a),i=NaN,l=o-r,s=(o+r)/2;return l?(i=t===o?(n-a)/l+6*(n<a):n===o?(a-t)/l+2:(t-n)/l+4,l/=s<.5?o+r:2-o-r,i*=60):l=s>0&&s<1?0:i,new ci(i,l,s,e.opacity)}function ci(e,t,n,a){this.h=+e,this.s=+t,this.l=+n,this.opacity=+a}function ui(e){return(e=(e||0)%360)<0?e+360:e}function di(e){return Math.max(0,Math.min(1,e||0))}function bi(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ro(Uo,Ko,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ho,formatHex:Ho,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return si(this).formatHsl()},formatRgb:Po,toString:Po}),Ro(ti,ei,ko(Uo,{brighter(e){return e=null==e?_o:Math.pow(_o,e),new ti(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Do:Math.pow(Do,e),new ti(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ti(oi(this.r),oi(this.g),oi(this.b),ri(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ni,formatHex:ni,formatHex8:function(){return`#${ii(this.r)}${ii(this.g)}${ii(this.b)}${ii(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ai,toString:ai})),Ro(ci,function(e,t,n,a){return 1===arguments.length?si(e):new ci(e,t,n,null==a?1:a)},ko(Uo,{brighter(e){return e=null==e?_o:Math.pow(_o,e),new ci(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Do:Math.pow(Do,e),new ci(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,a=n+(n<.5?n:1-n)*t,r=2*n-a;return new ti(bi(e>=240?e-240:e+120,r,a),bi(e,r,a),bi(e<120?e+240:e-120,r,a),this.opacity)},clamp(){return new ci(ui(this.h),di(this.s),di(this.l),ri(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ri(this.opacity);return`${1===e?"hsl(":"hsla("}${ui(this.h)}, ${100*di(this.s)}%, ${100*di(this.l)}%${1===e?")":`, ${e})`}`}}));var mi=e=>()=>e;function hi(e){return 1===(e=+e)?fi:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(a){return Math.pow(e+a*t,n)}}(t,n,e):mi(isNaN(t)?n:t)}}function fi(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):mi(isNaN(e)?t:e)}var gi=function e(t){var n=hi(t);function a(e,t){var a=n((e=ei(e)).r,(t=ei(t)).r),r=n(e.g,t.g),o=n(e.b,t.b),i=fi(e.opacity,t.opacity);return function(t){return e.r=a(t),e.g=r(t),e.b=o(t),e.opacity=i(t),e+""}}return a.gamma=e,a}(1);function pi(e,t){t||(t=[]);var n,a=e?Math.min(t.length,e.length):0,r=t.slice();return function(o){for(n=0;n<a;++n)r[n]=e[n]*(1-o)+t[n]*o;return r}}function xi(e,t){var n,a=t?t.length:0,r=e?Math.min(a,e.length):0,o=new Array(r),i=new Array(a);for(n=0;n<r;++n)o[n]=Fi(e[n],t[n]);for(;n<a;++n)i[n]=t[n];return function(e){for(n=0;n<r;++n)i[n]=o[n](e);return i}}function yi(e,t){var n=new Date;return e=+e,t=+t,function(a){return n.setTime(e*(1-a)+t*a),n}}function vi(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Gi(e,t){var n,a={},r={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?a[n]=Fi(e[n],t[n]):r[n]=t[n];return function(e){for(n in a)r[n]=a[n](e);return r}}var Qi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ii=new RegExp(Qi.source,"g");function Bi(e,t){var n,a,r,o=Qi.lastIndex=Ii.lastIndex=0,i=-1,l=[],s=[];for(e+="",t+="";(n=Qi.exec(e))&&(a=Ii.exec(t));)(r=a.index)>o&&(r=t.slice(o,r),l[i]?l[i]+=r:l[++i]=r),(n=n[0])===(a=a[0])?l[i]?l[i]+=a:l[++i]=a:(l[++i]=null,s.push({i:i,x:vi(n,a)})),o=Ii.lastIndex;return o<t.length&&(r=t.slice(o),l[i]?l[i]+=r:l[++i]=r),l.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var n,a=0;a<t;++a)l[(n=s[a]).i]=n.x(e);return l.join("")})}function Fi(e,t){var n,a=typeof t;return null==t||"boolean"===a?mi(t):("number"===a?vi:"string"===a?(n=Ko(t))?(t=n,gi):Bi:t instanceof Ko?gi:t instanceof Date?yi:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?pi:Array.isArray(t)?xi:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Gi:vi)(e,t)}function Zi(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function wi(e){return+e}var Ni=[0,1];function Li(e){return e}function Wi(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Ci(e,t,n){var a=e[0],r=e[1],o=t[0],i=t[1];return r<a?(a=Wi(r,a),o=n(i,o)):(a=Wi(a,r),o=n(o,i)),function(e){return o(a(e))}}function Xi(e,t,n){var a=Math.min(e.length,t.length)-1,r=new Array(a),o=new Array(a),i=-1;for(e[a]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<a;)r[i]=Wi(e[i],e[i+1]),o[i]=n(t[i],t[i+1]);return function(t){var n=Zo(e,t,1,a)-1;return o[n](r[n](t))}}function Ri(){var e,t,n,a,r,o,i=Ni,l=Ni,s=Fi,c=Li;function u(){var e=Math.min(i.length,l.length);return c!==Li&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(i[0],i[e-1])),a=e>2?Xi:Ci,r=o=null,d}function d(t){return null==t||isNaN(t=+t)?n:(r||(r=a(i.map(e),l,s)))(e(c(t)))}return d.invert=function(n){return c(t((o||(o=a(l,i.map(e),vi)))(n)))},d.domain=function(e){return arguments.length?(i=Array.from(e,wi),u()):i.slice()},d.range=function(e){return arguments.length?(l=Array.from(e),u()):l.slice()},d.rangeRound=function(e){return l=Array.from(e),s=Zi,u()},d.clamp=function(e){return arguments.length?(c=!!e||Li,u()):c!==Li},d.interpolate=function(e){return arguments.length?(s=e,u()):s},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,a){return e=n,t=a,u()}}function ki(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,a=e.slice(0,n);return[a.length>1?a[0]+a.slice(2):a,+e.slice(n+1)]}function Ui(e){return(e=ki(Math.abs(e)))?e[1]:NaN}var Di,_i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Yi(e){if(!(t=_i.exec(e)))throw new Error("invalid format: "+e);var t;return new ji({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function ji(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Vi(e,t){var n=ki(e,t);if(!n)return e+"";var a=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+a:a.length>r+1?a.slice(0,r+1)+"."+a.slice(r+1):a+new Array(r-a.length+2).join("0")}Yi.prototype=ji.prototype,ji.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Si={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Vi(100*e,t),r:Vi,s:function(e,t){var n=ki(e,t);if(!n)return e+"";var a=n[0],r=n[1],o=r-(Di=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,i=a.length;return o===i?a:o>i?a+new Array(o-i+1).join("0"):o>0?a.slice(0,o)+"."+a.slice(o):"0."+new Array(1-o).join("0")+ki(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Mi(e){return e}var Ji,Oi,Ai,Ei=Array.prototype.map,zi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ti(e){var t,n,a=void 0===e.grouping||void 0===e.thousands?Mi:(t=Ei.call(e.grouping,Number),n=e.thousands+"",function(e,a){for(var r=e.length,o=[],i=0,l=t[0],s=0;r>0&&l>0&&(s+l+1>a&&(l=Math.max(1,a-s)),o.push(e.substring(r-=l,r+l)),!((s+=l+1)>a));)l=t[i=(i+1)%t.length];return o.reverse().join(n)}),r=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",i=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?Mi:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(Ei.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=Yi(e)).fill,n=e.align,d=e.sign,b=e.symbol,m=e.zero,h=e.width,f=e.comma,g=e.precision,p=e.trim,x=e.type;"n"===x?(f=!0,x="g"):Si[x]||(void 0===g&&(g=12),p=!0,x="g"),(m||"0"===t&&"="===n)&&(m=!0,t="0",n="=");var y="$"===b?r:"#"===b&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",v="$"===b?o:/[%p]/.test(x)?s:"",G=Si[x],Q=/[defgprs%]/.test(x);function I(e){var r,o,s,b=y,I=v;if("c"===x)I=G(e)+I,e="";else{var B=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:G(Math.abs(e),g),p&&(e=function(e){e:for(var t,n=e.length,a=1,r=-1;a<n;++a)switch(e[a]){case".":r=t=a;break;case"0":0===r&&(r=a),t=a;break;default:if(!+e[a])break e;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(t+1):e}(e)),B&&0===+e&&"+"!==d&&(B=!1),b=(B?"("===d?d:c:"-"===d||"("===d?"":d)+b,I=("s"===x?zi[8+Di/3]:"")+I+(B&&"("===d?")":""),Q)for(r=-1,o=e.length;++r<o;)if(48>(s=e.charCodeAt(r))||s>57){I=(46===s?i+e.slice(r+1):e.slice(r))+I,e=e.slice(0,r);break}}f&&!m&&(e=a(e,1/0));var F=b.length+e.length+I.length,Z=F<h?new Array(h-F+1).join(t):"";switch(f&&m&&(e=a(Z+e,Z.length?h-I.length:1/0),Z=""),n){case"<":e=b+e+I+Z;break;case"=":e=b+Z+e+I;break;case"^":e=Z.slice(0,F=Z.length>>1)+b+e+I+Z.slice(F);break;default:e=Z+b+e+I}return l(e)}return g=void 0===g?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),I.toString=function(){return e+""},I}return{format:d,formatPrefix:function(e,t){var n=d(((e=Yi(e)).type="f",e)),a=3*Math.max(-8,Math.min(8,Math.floor(Ui(t)/3))),r=Math.pow(10,-a),o=zi[8+a/3];return function(e){return n(r*e)+o}}}}function Hi(e,t,n,a){var r,o=function(e,t,n){n=+n;const a=(t=+t)<(e=+e),r=a?Co(t,e,n):Co(e,t,n);return(a?-1:1)*(r<0?1/-r:r)}(e,t,n);switch((a=Yi(null==a?",f":a)).type){case"s":var i=Math.max(Math.abs(e),Math.abs(t));return null!=a.precision||isNaN(r=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ui(t)/3)))-Ui(Math.abs(e)))}(o,i))||(a.precision=r),Ai(a,i);case"":case"e":case"g":case"p":case"r":null!=a.precision||isNaN(r=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ui(t)-Ui(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(a.precision=r-("e"===a.type));break;case"f":case"%":null!=a.precision||isNaN(r=function(e){return Math.max(0,-Ui(Math.abs(e)))}(o))||(a.precision=r-2*("%"===a.type))}return Oi(a)}function Pi(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const a=t<e,[r,o,i]=a?Wo(t,e,n):Wo(e,t,n);if(!(o>=r))return[];const l=o-r+1,s=new Array(l);if(a)if(i<0)for(let e=0;e<l;++e)s[e]=(o-e)/-i;else for(let e=0;e<l;++e)s[e]=(o-e)*i;else if(i<0)for(let e=0;e<l;++e)s[e]=(r+e)/-i;else for(let e=0;e<l;++e)s[e]=(r+e)*i;return s}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var a=t();return Hi(a[0],a[a.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var a,r,o=t(),i=0,l=o.length-1,s=o[i],c=o[l],u=10;for(c<s&&(r=s,s=c,c=r,r=i,i=l,l=r);u-- >0;){if((r=Co(s,c,n))===a)return o[i]=s,o[l]=c,t(o);if(r>0)s=Math.floor(s/r)*r,c=Math.ceil(c/r)*r;else{if(!(r<0))break;s=Math.ceil(s*r)/r,c=Math.floor(c*r)/r}a=r}return e},e}function Ki(){var e=Ri()(Li,Li);return e.copy=function(){return t=e,Ki().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());var t},Xo.apply(e,arguments),Pi(e)}function $i(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 qi(e,t){return po.rgb(e,e,e).alpha(t)}function el(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 tl(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 nl(e){const{goodColor:t,neutralColor:n,badColor:a}=e,r=Ki().domain([-100,0,100]).range([t.rgb().toString(),n.rgb().toString(),a.rgb().toString()]);return e=>po(r(e).toString())}Ji=Ti({thousands:",",grouping:[3],currency:["$",""]}),Oi=Ji.format,Ai=Ji.formatPrefix,po.rgb(148,142,142),po.rgb(200,0,0),po.rgb(0,170,0),po("#48CE73");const al=new WeakMap,rl=new WeakMap,ol=new WeakMap,il=new WeakMap;const ll={collapsedLevelsSingular:"total (1 level collapsed)",collapsedLevelsPlural:"total ({n} levels collapsed)",isZh:!1};function sl(e){var t,n,a,r,o,i,l,s;const c=performance.now(),u=!1!==e.renderRects,d=!1!==e.renderText,b=null!==(t=e.renderMode)&&void 0!==t?t:"normal",m=e.timeBudgetMs,{canvas:h,fitMode:f,units:g,tickToX:p,levels:x,palette:y}=e,{numTicks:v,sampleRate:G,pxPerTick:Q}=e,{rangeMin:I,rangeMax:B}=e,{focusedNode:F,zoom:Z}=e,w=e.messages||ll,N=e.skipCanvasResize?h.width:function(e){if("clientWidth"in e&&"number"==typeof e.clientWidth)return e.clientWidth;return e.width}(h);if(e.skipCanvasResize||(h.width=N),I>=B)throw new Error("'rangeMin' should be strictly smaller than 'rangeMax'");const{format:L}=e,W=Br(L),C=h.getContext("2d");if(!C)throw new Error("Could not get ctx");const X=Z.mapOrElse(()=>0,e=>e.i),R=Yr(v,G,g),k=F.isJust,U=F.mapOrElse(()=>0,e=>e.i),D=k?Cr:0,_=!!e.highlightQuery&&e.highlightQuery.length>0,Y=Wr*(x.length-U)+(k?Cr:0);e.skipCanvasResize||(h.height=Y);const j="number"==typeof e.devicePixelRatio?e.devicePixelRatio:"undefined"!=typeof devicePixelRatio?devicePixelRatio:1;!e.skipDprScale&&j>1&&(h.width*=j,h.height*=j,C.scale(j,j)),C.textBaseline="middle",C.font="400 11.5px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace";const V=C.measureText("a").width,{names:S}=e,M=function(e){const t=al.get(e);if(t)return t;const n=new Map;return al.set(e,n),n}(h),J=_?function(e,t){const n=rl.get(e);if(n){const e=n.get(t);if(e)return e}const a=t.toLowerCase(),r=new Uint8Array(e.length);for(let t=1;t<e.length;t+=1){const n=e[t];n&&n.toLowerCase().includes(a)&&(r[t]=1)}const o=null!=n?n:new Map;return o.set(t,r),rl.set(e,o),r}(S,e.highlightQuery):null,O="single"===e.format?function(e,t,n){const a=`${t}|${n.name}`,r=ol.get(e);if(r){const e=r.get(a);if(e)return e}const o=new Array(e.length);for(let a=0;a<e.length;a+=1){const r=el(t,e[a]||"")||"";o[a]=tl(n,r)}const i=null!=r?r:new Map;return i.set(a,o),ol.set(e,i),o}(S,e.spyName,y):null,A="double"===e.format?nl({name:y.name,goodColor:y.goodColor,neutralColor:y.neutralColor,badColor:y.badColor}):null,E=(e,t)=>{const n=e[t+W.jName];return!(!n||n<0||!J)&&1===J[n]},z=null!==(n=e.startI)&&void 0!==n?n:0,T=null!==(a=e.startJ)&&void 0!==a?a:0;if(k&&"highlightOnly"!==b&&0===(null!==(r=e.levelStart)&&void 0!==r?r:0)&&0===z&&0===T){const e=v*Q;u&&(C.beginPath(),C.rect(0,0,v*Q,Cr),C.fillStyle=qi(200,1).rgb().string(),C.fill());const t=F.mapOrElse(()=>"total",e=>function(e,t){return 1===e?t.collapsedLevelsSingular:t.collapsedLevelsPlural.replace("{n}",String(e))}(e.i-1,w)),n=Ar({mode:f,charSize:V,rectWidth:e,fullText:t,shortText:t}),a=0,r=0,o=Cr;if(d){C.beginPath(),C.rect(0,0,e,Cr),C.save(),C.clip(),C.fillStyle="black";const t=Math.round(Math.max(a,0));C.fillText(n.text,t+n.marginLeft,r+o/2+1),C.restore()}}const H=Math.max(0,null!==(o=e.levelStart)&&void 0!==o?o:0),P=x.length-U,K=Math.min(P,null!==(i=e.levelEnd)&&void 0!==i?i:P),$=Math.max(H,null!==(l=e.startI)&&void 0!==l?l:H),q=Math.max(0,null!==(s=e.startJ)&&void 0!==s?s:0),{spyName:ee}=e,te=(t,n,a,r,o)=>{const i={level:t,j:n,i:a+F.mapOrElse(()=>0,e=>e.i),names:S,collapsed:r,selectedLevel:X,highlightModeOn:_,isHighlighted:o,spyName:ee,palette:y,colorByNameIndex:O,diffColorFn:A};switch(L){case"single":return function(e){const t=dl(e);if(t)return t;const n=Br("single"),a=e.selectedLevel>e.i?.33:1;let r=e.level[e.j+n.jName];void 0===r&&(console.warn("Could nto find level",{l:e.j,jName:n.jName,level:e.level}),r=-1);if(e.colorByNameIndex&&r>=0&&e.colorByNameIndex[r])return e.colorByNameIndex[r].alpha(a);const o=e.names[r]||"",i=el(e.spyName,o)||"";return tl(e.palette,i).alpha(a)}({...i});case"double":return function(e){const t=dl(e);if(t)return t;const n=e.selectedLevel>e.i?.33:1,{leftRatio:a,rightRatio:r}=function(e,t,n,a){const r=Ir;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=Dr(a),i=Dr(r);if(e.diffColorFn)return e.diffColorFn($i(o,i)).alpha(n);return function(e,t,n){const a=$i(t,n);return nl(e)(a)}(e.palette,o,i).alpha(n)}({...i,leftTicks:e.leftTicks,rightTicks:e.rightTicks});default:throw new Error(`Unsupported format: ${L}`)}};if("highlightOnly"===b&&_&&u){const e=function(e,t){const n=il.get(e);if(n)return n;const a=Br(t),r=new Map;for(let t=0;t<e.length;t+=1){const n=e[t];for(let e=0;e<n.length;e+=a.jStep){const o=a.getBarName(n,e);if(void 0===o||o<0)continue;const i=r.get(o);i?i.push({i:t,j:e}):r.set(o,[{i:t,j:e}])}}return il.set(e,r),r}(x,L),t=[];for(let e=1;e<S.length;e+=1)J&&1===J[e]&&t.push(e);for(let n=0;n<t.length;n+=1){const a=t[n],r=e.get(a);if(r)for(let e=0;e<r.length;e+=1){const t=r[e],n=t.i-U;if(t.i<U||n<H||n>=K)continue;const a=x[t.i],o=p(W.getBarOffset(a,t.j)),i=n*Wr+D,l=Cr,s=W.getBarTotal(a,t.j),c=s*Q<=5,u=s*Q-(c?0:.5);if(u<=0)continue;C.beginPath(),C.rect(o,i,u,l);const d=te(a,t.j,n,c,!0);C.fillStyle=d.string(),C.fill()}}return{done:!0,nextI:K,nextJ:0}}for(let e=$;e<K;e+=1){const t=x[U+e];if(!t)throw new Error(`Could not find level: ${U+e}`);let n=e===$?q:0;for(;n<t.length;n+=W.jStep){const a=W.getBarOffset(t,n),r=p(a),o=e*Wr+D,i=Cr,l=_&&E(t,n);let s=W.getBarTotal(t,n);const h=s*Q<=5;if(h)for(;n<t.length-W.jStep&&a+s===W.getBarOffset(t,n+W.jStep)&&W.getBarTotal(t,n+W.jStep)*Q<=5&&l===(_&&E(t,n+W.jStep));)n+=W.jStep,s+=W.getBarTotal(t,n);const g=s*Q-(h?0:.5);if(C.beginPath(),C.rect(r,o,g,i),u){if("forceGrey"===b)C.fillStyle=qi(200,.66).rgb().string();else{const a=te(t,n,e,h,l);C.fillStyle=a.string()}C.fill()}if(!d||h||"forceGrey"===b){if(m&&performance.now()-c>m)return{done:!1,nextI:e,nextJ:n+W.jStep};continue}if(g<20)continue;const x=cl(S,n,L,t),y=Ar({mode:f,charSize:V,rectWidth:g,fullText:ul(x,s,G,R,w,M),shortText:x});C.save(),C.clip(),C.fillStyle="black";const v=Math.round(Math.max(r,0));if(C.fillText(y.text,v+y.marginLeft,o+i/2+1),C.restore(),m&&performance.now()-c>m)return{done:!1,nextI:e,nextJ:n+W.jStep}}if(m&&performance.now()-c>m)return{done:!1,nextI:e+1,nextJ:0}}return{done:!0,nextI:K,nextJ:0}}function cl(e,t,n,a){let r=a[t+Br(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 ul(e,t,n,a,r,o){let i=null==o?void 0:o.get(t);if(!i){const e=a.format(t,n);i=kr(e,!!r.isZh)||e,null==o||o.set(t,i)}return`${e} (${i})`}function dl({collapsed:e,highlightModeOn:t,isHighlighted:n}){return e||t&&!n?qi(200,.66):null}class bl{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)*Wr,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=Qr;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=Ir;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=Br(e.format),this.palette=i,this.messages=l,n.isJust&&o.isJust&&o.value.i<n.value.i)throw new Error("Zoom i level should be bigger than Focus")}render(e){var t;const{rangeMin:n,rangeMax:a,pxPerTick:r}=this.updateCachedMetrics(),o=null!==(t=null==e?void 0:e.highlightQueryOverride)&&void 0!==t?t:this.highlightQuery,i={canvas:this.canvas,format:this.flamebearer.format,numTicks:this.flamebearer.numTicks,sampleRate:this.flamebearer.sampleRate,names:this.flamebearer.names,levels:this.flamebearer.levels,spyName:this.flamebearer.spyName,units:this.flamebearer.units,maxSelf:this.flamebearer.maxSelf,rangeMin:n,rangeMax:a,fitMode:this.fitMode,highlightQuery:o,zoom:this.zoom,focusedNode:this.focusedNode,pxPerTick:r,tickToX:e=>(e-this.flamebearer.numTicks*n)*r,palette:this.palette,messages:this.messages,renderRects:null==e?void 0:e.renderRects,renderText:null==e?void 0:e.renderText,renderMode:null==e?void 0:e.renderMode,levelStart:null==e?void 0:e.levelStart,levelEnd:null==e?void 0:e.levelEnd,startI:null==e?void 0:e.startI,startJ:null==e?void 0:e.startJ,timeBudgetMs:null==e?void 0:e.timeBudgetMs,skipCanvasResize:null==e?void 0:e.skipCanvasResize,skipDprScale:null==e?void 0:e.skipDprScale,devicePixelRatio:null==e?void 0:e.devicePixelRatio},{format:l}=this.flamebearer;switch(l){case"single":return sl({...i,format:"single"});case"double":return sl({...i,leftTicks:this.flamebearer.leftTicks,rightTicks:this.flamebearer.rightTicks});default:throw new Error(`Invalid format: '${l}'`)}}pxPerTick(){if(null!==this.cachedPxPerTick)return this.cachedPxPerTick;const{rangeMin:e,rangeMax:t}=this.getRange(),n=this.getCanvasWidth()/this.flamebearer.numTicks/(t-e);return this.cachedRange={rangeMin:e,rangeMax:t},this.cachedPxPerTick=n,n}updateCachedMetrics(){const{rangeMin:e,rangeMax:t}=this.getRange(),n=this.getCanvasWidth()/this.flamebearer.numTicks/(t-e);return this.cachedRange={rangeMin:e,rangeMax:t},this.cachedPxPerTick=n,{rangeMin:e,rangeMax:t,pxPerTick:n}}getRange(){const{ff:e}=this,t=t=>{const n=this.flamebearer.levels[t.i];if(!n)throw new Error(`Could not find level: '${t.i}'`);return{rangeMin:e.getBarOffset(n,t.j)/this.flamebearer.numTicks,rangeMax:(e.getBarOffset(n,t.j)+e.getBarTotal(n,t.j))/this.flamebearer.numTicks}},n=t=>{const n=this.flamebearer.levels[t.i];if(!n)throw new Error(`Could not find level: '${t.i}'`);return{rangeMin:e.getBarOffset(n,t.j)/this.flamebearer.numTicks,rangeMax:(e.getBarOffset(n,t.j)+e.getBarTotal(n,t.j))/this.flamebearer.numTicks}},{zoom:a,focusedNode:r}=this;return a.match({Just:e=>r.match({Just:a=>{const r=n(a),o=t(e);return r.rangeMax-r.rangeMin<o.rangeMax-o.rangeMin?(console.warn("Focus is smaller than range, this shouldnt happen. Verify that the zoom is always bigger than the focus."),n(a)):t(e)},Nothing:()=>t(e)}),Nothing:()=>r.match({Just:e=>n(e),Nothing:()=>({rangeMin:0,rangeMax:1})})})}getCanvasWidth(){return"clientWidth"in this.canvas&&"number"==typeof this.canvas.clientWidth?this.canvas.clientWidth:this.canvas.width}isFocused(){return this.focusedNode.isJust}binarySearchLevel(e,t){const{ff:n}=this;let a=0,r=t.length-n.jStep;for(;a<=r;){const o=n.jStep*(a/n.jStep+r/n.jStep>>1),i=this.tickToX(n.getBarOffset(t,o)),l=this.tickToX(n.getBarOffset(t,o)+n.getBarTotal(t,o));if(i<=e&&l>=e)return l-i>5?o:-1;i>e?r=o-n.jStep:a=o+n.jStep}return-1}xyToBarIndex(e,t){if(e<0||t<0)throw new Error(`x and y must be bigger than 0. x = ${e}, y = ${t}`);if(this.isFocused()&&t<=Cr)return{i:0,j:0};const n=this.isFocused()?t-Cr: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/Wr)+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)?fr.of(n):fr.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 ml(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=ml(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function hl(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=ml(e))&&(a&&(a+=" "),a+=t);return a}var fl="NoData-module_noData__WuuID";function gl(){return e.jsx("div",{"data-testid":"no-data",className:fl,children:e.jsx("span",{children:"No data available"})})}s(".NoData-module_noData__WuuID{height:100%;padding:60px 0;text-align:center;width:100%}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk5vRGF0YS5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw2QkFFRSxXQUFZLENBRVosY0FBZSxDQURmLGlCQUFrQixDQUZsQixVQUlGIiwiZmlsZSI6Ik5vRGF0YS5tb2R1bGUuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5ub0RhdGEge1xuICB3aWR0aDogMTAwJTtcbiAgaGVpZ2h0OiAxMDAlO1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIHBhZGRpbmc6IDYwcHggMDtcbn0iXX0= */");var pl,xl,yl={},vl={};function Gl(){return pl||(pl=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}(vl)),vl}function Ql(){return xl||(xl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Gl();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}(yl)),yl}var Il,Bl=Ql(),Fl={};function Zl(){return Il||(Il=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}(Fl)),Fl}var wl,Nl=Zl(),Ll={};function Wl(){return wl||(wl=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}(Ll)),Ll}var Cl,Xl,Rl=Wl(),kl={},Ul={};function Dl(){return Cl||(Cl=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}(Ul)),Ul}function _l(){return Xl||(Xl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Dl();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}(kl)),kl}var Yl=_l();const jl=e=>!!e&&"o"===e[0],Vl=a.unstable_batchedUpdates,Sl=(e,t)=>!0===e||!(!e||!e[t]),Ml=(e,t)=>"function"==typeof e?e(t):e,Jl="_szhsinMenu",Ol=(e,t)=>Object.defineProperty(t,Jl,{value:e}),Al=(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),El=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 zl(e,t){return{"aria-disabled":e||void 0,tabIndex:t?0:-1}}function Tl(e,t){for(let n=0;n<e.length;n++)if(e[n]===t)return n;return-1}const Hl=({block:e,element:n,modifiers:a,className:r})=>t.useMemo(()=>{const t=n?`${e}__${n}`:e;let o=t;a&&Object.keys(a).forEach(e=>{const n=a[e];n&&(o+=` ${t}--${!0===n?e:`${e}-${n}`}`)});let i="function"==typeof r?r(a):r;return"string"==typeof i&&(i=i.trim(),i&&(o+=` ${i}`)),o},[e,n,a,r]),Pl="szh-menu",Kl=t.createContext(),$l=t.createContext({}),ql=t.createContext({}),es=t.createContext({}),ts=t.createContext({}),ns=t.createContext({}),as=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),rs=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),os=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),is=Object.freeze({FIRST:"first",LAST:"last"}),ls=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),ss="absolute",cs="none",us={preventScroll:!0},ds=Ol("MenuButton",t.forwardRef(function({className:n,isOpen:a,disabled:r,children:o,...i},l){const s=t.useMemo(()=>({open:a}),[a]);return e.jsx("button",{"aria-haspopup":!0,"aria-expanded":a,"aria-disabled":r||void 0,type:"button",disabled:r,...i,ref:l,className:Hl({block:"szh-menu-button",modifiers:s,className:n}),children:o})})),bs=({className:n,containerRef:a,containerProps:r,children:o,isOpen:i,theming:l,transition:s,onClose:c})=>{const u=Sl(s,"item");return e.jsx("div",{...Al({onKeyDown:({key:e})=>{if(e===as.ESC)Ml(c,{key:e,reason:os.CANCEL})},onBlur:e=>{i&&!e.currentTarget.contains(e.relatedTarget)&&Ml(c,{reason:os.BLUR})}},r),className:Hl({block:"szh-menu-container",modifiers:t.useMemo(()=>({theme:l,itemTransition:u}),[l,u]),className:n}),style:{position:"absolute",...r?.style},ref:a,children:o})},ms=()=>{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)}}},hs=(e,t)=>Math.round(e)===t?e:t,fs=(e,t,n,a)=>{const r=(e=>{const t=e.getBoundingClientRect();return t.width=hs(t.width,e.offsetWidth),t.height=hs(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,u=e=>e+o.top-i.top-l.top,d=e=>e+o.top+r.height-i.bottom+l.bottom;return{menuRect:r,containerRect:o,getLeftOverflow:s,getRightOverflow:c,getTopOverflow:u,getBottomOverflow:d,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=u(e);if(t<0)e-=t;else{const n=d(e);n>0&&(t=u(e-=n),t<0&&(e-=t))}return e}}},gs=({anchorRect:e,containerRect:t,menuRect:n,placeLeftorRightY:a,placeLeftX:r,placeRightX:o,getLeftOverflow:i,getRightOverflow:l,confineHorizontally:s,confineVertically:c,arrowRef:u,arrow:d,direction:b,position:m})=>{let h,f,g,p=b,x=a;"initial"!==m&&(x=c(x),"anchor"===m&&(x=Math.min(x,e.bottom-t.top),x=Math.max(x,e.top-t.top-n.height))),"left"===p?(h=r,"initial"!==m&&(f=i(h),f<0&&(g=l(o),(g<=0||-f>g)&&(h=o,p="right")))):(h=o,"initial"!==m&&(g=l(h),g>0&&(f=i(r),(f>=0||-f<g)&&(h=r,p="left")))),"auto"===m&&(h=s(h));const y=d?(({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:x,arrowRef:u,anchorRect:e,containerRect:t,menuRect:n}):void 0;return{arrowY:y,x:h,y:x,computedDirection:p}},ps=({anchorRect:e,containerRect:t,menuRect:n,placeToporBottomX:a,placeTopY:r,placeBottomY:o,getTopOverflow:i,getBottomOverflow:l,confineHorizontally:s,confineVertically:c,arrowRef:u,arrow:d,direction:b,position:m})=>{let h,f,g,p="top"===b?"top":"bottom",x=a;"initial"!==m&&(x=s(x),"anchor"===m&&(x=Math.min(x,e.right-t.left),x=Math.max(x,e.left-t.left-n.width))),"top"===p?(h=r,"initial"!==m&&(f=i(h),f<0&&(g=l(o),(g<=0||-f>g)&&(h=o,p="bottom")))):(h=o,"initial"!==m&&(g=l(h),g>0&&(f=i(r),(f>=0||-f<g)&&(h=r,p="top")))),"auto"===m&&(h=c(h));const y=d?(({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:x,arrowRef:u,anchorRect:e,containerRect:t,menuRect:n}):void 0;return{arrowX:y,x:x,y:h,computedDirection:p}},xs="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function ys(e,t){"function"==typeof e?e(t):e.current=t}const vs=(e,n)=>t.useMemo(()=>e?n?t=>{ys(e,t),ys(n,t)}:e:n,[e,n]),Gs=({ariaLabel:n,menuClassName:r,menuStyle:o,arrow:i,arrowProps:l={},anchorPoint:s,anchorRef:c,containerRef:u,containerProps:d,externalRef:b,parentScrollingRef:m,align:h="start",direction:f="bottom",position:g="auto",overflow:p="visible",setDownOverflow:x,repositionFlag:y,captureFocus:v=!0,state:G,endTransition:Q,isDisabled:I,menuItemFocus:B,gap:F=0,shift:Z=0,children:w,onClose:N,focusProps:L,...W})=>{const[C,X]=t.useState({x:-9999,y:-9999}),[R,k]=t.useState({}),[U,D]=t.useState(),[_,Y]=t.useState(f),[j]=t.useState(ms),[V,S]=t.useReducer(e=>e+1,1),{transition:M,boundingBoxRef:J,boundingBoxPadding:O,rootMenuRef:A,rootAnchorRef:E,scrollNodesRef:z,reposition:T,viewScroll:H,submenuCloseDelay:P}=t.useContext(ns),{submenuCtx:K,reposSubmenu:$=y}=t.useContext(ql),q=t.useRef(),ee=t.useRef(),te=t.useRef(!1),{hoverItem:ne,dispatch:ae,updateItems:re}=(e=>{const[n,a]=t.useState(),r=t.useRef({items:[],hoverIndex:-1,sorted:!1}).current,o=t.useCallback((t,n)=>{const{items:o}=r;if(t)if(n)o.push(t);else{const n=o.indexOf(t);n>-1&&(o.splice(n,1),t.contains(document.activeElement)&&(e.current.focus(us),a()))}else r.items=[];r.hoverIndex=-1,r.sorted=!1},[r,e]),i=t.useCallback((t,n,o)=>{const{items:i,hoverIndex:l}=r,s=()=>{if(r.sorted)return;const t=e.current.querySelectorAll(".szh-menu__item");i.sort((e,n)=>Tl(t,e)-Tl(t,n)),r.sorted=!0};let c,u=-1;switch(t){case rs.RESET:break;case rs.SET:c=n;break;case rs.UNSET:c=e=>e===n?void 0:e;break;case rs.FIRST:s(),u=0,c=i[u];break;case rs.LAST:s(),u=i.length-1,c=i[u];break;case rs.SET_INDEX:s(),u=o,c=i[u];break;case rs.INCREASE:s(),u=l,u<0&&(u=i.indexOf(n)),u++,u>=i.length&&(u=0),c=i[u];break;case rs.DECREASE:s(),u=l,u<0&&(u=i.indexOf(n)),u--,u<0&&(u=i.length-1),c=i[u];break;default:if("production"!==process.env.NODE_ENV)throw new Error(`[React-Menu] Unknown hover action type: ${t}`)}c||(u=-1),a(c),r.hoverIndex=u},[e,r]);return{hoverItem:n,dispatch:i,updateItems:o}})(q),oe=jl(G),ie=Sl(M,"open"),le=Sl(M,"close"),se=z.current,ce=t.useCallback(e=>{const t=q.current,n=u.current;if(!t||!n)return;const a=c?c.current?.getBoundingClientRect():s?{left:s.x,right:s.x,top:s.y,bottom:s.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."));se.menu||(se.menu=(J?J.current:El(A.current))||window);const r=fs(n,t,se.menu,O);let{arrowX:o,arrowY:l,x:d,y:b,computedDirection:m}=(({arrow:e,align:t,direction:n,gap:a,shift:r,position:o,anchorRect:i,arrowRef:l,positionHelpers:s})=>{const{menuRect:c,containerRect:u}=s,d="left"===n||"right"===n;let b=d?a:r,m=d?r:a;if(e){const e=l.current;d?b+=e.offsetWidth:m+=e.offsetHeight}const h=i.left-u.left-c.width-b,f=i.right-u.left+b,g=i.top-u.top-c.height-m,p=i.bottom-u.top+m;let x,y;"end"===t?(x=i.right-u.left-c.width,y=i.bottom-u.top-c.height):"center"===t?(x=i.left-u.left-(c.width-i.width)/2,y=i.top-u.top-(c.height-i.height)/2):(x=i.left-u.left,y=i.top-u.top),x+=b,y+=m;const v={...s,anchorRect:i,placeLeftX:h,placeRightX:f,placeLeftorRightY:y,placeTopY:g,placeBottomY:p,placeToporBottomX:x,arrowRef:l,arrow:e,direction:n,position:o};switch(n){case"left":case"right":return gs(v);default:return ps(v)}})({arrow:i,align:h,direction:f,gap:F,shift:Z,position:g,anchorRect:a,arrowRef:ee,positionHelpers:r});const{menuRect:x}=r,y=x.height;if(!e&&"visible"!==p){const{getTopOverflow:e,getBottomOverflow:t}=r;let n,a;const o=t(b);if(o>0)n=y-o,a=o;else{const t=e(b);t<0&&(n=y+t,a=0-t,n>=0&&(b-=t))}n>=0&&D({height:n,overflowAmt:a})}i&&k({x:o,y:l}),X({x:d,y:b}),Y(m)},[i,h,O,f,F,Z,g,p,s,c,u,J,A,se]);xs(()=>{oe&&(ce(),te.current&&S()),te.current=oe},[oe,ce,$]),xs(()=>{U&&!x&&(q.current.scrollTop=0)},[U,x]),xs(()=>re,[re]),t.useEffect(()=>{let{menu:e}=se;if(!oe||!e)return;if(e=e.addEventListener?e:window,!se.anchors){se.anchors=[];let t=El(E&&E.current);for(;t&&t!==e;)se.anchors.push(t),t=El(t)}let t=H;if(se.anchors.length&&"initial"===t&&(t="auto"),"initial"===t)return;const n=()=>{"auto"===t?Vl(()=>ce(!0)):Ml(N,{reason:os.SCROLL})},a=se.anchors.concat("initial"!==H?e:[]);return a.forEach(e=>e.addEventListener("scroll",n)),()=>a.forEach(e=>e.removeEventListener("scroll",n))},[E,se,oe,N,H,ce]);const ue=!!U&&U.overflowAmt>0;t.useEffect(()=>{if(ue||!oe||!m)return;const e=()=>Vl(ce),t=m.current;return t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)},[oe,ue,m,ce]),t.useEffect(()=>{if(!oe||"function"!=typeof ResizeObserver||"initial"===T)return;const e=[],t=new ResizeObserver(t=>t.forEach(({target:t})=>{e.indexOf(t)<0?e.push(t):a.flushSync(()=>{ce(),S()})})),n={box:"border-box"};t.observe(q.current,n);const r=c?.current;return r&&t.observe(r,n),()=>t.disconnect()},[oe,T,c,ce]),t.useEffect(()=>{if(!oe)return ae(rs.RESET),void(le||D());const{position:e,alwaysUpdate:t}=B||{},n=()=>{e===is.FIRST?ae(rs.FIRST):e===is.LAST?ae(rs.LAST):e>=-1&&ae(rs.SET_INDEX,void 0,e)};if(t)n();else if(v){const e=setTimeout(()=>{const e=q.current;e&&!e.contains(document.activeElement)&&(e.focus(us),n())},ie?170:100);return()=>clearTimeout(e)}},[oe,ie,le,v,B,ae]);const de=t.useMemo(()=>({isParentOpen:oe,submenuCtx:j,dispatch:ae,updateItems:re}),[oe,j,ae,re]);let be,me;U&&(x?me=U.overflowAmt:be=U.height);const he=t.useMemo(()=>({reposSubmenu:V,submenuCtx:j,overflow:p,overflowAmt:me,parentMenuRef:q,parentDir:_}),[V,j,p,me,_]),fe=be>=0?{maxHeight:be,overflow:p}:void 0,ge=t.useMemo(()=>({state:G,align:h,dir:_}),[G,h,_]),pe=t.useMemo(()=>({dir:_}),[_]),xe=Hl({block:Pl,element:"arrow",modifiers:pe,className:l.className}),ye=e.jsxs("ul",{role:"menu","aria-label":n,...zl(I),...Al({onPointerEnter:K?.off,onPointerMove:e=>{e.stopPropagation(),j.on(P,()=>{ae(rs.RESET),q.current.focus(us)})},onPointerLeave:e=>{e.target===e.currentTarget&&j.off()},onKeyDown:e=>{switch(e.key){case as.HOME:ae(rs.FIRST);break;case as.END:ae(rs.LAST);break;case as.UP:ae(rs.DECREASE,ne);break;case as.DOWN:ae(rs.INCREASE,ne);break;case as.SPACE:return void(e.target&&-1!==e.target.className.indexOf(Pl)&&e.preventDefault());default:return}e.preventDefault(),e.stopPropagation()},onAnimationEnd:()=>{"closing"===G&&D(),Ml(Q)}},W),ref:vs(b,q),className:Hl({block:Pl,modifiers:ge,className:r}),style:{...o,...fe,margin:0,display:"closed"===G?"none":void 0,position:ss,left:C.x,top:C.y},children:[i&&e.jsx("li",{"aria-hidden":!0,...l,className:xe,style:{display:"block",position:ss,left:R.x,top:R.y,...l.style},ref:ee}),e.jsx(ql.Provider,{value:he,children:e.jsx($l.Provider,{value:de,children:e.jsx(Kl.Provider,{value:ne,children:Ml(w,ge)})})})]});return d?e.jsx(bs,{...d,isOpen:oe,children:ye}):ye},Qs=t.forwardRef(function({"aria-label":n,className:r,containerProps:o,initialMounted:i,unmountOnClose:l,transition:s,transitionTimeout:c,boundingBoxRef:u,boundingBoxPadding:d,reposition:b="auto",submenuOpenDelay:m=300,submenuCloseDelay:h=150,viewScroll:f="initial",portal:g,theming:p,onItemClick:x,...y},v){const G=t.useRef(null),Q=t.useRef({}),{anchorRef:I,state:B,onClose:F}=y,Z=t.useMemo(()=>({initialMounted:i,unmountOnClose:l,transition:s,transitionTimeout:c,boundingBoxRef:u,boundingBoxPadding:d,rootMenuRef:G,rootAnchorRef:I,scrollNodesRef:Q,reposition:b,viewScroll:f,submenuOpenDelay:m,submenuCloseDelay:h}),[i,l,s,c,I,u,d,b,f,m,h]),w=t.useMemo(()=>({handleClick(e,t){e.stopPropagation||Ml(x,e);let n=e.keepOpen;void 0===n&&(n=t&&e.key===as.SPACE),n||Ml(F,{value:e.value,key:e.key,reason:os.CLICK})},handleClose(e){Ml(F,{key:e,reason:os.CLICK})}}),[x,F]);if(!B)return null;const N=e.jsx(ns.Provider,{value:Z,children:e.jsx(es.Provider,{value:w,children:e.jsx(Gs,{...y,ariaLabel:n||"Menu",externalRef:v,containerRef:G,containerProps:{className:r,containerRef:G,containerProps:o,theming:p,transition:s,onClose:F}})})});return!0===g&&"undefined"!=typeof document?a.createPortal(N,document.body):g?g.target?a.createPortal(N,g.target):g.stablePosition?null:N:N}),Is=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],Bs=e=>({_s:e,status:Is[e],isEnter:e<3,isMounted:6!==e,isResolved:2===e||e>4}),Fs=e=>e?6:5,Zs=(e,t,n,a,r)=>{clearTimeout(a.current);const o=Bs(e);t(o),n.current=o,r&&r({current:o})},ws=({enter:e=!0,exit:n=!0,preEnter:a,preExit:r,timeout:o,initialEntered:i,mountOnEnter:l,unmountOnExit:s,onStateChange:c}={})=>{const[u,d]=t.useState(()=>Bs(i?2:Fs(l))),b=t.useRef(u),m=t.useRef(),[h,f]=(e=>"object"==typeof e?[e.enter,e.exit]:[e,e])(o),g=t.useCallback(()=>{const e=((e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return Fs(t)}})(b.current._s,s);e&&Zs(e,d,b,m,c)},[c,s]);return[u,t.useCallback(t=>{const o=e=>{switch(Zs(e,d,b,m,c),e){case 1:h>=0&&(m.current=setTimeout(g,h));break;case 4:f>=0&&(m.current=setTimeout(g,f));break;case 0:case 3:m.current=((e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0))(o,e)}},i=b.current.isEnter;"boolean"!=typeof t&&(t=!i),t?!i&&o(e?a?0:1:2):i&&o(n?r?3:4:Fs(s))},[g,c,e,n,a,r,h,f,s]),g]},Ns=({initialOpen:e,initialMounted:n,unmountOnClose:a,transition:r,transitionTimeout:o=500,onMenuChange:i}={})=>{const l=Sl(r,"open"),s=Sl(r,"close"),[{status:c},u,d]=ws({initialEntered:e,mountOnEnter:!n,unmountOnExit:a,timeout:o,enter:l,exit:s,onStateChange:t.useCallback(({current:{isEnter:e,isResolved:t}})=>{!i||e&&l&&t||!e&&s&&t||i({open:e})},[i,l,s])});return[{state:ls[c],endTransition:d},u]},Ls=parseInt(t.version)<19,Ws=t.forwardRef(function({"aria-label":n,captureFocus:a,initialOpen:r,menuButton:o,instanceRef:i,onMenuChange:l,...s},c){const[u,d,b]=(e=>{const[n,a]=Ns(e),[r,o]=t.useState();return[{menuItemFocus:r,...n},a,(e,t)=>{o({position:e,alwaysUpdate:t}),a(!0)}]})({...s,onMenuChange:l}),{state:m}=u,h=jl(m),f=t.useRef(null),g=((e,n)=>{if("production"!==process.env.NODE_ENV&&"function"!=typeof n)throw new Error("[React-Menu] useClick/useHover requires a function in the second parameter.");const[a]=t.useState({});return{onMouseDown:()=>{a.v=e&&"closed"!==e},onClick:e=>a.v?a.v=!1:n(!0,e)}})(m,(e,t)=>b(t.detail?void 0:is.FIRST)),p=t.useCallback(e=>{d(!1),e.key&&f.current.focus()},[d]),x=Ml(o,{open:h});if(!x||!x.type)throw new Error("Menu requires a menuButton prop.");const y={...Al({onKeyDown:e=>{switch(e.key){case as.UP:b(is.LAST);break;case as.DOWN:b(is.FIRST);break;default:return}e.preventDefault()},...g},x.props),ref:vs(Ls?x.ref:x.props.ref,f)};"MenuButton"===x.type[Jl]&&(y.isOpen=h);const v=t.cloneElement(x,y);return t.useImperativeHandle(i,()=>({openMenu:b,closeMenu:()=>d(!1)})),e.jsxs(t.Fragment,{children:[v,e.jsx(Qs,{...s,...u,"aria-label":n||("string"==typeof x.props.children?x.props.children:"Menu"),anchorRef:f,ref:c,onClose:p})]})}),Cs=(n,a)=>{const r=t.memo(a),o=t.forwardRef((n,a)=>{const o=t.useRef(null);return e.jsx(r,{...n,itemRef:o,externalRef:a,isHovering:t.useContext(Kl)===o.current})});return o.displayName=`WithHovering(${n})`,o},Xs=(e,n,a,r)=>{const[o,i,l]=(e=>{const[n,a]=t.useState(!1);return t.useEffect(()=>{!e&&a(!1)},[e]),[n,()=>!n&&a(!0),()=>a(!1)]})(a),{submenuCloseDelay:s}=t.useContext(ns),{isParentOpen:c,submenuCtx:u,dispatch:d,updateItems:b}=t.useContext($l),m=()=>{!a&&!r&&d(rs.SET,e.current)},h=()=>{!r&&d(rs.UNSET,e.current)};return((e,t,n)=>{xs(()=>{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])})(r,e,b),t.useEffect(()=>{a&&c&&n.current&&n.current.focus()},[n,a,c]),{mouseOver:o,setHover:m,onBlur:e=>{a&&!e.currentTarget.contains(e.relatedTarget)&&h()},onPointerMove:e=>{r||(e.stopPropagation(),i(),u.on(s,m,m))},onPointerLeave:(e,t)=>{l(),u.off(),!t&&h()}}},Rs=Cs("MenuItem",function({className:n,value:a,href:r,type:o,checked:i,disabled:l,children:s,onClick:c,isHovering:u,itemRef:d,externalRef:b,...m}){const h=!!l,{mouseOver:f,setHover:g,...p}=Xs(d,d,u,h),x=t.useContext(es),y=t.useContext(ts),v="radio"===o,G="checkbox"===o,Q=!(!r||h||v||G),I=v?y.value===a:!!G&&!!i,B=e=>{if(h)return e.stopPropagation(),void e.preventDefault();const t={value:a,syntheticEvent:e};void 0!==e.key&&(t.key=e.key),G&&(t.checked=!I),v&&(t.name=y.name),Ml(c,t),v&&Ml(y.onRadioChange,t),x.handleClick(t,G||v)},F=t.useMemo(()=>({type:o,disabled:h,hover:f||u,checked:I,anchor:Q}),[o,h,f,u,I,Q]),Z=Al({...p,onPointerDown:g,onKeyDown:e=>{if(u)switch(e.key){case as.ENTER:e.preventDefault();case as.SPACE:Q?d.current.click():B(e)}},onClick:B},m),w={role:v?"menuitemradio":G?"menuitemcheckbox":"menuitem","aria-checked":v||G?I:void 0,...zl(h,u),...Z,ref:vs(b,d),className:Hl({block:Pl,element:"item",modifiers:F,className:n}),children:t.useMemo(()=>Ml(s,F),[s,F])};return Q?e.jsx("li",{role:cs,children:e.jsx("a",{href:r,...w})}):e.jsx("li",{...w})}),ks=t.memo(t.forwardRef(function({className:t,...n},a){return e.jsx("li",{role:cs,...n,ref:a,className:Hl({block:Pl,element:"header",className:t})})})),Us=t["undefined"!=typeof document&&void 0!==document.createElement?"useLayoutEffect":"useEffect"];function Ds(){}function _s(e,t,n={}){const a=js(n.polyfill),r=(e=>{const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),t})(t);return Us(()=>{let t=!1;const n=e&&"current"in e?e.current:e;if(!n)return Ds;function o(e,n){t||r.current(e,n)}return a.subscribe(n,o),()=>{t=!0,a.unsubscribe(n,o)}},[e,a,r]),a.observer}let Ys;const js=e=>Ys||(Ys=function(e){let t=!1,n=[];const a=new Map,r=new(e||window.ResizeObserver)((e,r)=>{n=n.concat(e),t||window.requestAnimationFrame(function(){const e=new Set;for(let t=0;t<n.length;t++){if(e.has(n[t].target))continue;e.add(n[t].target);const o=a.get(n[t].target);null==o||o.forEach(e=>e(n[t],r))}n=[],t=!1}),t=!0});return{observer:r,subscribe(e,t){var n;r.observe(e);const o=null!==(n=a.get(e))&&void 0!==n?n:[];o.push(t),a.set(e,o)},unsubscribe(e,t){var n;const o=null!==(n=a.get(e))&&void 0!==n?n:[];if(1===o.length)return r.unobserve(e),void a.delete(e);const i=o.indexOf(t);-1!==i&&o.splice(i,1),a.set(e,o)}}}(e));var Vs,Ss;function Ms(){if(Ss)return Vs;Ss=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,a=/^0o[0-7]+$/i,r=parseInt,o="object"==typeof c&&c&&c.Object===Object&&c,i="object"==typeof self&&self&&self.Object===Object&&self,l=o||i||Function("return this")(),s=Object.prototype.toString,u=Math.max,d=Math.min,b=function(){return l.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(o){if("number"==typeof o)return o;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==s.call(e)}(o))return NaN;if(m(o)){var i="function"==typeof o.valueOf?o.valueOf():o;o=m(i)?i+"":i}if("string"!=typeof o)return 0===o?o:+o;o=o.replace(e,"");var l=n.test(o);return l||a.test(o)?r(o.slice(2),l?2:8):t.test(o)?NaN:+o}return Vs=function(e,t,n){var a,r,o,i,l,s,c=0,f=!1,g=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function x(t){var n=a,o=r;return a=r=void 0,c=t,i=e.apply(o,n)}function y(e){var n=e-s;return void 0===s||n>=t||n<0||g&&e-c>=o}function v(){var e=b();if(y(e))return G(e);l=setTimeout(v,function(e){var n=t-(e-s);return g?d(n,o-(e-c)):n}(e))}function G(e){return l=void 0,p&&a?x(e):(a=r=void 0,i)}function Q(){var e=b(),n=y(e);if(a=arguments,r=this,s=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(v,t),f?x(e):i}(s);if(g)return l=setTimeout(v,t),x(s)}return void 0===l&&(l=setTimeout(v,t)),i}return t=h(t)||0,m(n)&&(f=!!n.leading,o=(g="maxWait"in n)?u(h(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),Q.cancel=function(){void 0!==l&&clearTimeout(l),c=0,a=s=r=l=void 0},Q.flush=function(){return void 0===l?i:G(b())},Q},Vs}var Js=u(Ms()),Os="canvas-module_canvas__Iiaz4",As="canvas-module_textCanvas__eFxM4";s(".canvas-module_canvas__Iiaz4{cursor:pointer;position:relative;width:100%;z-index:1}.canvas-module_textCanvas__eFxM4{left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:2}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNhbnZhcy5tb2R1bGUuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDZCQUVFLGNBQWUsQ0FDZixpQkFBa0IsQ0FGbEIsVUFBVyxDQUdYLFNBQ0YsQ0FFQSxpQ0FFRSxNQUFPLENBR1AsbUJBQW9CLENBSnBCLGlCQUFrQixDQUVsQixLQUFNLENBQ04sVUFBVyxDQUVYLFNBQ0YiLCJmaWxlIjoiY2FudmFzLm1vZHVsZS5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuY2FudmFzIHtcbiAgd2lkdGg6IDEwMCU7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICB6LWluZGV4OiAxO1xufVxuXG4udGV4dENhbnZhcyB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgbGVmdDogMDtcbiAgdG9wOiAwO1xuICB3aWR0aDogMTAwJTtcbiAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG4gIHotaW5kZXg6IDI7XG59XG4iXX0= */");var Es="Highlight-module_highlight__1VV-X";function zs(n){const{canvasRef:a,barHeight:r,xyToHighlightData:o,zoom:i}=n,[l,s]=t.useState({height:"0px",visibility:"hidden"}),c=t.useRef(null),u=t.useRef(null),d=t.useRef(null);t.useEffect(()=>{s({height:"0px",visibility:"hidden"})},[i]);const b=e=>{const t=c.current;if(!t)return void s(e);const n=d.current;n&&n.left===e.left&&n.top===e.top&&n.width===e.width&&n.visibility===e.visibility||(d.current=e,t.style.visibility=String(e.visibility||""),void 0!==e.left&&(t.style.left=String(e.left)),void 0!==e.top&&(t.style.top=String(e.top)),void 0!==e.width&&(t.style.width=String(e.width)),void 0!==e.height&&(t.style.height=String(e.height)))},m=e=>{u.current&&cancelAnimationFrame(u.current);const t=e.offsetX,n=e.offsetY;u.current=requestAnimationFrame(()=>{const e=o(t,n);if(e.isJust){const t=e.value;b({visibility:"visible",height:`${r}px`,...t})}else h()})},h=()=>{b({...d.current||{},visibility:"hidden"})};return t.useEffect(()=>{const e=a.current;return e?(e.addEventListener("mousemove",m),e.addEventListener("mouseout",h),()=>{e.removeEventListener("mousemove",m),e.removeEventListener("mouseout",h),u.current&&cancelAnimationFrame(u.current)}):()=>{}},[a.current,m,h]),e.jsx("div",{ref:c,className:Es,style:l,"data-testid":"flamegraph-highlight"})}s(".Highlight-module_highlight__1VV-X{background:#ffffff40;mix-blend-mode:overlay;pointer-events:none;position:absolute;z-index:2}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkhpZ2hsaWdodC5tb2R1bGUuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLG1DQUdFLG9CQUFxQixDQUNyQixzQkFBdUIsQ0FGdkIsbUJBQW9CLENBRHBCLGlCQUFrQixDQUlsQixTQUNGIiwiZmlsZSI6IkhpZ2hsaWdodC5tb2R1bGUuY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmhpZ2hsaWdodCB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG4gIGJhY2tncm91bmQ6ICNmZmZmZmY0MDtcbiAgbWl4LWJsZW5kLW1vZGU6IG92ZXJsYXk7XG4gIHotaW5kZXg6IDI7XG59XG4iXX0= */");var Ts="ContextMenuHighlight-module_highlightContextMenu__WI1nK";s(".ContextMenuHighlight-module_highlightContextMenu__WI1nK{background:#ffffff8c;mix-blend-mode:overlay;pointer-events:none;position:absolute;z-index:2}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNvbnRleHRNZW51SGlnaGxpZ2h0Lm1vZHVsZS5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEseURBSUUsb0JBQXFCLENBQ3JCLHNCQUF1QixDQUh2QixtQkFBb0IsQ0FEcEIsaUJBQWtCLENBS2xCLFNBQ0YiLCJmaWxlIjoiQ29udGV4dE1lbnVIaWdobGlnaHQubW9kdWxlLmNzcyIsInNvdXJjZXNDb250ZW50IjpbIi5oaWdobGlnaHRDb250ZXh0TWVudSB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG4gIC8qIG1ha2UgaXQgYSBiaXQgbGlnaHRlciBzbyB0aGF0IGl0J3MgZWFzaWVyIHRvIGRpc3Rpbmd1aXNoIHdoZW4gYm90aCBoaWdobGlnaHRzIGFyZSBvbiAqL1xuICBiYWNrZ3JvdW5kOiAjZmZmZmZmOGM7XG4gIG1peC1ibGVuZC1tb2RlOiBvdmVybGF5O1xuICB6LWluZGV4OiAyO1xufVxuIl19 */");const Hs={height:"0px",visibility:"hidden"};function Ps(n){const{node:a,barHeight:r}=n,[o,i]=t.useState(Hs);return t.useEffect(()=>{a.match({Nothing:()=>i(Hs),Just:e=>i({visibility:"visible",height:`${r}px`,...e})})},[a]),e.jsx("div",{className:Ts,style:o,"data-testid":"flamegraph-highlight-contextmenu"})}const Ks={name:"Default",goodColor:po.rgb(0,170,0),neutralColor:po.rgb(148,142,142),badColor:po.rgb(200,0,0),colors:[po.hsl(24,69,60),po.hsl(34,65,65),po.hsl(194,52,61),po.hsl(163,45,55),po.hsl(211,48,60),po.hsl(246,40,65),po.hsl(305,63,79),po.hsl(47,100,73),po.rgb(183,219,171),po.rgb(244,213,152),po.rgb(78,146,249),po.rgb(249,186,143),po.rgb(242,145,145),po.rgb(130,181,216),po.rgb(229,168,226),po.rgb(174,162,224),po.rgb(154,196,138),po.rgb(242,201,109),po.rgb(101,197,219),po.rgb(249,147,78),po.rgb(234,100,96),po.rgb(81,149,206),po.rgb(214,131,206),po.rgb(128,110,183)]},$s={...Ks,name:"Color Blind",goodColor:po.rgb(26,133,255),neutralColor:po.rgb(148,142,142),badColor:po.rgb(220,50,32)};function qs(){return e.jsxs("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",children:[e.jsx("defs",{}),e.jsx("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.jsx("path",{style:{fill:"#7d7d7f"},d:"M14,1h-.82c-4.52,0-8.18,3.73-8.18,8.33v1.67H14V1Z"}),e.jsx("path",{d:"M15.82,1h-.82V11h9v-1.67c0-4.6-3.66-8.33-8.18-8.33Z"})]})}function ec(){return e.jsxs("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",children:[e.jsx("defs",{}),e.jsx("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.jsx("path",{style:{fill:"#7d7d7f"},d:"M15,1h.82c4.52,0,8.18,3.73,8.18,8.33v1.67H15V1Z"}),e.jsx("path",{d:"M13.18,1h.82V11H5v-1.67c0-4.6,3.66-8.33,8.18-8.33Z"})]})}var tc={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"};s(".Tooltip-module_tooltip__NMZ65{background:var(--ps-tooltip-bg);border-radius:4px;box-shadow:1px 2px 4px 0 rgba(0,0,0,.3);color:var(--ps-tooltip-text);font-size:12px;pointer-events:none;position:fixed;visibility:hidden;width:420px;z-index:5}.Tooltip-module_tooltip__NMZ65.Tooltip-module_flamegraphDiffTooltip__Z983o{width:450px}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_tooltipName__y4Qs3{background-color:var(--ps-tooltip-header-bg);border-top-left-radius:4px;border-top-right-radius:4px;color:var(--ps-tooltip-text);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-weight:700;overflow:hidden;padding:8px 10px;text-overflow:ellipsis;white-space:nowrap}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_functionName__z9LHO{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;padding:8px 10px 0;white-space:break-spaces;word-break:break-all}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_tooltipTable__ct3pq{display:table;margin:10px;width:calc(100% - 20px)}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_tooltipTable__ct3pq td,.Tooltip-module_tooltip__NMZ65 .Tooltip-module_tooltipTable__ct3pq th{background-color:var(--ps-tooltip-bg);border:1px solid var(--ps-tooltip-header-bg);font-weight:400;padding:5px}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_clickInfo__Utux5{color:var(--ps-right-click-info);display:flex;justify-content:center;margin-bottom:10px}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_clickInfo__Utux5 svg{align-self:center;color:initial;display:block;height:22px;margin-right:5px;width:22px}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_clickInfo__Utux5 span{font-size:14px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRvb2x0aXAubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsK0JBR0UsK0JBQWdDLENBRWhDLGlCQUFrQixDQURsQix1Q0FBOEMsQ0FFOUMsNEJBQTZCLENBQzdCLGNBQWUsQ0FHZixtQkFBb0IsQ0FScEIsY0FBZSxDQU1mLGlCQUFrQixDQVBsQixXQUFZLENBUVosU0FFRixDQUNBLDJFQUNFLFdBQ0YsQ0FDQSxrRUFFRSw0Q0FBNkMsQ0FFN0MsMEJBQTJCLENBRDNCLDJCQUE0QixDQUY1Qiw0QkFBNkIsQ0FTN0IsbUVBQXdFLENBTHhFLGVBQWlCLENBRWpCLGVBQWdCLENBRWhCLGdCQUFpQixDQURqQixzQkFBdUIsQ0FGdkIsa0JBS0YsQ0FDQSxtRUFFRSxtRUFBd0UsQ0FEeEUsa0JBQW1CLENBRW5CLHdCQUF5QixDQUN6QixvQkFDRixDQUNBLG1FQUdFLGFBQWMsQ0FEZCxXQUFZLENBRFosdUJBR0YsQ0FDQSw0SUFFRSxxQ0FBc0MsQ0FDdEMsNENBQTZDLENBRTdDLGVBQW1CLENBRG5CLFdBRUYsQ0FDQSxnRUFJRSxnQ0FBaUMsQ0FGakMsWUFBYSxDQUNiLHNCQUF1QixDQUZ2QixrQkFJRixDQUNBLG9FQUdFLGlCQUFrQixDQUZsQixhQUFjLENBQ2QsYUFBYyxDQUdkLFdBQVksQ0FDWixnQkFBaUIsQ0FGakIsVUFHRixDQUNBLHFFQUNFLGNBQ0YiLCJmaWxlIjoiVG9vbHRpcC5tb2R1bGUuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi50b29sdGlwIHtcbiAgd2lkdGg6IDQyMHB4O1xuICBwb3NpdGlvbjogZml4ZWQ7XG4gIGJhY2tncm91bmQ6IHZhcigtLXBzLXRvb2x0aXAtYmcpO1xuICBib3gtc2hhZG93OiAxcHggMnB4IDRweCAwcHggcmdiYSgwLCAwLCAwLCAwLjMpO1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG4gIGNvbG9yOiB2YXIoLS1wcy10b29sdGlwLXRleHQpO1xuICBmb250LXNpemU6IDEycHg7XG4gIHZpc2liaWxpdHk6IGhpZGRlbjtcbiAgei1pbmRleDogNTtcbiAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG59XG4udG9vbHRpcC5mbGFtZWdyYXBoRGlmZlRvb2x0aXAge1xuICB3aWR0aDogNDUwcHg7XG59XG4udG9vbHRpcCAudG9vbHRpcE5hbWUge1xuICBjb2xvcjogdmFyKC0tcHMtdG9vbHRpcC10ZXh0KTtcbiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcHMtdG9vbHRpcC1oZWFkZXItYmcpO1xuICBib3JkZXItdG9wLXJpZ2h0LXJhZGl1czogNHB4O1xuICBib3JkZXItdG9wLWxlZnQtcmFkaXVzOiA0cHg7XG4gIGZvbnQtd2VpZ2h0OiBib2xkO1xuICB3aGl0ZS1zcGFjZTogbm93cmFwO1xuICBvdmVyZmxvdzogaGlkZGVuO1xuICB0ZXh0LW92ZXJmbG93OiBlbGxpcHNpcztcbiAgcGFkZGluZzogOHB4IDEwcHg7XG4gIGZvbnQtZmFtaWx5OiBTRk1vbm8tUmVndWxhciwgQ29uc29sYXMsIExpYmVyYXRpb24gTW9ubywgTWVubG8sIG1vbm9zcGFjZTtcbn1cbi50b29sdGlwIC5mdW5jdGlvbk5hbWUge1xuICBwYWRkaW5nOiA4cHggMTBweCAwO1xuICBmb250LWZhbWlseTogU0ZNb25vLVJlZ3VsYXIsIENvbnNvbGFzLCBMaWJlcmF0aW9uIE1vbm8sIE1lbmxvLCBtb25vc3BhY2U7XG4gIHdoaXRlLXNwYWNlOiBicmVhay1zcGFjZXM7XG4gIHdvcmQtYnJlYWs6IGJyZWFrLWFsbDtcbn1cbi50b29sdGlwIC50b29sdGlwVGFibGUge1xuICB3aWR0aDogY2FsYygxMDAlIC0gMjBweCk7XG4gIG1hcmdpbjogMTBweDtcbiAgZGlzcGxheTogdGFibGU7IC8qIGFsdGhvdWdoIHRoaXMgaXMgdGhlIGRlZmF1bHQsIHVzZXJzIG1heSBoYXZlIGFuIG92ZXJ3cml0ZSAqL1xufVxuLnRvb2x0aXAgLnRvb2x0aXBUYWJsZSB0aCxcbi50b29sdGlwIC50b29sdGlwVGFibGUgdGQge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wcy10b29sdGlwLWJnKTtcbiAgYm9yZGVyOiAxcHggc29saWQgdmFyKC0tcHMtdG9vbHRpcC1oZWFkZXItYmcpO1xuICBwYWRkaW5nOiA1cHg7XG4gIGZvbnQtd2VpZ2h0OiBub3JtYWw7XG59XG4udG9vbHRpcCAuY2xpY2tJbmZvIHtcbiAgbWFyZ2luLWJvdHRvbTogMTBweDtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gIGNvbG9yOiB2YXIoLS1wcy1yaWdodC1jbGljay1pbmZvKTtcbn1cbi50b29sdGlwIC5jbGlja0luZm8gc3ZnIHtcbiAgY29sb3I6IGluaXRpYWw7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBhbGlnbi1zZWxmOiBjZW50ZXI7XG4gIHdpZHRoOiAyMnB4O1xuICBoZWlnaHQ6IDIycHg7XG4gIG1hcmdpbi1yaWdodDogNXB4O1xufVxuLnRvb2x0aXAgLmNsaWNrSW5mbyBzcGFuIHtcbiAgZm9udC1zaXplOiAxNHB4O1xufSJdfQ== */");const nc={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"}]},ac={...nc,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:"千"}]},rc=t.createContext(nc),oc=rc,ic=({messages:n,children:a})=>{const r=t.useMemo(()=>{var e;return{...nc,...n,tooltipUnitTitles:{...nc.tooltipUnitTitles,...null!==(e=null==n?void 0:n.tooltipUnitTitles)&&void 0!==e?e:{}}}},[n]);return e.jsx(rc.Provider,{value:r,children:a})},lc=()=>t.useContext(rc);function sc(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 cc(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 uc(e,t,n){return n<t?t:Math.max(t,Math.min(n,e))}function dc(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=uc(s,8,r-i-8),c=uc(c,8,o-l-8),{left:s,top:c}}function bc({shouldShowFooter:n=!0,shouldShowTitle:a=!0,dataSourceRef:r,clickInfoSide:o,setTooltipContent:i,palette:l}){const s=t.useRef(null),c=t.useRef(null),u=t.useRef(null),d=t.useRef(null),[b,m]=t.useState({title:{text:"",diff:{text:"",color:""}},tooltipData:[]}),[h,f]=t.useState(),g=()=>{f({visibility:"hidden"}),m({title:{text:"",diff:{text:"",color:""}},tooltipData:[]})},p=t.useCallback(e=>{u.current&&cancelAnimationFrame(u.current);const t=e.clientX,n=e.clientY;u.current=requestAnimationFrame(()=>{if(!s.current)throw new Error("Missing tooltipElement");c.current={x:t,y:n},i(m,g,e);const a=s.current.clientWidth||0,r=s.current.clientHeight||0,{left:o,top:l}=dc(t,n,a,r);f({top:l,left:o,visibility:"visible"})})},[i]);return t.useEffect(()=>{const e=r.current;if(!e)return()=>{};const t=()=>{g()},n=t=>{e.contains(t.target)||g()};return e.addEventListener("mousemove",p),e.addEventListener("mouseout",g),e.addEventListener("mouseleave",t),window.addEventListener("mousemove",n,{passive:!0}),window.addEventListener("blur",t),()=>{e.removeEventListener("mousemove",p),e.removeEventListener("mouseout",g),e.removeEventListener("mouseleave",t),window.removeEventListener("mousemove",n),window.removeEventListener("blur",t),u.current&&cancelAnimationFrame(u.current)}},[r.current,p]),t.useLayoutEffect(()=>{if(!s.current)return;if(!c.current)return;if(0===b.tooltipData.length)return;const{x:e,y:t}=c.current,n=s.current.getBoundingClientRect(),a=n.width,r=n.height,o=d.current;if(o&&Math.abs(o.w-a)<1&&Math.abs(o.h-r)<1)return;d.current={w:a,h:r};const{left:i,top:l}=dc(e,t,a,r);f(e=>e&&e.left===i&&e.top===l&&"visible"===e.visibility?e:{...e||{},left:i,top:l,visibility:"visible"})},[b.tooltipData.length,b.title.text]),e.jsx("div",{"data-testid":"tooltip",className:hl(tc.tooltip,{[tc.flamegraphDiffTooltip]:b.tooltipData.length>1}),style:{...h,textAlign:"center"},ref:s,children:b.tooltipData.length>0&&e.jsxs(e.Fragment,{children:[a&&e.jsx("div",{className:tc.tooltipName,"data-testid":"tooltip-title",children:b.title.text}),e.jsx("div",{className:tc.functionName,"data-testid":"tooltip-function-name",children:b.title.text}),b.title.diff.text.length>0?e.jsx(mc,{data:b.tooltipData,diff:b.title.diff,palette:l}):e.jsx(mc,{data:b.tooltipData,palette:l}),n&&e.jsx(hc,{clickInfoSide:o})]})})}function mc({data:t,diff:n,palette:a}){const r=lc(),[o,i]=t,l="Location"!==r.location;if(!o)return null;let s;switch(o.tooltipType){case"flamegraph":s=()=>{const t=i&&function(e,t){const n=Rr(e),a=Rr(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}`}(o.formattedValue,i.formattedValue),s=kr(t,l),c=i&&function(e,t){const n=sc(e),a=sc(t);if(null==n||null==a)return"";const r=a-n;return 0===r?"0":`${r>0?"+":"-"}${Math.abs(r).toLocaleString()}`}(o.samples,i.samples),u=kr(o.formattedValue,l),d=kr(null==i?void 0:i.formattedValue,l),b=null==n?void 0:n.color,m=cc(t,a),h=cc(c,a);return e.jsxs(e.Fragment,{children:[i&&e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("th",{children:r.baseline}),e.jsx("th",{children:r.comparison}),e.jsx("th",{children:r.diff})]})}),e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsxs("td",{children:[r.tooltipUnitTitles[o.units].percent,":"]}),e.jsx("td",{children:o.percent}),i&&e.jsxs(e.Fragment,{children:[e.jsx("td",{children:i.percent}),e.jsx("td",{style:{textAlign:"center"},children:n&&e.jsx("span",{"data-testid":"tooltip-diff",style:{color:b},children:n.text})})]})]}),e.jsxs("tr",{children:[e.jsxs("td",{children:[r.tooltipUnitTitles[o.units].formattedValue,":"]}),e.jsx("td",{children:u}),i&&e.jsxs(e.Fragment,{children:[e.jsx("td",{children:d}),e.jsx("td",{style:{textAlign:"center"},children:s&&e.jsx("span",{"data-testid":"tooltip-time-diff",style:m?{color:m}:void 0,children:s})})]})]}),e.jsxs("tr",{children:[e.jsx("td",{children:r.tooltipSamples}),e.jsx("td",{children:o.samples}),i&&e.jsxs(e.Fragment,{children:[e.jsx("td",{children:i.samples}),e.jsx("td",{style:{textAlign:"center"},children:c&&e.jsx("span",{"data-testid":"tooltip-samples-diff",style:h?{color:h}:void 0,children:c})})]})]})]})]})};break;case"table":s=()=>e.jsxs(e.Fragment,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("td",{}),e.jsxs("td",{children:[r.self," (",r.tooltipUnitTitles[o.units].total,")"]}),e.jsxs("td",{children:[r.total," (",r.tooltipUnitTitles[o.units].total,")"]})]})}),e.jsx("tbody",{children:e.jsxs("tr",{children:[e.jsxs("td",{children:[r.tooltipUnitTitles[o.units].formattedValue,":"]}),e.jsx("td",{children:o.self}),e.jsx("td",{children:o.total})]})})]});break;default:s=()=>null}return e.jsx("table",{"data-testid":"tooltip-table",className:hl(tc.tooltipTable,{[tc[`${o.tooltipType}${i?"Diff":""}`]]:o.tooltipType}),style:{textAlign:"center",margin:"0 auto"},children:s()})}function hc({clickInfoSide:t}){const n=lc();let a;switch(t){case"right":a=e.jsxs(e.Fragment,{children:[e.jsx(qs,{}),e.jsx("span",{children:n.rightClickForMoreNodeOptions})]});break;case"left":a=e.jsxs(e.Fragment,{children:[e.jsx(ec,{}),e.jsx("span",{children:n.clickToHighlightNode})]});break;default:a=e.jsx(e.Fragment,{})}return e.jsx("div",{"data-testid":"tooltip-footer",className:tc.clickInfo,children:a})}function fc(n){const{format:a,canvasRef:r,xyToData:o,numTicks:i,sampleRate:l,units:s,leftTicks:c,rightTicks:u,palette:d}=n,b=lc(),m=t.useCallback((e,t,n)=>{const r=Yr(i,l,s),m=o(n.offsetX,n.offsetY);let h;var f;if(m.isJust)switch(h=m.value,h.format){case"single":{const t={percent:(f=h.total/i,`${Dr(f)}%`),samples:"trace_samples"===s?"":Xr(h.total),units:s,formattedValue:r.format(h.total,l),tooltipType:"flamegraph"};e({title:{text:h.name,diff:{text:"",color:""}},tooltipData:[t]});break}case"double":{if("single"===a)throw new Error("props format is 'single' but it has been mapped to 'double'");const t=gc({formatter:r,sampleRate:l,totalLeft:h.totalLeft,leftTicks:c,totalRight:h.totalRight,rightTicks:u,title:h.name,units:s},d,b);e({title:t.title,tooltipData:t.tooltipData});break}default:throw new Error(`Unsupported format: '${h.format}'`)}else t()},[i,l,s,c,u,d,o,a,b]);return e.jsx(bc,{dataSourceRef:r,clickInfoSide:"right",setTooltipContent:m,palette:d})}function gc({formatter:e,sampleRate:t,totalLeft:n,leftTicks:a,totalRight:r,rightTicks:o,title:i,units:l},s=Ks,c){var u,d;const b=o>0?r/o:0,m=Dr(a>0?n/a:0),h=Dr(b),f={percent:`${m}%`,samples:Xr(n),units:l,formattedValue:e.format(n,t),tooltipType:"flamegraph"},g={percent:`${h}%`,samples:Xr(r),units:l,formattedValue:e.format(r,t),tooltipType:"flamegraph"};let p=_r(m,h);Number.isFinite(p)||(p=0);let x="";p>0?x=s.badColor.rgb().string():p<0&&(x=s.goodColor.rgb().string());let y="";return 0===n&&r>0?y=null!==(u=null==c?void 0:c.diffNew)&&void 0!==u?u:"新增":0===r&&n>0?y=null!==(d=null==c?void 0:c.diffRemoved)&&void 0!==d?d:"移除":0===p?y="0%":p>0?y=`+${p.toFixed(2)}%`:p<0&&(y=`${p.toFixed(2)}%`),{title:{text:i,diff:{text:y,color:x}},tooltipData:[f,g]}}s('@charset "UTF-8";.szh-menu{background-color:#fff;border:1px solid rgba(0,0,0,.1);box-sizing:border-box;list-style:none;margin:0;padding:0;width:max-content;z-index:100}.szh-menu:focus{outline:none}.szh-menu__arrow{background-color:#fff;border-color:rgba(0,0,0,.1) transparent transparent rgba(0,0,0,.1);border-style:solid;border-width:1px;box-sizing:border-box;height:.75rem;width:.75rem;z-index:-1}.szh-menu__arrow--dir-left{right:-.375rem;transform:translateY(-50%) rotate(135deg)}.szh-menu__arrow--dir-right{left:-.375rem;transform:translateY(-50%) rotate(-45deg)}.szh-menu__arrow--dir-top{bottom:-.375rem;transform:translateX(-50%) rotate(-135deg)}.szh-menu__arrow--dir-bottom{top:-.375rem;transform:translateX(-50%) rotate(45deg)}.szh-menu__item{cursor:pointer}.szh-menu__item:focus{outline:none}.szh-menu__item--hover{background-color:#ebebeb}.szh-menu__item--focusable{background-color:inherit;cursor:default}.szh-menu__item--disabled{color:#aaa;cursor:default}.szh-menu__group{box-sizing:border-box}.szh-menu__radio-group{list-style:none;margin:0;padding:0}.szh-menu__divider{background-color:rgba(0,0,0,.12);height:1px;margin:.5rem 0}.szh-menu-button{box-sizing:border-box}.szh-menu{border:none;border-radius:.25rem;box-shadow:0 3px 7px rgba(0,0,0,.133),0 .6px 2px rgba(0,0,0,.1);color:#212529;min-width:10rem;padding:.5rem 0;user-select:none}.szh-menu__item{align-items:center;display:flex;padding:.375rem 1.5rem;position:relative}.szh-menu-container--itemTransition .szh-menu__item{transition-duration:.15s;transition-property:background-color,color;transition-timing-function:ease-in-out}.szh-menu__item--type-radio{padding-left:2.2rem}.szh-menu__item--type-radio:before{content:"○";font-size:.8rem;left:.8rem;position:absolute;top:.55rem}.szh-menu__item--type-radio.szh-menu__item--checked:before{content:"●"}.szh-menu__item--type-checkbox{padding-left:2.2rem}.szh-menu__item--type-checkbox:before{left:.8rem;position:absolute}.szh-menu__item--type-checkbox.szh-menu__item--checked:before{content:"✔"}.szh-menu__submenu>.szh-menu__item{padding-right:2.5rem}.szh-menu__submenu>.szh-menu__item:after{content:"❯";position:absolute;right:1rem}.szh-menu__header{color:#888;font-size:.8rem;padding:.2rem 1.5rem;text-transform:uppercase}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFrR0EsZ0JBTUEsQ0F2R0EsVUFRRSxxQkFBc0IsQ0FEdEIsK0JBQW9DLENBSHBDLHFCQUFzQixDQUR0QixlQUFnQixDQUZoQixRQUFTLENBQ1QsU0FBVSxDQUdWLGlCQUFrQixDQUNsQixXQUdGLENBQ0EsZ0JBQ0UsWUFDRixDQUNBLGlCQUlFLHFCQUFzQixDQUd0QixrRUFBb0MsQ0FBcEMsa0JBQW9DLENBQXBDLGdCQUFvQyxDQU5wQyxxQkFBc0IsQ0FFdEIsYUFBZSxDQURmLFlBQWMsQ0FNZCxVQUNGLENBQ0EsMkJBQ0UsY0FBZ0IsQ0FDaEIseUNBQ0YsQ0FDQSw0QkFDRSxhQUFlLENBQ2YseUNBQ0YsQ0FDQSwwQkFDRSxlQUFpQixDQUNqQiwwQ0FDRixDQUNBLDZCQUNFLFlBQWMsQ0FDZCx3Q0FDRixDQUNBLGdCQUNFLGNBQ0YsQ0FDQSxzQkFDRSxZQUNGLENBQ0EsdUJBQ0Usd0JBQ0YsQ0FDQSwyQkFFRSx3QkFBeUIsQ0FEekIsY0FFRixDQUNBLDBCQUVFLFVBQVcsQ0FEWCxjQUVGLENBQ0EsaUJBQ0UscUJBQ0YsQ0FDQSx1QkFHRSxlQUFnQixDQUZoQixRQUFTLENBQ1QsU0FFRixDQUNBLG1CQUdFLGdDQUFxQyxDQUZyQyxVQUFXLENBQ1gsY0FFRixDQUVBLGlCQUNFLHFCQUNGLENBRUEsVUFHRSxXQUFZLENBQ1osb0JBQXNCLENBQ3RCLCtEQUEwRSxDQUgxRSxhQUFjLENBSWQsZUFBZ0IsQ0FDaEIsZUFBaUIsQ0FOakIsZ0JBT0YsQ0FDQSxnQkFFRSxrQkFBbUIsQ0FEbkIsWUFBYSxDQUdiLHNCQUF3QixDQUR4QixpQkFFRixDQUNBLG9EQUVFLHdCQUEwQixDQUQxQiwwQ0FBNEMsQ0FFNUMsc0NBQ0YsQ0FDQSw0QkFDRSxtQkFDRixDQUNBLG1DQUNFLFdBQVksQ0FJWixlQUFpQixDQUZqQixVQUFZLENBRFosaUJBQWtCLENBRWxCLFVBRUYsQ0FDQSwyREFDRSxXQUNGLENBQ0EsK0JBQ0UsbUJBQ0YsQ0FDQSxzQ0FFRSxVQUFZLENBRFosaUJBRUYsQ0FDQSw4REFDRSxXQUNGLENBQ0EsbUNBQ0Usb0JBQ0YsQ0FDQSx5Q0FDRSxXQUFZLENBQ1osaUJBQWtCLENBQ2xCLFVBQ0YsQ0FDQSxrQkFDRSxVQUFXLENBQ1gsZUFBaUIsQ0FDakIsb0JBQXNCLENBQ3RCLHdCQUNGIiwiZmlsZSI6ImluZGV4LmNzcyIsInNvdXJjZXNDb250ZW50IjpbIkBjaGFyc2V0IFwiVVRGLThcIjtcbi5zemgtbWVudSB7XG4gIG1hcmdpbjogMDtcbiAgcGFkZGluZzogMDtcbiAgbGlzdC1zdHlsZTogbm9uZTtcbiAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbiAgd2lkdGg6IG1heC1jb250ZW50O1xuICB6LWluZGV4OiAxMDA7XG4gIGJvcmRlcjogMXB4IHNvbGlkIHJnYmEoMCwgMCwgMCwgMC4xKTtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbn1cbi5zemgtbWVudTpmb2N1cyB7XG4gIG91dGxpbmU6IG5vbmU7XG59XG4uc3poLW1lbnVfX2Fycm93IHtcbiAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbiAgd2lkdGg6IDAuNzVyZW07XG4gIGhlaWdodDogMC43NXJlbTtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgYm9yZGVyOiAxcHggc29saWQgdHJhbnNwYXJlbnQ7XG4gIGJvcmRlci1sZWZ0LWNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuMSk7XG4gIGJvcmRlci10b3AtY29sb3I6IHJnYmEoMCwgMCwgMCwgMC4xKTtcbiAgei1pbmRleDogLTE7XG59XG4uc3poLW1lbnVfX2Fycm93LS1kaXItbGVmdCB7XG4gIHJpZ2h0OiAtMC4zNzVyZW07XG4gIHRyYW5zZm9ybTogdHJhbnNsYXRlWSgtNTAlKSByb3RhdGUoMTM1ZGVnKTtcbn1cbi5zemgtbWVudV9fYXJyb3ctLWRpci1yaWdodCB7XG4gIGxlZnQ6IC0wLjM3NXJlbTtcbiAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKC01MCUpIHJvdGF0ZSgtNDVkZWcpO1xufVxuLnN6aC1tZW51X19hcnJvdy0tZGlyLXRvcCB7XG4gIGJvdHRvbTogLTAuMzc1cmVtO1xuICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoLTUwJSkgcm90YXRlKC0xMzVkZWcpO1xufVxuLnN6aC1tZW51X19hcnJvdy0tZGlyLWJvdHRvbSB7XG4gIHRvcDogLTAuMzc1cmVtO1xuICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoLTUwJSkgcm90YXRlKDQ1ZGVnKTtcbn1cbi5zemgtbWVudV9faXRlbSB7XG4gIGN1cnNvcjogcG9pbnRlcjtcbn1cbi5zemgtbWVudV9faXRlbTpmb2N1cyB7XG4gIG91dGxpbmU6IG5vbmU7XG59XG4uc3poLW1lbnVfX2l0ZW0tLWhvdmVyIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ViZWJlYjtcbn1cbi5zemgtbWVudV9faXRlbS0tZm9jdXNhYmxlIHtcbiAgY3Vyc29yOiBkZWZhdWx0O1xuICBiYWNrZ3JvdW5kLWNvbG9yOiBpbmhlcml0O1xufVxuLnN6aC1tZW51X19pdGVtLS1kaXNhYmxlZCB7XG4gIGN1cnNvcjogZGVmYXVsdDtcbiAgY29sb3I6ICNhYWE7XG59XG4uc3poLW1lbnVfX2dyb3VwIHtcbiAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbn1cbi5zemgtbWVudV9fcmFkaW8tZ3JvdXAge1xuICBtYXJnaW46IDA7XG4gIHBhZGRpbmc6IDA7XG4gIGxpc3Qtc3R5bGU6IG5vbmU7XG59XG4uc3poLW1lbnVfX2RpdmlkZXIge1xuICBoZWlnaHQ6IDFweDtcbiAgbWFyZ2luOiAwLjVyZW0gMDtcbiAgYmFja2dyb3VuZC1jb2xvcjogcmdiYSgwLCAwLCAwLCAwLjEyKTtcbn1cblxuLnN6aC1tZW51LWJ1dHRvbiB7XG4gIGJveC1zaXppbmc6IGJvcmRlci1ib3g7XG59XG5cbi5zemgtbWVudSB7XG4gIHVzZXItc2VsZWN0OiBub25lO1xuICBjb2xvcjogIzIxMjUyOTtcbiAgYm9yZGVyOiBub25lO1xuICBib3JkZXItcmFkaXVzOiAwLjI1cmVtO1xuICBib3gtc2hhZG93OiAwIDNweCA3cHggcmdiYSgwLCAwLCAwLCAwLjEzMyksIDAgMC42cHggMnB4IHJnYmEoMCwgMCwgMCwgMC4xKTtcbiAgbWluLXdpZHRoOiAxMHJlbTtcbiAgcGFkZGluZzogMC41cmVtIDA7XG59XG4uc3poLW1lbnVfX2l0ZW0ge1xuICBkaXNwbGF5OiBmbGV4O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gIHBhZGRpbmc6IDAuMzc1cmVtIDEuNXJlbTtcbn1cbi5zemgtbWVudS1jb250YWluZXItLWl0ZW1UcmFuc2l0aW9uIC5zemgtbWVudV9faXRlbSB7XG4gIHRyYW5zaXRpb24tcHJvcGVydHk6IGJhY2tncm91bmQtY29sb3IsIGNvbG9yO1xuICB0cmFuc2l0aW9uLWR1cmF0aW9uOiAwLjE1cztcbiAgdHJhbnNpdGlvbi10aW1pbmctZnVuY3Rpb246IGVhc2UtaW4tb3V0O1xufVxuLnN6aC1tZW51X19pdGVtLS10eXBlLXJhZGlvIHtcbiAgcGFkZGluZy1sZWZ0OiAyLjJyZW07XG59XG4uc3poLW1lbnVfX2l0ZW0tLXR5cGUtcmFkaW86OmJlZm9yZSB7XG4gIGNvbnRlbnQ6IFwi4peLXCI7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgbGVmdDogMC44cmVtO1xuICB0b3A6IDAuNTVyZW07XG4gIGZvbnQtc2l6ZTogMC44cmVtO1xufVxuLnN6aC1tZW51X19pdGVtLS10eXBlLXJhZGlvLnN6aC1tZW51X19pdGVtLS1jaGVja2VkOjpiZWZvcmUge1xuICBjb250ZW50OiBcIuKXj1wiO1xufVxuLnN6aC1tZW51X19pdGVtLS10eXBlLWNoZWNrYm94IHtcbiAgcGFkZGluZy1sZWZ0OiAyLjJyZW07XG59XG4uc3poLW1lbnVfX2l0ZW0tLXR5cGUtY2hlY2tib3g6OmJlZm9yZSB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgbGVmdDogMC44cmVtO1xufVxuLnN6aC1tZW51X19pdGVtLS10eXBlLWNoZWNrYm94LnN6aC1tZW51X19pdGVtLS1jaGVja2VkOjpiZWZvcmUge1xuICBjb250ZW50OiBcIuKclFwiO1xufVxuLnN6aC1tZW51X19zdWJtZW51ID4gLnN6aC1tZW51X19pdGVtIHtcbiAgcGFkZGluZy1yaWdodDogMi41cmVtO1xufVxuLnN6aC1tZW51X19zdWJtZW51ID4gLnN6aC1tZW51X19pdGVtOjphZnRlciB7XG4gIGNvbnRlbnQ6IFwi4p2vXCI7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgcmlnaHQ6IDFyZW07XG59XG4uc3poLW1lbnVfX2hlYWRlciB7XG4gIGNvbG9yOiAjODg4O1xuICBmb250LXNpemU6IDAuOHJlbTtcbiAgcGFkZGluZzogMC4ycmVtIDEuNXJlbTtcbiAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcbn1cbiJdfQ== */');var pc="ContextMenu-module_menu__x-AtY";function xc(n){const[a,r]=Ns({transition:!0}),[o,i]=t.useState({x:0,y:0}),{canvasRef:l}=n,[s,c]=t.useState([]),{xyToMenuItems:u,onClose:d,onOpen:b}=n;return t.useEffect(()=>{r(!1);const e=l.current;if(!e)return()=>{};const t=e=>{e.preventDefault();const t=u(e.offsetX,e.offsetY);c(t);const n=e.clientX,a=e.clientY+20;i({x:n,y:a}),r(!0),b(e.offsetX,e.offsetY)};return e.addEventListener("contextmenu",t),()=>{e.removeEventListener("contextmenu",t)}},[u]),e.jsx(Qs,{...a,className:pc,anchorPoint:o,onClose:()=>{r(!1),d()},children:s})}s(".ContextMenu-module_menu__x-AtY{display:block}.ContextMenu-module_menu__x-AtY svg{margin-right:10px}.ContextMenu-module_menu__x-AtY .szh-menu{background-color:var(--ps-dropdown-background,#fff);border:1px solid var(--ps-ui-border,#d9d9d9);border-radius:6px;box-shadow:0 6px 16px 0 rgba(0,0,0,.08),0 3px 6px -4px rgba(0,0,0,.12),0 9px 28px 8px rgba(0,0,0,.05);color:var(--ps-ui-foreground-text,#000);font-size:13px;min-width:180px;padding:4px 0}.ContextMenu-module_menu__x-AtY .szh-menu__item{align-items:center;color:inherit;cursor:pointer;display:flex;gap:8px;height:32px;padding:6px 12px;transition:background-color .15s}.ContextMenu-module_menu__x-AtY .szh-menu__item:hover{background-color:var(--ps-ui-element-bg-highlight,#f5f5f5)}.ContextMenu-module_menu__x-AtY .szh-menu__item svg{flex-shrink:0;height:14px;margin-right:0;width:14px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNvbnRleHRNZW51Lm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGdDQUNFLGFBQ0YsQ0FDQSxvQ0FDRSxpQkFDRixDQUNBLDBDQUNFLG1EQUFxRCxDQUNyRCw0Q0FBOEMsQ0FDOUMsaUJBQWtCLENBQ2xCLHFHQUFvSCxDQUlwSCx1Q0FBeUMsQ0FEekMsY0FBZSxDQURmLGVBQWdCLENBRGhCLGFBSUYsQ0FDQSxnREFFRSxrQkFBbUIsQ0FLbkIsYUFBYyxDQURkLGNBQWUsQ0FMZixZQUFhLENBRWIsT0FBUSxDQUVSLFdBQVksQ0FEWixnQkFBaUIsQ0FJakIsZ0NBQ0YsQ0FDQSxzREFDRSwwREFDRixDQUNBLG9EQUdFLGFBQWMsQ0FEZCxXQUFZLENBRVosY0FBZSxDQUhmLFVBSUYiLCJmaWxlIjoiQ29udGV4dE1lbnUubW9kdWxlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubWVudSB7XG4gIGRpc3BsYXk6IGJsb2NrO1xufVxuLm1lbnUgc3ZnIHtcbiAgbWFyZ2luLXJpZ2h0OiAxMHB4O1xufVxuLm1lbnUgOmdsb2JhbCguc3poLW1lbnUpIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcHMtZHJvcGRvd24tYmFja2dyb3VuZCwgI2ZmZik7XG4gIGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLXBzLXVpLWJvcmRlciwgI2Q5ZDlkOSk7XG4gIGJvcmRlci1yYWRpdXM6IDZweDtcbiAgYm94LXNoYWRvdzogMCA2cHggMTZweCAwIHJnYmEoMCwgMCwgMCwgMC4wOCksIDAgM3B4IDZweCAtNHB4IHJnYmEoMCwgMCwgMCwgMC4xMiksIDAgOXB4IDI4cHggOHB4IHJnYmEoMCwgMCwgMCwgMC4wNSk7XG4gIHBhZGRpbmc6IDRweCAwO1xuICBtaW4td2lkdGg6IDE4MHB4O1xuICBmb250LXNpemU6IDEzcHg7XG4gIGNvbG9yOiB2YXIoLS1wcy11aS1mb3JlZ3JvdW5kLXRleHQsICMwMDApO1xufVxuLm1lbnUgOmdsb2JhbCguc3poLW1lbnVfX2l0ZW0pIHtcbiAgZGlzcGxheTogZmxleDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgZ2FwOiA4cHg7XG4gIHBhZGRpbmc6IDZweCAxMnB4O1xuICBoZWlnaHQ6IDMycHg7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgY29sb3I6IGluaGVyaXQ7XG4gIHRyYW5zaXRpb246IGJhY2tncm91bmQtY29sb3IgMC4xNXM7XG59XG4ubWVudSA6Z2xvYmFsKC5zemgtbWVudV9faXRlbSk6aG92ZXIge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wcy11aS1lbGVtZW50LWJnLWhpZ2hsaWdodCwgI2Y1ZjVmNSk7XG59XG4ubWVudSA6Z2xvYmFsKC5zemgtbWVudV9faXRlbSkgc3ZnIHtcbiAgd2lkdGg6IDE0cHg7XG4gIGhlaWdodDogMTRweDtcbiAgZmxleC1zaHJpbms6IDA7XG4gIG1hcmdpbi1yaWdodDogMDtcbn0iXX0= */");var yc="LogoLink-module_logoLink__oWRri";function vc(){return e.jsxs("a",{className:yc,href:"https://github.com/pyroscope-io/pyroscope/",target:"_blank",rel:"noreferrer",children:[e.jsxs("svg",{width:"22px",height:"22px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("defs",{children:e.jsxs("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.jsx("stop",{stopColor:"#FFB90C",offset:"0%"}),e.jsx("stop",{stopColor:"#F9243A",offset:"38.390924%"}),e.jsx("stop",{stopColor:"#F9243A",offset:"50.5405%"}),e.jsx("stop",{stopColor:"#B51424",offset:"73.98091%"}),e.jsx("stop",{stopColor:"#B51424",offset:"100%"})]})}),e.jsx("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:e.jsx("g",{id:"fire-part",transform:"translate(148.516736, 0.000000)",fillRule:"nonzero",children:e.jsxs("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.jsx("g",{id:"g70",transform:"translate(-0.000091, 0.685815)",fill:"url(#radialGradient-1)",children:e.jsx("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.jsx("g",{id:"blue",transform:"translate(191.447039, 191.331780)",children:e.jsxs("g",{id:"g88",transform:"translate(-0.000063, 0.685930)",children:[e.jsx("g",{id:"g94",transform:"translate(0.177296, 0.699054)",fill:"#3EC1D3",children:e.jsx("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.jsx("g",{id:"g98",transform:"translate(29.362379, 172.629585)",fill:"#FFFFFF",children:e.jsx("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.jsx("span",{children:"Pyroscope"})]})}s(".LogoLink-module_logoLink__oWRri{bottom:0;color:var(--ps-neutral-2);font-weight:500;opacity:.5;position:absolute;right:0;text-decoration:none;z-index:0}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkxvZ29MaW5rLm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGlDQU9FLFFBQVMsQ0FIVCx5QkFBMEIsQ0FGMUIsZUFBZ0IsQ0FDaEIsVUFBWSxDQUVaLGlCQUFrQixDQUNsQixPQUFRLENBTFIsb0JBQXFCLENBT3JCLFNBQ0YiLCJmaWxlIjoiTG9nb0xpbmsubW9kdWxlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubG9nb0xpbmsge1xuICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG4gIGZvbnQtd2VpZ2h0OiA1MDA7XG4gIG9wYWNpdHk6IDAuNTtcbiAgY29sb3I6IHZhcigtLXBzLW5ldXRyYWwtMik7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgcmlnaHQ6IDA7XG4gIGJvdHRvbTogMDtcbiAgei1pbmRleDogMDtcbn0iXX0= */");const Gc=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"64 64 896 896",fill:"currentColor",children:e.jsx("path",{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z"})}),Qc=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"64 64 896 896",fill:"currentColor",children:e.jsx("path",{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"})}),Ic=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"64 64 896 896",fill:"currentColor",children:e.jsx("path",{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z"})}),Bc=({fill:t})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",fill:t,children:[e.jsx("g",{id:"shape_squiggle",children:e.jsx("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"})}),e.jsxs("g",{id:"Layer_4",children:[e.jsx("rect",{x:"2",y:"8",width:"60",height:"14",rx:"3.94",ry:"3.94"}),e.jsx("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"})]})]}),Fc=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",children:[e.jsx("g",{id:"ab_shape",children:e.jsxs("g",{children:[e.jsx("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.jsx("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.jsx("g",{id:"arrows",children:e.jsx("polygon",{points:"62 54 52 45 52 51 35 51 35 57 52 57 52 63 62 54"})})]}),Zc=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",children:[e.jsx("g",{id:"yz_shape",children:e.jsxs("g",{children:[e.jsx("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.jsx("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.jsx("g",{id:"arrows",children:e.jsx("polygon",{points:"12 51 12 45 2 54 12 63 12 57 29 57 29 51 12 51"})})]});var wc="Header-module_flamegraphHeader__nIrXP",Nc="Header-module_row__P7-2L",Lc="Header-module_flamegraphTitle__sjsvB";function Wc(t){const{format:n,units:a,toolbarVisible:r}=t,o={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:""},i=r&&"single"===n?e.jsx("div",{className:`${Nc} ${Lc}`,role:"heading","aria-level":2,children:o[a]&&e.jsxs(e.Fragment,{children:["Frame width represents ",o[a]]})}):null;return i?e.jsx("div",{className:wc,children:e.jsx("div",{children:i})}):null}s(".Header-module_flamegraphHeader__nIrXP{align-items:flex-start;display:flex;justify-content:space-between;padding-bottom:5px}.Header-module_flamegraphHeader__nIrXP>div:first-child{width:100%}.Header-module_row__P7-2L{display:flex;justify-content:center}.Header-module_flamegraphTitle__sjsvB{display:block;text-align:center;width:100%}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkhlYWRlci5tb2R1bGUuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHVDQUtFLHNCQUF1QixDQUh2QixZQUFhLENBQ2IsNkJBQThCLENBRjlCLGtCQUtGLENBRUEsdURBQ0UsVUFDRixDQU9BLDBCQUNFLFlBQWEsQ0FDYixzQkFDRixDQUVBLHNDQUVFLGFBQWMsQ0FDZCxpQkFBa0IsQ0FGbEIsVUFHRiIsImZpbGUiOiJIZWFkZXIubW9kdWxlLmNzcyIsInNvdXJjZXNDb250ZW50IjpbIi5mbGFtZWdyYXBoSGVhZGVyIHtcbiAgcGFkZGluZy1ib3R0b206IDVweDtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuXG4gIGFsaWduLWl0ZW1zOiBmbGV4LXN0YXJ0O1xufVxuXG4uZmxhbWVncmFwaEhlYWRlciA+IGRpdjpmaXJzdC1jaGlsZCB7XG4gIHdpZHRoOiAxMDAlO1xufVxuXG4uZmxhbWVncmFwaEhlYWRlciBidXR0b24ge1xuICAvKiBtYXJnaW46IGF1dG87XG4gIGRpc3BsYXk6IGJsb2NrOyAqL1xufVxuXG4ucm93IHtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG59XG5cbi5mbGFtZWdyYXBoVGl0bGUge1xuICB3aWR0aDogMTAwJTtcbiAgZGlzcGxheTogYmxvY2s7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbn1cbiJdfQ== */");var Cc="FlamegraphBreadcrumb-module_bar__v8uhn",Xc="FlamegraphBreadcrumb-module_chip__pdv1k",Rc="FlamegraphBreadcrumb-module_focusTooltip__nX30y",kc="FlamegraphBreadcrumb-module_separator__Zj-rC",Uc="FlamegraphBreadcrumb-module_chipSeparator__S-Gld",Dc="FlamegraphBreadcrumb-module_unitLabel__bjHEA",_c="FlamegraphBreadcrumb-module_focusIcon__aJBb6",Yc="FlamegraphBreadcrumb-module_ofTotal__kk4dt",jc="FlamegraphBreadcrumb-module_clearBtn__spimK";function Vc(t){const{totalValueText:n,totalSamplesText:a,samplesLabel:r,unitLabel:o,hasFocus:i,focusPercent:l,focusLabel:s,ofTotalPlacement:c="after",ofTotalLabel:u,clearFocusLabel:d,onClearFocus:b}=t,m=s&&s.trim().length>0?s:void 0;return e.jsxs("div",{className:Cc,"aria-live":"polite",children:[e.jsxs("span",{className:Xc,children:[e.jsx("span",{children:n}),e.jsx("span",{className:kc,children:"|"}),e.jsxs("span",{children:[a," ",r]}),e.jsxs("span",{className:Dc,children:["(",o,")"]})]}),i&&void 0!==l&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:Uc,children:">"}),e.jsxs("span",{className:`${Xc} ${Rc}`,"data-tooltip":m,children:[e.jsx("span",{className:_c,"aria-hidden":"true",children:e.jsxs("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6-10-6-10-6Z"}),e.jsx("circle",{cx:"12",cy:"12",r:"3.2"})]})}),"before"===c?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:Yc,children:u}),e.jsxs("span",{children:[l.toFixed(2),"%"]})]}):e.jsxs(e.Fragment,{children:[e.jsxs("span",{children:[l.toFixed(2),"%"]}),e.jsx("span",{className:Yc,children:u})]}),e.jsx("button",{type:"button",className:jc,"aria-label":d,onClick:e=>{e.preventDefault(),e.stopPropagation(),b()},children:"×"})]})]})]})}s('.FlamegraphBreadcrumb-module_bar__v8uhn{align-items:center;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:6px 0;width:100%}.FlamegraphBreadcrumb-module_chip__pdv1k{align-items:center;background-color:var(--ps-ui-element-bg-primary);border:1px solid var(--ps-ui-border);border-radius:999px;color:var(--ps-ui-foreground-text);display:inline-flex;font-size:12px;gap:6px;line-height:1.2;padding:4px 10px}.FlamegraphBreadcrumb-module_focusTooltip__nX30y{position:relative}.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:hover:after,.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:hover:before{opacity:1;transform:translate(-50%,-6px)}.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:after{background:var(--ps-ui-foreground);border:1px solid var(--ps-ui-border);border-radius:6px;color:var(--ps-ui-foreground-text);content:attr(data-tooltip);font-size:12px;padding:6px 8px;white-space:nowrap;z-index:3}.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:after,.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:before{bottom:100%;left:50%;opacity:0;pointer-events:none;position:absolute;transform:translate(-50%,-2px);transition:opacity .12s ease,transform .12s ease}.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:before{border-color:var(--ps-ui-border) transparent transparent transparent;border-style:solid;border-width:6px 6px 0;content:"";z-index:2}.FlamegraphBreadcrumb-module_separator__Zj-rC{opacity:.6}.FlamegraphBreadcrumb-module_chipSeparator__S-Gld{color:var(--ps-ui-foreground-text);opacity:.6}.FlamegraphBreadcrumb-module_unitLabel__bjHEA{opacity:.8}.FlamegraphBreadcrumb-module_focusIcon__aJBb6{align-items:center;color:currentColor;display:inline-flex;font-size:12px}.FlamegraphBreadcrumb-module_ofTotal__kk4dt{opacity:.8}.FlamegraphBreadcrumb-module_clearBtn__spimK{background:transparent;border:none;color:var(--ps-toolbar-icon-color);cursor:pointer;font-size:14px;line-height:1;margin-left:4px;padding:0}.FlamegraphBreadcrumb-module_clearBtn__spimK:focus-visible{border-radius:4px;outline:1px solid var(--ps-ui-border)}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZsYW1lZ3JhcGhCcmVhZGNydW1iLm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHdDQUVFLGtCQUFtQixDQURuQixZQUFhLENBSWIsY0FBZSxDQUNmLE9BQVEsQ0FIUixzQkFBdUIsQ0FJdkIsWUFBYSxDQUhiLFVBSUYsQ0FFQSx5Q0FFRSxrQkFBbUIsQ0FNbkIsZ0RBQWlELENBQ2pELG9DQUFxQyxDQUpyQyxtQkFBb0IsQ0FLcEIsa0NBQW1DLENBVG5DLG1CQUFvQixDQUtwQixjQUFlLENBSGYsT0FBUSxDQUlSLGVBQWdCLENBSGhCLGdCQU9GLENBRUEsaURBQ0UsaUJBQ0YsQ0FFQSx1SkFFRSxTQUFVLENBQ1YsOEJBQ0YsQ0FFQSxxRUFRRSxrQ0FBbUMsQ0FFbkMsb0NBQXFDLENBSHJDLGlCQUFrQixDQUVsQixrQ0FBbUMsQ0FSbkMsMEJBQTJCLENBVTNCLGNBQWUsQ0FMZixlQUFnQixDQU1oQixrQkFBbUIsQ0FJbkIsU0FDRixDQUVBLDJJQWZFLFdBQVksQ0FEWixRQUFTLENBV1QsU0FBVSxDQURWLG1CQUFvQixDQVhwQixpQkFBa0IsQ0FHbEIsOEJBQWdDLENBVWhDLGdEQWlCRixDQWJBLHNFQVFFLG9FQUFxRSxDQURyRSxrQkFBbUIsQ0FEbkIsc0JBQTJCLENBTDNCLFVBQVcsQ0FXWCxTQUNGLENBRUEsOENBQ0UsVUFDRixDQUVBLGtEQUVFLGtDQUFtQyxDQURuQyxVQUVGLENBRUEsOENBQ0UsVUFDRixDQUVBLDhDQUdFLGtCQUFtQixDQUNuQixrQkFBbUIsQ0FGbkIsbUJBQW9CLENBRHBCLGNBSUYsQ0FFQSw0Q0FDRSxVQUNGLENBRUEsNkNBSUUsc0JBQXVCLENBRHZCLFdBQVksQ0FFWixrQ0FBbUMsQ0FDbkMsY0FBZSxDQUNmLGNBQWUsQ0FDZixhQUFjLENBUGQsZUFBZ0IsQ0FDaEIsU0FPRixDQUVBLDJEQUVFLGlCQUFrQixDQURsQixxQ0FFRiIsImZpbGUiOiJGbGFtZWdyYXBoQnJlYWRjcnVtYi5tb2R1bGUuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5iYXIge1xuICBkaXNwbGF5OiBmbGV4O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgd2lkdGg6IDEwMCU7XG4gIGZsZXgtd3JhcDogd3JhcDtcbiAgZ2FwOiA4cHg7XG4gIG1hcmdpbjogNnB4IDA7XG59XG5cbi5jaGlwIHtcbiAgZGlzcGxheTogaW5saW5lLWZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGdhcDogNnB4O1xuICBwYWRkaW5nOiA0cHggMTBweDtcbiAgYm9yZGVyLXJhZGl1czogOTk5cHg7XG4gIGZvbnQtc2l6ZTogMTJweDtcbiAgbGluZS1oZWlnaHQ6IDEuMjtcbiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcHMtdWktZWxlbWVudC1iZy1wcmltYXJ5KTtcbiAgYm9yZGVyOiAxcHggc29saWQgdmFyKC0tcHMtdWktYm9yZGVyKTtcbiAgY29sb3I6IHZhcigtLXBzLXVpLWZvcmVncm91bmQtdGV4dCk7XG59XG5cbi5mb2N1c1Rvb2x0aXAge1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG59XG5cbi5mb2N1c1Rvb2x0aXBbZGF0YS10b29sdGlwXTpob3Zlcjo6YWZ0ZXIsXG4uZm9jdXNUb29sdGlwW2RhdGEtdG9vbHRpcF06aG92ZXI6OmJlZm9yZSB7XG4gIG9wYWNpdHk6IDE7XG4gIHRyYW5zZm9ybTogdHJhbnNsYXRlKC01MCUsIC02cHgpO1xufVxuXG4uZm9jdXNUb29sdGlwW2RhdGEtdG9vbHRpcF06OmFmdGVyIHtcbiAgY29udGVudDogYXR0cihkYXRhLXRvb2x0aXApO1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIGxlZnQ6IDUwJTtcbiAgYm90dG9tOiAxMDAlO1xuICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgtNTAlLCAtMnB4KTtcbiAgcGFkZGluZzogNnB4IDhweDtcbiAgYm9yZGVyLXJhZGl1czogNnB4O1xuICBiYWNrZ3JvdW5kOiB2YXIoLS1wcy11aS1mb3JlZ3JvdW5kKTtcbiAgY29sb3I6IHZhcigtLXBzLXVpLWZvcmVncm91bmQtdGV4dCk7XG4gIGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLXBzLXVpLWJvcmRlcik7XG4gIGZvbnQtc2l6ZTogMTJweDtcbiAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcbiAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG4gIG9wYWNpdHk6IDA7XG4gIHRyYW5zaXRpb246IG9wYWNpdHkgMTIwbXMgZWFzZSwgdHJhbnNmb3JtIDEyMG1zIGVhc2U7XG4gIHotaW5kZXg6IDM7XG59XG5cbi5mb2N1c1Rvb2x0aXBbZGF0YS10b29sdGlwXTo6YmVmb3JlIHtcbiAgY29udGVudDogXCJcIjtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBsZWZ0OiA1MCU7XG4gIGJvdHRvbTogMTAwJTtcbiAgdHJhbnNmb3JtOiB0cmFuc2xhdGUoLTUwJSwgLTJweCk7XG4gIGJvcmRlci13aWR0aDogNnB4IDZweCAwIDZweDtcbiAgYm9yZGVyLXN0eWxlOiBzb2xpZDtcbiAgYm9yZGVyLWNvbG9yOiB2YXIoLS1wcy11aS1ib3JkZXIpIHRyYW5zcGFyZW50IHRyYW5zcGFyZW50IHRyYW5zcGFyZW50O1xuICBwb2ludGVyLWV2ZW50czogbm9uZTtcbiAgb3BhY2l0eTogMDtcbiAgdHJhbnNpdGlvbjogb3BhY2l0eSAxMjBtcyBlYXNlLCB0cmFuc2Zvcm0gMTIwbXMgZWFzZTtcbiAgei1pbmRleDogMjtcbn1cblxuLnNlcGFyYXRvciB7XG4gIG9wYWNpdHk6IDAuNjtcbn1cblxuLmNoaXBTZXBhcmF0b3Ige1xuICBvcGFjaXR5OiAwLjY7XG4gIGNvbG9yOiB2YXIoLS1wcy11aS1mb3JlZ3JvdW5kLXRleHQpO1xufVxuXG4udW5pdExhYmVsIHtcbiAgb3BhY2l0eTogMC44O1xufVxuXG4uZm9jdXNJY29uIHtcbiAgZm9udC1zaXplOiAxMnB4O1xuICBkaXNwbGF5OiBpbmxpbmUtZmxleDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgY29sb3I6IGN1cnJlbnRDb2xvcjtcbn1cblxuLm9mVG90YWwge1xuICBvcGFjaXR5OiAwLjg7XG59XG5cbi5jbGVhckJ0biB7XG4gIG1hcmdpbi1sZWZ0OiA0cHg7XG4gIHBhZGRpbmc6IDA7XG4gIGJvcmRlcjogbm9uZTtcbiAgYmFja2dyb3VuZDogdHJhbnNwYXJlbnQ7XG4gIGNvbG9yOiB2YXIoLS1wcy10b29sYmFyLWljb24tY29sb3IpO1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIGZvbnQtc2l6ZTogMTRweDtcbiAgbGluZS1oZWlnaHQ6IDE7XG59XG5cbi5jbGVhckJ0bjpmb2N1cy12aXNpYmxlIHtcbiAgb3V0bGluZTogMXB4IHNvbGlkIHZhcigtLXBzLXVpLWJvcmRlcik7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbn0iXX0= */');var Sc="styles-module_flamegraphPane__ejguD",Mc="styles-module_fitModeItem__0UBwN",Jc="styles-module_sandwichItem__WYvnd",Oc="styles-module_flamegraphFrame__9ZW-z";function Ac(n){const a=t.useRef(null),r=t.useRef(null),i=t.useRef(),l=t.useRef(),s=t.useRef(null),c=t.useRef(null),u=t.useRef(null),d=t.useRef({rect:!1,text:!1}),b=t.useRef(!1),m=lc(),h=t.useRef({lastWidth:0,lastHeight:0}),f="undefined"!=typeof window&&"undefined"!=typeof OffscreenCanvas&&"transferControlToOffscreen"in HTMLCanvasElement.prototype,[g,p]=t.useState(f),x=t.useRef(!1);t.useEffect(()=>{"undefined"==typeof window||b.current||(b.current=!0)},[f]),t.useEffect(()=>{"undefined"==typeof window||x.current||(x.current=!0,f||console.info("[flamegraph] OffscreenCanvas unavailable, using main thread renderer"))},[f]);const y=t.useMemo(()=>({collapsedLevelsSingular:m.collapsedLevelsSingular,collapsedLevelsPlural:m.collapsedLevelsPlural,isZh:"Location"!==m.location}),[m.collapsedLevelsSingular,m.collapsedLevelsPlural,m.location]),v=t.useCallback(e=>({name:e.name,goodColor:e.goodColor.rgb().array(),neutralColor:e.neutralColor.rgb().array(),badColor:e.badColor.rgb().array(),colors:e.colors.map(e=>e.rgb().array())}),[]),[G,Q]=t.useState(fr.nothing()),{flamebearer:I,focusedNode:B,fitMode:F,updateFitMode:Z,highlightQuery:w,zoom:N,toolbarVisible:L,headerVisible:W=!0,disableClick:C=!1,showSingleLevel:X=!1,showCredit:R,setActiveItem:k,selectedItem:U,updateView:D,enableSandwichView:_=!0,breadcrumb:Y}=n,{onZoom:j,onReset:V,isDirty:S,onFocusOnNode:M}=n,{"data-testid":J}=n,{palette:O,setPalette:A}=n,E=t.useCallback(Js(()=>{$(),q()},50),[]);t.useEffect(()=>{if(!g)return()=>{};let e;try{e=function(){const e=new URL("undefined"==typeof document?require("url").pathToFileURL(__filename).href:o&&"SCRIPT"===o.tagName.toUpperCase()&&o.src||new URL("index.cjs.js",document.baseURI).href),t=e.pathname,n=t.includes("/src/"),a=t.includes("/dist/");if(t.includes("/node_modules/.vite/deps/")){const t=new URL("../../@kylincloud/flamegraph/dist/flamegraphRenderWorker.js",e);try{return new Worker(t,{type:"module"})}catch(e){throw console.error("[flamegraph] worker create failed (vite deps)",e),e}}const r=n?new URL("./flamegraphRenderWorker.ts",e):new URL("./flamegraphRenderWorker.js",e);try{return new Worker(r,{type:"module"})}catch(e){throw console.error("[flamegraph] worker create failed",e,{workerUrl:r.href,isFromSrc:n,isFromDist:a}),e}}()}catch(e){return console.warn("[flamegraph] render worker init failed, fallback to main thread",e),p(!1),()=>{}}return b.current||(b.current=!0),console.info("[flamegraph] render worker created"),e.addEventListener("error",e=>{console.error("[flamegraph] render worker error",e)}),e.addEventListener("messageerror",e=>{console.error("[flamegraph] render worker message error",e)}),s.current=e,setTimeout(()=>{$(),q()},0),()=>{e.terminate(),s.current=null,c.current=null,u.current=null,d.current={rect:!1,text:!1}}},[g]),_s(a,()=>{if(i){if(a.current){const e=a.current.clientWidth,t=a.current.clientHeight,n=h.current;if(!(Math.abs(e-n.lastWidth)>=2))return;n.lastWidth=e,n.lastHeight=t}E()}});const z=(e,t)=>ne().xyToBar(e,t).map(e=>({left:te().offsetLeft+e.x,top:te().offsetTop+e.y,width:e.width})),T=t.useCallback((t,n)=>{const a=S(),r=ne().xyToBar(t,n),o=r.isJust?r.value.name:"";return[e.jsxs(Rs,{disabled:!a,onClick:V,children:[e.jsx(Oa,{icon:Bl.faRedo}),m.resetView]},"reset"),(()=>{const t=r.mapOrElse(()=>!1,()=>!0),n=r.mapOrElse(()=>()=>{},e=>M.bind(null,e.i,e.j));return e.jsxs(Rs,{disabled:!t,onClick:n,children:[e.jsx(Oa,{icon:Yl.faCompressAlt}),m.collapseNodesAbove]},"focus")})(),e.jsxs(Rs,{onClick:()=>{navigator.clipboard&&navigator.clipboard.writeText(o)},children:[e.jsx(Oa,{icon:Nl.faCopy}),m.copyFunctionName]},"copy"),(()=>{const t=U.isJust&&U.value===o?m.clearHighlight:m.highlightSimilarNodes;return e.jsxs(Rs,{onClick:()=>{k({name:o})},children:[e.jsx(Oa,{icon:Rl.faHighlighter}),t]},"highlight-similar-nodes")})(),(()=>{if(!D||!_)return null;return e.jsxs(Rs,{className:Jc,onClick:()=>{D("sandwich"),k({name:o})},children:[e.jsx(Bc,{fill:"black"}),m.openInSandwichView]},"open-in-sandwich-view")})(),(()=>{const t=F===Or;return e.jsxs(Rs,{className:Mc,onClick:()=>{Z(t?Jr:Or)},children:[t?e.jsx(Zc,{}):e.jsx(Fc,{}),t?m.showTextTailFirst:m.showTextHeadFirst]},"fit-mode")})()].filter(Boolean)},[i,U,F,S,V,M,k,D,m,_]),H=()=>{if(a.current){const e=new bl(I,a.current,B,F,w,N,O,y);i.current=e}if(r.current){const e=new bl(I,r.current,B,F,w,N,O,y);l.current=e}},P=t.useCallback(()=>{if(!g||!s.current)return!1;const e=s.current;if(a.current&&!c.current)try{const t=a.current.transferControlToOffscreen();c.current=t,e.postMessage({type:"init",payload:{kind:"rect",canvas:t}},[t]),d.current.rect=!0}catch(e){console.error("[flamegraph] offscreen init failed (rect)",e)}if(r.current&&!u.current)try{const t=r.current.transferControlToOffscreen();u.current=t,e.postMessage({type:"init",payload:{kind:"text",canvas:t}},[t]),d.current.text=!0}catch(e){console.error("[flamegraph] offscreen init failed (text)",e)}return!0},[g]);t.useEffect(()=>{H(),$(),q()},[O,y]),t.useEffect(()=>{H(),$(),q()},[a.current,I,B,F,N]),t.useEffect(()=>{H(),$(),q()},[w]);const K=(e,t)=>{if(!g)return!1;if(!s.current)return!0;if(!P())return!0;const n="rect"===e?a.current:r.current,o=(null==n?void 0:n.clientWidth)||(null==n?void 0:n.width)||0,i={kind:e,flamebearer:I,focusedNode:B.isJust?B.value:null,fitMode:F,highlightQuery:w,zoom:N.isJust?N.value:null,palette:v(O),messages:y,renderRects:t.renderRects,renderText:t.renderText,width:o,devicePixelRatio:"undefined"!=typeof window&&window.devicePixelRatio||1};return s.current.postMessage({type:"render",payload:i}),!0},$=()=>{var e,t,n;K("rect",{renderText:!1})||(null===(e=null==a?void 0:a.current)||void 0===e||e.setAttribute("data-state","rendering"),null===(t=null==i?void 0:i.current)||void 0===t||t.render({renderText:!1}),null===(n=null==a?void 0:a.current)||void 0===n||n.setAttribute("data-state","rendered"))},q=()=>{var e,t,n;K("text",{renderRects:!1})||(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({renderRects:!1}),null===(n=null==r?void 0:r.current)||void 0===n||n.setAttribute("data-state","rendered"))},ee=!I||I&&I.names.length<=1,te=()=>{if(!a.current)throw new Error("Missing canvas");return a.current},ne=()=>{if(!i.current)throw new Error("Missing canvas");return i.current};return e.jsxs("div",{"data-testid":"flamegraph-view",className:hl(Sc,{"vertical-orientation":"double"===I.format}),children:[e.jsxs("div",{className:Oc,children:[Y&&e.jsx(Vc,{totalValueText:Y.totalValueText,totalSamplesText:Y.totalSamplesText,samplesLabel:Y.samplesLabel,unitLabel:Y.unitLabel,hasFocus:Y.hasFocus,focusPercent:Y.focusPercent,focusLabel:Y.focusLabel,ofTotalPlacement:Y.ofTotalPlacement,ofTotalLabel:Y.ofTotalLabel,clearFocusLabel:Y.clearFocusLabel,onClearFocus:Y.onClearFocus}),W&&e.jsx(Wc,{format:I.format,units:I.units,toolbarVisible:L}),e.jsxs("div",{"data-testid":J,style:{position:"relative",opacity:ee&&!X?0:1},children:[e.jsx("canvas",{height:"0","data-testid":"flamegraph-canvas","data-highlightquery":w,className:hl("flamegraph-canvas",Os),ref:a,onClick:C?void 0:e=>{const t=ne().xyToBar(e.nativeEvent.offsetX,e.nativeEvent.offsetY);t.match({Nothing:()=>{},Just:e=>{N.match({Nothing:()=>{j(t)},Just:n=>{e.i===n.i&&e.j===n.j?j(fr.nothing()):j(t)}})}})}}),e.jsx("canvas",{height:"0","data-testid":"flamegraph-text-canvas",className:hl("flamegraph-text-canvas",As),ref:r}),i&&a&&e.jsx(zs,{barHeight:Wr,canvasRef:a,zoom:N,xyToHighlightData:z}),i&&e.jsx(Ps,{barHeight:Wr,node:G})]}),R?e.jsx(vc,{}):""]}),i&&e.jsx(fc,{format:I.format,canvasRef:a,xyToData:(e,t)=>ne().xyToBar(e,t),numTicks:I.numTicks,sampleRate:I.sampleRate,leftTicks:"double"===I.format?I.leftTicks:0,rightTicks:"double"===I.format?I.rightTicks:0,units:I.units,palette:O}),!C&&i&&a&&e.jsx(xc,{canvasRef:a,xyToMenuItems:T,onClose:()=>{Q(fr.nothing())},onOpen:(e,t)=>{Q(z(e,t))}})]})}s(".styles-module_flamegraphPane__ejguD{flex:1;position:relative}.styles-module_flamegraphPane__ejguD .styles-module_fitModeItem__0UBwN svg,.styles-module_flamegraphPane__ejguD .styles-module_sandwichItem__WYvnd svg{margin-right:0;width:1em}.styles-module_flamegraphFrame__9ZW-z{background-color:transparent;border:1px solid var(--ps-ui-border);border-radius:6px;min-height:var(--kylin-flamegraph-pane-min-height,320px);padding:6px 8px 8px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxxQ0FDRSxNQUFPLENBQ1AsaUJBQ0YsQ0FDQSx1SkFHRSxjQUFlLENBRGYsU0FFRixDQUVBLHNDQUlFLDRCQUE2QixDQUg3QixvQ0FBcUMsQ0FDckMsaUJBQWtCLENBR2xCLHdEQUEwRCxDQUYxRCxtQkFHRiIsImZpbGUiOiJzdHlsZXMubW9kdWxlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuZmxhbWVncmFwaFBhbmUge1xuICBmbGV4OiAxO1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG59XG4uZmxhbWVncmFwaFBhbmUgLmZpdE1vZGVJdGVtIHN2Zyxcbi5mbGFtZWdyYXBoUGFuZSAuc2FuZHdpY2hJdGVtIHN2ZyB7XG4gIHdpZHRoOiAxZW07XG4gIG1hcmdpbi1yaWdodDogMDtcbn1cblxuLmZsYW1lZ3JhcGhGcmFtZSB7XG4gIGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLXBzLXVpLWJvcmRlcik7XG4gIGJvcmRlci1yYWRpdXM6IDZweDtcbiAgcGFkZGluZzogNnB4IDhweCA4cHg7XG4gIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50O1xuICBtaW4taGVpZ2h0OiB2YXIoLS1reWxpbi1mbGFtZWdyYXBoLXBhbmUtbWluLWhlaWdodCwgMzIwcHgpO1xufSJdfQ== */");var Ec,zc={exports:{}};
|
|
13
13
|
/*!
|
|
14
14
|
Copyright (c) 2018 Jed Watson.
|
|
15
15
|
Licensed under the MIT License (MIT), see
|