apitestcenter 0.18.1 → 0.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/THIRD-PARTY-NOTICES-UI.txt +11 -11
- package/dist/THIRD-PARTY-NOTICES.txt +6 -6
- package/dist/cli.mjs +600 -593
- package/dist/ui/404/index.html +1 -1
- package/dist/ui/404.html +1 -1
- package/dist/ui/__next.__PAGE__.txt +32 -21
- package/dist/ui/__next._full.txt +29 -18
- package/dist/ui/__next._tree.txt +5 -4
- package/dist/ui/_next/static/chunks/0-zga2d528cxt.js +50 -0
- package/dist/ui/_next/static/chunks/03ligbvtk7nsc.js +123 -0
- package/dist/ui/_next/static/chunks/03y58w9gmwqc-.js +50 -0
- package/dist/ui/_next/static/chunks/08rlo-0gnct9m.js +50 -0
- package/dist/ui/_next/static/chunks/0bgmfb8f3pd8e.js +1 -0
- package/dist/ui/_next/static/chunks/0g9k0swrer6i5.js +1 -0
- package/dist/ui/_next/static/chunks/0q8iq_7i4ohjr.js +50 -0
- package/dist/ui/_next/static/chunks/1-t79a3q7gmjn.js +31 -0
- package/dist/ui/_next/static/chunks/12whdxhkvkd-y.js +1 -0
- package/dist/ui/_next/static/chunks/14dtemzsvcfmn.js +50 -0
- package/dist/ui/_next/static/chunks/1snbdq1z951ks.js +906 -0
- package/dist/ui/_next/static/chunks/20j4wusnbtqa2.js +4 -0
- package/dist/ui/_next/static/chunks/243c1-49gb3pr.js +1 -0
- package/dist/ui/_next/static/chunks/{109szqnizl8c5.css → 2sjog4to0fmbb.css} +3 -3
- package/dist/ui/_next/static/chunks/2sr5dm3__ghgo.js +27 -0
- package/dist/ui/_next/static/chunks/2su0ql-zu4q0_.js +3 -0
- package/dist/ui/_next/static/chunks/3-rdixjnndtyk.js +51 -0
- package/dist/ui/_next/static/chunks/32_tmz8ibsdo3.js +22 -0
- package/dist/ui/_next/static/chunks/3eti_s9gpiis0.js +2 -0
- package/dist/ui/_next/static/chunks/3wtqdtu331_vc.js +50 -0
- package/dist/ui/_next/static/chunks/3wzu1zkfqdmn6.js +2 -0
- package/dist/ui/_next/static/chunks/turbopack-3-ry682tkyiqk.js +1 -0
- package/dist/ui/_not-found/__next._full.txt +25 -17
- package/dist/ui/_not-found/__next._not-found.__PAGE__.txt +28 -20
- package/dist/ui/_not-found/__next._tree.txt +4 -2
- package/dist/ui/_not-found/index.html +1 -1
- package/dist/ui/_not-found/index.txt +25 -17
- package/dist/ui/compare/__next._full.txt +32 -20
- package/dist/ui/compare/__next._tree.txt +6 -4
- package/dist/ui/compare/__next.compare.__PAGE__.txt +36 -24
- package/dist/ui/compare/index.html +1 -1
- package/dist/ui/compare/index.txt +32 -20
- package/dist/ui/connections/__next._full.txt +30 -20
- package/dist/ui/connections/__next._tree.txt +6 -4
- package/dist/ui/connections/__next.connections.__PAGE__.txt +34 -24
- package/dist/ui/connections/index.html +2 -2
- package/dist/ui/connections/index.txt +30 -20
- package/dist/ui/history/__next._full.txt +35 -23
- package/dist/ui/history/__next._tree.txt +6 -4
- package/dist/ui/history/__next.history.__PAGE__.txt +39 -27
- package/dist/ui/history/index.html +1 -1
- package/dist/ui/history/index.txt +35 -23
- package/dist/ui/home/__next._full.txt +32 -20
- package/dist/ui/home/__next._tree.txt +6 -4
- package/dist/ui/home/__next.home.__PAGE__.txt +36 -24
- package/dist/ui/home/index.html +1 -1
- package/dist/ui/home/index.txt +32 -20
- package/dist/ui/index.html +1 -1
- package/dist/ui/index.txt +29 -18
- package/dist/ui/preview/__next._full.txt +33 -23
- package/dist/ui/preview/__next._tree.txt +6 -4
- package/dist/ui/preview/__next.preview.__PAGE__.txt +37 -27
- package/dist/ui/preview/index.html +1 -1
- package/dist/ui/preview/index.txt +33 -23
- package/dist/ui/suite/__next._full.txt +29 -20
- package/dist/ui/suite/__next._tree.txt +6 -4
- package/dist/ui/suite/__next.suite.__PAGE__.txt +33 -24
- package/dist/ui/suite/index.html +1 -1
- package/dist/ui/suite/index.txt +29 -20
- package/dist/ui/tests/__next._full.txt +28 -20
- package/dist/ui/tests/__next._tree.txt +6 -4
- package/dist/ui/tests/__next.tests.__PAGE__.txt +32 -24
- package/dist/ui/tests/index.html +1 -1
- package/dist/ui/tests/index.txt +28 -20
- package/package.json +1 -1
- package/dist/ui/_next/static/chunks/01sqehfan_2j_.js +0 -1
- package/dist/ui/_next/static/chunks/036rg3itpc5ge.js +0 -50
- package/dist/ui/_next/static/chunks/0e8f1i6w6dqos.js +0 -50
- package/dist/ui/_next/static/chunks/0hvubzjy33qo9.js +0 -2
- package/dist/ui/_next/static/chunks/0ktc3lx37s0t5.js +0 -4
- package/dist/ui/_next/static/chunks/0wrod6xlhsv0m.js +0 -3
- package/dist/ui/_next/static/chunks/1-d6f0jo8p7jc.js +0 -913
- package/dist/ui/_next/static/chunks/15pu58j0qz9i8.js +0 -31
- package/dist/ui/_next/static/chunks/1af6jzcoirzrb.js +0 -27
- package/dist/ui/_next/static/chunks/1apjslkz52j1a.js +0 -22
- package/dist/ui/_next/static/chunks/1pz4ugabfd0qn.js +0 -1
- package/dist/ui/_next/static/chunks/1t823xy7gguwx.js +0 -1
- package/dist/ui/_next/static/chunks/23_x0u07xh89v.js +0 -123
- package/dist/ui/_next/static/chunks/2aifruy-vhchn.js +0 -50
- package/dist/ui/_next/static/chunks/2t65s4y0z2a60.js +0 -50
- package/dist/ui/_next/static/chunks/33kvaxr7qvnue.js +0 -50
- package/dist/ui/_next/static/chunks/366zannfx6qet.js +0 -1
- package/dist/ui/_next/static/chunks/36wzwezwmtzq7.js +0 -51
- package/dist/ui/_next/static/chunks/3n2xlaj16gyb-.js +0 -2
- package/dist/ui/_next/static/chunks/3vso5wrs90xx-.js +0 -50
- package/dist/ui/_next/static/chunks/turbopack-2qka98q_-4ca1.js +0 -1
- /package/dist/ui/_next/static/{-I9ZGWDULRW2FcJsZc5oY → lomhkNrlljr9WxdUu6_Mc}/_buildManifest.js +0 -0
- /package/dist/ui/_next/static/{-I9ZGWDULRW2FcJsZc5oY → lomhkNrlljr9WxdUu6_Mc}/_clientMiddlewareManifest.js +0 -0
- /package/dist/ui/_next/static/{-I9ZGWDULRW2FcJsZc5oY → lomhkNrlljr9WxdUu6_Mc}/_ssgManifest.js +0 -0
- /package/dist/ui/_next/static/media/{8a480f0b521d4e75-s.1qq4vpdcun5oj.woff2 → 07935285219a259d-s.1qq4vpdcun5oj.woff2} +0 -0
- /package/dist/ui/_next/static/media/{797e433ab948586e-s.p.0r6juujl39pe6.woff2 → 07a39a8a4660cc7c-s.p.0r6juujl39pe6.woff2} +0 -0
- /package/dist/ui/_next/static/media/{bbc41e54d2fcbd21-s.1rgnod-3esatf.woff2 → 2a04751c893bf294-s.1rgnod-3esatf.woff2} +0 -0
- /package/dist/ui/_next/static/media/{6306c77e7c8268e4-s.2dbetqa9o8jxf.woff2 → 2bb852295097cd96-s.2dbetqa9o8jxf.woff2} +0 -0
- /package/dist/ui/_next/static/media/{fef07dbb0973bf53-s.3p2_lha1f2xer.woff2 → 4f6667dd39116621-s.3p2_lha1f2xer.woff2} +0 -0
- /package/dist/ui/_next/static/media/{caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2 → 605ce01b664af129-s.p.0wgildi0cnwt9.woff2} +0 -0
- /package/dist/ui/_next/static/media/{4fa387ec64143e14-s.2tuy5pz7dlieh.woff2 → 6e342921ee4dcd9d-s.2tuy5pz7dlieh.woff2} +0 -0
- /package/dist/ui/_next/static/media/{7178b3e590c64307-s.21jp631_3pja2.woff2 → 77814b00d5ca94a4-s.21jp631_3pja2.woff2} +0 -0
- /package/dist/ui/_next/static/media/{7d817b4c03b0c5f1-s.1uyisp29ctx0d.woff2 → 9eb5a876700c0028-s.1uyisp29ctx0d.woff2} +0 -0
- /package/dist/ui/_next/static/media/{5ce348bf30bf5439-s.31988l_ccedte.woff2 → b0c6b664fd57c2c6-s.31988l_ccedte.woff2} +0 -0
- /package/dist/ui/_next/static/media/{53b9e256198e5412-s.390ncx5urfkfu.woff2 → f58031ded4338640-s.390ncx5urfkfu.woff2} +0 -0
package/dist/ui/tests/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/
|
|
1
|
+
<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/1-t79a3q7gmjn.js"/><script src="/_next/static/chunks/12whdxhkvkd-y.js" async=""></script><script src="/_next/static/chunks/243c1-49gb3pr.js" async=""></script><script src="/_next/static/chunks/32_tmz8ibsdo3.js" async=""></script><script src="/_next/static/chunks/turbopack-3-ry682tkyiqk.js" async=""></script><title>APITestCenter</title><meta name="description" content="Test APIs and performance test them, on your own computer."/><link rel="icon" href="/favicon.ico?favicon.0pwkek30ie1za.ico" sizes="48x48" type="image/x-icon"/><link rel="icon" href="/icon.png?icon.3k806k9hro987.png" sizes="512x512" type="image/png"/><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/1-t79a3q7gmjn.js","static/chunks/12whdxhkvkd-y.js","static/chunks/243c1-49gb3pr.js","static/chunks/32_tmz8ibsdo3.js"],"runtimeModuleIds":[47942]});</script><script src="/_next/static/chunks/1-t79a3q7gmjn.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/0g9k0swrer6i5.js\"\n3:\"/_next/static/chunks/0bgmfb8f3pd8e.js\"\n4:\"/_next/static/chunks/2sr5dm3__ghgo.js\"\n5:\"/_next/static/chunks/1snbdq1z951ks.js\"\n6:I[87329,[\"$2\",\"$3\",\"$4\",\"$5\"],\"Providers\"]\n7:I[60459,[\"$2\",\"$3\",\"$4\",\"$5\"],\"AppShell\"]\n8:I[80474,[\"$2\",\"$3\",\"$4\",\"$5\"],\"default\"]\n9:I[2236,[\"$2\",\"$3\",\"$4\",\"$5\"],\"default\"]\ne:I[88987,[\"$2\",\"$3\",\"$4\",\"$5\"],\"OutletBoundary\"]\nf:\"$Sreact.suspense\"\n11:\"ViewportBoundary\"\n12:I[88987,[\"$2\",\"$3\",\"$4\",\"$5\"],\"$11\"]\n14:\"MetadataBoundary\"\n15:I[88987,[\"$2\",\"$3\",\"$4\",\"$5\"],\"$14\"]\n17:I[50965,[\"$2\",\"$3\",\"$4\",\"$5\"],\"default\",1]\n:HL[\"/_next/static/chunks/2sjog4to0fmbb.css\",\"style\"]\n:HL[\"/_next/static/media/07a39a8a4660cc7c-s.p.0r6juujl39pe6.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/605ce01b664af129-s.p.0wgildi0cnwt9.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\nb:X\nc:[[\"children\",{\"s\":\"__PAGE__\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[\"$Ld\",null,[\"$\",\"$Le\",null,{\"children\":[\"$\",\"$f\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@10\"}]}]]}],\"p\":false,\"v\":null}}]]\na:[[\"children\",{\"s\":\"tests\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$b\"},\"c\":\"$Qc\"}]]\n0:{\"P\":null,\"c\":[\"\",\"tests\",\"\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2sjog4to0fmbb.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0g9k0swrer6i5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/0bgmfb8f3pd8e.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/2sr5dm3__ghgo.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/1snbdq1z951ks.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"h-full HSxXEW_variable _2UZmra_variable\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"className\":\"h-full font-sans antialiased\",\"children\":[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]]}],\"p\":false,\"v\":null},\"c\":\"$Qa\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L12\",null,{\"children\":\"$L13\"}],[\"$\",\"$L15\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$f\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L16\"}]}],null]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$17\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2sjog4to0fmbb.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"lomhkNrlljr9WxdUu6_Mc\"}\nd:E{\"digest\":\"NEXT_REDIRECT;replace;/;307;\"}\nb:C\n13:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n18:I[64052,[\"$2\",\"$3\",\"$4\",\"$5\"],\"IconMark\"]\n10:null\n16:[[\"$\",\"title\",\"0\",{\"children\":\"APITestCenter\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Test APIs and performance test them, on your own computer.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0pwkek30ie1za.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"/icon.png?icon.3k806k9hro987.png\",\"sizes\":\"512x512\",\"type\":\"image/png\"}],[\"$\",\"$L18\",\"4\",{}]]\n"])</script></body></html>
|
package/dist/ui/tests/index.txt
CHANGED
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:
|
|
3
|
-
3:
|
|
4
|
-
4:
|
|
5
|
-
5:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
:
|
|
12
|
-
:
|
|
13
|
-
:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
2:"/_next/static/chunks/0g9k0swrer6i5.js"
|
|
3
|
+
3:"/_next/static/chunks/0bgmfb8f3pd8e.js"
|
|
4
|
+
4:"/_next/static/chunks/2sr5dm3__ghgo.js"
|
|
5
|
+
5:"/_next/static/chunks/1snbdq1z951ks.js"
|
|
6
|
+
6:I[87329,["$2","$3","$4","$5"],"Providers"]
|
|
7
|
+
7:I[60459,["$2","$3","$4","$5"],"AppShell"]
|
|
8
|
+
8:I[80474,["$2","$3","$4","$5"],"default"]
|
|
9
|
+
9:I[2236,["$2","$3","$4","$5"],"default"]
|
|
10
|
+
e:I[88987,["$2","$3","$4","$5"],"OutletBoundary"]
|
|
11
|
+
f:"$Sreact.suspense"
|
|
12
|
+
11:"ViewportBoundary"
|
|
13
|
+
12:I[88987,["$2","$3","$4","$5"],"$11"]
|
|
14
|
+
14:"MetadataBoundary"
|
|
15
|
+
15:I[88987,["$2","$3","$4","$5"],"$14"]
|
|
16
|
+
17:I[50965,["$2","$3","$4","$5"],"default",1]
|
|
17
|
+
:HL["/_next/static/chunks/2sjog4to0fmbb.css","style"]
|
|
18
|
+
:HL["/_next/static/media/07a39a8a4660cc7c-s.p.0r6juujl39pe6.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
19
|
+
:HL["/_next/static/media/605ce01b664af129-s.p.0wgildi0cnwt9.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
20
|
+
b:X
|
|
21
|
+
c:[["children",{"s":"__PAGE__","h":512,"d":{"r":["$","$1","c",{"children":["$Ld",null,["$","$Le",null,{"children":["$","$f",null,{"name":"Next.MetadataOutlet","children":"$@10"}]}]]}],"p":false,"v":null}}]]
|
|
22
|
+
a:[["children",{"s":"tests","h":512,"d":{"r":["$","$1","c",{"children":[null,["$","$L8",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L9",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],"p":false,"v":"$b"},"c":"$Qc"}]]
|
|
23
|
+
0:{"P":null,"c":["","tests",""],"q":"","i":false,"t":{"t":{"s":"","h":528,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2sjog4to0fmbb.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0g9k0swrer6i5.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/0bgmfb8f3pd8e.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/2sr5dm3__ghgo.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/1snbdq1z951ks.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","className":"h-full HSxXEW_variable _2UZmra_variable","suppressHydrationWarning":true,"children":["$","body",null,{"className":"h-full font-sans antialiased","children":["$","$L6",null,{"children":["$","$L7",null,{"children":["$","$L8",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L9",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]]}],"p":false,"v":null},"c":"$Qa"},"h":{"r":["$","$1","h",{"children":[null,["$","$L12",null,{"children":"$L13"}],["$","$L15",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$f",null,{"name":"Next.Metadata","children":"$L16"}]}],null]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"p":false,"v":null}},"m":"$undefined","G":["$17",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2sjog4to0fmbb.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"lomhkNrlljr9WxdUu6_Mc"}
|
|
24
|
+
d:E{"digest":"NEXT_REDIRECT;replace;/;307;"}
|
|
25
|
+
b:C
|
|
26
|
+
13:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
27
|
+
18:I[64052,["$2","$3","$4","$5"],"IconMark"]
|
|
28
|
+
10:null
|
|
29
|
+
16:[["$","title","0",{"children":"APITestCenter"}],["$","meta","1",{"name":"description","content":"Test APIs and performance test them, on your own computer."}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.0pwkek30ie1za.ico","sizes":"48x48","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"/icon.png?icon.3k806k9hro987.png","sizes":"512x512","type":"image/png"}],["$","$L18","4",{}]]
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,30991,(e,t,r)=>{"use strict";e.i(30204),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useRouterBFCache",{enumerable:!0,get:function(){return l}});let n=e.r(99181);function l(e,t,r){let[l,u]=(0,n.useState)(()=>({tree:e,cacheNode:t,stateKey:r,next:null}));if(l.tree===e)return l;let a={tree:e,cacheNode:t,stateKey:r,next:null},o=1,d=l,s=a;for(;null!==d&&o<1;){if(d.stateKey===r){s.next=d.next;break}{o++;let e={tree:d.tree,cacheNode:d.cacheNode,stateKey:d.stateKey,next:null};s.next=e,s=e}d=d.next}return u(a),a}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},9239,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ClientPageRoot",{enumerable:!0,get:function(){return s}});let n=e.r(14368),l=e.r(64937),u=e.r(99181),a=e.r(54692),o=e.r(94123),d=e.r(6826);function s({Component:e,serverProvidedParams:t}){let r,i;if(null!==t)r=t.searchParams,i=t.params;else{let e=(0,u.use)(l.LayoutRouterContext);i=null!==e?e.parentParams:{},r=(0,a.urlSearchParamsToParsedUrlQuery)((0,u.use)(o.SearchParamsContext))}let c=(0,d.createClientSearchParams)(r),f=(0,d.createClientParams)(i);return(0,n.jsx)(e,{params:f,searchParams:c})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},59074,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ClientSegmentRoot",{enumerable:!0,get:function(){return o}});let n=e.r(14368),l=e.r(64937),u=e.r(99181),a=e.r(6826);function o({Component:e,slots:t,serverProvidedParams:r}){let d;if(null!==r)d=r.params;else{let e=(0,u.use)(l.LayoutRouterContext);d=null!==e?e.parentParams:{}}let s=(0,a.createClientParams)(d);return(0,n.jsx)(e,{...t,params:s})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},81165,(e,t,r)=>{"use strict";e.i(30204),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"HTTPAccessFallbackBoundary",{enumerable:!0,get:function(){return i}});let n=e.r(56421),l=e.r(14368),u=n._(e.r(99181)),a=e.r(65509),o=e.r(37391),d=e.r(64937);class s extends u.default.Component{constructor(e){super(e),this.state={triggeredStatus:void 0,previousPathname:e.pathname}}componentDidCatch(){}static getDerivedStateFromError(e){if((0,o.isHTTPAccessFallbackError)(e))return{triggeredStatus:(0,o.getAccessFallbackHTTPStatus)(e)};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.triggeredStatus?{triggeredStatus:void 0,previousPathname:e.pathname}:{triggeredStatus:t.triggeredStatus,previousPathname:e.pathname}}render(){let{notFound:e,forbidden:t,unauthorized:r,children:n}=this.props,{triggeredStatus:u}=this.state,a={[o.HTTPAccessErrorStatus.NOT_FOUND]:e,[o.HTTPAccessErrorStatus.FORBIDDEN]:t,[o.HTTPAccessErrorStatus.UNAUTHORIZED]:r};if(u){let d=u===o.HTTPAccessErrorStatus.NOT_FOUND&&e,s=u===o.HTTPAccessErrorStatus.FORBIDDEN&&t,i=u===o.HTTPAccessErrorStatus.UNAUTHORIZED&&r;return d||s||i?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("meta",{name:"robots",content:"noindex"}),!1,a[u]]}):n}return n}}function i({notFound:e,forbidden:t,unauthorized:r,children:n}){let o=(0,a.useUntrackedPathname)(),c=(0,u.useContext)(d.MissingSlotContext);return e||t||r?(0,l.jsx)(s,{pathname:o,notFound:e,forbidden:t,unauthorized:r,missingSlots:c,children:n}):(0,l.jsx)(l.Fragment,{children:n})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},87300,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={InstantValidationBoundaryContext:function(){return u},PlaceValidationBoundaryBelowThisLevel:function(){return a},RenderValidationBoundaryAtThisLevel:function(){return o},SlotMarker:function(){return d}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let u=null,a=null,o=null,d=null;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},8253,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={InstantValidationBoundaryContext:function(){return u.InstantValidationBoundaryContext},PlaceValidationBoundaryBelowThisLevel:function(){return u.PlaceValidationBoundaryBelowThisLevel},RenderValidationBoundaryAtThisLevel:function(){return u.RenderValidationBoundaryAtThisLevel},SlotMarker:function(){return u.SlotMarker}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let u=e.r(87300);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},47025,(e,t,r)=>{"use strict";e.i(30204),Object.defineProperty(r,"__esModule",{value:!0});var n={LoadingBoundaryProvider:function(){return C},default:function(){return T}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let u=e.r(36437),a=e.r(56421),o=e.r(14368),d=a._(e.r(99181)),s=u._(e.r(68820)),i=e.r(64937),c=e.r(94384),f=e.r(57781),p=e.r(9235),y=e.r(69311),m=e.r(81165);e.r(8253);let b=e.r(25796),_=e.r(30991);e.r(52675);let h=e.r(94123),P=e.r(54692),v=e.r(20592);s.default.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(e,t,r){let n=e.getClientRects();if(0===n.length)return 0;let l=1/0;for(let e=0;e<n.length;e++){let t=n[e];t.top<l&&(l=t.top)}return l>=r()&&l<=t?1:2}d.default.Component;let j=function(e){let t=d.default.useRef(null);return(0,d.useLayoutEffect)(()=>{let{focusAndScrollRef:r,cacheNode:n}=e,l=r.forceScroll?r.scrollRef:n.scrollRef;if(null===l||!l.current)return;let u=null,a=r.hashFragment;if(a){var o;if(null===(u="top"===(o=a)?document.body:document.getElementById(o)??document.getElementsByName(o)[0]??null)){l.current=!1,r.onlyHashChange=!1,r.hashFragment=null;return}}else u=t.current;if(null===u)return;let d=!1;(0,p.disableSmoothScrollDuringRouteTransition)(()=>{let e=document.documentElement,t=null,r=null,n=null,o=()=>{var r,l;let u,a;return null===n&&(r=e,l=t,n=!Number.isFinite(a=Number.parseFloat(u=getComputedStyle(r).scrollPaddingTop))||a<0?0:u.endsWith("px")?a:u.endsWith("%")?a/100*l:0),n};(a||(t=e.clientHeight,0!==(r=g(u,t,o))))&&((d=!0,l.current=!1,a)?u.scrollIntoView():1!==r&&(e.scrollTop=0,2===g(u,t,o)&&u.scrollIntoView()))},{dontForceLayout:!0,onlyHashChange:r.onlyHashChange}),d&&(r.onlyHashChange=!1,r.hashFragment=null)},void 0),(0,o.jsx)(d.Fragment,{ref:t,children:e.children})};function O({children:e,cacheNode:t}){let r=(0,d.useContext)(i.GlobalLayoutRouterContext);if(!r)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});return(0,o.jsx)(j,{focusAndScrollRef:r.focusAndScrollRef,cacheNode:t,children:e})}function x({tree:e,segmentPath:t,debugNameContext:r,cacheNode:n,params:l,url:u,isActive:a}){let s,f=(0,d.useContext)(i.GlobalLayoutRouterContext);if((0,d.useContext)(h.NavigationPromisesContext),!f)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});let p=null!==n?n:(0,d.use)(c.unresolvedThenable),y=null!==p.prefetchRsc?p.prefetchRsc:p.rsc,m=(0,d.useDeferredValue)(p.rsc,y);if((0,v.isDeferredRsc)(m)){let e=(0,d.use)(m);null===e&&(0,d.use)(c.unresolvedThenable),s=e}else null===m&&(0,d.use)(c.unresolvedThenable),s=m;let b=s;return(0,o.jsx)(i.LayoutRouterContext.Provider,{value:{parentTree:e,parentCacheNode:p,parentSegmentPath:t,parentParams:l,parentLoadingData:null,debugNameContext:r,url:u,isActive:a},children:b})}function C({loading:e,children:t}){let r=(0,d.use)(i.LayoutRouterContext);return null===r?t:(0,o.jsx)(i.LayoutRouterContext.Provider,{value:{parentTree:r.parentTree,parentCacheNode:r.parentCacheNode,parentSegmentPath:r.parentSegmentPath,parentParams:r.parentParams,parentLoadingData:e,debugNameContext:r.debugNameContext,url:r.url,isActive:r.isActive},children:t})}function R({name:e,loading:t,children:r}){if(null!==t){let n=t[0],l=t[1],u=t[2];return(0,o.jsx)(d.Suspense,{name:e,fallback:(0,o.jsxs)(o.Fragment,{children:[l,u,n]}),children:r})}return(0,o.jsx)(o.Fragment,{children:r})}function T({parallelRouterKey:e,error:t,errorStyles:r,errorScripts:n,templateStyles:l,templateScripts:u,template:a,notFound:s,forbidden:p,unauthorized:h,segmentViewBoundaries:v}){let g=(0,d.useContext)(i.LayoutRouterContext);if(!g)throw Object.defineProperty(Error("invariant expected layout router to be mounted"),"__NEXT_ERROR_CODE",{value:"E56",enumerable:!1,configurable:!0});let{parentTree:j,parentCacheNode:C,parentSegmentPath:S,parentParams:M,parentLoadingData:E,url:N,isActive:F,debugNameContext:A}=g,B=j[0],D=null===S?[e]:S.concat([B,e]),L=j[1][e],H=C.slots;(void 0===L||null===H)&&(0,d.use)(c.unresolvedThenable);let w=L[0],k=H[e]??null,U=(0,b.createRouterCacheKey)(w,!0),V=(0,_.useRouterBFCache)(L,k,U),I=[];do{let e=V.tree,d=V.cacheNode,c=V.stateKey,b=e[0],_=M;if(Array.isArray(b)){let e=b[0],t=b[1],r=b[2],n=(0,P.getParamValueFromCacheKey)(t,r);null!==n&&(_={...M,[e]:n})}let v=function(e){if("/"===e)return"/";if("string"==typeof e)if("(__SLOT__)"===e)return;else return e+"/";return e[1]+"/"}(b),g=v??A,j=void 0===v?void 0:A,C=(0,o.jsxs)(O,{cacheNode:d,children:[(0,o.jsx)(f.ErrorBoundary,{errorComponent:t,errorStyles:r,errorScripts:n,children:(0,o.jsx)(R,{name:j,loading:E,children:(0,o.jsx)(m.HTTPAccessFallbackBoundary,{notFound:s,forbidden:p,unauthorized:h,children:(0,o.jsxs)(y.RedirectBoundary,{children:[(0,o.jsx)(x,{url:N,tree:e,params:_,cacheNode:d,segmentPath:D,debugNameContext:g,isActive:F&&c===U}),null]})})})}),null]}),T=(0,o.jsxs)(i.TemplateContext.Provider,{value:C,children:[l,u,a]},c);I.push(T),V=V.next}while(null!==V)return I}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},20178,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return o}});let n=e.r(56421),l=e.r(14368),u=n._(e.r(99181)),a=e.r(64937);function o(){let e=(0,u.useContext)(a.TemplateContext);return(0,l.jsx)(l.Fragment,{children:e})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},96566,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderParamsFromClient",{enumerable:!0,get:function(){return l}});let n=new WeakMap;function l(e){let t=n.get(e);if(t)return t;let r=Promise.resolve(e);return n.set(e,r),r}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},73616,(e,t,r)=>{"use strict";e.i(30204),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderParamsFromClient",{enumerable:!0,get:function(){return n}});let n=e.r(96566).createRenderParamsFromClient;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},9355,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return l}});let n=new WeakMap;function l(e){let t=n.get(e);if(t)return t;let r=Promise.resolve(e);return n.set(e,r),r}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},75412,(e,t,r)=>{"use strict";e.i(30204),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return n}});let n=e.r(9355).createRenderSearchParamsFromClient;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},6826,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createClientParams:function(){return u.createRenderParamsFromClient},createClientSearchParams:function(){return a.createRenderSearchParamsFromClient}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let u=e.r(73616),a=e.r(75412);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},75484,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"IconMark",{enumerable:!0,get:function(){return l}});let n=e.r(14368),l=()=>"u">typeof window?null:(0,n.jsx)("meta",{name:"«nxt-icon»"})},9235,(e,t,r)=>{"use strict";function n(e,t={}){if(t.onlyHashChange)return void e();let r=document.documentElement;if("smooth"!==r.dataset.scrollBehavior)return void e();let l=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=l}e.i(30204),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"disableSmoothScrollDuringRouteTransition",{enumerable:!0,get:function(){return n}})}]);
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,92016,e=>{"use strict";var t=e.i(14368);e.i(24856);var n=e.i(2385),s=e.i(42447),r=e.i(67938),a=e.i(84355),l=e.i(20621),i=e.i(99522);let o=(0,i.default)("git-branch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);var c=e.i(30197),d=e.i(27813),u=e.i(81538),p=e.i(13163),m=e.i(71189),h=e.i(96659);let f=(0,i.default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);var x=e.i(30099),y=e.i(36994),v=e.i(99181),b=e.i(6980),g=e.i(839),w=e.i(39170),k=e.i(37837),j=e.i(17847),N=e.i(56396),S=e.i(67217),C=e.i(44505),$=e.i(20054),M=e.i(19656),F=e.i(59180),I=e.i(30635),T=e.i(88153);function _({project:e,onOpen:n,onRename:s,onRemove:r,onDelete:a}){let[l,i]=(0,v.useState)(!1),[d,m]=(0,v.useState)(!1),f=(0,v.useRef)(null);return(0,t.jsxs)("div",{className:`group relative flex h-full flex-col gap-3 rounded-xl border p-4 ${e.current?"border-accent/60 bg-accent-dim/40":"border-line bg-panel hover:border-mute"}`,children:[(0,t.jsxs)("button",{type:"button",onClick:n,className:"flex flex-col gap-3 text-left","aria-label":e.current?`Go to ${e.name} (in use)`:`Open ${e.name}`,children:[(0,t.jsxs)("span",{className:"flex items-center gap-3 pr-8",children:[(0,t.jsx)("span",{className:"grid h-9 w-9 shrink-0 place-items-center rounded-lg text-sm font-bold text-[#10140a]",style:{background:(0,I.projectTile)(e.id)},"aria-hidden":!0,children:e.name.slice(0,1).toUpperCase()}),(0,t.jsxs)("span",{className:"min-w-0",children:[d?null:(0,t.jsx)("span",{className:"block truncate text-[15px] font-semibold text-ink",children:e.name}),(0,t.jsx)("span",{className:"block truncate font-mono text-[11px] text-mute",title:e.path,children:e.path})]})]}),(0,t.jsx)("span",{className:"flex flex-wrap gap-x-3 gap-y-1 text-xs text-mute",children:e.exists?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{children:[e.requests," request",1===e.requests?"":"s"]}),(0,t.jsxs)("span",{children:[e.environments," environment",1===e.environments?"":"s"]})]}):(0,t.jsx)("span",{className:"text-bad",children:"Folder not found"})}),(0,t.jsxs)("span",{className:"flex items-center gap-2 border-t border-line pt-3 text-xs",children:[e.current?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 font-medium text-accent",children:[(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-accent","aria-hidden":!0})," In use"]}):(0,t.jsx)("span",{className:"text-mute",children:function(e){if(!e)return"Not opened yet";let t=Math.round((Date.now()-Date.parse(e))/6e4);if(t<60)return t<2?"Opened just now":`Opened ${t} minutes ago`;let n=Math.round(t/60);if(n<24)return`Opened ${n} hour${1===n?"":"s"} ago`;let s=Math.round(n/24);return 1===s?"Opened yesterday":`Opened ${s} days ago`}(e.lastOpenedAt)}),e.git?(0,t.jsxs)("span",{className:"ml-auto inline-flex items-center gap-1 font-mono text-[11px] text-mute",children:[(0,t.jsx)(o,{size:11,"aria-hidden":!0})," ",e.git]}):null]})]}),d?(0,t.jsx)("input",{autoFocus:!0,defaultValue:e.name,"aria-label":`New name for ${e.name}`,className:"input absolute top-4 right-10 left-16 py-1 text-sm",onKeyDown:e=>{"Enter"===e.key&&(s?.(e.target.value),m(!1)),"Escape"===e.key&&m(!1)},onBlur:e=>{s?.(e.target.value),m(!1)}}):null,s||r||a?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{ref:f,type:"button","aria-label":`Actions for ${e.name}`,"aria-haspopup":"menu","aria-expanded":l,onClick:()=>i(e=>!e),className:"absolute top-3 right-3 rounded p-1 text-mute opacity-0 group-hover:opacity-100 hover:text-ink focus:opacity-100",children:(0,t.jsx)(u.MoreHorizontal,{size:15})}),(0,t.jsx)(k.Popover,{anchor:f,open:l,onClose:()=>i(!1),label:`Actions for ${e.name}`,width:200,role:"menu",children:(0,t.jsxs)("div",{className:"-m-2",children:[s?(0,t.jsx)(j.MenuItem,{icon:p.Pencil,label:"Rename",onSelect:()=>(i(!1),m(!0))}):null,r?(0,t.jsx)(j.MenuItem,{icon:c.ListX,label:"Take off the list",onSelect:()=>(i(!1),r())}):null,a?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.MenuSeparator,{}),(0,t.jsx)(j.MenuItem,{icon:h.Trash2,label:"Delete project…",danger:!0,onSelect:()=>(i(!1),a())})]}):null]})})]}):null]})}function E({href:e,onClick:n,icon:s,title:r,body:a}){let l=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-accent",children:s}),(0,t.jsx)("span",{className:"text-sm font-semibold text-ink",children:r}),(0,t.jsx)("span",{className:"text-xs text-mute",children:a})]}),i="flex h-full flex-col gap-1.5 rounded-xl border border-line bg-panel p-4 text-left hover:border-mute";return e?(0,t.jsx)(x.default,{href:e,className:i,children:l}):(0,t.jsx)("button",{type:"button",onClick:n,className:i,children:l})}e.s(["HomePage",0,function(){let e=(0,N.useToast)(),i=(0,w.useConfirm)(),{slo:o}=(0,T.useSlo)(),{dataDir:c}=(0,$.useEngineHealth)(),{projects:u,refresh:p,supported:h}=(0,I.useProjects)(),{index:k}=(0,F.useHistory)(),[j,R]=(0,v.useState)(!1),[A,L]=(0,v.useState)(""),[P,O]=(0,v.useState)(null),[z,q]=(0,v.useState)(null),D=(0,C.desktop)()?.projects,U=(0,y.useRouter)();async function H(t){return t.current?U.push("/"):D?t.exists?void(q(t.name),!await D.open(t.id).catch(()=>!1)&&(q(null),e(`Could not open “${t.name}”`,"error"))):e(`The folder for “${t.name}” isn't there any more: ${t.path}`,"error"):void 0}async function B(){if(!D||!A.trim())return;let t=await D.add({name:A.trim(),folder:P??void 0}).catch(()=>null);if(!t)return e("Could not make the project","error");R(!1),L(""),O(null),await p();let n=(await D.list()).find(e=>e.id===t.id);n&&await H(n)}async function V(){if(!D)return;let e=await D.chooseFolder("open");if(!e)return;let t=await D.add({folder:e});await p();let n=t?(await D.list()).find(e=>e.id===t.id):void 0;n&&await H(n)}async function W(e){!D||await i({title:`Take “${e.name}” off the list?`,body:`Its folder and files stay where they are (${e.path}). Open the folder again to bring it back.`,confirmLabel:"Take off the list"})&&(await D.remove(e.id),await p())}async function X(n){if(!D||!await i({title:`Delete the project “${n.name}”?`,body:(0,t.jsxs)(t.Fragment,{children:["Its requests, environments, history, versions and Trash go to the Recycle Bin, so you can still get them back from there. Anything else in"," ",(0,t.jsx)("span",{className:"font-mono text-ink",children:n.path})," is left alone.",n.current?" The app switches to My workspace first.":""]}),confirmLabel:"Delete project",tone:"danger"}))return;n.current&&q("My workspace");let s=await D.delete(n.id).catch(()=>({ok:!1,keptOthers:!1}));if(!s.ok)return q(null),e(`Could not delete “${n.name}”`,"error");e(s.keptOthers?`Deleted “${n.name}” — the folder's other files were kept`:`Deleted “${n.name}” — it's in the Recycle Bin`,"success"),await p()}async function K(e,t){D&&t.trim()&&t.trim()!==e.name&&(await D.rename(e.id,t.trim()),await p())}let J=(k?.runs??[]).slice().sort((e,t)=>t.startedAt.localeCompare(e.startedAt)).slice(0,6);return(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto",children:[z?(0,t.jsx)("div",{role:"status",className:"fixed inset-0 z-[80] grid place-items-center bg-canvas/80 backdrop-blur-sm",children:(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-ink",children:[(0,t.jsx)(d.Loader2,{size:16,className:"animate-spin"})," Opening ",z,"…"]})}):null,(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-7xl flex-wrap gap-8 px-6 py-8 lg:px-10",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-[999_1_40rem] flex-col gap-8",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-end gap-3",children:[(0,t.jsxs)("div",{className:"min-w-60 flex-1",children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight text-ink",children:"Projects"}),(0,t.jsx)("p",{className:"mt-1 text-sm text-mute",children:"Each project is a folder on this computer — its requests, environments and history, as plain files you can keep in Git."})]}),h?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",className:"btn btn-secondary",onClick:()=>void V(),children:[(0,t.jsx)(l.FolderOpen,{size:15,"aria-hidden":!0})," Open folder…"]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-primary",onClick:()=>R(!0),children:[(0,t.jsx)(m.Plus,{size:15,"aria-hidden":!0})," New project"]})]}):null]}),j?(0,t.jsxs)("form",{className:"flex flex-wrap items-end gap-3 rounded-xl border border-line bg-panel p-4",onSubmit:e=>{e.preventDefault(),B()},children:[(0,t.jsxs)("label",{className:"flex min-w-56 flex-1 flex-col gap-1 text-xs text-mute",children:["Name",(0,t.jsx)("input",{autoFocus:!0,value:A,onChange:e=>L(e.target.value),placeholder:"Payments API",className:"input","aria-label":"Project name"})]}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-[2] flex-col gap-1 text-xs text-mute",children:["Folder",(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate rounded-md border border-line bg-panel-2 px-2 py-1.5 font-mono text-xs text-ink",title:P??void 0,children:P??`Documents/APITestCenter Projects/${A.trim()||"…"}`}),(0,t.jsx)("button",{type:"button",className:"btn btn-secondary py-1.5 text-xs",onClick:async()=>O(await D?.chooseFolder("new")??P),children:"Choose…"})]})]}),(0,t.jsx)("button",{type:"submit",className:"btn btn-primary",disabled:!A.trim(),children:"Create and open"}),(0,t.jsx)("button",{type:"button",className:"btn btn-secondary",onClick:()=>R(!1),children:"Cancel"})]}):null,(0,t.jsx)("ul",{className:"grid grid-cols-[repeat(auto-fill,minmax(17rem,1fr))] gap-4",children:(u??(c?[{id:"default",name:"This folder",path:c,lastOpenedAt:"",current:!0,exists:!0,requests:0,environments:0,git:null,builtIn:!0}]:[])).map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(_,{project:e,onOpen:()=>void H(e),onRename:e.builtIn?void 0:t=>void K(e,t),onRemove:e.builtIn||e.current?void 0:()=>void W(e),onDelete:e.builtIn||!h?void 0:()=>void X(e)})},e.id))}),h?null:(0,t.jsxs)("p",{className:"text-sm text-mute",children:["Several projects need the desktop app. On the command line, pick a folder with ",(0,t.jsx)("code",{className:"font-mono text-ink",children:"--data"}),": ",(0,t.jsx)("code",{className:"font-mono text-ink",children:"npx apitestcenter ui --data api-tests"}),"."]}),(0,t.jsxs)("section",{"aria-labelledby":"start-title",children:[(0,t.jsx)("h2",{id:"start-title",className:"mb-3 text-base font-semibold text-ink",children:"Start something"}),(0,t.jsxs)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(14rem,1fr))] gap-3",children:[(0,t.jsx)(E,{href:"/",icon:(0,t.jsx)(a.FlaskConical,{size:16,"aria-hidden":!0}),title:"Send a request",body:"Try the practice API built in"}),(0,t.jsx)(E,{onClick:()=>(0,S.openImport)(),icon:(0,t.jsx)(r.FileUp,{size:16,"aria-hidden":!0}),title:"Bring your requests",body:"Postman, Insomnia, Bruno, OpenAPI, .http, Hurl"}),(0,t.jsx)(E,{href:"/",icon:(0,t.jsx)(f,{size:16,"aria-hidden":!0}),title:"Performance test an endpoint",body:"k6 runs it here — nothing is uploaded"}),(0,t.jsx)(E,{onClick:()=>(0,g.openSettings)(),icon:(0,t.jsx)(s.Bot,{size:16,"aria-hidden":!0}),title:"Connect your AI assistant",body:"MCP for Claude, Cursor, VS Code"})]})]})]}),(0,t.jsxs)("aside",{"aria-labelledby":"recent-title",className:"flex min-w-0 flex-[1_1_18rem] flex-col gap-3",children:[(0,t.jsx)("h2",{id:"recent-title",className:"text-base font-semibold text-ink",children:"Recent performance tests"}),J.length?(0,t.jsx)("ul",{className:"overflow-hidden rounded-xl border border-line bg-panel",children:J.map((e,s)=>(0,t.jsx)("li",{className:s?"border-t border-line":"",children:(0,t.jsxs)(x.default,{href:"/history",className:"flex items-center gap-3 px-4 py-3 hover:bg-panel-2",children:[(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"block truncate text-sm text-ink",children:e.name}),(0,t.jsxs)("span",{className:"block truncate font-mono text-xs text-mute",children:["p95 ",(0,M.formatMs)(e.p95)," · ",new Date(e.startedAt).toLocaleDateString(void 0,{day:"numeric",month:"short"})]})]}),(0,t.jsx)(b.VerdictTag,{level:(0,n.buildVerdictFromInputs)(e.verdict,{slo:o}).overall})]})},e.id))}):(0,t.jsx)("p",{className:"rounded-xl border border-dashed border-line px-4 py-6 text-sm text-mute",children:"Performance tests in this project will show here."})]})]})]})}],92016)},37837,e=>{"use strict";var t=e.i(14368),n=e.i(99181),s=e.i(68820),r=e.i(14865);e.s(["Popover",0,function({anchor:e,open:a,onClose:l,children:i,label:o,width:c=280,role:d="dialog"}){let u=(0,n.useRef)(null),[p,m]=(0,n.useState)(null);return((0,n.useLayoutEffect)(()=>{if(!a)return;let t=()=>{if(!e.current)return;let t=(0,r.pageRect)(e.current),n=(0,r.pageViewport)(),s=u.current?.offsetHeight??320,a=n.height-t.bottom-8,l=t.top-8,i=a<Math.min(s,240)&&l>a,o=Math.min(Math.max(8,t.right-c),n.width-c-8);m({top:i?Math.max(8,t.top-Math.min(s,l)-4):t.bottom+4,left:o,maxHeight:Math.max(160,(i?l:a)-4)})};t();let n=window.requestAnimationFrame(t);return window.addEventListener("resize",t),()=>{window.cancelAnimationFrame(n),window.removeEventListener("resize",t)}},[a,e,c]),(0,n.useEffect)(()=>{if(!a)return;let t=t=>{let n=t.target;u.current?.contains(n)||e.current?.contains(n)||l()},n=t=>{"Escape"===t.key&&(t.stopPropagation(),l(),e.current?.focus())},s=e=>{u.current?.contains(e.target)||l()},r=t=>{e.current?.contains(t.target)&&(t.stopPropagation(),t.preventDefault(),l())};return document.addEventListener("pointerdown",t,!0),document.addEventListener("click",r,!0),document.addEventListener("keydown",n,!0),document.addEventListener("scroll",s,!0),()=>{document.removeEventListener("pointerdown",t,!0),document.removeEventListener("click",r,!0),document.removeEventListener("keydown",n,!0),document.removeEventListener("scroll",s,!0)}},[a,l,e]),(0,n.useEffect)(()=>{a&&window.setTimeout(()=>u.current?.querySelector("[role=menuitem], input, select, button")?.focus(),0)},[a]),!a||"u"<typeof document)?null:(0,s.createPortal)((0,t.jsx)("div",{ref:u,role:d,"aria-label":o,style:{top:p?.top??-9999,left:p?.left??-9999,width:c,maxHeight:p?.maxHeight},className:"anim-pop fixed z-[70] overflow-auto rounded-lg border border-line bg-panel p-3 shadow-2xl",children:i}),document.body)}])},32610,e=>{"use strict";var t=e.i(14368),n=e.i(99181);e.s(["Splitter",0,function({orientation:e,label:s,value:r,onMove:a,onStep:l,onReset:i,onDragging:o,className:c="",style:d}){let[u,p]=(0,n.useState)(!1);(0,n.useEffect)(()=>o?.(u),[u,o]),(0,n.useEffect)(()=>{if(!u)return;let t=e=>a(e.clientX,e.clientY),n=()=>p(!1);return document.body.style.userSelect="none",document.body.style.cursor="vertical"===e?"col-resize":"row-resize",window.addEventListener("pointermove",t),window.addEventListener("pointerup",n),()=>{document.body.style.userSelect="",document.body.style.cursor="",window.removeEventListener("pointermove",t),window.removeEventListener("pointerup",n)}},[u,a,e]);let m="vertical"===e;return(0,t.jsx)("div",{role:"separator",tabIndex:0,"aria-orientation":e,"aria-label":s,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(r),title:`${s} — drag, or double-click to reset`,onPointerDown:e=>{0===e.button&&(e.preventDefault(),p(!0))},onDoubleClick:i,style:{...d,outline:"none"},onKeyDown:e=>{let t=m?"ArrowLeft":"ArrowUp";e.key===t||e.key===(m?"ArrowRight":"ArrowDown")?(e.preventDefault(),l(e.key===t?-1:1,e.shiftKey)):("Enter"===e.key||"Home"===e.key)&&(e.preventDefault(),i())},className:`group z-20 hidden touch-none outline-none lg:block ${m?"w-2 cursor-col-resize":"h-2 cursor-row-resize"} ${c}`,children:(0,t.jsx)("span",{"aria-hidden":!0,className:`pointer-events-none absolute bg-accent opacity-0 transition-opacity group-hover:opacity-60 group-focus-visible:opacity-100 ${u?"opacity-100":""} ${m?"inset-y-0 left-1/2 w-0.5 -translate-x-1/2":"inset-x-0 top-1/2 h-0.5 -translate-y-1/2"}`})})}])},30617,e=>{"use strict";e.i(24856);var t=e.i(46306),n=e.i(36558),s=e.i(2385),r=e.i(17219);let a={base:0,header:1,desc:2,pass:3,warn:4,fail:5};function l(e){return String(e).replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("\n"," ")}function i(e,t,n){if("level"===e)return"pass"===t?a.pass:"warn"===t?a.warn:"fail"===t?a.fail:a.base;let s="number"==typeof t?t:Number(t);return"errors"===e?s>=n.errorFail?a.fail:s>=n.errorWarn?a.warn:a.pass:s>=n.p95FailMs?a.fail:s>=n.p95WarnMs?a.warn:a.pass}let o=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2
|
-
<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
|
|
3
|
-
<fonts count="3">
|
|
4
|
-
<font><sz val="11"/><name val="Calibri"/></font>
|
|
5
|
-
<font><b/><sz val="11"/><color rgb="FFFFFFFF"/><name val="Calibri"/></font>
|
|
6
|
-
<font><sz val="10"/><color rgb="FF5C6778"/><name val="Calibri"/></font>
|
|
7
|
-
</fonts>
|
|
8
|
-
<fills count="6">
|
|
9
|
-
<fill><patternFill patternType="none"/></fill>
|
|
10
|
-
<fill><patternFill patternType="gray125"/></fill>
|
|
11
|
-
<fill><patternFill patternType="solid"><fgColor rgb="FF0B8F7C"/></patternFill></fill>
|
|
12
|
-
<fill><patternFill patternType="solid"><fgColor rgb="FFDCFCE7"/></patternFill></fill>
|
|
13
|
-
<fill><patternFill patternType="solid"><fgColor rgb="FFFEF3C7"/></patternFill></fill>
|
|
14
|
-
<fill><patternFill patternType="solid"><fgColor rgb="FFFECACA"/></patternFill></fill>
|
|
15
|
-
</fills>
|
|
16
|
-
<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>
|
|
17
|
-
<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>
|
|
18
|
-
<cellXfs count="6">
|
|
19
|
-
<xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/>
|
|
20
|
-
<xf numFmtId="0" fontId="1" fillId="2" borderId="0" xfId="0" applyFont="1" applyFill="1" applyAlignment="1"><alignment horizontal="center" vertical="center"/></xf>
|
|
21
|
-
<xf numFmtId="0" fontId="2" fillId="0" borderId="0" xfId="0" applyFont="1" applyAlignment="1"><alignment wrapText="1" vertical="center"/></xf>
|
|
22
|
-
<xf numFmtId="0" fontId="0" fillId="3" borderId="0" xfId="0" applyFill="1"/>
|
|
23
|
-
<xf numFmtId="0" fontId="0" fillId="4" borderId="0" xfId="0" applyFill="1"/>
|
|
24
|
-
<xf numFmtId="0" fontId="0" fillId="5" borderId="0" xfId="0" applyFill="1"/>
|
|
25
|
-
</cellXfs>
|
|
26
|
-
</styleSheet>`;async function c(e,r,l){let o=(0,s.buildVerdict)(e,{slo:r}),c=(0,s.verdictBars)(r),u=(0,t.normalizeChartLayout)(l,(0,t.hasThresholdTiles)(e));return d([{name:"Overview",rows:[[{v:"Key",s:a.header},{v:"Value",s:a.header},{v:"What this means",s:a.header}],...(0,n.summaryExportRows)(e).map(e=>{let t=a.base;return"failed_rate"===e.key&&(t=i("errors",e.value,c)),"latency_p95_ms"===e.key&&(t=i("latency",e.value,c)),(e.key.startsWith("status_5")||"status_0"===e.key)&&(t=Number(e.value)>0?a.fail:a.pass),e.key.startsWith("status_4")&&Number(e.value)>0&&(t=a.warn),e.key.startsWith("threshold:")&&(t="pass"===e.value?a.pass:a.fail),[{v:e.key},{v:e.value,s:t},{v:e.description,s:a.desc}]})]},{name:"Result summary",rows:[[{v:"Field",s:a.header},{v:"Level",s:a.header},{v:"What this means",s:a.header}],[{v:"overall"},{v:o.overall,s:i("level",o.overall,c)},{v:o.headline,s:a.desc}],...o.aspects.map(e=>[{v:e.title},{v:e.level,s:i("level",e.level,c)},{v:e.summary,s:a.desc}]),[{v:"disclaimer"},{v:""},{v:o.disclaimer,s:a.desc}],...u.map((e,n)=>[{v:`chart_${n+1}`},{v:`${e.w}x${e.h}`},{v:t.CHART_TILE_TITLES[e.id],s:a.desc}])]},{name:"Second by second",rows:[n.SERIES_COLUMNS.map(e=>({v:e.header,s:a.header})),...e.buckets.map(e=>(0,n.seriesExportRow)(e).map((e,t)=>{let s=n.SERIES_COLUMNS[t]?.key,r=a.base;return"p95_ms"===s&&(r=i("latency",e,c)),"failed_rate"===s&&(r=i("errors",e,c)),"http_5xx"===s&&Number(e)>0&&(r=a.fail),"http_0"===s&&Number(e)>0&&(r=a.fail),"http_4xx"===s&&Number(e)>0&&(r=a.warn),"http_2xx"===s&&Number(e)>0&&(r=a.pass),{v:e,s:r}}))]}])}function d(e){let t={"[Content_Types].xml":`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
27
|
-
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
|
|
28
|
-
<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
|
|
29
|
-
<Default Extension="xml" ContentType="application/xml"/>
|
|
30
|
-
<Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/>
|
|
31
|
-
<Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/>
|
|
32
|
-
${e.map((e,t)=>` <Override PartName="/xl/worksheets/sheet${t+1}.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>`).join("\n")}
|
|
33
|
-
</Types>`,"_rels/.rels":`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
34
|
-
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
|
35
|
-
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/>
|
|
36
|
-
</Relationships>`,"xl/workbook.xml":`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
37
|
-
<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
|
|
38
|
-
<sheets>
|
|
39
|
-
${e.map((e,t)=>` <sheet name="${l(e.name.replace(/[:\\/?*[\]]/g," ").trim().slice(0,31)||"Sheet")}" sheetId="${t+1}" r:id="rId${t+1}"/>`).join("\n")}
|
|
40
|
-
</sheets>
|
|
41
|
-
</workbook>`,"xl/_rels/workbook.xml.rels":`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
42
|
-
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
|
43
|
-
${e.map((e,t)=>` <Relationship Id="rId${t+1}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet${t+1}.xml"/>`).join("\n")}
|
|
44
|
-
<Relationship Id="rId${e.length+1}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>
|
|
45
|
-
</Relationships>`,"xl/styles.xml":o};return e.forEach((e,n)=>{var s;let r,a,i;return t[`xl/worksheets/sheet${n+1}.xml`]=(s=e.rows,a=Array.from({length:r=s[0]?.length??0},(e,t)=>{let n=function(e,t,n=10,s=48){let r=n;for(let n of e){let e=n[t]?.v;void 0!==e&&(r=Math.max(r,String(e).length+2))}return Math.min(s,r)}(s,t,t===r-1&&r>=3?36:12,t===r-1&&r>=3?72:42);return`<col min="${t+1}" max="${t+1}" width="${n}" customWidth="1"/>`}).join(""),i=s.map((e,t)=>`<row r="${t+1}" ht="${0===t?22:18}" customHeight="1">${e.map((e,n)=>{var s;let r,a;return s=t+1,r=`${function(e){let t=e+1,n="";for(;t>0;)n=String.fromCharCode(65+(t-1)%26)+n,t=Math.floor((t-1)/26);return n}(n)}${s}`,a=void 0!==e.s?` s="${e.s}"`:"","number"==typeof e.v&&Number.isFinite(e.v)?`<c r="${r}"${a}><v>${e.v}</v></c>`:`<c r="${r}"${a} t="inlineStr"><is><t xml:space="preserve">${l(e.v)}</t></is></c>`}).join("")}</row>`).join(""),`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
46
|
-
<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
|
|
47
|
-
<sheetViews><sheetView workbookViewId="0"><pane ySplit="1" topLeftCell="A2" activePane="bottomLeft" state="frozen"/></sheetView></sheetViews>
|
|
48
|
-
<cols>${a}</cols>
|
|
49
|
-
<sheetData>${i}</sheetData>
|
|
50
|
-
</worksheet>`)}),new Blob([(0,r.zipStore)(t)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})}e.s(["S",0,a,"exportRunXlsx",0,c,"xlsxBook",0,d])},62766,e=>{"use strict";var t=e.i(99181);let n="apitestcenter-pane-sizes",s=(e,t,n)=>Math.min(n,Math.max(t,e));function r(e){let[n,s]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let t=window.matchMedia(e),n=()=>s(t.matches);return n(),t.addEventListener("change",n),()=>t.removeEventListener("change",n)},[e]),n}e.s(["useColumnSplit",0,function(e,{min:a=220,max:l=900,rest:i=360}={}){let o=r("(min-width: 1024px)"),c=(0,t.useRef)(null),d=`${n}:${e}`,[u,p]=(0,t.useState)(null),[m,h]=(0,t.useState)(0);(0,t.useEffect)(()=>{try{let e=Number(JSON.parse(localStorage.getItem(d)??"null"));Number.isFinite(e)&&e>0&&p(e)}catch{}},[d]),(0,t.useEffect)(()=>{let e=[...c.current?.children??[]].find(e=>"separator"!==e.getAttribute("role"));if(!e)return;let t=new ResizeObserver(()=>h(e.getBoundingClientRect().width));return t.observe(e),()=>t.disconnect()},[o]);let f=(0,t.useCallback)(e=>{let t=c.current?.getBoundingClientRect(),n=null===e?null:Math.round(s(e,a,Math.max(a,Math.min(l,(t?.width??l+i)-i))));p(n);try{null===n?localStorage.removeItem(d):localStorage.setItem(d,JSON.stringify(n))}catch{}},[l,a,i,d]),x=()=>c.current?.getBoundingClientRect();return{wide:o,gridRef:c,gridStyle:o&&null!==u?{gridTemplateColumns:`${u}px minmax(0,1fr)`}:void 0,splitter:{orientation:"vertical",value:(u??m)/Math.max(1,x()?.width??1)*100,onMove:e=>{let t=x();t&&f(e-t.left)},onStep:(e,t)=>f((u??m)+16*e*(t?4:1)),onReset:()=>f(null),className:"absolute inset-y-0 -translate-x-1/2",style:{left:`${m}px`}}}},"usePaneSizes",0,function(e,a){let l=r("(min-width: 1024px)"),i=r("(min-width: 1536px)"),o=(0,t.useRef)(null),[c,d]=(0,t.useState)({panel:null,beside:null,below:null});(0,t.useEffect)(()=>{try{let e=JSON.parse(localStorage.getItem(n)??"null"),t=e=>"number"==typeof e&&Number.isFinite(e)?e:null;e&&d({panel:t(e.panel),beside:t(e.beside),below:t(e.below)})}catch{}},[]);let u=(0,t.useCallback)(e=>{d(t=>{let s={...t,...e};try{localStorage.setItem(n,JSON.stringify(s))}catch{}return s})},[]),p=s(c.panel??(i?256:240),180,480),m=a?p:0,h=s("below"===e?c.below??.5:c.beside??(i?5/12:.5),.2,.8),f=l?"below"===e?{gridTemplateColumns:`${m}px minmax(0,1fr)`,gridTemplateRows:`minmax(0,${h}fr) minmax(0,${1-h}fr)`}:{gridTemplateColumns:`${m}px minmax(0,${h}fr) minmax(0,${1-h}fr)`}:void 0,x=()=>o.current?.getBoundingClientRect(),y=(0,t.useCallback)(e=>{let t=x();t&&u({panel:s(e-t.left,180,Math.min(480,.4*t.width))})},[u]),v=(0,t.useCallback)((t,n)=>{let r=x();r&&("below"===e?u({below:s((n-r.top)/r.height,.2,.8)}):u({beside:s((t-r.left-m)/Math.max(1,r.width-m),.2,.8)}))},[u,e,m]);return{wide:l,gridRef:o,gridStyle:f,panelWidth:l?p:void 0,panel:{value:p/480*100,onMove:e=>y(e),onStep:(e,t)=>u({panel:s(p+16*e*(t?4:1),180,480)}),onReset:()=>u({panel:null}),style:{left:`${m}px`}},split:{value:100*h,onMove:v,onStep:(t,n)=>u("below"===e?{below:s(h+.02*t*(n?5:1),.2,.8)}:{beside:s(h+.02*t*(n?5:1),.2,.8)}),onReset:()=>u("below"===e?{below:null}:{beside:null}),style:"below"===e?{top:`${100*h}%`,left:`${m}px`,right:0}:{left:`calc(${m}px + (100% - ${m}px) * ${h})`,top:0,bottom:0}}}}])},61230,17847,e=>{"use strict";e.s(["readableUrl",0,function(e){try{return decodeURI(e.replace(/\+/g,"%20")).replace(/%2C/gi,",").replace(/%24/g,"$").replace(/%27/g,"'").replace(/%3A/gi,":").replace(/%2F/gi,"/").replace(/%3D/gi,"=")}catch{return e}}],61230);var t=e.i(14368),n=e.i(99181),s=e.i(68820),r=e.i(14865);e.s(["ContextMenu",0,function({at:e,label:a,onClose:l,children:i}){let o=(0,n.useRef)(null),[c,d]=(0,n.useState)(null);return((0,n.useLayoutEffect)(()=>{let t=o.current;if(!t)return;let n=(0,r.pageViewport)();d({left:Math.max(8,Math.min(e.x,n.width-t.offsetWidth-8)),top:Math.max(8,Math.min(e.y,n.height-t.offsetHeight-8))}),t.querySelector('[role="menuitem"]:not(:disabled)')?.focus()},[e]),(0,n.useEffect)(()=>{let e=e=>{o.current?.contains(e.target)||l()},t=e=>{if("Escape"===e.key)e.stopPropagation(),l();else if("ArrowDown"===e.key||"ArrowUp"===e.key){e.preventDefault();let t=[...o.current?.querySelectorAll('[role="menuitem"]:not(:disabled)')??[]],n=t.indexOf(document.activeElement);t[(n+("ArrowDown"===e.key?1:-1)+t.length)%t.length]?.focus()}};return document.addEventListener("pointerdown",e,!0),document.addEventListener("scroll",e,!0),window.addEventListener("resize",l),window.addEventListener("keydown",t,!0),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("scroll",e,!0),window.removeEventListener("resize",l),window.removeEventListener("keydown",t,!0)}},[l]),"u"<typeof document)?null:(0,s.createPortal)((0,t.jsx)("div",{ref:o,role:"menu","aria-label":a,style:{left:c?.left??-9999,top:c?.top??-9999},className:"fixed z-[80] w-56 rounded-lg border border-line bg-panel p-1 shadow-2xl",children:i}),document.body)},"MenuItem",0,function({icon:e,label:n,hint:s,onSelect:r,danger:a=!1,disabled:l=!1}){return(0,t.jsxs)("button",{type:"button",role:"menuitem",disabled:l,onClick:r,className:`flex w-full items-center gap-2.5 rounded-md px-2.5 py-1.5 text-left text-sm disabled:opacity-40 ${a?"text-bad hover:bg-bad/10":"text-ink hover:bg-panel-2"}`,children:[(0,t.jsx)("span",{className:`flex w-4 shrink-0 justify-center ${a?"":"text-mute"}`,"aria-hidden":!0,children:e?(0,t.jsx)(e,{size:14}):null}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:n}),s?(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-mute",children:s}):null]})},"MenuLabel",0,function({children:e}){return(0,t.jsx)("div",{className:"px-2.5 pt-1.5 pb-1 text-[11px] font-medium tracking-wide text-mute uppercase",children:e})},"MenuSeparator",0,function(){return(0,t.jsx)("div",{role:"separator",className:"my-1 h-px bg-line"})}],17847)},17219,e=>{"use strict";let t=new Uint32Array(256).map((e,t)=>{let n=t;for(let e=0;e<8;e++)n=1&n?0xedb88320^n>>>1:n>>>1;return n>>>0});function n(e){let t=new Uint8Array(2);return new DataView(t.buffer).setUint16(0,e,!0),t}function s(e){let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),t}function r(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let s of e)t.set(s,n),n+=s.length;return t}e.s(["zipStore",0,function(e){let a=new TextEncoder,l=[],i=[],o=0;for(let[c,d]of Object.entries(e)){let e=a.encode(c),u="string"==typeof d?a.encode(d):d,p=function(e){let n=0xffffffff;for(let s of e)n=t[(n^s)&255]^n>>>8;return(0xffffffff^n)>>>0}(u),m=r([s(0x4034b50),n(20),n(0),n(0),n(0),n(0),s(p),s(u.length),s(u.length),n(e.length),n(0),e,u]),h=r([s(0x2014b50),n(20),n(20),n(0),n(0),n(0),n(0),s(p),s(u.length),s(u.length),n(e.length),n(0),n(0),n(0),n(0),s(0),s(o),e]);l.push(m),i.push(h),o+=m.length}let c=r(i),d=r([s(0x6054b50),n(0),n(0),n(Object.keys(e).length),n(Object.keys(e).length),s(c.length),s(o),n(0)]),u=r([...l,c,d]);return new Blob([u.buffer.slice(u.byteOffset,u.byteOffset+u.byteLength)],{type:"application/zip"})}])},13643,e=>{"use strict";let t=(0,e.i(99522).default)("bell-off",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]]);e.s(["BellOff",0,t],13643)},95211,e=>{"use strict";let t=(0,e.i(99522).default)("columns-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);e.s(["Columns3",0,t],95211)},81538,e=>{"use strict";let t=(0,e.i(99522).default)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);e.s(["MoreHorizontal",0,t],81538)},13163,e=>{"use strict";let t=(0,e.i(99522).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",0,t],13163)},3792,e=>{"use strict";let t=(0,e.i(99522).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",0,t],3792)},95927,e=>{"use strict";let t=(0,e.i(99522).default)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);e.s(["Save",0,t],95927)},66478,14168,e=>{"use strict";let t=(0,e.i(99522).default)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);async function n(e){let t=await e.json().catch(()=>null);if(!e.ok)throw Error(t?.error??`Engine error (${e.status})`);return t}e.s(["Square",0,t],66478);let s=(e,t,n)=>fetch(t,{method:e,headers:void 0===n?void 0:{"content-type":"application/json"},body:void 0===n?void 0:JSON.stringify(n)});e.s(["suiteApi",0,{plan:e=>fetch(`/engine/suites/plan?collection=${encodeURIComponent(e)}`,{cache:"no-store"}).then(e=>n(e)),savePlan:(e,t)=>s("PUT","/engine/suites/plan",{collection:e,...t}).then(e=>n(e)),start:e=>s("POST","/engine/suites/runs",e).then(e=>n(e)),get:e=>fetch(`/engine/suites/runs/${encodeURIComponent(e)}`,{cache:"no-store"}).then(e=>n(e)),stop:e=>s("POST",`/engine/suites/runs/${encodeURIComponent(e)}/stop`).then(e=>n(e))},"suiteHref",0,function(e){return`/suite?c=${encodeURIComponent(e)}`}],14168)},36558,e=>{"use strict";function t(e,n=2){if(!Number.isFinite(e))return 0;let s=10**n;return Math.round(e*s)/s}function n(e){return e>=100?Math.round(e):e>=10?t(e,1):t(e,2)}function s(e){return e>=10?Math.round(e):t(e,1)}function r(e,t=e=>e){return null==e?"":t(e)}e.s(["SERIES_COLUMNS",0,[{key:"elapsed_s",header:"Seconds into test",description:"Seconds from the start of the run."},{key:"ts",header:"Clock time",description:"Wall-clock time for this one-second sample."},{key:"vus",header:"Concurrent users",description:"Virtual users (VUs) active in this second."},{key:"rps",header:"Requests per second",description:"Completed requests in this second."},{key:"p50_ms",header:"Median latency (ms)",description:"Half of requests this second were faster than this."},{key:"p95_ms",header:"95th percentile (ms)",description:"95% of requests this second were faster than this."},{key:"p99_ms",header:"99th percentile (ms)",description:"The slow tail this second — 1 in 100 was slower."},{key:"failed_rate",header:"Error rate",description:"Share of requests that failed in this second (0–1)."},{key:"http_2xx",header:"Success (2xx)",description:"Successful HTTP responses this second."},{key:"http_4xx",header:"Client errors (4xx)",description:"Client / auth errors this second."},{key:"http_5xx",header:"Server errors (5xx)",description:"Server errors this second."},{key:"http_0",header:"Network failures",description:"No HTTP status (timeout / reset) this second."},{key:"bytes_in",header:"Bytes received",description:"Response bytes this second."},{key:"bytes_out",header:"Bytes sent",description:"Request bytes this second."},{key:"p90_ms",header:"90th percentile (ms)",description:"90% of requests this second were faster than this."},{key:"p999_ms",header:"99.9th percentile (ms)",description:"1 in 1,000 requests this second was slower than this."},{key:"max_ms",header:"Slowest (ms)",description:"Slowest request this second."},{key:"ttfb_ms",header:"Server time (ms)",description:"Average time to first byte this second — the server's own work."},{key:"connect_ms",header:"TCP connect (ms)",description:"Average TCP connect time this second (0 when connections are reused)."},{key:"tls_ms",header:"TLS handshake (ms)",description:"Average TLS handshake time this second."},{key:"checks_passed",header:"Checks passed",description:"Response checks that passed this second."},{key:"checks_failed",header:"Checks failed",description:"Response checks that failed this second."},{key:"dropped",header:"Dropped requests",description:"Rate mode: requests k6 could not start this second."}],"seriesExportRow",0,function(e){return[e.elapsedS,e.ts,t(e.vus,1),n(e.rps),s(e.p50Ms),s(e.p95Ms),s(e.p99Ms),t(e.failedRate,4),e.http2xx,e.http4xx,e.http5xx,e.http0,e.bytesIn,e.bytesOut,r(e.p90Ms,s),r(e.p999Ms,s),r(e.maxMs,s),r(e.ttfbMs,s),r(e.connectMs,s),r(e.tlsMs,s),r(e.checksPassed),r(e.checksFailed),r(e.dropped)]},"summaryExportRows",0,function(e){let{summary:r}=e,a=[{key:"run_id",value:e.id,description:"Id of this run in this browser tab."},{key:"test_name",value:e.testName,description:"Display name (method, path, time)."},{key:"status",value:e.status,description:"completed, failed, cancelled, or still running."},{key:"started_at",value:e.startedAt,description:"When the load test started (UTC)."},{key:"ended_at",value:e.endedAt,description:"When the load test finished (UTC)."},{key:"method",value:e.definition.method,description:"HTTP method that was repeated."},{key:"url",value:e.definition.url,description:"Target URL (secrets are not exported)."},{key:"auth_mode",value:e.definition.auth.mode,description:"Auth used: none, bearer, basic, or api_key. The secret is not exported."},{key:"executor",value:e.definition.load.executor,description:"Load pattern: constant-vus (steady) or ramping-vus (ramp / hold / down)."},{key:"requests",value:r.http.requests,description:"How many HTTP calls finished. Zero usually means the target never answered."},{key:"rps_avg",value:n(r.http.rps.avg),description:"Average requests per second completed by this generator."},{key:"rps_max",value:n(r.http.rps.max),description:"Peak requests per second in any one-second sample."},{key:"failed_count",value:r.http.failed.count,description:"Requests that failed (4xx, 5xx, timeout, or no status)."},{key:"failed_rate",value:t(r.http.failed.rate,4),description:"Failed / total. Default warning bar is 1% (0.01)."},{key:"latency_min_ms",value:s(r.latencyMs.min),description:"Fastest request (milliseconds)."},{key:"latency_mean_ms",value:s(r.latencyMs.mean),description:"Average response time. Slow outliers pull this up."},{key:"latency_p50_ms",value:s(r.latencyMs.median),description:"Median — half of requests were faster than this."},{key:"latency_p95_ms",value:s(r.latencyMs.p95),description:"95th percentile — 95% of requests were faster. Usual headline latency."},{key:"latency_p99_ms",value:s(r.latencyMs.p99),description:"99th percentile — the slow tail (1 in 100 was slower)."},{key:"latency_max_ms",value:s(r.latencyMs.max),description:"Slowest single request."},{key:"vus_max",value:r.vus.max,description:"Peak concurrent users (virtual users / VUs)."},{key:"vus_avg",value:t(r.vus.avg,1),description:"Average concurrent users over the run."},{key:"bytes_in",value:r.data.bytesIn,description:"Response bytes received by the generator."},{key:"bytes_out",value:r.data.bytesOut,description:"Request bytes sent by the generator."},{key:"phase_ttfb_avg_ms",value:s(r.phasesMs.ttfb.avg),description:"Time to first byte — waiting on the server after the connection is up."},{key:"phase_tls_avg_ms",value:s(r.phasesMs.tls.avg),description:"TLS handshake time. High values often mean a far or overloaded endpoint."}];for(let[e,t]of Object.entries(r.http.status)){let n="0"===e?"No HTTP status (timeout / network).":Number(e)>=500?"Server error.":Number(e)>=400?"Client / auth error.":"Success-class response.";a.push({key:`status_${e}`,value:t,description:`How many responses had status ${e}. ${n}`})}for(let e of r.thresholds)a.push({key:`threshold:${e.name}`,value:e.ok?"pass":"fail",description:"k6 threshold result for this run."});return a}])}]);
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,53356,e=>{"use strict";var t=e.i(14368),s=e.i(32610),n=e.i(62766);e.i(24856);var r=e.i(2385),a=e.i(53012),l=e.i(93250),i=e.i(84355),o=e.i(20621),c=e.i(67951),d=e.i(91694),u=e.i(27813),m=e.i(88293),p=e.i(96659),h=e.i(87283),f=e.i(30099),x=e.i(36994),y=e.i(99181),v=e.i(67754),b=e.i(6980),g=e.i(29724),w=e.i(39170),k=e.i(28867),j=e.i(56396),N=e.i(19656),S=e.i(59180),C=e.i(88231),T=e.i(88153);function $(e){return"run"===e.kind?e.startedAt:e.savedAt}function F(e){return new Date(e).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}function _({run:e,slo:s}){let n=(0,r.buildVerdictFromInputs)(e.verdict,{slo:s}).overall;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)("span",{className:"min-w-0 flex-1 truncate text-sm text-ink",children:[e.baseline?(0,t.jsx)(l.Diamond,{size:11,className:"mr-1 inline fill-current align-[-1px] text-accent","aria-label":"Reference run"}):null,e.name]}),"failed"===e.status||"cancelled"===e.status?(0,t.jsx)("span",{className:"shrink-0 text-xs text-mute capitalize",children:e.status}):(0,t.jsx)(b.VerdictTag,{level:n})]}),(0,t.jsx)("div",{className:"mt-0.5 truncate font-mono text-xs text-mute",children:e.endpoint}),(0,t.jsxs)("div",{className:"mt-0.5 flex flex-wrap gap-x-3 font-mono text-xs text-mute",children:[(0,t.jsxs)("span",{children:["p95 ",(0,N.formatMs)(e.p95)]}),(0,t.jsxs)("span",{children:[(0,N.formatPercent)(e.errorRate)," err"]}),(0,t.jsx)("span",{children:F(e.startedAt)})]}),e.note?(0,t.jsx)("p",{className:"mt-1 line-clamp-1 text-xs text-ink",children:e.note}):null]})}function E({compare:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(c.GitCompareArrows,{size:13,className:"shrink-0 text-accent","aria-label":"Compare"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm text-ink",children:e.name})]}),(0,t.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-0.5 text-xs text-mute",children:[e.titles.map((e,s)=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full",style:{background:(0,C.seriesColor)(s)},"aria-hidden":!0}),e]},s)),(0,t.jsx)("span",{className:"font-mono",children:F(e.savedAt)})]})]})}function M({name:e,note:s,onSave:n}){let[r,a]=(0,y.useState)(e),[l,i]=(0,y.useState)(s??"");return(0,y.useEffect)(()=>a(e),[e]),(0,y.useEffect)(()=>i(s??""),[s]),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("label",{className:"block",children:[(0,t.jsx)("span",{className:"sr-only",children:"Name"}),(0,t.jsx)("input",{value:r,onChange:e=>a(e.target.value),onBlur:()=>r.trim()!==e&&void n({name:r}),onKeyDown:e=>"Enter"===e.key&&e.target.blur(),className:"w-full rounded-md border border-transparent bg-transparent px-1 py-0.5 text-xl font-medium text-ink hover:border-line focus:border-accent focus:outline-none",title:"Click to rename"})]}),(0,t.jsxs)("label",{className:"block",children:[(0,t.jsx)("span",{className:"sr-only",children:"Note"}),(0,t.jsx)("textarea",{value:l,rows:l?2:1,onChange:e=>i(e.target.value),onBlur:()=>l.trim()!==(s??"")&&void n({note:l}),placeholder:"Add a note — what changed, which build, why you ran it…",className:"input resize-y text-sm"})]})]})}function I({summary:e,related:s,onSelect:n,onDelete:r,onReveal:a}){let l=(0,j.useToast)(),{refresh:i}=(0,S.useHistory)(),[c,d]=(0,y.useState)(null),[m,h]=(0,y.useState)(null);if((0,y.useEffect)(()=>{if(!e)return;let t=!1;return S.historyApi.run(e.id).then(e=>!t&&d(e)).catch(e=>!t&&h(e instanceof Error?e.message:"Could not read the file")),()=>{t=!0}},[e?.id,e?.bytes]),!e)return null;let f=s.filter(t=>t.endpoint===e.endpoint);async function x(t){try{await S.historyApi.updateRun(e.id,t),await i()}catch(e){l(e instanceof Error?e.message:"Could not save","error")}}return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start gap-3",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)(M,{name:e.name,note:e.note,onSave:x}),(0,t.jsx)("p",{className:"mt-1 px-1 font-mono text-xs break-all text-mute",children:e.file})]}),(0,t.jsxs)("div",{className:"flex shrink-0 gap-2",children:[(0,t.jsxs)("button",{type:"button",className:"btn btn-secondary py-1.5 text-xs",onClick:()=>a(e.id),children:[(0,t.jsx)(o.FolderOpen,{size:13}),"Show file"]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-danger py-1.5 text-xs",onClick:()=>r(e.id),children:[(0,t.jsx)(p.Trash2,{size:13}),"Delete"]})]})]}),e.error?(0,t.jsx)("p",{role:"alert",className:"rounded-md border border-bad/40 bg-bad/10 px-3 py-2 font-mono text-xs text-bad",children:e.error}):null,f.length>=2?(0,t.jsx)(v.TrendPanel,{runs:f,selectedId:e.id,onSelect:n}):null,m?(0,t.jsx)("p",{className:"text-sm text-bad",children:m}):c&&c.report.id===e.id?(0,t.jsx)(g.ReportView,{report:c.report,source:"session",showTitle:!1}):(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-mute",children:[(0,t.jsx)(u.Loader2,{size:14,className:"animate-spin"})," Opening…"]})]})}function A({summary:e,onDelete:s,onReveal:n}){let a=(0,j.useToast)(),{slo:l}=(0,T.useSlo)(),{refresh:i}=(0,S.useHistory)(),[d,m]=(0,y.useState)(null);if((0,y.useEffect)(()=>{if(!e)return;let t=!1;return S.historyApi.compare(e.id).then(e=>!t&&m(e)).catch(()=>void 0),()=>{t=!0}},[e?.id,e?.bytes]),!e)return null;async function h(t){try{await S.historyApi.updateCompare(e.id,t),await i()}catch(e){a(e instanceof Error?e.message:"Could not save","error")}}return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start gap-3",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("p",{className:"px-1 text-xs tracking-wide text-accent uppercase",children:["Compare · ","parallel"===e.mode?"all at once":"one after another"]}),(0,t.jsx)(M,{name:e.name,note:e.note,onSave:h}),(0,t.jsx)("p",{className:"mt-1 px-1 font-mono text-xs break-all text-mute",children:e.file})]}),(0,t.jsxs)("div",{className:"flex shrink-0 flex-wrap gap-2",children:[(0,t.jsxs)(f.default,{href:`/compare?compare=${e.id}`,className:"btn btn-primary py-1.5 text-xs",children:[(0,t.jsx)(c.GitCompareArrows,{size:13}),"Open overlay"]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-secondary py-1.5 text-xs",onClick:()=>n(e.id),children:[(0,t.jsx)(o.FolderOpen,{size:13}),"Show file"]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-danger py-1.5 text-xs",onClick:()=>s(e.id),children:[(0,t.jsx)(p.Trash2,{size:13}),"Delete"]})]})]}),d?(0,t.jsx)("ul",{className:"grid gap-2 @2xl:grid-cols-2",children:d.apis.map((e,s)=>(0,t.jsxs)("li",{className:"rounded-lg border border-line bg-panel p-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsxs)("span",{className:"inline-flex min-w-0 items-center gap-1.5 text-sm text-ink",children:[(0,t.jsx)("span",{className:"h-2 w-2 shrink-0 rounded-full",style:{background:(0,C.seriesColor)(s)},"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate",children:e.title})]}),(0,t.jsx)(b.VerdictTag,{level:(0,r.buildVerdict)(e.report,{slo:l}).overall})]}),(0,t.jsxs)("p",{className:"mt-1 truncate font-mono text-xs text-mute",children:[e.report.definition.method," ",e.report.definition.url]}),(0,t.jsxs)("div",{className:"mt-2 flex flex-wrap gap-x-4 font-mono text-xs text-ink",children:[(0,t.jsxs)("span",{children:["p95 ",(0,N.formatMs)(e.report.summary.latencyMs.p95)]}),(0,t.jsxs)("span",{children:[(0,N.formatPercent)(e.report.summary.http.failed.rate)," err"]}),(0,t.jsxs)("span",{children:[e.report.summary.http.requests.toLocaleString()," req"]})]})]},e.id))}):(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-mute",children:[(0,t.jsx)(u.Loader2,{size:14,className:"animate-spin"})," Opening…"]})]})}function R({index:e,onChanged:s,onReveal:n}){let r=(0,w.useConfirm)(),l=(0,j.useToast)();return(0,t.jsxs)("details",{className:"mx-1 mb-3 rounded-md border border-warn/40 bg-warn/10 px-3 py-2 text-sm",children:[(0,t.jsxs)("summary",{className:"cursor-pointer text-ink",children:[(0,t.jsx)(a.AlertTriangle,{size:13,className:"mr-1 inline align-[-2px] text-warn","aria-hidden":!0}),e.invalid.length," ",1===e.invalid.length?"file":"files"," in your history folder couldn't be read"]}),(0,t.jsx)("ul",{className:"mt-2 space-y-1",children:e.invalid.map(e=>(0,t.jsxs)("li",{className:"text-xs",children:[(0,t.jsxs)("span",{className:"font-mono text-ink",children:[e.folder,"/",e.file]}),(0,t.jsx)("span",{className:"block text-mute",children:e.reason})]},`${e.folder}/${e.file}`))}),(0,t.jsxs)("div",{className:"mt-2 flex gap-2",children:[(0,t.jsx)("button",{type:"button",className:"btn btn-secondary py-1 text-xs",onClick:n,children:"Show folder"}),(0,t.jsx)("button",{type:"button",className:"btn btn-danger py-1 text-xs",onClick:async()=>{await r({title:"Delete the unreadable files?",body:"They are not valid APITestCenter records. If you edited one by hand, fix it instead and it will reappear.",confirmLabel:"Delete files",tone:"danger"})&&(await S.historyApi.remove({invalid:e.invalid.map(({folder:e,file:t})=>({folder:e,file:t}))}),await s(),l("Unreadable files deleted","success"))},children:"Delete them"})]})]})}function L({filtered:e,hasAny:s}){return(0,t.jsx)("p",{className:"px-3 py-6 text-sm text-mute",children:e&&s?"Nothing matches. Clear the search or filter.":"No saved records yet."})}function z(){return(0,t.jsxs)("div",{className:"flex h-full flex-col items-center justify-center px-6 py-16 text-center",children:[(0,t.jsx)("div",{className:"grid h-12 w-12 place-items-center rounded-full bg-accent-dim text-accent",children:(0,t.jsx)(d.History,{size:22,strokeWidth:1.75,"aria-hidden":!0})}),(0,t.jsx)("h2",{className:"mt-4 text-base font-medium text-ink",children:"Your history is empty"}),(0,t.jsx)("p",{className:"mt-2 max-w-sm text-sm text-mute",children:"Every performance test and compare is saved here automatically, as a JSON file on this computer. Nothing leaves your machine."}),(0,t.jsxs)("div",{className:"mt-6 flex flex-wrap justify-center gap-2",children:[(0,t.jsxs)(f.default,{href:"/",className:"btn btn-primary text-sm",children:[(0,t.jsx)(i.FlaskConical,{size:14}),"Test an API"]}),(0,t.jsxs)(f.default,{href:"/compare",className:"btn btn-secondary text-sm",children:[(0,t.jsx)(c.GitCompareArrows,{size:14}),"Compare APIs"]})]})]})}e.s(["default",0,function(){let e=(0,n.useColumnSplit)("history",{min:280}),r=(0,x.useRouter)(),a=(0,j.useToast)(),l=(0,w.useConfirm)(),{slo:i}=(0,T.useSlo)(),{index:d,loading:f,error:v,refresh:b}=(0,S.useHistory)(),[g,C]=(0,y.useState)(""),[F,M]=(0,y.useState)("all"),[D,O]=(0,y.useState)(null),[P,U]=(0,y.useState)(new Set),[q,H]=(0,y.useState)(!1),V=d?.runs??[],B=d?.compares??[],W=(0,y.useMemo)(()=>{let e=g.trim().toLowerCase();return[..."compares"===F?[]:V.filter(e=>"baselines"!==F||e.baseline),..."runs"===F||"baselines"===F?[]:B].filter(t=>!e||t.name.toLowerCase().includes(e)||(t.note??"").toLowerCase().includes(e)||("run"===t.kind?t.endpoint.toLowerCase().includes(e):t.titles.join(" ").toLowerCase().includes(e))).sort((e,t)=>Date.parse($(t))-Date.parse($(e)))},[V,B,g,F]);(0,y.useEffect)(()=>{if(d&&!(D&&("run"===D.kind?V.some(e=>e.id===D.id):B.some(e=>e.id===D.id)))){let e=W[0];O(e?{kind:e.kind,id:e.id}:null)}},[d]);let J=[...P].filter(e=>e.startsWith("run:")).map(e=>e.slice(4)),X=[...P].filter(e=>e.startsWith("compare:")).map(e=>e.slice(8));async function K(e,t){let s=e.length+t.length;if(await l({title:`Delete ${s} ${1===s?"record":"records"}?`,body:"The JSON files are removed from your history folder. This cannot be undone — export first if you want a copy.",confirmLabel:"Delete",tone:"danger"})){H(!0);try{let{removed:s}=await S.historyApi.remove({runs:e,compares:t});U(new Set),await b(),a(`Deleted ${s} ${1===s?"record":"records"}`,"success")}catch(e){a(e instanceof Error?e.message:"Delete failed","error")}finally{H(!1)}}}async function Y(e){try{await S.historyApi.reveal(e)}catch(e){a(e instanceof Error?e.message:"Could not open the folder","error")}}let G=function(e){let t=new Map,s=new Date,n=new Date(s.getTime()-864e5),r=(e,t)=>e.toDateString()===t.toDateString();for(let a of e){let e=new Date($(a)),l=r(e,s)?"Today":r(e,n)?"Yesterday":e.toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric",year:e.getFullYear()===s.getFullYear()?void 0:"numeric"}),i=t.get(l)??[];i.push(a),t.set(l,i)}return[...t]}(W);return(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsxs)("header",{className:"flex flex-wrap items-center gap-x-4 gap-y-2 border-b border-line bg-panel px-4 py-3 lg:px-6",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h1",{className:"text-lg font-medium text-ink",children:"History"}),(0,t.jsx)("p",{className:"truncate text-xs text-mute",title:d?.dataDir,children:d?`${V.length} load ${1===V.length?"test":"tests"} \xb7 ${B.length} ${1===B.length?"compare":"compares"} \xb7 ${(0,N.formatBytes)(d.totalBytes)} on this computer`:f?"Loading…":"History is unavailable"})]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-secondary py-1.5 text-sm",onClick:()=>void Y(),disabled:!d,children:[(0,t.jsx)(o.FolderOpen,{size:15}),"Show folder"]})]}),v&&!d?(0,t.jsxs)("div",{role:"alert",className:"m-6 rounded-md border border-bad/40 bg-bad/10 px-4 py-3 text-sm text-ink",children:[(0,t.jsx)("p",{className:"font-medium text-bad",children:"Can't reach the engine"}),(0,t.jsxs)("p",{className:"mt-1",children:["History is stored by the local engine. Start it with pnpm dev, then come back. (",v,")"]})]}):null,(0,t.jsxs)("div",{ref:e.gridRef,style:e.gridStyle,className:"relative grid min-h-0 flex-1 overflow-y-auto lg:grid-cols-[minmax(20rem,26rem)_minmax(0,1fr)] lg:overflow-hidden",children:[(0,t.jsx)(s.Splitter,{label:"History list width",...e.splitter}),(0,t.jsxs)("section",{"aria-label":"Saved records",className:"flex min-h-0 flex-col border-line lg:border-r",children:[(0,t.jsxs)("div",{className:"space-y-2 border-b border-line px-4 py-3",children:[(0,t.jsxs)("label",{className:"relative block",children:[(0,t.jsx)("span",{className:"sr-only",children:"Search history"}),(0,t.jsx)(m.Search,{size:14,className:"pointer-events-none absolute top-1/2 left-2.5 -translate-y-1/2 text-mute","aria-hidden":!0}),(0,t.jsx)("input",{value:g,onChange:e=>C(e.target.value),placeholder:"Search name, URL, or note",className:"input pl-8"})]}),(0,t.jsx)(k.Segmented,{label:"Show",value:F,onChange:M,options:[{value:"all",label:"All"},{value:"runs",label:"Performance tests"},{value:"compares",label:"Compares"},{value:"baselines",label:"Reference runs"}]})]}),P.size>0?(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 border-b border-line bg-accent-dim px-4 py-2 text-sm",children:[(0,t.jsxs)("span",{className:"text-ink",children:[P.size," selected"]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-secondary ml-auto py-1 text-xs",disabled:J.length<2||J.length>6||X.length>0,title:J.length<2?"Tick 2–6 performance tests to overlay them":"Overlay these runs on Compare",onClick:()=>r.push(`/compare?ids=${J.join(",")}`),children:[(0,t.jsx)(c.GitCompareArrows,{size:13}),"Overlay"]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-danger py-1 text-xs",disabled:q,onClick:()=>void K(J,X),children:[(0,t.jsx)(p.Trash2,{size:13}),"Delete"]}),(0,t.jsx)("button",{type:"button","aria-label":"Clear selection",className:"rounded p-1 text-mute hover:text-ink",onClick:()=>U(new Set),children:(0,t.jsx)(h.X,{size:14})})]}):null,(0,t.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto px-2 py-2",children:[d?.invalid.length?(0,t.jsx)(R,{index:d,onChanged:b,onReveal:()=>void Y()}):null,f&&!d?(0,t.jsxs)("p",{className:"flex items-center gap-2 px-3 py-6 text-sm text-mute",children:[(0,t.jsx)(u.Loader2,{size:14,className:"animate-spin"})," Reading your history folder…"]}):0===W.length?(0,t.jsx)(L,{filtered:!!g||"all"!==F,hasAny:V.length+B.length>0}):G.map(([e,s])=>(0,t.jsxs)("div",{className:"mb-3",children:[(0,t.jsx)("h2",{className:"px-2 py-1 text-xs font-medium text-mute",children:e}),(0,t.jsx)("ul",{className:"space-y-0.5",children:s.map(e=>{let s=`${e.kind}:${e.id}`,n=D?.kind===e.kind&&D.id===e.id;return(0,t.jsxs)("li",{className:`flex items-start gap-2 rounded-md px-2 py-2 ${n?"bg-accent-dim":"hover:bg-panel-2"}`,children:[(0,t.jsx)("input",{type:"checkbox",checked:P.has(s),onChange:()=>{let t;return t=`${e.kind}:${e.id}`,void U(e=>{let s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s})},"aria-label":`Select ${e.name}`,className:"mt-1 accent-[var(--accent)]"}),(0,t.jsx)("button",{type:"button",onClick:()=>O({kind:e.kind,id:e.id}),"aria-current":n?"true":void 0,className:"min-w-0 flex-1 text-left",children:"run"===e.kind?(0,t.jsx)(_,{run:e,slo:i}):(0,t.jsx)(E,{compare:e})})]},s)})})]},e))]})]}),(0,t.jsx)("section",{"aria-label":"Details",className:"@container min-h-0 min-w-0 overflow-y-auto px-4 py-4 lg:px-6",children:D?.kind==="run"?(0,t.jsx)(I,{summary:V.find(e=>e.id===D.id),related:V,onSelect:e=>O({kind:"run",id:e}),onDelete:e=>void K([e],[]),onReveal:e=>void Y({folder:"runs",id:e})},D.id):D?.kind==="compare"?(0,t.jsx)(A,{summary:B.find(e=>e.id===D.id),onDelete:e=>void K([],[e]),onReveal:e=>void Y({folder:"compares",id:e})},D.id):d?(0,t.jsx)(z,{}):null})]})]})}])},37837,e=>{"use strict";var t=e.i(14368),s=e.i(99181),n=e.i(68820),r=e.i(14865);e.s(["Popover",0,function({anchor:e,open:a,onClose:l,children:i,label:o,width:c=280,role:d="dialog"}){let u=(0,s.useRef)(null),[m,p]=(0,s.useState)(null);return((0,s.useLayoutEffect)(()=>{if(!a)return;let t=()=>{if(!e.current)return;let t=(0,r.pageRect)(e.current),s=(0,r.pageViewport)(),n=u.current?.offsetHeight??320,a=s.height-t.bottom-8,l=t.top-8,i=a<Math.min(n,240)&&l>a,o=Math.min(Math.max(8,t.right-c),s.width-c-8);p({top:i?Math.max(8,t.top-Math.min(n,l)-4):t.bottom+4,left:o,maxHeight:Math.max(160,(i?l:a)-4)})};t();let s=window.requestAnimationFrame(t);return window.addEventListener("resize",t),()=>{window.cancelAnimationFrame(s),window.removeEventListener("resize",t)}},[a,e,c]),(0,s.useEffect)(()=>{if(!a)return;let t=t=>{let s=t.target;u.current?.contains(s)||e.current?.contains(s)||l()},s=t=>{"Escape"===t.key&&(t.stopPropagation(),l(),e.current?.focus())},n=e=>{u.current?.contains(e.target)||l()},r=t=>{e.current?.contains(t.target)&&(t.stopPropagation(),t.preventDefault(),l())};return document.addEventListener("pointerdown",t,!0),document.addEventListener("click",r,!0),document.addEventListener("keydown",s,!0),document.addEventListener("scroll",n,!0),()=>{document.removeEventListener("pointerdown",t,!0),document.removeEventListener("click",r,!0),document.removeEventListener("keydown",s,!0),document.removeEventListener("scroll",n,!0)}},[a,l,e]),(0,s.useEffect)(()=>{a&&window.setTimeout(()=>u.current?.querySelector("[role=menuitem], input, select, button")?.focus(),0)},[a]),!a||"u"<typeof document)?null:(0,n.createPortal)((0,t.jsx)("div",{ref:u,role:d,"aria-label":o,style:{top:m?.top??-9999,left:m?.left??-9999,width:c,maxHeight:m?.maxHeight},className:"anim-pop fixed z-[70] overflow-auto rounded-lg border border-line bg-panel p-3 shadow-2xl",children:i}),document.body)}])},32610,e=>{"use strict";var t=e.i(14368),s=e.i(99181);e.s(["Splitter",0,function({orientation:e,label:n,value:r,onMove:a,onStep:l,onReset:i,onDragging:o,className:c="",style:d}){let[u,m]=(0,s.useState)(!1);(0,s.useEffect)(()=>o?.(u),[u,o]),(0,s.useEffect)(()=>{if(!u)return;let t=e=>a(e.clientX,e.clientY),s=()=>m(!1);return document.body.style.userSelect="none",document.body.style.cursor="vertical"===e?"col-resize":"row-resize",window.addEventListener("pointermove",t),window.addEventListener("pointerup",s),()=>{document.body.style.userSelect="",document.body.style.cursor="",window.removeEventListener("pointermove",t),window.removeEventListener("pointerup",s)}},[u,a,e]);let p="vertical"===e;return(0,t.jsx)("div",{role:"separator",tabIndex:0,"aria-orientation":e,"aria-label":n,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(r),title:`${n} — drag, or double-click to reset`,onPointerDown:e=>{0===e.button&&(e.preventDefault(),m(!0))},onDoubleClick:i,style:{...d,outline:"none"},onKeyDown:e=>{let t=p?"ArrowLeft":"ArrowUp";e.key===t||e.key===(p?"ArrowRight":"ArrowDown")?(e.preventDefault(),l(e.key===t?-1:1,e.shiftKey)):("Enter"===e.key||"Home"===e.key)&&(e.preventDefault(),i())},className:`group z-20 hidden touch-none outline-none lg:block ${p?"w-2 cursor-col-resize":"h-2 cursor-row-resize"} ${c}`,children:(0,t.jsx)("span",{"aria-hidden":!0,className:`pointer-events-none absolute bg-accent opacity-0 transition-opacity group-hover:opacity-60 group-focus-visible:opacity-100 ${u?"opacity-100":""} ${p?"inset-y-0 left-1/2 w-0.5 -translate-x-1/2":"inset-x-0 top-1/2 h-0.5 -translate-y-1/2"}`})})}])},30617,e=>{"use strict";e.i(24856);var t=e.i(46306),s=e.i(36558),n=e.i(2385),r=e.i(17219);let a={base:0,header:1,desc:2,pass:3,warn:4,fail:5};function l(e){return String(e).replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("\n"," ")}function i(e,t,s){if("level"===e)return"pass"===t?a.pass:"warn"===t?a.warn:"fail"===t?a.fail:a.base;let n="number"==typeof t?t:Number(t);return"errors"===e?n>=s.errorFail?a.fail:n>=s.errorWarn?a.warn:a.pass:n>=s.p95FailMs?a.fail:n>=s.p95WarnMs?a.warn:a.pass}let o=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2
|
-
<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
|
|
3
|
-
<fonts count="3">
|
|
4
|
-
<font><sz val="11"/><name val="Calibri"/></font>
|
|
5
|
-
<font><b/><sz val="11"/><color rgb="FFFFFFFF"/><name val="Calibri"/></font>
|
|
6
|
-
<font><sz val="10"/><color rgb="FF5C6778"/><name val="Calibri"/></font>
|
|
7
|
-
</fonts>
|
|
8
|
-
<fills count="6">
|
|
9
|
-
<fill><patternFill patternType="none"/></fill>
|
|
10
|
-
<fill><patternFill patternType="gray125"/></fill>
|
|
11
|
-
<fill><patternFill patternType="solid"><fgColor rgb="FF0B8F7C"/></patternFill></fill>
|
|
12
|
-
<fill><patternFill patternType="solid"><fgColor rgb="FFDCFCE7"/></patternFill></fill>
|
|
13
|
-
<fill><patternFill patternType="solid"><fgColor rgb="FFFEF3C7"/></patternFill></fill>
|
|
14
|
-
<fill><patternFill patternType="solid"><fgColor rgb="FFFECACA"/></patternFill></fill>
|
|
15
|
-
</fills>
|
|
16
|
-
<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>
|
|
17
|
-
<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>
|
|
18
|
-
<cellXfs count="6">
|
|
19
|
-
<xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/>
|
|
20
|
-
<xf numFmtId="0" fontId="1" fillId="2" borderId="0" xfId="0" applyFont="1" applyFill="1" applyAlignment="1"><alignment horizontal="center" vertical="center"/></xf>
|
|
21
|
-
<xf numFmtId="0" fontId="2" fillId="0" borderId="0" xfId="0" applyFont="1" applyAlignment="1"><alignment wrapText="1" vertical="center"/></xf>
|
|
22
|
-
<xf numFmtId="0" fontId="0" fillId="3" borderId="0" xfId="0" applyFill="1"/>
|
|
23
|
-
<xf numFmtId="0" fontId="0" fillId="4" borderId="0" xfId="0" applyFill="1"/>
|
|
24
|
-
<xf numFmtId="0" fontId="0" fillId="5" borderId="0" xfId="0" applyFill="1"/>
|
|
25
|
-
</cellXfs>
|
|
26
|
-
</styleSheet>`;async function c(e,r,l){let o=(0,n.buildVerdict)(e,{slo:r}),c=(0,n.verdictBars)(r),u=(0,t.normalizeChartLayout)(l,(0,t.hasThresholdTiles)(e));return d([{name:"Overview",rows:[[{v:"Key",s:a.header},{v:"Value",s:a.header},{v:"What this means",s:a.header}],...(0,s.summaryExportRows)(e).map(e=>{let t=a.base;return"failed_rate"===e.key&&(t=i("errors",e.value,c)),"latency_p95_ms"===e.key&&(t=i("latency",e.value,c)),(e.key.startsWith("status_5")||"status_0"===e.key)&&(t=Number(e.value)>0?a.fail:a.pass),e.key.startsWith("status_4")&&Number(e.value)>0&&(t=a.warn),e.key.startsWith("threshold:")&&(t="pass"===e.value?a.pass:a.fail),[{v:e.key},{v:e.value,s:t},{v:e.description,s:a.desc}]})]},{name:"Result summary",rows:[[{v:"Field",s:a.header},{v:"Level",s:a.header},{v:"What this means",s:a.header}],[{v:"overall"},{v:o.overall,s:i("level",o.overall,c)},{v:o.headline,s:a.desc}],...o.aspects.map(e=>[{v:e.title},{v:e.level,s:i("level",e.level,c)},{v:e.summary,s:a.desc}]),[{v:"disclaimer"},{v:""},{v:o.disclaimer,s:a.desc}],...u.map((e,s)=>[{v:`chart_${s+1}`},{v:`${e.w}x${e.h}`},{v:t.CHART_TILE_TITLES[e.id],s:a.desc}])]},{name:"Second by second",rows:[s.SERIES_COLUMNS.map(e=>({v:e.header,s:a.header})),...e.buckets.map(e=>(0,s.seriesExportRow)(e).map((e,t)=>{let n=s.SERIES_COLUMNS[t]?.key,r=a.base;return"p95_ms"===n&&(r=i("latency",e,c)),"failed_rate"===n&&(r=i("errors",e,c)),"http_5xx"===n&&Number(e)>0&&(r=a.fail),"http_0"===n&&Number(e)>0&&(r=a.fail),"http_4xx"===n&&Number(e)>0&&(r=a.warn),"http_2xx"===n&&Number(e)>0&&(r=a.pass),{v:e,s:r}}))]}])}function d(e){let t={"[Content_Types].xml":`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
27
|
-
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
|
|
28
|
-
<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
|
|
29
|
-
<Default Extension="xml" ContentType="application/xml"/>
|
|
30
|
-
<Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/>
|
|
31
|
-
<Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/>
|
|
32
|
-
${e.map((e,t)=>` <Override PartName="/xl/worksheets/sheet${t+1}.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>`).join("\n")}
|
|
33
|
-
</Types>`,"_rels/.rels":`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
34
|
-
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
|
35
|
-
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/>
|
|
36
|
-
</Relationships>`,"xl/workbook.xml":`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
37
|
-
<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
|
|
38
|
-
<sheets>
|
|
39
|
-
${e.map((e,t)=>` <sheet name="${l(e.name.replace(/[:\\/?*[\]]/g," ").trim().slice(0,31)||"Sheet")}" sheetId="${t+1}" r:id="rId${t+1}"/>`).join("\n")}
|
|
40
|
-
</sheets>
|
|
41
|
-
</workbook>`,"xl/_rels/workbook.xml.rels":`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
42
|
-
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
|
43
|
-
${e.map((e,t)=>` <Relationship Id="rId${t+1}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet${t+1}.xml"/>`).join("\n")}
|
|
44
|
-
<Relationship Id="rId${e.length+1}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>
|
|
45
|
-
</Relationships>`,"xl/styles.xml":o};return e.forEach((e,s)=>{var n;let r,a,i;return t[`xl/worksheets/sheet${s+1}.xml`]=(n=e.rows,a=Array.from({length:r=n[0]?.length??0},(e,t)=>{let s=function(e,t,s=10,n=48){let r=s;for(let s of e){let e=s[t]?.v;void 0!==e&&(r=Math.max(r,String(e).length+2))}return Math.min(n,r)}(n,t,t===r-1&&r>=3?36:12,t===r-1&&r>=3?72:42);return`<col min="${t+1}" max="${t+1}" width="${s}" customWidth="1"/>`}).join(""),i=n.map((e,t)=>`<row r="${t+1}" ht="${0===t?22:18}" customHeight="1">${e.map((e,s)=>{var n;let r,a;return n=t+1,r=`${function(e){let t=e+1,s="";for(;t>0;)s=String.fromCharCode(65+(t-1)%26)+s,t=Math.floor((t-1)/26);return s}(s)}${n}`,a=void 0!==e.s?` s="${e.s}"`:"","number"==typeof e.v&&Number.isFinite(e.v)?`<c r="${r}"${a}><v>${e.v}</v></c>`:`<c r="${r}"${a} t="inlineStr"><is><t xml:space="preserve">${l(e.v)}</t></is></c>`}).join("")}</row>`).join(""),`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
46
|
-
<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
|
|
47
|
-
<sheetViews><sheetView workbookViewId="0"><pane ySplit="1" topLeftCell="A2" activePane="bottomLeft" state="frozen"/></sheetView></sheetViews>
|
|
48
|
-
<cols>${a}</cols>
|
|
49
|
-
<sheetData>${i}</sheetData>
|
|
50
|
-
</worksheet>`)}),new Blob([(0,r.zipStore)(t)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})}e.s(["S",0,a,"exportRunXlsx",0,c,"xlsxBook",0,d])},62766,e=>{"use strict";var t=e.i(99181);let s="apitestcenter-pane-sizes",n=(e,t,s)=>Math.min(s,Math.max(t,e));function r(e){let[s,n]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let t=window.matchMedia(e),s=()=>n(t.matches);return s(),t.addEventListener("change",s),()=>t.removeEventListener("change",s)},[e]),s}e.s(["useColumnSplit",0,function(e,{min:a=220,max:l=900,rest:i=360}={}){let o=r("(min-width: 1024px)"),c=(0,t.useRef)(null),d=`${s}:${e}`,[u,m]=(0,t.useState)(null),[p,h]=(0,t.useState)(0);(0,t.useEffect)(()=>{try{let e=Number(JSON.parse(localStorage.getItem(d)??"null"));Number.isFinite(e)&&e>0&&m(e)}catch{}},[d]),(0,t.useEffect)(()=>{let e=[...c.current?.children??[]].find(e=>"separator"!==e.getAttribute("role"));if(!e)return;let t=new ResizeObserver(()=>h(e.getBoundingClientRect().width));return t.observe(e),()=>t.disconnect()},[o]);let f=(0,t.useCallback)(e=>{let t=c.current?.getBoundingClientRect(),s=null===e?null:Math.round(n(e,a,Math.max(a,Math.min(l,(t?.width??l+i)-i))));m(s);try{null===s?localStorage.removeItem(d):localStorage.setItem(d,JSON.stringify(s))}catch{}},[l,a,i,d]),x=()=>c.current?.getBoundingClientRect();return{wide:o,gridRef:c,gridStyle:o&&null!==u?{gridTemplateColumns:`${u}px minmax(0,1fr)`}:void 0,splitter:{orientation:"vertical",value:(u??p)/Math.max(1,x()?.width??1)*100,onMove:e=>{let t=x();t&&f(e-t.left)},onStep:(e,t)=>f((u??p)+16*e*(t?4:1)),onReset:()=>f(null),className:"absolute inset-y-0 -translate-x-1/2",style:{left:`${p}px`}}}},"usePaneSizes",0,function(e,a){let l=r("(min-width: 1024px)"),i=r("(min-width: 1536px)"),o=(0,t.useRef)(null),[c,d]=(0,t.useState)({panel:null,beside:null,below:null});(0,t.useEffect)(()=>{try{let e=JSON.parse(localStorage.getItem(s)??"null"),t=e=>"number"==typeof e&&Number.isFinite(e)?e:null;e&&d({panel:t(e.panel),beside:t(e.beside),below:t(e.below)})}catch{}},[]);let u=(0,t.useCallback)(e=>{d(t=>{let n={...t,...e};try{localStorage.setItem(s,JSON.stringify(n))}catch{}return n})},[]),m=n(c.panel??(i?256:240),180,480),p=a?m:0,h=n("below"===e?c.below??.5:c.beside??(i?5/12:.5),.2,.8),f=l?"below"===e?{gridTemplateColumns:`${p}px minmax(0,1fr)`,gridTemplateRows:`minmax(0,${h}fr) minmax(0,${1-h}fr)`}:{gridTemplateColumns:`${p}px minmax(0,${h}fr) minmax(0,${1-h}fr)`}:void 0,x=()=>o.current?.getBoundingClientRect(),y=(0,t.useCallback)(e=>{let t=x();t&&u({panel:n(e-t.left,180,Math.min(480,.4*t.width))})},[u]),v=(0,t.useCallback)((t,s)=>{let r=x();r&&("below"===e?u({below:n((s-r.top)/r.height,.2,.8)}):u({beside:n((t-r.left-p)/Math.max(1,r.width-p),.2,.8)}))},[u,e,p]);return{wide:l,gridRef:o,gridStyle:f,panelWidth:l?m:void 0,panel:{value:m/480*100,onMove:e=>y(e),onStep:(e,t)=>u({panel:n(m+16*e*(t?4:1),180,480)}),onReset:()=>u({panel:null}),style:{left:`${p}px`}},split:{value:100*h,onMove:v,onStep:(t,s)=>u("below"===e?{below:n(h+.02*t*(s?5:1),.2,.8)}:{beside:n(h+.02*t*(s?5:1),.2,.8)}),onReset:()=>u("below"===e?{below:null}:{beside:null}),style:"below"===e?{top:`${100*h}%`,left:`${p}px`,right:0}:{left:`calc(${p}px + (100% - ${p}px) * ${h})`,top:0,bottom:0}}}}])},61230,17847,e=>{"use strict";e.s(["readableUrl",0,function(e){try{return decodeURI(e.replace(/\+/g,"%20")).replace(/%2C/gi,",").replace(/%24/g,"$").replace(/%27/g,"'").replace(/%3A/gi,":").replace(/%2F/gi,"/").replace(/%3D/gi,"=")}catch{return e}}],61230);var t=e.i(14368),s=e.i(99181),n=e.i(68820),r=e.i(14865);e.s(["ContextMenu",0,function({at:e,label:a,onClose:l,children:i}){let o=(0,s.useRef)(null),[c,d]=(0,s.useState)(null);return((0,s.useLayoutEffect)(()=>{let t=o.current;if(!t)return;let s=(0,r.pageViewport)();d({left:Math.max(8,Math.min(e.x,s.width-t.offsetWidth-8)),top:Math.max(8,Math.min(e.y,s.height-t.offsetHeight-8))}),t.querySelector('[role="menuitem"]:not(:disabled)')?.focus()},[e]),(0,s.useEffect)(()=>{let e=e=>{o.current?.contains(e.target)||l()},t=e=>{if("Escape"===e.key)e.stopPropagation(),l();else if("ArrowDown"===e.key||"ArrowUp"===e.key){e.preventDefault();let t=[...o.current?.querySelectorAll('[role="menuitem"]:not(:disabled)')??[]],s=t.indexOf(document.activeElement);t[(s+("ArrowDown"===e.key?1:-1)+t.length)%t.length]?.focus()}};return document.addEventListener("pointerdown",e,!0),document.addEventListener("scroll",e,!0),window.addEventListener("resize",l),window.addEventListener("keydown",t,!0),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("scroll",e,!0),window.removeEventListener("resize",l),window.removeEventListener("keydown",t,!0)}},[l]),"u"<typeof document)?null:(0,n.createPortal)((0,t.jsx)("div",{ref:o,role:"menu","aria-label":a,style:{left:c?.left??-9999,top:c?.top??-9999},className:"fixed z-[80] w-56 rounded-lg border border-line bg-panel p-1 shadow-2xl",children:i}),document.body)},"MenuItem",0,function({icon:e,label:s,hint:n,onSelect:r,danger:a=!1,disabled:l=!1}){return(0,t.jsxs)("button",{type:"button",role:"menuitem",disabled:l,onClick:r,className:`flex w-full items-center gap-2.5 rounded-md px-2.5 py-1.5 text-left text-sm disabled:opacity-40 ${a?"text-bad hover:bg-bad/10":"text-ink hover:bg-panel-2"}`,children:[(0,t.jsx)("span",{className:`flex w-4 shrink-0 justify-center ${a?"":"text-mute"}`,"aria-hidden":!0,children:e?(0,t.jsx)(e,{size:14}):null}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:s}),n?(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-mute",children:n}):null]})},"MenuLabel",0,function({children:e}){return(0,t.jsx)("div",{className:"px-2.5 pt-1.5 pb-1 text-[11px] font-medium tracking-wide text-mute uppercase",children:e})},"MenuSeparator",0,function(){return(0,t.jsx)("div",{role:"separator",className:"my-1 h-px bg-line"})}],17847)},17219,e=>{"use strict";let t=new Uint32Array(256).map((e,t)=>{let s=t;for(let e=0;e<8;e++)s=1&s?0xedb88320^s>>>1:s>>>1;return s>>>0});function s(e){let t=new Uint8Array(2);return new DataView(t.buffer).setUint16(0,e,!0),t}function n(e){let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),t}function r(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),s=0;for(let n of e)t.set(n,s),s+=n.length;return t}e.s(["zipStore",0,function(e){let a=new TextEncoder,l=[],i=[],o=0;for(let[c,d]of Object.entries(e)){let e=a.encode(c),u="string"==typeof d?a.encode(d):d,m=function(e){let s=0xffffffff;for(let n of e)s=t[(s^n)&255]^s>>>8;return(0xffffffff^s)>>>0}(u),p=r([n(0x4034b50),s(20),s(0),s(0),s(0),s(0),n(m),n(u.length),n(u.length),s(e.length),s(0),e,u]),h=r([n(0x2014b50),s(20),s(20),s(0),s(0),s(0),s(0),n(m),n(u.length),n(u.length),s(e.length),s(0),s(0),s(0),s(0),n(0),n(o),e]);l.push(p),i.push(h),o+=p.length}let c=r(i),d=r([n(0x6054b50),s(0),s(0),s(Object.keys(e).length),s(Object.keys(e).length),n(c.length),n(o),s(0)]),u=r([...l,c,d]);return new Blob([u.buffer.slice(u.byteOffset,u.byteOffset+u.byteLength)],{type:"application/zip"})}])},13643,e=>{"use strict";let t=(0,e.i(99522).default)("bell-off",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]]);e.s(["BellOff",0,t],13643)},95211,e=>{"use strict";let t=(0,e.i(99522).default)("columns-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);e.s(["Columns3",0,t],95211)},81538,e=>{"use strict";let t=(0,e.i(99522).default)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);e.s(["MoreHorizontal",0,t],81538)},13163,e=>{"use strict";let t=(0,e.i(99522).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",0,t],13163)},3792,e=>{"use strict";let t=(0,e.i(99522).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",0,t],3792)},95927,e=>{"use strict";let t=(0,e.i(99522).default)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);e.s(["Save",0,t],95927)},66478,14168,e=>{"use strict";let t=(0,e.i(99522).default)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);async function s(e){let t=await e.json().catch(()=>null);if(!e.ok)throw Error(t?.error??`Engine error (${e.status})`);return t}e.s(["Square",0,t],66478);let n=(e,t,s)=>fetch(t,{method:e,headers:void 0===s?void 0:{"content-type":"application/json"},body:void 0===s?void 0:JSON.stringify(s)});e.s(["suiteApi",0,{plan:e=>fetch(`/engine/suites/plan?collection=${encodeURIComponent(e)}`,{cache:"no-store"}).then(e=>s(e)),savePlan:(e,t)=>n("PUT","/engine/suites/plan",{collection:e,...t}).then(e=>s(e)),start:e=>n("POST","/engine/suites/runs",e).then(e=>s(e)),get:e=>fetch(`/engine/suites/runs/${encodeURIComponent(e)}`,{cache:"no-store"}).then(e=>s(e)),stop:e=>n("POST",`/engine/suites/runs/${encodeURIComponent(e)}/stop`).then(e=>s(e))},"suiteHref",0,function(e){return`/suite?c=${encodeURIComponent(e)}`}],14168)},36558,e=>{"use strict";function t(e,s=2){if(!Number.isFinite(e))return 0;let n=10**s;return Math.round(e*n)/n}function s(e){return e>=100?Math.round(e):e>=10?t(e,1):t(e,2)}function n(e){return e>=10?Math.round(e):t(e,1)}function r(e,t=e=>e){return null==e?"":t(e)}e.s(["SERIES_COLUMNS",0,[{key:"elapsed_s",header:"Seconds into test",description:"Seconds from the start of the run."},{key:"ts",header:"Clock time",description:"Wall-clock time for this one-second sample."},{key:"vus",header:"Concurrent users",description:"Virtual users (VUs) active in this second."},{key:"rps",header:"Requests per second",description:"Completed requests in this second."},{key:"p50_ms",header:"Median latency (ms)",description:"Half of requests this second were faster than this."},{key:"p95_ms",header:"95th percentile (ms)",description:"95% of requests this second were faster than this."},{key:"p99_ms",header:"99th percentile (ms)",description:"The slow tail this second — 1 in 100 was slower."},{key:"failed_rate",header:"Error rate",description:"Share of requests that failed in this second (0–1)."},{key:"http_2xx",header:"Success (2xx)",description:"Successful HTTP responses this second."},{key:"http_4xx",header:"Client errors (4xx)",description:"Client / auth errors this second."},{key:"http_5xx",header:"Server errors (5xx)",description:"Server errors this second."},{key:"http_0",header:"Network failures",description:"No HTTP status (timeout / reset) this second."},{key:"bytes_in",header:"Bytes received",description:"Response bytes this second."},{key:"bytes_out",header:"Bytes sent",description:"Request bytes this second."},{key:"p90_ms",header:"90th percentile (ms)",description:"90% of requests this second were faster than this."},{key:"p999_ms",header:"99.9th percentile (ms)",description:"1 in 1,000 requests this second was slower than this."},{key:"max_ms",header:"Slowest (ms)",description:"Slowest request this second."},{key:"ttfb_ms",header:"Server time (ms)",description:"Average time to first byte this second — the server's own work."},{key:"connect_ms",header:"TCP connect (ms)",description:"Average TCP connect time this second (0 when connections are reused)."},{key:"tls_ms",header:"TLS handshake (ms)",description:"Average TLS handshake time this second."},{key:"checks_passed",header:"Checks passed",description:"Response checks that passed this second."},{key:"checks_failed",header:"Checks failed",description:"Response checks that failed this second."},{key:"dropped",header:"Dropped requests",description:"Rate mode: requests k6 could not start this second."}],"seriesExportRow",0,function(e){return[e.elapsedS,e.ts,t(e.vus,1),s(e.rps),n(e.p50Ms),n(e.p95Ms),n(e.p99Ms),t(e.failedRate,4),e.http2xx,e.http4xx,e.http5xx,e.http0,e.bytesIn,e.bytesOut,r(e.p90Ms,n),r(e.p999Ms,n),r(e.maxMs,n),r(e.ttfbMs,n),r(e.connectMs,n),r(e.tlsMs,n),r(e.checksPassed),r(e.checksFailed),r(e.dropped)]},"summaryExportRows",0,function(e){let{summary:r}=e,a=[{key:"run_id",value:e.id,description:"Id of this run in this browser tab."},{key:"test_name",value:e.testName,description:"Display name (method, path, time)."},{key:"status",value:e.status,description:"completed, failed, cancelled, or still running."},{key:"started_at",value:e.startedAt,description:"When the load test started (UTC)."},{key:"ended_at",value:e.endedAt,description:"When the load test finished (UTC)."},{key:"method",value:e.definition.method,description:"HTTP method that was repeated."},{key:"url",value:e.definition.url,description:"Target URL (secrets are not exported)."},{key:"auth_mode",value:e.definition.auth.mode,description:"Auth used: none, bearer, basic, or api_key. The secret is not exported."},{key:"executor",value:e.definition.load.executor,description:"Load pattern: constant-vus (steady) or ramping-vus (ramp / hold / down)."},{key:"requests",value:r.http.requests,description:"How many HTTP calls finished. Zero usually means the target never answered."},{key:"rps_avg",value:s(r.http.rps.avg),description:"Average requests per second completed by this generator."},{key:"rps_max",value:s(r.http.rps.max),description:"Peak requests per second in any one-second sample."},{key:"failed_count",value:r.http.failed.count,description:"Requests that failed (4xx, 5xx, timeout, or no status)."},{key:"failed_rate",value:t(r.http.failed.rate,4),description:"Failed / total. Default warning bar is 1% (0.01)."},{key:"latency_min_ms",value:n(r.latencyMs.min),description:"Fastest request (milliseconds)."},{key:"latency_mean_ms",value:n(r.latencyMs.mean),description:"Average response time. Slow outliers pull this up."},{key:"latency_p50_ms",value:n(r.latencyMs.median),description:"Median — half of requests were faster than this."},{key:"latency_p95_ms",value:n(r.latencyMs.p95),description:"95th percentile — 95% of requests were faster. Usual headline latency."},{key:"latency_p99_ms",value:n(r.latencyMs.p99),description:"99th percentile — the slow tail (1 in 100 was slower)."},{key:"latency_max_ms",value:n(r.latencyMs.max),description:"Slowest single request."},{key:"vus_max",value:r.vus.max,description:"Peak concurrent users (virtual users / VUs)."},{key:"vus_avg",value:t(r.vus.avg,1),description:"Average concurrent users over the run."},{key:"bytes_in",value:r.data.bytesIn,description:"Response bytes received by the generator."},{key:"bytes_out",value:r.data.bytesOut,description:"Request bytes sent by the generator."},{key:"phase_ttfb_avg_ms",value:n(r.phasesMs.ttfb.avg),description:"Time to first byte — waiting on the server after the connection is up."},{key:"phase_tls_avg_ms",value:n(r.phasesMs.tls.avg),description:"TLS handshake time. High values often mean a far or overloaded endpoint."}];for(let[e,t]of Object.entries(r.http.status)){let s="0"===e?"No HTTP status (timeout / network).":Number(e)>=500?"Server error.":Number(e)>=400?"Client / auth error.":"Success-class response.";a.push({key:`status_${e}`,value:t,description:`How many responses had status ${e}. ${s}`})}for(let e of r.thresholds)a.push({key:`threshold:${e.name}`,value:e.ok?"pass":"fail",description:"k6 threshold result for this run."});return a}])}]);
|