@perses-dev/prometheus-plugin 0.55.0 → 0.57.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__mf/js/Prometheus.2bb892ab.js +6 -0
- package/__mf/js/async/1233.0ab88b51.js +1 -0
- package/__mf/js/async/1324.ce01eced.js +1 -0
- package/__mf/js/async/1432.0c3e4ed0.js +1 -0
- package/__mf/js/async/1490.7e5068f1.js +22 -0
- package/__mf/js/async/1605.dc180cb8.js +110 -0
- package/__mf/js/async/1616.7587ce79.js +1 -0
- package/__mf/js/async/1728.af16c4ec.js +1 -0
- package/__mf/js/async/1969.372d36b8.js +1 -0
- package/__mf/js/async/2043.d0fbb886.js +2 -0
- package/__mf/js/async/2186.e58838a5.js +38 -0
- package/__mf/js/async/2506.1e336b3b.js +1 -0
- package/__mf/js/async/2984.7182c2f5.js +1 -0
- package/__mf/js/async/2999.1d8347df.js +1 -0
- package/__mf/js/async/3184.6b4ad42e.js +1 -0
- package/__mf/js/async/3664.ba8b26b6.js +2 -0
- package/__mf/js/async/392.7cda691a.js +2 -0
- package/__mf/js/async/3963.5fef6ffb.js +1 -0
- package/__mf/js/async/3996.69a9c1dc.js +1 -0
- package/__mf/js/async/{1964.1d168a86.js → 4121.828d661d.js} +2 -2
- package/__mf/js/async/4626.173e602a.js +1 -0
- package/__mf/js/async/4987.c12b89cb.js +1 -0
- package/__mf/js/async/{8930.700a5439.js → 5002.e4f54e8e.js} +1 -1
- package/__mf/js/async/5071.e1c33fa7.js +1 -0
- package/__mf/js/async/529.2303b01b.js +1 -0
- package/__mf/js/async/5440.c13c3533.js +2 -0
- package/__mf/js/async/5501.6166367c.js +2 -0
- package/__mf/js/async/{5214.0fca84ed.js → 5587.4d72fc35.js} +1 -1
- package/__mf/js/async/5763.4ba478ff.js +1 -0
- package/__mf/js/async/5922.d1619ac1.js +1 -0
- package/__mf/js/async/6149.19799c37.js +7 -0
- package/__mf/js/async/6274.478a68f8.js +2 -0
- package/__mf/js/async/6283.181cb622.js +2 -0
- package/__mf/js/async/6969.b959b6f8.js +1 -0
- package/__mf/js/async/{4062.06f48b93.js → 7177.205c9aaf.js} +1 -1
- package/__mf/js/async/7192.d835931b.js +1 -0
- package/__mf/js/async/7894.9c5245d7.js +1 -0
- package/__mf/js/async/7968.6ac0ce96.js +1 -0
- package/__mf/js/async/7978.9532d5b8.js +1 -0
- package/__mf/js/async/8356.789e1dfb.js +1 -0
- package/__mf/js/async/8470.9b14a625.js +2 -0
- package/__mf/js/async/873.448eab23.js +1 -0
- package/__mf/js/async/8888.59eb50a2.js +1 -0
- package/__mf/js/async/9020.c19782f1.js +1 -0
- package/__mf/js/async/9184.43a8d927.js +1 -0
- package/__mf/js/async/9235.36c3cd8c.js +1 -0
- package/__mf/js/async/9351.715f25c3.js +1 -0
- package/__mf/js/async/941.53b13124.js +2 -0
- package/__mf/js/async/9518.38e38a33.js +1 -0
- package/__mf/js/async/9588.9081c7de.js +1 -0
- package/__mf/js/async/9605.a92ec9c1.js +1 -0
- package/__mf/js/async/9836.00da6086.js +1 -0
- package/__mf/js/async/__federation_expose_PrometheusDatasource.6f63e147.js +1 -0
- package/__mf/js/async/__federation_expose_PrometheusExplorer.584a073d.js +1 -0
- package/__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.40984a4d.js +1 -0
- package/__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.bd3eb00c.js +1 -0
- package/__mf/js/async/__federation_expose_PrometheusPromQLVariable.5cca8417.js +1 -0
- package/__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.f59141f4.js +1 -0
- package/__mf/js/main.9617b605.js +6 -0
- package/lib/bootstrap.js +1 -1
- package/lib/bootstrap.js.map +1 -1
- package/lib/cjs/components/PromQLEditor.js +4 -7
- package/lib/cjs/components/promql/ast.js +10 -10
- package/lib/cjs/components/promql/format.js +3 -3
- package/lib/cjs/components/promql/utils.js +5 -5
- package/lib/cjs/components/query.js +3 -3
- package/lib/cjs/explore/PrometheusExplorer.js +10 -6
- package/lib/cjs/explore/PrometheusMetricsFinder/PrometheusMetricsFinder.js +4 -4
- package/lib/cjs/explore/PrometheusMetricsFinder/display/list/MetricList.js +3 -3
- package/lib/cjs/explore/PrometheusMetricsFinder/filter/FilterInputs.js +4 -4
- package/lib/cjs/explore/PrometheusMetricsFinder/overview/MetricOverview.js +3 -3
- package/lib/cjs/explore/PrometheusMetricsFinder/overview/tabs/JobTab.js +4 -4
- package/lib/cjs/explore/PrometheusMetricsFinder/overview/tabs/OverviewTab.js +4 -4
- package/lib/cjs/explore/PrometheusMetricsFinder/utils.js +5 -5
- package/lib/cjs/index-federation.js +12 -12
- package/lib/cjs/model/parse-sample-values.js +3 -3
- package/lib/cjs/model/prometheus-client.js +29 -19
- package/lib/cjs/model/prometheus-selectors.js +5 -5
- package/lib/cjs/model/time.js +4 -4
- package/lib/cjs/plugins/PrometheusDatasourceEditor.js +175 -2
- package/lib/cjs/plugins/prometheus-datasource.js +17 -9
- package/lib/cjs/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.js +35 -36
- package/lib/cjs/plugins/prometheus-time-series-query/query-editor-model.js +4 -4
- package/lib/cjs/plugins/prometheus-variables.js +48 -83
- package/lib/cjs/utils/utils.js +4 -4
- package/lib/components/PromQLEditor.d.ts +5 -1
- package/lib/components/PromQLEditor.d.ts.map +1 -1
- package/lib/components/PromQLEditor.js +5 -8
- package/lib/components/PromQLEditor.js.map +1 -1
- package/lib/components/TreeNode.js +1 -1
- package/lib/components/TreeNode.js.map +1 -1
- package/lib/components/promql/format.js +1 -1
- package/lib/components/promql/format.js.map +1 -1
- package/lib/explore/PrometheusExplorer.d.ts.map +1 -1
- package/lib/explore/PrometheusExplorer.js +10 -6
- package/lib/explore/PrometheusExplorer.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/PrometheusMetricsFinder.js +1 -1
- package/lib/explore/PrometheusMetricsFinder/PrometheusMetricsFinder.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/display/MetricChip.js +1 -1
- package/lib/explore/PrometheusMetricsFinder/display/MetricChip.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/display/list/MetricList.js +1 -1
- package/lib/explore/PrometheusMetricsFinder/display/list/MetricList.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/filter/FilterInputs.js +1 -1
- package/lib/explore/PrometheusMetricsFinder/filter/FilterInputs.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/filter/FinderFilters.js +1 -1
- package/lib/explore/PrometheusMetricsFinder/filter/FinderFilters.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/MetricOverview.js +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/MetricOverview.js.map +1 -1
- package/lib/model/prometheus-client.d.ts +1 -0
- package/lib/model/prometheus-client.d.ts.map +1 -1
- package/lib/model/prometheus-client.js +19 -9
- package/lib/model/prometheus-client.js.map +1 -1
- package/lib/plugins/MatcherEditor.js +1 -1
- package/lib/plugins/MatcherEditor.js.map +1 -1
- package/lib/plugins/PrometheusDatasourceEditor.d.ts.map +1 -1
- package/lib/plugins/PrometheusDatasourceEditor.js +135 -3
- package/lib/plugins/PrometheusDatasourceEditor.js.map +1 -1
- package/lib/plugins/prometheus-datasource.js +17 -9
- package/lib/plugins/prometheus-datasource.js.map +1 -1
- package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.d.ts.map +1 -1
- package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.js +39 -40
- package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.js.map +1 -1
- package/lib/plugins/prometheus-time-series-query/get-time-series-data.d.ts.map +1 -1
- package/lib/plugins/prometheus-time-series-query/get-time-series-data.js.map +1 -1
- package/lib/plugins/prometheus-variables.d.ts.map +1 -1
- package/lib/plugins/prometheus-variables.js +44 -85
- package/lib/plugins/prometheus-variables.js.map +1 -1
- package/lib/plugins/types.d.ts +1 -0
- package/lib/plugins/types.d.ts.map +1 -1
- package/lib/plugins/types.js.map +1 -1
- package/mf-manifest.json +268 -253
- package/mf-stats.json +271 -254
- package/package.json +7 -7
- package/__mf/js/Prometheus.f0d65264.js +0 -5
- package/__mf/js/async/1339.194207db.js +0 -1
- package/__mf/js/async/1441.c735f7dd.js +0 -1
- package/__mf/js/async/1576.8eac7ce9.js +0 -1
- package/__mf/js/async/212.5fcca998.js +0 -1
- package/__mf/js/async/2178.0f075947.js +0 -2
- package/__mf/js/async/2292.57d8fd0d.js +0 -2
- package/__mf/js/async/2472.2134f9f7.js +0 -22
- package/__mf/js/async/3224.b63f87bf.js +0 -1
- package/__mf/js/async/3507.f1653337.js +0 -101
- package/__mf/js/async/3749.3ecd9372.js +0 -1
- package/__mf/js/async/3863.7192dfdf.js +0 -2
- package/__mf/js/async/3960.3eedafbd.js +0 -2
- package/__mf/js/async/3980.0b0d272c.js +0 -2
- package/__mf/js/async/4075.dab1b7b8.js +0 -1
- package/__mf/js/async/4238.c48b1950.js +0 -1
- package/__mf/js/async/4421.6ebf935f.js +0 -1
- package/__mf/js/async/4535.f24704ea.js +0 -1
- package/__mf/js/async/4576.f42daf99.js +0 -1
- package/__mf/js/async/4665.cad36935.js +0 -1
- package/__mf/js/async/5257.ce463cb7.js +0 -1
- package/__mf/js/async/5409.955ffd51.js +0 -1
- package/__mf/js/async/5614.cce8ba96.js +0 -1
- package/__mf/js/async/5724.794828e3.js +0 -1
- package/__mf/js/async/5774.a3fae698.js +0 -1
- package/__mf/js/async/5790.a9b31ca8.js +0 -1
- package/__mf/js/async/5981.eb502d27.js +0 -2
- package/__mf/js/async/6292.2afe0c6d.js +0 -1
- package/__mf/js/async/6341.70ddfbe9.js +0 -7
- package/__mf/js/async/6377.c40920f2.js +0 -2
- package/__mf/js/async/6620.5a15a075.js +0 -2
- package/__mf/js/async/6770.7099bb3b.js +0 -1
- package/__mf/js/async/684.4495f632.js +0 -1
- package/__mf/js/async/694.8462a746.js +0 -1
- package/__mf/js/async/7272.6fa2f127.js +0 -1
- package/__mf/js/async/7376.2e948f2b.js +0 -1
- package/__mf/js/async/738.a1ffff79.js +0 -1
- package/__mf/js/async/7740.a8777825.js +0 -1
- package/__mf/js/async/8045.7f554a45.js +0 -10
- package/__mf/js/async/8164.bb3d3363.js +0 -1
- package/__mf/js/async/8216.e689c178.js +0 -1
- package/__mf/js/async/8488.cbbe542b.js +0 -1
- package/__mf/js/async/8587.40df6f5c.js +0 -1
- package/__mf/js/async/8706.08030938.js +0 -1
- package/__mf/js/async/9010.bdb2ef97.js +0 -1
- package/__mf/js/async/9173.915b80af.js +0 -2
- package/__mf/js/async/9550.642ce5ad.js +0 -38
- package/__mf/js/async/9817.70eae424.js +0 -1
- package/__mf/js/async/__federation_expose_PrometheusDatasource.dcb93aae.js +0 -1
- package/__mf/js/async/__federation_expose_PrometheusExplorer.9ab5666d.js +0 -1
- package/__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.0f7697ac.js +0 -1
- package/__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.cd804473.js +0 -1
- package/__mf/js/async/__federation_expose_PrometheusPromQLVariable.4c376d6b.js +0 -1
- package/__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.d4984d73.js +0 -1
- package/__mf/js/main.d76b840e.js +0 -5
- /package/__mf/css/async/{1339.d3010b86.css → 1233.d3010b86.css} +0 -0
- /package/__mf/css/async/{1576.d3010b86.css → 1324.d3010b86.css} +0 -0
- /package/__mf/css/async/{4576.d3010b86.css → 9518.d3010b86.css} +0 -0
- /package/__mf/js/async/{2472.2134f9f7.js.LICENSE.txt → 1490.7e5068f1.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{8045.7f554a45.js.LICENSE.txt → 1605.dc180cb8.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{2292.57d8fd0d.js.LICENSE.txt → 2043.d0fbb886.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6620.5a15a075.js.LICENSE.txt → 3664.ba8b26b6.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5981.eb502d27.js.LICENSE.txt → 392.7cda691a.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{1964.1d168a86.js.LICENSE.txt → 4121.828d661d.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6377.c40920f2.js.LICENSE.txt → 5440.c13c3533.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{2178.0f075947.js.LICENSE.txt → 5501.6166367c.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6341.70ddfbe9.js.LICENSE.txt → 6149.19799c37.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{3960.3eedafbd.js.LICENSE.txt → 6274.478a68f8.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{3980.0b0d272c.js.LICENSE.txt → 6283.181cb622.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{9173.915b80af.js.LICENSE.txt → 8470.9b14a625.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{3863.7192dfdf.js.LICENSE.txt → 941.53b13124.js.LICENSE.txt} +0 -0
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 8045.7f554a45.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.chunk_Prometheus=self.chunk_Prometheus||[]).push([["8045"],{17960:function(e,t,r){r.d(t,{Z:()=>n});function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}},42747:function(e,t,r){r.d(t,{O:()=>m});var n,o={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=r(17960),a=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},u=(0,i.Z)(function(e){return s(e)?e:e.replace(a,"-$&").toLowerCase()}),f=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(l,function(e,t,r){return n={name:t,styles:r,next:n},t})}return 1===o[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function d(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return n={name:r.name,styles:r.styles,next:n},r.name;if(void 0!==r.styles){var o=r.next;if(void 0!==o)for(;void 0!==o;)n={name:o.name,styles:o.styles,next:n},o=o.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=d(e,t,r[o])+";";else for(var i in r){var a=r[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=i+"{"+t[a]+"}":c(a)&&(n+=u(i)+":"+f(i,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var l=0;l<a.length;l++)c(a[l])&&(n+=u(i)+":"+f(i,a[l])+";");else{var s=d(e,t,a);switch(i){case"animation":case"animationName":n+=u(i)+":"+s+";";break;default:n+=i+"{"+s+"}"}}}return n}(e,t,r);case"function":if(void 0!==e){var i=n,a=r(e);return n=i,d(e,t,a)}}if(null==t)return r;var l=t[r];return void 0!==l?l:r}var p=/label:\s*([^\s;{]+)\s*(;|$)/g;function m(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o,i=!0,a="";n=void 0;var l=e[0];null==l||void 0===l.raw?(i=!1,a+=d(r,t,l)):a+=l[0];for(var s=1;s<e.length;s++)a+=d(r,t,e[s]),i&&(a+=l[s]);p.lastIndex=0;for(var c="";null!==(o=p.exec(a));)c+="-"+o[1];return{name:function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&r)*0x5bd1e995+((r>>>16)*59797<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(a)+c,styles:a,next:n}}},51751:function(e,t,r){r.d(t,{i:()=>a});var n=r(54538),o=r(16819);r(24246);let i=n.createContext(void 0);function a(e){return function({props:e,name:t}){let{theme:r,name:a,props:l}={props:e,name:t,theme:{components:n.useContext(i)}};if(!r||!r.components||!r.components[a])return l;let s=r.components[a];return s.defaultProps?(0,o.Z)(s.defaultProps,l):s.styleOverrides||s.variants?l:(0,o.Z)(s,l)}(e)}},28866:function(e,t,r){r.d(t,{Z:()=>y});var n=r(54538),o=r(90496),i=r(82267),a=r(16838),l=r(12709),s=r(94776),c=r(82319),u=r(51751),f=r(8505),d=r(44124),p=r(6749);function m(e){return(0,p.ZP)("MuiPaper",e)}(0,d.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var g=r(24246);let h=(0,l.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((0,c.Z)(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),y=n.forwardRef(function(e,t){let r=(0,u.i)({props:e,name:"MuiPaper"}),n=(0,s.Z)(),{className:l,component:c="div",elevation:d=1,square:p=!1,variant:y="elevation",...b}=r,v={...r,component:c,elevation:d,square:p,variant:y},x=(e=>{let{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]};return(0,i.Z)(a,m,o)})(v);return(0,g.jsx)(h,{as:c,ownerState:v,className:(0,o.Z)(x.root,l),ref:t,...b,style:{..."elevation"===y&&{"--Paper-shadow":(n.vars||n).shadows[d],...n.vars&&{"--Paper-overlay":n.vars.overlays?.[d]},...!n.vars&&"dark"===n.palette.mode&&{"--Paper-overlay":`linear-gradient(${(0,a.Fq)("#fff",(0,f.Z)(d))}, ${(0,a.Fq)("#fff",(0,f.Z)(d))})`}},...b.style}})})},28730:function(e,t,r){r.d(t,{Z:()=>V});var n=r(62220),o=r(61170),i=r(16838);let a={black:"#000",white:"#fff"},l={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},s={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},c={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},u={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},f={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},d={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},p={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function m(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:a.white,default:a.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}let g=m();function h(){return{text:{primary:a.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:a.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}let y=h();function b(e,t,r,n){let o=n.light||n,a=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,i.$n)(e.main,o):"dark"===t&&(e.dark=(0,i._j)(e.main,a)))}function v(e){let t,{mode:r="light",contrastThreshold:v=3,tonalOffset:x=.2,...S}=e,k=e.primary||function(e="light"){return"dark"===e?{main:f["200"],light:f["50"],dark:f["400"]}:{main:f["700"],light:f["400"],dark:f["800"]}}(r),Z=e.secondary||function(e="light"){return"dark"===e?{main:s["200"],light:s["50"],dark:s["400"]}:{main:s["500"],light:s["300"],dark:s["700"]}}(r),w=e.error||function(e="light"){return"dark"===e?{main:c["500"],light:c["300"],dark:c["700"]}:{main:c["700"],light:c["400"],dark:c["800"]}}(r),A=e.info||function(e="light"){return"dark"===e?{main:d["400"],light:d["300"],dark:d["700"]}:{main:d["700"],light:d["500"],dark:d["900"]}}(r),C=e.success||function(e="light"){return"dark"===e?{main:p["400"],light:p["300"],dark:p["700"]}:{main:p["800"],light:p["500"],dark:p["900"]}}(r),$=e.warning||function(e="light"){return"dark"===e?{main:u["400"],light:u["300"],dark:u["700"]}:{main:"#ed6c02",light:u["500"],dark:u["900"]}}(r);function P(e){return(0,i.mi)(e,y.text.primary)>=v?y.text.primary:g.text.primary}let O=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e={...e}).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw Error((0,n.Z)(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw Error((0,n.Z)(12,t?` (${t})`:"",JSON.stringify(e.main)));return b(e,"light",o,x),b(e,"dark",i,x),e.contrastText||(e.contrastText=P(e.main)),e};return"light"===r?t=m():"dark"===r&&(t=h()),(0,o.Z)({common:{...a},mode:r,primary:O({color:k,name:"primary"}),secondary:O({color:Z,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:O({color:w,name:"error"}),warning:O({color:$,name:"warning"}),info:O({color:A,name:"info"}),success:O({color:C,name:"success"}),grey:l,contrastThreshold:v,getContrastText:P,augmentColor:O,tonalOffset:x,...t},S)}var x=r(4715),S=r(82664);let k=(e,t,r,n=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=r:o&&"object"==typeof o&&(o[e]=r):o&&"object"==typeof o&&(o[e]||(o[e]=n.includes(e)?[]:{}),o=o[e])})};function Z(e,t){var r,n;let{prefix:o,shouldSkipGeneratingVar:i}=t||{},a={},l={},s={};return r=(e,t,r)=>{if(("string"==typeof t||"number"==typeof t)&&(!i||!i(e,t))){var n,c;let i=`--${o?`${o}-`:""}${e.join("-")}`,u=(n=e,"number"==typeof(c=t)?["lineHeight","fontWeight","opacity","zIndex"].some(e=>n.includes(e))||n[n.length-1].toLowerCase().includes("opacity")?c:`${c}px`:c);Object.assign(a,{[i]:u}),k(l,e,`var(${i})`,r),k(s,e,`var(${i}, ${u})`,r)}},n=e=>"vars"===e[0],function e(t,o=[],i=[]){Object.entries(t).forEach(([t,a])=>{n&&(!n||n([...o,t]))||null==a||("object"==typeof a&&Object.keys(a).length>0?e(a,[...o,t],Array.isArray(a)?[...i,t]:i):r([...o,t],a,i))})}(e),{css:a,vars:l,varsWithDefaults:s}}let w=function(e,t={}){let{getSelector:r=function(t,r){let n=i;if("class"===i&&(n=".%s"),"data"===i&&(n="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(n=`[${i}="%s"]`),t){if("media"===n){if(e.defaultColorScheme===t)return":root";let n=a[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${n})`]:{":root":r}}}if(n)return e.defaultColorScheme===t?`:root, ${n.replace("%s",String(t))}`:n.replace("%s",String(t))}return":root"},disableCssColorScheme:n,colorSchemeSelector:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:s="light",...c}=e,{vars:u,css:f,varsWithDefaults:d}=Z(c,t),p=d,m={},{[s]:g,...h}=a;if(Object.entries(h||{}).forEach(([e,r])=>{let{vars:n,css:i,varsWithDefaults:a}=Z(r,t);p=(0,o.Z)(p,a),m[e]={css:i,vars:n}}),g){let{css:e,vars:r,varsWithDefaults:n}=Z(g,t);p=(0,o.Z)(p,n),m[s]={css:e,vars:r}}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(m).forEach(([,{vars:t}])=>{e=(0,o.Z)(e,t)}),e},generateStyleSheets:()=>{let t=[],o=e.defaultColorScheme||"light";function i(e,r){Object.keys(r).length&&t.push("string"==typeof e?{[e]:{...r}}:e)}i(r(void 0,{...f}),f);let{[o]:l,...s}=m;if(l){let{css:e}=l,t=a[o]?.palette?.mode,s=!n&&t?{colorScheme:t,...e}:{...e};i(r(o,{...s}),s)}return Object.entries(s).forEach(([e,{css:t}])=>{let o=a[e]?.palette?.mode,l=!n&&o?{colorScheme:o,...t}:{...t};i(r(e,{...l}),l)}),t}}};var A=r(40273),C=r(11652),$=r(6798);let P={textTransform:"uppercase"},O='"Roboto", "Helvetica", "Arial", sans-serif';function B(...e){return`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2),${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14),${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`}let T=["none",B(0,2,1,-1,0,1,1,0,0,1,3,0),B(0,3,1,-2,0,2,2,0,0,1,5,0),B(0,3,3,-2,0,3,4,0,0,1,8,0),B(0,2,4,-1,0,4,5,0,0,1,10,0),B(0,3,5,-1,0,5,8,0,0,1,14,0),B(0,3,5,-1,0,6,10,0,0,1,18,0),B(0,4,5,-2,0,7,10,1,0,2,16,1),B(0,5,5,-3,0,8,10,1,0,3,14,2),B(0,5,6,-3,0,9,12,1,0,3,16,2),B(0,6,6,-3,0,10,14,1,0,4,18,3),B(0,6,7,-4,0,11,15,1,0,4,20,3),B(0,7,8,-4,0,12,17,2,0,5,22,4),B(0,7,8,-4,0,13,19,2,0,5,24,4),B(0,7,9,-4,0,14,21,2,0,5,26,4),B(0,8,9,-5,0,15,22,2,0,6,28,5),B(0,8,10,-5,0,16,24,2,0,6,30,5),B(0,8,11,-5,0,17,26,2,0,6,32,5),B(0,9,11,-5,0,18,28,2,0,7,34,6),B(0,9,12,-6,0,19,29,2,0,7,36,6),B(0,10,13,-6,0,20,31,3,0,8,38,7),B(0,10,13,-6,0,21,33,3,0,8,40,7),B(0,10,14,-6,0,22,35,3,0,8,42,7),B(0,11,14,-7,0,23,36,3,0,9,44,8),B(0,11,15,-7,0,24,38,3,0,9,46,8)];var j=r(39508);let I={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function R(e={}){let t={...e};return!function e(t){let r=Object.entries(t);for(let n=0;n<r.length;n++){let[i,a]=r[n];!((0,o.P)(a)||void 0===a||"string"==typeof a||"boolean"==typeof a||"number"==typeof a||Array.isArray(a))||i.startsWith("unstable_")?delete t[i]:(0,o.P)(a)&&(t[i]={...a},e(t[i]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
3
|
-
|
|
4
|
-
const theme = ${JSON.stringify(t,null,2)};
|
|
5
|
-
|
|
6
|
-
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
7
|
-
theme.transitions = createTransitions(theme.transitions || {});
|
|
8
|
-
|
|
9
|
-
export default theme;`}let E=function(e={},...t){var r;let{breakpoints:i,mixins:a={},spacing:l,palette:s={},transitions:c={},typography:u={},shape:f,...d}=e;if(e.vars&&void 0===e.generateThemeVars)throw Error((0,n.Z)(20));let p=v(s),m=(0,$.Z)(e),g=(0,o.Z)(m,{mixins:(r=m.breakpoints,{toolbar:{minHeight:56,[r.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[r.up("sm")]:{minHeight:64}},...a}),palette:p,shadows:T.slice(),typography:function(e,t){let{fontFamily:r=O,fontSize:n=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:u,pxToRem:f,...d}="function"==typeof t?t(e):t,p=n/14,m=f||(e=>`${e/c*p}rem`),g=(e,t,n,o,i)=>({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n,...r===O?{letterSpacing:`${Math.round(o/t*1e5)/1e5}em`}:{},...i,...u}),h={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(l,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(l,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(l,14,1.75,.4,P),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,P),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,o.Z)({htmlFontSize:c,pxToRem:m,fontFamily:r,fontSize:n,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s,...h},d,{clone:!1})}(p,u),transitions:(0,j.ZP)(c),zIndex:{...I}});return g=(0,o.Z)(g,d),(g=t.reduce((e,t)=>(0,o.Z)(e,t),g)).unstable_sxConfig={...A.Z,...d?.unstable_sxConfig},g.unstable_sx=function(e){return(0,C.Z)({sx:e,theme:this})},g.toRuntimeSource=R,g};var _=r(8505);let N=[...Array(25)].map((e,t)=>{if(0===t)return"none";let r=(0,_.Z)(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function z(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function F(e){return"dark"===e?N:[]}function L(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}function M(e,t,r){!e[t]&&r&&(e[t]=r)}function q(e){return"string"==typeof e&&e.startsWith("hsl")?(0,i.ve)(e):e}function W(e,t){`${t}Channel`in e||(e[`${t}Channel`]=(0,i.LR)(q(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
10
|
-
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}let D=e=>{try{return e()}catch(e){}};function K(e,t,r,n){if(!t)return;t=!0===t?{}:t;let o="dark"===n?"dark":"light";if(!r){e[n]=function(e){let{palette:t={mode:"light"},opacity:r,overlays:n,...o}=e,i=v(t);return{palette:i,opacity:{...z(i.mode),...r},overlays:n||F(i.mode),...o}}({...t,palette:{mode:o,...t?.palette}});return}let{palette:i,...a}=E({...r,palette:{mode:o,...t?.palette}});return e[n]={...t,palette:i,opacity:{...z(o),...t?.opacity},overlays:t?.overlays||F(o)},a}function G(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...!0!==r&&r,palette:v({...!0===r?{}:r.palette,mode:t})})}function V(e={},...t){let{palette:r,cssVariables:a=!1,colorSchemes:l=!r?{light:!0}:void 0,defaultColorScheme:s=r?.mode,...c}=e,u=s||"light",f=l?.[u],d={...l,...r?{[u]:{..."boolean"!=typeof f&&f,palette:r}}:void 0};if(!1===a){if(!("colorSchemes"in e))return E(e,...t);let n=r;"palette"in e||!d[u]||(!0!==d[u]?n=d[u].palette:"dark"===u&&(n={mode:"dark"}));let o=E({...e,palette:n},...t);return o.defaultColorScheme=u,o.colorSchemes=d,"light"===o.palette.mode&&(o.colorSchemes.light={...!0!==d.light&&d.light,palette:o.palette},G(o,"dark",d.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==d.dark&&d.dark,palette:o.palette},G(o,"light",d.light)),o}return r||"light"in d||"light"!==u||(d.light=!0),function(e={},...t){var r;let a,{colorSchemes:l={light:!0},defaultColorScheme:s,disableCssColorScheme:c=!1,cssVarPrefix:u="mui",shouldSkipGeneratingVar:f=L,colorSchemeSelector:d=l.light&&l.dark?"media":void 0,rootSelector:p=":root",...m}=e,g=Object.keys(l)[0],h=s||(l.light&&"light"!==g?"light":g),y=((e="mui")=>(function(e=""){return(t,...r)=>`var(--${e?`${e}-`:""}${t}${function t(...r){if(!r.length)return"";let n=r[0];return"string"!=typeof n||n.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${n}`:`, var(--${e?`${e}-`:""}${n}${t(...r.slice(1))})`}(...r)})`})(e))(u),{[h]:b,light:v,dark:k,...Z}=l,$={...Z},P=b;if(("dark"!==h||"dark"in l)&&("light"!==h||"light"in l)||(P=!0),!P)throw Error((0,n.Z)(21,h));let O=K($,P,m,h);v&&!$.light&&K($,v,void 0,"light"),k&&!$.dark&&K($,k,void 0,"dark");let B={defaultColorScheme:h,...O,cssVarPrefix:u,colorSchemeSelector:d,rootSelector:p,getCssVar:y,colorSchemes:$,font:{...function(e){let t={};return Object.entries(e).forEach(e=>{let[r,n]=e;"object"==typeof n&&(t[r]=`${n.fontStyle?`${n.fontStyle} `:""}${n.fontVariant?`${n.fontVariant} `:""}${n.fontWeight?`${n.fontWeight} `:""}${n.fontStretch?`${n.fontStretch} `:""}${n.fontSize||""}${n.lineHeight?`/${n.lineHeight} `:""}${n.fontFamily||""}`)}),t}(O.typography),...O.font},spacing:"number"==typeof(r=m.spacing)?`${r}px`:"string"==typeof r||"function"==typeof r||Array.isArray(r)?r:"8px"};Object.keys(B.colorSchemes).forEach(e=>{let t=B.colorSchemes[e].palette,r=e=>{let r=e.split("-"),n=r[1],o=r[2];return y(e,t[n][o])};if("light"===t.mode&&(M(t.common,"background","#fff"),M(t.common,"onBackground","#000")),"dark"===t.mode&&(M(t.common,"background","#000"),M(t.common,"onBackground","#fff")),["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(e=>{t[e]||(t[e]={})}),"light"===t.mode){M(t.Alert,"errorColor",(0,i.q8)(t.error.light,.6)),M(t.Alert,"infoColor",(0,i.q8)(t.info.light,.6)),M(t.Alert,"successColor",(0,i.q8)(t.success.light,.6)),M(t.Alert,"warningColor",(0,i.q8)(t.warning.light,.6)),M(t.Alert,"errorFilledBg",r("palette-error-main")),M(t.Alert,"infoFilledBg",r("palette-info-main")),M(t.Alert,"successFilledBg",r("palette-success-main")),M(t.Alert,"warningFilledBg",r("palette-warning-main")),M(t.Alert,"errorFilledColor",D(()=>t.getContrastText(t.error.main))),M(t.Alert,"infoFilledColor",D(()=>t.getContrastText(t.info.main))),M(t.Alert,"successFilledColor",D(()=>t.getContrastText(t.success.main))),M(t.Alert,"warningFilledColor",D(()=>t.getContrastText(t.warning.main))),M(t.Alert,"errorStandardBg",(0,i.ux)(t.error.light,.9)),M(t.Alert,"infoStandardBg",(0,i.ux)(t.info.light,.9)),M(t.Alert,"successStandardBg",(0,i.ux)(t.success.light,.9)),M(t.Alert,"warningStandardBg",(0,i.ux)(t.warning.light,.9)),M(t.Alert,"errorIconColor",r("palette-error-main")),M(t.Alert,"infoIconColor",r("palette-info-main")),M(t.Alert,"successIconColor",r("palette-success-main")),M(t.Alert,"warningIconColor",r("palette-warning-main")),M(t.AppBar,"defaultBg",r("palette-grey-100")),M(t.Avatar,"defaultBg",r("palette-grey-400")),M(t.Button,"inheritContainedBg",r("palette-grey-300")),M(t.Button,"inheritContainedHoverBg",r("palette-grey-A100")),M(t.Chip,"defaultBorder",r("palette-grey-400")),M(t.Chip,"defaultAvatarColor",r("palette-grey-700")),M(t.Chip,"defaultIconColor",r("palette-grey-700")),M(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),M(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),M(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),M(t.LinearProgress,"primaryBg",(0,i.ux)(t.primary.main,.62)),M(t.LinearProgress,"secondaryBg",(0,i.ux)(t.secondary.main,.62)),M(t.LinearProgress,"errorBg",(0,i.ux)(t.error.main,.62)),M(t.LinearProgress,"infoBg",(0,i.ux)(t.info.main,.62)),M(t.LinearProgress,"successBg",(0,i.ux)(t.success.main,.62)),M(t.LinearProgress,"warningBg",(0,i.ux)(t.warning.main,.62)),M(t.Skeleton,"bg",`rgba(${r("palette-text-primaryChannel")} / 0.11)`),M(t.Slider,"primaryTrack",(0,i.ux)(t.primary.main,.62)),M(t.Slider,"secondaryTrack",(0,i.ux)(t.secondary.main,.62)),M(t.Slider,"errorTrack",(0,i.ux)(t.error.main,.62)),M(t.Slider,"infoTrack",(0,i.ux)(t.info.main,.62)),M(t.Slider,"successTrack",(0,i.ux)(t.success.main,.62)),M(t.Slider,"warningTrack",(0,i.ux)(t.warning.main,.62));let e=(0,i.fk)(t.background.default,.8);M(t.SnackbarContent,"bg",e),M(t.SnackbarContent,"color",D(()=>t.getContrastText(e))),M(t.SpeedDialAction,"fabHoverBg",(0,i.fk)(t.background.paper,.15)),M(t.StepConnector,"border",r("palette-grey-400")),M(t.StepContent,"border",r("palette-grey-400")),M(t.Switch,"defaultColor",r("palette-common-white")),M(t.Switch,"defaultDisabledColor",r("palette-grey-100")),M(t.Switch,"primaryDisabledColor",(0,i.ux)(t.primary.main,.62)),M(t.Switch,"secondaryDisabledColor",(0,i.ux)(t.secondary.main,.62)),M(t.Switch,"errorDisabledColor",(0,i.ux)(t.error.main,.62)),M(t.Switch,"infoDisabledColor",(0,i.ux)(t.info.main,.62)),M(t.Switch,"successDisabledColor",(0,i.ux)(t.success.main,.62)),M(t.Switch,"warningDisabledColor",(0,i.ux)(t.warning.main,.62)),M(t.TableCell,"border",(0,i.ux)((0,i.zp)(t.divider,1),.88)),M(t.Tooltip,"bg",(0,i.zp)(t.grey[700],.92))}if("dark"===t.mode){M(t.Alert,"errorColor",(0,i.ux)(t.error.light,.6)),M(t.Alert,"infoColor",(0,i.ux)(t.info.light,.6)),M(t.Alert,"successColor",(0,i.ux)(t.success.light,.6)),M(t.Alert,"warningColor",(0,i.ux)(t.warning.light,.6)),M(t.Alert,"errorFilledBg",r("palette-error-dark")),M(t.Alert,"infoFilledBg",r("palette-info-dark")),M(t.Alert,"successFilledBg",r("palette-success-dark")),M(t.Alert,"warningFilledBg",r("palette-warning-dark")),M(t.Alert,"errorFilledColor",D(()=>t.getContrastText(t.error.dark))),M(t.Alert,"infoFilledColor",D(()=>t.getContrastText(t.info.dark))),M(t.Alert,"successFilledColor",D(()=>t.getContrastText(t.success.dark))),M(t.Alert,"warningFilledColor",D(()=>t.getContrastText(t.warning.dark))),M(t.Alert,"errorStandardBg",(0,i.q8)(t.error.light,.9)),M(t.Alert,"infoStandardBg",(0,i.q8)(t.info.light,.9)),M(t.Alert,"successStandardBg",(0,i.q8)(t.success.light,.9)),M(t.Alert,"warningStandardBg",(0,i.q8)(t.warning.light,.9)),M(t.Alert,"errorIconColor",r("palette-error-main")),M(t.Alert,"infoIconColor",r("palette-info-main")),M(t.Alert,"successIconColor",r("palette-success-main")),M(t.Alert,"warningIconColor",r("palette-warning-main")),M(t.AppBar,"defaultBg",r("palette-grey-900")),M(t.AppBar,"darkBg",r("palette-background-paper")),M(t.AppBar,"darkColor",r("palette-text-primary")),M(t.Avatar,"defaultBg",r("palette-grey-600")),M(t.Button,"inheritContainedBg",r("palette-grey-800")),M(t.Button,"inheritContainedHoverBg",r("palette-grey-700")),M(t.Chip,"defaultBorder",r("palette-grey-700")),M(t.Chip,"defaultAvatarColor",r("palette-grey-300")),M(t.Chip,"defaultIconColor",r("palette-grey-300")),M(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),M(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),M(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),M(t.LinearProgress,"primaryBg",(0,i.q8)(t.primary.main,.5)),M(t.LinearProgress,"secondaryBg",(0,i.q8)(t.secondary.main,.5)),M(t.LinearProgress,"errorBg",(0,i.q8)(t.error.main,.5)),M(t.LinearProgress,"infoBg",(0,i.q8)(t.info.main,.5)),M(t.LinearProgress,"successBg",(0,i.q8)(t.success.main,.5)),M(t.LinearProgress,"warningBg",(0,i.q8)(t.warning.main,.5)),M(t.Skeleton,"bg",`rgba(${r("palette-text-primaryChannel")} / 0.13)`),M(t.Slider,"primaryTrack",(0,i.q8)(t.primary.main,.5)),M(t.Slider,"secondaryTrack",(0,i.q8)(t.secondary.main,.5)),M(t.Slider,"errorTrack",(0,i.q8)(t.error.main,.5)),M(t.Slider,"infoTrack",(0,i.q8)(t.info.main,.5)),M(t.Slider,"successTrack",(0,i.q8)(t.success.main,.5)),M(t.Slider,"warningTrack",(0,i.q8)(t.warning.main,.5));let e=(0,i.fk)(t.background.default,.98);M(t.SnackbarContent,"bg",e),M(t.SnackbarContent,"color",D(()=>t.getContrastText(e))),M(t.SpeedDialAction,"fabHoverBg",(0,i.fk)(t.background.paper,.15)),M(t.StepConnector,"border",r("palette-grey-600")),M(t.StepContent,"border",r("palette-grey-600")),M(t.Switch,"defaultColor",r("palette-grey-300")),M(t.Switch,"defaultDisabledColor",r("palette-grey-600")),M(t.Switch,"primaryDisabledColor",(0,i.q8)(t.primary.main,.55)),M(t.Switch,"secondaryDisabledColor",(0,i.q8)(t.secondary.main,.55)),M(t.Switch,"errorDisabledColor",(0,i.q8)(t.error.main,.55)),M(t.Switch,"infoDisabledColor",(0,i.q8)(t.info.main,.55)),M(t.Switch,"successDisabledColor",(0,i.q8)(t.success.main,.55)),M(t.Switch,"warningDisabledColor",(0,i.q8)(t.warning.main,.55)),M(t.TableCell,"border",(0,i.q8)((0,i.zp)(t.divider,1),.68)),M(t.Tooltip,"bg",(0,i.zp)(t.grey[700],.92))}W(t.background,"default"),W(t.background,"paper"),W(t.common,"background"),W(t.common,"onBackground"),W(t,"divider"),Object.keys(t).forEach(e=>{let r=t[e];"tonalOffset"!==e&&r&&"object"==typeof r&&(r.main&&M(t[e],"mainChannel",(0,i.LR)(q(r.main))),r.light&&M(t[e],"lightChannel",(0,i.LR)(q(r.light))),r.dark&&M(t[e],"darkChannel",(0,i.LR)(q(r.dark))),r.contrastText&&M(t[e],"contrastTextChannel",(0,i.LR)(q(r.contrastText))),"text"===e&&(W(t[e],"primary"),W(t[e],"secondary")),"action"===e&&(r.active&&W(t[e],"active"),r.selected&&W(t[e],"selected")))})});let T={prefix:u,disableCssColorScheme:c,shouldSkipGeneratingVar:f,getSelector:(a=B=t.reduce((e,t)=>(0,o.Z)(e,t),B),(e,t)=>{let r=a.rootSelector||":root",n=a.colorSchemeSelector,o=n;if("class"===n&&(o=".%s"),"data"===n&&(o="[data-%s]"),n?.startsWith("data-")&&!n.includes("%s")&&(o=`[${n}="%s"]`),a.defaultColorScheme===e){if("dark"===e){let n,i={};return((n=a.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${n?`${n}-`:""}overlays-${t}`),`--${n?`${n}-`:""}palette-AppBar-darkBg`,`--${n?`${n}-`:""}palette-AppBar-darkColor`]).forEach(e=>{i[e]=t[e],delete t[e]}),"media"===o)?{[r]:t,"@media (prefers-color-scheme: dark)":{[r]:i}}:o?{[o.replace("%s",e)]:i,[`${r}, ${o.replace("%s",e)}`]:t}:{[r]:{...t,...i}}}if(o&&"media"!==o)return`${r}, ${o.replace("%s",String(e))}`}else if(e){if("media"===o)return{[`@media (prefers-color-scheme: ${String(e)})`]:{[r]:t}};if(o)return o.replace("%s",String(e))}return r})},{vars:j,generateThemeVars:I,generateStyleSheets:E}=w(B,T);return B.vars=j,Object.entries(B.colorSchemes[B.defaultColorScheme]).forEach(([e,t])=>{B[e]=t}),B.generateThemeVars=I,B.generateStyleSheets=E,B.generateSpacing=function(){return(0,x.Z)(m.spacing,(0,S.hB)(this))},B.getColorSchemeSelector=function(e){return"media"===d?`@media (prefers-color-scheme: ${e})`:d?d.startsWith("data-")&&!d.includes("%s")?`[${d}="${e}"] &`:"class"===d?`.${e} &`:"data"===d?`[data-${e}] &`:`${d.replace("%s",e)} &`:"&"},B.spacing=B.generateSpacing(),B.shouldSkipGeneratingVar=f,B.unstable_sxConfig={...A.Z,...m?.unstable_sxConfig},B.unstable_sx=function(e){return(0,C.Z)({sx:e,theme:this})},B.toRuntimeSource=R,B}({...c,colorSchemes:d,defaultColorScheme:u,..."boolean"!=typeof a&&a},...t)}},39508:function(e,t,r){r.d(t,{ZP:()=>l,x9:()=>o});let n={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},o={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function i(e){return`${Math.round(e)}ms`}function a(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function l(e){let t={...n,...e.easing},r={...o,...e.duration};return{getAutoHeightDuration:a,create:(e=["all"],n={})=>{let{duration:o=r.standard,easing:a=t.easeInOut,delay:l=0,...s}=n;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:i(o)} ${a} ${"string"==typeof l?l:i(l)}`).join(",")},...e,easing:t,duration:r}}},53126:function(e,t,r){r.d(t,{Z:()=>n});let n=(0,r(28730).Z)()},8505:function(e,t,r){r.d(t,{Z:()=>n});function n(e){return Math.round(10*(e<1?5.11916*e**2:4.5*Math.log(e+1)+2))/1e3}},92994:function(e,t,r){r.d(t,{Z:()=>n});let n="$$material"},73037:function(e,t,r){r.d(t,{Z:()=>o});var n=r(4005);let o=e=>(0,n.Z)(e)&&"classes"!==e},4005:function(e,t,r){r.d(t,{Z:()=>n});let n=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},12709:function(e,t,r){r.d(t,{ZP:()=>l});var n=r(35315),o=r(53126),i=r(92994),a=r(73037);let l=(0,n.ZP)({themeId:i.Z,defaultTheme:o.Z,rootShouldForwardProp:a.Z})},94776:function(e,t,r){r.d(t,{Z:()=>a}),r(54538);var n=r(38971),o=r(53126),i=r(92994);function a(){let e=(0,n.Z)(o.Z);return e[i.Z]||e}},51640:function(e,t,r){r.d(t,{Z:()=>n});let n=r(3150).Z},90433:function(e,t,r){r.d(t,{Z:()=>n});function n(e=[]){return([,t])=>t&&function(e,t=[]){if("string"!=typeof e.main)return!1;for(let r of t)if(!e.hasOwnProperty(r)||"string"!=typeof e[r])return!1;return!0}(t,e)}},90247:function(e,t,r){r.d(t,{Z:()=>h});var n=r(54538),o=r(90496),i=r(82267),a=r(51640),l=r(12709),s=r(82319),c=r(51751),u=r(44124),f=r(6749);function d(e){return(0,f.ZP)("MuiSvgIcon",e)}(0,u.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var p=r(24246);let m=(0,l.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${(0,a.Z)(r.color)}`],t[`fontSize${(0,a.Z)(r.fontSize)}`]]}})((0,s.Z)(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),g=n.forwardRef(function(e,t){let r=(0,c.i)({props:e,name:"MuiSvgIcon"}),{children:l,className:s,color:u="inherit",component:f="svg",fontSize:g="medium",htmlColor:h,inheritViewBox:y=!1,titleAccess:b,viewBox:v="0 0 24 24",...x}=r,S=n.isValidElement(l)&&"svg"===l.type,k={...r,color:u,component:f,fontSize:g,instanceFontSize:e.fontSize,inheritViewBox:y,viewBox:v,hasSvgAsChild:S},Z={};y||(Z.viewBox=v);let w=(e=>{let{color:t,fontSize:r,classes:n}=e,o={root:["root","inherit"!==t&&`color${(0,a.Z)(t)}`,`fontSize${(0,a.Z)(r)}`]};return(0,i.Z)(o,d,n)})(k);return(0,p.jsxs)(m,{as:f,className:(0,o.Z)(w.root,s),focusable:"false",color:h,"aria-hidden":!b||void 0,role:b?"img":void 0,ref:t,...Z,...x,...S&&l.props,ownerState:k,children:[S?l.props.children:l,b?(0,p.jsx)("title",{children:b}):null]})});function h(e,t){function r(r,n){return(0,p.jsx)(g,{"data-testid":`${t}Icon`,ref:n,...r,children:e})}return r.muiName=g.muiName,n.memo(n.forwardRef(r))}g.muiName="SvgIcon"},77999:function(e,t,r){r.d(t,{Z:()=>n});let n=r(24384).Z},70777:function(e,t,r){r.d(t,{Z:()=>n});let n=r(11104).Z},82319:function(e,t,r){r.d(t,{Z:()=>i});var n=r(83606);let o={theme:void 0},i=function(e){let t,r;return function(i){let a=t;return(void 0===a||i.theme!==r)&&(o.theme=i.theme,t=a=(0,n.Z)(e(o)),r=i.theme),a}}},27834:function(e,t,r){r.d(t,{Z:()=>o});var n=r(90496);function o(e,t){if(!e)return t;if("function"==typeof e||"function"==typeof t)return r=>{let o="function"==typeof t?t(r):t,i="function"==typeof e?e({...r,...o}):e,a=(0,n.Z)(r?.className,o?.className,i?.className);return{...o,...i,...!!a&&{className:a},...o?.style&&i?.style&&{style:{...o.style,...i.style}},...o?.sx&&i?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(i.sx)?i.sx:[i.sx]]}}};let r=(0,n.Z)(t?.className,e?.className);return{...t,...e,...!!r&&{className:r},...t?.style&&e?.style&&{style:{...t.style,...e.style}},...t?.sx&&e?.sx&&{sx:[...Array.isArray(t.sx)?t.sx:[t.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}},2444:function(e,t,r){r.d(t,{Z:()=>n});let n=r(80668).Z},24255:function(e,t,r){r.d(t,{Z:()=>n});let n=r(33205).Z},18817:function(e,t,r){r.d(t,{Z:()=>n});let n=r(9831).Z},16758:function(e,t,r){r.d(t,{Z:()=>n});let n=r(96858).Z},51183:function(e,t,r){r.d(t,{Z:()=>n});let n=r(97048).Z},16351:function(e,t,r){r.d(t,{Z:()=>l});var n=r(97048),o=r(60206),i=r(85480),a=r(92729);function l(e,t){let{className:r,elementType:l,ownerState:s,externalForwardedProps:c,internalForwardedProps:u,shouldForwardComponentProp:f=!1,...d}=t,{component:p,slots:m={[e]:void 0},slotProps:g={[e]:void 0},...h}=c,y=m[e]||l,b=(0,i.Z)(g[e],s),{props:{component:v,...x},internalRef:S}=(0,a.Z)({className:r,...d,externalForwardedProps:"root"===e?h:void 0,externalSlotProps:b}),k=(0,n.Z)(S,b?.ref,t.ref),Z="root"===e?v||p:v,w=(0,o.Z)(y,{..."root"===e&&!p&&!m[e]&&u,..."root"!==e&&!m[e]&&u,...x,...Z&&!f&&{as:Z},...Z&&f&&{component:Z},ref:k},s);return[y,w]}},89966:function(e,t,r){r.d(t,{ZP:()=>a,bu:()=>c,nf:()=>l});var n=r(45913),o=r.n(n),i=r(42747);function a(e,t){return o()(e,t)}function l(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}r(72116);let s=[];function c(e){return s[0]=e,(0,i.O)(s)}},6595:function(e,t,r){r.d(t,{V:()=>i});var n=r(54538);r(24246);let o=n.createContext(),i=()=>n.useContext(o)??!1},13890:function(e,t,r){r.d(t,{L7:()=>u,P$:()=>d,VO:()=>i,W8:()=>c,dt:()=>f,k9:()=>s});var n=r(61170),o=r(58787);let i={xs:0,sm:600,md:900,lg:1200,xl:1536},a={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${i[e]}px)`},l={containerQueries:e=>({up:t=>{let r="number"==typeof t?t:i[t]||t;return"number"==typeof r&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function s(e,t,r){let n=e.theme||{};if(Array.isArray(t)){let e=n.breakpoints||a;return t.reduce((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n),{})}if("object"==typeof t){let e=n.breakpoints||a;return Object.keys(t).reduce((a,s)=>{if((0,o.WX)(e.keys,s)){let e=(0,o.ue)(n.containerQueries?n:l,s);e&&(a[e]=r(t[s],s))}else Object.keys(e.values||i).includes(s)?a[e.up(s)]=r(t[s],s):a[s]=t[s];return a},{})}return r(t)}function c(e={}){return e.keys?.reduce((t,r)=>(t[e.up(r)]={},t),{})||{}}function u(e,t){return e.reduce((e,t)=>{let r=e[t];return r&&0!==Object.keys(r).length||delete e[t],e},t)}function f(e,...t){let r=c(e),o=[r,...t].reduce((e,t)=>(0,n.Z)(e,t),{});return u(Object.keys(r),o)}function d({values:e,breakpoints:t,base:r}){let n,o=Object.keys(r||function(e,t){if("object"!=typeof e)return{};let r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((t,n)=>{n<e.length&&(r[t]=!0)}):n.forEach(t=>{null!=e[t]&&(r[t]=!0)}),r}(e,t));return 0===o.length?e:o.reduce((t,r,o)=>(Array.isArray(e)?(t[r]=null!=e[o]?e[o]:e[n],n=o):"object"==typeof e?(t[r]=null!=e[r]?e[r]:e[n],n=r):t[r]=e,t),{})}},16838:function(e,t,r){r.d(t,{q8:()=>m,_j:()=>p,mi:()=>u,$n:()=>g,zp:()=>d,LR:()=>a,fk:()=>y,ux:()=>h,Fq:()=>f,ve:()=>s});var n=r(62220);function o(e,t=0,r=1){return function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}(e,t,r)}function i(e){let t;if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let r=e.indexOf("("),o=e.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(o))throw Error((0,n.Z)(9,e));let a=e.substring(r+1,e.length-1);if("color"===o){if(t=(a=a.split(" ")).shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(t))throw Error((0,n.Z)(10,t))}else a=a.split(",");return{type:o,values:a=a.map(e=>parseFloat(e)),colorSpace:t}}let a=(e,t)=>{try{let t=i(e);return t.values.slice(0,3).map((e,r)=>t.type.includes("hsl")&&0!==r?`${e}%`:e).join(" ")}catch(t){return e}};function l(e){let{type:t,colorSpace:r}=e,{values:n}=e;return t.includes("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=t.includes("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function s(e){let{values:t}=e=i(e),r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),s=(e,t=(e+r/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1),c="rgb",u=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),l({type:c,values:u})}function c(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(s(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){let r=c(e),n=c(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function f(e,t){return e=i(e),t=o(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,l(e)}function d(e,t,r){try{return f(e,t)}catch(t){return e}}function p(e,t){if(e=i(e),t=o(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return l(e)}function m(e,t,r){try{return p(e,t)}catch(t){return e}}function g(e,t){if(e=i(e),t=o(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return l(e)}function h(e,t,r){try{return g(e,t)}catch(t){return e}}function y(e,t,r){try{return function(e,t=.15){return c(e)>.5?p(e,t):g(e,t)}(e,t)}catch(t){return e}}},35315:function(e,t,r){r.d(t,{ZP:()=>d,x9:()=>c});var n=r(89966),o=r(61170),i=r(6798),a=r(11652),l=r(83606);let s=(0,i.Z)();function c(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function u(e,t){let r="function"==typeof t?t(e):t;if(Array.isArray(r))return r.flatMap(t=>u(e,t));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=r.style;else{let{variants:e,...n}=r;t=n}return f(e,r.variants,[t])}return r?.isProcessed?r.style:r}function f(e,t,r=[]){let n;e:for(let o=0;o<t.length;o+=1){let i=t[o];if("function"==typeof i.props){if(n??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(n))continue}else for(let t in i.props)if(e[t]!==i.props[t]&&e.ownerState?.[t]!==i.props[t])continue e;"function"==typeof i.style?(n??={...e,...e.ownerState,ownerState:e.ownerState},r.push(i.style(n))):r.push(i.style)}return r}function d(e={}){let{themeId:t,defaultTheme:r=s,rootShouldForwardProp:i=c,slotShouldForwardProp:p=c}=e;function m(e){e.theme=!function(e){for(let t in e)return!1;return!0}(e.theme)?e.theme[t]||e.theme:r}return(e,t={})=>{var r,s,d;(0,n.nf)(e,e=>e.filter(e=>e!==a.Z));let{name:g,slot:h,skipVariantsResolver:y,skipSx:b,overridesResolver:v=!(r=(s=h)?s.charAt(0).toLowerCase()+s.slice(1):s)?null:(e,t)=>t[r],...x}=t,S=void 0!==y?y:h&&"Root"!==h&&"root"!==h||!1,k=b||!1,Z=c;"Root"===h||"root"===h?Z=i:h?Z=p:"string"==typeof(d=e)&&d.charCodeAt(0)>96&&(Z=void 0);let w=(0,n.ZP)(e,{shouldForwardProp:Z,label:void 0,...x}),A=e=>{if("function"==typeof e&&e.__emotion_real!==e)return function(t){return u(t,e)};if((0,o.P)(e)){let t=(0,l.Z)(e);return t.variants?function(e){return u(e,t)}:t.style}return e},C=(...t)=>{let r=[],n=t.map(A),o=[];if(r.push(m),g&&v&&o.push(function(e){let t=e.theme,r=t.components?.[g]?.styleOverrides;if(!r)return null;let n={};for(let t in r)n[t]=u(e,r[t]);return v(e,n)}),g&&!S&&o.push(function(e){let t=e.theme,r=t?.components?.[g]?.variants;return r?f(e,r):null}),k||o.push(a.Z),Array.isArray(n[0])){let e,t=n.shift(),i=Array(r.length).fill(""),a=Array(o.length).fill("");(e=[...i,...t,...a]).raw=[...i,...t.raw,...a],r.unshift(e)}let i=w(...r,...n,...o);return e.muiName&&(i.muiName=e.muiName),i};return w.withConfig&&(C.withConfig=w.withConfig),C}}},4715:function(e,t,r){r.d(t,{Z:()=>o});var n=r(82664);function o(e=8,t=(0,n.hB)({spacing:e})){if(e.mui)return e;let r=(...e)=>(0===e.length?[1]:e).map(e=>{let r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ");return r.mui=!0,r}},6798:function(e,t,r){r.d(t,{Z:()=>u});var n=r(61170),o=r(58787);let i={borderRadius:4};var a=r(4715),l=r(11652),s=r(40273);function c(e,t){if(this.vars){if(!this.colorSchemes?.[e]||"function"!=typeof this.getColorSchemeSelector)return{};let r=this.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return this.palette.mode===e?t:{}}let u=function(e={},...t){let{breakpoints:r={},palette:u={},spacing:f,shape:d={},...p}=e,m=function(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,i=(e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),a=Object.keys(i);function l(e){let n="number"==typeof t[e]?t[e]:e;return`@media (min-width:${n}${r})`}function s(e){let o="number"==typeof t[e]?t[e]:e;return`@media (max-width:${o-n/100}${r})`}function c(e,o){let i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return{keys:a,values:i,up:l,down:s,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):l(e)},not:function(e){let t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r,...o}}(r),g=(0,a.Z)(f),h=(0,n.Z)({breakpoints:m,direction:"ltr",components:{},palette:{mode:"light",...u},spacing:g,shape:{...i,...d}},p);return(h=(0,o.ZP)(h)).applyStyles=c,(h=t.reduce((e,t)=>(0,n.Z)(e,t),h)).unstable_sxConfig={...s.Z,...p?.unstable_sxConfig},h.unstable_sx=function(e){return(0,l.Z)({sx:e,theme:this})},h}},58787:function(e,t,r){function n(e,t){if(!e.containerQueries)return t;let r=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{let r=/min-width:\s*([0-9.]+)/;return(e.match(r)?.[1]||0)-(t.match(r)?.[1]||0)});return r.length?r.reduce((e,r)=>{let n=t[r];return delete e[r],e[r]=n,e},{...t}):t}function o(e,t){return"@"===t||t.startsWith("@")&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function i(e,t){let r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;let[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function a(e){let t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function r(r,n){r.up=(...r)=>t(e.breakpoints.up(...r),n),r.down=(...r)=>t(e.breakpoints.down(...r),n),r.between=(...r)=>t(e.breakpoints.between(...r),n),r.only=(...r)=>t(e.breakpoints.only(...r),n),r.not=(...r)=>{let o=t(e.breakpoints.not(...r),n);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}let n={},o=e=>(r(n,e),n);return r(o),{...e,containerQueries:o}}r.d(t,{WX:()=>o,ZP:()=>a,ar:()=>n,ue:()=>i})},76360:function(e,t,r){r.d(t,{Z:()=>o});var n=r(61170);let o=function(e,t){return t?(0,n.Z)(e,t,{clone:!1}):e}},83606:function(e,t,r){r.d(t,{Z:()=>o});var n=r(89966);function o(e){let{variants:t,...r}=e,o={variants:t,style:(0,n.bu)(r),isProcessed:!0};return o.style===r||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=(0,n.bu)(e.style))}),o}},82664:function(e,t,r){r.d(t,{hB:()=>m,eI:()=>p,NA:()=>g,e6:()=>y,o3:()=>b});var n=r(13890),o=r(33160),i=r(76360);let a={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},s={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){let t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2)if(!s[e])return[e];else e=s[e];let[t,r]=e.split(""),n=a[t],o=l[r]||"";return Array.isArray(o)?o.map(e=>n+e):[n+o]}),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],d=[...u,...f];function p(e,t,r,n){let i=(0,o.DW)(e,t,!0)??r;return"number"==typeof i||"string"==typeof i?e=>"string"==typeof e?e:"string"==typeof i?`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if("string"==typeof e)return e;let t=i[Math.abs(e)];return e>=0?t:"number"==typeof t?-t:`-${t}`}:"function"==typeof i?i:()=>void 0}function m(e){return p(e,"spacing",8,"spacing")}function g(e,t){return"string"==typeof t||null==t?t:e(t)}function h(e,t){let r=m(e.theme);return Object.keys(e).map(o=>(function(e,t,r,o){var i;if(!t.includes(r))return null;let a=(i=c(r),e=>i.reduce((t,r)=>(t[r]=g(o,e),t),{})),l=e[r];return(0,n.k9)(e,l,a)})(e,t,o,r)).reduce(i.Z,{})}function y(e){return h(e,u)}function b(e){return h(e,f)}function v(e){return h(e,d)}y.propTypes={},y.filterProps=u,b.propTypes={},b.filterProps=f,v.propTypes={},v.filterProps=d},33160:function(e,t,r){r.d(t,{DW:()=>i,Jq:()=>a,ZP:()=>l});var n=r(3150),o=r(13890);function i(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){let r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function a(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:i(e,r)||n,t&&(o=t(o,n,e)),o}let l=function(e){let{prop:t,cssProperty:r=e.prop,themeKey:l,transform:s}=e,c=e=>{if(null==e[t])return null;let c=e[t],u=i(e.theme,l)||{};return(0,o.k9)(e,c,e=>{let o=a(u,s,e);return(e===o&&"string"==typeof e&&(o=a(u,s,`${t}${"default"===e?"":(0,n.Z)(e)}`,e)),!1===r)?o:{[r]:o}})};return c.propTypes={},c.filterProps=[t],c}},40273:function(e,t,r){r.d(t,{Z:()=>q});var n=r(82664),o=r(33160),i=r(76360);let a=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?(0,i.Z)(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r};var l=r(13890);function s(e){return"number"!=typeof e?e:`${e}px solid`}function c(e,t){return(0,o.ZP)({prop:e,themeKey:"borders",transform:t})}let u=c("border",s),f=c("borderTop",s),d=c("borderRight",s),p=c("borderBottom",s),m=c("borderLeft",s),g=c("borderColor"),h=c("borderTopColor"),y=c("borderRightColor"),b=c("borderBottomColor"),v=c("borderLeftColor"),x=c("outline",s),S=c("outlineColor"),k=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,n.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,l.k9)(e,e.borderRadius,e=>({borderRadius:(0,n.NA)(t,e)}))}return null};k.propTypes={},k.filterProps=["borderRadius"],a(u,f,d,p,m,g,h,y,b,v,k,x,S);let Z=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,n.eI)(e.theme,"spacing",8,"gap");return(0,l.k9)(e,e.gap,e=>({gap:(0,n.NA)(t,e)}))}return null};Z.propTypes={},Z.filterProps=["gap"];let w=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,n.eI)(e.theme,"spacing",8,"columnGap");return(0,l.k9)(e,e.columnGap,e=>({columnGap:(0,n.NA)(t,e)}))}return null};w.propTypes={},w.filterProps=["columnGap"];let A=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,n.eI)(e.theme,"spacing",8,"rowGap");return(0,l.k9)(e,e.rowGap,e=>({rowGap:(0,n.NA)(t,e)}))}return null};A.propTypes={},A.filterProps=["rowGap"];let C=(0,o.ZP)({prop:"gridColumn"}),$=(0,o.ZP)({prop:"gridRow"}),P=(0,o.ZP)({prop:"gridAutoFlow"}),O=(0,o.ZP)({prop:"gridAutoColumns"}),B=(0,o.ZP)({prop:"gridAutoRows"}),T=(0,o.ZP)({prop:"gridTemplateColumns"}),j=(0,o.ZP)({prop:"gridTemplateRows"});function I(e,t){return"grey"===t?t:e}a(Z,w,A,C,$,P,O,B,T,j,(0,o.ZP)({prop:"gridTemplateAreas"}),(0,o.ZP)({prop:"gridArea"}));let R=(0,o.ZP)({prop:"color",themeKey:"palette",transform:I});function E(e){return e<=1&&0!==e?`${100*e}%`:e}a(R,(0,o.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:I}),(0,o.ZP)({prop:"backgroundColor",themeKey:"palette",transform:I}));let _=(0,o.ZP)({prop:"width",transform:E}),N=e=>void 0!==e.maxWidth&&null!==e.maxWidth?(0,l.k9)(e,e.maxWidth,t=>{let r=e.theme?.breakpoints?.values?.[t]||l.VO[t];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:E(t)}}):null;N.filterProps=["maxWidth"];let z=(0,o.ZP)({prop:"minWidth",transform:E}),F=(0,o.ZP)({prop:"height",transform:E}),L=(0,o.ZP)({prop:"maxHeight",transform:E}),M=(0,o.ZP)({prop:"minHeight",transform:E});(0,o.ZP)({prop:"size",cssProperty:"width",transform:E}),(0,o.ZP)({prop:"size",cssProperty:"height",transform:E}),a(_,N,z,F,L,M,(0,o.ZP)({prop:"boxSizing"}));let q={border:{themeKey:"borders",transform:s},borderTop:{themeKey:"borders",transform:s},borderRight:{themeKey:"borders",transform:s},borderBottom:{themeKey:"borders",transform:s},borderLeft:{themeKey:"borders",transform:s},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:s},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:k},color:{themeKey:"palette",transform:I},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:I},backgroundColor:{themeKey:"palette",transform:I},p:{style:n.o3},pt:{style:n.o3},pr:{style:n.o3},pb:{style:n.o3},pl:{style:n.o3},px:{style:n.o3},py:{style:n.o3},padding:{style:n.o3},paddingTop:{style:n.o3},paddingRight:{style:n.o3},paddingBottom:{style:n.o3},paddingLeft:{style:n.o3},paddingX:{style:n.o3},paddingY:{style:n.o3},paddingInline:{style:n.o3},paddingInlineStart:{style:n.o3},paddingInlineEnd:{style:n.o3},paddingBlock:{style:n.o3},paddingBlockStart:{style:n.o3},paddingBlockEnd:{style:n.o3},m:{style:n.e6},mt:{style:n.e6},mr:{style:n.e6},mb:{style:n.e6},ml:{style:n.e6},mx:{style:n.e6},my:{style:n.e6},margin:{style:n.e6},marginTop:{style:n.e6},marginRight:{style:n.e6},marginBottom:{style:n.e6},marginLeft:{style:n.e6},marginX:{style:n.e6},marginY:{style:n.e6},marginInline:{style:n.e6},marginInlineStart:{style:n.e6},marginInlineEnd:{style:n.e6},marginBlock:{style:n.e6},marginBlockStart:{style:n.e6},marginBlockEnd:{style:n.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Z},rowGap:{style:A},columnGap:{style:w},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:E},maxWidth:{style:N},minWidth:{transform:E},height:{transform:E},maxHeight:{transform:E},minHeight:{transform:E},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}},93772:function(e,t,r){r.d(t,{Z:()=>i});var n=r(61170),o=r(40273);function i(e){let t,{sx:r,...i}=e,{systemProps:a,otherProps:l}=(e=>{let t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??o.Z;return Object.keys(e).forEach(n=>{r[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t})(i);return t=Array.isArray(r)?[a,...r]:"function"==typeof r?(...e)=>{let t=r(...e);return(0,n.P)(t)?{...a,...t}:a}:{...a,...r},{...l,sx:t}}},11652:function(e,t,r){r.d(t,{Z:()=>u});var n=r(3150),o=r(76360),i=r(33160),a=r(13890),l=r(58787),s=r(40273);let c=function(){function e(e,t,r,o){let l={[e]:t,theme:r},s=o[e];if(!s)return{[e]:t};let{cssProperty:c=e,themeKey:u,transform:f,style:d}=s;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};let p=(0,i.DW)(r,u)||{};return d?d(l):(0,a.k9)(l,t,t=>{let r=(0,i.Jq)(p,f,t);return(t===r&&"string"==typeof t&&(r=(0,i.Jq)(p,f,`${e}${"default"===t?"":(0,n.Z)(t)}`,t)),!1===c)?r:{[c]:r}})}return function t(r){let{sx:n,theme:i={}}=r||{};if(!n)return null;let c=i.unstable_sxConfig??s.Z;function u(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;let s=(0,a.W8)(i.breakpoints),u=Object.keys(s),f=s;return Object.keys(n).forEach(r=>{var l;let s=(l=n[r],"function"==typeof l?l(i):l);if(null!=s)if("object"==typeof s)if(c[r])f=(0,o.Z)(f,e(r,s,i,c));else{let e=(0,a.k9)({theme:i},s,e=>({[r]:e}));!function(...e){let t=new Set(e.reduce((e,t)=>e.concat(Object.keys(t)),[]));return e.every(e=>t.size===Object.keys(e).length)}(e,s)?f=(0,o.Z)(f,e):f[r]=t({sx:s,theme:i})}else f=(0,o.Z)(f,e(r,s,i,c))}),(0,l.ar)(i,(0,a.L7)(u,f))}return Array.isArray(n)?n.map(u):u(n)}}();c.filterProps=["sx"];let u=c},38971:function(e,t,r){r.d(t,{Z:()=>a});var n=r(6798),o=r(24105);let i=(0,n.Z)(),a=function(e=i){return(0,o.Z)(e)}},24105:function(e,t,r){r.d(t,{Z:()=>i});var n=r(54538),o=r(72116);let i=function(e=null){let t=n.useContext(o.ThemeContext);return t&&0!==Object.keys(t).length?t:e}},70544:function(e,t,r){let n;r.d(t,{Z:()=>i});let o=e=>e,i=(n=o,{configure(e){n=e},generate:e=>n(e),reset(){n=o}})},60206:function(e,t,r){r.d(t,{Z:()=>n});let n=function(e,t,r){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...r}}}},3150:function(e,t,r){r.d(t,{Z:()=>o});var n=r(62220);function o(e){if("string"!=typeof e)throw Error((0,n.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},82267:function(e,t,r){r.d(t,{Z:()=>n});function n(e,t,r){let n={};for(let o in e){let i=e[o],a="",l=!0;for(let e=0;e<i.length;e+=1){let n=i[e];n&&(a+=(!0===l?"":" ")+t(n),l=!1,r&&r[n]&&(a+=" "+r[n]))}n[o]=a}return n}},38543:function(e,t,r){r.d(t,{Z:()=>n});function n(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})}},24384:function(e,t,r){r.d(t,{Z:()=>n});function n(e,t=166){let r;function o(...n){let i=()=>{e.apply(this,n)};clearTimeout(r),r=setTimeout(i,t)}return o.clear=()=>{clearTimeout(r)},o}},61170:function(e,t,r){r.d(t,{P:()=>i,Z:()=>function e(t,r,a={clone:!0}){let l=a.clone?{...t}:t;return i(t)&&i(r)&&Object.keys(r).forEach(s=>{n.isValidElement(r[s])||(0,o.isValidElementType)(r[s])?l[s]=r[s]:i(r[s])&&Object.prototype.hasOwnProperty.call(t,s)&&i(t[s])?l[s]=e(t[s],r[s],a):a.clone?l[s]=i(r[s])?function e(t){if(n.isValidElement(t)||(0,o.isValidElementType)(t)||!i(t))return t;let r={};return Object.keys(t).forEach(n=>{r[n]=e(t[n])}),r}(r[s]):r[s]:l[s]=r[s]}),l}});var n=r(54538),o=r(41453);function i(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}},92438:function(e,t,r){r.d(t,{Z:()=>n});let n=function(e,t=[]){if(void 0===e)return{};let r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}},62220:function(e,t,r){r.d(t,{Z:()=>n});function n(e,...t){let r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>r.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${r} for the full message.`}},6749:function(e,t,r){r.d(t,{ZP:()=>i});var n=r(70544);let o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function i(e,t,r="Mui"){let a=o[t];return a?`${r}-${a}`:`${n.Z.generate(e)}-${t}`}},44124:function(e,t,r){r.d(t,{Z:()=>o});var n=r(6749);function o(e,t,r="Mui"){let i={};return t.forEach(t=>{i[t]=(0,n.ZP)(e,t,r)}),i}},11104:function(e,t,r){r.d(t,{Z:()=>o});var n=r(54538);function o(e,t){return n.isValidElement(e)&&-1!==t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)}},92729:function(e,t,r){r.d(t,{Z:()=>a});var n=r(90496),o=r(92438);let i=function(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t},a=function(e){let{getSlotProps:t,additionalProps:r,externalSlotProps:a,externalForwardedProps:l,className:s}=e;if(!t){let e=(0,n.Z)(r?.className,s,l?.className,a?.className),t={...r?.style,...l?.style,...a?.style},o={...r,...l,...a};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let c=(0,o.Z)({...l,...a}),u=i(a),f=i(l),d=t(c),p=(0,n.Z)(d?.className,r?.className,s,l?.className,a?.className),m={...d?.style,...r?.style,...l?.style,...a?.style},g={...d,...r,...f,...u};return p.length>0&&(g.className=p),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:d.ref}}},80668:function(e,t,r){r.d(t,{Z:()=>n});function n(e){return e&&e.ownerDocument||document}},33205:function(e,t,r){r.d(t,{Z:()=>o});var n=r(80668);function o(e){return(0,n.Z)(e).defaultView||window}},85480:function(e,t,r){r.d(t,{Z:()=>n});let n=function(e,t,r){return"function"==typeof e?e(t,r):e}},16819:function(e,t,r){r.d(t,{Z:()=>function e(t,r){let n={...r};for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o))if("components"===o||"slots"===o)n[o]={...t[o],...n[o]};else if("componentsProps"===o||"slotProps"===o){let i=t[o],a=r[o];if(a)if(i)for(let t in n[o]={...a},i)Object.prototype.hasOwnProperty.call(i,t)&&(n[o][t]=e(i[t],a[t]));else n[o]=a;else n[o]=i||{}}else void 0===n[o]&&(n[o]=t[o]);return n}})},85817:function(e,t,r){r.d(t,{Z:()=>n});function n(e,t){"function"==typeof e?e(t):e&&(e.current=t)}},9831:function(e,t,r){r.d(t,{Z:()=>o});var n=r(54538);function o({controlled:e,default:t,name:r,state:o="value"}){let{current:i}=n.useRef(void 0!==e),[a,l]=n.useState(t),s=n.useCallback(e=>{i||l(e)},[]);return[i?e:a,s]}},96858:function(e,t,r){r.d(t,{Z:()=>o});var n=r(54538);let o="undefined"!=typeof window?n.useLayoutEffect:n.useEffect},81925:function(e,t,r){r.d(t,{Z:()=>i});var n=r(54538),o=r(96858);let i=function(e){let t=n.useRef(e);return(0,o.Z)(()=>{t.current=e}),n.useRef((...e)=>(0,t.current)(...e)).current}},97048:function(e,t,r){r.d(t,{Z:()=>i});var n=r(54538),o=r(85817);function i(...e){return n.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{(0,o.Z)(e,t)})},e)}},5056:function(e,t,r){r.d(t,{Z:()=>a});var n=r(54538);let o=0,i={...n}.useId;function a(e){if(void 0!==i){let t=i();return e??t}let[t,r]=n.useState(e),a=e||t;return n.useEffect(()=>{null==t&&(o+=1,r(`mui-${o}`))},[t]),a}},99565:function(e,t,r){r.d(t,{Z:()=>i});var n=r(54538);let o={};function i(e,t){let r=n.useRef(o);return r.current===o&&(r.current=e(t)),r}},25399:function(e,t,r){r.d(t,{Z:()=>l});var n=r(97048),o=r(60206),i=r(92729),a=r(85480);let l=function(e){let{elementType:t,externalSlotProps:r,ownerState:l,skipResolvingSlotProps:s=!1,...c}=e,u=s?{}:(0,a.Z)(r,l),{props:f,internalRef:d}=(0,i.Z)({...c,externalSlotProps:u}),p=(0,n.Z)(d,u?.ref,e.additionalProps?.ref);return(0,o.Z)(t,{...f,ref:p},l)}},47126:function(e,t,r){r.d(t,{V:()=>a,Z:()=>l});var n=r(99565),o=r(54538);let i=[];class a{static create(){return new a}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function l(){var e;let t=(0,n.Z)(a.create).current;return e=t.disposeEffect,o.useEffect(e,i),t}},41453:function(e,t){var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler");Symbol.for("react.provider");var l=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g=Symbol.for("react.client.reference");t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===a||e===i||e===u||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===d||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===g||void 0!==e.getModuleId)||!1}},16897:function(e,t,r){r.d(t,{Z:()=>o});var n=r(54538);let o=r.n(n)().createContext(null)},71426:function(e,t,r){var n=r(54538),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,i={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,n)&&!s.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:l.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},24246:function(e,t,r){e.exports=r(71426)},54652:function(e,t,r){function n(e,t){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)}r.d(t,{Z:()=>o})},97784:function(e,t,r){r.d(t,{Z:()=>n});function n(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}},90496:function(e,t,r){r.d(t,{Z:()=>n});let n=function(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}(e))&&(n&&(n+=" "),n+=t);return n}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.chunk_Prometheus=self.chunk_Prometheus||[]).push([["8164"],{35015:function(e,t,i){async function a(...e){let t=await globalThis.fetch(...e);if(!1===t.ok){let e=t.headers.get("content-type");if(e?.includes("application/json")){let e=await t.clone().json();if(e.error)throw new s(e.error,t.status);if(e.message)throw new s(e.message,t.status)}let i=await t.clone().text();if(i)throw new s(i,t.status);throw new n(t)}return t}async function r(...e){let t=await a(...e);if(!t.ok)throw new n(t);return await t.json()}i.d(t,{he:()=>a,kp:()=>n,rd:()=>r,yh:()=>s});class n extends Error{status;constructor(e){super(`${e.status} ${e.statusText}`),this.status=e.status,Object.setPrototypeOf(this,n.prototype)}}class s extends Error{status;constructor(e,t){super(e),this.status=t,Object.setPrototypeOf(this,s.prototype)}}},91542:function(e,t,i){i.d(t,{q9:()=>en});var a,r,n,s,o,l,c,h,u=i(7749),d=i(94197);let p={inf:158,nan:159,bool:1,ignoring:2,on:3,group_left:4,group_right:5,offset:6},O=(e,t)=>p[e.toLowerCase()]||-1,f={avg:8,atan2:7,bottomk:9,count:10,count_values:11,group:12,max:13,min:14,quantile:15,limitk:16,limit_ratio:17,stddev:18,stdvar:19,sum:20,topk:21,by:22,without:23,and:24,or:25,unless:26,start:27,end:28},m=(e,t)=>f[e.toLowerCase()]||-1,v=(0,d.Gv)({LineComment:d.pJ.comment,LabelName:d.pJ.labelName,StringLiteral:d.pJ.string,NumberDurationLiteral:d.pJ.number,NumberDurationLiteralInDurationContext:d.pJ.number,Identifier:d.pJ.variableName,"Abs Absent AbsentOverTime Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp Floor HistogramAvg HistogramCount HistogramFraction HistogramQuantile HistogramSum DoubleExponentialSmoothing Hour Idelta Increase Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MaxOverTime MinOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Time Timestamp Vector Year":d.pJ.function(d.pJ.variableName),"Avg Bottomk Count Count_values Group LimitK LimitRatio Max Min Quantile Stddev Stdvar Sum Topk":d.pJ.operatorKeyword,"By Without Bool On Ignoring GroupLeft GroupRight Offset Start End":d.pJ.modifier,"And Unless Or":d.pJ.logicOperator,"Sub Add Mul Mod Div Atan2 Eql Neq Lte Lss Gte Gtr EqlRegex EqlSingle NeqRegex Pow At":d.pJ.operator,UnaryOp:d.pJ.arithmeticOperator,"( )":d.pJ.paren,"[ ]":d.pJ.squareBracket,"{ }":d.pJ.brace,"⚠":d.pJ.invalid}),g={__proto__:null,absent_over_time:335,absent:337,abs:339,acos:341,acosh:343,asin:345,asinh:347,atan:349,atanh:351,avg_over_time:353,ceil:355,changes:357,clamp:359,clamp_max:361,clamp_min:363,cos:365,cosh:367,count_over_time:369,days_in_month:371,day_of_month:373,day_of_week:375,day_of_year:377,deg:379,delta:381,deriv:383,exp:385,floor:387,histogram_count:389,histogram_fraction:391,histogram_quantile:393,histogram_stddev:395,histogram_stdvar:397,histogram_sum:399,histogram_avg:401,double_exponential_smoothing:403,hour:405,idelta:407,increase:409,info:411,irate:413,label_replace:415,label_join:417,last_over_time:419,ln:421,log10:423,log2:425,mad_over_time:427,max_over_time:429,min_over_time:431,minute:433,month:435,pi:437,predict_linear:439,present_over_time:441,quantile_over_time:443,rad:445,rate:447,resets:449,round:451,scalar:453,sgn:455,sin:457,sinh:459,sort:461,sort_desc:463,sort_by_label:465,sort_by_label_desc:467,sqrt:469,stddev_over_time:471,stdvar_over_time:473,sum_over_time:475,tan:477,tanh:479,timestamp:481,time:483,vector:485,year:487},$=u.WQ.deserialize({version:14,states:"9bOYQPOOO'tQPOOOOQO'#C|'#C|O'yQPO'#C{Q(UQQOOOOQO'#De'#DeO(PQPO'#DdOOQO'#FY'#FYO)cQPO'#F_OYQPO'#F[OYQPO'#F^O0WQSO'#FaO0cQQO'#F`OOQO'#F`'#F`OOQO'#Ft'#FtOOQO'#Df'#DfOOQO'#Dh'#DhOOQO'#Di'#DiOOQO'#Dj'#DjOOQO'#Dk'#DkOOQO'#Dl'#DlOOQO'#Dm'#DmOOQO'#Dn'#DnOOQO'#Do'#DoOOQO'#Dp'#DpOOQO'#Dq'#DqOOQO'#Dr'#DrOOQO'#Ds'#DsOOQO'#Dt'#DtOOQO'#Du'#DuOOQO'#Dv'#DvOOQO'#Dw'#DwOOQO'#Dx'#DxOOQO'#Dy'#DyOOQO'#Dz'#DzOOQO'#D{'#D{OOQO'#D|'#D|OOQO'#D}'#D}OOQO'#EO'#EOOOQO'#EP'#EPOOQO'#EQ'#EQOOQO'#ER'#EROOQO'#ES'#ESOOQO'#ET'#ETOOQO'#EU'#EUOOQO'#EV'#EVOOQO'#EW'#EWOOQO'#EX'#EXOOQO'#EY'#EYOOQO'#EZ'#EZOOQO'#E['#E[OOQO'#E]'#E]OOQO'#E^'#E^OOQO'#E_'#E_OOQO'#E`'#E`OOQO'#Ea'#EaOOQO'#Eb'#EbOOQO'#Ec'#EcOOQO'#Ed'#EdOOQO'#Ee'#EeOOQO'#Ef'#EfOOQO'#Eg'#EgOOQO'#Eh'#EhOOQO'#Ei'#EiOOQO'#Ej'#EjOOQO'#Ek'#EkOOQO'#El'#ElOOQO'#Em'#EmOOQO'#En'#EnOOQO'#Eo'#EoOOQO'#Ep'#EpOOQO'#Eq'#EqOOQO'#Er'#ErOOQO'#Es'#EsOOQO'#Et'#EtOOQO'#Eu'#EuOOQO'#Ev'#EvOOQO'#Ew'#EwOOQO'#Ex'#ExOOQO'#Ey'#EyOOQO'#Ez'#EzOOQO'#E{'#E{OOQO'#E|'#E|OOQO'#E}'#E}OOQO'#FO'#FOOOQO'#FP'#FPOOQO'#FQ'#FQOOQO'#FR'#FROOQO'#FS'#FSOOQO'#FT'#FTOOQO'#FU'#FUOOQO'#FV'#FVQOQPOOO1|QPO'#C}O2RQPO'#DSO(PQPO,59gO2YQQO,59gO3vQPO,59oO3vQPO,59oO3vQPO,59oO3vQPO,59oO3vQPO,59oO:kQPO,5;rO:kQPO,5;uO:|QPO,5<SOOQO,5:O,5:OOOQO,5;t,5;tO;eQQO,5;vO;lQQO,5;xOOQO'#DQ'#DQO=SQPO'#FbO=bQPO,5;{OOQO,5;{,5;{O=nQPO,5;{OOQO,5;z,5;zO=vQSO'#DOOOQO,59i,59iOOQO,59n,59nO>RQQO,59nOOQO1G/R1G/ROOQO'#DV'#DVO1|QPO'#DWOOQO'#Fx'#FxO>]QPO'#FxOYQPO1G/ZOYQPO1G/ZOYQPO1G/ZOYQPO1G/ZOYQPO1G/ZOOQO'#FX'#FXOD}QPO'#FXOEYQSO1G1^OOQO1G1a1G1aOEbQPO'#FYOOQO'#Fj'#FjOOQO1G1n1G1nOEmQPO1G1nOOQO1G1b1G1bOOQO'#Fc'#FcOErQPO,5;|OEwQPO,5<ROE|QSO1G1gOFXQPO1G1gOOQO1G1g1G1gOOQO,59j,59jOFaQPO,59jOYQPO'#FmOFiQPO1G/YOOQO1G/Y1G/YOFqQPO,59rOOQO,5<d,5<dONmQQO7+$uON}QQO7+$uO!!cQQO7+$uO!!yQQO7+$uO!$bQQO7+$uOOQO,5;s,5;sOOQO7+&x7+&xO!${QPO7+&}O!%SQPO7+'YOOQO1G1h1G1hOOQO1G1m1G1mO!%XQPO,5<YOOQO,5<Y,5<YOOQO7+'R7+'RO!%mQSO7+'ROOQO-E9l-E9lO!%xQSO1G/UO!&TQPO1G/UOOQO1G/U1G/UO!&]QQO,5<XOOQO-E9k-E9kOOQO7+$t7+$tO!&gQPO1G/^OOQO<<Ji<<JiO!-RQPO<<JiOOQO<<Jt<<JtOOQO<<Jm<<JmP!-WQSO'#FnOOQO,5<W,5<WOOQO7+$p7+$pO!-`QSO7+$pOOQO-E9j-E9jOOQO7+$x7+$xOOQOAN@TAN@TOOQO<<H[<<H[P!-kQSO'#Fl",stateData:"!-s~O$gOSmOS~OWQOXQOYQOZQO[QO]QO^QO_QO`QOaQObQOcQOdQOeQOu^O!Z[O$dVO$eVO$iXO$m_O$n`O$oaO$pbO$qcO$rdO$seO$tfO$ugO$vhO$wiO$xjO$ykO$zlO${mO$|nO$}oO%OpO%PqO%QrO%RsO%StO%TuO%UvO%VwO%WxO%XyO%YzO%Z{O%[|O%]}O%^!OO%_!PO%`!QO%a!RO%b!SO%c!TO%d!UO%e!VO%f!WO%g!XO%h!YO%i!ZO%j![O%k!]O%l!^O%m!_O%n!`O%o!aO%p!bO%q!cO%r!dO%s!eO%t!fO%u!gO%v!hO%w!iO%x!jO%y!kO%z!lO%{!mO%|!nO%}!oO&O!pO&P!qO&Q!rO&R!sO&S!tO&T!uO&U!vO&V!wO&W!xO&X!yO&Y!zO&Z!{O&[!|O&]!}O&_WO&`WO&aVO&dZO~O!Z#OO~Of#POg#PO$i#QO~OU#ZOV#TOh#WOi#XOj#WOx#TO{#TO|#TO}#TO!O#UO!P#UO!Q#VO!R#VO!S#VO!T#VO!U#VO!V#VO$]#[O&^#YO~O$d#^O$e#^O&a#^OW$RXX$RXY$RXZ$RX[$RX]$RX^$RX_$RX`$RXa$RXb$RXc$RXd$RXe$RXu$RX!Z$RX$d$RX$e$RX$i$RX$m$RX$n$RX$o$RX$p$RX$q$RX$r$RX$s$RX$t$RX$u$RX$v$RX$w$RX$x$RX$y$RX$z$RX${$RX$|$RX$}$RX%O$RX%P$RX%Q$RX%R$RX%S$RX%T$RX%U$RX%V$RX%W$RX%X$RX%Y$RX%Z$RX%[$RX%]$RX%^$RX%_$RX%`$RX%a$RX%b$RX%c$RX%d$RX%e$RX%f$RX%g$RX%h$RX%i$RX%j$RX%k$RX%l$RX%m$RX%n$RX%o$RX%p$RX%q$RX%r$RX%s$RX%t$RX%u$RX%v$RX%w$RX%x$RX%y$RX%z$RX%{$RX%|$RX%}$RX&O$RX&P$RX&Q$RX&R$RX&S$RX&T$RX&U$RX&V$RX&W$RX&X$RX&Y$RX&Z$RX&[$RX&]$RX&_$RX&`$RX&a$RX&d$RX~Os#bOu#aO&e#dO~O&dZOU$SXV$SXh$SXi$SXj$SXx$SX{$SX|$SX}$SX!O$SX!P$SX!Q$SX!R$SX!S$SX!T$SX!U$SX!V$SX$]$SX$c$SX&^$SX$k$SX$j$SX~O$i#gO~O$k#iO~PYOf#POg#POUoaVoahoaioajoaxoa{oa|oa}oa!Ooa!Poa!Qoa!Roa!Soa!Toa!Uoa!Voa$]oa$coa&^oa$koa$joa~OP#lOQ#mOR#mOW$lPX$lPY$lPZ$lP[$lP]$lP^$lP_$lP`$lPa$lPb$lPc$lPd$lPe$lPu$lP!Z$lP$d$lP$e$lP$i$lP$m$lP$n$lP$o$lP$p$lP$q$lP$r$lP$s$lP$t$lP$u$lP$v$lP$w$lP$x$lP$y$lP$z$lP${$lP$|$lP$}$lP%O$lP%P$lP%Q$lP%R$lP%S$lP%T$lP%U$lP%V$lP%W$lP%X$lP%Y$lP%Z$lP%[$lP%]$lP%^$lP%_$lP%`$lP%a$lP%b$lP%c$lP%d$lP%e$lP%f$lP%g$lP%h$lP%i$lP%j$lP%k$lP%l$lP%m$lP%n$lP%o$lP%p$lP%q$lP%r$lP%s$lP%t$lP%u$lP%v$lP%w$lP%x$lP%y$lP%z$lP%{$lP%|$lP%}$lP&O$lP&P$lP&Q$lP&R$lP&S$lP&T$lP&U$lP&V$lP&W$lP&X$lP&Y$lP&Z$lP&[$lP&]$lP&_$lP&`$lP&a$lP&d$lP~O$d#uO$e#uO&_#vO&`#vO&a#uO~Ok#zOl#zO$dVO$eVO&_#yO&`#yO&aVO~O$k#}O~P(UOx#TOU$QaV$Qah$Qai$Qaj$Qa{$Qa|$Qa}$Qa!O$Qa!P$Qa!Q$Qa!R$Qa!S$Qa!T$Qa!U$Qa!V$Qa$]$Qa$c$Qa&^$Qa$k$Qa$j$Qa~O!V$OO$W$OO$X$OO$Y$OO~O!V$OO$W$OO$X$OO$Y$OO$j$RO&e$TO~Os$VOu#aO$k$UO~O$j$WO$k$YO~P(UOQ#mOR#mOW$lXX$lXY$lXZ$lX[$lX]$lX^$lX_$lX`$lXa$lXb$lXc$lXd$lXe$lXu$lX!Z$lX$d$lX$e$lX$i$lX$m$lX$n$lX$o$lX$p$lX$q$lX$r$lX$s$lX$t$lX$u$lX$v$lX$w$lX$x$lX$y$lX$z$lX${$lX$|$lX$}$lX%O$lX%P$lX%Q$lX%R$lX%S$lX%T$lX%U$lX%V$lX%W$lX%X$lX%Y$lX%Z$lX%[$lX%]$lX%^$lX%_$lX%`$lX%a$lX%b$lX%c$lX%d$lX%e$lX%f$lX%g$lX%h$lX%i$lX%j$lX%k$lX%l$lX%m$lX%n$lX%o$lX%p$lX%q$lX%r$lX%s$lX%t$lX%u$lX%v$lX%w$lX%x$lX%y$lX%z$lX%{$lX%|$lX%}$lX&O$lX&P$lX&Q$lX&R$lX&S$lX&T$lX&U$lX&V$lX&W$lX&X$lX&Y$lX&Z$lX&[$lX&]$lX&_$lX&`$lX&a$lX&d$lX~O$d$bO$e$bO&a$bO~O&b$cO&c$dO~O$d#^O$e#^O&a#^O~O$i$eO~Ou$fO~Ou$gO~Os#bOu#aO&e$jO~O$j$kO&e$jO~O$j$mO$k$oO~O$j$WO$k$rO~OS$sOT$sOWzaXzaYzaZza[za]za^za_za`zaazabzaczadzaezauza!Zza$dza$eza$iza$mza$nza$oza$pza$qza$rza$sza$tza$uza$vza$wza$xza$yza$zza${za$|za$}za%Oza%Pza%Qza%Rza%Sza%Tza%Uza%Vza%Wza%Xza%Yza%Zza%[za%]za%^za%_za%`za%aza%bza%cza%dza%eza%fza%gza%hza%iza%jza%kza%lza%mza%nza%oza%pza%qza%rza%sza%tza%uza%vza%wza%xza%yza%zza%{za%|za%}za&Oza&Pza&Qza&Rza&Sza&Tza&Uza&Vza&Wza&Xza&Yza&Zza&[za&]za&_za&`za&aza&dza~Ox#TOUwqhwqiwqjwq!Owq!Pwq!Qwq!Rwq!Swq!Twq!Uwq!Vwq$]wq$cwq&^wq$kwq$jwq~OVwq{wq|wq}wq~PMcOV#TO{#TO|#TO}#TO~PMcOV#TOx#TO{#TO|#TO}#TO!O#UO!P#UOUwqhwqiwqjwq$]wq$cwq&^wq$kwq$jwq~O!Qwq!Rwq!Swq!Twq!Uwq!Vwq~P! _O!Q#VO!R#VO!S#VO!T#VO!U#VO!V#VO~P! _OV#TOh#WOj#WOx#TO{#TO|#TO}#TO!O#UO!P#UO!Q#VO!R#VO!S#VO!T#VO!U#VO!V#VO~OUwqiwq$]wq$cwq&^wq$kwq$jwq~P!#aO&b$tO~P:kO$k$vO~O!V$OO$W$OO$X$OO$Y$OO$j$ba&e$ba~Os#bOu#aO&e$wO~Os$yOu#aO$k$zO~O$j${O$k$zO~O$j$aa$k$aa~P(UO$i#gOWziXziYziZzi[zi]zi^zi_zi`ziazibziczidzieziuzi!Zzi$dzi$ezi$mzi$nzi$ozi$pzi$qzi$rzi$szi$tzi$uzi$vzi$wzi$xzi$yzi$zzi${zi$|zi$}zi%Ozi%Pzi%Qzi%Rzi%Szi%Tzi%Uzi%Vzi%Wzi%Xzi%Yzi%Zzi%[zi%]zi%^zi%_zi%`zi%azi%bzi%czi%dzi%ezi%fzi%gzi%hzi%izi%jzi%kzi%lzi%mzi%nzi%ozi%pzi%qzi%rzi%szi%tzi%uzi%vzi%wzi%xzi%yzi%zzi%{zi%|zi%}zi&Ozi&Pzi&Qzi&Rzi&Szi&Tzi&Uzi&Vzi&Wzi&Xzi&Yzi&Zzi&[zi&]zi&_zi&`zi&azi&dzi~O&b%OO~Os#bOu#aO~Os$yOu#aO$k%PO~Os$yOu#aO~O",goto:")v$mPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP$n$z%W%^P%gP%w$nP&Q&XPPPPPPPPPPP$n&c&oP&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o$n&{'U$n$n$n$n'e$n'q(Q(YPPP(Q$nP(aP(d(j(pPPPPP(wPPP)ge^OXY#Q#p#q#r#s#t$WeROXY#Q#p#q#r#s#t$WQ#RRR#k#SQ#h#PQ$Z#mR$}$sQ#cZQ$V#gU$h$R$k$xV$y$m${%QQ#SRQ#]UR#k#RZ#o#T#U#V#W#XY#n#T#U#V#W#XR$[#oeUOXY#Q#p#q#r#s#t$WeTOXY#Q#p#q#r#s#t$WQ#w#YQ#x#ZR$u$dd^OXY#Q#p#q#r#s#t$WR#{#[eYOXY#Q#p#q#r#s#t$Wd]OXY#Q#p#q#r#s#t$WR#f[Q#eZV$i$R$k$xQ$P#bT$Q#c$hR#|#[Q$n$VR$|$nQ$X#jR$q$XS$S#c#eR$l$SQSOQ#_XQ#`YQ#j#QQ$]#pQ$^#qQ$_#rQ$`#sQ$a#tR$p$WQ#p#TQ#q#UQ#r#VQ#s#WR#t#X",nodeNames:"⚠ Bool Ignoring On GroupLeft GroupRight Offset Atan2 Avg Bottomk Count CountValues Group Max Min Quantile LimitK LimitRatio Stddev Stdvar Sum Topk By Without And Or Unless Start End LineComment PromQL AggregateExpr AggregateOp AggregateModifier GroupingLabels LabelName QuotedLabelName StringLiteral FunctionCallBody BinaryExpr Pow BoolModifier MatchingModifierClause Mul Div Mod Add Sub Eql Gte Gtr Lte Lss Neq FunctionCall FunctionIdentifier AbsentOverTime Identifier Absent Abs Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp Floor HistogramCount HistogramFraction HistogramQuantile HistogramStdDev HistogramStdVar HistogramSum HistogramAvg DoubleExponentialSmoothing Hour Idelta Increase Info Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MadOverTime MaxOverTime MinOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Timestamp Time Vector Year MatrixSelector NumberDurationLiteralInDurationContext NumberDurationLiteral OffsetExpr ParenExpr SubqueryExpr UnaryExpr UnaryOp VectorSelector LabelMatchers UnquotedLabelMatcher MatchOp EqlSingle EqlRegex NeqRegex QuotedLabelMatcher StepInvariantExpr At AtModifierPreprocessors MetricName",maxTerm:251,nodeProps:[["group",-12,31,37,39,54,134,136,137,138,139,140,142,150,"Expr"]],propSources:[v],skippedNodes:[0,29],repeatNodeCount:3,tokenData:"4k~RwX^#lpq#lqr$ars$tst&luv'Twx'Yxy({yz)Qz{)V{|)[|})c}!O)h!O!P)o!P!Q*u!Q!R*z!R![+u![!]1O!^!_1z!_!`2X!`!a2n!b!c2{!c!}3Q!}#O3h#P#Q3m#Q#R3r#R#S3Q#S#T3w#T#o3Q#o#p4a#q#r4f#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$I|$JO#l$JT$JU#l$KV$KW#l&FU&FV#l~#qY$g~X^#lpq#l#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$I|$JO#l$JT$JU#l$KV$KW#l&FU&FV#l~$dQ!_!`$j#r#s$o~$oO!V~~$tO$Y~~$yWu~OY$tZr$trs%cs#O$t#O#P%h#P;'S$t;'S;=`&f<%lO$t~%hOu~~%kRO;'S$t;'S;=`%t;=`O$t~%yXu~OY$tZr$trs%cs#O$t#O#P%h#P;'S$t;'S;=`&f;=`<%l$t<%lO$t~&iP;=`<%l$t~&qSm~OY&lZ;'S&l;'S;=`&}<%lO&l~'QP;=`<%l&l~'YO}~~'_Wu~OY'YZw'Ywx%cx#O'Y#O#P'w#P;'S'Y;'S;=`(u<%lO'Y~'zRO;'S'Y;'S;=`(T;=`O'Y~(YXu~OY'YZw'Ywx%cx#O'Y#O#P'w#P;'S'Y;'S;=`(u;=`<%l'Y<%lO'Y~(xP;=`<%l'Y~)QO$i~~)VO$k~~)[O{~R)cO&`P!OQ~)hO$j~R)oO&_P!PQ~)rP!Q![)u~)zS&a~!Q![)u!g!h*W#R#S)o#X#Y*W~*ZR{|*d}!O*d!Q![*j~*gP!Q![*j~*oQ&a~!Q![*j#R#S*d~*zO|~~+P[&a~!O!P)o!Q![+u!g!h*W#R#S,m#W#X-X#X#Y*W#[#]-p#a#b.U#g#h.x#k#l/Z#l#m0d#m#n/u~+zZ&a~!O!P)o!Q![+u!g!h*W#R#S,m#W#X-X#X#Y*W#[#]-p#a#b.U#g#h.x#k#l/Z#m#n/u~,pP!Q![,s~,xT&a~!O!P)o!Q![,s!g!h*W#R#S,m#X#Y*W~-^P&a~!Q![-a~-dS!Q![-a#[#]-p#a#b.U#g#h.x~-uP&a~!Q![-x~-{R!Q![-x#a#b.U#g#h.x~.ZQ&a~!Q![.a#g#h.s~.dR!Q![.a#a#b.m#g#h.x~.pP#g#h.s~.xO&a~~.}P&a~!Q![/Q~/TQ!Q![/Q#a#b.m~/`P&a~!Q![/c~/fT!Q![/c#W#X-X#[#]-p#a#b.U#g#h.x~/zP&a~!Q![/}~0QU!Q![/}#W#X-X#[#]-p#a#b.U#g#h.x#k#l/Z~0gR!Q![0p!c!i0p#T#Z0p~0uR&a~!Q![0p!c!i0p#T#Z0pV1VT&cS!ZR!Q![1f![!]1f!c!}1f#R#S1f#T#o1fR1kT!ZR!Q![1f![!]1f!c!}1f#R#S1f#T#o1f~2PP!U~!_!`2S~2XO!T~~2^Q$WP!_!`2d#r#s2iQ2iO!QQ~2nO$X~~2sP!S~!_!`2v~2{O!R~~3QO$]~V3XT!ZRsS!Q![3Q![!]1f!c!}3Q#R#S3Q#T#o3Q~3mO&^~~3rO&b~~3wOx~~3zTO#S3w#S#T%c#T;'S3w;'S;=`4Z<%lO3w~4^P;=`<%l3w~4fO&d~~4kO&e~",tokenizers:[0,1,2],topRules:{PromQL:[0,30],MetricName:[1,153]},specialized:[{term:57,get:(e,t)=>O(e)<<1,external:O},{term:57,get:(e,t)=>m(e)<<1|1,external:m,extend:!0},{term:57,get:e=>g[e]||-1}],tokenPrec:0});(a=o||(o={})).none="none",a.vector="vector",a.scalar="scalar",a.matrix="matrix",a.string="string";let y={59:{name:"abs",argTypes:[o.vector],variadic:0,returnType:o.vector},58:{name:"absent",argTypes:[o.vector],variadic:0,returnType:o.vector},56:{name:"absent_over_time",argTypes:[o.matrix],variadic:0,returnType:o.vector},60:{name:"acos",argTypes:[o.vector],variadic:0,returnType:o.vector},61:{name:"acosh",argTypes:[o.vector],variadic:0,returnType:o.vector},62:{name:"asin",argTypes:[o.vector],variadic:0,returnType:o.vector},63:{name:"asinh",argTypes:[o.vector],variadic:0,returnType:o.vector},64:{name:"atan",argTypes:[o.vector],variadic:0,returnType:o.vector},65:{name:"atanh",argTypes:[o.vector],variadic:0,returnType:o.vector},66:{name:"avg_over_time",argTypes:[o.matrix],variadic:0,returnType:o.vector},67:{name:"ceil",argTypes:[o.vector],variadic:0,returnType:o.vector},68:{name:"changes",argTypes:[o.matrix],variadic:0,returnType:o.vector},69:{name:"clamp",argTypes:[o.vector,o.scalar,o.scalar],variadic:0,returnType:o.vector},70:{name:"clamp_max",argTypes:[o.vector,o.scalar],variadic:0,returnType:o.vector},71:{name:"clamp_min",argTypes:[o.vector,o.scalar],variadic:0,returnType:o.vector},72:{name:"cos",argTypes:[o.vector],variadic:0,returnType:o.vector},73:{name:"Cosh",argTypes:[o.vector],variadic:0,returnType:o.vector},74:{name:"count_over_time",argTypes:[o.matrix],variadic:0,returnType:o.vector},75:{name:"days_in_month",argTypes:[o.vector],variadic:1,returnType:o.vector},76:{name:"day_of_month",argTypes:[o.vector],variadic:1,returnType:o.vector},77:{name:"day_of_week",argTypes:[o.vector],variadic:1,returnType:o.vector},78:{name:"day_of_year",argTypes:[o.vector],variadic:1,returnType:o.vector},79:{name:"deg",argTypes:[o.vector],variadic:0,returnType:o.vector},80:{name:"delta",argTypes:[o.matrix],variadic:0,returnType:o.vector},81:{name:"deriv",argTypes:[o.matrix],variadic:0,returnType:o.vector},82:{name:"exp",argTypes:[o.vector],variadic:0,returnType:o.vector},83:{name:"floor",argTypes:[o.vector],variadic:0,returnType:o.vector},90:{name:"histogram_avg",argTypes:[o.vector],variadic:0,returnType:o.vector},84:{name:"histogram_count",argTypes:[o.vector],variadic:0,returnType:o.vector},85:{name:"histogram_fraction",argTypes:[o.scalar,o.scalar,o.vector],variadic:0,returnType:o.vector},86:{name:"histogram_quantile",argTypes:[o.scalar,o.vector],variadic:0,returnType:o.vector},87:{name:"histogram_stddev",argTypes:[o.vector],variadic:0,returnType:o.vector},88:{name:"histogram_stdvar",argTypes:[o.vector],variadic:0,returnType:o.vector},89:{name:"histogram_sum",argTypes:[o.vector],variadic:0,returnType:o.vector},91:{name:"double_exponential_smoothing",argTypes:[o.matrix,o.scalar,o.scalar],variadic:0,returnType:o.vector},92:{name:"hour",argTypes:[o.vector],variadic:1,returnType:o.vector},93:{name:"idelta",argTypes:[o.matrix],variadic:0,returnType:o.vector},94:{name:"increase",argTypes:[o.matrix],variadic:0,returnType:o.vector},95:{name:"info",argTypes:[o.vector,o.vector],variadic:1,returnType:o.vector},96:{name:"irate",argTypes:[o.matrix],variadic:0,returnType:o.vector},97:{name:"label_replace",argTypes:[o.vector,o.string,o.string,o.string,o.string],variadic:0,returnType:o.vector},98:{name:"label_join",argTypes:[o.vector,o.string,o.string,o.string],variadic:-1,returnType:o.vector},99:{name:"last_over_time",argTypes:[o.matrix],variadic:0,returnType:o.vector},100:{name:"ln",argTypes:[o.vector],variadic:0,returnType:o.vector},101:{name:"log10",argTypes:[o.vector],variadic:0,returnType:o.vector},102:{name:"log2",argTypes:[o.vector],variadic:0,returnType:o.vector},103:{name:"mad_over_time",argTypes:[o.matrix],variadic:0,returnType:o.vector},104:{name:"max_over_time",argTypes:[o.matrix],variadic:0,returnType:o.vector},105:{name:"min_over_time",argTypes:[o.matrix],variadic:0,returnType:o.vector},106:{name:"minute",argTypes:[o.vector],variadic:1,returnType:o.vector},107:{name:"month",argTypes:[o.vector],variadic:1,returnType:o.vector},108:{name:"pi",argTypes:[],variadic:0,returnType:o.vector},109:{name:"predict_linear",argTypes:[o.matrix,o.scalar],variadic:0,returnType:o.vector},110:{name:"present_over_time",argTypes:[o.matrix],variadic:0,returnType:o.vector},111:{name:"quantile_over_time",argTypes:[o.scalar,o.matrix],variadic:0,returnType:o.vector},112:{name:"rad",argTypes:[o.vector],variadic:0,returnType:o.vector},113:{name:"rate",argTypes:[o.matrix],variadic:0,returnType:o.vector},114:{name:"resets",argTypes:[o.matrix],variadic:0,returnType:o.vector},115:{name:"round",argTypes:[o.vector,o.scalar],variadic:1,returnType:o.vector},116:{name:"scalar",argTypes:[o.vector],variadic:0,returnType:o.scalar},117:{name:"sgn",argTypes:[o.vector],variadic:0,returnType:o.vector},118:{name:"sin",argTypes:[o.vector],variadic:0,returnType:o.vector},119:{name:"Sinh",argTypes:[o.vector],variadic:0,returnType:o.vector},120:{name:"sort",argTypes:[o.vector],variadic:0,returnType:o.vector},121:{name:"sort_desc",argTypes:[o.vector],variadic:0,returnType:o.vector},122:{name:"sort_by_label",argTypes:[o.vector,o.string],variadic:-1,returnType:o.vector},123:{name:"sort_by_label_desc",argTypes:[o.vector,o.string],variadic:-1,returnType:o.vector},124:{name:"sqrt",argTypes:[o.vector],variadic:0,returnType:o.vector},125:{name:"stddev_over_time",argTypes:[o.matrix],variadic:0,returnType:o.vector},126:{name:"stdvar_over_time",argTypes:[o.matrix],variadic:0,returnType:o.vector},127:{name:"sum_over_time",argTypes:[o.matrix],variadic:0,returnType:o.vector},128:{name:"tan",argTypes:[o.vector],variadic:0,returnType:o.vector},129:{name:"tanh",argTypes:[o.vector],variadic:0,returnType:o.vector},131:{name:"time",argTypes:[],variadic:0,returnType:o.scalar},130:{name:"timestamp",argTypes:[o.vector],variadic:0,returnType:o.vector},132:{name:"vector",argTypes:[o.scalar],variadic:0,returnType:o.vector},133:{name:"year",argTypes:[o.vector],variadic:1,returnType:o.vector}};class b{constructor(e,t,i){this.type=e,this.name=t,this.value=i}matchesEmpty(){switch(this.type){case 146:return""===this.value;case 53:return""!==this.value;default:return!1}}}function _(e,t){let i=[];return e.forEach(e=>{i.push(function(e,t){let i=new b(0,"",""),a=e.cursor();switch(a.type.id){case 149:if(!a.next())break;do switch(a.type.id){case 36:i.name=t.sliceDoc(a.from,a.to).slice(1,-1);break;case 145:{let e=a.node.firstChild;e&&(i.type=e.type.id);break}case 37:i.value=t.sliceDoc(a.from,a.to).slice(1,-1)}while(a.nextSibling());break;case 144:if(!a.next())break;do switch(a.type.id){case 35:i.name=t.sliceDoc(a.from,a.to);break;case 145:{let e=a.node.firstChild;e&&(i.type=e.type.id);break}case 37:i.value=t.sliceDoc(a.from,a.to).slice(1,-1)}while(a.nextSibling());break;case 36:i.name="__name__",i.value=t.sliceDoc(a.from,a.to).slice(1,-1),i.type=146}return i}(e,t))}),i}function T(e,t){for(;;){if(!e||e.type.id===t)return e;e=e.parent}return null}function Q(e,...t){let i=e.cursor();if(!i.next())return!1;let a=!1;do a=t.some(e=>i.type.id===e||i.type.name===e);while(!a&&i.nextSibling());return a}function z(e,...t){let i=e.cursor();if(!i.next())return!1;let a=0;do i.type.is(t[a])&&a++;while(a<t.length&&i.nextSibling());return a>=t.length}(r=l||(l={})).CardOneToOne="one-to-one",r.CardManyToOne="many-to-one",r.CardOneToMany="one-to-many",r.CardManyToMany="many-to-many";var k=i(61262);class P{constructor(e){this.tree=(0,k.qz)(e),this.state=e,this.diagnostics=[]}getDiagnostics(){return this.diagnostics.sort((e,t)=>e.from-t.from)}analyze(){this.checkAST(this.tree.topNode.firstChild),this.diagnoseAllErrorNodes()}diagnoseAllErrorNodes(){let e=this.tree.cursor();for(;e.next();)if(0===e.type.id&&e.to!==this.tree.topNode.to){let t=e.node.parent;this.diagnostics.push({severity:"error",message:"unexpected expression",from:t?t.from:e.from,to:t?t.to:e.to})}}checkAST(e){if(!e)return o.none;switch(e.type.id){case 31:this.checkAggregationExpr(e);break;case 39:this.checkBinaryExpr(e);break;case 54:this.checkCallFunction(e);break;case 138:case 134:this.checkAST(e.getChild("Expr"));break;case 140:{let t=this.checkAST(e.getChild("Expr"));t!==o.scalar&&t!==o.vector&&this.addDiagnostic(e,`unary expression only allowed on expressions of type scalar or instant vector, got ${t}`);break}case 139:{let t=this.checkAST(e.getChild("Expr"));t!==o.vector&&this.addDiagnostic(e,`subquery is only allowed on instant vector, got ${t} in ${e.name} instead`);break}case 142:this.checkVectorSelector(e);break;case 150:{let t=this.checkAST(e.getChild("Expr"));t!==o.vector&&t!==o.matrix&&this.addDiagnostic(e,"@ modifier must be preceded by an instant selector vector or range vector selector or a subquery")}}return function e(t){var i;if(!t)return o.none;switch(t.type.id){case 31:case 142:return o.vector;case 137:return e(t.firstChild);case 37:return o.string;case 136:return o.scalar;case 134:case 139:return o.matrix;case 138:case 140:case 150:return e(t.getChild("Expr"));case 39:{let i=e(t.firstChild),a=e(t.lastChild);if(i===o.scalar&&a===o.scalar)return o.scalar;return o.vector}case 54:{let e=null==(i=t.firstChild)?void 0:i.firstChild;if(!e)return o.none;return y[e.type.id].returnType}default:return o.none}}(e)}checkAggregationExpr(e){var t;let i=null==(t=e.firstChild)?void 0:t.firstChild;if(!i)return void this.addDiagnostic(e,"aggregation operator expected in aggregation expression but got nothing");let a=e.getChild(38),r=a?a.getChildren("Expr"):[];if(!r.length)return void this.addDiagnostic(e,"unable to find the parameter for the expression");this.expectType(r[r.length-1],o.vector,"aggregation expression"),(21===i.type.id||9===i.type.id||16===i.type.id||17===i.type.id||15===i.type.id)&&this.expectType(r[0],o.scalar,"aggregation parameter"),11===i.type.id&&this.expectType(r[0],o.string,"aggregation parameter")}checkBinaryExpr(e){let t=e.firstChild,i=e.lastChild;if(!t||!i)return void this.addDiagnostic(e,"left or right expression is missing in binary expression");let a=this.checkAST(t),r=this.checkAST(i),n=e.getChild(41),s=Q(e,48,53,51,52,49,50),c=Q(e,24,25,26);n?s||this.addDiagnostic(e,"bool modifier can only be used on comparison operators"):s&&a===o.scalar&&r===o.scalar&&this.addDiagnostic(e,"comparisons between scalars must use BOOL modifier");let h=function(e,t){if(!t||39!==t.type.id)return null;let i={card:l.CardOneToOne,matchingLabels:[],on:!1,include:[]},a=t.getChild(42);if(a){i.on=null!==a.getChild(3);let t=a.getChild(34);for(let a of t?t.getChildren(35):[])i.matchingLabels.push(e.sliceDoc(a.from,a.to));let r=a.getChild(4),n=a.getChild(5),s=r||n;if(s){i.card=r?l.CardManyToOne:l.CardOneToMany;let t=s.nextSibling;for(let a of(null==t?void 0:t.getChildren(35))||[])i.include.push(e.sliceDoc(a.from,a.to))}}return Q(t,24,25,26)&&i.card===l.CardOneToOne&&(i.card=l.CardManyToMany),i}(this.state,e);if(null!==h&&h.on)for(let t of h.matchingLabels)for(let i of h.include)t===i&&this.addDiagnostic(e,`label "${t}" must not occur in ON and GROUP clause at once`);a!==o.scalar&&a!==o.vector&&this.addDiagnostic(t,"binary expression must contain only scalar and instant vector types"),r!==o.scalar&&r!==o.vector&&this.addDiagnostic(i,"binary expression must contain only scalar and instant vector types"),(a!==o.vector||r!==o.vector)&&null!==h?h.matchingLabels.length>0&&this.addDiagnostic(e,"vector matching only allowed between instant vectors"):c&&(((null==h?void 0:h.card)===l.CardOneToMany||(null==h?void 0:h.card)===l.CardManyToOne)&&this.addDiagnostic(e,"no grouping allowed for set operations"),(null==h?void 0:h.card)!==l.CardManyToMany&&this.addDiagnostic(e,"set operations must always be many-to-many")),(a===o.scalar||r===o.scalar)&&c&&this.addDiagnostic(e,"set operator not allowed in binary scalar expression")}checkCallFunction(e){var t;let i=null==(t=e.firstChild)?void 0:t.firstChild;if(!i)return void this.addDiagnostic(e,"function not defined");let a=e.getChild(38),r=a?a.getChildren("Expr"):[],n=y[i.type.id],s=n.argTypes.length;if(0===n.variadic)r.length!==s&&this.addDiagnostic(e,`expected ${s} argument(s) in call to "${n.name}", got ${r.length}`);else{let t=s-1;if(t>r.length)this.addDiagnostic(e,`expected at least ${t} argument(s) in call to "${n.name}", got ${r.length}`);else{let i=t+n.variadic;n.variadic>0&&i<r.length&&this.addDiagnostic(e,`expected at most ${i} argument(s) in call to "${n.name}", got ${r.length}`)}}"info"===n.name&&r.length>1&&r[1].getChild(57)&&this.addDiagnostic(e,`expected label selectors as the second argument to "info" function, got ${r[1].type}`);let o=0;for(let e=0;e<r.length;e++){if((o=e)>=n.argTypes.length){if(0===n.variadic)break;o=n.argTypes.length-1}this.expectType(r[e],n.argTypes[o],`call to function "${n.name}"`)}}checkVectorSelector(e){let t=e.getChild(143),i=[];for(let e of[36,149,144])i=i.concat(_(t?t.getChildren(e):[],this.state));let a="",r=e.getChild(57);if(r&&(a=this.state.sliceDoc(r.from,r.to)),""!==a){let t=i.find(e=>"__name__"===e.name);t&&this.addDiagnostic(e,`metric name must not be set twice: ${a} or ${t.value}`),i.push(new b(146,"__name__",a))}else{let t=i.filter(e=>"__name__"===e.name);t.length>1&&this.addDiagnostic(e,`metric name must not be set twice: ${t[0].value} or ${t[1].value}`)}i.every(e=>e.matchesEmpty())&&this.addDiagnostic(e,"vector selector must contain at least one non-empty matcher")}expectType(e,t,i){let a=this.checkAST(e);a!==t&&this.addDiagnostic(e,`expected type ${t} in ${i}, got ${a}`)}addDiagnostic(e,t){this.diagnostics.push({severity:"error",message:t,from:e.from,to:e.to})}}var S=i(13018);let x=[{label:"y"},{label:"w"},{label:"d"},{label:"h"},{label:"m"},{label:"s"},{label:"ms"}],X=[{label:"^"},{label:"*"},{label:"/"},{label:"%"},{label:"+"},{label:"-"},{label:"=="},{label:">="},{label:">"},{label:"<"},{label:"<="},{label:"!="},{label:"atan2"},{label:"and"},{label:"or"},{label:"unless"}],w=[{label:"avg",detail:"aggregation",info:"Calculate the average over dimensions",type:"keyword"},{label:"bottomk",detail:"aggregation",info:"Smallest k elements by sample value",type:"keyword"},{label:"count",detail:"aggregation",info:"Count number of elements in the vector",type:"keyword"},{label:"count_values",detail:"aggregation",info:"Count number of elements with the same value",type:"keyword"},{label:"group",detail:"aggregation",info:"Group series, while setting the sample value to 1",type:"keyword"},{label:"limitk",detail:"aggregation",info:"Sample k elements",type:"keyword"},{label:"limit_ratio",detail:"aggregation",info:"Sample given ratio of elements",type:"keyword"},{label:"max",detail:"aggregation",info:"Select maximum over dimensions",type:"keyword"},{label:"min",detail:"aggregation",info:"Select minimum over dimensions",type:"keyword"},{label:"quantile",detail:"aggregation",info:"Calculate φ-quantile (0 ≤ φ ≤ 1) over dimensions",type:"keyword"},{label:"stddev",detail:"aggregation",info:"Calculate population standard deviation over dimensions",type:"keyword"},{label:"stdvar",detail:"aggregation",info:"Calculate population standard variance over dimensions",type:"keyword"},{label:"sum",detail:"aggregation",info:"Calculate sum over dimensions",type:"keyword"},{label:"topk",detail:"aggregation",info:"Largest k elements by sample value",type:"keyword"}],R=[{label:"sum(rate(__input_vector__[5m]))",type:"function",detail:"snippet",info:"Sum over rates of increase",apply:(0,S.DB)("sum(rate(${__input_vector__}[5m]))")},{label:"histogram_quantile(__quantile__, sum by(le) (rate(__histogram_metric__[5m])))",type:"function",detail:"snippet",info:"Approximate a quantile value from an aggregated histogram",apply:(0,S.DB)("histogram_quantile(${__quantile__}, sum by(le) (rate(${__histogram_metric__}[5m])))")},{label:'label_replace(__input_vector__, "__dst__", "__replacement__", "__src__", "__regex__")',type:"function",detail:"snippet",info:"Set or replace a label value in an input vector",apply:(0,S.DB)('label_replace(${__input_vector__}, "${__dst__}", "${__replacement__}", "${__src__}", "${__regex__}")')},{label:"topk(__rank_number__, __input_vector__)",type:"function",detail:"snippet",info:"Largest k elements by sample value",apply:(0,S.DB)("topk(${__rank_number__}, ${__input_vector__})")},{label:"bottomk(__rank_number__, __input_vector__)",type:"function",detail:"snippet",info:"Smallest k elements by sample value",apply:(0,S.DB)("bottomk(${__rank_number__}, ${__input_vector__})")},{label:'count_values("__label_name__", __input_vector__)',type:"function",detail:"snippet",info:"Count the number of series per distinct sample value",apply:(0,S.DB)('count_values("${__label_name__}", ${__metric__})')}],E=[{label:"="},{label:"!="},{label:"=~"},{label:"!~"}],L=[{label:"on",info:"Match only on specified labels",type:"keyword"},{label:"ignoring",info:"Ignore specified labels for matching",type:"keyword"},{label:"group_left",info:"Allow many-to-one matching",type:"keyword"},{label:"group_right",info:"Allow one-to-many matching",type:"keyword"}],C=[{label:"start()",info:"resolve to the start of the query",type:"keyword"},{label:"end()",info:"resolve to the end of the query",type:"keyword"}],D=[{label:"abs",detail:"function",info:"Return absolute values of input series",type:"function"},{label:"absent",detail:"function",info:"Determine whether input vector is empty",type:"function"},{label:"absent_over_time",detail:"function",info:"Determine whether input range vector is empty",type:"function"},{label:"acos",detail:"function",info:"Calculate the arccosine, in radians, for input series",type:"function"},{label:"acosh",detail:"function",info:"Calculate the inverse hyperbolic cosine, in radians, for input series",type:"function"},{label:"asin",detail:"function",info:"Calculate the arcsine, in radians, for input series",type:"function"},{label:"asinh",detail:"function",info:"Calculate the inverse hyperbolic sine, in radians, for input series",type:"function"},{label:"atan",detail:"function",info:"Calculate the arctangent, in radians, for input series",type:"function"},{label:"atanh",detail:"function",info:"Calculate the inverse hyperbolic tangent, in radians, for input series",type:"function"},{label:"avg_over_time",detail:"function",info:"Average series values over time",type:"function"},{label:"ceil",detail:"function",info:"Round up values of input series to nearest integer",type:"function"},{label:"changes",detail:"function",info:"Return number of value changes in input series over time",type:"function"},{label:"clamp",detail:"function",info:"Limit the value of input series between a minimum and a maximum",type:"function"},{label:"clamp_max",detail:"function",info:"Limit the value of input series to a maximum",type:"function"},{label:"clamp_min",detail:"function",info:"Limit the value of input series to a minimum",type:"function"},{label:"cos",detail:"function",info:"Calculate the cosine, in radians, for input series",type:"function",boost:-1},{label:"cosh",detail:"function",info:"Calculate the hyperbolic cosine, in radians, for input series",type:"function",boost:-1},{label:"count_over_time",detail:"function",info:"Count the number of values for each input series",type:"function"},{label:"days_in_month",detail:"function",info:"Return the number of days in current month for provided timestamps",type:"function"},{label:"day_of_month",detail:"function",info:"Return the day of the month for provided timestamps",type:"function"},{label:"day_of_week",detail:"function",info:"Return the day of the week for provided timestamps",type:"function"},{label:"day_of_year",detail:"function",info:"Return the day of the year for provided timestamps",type:"function"},{label:"deg",detail:"function",info:"Convert radians to degrees for input series",type:"function",boost:-1},{label:"delta",detail:"function",info:"Calculate the difference between beginning and end of a range vector (for gauges)",type:"function"},{label:"deriv",detail:"function",info:"Calculate the per-second derivative over series in a range vector (for gauges)",type:"function"},{label:"exp",detail:"function",info:"Calculate exponential function for input vector values",type:"function"},{label:"floor",detail:"function",info:"Round down values of input series to nearest integer",type:"function"},{label:"histogram_avg",detail:"function",info:"Return the average of observations from a native histogram (experimental feature)",type:"function"},{label:"histogram_count",detail:"function",info:"Return the count of observations from a native histogram (experimental feature)",type:"function"},{label:"histogram_fraction",detail:"function",info:"Calculate fractions of observations within an interval from a native histogram (experimental feature)",type:"function"},{label:"histogram_quantile",detail:"function",info:"Calculate quantiles from native histograms (experimental) and from conventional histogram buckets",type:"function"},{label:"histogram_sum",detail:"function",info:"Return the sum of observations from a native histogram (experimental feature)",type:"function"},{label:"histogram_stddev",detail:"function",info:"Estimate the standard deviation of observations from a native histogram (experimental feature)",type:"function"},{label:"histogram_stdvar",detail:"function",info:"Estimate the standard variance of observations from a native histogram (experimental feature)",type:"function"},{label:"double_exponential_smoothing",detail:"function",info:"Calculate smoothed value of input series",type:"function"},{label:"hour",detail:"function",info:"Return the hour of the day for provided timestamps",type:"function"},{label:"idelta",detail:"function",info:"Calculate the difference between the last two samples of a range vector (for counters)",type:"function"},{label:"increase",detail:"function",info:"Calculate the increase in value over a range of time (for counters)",type:"function"},{label:"info",detail:"function",info:"Add data labels from corresponding info metrics",type:"function"},{label:"irate",detail:"function",info:"Calculate the per-second increase over the last two samples of a range vector (for counters)",type:"function"},{label:"label_replace",detail:"function",info:"Set or replace label values",type:"function"},{label:"label_join",detail:"function",info:"Join together label values into new label",type:"function"},{label:"last_over_time",detail:"function",info:"The most recent point value in specified interval.",type:"function"},{label:"ln",detail:"function",info:"Calculate natural logarithm of input series",type:"function"},{label:"log10",detail:"function",info:"Calulcate base-10 logarithm of input series",type:"function"},{label:"log2",detail:"function",info:"Calculate base-2 logarithm of input series",type:"function"},{label:"mad_over_time",detail:"function",info:"Return the median absolute deviation over time for input series",type:"function"},{label:"max_over_time",detail:"function",info:"Return the maximum value over time for input series",type:"function"},{label:"min_over_time",detail:"function",info:"Return the minimum value over time for input series",type:"function"},{label:"minute",detail:"function",info:"Return the minute of the hour for provided timestamps",type:"function"},{label:"month",detail:"function",info:"Return the month for provided timestamps",type:"function"},{label:"pi",detail:"function",info:"Return pi",type:"function"},{label:"predict_linear",detail:"function",info:"Predict the value of a gauge into the future",type:"function"},{label:"present_over_time",detail:"function",info:"the value 1 for any series in the specified interval",type:"function"},{label:"quantile_over_time",detail:"function",info:"Calculate value quantiles over time for input series",type:"function"},{label:"rad",detail:"function",info:"Convert degrees to radians for input series",type:"function",boost:-1},{label:"rate",detail:"function",info:"Calculate per-second increase over a range vector (for counters)",type:"function"},{label:"resets",detail:"function",info:"Return number of value decreases (resets) in input series of time",type:"function"},{label:"round",detail:"function",info:"Round values of input series to nearest integer",type:"function"},{label:"scalar",detail:"function",info:"Convert single-element series vector into scalar value",type:"function"},{label:"sgn",detail:"function",info:"Returns the sign of the instant vector",type:"function"},{label:"sin",detail:"function",info:"Calculate the sine, in radians, for input series",type:"function"},{label:"sinh",detail:"function",info:"Calculate the hyperbolic sine, in radians, for input series",type:"function"},{label:"sort",detail:"function",info:"Sort input series ascendingly by value",type:"function"},{label:"sort_desc",detail:"function",info:"Sort input series descendingly by value",type:"function"},{label:"sort_by_label",detail:"function",info:"Sort input series ascendingly by label value",type:"function"},{label:"sort_by_label_desc",detail:"function",info:"Sort input series descendingly by value value",type:"function"},{label:"sqrt",detail:"function",info:"Return the square root for input series",type:"function"},{label:"stddev_over_time",detail:"function",info:"Calculate the standard deviation within input series over time",type:"function"},{label:"stdvar_over_time",detail:"function",info:"Calculate the standard variance within input series over time",type:"function"},{label:"sum_over_time",detail:"function",info:"Calculate the sum over the values of input series over time",type:"function"},{label:"tan",detail:"function",info:"Calculate the tangent, in radians, for input series",type:"function"},{label:"tanh",detail:"function",info:"Calculate the hyperbolic tangent, in radians, for input series",type:"function"},{label:"time",detail:"function",info:"Return the Unix timestamp at the current evaluation time",type:"function"},{label:"timestamp",detail:"function",info:"Return the Unix timestamp for the samples in the input vector",type:"function"},{label:"vector",detail:"function",info:"Convert a scalar value into a single-element series vector",type:"function"},{label:"year",detail:"function",info:"Return the year for provided timestamps",type:"function"}],A=[{label:"by",info:"Keep the listed labels, remove all others.",type:"keyword"},{label:"without",info:"Remove the listed labels, preserve all others.",type:"keyword"}],M=[{label:"nan",info:"Floating-point NaN value",type:"constant"},{label:"inf",info:"Floating-point infinity",type:"constant"}];function F(e,t){let i=T(e,142);return i&&(i=i.getChild(57))?t.sliceDoc(i.from,i.to):""}function q(e){var t;let i=e.parent;if(null!==i&&(null==(t=i.firstChild)?void 0:t.type.id)===32){let e=i.firstChild.firstChild;if(null!==e&&[21,9,16,17,11].includes(e.type.id))return!0}return!1}(n=c||(c={}))[n.MetricName=0]="MetricName",n[n.LabelName=1]="LabelName",n[n.LabelValue=2]="LabelValue",n[n.Function=3]="Function",n[n.Aggregation=4]="Aggregation",n[n.BinOpModifier=5]="BinOpModifier",n[n.BinOp=6]="BinOp",n[n.MatchOp=7]="MatchOp",n[n.AggregateOpModifier=8]="AggregateOpModifier",n[n.Duration=9]="Duration",n[n.Offset=10]="Offset",n[n.Bool=11]="Bool",n[n.AtModifiers=12]="AtModifiers",n[n.Number=13]="Number";class V{constructor(e,t=1e4){this.prometheusClient=e,this.maxMetricsMetadata=t}getPrometheusClient(){return this.prometheusClient}promQL(e){let{state:t,pos:i}=e,a=(0,k.qz)(t).resolve(i,-1),r=function(e,t,i){var a,r,n,s,o,l,h,u,d,p,O,f,m,v,g,$,y,b,k,P,S;let x=[];switch(t.type.id){case 0:{if((null==(a=t.parent)?void 0:a.type.id)===137){x.push({kind:c.Duration});break}if((null==(r=t.parent)?void 0:r.type.id)===144||(null==(n=t.parent)?void 0:n.type.id)===149){x.push({kind:c.MatchOp});break}if((null==(s=t.parent)?void 0:s.type.id)===134||(null==(o=t.parent)?void 0:o.type.id)===139&&Q(t.parent,135)){x.push({kind:c.Duration});break}let i=e.sliceDoc(t.from,t.to);X.filter(e=>e.label.includes(i)).length>0&&x.push({kind:c.BinOp});break}case 57:{if((null==(l=t.parent)?void 0:l.type.id)===0){let i=t.parent.parent;if((null==i?void 0:i.type.id)===150){x.push({kind:c.AtModifiers});break}if((null==i?void 0:i.type.id)===31){x.push({kind:c.AggregateOpModifier},{kind:c.BinOp});break}if((null==i?void 0:i.type.id)===142){let i=F(t,e);w.filter(e=>e.label===i).length>0&&x.push({kind:c.AggregateOpModifier}),x.push({kind:c.BinOp},{kind:c.Offset});break}if(i&&z(i,"Expr")){x.push({kind:c.BinOp},{kind:c.Offset});break}}let i=null==(h=t.parent)?void 0:h.parent;if(!i){x.push({kind:c.MetricName,metricName:e.sliceDoc(t.from,t.to)});break}z(i,"Expr","Expr")&&38!==i.type.id?39!==i.type.id||Q(i,0)||(x.push({kind:c.MetricName,metricName:e.sliceDoc(t.from,t.to)},{kind:c.Function},{kind:c.Aggregation},{kind:c.BinOpModifier},{kind:c.Number}),Q(i,48,49,50,51,52,53)&&!Q(i,41)&&x.push({kind:c.Bool})):(x.push({kind:c.MetricName,metricName:e.sliceDoc(t.from,t.to)},{kind:c.Function},{kind:c.Aggregation}),38!==i.type.id&&134!==i.type.id&&x.push({kind:c.Number}));break}case 30:null!==t.firstChild&&0===t.firstChild.type.id&&x.push({kind:c.MetricName,metricName:""},{kind:c.Function},{kind:c.Aggregation},{kind:c.Number});break;case 34:x.push({kind:c.LabelName,metricName:function(e,t){let i=T(e,31);if(!i)return"";let a="";return i.cursor().iterate(e=>{if(142===e.type.id&&(a=F(e.node,t)))return!1}),a}(t,e)});break;case 143:x.push({kind:c.LabelName,metricName:F(t,e)});break;case 35:(null==(u=t.parent)?void 0:u.type.id)===34?x.push({kind:c.LabelName}):(null==(d=t.parent)?void 0:d.type.id)===144&&x.push({kind:c.LabelName,metricName:F(t,e)});break;case 37:if((null==(p=t.parent)?void 0:p.type.id)===144||(null==(O=t.parent)?void 0:O.type.id)===149){let i="";(null==(f=t.parent.firstChild)?void 0:f.type.id)===35?i=e.sliceDoc(t.parent.firstChild.from,t.parent.firstChild.to):(null==(m=t.parent.firstChild)?void 0:m.type.id)===36&&(i=e.sliceDoc(t.parent.firstChild.from,t.parent.firstChild.to).slice(1,-1));let a=F(t,e),r=T(t,143),n=[];for(let t of[36,149,144])n=n.concat(_(r?r.getChildren(t):[],e));x.push({kind:c.LabelValue,metricName:a,labelName:i,matchers:n})}else(null==(g=null==(v=t.parent)?void 0:v.parent)?void 0:g.type.id)===34?x.push({kind:c.LabelName}):(null==(y=null==($=t.parent)?void 0:$.parent)?void 0:y.type.id)===143&&x.push({kind:c.MetricName,metricName:e.sliceDoc(t.from,t.to).slice(1,-1)});break;case 136:(null==(b=t.parent)?void 0:b.type.id)===0&&(null==(k=t.parent.parent)?void 0:k.type.id)===139?x.push({kind:c.Duration}):x.push({kind:c.Number});break;case 135:case 137:x.push({kind:c.Duration});break;case 38:if(q(t)){if(null===t.firstChild||t.firstChild.from<=i&&t.firstChild.to>=i){x.push({kind:c.Number});break}x.push({kind:c.MetricName,metricName:""},{kind:c.Function},{kind:c.Aggregation});break}x.push({kind:c.MetricName,metricName:""},{kind:c.Function},{kind:c.Aggregation});break;case 53:(null==(P=t.parent)?void 0:P.type.id)===145?x.push({kind:c.MatchOp}):(null==(S=t.parent)?void 0:S.type.id)===39&&x.push({kind:c.BinOp});break;case 146:case 147:case 148:case 145:x.push({kind:c.MatchOp});break;case 40:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 24:case 26:case 25:case 39:x.push({kind:c.BinOp})}return x}(t,a,i),n=Promise.resolve([]),s=!1,o=!0;for(let e of r)switch(e.kind){case c.Aggregation:s=!0,n=n.then(e=>e.concat(w));break;case c.Function:s=!0,n=n.then(e=>e.concat(D));break;case c.BinOpModifier:n=n.then(e=>e.concat(L));break;case c.BinOp:n=n.then(e=>e.concat(X));break;case c.MatchOp:n=n.then(e=>e.concat(E));break;case c.AggregateOpModifier:n=n.then(e=>e.concat(A));break;case c.Duration:o=!1,n=n.then(e=>e.concat(x));break;case c.Offset:n=n.then(e=>e.concat([{label:"offset"}]));break;case c.Bool:n=n.then(e=>e.concat([{label:"bool"}]));break;case c.AtModifiers:n=n.then(e=>e.concat(C));break;case c.Number:n=n.then(e=>e.concat(M));break;case c.MetricName:n=n.then(t=>this.autocompleteMetricName(t,e));break;case c.LabelName:n=n.then(t=>this.autocompleteLabelName(t,e));break;case c.LabelValue:n=n.then(t=>this.autocompleteLabelValue(t,e))}return n.then(e=>(function(e,t,i,a=!1,r=!0){return a&&e.push(...R),{from:t,to:i,options:e,validFor:r?/^[a-zA-Z0-9_:]+$/:void 0}})(e,function(e,t,i){var a,r,n,s,o,l,c;let h=e.doc.slice(t.from,i).toString(),u=t.from;if(143===t.type.id||34===t.type.id){let e;e=t.from+1,null!==t.firstChild&&(e=i),u=e}else 38===t.type.id&&null===t.firstChild||37===t.type.id&&((null==(a=t.parent)?void 0:a.type.id)===144||(null==(r=t.parent)?void 0:r.type.id)===149)?u++:(137===t.type.id||135===t.type.id&&!x.map(e=>e.label).includes(h[h.length-1])||136===t.type.id&&(null==(n=t.parent)?void 0:n.type.id)===0&&(null==(s=t.parent.parent)?void 0:s.type.id)===139||38===t.type.id&&q(t)&&null!==t.firstChild||0===t.type.id&&((null==(o=t.parent)?void 0:o.type.id)===137||(null==(l=t.parent)?void 0:l.type.id)===134||(null==(c=t.parent)?void 0:c.type.id)===139&&Q(t.parent,135)))&&(u=i);return u}(t,a,i),i,s,o))}autocompleteMetricName(e,t){if(!this.prometheusClient)return e;let i=new Map;return this.prometheusClient.metricNames(t.metricName).then(e=>{var t;for(let t of e)i.set(t,{label:t,type:"constant"});if(e.length<=this.maxMetricsMetadata)return null==(t=this.prometheusClient)?void 0:t.metricMetadata()}).then(t=>{if(t)for(let[e,a]of i){let i=t[e.replace(/(_count|_sum|_bucket)$/,"")];if(i){if(i.length>1)for(let e of i)""===a.detail?a.detail=e.type:a.detail!==e.type&&(a.detail="unknown",a.info="multiple different definitions for this metric"),""===a.info?a.info=e.help:a.info!==e.help&&(a.info="multiple different definitions for this metric");else if(1===i.length){let{type:t,help:r}=i[0];("histogram"===t||"summary"===t)&&(e.endsWith("_count")&&(t="counter",r=`The total number of observations for: ${r}`),e.endsWith("_sum")&&(t="counter",r=`The total sum of observations for: ${r}`),e.endsWith("_bucket")&&(t="counter",r=`The total count of observations for a bucket in the histogram: ${r}`)),a.detail=t,a.info=r}}}return e.concat(Array.from(i.values()))})}autocompleteLabelName(e,t){return this.prometheusClient?this.prometheusClient.labelNames(t.metricName).then(t=>e.concat(t.map(e=>({label:e,type:"constant"})))):e}autocompleteLabelValue(e,t){return this.prometheusClient&&t.labelName?this.prometheusClient.labelValues(t.labelName,t.metricName,t.matchers).then(t=>e.concat(t.map(e=>({label:e,type:"text"})))):e}}let N="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,W=new Set,U="object"==typeof process&&process?process:{},Y=(e,t,i,a)=>{"function"==typeof U.emitWarning?U.emitWarning(e,t,i,a):console.error(`[${i}] ${t}: ${e}`)},I=globalThis.AbortController,j=globalThis.AbortSignal;if(void 0===I){j=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(e,t){this._onabort.push(t)}},I=class{constructor(){t()}signal=new j;abort(e){if(!this.signal.aborted){for(let t of(this.signal.reason=e,this.signal.aborted=!0,this.signal._onabort))t(e);this.signal.onabort?.(e)}}};let e=U.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,Y("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}Symbol("type");let B=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Z=e=>B(e)?e<=256?Uint8Array:e<=65536?Uint16Array:e<=0x100000000?Uint32Array:e<=Number.MAX_SAFE_INTEGER?G:null:null;class G extends Array{constructor(e){super(e),this.fill(0)}}class H{heap;length;static #e=!1;static create(e){let t=Z(e);if(!t)return[];H.#e=!0;let i=new H(e,t);return H.#e=!1,i}constructor(e,t){if(!H.#e)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class J{#t;#i;#a;#r;#n;#s;#o;#l;get perf(){return this.#l}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#c;#h;#u;#d;#p;#O;#f;#m;#v;#g;#$;#y;#b;#_;#T;#Q;#z;#k;static unsafeExposeInternals(e){return{starts:e.#b,ttls:e.#_,sizes:e.#y,keyMap:e.#u,keyList:e.#d,valList:e.#p,next:e.#O,prev:e.#f,get head(){return e.#m},get tail(){return e.#v},free:e.#g,isBackgroundFetch:t=>e.#P(t),backgroundFetch:(t,i,a,r)=>e.#S(t,i,a,r),moveToTail:t=>e.#x(t),indexes:t=>e.#X(t),rindexes:t=>e.#w(t),isStale:t=>e.#R(t)}}get max(){return this.#t}get maxSize(){return this.#i}get calculatedSize(){return this.#h}get size(){return this.#c}get fetchMethod(){return this.#s}get memoMethod(){return this.#o}get dispose(){return this.#a}get onInsert(){return this.#r}get disposeAfter(){return this.#n}constructor(e){let{max:t=0,ttl:i,ttlResolution:a=1,ttlAutopurge:r,updateAgeOnGet:n,updateAgeOnHas:s,allowStale:o,dispose:l,onInsert:c,disposeAfter:h,noDisposeOnSet:u,noUpdateTTL:d,maxSize:p=0,maxEntrySize:O=0,sizeCalculation:f,fetchMethod:m,memoMethod:v,noDeleteOnFetchRejection:g,noDeleteOnStaleGet:$,allowStaleOnFetchRejection:y,allowStaleOnFetchAbort:b,ignoreFetchAbort:_,perf:T}=e;if(void 0!==T&&"function"!=typeof T?.now)throw TypeError("perf option must have a now() method if specified");if(this.#l=T??N,0!==t&&!B(t))throw TypeError("max option must be a nonnegative integer");let Q=t?Z(t):Array;if(!Q)throw Error("invalid max value: "+t);if(this.#t=t,this.#i=p,this.maxEntrySize=O||this.#i,this.sizeCalculation=f,this.sizeCalculation){if(!this.#i&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw TypeError("sizeCalculation set to non-function")}if(void 0!==v&&"function"!=typeof v)throw TypeError("memoMethod must be a function if defined");if(this.#o=v,void 0!==m&&"function"!=typeof m)throw TypeError("fetchMethod must be a function if specified");if(this.#s=m,this.#Q=!!m,this.#u=new Map,this.#d=Array(t).fill(void 0),this.#p=Array(t).fill(void 0),this.#O=new Q(t),this.#f=new Q(t),this.#m=0,this.#v=0,this.#g=H.create(t),this.#c=0,this.#h=0,"function"==typeof l&&(this.#a=l),"function"==typeof c&&(this.#r=c),"function"==typeof h?(this.#n=h,this.#$=[]):(this.#n=void 0,this.#$=void 0),this.#T=!!this.#a,this.#k=!!this.#r,this.#z=!!this.#n,this.noDisposeOnSet=!!u,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!g,this.allowStaleOnFetchRejection=!!y,this.allowStaleOnFetchAbort=!!b,this.ignoreFetchAbort=!!_,0!==this.maxEntrySize){if(0!==this.#i&&!B(this.#i))throw TypeError("maxSize must be a positive integer if specified");if(!B(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.#E()}if(this.allowStale=!!o,this.noDeleteOnStaleGet=!!$,this.updateAgeOnGet=!!n,this.updateAgeOnHas=!!s,this.ttlResolution=B(a)||0===a?a:1,this.ttlAutopurge=!!r,this.ttl=i||0,this.ttl){if(!B(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.#L()}if(0===this.#t&&0===this.ttl&&0===this.#i)throw TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#t&&!this.#i){let e="LRU_CACHE_UNBOUNDED";W.has(e)||(W.add(e),Y("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,J))}}getRemainingTTL(e){return this.#u.has(e)?1/0:0}#L(){let e=new G(this.#t),t=new G(this.#t);this.#_=e,this.#b=t,this.#C=(i,a,r=this.#l.now())=>{if(t[i]=0!==a?r:0,e[i]=a,0!==a&&this.ttlAutopurge){let e=setTimeout(()=>{this.#R(i)&&this.#D(this.#d[i],"expire")},a+1);e.unref&&e.unref()}},this.#A=i=>{t[i]=0!==e[i]?this.#l.now():0},this.#M=(r,n)=>{if(e[n]){let s=e[n],o=t[n];if(!s||!o)return;r.ttl=s,r.start=o,r.now=i||a();let l=r.now-o;r.remainingTTL=s-l}};let i=0,a=()=>{let e=this.#l.now();if(this.ttlResolution>0){i=e;let t=setTimeout(()=>i=0,this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=r=>{let n=this.#u.get(r);if(void 0===n)return 0;let s=e[n],o=t[n];return s&&o?s-((i||a())-o):1/0},this.#R=r=>{let n=t[r],s=e[r];return!!s&&!!n&&(i||a())-n>s}}#A=()=>{};#M=()=>{};#C=()=>{};#R=()=>!1;#E(){let e=new G(this.#t);this.#h=0,this.#y=e,this.#F=t=>{this.#h-=e[t],e[t]=0},this.#q=(e,t,i,a)=>{if(this.#P(t))return 0;if(!B(i))if(a){if("function"!=typeof a)throw TypeError("sizeCalculation must be a function");if(!B(i=a(t,e)))throw TypeError("sizeCalculation return invalid (expect positive integer)")}else throw TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#V=(t,i,a)=>{if(e[t]=i,this.#i){let i=this.#i-e[t];for(;this.#h>i;)this.#N(!0)}this.#h+=e[t],a&&(a.entrySize=i,a.totalCalculatedSize=this.#h)}}#F=e=>{};#V=(e,t,i)=>{};#q=(e,t,i,a)=>{if(i||a)throw TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#X({allowStale:e=this.allowStale}={}){if(this.#c)for(let t=this.#v;this.#W(t)&&((e||!this.#R(t))&&(yield t),t!==this.#m);)t=this.#f[t]}*#w({allowStale:e=this.allowStale}={}){if(this.#c)for(let t=this.#m;this.#W(t)&&((e||!this.#R(t))&&(yield t),t!==this.#v);)t=this.#O[t]}#W(e){return void 0!==e&&this.#u.get(this.#d[e])===e}*entries(){for(let e of this.#X())void 0===this.#p[e]||void 0===this.#d[e]||this.#P(this.#p[e])||(yield[this.#d[e],this.#p[e]])}*rentries(){for(let e of this.#w())void 0===this.#p[e]||void 0===this.#d[e]||this.#P(this.#p[e])||(yield[this.#d[e],this.#p[e]])}*keys(){for(let e of this.#X()){let t=this.#d[e];void 0===t||this.#P(this.#p[e])||(yield t)}}*rkeys(){for(let e of this.#w()){let t=this.#d[e];void 0===t||this.#P(this.#p[e])||(yield t)}}*values(){for(let e of this.#X())void 0===this.#p[e]||this.#P(this.#p[e])||(yield this.#p[e])}*rvalues(){for(let e of this.#w())void 0===this.#p[e]||this.#P(this.#p[e])||(yield this.#p[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(let i of this.#X()){let a=this.#p[i],r=this.#P(a)?a.__staleWhileFetching:a;if(void 0!==r&&e(r,this.#d[i],this))return this.get(this.#d[i],t)}}forEach(e,t=this){for(let i of this.#X()){let a=this.#p[i],r=this.#P(a)?a.__staleWhileFetching:a;void 0!==r&&e.call(t,r,this.#d[i],this)}}rforEach(e,t=this){for(let i of this.#w()){let a=this.#p[i],r=this.#P(a)?a.__staleWhileFetching:a;void 0!==r&&e.call(t,r,this.#d[i],this)}}purgeStale(){let e=!1;for(let t of this.#w({allowStale:!0}))this.#R(t)&&(this.#D(this.#d[t],"expire"),e=!0);return e}info(e){let t=this.#u.get(e);if(void 0===t)return;let i=this.#p[t],a=this.#P(i)?i.__staleWhileFetching:i;if(void 0===a)return;let r={value:a};if(this.#_&&this.#b){let e=this.#_[t],i=this.#b[t];e&&i&&(r.ttl=e-(this.#l.now()-i),r.start=Date.now())}return this.#y&&(r.size=this.#y[t]),r}dump(){let e=[];for(let t of this.#X({allowStale:!0})){let i=this.#d[t],a=this.#p[t],r=this.#P(a)?a.__staleWhileFetching:a;if(void 0===r||void 0===i)continue;let n={value:r};if(this.#_&&this.#b){n.ttl=this.#_[t];let e=this.#l.now()-this.#b[t];n.start=Math.floor(Date.now()-e)}this.#y&&(n.size=this.#y[t]),e.unshift([i,n])}return e}load(e){for(let[t,i]of(this.clear(),e)){if(i.start){let e=Date.now()-i.start;i.start=this.#l.now()-e}this.set(t,i.value,i)}}set(e,t,i={}){if(void 0===t)return this.delete(e),this;let{ttl:a=this.ttl,start:r,noDisposeOnSet:n=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:o}=i,{noUpdateTTL:l=this.noUpdateTTL}=i,c=this.#q(e,t,i.size||0,s);if(this.maxEntrySize&&c>this.maxEntrySize)return o&&(o.set="miss",o.maxEntrySizeExceeded=!0),this.#D(e,"set"),this;let h=0===this.#c?void 0:this.#u.get(e);if(void 0===h)h=0===this.#c?this.#v:0!==this.#g.length?this.#g.pop():this.#c===this.#t?this.#N(!1):this.#c,this.#d[h]=e,this.#p[h]=t,this.#u.set(e,h),this.#O[this.#v]=h,this.#f[h]=this.#v,this.#v=h,this.#c++,this.#V(h,c,o),o&&(o.set="add"),l=!1,this.#k&&this.#r?.(t,e,"add");else{this.#x(h);let i=this.#p[h];if(t!==i){if(this.#Q&&this.#P(i)){i.__abortController.abort(Error("replaced"));let{__staleWhileFetching:t}=i;void 0!==t&&!n&&(this.#T&&this.#a?.(t,e,"set"),this.#z&&this.#$?.push([t,e,"set"]))}else!n&&(this.#T&&this.#a?.(i,e,"set"),this.#z&&this.#$?.push([i,e,"set"]));if(this.#F(h),this.#V(h,c,o),this.#p[h]=t,o){o.set="replace";let e=i&&this.#P(i)?i.__staleWhileFetching:i;void 0!==e&&(o.oldValue=e)}}else o&&(o.set="update");this.#k&&this.onInsert?.(t,e,t===i?"update":"replace")}if(0===a||this.#_||this.#L(),this.#_&&(l||this.#C(h,a,r),o&&this.#M(o,h)),!n&&this.#z&&this.#$){let e,t=this.#$;for(;e=t?.shift();)this.#n?.(...e)}return this}pop(){try{for(;this.#c;){let e=this.#p[this.#m];if(this.#N(!0),this.#P(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(this.#z&&this.#$){let e,t=this.#$;for(;e=t?.shift();)this.#n?.(...e)}}}#N(e){let t=this.#m,i=this.#d[t],a=this.#p[t];return this.#Q&&this.#P(a)?a.__abortController.abort(Error("evicted")):(this.#T||this.#z)&&(this.#T&&this.#a?.(a,i,"evict"),this.#z&&this.#$?.push([a,i,"evict"])),this.#F(t),e&&(this.#d[t]=void 0,this.#p[t]=void 0,this.#g.push(t)),1===this.#c?(this.#m=this.#v=0,this.#g.length=0):this.#m=this.#O[t],this.#u.delete(i),this.#c--,t}has(e,t={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:a}=t,r=this.#u.get(e);if(void 0!==r){let e=this.#p[r];if(this.#P(e)&&void 0===e.__staleWhileFetching)return!1;if(!this.#R(r))return i&&this.#A(r),a&&(a.has="hit",this.#M(a,r)),!0;a&&(a.has="stale",this.#M(a,r))}else a&&(a.has="miss");return!1}peek(e,t={}){let{allowStale:i=this.allowStale}=t,a=this.#u.get(e);if(void 0===a||!i&&this.#R(a))return;let r=this.#p[a];return this.#P(r)?r.__staleWhileFetching:r}#S(e,t,i,a){let r=void 0===t?void 0:this.#p[t];if(this.#P(r))return r;let n=new I,{signal:s}=i;s?.addEventListener("abort",()=>n.abort(s.reason),{signal:n.signal});let o={signal:n.signal,options:i,context:a},l=(a,r=!1)=>{let{aborted:s}=n.signal,l=i.ignoreFetchAbort&&void 0!==a;return(i.status&&(s&&!r?(i.status.fetchAborted=!0,i.status.fetchError=n.signal.reason,l&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),!s||l||r)?(this.#p[t]===u&&(void 0===a?void 0!==u.__staleWhileFetching?this.#p[t]=u.__staleWhileFetching:this.#D(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,a,o.options))),a):c(n.signal.reason)},c=a=>{let{aborted:r}=n.signal,s=r&&i.allowStaleOnFetchAbort,o=s||i.allowStaleOnFetchRejection,l=o||i.noDeleteOnFetchRejection;if(this.#p[t]===u&&(l&&void 0!==u.__staleWhileFetching?s||(this.#p[t]=u.__staleWhileFetching):this.#D(e,"fetch")),o)return i.status&&void 0!==u.__staleWhileFetching&&(i.status.returnedStale=!0),u.__staleWhileFetching;if(u.__returned===u)throw a},h=(t,a)=>{let s=this.#s?.(e,r,o);s&&s instanceof Promise&&s.then(e=>t(void 0===e?void 0:e),a),n.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(t(void 0),i.allowStaleOnFetchAbort&&(t=e=>l(e,!0)))})};i.status&&(i.status.fetchDispatched=!0);let u=new Promise(h).then(l,e=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=e),c(e))),d=Object.assign(u,{__abortController:n,__staleWhileFetching:r,__returned:void 0});return void 0===t?(this.set(e,d,{...o.options,status:void 0}),t=this.#u.get(e)):this.#p[t]=d,d}#P(e){return!!this.#Q&&!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof I}async fetch(e,t={}){let{allowStale:i=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:n=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:o=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:h=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:u=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:O,forceRefresh:f=!1,status:m,signal:v}=t;if(!this.#Q)return m&&(m.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:a,noDeleteOnStaleGet:r,status:m});let g={allowStale:i,updateAgeOnGet:a,noDeleteOnStaleGet:r,ttl:n,noDisposeOnSet:s,size:o,sizeCalculation:l,noUpdateTTL:c,noDeleteOnFetchRejection:h,allowStaleOnFetchRejection:u,allowStaleOnFetchAbort:p,ignoreFetchAbort:d,status:m,signal:v},$=this.#u.get(e);if(void 0===$){m&&(m.fetch="miss");let t=this.#S(e,$,g,O);return t.__returned=t}{let t=this.#p[$];if(this.#P(t)){let e=i&&void 0!==t.__staleWhileFetching;return m&&(m.fetch="inflight",e&&(m.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}let r=this.#R($);if(!f&&!r)return m&&(m.fetch="hit"),this.#x($),a&&this.#A($),m&&this.#M(m,$),t;let n=this.#S(e,$,g,O),s=void 0!==n.__staleWhileFetching&&i;return m&&(m.fetch=r?"stale":"refresh",s&&r&&(m.returnedStale=!0)),s?n.__staleWhileFetching:n.__returned=n}}async forceFetch(e,t={}){let i=await this.fetch(e,t);if(void 0===i)throw Error("fetch() returned undefined");return i}memo(e,t={}){let i=this.#o;if(!i)throw Error("no memoMethod provided to constructor");let{context:a,forceRefresh:r,...n}=t,s=this.get(e,n);if(!r&&void 0!==s)return s;let o=i(e,s,{options:n,context:a});return this.set(e,o,n),o}get(e,t={}){let{allowStale:i=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:n}=t,s=this.#u.get(e);if(void 0!==s){let t=this.#p[s],o=this.#P(t);return(n&&this.#M(n,s),this.#R(s))?(n&&(n.get="stale"),o)?(n&&i&&void 0!==t.__staleWhileFetching&&(n.returnedStale=!0),i?t.__staleWhileFetching:void 0):(r||this.#D(e,"expire"),n&&i&&(n.returnedStale=!0),i?t:void 0):(n&&(n.get="hit"),o)?t.__staleWhileFetching:(this.#x(s),a&&this.#A(s),t)}n&&(n.get="miss")}#U(e,t){this.#f[t]=e,this.#O[e]=t}#x(e){e!==this.#v&&(e===this.#m?this.#m=this.#O[e]:this.#U(this.#f[e],this.#O[e]),this.#U(this.#v,e),this.#v=e)}delete(e){return this.#D(e,"delete")}#D(e,t){let i=!1;if(0!==this.#c){let a=this.#u.get(e);if(void 0!==a)if(i=!0,1===this.#c)this.#Y(t);else{this.#F(a);let i=this.#p[a];if(this.#P(i)?i.__abortController.abort(Error("deleted")):(this.#T||this.#z)&&(this.#T&&this.#a?.(i,e,t),this.#z&&this.#$?.push([i,e,t])),this.#u.delete(e),this.#d[a]=void 0,this.#p[a]=void 0,a===this.#v)this.#v=this.#f[a];else if(a===this.#m)this.#m=this.#O[a];else{let e=this.#f[a];this.#O[e]=this.#O[a];let t=this.#O[a];this.#f[t]=this.#f[a]}this.#c--,this.#g.push(a)}}if(this.#z&&this.#$?.length){let e,t=this.#$;for(;e=t?.shift();)this.#n?.(...e)}return i}clear(){return this.#Y("delete")}#Y(e){for(let t of this.#w({allowStale:!0})){let i=this.#p[t];if(this.#P(i))i.__abortController.abort(Error("deleted"));else{let a=this.#d[t];this.#T&&this.#a?.(i,a,e),this.#z&&this.#$?.push([i,a,e])}}if(this.#u.clear(),this.#p.fill(void 0),this.#d.fill(void 0),this.#_&&this.#b&&(this.#_.fill(0),this.#b.fill(0)),this.#y&&this.#y.fill(0),this.#m=0,this.#v=0,this.#g.length=0,this.#h=0,this.#c=0,this.#z&&this.#$){let e,t=this.#$;for(;e=t?.shift();)this.#n?.(...e)}}}class K{constructor(e){this.lookbackInterval=432e5,this.httpMethod="POST",this.apiPrefix="/api/v1",this.fetchFn=(e,t)=>fetch(e,t),this.requestHeaders=new Headers,this.url=e.url?e.url:"",this.errorHandler=e.httpErrorHandler,e.lookbackInterval&&(this.lookbackInterval=e.lookbackInterval),e.fetchFn&&(this.fetchFn=e.fetchFn),e.httpMethod&&(this.httpMethod=e.httpMethod),e.apiPrefix&&(this.apiPrefix=e.apiPrefix),e.requestHeaders&&(this.requestHeaders=e.requestHeaders)}labelNames(e){let t=new Date,i=new Date(t.getTime()-this.lookbackInterval);if(void 0===e||""===e){let e=this.buildRequest(this.labelsEndpoint(),new URLSearchParams({start:i.toISOString(),end:t.toISOString()}));return this.fetchAPI(e.uri,{method:this.httpMethod,body:e.body}).catch(e=>(this.errorHandler&&this.errorHandler(e),[]))}return this.series(e).then(e=>{let t=new Set;for(let i of e)for(let[e]of Object.entries(i))"__name__"!==e&&t.add(e);return Array.from(t)})}labelValues(e,t,i){let a=new Date,r=new Date(a.getTime()-this.lookbackInterval);if(!t||0===t.length){let t=new URLSearchParams({start:r.toISOString(),end:a.toISOString()});return this.fetchAPI(`${this.labelValuesEndpoint().replace(/:name/gi,e)}?${t}`).catch(e=>(this.errorHandler&&this.errorHandler(e),[]))}return this.series(t,i,e).then(t=>{let i=new Set;for(let a of t)for(let[t,r]of Object.entries(a))"__name__"!==t&&t===e&&i.add(r);return Array.from(i)})}metricMetadata(){return this.fetchAPI(this.metricMetadataEndpoint()).catch(e=>(this.errorHandler&&this.errorHandler(e),{}))}series(e,t,i){let a=new Date,r=new Date(a.getTime()-this.lookbackInterval),n=this.buildRequest(this.seriesEndpoint(),new URLSearchParams({start:r.toISOString(),end:a.toISOString(),"match[]":function(e,t,i){if(!t||0===t.length)return e;let a="";for(let e of t){if(e.name===i||""===e.value)continue;let t="";switch(e.type){case 146:default:t="=";break;case 53:t="!=";break;case 148:t="!~";break;case 147:t="=~"}let r=`${e.name}${t}"${e.value}"`;a=""===a?r:`${a},${r}`}return`${e}{${a}}`}(e,t,i)}));return this.fetchAPI(n.uri,{method:this.httpMethod,body:n.body}).catch(e=>(this.errorHandler&&this.errorHandler(e),[]))}metricNames(){return this.labelValues("__name__")}flags(){return this.fetchAPI(this.flagsEndpoint()).catch(e=>(this.errorHandler&&this.errorHandler(e),{}))}fetchAPI(e,t){return t?t.headers=this.requestHeaders:t={headers:this.requestHeaders},this.fetchFn(this.url+e,t).then(e=>{if(!e.ok&&![400,422,503].includes(e.status))throw Error(e.statusText);return e}).then(e=>e.json()).then(e=>{if("error"===e.status)throw Error(void 0!==e.error?e.error:'missing "error" field in response JSON');if(void 0===e.data)throw Error('missing "data" field in response JSON');return e.data})}buildRequest(e,t){let i=e,a=t;return"GET"===this.httpMethod&&(i=`${i}?${t}`,a=null),{uri:i,body:a}}labelsEndpoint(){return`${this.apiPrefix}/labels`}labelValuesEndpoint(){return`${this.apiPrefix}/label/:name/values`}seriesEndpoint(){return`${this.apiPrefix}/series`}metricMetadataEndpoint(){return`${this.apiPrefix}/metadata`}flagsEndpoint(){return`${this.apiPrefix}/status/flags`}}class ee{constructor(e){let t={ttl:e&&e.maxAge?e.maxAge:3e5,ttlAutopurge:!0};this.completeAssociation=new J(t),this.metricMetadata={},this.labelValues=new J(t),this.labelNames=[],this.flags={},(null==e?void 0:e.initialMetricList)&&this.setLabelValues("__name__",e.initialMetricList)}setAssociations(e,t){t.forEach(t=>{let i=this.completeAssociation.get(e);for(let[a,r]of(i||(i=new Map,this.completeAssociation.set(e,i)),Object.entries(t))){if("__name__"===a)continue;let e=i.get(a);void 0===e?i.set(a,new Set([r])):e.add(r)}})}setFlags(e){this.flags=e}getFlags(){return this.flags}setMetricMetadata(e){this.metricMetadata=e}getMetricMetadata(){return this.metricMetadata}setLabelNames(e){this.labelNames=e}getLabelNames(e){if(!e||0===e.length)return this.labelNames;let t=this.completeAssociation.get(e);return t?Array.from(t.keys()):[]}setLabelValues(e,t){this.labelValues.set(e,t)}getLabelValues(e,t){if(!t||0===t.length)return this.labelValues.get(e)||[];let i=this.completeAssociation.get(t);if(i){let t=i.get(e);return t?Array.from(t):[]}return[]}}class et{constructor(e,t){this.client=e,this.cache=new ee(t)}labelNames(e){let t=this.cache.getLabelNames(e);return t&&t.length>0?Promise.resolve(t):void 0===e||""===e?this.client.labelNames().then(e=>(this.cache.setLabelNames(e),e)):this.series(e).then(()=>this.cache.getLabelNames(e))}labelValues(e,t){let i=this.cache.getLabelValues(e,t);return i&&i.length>0?Promise.resolve(i):void 0===t||""===t?this.client.labelValues(e).then(t=>(this.cache.setLabelValues(e,t),t)):this.series(t).then(()=>this.cache.getLabelValues(e,t))}metricMetadata(){let e=this.cache.getMetricMetadata();return e&&Object.keys(e).length>0?Promise.resolve(e):this.client.metricMetadata().then(e=>(this.cache.setMetricMetadata(e),e))}series(e){return this.client.series(e).then(t=>(this.cache.setAssociations(e,t),t))}metricNames(){return this.labelValues("__name__")}flags(){let e=this.cache.getFlags();return e&&Object.keys(e).length>0?Promise.resolve(e):this.client.flags().then(e=>(this.cache.setFlags(e),e))}}function ei(e){if(null==e?void 0:e.completeStrategy)return e.completeStrategy;if(null==e?void 0:e.remote){var t;return"function"==typeof(t=e.remote).labelNames&&"function"==typeof t.labelValues&&"function"==typeof t.metricMetadata&&"function"==typeof t.series&&"function"==typeof t.metricNames?new V(e.remote,e.maxMetricsMetadata):new V(new et(new K(e.remote),e.remote.cache),e.maxMetricsMetadata)}return new V}var ea=i(68799);class er{promQL(){return e=>{let t=new P(e.state);return t.analyze(),t.getDiagnostics()}}}(s=h||(h={})).PromQL="PromQL",s.MetricName="MetricName";class en{constructor(){this.complete=ei(),this.lint=new er,this.enableLinter=!0,this.enableCompletion=!0}setComplete(e){return this.complete=ei(e),this}getComplete(){return this.complete}activateCompletion(e){return this.enableCompletion=e,this}setLinter(e){return this.lint=e,this}getLinter(){return this.lint}activateLinter(e){return this.enableLinter=e,this}asExtension(e=h.PromQL){var t,i;let a=k.qp.define({parser:$.configure({top:e}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}}),r=[a];if(this.enableCompletion){let e=a.data.of({autocomplete:e=>this.complete.promQL(e)});r=r.concat(e)}return this.enableLinter&&(r=r.concat((t=this.lint.promQL,i=this.lint,(0,ea.ir)(t.call(i))))),r}}},78277:function(e,t,i){var a;t.default=void 0,t.default=(0,((a=i(30265))&&a.__esModule?a:{default:a}).default)("M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z","AlertCircle")},10763:function(e,t,i){var a;t.default=void 0,t.default=(0,((a=i(30265))&&a.__esModule?a:{default:a}).default)("M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z","Close")},96402:function(e,t,i){var a;t.default=void 0,t.default=(0,((a=i(30265))&&a.__esModule?a:{default:a}).default)("M3,3H9V7H3V3M15,10H21V14H15V10M15,17H21V21H15V17M13,13H7V18H13V20H7L5,20V9H7V11H13V13Z","FileTree")}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.chunk_Prometheus=self.chunk_Prometheus||[]).push([["8216"],{76439:function(e,t,n){n.d(t,{Z:()=>s});var r=n(54538),u=n(96858),i=n(49267),a=n(24105);let l={...r}.useSyncExternalStore;function c(e={}){let{themeId:t}=e;return function(e,n={}){let c=(0,a.Z)();c&&t&&(c=c[t]||c);let s="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:o=!1,matchMedia:d=s?window.matchMedia:null,ssrMatchMedia:h=null,noSsr:m=!1}=(0,i.Z)({name:"MuiUseMediaQuery",props:n,theme:c}),f="function"==typeof e?e(c):e;return(void 0!==l?function(e,t,n,u,i){let a=r.useCallback(()=>t,[t]),c=r.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(null!==u){let{matches:t}=u(e);return()=>t}return a},[a,e,u,i,n]),[s,o]=r.useMemo(()=>{if(null===n)return[a,()=>()=>{}];let t=n(e);return[()=>t.matches,e=>(t.addEventListener("change",e),()=>{t.removeEventListener("change",e)})]},[a,n,e]);return l(o,s,c)}:function(e,t,n,i,a){let[l,c]=r.useState(()=>a&&n?n(e).matches:i?i(e).matches:t);return(0,u.Z)(()=>{if(!n)return;let t=n(e),r=()=>{c(t.matches)};return r(),t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}},[e,n]),l})(f=f.replace(/^@media( ?)/m,""),o,d,h,m)}}c();let s=c({themeId:n(92994).Z})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.chunk_Prometheus=self.chunk_Prometheus||[]).push([["8488"],{56050:function(){}}]);
|