promptfoo 0.85.0 → 0.85.2
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/dist/package.json +1 -1
- package/dist/src/envars.d.ts +8 -0
- package/dist/src/envars.d.ts.map +1 -1
- package/dist/src/envars.js +16 -0
- package/dist/src/envars.js.map +1 -1
- package/dist/src/evaluator.d.ts.map +1 -1
- package/dist/src/evaluator.js +1 -6
- package/dist/src/evaluator.js.map +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -5
- package/dist/src/index.js.map +1 -1
- package/dist/src/prompts/index.d.ts.map +1 -1
- package/dist/src/prompts/index.js +4 -0
- package/dist/src/prompts/index.js.map +1 -1
- package/dist/src/prompts/processors/markdown.d.ts +3 -0
- package/dist/src/prompts/processors/markdown.d.ts.map +1 -0
- package/dist/src/prompts/processors/markdown.js +17 -0
- package/dist/src/prompts/processors/markdown.js.map +1 -0
- package/dist/src/redteam/plugins/base.d.ts.map +1 -1
- package/dist/src/redteam/plugins/base.js +12 -12
- package/dist/src/redteam/plugins/base.js.map +1 -1
- package/dist/src/redteam/plugins/indirectPromptInjection.d.ts.map +1 -1
- package/dist/src/redteam/plugins/indirectPromptInjection.js +6 -0
- package/dist/src/redteam/plugins/indirectPromptInjection.js.map +1 -1
- package/dist/src/redteam/util.d.ts +7 -0
- package/dist/src/redteam/util.d.ts.map +1 -1
- package/dist/src/redteam/util.js +8 -1
- package/dist/src/redteam/util.js.map +1 -1
- package/dist/src/web/nextui/404/index.html +1 -1
- package/dist/src/web/nextui/404.html +1 -1
- package/dist/src/web/nextui/_next/static/chunks/{178-fbe9007ed9d0d1f2.js → 167-744b9f585d2d97f7.js} +3 -3
- package/dist/src/web/nextui/_next/static/chunks/346-e25f78ee9c57aa1a.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/{19-cbf79a2b4aeaad20.js → 602-9e22d91b4f891a16.js} +4 -4
- package/dist/src/web/nextui/_next/static/chunks/app/eval/[id]/{page-bd0b825f8d88c552.js → page-ee23f6036e60e610.js} +1 -1
- package/dist/src/web/nextui/_next/static/chunks/app/eval/{page-cf4a91cf1554224c.js → page-f99f4281a6926ff5.js} +1 -1
- package/dist/src/web/nextui/_next/static/chunks/app/{layout-cb014a74a675cdec.js → layout-b197b953eafa4e71.js} +1 -1
- package/dist/src/web/nextui/_next/static/chunks/app/page-81e3b8fee37eaf67.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/report/page-6d40d3051d4e4fe0.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/{webpack-2bde9ee952171572.js → webpack-452ae8c28379ed4c.js} +1 -1
- package/dist/src/web/nextui/_next/static/css/4d76d7cdd9492e1d.css +1 -0
- package/dist/src/web/nextui/auth/login/index.html +1 -1
- package/dist/src/web/nextui/auth/login/index.txt +4 -4
- package/dist/src/web/nextui/auth/signup/index.html +1 -1
- package/dist/src/web/nextui/auth/signup/index.txt +4 -4
- package/dist/src/web/nextui/datasets/index.html +1 -1
- package/dist/src/web/nextui/datasets/index.txt +4 -4
- package/dist/src/web/nextui/eval/index.html +1 -1
- package/dist/src/web/nextui/eval/index.txt +5 -5
- package/dist/src/web/nextui/index.html +1 -1
- package/dist/src/web/nextui/index.txt +4 -4
- package/dist/src/web/nextui/progress/index.html +1 -1
- package/dist/src/web/nextui/progress/index.txt +4 -4
- package/dist/src/web/nextui/prompts/index.html +1 -1
- package/dist/src/web/nextui/prompts/index.txt +4 -4
- package/dist/src/web/nextui/report/index.html +1 -1
- package/dist/src/web/nextui/report/index.txt +7 -7
- package/dist/src/web/nextui/setup/index.html +1 -1
- package/dist/src/web/nextui/setup/index.txt +5 -5
- package/dist/test/prompts.processors.markdown.test.d.ts +2 -0
- package/dist/test/prompts.processors.markdown.test.d.ts.map +1 -0
- package/dist/test/prompts.processors.markdown.test.js +79 -0
- package/dist/test/prompts.processors.markdown.test.js.map +1 -0
- package/dist/test/redteam/plugins/base.test.js +4 -0
- package/dist/test/redteam/plugins/base.test.js.map +1 -1
- package/package.json +1 -1
- package/dist/src/web/nextui/_next/static/chunks/459-2e6701613d682903.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/page-aa37d521be8ae12b.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/report/page-56a1a67c5d6e0af8.js +0 -1
- package/dist/src/web/nextui/_next/static/css/ed73533d059fd179.css +0 -1
- /package/dist/src/web/nextui/_next/static/chunks/{258-357fc3bb3dc6fdfc.js → 258-eb5cfd6f30e0cdfd.js} +0 -0
- /package/dist/src/web/nextui/_next/static/{WEj4NsDPiDVE_VRdoow1W → eyHt8CZIUtts2XNkpk_r0}/_buildManifest.js +0 -0
- /package/dist/src/web/nextui/_next/static/{WEj4NsDPiDVE_VRdoow1W → eyHt8CZIUtts2XNkpk_r0}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
const fs = __importStar(require("fs"));
|
|
27
|
+
const markdown_1 = require("../src/prompts/processors/markdown");
|
|
28
|
+
jest.mock('fs');
|
|
29
|
+
describe('processMarkdownFile', () => {
|
|
30
|
+
const mockReadFileSync = jest.mocked(fs.readFileSync);
|
|
31
|
+
beforeEach(() => {
|
|
32
|
+
jest.clearAllMocks();
|
|
33
|
+
});
|
|
34
|
+
it('should process a valid Markdown file without a label', () => {
|
|
35
|
+
const filePath = 'file.md';
|
|
36
|
+
const fileContent = '# Heading\n\nThis is some markdown content.';
|
|
37
|
+
mockReadFileSync.mockReturnValue(fileContent);
|
|
38
|
+
expect((0, markdown_1.processMarkdownFile)(filePath, {})).toEqual([
|
|
39
|
+
{
|
|
40
|
+
raw: fileContent,
|
|
41
|
+
label: `${filePath}: # Heading\n\nThis is some markdown content....`,
|
|
42
|
+
},
|
|
43
|
+
]);
|
|
44
|
+
expect(mockReadFileSync).toHaveBeenCalledWith(filePath, 'utf8');
|
|
45
|
+
});
|
|
46
|
+
it('should process a valid Markdown file with a label', () => {
|
|
47
|
+
const filePath = 'file.md';
|
|
48
|
+
const fileContent = '# Heading\n\nThis is some markdown content.';
|
|
49
|
+
mockReadFileSync.mockReturnValue(fileContent);
|
|
50
|
+
expect((0, markdown_1.processMarkdownFile)(filePath, { label: 'Custom Label' })).toEqual([
|
|
51
|
+
{
|
|
52
|
+
raw: fileContent,
|
|
53
|
+
label: 'Custom Label',
|
|
54
|
+
},
|
|
55
|
+
]);
|
|
56
|
+
expect(mockReadFileSync).toHaveBeenCalledWith(filePath, 'utf8');
|
|
57
|
+
});
|
|
58
|
+
it('should truncate the label for long Markdown files', () => {
|
|
59
|
+
const filePath = 'file.md';
|
|
60
|
+
const fileContent = '# ' + 'A'.repeat(100);
|
|
61
|
+
mockReadFileSync.mockReturnValue(fileContent);
|
|
62
|
+
expect((0, markdown_1.processMarkdownFile)(filePath, {})).toEqual([
|
|
63
|
+
{
|
|
64
|
+
raw: fileContent,
|
|
65
|
+
label: `${filePath}: # ${'A'.repeat(48)}...`,
|
|
66
|
+
},
|
|
67
|
+
]);
|
|
68
|
+
expect(mockReadFileSync).toHaveBeenCalledWith(filePath, 'utf8');
|
|
69
|
+
});
|
|
70
|
+
it('should throw an error if the file cannot be read', () => {
|
|
71
|
+
const filePath = 'nonexistent.md';
|
|
72
|
+
mockReadFileSync.mockImplementation(() => {
|
|
73
|
+
throw new Error('File not found');
|
|
74
|
+
});
|
|
75
|
+
expect(() => (0, markdown_1.processMarkdownFile)(filePath, {})).toThrow('File not found');
|
|
76
|
+
expect(mockReadFileSync).toHaveBeenCalledWith(filePath, 'utf8');
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
//# sourceMappingURL=prompts.processors.markdown.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompts.processors.markdown.test.js","sourceRoot":"","sources":["../../test/prompts.processors.markdown.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,iEAAyE;AAEzE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEhB,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,MAAM,gBAAgB,GAAG,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC;IAEtD,UAAU,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,aAAa,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sDAAsD,EAAE,GAAG,EAAE;QAC9D,MAAM,QAAQ,GAAG,SAAS,CAAC;QAC3B,MAAM,WAAW,GAAG,6CAA6C,CAAC;QAClE,gBAAgB,C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C;QACH,MAAM,CAAC,gBAAgB,CAAC,CAAC,oBAAoB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAClE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kDAAkD,EAAE,GAAG,EAAE;QAC1D,MAAM,QAAQ,GAAG,gBAAgB,CAAC;QAClC,gBAAgB,CAAC,kBAAkB,CAAC,GAAG,EAAE;YACvC,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,GAAG,EAAE,CAAC,IAAA,8BAAmB,EAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;QAC1E,MAAM,CAAC,gBAAgB,CAAC,CAAC,oBAAoB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAClE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -251,6 +251,8 @@ describe('PluginBase', () => {
|
|
|
251
251
|
Prompt: 3 - Third item
|
|
252
252
|
Prompt: 4. Fourth item with: colon
|
|
253
253
|
Prompt: 5) Fifth item with "quotes"
|
|
254
|
+
6. Prompt: Sixth item
|
|
255
|
+
7) Prompt: Seventh item
|
|
254
256
|
`;
|
|
255
257
|
const result = testPlugin['parseGeneratedPrompts'](input);
|
|
256
258
|
expect(result).toEqual([
|
|
@@ -259,6 +261,8 @@ describe('PluginBase', () => {
|
|
|
259
261
|
{ prompt: 'Third item' },
|
|
260
262
|
{ prompt: 'Fourth item with: colon' },
|
|
261
263
|
{ prompt: 'Fifth item with "quotes"' },
|
|
264
|
+
{ prompt: 'Sixth item' },
|
|
265
|
+
{ prompt: 'Seventh item' },
|
|
262
266
|
]);
|
|
263
267
|
});
|
|
264
268
|
it('should handle prompts with nested quotes', () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.test.js","sourceRoot":"","sources":["../../../../test/redteam/plugins/base.test.ts"],"names":[],"m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BAAoB,CAC3C,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAChC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,EAClB,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CACnB,CAAC;YACF,MAAM,CAAC,2BAAgB,CAAC,CAAC,oBAAoB,CAC3C,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAChC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,EAClB,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CACnB,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,0CAA0C,EAAE,KAAK,IAAI,EAAE;YACxD,MAAM,UAAU,GAAkB;gBAChC,IAAI,EAAE,IAAI;gBACV,KAAK,EAAE,CAAC;gBACR,MAAM,EAAE,aAAa;aACtB,CAAC;YACF,IAAI,CAAC,MAAM,CAAC,2BAAgB,CAAC,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YAE5D,MAAM,UAAU,GAAG,IAAI,UAAU,EAAE,CAAC;YAEpC,MAAM,MAAM,CACV,UAAU,CAAC,SAAS,CAAC,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,CAAC,CACxE,CAAC,OAAO,CAAC,OAAO,CAAC,kCAAkC,CAAC,CAAC;YAEtD,MAAM,CAAC,2BAAgB,CAAC,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAC;QAClD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{52481:function(e,t,r){var a=r(71851);t.Z=void 0;var n=a(r(80984)),o=r(24004);t.Z=(0,n.default)((0,o.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download")},55563:function(e,t,r){r.d(t,{V:function(){return o}});var a=r(26520),n=r(25702);function o(e){return(0,n.ZP)("MuiDivider",e)}let l=(0,a.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);t.Z=l},78342:function(e,t,r){r.d(t,{f:function(){return o}});var a=r(26520),n=r(25702);function o(e){return(0,n.ZP)("MuiListItemIcon",e)}let l=(0,a.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);t.Z=l},38212:function(e,t,r){var a=r(94312),n=r(79042),o=r(14978),l=r(53468),i=r(95600),s=r(43226),u=r(77820),d=r(19996),c=r(35843),p=r(69660),m=r(24004);let v=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],b=e=>{let{classes:t,inset:r,primary:a,secondary:n,dense:o}=e;return(0,i.Z)({root:["root",r&&"inset",o&&"dense",a&&n&&"multiline"],primary:["primary"],secondary:["secondary"]},p.L,t)},h=(0,c.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${p.Z.primary}`]:t.primary},{[`& .${p.Z.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>(0,n.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),f=o.forwardRef(function(e,t){let r=(0,d.i)({props:e,name:"MuiListItemText"}),{children:i,className:c,disableTypography:p=!1,inset:f=!1,primary:y,primaryTypographyProps:g,secondary:Z,secondaryTypographyProps:x}=r,k=(0,a.Z)(r,v),{dense:S}=o.useContext(u.Z),w=null!=y?y:i,L=Z,C=(0,n.Z)({},r,{disableTypography:p,inset:f,primary:!!w,secondary:!!L,dense:S}),$=b(C);return null==w||w.type===s.Z||p||(w=(0,m.jsx)(s.Z,(0,n.Z)({variant:S?"body2":"body1",className:$.primary,component:null!=g&&g.variant?void 0:"span",display:"block"},g,{children:w}))),null==L||L.type===s.Z||p||(L=(0,m.jsx)(s.Z,(0,n.Z)({variant:"body2",className:$.secondary,color:"text.secondary",display:"block"},x,{children:L}))),(0,m.jsxs)(h,(0,n.Z)({className:(0,l.Z)($.root,c),ownerState:C,ref:t},k,{children:[w,L]}))});t.Z=f},69660:function(e,t,r){r.d(t,{L:function(){return o}});var a=r(26520),n=r(25702);function o(e){return(0,n.ZP)("MuiListItemText",e)}let l=(0,a.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);t.Z=l},74309:function(e,t,r){r.d(t,{Z:function(){return P}});var a=r(94312),n=r(79042),o=r(14978),l=r(53468),i=r(95600),s=r(24871),u=r(35843),d=r(22630),c=r(19996),p=r(77820),m=r(84008),v=r(88519),b=r(37663),h=r(55563),f=r(78342),y=r(69660),g=r(26520),Z=r(25702);function x(e){return(0,Z.ZP)("MuiMenuItem",e)}let k=(0,g.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var S=r(24004);let w=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],L=e=>{let{disabled:t,dense:r,divider:a,disableGutters:o,selected:l,classes:s}=e,u=(0,i.Z)({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",a&&"divider",l&&"selected"]},x,s);return(0,n.Z)({},s,u)},C=(0,u.ZP)(m.Z,{shouldForwardProp:e=>(0,d.Z)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>(0,n.Z)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${k.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${k.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${k.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${k.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${k.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${h.Z.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${h.Z.inset}`]:{marginLeft:52},[`& .${y.Z.root}`]:{marginTop:0,marginBottom:0},[`& .${y.Z.inset}`]:{paddingLeft:36},[`& .${f.Z.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,n.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${f.Z.root} svg`]:{fontSize:"1.25rem"}}))),$=o.forwardRef(function(e,t){let r;let i=(0,c.i)({props:e,name:"MuiMenuItem"}),{autoFocus:s=!1,component:u="li",dense:d=!1,divider:m=!1,disableGutters:h=!1,focusVisibleClassName:f,role:y="menuitem",tabIndex:g,className:Z}=i,x=(0,a.Z)(i,w),k=o.useContext(p.Z),$=o.useMemo(()=>({dense:d||k.dense||!1,disableGutters:h}),[k.dense,d,h]),P=o.useRef(null);(0,v.Z)(()=>{s&&P.current&&P.current.focus()},[s]);let M=(0,n.Z)({},i,{dense:$.dense,divider:m,disableGutters:h}),R=L(i),T=(0,b.Z)(P,t);return i.disabled||(r=void 0!==g?g:-1),(0,S.jsx)(p.Z.Provider,{value:$,children:(0,S.jsx)(C,(0,n.Z)({ref:T,role:y,tabIndex:r,component:u,focusVisibleClassName:(0,l.Z)(R.focusVisible,f),className:(0,l.Z)(R.root,Z)},x,{ownerState:M,classes:R}))})});var P=$},4451:function(e,t,r){let a;r.d(t,{ZP:function(){return ee}});var n=r(94312),o=r(79042),l=r(14978),i=r(53468),s=r(95600),u=r(24871),d=r(19086),c=r(73208),p=r(48348),m=r(96278),v=r(34625),b=r(59104),h=r(37916),f=r(95137),y=r(1091),g=r(78136),Z={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},x=r(1535);function k(e,t){return e-t}function S(e,t){var r;let{index:a}=null!=(r=e.reduce((e,r,a)=>{let n=Math.abs(t-r);return null===e||n<e.distance||n===e.distance?{distance:n,index:a}:e},null))?r:{};return a}function w(e,t){if(void 0!==t.current&&e.changedTouches){for(let r=0;r<e.changedTouches.length;r+=1){let a=e.changedTouches[r];if(a.identifier===t.current)return{x:a.clientX,y:a.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function L({values:e,newValue:t,index:r}){let a=e.slice();return a[r]=t,a.sort(k)}function C({sliderRef:e,activeIndex:t,setActive:r}){var a,n,o;let l=(0,m.Z)(e.current);null!=(a=e.current)&&a.contains(l.activeElement)&&Number(null==l||null==(n=l.activeElement)?void 0:n.getAttribute("data-index"))===t||null==(o=e.current)||o.querySelector(`[type="range"][data-index="${t}"]`).focus(),r&&r(t)}function $(e,t){return"number"==typeof e&&"number"==typeof t?e===t:"object"==typeof e&&"object"==typeof t&&function(e,t,r=(e,t)=>e===t){return e.length===t.length&&e.every((e,a)=>r(e,t[a]))}(e,t)}let P={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},M=e=>e;function R(){return void 0===a&&(a="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),a}var T=r(35843),z=r(19996),N=r(58112),j=e=>!e||!(0,p.Z)(e),A=r(28702),I=r(26520),O=r(25702);function E(e){return(0,O.ZP)("MuiSlider",e)}let F=(0,I.Z)("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var V=r(24004);let D=e=>{let{open:t}=e,r={offset:(0,i.Z)(t&&F.valueLabelOpen),circle:F.valueLabelCircle,label:F.valueLabelLabel};return r},B=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Y(e){return e}let H=(0,T.ZP)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`color${(0,A.Z)(r.color)}`],"medium"!==r.size&&t[`size${(0,A.Z)(r.size)}`],r.marked&&t.marked,"vertical"===r.orientation&&t.vertical,"inverted"===r.track&&t.trackInverted,!1===r.track&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${F.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${F.dragging}`]:{[`& .${F.thumb}, & .${F.track}`]:{transition:"none"}},variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter(t=>{var r;return(null!=(r=e.vars)?r:e).palette[t].main}).map(t=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),q=(0,T.ZP)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),W=(0,T.ZP)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys((null!=(t=e.vars)?t:e).palette).filter(t=>{var r;return(null!=(r=e.vars)?r:e).palette[t].main}).map(t=>({props:{color:t,track:"inverted"},style:(0,o.Z)({},e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:(0,o.Z)({backgroundColor:(0,u.$n)(e.palette[t].main,.62),borderColor:(0,u.$n)(e.palette[t].main,.62)},e.applyStyles("dark",{backgroundColor:(0,u._j)(e.palette[t].main,.5)}),e.applyStyles("dark",{borderColor:(0,u._j)(e.palette[t].main,.5)})))}))]}}),_=(0,T.ZP)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.thumb,t[`thumbColor${(0,A.Z)(r.color)}`],"medium"!==r.size&&t[`thumbSize${(0,A.Z)(r.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${F.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys((null!=(t=e.vars)?t:e).palette).filter(t=>{var r;return(null!=(r=e.vars)?r:e).palette[t].main}).map(t=>({props:{color:t},style:{[`&:hover, &.${F.focusVisible}`]:(0,o.Z)({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${(0,u.Fq)(e.palette[t].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${F.active}`]:(0,o.Z)({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${(0,u.Fq)(e.palette[t].main,.16)}`})}}))]}}),X=(0,T.ZP)(function(e){let{children:t,className:r,value:a}=e,n=D(e);return t?l.cloneElement(t,{className:(0,i.Z)(t.props.className)},(0,V.jsxs)(l.Fragment,{children:[t.props.children,(0,V.jsx)("span",{className:(0,i.Z)(n.offset,r),"aria-hidden":!0,children:(0,V.jsx)("span",{className:n.circle,children:(0,V.jsx)("span",{className:n.label,children:a})})})]})):null},{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>(0,o.Z)({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${F.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${F.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),K=(0,T.ZP)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,N.Z)(e)&&"markActive"!==e,overridesResolver:(e,t)=>{let{markActive:r}=e;return[t.mark,r&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),G=(0,T.ZP)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,N.Z)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>(0,o.Z)({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),U=e=>{let{disabled:t,dragging:r,marked:a,orientation:n,track:o,classes:l,color:i,size:u}=e,d={root:["root",t&&"disabled",r&&"dragging",a&&"marked","vertical"===n&&"vertical","inverted"===o&&"trackInverted",!1===o&&"trackFalse",i&&`color${(0,A.Z)(i)}`,u&&`size${(0,A.Z)(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",u&&`thumbSize${(0,A.Z)(u)}`,i&&`thumbColor${(0,A.Z)(i)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,s.Z)(d,E,l)},J=({children:e})=>e,Q=l.forwardRef(function(e,t){var r,a,s,u,T,N,A,I,O,E,F,D,Q,ee,et,er,ea,en,eo,el,ei,es,eu,ed;let ec=(0,z.i)({props:e,name:"MuiSlider"}),ep=(0,d.V)(),{"aria-label":em,"aria-valuetext":ev,"aria-labelledby":eb,component:eh="span",components:ef={},componentsProps:ey={},color:eg="primary",classes:eZ,className:ex,disableSwap:ek=!1,disabled:eS=!1,getAriaLabel:ew,getAriaValueText:eL,marks:eC=!1,max:e$=100,min:eP=0,orientation:eM="horizontal",shiftStep:eR=10,size:eT="medium",step:ez=1,scale:eN=Y,slotProps:ej,slots:eA,track:eI="normal",valueLabelDisplay:eO="off",valueLabelFormat:eE=Y}=ec,eF=(0,n.Z)(ec,B),eV=(0,o.Z)({},ec,{isRtl:ep,max:e$,min:eP,classes:eZ,disabled:eS,disableSwap:ek,orientation:eM,marks:eC,color:eg,size:eT,step:ez,shiftStep:eR,scale:eN,track:eI,valueLabelDisplay:eO,valueLabelFormat:eE}),{axisProps:eD,getRootProps:eB,getHiddenInputProps:eY,getThumbProps:eH,open:eq,active:eW,axis:e_,focusedThumbIndex:eX,range:eK,dragging:eG,marks:eU,values:eJ,trackOffset:eQ,trackLeap:e0,getThumbStyle:e1}=function(e){let{"aria-labelledby":t,defaultValue:r,disabled:a=!1,disableSwap:n=!1,isRtl:i=!1,marks:s=!1,max:u=100,min:d=0,name:c,onChange:p,onChangeCommitted:T,orientation:z="horizontal",rootRef:N,scale:j=M,step:A=1,shiftStep:I=10,tabIndex:O,value:E}=e,F=l.useRef(),[V,D]=l.useState(-1),[B,Y]=l.useState(-1),[H,q]=l.useState(!1),W=l.useRef(0),[_,X]=(0,v.Z)({controlled:E,default:null!=r?r:d,name:"Slider"}),K=p&&((e,t,r)=>{let a=e.nativeEvent||e,n=new a.constructor(a.type,a);Object.defineProperty(n,"target",{writable:!0,value:{value:t,name:c}}),p(n,t,r)}),G=Array.isArray(_),U=G?_.slice().sort(k):[_];U=U.map(e=>null==e?d:(0,b.Z)(e,d,u));let J=!0===s&&null!==A?[...Array(Math.floor((u-d)/A)+1)].map((e,t)=>({value:d+A*t})):s||[],Q=J.map(e=>e.value),{isFocusVisibleRef:ee,onBlur:et,onFocus:er,ref:ea}=(0,h.Z)(),[en,eo]=l.useState(-1),el=l.useRef(),ei=(0,f.Z)(ea,el),es=(0,f.Z)(N,ei),eu=e=>t=>{var r;let a=Number(t.currentTarget.getAttribute("data-index"));er(t),!0===ee.current&&eo(a),Y(a),null==e||null==(r=e.onFocus)||r.call(e,t)},ed=e=>t=>{var r;et(t),!1===ee.current&&eo(-1),Y(-1),null==e||null==(r=e.onBlur)||r.call(e,t)},ec=(e,t)=>{let r=Number(e.currentTarget.getAttribute("data-index")),a=U[r],o=Q.indexOf(a),l=t;if(J&&null==A){let e=Q[Q.length-1];l=l>e?e:l<Q[0]?Q[0]:l<a?Q[o-1]:Q[o+1]}if(l=(0,b.Z)(l,d,u),G){n&&(l=(0,b.Z)(l,U[r-1]||-1/0,U[r+1]||1/0));let e=l;l=L({values:U,newValue:l,index:r});let t=r;n||(t=l.indexOf(e)),C({sliderRef:el,activeIndex:t})}X(l),eo(r),K&&!$(l,_)&&K(e,l,r),T&&T(e,l)},ep=e=>t=>{var r;if(null!==A){let e=Number(t.currentTarget.getAttribute("data-index")),r=U[e],a=null;("ArrowLeft"===t.key||"ArrowDown"===t.key)&&t.shiftKey||"PageDown"===t.key?a=Math.max(r-I,d):(("ArrowRight"===t.key||"ArrowUp"===t.key)&&t.shiftKey||"PageUp"===t.key)&&(a=Math.min(r+I,u)),null!==a&&(ec(t,a),t.preventDefault())}null==e||null==(r=e.onKeyDown)||r.call(e,t)};(0,y.Z)(()=>{if(a&&el.current.contains(document.activeElement)){var e;null==(e=document.activeElement)||e.blur()}},[a]),a&&-1!==V&&D(-1),a&&-1!==en&&eo(-1);let em=e=>t=>{var r;null==(r=e.onChange)||r.call(e,t),ec(t,t.target.valueAsNumber)},ev=l.useRef(),eb=z;i&&"horizontal"===z&&(eb+="-reverse");let eh=({finger:e,move:t=!1})=>{let r,a;let{current:o}=el,{width:l,height:i,bottom:s,left:c}=o.getBoundingClientRect();if(r=0===eb.indexOf("vertical")?(s-e.y)/i:(e.x-c)/l,-1!==eb.indexOf("-reverse")&&(r=1-r),a=(u-d)*r+d,A)a=function(e,t,r){let a=Math.round((e-r)/t)*t+r;return Number(a.toFixed(function(e){if(1>Math.abs(e)){let t=e.toExponential().split("e-"),r=t[0].split(".")[1];return(r?r.length:0)+parseInt(t[1],10)}let t=e.toString().split(".")[1];return t?t.length:0}(t)))}(a,A,d);else{let e=S(Q,a);a=Q[e]}a=(0,b.Z)(a,d,u);let p=0;if(G){p=t?ev.current:S(U,a),n&&(a=(0,b.Z)(a,U[p-1]||-1/0,U[p+1]||1/0));let e=a;a=L({values:U,newValue:a,index:p}),n&&t||(p=a.indexOf(e),ev.current=p)}return{newValue:a,activeIndex:p}},ef=(0,g.Z)(e=>{let t=w(e,F);if(!t)return;if(W.current+=1,"mousemove"===e.type&&0===e.buttons){ey(e);return}let{newValue:r,activeIndex:a}=eh({finger:t,move:!0});C({sliderRef:el,activeIndex:a,setActive:D}),X(r),!H&&W.current>2&&q(!0),K&&!$(r,_)&&K(e,r,a)}),ey=(0,g.Z)(e=>{let t=w(e,F);if(q(!1),!t)return;let{newValue:r}=eh({finger:t,move:!0});D(-1),"touchend"===e.type&&Y(-1),T&&T(e,r),F.current=void 0,eZ()}),eg=(0,g.Z)(e=>{if(a)return;R()||e.preventDefault();let t=e.changedTouches[0];null!=t&&(F.current=t.identifier);let r=w(e,F);if(!1!==r){let{newValue:t,activeIndex:a}=eh({finger:r});C({sliderRef:el,activeIndex:a,setActive:D}),X(t),K&&!$(t,_)&&K(e,t,a)}W.current=0;let n=(0,m.Z)(el.current);n.addEventListener("touchmove",ef,{passive:!0}),n.addEventListener("touchend",ey,{passive:!0})}),eZ=l.useCallback(()=>{let e=(0,m.Z)(el.current);e.removeEventListener("mousemove",ef),e.removeEventListener("mouseup",ey),e.removeEventListener("touchmove",ef),e.removeEventListener("touchend",ey)},[ey,ef]);l.useEffect(()=>{let{current:e}=el;return e.addEventListener("touchstart",eg,{passive:R()}),()=>{e.removeEventListener("touchstart",eg),eZ()}},[eZ,eg]),l.useEffect(()=>{a&&eZ()},[a,eZ]);let ex=e=>t=>{var r;if(null==(r=e.onMouseDown)||r.call(e,t),a||t.defaultPrevented||0!==t.button)return;t.preventDefault();let n=w(t,F);if(!1!==n){let{newValue:e,activeIndex:r}=eh({finger:n});C({sliderRef:el,activeIndex:r,setActive:D}),X(e),K&&!$(e,_)&&K(t,e,r)}W.current=0;let o=(0,m.Z)(el.current);o.addEventListener("mousemove",ef,{passive:!0}),o.addEventListener("mouseup",ey)},ek=((G?U[0]:d)-d)*100/(u-d),eS=(U[U.length-1]-d)*100/(u-d)-ek,ew=e=>t=>{var r;null==(r=e.onMouseOver)||r.call(e,t);let a=Number(t.currentTarget.getAttribute("data-index"));Y(a)},eL=e=>t=>{var r;null==(r=e.onMouseLeave)||r.call(e,t),Y(-1)};return{active:V,axis:eb,axisProps:P,dragging:H,focusedThumbIndex:en,getHiddenInputProps:(r={})=>{var n;let l=(0,x.Z)(r),s={onChange:em(l||{}),onFocus:eu(l||{}),onBlur:ed(l||{}),onKeyDown:ep(l||{})},p=(0,o.Z)({},l,s);return(0,o.Z)({tabIndex:O,"aria-labelledby":t,"aria-orientation":z,"aria-valuemax":j(u),"aria-valuemin":j(d),name:c,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(n=e.step)?n:void 0,disabled:a},r,p,{style:(0,o.Z)({},Z,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(e={})=>{let t=(0,x.Z)(e),r={onMouseDown:ex(t||{})},a=(0,o.Z)({},t,r);return(0,o.Z)({},e,{ref:es},a)},getThumbProps:(e={})=>{let t=(0,x.Z)(e),r={onMouseOver:ew(t||{}),onMouseLeave:eL(t||{})};return(0,o.Z)({},e,t,r)},marks:J,open:B,range:G,rootRef:es,trackLeap:eS,trackOffset:ek,values:U,getThumbStyle:e=>({pointerEvents:-1!==V&&V!==e?"none":void 0})}}((0,o.Z)({},eV,{rootRef:t}));eV.marked=eU.length>0&&eU.some(e=>e.label),eV.dragging=eG,eV.focusedThumbIndex=eX;let e5=U(eV),e2=null!=(r=null!=(a=null==eA?void 0:eA.root)?a:ef.Root)?r:H,e4=null!=(s=null!=(u=null==eA?void 0:eA.rail)?u:ef.Rail)?s:q,e6=null!=(T=null!=(N=null==eA?void 0:eA.track)?N:ef.Track)?T:W,e8=null!=(A=null!=(I=null==eA?void 0:eA.thumb)?I:ef.Thumb)?A:_,e3=null!=(O=null!=(E=null==eA?void 0:eA.valueLabel)?E:ef.ValueLabel)?O:X,e9=null!=(F=null!=(D=null==eA?void 0:eA.mark)?D:ef.Mark)?F:K,e7=null!=(Q=null!=(ee=null==eA?void 0:eA.markLabel)?ee:ef.MarkLabel)?Q:G,te=null!=(et=null!=(er=null==eA?void 0:eA.input)?er:ef.Input)?et:"input",tt=null!=(ea=null==ej?void 0:ej.root)?ea:ey.root,tr=null!=(en=null==ej?void 0:ej.rail)?en:ey.rail,ta=null!=(eo=null==ej?void 0:ej.track)?eo:ey.track,tn=null!=(el=null==ej?void 0:ej.thumb)?el:ey.thumb,to=null!=(ei=null==ej?void 0:ej.valueLabel)?ei:ey.valueLabel,tl=null!=(es=null==ej?void 0:ej.mark)?es:ey.mark,ti=null!=(eu=null==ej?void 0:ej.markLabel)?eu:ey.markLabel,ts=null!=(ed=null==ej?void 0:ej.input)?ed:ey.input,tu=(0,c.Z)({elementType:e2,getSlotProps:eB,externalSlotProps:tt,externalForwardedProps:eF,additionalProps:(0,o.Z)({},j(e2)&&{as:eh}),ownerState:(0,o.Z)({},eV,null==tt?void 0:tt.ownerState),className:[e5.root,ex]}),td=(0,c.Z)({elementType:e4,externalSlotProps:tr,ownerState:eV,className:e5.rail}),tc=(0,c.Z)({elementType:e6,externalSlotProps:ta,additionalProps:{style:(0,o.Z)({},eD[e_].offset(eQ),eD[e_].leap(e0))},ownerState:(0,o.Z)({},eV,null==ta?void 0:ta.ownerState),className:e5.track}),tp=(0,c.Z)({elementType:e8,getSlotProps:eH,externalSlotProps:tn,ownerState:(0,o.Z)({},eV,null==tn?void 0:tn.ownerState),className:e5.thumb}),tm=(0,c.Z)({elementType:e3,externalSlotProps:to,ownerState:(0,o.Z)({},eV,null==to?void 0:to.ownerState),className:e5.valueLabel}),tv=(0,c.Z)({elementType:e9,externalSlotProps:tl,ownerState:eV,className:e5.mark}),tb=(0,c.Z)({elementType:e7,externalSlotProps:ti,ownerState:eV,className:e5.markLabel}),th=(0,c.Z)({elementType:te,getSlotProps:eY,externalSlotProps:ts,ownerState:eV});return(0,V.jsxs)(e2,(0,o.Z)({},tu,{children:[(0,V.jsx)(e4,(0,o.Z)({},td)),(0,V.jsx)(e6,(0,o.Z)({},tc)),eU.filter(e=>e.value>=eP&&e.value<=e$).map((e,t)=>{let r;let a=(e.value-eP)*100/(e$-eP),n=eD[e_].offset(a);return r=!1===eI?-1!==eJ.indexOf(e.value):"normal"===eI&&(eK?e.value>=eJ[0]&&e.value<=eJ[eJ.length-1]:e.value<=eJ[0])||"inverted"===eI&&(eK?e.value<=eJ[0]||e.value>=eJ[eJ.length-1]:e.value>=eJ[0]),(0,V.jsxs)(l.Fragment,{children:[(0,V.jsx)(e9,(0,o.Z)({"data-index":t},tv,!(0,p.Z)(e9)&&{markActive:r},{style:(0,o.Z)({},n,tv.style),className:(0,i.Z)(tv.className,r&&e5.markActive)})),null!=e.label?(0,V.jsx)(e7,(0,o.Z)({"aria-hidden":!0,"data-index":t},tb,!(0,p.Z)(e7)&&{markLabelActive:r},{style:(0,o.Z)({},n,tb.style),className:(0,i.Z)(e5.markLabel,tb.className,r&&e5.markLabelActive),children:e.label})):null]},t)}),eJ.map((e,t)=>{let r=(e-eP)*100/(e$-eP),a=eD[e_].offset(r),n="off"===eO?J:e3;return(0,V.jsx)(n,(0,o.Z)({},!(0,p.Z)(n)&&{valueLabelFormat:eE,valueLabelDisplay:eO,value:"function"==typeof eE?eE(eN(e),t):eE,index:t,open:eq===t||eW===t||"on"===eO,disabled:eS},tm,{children:(0,V.jsx)(e8,(0,o.Z)({"data-index":t},tp,{className:(0,i.Z)(e5.thumb,tp.className,eW===t&&e5.active,eX===t&&e5.focusVisible),style:(0,o.Z)({},a,e1(t),tp.style),children:(0,V.jsx)(te,(0,o.Z)({"data-index":t,"aria-label":ew?ew(t):em,"aria-valuenow":eN(e),"aria-labelledby":eb,"aria-valuetext":eL?eL(eN(e),t):ev,value:eJ[t]},th))}))}),t)})]}))});var ee=Q},37204:function(e,t,r){let a;function n(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function o(){return a||(a=function(e,t){let r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);let a=n(r);return(e,r)=>a.then(a=>r(a.transaction(t,e).objectStore(t)))}("keyval-store","keyval")),a}function l(e,t=o()){return t("readonly",t=>n(t.get(e)))}function i(e,t,r=o()){return r("readwrite",r=>(r.put(t,e),n(r.transaction)))}function s(e,t=o()){return t("readwrite",t=>(t.delete(e),n(t.transaction)))}r.d(t,{IV:function(){return s},U2:function(){return l},t8:function(){return i}})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{26328:function(e,n,t){Promise.resolve().then(t.t.bind(t,27924,23)),Promise.resolve().then(t.t.bind(t,30910,23)),Promise.resolve().then(t.t.bind(t,16662,23)),Promise.resolve().then(t.t.bind(t,81885,23)),Promise.resolve().then(t.t.bind(t,48607,23))},81885:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e,n){for(var t in n)Object.defineProperty(e,t,{enumerable:!0,get:n[t]})}(n,{suspense:function(){return o},NoSSR:function(){return i}}),t(69278),t(14978);let r=t(66995);function o(){let e=Error(r.NEXT_DYNAMIC_NO_SSR_CODE);throw e.digest=r.NEXT_DYNAMIC_NO_SSR_CODE,e}function i(e){let{children:n}=e;return n}},48607:function(){}},function(e){e.O(0,[470,730,744],function(){return e(e.s=26328)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[420],{58004:function(e,t,i){Promise.resolve().then(i.bind(i,24406))},49532:function(e,t,i){"use strict";let a,r;async function n(){if(a||(r||(r=fetch("/api/config").then(e=>e.json()).then(e=>a=e.apiBaseUrl)),await r),void 0===a)throw Error("API base URL is undefined");return a}i.d(t,{b:function(){return n}})},24406:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return ev}});var a,r,n=i(24004),s=i(14978),l=i(49532),o=i(79245),c=i(15133),d=i(47827),u=i(88938),m=i(35266),h=i(80356),p=i(38212),g=i(49658),f=i(13457),v=i(43226),x=i(88469);let j={"Security Risk":["bola","bfla","debug-access","hijacking","pii","prompt-extraction","rbac","shell-injection","sql-injection","ssrf","indirect-prompt-injection"],"Legal Risk":["contracts","harmful:child-exploitation","harmful:copyright-violations","harmful:cybercrime","harmful:hate","harmful:illegal-activities","harmful:illegal-drugs","harmful:intellectual-property","harmful:privacy","harmful:self-harm","harmful:sex-crime","harmful:sexual-content","harmful:specialized-advice","harmful:violent-crime"],"Brand Risk":["policy","competitors","excessive-agency","hallucination","harmful:graphic-content","harmful:harassment-bullying","harmful:indiscriminate-weapons","harmful:insults","harmful:misinformation-disinformation","harmful:non-violent-crime","harmful:profanity","harmful:radicalization","harmful:unsafe-practices","imitation","overreliance","politics"]},y={"Brand Risk":"Risks that can affect the brand reputation and trustworthiness.","Legal Risk":"Risks that can lead to legal consequences or violations.","Technical Risk":"Risks involving malicious activities targeting the system or users."};(a=r||(r={})).Critical="Critical",a.High="High",a.Medium="Medium",a.Low="Low";let b={"debug-access":r.High,"excessive-agency":r.Medium,"harmful:child-exploitation":r.Critical,"harmful:copyright-violations":r.Low,"harmful:cybercrime":r.Low,"harmful:graphic-content":r.Medium,"harmful:harassment-bullying":r.Low,"harmful:hate":r.Critical,"harmful:illegal-activities":r.Medium,"harmful:illegal-drugs":r.Medium,"harmful:indiscriminate-weapons":r.Medium,"harmful:insults":r.Low,"harmful:intellectual-property":r.Medium,"harmful:misinformation-disinformation":r.Medium,"harmful:non-violent-crime":r.Medium,"harmful:privacy":r.High,"harmful:profanity":r.Low,"harmful:radicalization":r.Low,"harmful:self-harm":r.Critical,"harmful:sex-crime":r.High,"harmful:sexual-content":r.Medium,"harmful:specialized-advice":r.Medium,"harmful:unsafe-practices":r.Low,"harmful:violent-crime":r.High,"prompt-injection":r.Medium,"shell-injection":r.High,"sql-injection":r.High,competitors:r.Low,contracts:r.Medium,hallucination:r.Medium,hijacking:r.High,imitation:r.Low,jailbreak:r.Medium,overreliance:r.Low,pii:r.High,politics:r.Low,rbac:r.High,policy:r.High,bola:r.High,bfla:r.High,ssrf:r.High,"indirect-prompt-injection":r.High,"prompt-extraction":r.Medium},Z=Object.entries(j).reduce((e,t)=>{let[i,a]=t;return a.forEach(t=>{e[t]=i}),e},{});Object.keys(Z);let w={bola:"BOLAEnforcement",bfla:"BFLAEnforcement",ssrf:"SSRFEnforcement","debug-access":"DebugAccess","excessive-agency":"ExcessiveAgency","harmful:child-exploitation":"Child Exploitation","harmful:cybercrime":"Cybercrime & Unauthorized Intrusion - Hacking and Malware","harmful:graphic-content":"Graphic & age-restricted content","harmful:harassment-bullying":"Harassment & Bullying","harmful:hate":"Hate","harmful:illegal-activities":"Illegal Activities - Fraud & scams","harmful:illegal-drugs":"Illegal Drugs","harmful:indiscriminate-weapons":"Indiscriminate Weapons","harmful:insults":"Insults and personal attacks","harmful:intellectual-property":"Intellectual Property violation","harmful:misinformation-disinformation":"Misinformation & Disinformation - Harmful lies and propaganda","harmful:non-violent-crime":"Non-Violent Crimes","harmful:privacy":"Privacy violations","harmful:profanity":"Requests containing profanity","harmful:radicalization":"Radicalization","harmful:self-harm":"Self-Harm","harmful:sex-crime":"Sex Crimes","harmful:sexual-content":"Sexual Content","harmful:specialized-advice":"Specialized Advice - Financial","harmful:unsafe-practices":"Promotion of unsafe practices","harmful:violent-crime":"Violent Crimes","harmful:chemical-biological-weapons":"Chemical & Biological Weapons","harmful:copyright-violations":"Copyright Violations - Copyrighted text","prompt-injection":"Harmful/Injection","shell-injection":"ShellInjection","sql-injection":"SqlInjection",competitors:"CompetitorEndorsement",contracts:"ContractualCommitment",hallucination:"Hallucination",hijacking:"Hijacking",imitation:"Imitation",jailbreak:"Harmful/Iterative",overreliance:"Overreliance",pii:"PIILeak",politics:"PoliticalStatement",rbac:"RbacEnforcement",policy:"PolicyViolation","indirect-prompt-injection":"IndirectPromptInjection","prompt-extraction":"PromptExtraction"},k=Object.entries(w).reduce((e,t)=>{let[i,a]=t;return e[a]=i,e},{}),C={bola:"Unauthorized Data Access",bfla:"Privilege Escalation",ssrf:"Malicious Resource Fetching","excessive-agency":"Excessive Agency","prompt-injection":"Prompt Injection",competitors:"Competitor Endorsements",contracts:"Unsupervised Contracts",jailbreak:"Single-shot optimization","jailbreak:tree":"Tree-based optimization",pii:"PII Leaks",politics:"Political Opinions","shell-injection":"Shell Injection","sql-injection":"SQL Injection",rbac:"RBAC Enforcement","debug-access":"Debug Access","harmful:specialized-advice":"Specialized Advice","harmful:illegal-activities":"Illegal Activities","harmful:cybercrime":"Cybercrime","harmful:copyright-violations":"Copyright Violations","harmful:misinformation-disinformation":"Misinformation & disinformation",policy:"Custom Policy",basic:"Basic",crescendo:"Multi-turn","indirect-prompt-injection":"Indirect Prompt Injection","prompt-extraction":"Prompt Extraction"},R={default:"Includes common plugins",basic:"Raw attacks without any special attack strategies","ascii-smuggling":"Attempts to obfuscate malicious content using ASCII smuggling",multilingual:"Translates the input into low-resource languages",bola:"Broken Object Level Authorization (BOLA) tests",bfla:"Broken Function Level Authorization (BFLA) tests",ssrf:"Server-Side Request Forgery (SSRF) tests","debug-access":"Attempts to access or use debugging commands","excessive-agency":"Model taking excessive initiative or misunderstanding its capabilities","harmful:chemical-biological-weapons":"Content related to chemical or biological weapons","harmful:child-exploitation":"Content exploiting or harming children","harmful:copyright-violations":"Content violating copyright laws","harmful:cybercrime":"Content related to cybercriminal activities","harmful:graphic-content":"Displaying graphic or violent content","harmful:harassment-bullying":"Content that harasses or bullies individuals","harmful:hate":"Content that promotes hate or discrimination","harmful:illegal-activities":"Content promoting illegal activities","harmful:illegal-drugs":"Content related to illegal drug use or trade","harmful:indiscriminate-weapons":"Content related to weapons without context","harmful:insults":"Content that insults or demeans individuals","harmful:intellectual-property":"Content violating intellectual property rights","harmful:misinformation-disinformation":"Spreading false or misleading information","harmful:non-violent-crime":"Content related to non-violent criminal activities","harmful:privacy":"Content violating privacy rights","harmful:profanity":"Content containing profane or inappropriate language","harmful:radicalization":"Content that promotes radical or extremist views","harmful:self-harm":"Content that encourages self-harm or suicide","harmful:sex-crime":"Content related to sexual crimes","harmful:sexual-content":"Explicit or inappropriate sexual content","harmful:specialized-advice":"Providing advice in specialized fields without expertise","harmful:unsafe-practices":"Content promoting unsafe or harmful practices","harmful:violent-crime":"Content related to violent criminal activities","jailbreak:tree":"Tree-based jailbreak search","pii:api-db":"PII exposed through API or database","pii:direct":"Direct exposure of PII","pii:session":"PII exposed in session data","pii:social":"PII exposed through social engineering","prompt-injection":"Malicious inputs designed to manipulate the model's behavior","shell-injection":"Attempts to execute shell commands through the model","sql-injection":"Attempts to perform SQL injection attacks to manipulate database queries",base64:"Attempts to obfuscate malicious content using Base64 encoding",competitors:"Competitor mentions and endorsements",contracts:"Enters business or legal commitments without supervision",hallucination:"Model generating false or misleading information",harmful:"All harmful categories",hijacking:"Unauthorized or off-topic resource use",imitation:"Imitates people, brands, or organizations",jailbreak:"Attempts to bypass security measures through iterative prompt refinement",leetspeak:"Attempts to obfuscate malicious content using leetspeak",overreliance:"Model susceptible to relying on an incorrect user assumption or input",pii:"All PII categories",policy:"Violates a custom configured policy",politics:"Makes political statements",rbac:"Tests whether the model properly implements Role-Based Access Control (RBAC)",rot13:"Attempts to obfuscate malicious content using ROT13 encoding",crescendo:"Conversational attack strategy","prompt-extraction":"Attempts to get the model to reveal its system prompt","indirect-prompt-injection":"Evaluates how susceptible the prompt is to harmful instructions injected into the prompt"};i(4309);var P=e=>{let{categoryStats:t}=e,i=[r.Critical,r.High,r.Medium,r.Low],a=i.reduce((e,i)=>(e[i]=Object.keys(t).reduce((e,t)=>b[t]===i?e+1:e,0),e),{});return(0,n.jsx)(f.Z,{spacing:2,direction:{xs:"column",sm:"row"},children:i.map(e=>(0,n.jsx)(o.Z,{flex:1,children:(0,n.jsx)(c.Z,{className:"severity-card card-".concat(e.toLowerCase()),children:(0,n.jsxs)(x.Z,{onClick:()=>window.location.hash="#table",children:[(0,n.jsx)(v.Z,{variant:"h6",gutterBottom:!0,children:e}),(0,n.jsx)(v.Z,{variant:"h4",color:"text.primary",children:a[e]}),(0,n.jsx)(v.Z,{variant:"body2",color:"text.secondary",children:"issues"})]})})},e))})},A=i(52481),I=i(52653),N=i(78276),S=i(35193),F=i.n(S),L=i(21629),M=e=>{let{evalDescription:t}=e,i=async()=>{let e=document.documentElement,i=await F()(e,{height:Math.max(e.scrollHeight,e.offsetHeight),windowHeight:document.documentElement.scrollHeight}),a=i.toDataURL("image/png"),r=new L.ZP("p","pt",[i.width,i.height]);r.addImage(a,"PNG",0,0,i.width,i.height);let n=t?"report_".concat(t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,""),".pdf"):"report.pdf";r.save(n)};return(0,n.jsx)(N.Z,{title:"Download report as PDF",placement:"top",children:(0,n.jsx)(I.Z,{onClick:i,sx:{mt:"4px"},"aria-label":"download report",children:(0,n.jsx)(A.Z,{})})})},H=i(93295),z=i(49050),E=i(89394),B=i(42834),D=i(26337),O=i(91797),T=i(4451),W=i(37204),U=i(94660),V=i(74810);let q={getItem:async e=>await (0,W.U2)(e)||null,setItem:async(e,t)=>{await (0,W.t8)(e,t)},removeItem:async e=>{await (0,W.IV)(e)}},_=(0,U.Ue)()((0,V.tJ)(e=>({showPercentagesOnRiskCards:!1,setShowPercentagesOnRiskCards:t=>e(()=>({showPercentagesOnRiskCards:t})),pluginPassRateThreshold:1,setPluginPassRateThreshold:t=>e(()=>({pluginPassRateThreshold:t}))}),{name:"ReportViewStorage",storage:(0,V.FL)(()=>q)}));var J=()=>{let{showPercentagesOnRiskCards:e,setShowPercentagesOnRiskCards:t,pluginPassRateThreshold:i,setPluginPassRateThreshold:a}=_(),[r,l]=s.useState(!1),o=()=>{l(!1)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(N.Z,{title:"Report Settings",placement:"top",children:(0,n.jsx)(I.Z,{onClick:()=>{l(!0)},"aria-label":"settings",children:(0,n.jsx)(H.Z,{})})}),(0,n.jsxs)(E.Z,{open:r,onClose:o,fullWidth:!0,maxWidth:"sm",children:[(0,n.jsx)(O.Z,{children:"Report Settings"}),(0,n.jsxs)(D.Z,{children:[(0,n.jsx)(v.Z,{component:"div",sx:{padding:"16px 0"},children:(0,n.jsxs)("label",{style:{display:"flex",alignItems:"center",cursor:"pointer"},children:[(0,n.jsx)("input",{type:"checkbox",checked:e,onChange:e=>t(e.target.checked),style:{marginRight:"10px"}}),"Show percentages on risk cards"]})}),(0,n.jsxs)(v.Z,{component:"div",sx:{padding:"16px 0"},children:[(0,n.jsxs)("label",{children:["Plugin Pass Rate Threshold: ",(100*i).toFixed(0),"%"]}),(0,n.jsx)(v.Z,{variant:"body2",color:"textSecondary",sx:{mt:1},children:"Sets the threshold for considering a plugin as passed on the risk cards."}),(0,n.jsx)(T.ZP,{value:i,onChange:(e,t)=>a(t),"aria-labelledby":"plugin-pass-rate-threshold-slider",step:.05,marks:!0,min:0,max:1,valueLabelDisplay:"auto",valueLabelFormat:e=>"".concat((100*e).toFixed(0),"%")})]})]}),(0,n.jsx)(B.Z,{children:(0,n.jsx)(z.Z,{onClick:o,variant:"contained",color:"primary",children:"Close"})})]})]})},G=i(70740),K=i(14565),Q=i(28874),Y=i(48670),$=i(64111);i(11674);var X=e=>{let{open:t,onClose:i,category:a,failures:r,evalId:s,numPassed:l,numFailed:c}=e,d=w[a];if(!d)return console.error("[RiskCategoryDrawer] Could not load category",a),null;let u=C[a]||d,p=l+c,g=p>0?Math.round(l/p*100):0;return 0===p?(0,n.jsx)($.ZP,{anchor:"right",open:t,onClose:i,children:(0,n.jsxs)(o.Z,{sx:{width:500,p:2},className:"risk-category-drawer",children:[(0,n.jsx)(v.Z,{variant:"h6",gutterBottom:!0,children:u}),(0,n.jsx)(v.Z,{variant:"body1",sx:{mt:2,textAlign:"center"},children:"No tests have been run for this category."})]})}):(0,n.jsx)($.ZP,{anchor:"right",open:t,onClose:i,children:(0,n.jsxs)(o.Z,{sx:{width:500,p:2},className:"risk-category-drawer",children:[(0,n.jsx)(v.Z,{variant:"h6",gutterBottom:!0,children:u}),(0,n.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[(0,n.jsxs)(o.Z,{sx:{textAlign:"center",flex:1},children:[(0,n.jsx)(v.Z,{variant:"h4",color:"primary",children:l.toString()}),(0,n.jsx)(v.Z,{variant:"body2",children:"Passed"})]}),(0,n.jsxs)(o.Z,{sx:{textAlign:"center",flex:1},children:[(0,n.jsx)(v.Z,{variant:"h4",children:p.toString()}),(0,n.jsx)(v.Z,{variant:"body2",children:"Total"})]}),(0,n.jsxs)(o.Z,{sx:{textAlign:"center",flex:1},children:[(0,n.jsx)(v.Z,{variant:"h4",color:g>=70?"success.main":"error.main",children:"".concat(g,"%")}),(0,n.jsx)(v.Z,{variant:"body2",children:"Pass Rate"})]})]}),(0,n.jsx)(z.Z,{variant:"contained",color:"inherit",fullWidth:!0,onClick:e=>{let t="/eval/?evalId=".concat(s,"&search=").concat(encodeURIComponent("(var=".concat(d,"|metric=").concat(d,")")));e.ctrlKey||e.metaKey?window.open(t,"_blank"):window.location.href=t},children:"View All Logs"}),r.length>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.Z,{variant:"h6",className:"failed-tests-header",children:"Failed Tests"}),(0,n.jsx)(m.Z,{children:r.slice(0,5).map((e,t)=>(0,n.jsx)(h.ZP,{className:"failure-item",children:(0,n.jsxs)(o.Z,{children:[(0,n.jsx)(v.Z,{variant:"subtitle1",className:"prompt",children:function(e){try{let t=JSON.parse(e);if(Array.isArray(t)){let e=t[t.length-1];if(e.content)return e.content||"-"}}catch(e){}return e}(e.prompt)}),(0,n.jsx)(v.Z,{variant:"body2",className:"output",children:function(e){if("string"==typeof e)return e;if(Array.isArray(e)){let t=e.filter(e=>"function"===e.type);if(t.length>0)return t.map(e=>{var t,i;return"".concat(null===(t=e.function)||void 0===t?void 0:t.name,": (").concat(null===(i=e.function)||void 0===i?void 0:i.arguments,")")}).join("\n")}return JSON.stringify(e)}(e.output)})]})},t))})]}):(0,n.jsx)(o.Z,{sx:{mt:2,textAlign:"center"},children:(0,n.jsx)(v.Z,{variant:"body1",children:"All tests passed successfully"})})]})})};i(46553);var ee=e=>{var t,i;let{title:a,subtitle:r,progressValue:l,numTestsPassed:d,numTestsFailed:u,testTypes:g,evalId:f,failuresByPlugin:j}=e,{showPercentagesOnRiskCards:y,pluginPassRateThreshold:b}=_(),[Z,k]=s.useState(!1),[P,A]=s.useState(""),I=g.filter(e=>e.numPassed+e.numFailed>0);return 0===I.length?null:(0,n.jsx)(c.Z,{children:(0,n.jsxs)(x.Z,{className:"risk-card-container",children:[(0,n.jsxs)(Q.ZP,{container:!0,spacing:3,children:[(0,n.jsxs)(Q.ZP,{item:!0,xs:12,md:6,style:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center"},children:[(0,n.jsx)(v.Z,{variant:"h5",className:"risk-card-title",children:a}),(0,n.jsx)(v.Z,{variant:"subtitle1",color:"textSecondary",mb:2,children:r}),(0,n.jsx)(o.Z,{sx:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:100,height:100},children:(0,n.jsx)(Y.a,{value:l,max:100,thickness:10,arc:{startAngle:-90,endAngle:90,color:"primary.main"},text:Number.isNaN(l)?"-":"".concat(Math.round(l),"%"),sx:{width:"100%",height:"100%"}})}),(0,n.jsxs)(v.Z,{variant:"h6",className:"risk-card-issues",children:[u," failed probes"]}),(0,n.jsxs)(v.Z,{variant:"subtitle1",color:"textSecondary",className:"risk-card-tests-passed",children:[d,"/",d+u," passed"]})]}),(0,n.jsx)(Q.ZP,{item:!0,xs:6,md:4,children:(0,n.jsx)(m.Z,{dense:!0,children:I.map((e,t)=>{let i=e.numPassed/(e.numPassed+e.numFailed);return(0,n.jsx)(N.Z,{title:R[e.name],placement:"left",arrow:!0,children:(0,n.jsxs)(h.ZP,{className:"risk-card-list-item",onClick:()=>{A(e.name),k(!0)},style:{cursor:"pointer"},children:[(0,n.jsx)(p.Z,{primary:C[e.name]||w[e.name],primaryTypographyProps:{variant:"body2"}}),y?(0,n.jsx)(v.Z,{variant:"body2",className:"risk-card-percentage ".concat(i>=.8?"risk-card-percentage-high":i>=.5?"risk-card-percentage-medium":"risk-card-percentage-low"),children:"".concat(Math.round(100*i),"%")}):i>=b?(0,n.jsx)(K.Z,{className:"risk-card-icon-passed"}):(0,n.jsx)(G.Z,{className:"risk-card-icon-failed"})]})},t)})})})]}),P&&(0,n.jsx)(X,{open:Z,onClose:()=>k(!1),category:P,failures:j[P]||[],evalId:f,numPassed:(null===(t=g.find(e=>e.name===P))||void 0===t?void 0:t.numPassed)||0,numFailed:(null===(i=g.find(e=>e.name===P))||void 0===i?void 0:i.numFailed)||0})]})})};i(32991);var et=e=>{let{categoryStats:t,evalId:i,failuresByPlugin:a}=e,r=Object.keys(j).map(e=>({name:e,passed:j[e].every(e=>{var i,a;return(null===(i=t[e])||void 0===i?void 0:i.pass)===(null===(a=t[e])||void 0===a?void 0:a.total)})}));return(0,n.jsx)(f.Z,{spacing:4,children:r.map((e,r)=>{let s=e.name,l=j[s],o=l.reduce((e,i)=>{var a;return e+((null===(a=t[i])||void 0===a?void 0:a.pass)||0)},0),c=l.reduce((e,i)=>{var a;return e+((null===(a=t[i])||void 0===a?void 0:a.total)||0)},0);return(0,n.jsx)(ee,{title:e.name,subtitle:y[s],progressValue:o/c*100,numTestsPassed:o,numTestsFailed:c-o,testTypes:l.map(e=>{var i,a,r,n,s;return{name:e,categoryPassed:(null===(i=t[e])||void 0===i?void 0:i.pass)===(null===(a=t[e])||void 0===a?void 0:a.total),numPassed:(null===(r=t[e])||void 0===r?void 0:r.pass)||0,numFailed:((null===(n=t[e])||void 0===n?void 0:n.total)||0)-((null===(s=t[e])||void 0===s?void 0:s.pass)||0)}}),evalId:i,failuresByPlugin:a},r)})})},ei=i(54755),ea=i(12120),er=i(35843);i(44097);let en=(0,er.ZP)(ei.Z)(e=>{let{theme:t}=e;return{height:8,borderRadius:8,["&.".concat(ea.Z.colorPrimary)]:{backgroundColor:"light"===t.palette.mode?"#e0e0e0":"#424242"},["& .".concat(ea.Z.bar)]:{borderRadius:8,backgroundColor:"light"===t.palette.mode?"#ff1744":"#ff8a80"}}});var es=e=>{let{strategyStats:t}=e,i=Object.entries(t).sort((e,t)=>(t[1].total-t[1].pass)/t[1].total-(e[1].total-e[1].pass)/e[1].total);return(0,n.jsx)(c.Z,{className:"strategy-stats-card",children:(0,n.jsxs)(x.Z,{className:"strategy-stats-content",children:[(0,n.jsx)(v.Z,{variant:"h5",mb:2,children:"Attack success rates"}),(0,n.jsx)(o.Z,{className:"strategy-grid",children:i.map(e=>{let[t,{pass:i,total:a}]=e,r=(a-i)/a*100;return(0,n.jsxs)(o.Z,{className:"strategy-item",children:[(0,n.jsx)(v.Z,{variant:"body1",className:"strategy-name",children:C[t]||t}),(0,n.jsx)(v.Z,{variant:"body2",color:"text.secondary",className:"strategy-description",children:R[t]||""}),(0,n.jsxs)(o.Z,{display:"flex",alignItems:"center",className:"progress-container",children:[(0,n.jsx)(o.Z,{width:"100%",mr:1,children:(0,n.jsx)(en,{variant:"determinate",value:r})}),(0,n.jsx)(o.Z,{minWidth:45,className:"fail-rate",children:(0,n.jsxs)(v.Z,{variant:"body2",color:"text.secondary",children:[r.toFixed(1),"%"]})})]}),(0,n.jsxs)(v.Z,{variant:"caption",color:"text.secondary",className:"attack-stats",children:[a-i," / ",a," attacks succeeded"]})]},t)})})]})})},el=i(73701),eo=i(39279),ec=i(30666),ed=i(15795),eu=i(66988),em=i(15646),eh=i(98489),ep=i(95781);i(93091);let eg=e=>{let t=[];for(let i of Object.values(j))for(let a of i)t.push({pluginName:a,type:w[a]||a,description:R[a]||"",passRate:e[a]?(e[a].pass/e[a].total*100).toFixed(1)+"%":"N/A",passRateWithFilter:e[a]?(e[a].passWithFilter/e[a].total*100).toFixed(1)+"%":"N/A",severity:b[a]||"Unknown"});return t.sort((e,t)=>"N/A"===e.passRate?1:"N/A"===t.passRate?-1:Number.parseFloat(e.passRate)-Number.parseFloat(t.passRate))};var ef=e=>{let{evalId:t,categoryStats:i}=e,a=eg(i).filter(e=>"N/A"!==e.passRate),[r,l]=s.useState(0),[c,d]=s.useState(10),[u,m]=s.useState("asc"),[h,p]=s.useState("default"),g=e=>{let t=h===e&&"asc"===u;m(t?"desc":"asc"),p(e)};return(0,n.jsxs)(o.Z,{children:[(0,n.jsx)(v.Z,{variant:"h5",gutterBottom:!0,id:"table",children:"Vulnerabilities and Mitigations"}),(0,n.jsxs)(ed.Z,{children:[(0,n.jsxs)(el.Z,{children:[(0,n.jsx)(eu.Z,{children:(0,n.jsxs)(eh.Z,{children:[(0,n.jsx)(ec.Z,{children:"Type"}),(0,n.jsx)(ec.Z,{children:"Description"}),(0,n.jsx)(ec.Z,{children:(0,n.jsx)(ep.Z,{active:"passRate"===h,direction:"passRate"===h?u:"asc",onClick:()=>g("passRate"),children:"Pass rate"})}),(0,n.jsx)(ec.Z,{children:(0,n.jsx)(ep.Z,{active:"severity"===h,direction:"severity"===h?u:"asc",onClick:()=>g("severity"),children:"Severity"})}),(0,n.jsx)(ec.Z,{style:{minWidth:"275px"},children:"Actions"})]})}),(0,n.jsx)(eo.Z,{children:a.sort((e,t)=>{if("passRate"===h)return"N/A"===e.passRate?1:"N/A"===t.passRate?-1:"asc"===u?Number.parseFloat(e.passRate)-Number.parseFloat(t.passRate):Number.parseFloat(t.passRate)-Number.parseFloat(e.passRate);if("severity"===h){if("N/A"===e.passRate)return 1;if("N/A"===t.passRate)return -1;let i={Critical:4,High:3,Medium:2,Low:1};return"asc"===u?i[e.severity]-i[t.severity]:i[t.severity]-i[e.severity]}{let i={Critical:4,High:3,Medium:2,Low:1};return e.severity===t.severity?Number.parseFloat(e.passRate)-Number.parseFloat(t.passRate):i[t.severity]-i[e.severity]}}).slice(r*c,r*c+c).map((e,t)=>{let i="";if("N/A"!==e.passRate){let t=Number.parseFloat(e.passRate);i=t>=75?"pass-high":t>=50?"pass-medium":"pass-low"}return(0,n.jsxs)(eh.Z,{children:[(0,n.jsx)(ec.Z,{children:(0,n.jsx)("span",{style:{fontWeight:500},children:C[e.pluginName]||e.type})}),(0,n.jsx)(ec.Z,{children:e.description}),(0,n.jsxs)(ec.Z,{className:i,children:[(0,n.jsx)("strong",{children:e.passRate}),e.passRateWithFilter===e.passRate?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("br",{}),"(",e.passRateWithFilter," with mitigation)"]})]}),(0,n.jsx)(ec.Z,{className:"vuln-".concat(e.severity.toLowerCase()),children:e.severity}),(0,n.jsxs)(ec.Z,{style:{minWidth:270},children:[(0,n.jsx)(z.Z,{variant:"contained",size:"small",onClick:()=>{let t=new URLSearchParams(window.location.search),i=t.get("evalId");window.location.href="/eval/?evalId=".concat(i,"&search=").concat(encodeURIComponent("(var=".concat(e.type,"|metric=").concat(e.type,")")))},children:"View logs"}),(0,n.jsx)(N.Z,{title:"Temporarily disabled while in beta, click to contact us to enable",children:(0,n.jsx)(z.Z,{variant:"contained",size:"small",color:"inherit",style:{marginLeft:8},onClick:()=>{window.location.href="mailto:inquiries@promptfoo.dev?subject=Promptfoo%20automatic%20vulnerability%20mitigation&body=Hello%20Promptfoo%20Team,%0D%0A%0D%0AI%20am%20interested%20in%20learning%20more%20about%20the%20automatic%20vulnerability%20mitigation%20beta.%20Please%20provide%20me%20with%20more%20details.%0D%0A%0D%0A"},children:"Apply mitigation"})})]})]},t)})})]}),a.length>c&&(0,n.jsx)(em.Z,{rowsPerPageOptions:[10,25,50],component:"div",count:a.length,rowsPerPage:c,page:r,onPageChange:(e,t)=>{l(t)},onRowsPerPageChange:e=>{d(Number.parseInt(e.target.value,10)),l(0)}})]})]})};i(67667);var ev=()=>{let[e,t]=s.useState(null),[i,a]=s.useState(null),[r,x]=s.useState(0),[j,y]=s.useState(!1),b=s.useMemo(()=>{let e={};return null==i||i.results.results.forEach(t=>{var i,a,r;let n=function(e){var t,i,a;let r=e.vars.harmCategory;if(r)return k[r];let n=(null===(i=e.gradingResult)||void 0===i?void 0:null===(t=i.componentResults)||void 0===t?void 0:t.map(e=>{var t;return null===(t=e.assertion)||void 0===t?void 0:t.metric}))||[],s=null===(a=n[0])||void 0===a?void 0:a.split("/")[0];return s?k[s]:null}(t);if(!n){console.warn("Could not get failures for plugin ".concat(n));return}!n||(null===(i=t.gradingResult)||void 0===i?void 0:i.pass)||(e[n]||(e[n]=[]),e[n].push({prompt:(null===(a=t.vars.query)||void 0===a?void 0:a.toString())||t.prompt.raw,output:null===(r=t.response)||void 0===r?void 0:r.output}))}),e},[i]);if(s.useEffect(()=>{let e=async e=>{let t=await fetch("".concat(await (0,l.b)(),"/api/results/").concat(e),{cache:"no-store"}),i=await t.json();a(i.data)},i=new URLSearchParams(window.location.search);if(!i)return;let r=i.get("evalId");r&&(t(r),e(r))},[]),s.useEffect(()=>{document.title="Report: ".concat((null==i?void 0:i.config.description)||e||"Red Team"," | promptfoo")},[i,e]),!i||!e)return(0,n.jsx)(o.Z,{sx:{width:"100%",textAlign:"center"},children:"Loading..."});let Z=i.results.table.head.prompts,w=Z[r],C=i.results.table.body,R=i.results.results.reduce((e,t)=>{var i,a,r,n,s,l,o,c;let d=t.vars.harmCategory,u=(null===(a=t.gradingResult)||void 0===a?void 0:null===(i=a.componentResults)||void 0===i?void 0:i.map(e=>{var t;return null===(t=e.assertion)||void 0===t?void 0:t.metric}))||[],m=[d,...u].filter(e=>e);for(let i of m){if("string"!=typeof i)continue;let a=k[i.split("/")[0]];if(!a){console.log("Unknown harm category:",i);break}let d=null===(n=t.gradingResult)||void 0===n?void 0:null===(r=n.componentResults)||void 0===r?void 0:r.some(e=>{var t;let i=(null===(t=e.assertion)||void 0===t?void 0:t.type)==="moderation",a=e.pass;return i&&a}),u=null===(l=t.gradingResult)||void 0===l?void 0:null===(s=l.componentResults)||void 0===s?void 0:s.some(e=>{var t,i;let a=(null===(t=e.assertion)||void 0===t?void 0:t.type)==="llm-rubric"||(null===(i=e.assertion)||void 0===i?void 0:i.type.startsWith("promptfoo:redteam")),r=e.pass;return a&&r}),m=null===(c=t.gradingResult)||void 0===c?void 0:null===(o=c.componentResults)||void 0===o?void 0:o.some(e=>{var t;let i=(null===(t=e.assertion)||void 0===t?void 0:t.type)==="human",a=e.pass;return i&&a});e[a]=e[a]||{pass:0,total:0,passWithFilter:0},e[a].total++,u||m?(e[a].pass++,e[a].passWithFilter++):!d&&e[a].passWithFilter++}return e},{}),A=i.results.results.reduce((e,t)=>{var i,a,r,n;let s=(null===(a=t.gradingResult)||void 0===a?void 0:null===(i=a.componentResults)||void 0===i?void 0:i.map(e=>{var t;return null===(t=e.assertion)||void 0===t?void 0:t.metric}))||[];for(let i of s){if("string"!=typeof i)continue;let a=function(e){let t=e.split("/")[1];if(t){if("Iterative"===t)return"jailbreak";if("IterativeTree"===t)return"jailbreak:tree";if("Crescendo"===t)return"crescendo";if("Injection"===t)return"prompt-injection";else if("Rot13"===t)return"rot13";else if("Base64"===t)return"base64";else if("Leetspeak"===t)return"leetspeak";else if(t.startsWith("Multilingual"))return"multilingual"}return null}(i);a||(a="basic"),e[a]||(e[a]={pass:0,total:0}),e[a].total++;let s=null===(n=t.gradingResult)||void 0===n?void 0:null===(r=n.componentResults)||void 0===r?void 0:r.some(e=>{var t;return(null===(t=e.assertion)||void 0===t?void 0:t.metric)===i&&e.pass});s&&e[a].pass++}return e},{}),I=()=>{Z.length>1&&y(!0)},N=e=>{x(e),y(!1)};return(0,n.jsxs)(u.Z,{children:[(0,n.jsxs)(f.Z,{spacing:4,pb:8,pt:2,children:[(0,n.jsxs)(c.Z,{className:"report-header",sx:{position:"relative"},children:[(0,n.jsxs)(o.Z,{sx:{position:"absolute",top:8,right:8,display:"flex"},children:[(0,n.jsx)(M,{evalDescription:i.config.description||e}),(0,n.jsx)(J,{})]}),(0,n.jsxs)(v.Z,{variant:"h4",children:[(0,n.jsx)("strong",{children:"LLM Risk Assessment"}),i.config.description&&": ".concat(i.config.description)]}),(0,n.jsx)(v.Z,{variant:"subtitle1",mb:2,children:new Date(i.createdAt).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}),(0,n.jsxs)(o.Z,{className:"report-details",children:[(0,n.jsx)(d.Z,{size:"small",label:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("strong",{children:"Model:"})," ",w.provider]}),onClick:I,style:{cursor:Z.length>1?"pointer":"default"}}),(0,n.jsx)(d.Z,{size:"small",label:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("strong",{children:"Dataset:"})," ",C.length," probes"]})}),(0,n.jsx)(d.Z,{size:"small",label:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("strong",{children:"Prompt:"}),' "',w.raw.length>40?"".concat(w.raw.substring(0,40),"..."):w.raw,'"']}),onClick:I,style:{cursor:Z.length>1?"pointer":"default"}})]})]}),(0,n.jsx)(P,{categoryStats:R}),(0,n.jsx)(es,{strategyStats:A}),(0,n.jsx)(et,{categoryStats:R,evalId:e,failuresByPlugin:b}),(0,n.jsx)(ef,{evalId:e,categoryStats:R})]}),(0,n.jsx)(g.Z,{open:j,onClose:()=>y(!1),"aria-labelledby":"prompt-modal-title",sx:{"& .MuiModal-root":{display:"flex",alignItems:"center",justifyContent:"center"},"& .MuiBox-root":{width:"80%",maxWidth:800,maxHeight:"90vh",overflowY:"auto"}},children:(0,n.jsxs)(o.Z,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",boxShadow:24,p:4},children:[(0,n.jsx)(v.Z,{id:"prompt-modal-title",variant:"h6",component:"h2",gutterBottom:!0,children:"View results for..."}),(0,n.jsx)(m.Z,{children:Z.map((e,t)=>(0,n.jsx)(h.ZP,{button:!0,onClick:()=>N(t),selected:t===r,children:(0,n.jsx)(p.Z,{primary:"".concat(e.provider),secondary:e.raw.length>100?"".concat(e.raw.substring(0,100),"..."):e.raw})},t))})]})})]})}},4309:function(){},67667:function(){},46553:function(){},32991:function(){},11674:function(){},44097:function(){},93091:function(){}},function(e){e.O(0,[949,799,148,193,391,654,65,276,874,264,459,178,470,730,744],function(){return e(e.s=58004)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.severity-card{transition:transform .3s ease-in-out,box-shadow .3s ease-in-out}.severity-card:hover{transform:translateY(-5px);box-shadow:0 8px 16px rgba(0,0,0,.1)}[data-theme=dark] .severity-card:hover{box-shadow:none}.card-critical{border-left:5px solid #ff1744}.card-high{border-left:5px solid #ff9100}.card-medium{border-left:5px solid #ffc400}.card-low{border-left:5px solid #00e676}.risk-category-drawer .MuiListItem-root.failure-item{border:1px solid #e0e0e0;border-radius:8px;margin-bottom:16px;padding:16px;transition:all .3s ease;box-shadow:0 2px 4px rgba(0,0,0,.05)}.risk-category-drawer .MuiListItem-root.failure-item:hover{border-color:#bdbdbd;box-shadow:0 4px 8px rgba(0,0,0,.1)}.risk-category-drawer .prompt{font-weight:500;margin-bottom:8px}.risk-category-drawer .output{color:#555;white-space:pre-wrap;word-break:break-word;max-height:100px;overflow-y:auto;background-color:#f5f5f5;padding:8px;border-radius:4px}.risk-category-drawer .failed-tests-header{margin-top:8px;margin-bottom:8px;font-weight:500;border-top:2px solid #e0e0e0;padding-top:1.5rem}.risk-card-container{padding-top:3rem;padding-bottom:3rem}.risk-card-title{font-weight:700}.risk-card-progress{margin-bottom:1rem}.risk-card-issues{color:red}.risk-card-list-item{padding:0;transition:background-color .3s,box-shadow .3s}.risk-card-list-item:hover{background-color:#f0f8ff;box-shadow:0 0 0 1px #add8e6;border-radius:4px}[data-theme=dark] .risk-card-list-item:hover{background-color:#2a2a2a;box-shadow:0 0 0 1px #555;border-radius:4px}.risk-card-icon-passed{color:green;font-size:16px}.risk-card-icon-failed{color:red;font-size:16px}.risk-card-icon-no-tests{color:#888;font-size:16px}.risk-card-percentage{margin-left:8px;font-weight:700}.risk-card-percentage-high{color:#4caf50}.risk-card-percentage-medium{color:#ff9800}.risk-card-percentage-low{color:#f44336}[data-theme=dark] .risk-card-percentage-high{color:#81c784}[data-theme=dark] .risk-card-percentage-medium{color:#ffb74d}[data-theme=dark] .risk-card-percentage-low{color:#e57373}.strategy-stats-card{border-radius:.75rem}div.strategy-stats-content{padding:2rem}.strategy-grid{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:1.5rem;gap:1.5rem}.strategy-item{border:1px solid #eee;border-radius:.5rem;padding:1rem;height:100%}[data-theme=dark] .strategy-item{border:1px solid #424242}.strategy-name{font-weight:500;margin-bottom:.25rem}.strategy-description{margin-bottom:.75rem}.progress-container{margin-bottom:.5rem}.attack-stats,.fail-rate{text-align:right}.attack-stats{display:block}.pass-high{color:green!important}.pass-medium{color:#cb8503!important}.pass-low,.vuln-critical{color:red!important}.vuln-critical{font-weight:700!important}.vuln-high{color:red!important}.vuln-medium{color:#cb8503!important}.vuln-low{color:green!important}.report-header{padding:24px;border-radius:12px;box-shadow:0 4px 6px rgba(0,0,0,.1)}[data-theme=dark] .report-header{box-shadow:none}.report-details{display:flex;flex-wrap:wrap;gap:12px}.report-details .MuiChip-root{font-size:.875rem}
|
/package/dist/src/web/nextui/_next/static/chunks/{258-357fc3bb3dc6fdfc.js → 258-eb5cfd6f30e0cdfd.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|