axe-mcp-server 1.5.0-next.72bfecd4 → 1.5.0-next.9be76963
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/credits.json +36 -36
- package/extension/background-datadog-logs.bundle.js +1 -0
- package/extension/background.bundle.js +6 -6
- package/extension/browser-polyfill.js +1 -1
- package/extension/content.bundle.js +32 -32
- package/extension/credits.json +24 -24
- package/extension/datadog-logs.bundle.js +1 -0
- package/extension/devtools.bundle.js +1 -1
- package/extension/highlighter.js +1 -1
- package/extension/manifest.json +2 -1
- package/extension/panel.bundle.js +11 -11
- package/extension/panel.bundle.js.LICENSE.txt +6 -10
- package/extension/popup.bundle.js +2 -2
- package/extension/vendor.bundle.js +1 -1
- package/extension/vendor.bundle.js.LICENSE.txt +1 -1
- package/index.js +5 -5
- package/package.json +1 -1
package/credits.json
CHANGED
|
@@ -20,26 +20,26 @@
|
|
|
20
20
|
"publisher": "Arnout Kazemier",
|
|
21
21
|
"copyright": "Copyright (c) 2015 Arnout Kazemier, Martijn Swaagman, the Contributors."
|
|
22
22
|
},
|
|
23
|
-
"@hono/node-server@1.
|
|
23
|
+
"@hono/node-server@2.1.0": {
|
|
24
24
|
"name": "@hono/node-server",
|
|
25
|
-
"version": "1.
|
|
25
|
+
"version": "2.1.0",
|
|
26
26
|
"licenses": "MIT",
|
|
27
|
-
"path": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/@hono+node-server@1.
|
|
27
|
+
"path": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/@hono+node-server@2.1.0_hono@4.13.5/node_modules/@hono/node-server",
|
|
28
28
|
"licenseText": "MIT License\n\nCopyright (c) 2022 - present, Yusuke Wada and Hono contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
|
|
29
|
-
"licenseFile": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/@hono+node-server@1.
|
|
29
|
+
"licenseFile": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/@hono+node-server@2.1.0_hono@4.13.5/node_modules/@hono/node-server/LICENSE",
|
|
30
30
|
"repository": "https://github.com/honojs/node-server",
|
|
31
31
|
"publisher": "Yusuke Wada",
|
|
32
32
|
"email": "yusuke@kamawada.com",
|
|
33
33
|
"url": "https://github.com/yusukebe",
|
|
34
34
|
"copyright": "Copyright (c) 2022 - present, Yusuke Wada and Hono contributors"
|
|
35
35
|
},
|
|
36
|
-
"@modelcontextprotocol/sdk@1.
|
|
36
|
+
"@modelcontextprotocol/sdk@1.30.0": {
|
|
37
37
|
"name": "@modelcontextprotocol/sdk",
|
|
38
|
-
"version": "1.
|
|
38
|
+
"version": "1.30.0",
|
|
39
39
|
"licenses": "MIT",
|
|
40
|
-
"path": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
40
|
+
"path": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@4.4.1/node_modules/@modelcontextprotocol/sdk",
|
|
41
41
|
"licenseText": "MIT License\n\nCopyright (c) 2024 Anthropic, PBC\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
|
|
42
|
-
"licenseFile": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
42
|
+
"licenseFile": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@4.4.1/node_modules/@modelcontextprotocol/sdk/LICENSE",
|
|
43
43
|
"repository": "https://github.com/modelcontextprotocol/typescript-sdk",
|
|
44
44
|
"publisher": "Anthropic, PBC",
|
|
45
45
|
"url": "https://anthropic.com",
|
|
@@ -106,13 +106,13 @@
|
|
|
106
106
|
"licenseFile": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/@types+keyv@3.1.4/node_modules/@types/keyv/LICENSE",
|
|
107
107
|
"repository": "https://github.com/DefinitelyTyped/DefinitelyTyped"
|
|
108
108
|
},
|
|
109
|
-
"@types/node@24.13.
|
|
109
|
+
"@types/node@24.13.3": {
|
|
110
110
|
"name": "@types/node",
|
|
111
|
-
"version": "24.13.
|
|
111
|
+
"version": "24.13.3",
|
|
112
112
|
"licenses": "MIT",
|
|
113
|
-
"path": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/@types+node@24.13.
|
|
113
|
+
"path": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/@types+node@24.13.3/node_modules/@types/node",
|
|
114
114
|
"licenseText": " MIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n",
|
|
115
|
-
"licenseFile": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/@types+node@24.13.
|
|
115
|
+
"licenseFile": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/@types+node@24.13.3/node_modules/@types/node/LICENSE",
|
|
116
116
|
"repository": "https://github.com/DefinitelyTyped/DefinitelyTyped"
|
|
117
117
|
},
|
|
118
118
|
"@types/responselike@1.0.3": {
|
|
@@ -581,13 +581,13 @@
|
|
|
581
581
|
"email": "tj@vision-media.ca",
|
|
582
582
|
"copyright": "Copyright (c) 2009-2014 TJ Holowaychuk <tj@vision-media.ca>. Copyright (c) 2013-2014 Roman Shtylman <shtylman+expressjs@gmail.com>. Copyright (c) 2014-2015 Douglas Christopher Wilson <doug@somethingdoug.com>"
|
|
583
583
|
},
|
|
584
|
-
"express-rate-limit@8.
|
|
584
|
+
"express-rate-limit@8.5.2": {
|
|
585
585
|
"name": "express-rate-limit",
|
|
586
|
-
"version": "8.
|
|
586
|
+
"version": "8.5.2",
|
|
587
587
|
"licenses": "MIT",
|
|
588
|
-
"path": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/express-rate-limit@8.
|
|
588
|
+
"path": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/express-rate-limit@8.5.2_express@5.2.1/node_modules/express-rate-limit",
|
|
589
589
|
"licenseText": "# MIT License\n\nCopyright 2023 Nathan Friedly, Vedant K\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
|
|
590
|
-
"licenseFile": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/express-rate-limit@8.
|
|
590
|
+
"licenseFile": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/express-rate-limit@8.5.2_express@5.2.1/node_modules/express-rate-limit/license.md",
|
|
591
591
|
"repository": "https://github.com/express-rate-limit/express-rate-limit",
|
|
592
592
|
"publisher": "Nathan Friedly",
|
|
593
593
|
"url": "http://nfriedly.com/",
|
|
@@ -764,13 +764,13 @@
|
|
|
764
764
|
"email": "ljharb@gmail.com",
|
|
765
765
|
"copyright": "Copyright (c) Jordan Harband and contributors"
|
|
766
766
|
},
|
|
767
|
-
"hono@4.
|
|
767
|
+
"hono@4.13.5": {
|
|
768
768
|
"name": "hono",
|
|
769
|
-
"version": "4.
|
|
769
|
+
"version": "4.13.5",
|
|
770
770
|
"licenses": "MIT",
|
|
771
|
-
"path": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/hono@4.
|
|
771
|
+
"path": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/hono@4.13.5/node_modules/hono",
|
|
772
772
|
"licenseText": "MIT License\n\nCopyright (c) 2021 - present, Yusuke Wada and Hono contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
|
|
773
|
-
"licenseFile": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/hono@4.
|
|
773
|
+
"licenseFile": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/hono@4.13.5/node_modules/hono/LICENSE",
|
|
774
774
|
"repository": "https://github.com/honojs/hono",
|
|
775
775
|
"publisher": "Yusuke Wada",
|
|
776
776
|
"email": "yusuke@kamawada.com",
|
|
@@ -823,13 +823,13 @@
|
|
|
823
823
|
"email": "ashtuchkin@gmail.com",
|
|
824
824
|
"copyright": "Copyright (c) 2011 Alexander Shtuchkin"
|
|
825
825
|
},
|
|
826
|
-
"ip-address@10.
|
|
826
|
+
"ip-address@10.2.0": {
|
|
827
827
|
"name": "ip-address",
|
|
828
|
-
"version": "10.
|
|
828
|
+
"version": "10.2.0",
|
|
829
829
|
"licenses": "MIT",
|
|
830
|
-
"path": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/ip-address@10.
|
|
830
|
+
"path": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/ip-address@10.2.0/node_modules/ip-address",
|
|
831
831
|
"licenseText": "Copyright (C) 2011 by Beau Gunderson\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n",
|
|
832
|
-
"licenseFile": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/ip-address@10.
|
|
832
|
+
"licenseFile": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/ip-address@10.2.0/node_modules/ip-address/LICENSE",
|
|
833
833
|
"repository": "https://github.com/beaugunderson/ip-address",
|
|
834
834
|
"publisher": "Beau Gunderson",
|
|
835
835
|
"email": "beau@beaugunderson.com",
|
|
@@ -1397,13 +1397,13 @@
|
|
|
1397
1397
|
"url": "sindresorhus.com",
|
|
1398
1398
|
"copyright": "Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)"
|
|
1399
1399
|
},
|
|
1400
|
-
"side-channel@1.1.
|
|
1400
|
+
"side-channel@1.1.1": {
|
|
1401
1401
|
"name": "side-channel",
|
|
1402
|
-
"version": "1.1.
|
|
1402
|
+
"version": "1.1.1",
|
|
1403
1403
|
"licenses": "MIT",
|
|
1404
|
-
"path": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/side-channel@1.1.
|
|
1404
|
+
"path": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/side-channel@1.1.1/node_modules/side-channel",
|
|
1405
1405
|
"licenseText": "MIT License\n\nCopyright (c) 2019 Jordan Harband\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
|
|
1406
|
-
"licenseFile": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/side-channel@1.1.
|
|
1406
|
+
"licenseFile": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/side-channel@1.1.1/node_modules/side-channel/LICENSE",
|
|
1407
1407
|
"repository": "https://github.com/ljharb/side-channel",
|
|
1408
1408
|
"publisher": "Jordan Harband",
|
|
1409
1409
|
"email": "ljharb@gmail.com",
|
|
@@ -1555,13 +1555,13 @@
|
|
|
1555
1555
|
"licenseFile": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/type-is@2.0.1/node_modules/type-is/LICENSE",
|
|
1556
1556
|
"copyright": "Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>. Copyright (c) 2014-2015 Douglas Christopher Wilson <doug@somethingdoug.com>"
|
|
1557
1557
|
},
|
|
1558
|
-
"undici@8.
|
|
1558
|
+
"undici@8.10.0": {
|
|
1559
1559
|
"name": "undici",
|
|
1560
|
-
"version": "8.
|
|
1560
|
+
"version": "8.10.0",
|
|
1561
1561
|
"licenses": "MIT",
|
|
1562
|
-
"path": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/undici@8.
|
|
1562
|
+
"path": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/undici@8.10.0/node_modules/undici",
|
|
1563
1563
|
"licenseText": "MIT License\n\nCopyright (c) Matteo Collina and Undici contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
|
|
1564
|
-
"licenseFile": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/undici@8.
|
|
1564
|
+
"licenseFile": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/undici@8.10.0/node_modules/undici/LICENSE",
|
|
1565
1565
|
"repository": "https://github.com/nodejs/undici",
|
|
1566
1566
|
"copyright": "Copyright (c) Matteo Collina and Undici contributors"
|
|
1567
1567
|
},
|
|
@@ -1802,13 +1802,13 @@
|
|
|
1802
1802
|
"url": "https://github.com/zekth",
|
|
1803
1803
|
"copyright": "Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae. Copyright (c) 2021-present The Fastify team. All rights reserved."
|
|
1804
1804
|
},
|
|
1805
|
-
"qs@6.15.
|
|
1805
|
+
"qs@6.15.3": {
|
|
1806
1806
|
"name": "qs",
|
|
1807
|
-
"version": "6.15.
|
|
1807
|
+
"version": "6.15.3",
|
|
1808
1808
|
"licenses": "BSD-3-Clause",
|
|
1809
|
-
"path": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/qs@6.15.
|
|
1809
|
+
"path": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/qs@6.15.3/node_modules/qs",
|
|
1810
1810
|
"licenseText": "BSD 3-Clause License\n\nCopyright (c) 2014, Nathan LaFreniere and other [contributors](https://github.com/ljharb/qs/graphs/contributors)\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n",
|
|
1811
|
-
"licenseFile": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/qs@6.15.
|
|
1811
|
+
"licenseFile": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/qs@6.15.3/node_modules/qs/LICENSE.md",
|
|
1812
1812
|
"repository": "https://github.com/ljharb/qs",
|
|
1813
1813
|
"copyright": "Copyright (c) 2014, Nathan LaFreniere and other [contributors](https://github.com/ljharb/qs/graphs/contributors). All rights reserved."
|
|
1814
1814
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(this.webpackChunk||=[]).push([[413],{833(e,t,n){n.r(t),n.d(t,{HandlerType:()=>sn,Logger:()=>an,StatusType:()=>tn,datadogLogs:()=>Sr});const o={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},r=console,s={};Object.keys(o).forEach(e=>{s[e]=r[e]});const i="Datadog Browser SDK:",c={debug:s.debug.bind(r,i),log:s.log.bind(r,i),info:s.info.bind(r,i),warn:s.warn.bind(r,i),error:s.error.bind(r,i)},a="https://docs.datadoghq.com",u=`${a}/real_user_monitoring/browser/troubleshooting`,l="More details:";function d(e,t){return(...n)=>{try{return e(...n)}catch(e){c.error(t,e)}}}let f,p=!1;function g(e){p=e}function y(e){return function(...t){return m(e,this,t)}}function m(e,t,n){try{return e.apply(t,n)}catch(e){b(e)}}function b(e){if(v(e),f)try{f(e)}catch(e){v(e)}}function v(...e){p&&c.error("[MONITOR]",...e)}function h(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get(){return this},configurable:!0});let e=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof e&&(e="object"==typeof self?self:"object"==typeof window?window:{}),e}const S=h(),w="WorkerGlobalScope"in S;function k(e){const t=S.queueMicrotask;"function"==typeof t?t(y(e)):Promise.resolve().then(y(e))}class _{constructor(e){this.onFirstSubscribe=e,this.observers=[]}subscribe(e){return this.addObserver(e),{unsubscribe:()=>this.removeObserver(e)}}notify(e){this.observers.forEach(t=>t(e))}addObserver(e){this.observers.push(e),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(e){this.observers=this.observers.filter(t=>e!==t),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}}function x(...e){return new _(t=>{const n=e.map(e=>e.subscribe(e=>t.notify(e)));return()=>n.forEach(e=>e.unsubscribe())})}class C extends _{constructor(e){super(),this.maxBufferSize=e,this.buffer=[]}notify(e){this.buffer.push(e),this.buffer.length>this.maxBufferSize&&this.buffer.shift(),super.notify(e)}subscribe(e){let t=!1;const n={unsubscribe:()=>{t=!0,this.removeObserver(e)}};return k(()=>{for(const n of this.buffer){if(t)return;e(n)}t||this.addObserver(e)}),n}unbuffer(){k(()=>{this.maxBufferSize=this.buffer.length=0})}}const E={GRANTED:"granted",NOT_GRANTED:"not-granted"};new Map;function T(e,t){const n=h();let o;return n.Zone&&"function"==typeof n.Zone.__symbol__&&(o=e[n.Zone.__symbol__(t)]),o||(o=e[t]),o}function O(e,t){return T(h(),"setTimeout")(y(e),t)}function R(e){T(h(),"clearTimeout")(e)}function $(e,t){return T(h(),"setInterval")(y(e),t)}function A(e){T(h(),"clearInterval")(e)}function I(){}function L(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function P(e){return"object"===L(e)}const D="?";function U(e){var t,n;const o=[];let r=z(e,"stack");const s=String(e);if(r&&r.startsWith(s)&&(r=r.slice(s.length)),r&&r.split("\n").forEach(e=>{const t=function(e){const t=M.exec(e);if(!t)return;const n=t[2]&&0===t[2].indexOf("native"),o=t[2]&&0===t[2].indexOf("eval"),r=N.exec(t[2]);o&&r&&(t[2]=r[1],t[3]=r[2],t[4]=r[3]);return{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||D,line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}(e)||function(e){const t=j.exec(e);if(!t)return;return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||D,line:t[3]?+t[3]:void 0,url:t[2]}}(e)||function(e){const t=F.exec(e);if(!t)return;return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||D,line:+t[3],url:t[2]}}(e)||function(e){const t=H.exec(e);if(!t)return;const n=t[3]&&t[3].indexOf(" > eval")>-1,o=G.exec(t[3]);n&&o&&(t[3]=o[1],t[4]=o[2],t[5]=void 0);return{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||D,line:t[4]?+t[4]:void 0,url:t[3]}}(e);t&&(!t.func&&t.line&&(t.func=D),o.push(t))}),o.length>0&&function(){if(void 0!==K)return K;class e extends Error{constructor(){super(),this.name="Error"}}const[t,n]=[e,Error].map(e=>new e);return K=V(Object.getPrototypeOf(t))&&n.stack!==t.stack,K}()&&e instanceof Error){const r=[];let s=e;for(;(s=Object.getPrototypeOf(s))&&V(s);){const e=(null===(t=s.constructor)||void 0===t?void 0:t.name)||D;r.push(e)}for(let e=r.length-1;e>=0&&(null===(n=o[0])||void 0===n?void 0:n.func)===r[e];e--)o.shift()}return{message:z(e,"message"),name:z(e,"name"),stack:o}}const B="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",q="(?::(\\d+))",M=new RegExp(`^\\s*at (.*?) ?\\(${B}${q}?${q}?\\)?\\s*$`,"i"),N=new RegExp(`\\((\\S*)${q}${q}\\)`);const j=new RegExp(`^\\s*at\\s*(?:(.*)?(?: @))?\\s*${B}${q}?${q}??\\s*$`,"i");const F=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;const H=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,G=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function z(e,t){return P(e)&&"string"==typeof e[t]?e[t]:void 0}function W(e,t,n,o){if(void 0===t)return;const{name:r,message:s}=function(e){let t,n;"[object String]"==={}.toString.call(e)&&([,t,n]=J.exec(e));return{name:t,message:n}}(e);return{name:r,message:s,stack:[{url:t,column:o,line:n}]}}const J=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function V(e){return String(e.constructor).startsWith("class ")}let K;function X(e){const t=new Error(e);let n;return t.name="HandlingStack",m(()=>{const e=U(t);e.stack=e.stack.slice(2),n=Y(e)}),n}function Y(e){let t=Z(e);return e.stack.forEach(e=>{const n="?"===e.func?"<anonymous>":e.func,o=e.args&&e.args.length>0?`(${e.args.join(", ")})`:"",r=e.line?`:${e.line}`:"",s=e.line&&e.column?`:${e.column}`:"";t+=`\n at ${n}${o} @ ${e.url}${r}${s}`}),t}function Z(e){return`${e.name||"Error"}: ${e.message}`}function Q(e,t,n,{computeHandlingStack:o}={}){let r=e[t];if("function"!=typeof r){if(!(t in e)||"string"!=typeof t||!t.startsWith("on"))return{stop:I};r=I}let s=!1;const i=function(){if(s)return r.apply(this,arguments);const e=Array.from(arguments);let t;m(n,null,[{target:this,parameters:e,onPostCall:e=>{t=e},handlingStack:o?X("instrumented method"):void 0}]);const i=r.apply(this,e);return t&&m(t,null,[i]),i};return e[t]=i,{stop:()=>{s=!0,e[t]===i&&(e[t]=r)}}}const ee=31536e6;function te(){return(new Date).getTime()}function ne(){return te()}function oe(){return performance.now()}function re(){return{relative:oe(),timeStamp:ne()}}function se(e,t){return t-e}function ie(e,t){return e+t}function ce(e){return e-ue()}let ae;function ue(){var e,t;return void 0===ae&&(ae=null!==(t=null===(e=performance.timing)||void 0===e?void 0:e.navigationStart)&&void 0!==t?t:performance.timeOrigin),ae}function le(e,t,n){if("object"!=typeof e||null===e)return JSON.stringify(e);const o=de(Object.prototype),r=de(Array.prototype),s=de(Object.getPrototypeOf(e)),i=de(e);try{return JSON.stringify(e,t,n)}catch(e){return"<error: unable to serialize object>"}finally{o(),r(),s(),i()}}function de(e){const t=e,n=t.toJSON;return n?(delete t.toJSON,()=>{t.toJSON=n}):I}function fe(e,t=225280){const n=de(Object.prototype),o=de(Array.prototype),r=[],s=new WeakMap,i=pe(e,"$",void 0,r,s),c=JSON.stringify(i);let a=c?c.length:0;if(!(a>t)){for(;r.length>0&&a<t;){const n=r.shift();let o=0;if(Array.isArray(n.source))for(let i=0;i<n.source.length;i++){const c=pe(n.source[i],n.path,i,r,s);if(a+=void 0!==c?JSON.stringify(c).length:4,a+=o,o=1,a>t){ye(t,"truncated",e);break}n.target[i]=c}else for(const i in n.source)if(Object.prototype.hasOwnProperty.call(n.source,i)){const c=pe(n.source[i],n.path,i,r,s);if(void 0!==c&&(a+=JSON.stringify(c).length+o+i.length+3,o=1),a>t){ye(t,"truncated",e);break}n.target[i]=c}}return n(),o(),i}ye(t,"discarded",e)}function pe(e,t,n,o,r){const s=function(e){const t=e;if(t&&"function"==typeof t.toJSON)try{return t.toJSON()}catch(e){}return e}(e);if(!s||"object"!=typeof s)return function(e){if("bigint"==typeof e)return`[BigInt] ${e.toString()}`;if("function"==typeof e)return`[Function] ${e.name||"unknown"}`;if("symbol"==typeof e)return`[Symbol] ${e.description||e.toString()}`;return e}(s);const i=ge(s);if("[Object]"!==i&&"[Array]"!==i&&"[Error]"!==i)return i;const c=e;if(r.has(c))return`[Reference seen at ${r.get(c)}]`;const a=void 0!==n?`${t}.${n}`:t,u=Array.isArray(s)?[]:{};return r.set(c,a),o.push({source:s,target:u,path:a}),u}function ge(e){try{if(e instanceof Event)return{type:(t=e).type,isTrusted:t.isTrusted,currentTarget:t.currentTarget?ge(t.currentTarget):null,target:t.target?ge(t.target):null};if(e instanceof RegExp)return`[RegExp] ${e.toString()}`;const n=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(n&&n[1])return`[${n[1]}]`}catch(e){}var t;return"[Unserializable]"}function ye(e,t,n){c.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,n)}const me="No stack, consider using an instance of Error";function be({originalError:e,stackTrace:t,source:n,useFallbackStack:o=!0,nonErrorPrefix:r}){const s=ke(e);return!t&&s&&(t=U(e)),{source:n,type:t?t.name:void 0,message:he(t,s,r,e),stack:t?Y(t):o?me:void 0}}function ve({stackTrace:e,originalError:t,handlingStack:n,componentStack:o,startClocks:r,nonErrorPrefix:s,useFallbackStack:i=!0,source:c,handling:a}){return{startClocks:r,handling:a,handlingStack:n,componentStack:o,originalError:t,...be({originalError:t,stackTrace:e,source:c,useFallbackStack:i,nonErrorPrefix:s}),causes:ke(t)?_e(t,c):void 0,fingerprint:Se(t),context:we(t)}}function he(e,t,n,o){return(null==e?void 0:e.message)&&(null==e?void 0:e.name)?e.message:t?"Empty message":n?`${n} ${le(fe(o))}`:le(fe(o))}function Se(e){return ke(e)&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function we(e){if(P(e))return e.dd_context}function ke(e){return e instanceof Error||"[object Error]"===Object.prototype.toString.call(e)}function _e(e,t){const n=[];let o=e.cause;for(;null!=o&&n.length<10;){const e=be({originalError:o,source:t,useFallbackStack:!1});n.push(e),o=ke(o)?o.cause:void 0}return n.length?n:void 0}const xe="agent",Ce="console",Ee="logger",Te="network",Oe="source",Re="report";function $e(){return new _(e=>{const t=(t,n)=>{const o=ve({stackTrace:n,originalError:t,startClocks:re(),nonErrorPrefix:"Uncaught",source:Oe,handling:"unhandled"});e.notify(o)},{stop:n}=(o=t,Q(h(),"onerror",({parameters:[e,t,n,r,s]})=>{let i;ke(s)||(i=W(e,t,n,r)),o(null!=s?s:e,i)}));var o;const{stop:r}=function(e){return Q(h(),"onunhandledrejection",({parameters:[t]})=>{e(t.reason||"Empty reason")})}(t);return()=>{n(),r()}})}function Ae(e){return{...e}}function Ie(e,t){return Object.keys(e).some(n=>e[n]===t)}function Le(e){return 0===Object.keys(e).length}var Pe;!function(e){e.TRACK_INTAKE_REQUESTS="track_intake_requests",e.USE_TREE_WALKER_FOR_ACTION_NAME="use_tree_walker_for_action_name",e.FEATURE_OPERATION_VITAL="feature_operation_vital",e.START_STOP_ACTION="start_stop_action",e.START_STOP_RESOURCE="start_stop_resource",e.USE_CHANGE_RECORDS="use_change_records",e.USE_INCREMENTAL_CHANGE_RECORDS="use_incremental_change_records",e.TOO_MANY_REQUESTS_INVESTIGATION="too_many_requests_investigation",e.TRACK_RESOURCE_HEADERS="track_resource_headers"}(Pe||(Pe={}));const De=new Set;function Ue(e){Array.isArray(e)&&e.filter(e=>Ie(Pe,e)).forEach(e=>{De.add(e)})}function Be(){return De}function qe(e){const{env:t,service:n,version:o,datacenter:r,sdkVersion:s,variant:i}=e,c=[Me("sdk_version",null!=s?s:"6.33.0")];return t&&c.push(Me("env",t)),n&&c.push(Me("service",n)),o&&c.push(Me("version",o)),r&&c.push(Me("datacenter",r)),i&&c.push(Me("variant",i)),c}function Me(e,t){const n=t?`${e}:${t}`:e;return(n.length>200||function(e){if(!function(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch(e){return!1}}())return!1;return new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(e)}(n))&&c.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${l} ${a}/getting_started/tagging/#defining-tags`),Ne(n)}function Ne(e){return e.replace(/,/g,"_")}const je="datad0g.com",Fe="dd0g-gov.com",He="datadoghq.com",Ge="pci.browser-intake-datadoghq.com",ze=["ddsource","dd-api-key","dd-request-id"];function We(e,t){const n=S.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function Je(e){return 0!==e&&100*Math.random()<=e}function Ve(e,t,n=function(){if("undefined"!=typeof WeakSet){const e=new WeakSet;return{hasAlreadyBeenSeen(t){const n=e.has(t);return n||e.add(t),n}}}const e=[];return{hasAlreadyBeenSeen(t){const n=e.indexOf(t)>=0;return n||e.push(t),n}}}()){if(void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){const e=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,e)}if(n.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){const o=Array.isArray(e)?e:[];for(let e=0;e<t.length;++e)o[e]=Ve(o[e],t[e],n);return o}const o="object"===L(e)?e:{};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=Ve(o[e],t[e],n));return o}function Ke(e){return Ve(void 0,e)}function Xe(...e){let t;for(const n of e)null!=n&&(t=Ve(t,n));return t}function Ye(){var e;const t=S.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:null===(e=t.connection)||void 0===e?void 0:e.effectiveType}}function Ze(){const e=h().DatadogEventBridge;if(e)return{getCapabilities(){var t;return JSON.parse((null===(t=e.getCapabilities)||void 0===t?void 0:t.call(e))||"[]")},getPrivacyLevel(){var t;return null===(t=e.getPrivacyLevel)||void 0===t?void 0:t.call(e)},getAllowedWebViewHosts:()=>JSON.parse(e.getAllowedWebViewHosts()),send(t,n,o){const r=o?{id:o}:void 0;e.send(JSON.stringify({eventType:t,event:n,view:r}))}}}function Qe(e){var t;void 0===e&&(e=null===(t=h().location)||void 0===t?void 0:t.hostname);const n=Ze();return!!n&&n.getAllowedWebViewHosts().some(t=>e===t||e.endsWith(`.${t}`))}function et(e){return Object.values(e)}function tt(e,t,n,o,r){return nt(e,t,[n],o,r)}function nt(e,t,n,o,{once:r,capture:s,passive:i}={}){const c=y(t=>{(t.isTrusted||t.__ddIsTrusted||e.allowUntrustedEvents)&&(r&&d(),o(t))}),a=i?{capture:s,passive:i}:s,u=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,l=T(u,"addEventListener");function d(){const e=T(u,"removeEventListener");n.forEach(n=>e.call(t,n,c,a))}return n.forEach(e=>l.call(t,e,c,a)),{stop:d}}const ot={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function rt(e){return new _(t=>{if(w)return;const{stop:n}=nt(e,window,["visibilitychange","freeze"],e=>{"visibilitychange"===e.type&&"hidden"===document.visibilityState?t.notify({reason:ot.HIDDEN}):"freeze"===e.type&&t.notify({reason:ot.FROZEN})},{capture:!0}),o=tt(e,window,"beforeunload",()=>{t.notify({reason:ot.UNLOADING})}).stop;return()=>{n(),o()}})}const st=/[^\u0000-\u007F]/;function it(e){return st.test(e)?void 0!==window.TextEncoder?(new TextEncoder).encode(e).length:new Blob([e]).size:e.length}const ct=262144;function at({encoder:e,request:t,flushController:n}){let o={};const r=n.flushObservable.subscribe(n=>function(n){const r=et(o).join("\n");o={};const s=(c=n.reason,et(ot).includes(c)),i=s?t.sendOnExit:t.send;var c;if(s&&e.isAsync){const t=e.finishSync();t.outputBytesCount&&i(ut(t));const n=[t.pendingData,r].filter(Boolean).join("\n");n&&i({data:n,bytesCount:it(n)})}else r&&e.write(e.isEmpty?r:`\n${r}`),e.finish(e=>{i(ut(e))})}(n));function s(t,r){const s=le(t),i=e.estimateEncodedBytesCount(s);i>=ct?c.warn(`Discarded a message whose size was bigger than the maximum allowed size 256KiB. ${l} ${u}/#technical-limitations`):(function(e){return void 0!==e&&void 0!==o[e]}(r)&&function(t){const r=o[t];delete o[t];const s=e.estimateEncodedBytesCount(r);n.notifyAfterRemoveMessage(s)}(r),function(t,r,s){n.notifyBeforeAddMessage(r),void 0!==s?(o[s]=t,n.notifyAfterAddMessage()):e.write(e.isEmpty?t:`\n${t}`,e=>{n.notifyAfterAddMessage(e-r)})}(s,i,r))}return{flushController:n,add:s,upsert:s,stop:r.unsubscribe}}function ut(e){let t;return t="string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),{data:t,bytesCount:e.outputBytesCount,encoding:e.encoding}}function lt(e){return e>=500}const dt=20971520;function ft(e,t,n,o,r,s){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?gt(e,t,n,s,{onSuccess:()=>yt(0,t,n,o,r,s),onFailure:()=>{t.queuedPayloads.enqueue(e)||s.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e}),pt(t,n,o,r,s)}}):t.queuedPayloads.enqueue(e)||s.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e})}function pt(e,t,n,o,r){2===e.transportStatus&&O(()=>{gt(e.queuedPayloads.first(),e,t,r,{onSuccess:()=>{e.queuedPayloads.dequeue(),e.currentBackoffTime=1e3,yt(1,e,t,n,o,r)},onFailure:()=>{e.currentBackoffTime=Math.min(6e4,2*e.currentBackoffTime),pt(e,t,n,o,r)}})},e.currentBackoffTime)}function gt(e,t,n,o,{onSuccess:r,onFailure:s}){t.bandwidthMonitor.add(e),n(e,n=>{t.bandwidthMonitor.remove(e),!function(e){return"opaque"!==e.type&&(0===e.status&&!navigator.onLine||408===e.status||429===e.status||lt(e.status))}(n)?(t.transportStatus=0,o.notify({type:"success",bandwidth:t.bandwidthMonitor.stats(),payload:e}),r()):(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:n.status},o.notify({type:"failure",bandwidth:t.bandwidthMonitor.stats(),payload:e}),s())})}function yt(e,t,n,o,r,s){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(r({message:`Reached max ${o} events size queued for upload: 20MiB`,source:xe,startClocks:re()}),t.queueFullReported=!0);const i=t.queuedPayloads;for(t.queuedPayloads=mt();i.size()>0;)ft(i.dequeue(),t,n,o,r,s)}function mt(){const e=[];return{bytesCount:0,enqueue(t){return!this.isFull()&&(e.push(t),this.bytesCount+=t.bytesCount,!0)},first:()=>e[0],dequeue(){const t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:()=>e.length,isFull(){return this.bytesCount>=dt}}}const bt=16384;function vt(e,t,n=16384){const o=new _,r={transportStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=81920&&this.ongoingRequestCount<32},add(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}},queuedPayloads:mt(),queueFullReported:!1};return{observable:o,send:n=>{for(const s of e)ft(n,r,(e,t)=>{wt(s,e,t)},s.trackType,t,o)},sendOnExit:t=>{for(const o of e)ht(o,n,t)}}}function ht(e,t,n){if(!!navigator.sendBeacon&&n.bytesCount<t)try{const t=e.build("beacon",n);if(navigator.sendBeacon(t,n.data))return}catch(e){!function(e){St||(St=!0,b(e))}(e)}wt(e,n)}let St=!1;function wt(e,t,n){const o=e.build("fetch",t);var r,s;(r=o,s={method:"POST",body:t.data,mode:"cors"},T(h(),"fetch")(r,s)).then(y(e=>null==n?void 0:n({status:e.status,type:e.type}))).catch(y(()=>null==n?void 0:n({status:0})))}const kt=w?1:50;function _t({pageMayExitObservable:e,sessionExpireObservable:t}){let n;const o=new _,r=e.subscribe(e=>{n=e.reason;try{o.notify(e.reason)}finally{n=void 0}l(e.reason)}),s=t.subscribe(()=>l("session_expire")),i=new _(()=>()=>{r.unsubscribe(),s.unsubscribe()});let c,a=0,u=0;function l(e){if(0===u)return;const t=u,n=a;u=0,a=0,d(),i.notify({reason:e,messagesCount:t,bytesCount:n})}function d(){R(c),c=void 0}return{flushObservable:i,preparePageExitFlushObservable:o,get messagesCount(){return u},notifyBeforeAddMessage(e){a+e>=bt&&l(null!=n?n:"bytes_limit"),u+=1,a+=e,void 0===c&&(c=O(()=>{l("duration_limit")},3e4))},notifyAfterAddMessage(e=0){a+=e,u>=kt?l(null!=n?n:"messages_limit"):a>=bt&&l(null!=n?n:"bytes_limit")},notifyAfterRemoveMessage(e){a-=e,u-=1,0===u&&d()}}}function xt(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(n,o){const r=it(n);t+=r,e+=n,o&&o(r)},finish(e){e(this.finishSync())},finishSync(){const n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount:e=>e.length}}const Ct="DISCARDED",Et="SKIPPED";const Tt="log",Ot="configuration",Rt="usage";const $t=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],At=["ddog-gov.com","us2.ddog-gov.com"];let It;function Lt(){return It||(It=new C(100)),It}function Pt(e,t,n){const o=new _,{enabled:r,metricsEnabled:s}=function(e,t,n,o,r=1,s=15){const i={},c=!At.includes(t.site)&&Je(t.telemetrySampleRate),a={[Tt]:c,[Ot]:c&&Je(t.telemetryConfigurationSampleRate),[Rt]:c&&Je(t.telemetryUsageSampleRate),metric:c&&Je(r)},u={is_local_file:"file:"===(null===(d=S.location)||void 0===d?void 0:d.protocol),is_worker:w},l=Lt();var d;return l.subscribe(({rawEvent:t,metricName:r})=>{if(r&&!a.metric||!a[t.type])return;const c=r||t.status||t.type;let l=i[c];if(l||(l=i[c]=new Set),l.size>=s)return;const d=le(t);if(l.has(d))return;const f=n.triggerHook(1,{startTime:re().relative});if(f===Ct)return;const g=p(f,e,t,u);o.notify(g),We("telemetry",g),l.add(d)}),l.unbuffer(),function(e){f=e}(Ut),{enabled:c,metricsEnabled:a.metric};function p(e,n,o,r){const s={type:"telemetry",date:re().timeStamp,service:n,version:"6.33.0",source:"browser",_dd:{format_version:2},telemetry:Xe(o,{runtime_env:r,connectivity:Ye(),sdk_setup:"npm"}),ddtags:qe(t).join(","),experimental_features:Array.from(Be())};return Xe(s,e)}}(e,t,n,o),{stop:i}=function(e,t){const n=[];if(Qe()){const e=Ze(),o=t.subscribe(t=>e.send("internal_telemetry",t));n.push(o.unsubscribe)}else{const o=[e.rumEndpointBuilder];e.replica&&function(e){return e.site===je}(e)&&o.push(e.replica.rumEndpointBuilder);const r=at({encoder:xt(),request:vt(o,I),flushController:_t({pageMayExitObservable:rt(e),sessionExpireObservable:new _})});n.push(r.stop);const s=t.subscribe(r.add);n.push(s.unsubscribe)}return{stop:()=>n.forEach(e=>e())}}(t,o);return{stop:i,enabled:r,metricsEnabled:s}}function Dt(e,t){v(o.debug,e,t),Lt().notify({rawEvent:{type:Tt,message:e,status:"debug",...t}})}function Ut(e,t){Lt().notify({rawEvent:{type:Tt,status:"error",...qt(e),...t}})}function Bt(e){Lt().notify({rawEvent:{type:Rt,usage:e}})}function qt(e){if(ke(e)){const t=U(e);return{error:{kind:t.name,stack:Y(Mt(t))},message:t.message}}return{error:{stack:me},message:`Uncaught ${le(e)}`}}function Mt(e){return e.stack=e.stack.filter(e=>!e.url||$t.some(t=>e.url.startsWith(t))),e}function Nt(e,t,n,o){return y((...r)=>(o&&Bt({feature:o}),e()[t][n](...r)))}function jt(e,t,n){e.changeObservable.subscribe(()=>{const o=e.getContext();n.add(e=>e[t].setContext(o))})}const Ft="userContext",Ht="globalContext",Gt="accountContext",zt="getContext",Wt="setContext",Jt="setContextProperty",Vt="removeContextProperty",Kt="clearContext";function Xt(e,t){t.silentMultipleInit||c.error(`${e} is already initialized.`)}function Yt(e,t,n){const o={...e};for(const[e,{required:r,type:s}]of Object.entries(t))"string"!==s||Zt(o[e])||(o[e]=String(o[e])),r&&Zt(o[e])&&c.warn(`The property ${e} of ${n} is required; context will not be sent to the intake.`);return o}function Zt(e){return null==e||""===e}function Qt(e="",{propertiesConfig:t={}}={}){let n={};const o=new _,r={getContext:()=>Ke(n),setContext:s=>{!function(e){const t="object"===L(e);return t||c.error("Unsupported context:",e),t}(s)?r.clearContext():n=fe(Yt(s,t,e)),o.notify()},setContextProperty:(r,s)=>{n=fe(Yt({...n,[r]:s},t,e)),o.notify()},removeContextProperty:r=>{delete n[r],Yt(n,t,e),o.notify()},clearContext:()=>{n={},o.notify()},changeObservable:o};return r}function en(e,t,n){const o=n.getHandler(),r=Array.isArray(o)?o:[o];return nn[e]>=nn[n.getLevel()]&&r.includes(t)}const tn={ok:"ok",debug:"debug",info:"info",notice:"notice",warn:"warn",error:"error",critical:"critical",alert:"alert",emerg:"emerg"},nn={[tn.ok]:0,[tn.debug]:1,[tn.info]:2,[tn.notice]:4,[tn.warn]:5,[tn.error]:6,[tn.critical]:7,[tn.alert]:8,[tn.emerg]:9};function on(e,{includeMessage:t=!1}={}){return{stack:e.stack,kind:e.type,message:t?e.message:void 0,causes:e.causes,fingerprint:e.fingerprint,handling:e.handling}}var rn=function(e,t,n,o){var r,s=arguments.length,i=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(i=(s<3?r(i):s>3?r(t,n,i):r(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i};const sn={console:"console",http:"http",silent:"silent"},cn=Object.keys(tn);class an{constructor(e,t,n=sn.http,o=tn.debug,r={}){this.handleLogStrategy=e,this.handlerType=n,this.level=o,this.contextManager=Qt("logger"),this.tags=[],this.contextManager.setContext(r),t&&this.contextManager.setContextProperty("logger",{name:t})}logImplementation(e,t,n=tn.info,o,r){const s=fe(t);let i;if(null!=o){const e=ve({originalError:o,nonErrorPrefix:"Provided",source:Ee,handling:"handled",startClocks:re()});i=Xe({error:on(e,{includeMessage:!0})},e.context,s)}else i=s;this.handleLogStrategy({message:fe(e),context:i,status:n},this,r)}log(e,t,n=tn.info,o){let r;en(n,sn.http,this)&&(r=X("log")),this.logImplementation(e,t,n,o,r)}setContext(e){this.contextManager.setContext(e)}getContext(){return this.contextManager.getContext()}setContextProperty(e,t){this.contextManager.setContextProperty(e,t)}removeContextProperty(e){this.contextManager.removeContextProperty(e)}clearContext(){this.contextManager.clearContext()}addTag(e,t){this.tags.push(Me(e,t))}removeTagsWithKey(e){const t=Ne(e);this.tags=this.tags.filter(e=>e!==t&&!e.startsWith(`${t}:`))}getTags(){return this.tags.slice()}setHandler(e){this.handlerType=e}getHandler(){return this.handlerType}setLevel(e){this.level=e}getLevel(){return this.level}}function un(e){return function(t,n,o){let r;en(e,sn.http,this)&&(r=X("log")),this.logImplementation(t,n,e,o,r)}}function ln(){return w?{}:{view:{referrer:document.referrer,url:window.location.href}}}function dn(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,dn)}rn([function(e,t,n){const o=n.value;n.value=function(...e){return(f?y(o):o).apply(this,e)}}],an.prototype,"logImplementation",null),an.prototype.ok=un(tn.ok),an.prototype.debug=un(tn.debug),an.prototype.info=un(tn.info),an.prototype.notice=un(tn.notice),an.prototype.warn=un(tn.warn),an.prototype.error=un(tn.error),an.prototype.critical=un(tn.critical),an.prototype.alert=un(tn.alert),an.prototype.emerg=un(tn.emerg);const fn=/(\S+?)\s*=\s*(.+?)(?:;|$)/g;function pn(e,t,n=""){const o=e.charCodeAt(t-1),r=o>=55296&&o<=56319?t+1:t;return e.length<=r?e:`${e.slice(0,r)}${n}`}function gn(e){return yn(e,location.href).href}function yn(e,t){const{URL:n}=function(){var e;if(!mn){let t,n;try{t=document.createElement("iframe"),t.style.display="none",document.body.appendChild(t),n=null!==(e=t.contentWindow)&&void 0!==e?e:S}catch(e){n=S}mn={URL:n.URL},null==t||t.remove()}return mn}();try{return void 0!==t?new n(e,t):new n(e)}catch(e){throw new Error(`Failed to construct URL: ${String(e)}`)}}let mn,bn,vn;function hn(e,t,n=0,o){const r=new Date;r.setTime(r.getTime()+n);const s=`expires=${r.toUTCString()}`,i=o&&o.crossSite?"none":"strict",c=o&&o.domain?`;domain=${o.domain}`:"",a=o&&o.secure?";secure":"",u=o&&o.partitioned?";partitioned":"";document.cookie=`${e}=${t};${s};path=/;samesite=${i}${c}${a}${u}`}function Sn(e){return function(e,t){for(fn.lastIndex=0;;){const n=fn.exec(e);if(!n)break;if(n[1]===t)return n[2]}}(document.cookie,e)}function wn(e){return function(e){const t=new Map;for(fn.lastIndex=0;;){const n=fn.exec(e);if(!n)break;{const e=n[1],o=n[2];t.has(e)?t.get(e).push(o):t.set(e,[o])}}return t}(document.cookie).get(e)||[]}function kn(e){return bn||(bn=function(e){const t=new Map;for(fn.lastIndex=0;;){const n=fn.exec(e);if(!n)break;t.set(n[1],n[2])}return t}(document.cookie)),bn.get(e)}function _n(e,t){hn(e,"",0,t)}function xn(e=location.hostname,t=document.referrer){if(void 0===vn){const n=function(e,t){try{return e||yn(t).hostname}catch(e){}}(e,t);if(n){const e=`dd_site_test_${dn()}`,t="test",o=n.split(".");let r=o.pop();for(;o.length&&!Sn(e);)r=`${o.pop()}.${r}`,hn(e,t,1e3,{domain:r});_n(e,{domain:r}),vn=r}}return vn}const Cn="datadog-synthetics-",En=`${Cn}public-id`,Tn=`${Cn}result-id`,On=`${Cn}injects-rum`,Rn=`${Cn}rum-context`;function $n(){return!w&&Boolean(S._DATADOG_SYNTHETICS_INJECTS_RUM||kn(On))}function An(){const e=function(){const e=S._DATADOG_SYNTHETICS_RUM_CONTEXT;if(e)return e;const t=kn(Rn);if(t)return function(e){try{return JSON.parse(e)}catch(e){}}(decodeURIComponent(t));return{test_id:window._DATADOG_SYNTHETICS_PUBLIC_ID||kn(En),result_id:window._DATADOG_SYNTHETICS_RESULT_ID||kn(Tn)}}();return"object"==typeof(t=e)&&null!==t&&"string"==typeof t.test_id&&"string"==typeof t.result_id?e:void 0;var t}function In(){return Boolean(An())}const Ln="_dd_c",Pn=[];function Dn(e,t,n,o){const r=function(e,t){return`${Ln}_${e}_${t}`}(n,o);Pn.push(tt(e,window,"storage",({key:e})=>{r===e&&t.setContext(i())})),t.changeObservable.subscribe(function(){localStorage.setItem(r,JSON.stringify(t.getContext()))});const s=Xe(i(),t.getContext());function i(){const e=localStorage.getItem(r);return e?JSON.parse(e):{}}Le(s)||t.setContext(s)}function Un(){return Qt("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function Bn(){return Qt("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}function qn(){return Qt("global context")}const Mn="_dd_tab_id";let Nn;function jn(e){const t=function(){var e;Nn||(Nn=null!==(e=function(){try{const e=sessionStorage.getItem(Mn);if(e)return e;const t=dn();return sessionStorage.setItem(Mn,t),t}catch(e){return}}())&&void 0!==e?e:dn());return Nn}();e.register(0,()=>({tab:{id:t}}))}function Fn(e,t){const n=e.indexOf(t);n>=0&&e.splice(n,1)}const Hn=1/0;let Gn;const zn=new Set;function Wn({expireDelay:e,maxEntries:t}){let n=[];Gn||(Gn=$(()=>{zn.forEach(e=>e())},6e4));const o=()=>{const t=oe()-e;for(;n.length>0&&n[n.length-1].endTime<t;)n.pop()};return zn.add(o),{add:function(e,o){const r={value:e,startTime:o,endTime:Hn,remove:()=>{Fn(n,r)},close:e=>{r.endTime=e}};return t&&n.length>=t&&n.pop(),n.unshift(r),r},find:function(e=Infinity,t={returnInactive:!1}){for(const o of n)if(o.startTime<=e){if(t.returnInactive||e<=o.endTime)return o.value;break}},closeActive:function(e){const t=n[0];t&&t.endTime===Hn&&t.close(e)},findAll:function(e=Infinity,t=0){const o=ie(e,t);return n.filter(t=>t.startTime<=o&&e<=t.endTime).map(e=>e.value)},getEntries:function(e){return n.filter(t=>t.startTime===e)},reset:function(){n=[]},stop:function(){zn.delete(o),0===zn.size&&Gn&&(A(Gn),Gn=void 0)}}}const Jn=144e5,Vn=9e5,Kn=ee,Xn="cookie",Yn="memory",Zn="local-storage";let Qn;function eo(){return null!=Qn?Qn:Qn=function(e=window){var t;const n=e.navigator.userAgent;if(e.chrome||/HeadlessChrome/.test(n))return 0;if(0===(null===(t=e.navigator.vendor)||void 0===t?void 0:t.indexOf("Apple"))||/safari/i.test(n)&&!/chrome|android/i.test(n))return 1;return 2}()}const to=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function no(e,t){const n={isExpired:"1"};return t.trackAnonymousUser&&(null==e?void 0:e.anonymousId)&&(n.anonymousId=null==e?void 0:e.anonymousId),n}function oo(e){return Le(e)}function ro(e){return!oo(e)}function so(e){return void 0!==e.isExpired||!((void 0===(t=e).created||te()-Number(t.created)<Jn)&&(void 0===t.expire||te()<Number(t.expire)));var t}function io(e){e.expire=String(te()+Vn)}function co(e){return(t=e,Object.entries(t)).map(([e,t])=>"anonymousId"===e?`aid=${t}`:`${e}=${t}`).join("&");var t}function ao(e){const t={};return function(e){return!!e&&(-1!==e.indexOf("&")||to.test(e))}(e)&&e.split("&").forEach(e=>{const n=to.exec(e);if(null!==n){const[,e,o]=n;"aid"===e?t.anonymousId=o:t[e]=o}}),t}function uo(e){const t=function(e){const t={};if(t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains){const e=xn();if(!e)return;t.domain=e}return t}(e);return t&&function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{const t=`dd_cookie_test_${dn()}`,n="test";hn(t,n,6e4,e);const o=Sn(t)===n;return _n(t,e),o}catch(e){return c.error(e),!1}}(t)?{type:Xn,cookieOptions:t}:void 0}function lo(e,t){const n={isLockEnabled:0===eo(),persistSession:n=>fo(t,e,n,Vn),retrieveSession:()=>po(t,e),expireSession:n=>fo(t,e,no(n,e),Jn)};return function(e){if(!kn("_dd_s")){const t=kn("_dd"),n=kn("_dd_r"),o=kn("_dd_l"),r={};t&&(r.id=t),o&&/^[01]$/.test(o)&&(r.logs=o),n&&/^[012]$/.test(n)&&(r.rum=n),ro(r)&&(io(r),e.persistSession(r))}}(n),n}function fo(e,t,n,o){let r=co(n);t.betaEncodeCookieOptions&&(r=co({...n,...Le(n)?{}:{c:go(e)}})),hn("_dd_s",r,t.trackAnonymousUser?Kn:o,e)}function po(e,t){if(t.betaEncodeCookieOptions)return function(e){const t=wn("_dd_s"),n=go(e);let o;for(const e of t.reverse())if(o=ao(e),o.c===n)break;return null==o||delete o.c,null!=o?o:{}}(e);return ao(Sn("_dd_s"))}function go(e){let t=0;return t|=0,t|=(e.domain?e.domain.split(".").length-1:0)<<1,t|=e.crossSite?1:0,t.toString(16)}function yo(e){return{isLockEnabled:!1,persistSession:mo,retrieveSession:bo,expireSession:t=>function(e,t){mo(no(e,t))}(t,e)}}function mo(e){localStorage.setItem("_dd_s",co(e))}function bo(){return ao(localStorage.getItem("_dd_s"))}const vo="--",ho=[];let So;function wo(e,t,n=0){var o;const{isLockEnabled:r,persistSession:s,expireSession:i}=t,c=e=>s({...e,lock:u}),a=()=>{const{lock:e,...n}=t.retrieveSession();return{session:n,lock:e&&!xo(e)?e:void 0}};if(So||(So=e),e!==So)return void ho.push(e);if(r&&n>=100)return void _o(t);let u,l=a();if(r){if(l.lock)return void ko(e,t,n);if(u=dn()+vo+ne(),c(l.session),l=a(),l.lock!==u)return void ko(e,t,n)}let d=e.process(l.session);if(r&&(l=a(),l.lock!==u))ko(e,t,n);else{if(d&&(so(d)?i(d):(io(d),r?c(d):s(d))),r&&(!d||!so(d))){if(l=a(),l.lock!==u)return void ko(e,t,n);s(l.session),d=l.session}null===(o=e.after)||void 0===o||o.call(e,d||l.session),_o(t)}}function ko(e,t,n){O(()=>{wo(e,t,n+1)},10)}function _o(e){So=void 0;const t=ho.shift();t&&wo(t,e)}function xo(e){const[,t]=e.split(vo);return!t||se(Number(t),ne())>1e3}const Co="_DD_SESSION";function Eo(e){return{expireSession:t=>function(e,t){Oo(no(e,t))}(t,e),isLockEnabled:!1,persistSession:Oo,retrieveSession:To}}function To(){const e=h();return e[Co]||(e[Co]={}),Ae(e[Co])}function Oo(e){h()[Co]=Ae(e)}function Ro(e){const{sessionPersistence:t}=e,n=function(e,t){if(Array.isArray(e))return e;if(void 0!==e)return[e];return t.allowFallbackToLocalStorage?[Xn,Zn]:[Xn]}(t,e);for(const t of n){const n=$o(t,e);if(void 0!==n)return n}}function $o(e,t){switch(e){case Xn:return uo(t);case Zn:return function(){try{const e=dn(),t=`_dd_test_${e}`;localStorage.setItem(t,e);const n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:Zn}:void 0}catch(e){return}}();case Yn:return{type:Yn};default:return void c.error(`Invalid session persistence '${String(e)}'`)}}function Ao(e,t,n,o,r=function(e,t){return e.type===Xn?lo(t,e.cookieOptions):e.type===Zn?yo(t):Eo(t)}(e,t)){const s=new _,i=new _,c=new _,a=$(function(){const e=r.retrieveSession();so(e)?wo({process:e=>so(e)?no(e,t):void 0,after:f},r):f(e)},1e3);let u;p();const{throttled:l,cancel:d}=function(e,t,n){const o=!n||void 0===n.leading||n.leading,r=!n||void 0===n.trailing||n.trailing;let s,i,c=!1;return{throttled:(...n)=>{c?s=n:(o?e(...n):s=n,c=!0,i=O(()=>{r&&s&&e(...s),c=!1,s=void 0},t))},cancel:()=>{R(i),c=!1,s=void 0}}}(()=>{wo({process:e=>{if(oo(e))return;const r=f(e);return function(e){if(oo(e))return!1;const r=o(e[n]);e[n]=r,delete e.isExpired,"0"===r||e.id||(e.id=dn(),e.created=String(te()));t.trackAnonymousUser&&!e.anonymousId&&(e.anonymousId=dn())}(r),r},after:e=>{ro(e)&&!g()&&function(e){u=e,s.notify()}(e),u=e}},r)},1e3);function f(e){return so(e)&&(e=no(e,t)),g()&&(!function(e){return u.id!==e.id||u[n]!==e[n]}(e)?(c.notify({previousState:u,newState:e}),u=e):(u=no(u,t),i.notify())),e}function p(){wo({process:e=>{if(oo(e))return e.anonymousId=dn(),no(e,t)},after:e=>{u=e}},r)}function g(){return void 0!==(null==u?void 0:u[n])}return{expandOrRenewSession:l,expandSession:function(){wo({process:e=>g()?f(e):void 0},r)},getSession:()=>u,renewObservable:s,expireObservable:i,sessionStateUpdateObservable:c,restartSession:p,expire:e=>{d(),!1===e&&u&&delete u.anonymousId,r.expireSession(u),f(no(u,t))},stop:()=>{A(a)},updateSessionState:function(e){wo({process:t=>({...t,...e}),after:f},r)}}}const Io=Jn;let Lo=[];function Po(e,t,n,o){const r=new _,s=new _,i=Ao(e.sessionStoreStrategyType,e,t,n);Lo.push(()=>i.stop());const c=Wn({expireDelay:Io});function a(){const n=i.getSession();return n?{id:n.id,trackingType:n[t],isReplayForced:!!n.forcedReplay,anonymousId:n.anonymousId}:(async function(e){const t=e.sessionStoreStrategyType;if(!t)return;let n,o;t.type===Xn?(n=po(t.cookieOptions,e),o={cookie:await Do(),currentDomain:`${window.location.protocol}//${window.location.hostname}`}):n=bo();Dt("Unexpected session state",{sessionStoreStrategyType:t.type,session:n,isSyntheticsTest:In(),createdTimestamp:null==n?void 0:n.created,expireTimestamp:null==n?void 0:n.expire,...o})}(e).catch(()=>{}),{id:"invalid",trackingType:"0",isReplayForced:!1,anonymousId:void 0})}return Lo.push(()=>c.stop()),i.renewObservable.subscribe(()=>{c.add(a(),oe()),r.notify()}),i.expireObservable.subscribe(()=>{s.notify(),c.closeActive(oe())}),i.expandOrRenewSession(),c.add(a(),[0,ue()][0]),o.observable.subscribe(()=>{o.isGranted()?i.expandOrRenewSession():i.expire(!1)}),function(e,t){const{stop:n}=nt(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0});Lo.push(n)}(e,()=>{o.isGranted()&&i.expandOrRenewSession()}),function(e,t){const n=()=>{"visible"===document.visibilityState&&t()},{stop:o}=tt(e,document,"visibilitychange",n);Lo.push(o);const r=$(n,6e4);Lo.push(()=>{A(r)})}(e,()=>i.expandSession()),function(e,t){const{stop:n}=tt(e,window,"resume",t,{capture:!0});Lo.push(n)}(e,()=>i.restartSession()),{findSession:(e,t)=>c.find(e,t),renewObservable:r,expireObservable:s,sessionStateUpdateObservable:i.sessionStateUpdateObservable,expire:i.expire,updateSessionState:i.updateSessionState}}async function Do(){let e;return e="cookieStore"in window?await window.cookieStore.getAll("_dd_s"):document.cookie.split(/\s*;\s*/).filter(e=>e.startsWith("_dd_s")),{count:e.length,domain:xn()||"undefined",...e}}function Uo(e,t){return"0"===(n=t)||"1"===n?t:Je(e.sessionSampleRate)?"1":"0";var n}function Bo(e,t,n,o,r,s){const i=cn.concat(["custom"]),c={};i.forEach(e=>{c[e]=function(e,t,n=3e3){let o=0,r=!1;return{isLimitReached(){if(0===o&&O(()=>{o=0},6e4),o+=1,o<=n||r)return r=!1,!1;if(o===n+1){r=!0;try{t({message:`Reached max number of ${e}s by minute: ${n}`,source:xe,startClocks:re()})}finally{r=!1}}return!0}}}(e,r,s)}),t.subscribe(0,({rawLogsEvent:r,messageContext:s,savedCommonContext:i,domainContext:a,ddtags:u=[]})=>{var l,d;const f=ce(r.date),p=i||o(),g=n.triggerHook(0,{startTime:f});if(g===Ct)return;const y=qe(e),m=Xe({view:p.view},g,r,s,{ddtags:y.concat(u).join(",")});!1===(null===(l=e.beforeSend)||void 0===l?void 0:l.call(e,m,a))||m.origin!==xe&&(null!==(d=c[m.status])&&void 0!==d?d:c.custom).isLimitReached()||t.notify(1,m)})}let qo={};function Mo(e){return x(...e.map(e=>(qo[e]||(qo[e]=function(e){return new _(t=>{const n=r[e];return r[e]=(...r)=>{n.apply(console,r);const s=X("console error");m(()=>{t.notify(function(e,t,n){const r=e.map(e=>function(e){if("string"==typeof e)return fe(e);if(ke(e))return Z(U(e));return le(fe(e),void 0,2)}(e)).join(" ");if(t===o.error){const o=ve({originalError:e.find(ke),handlingStack:n,startClocks:re(),source:Ce,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return o.message=r,{api:t,message:r,handlingStack:n,error:o}}return{api:t,message:r,error:void 0,handlingStack:n}}(r,e,s))})},()=>{r[e]=n}})}(e)),qo[e])))}const No={[o.log]:tn.info,[o.debug]:tn.debug,[o.info]:tn.info,[o.warn]:tn.warn,[o.error]:tn.error};const jo={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function Fo(e,t){const n=[];t.includes(jo.cspViolation)&&n.push(function(e){return new _(t=>{const{stop:n}=tt(e,document,"securitypolicyviolation",e=>{t.notify(function(e){const t=`'${e.blockedURI}' blocked by '${e.effectiveDirective}' directive`;return Ho({type:e.effectiveDirective,message:`${jo.cspViolation}: ${t}`,originalError:e,csp:{disposition:e.disposition},stack:Go(e.effectiveDirective,e.originalPolicy?`${t} of the policy "${pn(e.originalPolicy,100,"...")}"`:"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}(e))});return n})}(e));const o=t.filter(e=>e!==jo.cspViolation);return o.length&&n.push(function(e){return new _(t=>{if(!window.ReportingObserver)return;const n=y((e,n)=>e.forEach(e=>t.notify(function(e){const{type:t,body:n}=e;return Ho({type:n.id,message:`${t}: ${n.message}`,originalError:e,stack:Go(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)})}(e)))),o=new window.ReportingObserver(n,{types:e,buffered:!0});return o.observe(),()=>{o.disconnect()}})}(o)),x(...n)}function Ho(e){return{startClocks:re(),source:Re,handling:"unhandled",...e}}function Go(e,t,n,o,r){return n?Y({name:e,message:t,stack:[{func:"?",url:n,line:null!=o?o:void 0,column:null!=r?r:void 0}]}):void 0}let zo;const Wo=new WeakMap;function Jo(e){return zo||(zo=function(e){return new _(t=>{const{stop:n}=Q(XMLHttpRequest.prototype,"open",Vo),{stop:o}=Q(XMLHttpRequest.prototype,"send",n=>{!function({target:e,parameters:[t],handlingStack:n},o,r){const s=Wo.get(e);if(!s)return;const i=s;i.state="start",i.startClocks=re(),i.isAborted=!1,i.xhr=e,i.handlingStack=n,i.requestBody=t;let c=!1;const{stop:a}=Q(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&u()}),u=()=>{if(l(),a(),c)return;c=!0;const t=s;t.state="complete",t.duration=se(i.startClocks.timeStamp,ne()),t.status=e.status,"string"==typeof e.response&&(t.responseBody=e.response),r.notify(Ae(t))},{stop:l}=tt(o,e,"loadend",u);r.notify(i)}(n,e,t)},{computeHandlingStack:!0}),{stop:r}=Q(XMLHttpRequest.prototype,"abort",Ko);return()=>{n(),o(),r()}})}(e)),zo}function Vo({target:e,parameters:[t,n]}){Wo.set(e,{state:"open",method:String(t).toUpperCase(),url:gn(String(n))})}function Ko({target:e}){const t=Wo.get(e);t&&(t.isAborted=!0)}const Xo={FETCH:"fetch",XHR:"xhr"};async function Yo(e,t){const n=e.getReader(),o=[];for(;;){const e=await n.read();if(e.done)break;t.collectStreamBody&&o.push(e.value)}return n.cancel().catch(I),t.collectStreamBody?function(e){if(1===e.length)return e[0];const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let o=0;for(const t of e)n.set(t,o),o+=t.length;return n}(o):void 0}let Zo;const Qo=[];function er({responseBodyAction:e}={}){return e&&Qo.push(e),Zo||(Zo=new _(e=>{if(!S.fetch)return;const{stop:t}=Q(S,"fetch",t=>function({parameters:e,onPostCall:t,handlingStack:n},o){var r,s;const[i,c]=e;let a=c&&c.method;void 0===a&&i instanceof Request&&(a=i.method);const u=void 0!==a?String(a).toUpperCase():"GET",l=i instanceof Request?i.url:gn(String(i)),d=re(),f={state:"start",init:c,input:i,method:u,startClocks:d,url:l,handlingStack:n,isAbortedOnStart:i instanceof Request&&(null===(r=i.signal)||void 0===r?void 0:r.aborted)||(null===(s=null==c?void 0:c.signal)||void 0===s?void 0:s.aborted)||!1};o.notify(f),e[0]=f.input,e[1]=f.init,t(e=>{(async function(e,t,n){var o,r;const s=n;let i;s.state="resolve";try{i=await t}catch(t){return s.status=0,s.isAborted=(null===(r=null===(o=s.init)||void 0===o?void 0:o.signal)||void 0===r?void 0:r.aborted)||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,s.error=t,void e.notify(s)}s.response=i,s.status=i.status,s.responseType=i.type,s.isAborted=!1;const c=Qo.reduce((e,t)=>Math.max(e,t(s)),0);if(0!==c){const e=function(e){try{return e.clone()}catch(e){return}}(i);if(e&&e.body)try{const t=await Yo(e.body,{collectStreamBody:2===c});s.responseBody=t&&(new TextDecoder).decode(t)}catch(e){}}e.notify(s)})(o,e,f).catch(b)})}(t,e),{computeHandlingStack:!0});return t})),Zo}function tr(e,t,n){const o=function(e,t){const n=`/api/v2/${t}`,o=e.proxy;if("string"==typeof o){const e=gn(o);return t=>`${e}?ddforward=${encodeURIComponent(`${n}?${t}`)}`}if("function"==typeof o)return e=>o({path:n,parameters:e});const r=function(e,t){const{site:n=He,internalAnalyticsSubdomain:o}=t;if("logs"===e&&t.usePciIntake&&n===He)return Ge;if(o&&n===He)return`${o}.${He}`;if(n===Fe)return`http-intake.logs.${n}`;const r=n.split("."),s=r.pop();return`browser-intake-${r.join("-")}.${s}`}(t,e);return e=>`https://${r}${n}?${e}`}(e,t);return{build(r,s){const i=function({clientToken:e,internalAnalyticsSubdomain:t,source:n="browser"},o,r,{retry:s,encoding:i},c=[]){const a=[`ddsource=${n}`,`dd-api-key=${e}`,`dd-evp-origin-version=${encodeURIComponent("6.33.0")}`,"dd-evp-origin=browser",`dd-request-id=${dn()}`].concat(c);i&&a.push(`dd-evp-encoding=${i}`);"rum"===o&&(a.push(`batch_time=${ne()}`,`_dd.api=${r}`),s&&a.push(`_dd.retry_count=${s.count}`,`_dd.retry_after=${s.lastFailureStatus}`));t&&a.reverse();return a.join("&")}(e,t,r,s,n);return o(i)},trackType:t}}function nr(e){const t=e.site||He,n=function(e){if("flutter"===e||"unity"===e)return e;return"browser"}(e.source),o=function(e){return{logsEndpointBuilder:tr(e,"logs"),rumEndpointBuilder:tr(e,"rum"),profilingEndpointBuilder:tr(e,"profile"),sessionReplayEndpointBuilder:tr(e,"replay"),exposuresEndpointBuilder:tr(e,"exposures"),flagEvaluationEndpointBuilder:tr(e,"flagevaluation")}}({...e,site:t,source:n}),r=function(e){if(!e.replica)return;const t={...e,site:He,clientToken:e.replica.clientToken};return{logsEndpointBuilder:tr(t,"logs"),rumEndpointBuilder:tr(t,"rum",[`application.id=${e.replica.applicationId}`])}}({...e,site:t,source:n});return{replica:r,site:t,source:n,...o}}function or(e,t){if(!e.forwardErrorsToLogs)return{stop:I};const n=(w?new _:Jo(e)).subscribe(e=>{"complete"===e.state&&s(Xo.XHR,e)}),o=er({responseBodyAction:e=>r(e)?2:0}).subscribe(e=>{"resolve"===e.state&&s(Xo.FETCH,e)});function r(e){return t=e.url,!ze.every(e=>t.includes(e))&&(function(e){return 0===e.status&&"opaque"!==e.responseType}(e)||lt(e.status));var t}function s(n,o){if(!r(o))return;const s="error"in o&&o.error?Y(U(o.error)):o.responseBody||"Failed to load",i={isAborted:o.isAborted,handlingStack:o.handlingStack};t.notify(0,{rawLogsEvent:{message:`${rr(n)} error ${o.method} ${o.url}`,date:o.startClocks.timeStamp,error:{stack:pn(s,e.requestErrorResponseLengthLimit,"..."),handling:void 0},http:{method:o.method,status_code:o.status,url:o.url},status:tn.error,origin:Te},domainContext:i})}return{stop:()=>{n.unsubscribe(),o.unsubscribe()}}}function rr(e){return Xo.XHR===e?"XHR":"Fetch"}const sr=class{constructor(){this.callbacks={}}notify(e,t){const n=this.callbacks[e];n&&n.forEach(e=>e(t))}subscribe(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:()=>{this.callbacks[e]=this.callbacks[e].filter(e=>t!==e)}}}};function ir(e){return{handleLog:function(t,n,o,i,c){const a=Xe(n.getContext(),t.context);if(en(t.status,sn.console,n)&&function({status:e,message:t},n){s[cr[e]].call(r,t,n)}(t,a),en(t.status,sn.http,n)){const r={rawLogsEvent:{date:c||ne(),message:t.message,status:t.status,origin:Ee},messageContext:a,savedCommonContext:i,ddtags:n.getTags()};o&&(r.domainContext={handlingStack:o}),e.notify(0,r)}}}}const cr={[tn.ok]:o.debug,[tn.debug]:o.debug,[tn.info]:o.info,[tn.notice]:o.info,[tn.warn]:o.warn,[tn.error]:o.error,[tn.critical]:o.error,[tn.alert]:o.error,[tn.emerg]:o.error};const ar="logs";function ur(e,t,n,o,r){const s=new sr,i=[];s.subscribe(1,e=>We("logs",e));const c=function(e){return t=>{e.notify(0,{rawLogsEvent:{message:t.message,date:t.startClocks.timeStamp,origin:xe,status:tn.error}}),Dt("Error reported to customer",{"error.message":t.message})}}(s),a=rt(e),u=!e.sessionStoreStrategyType||Qe()||$n()?function(e){const t="1"===Uo(e)?{}:void 0;return{findTrackedSession:()=>t,expireObservable:new _}}(e):function(e,t){const n=Po(e,"logs",t=>Uo(e,t),t);return{findTrackedSession:(e,t={returnInactive:!1})=>{const o=n.findSession(e,t);return o&&"1"===o.trackingType?{id:o.id,anonymousId:o.anonymousId}:void 0},expireObservable:n.expireObservable}}(e,n);!function(e,t){function n(){return t.isGranted()?Et:Ct}e.register(0,n),e.register(1,n)}(r,n),function(e,t,n){e.register(0,({startTime:e})=>{const o=n.findTrackedSession(e);return n.findTrackedSession(e,{returnInactive:!0})?{service:t.service,session_id:o?o.id:void 0,session:o?{id:o.id}:void 0}:Ct}),e.register(1,({startTime:e})=>{const t=n.findTrackedSession(e);return t&&t.id?{session:{id:t.id}}:Et})}(r,e,u);const l=function(e,t,n){const o=Un();return t.storeContextsAcrossPages&&Dn(t,o,n,4),e.register(0,()=>{const e=o.getContext();return Le(e)||!e.id?Et:{account:e}}),o}(r,e,ar),d=function(e,t,n,o){const r=Bn();return t.storeContextsAcrossPages&&Dn(t,r,o,1),e.register(0,({eventType:e,startTime:o})=>{const s=r.getContext(),i=n.findTrackedSession(o);return i&&i.anonymousId&&!s.anonymous_id&&t.trackAnonymousUser&&(s.anonymous_id=i.anonymousId),Le(s)?Et:{type:e,usr:s}}),e.register(1,({startTime:e})=>{var t;return{anonymous_id:null===(t=n.findTrackedSession(e))||void 0===t?void 0:t.anonymousId}}),r}(r,e,u,ar),f=function(e,t,n,o){const r=qn();return t.storeContextsAcrossPages&&Dn(t,r,n,2),e.register(0,()=>{const e=r.getContext();return o?{context:e}:e}),r}(r,e,ar,!1);!function(e){const t=S;function n(e){const n=function(e,t){if(t&&t.getInternalContext)return t.getInternalContext(e)}(e,$n()?t.DD_RUM_SYNTHETICS:t.DD_RUM);if(n)return n}e.register(0,({startTime:e})=>n(e)||Et),e.register(1,({startTime:e})=>{var t,o;const r=n(e);return r?{application:{id:r.application_id},view:{id:null===(t=r.view)||void 0===t?void 0:t.id},action:{id:null===(o=r.user_action)||void 0===o?void 0:o.id}}:Et})}(r),jn(r),or(e,s),function(e,t,n){if(!e.forwardErrorsToLogs)return{stop:I};const o=n.subscribe(e=>{if(0===e.type){const n=e.error;t.notify(0,{rawLogsEvent:{message:n.message,date:n.startClocks.timeStamp,error:on(n),origin:Oe,status:tn.error},messageContext:n.context})}})}(e,s,o),o.unbuffer(),function(e,t){const n=Mo(e.forwardConsoleLogs).subscribe(e=>{var n;const o={rawLogsEvent:{date:ne(),message:e.message,origin:Ce,error:e.error&&on(e.error),status:No[e.api]},messageContext:null===(n=e.error)||void 0===n?void 0:n.context,domainContext:{handlingStack:e.handlingStack}};t.notify(0,o)})}(e,s),function(e,t){const n=Fo(e,e.forwardReports).subscribe(e=>{let n,o=e.message;const r="deprecation"===e.originalError.type?tn.warn:tn.error;var s,i;r===tn.error?n=on(e):e.stack&&(o+=` Found in ${s=e.stack,null===(i=/@ (.+)/.exec(s))||void 0===i?void 0:i[1]}`),t.notify(0,{rawLogsEvent:{date:ne(),message:o,origin:Re,error:n,status:r}})})}(e,s);const{handleLog:p}=ir(s);if(Bo(e,s,r,t,c),Qe())!function(e){const t=Ze();e.subscribe(1,e=>{t.send("log",e)})}(s);else{const{stop:t}=function(e,t,n,o,r){const s=[e.logsEndpointBuilder];e.replica&&s.push(e.replica.logsEndpointBuilder);const i=at({encoder:xt(),request:vt(s,n),flushController:_t({pageMayExitObservable:o,sessionExpireObservable:r.expireObservable})});return t.subscribe(1,e=>{i.add(e)}),i}(e,s,c,a,u);i.push(()=>t())}var g;return{handleLog:p,getInternalContext:(g=u,{get:e=>{const t=g.findTrackedSession(e);if(t)return{session_id:t.id}}}).get,accountContext:l,globalContext:f,userContext:d,stop:()=>{i.forEach(e=>e())}}}const lr=function(){const e={};return{register:(t,n)=>(e[t]||(e[t]=[]),e[t].push(n),{unregister:()=>{e[t]=e[t].filter(e=>e!==n)}}),triggerHook(t,n){const o=e[t]||[],r=[];for(const e of o){const t=e(n);if(t===Ct)return Ct;t!==Et&&r.push(t)}return Xe(...r)}}};const dr=["chrome-extension://","moz-extension://"];function fr(e){return dr.some(t=>e.includes(t))}function pr(e,t){const n=h().location,o=n?n.origin:"",r=e.allowedTrackingOrigins;if(!r)return!function(e,t=""){return!fr(e)&&fr(t.split("\n").filter(e=>{const t=e.trim();return t.length&&/^at\s+|@/.test(t)})[1]||"")}(o,t)||(c.error("Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided."),!1);const s=function(e,t,n=!1){return e.some(e=>{try{if("function"==typeof e)return e(t);if(e instanceof RegExp)return e.lastIndex=0,e.test(t);if("string"==typeof e)return n?t.startsWith(e):e===t}catch(e){c.error(e)}return!1})}(r,o);return s||c.error("SDK initialized on a non-allowed domain."),s}function gr(e,t){return null==e||"string"==typeof e||(c.error(`${t} must be defined as a string`),!1)}function yr(e,t){return!!(void 0===e||(n=e,function(e){return"number"==typeof e}(n)&&n>=0&&n<=100))||(c.error(`${t} Sample Rate should be a number between 0 and 100`),!1);var n}function mr(e,t){var n,o,r,s,i,u,f,p,g,y;if(e&&e.clientToken)if(void 0===e.allowedTrackingOrigins||Array.isArray(e.allowedTrackingOrigins)){if((!(m=e.site)||"string"!=typeof m||/(datadog|ddog|datad0g|dd0g)/.test(m)||(c.error(`Site should be a valid Datadog site. ${l} ${a}/getting_started/site/.`),0))&&yr(e.sessionSampleRate,"Session")&&yr(e.telemetrySampleRate,"Telemetry")&&yr(e.telemetryConfigurationSampleRate,"Telemetry Configuration")&&yr(e.telemetryUsageSampleRate,"Telemetry Usage")&&gr(e.version,"Version")&&gr(e.env,"Env")&&gr(e.service,"Service")&&pr(e,null!=t?t:"")){var m;if(void 0===e.trackingConsent||Ie(E,e.trackingConsent))return{beforeSend:e.beforeSend&&d(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:w?void 0:Ro(e),sessionSampleRate:null!==(n=e.sessionSampleRate)&&void 0!==n?n:100,telemetrySampleRate:null!==(o=e.telemetrySampleRate)&&void 0!==o?o:20,telemetryConfigurationSampleRate:null!==(r=e.telemetryConfigurationSampleRate)&&void 0!==r?r:5,telemetryUsageSampleRate:null!==(s=e.telemetryUsageSampleRate)&&void 0!==s?s:5,service:null!==(i=e.service)&&void 0!==i?i:void 0,env:null!==(u=e.env)&&void 0!==u?u:void 0,version:null!==(f=e.version)&&void 0!==f?f:void 0,datacenter:null!==(p=e.datacenter)&&void 0!==p?p:void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:null!==(g=e.trackingConsent)&&void 0!==g?g:E.GRANTED,trackAnonymousUser:null===(y=e.trackAnonymousUser)||void 0===y||y,storeContextsAcrossPages:!!e.storeContextsAcrossPages,betaEncodeCookieOptions:!!e.betaEncodeCookieOptions,variant:e.variant,sdkVersion:e.sdkVersion,...nr(e)};c.error('Tracking Consent should be either "granted" or "not-granted"')}}else c.error("Allowed Tracking Origins must be an array");else c.error("Client Token is not configured, we will not send any data.")}function br(e,t,n){return void 0===e?[]:"all"===e||Array.isArray(e)&&e.every(e=>t.includes(e))?"all"===e?t:function(e){const t=new Set;return e.forEach(e=>t.add(e)),Array.from(t)}(e):void c.error(`${n} should be "all" or an array with allowed values "${t.join('", "')}"`)}function vr(e){const t={session_sample_rate:(n=e).sessionSampleRate,telemetry_sample_rate:n.telemetrySampleRate,telemetry_configuration_sample_rate:n.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:n.telemetryUsageSampleRate,use_before_send:!!n.beforeSend,use_partitioned_cross_site_session_cookie:n.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:n.useSecureSessionCookie,use_proxy:!!n.proxy,silent_multiple_init:n.silentMultipleInit,track_session_across_subdomains:n.trackSessionAcrossSubdomains,track_anonymous_user:n.trackAnonymousUser,session_persistence:Array.isArray(n.sessionPersistence)?n.sessionPersistence[0]:n.sessionPersistence,allow_fallback_to_local_storage:!!n.allowFallbackToLocalStorage,store_contexts_across_pages:!!n.storeContextsAcrossPages,allow_untrusted_events:!!n.allowUntrustedEvents,tracking_consent:n.trackingConsent,use_allowed_tracking_origins:Array.isArray(n.allowedTrackingOrigins),beta_encode_cookie_options:n.betaEncodeCookieOptions,source:n.source,sdk_version:n.sdkVersion,variant:n.variant};var n;return{forward_errors_to_logs:e.forwardErrorsToLogs,forward_console_logs:e.forwardConsoleLogs,forward_reports:e.forwardReports,use_pci_intake:e.usePciIntake,...t}}function hr(e,t,n){const r=function(){const e=[];return{add:t=>{e.push(t)>500&&e.splice(0,1)},remove:t=>{Fn(e,t)},drain:t=>{e.forEach(e=>e(t)),e.length=0}}}(),s=qn();jt(s,Ht,r);const i=Un();jt(i,Gt,r);const a=Bn();let u,l;jt(a,Ft,r);const d=lr(),f=t.observable.subscribe(p);function p(){if(!l||!u||!t.isGranted())return;Pt("browser-logs-sdk",l,d),f.unsubscribe();const e=n(u,l,d);r.drain(e)}return{init(e,n){if(!e)return void c.error("Missing configuration");if(Ue(e.enableExperimentalFeatures),Qe()&&(e=function(e){return{...e,clientToken:"empty"}}(e)),u=e,function(e){Lt().notify({rawEvent:{type:Ot,configuration:e}})}(vr(e)),l)return void Xt("DD_LOGS",e);const r=function(e,t){!0===e.usePciIntake&&e.site&&"datadoghq.com"!==e.site&&c.warn("PCI compliance for Logs is only available for Datadog organizations in the US1 site. Default intake will be used.");const n=mr(e,t),r=br(e.forwardConsoleLogs,et(o),"Forward Console Logs"),s=br(e.forwardReports,et(jo),"Forward Reports");if(n&&r&&s)return e.forwardErrorsToLogs&&!r.includes(o.error)&&r.push(o.error),{forwardErrorsToLogs:!1!==e.forwardErrorsToLogs,forwardConsoleLogs:r,forwardReports:s,requestErrorResponseLengthLimit:32768,...n}}(e,n);r&&(l=r,er().subscribe(I),t.tryToInit(r.trackingConsent),p())},get initConfiguration(){return u},globalContext:s,accountContext:i,userContext:a,getInternalContext:I,handleLog(t,n,o,s=e(),i=ne()){r.add(e=>e.handleLog(t,n,o,s,i))}}}const Sr=function(){const e=function(e){const t=new _;return{tryToInit(t){e||(e=t)},update(n){e=n,t.notify()},isGranted:()=>e===E.GRANTED,observable:t}}(),t=function(){const e=new C(500),t=$e().subscribe(t=>{e.notify({type:0,error:t})});return{observable:e,stop:()=>{t.unsubscribe()}}}().observable;let n=hr(ln,e,(o,r,s)=>{const i=ur(r,ln,e,t,s);return n=function(e,t){return{init:e=>{Xt("DD_LOGS",e)},initConfiguration:e,...t}}(o,i),i});const o=()=>n,r={};return function(e){const t={version:"6.33.0",onReady(e){e()},...e};return Object.defineProperty(t,"_setDebug",{get:()=>g,enumerable:!1}),t}({logger:new an((...e)=>n.handleLog(...e)),init:e=>{const t=(new Error).stack;m(()=>n.init(e,t))},setTrackingConsent:y(t=>{e.update(t),Bt({feature:"set-tracking-consent",tracking_consent:t})}),getGlobalContext:Nt(o,Ht,zt),setGlobalContext:Nt(o,Ht,Wt),setGlobalContextProperty:Nt(o,Ht,Jt),removeGlobalContextProperty:Nt(o,Ht,Vt),clearGlobalContext:Nt(o,Ht,Kt),createLogger:y((e,t={})=>(r[e]=new an((...e)=>n.handleLog(...e),fe(e),t.handler,t.level,fe(t.context)),r[e])),getLogger:y(e=>r[e]),getInitConfiguration:y(()=>Ke(n.initConfiguration)),getInternalContext:y(e=>n.getInternalContext(e)),setUser:Nt(o,Ft,Wt),getUser:Nt(o,Ft,zt),setUserProperty:Nt(o,Ft,Jt),removeUserProperty:Nt(o,Ft,Vt),clearUser:Nt(o,Ft,Kt),setAccount:Nt(o,Gt,Wt),getAccount:Nt(o,Gt,zt),setAccountProperty:Nt(o,Gt,Jt),removeAccountProperty:Nt(o,Gt,Vt),clearAccount:Nt(o,Gt,Kt)})}();!function(e,t,n){const o=e[t];o&&!o.q&&o.version&&c.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=n,o&&o.q&&o.q.forEach(e=>d(e,"onReady callback threw an error:")())}(h(),"DD_LOGS",Sr)}}]);
|